Volume transparency bars #5076 widget.changeTheme should not record an Undo entry in the Undo/Redo stack #4982 Event when source price scale is changed #4884 Time value in shape creating #4878 Price axis icons don't change after applyOverrides #4865 Cannot disable bottom toolbar timezone menu via "timezone_menu" property #4836 Showleftaxis is not valid on the mobile #4828 Fix TypeScript typings for onVisibleRangeChanged method #4802 Invalid on Mobile: 'paneProperties.legendProperties.showBarChange': false, #4797 API to attach an indicator to a particular price scale #4788 saveLoadAdapter is stringified #4776 Changing price scale of the study via changePriceScale method doesn't applies immediately #4774 Broker Config Order Market not visible #4765 [Bug] In the trading mask changing price doesn't update pips #4761 Maximize chart button #4744 Custom study plot color has no effect #4740 Moving average on seconds (createStudy) #4730 [Bug] BUY button get enable after clicking on both pips fields #4718 Overrides are not applied when defaults button is pressed #4706 Trading Terminal passes parentOrderId object while modifying the order #4705 Watermark settings are not saved to LocalStorage #4681 tvWidget.activeChart().resolution() return randomly "D" or "1D" for the daily time-frame #4630 cannot override default background color #4621 Bring to front operation is unavailable in 1.16 #4611 New style of pane buttons #4608 New mobile friendly style of the legend #4607 Centered Zoom with Ctrl #4606 TERMINAL: Apply Date Range to all charts in layout if Sync Interval is enabled #4605 Updated style of the measure tool #4604 New style of indicator loading status #4603 New measure styles #4602 Adaptive drawings dialogs #4600 Allow createStudy use undo #4590 Crosshair only on long press on mobile #4574 saveChartToServer does not call the callbacks if !autoSaveNeeded #4573 How to get current theme? #4534 getAllShapes returns trend_line instead of 'extended' #4507 hideMarksOnBar in v1.15 #4506 Trend_angle is not returned via getAllShapes #4498 How to disable vertical scrolling on the mobile side #4483 Add support for holidays and exchange working days in session spec #4467 closePopupsAndDialogs : The screenshot popup is not being closed #4438 Redirect on TV homepage after mouse click release #4423 setBodyFont of position line tool doesn't work correctly #4353 subscribe('drawing_event') click is not working #4302 "Eraser" and "dot" cursors doesn't work on IE11 #4238 zOrder for shapes with saved layout #4219 Errors/warning in console after load chart #4196 Main series API #4169 Scrolling to the top - href=“#” #4136 Tracking mode #4111 Order line drag with middle mouse button doesn't trigger onMove #4084 There are no values or na in the legend of the additional symbol (compare/add) until hover the cursor on the chart #4058 closePopupsAndDialogs doesn't work for new indicators dialog #4051 toolbar_bg doesn't affect top toolbar #3998 Check if symbol sync is enabled #3997 DOM bottom buttons are missing tooltips #3979 Question about D or 1D resolution #3861 Twitter intent button Android app #3732 Avoid chart appending storage version and "study_templates or charts" to chartStorageAPI #3702 unexpected study id by assigning studies_access option #3630 Drawing shape on indicator/study #3408 Top header in fullscreen? #2610 Allow to modify end date of long/short position tool #2381 Chart can scroll with mouse movement but no button pressed down #1908 Adaptive design for Properties dialog #862
9 lines
24 KiB
JavaScript
9 lines
24 KiB
JavaScript
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{XmVn:function(e,t,n){var r,o,i;e.exports=(r=n("q1tI"),o=n("i8i4"),i=n("bdgK"),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=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=o.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){var n,r;for(n=0;n<t.length;n++)(r=t[n]).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),s=(r(i),n(3)),u=r(s),a=n(13),c=r(a),f=n(14),l=r(f),p=n(15),d=r(p),h=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,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props.includeMargin;n.props.shouldMeasure&&(n._node.parentNode||n._setDOMNode(),e=n.getDimensions(n._node,r),t="function"==typeof n.props.children,n._propsToMeasure.some(function(r){if(e[r]!==n._lastDimensions[r])return n.props.onMeasure(e),t&&void 0!==n&&n.setState({dimensions:e}),n._lastDimensions=e,!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 l.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=c.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,d.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);h.propTypes={whitelist:u.default.array,blacklist:u.default.array,includeMargin:u.default.bool,useClone:u.default.bool,cloneOptions:u.default.object,shouldMeasure:u.default.bool,onMeasure:u.default.func},h.defaultProps={whitelist:["width","height","top","right","bottom","left"],blacklist:[],includeMargin:!0,useClone:!1,cloneOptions:{},shouldMeasure:!0,onMeasure:function(){return null}},t.default=h,e.exports=t.default},function(e,t){e.exports=r},function(e,t,n){(function(t){"use strict";var r,o,i,s="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};"production"!==t.env.NODE_ENV?(r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,o=function(e){return"object"===(void 0===e?"undefined":s(e))&&null!==e&&e.$$typeof===r},i=!0,e.exports=n(5)(o,i)):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(){d&&l&&(d=!1,l.length?p=l.concat(p):h=-1,p.length&&s())}function s(){var e,t;if(!d){for(e=o(i),d=!0,t=p.length;t;){for(l=p,p=[];++h<t;)l&&l[h].run();h=-1,t=p.length}l=null,d=!1,function(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}(e)}}function u(e,t){this.fun=e,this.array=t}function a(){}var c,f,l,p,d,h,y=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(e){f=r}}(),p=[],d=!1,h=-1,y.nextTick=function(e){var t,n=new Array(arguments.length-1);if(arguments.length>1)for(t=1;t<arguments.length;t++)n[t-1]=arguments[t];p.push(new u(e,n)),1!==p.length||d||o(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},y.title="browser",y.browser=!0,y.env={},y.argv=[],y.version="",y.versions={},y.on=a,y.addListener=a,y.once=a,y.off=a,y.removeListener=a,y.removeAllListeners=a,y.emit=a,y.prependListener=a,y.prependOnceListener=a,y.listeners=function(e){return[]},y.binding=function(e){throw new Error("process.binding is not supported")},y.cwd=function(){return"/"},y.chdir=function(e){throw new Error("process.chdir is not supported")},y.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),s=n(8),u=n(9),a=n(10),c=n(11);e.exports=function(e,n){function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function l(e){this.message=e,this.stack=""}function p(e){function r(r,c,f,p,d,h,y){if(p=p||_,h=h||f,y!==a)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=p+":"+f;!o[v]&&u<3&&(s(!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,p),o[v]=!0,u++)}return null==c[f]?r?new l(null===c[f]?"The "+d+" `"+h+"` is marked as required in `"+p+"`, but its value is `null`.":"The "+d+" `"+h+"` is marked as required in `"+p+"`, but its value is `undefined`."):null:e(c,f,p,d,h)}var o,u,c;return"production"!==t.env.NODE_ENV&&(o={},u=0),(c=r.bind(null,!1)).isRequired=r.bind(null,!0),c}function d(e){return p(function(t,n,r,o,i,s){var u,a=t[n],c=y(a);return c!==e?(u=v(a),new l("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `"+e+"`.")):null})}function h(t){var n,o,i,s;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;if(!(n=function(e){var t=e&&(m&&e[m]||e[g]);if("function"==typeof t)return t}(t)))return!1;if(i=n.call(t),n!==t.entries){for(;!(o=i.next()).done;)if(!h(o.value))return!1}else for(;!(o=i.next()).done;)if((s=o.value)&&!h(s[1]))return!1;return!0;default:return!1}}function y(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(void 0===e||null===e)return""+e;var t=y(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 m="function"==typeof Symbol&&Symbol.iterator,g="@@iterator",_="<<anonymous>>",w={array:d("array"),bool:d("boolean"),func:d("function"),number:d("number"),object:d("object"),string:d("string"),symbol:d("symbol"),any:p(o.thatReturnsNull),arrayOf:function(e){return p(function(t,n,r,o,i){var s,u,c,f;if("function"!=typeof e)return new l("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");if(s=t[n],!Array.isArray(s))return u=y(s),new l("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected an array.")
|
|
;for(c=0;c<s.length;c++)if((f=e(s,c,r,o,i+"["+c+"]",a))instanceof Error)return f;return null})},element:p(function(t,n,r,o,i){var s,u=t[n];return e(u)?null:(s=y(u),new l("Invalid "+o+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected a single ReactElement."))}),instanceOf:function(e){return p(function(t,n,r,o,i){if(!(t[n]instanceof e)){var s=e.name||_,u=function(e){return e.constructor&&e.constructor.name?e.constructor.name:_}(t[n]);return new l("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected instance of `"+s+"`.")}return null})},node:p(function(e,t,n,r,o){return h(e[t])?null:new l("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")}),objectOf:function(e){return p(function(t,n,r,o,i){var s,u,c,f;if("function"!=typeof e)return new l("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");if(s=t[n],"object"!==(u=y(s)))return new l("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected an object.");for(c in s)if(s.hasOwnProperty(c)&&(f=e(s,c,r,o,i+"."+c,a))instanceof Error)return f;return null})},oneOf:function(e){return Array.isArray(e)?p(function(t,n,r,o,i){var s,u,a;for(s=t[n],u=0;u<e.length;u++)if(f(s,e[u]))return null;return a=JSON.stringify(e),new l("Invalid "+o+" `"+i+"` of value `"+s+"` supplied to `"+r+"`, expected one of "+a+".")}):("production"!==t.env.NODE_ENV&&s(!1,"Invalid argument supplied to oneOf, expected an instance of array."),o.thatReturnsNull)},oneOfType:function(e){var n,r;if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&s(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),o.thatReturnsNull;for(n=0;n<e.length;n++)if("function"!=typeof(r=e[n]))return s(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",b(r),n),o.thatReturnsNull;return p(function(t,n,r,o,i){var s;for(s=0;s<e.length;s++)if(null==(0,e[s])(t,n,r,o,i,a))return null;return new l("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")})},shape:function(e){return p(function(t,n,r,o,i){var s,u,c,f=t[n],p=y(f);if("object"!==p)return new l("Invalid "+o+" `"+i+"` of type `"+p+"` supplied to `"+r+"`, expected `object`.");for(s in e)if((u=e[s])&&(c=u(f,s,r,o,i+"."+s,a)))return c;return null})},exact:function(e){return p(function(t,n,r,o,i){var s,c,f,p=t[n],d=y(p);if("object"!==d)return new l("Invalid "+o+" `"+i+"` of type `"+d+"` supplied to `"+r+"`, expected `object`.");for(s in u({},t[n],e)){if(!(c=e[s]))return new l("Invalid "+o+" `"+i+"` key `"+s+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));if(f=c(p,s,r,o,i+"."+s,a))return f}return null})}};return l.prototype=Error.prototype,w.checkPropTypes=c,w.PropTypes=w,w}}).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,s,u,a){var c,f,l;if(n(t),!e)throw void 0===t?c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."):(f=[r,o,i,s,u,a],l=0,(c=new Error(t.replace(/%s/g,function(){return f[l++]}))).name="Invariant Violation"),c.framesToPop=1,c}}).call(t,n(4))},function(e,t,n){(function(t){"use strict";var r,o=n(6),i=o;"production"!==t.env.NODE_ENV&&(r=function(e){var t,n,r,o,i;for(t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];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){}},i=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,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];r.apply(void 0,[t].concat(o))}}),e.exports=i}).call(t,n(4))},function(e,t){"use strict";var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){var e,t,n,r;try{if(!Object.assign)return!1;if((e=new String("abc"))[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;return"0123456789"===Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join("")&&(r={},"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join(""))}catch(e){return!1}}()?Object.assign:function(e,t){var i,s,u,a,c,f;for(u=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),a=1;a<arguments.length;a++){for(c in i=Object(arguments[a]))r.call(i,c)&&(u[c]=i[c]);if(n)for(s=n(i),f=0;f<s.length;f++)o.call(i,s[f])&&(u[s[f]]=i[s[f]])}return u}},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,o,i,s,u="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};"production"!==t.env.NODE_ENV&&(r=n(7),o=n(8),i=n(10),s={}),e.exports=function(e,n,a,c,f){var l,p,d;if("production"!==t.env.NODE_ENV)for(l in e)if(e.hasOwnProperty(l)){try{r("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",a,l,u(e[l])),p=e[l](n,l,c,a,null,i)}catch(e){p=e}
|
|
o(!p||p 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",a,l,void 0===p?"undefined":u(p)),p instanceof Error&&!(p.message in s)&&(s[p.message]=!0,d=f?f():"",o(!1,"Failed %s type: %s%s",a,p.message,null!=d?d:""))}}}).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,s,u){u!==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(),r=void 0,i=void 0,s=void 0;return t.margin&&(s=(0,o.default)(getComputedStyle(e))),t.margin?(r=s.left+n.width+s.right,i=s.top+n.height+s.bottom):(r=n.width,i=n.height),{width:r,height:i,top:n.top,right:n.right,bottom:n.bottom,left:n.left}};var r=n(16),o=function(e){return e&&e.__esModule?e:{default:e}}(r);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}]))},bdgK:function(e,t,n){"use strict";n.r(t),function(e){function n(e){return parseFloat(e)||0}function r(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return t.reduce(function(t,r){return t+n(e["border-"+r+"-width"])},0)}function o(e){var t,o,i,u,f,l,p,d,h=e.clientWidth,y=e.clientHeight;return h||y?(i=(o=function(e){var t,r,o,i,s=["top","right","bottom","left"],u={};for(t=0,r=s;t<r.length;t+=1)i=e["padding-"+(o=r[t])],u[o]=n(i);return u}(t=a(e).getComputedStyle(e))).left+o.right,u=o.top+o.bottom,f=n(t.width),l=n(t.height),"border-box"===t.boxSizing&&(Math.round(f+i)!==h&&(f-=r(t,"left","right")+i),Math.round(l+u)!==y&&(l-=r(t,"top","bottom")+u)),function(e){return e===a(e).document.documentElement}(e)||(p=Math.round(f+i)-h,d=Math.round(l+u)-y,1!==Math.abs(p)&&(f-=p),1!==Math.abs(d)&&(l-=d)),s(o.left,o.top,f,l)):c}function i(e){return m?f(e)?function(e){var t=e.getBBox();return s(0,0,t.width,t.height)}(e):o(e):c}function s(e,t,n,r){return{x:e,y:t,width:n,height:r}}var u,a,c,f,l,p,d,h,y,v,b=function(){function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return"undefined"!=typeof Map?Map:function(){function t(){this.__entries__=[]}var n={
|
|
size:{configurable:!0}};return n.size.get=function(){return this.__entries__.length},t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){var n,r,o,i=this;for(void 0===t&&(t=null),n=0,r=i.__entries__;n<r.length;n+=1)o=r[n],e.call(t,o[1],o[0])},Object.defineProperties(t.prototype,n),t}()}(),m="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,g=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),_="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(g):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},w=2,O=function(e,t){function n(){i&&(i=!1,e()),s&&o()}function r(){_(n)}function o(){var e=Date.now();if(i){if(e-u<w)return;s=!0}else i=!0,s=!1,setTimeout(r,t);u=e}var i=!1,s=!1,u=0;return o},E=20,T=["top","right","bottom","left","width","height","size","weight"],x="undefined"!=typeof MutationObserver,j=function(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=O(this.refresh.bind(this),E)};j.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},j.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},j.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},j.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},j.prototype.connect_=function(){m&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),x?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},j.prototype.disconnect_=function(){m&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},j.prototype.onTransitionEnd_=function(e){var t=e.propertyName;void 0===t&&(t=""),T.some(function(e){
|
|
return!!~t.indexOf(e)})&&this.refresh()},j.getInstance=function(){return this.instance_||(this.instance_=new j),this.instance_},j.instance_=null,u=function(e,t){var n,r,o;for(n=0,r=Object.keys(t);n<r.length;n+=1)o=r[n],Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0});return e},a=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||g},c=s(0,0,0,0),f="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof a(e).SVGGraphicsElement}:function(e){return e instanceof a(e).SVGElement&&"function"==typeof e.getBBox},(l=function(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=s(0,0,0,0),this.target=e}).prototype.isActive=function(){var e=i(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},l.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},p=function(e,t){var n,r,o,i,s,a,c,f=(r=(n=t).x,o=n.y,i=n.width,s=n.height,a="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(a.prototype),u(c,{x:r,y:o,width:i,height:s,top:o,right:r+i,bottom:s+o,left:r}),c);u(this,{target:e,contentRect:f})},(d=function(e,t,n){if(this.activeObservations_=[],this.observations_=new b,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}).prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof a(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new l(e)),this.controller_.addObserver(this),this.controller_.refresh())}},d.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof a(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},d.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},d.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},d.prototype.broadcastActive=function(){var e,t;this.hasActive()&&(e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new p(e.target,e.broadcastRect())}),this.callback_.call(e,t,e),this.clearActive())},d.prototype.clearActive=function(){this.activeObservations_.splice(0)},d.prototype.hasActive=function(){return this.activeObservations_.length>0},h="undefined"!=typeof WeakMap?new WeakMap:new b,y=function(e){var t,n;if(!(this instanceof y))throw new TypeError("Cannot call a class as a function.")
|
|
;if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");t=j.getInstance(),n=new d(e,t,this),h.set(this,n)},["observe","unobserve","disconnect"].forEach(function(e){y.prototype[e]=function(){return(t=h.get(this))[e].apply(t,arguments);var t}}),v=void 0!==g.ResizeObserver?g.ResizeObserver:y,t.default=v}.call(this,n("yLpj"))}}]); |