@yugabytedb/perf-advisor-ui 1.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,23 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("react-query"),r=require("@material-ui/core"),o=require("@material-ui/icons"),a=require("@material-ui/core/styles"),s=require("@material-ui/core/TextField"),l=require("@material-ui/lab"),u=require("@material-ui/core/Paper"),c=require("@material-ui/core/Table"),d=require("@material-ui/core/Tooltip"),h=require("@material-ui/core/Typography"),p=require("@material-ui/core/TableBody"),f=require("@material-ui/core/TableCell"),m=require("@material-ui/core/TableRow"),v=require("@material-ui/core/Checkbox"),g=require("@material-ui/core/IconButton"),y=require("@material-ui/icons/KeyboardArrowRight"),b=require("@material-ui/icons/Remove"),w=require("@material-ui/core/Button"),x=require("@material-ui/core/FormControl"),_=require("@material-ui/core/FormControlLabel"),S=require("@material-ui/core/FormGroup"),k=require("@material-ui/core/Grid"),T=require("@material-ui/core/Input"),C=require("@material-ui/core/InputLabel"),E=require("@material-ui/core/ListItemText"),O=require("@material-ui/core/MenuItem"),D=require("@material-ui/core/Select"),M=require("@material-ui/core/Chip"),A=require("@material-ui/core/TableFooter"),I=require("@material-ui/core/TablePagination"),P=require("@material-ui/core/InputBase"),R=require("@material-ui/core/Toolbar"),N=require("@material-ui/core/TableHead"),j=require("@material-ui/icons/Help"),L=require("@material-ui/core/TableSortLabel"),F=require("@material-ui/core/Popover"),B=require("@material-ui/icons/Close"),U=require("@material-ui/core/Grow"),H=require("@material-ui/icons/Search"),Y=require("@material-ui/icons/Clear"),z=require("@material-ui/icons/CloudDownload"),W=require("@material-ui/icons/Print"),G=require("@material-ui/icons/ViewColumn"),V=require("@material-ui/icons/FilterList"),q=require("react-dom"),Q=require("@material-ui/icons/Delete"),$=require("http"),X=require("https"),K=require("url"),Z=require("stream"),J=require("assert"),ee=require("tty"),te=require("util"),ne=require("os"),re=require("zlib");function ie(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function oe(e){if(e&&e.__esModule)return 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 ae=ie(t),se=oe(t),le=ie(a),ue=ie(s),ce=ie(u),de=ie(c),he=ie(d),pe=ie(h),fe=ie(p),me=ie(f),ve=ie(m),ge=ie(v),ye=ie(g),be=ie(y),we=ie(b),xe=ie(w),_e=ie(x),Se=ie(_),ke=ie(S),Te=ie(k),Ce=ie(T),Ee=ie(C),Oe=ie(E),De=ie(O),Me=ie(D),Ae=ie(M),Ie=ie(A),Pe=ie(I),Re=ie(P),Ne=ie(R),je=ie(N),Le=ie(j),Fe=ie(L),Be=ie(F),Ue=ie(B),He=ie(U),Ye=ie(H),ze=ie(Y),We=ie(z),Ge=ie(W),Ve=ie(G),qe=ie(V),Qe=ie(q),$e=ie(Q),Xe=ie($),Ke=ie(X),Ze=ie(K),Je=ie(Z),et=ie(J),tt=ie(ee),nt=ie(te),rt=ie(ne),it=ie(re),ot=function(){return ot=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},ot.apply(this,arguments)};function at(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function st(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 lt(e,t){var n,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function ut(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function ct(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=ct(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function dt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ct(e))&&(r&&(r+=" "),r+=t);return r}"function"==typeof SuppressedError&&SuppressedError;var ht=Object.freeze({__proto__:null,default:dt}),pt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ft(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function mt(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var vt,gt,yt=function(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}},bt=ft(yt);function wt(){if(gt)return vt;gt=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return vt=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;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).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 u in o=Object(arguments[l]))t.call(o,u)&&(s[u]=o[u]);if(e){a=e(o);for(var c=0;c<a.length;c++)n.call(o,a[c])&&(s[a[c]]=o[a[c]])}}return s},vt}var xt=wt(),_t={};function St(e,t,n,r,i,o,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}var kt="mixins";var Tt=function(e,t,n){var r=[],i={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},o={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},a={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)l(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=xt({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=xt({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=c(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=xt({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(St(!(n in a),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return St("DEFINE_MANY_MERGED"===(o.hasOwnProperty(n)?o[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=c(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function s(e,t){var n=i.hasOwnProperty(t)?i[t]:null;m.hasOwnProperty(t)&&St("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&St("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function l(e,n){if(n){St("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),St(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,o=r.__reactAutoBindPairs;for(var l in n.hasOwnProperty(kt)&&a.mixins(e,n.mixins),n)if(n.hasOwnProperty(l)&&l!==kt){var u=n[l],h=r.hasOwnProperty(l);if(s(h,l),a.hasOwnProperty(l))a[l](e,u);else{var p=i.hasOwnProperty(l);if("function"==typeof u&&!p&&!h&&!1!==n.autobind)o.push(l,u),r[l]=u;else if(h){var f=i[l];St(p&&("DEFINE_MANY_MERGED"===f||"DEFINE_MANY"===f),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",f,l),"DEFINE_MANY_MERGED"===f?r[l]=c(r[l],u):"DEFINE_MANY"===f&&(r[l]=d(r[l],u))}else r[l]=u}}}}function u(e,t){for(var n in St(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(St(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function c(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return u(i,n),u(i,r),i}}function d(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function h(e,t){return t.bind(e)}var p={componentDidMount:function(){this.__isMounted=!0}},f={componentWillUnmount:function(){this.__isMounted=!1}},m={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},v=function(){};return xt(v.prototype,e.prototype,m),function(e){var t=function(e,r,i){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=h(e,i)}}(this),this.props=e,this.context=r,this.refs=_t,this.updater=i||n,this.state=null;var o=this.getInitialState?this.getInitialState():null;St("object"==typeof o&&!Array.isArray(o),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=o};for(var o in t.prototype=new v,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],r.forEach(l.bind(null,t)),l(t,p),l(t,e),l(t,f),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),St(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),i)t.prototype[o]||(t.prototype[o]=null);return t}},Ct=ae.default,Et=Tt;if(void 0===Ct)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var Ot,Dt,Mt,At,It=(new Ct.Component).updater,Pt=ft(Et(Ct.Component,Ct.isValidElement,It)),Rt={exports:{}};Rt.exports=function(){if(At)return Mt;At=1;var e=Dt?Ot:(Dt=1,Ot="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");function t(){}function n(){}return n.resetWarningCache=t,Mt=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}}()();var Nt=Rt.exports,jt=ft(Nt),Lt=function(){};function Ft(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Bt=Object.create(null);function Ut(e){return Bt[e]||(Bt[e]=function(e){for(var t="",n=[],r=[],i=void 0,o=0,a=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g;i=a.exec(e);)i.index!==o&&(r.push(e.slice(o,i.index)),t+=Ft(e.slice(o,i.index))),i[1]?(t+="([^/]+)",n.push(i[1])):"**"===i[0]?(t+="(.*)",n.push("splat")):"*"===i[0]?(t+="(.*?)",n.push("splat")):"("===i[0]?t+="(?:":")"===i[0]?t+=")?":"\\("===i[0]?t+="\\(":"\\)"===i[0]&&(t+="\\)"),r.push(i[0]),o=a.lastIndex;return o!==e.length&&(r.push(e.slice(o,e.length)),t+=Ft(e.slice(o,e.length))),{pattern:e,regexpSource:t,paramNames:n,tokens:r}}(e)),Bt[e]}function Ht(e,t){"/"!==e.charAt(0)&&(e="/"+e);var n=Ut(e),r=n.regexpSource,i=n.paramNames,o=n.tokens;"/"!==e.charAt(e.length-1)&&(r+="/?"),"*"===o[o.length-1]&&(r+="$");var a=t.match(new RegExp("^"+r,"i"));if(null==a)return null;var s=a[0],l=t.substr(s.length);if(l){if("/"!==s.charAt(s.length-1))return null;l="/"+l}return{remainingPathname:l,paramNames:i,paramValues:a.slice(1).map((function(e){return e&&decodeURIComponent(e)}))}}function Yt(e){return Ut(e).paramNames}function zt(e,t){t=t||{};for(var n=Ut(e).tokens,r=0,i="",o=0,a=[],s=void 0,l=void 0,u=0,c=n.length;u<c;++u)if("*"===(s=n[u])||"**"===s)null!=(l=Array.isArray(t.splat)?t.splat[o++]:t.splat)||r>0||bt(!1),null!=l&&(i+=encodeURI(l));else if("("===s)a[r]="",r+=1;else if(")"===s){var d=a.pop();(r-=1)?a[r-1]+=d:i+=d}else if("\\("===s)i+="(";else if("\\)"===s)i+=")";else if(":"===s.charAt(0))if(null!=(l=t[s.substring(1)])||r>0||bt(!1),null==l){if(r){a[r-1]="";for(var h=n.indexOf(s),p=n.slice(h,n.length),f=-1,m=0;m<p.length;m++)if(")"==p[m]){f=m;break}f>0||bt(!1),u=h+f-1}}else r?a[r-1]+=encodeURIComponent(l):i+=encodeURIComponent(l);else r?a[r-1]+=s:i+=s;return r<=0||bt(!1),i.replace(/\/+/g,"/")}function Wt(e,t){var n=e&&e.routes,r=t.routes,i=void 0,o=void 0,a=void 0;if(n){var s=!1;i=n.filter((function(n){if(s)return!0;var i=-1===r.indexOf(n)||function(e,t,n){return!!e.path&&Yt(e.path).some((function(e){return t.params[e]!==n.params[e]}))}(n,e,t);return i&&(s=!0),i})),i.reverse(),a=[],o=[],r.forEach((function(e){var t=-1===n.indexOf(e),r=-1!==i.indexOf(e);t||r?a.push(e):o.push(e)}))}else i=[],o=[],a=r;return{leaveRoutes:i,changeRoutes:o,enterRoutes:a}}function Gt(e,t,n){var r=0,i=!1,o=!1,a=!1,s=void 0;function l(){i=!0,o?s=[].concat(Array.prototype.slice.call(arguments)):n.apply(this,arguments)}!function u(){if(!i&&(a=!0,!o)){for(o=!0;!i&&r<e&&a;)a=!1,t.call(this,r++,u,l);o=!1,i?n.apply(this,s):r>=e&&a&&(i=!0,n())}}()}function Vt(e,t,n){var r=e.length,i=[];if(0===r)return n(null,i);var o=!1,a=0;e.forEach((function(e,s){t(e,s,(function(e,t){!function(e,t,s){o||(t?(o=!0,n(t)):(i[e]=s,(o=++a===r)&&n(null,i)))}(s,e,t)}))}))}var qt=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=[],this.add=function(e){return t.hooks.push(e)},this.remove=function(e){return t.hooks=t.hooks.filter((function(t){return t!==e}))},this.has=function(e){return-1!==t.hooks.indexOf(e)},this.clear=function(){return t.hooks=[]}};function Qt(){var e=new qt,t=new qt;function n(e,t,n,r){var i=e.length<n,o=function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];(e.apply(t,r),i)&&(0,r[r.length-1])()};return r.add(o),o}function r(e,t,n){if(e){var r=void 0;Gt(e,(function(e,n,o){t(e,i,(function(e){e||r?o(e,r):n()}))}),n)}else n();function i(e){r=e}}return{runEnterHooks:function(t,i,o){e.clear();var a=function(t){return t.reduce((function(t,r){return r.onEnter&&t.push(n(r.onEnter,r,3,e)),t}),[])}(t);return r(a.length,(function(t,n,r){a[t](i,n,(function(){e.has(a[t])&&(r.apply(void 0,arguments),e.remove(a[t]))}))}),o)},runChangeHooks:function(e,i,o,a){t.clear();var s=function(e){return e.reduce((function(e,r){return r.onChange&&e.push(n(r.onChange,r,4,t)),e}),[])}(e);return r(s.length,(function(e,n,r){s[e](i,o,n,(function(){t.has(s[e])&&(r.apply(void 0,arguments),t.remove(s[e]))}))}),a)},runLeaveHooks:function(e,t){for(var n=0,r=e.length;n<r;++n)e[n].onLeave&&e[n].onLeave.call(e[n],t)}}}var $t="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};function Xt(e,t){if(e==t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return Xt(e,t[n])}));if("object"===(void 0===e?"undefined":$t(e))){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))if(void 0===e[n]){if(void 0!==t[n])return!1}else{if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(!Xt(e[n],t[n]))return!1}return!0}return String(e)===String(t)}function Kt(e,t){return null==t?null==e:null==e||Xt(e,t)}function Zt(e,t,n,r,i){var o=e.pathname,a=e.query;return null!=n&&("/"!==o.charAt(0)&&(o="/"+o),!!(function(e,t){return"/"!==t.charAt(0)&&(t="/"+t),"/"!==e.charAt(e.length-1)&&(e+="/"),"/"!==t.charAt(t.length-1)&&(t+="/"),t===e}(o,n.pathname)||!t&&function(e,t,n){for(var r=e,i=[],o=[],a=0,s=t.length;a<s;++a){var l=t[a].path||"";if("/"===l.charAt(0)&&(r=e,i=[],o=[]),null!==r&&l){var u=Ht(l,r);if(u?(r=u.remainingPathname,i=[].concat(i,u.paramNames),o=[].concat(o,u.paramValues)):r=null,""===r)return i.every((function(e,t){return String(o[t])===String(n[e])}))}}return!1}(o,r,i))&&Kt(a,n.query))}function Jt(e){return e&&"function"==typeof e.then}function en(e,t){Vt(e.routes,(function(t,n,r){!function(e,t,n){if(t.component||t.components)n(null,t.component||t.components);else{var r=t.getComponent||t.getComponents;if(r){var i=r.call(t,e,n);Jt(i)&&i.then((function(e){return n(null,e)}),n)}else n()}}(e,t,r)}),t)}var tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function nn(e){return null==e||ae.default.isValidElement(e)}function rn(e){return nn(e)||Array.isArray(e)&&e.every(nn)}function on(e){var t,n,r=e.type,i=(t=r.defaultProps,n=e.props,tn({},t,n));if(i.children){var o=an(i.children,i);o.length&&(i.childRoutes=o),delete i.children}return i}function an(e,t){var n=[];return ae.default.Children.forEach(e,(function(e){if(ae.default.isValidElement(e))if(e.type.createRouteFromReactElement){var r=e.type.createRouteFromReactElement(e,t);r&&n.push(r)}else n.push(on(e))})),n}function sn(e){return rn(e)?e=an(e):e&&!Array.isArray(e)&&(e=[e]),e}var ln=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function un(e,t,n,r,i){if(e.childRoutes)return[null,e.childRoutes];if(!e.getChildRoutes)return[];var o=!0,a=void 0,s={location:t,params:dn(n,r)},l=e.getChildRoutes(s,(function(e,t){t=!e&&sn(t),o?a=[e,t]:i(e,t)}));return Jt(l)&&l.then((function(e){return i(null,sn(e))}),i),o=!1,a}function cn(e,t,n,r,i){if(e.indexRoute)i(null,e.indexRoute);else if(e.getIndexRoute){var o={location:t,params:dn(n,r)},a=e.getIndexRoute(o,(function(e,t){i(e,!e&&sn(t)[0])}));Jt(a)&&a.then((function(e){return i(null,sn(e)[0])}),i)}else if(e.childRoutes||e.getChildRoutes){var s=function(e,o){if(e)i(e);else{var a=o.filter((function(e){return!e.path}));Gt(a.length,(function(e,i,o){cn(a[e],t,n,r,(function(t,n){if(t||n){var r=[a[e]].concat(Array.isArray(n)?n:[n]);o(t,r)}else i()}))}),(function(e,t){i(null,t)}))}},l=un(e,t,n,r,s);l&&s.apply(void 0,l)}else i()}function dn(e,t){return function(e,t,n){return t.reduce((function(e,t,r){var i=n&&n[r];return Array.isArray(e[t])?e[t].push(i):e[t]=t in e?[e[t],i]:i,e}),e)}({},e,t)}function hn(e,t,n,r,i,o){var a=e.path||"";if("/"===a.charAt(0)&&(n=t.pathname,r=[],i=[]),null!==n&&a){try{var s=Ht(a,n);s?(n=s.remainingPathname,r=[].concat(r,s.paramNames),i=[].concat(i,s.paramValues)):n=null}catch(e){o(e)}if(""===n){var l={routes:[e],params:dn(r,i)};return void cn(e,t,r,i,(function(e,t){if(e)o(e);else{var n;if(Array.isArray(t))(n=l.routes).push.apply(n,t);else t&&l.routes.push(t);o(null,l)}}))}}if(null!=n||e.childRoutes){var u=function(a,s){a?o(a):s?pn(s,t,(function(t,n){t?o(t):n?(n.routes.unshift(e),o(null,n)):o()}),n,r,i):o()},c=un(e,t,r,i,u);c&&u.apply(void 0,c)}else o()}function pn(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===r&&("/"!==t.pathname.charAt(0)&&(t=ln({},t,{pathname:"/"+t.pathname})),r=t.pathname),Gt(e.length,(function(n,a,s){hn(e[n],t,r,i,o,(function(e,t){e||t?s(e,t):a()}))}),n)}var fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function mn(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!0;return!1}function vn(e,t,n){if(e[t])return new Error("<"+n+'> should not have a "'+t+'" prop')}Nt.shape({listen:Nt.func.isRequired,push:Nt.func.isRequired,replace:Nt.func.isRequired,go:Nt.func.isRequired,goBack:Nt.func.isRequired,goForward:Nt.func.isRequired});var gn,yn=Nt.elementType,bn=Nt.oneOfType([yn,Nt.object]),wn=Nt.oneOfType([Nt.object,Nt.element]),xn=Nt.oneOfType([wn,Nt.arrayOf(wn)]),_n={exports:{}},Sn={};_n.exports=function(){if(gn)return Sn;gn=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,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case l:case u:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case f:case p:case a:return e;default:return h}}case n:return h}}}function w(e){return b(e)===u}return Sn.AsyncMode=l,Sn.ConcurrentMode=u,Sn.ContextConsumer=s,Sn.ContextProvider=a,Sn.Element=t,Sn.ForwardRef=c,Sn.Fragment=r,Sn.Lazy=f,Sn.Memo=p,Sn.Portal=n,Sn.Profiler=o,Sn.StrictMode=i,Sn.Suspense=d,Sn.isAsyncMode=function(e){return w(e)||b(e)===l},Sn.isConcurrentMode=w,Sn.isContextConsumer=function(e){return b(e)===s},Sn.isContextProvider=function(e){return b(e)===a},Sn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Sn.isForwardRef=function(e){return b(e)===c},Sn.isFragment=function(e){return b(e)===r},Sn.isLazy=function(e){return b(e)===f},Sn.isMemo=function(e){return b(e)===p},Sn.isPortal=function(e){return b(e)===n},Sn.isProfiler=function(e){return b(e)===o},Sn.isStrictMode=function(e){return b(e)===i},Sn.isSuspense=function(e){return b(e)===d},Sn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===o||e===i||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===v||e.$$typeof===g||e.$$typeof===y||e.$$typeof===m)},Sn.typeOf=b,Sn}();var kn=_n.exports;var Tn=jt.shape({subscribe:jt.func.isRequired,eventIndex:jt.number.isRequired});function Cn(e){return"@@contextSubscriber/"+e}var En=void 0!==ae.default.forwardRef;var On=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dn="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},Mn=Pt({displayName:"RouterContext",mixins:[function(e){var t,n,r=Cn(e),i=r+"/listeners",o=r+"/eventIndex",a=r+"/subscribe",s=((n={childContextTypes:(t={},t[r]=Tn.isRequired,t),getChildContext:function(){var e;return(e={})[r]={eventIndex:this[o],subscribe:this[a]},e},componentWillMount:function(){this[i]=[],this[o]=0},componentWillReceiveProps:function(){this[o]++},componentDidUpdate:function(){var e=this;this[i].forEach((function(t){return t(e[o])}))}})[a]=function(e){var t=this;return this[i].push(e),function(){t[i]=t[i].filter((function(t){return t!==e}))}},n);return En&&(s.UNSAFE_componentWillMount=s.componentWillMount,s.UNSAFE_componentWillReceiveProps=s.componentWillReceiveProps,delete s.componentWillMount,delete s.componentWillReceiveProps),s}("router")],propTypes:{router:Nt.object.isRequired,location:Nt.object.isRequired,routes:Nt.array.isRequired,params:Nt.object.isRequired,components:Nt.array.isRequired,createElement:Nt.func.isRequired},getDefaultProps:function(){return{createElement:ae.default.createElement}},childContextTypes:{router:Nt.object.isRequired},getChildContext:function(){return{router:this.props.router}},createElement:function(e,t){return null==e?null:this.props.createElement(e,t)},render:function(){var e=this,t=this.props,n=t.location,r=t.routes,i=t.params,o=t.components,a=t.router,s=null;return o&&(s=o.reduceRight((function(t,o,s){if(null==o)return t;var l=r[s],u=function(e,t){var n={};return e.path?(Yt(e.path).forEach((function(e){Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})),n):n}(l,i),c={location:n,params:i,route:l,router:a,routeParams:u,routes:r};if(rn(t))c.children=t;else if(t)for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&(c[d]=t[d]);if("object"===(void 0===o?"undefined":Dn(o))&&!kn.isValidElementType(o)){var h={};for(var p in o)Object.prototype.hasOwnProperty.call(o,p)&&(h[p]=e.createElement(o[p],On({key:p},c)));return h}return e.createElement(o,c)}),s)),null===s||!1===s||ae.default.isValidElement(s)||bt(!1),s}}),An=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function In(e,t){var n=t.location,r=t.params,i=t.routes;return e.location=n,e.params=r,e.routes=i,e}var Pn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Rn={history:Nt.object,children:xn,routes:xn,render:Nt.func,createElement:Nt.func,onError:Nt.func,onUpdate:Nt.func,matchContext:Nt.object},Nn=void 0!==ae.default.forwardRef,jn=Pt({displayName:"Router",propTypes:Rn,getDefaultProps:function(){return{render:function(e){return ae.default.createElement(Mn,e)}}},getInitialState:function(){return{location:null,routes:null,params:null,components:null}},handleError:function(e){if(!this.props.onError)throw e;this.props.onError.call(this,e)},createRouterObject:function(e){var t=this.props.matchContext;return t?t.router:function(e,t,n){return In(An({},e,{setRouteLeaveHook:t.listenBeforeLeavingRoute,isActive:t.isActive}),n)}(this.props.history,this.transitionManager,e)},createTransitionManager:function(){var e=this.props.matchContext;if(e)return e.transitionManager;var t=this.props.history,n=this.props,r=n.routes,i=n.children;return t.getCurrentLocation||bt(!1),function(e,t){var n={},r=Qt(),i=r.runEnterHooks,o=r.runChangeHooks,a=r.runLeaveHooks,s=void 0;function l(e,n){s&&s.location===e?u(s,n):pn(t,e,(function(t,r){t?n(t):r?u(fn({},r,{location:e}),n):n()}))}function u(e,t){var r=Wt(n,e),s=r.leaveRoutes,l=r.changeRoutes,u=r.enterRoutes;function c(r,i){if(r||i)return d(r,i);en(e,(function(r,i){r?t(r):t(null,null,n=fn({},e,{components:i}))}))}function d(e,n){e?t(e):t(null,n)}a(s,n),s.filter((function(e){return-1===u.indexOf(e)})).forEach(y),o(l,n,e,(function(t,n){if(t||n)return d(t,n);i(u,e,c)}))}var c=1;function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=c++)}var h=Object.create(null);function p(e){return e.map((function(e){return h[d(e)]})).filter((function(e){return e}))}function f(e,r){pn(t,e,(function(t,i){if(null!=i){s=fn({},i,{location:e});for(var o=p(Wt(n,s).leaveRoutes),a=void 0,l=0,u=o.length;null==a&&l<u;++l)a=o[l](e);r(a)}else r()}))}function m(){if(n.routes){for(var e=p(n.routes),t=void 0,r=0,i=e.length;"string"!=typeof t&&r<i;++r)t=e[r]();return t}}var v=void 0,g=void 0;function y(e){var t=d(e);t&&(delete h[t],mn(h)||(v&&(v(),v=null),g&&(g(),g=null)))}return{isActive:function(t,r){return Zt(t=e.createLocation(t),r,n.location,n.routes,n.params)},match:l,listenBeforeLeavingRoute:function(t,n){var r=!mn(h),i=d(t,!0);return h[i]=n,r&&(v=e.listenBefore(f),e.listenBeforeUnload&&(g=e.listenBeforeUnload(m))),function(){y(t)}},listen:function(t){function r(r){n.location===r?t(null,n):l(r,(function(n,r,i){n?t(n):r?e.replace(r):i&&t(null,i)}))}var i=e.listen(r);return n.location?t(null,n):r(e.getCurrentLocation()),i}}}(t,sn(r||i))},componentWillMount:function(){var e=this;this.transitionManager=this.createTransitionManager(),this.router=this.createRouterObject(this.state),this._unlisten=this.transitionManager.listen((function(t,n){t?e.handleError(t):(In(e.router,n),e.setState(n,e.props.onUpdate))}))},componentWillReceiveProps:function(e){},componentWillUnmount:function(){this._unlisten&&this._unlisten()},render:function(){var e=this.state,t=e.location,n=e.routes,r=e.params,i=e.components,o=this.props,a=o.createElement,s=o.render,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(o,["createElement","render"]);return null==t?null:(Object.keys(Rn).forEach((function(e){return delete l[e]})),s(Pn({},l,{router:this.router,location:t,routes:n,params:r,components:i,createElement:a})))}});Nn&&(jn.prototype.UNSAFE_componentWillReceiveProps=jn.prototype.componentWillReceiveProps,jn.prototype.UNSAFE_componentWillMount=jn.prototype.componentWillMount,delete jn.prototype.componentWillReceiveProps,delete jn.prototype.componentWillMount);var Ln=Nt.shape({push:Nt.func.isRequired,replace:Nt.func.isRequired,go:Nt.func.isRequired,goBack:Nt.func.isRequired,goForward:Nt.func.isRequired,setRouteLeaveHook:Nt.func.isRequired,isActive:Nt.func.isRequired});Nt.shape({pathname:Nt.string.isRequired,search:Nt.string.isRequired,state:Nt.object,action:Nt.string.isRequired,key:Nt.string});var Fn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function Bn(e,t){return"function"==typeof e?e(t.location):e}var Un=Pt({displayName:"Link",mixins:[function(e){var t,n,r=Cn(e),i=r+"/lastRenderedEventIndex",o=r+"/handleContextUpdate",a=r+"/unsubscribe",s=((n={contextTypes:(t={},t[r]=Tn,t),getInitialState:function(){var e;return this.context[r]?((e={})[i]=this.context[r].eventIndex,e):{}},componentDidMount:function(){this.context[r]&&(this[a]=this.context[r].subscribe(this[o]))},componentWillReceiveProps:function(){var e;this.context[r]&&this.setState(((e={})[i]=this.context[r].eventIndex,e))},componentWillUnmount:function(){this[a]&&(this[a](),this[a]=null)}})[o]=function(e){var t;e!==this.state[i]&&this.setState(((t={})[i]=e,t))},n);return En&&(s.UNSAFE_componentWillReceiveProps=s.componentWillReceiveProps,delete s.componentWillReceiveProps),s}("router")],contextTypes:{router:Ln},propTypes:{to:Nt.oneOfType([Nt.string,Nt.object,Nt.func]),activeStyle:Nt.object,activeClassName:Nt.string,onlyActiveOnIndex:Nt.bool.isRequired,onClick:Nt.func,target:Nt.string,innerRef:Nt.oneOfType([Nt.string,Nt.func,Nt.shape({current:Nt.elementType})])},getDefaultProps:function(){return{onlyActiveOnIndex:!1,style:{}}},handleClick:function(e){if(this.props.onClick&&this.props.onClick(e),!e.defaultPrevented){var t=this.context.router;t||bt(!1),!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)&&function(e){return 0===e.button}(e)&&(this.props.target||(e.preventDefault(),t.push(Bn(this.props.to,t))))}},render:function(){var e=this.props,t=e.to,n=e.activeClassName,r=e.activeStyle,i=e.onlyActiveOnIndex,o=e.innerRef,a=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","activeClassName","activeStyle","onlyActiveOnIndex","innerRef"]),s=this.context.router;if(s){if(!t)return ae.default.createElement("a",Fn({},a,{ref:o}));var l=Bn(t,s);a.href=s.createHref(l),(n||null!=r&&!function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(r))&&s.isActive(l,i)&&(n&&(a.className?a.className+=" "+n:a.className=n),r&&(a.style=Fn({},a.style,r)))}return ae.default.createElement("a",Fn({},a,{onClick:this.handleClick,ref:o}))}}),Hn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};Pt({displayName:"IndexLink",render:function(){return ae.default.createElement(Un,Hn({},this.props,{onlyActiveOnIndex:!0}))}});var Yn,zn={exports:{}},Wn={};zn.exports=function(){if(Yn)return Wn;Yn=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,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,g=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case l:case u:case r:case o:case i:case d:return e;default:switch(e=e&&e.$$typeof){case s:case c:case f:case p:case a:return e;default:return h}}case n:return h}}}function w(e){return b(e)===u}return Wn.AsyncMode=l,Wn.ConcurrentMode=u,Wn.ContextConsumer=s,Wn.ContextProvider=a,Wn.Element=t,Wn.ForwardRef=c,Wn.Fragment=r,Wn.Lazy=f,Wn.Memo=p,Wn.Portal=n,Wn.Profiler=o,Wn.StrictMode=i,Wn.Suspense=d,Wn.isAsyncMode=function(e){return w(e)||b(e)===l},Wn.isConcurrentMode=w,Wn.isContextConsumer=function(e){return b(e)===s},Wn.isContextProvider=function(e){return b(e)===a},Wn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Wn.isForwardRef=function(e){return b(e)===c},Wn.isFragment=function(e){return b(e)===r},Wn.isLazy=function(e){return b(e)===f},Wn.isMemo=function(e){return b(e)===p},Wn.isPortal=function(e){return b(e)===n},Wn.isProfiler=function(e){return b(e)===o},Wn.isStrictMode=function(e){return b(e)===i},Wn.isSuspense=function(e){return b(e)===d},Wn.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===u||e===o||e===i||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===c||e.$$typeof===v||e.$$typeof===g||e.$$typeof===y||e.$$typeof===m)},Wn.typeOf=b,Wn}();var Gn=zn.exports,Vn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qn={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Qn={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$n={};function Xn(e){return Gn.isMemo(e)?Qn:$n[e.$$typeof]||Vn}$n[Gn.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},$n[Gn.Memo]=Qn;var Kn=Object.defineProperty,Zn=Object.getOwnPropertyNames,Jn=Object.getOwnPropertySymbols,er=Object.getOwnPropertyDescriptor,tr=Object.getPrototypeOf,nr=Object.prototype;var rr=function e(t,n,r){if("string"!=typeof n){if(nr){var i=tr(n);i&&i!==nr&&e(t,i,r)}var o=Zn(n);Jn&&(o=o.concat(Jn(n)));for(var a=Xn(t),s=Xn(n),l=0;l<o.length;++l){var u=o[l];if(!(qn[u]||r&&r[u]||s&&s[u]||a&&a[u])){var c=er(n,u);try{Kn(t,u,c)}catch(e){}}}}return t},ir=ft(rr),or=Pt({displayName:"Redirect",statics:{createRouteFromReactElement:function(e){var t=on(e);return t.from&&(t.path=t.from),t.onEnter=function(e,n){var r=e.location,i=e.params,o=void 0;if("/"===t.to.charAt(0))o=zt(t.to,i);else if(t.to){var a=e.routes.indexOf(t);o=zt(or.getRoutePattern(e.routes,a-1).replace(/\/*$/,"/")+t.to,i)}else o=r.pathname;n({pathname:o,query:t.query||r.query,state:t.state||r.state})},t},getRoutePattern:function(e,t){for(var n="",r=t;r>=0;r--){var i=e[r].path||"";if(n=i.replace(/\/*$/,"/")+n,0===i.indexOf("/"))break}return"/"+n}},propTypes:{path:Nt.string,from:Nt.string,to:Nt.string.isRequired,query:Nt.object,state:Nt.object,onEnter:vn,children:vn},render:function(){bt(!1)}});Pt({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=or.createRouteFromReactElement(e))}},propTypes:{to:Nt.string.isRequired,query:Nt.object,state:Nt.object,onEnter:vn,children:vn},render:function(){bt(!1)}}),Pt({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=on(e))}},propTypes:{path:vn,component:yn,components:bn,getComponent:Nt.func,getComponents:Nt.func},render:function(){bt(!1)}}),Pt({displayName:"Route",statics:{createRouteFromReactElement:on},propTypes:{path:Nt.string,component:yn,components:bn,getComponent:Nt.func,getComponents:Nt.func},render:function(){bt(!1)}});var ar={__esModule:!0,PUSH:"PUSH",REPLACE:"REPLACE",POP:"POP"},sr={},lr=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))},ur=wt();function cr(e,t){return t.encode?t.strict?lr(e):encodeURIComponent(e):e}function dr(e){return Array.isArray(e)?e.sort():"object"==typeof e?dr(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}sr.extract=function(e){return e.split("?")[1]||""},sr.parse=function(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=ur({arrayFormat:"none"},t)),r=Object.create(null);return"string"!=typeof e?r:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),o=t.length>0?t.join("="):void 0;o=void 0===o?null:decodeURIComponent(o),n(decodeURIComponent(i),o,r)})),Object.keys(r).sort().reduce((function(e,t){var n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=dr(n):e[t]=n,e}),Object.create(null))):r},sr.stringify=function(e,t){var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[cr(t,e),"[",r,"]"].join(""):[cr(t,e),"[",cr(r,e),"]=",cr(n,e)].join("")};case"bracket":return function(t,n){return null===n?cr(t,e):[cr(t,e),"[]=",cr(n,e)].join("")};default:return function(t,n){return null===n?cr(t,e):[cr(t,e),"=",cr(n,e)].join("")}}}(t=ur({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map((function(r){var i=e[r];if(void 0===i)return"";if(null===i)return cr(r,t);if(Array.isArray(i)){var o=[];return i.slice().forEach((function(e){void 0!==e&&o.push(n(r,e,o.length))})),o.join("&")}return cr(r,t)+"="+cr(i,t)})).filter((function(e){return e.length>0})).join("&"):""};var hr,pr={__esModule:!0};!(hr=Lt)||hr.__esModule;pr.default=function(e,t,n){var r=e(t,n);e.length<2&&n(r)};var fr={},mr={__esModule:!0};mr.createPath=mr.parsePath=mr.getQueryStringValueFromPath=mr.stripQueryStringValueFromPath=mr.addQueryStringValueToPath=void 0,function(e){e&&e.__esModule}(Lt),mr.addQueryStringValueToPath=function(e,t,n){var r=vr(e),i=r.pathname,o=r.search,a=r.hash;return gr({pathname:i,search:o+(-1===o.indexOf("?")?"?":"&")+t+"="+n,hash:a})},mr.stripQueryStringValueFromPath=function(e,t){var n=vr(e),r=n.pathname,i=n.search,o=n.hash;return gr({pathname:r,search:i.replace(new RegExp("([?&])"+t+"=[a-zA-Z0-9]+(&?)"),(function(e,t,n){return"?"===t?t:n})),hash:o})},mr.getQueryStringValueFromPath=function(e,t){var n=vr(e).search.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return n&&n[1]};var vr=mr.parsePath=function(e){var t=function(e){var t=e.match(/^(https?:)?\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}(e),n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substring(i),t=t.substring(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substring(o),t=t.substring(0,o)),""===t&&(t="/"),{pathname:t,search:n,hash:r}},gr=mr.createPath=function(e){if(null==e||"string"==typeof e)return e;var t=e.basename,n=e.pathname,r=e.search,i=e.hash,o=(t||"")+n;return r&&"?"!==r&&(o+=r),i&&(o+=i),o};fr.__esModule=!0,fr.locationsAreEqual=fr.statesAreEqual=fr.createLocation=fr.createQuery=void 0;var yr="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},br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wr=Sr(yt);Sr(Lt);var xr=mr,_r=ar;function Sr(e){return e&&e.__esModule?e:{default:e}}fr.createQuery=function(e){return br(Object.create(null),e)},fr.createLocation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_r.POP,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="string"==typeof e?(0,xr.parsePath)(e):e;return{pathname:r.pathname||"/",search:r.search||"",hash:r.hash||"",state:r.state,action:t,key:n}};var kr=function(e){return"[object Date]"===Object.prototype.toString.call(e)},Tr=fr.statesAreEqual=function e(t,n){if(t===n)return!0;var r=void 0===t?"undefined":yr(t);if(r!==(void 0===n?"undefined":yr(n)))return!1;if("function"===r&&(0,wr.default)(!1),"object"===r){if(kr(t)&&kr(n)&&(0,wr.default)(!1),!Array.isArray(t)){var i=Object.keys(t),o=Object.keys(n);return i.length===o.length&&i.every((function(r){return e(t[r],n[r])}))}return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}))}return!1};fr.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&Tr(e.state,t.state)};var Cr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Er=sr,Or=function(e){return e&&e.__esModule?e:{default:e}}(pr),Dr=fr,Mr=mr;var Ar=function(e){return(0,Er.stringify)(e).replace(/%20/g,"+")},Ir=Er.parse,Pr=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.stringifyQuery,i=t.parseQueryString;"function"!=typeof r&&(r=Ar),"function"!=typeof i&&(i=Ir);var o=function(e){return e?(null==e.query&&(e.query=i(e.search.substring(1))),e):e},a=function(e,t){if(null==t)return e;var n="string"==typeof e?(0,Mr.parsePath)(e):e,i=r(t);return Cr({},n,{search:i?"?"+i:""})};return Cr({},n,{getCurrentLocation:function(){return o(n.getCurrentLocation())},listenBefore:function(e){return n.listenBefore((function(t,n){return(0,Or.default)(e,o(t),n)}))},listen:function(e){return n.listen((function(t){return e(o(t))}))},push:function(e){return n.push(a(e,e.query))},replace:function(e){return n.replace(a(e,e.query))},createPath:function(e){return n.createPath(a(e,e.query))},createHref:function(e){return n.createHref(a(e,e.query))},createLocation:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];var s=n.createLocation.apply(n,[a(e,e.query)].concat(r));return e.query&&(s.query=(0,Dr.createQuery)(e.query)),o(s)}})}},Rr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nr=function(e){return e&&e.__esModule?e:{default:e}}(pr),jr=mr;var Lr=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e(t),r=t.basename,i=function(e){return e?(r&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(r.toLowerCase())?(e.pathname=e.pathname.substring(r.length),e.basename=r,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},o=function(e){if(!r)return e;var t="string"==typeof e?(0,jr.parsePath)(e):e,n=t.pathname,i="/"===r.slice(-1)?r:r+"/",o="/"===n.charAt(0)?n.slice(1):n;return Rr({},t,{pathname:i+o})};return Rr({},n,{getCurrentLocation:function(){return i(n.getCurrentLocation())},listenBefore:function(e){return n.listenBefore((function(t,n){return(0,Nr.default)(e,i(t),n)}))},listen:function(e){return n.listen((function(t){return e(i(t))}))},push:function(e){return n.push(o(e))},replace:function(e){return n.replace(o(e))},createPath:function(e){return n.createPath(o(e))},createHref:function(e){return n.createHref(o(e))},createLocation:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return i(n.createLocation.apply(n,[o(e)].concat(r)))}})}},Fr={},Br={__esModule:!0,loopAsync:function(e,t,n){var r=0,i=!1,o=!1,a=!1,s=void 0,l=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];i=!0,o?s=t:n.apply(void 0,t)};!function u(){if(!i&&(a=!0,!o)){for(o=!0;!i&&r<e&&a;)a=!1,t(r++,u,l);o=!1,i?n.apply(void 0,s):r>=e&&a&&(i=!0,n())}}()}};Fr.__esModule=!0;var Ur=Br,Hr=mr,Yr=function(e){return e&&e.__esModule?e:{default:e}}(pr),zr=ar,Wr=fr;function Gr(e){return e&&e.__esModule?e:{default:e}}Fr.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,n=e.getUserConfirmation,r=e.pushLocation,i=e.replaceLocation,o=e.go,a=e.keyLength,s=void 0,l=void 0,u=[],c=[],d=[],h=function(e){var t=l&&l.action===zr.POP?d.indexOf(l.key):s?d.indexOf(s.key):-1;(s=e).action===zr.PUSH?d=[].concat(d.slice(0,t+1),[s.key]):s.action===zr.REPLACE&&(d[t]=s.key),c.forEach((function(e){return e(s)}))},p=function(e){var t,a;s&&(0,Wr.locationsAreEqual)(s,e)||l&&(0,Wr.locationsAreEqual)(l,e)||(l=e,t=e,a=function(t){if(l===e)if(l=null,t){if(e.action===zr.PUSH){var n=(0,Hr.createPath)(s);(0,Hr.createPath)(e)===n&&(0,Wr.statesAreEqual)(s.state,e.state)&&(e.action=zr.REPLACE)}e.action===zr.POP?h(e):e.action===zr.PUSH?!1!==r(e)&&h(e):e.action===zr.REPLACE&&!1!==i(e)&&h(e)}else if(s&&e.action===zr.POP){var a=d.indexOf(s.key),u=d.indexOf(e.key);-1!==a&&-1!==u&&o(a-u)}},(0,Ur.loopAsync)(u.length,(function(e,n,r){(0,Yr.default)(u[e],t,(function(e){return null!=e?r(e):n()}))}),(function(e){n&&"string"==typeof e?n(e,(function(e){return a(!1!==e)})):a(!1!==e)})))},f=function(){return Math.random().toString(36).substr(2,a||6)},m=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f();return(0,Wr.createLocation)(e,t,n)};return{getCurrentLocation:t,listenBefore:function(e){return u.push(e),function(){return u=u.filter((function(t){return t!==e}))}},listen:function(e){return c.push(e),function(){return c=c.filter((function(t){return t!==e}))}},transitionTo:p,push:function(e){return p(m(e,zr.PUSH))},replace:function(e){return p(m(e,zr.REPLACE))},go:o,goBack:function(){return o(-1)},goForward:function(){return o(1)},createKey:f,createPath:Hr.createPath,createHref:function(e){return(0,Hr.createPath)(e)},createLocation:m}},Gr(Lt),Gr(yt),Gr(Fr);var Vr={__esModule:!0};Vr.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement);var qr={},Qr={__esModule:!0,addEventListener:function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},removeEventListener:function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},supportsHistory:function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},supportsGoWithoutReloadUsingHash:function(){return-1===window.navigator.userAgent.indexOf("Firefox")},supportsPopstateOnHashchange:function(){return-1===window.navigator.userAgent.indexOf("Trident")},isExtraneousPopstateEvent:function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},$r={__esModule:!0};$r.readState=$r.saveState=void 0,function(e){e&&e.__esModule}(Lt);var Xr={QuotaExceededError:!0,QUOTA_EXCEEDED_ERR:!0},Kr={SecurityError:!0},Zr=function(e){return"@@History/"+e};$r.saveState=function(e,t){if(window.sessionStorage)try{null==t?window.sessionStorage.removeItem(Zr(e)):window.sessionStorage.setItem(Zr(e),JSON.stringify(t))}catch(e){if(Kr[e.name])return;if(Xr[e.name]&&0===window.sessionStorage.length)return;throw e}},$r.readState=function(e){var t=void 0;try{t=window.sessionStorage.getItem(Zr(e))}catch(e){if(Kr[e.name])return}if(t)try{return JSON.parse(t)}catch(e){}},qr.__esModule=!0,qr.go=qr.replaceLocation=qr.pushLocation=qr.startListener=qr.getUserConfirmation=qr.getCurrentLocation=void 0;var Jr=fr,ei=Qr,ti=$r,ni=mr,ri="popstate",ii="hashchange",oi=Vr.canUseDOM&&!(0,ei.supportsPopstateOnHashchange)(),ai=function(e){var t=e&&e.key;return(0,Jr.createLocation)({pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:t?(0,ti.readState)(t):void 0},void 0,t)},si=qr.getCurrentLocation=function(){var e=void 0;try{e=window.history.state||{}}catch(t){e={}}return ai(e)};qr.getUserConfirmation=function(e,t){return t(window.confirm(e))},qr.startListener=function(e){var t=function(t){(0,ei.isExtraneousPopstateEvent)(t)||e(ai(t.state))};(0,ei.addEventListener)(window,ri,t);var n=function(){return e(si())};return oi&&(0,ei.addEventListener)(window,ii,n),function(){(0,ei.removeEventListener)(window,ri,t),oi&&(0,ei.removeEventListener)(window,ii,n)}};var li=function(e,t){var n=e.state,r=e.key;void 0!==n&&(0,ti.saveState)(r,n),t({key:r},(0,ni.createPath)(e))};qr.pushLocation=function(e){return li(e,(function(e,t){return window.history.pushState(e,null,t)}))},qr.replaceLocation=function(e){return li(e,(function(e,t){return window.history.replaceState(e,null,t)}))},qr.go=function(e){e&&window.history.go(e)};var ui={};!function(e){e.__esModule=!0,e.replaceLocation=e.pushLocation=e.getCurrentLocation=e.go=e.getUserConfirmation=void 0;var t=qr;Object.defineProperty(e,"getUserConfirmation",{enumerable:!0,get:function(){return t.getUserConfirmation}}),Object.defineProperty(e,"go",{enumerable:!0,get:function(){return t.go}});var n=fr,r=mr;e.getCurrentLocation=function(){return(0,n.createLocation)(window.location)},e.pushLocation=function(e){return window.location.href=(0,r.createPath)(e),!1},e.replaceLocation=function(e){return window.location.replace((0,r.createPath)(e)),!1}}(ui);var ci=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},di=yi(yt),hi=Vr,pi=gi(qr),fi=gi(ui),mi=Qr,vi=yi(Fr);function gi(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function yi(e){return e&&e.__esModule?e:{default:e}}var bi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};hi.canUseDOM||(0,di.default)(!1);var t=e.forceRefresh||!(0,mi.supportsHistory)()?fi:pi,n=t.getUserConfirmation,r=t.getCurrentLocation,i=t.pushLocation,o=t.replaceLocation,a=t.go,s=(0,vi.default)(ci({getUserConfirmation:n},e,{getCurrentLocation:r,pushLocation:i,replaceLocation:o,go:a})),l=0,u=void 0,c=function(e,t){1==++l&&(u=pi.startListener(s.transitionTo));var n=t?s.listenBefore(e):s.listen(e);return function(){n(),0==--l&&u()}};return ci({},s,{listenBefore:function(e){return c(e,!0)},listen:function(e){return c(e,!1)}})},wi=!("undefined"==typeof window||!window.document||!window.document.createElement);function xi(e){var t=void 0;return wi&&(t=function(e){return function(t){return Pr(Lr(e))(t)}}(e)()),t}xi(bi);var _i={};!function(e){e.__esModule=!0,e.replaceLocation=e.pushLocation=e.startListener=e.getCurrentLocation=e.go=e.getUserConfirmation=void 0;var t=qr;Object.defineProperty(e,"getUserConfirmation",{enumerable:!0,get:function(){return t.getUserConfirmation}}),Object.defineProperty(e,"go",{enumerable:!0,get:function(){return t.go}}),function(e){e&&e.__esModule}(Lt);var n=fr,r=Qr,i=$r,o=mr;var a="hashchange",s=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},l=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},u=e.getCurrentLocation=function(e,t){var r=e.decodePath(s()),a=(0,o.getQueryStringValueFromPath)(r,t),l=void 0;a&&(r=(0,o.stripQueryStringValueFromPath)(r,t),l=(0,i.readState)(a));var u=(0,o.parsePath)(r);return u.state=l,(0,n.createLocation)(u,void 0,a)},c=void 0;e.startListener=function(e,t,n){var i=function(){var r=s(),i=t.encodePath(r);if(r!==i)l(i);else{var o=u(t,n);if(c&&o.key&&c.key===o.key)return;c=o,e(o)}},o=s(),d=t.encodePath(o);return o!==d&&l(d),(0,r.addEventListener)(window,a,i),function(){return(0,r.removeEventListener)(window,a,i)}};var d=function(e,t,n,r){var a=e.state,s=e.key,l=t.encodePath((0,o.createPath)(e));void 0!==a&&(l=(0,o.addQueryStringValueToPath)(l,n,s),(0,i.saveState)(s,a)),c=e,r(l)};e.pushLocation=function(e,t,n){return d(e,t,n,(function(e){s()!==e&&function(e){window.location.hash=e}(e)}))},e.replaceLocation=function(e,t,n){return d(e,t,n,(function(e){s()!==e&&l(e)}))}}(_i);var Si=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};Di(Lt);var ki=Di(yt),Ti=Vr,Ci=Qr,Ei=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(_i),Oi=Di(Fr);function Di(e){return e&&e.__esModule?e:{default:e}}var Mi=function(e){return"/"===e.charAt(0)?e:"/"+e},Ai={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!"+e},decodePath:function(e){return"!"===e.charAt(0)?e.substring(1):e}},noslash:{encodePath:function(e){return"/"===e.charAt(0)?e.substring(1):e},decodePath:Mi},slash:{encodePath:Mi,decodePath:Mi}},Ii=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Ti.canUseDOM||(0,ki.default)(!1);var t=e.queryKey,n=e.hashType;"string"!=typeof t&&(t="_k"),null==n&&(n="slash"),n in Ai||(n="slash");var r=Ai[n],i=Ei.getUserConfirmation,o=(0,Oi.default)(Si({getUserConfirmation:i},e,{getCurrentLocation:function(){return Ei.getCurrentLocation(r,t)},pushLocation:function(e){return Ei.pushLocation(e,r,t)},replaceLocation:function(e){return Ei.replaceLocation(e,r,t)},go:Ei.go})),a=0,s=void 0,l=function(e,n){1==++a&&(s=Ei.startListener(o.transitionTo,r,t));var i=n?o.listenBefore(e):o.listen(e);return function(){i(),0==--a&&s()}};(0,Ci.supportsGoWithoutReloadUsingHash)();return Si({},o,{listenBefore:function(e){return l(e,!0)},listen:function(e){return l(e,!1)},go:function(e){o.go(e)},createHref:function(e){return"#"+r.encodePath(o.createHref(e))}})};xi(Ii);var Pi=r.makeStyles((function(e){return{root:{padding:function(t){var n=t.size,r=t.startIcon,i=t.endIcon;if(r||i)return"large"===n?e.spacing(0,2):e.spacing(0,1.4);switch(n){case"small":return e.spacing(0,1.4);case"large":return e.spacing(0,3.5);default:return e.spacing(0,2)}},background:function(e){var t=e.variant,n=e.disabled;return"gradient"!==t||n?"":"linear-gradient(272.58deg, #7879F1 1.06%, #7879F1 33.24%, #5D5FEF 56.4%)"}}}})),Ri=r.makeStyles((function(e){return{label:{fontWeight:400,color:e.palette.grey[900]},text:{"& + &":{marginLeft:e.spacing(1)},backgroundColor:function(t){return t.selected?e.palette.grey[300]:"transparent"},"&:hover":{borderColor:e.palette.grey[300],backgroundColor:function(t){return t.selected?e.palette.grey[300]:"transparent"}}}}})),Ni=function(t){var n=t.variant,i=t.showSpinner,o=at(t,["variant","showSpinner"]);o.classes=Pi(t);var a=Ri(t);switch(n){case"primary":case"gradient":o.variant="contained";break;case"secondary":o.variant="outlined";break;case"ghost":o.variant="text";break;case"pill":o.variant="text",o.classes=ot(ot({},o.classes),a)}return i&&(o.startIcon=e.jsx(r.Box,ot({color:t.disabled&&"grey.500"},{children:e.jsx(r.CircularProgress,{size:16,color:t.disabled?"inherit":"primary",thickness:5})}))),e.jsx(r.Button,ot({},o))},ji=ae.default.createContext({addToast:function(){}}),Li=function(){return{addToast:t.useContext(ji).addToast}};function Fi(e){return Fi="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},Fi(e)}function Bi(e){var t=function(e,t){if("object"!=Fi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Fi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fi(t)?t:t+""}function Ui(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var Hi={};function Yi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&Hi[t[0]]||("string"==typeof t[0]&&(Hi[t[0]]=new Date),Ui.apply(void 0,t))}function zi(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}var Wi=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Gi={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Vi=function(e){return Gi[e]},qi={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(Wi,Vi)}};function Qi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Bi(r.key),r)}}var $i=t.createContext(),Xi=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.usedNamespaces={}}var t,n,r;return t=e,(n=[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}])&&Qi(t.prototype,n),r&&Qi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ki(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Zi(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ki(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ki(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ji(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 eo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ji(Object(n),!0).forEach((function(t){var r,i,o;r=e,i=t,o=n[t],(i=Bi(i))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ji(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function to(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.i18n,i=t.useContext($i)||{},o=i.i18n,a=i.defaultNS,s=r||o||void 0;if(s&&!s.reportNamespaces&&(s.reportNamespaces=new Xi),!s){Yi("You will need to pass in an i18next instance by using initReactI18next");var l=function(e,t){return"string"==typeof t?t:t&&"object"===Fi(t)&&"string"==typeof t.defaultValue?t.defaultValue:Array.isArray(e)?e[e.length-1]:e},u=[l,{},!1];return u.t=l,u.i18n={},u.ready=!1,u}s.options.react&&void 0!==s.options.react.wait&&Yi("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=eo(eo(eo({},qi),s.options.react),n),d=c.useSuspense,h=c.keyPrefix,p=e||a||s.options&&s.options.defaultNS;p="string"==typeof p?[p]:p||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(p);var f=(s.isInitialized||s.initializedStoreOnce)&&p.every((function(e){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.languages&&t.languages.length?void 0!==t.options.ignoreJSONStructure?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e)||!t.hasResourceBundle(r,e)&&t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages)&&(!a(r,e)||i&&!a(o,e)))}(e,t,n):(Yi("i18n.languages were undefined or empty",t.languages),!0)}(e,s,c)}));function m(){return s.getFixedT(null,"fallback"===c.nsMode?p:p[0],h)}var v,g,y,b=Zi(t.useState(m),2),w=b[0],x=b[1],_=p.join(),S=(v=_,y=t.useRef(),t.useEffect((function(){y.current=g?y.current:v}),[v,g]),y.current),k=t.useRef(!0);t.useEffect((function(){var e=c.bindI18n,t=c.bindI18nStore;function n(){k.current&&x(m)}return k.current=!0,f||d||zi(s,p,(function(){k.current&&x(m)})),f&&S&&S!==_&&k.current&&x(m),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){k.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,_]);var T=t.useRef(!0);t.useEffect((function(){k.current&&!T.current&&x(m),T.current=!1}),[s,h]);var C=[w,s,f];if(C.t=w,C.i18n=s,C.ready=f,f)return C;if(!f&&!d)return C;throw new Promise((function(e){zi(s,p,(function(){e()}))}))}var no={exports:{}};function ro(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){var n=e[t];"object"!=typeof n||Object.isFrozen(n)||ro(n)})),e}no.exports=ro,no.exports.default=ro;class io{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function oo(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function ao(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t];return t.forEach((function(e){for(const t in e)n[t]=e[t]})),n}const so=e=>!!e.scope||e.sublanguage&&e.language;class lo{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=oo(e)}openNode(e){if(!so(e))return;let t="";t=e.sublanguage?`language-${e.language}`:((e,{prefix:t})=>{if(e.includes(".")){const n=e.split(".");return[`${t}${n.shift()}`,...n.map(((e,t)=>`${e}${"_".repeat(t+1)}`))].join(" ")}return`${t}${e}`})(e.scope,{prefix:this.classPrefix}),this.span(t)}closeNode(e){so(e)&&(this.buffer+="</span>")}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const uo=(e={})=>{const t={children:[]};return Object.assign(t,e),t};class co{constructor(){this.rootNode=uo(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=uo({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),t.children.forEach((t=>this._walk(e,t))),e.closeNode(t)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every((e=>"string"==typeof e))?e.children=[e.children.join("")]:e.children.forEach((e=>{co._collapse(e)})))}}class ho extends co{constructor(e){super(),this.options=e}addKeyword(e,t){""!==e&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,t){const n=e.root;n.sublanguage=!0,n.language=t,this.add(n)}toHTML(){return new lo(this,this.options).value()}finalize(){return!0}}function po(e){return e?"string"==typeof e?e:e.source:null}function fo(e){return go("(?=",e,")")}function mo(e){return go("(?:",e,")*")}function vo(e){return go("(?:",e,")?")}function go(...e){return e.map((e=>po(e))).join("")}function yo(...e){const t=function(e){const t=e[e.length-1];return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}}(e);return"("+(t.capture?"":"?:")+e.map((e=>po(e))).join("|")+")"}function bo(e){return new RegExp(e.toString()+"|").exec("").length-1}const wo=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function xo(e,{joinWith:t}){let n=0;return e.map((e=>{n+=1;const t=n;let r=po(e),i="";for(;r.length>0;){const e=wo.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?i+="\\"+String(Number(e[1])+t):(i+=e[0],"("===e[0]&&n++)}return i})).map((e=>`(${e})`)).join(t)}const _o="[a-zA-Z]\\w*",So="[a-zA-Z_]\\w*",ko="\\b\\d+(\\.\\d+)?",To="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Co="\\b(0b[01]+)",Eo={begin:"\\\\[\\s\\S]",relevance:0},Oo={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Eo]},Do={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Eo]},Mo=function(e,t,n={}){const r=ao({scope:"comment",begin:e,end:t,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=yo("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:go(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Ao=Mo("//","$"),Io=Mo("/\\*","\\*/"),Po=Mo("#","$"),Ro={scope:"number",begin:ko,relevance:0},No={scope:"number",begin:To,relevance:0},jo={scope:"number",begin:Co,relevance:0},Lo={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Eo,{begin:/\[/,end:/\]/,relevance:0,contains:[Eo]}]}]},Fo={scope:"title",begin:_o,relevance:0},Bo={scope:"title",begin:So,relevance:0},Uo={begin:"\\.\\s*"+So,relevance:0};var Ho=Object.freeze({__proto__:null,MATCH_NOTHING_RE:/\b\B/,IDENT_RE:_o,UNDERSCORE_IDENT_RE:So,NUMBER_RE:ko,C_NUMBER_RE:To,BINARY_NUMBER_RE:Co,RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const t=/^#![ ]*\//;return e.binary&&(e.begin=go(t,/.*\b/,e.binary,/\b.*/)),ao({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},BACKSLASH_ESCAPE:Eo,APOS_STRING_MODE:Oo,QUOTE_STRING_MODE:Do,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},COMMENT:Mo,C_LINE_COMMENT_MODE:Ao,C_BLOCK_COMMENT_MODE:Io,HASH_COMMENT_MODE:Po,NUMBER_MODE:Ro,C_NUMBER_MODE:No,BINARY_NUMBER_MODE:jo,REGEXP_MODE:Lo,TITLE_MODE:Fo,UNDERSCORE_TITLE_MODE:Bo,METHOD_GUARD:Uo,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function Yo(e,t){"."===e.input[e.index-1]&&t.ignoreMatch()}function zo(e,t){void 0!==e.className&&(e.scope=e.className,delete e.className)}function Wo(e,t){t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=Yo,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,void 0===e.relevance&&(e.relevance=0))}function Go(e,t){Array.isArray(e.illegal)&&(e.illegal=yo(...e.illegal))}function Vo(e,t){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function qo(e,t){void 0===e.relevance&&(e.relevance=1)}const Qo=(e,t)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},e);Object.keys(e).forEach((t=>{delete e[t]})),e.keywords=n.keywords,e.begin=go(n.beforeMatch,fo(n.begin)),e.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},e.relevance=0,delete n.beforeMatch},$o=["of","and","for","in","not","or","if","then","parent","list","value"];function Xo(e,t,n="keyword"){const r=Object.create(null);return"string"==typeof e?i(n,e.split(" ")):Array.isArray(e)?i(n,e):Object.keys(e).forEach((function(n){Object.assign(r,Xo(e[n],t,n))})),r;function i(e,n){t&&(n=n.map((e=>e.toLowerCase()))),n.forEach((function(t){const n=t.split("|");r[n[0]]=[e,Ko(n[0],n[1])]}))}}function Ko(e,t){return t?Number(t):function(e){return $o.includes(e.toLowerCase())}(e)?0:1}const Zo={},Jo=e=>{console.error(e)},ea=(e,...t)=>{console.log(`WARN: ${e}`,...t)},ta=(e,t)=>{Zo[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),Zo[`${e}/${t}`]=!0)},na=new Error;function ra(e,t,{key:n}){let r=0;const i=e[n],o={},a={};for(let e=1;e<=t.length;e++)a[e+r]=i[e],o[e+r]=!0,r+=bo(t[e-1]);e[n]=a,e[n]._emit=o,e[n]._multi=!0}function ia(e){!function(e){e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,delete e.scope)}(e),"string"==typeof e.beginScope&&(e.beginScope={_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope}),function(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw Jo("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),na;if("object"!=typeof e.beginScope||null===e.beginScope)throw Jo("beginScope must be object"),na;ra(e,e.begin,{key:"beginScope"}),e.begin=xo(e.begin,{joinWith:""})}}(e),function(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw Jo("skip, excludeEnd, returnEnd not compatible with endScope: {}"),na;if("object"!=typeof e.endScope||null===e.endScope)throw Jo("endScope must be object"),na;ra(e,e.end,{key:"endScope"}),e.end=xo(e.end,{joinWith:""})}}(e)}function oa(e){function t(t,n){return new RegExp(po(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=bo(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map((e=>e[1]));this.matcherRe=t(xo(e,{joinWith:"|"}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const t=this.matcherRe.exec(e);if(!t)return null;const n=t.findIndex(((e,t)=>t>0&&void 0!==e)),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n;return this.rules.slice(e).forEach((([e,n])=>t.addRule(e,n))),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=ao(e.classNameAliases||{}),function n(i,o){const a=i;if(i.isCompiled)return a;[zo,Vo,ia,Qo].forEach((e=>e(i,o))),e.compilerExtensions.forEach((e=>e(i,o))),i.__beforeBegin=null,[Wo,Go,qo].forEach((e=>e(i,o))),i.isCompiled=!0;let s=null;return"object"==typeof i.keywords&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),s=i.keywords.$pattern,delete i.keywords.$pattern),s=s||/\w+/,i.keywords&&(i.keywords=Xo(i.keywords,e.case_insensitive)),a.keywordPatternRe=t(s,!0),o&&(i.begin||(i.begin=/\B|\b/),a.beginRe=t(a.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(a.endRe=t(a.end)),a.terminatorEnd=po(a.end)||"",i.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(i.end?"|":"")+o.terminatorEnd)),i.illegal&&(a.illegalRe=t(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map((function(e){return function(e){e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(t){return ao(e,{variants:null},t)})));if(e.cachedVariants)return e.cachedVariants;if(aa(e))return ao(e,{starts:e.starts?ao(e.starts):null});if(Object.isFrozen(e))return ao(e);return e}("self"===e?i:e)}))),i.contains.forEach((function(e){n(e,a)})),i.starts&&n(i.starts,o),a.matcher=function(e){const t=new r;return e.contains.forEach((e=>t.addRule(e.begin,{rule:e,type:"begin"}))),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t}(a),a}(e)}function aa(e){return!!e&&(e.endsWithParent||aa(e.starts))}class sa extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const la=oo,ua=ao,ca=Symbol("nomatch");var da=function(e){const t=Object.create(null),n=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let s={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:ho};function l(e){return s.noHighlightRe.test(e)}function u(e,t,n){let r="",i="";"object"==typeof t?(r=e,n=t.ignoreIllegals,i=t.language):(ta("10.7.0","highlight(lang, code, ...args) has been deprecated."),ta("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),i=e,r=t),void 0===n&&(n=!0);const o={code:r,language:i};y("before:highlight",o);const a=o.result?o.result:c(o.language,o.code,n);return a.code=o.code,y("after:highlight",a),a}function c(e,n,r,a){const l=Object.create(null);function u(){if(!k.keywords)return void C.addText(E);let e=0;k.keywordPatternRe.lastIndex=0;let t=k.keywordPatternRe.exec(E),n="";for(;t;){n+=E.substring(e,t.index);const i=x.case_insensitive?t[0].toLowerCase():t[0],o=(r=i,k.keywords[r]);if(o){const[e,r]=o;if(C.addText(n),n="",l[i]=(l[i]||0)+1,l[i]<=7&&(O+=r),e.startsWith("_"))n+=t[0];else{const n=x.classNameAliases[e]||e;C.addKeyword(t[0],n)}}else n+=t[0];e=k.keywordPatternRe.lastIndex,t=k.keywordPatternRe.exec(E)}var r;n+=E.substring(e),C.addText(n)}function h(){null!=k.subLanguage?function(){if(""===E)return;let e=null;if("string"==typeof k.subLanguage){if(!t[k.subLanguage])return void C.addText(E);e=c(k.subLanguage,E,!0,T[k.subLanguage]),T[k.subLanguage]=e._top}else e=d(E,k.subLanguage.length?k.subLanguage:null);k.relevance>0&&(O+=e.relevance),C.addSublanguage(e._emitter,e.language)}():u(),E=""}function p(e,t){let n=1;const r=t.length-1;for(;n<=r;){if(!e._emit[n]){n++;continue}const r=x.classNameAliases[e[n]]||e[n],i=t[n];r?C.addKeyword(i,r):(E=i,u(),E=""),n++}}function f(e,t){return e.scope&&"string"==typeof e.scope&&C.openNode(x.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(C.addKeyword(E,x.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),E=""):e.beginScope._multi&&(p(e.beginScope,t),E="")),k=Object.create(e,{parent:{value:k}}),k}function v(e,t,n){let r=function(e,t){const n=e&&e.exec(t);return n&&0===n.index}(e.endRe,n);if(r){if(e["on:end"]){const n=new io(e);e["on:end"](t,n),n.isMatchIgnored&&(r=!1)}if(r){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,n)}function g(e){return 0===k.matcher.regexIndex?(E+=e[0],1):(A=!0,0)}function y(e){const t=e[0],r=n.substring(e.index),i=v(k,e,r);if(!i)return ca;const o=k;k.endScope&&k.endScope._wrap?(h(),C.addKeyword(t,k.endScope._wrap)):k.endScope&&k.endScope._multi?(h(),p(k.endScope,e)):o.skip?E+=t:(o.returnEnd||o.excludeEnd||(E+=t),h(),o.excludeEnd&&(E=t));do{k.scope&&C.closeNode(),k.skip||k.subLanguage||(O+=k.relevance),k=k.parent}while(k!==i.parent);return i.starts&&f(i.starts,e),o.returnEnd?0:t.length}let b={};function w(t,o){const a=o&&o[0];if(E+=t,null==a)return h(),0;if("begin"===b.type&&"end"===o.type&&b.index===o.index&&""===a){if(E+=n.slice(o.index,o.index+1),!i){const t=new Error(`0 width match regex (${e})`);throw t.languageName=e,t.badRule=b.rule,t}return 1}if(b=o,"begin"===o.type)return function(e){const t=e[0],n=e.rule,r=new io(n),i=[n.__beforeBegin,n["on:begin"]];for(const n of i)if(n&&(n(e,r),r.isMatchIgnored))return g(t);return n.skip?E+=t:(n.excludeBegin&&(E+=t),h(),n.returnBegin||n.excludeBegin||(E=t)),f(n,e),n.returnBegin?0:t.length}(o);if("illegal"===o.type&&!r){const e=new Error('Illegal lexeme "'+a+'" for mode "'+(k.scope||"<unnamed>")+'"');throw e.mode=k,e}if("end"===o.type){const e=y(o);if(e!==ca)return e}if("illegal"===o.type&&""===a)return 1;if(M>1e5&&M>3*o.index){throw new Error("potential infinite loop, way more iterations than matches")}return E+=a,a.length}const x=m(e);if(!x)throw Jo(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const _=oa(x);let S="",k=a||_;const T={},C=new s.__emitter(s);!function(){const e=[];for(let t=k;t!==x;t=t.parent)t.scope&&e.unshift(t.scope);e.forEach((e=>C.openNode(e)))}();let E="",O=0,D=0,M=0,A=!1;try{for(k.matcher.considerAll();;){M++,A?A=!1:k.matcher.considerAll(),k.matcher.lastIndex=D;const e=k.matcher.exec(n);if(!e)break;const t=w(n.substring(D,e.index),e);D=e.index+t}return w(n.substring(D)),C.closeAllNodes(),C.finalize(),S=C.toHTML(),{language:e,value:S,relevance:O,illegal:!1,_emitter:C,_top:k}}catch(t){if(t.message&&t.message.includes("Illegal"))return{language:e,value:la(n),illegal:!0,relevance:0,_illegalBy:{message:t.message,index:D,context:n.slice(D-100,D+100),mode:t.mode,resultSoFar:S},_emitter:C};if(i)return{language:e,value:la(n),illegal:!1,relevance:0,errorRaised:t,_emitter:C,_top:k};throw t}}function d(e,n){n=n||s.languages||Object.keys(t);const r=function(e){const t={value:la(e),illegal:!1,relevance:0,_top:a,_emitter:new s.__emitter(s)};return t._emitter.addText(e),t}(e),i=n.filter(m).filter(g).map((t=>c(t,e,!1)));i.unshift(r);const o=i.sort(((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(m(e.language).supersetOf===t.language)return 1;if(m(t.language).supersetOf===e.language)return-1}return 0})),[l,u]=o,d=l;return d.secondBest=u,d}function h(e){let t=null;const r=function(e){let t=e.className+" ";t+=e.parentNode?e.parentNode.className:"";const n=s.languageDetectRe.exec(t);if(n){const t=m(n[1]);return t||(ea(o.replace("{}",n[1])),ea("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}return t.split(/\s+/).find((e=>l(e)||m(e)))}(e);if(l(r))return;if(y("before:highlightElement",{el:e,language:r}),e.children.length>0&&(s.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(e)),s.throwUnescapedHTML)){throw new sa("One of your code blocks includes unescaped HTML.",e.innerHTML)}t=e;const i=t.textContent,a=r?u(i,{language:r,ignoreIllegals:!0}):d(i);e.innerHTML=a.value,function(e,t,r){const i=t&&n[t]||r;e.classList.add("hljs"),e.classList.add(`language-${i}`)}(e,r,a.language),e.result={language:a.language,re:a.relevance,relevance:a.relevance},a.secondBest&&(e.secondBest={language:a.secondBest.language,relevance:a.secondBest.relevance}),y("after:highlightElement",{el:e,result:a,text:i})}let p=!1;function f(){if("loading"===document.readyState)return void(p=!0);document.querySelectorAll(s.cssSelector).forEach(h)}function m(e){return e=(e||"").toLowerCase(),t[e]||t[n[e]]}function v(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach((e=>{n[e.toLowerCase()]=t}))}function g(e){const t=m(e);return t&&!t.disableAutodetect}function y(e,t){const n=e;r.forEach((function(e){e[n]&&e[n](t)}))}"undefined"!=typeof window&&window.addEventListener&&window.addEventListener("DOMContentLoaded",(function(){p&&f()}),!1),Object.assign(e,{highlight:u,highlightAuto:d,highlightAll:f,highlightElement:h,highlightBlock:function(e){return ta("10.7.0","highlightBlock will be removed entirely in v12.0"),ta("10.7.0","Please use highlightElement now."),h(e)},configure:function(e){s=ua(s,e)},initHighlighting:()=>{f(),ta("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:function(){f(),ta("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:function(n,r){let o=null;try{o=r(e)}catch(e){if(Jo("Language definition for '{}' could not be registered.".replace("{}",n)),!i)throw e;Jo(e),o=a}o.name||(o.name=n),t[n]=o,o.rawDefinition=r.bind(null,e),o.aliases&&v(o.aliases,{languageName:n})},unregisterLanguage:function(e){delete t[e];for(const t of Object.keys(n))n[t]===e&&delete n[t]},listLanguages:function(){return Object.keys(t)},getLanguage:m,registerAliases:v,autoDetection:g,inherit:ua,addPlugin:function(e){!function(e){e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{e["before:highlightBlock"](Object.assign({block:t.el},t))}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{e["after:highlightBlock"](Object.assign({block:t.el},t))})}(e),r.push(e)}}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString="11.7.0",e.regex={concat:go,lookahead:fo,either:yo,optional:vo,anyNumberOfTimes:mo};for(const e in Ho)"object"==typeof Ho[e]&&no.exports(Ho[e]);return Object.assign(e,Ho),e}({}),ha=da;da.HighlightJS=da,da.default=da;var pa,fa=ft(ha);function ma(e){const t=e.regex,n=e.COMMENT("--","$"),r=["true","false","unknown"],i=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],o=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],a=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],s=o,l=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year","add","asc","collation","desc","final","first","last","view"].filter((e=>!o.includes(e))),u={begin:t.concat(/\b/,t.either(...s),/\s*\(/),relevance:0,keywords:{built_in:s}};return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:function(e,{exceptions:t,when:n}={}){const r=n;return t=t||[],e.map((e=>e.match(/\|\d+$/)||t.includes(e)?e:r(e)?`${e}|0`:e))}(l,{when:e=>e.length<3}),literal:r,type:i,built_in:["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"]},contains:[{begin:t.either(...a),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:l.concat(a),literal:r,type:i}},{className:"type",begin:t.either("double precision","large object","with timezone","without timezone")},u,{className:"variable",begin:/@[a-z0-9]+/},{className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},{begin:/"/,end:/"/,contains:[{begin:/""/}]},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,n,{className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0}]}}function va(e){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function ga(){return ga=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},ga.apply(null,arguments)}const ya=e=>se.createElement("svg",ga({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),pa||(pa=se.createElement("g",{fill:"none",fillRule:"evenodd"},se.createElement("path",{d:"M0 0h24v24H0z"}),se.createElement("path",{fill:"currentColor",d:"M12 2a10 10 0 0 1 10 10c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm0 12a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm0-8a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0V8a1 1 0 0 1 1-1Z"}))));var ba;function wa(){return wa=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},wa.apply(null,arguments)}const xa=e=>se.createElement("svg",wa({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),ba||(ba=se.createElement("g",{fill:"none",fillRule:"evenodd"},se.createElement("path",{d:"M0 0h24v24H0z"}),se.createElement("path",{fill:"currentColor",d:"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10S2 17.514 2 12 6.486 2 12 2Zm0 1c-4.963 0-9 4.037-9 9s4.037 9 9 9 9-4.037 9-9-4.037-9-9-9Zm2.713 6.309a.715.715 0 0 1 .979-.193c.325.212.413.642.167.995l-4.68 4.58a.718.718 0 0 1-.527.307L10.59 15a.717.717 0 0 1-.5-.202L8.207 12.95a.683.683 0 0 1 0-.979.717.717 0 0 1 .999 0l1.313 1.287Z"}))));var _a;function Sa(){return Sa=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},Sa.apply(null,arguments)}const ka=e=>se.createElement("svg",Sa({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),_a||(_a=se.createElement("g",{fill:"none",fillRule:"evenodd"},se.createElement("path",{d:"M0 0h24v24H0z"}),se.createElement("path",{fill:"currentColor",d:"M12 2a10 10 0 0 1 10 10c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm0 7a1 1 0 0 1 1 1v5a1 1 0 0 1-2 0v-5a1 1 0 0 1 1-1Zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"}))));var Ta,Ca,Ea,Oa,Da,Ma,Aa,Ia,Pa;function Ra(){return Ra=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},Ra.apply(null,arguments)}const Na=e=>se.createElement("svg",Ra({xmlns:"http://www.w3.org/2000/svg",style:{display:"block",shapeRendering:"auto",backgroundPosition:"initial initial",backgroundRepeat:"initial initial"},width:24,height:24,viewBox:"30 30 40 40",preserveAspectRatio:"xMidYMid"},e),Ta||(Ta=se.createElement("circle",{cx:65,cy:50,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-1.8140589569160996s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-1.8140589569160996s"}))),Ca||(Ca=se.createElement("circle",{cx:61.491,cy:59.642,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-1.5873015873015872s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-1.5873015873015872s"}))),Ea||(Ea=se.createElement("circle",{cx:52.605,cy:64.772,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-1.3605442176870748s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-1.3605442176870748s"}))),Oa||(Oa=se.createElement("circle",{cx:42.5,cy:62.99,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-1.1337868480725624s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-1.1337868480725624s"}))),Da||(Da=se.createElement("circle",{cx:35.905,cy:55.13,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-0.9070294784580498s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-0.9070294784580498s"}))),Ma||(Ma=se.createElement("circle",{cx:35.905,cy:44.87,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-0.6802721088435374s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-0.6802721088435374s"}))),Aa||(Aa=se.createElement("circle",{cx:42.5,cy:37.01,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-0.4535147392290249s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-0.4535147392290249s"}))),Ia||(Ia=se.createElement("circle",{cx:52.605,cy:35.228,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-0.22675736961451246s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-0.22675736961451246s"}))),Pa||(Pa=se.createElement("circle",{cx:61.491,cy:40.358,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"0s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"0s"}))));var ja;exports.AlertVariant=void 0,(ja=exports.AlertVariant||(exports.AlertVariant={})).Info="info",ja.Warning="warning",ja.Error="error",ja.Success="success",ja.InProgress="inProgress";var La,Fa=r.makeStyles((function(e){return{root:function(t){var n=t.position;return{padding:e.spacing(1),borderRadius:e.shape.borderRadius,display:"flex",alignItems:"center",marginTop:58*(null!=n?n:0)}},icon:{width:e.spacing(3),height:e.spacing(3),minWidth:e.spacing(3),minHeight:e.spacing(3)},warning:{background:e.palette.info[200]},info:{background:e.palette.info[100]},success:{background:e.palette.success[100]},error:{background:e.palette.error[100]},toastWarning:{padding:e.spacing(1.5,1),borderWidth:"1px",borderStyle:"solid",borderColor:e.palette.warning[300],boxShadow:e.shape.shadowLight,minWidth:"200px"},toastInfo:{padding:e.spacing(1.5,1),borderWidth:"1px",borderStyle:"solid",borderColor:e.palette.info[300],boxShadow:e.shape.shadowLight,minWidth:"200px"},toastSuccess:{padding:e.spacing(1.5,1),borderWidth:"1px",borderStyle:"solid",borderColor:e.palette.success[300],boxShadow:e.shape.shadowLight,minWidth:"200px"},toastError:{padding:e.spacing(1.5,1),borderWidth:"1px",borderStyle:"solid",borderColor:e.palette.error[300],boxShadow:e.shape.shadowLight,minWidth:"200px"},text:{marginLeft:e.spacing(1),marginRight:"auto"},close:{height:e.spacing(1.5),width:e.spacing(1.5),fill:e.palette.text.primary,marginRight:e.spacing(.5),marginLeft:e.spacing(1.5),cursor:"pointer"},warningIcon:{color:e.palette.warning[700]},infoIcon:{color:e.palette.info[700]},successIcon:{color:e.palette.success[700]},errorIcon:{color:e.palette.error[700]},inProgressIcon:{color:e.palette.success[700]}}})),Ba=function(t){var n=t.open,i=t.text,a=t.autoDismiss,s=t.dataTestId,l=t.onClose,u=t.variant,c=void 0===u?exports.AlertVariant.Info:u,d=t.isToast,h=void 0!==d&&d,p=t.width,f=t.icon,m=t.className,v=t.transitionTimeout,g=at(t,["open","text","autoDismiss","dataTestId","onClose","variant","isToast","width","icon","className","transitionTimeout"]),y=Fa(t),b=void 0===p?"auto":"".concat(p,"px"),w=y.root,x=e.jsx("span",{});switch(c){case exports.AlertVariant.Warning:w=dt(w,y.warning,h&&y.toastWarning),x=e.jsx(ya,{className:dt(y.icon,y.warningIcon)});break;case exports.AlertVariant.Success:w=dt(w,y.success,h&&y.toastSuccess),x=e.jsx(xa,{className:dt(y.icon,y.successIcon)});break;case exports.AlertVariant.Error:w=dt(w,y.error,h&&y.toastError),x=e.jsx(ya,{className:dt(y.icon,y.errorIcon)});break;case exports.AlertVariant.InProgress:w=dt(w,y.info,h&&y.toastInfo),x=e.jsx(Na,{className:dt(y.icon,y.inProgressIcon)});break;case exports.AlertVariant.Info:default:w=dt(w,y.info,h&&y.toastInfo),x=e.jsx(ka,{className:dt(y.icon,y.infoIcon)})}return h?e.jsx(r.Snackbar,ot({open:n,autoHideDuration:null!=a?a:6e3,TransitionComponent:r.Fade,anchorOrigin:{vertical:"top",horizontal:"center"},onClose:function(e,t){"clickaway"!==t&&l&&l()}},g,{children:e.jsxs("div",ot({"data-test-id":s,className:w,role:"alert","aria-label":"alert ".concat(c),style:{width:b}},{children:[null!=f?f:x,e.jsx("span",ot({className:y.text},{children:i})),l&&e.jsx(o.Close,{onClick:l,className:y.close})]}))})):e.jsx(r.Fade,ot({in:n,timeout:v},{children:e.jsxs("div",ot({className:dt(w,null!=m?m:""),role:"alert","data-testid":s,"aria-label":"alert ".concat(c),style:{width:b}},{children:[null!=f?f:x,e.jsx("span",ot({className:y.text},{children:i})),l&&e.jsx(o.Close,{onClick:l,className:y.close})]}))}))};function Ua(){return Ua=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},Ua.apply(null,arguments)}const Ha=e=>se.createElement("svg",Ua({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),La||(La=se.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 7.001v1H6.5a1.5 1.5 0 0 0-1.5 1.5v9a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5v-1.5h1v1.5a2.5 2.5 0 0 1-2.5 2.5h-7a2.5 2.5 0 0 1-2.5-2.5v-9a2.5 2.5 0 0 1 2.5-2.5H8Zm8-3h-5.5a1.5 1.5 0 0 0-1.5 1.5v9a1.5 1.5 0 0 0 1.5 1.5h7a1.5 1.5 0 0 0 1.5-1.5v-7.5h-2.5a.5.5 0 0 1-.5-.5v-2.5Zm4 2.528v7.972a2.5 2.5 0 0 1-2.5 2.5h-7a2.5 2.5 0 0 1-2.5-2.5v-9a2.5 2.5 0 0 1 2.5-2.5h5.972a.49.49 0 0 1 .382.146l3 3A.49.49 0 0 1 20 6.53Zm-3-.528h1.293L17 4.708v1.293Zm-5.5 7a.5.5 0 1 1 0-1h2a.5.5 0 1 1 0 1h-2Zm0-2a.5.5 0 1 1 0-1h5a.5.5 0 1 1 0 1h-5Zm0-2a.5.5 0 1 1 0-1h5a.5.5 0 1 1 0 1h-5Z"})));fa.registerLanguage("sql",ma),fa.registerLanguage("plaintext",va);var Ya,za=a.makeStyles((function(e){return{queryBlock:{background:"#F8FBFC",borderRadius:e.shape.borderRadius,color:e.palette.grey[800],margin:e.spacing(0,0,1,0),border:"1px solid ".concat(e.palette.grey[300]),position:"relative",overflowX:"hidden","&:hover":{overflowX:"auto"}},queryCode:{display:"block",position:"relative",fontFamily:"Menlo-Regular, Courier, monospace",fontSize:13,lineHeight:"17px",borderRadius:e.spacing(.5),margin:0,paddingRight:e.spacing(8)},queryCopyButton:{position:"absolute",right:0,top:0,backgroundColor:"#DFF5FF","& .MuiButton-label":{textTransform:"uppercase",fontSize:11.5}},queryCopyIcon:{position:"absolute",right:0,top:0,color:"#2B59C3",padding:e.spacing(1),marginTop:e.spacing(.5)},queryInlineButton:{top:e.spacing(.5),right:e.spacing(.75),display:"none"},queryHoverBlock:{padding:e.spacing(.5,.75),"&:hover":{background:"#E5EDFF"},"&:hover .yb-copy-btn":{display:"block"}},queryInnerBlock:{fontFamily:"Menlo-Regular, Courier, monospace",whiteSpace:"pre-wrap",margin:0,lineHeight:2.7,backgroundColor:"unset"},queryCollapsed:{display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical",overflow:"hidden"},queryExpanded:{display:"block"},queryToggleButton:{cursor:"pointer",color:e.palette.primary.main,marginTop:e.spacing(1),display:"flex",justifyContent:"center"}}}));function Wa(){return Wa=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},Wa.apply(null,arguments)}const Ga=e=>se.createElement("svg",Wa({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),Ya||(Ya=se.createElement("path",{fill:"currentColor",d:"M7.146 10.146a.5.5 0 0 1 .638-.057l.07.057 3.792 3.793a.5.5 0 0 0 .638.058l.07-.058 3.792-3.793a.5.5 0 0 1 .765.638l-.057.07-3.793 3.793a1.5 1.5 0 0 1-2.008.102l-.114-.102-3.793-3.793a.5.5 0 0 1 0-.708Z"})));fa.registerLanguage("sql",ma),fa.registerLanguage("plaintext",va);var Va=r.makeStyles((function(e){return{block:{background:e.palette.info[400],borderRadius:e.shape.borderRadius,color:e.palette.grey[800],margin:e.spacing(0,0,0,0),border:"1px solid ".concat(e.palette.grey[300]),position:"relative",overflowX:"hidden"},code:{display:"block",position:"relative",fontFamily:"Menlo-Regular, Courier, monospace",fontSize:13,lineHeight:"17px",borderRadius:e.spacing(.5),backgroundColor:"transparent",margin:0,paddingRight:e.spacing(8)},copyButton:{position:"absolute",right:0,top:0,backgroundColor:e.palette.info[200],"& .MuiButton-label":{textTransform:"uppercase",fontSize:11.5}},copyIcon:{position:"absolute",right:0,top:0,color:e.palette.primary[600],padding:e.spacing(1)},inlineButton:{top:e.spacing(.5),right:e.spacing(.75),display:"none"},hoverBlock:{padding:e.spacing(.5,.75),"&:hover":{background:e.palette.primary[200]},"&:hover .yb-copy-btn":{display:"block"}},innerBlock:{fontFamily:"Menlo-Regular, Courier, monospace",whiteSpace:"pre-wrap",margin:0,lineHeight:2.7,backgroundColor:"unset"},caret:{marginLeft:"auto",transition:e.transitions.create("transform")},rotate:{transform:"rotate(180deg)"},handPointer:{cursor:"pointer"}}})),qa=function(n){var i=n.showCopyButton;n.analyticsEventProps;var o=n.multiBlock,a=n.text,s=n.codeClassName,l=n.preClassName,u=n.lang,c=n.containerClassName,d=n.dataTestId,h=n.enabledExpandCollapse,p=void 0!==h&&h,f=n.showExpandCollapse,m=void 0===f||f,v=n.collapseHeight,g=void 0===v?50:v,y=Va();to().t;var b=t.useRef(null),w=t.useRef(null),x=t.useState(!p),_=x[0],S=x[1],k=t.useState(!1),T=k[0],C=k[1],E=Li().addToast,O=null!=u?u:"language-plaintext";t.useEffect((function(){fa.highlightAll()}),[a]),t.useEffect((function(){S(!1),C(!1)}),[a]);var D=function(e){return st(void 0,void 0,void 0,(function(){return lt(this,(function(t){switch(t.label){case 0:return[4,navigator.clipboard.writeText(e)];case 1:return t.sent(),E(exports.AlertVariant.Success,"Successfully copied code block",2e3),[2]}}))}))},M=function(e){return st(void 0,void 0,void 0,(function(){var t,n;return lt(this,(function(r){switch(r.label){case 0:return[4,D(null===(n=(null===(t=null==e?void 0:e.currentTarget)||void 0===t?void 0:t.previousSibling).innerText)||void 0===n?void 0:n.replace(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/g,"$'"))];case 1:return r.sent(),[2]}}))}))};return t.useEffect((function(){var e;_&&(null==w?void 0:w.current)&&(null===(e=null==w?void 0:w.current)||void 0===e||e.scrollTo({top:0}))}),[_]),t.useLayoutEffect((function(){var e=setTimeout((function(){var e,t;(null==w?void 0:w.current)&&C(p&&Math.round(null!==(t=null===(e=null==w?void 0:w.current)||void 0===e?void 0:e.clientHeight)&&void 0!==t?t:0)>g)}),100);return function(){return clearTimeout(e)}}),[a,g,p]),e.jsxs(r.Box,ot({className:dt(y.block,c),"data-testid":null!=d?d:""},{children:[e.jsx(r.Collapse,ot({in:_,collapsedHeight:T||!m?g:"fit-content"},{children:e.jsx("div",ot({ref:w},{children:o&&Array.isArray(a)?null==a?void 0:a.map((function(t,n){return e.jsxs("pre",ot({className:dt(y.code,y.hoverBlock,l)},{children:[e.jsx("code",ot({className:dt(y.innerBlock,s,O)},{children:t})),i&&e.jsx(Ni,ot({variant:"ghost",className:dt(y.copyButton,y.inlineButton,"yb-copy-btn"),onClick:M},{children:"Copy"}))]}),"code-block-line-".concat(String(n+1)))})):e.jsxs("pre",ot({className:dt(y.code,l)},{children:[e.jsx("code",ot({className:dt(y.innerBlock,s,O),ref:b},{children:a})),i&&e.jsx(r.IconButton,ot({className:y.copyIcon,onClick:function(e){e.stopPropagation(),function(){var e,t,n;D(null!==(n=null===(t=null===(e=null==b?void 0:b.current)||void 0===e?void 0:e.innerText)||void 0===t?void 0:t.replace(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/g,"$'"))&&void 0!==n?n:"")}()}},{children:e.jsx(Ha,{fontSize:"small"})}))]}))}))})),m&&T&&e.jsx(r.Box,ot({mb:1,display:"flex",alignItems:"center",justifyContent:"flex-end"},{children:e.jsxs(r.Box,ot({component:"a",className:y.handPointer,display:"flex",alignItems:"center",onClick:function(){return S(!_)}},{children:[e.jsx(r.Typography,ot({variant:"body2",color:"primary"},{children:e.jsx("strong",{children:_?"Collapse":"Show All"})})),e.jsx(Ga,{className:dt(y.caret,_&&y.rotate)})]}))}))]}))},Qa=a.makeStyles((function(e){var t;return{searchBox:{maxWidth:520,flexGrow:1,marginRight:"auto"},refreshBtn:{marginRight:e.spacing(1)},tableHeaderCell:{position:"relative",borderBottom:"1px solid ".concat(e.palette.grey[300]),"&:first-of-type":{padding:e.spacing(.25,0,1,3),"&:before":{width:"calc(100% - ".concat(e.spacing(2),"px)")}},"&:last-of-type":{"&:before":{width:"calc(100% - ".concat(e.spacing(2),"px)"),right:e.spacing(2)}},"&:before":{content:'""',position:"absolute",right:0,bottom:0,height:"1px",width:"100%"}},rowTableCell:{},tableContainer:{padding:e.spacing(1,0)},tableRow:{cursor:"pointer","&:hover":{backgroundColor:"#F2F6FF"},'&:hover + tr[data-row-type="query-statement"]':{backgroundColor:"#F2F6FF"},'&:has(+ tr[data-row-type="query-statement"]:hover)':{backgroundColor:"#F2F6FF"}},queryTableRow:{cursor:"pointer","&:hover":{backgroundColor:"#F2F6FF"}},queryTableCell:{padding:e.spacing(1,3),borderBottom:"0px"},queryPreBlock:(t={cursor:"pointer",backgroundColor:"#F8FBFC !important",textAlign:"left"},t[e.breakpoints.up("lg")]={},t[e.breakpoints.up("xl")]={},t),queryCodeElement:{lineHeight:1.5,whiteSpace:"nowrap",overflow:"hidden !important",textOverflow:"ellipsis",padding:"".concat(e.spacing(1.25,0,1,2)," !important")},queryContainerCode:{margin:e.spacing(1,0)},defaultActions:{textAlign:"right"},overrideExpandBtn:{padding:e.spacing(0,2)}}})),$a=r.makeStyles({errorContainer:{textAlign:"center",fontSize:"16px",lineHeight:"2em"},sadFace:{width:"40px"},errorText:{fontSize:"13px",fontFamily:"Inter",fontWeight:400}}),Xa=function(t){var n=t.type,i=t.uuid,o=t.customErrorMessage,a=$a(),s=e.jsx("span",{}),l=e.jsx("span",{});return"universe"===n&&(s=e.jsx(r.Box,{children:"Seems like universe with UUID ".concat(i," has issues or does not exist.")})),e.jsxs(r.Box,ot({className:a.errorContainer},{children:[e.jsx(r.Box,{children:e.jsx("span",{children:"Aww Snap."})}),e.jsx(r.Box,{children:s}),o&&e.jsx(r.Box,{children:e.jsx("span",ot({className:a.errorText},{children:o}))}),e.jsx(r.Box,{children:l})]}))},Ka=r.makeStyles((function(e){return{container:function(t){var n=t.width;return{width:null!=n?n:"170px",alignItems:"center",display:"flex",fontSize:"13px",fontWeight:400,fontFamily:"Inter",color:e.palette.common.lightBlue,fontStyle:"normal"}}}})),Za=function(t){var n=t.className,i=t.children,o=t.dataTestId,a=Ka(t);return e.jsx(r.Box,ot({className:dt(a.container,n),"data-testid":o},{children:i}))},Ja=function(t){var n=t.label;t.tooltip;var i=at(t,["label","tooltip"]);return e.jsx(r.TextField,ot({},i,{label:e.jsx(e.Fragment,{children:n}),variant:"standard"}))},es=e=>"checkbox"===e.type,ts=e=>e instanceof Date,ns=e=>null==e;const rs=e=>"object"==typeof e;var is=e=>!ns(e)&&!Array.isArray(e)&&rs(e)&&!ts(e),os=e=>is(e)&&e.target?es(e.target)?e.target.checked:e.target.value:e,as=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),ss=e=>Array.isArray(e)?e.filter(Boolean):[],ls=e=>void 0===e,us=(e,t,n)=>{if(!t||!is(e))return n;const r=ss(t.split(/[,[\].]+?/)).reduce(((e,t)=>ns(e)?e:e[t]),e);return ls(r)||r===e?ls(e[t])?n:e[t]:r};const cs="blur",ds="focusout",hs="change",ps="onBlur",fs="onChange",ms="onSubmit",vs="onTouched",gs="all",ys="max",bs="min",ws="maxLength",xs="minLength",_s="pattern",Ss="required",ks="validate",Ts=ae.default.createContext(null),Cs=()=>ae.default.useContext(Ts),Es=e=>{const{children:t,...n}=e;return ae.default.createElement(Ts.Provider,{value:n},t)};var Os=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const i=o;return t._proxyFormState[i]!==gs&&(t._proxyFormState[i]=!r||gs),n&&(n[i]=!0),e[i]}});return i},Ds=e=>is(e)&&!Object.keys(e).length,Ms=(e,t,n)=>{const{name:r,...i}=e;return Ds(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find((e=>t[e]===(!n||gs)))},As=e=>Array.isArray(e)?e:[e],Is=(e,t,n)=>n&&t?e===t:!e||!t||e===t||As(e).some((e=>e&&(e.startsWith(t)||t.startsWith(e))));function Ps(e){const t=ae.default.useRef(e);t.current=e,ae.default.useEffect((()=>{const n=!e.disabled&&t.current.subject.subscribe({next:t.current.callback});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var Rs=e=>"string"==typeof e,Ns=(e,t,n,r)=>Rs(e)?(r&&t.watch.add(e),us(n,e)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),us(n,e)))):(r&&(t.watchAll=!0),n),js="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Ls(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(js&&(e instanceof Blob||e instanceof FileList)||!n&&!is(e))return e;if(t=n?[]:{},Array.isArray(e)||(e=>{const t=e.constructor&&e.constructor.prototype;return is(t)&&t.hasOwnProperty("isPrototypeOf")})(e))for(const n in e)t[n]=Ls(e[n]);else t=e}return t}function Fs(e){const t=Cs(),{name:n,control:r=t.control,shouldUnregister:i}=e,o=as(r._names.array,n),a=function(e){const t=Cs(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=ae.default.useRef(r);s.current=r,Ps({disabled:o,subject:n._subjects.watch,callback:e=>{if(Is(s.current,e.name,a)){const t=Ns(s.current,n._names,e.values||n._formValues);u(ls(t)?i:Ls(t))}}});const[l,u]=ae.default.useState(ls(i)?n._getWatch(r):i);return ae.default.useEffect((()=>n._removeUnmounted())),l}({control:r,name:n,defaultValue:us(r._formValues,n,us(r._defaultValues,n,e.defaultValue)),exact:!0}),s=function(e){const t=Cs(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=ae.default.useState(n._formState),l=ae.default.useRef(!0),u=ae.default.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=ae.default.useRef(i);return c.current=i,Ps({disabled:r,callback:ae.default.useCallback((e=>l.current&&Is(c.current,e.name,o)&&Ms(e,u.current)&&s({...n._formState,...e})),[n,o]),subject:n._subjects.state}),ae.default.useEffect((()=>{l.current=!0;const e=n._proxyFormState.isDirty&&n._getDirty();return e!==n._formState.isDirty&&n._subjects.state.next({isDirty:e}),n._updateValid(),()=>{l.current=!1}}),[n]),Os(a,n,u.current,!1)}({control:r,name:n}),l=ae.default.useRef(r.register(n,{...e.rules,value:a}));return ae.default.useEffect((()=>{const e=(e,t)=>{const n=us(r._fields,e);n&&(n._f.mount=t)};return e(n,!0),()=>{const t=r._options.shouldUnregister||i;(o?t&&!r._stateFlags.action:t)?r.unregister(n):e(n,!1)}}),[n,r,o,i]),{field:{name:n,value:a,onChange:ae.default.useCallback((e=>l.current.onChange({target:{value:os(e),name:n},type:hs})),[n]),onBlur:ae.default.useCallback((()=>l.current.onBlur({target:{value:us(r._formValues,n),name:n},type:cs})),[n,r]),ref:e=>{const t=us(r._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!us(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!us(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!us(s.touchedFields,n)},error:{enumerable:!0,get:()=>us(s.errors,n)}})}}var Bs=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Us=e=>/^\w*$/.test(e),Hs=e=>ss(e.replace(/["|']|\]/g,"").split(/\.|\[/));function Ys(e,t,n){let r=-1;const i=Us(t)?[t]:Hs(t),o=i.length,a=o-1;for(;++r<o;){const t=i[r];let o=n;if(r!==a){const n=e[t];o=is(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}e[t]=o,e=e[t]}return e}const zs=(e,t,n)=>{for(const r of n||Object.keys(e)){const n=us(e,r);if(n){const{_f:e,...r}=n;if(e&&t(e.name)){if(e.ref.focus){e.ref.focus();break}if(e.refs&&e.refs[0].focus){e.refs[0].focus();break}}else is(r)&&zs(r,t)}}};var Ws=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))))),Gs=(e,t,n)=>{const r=ss(us(e,n));return Ys(r,"root",t[n]),Ys(e,n,r),e},Vs=e=>"boolean"==typeof e,qs=e=>"file"===e.type,Qs=e=>"function"==typeof e,$s=e=>Rs(e)||ae.default.isValidElement(e),Xs=e=>"radio"===e.type,Ks=e=>e instanceof RegExp;const Zs={value:!1,isValid:!1},Js={value:!0,isValid:!0};var el=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!ls(e[0].attributes.value)?ls(e[0].value)||""===e[0].value?Js:{value:e[0].value,isValid:!0}:Js:Zs}return Zs};const tl={isValid:!1,value:null};var nl=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),tl):tl;function rl(e,t,n="validate"){if($s(e)||Array.isArray(e)&&e.every($s)||Vs(e)&&!e)return{type:n,message:$s(e)?e:"",ref:t}}var il=e=>is(e)&&!Ks(e)?e:{value:e,message:""},ol=async(e,t,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:l,minLength:u,min:c,max:d,pattern:h,validate:p,name:f,valueAsNumber:m,mount:v,disabled:g}=e._f;if(!v||g)return{};const y=a?a[0]:o,b=e=>{r&&y.reportValidity&&(y.setCustomValidity(Vs(e)?"":e||""),y.reportValidity())},w={},x=Xs(o),_=es(o),S=x||_,k=(m||qs(o))&&!o.value||""===t||Array.isArray(t)&&!t.length,T=Bs.bind(null,f,n,w),C=(e,t,n,r=ws,i=xs)=>{const a=e?t:n;w[f]={type:e?r:i,message:a,ref:o,...T(e?r:i,a)}};if(i?!Array.isArray(t)||!t.length:s&&(!S&&(k||ns(t))||Vs(t)&&!t||_&&!el(a).isValid||x&&!nl(a).isValid)){const{value:e,message:t}=$s(s)?{value:!!s,message:s}:il(s);if(e&&(w[f]={type:Ss,message:t,ref:y,...T(Ss,t)},!n))return b(t),w}if(!(k||ns(c)&&ns(d))){let e,r;const i=il(d),a=il(c);if(ns(t)||isNaN(t)){const n=o.valueAsDate||new Date(t),s=e=>new Date((new Date).toDateString()+" "+e),l="time"==o.type,u="week"==o.type;Rs(i.value)&&t&&(e=l?s(t)>s(i.value):u?t>i.value:n>new Date(i.value)),Rs(a.value)&&t&&(r=l?s(t)<s(a.value):u?t<a.value:n<new Date(a.value))}else{const n=o.valueAsNumber||(t?+t:t);ns(i.value)||(e=n>i.value),ns(a.value)||(r=n<a.value)}if((e||r)&&(C(!!e,i.message,a.message,ys,bs),!n))return b(w[f].message),w}if((l||u)&&!k&&(Rs(t)||i&&Array.isArray(t))){const e=il(l),r=il(u),i=!ns(e.value)&&t.length>e.value,o=!ns(r.value)&&t.length<r.value;if((i||o)&&(C(i,e.message,r.message),!n))return b(w[f].message),w}if(h&&!k&&Rs(t)){const{value:e,message:r}=il(h);if(Ks(e)&&!t.match(e)&&(w[f]={type:_s,message:r,ref:o,...T(_s,r)},!n))return b(r),w}if(p)if(Qs(p)){const e=rl(await p(t),y);if(e&&(w[f]={...e,...T(ks,e.message)},!n))return b(e.message),w}else if(is(p)){let e={};for(const r in p){if(!Ds(e)&&!n)break;const i=rl(await p[r](t),y,r);i&&(e={...i,...T(r,i.message)},b(i.message),n&&(w[f]=e))}if(!Ds(e)&&(w[f]={ref:y,...e},!n))return w}return b(!0),w},al=e=>({isOnSubmit:!e||e===ms,isOnBlur:e===ps,isOnChange:e===fs,isOnAll:e===gs,isOnTouch:e===vs});function sl(e){for(const t in e)if(!ls(e[t]))return!1;return!0}function ll(e,t){const n=Us(t)?[t]:Hs(t),r=1==n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=ls(e)?r++:e[t[r++]];return e}(e,n),i=n[n.length-1];let o;r&&delete r[i];for(let t=0;t<n.slice(0,-1).length;t++){let r,i=-1;const a=n.slice(0,-(t+1)),s=a.length-1;for(t>0&&(o=e);++i<a.length;){const t=a[i];r=r?r[t]:e[t],s===i&&(is(r)&&Ds(r)||Array.isArray(r)&&sl(r))&&(o?delete o[t]:delete e[t]),o=r}}return e}function ul(){let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}}var cl=e=>ns(e)||!rs(e);function dl(e,t){if(cl(e)||cl(t))return e===t;if(ts(e)&&ts(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const n=e[i];if(!r.includes(i))return!1;if("ref"!==i){const e=t[i];if(ts(n)&&ts(e)||is(n)&&is(e)||Array.isArray(n)&&Array.isArray(e)?!dl(n,e):n!==e)return!1}}return!0}var hl=e=>{const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},pl=e=>"select-multiple"===e.type,fl=e=>hl(e)&&e.isConnected,ml=e=>{for(const t in e)if(Qs(e[t]))return!0;return!1};function vl(e,t={}){const n=Array.isArray(e);if(is(e)||n)for(const n in e)Array.isArray(e[n])||is(e[n])&&!ml(e[n])?(t[n]=Array.isArray(e[n])?[]:{},vl(e[n],t[n])):ns(e[n])||(t[n]=!0);return t}function gl(e,t,n){const r=Array.isArray(e);if(is(e)||r)for(const r in e)Array.isArray(e[r])||is(e[r])&&!ml(e[r])?ls(t)||cl(n[r])?n[r]=Array.isArray(e[r])?vl(e[r],[]):{...vl(e[r])}:gl(e[r],ns(t)?{}:t[r],n[r]):dl(e[r],t[r])?delete n[r]:n[r]=!0;return n}var yl=(e,t)=>gl(e,t,vl(t)),bl=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>ls(e)?e:t?""===e?NaN:e?+e:e:n&&Rs(e)?new Date(e):r?r(e):e;function wl(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return qs(t)?t.files:Xs(t)?nl(e.refs).value:pl(t)?[...t.selectedOptions].map((({value:e})=>e)):es(t)?el(e.refs).value:bl(ls(t.value)?e.ref.value:t.value,e)}var xl=e=>ls(e)?e:Ks(e)?e.source:is(e)?Ks(e.value)?e.value.source:e.value:e;function _l(e,t,n){const r=us(e,n);if(r||Us(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const r=i.join("."),o=us(t,r),a=us(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}const Sl={mode:ms,reValidateMode:fs,shouldFocusError:!0};function kl(e={}){let t,n={...Sl,...e},r={submitCount:0,isDirty:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},o=Ls(n.defaultValues)||{},a=n.shouldUnregister?{}:Ls(o),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u=0;const c={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={watch:ul(),array:ul(),state:ul()},h=al(n.mode),p=al(n.reValidateMode),f=n.criteriaMode===gs,m=async()=>{if(c.isValid){const e=n.resolver?Ds((await w()).errors):await x(i,!0);e!==r.isValid&&(r.isValid=e,d.state.next({isValid:e}))}},v=e=>c.isValidating&&e!==r.isValidating&&d.state.next({isValidating:e}),g=(e,t,n,r)=>{const l=us(i,e);if(l){const i=us(a,e,ls(n)?us(o,e):n);ls(i)||r&&r.defaultChecked||t?Ys(a,e,t?i:wl(l._f)):k(e,i),s.mount&&m()}},y=(e,t,n,i,a)=>{let s=!1,l=!1;const u={name:e};if((!n||i)&&(c.isDirty&&(l=r.isDirty,r.isDirty=u.isDirty=_(),s=l!==u.isDirty),c.dirtyFields)){l=us(r.dirtyFields,e);const n=dl(us(o,e),t);n?ll(r.dirtyFields,e):Ys(r.dirtyFields,e,!0),u.dirtyFields=r.dirtyFields,s=s||l!==!n}if(n){const t=us(r.touchedFields,e);t||(Ys(r.touchedFields,e,n),u.touchedFields=r.touchedFields,s=s||c.touchedFields&&t!==n)}return s&&a&&d.state.next(u),s?u:{}},b=(n,i,o,a)=>{const s=us(r.errors,n),l=c.isValid&&Vs(i)&&r.isValid!==i;var h;if(e.delayError&&o?(h=()=>((e,t)=>{Ys(r.errors,e,t),d.state.next({errors:r.errors})})(n,o),t=e=>{clearTimeout(u),u=window.setTimeout(h,e)},t(e.delayError)):(clearTimeout(u),t=null,o?Ys(r.errors,n,o):ll(r.errors,n)),(o?!dl(s,o):s)||!Ds(a)||l){const e={...a,...l&&Vs(i)?{isValid:i}:{},errors:r.errors,name:n};r={...r,...e},d.state.next(e)}v(!1)},w=async e=>await n.resolver(a,n.context,((e,t,n,r)=>{const i={};for(const n of e){const e=us(t,n);e&&Ys(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}})(e||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),x=async(e,t,i={valid:!0})=>{for(const o in e){const s=e[o];if(s){const{_f:e,...o}=s;if(e){const o=l.array.has(e.name),u=await ol(s,us(a,e.name),f,n.shouldUseNativeValidation,o);if(u[e.name]&&(i.valid=!1,t))break;!t&&(us(u,e.name)?o?Gs(r.errors,u,e.name):Ys(r.errors,e.name,u[e.name]):ll(r.errors,e.name))}o&&await x(o,t,i)}}return i.valid},_=(e,t)=>(e&&t&&Ys(a,e,t),!dl(D(),o)),S=(e,t,n)=>Ns(e,l,{...s.mount?a:ls(t)?o:Rs(e)?{[e]:t}:t},n),k=(e,t,n={})=>{const r=us(i,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&Ys(a,e,bl(t,n)),o=js&&hl(n.ref)&&ns(t)?"":t,pl(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?es(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):qs(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||d.watch.next({name:e})))}(n.shouldDirty||n.shouldTouch)&&y(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&O(e)},T=(e,t,n)=>{for(const r in t){const o=t[r],a=`${e}.${r}`,s=us(i,a);!l.array.has(e)&&cl(o)&&(!s||s._f)||ts(o)?k(a,o,n):T(a,o,n)}},C=(e,t,n={})=>{const s=us(i,e),u=l.array.has(e),h=Ls(t);Ys(a,e,h),u?(d.array.next({name:e,values:a}),(c.isDirty||c.dirtyFields)&&n.shouldDirty&&(r.dirtyFields=yl(o,a),d.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:_(e,h)}))):!s||s._f||ns(h)?k(e,h,n):T(e,h,n),Ws(e,l)&&d.state.next({}),d.watch.next({name:e})},E=async e=>{const o=e.target;let s=o.name;const u=us(i,s),g=()=>o.type?wl(u._f):os(e);if(u){let o,S;const k=g(),T=e.type===cs||e.type===ds,C=!((_=u._f).mount&&(_.required||_.min||_.max||_.maxLength||_.minLength||_.pattern||_.validate)||n.resolver||us(r.errors,s)||u._f.deps)||((e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e))(T,us(r.touchedFields,s),r.isSubmitted,p,h),E=Ws(s,l,T);Ys(a,s,k),T?(u._f.onBlur&&u._f.onBlur(e),t&&t(0)):u._f.onChange&&u._f.onChange(e);const D=y(s,k,T,!1),M=!Ds(D)||E;if(!T&&d.watch.next({name:s,type:e.type}),C)return c.isValid&&m(),M&&d.state.next({name:s,...E?{}:D});if(!T&&E&&d.state.next({}),v(!0),n.resolver){const{errors:e}=await w([s]),t=_l(r.errors,i,s),n=_l(e,i,t.name||s);o=n.error,s=n.name,S=Ds(e)}else o=(await ol(u,us(a,s),f,n.shouldUseNativeValidation))[s],o?S=!1:c.isValid&&(S=await x(i,!0));cl(k)&&g()!==k?v(!1):(u._f.deps&&O(u._f.deps),b(s,S,o,D))}var _},O=async(e,t={})=>{let o,a;const s=As(e);if(v(!0),n.resolver){const t=await(async e=>{const{errors:t}=await w();if(e)for(const n of e){const e=us(t,n);e?Ys(r.errors,n,e):ll(r.errors,n)}else r.errors=t;return t})(ls(e)?e:s);o=Ds(t),a=e?!s.some((e=>us(t,e))):o}else e?(a=(await Promise.all(s.map((async e=>{const t=us(i,e);return await x(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||r.isValid)&&m()):a=o=await x(i);return d.state.next({...!Rs(e)||c.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors,isValidating:!1}),t.shouldFocus&&!a&&zs(i,(e=>e&&us(r.errors,e)),e?s:l.mount),a},D=e=>{const t={...o,...s.mount?a:{}};return ls(e)?t:Rs(e)?us(t,e):e.map((e=>us(t,e)))},M=(e,t)=>({invalid:!!us((t||r).errors,e),isDirty:!!us((t||r).dirtyFields,e),isTouched:!!us((t||r).touchedFields,e),error:us((t||r).errors,e)}),A=(e,t={})=>{for(const s of e?As(e):l.mount)l.mount.delete(s),l.array.delete(s),us(i,s)&&(t.keepValue||(ll(i,s),ll(a,s)),!t.keepError&&ll(r.errors,s),!t.keepDirty&&ll(r.dirtyFields,s),!t.keepTouched&&ll(r.touchedFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&ll(o,s));d.watch.next({}),d.state.next({...r,...t.keepDirty?{isDirty:_()}:{}}),!t.keepIsValid&&m()},I=(e,t={})=>{let r=us(i,e);const u=Vs(t.disabled);return Ys(i,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),l.mount.add(e),r?u&&Ys(a,e,t.disabled?void 0:us(a,e,wl(r._f))):g(e,!0,t.value),{...u?{disabled:t.disabled}:{},...n.shouldUseNativeValidation?{required:!!t.required,min:xl(t.min),max:xl(t.max),minLength:xl(t.minLength),maxLength:xl(t.maxLength),pattern:xl(t.pattern)}:{},name:e,onChange:E,onBlur:E,ref:a=>{if(a){I(e,t),r=us(i,e);const n=ls(a.value)&&a.querySelectorAll&&a.querySelectorAll("input,select,textarea")[0]||a,s=(e=>Xs(e)||es(e))(n),l=r._f.refs||[];if(s?l.find((e=>e===n)):n===r._f.ref)return;Ys(i,e,{_f:{...r._f,...s?{refs:[...l.filter(fl),n,...Array.isArray(us(o,e))?[{}]:[]],ref:{type:n.type,name:e}}:{ref:n}}}),g(e,!1,void 0,n)}else r=us(i,e,{}),r._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&(!as(l.array,e)||!s.action)&&l.unMount.add(e)}}},P=()=>n.shouldFocusError&&zs(i,(e=>e&&us(r.errors,e)),l.mount);return{control:{register:I,unregister:A,getFieldState:M,_executeSchema:w,_focusError:P,_getWatch:S,_getDirty:_,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=us(i,e);t&&(t._f.refs?t._f.refs.every((e=>!fl(e))):!fl(t._f.ref))&&A(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],n,l,u=!0,h=!0)=>{if(l&&n){if(s.action=!0,h&&Array.isArray(us(i,e))){const t=n(us(i,e),l.argA,l.argB);u&&Ys(i,e,t)}if(h&&Array.isArray(us(r.errors,e))){const t=n(us(r.errors,e),l.argA,l.argB);u&&Ys(r.errors,e,t),((e,t)=>{!ss(us(e,t)).length&&ll(e,t)})(r.errors,e)}if(c.touchedFields&&h&&Array.isArray(us(r.touchedFields,e))){const t=n(us(r.touchedFields,e),l.argA,l.argB);u&&Ys(r.touchedFields,e,t)}c.dirtyFields&&(r.dirtyFields=yl(o,a)),d.state.next({name:e,isDirty:_(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Ys(a,e,t)},_getFieldArray:t=>ss(us(s.mount?a:o,t,e.shouldUnregister?us(o,t,[]):[])),_subjects:d,_proxyFormState:c,get _fields(){return i},get _formValues(){return a},get _stateFlags(){return s},set _stateFlags(e){s=e},get _defaultValues(){return o},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:O,register:I,handleSubmit:(e,t)=>async o=>{o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let s=!0,l=Ls(a);d.state.next({isSubmitting:!0});try{if(n.resolver){const{errors:e,values:t}=await w();r.errors=e,l=t}else await x(i);Ds(r.errors)?(d.state.next({errors:{},isSubmitting:!0}),await e(l,o)):(t&&await t({...r.errors},o),P())}catch(e){throw s=!1,e}finally{r.isSubmitted=!0,d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Ds(r.errors)&&s,submitCount:r.submitCount+1,errors:r.errors})}},watch:(e,t)=>Qs(e)?d.watch.subscribe({next:n=>e(S(void 0,t),n)}):S(e,t,!0),setValue:C,getValues:D,reset:(t,n)=>((t,n={})=>{const u=t||o,h=Ls(u),p=t&&!Ds(t)?h:o;if(n.keepDefaultValues||(o=u),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)us(r.dirtyFields,e)?Ys(p,e,us(a,e)):C(e,us(p,e));else{if(js&&ls(t))for(const e of l.mount){const t=us(i,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(hl(e)){const t=e.closest("form");if(t){t.reset();break}}}}i={}}a=e.shouldUnregister?n.keepDefaultValues?Ls(o):{}:h,d.array.next({values:p}),d.watch.next({values:p})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!c.isValid||!!n.keepIsValid,s.watch=!!e.shouldUnregister,d.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:n.keepDirty||n.keepDirtyValues?r.isDirty:!(!n.keepDefaultValues||dl(t,o)),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:n.keepDirty||n.keepDirtyValues?r.dirtyFields:n.keepDefaultValues&&t?yl(o,t):{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})})(Qs(t)?t(a):t,n),resetField:(e,t={})=>{us(i,e)&&(ls(t.defaultValue)?C(e,us(o,e)):(C(e,t.defaultValue),Ys(o,e,t.defaultValue)),t.keepTouched||ll(r.touchedFields,e),t.keepDirty||(ll(r.dirtyFields,e),r.isDirty=t.defaultValue?_(e,us(o,e)):_()),t.keepError||(ll(r.errors,e),c.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e?As(e).forEach((e=>ll(r.errors,e))):r.errors={},d.state.next({errors:r.errors})},unregister:A,setError:(e,t,n)=>{const o=(us(i,e,{_f:{}})._f||{}).ref;Ys(r.errors,e,{...t,ref:o}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},setFocus:(e,t={})=>{const n=us(i,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:M}}function Tl(e={}){const t=ae.default.useRef(),[n,r]=ae.default.useState({isDirty:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:e.defaultValues});t.current||(t.current={...kl(e),formState:n});const i=t.current.control;return i._options=e,Ps({subject:i._subjects.state,callback:ae.default.useCallback((e=>{Ms(e,i._proxyFormState,!0)&&(i._formState={...i._formState,...e},r({...i._formState}))}),[i])}),ae.default.useEffect((()=>{i._stateFlags.mount||(i._proxyFormState.isValid&&i._updateValid(),i._stateFlags.mount=!0),i._stateFlags.watch&&(i._stateFlags.watch=!1,i._subjects.state.next({})),i._removeUnmounted()})),ae.default.useEffect((()=>{n.submitCount&&i._focusError()}),[i,n.submitCount]),t.current.formState=Os(n,i),t.current}var Cl,El=function(t){var n,r,i=t.name,o=t.rules,a=t.defaultValue,s=t.control,l=t.shouldUnregister,u=at(t,["name","rules","defaultValue","control","shouldUnregister"]),c=Fs({name:i,rules:o,defaultValue:a,control:s,shouldUnregister:l}),d=c.field,h=d.ref,p=at(d,["ref"]),f=c.fieldState;return e.jsx(Ja,ot({},p,u,{inputRef:h,error:!!f.error,helperText:null!==(r=null===(n=f.error)||void 0===n?void 0:n.message)&&void 0!==r?r:u.helperText}))};function Ol(){return Ol=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},Ol.apply(null,arguments)}const Dl=e=>se.createElement("svg",Ol({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),Cl||(Cl=se.createElement("g",{fill:"none",fillRule:"evenodd"},se.createElement("path",{d:"M0 0h24v24H0z"}),se.createElement("path",{fill:"currentColor",d:"M12 2a10 10 0 0 1 10 10c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 8a1 1 0 0 0-1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0-1-1Zm0-3a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z"}))));var Ml=r.makeStyles((function(e){return{icon:{width:14,height:14,cursor:"pointer",color:e.palette.grey[500]}}})),Al=r.makeStyles((function(e){return{arrow:{"&:before":{backgroundColor:e.palette.grey[900],border:"1px solid ".concat(e.palette.grey[900])}},tooltip:{backgroundColor:e.palette.grey[900],border:"1px solid ".concat(e.palette.grey[900]),color:e.palette.common.white}}})),Il=function(t){var n=t.children,i=t.dark,o=at(t,["children","dark"]),a=Ml(),s=Al();return e.jsx(r.Tooltip,ot({arrow:!0,classes:i?s:void 0,placement:"top-start"},o,{children:null!=n?n:e.jsx(r.Box,ot({lineHeight:0,ml:.5},{children:e.jsx(Dl,{className:a.icon})}))}))},Pl=r.makeStyles((function(e){return{menuPaper:{maxHeight:400,marginTop:"6px"}}})),Rl=function(t){var n=t.label,i=t.tooltip,o=t.renderValue,a=t.menuProps,s=t.selectProps,l=void 0===s?{}:s,u=at(t,["label","tooltip","renderValue","menuProps","selectProps"]),c=Pl();return e.jsx(r.TextField,ot({},u,{label:e.jsxs(e.Fragment,{children:[n," ",i&&e.jsx(Il,{title:i,interactive:!0})]}),select:!0,SelectProps:ot({autoWidth:!1,IconComponent:Ga,displayEmpty:!0,renderValue:o,MenuProps:ot({classes:{paper:c.menuPaper},getContentAnchorEl:null,anchorOrigin:{vertical:"bottom",horizontal:"left"}},a)},l),variant:"standard"}))},Nl=function(t){var n=t.text,i=at(t,["text"]),o=to().t;return e.jsx(r.Box,ot({maxWidth:1024,marginRight:"auto"},i,{children:e.jsx(Ba,{open:!0,text:null!=n?n:o("common.genericFailure"),variant:exports.AlertVariant.Error})}))},jl=r.makeStyles((function(e){return{checkboxIcon:{width:16,height:16,margin:"3.14px",boxShadow:"inset 0 0 0 2px ".concat(e.palette.grey[400],", inset 0 -1px 0 ").concat(e.palette.grey[400]),backgroundColor:e.palette.grey[100],"input:hover ~ &":{backgroundColor:e.palette.grey[100]},"input:disabled ~ &":{boxShadow:"inset 0 0 0 2px ".concat(e.palette.grey[200],", inset 0 -1px 0 ").concat(e.palette.grey[200])}},checkboxCheckedIcon:{width:16,height:16,margin:"3.14px",boxSizing:"border-box",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e.palette.primary.main,boxShadow:"inset 0 0 0 2px ".concat(e.palette.primary.dark,", inset 0 -1px 0 ").concat(e.palette.primary.dark),color:"#fff",fontSize:"12px",fontWeight:"bold","&::after":{content:'"✓"',fontSize:"12px",fontWeight:"bold"}}}})),Ll=function(t){var n=t.label,i=t.labelClassName,o=t.showCheckedIcon,a=void 0!==o&&o,s=at(t,["label","labelClassName","showCheckedIcon"]),l=jl();return e.jsx(r.FormControlLabel,{control:e.jsx(r.Checkbox,ot({color:"primary"},s,{icon:e.jsx("span",{className:l.checkboxIcon}),checkedIcon:a?e.jsx("span",{className:l.checkboxCheckedIcon}):void 0})),label:e.jsx(r.Typography,ot({component:"span",variant:"body2"},{children:n})),className:i})};function Fl(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Bl(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Ul(e){Bl(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===Fi(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var Hl={};function Yl(){return Hl}function zl(e){if(Bl(1,arguments),!function(e){return Bl(1,arguments),e instanceof Date||"object"===Fi(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=Ul(e);return!isNaN(Number(t))}var Wl={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function Gl(e,t,n){Bl(2,arguments);var r=function(e,t){return Bl(2,arguments),Ul(e).getTime()-Ul(t).getTime()}(e,t)/36e5;return function(e){return e?Wl[e]:Wl.trunc}(null==n?void 0:n.roundingMethod)(r)}function Vl(e,t){return Bl(2,arguments),function(e,t){Bl(2,arguments);var n=Ul(e).getTime(),r=Fl(t);return new Date(n+r)}(e,-Fl(t))}function ql(e){Bl(1,arguments);var t=Ul(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function Ql(e){Bl(1,arguments);var t=Ul(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=ql(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=ql(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function $l(e){Bl(1,arguments);var t=Ul(e),n=ql(t).getTime()-function(e){Bl(1,arguments);var t=Ql(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),ql(n)}(t).getTime();return Math.round(n/6048e5)+1}function Xl(e,t){var n,r,i,o,a,s,l,u;Bl(1,arguments);var c=Yl(),d=Fl(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==i?i:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Ul(e),p=h.getUTCDay(),f=(p<d?7:0)+p-d;return h.setUTCDate(h.getUTCDate()-f),h.setUTCHours(0,0,0,0),h}function Kl(e,t){var n,r,i,o,a,s,l,u;Bl(1,arguments);var c=Ul(e),d=c.getUTCFullYear(),h=Yl(),p=Fl(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:h.firstWeekContainsDate)&&void 0!==r?r:null===(l=h.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(d+1,0,p),f.setUTCHours(0,0,0,0);var m=Xl(f,t),v=new Date(0);v.setUTCFullYear(d,0,p),v.setUTCHours(0,0,0,0);var g=Xl(v,t);return c.getTime()>=m.getTime()?d+1:c.getTime()>=g.getTime()?d:d-1}function Zl(e,t){Bl(1,arguments);var n=Ul(e),r=Xl(n,t).getTime()-function(e,t){var n,r,i,o,a,s,l,u;Bl(1,arguments);var c=Yl(),d=Fl(null!==(n=null!==(r=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==i?i:c.firstWeekContainsDate)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(u=l.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),h=Kl(e,t),p=new Date(0);return p.setUTCFullYear(h,0,d),p.setUTCHours(0,0,0,0),Xl(p,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function Jl(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var eu={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return Jl("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):Jl(n+1,2)},d:function(e,t){return Jl(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return Jl(e.getUTCHours()%12||12,t.length)},H:function(e,t){return Jl(e.getUTCHours(),t.length)},m:function(e,t){return Jl(e.getUTCMinutes(),t.length)},s:function(e,t){return Jl(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return Jl(Math.floor(r*Math.pow(10,n-3)),t.length)}},tu=eu,nu="midnight",ru="noon",iu="morning",ou="afternoon",au="evening",su="night",lu={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return tu.y(e,t)},Y:function(e,t,n,r){var i=Kl(e,r),o=i>0?i:1-i;return"YY"===t?Jl(o%100,2):"Yo"===t?n.ordinalNumber(o,{unit:"year"}):Jl(o,t.length)},R:function(e,t){return Jl(Ql(e),t.length)},u:function(e,t){return Jl(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Jl(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Jl(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return tu.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Jl(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=Zl(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):Jl(i,t.length)},I:function(e,t,n){var r=$l(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Jl(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):tu.d(e,t)},D:function(e,t,n){var r=function(e){Bl(1,arguments);var t=Ul(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Jl(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return Jl(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return Jl(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return Jl(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?ru:0===i?nu:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?au:i>=12?ou:i>=4?iu:su,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return tu.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):tu.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Jl(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Jl(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):tu.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):tu.s(e,t)},S:function(e,t){return tu.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return cu(i);case"XXXX":case"XX":return du(i);default:return du(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return cu(i);case"xxxx":case"xx":return du(i);default:return du(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+uu(i,":");default:return"GMT"+du(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+uu(i,":");default:return"GMT"+du(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e;return Jl(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,n,r){return Jl((r._originalDate||e).getTime(),t.length)}};function uu(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+Jl(o,2)}function cu(e,t){return e%60==0?(e>0?"-":"+")+Jl(Math.abs(e)/60,2):du(e,t)}function du(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+Jl(Math.floor(i/60),2)+n+Jl(i%60,2)}var hu=lu,pu=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},fu=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},mu={p:fu,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return pu(e,t);switch(i){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",pu(i,t)).replace("{{time}}",fu(o,t))}},vu=mu,gu=["D","DD"],yu=["YY","YYYY"];function bu(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var wu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},xu=function(e,t,n){var r,i=wu[e];return r="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function _u(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var Su={date:_u({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:_u({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:_u({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},ku={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Tu=function(e,t,n,r){return ku[e]};function Cu(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var Eu={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Cu({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Cu({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Cu({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Cu({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Cu({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},Ou=Eu;function Du(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var Mu,Au={ordinalNumber:(Mu={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Mu.matchPattern);if(!n)return null;var r=n[0],i=e.match(Mu.parsePattern);if(!i)return null;var o=Mu.valueCallback?Mu.valueCallback(i[0]):i[0];return{value:o=t.valueCallback?t.valueCallback(o):o,rest:e.slice(r.length)}}),era:Du({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Du({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Du({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Du({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Du({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},Iu={code:"en-US",formatDistance:xu,formatLong:Su,formatRelative:Tu,localize:Ou,match:Au,options:{weekStartsOn:0,firstWeekContainsDate:1}},Pu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ru=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Nu=/^'([^]*?)'?$/,ju=/''/g,Lu=/[a-zA-Z]/;function Fu(e,t,n){var r,i,o,a,s,l,u,c,d,h,p,f,m,v,g,y,b,w;Bl(2,arguments);var x=String(t),_=Yl(),S=null!==(r=null!==(i=null==n?void 0:n.locale)&&void 0!==i?i:_.locale)&&void 0!==r?r:Iu,k=Fl(null!==(o=null!==(a=null!==(s=null!==(l=null==n?void 0:n.firstWeekContainsDate)&&void 0!==l?l:null==n||null===(u=n.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(d=_.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==o?o:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var T=Fl(null!==(p=null!==(f=null!==(m=null!==(v=null==n?void 0:n.weekStartsOn)&&void 0!==v?v:null==n||null===(g=n.locale)||void 0===g||null===(y=g.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:_.weekStartsOn)&&void 0!==f?f:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var C=Ul(e);if(!zl(C))throw new RangeError("Invalid time value");var E=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}(C),O=Vl(C,E),D={firstWeekContainsDate:k,weekStartsOn:T,locale:S,_originalDate:C};return x.match(Ru).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,vu[t])(e,S.formatLong):e})).join("").match(Pu).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(Nu);if(!t)return e;return t[1].replace(ju,"'")}(r);var o,a=hu[i];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(o=r,-1===yu.indexOf(o))||bu(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==gu.indexOf(e)}(r)||bu(r,t,String(e)),a(O,r,S.localize,D);if(i.match(Lu))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("")}var Bu={exports:{}},Uu={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Uu);var Hu=Uu.exports,Yu={exports:{}},zu={exports:{}},Wu={exports:{}};!function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Wu);var Gu=Wu.exports,Vu={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")},e.exports=t.default}(Vu,Vu.exports);var qu=Vu.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,i.default)(1,arguments),e instanceof Date||"object"===(0,r.default)(e)&&"[object Date]"===Object.prototype.toString.call(e)};var r=n(Gu),i=n(qu);e.exports=t.default}(zu,zu.exports);var Qu=zu.exports,$u={exports:{}};!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===(0,r.default)(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))};var r=n(Gu),i=n(qu);e.exports=t.default}($u,$u.exports);var Xu=$u.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(1,arguments),!(0,r.default)(e)&&"number"!=typeof e)return!1;var t=(0,i.default)(e);return!isNaN(Number(t))};var r=n(Qu),i=n(Xu),o=n(qu);e.exports=t.default}(Yu,Yu.exports);var Ku=Yu.exports,Zu={exports:{}},Ju={exports:{}},ec={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);if(isNaN(t))return t;return t<0?Math.ceil(t):Math.floor(t)},e.exports=t.default}(ec,ec.exports);var tc=ec.exports,nc=ft(tc);!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(2,arguments);var n=(0,i.default)(e).getTime(),a=(0,r.default)(t);return new Date(n+a)};var r=n(tc),i=n(Xu),o=n(qu);e.exports=t.default}(Ju,Ju.exports);var rc=Ju.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,i.default)(2,arguments);var n=(0,o.default)(t);return(0,r.default)(e,-n)};var r=n(rc),i=n(qu),o=n(tc);e.exports=t.default}(Zu,Zu.exports);var ic=Zu.exports,oc={exports:{}},ac={exports:{}};!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,r.default)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var a=t.getTime(),s=n-a;return Math.floor(s/o)+1};var r=n(Xu),i=n(qu),o=864e5;e.exports=t.default}(ac,ac.exports);var sc=ac.exports,lc={exports:{}},uc={exports:{}};!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,r.default)(e),n=t.getUTCDay(),o=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t};var r=n(Xu),i=n(qu);e.exports=t.default}(uc,uc.exports);var cc=uc.exports,dc={exports:{}},hc={exports:{}};!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,i.default)(1,arguments);var t=(0,r.default)(e),n=t.getUTCFullYear(),a=new Date(0);a.setUTCFullYear(n+1,0,4),a.setUTCHours(0,0,0,0);var s=(0,o.default)(a),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var u=(0,o.default)(l);return t.getTime()>=s.getTime()?n+1:t.getTime()>=u.getTime()?n:n-1};var r=n(Xu),i=n(qu),o=n(cc);e.exports=t.default}(hc,hc.exports);var pc=hc.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(1,arguments);var t=(0,r.default)(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var a=(0,i.default)(n);return a};var r=n(pc),i=n(cc),o=n(qu);e.exports=t.default}(dc,dc.exports);var fc=dc.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,a.default)(1,arguments);var t=(0,r.default)(e),n=(0,i.default)(t).getTime()-(0,o.default)(t).getTime();return Math.round(n/s)+1};var r=n(Xu),i=n(cc),o=n(fc),a=n(qu),s=6048e5;e.exports=t.default}(lc,lc.exports);var mc=lc.exports,vc={exports:{}},gc={exports:{}},yc={};Object.defineProperty(yc,"__esModule",{value:!0}),yc.getDefaultOptions=function(){return bc},yc.setDefaultOptions=function(e){bc=e};var bc={};!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,s,l,u,c,d,h,p;(0,i.default)(1,arguments);var f=(0,a.getDefaultOptions)(),m=(0,o.default)(null!==(n=null!==(s=null!==(l=null!==(u=null==t?void 0:t.weekStartsOn)&&void 0!==u?u:null==t||null===(c=t.locale)||void 0===c||null===(d=c.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==l?l:f.weekStartsOn)&&void 0!==s?s:null===(h=f.locale)||void 0===h||null===(p=h.options)||void 0===p?void 0:p.weekStartsOn)&&void 0!==n?n:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=(0,r.default)(e),g=v.getUTCDay(),y=(g<m?7:0)+g-m;return v.setUTCDate(v.getUTCDate()-y),v.setUTCHours(0,0,0,0),v};var r=n(Xu),i=n(qu),o=n(tc),a=yc;e.exports=t.default}(gc,gc.exports);var wc=gc.exports,xc={exports:{}},_c={exports:{}};!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,l,u,c,d,h,p,f;(0,i.default)(1,arguments);var m=(0,r.default)(e),v=m.getUTCFullYear(),g=(0,s.getDefaultOptions)(),y=(0,a.default)(null!==(n=null!==(l=null!==(u=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(d=t.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==u?u:g.firstWeekContainsDate)&&void 0!==l?l:null===(p=g.locale)||void 0===p||null===(f=p.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(v+1,0,y),b.setUTCHours(0,0,0,0);var w=(0,o.default)(b,t),x=new Date(0);x.setUTCFullYear(v,0,y),x.setUTCHours(0,0,0,0);var _=(0,o.default)(x,t);return m.getTime()>=w.getTime()?v+1:m.getTime()>=_.getTime()?v:v-1};var r=n(Xu),i=n(qu),o=n(wc),a=n(tc),s=yc;e.exports=t.default}(_c,_c.exports);var Sc=_c.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,l,u,c,d,h,p,f;(0,i.default)(1,arguments);var m=(0,s.getDefaultOptions)(),v=(0,a.default)(null!==(n=null!==(l=null!==(u=null!==(c=null==t?void 0:t.firstWeekContainsDate)&&void 0!==c?c:null==t||null===(d=t.locale)||void 0===d||null===(h=d.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==u?u:m.firstWeekContainsDate)&&void 0!==l?l:null===(p=m.locale)||void 0===p||null===(f=p.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==n?n:1),g=(0,r.default)(e,t),y=new Date(0);y.setUTCFullYear(g,0,v),y.setUTCHours(0,0,0,0);var b=(0,o.default)(y,t);return b};var r=n(Sc),i=n(qu),o=n(wc),a=n(tc),s=yc;e.exports=t.default}(xc,xc.exports);var kc=xc.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,a.default)(1,arguments);var n=(0,r.default)(e),l=(0,i.default)(n,t).getTime()-(0,o.default)(n,t).getTime();return Math.round(l/s)+1};var r=n(Xu),i=n(wc),o=n(kc),a=n(qu),s=6048e5;e.exports=t.default}(vc,vc.exports);var Tc=vc.exports,Cc={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=e<0?"-":"",r=Math.abs(e).toString();for(;r.length<t;)r="0"+r;return n+r},e.exports=t.default}(Cc,Cc.exports);var Ec=Cc.exports,Oc={exports:{}};!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Ec),i={y:function(e,t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return(0,r.default)("yy"===t?i%100:i,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):(0,r.default)(n+1,2)},d:function(e,t){return(0,r.default)(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return(0,r.default)(e.getUTCHours()%12||12,t.length)},H:function(e,t){return(0,r.default)(e.getUTCHours(),t.length)},m:function(e,t){return(0,r.default)(e.getUTCMinutes(),t.length)},s:function(e,t){return(0,r.default)(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,i=e.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,n-3));return(0,r.default)(o,t.length)}},o=i;t.default=o,e.exports=t.default}(Oc,Oc.exports);var Dc=Oc.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(sc),i=n(mc),o=n(pc),a=n(Tc),s=n(Sc),l=n(Ec),u=n(Dc),c="midnight",d="noon",h="morning",p="afternoon",f="evening",m="night",v={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return u.default.y(e,t)},Y:function(e,t,n,r){var i=(0,s.default)(e,r),o=i>0?i:1-i;if("YY"===t){var a=o%100;return(0,l.default)(a,2)}return"Yo"===t?n.ordinalNumber(o,{unit:"year"}):(0,l.default)(o,t.length)},R:function(e,t){var n=(0,o.default)(e);return(0,l.default)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return(0,l.default)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return(0,l.default)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return(0,l.default)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return u.default.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return(0,l.default)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=(0,a.default)(e,r);return"wo"===t?n.ordinalNumber(i,{unit:"week"}):(0,l.default)(i,t.length)},I:function(e,t,n){var r=(0,i.default)(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):(0,l.default)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):u.default.d(e,t)},D:function(e,t,n){var i=(0,r.default)(e);return"Do"===t?n.ordinalNumber(i,{unit:"dayOfYear"}):(0,l.default)(i,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return(0,l.default)(o,2);case"eo":return n.ordinalNumber(o,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return(0,l.default)(o,t.length);case"co":return n.ordinalNumber(o,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=0===r?7:r;switch(t){case"i":return String(i);case"ii":return(0,l.default)(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,i=e.getUTCHours();switch(r=12===i?d:0===i?c:i/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,i=e.getUTCHours();switch(r=i>=17?f:i>=12?p:i>=4?h:m,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return u.default.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):u.default.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.default)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):(0,l.default)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):u.default.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):u.default.s(e,t)},S:function(e,t){return u.default.S(e,t)},X:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return y(i);case"XXXX":case"XX":return b(i);default:return b(i,":")}},x:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return y(i);case"xxxx":case"xx":return b(i);default:return b(i,":")}},O:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+g(i,":");default:return"GMT"+b(i,":")}},z:function(e,t,n,r){var i=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+g(i,":");default:return"GMT"+b(i,":")}},t:function(e,t,n,r){var i=r._originalDate||e,o=Math.floor(i.getTime()/1e3);return(0,l.default)(o,t.length)},T:function(e,t,n,r){var i=(r._originalDate||e).getTime();return(0,l.default)(i,t.length)}};function g(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+(0,l.default)(o,2)}function y(e,t){return e%60==0?(e>0?"-":"+")+(0,l.default)(Math.abs(e)/60,2):b(e,t)}function b(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+(0,l.default)(Math.floor(i/60),2)+n+(0,l.default)(i%60,2)}var w=v;t.default=w,e.exports=t.default}(oc,oc.exports);var Mc=oc.exports,Ac={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},r=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},i={p:r,P:function(e,t){var i,o=e.match(/(P+)(p+)?/)||[],a=o[1],s=o[2];if(!s)return n(e,t);switch(a){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",n(a,t)).replace("{{time}}",r(s,t))}},o=i;t.default=o,e.exports=t.default}(Ac,Ac.exports);var Ic=Ac.exports,Pc={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()},e.exports=t.default}(Pc,Pc.exports);var Rc=Pc.exports,Nc=ft(Rc),jc={};Object.defineProperty(jc,"__esModule",{value:!0}),jc.isProtectedDayOfYearToken=function(e){return-1!==Lc.indexOf(e)},jc.isProtectedWeekYearToken=function(e){return-1!==Fc.indexOf(e)},jc.throwProtectedError=function(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))};var Lc=["D","DD"],Fc=["YY","YYYY"];var Bc={exports:{}},Uc={exports:{}},Hc={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},r=function(e,t,r){var i,o=n[e];return i="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};t.default=r,e.exports=t.default}(Hc,Hc.exports);var Yc=Hc.exports,zc={exports:{}},Wc={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}},e.exports=t.default}(Wc,Wc.exports);var Gc=Wc.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Gc),i={date:(0,r.default)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,r.default)({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:(0,r.default)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};t.default=i,e.exports=t.default}(zc,zc.exports);var Vc=zc.exports,qc={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},r=function(e,t,r,i){return n[e]};t.default=r,e.exports=t.default}(qc,qc.exports);var Qc=qc.exports,$c={exports:{}},Xc={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=n&&n.width?String(n.width):i;r=e.formattingValues[o]||e.formattingValues[i]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}},e.exports=t.default}(Xc,Xc.exports);var Kc=Xc.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Kc),i={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:(0,r.default)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,r.default)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:(0,r.default)({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:(0,r.default)({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,r.default)({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},o=i;t.default=o,e.exports=t.default}($c,$c.exports);var Zc=$c.exports,Jc={exports:{}},ed={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a,s=o[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(l,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(l,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}},e.exports=t.default}(ed,ed.exports);var td=ed.exports,nd={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(i.length)}}},e.exports=t.default}(nd,nd.exports);var rd=nd.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(td),i={ordinalNumber:(0,n(rd).default)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}}),era:(0,r.default)({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:(0,r.default)({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:(0,r.default)({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:(0,r.default)({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:(0,r.default)({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},o=i;t.default=o,e.exports=t.default}(Jc,Jc.exports);var id=Jc.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Yc),i=n(Vc),o=n(Qc),a=n(Zc),s=n(id),l={code:"en-US",formatDistance:r.default,formatLong:i.default,formatRelative:o.default,localize:a.default,match:s.default,options:{weekStartsOn:0,firstWeekContainsDate:1}};t.default=l,e.exports=t.default}(Uc,Uc.exports);var od=Uc.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(od).default;t.default=r,e.exports=t.default}(Bc,Bc.exports);var ad=Bc.exports;!function(e,t){var n=Hu.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var b,w,x,_,S,k,T,C,E,O,D,M,A,I,P,R,N,j;(0,d.default)(2,arguments);var L=String(t),F=(0,h.getDefaultOptions)(),B=null!==(b=null!==(w=null==n?void 0:n.locale)&&void 0!==w?w:F.locale)&&void 0!==b?b:p.default,U=(0,c.default)(null!==(x=null!==(_=null!==(S=null!==(k=null==n?void 0:n.firstWeekContainsDate)&&void 0!==k?k:null==n||null===(T=n.locale)||void 0===T||null===(C=T.options)||void 0===C?void 0:C.firstWeekContainsDate)&&void 0!==S?S:F.firstWeekContainsDate)&&void 0!==_?_:null===(E=F.locale)||void 0===E||null===(O=E.options)||void 0===O?void 0:O.firstWeekContainsDate)&&void 0!==x?x:1);if(!(U>=1&&U<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=(0,c.default)(null!==(D=null!==(M=null!==(A=null!==(I=null==n?void 0:n.weekStartsOn)&&void 0!==I?I:null==n||null===(P=n.locale)||void 0===P||null===(R=P.options)||void 0===R?void 0:R.weekStartsOn)&&void 0!==A?A:F.weekStartsOn)&&void 0!==M?M:null===(N=F.locale)||void 0===N||null===(j=N.options)||void 0===j?void 0:j.weekStartsOn)&&void 0!==D?D:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw new RangeError("locale must contain localize property");if(!B.formatLong)throw new RangeError("locale must contain formatLong property");var Y=(0,o.default)(e);if(!(0,r.default)(Y))throw new RangeError("Invalid time value");var z=(0,l.default)(Y),W=(0,i.default)(Y,z),G={firstWeekContainsDate:U,weekStartsOn:H,locale:B,_originalDate:Y},V=L.match(m).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,s.default[t])(e,B.formatLong):e})).join("").match(f).map((function(r){if("''"===r)return"'";var i=r[0];if("'"===i)return function(e){var t=e.match(v);if(!t)return e;return t[1].replace(g,"'")}(r);var o=a.default[i];if(o)return null!=n&&n.useAdditionalWeekYearTokens||!(0,u.isProtectedWeekYearToken)(r)||(0,u.throwProtectedError)(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!(0,u.isProtectedDayOfYearToken)(r)||(0,u.throwProtectedError)(r,t,String(e)),o(W,r,B.localize,G);if(i.match(y))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return r})).join("");return V};var r=n(Ku),i=n(ic),o=n(Xu),a=n(Mc),s=n(Ic),l=n(Rc),u=jc,c=n(tc),d=n(qu),h=yc,p=n(ad),f=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,m=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,v=/^'([^]*?)'?$/,g=/''/g,y=/[a-zA-Z]/;e.exports=t.default}(Bu,Bu.exports);var sd=ft(Bu.exports);function ld(e,t,n){var r=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if("timeZoneName"===n[r].type)return n[r].value}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,t)}function ud(e,t){var n=function(e){if(!dd[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00"===t;dd[e]=n?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return dd[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var o=cd[n[i].type];o>=0&&(r[o]=parseInt(n[i].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(n,e)}var cd={year:0,month:1,day:2,hour:3,minute:4,second:5};var dd={};function hd(e,t,n,r,i,o,a){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,i,o,a),s}var pd=36e5,fd={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function md(e,t,n){var r,i,o;if(!e)return 0;if(r=fd.timezoneZ.exec(e))return 0;if(r=fd.timezoneHH.exec(e))return gd(o=parseInt(r[1],10))?-o*pd:NaN;if(r=fd.timezoneHHMM.exec(e)){o=parseInt(r[2],10);var a=parseInt(r[3],10);return gd(o,a)?(i=Math.abs(o)*pd+6e4*a,"+"===r[1]?-i:i):NaN}if(function(e){if(yd[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),yd[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var s=n?t:function(e){return hd(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),l=vd(s,e),u=n?l:function(e,t,n){var r=e.getTime(),i=r-t,o=vd(new Date(i),n);if(t===o)return t;i-=o-t;var a=vd(new Date(i),n);if(o===a)return o;return Math.max(o,a)}(t,l,e);return-u}return NaN}function vd(e,t){var n=ud(e,t),r=hd(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),i=e.getTime(),o=i%1e3;return r-(i-=o>=0?o:1e3+o)}function gd(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var yd={};var bd={X:function(e,t,n,r){var i=wd(r.timeZone,e);if(0===i)return"Z";switch(t){case"X":return Sd(i);case"XXXX":case"XX":return _d(i);default:return _d(i,":")}},x:function(e,t,n,r){var i=wd(r.timeZone,e);switch(t){case"x":return Sd(i);case"xxxx":case"xx":return _d(i);default:return _d(i,":")}},O:function(e,t,n,r){var i=wd(r.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(0===o)return n+String(i);var a=t||"";return n+String(i)+a+xd(o,2)}(i,":");default:return"GMT"+_d(i,":")}},z:function(e,t,n,r){switch(t){case"z":case"zz":case"zzz":return ld("short",e,r);default:return ld("long",e,r)}}};function wd(e,t){var n=e?md(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function xd(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}function _d(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e);return r+xd(Math.floor(i/60),2)+n+xd(Math.floor(i%60),2)}function Sd(e,t){return e%60==0?(e>0?"-":"+")+xd(Math.abs(e)/60,2):_d(e,t)}var kd=bd,Td=36e5,Cd=6e4,Ed={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/};function Od(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},r=null==n.additionalDigits?2:nc(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var i=function(e){var t,n={},r=Ed.dateTimePattern.exec(e);r?(n.date=r[1],t=r[3]):(r=Ed.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e);if(t){var i=Ed.timeZone.exec(t);i?(n.time=t.replace(i[1],""),n.timeZone=i[1].trim()):n.time=t}return n}(e),o=function(e,t){var n,r=Ed.YYY[t],i=Ed.YYYYY[t];if(n=Ed.YYYY.exec(e)||i.exec(e)){var o=n[1];return{year:parseInt(o,10),restDateString:e.slice(o.length)}}if(n=Ed.YY.exec(e)||r.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(i.date,r),a=o.year,s=function(e,t){if(null===t)return null;var n,r,i,o;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=Ed.MM.exec(e))return r=new Date(0),Pd(t,i=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,i),r):new Date(NaN);if(n=Ed.DDD.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=Id(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=Ed.MMDD.exec(e)){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return Pd(t,i,s)?(r.setUTCFullYear(t,i,s),r):new Date(NaN)}if(n=Ed.Www.exec(e))return Rd(t,o=parseInt(n[1],10)-1)?Dd(t,o):new Date(NaN);if(n=Ed.WwwD.exec(e)){o=parseInt(n[1],10)-1;var l=parseInt(n[2],10)-1;return Rd(t,o,l)?Dd(t,o,l):new Date(NaN)}return null}(o.restDateString,a);if(isNaN(s))return new Date(NaN);if(s){var l,u=s.getTime(),c=0;if(i.time&&(c=function(e){var t,n,r;if(t=Ed.HH.exec(e))return Nd(n=parseFloat(t[1].replace(",",".")))?n%24*Td:NaN;if(t=Ed.HHMM.exec(e))return Nd(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*Td+r*Cd:NaN;if(t=Ed.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var i=parseFloat(t[3].replace(",","."));return Nd(n,r,i)?n%24*Td+r*Cd+1e3*i:NaN}return null}(i.time),isNaN(c)))return new Date(NaN);if(i.timeZone||n.timeZone){if(l=md(i.timeZone||n.timeZone,new Date(u+c)),isNaN(l))return new Date(NaN)}else l=Nc(new Date(u+c)),l=Nc(new Date(u+c+l));return new Date(u+c+l)}return new Date(NaN)}function Dd(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var i=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+i),r}var Md=[31,28,31,30,31,30,31,31,30,31,30,31],Ad=[31,29,31,30,31,30,31,31,30,31,30,31];function Id(e){return e%400==0||e%4==0&&e%100!=0}function Pd(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=Id(e);if(r&&n>Ad[t])return!1;if(!r&&n>Md[t])return!1}return!0}function Rd(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function Nd(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}var jd=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function Ld(e,t,n){var r=String(t),i=n||{},o=r.match(jd);if(o){var a=Od(i.originalDate||e,i);r=o.reduce((function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],o=e.replace(t,"'"+kd[t[0]](a,t,null,i)+"'");return r?o.substring(0,n-1)+o.substring(n+1):o}),r)}return sd(e,r,i)}function Fd(e,t,n){var r=Od(e,n),i=md(t,r,!0),o=new Date(r.getTime()-i),a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}var Bd="object"==typeof global&&global&&global.Object===Object&&global,Ud="object"==typeof self&&self&&self.Object===Object&&self,Hd=Bd||Ud||Function("return this")(),Yd=Hd.Symbol,zd=Object.prototype,Wd=zd.hasOwnProperty,Gd=zd.toString,Vd=Yd?Yd.toStringTag:void 0;var qd=Object.prototype.toString;var Qd=Yd?Yd.toStringTag:void 0;function $d(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Qd&&Qd in Object(e)?function(e){var t=Wd.call(e,Vd),n=e[Vd];try{e[Vd]=void 0;var r=!0}catch(e){}var i=Gd.call(e);return r&&(t?e[Vd]=n:delete e[Vd]),i}(e):function(e){return qd.call(e)}(e)}function Xd(e){return null!=e&&"object"==typeof e}var Kd=Array.isArray;function Zd(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Jd(e){if(!Zd(e))return!1;var t=$d(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}var eh=Hd["__core-js_shared__"],th=function(){var e=/[^.]+$/.exec(eh&&eh.keys&&eh.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var nh=Function.prototype.toString;function rh(e){if(null!=e){try{return nh.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var ih=/^\[object .+?Constructor\]$/,oh=Function.prototype,ah=Object.prototype,sh=oh.toString,lh=ah.hasOwnProperty,uh=RegExp("^"+sh.call(lh).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ch(e){return!(!Zd(e)||(t=e,th&&th in t))&&(Jd(e)?uh:ih).test(rh(e));var t}function dh(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ch(n)?n:void 0}var hh=dh(Hd,"WeakMap"),ph=Object.create,fh=function(){function e(){}return function(t){if(!Zd(t))return{};if(ph)return ph(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),mh=fh;var vh=function(){try{var e=dh(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),gh=vh;var yh=/^(?:0|[1-9]\d*)$/;function bh(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&yh.test(e))&&e>-1&&e%1==0&&e<t}function wh(e,t,n){"__proto__"==t&&gh?gh(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function xh(e,t){return e===t||e!=e&&t!=t}var _h=Object.prototype.hasOwnProperty;function Sh(e,t,n){var r=e[t];_h.call(e,t)&&xh(r,n)&&(void 0!==n||t in e)||wh(e,t,n)}function kh(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?wh(n,s,l):Sh(n,s,l)}return n}function Th(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Ch(e){return null!=e&&Th(e.length)&&!Jd(e)}var Eh=Object.prototype;function Oh(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Eh)}function Dh(e){return Xd(e)&&"[object Arguments]"==$d(e)}var Mh=Object.prototype,Ah=Mh.hasOwnProperty,Ih=Mh.propertyIsEnumerable,Ph=Dh(function(){return arguments}())?Dh:function(e){return Xd(e)&&Ah.call(e,"callee")&&!Ih.call(e,"callee")};var Rh="object"==typeof exports&&exports&&!exports.nodeType&&exports,Nh=Rh&&"object"==typeof module&&module&&!module.nodeType&&module,jh=Nh&&Nh.exports===Rh?Hd.Buffer:void 0,Lh=(jh?jh.isBuffer:void 0)||function(){return!1},Fh={};function Bh(e){return function(t){return e(t)}}Fh["[object Float32Array]"]=Fh["[object Float64Array]"]=Fh["[object Int8Array]"]=Fh["[object Int16Array]"]=Fh["[object Int32Array]"]=Fh["[object Uint8Array]"]=Fh["[object Uint8ClampedArray]"]=Fh["[object Uint16Array]"]=Fh["[object Uint32Array]"]=!0,Fh["[object Arguments]"]=Fh["[object Array]"]=Fh["[object ArrayBuffer]"]=Fh["[object Boolean]"]=Fh["[object DataView]"]=Fh["[object Date]"]=Fh["[object Error]"]=Fh["[object Function]"]=Fh["[object Map]"]=Fh["[object Number]"]=Fh["[object Object]"]=Fh["[object RegExp]"]=Fh["[object Set]"]=Fh["[object String]"]=Fh["[object WeakMap]"]=!1;var Uh="object"==typeof exports&&exports&&!exports.nodeType&&exports,Hh=Uh&&"object"==typeof module&&module&&!module.nodeType&&module,Yh=Hh&&Hh.exports===Uh&&Bd.process,zh=function(){try{var e=Hh&&Hh.require&&Hh.require("util").types;return e||Yh&&Yh.binding&&Yh.binding("util")}catch(e){}}(),Wh=zh&&zh.isTypedArray,Gh=Wh?Bh(Wh):function(e){return Xd(e)&&Th(e.length)&&!!Fh[$d(e)]},Vh=Object.prototype.hasOwnProperty;function qh(e,t){var n=Kd(e),r=!n&&Ph(e),i=!n&&!r&&Lh(e),o=!n&&!r&&!i&&Gh(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!Vh.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||bh(u,l))||s.push(u);return s}function Qh(e,t){return function(n){return e(t(n))}}var $h=Qh(Object.keys,Object),Xh=Object.prototype.hasOwnProperty;function Kh(e){return Ch(e)?qh(e):function(e){if(!Oh(e))return $h(e);var t=[];for(var n in Object(e))Xh.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}var Zh=Object.prototype.hasOwnProperty;function Jh(e){if(!Zd(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=Oh(e),n=[];for(var r in e)("constructor"!=r||!t&&Zh.call(e,r))&&n.push(r);return n}function ep(e){return Ch(e)?qh(e,!0):Jh(e)}var tp=dh(Object,"create");var np=Object.prototype.hasOwnProperty;var rp=Object.prototype.hasOwnProperty;function ip(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 op(e,t){for(var n=e.length;n--;)if(xh(e[n][0],t))return n;return-1}ip.prototype.clear=function(){this.__data__=tp?tp(null):{},this.size=0},ip.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ip.prototype.get=function(e){var t=this.__data__;if(tp){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return np.call(t,e)?t[e]:void 0},ip.prototype.has=function(e){var t=this.__data__;return tp?void 0!==t[e]:rp.call(t,e)},ip.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tp&&void 0===t?"__lodash_hash_undefined__":t,this};var ap=Array.prototype.splice;function sp(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])}}sp.prototype.clear=function(){this.__data__=[],this.size=0},sp.prototype.delete=function(e){var t=this.__data__,n=op(t,e);return!(n<0)&&(n==t.length-1?t.pop():ap.call(t,n,1),--this.size,!0)},sp.prototype.get=function(e){var t=this.__data__,n=op(t,e);return n<0?void 0:t[n][1]},sp.prototype.has=function(e){return op(this.__data__,e)>-1},sp.prototype.set=function(e,t){var n=this.__data__,r=op(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};var lp=dh(Hd,"Map");function up(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 cp(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 dp(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}cp.prototype.clear=function(){this.size=0,this.__data__={hash:new ip,map:new(lp||sp),string:new ip}},cp.prototype.delete=function(e){var t=up(this,e).delete(e);return this.size-=t?1:0,t},cp.prototype.get=function(e){return up(this,e).get(e)},cp.prototype.has=function(e){return up(this,e).has(e)},cp.prototype.set=function(e,t){var n=up(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};var hp=Qh(Object.getPrototypeOf,Object);function pp(e){var t=this.__data__=new sp(e);this.size=t.size}pp.prototype.clear=function(){this.__data__=new sp,this.size=0},pp.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},pp.prototype.get=function(e){return this.__data__.get(e)},pp.prototype.has=function(e){return this.__data__.has(e)},pp.prototype.set=function(e,t){var n=this.__data__;if(n instanceof sp){var r=n.__data__;if(!lp||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new cp(r)}return n.set(e,t),this.size=n.size,this};var fp="object"==typeof exports&&exports&&!exports.nodeType&&exports,mp=fp&&"object"==typeof module&&module&&!module.nodeType&&module,vp=mp&&mp.exports===fp?Hd.Buffer:void 0,gp=vp?vp.allocUnsafe:void 0;function yp(){return[]}var bp=Object.prototype.propertyIsEnumerable,wp=Object.getOwnPropertySymbols,xp=wp?function(e){return null==e?[]:(e=Object(e),function(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}(wp(e),(function(t){return bp.call(e,t)})))}:yp,_p=xp;var Sp=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)dp(t,_p(e)),e=hp(e);return t}:yp,kp=Sp;function Tp(e,t,n){var r=t(e);return Kd(e)?r:dp(r,n(e))}function Cp(e){return Tp(e,Kh,_p)}function Ep(e){return Tp(e,ep,kp)}var Op=dh(Hd,"DataView"),Dp=dh(Hd,"Promise"),Mp=dh(Hd,"Set"),Ap="[object Map]",Ip="[object Promise]",Pp="[object Set]",Rp="[object WeakMap]",Np="[object DataView]",jp=rh(Op),Lp=rh(lp),Fp=rh(Dp),Bp=rh(Mp),Up=rh(hh),Hp=$d;(Op&&Hp(new Op(new ArrayBuffer(1)))!=Np||lp&&Hp(new lp)!=Ap||Dp&&Hp(Dp.resolve())!=Ip||Mp&&Hp(new Mp)!=Pp||hh&&Hp(new hh)!=Rp)&&(Hp=function(e){var t=$d(e),n="[object Object]"==t?e.constructor:void 0,r=n?rh(n):"";if(r)switch(r){case jp:return Np;case Lp:return Ap;case Fp:return Ip;case Bp:return Pp;case Up:return Rp}return t});var Yp=Hp,zp=Object.prototype.hasOwnProperty;var Wp=Hd.Uint8Array;function Gp(e){var t=new e.constructor(e.byteLength);return new Wp(t).set(new Wp(e)),t}var Vp=/\w*$/;var qp=Yd?Yd.prototype:void 0,Qp=qp?qp.valueOf:void 0;function $p(e,t,n){var r,i,o=e.constructor;switch(t){case"[object ArrayBuffer]":return Gp(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return function(e,t){var n=t?Gp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?Gp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return(i=new(r=e).constructor(r.source,Vp.exec(r))).lastIndex=r.lastIndex,i;case"[object Symbol]":return function(e){return Qp?Object(Qp.call(e)):{}}(e)}}var Xp=zh&&zh.isMap,Kp=Xp?Bh(Xp):function(e){return Xd(e)&&"[object Map]"==Yp(e)};var Zp=zh&&zh.isSet,Jp=Zp?Bh(Zp):function(e){return Xd(e)&&"[object Set]"==Yp(e)},ef="[object Arguments]",tf="[object Function]",nf="[object Object]",rf={};function of(e,t,n,r,i,o){var a,s=1&t,l=2&t,u=4&t;if(n&&(a=i?n(e,r,i,o):n(e)),void 0!==a)return a;if(!Zd(e))return e;var c=Kd(e);if(c){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&zp.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!s)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e,a)}else{var d=Yp(e),h=d==tf||"[object GeneratorFunction]"==d;if(Lh(e))return function(e,t){if(t)return e.slice();var n=e.length,r=gp?gp(n):new e.constructor(n);return e.copy(r),r}(e,s);if(d==nf||d==ef||h&&!i){if(a=l||h?{}:function(e){return"function"!=typeof e.constructor||Oh(e)?{}:mh(hp(e))}(e),!s)return l?function(e,t){return kh(e,kp(e),t)}(e,function(e,t){return e&&kh(t,ep(t),e)}(a,e)):function(e,t){return kh(e,_p(e),t)}(e,function(e,t){return e&&kh(t,Kh(t),e)}(a,e))}else{if(!rf[d])return i?e:{};a=$p(e,d,s)}}o||(o=new pp);var p=o.get(e);if(p)return p;o.set(e,a),Jp(e)?e.forEach((function(r){a.add(of(r,t,n,r,e,o))})):Kp(e)&&e.forEach((function(r,i){a.set(i,of(r,t,n,i,e,o))}));var f=c?void 0:(u?l?Ep:Cp:l?ep:Kh)(e);return function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););}(f||e,(function(r,i){f&&(r=e[i=r]),Sh(a,i,of(r,t,n,i,e,o))})),a}rf[ef]=rf["[object Array]"]=rf["[object ArrayBuffer]"]=rf["[object DataView]"]=rf["[object Boolean]"]=rf["[object Date]"]=rf["[object Float32Array]"]=rf["[object Float64Array]"]=rf["[object Int8Array]"]=rf["[object Int16Array]"]=rf["[object Int32Array]"]=rf["[object Map]"]=rf["[object Number]"]=rf[nf]=rf["[object RegExp]"]=rf["[object Set]"]=rf["[object String]"]=rf["[object Symbol]"]=rf["[object Uint8Array]"]=rf["[object Uint8ClampedArray]"]=rf["[object Uint16Array]"]=rf["[object Uint32Array]"]=!0,rf["[object Error]"]=rf[tf]=rf["[object WeakMap]"]=!1;function af(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new cp;++t<n;)this.add(e[t])}function sf(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}af.prototype.add=af.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},af.prototype.has=function(e){return this.__data__.has(e)};function lf(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,h=!0,p=2&n?new af:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var f=e[d],m=t[d];if(r)var v=a?r(m,f,d,t,e,o):r(f,m,d,e,t,o);if(void 0!==v){if(v)continue;h=!1;break}if(p){if(!sf(t,(function(e,t){if(a=t,!p.has(a)&&(f===e||i(f,e,n,r,o)))return p.push(t);var a}))){h=!1;break}}else if(f!==m&&!i(f,m,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h}function uf(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function cf(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var df=Yd?Yd.prototype:void 0,hf=df?df.valueOf:void 0;var pf=Object.prototype.hasOwnProperty;var ff="[object Arguments]",mf="[object Array]",vf="[object Object]",gf=Object.prototype.hasOwnProperty;function yf(e,t,n,r,i,o){var a=Kd(e),s=Kd(t),l=a?mf:Yp(e),u=s?mf:Yp(t),c=(l=l==ff?vf:l)==vf,d=(u=u==ff?vf:u)==vf,h=l==u;if(h&&Lh(e)){if(!Lh(t))return!1;a=!0,c=!1}if(h&&!c)return o||(o=new pp),a||Gh(e)?lf(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Wp(e),new Wp(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return xh(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=uf;case"[object Set]":var l=1&r;if(s||(s=cf),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;r|=2,a.set(e,t);var c=lf(s(e),s(t),r,i,o,a);return a.delete(e),c;case"[object Symbol]":if(hf)return hf.call(e)==hf.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var p=c&&gf.call(e,"__wrapped__"),f=d&&gf.call(t,"__wrapped__");if(p||f){var m=p?e.value():e,v=f?t.value():t;return o||(o=new pp),i(m,v,n,r,o)}}return!!h&&(o||(o=new pp),function(e,t,n,r,i,o){var a=1&n,s=Cp(e),l=s.length;if(l!=Cp(t).length&&!a)return!1;for(var u=l;u--;){var c=s[u];if(!(a?c in t:pf.call(t,c)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++u<l;){var m=e[c=s[u]],v=t[c];if(r)var g=a?r(v,m,c,t,e,o):r(m,v,c,e,t,o);if(!(void 0===g?m===v||i(m,v,n,r,o):g)){p=!1;break}f||(f="constructor"==c)}if(p&&!f){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))}function bf(e,t,n,r,i){return e===t||(null==e||null==t||!Xd(e)&&!Xd(t)?e!=e&&t!=t:yf(e,t,n,r,bf,i))}function wf(e){return"string"==typeof e||!Kd(e)&&Xd(e)&&"[object String]"==$d(e)}function xf(e){return null!=e}function _f(e){return Kd(e)&&0===e.length}function Sf(e){return Kd(e)&&e.length>0}function kf(e){return Zd(e)&&Object.keys(e).length>0}function Tf(e){return wf(e)&&e.trim().length>0}function Cf(e){return wf(e)&&0===e.trim().length}var Ef=xf;function Of(e){for(var t in e)null!==e[t]&&void 0!==e[t]||delete e[t]}function Df(e){for(var t=0;t<e.length;t++)if(Sf(e[t].y))for(var n=0;n<e[t].y.length;n++)if(Number(e[t].y[n])>1e3)return!0;return!1}function Mf(e){for(var t=0;t<e.length;t++)if(Sf(e[t].y))for(var n=0;n<e[t].y.length;n++)e[t].y[n]=Number(e[t].y[n])/1e3;return e}function Af(e,t){for(var n=0;n<e.length;n++)if(Sf(e[n].x))for(var r=0;r<e[n].x.length;r++)e[n].x[r]=Pf(e[n].x[r],void 0);return e}var If={YB_DEFAULT_TIMESTAMP:"MMM-DD-yyyy HH:mm:ss [UTC]XXX",YB_DATE_ONLY_TIMESTAMP:"MMM-dd-yyyy",YB_HOURS_FIRST_TIMESTAMP:"HH:mm:ss MMM-dd-yyyy [UTC]XXX",YB_ISO8601_TIMESTAMP:"yyyy-MM-dd'T'HH:mm:ssXXX",YB_TIME_ONLY_TIMESTAMP:"HH:mm:ss",YB_DATE_TIME_TIMESTAMP:"yyyy-MM-dd'T'HH:mm"};function Pf(e,t){return Ef(e)?jf(e,null!=t?t:If.YB_ISO8601_TIMESTAMP):"<span>-</span>"}var Rf,Nf,jf=function(e,t,n){return void 0===t&&(t=If.YB_DEFAULT_TIMESTAMP),Fu(n?Fd(new Date(e),n):new Date(e),t)},Lf=r.makeStyles((function(e){return{container:{display:"flex",flexWrap:"wrap"},textField:{marginLeft:e.spacing(1),marginRight:e.spacing(1),width:200}}})),Ff=function(t){var n=t.defaultDateTimeValue,r=t.dateTimeLabel,i=t.value,o=t.errorMsg,a=t.onChange,s=t.className,l=t.disabled,u=void 0!==l&&l,c=Lf(),d=new Date,h=jf(d,If.YB_DATE_TIME_TIMESTAMP),p=new Date(d);p.setDate(p.getDate()-30);var f=jf(p,If.YB_DATE_TIME_TIMESTAMP);return e.jsx("form",ot({className:c.container,noValidate:!0},{children:e.jsx(ue.default,{id:"datetime-local",label:r,type:"datetime-local",defaultValue:n,value:i,onChange:a,className:dt(c.textField,s),InputLabelProps:{shrink:!0},disabled:u,inputProps:{min:f,max:h},error:Tf(o),helperText:o})}))};function Bf(){return Bf=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},Bf.apply(null,arguments)}const Uf=e=>se.createElement("svg",Bf({width:24,height:24,xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},e),Rf||(Rf=se.createElement("defs",null,se.createElement("filter",{x:"-1.9%",y:"-2.5%",width:"103.8%",height:"105%",filterUnits:"objectBoundingBox",id:"times_svg__b"},se.createElement("feOffset",{in:"SourceAlpha",result:"shadowOffsetOuter1"}),se.createElement("feGaussianBlur",{stdDeviation:5,in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),se.createElement("feColorMatrix",{values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0",in:"shadowBlurOuter1"})),se.createElement("rect",{id:"times_svg__a",x:0,y:0,width:800,height:600,rx:8}))),Nf||(Nf=se.createElement("g",{fill:"none",fillRule:"evenodd"},se.createElement("path",{d:"M-1088-84H368V940h-1456z",fill:"#0B1117",opacity:.75}),se.createElement("g",{transform:"translate(-760 -20)"},se.createElement("mask",{id:"times_svg__c",fill:"#fff"},se.createElement("use",{xlinkHref:"#times_svg__a"})),se.createElement("use",{fill:"#000",filter:"url(#times_svg__b)",xlinkHref:"#times_svg__a"}),se.createElement("use",{fill:"#FFF",xlinkHref:"#times_svg__a"}),se.createElement("g",{mask:"url(#times_svg__c)"},se.createElement("path",{fill:"#FFF",d:"M0 0h800v64H0z"}),se.createElement("circle",{fill:"#F0F4F7",cx:772,cy:32,r:16}),se.createElement("path",{d:"M760 20h24v24h-24z"}),se.createElement("path",{d:"M777.657 26.343a.5.5 0 0 1 .058.638l-.058.07-4.95 4.949 4.95 4.95a.5.5 0 0 1-.638.765l-.07-.058-4.949-4.95-4.95 4.95a.5.5 0 0 1-.765-.638l.058-.07 4.95-4.949-4.95-4.95a.5.5 0 0 1 .638-.765l.07.058 4.949 4.95 4.95-4.95a.5.5 0 0 1 .707 0Z",fill:"#25323D"}))))));var Hf=ae.default.forwardRef((function(t,n){return e.jsx(r.Slide,ot({direction:"left",ref:n},t))}));Hf.displayName="SlideTransition";var Yf=r.makeStyles((function(e){return{dialogSm:{width:function(e){var t=e.overrideWidth;return null!=t?t:608},height:function(e){var t=e.overrideHeight;return null!=t?t:400},overflow:"hidden"},dialogMd:{width:function(e){var t=e.overrideWidth;return null!=t?t:800},height:function(e){var t=e.overrideHeight;return null!=t?t:600},overflow:"hidden"},dialogXs:{width:function(e){var t=e.overrideWidth;return null!=t?t:480},height:function(e){var t=e.overrideHeight;return null!=t?t:272},overflow:"hidden"},dialogXl:{width:function(e){var t=e.overrideWidth;return null!=t?t:800},height:function(e){var t=e.overrideHeight;return null!=t?t:800},overflow:"hidden"},form:{display:"flex",flexDirection:"column",margin:0,minHeight:"100%"},sidePanel:{width:736,height:"100%",maxHeight:"100%",margin:"0 0 0 auto",borderRadius:"0 !important",overflowY:"unset"},dialogTitle:{padding:e.spacing(2,1.5,2,2)},dialogTitleXs:{padding:e.spacing(1.5,1.5,1.5,2)},closeBtn:{background:e.palette.grey[100],padding:e.spacing(.5),height:e.spacing(4),borderRadius:"50%",float:"right",margin:"auto 0 auto auto",cursor:"pointer"},actionsInfo:{marginRight:"auto"},title:{display:"flex",alignItems:"center"},dialogTitleSeparator:{borderBottom:"1px solid ".concat(e.palette.grey[200])},modalTitle:{display:"flex",alignItems:"center"},text:{marginLeft:e.spacing(1),whiteSpace:"nowrap"}}})),zf=function(t){var n,i,o=t.title,a=t.titleSeparator,s=t.titleIcon,l=t.actionsInfo,u=t.onClose,c=t.onSubmit,d=t.children,h=t.cancelLabel,p=t.cancelTestId,f=t.submitLabel,m=t.submitTestId,v=t.enableBackdropDismiss,g=t.size,y=t.isSidePanel,b=t.buttonProps,w=t.customTitle,x=t.hideCloseBtn,_=t.customSubmitButton,S=t.submitButtonTooltip,k=t.cancelButtonTooltip,T=t.dialogContentProps,C=void 0===T?{}:T,E=t.formProps;t.gradientTag;var O=at(t,["title","titleSeparator","titleIcon","actionsInfo","onClose","onSubmit","children","cancelLabel","cancelTestId","submitLabel","submitTestId","enableBackdropDismiss","size","isSidePanel","buttonProps","customTitle","hideCloseBtn","customSubmitButton","submitButtonTooltip","cancelButtonTooltip","dialogContentProps","formProps","gradientTag"]),D=Yf(t),M=function(){u&&u()},A=function(e){c&&(c(),e.preventDefault())};delete O.overrideHeight,delete O.overrideWidth;var I=D.dialogMd,P=D.dialogTitle,R=!!h||!!f||!!_;switch(g){case"sm":I=D.dialogSm;break;case"xs":I=D.dialogXs,P=D.dialogTitleXs;break;case"xl":I=D.dialogXl;break;default:I=D.dialogMd}P=dt(P,a&&D.dialogTitleSeparator),y&&(I=D.sidePanel,O.TransitionComponent=Hf);var N=null!==(n=null==b?void 0:b.primary)&&void 0!==n?n:{},j=null!==(i=null==b?void 0:b.secondary)&&void 0!==i?i:{};O.fullScreen||(O.classes={paper:I},O.fullWidth=!0,O.maxWidth=g);var L;return e.jsx(r.Dialog,ot({"aria-labelledby":"form-dialog-title"},O,{onClose:v?M:void 0,disableEnforceFocus:!0},{children:e.jsxs("form",ot({className:D.form},E,{children:[w?e.jsx("div",ot({className:D.modalTitle},{children:w})):o&&e.jsx(r.DialogTitle,ot({id:"form-dialog-title",disableTypography:!0,className:P},{children:e.jsxs(r.Typography,ot({className:D.title,variant:"h4"},{children:[s?e.jsxs("div",ot({className:D.modalTitle},{children:[s,e.jsx("span",ot({className:D.text},{children:o}))]})):e.jsx("div",ot({className:D.modalTitle},{children:o})),!x&&e.jsx("span",ot({className:D.closeBtn,"data-testid":p?"".concat(p,"Header"):""},{children:e.jsx(Uf,{onClick:M})}))]}))})),e.jsx(r.DialogContent,ot({},C,{children:d})),R&&e.jsxs(r.DialogActions,{children:[l&&e.jsx("div",ot({className:D.actionsInfo},{children:l})),(L=h?e.jsx(Ni,ot({variant:"secondary",onClick:M},j,{"data-testid":p},{children:h})):void 0,k?e.jsx(Il,ot({title:k},{children:e.jsx("span",{children:L})})):L),function(){if(_)return _;var t=f?e.jsx(Ni,ot({variant:"primary",onClick:A},N,{type:"submit",autoFocus:!0,"data-testid":m},{children:f})):void 0;return S?e.jsx(Il,ot({title:S},{children:e.jsx("span",{children:t})})):t}()]})]}))}))},Wf=r.makeStyles((function(e){return{ellipsis:{display:"inline-flex",minWidth:e.spacing(2)}}})),Gf=function(n){var r=n.pageSize,i=void 0===r?4:r,o=n.onPageSelect,a=n.currentPage,s=n.hasMore,u=t.useState(1),c=u[0],d=u[1],h=Wf();return t.useEffect((function(){a&&d(a)}),[a]),e.jsx(l.Pagination,{siblingCount:1,page:c,boundaryCount:1,shape:"rounded",count:i,onChange:function(e,t){d(t),o(t)},"data-testid":"TablePagination",renderItem:function(t){return"next"===t.type&&s?e.jsxs(e.Fragment,{children:[e.jsx(l.PaginationItem,{"aria-label":"Go to end-ellipsis page",color:"standard",shape:"rounded",size:"medium",type:"end-ellipsis",variant:"text",classes:{ellipsis:h.ellipsis}}),e.jsx(l.PaginationItem,ot({},t))]}):e.jsx(l.PaginationItem,ot({},t))}})},Vf=r.makeStyles((function(e){return{root:{display:"flex",justifyContent:"flex-end",alignItems:"center",padding:e.spacing(1,3)},dropdownContainer:{display:"flex",alignItems:"center",maxWidth:160},dropdown:{"& .MuiInput-formControl":{border:"0px none"}},dropdownMenu:{"& .MuiMenu-list":{display:"flex",flexDirection:"column"}}}})),qf=function(n){var i=n.dataPrefetchFn,o=n.page,a=n.onPageChange,s=n.onPageSizeChange,l=n.hasMoreData,u=n.total,c=n.rowsPerPageOptions,d=void 0===c?[10,20,50]:c,h=n.rowsPerPage,p=n.showRecordsPerPage,f=n.recordsPerPageCaption,m=void 0===f?"":f,v=Vf(),g=Math.ceil(u/(null!=h?h:d[0])),y=t.useCallback((function(e){e===g&&l&&i(),a(e-1)}),[i,a,l,g]);return t.useEffect((function(){0===o&&h===u&&l&&i()}),[]),e.jsxs(r.Box,ot({className:v.root},{children:[p&&e.jsxs(r.Grid,ot({item:!0,xs:12,lg:4,className:v.dropdownContainer},{children:[m&&e.jsx(r.Box,ot({mr:1,minWidth:"100px"},{children:m})),e.jsx(Rl,ot({value:h,onChange:function(e){s(e.target.value)},className:v.dropdown,"data-testid":"RowsPerPageSelect",menuProps:{className:v.dropdownMenu,anchorOrigin:{vertical:"top",horizontal:"left"}}},{children:d.map((function(t){return e.jsx(r.MenuItem,ot({value:t,"data-testid":"RowsPerPageSelectMenuItem-".concat(t)},{children:t}),t)}))}))]})),e.jsx(r.Box,ot({ml:4},{children:e.jsx(Gf,{currentPage:o+1,pageSize:g,onPageSelect:y,hasMore:l})}))]}))},Qf=r.makeStyles((function(e){return{header:{minHeight:"42px",marginBottom:"25px"},contentPanel:{margin:0},transparentBody:{padding:0,backgroundColor:"transparent",boxShadow:"none"},body:{position:"relative",boxShadow:"0 0.12em 2px rgba(colors.$YB_DARK_GRAY_2, 0.05), 0 0.5em 10px rgba(colors.$YB_DARK_GRAY_2, 0.07)",border:"none",backgroundColor:"#fff",padding:"20px 25px 25px 25px",borderRadius:"7px",margin:"20px 0 0 auto"}}})),$f=function(t){var n=t.noBackground,i=t.className,o=t.bodyClassName,a=t.children,s=t.body,l=t.header,u=t.title,c=Qf(),d=dt(c.body,n&&c.transparentBody,o);return e.jsxs(r.Box,ot({className:i?c.contentPanel+i:"classes.contentPanel"},{children:[(l||u)&&e.jsxs(r.Box,ot({className:c.header},{children:[l," ",u]})),e.jsx(r.Box,ot({className:"container"},{children:s&&e.jsxs(r.Box,ot({className:d},{children:[s,a]}))}))]}))},Xf={},Kf={exports:{}},Zf=function(e){return e&&e.Math===Math&&e},Jf=Zf("object"==typeof globalThis&&globalThis)||Zf("object"==typeof window&&window)||Zf("object"==typeof self&&self)||Zf("object"==typeof pt&&pt)||Zf("object"==typeof pt&&pt)||function(){return this}()||Function("return this")(),em=function(e){try{return!!e()}catch(e){return!0}},tm=!em((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),nm=tm,rm=Function.prototype,im=rm.apply,om=rm.call,am="object"==typeof Reflect&&Reflect.apply||(nm?om.bind(im):function(){return om.apply(im,arguments)}),sm=tm,lm=Function.prototype,um=lm.call,cm=sm&&lm.bind.bind(um,um),dm=sm?cm:function(e){return function(){return um.apply(e,arguments)}},hm=dm,pm=hm({}.toString),fm=hm("".slice),mm=function(e){return fm(pm(e),8,-1)},vm=mm,gm=dm,ym=function(e){if("Function"===vm(e))return gm(e)},bm="object"==typeof document&&document.all,wm=void 0===bm&&void 0!==bm?function(e){return"function"==typeof e||e===bm}:function(e){return"function"==typeof e},xm={},_m=!em((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Sm=tm,km=Function.prototype.call,Tm=Sm?km.bind(km):function(){return km.apply(km,arguments)},Cm={},Em={}.propertyIsEnumerable,Om=Object.getOwnPropertyDescriptor,Dm=Om&&!Em.call({1:2},1);Cm.f=Dm?function(e){var t=Om(this,e);return!!t&&t.enumerable}:Em;var Mm,Am,Im=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Pm=em,Rm=mm,Nm=Object,jm=dm("".split),Lm=Pm((function(){return!Nm("z").propertyIsEnumerable(0)}))?function(e){return"String"===Rm(e)?jm(e,""):Nm(e)}:Nm,Fm=function(e){return null==e},Bm=Fm,Um=TypeError,Hm=function(e){if(Bm(e))throw new Um("Can't call method on "+e);return e},Ym=Lm,zm=Hm,Wm=function(e){return Ym(zm(e))},Gm=wm,Vm=function(e){return"object"==typeof e?null!==e:Gm(e)},qm={},Qm=qm,$m=Jf,Xm=wm,Km=function(e){return Xm(e)?e:void 0},Zm=function(e,t){return arguments.length<2?Km(Qm[e])||Km($m[e]):Qm[e]&&Qm[e][t]||$m[e]&&$m[e][t]},Jm=dm({}.isPrototypeOf),ev=Jf.navigator,tv=ev&&ev.userAgent,nv=tv?String(tv):"",rv=Jf,iv=nv,ov=rv.process,av=rv.Deno,sv=ov&&ov.versions||av&&av.version,lv=sv&&sv.v8;lv&&(Am=(Mm=lv.split("."))[0]>0&&Mm[0]<4?1:+(Mm[0]+Mm[1])),!Am&&iv&&(!(Mm=iv.match(/Edge\/(\d+)/))||Mm[1]>=74)&&(Mm=iv.match(/Chrome\/(\d+)/))&&(Am=+Mm[1]);var uv=Am,cv=uv,dv=em,hv=Jf.String,pv=!!Object.getOwnPropertySymbols&&!dv((function(){var e=Symbol("symbol detection");return!hv(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&cv&&cv<41})),fv=pv&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,mv=Zm,vv=wm,gv=Jm,yv=Object,bv=fv?function(e){return"symbol"==typeof e}:function(e){var t=mv("Symbol");return vv(t)&&gv(t.prototype,yv(e))},wv=String,xv=function(e){try{return wv(e)}catch(e){return"Object"}},_v=wm,Sv=xv,kv=TypeError,Tv=function(e){if(_v(e))return e;throw new kv(Sv(e)+" is not a function")},Cv=Tv,Ev=Fm,Ov=function(e,t){var n=e[t];return Ev(n)?void 0:Cv(n)},Dv=Tm,Mv=wm,Av=Vm,Iv=TypeError,Pv={exports:{}},Rv=Jf,Nv=Object.defineProperty,jv=Jf,Lv=function(e,t){try{Nv(Rv,e,{value:t,configurable:!0,writable:!0})}catch(n){Rv[e]=t}return t},Fv="__core-js_shared__",Bv=Pv.exports=jv[Fv]||Lv(Fv,{});(Bv.versions||(Bv.versions=[])).push({version:"3.39.0",mode:"pure",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Uv=Pv.exports,Hv=Uv,Yv=function(e,t){return Hv[e]||(Hv[e]=t||{})},zv=Hm,Wv=Object,Gv=function(e){return Wv(zv(e))},Vv=Gv,qv=dm({}.hasOwnProperty),Qv=Object.hasOwn||function(e,t){return qv(Vv(e),t)},$v=dm,Xv=0,Kv=Math.random(),Zv=$v(1..toString),Jv=function(e){return"Symbol("+(void 0===e?"":e)+")_"+Zv(++Xv+Kv,36)},eg=Yv,tg=Qv,ng=Jv,rg=pv,ig=fv,og=Jf.Symbol,ag=eg("wks"),sg=ig?og.for||og:og&&og.withoutSetter||ng,lg=function(e){return tg(ag,e)||(ag[e]=rg&&tg(og,e)?og[e]:sg("Symbol."+e)),ag[e]},ug=Tm,cg=Vm,dg=bv,hg=Ov,pg=function(e,t){var n,r;if("string"===t&&Mv(n=e.toString)&&!Av(r=Dv(n,e)))return r;if(Mv(n=e.valueOf)&&!Av(r=Dv(n,e)))return r;if("string"!==t&&Mv(n=e.toString)&&!Av(r=Dv(n,e)))return r;throw new Iv("Can't convert object to primitive value")},fg=TypeError,mg=lg("toPrimitive"),vg=function(e,t){if(!cg(e)||dg(e))return e;var n,r=hg(e,mg);if(r){if(void 0===t&&(t="default"),n=ug(r,e,t),!cg(n)||dg(n))return n;throw new fg("Can't convert object to primitive value")}return void 0===t&&(t="number"),pg(e,t)},gg=vg,yg=bv,bg=function(e){var t=gg(e,"string");return yg(t)?t:t+""},wg=Vm,xg=Jf.document,_g=wg(xg)&&wg(xg.createElement),Sg=function(e){return _g?xg.createElement(e):{}},kg=Sg,Tg=!_m&&!em((function(){return 7!==Object.defineProperty(kg("div"),"a",{get:function(){return 7}}).a})),Cg=_m,Eg=Tm,Og=Cm,Dg=Im,Mg=Wm,Ag=bg,Ig=Qv,Pg=Tg,Rg=Object.getOwnPropertyDescriptor;xm.f=Cg?Rg:function(e,t){if(e=Mg(e),t=Ag(t),Pg)try{return Rg(e,t)}catch(e){}if(Ig(e,t))return Dg(!Eg(Og.f,e,t),e[t])};var Ng=em,jg=wm,Lg=/#|\.prototype\./,Fg=function(e,t){var n=Ug[Bg(e)];return n===Yg||n!==Hg&&(jg(t)?Ng(t):!!t)},Bg=Fg.normalize=function(e){return String(e).replace(Lg,".").toLowerCase()},Ug=Fg.data={},Hg=Fg.NATIVE="N",Yg=Fg.POLYFILL="P",zg=Fg,Wg=Tv,Gg=tm,Vg=ym(ym.bind),qg=function(e,t){return Wg(e),void 0===t?e:Gg?Vg(e,t):function(){return e.apply(t,arguments)}},Qg={},$g=_m&&em((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Xg=Vm,Kg=String,Zg=TypeError,Jg=function(e){if(Xg(e))return e;throw new Zg(Kg(e)+" is not an object")},ey=_m,ty=Tg,ny=$g,ry=Jg,iy=bg,oy=TypeError,ay=Object.defineProperty,sy=Object.getOwnPropertyDescriptor,ly="enumerable",uy="configurable",cy="writable";Qg.f=ey?ny?function(e,t,n){if(ry(e),t=iy(t),ry(n),"function"==typeof e&&"prototype"===t&&"value"in n&&cy in n&&!n[cy]){var r=sy(e,t);r&&r[cy]&&(e[t]=n.value,n={configurable:uy in n?n[uy]:r[uy],enumerable:ly in n?n[ly]:r[ly],writable:!1})}return ay(e,t,n)}:ay:function(e,t,n){if(ry(e),t=iy(t),ry(n),ty)try{return ay(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new oy("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var dy=Qg,hy=Im,py=_m?function(e,t,n){return dy.f(e,t,hy(1,n))}:function(e,t,n){return e[t]=n,e},fy=Jf,my=am,vy=ym,gy=wm,yy=xm.f,by=zg,wy=qm,xy=qg,_y=py,Sy=Qv,ky=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return my(e,this,arguments)};return t.prototype=e.prototype,t},Ty=function(e,t){var n,r,i,o,a,s,l,u,c,d=e.target,h=e.global,p=e.stat,f=e.proto,m=h?fy:p?fy[d]:fy[d]&&fy[d].prototype,v=h?wy:wy[d]||_y(wy,d,{})[d],g=v.prototype;for(o in t)r=!(n=by(h?o:d+(p?".":"#")+o,e.forced))&&m&&Sy(m,o),s=v[o],r&&(l=e.dontCallGetSet?(c=yy(m,o))&&c.value:m[o]),a=r&&l?l:t[o],(n||f||typeof s!=typeof a)&&(u=e.bind&&r?xy(a,fy):e.wrap&&r?ky(a):f&&gy(a)?vy(a):a,(e.sham||a&&a.sham||s&&s.sham)&&_y(u,"sham",!0),_y(v,o,u),f&&(Sy(wy,i=d+"Prototype")||_y(wy,i,{}),_y(wy[i],o,a),e.real&&g&&(n||!g[o])&&_y(g,o,a)))},Cy=Ty,Ey=_m,Oy=Qg.f;Cy({target:"Object",stat:!0,forced:Object.defineProperty!==Oy,sham:!Ey},{defineProperty:Oy});var Dy=qm.Object,My=Kf.exports=function(e,t,n){return Dy.defineProperty(e,t,n)};Dy.defineProperty.sham&&(My.sham=!0);var Ay=Kf.exports,Iy=Ay,Py={exports:{}},Ry={},Ny=Math.ceil,jy=Math.floor,Ly=Math.trunc||function(e){var t=+e;return(t>0?jy:Ny)(t)},Fy=function(e){var t=+e;return t!=t||0===t?0:Ly(t)},By=Fy,Uy=Math.max,Hy=Math.min,Yy=function(e,t){var n=By(e);return n<0?Uy(n+t,0):Hy(n,t)},zy=Fy,Wy=Math.min,Gy=function(e){var t=zy(e);return t>0?Wy(t,9007199254740991):0},Vy=Gy,qy=function(e){return Vy(e.length)},Qy=Wm,$y=Yy,Xy=qy,Ky=function(e){return function(t,n,r){var i=Qy(t),o=Xy(i);if(0===o)return!e&&-1;var a,s=$y(r,o);if(e&&n!=n){for(;o>s;)if((a=i[s++])!=a)return!0}else for(;o>s;s++)if((e||s in i)&&i[s]===n)return e||s||0;return!e&&-1}},Zy={includes:Ky(!0),indexOf:Ky(!1)},Jy={},eb=Qv,tb=Wm,nb=Zy.indexOf,rb=Jy,ib=dm([].push),ob=function(e,t){var n,r=tb(e),i=0,o=[];for(n in r)!eb(rb,n)&&eb(r,n)&&ib(o,n);for(;t.length>i;)eb(r,n=t[i++])&&(~nb(o,n)||ib(o,n));return o},ab=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sb=ob,lb=ab,ub=Object.keys||function(e){return sb(e,lb)},cb=_m,db=$g,hb=Qg,pb=Jg,fb=Wm,mb=ub;Ry.f=cb&&!db?Object.defineProperties:function(e,t){pb(e);for(var n,r=fb(t),i=mb(t),o=i.length,a=0;o>a;)hb.f(e,n=i[a++],r[n]);return e};var vb=Ty,gb=_m,yb=Ry.f;vb({target:"Object",stat:!0,forced:Object.defineProperties!==yb,sham:!gb},{defineProperties:yb});var bb=qm.Object,wb=Py.exports=function(e,t){return bb.defineProperties(e,t)};bb.defineProperties.sham&&(wb.sham=!0);var xb=Py.exports,_b={},Sb=ob,kb=ab.concat("length","prototype");_b.f=Object.getOwnPropertyNames||function(e){return Sb(e,kb)};var Tb={};Tb.f=Object.getOwnPropertySymbols;var Cb=Zm,Eb=_b,Ob=Tb,Db=Jg,Mb=dm([].concat),Ab=Cb("Reflect","ownKeys")||function(e){var t=Eb.f(Db(e)),n=Ob.f;return n?Mb(t,n(e)):t},Ib=_m,Pb=Qg,Rb=Im,Nb=function(e,t,n){Ib?Pb.f(e,t,Rb(0,n)):e[t]=n},jb=Ab,Lb=Wm,Fb=xm,Bb=Nb;Ty({target:"Object",stat:!0,sham:!_m},{getOwnPropertyDescriptors:function(e){for(var t,n,r=Lb(e),i=Fb.f,o=jb(r),a={},s=0;o.length>s;)void 0!==(n=i(r,t=o[s++]))&&Bb(a,t,n);return a}});var Ub=qm.Object.getOwnPropertyDescriptors,Hb={exports:{}},Yb=Ty,zb=em,Wb=Wm,Gb=xm.f,Vb=_m;Yb({target:"Object",stat:!0,forced:!Vb||zb((function(){Gb(1)})),sham:!Vb},{getOwnPropertyDescriptor:function(e,t){return Gb(Wb(e),t)}});var qb=qm.Object,Qb=Hb.exports=function(e,t){return qb.getOwnPropertyDescriptor(e,t)};qb.getOwnPropertyDescriptor.sham&&(Qb.sham=!0);var $b=Hb.exports,Xb={};Xb[lg("toStringTag")]="z";var Kb,Zb="[object z]"===String(Xb),Jb=Zb,ew=wm,tw=mm,nw=lg("toStringTag"),rw=Object,iw="Arguments"===tw(function(){return arguments}()),ow=Jb?tw:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=rw(e),nw))?n:iw?tw(t):"Object"===(r=tw(t))&&ew(t.callee)?"Arguments":r},aw=ow,sw=String,lw=function(e){if("Symbol"===aw(e))throw new TypeError("Cannot convert a Symbol value to a string");return sw(e)},uw=Zm("document","documentElement"),cw=Jv,dw=Yv("keys"),hw=function(e){return dw[e]||(dw[e]=cw(e))},pw=Jg,fw=Ry,mw=ab,vw=Jy,gw=uw,yw=Sg,bw="prototype",ww="script",xw=hw("IE_PROTO"),_w=function(){},Sw=function(e){return"<"+ww+">"+e+"</"+ww+">"},kw=function(e){e.write(Sw("")),e.close();var t=e.parentWindow.Object;return e=null,t},Tw=function(){try{Kb=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;Tw="undefined"!=typeof document?document.domain&&Kb?kw(Kb):(t=yw("iframe"),n="java"+ww+":",t.style.display="none",gw.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(Sw("document.F=Object")),e.close(),e.F):kw(Kb);for(var r=mw.length;r--;)delete Tw[bw][mw[r]];return Tw()};vw[xw]=!0;var Cw=Object.create||function(e,t){var n;return null!==e?(_w[bw]=pw(e),n=new _w,_w[bw]=null,n[xw]=e):n=Tw(),void 0===t?n:fw.f(n,t)},Ew={},Ow=dm([].slice),Dw=mm,Mw=Wm,Aw=_b.f,Iw=Ow,Pw="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ew.f=function(e){return Pw&&"Window"===Dw(e)?function(e){try{return Aw(e)}catch(e){return Iw(Pw)}}(e):Aw(Mw(e))};var Rw=py,Nw=function(e,t,n,r){return r&&r.enumerable?e[t]=n:Rw(e,t,n),e},jw=Qg,Lw={},Fw=lg;Lw.f=Fw;var Bw,Uw,Hw,Yw=qm,zw=Qv,Ww=Lw,Gw=Qg.f,Vw=function(e){var t=Yw.Symbol||(Yw.Symbol={});zw(t,e)||Gw(t,e,{value:Ww.f(e)})},qw=Tm,Qw=Zm,$w=lg,Xw=Nw,Kw=function(){var e=Qw("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=$w("toPrimitive");t&&!t[r]&&Xw(t,r,(function(e){return qw(n,this)}),{arity:1})},Zw=ow,Jw=Zb?{}.toString:function(){return"[object "+Zw(this)+"]"},ex=Zb,tx=Qg.f,nx=py,rx=Qv,ix=Jw,ox=lg("toStringTag"),ax=function(e,t,n,r){var i=n?e:e&&e.prototype;i&&(rx(i,ox)||tx(i,ox,{configurable:!0,value:t}),r&&!ex&&nx(i,"toString",ix))},sx=wm,lx=Jf.WeakMap,ux=sx(lx)&&/native code/.test(String(lx)),cx=Jf,dx=Vm,hx=py,px=Qv,fx=Uv,mx=hw,vx=Jy,gx="Object already initialized",yx=cx.TypeError,bx=cx.WeakMap;if(ux||fx.state){var wx=fx.state||(fx.state=new bx);wx.get=wx.get,wx.has=wx.has,wx.set=wx.set,Bw=function(e,t){if(wx.has(e))throw new yx(gx);return t.facade=e,wx.set(e,t),t},Uw=function(e){return wx.get(e)||{}},Hw=function(e){return wx.has(e)}}else{var xx=mx("state");vx[xx]=!0,Bw=function(e,t){if(px(e,xx))throw new yx(gx);return t.facade=e,hx(e,xx,t),t},Uw=function(e){return px(e,xx)?e[xx]:{}},Hw=function(e){return px(e,xx)}}var _x={set:Bw,get:Uw,has:Hw,enforce:function(e){return Hw(e)?Uw(e):Bw(e,{})},getterFor:function(e){return function(t){var n;if(!dx(t)||(n=Uw(t)).type!==e)throw new yx("Incompatible receiver, "+e+" required");return n}}},Sx=mm,kx=Array.isArray||function(e){return"Array"===Sx(e)},Tx=wm,Cx=Uv,Ex=dm(Function.toString);Tx(Cx.inspectSource)||(Cx.inspectSource=function(e){return Ex(e)});var Ox=Cx.inspectSource,Dx=dm,Mx=em,Ax=wm,Ix=ow,Px=Ox,Rx=function(){},Nx=Zm("Reflect","construct"),jx=/^\s*(?:class|function)\b/,Lx=Dx(jx.exec),Fx=!jx.test(Rx),Bx=function(e){if(!Ax(e))return!1;try{return Nx(Rx,[],e),!0}catch(e){return!1}},Ux=function(e){if(!Ax(e))return!1;switch(Ix(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Fx||!!Lx(jx,Px(e))}catch(e){return!0}};Ux.sham=!0;var Hx=!Nx||Mx((function(){var e;return Bx(Bx.call)||!Bx(Object)||!Bx((function(){e=!0}))||e}))?Ux:Bx,Yx=kx,zx=Hx,Wx=Vm,Gx=lg("species"),Vx=Array,qx=function(e){var t;return Yx(e)&&(t=e.constructor,(zx(t)&&(t===Vx||Yx(t.prototype))||Wx(t)&&null===(t=t[Gx]))&&(t=void 0)),void 0===t?Vx:t},Qx=function(e,t){return new(qx(e))(0===t?0:t)},$x=qg,Xx=Lm,Kx=Gv,Zx=qy,Jx=Qx,e_=dm([].push),t_=function(e){var t=1===e,n=2===e,r=3===e,i=4===e,o=6===e,a=7===e,s=5===e||o;return function(l,u,c,d){for(var h,p,f=Kx(l),m=Xx(f),v=Zx(m),g=$x(u,c),y=0,b=d||Jx,w=t?b(l,v):n||a?b(l,0):void 0;v>y;y++)if((s||y in m)&&(p=g(h=m[y],y,f),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:e_(w,h)}else switch(e){case 4:return!1;case 7:e_(w,h)}return o?-1:r||i?i:w}},n_={forEach:t_(0),map:t_(1),filter:t_(2),some:t_(3),every:t_(4),find:t_(5),findIndex:t_(6),filterReject:t_(7)},r_=Ty,i_=Jf,o_=Tm,a_=dm,s_=_m,l_=pv,u_=em,c_=Qv,d_=Jm,h_=Jg,p_=Wm,f_=bg,m_=lw,v_=Im,g_=Cw,y_=ub,b_=_b,w_=Ew,x_=Tb,__=xm,S_=Qg,k_=Ry,T_=Cm,C_=Nw,E_=function(e,t,n){return jw.f(e,t,n)},O_=Yv,D_=Jy,M_=Jv,A_=lg,I_=Lw,P_=Vw,R_=Kw,N_=ax,j_=_x,L_=n_.forEach,F_=hw("hidden"),B_="Symbol",U_="prototype",H_=j_.set,Y_=j_.getterFor(B_),z_=Object[U_],W_=i_.Symbol,G_=W_&&W_[U_],V_=i_.RangeError,q_=i_.TypeError,Q_=i_.QObject,$_=__.f,X_=S_.f,K_=w_.f,Z_=T_.f,J_=a_([].push),eS=O_("symbols"),tS=O_("op-symbols"),nS=O_("wks"),rS=!Q_||!Q_[U_]||!Q_[U_].findChild,iS=function(e,t,n){var r=$_(z_,t);r&&delete z_[t],X_(e,t,n),r&&e!==z_&&X_(z_,t,r)},oS=s_&&u_((function(){return 7!==g_(X_({},"a",{get:function(){return X_(this,"a",{value:7}).a}})).a}))?iS:X_,aS=function(e,t){var n=eS[e]=g_(G_);return H_(n,{type:B_,tag:e,description:t}),s_||(n.description=t),n},sS=function(e,t,n){e===z_&&sS(tS,t,n),h_(e);var r=f_(t);return h_(n),c_(eS,r)?(n.enumerable?(c_(e,F_)&&e[F_][r]&&(e[F_][r]=!1),n=g_(n,{enumerable:v_(0,!1)})):(c_(e,F_)||X_(e,F_,v_(1,g_(null))),e[F_][r]=!0),oS(e,r,n)):X_(e,r,n)},lS=function(e,t){h_(e);var n=p_(t),r=y_(n).concat(hS(n));return L_(r,(function(t){s_&&!o_(uS,n,t)||sS(e,t,n[t])})),e},uS=function(e){var t=f_(e),n=o_(Z_,this,t);return!(this===z_&&c_(eS,t)&&!c_(tS,t))&&(!(n||!c_(this,t)||!c_(eS,t)||c_(this,F_)&&this[F_][t])||n)},cS=function(e,t){var n=p_(e),r=f_(t);if(n!==z_||!c_(eS,r)||c_(tS,r)){var i=$_(n,r);return!i||!c_(eS,r)||c_(n,F_)&&n[F_][r]||(i.enumerable=!0),i}},dS=function(e){var t=K_(p_(e)),n=[];return L_(t,(function(e){c_(eS,e)||c_(D_,e)||J_(n,e)})),n},hS=function(e){var t=e===z_,n=K_(t?tS:p_(e)),r=[];return L_(n,(function(e){!c_(eS,e)||t&&!c_(z_,e)||J_(r,eS[e])})),r};l_||(W_=function(){if(d_(G_,this))throw new q_("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?m_(arguments[0]):void 0,t=M_(e),n=function(e){var r=void 0===this?i_:this;r===z_&&o_(n,tS,e),c_(r,F_)&&c_(r[F_],t)&&(r[F_][t]=!1);var i=v_(1,e);try{oS(r,t,i)}catch(e){if(!(e instanceof V_))throw e;iS(r,t,i)}};return s_&&rS&&oS(z_,t,{configurable:!0,set:n}),aS(t,e)},C_(G_=W_[U_],"toString",(function(){return Y_(this).tag})),C_(W_,"withoutSetter",(function(e){return aS(M_(e),e)})),T_.f=uS,S_.f=sS,k_.f=lS,__.f=cS,b_.f=w_.f=dS,x_.f=hS,I_.f=function(e){return aS(A_(e),e)},s_&&E_(G_,"description",{configurable:!0,get:function(){return Y_(this).description}})),r_({global:!0,constructor:!0,wrap:!0,forced:!l_,sham:!l_},{Symbol:W_}),L_(y_(nS),(function(e){P_(e)})),r_({target:B_,stat:!0,forced:!l_},{useSetter:function(){rS=!0},useSimple:function(){rS=!1}}),r_({target:"Object",stat:!0,forced:!l_,sham:!s_},{create:function(e,t){return void 0===t?g_(e):lS(g_(e),t)},defineProperty:sS,defineProperties:lS,getOwnPropertyDescriptor:cS}),r_({target:"Object",stat:!0,forced:!l_},{getOwnPropertyNames:dS}),R_(),N_(W_,B_),D_[F_]=!0;var pS=pv&&!!Symbol.for&&!!Symbol.keyFor,fS=Ty,mS=Zm,vS=Qv,gS=lw,yS=Yv,bS=pS,wS=yS("string-to-symbol-registry"),xS=yS("symbol-to-string-registry");fS({target:"Symbol",stat:!0,forced:!bS},{for:function(e){var t=gS(e);if(vS(wS,t))return wS[t];var n=mS("Symbol")(t);return wS[t]=n,xS[n]=t,n}});var _S=Ty,SS=Qv,kS=bv,TS=xv,CS=pS,ES=Yv("symbol-to-string-registry");_S({target:"Symbol",stat:!0,forced:!CS},{keyFor:function(e){if(!kS(e))throw new TypeError(TS(e)+" is not a symbol");if(SS(ES,e))return ES[e]}});var OS=kx,DS=wm,MS=mm,AS=lw,IS=dm([].push),PS=Ty,RS=Zm,NS=am,jS=Tm,LS=dm,FS=em,BS=wm,US=bv,HS=Ow,YS=function(e){if(DS(e))return e;if(OS(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];"string"==typeof i?IS(n,i):"number"!=typeof i&&"Number"!==MS(i)&&"String"!==MS(i)||IS(n,AS(i))}var o=n.length,a=!0;return function(e,t){if(a)return a=!1,t;if(OS(this))return t;for(var r=0;r<o;r++)if(n[r]===e)return t}}},zS=pv,WS=String,GS=RS("JSON","stringify"),VS=LS(/./.exec),qS=LS("".charAt),QS=LS("".charCodeAt),$S=LS("".replace),XS=LS(1..toString),KS=/[\uD800-\uDFFF]/g,ZS=/^[\uD800-\uDBFF]$/,JS=/^[\uDC00-\uDFFF]$/,ek=!zS||FS((function(){var e=RS("Symbol")("stringify detection");return"[null]"!==GS([e])||"{}"!==GS({a:e})||"{}"!==GS(Object(e))})),tk=FS((function(){return'"\\udf06\\ud834"'!==GS("\udf06\ud834")||'"\\udead"'!==GS("\udead")})),nk=function(e,t){var n=HS(arguments),r=YS(t);if(BS(r)||void 0!==e&&!US(e))return n[1]=function(e,t){if(BS(r)&&(t=jS(r,this,WS(e),t)),!US(t))return t},NS(GS,null,n)},rk=function(e,t,n){var r=qS(n,t-1),i=qS(n,t+1);return VS(ZS,e)&&!VS(JS,i)||VS(JS,e)&&!VS(ZS,r)?"\\u"+XS(QS(e,0),16):e};GS&&PS({target:"JSON",stat:!0,arity:3,forced:ek||tk},{stringify:function(e,t,n){var r=HS(arguments),i=NS(ek?nk:GS,null,r);return tk&&"string"==typeof i?$S(i,KS,rk):i}});var ik=Tb,ok=Gv;Ty({target:"Object",stat:!0,forced:!pv||em((function(){ik.f(1)}))},{getOwnPropertySymbols:function(e){var t=ik.f;return t?t(ok(e)):[]}});var ak=qm.Object.getOwnPropertySymbols,sk=ak,lk=Gv,uk=ub;Ty({target:"Object",stat:!0,forced:em((function(){uk(1)}))},{keys:function(e){return uk(lk(e))}});var ck=qm.Object.keys,dk=dm,hk=Tv,pk=Vm,fk=Qv,mk=Ow,vk=tm,gk=Function,yk=dk([].concat),bk=dk([].join),wk={},xk=vk?gk.bind:function(e){var t=hk(this),n=t.prototype,r=mk(arguments,1),i=function(){var n=yk(r,mk(arguments));return this instanceof i?function(e,t,n){if(!fk(wk,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";wk[t]=gk("C,a","return new C("+bk(r,",")+")")}return wk[t](e,n)}(t,n.length,n):t.apply(e,n)};return pk(n)&&(i.prototype=n),i},_k=Hx,Sk=xv,kk=TypeError,Tk=Ty,Ck=am,Ek=xk,Ok=function(e){if(_k(e))return e;throw new kk(Sk(e)+" is not a constructor")},Dk=Jg,Mk=Vm,Ak=Cw,Ik=em,Pk=Zm("Reflect","construct"),Rk=Object.prototype,Nk=[].push,jk=Ik((function(){function e(){}return!(Pk((function(){}),[],e)instanceof e)})),Lk=!Ik((function(){Pk((function(){}))})),Fk=jk||Lk;Tk({target:"Reflect",stat:!0,forced:Fk,sham:Fk},{construct:function(e,t){Ok(e),Dk(t);var n=arguments.length<3?e:Ok(arguments[2]);if(Lk&&!jk)return Pk(e,t,n);if(e===n){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])}var r=[null];return Ck(Nk,r,t),new(Ck(Ek,e,r))}var i=n.prototype,o=Ak(Mk(i)?i:Rk),a=Ck(e,o,t);return Mk(a)?a:o}});var Bk=qm.Reflect.construct,Uk={exports:{}},Hk=_m,Yk=dm,zk=Tm,Wk=em,Gk=ub,Vk=Tb,qk=Cm,Qk=Gv,$k=Lm,Xk=Object.assign,Kk=Object.defineProperty,Zk=Yk([].concat),Jk=!Xk||Wk((function(){if(Hk&&1!==Xk({b:1},Xk(Kk({},"a",{enumerable:!0,get:function(){Kk(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==Xk({},e)[n]||Gk(Xk({},t)).join("")!==r}))?function(e,t){for(var n=Qk(e),r=arguments.length,i=1,o=Vk.f,a=qk.f;r>i;)for(var s,l=$k(arguments[i++]),u=o?Zk(Gk(l),o(l)):Gk(l),c=u.length,d=0;c>d;)s=u[d++],Hk&&!zk(a,l,s)||(n[s]=l[s]);return n}:Xk,eT=Jk;Ty({target:"Object",stat:!0,arity:2,forced:Object.assign!==eT},{assign:eT});var tT=qm.Object.assign,nT=tT,rT=xk;Ty({target:"Function",proto:!0,forced:Function.bind!==rT},{bind:rT});var iT=Jf,oT=qm,aT=function(e,t){var n=oT[e+"Prototype"],r=n&&n[t];if(r)return r;var i=iT[e],o=i&&i.prototype;return o&&o[t]},sT=aT("Function","bind"),lT=Jm,uT=sT,cT=Function.prototype,dT=function(e){var t=e.bind;return e===cT||lT(cT,e)&&t===cT.bind?uT:t},hT=dT,pT=hT;!function(e){var t=nT,n=pT;function r(){var i;return e.exports=r=t?n(i=t).call(i):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},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(null,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Uk);var fT=Uk.exports,mT=em,vT=function(e,t){var n=[][e];return!!n&&mT((function(){n.call(null,t||function(){return 1},1)}))},gT=n_.every;Ty({target:"Array",proto:!0,forced:!vT("every")},{every:function(e){return gT(this,e,arguments.length>1?arguments[1]:void 0)}});var yT=aT("Array","every"),bT=Jm,wT=yT,xT=Array.prototype,_T=function(e){var t=e.every;return e===xT||bT(xT,e)&&t===xT.every?wT:t},ST=_T,kT=n_.some;Ty({target:"Array",proto:!0,forced:!vT("some")},{some:function(e){return kT(this,e,arguments.length>1?arguments[1]:void 0)}});var TT=aT("Array","some"),CT=Jm,ET=TT,OT=Array.prototype,DT=function(e){var t=e.some;return e===OT||CT(OT,e)&&t===OT.some?ET:t},MT=DT,AT=hT,IT=tT,PT=em,RT=uv,NT=lg("species"),jT=function(e){return RT>=51||!PT((function(){var t=[];return(t.constructor={})[NT]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},LT=n_.filter;Ty({target:"Array",proto:!0,forced:!jT("filter")},{filter:function(e){return LT(this,e,arguments.length>1?arguments[1]:void 0)}});var FT=aT("Array","filter"),BT=Jm,UT=FT,HT=Array.prototype,YT=function(e){var t=e.filter;return e===HT||BT(HT,e)&&t===HT.filter?UT:t},zT=YT,WT={exports:{}},GT={exports:{}};Ty({target:"Array",stat:!0},{isArray:kx});var VT=qm.Array.isArray,qT=VT,QT={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(QT);var $T=QT.exports;!function(e){var t=qT,n=$T;e.exports=function(e){if(t(e))return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(GT);var XT=GT.exports,KT={exports:{}},ZT=TypeError,JT=function(e){if(e>9007199254740991)throw ZT("Maximum allowed index exceeded");return e},eC=Ty,tC=em,nC=kx,rC=Vm,iC=Gv,oC=qy,aC=JT,sC=Nb,lC=Qx,uC=jT,cC=uv,dC=lg("isConcatSpreadable"),hC=cC>=51||!tC((function(){var e=[];return e[dC]=!1,e.concat()[0]!==e})),pC=function(e){if(!rC(e))return!1;var t=e[dC];return void 0!==t?!!t:nC(e)};eC({target:"Array",proto:!0,arity:1,forced:!hC||!uC("concat")},{concat:function(e){var t,n,r,i,o,a=iC(this),s=lC(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(pC(o=-1===t?a:arguments[t]))for(i=oC(o),aC(l+i),n=0;n<i;n++,l++)n in o&&sC(s,l,o[n]);else aC(l+1),sC(s,l++,o);return s.length=l,s}}),Vw("asyncIterator"),Vw("hasInstance"),Vw("isConcatSpreadable"),Vw("iterator"),Vw("match"),Vw("matchAll"),Vw("replace"),Vw("search"),Vw("species"),Vw("split");var fC=Kw;Vw("toPrimitive"),fC();var mC=Zm,vC=ax;Vw("toStringTag"),vC(mC("Symbol"),"Symbol"),Vw("unscopables"),ax(Jf.JSON,"JSON",!0);var gC,yC,bC,wC=qm.Symbol,xC=function(){},_C={},SC=_m,kC=Qv,TC=Function.prototype,CC=SC&&Object.getOwnPropertyDescriptor,EC=kC(TC,"name"),OC={EXISTS:EC,PROPER:EC&&"something"===function(){}.name,CONFIGURABLE:EC&&(!SC||SC&&CC(TC,"name").configurable)},DC=!em((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),MC=Qv,AC=wm,IC=Gv,PC=DC,RC=hw("IE_PROTO"),NC=Object,jC=NC.prototype,LC=PC?NC.getPrototypeOf:function(e){var t=IC(e);if(MC(t,RC))return t[RC];var n=t.constructor;return AC(n)&&t instanceof n?n.prototype:t instanceof NC?jC:null},FC=em,BC=wm,UC=Vm,HC=Cw,YC=LC,zC=Nw,WC=lg("iterator"),GC=!1;[].keys&&("next"in(bC=[].keys())?(yC=YC(YC(bC)))!==Object.prototype&&(gC=yC):GC=!0);var VC=!UC(gC)||FC((function(){var e={};return gC[WC].call(e)!==e}));BC((gC=VC?{}:HC(gC))[WC])||zC(gC,WC,(function(){return this}));var qC={IteratorPrototype:gC,BUGGY_SAFARI_ITERATORS:GC},QC=qC.IteratorPrototype,$C=Cw,XC=Im,KC=ax,ZC=_C,JC=function(){return this},eE=dm,tE=Tv,nE=Vm,rE=function(e){return nE(e)||null===e},iE=String,oE=TypeError,aE=function(e,t,n){try{return eE(tE(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},sE=Vm,lE=Hm,uE=function(e){if(rE(e))return e;throw new oE("Can't set "+iE(e)+" as a prototype")},cE=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=aE(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return lE(n),uE(r),sE(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0),dE=Ty,hE=Tm,pE=OC,fE=function(e,t,n,r){var i=t+" Iterator";return e.prototype=$C(QC,{next:XC(+!r,n)}),KC(e,i,!1,!0),ZC[i]=JC,e},mE=LC,vE=ax,gE=Nw,yE=_C,bE=qC,wE=pE.PROPER,xE=bE.BUGGY_SAFARI_ITERATORS,_E=lg("iterator"),SE="keys",kE="values",TE="entries",CE=function(){return this},EE=function(e,t,n,r,i,o,a){fE(n,t,r);var s,l,u,c=function(e){if(e===i&&m)return m;if(!xE&&e&&e in p)return p[e];switch(e){case SE:case kE:case TE:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",h=!1,p=e.prototype,f=p[_E]||p["@@iterator"]||i&&p[i],m=!xE&&f||c(i),v="Array"===t&&p.entries||f;if(v&&(s=mE(v.call(new e)))!==Object.prototype&&s.next&&(vE(s,d,!0,!0),yE[d]=CE),wE&&i===kE&&f&&f.name!==kE&&(h=!0,m=function(){return hE(f,this)}),i)if(l={values:c(kE),keys:o?m:c(SE),entries:c(TE)},a)for(u in l)(xE||h||!(u in p))&&gE(p,u,l[u]);else dE({target:t,proto:!0,forced:xE||h},l);return a&&p[_E]!==m&&gE(p,_E,m,{name:i}),yE[t]=m,l},OE=function(e,t){return{value:e,done:t}},DE=Wm,ME=xC,AE=_C,IE=_x;Qg.f;var PE=EE,RE=OE,NE="Array Iterator",jE=IE.set,LE=IE.getterFor(NE);PE(Array,"Array",(function(e,t){jE(this,{type:NE,target:DE(e),index:0,kind:t})}),(function(){var e=LE(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,RE(void 0,!0);switch(e.kind){case"keys":return RE(n,!1);case"values":return RE(t[n],!1)}return RE([n,t[n]],!1)}),"values"),AE.Arguments=AE.Array,ME(),ME(),ME();var FE={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},BE=Jf,UE=ax,HE=_C;for(var YE in FE)UE(BE[YE],YE),HE[YE]=HE.Array;var zE=wC,WE=lg,GE=Qg.f,VE=WE("metadata"),qE=Function.prototype;void 0===qE[VE]&&GE(qE,VE,{value:null}),Vw("asyncDispose"),Vw("dispose"),Vw("metadata");var QE=zE,$E=dm,XE=Zm("Symbol"),KE=XE.keyFor,ZE=$E(XE.prototype.valueOf),JE=XE.isRegisteredSymbol||function(e){try{return void 0!==KE(ZE(e))}catch(e){return!1}};Ty({target:"Symbol",stat:!0},{isRegisteredSymbol:JE});for(var eO=Yv,tO=Zm,nO=dm,rO=bv,iO=lg,oO=tO("Symbol"),aO=oO.isWellKnownSymbol,sO=tO("Object","getOwnPropertyNames"),lO=nO(oO.prototype.valueOf),uO=eO("wks"),cO=0,dO=sO(oO),hO=dO.length;cO<hO;cO++)try{var pO=dO[cO];rO(oO[pO])&&iO(pO)}catch(Jo){}var fO=function(e){if(aO&&aO(e))return!0;try{for(var t=lO(e),n=0,r=sO(uO),i=r.length;n<i;n++)if(uO[r[n]]==t)return!0}catch(e){}return!1};Ty({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:fO}),Vw("customMatcher"),Vw("observable"),Ty({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:JE}),Ty({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:fO}),Vw("matcher"),Vw("metadataKey"),Vw("patternMatch"),Vw("replaceAll");var mO=QE,vO=dm,gO=Fy,yO=lw,bO=Hm,wO=vO("".charAt),xO=vO("".charCodeAt),_O=vO("".slice),SO=function(e){return function(t,n){var r,i,o=yO(bO(t)),a=gO(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=xO(o,a))<55296||r>56319||a+1===s||(i=xO(o,a+1))<56320||i>57343?e?wO(o,a):r:e?_O(o,a,a+2):i-56320+(r-55296<<10)+65536}},kO={codeAt:SO(!1),charAt:SO(!0)}.charAt,TO=lw,CO=_x,EO=EE,OO=OE,DO="String Iterator",MO=CO.set,AO=CO.getterFor(DO);EO(String,"String",(function(e){MO(this,{type:DO,string:TO(e),index:0})}),(function(){var e,t=AO(this),n=t.string,r=t.index;return r>=n.length?OO(void 0,!0):(e=kO(n,r),t.index+=e.length,OO(e,!1))}));var IO=ow,PO=Ov,RO=Fm,NO=_C,jO=lg("iterator"),LO=function(e){if(!RO(e))return PO(e,jO)||PO(e,"@@iterator")||NO[IO(e)]},FO=LO,BO=Tm,UO=Jg,HO=Ov,YO=Jg,zO=function(e,t,n){var r,i;UO(e);try{if(!(r=HO(e,"return"))){if("throw"===t)throw n;return n}r=BO(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return UO(r),n},WO=_C,GO=lg("iterator"),VO=Array.prototype,qO=Tm,QO=Tv,$O=Jg,XO=xv,KO=LO,ZO=TypeError,JO=qg,eD=Tm,tD=Gv,nD=function(e,t,n,r){try{return r?t(YO(n)[0],n[1]):t(n)}catch(t){zO(e,"throw",t)}},rD=function(e){return void 0!==e&&(WO.Array===e||VO[GO]===e)},iD=Hx,oD=qy,aD=Nb,sD=function(e,t){var n=arguments.length<2?KO(e):t;if(QO(n))return $O(qO(n,e));throw new ZO(XO(e)+" is not iterable")},lD=LO,uD=Array,cD=lg("iterator"),dD=!1;try{var hD=0,pD={next:function(){return{done:!!hD++}},return:function(){dD=!0}};pD[cD]=function(){return this},Array.from(pD,(function(){throw 2}))}catch(Jo){}var fD=function(e){var t=tD(e),n=iD(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=JO(i,r>2?arguments[2]:void 0));var a,s,l,u,c,d,h=lD(t),p=0;if(!h||this===uD&&rD(h))for(a=oD(t),s=n?new this(a):uD(a);a>p;p++)d=o?i(t[p],p):t[p],aD(s,p,d);else for(s=n?new this:[],c=(u=sD(t,h)).next;!(l=eD(c,u)).done;p++)d=o?nD(u,i,[l.value,p],!0):l.value,aD(s,p,d);return s.length=p,s},mD=function(e,t){try{if(!t&&!dD)return!1}catch(e){return!1}var n=!1;try{var r={};r[cD]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n};Ty({target:"Array",stat:!0,forced:!mD((function(e){Array.from(e)}))},{from:fD});var vD=qm.Array.from;!function(e){var t=mO,n=FO,r=vD;e.exports=function(e){if(void 0!==t&&null!=n(e)||null!=e["@@iterator"])return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(KT);var gD=KT.exports,yD={exports:{}},bD=Ty,wD=kx,xD=Hx,_D=Vm,SD=Yy,kD=qy,TD=Wm,CD=Nb,ED=lg,OD=Ow,DD=jT("slice"),MD=ED("species"),AD=Array,ID=Math.max;bD({target:"Array",proto:!0,forced:!DD},{slice:function(e,t){var n,r,i,o=TD(this),a=kD(o),s=SD(e,a),l=SD(void 0===t?a:t,a);if(wD(o)&&(n=o.constructor,(xD(n)&&(n===AD||wD(n.prototype))||_D(n)&&null===(n=n[MD]))&&(n=void 0),n===AD||void 0===n))return OD(o,s,l);for(r=new(void 0===n?AD:n)(ID(l-s,0)),i=0;s<l;s++,i++)s in o&&CD(r,i,o[s]);return r.length=i,r}});var PD=aT("Array","slice"),RD=Jm,ND=PD,jD=Array.prototype,LD=function(e){var t=e.slice;return e===jD||RD(jD,e)&&t===jD.slice?ND:t},FD=LD,BD=FD;!function(e){var t=BD,n=vD,r=$T;e.exports=function(e,i){if(e){var o;if("string"==typeof e)return r(e,i);var a=t(o={}.toString.call(e)).call(o,8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?n(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?r(e,i):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(yD);var UD=yD.exports,HD={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(HD);var YD=HD.exports;!function(e){var t=XT,n=gD,r=UD,i=YD;e.exports=function(e){return t(e)||n(e)||r(e)||i()},e.exports.__esModule=!0,e.exports.default=e.exports}(WT);var zD=WT.exports,WD=Ty,GD=n_.findIndex,VD=xC,qD="findIndex",QD=!0;qD in[]&&Array(1)[qD]((function(){QD=!1})),WD({target:"Array",proto:!0,forced:QD},{findIndex:function(e){return GD(this,e,arguments.length>1?arguments[1]:void 0)}}),VD();var $D=aT("Array","findIndex"),XD=Jm,KD=$D,ZD=Array.prototype,JD=function(e){var t=e.findIndex;return e===ZD||XD(ZD,e)&&t===ZD.findIndex?KD:t},eM=JD,tM=aT("Array","concat"),nM=Jm,rM=tM,iM=Array.prototype,oM=function(e){var t=e.concat;return e===iM||nM(iM,e)&&t===iM.concat?rM:t},aM=oM,sM={exports:{}},lM=ak,uM=Zy.includes;Ty({target:"Array",proto:!0,forced:em((function(){return!Array(1).includes()}))},{includes:function(e){return uM(this,e,arguments.length>1?arguments[1]:void 0)}});var cM=aT("Array","includes"),dM=Vm,hM=mm,pM=lg("match"),fM=function(e){var t;return dM(e)&&(void 0!==(t=e[pM])?!!t:"RegExp"===hM(e))},mM=TypeError,vM=function(e){if(fM(e))throw new mM("The method doesn't accept regular expressions");return e},gM=lg("match"),yM=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[gM]=!1,"/./"[e](t)}catch(e){}}return!1},bM=Ty,wM=vM,xM=Hm,_M=lw,SM=yM,kM=dm("".indexOf);bM({target:"String",proto:!0,forced:!SM("includes")},{includes:function(e){return!!~kM(_M(xM(this)),_M(wM(e)),arguments.length>1?arguments[1]:void 0)}});var TM=aT("String","includes"),CM=Jm,EM=cM,OM=TM,DM=Array.prototype,MM=String.prototype,AM=function(e){var t=e.includes;return e===DM||CM(DM,e)&&t===DM.includes?EM:"string"==typeof e||e===MM||CM(MM,e)&&t===MM.includes?OM:t},IM=AM,PM={exports:{}};!function(e){var t=IM;e.exports=function(e,n){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t(n).call(n,i))continue;r[i]=e[i]}return r},e.exports.__esModule=!0,e.exports.default=e.exports}(PM);var RM=PM.exports;!function(e){var t=lM,n=IM,r=RM;e.exports=function(e,i){if(null==e)return{};var o,a,s=r(e,i);if(t){var l=t(e);for(a=0;a<l.length;a++)o=l[a],n(i).call(i,o)||{}.propertyIsEnumerable.call(e,o)&&(s[o]=e[o])}return s},e.exports.__esModule=!0,e.exports.default=e.exports}(sM);var NM=sM.exports,jM=xv,LM=TypeError,FM=function(e,t){if(!delete e[t])throw new LM("Cannot delete property "+jM(t)+" of "+jM(e))},BM=Ow,UM=Math.floor,HM=function(e,t){var n=e.length;if(n<8)for(var r,i,o=1;o<n;){for(i=o,r=e[o];i&&t(e[i-1],r)>0;)e[i]=e[--i];i!==o++&&(e[i]=r)}else for(var a=UM(n/2),s=HM(BM(e,0,a),t),l=HM(BM(e,a),t),u=s.length,c=l.length,d=0,h=0;d<u||h<c;)e[d+h]=d<u&&h<c?t(s[d],l[h])<=0?s[d++]:l[h++]:d<u?s[d++]:l[h++];return e},YM=HM,zM=nv.match(/firefox\/(\d+)/i),WM=!!zM&&+zM[1],GM=/MSIE|Trident/.test(nv),VM=nv.match(/AppleWebKit\/(\d+)\./),qM=!!VM&&+VM[1],QM=Ty,$M=dm,XM=Tv,KM=Gv,ZM=qy,JM=FM,eA=lw,tA=em,nA=YM,rA=vT,iA=WM,oA=GM,aA=uv,sA=qM,lA=[],uA=$M(lA.sort),cA=$M(lA.push),dA=tA((function(){lA.sort(void 0)})),hA=tA((function(){lA.sort(null)})),pA=rA("sort"),fA=!tA((function(){if(aA)return aA<70;if(!(iA&&iA>3)){if(oA)return!0;if(sA)return sA<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)lA.push({k:t+r,v:n})}for(lA.sort((function(e,t){return t.v-e.v})),r=0;r<lA.length;r++)t=lA[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));QM({target:"Array",proto:!0,forced:dA||!hA||!pA||!fA},{sort:function(e){void 0!==e&&XM(e);var t=KM(this);if(fA)return void 0===e?uA(t):uA(t,e);var n,r,i=[],o=ZM(t);for(r=0;r<o;r++)r in t&&cA(i,t[r]);for(nA(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:eA(t)>eA(n)?1:-1}}(e)),n=ZM(i),r=0;r<n;)t[r]=i[r++];for(;r<o;)JM(t,r++);return t}});var mA=aT("Array","sort"),vA=Jm,gA=mA,yA=Array.prototype,bA=function(e){var t=e.sort;return e===yA||vA(yA,e)&&t===yA.sort?gA:t},wA=bA,xA=_m,_A=kx,SA=TypeError,kA=Object.getOwnPropertyDescriptor,TA=xA&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),CA=TA?function(e,t){if(_A(e)&&!kA(e,"length").writable)throw new SA("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},EA=Ty,OA=Gv,DA=Yy,MA=Fy,AA=qy,IA=CA,PA=JT,RA=Qx,NA=Nb,jA=FM,LA=jT("splice"),FA=Math.max,BA=Math.min;EA({target:"Array",proto:!0,forced:!LA},{splice:function(e,t){var n,r,i,o,a,s,l=OA(this),u=AA(l),c=DA(e,u),d=arguments.length;for(0===d?n=r=0:1===d?(n=0,r=u-c):(n=d-2,r=BA(FA(MA(t),0),u-c)),PA(u+n-r),i=RA(l,r),o=0;o<r;o++)(a=c+o)in l&&NA(i,o,l[a]);if(i.length=r,n<r){for(o=c;o<u-r;o++)s=o+n,(a=o+r)in l?l[s]=l[a]:jA(l,s);for(o=u;o>u-r+n;o--)jA(l,o-1)}else if(n>r)for(o=u-r;o>c;o--)s=o+n-1,(a=o+r-1)in l?l[s]=l[a]:jA(l,s);for(o=0;o<n;o++)l[o+c]=arguments[o+2];return IA(l,u-r+n),i}});var UA=aT("Array","splice"),HA=Jm,YA=UA,zA=Array.prototype,WA=function(e){var t=e.splice;return e===zA||HA(zA,e)&&t===zA.splice?YA:t},GA=WA,VA=Tv,qA=Gv,QA=Lm,$A=qy,XA=TypeError,KA="Reduce of empty array with no initial value",ZA=function(e){return function(t,n,r,i){var o=qA(t),a=QA(o),s=$A(o);if(VA(n),0===s&&r<2)throw new XA(KA);var l=e?s-1:0,u=e?-1:1;if(r<2)for(;;){if(l in a){i=a[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw new XA(KA)}for(;e?l>=0:s>l;l+=u)l in a&&(i=n(i,a[l],l,o));return i}},JA={left:ZA(!1),right:ZA(!0)},eI=Jf,tI=nv,nI=mm,rI=function(e){return tI.slice(0,e.length)===e},iI=rI("Bun/")?"BUN":rI("Cloudflare-Workers")?"CLOUDFLARE":rI("Deno/")?"DENO":rI("Node.js/")?"NODE":eI.Bun&&"string"==typeof Bun.version?"BUN":eI.Deno&&"object"==typeof Deno.version?"DENO":"process"===nI(eI.process)?"NODE":eI.window&&eI.document?"BROWSER":"REST",oI=JA.left;Ty({target:"Array",proto:!0,forced:!("NODE"===iI)&&uv>79&&uv<83||!vT("reduce")},{reduce:function(e){var t=arguments.length;return oI(this,e,t,t>1?arguments[1]:void 0)}});var aI=aT("Array","reduce"),sI=Jm,lI=aI,uI=Array.prototype,cI=function(e){var t=e.reduce;return e===uI||sI(uI,e)&&t===uI.reduce?lI:t},dI=cI,hI=VT,pI={exports:{}},fI=Lw.f("iterator");!function(e){var t=mO,n=fI;function r(i){return e.exports=r="function"==typeof t&&"symbol"==typeof n?function(e){return typeof e}:function(e){return e&&"function"==typeof t&&e.constructor===t&&e!==t.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(pI);var mI=pI.exports,vI=n_.forEach,gI=vT("forEach")?[].forEach:function(e){return vI(this,e,arguments.length>1?arguments[1]:void 0)};Ty({target:"Array",proto:!0,forced:[].forEach!==gI},{forEach:gI});var yI=aT("Array","forEach"),bI=ow,wI=Qv,xI=Jm,_I=yI,SI=Array.prototype,kI={DOMTokenList:!0,NodeList:!0},TI=function(e){var t=e.forEach;return e===SI||xI(SI,e)&&t===SI.forEach||wI(kI,bI(e))?_I:t},CI=_m,EI=em,OI=dm,DI=LC,MI=ub,AI=Wm,II=OI(Cm.f),PI=OI([].push),RI=CI&&EI((function(){var e=Object.create(null);return e[2]=2,!II(e,2)})),NI=function(e){return function(t){for(var n,r=AI(t),i=MI(r),o=RI&&null===DI(r),a=i.length,s=0,l=[];a>s;)n=i[s++],CI&&!(o?n in r:II(r,n))||PI(l,e?[n,r[n]]:r[n]);return l}},jI={entries:NI(!0),values:NI(!1)},LI=jI.values;Ty({target:"Object",stat:!0},{values:function(e){return LI(e)}});var FI=qm.Object.values,BI=n_.map;Ty({target:"Array",proto:!0,forced:!jT("map")},{map:function(e){return BI(this,e,arguments.length>1?arguments[1]:void 0)}});var UI=aT("Array","map"),HI=Jm,YI=UI,zI=Array.prototype,WI=function(e){var t=e.map;return e===zI||HI(zI,e)&&t===zI.map?YI:t},GI=WI,VI=Ty,qI=Zy.indexOf,QI=vT,$I=ym([].indexOf),XI=!!$I&&1/$I([1],1,-0)<0;VI({target:"Array",proto:!0,forced:XI||!QI("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return XI?$I(this,e,t)||0:qI(this,e,t)}});var KI=aT("Array","indexOf"),ZI=Jm,JI=KI,eP=Array.prototype,tP=function(e){var t=e.indexOf;return e===eP||ZI(eP,e)&&t===eP.indexOf?JI:t},nP=tP,rP={exports:{}};!function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports}(rP);var iP=rP.exports,oP={exports:{}},aP=Ay,sP={exports:{}},lP={exports:{}},uP=Lw.f("toPrimitive");!function(e){var t=uP,n=mI.default;e.exports=function(e,r){if("object"!=n(e)||!e)return e;var i=e[t];if(void 0!==i){var o=i.call(e,r||"default");if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(lP);var cP=lP.exports;!function(e){var t=mI.default,n=cP;e.exports=function(e){var r=n(e,"string");return"symbol"==t(r)?r:r+""},e.exports.__esModule=!0,e.exports.default=e.exports}(sP);var dP=sP.exports;!function(e){var t=aP,n=dP;function r(e,r){for(var i=0;i<r.length;i++){var o=r[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),t(e,n(o.key),o)}}e.exports=function(e,n,i){return n&&r(e.prototype,n),i&&r(e,i),t(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports}(oP);var hP=oP.exports,pP={exports:{}};!function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports}(pP);var fP=pP.exports,mP={exports:{}};Ty({target:"Object",stat:!0,sham:!_m},{create:Cw});var vP=qm.Object,gP=function(e,t){return vP.create(e,t)},yP={exports:{}};Ty({target:"Object",stat:!0},{setPrototypeOf:cE});var bP=qm.Object.setPrototypeOf;!function(e){var t=bP,n=pT;function r(i,o){var a;return e.exports=r=t?n(a=t).call(a):function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,r(i,o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(yP);var wP=yP.exports;!function(e){var t=gP,n=aP,r=wP;e.exports=function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");e.prototype=t(i&&i.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n(e,"prototype",{writable:!1}),i&&r(e,i)},e.exports.__esModule=!0,e.exports.default=e.exports}(mP);var xP=mP.exports,_P={exports:{}};!function(e){var t=mI.default,n=fP;e.exports=function(e,r){if(r&&("object"==t(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return n(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(_P);var SP=_P.exports,kP={exports:{}},TP=Gv,CP=LC,EP=DC;Ty({target:"Object",stat:!0,forced:em((function(){CP(1)})),sham:!EP},{getPrototypeOf:function(e){return CP(TP(e))}});var OP=qm.Object.getPrototypeOf;!function(e){var t=bP,n=pT,r=OP;function i(o){var a;return e.exports=i=t?n(a=r).call(a):function(e){return e.__proto__||r(e)},e.exports.__esModule=!0,e.exports.default=e.exports,i(o)}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports}(kP);var DP=kP.exports,MP={exports:{}};!function(e){var t=aP,n=dP;e.exports=function(e,r,i){return(r=n(r))in e?t(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e},e.exports.__esModule=!0,e.exports.default=e.exports}(MP);var AP=MP.exports,IP=mt(ht),PP=9007199254740991,RP="[object Arguments]",NP="[object Function]",jP="[object GeneratorFunction]",LP=/^(?:0|[1-9]\d*)$/;var FP,BP,UP=Object.prototype,HP=UP.hasOwnProperty,YP=UP.toString,zP=UP.propertyIsEnumerable,WP=(FP=Object.keys,BP=Object,function(e){return FP(BP(e))}),GP=Math.max;function VP(e,t){var n=KP(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&ZP(e)}(e)&&HP.call(e,"callee")&&(!zP.call(e,"callee")||YP.call(e)==RP)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!HP.call(e,o)||i&&("length"==o||$P(o,r))||n.push(o);return n}function qP(e,t,n){var r=e[t];HP.call(e,t)&&XP(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function QP(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||UP,t!==r)return WP(e);var t,n,r,i=[];for(var o in Object(e))HP.call(e,o)&&"constructor"!=o&&i.push(o);return i}function $P(e,t){return!!(t=null==t?PP:t)&&("number"==typeof e||LP.test(e))&&e>-1&&e%1==0&&e<t}function XP(e,t){return e===t||e!=e&&t!=t}var KP=Array.isArray;function ZP(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=PP}(e.length)&&!function(e){var t=JP(e)?YP.call(e):"";return t==NP||t==jP}(e)}function JP(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var eR,tR=(eR=function(e,t,n,r){!function(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):void 0;qP(n,a,void 0===s?e[a]:s)}}(t,function(e){return ZP(e)?VP(e):QP(e)}(t),e,r)},function(e,t){return t=GP(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=GP(n.length-t,0),o=Array(i);++r<i;)o[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=o,function(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)}(e,this,a)}}((function(e,t){var n=-1,r=t.length,i=r>1?t[r-1]:void 0,o=r>2?t[2]:void 0;for(i=eR.length>3&&"function"==typeof i?(r--,i):void 0,o&&function(e,t,n){if(!JP(n))return!1;var r=typeof t;return!!("number"==r?ZP(n)&&$P(t,n.length):"string"==r&&t in n)&&XP(n[t],e)}(t[0],t[1],o)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var a=t[n];a&&eR(e,a,n,i)}return e})));var nR=tR,rR={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Boolean]",a="[object Date]",s="[object Function]",l="[object GeneratorFunction]",u="[object Map]",c="[object Number]",d="[object Object]",h="[object Promise]",p="[object RegExp]",f="[object Set]",m="[object String]",v="[object Symbol]",g="[object WeakMap]",y="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",_="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",T="[object Uint8Array]",C="[object Uint8ClampedArray]",E="[object Uint16Array]",O="[object Uint32Array]",D=/\w*$/,M=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,I={};I[i]=I["[object Array]"]=I[y]=I[b]=I[o]=I[a]=I[w]=I[x]=I[_]=I[S]=I[k]=I[u]=I[c]=I[d]=I[p]=I[f]=I[m]=I[v]=I[T]=I[C]=I[E]=I[O]=!0,I["[object Error]"]=I[s]=I[g]=!1;var P="object"==typeof pt&&pt&&pt.Object===Object&&pt,R="object"==typeof self&&self&&self.Object===Object&&self,N=P||R||Function("return this")(),j=t&&!t.nodeType&&t,L=j&&e&&!e.nodeType&&e,F=L&&L.exports===j;function B(e,t){return e.set(t[0],t[1]),e}function U(e,t){return e.add(t),e}function H(e,t,n,r){var i=-1,o=e?e.length:0;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function Y(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function z(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function W(e,t){return function(n){return e(t(n))}}function G(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var V=Array.prototype,q=Function.prototype,Q=Object.prototype,$=N["__core-js_shared__"],X=function(){var e=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),K=q.toString,Z=Q.hasOwnProperty,J=Q.toString,ee=RegExp("^"+K.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=F?N.Buffer:void 0,ne=N.Symbol,re=N.Uint8Array,ie=W(Object.getPrototypeOf,Object),oe=Object.create,ae=Q.propertyIsEnumerable,se=V.splice,le=Object.getOwnPropertySymbols,ue=te?te.isBuffer:void 0,ce=W(Object.keys,Object),de=je(N,"DataView"),he=je(N,"Map"),pe=je(N,"Promise"),fe=je(N,"Set"),me=je(N,"WeakMap"),ve=je(Object,"create"),ge=He(de),ye=He(he),be=He(pe),we=He(fe),xe=He(me),_e=ne?ne.prototype:void 0,Se=_e?_e.valueOf:void 0;function ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){this.__data__=new Te(e)}function Oe(e,t){var n=ze(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&We(e)}(e)&&Z.call(e,"callee")&&(!ae.call(e,"callee")||J.call(e)==i)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var a in e)!t&&!Z.call(e,a)||o&&("length"==a||Be(a,r))||n.push(a);return n}function De(e,t,n){var r=e[t];Z.call(e,t)&&Ye(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Me(e,t){for(var n=e.length;n--;)if(Ye(e[n][0],t))return n;return-1}function Ae(e,t,n,r,h,g,M){var A;if(r&&(A=g?r(e,h,g,M):r(e)),void 0!==A)return A;if(!qe(e))return e;var P=ze(e);if(P){if(A=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&Z.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,A)}else{var R=Fe(e),N=R==s||R==l;if(Ge(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(R==d||R==i||N&&!g){if(Y(e))return g?e:{};if(A=function(e){return"function"!=typeof e.constructor||Ue(e)?{}:(t=ie(e),qe(t)?oe(t):{});var t}(N?{}:e),!t)return function(e,t){return Re(e,Le(e),t)}(e,function(e,t){return e&&Re(t,Qe(t),e)}(A,e))}else{if(!I[R])return g?e:{};A=function(e,t,n,r){var i=e.constructor;switch(t){case y:return Pe(e);case o:case a:return new i(+e);case b:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case w:case x:case _:case S:case k:case T:case C:case E:case O:return function(e,t){var n=t?Pe(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case u:return function(e,t,n){var r=t?n(z(e),!0):z(e);return H(r,B,new e.constructor)}(e,r,n);case c:case m:return new i(e);case p:return function(e){var t=new e.constructor(e.source,D.exec(e));return t.lastIndex=e.lastIndex,t}(e);case f:return function(e,t,n){var r=t?n(G(e),!0):G(e);return H(r,U,new e.constructor)}(e,r,n);case v:return function(e){return Se?Object(Se.call(e)):{}}(e)}}(e,R,Ae,t)}}M||(M=new Ee);var j=M.get(e);if(j)return j;if(M.set(e,A),!P)var L=n?function(e){return function(e,t,n){var r=t(e);return ze(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Qe,Le)}(e):Qe(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(L||e,(function(i,o){L&&(i=e[o=i]),De(A,o,Ae(i,t,n,r,o,e,M))})),A}function Ie(e){return!(!qe(e)||function(e){return!!X&&X in e}(e))&&(Ve(e)||Y(e)?ee:M).test(He(e))}function Pe(e){var t=new e.constructor(e.byteLength);return new re(t).set(new re(e)),t}function Re(e,t,n,r){n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=r?r(n[a],e[a],a,n,e):void 0;De(n,a,void 0===s?e[a]:s)}return n}function Ne(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 je(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ie(n)?n:void 0}ke.prototype.clear=function(){this.__data__=ve?ve(null):{}},ke.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ke.prototype.get=function(e){var t=this.__data__;if(ve){var r=t[e];return r===n?void 0:r}return Z.call(t,e)?t[e]:void 0},ke.prototype.has=function(e){var t=this.__data__;return ve?void 0!==t[e]:Z.call(t,e)},ke.prototype.set=function(e,t){return this.__data__[e]=ve&&void 0===t?n:t,this},Te.prototype.clear=function(){this.__data__=[]},Te.prototype.delete=function(e){var t=this.__data__,n=Me(t,e);return!(n<0)&&(n==t.length-1?t.pop():se.call(t,n,1),!0)},Te.prototype.get=function(e){var t=this.__data__,n=Me(t,e);return n<0?void 0:t[n][1]},Te.prototype.has=function(e){return Me(this.__data__,e)>-1},Te.prototype.set=function(e,t){var n=this.__data__,r=Me(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new ke,map:new(he||Te),string:new ke}},Ce.prototype.delete=function(e){return Ne(this,e).delete(e)},Ce.prototype.get=function(e){return Ne(this,e).get(e)},Ce.prototype.has=function(e){return Ne(this,e).has(e)},Ce.prototype.set=function(e,t){return Ne(this,e).set(e,t),this},Ee.prototype.clear=function(){this.__data__=new Te},Ee.prototype.delete=function(e){return this.__data__.delete(e)},Ee.prototype.get=function(e){return this.__data__.get(e)},Ee.prototype.has=function(e){return this.__data__.has(e)},Ee.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Te){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ce(r)}return n.set(e,t),this};var Le=le?W(le,Object):function(){return[]},Fe=function(e){return J.call(e)};function Be(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function Ue(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Q)}function He(e){if(null!=e){try{return K.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ye(e,t){return e===t||e!=e&&t!=t}(de&&Fe(new de(new ArrayBuffer(1)))!=b||he&&Fe(new he)!=u||pe&&Fe(pe.resolve())!=h||fe&&Fe(new fe)!=f||me&&Fe(new me)!=g)&&(Fe=function(e){var t=J.call(e),n=t==d?e.constructor:void 0,r=n?He(n):void 0;if(r)switch(r){case ge:return b;case ye:return u;case be:return h;case we:return f;case xe:return g}return t});var ze=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Ve(e)}var Ge=ue||function(){return!1};function Ve(e){var t=qe(e)?J.call(e):"";return t==s||t==l}function qe(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Qe(e){return We(e)?Oe(e):function(e){if(!Ue(e))return ce(e);var t=[];for(var n in Object(e))Z.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Ae(e,!0,!0)}}(rR,rR.exports);var iR=rR.exports,oR={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=1/0,i=9007199254740991,o=17976931348623157e292,a=NaN,s="[object Arguments]",l="[object Array]",u="[object Boolean]",c="[object Date]",d="[object Error]",h="[object Function]",p="[object Map]",f="[object Number]",m="[object Object]",v="[object Promise]",g="[object RegExp]",y="[object Set]",b="[object String]",w="[object Symbol]",x="[object WeakMap]",_="[object ArrayBuffer]",S="[object DataView]",k=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,T=/^\w*$/,C=/^\./,E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,O=/^\s+|\s+$/g,D=/\\(\\)?/g,M=/^[-+]0x[0-9a-f]+$/i,A=/^0b[01]+$/i,I=/^\[object .+?Constructor\]$/,P=/^0o[0-7]+$/i,R=/^(?:0|[1-9]\d*)$/,N={};N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N[s]=N[l]=N[_]=N[u]=N[S]=N[c]=N[d]=N[h]=N[p]=N[f]=N[m]=N[g]=N[y]=N[b]=N[x]=!1;var j=parseInt,L="object"==typeof pt&&pt&&pt.Object===Object&&pt,F="object"==typeof self&&self&&self.Object===Object&&self,B=L||F||Function("return this")(),U=t&&!t.nodeType&&t,H=U&&e&&!e.nodeType&&e,Y=H&&H.exports===U&&L.process,z=function(){try{return Y&&Y.binding("util")}catch(e){}}(),W=z&&z.isTypedArray;function G(e,t){for(var n=-1,r=e?e.length:0;++n<r;)if(t(e[n],n,e))return!0;return!1}function V(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function q(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var $=Array.prototype,X=Function.prototype,K=Object.prototype,Z=B["__core-js_shared__"],J=function(){var e=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ee=X.toString,te=K.hasOwnProperty,ne=K.toString,re=RegExp("^"+ee.call(te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ie=B.Symbol,oe=B.Uint8Array,ae=K.propertyIsEnumerable,se=$.splice,le=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ue=Math.max,ce=Ue(B,"DataView"),de=Ue(B,"Map"),he=Ue(B,"Promise"),pe=Ue(B,"Set"),fe=Ue(B,"WeakMap"),me=Ue(Object,"create"),ve=Qe(ce),ge=Qe(de),ye=Qe(he),be=Qe(pe),we=Qe(fe),xe=ie?ie.prototype:void 0,_e=xe?xe.valueOf:void 0,Se=xe?xe.toString:void 0;function ke(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=e?e.length:0;for(this.__data__=new Ce;++t<n;)this.add(e[t])}function Oe(e){this.__data__=new Te(e)}function De(e,t){var n=et(e)||Je(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,i=!!r;for(var o in e)!t&&!te.call(e,o)||i&&("length"==o||Ye(o,r))||n.push(o);return n}function Me(e,t){for(var n=e.length;n--;)if(Ze(e[n][0],t))return n;return-1}function Ae(e,t){for(var n=0,r=(t=ze(t,e)?[t]:Le(t)).length;null!=e&&n<r;)e=e[qe(t[n++])];return n&&n==r?e:void 0}function Ie(e,t){return null!=e&&t in Object(e)}function Pe(e,t,n,r,i){return e===t||(null==e||null==t||!it(e)&&!ot(t)?e!=e&&t!=t:function(e,t,n,r,i,o){var a=et(e),h=et(t),v=l,x=l;a||(v=(v=He(e))==s?m:v);h||(x=(x=He(t))==s?m:x);var k=v==m&&!V(e),T=x==m&&!V(t),C=v==x;if(C&&!k)return o||(o=new Oe),a||st(e)?Fe(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case S:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!r(new oe(e),new oe(t)));case u:case c:case f:return Ze(+e,+t);case d:return e.name==t.name&&e.message==t.message;case g:case b:return e==t+"";case p:var s=q;case y:var l=2&o;if(s||(s=Q),e.size!=t.size&&!l)return!1;var h=a.get(e);if(h)return h==t;o|=1,a.set(e,t);var m=Fe(s(e),s(t),r,i,o,a);return a.delete(e),m;case w:if(_e)return _e.call(e)==_e.call(t)}return!1}(e,t,v,n,r,i,o);if(!(2&i)){var E=k&&te.call(e,"__wrapped__"),O=T&&te.call(t,"__wrapped__");if(E||O){var D=E?e.value():e,M=O?t.value():t;return o||(o=new Oe),n(D,M,r,i,o)}}if(!C)return!1;return o||(o=new Oe),function(e,t,n,r,i,o){var a=2&i,s=lt(e),l=s.length,u=lt(t),c=u.length;if(l!=c&&!a)return!1;var d=l;for(;d--;){var h=s[d];if(!(a?h in t:te.call(t,h)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var f=!0;o.set(e,t),o.set(t,e);var m=a;for(;++d<l;){var v=e[h=s[d]],g=t[h];if(r)var y=a?r(g,v,h,t,e,o):r(v,g,h,e,t,o);if(!(void 0===y?v===g||n(v,g,r,i,o):y)){f=!1;break}m||(m="constructor"==h)}if(f&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o)}(e,t,Pe,n,r,i))}function Re(e){return!(!it(e)||function(e){return!!J&&J in e}(e))&&(nt(e)||V(e)?re:I).test(Qe(e))}function Ne(e){return"function"==typeof e?e:null==e?ut:"object"==typeof e?et(e)?function(e,t){if(ze(e)&&We(t))return Ge(qe(e),t);return function(n){var r=function(e,t,n){var r=null==e?void 0:Ae(e,t);return void 0===r?n:r}(n,e);return void 0===r&&r===t?function(e,t){return null!=e&&function(e,t,n){t=ze(t,e)?[t]:Le(t);var r,i=-1,o=t.length;for(;++i<o;){var a=qe(t[i]);if(!(r=null!=e&&n(e,a)))break;e=e[a]}if(r)return r;o=e?e.length:0;return!!o&&rt(o)&&Ye(a,o)&&(et(e)||Je(e))}(e,t,Ie)}(n,e):Pe(t,r,void 0,3)}}(e[0],e[1]):function(e){var t=function(e){var t=lt(e),n=t.length;for(;n--;){var r=t[n],i=e[r];t[n]=[r,i,We(i)]}return t}(e);if(1==t.length&&t[0][2])return Ge(t[0][0],t[0][1]);return function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],u=e[l],c=s[1];if(a&&s[2]){if(void 0===u&&!(l in e))return!1}else{var d=new Oe;if(r)var h=r(u,c,l,e,t,d);if(!(void 0===h?Pe(c,u,r,3,d):h))return!1}}return!0}(n,e,t)}}(e):function(e){return ze(e)?(t=qe(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return Ae(t,e)}}(e);var t}(e)}function je(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||K,t!==r)return le(e);var t,n,r,i=[];for(var o in Object(e))te.call(e,o)&&"constructor"!=o&&i.push(o);return i}function Le(e){return et(e)?e:Ve(e)}function Fe(e,t,n,r,i,o){var a=2&i,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,d=!0,h=1&i?new Ee:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var p=e[c],f=t[c];if(r)var m=a?r(f,p,c,t,e,o):r(p,f,c,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!G(t,(function(e,t){if(!h.has(t)&&(p===e||n(p,e,r,i,o)))return h.add(t)}))){d=!1;break}}else if(p!==f&&!n(p,f,r,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Be(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 Ue(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Re(n)?n:void 0}ke.prototype.clear=function(){this.__data__=me?me(null):{}},ke.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ke.prototype.get=function(e){var t=this.__data__;if(me){var r=t[e];return r===n?void 0:r}return te.call(t,e)?t[e]:void 0},ke.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:te.call(t,e)},ke.prototype.set=function(e,t){return this.__data__[e]=me&&void 0===t?n:t,this},Te.prototype.clear=function(){this.__data__=[]},Te.prototype.delete=function(e){var t=this.__data__,n=Me(t,e);return!(n<0)&&(n==t.length-1?t.pop():se.call(t,n,1),!0)},Te.prototype.get=function(e){var t=this.__data__,n=Me(t,e);return n<0?void 0:t[n][1]},Te.prototype.has=function(e){return Me(this.__data__,e)>-1},Te.prototype.set=function(e,t){var n=this.__data__,r=Me(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ce.prototype.clear=function(){this.__data__={hash:new ke,map:new(de||Te),string:new ke}},Ce.prototype.delete=function(e){return Be(this,e).delete(e)},Ce.prototype.get=function(e){return Be(this,e).get(e)},Ce.prototype.has=function(e){return Be(this,e).has(e)},Ce.prototype.set=function(e,t){return Be(this,e).set(e,t),this},Ee.prototype.add=Ee.prototype.push=function(e){return this.__data__.set(e,n),this},Ee.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.clear=function(){this.__data__=new Te},Oe.prototype.delete=function(e){return this.__data__.delete(e)},Oe.prototype.get=function(e){return this.__data__.get(e)},Oe.prototype.has=function(e){return this.__data__.has(e)},Oe.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Te){var r=n.__data__;if(!de||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ce(r)}return n.set(e,t),this};var He=function(e){return ne.call(e)};function Ye(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||R.test(e))&&e>-1&&e%1==0&&e<t}function ze(e,t){if(et(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!at(e))||(T.test(e)||!k.test(e)||null!=t&&e in Object(t))}function We(e){return e==e&&!it(e)}function Ge(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}(ce&&He(new ce(new ArrayBuffer(1)))!=S||de&&He(new de)!=p||he&&He(he.resolve())!=v||pe&&He(new pe)!=y||fe&&He(new fe)!=x)&&(He=function(e){var t=ne.call(e),n=t==m?e.constructor:void 0,r=n?Qe(n):void 0;if(r)switch(r){case ve:return S;case ge:return p;case ye:return v;case be:return y;case we:return x}return t});var Ve=Ke((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(at(e))return Se?Se.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(t);var n=[];return C.test(e)&&n.push(""),e.replace(E,(function(e,t,r,i){n.push(r?i.replace(D,"$1"):t||e)})),n}));function qe(e){if("string"==typeof e||at(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Qe(e){if(null!=e){try{return ee.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var $e,Xe=($e=function(e,t,n){var i=e?e.length:0;if(!i)return-1;var s,l,u=null==n?0:(s=function(e){return e?(e=function(e){if("number"==typeof e)return e;if(at(e))return a;if(it(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=it(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(O,"");var n=A.test(e);return n||P.test(e)?j(e.slice(2),n?2:8):M.test(e)?a:+e}(e))===r||e===-1/0?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}(n),l=s%1,s==s?l?s-l:s:0);return u<0&&(u=ue(i+u,0)),function(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}(e,Ne(t),u)},function(e,t,n){var r=Object(e);if(!tt(e)){var i=Ne(t);e=lt(e),t=function(e){return i(r[e],e,r)}}var o=$e(e,t,n);return o>-1?r[i?e[o]:o]:void 0});function Ke(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");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),a};return n.cache=new(Ke.Cache||Ce),n}function Ze(e,t){return e===t||e!=e&&t!=t}function Je(e){return function(e){return ot(e)&&tt(e)}(e)&&te.call(e,"callee")&&(!ae.call(e,"callee")||ne.call(e)==s)}Ke.Cache=Ce;var et=Array.isArray;function tt(e){return null!=e&&rt(e.length)&&!nt(e)}function nt(e){var t=it(e)?ne.call(e):"";return t==h||"[object GeneratorFunction]"==t}function rt(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}function it(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ot(e){return!!e&&"object"==typeof e}function at(e){return"symbol"==typeof e||ot(e)&&ne.call(e)==w}var st=W?function(e){return function(t){return e(t)}}(W):function(e){return ot(e)&&rt(e.length)&&!!N[ne.call(e)]};function lt(e){return tt(e)?De(e):je(e)}function ut(e){return e}e.exports=Xe}(oR,oR.exports);var aR=oR.exports,sR={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Array]",a="[object Boolean]",s="[object Date]",l="[object Error]",u="[object Function]",c="[object Map]",d="[object Number]",h="[object Object]",p="[object Promise]",f="[object RegExp]",m="[object Set]",v="[object String]",g="[object Symbol]",y="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,_=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[i]=S[o]=S[b]=S[a]=S[w]=S[s]=S[l]=S[u]=S[c]=S[d]=S[h]=S[f]=S[m]=S[v]=S[y]=!1;var k="object"==typeof pt&&pt&&pt.Object===Object&&pt,T="object"==typeof self&&self&&self.Object===Object&&self,C=k||T||Function("return this")(),E=t&&!t.nodeType&&t,O=E&&e&&!e.nodeType&&e,D=O&&O.exports===E,M=D&&k.process,A=function(){try{return M&&M.binding&&M.binding("util")}catch(e){}}(),I=A&&A.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function R(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function N(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var j=Array.prototype,L=Function.prototype,F=Object.prototype,B=C["__core-js_shared__"],U=L.toString,H=F.hasOwnProperty,Y=function(){var e=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),z=F.toString,W=RegExp("^"+U.call(H).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),G=D?C.Buffer:void 0,V=C.Symbol,q=C.Uint8Array,Q=F.propertyIsEnumerable,$=j.splice,X=V?V.toStringTag:void 0,K=Object.getOwnPropertySymbols,Z=G?G.isBuffer:void 0,J=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),ee=Oe(C,"DataView"),te=Oe(C,"Map"),ne=Oe(C,"Promise"),re=Oe(C,"Set"),ie=Oe(C,"WeakMap"),oe=Oe(Object,"create"),ae=Ie(ee),se=Ie(te),le=Ie(ne),ue=Ie(re),ce=Ie(ie),de=V?V.prototype:void 0,he=de?de.valueOf:void 0;function pe(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 fe(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 me(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 ve(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new me;++t<n;)this.add(e[t])}function ge(e){var t=this.__data__=new fe(e);this.size=t.size}function ye(e,t){var n=Ne(e),r=!n&&Re(e),i=!n&&!r&&je(e),o=!n&&!r&&!i&&He(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!H.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ae(u,l))||s.push(u);return s}function be(e,t){for(var n=e.length;n--;)if(Pe(e[n][0],t))return n;return-1}function we(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":X&&X in Object(e)?function(e){var t=H.call(e,X),n=e[X];try{e[X]=void 0;var r=!0}catch(e){}var i=z.call(e);r&&(t?e[X]=n:delete e[X]);return i}(e):function(e){return z.call(e)}(e)}function xe(e){return Ue(e)&&we(e)==i}function _e(e,t,n,r,u){return e===t||(null==e||null==t||!Ue(e)&&!Ue(t)?e!=e&&t!=t:function(e,t,n,r,u,p){var y=Ne(e),x=Ne(t),_=y?o:Me(e),S=x?o:Me(t),k=(_=_==i?h:_)==h,T=(S=S==i?h:S)==h,C=_==S;if(C&&je(e)){if(!je(t))return!1;y=!0,k=!1}if(C&&!k)return p||(p=new ge),y||He(e)?Te(e,t,n,r,u,p):function(e,t,n,r,i,o,u){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case b:return!(e.byteLength!=t.byteLength||!o(new q(e),new q(t)));case a:case s:case d:return Pe(+e,+t);case l:return e.name==t.name&&e.message==t.message;case f:case v:return e==t+"";case c:var h=R;case m:var p=1&r;if(h||(h=N),e.size!=t.size&&!p)return!1;var y=u.get(e);if(y)return y==t;r|=2,u.set(e,t);var x=Te(h(e),h(t),r,i,o,u);return u.delete(e),x;case g:if(he)return he.call(e)==he.call(t)}return!1}(e,t,_,n,r,u,p);if(!(1&n)){var E=k&&H.call(e,"__wrapped__"),O=T&&H.call(t,"__wrapped__");if(E||O){var D=E?e.value():e,M=O?t.value():t;return p||(p=new ge),u(D,M,n,r,p)}}if(!C)return!1;return p||(p=new ge),function(e,t,n,r,i,o){var a=1&n,s=Ce(e),l=s.length,u=Ce(t),c=u.length;if(l!=c&&!a)return!1;var d=l;for(;d--;){var h=s[d];if(!(a?h in t:H.call(t,h)))return!1}var p=o.get(e);if(p&&o.get(t))return p==t;var f=!0;o.set(e,t),o.set(t,e);var m=a;for(;++d<l;){var v=e[h=s[d]],g=t[h];if(r)var y=a?r(g,v,h,t,e,o):r(v,g,h,e,t,o);if(!(void 0===y?v===g||i(v,g,n,r,o):y)){f=!1;break}m||(m="constructor"==h)}if(f&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,u,p)}(e,t,n,r,_e,u))}function Se(e){return!(!Be(e)||function(e){return!!Y&&Y in e}(e))&&(Le(e)?W:x).test(Ie(e))}function ke(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||F,t!==r)return J(e);var t,n,r,i=[];for(var o in Object(e))H.call(e,o)&&"constructor"!=o&&i.push(o);return i}function Te(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,d=!0,h=2&n?new ve:void 0;for(o.set(e,t),o.set(t,e);++c<s;){var p=e[c],f=t[c];if(r)var m=a?r(f,p,c,t,e,o):r(p,f,c,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(h){if(!P(t,(function(e,t){if(a=t,!h.has(a)&&(p===e||i(p,e,n,r,o)))return h.push(t);var a}))){d=!1;break}}else if(p!==f&&!i(p,f,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Ce(e){return function(e,t,n){var r=t(e);return Ne(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,Ye,De)}function Ee(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 Oe(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Se(n)?n:void 0}pe.prototype.clear=function(){this.__data__=oe?oe(null):{},this.size=0},pe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},pe.prototype.get=function(e){var t=this.__data__;if(oe){var r=t[e];return r===n?void 0:r}return H.call(t,e)?t[e]:void 0},pe.prototype.has=function(e){var t=this.__data__;return oe?void 0!==t[e]:H.call(t,e)},pe.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=oe&&void 0===t?n:t,this},fe.prototype.clear=function(){this.__data__=[],this.size=0},fe.prototype.delete=function(e){var t=this.__data__,n=be(t,e);return!(n<0)&&(n==t.length-1?t.pop():$.call(t,n,1),--this.size,!0)},fe.prototype.get=function(e){var t=this.__data__,n=be(t,e);return n<0?void 0:t[n][1]},fe.prototype.has=function(e){return be(this.__data__,e)>-1},fe.prototype.set=function(e,t){var n=this.__data__,r=be(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},me.prototype.clear=function(){this.size=0,this.__data__={hash:new pe,map:new(te||fe),string:new pe}},me.prototype.delete=function(e){var t=Ee(this,e).delete(e);return this.size-=t?1:0,t},me.prototype.get=function(e){return Ee(this,e).get(e)},me.prototype.has=function(e){return Ee(this,e).has(e)},me.prototype.set=function(e,t){var n=Ee(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ve.prototype.add=ve.prototype.push=function(e){return this.__data__.set(e,n),this},ve.prototype.has=function(e){return this.__data__.has(e)},ge.prototype.clear=function(){this.__data__=new fe,this.size=0},ge.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ge.prototype.get=function(e){return this.__data__.get(e)},ge.prototype.has=function(e){return this.__data__.has(e)},ge.prototype.set=function(e,t){var n=this.__data__;if(n instanceof fe){var r=n.__data__;if(!te||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new me(r)}return n.set(e,t),this.size=n.size,this};var De=K?function(e){return null==e?[]:(e=Object(e),function(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}(K(e),(function(t){return Q.call(e,t)})))}:function(){return[]},Me=we;function Ae(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||_.test(e))&&e>-1&&e%1==0&&e<t}function Ie(e){if(null!=e){try{return U.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Pe(e,t){return e===t||e!=e&&t!=t}(ee&&Me(new ee(new ArrayBuffer(1)))!=w||te&&Me(new te)!=c||ne&&Me(ne.resolve())!=p||re&&Me(new re)!=m||ie&&Me(new ie)!=y)&&(Me=function(e){var t=we(e),n=t==h?e.constructor:void 0,r=n?Ie(n):"";if(r)switch(r){case ae:return w;case se:return c;case le:return p;case ue:return m;case ce:return y}return t});var Re=xe(function(){return arguments}())?xe:function(e){return Ue(e)&&H.call(e,"callee")&&!Q.call(e,"callee")},Ne=Array.isArray;var je=Z||function(){return!1};function Le(e){if(!Be(e))return!1;var t=we(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Fe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ue(e){return null!=e&&"object"==typeof e}var He=I?function(e){return function(t){return e(t)}}(I):function(e){return Ue(e)&&Fe(e.length)&&!!S[we(e)]};function Ye(e){return null!=(t=e)&&Fe(t.length)&&!Le(t)?ye(e):ke(e);var t}e.exports=function(e,t){return _e(e,t)}}(sR,sR.exports);var lR=sR.exports;var uR=function(e){return void 0===e},cR={exports:{}};!function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object Function]",a="[object Object]",s=/^\[object .+?Constructor\]$/,l=/^(?:0|[1-9]\d*)$/,u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u[i]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u[o]=u["[object Map]"]=u["[object Number]"]=u[a]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1;var c="object"==typeof pt&&pt&&pt.Object===Object&&pt,d="object"==typeof self&&self&&self.Object===Object&&self,h=c||d||Function("return this")(),p=t&&!t.nodeType&&t,f=p&&e&&!e.nodeType&&e,m=f&&f.exports===p,v=m&&c.process,g=function(){try{var e=f&&f.require&&f.require("util").types;return e||v&&v.binding&&v.binding("util")}catch(e){}}(),y=g&&g.isTypedArray;var b=Array.prototype,w=Function.prototype,x=Object.prototype,_=h["__core-js_shared__"],S=w.toString,k=x.hasOwnProperty,T=function(){var e=/[^.]+$/.exec(_&&_.keys&&_.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),C=x.toString,E=S.call(Object),O=RegExp("^"+S.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),D=m?h.Buffer:void 0,M=h.Symbol,A=h.Uint8Array,I=D?D.allocUnsafe:void 0,P=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object),R=Object.create,N=x.propertyIsEnumerable,j=b.splice,L=M?M.toStringTag:void 0,F=function(){try{var e=ce(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),B=D?D.isBuffer:void 0,U=Math.max,H=Date.now,Y=ce(h,"Map"),z=ce(Object,"create"),W=function(){function e(){}return function(t){if(!_e(t))return{};if(R)return R(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function G(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 V(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 q(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 Q(e){var t=this.__data__=new V(e);this.size=t.size}function $(e,t){var n=ge(e),r=!n&&ve(e),i=!n&&!r&&be(e),o=!n&&!r&&!i&&ke(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var u in e)!t&&!k.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||de(u,l))||s.push(u);return s}function X(e,t,n){(void 0!==n&&!me(e[t],n)||void 0===n&&!(t in e))&&J(e,t,n)}function K(e,t,n){var r=e[t];k.call(e,t)&&me(r,n)&&(void 0!==n||t in e)||J(e,t,n)}function Z(e,t){for(var n=e.length;n--;)if(me(e[n][0],t))return n;return-1}function J(e,t,n){"__proto__"==t&&F?F(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}G.prototype.clear=function(){this.__data__=z?z(null):{},this.size=0},G.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},G.prototype.get=function(e){var t=this.__data__;if(z){var r=t[e];return r===n?void 0:r}return k.call(t,e)?t[e]:void 0},G.prototype.has=function(e){var t=this.__data__;return z?void 0!==t[e]:k.call(t,e)},G.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=z&&void 0===t?n:t,this},V.prototype.clear=function(){this.__data__=[],this.size=0},V.prototype.delete=function(e){var t=this.__data__,n=Z(t,e);return!(n<0)&&(n==t.length-1?t.pop():j.call(t,n,1),--this.size,!0)},V.prototype.get=function(e){var t=this.__data__,n=Z(t,e);return n<0?void 0:t[n][1]},V.prototype.has=function(e){return Z(this.__data__,e)>-1},V.prototype.set=function(e,t){var n=this.__data__,r=Z(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},q.prototype.clear=function(){this.size=0,this.__data__={hash:new G,map:new(Y||V),string:new G}},q.prototype.delete=function(e){var t=ue(this,e).delete(e);return this.size-=t?1:0,t},q.prototype.get=function(e){return ue(this,e).get(e)},q.prototype.has=function(e){return ue(this,e).has(e)},q.prototype.set=function(e,t){var n=ue(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Q.prototype.clear=function(){this.__data__=new V,this.size=0},Q.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Q.prototype.get=function(e){return this.__data__.get(e)},Q.prototype.has=function(e){return this.__data__.has(e)},Q.prototype.set=function(e,t){var n=this.__data__;if(n instanceof V){var r=n.__data__;if(!Y||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new q(r)}return n.set(e,t),this.size=n.size,this};var ee,te=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[ee?a:++r];if(!1===t(i[s],s,i))break}return e};function ne(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":L&&L in Object(e)?function(e){var t=k.call(e,L),n=e[L];try{e[L]=void 0;var r=!0}catch(e){}var i=C.call(e);r&&(t?e[L]=n:delete e[L]);return i}(e):function(e){return C.call(e)}(e)}function re(e){return Se(e)&&ne(e)==i}function ie(e){return!(!_e(e)||function(e){return!!T&&T in e}(e))&&(we(e)?O:s).test(function(e){if(null!=e){try{return S.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function oe(e){if(!_e(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=he(e),n=[];for(var r in e)("constructor"!=r||!t&&k.call(e,r))&&n.push(r);return n}function ae(e,t,n,r,i){e!==t&&te(t,(function(o,s){if(i||(i=new Q),_e(o))!function(e,t,n,r,i,o,s){var l=pe(e,n),u=pe(t,n),c=s.get(u);if(c)return void X(e,n,c);var d=o?o(l,u,n+"",e,t,s):void 0,h=void 0===d;if(h){var p=ge(u),f=!p&&be(u),m=!p&&!f&&ke(u);d=u,p||f||m?ge(l)?d=l:Se(w=l)&&ye(w)?d=function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(l):f?(h=!1,d=function(e,t){if(t)return e.slice();var n=e.length,r=I?I(n):new e.constructor(n);return e.copy(r),r}(u,!0)):m?(h=!1,v=u,g=!0?(y=v.buffer,b=new y.constructor(y.byteLength),new A(b).set(new A(y)),b):v.buffer,d=new v.constructor(g,v.byteOffset,v.length)):d=[]:function(e){if(!Se(e)||ne(e)!=a)return!1;var t=P(e);if(null===t)return!0;var n=k.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&S.call(n)==E}(u)||ve(u)?(d=l,ve(l)?d=function(e){return function(e,t,n,r){var i=!n;n||(n={});var o=-1,a=t.length;for(;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?J(n,s,l):K(n,s,l)}return n}(e,Te(e))}(l):_e(l)&&!we(l)||(d=function(e){return"function"!=typeof e.constructor||he(e)?{}:W(P(e))}(u))):h=!1}var v,g,y,b;var w;h&&(s.set(u,d),i(d,u,r,o,s),s.delete(u));X(e,n,d)}(e,t,s,n,ae,r,i);else{var l=r?r(pe(e,s),o,s+"",e,t,i):void 0;void 0===l&&(l=o),X(e,s,l)}}),Te)}function se(e,t){return fe(function(e,t,n){return t=U(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=U(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(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)}(e,this,s)}}(e,t,Ee),e+"")}var le=F?function(e,t){return F(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:Ee;function ue(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 ce(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return ie(n)?n:void 0}function de(e,t){var n=typeof e;return!!(t=null==t?r:t)&&("number"==n||"symbol"!=n&&l.test(e))&&e>-1&&e%1==0&&e<t}function he(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||x)}function pe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var fe=function(e){var t=0,n=0;return function(){var r=H(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(le);function me(e,t){return e===t||e!=e&&t!=t}var ve=re(function(){return arguments}())?re:function(e){return Se(e)&&k.call(e,"callee")&&!N.call(e,"callee")},ge=Array.isArray;function ye(e){return null!=e&&xe(e.length)&&!we(e)}var be=B||function(){return!1};function we(e){if(!_e(e))return!1;var t=ne(e);return t==o||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function xe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function _e(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Se(e){return null!=e&&"object"==typeof e}var ke=y?function(e){return function(t){return e(t)}}(y):function(e){return Se(e)&&xe(e.length)&&!!u[ne(e)]};function Te(e){return ye(e)?$(e,!0):oe(e)}var Ce=function(e){return se((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!_e(n))return!1;var r=typeof t;if("number"==r?ye(n)&&de(t,n.length):"string"==r&&t in n)return me(n[t],e);return!1}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r,o)}return t}))}((function(e,t,n){ae(e,t,n)}));function Ee(e){return e}e.exports=Ce}(cR,cR.exports);var dR=cR.exports,hR=Ty,pR=Gy,fR=lw,mR=vM,vR=Hm,gR=yM,yR=ym("".slice),bR=Math.min;hR({target:"String",proto:!0,forced:!gR("startsWith")},{startsWith:function(e){var t=fR(vR(this));mR(e);var n=pR(bR(arguments.length>1?arguments[1]:void 0,t.length)),r=fR(e);return yR(t,n,n+r.length)===r}});var wR=aT("String","startsWith"),xR=Jm,_R=wR,SR=String.prototype,kR=function(e){var t=e.startsWith;return"string"==typeof e||e===SR||xR(SR,e)&&t===SR.startsWith?_R:t},TR=kR,CR=FD,ER="\t\n\v\f\r                 \u2028\u2029\ufeff",OR=Hm,DR=lw,MR=ER,AR=dm("".replace),IR=RegExp("^["+MR+"]+"),PR=RegExp("(^|[^"+MR+"])["+MR+"]+$"),RR=function(e){return function(t){var n=DR(OR(t));return 1&e&&(n=AR(n,IR,"")),2&e&&(n=AR(n,PR,"$1")),n}},NR={start:RR(1),end:RR(2),trim:RR(3)},jR=OC.PROPER,LR=em,FR=ER,BR=NR.trim;Ty({target:"String",proto:!0,forced:function(e){return LR((function(){return!!FR[e]()||"​…᠎"!=="​…᠎"[e]()||jR&&FR[e].name!==e}))}("trim")},{trim:function(){return BR(this)}});var UR=aT("String","trim"),HR=Jm,YR=UR,zR=String.prototype,WR=function(e){var t=e.trim;return"string"==typeof e||e===zR||HR(zR,e)&&t===zR.trim?YR:t},GR=WR,VR=Jf,qR=em,QR=dm,$R=lw,XR=NR.trim,KR=ER,ZR=VR.parseInt,JR=VR.Symbol,eN=JR&&JR.iterator,tN=/^[+-]?0x/i,nN=QR(tN.exec),rN=8!==ZR(KR+"08")||22!==ZR(KR+"0x16")||eN&&!qR((function(){ZR(Object(eN))}))?function(e,t){var n=XR($R(e));return ZR(n,t>>>0||(nN(tN,n)?16:10))}:ZR;Ty({global:!0,forced:parseInt!==rN},{parseInt:rN});var iN=qm.parseInt,oN={exports:{}},aN={exports:{}};!function(e){var t=qT;e.exports=function(e){if(t(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports}(aN);var sN=aN.exports,lN={exports:{}},uN=Ty,cN=Gv,dN=qy,hN=CA,pN=JT,fN=em((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();uN({target:"Array",proto:!0,arity:1,forced:fN},{push:function(e){var t=cN(this),n=dN(t),r=arguments.length;pN(n+r);for(var i=0;i<r;i++)t[n]=arguments[i],n++;return hN(t,n),n}});var mN=aT("Array","push"),vN=Jm,gN=mN,yN=Array.prototype,bN=function(e){var t=e.push;return e===yN||vN(yN,e)&&t===yN.push?gN:t},wN=bN;!function(e){var t=mO,n=FO,r=wN;e.exports=function(e,i){var o=null==e?null:void 0!==t&&n(e)||e["@@iterator"];if(null!=o){var a,s,l,u,c=[],d=!0,h=!1;try{if(l=(o=o.call(e)).next,0===i){if(Object(o)!==o)return;d=!1}else for(;!(d=(a=l.call(o)).done)&&(r(c).call(c,a.value),c.length!==i);d=!0);}catch(e){h=!0,s=e}finally{try{if(!d&&null!=o.return&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw s}}return c}},e.exports.__esModule=!0,e.exports.default=e.exports}(lN);var xN=lN.exports,_N={exports:{}};!function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports}(_N);var SN=_N.exports;!function(e){var t=sN,n=xN,r=UD,i=SN;e.exports=function(e,o){return t(e)||n(e,o)||r(e,o)||i()},e.exports.__esModule=!0,e.exports.default=e.exports}(oN);var kN=oN.exports,TN=TypeError,CN=Jf,EN=am,ON=wm,DN=iI,MN=nv,AN=Ow,IN=function(e,t){if(e<t)throw new TN("Not enough arguments");return e},PN=CN.Function,RN=/MSIE .\./.test(MN)||"BUN"===DN&&function(){var e=CN.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}(),NN=function(e,t){var n=t?2:1;return RN?function(r,i){var o=IN(arguments.length,1)>n,a=ON(r)?r:PN(r),s=o?AN(arguments,n):[],l=o?function(){EN(a,this,s)}:a;return t?e(l,i):e(l)}:e},jN=Ty,LN=Jf,FN=NN(LN.setInterval,!0);jN({global:!0,bind:!0,forced:LN.setInterval!==FN},{setInterval:FN});var BN=Ty,UN=Jf,HN=NN(UN.setTimeout,!0);BN({global:!0,bind:!0,forced:UN.setTimeout!==HN},{setTimeout:HN});var YN=qm.setTimeout,zN=jI.entries;Ty({target:"Object",stat:!0},{entries:function(e){return zN(e)}});var WN,GN=qm.Object.entries;function VN(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. "}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(WN||(WN={}));var qN="function"==typeof Symbol&&Symbol.observable||"@@observable",QN=function(){return Math.random().toString(36).substring(7).split("").join(".")},$N={INIT:"@@redux/INIT"+QN(),REPLACE:"@@redux/REPLACE"+QN(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+QN()}};function XN(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(VN(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(VN(1));return n(XN)(e,t)}if("function"!=typeof e)throw new Error(VN(2));var i=e,o=t,a=[],s=a,l=!1;function u(){s===a&&(s=a.slice())}function c(){if(l)throw new Error(VN(3));return o}function d(e){if("function"!=typeof e)throw new Error(VN(4));if(l)throw new Error(VN(5));var t=!0;return u(),s.push(e),function(){if(t){if(l)throw new Error(VN(6));t=!1,u();var n=s.indexOf(e);s.splice(n,1),a=null}}}function h(e){if(!function(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}(e))throw new Error(VN(7));if(void 0===e.type)throw new Error(VN(8));if(l)throw new Error(VN(9));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 h({type:$N.INIT}),(r={dispatch:h,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error(VN(10));i=e,h({type:$N.REPLACE})}})[qN]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(VN(11));function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[qN]=function(){return this},e},r}function KN(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(!e){var o;if(void 0===t)o=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(o=new Error(t.replace(/%s/g,(function(){return r[a++]})))).name="Invariant Violation"}throw o.framesToPop=1,o}}var ZN="dnd-core/INIT_COORDS",JN="dnd-core/BEGIN_DRAG",ej="dnd-core/PUBLISH_DRAG_SOURCE",tj="dnd-core/HOVER",nj="dnd-core/DROP",rj="dnd-core/END_DRAG";function ij(e,t){return{type:ZN,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function oj(e){return oj="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},oj(e)}function aj(e,t,n){return t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:n||null}),e)}function sj(e){return"object"===oj(e)}var lj={type:ZN,payload:{clientOffset:null,sourceClientOffset:null}};function uj(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},r=n.publishSource,i=void 0===r||r,o=n.clientOffset,a=n.getSourceClientOffset,s=e.getMonitor(),l=e.getRegistry();e.dispatch(ij(o)),function(e,t,n){KN(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){KN(n.getSource(e),"Expected sourceIds to be registered.")}))}(t,s,l);var u=function(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}(t,s);if(null!==u){var c=null;if(o){if(!a)throw new Error("getSourceClientOffset must be defined");!function(e){KN("function"==typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(a),c=a(u)}e.dispatch(ij(o,c));var d=l.getSource(u).beginDrag(s,u);!function(e){KN(sj(e),"Item must be an object.")}(d),l.pinSource(u);var h=l.getSourceType(u);return{type:JN,payload:{itemType:h,item:d,sourceId:u,clientOffset:o||null,sourceClientOffset:c||null,isSourcePublic:!!i}}}e.dispatch(lj)}}function cj(e){return function(){if(e.getMonitor().isDragging())return{type:ej}}}function dj(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function hj(e){return function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){KN(Array.isArray(e),"Expected targetIds to be an array.")}(t);var r=t.slice(0),i=e.getMonitor(),o=e.getRegistry();return function(e,t,n){KN(t.isDragging(),"Cannot call hover while not dragging."),KN(!t.didDrop(),"Cannot call hover after drop.");for(var r=0;r<e.length;r++){var i=e[r];KN(e.lastIndexOf(i)===r,"Expected targetIds to be unique in the passed array."),KN(n.getTarget(i),"Expected targetIds to be registered.")}}(r,i,o),function(e,t,n){for(var r=e.length-1;r>=0;r--){var i=e[r];dj(t.getTargetType(i),n)||e.splice(r,1)}}(r,o,i.getItemType()),function(e,t,n){e.forEach((function(e){n.getTarget(e).hover(t,e)}))}(r,i,o),{type:tj,payload:{targetIds:r,clientOffset:n||null}}}}function pj(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 fj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pj(Object(n),!0).forEach((function(t){mj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vj(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();!function(e){KN(e.isDragging(),"Cannot call drop while not dragging."),KN(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(n);var i=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(n);i.forEach((function(i,o){var a=function(e,t,n,r){var i=n.getTarget(e),o=i?i.drop(r,e):void 0;(function(e){KN(void 0===e||sj(e),"Drop result must either be an object or undefined.")})(o),void 0===o&&(o=0===t?{}:r.getDropResult());return o}(i,o,r,n),s={type:nj,payload:{dropResult:fj(fj({},t),a)}};e.dispatch(s)}))}}function gj(e){return function(){var t=e.getMonitor(),n=e.getRegistry();!function(e){KN(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var r=t.getSourceId();null!=r&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource());return{type:rj}}}var yj=function(e,t){return e===t};function bj(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 wj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bj(Object(n),!0).forEach((function(t){xj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _j={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Sj(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_j,r=arguments.length>1?arguments[1]:void 0,i=r.payload;switch(r.type){case ZN:case JN:return{initialSourceClientOffset:i.sourceClientOffset,initialClientOffset:i.clientOffset,clientOffset:i.clientOffset};case tj:return e=n.clientOffset,t=i.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?n:wj(wj({},n),{},{clientOffset:i.clientOffset});case rj:case nj:return _j;default:return n}}var kj="dnd-core/ADD_SOURCE",Tj="dnd-core/ADD_TARGET",Cj="dnd-core/REMOVE_SOURCE",Ej="dnd-core/REMOVE_TARGET";function Oj(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 Dj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oj(Object(n),!0).forEach((function(t){Mj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Mj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Aj={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function Ij(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Aj,r=arguments.length>1?arguments[1]:void 0,i=r.payload;switch(r.type){case JN:return Dj(Dj({},n),{},{itemType:i.itemType,item:i.item,sourceId:i.sourceId,isSourcePublic:i.isSourcePublic,dropResult:null,didDrop:!1});case ej:return Dj(Dj({},n),{},{isSourcePublic:!0});case tj:return Dj(Dj({},n),{},{targetIds:i.targetIds});case Ej:return-1===n.targetIds.indexOf(i.targetId)?n:Dj(Dj({},n),{},{targetIds:(e=n.targetIds,t=i.targetId,e.filter((function(e){return e!==t})))});case nj:return Dj(Dj({},n),{},{dropResult:i.dropResult,didDrop:!0,targetIds:[]});case rj:return Dj(Dj({},n),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return n}}function Pj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case kj:case Tj:return e+1;case Cj:case Ej:return e-1;default:return e}}var Rj=[],Nj=[];function jj(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case tj:break;case kj:case Tj:case Ej:case Cj:return Rj;default:return Nj}var t=e.payload,n=t.targetIds,r=void 0===n?[]:n,i=t.prevTargetIds,o=void 0===i?[]:i,a=function(e,t){var n=new Map,r=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var i=[];return n.forEach((function(e,t){1===e&&i.push(t)})),i}(r,o),s=a.length>0||!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yj;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}(r,o);if(!s)return Rj;var l=o[o.length-1],u=r[r.length-1];return l!==u&&(l&&a.push(l),u&&a.push(u)),a}function Lj(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function Fj(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 Bj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fj(Object(n),!0).forEach((function(t){Uj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hj(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:jj(e.dirtyHandlerIds,{type:t.type,payload:Bj(Bj({},t.payload),{},{prevTargetIds:aj(e,"dragOperation.targetIds",[])})}),dragOffset:Sj(e.dragOffset,t),refCount:Pj(e.refCount,t),dragOperation:Ij(e.dragOperation,t),stateId:Lj(e.stateId)}}function Yj(e,t){return{x:e.x-t.x,y:e.y-t.y}}function zj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Rj.__IS_NONE__=!0,Nj.__IS_ALL__=!0;var Wj=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=n}var t,n,r;return t=e,n=[{key:"subscribeToStateChange",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;KN("function"==typeof e,"listener must be a function."),KN(void 0===n||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");var r=this.store.getState().stateId;return this.store.subscribe((function(){var i=t.store.getState(),o=i.stateId;try{var a=o===r||o===r+1&&!function(e,t){return e!==Rj&&(e===Nj||void 0===t||(n=e,t.filter((function(e){return n.indexOf(e)>-1}))).length>0);var n}(i.dirtyHandlerIds,n);a||e()}finally{r=o}}))}},{key:"subscribeToOffsetChange",value:function(e){var t=this;KN("function"==typeof e,"listener must be a function.");var n=this.store.getState().dragOffset;return this.store.subscribe((function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return KN(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return KN(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&dj(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return KN(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var n=this.registry.getTargetType(e),r=this.getItemType();if(r&&!dj(n,r))return!1;var i=this.getTargetIds();if(!i.length)return!1;var o=i.indexOf(e);return t?o===i.length-1:o>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return e=this.store.getState().dragOffset,r=e.clientOffset,i=e.initialClientOffset,o=e.initialSourceClientOffset,r&&i&&o?Yj((n=o,{x:(t=r).x+n.x,y:t.y+n.y}),i):null;var e,t,n,r,i,o}},{key:"getDifferenceFromInitialOffset",value:function(){return e=this.store.getState().dragOffset,t=e.clientOffset,n=e.initialClientOffset,t&&n?Yj(t,n):null;var e,t,n}}],n&&zj(t.prototype,n),r&&zj(t,r),e}(),Gj=0;function Vj(e){return Vj="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},Vj(e)}function qj(e,t){t&&Array.isArray(e)?e.forEach((function(e){return qj(e,!1)})):KN("string"==typeof e||"symbol"===Vj(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}const Qj="undefined"!=typeof global?global:self,$j=Qj.MutationObserver||Qj.WebKitMutationObserver;function Xj(e){return function(){const t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}const Kj="function"==typeof $j?function(e){let t=1;const n=new $j(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}:Xj;class Zj{call(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}constructor(e,t){this.onError=e,this.release=t,this.task=null}}const Jj=new class{enqueueTask(e){const{queue:t,requestFlush:n}=this;t.length||(n(),this.flushing=!0),t[t.length]=e}constructor(){this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=()=>{const{queue:e}=this;for(;this.index<e.length;){const t=this.index;if(this.index++,e[t].call(),this.index>this.capacity){for(let t=0,n=e.length-this.index;t<n;t++)e[t]=e[t+this.index];e.length-=this.index,this.index=0}}e.length=0,this.index=0,this.flushing=!1},this.registerPendingError=e=>{this.pendingErrors.push(e),this.requestErrorThrow()},this.requestFlush=Kj(this.flush),this.requestErrorThrow=Xj((()=>{if(this.pendingErrors.length)throw this.pendingErrors.shift()}))}},eL=new class{create(e){const t=this.freeTasks,n=t.length?t.pop():new Zj(this.onError,(e=>t[t.length]=e));return n.task=e,n}constructor(e){this.onError=e,this.freeTasks=[]}}(Jj.registerPendingError);function tL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rL(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iL(e){var t=(Gj++).toString();switch(e){case WN.SOURCE:return"S".concat(t);case WN.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function oL(e){switch(e[0]){case"S":return WN.SOURCE;case"T":return WN.TARGET;default:KN(!1,"Cannot parse handler ID: ".concat(e))}}function aL(e,t){var n=e.entries(),r=!1;do{var i=n.next(),o=i.done;if(nL(i.value,2)[1]===t)return!0;r=!!o}while(!r);return!1}var sL=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,n,r;return t=e,n=[{key:"addSource",value:function(e,t){qj(e),function(e){KN("function"==typeof e.canDrag,"Expected canDrag to be a function."),KN("function"==typeof e.beginDrag,"Expected beginDrag to be a function."),KN("function"==typeof e.endDrag,"Expected endDrag to be a function.")}(t);var n=this.addHandler(WN.SOURCE,e,t);return this.store.dispatch(function(e){return{type:kj,payload:{sourceId:e}}}(n)),n}},{key:"addTarget",value:function(e,t){qj(e,!0),function(e){KN("function"==typeof e.canDrop,"Expected canDrop to be a function."),KN("function"==typeof e.hover,"Expected hover to be a function."),KN("function"==typeof e.drop,"Expected beginDrag to be a function.")}(t);var n=this.addHandler(WN.TARGET,e,t);return this.store.dispatch(function(e){return{type:Tj,payload:{targetId:e}}}(n)),n}},{key:"containsHandler",value:function(e){return aL(this.dragSources,e)||aL(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return KN(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return KN(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return KN(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return KN(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return oL(e)===WN.SOURCE}},{key:"isTargetId",value:function(e){return oL(e)===WN.TARGET}},{key:"removeSource",value:function(e){var t=this;KN(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:Cj,payload:{sourceId:e}}}(e)),function(e){Jj.enqueueTask(eL.create(e))}((function(){t.dragSources.delete(e),t.types.delete(e)}))}},{key:"removeTarget",value:function(e){KN(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:Ej,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);KN(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){KN(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,n){var r=iL(e);return this.types.set(r,t),e===WN.SOURCE?this.dragSources.set(r,n):e===WN.TARGET&&this.dropTargets.set(r,n),r}}],n&&tL(t.prototype,n),r&&tL(t,r),e}();function lL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var uL=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var r=function(e){var t="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return XN(Hj,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(n);this.store=r,this.monitor=new Wj(r,new sL(r)),r.subscribe(this.handleRefCountChange)}var t,n,r;return t=e,n=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,n=function(e){return{beginDrag:uj(e),publishDragSource:cj(e),hover:hj(e),drop:vj(e),endDrag:gj(e)}}(this);return Object.keys(n).reduce((function(r,i){var o,a=n[i];return r[i]=(o=a,function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=o.apply(e,r);void 0!==a&&t(a)}),r}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],n&&lL(t.prototype,n),r&&lL(t,r),e}();function cL(e,t,n,r){var i=new uL(r),o=e(i,t,n);return i.receiveBackend(o),i}var dL=se.createContext({dragDropManager:void 0});function hL(e,t,n,r){return{dragDropManager:cL(e,t,n,r)}}function pL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return fL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fL(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mL(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var vL=0,gL=t.memo((function(e){var t=e.children,n=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:bL(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;i[yL]||(i[yL]=hL(e,t,n,r));return i[yL]}(e.backend,e.context,e.options,e.debugMode),n=!e.context;return[t,n]}(mL(e,["children"])),r=pL(n,2),i=r[0],o=r[1];return se.useEffect((function(){return o&&vL++,function(){o&&(0===--vL&&(bL()[yL]=null))}}),[]),se.createElement(dL.Provider,{value:i},t)}));gL.displayName="DndProvider";var yL=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function bL(){return"undefined"!=typeof global?global:window}var wL=se.memo((function(e){var t=e.connect,n=e.src;return se.useEffect((function(){if("undefined"!=typeof Image){var e=!1,r=new Image;return r.src=n,r.onload=function(){t(r),e=!0},function(){e&&t(null)}}})),null}));wL.displayName="DragPreviewImage";var xL="undefined"!=typeof window?t.useLayoutEffect:t.useEffect;function _L(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var u=o[l];if(!s(u))return!1;var c=e[u],d=t[u];if(!1===(i=n?n.call(r,c,d,u):void 0)||void 0===i&&c!==d)return!1}return!0}function SL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return kL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kL(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TL(e,n,r){var i=SL(t.useState((function(){return n(e)})),2),o=i[0],a=i[1],s=t.useCallback((function(){var t=n(e);_L(o,t)||(a(t),r&&r())}),[o,e,r]);return xL(s,[]),[o,s]}function CL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return EL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return EL(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function EL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OL(e,t,n){var r=CL(TL(e,t,n),2),i=r[0],o=r[1];return xL((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(o,{handlerIds:[t]})}),[e,o]),i}function DL(e,t,n){var r=n.getRegistry(),i=r.addTarget(e,t);return[i,function(){return r.removeTarget(i)}]}function ML(e,t,n){var r=n.getRegistry(),i=r.addSource(e,t);return[i,function(){return r.removeSource(i)}]}function AL(){var e=t.useContext(dL).dragDropManager;return KN(null!=e,"Expected drag drop context"),e}function IL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var PL=!1,RL=!1,NL=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){KN(!PL,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return PL=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{PL=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;KN(!RL,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return RL=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{RL=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&IL(t.prototype,n),r&&IL(t,r),e}();function jL(e,t){"function"==typeof e?e(t):e.current=t}function LL(e){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t.isValidElement(n)){var i=n;return e(i,r),i}var o=n;!function(e){if("string"!=typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(o);var a=r?function(t){return e(t,r)}:e;return function(e,n){var r=e.ref;return KN("string"!=typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),r?t.cloneElement(e,{ref:function(e){jL(r,e),jL(n,e)}}):t.cloneElement(e,{ref:n})}(o,a)}}function FL(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];if(n.endsWith("Ref"))t[n]=e[n];else{var i=LL(r);t[n]=function(){return i}}})),t}function BL(e){return BL="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},BL(e)}function UL(e){return null!==e&&"object"===BL(e)&&Object.prototype.hasOwnProperty.call(e,"current")}function HL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var YL=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=FL({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,UL(e)?n.dragSourceRef=e:n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,UL(e)?n.dragPreviewRef=e:n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!_L(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!_L(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&HL(t.prototype,n),r&&HL(t,r),e}();function zL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return WL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WL(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function WL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function GL(e){return GL="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},GL(e)}function VL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qL(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qL(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function QL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $L=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=FL({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,UL(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,n,r;return t=e,(n=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!_L(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&QL(t.prototype,n),r&&QL(t,r),e}();function XL(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var KL=!1,ZL=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,n,r;return t=e,(n=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;KN(!KL,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return KL=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{KL=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&XL(t.prototype,n),r&&XL(t,r),e}();function JL(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return eF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eF(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return nF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nF(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return iF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iF(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oF(e){return oF="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},oF(e)}function aF(e){return"function"==typeof e}function sF(){}function lF(e){if(!function(e){return"object"===oF(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function uF(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function cF(e){return function(e){return e&&e.prototype&&"function"==typeof e.prototype.render}(e)||function(e){var t,n=e;return"Symbol(react.forward_ref)"===(null==n||null===(t=n.$$typeof)||void 0===t?void 0:t.toString())}(e)}function dF(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pF(e,t,n){return t&&hF(e.prototype,t),n&&hF(e,n),e}var fF=function(){var e=function(){function e(t){dF(this,e),this.isDisposed=!1,this.action=aF(t)?t:sF}return pF(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&aF(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();return e.empty={dispose:sF},e}(),mF=function(){function e(){dF(this,e),this.isDisposed=!1;for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this.disposables=n}return pF(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var n=this.disposables.indexOf(e);-1!==n&&(t=!0,this.disposables.splice(n,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),n=0;n<e;n++)t[n]=this.disposables[n];this.disposables=[];for(var r=0;r<e;r++)t[r].dispose()}}}]),e}(),vF=function(){function e(){dF(this,e),this.isDisposed=!1}return pF(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var n=this.current;this.current=e,n&&n.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}();function gF(e){return gF="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},gF(e)}function yF(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bF(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bF(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bF(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xF(e,t){return xF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xF(e,t)}function _F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=SF(e);if(t){var i=SF(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===gF(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function SF(e){return SF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},SF(e)}function kF(e){var t=e.DecoratedComponent,n=e.createHandler,r=e.createMonitor,i=e.createConnector,o=e.registerHandler,a=e.containerDisplayName,s=e.getType,l=e.collect,u=e.options.arePropsEqual,c=void 0===u?_L:u,d=t,h=t.displayName||t.name||"Component",p=function(){var e=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&xF(e,t)}(p,se.Component);var e,t,a,u=_F(p);function p(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(t=u.call(this,e)).decoratedRef=se.createRef(),t.handleChange=function(){var e=t.getCurrentState();_L(e,t.state)||t.setState(e)},t.disposable=new vF,t.receiveProps(e),t.dispose(),t}return e=p,(t=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return KN(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!c(e,this.props)||!_L(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new vF,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){c(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(s(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=yF(o(e,this.handler,this.manager),2),n=t[0],r=t[1];this.handlerId=n,this.handlerMonitor.receiveHandlerId(n),this.handlerConnector.receiveHandlerId(n);var i=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[n]});this.disposable.setDisposable(new mF(new fF(i),new fF(r)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?l(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return se.createElement(dL.Consumer,null,(function(t){var n=t.dragDropManager;return e.receiveDragDropManager(n),"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame((function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()})),se.createElement(d,Object.assign({},e.props,e.getCurrentState(),{ref:cF(d)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&(KN(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",h,h),void 0!==e&&(this.manager=e,this.handlerMonitor=r(e),this.handlerConnector=i(e.getBackend()),this.handler=n(this.handlerMonitor,this.decoratedRef)))}}])&&wF(e.prototype,t),a&&wF(e,a),p}();return e.DecoratedComponent=t,e.displayName="".concat(a,"(").concat(h,")"),e}();return ir(p,t)}function TF(e){return TF="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},TF(e)}function CF(e,t){return"string"==typeof e||"symbol"===TF(e)||!!t&&Array.isArray(e)&&e.every((function(e){return CF(e,!1)}))}function EF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var OF=["canDrag","beginDrag","isDragging","endDrag"],DF=["beginDrag"],MF=function(){function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(i.props)return i.spec.beginDrag(i.props,i.monitor,i.ref.current)},this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,uF(this.ref))}}])&&EF(t.prototype,n),r&&EF(t,r),e}();function AF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var IF=["canDrop","hover","drop"],PF=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=n,this.ref=r}var t,n,r;return t=e,(n=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,uF(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&AF(t.prototype,n),r&&AF(t,r),e}();function RF(e){return RF="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},RF(e)}function NF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jF(e,t){return jF=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},jF(e,t)}function LF(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=FF(e);if(t){var i=FF(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===RF(t)||"function"==typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function FF(e){return FF=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},FF(e)}var BF,UF,HF=Object.freeze({__proto__:null,DndContext:dL,createDndContext:hL,DndProvider:gL,DragPreviewImage:wL,useDrag:function(e){var n=t.useRef(e);n.current=e,KN(null!=e.item,"item must be defined"),KN(null!=e.item.type,"item type must be defined");var r,i=VL((r=AL(),[t.useMemo((function(){return new NL(r)}),[r]),t.useMemo((function(){return new YL(r.getBackend())}),[r])]),2),o=i[0],a=i[1];!function(e,n,r){var i=AL(),o=t.useMemo((function(){return{beginDrag:function(){var t=e.current,r=t.begin,i=t.item;if(r){var o=r(n);return KN(null==o||"object"===GL(o),"dragSpec.begin() must either return an object, undefined, or null"),o||i||{}}return i||{}},canDrag:function(){return"boolean"==typeof e.current.canDrag?e.current.canDrag:"function"!=typeof e.current.canDrag||e.current.canDrag(n)},isDragging:function(t,r){var i=e.current.isDragging;return i?i(n):r===t.getSourceId()},endDrag:function(){var t=e.current.end;t&&t(n.getItem(),n),r.reconnect()}}}),[]);xL((function(){var t=zL(ML(e.current.item.type,o,i),2),a=t[0],s=t[1];return n.receiveHandlerId(a),r.receiveHandlerId(a),s}),[])}(n,o,a);var s=OL(o,n.current.collect||function(){return{}},(function(){return a.reconnect()})),l=t.useMemo((function(){return a.hooks.dragSource()}),[a]),u=t.useMemo((function(){return a.hooks.dragPreview()}),[a]);return xL((function(){a.dragSourceOptions=n.current.options||null,a.reconnect()}),[a]),xL((function(){a.dragPreviewOptions=n.current.previewOptions||null,a.reconnect()}),[a]),[s,l,u]},useDrop:function(e){var n=t.useRef(e);n.current=e,KN(null!=e.accept,"accept must be defined");var r,i=tF((r=AL(),[t.useMemo((function(){return new ZL(r)}),[r]),t.useMemo((function(){return new $L(r.getBackend())}),[r])]),2),o=i[0],a=i[1];!function(e,n,r){var i=AL(),o=t.useMemo((function(){return{canDrop:function(){var t=e.current.canDrop;return!t||t(n.getItem(),n)},hover:function(){var t=e.current.hover;t&&t(n.getItem(),n)},drop:function(){var t=e.current.drop;if(t)return t(n.getItem(),n)}}}),[n]);xL((function(){var t=JL(DL(e.current.accept,o,i),2),a=t[0],s=t[1];return n.receiveHandlerId(a),r.receiveHandlerId(a),s}),[n,r])}(n,o,a);var s=OL(o,n.current.collect||function(){return{}},(function(){return a.reconnect()})),l=t.useMemo((function(){return a.hooks.dropTarget()}),[a]);return xL((function(){a.dropTargetOptions=e.options||null,a.reconnect()}),[e.options]),[s,l]},useDragLayer:function(e){var n=AL().getMonitor(),r=rF(TL(n,e),2),i=r[0],o=r[1];return t.useEffect((function(){return n.subscribeToOffsetChange(o)})),t.useEffect((function(){return n.subscribeToStateChange(o)})),i},useDragDropManager:AL,DragSource:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&(KN(CF(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),i=function(){return e}),KN(lF(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var o=function(e){return Object.keys(e).forEach((function(t){KN(OF.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',OF.join(", "),t),KN("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),DF.forEach((function(t){KN("function"==typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,n){return new MF(e,t,n)}}(t);return KN("function"==typeof n,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),KN(lF(r),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',n),function(e){return kF({containerDisplayName:"DragSource",createHandler:o,registerHandler:ML,createConnector:function(e){return new YL(e)},createMonitor:function(e){return new NL(e)},DecoratedComponent:e,getType:i,collect:n,options:r})}},DropTarget:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e;"function"!=typeof e&&(KN(CF(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),i=function(){return e}),KN(lF(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var o=function(e){return Object.keys(e).forEach((function(t){KN(IF.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',IF.join(", "),t),KN("function"==typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,n){return new PF(e,t,n)}}(t);return KN("function"==typeof n,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),KN(lF(r),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',n),function(e){return kF({containerDisplayName:"DropTarget",createHandler:o,registerHandler:DL,createMonitor:function(e){return new ZL(e)},createConnector:function(e){return new $L(e)},DecoratedComponent:e,getType:i,collect:n,options:r})}},DragLayer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return KN("function"==typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),KN(lF(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(n){var r=n,i=t.arePropsEqual,o=void 0===i?_L:i,a=r.displayName||r.name||"Component",s=function(){var t=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jF(e,t)}(l,se.Component);var t,n,i,s=LF(l);function l(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),(e=s.apply(this,arguments)).isCurrentlyMounted=!1,e.ref=se.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();_L(t,e.state)||e.setState(t)}},e}return t=l,(n=[{key:"getDecoratedComponentInstance",value:function(){return KN(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!o(e,this.props)||!_L(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return se.createElement(dL.Consumer,null,(function(t){var n=t.dragDropManager;return void 0===n?null:(e.receiveDragDropManager(n),e.isCurrentlyMounted?se.createElement(r,Object.assign({},e.props,e.state,{ref:cF(r)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,KN("object"===RF(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",a,a);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}])&&NF(t.prototype,n),i&&NF(t,i),l}();return t.displayName="DragLayer(".concat(a,")"),t.DecoratedComponent=n,t}();return ir(s,n)}}}),YF=mt(HF),zF={exports:{}};"undefined"!=typeof self&&self,zF.exports=(BF=ae.default,UF=Qe.default,function(){var e={328:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.PrintContextConsumer=t.PrintContext=void 0;var r=n(496),i=Object.prototype.hasOwnProperty.call(r,"createContext");t.PrintContext=i?r.createContext({}):null,t.PrintContextConsumer=t.PrintContext?t.PrintContext.Consumer:function(){return null}},428:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ReactToPrint=void 0;var r=n(316),i=n(496),o=n(190),a=n(328),s=n(940),l=function(e){function t(){var t=e.apply(this,r.__spreadArray([],r.__read(arguments),!1))||this;return t.startPrint=function(e){var n=t.props,r=n.onAfterPrint,i=n.onPrintError,o=n.print,a=n.documentTitle;setTimeout((function(){var n,s;if(e.contentWindow)if(e.contentWindow.focus(),o)o(e).then((function(){return null==r?void 0:r()})).then((function(){return t.handleRemoveIframe()})).catch((function(e){i?i("print",e):t.logMessages(["An error was thrown by the specified `print` function"])}));else{if(e.contentWindow.print){var l=null!==(s=null===(n=e.contentDocument)||void 0===n?void 0:n.title)&&void 0!==s?s:"",u=e.ownerDocument.title;a&&(e.ownerDocument.title=a,e.contentDocument&&(e.contentDocument.title=a)),e.contentWindow.print(),a&&(e.ownerDocument.title=u,e.contentDocument&&(e.contentDocument.title=l))}else t.logMessages(["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."]);null==r||r(),t.handleRemoveIframe()}else t.logMessages(["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/gregnb/react-to-print/issues/"])}),500)},t.triggerPrint=function(e){var n=t.props,r=n.onBeforePrint,i=n.onPrintError;if(r){var o=r();o&&"function"==typeof o.then?o.then((function(){t.startPrint(e)})).catch((function(e){i&&i("onBeforePrint",e)})):t.startPrint(e)}else t.startPrint(e)},t.handlePrint=function(e){var n=t.props,i=n.bodyClass,a=n.content,s=n.copyStyles,l=n.fonts,u=n.pageStyle,c=n.nonce,d="function"==typeof e?e():null;if(d&&"function"==typeof a&&t.logMessages(['"react-to-print" received a `content` prop and a content param passed the callback return by `useReactToPrint. The `content` prop will be ignored.'],"warning"),d||"function"!=typeof a||(d=a()),void 0!==d)if(null!==d){var h=document.createElement("iframe");h.width="".concat(document.documentElement.clientWidth,"px"),h.height="".concat(document.documentElement.clientHeight,"px"),h.style.position="absolute",h.style.top="-".concat(document.documentElement.clientHeight+100,"px"),h.style.left="-".concat(document.documentElement.clientWidth+100,"px"),h.id="printWindow",h.srcdoc="<!DOCTYPE html>";var p=(0,o.findDOMNode)(d);if(p){var f=p.cloneNode(!0),m=f instanceof Text,v=document.querySelectorAll("link[rel~='stylesheet'], link[as='style']"),g=m?[]:f.querySelectorAll("img"),y=m?[]:f.querySelectorAll("video"),b=l?l.length:0;t.numResourcesToLoad=v.length+g.length+y.length+b,t.resourcesLoaded=[],t.resourcesErrored=[];var w=function(e,n){t.resourcesLoaded.includes(e)?t.logMessages(["Tried to mark a resource that has already been handled",e],"debug"):(n?(t.logMessages(r.__spreadArray(['"react-to-print" was unable to load a resource but will continue attempting to print the page'],r.__read(n),!1)),t.resourcesErrored.push(e)):t.resourcesLoaded.push(e),t.resourcesLoaded.length+t.resourcesErrored.length===t.numResourcesToLoad&&t.triggerPrint(h))};h.onload=function(){var e,n,o,a;h.onload=null;var d=h.contentDocument||(null===(n=h.contentWindow)||void 0===n?void 0:n.document);if(d){d.body.appendChild(f),l&&((null===(o=h.contentDocument)||void 0===o?void 0:o.fonts)&&(null===(a=h.contentWindow)||void 0===a?void 0:a.FontFace)?l.forEach((function(e){var t=new FontFace(e.family,e.source,{weight:e.weight,style:e.style});h.contentDocument.fonts.add(t),t.loaded.then((function(){w(t)})).catch((function(e){w(t,["Failed loading the font:",t,"Load error:",e])}))})):(l.forEach((function(e){return w(e)})),t.logMessages(['"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page'])));var v="function"==typeof u?u():u;if("string"!=typeof v)t.logMessages(['"react-to-print" expected a "string" from `pageStyle` but received "'.concat(typeof v,'". Styles from `pageStyle` will not be applied.')]);else{var b=d.createElement("style");c&&(b.setAttribute("nonce",c),d.head.setAttribute("nonce",c)),b.appendChild(d.createTextNode(v)),d.head.appendChild(b)}if(i&&(e=d.body.classList).add.apply(e,r.__spreadArray([],r.__read(i.split(" ")),!1)),!m){for(var x=m?[]:p.querySelectorAll("canvas"),_=d.querySelectorAll("canvas"),S=0;S<x.length;++S){var k=x[S],T=_[S].getContext("2d");T&&T.drawImage(k,0,0)}var C=function(e){var t=g[e],n=t.getAttribute("src");if(n){var r=new Image;r.onload=function(){return w(t)},r.onerror=function(e,n,r,i,o){return w(t,["Error loading <img>",t,"Error",o])},r.src=n}else w(t,['Found an <img> tag with an empty "src" attribute. This prevents pre-loading it. The <img> is:',t])};for(S=0;S<g.length;S++)C(S);var E=function(e){var t=y[e];t.preload="auto";var n=t.getAttribute("poster");if(n){var r=new Image;r.onload=function(){return w(t)},r.onerror=function(e,r,i,o,a){return w(t,["Error loading video poster",n,"for video",t,"Error:",a])},r.src=n}else t.readyState>=2?w(t):(t.onloadeddata=function(){return w(t)},t.onerror=function(e,n,r,i,o){return w(t,["Error loading video",t,"Error",o])},t.onstalled=function(){return w(t,["Loading video stalled, skipping",t])})};for(S=0;S<y.length;S++)E(S);var O="input",D=p.querySelectorAll(O),M=d.querySelectorAll(O);for(S=0;S<D.length;S++)M[S].value=D[S].value;var A="input[type=checkbox],input[type=radio]",I=p.querySelectorAll(A),P=d.querySelectorAll(A);for(S=0;S<I.length;S++)P[S].checked=I[S].checked;var R="select",N=p.querySelectorAll(R),j=d.querySelectorAll(R);for(S=0;S<N.length;S++)j[S].value=N[S].value}if(s)for(var L=document.querySelectorAll("style, link[rel~='stylesheet'], link[as='style']"),F=function(e,n){var r=L[e];if("style"===r.tagName.toLowerCase()){var i=d.createElement(r.tagName),o=r.sheet;if(o){var a="";try{for(var s=o.cssRules.length,l=0;l<s;++l)"string"==typeof o.cssRules[l].cssText&&(a+="".concat(o.cssRules[l].cssText,"\r\n"))}catch(e){t.logMessages(["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/gregnb/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",r],"warning")}i.setAttribute("id","react-to-print-".concat(e)),c&&i.setAttribute("nonce",c),i.appendChild(d.createTextNode(a)),d.head.appendChild(i)}}else if(r.getAttribute("href"))if(r.hasAttribute("disabled"))t.logMessages(["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",r],"warning"),w(r);else{for(var u=d.createElement(r.tagName),h=(l=0,r.attributes.length);l<h;++l){var p=r.attributes[l];p&&u.setAttribute(p.nodeName,p.nodeValue||"")}u.onload=function(){return w(u)},u.onerror=function(e,t,n,r,i){return w(u,["Failed to load",u,"Error:",i])},c&&u.setAttribute("nonce",c),d.head.appendChild(u)}else t.logMessages(["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",r],"warning"),w(r)},B=(S=0,L.length);S<B;++S)F(S)}0!==t.numResourcesToLoad&&s||t.triggerPrint(h)},t.handleRemoveIframe(!0),document.body.appendChild(h)}else t.logMessages(['"react-to-print" could not locate the DOM node corresponding with the `content` prop'])}else t.logMessages(['There is nothing to print because the "content" prop returned "null". Please ensure "content" is renderable before allowing "react-to-print" to be called.']);else t.logMessages(["To print a functional component ensure it is wrapped with `React.forwardRef`, and ensure the forwarded ref is used. See the README for an example: https://github.com/gregnb/react-to-print#examples"])},t.handleRemoveIframe=function(e){var n=t.props.removeAfterPrint;if(e||n){var r=document.getElementById("printWindow");r&&document.body.removeChild(r)}},t.logMessages=function(e,n){void 0===n&&(n="error"),t.props.suppressErrors||("error"===n?console.error(e):"warning"===n?console.warn(e):"debug"===n&&console.debug(e))},t}return r.__extends(t,e),t.prototype.handleClick=function(e,t){var n=this,r=this.props,i=r.onBeforeGetContent,o=r.onPrintError;if(i){var a=i();a&&"function"==typeof a.then?a.then((function(){return n.handlePrint(t)})).catch((function(e){o&&o("onBeforeGetContent",e)})):this.handlePrint(t)}else this.handlePrint(t)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.trigger;if(n)return i.cloneElement(n(),{onClick:this.handleClick.bind(this)});if(!a.PrintContext)return this.logMessages(['"react-to-print" requires React ^16.3.0 to be able to use "PrintContext"']),null;var r={handlePrint:this.handleClick.bind(this)};return i.createElement(a.PrintContext.Provider,{value:r},t)},t.defaultProps=s.defaultProps,t}(i.Component);t.ReactToPrint=l},940:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.defaultProps=void 0,t.defaultProps={copyStyles:!0,pageStyle:"\n @page {\n /* Remove browser default header (title) and footer (url) */\n margin: 0;\n }\n @media print {\n body {\n /* Tell browsers to print background colors */\n -webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */\n color-adjust: exact; /* Firefox */\n }\n }\n ",removeAfterPrint:!1,suppressErrors:!1}},892:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useReactToPrint=void 0;var r=n(316),i=n(496),o=n(428),a=n(940),s=n(860),l=Object.prototype.hasOwnProperty.call(i,"useMemo")&&Object.prototype.hasOwnProperty.call(i,"useCallback");t.useReactToPrint=function(e){if(!l)return e.suppressErrors||console.error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"'),function(){throw new Error('"react-to-print" requires React ^16.8.0 to be able to use "useReactToPrint"')};var t=i.useMemo((function(){return new o.ReactToPrint(r.__assign(r.__assign({},a.defaultProps),e))}),[e]);return i.useCallback((function(e,n){return(0,s.wrapCallbackWithArgs)(t,t.handleClick,n)(e)}),[t])}},860:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.wrapCallbackWithArgs=void 0;var r=n(316);t.wrapCallbackWithArgs=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return t.apply(e,r.__spreadArray(r.__spreadArray([],r.__read(i),!1),r.__read(n),!1))}}},496:function(e){e.exports=BF},190:function(e){e.exports=UF},316:function(e,t,n){n.r(t),n.d(t,{__addDisposableResource:function(){return R},__assign:function(){return o},__asyncDelegator:function(){return T},__asyncGenerator:function(){return k},__asyncValues:function(){return C},__await:function(){return S},__awaiter:function(){return f},__classPrivateFieldGet:function(){return A},__classPrivateFieldIn:function(){return P},__classPrivateFieldSet:function(){return I},__createBinding:function(){return v},__decorate:function(){return s},__disposeResources:function(){return j},__esDecorate:function(){return u},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return m},__importDefault:function(){return M},__importStar:function(){return D},__makeTemplateObject:function(){return E},__metadata:function(){return p},__param:function(){return l},__propKey:function(){return d},__read:function(){return b},__rest:function(){return a},__runInitializers:function(){return c},__setFunctionName:function(){return h},__spread:function(){return w},__spreadArray:function(){return _},__spreadArrays:function(){return x},__values:function(){return y}});var r=function(e,t){return r=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])},r(e,t)};function i(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=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},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t,n,r,i,o){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=r.kind,u="getter"===l?"get":"setter"===l?"set":"value",c=!t&&e?r.static?e:e.prototype:null,d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{}),h=!1,p=n.length-1;p>=0;p--){var f={};for(var m in r)f[m]="access"===m?{}:r[m];for(var m in r.access)f.access[m]=r.access[m];f.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");o.push(a(e||null))};var v=(0,n[p])("accessor"===l?{get:d.get,set:d.set}:d[u],f);if("accessor"===l){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(s=a(v.get))&&(d.get=s),(s=a(v.set))&&(d.set=s),(s=a(v.init))&&i.unshift(s)}else(s=a(v))&&("field"===l?i.unshift(s):d[u]=s)}c&&Object.defineProperty(c,r.name,d),h=!0}function c(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function h(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(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 m(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}var v=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||v(t,e,n)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function x(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function _(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function S(e){return this instanceof S?(this.v=e,this):new S(e)}function k(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof S?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(e){c(o[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function T(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:S(e[r](t)),done:!1}:i?i(t):t}:i}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=y(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){!function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}(r,i,(t=e[n](t)).done,t.value)}))}}}function E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var O=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function D(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&v(t,e,n);return O(t,e),t}function M(e){return e&&e.__esModule?e:{default:e}}function A(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function I(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function P(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function R(e,t,n){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var r;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var N="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function j(e){function t(t){e.error=e.hasError?new N(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,(function(e){return t(e),n()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:o,__rest:a,__decorate:s,__param:l,__metadata:p,__awaiter:f,__generator:m,__createBinding:v,__exportStar:g,__values:y,__read:b,__spread:w,__spreadArrays:x,__spreadArray:_,__await:S,__asyncGenerator:k,__asyncDelegator:T,__asyncValues:C,__makeTemplateObject:E,__importStar:D,__importDefault:M,__classPrivateFieldGet:A,__classPrivateFieldSet:I,__classPrivateFieldIn:P,__addDisposableResource:R,__disposeResources:j}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return function(){var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.useReactToPrint=e.ReactToPrint=e.PrintContextConsumer=void 0;var t=n(328);Object.defineProperty(e,"PrintContextConsumer",{enumerable:!0,get:function(){return t.PrintContextConsumer}});var i=n(428);Object.defineProperty(e,"ReactToPrint",{enumerable:!0,get:function(){return i.ReactToPrint}});var o=n(892);Object.defineProperty(e,"useReactToPrint",{enumerable:!0,get:function(){return o.useReactToPrint}});var a=n(428);e.default=a.ReactToPrint}(),r}());var WF=zF.exports;function GF(e){var t=null;return function(){return null==t&&(t=e()),t}}function VF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var qF=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,n,r;return t=e,n=[{key:"enter",value:function(e){var t=this,n=this.entered.length;return this.entered=function(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var i=[];return n.forEach((function(e){return i.push(e)})),i}(this.entered.filter((function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))})),[e]),0===n&&this.entered.length>0}},{key:"leave",value:function(e){var t,n,r=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),n=e,t.filter((function(e){return e!==n}))),r>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}],n&&VF(t.prototype,n),r&&VF(t,r),e}(),QF=GF((function(){return/firefox/i.test(navigator.userAgent)})),$F=GF((function(){return Boolean(window.safari)}));function XF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var KF=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var r=t.length,i=[],o=0;o<r;o++)i.push(o);i.sort((function(e,n){return t[e]<t[n]?-1:1}));for(var a,s,l=[],u=[],c=0;c<r-1;c++)a=t[c+1]-t[c],s=n[c+1]-n[c],l.push(a),u.push(s/a);for(var d=[u[0]],h=0;h<l.length-1;h++){var p=u[h],f=u[h+1];if(p*f<=0)d.push(0);else{a=l[h];var m=l[h+1],v=a+m;d.push(3*v/((v+m)/p+(v+a)/f))}}d.push(u[u.length-1]);for(var g,y=[],b=[],w=0;w<d.length-1;w++){g=u[w];var x=d[w],_=1/l[w],S=x+d[w+1]-g-g;y.push((g-x-S)*_),b.push(S*_*_)}this.xs=t,this.ys=n,this.c1s=d,this.c2s=y,this.c3s=b}var t,n,r;return t=e,n=[{key:"interpolate",value:function(e){var t=this.xs,n=this.ys,r=this.c1s,i=this.c2s,o=this.c3s,a=t.length-1;if(e===t[a])return n[a];for(var s,l=0,u=o.length-1;l<=u;){var c=t[s=Math.floor(.5*(l+u))];if(c<e)l=s+1;else{if(!(c>e))return n[s];u=s-1}}var d=e-t[a=Math.max(0,u)],h=d*d;return n[a]+r[a]*d+i[a]*h+o[a]*d*h}}],n&&XF(t.prototype,n),r&&XF(t,r),e}();function ZF(e){var t=1===e.nodeType?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function JF(e){return{x:e.clientX,y:e.clientY}}function eB(e,t,n,r,i){var o,a=function(e){var t;return"IMG"===e.nodeName&&(QF()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),s=ZF(a?e:t),l={x:n.x-s.x,y:n.y-s.y},u=e.offsetWidth,c=e.offsetHeight,d=r.anchorX,h=r.anchorY,p=function(e,t,n,r){var i=e?t.width:n,o=e?t.height:r;return $F()&&e&&(o/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:o}}(a,t,u,c),f=p.dragPreviewWidth,m=p.dragPreviewHeight,v=i.offsetX,g=i.offsetY,y=0===g||g;return{x:0===v||v?v:new KF([0,.5,1],[l.x,l.x/u*f,l.x+f-u]).interpolate(d),y:y?g:(o=new KF([0,.5,1],[l.y,l.y/c*m,l.y+m-c]).interpolate(h),$F()&&a&&(o+=(window.devicePixelRatio-1)*m),o)}}var tB,nB="__NATIVE_FILE__",rB="__NATIVE_URL__",iB="__NATIVE_TEXT__",oB=Object.freeze({__proto__:null,FILE:nB,URL:rB,TEXT:iB});function aB(e,t,n){var r=t.reduce((function(t,n){return t||e.getData(n)}),"");return null!=r?r:n}function sB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lB=(sB(tB={},nB,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),sB(tB,rB,{exposeProperties:{urls:function(e,t){return aB(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),sB(tB,iB,{exposeProperties:{text:function(e,t){return aB(e,t,"")}},matchesTypes:["Text","text/plain"]}),tB);function uB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var cB=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,n,r;return t=e,(n=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach((function(r){n[r]={value:t.config.exposeProperties[r](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,n)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&uB(t.prototype,n),r&&uB(t,r),e}();function dB(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(lB).filter((function(e){return lB[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function hB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var pB=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,n,r;return t=e,(n=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!=typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&hB(t.prototype,n),r&&hB(t,r),e}();function fB(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 mB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fB(Object(n),!0).forEach((function(t){vB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var yB,bB=function(){function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){var t=r.sourceNodes.get(e);return t&&ZF(t)||null},this.endDragNativeItem=function(){r.isDraggingNativeItem()&&(r.actions.endDrag(),r.currentNativeHandle&&r.registry.removeSource(r.currentNativeHandle),r.currentNativeHandle=null,r.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&r.document&&r.document.body&&document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=r.currentDragSourceNode;r.isNodeInDocument(e)||r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragStartCapture=function(){r.clearCurrentDragSourceNode(),r.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=r.dragStartSourceIds;r.dragStartSourceIds=null;var n=JF(e);r.monitor.isDragging()&&r.actions.endDrag(),r.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:r.getSourceClientOffset,clientOffset:n});var i=e.dataTransfer,o=dB(i);if(r.monitor.isDragging()){if(i&&"function"==typeof i.setDragImage){var a=r.monitor.getSourceId(),s=r.sourceNodes.get(a),l=r.sourcePreviewNodes.get(a)||s;if(l){var u=r.getCurrentSourcePreviewNodeOptions(),c=eB(s,l,n,{anchorX:u.anchorX,anchorY:u.anchorY},{offsetX:u.offsetX,offsetY:u.offsetY});i.setDragImage(l,c.x,c.y)}}try{null==i||i.setData("application/json",{})}catch(e){}r.setCurrentDragSourceNode(e.target),r.getCurrentSourcePreviewNodeOptions().captureDraggingState?r.actions.publishDragSource():setTimeout((function(){return r.actions.publishDragSource()}),0)}else if(o)r.beginDragNativeItem(o);else{if(i&&!i.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){r.clearCurrentDragSourceNode()&&r.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(r.dragEnterTargetIds=[],r.enterLeaveCounter.enter(e.target)&&!r.monitor.isDragging()){var t=e.dataTransfer,n=dB(t);n&&r.beginDragNativeItem(n,t)}},this.handleTopDragEnter=function(e){var t=r.dragEnterTargetIds;(r.dragEnterTargetIds=[],r.monitor.isDragging())&&(r.altKeyPressed=e.altKey,QF()||r.actions.hover(t,{clientOffset:JF(e)}),t.some((function(e){return r.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){r.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=r.dragOverTargetIds;if(r.dragOverTargetIds=[],!r.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));r.altKeyPressed=e.altKey,r.actions.hover(t||[],{clientOffset:JF(e)}),(t||[]).some((function(e){return r.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=r.getCurrentDropEffect())):r.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){r.isDraggingNativeItem()&&e.preventDefault(),r.enterLeaveCounter.leave(e.target)&&r.isDraggingNativeItem()&&r.endDragNativeItem()},this.handleTopDropCapture=function(e){var t;(r.dropTargetIds=[],e.preventDefault(),r.isDraggingNativeItem())&&(null===(t=r.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));r.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=r.dropTargetIds;r.dropTargetIds=[],r.actions.hover(t,{clientOffset:JF(e)}),r.actions.drop({dropEffect:r.getCurrentDropEffect()}),r.isDraggingNativeItem()?r.endDragNativeItem():r.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"==typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new pB(n),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new qF(this.isNodeInDocument)}var t,n,r;return t=e,n=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var i=function(t){return r.handleDragStart(t,e)},o=function(e){return r.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",i),t.addEventListener("selectstart",o),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",i),t.removeEventListener("selectstart",o),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},i=function(t){return n.handleDragOver(t,e)},o=function(t){return n.handleDrop(t,e)};return t.addEventListener("dragenter",r),t.addEventListener("dragover",i),t.addEventListener("drop",o),function(){t.removeEventListener("dragenter",r),t.removeEventListener("dragover",i),t.removeEventListener("drop",o)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return mB({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return mB({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(oB).some((function(t){return oB[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var n=new cB(lB[e]);return n.loadDataTransfer(t),n}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}],n&&gB(t.prototype,n),r&&gB(t,r),e}();var wB=mt(Object.freeze({__proto__:null,NativeTypes:oB,HTML5Backend:function(e,t){return new bB(e,t)},getEmptyImage:function(){return yB||((yB=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),yB}})),xB=Fy,_B=lw,SB=Hm,kB=RangeError,TB=dm,CB=Gy,EB=lw,OB=Hm,DB=TB((function(e){var t=_B(SB(this)),n="",r=xB(e);if(r<0||r===1/0)throw new kB("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),MB=TB("".slice),AB=Math.ceil,IB=function(e){return function(t,n,r){var i,o,a=EB(OB(t)),s=CB(n),l=a.length,u=void 0===r?" ":EB(r);return s<=l||""===u?a:((o=DB(u,AB((i=s-l)/u.length))).length>i&&(o=MB(o,0,i)),e?a+o:o+a)}},PB=dm,RB=em,NB={start:IB(!1),end:IB(!0)}.start,jB=RangeError,LB=isFinite,FB=Math.abs,BB=Date.prototype,UB=BB.toISOString,HB=PB(BB.getTime),YB=PB(BB.getUTCDate),zB=PB(BB.getUTCFullYear),WB=PB(BB.getUTCHours),GB=PB(BB.getUTCMilliseconds),VB=PB(BB.getUTCMinutes),qB=PB(BB.getUTCMonth),QB=PB(BB.getUTCSeconds),$B=RB((function(){return"0385-07-25T07:06:39.999Z"!==UB.call(new Date(-50000000000001))}))||!RB((function(){UB.call(new Date(NaN))}))?function(){if(!LB(HB(this)))throw new jB("Invalid time value");var e=this,t=zB(e),n=GB(e),r=t<0?"-":t>9999?"+":"";return r+NB(FB(t),r?6:4,0)+"-"+NB(qB(e)+1,2,0)+"-"+NB(YB(e),2,0)+"T"+NB(WB(e),2,0)+":"+NB(VB(e),2,0)+":"+NB(QB(e),2,0)+"."+NB(n,3,0)+"Z"}:UB,XB=Tm,KB=Gv,ZB=vg,JB=$B,eU=mm;Ty({target:"Date",proto:!0,forced:em((function(){return null!==new Date(NaN).toJSON()||1!==XB(Date.prototype.toJSON,{toISOString:function(){return 1}})}))},{toJSON:function(e){var t=KB(this),n=ZB(t,"number");return"number"!=typeof n||isFinite(n)?"toISOString"in t||"Date"!==eU(t)?t.toISOString():XB(JB,t):null}});var tU=qm,nU=am;tU.JSON||(tU.JSON={stringify:JSON.stringify});var rU,iU,oU=function(e,t,n){return nU(tU.JSON.stringify,null,arguments)};function aU(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(Xf,"__esModule",{value:!0});var sU=aU(Iy),lU=aU(xb),uU=aU(Ub),cU=aU($b),dU=aU(sk),hU=aU(ck),pU=aU(Bk),fU=aU(fT),mU=aU(ST),vU=aU(MT),gU=aU(AT),yU=aU(IT),bU=aU(zT),wU=aU(zD),xU=aU(eM),_U=aU(aM),SU=aU(NM),kU=aU(wA),TU=aU(GA),CU=aU(dI),EU=aU(hI),OU=aU(mI),DU=aU(TI),MU=aU(FI),AU=aU(GI),IU=aU(nP),PU=aU(iP),RU=aU(hP),NU=aU(fP),jU=aU(xP),LU=aU(SP),FU=aU(DP),BU=aU(AP),UU=aU(ce.default),HU=aU(de.default),YU=aU(he.default),zU=le.default,WU=aU(IP),GU=aU(nR),VU=aU(iR),qU=aU(aR),QU=aU(lR),$U=aU(uR),XU=aU(dR),KU=aU(Nt),ZU=ae.default,JU=aU(ZU),eH=aU(TR),tH=aU(pe.default),nH=aU(fe.default),rH=aU(CR),iH=aU(me.default),oH=aU(ve.default),aH=aU(ge.default),sH=aU(ye.default),lH=aU(be.default),uH=aU(we.default),cH=aU(GR),dH=aU(xe.default),hH=aU(_e.default),pH=aU(Se.default),fH=aU(ke.default),mH=aU(Te.default),vH=aU(Ce.default),gH=aU(Ee.default),yH=aU(Oe.default),bH=aU(De.default),wH=aU(Me.default),xH=aU(ue.default),_H=aU(Ae.default),SH=aU(Ie.default),kH=aU(Pe.default),TH=aU(iN),CH=aU(Re.default),EH=aU(Ne.default),OH=aU(kN),DH=aU(je.default),MH=aU(YN),AH=aU(Le.default),IH=aU(Fe.default),PH=aU(GN),RH=YF,NH=aU(Be.default),jH=aU(Ue.default),LH=aU(He.default),FH=aU(Ye.default),BH=aU(ze.default),UH=aU(We.default),HH=aU(Ge.default),YH=aU(Ve.default),zH=aU(qe.default),WH=WF,GH=aU(WH),VH=aU($e.default),qH=wB,QH=aU(oU),$H=zU.makeStyles((function(e){return{root:{},cellHide:{display:"none"},simpleHeader:BU({},e.breakpoints.down("xs"),{display:"inline-block",fontWeight:"bold",width:"100%",boxSizing:"border-box"}),simpleCell:BU({},e.breakpoints.down("xs"),{display:"inline-block",width:"100%",boxSizing:"border-box"}),stackedHeader:{verticalAlign:"top"},stackedCommon:BU({},e.breakpoints.down("sm"),{display:"inline-block",fontSize:"16px",height:"auto",width:function(e){return e.isEmpty?"calc(100%)":"calc(50%)"},boxSizing:"border-box","&:last-child":{borderBottom:"none"},"&:nth-last-child(2)":{borderBottom:"none"}}),stackedCommonAlways:{display:"inline-block",fontSize:"16px",height:"auto",width:"calc(50%)",boxSizing:"border-box","&:last-child":{borderBottom:"none"},"&:nth-last-child(2)":{borderBottom:"none"}},stackedParent:BU({},e.breakpoints.down("sm"),{display:"inline-block",fontSize:"16px",height:"auto",width:"calc(100%)",boxSizing:"border-box"}),stackedParentAlways:{display:"inline-block",fontSize:"16px",height:"auto",width:"calc(100%)",boxSizing:"border-box"},cellStackedSmall:BU({},e.breakpoints.down("sm"),{width:"50%",boxSizing:"border-box"}),responsiveStackedSmall:BU({},e.breakpoints.down("sm"),{width:"50%",boxSizing:"border-box"}),responsiveStackedSmallParent:BU({},e.breakpoints.down("sm"),{width:"100%",boxSizing:"border-box"})}}),{name:"MUIDataTableBodyCell"});function XH(e){var t,n,r,i,o=$H(e),a=e.children,s=e.colIndex,l=e.columnHeader,u=e.options,c=e.dataIndex,d=e.rowIndex,h=e.className,p=e.print,f=e.tableId,m=SU(e,["children","colIndex","columnHeader","options","dataIndex","rowIndex","className","print","tableId"]),v=u.onCellClick,g=ZU.useCallback((function(e){v(a,{colIndex:s,rowIndex:d,dataIndex:c,event:e})}),[v,a,s,d,c]),y={};v&&(y.onClick=g);var b=[JU.createElement("div",{key:1,className:WU((BU(t={lastColumn:2===s},o.root,!0),BU(t,o.cellHide,!0),BU(t,o.stackedHeader,!0),BU(t,o.stackedCommon,"vertical"===u.responsive||"stacked"===u.responsive||"stackedFullWidth"===u.responsive),BU(t,o.stackedCommonAlways,"verticalAlways"===u.responsive),BU(t,o.cellStackedSmall,"stacked"===u.responsive||"stackedFullWidth"===u.responsive&&("none"===u.setTableProps().padding||"small"===u.setTableProps().size)),BU(t,o.simpleHeader,"simple"===u.responsive),BU(t,"datatables-noprint",!p),t),h)},l),JU.createElement("div",{key:2,className:WU((BU(n={},o.root,!0),BU(n,o.stackedCommon,"vertical"===u.responsive||"stacked"===u.responsive||"stackedFullWidth"===u.responsive),BU(n,o.stackedCommonAlways,"verticalAlways"===u.responsive),BU(n,o.responsiveStackedSmall,"stacked"===u.responsive||"stackedFullWidth"===u.responsive&&("none"===u.setTableProps().padding||"small"===u.setTableProps().size)),BU(n,o.simpleCell,"simple"===u.responsive),BU(n,"datatables-noprint",!p),n),h)},"function"==typeof a?a(c,d):a)],w=-1!==IU(r=["standard","scrollMaxHeight","scrollFullHeight","scrollFullHeightFullWidth"]).call(r,u.responsive)||e.isEmpty?rH(b).call(b,1,2):b;return JU.createElement(iH,fU({},y,{"data-colindex":s,"data-tableid":f,className:WU((BU(i={},o.root,!0),BU(i,o.stackedParent,"vertical"===u.responsive||"stacked"===u.responsive||"stackedFullWidth"===u.responsive),BU(i,o.stackedParentAlways,"verticalAlways"===u.responsive),BU(i,o.responsiveStackedSmallParent,"vertical"===u.responsive||"stacked"===u.responsive||"stackedFullWidth"===u.responsive&&("none"===u.setTableProps().padding||"small"===u.setTableProps().size)),BU(i,o.simpleCell,"simple"===u.responsive),BU(i,"datatables-noprint",!p),i),h)},m),w)}function KH(e){var t=function(){if("undefined"==typeof Reflect||!pU)return!1;if(pU.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(pU(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r,i=FU(e);return r=t?(n=FU(this).constructor,pU(i,arguments,n)):i.apply(this,arguments),LU(this,r)}}var ZH=function(e){jU(n,e);var t=KH(n);function n(){return PU(this,n),t.apply(this,arguments)}return RU(n,[{key:"render",value:function(){var e,t=this.props,n=t.classes,r=t.options,i=t.rowSelected,o=t.onClick,a=t.className,s=t.isRowSelectable,l=SU(t,["classes","options","rowSelected","onClick","className","isRowSelectable"]),u={};return o&&(u.onClick=o),JU.createElement(oH,fU({hover:!!r.rowHover},u,{className:WU((BU(e={},n.root,!0),BU(e,n.hover,r.rowHover),BU(e,n.hoverCursor,r.selectableRowsOnClick&&s||r.expandableRowsOnClick),BU(e,n.responsiveSimple,"simple"===r.responsive),BU(e,n.responsiveStacked,"vertical"===r.responsive||"stacked"===r.responsive||"stackedFullWidth"===r.responsive),BU(e,"mui-row-selected",i),e),a),selected:i},l),this.props.children)}}]),n}(JU.Component);BU(ZH,"propTypes",{options:KU.object.isRequired,onClick:KU.func,rowSelected:KU.bool,classes:KU.object});var JH=zU.withStyles((function(e){return{root:{"&.Mui-selected":{backgroundColor:e.palette.action.selected},"&.mui-row-selected":{backgroundColor:e.palette.action.selected}},hoverCursor:{cursor:"pointer"},responsiveStacked:BU({},e.breakpoints.down("sm"),{borderTop:"solid 2px rgba(0, 0, 0, 0.15)",borderBottom:"solid 2px rgba(0, 0, 0, 0.15)",padding:0,margin:0}),responsiveSimple:BU({},e.breakpoints.down("xs"),{borderTop:"solid 2px rgba(0, 0, 0, 0.15)",borderBottom:"solid 2px rgba(0, 0, 0, 0.15)",padding:0,margin:0})}}),{name:"MUIDataTableBodyRow"})(ZH),eY=function(e){var t=e.areAllRowsExpanded,n=e.buttonClass,r=e.expandableRowsHeader,i=e.expandedRows,o=e.iconClass,a=e.iconIndeterminateClass,s=e.isHeaderCell,l=e.onExpand;return JU.createElement(JU.Fragment,null,s&&!t()&&t&&0<i.data.length?JU.createElement(sH,{onClick:l,style:{padding:0},disabled:!1===r,className:n},JU.createElement(uH,{id:"expandable-button",className:a})):JU.createElement(sH,{onClick:l,style:{padding:0},disabled:!1===r,className:n},JU.createElement(lH,{id:"expandable-button",className:o})))},tY=zU.makeStyles((function(e){return{root:{"@media print":{display:"none"}},fixedHeader:{position:"sticky",top:"0px",zIndex:100},fixedLeft:{position:"sticky",left:"0px",zIndex:100},icon:{cursor:"pointer",transition:"transform 0.25s"},expanded:{transform:"rotate(90deg)"},hide:{visibility:"hidden"},headerCell:{zIndex:110,backgroundColor:e.palette.background.paper},expandDisabled:{},checkboxRoot:{},checked:{},disabled:{}}}),{name:"MUIDataTableSelectCell"}),nY=function(e){var t,n,r,i=e.fixedHeader,o=e.fixedSelectColumn,a=e.isHeaderCell,s=void 0!==a&&a,l=e.expandableOn,u=void 0!==l&&l,c=e.selectableOn,d=void 0===c?"none":c,h=e.isRowExpanded,p=void 0!==h&&h,f=e.onExpand,m=e.isRowSelectable,v=e.selectableRowsHeader,g=e.hideExpandButton,y=e.expandableRowsHeader,b=e.expandedRows,w=e.areAllRowsExpanded,x=void 0===w?function(){return!1}:w,_=e.selectableRowsHideCheckboxes,S=e.setHeadCellRef,k=e.dataIndex,T=e.components,C=void 0===T?{}:T,E=SU(e,["fixedHeader","fixedSelectColumn","isHeaderCell","expandableOn","selectableOn","isRowExpanded","onExpand","isRowSelectable","selectableRowsHeader","hideExpandButton","expandableRowsHeader","expandedRows","areAllRowsExpanded","selectableRowsHideCheckboxes","setHeadCellRef","dataIndex","components"]),O=tY(),D=C.Checkbox||aH,M=C.ExpandButton||eY;if(!1===u&&("none"===d||!0===_))return null;var A=WU((BU(t={},O.root,!0),BU(t,O.fixedHeader,i&&s),BU(t,O.fixedLeft,o),BU(t,O.headerCell,s),t)),I=WU(BU({},O.expandDisabled,g)),P=WU((BU(n={},O.icon,!0),BU(n,O.hide,s&&!y),BU(n,O.expanded,p||s&&x()),n)),R=WU((BU(r={},O.icon,!0),BU(r,O.hide,s&&!y),r)),N={};return S&&(N.ref=function(e){S(0,0,e)}),JU.createElement(iH,fU({className:A,padding:"checkbox"},N),JU.createElement("div",{style:{display:"flex",alignItems:"center"}},u&&JU.createElement(M,{isHeaderCell:s,areAllRowsExpanded:x,expandedRows:b,onExpand:f,expandableRowsHeader:y,buttonClass:I,iconIndeterminateClass:R,iconClass:P,dataIndex:k}),"none"!==d&&!0!==_&&(!s||"multiple"===d&&!1!==v?JU.createElement(D,fU({classes:{root:O.checkboxRoot,checked:O.checked,disabled:O.disabled},"data-description":s?"row-select-header":"row-select","data-index":k||null,color:"primary",disabled:!m},E)):null)))};function rY(e){return CU(e).call(e,(function(e,t){return e[t.dataIndex]=!0,e}),{})}function iY(e){return"string"==typeof e?e.replace(/^\+|^\-|^\=|^\@/g,"'$&"):e}function oY(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n="function"==typeof t?t:console.warn;t&&n("".concat(e))}function aY(e,t,n){var r=e<=t?1:Math.ceil(e/t);return r<=n?r-1:n}function sY(){return Intl?new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare:function(e,t){return e.localeCompare(t)}}function lY(e){return function(t,n){var r=null===t.data||void 0===t.data?"":t.data,i=null===n.data||void 0===n.data?"":n.data;return("function"==typeof r.localeCompare?r.localeCompare(i):r-i)*("asc"===e?1:-1)}}function uY(e,t){var n,r,i,o,a=new Blob([e],{type:"text/csv"});navigator&&navigator.msSaveOrOpenBlob?navigator.msSaveOrOpenBlob(a,t):(n="data:text/csv;charset=utf-8,".concat(e),i=void 0===(r=window.URL||window.webkitURL).createObjectURL?n:r.createObjectURL(a),(o=document.createElement("a")).setAttribute("href",i),o.setAttribute("download",t),document.body.appendChild(o),o.click(),document.body.removeChild(o))}function cY(e,t,n,r){var i=function(e,t,n){function r(e){return"string"==typeof e?e.replace(/\"/g,'""'):e}function i(e){var t;return rH(t=CU(e).call(e,(function(e,t){return t.download?e+'"'+iY(r(t.label||t.name))+'"'+n.downloadOptions.separator:e}),"")).call(t,0,-1)+"\r\n"}function o(t){var i;return t.length?cH(i=CU(t).call(t,(function(t,i){var o,a;return t+'"'+AU(o=bU(a=i.data).call(a,(function(t,n){return e[n].download}))).call(o,(function(e){return iY(r(e))})).join('"'+n.downloadOptions.separator+'"')+'"\r\n'}),"")).call(i):""}var a,s,l=i(e),u=o(t);return n.onDownload?n.onDownload(i,o,e,t):cH(a=_U(s="".concat(l)).call(s,u)).call(a)}(e,t,n);n.onDownload&&!1===i||r(i,n.downloadOptions.filename)}function dY(e){var t=function(){if("undefined"==typeof Reflect||!pU)return!1;if(pU.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(pU(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r,i=FU(e);return r=t?(n=FU(this).constructor,pU(i,arguments,n)):i.apply(this,arguments),LU(this,r)}}nY.propTypes={checked:KU.bool.isRequired,fixedHeader:KU.bool,onChange:KU.func,classes:KU.object,expandableOn:KU.bool,hideExpandButton:KU.bool,selectableOn:KU.string,isRowSelectable:KU.bool};var hY=function(e){jU(n,e);var t=dY(n);function n(){var e,r;PU(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,_U(e=[this]).call(e,o)),BU(NU(r),"handleRowSelect",(function(e,t){var n=!(!t||!t.nativeEvent)&&t.nativeEvent.shiftKey,i=[],o=r.props.previousSelectedRow;if(n&&o&&o.index<r.props.data.length){var a,s=o.index,l=VU(r.props.selectedRows),u=r.props.data[e.index].dataIndex;for(0===bU(a=l.data).call(a,(function(e){return e.dataIndex===u})).length&&(l.data.push({index:e.index,dataIndex:u}),l.lookup[u]=!0);s!==e.index;)!function(){var t,n,o=r.props.data[s].dataIndex;r.isRowSelectable(o,l)&&(n={index:s,dataIndex:o},0===bU(t=l.data).call(t,(function(e){return e.dataIndex===o})).length&&(l.data.push(n),l.lookup[o]=!0),i.push(n)),s=e.index>s?s+1:s-1}()}r.props.selectRowUpdate("cell",e,i)})),BU(NU(r),"handleRowClick",(function(e,t,n){var i,o,a;"expandable-button"===n.target.id||"path"===n.target.nodeName&&"expandable-button"===n.target.parentNode.id||n.target.id&&eH(i=n.target.id).call(i,"MUIDataTableSelectCell")||(r.props.options.selectableRowsOnClick&&"none"!==r.props.options.selectableRows&&r.isRowSelectable(t.dataIndex,r.props.selectedRows)&&(o={index:t.rowIndex,dataIndex:t.dataIndex},r.handleRowSelect(o,n)),r.props.options.expandableRowsOnClick&&r.props.options.expandableRows&&r.isRowExpandable(t.dataIndex,r.props.expandedRows)&&(a={index:t.rowIndex,dataIndex:t.dataIndex},r.props.toggleExpandRow(a)),r.props.options.selectableRowsOnClick||r.props.options.onRowClick&&r.props.options.onRowClick(e,t,n))})),BU(NU(r),"processRow",(function(e,t){for(var n=[],r=0;r<e.length;r++)n.push({value:e[t[r]],index:t[r]});return n})),r}return RU(n,[{key:"buildRows",value:function(){var e=this.props,t=e.data,n=e.page,r=e.rowsPerPage,i=e.count;if(this.props.options.serverSide)return t.length?t:null;var o=[],a=aY(i,r,n),s=0===a?0:a*r,l=Math.min(i,(a+1)*r);a<n&&console.warn("Current page is out of range, using the highest page that is in range instead.");for(var u=s;u<i&&u<l;u++)void 0!==t[u]&&o.push(t[u]);return o.length?o:null}},{key:"getRowIndex",value:function(e){var t=this.props,n=t.page,r=t.rowsPerPage;return t.options.serverSide?e:(0===n?0:n*r)+e}},{key:"isRowSelected",value:function(e){var t=this.props.selectedRows;return!(!t.lookup||!t.lookup[e])}},{key:"isRowExpanded",value:function(e){var t=this.props.expandedRows;return!(!t.lookup||!t.lookup[e])}},{key:"isRowSelectable",value:function(e,t){var n=this.props.options;return t=t||this.props.selectedRows,!n.isRowSelectable||n.isRowSelectable(e,t)}},{key:"isRowExpandable",value:function(e){var t=this.props,n=t.options,r=t.expandedRows;return!n.isRowExpandable||n.isRowExpandable(e,r)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.classes,i=n.columns,o=n.toggleExpandRow,a=n.options,s=n.columnOrder,l=void 0===s?AU(e=this.props.columns).call(e,(function(e,t){return t})):s,u=n.components,c=void 0===u?{}:u,d=n.tableId,h=this.buildRows(),p=bU(i).call(i,(function(e){return"true"===e.display})).length;return JU.createElement(nH,null,h&&0<h.length?AU(h).call(h,(function(e,n){var s,u,h,p,f,m=e.data,v=e.dataIndex;if(a.customRowRender)return a.customRowRender(m,v,n);var g="none"!==a.selectableRows&&t.isRowSelected(v),y=t.isRowSelectable(v),b=a.setRowProps&&a.setRowProps(m,v,n)||{},w=t.processRow(m,l);return JU.createElement(JU.Fragment,{key:n},JU.createElement(JH,fU({},b,{options:a,rowSelected:g,isRowSelectable:y,onClick:gU(s=t.handleRowClick).call(s,null,m,{rowIndex:n,dataIndex:v}),className:WU((BU(u={},r.lastStackedCell,"vertical"===a.responsive||"stacked"===a.responsive||"stackedFullWidth"===a.responsive),BU(u,r.lastSimpleCell,"simple"===a.responsive),BU(u,b.className,b.className),u)),"data-testid":"MUIDataTableBodyRow-"+v,id:_U(h="MUIDataTableBodyRow-".concat(d,"-")).call(h,v)}),JU.createElement(nY,{onChange:gU(p=t.handleRowSelect).call(p,null,{index:t.getRowIndex(n),dataIndex:v}),onExpand:gU(o).call(o,null,{index:t.getRowIndex(n),dataIndex:v}),fixedHeader:a.fixedHeader,fixedSelectColumn:a.fixedSelectColumn,checked:g,expandableOn:a.expandableRows,hideExpandButton:!t.isRowExpandable(v)&&a.expandableRows,selectableOn:a.selectableRows,selectableRowsHideCheckboxes:a.selectableRowsHideCheckboxes,isRowExpanded:t.isRowExpanded(v),isRowSelectable:y,dataIndex:v,id:_U(f="MUIDataTableSelectCell-".concat(d,"-")).call(f,v),components:c}),AU(w).call(w,(function(e){var t;return"true"===i[e.index].display&&JU.createElement(XH,fU({},i[e.index].setCellProps&&i[e.index].setCellProps(e.value,v,e.index)||{},{"data-testid":_U(t="MuiDataTableBodyCell-".concat(e.index,"-")).call(t,n),dataIndex:v,rowIndex:n,colIndex:e.index,columnHeader:i[e.index].label,print:i[e.index].print,options:a,tableId:d,isEmpty:!1,key:e.index}),e.value)}))),t.isRowExpanded(v)&&a.renderExpandableRow(m,{rowIndex:n,dataIndex:v}))})):JU.createElement(JH,{options:a},JU.createElement(XH,{isEmpty:!0,colSpan:"none"!==a.selectableRows||a.expandableRows?p+1:p,options:a,colIndex:0,rowIndex:0},JU.createElement(tH,{variant:"body1",className:r.emptyTitle,component:"div"},a.textLabels.body.noMatch))))}}]),n}(JU.Component);BU(hY,"propTypes",{data:KU.array.isRequired,count:KU.number.isRequired,columns:KU.array.isRequired,options:KU.object.isRequired,filterList:KU.array,onRowClick:KU.func,expandedRows:KU.object,selectedRows:KU.object,selectRowUpdate:KU.func,previousSelectedRow:KU.object,searchText:KU.string,toggleExpandRow:KU.func,classes:KU.object}),BU(hY,"defaultProps",{toggleExpandRow:function(){}});var pY=zU.withStyles((function(e){return{root:{},emptyTitle:{textAlign:"center"},lastStackedCell:BU({},e.breakpoints.down("sm"),{"& td:last-child":{borderBottom:"none"}}),lastSimpleCell:BU({},e.breakpoints.down("xs"),{"& td:last-child":{borderBottom:"none"}})}}),{name:"MUIDataTableBody"})(hY);function fY(e){var t=function(){if("undefined"==typeof Reflect||!pU)return!1;if(pU.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(pU(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r,i=FU(e);return r=t?(n=FU(this).constructor,pU(i,arguments,n)):i.apply(this,arguments),LU(this,r)}}var mY=function(e){jU(n,e);var t=fY(n);function n(e){var r;return PU(this,n),r=t.call(this,e),BU(NU(r),"filterUpdate",(function(e,t,n,i,o){var a,s=rH(a=r.state.filterList).call(a,0);r.props.updateFilterByType(s,e,t,i,o),r.setState({filterList:s})})),BU(NU(r),"handleCheckboxChange",(function(e,t,n){r.filterUpdate(e,t,n,"checkbox"),!0!==r.props.options.confirmFilters&&r.props.onFilterUpdate(e,t,n,"checkbox")})),BU(NU(r),"handleDropdownChange",(function(e,t,n){var i=bU(r.props.options.textLabels).all,o=e.target.value===i?[]:[e.target.value];r.filterUpdate(t,o,n,"dropdown"),!0!==r.props.options.confirmFilters&&r.props.onFilterUpdate(t,o,n,"dropdown")})),BU(NU(r),"handleMultiselectChange",(function(e,t,n){r.filterUpdate(e,t,n,"multiselect"),!0!==r.props.options.confirmFilters&&r.props.onFilterUpdate(e,t,n,"multiselect")})),BU(NU(r),"handleTextFieldChange",(function(e,t,n){r.filterUpdate(t,e.target.value,n,"textField"),!0!==r.props.options.confirmFilters&&r.props.onFilterUpdate(t,e.target.value,n,"textField")})),BU(NU(r),"handleCustomChange",(function(e,t,n){r.filterUpdate(t,e,n.name,n.filterType),!0!==r.props.options.confirmFilters&&r.props.onFilterUpdate(t,e,n.name,n.filterType)})),BU(NU(r),"applyFilters",(function(){var e;return DU(e=r.state.filterList).call(e,(function(e,t){r.props.onFilterUpdate(t,e,r.props.columns[t],"custom")})),r.props.handleClose(),r.props.options.onFilterConfirm&&r.props.options.onFilterConfirm(r.state.filterList),r.state.filterList})),BU(NU(r),"resetFilters",(function(){var e;r.setState({filterList:AU(e=r.props.columns).call(e,(function(){return[]}))}),!0!==r.props.options.confirmFilters&&r.props.onFilterReset()})),r.state={filterList:VU(e.filterList)},r}return RU(n,[{key:"renderCheckbox",value:function(e,t,n){var r,i=this,o=(2<arguments.length&&void 0!==n?n:{}).Checkbox||aH,a=this.props,s=a.classes,l=a.filterData,u=this.state.filterList,c=e.filterOptions&&e.filterOptions.renderValue?e.filterOptions.renderValue:function(e){return e};return JU.createElement(mH,{item:!0,key:t,xs:6},JU.createElement(fH,null,JU.createElement(mH,{item:!0,xs:12},JU.createElement(tH,{variant:"body2",className:s.checkboxListTitle},e.label)),JU.createElement(mH,{container:!0},AU(r=l[t]).call(r,(function(n,r){var a,l;return JU.createElement(mH,{item:!0,key:r},JU.createElement(pH,{key:r,classes:{root:s.checkboxFormControl,label:s.checkboxFormControlLabel},control:JU.createElement(o,{"data-description":"table-filter",color:"primary",className:s.checkboxIcon,onChange:gU(a=i.handleCheckboxChange).call(a,null,t,n,e.name),checked:0<=IU(l=u[t]).call(l,n),classes:{root:s.checkbox,checked:s.checked},value:null!=n?n.toString():""}),label:c(n)}))})))))}},{key:"renderSelect",value:function(e,t){var n,r=this,i=this.props,o=i.classes,a=i.filterData,s=i.options,l=this.state.filterList,u=bU(s.textLabels),c=e.filterOptions&&e.filterOptions.renderValue?e.filterOptions.renderValue:function(e){return null!=e?e.toString():""},d=!0===(e.filterOptions&&e.filterOptions.fullWidth)?12:6;return JU.createElement(mH,{item:!0,key:t,xs:d,classes:{"grid-xs-12":o.gridListTile,"grid-xs-6":o.gridListTile}},JU.createElement(hH,{key:t,fullWidth:!0},JU.createElement(gH,{htmlFor:e.name},e.label),JU.createElement(wH,{fullWidth:!0,value:l[t].length?l[t].toString():u.all,name:e.name,onChange:function(n){return r.handleDropdownChange(n,t,e.name)},input:JU.createElement(vH,{name:e.name,id:e.name})},JU.createElement(bH,{value:u.all,key:0},u.all),AU(n=a[t]).call(n,(function(e,t){return JU.createElement(bH,{value:e,key:t+1},c(e))})))))}},{key:"renderTextField",value:function(e,t){var n=this,r=this.props.classes,i=this.state.filterList;e.filterOptions&&e.filterOptions.renderValue&&console.warn("Custom renderValue not supported for textField filters");var o=!0===(e.filterOptions&&e.filterOptions.fullWidth)?12:6;return JU.createElement(mH,{item:!0,key:t,xs:o,classes:{"grid-xs-12":r.gridListTile,"grid-xs-6":r.gridListTile}},JU.createElement(hH,{key:t,fullWidth:!0},JU.createElement(xH,{fullWidth:!0,label:e.label,value:i[t].toString()||"","data-testid":"filtertextfield-"+e.name,onChange:function(r){return n.handleTextFieldChange(r,t,e.name)}})))}},{key:"renderMultiselect",value:function(e,t,n){var r,i=this,o=(2<arguments.length&&void 0!==n?n:{}).Checkbox||aH,a=this.props,s=a.classes,l=a.filterData,u=this.state.filterList,c=e.filterOptions&&e.filterOptions.renderValue?e.filterOptions.renderValue:function(e){return e},d=!0===(e.filterOptions&&e.filterOptions.fullWidth)?12:6;return JU.createElement(mH,{item:!0,key:t,xs:d,classes:{"grid-xs-12":s.gridListTile,"grid-xs-6":s.gridListTile}},JU.createElement(hH,{key:t,fullWidth:!0},JU.createElement(gH,{htmlFor:e.name},e.label),JU.createElement(wH,{multiple:!0,fullWidth:!0,value:u[t]||[],renderValue:function(e){return AU(e).call(e,c).join(", ")},name:e.name,onChange:function(n){return i.handleMultiselectChange(t,n.target.value,e.name)},input:JU.createElement(vH,{name:e.name,id:e.name})},AU(r=l[t]).call(r,(function(e,n){var r;return JU.createElement(bH,{value:e,key:n+1},JU.createElement(o,{"data-description":"table-filter",color:"primary",checked:0<=IU(r=u[t]).call(r,e),value:null!=e?e.toString():"",className:s.checkboxIcon,classes:{root:s.checkbox,checked:s.checked}}),JU.createElement(yH,{primary:c(e)}))})))))}},{key:"renderCustomField",value:function(e,t){var n=this.props,r=n.classes,i=n.filterData,o=n.options,a=this.state.filterList,s=!0===(e.filterOptions&&e.filterOptions.fullWidth)?12:6,l=e.filterOptions&&e.filterOptions.display||o.filterOptions&&o.filterOptions.display;if(l)return e.filterListOptions&&e.filterListOptions.renderValue&&console.warning('"renderValue" is ignored for custom filter fields'),JU.createElement(mH,{item:!0,key:t,xs:s,classes:{"grid-xs-12":r.gridListTile,"grid-xs-6":r.gridListTile}},JU.createElement(hH,{key:t,fullWidth:!0},l(a,this.handleCustomChange,t,e,i)));console.error('Property "display" is required when using custom filter type.')}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.columns,i=t.options,o=t.customFooter,a=t.filterList,s=t.components,l=void 0===s?{}:s,u=bU(i.textLabels);return JU.createElement("div",{className:n.root},JU.createElement("div",{className:n.header},JU.createElement("div",{className:n.reset},JU.createElement(tH,{variant:"body2",className:WU(BU({},n.title,!0))},u.title),JU.createElement(dH,{color:"primary",className:n.resetLink,tabIndex:0,"aria-label":u.reset,"data-testid":"filterReset-button",onClick:this.resetFilters},u.reset)),JU.createElement("div",{className:n.filtersSelected})),JU.createElement(mH,{container:!0,direction:"row",justifyContent:"flex-start",alignItems:"center",spacing:4},AU(r).call(r,(function(t,n){if(bU(t)){var r=t.filterType||i.filterType;return"checkbox"===r?e.renderCheckbox(t,n,l):"multiselect"===r?e.renderMultiselect(t,n,l):"textField"===r?e.renderTextField(t,n):"custom"===r?e.renderCustomField(t,n):e.renderSelect(t,n)}}))),o?o(a,this.applyFilters):"")}}]),n}(JU.Component);BU(mY,"propTypes",{filterData:KU.array.isRequired,filterList:KU.array.isRequired,options:KU.object.isRequired,onFilterUpdate:KU.func,onFilterReset:KU.func,classes:KU.object});var vY=zU.withStyles((function(e){return{root:{backgroundColor:e.palette.background.default,padding:"24px 24px 36px 24px",fontFamily:"Roboto"},header:{flex:"0 0 auto",marginBottom:"16px",width:"100%",display:"flex",justifyContent:"space-between"},title:{display:"inline-block",marginLeft:"7px",color:e.palette.text.primary,fontSize:"14px",fontWeight:500},noMargin:{marginLeft:"0px"},reset:{alignSelf:"left"},resetLink:{marginLeft:"16px",fontSize:"12px",cursor:"pointer"},filtersSelected:{alignSelf:"right"},checkboxListTitle:{marginLeft:"7px",marginBottom:"8px",fontSize:"14px",color:e.palette.text.secondary,textAlign:"left",fontWeight:500},checkboxFormGroup:{marginTop:"8px"},checkboxFormControl:{margin:"0px"},checkboxFormControlLabel:{fontSize:"15px",marginLeft:"8px",color:e.palette.text.primary},checkboxIcon:{width:"32px",height:"32px"},checkbox:{},checked:{},gridListTile:{marginTop:"16px"}}}),{name:"MUIDataTableFilter"})(mY),gY=function(e){var t=e.label,n=e.onDelete,r=e.className,i=e.filterProps;return(i=i||{}).className&&(r=WU(r,i.className)),JU.createElement(_H,fU({label:t,onDelete:n,className:r},i))};gY.propTypes={label:KU.node,onDelete:KU.func.isRequired,className:KU.string.isRequired};var yY=zU.makeStyles((function(){return{root:{display:"flex",justifyContent:"left",flexWrap:"wrap",margin:"0px 16px 0px 16px"},chip:{margin:"8px 8px 0px 0px"}}}),{name:"MUIDataTableFilterList"}),bY=function(e){function t(e,t,n,a,s){var l=4<arguments.length&&void 0!==s?s:null,u=t;EU(u)&&0===u.length&&(u=i[e]),o(e,t,n,a,l,(function(t){r.onFilterChipClose&&r.onFilterChipClose(e,u,t)}))}function n(e,n,i,o,a){var l=a?u[n]?"custom":"chip":s[n].filterType;return JU.createElement(d,{label:e,key:i,onDelete:function(){return t(n,o[i]||[],s[n].name,l,u[n])},className:h.chip,itemKey:i,index:n,data:o,columnNames:s,filterProps:r.setFilterChipProps?r.setFilterChipProps(n,s[n].name,o[i]||[]):{}})}var r=e.options,i=e.filterList,o=e.filterUpdate,a=e.filterListRenderers,s=e.columnNames,l=e.serverSideFilterList,u=e.customFilterListUpdate,c=e.ItemComponent,d=void 0===c?gY:c,h=yY(),p=r.serverSide;return JU.createElement("div",{className:h.root},function(e){return AU(e).call(e,(function(i,o){if("custom"===s[o].filterType&&e[o].length){var l=a[o](i);return EU(l)?AU(l).call(l,(function(e,t){return n(e,o,t,i,!0)})):n(l,o,o,i,!1)}return AU(i).call(i,(function(e,n){return i=o,l=e,u=n,JU.createElement(d,{label:a[i](l),key:u,onDelete:function(){return t(i,l,s[i].name,"chip")},className:h.chip,itemKey:u,index:i,data:l,columnNames:s,filterProps:r.setFilterChipProps?r.setFilterChipProps(i,s[i].name,l):{}});var i,l,u}))}))}(p&&l?l:i))};bY.propTypes={filterList:KU.array.isRequired,filterListRenderers:KU.array.isRequired,columnNames:KU.arrayOf(KU.oneOfType([KU.string,KU.shape({name:KU.string.isRequired,filterType:KU.string})])).isRequired,onFilterUpdate:KU.func,ItemComponent:KU.any};var wY=zU.makeStyles((function(e){return{root:{color:e.palette.text.primary},caption:{flexShrink:0},selectRoot:{marginRight:32,marginLeft:8},select:{paddingTop:6,paddingBottom:7,paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right",fontSize:e.typography.pxToRem(14)},selectIcon:{},input:{color:"inhert",fontSize:"inhert",flexShrink:0}}}),{name:"MUIDataTableJumpToPage"});function xY(e){for(var t=wY(),n=e.count,r=e.textLabels,i=e.rowsPerPage,o=e.page,a=(e.changePage,r.pagination.jumpToPage),s=[],l=Math.min(1e3,aY(n,i,1e6)),u=0;u<=l;u++)s.push(u);var c=bH;return JU.createElement(EH,{style:{display:"flex",minHeight:"52px",alignItems:"center"},className:t.root},JU.createElement(tH,{color:"inherit",variant:"body2",className:t.caption},a),JU.createElement(wH,{classes:{select:t.select,icon:t.selectIcon},input:JU.createElement(CH,{className:WU(t.input,t.selectRoot)}),value:aY(n,i,o),onChange:function(t){e.changePage(TH(t.target.value,10))},style:{marginRight:0}},AU(s).call(s,(function(e){return JU.createElement(c,{className:t.menuItem,key:e,value:e},e+1)}))))}xY.propTypes={count:KU.number.isRequired,page:KU.number.isRequired,rowsPerPage:KU.number.isRequired,textLabels:KU.object.isRequired};var _Y=zU.makeStyles((function(e){return{root:{},tableCellContainer:{padding:"0px 24px 0px 24px"},navContainer:{display:"flex",justifyContent:"flex-end"},toolbar:{},selectRoot:{},"@media screen and (max-width: 400px)":{toolbar:{"& span:nth-child(2)":{display:"none"}},selectRoot:{marginRight:"8px"}}}}),{name:"MUIDataTablePagination"});function SY(e){var t=_Y(),n=e.count,r=e.options,i=e.rowsPerPage,o=e.page,a=r.textLabels.pagination;return JU.createElement(SH,null,JU.createElement(oH,null,JU.createElement(iH,{colSpan:"1000",className:t.tableCellContainer},JU.createElement("div",{className:t.navContainer},r.jumpToPage?JU.createElement(xY,{count:n,page:o,rowsPerPage:i,textLabels:r.textLabels,changePage:e.changePage,changeRowsPerPage:e.changeRowsPerPage}):null,JU.createElement(kH,{component:"div",className:t.root,classes:{caption:t.caption,toolbar:t.toolbar,selectRoot:t.selectRoot},count:n,rowsPerPage:i,page:aY(n,i,o),labelRowsPerPage:a.rowsPerPage,labelDisplayedRows:function(e){var t,n,r,i=e.from,o=e.to,s=e.count;return _U(t=_U(n=_U(r="".concat(i,"-")).call(r,o," ")).call(n,a.displayRows," ")).call(t,s)},backIconButtonProps:{id:"pagination-back","data-testid":"pagination-back","aria-label":a.previous,title:a.previous||""},nextIconButtonProps:{id:"pagination-next","data-testid":"pagination-next","aria-label":a.next,title:a.next||""},SelectProps:{id:"pagination-input",SelectDisplayProps:{id:"pagination-rows","data-testid":"pagination-rows"},MenuProps:{id:"pagination-menu","data-testid":"pagination-menu",MenuListProps:{id:"pagination-menu-list","data-testid":"pagination-menu-list"}}},rowsPerPageOptions:r.rowsPerPageOptions,onPageChange:function(t,n){e.changePage(n)},onRowsPerPageChange:function(t){e.changeRowsPerPage(t.target.value)}})))))}SY.propTypes={count:KU.number.isRequired,options:KU.object.isRequired,page:KU.number.isRequired,rowsPerPage:KU.number.isRequired,changeRowsPerPage:KU.func.isRequired};var kY=zU.makeStyles((function(){return{root:{"@media print":{display:"none"}}}}),{name:"MUIDataTableFooter"}),TY=function(e){var t=e.options,n=e.rowCount,r=e.page,i=e.rowsPerPage,o=e.changeRowsPerPage,a=e.changePage,s=kY(),l=t.customFooter,u=t.pagination,c=void 0===u||u;return l?JU.createElement(HU,{className:s.root},t.customFooter(n,r,i,o,a,t.textLabels.pagination)):c?JU.createElement(HU,{className:s.root},JU.createElement(SY,{count:n,page:r,rowsPerPage:i,changeRowsPerPage:o,changePage:a,component:"div",options:t})):null};TY.propTypes={rowCount:KU.number.isRequired,options:KU.shape({customFooter:KU.func,pagination:KU.bool,textLabels:KU.shape({pagination:KU.object})}),page:KU.number.isRequired,rowsPerPage:KU.number.isRequired,changeRowsPerPage:KU.func.isRequired,changePage:KU.func.isRequired};var CY=function(e,t,n){var r,i=[],o=e[0]?e[0]:null;null===o&&(o={offsetLeft:1/0},r=PH(e),DU(r).call(r,(function(e,t){var n=OH(e,2),r=(n[0],n[1]);r&&r.offsetLeft<o.offsetLeft&&(o=r)})),o.offsetLeft===1/0&&(o={offsetParent:0,offsetWidth:0,offsetLeft:0}));for(var a=0,s=0,l=o.offsetParent;l&&(s=s+(l.offsetLeft||0)-(l.scrollLeft||0),l=l.offsetParent,!(1e3<++a)););return e[0]&&(i[0]={left:s+o.offsetLeft,width:o.offsetWidth,columnIndex:null,ref:o}),DU(t).call(t,(function(t,r){var a,l=e[t+1],u=i.length-1;n[t]&&"true"!==n[t].display||(a=-1!=u?i[u].left+i[u].width:s+o.offsetLeft,i.push({left:a,width:l.offsetWidth,columnIndex:t,ref:l}))})),i},EY=function(e){e.item;var t=e.mon,n=e.index,r=e.headCellRefs,i=e.updateColumnOrder,o=e.columnOrder,a=e.transitionTime,s=void 0===a?300:a,l=e.tableRef,u=e.tableId,c=e.timers,d=e.columns,h=t.getItem().colIndex;if(r===t.getItem().headCellRefs&&h!==n){for(var p=function(e,t,n){var r,i,o,a=rH(e).call(e),s=IU(a).call(a,t),l=IU(a).call(a,n);return-1!==s&&-1!==l&&(o=a[s],a=_U(r=[]).call(r,wU(rH(a).call(a,0,s)),wU(rH(a).call(a,s+1))),a=_U(i=[]).call(i,wU(rH(a).call(a,0,l)),[o],wU(rH(a).call(a,l)))),a}(o,t.getItem().colIndex,n),f=CY(r,p,d),m=t.getClientOffset().x,v=-1,g=0;g<f.length;g++)if(m>f[g].left&&m<f[g].left+f[g].width){v=f[g].columnIndex;break}if(v===t.getItem().colIndex){clearTimeout(c.columnShift);var y=CY(r,o,d),b=[];DU(f).call(f,(function(e){b[e.columnIndex]=e.left})),DU(y).call(y,(function(e){b[e.columnIndex]=b[e.columnIndex]-e.left}));for(var w=1;w<o.length;w++){var x=o[w];d[x]&&"true"!==d[x].display||(r[w]&&(r[w].style.transition="280ms"),r[w]&&(r[w].style.transform="translateX("+b[w-1]+"px)"))}for(var _=[],S=[],k=0;k<o.length;k++){for(var T=l?l.querySelectorAll('[data-colindex="'+k+'"][data-tableid="'+u+'"]'):[],C=0;C<T.length;C++)T[C].style.transition=s+"ms",T[C].style.transform="translateX("+b[k]+"px)",_.push(T[C]);for(var E=l?l.querySelectorAll('[data-divider-index="'+(k+1)+'"][data-tableid="'+u+'"]'):[],O=0;O<E.length;O++)E[O].style.transition=s+"ms",E[O].style.transform="translateX("+b[o[k]]+"px)",S.push(E[O])}var D=t.getItem().colIndex;c.columnShift=MH((function(){DU(_).call(_,(function(e){e.style.transition="0s",e.style.transform="translateX(0)"})),DU(S).call(S,(function(e){e.style.transition="0s",e.style.transform="translateX(0)"})),i(p,D,n)}),s)}}};function OY(e,t){var n,r=hU(e);return dU&&(n=dU(e),t&&(n=bU(n).call(n,(function(t){return cU(e,t).enumerable}))),r.push.apply(r,n)),r}var DY=zU.makeStyles((function(e){return{root:{},fixedHeader:{position:"sticky",top:"0px",zIndex:100,backgroundColor:e.palette.background.paper},tooltip:{cursor:"pointer"},mypopper:{"&[data-x-out-of-boundaries]":{display:"none"}},data:{display:"inline-block"},sortAction:{display:"flex",cursor:"pointer"},dragCursor:{cursor:"grab"},sortLabelRoot:{height:"20px"},sortActive:{color:e.palette.text.primary},toolButton:{textTransform:"none",marginLeft:"-8px",minWidth:0,marginRight:"8px"},contentWrapper:{display:"flex",alignItems:"center"},hintIconAlone:{marginTop:"-3px",marginLeft:"3px"},hintIconWithSortIcon:{marginTop:"-3px"}}}),{name:"MUIDataTableHeadCell"}),MY=function(e){function t(){return!!m&&y.draggableColumns&&y.draggableColumns.enabled&&!1!==l.draggable}var n,r,i=e.cellHeaderProps,o=void 0===i?{}:i,a=e.children,s=e.colPosition,l=e.column,u=e.columns,c=e.columnOrder,d=void 0===c?[]:c,h=e.components,p=void 0===h?{}:h,f=e.draggableHeadCellRefs,m=e.draggingHook,v=e.hint,g=e.index,y=e.options,b=e.print,w=e.setCellRef,x=kU(e),_=e.sortDirection,S=e.tableRef,k=e.tableId,T=e.timers,C=e.toggleSort,E=e.updateColumnOrder,O=ZU.useState(!1),D=OH(O,2),M=D[0],A=D[1],I=ZU.useState(!1),P=OH(I,2),R=P[0],N=P[1],j=DY(),L=OH(m||[],2),F=L[0],B=L[1],U=o.className,H=SU(o,["className"]),Y=p.Tooltip||YU,z="none"!==_&&void 0!==_,W="none"!==_&&_,G=function(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?DU(n=OY(Object(i),!0)).call(n,(function(t){BU(e,t,i[t])})):uU?lU(e,uU(i)):DU(r=OY(Object(i))).call(r,(function(t){sU(e,t,cU(i,t))}))}return e}({classes:{root:j.sortLabelRoot},tabIndex:-1,active:z,hideSortIcon:!1},W?{direction:_}:{}),V=RH.useDrag({item:{type:"HEADER",colIndex:g,headCellRefs:f},begin:function(){return MH((function(){N(!1),A(!1),B(!0)}),0),null},end:function(){B(!1)},collect:function(e){return{opacity:e.isDragging()?1:0}}}),q=OH(V,3),Q=(q[0].opacity,q[1]),$=(q[2],function(e){var t=RH.useDrop({accept:"HEADER",drop:i,hover:function(t,n){return EY(yU({},e,{item:t,mon:n}))},collect:function(e){return{isOver:!!e.isOver(),canDrop:!!e.canDrop()}}}),n=OH(t,2),r=n[0],i=(r.isOver,r.canDrop,n[1]);return[i]}({drop:function(){A(!1),N(!1),B(!1)},index:g,headCellRefs:f,updateColumnOrder:E,columnOrder:d,columns:u,transitionTime:y.draggableColumns?y.draggableColumns.transitionTime:300,tableRef:S?S():null,tableId:k||"none",timers:T})),X=OH($,1)[0],K=WU((BU(n={},j.root,!0),BU(n,j.fixedHeader,y.fixedHeader),BU(n,"datatables-noprint",!b),BU(n,U,U),n));return JU.createElement(iH,fU({ref:function(e){X&&X(e),w&&w(g+1,s+1,e)},className:K,scope:"col",sortDirection:W,"data-colindex":g,"data-tableid":k,onMouseDown:function(){A(!1)}},H),kU(y)&&x?JU.createElement("span",{className:j.contentWrapper},JU.createElement(Y,{title:!F&&y.textLabels?y.textLabels.body.columnHeaderTooltip?y.textLabels.body.columnHeaderTooltip(l):y.textLabels.body.toolTip:"",placement:"bottom",open:M,onOpen:function(){return A(!F)},onClose:function(){return A(!1)},classes:{tooltip:j.tooltip,popper:j.mypopper}},JU.createElement(dH,{variant:"text",onKeyUp:function(e){return"Enter"===e.key&&C(g),!1},onClick:function(){C(g)},className:j.toolButton,"data-testid":"headcol-".concat(g),ref:t()?Q:null},JU.createElement("div",{className:j.sortAction},JU.createElement("div",{className:WU((BU(r={},j.data,!0),BU(r,j.sortActive,z),BU(r,j.dragCursor,t()),r))},a),JU.createElement("div",{className:j.sortAction},JU.createElement(IH,G))))),v&&JU.createElement(Y,{title:v},JU.createElement(AH,{className:z?j.hintIconWithSortIcon:j.hintIconAlone,fontSize:"small"}))):JU.createElement("div",{className:v?j.sortAction:null,ref:t()?Q:null},a,v&&JU.createElement(Y,{title:v,placement:"bottom-end",open:R,onOpen:function(){return A(!1),void N(!0)},onClose:function(){return N(!1)},classes:{tooltip:j.tooltip,popper:j.mypopper},enterDelay:300},JU.createElement(AH,{className:j.hintIconAlone,fontSize:"small"}))))};MY.propTypes={options:KU.object.isRequired,sortDirection:KU.oneOf(["asc","desc","none"]),toggleSort:KU.func.isRequired,sort:KU.bool.isRequired,hint:KU.string,print:KU.bool.isRequired,column:KU.object,components:KU.object};var AY=zU.makeStyles((function(){return{root:{}}}),{name:"MUIDataTableHeadRow"}),IY=function(e){var t=e.children,n=AY();return JU.createElement(oH,{className:WU(BU({},n.root,!0))},t)};function PY(e,t){var n,r=hU(e);return dU&&(n=dU(e),t&&(n=bU(n).call(n,(function(t){return cU(e,t).enumerable}))),r.push.apply(r,n)),r}function RY(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?DU(n=PY(Object(i),!0)).call(n,(function(t){BU(e,t,i[t])})):uU?lU(e,uU(i)):DU(r=PY(Object(i))).call(r,(function(t){sU(e,t,cU(i,t))}))}return e}IY.propTypes={children:KU.node};var NY=zU.makeStyles((function(e){return{main:{},responsiveStacked:BU({},e.breakpoints.down("sm"),{display:"none"}),responsiveStackedAlways:{display:"none"},responsiveSimple:BU({},e.breakpoints.down("xs"),{display:"none"})}}),{name:"MUIDataTableHead"}),jY=function(e){var t,n=e.columnOrder,r=void 0===n?null:n,i=e.columns,o=e.components,a=void 0===o?{}:o,s=e.count,l=e.data,u=e.draggableHeadCellRefs,c=e.expandedRows,d=e.options,h=e.selectedRows,p=e.selectRowUpdate,f=e.setCellRef,m=e.sortOrder,v=void 0===m?{}:m,g=e.tableRef,y=e.tableId,b=e.timers,w=e.toggleAllExpandableRows,x=e.toggleSort,_=e.updateColumnOrder,S=NY();function k(e){x(e)}function T(){p("head",null)}null===r&&(r=i?AU(i).call(i,(function(e,t){return t})):[]);var C=ZU.useState(!1),E=OH(C,2),O=E[0],D=E[1],M=h&&h.data.length||0,A=0<M&&M<s,I=0<M&&s<=M;if(!0===d.disableToolbarSelect||"none"===d.selectToolbarPlacement||"above"===d.selectToolbarPlacement)if(I){for(var P=0;P<l.length;P++)if(!h.lookup[l[P].dataIndex]){A=!(I=!1);break}}else s<M&&(A=!0);var R=AU(r).call(r,(function(e,t){return{column:i[e],index:e,colPos:t}}));return JU.createElement(DH,{className:WU((BU(t={},S.responsiveStacked,"vertical"===d.responsive||"stacked"===d.responsive||"stackedFullWidth"===d.responsive),BU(t,S.responsiveStackedAlways,"verticalAlways"===d.responsive),BU(t,S.responsiveSimple,"simple"===d.responsive),BU(t,S.main,!0),t))},JU.createElement(IY,null,JU.createElement(nY,{setHeadCellRef:f,onChange:gU(T).call(T,null),indeterminate:A,checked:I,isHeaderCell:!0,expandedRows:c,expandableRowsHeader:d.expandableRowsHeader,expandableOn:d.expandableRows,selectableOn:d.selectableRows,fixedHeader:d.fixedHeader,fixedSelectColumn:d.fixedSelectColumn,selectableRowsHeader:d.selectableRowsHeader,selectableRowsHideCheckboxes:d.selectableRowsHideCheckboxes,onExpand:w,isRowSelectable:!0,components:a}),AU(R).call(R,(function(e){var t=e.column,n=e.index,o=e.colPos;return"true"===t.display&&(t.customHeadRender?t.customHeadRender(RY({index:n},t),k,v):JU.createElement(MY,{cellHeaderProps:i[n].setCellHeaderProps&&i[n].setCellHeaderProps(RY({index:n},t))||{},key:n,index:n,colPosition:o,type:"cell",setCellRef:f,sort:kU(t),sortDirection:t.name===v.name?v.direction:"none",toggleSort:k,hint:t.hint,print:t.print,options:d,column:t,columns:i,updateColumnOrder:_,columnOrder:r,timers:b,draggingHook:[O,D],draggableHeadCellRefs:u,tableRef:g,tableId:y,components:a},t.customHeadLabelRender?t.customHeadLabelRender(RY({index:n,colPos:o},t)):t.label))}))))};function LY(e,t){var n,r=hU(e);return dU&&(n=dU(e),t&&(n=bU(n).call(n,(function(t){return cU(e,t).enumerable}))),r.push.apply(r,n)),r}function FY(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?DU(n=LY(Object(i),!0)).call(n,(function(t){BU(e,t,i[t])})):uU?lU(e,uU(i)):DU(r=LY(Object(i))).call(r,(function(t){sU(e,t,cU(i,t))}))}return e}function BY(e){var t=function(){if("undefined"==typeof Reflect||!pU)return!1;if(pU.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(pU(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r,i=FU(e);return r=t?(n=FU(this).constructor,pU(i,arguments,n)):i.apply(this,arguments),LU(this,r)}}function UY(e){for(var t=0,n=0,r=e.offsetParent;r&&(n=n+(r.offsetLeft||0)-(r.scrollLeft||0),r=r.offsetParent,!(1e3<++t)););return n}var HY=function(e){jU(n,e);var t=BY(n);function n(){var e,r;PU(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,_U(e=[this]).call(e,o)),BU(NU(r),"state",{resizeCoords:{},priorPosition:{},tableWidth:"100%",tableHeight:"100%"}),BU(NU(r),"handleResize",(function(){window.innerWidth!==r.windowWidth&&(r.windowWidth=window.innerWidth,r.setDividers())})),BU(NU(r),"setCellRefs",(function(e,t){r.cellsRef=e,r.tableRef=t,r.setDividers()})),BU(NU(r),"setDividers",(function(){var e=r.tableRef,t=e.getBoundingClientRect(),n=t.width,i=t.height,o=r.state.resizeCoords;for(var a in o)delete o[a];var s=UY(e),l=PH(r.cellsRef),u=bU(l).call(l,(function(e,t){return t+1<l.length}));DU(u).call(u,(function(e,t){var n,r=OH(e,2),i=r[0],a=r[1];a&&(n=((n=a.getBoundingClientRect().left)||0)-s,window.getComputedStyle(a,null),o[i]={left:n+a.offsetWidth})})),r.setState({tableWidth:n,tableHeight:i,resizeCoords:o},r.updateWidths)})),BU(NU(r),"updateWidths",(function(){var e,t=0,n=r.state,i=n.resizeCoords,o=n.tableWidth;DU(e=PH(i)).call(e,(function(e){var n=OH(e,2),i=n[0],a=n[1],s=Number((a.left-t)/o*100);"object"===OU(r.props.resizableColumns)&&r.props.resizableColumns.roundWidthPercentages&&(s=s.toFixed(2)),t=a.left;var l=r.cellsRef[i];l&&(l.style.width=s+"%")}))})),BU(NU(r),"onResizeStart",(function(e,t){var n=r.tableRef,i=n.style.width,o=0;n.style.width="1px";var a=PH(r.cellsRef);DU(a).call(a,(function(e,t){var n=OH(e,2),i=n[0],a=n[1],s=a?a.getBoundingClientRect():{width:0,left:0};r.minWidths[i]=s.width,o=Math.max(i,o)})),n.style.width=i,r.setState({isResize:!0,id:e,lastColumn:o})})),BU(NU(r),"onResizeMove",(function(e,t){function n(e){for(var t=e+1,n=0;void 0===v[t]&&n<20;)t++,n++;return v[t]}function i(e){for(var t=e-1;void 0===v[t]&&0<=t;)t--;return v[t]}var o,a,s,l,u,c,d,h,p,f=r.state,m=f.isResize,v=f.resizeCoords,g=f.lastColumn,y=r.minWidths[e],b=r.minWidths[function(e){for(var t=e+1,n=0;void 0===v[t]&&n<20;)t++,n++;return t}(TH(e,10))]||r.minWidths[e],w=TH(e,10),x=(PH(r.cellsRef),r.tableRef),_=x.getBoundingClientRect(),S=_.width,k=_.height,T=r.props.options.selectableRows,C=UY(x);m&&(o=t.clientX-C,a=function(e,t,n){return t-n<e?t-n:e},s=function(e,t){return e<t?t:e},l=function(e,t,r,i){return void 0!==n(r)&&e>n(r).left-i?n(r).left-i:e},u=function(e,t,n,r){return void 0!==i(n)&&e<i(n).left+r?i(n).left+r:e},d=function(e){return e===function(e){for(var t=e-1;void 0===v[t]&&0<=t;)t--;return t}(g)},(c=function(e,t){for(var n=1;!v[n]&&n<20;)n++;return"none"!==e&&0===t||"none"===e&&t===n})(T,w)&&d(w)?o=a(o=s(o,y),S,b):!c(T,w)&&d(w)?o=u(o=a(o,S,b),0,w,y):c(T,w)&&!d(w)?o=l(o=s(o,y),0,w,b):c(T,w)||d(w)||(o=l(o=u(o,0,w,y),0,w,b)),h=FY(FY({},v[e]),{},{left:o}),p=FY(FY({},v),{},BU({},e,h)),r.setState({resizeCoords:p,tableHeight:k},r.updateWidths))})),BU(NU(r),"onResizeEnd",(function(e,t){r.setState({isResize:!1,id:null})})),r}return RU(n,[{key:"componentDidMount",value:function(){var e=this;this.minWidths=[],this.windowWidth=null,this.props.setResizeable(this.setCellRefs),this.props.updateDividers((function(){return e.setState({updateCoords:!0},(function(){return e.updateWidths}))})),window.addEventListener("resize",this.handleResize,!1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.handleResize,!1)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.classes,i=n.tableId,o=this.state,a=o.id,s=o.isResize,l=o.resizeCoords,u=o.tableWidth,c=o.tableHeight;return JU.createElement("div",{className:r.root,style:{width:u}},AU(e=PH(l)).call(e,(function(e){var n,o,l,d=OH(e,2),h=d[0],p=d[1];return JU.createElement("div",{"data-divider-index":h,"data-tableid":i,"aria-hidden":"true",key:h,onMouseMove:gU(n=t.onResizeMove).call(n,null,h),onMouseUp:gU(o=t.onResizeEnd).call(o,null,h),style:{width:s&&a==h?u:"auto",position:"absolute",height:c-2,cursor:"ew-resize",zIndex:1e3}},JU.createElement("div",{"aria-hidden":"true",onMouseDown:gU(l=t.onResizeStart).call(l,null,h),className:r.resizer,style:{left:p.left}}))})))}}]),n}(JU.Component);BU(HY,"propTypes",{classes:KU.object});var YY=zU.withStyles({root:{position:"absolute"},resizer:{position:"absolute",width:"1px",height:"100%",left:"100px",cursor:"ew-resize",border:"0.1px solid rgba(224, 224, 224, 1)"}},{name:"MUIDataTableResize"})(HY),zY=function(e){e.className;var t=e.trigger,n=e.refExit,r=e.hide,i=e.content,o=SU(e,["className","trigger","refExit","hide","content"]),a=ZU.useState(!1),s=OH(a,2),l=s[0],u=s[1],c=ZU.useRef(null);function d(){u(!1)}ZU.useEffect((function(){l&&"boolean"==typeof r&&r&&u(!1)}),[r,l,u]);var h=o.classes.closeIcon;delete o.classes.closeIcon;var p={key:"content",onClick:function(e){var n;t.props.onClick&&t.props.onClick(),n=e,c.current=n.currentTarget,u(!0)}};return JU.createElement(JU.Fragment,null,JU.createElement("span",p,t),JU.createElement(NH,fU({elevation:2,open:l,TransitionProps:{onExited:function(){n&&n()}},onClose:d,anchorEl:c.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},o),JU.createElement(sH,{"aria-label":"Close",onClick:d,className:h,style:{position:"absolute",right:"4px",top:"4px",zIndex:"1000"}},JU.createElement(jH,null)),i))};zY.propTypes={refExit:KU.func,trigger:KU.node.isRequired,content:KU.node.isRequired,hide:KU.bool};var WY=zU.makeStyles((function(e){return{root:{padding:"16px 24px 16px 24px",fontFamily:"Roboto"},title:{marginLeft:"-7px",marginRight:"24px",fontSize:"14px",color:e.palette.text.secondary,textAlign:"left",fontWeight:500},formGroup:{marginTop:"8px"},formControl:{},checkbox:{padding:"0px",width:"32px",height:"32px"},checkboxRoot:{},checked:{},label:{fontSize:"15px",marginLeft:"8px",color:e.palette.text.primary}}}),{name:"MUIDataTableViewCol"}),GY=function(e){var t=e.columns,n=e.options,r=e.components,i=void 0===r?{}:r,o=e.onColumnUpdate,a=(e.updateColumns,WY()),s=n.textLabels.viewColumns,l=i.Checkbox||aH;return JU.createElement(hH,{component:"fieldset",className:a.root,"aria-label":s.titleAria},JU.createElement(tH,{variant:"caption",className:a.title},s.title),JU.createElement(fH,{className:a.formGroup},AU(t).call(t,(function(e,t){return"excluded"!==e.display&&!1!==e.viewColumns&&JU.createElement(pH,{key:t,classes:{root:a.formControl,label:a.label},control:JU.createElement(l,{color:"primary","data-description":"table-view-col",className:a.checkbox,classes:{root:a.checkboxRoot,checked:a.checked},onChange:function(){o(t)},checked:"true"===e.display,value:e.name}),label:e.label})}))))};GY.propTypes={columns:KU.array.isRequired,options:KU.object.isRequired,onColumnUpdate:KU.func,classes:KU.object};var VY=zU.makeStyles((function(e){return{main:{display:"flex",flex:"1 0 auto"},searchIcon:{color:e.palette.text.secondary,marginTop:"10px",marginRight:"8px"},searchText:{flex:"0.8 0"},clearIcon:{"&:hover":{color:e.palette.error.main}}}}),{name:"MUIDataTableSearch"}),qY=function(e){var t=e.options,n=e.searchText,r=e.onSearch,i=e.onHide,o=VY(),a=t.searchAlwaysOpen?"hidden":"visible";return JU.createElement(LH,{appear:!0,in:!0,timeout:300},JU.createElement("div",{className:o.main},JU.createElement(FH,{className:o.searchIcon}),JU.createElement(xH,fU({className:o.searchText,autoFocus:!0,InputProps:{"data-test-id":t.textLabels.toolbar.search},inputProps:{"aria-label":t.textLabels.toolbar.search},value:n||"",onKeyDown:function(e){"Escape"===e.key&&i()},onChange:function(e){r(e.target.value)},fullWidth:!0,placeholder:t.searchPlaceholder},t.searchProps?t.searchProps:{})),JU.createElement(sH,{className:o.clearIcon,style:{visibility:a},onClick:i},JU.createElement(BH,null))))};function QY(e){var t=function(){if("undefined"==typeof Reflect||!pU)return!1;if(pU.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(pU(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r,i=FU(e);return r=t?(n=FU(this).constructor,pU(i,arguments,n)):i.apply(this,arguments),LU(this,r)}}var $Y="scrollFullHeightFullWidth",XY=function(e){jU(n,e);var t=QY(n);function n(){var e,r;PU(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,_U(e=[this]).call(e,o)),BU(NU(r),"state",{iconActive:null,showSearch:Boolean(r.props.searchText||r.props.options.searchText||r.props.options.searchOpen||r.props.options.searchAlwaysOpen),searchText:r.props.searchText||null}),BU(NU(r),"handleCSVDownload",(function(){var e,t=r.props,n=t.data,i=t.displayData,o=t.columns,a=t.options,s=t.columnOrder,l=[],u=[],c=EU(s)?rH(s).call(s,0):[];0===c.length&&(c=AU(o).call(o,(function(e,t){return t}))),DU(n).call(n,(function(e){var t={index:e.index,data:[]};DU(c).call(c,(function(n){t.data.push(e.data[n])})),l.push(t)})),DU(c).call(c,(function(e){u.push(o[e])})),a.downloadOptions&&a.downloadOptions.filterOptions&&(a.downloadOptions.filterOptions.useDisplayedRowsOnly&&(e=AU(i).call(i,(function(e,t){var r,i=-1;return e.index=t,{data:AU(r=e.data).call(r,(function(t){i+=1;var r="object"!==OU(t)||null===t||EU(t)?t:qU(n,(function(t){return t.index===e.dataIndex})).data[i];return"function"==typeof r?qU(n,(function(t){return t.index===e.dataIndex})).data[i]:r}))}})),l=[],DU(e).call(e,(function(e){var t={index:e.index,data:[]};DU(c).call(c,(function(n){t.data.push(e.data[n])})),l.push(t)}))),a.downloadOptions.filterOptions.useDisplayedColumnsOnly&&(u=bU(u).call(u,(function(e){return"true"===e.display})),l=AU(l).call(l,(function(e){var t;return e.data=bU(t=e.data).call(t,(function(e,t){return"true"===o[c[t]].display})),e})))),cY(u,l,a,uY)})),BU(NU(r),"setActiveIcon",(function(e){r.setState((function(t){return{showSearch:r.isSearchShown(e),iconActive:e,prevIconActive:t.iconActive}}),(function(){var e=r.state,t=e.iconActive,n=e.prevIconActive;"filter"===t&&(r.props.setTableAction("onFilterDialogOpen"),r.props.options.onFilterDialogOpen&&r.props.options.onFilterDialogOpen()),void 0===t&&"filter"===n&&(r.props.setTableAction("onFilterDialogClose"),r.props.options.onFilterDialogClose&&r.props.options.onFilterDialogClose())}))})),BU(NU(r),"isSearchShown",(function(e){if(r.props.options.searchAlwaysOpen)return!0;var t,n=!1;return r.state.showSearch?n=!!r.state.searchText||(t=r.props.options.onSearchClose,r.props.setTableAction("onSearchClose"),t&&t(),!1):"search"===e&&(n=r.showSearch()),n})),BU(NU(r),"getActiveIcon",(function(e,t){var n,i,o,a=r.state.iconActive===t;return"search"===t&&(i=(n=r.state).showSearch,o=n.searchText,a=a||i||o),a?e.iconActive:e.icon})),BU(NU(r),"showSearch",(function(){return r.props.setTableAction("onSearchOpen"),r.props.options.onSearchOpen&&r.props.options.onSearchOpen(),!0})),BU(NU(r),"hideSearch",(function(){var e=r.props.options.onSearchClose;r.props.setTableAction("onSearchClose"),e&&e(),r.props.searchClose(),r.setState((function(){return{iconActive:null,showSearch:!1,searchText:null}}))})),BU(NU(r),"handleSearch",(function(e){r.setState({searchText:e}),r.props.searchTextUpdate(e)})),BU(NU(r),"handleSearchIconClick",(function(){var e=r.state,t=e.showSearch,n=e.searchText;t&&!n?r.hideSearch():r.setActiveIcon("search")})),r}return RU(n,[{key:"componentDidUpdate",value:function(e){this.props.searchText!==e.searchText&&this.setState({searchText:this.props.searchText})}},{key:"render",value:function(){var e,t,n,r=this,i=this.props,o=i.data,a=i.options,s=i.classes,l=i.columns,u=i.filterData,c=i.filterList,d=i.filterUpdate,h=i.resetFilters,p=i.toggleViewColumn,f=i.updateColumns,m=i.title,v=i.components,g=void 0===v?{}:v,y=i.updateFilterByType,b=g.icons,w=void 0===b?{}:b,x=g.Tooltip||YU,_=g.TableViewCol||GY,S=g.TableFilter||vY,k=w.SearchIcon||FH,T=w.DownloadIcon||UH,C=w.PrintIcon||HH,E=w.ViewColumnIcon||YH,O=w.FilterIcon||zH,D=a.textLabels.toolbar,M=D.search,A=D.downloadCsv,I=D.print,P=D.viewColumns,R=D.filterTable,N=this.state,j=N.showSearch,L=N.searchText;return JU.createElement(EH,{className:a.responsive!==$Y?s.root:s.fullWidthRoot,role:"toolbar","aria-label":"Table Toolbar"},JU.createElement("div",{className:a.responsive!==$Y?s.left:s.fullWidthLeft},!0===j?a.customSearchRender?a.customSearchRender(L,this.handleSearch,this.hideSearch,a):JU.createElement(qY,{searchText:L,onSearch:this.handleSearch,onHide:this.hideSearch,options:a}):"string"!=typeof m?m:JU.createElement("div",{className:s.titleRoot,"aria-hidden":"true"},JU.createElement(tH,{variant:"h6",className:a.responsive!==$Y?s.titleText:s.fullWidthTitleText},m))),JU.createElement("div",{className:a.responsive!==$Y?s.actions:s.fullWidthActions},!(!1===a.search||"false"===a.search||!0===a.searchAlwaysOpen)&&JU.createElement(x,{title:M,disableFocusListener:!0},JU.createElement(sH,{"aria-label":M,"data-testid":M+"-iconButton",ref:function(e){return r.searchButton=e},classes:{root:this.getActiveIcon(s,"search")},disabled:"disabled"===a.search,onClick:this.handleSearchIconClick},JU.createElement(k,null))),!(!1===a.download||"false"===a.download)&&JU.createElement(x,{title:A},JU.createElement(sH,{"data-testid":A.replace(/\s/g,"")+"-iconButton","aria-label":A,classes:{root:s.icon},disabled:"disabled"===a.download,onClick:this.handleCSVDownload},JU.createElement(T,null))),!(!1===a.print||"false"===a.print)&&JU.createElement("span",null,JU.createElement(GH,{content:function(){return r.props.tableRef()}},JU.createElement(WH.PrintContextConsumer,null,(function(e){var t=e.handlePrint;return JU.createElement("span",null,JU.createElement(x,{title:I},JU.createElement(sH,{"data-testid":I+"-iconButton","aria-label":I,disabled:"disabled"===a.print,onClick:t,classes:{root:s.icon}},JU.createElement(C,null))))})))),!(!1===a.viewColumns||"false"===a.viewColumns)&&JU.createElement(zY,{refExit:gU(e=this.setActiveIcon).call(e,null),classes:{closeIcon:s.filterCloseIcon},hide:"disabled"===a.viewColumns,trigger:JU.createElement(x,{title:P,disableFocusListener:!0},JU.createElement(sH,{"data-testid":P+"-iconButton","aria-label":P,classes:{root:this.getActiveIcon(s,"viewcolumns")},disabled:"disabled"===a.viewColumns,onClick:gU(t=this.setActiveIcon).call(t,null,"viewcolumns")},JU.createElement(E,null))),content:JU.createElement(_,{data:o,columns:l,options:a,onColumnUpdate:p,updateColumns:f,components:g})}),!(!1===bU(a)||"false"===bU(a))&&JU.createElement(zY,{refExit:function(){r.setState({hideFilterPopover:!1}),r.setActiveIcon()},hide:this.state.hideFilterPopover||"disabled"===bU(a),classes:{paper:s.filterPaper,closeIcon:s.filterCloseIcon},trigger:JU.createElement(x,{title:R,disableFocusListener:!0},JU.createElement(sH,{"data-testid":R+"-iconButton","aria-label":R,classes:{root:this.getActiveIcon(s,"filter")},disabled:"disabled"===bU(a),onClick:gU(n=this.setActiveIcon).call(n,null,"filter")},JU.createElement(O,null))),content:JU.createElement(S,{customFooter:a.customFilterDialogFooter,columns:l,options:a,filterList:c,filterData:u,onFilterUpdate:d,onFilterReset:h,handleClose:function(){r.setState({hideFilterPopover:!0})},updateFilterByType:y,components:g})}),a.customToolbar&&a.customToolbar({displayData:this.props.displayData})))}}]),n}(JU.Component),KY=zU.withStyles((function(e){var t={root:{"@media print":{display:"none"}},fullWidthRoot:{},left:{flex:"1 1 auto"},fullWidthLeft:{flex:"1 1 auto"},actions:{flex:"1 1 auto",textAlign:"right"},fullWidthActions:{flex:"1 1 auto",textAlign:"right"},titleRoot:{},titleText:{},fullWidthTitleText:{textAlign:"left"},icon:{"&:hover":{color:e.palette.primary.main}},iconActive:{color:e.palette.primary.main},filterPaper:{maxWidth:"50%"},filterCloseIcon:{position:"absolute",right:0,top:0,zIndex:100},searchIcon:{display:"inline-flex",marginTop:"10px",marginRight:"8px"}};return BU(t,e.breakpoints.down("sm"),{titleRoot:{},titleText:{fontSize:"16px"},spacer:{display:"none"},left:{padding:"8px 0px"},actions:{textAlign:"right"}}),BU(t,e.breakpoints.down("xs"),{root:{display:"block","@media print":{display:"none !important"}},left:{padding:"8px 0px 0px 0px"},titleText:{textAlign:"center"},actions:{textAlign:"center"}}),BU(t,"@media screen and (max-width: 480px)",{}),t}),{name:"MUIDataTableToolbar"})(XY);function ZY(e){var t=function(){if("undefined"==typeof Reflect||!pU)return!1;if(pU.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(pU(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r,i=FU(e);return r=t?(n=FU(this).constructor,pU(i,arguments,n)):i.apply(this,arguments),LU(this,r)}}var JY=function(e){jU(n,e);var t=ZY(n);function n(){var e,r;PU(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,_U(e=[this]).call(e,o)),BU(NU(r),"handleCustomSelectedRows",(function(e){if(!EU(e))throw new TypeError('"selectedRows" must be an "array", but it\'s "'.concat(OU(e),'"'));if(vU(e).call(e,(function(e){return"number"!=typeof e})))throw new TypeError('Array "selectedRows" must contain only numbers');var t=r.props.options;if(1<e.length&&"single"===t.selectableRows)throw new Error('Can not select more than one row when "selectableRows" is "single"');r.props.selectRowUpdate("custom",e)})),r}return RU(n,[{key:"render",value:function(){var e=this.props,t=e.classes,n=e.onRowsDelete,r=e.selectedRows,i=e.options,o=e.displayData,a=e.components,s=void 0===a?{}:a,l=i.textLabels.selectedRows,u=s.Tooltip||YU;return JU.createElement(UU,{className:t.root},JU.createElement("div",null,JU.createElement(tH,{variant:"subtitle1",className:t.title},r.data.length," ",l.text)),i.customToolbarSelect?i.customToolbarSelect(r,o,this.handleCustomSelectedRows):JU.createElement(u,{title:l.delete},JU.createElement(sH,{className:t.iconButton,onClick:n,"aria-label":l.deleteAria},JU.createElement(VH,{className:t.deleteIcon}))))}}]),n}(JU.Component);BU(JY,"propTypes",{options:KU.object.isRequired,rowSelected:KU.bool,onRowsDelete:KU.func,classes:KU.object});var ez=zU.withStyles((function(e){return{root:{backgroundColor:e.palette.background.default,flex:"1 1 100%",display:"flex",position:"relative",zIndex:120,justifyContent:"space-between",alignItems:"center",paddingTop:"function"==typeof e.spacing?e.spacing(1):e.spacing.unit,paddingBottom:"function"==typeof e.spacing?e.spacing(1):e.spacing.unit,"@media print":{display:"none"}},title:{paddingLeft:"26px"},iconButton:{marginRight:"24px"},deleteIcon:{}}}),{name:"MUIDataTableToolbarSelect"})(JY),tz="undefined"!=typeof window&&void 0!==window.document;function nz(e,t){var n,r=hU(e);return dU&&(n=dU(e),t&&(n=bU(n).call(n,(function(t){return cU(e,t).enumerable}))),r.push.apply(r,n)),r}function rz(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?DU(n=nz(Object(i),!0)).call(n,(function(t){BU(e,t,i[t])})):uU?lU(e,uU(i)):DU(r=nz(Object(i))).call(r,(function(t){sU(e,t,cU(i,t))}))}return e}function iz(e){var t=function(){if("undefined"==typeof Reflect||!pU)return!1;if(pU.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(pU(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r,i=FU(e);return r=t?(n=FU(this).constructor,pU(i,arguments,n)):i.apply(this,arguments),LU(this,r)}}var oz=1,az=2,sz=["title","filter","search","print","download","viewColumns","customToolbar"],lz={REPLACE:"replace",ABOVE:"above",NONE:"none"},uz=function(e){jU(n,e);var t=iz(n);function n(e){var r,i;PU(this,n),i=t.call(this,e),BU(NU(i),"getDefaultOptions",(function(){return{caseSensitive:!1,consoleWarnings:!0,disableToolbarSelect:!1,download:!0,downloadOptions:{filename:"tableDownload.csv",separator:","},draggableColumns:{enabled:!1,transitionTime:300},elevation:4,enableNestedDataAccess:"",expandableRows:!1,expandableRowsHeader:!0,expandableRowsOnClick:!1,filter:!0,filterArrayFullMatch:!0,filterType:"dropdown",fixedHeader:!0,fixedSelectColumn:!0,pagination:!0,print:!0,resizableColumns:!1,responsive:"vertical",rowHover:!0,rowsPerPageOptions:[10,15,100],search:!0,selectableRows:"multiple",selectableRowsHideCheckboxes:!1,selectableRowsOnClick:!1,selectableRowsHeader:!0,serverSide:!1,serverSideFilterList:null,setTableProps:function(){return{}},sort:!0,sortFilterList:!0,tableBodyHeight:"auto",tableBodyMaxHeight:null,sortOrder:{},textLabels:{body:{noMatch:"Sorry, no matching records found",toolTip:"Sort"},pagination:{next:"Next Page",previous:"Previous Page",rowsPerPage:"Rows per page:",displayRows:"of",jumpToPage:"Jump to Page:"},toolbar:{search:"Search",downloadCsv:"Download CSV",print:"Print",viewColumns:"View Columns",filterTable:"Filter Table"},filter:{all:"All",title:"FILTERS",reset:"RESET"},viewColumns:{title:"Show Columns",titleAria:"Show/Hide Table Columns"},selectedRows:{text:"row(s) selected",delete:"Delete",deleteAria:"Delete Selected Rows"}},viewColumns:!0,selectToolbarPlacement:lz.REPLACE}})),BU(NU(i),"warnDep",(function(e,t){!function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n="function"==typeof t?t:console.warn;t&&n("Deprecation Notice: ".concat(e))}(e,i.options.consoleWarnings)})),BU(NU(i),"warnInfo",(function(e,t){oY(e,i.options.consoleWarnings)})),BU(NU(i),"handleOptionDeprecation",(function(e){var t,n,r,o;"boolean"==typeof i.options.selectableRows&&(i.warnDep("Using a boolean for selectableRows has been deprecated. Please use string option: multiple | single | none"),i.options.selectableRows=i.options.selectableRows?"multiple":"none"),-1===IU(t=["standard","vertical","verticalAlways","simple"]).call(t,i.options.responsive)&&(-1!==IU(r=["scrollMaxHeight","scrollFullHeight","stacked","stackedFullWidth","scrollFullHeightFullWidth","scroll"]).call(r,i.options.responsive)?i.warnDep(i.options.responsive+" has been deprecated, but will still work in version 3.x. Please use string option: standard | vertical | simple. More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md"):i.warnInfo(i.options.responsive+" is not recognized as a valid input for responsive option. Please use string option: standard | vertical | simple. More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md")),i.options.onRowsSelect&&i.warnDep("onRowsSelect has been renamed onRowSelectionChange. More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md"),i.options.onRowsExpand&&i.warnDep("onRowsExpand has been renamed onRowExpansionChange. More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md"),i.options.fixedHeaderOptions&&(void 0!==i.options.fixedHeaderOptions.yAxis&&void 0===i.options.fixedHeader&&(i.options.fixedHeader=i.options.fixedHeaderOptions.yAxis),void 0!==i.options.fixedHeaderOptions.xAxis&&void 0===i.options.fixedSelectColumn&&(i.options.fixedSelectColumn=i.options.fixedHeaderOptions.xAxis),i.warnDep("fixedHeaderOptions will still work but has been deprecated in favor of fixedHeader and fixedSelectColumn. More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md")),i.options.serverSideFilterList&&i.warnDep("serverSideFilterList will still work but has been deprecated in favor of the confirmFilters option. See this example for details: https://github.com/gregnb/mui-datatables/blob/master/examples/serverside-filters/index.js More info here: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md"),AU(n=e.columns).call(n,(function(e){e.options&&e.options.customFilterListRender&&i.warnDep("The customFilterListRender option has been deprecated. It is being replaced by customFilterListOptions.render (Specify customFilterListOptions: { render: Function } in column options.)")})),!0===i.options.disableToolbarSelect&&i.warnDep('disableToolbarSelect has been deprecated but will still work in version 3.x. It is being replaced by "selectToolbarPlacement"="none". More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md'),MU&&-1===IU(o=MU(lz)).call(o,i.options.selectToolbarPlacement)&&i.warnDep("Invalid option value for selectToolbarPlacement. Please check the documentation: https://github.com/gregnb/mui-datatables#options")})),BU(NU(i),"setTableAction",(function(e){"function"==typeof i.options.onTableChange&&i.options.onTableChange(e,i.state),i.options.storageKey&&function(e,t){t.selectedRows,t.data,t.displayData;var n=SU(t,["selectedRows","data","displayData"]);window.localStorage.setItem(e,QH(n))}(i.options.storageKey,i.state)})),BU(NU(i),"setTableInit",(function(e){"function"==typeof i.options.onTableInit&&i.options.onTableInit(e,i.state)})),BU(NU(i),"setHeadCellRef",(function(e,t,n){i.draggableHeadCellRefs[e]=n,i.resizeHeadCellRefs[t]=n})),BU(NU(i),"getTableContentRef",(function(){return i.tableContent.current})),BU(NU(i),"buildColumns",(function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=2<arguments.length?arguments[2]:void 0,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:[],o=[],a=[],s=[],l=[];return DU(e).call(e,(function(e,n){var r={display:"true",empty:!1,filter:!0,sort:!0,print:!0,searchable:!0,download:!0,viewColumns:!0,sortCompare:null,sortThirdClickReset:!1,sortDescFirst:!1};l.push(n);var u=rz({},e.options);r="object"===OU(e)?(u&&(void 0!==u.display&&(u.display=u.display.toString()),null!==u.sortDirection&&!u.sortDirection||i.warnDep("The sortDirection column field has been deprecated. Please use the sortOrder option on the options object. More info: https://github.com/gregnb/mui-datatables/tree/master/docs/v2_to_v3_guide.md")),void 0===u.display&&t[n]&&t[n].name===e.name&&t[n].display&&(u.display=t[n].display),rz(rz({name:e.name,label:e.label?e.label:e.name},r),u)):(t[n]&&t[n].display&&(u.display=t[n].display),rz(rz(rz({},r),u),{},{name:e,label:e}));o.push(r),a[n]=[],s[n]=[]})),EU(n)?l=n:EU(r)&&EU(e)&&EU(t)&&e.length===t.length&&(l=r),{columns:o,filterData:a,filterList:s,columnOrder:l}})),BU(NU(i),"transformData",(function(e,t){var n=i.options.enableNestedDataAccess;return EU(t[0])?AU(t).call(t,(function(t){var n=-1;return AU(e).call(e,(function(e){return e.empty||n++,e.empty?void 0:t[n]}))})):AU(t).call(t,(function(t){return AU(e).call(e,(function(e){return r=t,i=e.name,CU(o=n?i.split(n):i.split()).call(o,(function(e,t){return e?e[t]:void 0}),r);var r,i,o}))}))})),BU(NU(i),"hasSearchText",(function(e,t,n){var r=e.toString(),i=t.toString();return n||(i=i.toLowerCase(),r=r.toLowerCase()),0<=IU(r).call(r,i)})),BU(NU(i),"updateDataCol",(function(e,t,n){i.setState((function(r){var o,a,s,l,u=VU(r.data),c=VU(r.filterData),d=i.getTableMeta(e,t,e,r.columns[t],r.data,r,r.data),h=r.columns[t].customBodyRender(n,d),p=JU.isValidElement(h)&&h.props.value?h.props.value:r.data[e][t],f=IU(o=c[t]).call(o,p);return TU(a=c[t]).call(a,f,1,p),u[e].data[t]=n,i.options.sortFilterList&&(l=sY(),kU(s=c[t]).call(s,l)),{data:u,filterData:c,displayData:i.getDisplayData(r.columns,u,r.filterList,r.searchText,null,i.props)}}))})),BU(NU(i),"getTableMeta",(function(e,t,n,r,i,o,a){return o.columns,o.data,o.displayData,o.filterData,{rowIndex:e,columnIndex:t,columnData:r,rowData:n,tableData:i,tableState:SU(o,["columns","data","displayData","filterData"]),currentTableData:a}})),BU(NU(i),"toggleViewColumn",(function(e){i.setState((function(t){var n=VU(t.columns);return n[e].display="true"===n[e].display?"false":"true",{columns:n}}),(function(){i.setTableAction("viewColumnsChange");var t=i.options.onViewColumnsChange||i.options.onColumnViewChange;t&&t(i.state.columns[e].name,"true"===i.state.columns[e].display?"add":"remove")}))})),BU(NU(i),"updateColumns",(function(e){i.setState((function(t){return{columns:e}}),(function(){i.setTableAction("viewColumnsChange");var t=i.options.onViewColumnsChange||i.options.onColumnViewChange;t&&t(null,"update",e)}))})),BU(NU(i),"toggleSortColumn",(function(e){i.setState((function(t){var n,r,o=VU(t.columns),a=t.data,s=o[e].sortDescFirst?"desc":"asc",l=["asc","desc"];o[e].sortDescFirst&&(l=["desc","asc"]),o[e].sortThirdClickReset&&l.push("none"),o[e].name!==i.state.sortOrder.name||-1!==(r=IU(l).call(l,i.state.sortOrder.direction))&&(++r>=l.length&&(r=0),s=l[r]);var u,c={name:o[e].name,direction:s},d=i.getSortDirectionLabel(c),h={columns:o,announceText:_U(n="Table now sorted by ".concat(o[e].name," : ")).call(n,d),activeColumn:e};return i.options.serverSide?rz(rz({},h),{},{data:t.data,displayData:t.displayData,selectedRows:t.selectedRows,sortOrder:c}):(u=i.sortTable(a,e,s,o[e].sortCompare),rz(rz({},h),{},{data:u.data,displayData:i.getDisplayData(o,u.data,t.filterList,t.searchText,null,i.props),selectedRows:u.selectedRows,sortOrder:c,previousSelectedRow:null}))}),(function(){i.setTableAction("sort"),i.options.onColumnSortChange&&i.options.onColumnSortChange(i.state.sortOrder.name,i.state.sortOrder.direction)}))})),BU(NU(i),"changeRowsPerPage",(function(e){var t=i.options.count||i.state.displayData.length;i.setState((function(){return{rowsPerPage:e,page:aY(t,e,i.state.page)}}),(function(){i.setTableAction("changeRowsPerPage"),i.options.onChangeRowsPerPage&&i.options.onChangeRowsPerPage(i.state.rowsPerPage)}))})),BU(NU(i),"changePage",(function(e){i.setState((function(){return{page:e}}),(function(){i.setTableAction("changePage"),i.options.onChangePage&&i.options.onChangePage(i.state.page)}))})),BU(NU(i),"searchClose",(function(){i.setState((function(e){return{searchText:null,displayData:i.options.serverSide?e.displayData:i.getDisplayData(e.columns,e.data,e.filterList,null,null,i.props)}}),(function(){i.setTableAction("search"),i.options.onSearchChange&&i.options.onSearchChange(i.state.searchText)}))})),BU(NU(i),"searchTextUpdate",(function(e){i.setState((function(t){return{searchText:e&&e.length?e:null,page:0,displayData:i.options.serverSide?t.displayData:i.getDisplayData(t.columns,t.data,t.filterList,e,null,i.props)}}),(function(){i.setTableAction("search"),i.options.onSearchChange&&i.options.onSearchChange(i.state.searchText)}))})),BU(NU(i),"resetFilters",(function(){i.setState((function(e){var t,n=AU(t=e.columns).call(t,(function(){return[]}));return{filterList:n,displayData:i.options.serverSide?e.displayData:i.getDisplayData(e.columns,e.data,n,e.searchText,null,i.props)}}),(function(){i.setTableAction("resetFilters"),i.options.onFilterChange&&i.options.onFilterChange(null,i.state.filterList,"reset",null)}))})),BU(NU(i),"updateFilterByType",(function(e,t,n,r,i){var o,a,s,l=xU(o=e[t]).call(o,(function(e){return QU(e,n)}));switch(r){case"checkbox":0<=l?TU(a=e[t]).call(a,l,1):e[t].push(n);break;case"chip":0<=l?TU(s=e[t]).call(s,l,1):e[t].push(n);break;case"multiselect":e[t]=""===n?[]:n;break;case"dropdown":e[t]=n;break;case"custom":i?e=i(e,l,t):e[t]=n;break;default:e[t]=0<=l||""===n?[]:[n]}})),BU(NU(i),"filterUpdate",(function(e,t,n,r,o,a){i.setState((function(n){var a=VU(n.filterList);return i.updateFilterByType(a,e,t,r,o),{page:0,filterList:a,displayData:i.options.serverSide?n.displayData:i.getDisplayData(n.columns,n.data,a,n.searchText,null,i.props),previousSelectedRow:null}}),(function(){i.setTableAction("filterChange"),i.options.onFilterChange&&i.options.onFilterChange(n,i.state.filterList,r,e,i.state.displayData),a&&a(i.state.filterList)}))})),BU(NU(i),"toggleAllExpandableRows",(function(){var e=wU(i.state.expandedRows.data),t=i.options.isRowExpandable,n=[];if(0<e.length)for(var r=e.length-1;0<=r;r--){var o=e[r];(!t||t&&t(o.dataIndex,i.state.expandedRows))&&n.push(TU(e).call(e,r,1))}else for(var a=0;a<i.state.data.length;a++){var s,l=i.state.data[a];(!t||t&&t(l.dataIndex,i.state.expandedRows))&&!0!==i.state.expandedRows.lookup[l.index]&&(s={index:a,dataIndex:l.index},e.push(s),n.push(s))}i.setState({expandedRows:{lookup:rY(e),data:e}},(function(){var e;i.setTableAction("expandRow"),i.options.onRowExpansionChange&&i.options.onRowExpansionChange(n,i.state.expandedRows.data,AU(e=i.state.expandedRows.data).call(e,(function(e){return e.dataIndex})))}))})),BU(NU(i),"areAllRowsExpanded",(function(){return i.state.expandedRows.data.length===i.state.data.length})),BU(NU(i),"updateColumnOrder",(function(e,t,n){i.setState((function(t){return{columnOrder:e}}),(function(){i.setTableAction("columnOrderChange"),i.options.onColumnOrderChange&&i.options.onColumnOrderChange(i.state.columnOrder,t,n)}))})),BU(NU(i),"selectRowDelete",(function(){var e=i.state,t=e.selectedRows,n=e.data,r=e.filterList,o=rY(t.data),a=bU(n).call(n,(function(e){var t=e.index;return!o[t]}));i.options.onRowsDelete&&!1===i.options.onRowsDelete(t,AU(a).call(a,(function(e){return e.data})))||i.setTableData({columns:i.props.columns,data:a,options:{filterList:r}},az,!0,(function(){i.setTableAction("rowDelete")}))})),BU(NU(i),"toggleExpandRow",(function(e){for(var t=e.dataIndex,n=i.options.isRowExpandable,r=i.state.expandedRows,o=wU(r.data),a=!1,s=!1,l=[],u=0;u<o.length;u++)if(o[u].dataIndex===t){a=!0;break}a?(n&&n(t,r)||!n)&&(l=TU(o).call(o,u,1),s=!0):(n&&n(t,r)||!n)&&o.push(e),i.setState({curExpandedRows:s?l:[e],expandedRows:{lookup:rY(o),data:o}},(function(){i.setTableAction("rowExpansionChange"),(i.options.onRowExpansionChange||i.options.onRowsExpand)&&(i.options.onRowExpansionChange||i.options.onRowsExpand)(i.state.curExpandedRows,i.state.expandedRows.data)}))})),BU(NU(i),"selectRowUpdate",(function(e,t){var n,r,o,a,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],l=i.options.selectableRows;"none"!==l&&("head"===e?(n=i.options.isRowSelectable,i.setState((function(e){var t,r=e.displayData,o=e.selectedRows,a=e.selectedRows.data.length,s=a===r.length||a<r.length&&0<a,l=CU(r).call(r,(function(e,t,i){return(!n||n(r[i].dataIndex,o))&&e.push({index:i,dataIndex:r[i].dataIndex}),e}),[]),u=wU(l),c=rY(u);if(i.options.selectToolbarPlacement===lz.NONE)if(a>r.length)s=!0;else for(var d=0;d<r.length;d++)c[r[d].dataIndex]||(s=!0);return s&&(c=rY(u=bU(t=e.selectedRows.data).call(t,(function(e){var t=e.dataIndex;return!c[t]})))),{curSelectedRows:u,selectedRows:{data:u,lookup:c},previousSelectedRow:null}}),(function(){var e,t;i.setTableAction("rowSelectionChange"),i.options.onRowSelectionChange?i.options.onRowSelectionChange(i.state.curSelectedRows,i.state.selectedRows.data,AU(e=i.state.selectedRows.data).call(e,(function(e){return e.dataIndex}))):i.options.onRowsSelect&&i.options.onRowsSelect(i.state.curSelectedRows,i.state.selectedRows.data,AU(t=i.state.selectedRows.data).call(t,(function(e){return e.dataIndex})))}))):"cell"===e?i.setState((function(e){for(var n,r=t.dataIndex,i=wU(e.selectedRows.data),o=-1,a=0;a<i.length;a++)if(i[a].dataIndex===r){o=a;break}if(0<=o){if(TU(i).call(i,o,1),0<s.length)for(var u=rY(s),c=i.length-1;0<=c;c--)u[i[c].dataIndex]&&TU(i).call(i,c,1)}else"single"===l?i=[t]:(i.push(t),0<s.length&&(n=rY(i),DU(s).call(s,(function(e){n[e.dataIndex]||i.push(e)}))));return{selectedRows:{lookup:rY(i),data:i},previousSelectedRow:t}}),(function(){var e,n;i.setTableAction("rowSelectionChange"),i.options.onRowSelectionChange?i.options.onRowSelectionChange([t],i.state.selectedRows.data,AU(e=i.state.selectedRows.data).call(e,(function(e){return e.dataIndex}))):i.options.onRowsSelect&&i.options.onRowsSelect([t],i.state.selectedRows.data,AU(n=i.state.selectedRows.data).call(n,(function(e){return e.dataIndex})))})):"custom"===e&&(r=i.state.displayData,a=rY(o=AU(t).call(t,(function(e){return{index:e,dataIndex:r[e].dataIndex}}))),i.setState({selectedRows:{data:o,lookup:a},previousSelectedRow:null},(function(){var e,t;i.setTableAction("rowSelectionChange"),i.options.onRowSelectionChange?i.options.onRowSelectionChange(i.state.selectedRows.data,i.state.selectedRows.data,AU(e=i.state.selectedRows.data).call(e,(function(e){return e.dataIndex}))):i.options.onRowsSelect&&i.options.onRowsSelect(i.state.selectedRows.data,i.state.selectedRows.data,AU(t=i.state.selectedRows.data).call(t,(function(e){return e.dataIndex})))}))))})),i.tableRef=JU.createRef(),i.tableContent=JU.createRef(),i.draggableHeadCellRefs={},i.resizeHeadCellRefs={},i.timers={},i.setHeadResizeable=function(){},i.updateDividers=function(){},i.mergeDefaultOptions(e);var o=function(e){if(tz)return JSON.parse(window.localStorage.getItem(e));void 0===e||console.warn("storageKey support only on browser")}(e.options.storageKey);return i.state=yU({activeColumn:null,announceText:null,count:0,columns:[],expandedRows:{data:[],lookup:{}},data:[],displayData:[],filterData:[],filterList:[],page:0,previousSelectedRow:null,rowsPerPage:10,searchProps:{},searchText:null,selectedRows:{data:[],lookup:{}},showResponsive:!1,sortOrder:{}},o||i.getInitTableOptions()),i.setTableData=gU(r=i.setTableData).call(r,NU(i)),i.setTableData(e,oz,!0,null,!0),i}return RU(n,[{key:"componentDidMount",value:function(){this.setHeadResizeable(this.resizeHeadCellRefs,this.tableRef),this.props.options.searchText&&!this.props.options.serverSide&&this.setState({page:0}),this.setTableInit("tableInitialized")}},{key:"componentDidUpdate",value:function(e){var t,n=this;this.props.data===e.data&&this.props.columns===e.columns&&this.props.options===e.options||(this.updateOptions(this.options,this.props),t=this.props.data!==e.data,this.props.data&&e.data&&(t=t&&this.props.data.length===e.data.length),this.setTableData(this.props,oz,t,(function(){n.setTableAction("propsUpdate")}))),this.props.options.searchText===e.options.searchText||this.props.options.serverSide||this.setState({page:0}),(!0===this.options.resizableColumns||this.options.resizableColumns&&this.options.resizableColumns.enabled)&&(this.setHeadResizeable(this.resizeHeadCellRefs,this.tableRef),this.updateDividers())}},{key:"updateOptions",value:function(e,t){!0===t.options.disableToolbarSelect&&void 0===t.options.selectToolbarPlacement&&(t.options.selectToolbarPlacement=lz.NONE),t.options.tableId||(t.options.tableId=(Math.random()+"").replace(/\./,"")),this.options=GU(e,t.options,(function(e,t,n){if("textLabels"===n||"downloadOptions"===n)return XU(e,t)})),this.handleOptionDeprecation(t)}},{key:"mergeDefaultOptions",value:function(e){var t=this.getDefaultOptions(),n=yU({},e);n.options=n.options||{},this.updateOptions(t,n)}},{key:"validateOptions",value:function(e){var t;if(e.serverSide&&void 0===e.onTableChange)throw Error("onTableChange callback must be provided when using serverSide option");if(e.expandableRows&&void 0===e.renderExpandableRow)throw Error("renderExpandableRow must be provided when using expandableRows option");e.rowsSelected&&EU(e.rowsSelected)&&vU(t=e.rowsSelected).call(t,isNaN)&&oY("When using the rowsSelected option, must be provided an array of numbers only.")}},{key:"getInitTableOptions",value:function(){var e=this,t=["rowsPerPage","page","rowsSelected","rowsPerPageOptions"],n=CU(t).call(t,(function(t,n){return void 0!==e.options[n]&&(t[n]=e.options[n]),t}),{});return this.validateOptions(n),n}},{key:"setTableData",value:function(e,t,n,r,i){var o,a,s,l=this,u=3<arguments.length&&void 0!==r?r:function(){},c=4<arguments.length&&void 0!==i&&i,d=[],h=this.buildColumns(e.columns,this.state.columns,this.options.columnOrder,this.state.columnOrder),p=h.columns,f=h.filterData,m=h.filterList,v=h.columnOrder,g=null,y="none";this.options.sortOrder&&this.options.sortOrder.direction&&this.options.sortOrder.name?s=yU({},this.options.sortOrder):(s=yU({},this.state.sortOrder)).direction||DU(a=e.columns).call(a,(function(e,t){!e.options||"asc"!==e.options.sortDirection&&"desc"!==e.options.sortDirection||(s.name=e.name,s.sortDirection=e.sortDirection)}));var b=t===oz?this.transformData(p,e.data):e.data,w=t===oz?this.options.searchText:null;void 0===this.options.searchText&&void 0!==this.state.searchText&&(w=this.state.searchText);var x=this.state.rowsPerPage;"number"==typeof this.options.rowsPerPage&&(x=this.options.rowsPerPage);var _=this.state.page;"number"==typeof this.options.page&&(_=this.options.page),DU(p).call(p,(function(e,n){for(var r,i,a=0;a<b.length;a++){var u,c,h,p=t===oz?b[a][n]:b[a].data[n];void 0===d[a]&&d.push({index:t===oz?a:b[a].index,data:t===oz?b[a]:b[a].data}),!1!==bU(e)&&("function"==typeof e.customBodyRender&&(c=d[a].data,o=l.getTableMeta(a,n,c,e,b,l.state,d),h=e.customBodyRender(p,o),JU.isValidElement(h)&&h.props.value?p=h.props.value:"string"==typeof h&&(p=h)),"object"!==OU(p)||EU(p)||null===p||(p=p.toString?p.toString():""),IU(u=f[n]).call(u,p)<0&&!EU(p)?f[n].push(p):EU(p)&&DU(p).call(p,(function(e){var t,r="object"===OU(e)&&null!==e||"function"==typeof e?e.toString?e.toString():"":e;IU(t=f[n]).call(t,r)<0&&f[n].push(r)})))}e.filterOptions&&(EU(e.filterOptions)?(f[n]=VU(e.filterOptions),l.warnDep("filterOptions must now be an object. see https://github.com/gregnb/mui-datatables/tree/master/examples/customize-filter example")):EU(e.filterOptions.names)&&(f[n]=VU(e.filterOptions.names))),e.filterList?m[n]=VU(e.filterList):l.state.filterList&&l.state.filterList[n]&&0<l.state.filterList[n].length&&(m[n]=VU(l.state.filterList[n])),l.options.sortFilterList&&(i=sY(),kU(r=f[n]).call(r,i)),e.name===s.name&&(y=s.direction,g=n)}));var S,k,T,C={data:[],lookup:{}},E={data:[],lookup:{}};if(this.options.rowsSelected&&this.options.rowsSelected.length&&"multiple"===this.options.selectableRows)DU(S=bU(k=this.options.rowsSelected).call(k,(function(e){return 0===e||Number(e)&&0<e}))).call(S,(function(e){for(var t=e,n=0;n<l.state.displayData.length;n++)if(l.state.displayData[n].dataIndex===e){t=n;break}C.data.push({index:t,dataIndex:e}),C.lookup[e]=!0}));else if(this.options.rowsSelected&&1===this.options.rowsSelected.length&&"single"===this.options.selectableRows){for(var O=this.options.rowsSelected[0],D=0;D<this.state.displayData.length;D++)if(this.state.displayData[D].dataIndex===this.options.rowsSelected[0]){O=D;break}C.data.push({index:O,dataIndex:this.options.rowsSelected[0]}),C.lookup[this.options.rowsSelected[0]]=!0}else this.options.rowsSelected&&1<this.options.rowsSelected.length&&"single"===this.options.selectableRows?console.error('Multiple values provided for selectableRows, but selectableRows set to "single". Either supply only a single value or use "multiple".'):void 0===this.options.rowsSelected&&!1===n&&this.state.selectedRows&&(C=yU({},this.state.selectedRows));this.options.rowsExpanded&&this.options.rowsExpanded.length&&this.options.expandableRows?DU(T=this.options.rowsExpanded).call(T,(function(e){for(var t=e,n=0;n<l.state.displayData.length;n++)if(l.state.displayData[n].dataIndex===e){t=n;break}E.data.push({index:t,dataIndex:e}),E.lookup[e]=!0})):void 0===this.options.rowsExpanded&&!1===n&&this.state.expandedRows&&(E=yU({},this.state.expandedRows)),this.options.serverSide||null===g||(d=this.sortTable(d,g,y,p[g].sortCompare).data);var M={columns:p,filterData:f,filterList:m,searchText:w,selectedRows:C,expandedRows:E,count:this.options.count,data:d,sortOrder:s,rowsPerPage:x,page:_,displayData:this.getDisplayData(p,d,m,w,o,e),columnOrder:v};c?this.state=yU({},this.state,M):this.setState(M,u)}},{key:"computeDisplayRow",value:function(e,t,n,r,i,o,a,s,l){for(var u=this,c=!1,d=!1,h=[],p=0;p<t.length;p++)!function(s){var p,f,m,v=t[s],g=t[s],y=e[s];y.customBodyRenderLite?h.push(y.customBodyRenderLite):(y.customBodyRender&&(f=u.getTableMeta(n,s,t,y,o,rz(rz({},u.state),{},{filterList:r,searchText:i}),l),m=y.customBodyRender(g,f,gU(p=u.updateDataCol).call(p,null,n,s)),g="string"!=typeof(v=m)&&m?m.props&&m.props.value?m.props.value:g:m),h.push(v));var b=null==g?"":g.toString(),w=r[s],x=a.caseSensitive,_=y.filterType||a.filterType;!w.length&&"custom"!==_||(y.filterOptions&&y.filterOptions.logic?y.filterOptions.logic(g,w,t)&&(c=!0):"textField"===_&&!u.hasSearchText(b,w,x)||"textField"!==_&&!1===EU(g)&&IU(w).call(w,g)<0?c=!0:"textField"!==_&&EU(g)&&(a.filterArrayFullMatch?mU(w).call(w,(function(e){return 0<=IU(g).call(g,e)}))||(c=!0):vU(w).call(w,(function(e){return 0<=IU(g).call(g,e)}))||(c=!0))),i&&"excluded"!==y.display&&u.hasSearchText(b,i,x)&&"false"!==y.display&&y.searchable&&(d=!0)}(p);var f,m=s.options.customSearch;return i&&m&&("boolean"!=typeof(f=m(i,t,e))?console.error("customSearch must return a boolean"):d=f),a.serverSide?(m&&console.warn("Server-side filtering is enabled, hence custom search will be ignored."),h):c||i&&!d?null:h}},{key:"getDisplayData",value:function(e,t,n,r,i,o){for(var a=[],s=i?i.tableData:o.data,l=0;l<t.length;l++){var u=t[l].data,c=this.computeDisplayRow(e,u,l,n,r,s,this.options,o,t);c&&a.push({data:c,dataIndex:t[l].index})}return a}},{key:"getSortDirectionLabel",value:function(e){switch(e.direction){case"asc":return"ascending";case"desc":return"descending";case"none":return"none";default:return""}}},{key:"getTableProps",value:function(){var e=this.props.classes,t=this.options.setTableProps()||{};return t.className=WU(e.tableRoot,t.className),t}},{key:"sortTable",value:function(e,t,n,r){var i,o=this,a=3<arguments.length&&void 0!==r?r:null,s=this.options.customSort&&!a,l={selectedRows:this.state.selectedRows},u=s?this.options.customSort(e,t,n||(this.options.sortDescFirst?"desc":"asc"),l):e;"none"===n&&(i=CU(e).call(e,(function(e,t){return e[t.index]=t,e}),[]));var c,d=AU(u).call(u,(function(e,n){return{data:e.data[t],rowData:e.data,position:n,rowSelected:!!o.state.selectedRows.lookup[e.index]}}));s||(c=a||lY,kU(d).call(d,c(n)));for(var h=[],p=[],f=0;f<d.length;f++){var m=d[f];h.push(u[m.position]),m.rowSelected&&p.push({index:f,dataIndex:u[m.position].index})}return{data:"none"===n?i:h,selectedRows:{lookup:rY(p),data:p}}}},{key:"render",value:function(){var e,t,n,r,i,o=this,a=this.props,s=a.classes,l=a.className,u=a.title,c=a.components,d=c.TableBody,h=c.TableFilterList,p=c.TableFooter,f=c.TableHead,m=c.TableResize,v=c.TableToolbar,g=c.TableToolbarSelect,y=c.DragDropBackend,b=void 0===y?qH.HTML5Backend:y,w=this.state,x=w.announceText,_=w.activeColumn,S=w.data,k=w.displayData,T=w.columns,C=w.page,E=w.filterData,O=w.filterList,D=w.selectedRows,M=w.previousSelectedRow,A=w.expandedRows,I=w.searchText,P=w.sortOrder,R=(w.serverSideFilterList,w.columnOrder),N=d||pY,j=h||bY,L=p||TY,F=f||jY,B=m||YY,U=v||KY,H=g||ez,Y=this.state.count||k.length,z=this.options.pagination?this.state.rowsPerPage:k.length,W=function(e,t){return e.title=t,!$U(qU(sz,(function(t){return e[t]})))}(this.options,u),G=AU(T).call(T,(function(e){return{name:e.name,filterType:e.filterType||o.options.filterType}})),V=this.options.responsive,q=_U(e="".concat(s.paper," ")).call(e,l),Q=this.options.tableBodyMaxHeight;switch(V){case"scroll":i=s.responsiveScroll,Q="499px";break;case"scrollMaxHeight":i=s.responsiveScrollMaxHeight,Q="499px";break;case"scrollFullHeight":i=s.responsiveScrollFullHeight,Q="none";break;case"scrollFullHeightFullWidth":i=s.responsiveScrollFullHeight,q=_U(t="".concat(s.paperResponsiveScrollFullHeightFullWidth," ")).call(t,l);break;case"stacked":i=s.responsiveStacked,Q="none";break;case"stackedFullWidth":i=s.responsiveStackedFullWidth,q=_U(n="".concat(s.paperResponsiveScrollFullHeightFullWidth," ")).call(n,l),Q="none";break;default:i=s.responsiveBase}var $={};Q&&($.maxHeight=Q),this.options.tableBodyHeight&&($.height=this.options.tableBodyHeight);var X=this.options.setTableProps&&this.options.setTableProps()||{},K=WU(s.tableRoot,X.className);delete X.className;var Z,J={};return"undefined"!=typeof window&&(J.context=window),JU.createElement(UU,{elevation:this.options.elevation,ref:this.tableContent,className:q},0<D.data.length&&this.options.selectToolbarPlacement!==lz.NONE&&JU.createElement(H,{options:this.options,selectedRows:D,onRowsDelete:this.selectRowDelete,displayData:k,selectRowUpdate:this.selectRowUpdate,components:this.props.components}),(0===D.data.length||-1!==IU(r=[lz.ABOVE,lz.NONE]).call(r,this.options.selectToolbarPlacement))&&W&&JU.createElement(U,{columns:T,columnOrder:R,displayData:k,data:S,filterData:E,filterList:O,filterUpdate:this.filterUpdate,updateFilterByType:this.updateFilterByType,options:this.options,resetFilters:this.resetFilters,searchText:I,searchTextUpdate:this.searchTextUpdate,searchClose:this.searchClose,tableRef:this.getTableContentRef,title:u,toggleViewColumn:this.toggleViewColumn,updateColumns:this.updateColumns,setTableAction:this.setTableAction,components:this.props.components}),JU.createElement(j,{options:this.options,serverSideFilterList:this.props.options.serverSideFilterList,filterListRenderers:AU(T).call(T,(function(e){return e.customFilterListOptions&&e.customFilterListOptions.render?e.customFilterListOptions.render:e.customFilterListRender?e.customFilterListRender:function(e){return e}})),customFilterListUpdate:AU(T).call(T,(function(e){return e.customFilterListOptions&&e.customFilterListOptions.update?e.customFilterListOptions.update:null})),filterList:O,filterUpdate:this.filterUpdate,columnNames:G}),JU.createElement("div",{style:rz({position:"relative"},$),className:i},(!0===this.options.resizableColumns||this.options.resizableColumns&&this.options.resizableColumns.enabled)&&JU.createElement(B,{key:Y,columnOrder:R,updateDividers:function(e){return o.updateDividers=e},setResizeable:function(e){return o.setHeadResizeable=e},options:this.props.options,tableId:this.options.tableId}),(Z=JU.createElement(HU,fU({ref:function(e){return o.tableRef=e},tabIndex:"0",role:"grid",className:K},X),JU.createElement("caption",{className:s.caption},u),JU.createElement(F,{columns:T,activeColumn:_,data:k,count:Y,page:C,rowsPerPage:z,selectedRows:D,selectRowUpdate:o.selectRowUpdate,toggleSort:o.toggleSortColumn,setCellRef:o.setHeadCellRef,expandedRows:A,areAllRowsExpanded:o.areAllRowsExpanded,toggleAllExpandableRows:o.toggleAllExpandableRows,options:o.options,sortOrder:P,columnOrder:R,updateColumnOrder:o.updateColumnOrder,draggableHeadCellRefs:o.draggableHeadCellRefs,tableRef:o.getTableContentRef,tableId:o.options.tableId,timers:o.timers,components:o.props.components}),JU.createElement(N,{data:k,count:Y,columns:T,page:C,rowsPerPage:z,selectedRows:D,selectRowUpdate:o.selectRowUpdate,previousSelectedRow:M,expandedRows:A,toggleExpandRow:o.toggleExpandRow,options:o.options,columnOrder:R,filterList:O,components:o.props.components,tableId:o.options.tableId}),o.options.customTableBodyFooterRender?o.options.customTableBodyFooterRender({data:k,count:Y,columns:T,selectedRows:D,selectableRows:o.options.selectableRows}):null),b?JU.createElement(RH.DndProvider,fU({backend:b},J),Z):Z)),JU.createElement(L,{options:this.options,page:C,rowCount:Y,rowsPerPage:z,changeRowsPerPage:this.changeRowsPerPage,changePage:this.changePage}),JU.createElement("div",{className:s.liveAnnounce,"aria-live":"polite"},x))}}]),n}(JU.Component);BU(uz,"propTypes",{title:KU.oneOfType([KU.string,KU.element]).isRequired,data:KU.array.isRequired,columns:KU.PropTypes.arrayOf(KU.oneOfType([KU.string,KU.shape({label:KU.string,name:KU.string.isRequired,options:KU.shape({display:KU.oneOf(["true","false","excluded","always",!0,!1]),empty:KU.bool,filter:KU.bool,sort:KU.bool,print:KU.bool,searchable:KU.bool,download:KU.bool,viewColumns:KU.bool,filterList:KU.array,filterOptions:KU.oneOfType([KU.array,KU.shape({names:KU.array,logic:KU.func,display:KU.func})]),filterType:KU.oneOf(["dropdown","checkbox","multiselect","textField","custom"]),customHeadRender:KU.func,customBodyRender:KU.func,customBodyRenderLite:KU.func,customHeadLabelRender:KU.func,customFilterListOptions:KU.oneOfType([KU.shape({render:KU.func,update:KU.func})]),customFilterListRender:KU.func,setCellProps:KU.func,setCellHeaderProps:KU.func,sortThirdClickReset:KU.bool,sortDescFirst:KU.bool})})])).isRequired,options:KU.shape({caseSensitive:KU.bool,columnOrder:KU.array,count:KU.number,confirmFilters:KU.bool,consoleWarnings:KU.bool,customFilterDialogFooter:KU.func,customFooter:KU.oneOfType([KU.func,KU.element]),customRowRender:KU.func,customSearch:KU.func,customSearchRender:KU.oneOfType([KU.func,KU.element]),customSort:KU.func,customToolbar:KU.oneOfType([KU.func,KU.element]),customToolbarSelect:KU.oneOfType([KU.func,KU.element]),draggableColumns:KU.object,enableNestedDataAccess:KU.string,expandableRows:KU.bool,expandableRowsHeader:KU.bool,expandableRowsOnClick:KU.bool,disableToolbarSelect:KU.bool,download:KU.oneOf([!0,!1,"true","false","disabled"]),downloadOptions:KU.shape({filename:KU.string,separator:KU.string,filterOptions:KU.shape({useDisplayedColumnsOnly:KU.bool,useDisplayedRowsOnly:KU.bool})}),filter:KU.oneOf([!0,!1,"true","false","disabled"]),filterArrayFullMatch:KU.bool,filterType:KU.oneOf(["dropdown","checkbox","multiselect","textField","custom"]),fixedHeader:KU.bool,fixedSelectColumn:KU.bool,getTextLabels:KU.func,isRowExpandable:KU.func,isRowSelectable:KU.func,jumpToPage:KU.bool,onDownload:KU.func,onFilterChange:KU.func,onFilterChipClose:KU.func,onFilterConfirm:KU.func,onFilterDialogOpen:KU.func,onFilterDialogClose:KU.func,onRowClick:KU.func,onRowsExpand:KU.func,onRowExpansionChange:KU.func,onRowsSelect:KU.func,onRowSelectionChange:KU.func,onTableChange:KU.func,onTableInit:KU.func,page:KU.number,pagination:KU.bool,print:KU.oneOf([!0,!1,"true","false","disabled"]),searchProps:KU.object,selectableRows:KU.oneOfType([KU.bool,KU.oneOf(["none","single","multiple"])]),selectableRowsHeader:KU.bool,selectableRowsHideCheckboxes:KU.bool,selectableRowsOnClick:KU.bool,serverSide:KU.bool,tableId:KU.string,tableBodyHeight:KU.string,tableBodyMaxHeight:KU.string,renderExpandableRow:KU.func,resizableColumns:KU.oneOfType([KU.bool,KU.object]),responsive:KU.oneOf(["standard","vertical","verticalAlways","simple"]),rowHover:KU.bool,rowsExpanded:KU.array,rowsPerPage:KU.number,rowsPerPageOptions:KU.array,rowsSelected:KU.array,search:KU.oneOf([!0,!1,"true","false","disabled"]),searchOpen:KU.bool,searchAlwaysOpen:KU.bool,searchPlaceholder:KU.string,searchText:KU.string,setFilterChipProps:KU.func,setRowProps:KU.func,selectToolbarPlacement:KU.oneOfType([KU.bool,KU.oneOf([lz.REPLACE,lz.ABOVE,lz.NONE])]),setTableProps:KU.func,sort:KU.bool,sortOrder:KU.object,storageKey:KU.string,viewColumns:KU.oneOf([!0,!1,"true","false","disabled"])}),className:KU.string,components:KU.objectOf(KU.any)}),BU(uz,"defaultProps",{title:"",options:{},data:[],columns:[],components:{TableBody:pY,TableFilter:vY,TableFilterList:bY,TableFooter:TY,TableHead:jY,TableResize:YY,TableToolbar:KY,TableToolbarSelect:ez,Tooltip:YU,icons:{}}});var cz=zU.withStyles((function(e){return{root:{},paper:{},paperResponsiveScrollFullHeightFullWidth:{position:"absolute"},tableRoot:{outline:"none"},responsiveBase:{overflow:"auto","@media print":{height:"auto !important"}},responsiveScroll:{overflow:"auto",height:"100%"},responsiveScrollMaxHeight:{overflow:"auto",height:"100%"},responsiveScrollFullHeight:{height:"100%"},responsiveStacked:BU({overflow:"auto"},e.breakpoints.down("sm"),{overflow:"hidden"}),responsiveStackedFullWidth:{},caption:{position:"absolute",left:"-3000px"},liveAnnounce:{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"},"@global":{"@media print":{".datatables-noprint":{display:"none"}}}}}),{name:"MUIDataTable"})(uz);function dz(e){var t=function(){if("undefined"==typeof Reflect||!pU)return!1;if(pU.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(pU(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r,i=FU(e);return r=t?(n=FU(this).constructor,pU(i,arguments,n)):i.apply(this,arguments),LU(this,r)}}var hz=function(e){jU(n,e);var t=dz(n);function n(){var e,r;PU(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r=t.call.apply(t,_U(e=[this]).call(e,o)),BU(NU(r),"handleTextChangeWrapper",(function(e){return function(t){e(t.target.value)}})),BU(NU(r),"onKeyDown",(function(e){27===e.keyCode&&r.props.onHide()})),r}return RU(n,[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown,!1)}},{key:"render",value:function(){var e=this,t=this.props,n=t.classes,r=t.options,i=t.onHide,o=t.searchText,a=function(e,t,n){var r;return function(){var i=this,o=arguments,a=n&&!r;clearTimeout(r),r=MH((function(){r=null,n||e.apply(i,o)}),t),a&&e.apply(i,o)}}((function(t){e.props.onSearch(t)}),t.debounceWait);return JU.createElement(LH,{appear:!0,in:!0,timeout:300},JU.createElement("div",{className:n.main},JU.createElement(FH,{className:n.searchIcon}),JU.createElement(xH,fU({className:n.searchText,autoFocus:!0,InputProps:{"data-test-id":r.textLabels.toolbar.search,"aria-label":r.textLabels.toolbar.search},defaultValue:o,onChange:this.handleTextChangeWrapper(a),fullWidth:!0,inputRef:function(t){return e.searchField=t},placeholder:r.searchPlaceholder},r.searchProps?r.searchProps:{})),JU.createElement(sH,{className:n.clearIcon,onClick:i},JU.createElement(BH,null))))}}]),n}(JU.Component),pz=zU.withStyles((function(e){return{main:{display:"flex",flex:"1 0 auto"},searchIcon:{color:e.palette.text.secondary,marginTop:"10px",marginRight:"8px"},searchText:{flex:"0.8 0"},clearIcon:{"&:hover":{color:e.palette.error.main}}}}),{name:"MUIDataTableSearch"})(hz);Xf.DebounceTableSearch=pz,Xf.ExpandButton=eY,Xf.Popover=zY,Xf.TableBody=pY,Xf.TableBodyCell=XH,Xf.TableBodyRow=JH,Xf.TableFilter=vY,Xf.TableFilterList=bY,Xf.TableFooter=TY,iU=Xf.TableHead=jY,Xf.TableHeadCell=MY,Xf.TableHeadRow=IY,Xf.TablePagination=SY,Xf.TableResize=YY,Xf.TableSearch=qY,Xf.TableSelectCell=nY,Xf.TableToolbar=KY,Xf.TableToolbarSelect=ez,Xf.TableViewCol=GY,Xf.debounceSearchRender=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:200;return function(t,n,r,i){return JU.createElement(pz,{searchText:t,onSearch:n,onHide:r,options:i,debounceWait:e})}},rU=Xf.default=cz;var fz,mz,vz,gz,yz,bz=r.makeStyles((function(e){return r.createStyles({root:{"& caption":{padding:0,color:"unset",left:"unset",position:"static",captionSide:"top"},"& .MuiTableSortLabel-root":{maxHeight:e.spacing(3)},"& .expandRow":{"& .MuiTableCell-root":{borderBottom:0},"&:hover":{backgroundColor:e.palette.common.white},"+ tr":{"&:hover":{backgroundColor:e.palette.common.white}}}},noBorderContainer:{"& .MuiPaper-root":{border:0},"& .MuiTableContainer-root":{padding:0,margin:0}},tableContainer:{padding:e.spacing(1,2)},dropdown:{display:"inline-grid"},expandClass:{width:e.spacing(3)},checkboxLabel:{marginRight:0}})})),wz=function(t){var n=bz();return e.jsxs("div",ot({className:n.dropdown},{children:[e.jsx(o.ArrowDropUp,{viewBox:"1 -9 24 24",color:t.active&&"asc"===t.direction?"primary":"disabled"}),e.jsx(o.ArrowDropDown,{viewBox:"1 9 24 24",color:t.active&&"desc"===t.direction?"primary":"disabled"})]}))},xz=function(t){var n=bz(),r=ot({},t);return r.color="primary",e.jsx(Ll,ot({label:""},r,{labelClassName:n.checkboxLabel}))},_z=function(){var t=bz();return e.jsx("div",{className:t.expandClass})},Sz=function(t){var n=t.tableTitle,i=t.selectableRows,o=void 0===i?"none":i,a=t.withBorder,s=void 0===a||a,l=t.data,u=t.columns,c=t.options,d=t.className,h=t.dataTestId,p=bz(),f=null!=c?c:{},m=f.customHeader,v=at(f,["customHeader"]),g=ot({selectableRows:o,elevation:0,rowHover:!1,filter:!1,search:!1,download:!1,print:!1,viewColumns:!1,responsive:"standard",setTableProps:function(){return{size:"small"}}},v),y=u.map((function(t){return(null==t?void 0:t.options)&&!t.options.customHeadRender&&(t.options.customHeadRender=function(n,i,o){return function(t,n,i,o){var a=(null==o?void 0:o.setCellHeaderProps)?null==o?void 0:o.setCellHeaderProps(t):{},s=(null==o?void 0:o.customHeadLabelRender)?null==o?void 0:o.customHeadLabelRender(ot(ot({},t),{colPos:t.index})):t.label;return e.jsxs(r.TableCell,ot({onClick:function(){return n(t.index)}},a,{"data-testid":t.name},{children:[!(null==t?void 0:t.hideHeader)&&s,!(null==t?void 0:t.hideHeader)&&!!(null==o?void 0:o.sort)&&e.jsx(r.TableSortLabel,{active:t.name===i.name,IconComponent:function(){return e.jsx(wz,{active:t.name===i.name,direction:i.direction})},direction:t.name===i.name?i.direction:"asc"})]}),t.name)}(n,i,o,t.options)}),t})),b=s?p.root:dt(p.root,p.noBorderContainer);return e.jsx("div",ot({className:b,"data-testid":h},{children:e.jsx(r.TableContainer,ot({component:r.Paper,className:dt(p.tableContainer,d)},{children:e.jsx(rU,{title:n,data:l,columns:y,options:g,components:{Checkbox:xz,ExpandButton:_z,TableHead:null!=m?m:iU}})}))}))};exports.NodeState=void 0,(fz=exports.NodeState||(exports.NodeState={})).ToBeAdded="ToBeAdded",fz.Provisioned="Provisioned",fz.SoftwareInstalled="SoftwareInstalled",fz.UpgradeSoftware="UpgradeSoftware",fz.UpdateGFlags="UpdateGFlags",fz.Live="Live",fz.Stopping="Stopping",fz.Starting="Starting",fz.Stopped="Stopped",fz.Unreachable="Unreachable",fz.ToBeRemoved="ToBeRemoved",fz.Removing="Removing",fz.Removed="Removed",fz.Adding="Adding",fz.BeingDecommissioned="BeingDecommissioned",fz.Decommissioned="Decommissioned",exports.MetricMeasure=void 0,(mz=exports.MetricMeasure||(exports.MetricMeasure={})).OVERALL="Overall",mz.OUTLIER="Outlier",mz.OUTLIER_TABLES="Outlier_Tables",exports.AnomalyCategory=void 0,(vz=exports.AnomalyCategory||(exports.AnomalyCategory={})).SQL="SQL",vz.APP="APP",vz.NODE="NODE",vz.INFRA="INFRA",vz.DB="DB",exports.AnomalyType=void 0,(gz=exports.AnomalyType||(exports.AnomalyType={})).SQL_QUERY_LATENCY_INCREASE="SQL_QUERY_LATENCY_INCREASE",gz.HOT_NODE_READS_WRITES="HOT_NODE_READS_WRITES",gz.HOT_NODE_CPU="HOT_NODE_CPU",gz.HOT_NODE_QUERIES="HOT_NODE_QUERIES",gz.HOT_NODE_DATA="HOT_NODE_DATA",gz.SLOW_DISKS="SLOW_DISKS",exports.GraphLabel=void 0,(yz=exports.GraphLabel||(exports.GraphLabel={})).WAIT_EVENT_COMPONENT="waitEventComponent",yz.WAIT_EVENT_CLASS="waitEventClass",yz.WAIT_EVENT_TYPE="waitEventType",yz.WAIT_EVENT="waitEvent",yz.CLIENT_NODE_IP="clientNodeIp",yz.QUERY_ID="queryId",yz.TABLET_ID="tabletId";var kz,Tz,Cz,Ez,Oz,Dz,Mz,Az,Iz,Pz={NONE:"NONE",TOP:"TOP",BOTTOM:"BOTTOM"},Rz={NONE:"NONE",NODE:"NODE",TABLE:"TABLE",NAMESPACE:"NAMESPACE"},Nz={AVERAGE:"AVG",MAX:"MAX",MIN:"MIN",SUM:"SUM"};exports.AppName=void 0,(kz=exports.AppName||(exports.AppName={})).YBA="YBA",kz.YBM="YBM",kz.YBD="YBD",kz.WEB="WEB",exports.QueryType=void 0,(Tz=exports.QueryType||(exports.QueryType={})).SQL="SQL",Tz.CQL="CQL",exports.GraphType=void 0,(Cz=exports.GraphType||(exports.GraphType={})).SINGLE_SUPPORTING="SINGLE_SUPPORTING",Cz.MULTI_SUPPORTING="MULTI_SUPPORTING",Cz.MAIN_RCA="MAIN_RCA",exports.SortDirection=void 0,(Ez=exports.SortDirection||(exports.SortDirection={})).ASC="ASC",Ez.DESC="DESC",exports.PrimaryDashboardViewTabs=void 0,(Oz=exports.PrimaryDashboardViewTabs||(exports.PrimaryDashboardViewTabs={})).ANOMALY="Anomaly",Oz.QUERY="Query",exports.TPFeatureFlags=void 0,(Dz=exports.TPFeatureFlags||(exports.TPFeatureFlags={})).SHOW_QUERY_STATS_TIMESTAMP="showStatsTimestamp",Dz.SHOW_CLEANUP_HISTORICAL_DATA="showCleanupHistoricalData",Dz.SHOW_ADVANCED_VIEW="showAdvancedView",exports.AnomalyDetectionStatusText=void 0,(Mz=exports.AnomalyDetectionStatusText||(exports.AnomalyDetectionStatusText={})).EMPTY="EMPTY",Mz.SCHEDULED="SCHEDULED",Mz.IN_PROGRESS="IN_PROGRESS",Mz.SUCCESS="SUCCESS",Mz.FAILURE="FAILURE",exports.RuntimeConfigType=void 0,(Az=exports.RuntimeConfigType||(exports.RuntimeConfigType={})).TEXT="TEXT",Az.INT="INT",Az.FLOAT="FLOAT",Az.BOOL="BOOL",Az.DURATION="DURATION",exports.InsightsTabs=void 0,(Iz=exports.InsightsTabs||(exports.InsightsTabs={})).ANOMALIES="Detected Anomalies",Iz.QUERIES="Queries",Iz.METRICS="Metrics";var jz="All Regions and Clusters",Lz="All",Fz="All Zones and Nodes",Bz="ASH",Uz="Inter",Hz={NODE_AVERAGE:"Selected Nodes Average",ALL:"all",TOP:"top",PRIMARY:"PRIMARY"},Yz=[{value:exports.MetricMeasure.OVERALL,label:"Overall"},{value:exports.MetricMeasure.OUTLIER,label:"Outlier Nodes",k8label:"Outlier Pods"},{value:exports.MetricMeasure.OUTLIER_TABLES,label:"Outlier Tables"}],zz=[{value:Pz.TOP,label:"Top"},{value:Pz.BOTTOM,label:"Bottom"}],Wz=["query_latency","query_rps","query_rows_avg","active_session_history_ysql_client_node","active_session_history_tserver_client_node"],Gz=["cql_query_latency_avg","cql_query_rps","active_session_history_ycql_client_node","active_session_history_tserver_client_node"],Vz=["docdb_keys_found_rate","rows_inserted_rate","tablet_size","rocksdb_current_version_sst_files_size","log_wal_size","active_session_history_tablet","active_session_history_tablet"],qz={WAIT_EVENT_COMPONENT:"waitEventComponent",WAIT_EVENT_CLASS:"waitEventClass",WAIT_EVENT_TYPE:"waitEventType",WAIT_EVENT:"waitEvent",CLIENT_NODE_IP:"clientNodeIp",QUERY:"queryId"},Qz=[10,20,30,40,50],$z=[exports.AnomalyCategory.SQL,exports.AnomalyCategory.NODE,exports.AnomalyCategory.DB,exports.AnomalyCategory.APP,exports.AnomalyCategory.INFRA],Xz="00000000-0000-0000-0000-000000000000",Kz={SHOW_ADVANCED_VIEW:"tp.ui.anomaly.show_advanced_view",SHOW_CLEANUP_HISTORICAL_DATA:"tp.ui.show_cleanup_historical_data",SHOW_QUERIES_VIEW:"tp.ui.show_queries_view",SHOW_TOPK_METRICS_VIEW:"tp.ui.show_topk_metrics_view"},Zz={SQL_QUERY_LATENCY:"Query Latency Increase",SQL_QUERY_LOCK_CONTENTION:"Query Lock Contention",HOT_NODE_CPU:"High CPU Usage",HOT_NODE_DATA:"High data Usage",HOT_NODE_READS_WRITES:"Hot Node read/writes",HOT_NODE_YSQL_QUERIES:"High SQL count",HOT_NODE_CONNECTIONS:"High Node Connections",SQL_QUERY_EXCESSIVE_CATALOG_READS:"Excessive Catalog Reads",HOT_TABLET:"Hot Tablet",LARGE_TABLET:"Large Tablet",SLOW_DISKS:"Slow Disks",UNUSED_INDEX:"Unused Index",RANGE_SHARDING:"Range Sharding",SQL_QUERY_LATENCY_INCREASE:"Query Latency Increase",REDUNDANT_INDEX:"Redundant Index"},Jz="MORE",eW={ONE_HOUR:"Last 1 hour",SIX_HOURS:"Last 6 hours",TWENTYFOUR_HOURS:"Last 24 hours",TWO_DAYS:"Last 2 days",SEVEN_DAYS:"Last 7 days",CUSTOM:"Custom"},tW={ONE_HOUR:"1h",SIX_HOURS:"6h",TWENTYFOUR_HOURS:"24h",TWO_DAYS:"2d",SEVEN_DAYS:"7d",CUSTOM:"Custom"},nW=[{label:eW.TWENTYFOUR_HOURS,value:tW.TWENTYFOUR_HOURS},{label:eW.SIX_HOURS,value:tW.SIX_HOURS},{label:eW.ONE_HOUR,value:tW.ONE_HOUR},{label:eW.TWO_DAYS,value:tW.TWO_DAYS},{label:eW.SEVEN_DAYS,value:tW.SEVEN_DAYS},{label:eW.CUSTOM,value:tW.CUSTOM}],rW=[{label:eW.CUSTOM,value:"Custom"}],iW={SQL_QUERY_LATENCY_INCREASE:{title:"QUERY",data:{}},SQL_QUERY_LOCK_CONTENTION:{title:"QUERY",data:{}},SQL_QUERY_EXCESSIVE_CATALOG_READS:{title:"QUERY",data:{}},HOT_NODE_CPU:{title:"NODE NAME",data:{REGION_NAME:"regionName",ZONE_NAME:"zoneName"}},HOT_NODE_READS_WRITES:{title:"NODE NAME",data:{REGION_NAME:"regionName",ZONE_NAME:"zoneName"}},HOT_NODE_YSQL_QUERIES:{title:"NODE NAME",data:{REGION_NAME:"regionName",ZONE_NAME:"zoneName"}},HOT_NODE_CONNECTIONS:{title:"NODE NAME",data:{REGION_NAME:"regionName",ZONE_NAME:"zoneName"}},HOT_NODE_DATA:{title:"NODE NAME",data:{REGION_NAME:"regionName",ZONE_NAME:"zoneName"}},HOT_TABLET:{title:"TABLE NAME",data:{DB_NAME:"dbName",TABLET_ID:"tabletId"}},LARGE_TABLET:{title:"TABLE NAME",data:{DB_NAME:"dbName",TABLET_ID:"tabletId"}},SLOW_DISKS:{title:"NODE NAME",data:{REGION_NAME:"regionName",ZONE_NAME:"zoneName"}},UNUSED_INDEX:{title:"INDEX NAME",data:{DB_NAME:"dbName",TABLE_NAME:"tableName"}},RANGE_SHARDING:{title:"INDEX NAME",data:{DB_NAME:"dbName",TABLE_NAME:"tableName"}},REDUNDANT_INDEX:{title:"INDEX NAME",data:{DB_NAME:"dbName",TABLE_NAME:"tableName"}}},oW="QUERY DETAILS",aW="Database",sW="Table",lW="Tablet Id",uW="ANOMALY",cW="Region",dW="Zone",hW=["ysql_ops","ycql_ops","server","per_process","disk_io","tserver","master","master_advanced","lsmdb"],pW=["outlier_tables"],fW=[{title:"Outlier Tables",name:"outlier_tables",metrics:["table_read_latency","table_read_rps","table_write_latency","table_write_rps","table_log_latency","table_log_ops_second","table_log_bytes_written","table_write_lock_latency","table_seek_next_prev","table_ops_in_flight","table_write_rejections","table_memory_rejections","table_compaction","table_block_cache_hit_miss","table_mem_tracker_db_memtable","ysql_catalog_cache_misses"]}],mW=[{title:"YSQL",name:"ysql_ops",metrics:["ysql_server_rpc_per_second","ysql_sql_latency","ysql_connections","ysql_connections_per_sec","ysql_server_advanced_rpc_per_second","ysql_sql_advanced_latency","ysql_catalog_cache_misses","ysql_conn_mgr_active_connections"]},{title:"YCQL",name:"ycql_ops",metrics:["cql_server_rpc_per_second","cql_sql_latency","cql_server_rpc_p99","cql_sql_latency_breakdown","cql_yb_local_vs_remote","cql_yb_latency","cql_reactor_latency","tserver_rpc_queue_size_cql","cql_response_sizes","cql_yb_transaction","cql_yb_rpc_connections"]},{title:"Resource",name:"server",metrics:["cpu_usage","memory_usage","disk_iops","disk_usage_percent","disk_used_size_total","disk_volume_usage_percent","disk_volume_used","disk_bytes_per_second_per_node","disk_io_time","disk_io_queue_depth","disk_io_read_latency","disk_io_write_latency","network_packets","network_bytes","network_errors","system_load_over_time","node_clock_skew"]},{title:"Per Process",name:"per_process",metrics:["process_user_cpu_seconds","process_system_cpu_seconds","process_virtual_memory","process_resident_memory","process_proportional_memory","process_io_read","process_io_write","process_open_files"]},{title:"Disk I/O",name:"disk_io",metrics:["disk_iops","disk_usage_percent","disk_used_size_total","disk_volume_usage_percent","disk_volume_used","disk_bytes_per_second_per_node","lsm_rocksdb_flush_size","lsm_rocksdb_compaction","lsm_rocksdb_compaction_time","tserver_log_bytes_read","tserver_log_bytes_written"]},{title:"Tablet Server",name:"tserver",metrics:["tserver_rpcs_per_sec_per_node","tserver_ops_latency","tserver_handler_latency","tserver_threads_running","tserver_threads_started","tserver_uptime_min","tserver_consensus_rpcs_per_sec","tserver_change_config","tserver_remote_bootstraps","tserver_consensus_rpcs_latency","tserver_change_config_latency","tserver_context_switches","tserver_spinlock_server","tserver_log_latency","tserver_log_bytes_written","tserver_log_bytes_read","tserver_log_ops_second","tserver_write_lock_latency","tserver_tc_malloc_stats","tserver_log_stats","tserver_cache_reader_num_ops","tserver_glog_info_messages","tserver_rpc_queue_size_tserver","tserver_cpu_util_secs","tserver_yb_rpc_connections","tserver_live_tablet_peers","raft_leader","tserver_max_follower_lag"]},{title:"Master Server",name:"master",metrics:["master_overall_rpc_rate","master_latency","master_uptime_min","master_get_tablet_location","master_tsservice_reads","master_tsservice_reads_latency","master_tsservice_writes","master_tsservice_writes_latency","master_ts_heartbeats","tserver_rpc_queue_size_master","master_consensus_update","master_consensus_update_latency","master_multiraft_consensus_update","master_multiraft_consensus_update_latency","master_table_ops","master_cpu_util_secs","master_yb_rpc_connections","master_leaderless_and_underreplicated_tablets","master_max_follower_lag","master_load_balancer_stats"]},{title:"Master Server Advanced",name:"master_advanced",metrics:["master_threads_running","master_log_latency","master_log_bytes_written","master_log_bytes_read","master_tc_malloc_stats","master_glog_info_messages","master_lsm_rocksdb_seek_next_prev","master_lsm_rocksdb_num_seeks_per_node","master_lsm_rocksdb_total_sst_per_node","master_lsm_rocksdb_avg_num_sst_per_node","master_lsm_rocksdb_block_cache_hit_miss","master_lsm_rocksdb_block_cache_usage","master_lsm_rocksdb_blooms_checked_and_useful","master_lsm_rocksdb_flush_size","master_lsm_rocksdb_compaction","master_lsm_rocksdb_compaction_numfiles","master_lsm_rocksdb_compaction_time"]},{title:"DocDB",name:"lsmdb",metrics:["lsm_rocksdb_seek_next_prev","lsm_rocksdb_total_sst_per_node","lsm_rocksdb_avg_num_sst_per_node","lsm_rocksdb_latencies_get","lsm_rocksdb_latencies_write","lsm_rocksdb_latencies_seek","lsm_rocksdb_latencies_mutex","lsm_rocksdb_block_cache_hit_miss","lsm_rocksdb_block_cache_usage","lsm_rocksdb_blooms_checked_and_useful","lsm_rocksdb_stalls","lsm_rocksdb_write_rejections","lsm_rocksdb_memory_rejections","lsm_rocksdb_flush_size","lsm_rocksdb_compaction","lsm_rocksdb_compaction_tasks","lsm_rocksdb_compaction_time","lsm_rocksdb_compaction_numfiles","lsm_rocksdb_mem_tracker_db_memtable","docdb_transaction","docdb_transaction_pool_cache","tablet_splitting_stats","automatic_split_manager_time"]}],vW=function(t,n,r,i){if(0!==r){return function(r,o,a,s,l){return e.jsx(qf,{total:r,page:o,rowsPerPage:a,onPageSizeChange:s,dataPrefetchFn:t,rowsPerPageOptions:Qz,showRecordsPerPage:!0,recordsPerPageCaption:e.jsx("span",{children:n}),onPageChange:l,hasMoreData:i})}}},gW=a.makeStyles((function(e){return{recommendation:{background:e.palette.common.white,border:"1px solid ".concat(e.palette.grey[300]),borderRadius:e.shape.borderRadius,padding:e.spacing(2,2.5),position:"relative",marginBottom:e.spacing(3)},disabled:{cursor:"not-allowed",color:"#999999"},tagGreen:{color:"#206263"},redirectLinkText:{textDecoration:"underline",color:"#2B59C3"},flexRow:{display:"flex",flexDirection:"row"},flexRowBaseline:{alignItems:"baseline"},flexColumn:{display:"flex",flexDirection:"column"},inProgressIcon:{color:"#1A44A5"},icon:{height:"40px",width:"40px"},loadingBox:{display:"flex",justifyContent:"center"},tabGroup:{display:"flex",flexDirection:"column",gap:"16px",paddingLeft:"1px"},tabButton:{padding:"12px 16px",minWidth:"130px",height:"40px",boxSizing:"border-box",borderRadius:"8px"},selectedTab:{margin:"0 -1px",backgroundColor:"#F7F7F7",border:"1px solid #C8C8C8"},tabLabelWrapper:{alignItems:"center",padding:"12px 16px",fontSize:"13px",fontWeight:400,textTransform:"none",color:"#232329"},tabPanel:{padding:"32px"},noTabBorder:{borderBottom:"unset"},tabBox:{marginTop:e.spacing(3),border:"1px solid ".concat(e.palette.grey[300]),borderRadius:"8px"},menuItem:{display:"block",padding:"15px 20px",height:"52px",whiteSpace:"nowrap",fontSize:"14px"},overrideMuiInput:{"& .MuiInput-input":{fontWeight:300,fontSize:"13px"},"& .MuiInput-root":{borderRadius:"8px 8px 8px 8px"},"& .MuiMenu-list":{maxHeight:"400px"}},regularText:{fontWeight:300},detectionButton:{marginRight:e.spacing(2)},floatRight:{float:"right"},restrictLines:{display:"-webkit-box",WebkitBoxOrient:"vertical",overflow:"hidden",textOverflow:"ellipsis",WebkitLineClamp:3,maxHeight:"4.5em",lineHeight:"1.5em"},anomalySummary:{marginTop:e.spacing(.5),alignSelf:"start"},observation:{marginLeft:e.spacing(1),display:"flex",flexDirection:"column",alignItems:"baseline"},searchInput:{minWidth:"320px",maxWidth:"520px",marginLeft:e.spacing(2),flexGrow:1,marginRight:"auto"},selectBox:{minWidth:"180px",maxWidth:"220px",height:"36px"},startDatePickerBox:{marginRight:e.spacing(2)},endDatePickerBox:{marginBottom:e.spacing(-5)},mainGraphBox:{margin:e.spacing(2),border:"1px solid #D7DEE4",borderRadius:"8px",padding:e.spacing(2),display:"flex",flexDirection:"column"},mainGraphMetadataBox:{display:"flex",width:"100%",justifyContent:"space-around"},anomalyMetadataOneBox:{flexBasis:"70%",textAlign:"left",padding:"16px 16px 16px 0",display:"flex",flexDirection:"column"},anomalyMetadataTwoBox:{flexBasis:"40%",padding:e.spacing(2),textAlign:"left",display:"flex",flexDirection:"column"},headerTitle:{fontWeight:500,fontSize:"11.5px",fontFamily:"Inter",color:"#6D7C88"},metadataDetails:{fontWeight:600,fontSize:"13px",fontFamily:"Inter",color:"#4E5F6D",marginTop:e.spacing(1),marginBottom:e.spacing(1)},metadataSummary:{fontWeight:400,fontSize:"13px",fontFamily:"Inter",color:"#0B1117"},graphBox:{border:"1px solid #E9EEF2",borderRadius:"8px"},causesBox:{border:"1px solid #E9EEF2",borderRadius:"8px",padding:"16px 16px 16px 16px",margin:e.spacing(2)},cuaseTabButton:{textAlign:"left",marginRight:e.spacing(1),minHeight:e.spacing(4),maxHeight:e.spacing(4),marginBottom:e.spacing(.5),padding:e.spacing(0,2),boxSizing:"border-box","&:hover":{boxShadow:"none",borderRadius:e.shape.borderRadius},"& .Mui-selected":{background:e.palette.grey[300],borderRadius:e.spacing(1)},"& .MuiTab-wrapper":{alignItems:"center"}},causeTabLabelWrapper:{padding:"12px 16px",fontSize:"13px",fontWeight:400,textTransform:"none",color:"#0B1117"},causeText:{fontWeight:600,fontSize:"13px",fontFamily:"Inter",color:"#000000"},descriptionText:{fontFamily:"Inter",color:"#000000",fontSize:"13px",fontWeight:400,marginTop:e.spacing(1),marginBottom:e.spacing(1),marginLeft:e.spacing(1)},tag:{borderRadius:"4px",backgroundColor:"#E9EEF2",padding:"2px 6px 4px 6px",width:"fit-content"},tagName:{fontFamily:"Inter",fontSize:"11.5px",fontWeight:400,color:"#4E5F6D",borderRadius:"8px"},metadataName:{fontFamily:"Inter",fontSize:"13px",fontWeight:400},breadCrumb:{marginLeft:e.spacing(2),position:"relative","& .MuiSvgIcon-root":{fontSize:e.spacing(3)}},breadCrumbText:{color:"#303a78",fontWeight:500,fontSize:"13px"},anomalyHeaderBreadCrumbText:{fontWeight:400,fontSize:"13px",color:"#2B59C3"},detectedAnomaliesLink:{textDecoration:"underline",fontStyle:"solid"},anomalyCategoryText:{color:"#0B1117",fontWeight:600},anomalyTypeBreadCrumbText:{color:"#0B1117",fontWeight:600,fontSize:"13px"},supportingGraphBox:{display:"flex",flexDirection:"row",overflow:"hidden",flexWrap:"wrap"},dateTimePicker:{"& .MuiFormControl-root":{height:"32px !important"},height:"32px !important"},dateTimePickerEnd:{"& .MuiFormControl-root":{height:"72px !important"},height:"72px !important"},panelItemBody:{padding:"16px !important"},redirectButton:{padding:"0px !important"},topKTabs:{"& .MuiTabScrollButton-root":{width:"45px !important",height:"35px !important"},"& .MuiSvgIcon-fontSizeSmall":{fontSize:"24px !important"}},rcaGantChartBox:{width:"91%",padding:"16px 16px 16px 0",marginLeft:"20px",marginRight:e.spacing(2),borderRadius:"8px",border:"1px solid #D7DEE4"},tabPanelPrimary:{padding:"0px !important"},overrideMuiTableContainer:{marginTop:e.spacing(3),"& .MuiTableContainer-root":{width:"100% !important",marginTop:"3px"}},overrideMuiTableContainerWeb:{marginTop:e.spacing(3),"& .MuiTableContainer-root":{width:"100% !important",marginTop:"3px"}},overrideMuiTable:{marginTop:e.spacing(2),textAlign:"center","& .MuiTableCell-sizeSmall":{textAlign:"center"},"& .MuiSelect-select":{fontSize:"13px"}},tableBorder:{borderRight:"1px solid #ccc"},tableHeaderCell:{position:"relative",borderBottom:"1px solid ".concat(e.palette.grey[300]),"&:first-of-type":{padding:e.spacing(.25,0,1,3),"&:before":{width:"calc(100% - ".concat(e.spacing(2),"px)")}},"&:last-of-type":{"&:before":{width:"calc(100% - ".concat(e.spacing(2),"px)"),right:e.spacing(2)}},"&:before":{content:'""',position:"absolute",right:0,bottom:0,height:"1px",width:"100%"}},overrideMuiSelect:{marginLeft:e.spacing(2),width:"320px"},label:{fontFamily:"Inter, sans-serif",fontStyle:"normal",fontSize:"13px"},tooltip:{maxWidth:"400px",maxHeight:"200px",overflowY:"auto",overflowX:"hidden",whiteSpace:"normal",padding:e.spacing(1)}}})),yW=function(t){var n=t.rowData,r=t.appName,i=t.startTime,o=t.endTime,a=t.onSelectedQuery,s=t.onClose,l=gW(),u=n.databaseId,c=n.queryId,d=n.universeId,h=n.queryType===exports.QueryType.SQL;return e.jsxs(e.Fragment,{children:[r===exports.AppName.YBA&&e.jsx(Un,ot({to:"/universes/".concat(d,"/troubleshoot/queries/").concat(c,"?dbId=").concat(u,"&universeId=").concat(d,"&startTime=").concat(i,"&endTime=").concat(o),target:"_blank",className:l.redirectButton},{children:e.jsx("span",ot({className:l.redirectLinkText},{children:"Dashboard"}))})),r===exports.AppName.YBM&&function(){s();var e=null,t=new URLSearchParams(window.location.search);h?(e={queryId:c,dbId:null==u?void 0:u.toString(),universeId:d},t.set("dbId",e.dbId),t.set("universeId",d),t.set("queryId",c)):(e={queryId:c,universeId:d},t.set("universeId",d),t.set("queryId",c)),null==a||a(c.toString(),e),window.history.pushState({},"","".concat(window.location.pathname,"?").concat(t.toString()))}(),r===exports.AppName.WEB&&function(e,t,n){s();var r=window.location.pathname,i=new URLSearchParams(window.location.search);i.set("universeId",n),h&&i.set("dbId",t);var o=i.toString(),a="".concat(r,"/").concat(e).concat(o?"?".concat(o):"");window.open(a,"_blank")}(c,null==u?void 0:u.toString(),d)]})},bW=ae.default.memo((function(n){var i=n.appName;n.currentTablePage;var o=n.displayedRows,a=n.classes,s=n.showQuery,l=n.tableColumns,u=n.ignoredColumns,c=n.startTime,d=n.endTime,h=n.onSelectedQuery,p=n.expandedRowIndex,f=n.handleExpandedRowIndex,m=n.dataIndex,v=n.data,g=l.filter((function(e){return!u.includes(e.name)})).length>0;return e.jsxs(t.Fragment,{children:[e.jsx(r.TableRow,ot({className:a.tableRow,onClick:function(e){f(p!==m?m:null)}},{children:g&&v.map((function(t,n){return void 0!==t?e.jsx(r.TableCell,ot({className:s?a.rowTableCell:"",style:{overflow:"visible",position:"relative",paddingTop:8,paddingBottom:8}},{children:t}),"TableHelper-row-".concat(m,"-body-cell-").concat(n)):null}))}),"TableHelper-queries-row-".concat(String(v[0]))),p===m&&e.jsx(yW,{appName:i,startTime:c,endTime:d,rowData:o[m],onSelectedQuery:h,onClose:function(){return f(null)}})]})})),wW=function(t,n,r,i,o,a,s,l,u,c,d,h){return function(p,f){return e.jsx(bW,{appName:t,currentTablePage:n,displayedRows:r,classes:i,showQuery:o,tableColumns:a,ignoredColumns:s,startTime:l,endTime:u,onSelectedQuery:h,expandedRowIndex:c,handleExpandedRowIndex:d,dataIndex:f,data:p})}},xW=r.makeStyles((function(e){return{root:{width:38,height:20,padding:0,display:"flex"},switchBase:{padding:e.spacing(.5),color:e.palette.common.white,"&$checked":{transform:"translateX(17px)",color:e.palette.common.white,"& + $track":{opacity:1,backgroundColor:e.palette.primary.main,borderColor:e.palette.primary.main}}},thumb:{width:12,height:12,boxShadow:"none",color:e.palette.common.white},track:{border:"1px solid ".concat(e.palette.grey[400]),borderRadius:11,opacity:1,backgroundColor:e.palette.grey[400],"&$disabled":{backgroundColor:e.palette.common.white}},checked:{}}})),_W=r.makeStyles((function(e){return{root:{marginLeft:0,marginRight:0,"&.Mui-disabled":{"& .MuiSwitch-track":{backgroundColor:"".concat(e.palette.grey[300]," !important"),borderColor:"".concat(e.palette.grey[200]," !important"),opacity:1}}},label:ot(ot({},e.typography.body2),{marginLeft:e.spacing(1)}),labelPlacementStart:{"& .MuiFormControlLabel-label":{marginLeft:0,marginRight:e.spacing(1)}}}})),SW=function(t){var n=t.label,i=t.formControlLabelProps,o=at(t,["label","formControlLabelProps"]),a=xW(),s=_W();return e.jsx(r.FormControlLabel,ot({control:e.jsx(r.Switch,ot({color:o.disabled?"default":"primary",classes:a},o)),labelPlacement:"end",label:n,classes:s},i))},kW=function(t){var n=t.name,r=t.rules,i=t.defaultValue,o=t.control,a=t.shouldUnregister,s=at(t,["name","rules","defaultValue","control","shouldUnregister"]),l=Fs({name:n,rules:r,defaultValue:i,control:o,shouldUnregister:a}).field;l.ref;var u=l.value,c=at(l,["ref","value"]);return e.jsx(SW,ot({},c,{inputProps:{"data-testid":"YBToggleField-".concat(n)}},s,{checked:!!u}))},TW="data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M13.0911 7.70567H3V4.60325C3 4.31623 2.82388 4 2.37381 4C1.92374 4 1.74762 4.31623 1.74762 4.60325V8.78291H13.0911L10.8545 11.0805C10.6362 11.2909 10.6362 11.6319 10.8545 11.8422C11.0729 12.0526 11.4269 12.0526 11.6452 11.8422L14.8362 8.62515C15.0546 8.41481 15.0546 8.07377 14.8362 7.86343L11.6452 4.60325C11.4269 4.39291 11.0729 4.39291 10.8545 4.60325C10.6362 4.81359 10.6362 5.15463 10.8545 5.36497L13.0911 7.70567Z' fill='%23232329' fill-opacity='0.4'/%3e%3c/svg%3e",CW=a.makeStyles((function(e){return{icon:{marginRight:e.spacing(1)},metricMeasureButton:{border:"1px solid #E5E5E9",borderRadius:"0px",height:"32px"},overrideMuiButton:{color:"#2b59c3 !important",background:"linear-gradient(0deg, rgba(43, 89, 195, 0.1), rgba(43, 89, 195, 0.1)), #FFFFFF",fontSize:"13px !important"},borderOverallButton:{borderRadius:"8px 0px 0px 8px"},borderOutlierButton:{borderRadius:"0px 8px 8px 0px"}}})),EW=function(n){var i,o,a,s,l,u=n.metricSplitSelectors,c=n.onSplitTypeSelected,d=n.anomalyData,h=CW(),p=0;(null===(i=null==d?void 0:d.defaultSettings)||void 0===i?void 0:i.splitMode)===Pz.NONE&&(null===(o=null==d?void 0:d.defaultSettings)||void 0===o?void 0:o.splitType)===Rz.NONE&&(p=0),(null===(a=null==d?void 0:d.defaultSettings)||void 0===a?void 0:a.splitMode)!==Pz.TOP&&(null===(s=null==d?void 0:d.defaultSettings)||void 0===s?void 0:s.splitMode)!==Pz.BOTTOM||(p=(null===(l=null==d?void 0:d.defaultSettings)||void 0===l?void 0:l.splitType)===Rz.NODE?1:2);var f=t.useState(p),m=f[0],v=f[1];return e.jsxs(r.Box,ot({ml:2,display:"flex",flexDirection:"row"},{children:[!kf(d)&&e.jsxs(r.Box,ot({display:"flex",flexDirection:"row"},{children:[e.jsx("img",{className:h.icon,src:TW,alt:"Indicator towards metric measure to use"}),e.jsx(Za,ot({width:"140px"},{children:"View metrics for"}))]})),e.jsx(r.Box,{children:u.map((function(t,n){var r,i=m===n;return e.jsx(Ni,ot({className:dt(h.metricMeasureButton,i&&h.overrideMuiButton,(r={},r[h.borderOverallButton]=0===n,r[h.borderOutlierButton]=2===n,r)),"data-testid":"MetricTypeSelector-MetricMeasureButton",onClick:function(){c(t.value),v(n)},size:"medium",variant:"secondary"},{children:t.label}))}))})]}))},OW=a.makeStyles((function(e){return{icon:{marginRight:e.spacing(1)},outlierSelectorButton:{border:"1px solid #E5E5E9",borderRadius:"0px",height:"32px"},overrideMuiButton:{color:"#2b59c3 !important",fontSize:"13px !important",background:"linear-gradient(0deg, rgba(43, 89, 195, 0.1), rgba(43, 89, 195, 0.1)), #FFFFFF"},borderOverallButton:{borderRadius:"8px 0px 0px 8px"},borderOutlierButton:{borderRadius:"0px 8px 8px 0px"},input:{width:"60px",height:"32px"}}})),DW=function(n){var i=n.metricOutlierSelectors,o=n.selectedNumNodes,a=n.outlierType,s=n.onOutlierTypeSelected,l=n.onNumNodesChanged,u=OW(),c=a===Pz.TOP?0:1,d=t.useState(c),h=d[0],p=d[1];return e.jsxs(r.Box,ot({ml:2,display:"flex",flexDirection:"row"},{children:[e.jsxs(r.Box,ot({display:"flex",flexDirection:"row"},{children:[e.jsx("img",{className:u.icon,src:TW,alt:"Indicator towards metric measure to use"}),e.jsx(Za,ot({width:"120px"},{children:"Display the"}))]})),e.jsx(r.Box,{children:i.map((function(t,n){var r,i=h===n;return e.jsx(e.Fragment,{children:e.jsx(Ni,ot({className:dt(u.outlierSelectorButton,i&&u.overrideMuiButton,(r={},r[u.borderOverallButton]=0===n,r[u.borderOutlierButton]=1===n,r)),"data-testid":"OutlierSelector-OutlierButton",onClick:function(){s(t.value),p(n)},size:"medium",variant:"secondary"},{children:t.label}))})}))}),e.jsx(r.Box,ot({ml:2},{children:e.jsx(Ja,{type:"number",className:u.input,inputProps:{min:1,"data-testid":"OutlierSelector-NodesInput"},value:o,onChange:function(e){return l(e.target.value)},inputMode:"numeric"})}))]}))},MW=a.makeStyles((function(e){return{selectBox:{minWidth:"250px"},boldText:{fontWeight:500},regularText:{fontWeight:300},menuItem:{display:"block",padding:"15px 20px",height:"52px",whiteSpace:"nowrap",fontSize:"13px"},overrideMuiInput:{"& .MuiInput-input":{fontWeight:400,fontSize:"13px"},"& .MuiInput-root":{borderRadius:"0px 8px 8px 0px",height:"32px !important"},"& .MuiMenu-list":{maxHeight:"400px"}},icon:{marginRight:e.spacing(1)}}})),AW="All Zones and Nodes",IW=function(t){var n=t.selectedItem,i=t.primaryZoneToNodesMap,o=t.asyncZoneToNodesMap,a=t.onZoneNodeSelected,s=MW();return e.jsx(Rl,ot({className:dt(s.selectBox,s.overrideMuiInput),"data-testid":"zone-node-select",value:n},{children:function(t,n){var i=[];i.push(e.jsx(r.MenuItem,ot({value:AW,onClick:function(e){a(!1,!1,AW)},className:dt(s.menuItem,s.regularText)},{children:AW}),AW)),i.push(e.jsx(r.Divider,{}));for(var o=t.values(),l=o.next(),u=function(){var t=l.value,n=t.zoneName,u=t.nodeNames;n&&i.push(e.jsx(r.MenuItem,ot({value:n,onClick:function(e){a(!0,!1,n)},className:dt(s.menuItem,s.boldText)},{children:n}),n)),Sf(u)&&u.forEach((function(t){i.push(e.jsxs(r.MenuItem,ot({value:t,onClick:function(e){a(!1,!0,t)},className:dt(s.menuItem,s.regularText)},{children:[e.jsx("img",{className:s.icon,src:TW,alt:"Indicator towards metric measure to use"}),t]}),t))})),l=o.next()};kf(l.value);)u();if((null==n?void 0:n.size)>0){i.push(e.jsx(r.Divider,{}));for(var c=n.values(),d=c.next(),h=function(){var t=d.value,n=t.zoneName,o=t.nodeNames;n&&i.push(e.jsx(r.MenuItem,ot({value:n,onClick:function(e){a(!0,!1,n)},className:dt(s.menuItem,s.boldText)},{children:n}),n)),Sf(o)&&o.forEach((function(t){i.push(e.jsxs(r.MenuItem,ot({value:t,onClick:function(e){a(!1,!0,t)},className:dt(s.menuItem,s.regularText)},{children:[e.jsx("img",{className:s.icon,src:TW,alt:"Indicator towards metric measure to use"}),t]}),t))})),d=c.next()};kf(d.value);)h()}return i}(i,o)}))},PW=a.makeStyles((function(e){return{selectBox:{minWidth:"250px"},boldText:{fontWeight:500},regularText:{fontWeight:300},menuItem:{display:"block",padding:"15px 20px",height:"52px",whiteSpace:"nowrap",fontSize:"13px"},overrideMuiInput:{"& .MuiInput-input":{fontWeight:400,fontSize:"13px"},"& .MuiInput-root":{borderRadius:"8px 0px 0px 8px",height:"32px !important"}},icon:{marginRight:e.spacing(1)}}})),RW=function(t){var n=t.selectedItem,i=t.primaryClusterToRegionMap,o=t.asyncClusterToRegionMap,a=t.onClusterRegionSelected,s=PW();return e.jsx(Rl,ot({className:dt(s.selectBox,s.overrideMuiInput),"data-testid":"cluster-region-select",value:n},{children:i.size>0&&function(t,n){var i=[];i.push(e.jsx(r.MenuItem,ot({value:jz,onClick:function(e){a(!1,!1,jz,!1)},className:dt(s.menuItem,s.regularText)},{children:jz}),jz)),i.push(e.jsx(r.Divider,{}));var o=t.values().next().value,l=o.cluster,u=o.regions,c=o.uuid;if(Tf(l)&&i.push(e.jsx(r.MenuItem,ot({value:c,onClick:function(e){a(!0,!1,c,!0)},className:dt(s.menuItem,s.boldText)},{children:l}),c)),Sf(u)&&u.forEach((function(t){i.push(e.jsxs(r.MenuItem,ot({value:t,onClick:function(e){a(!1,!0,t,!0)},className:dt(s.menuItem,s.regularText)},{children:[e.jsx("img",{className:s.icon,src:TW,alt:"Indicator towards metric measure to use"}),t]}),t))})),(null==n?void 0:n.size)>0){i.push(e.jsx(r.Divider,{}));var d=n.values().next().value,h=d.cluster,p=d.regions,f=d.uuid;Tf(h)&&i.push(e.jsx(r.MenuItem,ot({value:f,onClick:function(e){a(!0,!1,f,!0)},className:dt(s.menuItem,s.boldText)},{children:h}),f)),Sf(p)&&p.forEach((function(t){i.push(e.jsxs(r.MenuItem,ot({value:t,onClick:function(e){a(!1,!0,t,!0)},className:dt(s.menuItem,s.regularText)},{children:[e.jsx("img",{className:s.icon,src:TW,alt:"Indicator towards metric measure to use"}),t]}),t))}))}return i}(i,o)}))},NW=function(t){var n=t.name,r=t.rules,i=t.defaultValue,o=t.control,a=t.shouldUnregister,s=at(t,["name","rules","defaultValue","control","shouldUnregister"]),l=Fs({name:n,rules:r,defaultValue:i,control:o,shouldUnregister:a}).field;return e.jsx(Ll,ot({name:l.name,inputRef:l.ref,checked:!!l.value,onBlur:l.onBlur,onChange:l.onChange},s))},jW={exports:{}},LW=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}},FW=LW,BW=Object.prototype.toString;function UW(e){return"[object Array]"===BW.call(e)}function HW(e){return void 0===e}function YW(e){return null!==e&&"object"==typeof e}function zW(e){if("[object Object]"!==BW.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function WW(e){return"[object Function]"===BW.call(e)}function GW(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),UW(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var VW={isArray:UW,isArrayBuffer:function(e){return"[object ArrayBuffer]"===BW.call(e)},isBuffer:function(e){return null!==e&&!HW(e)&&null!==e.constructor&&!HW(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:YW,isPlainObject:zW,isUndefined:HW,isDate:function(e){return"[object Date]"===BW.call(e)},isFile:function(e){return"[object File]"===BW.call(e)},isBlob:function(e){return"[object Blob]"===BW.call(e)},isFunction:WW,isStream:function(e){return YW(e)&&WW(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:GW,merge:function e(){var t={};function n(n,r){zW(t[r])&&zW(n)?t[r]=e(t[r],n):zW(n)?t[r]=e({},n):UW(n)?t[r]=n.slice():t[r]=n}for(var r=0,i=arguments.length;r<i;r++)GW(arguments[r],n);return t},extend:function(e,t,n){return GW(t,(function(t,r){e[r]=n&&"function"==typeof t?FW(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}},qW=VW;function QW(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var $W=function(e,t,n){if(!t)return e;var r;if(n)r=n(t);else if(qW.isURLSearchParams(t))r=t.toString();else{var i=[];qW.forEach(t,(function(e,t){null!=e&&(qW.isArray(e)?t+="[]":e=[e],qW.forEach(e,(function(e){qW.isDate(e)?e=e.toISOString():qW.isObject(e)&&(e=JSON.stringify(e)),i.push(QW(t)+"="+QW(e))})))})),r=i.join("&")}if(r){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e},XW=VW;function KW(){this.handlers=[]}KW.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},KW.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},KW.prototype.forEach=function(e){XW.forEach(this.handlers,(function(t){null!==t&&e(t)}))};var ZW,JW,eG,tG,nG,rG,iG,oG,aG,sG,lG,uG,cG,dG,hG,pG,fG,mG,vG=KW,gG=VW,yG=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.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:this.config,code:this.code}},e};function bG(){if(JW)return ZW;JW=1;var e=yG;return ZW=function(t,n,r,i,o){var a=new Error(t);return e(a,n,r,i,o)},ZW}function wG(){if(tG)return eG;tG=1;var e=bG();return eG=function(t,n,r){var i=r.config.validateStatus;r.status&&i&&!i(r.status)?n(e("Request failed with status code "+r.status,r.config,null,r.request,r)):t(r)}}function xG(){if(rG)return nG;rG=1;var e=VW;return nG=e.isStandardBrowserEnv()?{write:function(t,n,r,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(n)),e.isNumber(r)&&s.push("expires="+new Date(r).toGMTString()),e.isString(i)&&s.push("path="+i),e.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},nG}function _G(){return oG?iG:(oG=1,iG=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)})}function SG(){return sG?aG:(sG=1,aG=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e})}function kG(){if(uG)return lG;uG=1;var e=_G(),t=SG();return lG=function(n,r){return n&&!e(r)?t(n,r):r}}function TG(){if(dG)return cG;dG=1;var e=VW,t=["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"];return cG=function(n){var r,i,o,a={};return n?(e.forEach(n.split("\n"),(function(n){if(o=n.indexOf(":"),r=e.trim(n.substr(0,o)).toLowerCase(),i=e.trim(n.substr(o+1)),r){if(a[r]&&t.indexOf(r)>=0)return;a[r]="set-cookie"===r?(a[r]?a[r]:[]).concat([i]):a[r]?a[r]+", "+i:i}})),a):a}}function CG(){if(pG)return hG;pG=1;var e=VW;return hG=e.isStandardBrowserEnv()?function(){var t,n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(e){var t=e;return n&&(r.setAttribute("href",t),t=r.href),r.setAttribute("href",t),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(n){var r=e.isString(n)?i(n):n;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}}var EG,OG,DG,MG,AG,IG={exports:{}},PG={exports:{}},RG={exports:{}};function NG(){if(OG)return EG;OG=1;var e=1e3,t=60*e,n=60*t,r=24*n,i=7*r,o=365.25*r;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}return EG=function(s,l){l=l||{};var u=typeof s;if("string"===u&&s.length>0)return function(a){if((a=String(a)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(a);if(!s)return;var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*o;case"weeks":case"week":case"w":return l*i;case"days":case"day":case"d":return l*r;case"hours":case"hour":case"hrs":case"hr":case"h":return l*n;case"minutes":case"minute":case"mins":case"min":case"m":return l*t;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(s);if("number"===u&&isFinite(s))return l.long?function(i){var o=Math.abs(i);if(o>=r)return a(i,o,r,"day");if(o>=n)return a(i,o,n,"hour");if(o>=t)return a(i,o,t,"minute");if(o>=e)return a(i,o,e,"second");return i+" ms"}(s):function(i){var o=Math.abs(i);if(o>=r)return Math.round(i/r)+"d";if(o>=n)return Math.round(i/n)+"h";if(o>=t)return Math.round(i/t)+"m";if(o>=e)return Math.round(i/e)+"s";return i+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},EG}function jG(){if(MG)return DG;return MG=1,DG=function(e){function t(e){let r,i,o,a=null;function s(...e){if(!s.enabled)return;const n=s,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];r=o.call(n,t),e.splice(a,1),a--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=NG(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},DG}var LG,FG,BG,UG,HG,YG,zG,WG,GG,VG={exports:{}};function qG(){return FG?LG:(FG=1,LG=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)})}function QG(){return HG||(HG=1,function(e,t){const n=tt.default,r=nt.default;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return process.stderr.write(r.formatWithOptions(t.inspectOpts,...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=` ${i};1m${r} `;n[0]=o+n[0].split("\n").join("\n"+o),n.push(i+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=r.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=function(){if(UG)return BG;UG=1;const e=rt.default,t=tt.default,n=qG(),{env:r}=process;let i;function o(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function a(t,o){if(0===i)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!o&&void 0===i)return 0;const a=i||0;if("dumb"===r.TERM)return a;if("win32"===process.platform){const t=e.release().split(".");return Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in r))||"codeship"===r.CI_NAME?1:a;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:a}return n("no-color")||n("no-colors")||n("color=false")||n("color=never")?i=0:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(i=1),"FORCE_COLOR"in r&&(i="true"===r.FORCE_COLOR?1:"false"===r.FORCE_COLOR?0:0===r.FORCE_COLOR.length?1:Math.min(parseInt(r.FORCE_COLOR,10),3)),BG={supportsColor:function(e){return o(a(e,e&&e.isTTY))},stdout:o(a(!0,t.isatty(1))),stderr:o(a(!0,t.isatty(2)))}}();e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=jG()(t);const{formatters:i}=e.exports;i.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},i.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}}(VG,VG.exports)),VG.exports}function $G(){return YG||(YG=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?PG.exports=(AG||(AG=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=jG()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(RG,RG.exports)),RG.exports):PG.exports=QG()),PG.exports}function XG(){if(GG)return IG.exports;GG=1;var e,t,n,r=Ze.default,i=r.URL,o=Xe.default,a=Ke.default,s=Je.default.Writable,l=et.default,u=function(){return WG||(WG=1,zG=function(){if(!e){try{e=$G()("follow-redirects")}catch(e){}"function"!=typeof e&&(e=function(){})}e.apply(null,arguments)}),zG;var e}();e="undefined"!=typeof process,t="undefined"!=typeof window&&"undefined"!=typeof document,n=M(Error.captureStackTrace),e||!t&&n||console.warn("The follow-redirects package should be excluded from browser builds.");var c=!1;try{l(new i(""))}catch(e){c="ERR_INVALID_URL"===e.code}var d=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],h=["abort","aborted","connect","error","socket","timeout"],p=Object.create(null);h.forEach((function(e){p[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}}));var f=E("ERR_INVALID_URL","Invalid URL",TypeError),m=E("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),v=E("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",m),g=E("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),y=E("ERR_STREAM_WRITE_AFTER_END","write after end"),b=s.prototype.destroy||_;function w(e,t){s.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof m?e:new m({cause:e}))}},this._performRequest()}function x(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(r){var o=r+":",a=n[o]=e[r],s=t[r]=Object.create(a);Object.defineProperties(s,{request:{value:function(e,r,a){var s;return s=e,i&&s instanceof i?e=T(e):D(e)?e=T(S(e)):(a=r,r=k(e),e={protocol:o}),M(r)&&(a=r,r=null),(r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r)).nativeProtocols=n,D(r.host)||D(r.hostname)||(r.hostname="::1"),l.equal(r.protocol,o,"protocol mismatch"),u("options",r),new w(r,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var r=s.request(e,t,n);return r.end(),r},configurable:!0,enumerable:!0,writable:!0}})})),t}function _(){}function S(e){var t;if(c)t=new i(e);else if(!D((t=k(r.parse(e))).protocol))throw new f({input:e});return t}function k(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new f({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new f({input:e.href||e});return e}function T(e,t){var n=t||{};for(var r of d)n[r]=e[r];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function C(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return null==n?void 0:String(n).trim()}function E(e,t,n){function r(n){M(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return r.prototype=new(n||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),r}function O(e,t){for(var n of h)e.removeListener(n,p[n]);e.on("error",_),e.destroy(t)}function D(e){return"string"==typeof e||e instanceof String}function M(e){return"function"==typeof e}return w.prototype=Object.create(s.prototype),w.prototype.abort=function(){O(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},w.prototype.destroy=function(e){return O(this._currentRequest,e),b.call(this,e),this},w.prototype.write=function(e,t,n){if(this._ending)throw new y;if(!D(e)&&("object"!=typeof(r=e)||!("length"in r)))throw new TypeError("data should be a string, Buffer or Uint8Array");var r;M(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new g),this.abort()):n&&n()},w.prototype.end=function(e,t,n){if(M(e)?(n=e,e=t=null):M(t)&&(n=t,t=null),e){var r=this,i=this._currentRequest;this.write(e,t,(function(){r._ended=!0,i.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},w.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},w.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},w.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),o()}),e),r(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),n.removeListener("close",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",r),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){w.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(w.prototype,e,{get:function(){return this._currentRequest[e]}})})),w.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},w.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(i._redirectable=this,h))i.on(o,p[o]);if(this._currentUrl=/^\//.test(this._options.path)?r.format(this._options):this._options.path,this._isRedirect){var a=0,s=this,l=this._requestBodyBuffers;!function e(t){if(i===s._currentRequest)if(t)s.emit("error",t);else if(a<l.length){var n=l[a++];i.finished||i.write(n.data,n.encoding,e)}else s._ended&&i.end()}()}},w.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,o=e.headers.location;if(!o||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(O(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new v;var a=this._options.beforeRedirect;a&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],C(/^content-/i,this._options.headers));var d,h,p=C(/^host$/i,this._options.headers),f=S(this._currentUrl),m=p||f.host,g=/^\w+:/.test(o)?this._currentUrl:r.format(Object.assign(f,{host:m})),y=(d=o,h=g,c?new i(d,h):S(r.resolve(h,d)));if(u("redirecting to",y.href),this._isRedirect=!0,T(y,this._options),(y.protocol!==f.protocol&&"https:"!==y.protocol||y.host!==m&&!function(e,t){l(D(e)&&D(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(y.host,m))&&C(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),M(a)){var b={headers:e.headers,statusCode:t},w={url:g,method:s,headers:n};a(this._options,b,w),this._sanitizeOptions(this._options)}this._performRequest()},IG.exports=x({http:o,https:a}),IG.exports.wrap=x,IG.exports}var KG,ZG,JG={name:"axios",version:"0.21.3",description:"Promise based HTTP client for the browser and node.js",main:"index.js",scripts:{test:"grunt test",start:"node ./sandbox/server.js",build:"NODE_ENV=production grunt build",preversion:"npm test",version:"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json",postversion:"git push && git push --tags",examples:"node ./examples/server.js",coveralls:"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",fix:"eslint --fix lib/**/*.js"},repository:{type:"git",url:"https://github.com/axios/axios.git"},keywords:["xhr","http","ajax","promise","node"],author:"Matt Zabriskie",license:"MIT",bugs:{url:"https://github.com/axios/axios/issues"},homepage:"https://axios-http.com",devDependencies:{coveralls:"^3.0.0","es6-promise":"^4.2.4",grunt:"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1",karma:"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2",minimist:"^1.2.0",mocha:"^8.2.1",sinon:"^4.5.0","terser-webpack-plugin":"^4.2.3",typescript:"^4.0.5","url-search-params":"^0.10.0",webpack:"^4.44.2","webpack-dev-server":"^3.11.0"},browser:{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},jsdelivr:"dist/axios.min.js",unpkg:"dist/axios.min.js",typings:"./index.d.ts",dependencies:{"follow-redirects":"^1.14.0"},bundlesize:[{path:"./dist/axios.min.js",threshold:"5kB"}]};function eV(){if(ZG)return KG;ZG=1;var e=VW,t=wG(),n=kG(),r=$W,i=Xe.default,o=Ke.default,a=XG().http,s=XG().https,l=Ze.default,u=it.default,c=JG,d=bG(),h=yG,p=/https:?/;function f(e,t,n){if(e.hostname=t.host,e.host=t.host,e.port=t.port,e.path=n,t.auth){var r=Buffer.from(t.auth.username+":"+t.auth.password,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+r}e.beforeRedirect=function(e){e.headers.host=e.host,f(e,t,e.href)}}return KG=function(m){return new Promise((function(v,g){var y=function(e){v(e)},b=function(e){g(e)},w=m.data,x=m.headers;if("User-Agent"in x||"user-agent"in x?x["User-Agent"]||x["user-agent"]||(delete x["User-Agent"],delete x["user-agent"]):x["User-Agent"]="axios/"+c.version,w&&!e.isStream(w)){if(Buffer.isBuffer(w));else if(e.isArrayBuffer(w))w=Buffer.from(new Uint8Array(w));else{if(!e.isString(w))return b(d("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",m));w=Buffer.from(w,"utf-8")}x["Content-Length"]=w.length}var _=void 0;m.auth&&(_=(m.auth.username||"")+":"+(m.auth.password||""));var S=n(m.baseURL,m.url),k=l.parse(S),T=k.protocol||"http:";if(!_&&k.auth){var C=k.auth.split(":");_=(C[0]||"")+":"+(C[1]||"")}_&&delete x.Authorization;var E=p.test(T),O=E?m.httpsAgent:m.httpAgent,D={path:r(k.path,m.params,m.paramsSerializer).replace(/^\?/,""),method:m.method.toUpperCase(),headers:x,agent:O,agents:{http:m.httpAgent,https:m.httpsAgent},auth:_};m.socketPath?D.socketPath=m.socketPath:(D.hostname=k.hostname,D.port=k.port);var M,A=m.proxy;if(!A&&!1!==A){var I=T.slice(0,-1)+"_proxy",P=process.env[I]||process.env[I.toUpperCase()];if(P){var R=l.parse(P),N=process.env.no_proxy||process.env.NO_PROXY,j=!0;if(N)j=!N.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||("."===e[0]&&k.hostname.substr(k.hostname.length-e.length)===e||k.hostname===e))}));if(j&&(A={host:R.hostname,port:R.port,protocol:R.protocol},R.auth)){var L=R.auth.split(":");A.auth={username:L[0],password:L[1]}}}}A&&(D.headers.host=k.hostname+(k.port?":"+k.port:""),f(D,A,T+"//"+k.hostname+(k.port?":"+k.port:"")+D.path));var F=E&&(!A||p.test(A.protocol));m.transport?M=m.transport:0===m.maxRedirects?M=F?o:i:(m.maxRedirects&&(D.maxRedirects=m.maxRedirects),M=F?s:a),m.maxBodyLength>-1&&(D.maxBodyLength=m.maxBodyLength);var B=M.request(D,(function(n){if(!B.aborted){var r=n,i=n.req||B;if(204!==n.statusCode&&"HEAD"!==i.method&&!1!==m.decompress)switch(n.headers["content-encoding"]){case"gzip":case"compress":case"deflate":r=r.pipe(u.createUnzip()),delete n.headers["content-encoding"]}var o={status:n.statusCode,statusText:n.statusMessage,headers:n.headers,config:m,request:i};if("stream"===m.responseType)o.data=r,t(y,b,o);else{var a=[],s=0;r.on("data",(function(e){a.push(e),s+=e.length,m.maxContentLength>-1&&s>m.maxContentLength&&(r.destroy(),b(d("maxContentLength size of "+m.maxContentLength+" exceeded",m,null,i)))})),r.on("error",(function(e){B.aborted||b(h(e,m,null,i))})),r.on("end",(function(){var n=Buffer.concat(a);"arraybuffer"!==m.responseType&&(n=n.toString(m.responseEncoding),m.responseEncoding&&"utf8"!==m.responseEncoding||(n=e.stripBOM(n))),o.data=n,t(y,b,o)}))}}}));if(B.on("error",(function(e){B.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==e.code||b(h(e,m,null,B))})),m.timeout){var U=parseInt(m.timeout,10);if(isNaN(U))return void b(d("error trying to parse `config.timeout` to int",m,"ERR_PARSE_TIMEOUT",B));B.setTimeout(U,(function(){B.abort(),b(d("timeout of "+U+"ms exceeded",m,m.transitional&&m.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",B))}))}m.cancelToken&&m.cancelToken.promise.then((function(e){B.aborted||(B.abort(),b(e))})),e.isStream(w)?w.on("error",(function(e){b(h(e,m,null,B))})).pipe(B):B.end(w)}))},KG}var tV=VW,nV=function(e,t){gG.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))},rV=yG,iV={"Content-Type":"application/x-www-form-urlencoded"};function oV(e,t){!tV.isUndefined(e)&&tV.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var aV,sV={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:("undefined"!=typeof XMLHttpRequest?aV=function(){if(mG)return fG;mG=1;var e=VW,t=wG(),n=xG(),r=$W,i=kG(),o=TG(),a=CG(),s=bG();return fG=function(l){return new Promise((function(u,c){var d=l.data,h=l.headers,p=l.responseType;e.isFormData(d)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(l.auth){var m=l.auth.username||"",v=l.auth.password?unescape(encodeURIComponent(l.auth.password)):"";h.Authorization="Basic "+btoa(m+":"+v)}var g=i(l.baseURL,l.url);function y(){if(f){var e="getAllResponseHeaders"in f?o(f.getAllResponseHeaders()):null,n={data:p&&"text"!==p&&"json"!==p?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:e,config:l,request:f};t(u,c,n),f=null}}if(f.open(l.method.toUpperCase(),r(g,l.params,l.paramsSerializer),!0),f.timeout=l.timeout,"onloadend"in f?f.onloadend=y:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(y)},f.onabort=function(){f&&(c(s("Request aborted",l,"ECONNABORTED",f)),f=null)},f.onerror=function(){c(s("Network Error",l,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+l.timeout+"ms exceeded";l.timeoutErrorMessage&&(e=l.timeoutErrorMessage),c(s(e,l,l.transitional&&l.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",f)),f=null},e.isStandardBrowserEnv()){var b=(l.withCredentials||a(g))&&l.xsrfCookieName?n.read(l.xsrfCookieName):void 0;b&&(h[l.xsrfHeaderName]=b)}"setRequestHeader"in f&&e.forEach(h,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete h[t]:f.setRequestHeader(t,e)})),e.isUndefined(l.withCredentials)||(f.withCredentials=!!l.withCredentials),p&&"json"!==p&&(f.responseType=l.responseType),"function"==typeof l.onDownloadProgress&&f.addEventListener("progress",l.onDownloadProgress),"function"==typeof l.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",l.onUploadProgress),l.cancelToken&&l.cancelToken.promise.then((function(e){f&&(f.abort(),c(e),f=null)})),d||(d=null),f.send(d)}))}}():"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(aV=eV()),aV),transformRequest:[function(e,t){return nV(t,"Accept"),nV(t,"Content-Type"),tV.isFormData(e)||tV.isArrayBuffer(e)||tV.isBuffer(e)||tV.isStream(e)||tV.isFile(e)||tV.isBlob(e)?e:tV.isArrayBufferView(e)?e.buffer:tV.isURLSearchParams(e)?(oV(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):tV.isObject(e)||t&&"application/json"===t["Content-Type"]?(oV(t,"application/json"),JSON.stringify(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,i=!n&&"json"===this.responseType;if(i||r&&tV.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(i){if("SyntaxError"===e.name)throw rV(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};sV.headers={common:{Accept:"application/json, text/plain, */*"}},tV.forEach(["delete","get","head"],(function(e){sV.headers[e]={}})),tV.forEach(["post","put","patch"],(function(e){sV.headers[e]=tV.merge(iV)}));var lV,uV,cV=sV,dV=VW,hV=cV;function pV(){return uV?lV:(uV=1,lV=function(e){return!(!e||!e.__CANCEL__)})}var fV=VW,mV=function(e,t,n){var r=this||hV;return dV.forEach(n,(function(n){e=n.call(r,e,t)})),e},vV=pV(),gV=cV;function yV(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var bV=VW,wV=function(e,t){t=t||{};var n={},r=["url","method","data"],i=["headers","auth","proxy","params"],o=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function s(e,t){return bV.isPlainObject(e)&&bV.isPlainObject(t)?bV.merge(e,t):bV.isPlainObject(t)?bV.merge({},t):bV.isArray(t)?t.slice():t}function l(r){bV.isUndefined(t[r])?bV.isUndefined(e[r])||(n[r]=s(void 0,e[r])):n[r]=s(e[r],t[r])}bV.forEach(r,(function(e){bV.isUndefined(t[e])||(n[e]=s(void 0,t[e]))})),bV.forEach(i,l),bV.forEach(o,(function(r){bV.isUndefined(t[r])?bV.isUndefined(e[r])||(n[r]=s(void 0,e[r])):n[r]=s(void 0,t[r])})),bV.forEach(a,(function(r){r in t?n[r]=s(e[r],t[r]):r in e&&(n[r]=s(void 0,e[r]))}));var u=r.concat(i).concat(o).concat(a),c=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return bV.forEach(c,l),n},xV=JG,_V={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){_V[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var SV={},kV=xV.version.split(".");function TV(e,t){for(var n=t?t.split("."):kV,r=e.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]<r[i])return!1}return!1}_V.transitional=function(e,t,n){var r=t&&TV(t);function i(e,t){return"[Axios v"+xV.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,a){if(!1===e)throw new Error(i(o," has been removed in "+t));return r&&!SV[o]&&(SV[o]=!0,console.warn(i(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}};var CV,EV,OV,DV,MV,AV,IV,PV,RV={isOlderVersion:TV,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],l=void 0===s||a(s,o,e);if(!0!==l)throw new TypeError("option "+o+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+o)}},validators:_V},NV=VW,jV=$W,LV=vG,FV=function(e){return yV(e),e.headers=e.headers||{},e.data=mV.call(e,e.data,e.headers,e.transformRequest),e.headers=fV.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),fV.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||gV.adapter)(e).then((function(t){return yV(e),t.data=mV.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return vV(t)||(yV(e),t&&t.response&&(t.response.data=mV.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))},BV=wV,UV=RV,HV=UV.validators;function YV(e){this.defaults=e,this.interceptors={request:new LV,response:new LV}}function zV(){if(EV)return CV;function e(e){this.message=e}return EV=1,e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,CV=e}YV.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=BV(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&UV.assertOptions(t,{silentJSONParsing:HV.transitional(HV.boolean,"1.0.0"),forcedJSONParsing:HV.transitional(HV.boolean,"1.0.0"),clarifyTimeoutError:HV.transitional(HV.boolean,"1.0.0")},!1);var n=[],r=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(r=r&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var i,o=[];if(this.interceptors.response.forEach((function(e){o.push(e.fulfilled,e.rejected)})),!r){var a=[FV,void 0];for(Array.prototype.unshift.apply(a,n),a=a.concat(o),i=Promise.resolve(e);a.length;)i=i.then(a.shift(),a.shift());return i}for(var s=e;n.length;){var l=n.shift(),u=n.shift();try{s=l(s)}catch(e){u(e);break}}try{i=FV(s)}catch(e){return Promise.reject(e)}for(;o.length;)i=i.then(o.shift(),o.shift());return i},YV.prototype.getUri=function(e){return e=BV(this.defaults,e),jV(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},NV.forEach(["delete","get","head","options"],(function(e){YV.prototype[e]=function(t,n){return this.request(BV(n||{},{method:e,url:t,data:(n||{}).data}))}})),NV.forEach(["post","put","patch"],(function(e){YV.prototype[e]=function(t,n,r){return this.request(BV(r||{},{method:e,url:t,data:n}))}}));var WV=VW,GV=LW,VV=YV,qV=wV;function QV(e){var t=new VV(e),n=GV(VV.prototype.request,t);return WV.extend(n,VV.prototype,t),WV.extend(n,t),n}var $V=QV(cV);$V.Axios=VV,$V.create=function(e){return QV(qV($V.defaults,e))},$V.Cancel=zV(),$V.CancelToken=function(){if(DV)return OV;DV=1;var e=zV();function t(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var r=this;t((function(t){r.reason||(r.reason=new e(t),n(r.reason))}))}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.source=function(){var e;return{token:new t((function(t){e=t})),cancel:e}},OV=t}(),$V.isCancel=pV(),$V.all=function(e){return Promise.all(e)},$V.spread=AV?MV:(AV=1,MV=function(e){return function(t){return e.apply(null,t)}}),$V.isAxiosError=PV?IV:(PV=1,IV=function(e){return"object"==typeof e&&!0===e.isAxiosError}),jW.exports=$V,jW.exports.default=$V;var XV,KV,ZV=ft(jW.exports),JV="undefined"!=typeof process&&process.env?process.env:{},eq="development"===JV.NODE_ENV,tq=null!==(XV=JV.REACT_APP_API_URL)&&void 0!==XV?XV:eq?"http://localhost:8080/api":"/api";exports.QUERY_KEY=void 0,(KV=exports.QUERY_KEY||(exports.QUERY_KEY={})).fetchAnomalies="fetchAnomalies",KV.fetchGraphs="fetchGraphs",KV.fetchQueries="fetchQueries",KV.fetchUniverseMetadataList="fetchUniverseMetadataList",KV.deleteUniverseMetadata="deleteUniverseMetadata",KV.updateUniverseMetadata="updateUniverseMetadata",KV.fetchUniverseListDetails="fetchUniverseListDetails",KV.fetchUniverseById="fetchUniverseById",KV.fetchAnomalyDetectionStatus="fetchAnomalyDetectionStatus",KV.scheduleAnomalyDetectionStatus="scheduleAnomalyDetectionStatus",KV.fetchAnomaliesPage="fetchAnomaliesPage",KV.fetchQueriesPage="fetchQueriesPage",KV.fetchQueriesStatsPage="fetchQueriesStatsPage",KV.fetchQueriesDatabases="fetchQueriesDatabases",KV.fetchCustomerMetadataList="fetchCustomerMetadataList",KV.fetchQueryStats="fetchQueryStats",KV.fetchTablesPage="fetchTablesPage",KV.fetchNamespaces="fetchNamespaces",KV.deleteRuntimeConfig="deleteRuntimeConfig",KV.fetchRuntimeConfigs="fetchRuntimeConfigs",KV.fetchSpecificRuntimeConfigs="fetchSpecificRuntimeConfigs",KV.fetchSpecificRuntimeConfigsKey="fetchSpecificRuntimeConfigsKey",KV.updateRuntimeConfig="updateRuntimeConfig",KV.fetchAnomalyGroups="fetchAnomalyGroups",KV.fetchAnomalyGroupsByType="fetchAnomalyGroupsByType",KV.fetchAnomalyGroupsById="fetchAnomalyGroupsById",KV.getUniverseMetadata="getUniverseMetadata",KV.fetchMetricsGraphs="fetchMetricsGraphs";var nq=ZV.create({baseURL:tq});nq.interceptors.request.use((function(e){var t=localStorage.getItem("appName"),n=localStorage.getItem("authToken"),r=localStorage.getItem("tpAuthToken");if(r&&""!==r&&t===exports.AppName.WEB&&(e.headers.common["X-AUTH-TP-TOKEN"]=r),t===exports.AppName.YBA&&n&&""!==n){var i=localStorage.getItem("authToken");e.headers.common["X-AUTH-TOKEN"]=i}else t===exports.AppName.YBM&&n&&""!==n&&(e.headers.common.Authorization="Bearer ".concat(n));return e}),(function(e){return Promise.reject(e)}));var rq=function(){this.fetchAnomalies=function(e,t,n,r){var i=Tf(r)?"".concat(r,"/universe/").concat(e,"/anomalies"):"/universe/${universeUuid}/anomalies",o={};return t&&(o.startTime=t),n&&(o.endTime=n),nq.get(i,{params:o}).then((function(e){return e.data}))},this.fetchAnomaliesPage=function(e,t,n,r,i,o,a,s){void 0===r&&(r=10);var l=Tf(n)?"".concat(n,"/universe/").concat(e,"/anomalies/page"):"/universe/".concat(e,"/anomalies/page"),u={};return i&&(u.startTime=i),o&&(u.endTime=o),a&&a!==Lz&&(u.category=a),Tf(s)&&(u.summary=s),u.sortBy="startTime",u.direction="DESC",u.offset=t*r,u.needTotalCount=!0,u.limit=r,nq.get(l,{params:u})},this.fetchQueriesPage=function(e,t){var n=t.currentTablePage,r=t.apiUrl,i=t.pageSize,o=t.startTime,a=t.endTime,s=t.searchInput,l=t.database,u=t.sortBy,c=t.sortDirection,d=Tf(r)?"".concat(r,"/universe/").concat(e,"/queries/page"):"/universe/".concat(e,"/queries/page"),h={};return o&&(h.startTime=o),a&&(h.endTime=a),Tf(s)&&(h.query=s),l&&l!==Lz&&(h.dbName=l),h.sortBy=Cf(u)?"dbName":u,h.direction=Cf(c)?"DESC":c,h.offset=n*i,h.needTotalCount=!0,h.limit=i,nq.get(d,{params:h})},this.fetchQueriesStatsPage=function(e,t){var n=t.currentTablePage,r=t.apiUrl,i=t.pageSize,o=t.startTime,a=t.endTime,s=t.searchInput,l=t.database,u=t.sortBy,c=t.sortDirection,d=t.queryType,h=Tf(r)?"".concat(r,"/universe/").concat(e,"/queries/stats/page"):"/universe/".concat(e,"/queries/stats/page"),p={};return d&&(p.queryType=d),o&&(p.startTime=o),a&&(p.endTime=a),Tf(s)&&(p.query=s),l&&l!==Lz&&(p.namespaceName=l),p.sortBy=Cf(u)?"eps":u,p.direction=Cf(c)?"DESC":c,p.offset=n*i,p.needTotalCount=!0,p.limit=i,p.excludeTpUser=!0,nq.get(h,{params:p})},this.fetchNamespaceSchemas=function(e,t,n){var r=Tf(n)?"".concat(n,"/universe/").concat(e,"/namespaces/").concat(t,"/schemas"):"/universe/".concat(e,"/namespaces/").concat(t,"/schemas");return nq.get(r).then((function(e){return e.data}))},this.fetchQueryStats=function(e,t,n){var r={},i=t.startTime,o=t.endTime,a=t.queryId,s=t.dbId;i&&(r.startTime=i),o&&(r.endTime=o),a&&(r.queryId=a),s&&(r.dbId=s);var l=Tf(n)?"".concat(n,"/universe/").concat(e,"/queries/stats"):"/universe/".concat(e,"/queries/stats");return nq.get(l,{params:r}).then((function(e){return e.data}))},this.fetchTablesPage=function(e,t){var n=t.currentTablePage,r=t.apiUrl,i=t.pageSize,o=t.startDateTime,a=t.endDateTime,s=t.searchInput,l=t.database,u=t.schema,c=t.sortBy,d=t.sortDirection,h=Tf(r)?"".concat(r,"/universe/").concat(e,"/tables/page"):"/universe/".concat(e,"/tables/page"),p={};return o&&(p.startTime=o),a&&(p.endTime=a),Tf(s)&&(p.tableName=s),l&&l!==Lz&&(p.namespaceName=l),u&&u!==Lz&&(p.schemaName=u),p.sortBy=Cf(c)?"namespaceName":c,p.direction=Cf(d)?"DESC":d,p.offset=n*i,p.needTotalCount=!0,p.limit=i,nq.get(h,{params:p})},this.fetchNamespaces=function(e,t){var n=Tf(t)?"".concat(t,"/universe/").concat(e,"/namespaces"):"/universe/".concat(e,"/namespaces");return nq.get(n).then((function(e){return e.data}))},this.fetchQueriesDatabases=function(e,t){var n=Tf(t)?"".concat(t,"/universe/").concat(e,"/databases"):"/universe/".concat(e,"/databases");return nq.get(n).then((function(e){return e.data}))},this.fetchAnomaliesById=function(e,t,n){var r=Tf(n)?"".concat(n,"/universe/").concat(e,"/anomalies/").concat(t):"/universe/".concat(e,"/anomalies/").concat(t);return nq.get(r).then((function(e){return e.data}))},this.fetchGraphs=function(e,t,n){var r=Tf(n)?"".concat(n,"/universe/").concat(e,"/graphs"):"/universe/".concat(e,"/graphs");return nq.post(r,t).then((function(e){return e.data}))},this.fetchQueries=function(e,t,n){var r={};kf(n)&&(r.db_id=null==n?void 0:n.dbId,r.query_id=null==n?void 0:n.queryId,r.user_id=null==n?void 0:n.userId);var i=Tf(t)?"".concat(t,"/universe/").concat(e,"/queries"):"/universe/".concat(e,"/queries");return nq.get(i,{params:r}).then((function(e){return e.data}))},this.fetchCustomerMetadataList=function(e){var t=Tf(e)?"".concat(e,"/customer/metadata"):"/customer/metadata";return nq.get(t).then((function(e){return e.data}))},this.fetchCustomerMetadataById=function(e,t){var n=Tf(t)?"".concat(t,"/customer/").concat(e,"/metadata"):"/customer/".concat(e,"/metadata");return nq.get(n).then((function(e){return e.data}))},this.updateCustomerMetadata=function(e,t,n){var r=Tf(n)?"".concat(n,"/customer/").concat(e,"/metadata"):"/customer/".concat(e,"/metadata");return nq.put(r,t).then((function(e){return e.data}))},this.deleteCustomerMetadataById=function(e,t){var n=Tf(t)?"".concat(t,"/customer/").concat(e,"/metadata"):"/customer/".concat(e,"/metadata");return nq.delete(n).then((function(e){return e.data}))},this.fetchUniverseMetadataList=function(e,t,n){var r=Tf(e)?"".concat(e,"/universe/metadata"):"/universe/metadata",i={customer_uuid:t,universe_uuid:n};return nq.get(r,{params:i}).then((function(e){return e.data}))},this.getUniverseMetadata=function(e,t){var n=Tf(t)?"".concat(t,"/universe/").concat(e,"/metadata"):"/universe/".concat(e,"/metadata");return nq.get(n).then((function(e){return e.data}))},this.updateUniverseMetadata=function(e,t,n){var r=Tf(n)?"".concat(n,"/universe/").concat(e,"/metadata"):"/universe/".concat(e,"/metadata");return nq.put(r,t).then((function(e){return e.data}))},this.deleteUniverseMetadata=function(e,t){var n=Tf(t)?"".concat(t,"/universe/").concat(e,"/metadata"):"/universe/".concat(e,"/metadata");return nq.delete(n).then((function(e){return e.data}))},this.fetchUniverseListDetails=function(e,t,n){var r={customer_uuid:t,universe_uuid:n},i=Tf(e)?"".concat(e,"/universe/details"):"/universe/details";return nq.get(i,{params:r}).then((function(e){return e.data}))},this.fetchUniverseById=function(e,t){var n=Tf(t)?"".concat(t,"/universe/").concat(e,"/details"):"/universe/".concat(e,"/details");return nq.get(n).then((function(e){return e.data}))},this.fetchAnomalyDetectionStatus=function(e,t){var n=Tf(t)?"".concat(t,"/universe/").concat(e,"/anomaly_detection_status"):"/universe/".concat(e,"/anomaly_detection_status");return nq.get(n).then((function(e){return e.data}))},this.scheduleAnomalyDetectionStatus=function(e,t){var n=Tf(t)?"".concat(t,"/universe/").concat(e,"/schedule_anomaly_detection"):"/universe/".concat(e,"/schedule_anomaly_detection");return nq.post(n,null).then((function(e){return e.data}))},this.fetchRuntimeConfigs=function(e,t){void 0===e&&(e="00000000-0000-0000-0000-000000000000");var n=Tf(t)?"".concat(t,"/runtime_config_entry/").concat(e):"/runtime_config_entry/".concat(e);return nq.get(n).then((function(e){return e.data}))},this.fetchSpecificRuntimeConfigs=function(e,t,n){void 0===e&&(e="00000000-0000-0000-0000-000000000000");var r=Tf(n)?"".concat(n,"/runtime_config_entry/").concat(e):"/runtime_config_entry/".concat(e);return nq.get(r,{params:t.reduce((function(e,t){return e.append("path",t),e}),new URLSearchParams)}).then((function(e){return e.data}))},this.updateRuntimeConfig=function(e,t,n,r){void 0===e&&(e="00000000-0000-0000-0000-000000000000");var i=Tf(r)?"".concat(r,"/runtime_config_entry/").concat(e,"/").concat(t):"/runtime_config_entry/".concat(e,"/").concat(t);return nq.put(i,{value:n}).then((function(e){return e.data}))},this.deleteRuntimeConfig=function(e,t,n){void 0===e&&(e="00000000-0000-0000-0000-000000000000");var r=Tf(n)?"".concat(n,"/runtime_config_entry/").concat(e,"/").concat(t):"/runtime_config_entry/".concat(e,"/").concat(t);return nq.delete(r).then((function(e){return e.data}))},this.fetchAnomalyGroups=function(e,t,n,r){var i=new URLSearchParams;if(t&&i.append("startTime",t),n&&i.append("endTime",n),null===t&&null===n)return{};var o=Tf(r)?"".concat(r,"/universe/").concat(e,"/anomaly_groups/by_type?").concat(i.toString()):"/universe/".concat(e,"/anomaly_groups/by_type?").concat(i.toString());return nq.get(o).then((function(e){return e.data}))},this.fetchAnomalyGroupsByType=function(e,t,n,r,i){var o=Tf(i)?"".concat(i,"/universe/").concat(e,"/anomaly_groups?startTime=").concat(t,"&endTime=").concat(n,"&type=").concat(r):"/universe/".concat(e,"/anomaly_groups?startTime=").concat(t,"&endTime=").concat(n,"&type=").concat(r);return nq.get(o).then((function(e){return e.data}))},this.fetchAnomalyGroupById=function(e,t,n,r,i){if(null===n&&null===r)return{};var o=Tf(i)?"".concat(i,"/universe/").concat(e,"/anomaly_groups/").concat(t,"?startTime=").concat(n,"&endTime=").concat(r):"/universe/".concat(e,"/anomaly_groups/").concat(t,"?startTime=").concat(n,"&endTime=").concat(r);return nq.get(o).then((function(e){return e.data}))}},iq=new rq,oq=require("plotly.js/lib/index-basic.js"),aq=0,sq=function(e){var t,n,r=new Map,i=new Map,o=new Map,a=new Map,s=new Map,l=null==e?void 0:e.universeDetails;if(l){var u=l.nodeDetailsSet,c=l.clusters,d=hq(c),h=function(e){if(Sf(e)){var t=e.filter((function(e){return"ASYNC"===e.clusterType}));if(1===t.length)return t[0]}return null}(c),p=d.placementInfo.cloudList[0].regionList,f=null===(n=null===(t=null==h?void 0:h.placementInfo)||void 0===t?void 0:t.cloudList[0])||void 0===n?void 0:n.regionList,m=d.uuid,v=null==h?void 0:h.uuid,g=p.map((function(e){return e.code})),y=null==f?void 0:f.map((function(e){return e.code}));r.set("Primary",{cluster:"Primary",regions:g,uuid:m}),h&&i.set("Async",{cluster:"Read Replica",regions:y,uuid:v});for(var b=0,w=u;b<w.length;b++){var x=w[b],_=x.cloudInfo,S=x.placementUuid,k=x.nodeName;s.set(k,{nodeName:k,ip:_.private_ip}),S===m?o.set(_.az,{zoneName:_.az,nodeNames:cq(u,_.az,m),isReadReplica:!1,regionName:_.region}):a.set(_.az,{zoneName:_.az,nodeNames:cq(u,_.az,v),isReadReplica:!0,regionName:_.region})}}return{primaryZoneMapping:o,asyncZoneMapping:a,primaryClusterMapping:r,asyncClusterMapping:i,nodeIPMapping:s}},lq=function(e){var t=new Map,n=new Map,r=new Map,i=new Map,o=null==e?void 0:e.data;if(o)for(var a=0,s=o;a<s.length;a++){var l=s[a],u=l.cloud_info,c=l.is_read_replica;c?n.set("Async",{cluster:"Read Replica",regions:dq(o,!0)}):t.set("Primary",{cluster:"Primary",regions:dq(o,!1)}),c?i.set(u.zone,{zoneName:u.zone,nodeNames:uq(o,u.zone,!0),isReadReplica:c,regionName:u.region}):r.set(u.zone,{zoneName:u.zone,nodeNames:uq(o,u.zone,!1),isReadReplica:c,regionName:u.region})}return{primaryZoneMapping:r,asyncZoneMapping:i,primaryClusterMapping:t,asyncClusterMapping:n}},uq=function(e,t,n){for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=a.name,l=a.cloud_info,u=a.is_read_replica;t===l.zone&&u===n&&r.push(s)}return r},cq=function(e,t,n){for(var r=[],i=0,o=e;i<o.length;i++){var a=o[i],s=a.nodeName,l=a.cloudInfo,u=a.placementUuid;t===l.az&&u===n&&r.push(s)}return r},dq=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r],a=o.cloud_info;o.is_read_replica!==t||n.includes(a.region)||n.push(a.region)}return n},hq=function(e){if(Sf(e)){var t=e.filter((function(e){return"PRIMARY"===e.clusterType}));if(1===t.length)return t[0]}return null};var pq=function(){return aq+=1},fq=function(e,t,n){var r,i,o,a,s,l,u=new Set,c={},d=null===(o=null===(i=null===(r=e.layout)||void 0===r?void 0:r.metadata)||void 0===i?void 0:i.currentGroupBy)||void 0===o?void 0:o[0],h=null;if(n){var p=t.filter((function(t,n){return n>0&&t.name===e.name}));if(p.length>=2){var f=p.find((function(t){var n,r,i;return t.name===e.name&&(null===(i=null===(r=null===(n=null==e?void 0:e.layout)||void 0===n?void 0:n.metadata)||void 0===r?void 0:r.currentGroupBy)||void 0===i?void 0:i[0])===exports.GraphLabel.TABLET_ID}));if(f)return Array.from(u)}else h=t.find((function(t,n){return n>0&&t.name===e.name}))}else h=t.find((function(t,n){return n>0&&t.name===e.name}));return null===(l=null===(s=null===(a=e.layout)||void 0===a?void 0:a.metadata)||void 0===s?void 0:s.supportedGroupBy)||void 0===l||l.map((function(e){e.label===d&&(c=e),e.label!==exports.GraphLabel.QUERY_ID&&u.add(e.name)})),u=Array.from(u),_f(null==h?void 0:h.groupBy)&&u.sort((function(e,t){return e===c.name?-1:t===c.name?1:0})),u},mq=function(e,t,n,r,i,o){var a,s;void 0===o&&(o=!1);var l=new Set,u=new Set,c=e===exports.MetricMeasure.OUTLIER||e===exports.MetricMeasure.OUTLIER_TABLES;return u=(null===(a=null==t?void 0:t.layout)||void 0===a?void 0:a.type)===Bz&&kf(t)&&c&&n===exports.GraphType.MULTI_SUPPORTING?r?fq(t,i,o):Array.from(u):o?fq(t,i,o):Array.from(u),c&&kf(t)?(t.data.forEach((function(e){l.add(e.name)})),l=Array.from(l)):(null===(s=null==t?void 0:t.layout)||void 0===s?void 0:s.type)===Bz&&kf(t)&&(l=r?fq(t,i,o):Array.from(new Set)),{uniqueOperations:l,groupByOperations:u}},vq=function(e,t){Tf(null==t?void 0:t.cluster)&&(null==t?void 0:t.cluster)!==Lz?e.clusterUuid=[null==t?void 0:t.cluster]:delete e.clusterUuid,Tf(null==t?void 0:t.region)&&(null==t?void 0:t.region)!==Lz?e.regionCode=[null==t?void 0:t.region]:delete e.regionCode,Tf(null==t?void 0:t.zone)&&(null==t?void 0:t.zone)!==Lz?e.azCode=[null==t?void 0:t.zone]:delete e.azCode,Tf(null==t?void 0:t.node)&&(null==t?void 0:t.node)!==Lz?e.instanceName=[null==t?void 0:t.node]:delete e.instanceName},gq=function(e,t,n,r,i,o,a,s){var l,u,c=[];if(n){var d=o.metricMeasure===exports.MetricMeasure.OUTLIER_TABLES?pW[r]:hW[r],h=o.metricMeasure===exports.MetricMeasure.OUTLIER_TABLES?null===(l=fW.find((function(e){return e.name===d})))||void 0===l?void 0:l.metrics:null===(u=mW.find((function(e){return e.name===d})))||void 0===u?void 0:u.metrics;return null==h?void 0:h.map((function(e){var t={universeUuid:[null==o?void 0:o.universeUuid]};return vq(t,o),{start:null==o?void 0:o.formattedStartDate,end:null==o?void 0:o.formattedEndDate,name:e,filters:t,settings:{splitMode:(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OVERALL?Pz.NONE:null==o?void 0:o.outlierType,splitType:(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OVERALL?Rz.NONE:(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OUTLIER?Rz.NODE:Rz.TABLE,splitCount:null==o?void 0:o.numNodes,returnAggregatedValue:(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OUTLIER,aggregatedValueFunction:Nz.AVERAGE}}}))}if(!e&&!t)return null==a||a.map((function(e){var t=e.settings,n=e.filters,r=e.start,i=e.end;return r!==(null==o?void 0:o.formattedStartDate)&&(e.start=null==o?void 0:o.formattedStartDate),i!==(null==o?void 0:o.formattedEndDate)&&(e.end=null==o?void 0:o.formattedEndDate),vq(n,o),t.returnAggregatedValue=(null==o?void 0:o.metricMeasure)!==exports.MetricMeasure.OVERALL,t.splitType=(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OVERALL?Rz.NONE:(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OUTLIER?Rz.NODE:Rz.TABLE,t.splitMode=(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OVERALL?Pz.NONE:null==o?void 0:o.outlierType,t.splitCount=null==o?void 0:o.numNodes,t})),a;if(e&&!t){var p=(null==i?void 0:i.category)===exports.AnomalyCategory.SQL?Wz:Vz;p.map((function(e,t){var n,r,a,s,l,u,d,h,f,m,v,g={start:null==o?void 0:o.formattedStartDate,end:null==o?void 0:o.formattedEndDate,name:e,filters:{universeUuid:[null==o?void 0:o.universeUuid],queryId:null===(r=null===(n=null==i?void 0:i.mainGraphs[0])||void 0===n?void 0:n.filters)||void 0===r?void 0:r.queryId},settings:{splitMode:(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OVERALL?Pz.NONE:null==o?void 0:o.outlierType,splitType:(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OVERALL?Rz.NONE:(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OUTLIER?Rz.NODE:Rz.TABLE,splitCount:null==o?void 0:o.numNodes,returnAggregatedValue:(null==o?void 0:o.metricMeasure)!==exports.MetricMeasure.OVERALL,aggregatedValueFunction:Nz.AVERAGE}};vq(g.filters,o),(null==i?void 0:i.category)===exports.AnomalyCategory.SQL&&(g.filters.queryId=null===(s=null===(a=null==i?void 0:i.mainGraphs[0])||void 0===a?void 0:a.filters)||void 0===s?void 0:s.queryId,e.startsWith("active_session_history")&&(g.groupBy=[exports.GraphLabel.WAIT_EVENT_TYPE])),(null==i?void 0:i.category)===exports.AnomalyCategory.DB&&(g.filters.dbName=null===(u=null===(l=null==i?void 0:i.mainGraphs[0])||void 0===l?void 0:l.filters)||void 0===u?void 0:u.dbName,g.filters.tableName=null===(h=null===(d=null==i?void 0:i.mainGraphs[0])||void 0===d?void 0:d.filters)||void 0===h?void 0:h.tableName,g.filters.tabletId=null===(m=null===(f=null==i?void 0:i.mainGraphs[0])||void 0===f?void 0:f.filters)||void 0===m?void 0:m.tabletId,p.length-1!==t&&(g.aggregatedLineSettings=null===(v=null==i?void 0:i.mainGraphs[0])||void 0===v?void 0:v.aggregatedLineSettings),p.length-1===t?g.groupBy=[exports.GraphLabel.WAIT_EVENT_TYPE]:g.groupBy=[exports.GraphLabel.TABLET_ID]),c.push(g)}))}else if(e&&t){var f=(null==s?void 0:s.dbId)&&Tf(null==s?void 0:s.dbId)&&(null==s?void 0:s.queryId)&&Tf(null==s?void 0:s.queryId);(f?Wz:Gz).map((function(e){var n,r={start:null==o?void 0:o.formattedStartDate,end:null==o?void 0:o.formattedEndDate,name:e,filters:{universeUuid:[null!==(n=null==s?void 0:s.universeId)&&void 0!==n?n:""]},settings:{splitMode:(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OVERALL?Pz.NONE:null==o?void 0:o.outlierType,splitType:(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OVERALL?Rz.NONE:(null==o?void 0:o.metricMeasure)===exports.MetricMeasure.OUTLIER?Rz.NODE:Rz.TABLE,splitCount:null==o?void 0:o.numNodes,returnAggregatedValue:(null==o?void 0:o.metricMeasure)!==exports.MetricMeasure.OVERALL,aggregatedValueFunction:Nz.AVERAGE}};vq(r.filters,o),t&&(f&&(null==s?void 0:s.dbId)&&(r.filters.dbId=[s.dbId]),f&&(null==s?void 0:s.userId)&&(r.filters.userId=[s.userId]),(null==s?void 0:s.queryId)&&(r.filters.queryId=[s.queryId])),e.startsWith("active_session_history")&&(r.groupBy=[exports.GraphLabel.WAIT_EVENT_TYPE]),c.push(r)}))}return c},yq=["#8c564b","#4754DB","#2FB3FF","#BB42BC","#20A7C9","#e377c2","#7f7f7f","#bcbd22","#17becf"],bq={Queries:"#0B1117",Cpu:"#56C188",DiskIO:"#E48B2C",WaitOnCondition:"#B7C3CB",Network:"#8047F5",Client:"#8046EB",IO:"#3884FB",LWLock:"#DA1515",Lock:"#E34F6E",DB:"#2FB3FF",NODE:"#B39CFF",SQL:"#7DADFF",APP:"#45C8E2",INFRA:"#507CE1"},wq=function(e,t){var n=120;if(Tf(e)||Tf(t)){var r=new Date(e),i=Gl(new Date(t),r);5===i?n=180:i>5&&i<=23?n=600:i>23&&i<=47?n=1e3:i>47&&i<=167?n=2200:i>=167&&(n=4200)}return n},xq=function(e){if(!e.length)return[];e.sort((function(e,t){return new Date(e.startTime).getTime()-new Date(t.startTime).getTime()}));for(var t=[e[0]],n=1;n<e.length;n++){var r=t[t.length-1],i=e[n];new Date(r.endTime)>=new Date(i.startTime)?r.endTime=new Date(Math.max(new Date(r.endTime).getTime(),new Date(i.endTime).getTime())).toISOString():t.push(i)}return t},_q=a.makeStyles((function(){return{viewQueryDataButton:{alignItems:"end"}}})),Sq=function(i){var a=i.appName,s=i.apiUrl,l=i.universeData,u=i.clusterRegionItem,c=i.zoneNodeItem,d=i.isPrimaryCluster,h=i.viewQueryData,p=i.cluster,f=i.region,m=i.metricMeasure,v=i.outlierType,g=i.filterDuration,y=i.numNodes,b=i.startDateTime,w=i.endDateTime,x=i.timezone,_=i.shouldShowAdvancedData,S=i.isHistoricalQueryView,k=i.shouldAnalyzeTopK,T=i.onZoneNodeSelected,C=i.onClusterRegionSelected,E=i.onOutlierTypeSelected,O=i.onSplitTypeSelected,D=i.onNumNodesChanged,M=i.onSelectedFilterDuration,A=i.onStartDateChange,I=i.onViewQueryData,P=i.onEndDateChange,R=i.onSelectedQuery,N=i.onRefresh,j=function(e){return(null==e?void 0:e.universeDetails)?sq(e):lq(e)}(l),L=j.primaryZoneMapping,F=j.asyncZoneMapping,B=j.primaryClusterMapping,U=j.asyncClusterMapping,H=_q(),Y=gW(),z=t.useState(L),W=z[0],G=z[1],V=t.useState(F),q=V[0],Q=V[1],$=t.useState(""),X=$[0],K=$[1],Z=t.useState(jf(w,If.YB_DATE_TIME_TIMESTAMP,x)),J=Z[0],ee=Z[1],te=t.useState(jf(b,If.YB_DATE_TIME_TIMESTAMP,x)),ne=te[0],re=te[1],ie=t.useState(!1),oe=ie[0],ae=ie[1];t.useEffect((function(){G(L)}),[]),n.useQuery([exports.QUERY_KEY.fetchSpecificRuntimeConfigsKey],(function(){return iq.fetchSpecificRuntimeConfigs(Xz,[Kz.SHOW_ADVANCED_VIEW],s)}),{onSuccess:function(e){ae("true"===e[0].value)}}),t.useEffect((function(){var e=new Map;if(f!==Lz||p!==Lz){var t=function(e,t,n,r){var i=Array.from(e).filter((function(e){return t?e[1].regionName===r:n?!e[1].isReadReplica:e[1].isReadReplica})),o=i?new Map(i.map((function(e){return[e[0],e[1]]}))):new Map;return o}(d?L:F,f!==Lz,d,f!==Lz?f:p);null!==f&&d?(G(t),Q(e)):null===f||d?null!==p&&d?(G(t),Q(e)):null===p||d||(G(e),Q(t)):(G(e),Q(t))}else G(L),Q(F)}),[f,p]),t.useEffect((function(){new Date(b)<new Date(w)?(K(""),ee(jf(w,If.YB_DATE_TIME_TIMESTAMP,x)),re(jf(b,If.YB_DATE_TIME_TIMESTAMP,x))):K("Start Date is greater than end date")}),[b,w]);var se,le=window.location.href,ue=le.substring(0,le.lastIndexOf("/")),ce=new URLSearchParams(window.location.search),de=ce.get("duration"),he=ce.get("startTime"),pe=ce.get("endTime"),fe=ce.get("dbId"),me=ce.get("userId"),ve=ce.get("universeId"),ge=new URLSearchParams;Tf(de)&&ge.append("duration",de),Tf(he)&&ge.append("startTime",he),Tf(pe)&&ge.append("endTime",pe),Tf(fe)&&ge.delete("dbId",fe),Tf(me)&&ge.delete("userId",me),Tf(ve)&&ge.delete("universeId",ve),se="".concat(ue).concat(ge.toString()?"?".concat(ge.toString()):"");var ye=new URL(window.location.href);if(a===exports.AppName.YBM){["universeId","queryId","dbId","userId"].forEach((function(e){return ye.searchParams.delete(e)}))}return e.jsxs(e.Fragment,{children:[!k&&e.jsx(r.Box,{children:e.jsxs(r.Breadcrumbs,ot({className:Y.breadCrumb,separator:e.jsx(o.NavigateNext,{fontSize:"small"}),"aria-label":"breadcrumb","data-testid":"GenericHeaderBreadcrumb"},{children:[a!==exports.AppName.YBM&&e.jsx("a",ot({className:Y.detectedAnomaliesLink,href:se},{children:e.jsx("span",ot({className:Y.anomalyHeaderBreadCrumbText},{children:"Queries"}))})),a===exports.AppName.YBM&&e.jsx(r.Link,ot({className:Y.detectedAnomaliesLink,component:Un,variant:"h5",onClick:function(){null==R||R(null),window.history.pushState({},"",ye.toString())},to:"#"},{children:e.jsx("span",ot({className:Y.breadCrumbText},{children:"Queries"}))})),e.jsx(r.Typography,ot({variant:"h5"},{children:e.jsx("span",ot({className:dt(Y.anomalyTypeBreadCrumbText)},{children:"Historical View"}))}))]}))}),e.jsxs(r.Box,ot({display:"flex",flexDirection:"column",mt:2},{children:[e.jsxs(r.Box,ot({display:"flex",flexDirection:"row"},{children:[e.jsx(r.Box,ot({ml:2,mt:2.5},{children:e.jsx(RW,{selectedItem:u,onClusterRegionSelected:C,primaryClusterToRegionMap:B,asyncClusterToRegionMap:U})})),e.jsx(r.Box,ot({mt:2.5},{children:e.jsx(IW,{selectedItem:c,onZoneNodeSelected:T,primaryZoneToNodesMap:W,asyncZoneToNodesMap:q})})),e.jsxs(r.Box,ot({flex:1,display:"flex",flexDirection:"row-reverse",alignSelf:"center",mr:4,alignItems:"flex-end"},{children:[e.jsx(r.Box,ot({mt:2.5,mr:1.5},{children:e.jsxs(Ni,ot({variant:"secondary",type:"button","data-testid":"SecondaryDashboardHeaderRefreshButton",size:a===exports.AppName.YBA?"large":"medium",onClick:function(){return N()}},{children:[e.jsx("i",{className:"fa fa-refresh"})," Refresh"]}))})),e.jsx(r.Box,ot({mr:2,mt:2.5},{children:e.jsx(Rl,ot({className:dt(Y.selectBox,Y.overrideMuiInput),"data-testid":"SecondaryDashboardTimeFilterSelect",value:g},{children:nW.map((function(t){return e.jsx(r.MenuItem,ot({value:t.value,onClick:function(){M(t.value)},className:dt(Y.menuItem,Y.regularText)},{children:t.label}),"duration-".concat(t.label))}))}))})),g===tW.CUSTOM&&e.jsxs(e.Fragment,{children:[e.jsx(r.Box,ot({style:{marginTop:"4px"}},{children:e.jsx(Ff,{className:Y.dateTimePicker,dateTimeLabel:"",value:J,defaultDateTimeValue:J,onChange:P,errorMsg:X})})),e.jsx(r.Box,ot({style:{marginTop:"4px"}},{children:e.jsx(Ff,{className:Y.dateTimePicker,value:ne,dateTimeLabel:"",defaultDateTimeValue:ne,onChange:A})}))]})]}))]})),e.jsxs(r.Box,ot({display:"flex",flexDirection:"row"},{children:[e.jsx(r.Box,ot({mt:2},{children:e.jsx(EW,{onSplitTypeSelected:O,metricSplitSelectors:Yz})})),_&&!S&&e.jsx(r.Box,ot({flex:1,display:"flex",flexDirection:"row-reverse",alignSelf:"center",mr:4},{children:e.jsx(r.Box,{children:e.jsx(Ni,ot({variant:"pill",className:H.viewQueryDataButton,"data-testid":"PrimaryDashboardViewQueryData"},{children:e.jsx("span",ot({className:Y.redirectLinkText,onClick:I},{children:h?"View RCAs":oe?"Advanced":""}))}))})}))]})),m!==exports.MetricMeasure.OVERALL&&e.jsx(r.Box,ot({mt:2},{children:e.jsx(DW,{outlierType:v,metricOutlierSelectors:zz,onOutlierTypeSelected:E,onNumNodesChanged:D,selectedNumNodes:y})}))]}))]})},kq=function(n){var i=n.appName,a=n.filterDuration,s=n.timezone,l=n.endDateTime,u=n.startDateTime,c=n.anomalyData,d=n.onSelectedFilterDuration,h=n.onStartDateChange,p=n.onEndDateChange,f=n.onSplitTypeSelected,m=n.onSelectedIssue,v=gW(),g=t.useState(jf(l,If.YB_DATE_TIME_TIMESTAMP,s)),y=g[0],b=g[1],w=t.useState(jf(u,If.YB_DATE_TIME_TIMESTAMP,s)),x=w[0],_=w[1],S=t.useState(""),k=S[0],T=S[1];t.useEffect((function(){new Date(u)<new Date(l)?(T(""),b(jf(l,If.YB_DATE_TIME_TIMESTAMP,s)),_(jf(u,If.YB_DATE_TIME_TIMESTAMP,s))):T("Start Date is greater than end date")}),[u,l]);var C=window.location.href,E=C.substring(0,C.lastIndexOf("/")),O=window.location.search?"".concat(E).concat(window.location.search):E;return e.jsx(r.Box,ot({display:"flex",flexDirection:"row",width:"100%"},{children:e.jsxs(r.Box,ot({display:"flex",justifyContent:"flex-start",width:"100%"},{children:[e.jsx(r.Box,ot({flexBasis:i===exports.AppName.YBM?"20%":"30%",p:2,sx:{alignContent:"center"}},{children:e.jsx(r.Box,{children:e.jsxs(r.Breadcrumbs,ot({className:v.breadCrumb,separator:e.jsx(o.NavigateNext,{fontSize:"small"}),"aria-label":"breadcrumb","data-testid":"AnomalyHeaderBreadcrumb"},{children:[i!==exports.AppName.YBM&&e.jsx("a",ot({className:v.detectedAnomaliesLink,href:O},{children:e.jsx("span",ot({className:v.anomalyHeaderBreadCrumbText},{children:"Detected Anomalies"}))})),i===exports.AppName.YBM&&e.jsx(r.Link,ot({className:v.detectedAnomaliesLink,component:Un,variant:"h5",onClick:function(){null==m||m(null),window.history.pushState({},"",window.location.href)},to:"#"},{children:e.jsx("span",ot({className:v.breadCrumbText},{children:"Detected Anomalies"}))})),e.jsx(r.Typography,ot({variant:"h5"},{children:e.jsx("span",ot({className:dt(v.anomalyTypeBreadCrumbText)},{children:(null==c?void 0:c.type)?Zz[c.type]:"Unknown Anomaly"}))}))]}))})})),e.jsx(r.Box,ot({flexBasis:i===exports.AppName.YBM?"85%":"70%",p:2,sx:{textAlign:"center"}},{children:e.jsxs(r.Box,ot({flex:1,display:"flex",flexDirection:"row-reverse",alignItems:"center"},{children:[e.jsx(r.Box,ot({ml:a===eW.CUSTOM?0:2},{children:e.jsx(Rl,ot({className:dt(v.selectBox,v.overrideMuiInput),"data-testid":"AnomalyHeaderBreadcrumbTimeFilterSelect",value:a},{children:nW.map((function(t){return e.jsx(r.MenuItem,ot({value:t.value,onClick:function(){d(t.value)},className:dt(v.menuItem,v.regularText)},{children:t.label}),"duration-".concat(t.label))}))}))})),a===eW.CUSTOM&&e.jsxs(e.Fragment,{children:[e.jsx(r.Box,ot({style:{marginTop:"4px"}},{children:e.jsx(Ff,{dateTimeLabel:"",className:v.dateTimePicker,defaultDateTimeValue:y,value:y,onChange:p,errorMsg:k})})),e.jsx(r.Box,ot({style:{marginTop:"4px"}},{children:e.jsx(Ff,{className:v.dateTimePicker,dateTimeLabel:"",defaultDateTimeValue:x,value:x,onChange:h})}))]}),e.jsx(r.Box,ot({style:{marginTop:"4px"}},{children:e.jsx(EW,{onSplitTypeSelected:f,metricSplitSelectors:Yz,anomalyData:c})}))]}))}))]}))}))};function Tq(e){var n=t.useRef();return t.useEffect((function(){n.current=e}),[e]),n.current}var Cq,Eq,Oq,Dq,Mq,Aq,Iq,Pq,Rq,Nq=require("plotly.js/lib/index-basic.js"),jq=1650,Lq=a.makeStyles((function(){return{outlierOnlyButton:{borderRadius:"8px"},metricPanel:{padding:"1px",margin:"5px 7.5px",position:"relative",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"fit-content","& .gtitle":{fontWeight:"bold !important"}},overideMuiSelect:{"& .MuiInput-input":{color:"#2b59c3 !important",background:"linear-gradient(0deg, rgba(43, 89, 195, 0.1), rgba(43, 89, 195, 0.1)), #FFFFFF"},"& .MuiInput-root":{color:"#2b59c3 !important",background:"linear-gradient(0deg, rgba(43, 89, 195, 0.1), rgba(43, 89, 195, 0.1)), #FFFFFF"}},overrideDefaultMuiSelect:{maxHeight:"200px",overflowY:"scroll","& .MuiInput-root":{height:"32px"}},overrideDefaultMuiFormControl:{flexDirection:"row","& .MuiFormControl-root":{flexDirection:"row"}},menuItem:{fontWeight:300,fontSize:"14px",padding:"15px 20px",height:"52px"},outlierButtonContainer:{position:"absolute",top:"20px",right:"50px",display:"flex",flex:1,flexDirection:"row"},prometheusIcon:{position:"absolute",top:"15px",right:"15px",marginLeft:"17px",marginTop:"5px"}}})),Fq=ae.default.memo((function(n){var i,o=n.metricData,a=n.appName,s=n.metricKey,l=n.containerWidth,u=n.metricMeasure,c=n.operations,d=n.groupByOperations,h=n.height,p=n.timezone,f=n.graphTitle,m=n.graphType,v=n.queryData,g=n.isHistoricalQueryView,y=n.showTitle,b=void 0===y||y,w=n.onSelectAshLabel,x=Lq(),_=c,S=t.useState(null),k=S[0],T=S[1],C=t.useState(null),E=C[0],O=C[1],D=t.useState(null==d?void 0:d[0]),M=D[0],A=D[1],I=t.useState(null==_?void 0:_[0]),P=I[0],R=I[1],N=t.useRef(null),j=Tq(o),L=function(e){var t=a===exports.AppName.YBA||a===exports.AppName.WEB?m===exports.GraphType.SINGLE_SUPPORTING?1650:600:1200;a===exports.AppName.YBM&&(t=m===exports.GraphType.SINGLE_SUPPORTING?1200:600);var n=e-60-(exports.GraphType.SINGLE_SUPPORTING,23),r=Math.ceil(n/t);return Math.floor(n/r)-0},F=function(){var e,t=null===(e=document.getElementById(s))||void 0===e?void 0:e.parentElement;return t?.97*t.clientWidth:jq},B=function(e){var t,n,r,i,l,d,g,y,w,x,_,S,k,T=of(o,5);if(kf(T)){var C=null!=h?h:400,O=a===exports.AppName.YBA||a===exports.AppName.WEB?jq:1200;a===exports.AppName.YBA||a===exports.AppName.WEB?O=m===exports.GraphType.SINGLE_SUPPORTING?jq:1200:a===exports.AppName.YBM&&(exports.GraphType.SINGLE_SUPPORTING,O=1200);var D=m===exports.GraphType.MAIN_RCA?F():L(O),M=e||(null!=E?E:c[0]);!c.length&&!e||u!==exports.MetricMeasure.OUTLIER&&u!==exports.MetricMeasure.OUTLIER_TABLES||(T.data=T.data.filter((function(e){return e.name===M}))),T.data.forEach((function(e,t){var n,r,i,o,a,s,l,c,d;if(e.marker={color:yq[t%yq.length]},e.instanceName&&e.name!==e.instanceName)e.fullname=e.name+" ("+e.instanceName+")",u===exports.MetricMeasure.OUTLIER&&(e.fullname=e.instanceName);else if(u!==exports.MetricMeasure.OUTLIER||e.instanceName)if(u===exports.MetricMeasure.OUTLIER_TABLES)e.fullname=e.tableName;else if((null===(n=null==T?void 0:T.layout)||void 0===n?void 0:n.type)===Bz&&u===exports.MetricMeasure.OVERALL&&(null===(o=null===(i=null===(r=null==T?void 0:T.layout)||void 0===r?void 0:r.metadata)||void 0===i?void 0:i.currentGroupBy)||void 0===o?void 0:o[0])===exports.GraphLabel.QUERY_ID){var h=null==v?void 0:v.find((function(t){return t.id.queryId===e.name}));e.fullname=null==h?void 0:h.query}else e.fullname=e.name;else e.fullname=Hz.NODE_AVERAGE;var p=e.name.length>35;(null===(a=null==T?void 0:T.layout)||void 0===a?void 0:a.type)===Bz&&u===exports.MetricMeasure.OVERALL&&(null===(c=null===(l=null===(s=null==T?void 0:T.layout)||void 0===s?void 0:s.metadata)||void 0===l?void 0:l.currentGroupBy)||void 0===c?void 0:c[0])===exports.GraphLabel.QUERY_ID?e.name=(null===(d=e.fullname)||void 0===d?void 0:d.substring(0,35))+"...":p&&u!==exports.MetricMeasure.OUTLIER?e.name=e.name.substring(0,35)+"...":u===exports.MetricMeasure.OUTLIER?e.name=e.instanceName?e.instanceName+" ("+e.name+")":Hz.NODE_AVERAGE:u===exports.MetricMeasure.OUTLIER_TABLES&&(e.name=e.namespaceName?"".concat(e.namespaceName,".").concat(e.tableName):e.tableName),t>=8&&(e.showlegend=!1),e.name===Hz.NODE_AVERAGE&&(e.line={dash:"dash"})})),Of(T.layout),kf(null===(t=T.layout)||void 0===t?void 0:t.yaxis)&&"&nbsp;µs"===(null===(n=T.layout)||void 0===n?void 0:n.yaxis.ticksuffix)&&Sf(T.data)&&Df(T.data)&&(T.data=Mf(T.data),T.layout.yaxis.ticksuffix="&nbsp;ms");var A=function(e){return Ld(Fd(new Date,e),"'[UTC]'XXX")};T.data=Af(T.data),T.layout.xaxis.hoverformat=p?"%H:%M:%S, %b %d, %Y "+A(p):"%H:%M:%S, %b %d, %Y "+A("UTC");var I=0,P=(null===(r=null==T?void 0:T.layout)||void 0===r?void 0:r.type)===Bz&&!((null===(d=null===(l=null===(i=null==T?void 0:T.layout)||void 0===i?void 0:i.metadata)||void 0===l?void 0:l.currentGroupBy)||void 0===d?void 0:d[0])===exports.GraphLabel.QUERY_ID||(null===(w=null===(y=null===(g=null==T?void 0:T.layout)||void 0===g?void 0:g.metadata)||void 0===y?void 0:y.currentGroupBy)||void 0===w?void 0:w[0])===exports.GraphLabel.CLIENT_NODE_IP)&&u===exports.MetricMeasure.OVERALL;T.data.forEach((function(e){u===exports.MetricMeasure.OUTLIER_TABLES&&(null==e?void 0:e.namespaceName)?e.hovertemplate="%{data.namespaceName}.%{data.fullname}: %{y} at %{x} <extra></extra>":e.hovertemplate="%{data.fullname}: %{y} at %{x} <extra></extra>",e.y&&P?e.y.forEach((function(e){(e=2.5*parseFloat(e))>I&&(I=e)})):e.y.forEach((function(e){(e=1.25*parseFloat(e))>I&&(I=e)}))})),0===I&&(I=1.01),T.layout.autosize=!1,T.layout.width=D,T.layout.height=C,T.layout.showlegend=!0,T.layout.title={text:b?null!=f?f:null===(x=T.layout)||void 0===x?void 0:x.title:"",x:.05,y:2.2,xref:"container",yref:"container",font:{weight:"bold",family:"Inter",size:13,color:"#0B1117"}},(null===(_=null==T?void 0:T.layout)||void 0===_?void 0:_.type)===Bz&&(T.layout.barmode="stack"),T.layout.hovermode="closest",T.layout.margin={l:45,r:m===exports.GraphType.MAIN_RCA?10:25,b:0,t:70,pad:4},kf(null===(S=T.layout)||void 0===S?void 0:S.yaxis)&&Tf(null===(k=T.layout.yaxis)||void 0===k?void 0:k.ticksuffix)?(T.layout.margin.l=70,T.layout.yaxis.range=[0,I]):T.layout.yaxis={range:[0,I]},T.layout.font={family:Uz},T.layout.legend={orientation:"h",y:-.3},T.layout.paper_bgcolor="rgba(0,0,0,0)",T.layout.plot_bgcolor="rgba(0,0,0,0)",Sf(T.data)||(T.layout.annotations=[{visible:!0,align:"center",text:"No Data",showarrow:!1,x:1,y:1}],T.layout.margin.b=40,T.layout.xaxis={range:[0,3]},T.layout.yaxis={range:[0,3]}),Nq.newPlot(s,T.data,T.layout,{displayModeBar:!1,responsive:!0});m===exports.GraphType.MAIN_RCA&&window.addEventListener("resize",(function(){var e=F();Nq.relayout(s,{width:e})}));var R=document.querySelector(".gtitle");R&&(R.style.fontWeight="bold")}};t.useEffect((function(){var e;B(null);var t=null===(e=N.current)||void 0===e?void 0:e.offsetWidth;T(t)}),[]),t.useEffect((function(){l&&Nq.relayout(s,{width:L(l)})}),[l,o,c]),t.useEffect((function(){var e,t;j&&o&&!bf(j,o)&&(k||T(null!==(t=null===(e=N.current)||void 0===e?void 0:e.offsetWidth)&&void 0!==t?t:null),B(null))}),[o]),t.useEffect((function(){B(null==c?void 0:c[0]),Sf(c)&&R(null==c?void 0:c[0])}),[d,u]);var U=E||(null==c?void 0:c[0]);return e.jsxs(r.Box,ot({id:s,className:dt(x.metricPanel),onClick:function(e){e.stopPropagation()}},{children:[e.jsxs("span",ot({ref:N,className:x.outlierButtonContainer},{children:[(null===(i=null==o?void 0:o.layout)||void 0===i?void 0:i.type)===Bz&&(u===exports.MetricMeasure.OUTLIER||u===exports.MetricMeasure.OUTLIER_TABLES||g)&&Sf(d)&&e.jsx(r.Box,ot({ml:2,mr:2},{children:e.jsx(Rl,ot({value:M,className:dt(x.outlierOnlyButton,x.overrideDefaultMuiSelect,x.overrideDefaultMuiFormControl)},{children:null==d?void 0:d.map((function(t,n){return e.jsx(r.MenuItem,ot({value:t,onClick:function(e){!function(e,t){var n;(null===(n=null==t?void 0:t.layout)||void 0===n?void 0:n.type)===Bz&&(u===exports.MetricMeasure.OUTLIER||u===exports.MetricMeasure.OUTLIER_TABLES||g)&&(null==w||w(e,t,!!g))}(t,o),A(t),e.stopPropagation()}},{children:t}),n)}))}))})),Sf(_)&&e.jsx(Rl,ot({value:P,className:dt(x.outlierOnlyButton,x.overrideDefaultMuiSelect,x.overrideDefaultMuiFormControl)},{children:null==_?void 0:_.map((function(t,n){return e.jsx(r.MenuItem,ot({className:dt(t===U&&x.overideMuiSelect,x.menuItem),value:t,onClick:function(e){R(t),function(e,t){var n;O(e),(null===(n=null==t?void 0:t.layout)||void 0===n?void 0:n.type)===Bz&&u===exports.MetricMeasure.OVERALL&&Sf(c)?null==w||w(e,t,!!g):B(e)}(t,o),e.stopPropagation()}},{children:t}),"".concat(t,"-").concat(n))}))}))]})),e.jsx("div",{})]}))}));function Bq(){return Bq=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},Bq.apply(null,arguments)}const Uq=e=>se.createElement("svg",Bq({xmlns:"http://www.w3.org/2000/svg",style:{display:"block",shapeRendering:"auto",backgroundPosition:"initial initial",backgroundRepeat:"initial initial"},width:24,height:24,viewBox:"30 30 40 40",preserveAspectRatio:"xMidYMid"},e),Cq||(Cq=se.createElement("circle",{cx:65,cy:50,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-1.8140589569160996s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-1.8140589569160996s"}))),Eq||(Eq=se.createElement("circle",{cx:61.491,cy:59.642,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-1.5873015873015872s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-1.5873015873015872s"}))),Oq||(Oq=se.createElement("circle",{cx:52.605,cy:64.772,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-1.3605442176870748s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-1.3605442176870748s"}))),Dq||(Dq=se.createElement("circle",{cx:42.5,cy:62.99,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-1.1337868480725624s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-1.1337868480725624s"}))),Mq||(Mq=se.createElement("circle",{cx:35.905,cy:55.13,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-0.9070294784580498s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-0.9070294784580498s"}))),Aq||(Aq=se.createElement("circle",{cx:35.905,cy:44.87,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-0.6802721088435374s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-0.6802721088435374s"}))),Iq||(Iq=se.createElement("circle",{cx:42.5,cy:37.01,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-0.4535147392290249s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-0.4535147392290249s"}))),Pq||(Pq=se.createElement("circle",{cx:52.605,cy:35.228,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"-0.22675736961451246s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"-0.22675736961451246s"}))),Rq||(Rq=se.createElement("circle",{cx:61.491,cy:40.358,fill:"#bfcded",r:3},se.createElement("animate",{attributeName:"r",values:"1.7999999999999998;1.7999999999999998;3;1.7999999999999998;1.7999999999999998",dur:"2.0408163265306123s",repeatCount:"indefinite",begin:"0s"}),se.createElement("animate",{attributeName:"fill",values:"#bfcded;#bfcded;#2b59c3;#bfcded;#bfcded",repeatCount:"indefinite",dur:"2.0408163265306123s",begin:"0s"}))));var Hq="data:image/svg+xml,%3csvg width='14' height='8' viewBox='0 0 14 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.0911 3.70567H2V0.60325C2 0.316226 1.82388 0 1.37381 0C0.923736 0 0.74762 0.316226 0.74762 0.60325V4.78291H12.0911L9.85455 7.08053C9.63621 7.29087 9.63621 7.6319 9.85455 7.84224C10.0729 8.05259 10.4269 8.05259 10.6452 7.84224L13.8362 4.62515C14.0546 4.41481 14.0546 4.07377 13.8362 3.86343L10.6452 0.603249C10.4269 0.392907 10.0729 0.392907 9.85455 0.603249C9.63621 0.813592 9.63621 1.15463 9.85455 1.36497L12.0911 3.70567Z' fill='%2397A5B0'/%3e%3c/svg%3e",Yq="data:image/svg+xml,%3csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.146447 0.146447C0.320013 -0.0271197 0.589437 -0.0464048 0.784305 0.0885913L0.853553 0.146447L4.6465 3.93939C4.82005 4.1129 5.08941 4.13218 5.28422 3.99727L5.35345 3.93945L9.14645 0.146448C9.34171 -0.0488139 9.65829 -0.0488138 9.85355 0.146448C10.0271 0.320015 10.0464 0.589439 9.91141 0.784307L9.85355 0.853555L6.0605 4.64661C5.51136 5.19558 4.64252 5.22989 4.05337 4.7495L3.93945 4.64655L0.146446 0.853553C-0.0488156 0.658291 -0.0488156 0.341709 0.146447 0.146447Z' fill='%236D7C88'/%3e%3c/svg%3e",zq="data:image/svg+xml,%3csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M9.85355 5.85355C9.67999 6.02712 9.41056 6.0464 9.21569 5.91141L9.14645 5.85355L5.3535 2.06061C5.17994 1.8871 4.91059 1.86783 4.71578 2.00273L4.64655 2.06055L0.853554 5.85355C0.658292 6.04881 0.341708 6.04881 0.146446 5.85355C-0.0271206 5.67999 -0.0464048 5.41056 0.0885916 5.21569L0.146446 5.14645L3.9395 1.35339C4.48864 0.804418 5.35748 0.770107 5.94663 1.2505L6.06055 1.35345L9.85355 5.14645C10.0488 5.34171 10.0488 5.65829 9.85355 5.85355Z' fill='%236D7C88'/%3e%3c/svg%3e",Wq=function(i){var o,a=i.queryId,s=i.metricMeasure,l=i.apiUrl,u=i.isHistoricalQueryView,c=i.universeQueryStatsData,d=i.appName,h=i.timezone,p=i.urlParams,f=i.dateTimeRange,m=i.getClusterDetails,v=i.onSelectedTimeWindow,g=gW(),y=t.useState(null),b=y[0],w=y[1],x=t.useState([]),_=x[0],S=x[1],k=t.useState(!1),T=k[0],C=k[1],E=m(),O=E.universeUuid,D=E.cluster,M=E.region,A=E.zone,I=E.node,P=E.numNodes,R=E.outlierType,N=function(){C(!T)},j=t.useState(0),L=j[0],F=j[1],B=function(e,t,n){void 0===n&&(n=!1);var r=qz.WAIT_EVENT_COMPONENT;if("Class"===e?r=qz.WAIT_EVENT_CLASS:"Type"===e?r=qz.WAIT_EVENT_TYPE:"Event"===e?r=qz.WAIT_EVENT:"Query"===e?r=qz.QUERY:"Client IP"===e&&(r=qz.CLIENT_NODE_IP),n){var i=JSON.parse(JSON.stringify(_)),o=null;if(u){var a=null==i?void 0:i.filter((function(e){return e.name===(null==t?void 0:t.name)}));if(a.length>=2){var s=a.find((function(e,n){return n===a.length-1&&e.name===(null==t?void 0:t.name)}));o=s}else o=null==i?void 0:i.find((function(e,n){return n>0&&e.name===(null==t?void 0:t.name)}))}else o=null==i?void 0:i.find((function(e,n){return n>0&&e.name===(null==t?void 0:t.name)}));o&&(o.groupBy=[r]),i.map((function(e,n){return n>0&&e.name===(null==t?void 0:t.name)?o:e})),S(i),U.mutate(i)}},U=n.useMutation({mutationKey:["fetchAdvancedViewGraphs",O],mutationFn:function(e){return iq.fetchGraphs(O,e,l)},onSuccess:function(e){w(e)},onError:function(e){console.error("Failed to fetch Query graphs",e)}});t.useEffect((function(){var e=gq(!0,!0,!1,0,null,m(),null,p);e&&S(e),e&&U.mutate(e)}),[s,f,M,D,A,I,R,P]);var H=u?a:null==a?void 0:a[0],Y=null==c?void 0:c.find((function(e){return e.queryId===H})),z=null==Y?void 0:Y.query,W=Tf(null!==(o=null==p?void 0:p.dbId)&&void 0!==o?o:"");return e.jsxs(r.Box,ot({mt:3,mr:3},{children:[Tf(z)&&e.jsx(r.Box,ot({ml:1},{children:e.jsx(qa,{text:z,showCopyButton:!0,dataTestId:"AdvancedView".concat(H),lang:"sql",enabledExpandCollapse:!0,showExpandCollapse:!0},"AdvancedView-".concat(H))})),U.isLoading&&e.jsx(r.Box,ot({mt:2,className:g.loadingBox},{children:e.jsx(Uq,{className:dt(g.icon,g.inProgressIcon)})})),U.isError&&e.jsxs(r.Box,ot({mt:4},{children:[(d===exports.AppName.YBA||d===exports.AppName.WEB)&&e.jsx(Xa,{customErrorMessage:"Failed to fetch historical query data, please try again."}),d===exports.AppName.YBM&&e.jsx(Nl,{text:"Failed to fetch historical query data, please try again."})]})),U.isSuccess&&e.jsxs(r.Box,ot({className:g.causesBox},{children:[e.jsx(r.Tabs,ot({value:L,onChange:function(e,t){var n=window.scrollY;F(t),setTimeout((function(){return window.scrollTo(0,n)}),0)},"aria-label":"anomaly causes tabs",indicatorColor:"primary",textColor:"primary"},{children:null==b?void 0:b.map((function(t,n){var i;return e.jsx(r.Tab,{label:null===(i=null==t?void 0:t.layout)||void 0===i?void 0:i.title,classes:{root:dt(g.cuaseTabButton),wrapper:g.causeTabLabelWrapper}},n)}))})),null==b?void 0:b.map((function(t,n){var i,o,a=mq(s,t,exports.GraphType.SINGLE_SUPPORTING,!0,_,!0),l=t.name;if(null===(i=null==t?void 0:t.name)||void 0===i?void 0:i.startsWith("active_session_history")){var u=t.layout.metadata,p=u.currentGroupBy,f=null===(o=u.supportedGroupBy.find((function(e){return e.label===p[0]})))||void 0===o?void 0:o.name;f&&a.groupByOperations.sort((function(e,t){return e===f?-1:t===f?1:0}))}return e.jsxs(r.Box,ot({role:"AdvancedView-tabpanel",hidden:L!==n,id:"AdvancedView-tabpanel-".concat(n),"aria-labelledby":"AdvancedView-tab-".concat(n)},{children:[e.jsxs(r.Box,ot({mt:2,display:"flex",flexDirection:"column"},{children:[e.jsx(r.Box,ot({display:"flex",flexDirection:"row",mt:1,ml:2,alignItems:"center"},{children:e.jsxs("span",ot({className:g.headerTitle,onClick:N},{children:[oW,W&&e.jsx("img",{style:{marginLeft:"8px"},src:T?zq:Yq})]}))})),W&&T&&e.jsx(e.Fragment,{children:e.jsxs(r.Box,ot({display:"flex",flexDirection:"row",ml:2,alignItems:"center"},{children:[e.jsx("img",{src:Hq}),e.jsx("span",ot({className:g.metadataName,style:{marginLeft:"8px"}},{children:null==Y?void 0:Y.namespaceName})),e.jsx(r.Box,ot({ml:1,className:g.tag},{children:e.jsx("span",ot({className:g.tagName},{children:aW}))}))]}))})]})),L===n&&e.jsx(r.Box,ot({mt:2,mb:1,style:{border:"1px solid #E9EEF2",borderRadius:"8px"}},{children:e.jsx(Fq,{metricData:t,metricKey:l,containerWidth:null,metricMeasure:s,operations:s===exports.MetricMeasure.OVERALL?[]:a.uniqueOperations,groupByOperations:a.groupByOperations,appName:d,timezone:h,graphType:exports.GraphType.SINGLE_SUPPORTING,queryData:c,onSelectAshLabel:B,isHistoricalQueryView:!0,onSelectedTimeWindow:v,showTitle:!1},"".concat(s,"-").concat(l))}))]}),"AdvancedView-".concat(n))}))]}))]}))},Gq=function(i){var o=i.appName,a=i.apiUrl,s=i.timezone,l=i.metricMeasure,u=i.dateTimeRange,c=i.getClusterDetails,d=i.urlParams,h=i.onSelectedTimeWindow,p=gW(),f=t.useState(null),m=f[0],v=f[1],g=t.useState(0),y=g[0],b=g[1],w=c(),x=w.universeUuid,_=w.cluster,S=w.region,k=w.zone,T=w.node,C=w.numNodes,E=w.outlierType;t.useEffect((function(){l===exports.MetricMeasure.OUTLIER_TABLES&&b(0)}),[l]);var O=n.useMutation({mutationKey:[exports.QUERY_KEY.fetchMetricsGraphs,x],mutationFn:function(e){return iq.fetchGraphs(x,e,a)},onSuccess:function(e){v(e)},onError:function(e){console.error("Failed to fetch metrics",e)}});return t.useEffect((function(){var e=gq(!1,!1,!0,y,null,c(),null,d);e&&O.mutate(e)}),[l,u,y,S,_,k,T,E,C]),e.jsxs(r.Box,ot({mt:2,mb:2},{children:[e.jsxs(r.Tabs,ot({value:y,onChange:function(e,t){t!==y&&b(t)},"aria-label":"anomaly causes tabs",indicatorColor:"primary",textColor:"primary"},{children:[l!==exports.MetricMeasure.OUTLIER_TABLES&&hW.map((function(t,n){var i;return e.jsx(r.Tab,{label:null===(i=null==mW?void 0:mW.find((function(e){return t===e.name})))||void 0===i?void 0:i.title,classes:{root:dt(p.cuaseTabButton),wrapper:p.causeTabLabelWrapper}},t)})),l===exports.MetricMeasure.OUTLIER_TABLES&&pW.map((function(t,n){var i;return e.jsx(r.Tab,{label:null===(i=null==fW?void 0:fW.find((function(e){return t===e.name})))||void 0===i?void 0:i.title,classes:{root:dt(p.cuaseTabButton),wrapper:p.causeTabLabelWrapper}},t)}))]})),O.isLoading&&e.jsx(r.Box,ot({mt:2,className:p.loadingBox},{children:e.jsx(Uq,{className:dt(p.icon,p.inProgressIcon)})})),O.isError&&e.jsxs(r.Box,ot({mt:4},{children:[(o===exports.AppName.YBA||o===exports.AppName.WEB)&&e.jsx(Xa,{customErrorMessage:"Failed to fetch metrics data, please try again."}),o===exports.AppName.YBM&&e.jsx(Nl,{text:"Failed to fetch metrics data, please try again."})]})),O.isSuccess&&e.jsx(r.Box,ot({mt:2,className:p.supportingGraphBox},{children:null==m?void 0:m.map((function(t,n){if(Tf(null==t?void 0:t.errorMessage))return e.jsx(r.Box,{});var i=mq(l,t,exports.GraphType.MULTI_SUPPORTING,!0,[],!0);return e.jsx(r.Box,ot({style:{border:"1px solid #E9EEF2",borderRadius:"8px",marginRight:"16px"}},{children:e.jsx(r.Box,{children:e.jsx(Fq,{metricData:t,metricKey:t.name,containerWidth:null,metricMeasure:l,operations:l===exports.MetricMeasure.OVERALL?[]:i.uniqueOperations,groupByOperations:i.groupByOperations,appName:o,timezone:s,graphType:exports.GraphType.MULTI_SUPPORTING,isHistoricalQueryView:!1,onSelectedTimeWindow:h,showTitle:!0},"".concat(t.name,"-").concat(l))},"TopKMetricsView-".concat(n))}))}))}))]}))},Vq="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qq(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qq(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var $q,Xq={exports:{}};function Kq(){return $q||($q=1,function(e){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function a(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(s(e,t))return!1;return!0}function u(e){return void 0===e}function c(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function d(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function p(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,r){return Qn(e,t,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function v(e){return null==e._pf&&(e._pf=m()),e._pf}function g(e){if(null==e._isValid){var t=v(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function y(e){var t=f(NaN);return null!=e?p(v(t),e):v(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var b=r.momentProperties=[],w=!1;function x(e,t){var n,r,i,o=b.length;if(u(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),u(t._i)||(e._i=t._i),u(t._f)||(e._f=t._f),u(t._l)||(e._l=t._l),u(t._strict)||(e._strict=t._strict),u(t._tzm)||(e._tzm=t._tzm),u(t._isUTC)||(e._isUTC=t._isUTC),u(t._offset)||(e._offset=t._offset),u(t._pf)||(e._pf=v(t)),u(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)u(i=t[r=b[n]])||(e[r]=i);return e}function _(e){x(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function S(e){return e instanceof _||null!=e&&null!=e._isAMomentObject}function k(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function T(e,t){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,a,l=[],u=arguments.length;for(o=0;o<u;o++){if(i="","object"==typeof arguments[o]){for(a in i+="\n["+o+"] ",arguments[0])s(arguments[0],a)&&(i+=a+": "+arguments[0][a]+", ");i=i.slice(0,-2)}else i=arguments[o];l.push(i)}k(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var C,E={};function O(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),E[e]||(k(t),E[e]=!0)}function D(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function M(e){var t,n;for(n in e)s(e,n)&&(D(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(e,t){var n,r=p({},e);for(n in t)s(t,n)&&(a(e[n])&&a(t[n])?(r[n]={},p(r[n],e[n]),p(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)s(e,n)&&!s(t,n)&&a(e[n])&&(r[n]=p({},r[n]));return r}function I(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,C=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var P={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function R(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return D(r)?r.call(t,n):r}function N(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,L=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},B={};function U(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(B[e]=i),t&&(B[t[0]]=function(){return N(i.apply(this,arguments),t[1],t[2])}),n&&(B[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function H(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Y(e){var t,n,r=e.match(j);for(t=0,n=r.length;t<n;t++)B[r[t]]?r[t]=B[r[t]]:r[t]=H(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=D(r[i])?r[i].call(t,e):r[i];return o}}function z(e,t){return e.isValid()?(t=W(t,e.localeData()),F[t]=F[t]||Y(t),F[t](e)):e.localeData().invalidDate()}function W(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(L.lastIndex=0;n>=0&&L.test(e);)e=e.replace(L,r),L.lastIndex=0,n-=1;return e}var G={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function V(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(j).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var q="Invalid date";function Q(){return this._invalidDate}var $="%d",X=/\d{1,2}/;function K(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(e,t,n,r){var i=this._relativeTime[n];return D(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return D(n)?n(t):n.replace(/%s/i,t)}var te={};function ne(e,t){var n=e.toLowerCase();te[n]=te[n+"s"]=te[t]=e}function re(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function ie(e){var t,n,r={};for(n in e)s(e,n)&&(t=re(n))&&(r[t]=e[n]);return r}var oe={};function ae(e,t){oe[e]=t}function se(e){var t,n=[];for(t in e)s(e,t)&&n.push({unit:t,priority:oe[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}function le(e){return e%4==0&&e%100!=0||e%400==0}function ue(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ce(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ue(t)),n}function de(e,t){return function(n){return null!=n?(pe(this,e,n),r.updateOffset(this,t),this):he(this,e)}}function he(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function pe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&le(e.year())&&1===e.month()&&29===e.date()?(n=ce(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Je(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function fe(e){return D(this[e=re(e)])?this[e]():this}function me(e,t){if("object"==typeof e){var n,r=se(e=ie(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(D(this[e=re(e)]))return this[e](t);return this}var ve,ge=/\d/,ye=/\d\d/,be=/\d{3}/,we=/\d{4}/,xe=/[+-]?\d{6}/,_e=/\d\d?/,Se=/\d\d\d\d?/,ke=/\d\d\d\d\d\d?/,Te=/\d{1,3}/,Ce=/\d{1,4}/,Ee=/[+-]?\d{1,6}/,Oe=/\d+/,De=/[+-]?\d+/,Me=/Z|[+-]\d\d:?\d\d/gi,Ae=/Z|[+-]\d\d(?::?\d\d)?/gi,Ie=/[+-]?\d+(\.\d{1,3})?/,Pe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Re(e,t,n){ve[e]=D(t)?t:function(e,r){return e&&n?n:t}}function Ne(e,t){return s(ve,e)?ve[e](t._strict,t._locale):new RegExp(je(e))}function je(e){return Le(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Le(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ve={};var Fe={};function Be(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),c(t)&&(i=function(e,n){n[t]=ce(e)}),r=e.length,n=0;n<r;n++)Fe[e[n]]=i}function Ue(e,t){Be(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function He(e,t,n){null!=t&&s(Fe,e)&&Fe[e](t,n._a,n,e)}var Ye,ze=0,We=1,Ge=2,Ve=3,qe=4,Qe=5,$e=6,Xe=7,Ke=8;function Ze(e,t){return(e%t+t)%t}function Je(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=Ze(t,12);return e+=(t-n)/12,1===n?le(e)?29:28:31-n%7%2}Ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),U("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),ne("month","M"),ae("month",8),Re("M",_e),Re("MM",_e,ye),Re("MMM",(function(e,t){return t.monthsShortRegex(e)})),Re("MMMM",(function(e,t){return t.monthsRegex(e)})),Be(["M","MM"],(function(e,t){t[We]=ce(e)-1})),Be(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[We]=i:v(n).invalidMonth=e}));var et="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,rt=Pe,it=Pe;function ot(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||nt).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function at(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[nt.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function st(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=f([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:"MMM"===t?-1!==(i=Ye.call(this._shortMonthsParse,a))||-1!==(i=Ye.call(this._longMonthsParse,a))?i:null:-1!==(i=Ye.call(this._longMonthsParse,a))||-1!==(i=Ye.call(this._shortMonthsParse,a))?i:null}function lt(e,t,n){var r,i,o;if(this._monthsParseExact)return st.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=f([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ut(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=ce(t);else if(!c(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),Je(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ct(e){return null!=e?(ut(this,e),r.updateOffset(this,!0),this):he(this,"Month")}function dt(){return Je(this.year(),this.month())}function ht(e){return this._monthsParseExact?(s(this,"_monthsRegex")||ft.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=rt),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function pt(e){return this._monthsParseExact?(s(this,"_monthsRegex")||ft.call(this),e?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=it),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ft(){function e(e,t){return t.length-e.length}var t,n,r=[],i=[],o=[];for(t=0;t<12;t++)n=f([2e3,t]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(r.sort(e),i.sort(e),o.sort(e),t=0;t<12;t++)r[t]=Le(r[t]),i[t]=Le(i[t]);for(t=0;t<24;t++)o[t]=Le(o[t]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function mt(e){return le(e)?366:365}U("Y",0,0,(function(){var e=this.year();return e<=9999?N(e,4):"+"+e})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),ne("year","y"),ae("year",1),Re("Y",De),Re("YY",_e,ye),Re("YYYY",Ce,we),Re("YYYYY",Ee,xe),Re("YYYYYY",Ee,xe),Be(["YYYYY","YYYYYY"],ze),Be("YYYY",(function(e,t){t[ze]=2===e.length?r.parseTwoDigitYear(e):ce(e)})),Be("YY",(function(e,t){t[ze]=r.parseTwoDigitYear(e)})),Be("Y",(function(e,t){t[ze]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return ce(e)+(ce(e)>68?1900:2e3)};var vt=de("FullYear",!0);function gt(){return le(this.year())}function yt(e,t,n,r,i,o,a){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,o,a),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,o,a),s}function bt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function wt(e,t,n){var r=7+t-n;return-(7+bt(e,0,r).getUTCDay()-t)%7+r-1}function xt(e,t,n,r,i){var o,a,s=1+7*(t-1)+(7+n-r)%7+wt(e,r,i);return s<=0?a=mt(o=e-1)+s:s>mt(e)?(o=e+1,a=s-mt(e)):(o=e,a=s),{year:o,dayOfYear:a}}function _t(e,t,n){var r,i,o=wt(e.year(),t,n),a=Math.floor((e.dayOfYear()-o-1)/7)+1;return a<1?r=a+St(i=e.year()-1,t,n):a>St(e.year(),t,n)?(r=a-St(e.year(),t,n),i=e.year()+1):(i=e.year(),r=a),{week:r,year:i}}function St(e,t,n){var r=wt(e,t,n),i=wt(e+1,t,n);return(mt(e)-r+i)/7}function kt(e){return _t(e,this._week.dow,this._week.doy).week}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),ne("week","w"),ne("isoWeek","W"),ae("week",5),ae("isoWeek",5),Re("w",_e),Re("ww",_e,ye),Re("W",_e),Re("WW",_e,ye),Ue(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=ce(e)}));var Tt={dow:0,doy:6};function Ct(){return this._week.dow}function Et(){return this._week.doy}function Ot(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Dt(e){var t=_t(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Mt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function At(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function It(e,t){return e.slice(t,7).concat(e.slice(0,t))}U("d",0,"do","day"),U("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),U("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),U("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),ne("day","d"),ne("weekday","e"),ne("isoWeekday","E"),ae("day",11),ae("weekday",11),ae("isoWeekday",11),Re("d",_e),Re("e",_e),Re("E",_e),Re("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Re("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Re("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ue(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:v(n).invalidWeekday=e})),Ue(["d","e","E"],(function(e,t,n,r){t[r]=ce(e)}));var Pt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Rt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jt=Pe,Lt=Pe,Ft=Pe;function Bt(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?It(n,this._week.dow):e?n[e.day()]:n}function Ut(e){return!0===e?It(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Ht(e){return!0===e?It(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Yt(e,t,n){var r,i,o,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:"dddd"===t?-1!==(i=Ye.call(this._weekdaysParse,a))||-1!==(i=Ye.call(this._shortWeekdaysParse,a))||-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=Ye.call(this._shortWeekdaysParse,a))||-1!==(i=Ye.call(this._weekdaysParse,a))||-1!==(i=Ye.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Ye.call(this._minWeekdaysParse,a))||-1!==(i=Ye.call(this._weekdaysParse,a))||-1!==(i=Ye.call(this._shortWeekdaysParse,a))?i:null}function zt(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Yt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Wt(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Mt(e,this.localeData()),this.add(e-t,"d")):t}function Gt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Vt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=At(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=jt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Qt(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Lt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $t(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ft),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,a=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=Le(this.weekdaysMin(n,"")),i=Le(this.weekdaysShort(n,"")),o=Le(this.weekdays(n,"")),a.push(r),s.push(i),l.push(o),u.push(r),u.push(i),u.push(o);a.sort(e),s.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Kt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function Jt(e,t){U(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function en(e,t){return t._meridiemParse}function tn(e){return"p"===(e+"").toLowerCase().charAt(0)}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,Kt),U("k",["kk",2],0,Zt),U("hmm",0,0,(function(){return""+Kt.apply(this)+N(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+Kt.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+N(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),ne("hour","h"),ae("hour",13),Re("a",en),Re("A",en),Re("H",_e),Re("h",_e),Re("k",_e),Re("HH",_e,ye),Re("hh",_e,ye),Re("kk",_e,ye),Re("hmm",Se),Re("hmmss",ke),Re("Hmm",Se),Re("Hmmss",ke),Be(["H","HH"],Ve),Be(["k","kk"],(function(e,t,n){var r=ce(e);t[Ve]=24===r?0:r})),Be(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Be(["h","hh"],(function(e,t,n){t[Ve]=ce(e),v(n).bigHour=!0})),Be("hmm",(function(e,t,n){var r=e.length-2;t[Ve]=ce(e.substr(0,r)),t[qe]=ce(e.substr(r)),v(n).bigHour=!0})),Be("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ve]=ce(e.substr(0,r)),t[qe]=ce(e.substr(r,2)),t[Qe]=ce(e.substr(i)),v(n).bigHour=!0})),Be("Hmm",(function(e,t,n){var r=e.length-2;t[Ve]=ce(e.substr(0,r)),t[qe]=ce(e.substr(r))})),Be("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[Ve]=ce(e.substr(0,r)),t[qe]=ce(e.substr(r,2)),t[Qe]=ce(e.substr(i))}));var nn=/[ap]\.?m?\.?/i,rn=de("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,sn={calendar:P,longDateFormat:G,invalidDate:q,ordinal:$,dayOfMonthOrdinalParse:X,relativeTime:Z,months:et,monthsShort:tt,week:Tt,weekdays:Pt,weekdaysMin:Nt,weekdaysShort:Rt,meridiemParse:nn},ln={},un={};function cn(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function hn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=dn(e[o]).split("-")).length,n=(n=dn(e[o+1]))?n.split("-"):null;t>0;){if(r=fn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&cn(i,n)>=t-1)break;t--}o++}return an}function pn(e){return null!=e.match("^[^/\\\\]*$")}function fn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&pn(t))try{n=an._abbr,Qq("./locale/"+t),mn(n)}catch(e){ln[t]=null}return ln[t]}function mn(e,t){var n;return e&&((n=u(t)?yn(e):vn(e,t))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function vn(e,t){if(null!==t){var n,r=sn;if(t.abbr=e,null!=ln[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])r=ln[t.parentLocale]._config;else{if(null==(n=fn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;r=n._config}return ln[e]=new I(A(r,t)),un[e]&&un[e].forEach((function(e){vn(e.name,e.config)})),mn(e),ln[e]}return delete ln[e],null}function gn(e,t){if(null!=t){var n,r,i=sn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(A(ln[e]._config,t)):(null!=(r=fn(e))&&(i=r._config),t=A(i,t),null==r&&(t.abbr=e),(n=new I(t)).parentLocale=ln[e],ln[e]=n),mn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===mn()&&mn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(t=fn(e))return t;e=[e]}return hn(e)}function bn(){return C(ln)}function wn(e){var t,n=e._a;return n&&-2===v(e).overflow&&(t=n[We]<0||n[We]>11?We:n[Ge]<1||n[Ge]>Je(n[ze],n[We])?Ge:n[Ve]<0||n[Ve]>24||24===n[Ve]&&(0!==n[qe]||0!==n[Qe]||0!==n[$e])?Ve:n[qe]<0||n[qe]>59?qe:n[Qe]<0||n[Qe]>59?Qe:n[$e]<0||n[$e]>999?$e:-1,v(e)._overflowDayOfYear&&(t<ze||t>Ge)&&(t=Ge),v(e)._overflowWeeks&&-1===t&&(t=Xe),v(e)._overflowWeekday&&-1===t&&(t=Ke),v(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_n=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,kn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Tn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Cn=/^\/?Date\((-?\d+)/i,En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Dn(e){var t,n,r,i,o,a,s=e._i,l=xn.exec(s)||_n.exec(s),u=kn.length,c=Tn.length;if(l){for(v(e).iso=!0,t=0,n=u;t<n;t++)if(kn[t][1].exec(l[1])){i=kn[t][0],r=!1!==kn[t][2];break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=c;t<n;t++)if(Tn[t][1].exec(l[3])){o=(l[2]||" ")+Tn[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(l[4]){if(!Sn.exec(l[4]))return void(e._isValid=!1);a="Z"}e._f=i+(o||"")+(a||""),Hn(e)}else e._isValid=!1}function Mn(e,t,n,r,i,o){var a=[An(e),tt.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&a.push(parseInt(o,10)),a}function An(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function In(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Pn(e,t,n){return!e||Rt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Rn(e,t,n){if(e)return On[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Nn(e){var t,n=En.exec(In(e._i));if(n){if(t=Mn(n[4],n[3],n[2],n[5],n[6],n[7]),!Pn(n[1],t,e))return;e._a=t,e._tzm=Rn(n[8],n[9],n[10]),e._d=bt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),v(e).rfc2822=!0}else e._isValid=!1}function jn(e){var t=Cn.exec(e._i);null===t?(Dn(e),!1===e._isValid&&(delete e._isValid,Nn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Ln(e,t,n){return null!=e?e:null!=t?t:n}function Fn(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Bn(e){var t,n,r,i,o,a=[];if(!e._d){for(r=Fn(e),e._w&&null==e._a[Ge]&&null==e._a[We]&&Un(e),null!=e._dayOfYear&&(o=Ln(e._a[ze],r[ze]),(e._dayOfYear>mt(o)||0===e._dayOfYear)&&(v(e)._overflowDayOfYear=!0),n=bt(o,0,e._dayOfYear),e._a[We]=n.getUTCMonth(),e._a[Ge]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=r[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Ve]&&0===e._a[qe]&&0===e._a[Qe]&&0===e._a[$e]&&(e._nextDay=!0,e._a[Ve]=0),e._d=(e._useUTC?bt:yt).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ve]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(v(e).weekdayMismatch=!0)}}function Un(e){var t,n,r,i,o,a,s,l,u;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,a=4,n=Ln(t.GG,e._a[ze],_t($n(),1,4).year),r=Ln(t.W,1),((i=Ln(t.E,1))<1||i>7)&&(l=!0)):(o=e._locale._week.dow,a=e._locale._week.doy,u=_t($n(),o,a),n=Ln(t.gg,e._a[ze],u.year),r=Ln(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(l=!0)):i=o),r<1||r>St(n,o,a)?v(e)._overflowWeeks=!0:null!=l?v(e)._overflowWeekday=!0:(s=xt(n,r,i,o,a),e._a[ze]=s.year,e._dayOfYear=s.dayOfYear)}function Hn(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],v(e).empty=!0;var t,n,i,o,a,s,l,u=""+e._i,c=u.length,d=0;for(l=(i=W(e._f,e._locale).match(j)||[]).length,t=0;t<l;t++)o=i[t],(n=(u.match(Ne(o,e))||[])[0])&&((a=u.substr(0,u.indexOf(n))).length>0&&v(e).unusedInput.push(a),u=u.slice(u.indexOf(n)+n.length),d+=n.length),B[o]?(n?v(e).empty=!1:v(e).unusedTokens.push(o),He(o,n,e)):e._strict&&!n&&v(e).unusedTokens.push(o);v(e).charsLeftOver=c-d,u.length>0&&v(e).unusedInput.push(u),e._a[Ve]<=12&&!0===v(e).bigHour&&e._a[Ve]>0&&(v(e).bigHour=void 0),v(e).parsedDateParts=e._a.slice(0),v(e).meridiem=e._meridiem,e._a[Ve]=Yn(e._locale,e._a[Ve],e._meridiem),null!==(s=v(e).era)&&(e._a[ze]=e._locale.erasConvertYear(s,e._a[ze])),Bn(e),wn(e)}else Nn(e);else Dn(e)}function Yn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function zn(e){var t,n,r,i,o,a,s=!1,l=e._f.length;if(0===l)return v(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<l;i++)o=0,a=!1,t=x({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Hn(t),g(t)&&(a=!0),o+=v(t).charsLeftOver,o+=10*v(t).unusedTokens.length,v(t).score=o,s?o<r&&(r=o,n=t):(null==r||o<r||a)&&(r=o,n=t,a&&(s=!0));p(e,n||t)}function Wn(e){if(!e._d){var t=ie(e._i),n=void 0===t.day?t.date:t.day;e._a=h([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),Bn(e)}}function Gn(e){var t=new _(wn(Vn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Vn(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?y({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new _(wn(t)):(d(t)?e._d=t:o(n)?zn(e):n?Hn(e):qn(e),g(e)||(e._d=null),e))}function qn(e){var t=e._i;u(t)?e._d=new Date(r.now()):d(t)?e._d=new Date(t.valueOf()):"string"==typeof t?jn(e):o(t)?(e._a=h(t.slice(0),(function(e){return parseInt(e,10)})),Bn(e)):a(t)?Wn(e):c(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Qn(e,t,n,r,i){var s={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(a(e)&&l(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=e,s._f=t,s._strict=r,Gn(s)}function $n(e,t,n,r){return Qn(e,t,n,r,!1)}r.createFromInputFallback=T("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Xn=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=$n.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:y()})),Kn=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=$n.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:y()}));function Zn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return $n();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function Jn(){return Zn("isBefore",[].slice.call(arguments,0))}function er(){return Zn("isAfter",[].slice.call(arguments,0))}var tr=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(e){var t,n,r=!1,i=nr.length;for(t in e)if(s(e,t)&&(-1===Ye.call(nr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[nr[n]]){if(r)return!1;parseFloat(e[nr[n]])!==ce(e[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function or(){return Or(NaN)}function ar(e){var t=ie(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,a=t.day||0,s=t.hour||0,l=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=rr(t),this._milliseconds=+c+1e3*u+6e4*l+1e3*s*60*60,this._days=+a+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function sr(e){return e instanceof ar}function lr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ur(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),a=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&ce(e[r])!==ce(t[r]))&&a++;return a+o}function cr(e,t){U(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+N(~~(e/60),2)+t+N(~~e%60,2)}))}cr("Z",":"),cr("ZZ",""),Re("Z",Ae),Re("ZZ",Ae),Be(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=hr(Ae,e)}));var dr=/([\+\-]|\d\d)/gi;function hr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(dr)||["-",0,0])[1]+ce(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(S(e)||d(e)?e.valueOf():$n(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):$n(e).local()}function fr(e){return-Math.round(e._d.getTimezoneOffset())}function mr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=hr(Ae,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=fr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Pr(this,Or(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:fr(this)}function vr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function gr(e){return this.utcOffset(0,e)}function yr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(fr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=hr(Me,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function wr(e){return!!this.isValid()&&(e=e?$n(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function xr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _r(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return x(t,this),(t=Vn(t))._a?(e=t._isUTC?f(t._a):$n(t._a),this._isDSTShifted=this.isValid()&&ur(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function kr(){return!!this.isValid()&&this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(e,t){var n,r,i,o=e,a=null;return sr(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:c(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(a=Cr.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:ce(a[Ge])*n,h:ce(a[Ve])*n,m:ce(a[qe])*n,s:ce(a[Qe])*n,ms:ce(lr(1e3*a[$e]))*n}):(a=Er.exec(e))?(n="-"===a[1]?-1:1,o={y:Dr(a[2],n),M:Dr(a[3],n),w:Dr(a[4],n),d:Dr(a[5],n),h:Dr(a[6],n),m:Dr(a[7],n),s:Dr(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Ar($n(o.from),$n(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),sr(e)&&s(e,"_locale")&&(r._locale=e._locale),sr(e)&&s(e,"_isValid")&&(r._isValid=e._isValid),r}function Dr(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Mr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Ar(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Mr(e,t):((n=Mr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ir(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Pr(this,Or(n,r),e),this}}function Pr(e,t,n,i){var o=t._milliseconds,a=lr(t._days),s=lr(t._months);e.isValid()&&(i=null==i||i,s&&ut(e,he(e,"Month")+s*n),a&&pe(e,"Date",he(e,"Date")+a*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,a||s))}Or.fn=ar.prototype,Or.invalid=or;var Rr=Ir(1,"add"),Nr=Ir(-1,"subtract");function jr(e){return"string"==typeof e||e instanceof String}function Lr(e){return S(e)||d(e)||jr(e)||c(e)||Br(e)||Fr(e)||null==e}function Fr(e){var t,n,r=a(e)&&!l(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],u=o.length;for(t=0;t<u;t+=1)n=o[t],i=i||s(e,n);return r&&i}function Br(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!c(t)&&jr(e)})).length),t&&n}function Ur(e){var t,n,r=a(e)&&!l(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||s(e,n);return r&&i}function Hr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Yr(e,t){1===arguments.length&&(arguments[0]?Lr(arguments[0])?(e=arguments[0],t=void 0):Ur(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||$n(),i=pr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",a=t&&(D(t[o])?t[o].call(this,n):t[o]);return this.format(a||this.localeData().calendar(o,this,$n(n)))}function zr(){return new _(this)}function Wr(e,t){var n=S(e)?e:$n(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Gr(e,t){var n=S(e)?e:$n(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Vr(e,t,n,r){var i=S(e)?e:$n(e),o=S(t)?t:$n(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function qr(e,t){var n,r=S(e)?e:$n(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=re(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Qr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function $r(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Xr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=re(t)){case"year":o=Kr(this,r)/12;break;case"month":o=Kr(this,r);break;case"quarter":o=Kr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:ue(o)}function Kr(e,t){if(e.date()<t.date())return-Kr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Zr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jr(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):D(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ti(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)}function ni(e,t){return this.isValid()&&(S(e)&&e.isValid()||$n(e).isValid())?Or({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ri(e){return this.from($n(),e)}function ii(e,t){return this.isValid()&&(S(e)&&e.isValid()||$n(e).isValid())?Or({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function oi(e){return this.to($n(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var si=T("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function li(){return this._locale}var ui=1e3,ci=60*ui,di=60*ci,hi=3506328*di;function pi(e,t){return(e%t+t)%t}function fi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hi:new Date(e,t,n).valueOf()}function mi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hi:Date.UTC(e,t,n)}function vi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mi:fi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pi(t+(this._isUTC?0:this.utcOffset()*ci),di);break;case"minute":t=this._d.valueOf(),t-=pi(t,ci);break;case"second":t=this._d.valueOf(),t-=pi(t,ui)}return this._d.setTime(t),r.updateOffset(this,!0),this}function gi(e){var t,n;if(void 0===(e=re(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?mi:fi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=di-pi(t+(this._isUTC?0:this.utcOffset()*ci),di)-1;break;case"minute":t=this._d.valueOf(),t+=ci-pi(t,ci)-1;break;case"second":t=this._d.valueOf(),t+=ui-pi(t,ui)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function yi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function xi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function _i(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Si(){return this.isValid()?this.toISOString():null}function ki(){return g(this)}function Ti(){return p({},v(this))}function Ci(){return v(this).overflow}function Ei(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oi(e,t){var n,i,o,a=this._eras||yn("en")._eras;for(n=0,i=a.length;n<i;++n)switch("string"==typeof a[n].since&&(o=r(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=r(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a}function Di(e,t,n){var r,i,o,a,s,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),a=l[r].abbr.toUpperCase(),s=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(a===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(s===e)return l[r]}else if([o,a,s].indexOf(e)>=0)return l[r]}function Mi(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Ai(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ii(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Ri(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function Ni(e){return s(this,"_erasNameRegex")||Yi.call(this),e?this._erasNameRegex:this._erasRegex}function ji(e){return s(this,"_erasAbbrRegex")||Yi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Li(e){return s(this,"_erasNarrowRegex")||Yi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Fi(e,t){return t.erasAbbrRegex(e)}function Bi(e,t){return t.erasNameRegex(e)}function Ui(e,t){return t.erasNarrowRegex(e)}function Hi(e,t){return t._eraYearOrdinalRegex||Oe}function Yi(){var e,t,n=[],r=[],i=[],o=[],a=this.eras();for(e=0,t=a.length;e<t;++e)r.push(Le(a[e].name)),n.push(Le(a[e].abbr)),i.push(Le(a[e].narrow)),o.push(Le(a[e].name)),o.push(Le(a[e].abbr)),o.push(Le(a[e].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function zi(e,t){U(0,[e,e.length],0,t)}function Wi(e){return Xi.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Gi(e){return Xi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Vi(){return St(this.year(),1,4)}function qi(){return St(this.isoWeekYear(),1,4)}function Qi(){var e=this.localeData()._week;return St(this.year(),e.dow,e.doy)}function $i(){var e=this.localeData()._week;return St(this.weekYear(),e.dow,e.doy)}function Xi(e,t,n,r,i){var o;return null==e?_t(this,r,i).year:(t>(o=St(e,r,i))&&(t=o),Ki.call(this,e,t,n,r,i))}function Ki(e,t,n,r,i){var o=xt(e,t,n,r,i),a=bt(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Zi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),Re("N",Fi),Re("NN",Fi),Re("NNN",Fi),Re("NNNN",Bi),Re("NNNNN",Ui),Be(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?v(n).era=i:v(n).invalidEra=e})),Re("y",Oe),Re("yy",Oe),Re("yyy",Oe),Re("yyyy",Oe),Re("yo",Hi),Be(["y","yy","yyy","yyyy"],ze),Be(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ze]=n._locale.eraYearOrdinalParse(e,i):t[ze]=parseInt(e,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),zi("gggg","weekYear"),zi("ggggg","weekYear"),zi("GGGG","isoWeekYear"),zi("GGGGG","isoWeekYear"),ne("weekYear","gg"),ne("isoWeekYear","GG"),ae("weekYear",1),ae("isoWeekYear",1),Re("G",De),Re("g",De),Re("GG",_e,ye),Re("gg",_e,ye),Re("GGGG",Ce,we),Re("gggg",Ce,we),Re("GGGGG",Ee,xe),Re("ggggg",Ee,xe),Ue(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=ce(e)})),Ue(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),U("Q",0,"Qo","quarter"),ne("quarter","Q"),ae("quarter",7),Re("Q",ge),Be("Q",(function(e,t){t[We]=3*(ce(e)-1)})),U("D",["DD",2],"Do","date"),ne("date","D"),ae("date",9),Re("D",_e),Re("DD",_e,ye),Re("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Be(["D","DD"],Ge),Be("Do",(function(e,t){t[Ge]=ce(e.match(_e)[0])}));var Ji=de("Date",!0);function eo(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}U("DDD",["DDDD",3],"DDDo","dayOfYear"),ne("dayOfYear","DDD"),ae("dayOfYear",4),Re("DDD",Te),Re("DDDD",be),Be(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=ce(e)})),U("m",["mm",2],0,"minute"),ne("minute","m"),ae("minute",14),Re("m",_e),Re("mm",_e,ye),Be(["m","mm"],qe);var to=de("Minutes",!1);U("s",["ss",2],0,"second"),ne("second","s"),ae("second",15),Re("s",_e),Re("ss",_e,ye),Be(["s","ss"],Qe);var no,ro,io=de("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),ne("millisecond","ms"),ae("millisecond",16),Re("S",Te,ge),Re("SS",Te,ye),Re("SSS",Te,be),no="SSSS";no.length<=9;no+="S")Re(no,Oe);function oo(e,t){t[$e]=ce(1e3*("0."+e))}for(no="S";no.length<=9;no+="S")Be(no,oo);function ao(){return this._isUTC?"UTC":""}function so(){return this._isUTC?"Coordinated Universal Time":""}ro=de("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var lo=_.prototype;function uo(e){return $n(1e3*e)}function co(){return $n.apply(null,arguments).parseZone()}function ho(e){return e}lo.add=Rr,lo.calendar=Yr,lo.clone=zr,lo.diff=Xr,lo.endOf=gi,lo.format=ti,lo.from=ni,lo.fromNow=ri,lo.to=ii,lo.toNow=oi,lo.get=fe,lo.invalidAt=Ci,lo.isAfter=Wr,lo.isBefore=Gr,lo.isBetween=Vr,lo.isSame=qr,lo.isSameOrAfter=Qr,lo.isSameOrBefore=$r,lo.isValid=ki,lo.lang=si,lo.locale=ai,lo.localeData=li,lo.max=Kn,lo.min=Xn,lo.parsingFlags=Ti,lo.set=me,lo.startOf=vi,lo.subtract=Nr,lo.toArray=xi,lo.toObject=_i,lo.toDate=wi,lo.toISOString=Jr,lo.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(lo[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),lo.toJSON=Si,lo.toString=Zr,lo.unix=bi,lo.valueOf=yi,lo.creationData=Ei,lo.eraName=Ai,lo.eraNarrow=Ii,lo.eraAbbr=Pi,lo.eraYear=Ri,lo.year=vt,lo.isLeapYear=gt,lo.weekYear=Wi,lo.isoWeekYear=Gi,lo.quarter=lo.quarters=Zi,lo.month=ct,lo.daysInMonth=dt,lo.week=lo.weeks=Ot,lo.isoWeek=lo.isoWeeks=Dt,lo.weeksInYear=Qi,lo.weeksInWeekYear=$i,lo.isoWeeksInYear=Vi,lo.isoWeeksInISOWeekYear=qi,lo.date=Ji,lo.day=lo.days=Wt,lo.weekday=Gt,lo.isoWeekday=Vt,lo.dayOfYear=eo,lo.hour=lo.hours=rn,lo.minute=lo.minutes=to,lo.second=lo.seconds=io,lo.millisecond=lo.milliseconds=ro,lo.utcOffset=mr,lo.utc=gr,lo.local=yr,lo.parseZone=br,lo.hasAlignedHourOffset=wr,lo.isDST=xr,lo.isLocal=Sr,lo.isUtcOffset=kr,lo.isUtc=Tr,lo.isUTC=Tr,lo.zoneAbbr=ao,lo.zoneName=so,lo.dates=T("dates accessor is deprecated. Use date instead.",Ji),lo.months=T("months accessor is deprecated. Use month instead",ct),lo.years=T("years accessor is deprecated. Use year instead",vt),lo.zone=T("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),lo.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_r);var po=I.prototype;function fo(e,t,n,r){var i=yn(),o=f().set(r,t);return i[n](o,e)}function mo(e,t,n){if(c(e)&&(t=e,e=void 0),e=e||"",null!=t)return fo(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=fo(e,r,n,"month");return i}function vo(e,t,n,r){"boolean"==typeof e?(c(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,c(t)&&(n=t,t=void 0),t=t||"");var i,o=yn(),a=e?o._week.dow:0,s=[];if(null!=n)return fo(t,(n+a)%7,r,"day");for(i=0;i<7;i++)s[i]=fo(t,(i+a)%7,r,"day");return s}function go(e,t){return mo(e,t,"months")}function yo(e,t){return mo(e,t,"monthsShort")}function bo(e,t,n){return vo(e,t,n,"weekdays")}function wo(e,t,n){return vo(e,t,n,"weekdaysShort")}function xo(e,t,n){return vo(e,t,n,"weekdaysMin")}po.calendar=R,po.longDateFormat=V,po.invalidDate=Q,po.ordinal=K,po.preparse=ho,po.postformat=ho,po.relativeTime=J,po.pastFuture=ee,po.set=M,po.eras=Oi,po.erasParse=Di,po.erasConvertYear=Mi,po.erasAbbrRegex=ji,po.erasNameRegex=Ni,po.erasNarrowRegex=Li,po.months=ot,po.monthsShort=at,po.monthsParse=lt,po.monthsRegex=pt,po.monthsShortRegex=ht,po.week=kt,po.firstDayOfYear=Et,po.firstDayOfWeek=Ct,po.weekdays=Bt,po.weekdaysMin=Ht,po.weekdaysShort=Ut,po.weekdaysParse=zt,po.weekdaysRegex=qt,po.weekdaysShortRegex=Qt,po.weekdaysMinRegex=$t,po.isPM=tn,po.meridiem=on,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===ce(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=T("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=T("moment.langData is deprecated. Use moment.localeData instead.",yn);var _o=Math.abs;function So(){var e=this._data;return this._milliseconds=_o(this._milliseconds),this._days=_o(this._days),this._months=_o(this._months),e.milliseconds=_o(e.milliseconds),e.seconds=_o(e.seconds),e.minutes=_o(e.minutes),e.hours=_o(e.hours),e.months=_o(e.months),e.years=_o(e.years),this}function ko(e,t,n,r){var i=Or(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function To(e,t){return ko(this,e,t,1)}function Co(e,t){return ko(this,e,t,-1)}function Eo(e){return e<0?Math.floor(e):Math.ceil(e)}function Oo(){var e,t,n,r,i,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Eo(Mo(s)+a),a=0,s=0),l.milliseconds=o%1e3,e=ue(o/1e3),l.seconds=e%60,t=ue(e/60),l.minutes=t%60,n=ue(t/60),l.hours=n%24,a+=ue(n/24),s+=i=ue(Do(a)),a-=Eo(Mo(i)),r=ue(s/12),s%=12,l.days=a,l.months=s,l.years=r,this}function Do(e){return 4800*e/146097}function Mo(e){return 146097*e/4800}function Ao(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=re(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Do(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Mo(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function Io(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*ce(this._months/12):NaN}function Po(e){return function(){return this.as(e)}}var Ro=Po("ms"),No=Po("s"),jo=Po("m"),Lo=Po("h"),Fo=Po("d"),Bo=Po("w"),Uo=Po("M"),Ho=Po("Q"),Yo=Po("y");function zo(){return Or(this)}function Wo(e){return e=re(e),this.isValid()?this[e+"s"]():NaN}function Go(e){return function(){return this.isValid()?this._data[e]:NaN}}var Vo=Go("milliseconds"),qo=Go("seconds"),Qo=Go("minutes"),$o=Go("hours"),Xo=Go("days"),Ko=Go("months"),Zo=Go("years");function Jo(){return ue(this.days()/7)}var ea=Math.round,ta={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function na(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function ra(e,t,n,r){var i=Or(e).abs(),o=ea(i.as("s")),a=ea(i.as("m")),s=ea(i.as("h")),l=ea(i.as("d")),u=ea(i.as("M")),c=ea(i.as("w")),d=ea(i.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=t,h[3]=+e>0,h[4]=r,na.apply(null,h)}function ia(e){return void 0===e?ea:"function"==typeof e&&(ea=e,!0)}function oa(e,t){return void 0!==ta[e]&&(void 0===t?ta[e]:(ta[e]=t,"s"===e&&(ta.ss=t-1),!0))}function aa(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ta;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},ta,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=ra(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var sa=Math.abs;function la(e){return(e>0)-(e<0)||+e}function ua(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,a,s,l=sa(this._milliseconds)/1e3,u=sa(this._days),c=sa(this._months),d=this.asSeconds();return d?(e=ue(l/60),t=ue(e/60),l%=60,e%=60,n=ue(c/12),c%=12,r=l?l.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",o=la(this._months)!==la(d)?"-":"",a=la(this._days)!==la(d)?"-":"",s=la(this._milliseconds)!==la(d)?"-":"",i+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(t||e||l?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(l?s+r+"S":"")):"P0D"}var ca=ar.prototype;return ca.isValid=ir,ca.abs=So,ca.add=To,ca.subtract=Co,ca.as=Ao,ca.asMilliseconds=Ro,ca.asSeconds=No,ca.asMinutes=jo,ca.asHours=Lo,ca.asDays=Fo,ca.asWeeks=Bo,ca.asMonths=Uo,ca.asQuarters=Ho,ca.asYears=Yo,ca.valueOf=Io,ca._bubble=Oo,ca.clone=zo,ca.get=Wo,ca.milliseconds=Vo,ca.seconds=qo,ca.minutes=Qo,ca.hours=$o,ca.days=Xo,ca.weeks=Jo,ca.months=Ko,ca.years=Zo,ca.humanize=aa,ca.toISOString=ua,ca.toString=ua,ca.toJSON=ua,ca.locale=ai,ca.localeData=li,ca.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ua),ca.lang=si,U("X",0,0,"unix"),U("x",0,0,"valueOf"),Re("x",De),Re("X",Ie),Be("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Be("x",(function(e,t,n){n._d=new Date(ce(e))})),
2
+ //! moment.js
3
+ r.version="2.29.4",i($n),r.fn=lo,r.min=Jn,r.max=er,r.now=tr,r.utc=f,r.unix=uo,r.months=go,r.isDate=d,r.locale=mn,r.invalid=y,r.duration=Or,r.isMoment=S,r.weekdays=bo,r.parseZone=co,r.localeData=yn,r.isDuration=sr,r.monthsShort=yo,r.weekdaysMin=xo,r.defineLocale=vn,r.updateLocale=gn,r.locales=bn,r.weekdaysShort=wo,r.normalizeUnits=re,r.relativeTimeRounding=ia,r.relativeTimeThreshold=oa,r.calendarFormat=Hr,r.prototype=lo,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}(Xq)),Xq.exports}!function(e,t){t(Kq())}(0,(function(e){
4
+ //! moment.js locale configuration
5
+ function t(e,t,n,r){var i={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?i[n][0]:i[n][1]}return e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})})),function(e,t){t(Kq())}(0,(function(e){
6
+ //! moment.js locale configuration
7
+ var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),r=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],i=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,o=e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"});return o})),function(e,t){t(Kq())}(0,(function(e){
8
+ //! moment.js locale configuration
9
+ var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i],r=e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return r})),function(e,t){t(Kq())}(0,(function(e){return e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})})),function(e,t){t(Kq())}(0,(function(e){
10
+ //! moment.js locale configuration
11
+ var t=e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return t})),function(e,t){t(Kq())}(0,(function(e){
12
+ //! moment.js locale configuration
13
+ var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),r=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],i=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,o=e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,r){return e?/-MMM-/.test(r)?n[e.month()]:t[e.month()]:t},monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}});return o})),function(e,t){t(Kq())}(0,(function(e){
14
+ //! moment.js locale configuration
15
+ var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),r=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function i(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function o(e,t,n){var r=e+" ";switch(n){case"ss":return r+(i(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return r+(i(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return r+(i(e)?"godziny":"godzin");case"ww":return r+(i(e)?"tygodnie":"tygodni");case"MM":return r+(i(e)?"miesiące":"miesięcy");case"yy":return r+(i(e)?"lata":"lat")}}var a=e.defineLocale("pl",{months:function(e,r){return e?/D MMMM/.test(r)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:r,longMonthsParse:r,shortMonthsParse:r,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:o,m:o,mm:o,h:o,hh:o,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:o,M:"miesiąc",MM:o,y:"rok",yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a})),function(e,t){t(Kq())}(0,(function(e){function t(e,t,n){var r,i;return"m"===n?t?"минута":"минуту":e+" "+(r=+e,i={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i],r=e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}});return r})),function(e,t){t(Kq())}(0,(function(e){function t(e,t,n){var r,i;return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(r=+e,i={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),r%10==1&&r%100!=11?i[0]:r%10>=2&&r%10<=4&&(r%100<10||r%100>=20)?i[1]:i[2])}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}var r=e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}});return r}));var Zq=function(e){try{return!!e()}catch(e){return!0}},Jq=!Zq((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),eQ=Jq,tQ=Function.prototype,nQ=tQ.call,rQ=eQ&&tQ.bind.bind(nQ,nQ),iQ=eQ?rQ:function(e){return function(){return nQ.apply(e,arguments)}},oQ=Math.ceil,aQ=Math.floor,sQ=Math.trunc||function(e){var t=+e;return(t>0?aQ:oQ)(t)},lQ=function(e){var t=+e;return t!=t||0===t?0:sQ(t)},uQ=function(e){return e&&e.Math===Math&&e},cQ=uQ("object"==typeof globalThis&&globalThis)||uQ("object"==typeof window&&window)||uQ("object"==typeof self&&self)||uQ("object"==typeof Vq&&Vq)||function(){return this}()||Vq||Function("return this")(),dQ={exports:{}},hQ=cQ,pQ=Object.defineProperty,fQ=function(e,t){try{pQ(hQ,e,{value:t,configurable:!0,writable:!0})}catch(n){hQ[e]=t}return t},mQ="__core-js_shared__",vQ=cQ[mQ]||fQ(mQ,{}),gQ=vQ;(dQ.exports=function(e,t){return gQ[e]||(gQ[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.0",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var yQ,bQ,wQ=dQ.exports,xQ=function(e){return null==e},_Q=xQ,SQ=TypeError,kQ=function(e){if(_Q(e))throw new SQ("Can't call method on "+e);return e},TQ=kQ,CQ=Object,EQ=function(e){return CQ(TQ(e))},OQ=EQ,DQ=iQ({}.hasOwnProperty),MQ=Object.hasOwn||function(e,t){return DQ(OQ(e),t)},AQ=iQ,IQ=0,PQ=Math.random(),RQ=AQ(1..toString),NQ=function(e){return"Symbol("+(void 0===e?"":e)+")_"+RQ(++IQ+PQ,36)},jQ="undefined"!=typeof navigator&&String(navigator.userAgent)||"",LQ=cQ,FQ=jQ,BQ=LQ.process,UQ=LQ.Deno,HQ=BQ&&BQ.versions||UQ&&UQ.version,YQ=HQ&&HQ.v8;YQ&&(bQ=(yQ=YQ.split("."))[0]>0&&yQ[0]<4?1:+(yQ[0]+yQ[1])),!bQ&&FQ&&(!(yQ=FQ.match(/Edge\/(\d+)/))||yQ[1]>=74)&&(yQ=FQ.match(/Chrome\/(\d+)/))&&(bQ=+yQ[1]);var zQ=bQ,WQ=zQ,GQ=Zq,VQ=cQ.String,qQ=!!Object.getOwnPropertySymbols&&!GQ((function(){var e=Symbol("symbol detection");return!VQ(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&WQ&&WQ<41})),QQ=qQ&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$Q=wQ,XQ=MQ,KQ=NQ,ZQ=qQ,JQ=QQ,e$=cQ.Symbol,t$=$Q("wks"),n$=JQ?e$.for||e$:e$&&e$.withoutSetter||KQ,r$=function(e){return XQ(t$,e)||(t$[e]=ZQ&&XQ(e$,e)?e$[e]:n$("Symbol."+e)),t$[e]},i$={};i$[r$("toStringTag")]="z";var o$="[object z]"===String(i$),a$="object"==typeof document&&document.all,s$={all:a$,IS_HTMLDDA:void 0===a$&&void 0!==a$},l$=s$.all,u$=s$.IS_HTMLDDA?function(e){return"function"==typeof e||e===l$}:function(e){return"function"==typeof e},c$=iQ,d$=c$({}.toString),h$=c$("".slice),p$=function(e){return h$(d$(e),8,-1)},f$=o$,m$=u$,v$=p$,g$=r$("toStringTag"),y$=Object,b$="Arguments"===v$(function(){return arguments}()),w$=f$?v$:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=y$(e),g$))?n:b$?v$(t):"Object"===(r=v$(t))&&m$(t.callee)?"Arguments":r},x$=w$,_$=String,S$=function(e){if("Symbol"===x$(e))throw new TypeError("Cannot convert a Symbol value to a string");return _$(e)},k$=iQ,T$=lQ,C$=S$,E$=kQ,O$=k$("".charAt),D$=k$("".charCodeAt),M$=k$("".slice),A$=function(e){return function(t,n){var r,i,o=C$(E$(t)),a=T$(n),s=o.length;return a<0||a>=s?e?"":void 0:(r=D$(o,a))<55296||r>56319||a+1===s||(i=D$(o,a+1))<56320||i>57343?e?O$(o,a):r:e?M$(o,a,a+2):i-56320+(r-55296<<10)+65536}},I$={codeAt:A$(!1),charAt:A$(!0)},P$=u$,R$=cQ.WeakMap,N$=P$(R$)&&/native code/.test(String(R$)),j$=u$,L$=s$.all,F$=s$.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:j$(e)||e===L$}:function(e){return"object"==typeof e?null!==e:j$(e)},B$=!Zq((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),U$={},H$=F$,Y$=cQ.document,z$=H$(Y$)&&H$(Y$.createElement),W$=function(e){return z$?Y$.createElement(e):{}},G$=W$,V$=!B$&&!Zq((function(){return 7!==Object.defineProperty(G$("div"),"a",{get:function(){return 7}}).a})),q$=B$&&Zq((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Q$=F$,$$=String,X$=TypeError,K$=function(e){if(Q$(e))return e;throw new X$($$(e)+" is not an object")},Z$=Jq,J$=Function.prototype.call,eX=Z$?J$.bind(J$):function(){return J$.apply(J$,arguments)},tX={},nX=tX,rX=cQ,iX=u$,oX=function(e){return iX(e)?e:void 0},aX=function(e,t){return arguments.length<2?oX(nX[e])||oX(rX[e]):nX[e]&&nX[e][t]||rX[e]&&rX[e][t]},sX=iQ({}.isPrototypeOf),lX=aX,uX=u$,cX=sX,dX=Object,hX=QQ?function(e){return"symbol"==typeof e}:function(e){var t=lX("Symbol");return uX(t)&&cX(t.prototype,dX(e))},pX=String,fX=function(e){try{return pX(e)}catch(e){return"Object"}},mX=u$,vX=fX,gX=TypeError,yX=function(e){if(mX(e))return e;throw new gX(vX(e)+" is not a function")},bX=yX,wX=xQ,xX=function(e,t){var n=e[t];return wX(n)?void 0:bX(n)},_X=eX,SX=u$,kX=F$,TX=TypeError,CX=eX,EX=F$,OX=hX,DX=xX,MX=function(e,t){var n,r;if("string"===t&&SX(n=e.toString)&&!kX(r=_X(n,e)))return r;if(SX(n=e.valueOf)&&!kX(r=_X(n,e)))return r;if("string"!==t&&SX(n=e.toString)&&!kX(r=_X(n,e)))return r;throw new TX("Can't convert object to primitive value")},AX=TypeError,IX=r$("toPrimitive"),PX=function(e,t){if(!EX(e)||OX(e))return e;var n,r=DX(e,IX);if(r){if(void 0===t&&(t="default"),n=CX(r,e,t),!EX(n)||OX(n))return n;throw new AX("Can't convert object to primitive value")}return void 0===t&&(t="number"),MX(e,t)},RX=hX,NX=function(e){var t=PX(e,"string");return RX(t)?t:t+""},jX=B$,LX=V$,FX=q$,BX=K$,UX=NX,HX=TypeError,YX=Object.defineProperty,zX=Object.getOwnPropertyDescriptor,WX="enumerable",GX="configurable",VX="writable";U$.f=jX?FX?function(e,t,n){if(BX(e),t=UX(t),BX(n),"function"==typeof e&&"prototype"===t&&"value"in n&&VX in n&&!n[VX]){var r=zX(e,t);r&&r[VX]&&(e[t]=n.value,n={configurable:GX in n?n[GX]:r[GX],enumerable:WX in n?n[WX]:r[WX],writable:!1})}return YX(e,t,n)}:YX:function(e,t,n){if(BX(e),t=UX(t),BX(n),LX)try{return YX(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new HX("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var qX,QX,$X,XX=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},KX=U$,ZX=XX,JX=B$?function(e,t,n){return KX.f(e,t,ZX(1,n))}:function(e,t,n){return e[t]=n,e},eK=NQ,tK=wQ("keys"),nK=function(e){return tK[e]||(tK[e]=eK(e))},rK={},iK=N$,oK=cQ,aK=F$,sK=JX,lK=MQ,uK=vQ,cK=nK,dK=rK,hK="Object already initialized",pK=oK.TypeError,fK=oK.WeakMap;if(iK||uK.state){var mK=uK.state||(uK.state=new fK);mK.get=mK.get,mK.has=mK.has,mK.set=mK.set,qX=function(e,t){if(mK.has(e))throw new pK(hK);return t.facade=e,mK.set(e,t),t},QX=function(e){return mK.get(e)||{}},$X=function(e){return mK.has(e)}}else{var vK=cK("state");dK[vK]=!0,qX=function(e,t){if(lK(e,vK))throw new pK(hK);return t.facade=e,sK(e,vK,t),t},QX=function(e){return lK(e,vK)?e[vK]:{}},$X=function(e){return lK(e,vK)}}var gK={set:qX,get:QX,has:$X,enforce:function(e){return $X(e)?QX(e):qX(e,{})},getterFor:function(e){return function(t){var n;if(!aK(t)||(n=QX(t)).type!==e)throw new pK("Incompatible receiver, "+e+" required");return n}}},yK=Jq,bK=Function.prototype,wK=bK.apply,xK=bK.call,_K="object"==typeof Reflect&&Reflect.apply||(yK?xK.bind(wK):function(){return xK.apply(wK,arguments)}),SK=p$,kK=iQ,TK=function(e){if("Function"===SK(e))return kK(e)},CK={},EK={},OK={}.propertyIsEnumerable,DK=Object.getOwnPropertyDescriptor,MK=DK&&!OK.call({1:2},1);EK.f=MK?function(e){var t=DK(this,e);return!!t&&t.enumerable}:OK;var AK=Zq,IK=p$,PK=Object,RK=iQ("".split),NK=AK((function(){return!PK("z").propertyIsEnumerable(0)}))?function(e){return"String"===IK(e)?RK(e,""):PK(e)}:PK,jK=NK,LK=kQ,FK=function(e){return jK(LK(e))},BK=B$,UK=eX,HK=EK,YK=XX,zK=FK,WK=NX,GK=MQ,VK=V$,qK=Object.getOwnPropertyDescriptor;CK.f=BK?qK:function(e,t){if(e=zK(e),t=WK(t),VK)try{return qK(e,t)}catch(e){}if(GK(e,t))return YK(!UK(HK.f,e,t),e[t])};var QK=Zq,$K=u$,XK=/#|\.prototype\./,KK=function(e,t){var n=JK[ZK(e)];return n===tZ||n!==eZ&&($K(t)?QK(t):!!t)},ZK=KK.normalize=function(e){return String(e).replace(XK,".").toLowerCase()},JK=KK.data={},eZ=KK.NATIVE="N",tZ=KK.POLYFILL="P",nZ=KK,rZ=yX,iZ=Jq,oZ=TK(TK.bind),aZ=function(e,t){return rZ(e),void 0===t?e:iZ?oZ(e,t):function(){return e.apply(t,arguments)}},sZ=cQ,lZ=_K,uZ=TK,cZ=u$,dZ=CK.f,hZ=nZ,pZ=tX,fZ=aZ,mZ=JX,vZ=MQ,gZ=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return lZ(e,this,arguments)};return t.prototype=e.prototype,t},yZ=function(e,t){var n,r,i,o,a,s,l,u,c,d=e.target,h=e.global,p=e.stat,f=e.proto,m=h?sZ:p?sZ[d]:(sZ[d]||{}).prototype,v=h?pZ:pZ[d]||mZ(pZ,d,{})[d],g=v.prototype;for(o in t)r=!(n=hZ(h?o:d+(p?".":"#")+o,e.forced))&&m&&vZ(m,o),s=v[o],r&&(l=e.dontCallGetSet?(c=dZ(m,o))&&c.value:m[o]),a=r&&l?l:t[o],r&&typeof s==typeof a||(u=e.bind&&r?fZ(a,sZ):e.wrap&&r?gZ(a):f&&cZ(a)?uZ(a):a,(e.sham||a&&a.sham||s&&s.sham)&&mZ(u,"sham",!0),mZ(v,o,u),f&&(vZ(pZ,i=d+"Prototype")||mZ(pZ,i,{}),mZ(pZ[i],o,a),e.real&&g&&(n||!g[o])&&mZ(g,o,a)))},bZ=B$,wZ=MQ,xZ=Function.prototype,_Z=bZ&&Object.getOwnPropertyDescriptor,SZ=wZ(xZ,"name"),kZ={EXISTS:SZ,PROPER:SZ&&"something"===function(){}.name,CONFIGURABLE:SZ&&(!bZ||bZ&&_Z(xZ,"name").configurable)},TZ={},CZ=lQ,EZ=Math.max,OZ=Math.min,DZ=function(e,t){var n=CZ(e);return n<0?EZ(n+t,0):OZ(n,t)},MZ=lQ,AZ=Math.min,IZ=function(e){return e>0?AZ(MZ(e),9007199254740991):0},PZ=function(e){return IZ(e.length)},RZ=FK,NZ=DZ,jZ=PZ,LZ=function(e){return function(t,n,r){var i,o=RZ(t),a=jZ(o),s=NZ(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},FZ={includes:LZ(!0),indexOf:LZ(!1)},BZ=MQ,UZ=FK,HZ=FZ.indexOf,YZ=rK,zZ=iQ([].push),WZ=function(e,t){var n,r=UZ(e),i=0,o=[];for(n in r)!BZ(YZ,n)&&BZ(r,n)&&zZ(o,n);for(;t.length>i;)BZ(r,n=t[i++])&&(~HZ(o,n)||zZ(o,n));return o},GZ=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],VZ=WZ,qZ=GZ,QZ=Object.keys||function(e){return VZ(e,qZ)},$Z=B$,XZ=q$,KZ=U$,ZZ=K$,JZ=FK,eJ=QZ;TZ.f=$Z&&!XZ?Object.defineProperties:function(e,t){ZZ(e);for(var n,r=JZ(t),i=eJ(t),o=i.length,a=0;o>a;)KZ.f(e,n=i[a++],r[n]);return e};var tJ,nJ=aX("document","documentElement"),rJ=K$,iJ=TZ,oJ=GZ,aJ=rK,sJ=nJ,lJ=W$,uJ="prototype",cJ="script",dJ=nK("IE_PROTO"),hJ=function(){},pJ=function(e){return"<"+cJ+">"+e+"</"+cJ+">"},fJ=function(e){e.write(pJ("")),e.close();var t=e.parentWindow.Object;return e=null,t},mJ=function(){try{tJ=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;mJ="undefined"!=typeof document?document.domain&&tJ?fJ(tJ):(t=lJ("iframe"),n="java"+cJ+":",t.style.display="none",sJ.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(pJ("document.F=Object")),e.close(),e.F):fJ(tJ);for(var r=oJ.length;r--;)delete mJ[uJ][oJ[r]];return mJ()};aJ[dJ]=!0;var vJ,gJ,yJ,bJ=Object.create||function(e,t){var n;return null!==e?(hJ[uJ]=rJ(e),n=new hJ,hJ[uJ]=null,n[dJ]=e):n=mJ(),void 0===t?n:iJ.f(n,t)},wJ=!Zq((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),xJ=MQ,_J=u$,SJ=EQ,kJ=wJ,TJ=nK("IE_PROTO"),CJ=Object,EJ=CJ.prototype,OJ=kJ?CJ.getPrototypeOf:function(e){var t=SJ(e);if(xJ(t,TJ))return t[TJ];var n=t.constructor;return _J(n)&&t instanceof n?n.prototype:t instanceof CJ?EJ:null},DJ=JX,MJ=function(e,t,n,r){return r&&r.enumerable?e[t]=n:DJ(e,t,n),e},AJ=Zq,IJ=u$,PJ=F$,RJ=bJ,NJ=OJ,jJ=MJ,LJ=r$("iterator"),FJ=!1;[].keys&&("next"in(yJ=[].keys())?(gJ=NJ(NJ(yJ)))!==Object.prototype&&(vJ=gJ):FJ=!0);var BJ=!PJ(vJ)||AJ((function(){var e={};return vJ[LJ].call(e)!==e}));IJ((vJ=BJ?{}:RJ(vJ))[LJ])||jJ(vJ,LJ,(function(){return this}));var UJ={IteratorPrototype:vJ,BUGGY_SAFARI_ITERATORS:FJ},HJ=w$,YJ=o$?{}.toString:function(){return"[object "+HJ(this)+"]"},zJ=o$,WJ=U$.f,GJ=JX,VJ=MQ,qJ=YJ,QJ=r$("toStringTag"),$J=function(e,t,n,r){if(e){var i=n?e:e.prototype;VJ(i,QJ)||WJ(i,QJ,{configurable:!0,value:t}),r&&!zJ&&GJ(i,"toString",qJ)}},XJ={},KJ=UJ.IteratorPrototype,ZJ=bJ,JJ=XX,e0=$J,t0=XJ,n0=function(){return this},r0=iQ,i0=yX,o0=u$,a0=String,s0=TypeError,l0=function(e,t,n){try{return r0(i0(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}},u0=K$,c0=function(e){if("object"==typeof e||o0(e))return e;throw new s0("Can't set "+a0(e)+" as a prototype")},d0=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=l0(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return u0(n),c0(r),t?e(n,r):n.__proto__=r,n}}():void 0),h0=yZ,p0=eX,f0=function(e,t,n,r){var i=t+" Iterator";return e.prototype=ZJ(KJ,{next:JJ(+!r,n)}),e0(e,i,!1,!0),t0[i]=n0,e},m0=OJ,v0=$J,g0=MJ,y0=XJ,b0=kZ.PROPER,w0=UJ.BUGGY_SAFARI_ITERATORS,x0=r$("iterator"),_0="keys",S0="values",k0="entries",T0=function(){return this},C0=function(e,t,n,r,i,o,a){f0(n,t,r);var s,l,u,c=function(e){if(e===i&&m)return m;if(!w0&&e&&e in p)return p[e];switch(e){case _0:case S0:case k0:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+" Iterator",h=!1,p=e.prototype,f=p[x0]||p["@@iterator"]||i&&p[i],m=!w0&&f||c(i),v="Array"===t&&p.entries||f;if(v&&(s=m0(v.call(new e)))!==Object.prototype&&s.next&&(v0(s,d,!0,!0),y0[d]=T0),b0&&i===S0&&f&&f.name!==S0&&(h=!0,m=function(){return p0(f,this)}),i)if(l={values:c(S0),keys:o?m:c(_0),entries:c(k0)},a)for(u in l)(w0||h||!(u in p))&&g0(p,u,l[u]);else h0({target:t,proto:!0,forced:w0||h},l);return a&&p[x0]!==m&&g0(p,x0,m,{name:i}),y0[t]=m,l},E0=function(e,t){return{value:e,done:t}},O0=I$.charAt,D0=S$,M0=gK,A0=C0,I0=E0,P0="String Iterator",R0=M0.set,N0=M0.getterFor(P0);A0(String,"String",(function(e){R0(this,{type:P0,string:D0(e),index:0})}),(function(){var e,t=N0(this),n=t.string,r=t.index;return r>=n.length?I0(void 0,!0):(e=O0(n,r),t.index+=e.length,I0(e,!1))}));var j0=eX,L0=K$,F0=xX,B0=function(e,t,n){var r,i;L0(e);try{if(!(r=F0(e,"return"))){if("throw"===t)throw n;return n}r=j0(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return L0(r),n},U0=K$,H0=B0,Y0=XJ,z0=r$("iterator"),W0=Array.prototype,G0=function(e){return void 0!==e&&(Y0.Array===e||W0[z0]===e)},V0=u$,q0=vQ,Q0=iQ(Function.toString);V0(q0.inspectSource)||(q0.inspectSource=function(e){return Q0(e)});var $0=q0.inspectSource,X0=iQ,K0=Zq,Z0=u$,J0=w$,e1=$0,t1=function(){},n1=[],r1=aX("Reflect","construct"),i1=/^\s*(?:class|function)\b/,o1=X0(i1.exec),a1=!i1.test(t1),s1=function(e){if(!Z0(e))return!1;try{return r1(t1,n1,e),!0}catch(e){return!1}},l1=function(e){if(!Z0(e))return!1;switch(J0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return a1||!!o1(i1,e1(e))}catch(e){return!0}};l1.sham=!0;var u1=!r1||K0((function(){var e;return s1(s1.call)||!s1(Object)||!s1((function(){e=!0}))||e}))?l1:s1,c1=NX,d1=U$,h1=XX,p1=function(e,t,n){var r=c1(t);r in e?d1.f(e,r,h1(0,n)):e[r]=n},f1=w$,m1=xX,v1=xQ,g1=XJ,y1=r$("iterator"),b1=function(e){if(!v1(e))return m1(e,y1)||m1(e,"@@iterator")||g1[f1(e)]},w1=eX,x1=yX,_1=K$,S1=fX,k1=b1,T1=TypeError,C1=function(e,t){var n=arguments.length<2?k1(e):t;if(x1(n))return _1(w1(n,e));throw new T1(S1(e)+" is not iterable")},E1=aZ,O1=eX,D1=EQ,M1=function(e,t,n,r){try{return r?t(U0(n)[0],n[1]):t(n)}catch(t){H0(e,"throw",t)}},A1=G0,I1=u1,P1=PZ,R1=p1,N1=C1,j1=b1,L1=Array,F1=r$("iterator"),B1=!1;try{var U1=0,H1={next:function(){return{done:!!U1++}},return:function(){B1=!0}};H1[F1]=function(){return this},Array.from(H1,(function(){throw 2}))}catch(Jo){}var Y1=function(e,t){try{if(!t&&!B1)return!1}catch(e){return!1}var n=!1;try{var r={};r[F1]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(e){}return n},z1=function(e){var t=D1(e),n=I1(this),r=arguments.length,i=r>1?arguments[1]:void 0,o=void 0!==i;o&&(i=E1(i,r>2?arguments[2]:void 0));var a,s,l,u,c,d,h=j1(t),p=0;if(!h||this===L1&&A1(h))for(a=P1(t),s=n?new this(a):L1(a);a>p;p++)d=o?i(t[p],p):t[p],R1(s,p,d);else for(c=(u=N1(t,h)).next,s=n?new this:[];!(l=O1(c,u)).done;p++)d=o?M1(u,i,[l.value,p],!0):l.value,R1(s,p,d);return s.length=p,s};yZ({target:"Array",stat:!0,forced:!Y1((function(e){Array.from(e)}))},{from:z1});var W1=tX.Array.from,G1=qq(W1),V1=FK,q1=XJ,Q1=gK;U$.f;var $1=C0,X1=E0,K1="Array Iterator",Z1=Q1.set,J1=Q1.getterFor(K1);$1(Array,"Array",(function(e,t){Z1(this,{type:K1,target:V1(e),index:0,kind:t})}),(function(){var e=J1(this),t=e.target,n=e.kind,r=e.index++;if(!t||r>=t.length)return e.target=void 0,X1(void 0,!0);switch(n){case"keys":return X1(r,!1);case"values":return X1(t[r],!1)}return X1([r,t[r]],!1)}),"values"),q1.Arguments=q1.Array;var e2=b1,t2={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},n2=cQ,r2=w$,i2=JX,o2=XJ,a2=r$("toStringTag");for(var s2 in t2){var l2=n2[s2],u2=l2&&l2.prototype;u2&&r2(u2)!==a2&&i2(u2,a2,s2),o2[s2]=o2.Array}var c2=e2,d2=qq(c2),h2=qq(c2);function p2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f2={exports:{}},m2=yZ,v2=B$,g2=U$.f;m2({target:"Object",stat:!0,forced:Object.defineProperty!==g2,sham:!v2},{defineProperty:g2});var y2=tX.Object,b2=f2.exports=function(e,t,n){return y2.defineProperty(e,t,n)};y2.defineProperty.sham&&(b2.sham=!0);var w2=f2.exports,x2=w2,_2=qq(x2),S2=p$,k2=Array.isArray||function(e){return"Array"===S2(e)},T2=TypeError,C2=function(e){if(e>9007199254740991)throw T2("Maximum allowed index exceeded");return e},E2=k2,O2=u1,D2=F$,M2=r$("species"),A2=Array,I2=function(e){var t;return E2(e)&&(t=e.constructor,(O2(t)&&(t===A2||E2(t.prototype))||D2(t)&&null===(t=t[M2]))&&(t=void 0)),void 0===t?A2:t},P2=function(e,t){return new(I2(e))(0===t?0:t)},R2=Zq,N2=zQ,j2=r$("species"),L2=function(e){return N2>=51||!R2((function(){var t=[];return(t.constructor={})[j2]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},F2=yZ,B2=Zq,U2=k2,H2=F$,Y2=EQ,z2=PZ,W2=C2,G2=p1,V2=P2,q2=L2,Q2=zQ,$2=r$("isConcatSpreadable"),X2=Q2>=51||!B2((function(){var e=[];return e[$2]=!1,e.concat()[0]!==e})),K2=function(e){if(!H2(e))return!1;var t=e[$2];return void 0!==t?!!t:U2(e)};F2({target:"Array",proto:!0,arity:1,forced:!X2||!q2("concat")},{concat:function(e){var t,n,r,i,o,a=Y2(this),s=V2(a,0),l=0;for(t=-1,r=arguments.length;t<r;t++)if(K2(o=-1===t?a:arguments[t]))for(i=z2(o),W2(l+i),n=0;n<i;n++,l++)n in o&&G2(s,l,o[n]);else W2(l+1),G2(s,l++,o);return s.length=l,s}});var Z2={},J2=WZ,e9=GZ.concat("length","prototype");Z2.f=Object.getOwnPropertyNames||function(e){return J2(e,e9)};var t9={},n9=DZ,r9=PZ,i9=p1,o9=Array,a9=Math.max,s9=function(e,t,n){for(var r=r9(e),i=n9(t,r),o=n9(void 0===n?r:n,r),a=o9(a9(o-i,0)),s=0;i<o;i++,s++)i9(a,s,e[i]);return a.length=s,a},l9=p$,u9=FK,c9=Z2.f,d9=s9,h9="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t9.f=function(e){return h9&&"Window"===l9(e)?function(e){try{return c9(e)}catch(e){return d9(h9)}}(e):c9(u9(e))};var p9={};p9.f=Object.getOwnPropertySymbols;var f9=U$,m9=function(e,t,n){return f9.f(e,t,n)},v9={},g9=r$;v9.f=g9;var y9=tX,b9=MQ,w9=v9,x9=U$.f,_9=function(e){var t=y9.Symbol||(y9.Symbol={});b9(t,e)||x9(t,e,{value:w9.f(e)})},S9=eX,k9=aX,T9=r$,C9=MJ,E9=function(){var e=k9("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,r=T9("toPrimitive");t&&!t[r]&&C9(t,r,(function(e){return S9(n,this)}),{arity:1})},O9=aZ,D9=NK,M9=EQ,A9=PZ,I9=P2,P9=iQ([].push),R9=function(e){var t=1===e,n=2===e,r=3===e,i=4===e,o=6===e,a=7===e,s=5===e||o;return function(l,u,c,d){for(var h,p,f=M9(l),m=D9(f),v=O9(u,c),g=A9(m),y=0,b=d||I9,w=t?b(l,g):n||a?b(l,0):void 0;g>y;y++)if((s||y in m)&&(p=v(h=m[y],y,f),e))if(t)w[y]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return y;case 2:P9(w,h)}else switch(e){case 4:return!1;case 7:P9(w,h)}return o?-1:r||i?i:w}},N9={forEach:R9(0),map:R9(1),filter:R9(2),some:R9(3),every:R9(4),find:R9(5),findIndex:R9(6),filterReject:R9(7)},j9=yZ,L9=cQ,F9=eX,B9=iQ,U9=B$,H9=qQ,Y9=Zq,z9=MQ,W9=sX,G9=K$,V9=FK,q9=NX,Q9=S$,$9=XX,X9=bJ,K9=QZ,Z9=Z2,J9=t9,e3=p9,t3=CK,n3=U$,r3=TZ,i3=EK,o3=MJ,a3=m9,s3=wQ,l3=rK,u3=NQ,c3=r$,d3=v9,h3=_9,p3=E9,f3=$J,m3=gK,v3=N9.forEach,g3=nK("hidden"),y3="Symbol",b3="prototype",w3=m3.set,x3=m3.getterFor(y3),_3=Object[b3],S3=L9.Symbol,k3=S3&&S3[b3],T3=L9.RangeError,C3=L9.TypeError,E3=L9.QObject,O3=t3.f,D3=n3.f,M3=J9.f,A3=i3.f,I3=B9([].push),P3=s3("symbols"),R3=s3("op-symbols"),N3=s3("wks"),j3=!E3||!E3[b3]||!E3[b3].findChild,L3=function(e,t,n){var r=O3(_3,t);r&&delete _3[t],D3(e,t,n),r&&e!==_3&&D3(_3,t,r)},F3=U9&&Y9((function(){return 7!==X9(D3({},"a",{get:function(){return D3(this,"a",{value:7}).a}})).a}))?L3:D3,B3=function(e,t){var n=P3[e]=X9(k3);return w3(n,{type:y3,tag:e,description:t}),U9||(n.description=t),n},U3=function(e,t,n){e===_3&&U3(R3,t,n),G9(e);var r=q9(t);return G9(n),z9(P3,r)?(n.enumerable?(z9(e,g3)&&e[g3][r]&&(e[g3][r]=!1),n=X9(n,{enumerable:$9(0,!1)})):(z9(e,g3)||D3(e,g3,$9(1,{})),e[g3][r]=!0),F3(e,r,n)):D3(e,r,n)},H3=function(e,t){G9(e);var n=V9(t),r=K9(n).concat(G3(n));return v3(r,(function(t){U9&&!F9(Y3,n,t)||U3(e,t,n[t])})),e},Y3=function(e){var t=q9(e),n=F9(A3,this,t);return!(this===_3&&z9(P3,t)&&!z9(R3,t))&&(!(n||!z9(this,t)||!z9(P3,t)||z9(this,g3)&&this[g3][t])||n)},z3=function(e,t){var n=V9(e),r=q9(t);if(n!==_3||!z9(P3,r)||z9(R3,r)){var i=O3(n,r);return!i||!z9(P3,r)||z9(n,g3)&&n[g3][r]||(i.enumerable=!0),i}},W3=function(e){var t=M3(V9(e)),n=[];return v3(t,(function(e){z9(P3,e)||z9(l3,e)||I3(n,e)})),n},G3=function(e){var t=e===_3,n=M3(t?R3:V9(e)),r=[];return v3(n,(function(e){!z9(P3,e)||t&&!z9(_3,e)||I3(r,P3[e])})),r};H9||(S3=function(){if(W9(k3,this))throw new C3("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Q9(arguments[0]):void 0,t=u3(e),n=function(e){this===_3&&F9(n,R3,e),z9(this,g3)&&z9(this[g3],t)&&(this[g3][t]=!1);var r=$9(1,e);try{F3(this,t,r)}catch(e){if(!(e instanceof T3))throw e;L3(this,t,r)}};return U9&&j3&&F3(_3,t,{configurable:!0,set:n}),B3(t,e)},o3(k3=S3[b3],"toString",(function(){return x3(this).tag})),o3(S3,"withoutSetter",(function(e){return B3(u3(e),e)})),i3.f=Y3,n3.f=U3,r3.f=H3,t3.f=z3,Z9.f=J9.f=W3,e3.f=G3,d3.f=function(e){return B3(c3(e),e)},U9&&a3(k3,"description",{configurable:!0,get:function(){return x3(this).description}})),j9({global:!0,constructor:!0,wrap:!0,forced:!H9,sham:!H9},{Symbol:S3}),v3(K9(N3),(function(e){h3(e)})),j9({target:y3,stat:!0,forced:!H9},{useSetter:function(){j3=!0},useSimple:function(){j3=!1}}),j9({target:"Object",stat:!0,forced:!H9,sham:!U9},{create:function(e,t){return void 0===t?X9(e):H3(X9(e),t)},defineProperty:U3,defineProperties:H3,getOwnPropertyDescriptor:z3}),j9({target:"Object",stat:!0,forced:!H9},{getOwnPropertyNames:W3}),p3(),f3(S3,y3),l3[g3]=!0;var V3=qQ&&!!Symbol.for&&!!Symbol.keyFor,q3=yZ,Q3=aX,$3=MQ,X3=S$,K3=wQ,Z3=V3,J3=K3("string-to-symbol-registry"),e5=K3("symbol-to-string-registry");q3({target:"Symbol",stat:!0,forced:!Z3},{for:function(e){var t=X3(e);if($3(J3,t))return J3[t];var n=Q3("Symbol")(t);return J3[t]=n,e5[n]=t,n}});var t5=yZ,n5=MQ,r5=hX,i5=fX,o5=V3,a5=wQ("symbol-to-string-registry");t5({target:"Symbol",stat:!0,forced:!o5},{keyFor:function(e){if(!r5(e))throw new TypeError(i5(e)+" is not a symbol");if(n5(a5,e))return a5[e]}});var s5=iQ([].slice),l5=k2,u5=u$,c5=p$,d5=S$,h5=iQ([].push),p5=yZ,f5=aX,m5=_K,v5=eX,g5=iQ,y5=Zq,b5=u$,w5=hX,x5=s5,_5=function(e){if(u5(e))return e;if(l5(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];"string"==typeof i?h5(n,i):"number"!=typeof i&&"Number"!==c5(i)&&"String"!==c5(i)||h5(n,d5(i))}var o=n.length,a=!0;return function(e,t){if(a)return a=!1,t;if(l5(this))return t;for(var r=0;r<o;r++)if(n[r]===e)return t}}},S5=qQ,k5=String,T5=f5("JSON","stringify"),C5=g5(/./.exec),E5=g5("".charAt),O5=g5("".charCodeAt),D5=g5("".replace),M5=g5(1..toString),A5=/[\uD800-\uDFFF]/g,I5=/^[\uD800-\uDBFF]$/,P5=/^[\uDC00-\uDFFF]$/,R5=!S5||y5((function(){var e=f5("Symbol")("stringify detection");return"[null]"!==T5([e])||"{}"!==T5({a:e})||"{}"!==T5(Object(e))})),N5=y5((function(){return'"\\udf06\\ud834"'!==T5("\udf06\ud834")||'"\\udead"'!==T5("\udead")})),j5=function(e,t){var n=x5(arguments),r=_5(t);if(b5(r)||void 0!==e&&!w5(e))return n[1]=function(e,t){if(b5(r)&&(t=v5(r,this,k5(e),t)),!w5(t))return t},m5(T5,null,n)},L5=function(e,t,n){var r=E5(n,t-1),i=E5(n,t+1);return C5(I5,e)&&!C5(P5,i)||C5(P5,e)&&!C5(I5,r)?"\\u"+M5(O5(e,0),16):e};T5&&p5({target:"JSON",stat:!0,arity:3,forced:R5||N5},{stringify:function(e,t,n){var r=x5(arguments),i=m5(R5?j5:T5,null,r);return N5&&"string"==typeof i?D5(i,A5,L5):i}});var F5=p9,B5=EQ;yZ({target:"Object",stat:!0,forced:!qQ||Zq((function(){F5.f(1)}))},{getOwnPropertySymbols:function(e){var t=F5.f;return t?t(B5(e)):[]}}),_9("asyncIterator"),_9("hasInstance"),_9("isConcatSpreadable"),_9("iterator"),_9("match"),_9("matchAll"),_9("replace"),_9("search"),_9("species"),_9("split");var U5=E9;_9("toPrimitive"),U5();var H5=aX,Y5=$J;_9("toStringTag"),Y5(H5("Symbol"),"Symbol"),_9("unscopables"),$J(cQ.JSON,"JSON",!0);var z5=tX.Symbol,W5=r$,G5=U$.f,V5=W5("metadata"),q5=Function.prototype;void 0===q5[V5]&&G5(q5,V5,{value:null}),_9("asyncDispose"),_9("dispose"),_9("metadata");var Q5=z5,$5=iQ,X5=aX("Symbol"),K5=X5.keyFor,Z5=$5(X5.prototype.valueOf),J5=X5.isRegisteredSymbol||function(e){try{return void 0!==K5(Z5(e))}catch(e){return!1}};yZ({target:"Symbol",stat:!0},{isRegisteredSymbol:J5});for(var e6=wQ,t6=aX,n6=iQ,r6=hX,i6=r$,o6=t6("Symbol"),a6=o6.isWellKnownSymbol,s6=t6("Object","getOwnPropertyNames"),l6=n6(o6.prototype.valueOf),u6=e6("wks"),c6=0,d6=s6(o6),h6=d6.length;c6<h6;c6++)try{var p6=d6[c6];r6(o6[p6])&&i6(p6)}catch(Jo){}var f6=function(e){if(a6&&a6(e))return!0;try{for(var t=l6(e),n=0,r=s6(u6),i=r.length;n<i;n++)if(u6[r[n]]==t)return!0}catch(e){}return!1};yZ({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:f6}),_9("matcher"),_9("observable"),yZ({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:J5}),yZ({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:f6}),_9("metadataKey"),_9("patternMatch"),_9("replaceAll");var m6=Q5,v6=qq(m6),g6=v9.f("iterator"),y6=g6,b6=qq(y6);function w6(e){return w6="function"==typeof v6&&"symbol"==typeof b6?function(e){return typeof e}:function(e){return e&&"function"==typeof v6&&e.constructor===v6&&e!==v6.prototype?"symbol":typeof e},w6(e)}var x6=qq(v9.f("toPrimitive"));function _6(e){var t=function(e,t){if("object"!==w6(e)||null===e)return e;var n=e[x6];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==w6(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===w6(t)?t:String(t)}function S6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),_2(e,_6(r.key),r)}}function k6(e,t,n){return t&&S6(e.prototype,t),n&&S6(e,n),_2(e,"prototype",{writable:!1}),e}yZ({target:"Array",stat:!0},{isArray:k2});var T6=tX.Array.isArray,C6=qq(T6);var E6=B$,O6=k2,D6=TypeError,M6=Object.getOwnPropertyDescriptor,A6=E6&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}(),I6=A6?function(e,t){if(O6(e)&&!M6(e,"length").writable)throw new D6("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t},P6=yZ,R6=EQ,N6=PZ,j6=I6,L6=C2,F6=Zq((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();P6({target:"Array",proto:!0,arity:1,forced:F6},{push:function(e){var t=R6(this),n=N6(t),r=arguments.length;L6(n+r);for(var i=0;i<r;i++)t[n]=arguments[i],n++;return j6(t,n),n}});var B6=tX,U6=function(e){return B6[e+"Prototype"]},H6=U6("Array").push,Y6=sX,z6=H6,W6=Array.prototype,G6=function(e){var t=e.push;return e===W6||Y6(W6,e)&&t===W6.push?z6:t},V6=G6,q6=qq(V6);var Q6=yZ,$6=k2,X6=u1,K6=F$,Z6=DZ,J6=PZ,e4=FK,t4=p1,n4=r$,r4=s5,i4=L2("slice"),o4=n4("species"),a4=Array,s4=Math.max;Q6({target:"Array",proto:!0,forced:!i4},{slice:function(e,t){var n,r,i,o=e4(this),a=J6(o),s=Z6(e,a),l=Z6(void 0===t?a:t,a);if($6(o)&&(n=o.constructor,(X6(n)&&(n===a4||$6(n.prototype))||K6(n)&&null===(n=n[o4]))&&(n=void 0),n===a4||void 0===n))return r4(o,s,l);for(r=new(void 0===n?a4:n)(s4(l-s,0)),i=0;s<l;s++,i++)s in o&&t4(r,i,o[s]);return r.length=i,r}});var l4=U6("Array").slice,u4=sX,c4=l4,d4=Array.prototype,h4=function(e){var t=e.slice;return e===d4||u4(d4,e)&&t===d4.slice?c4:t},p4=h4,f4=p4,m4=qq(f4),v4=qq(W1);function g4(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y4(e,t){var n;if(e){if("string"==typeof e)return g4(e,t);var r=m4(n=Object.prototype.toString.call(e)).call(n,8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?v4(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g4(e,t):void 0}}function b4(e,t){return function(e){if(C6(e))return e}(e)||function(e,t){var n=null==e?null:void 0!==v6&&d2(e)||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],l=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(q6(s).call(s,r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return s}}(e,t)||y4(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w4(e){return function(e){if(C6(e))return g4(e)}(e)||function(e){if(void 0!==v6&&null!=d2(e)||null!=e["@@iterator"])return v4(e)}(e)||y4(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var x4=qq(z5),_4=U6("Array").concat,S4=sX,k4=_4,T4=Array.prototype,C4=function(e){var t=e.concat;return e===T4||S4(T4,e)&&t===T4.concat?k4:t},E4=qq(C4),O4=qq(p4),D4=aX,M4=Z2,A4=p9,I4=K$,P4=iQ([].concat),R4=D4("Reflect","ownKeys")||function(e){var t=M4.f(I4(e)),n=A4.f;return n?P4(t,n(e)):t};yZ({target:"Reflect",stat:!0},{ownKeys:R4});var N4=qq(tX.Reflect.ownKeys),j4=qq(T6),L4=N9.map;yZ({target:"Array",proto:!0,forced:!L2("map")},{map:function(e){return L4(this,e,arguments.length>1?arguments[1]:void 0)}});var F4=U6("Array").map,B4=sX,U4=F4,H4=Array.prototype,Y4=function(e){var t=e.map;return e===H4||B4(H4,e)&&t===H4.map?U4:t},z4=qq(Y4),W4=EQ,G4=QZ;yZ({target:"Object",stat:!0,forced:Zq((function(){G4(1)}))},{keys:function(e){return G4(W4(e))}});var V4=qq(tX.Object.keys),q4=yZ,Q4=Date,$4=iQ(Q4.prototype.getTime);q4({target:"Date",stat:!0},{now:function(){return $4(new Q4)}});var X4=qq(tX.Date.now),K4=iQ,Z4=yX,J4=F$,e8=MQ,t8=s5,n8=Jq,r8=Function,i8=K4([].concat),o8=K4([].join),a8={},s8=n8?r8.bind:function(e){var t=Z4(this),n=t.prototype,r=t8(arguments,1),i=function(){var n=i8(r,t8(arguments));return this instanceof i?function(e,t,n){if(!e8(a8,t)){for(var r=[],i=0;i<t;i++)r[i]="a["+i+"]";a8[t]=r8("C,a","return new C("+o8(r,",")+")")}return a8[t](e,n)}(t,n.length,n):t.apply(e,n)};return J4(n)&&(i.prototype=n),i},l8=s8;yZ({target:"Function",proto:!0,forced:Function.bind!==l8},{bind:l8});var u8=U6("Function").bind,c8=sX,d8=u8,h8=Function.prototype,p8=function(e){var t=e.bind;return e===h8||c8(h8,e)&&t===h8.bind?d8:t},f8=p8,m8=qq(f8),v8=Zq,g8=function(e,t){var n=[][e];return!!n&&v8((function(){n.call(null,t||function(){return 1},1)}))},y8=N9.forEach,b8=g8("forEach")?[].forEach:function(e){return y8(this,e,arguments.length>1?arguments[1]:void 0)};yZ({target:"Array",proto:!0,forced:[].forEach!==b8},{forEach:b8});var w8=U6("Array").forEach,x8=w$,_8=MQ,S8=sX,k8=w8,T8=Array.prototype,C8={DOMTokenList:!0,NodeList:!0},E8=function(e){var t=e.forEach;return e===T8||S8(T8,e)&&t===T8.forEach||_8(C8,x8(e))?k8:t},O8=qq(E8),D8=yZ,M8=k2,A8=iQ([].reverse),I8=[1,2];D8({target:"Array",proto:!0,forced:String(I8)===String(I8.reverse())},{reverse:function(){return M8(this)&&(this.length=this.length),A8(this)}});var P8=U6("Array").reverse,R8=sX,N8=P8,j8=Array.prototype,L8=function(e){var t=e.reverse;return e===j8||R8(j8,e)&&t===j8.reverse?N8:t},F8=L8,B8=qq(F8),U8=fX,H8=TypeError,Y8=function(e,t){if(!delete e[t])throw new H8("Cannot delete property "+U8(t)+" of "+U8(e))},z8=yZ,W8=EQ,G8=DZ,V8=lQ,q8=PZ,Q8=I6,$8=C2,X8=P2,K8=p1,Z8=Y8,J8=L2("splice"),e7=Math.max,t7=Math.min;z8({target:"Array",proto:!0,forced:!J8},{splice:function(e,t){var n,r,i,o,a,s,l=W8(this),u=q8(l),c=G8(e,u),d=arguments.length;for(0===d?n=r=0:1===d?(n=0,r=u-c):(n=d-2,r=t7(e7(V8(t),0),u-c)),$8(u+n-r),i=X8(l,r),o=0;o<r;o++)(a=c+o)in l&&K8(i,o,l[a]);if(i.length=r,n<r){for(o=c;o<u-r;o++)s=o+n,(a=o+r)in l?l[s]=l[a]:Z8(l,s);for(o=u;o>u-r+n;o--)Z8(l,o-1)}else if(n>r)for(o=u-r;o>c;o--)s=o+n-1,(a=o+r-1)in l?l[s]=l[a]:Z8(l,s);for(o=0;o<n;o++)l[o+c]=arguments[o+2];return Q8(l,u-r+n),i}});var n7=U6("Array").splice,r7=sX,i7=n7,o7=Array.prototype,a7=function(e){var t=e.splice;return e===o7||r7(o7,e)&&t===o7.splice?i7:t},s7=qq(a7),l7=B$,u7=iQ,c7=eX,d7=Zq,h7=QZ,p7=p9,f7=EK,m7=EQ,v7=NK,g7=Object.assign,y7=Object.defineProperty,b7=u7([].concat),w7=!g7||d7((function(){if(l7&&1!==g7({b:1},g7(y7({},"a",{enumerable:!0,get:function(){y7(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!==g7({},e)[n]||h7(g7({},t)).join("")!==r}))?function(e,t){for(var n=m7(e),r=arguments.length,i=1,o=p7.f,a=f7.f;r>i;)for(var s,l=v7(arguments[i++]),u=o?b7(h7(l),o(l)):h7(l),c=u.length,d=0;c>d;)s=u[d++],l7&&!c7(a,l,s)||(n[s]=l[s]);return n}:g7,x7=w7;yZ({target:"Object",stat:!0,arity:2,forced:Object.assign!==x7},{assign:x7});var _7=qq(tX.Object.assign),S7=FZ.includes;yZ({target:"Array",proto:!0,forced:Zq((function(){return!Array(1).includes()}))},{includes:function(e){return S7(this,e,arguments.length>1?arguments[1]:void 0)}});var k7=U6("Array").includes,T7=F$,C7=p$,E7=r$("match"),O7=function(e){var t;return T7(e)&&(void 0!==(t=e[E7])?!!t:"RegExp"===C7(e))},D7=TypeError,M7=r$("match"),A7=yZ,I7=function(e){if(O7(e))throw new D7("The method doesn't accept regular expressions");return e},P7=kQ,R7=S$,N7=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[M7]=!1,"/./"[e](t)}catch(e){}}return!1},j7=iQ("".indexOf);A7({target:"String",proto:!0,forced:!N7("includes")},{includes:function(e){return!!~j7(R7(P7(this)),R7(I7(e)),arguments.length>1?arguments[1]:void 0)}});var L7=U6("String").includes,F7=sX,B7=k7,U7=L7,H7=Array.prototype,Y7=String.prototype,z7=function(e){var t=e.includes;return e===H7||F7(H7,e)&&t===H7.includes?B7:"string"==typeof e||e===Y7||F7(Y7,e)&&t===Y7.includes?U7:t},W7=qq(z7),G7=EQ,V7=OJ,q7=wJ;yZ({target:"Object",stat:!0,forced:Zq((function(){V7(1)})),sham:!q7},{getPrototypeOf:function(e){return V7(G7(e))}});var Q7=tX.Object.getPrototypeOf,$7=qq(Q7),X7=N9.filter;yZ({target:"Array",proto:!0,forced:!L2("filter")},{filter:function(e){return X7(this,e,arguments.length>1?arguments[1]:void 0)}});var K7=U6("Array").filter,Z7=sX,J7=K7,eee=Array.prototype,tee=function(e){var t=e.filter;return e===eee||Z7(eee,e)&&t===eee.filter?J7:t},nee=qq(tee),ree=B$,iee=Zq,oee=iQ,aee=OJ,see=QZ,lee=FK,uee=oee(EK.f),cee=oee([].push),dee=ree&&iee((function(){var e=Object.create(null);return e[2]=2,!uee(e,2)})),hee=function(e){return function(t){for(var n,r=lee(t),i=see(r),o=dee&&null===aee(r),a=i.length,s=0,l=[];a>s;)n=i[s++],ree&&!(o?n in r:uee(r,n))||cee(l,e?[n,r[n]]:r[n]);return l}},pee={entries:hee(!0),values:hee(!1)},fee=pee.values;yZ({target:"Object",stat:!0},{values:function(e){return fee(e)}});var mee=qq(tX.Object.values),vee="\t\n\v\f\r                 \u2028\u2029\ufeff",gee=kQ,yee=S$,bee=vee,wee=iQ("".replace),xee=RegExp("^["+bee+"]+"),_ee=RegExp("(^|[^"+bee+"])["+bee+"]+$"),See=function(e){return function(t){var n=yee(gee(t));return 1&e&&(n=wee(n,xee,"")),2&e&&(n=wee(n,_ee,"$1")),n}},kee={start:See(1),end:See(2),trim:See(3)},Tee=cQ,Cee=Zq,Eee=iQ,Oee=S$,Dee=kee.trim,Mee=vee,Aee=Tee.parseInt,Iee=Tee.Symbol,Pee=Iee&&Iee.iterator,Ree=/^[+-]?0x/i,Nee=Eee(Ree.exec),jee=8!==Aee(Mee+"08")||22!==Aee(Mee+"0x16")||Pee&&!Cee((function(){Aee(Object(Pee))}))?function(e,t){var n=Dee(Oee(e));return Aee(n,t>>>0||(Nee(Ree,n)?16:10))}:Aee;yZ({global:!0,forced:parseInt!==jee},{parseInt:jee});var Lee=qq(tX.parseInt),Fee=yZ,Bee=FZ.indexOf,Uee=g8,Hee=TK([].indexOf),Yee=!!Hee&&1/Hee([1],1,-0)<0;Fee({target:"Array",proto:!0,forced:Yee||!Uee("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return Yee?Hee(this,e,t)||0:Bee(this,e,t)}});var zee=U6("Array").indexOf,Wee=sX,Gee=zee,Vee=Array.prototype,qee=function(e){var t=e.indexOf;return e===Vee||Wee(Vee,e)&&t===Vee.indexOf?Gee:t},Qee=qq(qee),$ee=pee.entries;yZ({target:"Object",stat:!0},{entries:function(e){return $ee(e)}});var Xee=qq(tX.Object.entries);yZ({target:"Object",stat:!0,sham:!B$},{create:bJ});var Kee=tX.Object,Zee=function(e,t){return Kee.create(e,t)},Jee=qq(Zee),ete=tX,tte=_K;ete.JSON||(ete.JSON={stringify:JSON.stringify});var nte=qq((function(e,t,n){return tte(ete.JSON.stringify,null,arguments)})),rte="function"==typeof Bun&&Bun&&"string"==typeof Bun.version,ite=TypeError,ote=function(e,t){if(e<t)throw new ite("Not enough arguments");return e},ate=cQ,ste=_K,lte=u$,ute=rte,cte=jQ,dte=s5,hte=ote,pte=ate.Function,fte=/MSIE .\./.test(cte)||ute&&function(){var e=ate.Bun.version.split(".");return e.length<3||"0"===e[0]&&(e[1]<3||"3"===e[1]&&"0"===e[2])}(),mte=function(e,t){var n=t?2:1;return fte?function(r,i){var o=hte(arguments.length,1)>n,a=lte(r)?r:pte(r),s=o?dte(arguments,n):[],l=o?function(){ste(a,this,s)}:a;return t?e(l,i):e(l)}:e},vte=yZ,gte=cQ,yte=mte(gte.setInterval,!0);vte({global:!0,bind:!0,forced:gte.setInterval!==yte},{setInterval:yte});var bte=yZ,wte=cQ,xte=mte(wte.setTimeout,!0);bte({global:!0,bind:!0,forced:wte.setTimeout!==xte},{setTimeout:xte});var _te=qq(tX.setTimeout),Ste=EQ,kte=DZ,Tte=PZ,Cte=function(e){for(var t=Ste(this),n=Tte(t),r=arguments.length,i=kte(r>1?arguments[1]:void 0,n),o=r>2?arguments[2]:void 0,a=void 0===o?n:kte(o,n);a>i;)t[i++]=e;return t};yZ({target:"Array",proto:!0},{fill:Cte});var Ete=U6("Array").fill,Ote=sX,Dte=Ete,Mte=Array.prototype,Ate=function(e){var t=e.fill;return e===Mte||Ote(Mte,e)&&t===Mte.fill?Dte:t},Ite=qq(Ate),Pte={exports:{}};!function(){function e(t){if(t)return function(t){for(var n in e.prototype)t[n]=e.prototype[n];return t}(t)}Pte.exports=e,e.prototype.on=e.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},e.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<r.length;i++)if((n=r[i])===t||n.fn===t){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+e],this},e.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),n=this._callbacks["$"+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){r=0;for(var i=(n=n.slice(0)).length;r<i;++r)n[r].apply(this,t)}return this},e.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},e.prototype.hasListeners=function(e){return!!this.listeners(e).length}}();var Rte,Nte=qq(Pte.exports);
16
+ /*! Hammer.JS - v2.0.17-rc - 2019-12-16
17
+ * http://naver.github.io/egjs
18
+ *
19
+ * Forked By Naver egjs
20
+ * Copyright (c) hammerjs
21
+ * Licensed under the MIT license */
22
+ function jte(){return jte=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jte.apply(this,arguments)}function Lte(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Fte(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}Rte="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])}return t}:Object.assign;var Bte,Ute=Rte,Hte=["","webkit","Moz","MS","ms","o"],Yte="undefined"==typeof document?{style:{}}:document.createElement("div"),zte=Math.round,Wte=Math.abs,Gte=Date.now;function Vte(e,t){for(var n,r,i=t[0].toUpperCase()+t.slice(1),o=0;o<Hte.length;){if((r=(n=Hte[o])?n+i:t)in e)return r;o++}}Bte="undefined"==typeof window?{}:window;var qte=Vte(Yte.style,"touchAction"),Qte=void 0!==qte;var $te="compute",Xte="auto",Kte="manipulation",Zte="none",Jte="pan-x",ene="pan-y",tne=function(){if(!Qte)return!1;var e={},t=Bte.CSS&&Bte.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){return e[n]=!t||Bte.CSS.supports("touch-action",n)})),e}(),nne="ontouchstart"in Bte,rne=void 0!==Vte(Bte,"PointerEvent"),ine=nne&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),one="touch",ane="mouse",sne=16,lne=24,une=["x","y"],cne=["clientX","clientY"];function dne(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function hne(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function pne(e,t){return e.indexOf(t)>-1}var fne=function(){function e(e,t){this.manager=e,this.set(t)}var t=e.prototype;return t.set=function(e){e===$te&&(e=this.compute()),Qte&&this.manager.element.style&&tne[e]&&(this.manager.element.style[qte]=e),this.actions=e.toLowerCase().trim()},t.update=function(){this.set(this.manager.options.touchAction)},t.compute=function(){var e=[];return dne(this.manager.recognizers,(function(t){hne(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(pne(e,Zte))return Zte;var t=pne(e,Jte),n=pne(e,ene);return t&&n?Zte:t||n?t?Jte:ene:pne(e,Kte)?Kte:Xte}(e.join(" "))},t.preventDefaults=function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,i=pne(r,Zte)&&!tne[Zte],o=pne(r,ene)&&!tne[ene],a=pne(r,Jte)&&!tne[Jte];if(i){var s=1===e.pointers.length,l=e.distance<2,u=e.deltaTime<250;if(s&&l&&u)return}if(!a||!o)return i||o&&6&n||a&&n&lne?this.preventSrc(t):void 0}},t.preventSrc=function(e){this.manager.session.prevented=!0,e.preventDefault()},e}();function mne(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function vne(e){var t=e.length;if(1===t)return{x:zte(e[0].clientX),y:zte(e[0].clientY)};for(var n=0,r=0,i=0;i<t;)n+=e[i].clientX,r+=e[i].clientY,i++;return{x:zte(n/t),y:zte(r/t)}}function gne(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:zte(e.pointers[n].clientX),clientY:zte(e.pointers[n].clientY)},n++;return{timeStamp:Gte(),pointers:t,center:vne(t),deltaX:e.deltaX,deltaY:e.deltaY}}function yne(e,t,n){n||(n=une);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return Math.sqrt(r*r+i*i)}function bne(e,t,n){n||(n=une);var r=t[n[0]]-e[n[0]],i=t[n[1]]-e[n[1]];return 180*Math.atan2(i,r)/Math.PI}function wne(e,t){return e===t?1:Wte(e)>=Wte(t)?e<0?2:4:t<0?8:sne}function xne(e,t,n){return{x:t/e||0,y:n/e||0}}function _ne(e,t){var n=e.session,r=t.pointers,i=r.length;n.firstInput||(n.firstInput=gne(t)),i>1&&!n.firstMultiple?n.firstMultiple=gne(t):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=t.center=vne(r);t.timeStamp=Gte(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=bne(s,l),t.distance=yne(s,l),function(e,t){var n=t.center,r=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};1!==t.eventType&&4!==o.eventType||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y}),t.deltaX=i.x+(n.x-r.x),t.deltaY=i.y+(n.y-r.y)}(n,t),t.offsetDirection=wne(t.deltaX,t.deltaY);var u,c,d=xne(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=d.x,t.overallVelocityY=d.y,t.overallVelocity=Wte(d.x)>Wte(d.y)?d.x:d.y,t.scale=a?(u=a.pointers,yne((c=r)[0],c[1],cne)/yne(u[0],u[1],cne)):1,t.rotation=a?function(e,t){return bne(t[1],t[0],cne)+bne(e[1],e[0],cne)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,i,o,a=e.lastInterval||t,s=t.timeStamp-a.timeStamp;if(8!==t.eventType&&(s>25||void 0===a.velocity)){var l=t.deltaX-a.deltaX,u=t.deltaY-a.deltaY,c=xne(s,l,u);r=c.x,i=c.y,n=Wte(c.x)>Wte(c.y)?c.x:c.y,o=wne(l,u),e.lastInterval=t}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=i,t.direction=o}(n,t);var h,p=e.element,f=t.srcEvent;mne(h=f.composedPath?f.composedPath()[0]:f.path?f.path[0]:f.target,p)&&(p=h),t.target=p}function Sne(e,t,n){var r=n.pointers.length,i=n.changedPointers.length,o=1&t&&r-i==0,a=12&t&&r-i==0;n.isFirst=!!o,n.isFinal=!!a,o&&(e.session={}),n.eventType=t,_ne(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function kne(e){return e.trim().split(/\s+/g)}function Tne(e,t,n){dne(kne(t),(function(t){e.addEventListener(t,n,!1)}))}function Cne(e,t,n){dne(kne(t),(function(t){e.removeEventListener(t,n,!1)}))}function Ene(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||window}var One=function(){function e(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){hne(e.options.enable,[e])&&n.handler(t)},this.init()}var t=e.prototype;return t.handler=function(){},t.init=function(){this.evEl&&Tne(this.element,this.evEl,this.domHandler),this.evTarget&&Tne(this.target,this.evTarget,this.domHandler),this.evWin&&Tne(Ene(this.element),this.evWin,this.domHandler)},t.destroy=function(){this.evEl&&Cne(this.element,this.evEl,this.domHandler),this.evTarget&&Cne(this.target,this.evTarget,this.domHandler),this.evWin&&Cne(Ene(this.element),this.evWin,this.domHandler)},e}();function Dne(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}var Mne={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Ane={2:one,3:"pen",4:ane,5:"kinect"},Ine="pointerdown",Pne="pointermove pointerup pointercancel";Bte.MSPointerEvent&&!Bte.PointerEvent&&(Ine="MSPointerDown",Pne="MSPointerMove MSPointerUp MSPointerCancel");var Rne=function(e){function t(){var n,r=t.prototype;return r.evEl=Ine,r.evWin=Pne,(n=e.apply(this,arguments)||this).store=n.manager.session.pointerEvents=[],n}return Lte(t,e),t.prototype.handler=function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),i=Mne[r],o=Ane[e.pointerType]||e.pointerType,a=o===one,s=Dne(t,e.pointerId,"pointerId");1&i&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):12&i&&(n=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),n&&t.splice(s,1))},t}(One);function Nne(e){return Array.prototype.slice.call(e,0)}function jne(e,t,n){for(var r=[],i=[],o=0;o<e.length;){var a=t?e[o][t]:e[o];Dne(i,a)<0&&r.push(e[o]),i[o]=a,o++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}var Lne={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Fne=function(e){function t(){var n;return t.prototype.evTarget="touchstart touchmove touchend touchcancel",(n=e.apply(this,arguments)||this).targetIds={},n}return Lte(t,e),t.prototype.handler=function(e){var t=Lne[e.type],n=Bne.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:one,srcEvent:e})},t}(One);function Bne(e,t){var n,r,i=Nne(e.touches),o=this.targetIds;if(3&t&&1===i.length)return o[i[0].identifier]=!0,[i,i];var a=Nne(e.changedTouches),s=[],l=this.target;if(r=i.filter((function(e){return mne(e.target,l)})),1===t)for(n=0;n<r.length;)o[r[n].identifier]=!0,n++;for(n=0;n<a.length;)o[a[n].identifier]&&s.push(a[n]),12&t&&delete o[a[n].identifier],n++;return s.length?[jne(r.concat(s),"identifier",!0),s]:void 0}var Une={mousedown:1,mousemove:2,mouseup:4},Hne=function(e){function t(){var n,r=t.prototype;return r.evEl="mousedown",r.evWin="mousemove mouseup",(n=e.apply(this,arguments)||this).pressed=!1,n}return Lte(t,e),t.prototype.handler=function(e){var t=Une[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:ane,srcEvent:e}))},t}(One);function Yne(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY},r=this.lastTouches;this.lastTouches.push(n);setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function zne(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,Yne.call(this,t)):12&e&&Yne.call(this,t)}function Wne(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var i=this.lastTouches[r],o=Math.abs(t-i.x),a=Math.abs(n-i.y);if(o<=25&&a<=25)return!0}return!1}var Gne=function(){return function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handler=function(e,t,n){var i=n.pointerType===one,o=n.pointerType===ane;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)zne.call(Fte(Fte(r)),t,n);else if(o&&Wne.call(Fte(Fte(r)),n))return;r.callback(e,t,n)}},r.touch=new Fne(r.manager,r.handler),r.mouse=new Hne(r.manager,r.handler),r.primaryTouch=null,r.lastTouches=[],r}return Lte(t,e),t.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},t}(One)}();function Vne(e,t,n){return!!Array.isArray(e)&&(dne(e,n[t],n),!0)}var qne=32,Qne=1;function $ne(e,t){var n=t.manager;return n?n.get(e):e}function Xne(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}var Kne=function(){function e(e){void 0===e&&(e={}),this.options=jte({enable:!0},e),this.id=Qne++,this.manager=null,this.state=1,this.simultaneous={},this.requireFail=[]}var t=e.prototype;return t.set=function(e){return Ute(this.options,e),this.manager&&this.manager.touchAction.update(),this},t.recognizeWith=function(e){if(Vne(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=$ne(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},t.dropRecognizeWith=function(e){return Vne(e,"dropRecognizeWith",this)||(e=$ne(e,this),delete this.simultaneous[e.id]),this},t.requireFailure=function(e){if(Vne(e,"requireFailure",this))return this;var t=this.requireFail;return-1===Dne(t,e=$ne(e,this))&&(t.push(e),e.requireFailure(this)),this},t.dropRequireFailure=function(e){if(Vne(e,"dropRequireFailure",this))return this;e=$ne(e,this);var t=Dne(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},t.hasRequireFailures=function(){return this.requireFail.length>0},t.canRecognizeWith=function(e){return!!this.simultaneous[e.id]},t.emit=function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+Xne(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+Xne(n))},t.tryEmit=function(e){if(this.canEmit())return this.emit(e);this.state=qne},t.canEmit=function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},t.recognize=function(e){var t=Ute({},e);if(!hne(this.options.enable,[this,t]))return this.reset(),void(this.state=qne);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},t.process=function(e){},t.getTouchAction=function(){},t.reset=function(){},e}(),Zne=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,jte({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},t))||this).pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}Lte(t,e);var n=t.prototype;return n.getTouchAction=function(){return[Kte]},n.process=function(e){var t=this,n=this.options,r=e.pointers.length===n.pointers,i=e.distance<n.threshold,o=e.deltaTime<n.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(i&&o&&r){if(4!==e.eventType)return this.failTimeout();var a=!this.pTime||e.timeStamp-this.pTime<n.interval,s=!this.pCenter||yne(this.pCenter,e.center)<n.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,s&&a?this.count+=1:this.count=1,this._input=e,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout((function(){t.state=8,t.tryEmit()}),n.interval),2):8}return qne},n.failTimeout=function(){var e=this;return this._timer=setTimeout((function(){e.state=qne}),this.options.interval),qne},n.reset=function(){clearTimeout(this._timer)},n.emit=function(){8===this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},t}(Kne),Jne=function(e){function t(t){return void 0===t&&(t={}),e.call(this,jte({pointers:1},t))||this}Lte(t,e);var n=t.prototype;return n.attrTest=function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},n.process=function(e){var t=this.state,n=e.eventType,r=6&t,i=this.attrTest(e);return r&&(8&n||!i)?16|t:r||i?4&n?8|t:2&t?4|t:2:qne},t}(Kne);function ere(e){return e===sne?"down":8===e?"up":2===e?"left":4===e?"right":""}var tre=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,jte({event:"pan",threshold:10,pointers:1,direction:30},t))||this).pX=null,n.pY=null,n}Lte(t,e);var n=t.prototype;return n.getTouchAction=function(){var e=this.options.direction,t=[];return 6&e&&t.push(ene),e&lne&&t.push(Jte),t},n.directionTest=function(e){var t=this.options,n=!0,r=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(6&t.direction?(i=0===o?1:o<0?2:4,n=o!==this.pX,r=Math.abs(e.deltaX)):(i=0===a?1:a<0?8:sne,n=a!==this.pY,r=Math.abs(e.deltaY))),e.direction=i,n&&r>t.threshold&&i&t.direction},n.attrTest=function(e){return Jne.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},n.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var n=ere(t.direction);n&&(t.additionalEvent=this.options.event+n),e.prototype.emit.call(this,t)},t}(Jne),nre=function(e){function t(t){return void 0===t&&(t={}),e.call(this,jte({event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},t))||this}Lte(t,e);var n=t.prototype;return n.getTouchAction=function(){return tre.prototype.getTouchAction.call(this)},n.attrTest=function(t){var n,r=this.options.direction;return 30&r?n=t.overallVelocity:6&r?n=t.overallVelocityX:r&lne&&(n=t.overallVelocityY),e.prototype.attrTest.call(this,t)&&r&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&Wte(n)>this.options.velocity&&4&t.eventType},n.emit=function(e){var t=ere(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)},t}(Jne),rre=function(e){function t(t){return void 0===t&&(t={}),e.call(this,jte({event:"pinch",threshold:0,pointers:2},t))||this}Lte(t,e);var n=t.prototype;return n.getTouchAction=function(){return[Zte]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},n.emit=function(t){if(1!==t.scale){var n=t.scale<1?"in":"out";t.additionalEvent=this.options.event+n}e.prototype.emit.call(this,t)},t}(Jne),ire=function(e){function t(t){return void 0===t&&(t={}),e.call(this,jte({event:"rotate",threshold:0,pointers:2},t))||this}Lte(t,e);var n=t.prototype;return n.getTouchAction=function(){return[Zte]},n.attrTest=function(t){return e.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)},t}(Jne),ore=function(e){function t(t){var n;return void 0===t&&(t={}),(n=e.call(this,jte({event:"press",pointers:1,time:251,threshold:9},t))||this)._timer=null,n._input=null,n}Lte(t,e);var n=t.prototype;return n.getTouchAction=function(){return[Xte]},n.process=function(e){var t=this,n=this.options,r=e.pointers.length===n.pointers,i=e.distance<n.threshold,o=e.deltaTime>n.time;if(this._input=e,!i||!r||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=setTimeout((function(){t.state=8,t.tryEmit()}),n.time);else if(4&e.eventType)return 8;return qne},n.reset=function(){clearTimeout(this._timer)},n.emit=function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=Gte(),this.manager.emit(this.options.event,this._input)))},t}(Kne),are={domEvents:!1,touchAction:$te,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},sre=[[ire,{enable:!1}],[rre,{enable:!1},["rotate"]],[nre,{direction:6}],[tre,{direction:6},["swipe"]],[Zne],[Zne,{event:"doubletap",taps:2},["tap"]],[ore]];function lre(e,t){var n,r=e.element;r.style&&(dne(e.options.cssProps,(function(i,o){n=Vte(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}var ure=function(){function e(e,t){var n,r=this;this.options=Ute({},are,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(rne?Rne:ine?Fne:nne?Gne:Hne))(n,Sne),this.touchAction=new fne(this,this.options.touchAction),lre(this,!0),dne(this.options.recognizers,(function(e){var t=r.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}var t=e.prototype;return t.set=function(e){return Ute(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},t.stop=function(e){this.session.stopped=e?2:1},t.recognize=function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(t.curRecognizer=null,i=null);for(var o=0;o<r.length;)n=r[o],2===t.stopped||i&&n!==i&&!n.canRecognizeWith(i)?n.reset():n.recognize(e),!i&&14&n.state&&(t.curRecognizer=n,i=n),o++}},t.get=function(e){if(e instanceof Kne)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event===e)return t[n];return null},t.add=function(e){if(Vne(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},t.remove=function(e){if(Vne(e,"remove",this))return this;var t=this.get(e);if(e){var n=this.recognizers,r=Dne(n,t);-1!==r&&(n.splice(r,1),this.touchAction.update())}return this},t.on=function(e,t){if(void 0===e||void 0===t)return this;var n=this.handlers;return dne(kne(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this},t.off=function(e,t){if(void 0===e)return this;var n=this.handlers;return dne(kne(e),(function(e){t?n[e]&&n[e].splice(Dne(n[e],t),1):delete n[e]})),this},t.emit=function(e,t){this.options.domEvents&&function(e,t){var n=document.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},t.destroy=function(){this.element&&lre(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},e}(),cre={touchstart:1,touchmove:2,touchend:4,touchcancel:8},dre=function(e){function t(){var n,r=t.prototype;return r.evTarget="touchstart",r.evWin="touchstart touchmove touchend touchcancel",(n=e.apply(this,arguments)||this).started=!1,n}return Lte(t,e),t.prototype.handler=function(e){var t=cre[e.type];if(1===t&&(this.started=!0),this.started){var n=hre.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:one,srcEvent:e})}},t}(One);function hre(e,t){var n=Nne(e.touches),r=Nne(e.changedTouches);return 12&t&&(n=jne(n.concat(r),"identifier",!0)),[n,r]}function pre(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=window.console&&(window.console.warn||window.console.log);return i&&i.call(window.console,r,n),e.apply(this,arguments)}}var fre=pre((function(e,t,n){for(var r=Object.keys(t),i=0;i<r.length;)(!n||n&&void 0===e[r[i]])&&(e[r[i]]=t[r[i]]),i++;return e}),"extend","Use `assign`."),mre=pre((function(e,t){return fre(e,t,!0)}),"merge","Use `assign`.");function vre(e,t,n){var r,i=t.prototype;(r=e.prototype=Object.create(i)).constructor=e,r._super=i,n&&Ute(r,n)}function gre(e,t){return function(){return e.apply(t,arguments)}}var yre=function(){var e=function(e,t){return void 0===t&&(t={}),new ure(e,jte({recognizers:sre.concat()},t))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=30,e.DIRECTION_DOWN=sne,e.DIRECTION_LEFT=2,e.DIRECTION_RIGHT=4,e.DIRECTION_UP=8,e.DIRECTION_HORIZONTAL=6,e.DIRECTION_VERTICAL=lne,e.DIRECTION_NONE=1,e.DIRECTION_DOWN=sne,e.INPUT_START=1,e.INPUT_MOVE=2,e.INPUT_END=4,e.INPUT_CANCEL=8,e.STATE_POSSIBLE=1,e.STATE_BEGAN=2,e.STATE_CHANGED=4,e.STATE_ENDED=8,e.STATE_RECOGNIZED=8,e.STATE_CANCELLED=16,e.STATE_FAILED=qne,e.Manager=ure,e.Input=One,e.TouchAction=fne,e.TouchInput=Fne,e.MouseInput=Hne,e.PointerEventInput=Rne,e.TouchMouseInput=Gne,e.SingleTouchInput=dre,e.Recognizer=Kne,e.AttrRecognizer=Jne,e.Tap=Zne,e.Pan=tre,e.Swipe=nre,e.Pinch=rre,e.Rotate=ire,e.Press=ore,e.on=Tne,e.off=Cne,e.each=dne,e.merge=mre,e.extend=fre,e.bindFn=gre,e.assign=Ute,e.inherit=vre,e.bindFn=gre,e.prefixed=Vte,e.toArray=Nne,e.inArray=Dne,e.uniqueArray=jne,e.splitStr=kne,e.boolOrFn=hne,e.hasParent=mne,e.addEventListeners=Tne,e.removeEventListeners=Cne,e.defaults=Ute({},are,{preset:sre}),e}();yre.defaults;var bre=yre;function wre(e,t){var n=void 0!==x4&&h2(e)||e["@@iterator"];if(!n){if(j4(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return xre(e,t);var r=O4(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return G1(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xre(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function xre(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _re=x4("DELETE");function Sre(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return kre.apply(void 0,E4(t=[{},e]).call(t,r))}function kre(){var e=Tre.apply(void 0,arguments);return Ere(e),e}function Tre(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<2)return t[0];var r;if(t.length>2)return Tre.apply(void 0,E4(r=[kre(t[0],t[1])]).call(r,w4(O4(t).call(t,2))));var i=t[0],o=t[1];if(i instanceof Date&&o instanceof Date)return i.setTime(o.getTime()),i;var a,s=wre(N4(o));try{for(s.s();!(a=s.n()).done;){var l=a.value;Object.prototype.propertyIsEnumerable.call(o,l)&&(o[l]===_re?delete i[l]:null===i[l]||null===o[l]||"object"!==w6(i[l])||"object"!==w6(o[l])||j4(i[l])||j4(o[l])?i[l]=Cre(o[l]):i[l]=Tre(i[l],o[l]))}}catch(e){s.e(e)}finally{s.f()}return i}function Cre(e){return j4(e)?z4(e).call(e,(function(e){return Cre(e)})):"object"===w6(e)&&null!==e?e instanceof Date?new Date(e.getTime()):Tre({},e):e}function Ere(e){for(var t=0,n=V4(e);t<n.length;t++){var r=n[t];e[r]===_re?delete e[r]:"object"===w6(e[r])&&null!==e[r]&&Ere(e[r])}}var Ore="undefined"!=typeof window?window.Hammer||bre:function(){return function(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(){return{set:e}}}}()};function Dre(e){var t,n=this;this._cleanupQueue=[],this.active=!1,this._dom={container:e,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push((function(){n._dom.overlay.parentNode.removeChild(n._dom.overlay)}));var r=Ore(this._dom.overlay);r.on("tap",m8(t=this._onTapOverlay).call(t,this)),this._cleanupQueue.push((function(){r.destroy()}));var i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];O8(i).call(i,(function(e){r.on(e,(function(e){e.srcEvent.stopPropagation()}))})),document&&document.body&&(this._onClick=function(t){(function(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1})(t.target,e)||n.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push((function(){document.body.removeEventListener("click",n._onClick)}))),this._escListener=function(e){("key"in e?"Escape"===e.key:27===e.keyCode)&&n.deactivate()}}Nte(Dre.prototype),Dre.current=null,Dre.prototype.destroy=function(){var e,t;this.deactivate();var n,r=wre(B8(e=s7(t=this._cleanupQueue).call(t,0)).call(e));try{for(r.s();!(n=r.n()).done;){(0,n.value)()}}catch(e){r.e(e)}finally{r.f()}},Dre.prototype.activate=function(){Dre.current&&Dre.current.deactivate(),Dre.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)},Dre.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")},Dre.prototype._onTapOverlay=function(e){this.activate(),e.srcEvent.stopPropagation()};var Mre=/^\/?Date\((-?\d+)/i,Are=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,Ire=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,Pre=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,Rre=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Nre(e){return e instanceof Number||"number"==typeof e}function jre(e){return e instanceof String||"string"==typeof e}function Lre(e){return"object"===w6(e)&&null!==e}function Fre(e,t,n,r){var i=!1;!0===r&&(i=null===t[n]&&void 0!==e[n]),i?delete e[n]:e[n]=t[n]}var Bre=_7;function Ure(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)||!0===n)if("object"===w6(t[i])&&null!==t[i]&&$7(t[i])===Object.prototype)void 0===e[i]?e[i]=Ure({},t[i],n):"object"===w6(e[i])&&null!==e[i]&&$7(e[i])===Object.prototype?Ure(e[i],t[i],n):Fre(e,t,i,r);else if(j4(t[i])){var o;e[i]=O4(o=t[i]).call(o)}else Fre(e,t,i,r);return e}function Hre(e){var t=w6(e);return"object"===t?null===e?"null":e instanceof Boolean?"Boolean":e instanceof Number?"Number":e instanceof String?"String":j4(e)?"Array":e instanceof Date?"Date":"Object":"number"===t?"Number":"boolean"===t?"Boolean":"string"===t?"String":void 0===t?"undefined":t}function Yre(e,t){var n;return E4(n=[]).call(n,w4(e),[t])}function zre(e){return O4(e).call(e)}var Wre=mee;var Gre={asBoolean:function(e,t){return"function"==typeof e&&(e=e()),null!=e?0!=e:t||null},asNumber:function(e,t){return"function"==typeof e&&(e=e()),null!=e?Number(e)||t||null:t||null},asString:function(e,t){return"function"==typeof e&&(e=e()),null!=e?String(e):t||null},asSize:function(e,t){return"function"==typeof e&&(e=e()),jre(e)?e:Nre(e)?e+"px":t||null},asElement:function(e,t){return"function"==typeof e&&(e=e()),e||t||null}};function Vre(e){var t;switch(e.length){case 3:case 4:return(t=Ire.exec(e))?{r:Lee(t[1]+t[1],16),g:Lee(t[2]+t[2],16),b:Lee(t[3]+t[3],16)}:null;case 6:case 7:return(t=Are.exec(e))?{r:Lee(t[1],16),g:Lee(t[2],16),b:Lee(t[3],16)}:null;default:return null}}function qre(e,t,n){var r;return"#"+O4(r=((1<<24)+(e<<16)+(t<<8)+n).toString(16)).call(r,1)}function Qre(e,t,n){e/=255,t/=255,n/=255;var r=Math.min(e,Math.min(t,n)),i=Math.max(e,Math.max(t,n));return r===i?{h:0,s:0,v:r}:{h:60*((e===r?3:n===r?1:5)-(e===r?t-n:n===r?e-t:n-e)/(i-r))/360,s:(i-r)/i,v:i}}function $re(e){var t=document.createElement("div"),n={};t.style.cssText=e;for(var r=0;r<t.style.length;++r)n[t.style[r]]=t.style.getPropertyValue(t.style[r]);return n}function Xre(e,t,n){var r,i,o,a=Math.floor(6*e),s=6*e-a,l=n*(1-t),u=n*(1-s*t),c=n*(1-(1-s)*t);switch(a%6){case 0:r=n,i=c,o=l;break;case 1:r=u,i=n,o=l;break;case 2:r=l,i=n,o=c;break;case 3:r=l,i=u,o=n;break;case 4:r=c,i=l,o=n;break;case 5:r=n,i=l,o=u}return{r:Math.floor(255*r),g:Math.floor(255*i),b:Math.floor(255*o)}}function Kre(e,t,n){var r=Xre(e,t,n);return qre(r.r,r.g,r.b)}function Zre(e){var t=Vre(e);if(!t)throw new TypeError("'".concat(e,"' is not a valid color."));return Qre(t.r,t.g,t.b)}function Jre(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(e)}function eie(e){return Pre.test(e)}function tie(e){return Rre.test(e)}function nie(e){if(null===e||"object"!==w6(e))return null;if(e instanceof Element)return e;var t=Jee(e);for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&"object"==w6(e[n])&&(t[n]=nie(e[n]));return t}var rie={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},iie=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;p2(this,e),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return k6(e,[{key:"insertTo",value:function(e){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if("function"!=typeof e)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=e}},{key:"setCloseCallback",value:function(e){if("function"!=typeof e)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=e}},{key:"_isColorString",value:function(e){if("string"==typeof e)return rie[e]}},{key:"setColor",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==e){var n,r=this._isColorString(e);if(void 0!==r&&(e=r),!0===jre(e)){if(!0===eie(e)){var i=e.substr(4).substr(0,e.length-5).split(",");n={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===tie(e)){var o=e.substr(5).substr(0,e.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===Jre(e)){var a=Vre(e);n={r:a.r,g:a.g,b:a.b,a:1}}}else if(e instanceof Object&&void 0!==e.r&&void 0!==e.g&&void 0!==e.b){var s=void 0!==e.a?e.a:"1.0";n={r:e.r,g:e.g,b:e.b,a:s}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+nte(e));this._setColor(n,t)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=_7({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",_te((function(){void 0!==e.closeCallback&&(e.closeCallback(),e.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=_7({},e)),this.color=e;var t=Qre(e.r,e.g,e.b),n=2*Math.PI,r=this.r*t.s,i=this.centerCoordinates.x+r*Math.sin(n*t.h),o=this.centerCoordinates.y+r*Math.cos(n*t.h);this.colorPickerSelector.style.left=i-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var t=Qre(this.color.r,this.color.g,this.color.b);t.v=e/100;var n=Xre(t.h,t.s,t.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,t=Qre(e.r,e.g,e.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-t.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Ite(n).call(n),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,t,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(e){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(e){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var a=this;this.opacityRange.onchange=function(){a._setOpacity(this.value)},this.opacityRange.oninput=function(){a._setOpacity(this.value)},this.brightnessRange.onchange=function(){a._setBrightness(this.value)},this.brightnessRange.oninput=function(){a._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=m8(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=m8(t=this._apply).call(t,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=m8(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=m8(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new Ore(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",(function(t){t.isFirst&&e._moveSelector(t)})),this.hammer.on("tap",(function(t){e._moveSelector(t)})),this.hammer.on("panstart",(function(t){e._moveSelector(t)})),this.hammer.on("panmove",(function(t){e._moveSelector(t)})),this.hammer.on("panend",(function(t){e._moveSelector(t)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var e=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var t,n,r,i,o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,o,a),this.centerCoordinates={x:.5*o,y:.5*a},this.r=.49*o;var s,l=2*Math.PI/360,u=1/360,c=1/this.r;for(r=0;r<360;r++)for(i=0;i<this.r;i++)t=this.centerCoordinates.x+i*Math.sin(l*r),n=this.centerCoordinates.y+i*Math.cos(l*r),s=Xre(r*u,i*c,1),e.fillStyle="rgb("+s.r+","+s.g+","+s.b+")",e.fillRect(t-.5,n-.5,2,2);e.strokeStyle="rgba(0,0,0,1)",e.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),e.stroke(),this.hueCircle=e.getImageData(0,0,o,a)}this.generated=!0}},{key:"_moveSelector",value:function(e){var t=this.colorPickerDiv.getBoundingClientRect(),n=e.center.x-t.left,r=e.center.y-t.top,i=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,a=n-o,s=r-i,l=Math.atan2(a,s),u=.98*Math.min(Math.sqrt(a*a+s*s),o),c=Math.cos(l)*u+i,d=Math.sin(l)*u+o;this.colorPickerSelector.style.top=c-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=d-.5*this.colorPickerSelector.clientWidth+"px";var h=l/(2*Math.PI);h=h<0?h+1:h;var p=u/this.r,f=Qre(this.color.r,this.color.g,this.color.b);f.h=h,f.s=p;var m=Xre(f.h,f.s,f.v);m.a=this.color.a,this.color=m,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),e}();function oie(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t.length<1)throw new TypeError("Invalid arguments.");if(1===t.length)return document.createTextNode(t[0]);var r=document.createElement(t[0]);return r.appendChild(oie.apply(void 0,w4(O4(t).call(t,1)))),r}var aie,sie=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return!1};p2(this,e),this.parent=t,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.hideOption=o,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},_7(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new iie(i),this.wrapper=void 0}return k6(e,[{key:"setOptions",value:function(e){if(void 0!==e){this.popupHistory={},this._removePopup();var t=!0;if("string"==typeof e)this.options.filter=e;else if(j4(e))this.options.filter=e.join();else if("object"===w6(e)){if(null==e)throw new TypeError("options cannot be null");void 0!==e.container&&(this.options.container=e.container),void 0!==nee(e)&&(this.options.filter=nee(e)),void 0!==e.showButton&&(this.options.showButton=e.showButton),void 0!==e.enabled&&(t=e.enabled)}else"boolean"==typeof e?(this.options.filter=!0,t=e):"function"==typeof e&&(this.options.filter=e,t=!0);!1===nee(this.options)&&(t=!1),this.options.enabled=t}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=nee(this.options),t=0,n=!1;for(var r in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,r)&&(this.allowCreation=!1,n=!1,"function"==typeof e?n=(n=e(r,[]))||this._handleObject(this.configureOptions[r],[r],!0):!0!==e&&-1===Qee(e).call(e,r)||(n=!0),!1!==n&&(this.allowCreation=!0,t>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),t++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e<this.domElements.length;e++)this.wrapper.appendChild(this.domElements[e]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var e=0;e<this.domElements.length;e++)this.wrapper.removeChild(this.domElements[e]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(e){for(var t=this.moduleOptions,n=0;n<e.length;n++){if(void 0===t[e[n]]){t=void 0;break}t=t[e[n]]}return t}},{key:"_makeItem",value:function(e){if(!0===this.allowCreation){var t=document.createElement("div");t.className="vis-configuration vis-config-item vis-config-s"+e.length;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return O8(r).call(r,(function(e){t.appendChild(e)})),this.domElements.push(t),this.domElements.length}return 0}},{key:"_makeHeader",value:function(e){var t=document.createElement("div");t.className="vis-configuration vis-config-header",t.innerText=e,this._makeItem([],t)}},{key:"_makeLabel",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");if(r.className="vis-configuration vis-config-label vis-config-s"+t.length,!0===n){for(;r.firstChild;)r.removeChild(r.firstChild);r.appendChild(oie("i","b",e))}else r.innerText=e+":";return r}},{key:"_makeDropdown",value:function(e,t,n){var r=document.createElement("select");r.className="vis-configuration vis-config-select";var i=0;void 0!==t&&-1!==Qee(e).call(e,t)&&(i=Qee(e).call(e,t));for(var o=0;o<e.length;o++){var a=document.createElement("option");a.value=e[o],o===i&&(a.selected="selected"),a.innerText=e[o],r.appendChild(a)}var s=this;r.onchange=function(){s._update(this.value,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,r)}},{key:"_makeRange",value:function(e,t,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=document.createElement("input");s.className="vis-configuration vis-config-range";try{s.type="range",s.min=i,s.max=o}catch(e){}s.step=a;var l="",u=0;if(void 0!==t){var c=1.2;t<0&&t*c<i?(s.min=Math.ceil(t*c),u=s.min,l="range increased"):t/c<i&&(s.min=Math.ceil(t/c),u=s.min,l="range increased"),t*c>o&&1!==o&&(s.max=Math.ceil(t*c),u=s.max,l="range increased"),s.value=t}else s.value=r;var d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=s.value;var h=this;s.onchange=function(){d.value=this.value,h._update(Number(this.value),n)},s.oninput=function(){d.value=this.value};var p=this._makeLabel(n[n.length-1],n),f=this._makeItem(n,p,s,d);""!==l&&this.popupHistory[f]!==u&&(this.popupHistory[f]=u,this._setupPopup(l,f))}},{key:"_makeButton",value:function(){var e=this;if(!0===this.options.showButton){var t=document.createElement("div");t.className="vis-configuration vis-config-button",t.innerText="generate options",t.onclick=function(){e._printOptions()},t.onmouseover=function(){t.className="vis-configuration vis-config-button hover"},t.onmouseout=function(){t.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(t)}}},{key:"_setupPopup",value:function(e,t){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var r=document.createElement("div");r.id="vis-configuration-popup",r.className="vis-configuration-popup",r.innerText=e,r.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:r,index:t}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var e=this;if(void 0!==this.popupDiv.html){var t=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=t.left+"px",this.popupDiv.html.style.top=t.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=_te((function(){e.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=_te((function(){e._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(e,t,n){var r=document.createElement("input");r.type="checkbox",r.className="vis-configuration vis-config-checkbox",r.checked=e,void 0!==t&&(r.checked=t,t!==e&&("object"===w6(e)?t!==e.enabled&&this.changedOptions.push({path:n,value:t}):this.changedOptions.push({path:n,value:t})));var i=this;r.onchange=function(){i._update(this.checked,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeTextInput",value:function(e,t,n){var r=document.createElement("input");r.type="text",r.className="vis-configuration vis-config-text",r.value=t,t!==e&&this.changedOptions.push({path:n,value:t});var i=this;r.onchange=function(){i._update(this.value,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeColorField",value:function(e,t,n){var r=this,i=e[1],o=document.createElement("div");"none"!==(t=void 0===t?i:t)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=t):o.className="vis-configuration vis-config-colorBlock none",t=void 0===t?i:t,o.onclick=function(){r._showColorPicker(t,o,n)};var a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,o)}},{key:"_showColorPicker",value:function(e,t,n){var r=this;t.onclick=function(){},this.colorPicker.insertTo(t),this.colorPicker.show(),this.colorPicker.setColor(e),this.colorPicker.setUpdateCallback((function(e){var i="rgba("+e.r+","+e.g+","+e.b+","+e.a+")";t.style.backgroundColor=i,r._update(i,n)})),this.colorPicker.setCloseCallback((function(){t.onclick=function(){r._showColorPicker(e,t,n)}}))}},{key:"_handleObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,i=nee(this.options),o=!1;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){r=!0;var s=e[a],l=Yre(t,a);if("function"==typeof i&&!1===(r=i(a,t))&&!j4(s)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,l,!0),this.allowCreation=!1===n),!1!==r){o=!0;var u=this._getValue(l);if(j4(s))this._handleArray(s,u,l);else if("string"==typeof s)this._makeTextInput(s,u,l);else if("boolean"==typeof s)this._makeCheckbox(s,u,l);else if(s instanceof Object){if(!this.hideOption(t,a,this.moduleOptions))if(void 0!==s.enabled){var c=Yre(l,"enabled"),d=this._getValue(c);if(!0===d){var h=this._makeLabel(a,l,!0);this._makeItem(l,h),o=this._handleObject(s,l)||o}else this._makeCheckbox(s,d,l)}else{var p=this._makeLabel(a,l,!0);this._makeItem(l,p),o=this._handleObject(s,l)||o}}else console.error("dont know how to handle",s,a,l)}}return o}},{key:"_handleArray",value:function(e,t,n){"string"==typeof e[0]&&"color"===e[0]?(this._makeColorField(e,t,n),e[1]!==t&&this.changedOptions.push({path:n,value:t})):"string"==typeof e[0]?(this._makeDropdown(e,t,n),e[0]!==t&&this.changedOptions.push({path:n,value:t})):"number"==typeof e[0]&&(this._makeRange(e,t,n),e[0]!==t&&this.changedOptions.push({path:n,value:Number(t)}))}},{key:"_update",value:function(e,t){var n=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;e="false"!==(e="true"===e||e)&&e;for(var i=0;i<t.length;i++)"global"!==t[i]&&(void 0===r[t[i]]&&(r[t[i]]={}),i!==t.length-1?r=r[t[i]]:r[t[i]]=e);return n}},{key:"_printOptions",value:function(){for(var e=this.getOptions();this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(oie("pre","const options = "+nte(e,null,2)))}},{key:"getOptions",value:function(){for(var e={},t=0;t<this.changedOptions.length;t++)this._constructOptions(this.changedOptions[t].value,this.changedOptions[t].path,e);return e}}]),e}(),lie=function(){function e(t,n){p2(this,e),this.container=t,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return k6(e,[{key:"setPosition",value:function(e,t){this.x=Lee(e),this.y=Lee(t)}},{key:"setText",value:function(e){if(e instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(e)}else this.frame.innerText=e}},{key:"show",value:function(e){if(void 0===e&&(e=!0),!0===e){var t=this.frame.clientHeight,n=this.frame.clientWidth,r=this.frame.parentNode.clientHeight,i=this.frame.parentNode.clientWidth,o=0,a=0;if("flip"==this.overflowMethod){var s=!1,l=!0;this.y-t<this.padding&&(l=!1),this.x+n>i-this.padding&&(s=!0),o=s?this.x-n:this.x,a=l?this.y-t:this.y}else(a=this.y-t)+t+this.padding>r&&(a=r-t-this.padding),a<this.padding&&(a=this.padding),(o=this.x)+n+this.padding>i&&(o=i-n-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=a+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),e}(),uie=!1,cie="background: #FFeeee; color: #dd0000",die=function(){function e(){p2(this,e)}return k6(e,null,[{key:"validate",value:function(t,n,r){uie=!1,aie=n;var i=n;return void 0!==r&&(i=n[r]),e.parse(t,i,[]),uie}},{key:"parse",value:function(t,n,r){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.check(i,t,n,r)}},{key:"check",value:function(t,n,r,i){if(void 0!==r[t]||void 0!==r.__any__){var o=t,a=!0;void 0===r[t]&&void 0!==r.__any__&&(o="__any__",a="object"===e.getType(n[t]));var s=r[o];a&&void 0!==s.__type__&&(s=s.__type__),e.checkFields(t,n,r,o,s,i)}else e.getSuggestion(t,r,i)}},{key:"checkFields",value:function(t,n,r,i,o,a){var s=function(n){console.error("%c"+n+e.printLocation(a,t),cie)},l=e.getType(n[t]),u=o[l];void 0!==u?"array"===e.getType(u)&&-1===Qee(u).call(u,n[t])?(s('Invalid option detected in "'+t+'". Allowed values are:'+e.print(u)+' not "'+n[t]+'". '),uie=!0):"object"===l&&"__any__"!==i&&(a=Yre(a,t),e.parse(n[t],r[i],a)):void 0===o.any&&(s('Invalid type received for "'+t+'". Expected: '+e.print(V4(o))+". Received ["+l+'] "'+n[t]+'"'),uie=!0)}},{key:"getType",value:function(e){var t=w6(e);return"object"===t?null===e?"null":e instanceof Boolean?"boolean":e instanceof Number?"number":e instanceof String?"string":j4(e)?"array":e instanceof Date?"date":void 0!==e.nodeType?"dom":!0===e._isAMomentObject?"moment":"object":"number"===t?"number":"boolean"===t?"boolean":"string"===t?"string":void 0===t?"undefined":t}},{key:"getSuggestion",value:function(t,n,r){var i,o=e.findInOptions(t,n,r,!1),a=e.findInOptions(t,aie,[],!0);i=void 0!==o.indexMatch?" in "+e.printLocation(o.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':a.distance<=4&&o.distance>a.distance?" in "+e.printLocation(o.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(a.path,a.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+e.printLocation(o.path,t):". Did you mean one of these: "+e.print(V4(n))+e.printLocation(r,t),console.error('%cUnknown option detected: "'+t+'"'+i,cie),uie=!0}},{key:"findInOptions",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[],l=t.toLowerCase(),u=void 0;for(var c in n){var d=void 0;if(void 0!==n[c].__type__&&!0===i){var h=e.findInOptions(t,n[c],Yre(r,c));o>h.distance&&(a=h.closestMatch,s=h.path,o=h.distance,u=h.indexMatch)}else{var p;-1!==Qee(p=c.toLowerCase()).call(p,l)&&(u=c),o>(d=e.levenshteinDistance(t,c))&&(a=c,s=zre(r),o=d)}}return{closestMatch:a,path:s,distance:o,indexMatch:u}}},{key:"printLocation",value:function(e,t){for(var n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",r=0;r<e.length;r++){for(var i=0;i<r+1;i++)n+=" ";n+=e[r]+": {\n"}for(var o=0;o<e.length+1;o++)n+=" ";n+=t+"\n";for(var a=0;a<e.length+1;a++){for(var s=0;s<e.length-a;s++)n+=" ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(e){return nte(e).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}},{key:"levenshteinDistance",value:function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var n,r,i=[];for(n=0;n<=t.length;n++)i[n]=[n];for(r=0;r<=e.length;r++)i[0][r]=r;for(n=1;n<=t.length;n++)for(r=1;r<=e.length;r++)t.charAt(n-1)==e.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[t.length][e.length]}}]),e}(),hie=Dre,pie=iie,fie=sie,mie=Ore,vie=lie,gie=cie,yie=die,bie=Object.freeze({__proto__:null,Activator:hie,Alea:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){var t=function(){for(var e=function(){var e=4022871197;return function(t){for(var n=t.toString(),r=0;r<n.length;r++){var i=.02519603282416938*(e+=n.charCodeAt(r));i-=e=i>>>0,e=(i*=e)>>>0,e+=4294967296*(i-=e)}return 2.3283064365386963e-10*(e>>>0)}}(),t=e(" "),n=e(" "),r=e(" "),i=0;i<arguments.length;i++)(t-=e(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(t+=1),(n-=e(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(n+=1),(r-=e(i<0||arguments.length<=i?void 0:arguments[i]))<0&&(r+=1);return[t,n,r]}(e),n=b4(t,3),r=n[0],i=n[1],o=n[2],a=1,s=function(){var e=2091639*r+2.3283064365386963e-10*a;return r=i,i=o,o=e-(a=0|e)};return s.uint32=function(){return 4294967296*s()},s.fract53=function(){return s()+11102230246251565e-32*(2097152*s()|0)},s.algorithm="Alea",s.seed=e,s.version="0.9",s}(t.length?t:[X4()])},ColorPicker:pie,Configurator:fie,DELETE:_re,HSVToHex:Kre,HSVToRGB:Xre,Hammer:mie,Popup:vie,RGBToHSV:Qre,RGBToHex:qre,VALIDATOR_PRINT_STYLE:gie,Validator:yie,addClassName:function(e,t){var n=e.className.split(" "),r=t.split(" ");n=E4(n).call(n,nee(r).call(r,(function(e){return!W7(n).call(n,e)}))),e.className=n.join(" ")},addCssText:function(e,t){for(var n=$re(t),r=0,i=Xee(n);r<i.length;r++){var o=b4(i[r],2),a=o[0],s=o[1];e.style.setProperty(a,s)}},addEventListener:function(e,t,n,r){var i;e.addEventListener?(void 0===r&&(r=!1),"mousewheel"===t&&W7(i=navigator.userAgent).call(i,"Firefox")&&(t="DOMMouseScroll"),e.addEventListener(t,n,r)):e.attachEvent("on"+t,n)},binarySearchCustom:function(e,t,n,r){for(var i=0,o=0,a=e.length-1;o<=a&&i<1e4;){var s=Math.floor((o+a)/2),l=e[s],u=t(void 0===r?l[n]:l[n][r]);if(0==u)return s;-1==u?o=s+1:a=s-1,i++}return-1},binarySearchValue:function(e,t,n,r,i){var o,a,s,l,u=0,c=0,d=e.length-1;for(i=null!=i?i:function(e,t){return e==t?0:e<t?-1:1};c<=d&&u<1e4;){if(l=Math.floor(.5*(d+c)),o=e[Math.max(0,l-1)][n],a=e[l][n],s=e[Math.min(e.length-1,l+1)][n],0==i(a,t))return l;if(i(o,t)<0&&i(a,t)>0)return"before"==r?Math.max(0,l-1):l;if(i(a,t)<0&&i(s,t)>0)return"before"==r?l:Math.min(e.length-1,l+1);i(a,t)<0?c=l+1:d=l-1,u++}return-1},bridgeObject:nie,copyAndExtendArray:Yre,copyArray:zre,deepExtend:Ure,deepObjectAssign:kre,easingFunctions:{linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return e*(2-e)},easeInOutQuad:function(e){return e<.5?2*e*e:(4-2*e)*e-1},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return--e*e*e+1},easeInOutCubic:function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return 1- --e*e*e*e},easeInOutQuart:function(e){return e<.5?8*e*e*e*e:1-8*--e*e*e*e},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return 1+--e*e*e*e*e},easeInOutQuint:function(e){return e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e}},equalArray:function(e,t){if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(e[n]!=t[n])return!1;return!0},extend:Bre,fillIfDefined:function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var i in t)if(void 0!==n[i])if(null===n[i]||"object"!==w6(n[i]))Fre(t,n,i,r);else{var o=t[i],a=n[i];Lre(o)&&Lre(a)&&e(o,a,r)}},forEach:function(e,t){if(j4(e))for(var n=e.length,r=0;r<n;r++)t(e[r],r,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t(e[i],i,e)},getAbsoluteLeft:function(e){return e.getBoundingClientRect().left},getAbsoluteRight:function(e){return e.getBoundingClientRect().right},getAbsoluteTop:function(e){return e.getBoundingClientRect().top},getScrollBarWidth:function(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;return n==r&&(r=t.clientWidth),document.body.removeChild(t),n-r},getTarget:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.event,t=null;return e&&(e.target?t=e.target:e.srcElement&&(t=e.srcElement)),t instanceof Element&&(null==t.nodeType||3!=t.nodeType||(t=t.parentNode)instanceof Element)?t:null},getType:Hre,hasParent:function(e,t){for(var n=e;n;){if(n===t)return!0;if(!n.parentNode)return!1;n=n.parentNode}return!1},hexToHSV:Zre,hexToRGB:Vre,insertSort:function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=void 0;for(i=n;i>0&&t(r,e[i-1])<0;i--)e[i]=e[i-1];e[i]=r}return e},isDate:function(e){if(e instanceof Date)return!0;if(jre(e)){if(Mre.exec(e))return!0;if(!isNaN(Date.parse(e)))return!0}return!1},isNumber:Nre,isObject:Lre,isString:jre,isValidHex:Jre,isValidRGB:eie,isValidRGBA:tie,mergeOptions:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=function(e){return null!=e},o=function(e){return null!==e&&"object"===w6(e)};if(!o(e))throw new Error("Parameter mergeTarget must be an object");if(!o(t))throw new Error("Parameter options must be an object");if(!i(n))throw new Error("Parameter option must have a value");if(!o(r))throw new Error("Parameter globalOptions must be an object");var a=t[n],s=o(r)&&!function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(r),l=s?r[n]:void 0,u=l?l.enabled:void 0;if(void 0!==a){if("boolean"==typeof a)return o(e[n])||(e[n]={}),void(e[n].enabled=a);if(null===a&&!o(e[n])){if(!i(l))return;e[n]=Jee(l)}if(o(a)){var c=!0;void 0!==a.enabled?c=a.enabled:void 0!==u&&(c=l.enabled),function(e,t,n){o(e[n])||(e[n]={});var r=t[n],i=e[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])}(e,t,n),e[n].enabled=c}}},option:Gre,overrideOpacity:function(e,t){if(W7(e).call(e,"rgba"))return e;if(W7(e).call(e,"rgb")){var n=e.substr(Qee(e).call(e,"(")+1).replace(")","").split(",");return"rgba("+n[0]+","+n[1]+","+n[2]+","+t+")"}var r=Vre(e);return null==r?e:"rgba("+r.r+","+r.g+","+r.b+","+t+")"},parseColor:function(e,t){if(jre(e)){var n=e;if(eie(n)){var r,i=z4(r=n.substr(4).substr(0,n.length-5).split(",")).call(r,(function(e){return Lee(e)}));n=qre(i[0],i[1],i[2])}if(!0===Jre(n)){var o=Zre(n),a={h:o.h,s:.8*o.s,v:Math.min(1,1.02*o.v)},s={h:o.h,s:Math.min(1,1.25*o.s),v:.8*o.v},l=Kre(s.h,s.s,s.v),u=Kre(a.h,a.s,a.v);return{background:n,border:l,highlight:{background:u,border:l},hover:{background:u,border:l}}}return{background:n,border:n,highlight:{background:n,border:n},hover:{background:n,border:n}}}return t?{background:e.background||t.background,border:e.border||t.border,highlight:jre(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||t.highlight.background,border:e.highlight&&e.highlight.border||t.highlight.border},hover:jre(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||t.hover.border,background:e.hover&&e.hover.background||t.hover.background}}:{background:e.background||void 0,border:e.border||void 0,highlight:jre(e.highlight)?{border:e.highlight,background:e.highlight}:{background:e.highlight&&e.highlight.background||void 0,border:e.highlight&&e.highlight.border||void 0},hover:jre(e.hover)?{border:e.hover,background:e.hover}:{border:e.hover&&e.hover.border||void 0,background:e.hover&&e.hover.background||void 0}}},preventDefault:function(e){e||(e=window.event),e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},pureDeepObjectAssign:Sre,recursiveDOMDelete:function e(t){if(t)for(;!0===t.hasChildNodes();){var n=t.firstChild;n&&(e(n),t.removeChild(n))}},removeClassName:function(e,t){var n=e.className.split(" "),r=t.split(" ");n=nee(n).call(n,(function(e){return!W7(r).call(r,e)})),e.className=n.join(" ")},removeCssText:function(e,t){for(var n=$re(t),r=0,i=V4(n);r<i.length;r++){var o=i[r];e.style.removeProperty(o)}},removeEventListener:function(e,t,n,r){var i;e.removeEventListener?(void 0===r&&(r=!1),"mousewheel"===t&&W7(i=navigator.userAgent).call(i,"Firefox")&&(t="DOMMouseScroll"),e.removeEventListener(t,n,r)):e.detachEvent("on"+t,n)},selectiveBridgeObject:function(e,t){if(null!==t&&"object"===w6(t)){for(var n=Jee(t),r=0;r<e.length;r++)Object.prototype.hasOwnProperty.call(t,e[r])&&"object"==w6(t[e[r]])&&(n[e[r]]=nie(t[e[r]]));return n}return null},selectiveDeepExtend:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(j4(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i=0;i<e.length;i++){var o=e[i];if(Object.prototype.hasOwnProperty.call(n,o))if(n[o]&&n[o].constructor===Object)void 0===t[o]&&(t[o]={}),t[o].constructor===Object?Ure(t[o],n[o],!1,r):Fre(t,n,o,r);else{if(j4(n[o]))throw new TypeError("Arrays are not supported by deepExtend");Fre(t,n,o,r)}}return t},selectiveExtend:function(e,t){if(!j4(e))throw new Error("Array with property names expected as first argument");for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];for(var o=0,a=r;o<a.length;o++)for(var s=a[o],l=0;l<e.length;l++){var u=e[l];s&&Object.prototype.hasOwnProperty.call(s,u)&&(t[u]=s[u])}return t},selectiveNotDeepExtend:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(j4(n))throw new TypeError("Arrays are not supported by deepExtend");for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&!W7(e).call(e,i))if(n[i]&&n[i].constructor===Object)void 0===t[i]&&(t[i]={}),t[i].constructor===Object?Ure(t[i],n[i]):Fre(t,n,i,r);else if(j4(n[i])){t[i]=[];for(var o=0;o<n[i].length;o++)t[i].push(n[i][o])}else Fre(t,n,i,r);return t},throttle:function(e){var t=!1;return function(){t||(t=!0,requestAnimationFrame((function(){t=!1,e()})))}},toArray:Wre,topMost:function(e,t){var n;j4(t)||(t=[t]);var r,i=wre(e);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(o){n=o[t[0]];for(var a=1;a<t.length;a++)n&&(n=n[t[a]]);if(void 0!==n)break}}}catch(e){i.e(e)}finally{i.f()}return n},updateProperty:function(e,t,n){return e[t]!==n&&(e[t]=n,!0)}});function wie(e){for(var t in e)e.hasOwnProperty(t)&&(e[t].redundant=e[t].used,e[t].used=[])}function xie(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t].redundant){for(var n=0;n<e[t].redundant.length;n++)e[t].redundant[n].parentNode.removeChild(e[t].redundant[n]);e[t].redundant=[]}}function _ie(e,t,n){var r;return t.hasOwnProperty(e)?t[e].redundant.length>0?(r=t[e].redundant[0],t[e].redundant.shift()):(r=document.createElementNS("http://www.w3.org/2000/svg",e),n.appendChild(r)):(r=document.createElementNS("http://www.w3.org/2000/svg",e),t[e]={used:[],redundant:[]},n.appendChild(r)),t[e].used.push(r),r}function Sie(e,t,n,r){var i;return t.hasOwnProperty(e)?t[e].redundant.length>0?(i=t[e].redundant[0],t[e].redundant.shift()):(i=document.createElement(e),void 0!==r?n.insertBefore(i,r):n.appendChild(i)):(i=document.createElement(e),t[e]={used:[],redundant:[]},void 0!==r?n.insertBefore(i,r):n.appendChild(i)),t[e].used.push(i),i}function kie(e,t,n,r,i,o){var a;if("circle"==n.style?((a=_ie("circle",r,i)).setAttributeNS(null,"cx",e),a.setAttributeNS(null,"cy",t),a.setAttributeNS(null,"r",.5*n.size)):((a=_ie("rect",r,i)).setAttributeNS(null,"x",e-.5*n.size),a.setAttributeNS(null,"y",t-.5*n.size),a.setAttributeNS(null,"width",n.size),a.setAttributeNS(null,"height",n.size)),void 0!==n.styles&&a.setAttributeNS(null,"style",n.styles),a.setAttributeNS(null,"class",n.className+" vis-point"),o){var s=_ie("text",r,i);o.xOffset&&(e+=o.xOffset),o.yOffset&&(t+=o.yOffset),o.content&&(s.textContent=o.content),o.className&&s.setAttributeNS(null,"class",o.className+" vis-label"),s.setAttributeNS(null,"x",e),s.setAttributeNS(null,"y",t)}return a}function Tie(e,t,n,r,i,o,a,s){if(0!=r){r<0&&(t-=r*=-1);var l=_ie("rect",o,a);l.setAttributeNS(null,"x",e-.5*n),l.setAttributeNS(null,"y",t),l.setAttributeNS(null,"width",n),l.setAttributeNS(null,"height",r),l.setAttributeNS(null,"class",i),s&&l.setAttributeNS(null,"style",s)}}function Cie(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Eie=Zee,Oie=qq(Eie);yZ({target:"Object",stat:!0},{setPrototypeOf:d0});var Die=tX.Object.setPrototypeOf,Mie=qq(Die),Aie=qq(f8);function Iie(e,t){var n;return Iie=Mie?Aie(n=Mie).call(n):function(e,t){return e.__proto__=t,e},Iie(e,t)}function Pie(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Oie(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),_2(e,"prototype",{writable:!1}),t&&Iie(e,t)}function Rie(e,t){if(t&&("object"===w6(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Cie(e)}var Nie=Q7,jie=qq(Nie);function Lie(e){var t;return Lie=Mie?Aie(t=jie).call(t):function(e){return e.__proto__||jie(e)},Lie(e)}function Fie(e,t,n){return(t=_6(t))in e?_2(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Bie={exports:{}},Uie={exports:{}};!function(e){var t=m6,n=y6;function r(i){return e.exports=r="function"==typeof t&&"symbol"==typeof n?function(e){return typeof e}:function(e){return e&&"function"==typeof t&&e.constructor===t&&e!==t.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,r(i)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}(Uie);var Hie=Uie.exports,Yie=E8,zie=MQ,Wie=R4,Gie=CK,Vie=U$,qie=F$,Qie=JX,$ie=Error,Xie=iQ("".replace),Kie=String(new $ie("zxcasd").stack),Zie=/\n\s*at [^:]*:[^\n]*/,Jie=Zie.test(Kie),eoe=XX,toe=!Zq((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",eoe(1,7)),7!==e.stack)})),noe=JX,roe=function(e,t){if(Jie&&"string"==typeof e&&!$ie.prepareStackTrace)for(;t--;)e=Xie(e,Zie,"");return e},ioe=toe,ooe=Error.captureStackTrace,aoe=aZ,soe=eX,loe=K$,uoe=fX,coe=G0,doe=PZ,hoe=sX,poe=C1,foe=b1,moe=B0,voe=TypeError,goe=function(e,t){this.stopped=e,this.result=t},yoe=goe.prototype,boe=function(e,t,n){var r,i,o,a,s,l,u,c=n&&n.that,d=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_RECORD),p=!(!n||!n.IS_ITERATOR),f=!(!n||!n.INTERRUPTED),m=aoe(t,c),v=function(e){return r&&moe(r,"normal",e),new goe(!0,e)},g=function(e){return d?(loe(e),f?m(e[0],e[1],v):m(e[0],e[1])):f?m(e,v):m(e)};if(h)r=e.iterator;else if(p)r=e;else{if(!(i=foe(e)))throw new voe(uoe(e)+" is not iterable");if(coe(i)){for(o=0,a=doe(e);a>o;o++)if((s=g(e[o]))&&hoe(yoe,s))return s;return new goe(!1)}r=poe(e,i)}for(l=h?e.next:r.next;!(u=soe(l,r)).done;){try{s=g(u.value)}catch(e){moe(r,"throw",e)}if("object"==typeof s&&s&&hoe(yoe,s))return s}return new goe(!1)},woe=S$,xoe=yZ,_oe=sX,Soe=OJ,koe=d0,Toe=function(e,t,n){for(var r=Wie(t),i=Vie.f,o=Gie.f,a=0;a<r.length;a++){var s=r[a];zie(e,s)||n&&zie(n,s)||i(e,s,o(t,s))}},Coe=bJ,Eoe=JX,Ooe=XX,Doe=function(e,t){qie(t)&&"cause"in t&&Qie(e,"cause",t.cause)},Moe=function(e,t,n,r){ioe&&(ooe?ooe(e,t):noe(e,"stack",roe(n,r)))},Aoe=boe,Ioe=function(e,t){return void 0===e?arguments.length<2?"":t:woe(e)},Poe=r$("toStringTag"),Roe=Error,Noe=[].push,joe=function(e,t){var n,r=_oe(Loe,this);koe?n=koe(new Roe,r?Soe(this):Loe):(n=r?this:Coe(Loe),Eoe(n,Poe,"Error")),void 0!==t&&Eoe(n,"message",Ioe(t)),Moe(n,joe,n.stack,1),arguments.length>2&&Doe(n,arguments[2]);var i=[];return Aoe(e,Noe,{that:i}),Eoe(n,"errors",i),n};koe?koe(joe,Roe):Toe(joe,Roe,{name:!0});var Loe=joe.prototype=Coe(Roe.prototype,{constructor:Ooe(1,joe),message:Ooe(1,""),name:Ooe(1,"AggregateError")});xoe({global:!0,constructor:!0,arity:2},{AggregateError:joe});var Foe,Boe,Uoe,Hoe,Yoe="process"===p$(cQ.process),zoe=aX,Woe=m9,Goe=B$,Voe=r$("species"),qoe=function(e){var t=zoe(e);Goe&&t&&!t[Voe]&&Woe(t,Voe,{configurable:!0,get:function(){return this}})},Qoe=sX,$oe=TypeError,Xoe=function(e,t){if(Qoe(t,e))return e;throw new $oe("Incorrect invocation")},Koe=u1,Zoe=fX,Joe=TypeError,eae=function(e){if(Koe(e))return e;throw new Joe(Zoe(e)+" is not a constructor")},tae=K$,nae=eae,rae=xQ,iae=r$("species"),oae=function(e,t){var n,r=tae(e).constructor;return void 0===r||rae(n=tae(r)[iae])?t:nae(n)},aae=/(?:ipad|iphone|ipod).*applewebkit/i.test(jQ),sae=cQ,lae=_K,uae=aZ,cae=u$,dae=MQ,hae=Zq,pae=nJ,fae=s5,mae=W$,vae=ote,gae=aae,yae=Yoe,bae=sae.setImmediate,wae=sae.clearImmediate,xae=sae.process,_ae=sae.Dispatch,Sae=sae.Function,kae=sae.MessageChannel,Tae=sae.String,Cae=0,Eae={},Oae="onreadystatechange";hae((function(){Foe=sae.location}));var Dae=function(e){if(dae(Eae,e)){var t=Eae[e];delete Eae[e],t()}},Mae=function(e){return function(){Dae(e)}},Aae=function(e){Dae(e.data)},Iae=function(e){sae.postMessage(Tae(e),Foe.protocol+"//"+Foe.host)};bae&&wae||(bae=function(e){vae(arguments.length,1);var t=cae(e)?e:Sae(e),n=fae(arguments,1);return Eae[++Cae]=function(){lae(t,void 0,n)},Boe(Cae),Cae},wae=function(e){delete Eae[e]},yae?Boe=function(e){xae.nextTick(Mae(e))}:_ae&&_ae.now?Boe=function(e){_ae.now(Mae(e))}:kae&&!gae?(Hoe=(Uoe=new kae).port2,Uoe.port1.onmessage=Aae,Boe=uae(Hoe.postMessage,Hoe)):sae.addEventListener&&cae(sae.postMessage)&&!sae.importScripts&&Foe&&"file:"!==Foe.protocol&&!hae(Iae)?(Boe=Iae,sae.addEventListener("message",Aae,!1)):Boe=Oae in mae("script")?function(e){pae.appendChild(mae("script"))[Oae]=function(){pae.removeChild(this),Dae(e)}}:function(e){setTimeout(Mae(e),0)});var Pae={set:bae,clear:wae},Rae=function(){this.head=null,this.tail=null};Rae.prototype={add:function(e){var t={item:e,next:null},n=this.tail;n?n.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return null===(this.head=e.next)&&(this.tail=null),e.item}};var Nae,jae,Lae,Fae,Bae,Uae=Rae,Hae=/ipad|iphone|ipod/i.test(jQ)&&"undefined"!=typeof Pebble,Yae=/web0s(?!.*chrome)/i.test(jQ),zae=cQ,Wae=aZ,Gae=CK.f,Vae=Pae.set,qae=Uae,Qae=aae,$ae=Hae,Xae=Yae,Kae=Yoe,Zae=zae.MutationObserver||zae.WebKitMutationObserver,Jae=zae.document,ese=zae.process,tse=zae.Promise,nse=Gae(zae,"queueMicrotask"),rse=nse&&nse.value;if(!rse){var ise=new qae,ose=function(){var e,t;for(Kae&&(e=ese.domain)&&e.exit();t=ise.get();)try{t()}catch(e){throw ise.head&&Nae(),e}e&&e.enter()};Qae||Kae||Xae||!Zae||!Jae?!$ae&&tse&&tse.resolve?((Fae=tse.resolve(void 0)).constructor=tse,Bae=Wae(Fae.then,Fae),Nae=function(){Bae(ose)}):Kae?Nae=function(){ese.nextTick(ose)}:(Vae=Wae(Vae,zae),Nae=function(){Vae(ose)}):(jae=!0,Lae=Jae.createTextNode(""),new Zae(ose).observe(Lae,{characterData:!0}),Nae=function(){Lae.data=jae=!jae}),rse=function(e){ise.head||Nae(),ise.add(e)}}var ase=rse,sse=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},lse=cQ.Promise,use="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,cse=!use&&!Yoe&&"object"==typeof window&&"object"==typeof document,dse=cQ,hse=lse,pse=u$,fse=nZ,mse=$0,vse=r$,gse=cse,yse=use,bse=zQ,wse=hse&&hse.prototype,xse=vse("species"),_se=!1,Sse=pse(dse.PromiseRejectionEvent),kse=fse("Promise",(function(){var e=mse(hse),t=e!==String(hse);if(!t&&66===bse)return!0;if(!wse.catch||!wse.finally)return!0;if(!bse||bse<51||!/native code/.test(e)){var n=new hse((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};if((n.constructor={})[xse]=r,!(_se=n.then((function(){}))instanceof r))return!0}return!t&&(gse||yse)&&!Sse})),Tse={CONSTRUCTOR:kse,REJECTION_EVENT:Sse,SUBCLASSING:_se},Cse={},Ese=yX,Ose=TypeError,Dse=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw new Ose("Bad Promise constructor");t=e,n=r})),this.resolve=Ese(t),this.reject=Ese(n)};Cse.f=function(e){return new Dse(e)};var Mse,Ase,Ise=yZ,Pse=Yoe,Rse=cQ,Nse=eX,jse=MJ,Lse=$J,Fse=qoe,Bse=yX,Use=u$,Hse=F$,Yse=Xoe,zse=oae,Wse=Pae.set,Gse=ase,Vse=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},qse=sse,Qse=Uae,$se=gK,Xse=lse,Kse=Cse,Zse="Promise",Jse=Tse.CONSTRUCTOR,ele=Tse.REJECTION_EVENT,tle=$se.getterFor(Zse),nle=$se.set,rle=Xse&&Xse.prototype,ile=Xse,ole=rle,ale=Rse.TypeError,sle=Rse.document,lle=Rse.process,ule=Kse.f,cle=ule,dle=!!(sle&&sle.createEvent&&Rse.dispatchEvent),hle="unhandledrejection",ple=function(e){var t;return!(!Hse(e)||!Use(t=e.then))&&t},fle=function(e,t){var n,r,i,o=t.value,a=1===t.state,s=a?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{s?(a||(2===t.rejection&&ble(t),t.rejection=1),!0===s?n=o:(c&&c.enter(),n=s(o),c&&(c.exit(),i=!0)),n===e.promise?u(new ale("Promise-chain cycle")):(r=ple(n))?Nse(r,n,l,u):l(n)):u(o)}catch(e){c&&!i&&c.exit(),u(e)}},mle=function(e,t){e.notified||(e.notified=!0,Gse((function(){for(var n,r=e.reactions;n=r.get();)fle(n,e);e.notified=!1,t&&!e.rejection&&gle(e)})))},vle=function(e,t,n){var r,i;dle?((r=sle.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),Rse.dispatchEvent(r)):r={promise:t,reason:n},!ele&&(i=Rse["on"+e])?i(r):e===hle&&Vse("Unhandled promise rejection",n)},gle=function(e){Nse(Wse,Rse,(function(){var t,n=e.facade,r=e.value;if(yle(e)&&(t=qse((function(){Pse?lle.emit("unhandledRejection",r,n):vle(hle,n,r)})),e.rejection=Pse||yle(e)?2:1,t.error))throw t.value}))},yle=function(e){return 1!==e.rejection&&!e.parent},ble=function(e){Nse(Wse,Rse,(function(){var t=e.facade;Pse?lle.emit("rejectionHandled",t):vle("rejectionhandled",t,e.value)}))},wle=function(e,t,n){return function(r){e(t,r,n)}},xle=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,mle(e,!0))},_le=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw new ale("Promise can't be resolved itself");var r=ple(t);r?Gse((function(){var n={done:!1};try{Nse(r,t,wle(_le,n,e),wle(xle,n,e))}catch(t){xle(n,t,e)}})):(e.value=t,e.state=1,mle(e,!1))}catch(t){xle({done:!1},t,e)}}};Jse&&(ile=function(e){Yse(this,ole),Bse(e),Nse(Mse,this);var t=tle(this);try{e(wle(_le,t),wle(xle,t))}catch(e){xle(t,e)}},ole=ile.prototype,(Mse=function(e){nle(this,{type:Zse,done:!1,notified:!1,parent:!1,reactions:new Qse,rejection:!1,state:0,value:void 0})}).prototype=jse(ole,"then",(function(e,t){var n=tle(this),r=ule(zse(this,ile));return n.parent=!0,r.ok=!Use(e)||e,r.fail=Use(t)&&t,r.domain=Pse?lle.domain:void 0,0===n.state?n.reactions.add(r):Gse((function(){fle(r,n)})),r.promise})),Ase=function(){var e=new Mse,t=tle(e);this.promise=e,this.resolve=wle(_le,t),this.reject=wle(xle,t)},Kse.f=ule=function(e){return e===ile||undefined===e?new Ase(e):cle(e)}),Ise({global:!0,constructor:!0,wrap:!0,forced:Jse},{Promise:ile}),Lse(ile,Zse,!1,!0),Fse(Zse);var Sle=lse,kle=Tse.CONSTRUCTOR||!Y1((function(e){Sle.all(e).then(void 0,(function(){}))})),Tle=eX,Cle=yX,Ele=Cse,Ole=sse,Dle=boe;yZ({target:"Promise",stat:!0,forced:kle},{all:function(e){var t=this,n=Ele.f(t),r=n.resolve,i=n.reject,o=Ole((function(){var n=Cle(t.resolve),o=[],a=0,s=1;Dle(e,(function(e){var l=a++,u=!1;s++,Tle(n,t,e).then((function(e){u||(u=!0,o[l]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise}});var Mle=yZ,Ale=Tse.CONSTRUCTOR;lse&&lse.prototype,Mle({target:"Promise",proto:!0,forced:Ale,real:!0},{catch:function(e){return this.then(void 0,e)}});var Ile=eX,Ple=yX,Rle=Cse,Nle=sse,jle=boe;yZ({target:"Promise",stat:!0,forced:kle},{race:function(e){var t=this,n=Rle.f(t),r=n.reject,i=Nle((function(){var i=Ple(t.resolve);jle(e,(function(e){Ile(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Lle=eX,Fle=Cse;yZ({target:"Promise",stat:!0,forced:Tse.CONSTRUCTOR},{reject:function(e){var t=Fle.f(this);return Lle(t.reject,void 0,e),t.promise}});var Ble=K$,Ule=F$,Hle=Cse,Yle=function(e,t){if(Ble(e),Ule(t)&&t.constructor===e)return t;var n=Hle.f(e);return(0,n.resolve)(t),n.promise},zle=yZ,Wle=lse,Gle=Tse.CONSTRUCTOR,Vle=Yle,qle=aX("Promise"),Qle=!Gle;zle({target:"Promise",stat:!0,forced:true},{resolve:function(e){return Vle(Qle&&this===qle?Wle:this,e)}});var $le=eX,Xle=yX,Kle=Cse,Zle=sse,Jle=boe;yZ({target:"Promise",stat:!0,forced:kle},{allSettled:function(e){var t=this,n=Kle.f(t),r=n.resolve,i=n.reject,o=Zle((function(){var n=Xle(t.resolve),i=[],o=0,a=1;Jle(e,(function(e){var s=o++,l=!1;a++,$le(n,t,e).then((function(e){l||(l=!0,i[s]={status:"fulfilled",value:e},--a||r(i))}),(function(e){l||(l=!0,i[s]={status:"rejected",reason:e},--a||r(i))}))})),--a||r(i)}));return o.error&&i(o.value),n.promise}});var eue=eX,tue=yX,nue=aX,rue=Cse,iue=sse,oue=boe,aue="No one promise resolved";yZ({target:"Promise",stat:!0,forced:kle},{any:function(e){var t=this,n=nue("AggregateError"),r=rue.f(t),i=r.resolve,o=r.reject,a=iue((function(){var r=tue(t.resolve),a=[],s=0,l=1,u=!1;oue(e,(function(e){var c=s++,d=!1;l++,eue(r,t,e).then((function(e){d||u||(u=!0,i(e))}),(function(e){d||u||(d=!0,a[c]=e,--l||o(new n(a,aue)))}))})),--l||o(new n(a,aue))}));return a.error&&o(a.value),r.promise}});var sue=yZ,lue=lse,uue=Zq,cue=aX,due=u$,hue=oae,pue=Yle,fue=lue&&lue.prototype;sue({target:"Promise",proto:!0,real:!0,forced:!!lue&&uue((function(){fue.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=hue(this,cue("Promise")),n=due(e);return this.then(n?function(n){return pue(t,e()).then((function(){return n}))}:e,n?function(n){return pue(t,e()).then((function(){throw n}))}:e)}});var mue=tX.Promise,vue=Cse;yZ({target:"Promise",stat:!0},{withResolvers:function(){var e=vue.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}});var gue=mue,yue=Cse,bue=sse;yZ({target:"Promise",stat:!0,forced:!0},{try:function(e){var t=yue.f(this),n=bue(e);return(n.error?t.reject:t.resolve)(n.value),t.promise}});var wue=gue,xue=F8;!function(e){var t=Hie.default,n=x2,r=m6,i=Eie,o=Nie,a=Yie,s=V6,l=Die,u=wue,c=xue,d=f4;function h(){e.exports=h=function(){return f},e.exports.__esModule=!0,e.exports.default=e.exports;var p,f={},m=Object.prototype,v=m.hasOwnProperty,g=n||function(e,t,n){e[t]=n.value},y="function"==typeof r?r:{},b=y.iterator||"@@iterator",w=y.asyncIterator||"@@asyncIterator",x=y.toStringTag||"@@toStringTag";function _(e,t,r){return n(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{_({},"")}catch(p){_=function(e,t,n){return e[t]=n}}function S(e,t,n,r){var o=t&&t.prototype instanceof M?t:M,a=i(o.prototype),s=new Y(r||[]);return g(a,"_invoke",{value:F(e,n,s)}),a}function k(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}f.wrap=S;var T="suspendedStart",C="suspendedYield",E="executing",O="completed",D={};function M(){}function A(){}function I(){}var P={};_(P,b,(function(){return this}));var R=o&&o(o(z([])));R&&R!==m&&v.call(R,b)&&(P=R);var N=I.prototype=M.prototype=i(P);function j(e){var t;a(t=["next","throw","return"]).call(t,(function(t){_(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,n){function r(i,o,a,s){var l=k(e[i],e,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==t(c)&&v.call(c,"__await")?n.resolve(c.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):n.resolve(c).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var i;g(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,i){r(e,t,n,i)}))}return i=i?i.then(o,o):o()}})}function F(e,t,n){var r=T;return function(i,o){if(r===E)throw new Error("Generator is already running");if(r===O){if("throw"===i)throw o;return{value:p,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=B(a,n);if(s){if(s===D)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===T)throw r=O,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=E;var l=k(e,t,n);if("normal"===l.type){if(r=n.done?O:C,l.arg===D)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=O,n.method="throw",n.arg=l.arg)}}}function B(e,t){var n=t.method,r=e.iterator[n];if(r===p)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=p,B(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),D;var i=k(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,D;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=p),t.delegate=null,D):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,D)}function U(e){var t,n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),s(t=this.tryEntries).call(t,n)}function H(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function Y(e){this.tryEntries=[{tryLoc:"root"}],a(e).call(e,U,this),this.reset(!0)}function z(e){if(e||""===e){var n=e[b];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(v.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=p,t.done=!0,t};return i.next=i}}throw new TypeError(t(e)+" is not iterable")}return A.prototype=I,g(N,"constructor",{value:I,configurable:!0}),g(I,"constructor",{value:A,configurable:!0}),A.displayName=_(I,x,"GeneratorFunction"),f.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===A||"GeneratorFunction"===(t.displayName||t.name))},f.mark=function(e){return l?l(e,I):(e.__proto__=I,_(e,x,"GeneratorFunction")),e.prototype=i(N),e},f.awrap=function(e){return{__await:e}},j(L.prototype),_(L.prototype,w,(function(){return this})),f.AsyncIterator=L,f.async=function(e,t,n,r,i){void 0===i&&(i=u);var o=new L(S(e,t,n,r),i);return f.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},j(N),_(N,x,"Generator"),_(N,b,(function(){return this})),_(N,"toString",(function(){return"[object Generator]"})),f.keys=function(e){var t=Object(e),n=[];for(var r in t)s(n).call(n,r);return c(n).call(n),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},f.values=z,Y.prototype={constructor:Y,reset:function(e){var t;if(this.prev=0,this.next=0,this.sent=this._sent=p,this.done=!1,this.delegate=null,this.method="next",this.arg=p,a(t=this.tryEntries).call(t,H),!e)for(var n in this)"t"===n.charAt(0)&&v.call(this,n)&&!isNaN(+d(n).call(n,1))&&(this[n]=p)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=p),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var a=v.call(i,"catchLoc"),s=v.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,D):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),D},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),H(n),D}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;H(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:z(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=p),D}},f}e.exports=h,e.exports.__esModule=!0,e.exports.default=e.exports}(Bie);var _ue=(0,Bie.exports)(),Sue=_ue;try{regeneratorRuntime=_ue}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=_ue:Function("r","regeneratorRuntime = r")(_ue)}var kue=qq(Sue),Tue=yX,Cue=EQ,Eue=NK,Oue=PZ,Due=TypeError,Mue=function(e){return function(t,n,r,i){Tue(n);var o=Cue(t),a=Eue(o),s=Oue(o),l=e?s-1:0,u=e?-1:1;if(r<2)for(;;){if(l in a){i=a[l],l+=u;break}if(l+=u,e?l<0:s<=l)throw new Due("Reduce of empty array with no initial value")}for(;e?l>=0:s>l;l+=u)l in a&&(i=n(i,a[l],l,o));return i}},Aue={left:Mue(!1),right:Mue(!0)}.left;yZ({target:"Array",proto:!0,forced:!Yoe&&zQ>79&&zQ<83||!g8("reduce")},{reduce:function(e){var t=arguments.length;return Aue(this,e,t,t>1?arguments[1]:void 0)}});var Iue=U6("Array").reduce,Pue=sX,Rue=Iue,Nue=Array.prototype,jue=function(e){var t=e.reduce;return e===Nue||Pue(Nue,e)&&t===Nue.reduce?Rue:t},Lue=qq(jue),Fue=k2,Bue=PZ,Uue=C2,Hue=aZ,Yue=function(e,t,n,r,i,o,a,s){for(var l,u,c=i,d=0,h=!!a&&Hue(a,s);d<r;)d in n&&(l=h?h(n[d],d,t):n[d],o>0&&Fue(l)?(u=Bue(l),c=Yue(e,t,l,u,c,o-1)-1):(Uue(c+1),e[c]=l),c++),d++;return c},zue=Yue,Wue=yX,Gue=EQ,Vue=PZ,que=P2;yZ({target:"Array",proto:!0},{flatMap:function(e){var t,n=Gue(this),r=Vue(n);return Wue(e),(t=que(n,0)).length=zue(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var Que=U6("Array").flatMap,$ue=sX,Xue=Que,Kue=Array.prototype,Zue=function(e){var t=e.flatMap;return e===Kue||$ue(Kue,e)&&t===Kue.flatMap?Xue:t},Jue=qq(Zue),ece={exports:{}},tce=Zq((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),nce=Zq,rce=F$,ice=p$,oce=tce,ace=Object.isExtensible,sce=nce((function(){ace(1)}))||oce?function(e){return!!rce(e)&&((!oce||"ArrayBuffer"!==ice(e))&&(!ace||ace(e)))}:ace,lce=!Zq((function(){return Object.isExtensible(Object.preventExtensions({}))})),uce=yZ,cce=iQ,dce=rK,hce=F$,pce=MQ,fce=U$.f,mce=Z2,vce=t9,gce=sce,yce=lce,bce=!1,wce=NQ("meta"),xce=0,_ce=function(e){fce(e,wce,{value:{objectID:"O"+xce++,weakData:{}}})},Sce=ece.exports={enable:function(){Sce.enable=function(){},bce=!0;var e=mce.f,t=cce([].splice),n={};n[wce]=1,e(n).length&&(mce.f=function(n){for(var r=e(n),i=0,o=r.length;i<o;i++)if(r[i]===wce){t(r,i,1);break}return r},uce({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:vce.f}))},fastKey:function(e,t){if(!hce(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!pce(e,wce)){if(!gce(e))return"F";if(!t)return"E";_ce(e)}return e[wce].objectID},getWeakData:function(e,t){if(!pce(e,wce)){if(!gce(e))return!0;if(!t)return!1;_ce(e)}return e[wce].weakData},onFreeze:function(e){return yce&&bce&&gce(e)&&!pce(e,wce)&&_ce(e),e}};dce[wce]=!0;var kce=ece.exports,Tce=yZ,Cce=cQ,Ece=kce,Oce=Zq,Dce=JX,Mce=boe,Ace=Xoe,Ice=u$,Pce=F$,Rce=xQ,Nce=$J,jce=U$.f,Lce=N9.forEach,Fce=B$,Bce=gK.set,Uce=gK.getterFor,Hce=function(e,t,n){var r,i=-1!==e.indexOf("Map"),o=-1!==e.indexOf("Weak"),a=i?"set":"add",s=Cce[e],l=s&&s.prototype,u={};if(Fce&&Ice(s)&&(o||l.forEach&&!Oce((function(){(new s).entries().next()})))){var c=(r=t((function(t,n){Bce(Ace(t,c),{type:e,collection:new s}),Rce(n)||Mce(n,t[a],{that:t,AS_ENTRIES:i})}))).prototype,d=Uce(e);Lce(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"===e||"set"===e;!(e in l)||o&&"clear"===e||Dce(c,e,(function(n,r){var i=d(this).collection;if(!t&&o&&!Pce(n))return"get"===e&&void 0;var a=i[e](0===n?0:n,r);return t?this:a}))})),o||jce(c,"size",{configurable:!0,get:function(){return d(this).collection.size}})}else r=n.getConstructor(t,e,i,a),Ece.enable();return Nce(r,e,!1,!0),u[e]=r,Tce({global:!0,forced:!0},u),o||n.setStrong(r,e,i),r},Yce=MJ,zce=bJ,Wce=m9,Gce=function(e,t,n){for(var r in t)n&&n.unsafe&&e[r]?e[r]=t[r]:Yce(e,r,t[r],n);return e},Vce=aZ,qce=Xoe,Qce=xQ,$ce=boe,Xce=C0,Kce=E0,Zce=qoe,Jce=B$,ede=kce.fastKey,tde=gK.set,nde=gK.getterFor,rde={getConstructor:function(e,t,n,r){var i=e((function(e,i){qce(e,o),tde(e,{type:t,index:zce(null),first:void 0,last:void 0,size:0}),Jce||(e.size=0),Qce(i)||$ce(i,e[r],{that:e,AS_ENTRIES:n})})),o=i.prototype,a=nde(t),s=function(e,t,n){var r,i,o=a(e),s=l(e,t);return s?s.value=n:(o.last=s={index:i=ede(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=s),r&&(r.next=s),Jce?o.size++:e.size++,"F"!==i&&(o.index[i]=s)),e},l=function(e,t){var n,r=a(e),i=ede(t);if("F"!==i)return r.index[i];for(n=r.first;n;n=n.next)if(n.key===t)return n};return Gce(o,{clear:function(){for(var e=a(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Jce?e.size=0:this.size=0},delete:function(e){var t=this,n=a(t),r=l(t,e);if(r){var i=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=i),i&&(i.previous=o),n.first===r&&(n.first=i),n.last===r&&(n.last=o),Jce?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=a(this),r=Vce(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!l(this,e)}}),Gce(o,n?{get:function(e){var t=l(this,e);return t&&t.value},set:function(e,t){return s(this,0===e?0:e,t)}}:{add:function(e){return s(this,e=0===e?0:e,e)}}),Jce&&Wce(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,n){var r=t+" Iterator",i=nde(t),o=nde(r);Xce(e,t,(function(e,t){tde(this,{type:r,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?Kce("keys"===t?n.key:"values"===t?n.value:[n.key,n.value],!1):(e.target=void 0,Kce(void 0,!0))}),n?"entries":"values",!n,!0),Zce(t)}};Hce("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),rde);var ide=qq(tX.Map);Hce("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),rde);var ode=qq(tX.Set),ade=qq(g6),sde=qq(C1),lde=s9,ude=Math.floor,cde=function(e,t){var n=e.length,r=ude(n/2);return n<8?dde(e,t):hde(e,cde(lde(e,0,r),t),cde(lde(e,r),t),t)},dde=function(e,t){for(var n,r,i=e.length,o=1;o<i;){for(r=o,n=e[o];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},hde=function(e,t,n,r){for(var i=t.length,o=n.length,a=0,s=0;a<i||s<o;)e[a+s]=a<i&&s<o?r(t[a],n[s])<=0?t[a++]:n[s++]:a<i?t[a++]:n[s++];return e},pde=cde,fde=jQ.match(/firefox\/(\d+)/i),mde=!!fde&&+fde[1],vde=/MSIE|Trident/.test(jQ),gde=jQ.match(/AppleWebKit\/(\d+)\./),yde=!!gde&&+gde[1],bde=yZ,wde=iQ,xde=yX,_de=EQ,Sde=PZ,kde=Y8,Tde=S$,Cde=Zq,Ede=pde,Ode=g8,Dde=mde,Mde=vde,Ade=zQ,Ide=yde,Pde=[],Rde=wde(Pde.sort),Nde=wde(Pde.push),jde=Cde((function(){Pde.sort(void 0)})),Lde=Cde((function(){Pde.sort(null)})),Fde=Ode("sort"),Bde=!Cde((function(){if(Ade)return Ade<70;if(!(Dde&&Dde>3)){if(Mde)return!0;if(Ide)return Ide<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)Pde.push({k:t+r,v:n})}for(Pde.sort((function(e,t){return t.v-e.v})),r=0;r<Pde.length;r++)t=Pde[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}}));bde({target:"Array",proto:!0,forced:jde||!Lde||!Fde||!Bde},{sort:function(e){void 0!==e&&xde(e);var t=_de(this);if(Bde)return void 0===e?Rde(t):Rde(t,e);var n,r,i=[],o=Sde(t);for(r=0;r<o;r++)r in t&&Nde(i,t[r]);for(Ede(i,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:Tde(t)>Tde(n)?1:-1}}(e)),n=Sde(i),r=0;r<n;)t[r]=i[r++];for(;r<o;)kde(t,r++);return t}});var Ude=U6("Array").sort,Hde=sX,Yde=Ude,zde=Array.prototype,Wde=function(e){var t=e.sort;return e===zde||Hde(zde,e)&&t===zde.sort?Yde:t},Gde=qq(Wde),Vde=N9.some;yZ({target:"Array",proto:!0,forced:!g8("some")},{some:function(e){return Vde(this,e,arguments.length>1?arguments[1]:void 0)}});var qde=U6("Array").some,Qde=sX,$de=qde,Xde=Array.prototype,Kde=function(e){var t=e.some;return e===Xde||Qde(Xde,e)&&t===Xde.some?$de:t},Zde=qq(Kde),Jde=U6("Array").keys,ehe=w$,the=MQ,nhe=sX,rhe=Jde,ihe=Array.prototype,ohe={DOMTokenList:!0,NodeList:!0},ahe=function(e){var t=e.keys;return e===ihe||nhe(ihe,e)&&t===ihe.keys||the(ohe,ehe(e))?rhe:t},she=qq(ahe),lhe=U6("Array").values,uhe=w$,che=MQ,dhe=sX,hhe=lhe,phe=Array.prototype,fhe={DOMTokenList:!0,NodeList:!0},mhe=function(e){var t=e.values;return e===phe||dhe(phe,e)&&t===phe.values||che(fhe,uhe(e))?hhe:t},vhe=qq(mhe),ghe=U6("Array").entries,yhe=w$,bhe=MQ,whe=sX,xhe=ghe,_he=Array.prototype,She={DOMTokenList:!0,NodeList:!0},khe=function(e){var t=e.entries;return e===_he||whe(_he,e)&&t===_he.entries||bhe(She,yhe(e))?xhe:t},The=qq(khe),Che=qq(w2),Ehe=yZ,Ohe=_K,Dhe=s8,Mhe=eae,Ahe=K$,Ihe=F$,Phe=bJ,Rhe=Zq,Nhe=aX("Reflect","construct"),jhe=Object.prototype,Lhe=[].push,Fhe=Rhe((function(){function e(){}return!(Nhe((function(){}),[],e)instanceof e)})),Bhe=!Rhe((function(){Nhe((function(){}))})),Uhe=Fhe||Bhe;Ehe({target:"Reflect",stat:!0,forced:Uhe,sham:Uhe},{construct:function(e,t){Mhe(e),Ahe(t);var n=arguments.length<3?e:Mhe(arguments[2]);if(Bhe&&!Fhe)return Nhe(e,t,n);if(e===n){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])}var r=[null];return Ohe(Lhe,r,t),new(Ohe(Dhe,e,r))}var i=n.prototype,o=Phe(Ihe(i)?i:jhe),a=Ohe(e,o,t);return Ihe(a)?a:o}});var Hhe=qq(tX.Reflect.construct),Yhe=qq(tX.Object.getOwnPropertySymbols),zhe={exports:{}},Whe=yZ,Ghe=Zq,Vhe=FK,qhe=CK.f,Qhe=B$;Whe({target:"Object",stat:!0,forced:!Qhe||Ghe((function(){qhe(1)})),sham:!Qhe},{getOwnPropertyDescriptor:function(e,t){return qhe(Vhe(e),t)}});var $he=tX.Object,Xhe=zhe.exports=function(e,t){return $he.getOwnPropertyDescriptor(e,t)};$he.getOwnPropertyDescriptor.sham&&(Xhe.sham=!0);var Khe=qq(zhe.exports),Zhe=R4,Jhe=FK,epe=CK,tpe=p1;yZ({target:"Object",stat:!0,sham:!B$},{getOwnPropertyDescriptors:function(e){for(var t,n,r=Jhe(e),i=epe.f,o=Zhe(r),a={},s=0;o.length>s;)void 0!==(n=i(r,t=o[s++]))&&tpe(a,t,n);return a}});var npe=qq(tX.Object.getOwnPropertyDescriptors),rpe={exports:{}},ipe=yZ,ope=B$,ape=TZ.f;ipe({target:"Object",stat:!0,forced:Object.defineProperties!==ape,sham:!ope},{defineProperties:ape});var spe=tX.Object,lpe=rpe.exports=function(e,t){return spe.defineProperties(e,t)};spe.defineProperties.sham&&(lpe.sham=!0);var upe=qq(rpe.exports);let cpe;const dpe=new Uint8Array(16);function hpe(){if(!cpe&&(cpe="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!cpe))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cpe(dpe)}const ppe=[];for(let e=0;e<256;++e)ppe.push((e+256).toString(16).slice(1));var fpe,mpe={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function vpe(e,t,n){if(mpe.randomUUID&&!t&&!e)return mpe.randomUUID();const r=(e=e||{}).random||(e.rng||hpe)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return ppe[e[t+0]]+ppe[e[t+1]]+ppe[e[t+2]]+ppe[e[t+3]]+"-"+ppe[e[t+4]]+ppe[e[t+5]]+"-"+ppe[e[t+6]]+ppe[e[t+7]]+"-"+ppe[e[t+8]]+ppe[e[t+9]]+"-"+ppe[e[t+10]]+ppe[e[t+11]]+ppe[e[t+12]]+ppe[e[t+13]]+ppe[e[t+14]]+ppe[e[t+15]]}(r)}function gpe(e,t){var n=V4(e);if(Yhe){var r=Yhe(e);t&&(r=nee(r).call(r,(function(t){return Khe(e,t).enumerable}))),n.push.apply(n,r)}return n}function ype(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?O8(n=gpe(Object(i),!0)).call(n,(function(t){Fie(e,t,i[t])})):npe?upe(e,npe(i)):O8(r=gpe(Object(i))).call(r,(function(t){Che(e,t,Khe(i,t))}))}return e}function bpe(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}function wpe(e,t){var n=void 0!==x4&&h2(e)||e["@@iterator"];if(!n){if(j4(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return xpe(e,t);var r=O4(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return G1(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xpe(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function xpe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _pe=function(){function e(t,n,r){var i,o,a;p2(this,e),Fie(this,"_source",void 0),Fie(this,"_transformers",void 0),Fie(this,"_target",void 0),Fie(this,"_listeners",{add:m8(i=this._add).call(i,this),remove:m8(o=this._remove).call(o,this),update:m8(a=this._update).call(a,this)}),this._source=t,this._transformers=n,this._target=r}return k6(e,[{key:"all",value:function(){return this._target.update(this._transformItems(this._source.get())),this}},{key:"start",value:function(){return this._source.on("add",this._listeners.add),this._source.on("remove",this._listeners.remove),this._source.on("update",this._listeners.update),this}},{key:"stop",value:function(){return this._source.off("add",this._listeners.add),this._source.off("remove",this._listeners.remove),this._source.off("update",this._listeners.update),this}},{key:"_transformItems",value:function(e){var t;return Lue(t=this._transformers).call(t,(function(e,t){return t(e)}),e)}},{key:"_add",value:function(e,t){null!=t&&this._target.add(this._transformItems(this._source.get(t.items)))}},{key:"_update",value:function(e,t){null!=t&&this._target.update(this._transformItems(this._source.get(t.items)))}},{key:"_remove",value:function(e,t){null!=t&&this._target.remove(this._transformItems(t.oldData))}}]),e}(),Spe=function(){function e(t){p2(this,e),Fie(this,"_source",void 0),Fie(this,"_transformers",[]),this._source=t}return k6(e,[{key:"filter",value:function(e){return this._transformers.push((function(t){return nee(t).call(t,e)})),this}},{key:"map",value:function(e){return this._transformers.push((function(t){return z4(t).call(t,e)})),this}},{key:"flatMap",value:function(e){return this._transformers.push((function(t){return Jue(t).call(t,e)})),this}},{key:"to",value:function(e){return new _pe(this._source,this._transformers,e)}}]),e}();function kpe(e){return"string"==typeof e||"number"==typeof e}var Tpe=function(){function e(t){p2(this,e),Fie(this,"delay",void 0),Fie(this,"max",void 0),Fie(this,"_queue",[]),Fie(this,"_timeout",null),Fie(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(t)}return k6(e,[{key:"setOptions",value:function(e){e&&void 0!==e.delay&&(this.delay=e.delay),e&&void 0!==e.max&&(this.max=e.max),this._flushIfNeeded()}},{key:"destroy",value:function(){if(this.flush(),this._extended){for(var e=this._extended.object,t=this._extended.methods,n=0;n<t.length;n++){var r=t[n];r.original?e[r.name]=r.original:delete e[r.name]}this._extended=null}}},{key:"replace",value:function(e,t){var n=this,r=e[t];if(!r)throw new Error("Method "+t+" undefined");e[t]=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.queue({args:t,fn:r,context:this})}}},{key:"queue",value:function(e){"function"==typeof e?this._queue.push({fn:e}):this._queue.push(e),this._flushIfNeeded()}},{key:"_flushIfNeeded",value:function(){var e=this;this._queue.length>this.max&&this.flush(),null!=this._timeout&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&"number"==typeof this.delay&&(this._timeout=_te((function(){e.flush()}),this.delay))}},{key:"flush",value:function(){var e,t;O8(e=s7(t=this._queue).call(t,0)).call(e,(function(e){e.fn.apply(e.context||e.fn,e.args||[])}))}}],[{key:"extend",value:function(t,n){var r=new e(n);if(void 0!==t.flush)throw new Error("Target object already has a property flush");t.flush=function(){r.flush()};var i=[{name:"flush",original:void 0}];if(n&&n.replace)for(var o=0;o<n.replace.length;o++){var a=n.replace[o];i.push({name:a,original:t[a]}),r.replace(t,a)}return r._extended={object:t,methods:i},r}}]),e}(),Cpe=function(){function e(){p2(this,e),Fie(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Fie(this,"subscribe",e.prototype.on),Fie(this,"unsubscribe",e.prototype.off)}return k6(e,[{key:"_trigger",value:function(e,t,n){var r,i;if("*"===e)throw new Error("Cannot trigger event *");O8(r=E4(i=[]).call(i,w4(this._subscribers[e]),w4(this._subscribers["*"]))).call(r,(function(r){r(e,t,null!=n?n:null)}))}},{key:"on",value:function(e,t){"function"==typeof t&&this._subscribers[e].push(t)}},{key:"off",value:function(e,t){var n;this._subscribers[e]=nee(n=this._subscribers[e]).call(n,(function(e){return e!==t}))}}]),e}();fpe=ade;var Epe=function(){function e(t){p2(this,e),Fie(this,"_pairs",void 0),this._pairs=t}return k6(e,[{key:fpe,value:kue.mark((function e(){var t,n,r,i,o;return kue.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=wpe(this._pairs),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=b4(n.value,2),i=r[0],o=r[1],e.next=7,[i,o];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"entries",value:kue.mark((function e(){var t,n,r,i,o;return kue.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=wpe(this._pairs),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=b4(n.value,2),i=r[0],o=r[1],e.next=7,[i,o];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"keys",value:kue.mark((function e(){var t,n,r,i;return kue.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=wpe(this._pairs),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=b4(n.value,1),i=r[0],e.next=7,i;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"values",value:kue.mark((function e(){var t,n,r,i;return kue.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=wpe(this._pairs),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=b4(n.value,2),i=r[1],e.next=7,i;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"toIdArray",value:function(){var e;return z4(e=w4(this._pairs)).call(e,(function(e){return e[0]}))}},{key:"toItemArray",value:function(){var e;return z4(e=w4(this._pairs)).call(e,(function(e){return e[1]}))}},{key:"toEntryArray",value:function(){return w4(this._pairs)}},{key:"toObjectMap",value:function(){var e,t=Jee(null),n=wpe(this._pairs);try{for(n.s();!(e=n.n()).done;){var r=b4(e.value,2),i=r[0],o=r[1];t[i]=o}}catch(e){n.e(e)}finally{n.f()}return t}},{key:"toMap",value:function(){return new ide(this._pairs)}},{key:"toIdSet",value:function(){return new ode(this.toIdArray())}},{key:"toItemSet",value:function(){return new ode(this.toItemArray())}},{key:"cache",value:function(){return new e(w4(this._pairs))}},{key:"distinct",value:function(e){var t,n=new ode,r=wpe(this._pairs);try{for(r.s();!(t=r.n()).done;){var i=b4(t.value,2),o=i[0],a=i[1];n.add(e(a,o))}}catch(e){r.e(e)}finally{r.f()}return n}},{key:"filter",value:function(t){var n=this._pairs;return new e(Fie({},ade,kue.mark((function e(){var r,i,o,a,s;return kue.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=wpe(n),e.prev=1,r.s();case 3:if((i=r.n()).done){e.next=10;break}if(o=b4(i.value,2),a=o[0],s=o[1],!t(s,a)){e.next=8;break}return e.next=8,[a,s];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])}))))}},{key:"forEach",value:function(e){var t,n=wpe(this._pairs);try{for(n.s();!(t=n.n()).done;){var r=b4(t.value,2),i=r[0];e(r[1],i)}}catch(e){n.e(e)}finally{n.f()}}},{key:"map",value:function(t){var n=this._pairs;return new e(Fie({},ade,kue.mark((function e(){var r,i,o,a,s;return kue.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=wpe(n),e.prev=1,r.s();case 3:if((i=r.n()).done){e.next=9;break}return o=b4(i.value,2),a=o[0],s=o[1],e.next=7,[a,t(s,a)];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),r.e(e.t0);case 14:return e.prev=14,r.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])}))))}},{key:"max",value:function(e){var t=sde(this._pairs),n=t.next();if(n.done)return null;for(var r=n.value[1],i=e(n.value[1],n.value[0]);!(n=t.next()).done;){var o=b4(n.value,2),a=o[0],s=o[1],l=e(s,a);l>i&&(i=l,r=s)}return r}},{key:"min",value:function(e){var t=sde(this._pairs),n=t.next();if(n.done)return null;for(var r=n.value[1],i=e(n.value[1],n.value[0]);!(n=t.next()).done;){var o=b4(n.value,2),a=o[0],s=o[1],l=e(s,a);l<i&&(i=l,r=s)}return r}},{key:"reduce",value:function(e,t){var n,r=wpe(this._pairs);try{for(r.s();!(n=r.n()).done;){var i=b4(n.value,2),o=i[0];t=e(t,i[1],o)}}catch(e){r.e(e)}finally{r.f()}return t}},{key:"sort",value:function(t){var n=this;return new e(Fie({},ade,(function(){var e;return sde(Gde(e=w4(n._pairs)).call(e,(function(e,n){var r=b4(e,2),i=r[0],o=r[1],a=b4(n,2),s=a[0],l=a[1];return t(o,l,i,s)})))})))}}]),e}();var Ope=function(){Pie(t,Cpe);var e=bpe(t);function t(n,r){var i;return p2(this,t),Fie(Cie(i=e.call(this)),"flush",void 0),Fie(Cie(i),"length",void 0),Fie(Cie(i),"_options",void 0),Fie(Cie(i),"_data",void 0),Fie(Cie(i),"_idProp",void 0),Fie(Cie(i),"_queue",null),n&&!j4(n)&&(r=n,n=[]),i._options=r||{},i._data=new ide,i.length=0,i._idProp=i._options.fieldId||"id",n&&n.length&&i.add(n),i.setOptions(r),i}return k6(t,[{key:"idProp",get:function(){return this._idProp}},{key:"setOptions",value:function(e){e&&void 0!==e.queue&&(!1===e.queue?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Tpe.extend(this,{replace:["add","update","remove"]})),e.queue&&"object"===w6(e.queue)&&this._queue.setOptions(e.queue)))}},{key:"add",value:function(e,t){var n,r=this,i=[];if(j4(e)){var o=z4(e).call(e,(function(e){return e[r._idProp]}));if(Zde(o).call(o,(function(e){return r._data.has(e)})))throw new Error("A duplicate id was found in the parameter array.");for(var a=0,s=e.length;a<s;a++)n=this._addItem(e[a]),i.push(n)}else{if(!e||"object"!==w6(e))throw new Error("Unknown dataType");n=this._addItem(e),i.push(n)}return i.length&&this._trigger("add",{items:i},t),i}},{key:"update",value:function(e,t){var n=this,r=[],i=[],o=[],a=[],s=this._idProp,l=function(e){var t=e[s];if(null!=t&&n._data.has(t)){var l=e,u=_7({},n._data.get(t)),c=n._updateItem(l);i.push(c),a.push(l),o.push(u)}else{var d=n._addItem(e);r.push(d)}};if(j4(e))for(var u=0,c=e.length;u<c;u++)e[u]&&"object"===w6(e[u])?l(e[u]):console.warn("Ignoring input item, which is not an object at index "+u);else{if(!e||"object"!==w6(e))throw new Error("Unknown dataType");l(e)}if(r.length&&this._trigger("add",{items:r},t),i.length){var d={items:i,oldData:o,data:a};this._trigger("update",d,t)}return E4(r).call(r,i)}},{key:"updateOnly",value:function(e,t){var n,r=this;j4(e)||(e=[e]);var i=z4(n=z4(e).call(e,(function(e){var t=r._data.get(e[r._idProp]);if(null==t)throw new Error("Updating non-existent items is not allowed.");return{oldData:t,update:e}}))).call(n,(function(e){var t=e.oldData,n=e.update,i=t[r._idProp],o=Sre(t,n);return r._data.set(i,o),{id:i,oldData:t,updatedData:o}}));if(i.length){var o={items:z4(i).call(i,(function(e){return e.id})),oldData:z4(i).call(i,(function(e){return e.oldData})),data:z4(i).call(i,(function(e){return e.updatedData}))};return this._trigger("update",o,t),o.items}return[]}},{key:"get",value:function(e,t){var n=void 0,r=void 0,i=void 0;kpe(e)?(n=e,i=t):j4(e)?(r=e,i=t):i=e;var o,a=i&&"Object"===i.returnType?"Object":"Array",s=i&&nee(i),l=[],u=void 0,c=void 0,d=void 0;if(null!=n)(u=this._data.get(n))&&s&&!s(u)&&(u=void 0);else if(null!=r)for(var h=0,p=r.length;h<p;h++)null==(u=this._data.get(r[h]))||s&&!s(u)||l.push(u);else for(var f,m=0,v=(c=w4(she(f=this._data).call(f))).length;m<v;m++)d=c[m],null==(u=this._data.get(d))||s&&!s(u)||l.push(u);if(i&&i.order&&null==n&&this._sort(l,i.order),i&&i.fields){var g=i.fields;if(null!=n&&null!=u)u=this._filterFields(u,g);else for(var y=0,b=l.length;y<b;y++)l[y]=this._filterFields(l[y],g)}if("Object"==a){for(var w={},x=0,_=l.length;x<_;x++){var S=l[x];w[S[this._idProp]]=S}return w}return null!=n?null!==(o=u)&&void 0!==o?o:null:l}},{key:"getIds",value:function(e){var t=this._data,n=e&&nee(e),r=e&&e.order,i=w4(she(t).call(t)),o=[];if(n)if(r){for(var a=[],s=0,l=i.length;s<l;s++){var u=i[s],c=this._data.get(u);null!=c&&n(c)&&a.push(c)}this._sort(a,r);for(var d=0,h=a.length;d<h;d++)o.push(a[d][this._idProp])}else for(var p=0,f=i.length;p<f;p++){var m=i[p],v=this._data.get(m);null!=v&&n(v)&&o.push(v[this._idProp])}else if(r){for(var g=[],y=0,b=i.length;y<b;y++){var w=i[y];g.push(t.get(w))}this._sort(g,r);for(var x=0,_=g.length;x<_;x++)o.push(g[x][this._idProp])}else for(var S=0,k=i.length;S<k;S++){var T=i[S],C=t.get(T);null!=C&&o.push(C[this._idProp])}return o}},{key:"getDataSet",value:function(){return this}},{key:"forEach",value:function(e,t){var n=t&&nee(t),r=this._data,i=w4(she(r).call(r));if(t&&t.order)for(var o=this.get(t),a=0,s=o.length;a<s;a++){var l=o[a];e(l,l[this._idProp])}else for(var u=0,c=i.length;u<c;u++){var d=i[u],h=this._data.get(d);null==h||n&&!n(h)||e(h,d)}}},{key:"map",value:function(e,t){for(var n=t&&nee(t),r=[],i=this._data,o=w4(she(i).call(i)),a=0,s=o.length;a<s;a++){var l=o[a],u=this._data.get(l);null==u||n&&!n(u)||r.push(e(u,l))}return t&&t.order&&this._sort(r,t.order),r}},{key:"_filterFields",value:function(e,t){var n;return e?Lue(n=j4(t)?t:V4(t)).call(n,(function(t,n){return t[n]=e[n],t}),{}):e}},{key:"_sort",value:function(e,t){if("string"==typeof t){var n=t;Gde(e).call(e,(function(e,t){var r=e[n],i=t[n];return r>i?1:r<i?-1:0}))}else{if("function"!=typeof t)throw new TypeError("Order must be a function or a string");Gde(e).call(e,t)}}},{key:"remove",value:function(e,t){for(var n=[],r=[],i=j4(e)?e:[e],o=0,a=i.length;o<a;o++){var s=this._remove(i[o]);if(s){var l=s[this._idProp];null!=l&&(n.push(l),r.push(s))}}return n.length&&this._trigger("remove",{items:n,oldData:r},t),n}},{key:"_remove",value:function(e){var t;if(kpe(e)?t=e:e&&"object"===w6(e)&&(t=e[this._idProp]),null!=t&&this._data.has(t)){var n=this._data.get(t)||null;return this._data.delete(t),--this.length,n}return null}},{key:"clear",value:function(e){for(var t,n=w4(she(t=this._data).call(t)),r=[],i=0,o=n.length;i<o;i++)r.push(this._data.get(n[i]));return this._data.clear(),this.length=0,this._trigger("remove",{items:n,oldData:r},e),n}},{key:"max",value:function(e){var t,n,r=null,i=null,o=wpe(vhe(t=this._data).call(t));try{for(o.s();!(n=o.n()).done;){var a=n.value,s=a[e];"number"==typeof s&&(null==i||s>i)&&(r=a,i=s)}}catch(e){o.e(e)}finally{o.f()}return r||null}},{key:"min",value:function(e){var t,n,r=null,i=null,o=wpe(vhe(t=this._data).call(t));try{for(o.s();!(n=o.n()).done;){var a=n.value,s=a[e];"number"==typeof s&&(null==i||s<i)&&(r=a,i=s)}}catch(e){o.e(e)}finally{o.f()}return r||null}},{key:"distinct",value:function(e){for(var t=this._data,n=w4(she(t).call(t)),r=[],i=0,o=0,a=n.length;o<a;o++){for(var s=n[o],l=t.get(s)[e],u=!1,c=0;c<i;c++)if(r[c]==l){u=!0;break}u||void 0===l||(r[i]=l,i++)}return r}},{key:"_addItem",value:function(e){var t=function(e,t){return null==e[t]&&(e[t]=vpe()),e}(e,this._idProp),n=t[this._idProp];if(this._data.has(n))throw new Error("Cannot add item: item with id "+n+" already exists");return this._data.set(n,t),++this.length,n}},{key:"_updateItem",value:function(e){var t=e[this._idProp];if(null==t)throw new Error("Cannot update item: item has no id (item: "+nte(e)+")");var n=this._data.get(t);if(!n)throw new Error("Cannot update item: no item with id "+t+" found");return this._data.set(t,ype(ype({},n),e)),t}},{key:"stream",value:function(e){if(e){var t=this._data;return new Epe(Fie({},ade,kue.mark((function n(){var r,i,o,a;return kue.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=wpe(e),n.prev=1,r.s();case 3:if((i=r.n()).done){n.next=11;break}if(o=i.value,null==(a=t.get(o))){n.next=9;break}return n.next=9,[o,a];case 9:n.next=3;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(1),r.e(n.t0);case 16:return n.prev=16,r.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[1,13,16,19]])}))))}var n;return new Epe(Fie({},ade,m8(n=The(this._data)).call(n,this._data)))}}]),t}(),Dpe=function(){Pie(t,Cpe);var e=bpe(t);function t(n,r){var i,o;return p2(this,t),Fie(Cie(o=e.call(this)),"length",0),Fie(Cie(o),"_listener",void 0),Fie(Cie(o),"_data",void 0),Fie(Cie(o),"_ids",new ode),Fie(Cie(o),"_options",void 0),o._options=r||{},o._listener=m8(i=o._onEvent).call(i,Cie(o)),o.setData(n),o}return k6(t,[{key:"idProp",get:function(){return this.getDataSet().idProp}},{key:"setData",value:function(e){if(this._data){this._data.off&&this._data.off("*",this._listener);var t=this._data.getIds({filter:nee(this._options)}),n=this._data.get(t);this._ids.clear(),this.length=0,this._trigger("remove",{items:t,oldData:n})}if(null!=e){this._data=e;for(var r=this._data.getIds({filter:nee(this._options)}),i=0,o=r.length;i<o;i++){var a=r[i];this._ids.add(a)}this.length=r.length,this._trigger("add",{items:r})}else this._data=new Ope;this._data.on&&this._data.on("*",this._listener)}},{key:"refresh",value:function(){for(var e=this._data.getIds({filter:nee(this._options)}),t=w4(this._ids),n={},r=[],i=[],o=[],a=0,s=e.length;a<s;a++){var l=e[a];n[l]=!0,this._ids.has(l)||(r.push(l),this._ids.add(l))}for(var u=0,c=t.length;u<c;u++){var d=t[u],h=this._data.get(d);null==h?console.error("If you see this, report it please."):n[d]||(i.push(d),o.push(h),this._ids.delete(d))}this.length+=r.length-i.length,r.length&&this._trigger("add",{items:r}),i.length&&this._trigger("remove",{items:i,oldData:o})}},{key:"get",value:function(e,t){if(null==this._data)return null;var n,r=null;kpe(e)||j4(e)?(r=e,n=t):n=e;var i=_7({},this._options,n),o=nee(this._options),a=n&&nee(n);return o&&a&&(i.filter=function(e){return o(e)&&a(e)}),null==r?this._data.get(i):this._data.get(r,i)}},{key:"getIds",value:function(e){if(this._data.length){var t,n=nee(this._options),r=null!=e?nee(e):null;return t=r?n?function(e){return n(e)&&r(e)}:r:n,this._data.getIds({filter:t,order:e&&e.order})}return[]}},{key:"forEach",value:function(e,t){if(this._data){var n,r,i=nee(this._options),o=t&&nee(t);r=o?i?function(e){return i(e)&&o(e)}:o:i,O8(n=this._data).call(n,e,{filter:r,order:t&&t.order})}}},{key:"map",value:function(e,t){if(this._data){var n,r,i=nee(this._options),o=t&&nee(t);return r=o?i?function(e){return i(e)&&o(e)}:o:i,z4(n=this._data).call(n,e,{filter:r,order:t&&t.order})}return[]}},{key:"getDataSet",value:function(){return this._data.getDataSet()}},{key:"stream",value:function(e){var t;return this._data.stream(e||Fie({},ade,m8(t=she(this._ids)).call(t,this._ids)))}},{key:"dispose",value:function(){var e;null!==(e=this._data)&&void 0!==e&&e.off&&this._data.off("*",this._listener);var n,r="This data view has already been disposed of.",i={get:function(){throw new Error(r)},set:function(){throw new Error(r)},configurable:!1},o=wpe(N4(t.prototype));try{for(o.s();!(n=o.n()).done;){var a=n.value;Che(this,a,i)}}catch(e){o.e(e)}finally{o.f()}}},{key:"_onEvent",value:function(e,t,n){if(t&&t.items&&this._data){var r=t.items,i=[],o=[],a=[],s=[],l=[],u=[];switch(e){case"add":for(var c=0,d=r.length;c<d;c++){var h=r[c];this.get(h)&&(this._ids.add(h),i.push(h))}break;case"update":for(var p=0,f=r.length;p<f;p++){var m=r[p];this.get(m)?this._ids.has(m)?(o.push(m),l.push(t.data[p]),s.push(t.oldData[p])):(this._ids.add(m),i.push(m)):this._ids.has(m)&&(this._ids.delete(m),a.push(m),u.push(t.oldData[p]))}break;case"remove":for(var v=0,g=r.length;v<g;v++){var y=r[v];this._ids.has(y)&&(this._ids.delete(y),a.push(y),u.push(t.oldData[v]))}}this.length+=i.length-a.length,i.length&&this._trigger("add",{items:i},n),o.length&&this._trigger("update",{items:o,oldData:s,data:l},n),a.length&&this._trigger("remove",{items:a,oldData:u},n)}}}]),t}();function Mpe(e,t){return"object"===w6(t)&&null!==t&&e===t.idProp&&"function"==typeof O8(t)&&"function"==typeof t.get&&"function"==typeof t.getDataSet&&"function"==typeof t.getIds&&"number"==typeof t.length&&"function"==typeof z4(t)&&"function"==typeof t.off&&"function"==typeof t.on&&"function"==typeof t.stream&&function(e,t){return"object"===w6(t)&&null!==t&&e===t.idProp&&"function"==typeof t.add&&"function"==typeof t.clear&&"function"==typeof t.distinct&&"function"==typeof O8(t)&&"function"==typeof t.get&&"function"==typeof t.getDataSet&&"function"==typeof t.getIds&&"number"==typeof t.length&&"function"==typeof z4(t)&&"function"==typeof t.max&&"function"==typeof t.min&&"function"==typeof t.off&&"function"==typeof t.on&&"function"==typeof t.remove&&"function"==typeof t.setOptions&&"function"==typeof t.stream&&"function"==typeof t.update&&"function"==typeof t.updateOnly}(e,t.getDataSet())}var Ape=qq("undefined"!=typeof window&&window.moment||Kq()),Ipe=qq(Kq()),Ppe={exports:{}},Rpe={},Npe={exports:{}},jpe={};function Lpe(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var Fpe=/javascript\s*\:/gim;jpe.whiteList=Lpe(),jpe.getDefaultWhiteList=Lpe,jpe.onAttr=function(e,t,n){},jpe.onIgnoreAttr=function(e,t,n){},jpe.safeAttrValue=function(e,t){return Fpe.test(t)?"":t};var Bpe={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},Upe=Bpe;var Hpe=function(e,t){";"!==(e=Upe.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,r=!1,i=0,o=0,a="";function s(){if(!r){var n=Upe.trim(e.slice(i,o)),s=n.indexOf(":");if(-1!==s){var l=Upe.trim(n.slice(0,s)),u=Upe.trim(n.slice(s+1));if(l){var c=t(i,a.length,l,u,n);c&&(a+=c+"; ")}}}i=o+1}for(;o<n;o++){var l=e[o];if("/"===l&&"*"===e[o+1]){var u=e.indexOf("*/",o+2);if(-1===u)break;i=(o=u+1)+1,r=!1}else"("===l?r=!0:")"===l?r=!1:";"===l?r||s():"\n"===l&&s()}return Upe.trim(a)},Ype=jpe,zpe=Hpe;function Wpe(e){return null==e}function Gpe(e){e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{}),e.whiteList=e.whiteList||Ype.whiteList,e.onAttr=e.onAttr||Ype.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||Ype.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||Ype.safeAttrValue,this.options=e}Gpe.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,i=t.onIgnoreAttr,o=t.safeAttrValue,a=zpe(e,(function(e,t,a,s,l){var u=n[a],c=!1;if(!0===u?c=u:"function"==typeof u?c=u(s):u instanceof RegExp&&(c=u.test(s)),!0!==c&&(c=!1),s=o(a,s)){var d,h={position:t,sourcePosition:e,source:l,isWhite:c};return c?Wpe(d=r(a,s,h))?a+":"+s:d:Wpe(d=i(a,s,h))?void 0:d}}));return a};var Vpe=Gpe;!function(e,t){var n=jpe,r=Vpe;for(var i in t=e.exports=function(e,t){return new r(t).process(e)},t.FilterCSS=r,n)t[i]=n[i];"undefined"!=typeof window&&(window.filterCSS=e.exports)}(Npe,Npe.exports);var qpe=Npe.exports,Qpe={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},forEach:function(e,t,n){var r,i;if(Array.prototype.forEach)return e.forEach(t,n);for(r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}},$pe=qpe.FilterCSS,Xpe=qpe.getDefaultWhiteList,Kpe=Qpe;function Zpe(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var Jpe=new $pe;function efe(e){return e.replace(tfe,"&lt;").replace(nfe,"&gt;")}var tfe=/</g,nfe=/>/g,rfe=/"/g,ife=/&quot;/g,ofe=/&#([a-zA-Z0-9]*);?/gim,afe=/&colon;?/gim,sfe=/&newline;?/gim,lfe=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,ufe=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,cfe=/u\s*r\s*l\s*\(.*/gi;function dfe(e){return e.replace(rfe,"&quot;")}function hfe(e){return e.replace(ife,'"')}function pfe(e){return e.replace(ofe,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function ffe(e){return e.replace(afe,":").replace(sfe," ")}function mfe(e){for(var t="",n=0,r=e.length;n<r;n++)t+=e.charCodeAt(n)<32?" ":e.charAt(n);return Kpe.trim(t)}function vfe(e){return e=mfe(e=ffe(e=pfe(e=hfe(e))))}function gfe(e){return e=efe(e=dfe(e))}Rpe.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},Rpe.getDefaultWhiteList=Zpe,Rpe.onTag=function(e,t,n){},Rpe.onIgnoreTag=function(e,t,n){},Rpe.onTagAttr=function(e,t,n){},Rpe.onIgnoreTagAttr=function(e,t,n){},Rpe.safeAttrValue=function(e,t,n,r){if(n=vfe(n),"href"===t||"src"===t){if("#"===(n=Kpe.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(lfe.lastIndex=0,lfe.test(n))return""}else if("style"===t){if(ufe.lastIndex=0,ufe.test(n))return"";if(cfe.lastIndex=0,cfe.test(n)&&(lfe.lastIndex=0,lfe.test(n)))return"";!1!==r&&(n=(r=r||Jpe).process(n))}return n=gfe(n)},Rpe.escapeHtml=efe,Rpe.escapeQuote=dfe,Rpe.unescapeQuote=hfe,Rpe.escapeHtmlEntities=pfe,Rpe.escapeDangerHtml5Entities=ffe,Rpe.clearNonPrintableCharacter=mfe,Rpe.friendlyAttrValue=vfe,Rpe.escapeAttrValue=gfe,Rpe.onIgnoreTagStripAll=function(){return""},Rpe.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],i=!1;return{onIgnoreTag:function(o,a,s){if(function(t){return!!n||-1!==Kpe.indexOf(e,t)}(o)){if(s.isClosing){var l="[/removed]",u=s.position+10;return r.push([!1!==i?i:s.position,u]),i=!1,l}return i||(i=s.position),"[removed]"}return t(o,a,s)},remove:function(e){var t="",n=0;return Kpe.forEach(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},Rpe.stripCommentTag=function(e){for(var t="",n=0;n<e.length;){var r=e.indexOf("\x3c!--",n);if(-1===r){t+=e.slice(n);break}t+=e.slice(n,r);var i=e.indexOf("--\x3e",r);if(-1===i)break;n=i+3}return t},Rpe.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},Rpe.cssFilter=Jpe,Rpe.getDefaultCSSWhiteList=Xpe;var yfe={},bfe=Qpe;function wfe(e){var t,n=bfe.spaceIndex(e);return t=-1===n?e.slice(1,-1):e.slice(1,n+1),"/"===(t=bfe.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function xfe(e){return"</"===e.slice(0,2)}var _fe=/[^a-zA-Z0-9\\_:.-]/gim;function Sfe(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"="===n?t:-1}}function kfe(e,t){for(;t<e.length;t++){var n=e[t];if(" "!==n)return"'"===n||'"'===n?t:-1}}function Tfe(e,t){for(;t>0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function Cfe(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}yfe.parseTag=function(e,t,n){var r="",i=0,o=!1,a=!1,s=0,l=e.length,u="",c="";e:for(s=0;s<l;s++){var d=e.charAt(s);if(!1===o){if("<"===d){o=s;continue}}else if(!1===a){if("<"===d){r+=n(e.slice(i,s)),o=s,i=s;continue}if(">"===d||s===l-1){r+=n(e.slice(i,o)),u=wfe(c=e.slice(o,s+1)),r+=t(o,r.length,u,c,xfe(c)),i=s+1,o=!1;continue}if('"'===d||"'"===d)for(var h=1,p=e.charAt(s-h);""===p.trim()||"="===p;){if("="===p){a=d;continue e}p=e.charAt(s-++h)}}else if(d===a){a=!1;continue}}return i<l&&(r+=n(e.substr(i))),r},yfe.parseAttr=function(e,t){var n=0,r=0,i=[],o=!1,a=e.length;function s(e,n){if(!((e=(e=bfe.trim(e)).replace(_fe,"").toLowerCase()).length<1)){var r=t(e,n||"");r&&i.push(r)}}for(var l=0;l<a;l++){var u,c=e.charAt(l);if(!1!==o||"="!==c)if(!1===o||l!==r)if(/\s|\n|\t/.test(c)){if(e=e.replace(/\s|\n|\t/g," "),!1===o){if(-1===(u=Sfe(e,l))){s(bfe.trim(e.slice(n,l))),o=!1,n=l+1;continue}l=u-1;continue}if(-1===(u=Tfe(e,l-1))){s(o,Cfe(bfe.trim(e.slice(n,l)))),o=!1,n=l+1;continue}}else;else{if(-1===(u=e.indexOf(c,l+1)))break;s(o,bfe.trim(e.slice(r+1,u))),o=!1,n=(l=u)+1}else o=e.slice(n,l),n=l+1,r='"'===e.charAt(n)||"'"===e.charAt(n)?n:kfe(e,l+1)}return n<e.length&&(!1===o?s(e.slice(n)):s(o,Cfe(bfe.trim(e.slice(n))))),bfe.trim(i.join(" "))};var Efe=qpe.FilterCSS,Ofe=Rpe,Dfe=yfe,Mfe=Dfe.parseTag,Afe=Dfe.parseAttr,Ife=Qpe;function Pfe(e){return null==e}function Rfe(e){e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Ofe.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var n in e)Array.isArray(e[n])?t[n.toLowerCase()]=e[n].map((function(e){return e.toLowerCase()})):t[n.toLowerCase()]=e[n];return t}(e.whiteList||e.allowList):e.whiteList=Ofe.whiteList,e.onTag=e.onTag||Ofe.onTag,e.onTagAttr=e.onTagAttr||Ofe.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Ofe.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Ofe.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Ofe.safeAttrValue,e.escapeHtml=e.escapeHtml||Ofe.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Efe(e.css))}Rfe.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onTag,i=t.onIgnoreTag,o=t.onTagAttr,a=t.onIgnoreTagAttr,s=t.safeAttrValue,l=t.escapeHtml,u=this.cssFilter;t.stripBlankChar&&(e=Ofe.stripBlankChar(e)),t.allowCommentTag||(e=Ofe.stripCommentTag(e));var c=!1;t.stripIgnoreTagBody&&(c=Ofe.StripTagBody(t.stripIgnoreTagBody,i),i=c.onIgnoreTag);var d=Mfe(e,(function(e,t,c,d,h){var p={sourcePosition:e,position:t,isClosing:h,isWhite:Object.prototype.hasOwnProperty.call(n,c)},f=r(c,d,p);if(!Pfe(f))return f;if(p.isWhite){if(p.isClosing)return"</"+c+">";var m=function(e){var t=Ife.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=Ife.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=Ife.trim(e.slice(0,-1))),{html:e,closing:n}}(d),v=n[c],g=Afe(m.html,(function(e,t){var n=-1!==Ife.indexOf(v,e),r=o(c,e,t,n);return Pfe(r)?n?(t=s(c,e,t,u))?e+'="'+t+'"':e:Pfe(r=a(c,e,t,n))?void 0:r:r}));return d="<"+c,g&&(d+=" "+g),m.closing&&(d+=" /"),d+=">"}return Pfe(f=i(c,d,p))?l(d):f}),l);return c&&(d=c.remove(d)),d};var Nfe=Rfe;!function(e,t){var n=Rpe,r=yfe,i=Nfe;function o(e,t){return new i(t).process(e)}(t=e.exports=o).filterXSS=o,t.FilterXSS=i,function(){for(var e in n)t[e]=n[e];for(var i in r)t[i]=r[i]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)}(Ppe,Ppe.exports);var jfe=qq(Ppe.exports);function Lfe(e,t){var n=V4(e);if(Yhe){var r=Yhe(e);t&&(r=nee(r).call(r,(function(t){return Khe(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ffe(e){for(var t=1;t<arguments.length;t++){var n,r,i=null!=arguments[t]?arguments[t]:{};t%2?O8(n=Lfe(Object(i),!0)).call(n,(function(t){Fie(e,t,i[t])})):npe?upe(e,npe(i)):O8(r=Lfe(Object(i))).call(r,(function(t){Che(e,t,Khe(i,t))}))}return e}function Bfe(e){var t;if(!e)return!1;var n=null!==(t=e.idProp)&&void 0!==t?t:e._idProp;return!!n&&Mpe(n,e)}var Ufe=/^\/?Date\((-?\d+)/i,Hfe=/^\d+$/;function Yfe(e,t){var n;if(void 0!==e){if(null===e)return null;if(!t)return e;if("string"!=typeof t&&!(t instanceof String))throw new Error("Type must be a string");switch(t){case"boolean":case"Boolean":return Boolean(e);case"number":case"Number":return jre(e)&&!isNaN(Date.parse(e))?Ipe(e).valueOf():Number(e.valueOf());case"string":case"String":return String(e);case"Date":try{return Yfe(e,"Moment").toDate()}catch(n){throw n instanceof TypeError?new TypeError("Cannot convert object of type "+Hre(e)+" to type "+t):n}case"Moment":if(Nre(e))return Ipe(e);if(e instanceof Date)return Ipe(e.valueOf());if(Ipe.isMoment(e))return Ipe(e);if(jre(e))return(n=Ufe.exec(e))?Ipe(Number(n[1])):(n=Hfe.exec(e),Ipe(n?Number(e):e));throw new TypeError("Cannot convert object of type "+Hre(e)+" to type "+t);case"ISODate":if(Nre(e))return new Date(e);if(e instanceof Date)return e.toISOString();if(Ipe.isMoment(e))return e.toDate().toISOString();if(jre(e))return(n=Ufe.exec(e))?new Date(Number(n[1])).toISOString():Ipe(e).format();throw new Error("Cannot convert object of type "+Hre(e)+" to type ISODate");case"ASPDate":if(Nre(e))return"/Date("+e+")/";if(e instanceof Date||Ipe.isMoment(e))return"/Date("+e.valueOf()+")/";if(jre(e))return"/Date("+((n=Ufe.exec(e))?new Date(Number(n[1])).valueOf():new Date(e).valueOf())+")/";throw new Error("Cannot convert object of type "+Hre(e)+" to type ASPDate");default:throw new Error("Unknown type ".concat(t))}}}function zfe(e){var t,n,r,i,o,a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{start:"Date",end:"Date"},l=e._idProp,u=new Ope({fieldId:l}),c=z4(t=function(e){return new Spe(e)}(e)).call(t,(function(e){var t;return Lue(t=V4(e)).call(t,(function(t,n){return t[n]=Yfe(e[n],s[n]),t}),{})})).to(u);return c.all().start(),{add:function(){var t;return(t=e.getDataSet()).add.apply(t,arguments)},remove:function(){var t;return(t=e.getDataSet()).remove.apply(t,arguments)},update:function(){var t;return(t=e.getDataSet()).update.apply(t,arguments)},updateOnly:function(){var t;return(t=e.getDataSet()).updateOnly.apply(t,arguments)},clear:function(){var t;return(t=e.getDataSet()).clear.apply(t,arguments)},forEach:m8(n=O8(u)).call(n,u),get:m8(r=u.get).call(r,u),getIds:m8(i=u.getIds).call(i,u),off:m8(o=u.off).call(o,u),on:m8(a=u.on).call(a,u),get length(){return u.length},idProp:l,type:s,rawDS:e,coercedDS:u,dispose:function(){return c.stop()}}}var Wfe=function(e){var t=new jfe.FilterXSS(e);return function(e){return t.process(e)}},Gfe=function(e){return e},Vfe=Wfe(),qfe=Ffe(Ffe({},bie),{},{convert:Yfe,setupXSSProtection:function(e){e&&(!0===e.disabled?(Vfe=Gfe,console.warn("You disabled XSS protection for vis-Timeline. I sure hope you know what you're doing!")):e.filterOptions&&(Vfe=Wfe(e.filterOptions)))}});Che(qfe,"xss",{get:function(){return Vfe}});var Qfe=cQ,$fe=Zq,Xfe=S$,Kfe=kee.trim,Zfe=vee,Jfe=iQ("".charAt),eme=Qfe.parseFloat,tme=Qfe.Symbol,nme=tme&&tme.iterator,rme=1/eme(Zfe+"-0")!=-1/0||nme&&!$fe((function(){eme(Object(nme))}))?function(e){var t=Kfe(Xfe(e)),n=eme(t);return 0===n&&"-"===Jfe(t,0)?-0:n}:eme;yZ({global:!0,forced:parseFloat!==rme},{parseFloat:rme});var ime=qq(tX.parseFloat),ome=function(){function e(t,n){p2(this,e),this.options=null,this.props=null}return k6(e,[{key:"setOptions",value:function(e){e&&qfe.extend(this.options,e)}},{key:"redraw",value:function(){return!1}},{key:"destroy",value:function(){}},{key:"_isResized",value:function(){var e=this.props._previousWidth!==this.props.width||this.props._previousHeight!==this.props.height;return this.props._previousWidth=this.props.width,this.props._previousHeight=this.props.height,e}}]),e}(),ame=lQ,sme=S$,lme=kQ,ume=RangeError;yZ({target:"String",proto:!0},{repeat:function(e){var t=sme(lme(this)),n="",r=ame(e);if(r<0||r===1/0)throw new ume("Wrong number of repetitions");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}});var cme=U6("String").repeat,dme=sX,hme=cme,pme=String.prototype,fme=function(e){var t=e.repeat;return"string"==typeof e||e===pme||dme(pme,e)&&t===pme.repeat?hme:t},mme=qq(fme);function vme(e,t,n){if(n&&!j4(n))return vme(e,t,[n]);if(t.hiddenDates=[],n&&1==j4(n)){for(var r,i=0;i<n.length;i++)if(void 0===mme(n[i])){var o={};o.start=e(n[i].start).toDate().valueOf(),o.end=e(n[i].end).toDate().valueOf(),t.hiddenDates.push(o)}Gde(r=t.hiddenDates).call(r,(function(e,t){return e.start-t.start}))}}function gme(e,t,n){if(n&&!j4(n))return gme(e,t,[n]);if(n&&void 0!==t.domProps.centerContainer.width){vme(e,t,n);for(var r=e(t.range.start),i=e(t.range.end),o=(t.range.end-t.range.start)/t.domProps.centerContainer.width,a=0;a<n.length;a++)if(void 0!==mme(n[a])){var s=e(n[a].start),l=e(n[a].end);if("Invalid Date"==s._d)throw new Error("Supplied start date is not valid: ".concat(n[a].start));if("Invalid Date"==l._d)throw new Error("Supplied end date is not valid: ".concat(n[a].end));if(l-s>=4*o){var u=0,c=i.clone();switch(mme(n[a])){case"daily":s.day()!=l.day()&&(u=1),s.dayOfYear(r.dayOfYear()),s.year(r.year()),s.subtract(7,"days"),l.dayOfYear(r.dayOfYear()),l.year(r.year()),l.subtract(7-u,"days"),c.add(1,"weeks");break;case"weekly":var d=l.diff(s,"days"),h=s.day();s.date(r.date()),s.month(r.month()),s.year(r.year()),l=s.clone(),s.day(h),l.day(h),l.add(d,"days"),s.subtract(1,"weeks"),l.subtract(1,"weeks"),c.add(1,"weeks");break;case"monthly":s.month()!=l.month()&&(u=1),s.month(r.month()),s.year(r.year()),s.subtract(1,"months"),l.month(r.month()),l.year(r.year()),l.subtract(1,"months"),l.add(u,"months"),c.add(1,"months");break;case"yearly":s.year()!=l.year()&&(u=1),s.year(r.year()),s.subtract(1,"years"),l.year(r.year()),l.subtract(1,"years"),l.add(u,"years"),c.add(1,"years");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",mme(n[a]))}for(;s<c;)switch(t.hiddenDates.push({start:s.valueOf(),end:l.valueOf()}),mme(n[a])){case"daily":s.add(1,"days"),l.add(1,"days");break;case"weekly":s.add(1,"weeks"),l.add(1,"weeks");break;case"monthly":s.add(1,"months"),l.add(1,"months");break;case"yearly":s.add(1,"y"),l.add(1,"y");break;default:return void console.log("Wrong repeat format, allowed are: daily, weekly, monthly, yearly. Given:",mme(n[a]))}t.hiddenDates.push({start:s.valueOf(),end:l.valueOf()})}}!function(e){for(var t,n=e.hiddenDates,r=[],i=0;i<n.length;i++)for(var o=0;o<n.length;o++)i!=o&&1!=n[o].remove&&1!=n[i].remove&&(n[o].start>=n[i].start&&n[o].end<=n[i].end?n[o].remove=!0:n[o].start>=n[i].start&&n[o].start<=n[i].end?(n[i].end=n[o].end,n[o].remove=!0):n[o].end>=n[i].start&&n[o].end<=n[i].end&&(n[i].start=n[o].start,n[o].remove=!0));for(i=0;i<n.length;i++)!0!==n[i].remove&&r.push(n[i]);e.hiddenDates=r,Gde(t=e.hiddenDates).call(t,(function(e,t){return e.start-t.start}))}(t);var p=kme(t.range.start,t.hiddenDates),f=kme(t.range.end,t.hiddenDates),m=t.range.start,v=t.range.end;1==p.hidden&&(m=1==t.range.startToFront?p.startDate-1:p.endDate+1),1==f.hidden&&(v=1==t.range.endToFront?f.startDate-1:f.endDate+1),1!=p.hidden&&1!=f.hidden||t.range._applyRange(m,v)}}function yme(e,t,n){var r;if(0==e.body.hiddenDates.length)return r=e.range.conversion(n),(t.valueOf()-r.offset)*r.scale;var i=kme(t,e.body.hiddenDates);1==i.hidden&&(t=i.startDate);var o=wme(e.body.hiddenDates,e.range.start,e.range.end);if(t<e.range.start){r=e.range.conversion(n,o);var a=function(e,t,n){for(var r=0,i=0;i<e.length;i++){var o=e[i].start,a=e[i].end;o>=t&&a<=n&&(r+=a-o)}return r}(e.body.hiddenDates,t,r.offset);return t=e.options.moment(t).toDate().valueOf(),t+=a,-(r.offset-t.valueOf())*r.scale}if(t>e.range.end){var s={start:e.range.start,end:t};return t=xme(e.options.moment,e.body.hiddenDates,s,t),r=e.range.conversion(n,o),(t.valueOf()-r.offset)*r.scale}return t=xme(e.options.moment,e.body.hiddenDates,e.range,t),r=e.range.conversion(n,o),(t.valueOf()-r.offset)*r.scale}function bme(e,t,n){if(0==e.body.hiddenDates.length){var r=e.range.conversion(n);return new Date(t/r.scale+r.offset)}var i=wme(e.body.hiddenDates,e.range.start,e.range.end),o=(e.range.end-e.range.start-i)*t/n,a=function(e,t,n){for(var r=0,i=0,o=t.start,a=0;a<e.length;a++){var s=e[a].start,l=e[a].end;if(s>=t.start&&l<t.end){if(i+=s-o,o=l,i>=n)break;r+=l-s}}return r}(e.body.hiddenDates,e.range,o);return new Date(a+o+e.range.start)}function wme(e,t,n){for(var r=0,i=0;i<e.length;i++){var o=e[i].start,a=e[i].end;o>=t&&a<n&&(r+=a-o)}return r}function xme(e,t,n,r){return r=e(r).toDate().valueOf(),r-=_me(e,t,n,r)}function _me(e,t,n,r){var i=0;r=e(r).toDate().valueOf();for(var o=0;o<t.length;o++){var a=t[o].start,s=t[o].end;a>=n.start&&s<n.end&&r>=s&&(i+=s-a)}return i}function Sme(e,t,n,r){var i=kme(t,e);return 1==i.hidden?n<0?1==r?i.startDate-(i.endDate-t)-1:i.startDate-1:1==r?i.endDate+(t-i.startDate)+1:i.endDate+1:t}function kme(e,t){for(var n=0;n<t.length;n++){var r=t[n].start,i=t[n].end;if(e>=r&&e<i)return{hidden:!0,startDate:r,endDate:i}}return{hidden:!1,startDate:r,endDate:i}}function Tme(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}var Cme=function(){Pie(t,ome);var e=Tme(t);function t(n,r){var i,o,a,s,l,u,c,d;p2(this,t),d=e.call(this);var h=Ape().hours(0).minutes(0).seconds(0).milliseconds(0),p=h.clone().add(-3,"days").valueOf(),f=h.clone().add(3,"days").valueOf();return d.millisecondsPerPixelCache=void 0,void 0===r?(d.start=p,d.end=f):(d.start=r.start||p,d.end=r.end||f),d.rolling=!1,d.body=n,d.deltaDifference=0,d.scaleOffset=0,d.startToFront=!1,d.endToFront=!0,d.defaultOptions={rtl:!1,start:null,end:null,moment:Ape,direction:"horizontal",moveable:!0,zoomable:!0,min:null,max:null,zoomMin:10,zoomMax:31536e10,rollingMode:{follow:!1,offset:.5}},d.options=qfe.extend({},d.defaultOptions),d.props={touch:{}},d.animationTimer=null,d.body.emitter.on("panstart",m8(i=d._onDragStart).call(i,Cie(d))),d.body.emitter.on("panmove",m8(o=d._onDrag).call(o,Cie(d))),d.body.emitter.on("panend",m8(a=d._onDragEnd).call(a,Cie(d))),d.body.emitter.on("mousewheel",m8(s=d._onMouseWheel).call(s,Cie(d))),d.body.emitter.on("touch",m8(l=d._onTouch).call(l,Cie(d))),d.body.emitter.on("pinch",m8(u=d._onPinch).call(u,Cie(d))),d.body.dom.rollingModeBtn.addEventListener("click",m8(c=d.startRolling).call(c,Cie(d))),d.setOptions(r),d}return k6(t,[{key:"setOptions",value:function(e){if(e){qfe.selectiveExtend(["animation","direction","min","max","zoomMin","zoomMax","moveable","zoomable","moment","activate","hiddenDates","zoomKey","zoomFriction","rtl","showCurrentTime","rollingMode","horizontalScroll"],this.options,e),e.rollingMode&&e.rollingMode.follow&&this.startRolling(),("start"in e||"end"in e)&&this.setRange(e.start,e.end)}}},{key:"startRolling",value:function(){var e=this;!function t(){e.stopRolling(),e.rolling=!0;var n=e.end-e.start,r=qfe.convert(new Date,"Date").valueOf(),i=e.options.rollingMode&&e.options.rollingMode.offset||.5,o=r-n*i,a=r+n*(1-i);e.setRange(o,a,{animation:!1}),(n=1/e.conversion(e.body.domProps.center.width).scale/10)<30&&(n=30),n>1e3&&(n=1e3),e.body.dom.rollingModeBtn.style.visibility="hidden",e.currentTimeTimer=_te(t,n)}()}},{key:"stopRolling",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),this.rolling=!1,this.body.dom.rollingModeBtn.style.visibility="visible")}},{key:"setRange",value:function(e,t,n,r,i){n||(n={}),!0!==n.byUser&&(n.byUser=!1);var o=this,a=null!=e?qfe.convert(e,"Date").valueOf():null,s=null!=t?qfe.convert(t,"Date").valueOf():null;if(this._cancelAnimation(),this.millisecondsPerPixelCache=void 0,n.animation){var l,u=this.start,c=this.end,d="object"===w6(n.animation)&&"duration"in n.animation?n.animation.duration:500,h="object"===w6(n.animation)&&"easingFunction"in n.animation?n.animation.easingFunction:"easeInOutQuad",p=qfe.easingFunctions[h];if(!p)throw new Error(E4(l="Unknown easing function ".concat(nte(h),". Choose from: ")).call(l,V4(qfe.easingFunctions).join(", ")));var f=X4(),m=!1;return function e(){if(!o.props.touch.dragging){var t=X4()-f,l=p(t/d),h=t>d,g=h||null===a?a:u+(a-u)*l,y=h||null===s?s:c+(s-c)*l;v=o._applyRange(g,y),gme(o.options.moment,o.body,o.options.hiddenDates),m=m||v;var b={start:new Date(o.start),end:new Date(o.end),byUser:n.byUser,event:n.event};if(i&&i(l,v,h),v&&o.body.emitter.emit("rangechange",b),h){if(m&&(o.body.emitter.emit("rangechanged",b),r))return r()}else o.animationTimer=_te(e,20)}}()}var v=this._applyRange(a,s);if(gme(this.options.moment,this.body,this.options.hiddenDates),v){var g={start:new Date(this.start),end:new Date(this.end),byUser:n.byUser,event:n.event};if(this.body.emitter.emit("rangechange",g),clearTimeout(o.timeoutID),o.timeoutID=_te((function(){o.body.emitter.emit("rangechanged",g)}),200),r)return r()}}},{key:"getMillisecondsPerPixel",value:function(){return void 0===this.millisecondsPerPixelCache&&(this.millisecondsPerPixelCache=(this.end-this.start)/this.body.dom.center.clientWidth),this.millisecondsPerPixelCache}},{key:"_cancelAnimation",value:function(){this.animationTimer&&(clearTimeout(this.animationTimer),this.animationTimer=null)}},{key:"_applyRange",value:function(e,t){var n,r=null!=e?qfe.convert(e,"Date").valueOf():this.start,i=null!=t?qfe.convert(t,"Date").valueOf():this.end,o=null!=this.options.max?qfe.convert(this.options.max,"Date").valueOf():null,a=null!=this.options.min?qfe.convert(this.options.min,"Date").valueOf():null;if(isNaN(r)||null===r)throw new Error('Invalid start "'.concat(e,'"'));if(isNaN(i)||null===i)throw new Error('Invalid end "'.concat(t,'"'));if(i<r&&(i=r),null!==a&&r<a&&(r+=n=a-r,i+=n,null!=o&&i>o&&(i=o)),null!==o&&i>o&&(r-=n=i-o,i-=n,null!=a&&r<a&&(r=a)),null!==this.options.zoomMin){var s=ime(this.options.zoomMin);if(s<0&&(s=0),i-r<s){this.end-this.start===s&&r>=this.start-.5&&i<=this.end?(r=this.start,i=this.end):(r-=(n=s-(i-r))/2,i+=n/2)}}if(null!==this.options.zoomMax){var l=ime(this.options.zoomMax);l<0&&(l=0),i-r>l&&(this.end-this.start===l&&r<this.start&&i>this.end?(r=this.start,i=this.end):(r+=(n=i-r-l)/2,i-=n/2))}var u=this.start!=r||this.end!=i;return r>=this.start&&r<=this.end||i>=this.start&&i<=this.end||this.start>=r&&this.start<=i||this.end>=r&&this.end<=i||this.body.emitter.emit("checkRangedItems"),this.start=r,this.end=i,u}},{key:"getRange",value:function(){return{start:this.start,end:this.end}}},{key:"conversion",value:function(e,n){return t.conversion(this.start,this.end,e,n)}},{key:"_onDragStart",value:function(e){this.deltaDifference=0,this.previousDelta=0,this.options.moveable&&this._isInsideRange(e)&&this.props.touch.allowDragging&&(this.stopRolling(),this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.dragging=!0,this.body.dom.root&&(this.body.dom.root.style.cursor="move"))}},{key:"_onDrag",value:function(e){if(e&&this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging){var t=this.options.direction;Eme(t);var n="horizontal"==t?e.deltaX:e.deltaY;n-=this.deltaDifference;var r=this.props.touch.end-this.props.touch.start;r-=wme(this.body.hiddenDates,this.start,this.end);var i,o="horizontal"==t?this.body.domProps.center.width:this.body.domProps.center.height;i=this.options.rtl?n/o*r:-n/o*r;var a=this.props.touch.start+i,s=this.props.touch.end+i,l=Sme(this.body.hiddenDates,a,this.previousDelta-n,!0),u=Sme(this.body.hiddenDates,s,this.previousDelta-n,!0);if(l!=a||u!=s)return this.deltaDifference+=n,this.props.touch.start=l,this.props.touch.end=u,void this._onDrag(e);this.previousDelta=n,this._applyRange(a,s);var c=new Date(this.start),d=new Date(this.end);this.body.emitter.emit("rangechange",{start:c,end:d,byUser:!0,event:e}),this.body.emitter.emit("panmove")}}},{key:"_onDragEnd",value:function(e){this.props.touch.dragging&&this.options.moveable&&this.props.touch.allowDragging&&(this.props.touch.dragging=!1,this.body.dom.root&&(this.body.dom.root.style.cursor="auto"),this.body.emitter.emit("rangechanged",{start:new Date(this.start),end:new Date(this.end),byUser:!0,event:e}))}},{key:"_onMouseWheel",value:function(e){var t=0;if(e.wheelDelta?t=e.wheelDelta/120:e.detail?t=-e.detail/3:e.deltaY&&(t=-e.deltaY/3),!(this.options.zoomKey&&!e[this.options.zoomKey]&&this.options.zoomable||!this.options.zoomable&&this.options.moveable)&&this.options.zoomable&&this.options.moveable&&this._isInsideRange(e)&&t){var n,r,i=this.options.zoomFriction||5;if(n=t<0?1-t/i:1/(1+t/i),this.rolling){var o=this.options.rollingMode&&this.options.rollingMode.offset||.5;r=this.start+(this.end-this.start)*o}else{var a=this.getPointer({x:e.clientX,y:e.clientY},this.body.dom.center);r=this._pointerToDate(a)}this.zoom(n,r,t,e),e.preventDefault()}}},{key:"_onTouch",value:function(e){this.props.touch.start=this.start,this.props.touch.end=this.end,this.props.touch.allowDragging=!0,this.props.touch.center=null,this.props.touch.centerDate=null,this.scaleOffset=0,this.deltaDifference=0,qfe.preventDefault(e)}},{key:"_onPinch",value:function(e){if(this.options.zoomable&&this.options.moveable){qfe.preventDefault(e),this.props.touch.allowDragging=!1,this.props.touch.center||(this.props.touch.center=this.getPointer(e.center,this.body.dom.center),this.props.touch.centerDate=this._pointerToDate(this.props.touch.center)),this.stopRolling();var t=1/(e.scale+this.scaleOffset),n=this.props.touch.centerDate,r=wme(this.body.hiddenDates,this.start,this.end),i=_me(this.options.moment,this.body.hiddenDates,this,n),o=r-i,a=n-i+(this.props.touch.start-(n-i))*t,s=n+o+(this.props.touch.end-(n+o))*t;this.startToFront=1-t<=0,this.endToFront=t-1<=0;var l=Sme(this.body.hiddenDates,a,1-t,!0),u=Sme(this.body.hiddenDates,s,t-1,!0);l==a&&u==s||(this.props.touch.start=l,this.props.touch.end=u,this.scaleOffset=1-e.scale,a=l,s=u);var c={animation:!1,byUser:!0,event:e};this.setRange(a,s,c),this.startToFront=!1,this.endToFront=!0}}},{key:"_isInsideRange",value:function(e){var t=e.center?e.center.x:e.clientX,n=this.body.dom.centerContainer.getBoundingClientRect(),r=this.options.rtl?t-n.left:n.right-t,i=this.body.util.toTime(r);return i>=this.start&&i<=this.end}},{key:"_pointerToDate",value:function(e){var t,n=this.options.direction;if(Eme(n),"horizontal"==n)return this.body.util.toTime(e.x).valueOf();var r=this.body.domProps.center.height;return t=this.conversion(r),e.y/t.scale+t.offset}},{key:"getPointer",value:function(e,t){var n=t.getBoundingClientRect();return this.options.rtl?{x:n.right-e.x,y:e.y-n.top}:{x:e.x-n.left,y:e.y-n.top}}},{key:"zoom",value:function(e,t,n,r){null==t&&(t=(this.start+this.end)/2);var i=wme(this.body.hiddenDates,this.start,this.end),o=_me(this.options.moment,this.body.hiddenDates,this,t),a=i-o,s=t-o+(this.start-(t-o))*e,l=t+a+(this.end-(t+a))*e;this.startToFront=!(n>0),this.endToFront=!(-n>0);var u=Sme(this.body.hiddenDates,s,n,!0),c=Sme(this.body.hiddenDates,l,-n,!0);u==s&&c==l||(s=u,l=c);var d={animation:!1,byUser:!0,event:r};this.setRange(s,l,d),this.startToFront=!1,this.endToFront=!0}},{key:"move",value:function(e){var t=this.end-this.start,n=this.start+t*e,r=this.end+t*e;this.start=n,this.end=r}},{key:"moveTo",value:function(e){var t=(this.start+this.end)/2-e,n=this.start-t,r=this.end-t;this.setRange(n,r,{animation:!1,byUser:!0,event:null})}},{key:"destroy",value:function(){this.stopRolling()}}],[{key:"conversion",value:function(e,t,n,r){return void 0===r&&(r=0),0!=n&&t-e!=0?{offset:e,scale:n/(t-e-r)}:{offset:0,scale:1}}}]),t}();function Eme(e){if("horizontal"!=e&&"vertical"!=e)throw new TypeError('Unknown direction "'.concat(e,'". Choose "horizontal" or "vertical".'))}var Ome,Dme=qq(tX.setInterval),Mme=null;"undefined"!=typeof window?Ome=function e(t,n){var r=n||{preventDefault:!1};if(t.Manager){var i=t,o=function(t,n){var o=Object.create(r);return n&&i.assign(o,n),e(new i(t,o),o)};return i.assign(o,i),o.Manager=function(t,n){var o=Object.create(r);return n&&i.assign(o,n),e(new i.Manager(t,o),o)},o}var a=Object.create(t),s=t.element;function l(e){return e.match(/[^ ]+/g)}function u(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var t=!1;e.stopPropagation=function(){t=!0};var n=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof n&&(e.srcEvent.stopPropagation=function(){n(),e.stopPropagation()}),e.firstTarget=Mme;for(var r=Mme;r&&!t;){var i=r.hammer;if(i)for(var o,a=0;a<i.length;a++)if(o=i[a]._handlers[e.type])for(var s=0;s<o.length&&!t;s++)o[s](e);r=r.parentNode}}return s.hammer||(s.hammer=[]),s.hammer.push(a),t.on("hammer.input",(function(e){!0!==r.preventDefault&&r.preventDefault!==e.pointerType||e.preventDefault(),e.isFirst&&(Mme=e.target)})),a._handlers={},a.on=function(e,n){return l(e).forEach((function(e){var r=a._handlers[e];r||(a._handlers[e]=r=[],t.on(e,u)),r.push(n)})),a},a.off=function(e,n){return l(e).forEach((function(e){var r=a._handlers[e];r&&((r=n?r.filter((function(e){return e!==n})):[]).length>0?a._handlers[e]=r:(t.off(e,u),delete a._handlers[e]))})),a},a.emit=function(e,n){Mme=n.target,t.emit(e,n)},a.destroy=function(){var e=t.element.hammer,n=e.indexOf(a);-1!==n&&e.splice(n,1),e.length||delete t.element.hammer,a._handlers={},t.destroy()},a}(window.Hammer||bre,{preventDefault:"mouse"}):Ome=function(){return function(){var e=function(){};return{on:e,off:e,destroy:e,emit:e,get:function(t){return{set:e}}}}()};var Ame=Ome;function Ime(e,t){t.inputHandler=function(e){e.isFirst&&t(e)},e.on("hammer.input",t.inputHandler)}var Pme=function(){function e(t,n,r,i,o){p2(this,e),this.moment=o&&o.moment||Ape,this.options=o||{},this.current=this.moment(),this._start=this.moment(),this._end=this.moment(),this.autoScale=!0,this.scale="day",this.step=1,this.setRange(t,n,r),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,j4(i)?this.hiddenDates=i:this.hiddenDates=null!=i?[i]:[],this.format=e.FORMAT}return k6(e,[{key:"setMoment",value:function(e){this.moment=e,this.current=this.moment(this.current.valueOf()),this._start=this.moment(this._start.valueOf()),this._end=this.moment(this._end.valueOf())}},{key:"setFormat",value:function(t){var n=qfe.deepExtend({},e.FORMAT);this.format=qfe.deepExtend(n,t)}},{key:"setRange",value:function(e,t,n){if(!(e instanceof Date&&t instanceof Date))throw"No legal start or end date in method setRange";this._start=null!=e?this.moment(e.valueOf()):X4(),this._end=null!=t?this.moment(t.valueOf()):X4(),this.autoScale&&this.setMinimumStep(n)}},{key:"start",value:function(){this.current=this._start.clone(),this.roundToMinor()}},{key:"roundToMinor",value:function(){switch("week"==this.scale&&this.current.weekday(0),this.scale){case"year":this.current.year(this.step*Math.floor(this.current.year()/this.step)),this.current.month(0);case"month":this.current.date(1);case"week":case"day":case"weekday":this.current.hours(0);case"hour":this.current.minutes(0);case"minute":this.current.seconds(0);case"second":this.current.milliseconds(0)}if(1!=this.step){var e=this.current.clone();switch(this.scale){case"millisecond":this.current.subtract(this.current.milliseconds()%this.step,"milliseconds");break;case"second":this.current.subtract(this.current.seconds()%this.step,"seconds");break;case"minute":this.current.subtract(this.current.minutes()%this.step,"minutes");break;case"hour":this.current.subtract(this.current.hours()%this.step,"hours");break;case"weekday":case"day":this.current.subtract((this.current.date()-1)%this.step,"day");break;case"week":this.current.subtract(this.current.week()%this.step,"week");break;case"month":this.current.subtract(this.current.month()%this.step,"month");break;case"year":this.current.subtract(this.current.year()%this.step,"year")}e.isSame(this.current)||(this.current=this.moment(Sme(this.hiddenDates,this.current.valueOf(),-1,!0)))}}},{key:"hasNext",value:function(){return this.current.valueOf()<=this._end.valueOf()}},{key:"next",value:function(){var e=this.current.valueOf();switch(this.scale){case"millisecond":this.current.add(this.step,"millisecond");break;case"second":this.current.add(this.step,"second");break;case"minute":this.current.add(this.step,"minute");break;case"hour":this.current.add(this.step,"hour"),this.current.month()<6?this.current.subtract(this.current.hours()%this.step,"hour"):this.current.hours()%this.step!=0&&this.current.add(this.step-this.current.hours()%this.step,"hour");break;case"weekday":case"day":this.current.add(this.step,"day");break;case"week":if(0!==this.current.weekday())this.current.weekday(0),this.current.add(this.step,"week");else if(!1===this.options.showMajorLabels)this.current.add(this.step,"week");else{var t=this.current.clone();t.add(1,"week"),t.isSame(this.current,"month")?this.current.add(this.step,"week"):(this.current.add(this.step,"week"),this.current.date(1))}break;case"month":this.current.add(this.step,"month");break;case"year":this.current.add(this.step,"year")}if(1!=this.step)switch(this.scale){case"millisecond":this.current.milliseconds()>0&&this.current.milliseconds()<this.step&&this.current.milliseconds(0);break;case"second":this.current.seconds()>0&&this.current.seconds()<this.step&&this.current.seconds(0);break;case"minute":this.current.minutes()>0&&this.current.minutes()<this.step&&this.current.minutes(0);break;case"hour":this.current.hours()>0&&this.current.hours()<this.step&&this.current.hours(0);break;case"weekday":case"day":this.current.date()<this.step+1&&this.current.date(1);break;case"week":this.current.week()<this.step&&this.current.week(1);break;case"month":this.current.month()<this.step&&this.current.month(0)}this.current.valueOf()==e&&(this.current=this._end.clone()),this.switchedDay=!1,this.switchedMonth=!1,this.switchedYear=!1,function(e,t,n){for(var r=!1,i=t.current.valueOf(),o=0;o<t.hiddenDates.length;o++){var a=t.hiddenDates[o].start,s=t.hiddenDates[o].end;if(i>=a&&i<s){r=!0;break}}if(1==r&&i<t._end.valueOf()&&i!=n){var l=e(n),u=e(s);l.year()!=u.year()?t.switchedYear=!0:l.month()!=u.month()?t.switchedMonth=!0:l.dayOfYear()!=u.dayOfYear()&&(t.switchedDay=!0),t.current=u}}(this.moment,this,e)}},{key:"getCurrent",value:function(){return this.current.clone()}},{key:"setScale",value:function(e){e&&"string"==typeof e.scale&&(this.scale=e.scale,this.step=e.step>0?e.step:1,this.autoScale=!1)}},{key:"setAutoScale",value:function(e){this.autoScale=e}},{key:"setMinimumStep",value:function(e){if(null!=e){var t=31104e6,n=2592e6,r=864e5,i=36e5,o=6e4,a=1e3;1e3*t>e&&(this.scale="year",this.step=1e3),500*t>e&&(this.scale="year",this.step=500),100*t>e&&(this.scale="year",this.step=100),50*t>e&&(this.scale="year",this.step=50),10*t>e&&(this.scale="year",this.step=10),5*t>e&&(this.scale="year",this.step=5),t>e&&(this.scale="year",this.step=1),7776e6>e&&(this.scale="month",this.step=3),n>e&&(this.scale="month",this.step=1),6048e5>e&&this.options.showWeekScale&&(this.scale="week",this.step=1),1728e5>e&&(this.scale="day",this.step=2),r>e&&(this.scale="day",this.step=1),432e5>e&&(this.scale="weekday",this.step=1),144e5>e&&(this.scale="hour",this.step=4),i>e&&(this.scale="hour",this.step=1),9e5>e&&(this.scale="minute",this.step=15),6e5>e&&(this.scale="minute",this.step=10),3e5>e&&(this.scale="minute",this.step=5),o>e&&(this.scale="minute",this.step=1),15e3>e&&(this.scale="second",this.step=15),1e4>e&&(this.scale="second",this.step=10),5e3>e&&(this.scale="second",this.step=5),a>e&&(this.scale="second",this.step=1),200>e&&(this.scale="millisecond",this.step=200),100>e&&(this.scale="millisecond",this.step=100),50>e&&(this.scale="millisecond",this.step=50),10>e&&(this.scale="millisecond",this.step=10),5>e&&(this.scale="millisecond",this.step=5),1>e&&(this.scale="millisecond",this.step=1)}}},{key:"isMajor",value:function(){if(1==this.switchedYear)switch(this.scale){case"year":case"month":case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedMonth)switch(this.scale){case"week":case"weekday":case"day":case"hour":case"minute":case"second":case"millisecond":return!0;default:return!1}else if(1==this.switchedDay)switch(this.scale){case"millisecond":case"second":case"minute":case"hour":return!0;default:return!1}var e=this.moment(this.current);switch(this.scale){case"millisecond":return 0==e.milliseconds();case"second":return 0==e.seconds();case"minute":return 0==e.hours()&&0==e.minutes();case"hour":return 0==e.hours();case"weekday":case"day":return this.options.showWeekScale?1==e.isoWeekday():1==e.date();case"week":return 1==e.date();case"month":return 0==e.month();default:return!1}}},{key:"getLabelMinor",value:function(e){if(null==e&&(e=this.current),e instanceof Date&&(e=this.moment(e)),"function"==typeof this.format.minorLabels)return this.format.minorLabels(e,this.scale,this.step);var t=this.format.minorLabels[this.scale];return"week"===this.scale&&1===e.date()&&0!==e.weekday()?"":t&&t.length>0?this.moment(e).format(t):""}},{key:"getLabelMajor",value:function(e){if(null==e&&(e=this.current),e instanceof Date&&(e=this.moment(e)),"function"==typeof this.format.majorLabels)return this.format.majorLabels(e,this.scale,this.step);var t=this.format.majorLabels[this.scale];return t&&t.length>0?this.moment(e).format(t):""}},{key:"getClassName",value:function(){var e,t=this.moment,n=this.moment(this.current),r=n.locale?n.locale("en"):n.lang("en"),i=this.step,o=[];function a(e){return e/i%2==0?" vis-even":" vis-odd"}function s(e){return e.isSame(X4(),"day")?" vis-today":e.isSame(t().add(1,"day"),"day")?" vis-tomorrow":e.isSame(t().add(-1,"day"),"day")?" vis-yesterday":""}function l(e){return e.isSame(X4(),"week")?" vis-current-week":""}function u(e){return e.isSame(X4(),"month")?" vis-current-month":""}switch(this.scale){case"millisecond":o.push(s(r)),o.push(a(r.milliseconds()));break;case"second":o.push(s(r)),o.push(a(r.seconds()));break;case"minute":o.push(s(r)),o.push(a(r.minutes()));break;case"hour":o.push(E4(e="vis-h".concat(r.hours())).call(e,4==this.step?"-h"+(r.hours()+4):"")),o.push(s(r)),o.push(a(r.hours()));break;case"weekday":o.push("vis-".concat(r.format("dddd").toLowerCase())),o.push(s(r)),o.push(l(r)),o.push(a(r.date()));break;case"day":o.push("vis-day".concat(r.date())),o.push("vis-".concat(r.format("MMMM").toLowerCase())),o.push(s(r)),o.push(u(r)),o.push(this.step<=2?s(r):""),o.push(this.step<=2?"vis-".concat(r.format("dddd").toLowerCase()):""),o.push(a(r.date()-1));break;case"week":o.push("vis-week".concat(r.format("w"))),o.push(l(r)),o.push(a(r.week()));break;case"month":o.push("vis-".concat(r.format("MMMM").toLowerCase())),o.push(u(r)),o.push(a(r.month()));break;case"year":o.push("vis-year".concat(r.year())),o.push(function(e){return e.isSame(X4(),"year")?" vis-current-year":""}(r)),o.push(a(r.year()))}return nee(o).call(o,String).join(" ")}}],[{key:"snap",value:function(e,t,n){var r=Ape(e);if("year"==t){var i=r.year()+Math.round(r.month()/12);r.year(Math.round(i/n)*n),r.month(0),r.date(0),r.hours(0),r.minutes(0),r.seconds(0),r.milliseconds(0)}else if("month"==t)r.date()>15?(r.date(1),r.add(1,"month")):r.date(1),r.hours(0),r.minutes(0),r.seconds(0),r.milliseconds(0);else if("week"==t)r.weekday()>2?(r.weekday(0),r.add(1,"week")):r.weekday(0),r.hours(0),r.minutes(0),r.seconds(0),r.milliseconds(0);else if("day"==t){switch(n){case 5:case 2:r.hours(24*Math.round(r.hours()/24));break;default:r.hours(12*Math.round(r.hours()/12))}r.minutes(0),r.seconds(0),r.milliseconds(0)}else if("weekday"==t){switch(n){case 5:case 2:r.hours(12*Math.round(r.hours()/12));break;default:r.hours(6*Math.round(r.hours()/6))}r.minutes(0),r.seconds(0),r.milliseconds(0)}else if("hour"==t){if(4===n)r.minutes(60*Math.round(r.minutes()/60));else r.minutes(30*Math.round(r.minutes()/30));r.seconds(0),r.milliseconds(0)}else if("minute"==t){switch(n){case 15:case 10:r.minutes(5*Math.round(r.minutes()/5)),r.seconds(0);break;case 5:r.seconds(60*Math.round(r.seconds()/60));break;default:r.seconds(30*Math.round(r.seconds()/30))}r.milliseconds(0)}else if("second"==t)switch(n){case 15:case 10:r.seconds(5*Math.round(r.seconds()/5)),r.milliseconds(0);break;case 5:r.milliseconds(1e3*Math.round(r.milliseconds()/1e3));break;default:r.milliseconds(500*Math.round(r.milliseconds()/500))}else if("millisecond"==t){var o=n>5?n/2:1;r.milliseconds(Math.round(r.milliseconds()/o)*o)}return r}}]),e}();function Rme(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}Pme.FORMAT={minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}};function Nme(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}Rme(".vis-time-axis {\n position: relative;\n overflow: hidden;\n}\n\n.vis-time-axis.vis-foreground {\n top: 0;\n left: 0;\n width: 100%;\n}\n\n.vis-time-axis.vis-background {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n}\n\n.vis-time-axis .vis-text {\n position: absolute;\n color: #4d4d4d;\n padding: 3px;\n overflow: hidden;\n box-sizing: border-box;\n\n white-space: nowrap;\n}\n\n.vis-time-axis .vis-text.vis-measure {\n position: absolute;\n padding-left: 0;\n padding-right: 0;\n margin-left: 0;\n margin-right: 0;\n visibility: hidden;\n}\n\n.vis-time-axis .vis-grid.vis-vertical {\n position: absolute;\n border-left: 1px solid;\n}\n\n.vis-time-axis .vis-grid.vis-vertical-rtl {\n position: absolute;\n border-right: 1px solid;\n}\n\n.vis-time-axis .vis-grid.vis-minor {\n border-color: #e5e5e5;\n}\n\n.vis-time-axis .vis-grid.vis-major {\n border-color: #bfbfbf;\n}\n");var jme=function(){Pie(t,ome);var e=Nme(t);function t(n,r){var i;return p2(this,t),(i=e.call(this)).dom={foreground:null,lines:[],majorTexts:[],minorTexts:[],redundant:{lines:[],majorTexts:[],minorTexts:[]}},i.props={range:{start:0,end:0,minimumStep:0},lineTop:0},i.defaultOptions={orientation:{axis:"bottom"},showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,maxMinorChars:7,format:qfe.extend({},Pme.FORMAT),moment:Ape,timeAxis:null},i.options=qfe.extend({},i.defaultOptions),i.body=n,i._create(),i.setOptions(r),i}return k6(t,[{key:"setOptions",value:function(e){e&&(qfe.selectiveExtend(["showMinorLabels","showMajorLabels","showWeekScale","maxMinorChars","hiddenDates","timeAxis","moment","rtl"],this.options,e),qfe.selectiveDeepExtend(["format"],this.options,e),"orientation"in e&&("string"==typeof e.orientation?this.options.orientation.axis=e.orientation:"object"===w6(e.orientation)&&"axis"in e.orientation&&(this.options.orientation.axis=e.orientation.axis)),"locale"in e&&("function"==typeof Ape.locale?Ape.locale(e.locale):Ape.lang(e.locale)))}},{key:"_create",value:function(){this.dom.foreground=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.foreground.className="vis-time-axis vis-foreground",this.dom.background.className="vis-time-axis vis-background"}},{key:"destroy",value:function(){this.dom.foreground.parentNode&&this.dom.foreground.parentNode.removeChild(this.dom.foreground),this.dom.background.parentNode&&this.dom.background.parentNode.removeChild(this.dom.background),this.body=null}},{key:"redraw",value:function(){var e=this.props,t=this.dom.foreground,n=this.dom.background,r="top"==this.options.orientation.axis?this.body.dom.top:this.body.dom.bottom,i=t.parentNode!==r;this._calculateCharSize();var o=this.options.showMinorLabels&&"none"!==this.options.orientation.axis,a=this.options.showMajorLabels&&"none"!==this.options.orientation.axis;e.minorLabelHeight=o?e.minorCharHeight:0,e.majorLabelHeight=a?e.majorCharHeight:0,e.height=e.minorLabelHeight+e.majorLabelHeight,e.width=t.offsetWidth,e.minorLineHeight=this.body.domProps.root.height-e.majorLabelHeight-("top"==this.options.orientation.axis?this.body.domProps.bottom.height:this.body.domProps.top.height),e.minorLineWidth=1,e.majorLineHeight=e.minorLineHeight+e.majorLabelHeight,e.majorLineWidth=1;var s=t.nextSibling,l=n.nextSibling;return t.parentNode&&t.parentNode.removeChild(t),n.parentNode&&n.parentNode.removeChild(n),t.style.height="".concat(this.props.height,"px"),this._repaintLabels(),s?r.insertBefore(t,s):r.appendChild(t),l?this.body.dom.backgroundVertical.insertBefore(n,l):this.body.dom.backgroundVertical.appendChild(n),this._isResized()||i}},{key:"_repaintLabels",value:function(){var e=this.options.orientation.axis,t=qfe.convert(this.body.range.start,"Number"),n=qfe.convert(this.body.range.end,"Number"),r=this.body.util.toTime((this.props.minorCharWidth||10)*this.options.maxMinorChars).valueOf(),i=r-_me(this.options.moment,this.body.hiddenDates,this.body.range,r);i-=this.body.util.toTime(0).valueOf();var o=new Pme(new Date(t),new Date(n),i,this.body.hiddenDates,this.options);o.setMoment(this.options.moment),this.options.format&&o.setFormat(this.options.format),this.options.timeAxis&&o.setScale(this.options.timeAxis),this.step=o;var a,s,l,u,c,d,h=this.dom;h.redundant.lines=h.lines,h.redundant.majorTexts=h.majorTexts,h.redundant.minorTexts=h.minorTexts,h.lines=[],h.majorTexts=[],h.minorTexts=[];var p,f,m,v=0,g=void 0,y=0,b=1e3;for(o.start(),s=o.getCurrent(),u=this.body.util.toScreen(s);o.hasNext()&&y<b;){if(y++,c=o.isMajor(),m=o.getClassName(),a=s,l=u,o.next(),s=o.getCurrent(),p=v,v=(u=this.body.util.toScreen(s))-l,"week"===o.scale)d=!0;else d=v>=.4*p;if(this.options.showMinorLabels&&d){var w=this._repaintMinorText(l,o.getLabelMinor(a),e,m);w.style.width="".concat(v,"px")}c&&this.options.showMajorLabels?(l>0&&(null==g&&(g=l),w=this._repaintMajorText(l,o.getLabelMajor(a),e,m)),f=this._repaintMajorLine(l,v,e,m)):d?f=this._repaintMinorLine(l,v,e,m):f&&(f.style.width="".concat(Lee(f.style.width)+v,"px"))}if(y!==b||Lme||(console.warn("Something is wrong with the Timeline scale. Limited drawing of grid lines to ".concat(b," lines.")),Lme=!0),this.options.showMajorLabels){var x=this.body.util.toTime(0),_=o.getLabelMajor(x),S=_.length*(this.props.majorCharWidth||10)+10;(null==g||S<g)&&this._repaintMajorText(0,_,e,m)}O8(qfe).call(qfe,this.dom.redundant,(function(e){for(;e.length;){var t=e.pop();t&&t.parentNode&&t.parentNode.removeChild(t)}}))}},{key:"_repaintMinorText",value:function(e,t,n,r){var i=this.dom.redundant.minorTexts.shift();if(!i){var o=document.createTextNode("");(i=document.createElement("div")).appendChild(o),this.dom.foreground.appendChild(i)}this.dom.minorTexts.push(i),i.innerHTML=qfe.xss(t);var a="top"==n?this.props.majorLabelHeight:0;return this._setXY(i,e,a),i.className="vis-text vis-minor ".concat(r),i}},{key:"_repaintMajorText",value:function(e,t,n,r){var i=this.dom.redundant.majorTexts.shift();if(!i){var o=document.createElement("div");(i=document.createElement("div")).appendChild(o),this.dom.foreground.appendChild(i)}i.childNodes[0].innerHTML=qfe.xss(t),i.className="vis-text vis-major ".concat(r);var a="top"==n?0:this.props.minorLabelHeight;return this._setXY(i,e,a),this.dom.majorTexts.push(i),i}},{key:"_setXY",value:function(e,t,n){var r,i=this.options.rtl?-1*t:t;e.style.transform=E4(r="translate(".concat(i,"px, ")).call(r,n,"px)")}},{key:"_repaintMinorLine",value:function(e,t,n,r){var i,o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var a=this.props;o.style.width="".concat(t,"px"),o.style.height="".concat(a.minorLineHeight,"px");var s="top"==n?a.majorLabelHeight:this.body.domProps.top.height,l=e-a.minorLineWidth/2;return this._setXY(o,l,s),o.className=E4(i="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-minor ")).call(i,r),o}},{key:"_repaintMajorLine",value:function(e,t,n,r){var i,o=this.dom.redundant.lines.shift();o||(o=document.createElement("div"),this.dom.background.appendChild(o)),this.dom.lines.push(o);var a=this.props;o.style.width="".concat(t,"px"),o.style.height="".concat(a.majorLineHeight,"px");var s="top"==n?0:this.body.domProps.top.height,l=e-a.majorLineWidth/2;return this._setXY(o,l,s),o.className=E4(i="vis-grid ".concat(this.options.rtl?"vis-vertical-rtl":"vis-vertical"," vis-major ")).call(i,r),o}},{key:"_calculateCharSize",value:function(){this.dom.measureCharMinor||(this.dom.measureCharMinor=document.createElement("DIV"),this.dom.measureCharMinor.className="vis-text vis-minor vis-measure",this.dom.measureCharMinor.style.position="absolute",this.dom.measureCharMinor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMinor)),this.props.minorCharHeight=this.dom.measureCharMinor.clientHeight,this.props.minorCharWidth=this.dom.measureCharMinor.clientWidth,this.dom.measureCharMajor||(this.dom.measureCharMajor=document.createElement("DIV"),this.dom.measureCharMajor.className="vis-text vis-major vis-measure",this.dom.measureCharMajor.style.position="absolute",this.dom.measureCharMajor.appendChild(document.createTextNode("0")),this.dom.foreground.appendChild(this.dom.measureCharMajor)),this.props.majorCharHeight=this.dom.measureCharMajor.clientHeight,this.props.majorCharWidth=this.dom.measureCharMajor.clientWidth}}]),t}(),Lme=!1;function Fme(e){var t,n;this.active=!1,this.dom={container:e},this.dom.overlay=document.createElement("div"),this.dom.overlay.className="vis-overlay",this.dom.container.appendChild(this.dom.overlay),this.hammer=Ame(this.dom.overlay),this.hammer.on("tap",m8(t=this._onTapOverlay).call(t,this));var r=this,i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];O8(i).call(i,(function(e){r.hammer.on(e,(function(e){e.stopPropagation()}))})),document&&document.body&&(this.onClick=function(t){(function(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1})(t.target,e)||r.deactivate()},document.body.addEventListener("click",this.onClick)),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=function(e){var t,n=e&&e.preventDefault||!1,r=e&&e.container||window,i={},o={keydown:{},keyup:{}},a={};for(t=97;t<=122;t++)a[String.fromCharCode(t)]={code:t-97+65,shift:!1};for(t=65;t<=90;t++)a[String.fromCharCode(t)]={code:t,shift:!0};for(t=0;t<=9;t++)a[""+t]={code:48+t,shift:!1};for(t=1;t<=12;t++)a["F"+t]={code:111+t,shift:!1};for(t=0;t<=9;t++)a["num"+t]={code:96+t,shift:!1};a["num*"]={code:106,shift:!1},a["num+"]={code:107,shift:!1},a["num-"]={code:109,shift:!1},a["num/"]={code:111,shift:!1},a["num."]={code:110,shift:!1},a.left={code:37,shift:!1},a.up={code:38,shift:!1},a.right={code:39,shift:!1},a.down={code:40,shift:!1},a.space={code:32,shift:!1},a.enter={code:13,shift:!1},a.shift={code:16,shift:void 0},a.esc={code:27,shift:!1},a.backspace={code:8,shift:!1},a.tab={code:9,shift:!1},a.ctrl={code:17,shift:!1},a.alt={code:18,shift:!1},a.delete={code:46,shift:!1},a.pageup={code:33,shift:!1},a.pagedown={code:34,shift:!1},a["="]={code:187,shift:!1},a["-"]={code:189,shift:!1},a["]"]={code:221,shift:!1},a["["]={code:219,shift:!1};var s=function(e){u(e,"keydown")},l=function(e){u(e,"keyup")},u=function(e,t){if(void 0!==o[t][e.keyCode]){for(var r=o[t][e.keyCode],i=0;i<r.length;i++)(void 0===r[i].shift||1==r[i].shift&&1==e.shiftKey||0==r[i].shift&&0==e.shiftKey)&&r[i].fn(e);1==n&&e.preventDefault()}};return i.bind=function(e,t,n){if(void 0===n&&(n="keydown"),void 0===a[e])throw new Error("unsupported key: "+e);void 0===o[n][a[e].code]&&(o[n][a[e].code]=[]),o[n][a[e].code].push({fn:t,shift:a[e].shift})},i.bindAll=function(e,t){for(var n in void 0===t&&(t="keydown"),a)a.hasOwnProperty(n)&&i.bind(n,e,t)},i.getKey=function(e){for(var t in a)if(a.hasOwnProperty(t)){if(1==e.shiftKey&&1==a[t].shift&&e.keyCode==a[t].code)return t;if(0==e.shiftKey&&0==a[t].shift&&e.keyCode==a[t].code)return t;if(e.keyCode==a[t].code&&"shift"==t)return t}return"unknown key, currently not supported"},i.unbind=function(e,t,n){if(void 0===n&&(n="keydown"),void 0===a[e])throw new Error("unsupported key: "+e);if(void 0!==t){var r=[],i=o[n][a[e].code];if(void 0!==i)for(var s=0;s<i.length;s++)i[s].fn==t&&i[s].shift==a[e].shift||r.push(o[n][a[e].code][s]);o[n][a[e].code]=r}else o[n][a[e].code]=[]},i.reset=function(){o={keydown:{},keyup:{}}},i.destroy=function(){o={keydown:{},keyup:{}},r.removeEventListener("keydown",s,!0),r.removeEventListener("keyup",l,!0)},r.addEventListener("keydown",s,!0),r.addEventListener("keyup",l,!0),i}(),this.escListener=m8(n=this.deactivate).call(n,this)}Rme(".vis .overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n\n /* Must be displayed above for example selected Timeline items */\n z-index: 10;\n}\n\n.vis-active {\n box-shadow: 0 0 10px #86d5f8;\n}\n"),Nte(Fme.prototype),Fme.current=null,Fme.prototype.destroy=function(){this.deactivate(),this.dom.overlay.parentNode.removeChild(this.dom.overlay),this.onClick&&document.body.removeEventListener("click",this.onClick),void 0!==this.keycharm&&this.keycharm.destroy(),this.keycharm=null,this.hammer.destroy(),this.hammer=null},Fme.prototype.activate=function(){var e;Fme.current&&Fme.current.deactivate(),Fme.current=this,this.active=!0,this.dom.overlay.style.display="none",qfe.addClassName(this.dom.container,"vis-active"),this.emit("change"),this.emit("activate"),m8(e=this.keycharm).call(e,"esc",this.escListener)},Fme.prototype.deactivate=function(){Fme.current===this&&(Fme.current=null),this.active=!1,this.dom.overlay.style.display="",qfe.removeClassName(this.dom.container,"vis-active"),this.keycharm.unbind("esc",this.escListener),this.emit("change"),this.emit("deactivate")},Fme.prototype._onTapOverlay=function(e){this.activate(),e.stopPropagation()};var Bme={current:"current",time:"time",deleteSelected:"Delete selected"},Ume={current:"attuale",time:"tempo",deleteSelected:"Cancella la selezione"},Hme={current:"huidige",time:"tijd",deleteSelected:"Selectie verwijderen"},Yme={current:"Aktuelle",time:"Zeit",deleteSelected:"Lösche Auswahl"},zme={current:"actuel",time:"heure",deleteSelected:"Effacer la selection"},Wme={current:"corriente",time:"hora",deleteSelected:"Eliminar selección"},Gme={current:"поточний",time:"час",deleteSelected:"Видалити обране"},Vme={current:"текущее",time:"время",deleteSelected:"Удалить выбранное"},qme={current:"aktualny",time:"czas",deleteSelected:"Usuń wybrane"},Qme={current:"atual",time:"data",deleteSelected:"Apagar selecionado"},$me={current:"現在",time:"時刻",deleteSelected:"選択されたものを削除"},Xme={current:"nuvarande",time:"tid",deleteSelected:"Radera valda"},Kme={current:"nåværende",time:"tid",deleteSelected:"Slett valgte"},Zme={current:"einamas",time:"laikas",deleteSelected:"Pašalinti pasirinktą"},Jme={en:Bme,en_EN:Bme,en_US:Bme,it:Ume,it_IT:Ume,it_CH:Ume,nl:Hme,nl_NL:Hme,nl_BE:Hme,de:Yme,de_DE:Yme,fr:zme,fr_FR:zme,fr_CA:zme,fr_BE:zme,es:Wme,es_ES:Wme,uk:Gme,uk_UA:Gme,ru:Vme,ru_RU:Vme,pl:qme,pl_PL:qme,pt:Qme,pt_BR:Qme,pt_PT:Qme,ja:$me,ja_JP:$me,lt:Zme,lt_LT:Zme,sv:Xme,sv_SE:Xme,nb:Kme,nn:Kme,nb_NO:Kme,nn_NO:Kme};function eve(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}Rme(".vis-custom-time {\n background-color: #6E94FF;\n width: 2px;\n cursor: move;\n z-index: 1;\n}\n\n.vis-custom-time > .vis-custom-time-marker {\n background-color: inherit;\n color: white;\n font-size: 12px;\n white-space: nowrap;\n padding: 3px 5px;\n top: 0px;\n cursor: initial;\n z-index: inherit;\n}");var tve=function(){Pie(t,ome);var e=eve(t);function t(n,r){var i,o;p2(this,t),(o=e.call(this)).body=n,o.defaultOptions={moment:Ape,locales:Jme,locale:"en",id:void 0,title:void 0},o.options=qfe.extend({},o.defaultOptions),o.setOptions(r),o.options.locales=qfe.extend({},Jme,o.options.locales);var a=o.defaultOptions.locales[o.defaultOptions.locale];return O8(i=V4(o.options.locales)).call(i,(function(e){o.options.locales[e]=qfe.extend({},a,o.options.locales[e])})),r&&null!=r.time?o.customTime=r.time:o.customTime=new Date,o.eventParams={},o._create(),o}return k6(t,[{key:"setOptions",value:function(e){e&&qfe.selectiveExtend(["moment","locale","locales","id","title","rtl","snap"],this.options,e)}},{key:"_create",value:function(){var e,t,n,r=document.createElement("div");r["custom-time"]=this,r.className="vis-custom-time ".concat(this.options.id||""),r.style.position="absolute",r.style.top="0px",r.style.height="100%",this.bar=r;var i=document.createElement("div");function o(e){this.body.range._onMouseWheel(e)}i.style.position="relative",i.style.top="0px",this.options.rtl?i.style.right="-10px":i.style.left="-10px",i.style.height="100%",i.style.width="20px",i.addEventListener?(i.addEventListener("mousewheel",m8(o).call(o,this),!1),i.addEventListener("DOMMouseScroll",m8(o).call(o,this),!1)):i.attachEvent("onmousewheel",m8(o).call(o,this)),r.appendChild(i),this.hammer=new Ame(i),this.hammer.on("panstart",m8(e=this._onDragStart).call(e,this)),this.hammer.on("panmove",m8(t=this._onDrag).call(t,this)),this.hammer.on("panend",m8(n=this._onDragEnd).call(n,this)),this.hammer.get("pan").set({threshold:5,direction:Ame.DIRECTION_ALL}),this.hammer.get("press").set({time:1e4})}},{key:"destroy",value:function(){this.hide(),this.hammer.destroy(),this.hammer=null,this.body=null}},{key:"redraw",value:function(){var e=this.body.dom.backgroundVertical;this.bar.parentNode!=e&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),e.appendChild(this.bar));var t=this.body.util.toScreen(this.customTime),n=this.options.locales[this.options.locale];n||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),n=this.options.locales.en);var r,i=this.options.title;void 0===i?i=(i=E4(r="".concat(n.time,": ")).call(r,this.options.moment(this.customTime).format("dddd, MMMM Do YYYY, H:mm:ss"))).charAt(0).toUpperCase()+i.substring(1):"function"==typeof i&&(i=i.call(this,this.customTime));return this.options.rtl?this.bar.style.right="".concat(t,"px"):this.bar.style.left="".concat(t,"px"),this.bar.title=i,!1}},{key:"hide",value:function(){this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar)}},{key:"setCustomTime",value:function(e){this.customTime=qfe.convert(e,"Date"),this.redraw()}},{key:"getCustomTime",value:function(){return new Date(this.customTime.valueOf())}},{key:"setCustomMarker",value:function(e,t){var n,r;(this.marker&&this.bar.removeChild(this.marker),this.marker=document.createElement("div"),this.marker.className="vis-custom-time-marker",this.marker.innerHTML=qfe.xss(e),this.marker.style.position="absolute",t)&&(this.marker.setAttribute("contenteditable","true"),this.marker.addEventListener("pointerdown",(function(){this.marker.focus()})),this.marker.addEventListener("input",m8(n=this._onMarkerChange).call(n,this)),this.marker.title=e,this.marker.addEventListener("blur",m8(r=function(e){this.title!=e.target.innerHTML&&(this._onMarkerChanged(e),this.title=e.target.innerHTML)}).call(r,this)));this.bar.appendChild(this.marker)}},{key:"setCustomTitle",value:function(e){this.options.title=e}},{key:"_onDragStart",value:function(e){this.eventParams.dragging=!0,this.eventParams.customTime=this.customTime,e.stopPropagation()}},{key:"_onDrag",value:function(e){if(this.eventParams.dragging){var t=this.options.rtl?-1*e.deltaX:e.deltaX,n=this.body.util.toScreen(this.eventParams.customTime)+t,r=this.body.util.toTime(n),i=this.body.util.getScale(),o=this.body.util.getStep(),a=this.options.snap,s=a?a(r,i,o):r;this.setCustomTime(s),this.body.emitter.emit("timechange",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:e}),e.stopPropagation()}}},{key:"_onDragEnd",value:function(e){this.eventParams.dragging&&(this.body.emitter.emit("timechanged",{id:this.options.id,time:new Date(this.customTime.valueOf()),event:e}),e.stopPropagation())}},{key:"_onMarkerChange",value:function(e){this.body.emitter.emit("markerchange",{id:this.options.id,title:e.target.innerHTML,event:e}),e.stopPropagation()}},{key:"_onMarkerChanged",value:function(e){this.body.emitter.emit("markerchanged",{id:this.options.id,title:e.target.innerHTML,event:e}),e.stopPropagation()}}],[{key:"customTimeFromTarget",value:function(e){for(var t=e.target;t;){if(t.hasOwnProperty("custom-time"))return t["custom-time"];t=t.parentNode}return null}}]),t}();Rme(".vis-timeline {\n /*\n -webkit-transition: height .4s ease-in-out;\n transition: height .4s ease-in-out;\n */\n}\n\n.vis-panel {\n /*\n -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;\n transition: height .4s ease-in-out, top .4s ease-in-out;\n */\n}\n\n.vis-axis {\n /*\n -webkit-transition: top .4s ease-in-out;\n transition: top .4s ease-in-out;\n */\n}\n\n/* TODO: get animation working nicely\n\n.vis-item {\n -webkit-transition: top .4s ease-in-out;\n transition: top .4s ease-in-out;\n}\n\n.vis-item.line {\n -webkit-transition: height .4s ease-in-out, top .4s ease-in-out;\n transition: height .4s ease-in-out, top .4s ease-in-out;\n}\n/**/");Rme('.vis-current-time {\n background-color: #FF7F6E;\n width: 2px;\n z-index: 1;\n pointer-events: none;\n}\n\n.vis-rolling-mode-btn {\n height: 40px;\n width: 40px;\n position: absolute;\n top: 7px;\n right: 20px;\n border-radius: 50%;\n font-size: 28px;\n cursor: pointer;\n opacity: 0.8;\n color: white;\n font-weight: bold;\n text-align: center;\n background: #3876c2;\n}\n.vis-rolling-mode-btn:before {\n content: "\\26F6";\n}\n\n.vis-rolling-mode-btn:hover {\n opacity: 1;\n}');Rme(".vis-panel {\n position: absolute;\n\n padding: 0;\n margin: 0;\n\n box-sizing: border-box;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-left,\n.vis-panel.vis-right,\n.vis-panel.vis-top,\n.vis-panel.vis-bottom {\n border: 1px #bfbfbf;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-left,\n.vis-panel.vis-right {\n border-top-style: solid;\n border-bottom-style: solid;\n overflow: hidden;\n}\n\n.vis-left.vis-panel.vis-vertical-scroll, .vis-right.vis-panel.vis-vertical-scroll {\n height: 100%;\n overflow-x: hidden;\n overflow-y: scroll;\n} \n\n.vis-left.vis-panel.vis-vertical-scroll {\n direction: rtl;\n}\n\n.vis-left.vis-panel.vis-vertical-scroll .vis-content {\n direction: ltr;\n}\n\n.vis-right.vis-panel.vis-vertical-scroll {\n direction: ltr;\n}\n\n.vis-right.vis-panel.vis-vertical-scroll .vis-content {\n direction: rtl;\n}\n\n.vis-panel.vis-center,\n.vis-panel.vis-top,\n.vis-panel.vis-bottom {\n border-left-style: solid;\n border-right-style: solid;\n}\n\n.vis-background {\n overflow: hidden;\n}\n\n.vis-panel > .vis-content {\n position: relative;\n}\n\n.vis-panel .vis-shadow {\n position: absolute;\n width: 100%;\n height: 1px;\n box-shadow: 0 0 10px rgba(0,0,0,0.8);\n /* TODO: find a nice way to ensure vis-shadows are drawn on top of items\n z-index: 1;\n */\n}\n\n.vis-panel .vis-shadow.vis-top {\n top: -1px;\n left: 0;\n}\n\n.vis-panel .vis-shadow.vis-bottom {\n bottom: -1px;\n left: 0;\n}");Rme(".vis-graph-group0 {\n fill:#4f81bd;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #4f81bd;\n}\n\n.vis-graph-group1 {\n fill:#f79646;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #f79646;\n}\n\n.vis-graph-group2 {\n fill: #8c51cf;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #8c51cf;\n}\n\n.vis-graph-group3 {\n fill: #75c841;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #75c841;\n}\n\n.vis-graph-group4 {\n fill: #ff0100;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #ff0100;\n}\n\n.vis-graph-group5 {\n fill: #37d8e6;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #37d8e6;\n}\n\n.vis-graph-group6 {\n fill: #042662;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #042662;\n}\n\n.vis-graph-group7 {\n fill:#00ff26;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #00ff26;\n}\n\n.vis-graph-group8 {\n fill:#ff00ff;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #ff00ff;\n}\n\n.vis-graph-group9 {\n fill: #8f3938;\n fill-opacity:0;\n stroke-width:2px;\n stroke: #8f3938;\n}\n\n.vis-timeline .vis-fill {\n fill-opacity:0.1;\n stroke: none;\n}\n\n\n.vis-timeline .vis-bar {\n fill-opacity:0.5;\n stroke-width:1px;\n}\n\n.vis-timeline .vis-point {\n stroke-width:2px;\n fill-opacity:1.0;\n}\n\n\n.vis-timeline .vis-legend-background {\n stroke-width:1px;\n fill-opacity:0.9;\n fill: #ffffff;\n stroke: #c2c2c2;\n}\n\n\n.vis-timeline .vis-outline {\n stroke-width:1px;\n fill-opacity:1;\n fill: #ffffff;\n stroke: #e5e5e5;\n}\n\n.vis-timeline .vis-icon-fill {\n fill-opacity:0.3;\n stroke: none;\n}\n");Rme("\n.vis-timeline {\n position: relative;\n border: 1px solid #bfbfbf;\n overflow: hidden;\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.vis-loading-screen {\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n left: 0;\n}");Rme('/* override some bootstrap styles screwing up the timelines css */\n\n.vis [class*="span"] {\n min-height: 0;\n width: auto;\n}\n');var nve=function(){function e(){p2(this,e)}return k6(e,[{key:"_create",value:function(e){var t,n,r,i=this;this.dom={},this.dom.container=e,this.dom.container.style.position="relative",this.dom.root=document.createElement("div"),this.dom.background=document.createElement("div"),this.dom.backgroundVertical=document.createElement("div"),this.dom.backgroundHorizontal=document.createElement("div"),this.dom.centerContainer=document.createElement("div"),this.dom.leftContainer=document.createElement("div"),this.dom.rightContainer=document.createElement("div"),this.dom.center=document.createElement("div"),this.dom.left=document.createElement("div"),this.dom.right=document.createElement("div"),this.dom.top=document.createElement("div"),this.dom.bottom=document.createElement("div"),this.dom.shadowTop=document.createElement("div"),this.dom.shadowBottom=document.createElement("div"),this.dom.shadowTopLeft=document.createElement("div"),this.dom.shadowBottomLeft=document.createElement("div"),this.dom.shadowTopRight=document.createElement("div"),this.dom.shadowBottomRight=document.createElement("div"),this.dom.rollingModeBtn=document.createElement("div"),this.dom.loadingScreen=document.createElement("div"),this.dom.root.className="vis-timeline",this.dom.background.className="vis-panel vis-background",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical",this.dom.backgroundHorizontal.className="vis-panel vis-background vis-horizontal",this.dom.centerContainer.className="vis-panel vis-center",this.dom.leftContainer.className="vis-panel vis-left",this.dom.rightContainer.className="vis-panel vis-right",this.dom.top.className="vis-panel vis-top",this.dom.bottom.className="vis-panel vis-bottom",this.dom.left.className="vis-content",this.dom.center.className="vis-content",this.dom.right.className="vis-content",this.dom.shadowTop.className="vis-shadow vis-top",this.dom.shadowBottom.className="vis-shadow vis-bottom",this.dom.shadowTopLeft.className="vis-shadow vis-top",this.dom.shadowBottomLeft.className="vis-shadow vis-bottom",this.dom.shadowTopRight.className="vis-shadow vis-top",this.dom.shadowBottomRight.className="vis-shadow vis-bottom",this.dom.rollingModeBtn.className="vis-rolling-mode-btn",this.dom.loadingScreen.className="vis-loading-screen",this.dom.root.appendChild(this.dom.background),this.dom.root.appendChild(this.dom.backgroundVertical),this.dom.root.appendChild(this.dom.backgroundHorizontal),this.dom.root.appendChild(this.dom.centerContainer),this.dom.root.appendChild(this.dom.leftContainer),this.dom.root.appendChild(this.dom.rightContainer),this.dom.root.appendChild(this.dom.top),this.dom.root.appendChild(this.dom.bottom),this.dom.root.appendChild(this.dom.rollingModeBtn),this.dom.centerContainer.appendChild(this.dom.center),this.dom.leftContainer.appendChild(this.dom.left),this.dom.rightContainer.appendChild(this.dom.right),this.dom.centerContainer.appendChild(this.dom.shadowTop),this.dom.centerContainer.appendChild(this.dom.shadowBottom),this.dom.leftContainer.appendChild(this.dom.shadowTopLeft),this.dom.leftContainer.appendChild(this.dom.shadowBottomLeft),this.dom.rightContainer.appendChild(this.dom.shadowTopRight),this.dom.rightContainer.appendChild(this.dom.shadowBottomRight),this.props={root:{},background:{},centerContainer:{},leftContainer:{},rightContainer:{},center:{},left:{},right:{},top:{},bottom:{},border:{},scrollTop:0,scrollTopMin:0},this.on("rangechange",(function(){!0===i.initialDrawDone&&i._redraw()})),this.on("rangechanged",(function(){i.initialRangeChangeDone||(i.initialRangeChangeDone=!0)})),this.on("touch",m8(t=this._onTouch).call(t,this)),this.on("panmove",m8(n=this._onDrag).call(n,this));var o=this;this._origRedraw=m8(r=this._redraw).call(r,this),this._redraw=qfe.throttle(this._origRedraw),this.on("_change",(function(e){o.itemSet&&o.itemSet.initialItemSetDrawn&&e&&1==e.queue?o._redraw():o._origRedraw()})),this.hammer=new Ame(this.dom.root);var a=this.hammer.get("pinch").set({enable:!0});a&&function(e){e.getTouchAction=function(){return["pan-y"]}}(a),this.hammer.get("pan").set({threshold:5,direction:Ame.DIRECTION_ALL}),this.timelineListeners={};var s,l,u=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];function c(e){this.isActive()&&this.emit("mousewheel",e);var t=0,n=0;if("detail"in e&&(n=-1*e.detail),"wheelDelta"in e&&(n=e.wheelDelta),"wheelDeltaY"in e&&(n=e.wheelDeltaY),"wheelDeltaX"in e&&(t=-1*e.wheelDeltaX),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=-1*n,n=0),"deltaY"in e&&(n=-1*e.deltaY),"deltaX"in e&&(t=e.deltaX),e.deltaMode&&(1===e.deltaMode?(t*=40,n*=40):(t*=40,n*=800)),this.options.preferZoom){if(!this.options.zoomKey||e[this.options.zoomKey])return}else if(this.options.zoomKey&&e[this.options.zoomKey])return;if(this.options.verticalScroll||this.options.horizontalScroll)if(this.options.verticalScroll&&Math.abs(n)>=Math.abs(t)){var r=this.props.scrollTop,i=r+n;if(this.isActive())this._setScrollTop(i)!==r&&(this._redraw(),this.emit("scroll",e),e.preventDefault())}else if(this.options.horizontalScroll){var o=(Math.abs(t)>=Math.abs(n)?t:n)/120*(this.range.end-this.range.start)/20,a=this.range.start+o,s=this.range.end+o,l={animation:!1,byUser:!0,event:e};this.range.setRange(a,s,l),e.preventDefault()}}O8(u).call(u,(function(e){var t=function(t){o.isActive()&&o.emit(e,t)};o.hammer.on(e,t),o.timelineListeners[e]=t})),Ime(this.hammer,(function(e){o.emit("touch",e)})),s=this.hammer,(l=function(e){o.emit("release",e)}).inputHandler=function(e){e.isFinal&&l(e)},s.on("hammer.input",l.inputHandler);var d="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":this.dom.centerContainer.addEventListener?"DOMMouseScroll":"onmousewheel";function h(e){if(o.options.verticalScroll&&(e.preventDefault(),o.isActive())){var t=-e.target.scrollTop;o._setScrollTop(t),o._redraw(),o.emit("scrollSide",e)}}this.dom.top.addEventListener,this.dom.bottom.addEventListener,this.dom.centerContainer.addEventListener(d,m8(c).call(c,this),!1),this.dom.top.addEventListener(d,m8(c).call(c,this),!1),this.dom.bottom.addEventListener(d,m8(c).call(c,this),!1),this.dom.left.parentNode.addEventListener("scroll",m8(h).call(h,this)),this.dom.right.parentNode.addEventListener("scroll",m8(h).call(h,this));var p=!1;function f(e){var t;if(e.preventDefault&&(o.emit("dragover",o.getEventProperties(e)),e.preventDefault()),Qee(t=e.target.className).call(t,"timeline")>-1&&!p)return e.dataTransfer.dropEffect="move",p=!0,!1}function m(e){e.preventDefault&&e.preventDefault(),e.stopPropagation&&e.stopPropagation();try{var t=JSON.parse(e.dataTransfer.getData("text"));if(!t||!t.content)return}catch(e){return!1}return p=!1,e.center={x:e.clientX,y:e.clientY},"item"!==t.target?o.itemSet._onAddItem(e):o.itemSet._onDropObjectOnItem(e),o.emit("drop",o.getEventProperties(e)),!1}if(this.dom.center.addEventListener("dragover",m8(f).call(f,this),!1),this.dom.center.addEventListener("drop",m8(m).call(m,this),!1),this.customTimes=[],this.touch={},this.redrawCount=0,this.initialDrawDone=!1,this.initialRangeChangeDone=!1,!e)throw new Error("No container provided");e.appendChild(this.dom.root),e.appendChild(this.dom.loadingScreen)}},{key:"setOptions",value:function(e){var t;if(e){if(qfe.selectiveExtend(["width","height","minHeight","maxHeight","autoResize","start","end","clickToUse","dataAttributes","hiddenDates","locale","locales","moment","preferZoom","rtl","zoomKey","horizontalScroll","verticalScroll","longSelectPressTime","snap"],this.options,e),this.dom.rollingModeBtn.style.visibility="hidden",this.options.rtl&&(this.dom.container.style.direction="rtl",this.dom.backgroundVertical.className="vis-panel vis-background vis-vertical-rtl"),this.options.verticalScroll&&(this.options.rtl?this.dom.rightContainer.className="vis-panel vis-right vis-vertical-scroll":this.dom.leftContainer.className="vis-panel vis-left vis-vertical-scroll"),"object"!==w6(this.options.orientation)&&(this.options.orientation={item:void 0,axis:void 0}),"orientation"in e&&("string"==typeof e.orientation?this.options.orientation={item:e.orientation,axis:e.orientation}:"object"===w6(e.orientation)&&("item"in e.orientation&&(this.options.orientation.item=e.orientation.item),"axis"in e.orientation&&(this.options.orientation.axis=e.orientation.axis))),"both"===this.options.orientation.axis){if(!this.timeAxis2){var n=this.timeAxis2=new jme(this.body,this.options);n.setOptions=function(e){var t=e?qfe.extend({},e):{};t.orientation="top",jme.prototype.setOptions.call(n,t)},this.components.push(n)}}else if(this.timeAxis2){var r,i,o=Qee(r=this.components).call(r,this.timeAxis2);if(-1!==o)s7(i=this.components).call(i,o,1);this.timeAxis2.destroy(),this.timeAxis2=null}"function"==typeof e.drawPoints&&(e.drawPoints={onRender:e.drawPoints}),"hiddenDates"in this.options&&vme(this.options.moment,this.body,this.options.hiddenDates),"clickToUse"in e&&(e.clickToUse?this.activator||(this.activator=new Fme(this.dom.root)):this.activator&&(this.activator.destroy(),delete this.activator)),this._initAutoResize()}if(O8(t=this.components).call(t,(function(t){return t.setOptions(e)})),"configure"in e){var a;this.configurator||(this.configurator=this._createConfigurator()),this.configurator.setOptions(e.configure);var s=qfe.deepExtend({},this.options);O8(a=this.components).call(a,(function(e){qfe.deepExtend(s,e.options)})),this.configurator.setModuleOptions({global:s})}this._redraw()}},{key:"isActive",value:function(){return!this.activator||this.activator.active}},{key:"destroy",value:function(){var e;for(var t in this.setItems(null),this.setGroups(null),this.off(),this._stopAutoResize(),this.dom.root.parentNode&&this.dom.root.parentNode.removeChild(this.dom.root),this.dom=null,this.activator&&(this.activator.destroy(),delete this.activator),this.timelineListeners)this.timelineListeners.hasOwnProperty(t)&&delete this.timelineListeners[t];this.timelineListeners=null,this.hammer&&this.hammer.destroy(),this.hammer=null,O8(e=this.components).call(e,(function(e){return e.destroy()})),this.body=null}},{key:"setCustomTime",value:function(e,t){var n,r=nee(n=this.customTimes).call(n,(function(e){return t===e.options.id}));if(0===r.length)throw new Error("No custom time bar found with id ".concat(nte(t)));r.length>0&&r[0].setCustomTime(e)}},{key:"getCustomTime",value:function(e){var t,n=nee(t=this.customTimes).call(t,(function(t){return t.options.id===e}));if(0===n.length)throw new Error("No custom time bar found with id ".concat(nte(e)));return n[0].getCustomTime()}},{key:"setCustomTimeMarker",value:function(e,t,n){var r,i=nee(r=this.customTimes).call(r,(function(e){return e.options.id===t}));if(0===i.length)throw new Error("No custom time bar found with id ".concat(nte(t)));i.length>0&&i[0].setCustomMarker(e,n)}},{key:"setCustomTimeTitle",value:function(e,t){var n,r=nee(n=this.customTimes).call(n,(function(e){return e.options.id===t}));if(0===r.length)throw new Error("No custom time bar found with id ".concat(nte(t)));if(r.length>0)return r[0].setCustomTitle(e)}},{key:"getEventProperties",value:function(e){return{event:e}}},{key:"addCustomTime",value:function(e,t){var n,r=void 0!==e?qfe.convert(e,"Date"):new Date,i=Zde(n=this.customTimes).call(n,(function(e){return e.options.id===t}));if(i)throw new Error("A custom time with id ".concat(nte(t)," already exists"));var o=new tve(this.body,qfe.extend({},this.options,{time:r,id:t,snap:this.itemSet?this.itemSet.options.snap:this.options.snap}));return this.customTimes.push(o),this.components.push(o),this._redraw(),t}},{key:"removeCustomTime",value:function(e){var t,n=this,r=nee(t=this.customTimes).call(t,(function(t){return t.options.id===e}));if(0===r.length)throw new Error("No custom time bar found with id ".concat(nte(e)));O8(r).call(r,(function(e){var t,r,i,o;s7(t=n.customTimes).call(t,Qee(r=n.customTimes).call(r,e),1),s7(i=n.components).call(i,Qee(o=n.components).call(o,e),1),e.destroy()}))}},{key:"getVisibleItems",value:function(){return this.itemSet&&this.itemSet.getVisibleItems()||[]}},{key:"getItemsAtCurrentTime",value:function(e){return this.time=e,this.itemSet&&this.itemSet.getItemsAtCurrentTime(this.time)||[]}},{key:"getVisibleGroups",value:function(){return this.itemSet&&this.itemSet.getVisibleGroups()||[]}},{key:"fit",value:function(e,t){var n=this.getDataRange();if(null!==n.min||null!==n.max){var r=n.max-n.min,i=new Date(n.min.valueOf()-.01*r),o=new Date(n.max.valueOf()+.01*r),a=!e||void 0===e.animation||e.animation;this.range.setRange(i,o,{animation:a},t)}}},{key:"getDataRange",value:function(){throw new Error("Cannot invoke abstract method getDataRange")}},{key:"setWindow",value:function(e,t,n,r){var i,o;"function"==typeof arguments[2]&&(r=arguments[2],n={}),1==arguments.length?(i=void 0===(o=arguments[0]).animation||o.animation,this.range.setRange(o.start,o.end,{animation:i})):2==arguments.length&&"function"==typeof arguments[1]?(r=arguments[1],i=void 0===(o=arguments[0]).animation||o.animation,this.range.setRange(o.start,o.end,{animation:i},r)):(i=!n||void 0===n.animation||n.animation,this.range.setRange(e,t,{animation:i},r))}},{key:"moveTo",value:function(e,t,n){"function"==typeof arguments[1]&&(n=arguments[1],t={});var r=this.range.end-this.range.start,i=qfe.convert(e,"Date").valueOf(),o=i-r/2,a=i+r/2,s=!t||void 0===t.animation||t.animation;this.range.setRange(o,a,{animation:s},n)}},{key:"getWindow",value:function(){var e=this.range.getRange();return{start:new Date(e.start),end:new Date(e.end)}}},{key:"zoomIn",value:function(e,t,n){if(!(!e||e<0||e>1)){"function"==typeof arguments[1]&&(n=arguments[1],t={});var r=this.getWindow(),i=r.start.valueOf(),o=r.end.valueOf(),a=o-i,s=(a-a/(1+e))/2,l=i+s,u=o-s;this.setWindow(l,u,t,n)}}},{key:"zoomOut",value:function(e,t,n){if(!(!e||e<0||e>1)){"function"==typeof arguments[1]&&(n=arguments[1],t={});var r=this.getWindow(),i=r.start.valueOf(),o=r.end.valueOf(),a=o-i,s=i-a*e/2,l=o+a*e/2;this.setWindow(s,l,t,n)}}},{key:"redraw",value:function(){this._redraw()}},{key:"_redraw",value:function(){var e;this.redrawCount++;var t=this.dom;if(t&&t.container&&0!=t.root.offsetWidth){var n=!1,r=this.options,i=this.props;gme(this.options.moment,this.body,this.options.hiddenDates),"top"==r.orientation?(qfe.addClassName(t.root,"vis-top"),qfe.removeClassName(t.root,"vis-bottom")):(qfe.removeClassName(t.root,"vis-top"),qfe.addClassName(t.root,"vis-bottom")),r.rtl?(qfe.addClassName(t.root,"vis-rtl"),qfe.removeClassName(t.root,"vis-ltr")):(qfe.addClassName(t.root,"vis-ltr"),qfe.removeClassName(t.root,"vis-rtl")),t.root.style.maxHeight=qfe.option.asSize(r.maxHeight,""),t.root.style.minHeight=qfe.option.asSize(r.minHeight,""),t.root.style.width=qfe.option.asSize(r.width,"");var o=t.root.offsetWidth;i.border.left=1,i.border.right=1,i.border.top=1,i.border.bottom=1,i.center.height=t.center.offsetHeight,i.left.height=t.left.offsetHeight,i.right.height=t.right.offsetHeight,i.top.height=t.top.clientHeight||-i.border.top,i.bottom.height=Math.round(t.bottom.getBoundingClientRect().height)||t.bottom.clientHeight||-i.border.bottom;var a=Math.max(i.left.height,i.center.height,i.right.height),s=i.top.height+a+i.bottom.height+i.border.top+i.border.bottom;t.root.style.height=qfe.option.asSize(r.height,"".concat(s,"px")),i.root.height=t.root.offsetHeight,i.background.height=i.root.height;var l=i.root.height-i.top.height-i.bottom.height;i.centerContainer.height=l,i.leftContainer.height=l,i.rightContainer.height=i.leftContainer.height,i.root.width=o,i.background.width=i.root.width,this.initialDrawDone||(i.scrollbarWidth=qfe.getScrollBarWidth());var u=t.leftContainer.clientWidth,c=t.rightContainer.clientWidth;r.verticalScroll?r.rtl?(i.left.width=u||-i.border.left,i.right.width=c+i.scrollbarWidth||-i.border.right):(i.left.width=u+i.scrollbarWidth||-i.border.left,i.right.width=c||-i.border.right):(i.left.width=u||-i.border.left,i.right.width=c||-i.border.right),this._setDOM();var d=this._updateScrollTop();"top"!=r.orientation.item&&(d+=Math.max(i.centerContainer.height-i.center.height-i.border.top-i.border.bottom,0)),t.center.style.transform="translateY(".concat(d,"px)");var h=0==i.scrollTop?"hidden":"",p=i.scrollTop==i.scrollTopMin?"hidden":"";t.shadowTop.style.visibility=h,t.shadowBottom.style.visibility=p,t.shadowTopLeft.style.visibility=h,t.shadowBottomLeft.style.visibility=p,t.shadowTopRight.style.visibility=h,t.shadowBottomRight.style.visibility=p,r.verticalScroll&&(t.rightContainer.className="vis-panel vis-right vis-vertical-scroll",t.leftContainer.className="vis-panel vis-left vis-vertical-scroll",t.shadowTopRight.style.visibility="hidden",t.shadowBottomRight.style.visibility="hidden",t.shadowTopLeft.style.visibility="hidden",t.shadowBottomLeft.style.visibility="hidden",t.left.style.top="0px",t.right.style.top="0px"),(!r.verticalScroll||i.center.height<i.centerContainer.height)&&(t.left.style.top="".concat(d,"px"),t.right.style.top="".concat(d,"px"),t.rightContainer.className=t.rightContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),t.leftContainer.className=t.leftContainer.className.replace(new RegExp("(?:^|\\s)vis-vertical-scroll(?:\\s|$)")," "),i.left.width=u||-i.border.left,i.right.width=c||-i.border.right,this._setDOM());var f=i.center.height>i.centerContainer.height;this.hammer.get("pan").set({direction:f?Ame.DIRECTION_ALL:Ame.DIRECTION_HORIZONTAL}),this.hammer.get("press").set({time:this.options.longSelectPressTime}),O8(e=this.components).call(e,(function(e){n=e.redraw()||n}));if(n){if(this.redrawCount<5)return void this.body.emitter.emit("_change");console.log("WARNING: infinite loop in redraw?")}else this.redrawCount=0;this.body.emitter.emit("changed")}}},{key:"_setDOM",value:function(){var e=this.props,t=this.dom;e.leftContainer.width=e.left.width,e.rightContainer.width=e.right.width;var n=e.root.width-e.left.width-e.right.width;e.center.width=n,e.centerContainer.width=n,e.top.width=n,e.bottom.width=n,t.background.style.height="".concat(e.background.height,"px"),t.backgroundVertical.style.height="".concat(e.background.height,"px"),t.backgroundHorizontal.style.height="".concat(e.centerContainer.height,"px"),t.centerContainer.style.height="".concat(e.centerContainer.height,"px"),t.leftContainer.style.height="".concat(e.leftContainer.height,"px"),t.rightContainer.style.height="".concat(e.rightContainer.height,"px"),t.background.style.width="".concat(e.background.width,"px"),t.backgroundVertical.style.width="".concat(e.centerContainer.width,"px"),t.backgroundHorizontal.style.width="".concat(e.background.width,"px"),t.centerContainer.style.width="".concat(e.center.width,"px"),t.top.style.width="".concat(e.top.width,"px"),t.bottom.style.width="".concat(e.bottom.width,"px"),t.background.style.left="0",t.background.style.top="0",t.backgroundVertical.style.left="".concat(e.left.width+e.border.left,"px"),t.backgroundVertical.style.top="0",t.backgroundHorizontal.style.left="0",t.backgroundHorizontal.style.top="".concat(e.top.height,"px"),t.centerContainer.style.left="".concat(e.left.width,"px"),t.centerContainer.style.top="".concat(e.top.height,"px"),t.leftContainer.style.left="0",t.leftContainer.style.top="".concat(e.top.height,"px"),t.rightContainer.style.left="".concat(e.left.width+e.center.width,"px"),t.rightContainer.style.top="".concat(e.top.height,"px"),t.top.style.left="".concat(e.left.width,"px"),t.top.style.top="0",t.bottom.style.left="".concat(e.left.width,"px"),t.bottom.style.top="".concat(e.top.height+e.centerContainer.height,"px"),t.center.style.left="0",t.left.style.left="0",t.right.style.left="0"}},{key:"setCurrentTime",value:function(e){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");this.currentTime.setCurrentTime(e)}},{key:"getCurrentTime",value:function(){if(!this.currentTime)throw new Error("Option showCurrentTime must be true");return this.currentTime.getCurrentTime()}},{key:"_toTime",value:function(e){return bme(this,e,this.props.center.width)}},{key:"_toGlobalTime",value:function(e){return bme(this,e,this.props.root.width)}},{key:"_toScreen",value:function(e){return yme(this,e,this.props.center.width)}},{key:"_toGlobalScreen",value:function(e){return yme(this,e,this.props.root.width)}},{key:"_initAutoResize",value:function(){1==this.options.autoResize?this._startAutoResize():this._stopAutoResize()}},{key:"_startAutoResize",value:function(){var e=this;this._stopAutoResize(),this._onResize=function(){if(1==e.options.autoResize){if(e.dom.root){var t=e.dom.root.offsetHeight,n=e.dom.root.offsetWidth;n==e.props.lastWidth&&t==e.props.lastHeight||(e.props.lastWidth=n,e.props.lastHeight=t,e.props.scrollbarWidth=qfe.getScrollBarWidth(),e.body.emitter.emit("_change"))}}else e._stopAutoResize()},window.addEventListener("resize",this._onResize),e.dom.root&&(e.props.lastWidth=e.dom.root.offsetWidth,e.props.lastHeight=e.dom.root.offsetHeight),this.watchTimer=Dme(this._onResize,1e3)}},{key:"_stopAutoResize",value:function(){this.watchTimer&&(clearInterval(this.watchTimer),this.watchTimer=void 0),this._onResize&&(window.removeEventListener("resize",this._onResize),this._onResize=null)}},{key:"_onTouch",value:function(e){this.touch.allowDragging=!0,this.touch.initialScrollTop=this.props.scrollTop}},{key:"_onPinch",value:function(e){this.touch.allowDragging=!1}},{key:"_onDrag",value:function(e){if(e&&this.touch.allowDragging){var t=e.deltaY,n=this._getScrollTop(),r=this._setScrollTop(this.touch.initialScrollTop+t);this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),r!=n&&this.emit("verticalDrag")}}},{key:"_setScrollTop",value:function(e){return this.props.scrollTop=e,this._updateScrollTop(),this.props.scrollTop}},{key:"_updateScrollTop",value:function(){var e=Math.min(this.props.centerContainer.height-this.props.border.top-this.props.border.bottom-this.props.center.height,0);return e!=this.props.scrollTopMin&&("top"!=this.options.orientation.item&&(this.props.scrollTop+=e-this.props.scrollTopMin),this.props.scrollTopMin=e),this.props.scrollTop>0&&(this.props.scrollTop=0),this.props.scrollTop<e&&(this.props.scrollTop=e),this.options.verticalScroll&&(this.dom.left.parentNode.scrollTop=-this.props.scrollTop,this.dom.right.parentNode.scrollTop=-this.props.scrollTop),this.props.scrollTop}},{key:"_getScrollTop",value:function(){return this.props.scrollTop}},{key:"_createConfigurator",value:function(){throw new Error("Cannot invoke abstract method _createConfigurator")}}]),e}();function rve(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}Nte(nve.prototype);var ive=function(){Pie(t,ome);var e=rve(t);function t(n,r){var i,o;p2(this,t),(o=e.call(this)).body=n,o.defaultOptions={rtl:!1,showCurrentTime:!0,alignCurrentTime:void 0,moment:Ape,locales:Jme,locale:"en"},o.options=qfe.extend({},o.defaultOptions),o.setOptions(r),o.options.locales=qfe.extend({},Jme,o.options.locales);var a=o.defaultOptions.locales[o.defaultOptions.locale];return O8(i=V4(o.options.locales)).call(i,(function(e){o.options.locales[e]=qfe.extend({},a,o.options.locales[e])})),o.offset=0,o._create(),o}return k6(t,[{key:"_create",value:function(){var e=document.createElement("div");e.className="vis-current-time",e.style.position="absolute",e.style.top="0px",e.style.height="100%",this.bar=e}},{key:"destroy",value:function(){this.options.showCurrentTime=!1,this.redraw(),this.body=null}},{key:"setOptions",value:function(e){e&&qfe.selectiveExtend(["rtl","showCurrentTime","alignCurrentTime","moment","locale","locales"],this.options,e)}},{key:"redraw",value:function(){if(this.options.showCurrentTime){var e,t,n=this.body.dom.backgroundVertical;this.bar.parentNode!=n&&(this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),n.appendChild(this.bar),this.start());var r=this.options.moment(X4()+this.offset);this.options.alignCurrentTime&&(r=r.startOf(this.options.alignCurrentTime));var i=this.body.util.toScreen(r),o=this.options.locales[this.options.locale];o||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),o=this.options.locales.en);var a=E4(e=E4(t="".concat(o.current," ")).call(t,o.time,": ")).call(e,r.format("dddd, MMMM Do YYYY, H:mm:ss"));a=a.charAt(0).toUpperCase()+a.substring(1),this.options.rtl?this.bar.style.transform="translateX(".concat(-1*i,"px)"):this.bar.style.transform="translateX(".concat(i,"px)"),this.bar.title=a}else this.bar.parentNode&&this.bar.parentNode.removeChild(this.bar),this.stop();return!1}},{key:"start",value:function(){var e=this;!function t(){e.stop();var n=1/e.body.range.conversion(e.body.domProps.center.width).scale/10;n<30&&(n=30),n>1e3&&(n=1e3),e.redraw(),e.body.emitter.emit("currentTimeTick"),e.currentTimeTimer=_te(t,n)}()}},{key:"stop",value:function(){void 0!==this.currentTimeTimer&&(clearTimeout(this.currentTimeTimer),delete this.currentTimeTimer)}},{key:"setCurrentTime",value:function(e){var t=qfe.convert(e,"Date").valueOf(),n=X4();this.offset=t-n,this.redraw()}},{key:"getCurrentTime",value:function(){return new Date(X4()+this.offset)}}]),t}(),ove=yZ,ave=N9.find,sve="find",lve=!0;sve in[]&&Array(1)[sve]((function(){lve=!1})),ove({target:"Array",proto:!0,forced:lve},{find:function(e){return ave(this,e,arguments.length>1?arguments[1]:void 0)}});var uve=U6("Array").find,cve=sX,dve=uve,hve=Array.prototype,pve=function(e){var t=e.find;return e===hve||cve(hve,e)&&t===hve.find?dve:t},fve=qq(pve),mve=yZ,vve=N9.findIndex,gve="findIndex",yve=!0;gve in[]&&Array(1)[gve]((function(){yve=!1})),mve({target:"Array",proto:!0,forced:yve},{findIndex:function(e){return vve(this,e,arguments.length>1?arguments[1]:void 0)}});var bve=U6("Array").findIndex,wve=sX,xve=bve,_ve=Array.prototype,Sve=function(e){var t=e.findIndex;return e===_ve||wve(_ve,e)&&t===_ve.findIndex?xve:t},kve=qq(Sve);function Tve(e,t){var n=void 0!==x4&&h2(e)||e["@@iterator"];if(!n){if(j4(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return Cve(e,t);var r=O4(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return G1(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cve(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Cve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Eve=.001;function Ove(e,t,n,r){return null===Ive(e,t.item,!1,(function(e){return e.stack&&(n||null===e.top)}),(function(e){return e.stack}),(function(e){return t.axis}),r)}function Dve(e,t,n){var r=Ive(e,t.item,!1,(function(e){return e.stack}),(function(e){return!0}),(function(e){return e.baseTop}));n.height=r-n.top+.5*t.item.vertical}function Mve(e,t,n,r){for(var i=0;i<e.length;i++)if(null==e[i].data.subgroup)e[i].top=t.item.vertical;else if(void 0!==e[i].data.subgroup&&r){var o=0;for(var a in n)n.hasOwnProperty(a)&&1==n[a].visible&&n[a].index<n[e[i].data.subgroup].index&&(o+=n[a].height,n[e[i].data.subgroup].top=o);e[i].top=o+.5*t.item.vertical}r||function(e,t,n){var r;Ive(Gde(r=mee(n)).call(r,(function(e,t){return e.index>t.index?1:e.index<t.index?-1:0})),{vertical:0},!0,(function(e){return!0}),(function(e){return!0}),(function(e){return 0}));for(var i=0;i<e.length;i++)void 0!==e[i].data.subgroup&&(e[i].top=n[e[i].data.subgroup].top+.5*t.item.vertical)}(e,t,n)}function Ave(e,t,n){var r=!1,i=[];for(var o in n)n[o].hasOwnProperty("index")?i[n[o].index]=o:i.push(o);for(var a=0;a<i.length;a++)if(o=i[a],n.hasOwnProperty(o)){for(var s in r=r||n[o].stack,n[o].top=0,n)n[s].visible&&n[o].index>n[s].index&&(n[o].top+=n[s].height);for(var l=e[o],u=0;u<l.length;u++)void 0!==l[u].data.subgroup&&(l[u].top=n[l[u].data.subgroup].top+.5*t.item.vertical,n[o].stack&&(l[u].baseTop=l[u].top));r&&n[o].stack&&Dve(e[o],t,n[o])}}function Ive(e,t,n,r,o,a,s){var l=function(e){return e.start},u=function(e){return e.end};if(!n){var c=!(!e[0]||!e[0].options.rtl);l=c?function(e){return e.right}:function(e){return e.left},u=function(e){return l(e)+e.width+t.horizontal}}var d,h=[],p=[],f=null,m=0,v=Tve(e);try{var g=function(){var e=d.value;if(r(e))h.push(e);else if(o(e)){var t=l(e);null!==f&&t<f-Eve&&(m=0),f=t,m=Pve(p,(function(e){return l(e)-Eve>t}),m),s7(p).call(p,m,0,e),m++}};for(v.s();!(d=v.n()).done;)g()}catch(e){v.e(e)}finally{v.f()}f=null;var y=null;m=0;for(var b,w=0,x=0,_=0,S=function(){var e,n,r=h.shift();r.top=a(r);var c=l(r),d=u(r);null!==f&&c<f-Eve&&(w=0,x=0,m=0,y=null),f=c,w=Pve(p,(function(e){return c<u(e)-Eve}),w),(null===y||y<d-Eve)&&(x=Pve(p,(function(e){return d<l(e)-Eve}),Math.max(w,x))),null!==y&&y-Eve>d&&(x=function(e,t,n,r){n||(n=0);r||(r=e.length);for(i=r-1;i>=n;i--)if(t(e[i]))return i;return n-1}(p,(function(e){return d+Eve>=l(e)}),w,x)+1);for(var v,g,b,S=Gde(e=nee(n=O4(p).call(p,w,x)).call(n,(function(e){return c<u(e)-Eve&&d-Eve>l(e)}))).call(e,(function(e,t){return e.top-t.top})),k=0;k<S.length;k++){var T=S[k];g=T,b=t,(v=r).top-b.vertical+Eve<g.top+g.height&&v.top+v.height+b.vertical-Eve>g.top&&(r.top=T.top+T.height+t.vertical)}o(r)&&(m=Pve(p,(function(e){return l(e)-Eve>c}),m),s7(p).call(p,m,0,r),m++);var C=r.top+r.height;if(C>_&&(_=C),s&&s())return{v:null}};h.length>0;)if(b=S())return b.v;return _}function Pve(e,t,n){var r;n||(n=0);var i=kve(r=O4(e).call(e,n)).call(r,t);return-1===i?e.length:i+n}var Rve="__background__",Nve=function(){function e(t,n,r){var i=this;if(p2(this,e),this.groupId=t,this.subgroups={},this.subgroupStack={},this.subgroupStackAll=!1,this.subgroupVisibility={},this.doInnerStack=!1,this.shouldBailStackItems=!1,this.subgroupIndex=0,this.subgroupOrderer=n&&n.subgroupOrder,this.itemSet=r,this.isVisible=null,this.stackDirty=!0,this._disposeCallbacks=[],n&&n.nestedGroups&&(this.nestedGroups=n.nestedGroups,0==n.showNested?this.showNested=!1:this.showNested=!0),n&&n.subgroupStack)if("boolean"==typeof n.subgroupStack)this.doInnerStack=n.subgroupStack,this.subgroupStackAll=n.subgroupStack;else for(var o in n.subgroupStack)this.subgroupStack[o]=n.subgroupStack[o],this.doInnerStack=this.doInnerStack||n.subgroupStack[o];n&&n.heightMode?this.heightMode=n.heightMode:this.heightMode=r.options.groupHeightMode,this.nestedInGroup=null,this.dom={},this.props={label:{width:0,height:0}},this.className=null,this.items={},this.visibleItems=[],this.itemsInRange=[],this.orderedItems={byStart:[],byEnd:[]},this.checkRangedItems=!1;var a=function(){i.checkRangedItems=!0};this.itemSet.body.emitter.on("checkRangedItems",a),this._disposeCallbacks.push((function(){i.itemSet.body.emitter.off("checkRangedItems",a)})),this._create(),this.setData(n)}return k6(e,[{key:"_create",value:function(){var e=document.createElement("div");this.itemSet.options.groupEditable.order?e.className="vis-label draggable":e.className="vis-label",this.dom.label=e;var t=document.createElement("div");t.className="vis-inner",e.appendChild(t),this.dom.inner=t;var n=document.createElement("div");n.className="vis-group",n["vis-group"]=this,this.dom.foreground=n,this.dom.background=document.createElement("div"),this.dom.background.className="vis-group",this.dom.axis=document.createElement("div"),this.dom.axis.className="vis-group",this.dom.marker=document.createElement("div"),this.dom.marker.style.visibility="hidden",this.dom.marker.style.position="absolute",this.dom.marker.innerHTML="",this.dom.background.appendChild(this.dom.marker)}},{key:"setData",value:function(e){if(!this.itemSet.groupTouchParams.isDragging){var t,n,r;if(e&&e.subgroupVisibility)for(var i in e.subgroupVisibility)this.subgroupVisibility[i]=e.subgroupVisibility[i];if(this.itemSet.options&&this.itemSet.options.groupTemplate)t=(n=m8(r=this.itemSet.options.groupTemplate).call(r,this))(e,this.dom.inner);else t=e&&e.content;if(t instanceof Element){for(;this.dom.inner.firstChild;)this.dom.inner.removeChild(this.dom.inner.firstChild);this.dom.inner.appendChild(t)}else t instanceof Object&&t.isReactComponent||(t instanceof Object?n(e,this.dom.inner):this.dom.inner.innerHTML=null!=t?qfe.xss(t):qfe.xss(this.groupId||""));this.dom.label.title=e&&e.title||"",this.dom.inner.firstChild?qfe.removeClassName(this.dom.inner,"vis-hidden"):qfe.addClassName(this.dom.inner,"vis-hidden"),e&&e.nestedGroups?(this.nestedGroups&&this.nestedGroups==e.nestedGroups||(this.nestedGroups=e.nestedGroups),void 0===e.showNested&&void 0!==this.showNested||(0==e.showNested?this.showNested=!1:this.showNested=!0),qfe.addClassName(this.dom.label,"vis-nesting-group"),this.showNested?(qfe.removeClassName(this.dom.label,"collapsed"),qfe.addClassName(this.dom.label,"expanded")):(qfe.removeClassName(this.dom.label,"expanded"),qfe.addClassName(this.dom.label,"collapsed"))):this.nestedGroups&&(this.nestedGroups=null,qfe.removeClassName(this.dom.label,"collapsed"),qfe.removeClassName(this.dom.label,"expanded"),qfe.removeClassName(this.dom.label,"vis-nesting-group")),e&&(e.treeLevel||e.nestedInGroup)?(qfe.addClassName(this.dom.label,"vis-nested-group"),e.treeLevel?qfe.addClassName(this.dom.label,"vis-group-level-"+e.treeLevel):qfe.addClassName(this.dom.label,"vis-group-level-unknown-but-gte1")):qfe.addClassName(this.dom.label,"vis-group-level-0");var o=e&&e.className||null;o!=this.className&&(this.className&&(qfe.removeClassName(this.dom.label,this.className),qfe.removeClassName(this.dom.foreground,this.className),qfe.removeClassName(this.dom.background,this.className),qfe.removeClassName(this.dom.axis,this.className)),qfe.addClassName(this.dom.label,o),qfe.addClassName(this.dom.foreground,o),qfe.addClassName(this.dom.background,o),qfe.addClassName(this.dom.axis,o),this.className=o),this.style&&(qfe.removeCssText(this.dom.label,this.style),this.style=null),e&&e.style&&(qfe.addCssText(this.dom.label,e.style),this.style=e.style)}}},{key:"getLabelWidth",value:function(){return this.props.label.width}},{key:"_didMarkerHeightChange",value:function(){var e=this.dom.marker.clientHeight;if(e!=this.lastMarkerHeight){this.lastMarkerHeight=e;var t={},n=0;if(O8(qfe).call(qfe,this.items,(function(e,r){if(e.dirty=!0,e.displayed){t[r]=e.redraw(!0),n=t[r].length}})),n>0)for(var r=function(e){O8(qfe).call(qfe,t,(function(t){t[e]()}))},i=0;i<n;i++)r(i);return!0}return!1}},{key:"_calculateGroupSizeAndPosition",value:function(){var e=this.dom.foreground,t=e.offsetTop,n=e.offsetLeft,r=e.offsetWidth;this.top=t,this.right=n,this.width=r}},{key:"_shouldBailItemsRedraw",value:function(){var e=this,t=this.itemSet.options.onTimeout,n={relativeBailingTime:this.itemSet.itemsSettingTime,bailTimeMs:t&&t.timeoutMs,userBailFunction:t&&t.callback,shouldBailStackItems:this.shouldBailStackItems},r=null;if(!this.itemSet.initialDrawDone){if(n.shouldBailStackItems)return!0;Math.abs(X4()-new Date(n.relativeBailingTime))>n.bailTimeMs&&(n.userBailFunction&&null==this.itemSet.userContinueNotBail?n.userBailFunction((function(t){e.itemSet.userContinueNotBail=t,r=!t})):r=0==e.itemSet.userContinueNotBail)}return r}},{key:"_redrawItems",value:function(e,t,n,r){var i=this;if(e||this.stackDirty||this.isVisible&&!t){var o,a,s,l,u,c,d={byEnd:nee(o=this.orderedItems.byEnd).call(o,(function(e){return!e.isCluster})),byStart:nee(a=this.orderedItems.byStart).call(a,(function(e){return!e.isCluster}))},h={byEnd:w4(new ode(nee(s=z4(l=this.orderedItems.byEnd).call(l,(function(e){return e.cluster}))).call(s,(function(e){return!!e})))),byStart:w4(new ode(nee(u=z4(c=this.orderedItems.byStart).call(c,(function(e){return e.cluster}))).call(u,(function(e){return!!e}))))},p=function(){var e,t,n,o=i._updateItemsInRange(d,nee(e=i.visibleItems).call(e,(function(e){return!e.isCluster})),r),a=i._updateClustersInRange(h,nee(t=i.visibleItems).call(t,(function(e){return e.isCluster})),r);return E4(n=[]).call(n,w4(o),w4(a))},f=function(e){var t={},n=function(n){var r,o=nee(r=i.visibleItems).call(r,(function(e){return e.data.subgroup===n}));t[n]=e?Gde(o).call(o,(function(t,n){return e(t.data,n.data)})):o};for(var r in i.subgroups)n(r);return t};if("function"==typeof this.itemSet.options.order){var m=this;if(this.doInnerStack&&this.itemSet.options.stackSubgroups){Ave(f(this.itemSet.options.order),n,this.subgroups),this.visibleItems=p(),this._updateSubGroupHeights(n)}else{var v,g,y,b;this.visibleItems=p(),this._updateSubGroupHeights(n);var w=Gde(v=nee(g=O4(y=this.visibleItems).call(y)).call(g,(function(e){return e.isCluster||!e.isCluster&&!e.cluster}))).call(v,(function(e,t){return m.itemSet.options.order(e.data,t.data)}));this.shouldBailStackItems=Ove(w,n,!0,m8(b=this._shouldBailItemsRedraw).call(b,this))}}else{var x;if(this.visibleItems=p(),this._updateSubGroupHeights(n),this.itemSet.options.stack)if(this.doInnerStack&&this.itemSet.options.stackSubgroups)Ave(f(),n,this.subgroups);else this.shouldBailStackItems=Ove(this.visibleItems,n,!0,m8(x=this._shouldBailItemsRedraw).call(x,this));else Mve(this.visibleItems,n,this.subgroups,this.itemSet.options.stackSubgroups)}for(var _=0;_<this.visibleItems.length;_++)this.visibleItems[_].repositionX(),void 0!==this.subgroupVisibility[this.visibleItems[_].data.subgroup]&&(this.subgroupVisibility[this.visibleItems[_].data.subgroup]||this.visibleItems[_].hide());this.itemSet.options.cluster&&O8(qfe).call(qfe,this.items,(function(e){e.cluster&&e.displayed&&e.hide()})),this.shouldBailStackItems&&this.itemSet.body.emitter.emit("destroyTimeline"),this.stackDirty=!1}}},{key:"_didResize",value:function(e,t){e=qfe.updateProperty(this,"height",t)||e;var n=this.dom.inner.clientWidth,r=this.dom.inner.clientHeight;return e=qfe.updateProperty(this.props.label,"width",n)||e,e=qfe.updateProperty(this.props.label,"height",r)||e}},{key:"_applyGroupHeight",value:function(e){this.dom.background.style.height="".concat(e,"px"),this.dom.foreground.style.height="".concat(e,"px"),this.dom.label.style.height="".concat(e,"px")}},{key:"_updateItemsVerticalPosition",value:function(e){for(var t=0,n=this.visibleItems.length;t<n;t++){var r=this.visibleItems[t];r.repositionY(e),this.isVisible||this.groupId==Rve||r.displayed&&r.hide()}}},{key:"redraw",value:function(e,t,n,r){var i,o,a,s,l,u,c,d=this,h=!1,p=this.isVisible,f=[function(){n=d._didMarkerHeightChange.call(d)||n},m8(i=this._updateSubGroupHeights).call(i,this,t),m8(o=this._calculateGroupSizeAndPosition).call(o,this),function(){var n;d.isVisible=m8(n=d._isGroupVisible).call(n,d)(e,t)},function(){var r;m8(r=d._redrawItems).call(r,d)(n,p,t,e)},m8(a=this._updateSubgroupsSizes).call(a,this),function(){var e;u=m8(e=d._calculateHeight).call(e,d)(t)},m8(s=this._calculateGroupSizeAndPosition).call(s,this),function(){var e;h=m8(e=d._didResize).call(e,d)(h,u)},function(){var e;m8(e=d._applyGroupHeight).call(e,d)(u)},function(){var e;m8(e=d._updateItemsVerticalPosition).call(e,d)(t)},m8(l=function(){return!d.isVisible&&d.height&&(h=!1),h}).call(l,this)];return r?f:(O8(f).call(f,(function(e){c=e()})),c)}},{key:"_updateSubGroupHeights",value:function(e){var t=this;if(V4(this.subgroups).length>0){var n=this;this._resetSubgroups(),O8(qfe).call(qfe,this.visibleItems,(function(r){void 0!==r.data.subgroup&&(n.subgroups[r.data.subgroup].height=Math.max(n.subgroups[r.data.subgroup].height,r.height+e.item.vertical),n.subgroups[r.data.subgroup].visible=void 0===t.subgroupVisibility[r.data.subgroup]||Boolean(t.subgroupVisibility[r.data.subgroup]))}))}}},{key:"_isGroupVisible",value:function(e,t){return this.top<=e.body.domProps.centerContainer.height-e.body.domProps.scrollTop+t.axis&&this.top+this.height+t.axis>=-e.body.domProps.scrollTop}},{key:"_calculateHeight",value:function(e){var t,n;if((n="fixed"===this.heightMode?qfe.toArray(this.items):this.visibleItems).length>0){var r=n[0].top,i=n[0].top+n[0].height;if(O8(qfe).call(qfe,n,(function(e){r=Math.min(r,e.top),i=Math.max(i,e.top+e.height)})),r>e.axis){var o=r-e.axis;i-=o,O8(qfe).call(qfe,n,(function(e){e.top-=o}))}t=Math.ceil(i+e.item.vertical/2),"fitItems"!==this.heightMode&&(t=Math.max(t,this.props.label.height))}else t=this.props.label.height;return t}},{key:"show",value:function(){this.dom.label.parentNode||this.itemSet.dom.labelSet.appendChild(this.dom.label),this.dom.foreground.parentNode||this.itemSet.dom.foreground.appendChild(this.dom.foreground),this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background),this.dom.axis.parentNode||this.itemSet.dom.axis.appendChild(this.dom.axis)}},{key:"hide",value:function(){var e=this.dom.label;e.parentNode&&e.parentNode.removeChild(e);var t=this.dom.foreground;t.parentNode&&t.parentNode.removeChild(t);var n=this.dom.background;n.parentNode&&n.parentNode.removeChild(n);var r=this.dom.axis;r.parentNode&&r.parentNode.removeChild(r)}},{key:"add",value:function(e){var t;if(this.items[e.id]=e,e.setParent(this),this.stackDirty=!0,void 0!==e.data.subgroup&&(this._addToSubgroup(e),this.orderSubgroups()),!W7(t=this.visibleItems).call(t,e)){var n=this.itemSet.body.range;this._checkIfVisible(e,this.visibleItems,n)}}},{key:"_addToSubgroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.data.subgroup;null!=t&&void 0===this.subgroups[t]&&(this.subgroups[t]={height:0,top:0,start:e.data.start,end:e.data.end||e.data.start,visible:!1,index:this.subgroupIndex,items:[],stack:this.subgroupStackAll||this.subgroupStack[t]||!1},this.subgroupIndex++),new Date(e.data.start)<new Date(this.subgroups[t].start)&&(this.subgroups[t].start=e.data.start);var n=e.data.end||e.data.start;new Date(n)>new Date(this.subgroups[t].end)&&(this.subgroups[t].end=n),this.subgroups[t].items.push(e)}},{key:"_updateSubgroupsSizes",value:function(){var e=this;if(e.subgroups){var t=function(){var t,r=e.subgroups[n].items[0].data.end||e.subgroups[n].items[0].data.start,i=e.subgroups[n].items[0].data.start,o=r-1;O8(t=e.subgroups[n].items).call(t,(function(e){new Date(e.data.start)<new Date(i)&&(i=e.data.start);var t=e.data.end||e.data.start;new Date(t)>new Date(o)&&(o=t)})),e.subgroups[n].start=i,e.subgroups[n].end=new Date(o-1)};for(var n in e.subgroups)t()}}},{key:"orderSubgroups",value:function(){if(void 0!==this.subgroupOrderer){var e=[];if("string"==typeof this.subgroupOrderer){for(var t in this.subgroups)e.push({subgroup:t,sortField:this.subgroups[t].items[0].data[this.subgroupOrderer]});Gde(e).call(e,(function(e,t){return e.sortField-t.sortField}))}else if("function"==typeof this.subgroupOrderer){for(var n in this.subgroups)e.push(this.subgroups[n].items[0].data);Gde(e).call(e,this.subgroupOrderer)}if(e.length>0)for(var r=0;r<e.length;r++)this.subgroups[e[r].subgroup].index=r}}},{key:"_resetSubgroups",value:function(){for(var e in this.subgroups)this.subgroups.hasOwnProperty(e)&&(this.subgroups[e].visible=!1,this.subgroups[e].height=0)}},{key:"remove",value:function(e){var t,n;delete this.items[e.id],e.setParent(null),this.stackDirty=!0;var r=Qee(t=this.visibleItems).call(t,e);-1!=r&&s7(n=this.visibleItems).call(n,r,1),void 0!==e.data.subgroup&&(this._removeFromSubgroup(e),this.orderSubgroups())}},{key:"_removeFromSubgroup",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.data.subgroup;if(null!=t){var n=this.subgroups[t];if(n){var r,i,o=Qee(r=n.items).call(r,e);if(o>=0)s7(i=n.items).call(i,o,1),n.items.length?this._updateSubgroupsSizes():delete this.subgroups[t]}}}},{key:"removeFromDataSet",value:function(e){this.itemSet.removeItem(e.id)}},{key:"order",value:function(){for(var e,t=qfe.toArray(this.items),n=[],r=[],i=0;i<t.length;i++)void 0!==t[i].data.end&&r.push(t[i]),n.push(t[i]);this.orderedItems={byStart:n,byEnd:r},e=this.orderedItems.byStart,Gde(e).call(e,(function(e,t){return e.data.start-t.data.start})),function(e){Gde(e).call(e,(function(e,t){return("end"in e.data?e.data.end:e.data.start)-("end"in t.data?t.data.end:t.data.start)}))}(this.orderedItems.byEnd)}},{key:"_updateItemsInRange",value:function(e,t,n){var r=[],i={};if(!this.isVisible&&void 0!==this.height&&this.groupId!=Rve){for(var o=0;o<t.length;o++){var a=t[o];a.displayed&&a.hide()}return r}var s=(n.end-n.start)/4,l=n.start-s,u=n.end+s;if(t.length>0)for(var c=0;c<t.length;c++)this._checkIfVisibleWithReference(t[c],r,i,n);var d=qfe.binarySearchCustom(e.byStart,(function(e){return e<l?-1:e<=u?0:1}),"data","start");if(this._traceVisible(d,e.byStart,r,i,(function(e){return e.data.start<l||e.data.start>u})),1==this.checkRangedItems){this.checkRangedItems=!1;for(var h=0;h<e.byEnd.length;h++)this._checkIfVisibleWithReference(e.byEnd[h],r,i,n)}else{var p=qfe.binarySearchCustom(e.byEnd,(function(e){var t=e.start;return e.end<l?-1:t<=u?0:1}),"data");this._traceVisible(p,e.byEnd,r,i,(function(e){return e.data.end<l||e.data.start>u}))}for(var f={},m=0,v=0;v<r.length;v++){var g=r[v];if(!g.displayed){f[v]=g.redraw(!0),m=f[v].length}}if(m>0)for(var y=function(e){O8(qfe).call(qfe,f,(function(t){t[e]()}))},b=0;b<m;b++)y(b);for(var w=0;w<r.length;w++)r[w].repositionX();return r}},{key:"_traceVisible",value:function(e,t,n,r,i){if(-1!=e){for(var o=e;o>=0;o--){var a=t[o];if(i(a))break;a.isCluster&&!a.hasItems()||a.cluster||void 0===r[a.id]&&(r[a.id]=!0,n.push(a))}for(var s=e+1;s<t.length;s++){var l=t[s];if(i(l))break;l.isCluster&&!l.hasItems()||l.cluster||void 0===r[l.id]&&(r[l.id]=!0,n.push(l))}}}},{key:"_checkIfVisible",value:function(e,t,n){e.isVisible(n)?(e.displayed||e.show(),e.repositionX(),t.push(e)):e.displayed&&e.hide()}},{key:"_checkIfVisibleWithReference",value:function(e,t,n,r){e.isVisible(r)?void 0===n[e.id]&&(n[e.id]=!0,t.push(e)):e.displayed&&e.hide()}},{key:"_updateClustersInRange",value:function(e,t,n){var r=[],i={};if(t.length>0)for(var o=0;o<t.length;o++)this._checkIfVisibleWithReference(t[o],r,i,n);for(var a=0;a<e.byStart.length;a++)this._checkIfVisibleWithReference(e.byStart[a],r,i,n);for(var s=0;s<e.byEnd.length;s++)this._checkIfVisibleWithReference(e.byEnd[s],r,i,n);for(var l={},u=0,c=0;c<r.length;c++){var d=r[c];if(!d.displayed){l[c]=d.redraw(!0),u=l[c].length}}if(u>0)for(var h=0;h<u;h++)O8(qfe).call(qfe,l,(function(e){e[h]()}));for(var p=0;p<r.length;p++)r[p].repositionX();return r}},{key:"changeSubgroup",value:function(e,t,n){this._removeFromSubgroup(e,t),this._addToSubgroup(e,n),this.orderSubgroups()}},{key:"dispose",value:function(){var e;for(this.hide();e=this._disposeCallbacks.pop();)e()}}]),e}();function jve(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}var Lve=function(){Pie(t,Nve);var e=jve(t);function t(n,r,i){var o;return p2(this,t),(o=e.call(this,n,r,i)).width=0,o.height=0,o.top=0,o.left=0,o}return k6(t,[{key:"redraw",value:function(e,t,n){this.visibleItems=this._updateItemsInRange(this.orderedItems,this.visibleItems,e),this.width=this.dom.background.offsetWidth,this.dom.background.style.height="0";for(var r=0,i=this.visibleItems.length;r<i;r++){this.visibleItems[r].repositionY(t)}return!1}},{key:"show",value:function(){this.dom.background.parentNode||this.itemSet.dom.background.appendChild(this.dom.background)}}]),t}();function Fve(e,t){var n=void 0!==x4&&h2(e)||e["@@iterator"];if(!n){if(j4(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return Bve(e,t);var r=O4(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return G1(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Bve(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Bve(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Rme('\n.vis-item {\n position: absolute;\n color: #1A1A1A;\n border-color: #97B0F8;\n border-width: 1px;\n background-color: #D5DDF6;\n display: inline-block;\n z-index: 1;\n /*overflow: hidden;*/\n}\n\n.vis-item.vis-selected {\n border-color: #FFC200;\n background-color: #FFF785;\n\n /* z-index must be higher than the z-index of custom time bar and current time bar */\n z-index: 2;\n}\n\n.vis-editable.vis-selected {\n cursor: move;\n}\n\n.vis-item.vis-point.vis-selected {\n background-color: #FFF785;\n}\n\n.vis-item.vis-box {\n text-align: center;\n border-style: solid;\n border-radius: 2px;\n}\n\n.vis-item.vis-point {\n background: none;\n}\n\n.vis-item.vis-dot {\n position: absolute;\n padding: 0;\n border-width: 4px;\n border-style: solid;\n border-radius: 4px;\n}\n\n.vis-item.vis-range {\n border-style: solid;\n border-radius: 2px;\n box-sizing: border-box;\n}\n\n.vis-item.vis-background {\n border: none;\n background-color: rgba(213, 221, 246, 0.4);\n box-sizing: border-box;\n padding: 0;\n margin: 0;\n}\n\n.vis-item .vis-item-overflow {\n position: relative;\n width: 100%;\n height: 100%;\n padding: 0;\n margin: 0;\n overflow: hidden;\n}\n\n.vis-item-visible-frame {\n white-space: nowrap;\n}\n\n.vis-item.vis-range .vis-item-content {\n position: relative;\n display: inline-block;\n}\n\n.vis-item.vis-background .vis-item-content {\n position: absolute;\n display: inline-block;\n}\n\n.vis-item.vis-line {\n padding: 0;\n position: absolute;\n width: 0;\n border-left-width: 1px;\n border-left-style: solid;\n}\n\n.vis-item .vis-item-content {\n white-space: nowrap;\n box-sizing: border-box;\n padding: 5px;\n}\n\n.vis-item .vis-onUpdateTime-tooltip {\n position: absolute;\n background: #4f81bd;\n color: white;\n width: 200px;\n text-align: center;\n white-space: nowrap;\n padding: 5px;\n border-radius: 1px;\n transition: 0.4s;\n -o-transition: 0.4s;\n -moz-transition: 0.4s;\n -webkit-transition: 0.4s;\n}\n\n.vis-item .vis-delete, .vis-item .vis-delete-rtl {\n position: absolute;\n top: 0px;\n width: 24px;\n height: 24px;\n box-sizing: border-box;\n padding: 0px 5px;\n cursor: pointer;\n\n -webkit-transition: background 0.2s linear;\n -moz-transition: background 0.2s linear;\n -ms-transition: background 0.2s linear;\n -o-transition: background 0.2s linear;\n transition: background 0.2s linear;\n}\n\n.vis-item .vis-delete {\n right: -24px;\n}\n\n.vis-item .vis-delete-rtl {\n left: -24px;\n}\n\n.vis-item .vis-delete:after, .vis-item .vis-delete-rtl:after {\n content: "\\00D7"; /* MULTIPLICATION SIGN */\n color: red;\n font-family: arial, sans-serif;\n font-size: 22px;\n font-weight: bold;\n\n -webkit-transition: color 0.2s linear;\n -moz-transition: color 0.2s linear;\n -ms-transition: color 0.2s linear;\n -o-transition: color 0.2s linear;\n transition: color 0.2s linear;\n}\n\n.vis-item .vis-delete:hover, .vis-item .vis-delete-rtl:hover {\n background: red;\n}\n\n.vis-item .vis-delete:hover:after, .vis-item .vis-delete-rtl:hover:after {\n color: white;\n}\n\n.vis-item .vis-drag-center {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0px;\n cursor: move;\n}\n\n.vis-item.vis-range .vis-drag-left {\n position: absolute;\n width: 24px;\n max-width: 20%;\n min-width: 2px;\n height: 100%;\n top: 0;\n left: -4px;\n\n cursor: w-resize;\n}\n\n.vis-item.vis-range .vis-drag-right {\n position: absolute;\n width: 24px;\n max-width: 20%;\n min-width: 2px;\n height: 100%;\n top: 0;\n right: -4px;\n\n cursor: e-resize;\n}\n\n.vis-range.vis-item.vis-readonly .vis-drag-left,\n.vis-range.vis-item.vis-readonly .vis-drag-right {\n cursor: auto;\n}\n\n.vis-item.vis-cluster {\n vertical-align: center;\n text-align: center;\n border-style: solid;\n border-radius: 2px;\n}\n\n.vis-item.vis-cluster-line {\n padding: 0;\n position: absolute;\n width: 0;\n border-left-width: 1px;\n border-left-style: solid;\n}\n\n.vis-item.vis-cluster-dot {\n position: absolute;\n padding: 0;\n border-width: 4px;\n border-style: solid;\n border-radius: 4px;\n}');var Uve=function(){function e(t,n,r){var i,o=this;p2(this,e),this.id=null,this.parent=null,this.data=t,this.dom=null,this.conversion=n||{},this.defaultOptions={locales:Jme,locale:"en"},this.options=qfe.extend({},this.defaultOptions,r),this.options.locales=qfe.extend({},Jme,this.options.locales);var a=this.defaultOptions.locales[this.defaultOptions.locale];O8(i=V4(this.options.locales)).call(i,(function(e){o.options.locales[e]=qfe.extend({},a,o.options.locales[e])})),this.selected=!1,this.displayed=!1,this.groupShowing=!0,this.selectable=r&&r.selectable||!1,this.dirty=!0,this.top=null,this.right=null,this.left=null,this.width=null,this.height=null,this.setSelectability(t),this.editable=null,this._updateEditStatus()}return k6(e,[{key:"select",value:function(){this.selectable&&(this.selected=!0,this.dirty=!0,this.displayed&&this.redraw())}},{key:"unselect",value:function(){this.selected=!1,this.dirty=!0,this.displayed&&this.redraw()}},{key:"setData",value:function(e){null!=e.group&&this.data.group!=e.group&&null!=this.parent&&this.parent.itemSet._moveToGroup(this,e.group),this.setSelectability(e),this.parent&&(this.parent.stackDirty=!0),null!=e.subgroup&&this.data.subgroup!=e.subgroup&&null!=this.parent&&this.parent.changeSubgroup(this,this.data.subgroup,e.subgroup),this.data=e,this._updateEditStatus(),this.dirty=!0,this.displayed&&this.redraw()}},{key:"setSelectability",value:function(e){e&&(this.selectable=void 0===e.selectable||Boolean(e.selectable))}},{key:"setParent",value:function(e){this.displayed?(this.hide(),this.parent=e,this.parent&&this.show()):this.parent=e}},{key:"isVisible",value:function(e){return!1}},{key:"show",value:function(){return!1}},{key:"hide",value:function(){return!1}},{key:"redraw",value:function(){}},{key:"repositionX",value:function(){}},{key:"repositionY",value:function(){}},{key:"_repaintDragCenter",value:function(){if(this.selected&&this.editable.updateTime&&!this.dom.dragCenter){var e,t,n=this,r=document.createElement("div");r.className="vis-drag-center",r.dragCenterItem=this,this.hammerDragCenter=new Ame(r),this.hammerDragCenter.on("tap",(function(e){n.parent.itemSet.body.emitter.emit("click",{event:e,item:n.id})})),this.hammerDragCenter.on("doubletap",(function(e){e.stopPropagation(),n.parent.itemSet._onUpdateItem(n),n.parent.itemSet.body.emitter.emit("doubleClick",{event:e,item:n.id})})),this.hammerDragCenter.on("panstart",(function(e){e.stopPropagation(),n.parent.itemSet._onDragStart(e)})),this.hammerDragCenter.on("panmove",m8(e=n.parent.itemSet._onDrag).call(e,n.parent.itemSet)),this.hammerDragCenter.on("panend",m8(t=n.parent.itemSet._onDragEnd).call(t,n.parent.itemSet)),this.hammerDragCenter.get("press").set({time:1e4}),this.dom.box?this.dom.dragLeft?this.dom.box.insertBefore(r,this.dom.dragLeft):this.dom.box.appendChild(r):this.dom.point&&this.dom.point.appendChild(r),this.dom.dragCenter=r}else!this.selected&&this.dom.dragCenter&&(this.dom.dragCenter.parentNode&&this.dom.dragCenter.parentNode.removeChild(this.dom.dragCenter),this.dom.dragCenter=null,this.hammerDragCenter&&(this.hammerDragCenter.destroy(),this.hammerDragCenter=null))}},{key:"_repaintDeleteButton",value:function(e){var t=(this.options.editable.overrideItems||null==this.editable)&&this.options.editable.remove||!this.options.editable.overrideItems&&null!=this.editable&&this.editable.remove;if(this.selected&&t&&!this.dom.deleteButton){var n=this,r=document.createElement("div");this.options.rtl?r.className="vis-delete-rtl":r.className="vis-delete";var i=this.options.locales[this.options.locale];i||(this.warned||(console.warn("WARNING: options.locales['".concat(this.options.locale,"'] not found. See https://visjs.github.io/vis-timeline/docs/timeline/#Localization")),this.warned=!0),i=this.options.locales.en),r.title=i.deleteSelected,this.hammerDeleteButton=new Ame(r).on("tap",(function(e){e.stopPropagation(),n.parent.removeFromDataSet(n)})),e.appendChild(r),this.dom.deleteButton=r}else this.selected&&t||!this.dom.deleteButton||(this.dom.deleteButton.parentNode&&this.dom.deleteButton.parentNode.removeChild(this.dom.deleteButton),this.dom.deleteButton=null,this.hammerDeleteButton&&(this.hammerDeleteButton.destroy(),this.hammerDeleteButton=null))}},{key:"_repaintOnItemUpdateTimeTooltip",value:function(e){if(this.options.tooltipOnItemUpdateTime){var t=(this.options.editable.updateTime||!0===this.data.editable)&&!1!==this.data.editable;if(this.selected&&t&&!this.dom.onItemUpdateTimeTooltip){var n=document.createElement("div");n.className="vis-onUpdateTime-tooltip",e.appendChild(n),this.dom.onItemUpdateTimeTooltip=n}else!this.selected&&this.dom.onItemUpdateTimeTooltip&&(this.dom.onItemUpdateTimeTooltip.parentNode&&this.dom.onItemUpdateTimeTooltip.parentNode.removeChild(this.dom.onItemUpdateTimeTooltip),this.dom.onItemUpdateTimeTooltip=null);if(this.dom.onItemUpdateTimeTooltip){this.dom.onItemUpdateTimeTooltip.style.visibility=this.parent.itemSet.touchParams.itemIsDragging?"visible":"hidden",this.dom.onItemUpdateTimeTooltip.style.transform="translateX(-50%)",this.dom.onItemUpdateTimeTooltip.style.left="50%";var r,i,o=this.parent.itemSet.body.domProps.scrollTop;if(("top"==this.options.orientation.item?this.top:this.parent.height-this.top-this.height)+this.parent.top-50<-o?(this.dom.onItemUpdateTimeTooltip.style.bottom="",this.dom.onItemUpdateTimeTooltip.style.top="".concat(this.height+2,"px")):(this.dom.onItemUpdateTimeTooltip.style.top="",this.dom.onItemUpdateTimeTooltip.style.bottom="".concat(this.height+2,"px")),this.options.tooltipOnItemUpdateTime&&this.options.tooltipOnItemUpdateTime.template)r=m8(i=this.options.tooltipOnItemUpdateTime.template).call(i,this)(this.data);else r="start: ".concat(Ape(this.data.start).format("MM/DD/YYYY hh:mm")),this.data.end&&(r+="<br> end: ".concat(Ape(this.data.end).format("MM/DD/YYYY hh:mm")));this.dom.onItemUpdateTimeTooltip.innerHTML=qfe.xss(r)}}}},{key:"_getItemData",value:function(){return this.parent.itemSet.itemsData.get(this.id)}},{key:"_updateContents",value:function(e){var t,n,r,i,o,a,s=this._getItemData(),l=(this.dom.box||this.dom.point).getElementsByClassName("vis-item-visible-frame")[0];this.options.visibleFrameTemplate?(i=m8(o=this.options.visibleFrameTemplate).call(o,this),r=qfe.xss(i(s,l))):r="";if(l)if(r instanceof Object&&!(r instanceof Element))i(s,l);else if(this._contentToString(this.itemVisibleFrameContent)!==this._contentToString(r)){if(r instanceof Element)l.innerHTML="",l.appendChild(r);else if(null!=r)l.innerHTML=qfe.xss(r);else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.itemVisibleFrameContent=r}this.options.template?t=(n=m8(a=this.options.template).call(a,this))(s,e,this.data):t=this.data.content;if(t instanceof Object&&!(t instanceof Element))n(s,e);else if(this._contentToString(this.content)!==this._contentToString(t)){if(t instanceof Element)e.innerHTML="",e.appendChild(t);else if(null!=t)e.innerHTML=qfe.xss(t);else if("background"!=this.data.type||void 0!==this.data.content)throw new Error('Property "content" missing in item '.concat(this.id));this.content=t}}},{key:"_updateDataAttributes",value:function(e){if(this.options.dataAttributes&&this.options.dataAttributes.length>0){var t=[];if(j4(this.options.dataAttributes))t=this.options.dataAttributes;else{if("all"!=this.options.dataAttributes)return;t=V4(this.data)}var n,r=Fve(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=this.data[i];null!=o?e.setAttribute("data-".concat(i),o):e.removeAttribute("data-".concat(i))}}catch(e){r.e(e)}finally{r.f()}}}},{key:"_updateStyle",value:function(e){this.style&&(qfe.removeCssText(e,this.style),this.style=null),this.data.style&&(qfe.addCssText(e,this.data.style),this.style=this.data.style)}},{key:"_contentToString",value:function(e){return"string"==typeof e?e:e&&"outerHTML"in e?e.outerHTML:e}},{key:"_updateEditStatus",value:function(){this.options&&("boolean"==typeof this.options.editable?this.editable={updateTime:this.options.editable,updateGroup:this.options.editable,remove:this.options.editable}:"object"===w6(this.options.editable)&&(this.editable={},qfe.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.options.editable))),this.options&&this.options.editable&&!0===this.options.editable.overrideItems||this.data&&("boolean"==typeof this.data.editable?this.editable={updateTime:this.data.editable,updateGroup:this.data.editable,remove:this.data.editable}:"object"===w6(this.data.editable)&&(this.editable={},qfe.selectiveExtend(["updateTime","updateGroup","remove"],this.editable,this.data.editable)))}},{key:"getWidthLeft",value:function(){return 0}},{key:"getWidthRight",value:function(){return 0}},{key:"getTitle",value:function(){var e;return this.options.tooltip&&this.options.tooltip.template?m8(e=this.options.tooltip.template).call(e,this)(this._getItemData(),this.data):this.data.title}}]),e}();function Hve(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}Uve.prototype.stack=!0;var Yve=function(){Pie(t,Uve);var e=Hve(t);function t(n,r,i){var o;if(p2(this,t),(o=e.call(this,n,r,i)).props={dot:{width:0,height:0},line:{width:0,height:0}},n&&null==n.start)throw new Error('Property "start" missing in item '.concat(n));return o}return k6(t,[{key:"isVisible",value:function(e){if(this.cluster)return!1;var t,n=this.data.align||this.options.align,r=this.width*e.getMillisecondsPerPixel();return t="right"==n?this.data.start.getTime()>e.start&&this.data.start.getTime()-r<e.end:"left"==n?this.data.start.getTime()+r>e.start&&this.data.start.getTime()<e.end:this.data.start.getTime()+r/2>e.start&&this.data.start.getTime()-r/2<e.end,t}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-line",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-dot",this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var e=this.parent.dom.foreground;if(!e)throw new Error("Cannot redraw item: parent has no foreground container element");e.appendChild(this.dom.box)}if(!this.dom.line.parentNode){var t=this.parent.dom.background;if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var n=this.parent.dom.axis;if(!t)throw new Error("Cannot redraw item: parent has no axis container element");n.appendChild(this.dom.dot)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var e=this.editable.updateTime||this.editable.updateGroup,t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(e?" vis-editable":" vis-readonly");this.dom.box.className="vis-item vis-box".concat(t),this.dom.line.className="vis-item vis-line".concat(t),this.dom.dot.className="vis-item vis-dot".concat(t)}}},{key:"_getDomComponentsSizes",value:function(){return{previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},dot:{height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},line:{width:this.dom.line.offsetWidth},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(e){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.props.dot.height=e.dot.height,this.props.dot.width=e.dot.width,this.props.line.width=e.line.width,this.width=e.box.width,this.height=e.box.height,this.options.rtl?this.dom.box.style.right=e.previous.right:this.dom.box.style.left=e.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.box)}},{key:"redraw",value:function(e){var t,n,r,i,o,a,s=this,l=[m8(t=this._createDomElement).call(t,this),m8(n=this._appendDomElement).call(n,this),m8(r=this._updateDirtyDomComponents).call(r,this),function(){s.dirty&&(o=s._getDomComponentsSizes())},function(){var e;s.dirty&&m8(e=s._updateDomComponentsSizes).call(e,s)(o)},m8(i=this._repaintDomAdditionals).call(i,this)];return e?l:(O8(l).call(l,(function(e){a=e()})),a)}},{key:"show",value:function(e){if(!this.displayed)return this.redraw(e)}},{key:"hide",value:function(){if(this.displayed){var e=this.dom;e.box.remove?e.box.remove():e.box.parentNode&&e.box.parentNode.removeChild(e.box),e.line.remove?e.line.remove():e.line.parentNode&&e.line.parentNode.removeChild(e.line),e.dot.remove?e.dot.remove():e.dot.parentNode&&e.dot.parentNode.removeChild(e.dot),this.displayed=!1}}},{key:"repositionXY",value:function(){var e=this.options.rtl,t=function(e,t,n){var r;if(void 0!==t||void 0!==n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?-1*t:t;e.style.transform=void 0!==n?void 0!==t?E4(r="translate(".concat(i,"px, ")).call(r,n,"px)"):"translateY(".concat(n,"px)"):"translateX(".concat(i,"px)")}};t(this.dom.box,this.boxX,this.boxY,e),t(this.dom.dot,this.dotX,this.dotY,e),t(this.dom.line,this.lineX,this.lineY,e)}},{key:"repositionX",value:function(){var e=this.conversion.toScreen(this.data.start),t=void 0===this.data.align?this.options.align:this.data.align,n=this.props.line.width,r=this.props.dot.width;"right"==t?(this.boxX=e-this.width,this.lineX=e-n,this.dotX=e-n/2-r/2):"left"==t?(this.boxX=e,this.lineX=e,this.dotX=e+n/2-r/2):(this.boxX=e-this.width/2,this.lineX=this.options.rtl?e-n:e-n/2,this.dotX=e-r/2),this.options.rtl?this.right=this.boxX:this.left=this.boxX,this.repositionXY()}},{key:"repositionY",value:function(){var e=this.options.orientation.item,t=this.dom.line.style;if("top"==e){var n=this.parent.top+this.top+1;this.boxY=this.top||0,t.height="".concat(n,"px"),t.bottom="",t.top="0"}else{var r=this.parent.itemSet.props.height-this.parent.top-this.parent.height+this.top;this.boxY=this.parent.height-this.top-(this.height||0),t.height="".concat(r,"px"),t.top="",t.bottom="0"}this.dotY=-this.props.dot.height/2,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}}]),t}();function zve(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}var Wve=function(){Pie(t,Uve);var e=zve(t);function t(n,r,i){var o;if(p2(this,t),(o=e.call(this,n,r,i)).props={dot:{top:0,width:0,height:0},content:{height:0,marginLeft:0,marginRight:0}},n&&null==n.start)throw new Error('Property "start" missing in item '.concat(n));return o}return k6(t,[{key:"isVisible",value:function(e){if(this.cluster)return!1;var t=this.width*e.getMillisecondsPerPixel();return this.data.start.getTime()+t>e.start&&this.data.start<e.end}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.point=document.createElement("div"),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.point.appendChild(this.dom.content),this.dom.dot=document.createElement("div"),this.dom.point.appendChild(this.dom.dot),this.dom.point["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.point.parentNode){var e=this.parent.dom.foreground;if(!e)throw new Error("Cannot redraw item: parent has no foreground container element");e.appendChild(this.dom.point)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.point),this._updateStyle(this.dom.point);var e=this.editable.updateTime||this.editable.updateGroup,t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(e?" vis-editable":" vis-readonly");this.dom.point.className="vis-item vis-point".concat(t),this.dom.dot.className="vis-item vis-dot".concat(t)}}},{key:"_getDomComponentsSizes",value:function(){return{dot:{width:this.dom.dot.offsetWidth,height:this.dom.dot.offsetHeight},content:{width:this.dom.content.offsetWidth,height:this.dom.content.offsetHeight},point:{width:this.dom.point.offsetWidth,height:this.dom.point.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(e){this.props.dot.width=e.dot.width,this.props.dot.height=e.dot.height,this.props.content.height=e.content.height,this.options.rtl?this.dom.content.style.marginRight="".concat(this.props.dot.width/2,"px"):this.dom.content.style.marginLeft="".concat(this.props.dot.width/2,"px"),this.width=e.point.width,this.height=e.point.height,this.dom.dot.style.top="".concat((this.height-this.props.dot.height)/2,"px");var t=this.props.dot.width,n=this.options.rtl?t/2:t/2*-1;this.dom.dot.style.transform="translateX(".concat(n,"px"),this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.point),this._repaintDragCenter(),this._repaintDeleteButton(this.dom.point)}},{key:"redraw",value:function(e){var t,n,r,i,o,a,s=this,l=[m8(t=this._createDomElement).call(t,this),m8(n=this._appendDomElement).call(n,this),m8(r=this._updateDirtyDomComponents).call(r,this),function(){s.dirty&&(o=s._getDomComponentsSizes())},function(){var e;s.dirty&&m8(e=s._updateDomComponentsSizes).call(e,s)(o)},m8(i=this._repaintDomAdditionals).call(i,this)];return e?l:(O8(l).call(l,(function(e){a=e()})),a)}},{key:"repositionXY",value:function(){var e=this.options.rtl,t=function(e,t,n){var r;if(void 0!==t||void 0!==n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?-1*t:t;e.style.transform=void 0!==n?void 0!==t?E4(r="translate(".concat(i,"px, ")).call(r,n,"px)"):"translateY(".concat(n,"px)"):"translateX(".concat(i,"px)")}};t(this.dom.point,this.pointX,this.pointY,e)}},{key:"show",value:function(e){if(!this.displayed)return this.redraw(e)}},{key:"hide",value:function(){this.displayed&&(this.dom.point.parentNode&&this.dom.point.parentNode.removeChild(this.dom.point),this.displayed=!1)}},{key:"repositionX",value:function(){var e=this.conversion.toScreen(this.data.start);this.pointX=e,this.options.rtl?this.right=e-this.props.dot.width:this.left=e-this.props.dot.width,this.repositionXY()}},{key:"repositionY",value:function(){var e=this.options.orientation.item;this.pointY="top"==e?this.top:this.parent.height-this.top-this.height,this.repositionXY()}},{key:"getWidthLeft",value:function(){return this.props.dot.width}},{key:"getWidthRight",value:function(){return this.props.dot.width}}]),t}();function Gve(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}var Vve=function(){Pie(t,Uve);var e=Gve(t);function t(n,r,i){var o;if(p2(this,t),(o=e.call(this,n,r,i)).props={content:{width:0}},o.overflow=!1,n){if(null==n.start)throw new Error('Property "start" missing in item '.concat(n.id));if(null==n.end)throw new Error('Property "end" missing in item '.concat(n.id))}return o}return k6(t,[{key:"isVisible",value:function(e){return!this.cluster&&(this.data.start<e.end&&this.data.end>e.start)}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.visibleFrame=document.createElement("div"),this.dom.visibleFrame.className="vis-item-visible-frame",this.dom.box.appendChild(this.dom.visibleFrame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dom.box["vis-item"]=this,this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var e=this.parent.dom.foreground;if(!e)throw new Error("Cannot redraw item: parent has no foreground container element");e.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var e=this.editable.updateTime||this.editable.updateGroup,t=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+(e?" vis-editable":" vis-readonly");this.dom.box.className=this.baseClassName+t,this.dom.content.style.maxWidth="none"}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.frame).overflow,this.whiteSpace="nowrap"!==window.getComputedStyle(this.dom.content).whiteSpace,{content:{width:this.dom.content.offsetWidth},box:{height:this.dom.box.offsetHeight}}}},{key:"_updateDomComponentsSizes",value:function(e){this.props.content.width=e.content.width,this.height=e.box.height,this.dom.content.style.maxWidth="",this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box),this._repaintDeleteButton(this.dom.box),this._repaintDragCenter(),this._repaintDragLeft(),this._repaintDragRight()}},{key:"redraw",value:function(e){var t,n,r,i,o,a,s=this,l=[m8(t=this._createDomElement).call(t,this),m8(n=this._appendDomElement).call(n,this),m8(r=this._updateDirtyDomComponents).call(r,this),function(){var e;s.dirty&&(o=m8(e=s._getDomComponentsSizes).call(e,s)())},function(){var e;s.dirty&&m8(e=s._updateDomComponentsSizes).call(e,s)(o)},m8(i=this._repaintDomAdditionals).call(i,this)];return e?l:(O8(l).call(l,(function(e){a=e()})),a)}},{key:"show",value:function(e){if(!this.displayed)return this.redraw(e)}},{key:"hide",value:function(){if(this.displayed){var e=this.dom.box;e.parentNode&&e.parentNode.removeChild(e),this.displayed=!1}}},{key:"repositionX",value:function(e){var t,n,r=this.parent.width,i=this.conversion.toScreen(this.data.start),o=this.conversion.toScreen(this.data.end),a=void 0===this.data.align?this.options.align:this.data.align;!1===this.data.limitSize||void 0!==e&&!0!==e||(i<-r&&(i=-r),o>2*r&&(o=2*r));var s=Math.max(Math.round(1e3*(o-i))/1e3,1);switch(this.overflow?(this.options.rtl?this.right=i:this.left=i,this.width=s+this.props.content.width,n=this.props.content.width):(this.options.rtl?this.right=i:this.left=i,this.width=s,n=Math.min(o-i,this.props.content.width)),this.options.rtl?this.dom.box.style.transform="translateX(".concat(-1*this.right,"px)"):this.dom.box.style.transform="translateX(".concat(this.left,"px)"),this.dom.box.style.width="".concat(s,"px"),this.whiteSpace&&(this.height=this.dom.box.offsetHeight),a){case"left":this.dom.content.style.transform="translateX(0)";break;case"right":if(this.options.rtl){var l=-1*Math.max(s-n,0);this.dom.content.style.transform="translateX(".concat(l,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max(s-n,0),"px)");break;case"center":if(this.options.rtl){var u=-1*Math.max((s-n)/2,0);this.dom.content.style.transform="translateX(".concat(u,"px)")}else this.dom.content.style.transform="translateX(".concat(Math.max((s-n)/2,0),"px)");break;default:if(t=this.overflow?o>0?Math.max(-i,0):-n:i<0?-i:0,this.options.rtl){var c=-1*t;this.dom.content.style.transform="translateX(".concat(c,"px)")}else this.dom.content.style.transform="translateX(".concat(t,"px)")}}},{key:"repositionY",value:function(){var e=this.options.orientation.item,t=this.dom.box;t.style.top="".concat("top"==e?this.top:this.parent.height-this.top-this.height,"px")}},{key:"_repaintDragLeft",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragLeft){var e=document.createElement("div");e.className="vis-drag-left",e.dragLeftItem=this,this.dom.box.appendChild(e),this.dom.dragLeft=e}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragLeft||(this.dom.dragLeft.parentNode&&this.dom.dragLeft.parentNode.removeChild(this.dom.dragLeft),this.dom.dragLeft=null)}},{key:"_repaintDragRight",value:function(){if((this.selected||this.options.itemsAlwaysDraggable.range)&&this.editable.updateTime&&!this.dom.dragRight){var e=document.createElement("div");e.className="vis-drag-right",e.dragRightItem=this,this.dom.box.appendChild(e),this.dom.dragRight=e}else this.selected||this.options.itemsAlwaysDraggable.range||!this.dom.dragRight||(this.dom.dragRight.parentNode&&this.dom.dragRight.parentNode.removeChild(this.dom.dragRight),this.dom.dragRight=null)}}]),t}();function qve(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}Vve.prototype.baseClassName="vis-item vis-range";var Qve=function(){Pie(t,Uve);var e=qve(t);function t(n,r,i){var o;if(p2(this,t),(o=e.call(this,n,r,i)).props={content:{width:0}},o.overflow=!1,n){if(null==n.start)throw new Error('Property "start" missing in item '.concat(n.id));if(null==n.end)throw new Error('Property "end" missing in item '.concat(n.id))}return o}return k6(t,[{key:"isVisible",value:function(e){return this.data.start<e.end&&this.data.end>e.start}},{key:"_createDomElement",value:function(){this.dom||(this.dom={},this.dom.box=document.createElement("div"),this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-item-overflow",this.dom.box.appendChild(this.dom.frame),this.dom.content=document.createElement("div"),this.dom.content.className="vis-item-content",this.dom.frame.appendChild(this.dom.content),this.dirty=!0)}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var e=this.parent.dom.background;if(!e)throw new Error("Cannot redraw item: parent has no background container element");e.appendChild(this.dom.box)}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.content),this._updateStyle(this.dom.box);var e=(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"");this.dom.box.className=this.baseClassName+e}}},{key:"_getDomComponentsSizes",value:function(){return this.overflow="hidden"!==window.getComputedStyle(this.dom.content).overflow,{content:{width:this.dom.content.offsetWidth}}}},{key:"_updateDomComponentsSizes",value:function(e){this.props.content.width=e.content.width,this.height=0,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){}},{key:"redraw",value:function(e){var t,n,r,i,o,a,s=this,l=[m8(t=this._createDomElement).call(t,this),m8(n=this._appendDomElement).call(n,this),m8(r=this._updateDirtyDomComponents).call(r,this),function(){var e;s.dirty&&(o=m8(e=s._getDomComponentsSizes).call(e,s)())},function(){var e;s.dirty&&m8(e=s._updateDomComponentsSizes).call(e,s)(o)},m8(i=this._repaintDomAdditionals).call(i,this)];return e?l:(O8(l).call(l,(function(e){a=e()})),a)}},{key:"repositionY",value:function(e){var t,n=this.options.orientation.item;if(void 0!==this.data.subgroup){var r=this.data.subgroup;this.dom.box.style.height="".concat(this.parent.subgroups[r].height,"px"),this.dom.box.style.top="".concat("top"==n?this.parent.top+this.parent.subgroups[r].top:this.parent.top+this.parent.height-this.parent.subgroups[r].top-this.parent.subgroups[r].height,"px"),this.dom.box.style.bottom=""}else this.parent instanceof Lve?(t=Math.max(this.parent.height,this.parent.itemSet.body.domProps.center.height,this.parent.itemSet.body.domProps.centerContainer.height),this.dom.box.style.bottom="bottom"==n?"0":"",this.dom.box.style.top="top"==n?"0":""):(t=this.parent.height,this.dom.box.style.top="".concat(this.parent.top,"px"),this.dom.box.style.bottom="");this.dom.box.style.height="".concat(t,"px")}}]),t}();Qve.prototype.baseClassName="vis-item vis-background",Qve.prototype.stack=!1,Qve.prototype.show=Vve.prototype.show,Qve.prototype.hide=Vve.prototype.hide,Qve.prototype.repositionX=Vve.prototype.repositionX;Rme("div.vis-tooltip {\n position: absolute;\n visibility: hidden;\n padding: 5px;\n white-space: nowrap;\n\n font-family: verdana;\n font-size:14px;\n color:#000000;\n background-color: #f5f4ed;\n\n -moz-border-radius: 3px;\n -webkit-border-radius: 3px;\n border-radius: 3px;\n border: 1px solid #808074;\n\n box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);\n pointer-events: none;\n\n z-index: 5;\n}\n");var $ve=function(){function e(t,n){p2(this,e),this.container=t,this.overflowMethod=n||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}return k6(e,[{key:"setPosition",value:function(e,t){this.x=Lee(e),this.y=Lee(t)}},{key:"setText",value:function(e){e instanceof Element?(this.frame.innerHTML="",this.frame.appendChild(e)):this.frame.innerHTML=qfe.xss(e)}},{key:"show",value:function(e){if(void 0===e&&(e=!0),!0===e){var t=this.frame.clientHeight,n=this.frame.clientWidth,r=this.frame.parentNode.clientHeight,i=this.frame.parentNode.clientWidth,o=0,a=0;if("flip"==this.overflowMethod||"none"==this.overflowMethod){var s=!1,l=!0;"flip"==this.overflowMethod&&(this.y-t<this.padding&&(l=!1),this.x+n>i-this.padding&&(s=!0)),o=s?this.x-n:this.x,a=l?this.y-t:this.y}else(a=this.y-t)+t+this.padding>r&&(a=r-t-this.padding),a<this.padding&&(a=this.padding),(o=this.x)+n+this.padding>i&&(o=i-n-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=a+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}},{key:"hide",value:function(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}},{key:"destroy",value:function(){this.frame.parentNode.removeChild(this.frame)}}]),e}(),Xve=N9.every;yZ({target:"Array",proto:!0,forced:!g8("every")},{every:function(e){return Xve(this,e,arguments.length>1?arguments[1]:void 0)}});var Kve=U6("Array").every,Zve=sX,Jve=Kve,ege=Array.prototype,tge=function(e){var t=e.every;return e===ege||Zve(ege,e)&&t===ege.every?Jve:t},nge=qq(tge);function rge(e,t){var n=void 0!==x4&&h2(e)||e["@@iterator"];if(!n){if(j4(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return ige(e,t);var r=O4(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return G1(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ige(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ige(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oge(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}var age=function(){Pie(t,Uve);var e=oge(t);function t(n,r,i){var o;p2(this,t);var a=_7({},{fitOnDoubleClick:!0},i,{editable:!1});if((o=e.call(this,n,r,a)).props={content:{width:0,height:0}},!n||null==n.uiItems)throw new Error('Property "uiItems" missing in item '+n.id);return o.id=vpe(),o.group=n.group,o._setupRange(),o.emitter=o.data.eventEmitter,o.range=o.data.range,o.attached=!1,o.isCluster=!0,o.data.isCluster=!0,o}return k6(t,[{key:"hasItems",value:function(){return this.data.uiItems&&this.data.uiItems.length&&this.attached}},{key:"setUiItems",value:function(e){this.detach(),this.data.uiItems=e,this._setupRange(),this.attach()}},{key:"isVisible",value:function(e){var t=this.data.end?this.data.end-this.data.start:0,n=this.width*e.getMillisecondsPerPixel(),r=Math.max(this.data.start.getTime()+t,this.data.start.getTime()+n);return this.data.start<e.end&&r>e.start&&this.hasItems()}},{key:"getData",value:function(){return{isCluster:!0,id:this.id,items:this.data.items||[],data:this.data}}},{key:"redraw",value:function(e){var t,n,r,i,o,a,s,l,u=[m8(t=this._createDomElement).call(t,this),m8(n=this._appendDomElement).call(n,this),m8(r=this._updateDirtyDomComponents).call(r,this),m8(i=function(){this.dirty&&(s=this._getDomComponentsSizes())}).call(i,this),m8(o=function(){var e;this.dirty&&m8(e=this._updateDomComponentsSizes).call(e,this)(s)}).call(o,this),m8(a=this._repaintDomAdditionals).call(a,this)];return e?u:(O8(u).call(u,(function(e){l=e()})),l)}},{key:"show",value:function(){this.displayed||this.redraw()}},{key:"hide",value:function(){if(this.displayed){var e=this.dom;e.box.parentNode&&e.box.parentNode.removeChild(e.box),this.options.showStipes&&(e.line.parentNode&&e.line.parentNode.removeChild(e.line),e.dot.parentNode&&e.dot.parentNode.removeChild(e.dot)),this.displayed=!1}}},{key:"repositionX",value:function(){var e=this.conversion.toScreen(this.data.start),t=this.data.end?this.conversion.toScreen(this.data.end):0;if(t)this.repositionXWithRanges(e,t);else{var n=void 0===this.data.align?this.options.align:this.data.align;this.repositionXWithoutRanges(e,n)}this.options.showStipes&&(this.dom.line.style.display=this._isStipeVisible()?"block":"none",this.dom.dot.style.display=this._isStipeVisible()?"block":"none",this._isStipeVisible()&&this.repositionStype(e,t))}},{key:"repositionStype",value:function(e,t){this.dom.line.style.display="block",this.dom.dot.style.display="block";var n=this.dom.line.offsetWidth,r=this.dom.dot.offsetWidth;if(t){var i=n+e+(t-e)/2,o=i-r/2,a=this.options.rtl?-1*i:i,s=this.options.rtl?-1*o:o;this.dom.line.style.transform="translateX(".concat(a,"px)"),this.dom.dot.style.transform="translateX(".concat(s,"px)")}else{var l=this.options.rtl?-1*e:e,u=this.options.rtl?-1*(e-r/2):e-r/2;this.dom.line.style.transform="translateX(".concat(l,"px)"),this.dom.dot.style.transform="translateX(".concat(u,"px)")}}},{key:"repositionXWithoutRanges",value:function(e,t){"right"==t?this.options.rtl?(this.right=e-this.width,this.dom.box.style.right=this.right+"px"):(this.left=e-this.width,this.dom.box.style.left=this.left+"px"):"left"==t?this.options.rtl?(this.right=e,this.dom.box.style.right=this.right+"px"):(this.left=e,this.dom.box.style.left=this.left+"px"):this.options.rtl?(this.right=e-this.width/2,this.dom.box.style.right=this.right+"px"):(this.left=e-this.width/2,this.dom.box.style.left=this.left+"px")}},{key:"repositionXWithRanges",value:function(e,t){var n=Math.round(Math.max(t-e+.5,1));this.options.rtl?this.right=e:this.left=e,this.width=Math.max(n,this.minWidth||0),this.options.rtl?this.dom.box.style.right=this.right+"px":this.dom.box.style.left=this.left+"px",this.dom.box.style.width=n+"px"}},{key:"repositionY",value:function(){var e=this.options.orientation.item,t=this.dom.box;if(t.style.top="top"==e?(this.top||0)+"px":(this.parent.height-this.top-this.height||0)+"px",this.options.showStipes){if("top"==e)this.dom.line.style.top="0",this.dom.line.style.height=this.parent.top+this.top+1+"px",this.dom.line.style.bottom="";else{var n=this.parent.itemSet.props.height,r=n-this.parent.top-this.parent.height+this.top;this.dom.line.style.top=n-r+"px",this.dom.line.style.bottom="0"}this.dom.dot.style.top=-this.dom.dot.offsetHeight/2+"px"}}},{key:"getWidthLeft",value:function(){return this.width/2}},{key:"getWidthRight",value:function(){return this.width/2}},{key:"move",value:function(){this.repositionX(),this.repositionY()}},{key:"attach",value:function(){var e,t,n=rge(this.data.uiItems);try{for(n.s();!(t=n.n()).done;){t.value.cluster=this}}catch(e){n.e(e)}finally{n.f()}this.data.items=z4(e=this.data.uiItems).call(e,(function(e){return e.data})),this.attached=!0,this.dirty=!0}},{key:"detach",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.hasItems()){var t,n=rge(this.data.uiItems);try{for(n.s();!(t=n.n()).done;){delete t.value.cluster}}catch(e){n.e(e)}finally{n.f()}this.attached=!1,e&&this.group&&(this.group.remove(this),this.group=null),this.data.items=[],this.dirty=!0}}},{key:"_onDoubleClick",value:function(){this._fit()}},{key:"_setupRange",value:function(){var e,t,n,r=z4(e=this.data.uiItems).call(e,(function(e){return{start:e.data.start.valueOf(),end:e.data.end?e.data.end.valueOf():e.data.start.valueOf()}}));this.data.min=Math.min.apply(Math,w4(z4(r).call(r,(function(e){return Math.min(e.start,e.end||e.start)})))),this.data.max=Math.max.apply(Math,w4(z4(r).call(r,(function(e){return Math.max(e.start,e.end||e.start)}))));var i=z4(t=this.data.uiItems).call(t,(function(e){return e.center})),o=Lue(i).call(i,(function(e,t){return e+t}),0)/this.data.uiItems.length;Zde(n=this.data.uiItems).call(n,(function(e){return e.data.end}))?(this.data.start=new Date(this.data.min),this.data.end=new Date(this.data.max)):(this.data.start=new Date(o),this.data.end=null)}},{key:"_getUiItems",value:function(){var e,t=this;return this.data.uiItems&&this.data.uiItems.length?nee(e=this.data.uiItems).call(e,(function(e){return e.cluster===t})):[]}},{key:"_createDomElement",value:function(){if(!this.dom){var e;if(this.dom={},this.dom.box=document.createElement("DIV"),this.dom.content=document.createElement("DIV"),this.dom.content.className="vis-item-content",this.dom.box.appendChild(this.dom.content),this.options.showStipes&&(this.dom.line=document.createElement("DIV"),this.dom.line.className="vis-cluster-line",this.dom.line.style.display="none",this.dom.dot=document.createElement("DIV"),this.dom.dot.className="vis-cluster-dot",this.dom.dot.style.display="none"),this.options.fitOnDoubleClick)this.dom.box.ondblclick=m8(e=t.prototype._onDoubleClick).call(e,this);this.dom.box["vis-item"]=this,this.dirty=!0}}},{key:"_appendDomElement",value:function(){if(!this.parent)throw new Error("Cannot redraw item: no parent attached");if(!this.dom.box.parentNode){var e=this.parent.dom.foreground;if(!e)throw new Error("Cannot redraw item: parent has no foreground container element");e.appendChild(this.dom.box)}var t=this.parent.dom.background;if(this.options.showStipes){if(!this.dom.line.parentNode){if(!t)throw new Error("Cannot redraw item: parent has no background container element");t.appendChild(this.dom.line)}if(!this.dom.dot.parentNode){var n=this.parent.dom.axis;if(!t)throw new Error("Cannot redraw item: parent has no axis container element");n.appendChild(this.dom.dot)}}this.displayed=!0}},{key:"_updateDirtyDomComponents",value:function(){if(this.dirty){this._updateContents(this.dom.content),this._updateDataAttributes(this.dom.box),this._updateStyle(this.dom.box);var e=this.baseClassName+" "+(this.data.className?" "+this.data.className:"")+(this.selected?" vis-selected":"")+" vis-readonly";this.dom.box.className="vis-item "+e,this.options.showStipes&&(this.dom.line.className="vis-item vis-cluster-line "+(this.selected?" vis-selected":""),this.dom.dot.className="vis-item vis-cluster-dot "+(this.selected?" vis-selected":"")),this.data.end&&(this.dom.content.style.maxWidth="none")}}},{key:"_getDomComponentsSizes",value:function(){var e={previous:{right:this.dom.box.style.right,left:this.dom.box.style.left},box:{width:this.dom.box.offsetWidth,height:this.dom.box.offsetHeight}};return this.options.showStipes&&(e.dot={height:this.dom.dot.offsetHeight,width:this.dom.dot.offsetWidth},e.line={width:this.dom.line.offsetWidth}),e}},{key:"_updateDomComponentsSizes",value:function(e){this.options.rtl?this.dom.box.style.right="0px":this.dom.box.style.left="0px",this.data.end?this.minWidth=e.box.width:this.width=e.box.width,this.height=e.box.height,this.options.rtl?this.dom.box.style.right=e.previous.right:this.dom.box.style.left=e.previous.left,this.dirty=!1}},{key:"_repaintDomAdditionals",value:function(){this._repaintOnItemUpdateTimeTooltip(this.dom.box)}},{key:"_isStipeVisible",value:function(){return this.minWidth>=this.width||!this.data.end}},{key:"_getFitRange",value:function(){var e=.05*(this.data.max-this.data.min)/2;return{fitStart:this.data.min-e,fitEnd:this.data.max+e}}},{key:"_fit",value:function(){if(this.emitter){var e=this._getFitRange(),t=e.fitStart,n=e.fitEnd,r={start:new Date(t),end:new Date(n),animation:!0};this.emitter.emit("fit",r)}}},{key:"_getItemData",value:function(){return this.data}}]),t}();function sge(e,t){var n=void 0!==x4&&h2(e)||e["@@iterator"];if(!n){if(j4(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return lge(e,t);var r=O4(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return G1(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lge(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function lge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}age.prototype.baseClassName="vis-item vis-range vis-cluster";var uge="__ungrouped__",cge=function(){function e(t){p2(this,e),this.itemSet=t,this.groups={},this.cache={},this.cache[-1]=[]}return k6(e,[{key:"createClusterItem",value:function(e,t,n){return new age(e,t,n)}},{key:"setItems",value:function(e,t){this.items=e||[],this.dataChanged=!0,this.applyOnChangedLevel=!1,t&&t.applyOnChangedLevel&&(this.applyOnChangedLevel=t.applyOnChangedLevel)}},{key:"updateData",value:function(){this.dataChanged=!0,this.applyOnChangedLevel=!1}},{key:"getClusters",value:function(e,t,n){var r="boolean"==typeof n?{}:n,i=r.maxItems,o=r.clusterCriteria;o||(o=function(){return!0}),i=i||1;var a=-1,s=0;if(t>0){if(t>=1)return[];a=Math.abs(Math.round(Math.log(100/t)/Math.log(2))),s=Math.abs(Math.pow(2,a))}if(this.dataChanged){var l=a!=this.cacheLevel;(!this.applyOnChangedLevel||l)&&(this._dropLevelsCache(),this._filterData())}this.cacheLevel=a;var u=this.cache[a];if(!u){for(var c in u=[],this.groups)if(this.groups.hasOwnProperty(c))for(var d=this.groups[c],h=d.length,p=0;p<h;){for(var f=d[p],m=1,v=p-1;v>=0&&f.center-d[v].center<s/2;)!d[v].cluster&&o(f.data,d[v].data)&&m++,v--;for(var g=p+1;g<d.length&&d[g].center-f.center<s/2;)o(f.data,d[g].data)&&m++,g++;for(var y=u.length-1;y>=0&&f.center-u[y].center<s;)f.group==u[y].group&&o(f.data,u[y].data)&&m++,y--;if(m>i){for(var b=m-i+1,w=[],x=p;w.length<b&&x<d.length;)o(d[p].data,d[x].data)&&w.push(d[x]),x++;var _=this.itemSet.getGroupId(f.data),S=this.itemSet.groups[_]||this.itemSet.groups[uge],k=this._getClusterForItems(w,S,e,n);u.push(k),p+=b}else delete f.cluster,p+=1}this.cache[a]=u}return u}},{key:"_filterData",value:function(){var e={};this.groups=e;for(var t=0,n=mee(this.items);t<n.length;t++){var r=n[t],i=r.parent?r.parent.groupId:"",o=e[i];o||(o=[],e[i]=o),o.push(r),r.data.start&&(r.data.end?r.center=(r.data.start.valueOf()+r.data.end.valueOf())/2:r.center=r.data.start.valueOf())}for(var a in e){var s;if(e.hasOwnProperty(a))Gde(s=e[a]).call(s,(function(e,t){return e.center-t.center}))}this.dataChanged=!1}},{key:"_getClusterForItems",value:function(e,t,n,r){var i,o,a=z4(i=n||[]).call(i,(function(e){var t;return{cluster:e,itemsIds:new ode(z4(t=e.data.uiItems).call(t,(function(e){return e.id})))}}));if(a.length){var s,l=sge(a);try{var u=function(){var t=s.value;if(t.itemsIds.size===e.length&&nge(e).call(e,(function(e){return t.itemsIds.has(e.id)})))return o=t.cluster,1};for(l.s();!(s=l.n()).done&&!u(););}catch(e){l.e(e)}finally{l.f()}}if(o)return o.setUiItems(e),o.group!==t&&(o.group&&o.group.remove(o),t&&(t.add(o),o.group=t)),o;var c=r.titleTemplate||"",d={toScreen:this.itemSet.body.util.toScreen,toTime:this.itemSet.body.util.toTime},h=c.replace(/{count}/,e.length),p='<div title="'+h+'">'+e.length+"</div>",f=_7({},r,this.itemSet.options),m={content:p,title:h,group:t,uiItems:e,eventEmitter:this.itemSet.body.emitter,range:this.itemSet.body.range};return o=this.createClusterItem(m,d,f),t&&(t.add(o),o.group=t),o.attach(),o}},{key:"_dropLevelsCache",value:function(){this.cache={},this.cacheLevel=-1,this.cache[this.cacheLevel]=[]}}]),e}();Rme('\n.vis-itemset {\n position: relative;\n padding: 0;\n margin: 0;\n\n box-sizing: border-box;\n}\n\n.vis-itemset .vis-background,\n.vis-itemset .vis-foreground {\n position: absolute;\n width: 100%;\n height: 100%;\n overflow: visible;\n}\n\n.vis-axis {\n position: absolute;\n width: 100%;\n height: 0;\n left: 0;\n z-index: 1;\n}\n\n.vis-foreground .vis-group {\n position: relative;\n box-sizing: border-box;\n border-bottom: 1px solid #bfbfbf;\n}\n\n.vis-foreground .vis-group:last-child {\n border-bottom: none;\n}\n\n.vis-nesting-group {\n cursor: pointer;\n}\n\n.vis-label.vis-nested-group.vis-group-level-unknown-but-gte1 {\n background: #f5f5f5;\n}\n.vis-label.vis-nested-group.vis-group-level-0 {\n background-color: #ffffff;\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {\n padding-left: 0;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-0 .vis-inner {\n padding-right: 0;\n}\n.vis-label.vis-nested-group.vis-group-level-1 {\n background-color: rgba(0, 0, 0, 0.05);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {\n padding-left: 15px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-1 .vis-inner {\n padding-right: 15px;\n}\n.vis-label.vis-nested-group.vis-group-level-2 {\n background-color: rgba(0, 0, 0, 0.1);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {\n padding-left: 30px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-2 .vis-inner {\n padding-right: 30px;\n}\n.vis-label.vis-nested-group.vis-group-level-3 {\n background-color: rgba(0, 0, 0, 0.15);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {\n padding-left: 45px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-3 .vis-inner {\n padding-right: 45px;\n}\n.vis-label.vis-nested-group.vis-group-level-4 {\n background-color: rgba(0, 0, 0, 0.2);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {\n padding-left: 60px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-4 .vis-inner {\n padding-right: 60px;\n}\n.vis-label.vis-nested-group.vis-group-level-5 {\n background-color: rgba(0, 0, 0, 0.25);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {\n padding-left: 75px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-5 .vis-inner {\n padding-right: 75px;\n}\n.vis-label.vis-nested-group.vis-group-level-6 {\n background-color: rgba(0, 0, 0, 0.3);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {\n padding-left: 90px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-6 .vis-inner {\n padding-right: 90px;\n}\n.vis-label.vis-nested-group.vis-group-level-7 {\n background-color: rgba(0, 0, 0, 0.35);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {\n padding-left: 105px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-7 .vis-inner {\n padding-right: 105px;\n}\n.vis-label.vis-nested-group.vis-group-level-8 {\n background-color: rgba(0, 0, 0, 0.4);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {\n padding-left: 120px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-8 .vis-inner {\n padding-right: 120px;\n}\n.vis-label.vis-nested-group.vis-group-level-9 {\n background-color: rgba(0, 0, 0, 0.45);\n}\n.vis-ltr .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {\n padding-left: 135px;\n}\n.vis-rtl .vis-label.vis-nested-group.vis-group-level-9 .vis-inner {\n padding-right: 135px;\n}\n/* default takes over beginning with level-10 (thats why we add .vis-nested-group\n to the selectors above, to have higher specifity than these rules for the defaults) */\n.vis-label.vis-nested-group {\n background-color: rgba(0, 0, 0, 0.5);\n}\n.vis-ltr .vis-label.vis-nested-group .vis-inner {\n padding-left: 150px;\n}\n.vis-rtl .vis-label.vis-nested-group .vis-inner {\n padding-right: 150px;\n}\n\n.vis-group-level-unknown-but-gte1 {\n border: 1px solid red;\n}\n\n/* expanded/collapsed indicators */\n.vis-label.vis-nesting-group:before,\n.vis-label.vis-nesting-group:before {\n display: inline-block;\n width: 15px;\n}\n.vis-label.vis-nesting-group.expanded:before {\n content: "\\25BC";\n}\n.vis-label.vis-nesting-group.collapsed:before {\n content: "\\25B6";\n}\n.vis-rtl .vis-label.vis-nesting-group.collapsed:before {\n content: "\\25C0";\n}\n/* compensate missing expanded/collapsed indicator, but only at levels > 0 */\n.vis-ltr .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {\n padding-left: 15px;\n}\n.vis-rtl .vis-label:not(.vis-nesting-group):not(.vis-group-level-0) {\n padding-right: 15px;\n}\n\n.vis-overlay {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 10;\n}');function dge(e,t){var n=void 0!==x4&&h2(e)||e["@@iterator"];if(!n){if(j4(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return hge(e,t);var r=O4(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return G1(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hge(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function hge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pge(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}Rme("\n.vis-labelset {\n position: relative;\n\n overflow: hidden;\n\n box-sizing: border-box;\n}\n\n.vis-labelset .vis-label {\n position: relative;\n left: 0;\n top: 0;\n width: 100%;\n color: #4d4d4d;\n\n box-sizing: border-box;\n}\n\n.vis-labelset .vis-label {\n border-bottom: 1px solid #bfbfbf;\n}\n\n.vis-labelset .vis-label.draggable {\n cursor: pointer;\n}\n\n.vis-group-is-dragging {\n background: rgba(0, 0, 0, .1);\n}\n\n.vis-labelset .vis-label:last-child {\n border-bottom: none;\n}\n\n.vis-labelset .vis-label .vis-inner {\n display: inline-block;\n padding: 5px;\n}\n\n.vis-labelset .vis-label .vis-inner.vis-hidden {\n padding: 0;\n}\n");var fge="__ungrouped__",mge="__background__",vge=function(){Pie(t,ome);var e=pge(t);function t(n,r){var i;p2(this,t),(i=e.call(this)).body=n,i.defaultOptions={type:null,orientation:{item:"bottom"},align:"auto",stack:!0,stackSubgroups:!0,groupOrderSwap:function(e,t,n){var r=t.order;t.order=e.order,e.order=r},groupOrder:"order",selectable:!0,multiselect:!1,longSelectPressTime:251,itemsAlwaysDraggable:{item:!1,range:!1},editable:{updateTime:!1,updateGroup:!1,add:!1,remove:!1,overrideItems:!1},groupEditable:{order:!1,add:!1,remove:!1},snap:Pme.snap,onDropObjectOnItem:function(e,t,n){n(t)},onAdd:function(e,t){t(e)},onUpdate:function(e,t){t(e)},onMove:function(e,t){t(e)},onRemove:function(e,t){t(e)},onMoving:function(e,t){t(e)},onAddGroup:function(e,t){t(e)},onMoveGroup:function(e,t){t(e)},onRemoveGroup:function(e,t){t(e)},margin:{item:{horizontal:10,vertical:10},axis:20},showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:500},tooltipOnItemUpdateTime:!1},i.options=qfe.extend({},i.defaultOptions),i.options.rtl=r.rtl,i.options.onTimeout=r.onTimeout,i.conversion={toScreen:n.util.toScreen,toTime:n.util.toTime},i.dom={},i.props={},i.hammer=null;var o=Cie(i);return i.itemsData=null,i.groupsData=null,i.itemsSettingTime=null,i.initialItemSetDrawn=!1,i.userContinueNotBail=null,i.sequentialSelection=!1,i.itemListeners={add:function(e,t,n){o._onAdd(t.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},update:function(e,t,n){o._onUpdate(t.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()},remove:function(e,t,n){o._onRemove(t.items),o.options.cluster&&o.clusterGenerator.setItems(o.items,{applyOnChangedLevel:!1}),o.redraw()}},i.groupListeners={add:function(e,t,n){if(o._onAddGroups(t.items),o.groupsData&&o.groupsData.length>0){var r,i=o.groupsData.getDataSet();O8(r=i.get()).call(r,(function(e){if(e.nestedGroups){var t;0!=e.showNested&&(e.showNested=!0);var r=[];O8(t=e.nestedGroups).call(t,(function(t){var n=i.get(t);n&&(n.nestedInGroup=e.id,0==e.showNested&&(n.visible=!1),r=E4(r).call(r,n))})),i.update(r,n)}}))}},update:function(e,t,n){o._onUpdateGroups(t.items)},remove:function(e,t,n){o._onRemoveGroups(t.items)}},i.items={},i.groups={},i.groupIds=[],i.selection=[],i.popup=null,i.popupTimer=null,i.touchParams={},i.groupTouchParams={group:null,isDragging:!1},i._create(),i.setOptions(r),i.clusters=[],i}return k6(t,[{key:"_create",value:function(){var e,t,n,r,i,o,a,s,l,u,c,d,h,p,f,m=this,v=document.createElement("div");v.className="vis-itemset",v["vis-itemset"]=this,this.dom.frame=v;var g=document.createElement("div");g.className="vis-background",v.appendChild(g),this.dom.background=g;var y=document.createElement("div");y.className="vis-foreground",v.appendChild(y),this.dom.foreground=y;var b=document.createElement("div");b.className="vis-axis",this.dom.axis=b;var w=document.createElement("div");w.className="vis-labelset",this.dom.labelSet=w,this._updateUngrouped();var x=new Lve(mge,null,this);x.show(),this.groups[mge]=x,this.hammer=new Ame(this.body.dom.centerContainer),this.hammer.on("hammer.input",(function(e){e.isFirst&&m._onTouch(e)})),this.hammer.on("panstart",m8(e=this._onDragStart).call(e,this)),this.hammer.on("panmove",m8(t=this._onDrag).call(t,this)),this.hammer.on("panend",m8(n=this._onDragEnd).call(n,this)),this.hammer.get("pan").set({threshold:5,direction:Ame.ALL}),this.hammer.get("press").set({time:1e4}),this.hammer.on("tap",m8(r=this._onSelectItem).call(r,this)),this.hammer.on("press",m8(i=this._onMultiSelectItem).call(i,this)),this.hammer.get("press").set({time:1e4}),this.hammer.on("doubletap",m8(o=this._onAddItem).call(o,this)),this.options.rtl?this.groupHammer=new Ame(this.body.dom.rightContainer):this.groupHammer=new Ame(this.body.dom.leftContainer),this.groupHammer.on("tap",m8(a=this._onGroupClick).call(a,this)),this.groupHammer.on("panstart",m8(s=this._onGroupDragStart).call(s,this)),this.groupHammer.on("panmove",m8(l=this._onGroupDrag).call(l,this)),this.groupHammer.on("panend",m8(u=this._onGroupDragEnd).call(u,this)),this.groupHammer.get("pan").set({threshold:5,direction:Ame.DIRECTION_VERTICAL}),this.body.dom.centerContainer.addEventListener("mouseover",m8(c=this._onMouseOver).call(c,this)),this.body.dom.centerContainer.addEventListener("mouseout",m8(d=this._onMouseOut).call(d,this)),this.body.dom.centerContainer.addEventListener("mousemove",m8(h=this._onMouseMove).call(h,this)),this.body.dom.centerContainer.addEventListener("contextmenu",m8(p=this._onDragEnd).call(p,this)),this.body.dom.centerContainer.addEventListener("mousewheel",m8(f=this._onMouseWheel).call(f,this)),this.show()}},{key:"setOptions",value:function(e){var t=this;if(e){var n,r;qfe.selectiveExtend(["type","rtl","align","order","stack","stackSubgroups","selectable","multiselect","sequentialSelection","multiselectPerGroup","longSelectPressTime","groupOrder","dataAttributes","template","groupTemplate","visibleFrameTemplate","hide","snap","groupOrderSwap","showTooltips","tooltip","tooltipOnItemUpdateTime","groupHeightMode","onTimeout"],this.options,e),"itemsAlwaysDraggable"in e&&("boolean"==typeof e.itemsAlwaysDraggable?(this.options.itemsAlwaysDraggable.item=e.itemsAlwaysDraggable,this.options.itemsAlwaysDraggable.range=!1):"object"===w6(e.itemsAlwaysDraggable)&&(qfe.selectiveExtend(["item","range"],this.options.itemsAlwaysDraggable,e.itemsAlwaysDraggable),this.options.itemsAlwaysDraggable.item||(this.options.itemsAlwaysDraggable.range=!1))),"sequentialSelection"in e&&"boolean"==typeof e.sequentialSelection&&(this.options.sequentialSelection=e.sequentialSelection),"orientation"in e&&("string"==typeof e.orientation?this.options.orientation.item="top"===e.orientation?"top":"bottom":"object"===w6(e.orientation)&&"item"in e.orientation&&(this.options.orientation.item=e.orientation.item)),"margin"in e&&("number"==typeof e.margin?(this.options.margin.axis=e.margin,this.options.margin.item.horizontal=e.margin,this.options.margin.item.vertical=e.margin):"object"===w6(e.margin)&&(qfe.selectiveExtend(["axis"],this.options.margin,e.margin),"item"in e.margin&&("number"==typeof e.margin.item?(this.options.margin.item.horizontal=e.margin.item,this.options.margin.item.vertical=e.margin.item):"object"===w6(e.margin.item)&&qfe.selectiveExtend(["horizontal","vertical"],this.options.margin.item,e.margin.item)))),O8(n=["locale","locales"]).call(n,(function(n){n in e&&(t.options[n]=e[n])})),"editable"in e&&("boolean"==typeof e.editable?(this.options.editable.updateTime=e.editable,this.options.editable.updateGroup=e.editable,this.options.editable.add=e.editable,this.options.editable.remove=e.editable,this.options.editable.overrideItems=!1):"object"===w6(e.editable)&&qfe.selectiveExtend(["updateTime","updateGroup","add","remove","overrideItems"],this.options.editable,e.editable)),"groupEditable"in e&&("boolean"==typeof e.groupEditable?(this.options.groupEditable.order=e.groupEditable,this.options.groupEditable.add=e.groupEditable,this.options.groupEditable.remove=e.groupEditable):"object"===w6(e.groupEditable)&&qfe.selectiveExtend(["order","add","remove"],this.options.groupEditable,e.groupEditable));O8(r=["onDropObjectOnItem","onAdd","onUpdate","onRemove","onMove","onMoving","onAddGroup","onMoveGroup","onRemoveGroup"]).call(r,(function(n){var r=e[n];if(r){var i;if("function"!=typeof r)throw new Error(E4(i="option ".concat(n," must be a function ")).call(i,n,"(item, callback)"));t.options[n]=r}})),e.cluster?(_7(this.options,{cluster:e.cluster}),this.clusterGenerator||(this.clusterGenerator=new cge(this)),this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.clusterGenerator?(this._detachAllClusters(),this.clusters=[],this.clusterGenerator=null,this.options.cluster=void 0,this.markDirty({refreshItems:!0,restackGroups:!0}),this.redraw()):this.markDirty()}}},{key:"markDirty",value:function(e){this.groupIds=[],e&&(e.refreshItems&&O8(qfe).call(qfe,this.items,(function(e){e.dirty=!0,e.displayed&&e.redraw()})),e.restackGroups&&O8(qfe).call(qfe,this.groups,(function(e,t){t!==mge&&(e.stackDirty=!0)})))}},{key:"destroy",value:function(){this.clearPopupTimer(),this.hide(),this.setItems(null),this.setGroups(null),this.hammer&&this.hammer.destroy(),this.groupHammer&&this.groupHammer.destroy(),this.hammer=null,this.body=null,this.conversion=null}},{key:"hide",value:function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.axis.parentNode&&this.dom.axis.parentNode.removeChild(this.dom.axis),this.dom.labelSet.parentNode&&this.dom.labelSet.parentNode.removeChild(this.dom.labelSet)}},{key:"show",value:function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame),this.dom.axis.parentNode||this.body.dom.backgroundVertical.appendChild(this.dom.axis),this.dom.labelSet.parentNode||(this.options.rtl?this.body.dom.right.appendChild(this.dom.labelSet):this.body.dom.left.appendChild(this.dom.labelSet))}},{key:"setPopupTimer",value:function(e){if(this.clearPopupTimer(),e){var t=this.options.tooltip.delay||"number"==typeof this.options.tooltip.delay?this.options.tooltip.delay:500;this.popupTimer=_te((function(){e.show()}),t)}}},{key:"clearPopupTimer",value:function(){null!=this.popupTimer&&(clearTimeout(this.popupTimer),this.popupTimer=null)}},{key:"setSelection",value:function(e){var t;null==e&&(e=[]),j4(e)||(e=[e]);var n,r=nee(t=this.selection).call(t,(function(t){return-1===Qee(e).call(e,t)})),i=dge(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=this.getItemById(o);a&&a.unselect()}}catch(e){i.e(e)}finally{i.f()}this.selection=w4(e);var s,l=dge(e);try{for(l.s();!(s=l.n()).done;){var u=s.value,c=this.getItemById(u);c&&c.select()}}catch(e){l.e(e)}finally{l.f()}}},{key:"getSelection",value:function(){var e;return E4(e=this.selection).call(e,[])}},{key:"getVisibleItems",value:function(){var e,t,n=this.body.range.getRange();this.options.rtl?(e=this.body.util.toScreen(n.start),t=this.body.util.toScreen(n.end)):(t=this.body.util.toScreen(n.start),e=this.body.util.toScreen(n.end));var r=[];for(var i in this.groups)if(this.groups.hasOwnProperty(i)){var o,a=this.groups[i],s=dge(a.isVisible?a.visibleItems:[]);try{for(s.s();!(o=s.n()).done;){var l=o.value;this.options.rtl?l.right<t&&l.right+l.width>e&&r.push(l.id):l.left<e&&l.left+l.width>t&&r.push(l.id)}}catch(e){s.e(e)}finally{s.f()}}return r}},{key:"getItemsAtCurrentTime",value:function(e){var t,n;this.options.rtl?(t=this.body.util.toScreen(e),n=this.body.util.toScreen(e)):(n=this.body.util.toScreen(e),t=this.body.util.toScreen(e));var r=[];for(var i in this.groups)if(this.groups.hasOwnProperty(i)){var o,a=this.groups[i],s=dge(a.isVisible?a.visibleItems:[]);try{for(s.s();!(o=s.n()).done;){var l=o.value;this.options.rtl?l.right<n&&l.right+l.width>t&&r.push(l.id):l.left<t&&l.left+l.width>n&&r.push(l.id)}}catch(e){s.e(e)}finally{s.f()}}return r}},{key:"getVisibleGroups",value:function(){var e=[];for(var t in this.groups){if(this.groups.hasOwnProperty(t))this.groups[t].isVisible&&e.push(t)}return e}},{key:"getItemById",value:function(e){var t;return this.items[e]||fve(t=this.clusters).call(t,(function(t){return t.id===e}))}},{key:"_deselect",value:function(e){for(var t=this.selection,n=0,r=t.length;n<r;n++)if(t[n]==e){s7(t).call(t,n,1);break}}},{key:"redraw",value:function(){var e=this.options.margin,t=this.body.range,n=qfe.option.asSize,r=this.options,i=r.orientation.item,o=!1,a=this.dom.frame;this.props.top=this.body.domProps.top.height+this.body.domProps.border.top,this.options.rtl?this.props.right=this.body.domProps.right.width+this.body.domProps.border.right:this.props.left=this.body.domProps.left.width+this.body.domProps.border.left,a.className="vis-itemset",this.options.cluster&&this._clusterItems(),o=this._orderGroups()||o;var s=t.end-t.start,l=s!=this.lastVisibleInterval||this.props.width!=this.props.lastWidth,u=t.start!=this.lastRangeStart,c=r.stack!=this.lastStack,d=r.stackSubgroups!=this.lastStackSubgroups,h=l||u||c||d;this.lastVisibleInterval=s,this.lastRangeStart=t.start,this.lastStack=r.stack,this.lastStackSubgroups=r.stackSubgroups,this.props.lastWidth=this.props.width;var p=this._firstGroup(),f={item:e.item,axis:e.axis},m={item:e.item,axis:e.item.vertical/2},v=0,g=e.axis+e.item.vertical;this.groups[mge].redraw(t,m,h);var y={},b=0;if(O8(qfe).call(qfe,this.groups,(function(e,n){if(n!==mge){var r=e==p?f:m;y[n]=e.redraw(t,r,h,!0),b=y[n].length}})),b>0){for(var w={},x=function(e){O8(qfe).call(qfe,y,(function(t,n){w[n]=t[e]()}))},_=0;_<b;_++)x(_);O8(qfe).call(qfe,this.groups,(function(e,t){if(t!==mge){var n=w[t];o=n||o,v+=e.height}})),v=Math.max(v,g)}return v=Math.max(v,g),a.style.height=n(v),this.props.width=a.offsetWidth,this.props.height=v,this.dom.axis.style.top=n("top"==i?this.body.domProps.top.height+this.body.domProps.border.top:this.body.domProps.top.height+this.body.domProps.centerContainer.height),this.options.rtl?this.dom.axis.style.right="0":this.dom.axis.style.left="0",this.hammer.get("press").set({time:this.options.longSelectPressTime}),this.initialItemSetDrawn=!0,o=this._isResized()||o}},{key:"_firstGroup",value:function(){var e="top"==this.options.orientation.item?0:this.groupIds.length-1,t=this.groupIds[e];return this.groups[t]||this.groups[fge]||null}},{key:"_updateUngrouped",value:function(){var e,t,n=this.groups[fge];if(this.groupsData){if(n)for(t in n.dispose(),delete this.groups[fge],this.items)if(this.items.hasOwnProperty(t)){(e=this.items[t]).parent&&e.parent.remove(e);var r=this.getGroupId(e.data),i=this.groups[r];i&&i.add(e)||e.hide()}}else if(!n){for(t in n=new Nve(null,null,this),this.groups[fge]=n,this.items)this.items.hasOwnProperty(t)&&(e=this.items[t],n.add(e));n.show()}}},{key:"getLabelSet",value:function(){return this.dom.labelSet}},{key:"setItems",value:function(e){this.itemsSettingTime=new Date;var t,n=this,r=this.itemsData;if(e){if(!Bfe(e))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=zfe(e)}else this.itemsData=null;if(r&&(O8(qfe).call(qfe,this.itemListeners,(function(e,t){r.off(t,e)})),r.dispose(),t=r.getIds(),this._onRemove(t)),this.itemsData){var i=this.id;O8(qfe).call(qfe,this.itemListeners,(function(e,t){n.itemsData.on(t,e,i)})),t=this.itemsData.getIds(),this._onAdd(t),this._updateUngrouped()}this.body.emitter.emit("_change",{queue:!0})}},{key:"getItems",value:function(){return null!=this.itemsData?this.itemsData.rawDS:null}},{key:"setGroups",value:function(e){var t,n=this;if(this.groupsData&&(O8(qfe).call(qfe,this.groupListeners,(function(e,t){n.groupsData.off(t,e)})),t=this.groupsData.getIds(),this.groupsData=null,this._onRemoveGroups(t)),e){if(!Bfe(e))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=e}else this.groupsData=null;if(this.groupsData){var r,i=this.groupsData.getDataSet();O8(r=i.get()).call(r,(function(e){var t;e.nestedGroups&&O8(t=e.nestedGroups).call(t,(function(t){var n=i.get(t);n.nestedInGroup=e.id,0==e.showNested&&(n.visible=!1),i.update(n)}))}));var o=this.id;O8(qfe).call(qfe,this.groupListeners,(function(e,t){n.groupsData.on(t,e,o)})),t=this.groupsData.getIds(),this._onAddGroups(t)}this._updateUngrouped(),this._order(),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems(),this.markDirty({refreshItems:!0,restackGroups:!0})),this.body.emitter.emit("_change",{queue:!0})}},{key:"getGroups",value:function(){return this.groupsData}},{key:"removeItem",value:function(e){var t=this,n=this.itemsData.get(e);n&&this.options.onRemove(n,(function(n){n&&t.itemsData.remove(e)}))}},{key:"_getType",value:function(e){return e.type||this.options.type||(e.end?"range":"box")}},{key:"getGroupId",value:function(e){return"background"==this._getType(e)&&null==e.group?mge:this.groupsData?e.group:fge}},{key:"_onUpdate",value:function(e){var n=this,r=this;O8(e).call(e,(function(e){var i,o=r.itemsData.get(e),a=r.items[e],s=o?r._getType(o):null,l=t.types[s];if(a&&(l&&a instanceof l?r._updateItem(a,o):(i=a.selected,r._removeItem(a),a=null)),!a&&o){if(!l)throw new TypeError('Unknown item type "'.concat(s,'"'));(a=new l(o,r.conversion,r.options)).id=e,r._addItem(a),i&&(n.selection.push(e),a.select())}})),this._order(),this.options.cluster&&(this.clusterGenerator.setItems(this.items,{applyOnChangedLevel:!1}),this._clusterItems()),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemove",value:function(e){var t=0,n=this;O8(e).call(e,(function(e){var r=n.items[e];r&&(t++,n._removeItem(r))})),t&&(this._order(),this.body.emitter.emit("_change",{queue:!0}))}},{key:"_order",value:function(){O8(qfe).call(qfe,this.groups,(function(e){e.order()}))}},{key:"_onUpdateGroups",value:function(e){this._onAddGroups(e)}},{key:"_onAddGroups",value:function(e){var t=this;O8(e).call(e,(function(e){var n=t.groupsData.get(e),r=t.groups[e];if(r)r.setData(n);else{if(e==fge||e==mge)throw new Error("Illegal group id. ".concat(e," is a reserved id."));var i=Jee(t.options);for(var o in qfe.extend(i,{height:null}),r=new Nve(e,n,t),t.groups[e]=r,t.items)if(t.items.hasOwnProperty(o)){var a=t.items[o];a.data.group==e&&r.add(a)}r.order(),r.show()}})),this.body.emitter.emit("_change",{queue:!0})}},{key:"_onRemoveGroups",value:function(e){var t=this;O8(e).call(e,(function(e){var n=t.groups[e];n&&(n.dispose(),delete t.groups[e])})),this.options.cluster&&(this.clusterGenerator.updateData(),this._clusterItems()),this.markDirty({restackGroups:!!this.options.cluster}),this.body.emitter.emit("_change",{queue:!0})}},{key:"_orderGroups",value:function(){if(this.groupsData){var e=this.groupsData.getIds({order:this.options.groupOrder});e=this._orderNestedGroups(e);var t=!qfe.equalArray(e,this.groupIds);if(t){var n=this.groups;O8(e).call(e,(function(e){n[e].hide()})),O8(e).call(e,(function(e){n[e].show()})),this.groupIds=e}return t}return!1}},{key:"_orderNestedGroups",value:function(e){var t=this;return function e(t,n){var r=[];return O8(n).call(n,(function(n){if(r.push(n),t.groupsData.get(n).nestedGroups){var i,o=z4(i=t.groupsData.get({filter:function(e){return e.nestedInGroup==n},order:t.options.groupOrder})).call(i,(function(e){return e.id}));r=E4(r).call(r,e(t,o))}})),r}(this,nee(e).call(e,(function(e){return!t.groupsData.get(e).nestedInGroup})))}},{key:"_addItem",value:function(e){this.items[e.id]=e;var t=this.getGroupId(e.data),n=this.groups[t];n?n&&n.data&&n.data.showNested&&(e.groupShowing=!0):e.groupShowing=!1,n&&n.add(e)}},{key:"_updateItem",value:function(e,t){e.setData(t);var n=this.getGroupId(e.data),r=this.groups[n];r?r&&r.data&&r.data.showNested&&(e.groupShowing=!0):e.groupShowing=!1}},{key:"_removeItem",value:function(e){var t,n;e.hide(),delete this.items[e.id];var r=Qee(t=this.selection).call(t,e.id);-1!=r&&s7(n=this.selection).call(n,r,1),e.parent&&e.parent.remove(e),null!=this.popup&&this.popup.hide()}},{key:"_constructByEndArray",value:function(e){for(var t=[],n=0;n<e.length;n++)e[n]instanceof Vve&&t.push(e[n]);return t}},{key:"_onTouch",value:function(e){this.touchParams.item=this.itemFromTarget(e),this.touchParams.dragLeftItem=e.target.dragLeftItem||!1,this.touchParams.dragRightItem=e.target.dragRightItem||!1,this.touchParams.itemProps=null}},{key:"_getGroupIndex",value:function(e){for(var t=0;t<this.groupIds.length;t++)if(e==this.groupIds[t])return t}},{key:"_onDragStart",value:function(e){var t=this;if(!this.touchParams.itemIsDragging){var n,r=this.touchParams.item||null,i=this;if(r&&(r.selected||this.options.itemsAlwaysDraggable.item)){if(this.options.editable.overrideItems&&!this.options.editable.updateTime&&!this.options.editable.updateGroup)return;if(null!=r.editable&&!r.editable.updateTime&&!r.editable.updateGroup&&!this.options.editable.overrideItems)return;var o=this.touchParams.dragLeftItem,a=this.touchParams.dragRightItem;if(this.touchParams.itemIsDragging=!0,this.touchParams.selectedItem=r,o)n={item:o,initialX:e.center.x,dragLeft:!0,data:this._cloneItemData(r.data)},this.touchParams.itemProps=[n];else if(a)n={item:a,initialX:e.center.x,dragRight:!0,data:this._cloneItemData(r.data)},this.touchParams.itemProps=[n];else if(this.options.editable.add&&(e.srcEvent.ctrlKey||e.srcEvent.metaKey))this._onDragStartAddItem(e);else{this.groupIds.length<1&&this.redraw();var s=this._getGroupIndex(r.data.group),l=this.options.itemsAlwaysDraggable.item&&!r.selected?[r.id]:this.getSelection();this.touchParams.itemProps=z4(l).call(l,(function(n){var r=i.items[n],o=i._getGroupIndex(r.data.group);return{item:r,initialX:e.center.x,groupOffset:s-o,data:t._cloneItemData(r.data)}}))}e.stopPropagation()}else this.options.editable.add&&(e.srcEvent.ctrlKey||e.srcEvent.metaKey)&&this._onDragStartAddItem(e)}}},{key:"_onDragStartAddItem",value:function(e){var t=this.options.snap||null,n=this.dom.frame.getBoundingClientRect(),r=this.options.rtl?n.right-e.center.x+10:e.center.x-n.left-10,i=this.body.util.toTime(r),o=this.body.util.getScale(),a=this.body.util.getStep(),s=t?t(i,o,a):i,l={type:"range",start:s,end:s,content:"new item"},u=vpe();l[this.itemsData.idProp]=u;var c=this.groupFromTarget(e);c&&(l.group=c.groupId);var d=new Vve(l,this.conversion,this.options);d.id=u,d.data=this._cloneItemData(l),this._addItem(d),this.touchParams.selectedItem=d;var h={item:d,initialX:e.center.x,data:d.data};this.options.rtl?h.dragLeft=!0:h.dragRight=!0,this.touchParams.itemProps=[h],e.stopPropagation()}},{key:"_onDrag",value:function(e){var t=this;if(null!=this.popup&&this.options.showTooltips&&!this.popup.hidden){var n=this.body.dom.centerContainer,r=n.getBoundingClientRect();this.popup.setPosition(e.center.x-r.left+n.offsetLeft,e.center.y-r.top+n.offsetTop),this.popup.show()}if(this.touchParams.itemProps){var i;e.stopPropagation();var o=this,a=this.options.snap||null,s=this.body.dom.root.offsetLeft,l=this.options.rtl?s+this.body.domProps.right.width:s+this.body.domProps.left.width,u=this.body.util.getScale(),c=this.body.util.getStep(),d=this.touchParams.selectedItem,h=(this.options.editable.overrideItems||null==d.editable)&&this.options.editable.updateGroup||!this.options.editable.overrideItems&&null!=d.editable&&d.editable.updateGroup,p=null;if(h&&d&&null!=d.data.group){var f=o.groupFromTarget(e);f&&(p=this._getGroupIndex(f.groupId))}O8(i=this.touchParams.itemProps).call(i,(function(n){var r,i,s,f,m,v=o.body.util.toTime(e.center.x-l),g=o.body.util.toTime(n.initialX-l);r=t.options.rtl?-(v-g):v-g;var y=t._cloneItemData(n.item.data);if(null==n.item.editable||n.item.editable.updateTime||n.item.editable.updateGroup||o.options.editable.overrideItems){if((t.options.editable.overrideItems||null==d.editable)&&t.options.editable.updateTime||!t.options.editable.overrideItems&&null!=d.editable&&d.editable.updateTime)if(n.dragLeft)t.options.rtl?null!=y.end&&(s=qfe.convert(n.data.end,"Date"),m=new Date(s.valueOf()+r),y.end=a?a(m,u,c):m):null!=y.start&&(i=qfe.convert(n.data.start,"Date"),f=new Date(i.valueOf()+r),y.start=a?a(f,u,c):f);else if(n.dragRight)t.options.rtl?null!=y.start&&(i=qfe.convert(n.data.start,"Date"),f=new Date(i.valueOf()+r),y.start=a?a(f,u,c):f):null!=y.end&&(s=qfe.convert(n.data.end,"Date"),m=new Date(s.valueOf()+r),y.end=a?a(m,u,c):m);else if(null!=y.start)if(i=qfe.convert(n.data.start,"Date").valueOf(),f=new Date(i+r),null!=y.end){var b=(s=qfe.convert(n.data.end,"Date")).valueOf()-i.valueOf();y.start=a?a(f,u,c):f,y.end=new Date(y.start.valueOf()+b)}else y.start=a?a(f,u,c):f;if(h&&!n.dragLeft&&!n.dragRight&&null!=p&&null!=y.group){var w=p-n.groupOffset;w=Math.max(0,w),w=Math.min(o.groupIds.length-1,w),y.group=o.groupIds[w]}y=t._cloneItemData(y),o.options.onMoving(y,(function(e){e&&n.item.setData(t._cloneItemData(e,"Date"))}))}})),this.body.emitter.emit("_change")}}},{key:"_moveToGroup",value:function(e,t){var n=this.groups[t];if(n&&n.groupId!=e.data.group){var r=e.parent;r.remove(e),r.order(),e.data.group=n.groupId,n.add(e),n.order()}}},{key:"_onDragEnd",value:function(e){var t=this;if(this.touchParams.itemIsDragging=!1,this.touchParams.itemProps){e.stopPropagation();var n=this,r=this.touchParams.itemProps;this.touchParams.itemProps=null,O8(r).call(r,(function(e){var r=e.item.id;if(null!=n.itemsData.get(r)){var i=t._cloneItemData(e.item.data);n.options.onMove(i,(function(i){i?(i[t.itemsData.idProp]=r,t.itemsData.update(i)):(e.item.setData(e.data),n.body.emitter.emit("_change"))}))}else n.options.onAdd(e.item.data,(function(t){n._removeItem(e.item),t&&n.itemsData.add(t),n.body.emitter.emit("_change")}))}))}}},{key:"_onGroupClick",value:function(e){var t=this,n=this.groupFromTarget(e);_te((function(){t.toggleGroupShowNested(n)}),1)}},{key:"toggleGroupShowNested",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(e&&e.nestedGroups){var n=this.groupsData.getDataSet();e.showNested=null!=t?!!t:!e.showNested;var r=n.get(e.groupId);r.showNested=e.showNested;for(var i,o=e.nestedGroups,a=o;a.length>0;){var s=a;a=[];for(var l=0;l<s.length;l++){var u=n.get(s[l]);u.nestedGroups&&(a=E4(a).call(a,u.nestedGroups))}a.length>0&&(o=E4(o).call(o,a))}if(r.showNested){for(var c=n.get(r.nestedGroups),d=0;d<c.length;d++){var h=c[d];h.nestedGroups&&h.nestedGroups.length>0&&(null==h.showNested||1==h.showNested)&&c.push.apply(c,w4(n.get(h.nestedGroups)))}i=z4(c).call(c,(function(e){return null==e.visible&&(e.visible=!0),e.visible=!!r.showNested,e}))}else{var p;i=z4(p=n.get(o)).call(p,(function(e){return null==e.visible&&(e.visible=!0),e.visible=!!r.showNested,e}))}n.update(E4(i).call(i,r)),r.showNested?(qfe.removeClassName(e.dom.label,"collapsed"),qfe.addClassName(e.dom.label,"expanded")):(qfe.removeClassName(e.dom.label,"expanded"),qfe.addClassName(e.dom.label,"collapsed"))}}},{key:"toggleGroupDragClassName",value:function(e){e.dom.label.classList.toggle("vis-group-is-dragging"),e.dom.foreground.classList.toggle("vis-group-is-dragging")}},{key:"_onGroupDragStart",value:function(e){this.groupTouchParams.isDragging||this.options.groupEditable.order&&(this.groupTouchParams.group=this.groupFromTarget(e),this.groupTouchParams.group&&(e.stopPropagation(),this.groupTouchParams.isDragging=!0,this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.originalOrder=this.groupsData.getIds({order:this.options.groupOrder})))}},{key:"_onGroupDrag",value:function(e){if(this.options.groupEditable.order&&this.groupTouchParams.group){e.stopPropagation();var t=this.groupsData.getDataSet(),n=this.groupFromTarget(e);if(n&&n.height!=this.groupTouchParams.group.height){var r=n.top<this.groupTouchParams.group.top,i=e.center?e.center.y:e.clientY,o=n.dom.foreground.getBoundingClientRect(),a=this.groupTouchParams.group.height;if(r){if(o.top+a<i)return}else{var s=n.height;if(o.top+s-a>i)return}}if(n&&n!=this.groupTouchParams.group){var l=t.get(n.groupId),u=t.get(this.groupTouchParams.group.groupId);u&&l&&(this.options.groupOrderSwap(u,l,t),t.update(u),t.update(l));var c=t.getIds({order:this.options.groupOrder});if(!qfe.equalArray(c,this.groupTouchParams.originalOrder))for(var d=this.groupTouchParams.originalOrder,h=this.groupTouchParams.group.groupId,p=Math.min(d.length,c.length),f=0,m=0,v=0;f<p;){for(;f+m<p&&f+v<p&&c[f+m]==d[f+v];)f++;if(f+m>=p)break;if(c[f+m]==h)m=1;else if(d[f+v]==h)v=1;else{var g=Qee(c).call(c,d[f+v]),y=t.get(c[f+m]),b=t.get(d[f+v]);this.options.groupOrderSwap(y,b,t),t.update(y),t.update(b);var w=c[f+m];c[f+m]=d[f+v],c[g]=w,f++}}}}}},{key:"_onGroupDragEnd",value:function(e){if(this.groupTouchParams.isDragging=!1,this.options.groupEditable.order&&this.groupTouchParams.group){e.stopPropagation();var t=this,n=t.groupTouchParams.group.groupId,r=t.groupsData.getDataSet(),i=qfe.extend({},r.get(n));t.options.onMoveGroup(i,(function(e){if(e)e[r._idProp]=n,r.update(e);else{var i=r.getIds({order:t.options.groupOrder});if(!qfe.equalArray(i,t.groupTouchParams.originalOrder))for(var o=t.groupTouchParams.originalOrder,a=Math.min(o.length,i.length),s=0;s<a;){for(;s<a&&i[s]==o[s];)s++;if(s>=a)break;var l=Qee(i).call(i,o[s]),u=r.get(i[s]),c=r.get(o[s]);t.options.groupOrderSwap(u,c,r),r.update(u),r.update(c);var d=i[s];i[s]=o[s],i[l]=d,s++}}})),t.body.emitter.emit("groupDragged",{groupId:n}),this.toggleGroupDragClassName(this.groupTouchParams.group),this.groupTouchParams.group=null}}},{key:"_onSelectItem",value:function(e){if(this.options.selectable){var t=e.srcEvent&&(e.srcEvent.ctrlKey||e.srcEvent.metaKey),n=e.srcEvent&&e.srcEvent.shiftKey;if(t||n)this._onMultiSelectItem(e);else{var r=this.getSelection(),i=this.itemFromTarget(e),o=i&&i.selectable?[i.id]:[];this.setSelection(o);var a=this.getSelection();(a.length>0||r.length>0)&&this.body.emitter.emit("select",{items:a,event:e})}}}},{key:"_onMouseOver",value:function(e){var t=this.itemFromTarget(e);if(t&&t!==this.itemFromRelatedTarget(e)){var n=t.getTitle();if(this.options.showTooltips&&n){null==this.popup&&(this.popup=new $ve(this.body.dom.root,this.options.tooltip.overflowMethod||"flip")),this.popup.setText(n);var r=this.body.dom.centerContainer,i=r.getBoundingClientRect();this.popup.setPosition(e.clientX-i.left+r.offsetLeft,e.clientY-i.top+r.offsetTop),this.setPopupTimer(this.popup)}else this.clearPopupTimer(),null!=this.popup&&this.popup.hide();this.body.emitter.emit("itemover",{item:t.id,event:e})}}},{key:"_onMouseOut",value:function(e){var t=this.itemFromTarget(e);t&&(t!==this.itemFromRelatedTarget(e)&&(this.clearPopupTimer(),null!=this.popup&&this.popup.hide(),this.body.emitter.emit("itemout",{item:t.id,event:e})))}},{key:"_onMouseMove",value:function(e){if(this.itemFromTarget(e)&&(null!=this.popupTimer&&this.setPopupTimer(this.popup),this.options.showTooltips&&this.options.tooltip.followMouse&&this.popup&&!this.popup.hidden)){var t=this.body.dom.centerContainer,n=t.getBoundingClientRect();this.popup.setPosition(e.clientX-n.left+t.offsetLeft,e.clientY-n.top+t.offsetTop),this.popup.show()}}},{key:"_onMouseWheel",value:function(e){this.touchParams.itemIsDragging&&this._onDragEnd(e)}},{key:"_onUpdateItem",value:function(e){if(this.options.selectable&&(this.options.editable.updateTime||this.options.editable.updateGroup)){var t=this;if(e){var n=t.itemsData.get(e.id);this.options.onUpdate(n,(function(e){e&&t.itemsData.update(e)}))}}}},{key:"_onDropObjectOnItem",value:function(e){var t=this.itemFromTarget(e),n=JSON.parse(e.dataTransfer.getData("text"));this.options.onDropObjectOnItem(n,t)}},{key:"_onAddItem",value:function(e){if(this.options.selectable&&this.options.editable.add){var t,n,r=this,i=this.options.snap||null,o=this.dom.frame.getBoundingClientRect(),a=this.options.rtl?o.right-e.center.x:e.center.x-o.left,s=this.body.util.toTime(a),l=this.body.util.getScale(),u=this.body.util.getStep();"drop"==e.type?((n=JSON.parse(e.dataTransfer.getData("text"))).content=n.content?n.content:"new item",n.start=n.start?n.start:i?i(s,l,u):s,n.type=n.type||"box",n[this.itemsData.idProp]=n.id||vpe(),"range"!=n.type||n.end||(t=this.body.util.toTime(a+this.props.width/5),n.end=i?i(t,l,u):t)):((n={start:i?i(s,l,u):s,content:"new item"})[this.itemsData.idProp]=vpe(),"range"===this.options.type&&(t=this.body.util.toTime(a+this.props.width/5),n.end=i?i(t,l,u):t));var c=this.groupFromTarget(e);c&&(n.group=c.groupId),n=this._cloneItemData(n),this.options.onAdd(n,(function(t){t&&(r.itemsData.add(t),"drop"==e.type&&r.setSelection([t.id]))}))}}},{key:"_onMultiSelectItem",value:function(e){var n=this;if(this.options.selectable){var r=this.itemFromTarget(e);if(r){var i=this.options.multiselect?this.getSelection():[];if((e.srcEvent&&e.srcEvent.shiftKey||!1||this.options.sequentialSelection)&&this.options.multiselect){var o=this.itemsData.get(r.id).group,a=void 0;this.options.multiselectPerGroup&&i.length>0&&(a=this.itemsData.get(i[0]).group),this.options.multiselectPerGroup&&null!=a&&a!=o||i.push(r.id);var s=t._getItemRange(this.itemsData.get(i));if(!this.options.multiselectPerGroup||a==o)for(var l in i=[],this.items)if(this.items.hasOwnProperty(l)){var u=this.items[l],c=u.data.start,d=void 0!==u.data.end?u.data.end:c;!(c>=s.min&&d<=s.max)||this.options.multiselectPerGroup&&a!=this.itemsData.get(u.id).group||u instanceof Qve||i.push(u.id)}}else{var h=Qee(i).call(i,r.id);-1==h?i.push(r.id):s7(i).call(i,h,1)}var p=nee(i).call(i,(function(e){return n.getItemById(e).selectable}));this.setSelection(p),this.body.emitter.emit("select",{items:this.getSelection(),event:e})}}}},{key:"itemFromElement",value:function(e){for(var t=e;t;){if(t.hasOwnProperty("vis-item"))return t["vis-item"];t=t.parentNode}return null}},{key:"itemFromTarget",value:function(e){return this.itemFromElement(e.target)}},{key:"itemFromRelatedTarget",value:function(e){return this.itemFromElement(e.relatedTarget)}},{key:"groupFromTarget",value:function(e){var t=e.center?e.center.y:e.clientY,n=this.groupIds;n.length<=0&&this.groupsData&&(n=this.groupsData.getIds({order:this.options.groupOrder}));for(var r=0;r<n.length;r++){var i=n[r],o=this.groups[i],a=o.dom.foreground,s=a.getBoundingClientRect();if(t>=s.top&&t<s.top+a.offsetHeight)return o;if("top"===this.options.orientation.item){if(r===this.groupIds.length-1&&t>s.top)return o}else if(0===r&&t<s.top+a.offset)return o}return null}},{key:"_cloneItemData",value:function(e,t){var n=qfe.extend({},e);return t||(t=this.itemsData.type),null!=n.start&&(n.start=qfe.convert(n.start,t&&t.start||"Date")),null!=n.end&&(n.end=qfe.convert(n.end,t&&t.end||"Date")),n}},{key:"_clusterItems",value:function(){if(this.options.cluster){var e=this.body.range.conversion(this.body.domProps.center.width).scale,t=this.clusterGenerator.getClusters(this.clusters,e,this.options.cluster);if(this.clusters!=t){if(this._detachAllClusters(),t){var n,r=dge(t);try{for(r.s();!(n=r.n()).done;){n.value.attach()}}catch(e){r.e(e)}finally{r.f()}this.clusters=t}this._updateClusters(t)}}}},{key:"_detachAllClusters",value:function(){if(this.options.cluster&&this.clusters&&this.clusters.length){var e,t=dge(this.clusters);try{for(t.s();!(e=t.n()).done;){e.value.detach()}}catch(e){t.e(e)}finally{t.f()}}}},{key:"_updateClusters",value:function(e){if(this.clusters&&this.clusters.length){var t,n,r=new ode(z4(e).call(e,(function(e){return e.id}))),i=nee(t=this.clusters).call(t,(function(e){return!r.has(e.id)})),o=!1,a=dge(i);try{for(a.s();!(n=a.n()).done;){var s,l,u=n.value,c=Qee(s=this.selection).call(s,u.id);if(-1!==c)u.unselect(),s7(l=this.selection).call(l,c,1),o=!0}}catch(e){a.e(e)}finally{a.f()}if(o){var d=this.getSelection();this.body.emitter.emit("select",{items:d,event:event})}}this.clusters=e||[]}}],[{key:"_getItemRange",value:function(e){var t=null,n=null;return O8(e).call(e,(function(e){(null==n||e.start<n)&&(n=e.start),null!=e.end?(null==t||e.end>t)&&(t=e.end):(null==t||e.start>t)&&(t=e.start)})),{min:n,max:t}}},{key:"itemSetFromTarget",value:function(e){for(var t=e.target;t;){if(t.hasOwnProperty("vis-itemset"))return t["vis-itemset"];t=t.parentNode}return null}}]),t}();vge.types={background:Qve,box:Yve,range:Vve,point:Wve},vge.prototype._onAdd=vge.prototype._onUpdate;var gge,yge=!1,bge="background: #FFeeee; color: #dd0000",wge=function(){function e(){p2(this,e)}return k6(e,null,[{key:"validate",value:function(t,n,r){yge=!1,gge=n;var i=n;return void 0!==r&&(i=n[r]),e.parse(t,i,[]),yge}},{key:"parse",value:function(t,n,r){for(var i in t)t.hasOwnProperty(i)&&e.check(i,t,n,r)}},{key:"check",value:function(t,n,r,i){if(void 0!==r[t]||void 0!==r.__any__){var o=t,a=!0;void 0===r[t]&&void 0!==r.__any__&&(o="__any__",a="object"===e.getType(n[t]));var s=r[o];a&&void 0!==s.__type__&&(s=s.__type__),e.checkFields(t,n,r,o,s,i)}else e.getSuggestion(t,r,i)}},{key:"checkFields",value:function(t,n,r,i,o,a){var s=function(n){console.log("%c"+n+e.printLocation(a,t),bge)},l=e.getType(n[t]),u=o[l];void 0!==u?"array"===e.getType(u)&&-1===Qee(u).call(u,n[t])?(s('Invalid option detected in "'+t+'". Allowed values are:'+e.print(u)+' not "'+n[t]+'". '),yge=!0):"object"===l&&"__any__"!==i&&(a=qfe.copyAndExtendArray(a,t),e.parse(n[t],r[i],a)):void 0===o.any&&(s('Invalid type received for "'+t+'". Expected: '+e.print(V4(o))+". Received ["+l+'] "'+n[t]+'"'),yge=!0)}},{key:"getType",value:function(e){var t=w6(e);return"object"===t?null===e?"null":e instanceof Boolean?"boolean":e instanceof Number?"number":e instanceof String?"string":j4(e)?"array":e instanceof Date?"date":void 0!==e.nodeType?"dom":!0===e._isAMomentObject?"moment":"object":"number"===t?"number":"boolean"===t?"boolean":"string"===t?"string":void 0===t?"undefined":t}},{key:"getSuggestion",value:function(t,n,r){var i,o=e.findInOptions(t,n,r,!1),a=e.findInOptions(t,gge,[],!0);i=void 0!==o.indexMatch?" in "+e.printLocation(o.path,t,"")+'Perhaps it was incomplete? Did you mean: "'+o.indexMatch+'"?\n\n':a.distance<=4&&o.distance>a.distance?" in "+e.printLocation(o.path,t,"")+"Perhaps it was misplaced? Matching option found at: "+e.printLocation(a.path,a.closestMatch,""):o.distance<=8?'. Did you mean "'+o.closestMatch+'"?'+e.printLocation(o.path,t):". Did you mean one of these: "+e.print(V4(n))+e.printLocation(r,t),console.log('%cUnknown option detected: "'+t+'"'+i,bge),yge=!0}},{key:"findInOptions",value:function(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=1e9,a="",s=[],l=t.toLowerCase(),u=void 0;for(var c in n){var d=void 0;if(void 0!==n[c].__type__&&!0===i){var h=e.findInOptions(t,n[c],qfe.copyAndExtendArray(r,c));o>h.distance&&(a=h.closestMatch,s=h.path,o=h.distance,u=h.indexMatch)}else{var p;-1!==Qee(p=c.toLowerCase()).call(p,l)&&(u=c),o>(d=e.levenshteinDistance(t,c))&&(a=c,s=qfe.copyArray(r),o=d)}}return{closestMatch:a,path:s,distance:o,indexMatch:u}}},{key:"printLocation",value:function(e,t){for(var n="\n\n"+(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Problem value found at: \n")+"options = {\n",r=0;r<e.length;r++){for(var i=0;i<r+1;i++)n+=" ";n+=e[r]+": {\n"}for(var o=0;o<e.length+1;o++)n+=" ";n+=t+"\n";for(var a=0;a<e.length+1;a++){for(var s=0;s<e.length-a;s++)n+=" ";n+="}\n"}return n+"\n\n"}},{key:"print",value:function(e){return nte(e).replace(/(\")|(\[)|(\])|(,"__type__")/g,"").replace(/(\,)/g,", ")}},{key:"levenshteinDistance",value:function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;var n,r,i=[];for(n=0;n<=t.length;n++)i[n]=[n];for(r=0;r<=e.length;r++)i[0][r]=r;for(n=1;n<=t.length;n++)for(r=1;r<=e.length;r++)t.charAt(n-1)==e.charAt(r-1)?i[n][r]=i[n-1][r-1]:i[n][r]=Math.min(i[n-1][r-1]+1,Math.min(i[n][r-1]+1,i[n-1][r]+1));return i[t.length][e.length]}}]),e}(),xge="string",_ge="boolean",Sge="number",kge="array",Tge="date",Cge="object",Ege="moment",Oge={configure:{enabled:{boolean:_ge},filter:{boolean:_ge,function:"function"},container:{dom:"dom"},__type__:{object:Cge,boolean:_ge,function:"function"}},align:{string:xge},alignCurrentTime:{string:xge,undefined:"undefined"},rtl:{boolean:_ge,undefined:"undefined"},rollingMode:{follow:{boolean:_ge},offset:{number:Sge,undefined:"undefined"},__type__:{object:Cge}},onTimeout:{timeoutMs:{number:Sge},callback:{function:"function"},__type__:{object:Cge}},verticalScroll:{boolean:_ge,undefined:"undefined"},horizontalScroll:{boolean:_ge,undefined:"undefined"},autoResize:{boolean:_ge},throttleRedraw:{number:Sge},clickToUse:{boolean:_ge},dataAttributes:{string:xge,array:kge},editable:{add:{boolean:_ge,undefined:"undefined"},remove:{boolean:_ge,undefined:"undefined"},updateGroup:{boolean:_ge,undefined:"undefined"},updateTime:{boolean:_ge,undefined:"undefined"},overrideItems:{boolean:_ge,undefined:"undefined"},__type__:{boolean:_ge,object:Cge}},end:{number:Sge,date:Tge,string:xge,moment:Ege},format:{minorLabels:{millisecond:{string:xge,undefined:"undefined"},second:{string:xge,undefined:"undefined"},minute:{string:xge,undefined:"undefined"},hour:{string:xge,undefined:"undefined"},weekday:{string:xge,undefined:"undefined"},day:{string:xge,undefined:"undefined"},week:{string:xge,undefined:"undefined"},month:{string:xge,undefined:"undefined"},year:{string:xge,undefined:"undefined"},__type__:{object:Cge,function:"function"}},majorLabels:{millisecond:{string:xge,undefined:"undefined"},second:{string:xge,undefined:"undefined"},minute:{string:xge,undefined:"undefined"},hour:{string:xge,undefined:"undefined"},weekday:{string:xge,undefined:"undefined"},day:{string:xge,undefined:"undefined"},week:{string:xge,undefined:"undefined"},month:{string:xge,undefined:"undefined"},year:{string:xge,undefined:"undefined"},__type__:{object:Cge,function:"function"}},__type__:{object:Cge}},moment:{function:"function"},groupHeightMode:{string:xge},groupOrder:{string:xge,function:"function"},groupEditable:{add:{boolean:_ge,undefined:"undefined"},remove:{boolean:_ge,undefined:"undefined"},order:{boolean:_ge,undefined:"undefined"},__type__:{boolean:_ge,object:Cge}},groupOrderSwap:{function:"function"},height:{string:xge,number:Sge},hiddenDates:{start:{date:Tge,number:Sge,string:xge,moment:Ege},end:{date:Tge,number:Sge,string:xge,moment:Ege},repeat:{string:xge},__type__:{object:Cge,array:kge}},itemsAlwaysDraggable:{item:{boolean:_ge,undefined:"undefined"},range:{boolean:_ge,undefined:"undefined"},__type__:{boolean:_ge,object:Cge}},limitSize:{boolean:_ge},locale:{string:xge},locales:{__any__:{any:"any"},__type__:{object:Cge}},longSelectPressTime:{number:Sge},margin:{axis:{number:Sge},item:{horizontal:{number:Sge,undefined:"undefined"},vertical:{number:Sge,undefined:"undefined"},__type__:{object:Cge,number:Sge}},__type__:{object:Cge,number:Sge}},max:{date:Tge,number:Sge,string:xge,moment:Ege},maxHeight:{number:Sge,string:xge},maxMinorChars:{number:Sge},min:{date:Tge,number:Sge,string:xge,moment:Ege},minHeight:{number:Sge,string:xge},moveable:{boolean:_ge},multiselect:{boolean:_ge},multiselectPerGroup:{boolean:_ge},onAdd:{function:"function"},onDropObjectOnItem:{function:"function"},onUpdate:{function:"function"},onMove:{function:"function"},onMoving:{function:"function"},onRemove:{function:"function"},onAddGroup:{function:"function"},onMoveGroup:{function:"function"},onRemoveGroup:{function:"function"},onInitialDrawComplete:{function:"function"},order:{function:"function"},orientation:{axis:{string:xge,undefined:"undefined"},item:{string:xge,undefined:"undefined"},__type__:{string:xge,object:Cge}},selectable:{boolean:_ge},sequentialSelection:{boolean:_ge},showCurrentTime:{boolean:_ge},showMajorLabels:{boolean:_ge},showMinorLabels:{boolean:_ge},showWeekScale:{boolean:_ge},stack:{boolean:_ge},stackSubgroups:{boolean:_ge},cluster:{maxItems:{number:Sge,undefined:"undefined"},titleTemplate:{string:xge,undefined:"undefined"},clusterCriteria:{function:"function",undefined:"undefined"},showStipes:{boolean:_ge,undefined:"undefined"},fitOnDoubleClick:{boolean:_ge,undefined:"undefined"},__type__:{boolean:_ge,object:Cge}},snap:{function:"function",null:"null"},start:{date:Tge,number:Sge,string:xge,moment:Ege},template:{function:"function"},loadingScreenTemplate:{function:"function"},groupTemplate:{function:"function"},visibleFrameTemplate:{string:xge,function:"function"},showTooltips:{boolean:_ge},tooltip:{followMouse:{boolean:_ge},overflowMethod:{string:["cap","flip","none"]},delay:{number:Sge},template:{function:"function"},__type__:{object:Cge}},tooltipOnItemUpdateTime:{template:{function:"function"},__type__:{boolean:_ge,object:Cge}},timeAxis:{scale:{string:xge,undefined:"undefined"},step:{number:Sge,undefined:"undefined"},__type__:{object:Cge}},type:{string:xge},width:{string:xge,number:Sge},preferZoom:{boolean:_ge},zoomable:{boolean:_ge},zoomKey:{string:["ctrlKey","altKey","shiftKey","metaKey",""]},zoomFriction:{number:Sge},zoomMax:{number:Sge},zoomMin:{number:Sge},xss:{disabled:{boolean:_ge},filterOptions:{__any__:{any:"any"},__type__:{object:Cge}},__type__:{object:Cge}},__type__:{object:Cge}},Dge={global:{align:["center","left","right"],alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],direction:!1,autoResize:!0,clickToUse:!1,editable:{add:!1,remove:!1,updateGroup:!1,updateTime:!1},end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",year:""}},groupHeightMode:["auto","fixed","fitItems"],groupsDraggable:!1,height:"",locale:"",longSelectPressTime:251,margin:{axis:[20,0,100,1],item:{horizontal:[10,0,100,1],vertical:[10,0,100,1]}},max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!1,multiselect:!1,multiselectPerGroup:!1,orientation:{axis:["both","bottom","top"],item:["bottom","top"]},preferZoom:!1,selectable:!0,showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,stack:!0,stackSubgroups:!0,cluster:!1,start:"",showTooltips:!0,tooltip:{followMouse:!1,overflowMethod:"flip",delay:[500,0,99999,100]},tooltipOnItemUpdateTime:!1,type:["box","point","range","background"],width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","shiftKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],xss:{disabled:!1}}},Mge={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},Age=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;p2(this,e),this.pixelRatio=t,this.generated=!1,this.centerCoordinates={x:144.5,y:144.5},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=function(){},this.closeCallback=function(){},this._create()}return k6(e,[{key:"insertTo",value:function(e){void 0!==this.hammer&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}},{key:"setUpdateCallback",value:function(e){if("function"!=typeof e)throw new Error("Function attempted to set as colorPicker update callback is not a function.");this.updateCallback=e}},{key:"setCloseCallback",value:function(e){if("function"!=typeof e)throw new Error("Function attempted to set as colorPicker closing callback is not a function.");this.closeCallback=e}},{key:"_isColorString",value:function(e){if("string"==typeof e)return Mge[e]}},{key:"setColor",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("none"!==e){var n,r=this._isColorString(e);if(void 0!==r&&(e=r),!0===qfe.isString(e)){if(!0===qfe.isValidRGB(e)){var i=e.substr(4).substr(0,e.length-5).split(",");n={r:i[0],g:i[1],b:i[2],a:1}}else if(!0===qfe.isValidRGBA(e)){var o=e.substr(5).substr(0,e.length-6).split(",");n={r:o[0],g:o[1],b:o[2],a:o[3]}}else if(!0===qfe.isValidHex(e)){var a=qfe.hexToRGB(e);n={r:a.r,g:a.g,b:a.b,a:1}}}else if(e instanceof Object&&void 0!==e.r&&void 0!==e.g&&void 0!==e.b){var s=void 0!==e.a?e.a:"1.0";n={r:e.r,g:e.g,b:e.b,a:s}}if(void 0===n)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+nte(e));this._setColor(n,t)}}},{key:"show",value:function(){void 0!==this.closeCallback&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}},{key:"_hide",value:function(){var e=this;!0===(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])&&(this.previousColor=qfe.extend({},this.color)),!0===this.applied&&this.updateCallback(this.initialColor),this.frame.style.display="none",_te((function(){void 0!==e.closeCallback&&(e.closeCallback(),e.closeCallback=void 0)}),0)}},{key:"_save",value:function(){this.updateCallback(this.color),this.applied=!1,this._hide()}},{key:"_apply",value:function(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}},{key:"_loadLast",value:function(){void 0!==this.previousColor?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}},{key:"_setColor",value:function(e){!0===(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&(this.initialColor=qfe.extend({},e)),this.color=e;var t=qfe.RGBToHSV(e.r,e.g,e.b),n=2*Math.PI,r=this.r*t.s,i=this.centerCoordinates.x+r*Math.sin(n*t.h),o=this.centerCoordinates.y+r*Math.cos(n*t.h);this.colorPickerSelector.style.left=i-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=o-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}},{key:"_setOpacity",value:function(e){this.color.a=e/100,this._updatePicker(this.color)}},{key:"_setBrightness",value:function(e){var t=qfe.RGBToHSV(this.color.r,this.color.g,this.color.b);t.v=e/100;var n=qfe.HSVToRGB(t.h,t.s,t.v);n.a=this.color.a,this.color=n,this._updatePicker()}},{key:"_updatePicker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.color,t=qfe.RGBToHSV(e.r,e.g,e.b),n=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)),n.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var r=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;n.clearRect(0,0,r,i),n.putImageData(this.hueCircle,0,0),n.fillStyle="rgba(0,0,0,"+(1-t.v)+")",n.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),Ite(n).call(n),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}},{key:"_setSize",value:function(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}},{key:"_create",value:function(){var e,t,n,r;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){var i=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{var o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerHTML="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch(e){}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch(e){}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);var a=this;this.opacityRange.onchange=function(){a._setOpacity(this.value)},this.opacityRange.oninput=function(){a._setOpacity(this.value)},this.brightnessRange.onchange=function(){a._setBrightness(this.value)},this.brightnessRange.oninput=function(){a._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerHTML="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerHTML="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerHTML="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerHTML="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerHTML="cancel",this.cancelButton.onclick=m8(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerHTML="apply",this.applyButton.onclick=m8(t=this._apply).call(t,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerHTML="save",this.saveButton.onclick=m8(n=this._save).call(n,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerHTML="load last",this.loadButton.onclick=m8(r=this._loadLast).call(r,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}},{key:"_bindHammer",value:function(){var e=this;this.drag={},this.pinch={},this.hammer=new Ame(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),Ime(this.hammer,(function(t){e._moveSelector(t)})),this.hammer.on("tap",(function(t){e._moveSelector(t)})),this.hammer.on("panstart",(function(t){e._moveSelector(t)})),this.hammer.on("panmove",(function(t){e._moveSelector(t)})),this.hammer.on("panend",(function(t){e._moveSelector(t)}))}},{key:"_generateHueCircle",value:function(){if(!1===this.generated){var e=this.colorPickerCanvas.getContext("2d");void 0===this.pixelRation&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);var t,n,r,i,o=this.colorPickerCanvas.clientWidth,a=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,o,a),this.centerCoordinates={x:.5*o,y:.5*a},this.r=.49*o;var s,l=2*Math.PI/360,u=1/360,c=1/this.r;for(r=0;r<360;r++)for(i=0;i<this.r;i++)t=this.centerCoordinates.x+i*Math.sin(l*r),n=this.centerCoordinates.y+i*Math.cos(l*r),s=qfe.HSVToRGB(r*u,i*c,1),e.fillStyle="rgb("+s.r+","+s.g+","+s.b+")",e.fillRect(t-.5,n-.5,2,2);e.strokeStyle="rgba(0,0,0,1)",e.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),e.stroke(),this.hueCircle=e.getImageData(0,0,o,a)}this.generated=!0}},{key:"_moveSelector",value:function(e){var t=this.colorPickerDiv.getBoundingClientRect(),n=e.center.x-t.left,r=e.center.y-t.top,i=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,a=n-o,s=r-i,l=Math.atan2(a,s),u=.98*Math.min(Math.sqrt(a*a+s*s),o),c=Math.cos(l)*u+i,d=Math.sin(l)*u+o;this.colorPickerSelector.style.top=c-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=d-.5*this.colorPickerSelector.clientWidth+"px";var h=l/(2*Math.PI);h=h<0?h+1:h;var p=u/this.r,f=qfe.RGBToHSV(this.color.r,this.color.g,this.color.b);f.h=h,f.s=p;var m=qfe.HSVToRGB(f.h,f.s,f.v);m.a=this.color.a,this.color=m,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}}]),e}();Rme("div.vis-configuration {\n position:relative;\n display:block;\n float:left;\n font-size:12px;\n}\n\ndiv.vis-configuration-wrapper {\n display:block;\n width:700px;\n}\n\ndiv.vis-configuration-wrapper::after {\n clear: both;\n content: \"\";\n display: block;\n}\n\ndiv.vis-configuration.vis-config-option-container{\n display:block;\n width:495px;\n background-color: #ffffff;\n border:2px solid #f7f8fa;\n border-radius:4px;\n margin-top:20px;\n left:10px;\n padding-left:5px;\n}\n\ndiv.vis-configuration.vis-config-button{\n display:block;\n width:495px;\n height:25px;\n vertical-align: middle;\n line-height:25px;\n background-color: #f7f8fa;\n border:2px solid #ceced0;\n border-radius:4px;\n margin-top:20px;\n left:10px;\n padding-left:5px;\n cursor: pointer;\n margin-bottom:30px;\n}\n\ndiv.vis-configuration.vis-config-button.hover{\n background-color: #4588e6;\n border:2px solid #214373;\n color:#ffffff;\n}\n\ndiv.vis-configuration.vis-config-item{\n display:block;\n float:left;\n width:495px;\n height:25px;\n vertical-align: middle;\n line-height:25px;\n}\n\n\ndiv.vis-configuration.vis-config-item.vis-config-s2{\n left:10px;\n background-color: #f7f8fa;\n padding-left:5px;\n border-radius:3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s3{\n left:20px;\n background-color: #e4e9f0;\n padding-left:5px;\n border-radius:3px;\n}\ndiv.vis-configuration.vis-config-item.vis-config-s4{\n left:30px;\n background-color: #cfd8e6;\n padding-left:5px;\n border-radius:3px;\n}\n\ndiv.vis-configuration.vis-config-header{\n font-size:18px;\n font-weight: bold;\n}\n\ndiv.vis-configuration.vis-config-label{\n width:120px;\n height:25px;\n line-height: 25px;\n}\n\ndiv.vis-configuration.vis-config-label.vis-config-s3{\n width:110px;\n}\ndiv.vis-configuration.vis-config-label.vis-config-s4{\n width:100px;\n}\n\ndiv.vis-configuration.vis-config-colorBlock{\n top:1px;\n width:30px;\n height:19px;\n border:1px solid #444444;\n border-radius:2px;\n padding:0px;\n margin:0px;\n cursor:pointer;\n}\n\ninput.vis-configuration.vis-config-checkbox {\n left:-5px;\n}\n\n\ninput.vis-configuration.vis-config-rangeinput{\n position:relative;\n top:-5px;\n width:60px;\n /*height:13px;*/\n padding:1px;\n margin:0;\n pointer-events:none;\n}\n\ninput.vis-configuration.vis-config-range{\n /*removes default webkit styles*/\n -webkit-appearance: none;\n\n /*fix for FF unable to apply focus style bug */\n border: 0px solid white;\n background-color:rgba(0,0,0,0);\n\n /*required for proper track sizing in FF*/\n width: 300px;\n height:20px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-runnable-track {\n width: 300px;\n height: 5px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: 1px solid #14334b;\n height: 17px;\n width: 17px;\n border-radius: 50%;\n background: #3876c2; /* Old browsers */\n background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3876c2), color-stop(100%,#385380)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #3876c2 0%,#385380 100%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #3876c2 0%,#385380 100%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #3876c2 0%,#385380 100%); /* IE10+ */\n background: linear-gradient(to bottom, #3876c2 0%,#385380 100%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */\n box-shadow: #111927 0px 0px 1px 0px;\n margin-top: -7px;\n}\ninput.vis-configuration.vis-config-range:focus {\n outline: none;\n}\ninput.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {\n background: #9d9d9d; /* Old browsers */\n background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#9d9d9d), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #9d9d9d 0%,#c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #9d9d9d 0%,#c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n}\n\ninput.vis-configuration.vis-config-range::-moz-range-track {\n width: 300px;\n height: 10px;\n background: #dedede; /* Old browsers */\n background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */\n background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dedede), color-stop(99%,#c8c8c8)); /* Chrome,Safari4+ */\n background: -webkit-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* Chrome10+,Safari5.1+ */\n background: -o-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* Opera 11.10+ */\n background: -ms-linear-gradient(top, #dedede 0%,#c8c8c8 99%); /* IE10+ */\n background: linear-gradient(to bottom, #dedede 0%,#c8c8c8 99%); /* W3C */\n filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */\n\n border: 1px solid #999999;\n box-shadow: #aaaaaa 0px 0px 3px 0px;\n border-radius: 3px;\n}\ninput.vis-configuration.vis-config-range::-moz-range-thumb {\n border: none;\n height: 16px;\n width: 16px;\n\n border-radius: 50%;\n background: #385380;\n}\n\n/*hide the outline behind the border*/\ninput.vis-configuration.vis-config-range:-moz-focusring{\n outline: 1px solid white;\n outline-offset: -1px;\n}\n\ninput.vis-configuration.vis-config-range::-ms-track {\n width: 300px;\n height: 5px;\n\n /*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */\n background: transparent;\n\n /*leave room for the larger thumb to overflow with a transparent border */\n border-color: transparent;\n border-width: 6px 0;\n\n /*remove default tick marks*/\n color: transparent;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-lower {\n background: #777;\n border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-fill-upper {\n background: #ddd;\n border-radius: 10px;\n}\ninput.vis-configuration.vis-config-range::-ms-thumb {\n border: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: #385380;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-lower {\n background: #888;\n}\ninput.vis-configuration.vis-config-range:focus::-ms-fill-upper {\n background: #ccc;\n}\n\n.vis-configuration-popup {\n position: absolute;\n background: rgba(57, 76, 89, 0.85);\n border: 2px solid #f2faff;\n line-height:30px;\n height:30px;\n width:150px;\n text-align:center;\n color: #ffffff;\n font-size:14px;\n border-radius:4px;\n -webkit-transition: opacity 0.3s ease-in-out;\n -moz-transition: opacity 0.3s ease-in-out;\n transition: opacity 0.3s ease-in-out;\n}\n.vis-configuration-popup:after, .vis-configuration-popup:before {\n left: 100%;\n top: 50%;\n border: solid transparent;\n content: \" \";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.vis-configuration-popup:after {\n border-color: rgba(136, 183, 213, 0);\n border-left-color: rgba(57, 76, 89, 0.85);\n border-width: 8px;\n margin-top: -8px;\n}\n.vis-configuration-popup:before {\n border-color: rgba(194, 225, 245, 0);\n border-left-color: #f2faff;\n border-width: 12px;\n margin-top: -12px;\n}");var Ige=function(){function e(t,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;p2(this,e),this.parent=t,this.changedOptions=[],this.container=n,this.allowCreation=!1,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},qfe.extend(this.options,this.defaultOptions),this.configureOptions=r,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new Age(i),this.wrapper=void 0}return k6(e,[{key:"setOptions",value:function(e){if(void 0!==e){this.popupHistory={},this._removePopup();var t=!0;if("string"==typeof e)this.options.filter=e;else if(j4(e))this.options.filter=e.join();else if("object"===w6(e)){if(null==e)throw new TypeError("options cannot be null");void 0!==e.container&&(this.options.container=e.container),void 0!==nee(e)&&(this.options.filter=nee(e)),void 0!==e.showButton&&(this.options.showButton=e.showButton),void 0!==e.enabled&&(t=e.enabled)}else"boolean"==typeof e?(this.options.filter=!0,t=e):"function"==typeof e&&(this.options.filter=e,t=!0);!1===nee(this.options)&&(t=!1),this.options.enabled=t}this._clean()}},{key:"setModuleOptions",value:function(e){this.moduleOptions=e,!0===this.options.enabled&&(this._clean(),void 0!==this.options.container&&(this.container=this.options.container),this._create())}},{key:"_create",value:function(){this._clean(),this.changedOptions=[];var e=nee(this.options),t=0,n=!1;for(var r in this.configureOptions)this.configureOptions.hasOwnProperty(r)&&(this.allowCreation=!1,n=!1,"function"==typeof e?n=(n=e(r,[]))||this._handleObject(this.configureOptions[r],[r],!0):!0!==e&&-1===Qee(e).call(e,r)||(n=!0),!1!==n&&(this.allowCreation=!0,t>0&&this._makeItem([]),this._makeHeader(r),this._handleObject(this.configureOptions[r],[r])),t++);this._makeButton(),this._push()}},{key:"_push",value:function(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(var e=0;e<this.domElements.length;e++)this.wrapper.appendChild(this.domElements[e]);this._showPopupIfNeeded()}},{key:"_clean",value:function(){for(var e=0;e<this.domElements.length;e++)this.wrapper.removeChild(this.domElements[e]);void 0!==this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}},{key:"_getValue",value:function(e){for(var t=this.moduleOptions,n=0;n<e.length;n++){if(void 0===t[e[n]]){t=void 0;break}t=t[e[n]]}return t}},{key:"_makeItem",value:function(e){if(!0===this.allowCreation){var t=document.createElement("div");t.className="vis-configuration vis-config-item vis-config-s"+e.length;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return O8(r).call(r,(function(e){t.appendChild(e)})),this.domElements.push(t),this.domElements.length}return 0}},{key:"_makeHeader",value:function(e){var t=document.createElement("div");t.className="vis-configuration vis-config-header",t.innerHTML=qfe.xss(e),this._makeItem([],t)}},{key:"_makeLabel",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=document.createElement("div");return r.className="vis-configuration vis-config-label vis-config-s"+t.length,r.innerHTML=!0===n?qfe.xss("<i><b>"+e+":</b></i>"):qfe.xss(e+":"),r}},{key:"_makeDropdown",value:function(e,t,n){var r=document.createElement("select");r.className="vis-configuration vis-config-select";var i=0;void 0!==t&&-1!==Qee(e).call(e,t)&&(i=Qee(e).call(e,t));for(var o=0;o<e.length;o++){var a=document.createElement("option");a.value=e[o],o===i&&(a.selected="selected"),a.innerHTML=e[o],r.appendChild(a)}var s=this;r.onchange=function(){s._update(this.value,n)};var l=this._makeLabel(n[n.length-1],n);this._makeItem(n,l,r)}},{key:"_makeRange",value:function(e,t,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=document.createElement("input");s.className="vis-configuration vis-config-range";try{s.type="range",s.min=i,s.max=o}catch(e){}s.step=a;var l="",u=0;if(void 0!==t){var c=1.2;t<0&&t*c<i?(s.min=Math.ceil(t*c),u=s.min,l="range increased"):t/c<i&&(s.min=Math.ceil(t/c),u=s.min,l="range increased"),t*c>o&&1!==o&&(s.max=Math.ceil(t*c),u=s.max,l="range increased"),s.value=t}else s.value=r;var d=document.createElement("input");d.className="vis-configuration vis-config-rangeinput",d.value=Number(s.value);var h=this;s.onchange=function(){d.value=this.value,h._update(Number(this.value),n)},s.oninput=function(){d.value=this.value};var p=this._makeLabel(n[n.length-1],n),f=this._makeItem(n,p,s,d);""!==l&&this.popupHistory[f]!==u&&(this.popupHistory[f]=u,this._setupPopup(l,f))}},{key:"_makeButton",value:function(){var e=this;if(!0===this.options.showButton){var t=document.createElement("div");t.className="vis-configuration vis-config-button",t.innerHTML="generate options",t.onclick=function(){e._printOptions()},t.onmouseover=function(){t.className="vis-configuration vis-config-button hover"},t.onmouseout=function(){t.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(t)}}},{key:"_setupPopup",value:function(e,t){var n=this;if(!0===this.initialized&&!0===this.allowCreation&&this.popupCounter<this.popupLimit){var r=document.createElement("div");r.id="vis-configuration-popup",r.className="vis-configuration-popup",r.innerHTML=qfe.xss(e),r.onclick=function(){n._removePopup()},this.popupCounter+=1,this.popupDiv={html:r,index:t}}}},{key:"_removePopup",value:function(){void 0!==this.popupDiv.html&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}},{key:"_showPopupIfNeeded",value:function(){var e=this;if(void 0!==this.popupDiv.html){var t=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=t.left+"px",this.popupDiv.html.style.top=t.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=_te((function(){e.popupDiv.html.style.opacity=0}),1500),this.popupDiv.deleteTimeout=_te((function(){e._removePopup()}),1800)}}},{key:"_makeCheckbox",value:function(e,t,n){var r=document.createElement("input");r.type="checkbox",r.className="vis-configuration vis-config-checkbox",r.checked=e,void 0!==t&&(r.checked=t,t!==e&&("object"===w6(e)?t!==e.enabled&&this.changedOptions.push({path:n,value:t}):this.changedOptions.push({path:n,value:t})));var i=this;r.onchange=function(){i._update(this.checked,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeTextInput",value:function(e,t,n){var r=document.createElement("input");r.type="text",r.className="vis-configuration vis-config-text",r.value=t,t!==e&&this.changedOptions.push({path:n,value:t});var i=this;r.onchange=function(){i._update(this.value,n)};var o=this._makeLabel(n[n.length-1],n);this._makeItem(n,o,r)}},{key:"_makeColorField",value:function(e,t,n){var r=this,i=e[1],o=document.createElement("div");"none"!==(t=void 0===t?i:t)?(o.className="vis-configuration vis-config-colorBlock",o.style.backgroundColor=t):o.className="vis-configuration vis-config-colorBlock none",t=void 0===t?i:t,o.onclick=function(){r._showColorPicker(t,o,n)};var a=this._makeLabel(n[n.length-1],n);this._makeItem(n,a,o)}},{key:"_showColorPicker",value:function(e,t,n){var r=this;t.onclick=function(){},this.colorPicker.insertTo(t),this.colorPicker.show(),this.colorPicker.setColor(e),this.colorPicker.setUpdateCallback((function(e){var i="rgba("+e.r+","+e.g+","+e.b+","+e.a+")";t.style.backgroundColor=i,r._update(i,n)})),this.colorPicker.setCloseCallback((function(){t.onclick=function(){r._showColorPicker(e,t,n)}}))}},{key:"_handleObject",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=!1,i=nee(this.options),o=!1;for(var a in e)if(e.hasOwnProperty(a)){r=!0;var s=e[a],l=qfe.copyAndExtendArray(t,a);if("function"==typeof i&&!1===(r=i(a,t))&&!j4(s)&&"string"!=typeof s&&"boolean"!=typeof s&&s instanceof Object&&(this.allowCreation=!1,r=this._handleObject(s,l,!0),this.allowCreation=!1===n),!1!==r){o=!0;var u=this._getValue(l);if(j4(s))this._handleArray(s,u,l);else if("string"==typeof s)this._makeTextInput(s,u,l);else if("boolean"==typeof s)this._makeCheckbox(s,u,l);else if(s instanceof Object){var c=!0;if(-1!==Qee(t).call(t,"physics")&&this.moduleOptions.physics.solver!==a&&(c=!1),!0===c)if(void 0!==s.enabled){var d=qfe.copyAndExtendArray(l,"enabled"),h=this._getValue(d);if(!0===h){var p=this._makeLabel(a,l,!0);this._makeItem(l,p),o=this._handleObject(s,l)||o}else this._makeCheckbox(s,h,l)}else{var f=this._makeLabel(a,l,!0);this._makeItem(l,f),o=this._handleObject(s,l)||o}}else console.error("dont know how to handle",s,a,l)}}return o}},{key:"_handleArray",value:function(e,t,n){"string"==typeof e[0]&&"color"===e[0]?(this._makeColorField(e,t,n),e[1]!==t&&this.changedOptions.push({path:n,value:t})):"string"==typeof e[0]?(this._makeDropdown(e,t,n),e[0]!==t&&this.changedOptions.push({path:n,value:t})):"number"==typeof e[0]&&(this._makeRange(e,t,n),e[0]!==t&&this.changedOptions.push({path:n,value:Number(t)}))}},{key:"_update",value:function(e,t){var n=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",n),this.initialized=!0,this.parent.setOptions(n)}},{key:"_constructOptions",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n;e="false"!==(e="true"===e||e)&&e;for(var i=0;i<t.length;i++)"global"!==t[i]&&(void 0===r[t[i]]&&(r[t[i]]={}),i!==t.length-1?r=r[t[i]]:r[t[i]]=e);return n}},{key:"_printOptions",value:function(){var e=this.getOptions();this.optionsContainer.innerHTML="<pre>var options = "+nte(e,null,2)+"</pre>"}},{key:"getOptions",value:function(){for(var e={},t=0;t<this.changedOptions.length;t++)this._constructOptions(this.changedOptions[t].value,this.changedOptions[t].path,e);return e}}]),e}();function Pge(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}var Rge=function(){Pie(t,nve);var e=Pge(t);function t(n,r,i,o){var a,s,l,u,c,d,h,p;if(p2(this,t),(p=e.call(this)).initTime=new Date,p.itemsDone=!1,!(Cie(p)instanceof t))throw new SyntaxError("Constructor must be called with the new operator");if(!j4(i)&&!Bfe(i)&&i instanceof Object){var f=o;o=i,i=f}o&&o.throttleRedraw&&console.warn('Timeline option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var m=Cie(p);if(p.defaultOptions={autoResize:!0,longSelectPressTime:251,orientation:{axis:"bottom",item:"bottom"},moment:Ape},p.options=qfe.deepExtend({},p.defaultOptions),o&&qfe.setupXSSProtection(o.xss),p._create(n),!o||o&&void 0===o.rtl){var v;p.dom.root.style.visibility="hidden";for(var g=p.dom.root;!v&&g;)v=window.getComputedStyle(g,null).direction,g=g.parentElement;p.options.rtl=v&&"rtl"==v.toLowerCase()}else p.options.rtl=o.rtl;o&&(o.rollingMode&&(p.options.rollingMode=o.rollingMode),o.onInitialDrawComplete&&(p.options.onInitialDrawComplete=o.onInitialDrawComplete),o.onTimeout&&(p.options.onTimeout=o.onTimeout),o.loadingScreenTemplate&&(p.options.loadingScreenTemplate=o.loadingScreenTemplate));var y=document.createElement("div");if(p.options.loadingScreenTemplate){var b,w=m8(b=p.options.loadingScreenTemplate).call(b,Cie(p)),x=w(p.dom.loadingScreen);x instanceof Object&&!(x instanceof Element)?w(y):x instanceof Element?(y.innerHTML="",y.appendChild(x)):null!=x&&(y.innerHTML=qfe.xss(x))}function _(e,t){m.hasListeners(e)&&m.emit(e,m.getEventProperties(t))}return p.dom.loadingScreen.appendChild(y),p.components=[],p.body={dom:p.dom,domProps:p.props,emitter:{on:m8(a=p.on).call(a,Cie(p)),off:m8(s=p.off).call(s,Cie(p)),emit:m8(l=p.emit).call(l,Cie(p))},hiddenDates:[],util:{getScale:function(){return m.timeAxis.step.scale},getStep:function(){return m.timeAxis.step.step},toScreen:m8(u=m._toScreen).call(u,m),toGlobalScreen:m8(c=m._toGlobalScreen).call(c,m),toTime:m8(d=m._toTime).call(d,m),toGlobalTime:m8(h=m._toGlobalTime).call(h,m)}},p.range=new Cme(p.body,p.options),p.components.push(p.range),p.body.range=p.range,p.timeAxis=new jme(p.body,p.options),p.timeAxis2=null,p.components.push(p.timeAxis),p.currentTime=new ive(p.body,p.options),p.components.push(p.currentTime),p.itemSet=new vge(p.body,p.options),p.components.push(p.itemSet),p.itemsData=null,p.groupsData=null,p.dom.root.onclick=function(e){_("click",e)},p.dom.root.ondblclick=function(e){_("doubleClick",e)},p.dom.root.oncontextmenu=function(e){_("contextmenu",e)},p.dom.root.onmouseover=function(e){_("mouseOver",e)},window.PointerEvent?(p.dom.root.onpointerdown=function(e){_("mouseDown",e)},p.dom.root.onpointermove=function(e){_("mouseMove",e)},p.dom.root.onpointerup=function(e){_("mouseUp",e)}):(p.dom.root.onmousemove=function(e){_("mouseMove",e)},p.dom.root.onmousedown=function(e){_("mouseDown",e)},p.dom.root.onmouseup=function(e){_("mouseUp",e)}),p.initialFitDone=!1,p.on("changed",(function(){if(null!=m.itemsData){if(!m.initialFitDone&&!m.options.rollingMode)if(m.initialFitDone=!0,null!=m.options.start||null!=m.options.end){if(null==m.options.start||null==m.options.end)var e=m.getItemRange();var t=null!=m.options.start?m.options.start:e.min,n=null!=m.options.end?m.options.end:e.max;m.setWindow(t,n,{animation:!1})}else m.fit({animation:!1});m.initialDrawDone||!m.initialRangeChangeDone&&(m.options.start||m.options.end)&&!m.options.rollingMode||(m.initialDrawDone=!0,m.itemSet.initialDrawDone=!0,m.dom.root.style.visibility="visible",m.dom.loadingScreen.parentNode.removeChild(m.dom.loadingScreen),m.options.onInitialDrawComplete&&_te((function(){return m.options.onInitialDrawComplete()}),0))}})),p.on("destroyTimeline",(function(){m.destroy()})),o&&p.setOptions(o),p.body.emitter.on("fit",(function(e){p._onFit(e),p.redraw()})),i&&p.setGroups(i),r&&p.setItems(r),p._redraw(),p}return k6(t,[{key:"_createConfigurator",value:function(){return new Ige(this,this.dom.container,Dge)}},{key:"redraw",value:function(){this.itemSet&&this.itemSet.markDirty({refreshItems:!0}),this._redraw()}},{key:"setOptions",value:function(e){if(!0===wge.validate(e,Oge)&&console.log("%cErrors have been found in the supplied options object.",bge),nve.prototype.setOptions.call(this,e),"type"in e&&e.type!==this.options.type){this.options.type=e.type;var t=this.itemsData;if(t){var n=this.getSelection();this.setItems(null),this.setItems(t.rawDS),this.setSelection(n)}}}},{key:"setItems",value:function(e){var t;this.itemsDone=!1,t=e?Bfe(e)?zfe(e):zfe(new Ope(e)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=t,this.itemSet&&this.itemSet.setItems(null!=t?t.rawDS:null)}},{key:"setGroups",value:function(e){var t;e?(j4(e)&&(e=new Ope(e)),t=new Dpe(e,{filter:function(e){return!1!==e.visible}})):t=null,null!=this.groupsData&&"function"==typeof this.groupsData.setData&&this.groupsData.setData(null),this.groupsData=t,this.itemSet.setGroups(t)}},{key:"setData",value:function(e){e&&e.groups&&this.setGroups(e.groups),e&&e.items&&this.setItems(e.items)}},{key:"setSelection",value:function(e,t){this.itemSet&&this.itemSet.setSelection(e),t&&t.focus&&this.focus(e,t)}},{key:"getSelection",value:function(){return this.itemSet&&this.itemSet.getSelection()||[]}},{key:"focus",value:function(e,t){if(this.itemsData&&null!=e){var n=j4(e)?e:[e],r=this.itemsData.get(n),i=null,o=null;if(O8(r).call(r,(function(e){var t=e.start.valueOf(),n="end"in e?e.end.valueOf():e.start.valueOf();(null===i||t<i)&&(i=t),(null===o||n>o)&&(o=n)})),null!==i&&null!==o){var a=this,s=this.itemSet.items[n[0]],l=-1*this._getScrollTop(),u=null,c=function(){var e=Lge(a,s);e.shouldScroll&&e.itemTop!=u.itemTop&&(a._setScrollTop(-e.scrollOffset),a._redraw())},d=!t||void 0===t.zoom||t.zoom,h=(i+o)/2,p=d?1.1*(o-i):Math.max(this.range.end-this.range.start,1.1*(o-i)),f=!t||void 0===t.animation||t.animation;f||(u={shouldScroll:!1,scrollOffset:-1,itemTop:-1}),this.range.setRange(h-p/2,h+p/2,{animation:f},(function(){c(),_te(c,100)}),(function(e,t,n){var r=Lge(a,s);if(!1!==r&&(u||(u=r),u.itemTop!=r.itemTop||u.shouldScroll)){u.itemTop!=r.itemTop&&r.shouldScroll&&(u=r,l=-1*a._getScrollTop());var i=l,o=u.scrollOffset,c=n?o:i+(o-i)*e;a._setScrollTop(-c),t||a._redraw()}}))}}}},{key:"fit",value:function(e,t){var n,r=!e||void 0===e.animation||e.animation;1===this.itemsData.length&&void 0===this.itemsData.get()[0].end?(n=this.getDataRange(),this.moveTo(n.min.valueOf(),{animation:r},t)):(n=this.getItemRange(),this.range.setRange(n.min,n.max,{animation:r},t))}},{key:"getItemRange",value:function(){var e=this,t=this.getDataRange(),n=null!==t.min?t.min.valueOf():null,r=null!==t.max?t.max.valueOf():null,i=null,o=null;if(null!=n&&null!=r){var a=r-n;a<=0&&(a=10);var s=a/this.props.center.width,l={},u=0;if(O8(qfe).call(qfe,this.itemSet.items,(function(e,t){if(e.groupShowing){l[t]=e.redraw(!0),u=l[t].length}})),u>0)for(var c=function(e){O8(qfe).call(qfe,l,(function(t){t[e]()}))},d=0;d<u;d++)c(d);if(O8(qfe).call(qfe,this.itemSet.items,(function(t){var a,l,u=Nge(t),c=jge(t);e.options.rtl?(a=u-(t.getWidthRight()+10)*s,l=c+(t.getWidthLeft()+10)*s):(a=u-(t.getWidthLeft()+10)*s,l=c+(t.getWidthRight()+10)*s),a<n&&(n=a,i=t),l>r&&(r=l,o=t)})),i&&o){var h=i.getWidthLeft()+10,p=o.getWidthRight()+10,f=this.props.center.width-h-p;f>0&&(this.options.rtl?(n=Nge(i)-p*a/f,r=jge(o)+h*a/f):(n=Nge(i)-h*a/f,r=jge(o)+p*a/f))}}return{min:null!=n?new Date(n):null,max:null!=r?new Date(r):null}}},{key:"getDataRange",value:function(){var e,t=null,n=null;this.itemsData&&O8(e=this.itemsData).call(e,(function(e){var r=qfe.convert(e.start,"Date").valueOf(),i=qfe.convert(null!=e.end?e.end:e.start,"Date").valueOf();(null===t||r<t)&&(t=r),(null===n||i>n)&&(n=i)}));return{min:null!=t?new Date(t):null,max:null!=n?new Date(n):null}}},{key:"getEventProperties",value:function(e){var t=e.center?e.center.x:e.clientX,n=e.center?e.center.y:e.clientY,r=this.dom.centerContainer.getBoundingClientRect(),i=this.options.rtl?r.right-t:t-r.left,o=n-r.top,a=this.itemSet.itemFromTarget(e),s=this.itemSet.groupFromTarget(e),l=tve.customTimeFromTarget(e),u=this.itemSet.options.snap||null,c=this.body.util.getScale(),d=this.body.util.getStep(),h=this._toTime(i),p=u?u(h,c,d):h,f=qfe.getTarget(e),m=null;return null!=a?m="item":null!=l?m="custom-time":qfe.hasParent(f,this.timeAxis.dom.foreground)||this.timeAxis2&&qfe.hasParent(f,this.timeAxis2.dom.foreground)?m="axis":qfe.hasParent(f,this.itemSet.dom.labelSet)?m="group-label":qfe.hasParent(f,this.currentTime.bar)?m="current-time":qfe.hasParent(f,this.dom.center)&&(m="background"),{event:e,item:a?a.id:null,isCluster:!!a&&!!a.isCluster,items:a?a.items||[]:null,group:s?s.groupId:null,customTime:l?l.options.id:null,what:m,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:i,y:o,time:h,snappedTime:p}}},{key:"toggleRollingMode",value:function(){this.range.rolling?this.range.stopRolling():(null==this.options.rollingMode&&this.setOptions(this.options),this.range.startRolling())}},{key:"_redraw",value:function(){nve.prototype._redraw.call(this)}},{key:"_onFit",value:function(e){var t=e.start,n=e.end,r=e.animation;n?this.range.setRange(t,n,{animation:r}):this.moveTo(t.valueOf(),{animation:r})}}]),t}();function Nge(e){return qfe.convert(e.data.start,"Date").valueOf()}function jge(e){var t=null!=e.data.end?e.data.end:e.data.start;return qfe.convert(t,"Date").valueOf()}function Lge(e,t){if(!t.parent)return!1;var n=e.options.rtl?e.props.rightContainer.height:e.props.leftContainer.height,r=e.props.center.height,i=t.parent,o=i.top,a=!0,s=e.timeAxis.options.orientation.axis,l=function(){return"bottom"==s?i.height-t.top-t.height:t.top},u=-1*e._getScrollTop(),c=o+l(),d=t.height;return c<u?o+n<=o+l()+d&&(o+=l()-e.itemSet.options.margin.item.vertical):c+d>u+n?o+=l()+d-n+e.itemSet.options.margin.item.vertical:a=!1,{shouldScroll:a,scrollOffset:o=Math.min(o,r-n),itemTop:c}}var Fge=function(){function e(t,n,r,i,o,a){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=arguments.length>7&&void 0!==arguments[7]&&arguments[7];if(p2(this,e),this.majorSteps=[1,2,5,10],this.minorSteps=[.25,.5,1,2],this.customLines=null,this.containerHeight=o,this.majorCharHeight=a,this._start=t,this._end=n,this.scale=1,this.minorStepIdx=-1,this.magnitudefactor=1,this.determineScale(),this.zeroAlign=s,this.autoScaleStart=r,this.autoScaleEnd=i,this.formattingFunction=l,r||i){var u=this,c=function(e){var t=e-e%(u.magnitudefactor*u.minorSteps[u.minorStepIdx]);return e%(u.magnitudefactor*u.minorSteps[u.minorStepIdx])>u.magnitudefactor*u.minorSteps[u.minorStepIdx]*.5?t+u.magnitudefactor*u.minorSteps[u.minorStepIdx]:t};r&&(this._start-=2*this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._start=c(this._start)),i&&(this._end+=this.magnitudefactor*this.minorSteps[this.minorStepIdx],this._end=c(this._end)),this.determineScale()}}return k6(e,[{key:"setCharHeight",value:function(e){this.majorCharHeight=e}},{key:"setHeight",value:function(e){this.containerHeight=e}},{key:"determineScale",value:function(){var e=this._end-this._start;this.scale=this.containerHeight/e;var t=this.majorCharHeight/this.scale,n=e>0?Math.round(Math.log(e)/Math.LN10):0;this.minorStepIdx=-1,this.magnitudefactor=Math.pow(10,n);var r=0;n<0&&(r=n);for(var i=!1,o=r;Math.abs(o)<=Math.abs(n);o++){this.magnitudefactor=Math.pow(10,o);for(var a=0;a<this.minorSteps.length;a++){if(this.magnitudefactor*this.minorSteps[a]>=t){i=!0,this.minorStepIdx=a;break}}if(!0===i)break}}},{key:"is_major",value:function(e){return e%(this.magnitudefactor*this.majorSteps[this.minorStepIdx])==0}},{key:"getStep",value:function(){return this.magnitudefactor*this.minorSteps[this.minorStepIdx]}},{key:"getFirstMajor",value:function(){var e=this.magnitudefactor*this.majorSteps[this.minorStepIdx];return this.convertValue(this._start+(e-this._start%e)%e)}},{key:"formatValue",value:function(e){var t=e.toPrecision(5);return"function"==typeof this.formattingFunction&&(t=this.formattingFunction(e)),"number"==typeof t?"".concat(t):"string"==typeof t?t:e.toPrecision(5)}},{key:"getLines",value:function(){for(var e=[],t=this.getStep(),n=(t-this._start%t)%t,r=this._start+n;this._end-r>1e-5;r+=t)r!=this._start&&e.push({major:this.is_major(r),y:this.convertValue(r),val:this.formatValue(r)});return e}},{key:"followScale",value:function(e){var t=this.minorStepIdx,n=this._start,r=this._end,i=this,o=function(){i.magnitudefactor*=2},a=function(){i.magnitudefactor/=2};e.minorStepIdx<=1&&this.minorStepIdx<=1||e.minorStepIdx>1&&this.minorStepIdx>1||(e.minorStepIdx<this.minorStepIdx?(this.minorStepIdx=1,2==t||o(),o()):(this.minorStepIdx=2,1==t||a(),a()));for(var s=e.convertValue(0),l=e.getStep()*e.scale,u=!1,c=0;!u&&c++<5;){this.scale=l/(this.minorSteps[this.minorStepIdx]*this.magnitudefactor);var d=this.containerHeight/this.scale;this._start=n,this._end=this._start+d;var h=this._end*this.scale,p=this.magnitudefactor*this.majorSteps[this.minorStepIdx],f=this.getFirstMajor()-e.getFirstMajor();if(this.zeroAlign){var m=s-h;this._end+=m/this.scale,this._start=this._end-d}else this.autoScaleStart?(this._start-=f/this.scale,this._end=this._start+d):(this._start+=p-f/this.scale,this._end=this._start+d);if(!this.autoScaleEnd&&this._end>r+1e-5)a(),u=!1;else{if(!this.autoScaleStart&&this._start<n-1e-5){if(!(this.zeroAlign&&n>=0)){a(),u=!1;continue}console.warn("Can't adhere to given 'min' range, due to zeroalign")}this.autoScaleStart&&this.autoScaleEnd&&d<r-n?(o(),u=!1):u=!0}}}},{key:"convertValue",value:function(e){return this.containerHeight-(e-this._start)*this.scale}},{key:"screenToValue",value:function(e){return(this.containerHeight-e)/this.scale+this._start}}]),e}();function Bge(e,t){var n=void 0!==x4&&h2(e)||e["@@iterator"];if(!n){if(j4(e)||(n=function(e,t){var n;if(!e)return;if("string"==typeof e)return Uge(e,t);var r=O4(n=Object.prototype.toString.call(e)).call(n,8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return G1(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Uge(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Uge(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hge(e){var t=function(){if("undefined"==typeof Reflect||!Hhe)return!1;if(Hhe.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Hhe(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lie(e);if(t){var i=Lie(this).constructor;n=Hhe(r,arguments,i)}else n=r.apply(this,arguments);return Rie(this,n)}}Rme("\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-horizontal {\n position: absolute;\n width: 100%;\n height: 0;\n border-bottom: 1px solid;\n}\n\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-minor {\n border-color: #e5e5e5;\n}\n\n.vis-panel.vis-background.vis-horizontal .vis-grid.vis-major {\n border-color: #bfbfbf;\n}\n\n\n.vis-data-axis .vis-y-axis.vis-major {\n width: 100%;\n position: absolute;\n color: #4d4d4d;\n white-space: nowrap;\n}\n\n.vis-data-axis .vis-y-axis.vis-major.vis-measure {\n padding: 0;\n margin: 0;\n border: 0;\n visibility: hidden;\n width: auto;\n}\n\n\n.vis-data-axis .vis-y-axis.vis-minor {\n position: absolute;\n width: 100%;\n color: #bebebe;\n white-space: nowrap;\n}\n\n.vis-data-axis .vis-y-axis.vis-minor.vis-measure {\n padding: 0;\n margin: 0;\n border: 0;\n visibility: hidden;\n width: auto;\n}\n\n.vis-data-axis .vis-y-axis.vis-title {\n position: absolute;\n color: #4d4d4d;\n white-space: nowrap;\n bottom: 20px;\n text-align: center;\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-measure {\n padding: 0;\n margin: 0;\n visibility: hidden;\n width: auto;\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-left {\n bottom: 0;\n -webkit-transform-origin: left top;\n -moz-transform-origin: left top;\n -ms-transform-origin: left top;\n -o-transform-origin: left top;\n transform-origin: left bottom;\n -webkit-transform: rotate(-90deg);\n -moz-transform: rotate(-90deg);\n -ms-transform: rotate(-90deg);\n -o-transform: rotate(-90deg);\n transform: rotate(-90deg);\n}\n\n.vis-data-axis .vis-y-axis.vis-title.vis-right {\n bottom: 0;\n -webkit-transform-origin: right bottom;\n -moz-transform-origin: right bottom;\n -ms-transform-origin: right bottom;\n -o-transform-origin: right bottom;\n transform-origin: right bottom;\n -webkit-transform: rotate(90deg);\n -moz-transform: rotate(90deg);\n -ms-transform: rotate(90deg);\n -o-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.vis-legend {\n background-color: rgba(247, 252, 255, 0.65);\n padding: 5px;\n border: 1px solid #b3b3b3;\n box-shadow: 2px 2px 10px rgba(154, 154, 154, 0.55);\n}\n\n.vis-legend-text {\n /*font-size: 10px;*/\n white-space: nowrap;\n display: inline-block\n}");var Yge=function(){Pie(t,ome);var e=Hge(t);function t(n,r,i,o){var a;p2(this,t),(a=e.call(this)).id=vpe(),a.body=n,a.defaultOptions={orientation:"left",showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,majorLinesOffset:7,minorLinesOffset:4,labelOffsetX:10,labelOffsetY:2,iconWidth:20,width:"40px",visible:!0,alignZeros:!0,left:{range:{min:void 0,max:void 0},format:function(e){return"".concat(ime(e.toPrecision(3)))},title:{text:void 0,style:void 0}},right:{range:{min:void 0,max:void 0},format:function(e){return"".concat(ime(e.toPrecision(3)))},title:{text:void 0,style:void 0}}},a.linegraphOptions=o,a.linegraphSVG=i,a.props={},a.DOMelements={lines:{},labels:{},title:{}},a.dom={},a.scale=void 0,a.range={start:0,end:0},a.options=qfe.extend({},a.defaultOptions),a.conversionFactor=1,a.setOptions(r),a.width=Number("".concat(a.options.width).replace("px","")),a.minWidth=a.width,a.height=a.linegraphSVG.getBoundingClientRect().height,a.hidden=!1,a.stepPixels=25,a.zeroCrossing=-1,a.amountOfSteps=-1,a.lineOffset=0,a.master=!0,a.masterAxis=null,a.svgElements={},a.iconsRemoved=!1,a.groups={},a.amountOfGroups=0,a._create(),null==a.scale&&a._redrawLabels(),a.framework={svg:a.svg,svgElements:a.svgElements,options:a.options,groups:a.groups};var s=Cie(a);return a.body.emitter.on("verticalDrag",(function(){s.dom.lineContainer.style.top="".concat(s.body.domProps.scrollTop,"px")})),a}return k6(t,[{key:"addGroup",value:function(e,t){this.groups.hasOwnProperty(e)||(this.groups[e]=t),this.amountOfGroups+=1}},{key:"updateGroup",value:function(e,t){this.groups.hasOwnProperty(e)||(this.amountOfGroups+=1),this.groups[e]=t}},{key:"removeGroup",value:function(e){this.groups.hasOwnProperty(e)&&(delete this.groups[e],this.amountOfGroups-=1)}},{key:"setOptions",value:function(e){if(e){var t=!1;this.options.orientation!=e.orientation&&void 0!==e.orientation&&(t=!0);qfe.selectiveDeepExtend(["orientation","showMinorLabels","showMajorLabels","icons","majorLinesOffset","minorLinesOffset","labelOffsetX","labelOffsetY","iconWidth","width","visible","left","right","alignZeros"],this.options,e),this.minWidth=Number("".concat(this.options.width).replace("px","")),!0===t&&this.dom.frame&&(this.hide(),this.show())}}},{key:"_create",value:function(){this.dom.frame=document.createElement("div"),this.dom.frame.style.width=this.options.width,this.dom.frame.style.height=this.height,this.dom.lineContainer=document.createElement("div"),this.dom.lineContainer.style.width="100%",this.dom.lineContainer.style.height=this.height,this.dom.lineContainer.style.position="relative",this.dom.lineContainer.style.visibility="visible",this.dom.lineContainer.style.display="block",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.height="100%",this.svg.style.width="100%",this.svg.style.display="block",this.dom.frame.appendChild(this.svg)}},{key:"_redrawGroupIcons",value:function(){var e;wie(this.svgElements);var t=this.options.iconWidth,n=11.5;e="left"===this.options.orientation?4:this.width-t-4;var r=V4(this.groups);Gde(r).call(r,(function(e,t){return e<t?-1:1}));var i,o=Bge(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;!0!==this.groups[a].visible||void 0!==this.linegraphOptions.visibility[a]&&!0!==this.linegraphOptions.visibility[a]||(this.groups[a].getLegend(t,15,this.framework,e,n),n+=19)}}catch(e){o.e(e)}finally{o.f()}xie(this.svgElements),this.iconsRemoved=!1}},{key:"_cleanupIcons",value:function(){!1===this.iconsRemoved&&(wie(this.svgElements),xie(this.svgElements),this.iconsRemoved=!0)}},{key:"show",value:function(){this.hidden=!1,this.dom.frame.parentNode||("left"===this.options.orientation?this.body.dom.left.appendChild(this.dom.frame):this.body.dom.right.appendChild(this.dom.frame)),this.dom.lineContainer.parentNode||this.body.dom.backgroundHorizontal.appendChild(this.dom.lineContainer),this.dom.lineContainer.style.display="block"}},{key:"hide",value:function(){this.hidden=!0,this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame),this.dom.lineContainer.style.display="none"}},{key:"setRange",value:function(e,t){this.range.start=e,this.range.end=t}},{key:"redraw",value:function(){var e=!1,t=0;for(var n in this.dom.lineContainer.style.top="".concat(this.body.domProps.scrollTop,"px"),this.groups)this.groups.hasOwnProperty(n)&&(!0!==this.groups[n].visible||void 0!==this.linegraphOptions.visibility[n]&&!0!==this.linegraphOptions.visibility[n]||t++);if(0===this.amountOfGroups||0===t)this.hide();else{this.show(),this.height=Number(this.linegraphSVG.style.height.replace("px","")),this.dom.lineContainer.style.height="".concat(this.height,"px"),this.width=!0===this.options.visible?Number("".concat(this.options.width).replace("px","")):0;var r=this.props,i=this.dom.frame;i.className="vis-data-axis",this._calculateCharSize();var o=this.options.orientation,a=this.options.showMinorLabels,s=this.options.showMajorLabels,l=this.body.dom.backgroundHorizontal.offsetWidth;r.minorLabelHeight=a?r.minorCharHeight:0,r.majorLabelHeight=s?r.majorCharHeight:0,r.minorLineWidth=l-this.lineOffset-this.width+2*this.options.minorLinesOffset,r.minorLineHeight=1,r.majorLineWidth=l-this.lineOffset-this.width+2*this.options.majorLinesOffset,r.majorLineHeight=1,"left"===o?(i.style.top="0",i.style.left="0",i.style.bottom="",i.style.width="".concat(this.width,"px"),i.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.left.width,this.props.height=this.body.domProps.left.height):(i.style.top="",i.style.bottom="0",i.style.left="0",i.style.width="".concat(this.width,"px"),i.style.height="".concat(this.height,"px"),this.props.width=this.body.domProps.right.width,this.props.height=this.body.domProps.right.height),e=this._redrawLabels(),e=this._isResized()||e,!0===this.options.icons?this._redrawGroupIcons():this._cleanupIcons(),this._redrawTitle(o)}return e}},{key:"_redrawLabels",value:function(){var e=this,t=!1;wie(this.DOMelements.lines),wie(this.DOMelements.labels);var n=this.options.orientation,r=null!=this.options[n].range?this.options[n].range:{},i=!0;null!=r.max&&(this.range.end=r.max,i=!1);var o=!0;null!=r.min&&(this.range.start=r.min,o=!1),this.scale=new Fge(this.range.start,this.range.end,o,i,this.dom.frame.offsetHeight,this.props.majorCharHeight,this.options.alignZeros,this.options[n].format),!1===this.master&&null!=this.masterAxis?(this.scale.followScale(this.masterAxis.scale),this.dom.lineContainer.style.display="none"):this.dom.lineContainer.style.display="block",this.maxLabelSize=0;var a=this.scale.getLines();O8(a).call(a,(function(t){var r=t.y,i=t.major;e.options.showMinorLabels&&!1===i&&e._redrawLabel(r-2,t.val,n,"vis-y-axis vis-minor",e.props.minorCharHeight),i&&r>=0&&e._redrawLabel(r-2,t.val,n,"vis-y-axis vis-major",e.props.majorCharHeight),!0===e.master&&(i?e._redrawLine(r,n,"vis-grid vis-horizontal vis-major",e.options.majorLinesOffset,e.props.majorLineWidth):e._redrawLine(r,n,"vis-grid vis-horizontal vis-minor",e.options.minorLinesOffset,e.props.minorLineWidth))}));var s=0;void 0!==this.options[n].title&&void 0!==this.options[n].title.text&&(s=this.props.titleCharHeight);var l=!0===this.options.icons?Math.max(this.options.iconWidth,s)+this.options.labelOffsetX+15:s+this.options.labelOffsetX+15;return this.maxLabelSize>this.width-l&&!0===this.options.visible?(this.width=this.maxLabelSize+l,this.options.width="".concat(this.width,"px"),xie(this.DOMelements.lines),xie(this.DOMelements.labels),this.redraw(),t=!0):this.maxLabelSize<this.width-l&&!0===this.options.visible&&this.width>this.minWidth?(this.width=Math.max(this.minWidth,this.maxLabelSize+l),this.options.width="".concat(this.width,"px"),xie(this.DOMelements.lines),xie(this.DOMelements.labels),this.redraw(),t=!0):(xie(this.DOMelements.lines),xie(this.DOMelements.labels),t=!1),t}},{key:"convertValue",value:function(e){return this.scale.convertValue(e)}},{key:"screenToValue",value:function(e){return this.scale.screenToValue(e)}},{key:"_redrawLabel",value:function(e,t,n,r,i){var o=Sie("div",this.DOMelements.labels,this.dom.frame);o.className=r,o.innerHTML=qfe.xss(t),"left"===n?(o.style.left="-".concat(this.options.labelOffsetX,"px"),o.style.textAlign="right"):(o.style.right="-".concat(this.options.labelOffsetX,"px"),o.style.textAlign="left"),o.style.top="".concat(e-.5*i+this.options.labelOffsetY,"px"),t+="";var a=Math.max(this.props.majorCharWidth,this.props.minorCharWidth);this.maxLabelSize<t.length*a&&(this.maxLabelSize=t.length*a)}},{key:"_redrawLine",value:function(e,t,n,r,i){if(!0===this.master){var o=Sie("div",this.DOMelements.lines,this.dom.lineContainer);o.className=n,o.innerHTML="","left"===t?o.style.left="".concat(this.width-r,"px"):o.style.right="".concat(this.width-r,"px"),o.style.width="".concat(i,"px"),o.style.top="".concat(e,"px")}}},{key:"_redrawTitle",value:function(e){if(wie(this.DOMelements.title),void 0!==this.options[e].title&&void 0!==this.options[e].title.text){var t=Sie("div",this.DOMelements.title,this.dom.frame);t.className="vis-y-axis vis-title vis-".concat(e),t.innerHTML=qfe.xss(this.options[e].title.text),void 0!==this.options[e].title.style&&qfe.addCssText(t,this.options[e].title.style),"left"===e?t.style.left="".concat(this.props.titleCharHeight,"px"):t.style.right="".concat(this.props.titleCharHeight,"px"),t.style.width="".concat(this.height,"px")}xie(this.DOMelements.title)}},{key:"_calculateCharSize",value:function(){if(!("minorCharHeight"in this.props)){var e=document.createTextNode("0"),t=document.createElement("div");t.className="vis-y-axis vis-minor vis-measure",t.appendChild(e),this.dom.frame.appendChild(t),this.props.minorCharHeight=t.clientHeight,this.props.minorCharWidth=t.clientWidth,this.dom.frame.removeChild(t)}if(!("majorCharHeight"in this.props)){var n=document.createTextNode("0"),r=document.createElement("div");r.className="vis-y-axis vis-major vis-measure",r.appendChild(n),this.dom.frame.appendChild(r),this.props.majorCharHeight=r.clientHeight,this.props.majorCharWidth=r.clientWidth,this.dom.frame.removeChild(r)}if(!("titleCharHeight"in this.props)){var i=document.createTextNode("0"),o=document.createElement("div");o.className="vis-y-axis vis-title vis-measure",o.appendChild(i),this.dom.frame.appendChild(o),this.props.titleCharHeight=o.clientHeight,this.props.titleCharWidth=o.clientWidth,this.dom.frame.removeChild(o)}}}]),t}();function zge(e,t){}function Wge(e,t){return{style:(t=void 0===t?{}:t).style||e.options.drawPoints.style,styles:t.styles||e.options.drawPoints.styles,size:t.size||e.options.drawPoints.size,className:t.className||e.className}}function Gge(e,t){}function Vge(e,t){}function qge(e,t,n,r){this.id=t;this.options=qfe.selectiveBridgeObject(["sampling","style","sort","yAxisOrientation","barChart","drawPoints","shaded","interpolation","zIndex","excludeFromStacking","excludeFromLegend"],n),this.usingDefaultStyle=void 0===e.className,this.groupsUsingDefaultStyles=r,this.zeroPosition=0,this.update(e),1==this.usingDefaultStyle&&(this.groupsUsingDefaultStyles[0]+=1),this.itemsData=[],this.visible=void 0===e.visible||e.visible}function Qge(e,t,n,r){this.body=e,this.defaultOptions={enabled:!1,icons:!0,iconSize:20,iconSpacing:6,left:{visible:!0,position:"top-left"},right:{visible:!0,position:"top-right"}},this.side=n,this.options=qfe.extend({},this.defaultOptions),this.linegraphOptions=r,this.svgElements={},this.dom={},this.groups={},this.amountOfGroups=0,this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups},this.setOptions(t)}zge.draw=function(e,t,n,r){r=r||0;for(var i=function(e,t){var n=void 0;e.options&&e.options.drawPoints&&e.options.drawPoints.onRender&&"function"==typeof e.options.drawPoints.onRender&&(n=e.options.drawPoints.onRender);t.group.options&&t.group.options.drawPoints&&t.group.options.drawPoints.onRender&&"function"==typeof t.group.options.drawPoints.onRender&&(n=t.group.options.drawPoints.onRender);return n}(n,t),o=0;o<e.length;o++)if(i){var a=i(e[o],t);!0!==a&&"object"!==w6(a)||kie(e[o].screen_x+r,e[o].screen_y,Wge(t,a),n.svgElements,n.svg,e[o].label)}else kie(e[o].screen_x+r,e[o].screen_y,Wge(t),n.svgElements,n.svg,e[o].label)},zge.drawIcon=function(e,t,n,r,i,o){var a=.5*i,s=_ie("rect",o.svgElements,o.svg);s.setAttributeNS(null,"x",t),s.setAttributeNS(null,"y",n-a),s.setAttributeNS(null,"width",r),s.setAttributeNS(null,"height",2*a),s.setAttributeNS(null,"class","vis-outline"),kie(t+.5*r,n,Wge(e),o.svgElements,o.svg)},Gge.drawIcon=function(e,t,n,r,i,o){var a=.5*i,s=_ie("rect",o.svgElements,o.svg);s.setAttributeNS(null,"x",t),s.setAttributeNS(null,"y",n-a),s.setAttributeNS(null,"width",r),s.setAttributeNS(null,"height",2*a),s.setAttributeNS(null,"class","vis-outline");var l=Math.round(.3*r),u=e.options.barChart.width/l,c=Math.round(.4*i),d=Math.round(.75*i),h=Math.round((r-2*l)/3);if(Tie(t+.5*l+h,n+a-c-1,l,c,e.className+" vis-bar",o.svgElements,o.svg,e.style),Tie(t+1.5*l+h+2,n+a-d-1,l,d,e.className+" vis-bar",o.svgElements,o.svg,e.style),1==e.options.drawPoints.enabled){var p={style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size/u,className:e.className};kie(t+.5*l+h,n+a-c-1,p,o.svgElements,o.svg),kie(t+1.5*l+h+2,n+a-d-1,p,o.svgElements,o.svg)}},Gge.draw=function(e,t,n){var r,i,o,a,s,l,u=[],c={},d=0;for(s=0;s<e.length;s++)if("bar"===(a=n.groups[e[s]]).options.style&&!0===a.visible&&(void 0===n.options.groups.visibility[e[s]]||!0===n.options.groups.visibility[e[s]]))for(l=0;l<t[e[s]].length;l++)u.push({screen_x:t[e[s]][l].screen_x,screen_end:t[e[s]][l].screen_end,screen_y:t[e[s]][l].screen_y,x:t[e[s]][l].x,end:t[e[s]][l].end,y:t[e[s]][l].y,groupId:e[s],label:t[e[s]][l].label}),d+=1;if(0!==d)for(Gde(u).call(u,(function(e,t){return e.screen_x===t.screen_x?e.groupId<t.groupId?-1:1:e.screen_x-t.screen_x})),Gge._getDataIntersections(c,u),s=0;s<u.length;s++){var h=null!=(a=n.groups[u[s].groupId]).options.barChart.minWidth?a.options.barChart.minWidth:.1*a.options.barChart.width,p=0;if(void 0===c[i=u[s].screen_x])s+1<u.length&&(r=Math.abs(u[s+1].screen_x-i)),o=Gge._getSafeDrawData(r,a,h);else{var f=s+(c[i].amount-c[i].resolved);f<u.length&&(r=Math.abs(u[f].screen_x-i)),o=Gge._getSafeDrawData(r,a,h),c[i].resolved+=1,!0===a.options.stack&&!0!==a.options.excludeFromStacking?u[s].screen_y<a.zeroPosition?(p=c[i].accumulatedNegative,c[i].accumulatedNegative+=a.zeroPosition-u[s].screen_y):(p=c[i].accumulatedPositive,c[i].accumulatedPositive+=a.zeroPosition-u[s].screen_y):!0===a.options.barChart.sideBySide&&(o.width=o.width/c[i].amount,o.offset+=c[i].resolved*o.width-.5*o.width*(c[i].amount+1))}var m=o.width,v=u[s].screen_x;if(null!=u[s].screen_end?v+=.5*(m=u[s].screen_end-u[s].screen_x):v+=o.offset,Tie(v,u[s].screen_y-p,m,a.zeroPosition-u[s].screen_y,a.className+" vis-bar",n.svgElements,n.svg,a.style),!0===a.options.drawPoints.enabled){var g={screen_x:u[s].screen_x,screen_y:u[s].screen_y-p,x:u[s].x,y:u[s].y,groupId:u[s].groupId,label:u[s].label};zge.draw([g],a,n,o.offset)}}},Gge._getDataIntersections=function(e,t){for(var n,r=0;r<t.length;r++)r+1<t.length&&(n=Math.abs(t[r+1].screen_x-t[r].screen_x)),r>0&&(n=Math.min(n,Math.abs(t[r-1].screen_x-t[r].screen_x))),0===n&&(void 0===e[t[r].screen_x]&&(e[t[r].screen_x]={amount:0,resolved:0,accumulatedPositive:0,accumulatedNegative:0}),e[t[r].screen_x].amount+=1)},Gge._getSafeDrawData=function(e,t,n){var r,i;return e<t.options.barChart.width&&e>0?(r=e<n?n:e,i=0,"left"===t.options.barChart.align?i-=.5*e:"right"===t.options.barChart.align&&(i+=.5*e)):(r=t.options.barChart.width,i=0,"left"===t.options.barChart.align?i-=.5*t.options.barChart.width:"right"===t.options.barChart.align&&(i+=.5*t.options.barChart.width)),{width:r,offset:i}},Gge.getStackedYRange=function(e,t,n,r,i){if(e.length>0){Gde(e).call(e,(function(e,t){return e.screen_x===t.screen_x?e.groupId<t.groupId?-1:1:e.screen_x-t.screen_x}));var o={};Gge._getDataIntersections(o,e),t[r]=Gge._getStackedYRange(o,e),t[r].yAxisOrientation=i,n.push(r)}},Gge._getStackedYRange=function(e,t){for(var n,r=t[0].screen_y,i=t[0].screen_y,o=0;o<t.length;o++)void 0===e[n=t[o].screen_x]?(r=r>t[o].screen_y?t[o].screen_y:r,i=i<t[o].screen_y?t[o].screen_y:i):t[o].screen_y<0?e[n].accumulatedNegative+=t[o].screen_y:e[n].accumulatedPositive+=t[o].screen_y;for(var a in e)e.hasOwnProperty(a)&&(r=(r=r>e[a].accumulatedNegative?e[a].accumulatedNegative:r)>e[a].accumulatedPositive?e[a].accumulatedPositive:r,i=(i=i<e[a].accumulatedNegative?e[a].accumulatedNegative:i)<e[a].accumulatedPositive?e[a].accumulatedPositive:i);return{min:r,max:i}},Vge.calcPath=function(e,t){if(null!=e&&e.length>0){return 1==t.options.interpolation.enabled?Vge._catmullRom(e,t):Vge._linear(e)}},Vge.drawIcon=function(e,t,n,r,i,o){var a,s,l=.5*i,u=_ie("rect",o.svgElements,o.svg);(u.setAttributeNS(null,"x",t),u.setAttributeNS(null,"y",n-l),u.setAttributeNS(null,"width",r),u.setAttributeNS(null,"height",2*l),u.setAttributeNS(null,"class","vis-outline"),(a=_ie("path",o.svgElements,o.svg)).setAttributeNS(null,"class",e.className),void 0!==e.style&&a.setAttributeNS(null,"style",e.style),a.setAttributeNS(null,"d","M"+t+","+n+" L"+(t+r)+","+n),1==e.options.shaded.enabled&&(s=_ie("path",o.svgElements,o.svg),"top"==e.options.shaded.orientation?s.setAttributeNS(null,"d","M"+t+", "+(n-l)+"L"+t+","+n+" L"+(t+r)+","+n+" L"+(t+r)+","+(n-l)):s.setAttributeNS(null,"d","M"+t+","+n+" L"+t+","+(n+l)+" L"+(t+r)+","+(n+l)+"L"+(t+r)+","+n),s.setAttributeNS(null,"class",e.className+" vis-icon-fill"),void 0!==e.options.shaded.style&&""!==e.options.shaded.style&&s.setAttributeNS(null,"style",e.options.shaded.style)),1==e.options.drawPoints.enabled)&&kie(t+.5*r,n,{style:e.options.drawPoints.style,styles:e.options.drawPoints.styles,size:e.options.drawPoints.size,className:e.className},o.svgElements,o.svg)},Vge.drawShading=function(e,t,n,r){if(1==t.options.shaded.enabled){var i,o=Number(r.svg.style.height.replace("px","")),a=_ie("path",r.svgElements,r.svg),s="L";1==t.options.interpolation.enabled&&(s="C");var l=0;l="top"==t.options.shaded.orientation?0:"bottom"==t.options.shaded.orientation?o:Math.min(Math.max(0,t.zeroPosition),o),i="group"==t.options.shaded.orientation&&null!=n&&null!=n?"M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,s,!1)+" L"+n[n.length-1][0]+","+n[n.length-1][1]+" "+this.serializePath(n,s,!0)+n[0][0]+","+n[0][1]+" Z":"M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,s,!1)+" V"+l+" H"+e[0][0]+" Z",a.setAttributeNS(null,"class",t.className+" vis-fill"),void 0!==t.options.shaded.style&&a.setAttributeNS(null,"style",t.options.shaded.style),a.setAttributeNS(null,"d",i)}},Vge.draw=function(e,t,n){if(null!=e&&null!=e){var r=_ie("path",n.svgElements,n.svg);r.setAttributeNS(null,"class",t.className),void 0!==t.style&&r.setAttributeNS(null,"style",t.style);var i="L";1==t.options.interpolation.enabled&&(i="C"),r.setAttributeNS(null,"d","M"+e[0][0]+","+e[0][1]+" "+this.serializePath(e,i,!1))}},Vge.serializePath=function(e,t,n){if(e.length<2)return"";var r,i=t;if(n)for(r=e.length-2;r>0;r--)i+=e[r][0]+","+e[r][1]+" ";else for(r=1;r<e.length;r++)i+=e[r][0]+","+e[r][1]+" ";return i},Vge._catmullRomUniform=function(e){var t,n,r,i,o,a,s=[];s.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var l=1/6,u=e.length,c=0;c<u-1;c++)t=0==c?e[0]:e[c-1],n=e[c],r=e[c+1],i=c+2<u?e[c+2]:r,o={screen_x:(-t.screen_x+6*n.screen_x+r.screen_x)*l,screen_y:(-t.screen_y+6*n.screen_y+r.screen_y)*l},a={screen_x:(n.screen_x+6*r.screen_x-i.screen_x)*l,screen_y:(n.screen_y+6*r.screen_y-i.screen_y)*l},s.push([o.screen_x,o.screen_y]),s.push([a.screen_x,a.screen_y]),s.push([r.screen_x,r.screen_y]);return s},Vge._catmullRom=function(e,t){var n=t.options.interpolation.alpha;if(0==n||void 0===n)return this._catmullRomUniform(e);var r,i,o,a,s,l,u,c,d,h,p,f,m,v,g,y,b,w,x,_=[];_.push([Math.round(e[0].screen_x),Math.round(e[0].screen_y)]);for(var S=e.length,k=0;k<S-1;k++)r=0==k?e[0]:e[k-1],i=e[k],o=e[k+1],a=k+2<S?e[k+2]:o,u=Math.sqrt(Math.pow(r.screen_x-i.screen_x,2)+Math.pow(r.screen_y-i.screen_y,2)),c=Math.sqrt(Math.pow(i.screen_x-o.screen_x,2)+Math.pow(i.screen_y-o.screen_y,2)),d=Math.sqrt(Math.pow(o.screen_x-a.screen_x,2)+Math.pow(o.screen_y-a.screen_y,2)),v=Math.pow(d,n),y=Math.pow(d,2*n),g=Math.pow(c,n),b=Math.pow(c,2*n),x=Math.pow(u,n),h=2*(w=Math.pow(u,2*n))+3*x*g+b,p=2*y+3*v*g+b,(f=3*x*(x+g))>0&&(f=1/f),(m=3*v*(v+g))>0&&(m=1/m),s={screen_x:(-b*r.screen_x+h*i.screen_x+w*o.screen_x)*f,screen_y:(-b*r.screen_y+h*i.screen_y+w*o.screen_y)*f},l={screen_x:(y*i.screen_x+p*o.screen_x-b*a.screen_x)*m,screen_y:(y*i.screen_y+p*o.screen_y-b*a.screen_y)*m},0==s.screen_x&&0==s.screen_y&&(s=i),0==l.screen_x&&0==l.screen_y&&(l=o),_.push([s.screen_x,s.screen_y]),_.push([l.screen_x,l.screen_y]),_.push([o.screen_x,o.screen_y]);return _},Vge._linear=function(e){for(var t=[],n=0;n<e.length;n++)t.push([e[n].screen_x,e[n].screen_y]);return t},qge.prototype.setItems=function(e){null!=e?(this.itemsData=e,1==Gde(this.options)&&qfe.insertSort(this.itemsData,(function(e,t){return e.x>t.x?1:-1}))):this.itemsData=[]},qge.prototype.getItems=function(){return this.itemsData},qge.prototype.setZeroPosition=function(e){this.zeroPosition=e},qge.prototype.setOptions=function(e){if(void 0!==e){qfe.selectiveDeepExtend(["sampling","style","sort","yAxisOrientation","barChart","zIndex","excludeFromStacking","excludeFromLegend"],this.options,e),"function"==typeof e.drawPoints&&(e.drawPoints={onRender:e.drawPoints}),qfe.mergeOptions(this.options,e,"interpolation"),qfe.mergeOptions(this.options,e,"drawPoints"),qfe.mergeOptions(this.options,e,"shaded"),e.interpolation&&"object"==w6(e.interpolation)&&e.interpolation.parametrization&&("uniform"==e.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==e.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5))}},qge.prototype.update=function(e){this.group=e,this.content=e.content||"graph",this.className=e.className||this.className||"vis-graph-group"+this.groupsUsingDefaultStyles[0]%10,this.visible=void 0===e.visible||e.visible,this.style=e.style,this.setOptions(e.options)},qge.prototype.getLegend=function(e,t,n,r,i){null!=n&&null!=n||(n={svg:document.createElementNS("http://www.w3.org/2000/svg","svg"),svgElements:{},options:this.options,groups:[this]});switch(null!=r&&null!=r||(r=0),null!=i&&null!=i||(i=.5*t),this.options.style){case"line":Vge.drawIcon(this,r,i,e,t,n);break;case"points":case"point":zge.drawIcon(this,r,i,e,t,n);break;case"bar":Gge.drawIcon(this,r,i,e,t,n)}return{icon:n.svg,label:this.content,orientation:this.options.yAxisOrientation}},qge.prototype.getYRange=function(e){for(var t=e[0].y,n=e[0].y,r=0;r<e.length;r++)t=t>e[r].y?e[r].y:t,n=n<e[r].y?e[r].y:n;return{min:t,max:n,yAxisOrientation:this.options.yAxisOrientation}},Qge.prototype=new ome,Qge.prototype.clear=function(){this.groups={},this.amountOfGroups=0},Qge.prototype.addGroup=function(e,t){1!=t.options.excludeFromLegend&&(this.groups.hasOwnProperty(e)||(this.groups[e]=t),this.amountOfGroups+=1)},Qge.prototype.updateGroup=function(e,t){this.groups[e]=t},Qge.prototype.removeGroup=function(e){this.groups.hasOwnProperty(e)&&(delete this.groups[e],this.amountOfGroups-=1)},Qge.prototype._create=function(){this.dom.frame=document.createElement("div"),this.dom.frame.className="vis-legend",this.dom.frame.style.position="absolute",this.dom.frame.style.top="10px",this.dom.frame.style.display="block",this.dom.textArea=document.createElement("div"),this.dom.textArea.className="vis-legend-text",this.dom.textArea.style.position="relative",this.dom.textArea.style.top="0px",this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="absolute",this.svg.style.top="0px",this.svg.style.width=this.options.iconSize+5+"px",this.svg.style.height="100%",this.dom.frame.appendChild(this.svg),this.dom.frame.appendChild(this.dom.textArea)},Qge.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},Qge.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},Qge.prototype.setOptions=function(e){qfe.selectiveDeepExtend(["enabled","orientation","icons","left","right"],this.options,e)},Qge.prototype.redraw=function(){var e=0,t=V4(this.groups);Gde(t).call(t,(function(e,t){return e<t?-1:1}));for(var n=0;n<t.length;n++){var r=t[n];1!=this.groups[r].visible||void 0!==this.linegraphOptions.visibility[r]&&1!=this.linegraphOptions.visibility[r]||e++}if(0==this.options[this.side].visible||0==this.amountOfGroups||0==this.options.enabled||0==e)this.hide();else{if(this.show(),"top-left"==this.options[this.side].position||"bottom-left"==this.options[this.side].position?(this.dom.frame.style.left="4px",this.dom.frame.style.textAlign="left",this.dom.textArea.style.textAlign="left",this.dom.textArea.style.left=this.options.iconSize+15+"px",this.dom.textArea.style.right="",this.svg.style.left="0px",this.svg.style.right=""):(this.dom.frame.style.right="4px",this.dom.frame.style.textAlign="right",this.dom.textArea.style.textAlign="right",this.dom.textArea.style.right=this.options.iconSize+15+"px",this.dom.textArea.style.left="",this.svg.style.right="0px",this.svg.style.left=""),"top-left"==this.options[this.side].position||"top-right"==this.options[this.side].position)this.dom.frame.style.top=4-Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.bottom="";else{var i=this.body.domProps.center.height-this.body.domProps.centerContainer.height;this.dom.frame.style.bottom=4+i+Number(this.body.dom.center.style.top.replace("px",""))+"px",this.dom.frame.style.top=""}0==this.options.icons?(this.dom.frame.style.width=this.dom.textArea.offsetWidth+10+"px",this.dom.textArea.style.right="",this.dom.textArea.style.left="",this.svg.style.width="0px"):(this.dom.frame.style.width=this.options.iconSize+15+this.dom.textArea.offsetWidth+10+"px",this.drawLegendIcons());var o="";for(n=0;n<t.length;n++)r=t[n],1!=this.groups[r].visible||void 0!==this.linegraphOptions.visibility[r]&&1!=this.linegraphOptions.visibility[r]||(o+=this.groups[r].content+"<br />");this.dom.textArea.innerHTML=qfe.xss(o),this.dom.textArea.style.lineHeight=.75*this.options.iconSize+this.options.iconSpacing+"px"}},Qge.prototype.drawLegendIcons=function(){if(this.dom.frame.parentNode){var e=V4(this.groups);Gde(e).call(e,(function(e,t){return e<t?-1:1})),wie(u=this.svgElements),xie(u),wie(u);var t=window.getComputedStyle(this.dom.frame).paddingTop,n=Number(t.replace("px","")),r=n,i=this.options.iconSize,o=.75*this.options.iconSize,a=n+.5*o+3;this.svg.style.width=i+5+n+"px";for(var s=0;s<e.length;s++){var l=e[s];1!=this.groups[l].visible||void 0!==this.linegraphOptions.visibility[l]&&1!=this.linegraphOptions.visibility[l]||(this.groups[l].getLegend(i,o,this.framework,r,a),a+=o+this.options.iconSpacing)}}var u};var $ge="__ungrouped__";function Xge(e,t){this.id=vpe(),this.body=e,this.defaultOptions={yAxisOrientation:"left",defaultGroup:"default",sort:!0,sampling:!0,stack:!1,graphHeight:"400px",shaded:{enabled:!1,orientation:"bottom"},style:"line",barChart:{width:50,sideBySide:!1,align:"center"},interpolation:{enabled:!0,parametrization:"centripetal",alpha:.5},drawPoints:{enabled:!0,size:6,style:"square"},dataAxis:{},legend:{},groups:{visibility:{}}},this.options=qfe.extend({},this.defaultOptions),this.dom={},this.props={},this.hammer=null,this.groups={},this.abortedGraphUpdate=!1,this.updateSVGheight=!1,this.updateSVGheightOnResize=!1,this.forceGraphUpdate=!0;var n=this;this.itemsData=null,this.groupsData=null,this.itemListeners={add:function(e,t,r){n._onAdd(t.items)},update:function(e,t,r){n._onUpdate(t.items)},remove:function(e,t,r){n._onRemove(t.items)}},this.groupListeners={add:function(e,t,r){n._onAddGroups(t.items)},update:function(e,t,r){n._onUpdateGroups(t.items)},remove:function(e,t,r){n._onRemoveGroups(t.items)}},this.items={},this.selection=[],this.lastStart=this.body.range.start,this.touchParams={},this.svgElements={},this.setOptions(t),this.groupsUsingDefaultStyles=[0],this.body.emitter.on("rangechanged",(function(){n.svg.style.left=qfe.option.asSize(-n.props.width),n.forceGraphUpdate=!0,n.redraw.call(n)})),this._create(),this.framework={svg:this.svg,svgElements:this.svgElements,options:this.options,groups:this.groups}}Xge.prototype=new ome,Xge.prototype._create=function(){var e=document.createElement("div");e.className="vis-line-graph",this.dom.frame=e,this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.style.position="relative",this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",this.svg.style.display="block",e.appendChild(this.svg),this.options.dataAxis.orientation="left",this.yAxisLeft=new Yge(this.body,this.options.dataAxis,this.svg,this.options.groups),this.options.dataAxis.orientation="right",this.yAxisRight=new Yge(this.body,this.options.dataAxis,this.svg,this.options.groups),delete this.options.dataAxis.orientation,this.legendLeft=new Qge(this.body,this.options.legend,"left",this.options.groups),this.legendRight=new Qge(this.body,this.options.legend,"right",this.options.groups),this.show()},Xge.prototype.setOptions=function(e){if(e){void 0===e.graphHeight&&void 0!==e.height?(this.updateSVGheight=!0,this.updateSVGheightOnResize=!0):void 0!==this.body.domProps.centerContainer.height&&void 0!==e.graphHeight&&Lee((e.graphHeight+"").replace("px",""))<this.body.domProps.centerContainer.height&&(this.updateSVGheight=!0),qfe.selectiveDeepExtend(["sampling","defaultGroup","stack","height","graphHeight","yAxisOrientation","style","barChart","dataAxis","sort","groups"],this.options,e),qfe.mergeOptions(this.options,e,"interpolation"),qfe.mergeOptions(this.options,e,"drawPoints"),qfe.mergeOptions(this.options,e,"shaded"),qfe.mergeOptions(this.options,e,"legend"),e.interpolation&&"object"==w6(e.interpolation)&&e.interpolation.parametrization&&("uniform"==e.interpolation.parametrization?this.options.interpolation.alpha=0:"chordal"==e.interpolation.parametrization?this.options.interpolation.alpha=1:(this.options.interpolation.parametrization="centripetal",this.options.interpolation.alpha=.5)),this.yAxisLeft&&void 0!==e.dataAxis&&(this.yAxisLeft.setOptions(this.options.dataAxis),this.yAxisRight.setOptions(this.options.dataAxis)),this.legendLeft&&void 0!==e.legend&&(this.legendLeft.setOptions(this.options.legend),this.legendRight.setOptions(this.options.legend)),this.groups.hasOwnProperty($ge)&&this.groups[$ge].setOptions(e)}this.dom.frame&&(this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0}))},Xge.prototype.hide=function(){this.dom.frame.parentNode&&this.dom.frame.parentNode.removeChild(this.dom.frame)},Xge.prototype.show=function(){this.dom.frame.parentNode||this.body.dom.center.appendChild(this.dom.frame)},Xge.prototype.setItems=function(e){var t,n=this,r=this.itemsData;if(e){if(!Bfe(e))throw new TypeError("Data must implement the interface of DataSet or DataView");this.itemsData=zfe(e)}else this.itemsData=null;if(r&&(O8(qfe).call(qfe,this.itemListeners,(function(e,t){r.off(t,e)})),r.dispose(),t=r.getIds(),this._onRemove(t)),this.itemsData){var i=this.id;O8(qfe).call(qfe,this.itemListeners,(function(e,t){n.itemsData.on(t,e,i)})),t=this.itemsData.getIds(),this._onAdd(t)}},Xge.prototype.setGroups=function(e){var t,n=this;if(this.groupsData){O8(qfe).call(qfe,this.groupListeners,(function(e,t){n.groupsData.off(t,e)})),t=this.groupsData.getIds(),this.groupsData=null;for(var r=0;r<t.length;r++)this._removeGroup(t[r])}if(e){if(!Bfe(e))throw new TypeError("Data must implement the interface of DataSet or DataView");this.groupsData=e}else this.groupsData=null;if(this.groupsData){var i=this.id;O8(qfe).call(qfe,this.groupListeners,(function(e,t){n.groupsData.on(t,e,i)})),t=this.groupsData.getIds(),this._onAddGroups(t)}},Xge.prototype._onUpdate=function(e){this._updateAllGroupData(e)},Xge.prototype._onAdd=function(e){this._onUpdate(e)},Xge.prototype._onRemove=function(e){this._onUpdate(e)},Xge.prototype._onUpdateGroups=function(e){this._updateAllGroupData(null,e)},Xge.prototype._onAddGroups=function(e){this._onUpdateGroups(e)},Xge.prototype._onRemoveGroups=function(e){for(var t=0;t<e.length;t++)this._removeGroup(e[t]);this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})},Xge.prototype._removeGroup=function(e){this.groups.hasOwnProperty(e)&&("right"==this.groups[e].options.yAxisOrientation?(this.yAxisRight.removeGroup(e),this.legendRight.removeGroup(e),this.legendRight.redraw()):(this.yAxisLeft.removeGroup(e),this.legendLeft.removeGroup(e),this.legendLeft.redraw()),delete this.groups[e])},Xge.prototype._updateGroup=function(e,t){this.groups.hasOwnProperty(t)?(this.groups[t].update(e),"right"==this.groups[t].options.yAxisOrientation?(this.yAxisRight.updateGroup(t,this.groups[t]),this.legendRight.updateGroup(t,this.groups[t]),this.yAxisLeft.removeGroup(t),this.legendLeft.removeGroup(t)):(this.yAxisLeft.updateGroup(t,this.groups[t]),this.legendLeft.updateGroup(t,this.groups[t]),this.yAxisRight.removeGroup(t),this.legendRight.removeGroup(t))):(this.groups[t]=new qge(e,t,this.options,this.groupsUsingDefaultStyles),"right"==this.groups[t].options.yAxisOrientation?(this.yAxisRight.addGroup(t,this.groups[t]),this.legendRight.addGroup(t,this.groups[t])):(this.yAxisLeft.addGroup(t,this.groups[t]),this.legendLeft.addGroup(t,this.groups[t]))),this.legendLeft.redraw(),this.legendRight.redraw()},Xge.prototype._updateAllGroupData=function(e,t){if(null!=this.itemsData){var n={},r=this.itemsData.get(),i=this.itemsData.idProp,o={};e&&z4(e).call(e,(function(e){o[e]=e}));for(var a={},s=0;s<r.length;s++){var l=r[s],u=l.group;null==u&&(u=$ge),a.hasOwnProperty(u)?a[u]++:a[u]=1}var c={};if(!t&&e)for(u in this.groups)if(this.groups.hasOwnProperty(u)){var d=(m=this.groups[u]).getItems();n[u]=nee(d).call(d,(function(e){return c[e[i]]=e[i],e[i]!==o[e[i]]}));var h=a[u];a[u]-=n[u].length,n[u].length<h&&(n[u][h-1]={})}for(s=0;s<r.length;s++)if(null==(u=(l=r[s]).group)&&(u=$ge),t||!e||l[i]===o[l[i]]||!c.hasOwnProperty(l[i])){n.hasOwnProperty(u)||(n[u]=new Array(a[u]));var p=qfe.bridgeObject(l);p.x=qfe.convert(l.x,"Date"),p.end=qfe.convert(l.end,"Date"),p.orginalY=l.y,p.y=Number(l.y),p[i]=l[i];var f=n[u].length-a[u]--;n[u][f]=p}for(u in this.groups)this.groups.hasOwnProperty(u)&&(n.hasOwnProperty(u)||(n[u]=new Array(0)));for(u in n)if(n.hasOwnProperty(u))if(0==n[u].length)this.groups.hasOwnProperty(u)&&this._removeGroup(u);else{var m=void 0;null!=this.groupsData&&(m=this.groupsData.get(u)),null==m&&(m={id:u,content:this.options.defaultGroup+u}),this._updateGroup(m,u),this.groups[u].setItems(n[u])}this.forceGraphUpdate=!0,this.body.emitter.emit("_change",{queue:!0})}},Xge.prototype.redraw=function(){var e=!1;this.props.width=this.dom.frame.offsetWidth,this.props.height=this.body.domProps.centerContainer.height-this.body.domProps.border.top-this.body.domProps.border.bottom,e=this._isResized()||e;var t,n=this.body.range.end-this.body.range.start,r=n!=this.lastVisibleInterval;(this.lastVisibleInterval=n,1==e)&&(this.svg.style.width=qfe.option.asSize(3*this.props.width),this.svg.style.left=qfe.option.asSize(-this.props.width),-1==Qee(t=this.options.height+"").call(t,"%")&&1!=this.updateSVGheightOnResize||(this.updateSVGheight=!0));if(1==this.updateSVGheight?(this.options.graphHeight!=this.props.height+"px"&&(this.options.graphHeight=this.props.height+"px",this.svg.style.height=this.props.height+"px"),this.updateSVGheight=!1):this.svg.style.height=(""+this.options.graphHeight).replace("px","")+"px",1==e||1==r||1==this.abortedGraphUpdate||1==this.forceGraphUpdate)e=this._updateGraph()||e,this.forceGraphUpdate=!1,this.lastStart=this.body.range.start,this.svg.style.left=-this.props.width+"px";else if(0!=this.lastStart){var i=this.body.range.start-this.lastStart,o=this.body.range.end-this.body.range.start;if(0!=this.props.width){var a=i*(this.props.width/o);this.svg.style.left=-this.props.width-a+"px"}}return this.legendLeft.redraw(),this.legendRight.redraw(),e},Xge.prototype._getSortedGroupIds=function(){var e=[];for(var t in this.groups)if(this.groups.hasOwnProperty(t)){var n=this.groups[t];1!=n.visible||void 0!==this.options.groups.visibility[t]&&1!=this.options.groups.visibility[t]||e.push({id:t,zIndex:n.options.zIndex})}qfe.insertSort(e,(function(e,t){var n=e.zIndex,r=t.zIndex;return void 0===n&&(n=0),void 0===r&&(r=0),n==r?0:n<r?-1:1}));for(var r=new Array(e.length),i=0;i<e.length;i++)r[i]=e[i].id;return r},Xge.prototype._updateGraph=function(){if(wie(this.svgElements),0!=this.props.width&&null!=this.itemsData){var e,t,n={},r=this.body.util.toGlobalTime(-this.body.domProps.root.width),i=this.body.util.toGlobalTime(2*this.body.domProps.root.width),o=this._getSortedGroupIds();if(o.length>0){var a={};for(this._getRelevantData(o,a,r,i),this._applySampling(o,a),t=0;t<o.length;t++)this._convertXcoordinates(a[o[t]]);if(this._getYRanges(o,a,n),1==this._updateYAxis(o,n))return xie(this.svgElements),this.abortedGraphUpdate=!0,!0;this.abortedGraphUpdate=!1;var s=void 0;for(t=0;t<o.length;t++)e=this.groups[o[t]],!0===this.options.stack&&"line"===this.options.style&&(null!=e.options.excludeFromStacking&&e.options.excludeFromStacking||(null!=s&&(this._stack(a[e.id],a[s.id]),1==e.options.shaded.enabled&&"group"!==e.options.shaded.orientation&&("top"==e.options.shaded.orientation&&"group"!==s.options.shaded.orientation?(s.options.shaded.orientation="group",s.options.shaded.groupId=e.id):(e.options.shaded.orientation="group",e.options.shaded.groupId=s.id))),s=e)),this._convertYcoordinates(a[o[t]],e);var l={};for(t=0;t<o.length;t++)if("line"===(e=this.groups[o[t]]).options.style&&1==e.options.shaded.enabled){var u=a[o[t]];if(null==u||0==u.length)continue;if(l.hasOwnProperty(o[t])||(l[o[t]]=Vge.calcPath(u,e)),"group"===e.options.shaded.orientation){var c=e.options.shaded.groupId;if(-1===Qee(o).call(o,c)){console.log(e.id+": Unknown shading group target given:"+c);continue}l.hasOwnProperty(c)||(l[c]=Vge.calcPath(a[c],this.groups[c])),Vge.drawShading(l[o[t]],e,l[c],this.framework)}else Vge.drawShading(l[o[t]],e,void 0,this.framework)}for(Gge.draw(o,a,this.framework),t=0;t<o.length;t++)if(e=this.groups[o[t]],a[o[t]].length>0)switch(e.options.style){case"line":l.hasOwnProperty(o[t])||(l[o[t]]=Vge.calcPath(a[o[t]],e)),Vge.draw(l[o[t]],e,this.framework);case"point":case"points":"point"!=e.options.style&&"points"!=e.options.style&&1!=e.options.drawPoints.enabled||zge.draw(a[o[t]],e,this.framework)}}}return xie(this.svgElements),!1},Xge.prototype._stack=function(e,t){var n,r,i,o,a;n=0;for(var s=0;s<e.length;s++){o=void 0,a=void 0;for(var l=n;l<t.length;l++){if(t[l].x===e[s].x){o=t[l],a=t[l],n=l;break}if(t[l].x>e[s].x){a=t[l],o=0==l?a:t[l-1],n=l;break}}void 0===a&&(o=t[t.length-1],a=t[t.length-1]),r=a.x-o.x,i=a.y-o.y,e[s].y=0==r?e[s].orginalY+a.y:e[s].orginalY+i/r*(e[s].x-o.x)+o.y}},Xge.prototype._getRelevantData=function(e,t,n,r){var i,o,a,s;if(e.length>0)for(o=0;o<e.length;o++){var l=(i=this.groups[e[o]]).getItems();if(1==Gde(i.options)){var u=function(e,t){return e.getTime()==t.getTime()?0:e<t?-1:1},c=Math.max(0,qfe.binarySearchValue(l,n,"x","before",u)),d=Math.min(l.length,qfe.binarySearchValue(l,r,"x","after",u)+1);d<=0&&(d=l.length);var h=new Array(d-c);for(a=c;a<d;a++)s=i.itemsData[a],h[a-c]=s;t[e[o]]=h}else t[e[o]]=i.itemsData}},Xge.prototype._applySampling=function(e,t){if(e.length>0)for(var n=0;n<e.length;n++)if(1==this.groups[e[n]].options.sampling){var r=t[e[n]];if(r.length>0){var i,o=r.length,a=o/(this.body.util.toGlobalScreen(r[r.length-1].x)-this.body.util.toGlobalScreen(r[0].x));i=Math.min(Math.ceil(.2*o),Math.max(1,Math.round(a)));for(var s=new Array(o),l=0;l<o;l+=i){s[Math.round(l/i)]=r[l]}t[e[n]]=s7(s).call(s,0,Math.round(o/i))}}},Xge.prototype._getYRanges=function(e,t,n){var r,i,o,a,s=[],l=[];if(e.length>0){for(o=0;o<e.length;o++)r=t[e[o]],a=this.groups[e[o]].options,r.length>0&&(i=this.groups[e[o]],!0===a.stack&&"bar"===a.style?"left"===a.yAxisOrientation?s=E4(s).call(s,r):l=E4(l).call(l,r):n[e[o]]=i.getYRange(r,e[o]));Gge.getStackedYRange(s,n,e,"__barStackLeft","left"),Gge.getStackedYRange(l,n,e,"__barStackRight","right")}},Xge.prototype._updateYAxis=function(e,t){var n,r,i=!1,o=!1,a=!1,s=1e9,l=1e9,u=-1e9,c=-1e9;if(e.length>0){for(var d=0;d<e.length;d++){var h=this.groups[e[d]];h&&"right"!=h.options.yAxisOrientation?(o=!0,s=1e9,u=-1e9):h&&h.options.yAxisOrientation&&(a=!0,l=1e9,c=-1e9)}for(d=0;d<e.length;d++)t.hasOwnProperty(e[d])&&!0!==t[e[d]].ignore&&(n=t[e[d]].min,r=t[e[d]].max,"right"!=t[e[d]].yAxisOrientation?(o=!0,s=s>n?n:s,u=u<r?r:u):(a=!0,l=l>n?n:l,c=c<r?r:c));1==o&&this.yAxisLeft.setRange(s,u),1==a&&this.yAxisRight.setRange(l,c)}i=this._toggleAxisVisiblity(o,this.yAxisLeft)||i,i=this._toggleAxisVisiblity(a,this.yAxisRight)||i,1==a&&1==o?(this.yAxisLeft.drawIcons=!0,this.yAxisRight.drawIcons=!0):(this.yAxisLeft.drawIcons=!1,this.yAxisRight.drawIcons=!1),this.yAxisRight.master=!o,this.yAxisRight.masterAxis=this.yAxisLeft,0==this.yAxisRight.master?(this.yAxisLeft.lineOffset=1==a?this.yAxisRight.width:0,i=this.yAxisLeft.redraw()||i,i=this.yAxisRight.redraw()||i):i=this.yAxisRight.redraw()||i;var p=["__barStackLeft","__barStackRight","__lineStackLeft","__lineStackRight"];for(d=0;d<p.length;d++)-1!=Qee(e).call(e,p[d])&&s7(e).call(e,Qee(e).call(e,p[d]),1);return i},Xge.prototype._toggleAxisVisiblity=function(e,t){var n=!1;return 0==e?t.dom.frame.parentNode&&0==t.hidden&&(t.hide(),n=!0):t.dom.frame.parentNode||1!=t.hidden||(t.show(),n=!0),n},Xge.prototype._convertXcoordinates=function(e){for(var t=this.body.util.toScreen,n=0;n<e.length;n++)e[n].screen_x=t(e[n].x)+this.props.width,e[n].screen_y=e[n].y,null!=e[n].end?e[n].screen_end=t(e[n].end)+this.props.width:e[n].screen_end=void 0},Xge.prototype._convertYcoordinates=function(e,t){var n=this.yAxisLeft,r=Number(this.svg.style.height.replace("px",""));"right"==t.options.yAxisOrientation&&(n=this.yAxisRight);for(var i=0;i<e.length;i++)e[i].screen_y=Math.round(n.convertValue(e[i].y));t.setZeroPosition(Math.min(r,n.convertValue(0)))};var Kge="string",Zge="boolean",Jge="number",eye="date",tye="object",nye="moment",rye={configure:{enabled:{boolean:Zge},filter:{boolean:Zge,function:"function"},container:{dom:"dom"},__type__:{object:tye,boolean:Zge,function:"function"}},alignCurrentTime:{string:Kge,undefined:"undefined"},yAxisOrientation:{string:["left","right"]},defaultGroup:{string:Kge},sort:{boolean:Zge},sampling:{boolean:Zge},stack:{boolean:Zge},graphHeight:{string:Kge,number:Jge},shaded:{enabled:{boolean:Zge},orientation:{string:["bottom","top","zero","group"]},groupId:{object:tye},__type__:{boolean:Zge,object:tye}},style:{string:["line","bar","points"]},barChart:{width:{number:Jge},minWidth:{number:Jge},sideBySide:{boolean:Zge},align:{string:["left","center","right"]},__type__:{object:tye}},interpolation:{enabled:{boolean:Zge},parametrization:{string:["centripetal","chordal","uniform"]},alpha:{number:Jge},__type__:{object:tye,boolean:Zge}},drawPoints:{enabled:{boolean:Zge},onRender:{function:"function"},size:{number:Jge},style:{string:["square","circle"]},__type__:{object:tye,boolean:Zge,function:"function"}},dataAxis:{showMinorLabels:{boolean:Zge},showMajorLabels:{boolean:Zge},showWeekScale:{boolean:Zge},icons:{boolean:Zge},width:{string:Kge,number:Jge},visible:{boolean:Zge},alignZeros:{boolean:Zge},left:{range:{min:{number:Jge,undefined:"undefined"},max:{number:Jge,undefined:"undefined"},__type__:{object:tye}},format:{function:"function"},title:{text:{string:Kge,number:Jge,undefined:"undefined"},style:{string:Kge,undefined:"undefined"},__type__:{object:tye}},__type__:{object:tye}},right:{range:{min:{number:Jge,undefined:"undefined"},max:{number:Jge,undefined:"undefined"},__type__:{object:tye}},format:{function:"function"},title:{text:{string:Kge,number:Jge,undefined:"undefined"},style:{string:Kge,undefined:"undefined"},__type__:{object:tye}},__type__:{object:tye}},__type__:{object:tye}},legend:{enabled:{boolean:Zge},icons:{boolean:Zge},left:{visible:{boolean:Zge},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:tye}},right:{visible:{boolean:Zge},position:{string:["top-right","bottom-right","top-left","bottom-left"]},__type__:{object:tye}},__type__:{object:tye,boolean:Zge}},groups:{visibility:{any:"any"},__type__:{object:tye}},autoResize:{boolean:Zge},throttleRedraw:{number:Jge},clickToUse:{boolean:Zge},end:{number:Jge,date:eye,string:Kge,moment:nye},format:{minorLabels:{millisecond:{string:Kge,undefined:"undefined"},second:{string:Kge,undefined:"undefined"},minute:{string:Kge,undefined:"undefined"},hour:{string:Kge,undefined:"undefined"},weekday:{string:Kge,undefined:"undefined"},day:{string:Kge,undefined:"undefined"},week:{string:Kge,undefined:"undefined"},month:{string:Kge,undefined:"undefined"},quarter:{string:Kge,undefined:"undefined"},year:{string:Kge,undefined:"undefined"},__type__:{object:tye}},majorLabels:{millisecond:{string:Kge,undefined:"undefined"},second:{string:Kge,undefined:"undefined"},minute:{string:Kge,undefined:"undefined"},hour:{string:Kge,undefined:"undefined"},weekday:{string:Kge,undefined:"undefined"},day:{string:Kge,undefined:"undefined"},week:{string:Kge,undefined:"undefined"},month:{string:Kge,undefined:"undefined"},quarter:{string:Kge,undefined:"undefined"},year:{string:Kge,undefined:"undefined"},__type__:{object:tye}},__type__:{object:tye}},moment:{function:"function"},height:{string:Kge,number:Jge},hiddenDates:{start:{date:eye,number:Jge,string:Kge,moment:nye},end:{date:eye,number:Jge,string:Kge,moment:nye},repeat:{string:Kge},__type__:{object:tye,array:"array"}},locale:{string:Kge},locales:{__any__:{any:"any"},__type__:{object:tye}},max:{date:eye,number:Jge,string:Kge,moment:nye},maxHeight:{number:Jge,string:Kge},maxMinorChars:{number:Jge},min:{date:eye,number:Jge,string:Kge,moment:nye},minHeight:{number:Jge,string:Kge},moveable:{boolean:Zge},multiselect:{boolean:Zge},orientation:{string:Kge},showCurrentTime:{boolean:Zge},showMajorLabels:{boolean:Zge},showMinorLabels:{boolean:Zge},showWeekScale:{boolean:Zge},snap:{function:"function",null:"null"},start:{date:eye,number:Jge,string:Kge,moment:nye},timeAxis:{scale:{string:Kge,undefined:"undefined"},step:{number:Jge,undefined:"undefined"},__type__:{object:tye}},width:{string:Kge,number:Jge},zoomable:{boolean:Zge},zoomKey:{string:["ctrlKey","altKey","metaKey",""]},zoomMax:{number:Jge},zoomMin:{number:Jge},zIndex:{number:Jge},__type__:{object:tye}},iye={global:{alignCurrentTime:["none","year","month","quarter","week","isoWeek","day","date","hour","minute","second"],sort:!0,sampling:!0,stack:!1,shaded:{enabled:!1,orientation:["zero","top","bottom","group"]},style:["line","bar","points"],barChart:{width:[50,5,100,5],minWidth:[50,5,100,5],sideBySide:!1,align:["left","center","right"]},interpolation:{enabled:!0,parametrization:["centripetal","chordal","uniform"]},drawPoints:{enabled:!0,size:[6,2,30,1],style:["square","circle"]},dataAxis:{showMinorLabels:!0,showMajorLabels:!0,showWeekScale:!1,icons:!1,width:[40,0,200,1],visible:!0,alignZeros:!0,left:{title:{text:"",style:""}},right:{title:{text:"",style:""}}},legend:{enabled:!1,icons:!0,left:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]},right:{visible:!0,position:["top-right","bottom-right","top-left","bottom-left"]}},autoResize:!0,clickToUse:!1,end:"",format:{minorLabels:{millisecond:"SSS",second:"s",minute:"HH:mm",hour:"HH:mm",weekday:"ddd D",day:"D",week:"w",month:"MMM",quarter:"[Q]Q",year:"YYYY"},majorLabels:{millisecond:"HH:mm:ss",second:"D MMMM HH:mm",minute:"ddd D MMMM",hour:"ddd D MMMM",weekday:"MMMM YYYY",day:"MMMM YYYY",week:"MMMM YYYY",month:"YYYY",quarter:"YYYY",year:""}},height:"",locale:"",max:"",maxHeight:"",maxMinorChars:[7,0,20,1],min:"",minHeight:"",moveable:!0,orientation:["both","bottom","top"],showCurrentTime:!1,showMajorLabels:!0,showMinorLabels:!0,showWeekScale:!1,start:"",width:"100%",zoomable:!0,zoomKey:["ctrlKey","altKey","metaKey",""],zoomMax:[31536e10,10,31536e10,1],zoomMin:[10,10,31536e10,1],zIndex:0}};function oye(e,t,n,r){var i,o,a,s,l,u,c;if(!j4(n)&&!Bfe(n)&&n instanceof Object){var d=r;r=n,n=d}r&&r.throttleRedraw&&console.warn('Graph2d option "throttleRedraw" is DEPRICATED and no longer supported. It will be removed in the next MAJOR release.');var h=this;this.defaultOptions={start:null,end:null,autoResize:!0,orientation:{axis:"bottom",item:"bottom"},moment:Ape,width:null,height:null,maxHeight:null,minHeight:null},this.options=qfe.deepExtend({},this.defaultOptions),this._create(e),this.components=[],this.body={dom:this.dom,domProps:this.props,emitter:{on:m8(i=this.on).call(i,this),off:m8(o=this.off).call(o,this),emit:m8(a=this.emit).call(a,this)},hiddenDates:[],util:{getScale:function(){return h.timeAxis.step.scale},getStep:function(){return h.timeAxis.step.step},toScreen:m8(s=h._toScreen).call(s,h),toGlobalScreen:m8(l=h._toGlobalScreen).call(l,h),toTime:m8(u=h._toTime).call(u,h),toGlobalTime:m8(c=h._toGlobalTime).call(c,h)}},this.range=new Cme(this.body),this.components.push(this.range),this.body.range=this.range,this.timeAxis=new jme(this.body),this.components.push(this.timeAxis),this.currentTime=new ive(this.body),this.components.push(this.currentTime),this.linegraph=new Xge(this.body),this.components.push(this.linegraph),this.itemsData=null,this.groupsData=null,this.on("tap",(function(e){h.emit("click",h.getEventProperties(e))})),this.on("doubletap",(function(e){h.emit("doubleClick",h.getEventProperties(e))})),this.dom.root.oncontextmenu=function(e){h.emit("contextmenu",h.getEventProperties(e))},this.initialFitDone=!1,this.on("changed",(function(){if(null!=h.itemsData){if(!h.initialFitDone&&!h.options.rollingMode)if(h.initialFitDone=!0,null!=h.options.start||null!=h.options.end){if(null==h.options.start||null==h.options.end)var e=h.getItemRange();var t=null!=h.options.start?h.options.start:e.min,n=null!=h.options.end?h.options.end:e.max;h.setWindow(t,n,{animation:!1})}else h.fit({animation:!1});h.initialDrawDone||!h.initialRangeChangeDone&&(h.options.start||h.options.end)&&!h.options.rollingMode||(h.initialDrawDone=!0,h.dom.root.style.visibility="visible",h.dom.loadingScreen.parentNode.removeChild(h.dom.loadingScreen),h.options.onInitialDrawComplete&&_te((function(){return h.options.onInitialDrawComplete()}),0))}})),r&&this.setOptions(r),n&&this.setGroups(n),t&&this.setItems(t),this._redraw()}oye.prototype=new nve,oye.prototype.setOptions=function(e){!0===wge.validate(e,rye)&&console.log("%cErrors have been found in the supplied options object.",bge),nve.prototype.setOptions.call(this,e)},oye.prototype.setItems=function(e){var t,n=null==this.itemsData;if(t=e?Bfe(e)?zfe(e):zfe(new Ope(e)):null,this.itemsData&&this.itemsData.dispose(),this.itemsData=t,this.linegraph&&this.linegraph.setItems(null!=t?t.rawDS:null),n)if(null!=this.options.start||null!=this.options.end){var r=null!=this.options.start?this.options.start:null,i=null!=this.options.end?this.options.end:null;this.setWindow(r,i,{animation:!1})}else this.fit({animation:!1})},oye.prototype.setGroups=function(e){var t;t=e?Bfe(e)?e:new Ope(e):null,this.groupsData=t,this.linegraph.setGroups(t)},oye.prototype.getLegend=function(e,t,n){return void 0===t&&(t=15),void 0===n&&(n=15),void 0!==this.linegraph.groups[e]?this.linegraph.groups[e].getLegend(t,n):"cannot find group:'"+e+"'"},oye.prototype.isGroupVisible=function(e){return void 0!==this.linegraph.groups[e]&&(this.linegraph.groups[e].visible&&(void 0===this.linegraph.options.groups.visibility[e]||1==this.linegraph.options.groups.visibility[e]))},oye.prototype.getDataRange=function(){var e=null,t=null;for(var n in this.linegraph.groups)if(this.linegraph.groups.hasOwnProperty(n)&&1==this.linegraph.groups[n].visible)for(var r=0;r<this.linegraph.groups[n].itemsData.length;r++){var i=this.linegraph.groups[n].itemsData[r],o=qfe.convert(i.x,"Date").valueOf();e=null==e||e>o?o:e,t=null==t||t<o?o:t}return{min:null!=e?new Date(e):null,max:null!=t?new Date(t):null}},oye.prototype.getEventProperties=function(e){var t=e.center?e.center.x:e.clientX,n=e.center?e.center.y:e.clientY,r=t-qfe.getAbsoluteLeft(this.dom.centerContainer),i=n-qfe.getAbsoluteTop(this.dom.centerContainer),o=this._toTime(r),a=tve.customTimeFromTarget(e),s=qfe.getTarget(e),l=null;qfe.hasParent(s,this.timeAxis.dom.foreground)||this.timeAxis2&&qfe.hasParent(s,this.timeAxis2.dom.foreground)?l="axis":qfe.hasParent(s,this.linegraph.yAxisLeft.dom.frame)||qfe.hasParent(s,this.linegraph.yAxisRight.dom.frame)?l="data-axis":qfe.hasParent(s,this.linegraph.legendLeft.dom.frame)||qfe.hasParent(s,this.linegraph.legendRight.dom.frame)?l="legend":null!=a?l="custom-time":qfe.hasParent(s,this.currentTime.bar)?l="current-time":qfe.hasParent(s,this.dom.center)&&(l="background");var u=[],c=this.linegraph.yAxisLeft,d=this.linegraph.yAxisRight;return!c.hidden&&this.itemsData.length>0&&u.push(c.screenToValue(i)),!d.hidden&&this.itemsData.length>0&&u.push(d.screenToValue(i)),{event:e,customTime:a?a.options.id:null,what:l,pageX:e.srcEvent?e.srcEvent.pageX:e.pageX,pageY:e.srcEvent?e.srcEvent.pageY:e.pageY,x:r,y:i,time:o,value:u}},oye.prototype._createConfigurator=function(){return new Ige(this,this.dom.container,iye)};var aye=function(){try{return navigator?navigator.languages&&navigator.languages.length?navigator.languages:navigator.userLanguage||navigator.language||navigator.browserLanguage||"en":"en"}catch(e){return"en"}}();Ape.locale(aye);var sye=function(n){var i=n.sourceData,o=n.expandAll,a=void 0!==o&&o,s=n.showMore,l=void 0!==s&&s,u=n.onClickShowMoreAnomalies,c=n.onSelectedIssue,d=n.startTime,h=n.endTime,p=n.appName,f=n.showMultiline,m=void 0===f||f,v=p===exports.AppName.YBM?25:30,g=t.useState({}),y=g[0],b=g[1],w=t.useState({}),x=w[0],_=w[1],S=t.useRef(null),k=t.useRef(null);t.useEffect((function(){if(i){if(l){var e=function(e){for(var t,n={},r=0,i=Object.entries(e.groups);r<i.length;r++){var o=i[r],a=o[0],s=o[1];n[a]=Object.keys(s);for(var l=function(e,r){n[e]=(null===(t=r.groups)||void 0===t?void 0:t.map((function(t,n){return"".concat(e,"_").concat(n)})))||[]},u=0,c=Object.entries(s);u<c.length;u++){var d=c[u];l(d[0],d[1])}}return n}(i),t=function(e){for(var t={},n=0,r=Object.entries(e.groups);n<r.length;n++){var i=r[n],o=i[0],a=i[1];t[o]=!1;for(var s=0,l=Object.keys(a);s<l.length;s++)t[l[s]]=!1}return t}(i);_(e),b(t)}else _({}),b({})}}),[i]),t.useEffect((function(){b((function(e){var t=ot({},e);return Object.keys(t).forEach((function(e){t[e]=a})),t}))}),[a]);var T=function(e){var t,n=0;for(var r in e){if(Object.prototype.hasOwnProperty.call(e,r))n+=null===(t=e[r])||void 0===t?void 0:t.totalCount}return n},C=function(e){for(var t=0,n=Object.entries(x);t<n.length;t++){var r=n[t],i=r[0];if(r[1].includes(e))return C(i)}return e};return t.useEffect((function(){if((Object.keys(y).length>0||Sf(i))&&S.current){var e=l?function(e){for(var t=[],n=[],r=0,i=function(e,i){t.push({id:e,content:"+ ".concat(e),name:e,categoryLevel:1,categoryCount:T(i)});for(var o=function(i,o){var a="".concat(i),s=o.title;t.push({categoryLevel:2,id:a,content:o.totalCount>=1?"+ ".concat(s):"- ".concat(s),parent:e,name:s,categoryCount:o.totalCount});var u=[];if(o.groups.forEach((function(e,i){var o,s,l="".concat(a,"_").concat(i),c=(null===(o=e.lastInstance)||void 0===o?void 0:o.entityDisplayName)||"Group-".concat(i);t.push({id:l,name:c,content:c,parent:a,uuid:null===(s=null==e?void 0:e.lastInstance)||void 0===s?void 0:s.uuid,categoryLevel:3}),e.anomalyIntervals.forEach((function(e){r++,n.push({id:"anomaly-".concat(r),content:"anomaly-".concat(r),start:e.startTime,end:e.endTime,group:l})})),u.push.apply(u,e.anomalyIntervals)})),o.hasMore&&l){var c="".concat(a,"_").concat(Jz),d=Jz;t.push({id:c,name:d,content:"...",parent:a,categoryLevel:3,categoryCount:o.totalCount-3}),n.push({id:"anomaly-".concat(a,"-").concat(Jz),content:"anomaly-".concat(a,"-").concat(Jz),start:"",end:"",group:a})}xq(u).forEach((function(e){r++,n.push({id:"anomaly-".concat(r),content:"anomaly-".concat(r),start:e.startTime,end:e.endTime,group:a})}))},a=0,s=Object.entries(i);a<s.length;a++){var u=s[a];o(u[0],u[1])}var c=Object.values(i).flatMap((function(e){return e.groups.flatMap((function(e){return e.anomalyIntervals}))}));xq(c).forEach((function(t){r++,n.push({id:"anomaly-".concat(r),content:"anomaly-".concat(r),start:t.startTime,end:t.endTime,group:e})}))},o=0,a=Object.entries(null==e?void 0:e.groups);o<a.length;o++){var s=a[o];i(s[0],s[1])}return{groups:t,items:n}}(i):function(e){var t=[],n=[],r=0;return null==e||e.forEach((function(e,i){var o=e.lastInstance,a="group-".concat(i),s=(null==o?void 0:o.entityDisplayName)||"Group-".concat(i);t.push({id:a,content:s,name:s,uuid:null==o?void 0:o.uuid,categoryLevel:1}),e.anomalyIntervals.forEach((function(e){r++,n.push({id:"anomaly-".concat(r),content:"anomaly-".concat(r),start:e.startTime,end:e.endTime,group:a})}))})),{groups:t,items:n}}(i),t=e.items,n=e.groups,r={items:t,groups:n},o=n;if(l){var a=n.map((function(e){var t,n,r=e.categoryLevel-1,i=(null===(t=x[e.id])||void 0===t?void 0:t.length)>0,o=null!==(n=y[e.id])&&void 0!==n&&n,a=i?o?"-":"+":"",s=void 0!==(null==e?void 0:e.categoryCount)&&e.categoryCount>=0;return ot(ot({},e),{content:i?'<a title="'.concat(e.name,'">').concat(a," ").concat((null==e?void 0:e.name)&&e.name.length>v?"".concat(e.name.substring(0,v),"..."):e.name,"</a>").concat(1!==e.categoryLevel&&2!==e.categoryLevel||o?"":"&nbsp;&nbsp;<span>".concat(e.categoryCount,"</span>")):'<a title="'.concat(e.content,'">').concat(a," ").concat(e.content.length>v?"".concat(e.content.substring(0,v),"..."):e.content,"</a>").concat(s?"<span>".concat(3===e.categoryCount?"+":"").concat(e.categoryCount,"</span>"):""),style:"margin-left: ".concat(10*r,"px; ").concat(i||3!==e.categoryLevel?"":"border-left: 2px solid #E9EEF2 !important; height: 100%;"),visible:!e.parent||y[e.parent]})})),s=a.filter((function(e){return e.visible}));Object.entries(x).forEach((function(e){var t=e[0];e[1].forEach((function(e){var n=a.find((function(t){return t.id===e}));n&&(n.visible=y[t])}))}));var f=t.filter((function(e){var t,n=a.find((function(t){return t.id===e.group}));if(n&&n.visible){var r=(null===(t=x[n.id])||void 0===t?void 0:t.length)>0,i=y[n.id];return!r||!i}return!1}));r={items:w=f.map((function(e){var t=a.find((function(t){return t.id===e.group})),n=t?C(t.id):null,r="#CCCCCC";if(n)switch(n){case exports.AnomalyCategory.DB:r=bq[exports.AnomalyCategory.DB];break;case exports.AnomalyCategory.NODE:r=bq[exports.AnomalyCategory.NODE];break;case exports.AnomalyCategory.SQL:r=bq[exports.AnomalyCategory.SQL];break;case exports.AnomalyCategory.APP:r=bq[exports.AnomalyCategory.APP];break;case exports.AnomalyCategory.INFRA:r=bq[exports.AnomalyCategory.INFRA]}return ot(ot({},e),{style:"background-color: ".concat(r,"; height: 8px;")})})),groups:s}}else{var g=n.map((function(e){return ot(ot({},e),{content:m?'<a title="'.concat(e.content,'"> ').concat(e.content.length>v?"".concat(e.content.substring(0,v),"..."):e.content,"</a>"):"",style:"font-family: Menlo; margin-left: 12px"})})),w=t.map((function(e){var t,n,r="#CCCCCC",o=null===(n=null===(t=null==i?void 0:i[0])||void 0===t?void 0:t.lastInstance)||void 0===n?void 0:n.category;if(o)switch(o){case exports.AnomalyCategory.DB:r=bq[exports.AnomalyCategory.DB];break;case exports.AnomalyCategory.NODE:r=bq[exports.AnomalyCategory.NODE];break;case exports.AnomalyCategory.SQL:r=bq[exports.AnomalyCategory.SQL];break;case exports.AnomalyCategory.APP:r=bq[exports.AnomalyCategory.APP];break;case exports.AnomalyCategory.INFRA:r=bq[exports.AnomalyCategory.INFRA]}return ot(ot({},e),{style:"background-color: ".concat(r,"; height: 8px")})}));r={items:w,groups:g}}if(k.current){_={stack:!1,showCurrentTime:!1,min:d,max:h,start:d,end:h,margin:{item:{vertical:10}},zoomable:!1,showGrid:!1};k.current.setOptions(_),k.current.setItems(r.items),k.current.setGroups(r.groups)}else{var _={stack:!1,showCurrentTime:!1,min:d,max:h,start:d,end:h,margin:{item:{vertical:10}},zoomable:!1,showGrid:!1};k.current=new Rge(S.current,r.items,r.groups,_),k.current.on("click",(function(e){var t=window.scrollY;setTimeout((function(){return window.scrollTo(0,t)}),0);var n,r,i,a=e.group,s="",l=null;a&&(l=o.find((function(e){return e.id===a})))&&"string"==typeof l.content&&(s=l.id),(null==l?void 0:l.uuid)&&(p===exports.AppName.YBM?(n=l.uuid,r=new URLSearchParams(window.location.search),(i={}).duration=r.get("duration"),i.startTime=r.get("startTime"),i.endTime=r.get("endTime"),null==c||c(n,i)):p===exports.AppName.WEB&&function(e){var t=window.location.pathname,n=new URLSearchParams(window.location.search).toString(),r="".concat(t,"/").concat(e).concat(n?"?".concat(n):"");window.open(r,"_blank")}(l.uuid)),(null==l?void 0:l.name)===Jz&&(null==u||u(l.parent)),s&&function(e){b((function(t){var n=ot({},t),r=!n[e];if(n[e]=r,!r){var i=function(e){Object.keys(n).forEach((function(t){var r;(null===(r=x[e])||void 0===r?void 0:r.includes(t))&&(n[t]=!1,i(t))}))};i(e)}return n}))}(s)}))}}}),[y,i]),e.jsxs(r.Box,{children:[e.jsx("div",{ref:S,style:{backgroundColor:"#FFFFFF"}}),e.jsx("style",{children:"\n .vis-foreground .vis-group {\n border-bottom: none !important;\n }\n .vis-labelset .vis-label {\n background-color: #FFFFFF !important;\n border-right: 0px solid #ccc !important;\n border-bottom: 0px solid #ccc !important;\n border-top: 0px solid #ccc !important;\n }\n .vis-timeline {\n background-color: #FFFFFF !important;\n border: 0px solid #ccc !important;\n visibility: visible !important;\n }\n .vis-panel.vis-top {\n border-left-style: none !important;\n border-right-style: none !important;\n border: 0px solid #ccc !important;\n }\n .vis-panel.vis-bottom {\n border-left-style: none !important;\n border-right-style: none !important;\n border: 0px solid #ccc !important;\n }\n .vis-panel.vis-left {\n border-left-style: none !important;\n border-right-style: none !important;\n border: 0px solid #ccc !important;\n }\n .vis-inner a {\n cursor: pointer;\n text-decoration: none !important;\n outline: none !important;\n color: #0B1117 !important;\n &:focus {\n box-shadow: inset 0px 0px 4px rgb(247, 249, 251, 0.8) !important;\n }\n &:hover {\n box-shadow: inset 0px 0px 4px rgb(247, 249, 251, 0.8) !important;\n }\n }\n .vis-inner span {\n padding: 4px 6px 4px 6px;\n border-radius: 6px;\n border: 1px solid #D7DEE4;\n }\n .vis-labelset .vis-label .vis-inner {\n font-size: 13px;\n font-weight: 400 !important;\n font-family: Inter, sans-serif;\n color: #0B1117;\n }\n .vis-item.vis-range .vis-item-content {\n display: none;\n }\n .vis-item.vis-range {\n top: 10px !important;\n }\n .vis-labelset {\n padding-right: 20px !important;\n }\n .vis-inner {\n display: flex !important;\n justify-content: space-between;\n align-items: center;\n }\n .vis-time-axis .vis-grid.vis-vertical {\n border-left: 1px dashed !important;\n opacity: 0.3;\n }\n .vis-panel.vis-center {\n border-left-style: dashed !important;\n border-right-style: dashed !important;\n top: 0px !important;\n }\n .vis-time-axis .vis-grid.vis-major {\n border-color: #e5e5e5 !important;\n }\n "})]})},lye="data:image/svg+xml,%3csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath opacity='0.5' fill-rule='evenodd' clip-rule='evenodd' d='M1.16699 6.99984C1.16699 3.77818 3.77866 1.1665 7.00033 1.1665C8.54742 1.1665 10.0312 1.78109 11.1251 2.87505C12.2191 3.96901 12.8337 5.45274 12.8337 6.99984C12.8337 10.2215 10.222 12.8332 7.00033 12.8332C3.77866 12.8332 1.16699 10.2215 1.16699 6.99984ZM6.41699 4.6665C6.41699 4.34434 6.67816 4.08317 7.00033 4.08317C7.32249 4.08317 7.58366 4.34434 7.58366 4.6665C7.58366 4.98867 7.32249 5.24984 7.00033 5.24984C6.67816 5.24984 6.41699 4.98867 6.41699 4.6665ZM6.41699 6.4165C6.41699 6.09434 6.67816 5.83317 7.00033 5.83317C7.32249 5.83317 7.58366 6.09434 7.58366 6.4165V9.33317C7.58366 9.65534 7.32249 9.9165 7.00033 9.9165C6.67816 9.9165 6.41699 9.65534 6.41699 9.33317V6.4165Z' fill='%2367666C'/%3e%3c/svg%3e",uye=function(i){var o,a,s,l,u,c,d,h,p,f,m,v,g,y,b,w,x,_=i.metricMeasure,S=i.appName,k=i.timezone,T=i.universeQueryData,C=i.universeData,E=i.filterDuration,O=i.amomalyGraphRequestParams,D=i.formattedAnomalyRca,M=i.anomalyData,A=i.gantChartData,I=i.dateTimeRange,P=i.urlParams,R=i.apiUrl,N=i.getClusterDetails,j=i.onSelectedTimeWindow,L=i.onSelectedIssue,F=gW(),B=t.useState(!1),U=B[0],H=B[1],Y=t.useState(0),z=Y[0],W=Y[1],G=t.useState(M),V=G[0],q=G[1],Q=t.useState(null),$=Q[0],X=Q[1],K=t.useState(O),Z=K[0],J=K[1],ee=N(),te=ee.universeUuid,ne=ee.cluster,re=ee.region,ie=ee.zone,oe=ee.node,ae=ee.numNodes,se=ee.outlierType,le=Tq(_),ue=Tq(I),ce=Tq(E),de=function(){H(!U)},he=function(e,t,n){var r,i,o=qz.WAIT_EVENT_COMPONENT;if("Class"===e?o=qz.WAIT_EVENT_CLASS:"Type"===e?o=qz.WAIT_EVENT_TYPE:"Event"===e?o=qz.WAIT_EVENT:"Query"===e?o=qz.QUERY:"Client IP"===e&&(o=qz.CLIENT_NODE_IP),(null===(r=null==M?void 0:M.lastInstance)||void 0===r?void 0:r.category)&&(null===(i=null==M?void 0:M.lastInstance)||void 0===i?void 0:i.category)!==exports.AnomalyCategory.DB){var a=JSON.parse(JSON.stringify(Z)),s=null==a?void 0:a.find((function(e,n){return n>0&&e.name===(null==t?void 0:t.name)}));s&&(s.groupBy=[o]),a.map((function(e,n){return n>0&&e.name===(null==t?void 0:t.name)?s:e})),J(a),pe.mutate(a)}};t.useEffect((function(){q(M)}),[M]),t.useEffect((function(){if(E!==tW.CUSTOM&&ce!==E&&(null==ue?void 0:ue.startDateTime.getTime())===I.startDateTime.getTime()&&(null==ue?void 0:ue.endDateTime.getTime())===I.endDateTime.getTime());else{le&&le!==_&&X(null);var e=JSON.parse(JSON.stringify(Z)),t=N(),n=gq(!1,!1,!1,0,null,t,e,P),r=null!=n?n:Z;J(r),pe.mutate(r)}}),[_,I,re,ne,ie,oe,se,ae]);var pe=n.useMutation({mutationKey:["fetchAnomalyGraphs"],mutationFn:function(e){return iq.fetchGraphs(te,e,R)},onSuccess:function(e){X(e)},onError:function(e){console.error("Failed to fetch RCA graphs",e)}}),fe=function(t,n,i,o,a){return e.jsx(r.Box,ot({mt:3,mr:8},{children:e.jsx(Fq,{metricData:t,metricKey:t.name,graphTitle:a,containerWidth:null,metricMeasure:_,operations:n,groupByOperations:i,appName:S,timezone:k,graphType:o,queryData:T,onSelectAshLabel:he,onSelectedTimeWindow:j},"".concat(_,"-").concat(t.name))}))},me=null==D?void 0:D.filter((function(e){var t;return(null===(t=null==e?void 0:e.name)||void 0===t?void 0:t.length)>0})),ve=null===(o=null==M?void 0:M.lastInstance)||void 0===o?void 0:o.entityDisplayName,ge=((null===(a=null==M?void 0:M.lastInstance)||void 0===a?void 0:a.category)===exports.AnomalyCategory.NODE||(null===(s=null==M?void 0:M.lastInstance)||void 0===s?void 0:s.category)===exports.AnomalyCategory.APP)&&(null===(d=null===(c=null===(u=null===(l=null==C?void 0:C.universeDetails)||void 0===l?void 0:l.nodeDetailsSet)||void 0===u?void 0:u.find((function(e){return e.nodeName===ve})))||void 0===c?void 0:c.cloudInfo)||void 0===d?void 0:d.region),ye=((null===(h=null==M?void 0:M.lastInstance)||void 0===h?void 0:h.category)===exports.AnomalyCategory.NODE||(null===(p=null==M?void 0:M.lastInstance)||void 0===p?void 0:p.category)===exports.AnomalyCategory.APP)&&(null===(g=null===(v=null===(m=null===(f=null==C?void 0:C.universeDetails)||void 0===f?void 0:f.nodeDetailsSet)||void 0===m?void 0:m.find((function(e){return e.nodeName===ve})))||void 0===v?void 0:v.cloudInfo)||void 0===g?void 0:g.az);return e.jsx(r.Box,ot({mt:4},{children:e.jsx($f,{bodyClassName:F.panelItemBody,body:e.jsxs(e.Fragment,{children:[pe.isLoading&&e.jsx(r.Box,ot({mt:2,className:F.loadingBox},{children:e.jsx(Uq,{className:dt(F.icon,F.inProgressIcon)})})),pe.isError&&e.jsxs(r.Box,ot({mt:4},{children:[(S===exports.AppName.YBA||S===exports.AppName.WEB)&&e.jsx(Xa,{customErrorMessage:"Failed to fetch anomaly graph data, please try again."}),S===exports.AppName.YBM&&e.jsx(Nl,{text:"Failed to fetch anomaly graph data, please try again."})]})),pe.isSuccess&&e.jsxs(r.Box,{children:[Sf($)&&Sf(null===(y=null==M?void 0:M.lastInstance)||void 0===y?void 0:y.mainGraphs)&&(null===(b=null==M?void 0:M.lastInstance)||void 0===b?void 0:b.mainGraphs.map((function(t,n){var i,o,a,s,l,u,c,d,h,p,f,m,v,g,y,b,w,x,S,k,T,C,E,D,A,I,P,R,N,j,L,B,H,Y,z,W,G,V,q,Q=null==$?void 0:$.find((function(e){return e.name===t.name})),X="HOT_TABLET"===(null===(i=null==M?void 0:M.lastInstance)||void 0===i?void 0:i.type)||"LARGE_TABLET"===(null===(o=null==M?void 0:M.lastInstance)||void 0===o?void 0:o.type),K=t.groupByControl,Z=_===exports.MetricMeasure.OVERALL?{uniqueOperations:[],groupByOperations:[]}:mq(_,Q,exports.GraphType.MAIN_RCA,K,O);return e.jsxs(r.Box,ot({className:F.mainGraphBox},{children:[e.jsxs(r.Box,ot({className:F.mainGraphMetadataBox},{children:[e.jsxs(r.Box,ot({className:F.anomalyMetadataOneBox},{children:[e.jsx("span",ot({className:F.headerTitle},{children:uW})),e.jsx("span",ot({className:F.metadataDetails},{children:null===(a=null==M?void 0:M.lastInstance)||void 0===a?void 0:a.title})),e.jsx("span",ot({className:dt(F.metadataSummary,(null===(s=null==M?void 0:M.lastInstance)||void 0===s?void 0:s.category)===exports.AnomalyCategory.SQL&&F.restrictLines)},{children:null===(l=null==M?void 0:M.lastInstance)||void 0===l?void 0:l.summary}))]})),e.jsxs(r.Box,ot({className:F.anomalyMetadataTwoBox},{children:[e.jsxs("span",ot({className:F.headerTitle,onClick:de},{children:[null===(c=iW[null===(u=null==M?void 0:M.lastInstance)||void 0===u?void 0:u.type])||void 0===c?void 0:c.title,kf(null===(h=iW[null===(d=null==M?void 0:M.lastInstance)||void 0===d?void 0:d.type])||void 0===h?void 0:h.data)&&e.jsx("img",{style:{marginLeft:"8px"},src:U?zq:Yq})]})),e.jsxs("span",ot({className:F.metadataDetails},{children:[(null===(f=null===(p=null==M?void 0:M.lastInstance)||void 0===p?void 0:p.entityDisplayName)||void 0===f?void 0:f.length)>30?"".concat(null==ve?void 0:ve.substring(0,30),"..."):null===(m=null==M?void 0:M.lastInstance)||void 0===m?void 0:m.entityDisplayName,(null===(g=null===(v=null==M?void 0:M.lastInstance)||void 0===v?void 0:v.entityDisplayName)||void 0===g?void 0:g.length)>30&&e.jsx(r.Tooltip,ot({title:ve,className:ve&&(null==ve?void 0:ve.length)>100?dt(F.tooltip):void 0,style:{marginLeft:"8px"},arrow:!0,placement:"top",interactive:!0},{children:e.jsx("img",{src:lye,alt:"info"})}))]})),U&&kf(iW[null===(y=null==M?void 0:M.lastInstance)||void 0===y?void 0:y.type].data)&&e.jsxs(e.Fragment,{children:[e.jsxs(r.Box,ot({display:"flex",flexDirection:"row",alignItems:"center"},{children:[e.jsx("img",{src:Hq}),e.jsxs("span",ot({className:F.metadataName,style:{marginLeft:"8px"}},{children:[(null===(b=null==M?void 0:M.lastInstance)||void 0===b?void 0:b.category)===exports.AnomalyCategory.DB&&(null===(k=null===(S=null===(x=null===(w=null==M?void 0:M.lastInstance)||void 0===w?void 0:w.mainGraphs)||void 0===x?void 0:x[0].filters)||void 0===S?void 0:S.dbName)||void 0===k?void 0:k[0]),((null===(T=null==M?void 0:M.lastInstance)||void 0===T?void 0:T.category)===exports.AnomalyCategory.NODE||(null===(C=null==M?void 0:M.lastInstance)||void 0===C?void 0:C.category)===exports.AnomalyCategory.APP)&&ge]})),e.jsx(r.Box,ot({ml:1,className:F.tag},{children:e.jsxs("span",ot({className:F.tagName},{children:[(null===(E=null==M?void 0:M.lastInstance)||void 0===E?void 0:E.category)===exports.AnomalyCategory.DB&&aW,((null===(D=null==M?void 0:M.lastInstance)||void 0===D?void 0:D.category)===exports.AnomalyCategory.NODE||(null===(A=null==M?void 0:M.lastInstance)||void 0===A?void 0:A.category)===exports.AnomalyCategory.APP)&&cW]}))}))]})),e.jsxs(r.Box,ot({display:"flex",flexDirection:"row",mt:1,ml:2,alignItems:"center"},{children:[e.jsx("img",{src:Hq}),e.jsxs("span",ot({className:F.metadataName,style:{marginLeft:"8px"}},{children:[(null===(I=null==M?void 0:M.lastInstance)||void 0===I?void 0:I.category)===exports.AnomalyCategory.DB&&X?null===(j=null===(N=null===(R=null===(P=null==M?void 0:M.lastInstance)||void 0===P?void 0:P.mainGraphs)||void 0===R?void 0:R[0].filters)||void 0===N?void 0:N.tabletId)||void 0===j?void 0:j[0]:null===(Y=null===(H=null===(B=null===(L=null==M?void 0:M.lastInstance)||void 0===L?void 0:L.mainGraphs)||void 0===B?void 0:B[0].filters)||void 0===H?void 0:H.tableName)||void 0===Y?void 0:Y[0],((null===(z=null==M?void 0:M.lastInstance)||void 0===z?void 0:z.category)===exports.AnomalyCategory.NODE||(null===(W=null==M?void 0:M.lastInstance)||void 0===W?void 0:W.category)===exports.AnomalyCategory.APP)&&ye]})),e.jsx(r.Box,ot({ml:1,className:F.tag},{children:e.jsxs("span",ot({className:F.tagName},{children:[(null===(G=null==M?void 0:M.lastInstance)||void 0===G?void 0:G.category)===exports.AnomalyCategory.DB&&(X?lW:sW),((null===(V=null==M?void 0:M.lastInstance)||void 0===V?void 0:V.category)===exports.AnomalyCategory.NODE||(null===(q=null==M?void 0:M.lastInstance)||void 0===q?void 0:q.category)===exports.AnomalyCategory.APP)&&dW]}))}))]}))]})]}))]})),e.jsx(r.Box,ot({mt:1,className:F.graphBox},{children:fe(Q,Z.uniqueOperations,Z.groupByOperations,exports.GraphType.MAIN_RCA)}))]}))}))),e.jsxs(r.Box,ot({mt:2,mb:1},{children:[A.isLoading&&e.jsx(r.Box,ot({mt:2,className:F.loadingBox},{children:e.jsx(Uq,{className:dt(F.icon,F.inProgressIcon)})})),A.isError&&e.jsxs(r.Box,ot({mt:2},{children:[(S===exports.AppName.WEB||S===exports.AppName.YBA)&&e.jsx(Xa,{customErrorMessage:"Failed to fetch anomaly gant chart data"}),S===exports.AppName.YBM&&e.jsx(Nl,{text:"Failed to fetch anomaly gant chart data, please try again."})]})),A.isSuccess&&(kf(V)?e.jsx(r.Box,ot({className:F.rcaGantChartBox},{children:e.jsx(sye,{sourceData:[V],showMore:!1,expandAll:!0,startTime:null===(w=null==I?void 0:I.startDateTime)||void 0===w?void 0:w.toISOString(),endTime:null===(x=null==I?void 0:I.endDateTime)||void 0===x?void 0:x.toISOString(),onSelectedIssue:L,appName:S,showMultiline:!1})})):e.jsxs(r.Box,ot({mt:2},{children:[(S===exports.AppName.WEB||S===exports.AppName.YBA)&&e.jsx("span",{children:"Failed to fetch anomaly data, please try again."}),S===exports.AppName.YBM&&e.jsx(Nl,{text:"Failed to fetch anomaly data, please try again."})]})))]})),Sf($)&&Sf(me)&&e.jsxs(r.Box,ot({className:F.causesBox},{children:[e.jsx(r.Tabs,ot({value:z,onChange:function(e,t){var n=window.scrollY;W(t),setTimeout((function(){return window.scrollTo(0,n)}),0)},"aria-label":"anomaly causes tabs",indicatorColor:"primary",textColor:"primary",variant:"scrollable",scrollButtons:"auto"},{children:null==me?void 0:me.map((function(t,n){return e.jsx(r.Tab,{component:"div",label:t.cause,classes:{root:dt(F.cuaseTabButton),wrapper:F.causeTabLabelWrapper}},n)}))})),null==me?void 0:me.map((function(t,n){var i;return e.jsx(r.Box,ot({role:"tabpanel",hidden:z!==n,id:"tabpanel-".concat(n),"aria-labelledby":"tab-".concat(n)},{children:z===n&&e.jsxs(r.Box,ot({mt:2,display:"flex",flexDirection:"column"},{children:[e.jsx("span",ot({className:F.causeText},{children:t.cause})),e.jsxs(r.Box,{children:[e.jsx("img",{src:Hq,alt:"path"}),e.jsx("span",ot({className:F.descriptionText},{children:t.description}))]}),e.jsx(r.Box,ot({mt:2,className:F.supportingGraphBox},{children:null===(i=null==t?void 0:t.name)||void 0===i?void 0:i.map((function(n,i){var o,a,s,l=null==$?void 0:$.find((function(e,r){return r>0&&(null==e?void 0:e.name)===n&&t.index.includes(r)})),u=1===(null===(o=null==t?void 0:t.name)||void 0===o?void 0:o.length),c=null===(a=t.groupByControl)||void 0===a?void 0:a[0];if(Tf(null!==(s=null==l?void 0:l.errorMessage)&&void 0!==s?s:""))return e.jsx(r.Box,{});var d=mq(_,l,exports.GraphType.MULTI_SUPPORTING,c,O);return e.jsx(r.Box,ot({style:{border:"1px solid #E9EEF2",borderRadius:"8px",marginRight:u?"0px":"16px"}},{children:fe(l,d.uniqueOperations,d.groupByOperations,u?exports.GraphType.SINGLE_SUPPORTING:exports.GraphType.MULTI_SUPPORTING,t.title)}))}))}))]}))}),n)}))]}))]})]})})}))},cye=ae.default.memo((function(i){var o,a=i.universeUuid,s=i.universeData,l=i.anomalyData,u=i.amomalyGraphRequestParams,c=i.appName,d=i.timezone,h=i.formattedAnomalyRca,p=i.apiUrl,f=i.shouldAnalyzeTopK,m=i.universeQueryData,v=i.universeQueryStatsData,g=i.isHistoricalQueryView,y=i.troubleshootUuid,b=i.queryIdParam,w=i.onSelectedIssue,x=i.onSelectedQuery,_=function(e){var t,n,r,i,o,a=exports.MetricMeasure.OVERALL;return(null===(t=null==e?void 0:e.defaultSettings)||void 0===t?void 0:t.splitMode)===Rz.NONE&&(null===(n=null==e?void 0:e.defaultSettings)||void 0===n?void 0:n.splitType)===Rz.NONE&&(a=exports.MetricMeasure.OVERALL),(null===(r=null==e?void 0:e.defaultSettings)||void 0===r?void 0:r.splitMode)!==Pz.TOP&&(null===(i=null==e?void 0:e.defaultSettings)||void 0===i?void 0:i.splitMode)!==Pz.BOTTOM||(a=(null===(o=null==e?void 0:e.defaultSettings)||void 0===o?void 0:o.splitType)===Rz.NODE?exports.MetricMeasure.OUTLIER:exports.MetricMeasure.OUTLIER_TABLES),a}(l),S=function(e){var t,n,r=Pz.TOP;return(null===(t=null==e?void 0:e.defaultSettings)||void 0===t?void 0:t.splitMode)===Pz.TOP?r=Pz.TOP:(null===(n=null==e?void 0:e.defaultSettings)||void 0===n?void 0:n.splitMode)===Pz.BOTTOM&&(r=Pz.BOTTOM),r}(l),k=function(e){var t,n,r=3;return(null===(t=null==e?void 0:e.defaultSettings)||void 0===t?void 0:t.splitCount)>0&&(r=null===(n=null==e?void 0:e.defaultSettings)||void 0===n?void 0:n.splitCount),r}(l),T=new URLSearchParams(window.location.search),C={startTime:T.get("startTime"),endTime:T.get("endTime"),duration:T.get("duration"),dbId:T.get("dbId"),queryId:null!=b?b:void 0,userId:T.get("userId"),universeId:a},E=null==C?void 0:C.endTime,O=E?new Date(E):new Date,D=new Date(O);(null==C?void 0:C.startTime)?D=new Date(null==C?void 0:C.startTime):D.setDate(D.getDate()-1);var M=t.useState(!1),A=M[0],I=M[1],P=t.useState(jz),R=P[0],N=P[1],j=t.useState(Fz),L=j[0],F=j[1],B=t.useState(!0),U=B[0],H=B[1],Y=t.useState(Lz),z=Y[0],W=Y[1],G=t.useState(Lz),V=G[0],q=G[1],Q=t.useState(Lz),$=Q[0],X=Q[1],K=t.useState(Lz),Z=K[0],J=K[1],ee=t.useState(_),te=ee[0],ne=ee[1],re=t.useState(f?Pz.TOP:S),ie=re[0],oe=re[1],ae=t.useState(null!==(o=null==C?void 0:C.duration)&&void 0!==o?o:nW[0].value),se=ae[0],le=ae[1],ue=t.useState(k),ce=ue[0],de=ue[1],he=t.useState((function(){return{startDateTime:D,endDateTime:O}})),pe=he[0],fe=he[1],me=t.useState(null),ve=me[0],ge=me[1],ye=n.useQuery([exports.QUERY_KEY.fetchAnomalyGroupsById,a,null==l?void 0:l.groupId,pe.startDateTime,pe.endDateTime],(function(){return l&&(null==l?void 0:l.groupId)?iq.fetchAnomalyGroupById(a,l.groupId,pe.startDateTime.toISOString(),pe.endDateTime.toISOString(),p):Promise.reject(new Error("Anomaly data or group ID is missing"))}),{onSuccess:function(e){ge(e)},onError:function(e){console.error("Failed to fetch Anomalies",e)},enabled:!g&&Tf(y)}),be=function(){var e,t,n=null===(e=pe.startDateTime)||void 0===e?void 0:e.toISOString(),r=null===(t=pe.endDateTime)||void 0===t?void 0:t.toISOString();return{universeUuid:a,cluster:z,region:V,zone:$,node:Z,metricMeasure:te,numNodes:ce,outlierType:ie,formattedStartDate:n,formattedEndDate:r}},we=function(){if(se!==tW.CUSTOM){var e=function(){var e=O,t=new Date;return se===tW.SEVEN_DAYS?t.setDate(t.getDate()-7):se===tW.TWO_DAYS?t.setDate(t.getDate()-2):se===tW.TWENTYFOUR_HOURS?t.setDate(t.getDate()-1):se===tW.SIX_HOURS?t.setHours(t.getHours()-6):se===tW.ONE_HOUR&&t.setHours(t.getHours()-1),{formattedStartDate:t,formattedEndDate:e}}(),t=e.formattedStartDate,n=e.formattedEndDate;fe({startDateTime:t,endDateTime:n})}};t.useEffect((function(){we()}),[se]);var xe=function(e){fe((function(t){return ot(ot({},t),{startDateTime:new Date(e.target.value)})}))},_e=function(e){fe((function(t){return ot(ot({},t),{endDateTime:new Date(e.target.value)})}))},Se=function(e,t){fe({startDateTime:new Date(e),endDateTime:new Date(t)})};t.useEffect((function(){g&&I(!0),(null==C?void 0:C.duration)&&Tf(C.duration)&&we()}),[]);var ke=function(e){ne(e)},Te=function(e){le(e)};return e.jsxs(r.Box,{children:[kf(l)?e.jsx(kq,{appName:c,filterDuration:se,timezone:d,endDateTime:pe.endDateTime,startDateTime:pe.startDateTime,anomalyData:l,onSelectedIssue:w,onSelectedFilterDuration:Te,onStartDateChange:xe,onEndDateChange:_e,onSplitTypeSelected:ke}):e.jsx(Sq,{appName:c,apiUrl:p,universeData:s,clusterRegionItem:R,zoneNodeItem:L,isPrimaryCluster:U,viewQueryData:A,isHistoricalQueryView:g,cluster:z,region:V,metricMeasure:te,outlierType:ie,filterDuration:se,numNodes:ce,startDateTime:pe.startDateTime,endDateTime:pe.endDateTime,shouldAnalyzeTopK:f,shouldShowAdvancedData:(null==l?void 0:l.category)===exports.AnomalyCategory.SQL||(null==l?void 0:l.category)===exports.AnomalyCategory.DB,onZoneNodeSelected:function(e,t,n){n===Fz&&(F(Fz),X(Lz),J(Lz)),(e||t)&&(F(n),e&&(X(n),J("")),t&&(X(""),J(n)))},onClusterRegionSelected:function(e,t,n,r){H(r),n===jz&&(N(jz),W(Lz),q(Lz)),(e||t)&&(N(n),e&&(W(n),q("")),t&&(q(n),W("")))},onOutlierTypeSelected:function(e){oe(e)},onSplitTypeSelected:ke,onNumNodesChanged:function(e){de(e>10?10:e)},onSelectedFilterDuration:Te,onStartDateChange:xe,onEndDateChange:_e,onViewQueryData:function(){I(!A)},onRefresh:function(){fe((function(e){return ot(ot({},e),{endDateTime:new Date})}))},onSelectedQuery:x,timezone:d}),!f&&!g&&e.jsx(uye,{metricMeasure:te,appName:c,dateTimeRange:pe,timezone:d,universeQueryData:m,amomalyGraphRequestParams:u,formattedAnomalyRca:h,filterDuration:se,apiUrl:p,universeData:s,anomalyData:ve,gantChartData:ye,onSelectedTimeWindow:Se,onSelectedIssue:w,urlParams:C,getClusterDetails:be}),(g||A)&&e.jsx(e.Fragment,{children:e.jsx(Wq,{urlParams:C,getClusterDetails:be,queryId:null==C?void 0:C.queryId,isHistoricalQueryView:g,metricMeasure:te,apiUrl:p,appName:c,timezone:d,dateTimeRange:pe,universeQueryStatsData:v,onSelectedTimeWindow:Se})}),f&&e.jsx(Gq,{apiUrl:p,appName:c,timezone:d,metricMeasure:te,onSelectedTimeWindow:Se,dateTimeRange:pe,urlParams:C,getClusterDetails:be})]})})),dye=function(i){var o=i.universeUuid,a=i.troubleshootUuid,s=i.universeData,l=i.appName,u=i.timezone,c=i.apiUrl,d=i.shouldAnalyzeTopK,h=void 0!==d&&d,p=i.onSelectedIssue,f=i.onSelectedQuery,m=gW(),v=t.useState(null),g=v[0],y=v[1],b=t.useState(null),w=b[0],x=b[1],_=t.useState(null),S=_[0],k=_[1],T=t.useState(null),C=T[0],E=T[1],O=t.useState(null),D=O[0],M=O[1],A=new URLSearchParams(window.location.search),I=window.location.pathname,P=null;if(I.includes("/queries/")){var R=I.split("/"),N=R.indexOf("queries");P=R[N+1]||null}l===exports.AppName.YBM&&(P=A.get("queryId"));var j=A.get("dbId"),L=A.get("userId"),F=Tf(P);t.useEffect((function(){localStorage.setItem("appName",l)}),[]);var B=n.useQuery([exports.QUERY_KEY.fetchAnomalies,o],(function(){return iq.fetchAnomaliesById(o,a,c)}),{onSuccess:function(e){y(e),x(function(e){var t,n=null==e?void 0:e.mainGraphs.map((function(t){var n={};return n.name=t.name,n.filters=t.filters,n.start=e.graphStartTime,n.end=e.graphEndTime,n.settings=e.defaultSettings,n.aggregatedLineSettings=t.aggregatedLineSettings,n.groupBy=t.groupBy,n})),r=null===(t=null==e?void 0:e.rcaGuidelines)||void 0===t?void 0:t.map((function(t){var n;return null===(n=t.troubleshootingRecommendations)||void 0===n?void 0:n.map((function(t){var n;return null===(n=t.supportingGraphs)||void 0===n?void 0:n.map((function(t){var n={};return n.name=t.name,n.filters=t.filters,n.start=e.graphStartTime,n.end=e.graphEndTime,n.settings=e.defaultSettings,n.aggregatedLineSettings=t.aggregatedLineSettings,n.groupBy=t.groupBy,n}))}))})),i=null==r?void 0:r.flat(2),o=null==i?void 0:i.filter((function(e){return kf(e)}));return ut(ut([],n,!0),o,!0)}(e)),k(function(e){var t,n;if(aq=0,!e)return[];var r=null===(t=null==e?void 0:e.mainGraphs)||void 0===t?void 0:t.length,i=null===(n=null==e?void 0:e.rcaGuidelines)||void 0===n?void 0:n.map((function(e,t){var n,i={cause:"",name:[],groupByControl:[],description:"",index:[],rcaRecommendation:"",title:void 0};return i.name=[],i.groupByControl=[],i.cause=e.possibleCause,i.description=e.possibleCauseDescription,null===(n=e.troubleshootingRecommendations)||void 0===n?void 0:n.map((function(e){var t;return e.supportingGraphs?null===(t=e.supportingGraphs)||void 0===t?void 0:t.map((function(t){return i.name.push(t.name),i.rcaRecommendation=e.recommendation,1===r?i.index.push(pq()):r>1&&i.index.push(pq()+r-1),i.title=t.displayName,i.groupByControl.push(t.groupByControl),i})):i}))})),o=null==i?void 0:i.flat(2),a=new Set(o);return Array.from(a)}(e))},onError:function(e){console.error("Failed to fetch Anomalies",e)},enabled:!F&&Tf(a)}),U=B.isLoading,H=B.isError,Y=B.isIdle,z=n.useQuery([exports.QUERY_KEY.fetchQueries,o],(function(){return iq.fetchQueries(o,c,{dbId:j,userId:L,queryId:P})}),{onSuccess:function(e){E(e)},onError:function(e){E([]),console.error("Failed to fetch queries",e)},enabled:!h}),W=z.isLoading,G=z.isError,V=n.useQuery([exports.QUERY_KEY.fetchQueryStats,o],(function(){return iq.fetchQueryStats(o,{dbId:j,queryId:P},c)}),{onSuccess:function(e){M([e])},onError:function(e){M([]),console.error("Failed to fetch query stats",e)},enabled:F}),q=V.isLoading,Q=V.isError;return U||q||W?e.jsx(r.Box,ot({mt:2,className:m.loadingBox},{children:e.jsx(Uq,{className:dt(m.icon,m.inProgressIcon)})})):H||Q||G||Y&&void 0===g?e.jsxs(r.Box,ot({mt:3},{children:[(l===exports.AppName.YBA||l===exports.AppName.WEB)&&e.jsx(Xa,{customErrorMessage:"Failed to fetch queries list"}),l===exports.AppName.YBM&&e.jsx(Nl,{text:"Failed to fetch queries list, please try again."})]})):e.jsx(r.Box,{children:h?e.jsx(e.Fragment,{children:e.jsx(cye,{apiUrl:c,anomalyData:g,universeData:s,universeUuid:o,appName:l,timezone:u,troubleshootUuid:null,isHistoricalQueryView:F,amomalyGraphRequestParams:w,formattedAnomalyRca:S,universeQueryData:null!=C?C:[],universeQueryStatsData:D,shouldAnalyzeTopK:h,queryIdParam:P,onSelectedIssue:p,onSelectedQuery:f})}):e.jsx(e.Fragment,{children:C&&e.jsx(cye,{apiUrl:c,troubleshootUuid:a,anomalyData:g,universeData:s,universeUuid:o,appName:l,timezone:u,isHistoricalQueryView:F,amomalyGraphRequestParams:w,formattedAnomalyRca:S,universeQueryData:C,universeQueryStatsData:D,shouldAnalyzeTopK:h,queryIdParam:P,onSelectedIssue:p,onSelectedQuery:f})})})};function hye(){return hye=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hye.apply(this,arguments)}function pye(e){return"number"==typeof e&&!isNaN(e)}function fye(e){return"boolean"==typeof e}function mye(e){return"string"==typeof e}function vye(e){return"function"==typeof e}function gye(e){return mye(e)||vye(e)?e:null}function yye(e){return 0===e||e}var bye=!("undefined"==typeof window||!window.document||!window.document.createElement);function wye(e){return t.isValidElement(e)||mye(e)||vye(e)||pye(e)}var xye={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},_ye={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default",DARK:"dark"};function Sye(e){var n=e.enter,r=e.exit,i=e.appendPosition,o=void 0!==i&&i,a=e.collapse,s=void 0===a||a,l=e.collapseDuration,u=void 0===l?300:l;return function(e){var i=e.children,a=e.position,l=e.preventExitTransition,c=e.done,d=e.nodeRef,h=e.isIn,p=o?n+"--"+a:n,f=o?r+"--"+a:r,m=t.useRef(),v=t.useRef(0);function g(){var e=d.current;e.removeEventListener("animationend",g),0===v.current&&(e.className=m.current)}function y(){var e=d.current;e.removeEventListener("animationend",y),s?function(e,t,n){void 0===n&&(n=300);var r=e.scrollHeight,i=e.style;requestAnimationFrame((function(){i.minHeight="initial",i.height=r+"px",i.transition="all "+n+"ms",requestAnimationFrame((function(){i.height="0",i.padding="0",i.margin="0",setTimeout(t,n)}))}))}(e,c,u):c()}return t.useLayoutEffect((function(){!function(){var e=d.current;m.current=e.className,e.className+=" "+p,e.addEventListener("animationend",g)}()}),[]),t.useEffect((function(){h||(l?y():function(){v.current=1;var e=d.current;e.className+=" "+f,e.addEventListener("animationend",y)}())}),[h]),ae.default.createElement(ae.default.Fragment,null,i)}}var kye={list:new Map,emitQueue:new Map,on:function(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off:function(e,t){if(t){var n=this.list.get(e).filter((function(e){return e!==t}));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit:function(e){var t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];this.list.has(e)&&this.list.get(e).forEach((function(n){var i=setTimeout((function(){n.apply(void 0,r)}),0);t.emitQueue.has(e)||t.emitQueue.set(e,[]),t.emitQueue.get(e).push(i)}))}};function Tye(e,n){void 0===n&&(n=!1);var r=t.useRef(e);return t.useEffect((function(){n&&(r.current=e)})),r.current}function Cye(e,t){switch(t.type){case 0:return[].concat(e,[t.toastId]).filter((function(e){return e!==t.staleId}));case 1:return yye(t.toastId)?e.filter((function(e){return e!==t.toastId})):[]}}function Eye(e){var n=t.useReducer((function(e){return e+1}),0)[1],r=t.useReducer(Cye,[]),i=r[0],o=r[1],a=t.useRef(null),s=Tye(0),l=Tye([]),u=Tye({}),c=Tye({toastKey:1,displayedToast:0,props:e,containerId:null,isToastActive:d,getToast:function(e){return u[e]||null}});function d(e){return-1!==i.indexOf(e)}function h(e){var t=e.containerId,n=c.props,r=n.limit,i=n.enableMultiContainer;r&&(!t||c.containerId===t&&i)&&(s-=l.length,l=[])}function p(e){o({type:1,toastId:e})}function f(){var e=l.shift();v(e.toastContent,e.toastProps,e.staleId)}function m(e,r){var i=r.delay,o=r.staleId,d=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,["delay","staleId"]);if(wye(e)&&!function(e){var t=e.containerId,n=e.toastId,r=e.updateId;return!!(!a.current||c.props.enableMultiContainer&&t!==c.props.containerId||u[n]&&null==r)}(d)){var h=d.toastId,m=d.updateId,g=c.props,y=function(){return p(h)},b=null==d.updateId;b&&s++;var w,x,_={toastId:h,updateId:m,isIn:!1,key:d.key||c.toastKey++,type:d.type,closeToast:y,closeButton:d.closeButton,rtl:g.rtl,position:d.position||g.position,transition:d.transition||g.transition,className:gye(d.className||g.toastClassName),bodyClassName:gye(d.bodyClassName||g.bodyClassName),style:d.style||g.toastStyle,bodyStyle:d.bodyStyle||g.bodyStyle,onClick:d.onClick||g.onClick,pauseOnHover:fye(d.pauseOnHover)?d.pauseOnHover:g.pauseOnHover,pauseOnFocusLoss:fye(d.pauseOnFocusLoss)?d.pauseOnFocusLoss:g.pauseOnFocusLoss,draggable:fye(d.draggable)?d.draggable:g.draggable,draggablePercent:pye(d.draggablePercent)?d.draggablePercent:g.draggablePercent,draggableDirection:d.draggableDirection||g.draggableDirection,closeOnClick:fye(d.closeOnClick)?d.closeOnClick:g.closeOnClick,progressClassName:gye(d.progressClassName||g.progressClassName),progressStyle:d.progressStyle||g.progressStyle,autoClose:(w=d.autoClose,x=g.autoClose,!1===w||pye(w)&&w>0?w:x),hideProgressBar:fye(d.hideProgressBar)?d.hideProgressBar:g.hideProgressBar,progress:d.progress,role:mye(d.role)?d.role:g.role,deleteToast:function(){!function(e){delete u[e];var t=l.length;s=yye(e)?s-1:s-c.displayedToast,s<0&&(s=0);if(t>0){var r=yye(e)?1:c.props.limit;if(1===t||1===r)c.displayedToast++,f();else{var i=r>t?t:r;c.displayedToast=i;for(var o=0;o<i;o++)f()}}else n()}(h)}};vye(d.onOpen)&&(_.onOpen=d.onOpen),vye(d.onClose)&&(_.onClose=d.onClose),"y"===_.draggableDirection&&80===_.draggablePercent&&(_.draggablePercent*=1.5);var S=g.closeButton;!1===d.closeButton||wye(d.closeButton)?S=d.closeButton:!0===d.closeButton&&(S=!wye(g.closeButton)||g.closeButton),_.closeButton=S;var k=e;t.isValidElement(e)&&!mye(e.type)?k=t.cloneElement(e,{closeToast:y,toastProps:_}):vye(e)&&(k=e({closeToast:y,toastProps:_})),g.limit&&g.limit>0&&s>g.limit&&b?l.push({toastContent:k,toastProps:_,staleId:o}):pye(i)&&i>0?setTimeout((function(){v(k,_,o)}),i):v(k,_,o)}}function v(e,t,n){var r=t.toastId;n&&delete u[n],u[r]={content:e,props:t},o({type:0,toastId:r,staleId:n})}return t.useEffect((function(){return c.containerId=e.containerId,kye.cancelEmit(3).on(0,m).on(1,(function(e){return a.current&&p(e)})).on(5,h).emit(2,c),function(){return kye.emit(3,c)}}),[]),t.useEffect((function(){c.isToastActive=d,c.displayedToast=i.length,kye.emit(4,i.length,e.containerId)}),[i]),t.useEffect((function(){c.props=e})),{getToastToRender:function(t){for(var n={},r=e.newestOnTop?Object.keys(u).reverse():Object.keys(u),i=0;i<r.length;i++){var o=u[r[i]],a=o.props.position;n[a]||(n[a]=[]),n[a].push(o)}return Object.keys(n).map((function(e){return t(e,n[e])}))},collection:u,containerRef:a,isToastActive:d}}function Oye(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Dye(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Mye(e){var n=t.useState(!0),r=n[0],i=n[1],o=t.useState(!1),a=o[0],s=o[1],l=t.useRef(null),u=Tye({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null}),c=Tye(e,!0),d=e.autoClose,h=e.pauseOnHover,p=e.closeToast,f=e.onClick,m=e.closeOnClick;function v(t){if(e.draggable){var n=l.current;u.canCloseOnClick=!0,u.canDrag=!0,u.boundingRect=n.getBoundingClientRect(),n.style.transition="",u.x=Oye(t.nativeEvent),u.y=Dye(t.nativeEvent),"x"===e.draggableDirection?(u.start=u.x,u.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(u.start=u.y,u.removalDistance=n.offsetHeight*(e.draggablePercent/100))}}function g(){if(u.boundingRect){var t=u.boundingRect,n=t.top,r=t.bottom,i=t.left,o=t.right;e.pauseOnHover&&u.x>=i&&u.x<=o&&u.y>=n&&u.y<=r?b():y()}}function y(){i(!0)}function b(){i(!1)}function w(t){if(u.canDrag){t.preventDefault();var n=l.current;r&&b(),u.x=Oye(t),u.y=Dye(t),"x"===e.draggableDirection?u.delta=u.x-u.start:u.delta=u.y-u.start,u.start!==u.x&&(u.canCloseOnClick=!1),n.style.transform="translate"+e.draggableDirection+"("+u.delta+"px)",n.style.opacity=""+(1-Math.abs(u.delta/u.removalDistance))}}function x(){var t=l.current;if(u.canDrag){if(u.canDrag=!1,Math.abs(u.delta)>u.removalDistance)return s(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate"+e.draggableDirection+"(0)",t.style.opacity="1"}}t.useEffect((function(){return vye(e.onOpen)&&e.onOpen(t.isValidElement(e.children)&&e.children.props),function(){vye(c.onClose)&&c.onClose(t.isValidElement(c.children)&&c.children.props)}}),[]),t.useEffect((function(){return e.draggable&&(document.addEventListener("mousemove",w),document.addEventListener("mouseup",x),document.addEventListener("touchmove",w),document.addEventListener("touchend",x)),function(){e.draggable&&(document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",x),document.removeEventListener("touchmove",w),document.removeEventListener("touchend",x))}}),[e.draggable]),t.useEffect((function(){return e.pauseOnFocusLoss&&function(){document.hasFocus()||b();window.addEventListener("focus",y),window.addEventListener("blur",b)}(),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",b))}}),[e.pauseOnFocusLoss]);var _={onMouseDown:v,onTouchStart:v,onMouseUp:g,onTouchEnd:g};return d&&h&&(_.onMouseEnter=b,_.onMouseLeave=y),m&&(_.onClick=function(e){f&&f(e),u.canCloseOnClick&&p()}),{playToast:y,pauseToast:b,isRunning:r,preventExitTransition:a,toastRef:l,eventHandlers:_}}function Aye(e){var n=e.closeToast,r=e.type,i=e.ariaLabel,o=void 0===i?"close":i;return t.createElement("button",{className:"Toastify__close-button Toastify__close-button--"+r,type:"button",onClick:function(e){e.stopPropagation(),n(e)},"aria-label":o},t.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},t.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Iye(e){var n,r,i=e.delay,o=e.isRunning,a=e.closeToast,s=e.type,l=e.hide,u=e.className,c=e.style,d=e.controlledProgress,h=e.progress,p=e.rtl,f=e.isIn,m=hye({},c,{animationDuration:i+"ms",animationPlayState:o?"running":"paused",opacity:l?0:1});d&&(m.transform="scaleX("+h+")");var v=dt("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+s,((n={})["Toastify__progress-bar--rtl"]=p,n)),g=vye(u)?u({rtl:p,type:s,defaultClassName:v}):dt(v,u),y=((r={})[d&&h>=1?"onTransitionEnd":"onAnimationEnd"]=d&&h<1?null:function(){f&&a()},r);return t.createElement("div",Object.assign({role:"progressbar",className:g,style:m},y))}Iye.defaultProps={type:_ye.DEFAULT,hide:!1};var Pye=function(e){var n,r=Mye(e),i=r.isRunning,o=r.preventExitTransition,a=r.toastRef,s=r.eventHandlers,l=e.closeButton,u=e.children,c=e.autoClose,d=e.onClick,h=e.type,p=e.hideProgressBar,f=e.closeToast,m=e.transition,v=e.position,g=e.className,y=e.style,b=e.bodyClassName,w=e.bodyStyle,x=e.progressClassName,_=e.progressStyle,S=e.updateId,k=e.role,T=e.progress,C=e.rtl,E=e.toastId,O=e.deleteToast,D=e.isIn,M=dt("Toastify__toast","Toastify__toast--"+h,((n={})["Toastify__toast--rtl"]=C,n)),A=vye(g)?g({rtl:C,position:v,type:h,defaultClassName:M}):dt(M,g),I=!!T;return t.createElement(m,{isIn:D,done:O,position:v,preventExitTransition:o,nodeRef:a},t.createElement("div",Object.assign({id:E,onClick:d,className:A},s,{style:y,ref:a}),t.createElement("div",Object.assign({},D&&{role:k},{className:vye(b)?b({type:h}):dt("Toastify__toast-body",b),style:w}),u),function(e){if(e){var n={closeToast:f,type:h};return vye(e)?e(n):t.isValidElement(e)?t.cloneElement(e,n):void 0}}(l),(c||I)&&t.createElement(Iye,Object.assign({},S&&!I?{key:"pb-"+S}:{},{rtl:C,delay:c,isRunning:i,isIn:D,closeToast:f,hide:p,type:h,style:_,className:x,controlledProgress:I,progress:T}))))},Rye=function(e){var n=Eye(e),r=n.getToastToRender,i=n.containerRef,o=n.isToastActive,a=e.className,s=e.style,l=e.rtl,u=e.containerId;function c(e){var t,n=dt("Toastify__toast-container","Toastify__toast-container--"+e,((t={})["Toastify__toast-container--rtl"]=l,t));return vye(a)?a({position:e,rtl:l,defaultClassName:n}):dt(n,gye(a))}return t.createElement("div",{ref:i,className:"Toastify",id:u},r((function(e,n){var r=0===n.length?hye({},s,{pointerEvents:"none"}):hye({},s);return t.createElement("div",{className:c(e),style:r,key:"container-"+e},n.map((function(e){var n=e.content,r=e.props;return t.createElement(Pye,Object.assign({},r,{isIn:o(r.toastId),key:"toast-"+r.key,closeButton:!0===r.closeButton?Aye:r.closeButton}),n)})))})))};Rye.defaultProps={position:xye.TOP_RIGHT,transition:Sye({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:Aye,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert"};var Nye,jye,Lye,Fye=new Map,Bye=[],Uye=!1;function Hye(){return Math.random().toString(36).substr(2,9)}function Yye(e){return e&&(mye(e.toastId)||pye(e.toastId))?e.toastId:Hye()}function zye(e,n){return Fye.size>0?kye.emit(0,e,n):(Bye.push({content:e,options:n}),Uye&&bye&&(Uye=!1,jye=document.createElement("div"),document.body.appendChild(jye),q.render(t.createElement(Rye,Object.assign({},Lye)),jye))),n.toastId}function Wye(e,t){return hye({},t,{type:t&&t.type||e,toastId:Yye(t)})}var Gye=function(e){return function(t,n){return zye(t,Wye(e,n))}},Vye=function(e,t){return zye(e,Wye(_ye.DEFAULT,t))};Vye.success=Gye(_ye.SUCCESS),Vye.info=Gye(_ye.INFO),Vye.error=Gye(_ye.ERROR),Vye.warning=Gye(_ye.WARNING),Vye.dark=Gye(_ye.DARK),Vye.warn=Vye.warning,Vye.dismiss=function(e){return kye.emit(1,e)},Vye.clearWaitingQueue=function(e){return void 0===e&&(e={}),kye.emit(5,e)},Vye.isActive=function(e){var t=!1;return Fye.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},Vye.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=function(e,t){var n=t.containerId,r=Fye.get(n||Nye);return r?r.getToast(e):null}(e,t);if(n){var r=n.props,i=n.content,o=hye({},r,t,{toastId:t.toastId||e,updateId:Hye()});o.toastId!==e&&(o.staleId=e);var a=o.render||i;delete o.render,zye(a,o)}}),0)},Vye.done=function(e){Vye.update(e,{progress:1})},Vye.onChange=function(e){return vye(e)&&kye.on(4,e),function(){vye(e)&&kye.off(4,e)}},Vye.configure=function(e){void 0===e&&(e={}),Uye=!0,Lye=e},Vye.POSITION=xye,Vye.TYPE=_ye,kye.on(2,(function(e){Nye=e.containerId||e,Fye.set(Nye,e),Bye.forEach((function(e){kye.emit(0,e.content,e.options)})),Bye=[]})).on(3,(function(e){Fye.delete(e.containerId||e),0===Fye.size&&kye.off(0).off(1).off(5),bye&&jye&&document.body.removeChild(jye)}));var qye,Qye=r.makeStyles((function(e){return{itemsContainer:{padding:e.spacing(1,0),borderTop:"1px solid ".concat(e.palette.grey[200])},item:{paddingLeft:e.spacing(2)}}})),$ye=function(n){var i,o=n.appName,a=n.columns,s=n.hiddenColumns,l=n.onColumnVisibilityChange,u=n.close,c=Qye(),d=JSON.parse(null!==(i=sessionStorage.getItem("visibleQueryFields"))&&void 0!==i?i:"[]"),h=a.reduce((function(e,t){var n;return e[t.name]=d.length>0?d.includes(t.name):null===(n=null==t?void 0:t.options)||void 0===n?void 0:n.display,e}),{}),p=Tl({defaultValues:h}),f=p.control,m=p.handleSubmit,v=p.reset;t.useEffect((function(){v(h)}),[a,v]);var g=function(){u()};return e.jsx(zf,ot({open:!0,isSidePanel:!0,title:"Add and Remove Columns",onClose:g,onSubmit:m((function(e){var t=[];Object.keys(e).forEach((function(n){var r=e[n],i=n;l(i,r),r&&t.push(i)})),sessionStorage.setItem("visibleQueryFields",JSON.stringify(t)),g()})),enableBackdropDismiss:!0,titleSeparator:!0,dialogContentProps:{style:{padding:0}},submitLabel:"Apply",submitTestId:"btnApplyMetricsSelection",cancelLabel:"Cancel",cancelTestId:"btnCloseMetricsSelection"},{children:e.jsx(r.Box,ot({paddingLeft:2,paddingRight:2,paddingBottom:2},{children:e.jsx(r.Box,ot({className:c.itemsContainer},{children:a.map((function(t){return s.includes(t.name)?null:e.jsx(r.Box,ot({className:c.item},{children:e.jsx(NW,{name:t.name,label:t.label,control:f,inputProps:{"data-testid":t.name},showCheckedIcon:o===exports.AppName.WEB})}),t.name)}))}))}))}))},Xye=require("plotly.js/lib/index-basic.js"),Kye=function(n){var r=n.data,i=n.maxEPS,o=t.useRef(null),a=t.useMemo((function(){var e=r.reduce((function(e,t){return e+t.eps}),0),t=200*Math.pow(e/i,.5);return Math.max(t,10)+100}),[r,i]);return t.useEffect((function(){if(o.current){var e=r.map((function(e){return e.waitEventType})).map((function(e,t){var n;return{x:[r[t].eps],y:[""],orientation:"h",marker:{color:null!==(n=bq[e])&&void 0!==n?n:yq[t]},type:"bar",name:e}})),t={dragmode:!1,barmode:"stack",yaxis:{visible:!1,fixedrange:!0},xaxis:{title:"",showgrid:!1,range:[0,i],visible:!1,fixedrange:!0},margin:{l:50,r:50,t:20,b:40},width:a,height:80,showlegend:!1,hoverinfo:"x+name",autosize:!1},n=document.createElement("style");n.innerHTML="\n .query-events-chart-container .js-plotly-plot .plotly .cursor-crosshair {\n cursor: pointer !important;\n }\n\n /* Change the resize cursor to pointer for horizontal drag mode */\n .query-events-chart-container .js-plotly-plot .plotly .cursor-ew-resize {\n cursor: pointer !important;\n }\n\n .query-events-chart-container svg {\n height: 50px;\n overflow: visible !important;\n }\n\n .query-events-chart-container div {\n overflow: visible !important;\n position: relative;\n z-index: 1;\n height: 20px !important\n }\n ",document.head.appendChild(n),Xye.newPlot(o.current,e,t,{displayModeBar:!1})}}),[r]),e.jsx("div",{className:"query-events-chart-container",ref:o,style:{height:"50px",display:"flex",width:"".concat(a,"px"),minWidth:"".concat(a,"px"),maxWidth:"".concat(a,"px")}})};function Zye(){return Zye=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},Zye.apply(null,arguments)}const Jye=e=>se.createElement("svg",Zye({xmlns:"http://www.w3.org/2000/svg",width:24,height:24},e),qye||(qye=se.createElement("g",{fill:"none",fillRule:"evenodd"},se.createElement("path",{d:"M0 0h24v24H0z"}),se.createElement("path",{fill:"currentColor",d:"M12 2a10 10 0 0 1 10 10c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm0 1a9 9 0 1 0 0 18 9 9 0 0 0 0-18Zm0 4a.5.5 0 0 1 .492.41l.008.09v4h4a.5.5 0 0 1 .09.992l-.09.008h-4v4a.5.5 0 0 1-.992.09l-.008-.09v-4h-4a.5.5 0 0 1-.09-.992l.09-.008h4v-4A.5.5 0 0 1 12 7Z"}))));var ebe="databaseId",tbe="eps",nbe="events",rbe="firstActive",ibe="lastActive",obe="latencyAvg",abe="latencyP90",sbe="latencyP99",lbe="namespaceName",ube="query",cbe="queryid",dbe="queryType",hbe="rowsAvg",pbe="rps",fbe="totalTime",mbe="universeId",vbe=[cbe,ebe,mbe],gbe=function(i){var o=i.universeUuid,a=i.apiUrl,s=i.startTime,l=i.endTime,u=i.appName,c=i.onSelectedQuery,d=Qa(),h=gW(),p=t.useState(null),f=p[0],m=p[1],v=t.useState(""),g=v[0],y=v[1],b=t.useState([]),w=b[0],x=b[1],_=t.useState(!1),S=_[0],k=_[1],T=t.useState(Qz[0]),C=T[0],E=T[1],O=t.useState(0),D=O[0],M=O[1],A=t.useState(0),I=A[0],P=A[1],R=t.useState(Lz),N=R[0],j=R[1],L=t.useState([]),F=L[0],B=L[1],U=t.useState([]),H=U[0],Y=U[1],z=t.useState([]),W=z[0],G=z[1],V=t.useState("eps"),q=V[0],Q=V[1],$=t.useState(null),X=$[0],K=$[1],Z=t.useState(1),J=Z[0],ee=Z[1],te=t.useState(exports.SortDirection.DESC),ne=te[0],re=te[1],ie=n.useInfiniteQuery([exports.QUERY_KEY.fetchQueriesStatsPage,D,C],(function(){return iq.fetchQueriesStatsPage(o,{currentTablePage:D,apiUrl:a,pageSize:C,startTime:s,endTime:l,searchInput:g,database:N,sortBy:q,sortDirection:ne,queryType:X})}),{getNextPageParam:function(e){return e.data.hasNext},onSuccess:function(e){var t,n,r,i,o,a,s,l,u;"eps"!==q||(null===(n=null===(t=null==e?void 0:e.pages[0])||void 0===t?void 0:t.data)||void 0===n?void 0:n.hasPrev)||ne!==exports.SortDirection.DESC||ee(null===(o=null===(i=null===(r=null==e?void 0:e.pages[0])||void 0===r?void 0:r.data)||void 0===i?void 0:i.entities[0])||void 0===o?void 0:o.eps),G(null===(s=null===(a=null==e?void 0:e.pages[0])||void 0===a?void 0:a.data)||void 0===s?void 0:s.entities),P(null===(u=null===(l=null==e?void 0:e.pages[0])||void 0===l?void 0:l.data)||void 0===u?void 0:u.totalCount)}}),oe=ie.isFetching,ae=ie.isError,se=ie.fetchNextPage,le=ie.hasNextPage,ue=ie.refetch,ce=n.useQuery([exports.QUERY_KEY.fetchQueriesDatabases,o],(function(){return iq.fetchQueriesDatabases(o,a)}),{onSuccess:function(e){Y(e)}}),de=ce.isLoading,he=ce.isError;t.useEffect((function(){}),[f]),t.useEffect((function(){ue()}),[D,g,N,q,ne,s,l,X]),t.useEffect((function(){var t,n,i,o,a,s,l,c=sessionStorage.getItem("visibleQueryFields"),d=c?JSON.parse(c):null;x([{name:ebe,label:"",options:{sort:!1,display:!1,filter:!1}},{name:tbe,label:"Avg Active Sessions",options:{sort:!0,display:!0,setCellHeaderProps:function(){return{style:{width:"160px"},className:dt(h.tableHeaderCell,u===exports.AppName.WEB&&h.tableBorder)}},customBodyRender:function(e){return Number(e)?Number(e).toLocaleString():"0.0"}}},{name:nbe,label:"Events",options:{sort:!1,display:!0,setCellHeaderProps:function(){return{style:{minWidth:"110px",maxWidth:"300px",overflow:"visible",position:"relative",zIndex:10},className:dt(h.tableHeaderCell,u===exports.AppName.WEB&&h.tableBorder)}},customBodyRender:function(t){return Sf(t)?e.jsx(Kye,{data:t,maxEPS:J}):"-"}}},{name:ube,label:"Query",options:{sort:!1,display:!0,customBodyRender:function(t,n){var r=n.rowIndex;return e.jsx(qa,{text:t,showCopyButton:!0,lang:"sql",enabledExpandCollapse:!0,showExpandCollapse:!1},"TableHelperQueries-".concat(D,"-").concat(r))}}},{name:lbe,label:"Namespace",options:{sort:!0,display:null!==(t=null==d?void 0:d.includes(lbe))&&void 0!==t&&t,setCellHeaderProps:function(){return{style:{width:"120px"},className:dt(h.tableHeaderCell,u===exports.AppName.WEB&&h.tableBorder)}},customBodyRender:function(e){return e||"-"}}},{name:rbe,label:"First Active Time",options:{sort:!0,display:null!==(n=null==d?void 0:d.includes(rbe))&&void 0!==n&&n,setCellHeaderProps:function(){return{style:{width:"180px"},className:dt(h.tableHeaderCell,u===exports.AppName.WEB&&h.tableBorder)}},customBodyRender:function(e){return e||"-"}}},{name:ibe,label:"Last Active Time",options:{sort:!0,display:null!==(i=null==d?void 0:d.includes(ibe))&&void 0!==i&&i,setCellHeaderProps:function(){return{style:{width:"180px"},className:dt(h.tableHeaderCell,u===exports.AppName.WEB&&h.tableBorder)}},customBodyRender:function(e){return e||"-"}}},{name:obe,label:"Avg Latency (ms)",options:{sort:!0,display:!0,setCellHeaderProps:function(){return{style:{width:"180px"},children:e.jsx(r.Tooltip,ot({title:"The average latency is shown for 1 hour before last active time"},{children:e.jsx("span",{children:"Avg Latency (ms)"})})),className:dt(h.tableHeaderCell,u===exports.AppName.WEB&&h.tableBorder)}},customBodyRender:function(e){return Number(e)?Number(e).toLocaleString():"-"}}},{name:abe,label:"P90 Latency (ms)",options:{sort:!0,display:null!==(o=null==d?void 0:d.includes(abe))&&void 0!==o&&o,setCellHeaderProps:function(){return{style:{width:"180px"},children:e.jsx(r.Tooltip,ot({title:"The P90 latency is shown for 1 hour before last active time"},{children:e.jsx("span",{children:"P90 Latency (ms)"})})),className:dt(h.tableHeaderCell,u===exports.AppName.WEB&&h.tableBorder)}},customBodyRender:function(e){return Number(e)?Number(e).toLocaleString():"-"}}},{name:sbe,label:"P99 Latency (ms)",options:{sort:!0,display:null!==(a=null==d?void 0:d.includes(sbe))&&void 0!==a&&a,setCellHeaderProps:function(){return{style:{width:"180px"},children:e.jsx(r.Tooltip,ot({title:"The P99 latency is shown for 1 hour before last active time"},{children:e.jsx("span",{children:"P99 Latency (ms)"})})),className:dt(h.tableHeaderCell,u===exports.AppName.WEB&&h.tableBorder)}},customBodyRender:function(e){return Number(e)?Number(e).toLocaleString():"-"}}},{name:dbe,label:"Query Type",options:{sort:!1,display:null!==(s=null==d?void 0:d.includes(dbe))&&void 0!==s&&s,setCellHeaderProps:function(){return{style:{width:"180px"},children:e.jsx(r.Tooltip,ot({title:"Displays if the query is YSQL or YCQL query type"},{children:e.jsx("span",{children:"Query Type"})})),className:dt(h.tableHeaderCell,u===exports.AppName.WEB&&h.tableBorder)}},customBodyRender:function(e){return e||"-"}}},{name:fbe,label:"Total Time (ms)",options:{sort:!0,display:null!==(l=null==d?void 0:d.includes(fbe))&&void 0!==l&&l,setCellHeaderProps:function(){return{style:{width:"180px"},children:e.jsx(r.Tooltip,ot({title:"Total time spent for query processing for 1 hour before last active time"},{children:e.jsx("span",{children:"Total Time (ms)"})})),className:dt(h.tableHeaderCell,u===exports.AppName.WEB&&h.tableBorder)}},customBodyRender:function(e){return Number(e)?Number(e).toLocaleString():"-"}}},{name:hbe,label:"Avg Rows/Call",options:{sort:!0,display:!0,setCellHeaderProps:function(){return{style:{width:"120px"},children:e.jsx(r.Tooltip,ot({title:"The average rows returned by the query is shown for 1 hour before last active time"},{children:e.jsx("span",{children:"Avg Rows"})})),className:dt(h.tableHeaderCell,u===exports.AppName.WEB&&h.tableBorder)}},customBodyRender:function(e){return Number(e)?Number(e).toLocaleString():"-"}}},{name:pbe,label:"Calls/Sec",options:{sort:!0,display:!0,setCellHeaderProps:function(){return{style:{width:"120px"},children:e.jsx(r.Tooltip,ot({title:"The RPS for the query is shown for 1 hour before last active time"},{children:e.jsx("span",{children:"RPS"})})),className:dt(h.tableHeaderCell,u===exports.AppName.WEB&&h.tableBorder)}},customBodyRender:function(e){return Number(e)?Number(e).toLocaleString():"-"}}}])}),[F,J]);t.useEffect((function(){B(W)}),[W]);var pe=oe||de;return e.jsxs(e.Fragment,{children:[S&&e.jsx($ye,{appName:u,hiddenColumns:[ebe,obe,hbe,pbe,tbe,nbe,cbe,mbe,ube],columns:w,onColumnVisibilityChange:function(e,t){x((function(n){return n.map((function(n){return n.name===e?ot(ot({},n),{options:ot(ot({},n.options),{display:t})}):n}))}))},close:function(){return k(!1)}}),e.jsxs(r.Box,ot({mt:2,mb:2},{children:[e.jsxs(r.Box,ot({display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center"},{children:[e.jsx(Za,ot({width:"120px",className:h.label},{children:"Filter by Namespace:"})),e.jsxs(Rl,ot({label:"",value:N,className:h.overrideMuiSelect,onChange:function(e){M(0),j(e.target.value)},menuProps:{PaperProps:{style:{paddingRight:"8px",maxHeight:"300px"}}}},{children:[e.jsx(r.MenuItem,ot({value:Lz,"data-testid":"HistoricalQueryData-".concat(Lz)},{children:e.jsx("span",{children:Lz})}),Lz),H.map((function(t){return e.jsx(r.MenuItem,ot({value:t,"data-testid":"HistoricalQueryData-".concat(t)},{children:e.jsx("span",{children:t})}),t)}))]})),e.jsx(Ja,{placeholder:"Filter Queries",className:h.searchInput,onChange:function(e){Tf(e.target.value)&&M(0),y(e.target.value)},value:g,inputProps:{"data-testid":"HistoricalQueryData-SearchInput"}}),e.jsx(Ll,{label:"Show Only YCQL Queries",checked:X===exports.QueryType.CQL,onChange:function(e){return t=e.target.checked,void K(t?exports.QueryType.CQL:null);var t}}),e.jsx(Ni,ot({variant:"secondary",startIcon:e.jsx(Jye,{}),onClick:function(){return k(!0)},"data-testid":"HistoricalQueryData-AddFieldsBtn"},{children:"Add and Remove Columns"}))]})),e.jsxs(r.Box,ot({className:u===exports.AppName.YBM?h.overrideMuiTableContainer:h.overrideMuiTableContainerWeb},{children:[pe&&e.jsx(r.Box,ot({mt:2,className:h.loadingBox},{children:e.jsx(Uq,{className:dt(h.icon,h.inProgressIcon)})})),(ae||he)&&e.jsxs(r.Box,ot({mt:3,className:h.recommendation},{children:[(u===exports.AppName.YBA||u===exports.AppName.WEB)&&e.jsx(Xa,{customErrorMessage:"Failed to fetch anomalies list, please try again."}),u===exports.AppName.YBM&&e.jsx(Nl,{text:"Failed to fetch queries list, please try again."})]})),!pe&&Sf(F)&&e.jsx(Sz,{id:"HistoricalQueryData-".concat(D),className:h.overrideMuiTable,data:F,columns:null==w?void 0:w.filter((function(e){var t;return null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.display})),options:{filter:!0,count:I,serverSide:!0,pagination:!0,selectableRowsOnClick:!1,rowHover:!0,rowsPerPage:C,page:D,onChangePage:function(e){return M(e)},onChangeRowsPerPage:function(e){E(e),M(0)},customRowRender:wW(u,D,F,d,!0,null==w?void 0:w.filter((function(e){var t;return null===(t=null==e?void 0:e.options)||void 0===t?void 0:t.display})),vbe,s,l,f,(function(e){m(e)}),c),rowsPerPageOptions:Qz,onColumnSortChange:function(e,t){Q(e),re(t.toUpperCase())},customFooter:vW(se,"Rows per page:",F.length,le)}},"HistoricalQueryData-".concat(D)),!pe&&!Sf(F)&&e.jsx(r.Box,ot({mt:3},{children:e.jsx("span",{children:"There are no queries with the current ".concat(u===exports.AppName.YBM?"cluster":"universe")})}))]}))]}))]})},ybe=r.makeStyles((function(e){return{messageBox:{width:"100%",height:"228px",border:"1px dotted #CBDBFF",backgroundColor:"#F2F6FF",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},ashText:{color:"#4E5F6D",marginTop:e.spacing(2),marginBottom:e.spacing(2),fontSize:"13px"},ashLink:{color:"#2B59C3",fontSize:"11.5px",textDecoration:"underline",fontStyle:"solid"}}})),bbe=[{text:"Learn how to upgrade database version",link:"https://docs.yugabyte.com/preview/yugabyte-platform/manage-deployments/upgrade-software-install/"},{text:"Enable Active Session History (ASH) to view cluster load.",link:"https://docs.yugabyte.com/preview/explore/observability/active-session-history/"}],wbe=function(t){var n=t.isAshSupported,i=ybe();return e.jsxs(r.Box,ot({className:i.messageBox},{children:[e.jsx("img",{src:n?"data:image/svg+xml,%3csvg width='21' height='12' viewBox='0 0 21 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M20.5 1L12.6314 8.86863C12.2354 9.26465 12.0373 9.46265 11.809 9.53684C11.6082 9.6021 11.3918 9.6021 11.191 9.53684C10.9627 9.46265 10.7646 9.26465 10.3686 8.86863L7.63137 6.13137C7.23535 5.73535 7.03735 5.53735 6.80902 5.46316C6.60817 5.3979 6.39183 5.3979 6.19098 5.46316C5.96265 5.53735 5.76465 5.73535 5.36863 6.13137L0.5 11M20.5 1H13.5M20.5 1V8' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='42' height='22' viewBox='0 0 42 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M41 1L25.2627 16.7373C24.4707 17.5293 24.0747 17.9253 23.618 18.0737C23.2163 18.2042 22.7837 18.2042 22.382 18.0737C21.9253 17.9253 21.5293 17.5293 20.7373 16.7373L15.2627 11.2627C14.4707 10.4707 14.0747 10.0747 13.618 9.92631C13.2163 9.7958 12.7837 9.7958 12.382 9.92631C11.9253 10.0747 11.5293 10.4707 10.7373 11.2627L1 21M41 1H27M41 1V15' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e",alt:"Arrow"}),e.jsx("span",ot({className:i.ashText},{children:n?"Enable Active Session History (ASH) to view cluster load.":"Upgrade database version to 2024.2 then enable ASH to view cluster load."})),e.jsxs(r.Box,ot({display:"flex",flexDirection:"row"},{children:[e.jsx("img",{src:"data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.8002 13.7616H4.48019C3.95091 13.7616 3.52019 13.3308 3.52019 12.8016C3.52019 12.2723 3.95091 11.8416 4.48019 11.8416H12.1602C12.3368 11.8416 12.4802 11.6982 12.4802 11.5216V3.20156C12.4802 2.319 11.7621 1.60156 10.8802 1.60156H4.48019C3.59827 1.60156 2.88019 2.319 2.88019 3.20156V12.8016C2.88019 13.6841 3.59827 14.4016 4.48019 14.4016H12.8002C12.9768 14.4016 13.1202 14.2582 13.1202 14.0816C13.1202 13.9049 12.9768 13.7616 12.8002 13.7616ZM3.52019 3.20156C3.52019 2.67228 3.95091 2.24156 4.48019 2.24156H10.8802C11.4095 2.24156 11.8402 2.67228 11.8402 3.20156V11.2016H4.48019C4.12051 11.2016 3.78771 11.3212 3.52019 11.5222V3.20156Z' fill='%232B59C3'/%3e%3cpath d='M9.60006 6.08203H5.76006C5.58342 6.08203 5.44006 6.22539 5.44006 6.40203C5.44006 6.57867 5.58342 6.72203 5.76006 6.72203H9.60006C9.7767 6.72203 9.92006 6.57867 9.92006 6.40203C9.92006 6.22539 9.7767 6.08203 9.60006 6.08203Z' fill='%232B59C3'/%3e%3cpath d='M9.60006 7.85938H5.76006C5.58342 7.85938 5.44006 8.00274 5.44006 8.17938C5.44006 8.35602 5.58342 8.49938 5.76006 8.49938H9.60006C9.7767 8.49938 9.92006 8.35602 9.92006 8.17938C9.92006 8.00274 9.7767 7.85938 9.60006 7.85938Z' fill='%232B59C3'/%3e%3cpath d='M9.6 4.30469H5.76C5.58336 4.30469 5.44 4.44805 5.44 4.62469C5.44 4.80133 5.58336 4.94469 5.76 4.94469H9.6C9.77664 4.94469 9.92 4.80133 9.92 4.62469C9.92 4.44805 9.77664 4.30469 9.6 4.30469Z' fill='%232B59C3'/%3e%3cpath d='M9.60006 7.85938H5.76006C5.58342 7.85938 5.44006 8.00274 5.44006 8.17938C5.44006 8.35602 5.58342 8.49938 5.76006 8.49938H9.60006C9.7767 8.49938 9.92006 8.35602 9.92006 8.17938C9.92006 8.00274 9.7767 7.85938 9.60006 7.85938Z' fill='%232B59C3'/%3e%3c/svg%3e",alt:"Docs"}),e.jsx("a",ot({className:i.ashLink,href:n?bbe[1].link:bbe[0].link,target:"_blank",rel:"noreferrer"},{children:n?bbe[1].text:bbe[0].text}))]}))]}))},xbe=a.makeStyles((function(){return{metricPanel:{padding:"1px",position:"relative",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",maxWidth:"fit-content",border:"1px solid #D7DEE4",borderRadius:"8px"}}})),_be=function(i){var o=i.startTime,a=i.endTime,s=i.appName,l=i.metricKey,u=i.shouldAbbreviateTraceName,c=i.timezone,d=i.universeUuid,h=i.isAshEnabled,p=i.isAshSupported,f=i.apiUrl,m=i.onPlotlyDateSelect,v=xbe(),g=gW(),y=t.useState(null),b=y[0],w=y[1],x=n.useMutation((function(e){return iq.fetchGraphs(d,e,f)}),{onSuccess:function(e){!Sf(e)||w(null==e?void 0:e[0])},onError:function(e){console.error("Failed to fetch cluster load data",e)}}),_=function(){var e=[{start:o,end:a,name:"active_session_history_system_load_queries",filters:{universeUuid:[d]},settings:{aggregatedValueFunction:Nz.AVERAGE,returnAggregatedValue:!1,splitCount:3,splitMode:Pz.NONE,splitType:Rz.NONE},groupBy:[exports.GraphLabel.WAIT_EVENT_TYPE],stepSeconds:wq(o,a)}];Tf(o)&&Tf(a)&&h&&x.mutate(e)};return t.useEffect((function(){_()}),[o,a]),t.useEffect((function(){return _(),function(){w(null)}}),[]),t.useEffect((function(){h&&function(e,t,n){var r,i,o=function(){var e,t=null===(e=document.getElementById(c))||void 0===e?void 0:e.parentElement;return t?.97*t.clientWidth:1700},a=t.shouldAbbreviateTraceName,s=t.appName,l=t.timezone,u=void 0===l?"":l,c=t.metricKey,d=t.scaleFactor,h=t.isClusterLoad;if(kf(e)){var p=o();e.data.forEach((function(t,n){var r;if("scatter"===t.type){var i=ot(ot({},t),{line:{color:"white",width:4,dash:"solid",shape:"linear"},showlegend:!1,hoverinfo:"skip"});e.data.splice(n,0,i),t.mode="lines",t.line={color:bq[t.name]||yq[n%yq.length],width:2,dash:"solid",shape:"linear"}}else t.marker={color:bq[t.name]||yq[n%yq.length]};t.fullname=t.name,a&&t.name.length>25?t.name=(null===(r=t.fullname)||void 0===r?void 0:r.substring(0,25))+"...":t.fullname,n>=12&&(t.showlegend=!1)})),Of(e.layout);var f=function(e){return Ld(Fd(new Date,e),"'[UTC]'XXX")};e.data=Af(e.data),e.layout.xaxis.hoverformat=u?"%H:%M:%S, %b %d, %Y "+f(u):"%H:%M:%S, %b %d, %Y "+f("UTC");var m=0;e.data.forEach((function(e){e.hovertemplate=h?"%{data.fullname}: %{y:.6f} at %{x} <extra></extra>":"%{data.fullname}: %{y} at %{x} <extra></extra>";var t=Math.max.apply(Math,e.y.map((function(e){return parseFloat(e)})));!h&&e.y.forEach((function(e){(e=1.25*parseFloat(e))>m&&(m=e)})),h&&e.y.forEach((function(e,n){var r=parseFloat(e);(r*=t<=.05?1500:t<=.9?750:150)>m&&(m=r)}))})),0===m&&(m=1.01),e.layout.autosize=!1,e.layout.width=p,e.layout.height=300,e.layout.showlegend=!0,e.layout.title={text:"Cluster Load",x:.03,y:2.2,xref:"container",yref:"container",font:{weight:"bold",family:"Inter",size:15,color:"#0B1117"}},e.layout.hovermode="closest",e.layout.margin={l:s===exports.AppName.YBM?55:95,r:5,b:10,t:60,pad:4},kf(null===(r=e.layout)||void 0===r?void 0:r.yaxis)&&Tf(null===(i=e.layout.yaxis)||void 0===i?void 0:i.ticksuffix)?(e.layout.margin.l=70,e.layout.yaxis.range=[0,m/d],e.layout.yaxis.griddash="dot"):(e.layout.yaxis={range:[0,m/d]},e.layout.yaxis.griddash="dot"),e.layout.yaxis={title:{text:"Connections",font:{weight:"bold",family:Uz,size:13,color:"#0B1117"}}},e.layout.font={family:Uz},e.layout.barmode="stack",e.layout.legend={orientation:"h",y:-.25},Sf(e.data)||(e.layout.annotations=[{visible:!0,align:"center",text:"No Data",showarrow:!1,x:1,y:1}],e.layout.margin.b=40,e.layout.xaxis={range:[0,3]},e.layout.yaxis={range:[0,3]});var v=ut([],e.data,!0);oq.newPlot(c,v,e.layout,{displayModeBar:!1,responsive:!0});var g=document.getElementById(c);g&&(null==g||g.on("plotly_relayout",(function(e){if(e["xaxis.range[0]"]&&e["xaxis.range[1]"]){var t=e["xaxis.range[0]"],r=e["xaxis.range[1]"];n&&n(t,r)}}))),window.addEventListener("resize",(function(){var e=o();oq.relayout(c,{width:e})}));var y=document.querySelector(".gtitle");y&&(y.style.fontWeight="bold");var b=document.querySelector(".ytitle");b&&(b.style.fontWeight="bold")}}(b,{shouldAbbreviateTraceName:u,appName:s,timezone:c,metricKey:l,scaleFactor:50,isClusterLoad:!0},(function(e,t){m(e,t)}))}),[b]),e.jsx(r.Box,{children:e.jsxs(r.Box,{children:[x.isLoading&&e.jsx(r.Box,ot({mt:2,className:g.loadingBox},{children:e.jsx(Uq,{className:dt(g.icon,g.inProgressIcon)})})),x.isError&&e.jsxs(r.Box,ot({mt:3},{children:[(s===exports.AppName.YBA||s===exports.AppName.WEB)&&e.jsx(Xa,{customErrorMessage:"Failed to fetch cluster load data, please try again."}),s===exports.AppName.YBM&&e.jsx(Nl,{text:"Failed to cluster load data, please try again."})]})),e.jsxs(r.Box,{children:[e.jsx(r.Box,{id:l,className:v.metricPanel,onClick:function(e){e.stopPropagation()}}),!h&&e.jsx(r.Box,ot({mt:2,mb:1.5},{children:e.jsx(wbe,{isAshSupported:p})}))]})]})})},Sbe=r.makeStyles((function(e){return{tabsContainer:{display:"flex",alignItems:"center",width:"100%",boxShadow:"inset 0px -1px 0px 0px ".concat(e.palette.grey[300]),"& .MuiTabs-fixed":{boxShadow:"none"},marginTop:e.spacing(1.5)},tabButton:{textAlign:"left",marginRight:e.spacing(1),minHeight:e.spacing(4),maxHeight:e.spacing(4),marginBottom:e.spacing(.5),padding:e.spacing(0,2),boxSizing:"border-box","&:hover":{boxShadow:"none",borderRadius:e.shape.borderRadius},"& .Mui-selected":{background:e.palette.grey[300],borderRadius:e.spacing(1)},"& .MuiTab-wrapper":{alignItems:"center"}},tabLabelWrapper:{padding:"12px 16px",fontSize:"13px",fontWeight:400,textTransform:"none",color:"#0B1117"},tabBox:{border:"1px solid #E9EEF2",borderRadius:"8px",padding:"0px 24px 4px 16px",backgroundColor:"#FFFFFF"},chartBox:{border:"1px solid #D7DEE4",borderRadius:"8px",padding:"16px 24px 24px 16px",backgroundColor:"#FFFFFF"},expandAllButton:{fontSize:"13px",fontWeight:600,color:"#2B59C3"}}})),kbe="anomalies",Tbe="queries",Cbe="metrics",Ebe=function(i){var o=i.startTime,a=i.endTime,s=i.universeUuid,u=i.appName,c=i.timezone,d=i.apiUrl,h=i.isAshEnabled,p=i.isAshSupported,f=i.universeData,m=i.onClickShowMoreAnomalies,v=i.onPlotlyDateSelect,g=i.onSelectedIssue,y=i.onSelectedQuery,b=i.notifyTabChange,w=Sbe(),x=gW(),_=t.useState(null),S=_[0],k=_[1],T=t.useState(exports.InsightsTabs.ANOMALIES),C=T[0],E=T[1],O=t.useState(!1),D=O[0],M=O[1],A=t.useState(Object.values(exports.InsightsTabs)),I=A[0],P=A[1],R=function(e,t){var n=Object.values(exports.InsightsTabs);return e||(n=n.filter((function(e){return e!==exports.InsightsTabs.QUERIES}))),t||(n=n.filter((function(e){return e!==exports.InsightsTabs.METRICS}))),n},N=n.useQuery([exports.QUERY_KEY.fetchAnomalyGroups,o],(function(){return iq.fetchAnomalyGroups(s,o,a,d)}),{onSuccess:function(e){k(e)},onError:function(e){var t,n,r;Vye.error(null!==(r=null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.error)&&void 0!==r?r:"Failed to retrieve anomalies")}});n.useQuery([exports.QUERY_KEY.fetchSpecificRuntimeConfigs],(function(){return iq.fetchSpecificRuntimeConfigs(Xz,[Kz.SHOW_QUERIES_VIEW,Kz.SHOW_TOPK_METRICS_VIEW],d)}),{onSuccess:function(e){var t,n,r="true"===(null===(t=null==e?void 0:e.find((function(e){return e.path===Kz.SHOW_TOPK_METRICS_VIEW})))||void 0===t?void 0:t.value),i="true"===(null===(n=null==e?void 0:e.find((function(e){return e.path===Kz.SHOW_QUERIES_VIEW})))||void 0===n?void 0:n.value);P(R(!!i,!!r))},onError:function(){P(R(!1,!1))}}),t.useEffect((function(){N.refetch()}),[o,a]),t.useEffect((function(){var e=window.location.pathname;if(e.includes("/".concat(kbe)))E(exports.InsightsTabs.ANOMALIES),b(exports.InsightsTabs.ANOMALIES);else if(e.includes("/".concat(Tbe)))E(exports.InsightsTabs.QUERIES),b(exports.InsightsTabs.QUERIES);else if(e.includes("/".concat(Cbe)))E(exports.InsightsTabs.METRICS),b(exports.InsightsTabs.METRICS);else{var t=new URLSearchParams(window.location.search).toString(),n="".concat(e,"/").concat(kbe).concat(t?"?".concat(t):"");window.history.replaceState(null,"",n)}}),[]);var j=function(t){switch(t){case exports.InsightsTabs.ANOMALIES:return e.jsx(_be,{startTime:o,endTime:a,apiUrl:d,universeUuid:s,appName:u,metricKey:"cluster_load",shouldAbbreviateTraceName:!0,timezone:c,isAshEnabled:h,isAshSupported:p,onPlotlyDateSelect:v});case exports.InsightsTabs.QUERIES:return e.jsxs(e.Fragment,{children:[e.jsx(_be,{startTime:o,endTime:a,apiUrl:d,universeUuid:s,appName:u,metricKey:"cluster_load",shouldAbbreviateTraceName:!0,timezone:c,isAshEnabled:h,isAshSupported:p,onPlotlyDateSelect:v}),e.jsx(r.Box,ot({mt:3,className:w.chartBox},{children:e.jsx(gbe,{universeUuid:s,apiUrl:d,startTime:o,endTime:a,appName:u,onSelectedQuery:y})}))]});case exports.InsightsTabs.METRICS:return e.jsx(dye,{universeUuid:s,troubleshootUuid:null,shouldAnalyzeTopK:!0,universeData:f,appName:u,timezone:c,apiUrl:d});default:return null}};return e.jsxs(r.Box,{children:[u===exports.AppName.WEB&&e.jsx(r.Box,ot({className:w.tabBox},{children:e.jsxs(l.TabContext,ot({value:C},{children:[e.jsx(r.Box,ot({display:"flex",alignItems:"center",className:w.tabsContainer},{children:e.jsx(r.Tabs,ot({value:C,indicatorColor:"primary",textColor:"primary",onChange:function(e,t){if(t!==C){E(t),b(t);var n=window.location.pathname,r=new URLSearchParams(window.location.search).toString();n=n.replace(/\/anomalies|\/metrics|\/queries/g,""),t===exports.InsightsTabs.ANOMALIES?n="".concat(n,"/").concat(kbe).concat(r?"?".concat(r):""):t===exports.InsightsTabs.QUERIES?n="".concat(n,"/").concat(Tbe).concat(r?"?".concat(r):""):t===exports.InsightsTabs.METRICS&&(n="".concat(n,"/").concat(Cbe)),window.history.pushState(null,"",n)}}},{children:I.map((function(t,n){return e.jsx(r.Tab,{"data-testid":"".concat(t,"Tab"),value:t,label:t,classes:{root:dt(w.tabButton),wrapper:w.tabLabelWrapper}},n)}))}))})),e.jsx(l.TabPanel,ot({className:x.tabPanelPrimary,value:exports.InsightsTabs.ANOMALIES},{children:j(exports.InsightsTabs.ANOMALIES)})),e.jsx(l.TabPanel,ot({className:x.tabPanelPrimary,value:exports.InsightsTabs.QUERIES},{children:j(exports.InsightsTabs.QUERIES)})),e.jsx(l.TabPanel,ot({className:x.tabPanelPrimary,value:exports.InsightsTabs.METRICS},{children:j(exports.InsightsTabs.METRICS)}))]}))})),u===exports.AppName.YBM&&e.jsx(e.Fragment,{children:j(C)}),C===exports.InsightsTabs.ANOMALIES&&e.jsxs(r.Box,ot({mt:3,className:w.chartBox},{children:[e.jsxs(r.Box,ot({display:"flex",justifyContent:"space-between",alignItems:"center"},{children:[e.jsx(r.Typography,ot({variant:"h5"},{children:"Detected Anomalies"})),e.jsx(r.Box,ot({mb:2},{children:e.jsx(Ni,ot({variant:"secondary",startIcon:e.jsx("img",{src:D?"data:image/svg+xml,%3csvg width='15' height='16' viewBox='0 0 15 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M7 4.70711L3.85355 7.85355C3.65829 8.04882 3.34171 8.04882 3.14645 7.85355C2.95118 7.65829 2.95118 7.34171 3.14645 7.14645L7.14645 3.14645C7.34171 2.95118 7.65829 2.95118 7.85355 3.14645L11.8536 7.14645C12.0488 7.34171 12.0488 7.65829 11.8536 7.85355C11.6583 8.04882 11.3417 8.04882 11.1464 7.85355L8 4.70711L8 15.5C8 15.7761 7.77614 16 7.5 16C7.22386 16 7 15.7761 7 15.5L7 4.70711ZM0.5 1C0.223858 1 1.81543e-07 0.776142 1.84836e-07 0.5C1.88129e-07 0.223858 0.223858 2.66948e-09 0.5 5.96244e-09L14.5 1.72911e-07C14.7761 1.76204e-07 15 0.223858 15 0.5C15 0.776142 14.7761 1 14.5 1L0.5 1Z' fill='%232B59C3'/%3e%3c/svg%3e":"data:image/svg+xml,%3csvg width='15' height='16' viewBox='0 0 15 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 11.2929L11.1464 8.14645C11.3417 7.95118 11.6583 7.95118 11.8536 8.14645C12.0488 8.34171 12.0488 8.65829 11.8536 8.85355L7.85355 12.8536C7.65829 13.0488 7.34171 13.0488 7.14645 12.8536L3.14645 8.85355C2.95118 8.65829 2.95118 8.34171 3.14645 8.14645C3.34171 7.95118 3.65829 7.95118 3.85355 8.14645L7 11.2929L7 0.5C7 0.223857 7.22386 -3.39906e-07 7.5 -3.27835e-07C7.77614 -3.15765e-07 8 0.223857 8 0.5L8 11.2929ZM14.5 15C14.7761 15 15 15.2239 15 15.5C15 15.7761 14.7761 16 14.5 16L0.499999 16C0.223857 16 -6.89597e-07 15.7761 -6.77527e-07 15.5C-6.65456e-07 15.2239 0.223857 15 0.499999 15L14.5 15Z' fill='%232B59C3'/%3e%3c/svg%3e",alt:"Expand Icon"}),onClick:function(){M(!D)}},{children:e.jsx("span",ot({className:w.expandAllButton},{children:D?"Collapse All":"Expand All"}))}))})),N.isLoading&&e.jsx(r.Box,ot({mt:2,className:x.loadingBox},{children:e.jsx(Uq,{className:dt(x.icon,x.inProgressIcon)})})),N.isError&&e.jsxs(r.Box,ot({mt:2},{children:[(u===exports.AppName.YBA||u===exports.AppName.WEB)&&e.jsx(Xa,{customErrorMessage:"Failed to fetch anomalies list, please try again."}),u===exports.AppName.YBM&&e.jsx(Nl,{text:"Failed to fetch anomalies list, please try again."})]}))]})),N.isSuccess&&(kf(null==S?void 0:S.groups)?e.jsx(sye,{sourceData:null!=S?S:[],expandAll:D,showMore:!0,onClickShowMoreAnomalies:m,startTime:o,endTime:a,onSelectedIssue:g,appName:u}):e.jsx(r.Box,ot({mt:2},{children:"No Anomalies were detected"})))]}))]})},Obe=r.makeStyles((function(e){return{tabBox:{border:"1px solid #E9EEF2",borderRadius:"8px",padding:"24px 24px 24px 16px",backgroundColor:"#FFFFFF",margin:e.spacing(3)}}})),Dbe=function(i){var a,s,l=i.showMoreAnomalyCategory,u=i.startTime,c=i.endTime,d=i.apiUrl,h=i.universeUuid,p=i.appName,f=i.onClickShowMoreAnomalies,m=i.onSelectedIssue,v=Obe(),g=gW(),y=t.useState(null),b=y[0],w=y[1],x=n.useQuery([exports.QUERY_KEY.fetchAnomalyGroupsByType,u,c],(function(){return iq.fetchAnomalyGroupsByType(h,u,c,l,d)}),{onSuccess:function(e){w(e)},onError:function(e){var t,n,r,i="Failed to retrieve anomalies for ".concat(l);Vye.error(null!==(r=null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.error)&&void 0!==r?r:i)}});return e.jsxs(r.Box,ot({className:v.tabBox},{children:[e.jsxs(r.Breadcrumbs,ot({className:g.breadCrumb,separator:e.jsx(o.NavigateNext,{fontSize:"small"}),"aria-label":"breadcrumb","data-testid":"PrimaryDashboardBreadcrumb"},{children:[e.jsx(r.Link,ot({className:g.detectedAnomaliesLink,component:Un,variant:"h5",onClick:function(){f(null),window.history.pushState({},"",window.location.href)},to:"#"},{children:e.jsx("span",ot({className:g.breadCrumbText},{children:"Detected Anomalies"}))})),e.jsx(r.Typography,ot({variant:"h5"},{children:e.jsx("span",ot({className:dt(g.breadCrumbText,g.anomalyCategoryText)},{children:"".concat(null===(s=null===(a=null==b?void 0:b[0])||void 0===a?void 0:a.lastInstance)||void 0===s?void 0:s.title)||"".concat(Zz[l])}))}))]})),e.jsxs(r.Box,ot({mt:3},{children:[x.isLoading&&e.jsx(r.Box,{children:e.jsx(Uq,{className:dt(g.icon,g.inProgressIcon)})}),x.isError&&e.jsxs(r.Box,ot({mt:3},{children:[(p===exports.AppName.YBA||p===exports.AppName.WEB)&&e.jsx(Xa,{customErrorMessage:"Failed to fetch further anomalies, please try again."}),p===exports.AppName.YBM&&e.jsx(Nl,{text:"Failed to fetch further anomalies, please try again."})]})),x.isSuccess&&(Sf(b)?e.jsx(sye,{sourceData:null!=b?b:[],showMore:!1,expandAll:!0,startTime:u,endTime:c,onSelectedIssue:m,appName:p}):e.jsx(r.Box,{children:"No Anomalies were detected"}))]}))]}))},Mbe=a.makeStyles((function(e){return{header:{display:"flex",flexDirection:"row",justifyContent:"flex-end",alignItems:"end"},detectionButton:{marginRight:e.spacing(2)}}})),Abe=r.makeStyles((function(e){return{root:{padding:"".concat(e.spacing(3),"px ").concat(e.spacing(4.5),"px")},modalTitle:{marginLeft:e.spacing(2.25)}}})),Ibe=function(t){var i=t.data,o=t.open,a=t.apiUrl,s=t.onClose,l=t.onActionPerformed,u=t.toast,c=Abe(),d=n.useMutation((function(){return iq.deleteRuntimeConfig(Xz,null==i?void 0:i.path,a)}),{onSuccess:function(){u.success("Have reset runtime configuration key ".concat(i.path," successfully")),l(),s()},onError:function(e){var t,n,r;u.error(null!==(r=null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.error)&&void 0!==r?r:"Cannot reset runtime configuration key, please try again")}});return e.jsx(zf,ot({open:o,onClose:s,title:"Reset Runtime Configuration",onSubmit:function(){return st(void 0,void 0,void 0,(function(){return lt(this,(function(e){return d.mutateAsync(),[2]}))}))},cancelLabel:"Cancel",submitLabel:"Reset",overrideHeight:"250px",size:"sm",titleSeparator:!0,enableBackdropDismiss:!0,dialogContentProps:{className:c.root,dividers:!0}},{children:e.jsx(r.Box,ot({mt:2},{children:e.jsx(r.Typography,ot({variant:"body2"},{children:"Are you sure you want to reset the runtime configuration for the following key ".concat(i.path," ?")}))}))}))},Pbe=r.makeStyles((function(e){return{root:{padding:"".concat(e.spacing(3),"px ").concat(e.spacing(4.5),"px")},modalTitle:{marginLeft:e.spacing(2.25)}}})),Rbe=function(t){var i=t.data,o=t.open,a=t.apiUrl,s=t.onClose,l=t.onActionPerformed,u=t.toast,c=Pbe(),d=Tl({defaultValues:{configValue:(null==i?void 0:i.type)===exports.RuntimeConfigType.BOOL?"true"===i.value:i.value},mode:"onChange",reValidateMode:"onChange"}),h=d.control,p=d.handleSubmit,f=n.useMutation((function(e){return iq.updateRuntimeConfig(Xz,null==i?void 0:i.path,e.configValue?e.configValue.toString():i.value.toString(),a)}),{onSuccess:function(){u.success("Updated runtime configuration key ".concat(i.path," successfully")),l(),s()},onError:function(e){var t,n,r;u.error(null!==(r=null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.error)&&void 0!==r?r:"Cannot update runtime configuration key, please try again")}}),m=p((function(e){var t={configValue:""};Object.assign(t,i),t.configValue=e.configValue,f.mutate(t)}));return e.jsx(zf,ot({open:o,onClose:s,title:"Update Runtime Configuration",onSubmit:m,cancelLabel:"Cancel",submitLabel:"Update",overrideHeight:"250px",size:"sm",titleSeparator:!0,enableBackdropDismiss:!0,dialogContentProps:{className:c.root,dividers:!0}},{children:e.jsx(Es,ot({},d,{children:e.jsxs(r.Box,ot({mt:2},{children:[e.jsx(Za,{children:"Config Key "}),e.jsx(r.Typography,ot({variant:"body2"},{children:i.path})),e.jsxs(r.Box,ot({mt:1},{children:[e.jsx(Za,{children:"Config Value "}),(null==i?void 0:i.type)!==exports.RuntimeConfigType.BOOL&&e.jsx(El,{style:{marginTop:"8px"},name:"configValue",control:h,inputProps:{"data-testid":"UpdateRuntimeConfig-ConfigValue"},fullWidth:!0}),(null==i?void 0:i.type)===exports.RuntimeConfigType.BOOL&&e.jsx(kW,{name:"configValue",control:h,inputProps:{"data-testid":"UpdateRuntimeConfig-ConfigValue"}})]}))]}))}))}))},Nbe=r.makeStyles((function(e){return{overrideMuiTableContainer:{"& .MuiTableContainer-root":{width:"90% !important",marginTop:"3px"}},overrideMuiTable:{textAlign:"center","& .MuiTableCell-sizeSmall":{textAlign:"center"}},tooltip:{marginLeft:e.spacing(.5)},textColor:{color:"#303A78"},searchBox:{maxWidth:520,flexGrow:1,marginRight:"auto"}}}));exports.ALL=Lz,exports.ALL_REGIONS=jz,exports.ALL_ZONES=Fz,exports.ANOMALY_CATEGORY_LIST=$z,exports.ANOMALY_FILTER_DURATION_OPTIONS=nW,exports.ANOMALY_TAG=uW,exports.ANOMALY_TYPE_TO_NAME_MAP=Zz,exports.ASH=Bz,exports.ASH_GROUPBY_VALUES=qz,exports.Aggregation=Nz,exports.CATEGORY_HEADER_DATA_MAP=iW,exports.CQL_QUERY_REQUEST_GRAPHS=Gz,exports.ClusterRegionSelector=RW,exports.DB_TAG=aW,exports.DEFAULT_RECORDS_PER_PAGE=Qz,exports.ELLIPSIS="...",exports.GLOBAL_RUNTIME_CONFIG=Xz,exports.GenericFailure=Nl,exports.IN_DEVELOPMENT_MODE=eq,exports.MAX_OUTLIER_NUM_NODES=10,exports.METRIC_FONT=Uz,exports.METRIC_RESOURCES_WITH_GRAPHS=mW,exports.METRIC_TABLES_RESOURCES_WITH_GRAPHS=fW,exports.METRIC_TABS=hW,exports.METRIC_TABS_TABLES=pW,exports.MIN_OUTLIER_NUM_NODES=3,exports.MORE=Jz,exports.MetricConsts=Hz,exports.MetricOrigin={TABLE:"table",CUSTOMER:"customer",UNIVERSE:"universe"},exports.MetricSplitSelector=EW,exports.MetricsAnalysisEntry=dye,exports.OutlierSelector=DW,exports.PerfAdvisorEntry=function(i){var o,a,s=i.timezone,l=i.universeUuid,u=i.appName,c=i.apiUrl,d=i.onSelectedIssue,h=i.onSelectedQuery,p=Mbe(),f=gW(),m=new Date,v=new Date;v.setDate((new Date).getDate()-1);var g=t.useState(null);g[0];var y=g[1],b=t.useState(exports.AnomalyDetectionStatusText.EMPTY),w=b[0],x=b[1];t.useEffect((function(){localStorage.setItem("appName",u)}),[]),n.useQuery(exports.QUERY_KEY.fetchAnomalyDetectionStatus,(function(){return iq.fetchAnomalyDetectionStatus(l,c)}),{onSuccess:function(e){var t=e.detectionEndTime;if(!t||Cf(t))y(null);else{var n=new Date(t),r=jf(n,If.YB_DATE_TIME_TIMESTAMP,s);y(r)}x(e.status)},onError:function(e){console.error("Failed to fetch anomaly detection status",e)},refetchOnWindowFocus:!0,refetchInterval:1e4,enabled:w!==exports.AnomalyDetectionStatusText.SUCCESS});var _=new URLSearchParams(window.location.search),S=_.get("startTime"),k=_.get("endTime"),T=_.get("duration"),C=t.useState(S?new Date(S).toISOString():null),E=C[0],O=C[1],D=t.useState(k?new Date(k).toISOString():null),M=D[0],A=D[1],I=t.useState(""),P=I[0],R=I[1],N=t.useState({start:S?new Date(S):v,end:k?new Date(k):m}),j=N[0],L=N[1],F=t.useState({start:jf(j.start,If.YB_DATE_TIME_TIMESTAMP,s),end:jf(j.end,If.YB_DATE_TIME_TIMESTAMP,s)}),B=F[0],U=F[1],H=t.useState(null!=T?T:nW[0].value),Y=H[0],z=H[1],W=t.useState(null),G=W[0],V=W[1],q=t.useState(exports.InsightsTabs.ANOMALIES),Q=q[0],$=q[1],X=function(e,t){O(e),A(t)},K=function(){var e=null==v?void 0:v.toISOString(),t=null==m?void 0:m.toISOString(),n=new Date;Y===tW.SEVEN_DAYS?(n.setDate(n.getDate()-7),e=null==n?void 0:n.toISOString()):Y===tW.TWO_DAYS?(n.setDate(n.getDate()-2),e=null==n?void 0:n.toISOString()):Y===tW.TWENTYFOUR_HOURS?(n.setDate(n.getDate()-1),e=null==n?void 0:n.toISOString()):Y===tW.SIX_HOURS?(n.setHours(n.getHours()-6),e=null==n?void 0:n.toISOString()):Y===tW.ONE_HOUR&&(n.setHours(n.getHours()-1),e=null==n?void 0:n.toISOString()),Y!==eW.CUSTOM&&X(e,t)};t.useEffect((function(){K();var e=new URLSearchParams(window.location.search).get("duration");Tf(e)&&z(e)}),[]),t.useEffect((function(){K()}),[Y]),t.useEffect((function(){var e=j.start,t=j.end;e>t?R("Start Date is greater than End Date"):(t-e)/36e5<=1?R("Time difference should be a minimum of 1 hour"):Y===eW.CUSTOM&&(R(""),U({start:jf(e,If.YB_DATE_TIME_TIMESTAMP,s),end:jf(t,If.YB_DATE_TIME_TIMESTAMP,s)}),X(null==e?void 0:e.toISOString(),null==t?void 0:t.toISOString()))}),[j]);var Z=n.useQuery(exports.QUERY_KEY.fetchUniverseById,(function(){return iq.fetchUniverseById(l,c)})),J=n.useQuery(exports.QUERY_KEY.getUniverseMetadata,(function(){return iq.getUniverseMetadata(l,c)})),ee=null===(o=null==Z?void 0:Z.data)||void 0===o?void 0:o.ashEnabled,te=null===(a=null==Z?void 0:Z.data)||void 0===a?void 0:a.ashSupported,ne=n.useMutation((function(){return iq.scheduleAnomalyDetectionStatus(l,c)}),{onSuccess:function(e){var t=e.detectionEndTime;if(!t||Cf(t))y(null);else{var n=new Date(t),r=jf(n,If.YB_DATE_TIME_TIMESTAMP,s);y(r)}x(e.status)},onError:function(e){var t,n,r;Vye.error(null!==(r=null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.error)&&void 0!==r?r:"Failed to schedule anomaly detection")}}),re=function(e){V(e)};return e.jsx(r.Box,{children:e.jsxs(e.Fragment,{children:[J.isLoading||Z.isLoading&&e.jsx(r.Box,ot({mt:2,className:f.loadingBox},{children:e.jsx(Uq,{className:dt(f.icon,f.inProgressIcon)})})),J.isError||Z.isError&&e.jsxs(r.Box,ot({mt:2},{children:[(u===exports.AppName.YBA||u===exports.AppName.WEB)&&e.jsx(Xa,{customErrorMessage:J.isError?"Universe is not registered to TP, please register to view data":"Failed to fetch anomalies list, please try again."}),u===exports.AppName.YBM&&e.jsx(Nl,{text:J.isError?"Cluster is not registered to TP, please raise a request":"Failed to fetch anomalies list, please try again."})]})),Z.isSuccess&&e.jsxs(r.Box,{children:[!G&&e.jsxs(r.Box,ot({p:3},{children:[e.jsxs(r.Box,ot({className:p.header},{children:[Q===exports.InsightsTabs.ANOMALIES&&e.jsx(Ni,ot({variant:"primary",size:"medium",onClick:function(){ne.mutate()},className:p.detectionButton,disabled:w===exports.AnomalyDetectionStatusText.SCHEDULED||w===exports.AnomalyDetectionStatusText.IN_PROGRESS,showSpinner:w===exports.AnomalyDetectionStatusText.SCHEDULED||w===exports.AnomalyDetectionStatusText.IN_PROGRESS,startIcon:e.jsx("img",{src:"data:image/svg+xml,%3csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cg clip-path='url(%23clip0_436_182000)'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4 7.5C4 7.77614 3.77614 8 3.5 8C3.22386 8 3 7.77614 3 7.5V5.5C3 4.11929 4.11929 3 5.5 3H7.5C7.77614 3 8 3.22386 8 3.5C8 3.77614 7.77614 4 7.5 4H5.5C4.67157 4 4 4.67157 4 5.5V7.5ZM16.5 4C16.2239 4 16 3.77614 16 3.5C16 3.22386 16.2239 3 16.5 3H18.5C19.8807 3 21 4.11929 21 5.5V7.5C21 7.77614 20.7761 8 20.5 8C20.2239 8 20 7.77614 20 7.5V5.5C20 4.67157 19.3284 4 18.5 4H16.5ZM20 16.5C20 16.2239 20.2239 16 20.5 16C20.7761 16 21 16.2239 21 16.5V18.5C21 19.8807 19.8807 21 18.5 21H16.5C16.2239 21 16 20.7761 16 20.5C16 20.2239 16.2239 20 16.5 20H18.5C19.3284 20 20 19.3284 20 18.5V16.5ZM7.5 20C7.77614 20 8 20.2239 8 20.5C8 20.7761 7.77614 21 7.5 21H5.5C4.11929 21 3 19.8807 3 18.5V16.5C3 16.2239 3.22386 16 3.5 16C3.77614 16 4 16.2239 4 16.5V18.5C4 19.3284 4.67157 20 5.5 20H7.5Z' fill='white'/%3e%3cpath d='M12 7L12 9' stroke='white' stroke-linecap='round'/%3e%3cpath d='M12 15L12 17' stroke='white' stroke-linecap='round'/%3e%3cpath d='M7 12L9 12' stroke='white' stroke-linecap='round'/%3e%3cpath d='M15 12L17 12' stroke='white' stroke-linecap='round'/%3e%3ccircle cx='12' cy='12' r='3.5' stroke='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath id='clip0_436_182000'%3e%3crect width='24' height='24' fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",alt:"Detection Icon"})},{children:"Run Detection"})),Q!==exports.InsightsTabs.METRICS&&e.jsxs(e.Fragment,{children:[e.jsx(Rl,ot({className:dt(f.selectBox,f.overrideMuiInput),"data-testid":"PrimaryDashboardTimeFilterSelect",value:Y},{children:nW.map((function(t){return e.jsx(r.MenuItem,ot({value:t.value,onClick:function(e){!function(e){var t,n;z(e);var r=new URLSearchParams(window.location.search);e===eW.CUSTOM?(r.set("startTime",null===(t=null==j?void 0:j.start)||void 0===t?void 0:t.toISOString()),r.set("endTime",null===(n=null==j?void 0:j.end)||void 0===n?void 0:n.toISOString())):(r.delete("startTime"),r.delete("endTime")),r.set("duration",e),window.history.pushState({},"","".concat(window.location.pathname,"?").concat(r.toString()))}(t.value)},className:dt(f.menuItem,f.regularText)},{children:t.label}),"duration-".concat(t.label))}))})),Y===eW.CUSTOM&&e.jsxs(e.Fragment,{children:[e.jsx(r.Box,ot({className:f.startDatePickerBox},{children:e.jsx(Ff,{className:f.dateTimePicker,dateTimeLabel:"",value:B.start,defaultDateTimeValue:B.start,onChange:function(e){var t=new Date(e.target.value);L((function(e){return ot(ot({},e),{start:t})}));var n=new URLSearchParams(window.location.search);n.set("startTime",t.toISOString()),window.history.pushState({},"","".concat(window.location.pathname,"?").concat(n.toString()))}})})),e.jsx(r.Box,ot({className:dt(Tf(P)&&f.endDatePickerBox)},{children:e.jsx(Ff,{className:dt(Tf(P)?f.dateTimePickerEnd:f.dateTimePicker),dateTimeLabel:"",defaultDateTimeValue:B.end,value:B.end,onChange:function(e){var t=new Date(e.target.value);L((function(e){return ot(ot({},e),{end:t})}));var n=new URLSearchParams(window.location.search);n.set("endTime",t.toISOString()),window.history.pushState({},"","".concat(window.location.pathname,"?").concat(n.toString()))},errorMsg:P})}))]})]})]})),e.jsx(r.Box,ot({mt:2},{children:e.jsx(Ebe,{startTime:E,endTime:M,universeUuid:l,appName:u,timezone:s,isAshEnabled:!!ee,isAshSupported:!!te,apiUrl:c,universeData:null==Z?void 0:Z.data,onClickShowMoreAnomalies:re,onPlotlyDateSelect:function(e,t){var n=new Date(e),r=new Date(t);z(eW.CUSTOM),L({start:new Date(e),end:new Date(t)});var i=new URLSearchParams(window.location.search);i.set("startTime",n.toISOString()),i.set("endTime",r.toISOString()),i.set("duration",eW.CUSTOM),window.history.pushState({},"","".concat(window.location.pathname,"?").concat(i.toString()))},onSelectedIssue:d,onSelectedQuery:h,notifyTabChange:function(e){$(e)}})}))]})),Tf(G)&&e.jsx(Dbe,{onClickShowMoreAnomalies:re,showMoreAnomalyCategory:G,startTime:E,endTime:M,universeUuid:l,appName:u,apiUrl:c,onSelectedIssue:d})]})]})})},exports.QUERY_DETAILS=oW,exports.QUERY_REQUEST_GRAPHS=Wz,exports.REACT_APP_API_URL=tq,exports.REGION_TAG=cW,exports.RUNTIME_CONFIG_KEYS=Kz,exports.RuntimeConfigs=function(i){var o=i.apiUrl,a=i.appName,s=i.toast,l=Nbe(),u=gW(),c=n.useQueryClient(),d=t.useState(""),h=d[0],p=d[1],f=t.useState([]),m=f[0],v=f[1],g=t.useState(Qz[0]),y=g[0],b=g[1],w=t.useState(0),x=w[0],_=w[1],S=t.useState(!1),k=S[0],T=S[1],C=t.useState(!1),E=C[0],O=C[1],D=t.useState(null),M=D[0],A=D[1],I=n.useQuery([exports.QUERY_KEY.fetchRuntimeConfigs],(function(){return iq.fetchRuntimeConfigs(Xz,o)}),{onSuccess:function(e){v(e)}}),P=I.isLoading,R=I.isError,N=I.isIdle,j=I.refetch,L=function(){st(void 0,void 0,void 0,(function(){return lt(this,(function(e){switch(e.label){case 0:return c.invalidateQueries(exports.QUERY_KEY.fetchRuntimeConfigs),[4,j()];case 1:return e.sent(),[2]}}))}))},F=[{name:"path",label:"Config Key",options:{sort:!0,filter:!0,customBodyRender:function(t,n){var i=n.rowIndex;return e.jsxs(r.Box,{children:[e.jsx("span",{children:m[i].path}),e.jsx(r.Tooltip,ot({title:m[i].description,arrow:!0,placement:"top",className:l.tooltip},{children:e.jsx("img",{src:lye,alt:"info"})}))]})}}},{name:"description",label:"Config Description",options:{sort:!0,filter:!0}},{name:"value",label:"Config Value",options:{sort:!0,filter:!0,customBodyRender:function(t,n){var i=n.rowIndex;return e.jsx(r.Box,{children:e.jsx("span",ot({className:m[i].overriden?l.textColor:""},{children:m[i].value}))})}}},{name:"actions",label:"Actions",options:{sort:!0,filter:!0,customBodyRender:function(t,n){var r=n.rowIndex;return e.jsxs(e.Fragment,{children:[e.jsx(Ni,ot({size:"medium",variant:"pill",onClick:function(){return function(e){A(e),T(!0)}(m[r])}},{children:e.jsx("span",ot({style:{color:"#303A78",textDecoration:"underline"}},{children:"Update"}))})),e.jsx(Ni,ot({size:"medium",onClick:function(){return function(e){A(e),O(!0)}(m[r])}},{children:e.jsx("span",ot({style:{color:"#303A78",textDecoration:"underline"}},{children:"Reset"}))}))]})}}}];return e.jsxs(r.Box,ot({mt:2,ml:4,className:l.overrideMuiTableContainer},{children:[e.jsx(r.Typography,ot({variant:"h4"},{children:"Global Runtime Configurations"})),P&&e.jsx(r.Box,ot({className:u.loadingBox},{children:e.jsx(Uq,{className:dt(u.icon,u.inProgressIcon)})})),(R||N&&null===m)&&e.jsxs(r.Box,ot({className:u.recommendation},{children:[(a===exports.AppName.YBA||a===exports.AppName.WEB)&&e.jsx(Xa,{customErrorMessage:"Failed to fetch anomalies list, please try again."}),a===exports.AppName.YBM&&e.jsx(Nl,{text:"Failed to fetch anomalies list, please try again."})]})),e.jsx(r.Box,ot({display:"flex",flexDirection:"row-reverse",alignSelf:"center",mt:2},{children:e.jsx(Ja,{placeholder:"Search",className:l.searchBox,onChange:function(e){return p(e.target.value)},value:h,inputProps:{"data-testid":"RuntimeConfigsSearchInput"}})})),Sf(m)&&e.jsx(r.Box,ot({mt:2},{children:e.jsx(Sz,{title:"Runtime Configuration Variables",className:l.overrideMuiTable,data:m,columns:F,options:{filter:!0,selectableRowsOnClick:!1,rowHover:!0,rowsPerPage:y,page:x,onChangePage:function(e){return _(e)},onChangeRowsPerPage:function(e){b(e),_(0)},searchText:h,customSearch:function(e,t){for(var n=function(n){var r=String(t[n]).toLocaleLowerCase();if(r.includes(e.toLocaleLowerCase()))return{value:!0};if(n===t.length-1){var i=e.split(" ").filter(Boolean),o=0;return{value:i.every((function(e){var t=r.indexOf(e.toLocaleLowerCase(),o);return t>-1&&(o=t+e.length,!0)}))}}},r=1;r<t.length;r++){var i=n(r);if("object"==typeof i)return i.value}return!1},rowsPerPageOptions:Qz}})})),k&&M&&e.jsx(Rbe,{open:k,data:M,apiUrl:o,onActionPerformed:L,onClose:function(){T(!1)},toast:s}),E&&M&&e.jsx(Ibe,{open:E,data:M,apiUrl:o,onActionPerformed:L,onClose:function(){O(!1)},toast:s})]}))},exports.SplitMode=Pz,exports.SplitType=Rz,exports.TABLET_REQUEST_GRAPHS=Vz,exports.TABLET_TAG=lW,exports.TABLE_REQUEST_GRAPHS=["table_scan_ops","table_tup_read_ops","table_write_ops"],exports.TABLE_TAG=sW,exports.TIME_FILTER_LABEL=eW,exports.TIME_FILTER_VALUES=tW,exports.TroubleshootAPI=iq,exports.USER_TAG="User",exports.YBAlert=Ba,exports.YBButton=Ni,exports.YBCheckbox=Ll,exports.YBCheckboxField=NW,exports.YBCodeBlock=function(n){var i=n.showCopyButton;n.analyticsEventProps;var o=n.multiBlock,a=n.text,s=n.codeClassName,l=n.preClassName,u=n.lang,c=n.containerClassName,d=n.dataTestId,h=za(),p=to().t,f=t.useRef(null),m=t.useState(!1),v=m[0],g=m[1],y=t.useState(!1),b=y[0],w=y[1],x=Li().addToast,_=null!=u?u:"language-plaintext";t.useEffect((function(){fa.highlightAll()}),[a]),t.useLayoutEffect((function(){if(f.current){var e=f.current,t=e.scrollHeight,n=e.clientHeight;w(t>n)}}),[a]);var S,k=function(e){return st(void 0,void 0,void 0,(function(){return lt(this,(function(t){switch(t.label){case 0:return[4,navigator.clipboard.writeText(e)];case 1:return t.sent(),x(exports.AlertVariant.Success,p("common.copyCodeSuccess"),2e3),[2]}}))}))},T=function(e){return st(void 0,void 0,void 0,(function(){var t,n;return lt(this,(function(r){switch(r.label){case 0:return[4,k(null===(n=(null===(t=null==e?void 0:e.currentTarget)||void 0===t?void 0:t.previousSibling).innerText)||void 0===n?void 0:n.replace(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/g,"$'"))];case 1:return r.sent(),[2]}}))}))};return e.jsx(r.Box,ot({className:dt(h.queryBlock,c),"data-testid":null!=d?d:""},{children:o&&Array.isArray(a)?a.map((function(t,n){return e.jsxs("pre",ot({className:dt(h.queryCode,h.queryHoverBlock,l)},{children:[e.jsx("code",ot({className:dt(h.queryInnerBlock,s,_)},{children:t})),i&&e.jsx(Ni,ot({variant:"ghost",className:dt(h.queryCopyButton,h.queryInlineButton,"yb-copy-btn"),onClick:T},{children:p("common.copy")}))]}),"code-block-line-".concat(String(n+1)))})):e.jsx("div",{children:e.jsxs("pre",ot({className:dt(h.queryCode,l)},{children:[e.jsx("code",ot({className:dt(h.queryInnerBlock,s,_,v?h.queryExpanded:h.queryCollapsed),id:"tp-code-block",ref:f},{children:"string"==typeof a?(S=a,S.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")):a})),b&&e.jsx("div",ot({className:dt(h.queryToggleButton),onClick:function(){g(!v)}},{children:v?"Show Less":"Show More"})),i&&e.jsx(r.IconButton,ot({className:dt(h.queryCopyIcon),onClick:function(){var e,t,n;return k(null!==(n=null===(t=null===(e=null==f?void 0:f.current)||void 0===e?void 0:e.innerText)||void 0===t?void 0:t.replace(/\/\*[\s\S]*?\*\/|([^\\:]|^)\/\/.*$/g,"$'"))&&void 0!==n?n:"")}},{children:e.jsx(Ha,{})}))]}))})}))},exports.YBCodeBlockCopy=qa,exports.YBDateTimePicker=Ff,exports.YBErrorIndicator=Xa,exports.YBInfinitePagination=qf,exports.YBInput=Ja,exports.YBInputField=El,exports.YBLabel=Za,exports.YBModal=zf,exports.YBPagination=Gf,exports.YBPanelItem=$f,exports.YBSelect=Rl,exports.YBTable=Sz,exports.YBToggle=SW,exports.YBToggleField=kW,exports.YBTooltip=Il,exports.ZONE_TAG=dW,exports.ZoneNodeSelector=IW,exports.divideYAxisByThousand=Mf,exports.filterDurations=rW,exports.getCustomFooterComponent=vW,exports.getRowCellComponent=wW,exports.isDefinedNotNull=xf,exports.isEmptyArray=_f,exports.isEmptyObject=function(e){return void 0===e||Zd(e)&&0===Object.keys(e).length},exports.isEmptyString=Cf,exports.isNonEmptyArray=Sf,exports.isNonEmptyObject=kf,exports.isNonEmptyString=Tf,exports.isNullOrEmpty=function(e){return null==e||Zd(e)&&0===Object.keys(e).length},exports.isValidObject=Ef,exports.isYAxisGreaterThanThousand=Df,exports.metricOutlierSelectors=zz,exports.metricSplitSelectors=Yz,exports.removeNullProperties=Of,exports.timeFormatXAxis=Af,exports.useCodeBlockStyles=Qa;
23
+ //# sourceMappingURL=index.js.map