Release v23.044 (from fd133747)

This commit is contained in:
jenkins
2023-02-02 13:31:14 +00:00
parent d6f0df64d2
commit a1183587d0
731 changed files with 2618 additions and 1297 deletions

View File

@@ -0,0 +1,16 @@
(self.webpackChunktradingview=self.webpackChunktradingview||[]).push([[1859],{45228:e=>{e.exports={calendar:"calendar-wVs9kh0I"}},55400:e=>{e.exports={row:"row-9XF0QIKT",mobileRow:"mobileRow-9XF0QIKT"}},26074:e=>{e.exports={dialogWrapper:"dialogWrapper-70bfoXiO",dialogWrapperSmall:"dialogWrapperSmall-70bfoXiO",tabs:"tabs-70bfoXiO",content:"content-70bfoXiO",contentMobile:"contentMobile-70bfoXiO",bodyWrapper:"bodyWrapper-70bfoXiO"}},96746:e=>{e.exports={"tablet-normal-breakpoint":"screen and (max-width: 768px)","small-height-breakpoint":"screen and (max-height: 360px)","tablet-small-breakpoint":"screen and (max-width: 428px)"}},34020:e=>{e.exports={container:"container-tZN1pb1A",icon:"icon-tZN1pb1A",tooltip:"tooltip-tZN1pb1A",date:"date-tZN1pb1A",time:"time-tZN1pb1A"}},93632:e=>{e.exports={tooltip:"tooltip-QKiUU4Ng"}},64886:e=>{e.exports={slider:"slider-Q7h4o6oW",inner:"inner-Q7h4o6oW"}},42545:e=>{e.exports={scrollWrap:"scrollWrap-VabV7Fn8",tabsWrap:"tabsWrap-VabV7Fn8",tabs:"tabs-VabV7Fn8",withoutBorder:"withoutBorder-VabV7Fn8",tab:"tab-VabV7Fn8",withHover:"withHover-VabV7Fn8",headerBottomSeparator:"headerBottomSeparator-VabV7Fn8",fadeWithoutSlider:"fadeWithoutSlider-VabV7Fn8",withBadge:"withBadge-VabV7Fn8"}},41814:e=>{e.exports={wrap:"wrap-sfzcrPlH",wrapWithArrowsOuting:"wrapWithArrowsOuting-sfzcrPlH",wrapOverflow:"wrapOverflow-sfzcrPlH",scrollWrap:"scrollWrap-sfzcrPlH",noScrollBar:"noScrollBar-sfzcrPlH",icon:"icon-sfzcrPlH",scrollLeft:"scrollLeft-sfzcrPlH",scrollRight:"scrollRight-sfzcrPlH",isVisible:"isVisible-sfzcrPlH",iconWrap:"iconWrap-sfzcrPlH",fadeLeft:"fadeLeft-sfzcrPlH",fadeRight:"fadeRight-sfzcrPlH"}},88722:e=>{e.exports={wrap:"wrap-TyQYOCnx",input:"input-TyQYOCnx"}},24451:e=>{e.exports={icon:"icon-P882WPW5"}},23576:e=>{e.exports={"tablet-small-breakpoint":"screen and (max-width: 428px)",item:"item-4TFSfyGO",hovered:"hovered-4TFSfyGO",isDisabled:"isDisabled-4TFSfyGO",isActive:"isActive-4TFSfyGO",shortcut:"shortcut-4TFSfyGO",toolbox:"toolbox-4TFSfyGO",withIcon:"withIcon-4TFSfyGO",icon:"icon-4TFSfyGO",labelRow:"labelRow-4TFSfyGO",label:"label-4TFSfyGO",showOnHover:"showOnHover-4TFSfyGO"}},37740:e=>{e.exports={tabs:"tabs-rKFlMYkc",tab:"tab-rKFlMYkc",noBorder:"noBorder-rKFlMYkc",disabled:"disabled-rKFlMYkc",active:"active-rKFlMYkc",defaultCursor:"defaultCursor-rKFlMYkc",slider:"slider-rKFlMYkc",content:"content-rKFlMYkc"}},9837:function(e,t,n){var r,o,i;e.exports=(r=n(59496),o=n(87995),i=n(59255),function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="dist/",t(0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(1));t.default=r.default,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(2),a=(r(i),n(3)),s=r(a),l=r(n(13)),c=r(n(14)),u=r(n(15)),f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.measure=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin;if(n.props.shouldMeasure){n._node.parentNode||n._setDOMNode();var t=n.getDimensions(n._node,e),r="function"==typeof n.props.children;n._propsToMeasure.some((function(e){if(t[e]!==n._lastDimensions[e])return n.props.onMeasure(t),r&&void 0!==n&&n.setState({dimensions:t}),n._lastDimensions=t,!0}))}},n.state={dimensions:{width:0,height:0,top:0,right:0,bottom:0,left:0}},n._node=null,n._propsToMeasure=n._getPropsToMeasure(e),n._lastDimensions={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){var e=this;this._setDOMNode(),this.measure(),this.resizeObserver=new c.default((function(){return e.measure()})),this.resizeObserver.observe(this._node)}},{key:"componentWillReceiveProps",value:function(e){var t=(e.config,e.whitelist),n=e.blacklist;this.props.whitelist===t&&this.props.blacklist===n||(this._propsToMeasure=this._getPropsToMeasure({whitelist:t,blacklist:n}))}},{key:"componentWillUnmount",value:function(){this.resizeObserver.disconnect(this._node),this._node=null}},{key:"_setDOMNode",value:function(){this._node=l.default.findDOMNode(this)}},{key:"getDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._node,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.includeMargin;return(0,u.default)(e,{margin:t})}},{key:"_getPropsToMeasure",value:function(e){var t=e.whitelist,n=e.blacklist;return t.filter((function(e){return n.indexOf(e)<0}))}},{key:"render",value:function(){var e=this.props.children;return i.Children.only("function"==typeof e?e(this.state.dimensions):e)}}]),t}(i.Component);f.propTypes={whitelist:s.default.array,blacklist:s.default.array,includeMargin:s.default.bool,useClone:s.default.bool,cloneOptions:s.default.object,shouldMeasure:s.default.bool,onMeasure:s.default.func},f.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=f,e.exports=t.default},function(e,t){e.exports=r},function(e,t,n){(function(t){
"use strict";var r="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};if("production"!==t.env.NODE_ENV){var o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(5)((function(e){return"object"===(void 0===e?"undefined":r(e))&&null!==e&&e.$$typeof===o}),!0)}else e.exports=n(12)()}).call(t,n(4))},function(e,t){"use strict";function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function i(){h&&d&&(h=!1,d.length?p=d.concat(p):m=-1,p.length&&a())}function a(){if(!h){var e=o(i);h=!0;for(var t=p.length;t;){for(d=p,p=[];++m<t;)d&&d[m].run();m=-1,t=p.length}d=null,h=!1,function(e){if(u===clearTimeout)return clearTimeout(e);if((u===r||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(e);try{u(e)}catch(t){try{return u.call(null,e)}catch(t){return u.call(this,e)}}}(e)}}function s(e,t){this.fun=e,this.array=t}function l(){}var c,u,f=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{u="function"==typeof clearTimeout?clearTimeout:r}catch(e){u=r}}();var d,p=[],h=!1,m=-1;f.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];p.push(new s(e,t)),1!==p.length||h||o(a)},s.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=l,f.addListener=l,f.once=l,f.off=l,f.removeListener=l,f.removeAllListeners=l,f.emit=l,f.prependListener=l,f.prependOnceListener=l,f.listeners=function(e){return[]},f.binding=function(e){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(e){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(e,t,n){(function(t){"use strict";var r="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},o=n(6),i=n(7),a=n(8),s=n(9),l=n(10),c=n(11);e.exports=function(e,n){function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function f(e){this.message=e,this.stack=""}function d(e){function r(r,c,u,d,p,h,m){if(d=d||w,h=h||u,m!==l)if(n)i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=d+":"+u
;!o[v]&&s<3&&(a(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",h,d),o[v]=!0,s++)}return null==c[u]?r?new f(null===c[u]?"The "+p+" `"+h+"` is marked as required in `"+d+"`, but its value is `null`.":"The "+p+" `"+h+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(c,u,d,p,h)}if("production"!==t.env.NODE_ENV)var o={},s=0;var c=r.bind(null,!1);return c.isRequired=r.bind(null,!0),c}function p(e){return d((function(t,n,r,o,i,a){var s=t[n];return m(s)!==e?new f("Invalid "+o+" `"+i+"` of type `"+v(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function h(t){switch(void 0===t?"undefined":r(t)){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(h);if(null===t||e(t))return!0;var n=function(e){var t=e&&(g&&e[g]||e[y]);if("function"==typeof t)return t}(t);if(!n)return!1;var o,i=n.call(t);if(n!==t.entries){for(;!(o=i.next()).done;)if(!h(o.value))return!1}else for(;!(o=i.next()).done;){var a=o.value;if(a&&!h(a[1]))return!1}return!0;default:return!1}}function m(e){var t=void 0===e?"undefined":r(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}var g="function"==typeof Symbol&&Symbol.iterator,y="@@iterator",w="<<anonymous>>",E={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:d(o.thatReturnsNull),arrayOf:function(e){return d((function(t,n,r,o,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new f("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected an array.");for(var s=0;s<a.length;s++){var c=e(a,s,r,o,i+"["+s+"]",l);if(c instanceof Error)return c}return null}))},element:d((function(t,n,r,o,i){var a=t[n];return e(a)?null:new f("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return d((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||w;return new f("Invalid "+o+" `"+i+"` of type `"+function(e){return e.constructor&&e.constructor.name?e.constructor.name:w}(t[n])+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}return null}))},node:d((function(e,t,n,r,o){return h(e[t])?null:new f("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),
objectOf:function(e){return d((function(t,n,r,o,i){if("function"!=typeof e)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],s=m(a);if("object"!==s)return new f("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var u=e(a,c,r,o,i+"."+c,l);if(u instanceof Error)return u}return null}))},oneOf:function(e){return Array.isArray(e)?d((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(u(a,e[s]))return null;return new f("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOf, expected an instance of array."),o.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&a(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),o.thatReturnsNull;for(var n=0;n<e.length;n++){var r=e[n];if("function"!=typeof r)return a(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",b(r),n),o.thatReturnsNull}return d((function(t,n,r,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,l))return null;return new f("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return d((function(t,n,r,o,i){var a=t[n],s=m(a);if("object"!==s)return new f("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var u=e[c];if(u){var d=u(a,c,r,o,i+"."+c,l);if(d)return d}}return null}))},exact:function(e){return d((function(t,n,r,o,i){var a=t[n],c=m(a);if("object"!==c)return new f("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");var u=s({},t[n],e);for(var d in u){var p=e[d];if(!p)return new f("Invalid "+o+" `"+i+"` key `"+d+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=p(a,d,r,o,i+"."+d,l);if(h)return h}return null}))}};return f.prototype=Error.prototype,E.checkPropTypes=c,E.PropTypes=E,E}}).call(t,n(4))},function(e,t){"use strict";function n(e){return function(){return e}}var r=function(){};r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t,n){(function(t){"use strict";var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,o,i,a,s,l){if(n(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,o,i,a,s,l],f=0;(c=new Error(t.replace(/%s/g,(function(){return u[f++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}}).call(t,n(4))},function(e,t,n){(function(t){"use strict";var r=n(6);if("production"!==t.env.NODE_ENV){
var o=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(4))},function(e,t){"use strict";function n(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;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(e,t){for(var a,s,l=n(e),c=1;c<arguments.length;c++){for(var u in a=Object(arguments[c]))o.call(a,u)&&(l[u]=a[u]);if(r){s=r(a);for(var f=0;f<s.length;f++)i.call(a,s[f])&&(l[s[f]]=a[s[f]])}}return l}},function(e,t){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){"use strict";var r="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};if("production"!==t.env.NODE_ENV)var o=n(7),i=n(8),a=n(10),s={};e.exports=function(e,n,l,c,u){if("production"!==t.env.NODE_ENV)for(var f in e)if(e.hasOwnProperty(f)){var d;try{o("function"==typeof e[f],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",l,f,r(e[f])),d=e[f](n,f,c,l,null,a)}catch(e){d=e}if(i(!d||d instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",l,f,void 0===d?"undefined":r(d)),d instanceof Error&&!(d.message in s)){s[d.message]=!0;var p=u?u():"";i(!1,"Failed %s type: %s%s",l,d.message,null!=p?p:"")}}}}).call(t,n(4))},function(e,t,n){"use strict";var r=n(6),o=n(7),i=n(10);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,
number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t){e.exports=o},function(e,t){e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getBoundingClientRect(),o=void 0,i=void 0,a=void 0;return t.margin&&(a=(0,r.default)(getComputedStyle(e))),t.margin?(o=a.left+n.width+a.right,i=a.top+n.height+a.bottom):(o=n.width,i=n.height),{width:o,height:i,top:n.top,right:n.right,bottom:n.bottom,left:n.left}};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(16));e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{top:n((e=e||{}).marginTop),right:n(e.marginRight),bottom:n(e.marginBottom),left:n(e.marginLeft)}};var n=function(e){return parseInt(e)||0};e.exports=t.default}]))},50773:(e,t,n)=>{"use strict";n.r(t),n.d(t,{showGoToDateDialog:()=>le});var r=n(59496),o=n(87995),i=n(88537),a=n(82992),s=n(23935),l=n(51826),c=n(10480),u=n.n(c);const f=r.createContext(null);function d(e){const{initialGoToDate:t,children:n}=e,[o,i]=(0,r.useState)(t),a=o.valueOf()<=(0,s.resetToDayEnd)(new Date).valueOf(),l=(0,r.useMemo)(()=>({date:o,setDate:i,isValid:a}),[o,a]);return r.createElement(f.Provider,{value:l},n)}const p=r.createContext(null);function h(e){const{initialRanges:t,children:n}=e,[o,i]=(0,r.useState)(t.from),[a,s]=(0,r.useState)(t.to),l=o.valueOf()<=a.valueOf(),c=(0,r.useMemo)(()=>({dateFrom:o,dateTo:a,setDateFrom:i,setDateTo:s,isValid:l}),[o,a,l]);return r.createElement(p.Provider,{value:c},n)}var m=n(28353),v=n(97754),b=n.n(v),g=n(76422),y=n(56840),w=n.n(y),E=n(52092),S=n(24437),O=n(50182),T=n(55400);function N(e){const{children:t}=e;return r.createElement("div",{className:b()(T.row,Q&&T.mobileRow)},t)}var D=n(27404),C=n(9745),_=n(78274),M=n(86623),k=n(93632);function x(e){const{className:t,text:n}=e;return r.createElement("span",{className:b()(k.tooltip,t)},n)}var R=n(56712);const P=n(34020);function F(e){const{hasErrors:t,onClick:n,errors:o,className:i,theme:a=P,...s}=e;return r.createElement("div",{className:a.container,onClick:n},r.createElement(M.FormInput,{...s,className:a.date,hasErrors:t,errors:[],endSlot:!t&&r.createElement(_.EndSlot,{icon:!0,interactive:!1},r.createElement(C.Icon,{icon:R,className:a.icon}))}),t&&r.createElement(x,{text:(0,m.t)("Please enter the right date"),className:a.tooltip}))}const I=r.createContext({isActive:!1,isFocused:!1});function V(e){const{value:t,reference:n,isActive:o,onPick:i,onFocus:a}=e,[s,l]=(0,r.useState)(!1);return r.createElement(I.Provider,{value:{isActive:o,isFocused:s}},r.createElement("div",{onFocus:function(){l(!0),a&&a()},onBlur:function(){l(!1)}},r.createElement(D.DatePicker,{initial:t,inputReference:n,InputComponent:A,withCalendar:!1,onPick:function(e){if(!e)return;i(new Date(e))},revertInvalidData:!0,name:e.name})))}function A(e){
const{isActive:t,isFocused:n}=(0,r.useContext)(I);return r.createElement(F,{...e,highlight:t||n})}var B=n(36565);function L(e){const{value:t,isDisabled:n,onPick:o}=e;return r.createElement(B.TimeInput,{value:(i=t,(0,s.twoDigitsFormat)(i.getHours())+":"+(0,s.twoDigitsFormat)(i.getMinutes())),onChange:o,disabled:n});var i}var W=n(48154),j=n(45228);function H(e){return r.createElement(W.Calendar,{...e,className:j.calendar,popupStyle:!1})}function z(e,t){const n=new Date(t);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(e.getDate()),n}function G(e,t){const n=new Date(t);return n.setHours(e.getHours()),n.setMinutes(e.getMinutes()),n}function U(e){const{dateOnly:t,onCalendarMonthSwitch:n}=e,{date:o,setDate:a}=(0,i.ensureNotNull)((0,r.useContext)(f)),s=(0,r.useRef)(null),l=(0,r.useRef)(null);return(0,r.useEffect)(()=>{Q||null===l.current||l.current.focus()},[]),r.createElement("div",{ref:s,tabIndex:-1},r.createElement(N,null,r.createElement(V,{reference:function(e){l.current=e},value:new Date(o),onPick:function(e){const t=z(e,o);a(t)},isActive:!Q}),r.createElement(L,{value:new Date(o),isDisabled:t,onPick:function(e){var t;const[n,r]=e.split(":"),i=new Date;i.setHours(Number(n)),i.setMinutes(Number(r));const l=G(i,o);a(l),Q||null===(t=s.current)||void 0===t||t.focus({preventScroll:!0})}})),!Q&&r.createElement(H,{key:`${o.getFullYear()}-${o.getMonth()}-${o.getDate()}`,selectedDate:new Date(o),onSelect:function(e){var t;const n=z(e,o);a(n),null===(t=s.current)||void 0===t||t.focus({preventScroll:!0})},onMonthSwitch:n,maxDate:new Date}))}function Y(e){const{dateOnly:t,onCalendarMonthSwitch:n,onDateInputFocus:o}=e,{dateFrom:a,dateTo:s,setDateFrom:l,setDateTo:c}=(0,i.ensureNotNull)((0,r.useContext)(p)),[u,f]=(0,r.useState)("from"),d=(0,r.useRef)(null),h=(0,r.useRef)(null),m=(0,r.useRef)(null),v=(0,r.useMemo)(()=>"from"===u?new Date(a):new Date(s),[u,s,a]);return(0,r.useEffect)(()=>{Q||null===h.current||h.current.focus()},[]),r.createElement("div",{ref:d,tabIndex:-1},r.createElement(N,null,r.createElement(V,{value:a,reference:function(e){h.current=e},isActive:!Q&&"from"===u,onPick:function(e){const t=z(e,a);l(t)},onFocus:function(){f("from"),o()},name:"start-date-range"}),r.createElement(L,{value:a,isDisabled:t,onPick:function(e){b(e,a,l)}})),r.createElement(N,null,r.createElement(V,{value:s,reference:function(e){m.current=e},isActive:!Q&&"to"===u,onPick:function(e){const t=z(e,s);c(t)},onFocus:function(){f("to"),o()},name:"end-date-range"}),r.createElement(L,{value:s,isDisabled:t,onPick:function(e){b(e,s,c)}})),!Q&&r.createElement(H,{key:`${v.getFullYear()}-${v.getMonth()}-${v.getDate()}`,selectedDate:new Date(v),onSelect:function(e){const t=z(e,"from"===u?a:s);({from:()=>{var e;l(t),null===(e=m.current)||void 0===e||e.focus({preventScroll:!0})},to:()=>{var e;c(t),null===(e=d.current)||void 0===e||e.focus({preventScroll:!0})}})[u]()},onMonthSwitch:n,highlightedFrom:new Date(a),highlightedTo:new Date(s),maxDate:"from"===u?new Date(s):void 0,minDate:"to"===u?new Date(a):void 0}));function b(e,t,n){var r
;const[o,i]=e.split(":"),a=new Date;a.setHours(Number(o)),a.setMinutes(Number(i));n(G(a,t)),Q||null===(r=d.current)||void 0===r||r.focus({preventScroll:!0})}}var $=n(31807),K=n(90692),q=n(32563),X=n(26074);const Q=q.mobiletouch,Z=()=>!0,J={byId:{Date:{title:(0,m.t)("Date")},CustomRange:{title:(0,m.t)("Custom range")}},allIds:["Date","CustomRange"]};function ee(e){const{dateOnly:t,onClose:n,onGoToDate:o,onGoToRange:a}=e,s=(0,r.useRef)(null),[l,c]=(0,r.useState)(w().getValue("GoToDialog.activeTab","Date")),[u,d]=(0,r.useState)(0),{date:h,isValid:v}=(0,i.ensureNotNull)((0,r.useContext)(f)),{dateFrom:y,dateTo:T,isValid:N}=(0,i.ensureNotNull)((0,r.useContext)(p));return(0,r.useEffect)(()=>(g.subscribe(E.CLOSE_POPUPS_AND_DIALOGS_COMMAND,M,null),()=>{g.unsubscribe(E.CLOSE_POPUPS_AND_DIALOGS_COMMAND,M,null)}),[n]),(0,r.useEffect)(()=>{null!==s.current&&s.current()},[u,l,h,y,T]),r.createElement(K.MatchMedia,{rule:S.DialogBreakpoints.TabletSmall},e=>r.createElement(O.AdaptiveConfirmDialog,{className:b()(X.dialogWrapper,e&&X.dialogWrapperSmall),title:(0,m.t)("Go to"),dataName:"go-to-date-dialog",render:D,defaultActionOnClose:"cancel",onClose:M,onClickOutside:M,onCancel:M,onSubmit:_,submitButtonDisabled:C(),submitButtonText:(0,m.t)("Go to"),forceCloseOnEsc:Z,shouldForceFocus:!1,fullScreen:e,isOpened:!0}));function D({requestResize:e}){return s.current=e,r.createElement(r.Fragment,null,r.createElement("div",{className:X.tabs},r.createElement($.DialogTabs,{activeTabId:l,tabs:J,onSelect:k})),r.createElement("div",{className:b()(X.content,Q&&X.contentMobile)},r.createElement("div",{className:X.bodyWrapper},r.createElement(te,{onCalendarMonthSwitch:x,onDateInputFocus:x,activeTab:l,dateOnly:t}))))}function C(){return{CustomRange:!N,Date:!v}[l]}function _(){switch(l){case"Date":o(h);break;case"CustomRange":a(y,T)}}function M(){n()}function k(e){c(e),w().setValue("GoToDialog.activeTab",e)}function x(){d(u+1)}}function te(e){const{activeTab:t,dateOnly:n,onCalendarMonthSwitch:o,onDateInputFocus:i}=e;switch(t){case"Date":return r.createElement(U,{dateOnly:n,onCalendarMonthSwitch:o});case"CustomRange":return r.createElement(Y,{dateOnly:n,onCalendarMonthSwitch:o,onDateInputFocus:i})}}function ne(e){const{dateOnly:t,onClose:n,onGoToDate:o,onGoToRange:i,initialGoToDate:a,initialRanges:s}=e;return r.createElement(d,{initialGoToDate:a},r.createElement(h,{initialRanges:s},r.createElement(ee,{dateOnly:t,onClose:n,onGoToDate:o,onGoToRange:i})))}var re=n(9315),oe=n(71053);const ie=new class{constructor(){this._hasError=!1}getItemOrDefault(e,t){return!sessionStorage||this._hasError?t:sessionStorage.getItem(e)}setItem(e,t="true"){try{sessionStorage.setItem(e,t),this._hasError=!1}catch(e){this._hasError=!0}}};var ae=n(27365);const se=new l.DialogsOpenerManager;function le(e){if(se.isOpened("goTo"))return;if(!e.hasModel())return;const t=e.model(),n=document.createElement("div"),i=r.createElement(ne,{onClose:l,dateOnly:t.model().mainSeries().isDWM(),initialGoToDate:ce(),initialRanges:ue(e),onGoToDate:e=>{!function(e,t){
ie.setItem("goToDateTabLastPickedDate",String(t.valueOf()));if(void 0===e.model().timeScale().tickMarks().minIndex)return;const n=(0,s.addLocalTime)(t).valueOf();e.model().gotoTime(n).then(t=>{const n=e.model().mainSeries();void 0===t?n.clearGotoDateResult():n.setGotoDateResult(t)})}(t,e),l()},onGoToRange:(t,n)=>{!function(e,t,n){const r=(0,ae.getTimezoneName)(e.model());if(!r)return;const o=a.linking.interval.value(),i=o&&(0,re.normalizeIntervalString)(o),l=u().get_timezone(r),f=e=>(0,c.cal_to_utc)(l,new Date(e)),d=(0,s.addLocalTime)(t).valueOf(),p=(0,s.addLocalTime)(n).valueOf(),h={val:{type:"time-range",from:f(d)/1e3,to:f(p)/1e3},res:i};e.chartWidgetCollection().setTimeFrame(h)}(e,t,n),l()}});function l(){o.unmountComponentAtNode(n),se.setAsClosed("goTo")}o.render(i,n),se.setAsOpened("goTo")}function ce(){const e=ie.getItemOrDefault("goToDateTabLastPickedDate",null);return null===e?(0,s.resetToDayStart)(new Date):new Date(Number(e))}function ue(e){const t=function(e){const t=e.model().timeScale(),n=t.visibleBarsStrictRange();if(null===n)return;const r=e.model().mainSeries(),o=r.nearestIndex(n.firstBar(),oe.PlotRowSearchMode.NearestRight),a=r.nearestIndex(n.lastBar(),oe.PlotRowSearchMode.NearestLeft);if(void 0===o||void 0===a)return;return{from:(0,i.ensureNotNull)(t.indexToUserTime(o)),to:(0,i.ensureNotNull)(t.indexToUserTime(a))}}(e);return t?{from:(0,s.subtractLocalTime)(t.from),to:(0,s.subtractLocalTime)(t.to)}:{from:(0,s.subtractLocalTime)(new Date),to:(0,s.subtractLocalTime)(new Date)}}},24437:(e,t,n)=>{"use strict";n.d(t,{DialogBreakpoints:()=>o});var r=n(96746);const o={SmallHeight:r["small-height-breakpoint"],TabletSmall:r["tablet-small-breakpoint"],TabletNormal:r["tablet-normal-breakpoint"]}},27365:(e,t,n)=>{"use strict";n.d(t,{getTimezoneName:()=>r});n(10480);function r(e){const t=e.model().timezone();if("exchange"!==t)return t;const n=e.model().mainSeries().symbolInfo();return null==n?void 0:n.timezone}},51826:(e,t,n)=>{"use strict";n.d(t,{DialogsOpenerManager:()=>r,dialogsOpenerManager:()=>o});class r{constructor(){this._storage=new Map}setAsOpened(e,t){this._storage.set(e,t)}setAsClosed(e){this._storage.delete(e)}isOpened(e){return this._storage.has(e)}getDialogPayload(e){return this._storage.get(e)}}const o=new r},31807:(e,t,n)=>{"use strict";n.d(t,{DialogTabs:()=>h});var r=n(59496),o=n(97754),i=n(64205),a=n(40173),s=n(64886);const l=(0,a.mergeThemes)(i.DEFAULT_SLIDER_THEME,s);var c=n(39440),u=n(32563),f=n(42545);const d=f,p=(0,i.factory)((function(e){return r.createElement("div",{className:l.slider,ref:e.reference},r.createElement("div",{className:l.inner}))}));class h extends r.PureComponent{constructor(){super(...arguments),this._createClickHandler=e=>()=>{this.props.onSelect(e)}}render(){const{theme:e=d,hiddenBottomBorders:t,fadedSlider:n=!0,ScrollComponent:i=c.HorizontalScroll}=this.props,a=this._generateDialogTabs();return r.createElement("div",{className:o(e.scrollWrap)},!t&&r.createElement("div",{className:e.headerBottomSeparator}),r.createElement(i,{isVisibleFade:u.mobiletouch,
isVisibleButtons:!u.mobiletouch,isVisibleScrollbar:!1,fadeClassName:o({[e.fadeWithoutSlider]:!n})},r.createElement("div",{className:e.tabsWrap},r.createElement(p,{className:o(e.tabs,t&&e.withoutBorder)},a))))}_generateDialogTabs(){const{activeTabId:e,tabs:t,theme:n=d}=this.props;return t.allIds.map(a=>{const s=e===a,l=t.byId[a].withNotificationsBadge;return r.createElement(i.SliderItem,{key:a,value:a,className:o(n.tab,!s&&n.withHover,l&&f.withBadge),isActive:s,onClick:this._createClickHandler(a)},t.byId[a].title)})}}},39440:(e,t,n)=>{"use strict";n.d(t,{HorizontalScroll:()=>y});var r=n(59496),o=n(97754),i=n(9837),a=n(88537),s=n(9745),l=n(59199),c=n(68587),u=n(62820),f=n(33086),d=n(41814);const p={isVisibleScrollbar:!0,shouldMeasure:!0,hideButtonsFrom:1};function h(e){return r.createElement("div",{className:o(d.fadeLeft,e.className,{[d.isVisible]:e.isVisible})})}function m(e){return r.createElement("div",{className:o(d.fadeRight,e.className,{[d.isVisible]:e.isVisible})})}function v(e){return r.createElement(g,{...e,className:d.scrollLeft})}function b(e){return r.createElement(g,{...e,className:d.scrollRight})}function g(e){return r.createElement("div",{className:o(e.className,{[d.isVisible]:e.isVisible}),onClick:e.onClick},r.createElement("div",{className:d.iconWrap},r.createElement(s.Icon,{icon:f,className:d.icon})))}const y=function(e=v,t=b,n=h,s=m){var f;return(f=class extends r.PureComponent{constructor(e){super(e),this._scroll=r.createRef(),this._wrapMeasureRef=r.createRef(),this._contentMeasureRef=r.createRef(),this._handleScrollLeft=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("left");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.max(0,this.currentPosition()-e))},this._handleScrollRight=()=>{if(this.props.onScrollButtonClick)return void this.props.onScrollButtonClick("right");const e=this.props.scrollStepSize||this.state.widthWrap-50;this.animateTo(Math.min((this.state.widthContent||0)-(this.state.widthWrap||0),this.currentPosition()+e))},this._handleResizeWrap=e=>{this.props.onMeasureWrap&&this.props.onMeasureWrap(e),this.setState({widthWrap:e.width}),this._checkButtonsVisibility()},this._handleResizeContent=e=>{this.props.onMeasureContent&&this.props.onMeasureContent(e);const{shouldDecreaseWidthContent:t,buttonsWidthIfDecreasedWidthContent:n}=this.props;t&&n?this.setState({widthContent:e.width+2*n}):this.setState({widthContent:e.width})},this._handleScroll=()=>{const{onScroll:e}=this.props;e&&e(this.currentPosition(),this.isAtLeft(),this.isAtRight()),this._checkButtonsVisibility()},this._checkButtonsVisibility=()=>{const{isVisibleLeftButton:e,isVisibleRightButton:t}=this.state,n=this.isAtLeft(),r=this.isAtRight();n||e?n&&e&&this.setState({isVisibleLeftButton:!1}):this.setState({isVisibleLeftButton:!0}),r||t?r&&t&&this.setState({isVisibleRightButton:!1}):this.setState({isVisibleRightButton:!0})},this.state={widthContent:0,widthWrap:0,isVisibleRightButton:!1,isVisibleLeftButton:!1}}componentDidMount(){this._checkButtonsVisibility()}
componentDidUpdate(e,t){t.widthWrap===this.state.widthWrap&&t.widthContent===this.state.widthContent||this._handleScroll(),this.props.shouldMeasure&&this._wrapMeasureRef.current&&this._contentMeasureRef.current&&(this._wrapMeasureRef.current.measure(),this._contentMeasureRef.current.measure())}currentPosition(){return this._scroll.current?(0,u.isRtl)()?(0,u.getLTRScrollLeft)(this._scroll.current):this._scroll.current.scrollLeft:0}isAtLeft(){return!this._isOverflowed()||this.currentPosition()<=(0,a.ensureDefined)(this.props.hideButtonsFrom)}isAtRight(){return!this._isOverflowed()||this.currentPosition()+this.state.widthWrap>=this.state.widthContent-(0,a.ensureDefined)(this.props.hideButtonsFrom)}animateTo(e,t=c.dur){const n=this._scroll.current;n&&((0,u.isRtl)()&&(e=(0,u.getLTRScrollLeftOffset)(n,e)),t<=0?n.scrollLeft=Math.round(e):(0,l.doAnimate)({onStep(e,t){n.scrollLeft=Math.round(t)},from:n.scrollLeft,to:Math.round(e),easing:c.easingFunc.easeInOutCubic,duration:t}))}render(){const{children:a,isVisibleScrollbar:l,isVisibleFade:c,isVisibleButtons:u,shouldMeasure:f,shouldDecreaseWidthContent:p,buttonsWidthIfDecreasedWidthContent:h,onMouseOver:m,onMouseOut:v,scrollWrapClassName:b,fadeClassName:g}=this.props,{isVisibleRightButton:y,isVisibleLeftButton:w}=this.state,E=p&&h;return r.createElement(i,{whitelist:["width"],onMeasure:this._handleResizeWrap,shouldMeasure:f,ref:this._wrapMeasureRef},r.createElement("div",{className:d.wrapOverflow,onMouseOver:m,onMouseOut:v},r.createElement("div",{className:o(d.wrap,E?d.wrapWithArrowsOuting:"")},r.createElement("div",{className:o(d.scrollWrap,b,{[d.noScrollBar]:!l}),onScroll:this._handleScroll,ref:this._scroll},r.createElement(i,{onMeasure:this._handleResizeContent,whitelist:["width"],shouldMeasure:f,ref:this._contentMeasureRef},a)),c&&r.createElement(n,{isVisible:w,className:g}),c&&r.createElement(s,{isVisible:y,className:g}),u&&r.createElement(e,{onClick:this._handleScrollLeft,isVisible:w}),u&&r.createElement(t,{onClick:this._handleScrollRight,isVisible:y}))))}_isOverflowed(){const{widthContent:e,widthWrap:t}=this.state;return e>t}}).defaultProps=p,f}(v,b,h,m)},36565:(e,t,n)=>{"use strict";n.d(t,{TimeInput:()=>I});var r=n(49483),o=n(59496),i=n(97754),a=n.n(i),s=n(88537),l=n(47201),c=n(78274),u=n(31261),f=n(9745),d=n(24451),p=n(35692);function h(e){return o.createElement(f.Icon,{className:d.icon,icon:p})}var m=n(29202),v=n(88722);var b=n(58095),g=n(64514);const y={0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}};function w(e,t,n){const r=[],o=n;let i=0,a=0;const s=e.length,l=o.length;let c=-1,u=0;const f=[],d=s-1,p=[];let h;for(;i<s&&a<l;){const n=e.charAt(i),s=o.charAt(a),l=y[n];l?(s.match(l.pattern)?(r.push(s),l.recursive&&(-1===c?c=i:i===d&&i!==c&&(i=c-1),d===c&&(i-=1)),i+=1):s===h?(u--,h=void 0):l.optional?(i+=1,a-=1):l.fallback?(r.push(l.fallback),i+=1,a-=1):p.push({p:a,v:s,e:l.pattern}),a+=1):(t||r.push(n),s===n?(f.push(a),a+=1):(h=n,f.push(a+u),u++),i+=1)}const m=e.charAt(d)
;s!==l+1||y[m]||r.push(m);const v=r.join("");return[v,function(e,t){const n={};for(let e=0;e<t.length;e++)n[t[e]+0]=1;return n}(0,f),p]}function E(e,t,n){const r=function(e){let t=!0;for(let n=0;n<e.length;n++){const r=y[e.charAt(n)];if(r&&r.recursive){t=!1;break}}return t?e.length:void 0}(e),[i,a]=w(e,!1,t),[l,c]=(0,o.useState)(i),[u,f]=(0,o.useState)(0),[d,p]=(0,o.useState)(!1),h=(0,o.useRef)(a),m=(0,o.useRef)(l);return(0,o.useEffect)(()=>{const[n,r]=w(e,!1,t);c(n),v(r)},[t,e]),(0,o.useLayoutEffect)(()=>{const e=(0,s.ensureNotNull)(n.current);d&&(e.setSelectionRange(u,u),p(!1)),f(S(e))},[d]),[t,m,{onChange:function(){const t=(0,s.ensureNotNull)(n.current),r=t.value,[o,i]=w(e,!1,r);c(o),m.current=o;const a=v(i),d=function(e,t,n,r,o,i){if(e!==t){const a=t.length,s=e.length;let l=0,c=0,u=0,f=0,d=0;for(d=r;d<a&&o[d];d++)c++;for(d=r-1;d>=0&&o[d];d--)l++;for(d=r-1;d>=0;d--)o[d]&&u++;for(d=n-1;d>=0;d--)i[d]&&f++;if(r>s)r=10*a;else if(n>=r&&n!==s){if(i[r]){const e=r;r-=f-u,o[r-=l]&&(r=e)}}else r>n&&(r+=u-f,r+=c)}return r}(l,o,u,S(t),i,a);f(d),p(!0)},onSelect:function(){const e=(0,s.ensureNotNull)(n.current);f(S(e))},maxLength:r}];function v(e){const t=h.current;return h.current=e,t}}function S(e){return e.selectionStart||0}function O(e){const{value:t,mask:n,onChange:r,...i}=e,a=(0,o.useRef)(null),[s,l,c]=E(n,t,a);return(0,o.useLayoutEffect)(()=>{void 0!==e.reference&&(e.reference.current=a.current)},[e.reference]),o.createElement(u.InputControl,{...i,maxLength:c.maxLength,value:s,autoComplete:"off",reference:function(e){a.current=e},onChange:function(){c.onChange(),r(l.current)},onSelect:c.onSelect})}var T=n(68335),N=n(50628),D=n(16396),C=n(55257);const _=(()=>{const e=[];for(let t=0;t<24;++t)for(let n=0;n<60;n+=15){const[r,o]=[P(t.toString()),P(n.toString())],i=`${r}:${o}`,a=x(i)?i:R(i);e.push(a)}return e})();function M(e){let t=!1;const n=(0,o.useRef)(null),r=(0,o.useRef)(null),i=(0,o.useRef)(null),l=(0,o.useRef)(null),[u,f]=(0,m.useFocus)(),[d,p]=(0,o.useState)(e.value),v=k(d),y=x(v)?v:R(v),[w,E]=(0,o.useState)(y),S=u||W().some(e=>null!==e&&e.contains(document.activeElement));(0,o.useLayoutEffect)(()=>p(e.value),[e.value]),(0,o.useLayoutEffect)(()=>E(y),[d,S]),(0,o.useEffect)(()=>j(w===y?"auto":"smooth"),[w]);const M=(0,C.lowerbound)(_,y,(e,t)=>e<t);let P=_;_[M]!==y&&(P=[..._],P.splice(M,0,y));const F=(0,b.useOutsideEvent)({mouseDown:!0,touchStart:!0,handler:function(e){null!==r.current&&S&&e.target instanceof Node&&null!==i.current&&!i.current.contains(e.target)&&r.current.blur()}});return o.createElement("div",{className:a()(e.className),onKeyDown:function(e){if(e.defaultPrevented)return;const t=(0,T.hashFromEvent)(e.nativeEvent);if(38===t){e.preventDefault();const t=(P.indexOf(w)+P.length-1)%P.length;E(P[t])}if(40===t){e.preventDefault();const t=(P.indexOf(w)+P.length+1)%P.length;E(P[t])}},onFocus:function(e){B(e)||f.onFocus(e)},onBlur:function(e){B(e)||f.onBlur(e)},ref:F},o.createElement(O,{disabled:e.disabled,name:e.name,endSlot:o.createElement(c.EndSlot,{icon:!0},o.createElement(h,null)),reference:r,
containerReference:n,mask:"09:00",value:d,onFocus:function(e){setTimeout(H,0)},onBlur:function(e){B(e)||I(d)},onChange:function(t){p(t),e.onInput&&e.onInput(t)},onKeyDown:function(e){if(e.defaultPrevented)return;const t=(0,T.hashFromEvent)(e.nativeEvent);13===t&&(e.preventDefault(),I(w),(0,s.ensureNotNull)(r.current).blur());27===t&&(e.preventDefault(),(0,s.ensureNotNull)(r.current).blur())}}),o.createElement(N.PopupMenu,{onOpen:function(){j()},onClose:function(){},position:function(){const e=(0,s.ensureNotNull)(n.current).getBoundingClientRect(),t=window.innerHeight-e.bottom,r=e.top;let o=231,i=e.bottom;if(o>r&&o>t){const n=(0,g.clamp)(o,0,r),a=(0,g.clamp)(o,0,t);o=Math.max(n,a),i=n>a?e.top-n:e.bottom}else o>t&&(i=e.top-o);return{x:e.left,y:i,overrideWidth:e.width,overrideHeight:o}},closeOnClickOutside:!1,isOpened:S,tabIndex:-1,reference:i},P.map(e=>o.createElement(D.PopupMenuItem,{key:e,label:e,isActive:e===y,isHovered:e===w,reference:e===w?V:void 0,onClick:A,onClickArg:e}))));function I(n){const r=k(n),o=x(r)?r:R(r);p(o),t||(t=!0,e.onChange(o))}function V(e){l.current=e}function A(e){I((0,s.ensureDefined)(e)),(0,s.ensureNotNull)(i.current).blur()}function B(e){return u&&(null!==L(document.activeElement)||null!==L(e.relatedTarget))}function L(e){return e instanceof Node&&W().find(t=>null!==t&&t.contains(e))||null}function W(){return[i.current,r.current]}function j(e="auto"){if(null!==l.current){const t=(0,s.ensureNotNull)(i.current).getBoundingClientRect(),n=l.current.getBoundingClientRect();(t.top>n.top||t.bottom<n.bottom)&&l.current.scrollIntoView({behavior:e})}}function H(){const e=r.current;if(null!==e){const t=e.value||"";e.setSelectionRange(0,t.length)}}}function k(e){const[t="",n=""]=e.split(":"),[r,o]=[P(t),F(n)];return`${r}:${o}`}function x(e){return/^(0?[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/g.test(e)}function R(e){const[t,n]=e.split(":"),[r,o]=[(0,g.clamp)(parseInt(t),0,23),(0,g.clamp)(parseInt(n),0,59)],[i,a]=[P(r.toString()),F(o.toString())];return`${i}:${a}`}function P(e){return e.slice(0,2).padStart(2,"0")}function F(e){return e.slice(0,2).padEnd(2,"0")}const I=r.CheckMobile.any()?function(e){const{onChange:t,onFocus:n,value:r,className:i,...f}=e,d=(0,o.useRef)(null),[p,b]=(0,m.useFocus)(),g=(0,l.createSafeMulticastEventHandler)(b.onBlur,(function(){d.current&&r&&(d.current.defaultValue=r)}));return(0,o.useLayoutEffect)(()=>{d.current&&r&&(d.current.defaultValue=r)},[]),(0,o.useLayoutEffect)(()=>{d.current&&r&&(d.current.value=r)},[r]),o.createElement("div",{className:a()(v.wrap,i)},o.createElement(u.InputControl,{...f,type:"text",endSlot:o.createElement(c.EndSlot,{icon:!0},o.createElement(h,null)),value:r,highlight:p,intent:p?"primary":void 0,onFocus:function(e){(0,s.ensureNotNull)(d.current).focus(),n&&n(e)},onChange:function(){}}),o.createElement("input",{...b,disabled:e.disabled,className:v.input,type:"time",onBlur:g,onChange:function(e){const{value:n}=e.currentTarget;t&&n&&t(n)},ref:d}))}:M},16396:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_POPUP_MENU_ITEM_THEME:()=>c,PopupMenuItem:()=>d})
;var r=n(59496),o=n(97754),i=n(59064),a=n(51768),s=n(90186),l=n(23576);const c=l;function u(e){const{reference:t,...n}=e,o={...n,ref:t};return r.createElement(e.href?"a":"div",o)}function f(e){e.stopPropagation()}function d(e){const{id:t,role:n,"aria-selected":c,className:d,title:p,labelRowClassName:h,labelClassName:m,shortcut:v,forceShowShortcuts:b,icon:g,isActive:y,isDisabled:w,isHovered:E,appearAsDisabled:S,label:O,link:T,showToolboxOnHover:N,target:D,rel:C,toolbox:_,reference:M,onMouseOut:k,onMouseOver:x,suppressToolboxClick:R=!0,theme:P=l}=e,F=(0,s.filterDataProps)(e),I=(0,r.useRef)(null);return r.createElement(u,{...F,id:t,role:n,"aria-selected":c,className:o(d,P.item,g&&P.withIcon,{[P.isActive]:y,[P.isDisabled]:w||S,[P.hovered]:E}),title:p,href:T,target:D,rel:C,reference:function(e){I.current=e,"function"==typeof M&&M(e);"object"==typeof M&&(M.current=e)},onClick:function(t){const{dontClosePopup:n,onClick:r,onClickArg:o,trackEventObject:s}=e;if(w)return;s&&(0,a.trackEvent)(s.category,s.event,s.label);r&&r(o,t);n||(0,i.globalCloseMenu)()},onContextMenu:function(t){const{trackEventObject:n,trackRightClick:r}=e;n&&r&&(0,a.trackEvent)(n.category,n.event,n.label+"_rightClick")},onMouseUp:function(t){const{trackEventObject:n,trackMouseWheelClick:r}=e;if(1===t.button&&T&&n){let e=n.label;r&&(e+="_mouseWheelClick"),(0,a.trackEvent)(n.category,n.event,e)}},onMouseOver:x,onMouseOut:k},void 0!==g&&r.createElement("div",{className:P.icon,dangerouslySetInnerHTML:{__html:g}}),r.createElement("div",{className:o(P.labelRow,h)},r.createElement("div",{className:o(P.label,m)},O)),(void 0!==v||b)&&r.createElement("div",{className:P.shortcut},(V=v)&&V.split("+").join(" + ")),void 0!==_&&r.createElement("div",{onClick:R?f:void 0,className:o(P.toolbox,{[P.showOnHover]:N})},_));var V}},64205:(e,t,n)=>{"use strict";n.d(t,{DEFAULT_SLIDER_THEME:()=>s,SliderItem:()=>l,factory:()=>c});var r=n(59496),o=n(97754),i=n(88537),a=n(37740);const s=a;function l(e){const t=o(e.className,a.tab,{[a.active]:e.isActive,[a.disabled]:e.isDisabled,[a.defaultCursor]:!!e.shouldUseDefaultCursor,[a.noBorder]:!!e.noBorder});return r.createElement("div",{className:t,onClick:e.onClick,ref:e.reference,"data-type":"tab-item","data-value":e.value,"data-name":"tab-item-"+e.value.toString().toLowerCase()},e.children)}function c(e){return class extends r.PureComponent{constructor(){super(...arguments),this.activeTab={current:null}}componentDidUpdate(){(0,i.ensureNotNull)(this._slider).style.transition="transform 350ms",this._componentDidUpdate()}componentDidMount(){this._componentDidUpdate()}render(){const{className:t}=this.props,n=this._generateTabs();return r.createElement("div",{className:o(t,a.tabs),"data-name":this.props["data-name"]},n,r.createElement(e,{reference:e=>{this._slider=e}}))}_generateTabs(){return this.activeTab.current=null,r.Children.map(this.props.children,e=>{const t=e,n=Boolean(t.props.isActive),o={reference:e=>{n&&(this.activeTab.current=e),t.props.reference&&t.props.reference(e)}};return r.cloneElement(t,o)})}_componentDidUpdate(){const e=(0,
i.ensureNotNull)(this._slider).style;if(this.activeTab.current){const t=this.activeTab.current.offsetWidth,n=this.activeTab.current.offsetLeft;e.transform=`translateX(${n}px)`,e.width=t+"px",e.opacity="1"}else e.opacity="0"}}}c((function(e){return r.createElement("div",{className:a.slider,ref:e.reference})}))},33086:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 10" width="20" height="10"><path fill="none" stroke="currentColor" stroke-width="1.5" d="M2 1l8 8 8-8"/></svg>'},56712:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 28" width="28" height="28" fill="none"><path fill="currentColor" fill-rule="evenodd" clip-rule="evenodd" d="M10 4h1v2h6V4h1v2h2.5A2.5 2.5 0 0 1 23 8.5v11a2.5 2.5 0 0 1-2.5 2.5h-13A2.5 2.5 0 0 1 5 19.5v-11A2.5 2.5 0 0 1 7.5 6H10V4zm8 3H7.5C6.67 7 6 7.67 6 8.5v11c0 .83.67 1.5 1.5 1.5h13c.83 0 1.5-.67 1.5-1.5v-11c0-.83-.67-1.5-1.5-1.5H18zm-3 2h-2v2h2V9zm-7 4h2v2H8v-2zm12-4h-2v2h2V9zm-7 4h2v2h-2v-2zm-3 4H8v2h2v-2zm3 0h2v2h-2v-2zm7-4h-2v2h2v-2z"/></svg>'},35692:e=>{e.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 17" width="17" height="17"><path fill="currentColor" d="M1 8.5a7.5 7.5 0 1 1 15 0 7.5 7.5 0 0 1-15 0zM8.5 0a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM9 9V3H8v5H5v1h4z"/></svg>'}}]);