1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-07 02:28:54 +08:00
Files
sqliteviz/js/chunk-vendors.9442aa56.js
2020-12-21 19:19:08 +00:00

129 lines
6.0 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"0052":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 60 60"},e),o.default.createElement("path",{fill:"currentColor",d:"M10.11 11.24h19.43v39.13H10.11zM30.58 11.24h19.56v21.49H30.58zM30.58 33.7h19.56v16.66H30.58z"}))};t.default=u},"00a3":function(e,t,n){"use strict";function r(e,t,n,r){var a=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),l=i.toSeq().skipUntil((function(e,t){return t===a})).takeUntil((function(e,t){return t===o})).concat([[o,i.get(o)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return i=i.merge(l),e.merge({blockMap:i,selectionBefore:t,selectionAfter:t})}e.exports=r},"00ac":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("ab5b")),a=i(n("d7bc")),o=i(n("4d26"));function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){d(n,e);var t=v(n);function n(){return c(this,n),t.apply(this,arguments)}return p(n,[{key:"render",value:function(){var e=this.props,t=e.backgroundDark,n=e.children,a=e.onClose,i=e.relative,l=(0,o.default)("modalbox",{"modalbox--dark":t,"modalbox--relative":i});return r.default.createElement("div",{className:l},r.default.createElement("div",{className:"modalbox__cover",onClick:a}),r.default.createElement("div",{className:"modalbox__content"},n))}}]),n}(r.Component);t.default=x,x.propTypes={backgroundDark:a.default.bool,relative:a.default.bool,children:a.default.node,onClose:a.default.func}},"00d6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M15 7.063H6v4.625h9zm11 0h-9v4.625h9zM6 24.938h9v-4.625H6zm11 0h9v-4.625h-9zm-5.5-6.625h9v-4.625h-9zm11-4.625v4.625h9v-4.625zm-13 0h-9v4.625h9z"}))};t.default=u},"00ee":function(e,t,n){var r=n("b622"),a=r("toStringTag"),o={};o[a]="z",e.exports="[object z]"===String(o)},"00fd":function(e,t,n){var r=n("9e69"),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,l=r?r.toStringTag:void 0;function s(e){var t=o.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(s){}var a=i.call(e);return r&&(t?e[l]=n:delete e[l]),a}e.exports=s},"01a1":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M19,15H15C15,16.66 13.66,18 12,18C10.34,18 9,16.66 9,15H5V5H19M19,3H5C3.89,3 3,3.9 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.9 20.1,3 19,3Z"}))};e.exports=l},"020f":function(e,t,n){var r=n("242e"),a=n("1304");function o(e,t){return e&&r(e,a(t))}e.exports=o},"0226":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5C20.55,15.5 21,15.95 21,16.5V20C21,20.55 20.55,21 20,21C10.61,21 3,13.39 3,4C3,3.45 3.45,3 4,3H7.5C8.05,3 8.5,3.45 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z"}))};e.exports=l},"0272":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditableInput=void 0;var r=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}}(),a=n("ab5b"),o=s(a),i=n("fc55"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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}function p(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)}var d=1,h=38,v=40,m=[h,v],y=function(e){return m.indexOf(e)>-1},g=function(e){return Number(String(e).replace(/%/g,""))},b=t.EditableInput=function(e){function t(e){c(this,t);var n=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(e){n.setUpdatedValue(e.target.value,e)},n.handleKeyDown=function(e){var t=g(e.target.value);if(!isNaN(t)&&y(e.keyCode)){var r=n.getArrowOffset(),a=e.keyCode===h?t+r:t-r;n.setUpdatedValue(a,e)}},n.handleDrag=function(e){if(n.props.dragLabel){var t=Math.round(n.props.value+e.movementX);t>=0&&t<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(t),e)}},n.handleMouseDown=function(e){n.props.dragLabel&&(e.preventDefault(),n.handleDrag(e),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(e.value).toUpperCase(),blurValue:String(e.value).toUpperCase()},n}return p(t,e),r(t,[{key:"componentDidUpdate",value:function(e,t){this.props.value===this.state.value||e.value===this.props.value&&t.value===this.state.value||(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(e){return u({},this.props.label,e)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||d}},{key:"setUpdatedValue",value:function(e,t){var n=this.props.label?this.getValueObjectWithLabel(e):e;this.props.onChange&&this.props.onChange(n,t),this.setState({value:e})}},{key:"render",value:function(){var e=this,t=(0,l.default)({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return o.default.createElement("div",{style:t.wrap},o.default.createElement("input",{style:t.input,ref:function(t){return e.input=t},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?o.default.createElement("span",{style:t.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t}(a.PureComponent||a.Component);t.default=b},"0320":function(e,t,n){"use strict";var r=n("b3ca"),a=n("ef00"),o=n("0984"),i=o.isPlatform("Mac OS X"),l=i&&o.isBrowser("Firefox < 29"),s=r.hasCommandModifier,u=r.isCtrlKeyCommand;function c(e){return i&&e.altKey||u(e)}function f(e){return s(e)?e.shiftKey?"redo":"undo":null}function p(e){return!i&&e.shiftKey?null:c(e)?"delete-word":"delete"}function d(e){return s(e)&&i?"backspace-to-start-of-line":c(e)?"backspace-word":"backspace"}function h(e){switch(e.keyCode){case 66:return s(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return s(e)?"italic":null;case 74:return s(e)?"code":null;case 75:return i&&u(e)?"secondary-cut":null;case 77:return u(e)?"split-block":null;case 79:return u(e)?"split-block":null;case 84:return i&&u(e)?"transpose-characters":null;case 85:return s(e)?"underline":null;case 87:return i&&u(e)?"backspace-word":null;case 89:return u(e)?i?"secondary-paste":"redo":null;case 90:return f(e)||null;case a.RETURN:return"split-block";case a.DELETE:return p(e);case a.BACKSPACE:return d(e);case a.LEFT:return l&&s(e)?"move-selection-to-start-of-block":null;case a.RIGHT:return l&&s(e)?"move-selection-to-end-of-block":null;default:return null}}e.exports=h},"0359":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("g",{fill:"none"},o.default.createElement("path",{d:"M0 0h46v46H0z"}),o.default.createElement("path",{stroke:"#25fdfc",d:"M5.087 39l9.391-12.913 8.218 7.043L37.957 12",strokeMiterlimit:"10",strokeWidth:"2.348"}),o.default.createElement("path",{stroke:"#1d9bfb",d:"M12.13 37.826l11.74-15.261 8.217 7.044 8.217-11.739",strokeMiterlimit:"10",strokeWidth:"2.348"})))};t.default=u},"0366":function(e,t,n){var r=n("1c0b");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},"0397":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=E,t.containerConnectedContextTypes=void 0;var r=u(n("ab5b")),a=l(n("d7bc")),o=u(n("5968")),i=n("4578");function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return c="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},c(e)}function f(){return f=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},f.apply(this,arguments)}function p(e,t){if(null==e)return{};var n,r,a=d(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)&&(a[n]=e[n])}return a}function d(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 m(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function y(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&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function b(e){var t=w();return function(){var n,r=k(e);if(t){var a=k(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){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}}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var T={localize:a.default.func,container:a.default.object,data:a.default.array,defaultContainer:a.default.object,fullContainer:a.default.object,fullData:a.default.array,fullLayout:a.default.object,getValObject:a.default.func,graphDiv:a.default.object,layout:a.default.object,onUpdate:a.default.func,plotly:a.default.object,updateContainer:a.default.func,traceIndexes:a.default.array,customConfig:a.default.object,hasValidCustomConfigVisibilityRules:a.default.bool};function E(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(n){y(i,n);var a=b(i);function i(e,t){var n;return h(this,i),n=a.call(this,e,t),n.setLocals(e,t),n}return m(i,null,[{key:"modifyPlotProps",value:function(n,r,a){e.modifyPlotProps&&e.modifyPlotProps(n,r,a),t.modifyPlotProps&&t.modifyPlotProps(n,r,a)}}]),m(i,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(t,n){this.plotProps=(0,o.default)(t,n,e),this.attr=t.attr,i.modifyPlotProps(t,n,this.plotProps)}},{key:"getChildContext",value:function(){return{description:this.plotProps.description,attr:this.attr}}},{key:"render",value:function(){var t=Object.assign({},this.plotProps,this.props),n=t.plotProps,a=void 0===n?this.plotProps:n,i=p(t,["plotProps"]),l=e&&e.displayName?e.displayName:null;return(0,o.isVisibleGivenCustomConfig)(i.isVisible,i,this.context,l)?r.default.createElement(e,f({},i,{plotProps:a})):null}}]),i}(r.Component);n.displayName="ContainerConnected".concat((0,i.getDisplayName)(e)),n.contextTypes=T,n.childContextTypes={description:a.default.string,attr:a.default.string};var l=e.plotly_editor_traits;return n.plotly_editor_traits=l,n}t.containerConnectedContextTypes=T},"039b":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V12H19V19Z"}))};e.exports=l},"03dd":function(e,t,n){var r=n("eac5"),a=n("57a5"),o=Object.prototype,i=o.hasOwnProperty;function l(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}e.exports=l},"0452":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n("ab5b")),a=m(n("d7bc")),o=n("bfcd"),i=n("d58a"),l=n("df26"),s=n("dccc"),u=m(n("6b75")),c=m(n("7de8")),f=m(n("b3f5")),p=m(n("67b9")),d=n("b4fd"),h=n("178d"),v=m(n("b0120"));function m(e){return e&&e.__esModule?e:{default:e}}function y(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return y=function(){return e},e}function g(e){if(e&&e.__esModule)return e;if(null===e||"object"!==b(e)&&"function"!==typeof e)return{default:e};var t=y();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function b(e){return b="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},b(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(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 k(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function T(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&&E(e,t)}function E(e,t){return E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},E(e,t)}function O(e){var t=C();return function(){var n,r=A(e);if(t){var a=A(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==b(t)&&"function"!==typeof t?S(e):t}function S(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(){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}}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}var P=function(e){T(n,e);var t=O(n);function n(e,r){var a;return _(this,n),a=t.call(this,e,r),a.state={editorState:e.value.toString().trim().length?a.createEditorStateFromHTML(e.value):o.EditorState.createEmpty(a.getDecorator())},a.getDecorator=a.getDecorator.bind(S(a)),a.createEditorStateFromHTML=a.createEditorStateFromHTML.bind(S(a)),a.getEditorStateAsHTML=a.getEditorStateAsHTML.bind(S(a)),a.focus=a.focus.bind(S(a)),a.getParentContainerVerticalOffset=a.getParentContainerVerticalOffset.bind(S(a)),a.onChange=a.onChange.bind(S(a)),a.onBlur=a.onBlur.bind(S(a)),a.onFocus=a.onFocus.bind(S(a)),a.onLinkEditorBlur=a.onLinkEditorBlur.bind(S(a)),a.onLinkEditorFocus=a.onLinkEditorFocus.bind(S(a)),a.onLinkEditorChange=a.onLinkEditorChange.bind(S(a)),a.onLinkEditorClose=a.onLinkEditorClose.bind(S(a)),a.onKeyCommand=a.onKeyCommand.bind(S(a)),a.onReturnPressed=a.onReturnPressed.bind(S(a)),a.onStyleButtonToggle=a.onStyleButtonToggle.bind(S(a)),a.renderLinkEditor=a.renderLinkEditor.bind(S(a)),a}return k(n,[{key:"componentWillReceiveProps",value:function(e){var t=this.state,n=t.linkEditorFocus,r=t.editorFocus;if(!n&&!r){var a=this.createEditorStateFromHTML(e.value);this.setState({editorState:a})}}},{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,r=n.placeholder,a=n.value,o=this.state,i=o.editorState,l=o.linkEditorFocus;return!(!l&&r===e.placeholder&&a===e.value&&i===t.editorState)||e.value!==this.getEditorStateAsHTML(i)}},{key:"getDecorator",value:function(){return new o.CompositeDecorator([{strategy:h.findLinkEntities,component:u.default,props:{style:s.STYLE_MAP[s.LINK]}}])}},{key:"createEditorStateFromHTML",value:function(e){var t,n=(0,l.stateFromHTML)(e,{inlineStyles:(t={},x(t,s.SUPERSCRIPT,{element:"sup"}),x(t,s.SUBSCRIPT,{element:"sub"}),t),defaultBlockTag:null}),r=this.getDecorator();return o.EditorState.createWithContent(n),o.EditorState.createWithContent(n,r)}},{key:"getEditorStateAsHTML",value:function(e){var t=e.getCurrentContent();return(0,i.stateToHTML)(t,{defaultBlockTag:null,inlineStyles:s.STYLES_TO_HTML_TAGS})}},{key:"focus",value:function(){this.editorInput.focus()}},{key:"getParentContainerVerticalOffset",value:function(){return document.querySelector(".panel").scrollTop}},{key:"onChange",value:function(e){var t=this.state.selectedLinkID,n=e.getSelection(),r=(0,d.getEntityKeyAt)(e,n),a={editorState:e};(0,d.cursorHasLink)(e,n)?t!==r&&Object.assign(a,{selectedLinkID:r}):Object.assign(a,{selectedLinkID:null}),this.setState(a);var o=this.getEditorStateAsHTML(e).replace(/<br>\n*/,"<br>");this.props.value!==o&&(0,p.default)(this.props.onChange,[o])}},{key:"onBlur",value:function(){this.setState({editorFocus:!1})}},{key:"onFocus",value:function(){this.setState({editorFocus:!0})}},{key:"onLinkEditorBlur",value:function(){this.setState({linkEditorFocus:!1})}},{key:"onLinkEditorFocus",value:function(){this.setState({linkEditorFocus:!0})}},{key:"onLinkEditorChange",value:function(e,t){var n=this.state.editorState,r=n.getSelection();o.Entity.replaceData(e,{url:t});var a=o.RichUtils.toggleLink(n,r,e);this.onChange(a)}},{key:"onLinkEditorClose",value:function(){this.focus(),this.setState({linkEditorFocus:!1,selectedLinkID:null})}},{key:"onKeyCommand",value:function(e){var t=(0,d.handleKeyCommand)(this.state.editorState,e);return!!t&&(this.onChange(t),!0)}},{key:"onReturnPressed",value:function(){var e=(0,d.insertSoftNewline)(this.state.editorState);return this.onChange(e),!0}},{key:"onStyleButtonToggle",value:function(e){var t=(0,d.toggleInlineStyle)(this.state.editorState,e);t&&this.onChange(t)}},{key:"renderLinkEditor",value:function(e){if(!e)return null;var t=(0,d.getEntityByKey)(e),n=t.getData().url,a=(0,v.default)();return r.default.createElement(c.default,{onFocus:this.onLinkEditorFocus,onURLChange:this.onLinkEditorChange,onBlur:this.onLinkEditorBlur,onClose:this.onLinkEditorClose,coordinates:a,linkID:e,linkURL:n})}},{key:"render",value:function(){var e=this,t=this.state,n=t.editorState,a=t.selectedLinkID,i=Boolean(a);return r.default.createElement("div",{className:"rich-text-editor__root"},r.default.createElement(f.default,{styles:s.INLINE_STYLES,currentStyle:n.getCurrentInlineStyle(),linkIsSelected:i,onToggle:this.onStyleButtonToggle}),r.default.createElement("div",{className:"rich-text-editor__editor",onClick:this.focus},r.default.createElement(o.Editor,{customStyleMap:s.STYLE_MAP,editorState:n,handleReturn:this.onReturnPressed,handleKeyCommand:this.onKeyCommand,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,placeholder:this.props.placeholder,spellCheck:!1,ref:function(t){return e.editorInput=t}})),this.renderLinkEditor(a))}}]),n}(r.Component);P.propTypes={onChange:a.default.func.isRequired,placeholder:a.default.string,value:a.default.any},P.defaultProps={placeholder:"",value:""};var L=P;t.default=L},"0468":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M20,2H4C2.9,2 2,2.9 2,4V22L6,18H20C21.1,18 22,17.1 22,16V4C22,2.89 21.1,2 20,2Z"}))};e.exports=l},"048b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M17.5 19c-.188.375-.625.5-1 .313a.856.856 0 0 1-.25-.188l.813-1.188c.063 0 .125.063.188.063.375.188.438.688.25 1zm2 5.75c-.375-.188-.813-.063-1.063.313-.188.313-.063.813.313 1 .313.188.813.063 1-.25a.867.867 0 0 0-.25-1.063zM17.25 27c-.375-.188-.875-.063-1.063.313-.188.313-.063.813.313 1 .313.188.813.063 1-.25A.867.867 0 0 0 17.25 27zm0-4.5c-.375-.188-.813-.063-1.063.313-.188.313-.063.813.313 1s.813.063 1-.25c.188-.375.125-.813-.25-1.063zm2.25-11.312c-.313-.188-.813-.063-1 .313-.188.313-.063.813.25 1a.867.867 0 0 0 1.063-.25c.188-.375.063-.813-.313-1.063zm0 4.562c-.313-.25-.813-.125-1 .25s-.063.813.25 1c.375.25.813.125 1.063-.25.188-.375.063-.813-.313-1zm0 4.5c-.375-.188-.813-.063-1 .313-.25.313-.125.813.25 1s.813.063 1-.25c.25-.375.125-.875-.25-1.063zm-6.812 6.813c-.313-.25-.813-.125-1 .25s-.063.813.25 1c.375.25.875.125 1.063-.25s.063-.813-.313-1zM15 24.75c-.375-.188-.813-.063-1.063.313-.188.375-.063.813.313 1 .313.25.813.125 1-.25S15.313 25 15 24.75zM18.75 8c.375.188.813.063 1-.313.25-.375.125-.813-.25-1-.375-.25-.813-.125-1 .25-.25.375-.125.813.25 1.063zm-4.312 13.625a.814.814 0 0 0 .813-.313.928.928 0 0 0 0-.813zM21.75 27c-.375-.188-.813-.063-1.063.313-.188.313-.063.75.25 1 .438-.188.813-.375 1.188-.563a.976.976 0 0 0-.375-.75zm6.063-14.5a.758.758 0 0 0 .938-.125c-.125-.438-.25-.875-.438-1.25-.313-.063-.625.063-.813.375s-.063.813.313 1zM18.75 3.438c.313.188.75.125.938-.188-.438-.125-.875-.188-1.313-.313.063.25.188.438.375.5zM21 5.688c.375.25.813.125 1.063-.25.188-.375.063-.813-.313-1-.375-.25-.813-.125-1 .25-.25.375-.125.813.25 1zM27.5 20.5c-.188.375-.063.813.313 1 .063.063.125.063.188.125.188-.438.375-.938.563-1.375-.375-.25-.813-.125-1.063.25zm-1.25 2c-.313-.25-.813-.125-1 .25s-.063.813.25 1.063c.375.188.875.063 1.063-.313s.063-.813-.313-1zM24.063 6.688c-.375-.188-.875-.063-1.063.25-.188.375-.063.813.313 1.063.313.188.813.063 1-.313.188-.313.063-.813-.25-1zm2.187 11.25c-.313-.188-.813-.063-1 .313s-.063.813.25 1c.375.25.875.125 1.063-.25s.063-.813-.313-1.063zm2.313-2.25c-.375-.188-.813-.063-1.063.313-.188.313-.063.813.313 1 .313.188.813.063 1-.25a.867.867 0 0 0-.25-1.063zm-4.5-4.5c-.375-.188-.875-.063-1.063.313-.188.313-.063.813.313 1 .313.188.813.063 1-.25a.867.867 0 0 0-.25-1.063zm2.25 2.25c-.375-.188-.813-.063-1.063.313-.188.375-.063.813.313 1 .313.188.813.125 1-.25s.063-.813-.25-1.063zM21.75 22.5a.867.867 0 0 0-1.063.25c-.188.375-.063.875.313 1.063s.813.063 1-.313c.25-.313.125-.813-.25-1zm4.563-13.562c-.375-.188-.813-.063-1.063.313-.188.313-.063.813.313 1 .313.188.813.063 1-.25.188-.375.063-.875-.25-1.063zm-2.25 6.812c-.375-.25-.875-.125-1.063.25s-.063.813.313 1c.313.25.813.125 1-.25s.063-.813-.25-1zm-2.313-2.312c-.313-.188-.813-.063-1 .313s-.063.813.25 1c.375.188.813.125 1.063-.25.188-.375.063-.813-.313-1.063zm0 4.562c-.313-.25-.813-.125-1 .25s-.063.813.25 1c.375.25.813.125 1.063-.25.188-.375.063-.813-.313-1zm0-9.062c-.313-.188-.813-.063-1 .313-.188.313-.063.813.25 1a.867.867 0 0 0 1.063-.25c.188-.375.063-.875-.313-1.063zM24 20.25c-.313-.25-.813-.125-1 .25s-.063.813.25 1c.375.25.813.125 1.063-.25.188-.375.063-.813-.313-1zm0 4.5c-.375-.188-.813-.063-1 .313-.25.313-.125.813.25 1s.813.063 1-.25c.25-.375.125-.813-.25-1.063zM32 16c0 8.813-7.188 16-16 16S0 24.812 0 16C0 7.187 7.188 0 16 0s16 7.188 16 16zM7 27.375L14.75 16.5l-13.063-3a16.224 16.224 0 0 0-.188 2.5c0 4 1.625 7.625 4.25 10.25a7 7 0 0 0 1.25 1.125zM30.5 16c0-4-1.625-7.625-4.25-10.25-2.438-2.438-5.813-4.063-9.5-4.25V16l-.125.438L8.25 28.251a14.245 14.245 0 0 0 7.75 2.25c4 0 7.625-1.625 10.25-4.25s4.25-6.25 4.25-10.25z"}))};t.default=u},"04a3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=n("ab5b"),a=l(r),o=n("fc55"),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.PhotoshopPointerCircle=function(e){var t=e.hsl,n=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}},"black-outline":{picker:{boxShadow:"inset 0 0 0 1px #000"}}},{"black-outline":t.l>.5});return a.default.createElement("div",{style:n.picker})};t.default=s},"04e9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TraceTypeSelectorButton=void 0;var r=f(n("ab5b")),a=u(n("d7bc")),o=n("8704"),i=u(n("71a6")),l=n("4578"),s=n("e419");function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function p(e){return p="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},p(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function m(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&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function g(e){var t=_();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=function(e,t){return e?e(t).map((function(e,t){return e.onClick?r.default.createElement("a",{className:"trace-item__actions__item",key:t,"aria-label":e.label,"data-microtip-position":"top-left",role:"tooltip",onClick:e.onClick,target:"_blank"},e.icon):null})):null},T=function(e){var t=e.item,n=e.active,a=e.handleClick,o=e.actions,i=e.showActions,s=e.complex,u=t.label,c=t.value,f=t.icon,p=(0,l.renderTraceIcon)(f||c),d=(0,l.renderTraceIcon)(f||c,"TraceType");return r.default.createElement("div",{className:"trace-item".concat(n?" trace-item--active":""),onClick:a},r.default.createElement("div",{className:"trace-item__actions"},o&&i?k(o,t):null),r.default.createElement("div",{className:"trace-item__image"},!s&&r.default.createElement("div",{className:"trace-item__image__svg"},r.default.createElement(p,null)),s&&r.default.createElement("div",{className:"trace-item__image__wrapper"},r.default.createElement(d,null))),r.default.createElement("div",{className:"trace-item__label"},u))};T.propTypes={item:a.default.object,active:a.default.bool,complex:a.default.bool,handleClick:a.default.func,actions:a.default.func,showActions:a.default.bool},T.contextTypes={localize:a.default.func};var E=function(e){m(n,e);var t=g(n);function n(e){var r;return d(this,n),r=t.call(this,e),r.selectAndClose=r.selectAndClose.bind(x(r)),r.actions=r.actions.bind(x(r)),r.renderCategories=r.renderCategories.bind(x(r)),r.renderGrid=r.renderGrid.bind(x(r)),r.renderSingleBlock=r.renderSingleBlock.bind(x(r)),r}return v(n,[{key:"selectAndClose",value:function(e){var t=this.props,n=t.updateContainer,r=t.glByDefault,a=t.fullContainer.type,o=(0,l.traceTypeToPlotlyInitFigure)(e);(a&&a.endsWith("gl")||!s.TRACES_WITH_GL.includes(a)&&r)&&s.TRACES_WITH_GL.includes(o.type)&&!o.type.endsWith("gl")&&(o.type+="gl"),n(o),this.context.handleClose()}},{key:"actions",value:function(e){var t=this,n=e.value,a=this.context,i=a.localize,l=a.chartHelp,s=function(e,n){e.stopPropagation(),n(),t.context.handleClose()};return[{label:i("Charts like this by Plotly users."),onClick:l[n]&&l[n].feedQuery&&function(e){return s(e,(function(){return window.open("https://plot.ly/feed/?q=".concat(l[n]?l[n].feedQuery:n),"_blank")}))},icon:r.default.createElement(o.SearchIcon,null)},{label:i("View tutorials on this chart type."),onClick:l[n]&&l[n].helpDoc&&function(e){return s(e,(function(){return window.open(l[n].helpDoc,"_blank")}))},icon:r.default.createElement(o.ThumnailViewIcon,null)},{label:i("See a basic example."),onClick:l[n]&&l[n].examplePlot&&function(e){return s(e,l[n].examplePlot)},icon:r.default.createElement(o.GraphIcon,null)}]}},{key:"renderCategories",value:function(){var e=this,t=this.props.fullValue,n=this.context,a=n.localize,o=n.chartHelp,i=this.props.traceTypesConfig,l=i.traces,s=i.categories,u=i.complex;return s(a).map((function(n,i){var s=l(a).filter((function(e){var t=e.category.value;return t===n.value})).filter((function(e){return"scattergl"!==e.value&&"scatterpolargl"!==e.value})),c=4,f=s.length>c&&!n.maxColumns||n.maxColumns&&n.maxColumns>1?"trace-grid__column trace-grid__column--double":"trace-grid__column";return r.default.createElement("div",{className:f,key:i},r.default.createElement("div",{className:"trace-grid__column__header"},n.label),r.default.createElement("div",{className:"trace-grid__column__items"},s.map((function(n){return r.default.createElement(T,{complex:u,key:n.value,active:t===n.value,item:n,actions:e.actions,handleClick:function(){return e.selectAndClose(n.value)},showActions:Boolean(o)})}))))}))}},{key:"renderGrid",value:function(){return r.default.createElement("div",{className:"trace-grid"},this.renderCategories())}},{key:"renderSingleBlock",value:function(){var e=this,t=this.props.fullValue,n=this.context.localize,a=this.props.traceTypesConfig,o=a.traces,i=a.complex;return r.default.createElement("div",{className:"trace-grid-single-block"},o(n).map((function(n){return r.default.createElement(T,{key:n.value,complex:i,active:t===n.value,item:n,actions:e.actions,showActions:!1,handleClick:function(){return e.selectAndClose(n.value)},style:{display:"inline-block"}})})))}},{key:"render",value:function(){var e=this.context.localize,t=this.props.traceTypesConfig.categories;return r.default.createElement(i.default,{title:e("Select Trace Type")},t?this.renderGrid():this.renderSingleBlock())}}]),n}(r.Component);E.propTypes={updateContainer:a.default.func,fullValue:a.default.string,fullContainer:a.default.object,glByDefault:a.default.bool,traceTypesConfig:a.default.object},E.contextTypes={handleClose:a.default.func,localize:a.default.func,mapBoxAccess:a.default.bool,chartHelp:a.default.object};var O=function(e){m(n,e);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return v(n,[{key:"render",value:function(){var e=this.props,t=e.handleClick,n=e.container,a=e.traceTypesConfig.traces,o=this.context.localize,i=(0,l.plotlyTraceToCustomTrace)(n),s=a(o).find((function(e){return e.value===i})),u=s.label,c=s.icon,f=s.value,p=(0,l.renderTraceIcon)(c||f);return r.default.createElement("div",{className:"trace-type-select-button",onClick:t||null},r.default.createElement("div",{className:"trace-type-select-button__icon"},r.default.createElement(p,null)),u)}}]),n}(r.Component);t.TraceTypeSelectorButton=O,O.propTypes={handleClick:a.default.func.isRequired,container:a.default.object,traceTypesConfig:a.default.object.isRequired},O.contextTypes={localize:a.default.func};var M=E;t.default=M},"0564":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var r=u(n("ab5b")),a=l(n("d7bc")),o=n("4578"),i=n("e419");function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return c="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},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function _(e){var t=function(t){h(a,t);var n=m(a);function a(e,t){var r;return f(this,a),r=n.call(this,e,t),r.deleteImage=r.deleteImage.bind(g(r)),r.updateImage=r.updateImage.bind(g(r)),r.moveImage=r.moveImage.bind(g(r)),r.setLocals(e,t),r}return d(a,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.imageIndex,r=t.container,a=t.fullContainer,o=r.images||[],i=a.images||[];this.container=o[n],this.fullContainer=i[n]}},{key:"getChildContext",value:function(){var e=this;return{getValObject:function(t){return e.context.getValObject?e.context.getValObject("images[].".concat(t)):null},updateContainer:this.updateImage,deleteContainer:this.deleteImage,container:this.container,fullContainer:this.fullContainer,moveContainer:this.moveImage}}},{key:"updateImage",value:function(e){var t={},n=this.props.imageIndex;for(var r in e){var a="images[".concat(n,"].").concat(r);t[a]=e[r]}this.context.updateContainer(t)}},{key:"deleteImage",value:function(){this.context.onUpdate&&this.context.onUpdate({type:i.EDITOR_ACTIONS.DELETE_IMAGE,payload:{imageIndex:this.props.imageIndex}})}},{key:"moveImage",value:function(e){if(this.context.onUpdate){var t=this.props.imageIndex,n="up"===e?t-1:t+1;this.context.onUpdate({type:i.EDITOR_ACTIONS.MOVE_TO,payload:{fromIndex:t,toIndex:n,path:"layout.images"}})}}},{key:"render",value:function(){return r.default.createElement(e,this.props)}}]),a}(r.Component);t.displayName="ImageConnected".concat((0,o.getDisplayName)(e)),t.propTypes={imageIndex:a.default.number.isRequired},t.contextTypes={container:a.default.object,fullContainer:a.default.object,data:a.default.array,onUpdate:a.default.func,updateContainer:a.default.func,getValObject:a.default.func},t.childContextTypes={updateContainer:a.default.func,deleteContainer:a.default.func,container:a.default.object,fullContainer:a.default.object,getValObject:a.default.func,moveContainer:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},"057f":function(e,t,n){var r=n("fc6a"),a=n("241c").f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return a(e)}catch(t){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==o.call(e)?l(e):a(r(e))}},"05ae":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatch=void 0;var r=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},a=n("ab5b"),o=f(a),i=n("fc55"),l=f(i),s=n("8daa"),u=n("36ad"),c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}var p=13,d=t.Swatch=function(e){var t=e.color,n=e.style,a=e.onClick,i=void 0===a?function(){}:a,s=e.onHover,u=e.title,f=void 0===u?t:u,d=e.children,h=e.focus,v=e.focusStyle,m=void 0===v?{}:v,y="transparent"===t,g=(0,l.default)({default:{swatch:r({background:t,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,h?m:{})}}),b=function(e){return i(t,e)},x=function(e){return e.keyCode===p&&i(t,e)},_=function(e){return s(t,e)},w={};return s&&(w.onMouseOver=_),o.default.createElement("div",r({style:g.swatch,onClick:b,title:f,tabIndex:0,onKeyDown:x},w),d,y&&o.default.createElement(c.default,{borderRadius:g.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};t.default=(0,s.handleFocus)(d)},"0644":function(e,t,n){"use strict";var r=n("19b2"),a=n("f6a4"),o=n("1d16"),i=n("7e6f").BADNUM,l=1e-9;function s(e,t){return e<t}function u(e,t){return e<=t}function c(e,t){return e>t}function f(e,t){return e>=t}t.findBin=function(e,t,n){if(r(t.start))return n?Math.ceil((e-t.start)/t.size-l)-1:Math.floor((e-t.start)/t.size+l);var o,i,p=0,d=t.length,h=0,v=d>1?(t[d-1]-t[0])/(d-1):1;i=v>=0?n?s:u:n?f:c,e+=v*l*(n?-1:1)*(v>=0?1:-1);while(p<d&&h++<100)o=Math.floor((p+d)/2),i(t[o],e)?p=o+1:d=o;return h>90&&a.log("Long binary search..."),p-1},t.sorterAsc=function(e,t){return e-t},t.sorterDes=function(e,t){return t-e},t.distinctVals=function(e,n){var r,a=(n||{}).unitMinDiff,o=e.slice();for(o.sort(t.sorterAsc),r=o.length-1;r>-1;r--)if(o[r]!==i)break;var l=1;a||(l=o[r]-o[0]||1);for(var s,u=l/(r||1)/1e4,c=[],f=0;f<=r;f++){var p=o[f],d=p-s;void 0===s?(c.push(p),s=p):d>u&&(l=Math.min(l,d),c.push(p),s=p)}return{vals:c,minDiff:l}},t.roundUp=function(e,t,n){var r,a=0,o=t.length-1,i=0,l=n?0:1,s=n?1:0,u=n?Math.ceil:Math.floor;while(a<o&&i++<100)r=u((a+o)/2),t[r]<=e?a=r+l:o=r-s;return t[a]},t.sort=function(e,t){for(var n=0,r=0,a=1;a<e.length;a++){var o=t(e[a],e[a-1]);if(o<0?n=1:o>0&&(r=1),n&&r)return e.sort(t)}return r?e:e.reverse()},t.findIndexOfMin=function(e,t){t=t||o;for(var n,r=1/0,a=0;a<e.length;a++){var i=t(e[a]);i<r&&(r=i,n=a)}return n}},"06444":function(e,t,n){var r=n("3818"),a=1,o=4;function i(e){return r(e,a|o)}e.exports=i},"0664":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesColor=void 0;var r=n("ab5b"),a=p(r),o=n("fc55"),i=p(o),l=n("a7cc"),s=p(l),u=n("4ccf"),c=n("aa5f"),f=p(c);function p(e){return e&&e.__esModule?e:{default:e}}var d=t.SwatchesColor=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,o=e.onSwatchHover,l=e.first,c=e.last,p=e.active,d=(0,i.default)({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:t,marginBottom:"1px"},check:{color:s.default.getContrastingColor(t),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:l,last:c,active:p,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return a.default.createElement(u.Swatch,{color:t,style:d.color,onClick:r,onHover:o,focusStyle:{boxShadow:"0 0 4px "+t}},a.default.createElement("div",{style:d.check},a.default.createElement(f.default,null)))};t.default=d},"06cf":function(e,t,n){var r=n("83ab"),a=n("d1e7"),o=n("5c6c"),i=n("fc6a"),l=n("c04e"),s=n("5135"),u=n("0cfb"),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=i(e),t=l(t,!0),u)try{return c(e,t)}catch(n){}if(s(e,t))return o(!a.f.call(e,t),e[t])}},"0714":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterValue=t.FilterOperation=void 0;var r=f(n("5174")),a=f(n("d7bc")),o=c(n("ab5b")),i=f(n("f51b")),l=f(n("0956")),s=n("4578");function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==v(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return v="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},v(e)}function m(){return m=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},m.apply(this,arguments)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 b(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function x(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&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=E();return function(){var n,r=O(e);if(t){var a=O(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==v(t)&&"function"!==typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(){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}}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var M=function(e){return{inequality:[{value:"!=",label:e("Target ≠ Reference")},{value:"<",label:e("Target < Reference")},{value:"<=",label:e("Target ≤ Reference")},{value:"=",label:e("Target = Reference")},{value:">",label:e("Target > Reference")},{value:">=",label:e("Target ≥ Reference")}],inrange:[{value:"[]",label:e("Lower ≤ Target ≤ Upper")},{value:"()",label:e("Lower < Target < Upper")},{value:"[)",label:e("Lower ≤ Target < Upper")},{value:"(]",label:e("Lower < Target ≤ Upper")}],exrange:[{value:")(",label:e("Lower ≤ Target ≤ Upper")},{value:"][",label:e("Lower < Target < Upper")},{value:")[",label:e("Lower ≤ Target < Upper")},{value:"](",label:e("Lower < Target ≤ Upper")}],inset:[{value:"{}",label:e("Include")}],exset:[{value:"}{",label:e("Exclude")}]}},S=function(e,t){var n="inequality",r=M(t);for(var a in r)if(r.hasOwnProperty(a)&&-1!==r[a].map((function(e){return e.value})).indexOf(e)){n=a;break}return n},C=function(e){x(n,e);var t=w(n);function n(e,r){var a;y(this,n),a=t.call(this,e,r);var o=r.localize;return a.state={operation:S(a.props.fullValue,o),operator:M(o).inequality[0].value},a.setOperation=a.setOperation.bind(T(a)),a}return b(n,[{key:"setOperation",value:function(e){var t=this.context.localize,n=M(t)[e][0].value;this.setState({operation:e,operator:n}),this.props.updatePlot(n)}},{key:"render",value:function(){var e=this.props,t=e.fullValue,n=e.updatePlot,a=e.backgroundDark,l=e.attr,s=this.context.localize,u=[{label:s("Inequality"),value:"inequality"},{label:s("Include Range"),value:"inrange"},{label:s("Exclude Range"),value:"exrange"},{label:s("Include Values"),value:"inset"},{label:s("Exclude Values"),value:"exset"}],c=t&&t.length>0?t:this.state.operator;return o.default.createElement("div",null,o.default.createElement(r.default,m({},this.props,{attr:l}),o.default.createElement(i.default,{backgroundDark:a,options:u,value:S(c,s),onChange:this.setOperation,clearable:!1}),"inset"===this.state.operation||"exset"===this.state.operation?null:o.default.createElement(i.default,{backgroundDark:a,options:M(s)[this.state.operation],value:c,onChange:n,clearable:!1})))}}]),n}(o.Component);C.propTypes=d({fullValue:a.default.any,updatePlot:a.default.func},r.default.propTypes),C.contextTypes={localize:a.default.func};var A=function(e){x(n,e);var t=w(n);function n(e,r){var a;return y(this,n),a=t.call(this,e,r),a.state={value:"",valueMax:""},a.setValue=a.setValue.bind(T(a)),a.setValueMax=a.setValueMax.bind(T(a)),a}return b(n,[{key:"setValue",value:function(e){var t,n=this.context,r=n.localize,a=n.container,o=S(a.operation,r);this.setState({value:e}),t="inrange"===o||"exrange"===o?[e,this.state.valueMax]:e,"inset"!==o&&"exset"!==o||(t=t.split(","),t=t.map((function(e){return e.trim()}))),this.props.updatePlot(t)}},{key:"setValueMax",value:function(e){this.setState({valueMax:e}),this.props.updatePlot([this.state.value,e])}},{key:"render",value:function(){var e=this.context,t=e.localize,n=e.container,a=n&&n.operation?n.operation:"=",i=this.props,s=i.fullValue,u=i.attr,c=i.defaultValue,f=S(a,t),p=t("Reference");"inrange"===f||"exrange"===f?p=t("Lower Bound"):"inset"!==f&&"exset"!==f||(p=t("Values"));var d=s;return"inset"!==f&&"exset"!==f||!Array.isArray(s)?Array.isArray(s)&&(d=s[0]):d=s.join(", "),o.default.createElement("div",null,o.default.createElement(r.default,m({},this.props,{label:p}),o.default.createElement(l.default,{value:d,defaultValue:d,onUpdate:this.setValue})),"inrange"!==f&&"exrange"!==f?null:o.default.createElement(r.default,m({},this.props,{label:t("Upper Bound"),attr:u}),o.default.createElement(l.default,{value:Array.isArray(s)?s[1]:s,defaultValue:c,onUpdate:this.setValueMax})))}}]),n}(o.Component);A.propTypes=d({defaultValue:a.default.string,fullValue:a.default.any,updatePlot:a.default.func},r.default.propTypes),A.contextTypes={localize:a.default.func,container:a.default.object};var P=(0,s.connectToContainer)(C);t.FilterOperation=P;var L=(0,s.connectToContainer)(A);t.FilterValue=L},"073f":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M2,2H16V16H2V2M22,8V22H8V18H18V8H22M4,4V14H14V4H4Z"}))};e.exports=l},"0746":function(e,t,n){"use strict";var r=n("24be"),a=n("ac96"),o=n("24f7"),i=n("d8db"),l=n("321f"),s=o.List,u=o.Map,c=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},f=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),a=n.getKey();c(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,o=t.toArray();return o.splice(n,0,a),e.merge({children:s(o)})})),c(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:a})})),c(r,e,(function(e){return e.merge({nextSibling:a})})),c(a,e,(function(e){return e.merge({prevSibling:r})}))}))},p=function(e,t){t.isCollapsed()||i(!1);var n=t.getAnchorKey(),o=e.getBlockMap(),s=o.get(n),c=s.getText();if(!c){var p=s.getType();if("unordered-list-item"===p||"ordered-list-item"===p)return l(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var d=t.getAnchorOffset(),h=s.getCharacterList(),v=a(),m=s instanceof r,y=s.merge({text:c.slice(0,d),characterList:h.slice(0,d)}),g=y.merge({key:v,text:c.slice(d),characterList:h.slice(d),data:u()}),b=o.toSeq().takeUntil((function(e){return e===s})),x=o.toSeq().skipUntil((function(e){return e===s})).rest(),_=b.concat([[n,y],[v,g]],x).toOrderedMap();return m&&(s.getChildKeys().isEmpty()||i(!1),_=f(_,y,g)),e.merge({blockMap:_,selectionBefore:t,selectionAfter:t.merge({anchorKey:v,anchorOffset:0,focusKey:v,focusOffset:0,isBackward:!1})})};e.exports=p},"0793":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){var n={},r=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];n[e]=t};return 0===e&&r("first-child"),e===t-1&&r("last-child"),(0===e||e%2===0)&&r("even"),1===Math.abs(e%2)&&r("odd"),r("nth-child",e),n};t.default=r},"07c7":function(e,t){function n(){return!1}e.exports=n},"0848":function(e,t,n){},"087d":function(e,t){function n(e,t){var n=-1,r=t.length,a=e.length;while(++n<r)e[a+n]=t[n];return e}e.exports=n},"0895":function(e,t,n){"use strict";var r=n("320c");function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=n("58b1"),s=n("ab5b"),u=n("d8db"),c=n("681d"),f=n("3b8c").setDraftEditorSelection,p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t=e.call.apply(e,[this].concat(r))||this,i(a(t),"leaf",void 0),t}o(t,e);var n=t.prototype;return n._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,a=t.text,o=n.getKey(),i=r+a.length;if(e.hasEdgeWithin(o,r,i)){var l=this.leaf;l||u(!1);var s,p=l.firstChild;p||u(!1),p.nodeType===Node.TEXT_NODE?s=p:c(p)?s=l:(s=p.firstChild,s||u(!1)),f(e,s,o,r,i)}}},n.shouldComponentUpdate=function(e){var t=this.leaf;t||u(!1);var n=t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection;return n},n.componentDidUpdate=function(){this._setSelection()},n.componentDidMount=function(){this._setSelection()},n.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var a=this.props,o=a.customStyleMap,i=a.customStyleFn,u=a.offsetKey,c=a.styleSet,f=c.reduce((function(e,t){var n={},a=o[t];return void 0!==a&&e.textDecoration!==a.textDecoration&&(n.textDecoration=[e.textDecoration,a.textDecoration].join(" ").trim()),r(e,a,n)}),{});if(i){var p=i(c,t);f=r(f,p)}return s.createElement("span",{"data-offset-key":u,ref:function(t){return e.leaf=t},style:f},s.createElement(l,null,n))},t}(s.Component);e.exports=p},"08cc":function(e,t,n){var r=n("1a8c");function a(e){return e===e&&!r(e)}e.exports=a},"08f4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M17.313 5.313h-2.625v8L0 18.688l16 8 16-8-14.688-5.375zM9 20a1.68 1.68 0 0 1-1.688-1.688c0-.875.75-1.625 1.688-1.625s1.688.75 1.688 1.625A1.68 1.68 0 0 1 9 20zm6.688 4.688C14.75 24.688 14 23.938 14 23s.75-1.688 1.688-1.688c.875 0 1.625.75 1.625 1.688s-.75 1.688-1.625 1.688zm8-7.375c.875 0 1.625.75 1.625 1.688s-.75 1.688-1.625 1.688c-.938 0-1.688-.75-1.688-1.688s.75-1.688 1.688-1.688zm-5-1c0 .938-.75 1.688-1.688 1.688s-1.688-.75-1.688-1.688c0-.875.75-1.625 1.688-1.625s1.688.75 1.688 1.625zM5.313 7c0 .938-.75 1.688-1.625 1.688C2.75 8.688 2 7.938 2 7s.75-1.688 1.688-1.688c.875 0 1.625.75 1.625 1.688zM12 11.688c0 .875-.75 1.625-1.688 1.625-.875 0-1.625-.75-1.625-1.625 0-.938.75-1.688 1.625-1.688.938 0 1.688.75 1.688 1.688zm-8.687 2c0 .875-.75 1.625-1.625 1.625-.938 0-1.688-.75-1.688-1.625C0 12.75.75 12 1.688 12c.875 0 1.625.75 1.625 1.688zm26.687 0c0 .875-.75 1.625-1.688 1.625-.875 0-1.625-.75-1.625-1.625 0-.938.75-1.688 1.625-1.688.938 0 1.688.75 1.688 1.688zM23.313 9c0 .938-.75 1.688-1.625 1.688C20.75 10.688 20 9.938 20 9s.75-1.688 1.688-1.688c.875 0 1.625.75 1.625 1.688zM32 7a1.68 1.68 0 0 1-1.688 1.688c-.875 0-1.625-.75-1.625-1.688s.75-1.688 1.625-1.688C31.25 5.312 32 6.062 32 7z"}))};t.default=u},"090e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedText=void 0;var r=c(n("5174")),a=c(n("0956")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=function(e){g(n,e);var t=x(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){var e,t=this.props.fullValue;return this.props.multiValued&&(e=t,t=""),i.default.createElement(r.default,this.props,i.default.createElement(a.default,{value:t,defaultValue:this.props.defaultValue,placeholder:e,onUpdate:this.props.updatePlot,onChange:this.props.onChange}))}}]),n}(i.Component);t.UnconnectedText=E,E.propTypes=d({defaultValue:o.default.any,fullValue:o.default.any,multiValued:o.default.bool,updatePlot:o.default.func,onChange:o.default.func},r.default.propTypes),E.displayName="UnconnectedText";var O=(0,l.connectToContainer)(E);t.default=O},"0945":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M19.35,10.03C18.67,6.59 15.64,4 12,4C9.11,4 6.6,5.64 5.35,8.03C2.34,8.36 0,10.9 0,14C0,17.31 2.69,20 6,20H19C21.76,20 24,17.76 24,15C24,12.36 21.95,10.22 19.35,10.03Z"}))};e.exports=l},"0956":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("43fa")),a=l(n("ab5b")),o=s(n("d7bc"));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){d(n,e);var t=v(n);function n(e){var r;return c(this,n),r=t.call(this,e),r.state={value:e.value},r}return p(n,[{key:"componentWillReceiveProps",value:function(e){e.value!==this.state.value&&this.setState({value:e.value})}},{key:"render",value:function(){var e=this;return a.default.createElement(r.default,{className:"text-input ".concat(this.props.editableClassName?this.props.editableClassName:""),placeholder:this.props.placeholder,text:this.state.value,type:"text",onChange:function(t){e.props.onChange&&e.props.onChange(t),e.setState({value:t})},onUpdate:this.props.onUpdate})}}]),n}(a.Component);t.default=x,x.propTypes={defaultValue:o.default.any,editableClassName:o.default.string,onUpdate:o.default.func.isRequired,onChange:o.default.func,placeholder:o.default.string,value:o.default.any}},"0984":function(e,t,n){"use strict";var r=n("28bf"),a=n("41f4"),o=n("6ddf"),i=n("ad65");function l(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,a.contains(o,t))}function s(e){return"Windows"===r.platformName?e.replace(/^\s*NT/,""):e}var u={isBrowser:function(e){return l(r.browserName,r.browserFullVersion,e)},isBrowserArchitecture:function(e){return l(r.browserArchitecture,null,e)},isDevice:function(e){return l(r.deviceName,null,e)},isEngine:function(e){return l(r.engineName,r.engineVersion,e)},isPlatform:function(e){return l(r.platformName,r.platformFullVersion,e,s)},isPlatformArchitecture:function(e){return l(r.platformArchitecture,null,e)}};e.exports=o(u,i)},"0ac6":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M12,4C14.21,4 16,5.79 16,8C16,10.21 14.21,12 12,12C9.79,12 8,10.21 8,8C8,5.79 9.79,4 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z"}))};e.exports=l},"0b07":function(e,t,n){var r=n("34ac"),a=n("3698");function o(e,t){var n=a(e,t);return r(n)?n:void 0}e.exports=o},"0bab":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.laTeXToHTML=t.htmlToLaTeX=t.hasTextExpression=t.isLaTeXExpr=void 0;var r=function(){return/\\text\{([^}]*)}/g},a=function(){return/^\$[\s\S]*\$$/},o=function(e){return e.replace(/<[^>]*>/g,"").trim()},i=function(e){var t,n,a=[],o=JSON.stringify(e),i=r();while(null!==(t=i.exec(o)))n=t[1].trim().replace("\\n",""),a.push(n);return a.join("<br>")},l=function(e){return e?"$".concat(e,"$"):"$$"},s=function(e){return e?"\\text{".concat(e,"}"):"\\text{}"},u=function(e){return a().test(e)};t.isLaTeXExpr=u;var c=function(e){var t=r(),n=JSON.stringify(e);return t.test(n)};t.hasTextExpression=c;var f=function(e){var t="<br>",n=e.trim();return""===n||""===n.replace(t,"")?l(s()):l(n.split(t).map((function(e){return e.length?s(o(e)):""})).join("\n"))};t.htmlToLaTeX=f;var p=function(e){var t=e.trim();return i(t)};t.laTeXToHTML=p},"0bca":function(e,t,n){"use strict";var r=n("320c");function a(){return a=r||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},a.apply(this,arguments)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){s(e,t,n[t])}))}return e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=n("cb49"),c=n("22af"),f=n("ab5b"),p=n("a6b3"),d=n("e97a"),h=n("a759"),v=n("0de2"),m=n("b4a5"),y=n("24f7"),g=n("d8db"),b=n("38bc"),x=10,_=(y.List,function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t}),w=function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()},k=function(e,t,n){var r=[],a=!0,o=!1,i=void 0;try{for(var l,s=n.reverse()[Symbol.iterator]();!(a=(l=s.next()).done);a=!0){var u=l.value;if(u.type!==t)break;r.push(u)}}catch(h){o=!0,i=h}finally{try{a||null==s["return"]||s["return"]()}finally{if(o)throw i}}n.splice(n.indexOf(r[0]),r.length+1);var p=r.reverse(),d=p[0].key;return n.push(f.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":c.encode(d,0,0)},p)),n},T=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper,a=n.element||t.get("unstyled").element;return{Element:a,wrapperTemplate:r}},E=function(e,t){var n=t(e);if(!n)return{};var r=n.component,a=n.props,o=n.editable;return{CustomComponent:r,customProps:a,customEditable:o}},O=function(e,t,n,r,a,o){var i={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:o},s=r(e);return s&&(i.className=s),void 0!==a.customEditable&&(i=l({},i,{contentEditable:a.customEditable,suppressContentEditableWarning:!0})),i},M=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,s(o(t),"wrapperRef",f.createRef()),t}i(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,a=t.tree,o=!n.getChildKeys().isEmpty(),i=n!==e.block||a!==e.tree||r!==e.direction||_(e.selection,e.block.getKey())&&e.forceSelection;return o||i},n.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,a=d.getScrollParent(n),o=v(a);if(a===window){var i=h(n),l=i.y+i.height,s=m().height;r=l-s,r>0&&window.scrollTo(o.x,o.y+r+x)}else{b(n)||g(!1);var u=n,c=u.offsetHeight+u.offsetTop,f=a.offsetHeight+o.y;r=c-f,r>0&&p.setTop(a,p.getTop(a)+r+x)}}}},n.render=function(){var e=this,n=this.props,r=n.block,o=n.blockRenderMap,i=n.blockRendererFn,s=n.blockStyleFn,p=n.contentState,d=n.decorator,h=n.editorKey,v=n.editorState,m=n.customStyleFn,y=n.customStyleMap,g=n.direction,b=n.forceSelection,x=n.selection,M=n.tree,S=null;r.children.size&&(S=r.children.reduce((function(n,r){var a=c.encode(r,0,0),u=p.getBlockForKey(r),d=E(u,i),m=d.CustomComponent||t,y=T(u,o),g=y.Element,b=y.wrapperTemplate,x=O(u,h,a,s,d,null),_=l({},e.props,{tree:v.getBlockTree(r),blockProps:d.customProps,offsetKey:a,block:u});return n.push(f.createElement(g,x,f.createElement(m,_))),!b||w(u,p)||k(b,g,n),n}),[]));var C=r.getKey(),A=c.encode(C,0,0),P=E(r,i),L=P.CustomComponent,D=null!=L?f.createElement(L,a({},this.props,{tree:v.getBlockTree(C),blockProps:P.customProps,offsetKey:A,block:r})):f.createElement(u,{block:r,children:S,contentState:p,customStyleFn:m,customStyleMap:y,decorator:d,direction:g,forceSelection:b,hasSelection:_(x,C),selection:x,tree:M});if(r.getParentKey())return D;var j=T(r,o),I=j.Element,R=O(r,h,A,s,P,this.wrapperRef);return f.createElement(I,R,D)},t}(f.Component);e.exports=M},"0bd1":function(e,t,n){"use strict";var r=n("7f23"),a=n("dec3"),o=n("b3ca"),i=n("ef00"),l=n("5a4c"),s=n("0984"),u=n("4f8d"),c=n("1c40"),f=n("bdc3"),p=n("6147"),d=n("30f2"),h=n("d114"),v=n("ba3b"),m=n("dc1a"),y=n("b6e2"),g=n("a1c8"),b=n("4988"),x=o.isOptionKeyCommand,_=s.isBrowser("Chrome");function w(e,t,n){switch(e){case"redo":return a.redo(t);case"delete":return y(t);case"delete-word":return p(t);case"backspace":return m(t);case"backspace-word":return f(t);case"backspace-to-start-of-line":return c(t,n);case"split-block":return d(t);case"transpose-characters":return g(t);case"move-selection-to-start-of-block":return v(t);case"move-selection-to-end-of-block":return h(t);case"secondary-cut":return l.cut(t);case"secondary-paste":return l.paste(t);default:return t}}function k(e,t){var n=t.which,o=e._latestEditorState;function l(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case i.RETURN:if(t.preventDefault(),e.props.handleReturn&&u(e.props.handleReturn(t,o)))return;break;case i.ESC:if(t.preventDefault(),l("onEscape"))return;break;case i.TAB:if(l("onTab"))return;break;case i.UP:if(l("onUpArrow"))return;break;case i.RIGHT:if(l("onRightArrow"))return;break;case i.DOWN:if(l("onDownArrow"))return;break;case i.LEFT:if(l("onLeftArrow"))return;break;case i.SPACE:_&&x(t)&&t.preventDefault()}var s=e.props.keyBindingFn(t);if(null!=s&&""!==s)if("undo"!==s){if(t.preventDefault(),!e.props.handleKeyCommand||!u(e.props.handleKeyCommand(s,o,t.timeStamp))){var c=w(s,o,t);c!==o&&e.update(c)}}else b(t,o,e.update);else if(n===i.SPACE&&_&&x(t)){var f=r.replaceText(o.getCurrentContent(),o.getSelection()," ");e.update(a.push(o,f,"insert-characters"))}}e.exports=k},"0bea":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("ab5b")),a=i(n("d7bc")),o=n("c85e");function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var n=t.localize;return r.default.createElement(o.SubplotAccordion,null,r.default.createElement(o.PlotlySection,{name:n("Base Map"),attr:"style"},r.default.createElement(o.MapboxStyleDropdown,{label:n("Tile Source"),attr:"style"})),r.default.createElement(o.PlotlySection,{name:n("Layers"),attr:"style"},r.default.createElement(o.MapboxLayersAccordion,null,r.default.createElement(o.Radio,{attr:"below",options:[{label:n("Below Data"),value:"traces"},{label:n("Above Data"),value:""}]}),r.default.createElement(o.MapboxSourceArray,{label:n("Tile Source URL"),attr:"source",show:!0}))),r.default.createElement(o.PlotlySection,{name:n("Map Positioning")},r.default.createElement(o.Numeric,{label:n("Center Latitude"),attr:"center.lat"}),r.default.createElement(o.Numeric,{label:n("Center Longitude"),attr:"center.lon"}),r.default.createElement(o.Numeric,{label:n("Zoom Level"),attr:"zoom",min:0}),r.default.createElement(o.Numeric,{label:n("Bearing"),attr:"bearing"}),r.default.createElement(o.Numeric,{label:n("Pitch"),attr:"pitch",min:0}),r.default.createElement(o.Dropdown,{label:n("Bounds Fitting"),attr:"fitbounds",options:[{label:n("Off"),value:!1},{label:n("Locations"),value:"locations"},{label:n("GeoJSON"),value:"geojson"}],clearable:!1})),r.default.createElement(o.PlotlySection,{name:n("Map Projection")},r.default.createElement(o.Dropdown,{label:n("Region"),attr:"scope",options:[{label:n("World"),value:"world"},{label:n("USA"),value:"usa"},{label:n("Europe"),value:"europe"},{label:n("Asia"),value:"asia"},{label:n("Africa"),value:"africa"},{label:n("North America"),value:"north america"},{label:n("South America"),value:"south america"}],clearable:!1}),r.default.createElement(o.Dropdown,{label:n("Projection"),attr:"projection.type",clearable:!1,options:[{label:n("Equirectangular"),value:"equirectangular"},{label:n("Mercator"),value:"mercator"},{label:n("Orthographic"),value:"orthographic"},{label:n("Natural Earth"),value:"natural earth"},{label:n("Albers USA"),value:"albers usa"},{label:n("Winkel Tripel"),value:"winkel tripel"},{label:n("Robinson"),value:"robinson"},{label:n("Miller"),value:"miller"},{label:n("Kavrayskiy 7"),value:"kavrayskiy7"},{label:n("Eckert 4"),value:"eckert4"},{label:n("Azimuthal Equal Area"),value:"azimuthal equal area"},{label:n("Azimuthal Equidistant"),value:"azimuthal equidistant"},{label:n("Conic Equal Area"),value:"conic equal area"},{label:n("Conic Conformal"),value:"conic conformal"},{label:n("Conic Equidistant"),value:"conic equidistant"},{label:n("Gnomonic"),value:"gnomonic"},{label:n("Stereographic"),value:"stereographic"},{label:n("Mollweide"),value:"mollweide"},{label:n("Hammer"),value:"hammer"},{label:n("Transverse Mercator"),value:"transverse mercator"},{label:n("Aitoff"),value:"aitoff"},{label:n("Sinusoidal"),value:"sinusoidal"}]}),r.default.createElement(o.Numeric,{label:n("Scale"),attr:"projection.scale",min:0}),r.default.createElement(o.Numeric,{label:n("Center Latitude"),attr:"projection.rotation.lon",min:0}),r.default.createElement(o.Numeric,{label:n("Center Longitude"),attr:"projection.rotation.lat",min:0}),r.default.createElement(o.Numeric,{label:n("Roll"),attr:"projection.rotation.roll",min:0})),r.default.createElement(o.PlotlySection,{name:n("Base Map"),attr:"visible"},r.default.createElement(o.Radio,{attr:"visible",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.Radio,{label:n("Resolution"),attr:"resolution",options:[{label:n("1:110,000,000"),value:110},{label:n("1:50,000,000"),value:50}]})),r.default.createElement(o.PlotlySection,{name:n("Country Borders"),attr:"showcountries"},r.default.createElement(o.Radio,{attr:"showcountries",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.Numeric,{label:n("Border Width"),attr:"countrywidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Border Color"),attr:"countrycolor"})),r.default.createElement(o.PlotlySection,{name:n("Sub-Country Unit Borders"),attr:"showsubunits"},r.default.createElement(o.Radio,{attr:"showsubunits",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.Numeric,{label:n("Border Width"),attr:"subunitwidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Border Color"),attr:"subunitcolor"})),r.default.createElement(o.PlotlySection,{name:n("Coastlines"),attr:"showcoastlines"},r.default.createElement(o.Radio,{attr:"showcoastlines",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.Numeric,{label:n("Width"),attr:"coastlinewidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"coastlinecolor"})),r.default.createElement(o.PlotlySection,{name:n("Oceans"),attr:"showocean"},r.default.createElement(o.Radio,{attr:"showocean",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"oceancolor"})),r.default.createElement(o.PlotlySection,{name:n("Land"),attr:"showland"},r.default.createElement(o.Radio,{attr:"showland",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"landcolor"})),r.default.createElement(o.PlotlySection,{name:n("Lakes"),attr:"showlakes"},r.default.createElement(o.Radio,{attr:"showlakes",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"lakecolor"})),r.default.createElement(o.PlotlySection,{name:n("Rivers"),attr:"showrivers"},r.default.createElement(o.Radio,{attr:"showrivers",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.Numeric,{label:n("Width"),attr:"riverwidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"rivercolor"})),r.default.createElement(o.PlotlySection,{name:n("Map Frame"),attr:"showframe"},r.default.createElement(o.Radio,{attr:"showframe",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.Numeric,{label:n("Width"),attr:"framewidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"framecolor"})))};l.contextTypes={localize:a.default.func};var s=l;t.default=s},"0c45":function(e,t,n){"use strict";n("da67");function r(e,t){var n,r=e.getSelection(),a=r.getStartKey(),o=r.getStartOffset(),i=e.getCurrentContent(),l=a,s=i.getBlockForKey(a);return t>s.getText().length-o?(l=i.getKeyAfter(a),n=0):n=o+t,r.merge({focusKey:l,focusOffset:n})}e.exports=r},"0c4d":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M12,2C6.48,2 2,6.48 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12C22,6.48 17.52,2 12,2Z"}))};e.exports=l},"0cfb":function(e,t,n){var r=n("83ab"),a=n("d039"),o=n("cc12");e.exports=!r&&!a((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},"0d17":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopButton=void 0;var r=n("ab5b"),a=l(r),o=n("fc55"),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.PhotoshopButton=function(e){var t=e.onClick,n=e.label,r=e.children,o=e.active,l=(0,i.default)({default:{button:{backgroundImage:"linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",border:"1px solid #878787",borderRadius:"2px",height:"20px",boxShadow:"0 1px 0 0 #EAEAEA",fontSize:"14px",color:"#000",lineHeight:"20px",textAlign:"center",marginBottom:"10px",cursor:"pointer"}},active:{button:{boxShadow:"0 0 0 1px #878787"}}},{active:o});return a.default.createElement("div",{style:l.button,onClick:t},n||r)};t.default=s},"0d24":function(e,t,n){(function(e){var r=n("2b3e"),a=n("07c7"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,l=i&&i.exports===o,s=l?r.Buffer:void 0,u=s?s.isBuffer:void 0,c=u||a;e.exports=c}).call(this,n("62e4")(e))},"0d3b":function(e,t,n){var r=n("d039"),a=n("b622"),o=n("c430"),i=a("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t["delete"]("b"),n+=r+e})),o&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"0d41":function(e,t,n){"use strict";var r=n("4a8b");e.exports={type:{valType:"enumerated",role:"info",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],role:"info",dflt:!0,editType:"calc",description:["Determines whether or not this trace is visible.","If *legendonly*, the trace is not drawn,","but can appear as a legend item","(provided that the legend itself is visible)."].join(" ")},showlegend:{valType:"boolean",role:"info",dflt:!0,editType:"style",description:["Determines whether or not an item corresponding to this","trace is shown in the legend."].join(" ")},legendgroup:{valType:"string",role:"info",dflt:"",editType:"style",description:["Sets the legend group for this trace.","Traces part of the same legend group hide/show at the same time","when toggling legend items."].join(" ")},opacity:{valType:"number",role:"style",min:0,max:1,dflt:1,editType:"style",description:"Sets the opacity of the trace."},name:{valType:"string",role:"info",editType:"style",description:["Sets the trace name.","The trace name appear as the legend item and on hover."].join(" ")},uid:{valType:"string",role:"info",editType:"plot",anim:!0,description:["Assign an id to this trace,","Use this to provide object constancy between traces during animations","and transitions."].join(" ")},ids:{valType:"data_array",editType:"calc",anim:!0,description:["Assigns id labels to each datum.","These ids for object constancy of data points during animation.","Should be an array of strings, not numbers or any other type."].join(" ")},customdata:{valType:"data_array",editType:"calc",description:["Assigns extra data each datum.","This may be useful when listening to hover, click and selection events.","Note that, *scatter* traces also appends customdata items in the markers","DOM elements"].join(" ")},meta:{valType:"any",arrayOk:!0,role:"info",editType:"plot",description:["Assigns extra meta information associated with this trace","that can be used in various text attributes.","Attributes such as trace `name`, graph, axis and colorbar `title.text`, annotation `text`","`rangeselector`, `updatemenues` and `sliders` `label` text","all support `meta`.","To access the trace `meta` values in an attribute in the same trace, simply use","`%{meta[i]}` where `i` is the index or key of the `meta`","item in question.","To access trace `meta` in layout attributes, use","`%{data[n[.meta[i]}` where `i` is the index or key of the `meta`","and `n` is the trace index."].join(" ")},selectedpoints:{valType:"any",role:"info",editType:"calc",description:["Array containing integer indices of selected points.","Has an effect only for traces that support selections.","Note that an empty array means an empty selection where the `unselected`","are turned on for all points, whereas, any other non-array values means no","selection all where the `selected` and `unselected` styles have no effect."].join(" ")},hoverinfo:{valType:"flaglist",role:"info",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none",description:["Determines which trace information appear on hover.","If `none` or `skip` are set, no information is displayed upon hovering.","But, if `none` is set, click and hover events are still fired."].join(" ")},hoverlabel:r.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,role:"info",editType:"calc",description:["The stream id number links a data trace on a plot with a stream.","See https://chart-studio.plotly.com/settings for more details."].join(" ")},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,role:"info",editType:"calc",description:["Sets the maximum number of points to keep on the plots from an","incoming stream.","If `maxpoints` is set to *50*, only the newest 50 points will","be displayed on the plot."].join(" ")},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc",description:["An array of operations that manipulate the trace data,","for example filtering or sorting the data arrays."].join(" ")},uirevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of some user-driven changes to the trace:","`constraintrange` in `parcoords` traces, as well as some","`editable: true` modifications such as `name` and `colorbar.title`.","Defaults to `layout.uirevision`.","Note that other user-driven trace attribute changes are controlled","by `layout` attributes:","`trace.visible` is controlled by `layout.legend.uirevision`,","`selectedpoints` is controlled by `layout.selectionrevision`,","and `colorbar.(x|y)` (accessible with `config: {editable: true}`)","is controlled by `layout.editrevision`.","Trace changes are tracked by `uid`, which only falls back on trace","index if no `uid` is provided. So if your app can add/remove traces","before the end of the `data` array, such that the same trace has a","different index, you can still preserve user-driven changes if you","give each trace a `uid` that stays with it as it moves."].join(" ")}}},"0d82":function(e,t,n){"use strict";var r=n("57c7"),a=n("6eee"),o=function(e,t){var n=t.getStartKey(),o=t.getStartOffset(),i=t.getEndKey(),l=t.getEndOffset(),s=a(e,t),u=s.getBlockMap(),c=u.keySeq(),f=c.indexOf(n),p=c.indexOf(i)+1;return r(u.slice(f,p).map((function(e,t){var r=e.getText(),a=e.getCharacterList();return n===i?e.merge({text:r.slice(o,l),characterList:a.slice(o,l)}):t===n?e.merge({text:r.slice(o),characterList:a.slice(o)}):t===i?e.merge({text:r.slice(0,l),characterList:a.slice(0,l)}):e})))};e.exports=o},"0de2":function(e,t,n){"use strict";var r=n("f372"),a=n("3310");function o(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=a(e),o=e===t?e.ownerDocument.documentElement:e,i=e.scrollWidth-o.clientWidth,l=e.scrollHeight-o.clientHeight;return n.x=Math.max(0,Math.min(n.x,i)),n.y=Math.max(0,Math.min(n.y,l)),n}e.exports=o},"0ed8":function(e,t,n){"use strict";var r=n("320c");function a(){return a=r||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},a.apply(this,arguments)}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n("0895"),u=n("22af"),c=n("ab5b"),f=n("a6b3"),p=n("e97a"),d=n("7d90"),h=n("9a31"),v=n("6152"),m=n("a759"),y=n("0de2"),g=n("b4a5"),b=n("d8db"),x=n("38bc"),_=n("8164"),w=10,k=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},T=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,l(o(t),"_node",void 0),t}i(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||k(e.selection,e.block.getKey())&&e.forceSelection},n.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,a=p.getScrollParent(n),o=y(a);if(a===window){var i=m(n),l=i.y+i.height,s=g().height;r=l-s,r>0&&window.scrollTo(o.x,o.y+r+w)}else{x(n)||b(!1);var u=n.offsetHeight+n.offsetTop,c=a.offsetTop+a.offsetHeight,d=c+o.y;r=u-d,r>0&&f.setTop(a,f.getTop(a)+r+w)}}}}},n._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=k(this.props.selection,n);return this.props.tree.map((function(l,f){var p=l.get("leaves");if(0===p.size)return null;var v=p.size-1,m=p.map((function(a,l){var p=u.encode(n,f,l),d=a.get("start"),h=a.get("end");return c.createElement(s,{key:p,offsetKey:p,block:t,start:d,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(d,h),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:f===o&&l===v})})).toArray(),y=l.get("decoratorKey");if(null==y)return m;if(!e.props.decorator)return m;var g=_(e.props.decorator),b=g.getComponentForKey(y);if(!b)return m;var x=g.getPropsForKey(y),w=u.encode(n,f,0),k=p.first().get("start"),T=p.last().get("end"),E=r.slice(k,T),O=t.getEntityAt(l.get("start")),M=h.getHTMLDirIfDifferent(d.getDirection(E),e.props.direction),S={contentState:e.props.contentState,decoratedText:E,dir:M,start:k,end:T,blockKey:n,entityKey:O,offsetKey:w};return c.createElement(b,a({},x,S,{key:w}),m)})).toArray()},n.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,a=v({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return c.createElement("div",{"data-offset-key":r,className:a,ref:function(t){return e._node=t}},this._renderChildren())},t}(c.Component);e.exports=T},"0f0f":function(e,t,n){var r=n("8eeb"),a=n("9934");function o(e,t){return e&&r(t,a(t),e)}e.exports=o},"0f2e":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"}))};e.exports=l},"0f32":function(e,t,n){var r=n("b047c"),a=n("1a8c"),o="Expected a function";function i(e,t,n){var i=!0,l=!0;if("function"!=typeof e)throw new TypeError(o);return a(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),r(e,t,{leading:i,maxWait:t,trailing:l})}e.exports=i},"0f3d":function(e,t,n){"use strict";var r=n("7795"),a=r.mod,o=r.modHalf,i=Math.PI,l=2*i;function s(e){return e/180*i}function u(e){return e/i*180}function c(e){return Math.abs(e[1]-e[0])>l-1e-14}function f(e,t){return o(t-e,l)}function p(e,t){return Math.abs(f(e,t))}function d(e,t){if(c(t))return!0;var n,r;t[0]<t[1]?(n=t[0],r=t[1]):(n=t[1],r=t[0]),n=a(n,l),r=a(r,l),n>r&&(r+=l);var o=a(e,l),i=o+l;return o>=n&&o<=r||i>=n&&i<=r}function h(e,t,n,r){return!!d(t,r)&&(n[0]<n[1]?(a=n[0],o=n[1]):(a=n[1],o=n[0]),e>=a&&e<=o);var a,o}function v(e,t,n,r,a,o,s){a=a||0,o=o||0;var u,f,p,d,h,v=c([n,r]);function m(e,t){return[e*Math.cos(t)+a,o-e*Math.sin(t)]}v?(u=0,f=i,p=l):n<r?(u=n,p=r):(u=r,p=n),e<t?(d=e,h=t):(d=t,h=e);var y,g=Math.abs(p-u)<=i?0:1;function b(e,t,n){return"A"+[e,e]+" "+[0,g,n]+" "+m(e,t)}return v?y=null===d?"M"+m(h,u)+b(h,f,0)+b(h,p,0)+"Z":"M"+m(d,u)+b(d,f,0)+b(d,p,0)+"ZM"+m(h,u)+b(h,f,1)+b(h,p,1)+"Z":null===d?(y="M"+m(h,u)+b(h,p,0),s&&(y+="L0,0Z")):y="M"+m(d,u)+"L"+m(h,u)+b(h,p,0)+"L"+m(d,p)+b(d,u,1)+"Z",y}function m(e,t,n,r,a){return v(null,e,t,n,r,a,0)}function y(e,t,n,r,a){return v(null,e,t,n,r,a,1)}function g(e,t,n,r,a,o){return v(e,t,n,r,a,o,1)}e.exports={deg2rad:s,rad2deg:u,angleDelta:f,angleDist:p,isFullCircle:c,isAngleInsideSector:d,isPtInsideSector:h,pathArc:m,pathSector:y,pathAnnulus:g}},"100e":function(e,t,n){var r=n("cd9d"),a=n("2286"),o=n("c1c9");function i(e,t){return o(a(e,t,r),e+"")}e.exports=i},1039:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 60 60"},e),o.default.createElement("path",{fill:"#119dff",d:"M13 18.66h6.27v29.33H13z"}),o.default.createElement("path",{fill:"#09ffff",d:"M20.59 18.67h5.65v7.23h-5.65zM34.36 11.83h5.42v24.11h-5.42z"}),o.default.createElement("path",{fill:"#119dff",d:"M27.4 25.9h5.45v10.05H27.4zM40.95 11.83h6.19V48h-6.19z"}),o.default.createElement("path",{fill:"none",stroke:"#119dff",d:"M13 18.53h13.31M27.47 35.65h12.32M34.41 12.06h12.73M20.52 25.61h12.32",strokeMiterlimit:"10",strokeWidth:".75"}))};t.default=u},1041:function(e,t,n){var r=n("8eeb"),a=n("a029");function o(e,t){return r(e,a(e),t)}e.exports=o},1063:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 60 60"},e),o.default.createElement("path",{fill:"#119dff",d:"M18.2 35.4l-5.6-10.8h34.8l-5.7 10.8H18.2z"}),o.default.createElement("path",{fill:"#0083d3",d:"M24.2 48l-5.5-10.8h22.6L35.8 48H24.2z"}),o.default.createElement("path",{fill:"#09ffff",d:"M12.2 22.8L6.5 12h47l-5.6 10.8H12.2z"}))};t.default=u},"10b4":function(e,t,n){"use strict";var r=n("19b2"),a=n("d560").isArrayOrTypedArray;function o(e,t){return function(){var n,r,i,l,s,u=e;for(l=0;l<t.length-1;l++){if(n=t[l],-1===n){for(r=!0,i=[],s=0;s<u.length;s++)i[s]=o(u[s],t.slice(l+1))(),i[s]!==i[0]&&(r=!1);return r?i[0]:i}if("number"===typeof n&&!a(u))return;if(u=u[n],"object"!==typeof u||null===u)return}if("object"===typeof u&&null!==u&&(i=u[t[l]],null!==i))return i}}e.exports=function(e,t){if(r(t))t=String(t);else if("string"!==typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";var n,a,i,l=0,u=t.split(".");while(l<u.length){if(n=String(u[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),n){if(n[1])u[l]=n[1];else{if(0!==l)throw"bad property string";u.splice(0,1)}for(a=n[2].substr(1,n[2].length-2).split("]["),i=0;i<a.length;i++)l++,u.splice(l,0,Number(a[i]))}l++}return"object"!==typeof e?p(e,t,u):{set:s(e,u,t),get:o(e,u),astr:t,parts:u,obj:e}};var i=/(^|\.)args\[/;function l(e,t){return void 0===e||null===e&&!t.match(i)}function s(e,t,n){return function(r){var o,i,s=e,p="",d=[[e,p]],h=l(r,n);for(i=0;i<t.length-1;i++){if(o=t[i],"number"===typeof o&&!a(s))throw"array index but container is not an array";if(-1===o){if(h=!c(s,t.slice(i+1),r,n),h)break;return}if(!f(s,o,t[i+1],h))break;if(s=s[o],"object"!==typeof s||null===s)throw"container is not an object";p=u(p,o),d.push([s,p])}if(h){if(i===t.length-1&&(delete s[t[i]],Array.isArray(s)&&+t[i]===s.length-1))while(s.length&&void 0===s[s.length-1])s.pop()}else s[t[i]]=r}}function u(e,t){var n=t;return r(t)?n="["+t+"]":e&&(n="."+t),e+n}function c(e,t,n,r){var o,i=a(n),u=!0,c=n,p=r.replace("-1",0),d=!i&&l(n,p),h=t[0];for(o=0;o<e.length;o++)p=r.replace("-1",o),i&&(c=n[o%n.length],d=l(c,p)),d&&(u=!1),f(e,o,h,d)&&s(e[o],t,r.replace("-1",o))(c);return u}function f(e,t,n,r){if(void 0===e[t]){if(r)return!1;e[t]="number"===typeof n?[]:{}}return!0}function p(e,t,n){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:n,obj:e}}},"110c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M9 4.063h22.25c.375.125.625.563.438.938-2.5 7.313-5 14.625-7.563 21.938-.125.5-.563.875-1.063 1H.812c-.438-.063-.688-.563-.5-.938 2.5-7.313 5.063-14.625 7.563-21.938.125-.5.625-.875 1.125-1m.375 1.875a83.164 83.164 0 0 1-1.25 3.625h3.688c.438-1.188.813-2.438 1.25-3.625H9.375m5.5 0a83.164 83.164 0 0 1-1.25 3.625c1.25 0 2.438.063 3.688 0a83.164 83.164 0 0 1 1.25-3.625h-3.688m5.5 0a83.164 83.164 0 0 1-1.25 3.625h3.688a83.164 83.164 0 0 1 1.25-3.625h-3.688m5.5 0a83.164 83.164 0 0 1-1.25 3.625h3.563c.125.063.125-.063.188-.188.375-1.125.813-2.313 1.188-3.438h-3.688M7.5 11.438c-.438 1.188-.813 2.438-1.25 3.625h3.688a83.164 83.164 0 0 1 1.25-3.625H7.5m4.25 3.625h3.625c.438-1.188.875-2.438 1.313-3.625H13c-.438 1.188-.813 2.438-1.25 3.625m6.75-3.625c-.438 1.188-.813 2.438-1.25 3.625h3.625c.438-1.188.875-2.438 1.313-3.625H18.5m5.5 0a82.752 82.752 0 0 0-1.25 3.625h3.625c.438-1.188.875-2.438 1.313-3.625H24M4.375 20.563H8a82.752 82.752 0 0 0 1.25-3.625H5.625a82.752 82.752 0 0 0-1.25 3.625m6.75-3.625a82.752 82.752 0 0 0-1.25 3.625H13.5a82.752 82.752 0 0 0 1.25-3.625h-3.625m5.5 0a82.752 82.752 0 0 0-1.25 3.625H19a82.752 82.752 0 0 0 1.25-3.625h-3.625m5.5 0a82.752 82.752 0 0 0-1.25 3.625H24.5a82.752 82.752 0 0 0 1.25-3.625h-3.625m-18.375 5.5c-.438 1.188-.875 2.438-1.313 3.625h3.688c.438-1.188.813-2.438 1.25-3.625-1.188 0-2.438-.063-3.625 0m5.438 0a83.164 83.164 0 0 1-1.25 3.625h3.688c.438-1.188.813-2.438 1.25-3.625-1.188 0-2.438-.063-3.688 0m5.5 0a83.164 83.164 0 0 1-1.25 3.625h3.688c.438-1.188.813-2.438 1.25-3.625-1.25 0-2.438-.063-3.688 0m5.5.125c-.438 1.188-.813 2.313-1.25 3.5h3.688a82.752 82.752 0 0 0 1.25-3.625h-3.625c-.063-.063-.063.063-.063.125z"}))};t.default=u},1155:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M29.375 16a8.377 8.377 0 0 0-1.063-4.063c-.75-1.188-1.75-2.125-2.938-2.875-1.313-.688-2.625-1.063-4-1.063-1.813 0-3.438.563-4.875 1.625a8.428 8.428 0 0 1 2.563 4.188h-.75a7.712 7.712 0 0 0-2.313-3.75 7.717 7.717 0 0 0-2.313 3.75h-.75c.438-1.625 1.25-3 2.563-4.188-1.438-1.063-3.063-1.625-4.875-1.625-1.375 0-2.688.375-4 1.063-1.188.75-2.188 1.688-2.938 2.875-.688 1.25-1.063 2.625-1.063 4.063s.375 2.813 1.063 4.063c.75 1.188 1.75 2.125 2.938 2.875 1.313.688 2.625 1.063 4 1.063 1.813 0 3.438-.563 4.875-1.625-1.188-1.063-2-2.313-2.5-3.875h.75a7.872 7.872 0 0 0 2.25 3.438 7.854 7.854 0 0 0 2.25-3.438h.75c-.5 1.563-1.313 2.813-2.5 3.875 1.438 1.063 3.063 1.625 4.875 1.625 1.375 0 2.688-.375 4-1.063 1.188-.75 2.188-1.688 2.938-2.875A8.377 8.377 0 0 0 29.375 16zm-23.25-1.937h1.25l-.625 3.875h-.813l.5-2.938-1.063 2.938h-.625V15l-.5 2.938h-.813l.688-3.875h1.188v2.375zm3.75 1.625c0 .188-.063.375-.063.563-.063.313-.125.625-.188.875 0 .25-.063.438-.125.625v.188h-.625v-.375c-.188.313-.5.438-.875.438-.25 0-.375-.063-.5-.188-.188-.188-.25-.438-.25-.688 0-.375.125-.688.375-.875a2.157 2.157 0 0 1 1.125-.313h.313v-.188c0-.188-.188-.25-.563-.25-.188 0-.5 0-.813.125 0-.188.063-.438.125-.688.313-.125.625-.188.938-.188.75 0 1.125.313 1.125.938zm-.937.812H8.75c-.438 0-.688.188-.688.5 0 .188.063.313.25.313s.313-.063.438-.188.188-.313.188-.625zm3.25-1.687l-.125.75c-.188-.063-.375-.063-.625-.063s-.375.063-.375.25c0 .063 0 .125.063.188l.25.125c.375.25.563.5.563.875 0 .688-.375 1.063-1.25 1.063-.375 0-.688-.063-.813-.063 0-.188.063-.438.125-.75.313.063.563.125.688.125.313 0 .5-.063.5-.25 0-.063-.063-.188-.063-.188-.125-.125-.188-.188-.375-.188-.375-.188-.563-.5-.563-.875 0-.688.375-1.063 1.188-1.063.375 0 .688 0 .813.063zm1.25 0h.375l-.063.813h-.438c0 .188-.063.375-.063.563 0 .063-.063.125-.063.25 0 .188-.063.25-.125.313v.25c0 .188.125.25.313.25.063 0 .125 0 .25-.063l-.125.75c-.125 0-.313.063-.625.063-.438 0-.625-.25-.625-.688 0-.25 0-.563.125-.875l.313-2.063h.813zm2.937 1.062c0 .313 0 .563-.063.813h-1.625c0 .188.063.375.125.438.125.125.313.188.563.188.313 0 .563-.063.875-.25l-.125.813c-.188.063-.5.125-.875.125-.875 0-1.375-.5-1.375-1.375 0-.625.125-1.063.438-1.375.25-.313.563-.5.938-.5s.688.125.875.313c.188.188.25.438.25.813zM14.75 16h.938v-.188l-.063-.125c0-.063-.063-.125-.063-.125-.063 0-.125-.063-.188-.063h-.125c-.25 0-.438.125-.5.5zm3.688-1.187c-.063.063-.125.375-.313.938-.188-.063-.313.063-.5.313-.125.5-.188 1.125-.313 1.875h-.875l.063-.188c.188-1.25.313-2.25.438-2.938h.813l-.125.438c.188-.188.313-.313.438-.375.125-.125.25-.125.375-.063zm2.812-.625l-.188.813c-.25-.125-.5-.188-.688-.188-.375 0-.625.125-.813.375s-.25.563-.25 1.063c0 .313.063.563.188.688.125.188.313.25.563.25.188 0 .438-.063.688-.188l-.125.875a2.322 2.322 0 0 1-.75.125c-.438 0-.75-.188-1.063-.5-.25-.25-.375-.625-.375-1.188 0-.625.188-1.188.563-1.625.313-.438.75-.688 1.313-.688.188 0 .5.063.938.188zm2.375 1.5s-.063.125-.063.25v.313c-.063.25-.125.563-.188.938 0 .375-.063.625-.125.75h-.625v-.375c-.188.313-.5.438-.875.438-.25 0-.375-.063-.5-.188-.188-.188-.25-.438-.25-.688 0-.375.125-.688.375-.875.313-.188.625-.313 1.063-.313h.313c.063-.063.063-.125.063-.188 0-.188-.188-.25-.5-.25-.25 0-.563 0-.875.125 0-.188 0-.438.125-.688.375-.125.625-.188.938-.188.75 0 1.125.313 1.125.938zm-.937.812H22.5c-.438 0-.688.188-.688.5 0 .188.125.313.25.313.188 0 .313-.063.438-.188s.188-.313.188-.625zm2.937-1.687c-.125.188-.25.5-.313.938-.188-.063-.313.063-.438.313s-.188.875-.375 1.875h-.813l.063-.188c.188-1 .313-2 .375-2.938h.813c0 .188-.063.313-.063.438.125-.188.25-.313.375-.375.188-.063.313-.125.375-.063zm2.063-.75h.875l-.688 3.875h-.75l.063-.313a.892.892 0 0 1-.75.375c-.375 0-.563-.125-.688-.375a1.235 1.235 0 0 1-.375-.875c0-.625.188-1.063.5-1.438.188-.313.5-.5.875-.5.313 0 .563.125.813.375zm-.313 2.062c0-.375-.188-.563-.438-.563a.515.515 0 0 0-.5.313c-.063.125-.125.375-.125.75s.125.563.375.563c.188 0 .375-.063.5-.25s.188-.438.188-.813z"}))};t.default=u},"11fa":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SwatchesGroup=void 0;var r=n("ab5b"),a=f(r),o=n("fc55"),i=f(o),l=n("dd61"),s=f(l),u=n("0664"),c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}var p=t.SwatchesGroup=function(e){var t=e.onClick,n=e.onSwatchHover,r=e.group,o=e.active,l=(0,i.default)({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return a.default.createElement("div",{style:l.group},(0,s.default)(r,(function(e,i){return a.default.createElement(c.default,{key:e,color:e,active:e.toLowerCase()===o,first:0===i,last:i===r.length-1,onClick:t,onSwatchHover:n})})))};t.default=p},1290:function(e,t){function n(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}e.exports=n},1304:function(e,t,n){var r=n("cd9d");function a(e){return"function"==typeof e?e:r}e.exports=a},1310:function(e,t){function n(e){return null!=e&&"object"==typeof e}e.exports=n},1330:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M9,4C11.21,4 13,5.79 13,8C13,10.21 11.21,12 9,12C6.79,12 5,10.21 5,8C5,5.79 6.79,4 9,4M9,6C7.9,6 7,6.9 7,8C7,9.1 7.9,10 9,10C10.1,10 11,9.1 11,8C11,6.9 10.1,6 9,6M9,13C11.67,13 17,14.34 17,17V20H1V17C1,14.34 6.33,13 9,13M9,14.9C6.03,14.9 2.9,16.36 2.9,17V18.1H15.1V17C15.1,16.36 11.97,14.9 9,14.9M15,4C17.21,4 19,5.79 19,8C19,10.21 17.21,12 15,12C14.53,12 14.08,11.92 13.67,11.77C14.5,10.74 15,9.43 15,8C15,6.57 14.5,5.26 13.67,4.23C14.08,4.08 14.53,4 15,4M23,17V20H19V16.5C19,15.25 18.24,14.1 16.97,13.18C19.68,13.62 23,14.9 23,17Z"}))};e.exports=l},"134d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedNumeric=void 0;var r=c(n("5174")),a=c(n("d8d0")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=function(e){g(n,e);var t=x(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){var e,t=this.props.fullValue;return this.props.multiValued&&(e=t,t=""),i.default.createElement(r.default,this.props,i.default.createElement(a.default,{value:t,defaultValue:this.props.defaultValue,placeholder:e,step:this.props.step,stepmode:this.props.stepmode,min:this.props.min,max:this.props.max,onChange:this.props.updatePlot,onUpdate:this.props.updatePlot,showArrows:!this.props.hideArrows,showSlider:this.props.showSlider}))}}]),n}(i.Component);t.UnconnectedNumeric=E,E.propTypes=d({defaultValue:o.default.any,fullValue:o.default.any,min:o.default.number,max:o.default.number,multiValued:o.default.bool,hideArrows:o.default.bool,showSlider:o.default.bool,step:o.default.number,stepmode:o.default.string,updatePlot:o.default.func},r.default.propTypes),E.displayName="UnconnectedNumeric";var O=(0,l.connectToContainer)(E);t.default=O},1359:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("ab5b")),a=i(n("d7bc")),o=n("c85e");function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var n=t.localize;return r.default.createElement(o.SliderAccordion,null,r.default.createElement(o.Radio,{attr:"visible",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.PlotlySection,{name:n("Background")},r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"bgcolor"}),r.default.createElement(o.ColorPicker,{label:n("Active Color"),attr:"activebgcolor"})),r.default.createElement(o.PlotlySection,{name:n("Border")},r.default.createElement(o.Numeric,{label:n("Width"),attr:"borderwidth"}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"bordercolor"})),r.default.createElement(o.PlotlySection,{name:n("Font")},r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:"font.family"}),r.default.createElement(o.Numeric,{label:n("Size"),attr:"font.size"}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"font.color"})),r.default.createElement(o.PlotlySection,{name:n("Length"),attr:"len"},r.default.createElement(o.Numeric,{label:n("Length"),attr:"len",step:.02}),r.default.createElement(o.Dropdown,{label:n("Length Mode"),attr:"lenmode",options:[{label:n("Fraction of canvas"),value:"fraction"},{label:n("Pixels"),value:"pixels"}]})),r.default.createElement(o.PlotlySection,{name:n("Horizontal Positioning"),attr:"x"},r.default.createElement(o.Numeric,{label:n("Position"),attr:"x",showSlider:!0,step:.02}),r.default.createElement(o.Radio,{label:n("Anchor"),attr:"xanchor",options:[{label:n("Left"),value:"left"},{label:n("Center"),value:"center"},{label:n("Right"),value:"right"}]})),r.default.createElement(o.PlotlySection,{name:n("Vertical Positioning"),attr:"y"},r.default.createElement(o.Numeric,{label:n("Position"),attr:"y",showSlider:!0,step:.02}),r.default.createElement(o.Radio,{label:n("Anchor"),attr:"yanchor",options:[{label:n("Top"),value:"top"},{label:n("Middle"),value:"middle"},{label:n("Bottom"),value:"bottom"}]})),r.default.createElement(o.PlotlySection,{name:n("Padding")},r.default.createElement(o.Numeric,{label:n("Top"),attr:"pad.t",units:"px"}),r.default.createElement(o.Numeric,{label:n("Bottom"),attr:"pad.b",units:"px"}),r.default.createElement(o.Numeric,{label:n("Left"),attr:"pad.l",units:"px"}),r.default.createElement(o.Numeric,{label:n("Right"),attr:"pad.r",units:"px"})),r.default.createElement(o.PlotlySection,{name:n("Ticks")},r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"tickcolor"}),r.default.createElement(o.Numeric,{label:n("Length"),attr:"ticklen"}),r.default.createElement(o.Numeric,{label:n("Width"),attr:"tickwidth"})))};l.contextTypes={localize:a.default.func};var s=l;t.default=s},1368:function(e,t,n){var r=n("da03"),a=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function o(e){return!!a&&a in e}e.exports=o},"144c":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M20,2H4C2.9,2 2,2.9 2,4V22L6,18H20C21.1,18 22,17.1 22,16V4C22,2.9 21.1,2 20,2M20,16H6L4,18V4H20"}))};e.exports=l},"14c3":function(e,t,n){var r=n("c6b6"),a=n("9263");e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw TypeError("RegExp#exec called on incompatible receiver");return a.call(e,t)}},"14e0":function(e,t,n){!function(t,r){e.exports=r(n("ab5b"),n("8bc8"))}(0,(function(e,t){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=82)}([function(t,n){t.exports=e},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r};e.exports=n(120)(a,!0)}else e.exports=n(122)()}).call(t,n(26))},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(43),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":(0,a.default)(t))&&"function"!==typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(113),o=r(a),i=n(117),l=r(i),s=n(43),u=r(s);t.default=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":(0,u.default)(t)));e.prototype=(0,l.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(86),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=a.default||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(e,t){var n=e.exports={version:"2.6.2"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(40)("wks"),a=n(29),o=n(11).Symbol,i="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=i&&o[e]||(i?o:a)("Symbol."+e))}).store=r},function(e,n){e.exports=t},function(e,t,n){"use strict";t.__esModule=!0;var r=n(69),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=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),(0,a.default)(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}()},function(e,t,n){var r=n(11),a=n(6),o=n(34),i=n(19),l=n(14),s=function(e,t,n){var u,c,f,p=e&s.F,d=e&s.G,h=e&s.S,v=e&s.P,m=e&s.B,y=e&s.W,g=d?a:a[t]||(a[t]={}),b=g.prototype,x=d?r:h?r[t]:(r[t]||{}).prototype;for(u in d&&(n=t),n)(c=!p&&x&&void 0!==x[u])&&l(g,u)||(f=c?x[u]:n[u],g[u]=d&&"function"!=typeof x[u]?n[u]:m&&c?o(f,r):y&&x[u]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((g.virtual||(g.virtual={}))[u]=f,e&s.R&&b&&!b[u]&&i(b,u,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(20),a=n(58),o=n(35),i=Object.defineProperty;t.f=n(13)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),a)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(22)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(61),a=n(37);e.exports=function(e){return r(a(e))}},function(e,t,n){var r,a;!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=n.apply(null,r);i&&e.push(i)}else if("object"===a)for(var l in r)o.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}var o={}.hasOwnProperty;"undefined"!==typeof e&&e.exports?(n.default=n,e.exports=n):(r=[],void 0!==(a=function(){return n}.apply(t,r))&&(e.exports=a))}()},function(e,t,n){"use strict";function r(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function a(e,t,n){var r=n;if("object"!==("undefined"===typeof t?"undefined":M(t)))return"undefined"!==typeof r?("number"===typeof r&&(r+="px"),void(e.style[t]=r)):C(e,t);for(var o in t)t.hasOwnProperty(o)&&a(e,o,t[o])}function o(e){var t=void 0,n=void 0,r=void 0,a=e.ownerDocument,o=a.body,i=a&&a.documentElement;return t=e.getBoundingClientRect(),n=t.left,r=t.top,n-=i.clientLeft||o.clientLeft||0,r-=i.clientTop||o.clientTop||0,{left:n,top:r}}function i(e,t){var n=e["page"+(t?"Y":"X")+"Offset"],r="scroll"+(t?"Top":"Left");if("number"!==typeof n){var a=e.document;n=a.documentElement[r],"number"!==typeof n&&(n=a.body[r])}return n}function l(e){return i(e)}function s(e){return i(e,!0)}function u(e){var t=o(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=l(r),t.top+=s(r),t}function c(e){return null!==e&&void 0!==e&&e==e.window}function f(e){return c(e)?e.document:9===e.nodeType?e:e.ownerDocument}function p(e,t,n){var r=n,a="",o=f(e);return r=r||o.defaultView.getComputedStyle(e,null),r&&(a=r.getPropertyValue(t)||r[t]),a}function d(e,t){var n=e[L]&&e[L][t];if(A.test(n)&&!P.test(t)){var r=e.style,a=r[j],o=e[D][j];e[D][j]=e[L][j],r[j]="fontSize"===t?"1em":n||0,n=r.pixelLeft+I,r[j]=a,e[D][j]=o}return""===n?"auto":n}function h(e,t){return"left"===e?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function v(e){return"left"===e?"right":"right"===e?"left":"top"===e?"bottom":"bottom"===e?"top":void 0}function m(e,t,n){"static"===a(e,"position")&&(e.style.position="relative");var o=-999,i=-999,l=h("left",n),s=h("top",n),c=v(l),f=v(s);"left"!==l&&(o=999),"top"!==s&&(i=999);var p="",d=u(e);("left"in t||"top"in t)&&(p=Object(O.c)(e)||"",Object(O.e)(e,"none")),"left"in t&&(e.style[c]="",e.style[l]=o+"px"),"top"in t&&(e.style[f]="",e.style[s]=i+"px"),r(e);var m=u(e),y={};for(var g in t)if(t.hasOwnProperty(g)){var b=h(g,n),x="left"===g?o:i,_=d[g]-m[g];y[b]=b===g?x+_:x-_}a(e,y),r(e),("left"in t||"top"in t)&&Object(O.e)(e,p);var w={};for(var k in t)if(t.hasOwnProperty(k)){var T=h(k,n),E=t[k]-d[k];w[T]=k===T?y[T]+E:y[T]-E}a(e,w)}function y(e,t){var n=u(e),r=Object(O.b)(e),a={x:r.x,y:r.y};"left"in t&&(a.x=r.x+t.left-n.left),"top"in t&&(a.y=r.y+t.top-n.top),Object(O.d)(e,a)}function g(e,t,n){if(n.ignoreShake){var r=u(e),a=r.left.toFixed(0),o=r.top.toFixed(0),i=t.left.toFixed(0),l=t.top.toFixed(0);if(a===i&&o===l)return}n.useCssRight||n.useCssBottom?m(e,t,n):n.useCssTransform&&Object(O.a)()in document.body.style?y(e,t,n):m(e,t,n)}function b(e,t){for(var n=0;n<e.length;n++)t(e[n])}function x(e){return"border-box"===C(e,"boxSizing")}function _(e,t,n){var r={},a=e.style,o=void 0;for(o in t)t.hasOwnProperty(o)&&(r[o]=a[o],a[o]=t[o]);for(o in n.call(e),t)t.hasOwnProperty(o)&&(a[o]=r[o])}function w(e,t,n){var r=0,a=void 0,o=void 0,i=void 0;for(o=0;o<t.length;o++)if(a=t[o])for(i=0;i<n.length;i++){var l=void 0;l="border"===a?""+a+n[i]+"Width":a+n[i],r+=parseFloat(C(e,l))||0}return r}function k(e,t,n){var r=n;if(c(e))return"width"===t?B.viewportWidth(e):B.viewportHeight(e);if(9===e.nodeType)return"width"===t?B.docWidth(e):B.docHeight(e);var a="width"===t?["Left","Right"]:["Top","Bottom"],o="width"===t?e.getBoundingClientRect().width:e.getBoundingClientRect().height,i=C(e),l=x(e,i),s=0;(null===o||void 0===o||o<=0)&&(o=void 0,s=C(e,t),(null===s||void 0===s||Number(s)<0)&&(s=e.style[t]||0),s=parseFloat(s)||0),void 0===r&&(r=l?F:z);var u=void 0!==o||l,f=o||s;return r===z?u?f-w(e,["border","padding"],a,i):s:u?r===F?f:f+(r===N?-w(e,["border"],a,i):w(e,["margin"],a,i)):s+w(e,R.slice(r),a,i)}function T(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=void 0,a=t[0];return 0!==a.offsetWidth?r=k.apply(void 0,t):_(a,V,(function(){r=k.apply(void 0,t)})),r}function E(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var O=n(137),M="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},S=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,C=void 0,A=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),P=/^(top|right|bottom|left)$/,L="currentStyle",D="runtimeStyle",j="left",I="px";"undefined"!==typeof window&&(C=window.getComputedStyle?p:d);var R=["margin","border","padding"],z=-1,N=2,F=1,B={};b(["Width","Height"],(function(e){B["doc"+e]=function(t){var n=t.document;return Math.max(n.documentElement["scroll"+e],n.body["scroll"+e],B["viewport"+e](n))},B["viewport"+e]=function(t){var n="client"+e,r=t.document,a=r.body,o=r.documentElement,i=o[n];return"CSS1Compat"===r.compatMode&&i||a&&a[n]||i}}));var V={position:"absolute",visibility:"hidden",display:"block"};b(["width","height"],(function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);B["outer"+t]=function(t,n){return t&&T(t,e,n?0:F)};var n="width"===e?["Left","Right"]:["Top","Bottom"];B[e]=function(t,r){var o=r;if(void 0===o)return t&&T(t,e,z);if(t){var i=C(t);return x(t)&&(o+=w(t,["padding","border"],n,i)),a(t,e,o)}}}));var H={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var t=e.ownerDocument||e;return t.defaultView||t.parentWindow},getDocument:f,offset:function(e,t,n){if("undefined"===typeof t)return u(e);g(e,t,n||{})},isWindow:c,each:b,css:a,clone:function(e){var t=void 0,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);if(e.overflow)for(t in e)e.hasOwnProperty(t)&&(n.overflow[t]=e.overflow[t]);return n},mix:E,getWindowScrollLeft:function(e){return l(e)},getWindowScrollTop:function(e){return s(e)},merge:function(){for(var e={},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];for(var a=0;a<n.length;a++)H.mix(e,n[a]);return e},viewportWidth:0,viewportHeight:0};E(H,B),t.a=H},function(e,t,n){"use strict";t.__esModule=!0;var r=n(69),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t,n){return t in e?(0,a.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(12),a=n(23);e.exports=n(13)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(21);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";t.__esModule=!0,t.default=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}},function(e,t){e.exports={}},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function a(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 o(e){if(f===clearTimeout)return clearTimeout(e);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(e);try{return f(e)}catch(t){try{return f.call(null,e)}catch(t){return f.call(this,e)}}}function i(){v&&d&&(v=!1,d.length?h=d.concat(h):m=-1,h.length&&l())}function l(){if(!v){var e=a(i);v=!0;for(var t=h.length;t;){for(d=h,h=[];++m<t;)d&&d[m].run();m=-1,t=h.length}d=null,v=!1,o(e)}}function s(e,t){this.fun=e,this.array=t}function u(){}var c,f,p=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}}();var d,h=[],v=!1,m=-1;p.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];h.push(new s(e,t)),1!==h.length||v||a(l)},s.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=u,p.addListener=u,p.once=u,p.off=u,p.removeListener=u,p.removeAllListeners=u,p.emit=u,p.prependListener=u,p.prependOnceListener=u,p.listeners=function(e){return[]},p.binding=function(e){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(e){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(e,t,n){var r=n(60),a=n(41);e.exports=Object.keys||function(e){return r(e,a)}},function(e,t){e.exports=!0},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(37);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";function r(e,t,n,r){var a=l.a.unstable_batchedUpdates?function(e){l.a.unstable_batchedUpdates(n,e)}:n;return o()(e,t,a,r)}t.a=r;var a=n(125),o=n.n(a),i=n(8),l=n.n(i)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_NPREVIEWCOLORS=t.DEFAULT_SWATCH_WIDTH=t.DEFAULT_BREAKPOINTS=t.DEFAULT_LOG_BREAKPOINTS=t.DEFAULT_SCALE=t.DEFAULT_SWATCHES=t.DEFAULT_NCOLORS=t.DEFAULT_LIGHTNESS=t.DEFAULT_GAMMA=t.DEFAULT_HUE=t.DEFAULT_ROTATIONS=t.DEFAULT_START=t.CUBEHELIX=t.CMOCEAN=t.BUILTINS=t.BREWER=t.COLORSCALE_DESCRIPTIONS=t.SCALES_WITHOUT_LOG=t.COLORSCALE_TYPES=void 0;var r=n(56),a=function(e){return e&&e.__esModule?e:{default:e}}(r),o=(t.COLORSCALE_TYPES=["sequential","divergent","categorical","cyclical","cubehelix","cmocean","custom"],t.SCALES_WITHOUT_LOG=["divergent","categorical","custom"],t.COLORSCALE_DESCRIPTIONS={sequential:"Use sequential colorscales for data that smoothly changes value and has meaningful order.",divergent:"Use divergent colorscales for data that smoothly changes around a centerpoint (such as zero).",categorical:"Use categorical colorscales for data that has distinct groups and a non-meaningful order.",cyclical:"Use cyclical colorscales for data that has a natural cycle, such as angular, diurnal or seasonal data.",cubehelix:'Cubehelix colorscales are like sequential scales, but have the added benefit of printing clearly in black & white. Adjust the "start" slider to change the scale\'s base color. A cubehelix scale with 0 rotation transitions through a single base color. A scale with non-zero rotation "rotates" through other colors. Change the rotation slightly to add a touch of another color, change it more to create a scale with multiple colors.',cmocean:"cmocean colorscales are a mix of sequential and diverging scales. They were originally developed for oceanography data, but can be applied beautifully to any other type of data as well.",custom:"Select a sequential or categorical colorscale, then set customized breakpoints for it in the text box above. The breakpoints should have meaning to your data. For example, you could color data related to human age by groups in between the years 0, 5, 13, 20, 40, and 70. Click the preview colorscale below when you are satisfied with your breakpoints."},t.BREWER={sequential:["Purples","Blues","Greens","Oranges","Reds","YlOrBr","YlOrRd","OrRd","PuRd","RdPu","BuPu","PuBu","PuBuGn","GnBu","BuGn","YlGnBu","YlGn","Greys"],divergent:["Spectral","RdYlGn","RdBu","PiYG","PRGn","RdYlBu","BrBG","RdGy"],categorical:["Set1","Pastel1","Dark2","Set2","Pastel2","Set3"]},t.BUILTINS={sequential:{Viridis:["#440154","#482878","#3e4989","#31688e","#26828e","#1f9e89","#35b779","#6ece58","#b5de2b","#fde725"],Cividis:["#00224e","#123570","#3b496c","#575d6d","#707173","#8a8678","#a59c74","#c3b369","#e1cc55","#fee838"],Inferno:["#000004","#1b0c41","#4a0c6b","#781c6d","#a52c60","#cf4446","#ed6925","#fb9b06","#f7d13d","#fcffa4"],Magma:["#000004","#180f3d","#440f76","#721f81","#9e2f7f","#cd4071","#f1605d","#fd9668","#feca8d","#fcfdbf"],Plasma:["#0d0887","#46039f","#7201a8","#9c179e","#bd3786","#d8576b","#ed7953","#fb9f3a","#fdca26","#f0f921"]},categorical:{D3:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],G10:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395"],T10:["#4c78a8","#f58518","#e45756","#72b7b2","#54a24b","#eeca3b","#b279a2","#ff9da6","#9d755d","#bab0ac"],Alphabet:["#AA0DFE","#3283FE","#85660D","#782AB6","#565656","#1C8356","#16FF32","#F7E1A0","#E2E2E2","#1CBE4F","#C4451C","#DEA0FD","#FE00FA","#325A9B","#FEAF16","#F8A19F","#90AD1C","#F6222E","#1CFFCE","#2ED9FF","#B10DA1","#C075A6","#FC1CBF","#B00068","#FBE426","#FA0087"],Dark24:["#2E91E5","#E15F99","#1CA71C","#FB0D0D","#DA16FF","#222A2A","#B68100","#750D86","#EB663B","#511CFB","#00A08B","#FB00D1","#FC0080","#B2828D","#6C7C32","#778AAE","#862A16","#A777F1","#620042","#1616A7","#DA60CA","#6C4516","#0D2A63","#AF0038"],Light24:["#FD3216","#00FE35","#6A76FC","#FED4C4","#FE00CE","#0DF9FF","#F6F926","#FF9616","#479B55","#EEA6FB","#DC587D","#D626FF","#6E899C","#00B5F7","#B68E00","#C9FBE5","#FF0092","#22FFA7","#E3EE9E","#86CE00","#BC7196","#7E7DCD","#FC6955","#E48F72"]},cyclical:{Twilight:["#e2d9e2","#9ebbc9","#6785be","#5e43a5","#421257","#471340","#8e2c50","#ba6657","#ceac94","#e2d9e2"],IceFire:["#000000","#001f4d","#003786","#0e58a8","#217eb8","#30a4ca","#54c8df","#9be4ef","#e1e9d1","#f3d573","#e7b000","#da8200","#c65400","#ac2301","#820000","#4c0000","#040100"],Edge:["#313131","#3d019d","#3810dc","#2d47f9","#2593ff","#2adef6","#60fdfa","#aefdff","#f3f3f1","#fffda9","#fafd5b","#f7da29","#ff8e25","#f8432d","#d90d39","#97023d","#313131"],Phase:["rgb(167, 119, 12)","rgb(197, 96, 51)","rgb(217, 67, 96)","rgb(221, 38, 163)","rgb(196, 59, 224)","rgb(153, 97, 244)","rgb(95, 127, 228)","rgb(40, 144, 183)","rgb(15, 151, 136)","rgb(39, 153, 79)","rgb(119, 141, 17)","rgb(167, 119, 12)"],HSV:["#ff0000","#ffa700","#afff00","#08ff00","#00ff9f","#00b7ff","#0010ff","#9700ff","#ff00bf","#ff0018"],mrybm:["#f884f7","#f968c4","#ea4388","#cf244b","#b51a15","#bd4304","#cc6904","#d58f04","#cfaa27","#a19f62","#588a93","#2269c4","#3e3ef0","#6b4ef9","#956bfa","#cd7dfe"],mygbm:["#ef55f1","#fb84ce","#fbafa1","#fcd471","#f0ed35","#c6e516","#96d310","#61c10b","#31ac28","#439064","#3d719a","#284ec8","#2e21ea","#6324f5","#9139fa","#c543fa"]}},t.CMOCEAN={turbid:["rgb(232, 245, 171)","rgb(220, 219, 137)","rgb(209, 193, 107)","rgb(199, 168, 83)","rgb(186, 143, 66)","rgb(170, 121, 60)","rgb(151, 103, 58)","rgb(129, 87, 56)","rgb(104, 72, 53)","rgb(80, 59, 46)","rgb(57, 45, 37)","rgb(34, 30, 27)"],thermal:["rgb(3, 35, 51)","rgb(13, 48, 100)","rgb(53, 50, 155)","rgb(93, 62, 153)","rgb(126, 77, 143)","rgb(158, 89, 135)","rgb(193, 100, 121)","rgb(225, 113, 97)","rgb(246, 139, 69)","rgb(251, 173, 60)","rgb(246, 211, 70)","rgb(231, 250, 90)"],haline:["rgb(41, 24, 107)","rgb(42, 35, 160)","rgb(15, 71, 153)","rgb(18, 95, 142)","rgb(38, 116, 137)","rgb(53, 136, 136)","rgb(65, 157, 133)","rgb(81, 178, 124)","rgb(111, 198, 107)","rgb(160, 214, 91)","rgb(212, 225, 112)","rgb(253, 238, 153)"],solar:["rgb(51, 19, 23)","rgb(79, 28, 33)","rgb(108, 36, 36)","rgb(135, 47, 32)","rgb(157, 66, 25)","rgb(174, 88, 20)","rgb(188, 111, 19)","rgb(199, 137, 22)","rgb(209, 164, 32)","rgb(217, 192, 44)","rgb(222, 222, 59)","rgb(224, 253, 74)"],ice:["rgb(3, 5, 18)","rgb(25, 25, 51)","rgb(44, 42, 87)","rgb(58, 60, 125)","rgb(62, 83, 160)","rgb(62, 109, 178)","rgb(72, 134, 187)","rgb(89, 159, 196)","rgb(114, 184, 205)","rgb(149, 207, 216)","rgb(192, 229, 232)","rgb(234, 252, 253)"],gray:["rgb(0, 0, 0)","rgb(16, 16, 16)","rgb(38, 38, 38)","rgb(59, 59, 59)","rgb(81, 80, 80)","rgb(102, 101, 101)","rgb(124, 123, 122)","rgb(146, 146, 145)","rgb(171, 171, 170)","rgb(197, 197, 195)","rgb(224, 224, 223)","rgb(254, 254, 253)"],oxy:["rgb(63, 5, 5)","rgb(101, 6, 13)","rgb(138, 17, 9)","rgb(96, 95, 95)","rgb(119, 118, 118)","rgb(142, 141, 141)","rgb(166, 166, 165)","rgb(193, 192, 191)","rgb(222, 222, 220)","rgb(239, 248, 90)","rgb(230, 210, 41)","rgb(220, 174, 25)"],deep:["rgb(253, 253, 204)","rgb(206, 236, 179)","rgb(156, 219, 165)","rgb(111, 201, 163)","rgb(86, 177, 163)","rgb(76, 153, 160)","rgb(68, 130, 155)","rgb(62, 108, 150)","rgb(62, 82, 143)","rgb(64, 60, 115)","rgb(54, 43, 77)","rgb(39, 26, 44)"],dense:["rgb(230, 240, 240)","rgb(191, 221, 229)","rgb(156, 201, 226)","rgb(129, 180, 227)","rgb(115, 154, 228)","rgb(117, 127, 221)","rgb(120, 100, 202)","rgb(119, 74, 175)","rgb(113, 50, 141)","rgb(100, 31, 104)","rgb(80, 20, 66)","rgb(54, 14, 36)"],algae:["rgb(214, 249, 207)","rgb(186, 228, 174)","rgb(156, 209, 143)","rgb(124, 191, 115)","rgb(85, 174, 91)","rgb(37, 157, 81)","rgb(7, 138, 78)","rgb(13, 117, 71)","rgb(23, 95, 61)","rgb(25, 75, 49)","rgb(23, 55, 35)","rgb(17, 36, 20)"],matter:["rgb(253, 237, 176)","rgb(250, 205, 145)","rgb(246, 173, 119)","rgb(240, 142, 98)","rgb(231, 109, 84)","rgb(216, 80, 83)","rgb(195, 56, 90)","rgb(168, 40, 96)","rgb(138, 29, 99)","rgb(107, 24, 93)","rgb(76, 21, 80)","rgb(47, 15, 61)"],speed:["rgb(254, 252, 205)","rgb(239, 225, 156)","rgb(221, 201, 106)","rgb(194, 182, 59)","rgb(157, 167, 21)","rgb(116, 153, 5)","rgb(75, 138, 20)","rgb(35, 121, 36)","rgb(11, 100, 44)","rgb(18, 78, 43)","rgb(25, 56, 34)","rgb(23, 35, 18)"],amp:["rgb(241, 236, 236)","rgb(230, 209, 203)","rgb(221, 182, 170)","rgb(213, 156, 137)","rgb(205, 129, 103)","rgb(196, 102, 73)","rgb(186, 74, 47)","rgb(172, 44, 36)","rgb(149, 19, 39)","rgb(120, 14, 40)","rgb(89, 13, 31)","rgb(60, 9, 17)"],tempo:["rgb(254, 245, 244)","rgb(222, 224, 210)","rgb(189, 206, 181)","rgb(153, 189, 156)","rgb(110, 173, 138)","rgb(65, 157, 129)","rgb(25, 137, 125)","rgb(18, 116, 117)","rgb(25, 94, 106)","rgb(28, 72, 93)","rgb(25, 51, 80)","rgb(20, 29, 67)"],phase:["rgb(167, 119, 12)","rgb(197, 96, 51)","rgb(217, 67, 96)","rgb(221, 38, 163)","rgb(196, 59, 224)","rgb(153, 97, 244)","rgb(95, 127, 228)","rgb(40, 144, 183)","rgb(15, 151, 136)","rgb(39, 153, 79)","rgb(119, 141, 17)","rgb(167, 119, 12)"],balance:["rgb(23, 28, 66)","rgb(41, 58, 143)","rgb(11, 102, 189)","rgb(69, 144, 185)","rgb(142, 181, 194)","rgb(210, 216, 219)","rgb(230, 210, 204)","rgb(213, 157, 137)","rgb(196, 101, 72)","rgb(172, 43, 36)","rgb(120, 14, 40)","rgb(60, 9, 17)"],delta:["rgb(16, 31, 63)","rgb(38, 62, 144)","rgb(30, 110, 161)","rgb(60, 154, 171)","rgb(140, 193, 186)","rgb(217, 229, 218)","rgb(239, 226, 156)","rgb(195, 182, 59)","rgb(115, 152, 5)","rgb(34, 120, 36)","rgb(18, 78, 43)","rgb(23, 35, 18)"],curl:["rgb(20, 29, 67)","rgb(28, 72, 93)","rgb(18, 115, 117)","rgb(63, 156, 129)","rgb(153, 189, 156)","rgb(223, 225, 211)","rgb(241, 218, 206)","rgb(224, 160, 137)","rgb(203, 101, 99)","rgb(164, 54, 96)","rgb(111, 23, 91)","rgb(51, 13, 53)"]},t.CUBEHELIX=[{start:300,rotations:-1.5},{start:0,rotations:-.4},{start:0,rotations:-.1},{start:100,rotations:.4},{start:200,rotations:-.1},{start:200,rotations:-.4},{start:200,rotations:.4},{start:300,rotations:-.1}],t.DEFAULT_START=300,t.DEFAULT_ROTATIONS=-1.5,t.DEFAULT_HUE=1,t.DEFAULT_GAMMA=1,t.DEFAULT_LIGHTNESS=[.85,.15],t.DEFAULT_NCOLORS=10,t.DEFAULT_SWATCHES=9);t.DEFAULT_SCALE=a.default.scale(["#fafa6e","#2A4858"]).mode("lch").colors(o),t.DEFAULT_LOG_BREAKPOINTS=4,t.DEFAULT_BREAKPOINTS=[0,1],t.DEFAULT_SWATCH_WIDTH=20,t.DEFAULT_NPREVIEWCOLORS=10},function(e,t,n){var r=n(89);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(21);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(40)("keys"),a=n(29);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t,n){var r=n(6),a=n(11),o=a["__core-js_shared__"]||(a["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(28)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(93),o=r(a),i=n(103),l=r(i),s="function"===typeof l.default&&"symbol"===typeof o.default?function(e){return typeof e}:function(e){return e&&"function"===typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":typeof e};t.default="function"===typeof l.default&&"symbol"===s(o.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},function(e,t,n){var r=n(20),a=n(97),o=n(41),i=n(39)("IE_PROTO"),l=function(){},s=function(){var e,t=n(59)("iframe"),r=o.length;for(t.style.display="none",n(98).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[o[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(l.prototype=r(e),n=new l,l.prototype=null,n[i]=e):n=s(),void 0===t?n:a(n,t)}},function(e,t,n){var r=n(12).f,a=n(14),o=n(7)("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){t.f=n(7)},function(e,t,n){var r=n(11),a=n(6),o=n(28),i=n(46),l=n(12).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||l(t,e,{value:i.f(e)})}},function(e,t,n){var r=n(30),a=n(23),o=n(15),i=n(35),l=n(14),s=n(58),u=Object.getOwnPropertyDescriptor;t.f=n(13)?u:function(e,t){if(e=o(e),t=i(t,!0),s)try{return u(e,t)}catch(e){}if(l(e,t))return a(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";(function(t){var n=function(){};"production"!==t.env.NODE_ENV&&(n=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var a=2;a<r;a++)n[a-2]=arguments[a];if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var o=0,i="Warning: "+t.replace(/%s/g,(function(){return n[o++]}));"undefined"!==typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}}),e.exports=n}).call(t,n(26))},function(e,t,n){"use strict";var r=n(5),a=n.n(r),o=n(18),i=n.n(o),l=n(24),s=n.n(l),u=n(2),c=n.n(u),f=n(9),p=n.n(f),d=n(3),h=n.n(d),v=n(4),m=n.n(v),y=n(0),g=n.n(y),b=n(1),x=n.n(b),_=n(16),w=n.n(_),k=n(32),T=function(e){function t(){var e,n,r,a;c()(this,t);for(var o=arguments.length,i=Array(o),l=0;l<o;l++)i[l]=arguments[l];return n=r=h()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={clickFocused:!1},r.setHandleRef=function(e){r.handle=e},r.handleMouseUp=function(){document.activeElement===r.handle&&r.setClickFocus(!0)},r.handleBlur=function(){r.setClickFocus(!1)},r.handleKeyDown=function(){r.setClickFocus(!1)},a=n,h()(r,a)}return m()(t,e),p()(t,[{key:"componentDidMount",value:function(){this.onMouseUpListener=Object(k.a)(document,"mouseup",this.handleMouseUp)}},{key:"componentWillUnmount",value:function(){this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"setClickFocus",value:function(e){this.setState({clickFocused:e})}},{key:"clickFocus",value:function(){this.setClickFocus(!0),this.focus()}},{key:"focus",value:function(){this.handle.focus()}},{key:"blur",value:function(){this.handle.blur()}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.vertical,r=e.offset,o=e.style,l=e.disabled,u=e.min,c=e.max,f=e.value,p=e.tabIndex,d=s()(e,["prefixCls","vertical","offset","style","disabled","min","max","value","tabIndex"]),h=w()(this.props.className,i()({},t+"-handle-click-focused",this.state.clickFocused)),v=n?{bottom:r+"%"}:{left:r+"%"},m=a()({},o,v);return g.a.createElement("div",a()({ref:this.setHandleRef,tabIndex:l?null:p||0},d,{className:h,style:m,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,role:"slider","aria-valuemin":u,"aria-valuemax":c,"aria-valuenow":f,"aria-disabled":!!l}))}}]),t}(g.a.Component);t.a=T,T.propTypes={prefixCls:x.a.string,className:x.a.string,vertical:x.a.bool,offset:x.a.number,style:x.a.object,disabled:x.a.bool,min:x.a.number,max:x.a.number,value:x.a.number,tabIndex:x.a.number}},function(e,t,n){"use strict";(function(e){function r(){return"production"!==e.env.NODE_ENV}function a(e,t){try{return Object.keys(t).some((function(n){return e.target===Object(b.findDOMNode)(t[n])}))}catch(e){return!1}}function o(e,t){var n=t.min,r=t.max;return e<n||e>r}function i(e){return e.touches.length>1||"touchend"===e.type.toLowerCase()&&e.touches.length>0}function l(e,t){var n=t.marks,r=t.step,a=t.min,o=Object.keys(n).map(parseFloat);if(null!==r){var i=Math.round((e-a)/r)*r+a;o.push(i)}var l=o.map((function(t){return Math.abs(e-t)}));return o[l.indexOf(Math.min.apply(Math,g()(l)))]}function s(e){var t=e.toString(),n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function u(e,t){return e?t.clientY:t.pageX}function c(e,t){return e?t.touches[0].clientY:t.touches[0].pageX}function f(e,t){var n=t.getBoundingClientRect();return e?n.top+.5*n.height:window.pageXOffset+n.left+.5*n.width}function p(e,t){var n=t.max,r=t.min;return e<=r?r:e>=n?n:e}function d(e,t){var n=t.step,r=isFinite(l(e,t))?l(e,t):0;return null===n?r:parseFloat(r.toFixed(s(n)))}function h(e){e.stopPropagation(),e.preventDefault()}function v(e,t,n){var r={increase:function(e,t){return e+t},decrease:function(e,t){return e-t}},a=r[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),o=Object.keys(n.marks)[a];return n.step?r[e](t,n.step):Object.keys(n.marks).length&&n.marks[o]?n.marks[o]:t}function m(e){switch(e.keyCode){case x.a.UP:case x.a.RIGHT:return function(e,t){return v("increase",e,t)};case x.a.DOWN:case x.a.LEFT:return function(e,t){return v("decrease",e,t)};case x.a.END:return function(e,t){return t.max};case x.a.HOME:return function(e,t){return t.min};case x.a.PAGE_UP:return function(e,t){return e+2*t.step};case x.a.PAGE_DOWN:return function(e,t){return e-2*t.step};default:return}}t.g=r,t.h=a,t.j=o,t.i=i,t.e=u,t.f=c,t.c=f,t.a=p,t.b=d,t.k=h,t.d=m;var y=n(81),g=n.n(y),b=n(8),x=(n.n(b),n(173))}).call(t,n(26))},function(e,t){function n(e,t){var n=e[1]||"",a=e[3];if(!a)return n;if(t&&"function"===typeof btoa){var o=r(a);return[n].concat(a.sources.map((function(e){return"/*# sourceURL="+a.sourceRoot+e+" */"}))).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a<this.length;a++){var o=this[a][0];"number"===typeof o&&(r[o]=!0)}for(a=0;a<e.length;a++){var i=e[a];"number"===typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=h[r.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](r.parts[o]);for(;o<r.parts.length;o++)a.parts.push(c(r.parts[o],t))}else{var i=[];for(o=0;o<r.parts.length;o++)i.push(c(r.parts[o],t));h[r.id]={id:r.id,refs:1,parts:i}}}}function a(e,t){for(var n=[],r={},a=0;a<e.length;a++){var o=e[a],i=t.base?o[0]+t.base:o[0],l=o[1],s=o[2],u=o[3],c={css:l,media:s,sourceMap:u};r[i]?r[i].parts.push(c):n.push(r[i]={id:i,parts:[c]})}return n}function o(e,t){var n=m(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=b[b.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),b.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=b.indexOf(e);t>=0&&b.splice(t,1)}function l(e){var t=document.createElement("style");return e.attrs.type="text/css",u(t,e.attrs),o(e,t),t}function s(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",u(t,e.attrs),o(e,t),t}function u(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function c(e,t){var n,r,a,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var u=g++;n=y||(y=l(t)),r=f.bind(null,n,u,!1),a=f.bind(null,n,u,!0)}else e.sourceMap&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&"function"===typeof URL.revokeObjectURL&&"function"===typeof Blob&&"function"===typeof btoa?(n=s(t),r=d.bind(null,n,t),a=function(){i(n),n.href&&URL.revokeObjectURL(n.href)}):(n=l(t),r=p.bind(null,n),a=function(){i(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}function f(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function p(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function d(e,t,n){var r=n.css,a=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&a;(t.convertToAbsoluteUrls||o)&&(r=x(r)),a&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */");var i=new Blob([r],{type:"text/css"}),l=e.href;e.href=URL.createObjectURL(i),l&&URL.revokeObjectURL(l)}var h={},v=function(e){var t;return function(){return"undefined"===typeof t&&(t=e.apply(this,arguments)),t}}((function(){return window&&document&&document.all&&!window.atob})),m=function(e){var t={};return function(n){return"undefined"===typeof t[n]&&(t[n]=e.call(this,n)),t[n]}}((function(e){return document.querySelector(e)})),y=null,g=0,b=[],x=n(181);e.exports=function(e,t){if("undefined"!==typeof DEBUG&&DEBUG&&"object"!==typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"===typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=v()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=a(e,t);return r(n,t),function(e){for(var o=[],i=0;i<n.length;i++){var l=n[i],s=h[l.id];s.refs--,o.push(s)}e&&r(a(e,t),t);for(i=0;i<o.length;i++){s=o[i];if(0===s.refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete h[s.id]}}}};var _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(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}function o(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)}Object.defineProperty(t,"__esModule",{value:!0});var i=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}}(),l=n(0),s=function(e){return e&&e.__esModule?e:{default:e}}(l),u=n(33),c=function(e){function t(){return r(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return o(t,e),i(t,[{key:"render",value:function(){var e=this,t=this.props.colorscale?this.props.colorscale:u.DEFAULT_SCALE;return s.default.createElement("div",{style:{width:"100%"},className:"colorscale-container"},this.props.label?s.default.createElement("div",{className:"colorscale-label",style:{fontWeight:600,fontSize:"12px",color:"#2a3f5f",display:"inline-block",width:"25%",textAlign:"start"}},this.props.label):null,s.default.createElement("div",{className:"colorscale-palette-container",style:{display:"inline-block",textAlign:"start",width:this.props.label?"75%":"100%"}},s.default.createElement("div",{className:"colorscale-block",style:{fontSize:"0px",display:"inline-block",width:"100%"},onClick:function(){return e.props.onClick(t,e.props.start,e.props.rot)}},t.map((function(e,n){return s.default.createElement("div",{key:n,className:"colorscale-swatch",style:{backgroundColor:e,width:100/t.length+"%",height:"20px",margin:"0 auto",display:"inline-block",cursor:"pointer"}})})))))}}]),t}(l.Component);t.default=c},function(e,t,n){(function(e){var n,r;(function(){var a,o,i,l,s,u,c,f,p,d,h,v,m,y,g,b,x,_,w,k,T,E,O,M,S,C,A,P,L,D,j,I,R,z,N,F,B,V,H,U,W,q,$,G,Y,K,X,Z,J,Q,ee,te,ne,re,ae,oe,ie,le,se,ue,ce,fe,pe,de,he,ve,me,ye,ge,be,xe,_e,we,ke,Te,Ee,Oe,Me,Se,Ce,Ae,Pe=[].slice;Oe=function(){var e,t,n,r,a;for(e={},a="Boolean Number String Function Array Date RegExp Undefined Null".split(" "),r=0,t=a.length;r<t;r++)n=a[r],e["[object "+n+"]"]=n.toLowerCase();return function(t){var n;return n=Object.prototype.toString.call(t),e[n]||"object"}}(),X=function(e,t,n){return null==t&&(t=0),null==n&&(n=1),e<t&&(e=t),e>n&&(e=n),e},Me=function(e){return e.length>=3?Array.prototype.slice.call(e):e[0]},T=function(e){var t,n;for(e._clipped=!1,e._unclipped=e.slice(0),t=n=0;n<3;t=++n)t<3?((e[t]<0||e[t]>255)&&(e._clipped=!0),e[t]<0&&(e[t]=0),e[t]>255&&(e[t]=255)):3===t&&(e[t]<0&&(e[t]=0),e[t]>1&&(e[t]=1));return e._clipped||delete e._unclipped,e},l=Math.PI,_e=Math.round,O=Math.cos,P=Math.floor,oe=Math.pow,Z=Math.log,ke=Math.sin,Te=Math.sqrt,y=Math.atan2,ee=Math.max,m=Math.abs,c=2*l,s=l/3,o=l/180,u=180/l,k=function(){return arguments[0]instanceof a?arguments[0]:function(e,t,n){n.prototype=e.prototype;var r=new n,a=e.apply(r,t);return Object(a)===a?a:r}(a,arguments,(function(){}))},k.default=k,v=[],"undefined"!==typeof e&&null!==e&&null!=e.exports&&(e.exports=k),n=[],void 0!==(r=function(){return k}.apply(t,n))&&(e.exports=r),k.version="1.4.1",h={},p=[],d=!1,a=function(){function e(){var e,t,n,r,a,o,i,l,s;for(o=this,t=[],l=0,r=arguments.length;l<r;l++)null!=(e=arguments[l])&&t.push(e);if(t.length>1&&(i=t[t.length-1]),null!=h[i])o._rgb=T(h[i](Me(t.slice(0,-1))));else{for(d||(p=p.sort((function(e,t){return t.p-e.p})),d=!0),s=0,a=p.length;s<a&&(n=p[s],!(i=n.test.apply(n,t)));s++);i&&(o._rgb=T(h[i].apply(h,t)))}null==o._rgb&&console.warn("unknown format: "+t),null==o._rgb&&(o._rgb=[0,0,0]),3===o._rgb.length&&o._rgb.push(1)}return e.prototype.toString=function(){return this.hex()},e}(),k._input=h,k.brewer=_={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},function(){var e,t;for(e in t=[],_)t.push(_[e.toLowerCase()]=_[e])}(),Se={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},k.colors=Se,q=function(){var e,t,n,r,a,o,l,s,u;return t=Me(arguments),a=t[0],e=t[1],n=t[2],s=(a+16)/116,l=isNaN(e)?s:s+e/500,u=isNaN(n)?s:s-n/200,s=i.Yn*$(s),l=i.Xn*$(l),u=i.Zn*$(u),o=Ae(3.2404542*l-1.5371385*s-.4985314*u),r=Ae(-.969266*l+1.8760108*s+.041556*u),n=Ae(.0556434*l-.2040259*s+1.0572252*u),[o,r,n,t.length>3?t[3]:1]},Ae=function(e){return 255*(e<=.00304?12.92*e:1.055*oe(e,1/2.4)-.055)},$=function(e){return e>i.t1?e*e*e:i.t2*(e-i.t0)},i={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},de=function(){var e,t,n,r,a,o,i,l;return r=Me(arguments),n=r[0],t=r[1],e=r[2],a=ge(n,t,e),o=a[0],i=a[1],l=a[2],[116*i-16,500*(o-i),200*(i-l)]},be=function(e){return(e/=255)<=.04045?e/12.92:oe((e+.055)/1.055,2.4)},Ce=function(e){return e>i.t3?oe(e,1/3):e/i.t2+i.t0},ge=function(){var e,t,n,r,a,o,l;return r=Me(arguments),n=r[0],t=r[1],e=r[2],n=be(n),t=be(t),e=be(e),a=Ce((.4124564*n+.3575761*t+.1804375*e)/i.Xn),o=Ce((.2126729*n+.7151522*t+.072175*e)/i.Yn),l=Ce((.0193339*n+.119192*t+.9503041*e)/i.Zn),[a,o,l]},k.lab=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,a=e.apply(r,t);return Object(a)===a?a:r}(a,Pe.call(arguments).concat(["lab"]),(function(){}))},h.lab=q,a.prototype.lab=function(){return de(this._rgb)},g=function(e){var t,n,r,a,o,i,l,s,u,c,f;return e=function(){var t,n,r;for(r=[],n=0,t=e.length;n<t;n++)a=e[n],r.push(k(a));return r}(),2===e.length?(u=function(){var t,n,r;for(r=[],n=0,t=e.length;n<t;n++)a=e[n],r.push(a.lab());return r}(),o=u[0],i=u[1],t=function(e){var t,n;return n=function(){var n,r;for(r=[],t=n=0;n<=2;t=++n)r.push(o[t]+e*(i[t]-o[t]));return r}(),k.lab.apply(k,n)}):3===e.length?(c=function(){var t,n,r;for(r=[],n=0,t=e.length;n<t;n++)a=e[n],r.push(a.lab());return r}(),o=c[0],i=c[1],l=c[2],t=function(e){var t,n;return n=function(){var n,r;for(r=[],t=n=0;n<=2;t=++n)r.push((1-e)*(1-e)*o[t]+2*(1-e)*e*i[t]+e*e*l[t]);return r}(),k.lab.apply(k,n)}):4===e.length?(f=function(){var t,n,r;for(r=[],n=0,t=e.length;n<t;n++)a=e[n],r.push(a.lab());return r}(),o=f[0],i=f[1],l=f[2],s=f[3],t=function(e){var t,n;return n=function(){var n,r;for(r=[],t=n=0;n<=2;t=++n)r.push((1-e)*(1-e)*(1-e)*o[t]+3*(1-e)*(1-e)*e*i[t]+3*(1-e)*e*e*l[t]+e*e*e*s[t]);return r}(),k.lab.apply(k,n)}):5===e.length&&(n=g(e.slice(0,3)),r=g(e.slice(2,5)),t=function(e){return e<.5?n(2*e):r(2*(e-.5))}),t},k.bezier=function(e){var t;return t=g(e),t.scale=function(){return k.scale(t)},t},k.cubehelix=function(e,t,n,r,a){var o,i,l;return null==e&&(e=300),null==t&&(t=-1.5),null==n&&(n=1),null==r&&(r=1),null==a&&(a=[0,1]),o=0,"array"===Oe(a)?i=a[1]-a[0]:(i=0,a=[a,a]),l=function(l){var s,u,f,p,d,h,v,m,y;return s=c*((e+120)/360+t*l),v=oe(a[0]+i*l,r),h=0!==o?n[0]+l*o:n,u=h*v*(1-v)/2,p=O(s),y=ke(s),m=v+u*(-.14861*p+1.78277*y),d=v+u*(-.29227*p-.90649*y),f=v+u*(1.97294*p),k(T([255*m,255*d,255*f,1]))},l.start=function(t){return null==t?e:(e=t,l)},l.rotations=function(e){return null==e?t:(t=e,l)},l.gamma=function(e){return null==e?r:(r=e,l)},l.hue=function(e){return null==e?n:(n=e,"array"===Oe(n)?0===(o=n[1]-n[0])&&(n=n[1]):o=0,l)},l.lightness=function(e){return null==e?a:("array"===Oe(e)?(a=e,i=e[1]-e[0]):(a=[e,e],i=0),l)},l.scale=function(){return k.scale(l)},l.hue(n),l},k.random=function(){var e,t,n;for(t="0123456789abcdef",e="#",n=0;n<6;++n)e+=t.charAt(P(16*Math.random()));return new a(e)},v=[],N=function(e,t,n,r){var a,o,i,l;for(null==n&&(n=.5),null==r&&(r="rgb"),"object"!==Oe(e)&&(e=k(e)),"object"!==Oe(t)&&(t=k(t)),i=0,o=v.length;i<o;i++)if(a=v[i],r===a[0]){l=a[1](e,t,n,r);break}if(null==l)throw"color mode "+r+" is not supported";return l.alpha(e.alpha()+n*(t.alpha()-e.alpha()))},k.interpolate=N,a.prototype.interpolate=function(e,t,n){return N(this,e,t,n)},k.mix=N,a.prototype.mix=a.prototype.interpolate,h.rgb=function(){var e,t,n,r;for(e in t=Me(arguments),n=[],t)r=t[e],n.push(r);return n},k.rgb=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,a=e.apply(r,t);return Object(a)===a?a:r}(a,Pe.call(arguments).concat(["rgb"]),(function(){}))},a.prototype.rgb=function(e){return null==e&&(e=!0),e?this._rgb.map(Math.round).slice(0,3):this._rgb.slice(0,3)},a.prototype.rgba=function(e){return null==e&&(e=!0),e?[Math.round(this._rgb[0]),Math.round(this._rgb[1]),Math.round(this._rgb[2]),this._rgb[3]]:this._rgb.slice(0)},p.push({p:3,test:function(e){var t;return t=Me(arguments),"array"===Oe(t)&&3===t.length||4===t.length&&"number"===Oe(t[3])&&t[3]>=0&&t[3]<=1?"rgb":void 0}}),h.lrgb=h.rgb,V=function(e,t,n,r){var o,i;return o=e._rgb,i=t._rgb,new a(Te(oe(o[0],2)*(1-n)+oe(i[0],2)*n),Te(oe(o[1],2)*(1-n)+oe(i[1],2)*n),Te(oe(o[2],2)*(1-n)+oe(i[2],2)*n),r)},f=function(e){var t,n,r,o,i,l;for(n=1/e.length,l=[0,0,0,0],o=0,r=e.length;o<r;o++)t=e[o],i=t._rgb,l[0]+=oe(i[0],2)*n,l[1]+=oe(i[1],2)*n,l[2]+=oe(i[2],2)*n,l[3]+=i[3]*n;return l[0]=Te(l[0]),l[1]=Te(l[1]),l[2]=Te(l[2]),l[3]>1&&(l[3]=1),new a(T(l))},v.push(["lrgb",V]),k.average=function(e,t){var n,r,a,o,i,s,u,c,p,d,h,v,m;if(null==t&&(t="rgb"),p=e.length,e=e.map((function(e){return k(e)})),u=e.splice(0,1)[0],"lrgb"===t)return f(e);for(c in v=u.get(t),o=[],i=0,s=0,v)v[c]=v[c]||0,o.push(isNaN(v[c])?0:1),"h"!==t.charAt(c)||isNaN(v[c])||(n=v[c]/180*l,i+=O(n),s+=ke(n));for(r=u.alpha(),h=0,d=e.length;h<d;h++)for(c in a=e[h],m=a.get(t),r+=a.alpha(),v)isNaN(m[c])||(o[c]+=1,"h"===t.charAt(c)?(n=m[c]/180*l,i+=O(n),s+=ke(n)):v[c]+=m[c]);for(c in v)if("h"===t.charAt(c)){for(n=y(s/o[c],i/o[c])/l*180;n<0;)n+=360;for(;n>=360;)n-=360;v[c]=n}else v[c]=v[c]/o[c];return k(v,t).alpha(r/p)},D=function(e){var t,n,r,a,o,i;if(e.match(/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/))return 4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),i=parseInt(e,16),a=i>>16,r=i>>8&255,n=255&i,[a,r,n,1];if(e.match(/^#?([A-Fa-f0-9]{8})$/))return 9===e.length&&(e=e.substr(1)),i=parseInt(e,16),a=i>>24&255,r=i>>16&255,n=i>>8&255,t=_e((255&i)/255*100)/100,[a,r,n,t];if(null!=h.css&&(o=h.css(e)))return o;throw"unknown color: "+e},ue=function(e,t){var n,r,a,o,i,l,s;return null==t&&(t="auto"),i=e[0],a=e[1],r=e[2],n=e[3],"auto"===t&&(t=n<1?"rgba":"rgb"),i=Math.round(i),a=Math.round(a),r=Math.round(r),s=i<<16|a<<8|r,l="000000"+s.toString(16),l=l.substr(l.length-6),o="0"+_e(255*n).toString(16),o=o.substr(o.length-2),"#"+function(){switch(t.toLowerCase()){case"rgba":return l+o;case"argb":return o+l;default:return l}}()},h.hex=function(e){return D(e)},k.hex=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,a=e.apply(r,t);return Object(a)===a?a:r}(a,Pe.call(arguments).concat(["hex"]),(function(){}))},a.prototype.hex=function(e){return null==e&&(e="auto"),ue(this._rgb,e)},p.push({p:4,test:function(e){if(1===arguments.length&&"string"===Oe(e))return"hex"}}),R=function(){var e,t,n,r,a,o,i,l,s,u,c,f,p,d;if(e=Me(arguments),a=e[0],c=e[1],i=e[2],0===c)s=r=t=255*i;else{for(d=[0,0,0],n=[0,0,0],p=i<.5?i*(1+c):i+c-i*c,f=2*i-p,a/=360,d[0]=a+1/3,d[1]=a,d[2]=a-1/3,o=l=0;l<=2;o=++l)d[o]<0&&(d[o]+=1),d[o]>1&&(d[o]-=1),6*d[o]<1?n[o]=f+6*(p-f)*d[o]:2*d[o]<1?n[o]=p:3*d[o]<2?n[o]=f+(p-f)*(2/3-d[o])*6:n[o]=f;u=[_e(255*n[0]),_e(255*n[1]),_e(255*n[2])],s=u[0],r=u[1],t=u[2]}return e.length>3?[s,r,t,e[3]]:[s,r,t]},fe=function(e,t,n){var r,a,o,i,l;return void 0!==e&&e.length>=3&&(i=e,e=i[0],t=i[1],n=i[2]),e/=255,t/=255,n/=255,o=Math.min(e,t,n),ee=Math.max(e,t,n),a=(ee+o)/2,ee===o?(l=0,r=Number.NaN):l=a<.5?(ee-o)/(ee+o):(ee-o)/(2-ee-o),e===ee?r=(t-n)/(ee-o):t===ee?r=2+(n-e)/(ee-o):n===ee&&(r=4+(e-t)/(ee-o)),r*=60,r<0&&(r+=360),[r,l,a]},k.hsl=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,a=e.apply(r,t);return Object(a)===a?a:r}(a,Pe.call(arguments).concat(["hsl"]),(function(){}))},h.hsl=R,a.prototype.hsl=function(){return fe(this._rgb)},z=function(){var e,t,n,r,a,o,i,l,s,u,c,f,p,d,h,v,m,y;if(e=Me(arguments),a=e[0],v=e[1],y=e[2],y*=255,0===v)s=r=t=y;else switch(360===a&&(a=0),a>360&&(a-=360),a<0&&(a+=360),a/=60,o=P(a),n=a-o,i=y*(1-v),l=y*(1-v*n),m=y*(1-v*(1-n)),o){case 0:u=[y,m,i],s=u[0],r=u[1],t=u[2];break;case 1:c=[l,y,i],s=c[0],r=c[1],t=c[2];break;case 2:f=[i,y,m],s=f[0],r=f[1],t=f[2];break;case 3:p=[i,l,y],s=p[0],r=p[1],t=p[2];break;case 4:d=[m,i,y],s=d[0],r=d[1],t=d[2];break;case 5:h=[y,i,l],s=h[0],r=h[1],t=h[2]}return[s,r,t,e.length>3?e[3]:1]},pe=function(){var e,t,n,r,a,o,i,l,s;return i=Me(arguments),o=i[0],n=i[1],e=i[2],a=Math.min(o,n,e),ee=Math.max(o,n,e),t=ee-a,s=ee/255,0===ee?(r=Number.NaN,l=0):(l=t/ee,o===ee&&(r=(n-e)/t),n===ee&&(r=2+(e-o)/t),e===ee&&(r=4+(o-n)/t),(r*=60)<0&&(r+=360)),[r,l,s]},k.hsv=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,a=e.apply(r,t);return Object(a)===a?a:r}(a,Pe.call(arguments).concat(["hsv"]),(function(){}))},h.hsv=z,a.prototype.hsv=function(){return pe(this._rgb)},re=function(e){var t,n,r;return"number"===Oe(e)&&e>=0&&e<=16777215?(r=e>>16,n=e>>8&255,t=255&e,[r,n,t,1]):(console.warn("unknown num color: "+e),[0,0,0,1])},me=function(){var e,t,n,r;return r=Me(arguments),n=r[0],t=r[1],e=r[2],(n<<16)+(t<<8)+e},k.num=function(e){return new a(e,"num")},a.prototype.num=function(e){return null==e&&(e="rgb"),me(this._rgb,e)},h.num=re,p.push({p:1,test:function(e){if(1===arguments.length&&"number"===Oe(e)&&e>=0&&e<=16777215)return"num"}}),L=function(){var e,t,n,r,a,o,i,l,s,u,c,f,p,d,h,v,m,y,g,b;if(n=Me(arguments),l=n[0],a=n[1],t=n[2],a/=100,i=i/100*255,e=255*a,0===a)f=i=r=t;else switch(360===l&&(l=0),l>360&&(l-=360),l<0&&(l+=360),l/=60,s=P(l),o=l-s,u=t*(1-a),c=u+e*(1-o),g=u+e*o,b=u+e,s){case 0:p=[b,g,u],f=p[0],i=p[1],r=p[2];break;case 1:d=[c,b,u],f=d[0],i=d[1],r=d[2];break;case 2:h=[u,b,g],f=h[0],i=h[1],r=h[2];break;case 3:v=[u,c,b],f=v[0],i=v[1],r=v[2];break;case 4:m=[g,u,b],f=m[0],i=m[1],r=m[2];break;case 5:y=[b,u,c],f=y[0],i=y[1],r=y[2]}return[f,i,r,n.length>3?n[3]:1]},se=function(){var e,t,n,r,a,o,i,l,s;return s=Me(arguments),l=s[0],a=s[1],t=s[2],i=Math.min(l,a,t),ee=Math.max(l,a,t),r=ee-i,n=100*r/255,e=i/(255-r)*100,0===r?o=Number.NaN:(l===ee&&(o=(a-t)/r),a===ee&&(o=2+(t-l)/r),t===ee&&(o=4+(l-a)/r),(o*=60)<0&&(o+=360)),[o,n,e]},k.hcg=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,a=e.apply(r,t);return Object(a)===a?a:r}(a,Pe.call(arguments).concat(["hcg"]),(function(){}))},h.hcg=L,a.prototype.hcg=function(){return se(this._rgb)},M=function(e){var t,n,r,a,o,i,l,s;if(e=e.toLowerCase(),null!=k.colors&&k.colors[e])return D(k.colors[e]);if(o=e.match(/rgb\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*\)/)){for(l=o.slice(1,4),a=i=0;i<=2;a=++i)l[a]=+l[a];l[3]=1}else if(o=e.match(/rgba\(\s*(\-?\d+),\s*(\-?\d+)\s*,\s*(\-?\d+)\s*,\s*([01]|[01]?\.\d+)\)/))for(l=o.slice(1,5),a=s=0;s<=3;a=++s)l[a]=+l[a];else if(o=e.match(/rgb\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/)){for(l=o.slice(1,4),a=t=0;t<=2;a=++t)l[a]=_e(2.55*l[a]);l[3]=1}else if(o=e.match(/rgba\(\s*(\-?\d+(?:\.\d+)?)%,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/)){for(l=o.slice(1,5),a=n=0;n<=2;a=++n)l[a]=_e(2.55*l[a]);l[3]=+l[3]}else(o=e.match(/hsl\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*\)/))?(r=o.slice(1,4),r[1]*=.01,r[2]*=.01,l=R(r),l[3]=1):(o=e.match(/hsla\(\s*(\-?\d+(?:\.\d+)?),\s*(\-?\d+(?:\.\d+)?)%\s*,\s*(\-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)/))&&(r=o.slice(1,4),r[1]*=.01,r[2]*=.01,l=R(r),l[3]=+o[4]);return l},le=function(e){var t;return t=e[3]<1?"rgba":"rgb","rgb"===t?t+"("+e.slice(0,3).map(_e).join(",")+")":"rgba"===t?t+"("+e.slice(0,3).map(_e).join(",")+","+e[3]+")":void 0},xe=function(e){return _e(100*e)/100},I=function(e,t){var n;return n=t<1?"hsla":"hsl",e[0]=xe(e[0]||0),e[1]=xe(100*e[1])+"%",e[2]=xe(100*e[2])+"%","hsla"===n&&(e[3]=t),n+"("+e.join(",")+")"},h.css=function(e){return M(e)},k.css=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,a=e.apply(r,t);return Object(a)===a?a:r}(a,Pe.call(arguments).concat(["css"]),(function(){}))},a.prototype.css=function(e){return null==e&&(e="rgb"),"rgb"===e.slice(0,3)?le(this._rgb):"hsl"===e.slice(0,3)?I(this.hsl(),this.alpha()):void 0},h.named=function(e){return D(Se[e])},p.push({p:5,test:function(e){if(1===arguments.length&&null!=Se[e])return"named"}}),a.prototype.name=function(e){var t,n;for(n in arguments.length&&(Se[e]&&(this._rgb=D(Se[e])),this._rgb[3]=1),t=this.hex("rgb"),Se)if(t===Se[n])return n;return t},G=function(){var e,t,n,r;return r=Me(arguments),n=r[0],e=r[1],t=r[2],t*=o,[n,O(t)*e,ke(t)*e]},Y=function(){var e,t,n,r,a,o,i,l,s,u,c;return n=Me(arguments),l=n[0],a=n[1],i=n[2],u=G(l,a,i),e=u[0],t=u[1],r=u[2],c=q(e,t,r),s=c[0],o=c[1],r=c[2],[s,o,r,n.length>3?n[3]:1]},W=function(){var e,t,n,r,a,o;return o=Me(arguments),a=o[0],e=o[1],t=o[2],n=Te(e*e+t*t),r=(y(t,e)*u+360)%360,0===_e(1e4*n)&&(r=Number.NaN),[a,n,r]},he=function(){var e,t,n,r,a,o,i;return o=Me(arguments),a=o[0],n=o[1],t=o[2],i=de(a,n,t),r=i[0],e=i[1],t=i[2],W(r,e,t)},k.lch=function(){var e;return e=Me(arguments),new a(e,"lch")},k.hcl=function(){var e;return e=Me(arguments),new a(e,"hcl")},h.lch=Y,h.hcl=function(){var e,t,n,r;return r=Me(arguments),t=r[0],e=r[1],n=r[2],Y([n,e,t])},a.prototype.lch=function(){return he(this._rgb)},a.prototype.hcl=function(){return he(this._rgb).reverse()},ie=function(e){var t,n,r,a,o,i,l,s,u;return null==e&&(e="rgb"),s=Me(arguments),l=s[0],a=s[1],t=s[2],l/=255,a/=255,t/=255,o=1-Math.max(l,Math.max(a,t)),r=o<1?1/(1-o):0,n=(1-l-o)*r,i=(1-a-o)*r,u=(1-t-o)*r,[n,i,u,o]},E=function(){var e,t,n,r,a,o,i,l,s;return t=Me(arguments),r=t[0],i=t[1],s=t[2],o=t[3],e=t.length>4?t[4]:1,1===o?[0,0,0,e]:(l=r>=1?0:255*(1-r)*(1-o),a=i>=1?0:255*(1-i)*(1-o),n=s>=1?0:255*(1-s)*(1-o),[l,a,n,e])},h.cmyk=function(){return E(Me(arguments))},k.cmyk=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,a=e.apply(r,t);return Object(a)===a?a:r}(a,Pe.call(arguments).concat(["cmyk"]),(function(){}))},a.prototype.cmyk=function(){return ie(this._rgb)},h.gl=function(){var e,t,n,r,a;for(r=function(){var e,n;for(t in e=Me(arguments),n=[],e)a=e[t],n.push(a);return n}.apply(this,arguments),e=n=0;n<=2;e=++n)r[e]*=255;return r},k.gl=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,a=e.apply(r,t);return Object(a)===a?a:r}(a,Pe.call(arguments).concat(["gl"]),(function(){}))},a.prototype.gl=function(){var e;return e=this._rgb,[e[0]/255,e[1]/255,e[2]/255,e[3]]},ve=function(e,t,n){var r;return r=Me(arguments),e=r[0],t=r[1],n=r[2],e=J(e),t=J(t),n=J(n),.2126*e+.7152*t+.0722*n},J=function(e){return e/=255,e<=.03928?e/12.92:oe((e+.055)/1.055,2.4)},U=function(e,t,n,r){var o,i;return o=e._rgb,i=t._rgb,new a(o[0]+n*(i[0]-o[0]),o[1]+n*(i[1]-o[1]),o[2]+n*(i[2]-o[2]),r)},v.push(["rgb",U]),a.prototype.luminance=function(e,t){var n,r,a,o,i;return null==t&&(t="rgb"),arguments.length?(o=this._rgb,0===e?o=[0,0,0,this._rgb[3]]:1===e?o=[255,255,255,this[3]]:(n=ve(this._rgb),r=1e-7,a=20,i=function(n,o){var l,s;return s=n.interpolate(o,.5,t),l=s.luminance(),Math.abs(e-l)<r||!a--?s:l>e?i(n,s):i(s,o)},o=n>e?i(k("black"),this).rgba():i(this,k("white")).rgba()),k(o).alpha(this.alpha())):ve(this._rgb)},Ee=function(e){var t,n,r,a;return a=e/100,a<66?(r=255,n=-155.25485562709179-.44596950469579133*(n=a-2)+104.49216199393888*Z(n),t=a<20?0:.8274096064007395*(t=a-10)-254.76935184120902+115.67994401066147*Z(t)):(r=351.97690566805693+.114206453784165*(r=a-55)-40.25366309332127*Z(r),n=325.4494125711974+.07943456536662342*(n=a-50)-28.0852963507957*Z(n),t=255),[r,n,t]},ye=function(){var e,t,n,r,a,o,i,l;for(o=Me(arguments),a=o[0],o[1],e=o[2],r=1e3,n=4e4,t=.4;n-r>t;)l=.5*(n+r),i=Ee(l),i[2]/i[0]>=e/a?n=l:r=l;return _e(l)},k.temperature=k.kelvin=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,a=e.apply(r,t);return Object(a)===a?a:r}(a,Pe.call(arguments).concat(["temperature"]),(function(){}))},h.temperature=h.kelvin=h.K=Ee,a.prototype.temperature=function(){return ye(this._rgb)},a.prototype.kelvin=a.prototype.temperature,k.contrast=function(e,t){var n,r,o,i;return"string"!==(o=Oe(e))&&"number"!==o||(e=new a(e)),"string"!==(i=Oe(t))&&"number"!==i||(t=new a(t)),n=e.luminance(),r=t.luminance(),n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)},k.distance=function(e,t,n){var r,o,i,l,s,u,c;for(o in null==n&&(n="lab"),"string"!==(s=Oe(e))&&"number"!==s||(e=new a(e)),"string"!==(u=Oe(t))&&"number"!==u||(t=new a(t)),i=e.get(n),l=t.get(n),c=0,i)r=(i[o]||0)-(l[o]||0),c+=r*r;return Math.sqrt(c)},k.deltaE=function(e,t,n,r){var o,i,s,u,c,f,p,d,h,v,g,b,x,_,w,k,T,E,M,S,C,A,P,L,D,j,I;for(null==n&&(n=1),null==r&&(r=1),"string"!==(T=Oe(e))&&"number"!==T||(e=new a(e)),"string"!==(E=Oe(t))&&"number"!==E||(t=new a(t)),M=e.lab(),o=M[0],s=M[1],c=M[2],S=t.lab(),i=S[0],u=S[1],f=S[2],p=Te(s*s+c*c),d=Te(u*u+f*f),P=o<16?.511:.040975*o/(1+.01765*o),C=.0638*p/(1+.0131*p)+.638,k=p<1e-6?0:180*y(c,s)/l;k<0;)k+=360;for(;k>=360;)k-=360;return L=k>=164&&k<=345?.56+m(.2*O(l*(k+168)/180)):.36+m(.4*O(l*(k+35)/180)),h=p*p*p*p,w=Te(h/(h+1900)),A=C*(w*L+1-w),_=o-i,x=p-d,g=s-u,b=c-f,v=g*g+b*b-x*x,D=_/(n*P),j=x/(r*C),I=A,Te(D*D+j*j+v/(I*I))},a.prototype.get=function(e){var t,n,r,a,o,i;return r=this,o=e.split("."),a=o[0],t=o[1],i=r[a](),t?(n=a.indexOf(t),n>-1?i[n]:console.warn("unknown channel "+t+" in mode "+a)):i},a.prototype.set=function(e,t){var n,r,a,o,i,l;if(a=this,i=e.split("."),o=i[0],n=i[1],n)if(l=a[o](),(r=o.indexOf(n))>-1)if("string"===Oe(t))switch(t.charAt(0)){case"+":case"-":l[r]+=+t;break;case"*":l[r]*=+t.substr(1);break;case"/":l[r]/=+t.substr(1);break;default:l[r]=+t}else l[r]=t;else console.warn("unknown channel "+n+" in mode "+o);else l=t;return k(l,o).alpha(a.alpha())},a.prototype.clipped=function(){return this._rgb._clipped||!1},a.prototype.alpha=function(e){return arguments.length?k.rgb([this._rgb[0],this._rgb[1],this._rgb[2],e]):this._rgb[3]},a.prototype.darken=function(e){var t,n;return null==e&&(e=1),n=this,t=n.lab(),t[0]-=i.Kn*e,k.lab(t).alpha(n.alpha())},a.prototype.brighten=function(e){return null==e&&(e=1),this.darken(-e)},a.prototype.darker=a.prototype.darken,a.prototype.brighter=a.prototype.brighten,a.prototype.saturate=function(e){var t,n;return null==e&&(e=1),n=this,t=n.lch(),t[1]+=e*i.Kn,t[1]<0&&(t[1]=0),k.lch(t).alpha(n.alpha())},a.prototype.desaturate=function(e){return null==e&&(e=1),this.saturate(-e)},a.prototype.premultiply=function(){var e,t;return t=this.rgb(),e=this.alpha(),k(t[0]*e,t[1]*e,t[2]*e,e)},b=function(e,t,n){if(!b[n])throw"unknown blend mode "+n;return b[n](e,t)},x=function(e){return function(t,n){var r,a;return r=k(n).rgb(),a=k(t).rgb(),k(e(r,a),"rgb")}},A=function(e){return function(t,n){var r,a,o;for(o=[],r=a=0;a<=3;r=++a)o[r]=e(t[r],n[r]);return o}},ne=function(e,t){return e},te=function(e,t){return e*t/255},S=function(e,t){return e>t?t:e},K=function(e,t){return e>t?e:t},we=function(e,t){return 255*(1-(1-e/255)*(1-t/255))},ae=function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},w=function(e,t){return 255*(1-(1-t/255)/(e/255))},C=function(e,t){return 255===e?255:(e=t/255*255/(1-e/255),e>255?255:e)},b.normal=x(A(ne)),b.multiply=x(A(te)),b.screen=x(A(we)),b.overlay=x(A(ae)),b.darken=x(A(S)),b.lighten=x(A(K)),b.dodge=x(A(C)),b.burn=x(A(w)),k.blend=b,k.analyze=function(e){var t,n,r,a;for(r={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0},n=0,t=e.length;n<t;n++)null==(a=e[n])||isNaN(a)||(r.values.push(a),r.sum+=a,a<r.min&&(r.min=a),a>r.max&&(r.max=a),r.count+=1);return r.domain=[r.min,r.max],r.limits=function(e,t){return k.limits(r,e,t)},r},k.scale=function(e,t){var n,r,a,o,i,l,s,u,c,f,p,d,h,v,m,y,g,b,x,_,w;return c="rgb",f=k("#ccc"),v=0,i=[0,1],h=[],d=[0,0],n=!1,a=[],p=!1,u=0,s=1,o=!1,r={},m=!0,l=1,_=function(e){var t,n,r,o,i,l;if(null==e&&(e=["#fff","#000"]),null!=e&&"string"===Oe(e)&&null!=k.brewer&&(e=k.brewer[e]||k.brewer[e.toLowerCase()]||e),"array"===Oe(e)){for(1===e.length&&(e=[e[0],e[0]]),e=e.slice(0),t=r=0,o=e.length-1;0<=o?r<=o:r>=o;t=0<=o?++r:--r)n=e[t],"string"===Oe(n)&&(e[t]=k(n));for(h.length=0,t=l=0,i=e.length-1;0<=i?l<=i:l>=i;t=0<=i?++l:--l)h.push(t/(e.length-1))}return x(),a=e},g=function(e){var t,r;if(null!=n){for(r=n.length-1,t=0;t<r&&e>=n[t];)t++;return t-1}return 0},w=function(e){return e},b=function(e,t){var o,i,p,v,y,b,x,_;if(null==t&&(t=!1),isNaN(e)||null===e)return f;if(t?_=e:n&&n.length>2?(o=g(e),_=o/(n.length-2)):_=s!==u?(e-u)/(s-u):1,t||(_=w(_)),1!==l&&(_=oe(_,l)),_=d[0]+_*(1-d[0]-d[1]),_=Math.min(1,Math.max(0,_)),v=Math.floor(1e4*_),m&&r[v])i=r[v];else{if("array"===Oe(a))for(p=y=0,x=h.length-1;0<=x?y<=x:y>=x;p=0<=x?++y:--y){if(b=h[p],_<=b){i=a[p];break}if(_>=b&&p===h.length-1){i=a[p];break}if(_>b&&_<h[p+1]){_=(_-b)/(h[p+1]-b),i=k.interpolate(a[p],a[p+1],_,c);break}}else"function"===Oe(a)&&(i=a(_));m&&(r[v]=i)}return i},x=function(){return r={}},_(e),y=function(e){var t;return t=k(b(e)),p&&t[p]?t[p]():t},y.classes=function(e){var t;return null!=e?("array"===Oe(e)?(n=e,i=[e[0],e[e.length-1]]):(t=k.analyze(i),n=0===e?[t.min,t.max]:k.limits(t,"e",e)),y):n},y.domain=function(e){var t,n,r,o,l,c,f;if(!arguments.length)return i;if(u=e[0],s=e[e.length-1],h=[],r=a.length,e.length===r&&u!==s)for(l=0,o=e.length;l<o;l++)n=e[l],h.push((n-u)/(s-u));else for(t=f=0,c=r-1;0<=c?f<=c:f>=c;t=0<=c?++f:--f)h.push(t/(r-1));return i=[u,s],y},y.mode=function(e){return arguments.length?(c=e,x(),y):c},y.range=function(e,t){return _(e,t),y},y.out=function(e){return p=e,y},y.spread=function(e){return arguments.length?(v=e,y):v},y.correctLightness=function(e){return null==e&&(e=!0),o=e,x(),w=o?function(e){var t,n,r,a,o,i,l,s,u;for(t=b(0,!0).lab()[0],n=b(1,!0).lab()[0],l=t>n,r=b(e,!0).lab()[0],o=t+(n-t)*e,a=r-o,s=0,u=1,i=20;Math.abs(a)>.01&&i-- >0;)!function(){l&&(a*=-1),a<0?(s=e,e+=.5*(u-e)):(u=e,e+=.5*(s-e)),r=b(e,!0).lab()[0],a=r-o}();return e}:function(e){return e},y},y.padding=function(e){return null!=e?("number"===Oe(e)&&(e=[e,e]),d=e,y):d},y.colors=function(t,r){var o,l,s,u,c,f,p,d;if(arguments.length<2&&(r="hex"),c=[],0===arguments.length)c=a.slice(0);else if(1===t)c=[y(.5)];else if(t>1)l=i[0],o=i[1]-l,c=function(){f=[];for(var e=0;0<=t?e<t:e>t;0<=t?e++:e--)f.push(e);return f}.apply(this).map((function(e){return y(l+e/(t-1)*o)}));else{if(e=[],p=[],n&&n.length>2)for(s=d=1,u=n.length;1<=u?d<u:d>u;s=1<=u?++d:--d)p.push(.5*(n[s-1]+n[s]));else p=i;c=p.map((function(e){return y(e)}))}return k[r]&&(c=c.map((function(e){return e[r]()}))),c},y.cache=function(e){return null!=e?(m=e,y):m},y.gamma=function(e){return null!=e?(l=e,y):l},y.nodata=function(e){return null!=e?(f=k(e),y):f},y},null==k.scales&&(k.scales={}),k.scales.cool=function(){return k.scale([k.hsl(180,1,.9),k.hsl(250,.7,.4)])},k.scales.hot=function(){return k.scale(["#000","#f00","#ff0","#fff"],[0,.25,.75,1]).mode("rgb")},k.analyze=function(e,t,n){var r,a,o,i,l,s,u;if(l={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0},null==n&&(n=function(){return!0}),r=function(e){null==e||isNaN(e)||(l.values.push(e),l.sum+=e,e<l.min&&(l.min=e),e>l.max&&(l.max=e),l.count+=1)},u=function(e,a){if(n(e,a))return r(null!=t&&"function"===Oe(t)?t(e):null!=t&&"string"===Oe(t)||"number"===Oe(t)?e[t]:e)},"array"===Oe(e))for(i=0,o=e.length;i<o;i++)s=e[i],u(s);else for(a in e)s=e[a],u(s,a);return l.domain=[l.min,l.max],l.limits=function(e,t){return k.limits(l,e,t)},l},k.limits=function(e,t,n){var r,a,o,i,l,s,u,c,f,p,d,h,v,y,g,b,x,_,w,T,E,O,M,S,C,A,L,D,j,I,R,z,N,F,B,V,H,U,W,q,$,G,Y,K,X,J,Q,te,ne,re,ae,ie,le,se,ue;if(null==t&&(t="equal"),null==n&&(n=7),"array"===Oe(e)&&(e=k.analyze(e)),C=e.min,ee=e.max,e.sum,se=e.values.sort((function(e,t){return e-t})),1===n)return[C,ee];if(M=[],"c"===t.substr(0,1)&&(M.push(C),M.push(ee)),"e"===t.substr(0,1)){for(M.push(C),T=R=1,B=n-1;1<=B?R<=B:R>=B;T=1<=B?++R:--R)M.push(C+T/n*(ee-C));M.push(ee)}else if("l"===t.substr(0,1)){if(C<=0)throw"Logarithmic scales are only possible for values > 0";for(A=Math.LOG10E*Z(C),S=Math.LOG10E*Z(ee),M.push(C),T=ue=1,V=n-1;1<=V?ue<=V:ue>=V;T=1<=V?++ue:--ue)M.push(oe(10,A+T/n*(S-A)));M.push(ee)}else if("q"===t.substr(0,1)){for(M.push(C),T=r=1,G=n-1;1<=G?r<=G:r>=G;T=1<=G?++r:--r)z=(se.length-1)*T/n,N=P(z),N===z?M.push(se[N]):(F=z-N,M.push(se[N]*(1-F)+se[N+1]*F));M.push(ee)}else if("k"===t.substr(0,1)){for(D=se.length,y=new Array(D),_=new Array(n),re=!0,j=0,b=null,b=[],b.push(C),T=a=1,Y=n-1;1<=Y?a<=Y:a>=Y;T=1<=Y?++a:--a)b.push(C+T/n*(ee-C));for(b.push(ee);re;){for(E=o=0,K=n-1;0<=K?o<=K:o>=K;E=0<=K?++o:--o)_[E]=0;for(T=i=0,X=D-1;0<=X?i<=X:i>=X;T=0<=X?++i:--i){for(le=se[T],L=Number.MAX_VALUE,E=l=0,J=n-1;0<=J?l<=J:l>=J;E=0<=J?++l:--l)(w=m(b[E]-le))<L&&(L=w,g=E);_[g]++,y[T]=g}for(I=new Array(n),E=s=0,Q=n-1;0<=Q?s<=Q:s>=Q;E=0<=Q?++s:--s)I[E]=null;for(T=u=0,te=D-1;0<=te?u<=te:u>=te;T=0<=te?++u:--u)x=y[T],null===I[x]?I[x]=se[T]:I[x]+=se[T];for(E=c=0,ne=n-1;0<=ne?c<=ne:c>=ne;E=0<=ne?++c:--c)I[E]*=1/_[E];for(re=!1,E=f=0,H=n-1;0<=H?f<=H:f>=H;E=0<=H?++f:--f)if(I[E]!==b[T]){re=!0;break}b=I,j++,j>200&&(re=!1)}for(O={},E=p=0,U=n-1;0<=U?p<=U:p>=U;E=0<=U?++p:--p)O[E]=[];for(T=d=0,W=D-1;0<=W?d<=W:d>=W;T=0<=W?++d:--d)x=y[T],O[x].push(se[T]);for(ae=[],E=h=0,q=n-1;0<=q?h<=q:h>=q;E=0<=q?++h:--h)ae.push(O[E][0]),ae.push(O[E][O[E].length-1]);for(ae=ae.sort((function(e,t){return e-t})),M.push(ae[0]),T=v=1,$=ae.length-1;v<=$;T=v+=2)ie=ae[T],isNaN(ie)||-1!==M.indexOf(ie)||M.push(ie)}return M},j=function(e,t,n){var r,a,o,i;return r=Me(arguments),e=r[0],t=r[1],n=r[2],isNaN(e)&&(e=0),e/=360,e<1/3?(a=(1-t)/3,i=(1+t*O(c*e)/O(s-c*e))/3,o=1-(a+i)):e<2/3?(e-=1/3,i=(1-t)/3,o=(1+t*O(c*e)/O(s-c*e))/3,a=1-(i+o)):(e-=2/3,o=(1-t)/3,a=(1+t*O(c*e)/O(s-c*e))/3,i=1-(o+a)),i=X(n*i*3),o=X(n*o*3),a=X(n*a*3),[255*i,255*o,255*a,r.length>3?r[3]:1]},ce=function(){var e,t,n,r,a,o,i,l;return i=Me(arguments),o=i[0],t=i[1],e=i[2],c=2*Math.PI,o/=255,t/=255,e/=255,a=Math.min(o,t,e),r=(o+t+e)/3,l=1-a/r,0===l?n=0:(n=(o-t+(o-e))/2,n/=Math.sqrt((o-t)*(o-t)+(o-e)*(t-e)),n=Math.acos(n),e>t&&(n=c-n),n/=c),[360*n,l,r]},k.hsi=function(){return function(e,t,n){n.prototype=e.prototype;var r=new n,a=e.apply(r,t);return Object(a)===a?a:r}(a,Pe.call(arguments).concat(["hsi"]),(function(){}))},h.hsi=j,a.prototype.hsi=function(){return ce(this._rgb)},F=function(e,t,n,r){var a,o,i,l,s,u,c,f,p,d,h,v;return"hsl"===r?(h=e.hsl(),v=t.hsl()):"hsv"===r?(h=e.hsv(),v=t.hsv()):"hcg"===r?(h=e.hcg(),v=t.hcg()):"hsi"===r?(h=e.hsi(),v=t.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",h=e.hcl(),v=t.hcl()),"h"===r.substr(0,1)&&(i=h[0],p=h[1],u=h[2],l=v[0],d=v[1],c=v[2]),isNaN(i)||isNaN(l)?isNaN(i)?isNaN(l)?o=Number.NaN:(o=l,1!==u&&0!==u||"hsv"===r||(f=d)):(o=i,1!==c&&0!==c||"hsv"===r||(f=p)):(a=l>i&&l-i>180?l-(i+360):l<i&&i-l>180?l+360-i:l-i,o=i+n*a),null==f&&(f=p+n*(d-p)),s=u+n*(c-u),k[r](o,f,s)},v=v.concat(function(){var e,t,n,r;for(n=["hsv","hsl","hsi","hcl","lch","hcg"],r=[],t=0,e=n.length;t<e;t++)Q=n[t],r.push([Q,F]);return r}()),H=function(e,t,n,r){var a,o;return a=e.num(),o=t.num(),k.num(a+(o-a)*n,"num")},v.push(["num",H]),B=function(e,t,n,r){var o,i;return o=e.lab(),i=t.lab(),new a(o[0]+n*(i[0]-o[0]),o[1]+n*(i[1]-o[1]),o[2]+n*(i[2]-o[2]),r)},v.push(["lab",B])}).call(this)}).call(t,n(83)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(85);t.default=r.a},function(e,t,n){e.exports=!n(13)&&!n(22)((function(){return 7!=Object.defineProperty(n(59)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(21),a=n(11).document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},function(e,t,n){var r=n(14),a=n(15),o=n(91)(!1),i=n(39)("IE_PROTO");e.exports=function(e,t){var n,l=a(e),s=0,u=[];for(n in l)n!=i&&r(l,n)&&u.push(n);for(;t.length>s;)r(l,n=t[s++])&&(~o(u,n)||u.push(n));return u}},function(e,t,n){var r=n(36);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(38),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r=n(95)(!0);n(64)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t,n){"use strict";var r=n(28),a=n(10),o=n(65),i=n(19),l=n(25),s=n(96),u=n(45),c=n(66),f=n(7)("iterator"),p=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,v,m,y){s(n,t,h);var g,b,x,_=function(e){if(!p&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",k="values"==v,T=!1,E=e.prototype,O=E[f]||E["@@iterator"]||v&&E[v],M=O||_(v),S=v?k?_("entries"):M:void 0,C="Array"==t&&E.entries||O;if(C&&(x=c(C.call(new e)))!==Object.prototype&&x.next&&(u(x,w,!0),r||"function"==typeof x[f]||i(x,f,d)),k&&O&&"values"!==O.name&&(T=!0,M=function(){return O.call(this)}),r&&!y||!p&&!T&&E[f]||i(E,f,M),l[t]=M,l[w]=d,v)if(g={values:k?M:_("values"),keys:m?M:_("keys"),entries:S},y)for(b in g)b in E||o(E,b,g[b]);else a(a.P+a.F*(p||T),t,g);return g}},function(e,t,n){e.exports=n(19)},function(e,t,n){var r=n(14),a=n(31),o=n(39)("IE_PROTO"),i=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?i:null}},function(e,t,n){var r=n(60),a=n(41).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var a=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 n,l,s=r(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]),n)o.call(n,c)&&(s[c]=n[c]);if(a){l=a(n);for(var f=0;f<l.length;f++)i.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},function(e,t,n){e.exports={default:n(129),__esModule:!0}},function(e,t,n){"use strict";function r(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function a(e,t,n){var r=e[t]||{};return s()({},r,n)}function o(e,t,n,a){var o=n.points;for(var i in e)if(e.hasOwnProperty(i)&&r(e[i].points,o,a))return t+"-placement-"+i;return""}function i(e,t){this[e]=t}t.a=a,t.b=o,t.c=i;var l=n(5),s=n.n(l)},function(e,t,n){"use strict";function r(e,t,n){return e.left<n.left||e.left+t.width>n.right}function a(e,t,n){return e.top<n.top||e.top+t.height>n.bottom}function o(e,t,n){return e.left>n.right||e.left+t.width<n.left}function i(e,t,n){return e.top>n.bottom||e.top+t.height<n.top}function l(e,t,n){var r=[];return p.a.each(e,(function(e){r.push(e.replace(t,(function(e){return n[e]})))})),r}function s(e,t){return e[t]=-e[t],e}function u(e,t){return(/%$/.test(e)?parseInt(e.substring(0,e.length-1),10)/100*t:parseInt(e,10))||0}function c(e,t){e[0]=u(e[0],t.width),e[1]=u(e[1],t.height)}function f(e,t,n,u){var f=n.points,y=n.offset||[0,0],g=n.targetOffset||[0,0],b=n.overflow,x=n.source||e;y=[].concat(y),g=[].concat(g),b=b||{};var _={},w=0,k=Object(d.a)(x),T=Object(v.a)(x);c(y,T),c(g,t);var E=Object(m.a)(T,t,f,y,g),O=p.a.merge(T,E);if(k&&(b.adjustX||b.adjustY)&&u){if(b.adjustX&&r(E,T,k)){var M=l(f,/[lr]/gi,{l:"r",r:"l"}),S=s(y,0),C=s(g,0);o(Object(m.a)(T,t,M,S,C),T,k)||(w=1,f=M,y=S,g=C)}if(b.adjustY&&a(E,T,k)){var A=l(f,/[tb]/gi,{t:"b",b:"t"}),P=s(y,1),L=s(g,1);i(Object(m.a)(T,t,A,P,L),T,k)||(w=1,f=A,y=P,g=L)}w&&(E=Object(m.a)(T,t,f,y,g),p.a.mix(O,E));var D=r(E,T,k),j=a(E,T,k);(D||j)&&(f=n.points,y=n.offset||[0,0],g=n.targetOffset||[0,0]),_.adjustX=b.adjustX&&D,_.adjustY=b.adjustY&&j,(_.adjustX||_.adjustY)&&(O=Object(h.a)(E,T,k,_))}return O.width!==T.width&&p.a.css(x,"width",p.a.width(x)+O.width-T.width),O.height!==T.height&&p.a.css(x,"height",p.a.height(x)+O.height-T.height),p.a.offset(x,{left:O.left,top:O.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:f,offset:y,targetOffset:g,overflow:_}}var p=n(17),d=n(72),h=n(139),v=n(74),m=n(140);t.a=f},function(e,t,n){"use strict";function r(e){for(var t={left:0,right:1/0,top:0,bottom:1/0},n=Object(o.a)(e),r=a.a.getDocument(e),l=r.defaultView||r.parentWindow,s=r.body,u=r.documentElement;n;){if(-1!==navigator.userAgent.indexOf("MSIE")&&0===n.clientWidth||n===s||n===u||"visible"===a.a.css(n,"overflow")){if(n===s||n===u)break}else{var c=a.a.offset(n);c.left+=n.clientLeft,c.top+=n.clientTop,t.top=Math.max(t.top,c.top),t.right=Math.min(t.right,c.left+n.clientWidth),t.bottom=Math.min(t.bottom,c.top+n.clientHeight),t.left=Math.max(t.left,c.left)}n=Object(o.a)(n)}var f=null;a.a.isWindow(e)||9===e.nodeType||(f=e.style.position,"absolute"===a.a.css(e,"position")&&(e.style.position="fixed"));var p=a.a.getWindowScrollLeft(l),d=a.a.getWindowScrollTop(l),h=a.a.viewportWidth(l),v=a.a.viewportHeight(l),m=u.scrollWidth,y=u.scrollHeight;if(e.style&&(e.style.position=f),Object(i.a)(e))t.left=Math.max(t.left,p),t.top=Math.max(t.top,d),t.right=Math.min(t.right,p+h),t.bottom=Math.min(t.bottom,d+v);else{var g=Math.max(m,p+h);t.right=Math.min(t.right,g);var b=Math.max(y,d+v);t.bottom=Math.min(t.bottom,b)}return t.top>=0&&t.left>=0&&t.bottom>t.top&&t.right>t.left?t:null}var a=n(17),o=n(73),i=n(138);t.a=r},function(e,t,n){"use strict";function r(e){if(a.a.isWindow(e)||9===e.nodeType)return null;var t=a.a.getDocument(e),n=t.body,r=void 0,o=a.a.css(e,"position");if("fixed"!==o&&"absolute"!==o)return"html"===e.nodeName.toLowerCase()?null:e.parentNode;for(r=e.parentNode;r&&r!==n;r=r.parentNode)if("static"!==(o=a.a.css(r,"position")))return r;return null}var a=n(17);t.a=r},function(e,t,n){"use strict";function r(e){var t=void 0,n=void 0,r=void 0;if(a.a.isWindow(e)||9===e.nodeType){var o=a.a.getWindow(e);t={left:a.a.getWindowScrollLeft(o),top:a.a.getWindowScrollTop(o)},n=a.a.viewportWidth(o),r=a.a.viewportHeight(o)}else t=a.a.offset(e),n=a.a.outerWidth(e),r=a.a.outerHeight(e);return t.width=n,t.height=r,t}var a=n(17);t.a=r},function(e,t){e.exports=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}},function(e,t,n){"use strict";var r={isAppearSupported:function(e){return e.transitionName&&e.transitionAppear||e.animation.appear},isEnterSupported:function(e){return e.transitionName&&e.transitionEnter||e.animation.enter},isLeaveSupported:function(e){return e.transitionName&&e.transitionLeave||e.animation.leave},allowAppearCallback:function(e){return e.transitionAppear||e.animation.appear},allowEnterCallback:function(e){return e.transitionEnter||e.animation.enter},allowLeaveCallback:function(e){return e.transitionLeave||e.animation.leave}};t.a=r},function(e,t,n){"use strict";var r=n(24),a=n.n(r),o=n(2),i=n.n(o),l=n(3),s=n.n(l),u=n(4),c=n.n(u),f=n(0),p=n.n(f),d=n(1),h=n.n(d),v=function(e){function t(){return i()(this,t),s()(this,e.apply(this,arguments))}return c()(t,e),t.prototype.shouldComponentUpdate=function(e){return e.hiddenClassName||e.visible},t.prototype.render=function(){var e=this.props,t=e.hiddenClassName,n=e.visible,r=a()(e,["hiddenClassName","visible"]);return t||p.a.Children.count(r.children)>1?(!n&&t&&(r.className+=" "+t),p.a.createElement("div",r)):p.a.Children.only(r.children)},t}(f.Component);v.propTypes={children:h.a.any,className:h.a.string,visible:h.a.bool,hiddenClassName:h.a.string},t.a=v},function(e,t,n){"use strict";var r=n(5),a=n.n(r),o=n(0),i=n.n(o),l=function(e){var t=e.className,n=e.included,r=e.vertical,o=e.offset,l=e.length,s=e.style,u=r?{bottom:o+"%",height:l+"%"}:{left:o+"%",width:l+"%"},c=a()({},s,u);return n?i.a.createElement("div",{className:t,style:c}):null};t.a=l},function(e,t,n){"use strict";function r(){}function a(e){var t,n;return n=t=function(e){function t(e){p()(this,t);var n=m()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(n.onMouseDown=function(e){if(0===e.button){var t=n.props.vertical,r=D.e(t,e);if(D.h(e,n.handlesRefs)){var a=D.c(t,e.target);n.dragOffset=r-a,r=a}else n.dragOffset=0;n.removeDocumentEvents(),n.onStart(r),n.addDocumentMouseEvents()}},n.onTouchStart=function(e){if(!D.i(e)){var t=n.props.vertical,r=D.f(t,e);if(D.h(e,n.handlesRefs)){var a=D.c(t,e.target);n.dragOffset=r-a,r=a}else n.dragOffset=0;n.onStart(r),n.addDocumentTouchEvents(),D.k(e)}},n.onFocus=function(e){var t=n.props,r=t.onFocus,a=t.vertical;if(D.h(e,n.handlesRefs)){var o=D.c(a,e.target);n.dragOffset=0,n.onStart(o),D.k(e),r&&r(e)}},n.onBlur=function(e){var t=n.props.onBlur;n.onEnd(e),t&&t(e)},n.onMouseUp=function(){n.handlesRefs[n.prevMovedHandleIndex]&&n.handlesRefs[n.prevMovedHandleIndex].clickFocus()},n.onMouseMove=function(e){if(n.sliderRef){var t=D.e(n.props.vertical,e);n.onMove(e,t-n.dragOffset)}else n.onEnd()},n.onTouchMove=function(e){if(!D.i(e)&&n.sliderRef){var t=D.f(n.props.vertical,e);n.onMove(e,t-n.dragOffset)}else n.onEnd()},n.onKeyDown=function(e){n.sliderRef&&D.h(e,n.handlesRefs)&&n.onKeyboard(e)},n.onClickMarkLabel=function(e,t){e.stopPropagation(),n.onChange({value:t}),n.onEnd()},n.saveSlider=function(e){n.sliderRef=e},D.g()){var r=e.step,a=e.max,o=e.min,i=!isFinite(a-o)||(a-o)%r===0;C()(!r||Math.floor(r)!==r||i,"Slider[max] - Slider[min] (%s) should be a multiple of Slider[step] (%s)",a-o,r)}return n.handlesRefs={},n}return x()(t,e),h()(t,[{key:"componentDidMount",value:function(){this.document=this.sliderRef&&this.sliderRef.ownerDocument}},{key:"componentWillUnmount",value:function(){g()(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"componentWillUnmount",this)&&g()(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"componentWillUnmount",this).call(this),this.removeDocumentEvents()}},{key:"getSliderStart",value:function(){var e=this.sliderRef,t=e.getBoundingClientRect();return this.props.vertical?t.top:t.left+window.pageXOffset}},{key:"getSliderLength",value:function(){var e=this.sliderRef;if(!e)return 0;var t=e.getBoundingClientRect();return this.props.vertical?t.height:t.width}},{key:"addDocumentTouchEvents",value:function(){this.onTouchMoveListener=Object(E.a)(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Object(E.a)(this.document,"touchend",this.onEnd)}},{key:"addDocumentMouseEvents",value:function(){this.onMouseMoveListener=Object(E.a)(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Object(E.a)(this.document,"mouseup",this.onEnd)}},{key:"removeDocumentEvents",value:function(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()}},{key:"focus",value:function(){this.props.disabled||this.handlesRefs[0].focus()}},{key:"blur",value:function(){var e=this;this.props.disabled||Object.keys(this.handlesRefs).forEach((function(t){e.handlesRefs[t]&&e.handlesRefs[t].blur&&e.handlesRefs[t].blur()}))}},{key:"calcValue",value:function(e){var t=this.props,n=t.vertical,r=t.min,a=t.max,o=Math.abs(Math.max(e,0)/this.getSliderLength());return n?(1-o)*(a-r)+r:o*(a-r)+r}},{key:"calcValueByPos",value:function(e){var t=e-this.getSliderStart();return this.trimAlignValue(this.calcValue(t))}},{key:"calcOffset",value:function(e){var t=this.props,n=t.min;return(e-n)/(t.max-n)*100}},{key:"saveHandle",value:function(e,t){this.handlesRefs[e]=t}},{key:"render",value:function(){var e,n=this.props,a=n.prefixCls,o=n.className,i=n.marks,l=n.dots,u=n.step,f=n.included,p=n.disabled,d=n.vertical,h=n.min,v=n.max,m=n.children,y=n.maximumTrackStyle,b=n.style,x=n.railStyle,_=n.dotStyle,k=n.activeDotStyle,T=g()(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"render",this).call(this),E=T.tracks,O=T.handles,S=M()(a,(e={},c()(e,a+"-with-marks",Object.keys(i).length),c()(e,a+"-disabled",p),c()(e,a+"-vertical",d),c()(e,o,o),e));return w.a.createElement("div",{ref:this.saveSlider,className:S,onTouchStart:p?r:this.onTouchStart,onMouseDown:p?r:this.onMouseDown,onMouseUp:p?r:this.onMouseUp,onKeyDown:p?r:this.onKeyDown,onFocus:p?r:this.onFocus,onBlur:p?r:this.onBlur,style:b},w.a.createElement("div",{className:a+"-rail",style:s()({},y,x)}),E,w.a.createElement(A.a,{prefixCls:a,vertical:d,marks:i,dots:l,step:u,included:f,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:v,min:h,dotStyle:_,activeDotStyle:k}),O,w.a.createElement(P.a,{className:a+"-mark",onClickLabel:p?r:this.onClickMarkLabel,vertical:d,marks:i,included:f,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:v,min:h}),m)}}]),t}(e),t.displayName="ComponentEnhancer("+e.displayName+")",t.propTypes=s()({},e.propTypes,{min:T.a.number,max:T.a.number,step:T.a.number,marks:T.a.object,included:T.a.bool,className:T.a.string,prefixCls:T.a.string,disabled:T.a.bool,children:T.a.any,onBeforeChange:T.a.func,onChange:T.a.func,onAfterChange:T.a.func,handle:T.a.func,dots:T.a.bool,vertical:T.a.bool,style:T.a.object,minimumTrackStyle:T.a.object,maximumTrackStyle:T.a.object,handleStyle:T.a.oneOfType([T.a.object,T.a.arrayOf(T.a.object)]),trackStyle:T.a.oneOfType([T.a.object,T.a.arrayOf(T.a.object)]),railStyle:T.a.object,dotStyle:T.a.object,activeDotStyle:T.a.object,autoFocus:T.a.bool,onFocus:T.a.func,onBlur:T.a.func}),t.defaultProps=s()({},e.defaultProps,{prefixCls:"rc-slider",className:"",min:0,max:100,step:1,marks:{},handle:function(e){var t=e.index,n=i()(e,["index"]);return delete n.dragging,null===n.value?null:w.a.createElement(L.a,s()({},n,{key:t}))},onBeforeChange:r,onChange:r,onAfterChange:r,included:!0,disabled:!1,dots:!1,vertical:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),n}t.a=a;var o=n(24),i=n.n(o),l=n(5),s=n.n(l),u=n(18),c=n.n(u),f=n(2),p=n.n(f),d=n(9),h=n.n(d),v=n(3),m=n.n(v),y=n(155),g=n.n(y),b=n(4),x=n.n(b),_=n(0),w=n.n(_),k=n(1),T=n.n(k),E=n(32),O=n(16),M=n.n(O),S=n(50),C=n.n(S),A=n(162),P=n(163),L=n(51),D=n(52)},function(e,t,n){var r=n(10),a=n(6),o=n(22);e.exports=function(e,t){var n=(a.Object||{})[e]||Object[e],i={};i[e]=t(n),r(r.S+r.F*o((function(){n(1)})),"Object",i)}},function(e,t,n){"use strict";t.__esModule=!0;var r=n(164),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,a.default)(e)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getColorscale=t.COLOR_PICKER_CONSTANTS=t.Colorscale=void 0;var a=n(55),o=r(a),i=n(84),l=r(i),s=n(33),u=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}(s);t.default=l.default,t.Colorscale=o.default,t.COLOR_PICKER_CONSTANTS=u,t.getColorscale=i.getColorscale},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function l(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)}function s(e,t,n,r,a){var o=m.default.scale(e).mode("lch");if(r){var i=Array(t).fill().map((function(e,t){return t+1}));o=o.classes(m.default.limits(i,"l",n))}var l=o.colors(t);return r||"categorical"!==a||(l=function(e,t){var n=Array.apply(null,new Array(t));return n=n.map((function(){return e})),[].concat.apply([],n)}(e,t).slice(0,t)),l}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorscalePaletteSelector=void 0;var u=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},c=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}}();t.getColorscale=s;var f=n(0),p=r(f),d=n(55),h=r(d),v=n(56),m=r(v),y=n(57),g=r(y),b=n(153),x=r(b),_=n(177),w=r(_);n(179),n(182);var k=n(33);n(184);var T=x.default.Handle,E=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return O.call(n),n.state={colorscale:n.props.colorscale||k.DEFAULT_SCALE,nSwatches:(n.props.colorscale||k.DEFAULT_SCALE).length,previousColorscale:n.props.colorscale||k.DEFAULT_SCALE,colorscaleType:n.props.colorscaleType||n.props.initialColorscaleType,log:!1,logBreakpoints:k.DEFAULT_LOG_BREAKPOINTS,customBreakpoints:k.DEFAULT_BREAKPOINTS,previousCustomBreakpoints:null,cubehelix:{start:k.DEFAULT_START,rotations:k.DEFAULT_ROTATIONS}},n.onClick=n.onClick.bind(n),n.setColorscaleType=n.setColorscaleType.bind(n),n.updateCubehelixStart=n.updateCubehelixStart.bind(n),n.updateCubehelixRotations=n.updateCubehelixRotations.bind(n),n.updateCubehelix=n.updateCubehelix.bind(n),n.toggleLog=n.toggleLog.bind(n),n.handle=n.handle.bind(n),n}return l(t,e),c(t,[{key:"componentDidMount",value:function(){this.setState({colorscaleOnMount:this.props.colorscale})}},{key:"setColorscaleType",value:function(e){var t=e.value;if(t!==this.state.colorscaleType){var n=this.state.log;k.SCALES_WITHOUT_LOG.indexOf(t)>=0&&(n=!1),this.setState({colorscaleType:t,log:n})}}},{key:"renderSwatchControls",value:function(){var e=null,t=null;return this.props.fixSwatches||(e=p.default.createElement("div",{className:"noWrap inlineBlock"},p.default.createElement("span",{className:"textLabel spaceRight"},"Swatches:"),p.default.createElement("span",{className:"textLabel spaceRight"},this.state.nSwatches)),t=p.default.createElement(x.default,{min:1,max:100,defaultValue:this.state.nSwatches,handle:this.handle,onAfterChange:this.updateSwatchNumber})),p.default.createElement("div",null,e,k.SCALES_WITHOUT_LOG.indexOf(this.state.colorscaleType)<0&&p.default.createElement("div",{className:"noWrap inlineBlock alignTop"},p.default.createElement("span",{className:"textLabel spaceRight spaceLeft"},"Log scale"),p.default.createElement("input",{type:"checkbox",name:"log",value:"log",onChange:this.toggleLog,defaultChecked:this.state.log,className:"spaceRightZeroTop alignMiddle"}),this.state.log&&p.default.createElement("span",null,p.default.createElement("span",{className:"textLabel spaceRight spaceLeft"},"Breakpoints:"," "),p.default.createElement("input",{type:"number",step:"1",min:"1",max:"10",value:""+this.state.logBreakpoints,onChange:this.updateBreakpoints}))),t)}},{key:"render",value:function(){var e=k.COLORSCALE_TYPES.map((function(e){return{label:e+" scales",value:e}})),t="colorscalePickerContainer"+(this.props.className?" "+this.props.className:"");return p.default.createElement("div",{className:t,style:{width:this.props.width||"300px"}},p.default.createElement("div",{className:"colorscalePickerTopContainer"},p.default.createElement(w.default,{options:e,value:this.state.colorscaleType,onChange:this.setColorscaleType,placeholder:"Select colorscale",noResultsText:"Colorscale not found",clearable:!1,searchable:!1})),p.default.createElement(M,{colorscaleType:this.props.colorscaleType||this.state.colorscaleType,colorscaleOnMount:this.state.colorscaleOnMount,onClick:this.onClick,previousColorscale:this.state.previousColorscale,customBreakpoints:this.state.customBreakpoints,nSwatches:this.state.nSwatches,cubehelix:this.state.cubehelix,updateCubehelixStartState:this.updateCubehelixStartState,updateCubehelixStart:this.updateCubehelixStart,handle:this.handle,updateCubehelixRotState:this.updateCubehelixRotState,updateCubehelixRotations:this.updateCubehelixRotations,updateBreakpointArray:this.updateBreakpointArray,scaleLength:this.props.scaleLength}),this.props.disableSwatchControls?null:this.renderSwatchControls())}}]),t}(f.Component),O=function(){var e=this;this.handle=function(e){var t=e.value,n=e.dragging,r=e.index,o=a(e,["value","dragging","index"]);return p.default.createElement(g.default,{prefixCls:"rc-slider-tooltip",overlay:t,visible:n,placement:"top",key:r},p.default.createElement(T,u({value:t},o)))},this.toggleLog=function(){var t=s(e.state.previousColorscale,e.state.nSwatches,e.state.logBreakpoints,!e.state.log,e.state.colorscaleType);e.setState({log:!e.state.log,colorscale:t}),e.props.onChange(t)},this.onClick=function(t,n,r){if(e.state.customBreakpoints!==e.state.previousCustomBreakpoints||"custom"!==e.state.colorscaleType){var a=s(t,t.length,e.state.logBreakpoints,e.state.log,e.state.colorscaleType),o=t;"custom"===e.state.colorscaleType&&(o=e.state.previousColorscale),n||r?e.setState({previousColorscale:o,colorscale:a,nSwatches:t.length,previousCustomBreakpoints:null,cubehelix:{start:n,rotations:r}}):e.setState({previousColorscale:o,colorscale:a,nSwatches:t.length,previousCustomBreakpoints:"custom"===e.state.colorscaleType?e.state.customBreakpoints:null}),e.props.onChange(a,e.state.colorscaleType)}},this.updateSwatchNumber=function(t){var n=s(e.state.previousColorscale,t,e.state.logBreakpoints,e.state.log,e.state.colorscaleType);e.setState({nSwatches:t,colorscale:n,customBreakpoints:k.DEFAULT_BREAKPOINTS}),e.props.onChange(n)},this.updateBreakpoints=function(t){var n=t.currentTarget.valueAsNumber,r=s(e.state.previousColorscale,e.state.nSwatches,n,e.state.log,e.state.colorscaleType);e.setState({logBreakpoints:n,colorscale:r}),e.props.onChange(r)},this.updateBreakpointArray=function(t){var n=t.currentTarget.value.replace(/,\s*$/,"").split(",").map(Number);e.setState({customBreakpoints:n})},this.updateCubehelixStart=function(t){var n=e.state.cubehelix.rotations;e.updateCubehelix(t,n)},this.updateCubehelixRotations=function(t){var n=e.state.cubehelix.start;e.updateCubehelix(n,t)},this.updateCubehelixStartState=function(t){var n=e.state.cubehelix;n.start=t,e.setState({cubehelix:n})},this.updateCubehelixRotState=function(t){var n=e.state.cubehelix;n.rotations=t,e.setState({cubehelix:n})},this.updateCubehelix=function(t,n){var r=m.default.cubehelix().start(t).rotations(e.state.cubehelix.rotations).gamma(k.DEFAULT_GAMMA).lightness(k.DEFAULT_LIGHTNESS).scale().correctLightness().colors(k.DEFAULT_NCOLORS);e.onClick(r,t,n)}};t.default=E,E.defaultProps={initialColorscaleType:"sequential"};var M=t.ColorscalePaletteSelector=function(e){function t(){return o(this,t),i(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return l(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.colorscaleType,n=e.colorscaleOnMount,r=e.onClick,a=e.previousColorscale,o=e.customBreakpoints,i=e.nSwatches,l=e.cubehelix,s=e.updateCubehelixStartState,u=e.updateCubehelixStart,c=e.handle,f=e.updateCubehelixRotState,d=e.updateCubehelixRotations,v=e.updateBreakpointArray,y=e.scaleLength;return p.default.createElement("div",{className:"colorscalePickerBottomContainer"},p.default.createElement("div",{style:{margin:"0 auto"}},p.default.createElement(h.default,{key:"reset",colorscale:n,onClick:r,label:"RESET",scaleLength:y||k.DEFAULT_NPREVIEWCOLORS}),k.BUILTINS.hasOwnProperty(t)&&Object.keys(k.BUILTINS[t]).map((function(e,n){return p.default.createElement(h.default,{key:n,onClick:r,colorscale:k.BUILTINS[t][e],label:e,scaleLength:k.BUILTINS[t][e].length})})),k.BREWER.hasOwnProperty(t)&&k.BREWER[t].map((function(e,t){return p.default.createElement(h.default,{key:t,onClick:r,colorscale:m.default.brewer[e],label:e,scaleLength:m.default.brewer[e].length})})),"cubehelix"===t&&k.CUBEHELIX.map((function(e,t){return p.default.createElement(h.default,{key:t,onClick:r,colorscale:m.default.cubehelix().start(e.start).rotations(e.rotations).gamma(k.DEFAULT_GAMMA).lightness(k.DEFAULT_LIGHTNESS).scale().correctLightness().colors(y||k.DEFAULT_NPREVIEWCOLORS),start:e.start,rot:e.rotations,label:"s"+e.start+" r"+e.rotations,scaleLength:y})})),"cmocean"===t&&Object.keys(k.CMOCEAN).map((function(e,t){return p.default.createElement(h.default,{key:t,onClick:r,colorscale:k.CMOCEAN[e],label:e,scaleLength:k.CMOCEAN[e].length})})),"custom"===t&&p.default.createElement(h.default,{onClick:r,colorscale:m.default.scale(a).classes(o).mode("lch").colors(y||i),maxWidth:200,label:"Preview",scaleLength:y}),p.default.createElement("p",{className:"colorscaleDescription"},k.COLORSCALE_DESCRIPTIONS[t]),["custom","cubehelix"].includes(t)?p.default.createElement("div",{className:"colorscaleControlPanel"},"cubehelix"===t&&p.default.createElement("div",null,p.default.createElement("div",{className:"noWrap"},p.default.createElement("span",{className:"textLabel"},"Start: "),p.default.createElement("span",{className:"textLabel"},l.start),p.default.createElement(x.default,{min:0,max:300,step:1,value:l.start,onChange:s,onAfterChange:u,handle:c})),p.default.createElement("div",{className:"noWrap"},p.default.createElement("span",{className:"textLabel"},"Rotations: "),p.default.createElement("span",{className:"textLabel"},l.rotations),p.default.createElement(x.default,{min:-1.5,max:1.5,step:.1,value:l.rotations,onChange:f,onAfterChange:d,handle:c}))),p.default.createElement("div",null,"custom"===t&&p.default.createElement("div",{className:"colorscaleControlsRow"},p.default.createElement("p",{className:"textLabel zeroSpace"},"Decimals between 0 and 1, or numbers between MIN and MAX of your data, separated by commas:"),p.default.createElement("input",{type:"text",defaultValue:o.join(", "),onChange:v}),p.default.createElement("p",{className:"textLabel spaceTop"},o.length-1," breakpoints:"," ",o.join(" | "))))):null))}}]),t}(f.Component)},function(e,t,n){"use strict";var r=n(5),a=n.n(r),o=n(24),i=n.n(o),l=n(2),s=n.n(l),u=n(3),c=n.n(u),f=n(4),p=n.n(f),d=n(0),h=n.n(d),v=n(1),m=n.n(v),y=n(123),g=n(151),b=n(152),x=function(e){function t(){var n,r,a;s()(this,t);for(var o=arguments.length,i=Array(o),l=0;l<o;l++)i[l]=arguments[l];return n=r=c()(this,e.call.apply(e,[this].concat(i))),r.getPopupElement=function(){var e=r.props,t=e.arrowContent,n=e.overlay,a=e.prefixCls,o=e.id;return[h.a.createElement("div",{className:a+"-arrow",key:"arrow"},t),h.a.createElement(b.a,{key:"content",trigger:r.trigger,prefixCls:a,id:o,overlay:n})]},r.saveTrigger=function(e){r.trigger=e},a=n,c()(r,a)}return p()(t,e),t.prototype.getPopupDomNode=function(){return this.trigger.getPopupDomNode()},t.prototype.render=function(){var e=this.props,t=e.overlayClassName,n=e.trigger,r=e.mouseEnterDelay,o=e.mouseLeaveDelay,l=e.overlayStyle,s=e.prefixCls,u=e.children,c=e.onVisibleChange,f=e.afterVisibleChange,p=e.transitionName,d=e.animation,v=e.placement,m=e.align,b=e.destroyTooltipOnHide,x=e.defaultVisible,_=e.getTooltipContainer,w=i()(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer"]),k=a()({},w);return"visible"in this.props&&(k.popupVisible=this.props.visible),h.a.createElement(y.a,a()({popupClassName:t,ref:this.saveTrigger,prefixCls:s,popup:this.getPopupElement,action:n,builtinPlacements:g.a,popupPlacement:v,popupAlign:m,getPopupContainer:_,onPopupVisibleChange:c,afterPopupVisibleChange:f,popupTransitionName:p,popupAnimation:d,defaultPopupVisible:x,destroyPopupOnHide:b,mouseLeaveDelay:o,popupStyle:l,mouseEnterDelay:r},k),u)},t}(d.Component);x.propTypes={trigger:m.a.any,children:m.a.any,defaultVisible:m.a.bool,visible:m.a.bool,placement:m.a.string,transitionName:m.a.oneOfType([m.a.string,m.a.object]),animation:m.a.any,onVisibleChange:m.a.func,afterVisibleChange:m.a.func,overlay:m.a.oneOfType([m.a.node,m.a.func]).isRequired,overlayStyle:m.a.object,overlayClassName:m.a.string,prefixCls:m.a.string,mouseEnterDelay:m.a.number,mouseLeaveDelay:m.a.number,getTooltipContainer:m.a.func,destroyTooltipOnHide:m.a.bool,align:m.a.object,arrowContent:m.a.any,id:m.a.string},x.defaultProps={prefixCls:"rc-tooltip",mouseEnterDelay:0,destroyTooltipOnHide:!1,mouseLeaveDelay:.1,align:{},placement:"right",trigger:["hover"],arrowContent:null},t.a=x},function(e,t,n){e.exports={default:n(87),__esModule:!0}},function(e,t,n){n(88),e.exports=n(6).Object.assign},function(e,t,n){var r=n(10);r(r.S+r.F,"Object",{assign:n(90)})},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(27),a=n(42),o=n(30),i=n(31),l=n(61),s=Object.assign;e.exports=!s||n(22)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=r}))?function(e,t){for(var n=i(e),s=arguments.length,u=1,c=a.f,f=o.f;s>u;)for(var p,d=l(arguments[u++]),h=c?r(d).concat(c(d)):r(d),v=h.length,m=0;v>m;)f.call(d,p=h[m++])&&(n[p]=d[p]);return n}:s},function(e,t,n){var r=n(15),a=n(62),o=n(92);e.exports=function(e){return function(t,n,i){var l,s=r(t),u=a(s.length),c=o(i,u);if(e&&n!=n){for(;u>c;)if((l=s[c++])!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(38),a=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?a(e+t,0):o(e,t)}},function(e,t,n){e.exports={default:n(94),__esModule:!0}},function(e,t,n){n(63),n(99),e.exports=n(46).f("iterator")},function(e,t,n){var r=n(38),a=n(37);e.exports=function(e){return function(t,n){var o,i,l=String(a(t)),s=r(n),u=l.length;return s<0||s>=u?e?"":void 0:(o=l.charCodeAt(s),o<55296||o>56319||s+1===u||(i=l.charCodeAt(s+1))<56320||i>57343?e?l.charAt(s):o:e?l.slice(s,s+2):i-56320+(o-55296<<10)+65536)}}},function(e,t,n){"use strict";var r=n(44),a=n(23),o=n(45),i={};n(19)(i,n(7)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(i,{next:a(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(12),a=n(20),o=n(27);e.exports=n(13)?Object.defineProperties:function(e,t){a(e);for(var n,i=o(t),l=i.length,s=0;l>s;)r.f(e,n=i[s++],t[n]);return e}},function(e,t,n){var r=n(11).document;e.exports=r&&r.documentElement},function(e,t,n){n(100);for(var r=n(11),a=n(19),o=n(25),i=n(7)("toStringTag"),l="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s<l.length;s++){var u=l[s],c=r[u],f=c&&c.prototype;f&&!f[i]&&a(f,i,u),o[u]=o.Array}},function(e,t,n){"use strict";var r=n(101),a=n(102),o=n(25),i=n(15);e.exports=n(64)(Array,"Array",(function(e,t){this._t=i(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,a(1)):a(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(104),__esModule:!0}},function(e,t,n){n(105),n(110),n(111),n(112),e.exports=n(6).Symbol},function(e,t,n){"use strict";var r=n(11),a=n(14),o=n(13),i=n(10),l=n(65),s=n(106).KEY,u=n(22),c=n(40),f=n(45),p=n(29),d=n(7),h=n(46),v=n(47),m=n(107),y=n(108),g=n(20),b=n(21),x=n(15),_=n(35),w=n(23),k=n(44),T=n(109),E=n(48),O=n(12),M=n(27),S=E.f,C=O.f,A=T.f,P=r.Symbol,L=r.JSON,D=L&&L.stringify,j=d("_hidden"),I=d("toPrimitive"),R={}.propertyIsEnumerable,z=c("symbol-registry"),N=c("symbols"),F=c("op-symbols"),B=Object.prototype,V="function"==typeof P,H=r.QObject,U=!H||!H.prototype||!H.prototype.findChild,W=o&&u((function(){return 7!=k(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=S(B,t);r&&delete B[t],C(e,t,n),r&&e!==B&&C(B,t,r)}:C,q=function(e){var t=N[e]=k(P.prototype);return t._k=e,t},$=V&&"symbol"==typeof P.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof P},G=function(e,t,n){return e===B&&G(F,t,n),g(e),t=_(t,!0),g(n),a(N,t)?(n.enumerable?(a(e,j)&&e[j][t]&&(e[j][t]=!1),n=k(n,{enumerable:w(0,!1)})):(a(e,j)||C(e,j,w(1,{})),e[j][t]=!0),W(e,t,n)):C(e,t,n)},Y=function(e,t){g(e);for(var n,r=m(t=x(t)),a=0,o=r.length;o>a;)G(e,n=r[a++],t[n]);return e},K=function(e,t){return void 0===t?k(e):Y(k(e),t)},X=function(e){var t=R.call(this,e=_(e,!0));return!(this===B&&a(N,e)&&!a(F,e))&&(!(t||!a(this,e)||!a(N,e)||a(this,j)&&this[j][e])||t)},Z=function(e,t){if(e=x(e),t=_(t,!0),e!==B||!a(N,t)||a(F,t)){var n=S(e,t);return!n||!a(N,t)||a(e,j)&&e[j][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=A(x(e)),r=[],o=0;n.length>o;)a(N,t=n[o++])||t==j||t==s||r.push(t);return r},Q=function(e){for(var t,n=e===B,r=A(n?F:x(e)),o=[],i=0;r.length>i;)!a(N,t=r[i++])||n&&!a(B,t)||o.push(N[t]);return o};V||(P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var e=p(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(F,n),a(this,j)&&a(this[j],e)&&(this[j][e]=!1),W(this,e,w(1,n))};return o&&U&&W(B,e,{configurable:!0,set:t}),q(e)},l(P.prototype,"toString",(function(){return this._k})),E.f=Z,O.f=G,n(67).f=T.f=J,n(30).f=X,n(42).f=Q,o&&!n(28)&&l(B,"propertyIsEnumerable",X,!0),h.f=function(e){return q(d(e))}),i(i.G+i.W+i.F*!V,{Symbol:P});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)d(ee[te++]);for(var ne=M(d.store),re=0;ne.length>re;)v(ne[re++]);i(i.S+i.F*!V,"Symbol",{for:function(e){return a(z,e+="")?z[e]:z[e]=P(e)},keyFor:function(e){if(!$(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),i(i.S+i.F*!V,"Object",{create:K,defineProperty:G,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:Q}),L&&i(i.S+i.F*(!V||u((function(){var e=P();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))}))),"JSON",{stringify:function(e){for(var t,n,r=[e],a=1;arguments.length>a;)r.push(arguments[a++]);if(n=t=r[1],(b(t)||void 0!==e)&&!$(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!$(t))return t}),r[1]=t,D.apply(L,r)}}),P.prototype[I]||n(19)(P.prototype,I,P.prototype.valueOf),f(P,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(29)("meta"),a=n(21),o=n(14),i=n(12).f,l=0,s=Object.isExtensible||function(){return!0},u=!n(22)((function(){return s(Object.preventExtensions({}))})),c=function(e){i(e,r,{value:{i:"O"+ ++l,w:{}}})},f=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!s(e))return"F";if(!t)return"E";c(e)}return e[r].i},p=function(e,t){if(!o(e,r)){if(!s(e))return!0;if(!t)return!1;c(e)}return e[r].w},d=function(e){return u&&h.NEED&&s(e)&&!o(e,r)&&c(e),e},h=e.exports={KEY:r,NEED:!1,fastKey:f,getWeak:p,onFreeze:d}},function(e,t,n){var r=n(27),a=n(42),o=n(30);e.exports=function(e){var t=r(e),n=a.f;if(n)for(var i,l=n(e),s=o.f,u=0;l.length>u;)s.call(e,i=l[u++])&&t.push(i);return t}},function(e,t,n){var r=n(36);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(15),a=n(67).f,o={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return a(e)}catch(e){return i.slice()}};e.exports.f=function(e){return i&&"[object Window]"==o.call(e)?l(e):a(r(e))}},function(e,t){},function(e,t,n){n(47)("asyncIterator")},function(e,t,n){n(47)("observable")},function(e,t,n){e.exports={default:n(114),__esModule:!0}},function(e,t,n){n(115),e.exports=n(6).Object.setPrototypeOf},function(e,t,n){var r=n(10);r(r.S,"Object",{setPrototypeOf:n(116).set})},function(e,t,n){var r=n(21),a=n(20),o=function(e,t){if(a(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(34)(Function.call,n(48).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){e.exports={default:n(118),__esModule:!0}},function(e,t,n){n(119);var r=n(6).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(10);r(r.S,"Object",{create:n(44)})},function(e,t,n){"use strict";(function(t){function r(){return null}var a=n(68),o=n(49),i=n(121),l=function(){};"production"!==t.env.NODE_ENV&&(l=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),e.exports=function(e,n){function s(e){var t=e&&(O&&e[O]||e[M]);if("function"===typeof t)return t}function u(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function c(e){this.message=e,this.stack=""}function f(e){function r(r,s,u,f,p,d,h){if(f=f||S,d=d||u,h!==o){if(n){var v=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 v.name="Invariant Violation",v}if("production"!==t.env.NODE_ENV&&"undefined"!==typeof console){var m=f+":"+u;!a[m]&&i<3&&(l("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+f+"`. 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."),a[m]=!0,i++)}}return null==s[u]?r?new c(null===s[u]?"The "+p+" `"+d+"` is marked as required in `"+f+"`, but its value is `null`.":"The "+p+" `"+d+"` is marked as required in `"+f+"`, but its value is `undefined`."):null:e(s,u,f,p,d)}if("production"!==t.env.NODE_ENV)var a={},i=0;var s=r.bind(null,!1);return s.isRequired=r.bind(null,!0),s}function p(e){function t(t,n,r,a,o,i){var l=t[n];return w(l)!==e?new c("Invalid "+a+" `"+o+"` of type `"+k(l)+"` supplied to `"+r+"`, expected `"+e+"`."):null}return f(t)}function d(e){function t(t,n,r,a,i){if("function"!==typeof e)return new c("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var l=t[n];if(!Array.isArray(l))return new c("Invalid "+a+" `"+i+"` of type `"+w(l)+"` supplied to `"+r+"`, expected an array.");for(var s=0;s<l.length;s++){var u=e(l,s,r,a,i+"["+s+"]",o);if(u instanceof Error)return u}return null}return f(t)}function h(e){function t(t,n,r,a,o){if(!(t[n]instanceof e)){var i=e.name||S;return new c("Invalid "+a+" `"+o+"` of type `"+E(t[n])+"` supplied to `"+r+"`, expected instance of `"+i+"`.")}return null}return f(t)}function v(e){function n(t,n,r,a,o){for(var i=t[n],l=0;l<e.length;l++)if(u(i,e[l]))return null;return new c("Invalid "+a+" `"+o+"` of value `"+i+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")}return Array.isArray(e)?f(n):("production"!==t.env.NODE_ENV&&l("Invalid argument supplied to oneOf, expected an instance of array."),r)}function m(e){function t(t,n,r,a,i){if("function"!==typeof e)return new c("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[n],s=w(l);if("object"!==s)return new c("Invalid "+a+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected an object.");for(var u in l)if(l.hasOwnProperty(u)){var f=e(l,u,r,a,i+"."+u,o);if(f instanceof Error)return f}return null}return f(t)}function y(e){function n(t,n,r,a,i){for(var l=0;l<e.length;l++)if(null==(0,e[l])(t,n,r,a,i,o))return null;return new c("Invalid "+a+" `"+i+"` supplied to `"+r+"`.")}if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&l("Invalid argument supplied to oneOfType, expected an instance of array."),r;for(var a=0;a<e.length;a++){var i=e[a];if("function"!==typeof i)return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+T(i)+" at index "+a+"."),r}return f(n)}function g(e){function t(t,n,r,a,i){var l=t[n],s=w(l);if("object"!==s)return new c("Invalid "+a+" `"+i+"` of type `"+s+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var f=e[u];if(f){var p=f(l,u,r,a,i+"."+u,o);if(p)return p}}return null}return f(t)}function b(e){function t(t,n,r,i,l){var s=t[n],u=w(s);if("object"!==u)return new c("Invalid "+i+" `"+l+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var f=a({},t[n],e);for(var p in f){var d=e[p];if(!d)return new c("Invalid "+i+" `"+l+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var h=d(s,p,r,i,l+"."+p,o);if(h)return h}return null}return f(t)}function x(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(x);if(null===t||e(t))return!0;var n=s(t);if(!n)return!1;var r,a=n.call(t);if(n!==t.entries){for(;!(r=a.next()).done;)if(!x(r.value))return!1}else for(;!(r=a.next()).done;){var o=r.value;if(o&&!x(o[1]))return!1}return!0;default:return!1}}function _(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol}function w(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":_(t,e)?"symbol":t}function k(e){if("undefined"===typeof e||null===e)return""+e;var t=w(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function T(e){var t=k(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}function E(e){return e.constructor&&e.constructor.name?e.constructor.name:S}var O="function"===typeof Symbol&&Symbol.iterator,M="@@iterator",S="<<anonymous>>",C={array:p("array"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:function(){return f(r)}(),arrayOf:d,element:function(){function t(t,n,r,a,o){var i=t[n];return e(i)?null:new c("Invalid "+a+" `"+o+"` of type `"+w(i)+"` supplied to `"+r+"`, expected a single ReactElement.")}return f(t)}(),instanceOf:h,node:function(){function e(e,t,n,r,a){return x(e[t])?null:new c("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")}return f(e)}(),objectOf:m,oneOf:v,oneOfType:y,shape:g,exact:b};return c.prototype=Error.prototype,C.checkPropTypes=i,C.PropTypes=C,C}}).call(t,n(26))},function(e,t,n){"use strict";(function(t){function r(e,n,r,l,s){if("production"!==t.env.NODE_ENV)for(var u in e)if(e.hasOwnProperty(u)){var c;try{if("function"!==typeof e[u]){var f=Error((l||"React class")+": "+r+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.");throw f.name="Invariant Violation",f}c=e[u](n,u,l,r,null,o)}catch(e){c=e}if(!c||c instanceof Error||a((l||"React class")+": type specification of "+r+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in i)){i[c.message]=!0;var p=s?s():"";a("Failed "+r+" type: "+c.message+(null!=p?p:""))}}}var a=function(){};if("production"!==t.env.NODE_ENV){var o=n(49),i={};a=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}e.exports=r}).call(t,n(26))},function(e,t,n){"use strict";function r(){}var a=n(49);e.exports=function(){function e(e,t,n,r,o,i){if(i!==a){var l=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 l.name="Invariant Violation",l}}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,n){"use strict";function r(){}function a(){return""}function o(){return window.document}var i=n(5),l=n.n(i),s=n(2),u=n.n(s),c=n(3),f=n.n(c),p=n(4),d=n.n(p),h=n(0),v=n.n(h),m=n(1),y=n.n(m),g=n(8),b=(n.n(g),n(124)),x=n(32),_=n(128),w=n(131),k=n(16),T=n.n(k),E=n(70),O=n(132),M=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],S=!!g.createPortal,C={rcTrigger:y.a.shape({onPopupMouseDown:y.a.func})},A=function(e){function t(n){u()(this,t);var r=f()(this,e.call(this,n));P.call(r);var a=void 0;return a="popupVisible"in n?!!n.popupVisible:!!n.defaultPopupVisible,r.prevPopupVisible=a,r.state={popupVisible:a},r}return d()(t,e),t.prototype.getChildContext=function(){return{rcTrigger:{onPopupMouseDown:this.onPopupMouseDown}}},t.prototype.componentWillMount=function(){var e=this;M.forEach((function(t){e["fire"+t]=function(n){e.fireEvents(t,n)}}))},t.prototype.componentDidMount=function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},t.prototype.componentWillReceiveProps=function(e){var t=e.popupVisible;void 0!==t&&this.setState({popupVisible:t})},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state,a=function(){t.popupVisible!==r.popupVisible&&n.afterPopupVisibleChange(r.popupVisible)};if(S||this.renderComponent(null,a),this.prevPopupVisible=t.popupVisible,r.popupVisible){var o=void 0;return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(o=n.getDocument(),this.clickOutsideHandler=Object(x.a)(o,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(o=o||n.getDocument(),this.touchOutsideHandler=Object(x.a)(o,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(o=o||n.getDocument(),this.contextMenuOutsideHandler1=Object(x.a)(o,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(x.a)(window,"blur",this.onContextMenuClose)))}this.clearOutsideHandler()},t.prototype.componentWillUnmount=function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)},t.prototype.getPopupDomNode=function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null},t.prototype.getPopupAlign=function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?Object(E.a)(r,t,n):n},t.prototype.setPopupVisible=function(e,t){var n=this.props.alignPoint;this.clearDelayTimer(),this.state.popupVisible!==e&&("popupVisible"in this.props||this.setState({popupVisible:e}),this.props.onPopupVisibleChange(e)),n&&t&&this.setPoint(t)},t.prototype.delaySetPopupVisible=function(e,t,n){var r=this,a=1e3*t;if(this.clearDelayTimer(),a){var o=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout((function(){r.setPopupVisible(e,o),r.clearDelayTimer()}),a)}else this.setPopupVisible(e,n)},t.prototype.clearDelayTimer=function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},t.prototype.clearOutsideHandler=function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},t.prototype.createTwoChains=function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire"+e]:t[e]||n[e]},t.prototype.isClickToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},t.prototype.isContextMenuToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")},t.prototype.isClickToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},t.prototype.isMouseEnterToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")},t.prototype.isMouseLeaveToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")},t.prototype.isFocusToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")},t.prototype.isBlurToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")},t.prototype.forcePopupAlign=function(){this.state.popupVisible&&this._component&&this._component.alignInstance&&this._component.alignInstance.forceAlign()},t.prototype.fireEvents=function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)},t.prototype.close=function(){this.setPopupVisible(!1)},t.prototype.render=function(){var e=this,t=this.state.popupVisible,n=this.props,r=n.children,a=n.forceRender,o=n.alignPoint,i=n.className,l=v.a.Children.only(r),s={key:"trigger"};this.isContextMenuToShow()?s.onContextMenu=this.onContextMenu:s.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(s.onClick=this.onClick,s.onMouseDown=this.onMouseDown,s.onTouchStart=this.onTouchStart):(s.onClick=this.createTwoChains("onClick"),s.onMouseDown=this.createTwoChains("onMouseDown"),s.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(s.onMouseEnter=this.onMouseEnter,o&&(s.onMouseMove=this.onMouseMove)):s.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?s.onMouseLeave=this.onMouseLeave:s.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(s.onFocus=this.onFocus,s.onBlur=this.onBlur):(s.onFocus=this.createTwoChains("onFocus"),s.onBlur=this.createTwoChains("onBlur"));var u=T()(l&&l.props&&l.props.className,i);u&&(s.className=u);var c=v.a.cloneElement(l,s);if(!S)return v.a.createElement(_.a,{parent:this,visible:t,autoMount:!1,forceRender:a,getComponent:this.getComponent,getContainer:this.getContainer},(function(t){var n=t.renderComponent;return e.renderComponent=n,c}));var f=void 0;return(t||this._component||a)&&(f=v.a.createElement(w.a,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),[c,f]},t}(v.a.Component);A.propTypes={children:y.a.any,action:y.a.oneOfType([y.a.string,y.a.arrayOf(y.a.string)]),showAction:y.a.any,hideAction:y.a.any,getPopupClassNameFromAlign:y.a.any,onPopupVisibleChange:y.a.func,afterPopupVisibleChange:y.a.func,popup:y.a.oneOfType([y.a.node,y.a.func]).isRequired,popupStyle:y.a.object,prefixCls:y.a.string,popupClassName:y.a.string,className:y.a.string,popupPlacement:y.a.string,builtinPlacements:y.a.object,popupTransitionName:y.a.oneOfType([y.a.string,y.a.object]),popupAnimation:y.a.any,mouseEnterDelay:y.a.number,mouseLeaveDelay:y.a.number,zIndex:y.a.number,focusDelay:y.a.number,blurDelay:y.a.number,getPopupContainer:y.a.func,getDocument:y.a.func,forceRender:y.a.bool,destroyPopupOnHide:y.a.bool,mask:y.a.bool,maskClosable:y.a.bool,onPopupAlign:y.a.func,popupAlign:y.a.object,popupVisible:y.a.bool,defaultPopupVisible:y.a.bool,maskTransitionName:y.a.oneOfType([y.a.string,y.a.object]),maskAnimation:y.a.string,stretch:y.a.string,alignPoint:y.a.bool},A.contextTypes=C,A.childContextTypes=C,A.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:a,getDocument:o,onPopupVisibleChange:r,afterPopupVisibleChange:r,onPopupAlign:r,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]};var P=function(){var e=this;this.onMouseEnter=function(t){var n=e.props.mouseEnterDelay;e.fireEvents("onMouseEnter",t),e.delaySetPopupVisible(!0,n,n?null:t)},this.onMouseMove=function(t){e.fireEvents("onMouseMove",t),e.setPoint(t)},this.onMouseLeave=function(t){e.fireEvents("onMouseLeave",t),e.delaySetPopupVisible(!1,e.props.mouseLeaveDelay)},this.onPopupMouseEnter=function(){e.clearDelayTimer()},this.onPopupMouseLeave=function(t){t.relatedTarget&&!t.relatedTarget.setTimeout&&e._component&&e._component.getPopupDomNode&&Object(b.a)(e._component.getPopupDomNode(),t.relatedTarget)||e.delaySetPopupVisible(!1,e.props.mouseLeaveDelay)},this.onFocus=function(t){e.fireEvents("onFocus",t),e.clearDelayTimer(),e.isFocusToShow()&&(e.focusTime=Date.now(),e.delaySetPopupVisible(!0,e.props.focusDelay))},this.onMouseDown=function(t){e.fireEvents("onMouseDown",t),e.preClickTime=Date.now()},this.onTouchStart=function(t){e.fireEvents("onTouchStart",t),e.preTouchTime=Date.now()},this.onBlur=function(t){e.fireEvents("onBlur",t),e.clearDelayTimer(),e.isBlurToHide()&&e.delaySetPopupVisible(!1,e.props.blurDelay)},this.onContextMenu=function(t){t.preventDefault(),e.fireEvents("onContextMenu",t),e.setPopupVisible(!0,t)},this.onContextMenuClose=function(){e.isContextMenuToShow()&&e.close()},this.onClick=function(t){if(e.fireEvents("onClick",t),e.focusTime){var n=void 0;if(e.preClickTime&&e.preTouchTime?n=Math.min(e.preClickTime,e.preTouchTime):e.preClickTime?n=e.preClickTime:e.preTouchTime&&(n=e.preTouchTime),Math.abs(n-e.focusTime)<20)return;e.focusTime=0}e.preClickTime=0,e.preTouchTime=0,t&&t.preventDefault&&t.preventDefault();var r=!e.state.popupVisible;(e.isClickToHide()&&!r||r&&e.isClickToShow())&&e.setPopupVisible(!e.state.popupVisible,t)},this.onPopupMouseDown=function(){var t=e.context.rcTrigger,n=void 0===t?{}:t;e.hasPopupMouseDown=!0,clearTimeout(e.mouseDownTimeout),e.mouseDownTimeout=setTimeout((function(){e.hasPopupMouseDown=!1}),0),n.onPopupMouseDown&&n.onPopupMouseDown.apply(n,arguments)},this.onDocumentClick=function(t){if(!e.props.mask||e.props.maskClosable){var n=t.target,r=Object(g.findDOMNode)(e);Object(b.a)(r,n)||e.hasPopupMouseDown||e.close()}},this.getRootDomNode=function(){return Object(g.findDOMNode)(e)},this.getPopupClassNameFromAlign=function(t){var n=[],r=e.props,a=r.popupPlacement,o=r.builtinPlacements,i=r.prefixCls,l=r.alignPoint,s=r.getPopupClassNameFromAlign;return a&&o&&n.push(Object(E.b)(o,i,t,l)),s&&n.push(s(t)),n.join(" ")},this.getComponent=function(){var t=e.props,n=t.prefixCls,r=t.destroyPopupOnHide,a=t.popupClassName,o=t.action,i=t.onPopupAlign,s=t.popupAnimation,u=t.popupTransitionName,c=t.popupStyle,f=t.mask,p=t.maskAnimation,d=t.maskTransitionName,h=t.zIndex,m=t.popup,y=t.stretch,g=t.alignPoint,b=e.state,x=b.popupVisible,_=b.point,w=e.getPopupAlign(),k={};return e.isMouseEnterToShow()&&(k.onMouseEnter=e.onPopupMouseEnter),e.isMouseLeaveToHide()&&(k.onMouseLeave=e.onPopupMouseLeave),k.onMouseDown=e.onPopupMouseDown,k.onTouchStart=e.onPopupMouseDown,v.a.createElement(O.a,l()({prefixCls:n,destroyPopupOnHide:r,visible:x,point:g&&_,className:a,action:o,align:w,onAlign:i,animation:s,getClassNameFromAlign:e.getPopupClassNameFromAlign},k,{stretch:y,getRootDomNode:e.getRootDomNode,style:c,mask:f,zIndex:h,transitionName:u,maskAnimation:p,maskTransitionName:d,ref:e.savePopup}),"function"===typeof m?m():m)},this.getContainer=function(){var t=e.props,n=document.createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",(t.getPopupContainer?t.getPopupContainer(Object(g.findDOMNode)(e)):t.getDocument().body).appendChild(n),n},this.setPoint=function(t){e.props.alignPoint&&t&&e.setState({point:{pageX:t.pageX,pageY:t.pageY}})},this.handlePortalUpdate=function(){e.prevPopupVisible!==e.state.popupVisible&&e.props.afterPopupVisibleChange(e.state.popupVisible)},this.savePopup=function(t){e._component=t}};t.a=A},function(e,t,n){"use strict";function r(e,t){for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}t.a=r},function(e,t,n){"use strict";function r(e,t,n,r){function a(t){var r=new o.default(t);n.call(e,r)}if(e.addEventListener){var i=function(){var n=!1;return"object"===typeof r?n=r.capture||!1:"boolean"===typeof r&&(n=r),e.addEventListener(t,a,r||!1),{v:{remove:function(){e.removeEventListener(t,a,n)}}}}();if("object"===typeof i)return i.v}else if(e.attachEvent)return e.attachEvent("on"+t,a),{remove:function(){e.detachEvent("on"+t,a)}}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;var a=n(126),o=function(e){return e&&e.__esModule?e:{default:e}}(a);e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return null===e||void 0===e}function o(){return p}function i(){return d}function l(e){var t=e.type,n="function"===typeof e.stopPropagation||"boolean"===typeof e.cancelBubble;u.default.call(this),this.nativeEvent=e;var r=i;"defaultPrevented"in e?r=e.defaultPrevented?o:i:"getPreventDefault"in e?r=e.getPreventDefault()?o:i:"returnValue"in e&&(r=e.returnValue===d?o:i),this.isDefaultPrevented=r;var a=[],l=void 0,s=void 0,c=h.concat();for(v.forEach((function(e){t.match(e.reg)&&(c=c.concat(e.props),e.fix&&a.push(e.fix))})),l=c.length;l;)s=c[--l],this[s]=e[s];for(!this.target&&n&&(this.target=e.srcElement||document),this.target&&3===this.target.nodeType&&(this.target=this.target.parentNode),l=a.length;l;)(0,a[--l])(this,e);this.timeStamp=e.timeStamp||Date.now()}Object.defineProperty(t,"__esModule",{value:!0});var s=n(127),u=r(s),c=n(68),f=r(c),p=!0,d=!1,h=["altKey","bubbles","cancelable","ctrlKey","currentTarget","eventPhase","metaKey","shiftKey","target","timeStamp","view","type"],v=[{reg:/^key/,props:["char","charCode","key","keyCode","which"],fix:function(e,t){a(e.which)&&(e.which=a(t.charCode)?t.keyCode:t.charCode),void 0===e.metaKey&&(e.metaKey=e.ctrlKey)}},{reg:/^touch/,props:["touches","changedTouches","targetTouches"]},{reg:/^hashchange$/,props:["newURL","oldURL"]},{reg:/^gesturechange$/i,props:["rotation","scale"]},{reg:/^(mousewheel|DOMMouseScroll)$/,props:[],fix:function(e,t){var n=void 0,r=void 0,a=void 0,o=t.wheelDelta,i=t.axis,l=t.wheelDeltaY,s=t.wheelDeltaX,u=t.detail;o&&(a=o/120),u&&(a=0-(u%3===0?u/3:u)),void 0!==i&&(i===e.HORIZONTAL_AXIS?(r=0,n=0-a):i===e.VERTICAL_AXIS&&(n=0,r=a)),void 0!==l&&(r=l/120),void 0!==s&&(n=-1*s/120),n||r||(r=a),void 0!==n&&(e.deltaX=n),void 0!==r&&(e.deltaY=r),void 0!==a&&(e.delta=a)}},{reg:/^mouse|contextmenu|click|mspointer|(^DOMMouseScroll$)/i,props:["buttons","clientX","clientY","button","offsetX","relatedTarget","which","fromElement","toElement","offsetY","pageX","pageY","screenX","screenY"],fix:function(e,t){var n=void 0,r=void 0,o=void 0,i=e.target,l=t.button;return i&&a(e.pageX)&&!a(t.clientX)&&(n=i.ownerDocument||document,r=n.documentElement,o=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),e.which||void 0===l||(e.which=1&l?1:2&l?3:4&l?2:0),!e.relatedTarget&&e.fromElement&&(e.relatedTarget=e.fromElement===i?e.toElement:e.fromElement),e}}],m=u.default.prototype;(0,f.default)(l.prototype,m,{constructor:l,preventDefault:function(){var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=d,m.preventDefault.call(this)},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=p,m.stopPropagation.call(this)}}),t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(){return!1}function a(){return!0}function o(){this.timeStamp=Date.now(),this.target=void 0,this.currentTarget=void 0}Object.defineProperty(t,"__esModule",{value:!0}),o.prototype={isEventObject:1,constructor:o,isDefaultPrevented:r,isPropagationStopped:r,isImmediatePropagationStopped:r,preventDefault:function(){this.isDefaultPrevented=a},stopPropagation:function(){this.isPropagationStopped=a},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=a,this.stopPropagation()},halt:function(e){e?this.stopImmediatePropagation():this.stopPropagation(),this.preventDefault()}},t.default=o,e.exports=t.default},function(e,t,n){"use strict";var r=n(2),a=n.n(r),o=n(9),i=n.n(o),l=n(3),s=n.n(l),u=n(4),c=n.n(u),f=n(0),p=n.n(f),d=n(8),h=n.n(d),v=n(1),m=n.n(v),y=function(e){function t(){var e,n,r,o;a()(this,t);for(var i=arguments.length,l=Array(i),u=0;u<i;u++)l[u]=arguments[u];return n=r=s()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),r.removeContainer=function(){r.container&&(h.a.unmountComponentAtNode(r.container),r.container.parentNode.removeChild(r.container),r.container=null)},r.renderComponent=function(e,t){var n=r.props,a=n.visible,o=n.getComponent,i=n.forceRender,l=n.getContainer,s=n.parent;(a||s._component||i)&&(r.container||(r.container=l()),h.a.unstable_renderSubtreeIntoContainer(s,o(e),r.container,(function(){t&&t.call(this)})))},o=n,s()(r,o)}return c()(t,e),i()(t,[{key:"componentDidMount",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentDidUpdate",value:function(){this.props.autoMount&&this.renderComponent()}},{key:"componentWillUnmount",value:function(){this.props.autoDestroy&&this.removeContainer()}},{key:"render",value:function(){return this.props.children({renderComponent:this.renderComponent,removeContainer:this.removeContainer})}}]),t}(p.a.Component);y.propTypes={autoMount:m.a.bool,autoDestroy:m.a.bool,visible:m.a.bool,forceRender:m.a.bool,parent:m.a.any,getComponent:m.a.func.isRequired,getContainer:m.a.func.isRequired,children:m.a.func.isRequired},y.defaultProps={autoMount:!0,autoDestroy:!0,forceRender:!1},t.a=y},function(e,t,n){n(130);var r=n(6).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(10);r(r.S+r.F*!n(13),"Object",{defineProperty:n(12).f})},function(e,t,n){"use strict";var r=n(2),a=n.n(r),o=n(9),i=n.n(o),l=n(3),s=n.n(l),u=n(4),c=n.n(u),f=n(0),p=n.n(f),d=n(8),h=n.n(d),v=n(1),m=n.n(v),y=function(e){function t(){return a()(this,t),s()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c()(t,e),i()(t,[{key:"componentDidMount",value:function(){this.createContainer()}},{key:"componentDidUpdate",value:function(e){var t=this.props.didUpdate;t&&t(e)}},{key:"componentWillUnmount",value:function(){this.removeContainer()}},{key:"createContainer",value:function(){this._container=this.props.getContainer(),this.forceUpdate()}},{key:"removeContainer",value:function(){this._container&&this._container.parentNode.removeChild(this._container)}},{key:"render",value:function(){return this._container?h.a.createPortal(this.props.children,this._container):null}}]),t}(p.a.Component);y.propTypes={getContainer:m.a.func.isRequired,children:m.a.node.isRequired,didUpdate:m.a.func},t.a=y},function(e,t,n){"use strict";var r=n(5),a=n.n(r),o=n(2),i=n.n(o),l=n(3),s=n.n(l),u=n(4),c=n.n(u),f=n(0),p=n.n(f),d=n(1),h=n.n(d),v=n(8),m=n.n(v),y=n(133),g=n(144),b=n(150),x=n(77),_=n(70),w=function(e){function t(n){i()(this,t);var r=s()(this,e.call(this,n));return k.call(r),r.state={stretchChecked:!1,targetWidth:void 0,targetHeight:void 0},r.savePopupRef=_.c.bind(r,"popupInstance"),r.saveAlignRef=_.c.bind(r,"alignInstance"),r}return c()(t,e),t.prototype.componentDidMount=function(){this.rootNode=this.getPopupDomNode(),this.setStretchSize()},t.prototype.componentDidUpdate=function(){this.setStretchSize()},t.prototype.getPopupDomNode=function(){return m.a.findDOMNode(this.popupInstance)},t.prototype.getMaskTransitionName=function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},t.prototype.getTransitionName=function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t},t.prototype.getClassName=function(e){return this.props.prefixCls+" "+this.props.className+" "+e},t.prototype.getPopupElement=function(){var e=this,t=this.savePopupRef,n=this.state,r=n.stretchChecked,o=n.targetHeight,i=n.targetWidth,l=this.props,s=l.align,u=l.visible,c=l.prefixCls,f=l.style,d=l.getClassNameFromAlign,h=l.destroyPopupOnHide,v=l.stretch,m=l.children,x=l.onMouseEnter,_=l.onMouseLeave,w=l.onMouseDown,k=l.onTouchStart,T=this.getClassName(this.currentAlignClassName||d(s)),E=c+"-hidden";u||(this.currentAlignClassName=null);var O={};v&&(-1!==v.indexOf("height")?O.height=o:-1!==v.indexOf("minHeight")&&(O.minHeight=o),-1!==v.indexOf("width")?O.width=i:-1!==v.indexOf("minWidth")&&(O.minWidth=i),r||(O.visibility="hidden",setTimeout((function(){e.alignInstance&&e.alignInstance.forceAlign()}),0)));var M=a()({},O,f,this.getZIndexStyle()),S={className:T,prefixCls:c,ref:t,onMouseEnter:x,onMouseLeave:_,onMouseDown:w,onTouchStart:k,style:M};return h?p.a.createElement(g.a,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},u?p.a.createElement(y.a,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:s,onAlign:this.onAlign},p.a.createElement(b.a,a()({visible:!0},S),m)):null):p.a.createElement(g.a,{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible"},p.a.createElement(y.a,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:u,childrenProps:{visible:"xVisible"},disabled:!u,align:s,onAlign:this.onAlign},p.a.createElement(b.a,a()({hiddenClassName:E},S),m)))},t.prototype.getZIndexStyle=function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},t.prototype.getMaskElement=function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=p.a.createElement(x.a,{style:this.getZIndexStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible}),n&&(t=p.a.createElement(g.a,{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},t.prototype.render=function(){return p.a.createElement("div",null,this.getMaskElement(),this.getPopupElement())},t}(f.Component);w.propTypes={visible:h.a.bool,style:h.a.object,getClassNameFromAlign:h.a.func,onAlign:h.a.func,getRootDomNode:h.a.func,align:h.a.any,destroyPopupOnHide:h.a.bool,className:h.a.string,prefixCls:h.a.string,onMouseEnter:h.a.func,onMouseLeave:h.a.func,onMouseDown:h.a.func,onTouchStart:h.a.func,stretch:h.a.string,children:h.a.node,point:h.a.shape({pageX:h.a.number,pageY:h.a.number})};var k=function(){var e=this;this.onAlign=function(t,n){var r=e.props,a=r.getClassNameFromAlign(n);e.currentAlignClassName!==a&&(e.currentAlignClassName=a,t.className=e.getClassName(a)),r.onAlign(t,n)},this.setStretchSize=function(){var t=e.props,n=t.stretch,r=t.getRootDomNode,a=t.visible,o=e.state,i=o.stretchChecked,l=o.targetHeight,s=o.targetWidth;if(n&&a){var u=r();if(u){var c=u.offsetHeight,f=u.offsetWidth;l===c&&s===f&&i||e.setState({stretchChecked:!0,targetHeight:c,targetWidth:f})}}else i&&e.setState({stretchChecked:!1})},this.getTargetElement=function(){return e.props.getRootDomNode()},this.getAlignTarget=function(){var t=e.props.point;return t||e.getTargetElement}};t.a=w},function(e,t,n){"use strict";var r=n(134);t.a=r.a},function(e,t,n){"use strict";function r(e){return"function"===typeof e&&e?e():null}function a(e){return"object"===typeof e&&e?e:null}var o=n(2),i=n.n(o),l=n(3),s=n.n(l),u=n(4),c=n.n(u),f=n(0),p=n.n(f),d=n(1),h=n.n(d),v=n(8),m=n.n(v),y=n(135),g=n(32),b=n(143),x=function(e){function t(){var n,o,l;i()(this,t);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return n=o=s()(this,e.call.apply(e,[this].concat(c))),o.forceAlign=function(){var e=o.props,t=e.disabled,n=e.target,i=e.align,l=e.onAlign;if(!t&&n){var s=m.a.findDOMNode(o),u=void 0,c=r(n),f=a(n);c?u=Object(y.a)(s,c,i):f&&(u=Object(y.b)(s,f,i)),l&&l(s,u)}},l=n,s()(o,l)}return c()(t,e),t.prototype.componentDidMount=function(){var e=this.props;this.forceAlign(),!e.disabled&&e.monitorWindowResize&&this.startMonitorWindowResize()},t.prototype.componentDidUpdate=function(e){var t=!1,n=this.props;if(!n.disabled){var o=m.a.findDOMNode(this),i=o?o.getBoundingClientRect():null;if(e.disabled)t=!0;else{var l=r(e.target),s=r(n.target),u=a(e.target),c=a(n.target);Object(b.c)(l)&&Object(b.c)(s)?t=!1:(l!==s||l&&!s&&c||u&&c&&s||c&&!Object(b.b)(u,c))&&(t=!0);var f=this.sourceRect||{};t||!o||f.width===i.width&&f.height===i.height||(t=!0)}this.sourceRect=i}t&&this.forceAlign(),n.monitorWindowResize&&!n.disabled?this.startMonitorWindowResize():this.stopMonitorWindowResize()},t.prototype.componentWillUnmount=function(){this.stopMonitorWindowResize()},t.prototype.startMonitorWindowResize=function(){this.resizeHandler||(this.bufferMonitor=Object(b.a)(this.forceAlign,this.props.monitorBufferTime),this.resizeHandler=Object(g.a)(window,"resize",this.bufferMonitor))},t.prototype.stopMonitorWindowResize=function(){this.resizeHandler&&(this.bufferMonitor.clear(),this.resizeHandler.remove(),this.resizeHandler=null)},t.prototype.render=function(){var e=this,t=this.props,n=t.childrenProps,r=t.children,a=p.a.Children.only(r);if(n){var o={};return Object.keys(n).forEach((function(t){o[t]=e.props[n[t]]})),p.a.cloneElement(a,o)}return a},t}(f.Component);x.propTypes={childrenProps:h.a.object,align:h.a.object.isRequired,target:h.a.oneOfType([h.a.func,h.a.shape({clientX:h.a.number,clientY:h.a.number,pageX:h.a.number,pageY:h.a.number})]),onAlign:h.a.func,monitorBufferTime:h.a.number,monitorWindowResize:h.a.bool,disabled:h.a.bool,children:h.a.any},x.defaultProps={target:function(){return window},monitorBufferTime:50,monitorWindowResize:!1,disabled:!1},t.a=x},function(e,t,n){"use strict";var r=n(136),a=n(142);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return a.a})),r.a},function(e,t,n){"use strict";function r(e){var t=Object(l.a)(e),n=Object(s.a)(e);return!t||n.left+n.width<=t.left||n.top+n.height<=t.top||n.left>=t.right||n.top>=t.bottom}function a(e,t,n){var a=n.target||t,i=Object(s.a)(a),l=!r(a);return Object(o.a)(e,i,n,l)}var o=n(71),i=n(73),l=n(72),s=n(74);a.__getOffsetParent=i.a,a.__getVisibleRectForElement=l.a,t.a=a},function(e,t,n){"use strict";function r(){if(void 0!==f)return f;f="";var e=document.createElement("p").style;for(var t in p)t+"Transform"in e&&(f=t);return f}function a(){return r()?r()+"TransitionProperty":"transitionProperty"}function o(){return r()?r()+"Transform":"transform"}function i(e,t){var n=a();n&&(e.style[n]=t,"transitionProperty"!==n&&(e.style.transitionProperty=t))}function l(e,t){var n=o();n&&(e.style[n]=t,"transform"!==n&&(e.style.transform=t))}function s(e){return e.style.transitionProperty||e.style[a()]}function u(e){var t=window.getComputedStyle(e,null),n=t.getPropertyValue("transform")||t.getPropertyValue(o());if(n&&"none"!==n){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}function c(e,t){var n=window.getComputedStyle(e,null),r=n.getPropertyValue("transform")||n.getPropertyValue(o());if(r&&"none"!==r){var a=void 0,i=r.match(d);i?(i=i[1],a=i.split(",").map((function(e){return parseFloat(e,10)})),a[4]=t.x,a[5]=t.y,l(e,"matrix("+a.join(",")+")")):(a=r.match(h)[1].split(",").map((function(e){return parseFloat(e,10)})),a[12]=t.x,a[13]=t.y,l(e,"matrix3d("+a.join(",")+")"))}else l(e,"translateX("+t.x+"px) translateY("+t.y+"px) translateZ(0)")}t.a=o,t.e=i,t.c=s,t.b=u,t.d=c;var f=void 0,p={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"},d=/matrix\((.*)\)/,h=/matrix3d\((.*)\)/},function(e,t,n){"use strict";function r(e){if(a.a.isWindow(e)||9===e.nodeType)return!1;var t=a.a.getDocument(e),n=t.body,r=null;for(r=e.parentNode;r&&r!==n;r=r.parentNode)if("fixed"===a.a.css(r,"position"))return!0;return!1}t.a=r;var a=n(17)},function(e,t,n){"use strict";function r(e,t,n,r){var o=a.a.clone(e),i={width:t.width,height:t.height};return r.adjustX&&o.left<n.left&&(o.left=n.left),r.resizeWidth&&o.left>=n.left&&o.left+i.width>n.right&&(i.width-=o.left+i.width-n.right),r.adjustX&&o.left+i.width>n.right&&(o.left=Math.max(n.right-i.width,n.left)),r.adjustY&&o.top<n.top&&(o.top=n.top),r.resizeHeight&&o.top>=n.top&&o.top+i.height>n.bottom&&(i.height-=o.top+i.height-n.bottom),r.adjustY&&o.top+i.height>n.bottom&&(o.top=Math.max(n.bottom-i.height,n.top)),a.a.mix(o,i)}var a=n(17);t.a=r},function(e,t,n){"use strict";function r(e,t,n,r,o){var i=Object(a.a)(t,n[1]),l=Object(a.a)(e,n[0]),s=[l.left-i.left,l.top-i.top];return{left:e.left-s[0]+r[0]-o[0],top:e.top-s[1]+r[1]-o[1]}}var a=n(141);t.a=r},function(e,t,n){"use strict";function r(e,t){var n=t.charAt(0),r=t.charAt(1),a=e.width,o=e.height,i=e.left,l=e.top;return"c"===n?l+=o/2:"b"===n&&(l+=o),"c"===r?i+=a/2:"r"===r&&(i+=a),{left:i,top:l}}t.a=r},function(e,t,n){"use strict";function r(e,t,n){var r=void 0,l=void 0,s=a.a.getDocument(e),u=s.defaultView||s.parentWindow,c=a.a.getWindowScrollLeft(u),f=a.a.getWindowScrollTop(u),p=a.a.viewportWidth(u),d=a.a.viewportHeight(u);r="pageX"in t?t.pageX:c+t.clientX,l="pageY"in t?t.pageY:f+t.clientY;var h={left:r,top:l,width:0,height:0},v=r>=0&&r<=c+p&&l>=0&&l<=f+d,m=[n.points[0],"cc"];return Object(o.a)(e,h,i({},n,{points:m}),v)}var a=n(17),o=n(71),i=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};t.a=r},function(e,t,n){"use strict";function r(e,t){function n(){a&&(clearTimeout(a),a=null)}function r(){n(),a=setTimeout(e,t)}var a=void 0;return r.clear=n,r}function a(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&e.clientX===t.clientX&&e.clientY===t.clientY)}function o(e){return e&&"object"===typeof e&&e.window===e}t.a=r,t.b=a,t.c=o},function(e,t,n){"use strict";function r(e){var t=e.children;return g.a.isValidElement(t)&&!t.key?g.a.cloneElement(t,{key:T}):t}function a(){}var o=n(5),i=n.n(o),l=n(18),s=n.n(l),u=n(2),c=n.n(u),f=n(9),p=n.n(f),d=n(3),h=n.n(d),v=n(4),m=n.n(v),y=n(0),g=n.n(y),b=n(1),x=n.n(b),_=n(145),w=n(146),k=n(76),T="rc_animate_"+Date.now(),E=function(e){function t(e){c()(this,t);var n=h()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return O.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:Object(_.e)(r(e))},n.childrenRefs={},n}return m()(t,e),p()(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.showProp,n=this.state.children;t&&(n=n.filter((function(e){return!!e.props[t]}))),n.forEach((function(t){t&&e.performAppear(t.key)}))}},{key:"componentWillReceiveProps",value:function(e){var t=this;this.nextProps=e;var n=Object(_.e)(r(e)),a=this.props;a.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach((function(e){t.stop(e)}));var o=a.showProp,i=this.currentlyAnimatingKeys,l=a.exclusive?Object(_.e)(r(a)):this.state.children,u=[];o?(l.forEach((function(e){var t=e&&Object(_.a)(n,e.key),r=void 0;(r=t&&t.props[o]||!e.props[o]?t:g.a.cloneElement(t||e,s()({},o,!0)))&&u.push(r)})),n.forEach((function(e){e&&Object(_.a)(l,e.key)||u.push(e)}))):u=Object(_.d)(l,n),this.setState({children:u}),n.forEach((function(e){var n=e&&e.key;if(!e||!i[n]){var r=e&&Object(_.a)(l,n);if(o){var a=e.props[o];r?!Object(_.b)(l,n,o)&&a&&t.keysToEnter.push(n):a&&t.keysToEnter.push(n)}else r||t.keysToEnter.push(n)}})),l.forEach((function(e){var r=e&&e.key;if(!e||!i[r]){var a=e&&Object(_.a)(n,r);if(o){var l=e.props[o];a?!Object(_.b)(n,r,o)&&l&&t.keysToLeave.push(r):l&&t.keysToLeave.push(r)}else a||t.keysToLeave.push(r)}}))}},{key:"componentDidUpdate",value:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(e,t){var n=this.props.showProp;return n?Object(_.b)(e,t,n):Object(_.a)(e,t)}},{key:"stop",value:function(e){delete this.currentlyAnimatingKeys[e];var t=this.childrenRefs[e];t&&t.stop()}},{key:"render",value:function(){var e=this,t=this.props;this.nextProps=t;var n=this.state.children,r=null;n&&(r=n.map((function(n){if(null===n||void 0===n)return n;if(!n.key)throw new Error("must set key for <rc-animate> children");return g.a.createElement(w.a,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)})));var a=t.component;if(a){var o=t;return"string"===typeof a&&(o=i()({className:t.className,style:t.style},t.componentProps)),g.a.createElement(a,o,r)}return r[0]||null}}]),t}(g.a.Component);E.isAnimate=!0,E.propTypes={component:x.a.any,componentProps:x.a.object,animation:x.a.object,transitionName:x.a.oneOfType([x.a.string,x.a.object]),transitionEnter:x.a.bool,transitionAppear:x.a.bool,exclusive:x.a.bool,transitionLeave:x.a.bool,onEnd:x.a.func,onEnter:x.a.func,onLeave:x.a.func,onAppear:x.a.func,showProp:x.a.string,children:x.a.node},E.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:a,onEnter:a,onLeave:a,onAppear:a};var O=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var a=e.props;if(delete e.currentlyAnimatingKeys[t],!a.exclusive||a===e.nextProps){var o=Object(_.e)(r(a));e.isValidChildByKey(o,t)?"appear"===n?k.a.allowAppearCallback(a)&&(a.onAppear(t),a.onEnd(t,!0)):k.a.allowEnterCallback(a)&&(a.onEnter(t),a.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var a=Object(_.e)(r(n));if(e.isValidChildByKey(a,t))e.performEnter(t);else{var o=function(){k.a.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};Object(_.c)(e.state.children,a,n.showProp)?o():e.setState({children:a},o)}}}};t.a=E},function(e,t,n){"use strict";function r(e){var t=[];return u.a.Children.forEach(e,(function(e){t.push(e)})),t}function a(e,t){var n=null;return e&&e.forEach((function(e){n||e&&e.key===t&&(n=e)})),n}function o(e,t,n){var r=null;return e&&e.forEach((function(e){if(e&&e.key===t&&e.props[n]){if(r)throw new Error("two child with same key for <rc-animate> children");r=e}})),r}function i(e,t,n){var r=e.length===t.length;return r&&e.forEach((function(e,a){var o=t[a];e&&o&&(e&&!o||!e&&o||e.key!==o.key||n&&e.props[n]!==o.props[n])&&(r=!1)})),r}function l(e,t){var n=[],r={},o=[];return e.forEach((function(e){e&&a(t,e.key)?o.length&&(r[e.key]=o,o=[]):o.push(e)})),t.forEach((function(e){e&&Object.prototype.hasOwnProperty.call(r,e.key)&&(n=n.concat(r[e.key])),n.push(e)})),n=n.concat(o)}t.e=r,t.a=a,t.b=o,t.c=i,t.d=l;var s=n(0),u=n.n(s)},function(e,t,n){"use strict";var r=n(2),a=n.n(r),o=n(9),i=n.n(o),l=n(3),s=n.n(l),u=n(4),c=n.n(u),f=n(0),p=n.n(f),d=n(8),h=n.n(d),v=n(1),m=n.n(v),y=n(147),g=n(76),b={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},x=function(e){function t(){return a()(this,t),s()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return c()(t,e),i()(t,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(e){g.a.isEnterSupported(this.props)?this.transition("enter",e):e()}},{key:"componentWillAppear",value:function(e){g.a.isAppearSupported(this.props)?this.transition("appear",e):e()}},{key:"componentWillLeave",value:function(e){g.a.isLeaveSupported(this.props)?this.transition("leave",e):e()}},{key:"transition",value:function(e,t){var n=this,r=h.a.findDOMNode(this),a=this.props,o=a.transitionName,i="object"===typeof o;this.stop();var l=function(){n.stopper=null,t()};if((y.b||!a.animation[e])&&o&&a[b[e]]){var s=i?o[e]:o+"-"+e,u=s+"-active";i&&o[e+"Active"]&&(u=o[e+"Active"]),this.stopper=Object(y.a)(r,{name:s,active:u},l)}else this.stopper=a.animation[e](r,l)}},{key:"stop",value:function(){var e=this.stopper;e&&(this.stopper=null,e.stop())}},{key:"render",value:function(){return this.props.children}}]),t}(p.a.Component);x.propTypes={children:m.a.any},t.a=x},function(e,t,n){"use strict";function r(e,t){for(var n=window.getComputedStyle(e,null),r="",a=0;a<d.length&&!(r=n.getPropertyValue(d[a]+t));a++);return r}function a(e){if(f){var t=parseFloat(r(e,"transition-delay"))||0,n=parseFloat(r(e,"transition-duration"))||0,a=parseFloat(r(e,"animation-delay"))||0,o=parseFloat(r(e,"animation-duration"))||0,i=Math.max(n+t,o+a);e.rcEndAnimTimeout=setTimeout((function(){e.rcEndAnimTimeout=null,e.rcEndListener&&e.rcEndListener()}),1e3*i+200)}}function o(e){e.rcEndAnimTimeout&&(clearTimeout(e.rcEndAnimTimeout),e.rcEndAnimTimeout=null)}n.d(t,"b",(function(){return f}));var i=n(43),l=n.n(i),s=n(148),u=n(149),c=n.n(u),f=0!==s.a.endEvents.length,p=["Webkit","Moz","O","ms"],d=["-webkit-","-moz-","-o-","ms-",""],h=function(e,t,n){var r="object"===("undefined"===typeof t?"undefined":l()(t)),i=r?t.name:t,u=r?t.active:t+"-active",f=n,p=void 0,d=void 0,h=c()(e);return n&&"[object Object]"===Object.prototype.toString.call(n)&&(f=n.end,p=n.start,d=n.active),e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),o(e),h.remove(i),h.remove(u),s.a.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,f&&f())},s.a.addEndEventListener(e,e.rcEndListener),p&&p(),h.add(i),e.rcAnimTimeout=setTimeout((function(){e.rcAnimTimeout=null,h.add(u),d&&setTimeout(d,0),a(e)}),30),{stop:function(){e.rcEndListener&&e.rcEndListener()}}};h.style=function(e,t,n){e.rcEndListener&&e.rcEndListener(),e.rcEndListener=function(t){t&&t.target!==e||(e.rcAnimTimeout&&(clearTimeout(e.rcAnimTimeout),e.rcAnimTimeout=null),o(e),s.a.removeEndEventListener(e,e.rcEndListener),e.rcEndListener=null,n&&n())},s.a.addEndEventListener(e,e.rcEndListener),e.rcAnimTimeout=setTimeout((function(){for(var n in t)t.hasOwnProperty(n)&&(e.style[n]=t[n]);e.rcAnimTimeout=null,a(e)}),0)},h.setTransition=function(e,t,n){var r=t,a=n;void 0===n&&(a=r,r=""),r=r||"",p.forEach((function(t){e.style[t+"Transition"+r]=a}))},h.isCssAnimationSupported=f,t.a=h},function(e,t,n){"use strict";function r(e,t,n){e.addEventListener(t,n,!1)}function a(e,t,n){e.removeEventListener(t,n,!1)}var o={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},i={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},l=[],s=[];"undefined"!==typeof window&&"undefined"!==typeof document&&function(){function e(e,t){for(var r in e)if(e.hasOwnProperty(r)){var a=e[r];for(var o in a)if(o in n){t.push(a[o]);break}}}var t=document.createElement("div"),n=t.style;"AnimationEvent"in window||(delete o.animationstart.animation,delete i.animationend.animation),"TransitionEvent"in window||(delete o.transitionstart.transition,delete i.transitionend.transition),e(o,l),e(i,s)}();var u={startEvents:l,addStartEventListener:function(e,t){0!==l.length?l.forEach((function(n){r(e,n,t)})):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==l.length&&l.forEach((function(n){a(e,n,t)}))},endEvents:s,addEndEventListener:function(e,t){0!==s.length?s.forEach((function(n){r(e,n,t)})):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==s.length&&s.forEach((function(n){a(e,n,t)}))}};t.a=u},function(e,t,n){function r(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}try{var a=n(75)}catch(e){a=n(75)}var o=/\s+/,i=Object.prototype.toString;e.exports=function(e){return new r(e)},r.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array();return~a(t,e)||t.push(e),this.el.className=t.join(" "),this},r.prototype.remove=function(e){if("[object RegExp]"==i.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=a(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},r.prototype.removeMatching=function(e){for(var t=this.array(),n=0;n<t.length;n++)e.test(t[n])&&this.remove(t[n]);return this},r.prototype.toggle=function(e,t){return this.list?("undefined"!==typeof t?t!==this.list.toggle(e,t)&&this.list.toggle(e):this.list.toggle(e),this):("undefined"!==typeof t?t?this.add(e):this.remove(e):this.has(e)?this.remove(e):this.add(e),this)},r.prototype.array=function(){var e=this.el.getAttribute("class")||"",t=e.replace(/^\s+|\s+$/g,""),n=t.split(o);return""===n[0]&&n.shift(),n},r.prototype.has=r.prototype.contains=function(e){return this.list?this.list.contains(e):!!~a(this.array(),e)}},function(e,t,n){"use strict";var r=n(2),a=n.n(r),o=n(3),i=n.n(o),l=n(4),s=n.n(l),u=n(0),c=n.n(u),f=n(1),p=n.n(f),d=n(77),h=function(e){function t(){return a()(this,t),i()(this,e.apply(this,arguments))}return s()(t,e),t.prototype.render=function(){var e=this.props,t=e.className;return e.visible||(t+=" "+e.hiddenClassName),c.a.createElement("div",{className:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onMouseDown:e.onMouseDown,onTouchStart:e.onTouchStart,style:e.style},c.a.createElement(d.a,{className:e.prefixCls+"-content",visible:e.visible},e.children))},t}(u.Component);h.propTypes={hiddenClassName:p.a.string,className:p.a.string,prefixCls:p.a.string,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onMouseDown:p.a.func,onTouchStart:p.a.func,children:p.a.any},t.a=h},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r={adjustX:1,adjustY:1},a=[0,0],o={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:a},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:a},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:a},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:a},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:a},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:a},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:a},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:a},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:a},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:a},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:a},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:a}}},function(e,t,n){"use strict";var r=n(2),a=n.n(r),o=n(3),i=n.n(o),l=n(4),s=n.n(l),u=n(0),c=n.n(u),f=n(1),p=n.n(f),d=function(e){function t(){return a()(this,t),i()(this,e.apply(this,arguments))}return s()(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.trigger;e&&e.forcePopupAlign()},t.prototype.render=function(){var e=this.props,t=e.overlay,n=e.prefixCls,r=e.id;return c.a.createElement("div",{className:n+"-inner",id:r,role:"tooltip"},"function"===typeof t?t():t)},t}(c.a.Component);d.propTypes={prefixCls:p.a.string,overlay:p.a.oneOfType([p.a.node,p.a.func]).isRequired,id:p.a.string,trigger:p.a.any},t.a=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(154),a=n(174),o=n(51),i=n(176);n.d(t,"Range",(function(){return a.a})),n.d(t,"Handle",(function(){return o.a})),n.d(t,"createSliderWithTooltip",(function(){return i.a})),r.a.Range=a.a,r.a.Handle=o.a,r.a.createSliderWithTooltip=i.a,t.default=r.a},function(e,t,n){"use strict";var r=n(5),a=n.n(r),o=n(2),i=n.n(o),l=n(9),s=n.n(l),u=n(3),c=n.n(u),f=n(4),p=n.n(f),d=n(0),h=n.n(d),v=n(1),m=n.n(v),y=n(50),g=n.n(y),b=n(78),x=n(79),_=n(52),w=function(e){function t(e){i()(this,t);var n=c()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onEnd=function(){n.setState({dragging:!1}),n.removeDocumentEvents(),n.props.onAfterChange(n.getValue())};var r=void 0!==e.defaultValue?e.defaultValue:e.min,a=void 0!==e.value?e.value:r;return n.state={value:n.trimAlignValue(a),dragging:!1},_.g()&&(g()(!("minimumTrackStyle"in e),"minimumTrackStyle will be deprecate, please use trackStyle instead."),g()(!("maximumTrackStyle"in e),"maximumTrackStyle will be deprecate, please use railStyle instead.")),n}return p()(t,e),s()(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,n=e.disabled;t&&!n&&this.focus()}},{key:"componentWillReceiveProps",value:function(e){if("value"in e||"min"in e||"max"in e){var t=this.state.value,n=void 0!==e.value?e.value:t,r=this.trimAlignValue(n,e);r!==t&&(this.setState({value:r}),_.j(n,e)&&this.props.onChange(r))}}},{key:"onChange",value:function(e){var t=this.props;!("value"in t)&&this.setState(e);var n=e.value;t.onChange(n)}},{key:"onStart",value:function(e){this.setState({dragging:!0});var t=this.props,n=this.getValue();t.onBeforeChange(n);var r=this.calcValueByPos(e);this.startValue=r,this.startPosition=e,r!==n&&(this.prevMovedHandleIndex=0,this.onChange({value:r}))}},{key:"onMove",value:function(e,t){_.k(e);var n=this.state.value,r=this.calcValueByPos(t);r!==n&&this.onChange({value:r})}},{key:"onKeyboard",value:function(e){var t=_.d(e);if(t){_.k(e);var n=this.state,r=n.value,a=t(r,this.props),o=this.trimAlignValue(a);if(o===r)return;this.onChange({value:o})}}},{key:"getValue",value:function(){return this.state.value}},{key:"getLowerBound",value:function(){return this.props.min}},{key:"getUpperBound",value:function(){return this.state.value}},{key:"trimAlignValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===e)return null;var n=a()({},this.props,t),r=_.a(e,n);return _.b(r,n)}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.vertical,o=t.included,i=t.disabled,l=t.minimumTrackStyle,s=t.trackStyle,u=t.handleStyle,c=t.tabIndex,f=t.min,p=t.max,d=t.handle,v=this.state,m=v.value,y=v.dragging,g=this.calcOffset(m),x=d({className:n+"-handle",prefixCls:n,vertical:r,offset:g,value:m,dragging:y,disabled:i,min:f,max:p,index:0,tabIndex:c,style:u[0]||u,ref:function(t){return e.saveHandle(0,t)}}),_=s[0]||s;return{tracks:h.a.createElement(b.a,{className:n+"-track",vertical:r,included:o,offset:0,length:g,style:a()({},l,_)}),handles:x}}}]),t}(h.a.Component);w.propTypes={defaultValue:m.a.number,value:m.a.number,disabled:m.a.bool,autoFocus:m.a.bool,tabIndex:m.a.number,min:m.a.number,max:m.a.number},t.a=Object(x.a)(w)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=n(156),o=r(a),i=n(159),l=r(i);t.default=function e(t,n,r){null===t&&(t=Function.prototype);var a=(0,l.default)(t,n);if(void 0===a){var i=(0,o.default)(t);return null===i?void 0:e(i,n,r)}if("value"in a)return a.value;var s=a.get;return void 0!==s?s.call(r):void 0}},function(e,t,n){e.exports={default:n(157),__esModule:!0}},function(e,t,n){n(158),e.exports=n(6).Object.getPrototypeOf},function(e,t,n){var r=n(31),a=n(66);n(80)("getPrototypeOf",(function(){return function(e){return a(r(e))}}))},function(e,t,n){e.exports={default:n(160),__esModule:!0}},function(e,t,n){n(161);var r=n(6).Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},function(e,t,n){var r=n(15),a=n(48).f;n(80)("getOwnPropertyDescriptor",(function(){return function(e,t){return a(r(e),t)}}))},function(e,t,n){"use strict";var r=n(18),a=n.n(r),o=n(5),i=n.n(o),l=n(0),s=n.n(l),u=n(1),c=n.n(u),f=n(16),p=n.n(f),d=n(50),h=n.n(d),v=function(e,t,n,r,a,o){h()(!n||r>0,"`Slider[step]` should be a positive number in order to make Slider[dots] work.");var i=Object.keys(t).map(parseFloat).sort((function(e,t){return e-t}));if(n)for(var l=a;l<=o;l+=r)-1===i.indexOf(l)&&i.push(l);return i},m=function(e){var t=e.prefixCls,n=e.vertical,r=e.marks,o=e.dots,l=e.step,u=e.included,c=e.lowerBound,f=e.upperBound,d=e.max,h=e.min,m=e.dotStyle,y=e.activeDotStyle,g=d-h,b=v(0,r,o,l,h,d).map((function(e){var r,o=Math.abs(e-h)/g*100+"%",l=!u&&e===f||u&&e<=f&&e>=c,d=n?i()({bottom:o},m):i()({left:o},m);l&&(d=i()({},d,y));var v=p()((r={},a()(r,t+"-dot",!0),a()(r,t+"-dot-active",l),r));return s.a.createElement("span",{className:v,style:d,key:e})}));return s.a.createElement("div",{className:t+"-step"},b)};m.propTypes={prefixCls:c.a.string,activeDotStyle:c.a.object,dotStyle:c.a.object,min:c.a.number,max:c.a.number,upperBound:c.a.number,lowerBound:c.a.number,included:c.a.bool,dots:c.a.bool,step:c.a.number,marks:c.a.object,vertical:c.a.bool},t.a=m},function(e,t,n){"use strict";var r=n(5),a=n.n(r),o=n(18),i=n.n(o),l=n(0),s=n.n(l),u=n(1),c=n.n(u),f=n(16),p=n.n(f),d=function(e){var t=e.className,n=e.vertical,r=e.marks,o=e.included,l=e.upperBound,u=e.lowerBound,c=e.max,f=e.min,d=e.onClickLabel,h=Object.keys(r),v=h.length,m=v>1?100/(v-1):100,y=.9*m,g=c-f,b=h.map(parseFloat).sort((function(e,t){return e-t})).map((function(e){var c,h=r[e],v="object"===typeof h&&!s.a.isValidElement(h),m=v?h.label:h;if(!m&&0!==m)return null;var b=!o&&e===l||o&&e<=l&&e>=u,x=p()((c={},i()(c,t+"-text",!0),i()(c,t+"-text-active",b),c)),_={marginBottom:"-50%",bottom:(e-f)/g*100+"%"},w={width:y+"%",marginLeft:-y/2+"%",left:(e-f)/g*100+"%"},k=n?_:w,T=v?a()({},k,h.style):k;return s.a.createElement("span",{className:x,style:T,key:e,onMouseDown:function(t){return d(t,e)},onTouchStart:function(t){return d(t,e)}},m)}));return s.a.createElement("div",{className:t},b)};d.propTypes={className:c.a.string,vertical:c.a.bool,marks:c.a.object,included:c.a.bool,upperBound:c.a.number,lowerBound:c.a.number,max:c.a.number,min:c.a.number,onClickLabel:c.a.func},t.a=d},function(e,t,n){e.exports={default:n(165),__esModule:!0}},function(e,t,n){n(63),n(166),e.exports=n(6).Array.from},function(e,t,n){"use strict";var r=n(34),a=n(10),o=n(31),i=n(167),l=n(168),s=n(62),u=n(169),c=n(170);a(a.S+a.F*!n(172)((function(e){Array.from(e)})),"Array",{from:function(e){var t,n,a,f,p=o(e),d="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,y=0,g=c(p);if(m&&(v=r(v,h>2?arguments[2]:void 0,2)),void 0==g||d==Array&&l(g))for(t=s(p.length),n=new d(t);t>y;y++)u(n,y,m?v(p[y],y):p[y]);else for(f=g.call(p),n=new d;!(a=f.next()).done;y++)u(n,y,m?i(f,v,[a.value,y],!0):a.value);return n.length=y,n}})},function(e,t,n){var r=n(20);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){var r=n(25),a=n(7)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[a]===e)}},function(e,t,n){"use strict";var r=n(12),a=n(23);e.exports=function(e,t,n){t in e?r.f(e,t,a(0,n)):e[t]=n}},function(e,t,n){var r=n(171),a=n(7)("iterator"),o=n(25);e.exports=n(6).getIteratorMethod=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(36),a=n(7)("toStringTag"),o="Arguments"==r(function(){return arguments}()),i=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,l;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=i(t=Object(e),a))?n:o?r(t):"Object"==(l=r(t))&&"function"==typeof t.callee?"Arguments":l}},function(e,t,n){var r=n(7)("iterator"),a=!1;try{var o=[7][r]();o.return=function(){a=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var o=[7],i=o[r]();i.next=function(){return{done:n=!0}},o[r]=function(){return i},e(o)}catch(e){}return n}},function(e,t,n){"use strict";var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE)return!0;if(e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY)return!0;if(e>=r.A&&e<=r.Z)return!0;if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.a=r},function(e,t,n){"use strict";var r=n(18),a=n.n(r),o=n(5),i=n.n(o),l=n(81),s=n.n(l),u=n(2),c=n.n(u),f=n(9),p=n.n(f),d=n(3),h=n.n(d),v=n(4),m=n.n(v),y=n(0),g=n.n(y),b=n(1),x=n.n(b),_=n(16),w=n.n(_),k=n(175),T=n.n(k),E=n(78),O=n(79),M=n(52),S=function(e){function t(e){c()(this,t);var n=h()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.onEnd=function(){n.setState({handle:null}),n.removeDocumentEvents(),n.props.onAfterChange(n.getValue())};var r=e.count,a=e.min,o=e.max,i=Array.apply(void 0,s()(Array(r+1))).map((function(){return a})),l="defaultValue"in e?e.defaultValue:i,u=void 0!==e.value?e.value:l,f=u.map((function(e,t){return n.trimAlignValue(e,t)})),p=f[0]===o?0:f.length-1;return n.state={handle:null,recent:p,bounds:f},n}return m()(t,e),p()(t,[{key:"componentWillReceiveProps",value:function(e){var t=this;if(("value"in e||"min"in e||"max"in e)&&(this.props.min!==e.min||this.props.max!==e.max||!T()(this.props.value,e.value))){var n=this.state.bounds,r=e.value||n,a=r.map((function(n,r){return t.trimAlignValue(n,r,e)}));if((a.length!==n.length||!a.every((function(e,t){return e===n[t]})))&&(this.setState({bounds:a}),r.some((function(t){return M.j(t,e)})))){var o=r.map((function(t){return M.a(t,e)}));this.props.onChange(o)}}}},{key:"onChange",value:function(e){var t=this.props;"value"in t?void 0!==e.handle&&this.setState({handle:e.handle}):this.setState(e);var n=i()({},this.state,e),r=n.bounds;t.onChange(r)}},{key:"onStart",value:function(e){var t=this.props,n=this.state,r=this.getValue();t.onBeforeChange(r);var a=this.calcValueByPos(e);this.startValue=a,this.startPosition=e;var o=this.getClosestBound(a);if(this.prevMovedHandleIndex=this.getBoundNeedMoving(a,o),this.setState({handle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex}),a!==r[this.prevMovedHandleIndex]){var i=[].concat(s()(n.bounds));i[this.prevMovedHandleIndex]=a,this.onChange({bounds:i})}}},{key:"onMove",value:function(e,t){M.k(e);var n=this.state,r=this.calcValueByPos(t);r!==n.bounds[n.handle]&&this.moveTo(r)}},{key:"onKeyboard",value:function(e){var t=M.d(e);if(t){M.k(e);var n=this.state,r=this.props,a=n.bounds,o=n.handle,i=a[o],l=t(i,r),s=this.trimAlignValue(l);if(s===i)return;this.moveTo(s,!0)}}},{key:"getValue",value:function(){return this.state.bounds}},{key:"getClosestBound",value:function(e){for(var t=this.state.bounds,n=0,r=1;r<t.length-1;++r)e>t[r]&&(n=r);return Math.abs(t[n+1]-e)<Math.abs(t[n]-e)&&(n+=1),n}},{key:"getBoundNeedMoving",value:function(e,t){var n=this.state,r=n.bounds,a=n.recent,o=t,i=r[t+1]===r[t];return i&&r[a]===r[t]&&(o=a),i&&e!==r[t+1]&&(o=e<r[t+1]?t:t+1),o}},{key:"getLowerBound",value:function(){return this.state.bounds[0]}},{key:"getUpperBound",value:function(){var e=this.state.bounds;return e[e.length-1]}},{key:"getPoints",value:function(){var e=this.props,t=e.marks,n=e.step,r=e.min,a=e.max,o=this._getPointsCache;if(!o||o.marks!==t||o.step!==n){var l=i()({},t);if(null!==n)for(var s=r;s<=a;s+=n)l[s]=s;var u=Object.keys(l).map(parseFloat);u.sort((function(e,t){return e-t})),this._getPointsCache={marks:t,step:n,points:u}}return this._getPointsCache.points}},{key:"moveTo",value:function(e,t){var n=this,r=this.state,a=this.props,o=[].concat(s()(r.bounds));o[r.handle]=e;var i=r.handle;!1!==a.pushable?this.pushSurroundingHandles(o,i):a.allowCross&&(o.sort((function(e,t){return e-t})),i=o.indexOf(e)),this.onChange({handle:i,bounds:o}),t&&this.setState({},(function(){n.handlesRefs[i].focus()}))}},{key:"pushSurroundingHandles",value:function(e,t){var n=e[t],r=this.props.pushable;r=Number(r);var a=0;if(e[t+1]-n<r&&(a=1),n-e[t-1]<r&&(a=-1),0!==a){var o=t+a,i=a*(e[o]-n);this.pushHandle(e,o,a,r-i)||(e[t]=e[o]-a*r)}}},{key:"pushHandle",value:function(e,t,n,r){for(var a=e[t],o=e[t];n*(o-a)<r;){if(!this.pushHandleOnePoint(e,t,n))return e[t]=a,!1;o=e[t]}return!0}},{key:"pushHandleOnePoint",value:function(e,t,n){var r=this.getPoints(),a=r.indexOf(e[t]),o=a+n;if(o>=r.length||o<0)return!1;var i=t+n,l=r[o],s=this.props.pushable,u=n*(e[i]-l);return!!this.pushHandle(e,i,n,s-u)&&(e[t]=l,!0)}},{key:"trimAlignValue",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=i()({},this.props,n),a=M.a(e,r),o=this.ensureValueNotConflict(t,a,r);return M.b(o,r)}},{key:"ensureValueNotConflict",value:function(e,t,n){var r=n.allowCross,a=n.pushable,o=this.state||{},i=o.bounds;if(e=void 0===e?o.handle:e,a=Number(a),!r&&null!=e&&void 0!==i){if(e>0&&t<=i[e-1]+a)return i[e-1]+a;if(e<i.length-1&&t>=i[e+1]-a)return i[e+1]-a}return t}},{key:"render",value:function(){var e=this,t=this.state,n=t.handle,r=t.bounds,o=this.props,i=o.prefixCls,l=o.vertical,s=o.included,u=o.disabled,c=o.min,f=o.max,p=o.handle,d=o.trackStyle,h=o.handleStyle,v=o.tabIndex,m=r.map((function(t){return e.calcOffset(t)})),y=i+"-handle",b=r.map((function(t,r){var o;return p({className:w()((o={},a()(o,y,!0),a()(o,y+"-"+(r+1),!0),o)),prefixCls:i,vertical:l,offset:m[r],value:t,dragging:n===r,index:r,tabIndex:v[r]||0,min:c,max:f,disabled:u,style:h[r],ref:function(t){return e.saveHandle(r,t)}})}));return{tracks:r.slice(0,-1).map((function(e,t){var n,r=t+1,o=w()((n={},a()(n,i+"-track",!0),a()(n,i+"-track-"+r,!0),n));return g.a.createElement(E.a,{className:o,vertical:l,included:s,offset:m[r-1],length:m[r]-m[r-1],style:d[t],key:r})})),handles:b}}}]),t}(g.a.Component);S.displayName="Range",S.propTypes={defaultValue:x.a.arrayOf(x.a.number),value:x.a.arrayOf(x.a.number),count:x.a.number,pushable:x.a.oneOfType([x.a.bool,x.a.number]),allowCross:x.a.bool,disabled:x.a.bool,tabIndex:x.a.arrayOf(x.a.number),min:x.a.number,max:x.a.number},S.defaultProps={count:1,allowCross:!0,pushable:!1,tabIndex:[]},t.a=Object(O.a)(S)},function(e,t){e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<o.length;s++){var u=o[s];if(!l(u))return!1;var c=e[u],f=t[u];if(!1===(a=n?n.call(r,c,f,u):void 0)||void 0===a&&c!==f)return!1}return!0}},function(e,t,n){"use strict";function r(e){var t,n;return n=t=function(t){function n(e){f()(this,n);var t=v()(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.handleTooltipVisibleChange=function(e,n){t.setState((function(t){return{visibles:u()({},t.visibles,l()({},e,n))}}))},t.handleWithTooltip=function(e){var n=e.value,r=e.dragging,a=e.index,i=e.disabled,l=o()(e,["value","dragging","index","disabled"]),s=t.props,c=s.tipFormatter,f=s.tipProps,p=s.handleStyle,d=f.prefixCls,h=void 0===d?"rc-slider-tooltip":d,v=f.overlay,m=void 0===v?c(n):v,y=f.placement,g=void 0===y?"top":y,x=f.visible,_=void 0!==x&&x,T=o()(f,["prefixCls","overlay","placement","visible"]),E=void 0;return E=Array.isArray(p)?p[a]||p[0]:p,b.a.createElement(w.default,u()({},T,{prefixCls:h,overlay:m,placement:g,visible:!i&&(t.state.visibles[a]||r)||_,key:a}),b.a.createElement(k.a,u()({},l,{style:u()({},E),value:n,onMouseEnter:function(){return t.handleTooltipVisibleChange(a,!0)},onMouseLeave:function(){return t.handleTooltipVisibleChange(a,!1)}})))},t.state={visibles:{}},t}return y()(n,t),d()(n,[{key:"render",value:function(){return b.a.createElement(e,u()({},this.props,{handle:this.handleWithTooltip}))}}]),n}(b.a.Component),t.propTypes={tipFormatter:_.a.func,handleStyle:_.a.oneOfType([_.a.object,_.a.arrayOf(_.a.object)]),tipProps:_.a.object},t.defaultProps={tipFormatter:function(e){return e},handleStyle:[{}],tipProps:{}},n}t.a=r;var a=n(24),o=n.n(a),i=n(18),l=n.n(i),s=n(5),u=n.n(s),c=n(2),f=n.n(c),p=n(9),d=n.n(p),h=n(3),v=n.n(h),m=n(4),y=n.n(m),g=n(0),b=n.n(g),x=n(1),_=n.n(x),w=n(57),k=n(51)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"Async",(function(){return W})),n.d(t,"AsyncCreatable",(function(){return J})),n.d(t,"Creatable",(function(){return q})),n.d(t,"Value",(function(){return A})),n.d(t,"Option",(function(){return C})),n.d(t,"defaultMenuRenderer",(function(){return b})),n.d(t,"defaultArrowRenderer",(function(){return p})),n.d(t,"defaultClearRenderer",(function(){return d})),n.d(t,"defaultFilterOptions",(function(){return g}));var r=n(178),a=n.n(r),o=n(16),i=n.n(o),l=n(1),s=n.n(l),u=n(0),c=n.n(u),f=n(8),p=(n.n(f),function(e){var t=e.onMouseDown;return c.a.createElement("span",{className:"Select-arrow",onMouseDown:t})});p.propTypes={onMouseDown:s.a.func};var d=function(){return c.a.createElement("span",{className:"Select-clear",dangerouslySetInnerHTML:{__html:"&times;"}})},h=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],v=function(e){for(var t=0;t<h.length;t++)e=e.replace(h[t].letters,h[t].base);return e},m=function(e){return e.replace(/^\s+|\s+$/g,"")},y=function(e){return"undefined"!==typeof e&&null!==e&&""!==e},g=function(e,t,n,r){return r.ignoreAccents&&(t=v(t)),r.ignoreCase&&(t=t.toLowerCase()),r.trimFilter&&(t=m(t)),n&&(n=n.map((function(e){return e[r.valueKey]}))),e.filter((function(e){if(n&&n.indexOf(e[r.valueKey])>-1)return!1;if(r.filterOption)return r.filterOption.call(void 0,e,t);if(!t)return!0;var a=e[r.valueKey],o=e[r.labelKey],i=y(a),l=y(o);if(!i&&!l)return!1;var s=i?String(a):null,u=l?String(o):null;return r.ignoreAccents&&(s&&"label"!==r.matchProp&&(s=v(s)),u&&"value"!==r.matchProp&&(u=v(u))),r.ignoreCase&&(s&&"label"!==r.matchProp&&(s=s.toLowerCase()),u&&"value"!==r.matchProp&&(u=u.toLowerCase())),"start"===r.matchPos?s&&"label"!==r.matchProp&&s.substr(0,t.length)===t||u&&"value"!==r.matchProp&&u.substr(0,t.length)===t:s&&"label"!==r.matchProp&&s.indexOf(t)>=0||u&&"value"!==r.matchProp&&u.indexOf(t)>=0}))},b=function(e){var t=e.focusedOption,n=e.focusOption,r=e.inputValue,a=e.instancePrefix,o=e.onFocus,l=e.onOptionRef,s=e.onSelect,u=e.optionClassName,f=e.optionComponent,p=e.optionRenderer,d=e.options,h=e.removeValue,v=e.selectValue,m=e.valueArray,y=e.valueKey,g=f;return d.map((function(e,f){var d=m&&m.some((function(t){return t[y]===e[y]})),b=e===t,x=i()(u,{"Select-option":!0,"is-selected":d,"is-focused":b,"is-disabled":e.disabled});return c.a.createElement(g,{className:x,focusOption:n,inputValue:r,instancePrefix:a,isDisabled:e.disabled,isFocused:b,isSelected:d,key:"option-"+f+"-"+e[y],onFocus:o,onSelect:s,option:e,optionIndex:f,ref:function(e){l(e,b)},removeValue:h,selectValue:v},p(e,f,r))}))};b.propTypes={focusOption:s.a.func,focusedOption:s.a.object,inputValue:s.a.string,instancePrefix:s.a.string,onFocus:s.a.func,onOptionRef:s.a.func,onSelect:s.a.func,optionClassName:s.a.string,optionComponent:s.a.func,optionRenderer:s.a.func,options:s.a.array,removeValue:s.a.func,selectValue:s.a.func,valueArray:s.a.array,valueKey:s.a.string};var x=function(e){e.preventDefault(),e.stopPropagation(),"A"===e.target.tagName&&"href"in e.target&&(e.target.target?window.open(e.target.href,e.target.target):window.location.href=e.target.href)},_="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},w=(function(){function e(e){this.value=e}function t(t){function n(e,t){return new Promise((function(n,a){var l={key:e,arg:t,resolve:n,reject:a,next:null};i?i=i.next=l:(o=i=l,r(e,t))}))}function r(n,o){try{var i=t[n](o),l=i.value;l instanceof e?Promise.resolve(l.value).then((function(e){r("next",e)}),(function(e){r("throw",e)})):a(i.done?"return":"normal",i.value)}catch(e){a("throw",e)}}function a(e,t){switch(e){case"return":o.resolve({value:t,done:!0});break;case"throw":o.reject(t);break;default:o.resolve({value:t,done:!1})}o=o.next,o?r(o.key,o.arg):i=null}var o,i;this._invoke=n,"function"!==typeof t.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),k=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}}(),T=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},E=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},O=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)},M=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},S=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},C=function(e){function t(e){w(this,t);var n=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.handleMouseEnter=n.handleMouseEnter.bind(n),n.handleMouseMove=n.handleMouseMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n.handleTouchEnd=n.handleTouchEnd.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.onFocus=n.onFocus.bind(n),n}return O(t,e),k(t,[{key:"handleMouseDown",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onSelect(this.props.option,e)}},{key:"handleMouseEnter",value:function(e){this.onFocus(e)}},{key:"handleMouseMove",value:function(e){this.onFocus(e)}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"onFocus",value:function(e){this.props.isFocused||this.props.onFocus(this.props.option,e)}},{key:"render",value:function(){var e=this.props,t=e.option,n=e.instancePrefix,r=e.optionIndex,a=i()(this.props.className,t.className);return t.disabled?c.a.createElement("div",{className:a,onMouseDown:x,onClick:x},this.props.children):c.a.createElement("div",{className:a,style:t.style,role:"option","aria-label":t.label,onMouseDown:this.handleMouseDown,onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove,onTouchEnd:this.handleTouchEnd,id:n+"-option-"+r,title:t.title},this.props.children)}}]),t}(c.a.Component);C.propTypes={children:s.a.node,className:s.a.string,instancePrefix:s.a.string.isRequired,isDisabled:s.a.bool,isFocused:s.a.bool,isSelected:s.a.bool,onFocus:s.a.func,onSelect:s.a.func,onUnfocus:s.a.func,option:s.a.object.isRequired,optionIndex:s.a.number};var A=function(e){function t(e){w(this,t);var n=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleMouseDown=n.handleMouseDown.bind(n),n.onRemove=n.onRemove.bind(n),n.handleTouchEndRemove=n.handleTouchEndRemove.bind(n),n.handleTouchMove=n.handleTouchMove.bind(n),n.handleTouchStart=n.handleTouchStart.bind(n),n}return O(t,e),k(t,[{key:"handleMouseDown",value:function(e){if("mousedown"!==e.type||0===e.button)return this.props.onClick?(e.stopPropagation(),void this.props.onClick(this.props.value,e)):void(this.props.value.href&&e.stopPropagation())}},{key:"onRemove",value:function(e){e.preventDefault(),e.stopPropagation(),this.props.onRemove(this.props.value)}},{key:"handleTouchEndRemove",value:function(e){this.dragging||this.onRemove(e)}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"renderRemoveIcon",value:function(){if(!this.props.disabled&&this.props.onRemove)return c.a.createElement("span",{className:"Select-value-icon","aria-hidden":"true",onMouseDown:this.onRemove,onTouchEnd:this.handleTouchEndRemove,onTouchStart:this.handleTouchStart,onTouchMove:this.handleTouchMove},"×")}},{key:"renderLabel",value:function(){return this.props.onClick||this.props.value.href?c.a.createElement("a",{className:"Select-value-label",href:this.props.value.href,target:this.props.value.target,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleMouseDown},this.props.children):c.a.createElement("span",{className:"Select-value-label",role:"option","aria-selected":"true",id:this.props.id},this.props.children)}},{key:"render",value:function(){return c.a.createElement("div",{className:i()("Select-value",this.props.value.disabled?"Select-value-disabled":"",this.props.value.className),style:this.props.value.style,title:this.props.value.title},this.renderRemoveIcon(),this.renderLabel())}}]),t}(c.a.Component);A.propTypes={children:s.a.node,disabled:s.a.bool,id:s.a.string,onClick:s.a.func,onRemove:s.a.func,value:s.a.object.isRequired};var P=function(e){return"string"===typeof e?e:null!==e&&JSON.stringify(e)||""},L=s.a.oneOfType([s.a.string,s.a.node]),D=s.a.oneOfType([s.a.string,s.a.number]),j=1,I=function(e,t){var n=e.inputValue,r=e.isPseudoFocused,a=e.isFocused,o=t.onSelectResetsInput;return!n||!o&&!(!a&&r||a&&!r)},R=function(e,t,n){var r=e.inputValue,a=e.isPseudoFocused,o=e.isFocused,i=t.onSelectResetsInput;return!r||!i&&!n&&!a&&!o},z=function(e,t){var n="undefined"===typeof e?"undefined":_(e);if("string"!==n&&"number"!==n&&"boolean"!==n)return e;var r=t.options,a=t.valueKey;if(r)for(var o=0;o<r.length;o++)if(String(r[o][a])===String(e))return r[o]},N=function(e,t){return!e||(t?0===e.length:0===Object.keys(e).length)},F=function(e){function t(e){w(this,t);var n=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return["clearValue","focusOption","getOptionLabel","handleInputBlur","handleInputChange","handleInputFocus","handleInputValueChange","handleKeyDown","handleMenuScroll","handleMouseDown","handleMouseDownOnArrow","handleMouseDownOnMenu","handleTouchEnd","handleTouchEndClearValue","handleTouchMove","handleTouchOutside","handleTouchStart","handleValueClick","onOptionRef","removeValue","selectValue"].forEach((function(e){return n[e]=n[e].bind(n)})),n.state={inputValue:"",isFocused:!1,isOpen:!1,isPseudoFocused:!1,required:!1},n}return O(t,e),k(t,[{key:"componentWillMount",value:function(){this._instancePrefix="react-select-"+(this.props.instanceId||++j)+"-";var e=this.getValueArray(this.props.value);this.props.required&&this.setState({required:N(e[0],this.props.multi)})}},{key:"componentDidMount",value:function(){"undefined"!==typeof this.props.autofocus&&"undefined"!==typeof console&&console.warn("Warning: The autofocus prop has changed to autoFocus, support will be removed after react-select@1.0"),(this.props.autoFocus||this.props.autofocus)&&this.focus()}},{key:"componentWillReceiveProps",value:function(e){var t=this.getValueArray(e.value,e);e.required?this.setState({required:N(t[0],e.multi)}):this.props.required&&this.setState({required:!1}),this.state.inputValue&&this.props.value!==e.value&&e.onSelectResetsInput&&this.setState({inputValue:this.handleInputValueChange("")})}},{key:"componentDidUpdate",value:function(e,t){if(this.menu&&this.focused&&this.state.isOpen&&!this.hasScrolledToOption){var n=Object(f.findDOMNode)(this.focused),r=Object(f.findDOMNode)(this.menu),a=r.scrollTop,o=a+r.offsetHeight,i=n.offsetTop,l=i+n.offsetHeight;(a>i||o<l)&&(r.scrollTop=n.offsetTop),this.hasScrolledToOption=!0}else this.state.isOpen||(this.hasScrolledToOption=!1);if(this._scrollToFocusedOptionOnUpdate&&this.focused&&this.menu){this._scrollToFocusedOptionOnUpdate=!1;var s=Object(f.findDOMNode)(this.focused),u=Object(f.findDOMNode)(this.menu),c=s.getBoundingClientRect(),p=u.getBoundingClientRect();c.bottom>p.bottom?u.scrollTop=s.offsetTop+s.clientHeight-u.offsetHeight:c.top<p.top&&(u.scrollTop=s.offsetTop)}if(this.props.scrollMenuIntoView&&this.menuContainer){var d=this.menuContainer.getBoundingClientRect();window.innerHeight<d.bottom+this.props.menuBuffer&&window.scrollBy(0,d.bottom+this.props.menuBuffer-window.innerHeight)}if(e.disabled!==this.props.disabled&&(this.setState({isFocused:!1}),this.closeMenu()),t.isOpen!==this.state.isOpen){this.toggleTouchOutsideEvent(this.state.isOpen);var h=this.state.isOpen?this.props.onOpen:this.props.onClose;h&&h()}}},{key:"componentWillUnmount",value:function(){this.toggleTouchOutsideEvent(!1)}},{key:"toggleTouchOutsideEvent",value:function(e){var t=e?document.addEventListener?"addEventListener":"attachEvent":document.removeEventListener?"removeEventListener":"detachEvent",n=document.addEventListener?"":"on";document[t](n+"touchstart",this.handleTouchOutside),document[t](n+"mousedown",this.handleTouchOutside)}},{key:"handleTouchOutside",value:function(e){this.wrapper&&!this.wrapper.contains(e.target)&&this.closeMenu()}},{key:"focus",value:function(){this.input&&this.input.focus()}},{key:"blurInput",value:function(){this.input&&this.input.blur()}},{key:"handleTouchMove",value:function(){this.dragging=!0}},{key:"handleTouchStart",value:function(){this.dragging=!1}},{key:"handleTouchEnd",value:function(e){this.dragging||this.handleMouseDown(e)}},{key:"handleTouchEndClearValue",value:function(e){this.dragging||this.clearValue(e)}},{key:"handleMouseDown",value:function(e){if(!(this.props.disabled||"mousedown"===e.type&&0!==e.button)){if("INPUT"===e.target.tagName)return void(this.state.isFocused?this.state.isOpen||this.setState({isOpen:!0,isPseudoFocused:!1,focusedOption:null}):(this._openAfterFocus=this.props.openOnClick,this.focus()));if(e.preventDefault(),!this.props.searchable)return this.focus(),this.setState({isOpen:!this.state.isOpen,focusedOption:null});if(this.state.isFocused){this.focus();var t=this.input,n=!0;"function"===typeof t.getInput&&(t=t.getInput()),t.value="",this._focusAfterClear&&(n=!1,this._focusAfterClear=!1),this.setState({isOpen:n,isPseudoFocused:!1,focusedOption:null})}else this._openAfterFocus=this.props.openOnClick,this.focus(),this.setState({focusedOption:null})}}},{key:"handleMouseDownOnArrow",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(this.state.isOpen?(e.stopPropagation(),e.preventDefault(),this.closeMenu()):this.setState({isOpen:!0}))}},{key:"handleMouseDownOnMenu",value:function(e){this.props.disabled||"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this._openAfterFocus=!0,this.focus())}},{key:"closeMenu",value:function(){this.props.onCloseResetsInput?this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}):this.setState({isOpen:!1,isPseudoFocused:this.state.isFocused&&!this.props.multi}),this.hasScrolledToOption=!1}},{key:"handleInputFocus",value:function(e){if(!this.props.disabled){var t=this.state.isOpen||this._openAfterFocus||this.props.openOnFocus;t=!this._focusAfterClear&&t,this.props.onFocus&&this.props.onFocus(e),this.setState({isFocused:!0,isOpen:!!t}),this._focusAfterClear=!1,this._openAfterFocus=!1}}},{key:"handleInputBlur",value:function(e){if(!this.menu||this.menu!==document.activeElement&&!this.menu.contains(document.activeElement)){this.props.onBlur&&this.props.onBlur(e);var t={isFocused:!1,isOpen:!1,isPseudoFocused:!1};this.props.onBlurResetsInput&&(t.inputValue=this.handleInputValueChange("")),this.setState(t)}else this.focus()}},{key:"handleInputChange",value:function(e){var t=e.target.value;this.state.inputValue!==e.target.value&&(t=this.handleInputValueChange(t)),this.setState({inputValue:t,isOpen:!0,isPseudoFocused:!1})}},{key:"setInputValue",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==("undefined"===typeof t?"undefined":_(t))&&(e=""+t)}this.setState({inputValue:e})}},{key:"handleInputValueChange",value:function(e){if(this.props.onInputChange){var t=this.props.onInputChange(e);null!=t&&"object"!==("undefined"===typeof t?"undefined":_(t))&&(e=""+t)}return e}},{key:"handleKeyDown",value:function(e){if(!this.props.disabled&&("function"!==typeof this.props.onInputKeyDown||(this.props.onInputKeyDown(e),!e.defaultPrevented)))switch(e.keyCode){case 8:!this.state.inputValue&&this.props.backspaceRemoves&&(e.preventDefault(),this.popValue());break;case 9:if(e.shiftKey||!this.state.isOpen||!this.props.tabSelectsValue)break;e.preventDefault(),this.selectFocusedOption();break;case 13:e.preventDefault(),e.stopPropagation(),this.state.isOpen?this.selectFocusedOption():this.focusNextOption();break;case 27:e.preventDefault(),this.state.isOpen?(this.closeMenu(),e.stopPropagation()):this.props.clearable&&this.props.escapeClearsValue&&(this.clearValue(e),e.stopPropagation());break;case 32:if(this.props.searchable)break;if(e.preventDefault(),!this.state.isOpen){this.focusNextOption();break}e.stopPropagation(),this.selectFocusedOption();break;case 38:e.preventDefault(),this.focusPreviousOption();break;case 40:e.preventDefault(),this.focusNextOption();break;case 33:e.preventDefault(),this.focusPageUpOption();break;case 34:e.preventDefault(),this.focusPageDownOption();break;case 35:if(e.shiftKey)break;e.preventDefault(),this.focusEndOption();break;case 36:if(e.shiftKey)break;e.preventDefault(),this.focusStartOption();break;case 46:!this.state.inputValue&&this.props.deleteRemoves&&(e.preventDefault(),this.popValue())}}},{key:"handleValueClick",value:function(e,t){this.props.onValueClick&&this.props.onValueClick(e,t)}},{key:"handleMenuScroll",value:function(e){if(this.props.onMenuScrollToBottom){var t=e.target;t.scrollHeight>t.offsetHeight&&t.scrollHeight-t.offsetHeight-t.scrollTop<=0&&this.props.onMenuScrollToBottom()}}},{key:"getOptionLabel",value:function(e){return e[this.props.labelKey]}},{key:"getValueArray",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n="object"===("undefined"===typeof t?"undefined":_(t))?t:this.props;if(n.multi){if("string"===typeof e&&(e=e.split(n.delimiter)),!Array.isArray(e)){if(null===e||void 0===e)return[];e=[e]}return e.map((function(e){return z(e,n)})).filter((function(e){return e}))}var r=z(e,n);return r?[r]:[]}},{key:"setValue",value:function(e){var t=this;if(this.props.autoBlur&&this.blurInput(),this.props.required){var n=N(e,this.props.multi);this.setState({required:n})}this.props.simpleValue&&e&&(e=this.props.multi?e.map((function(e){return e[t.props.valueKey]})).join(this.props.delimiter):e[this.props.valueKey]),this.props.onChange&&this.props.onChange(e)}},{key:"selectValue",value:function(e){var t=this;this.props.closeOnSelect&&(this.hasScrolledToOption=!1);var n=this.props.onSelectResetsInput?"":this.state.inputValue;this.props.multi?this.setState({focusedIndex:null,inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect},(function(){t.getValueArray(t.props.value).some((function(n){return n[t.props.valueKey]===e[t.props.valueKey]}))?t.removeValue(e):t.addValue(e)})):this.setState({inputValue:this.handleInputValueChange(n),isOpen:!this.props.closeOnSelect,isPseudoFocused:this.state.isFocused},(function(){t.setValue(e)}))}},{key:"addValue",value:function(e){var t=this.getValueArray(this.props.value),n=this._visibleOptions.filter((function(e){return!e.disabled})),r=n.indexOf(e);this.setValue(t.concat(e)),this.props.closeOnSelect&&(n.length-1===r?this.focusOption(n[r-1]):n.length>r&&this.focusOption(n[r+1]))}},{key:"popValue",value:function(){var e=this.getValueArray(this.props.value);e.length&&!1!==e[e.length-1].clearableValue&&this.setValue(this.props.multi?e.slice(0,e.length-1):null)}},{key:"removeValue",value:function(e){var t=this,n=this.getValueArray(this.props.value);this.setValue(n.filter((function(n){return n[t.props.valueKey]!==e[t.props.valueKey]}))),this.focus()}},{key:"clearValue",value:function(e){e&&"mousedown"===e.type&&0!==e.button||(e.preventDefault(),this.setValue(this.getResetValue()),this.setState({inputValue:this.handleInputValueChange(""),isOpen:!1},this.focus),this._focusAfterClear=!0)}},{key:"getResetValue",value:function(){return void 0!==this.props.resetValue?this.props.resetValue:this.props.multi?[]:null}},{key:"focusOption",value:function(e){this.setState({focusedOption:e})}},{key:"focusNextOption",value:function(){this.focusAdjacentOption("next")}},{key:"focusPreviousOption",value:function(){this.focusAdjacentOption("previous")}},{key:"focusPageUpOption",value:function(){this.focusAdjacentOption("page_up")}},{key:"focusPageDownOption",value:function(){this.focusAdjacentOption("page_down")}},{key:"focusStartOption",value:function(){this.focusAdjacentOption("start")}},{key:"focusEndOption",value:function(){this.focusAdjacentOption("end")}},{key:"focusAdjacentOption",value:function(e){var t=this._visibleOptions.map((function(e,t){return{option:e,index:t}})).filter((function(e){return!e.option.disabled}));if(this._scrollToFocusedOptionOnUpdate=!0,!this.state.isOpen){var n={focusedOption:this._focusedOption||(t.length?t["next"===e?0:t.length-1].option:null),isOpen:!0};return this.props.onSelectResetsInput&&(n.inputValue=""),void this.setState(n)}if(t.length){for(var r=-1,a=0;a<t.length;a++)if(this._focusedOption===t[a].option){r=a;break}if("next"===e&&-1!==r)r=(r+1)%t.length;else if("previous"===e)r>0?r-=1:r=t.length-1;else if("start"===e)r=0;else if("end"===e)r=t.length-1;else if("page_up"===e){var o=r-this.props.pageSize;r=o<0?0:o}else if("page_down"===e){var i=r+this.props.pageSize;r=i>t.length-1?t.length-1:i}-1===r&&(r=0),this.setState({focusedIndex:t[r].index,focusedOption:t[r].option})}}},{key:"getFocusedOption",value:function(){return this._focusedOption}},{key:"selectFocusedOption",value:function(){if(this._focusedOption)return this.selectValue(this._focusedOption)}},{key:"renderLoading",value:function(){if(this.props.isLoading)return c.a.createElement("span",{className:"Select-loading-zone","aria-hidden":"true"},c.a.createElement("span",{className:"Select-loading"}))}},{key:"renderValue",value:function(e,t){var n=this,r=this.props.valueRenderer||this.getOptionLabel,a=this.props.valueComponent;if(!e.length)return R(this.state,this.props,t)?c.a.createElement("div",{className:"Select-placeholder"},this.props.placeholder):null;var o=this.props.onValueClick?this.handleValueClick:null;return this.props.multi?e.map((function(t,i){return c.a.createElement(a,{disabled:n.props.disabled||!1===t.clearableValue,id:n._instancePrefix+"-value-"+i,instancePrefix:n._instancePrefix,key:"value-"+i+"-"+t[n.props.valueKey],onClick:o,onRemove:n.removeValue,placeholder:n.props.placeholder,value:t,values:e},r(t,i),c.a.createElement("span",{className:"Select-aria-only"}," "))})):I(this.state,this.props)?(t&&(o=null),c.a.createElement(a,{disabled:this.props.disabled,id:this._instancePrefix+"-value-item",instancePrefix:this._instancePrefix,onClick:o,placeholder:this.props.placeholder,value:e[0]},r(e[0]))):void 0}},{key:"renderInput",value:function(e,t){var n,r=this,o=i()("Select-input",this.props.inputProps.className),l=this.state.isOpen,s=i()((n={},T(n,this._instancePrefix+"-list",l),T(n,this._instancePrefix+"-backspace-remove-message",this.props.multi&&!this.props.disabled&&this.state.isFocused&&!this.state.inputValue),n)),u=this.state.inputValue;!u||this.props.onSelectResetsInput||this.state.isFocused||(u="");var f=E({},this.props.inputProps,{"aria-activedescendant":l?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-describedby":this.props["aria-describedby"],"aria-expanded":""+l,"aria-haspopup":""+l,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-owns":s,onBlur:this.handleInputBlur,onChange:this.handleInputChange,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",required:this.state.required,tabIndex:this.props.tabIndex,value:u});if(this.props.inputRenderer)return this.props.inputRenderer(f);if(this.props.disabled||!this.props.searchable){var p=M(this.props.inputProps,[]),d=i()(T({},this._instancePrefix+"-list",l));return c.a.createElement("div",E({},p,{"aria-expanded":l,"aria-owns":d,"aria-activedescendant":l?this._instancePrefix+"-option-"+t:this._instancePrefix+"-value","aria-disabled":""+this.props.disabled,"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],className:o,onBlur:this.handleInputBlur,onFocus:this.handleInputFocus,ref:function(e){return r.input=e},role:"combobox",style:{border:0,width:1,display:"inline-block"},tabIndex:this.props.tabIndex||0}))}return this.props.autosize?c.a.createElement(a.a,E({id:this.props.id},f,{className:o,minWidth:"5"})):c.a.createElement("div",{className:o,key:"input-wrap",style:{display:"inline-block"}},c.a.createElement("input",E({id:this.props.id},f)))}},{key:"renderClear",value:function(){var e=this.getValueArray(this.props.value);if(this.props.clearable&&e.length&&!this.props.disabled&&!this.props.isLoading){var t=this.props.multi?this.props.clearAllText:this.props.clearValueText,n=this.props.clearRenderer();return c.a.createElement("span",{"aria-label":t,className:"Select-clear-zone",onMouseDown:this.clearValue,onTouchEnd:this.handleTouchEndClearValue,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,title:t},n)}}},{key:"renderArrow",value:function(){if(this.props.arrowRenderer){var e=this.handleMouseDownOnArrow,t=this.state.isOpen,n=this.props.arrowRenderer({onMouseDown:e,isOpen:t});return n?c.a.createElement("span",{className:"Select-arrow-zone",onMouseDown:e},n):null}}},{key:"filterOptions",value:function(e){var t=this.state.inputValue,n=this.props.options||[];return this.props.filterOptions?("function"===typeof this.props.filterOptions?this.props.filterOptions:g)(n,t,e,{filterOption:this.props.filterOption,ignoreAccents:this.props.ignoreAccents,ignoreCase:this.props.ignoreCase,labelKey:this.props.labelKey,matchPos:this.props.matchPos,matchProp:this.props.matchProp,trimFilter:this.props.trimFilter,valueKey:this.props.valueKey}):n}},{key:"onOptionRef",value:function(e,t){t&&(this.focused=e)}},{key:"renderMenu",value:function(e,t,n){return e&&e.length?this.props.menuRenderer({focusedOption:n,focusOption:this.focusOption,inputValue:this.state.inputValue,instancePrefix:this._instancePrefix,labelKey:this.props.labelKey,onFocus:this.focusOption,onOptionRef:this.onOptionRef,onSelect:this.selectValue,optionClassName:this.props.optionClassName,optionComponent:this.props.optionComponent,optionRenderer:this.props.optionRenderer||this.getOptionLabel,options:e,removeValue:this.removeValue,selectValue:this.selectValue,valueArray:t,valueKey:this.props.valueKey}):this.props.noResultsText?c.a.createElement("div",{className:"Select-noresults"},this.props.noResultsText):null}},{key:"renderHiddenField",value:function(e){var t=this;if(this.props.name){if(this.props.joinValues){var n=e.map((function(e){return P(e[t.props.valueKey])})).join(this.props.delimiter);return c.a.createElement("input",{disabled:this.props.disabled,name:this.props.name,ref:function(e){return t.value=e},type:"hidden",value:n})}return e.map((function(e,n){return c.a.createElement("input",{disabled:t.props.disabled,key:"hidden."+n,name:t.props.name,ref:"value"+n,type:"hidden",value:P(e[t.props.valueKey])})}))}}},{key:"getFocusableOptionIndex",value:function(e){var t=this._visibleOptions;if(!t.length)return null;var n=this.props.valueKey,r=this.state.focusedOption||e;if(r&&!r.disabled){var a=-1;if(t.some((function(e,t){var o=e[n]===r[n];return o&&(a=t),o})),-1!==a)return a}for(var o=0;o<t.length;o++)if(!t[o].disabled)return o;return null}},{key:"renderOuter",value:function(e,t,n){var r=this,a=this.renderMenu(e,t,n);return a?c.a.createElement("div",{ref:function(e){return r.menuContainer=e},className:"Select-menu-outer",style:this.props.menuContainerStyle},c.a.createElement("div",{className:"Select-menu",id:this._instancePrefix+"-list",onMouseDown:this.handleMouseDownOnMenu,onScroll:this.handleMenuScroll,ref:function(e){return r.menu=e},role:"listbox",style:this.props.menuStyle,tabIndex:-1},a)):null}},{key:"render",value:function(){var e=this,t=this.getValueArray(this.props.value),n=this._visibleOptions=this.filterOptions(this.props.multi&&this.props.removeSelected?t:null),r=this.state.isOpen;this.props.multi&&!n.length&&t.length&&!this.state.inputValue&&(r=!1);var a=this.getFocusableOptionIndex(t[0]),o=null;o=this._focusedOption=null!==a?n[a]:null;var l=i()("Select",this.props.className,{"has-value":t.length,"is-clearable":this.props.clearable,"is-disabled":this.props.disabled,"is-focused":this.state.isFocused,"is-loading":this.props.isLoading,"is-open":r,"is-pseudo-focused":this.state.isPseudoFocused,"is-searchable":this.props.searchable,"Select--multi":this.props.multi,"Select--rtl":this.props.rtl,"Select--single":!this.props.multi}),s=null;return this.props.multi&&!this.props.disabled&&t.length&&!this.state.inputValue&&this.state.isFocused&&this.props.backspaceRemoves&&(s=c.a.createElement("span",{id:this._instancePrefix+"-backspace-remove-message",className:"Select-aria-only","aria-live":"assertive"},this.props.backspaceToRemoveMessage.replace("{label}",t[t.length-1][this.props.labelKey]))),c.a.createElement("div",{ref:function(t){return e.wrapper=t},className:l,style:this.props.wrapperStyle},this.renderHiddenField(t),c.a.createElement("div",{ref:function(t){return e.control=t},className:"Select-control",onKeyDown:this.handleKeyDown,onMouseDown:this.handleMouseDown,onTouchEnd:this.handleTouchEnd,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,style:this.props.style},c.a.createElement("div",{className:"Select-multi-value-wrapper",id:this._instancePrefix+"-value"},this.renderValue(t,r),this.renderInput(t,a)),s,this.renderLoading(),this.renderClear(),this.renderArrow()),r?this.renderOuter(n,t,o):null)}}]),t}(c.a.Component);F.propTypes={"aria-describedby":s.a.string,"aria-label":s.a.string,"aria-labelledby":s.a.string,arrowRenderer:s.a.func,autoBlur:s.a.bool,autoFocus:s.a.bool,autofocus:s.a.bool,autosize:s.a.bool,backspaceRemoves:s.a.bool,backspaceToRemoveMessage:s.a.string,className:s.a.string,clearAllText:L,clearRenderer:s.a.func,clearValueText:L,clearable:s.a.bool,closeOnSelect:s.a.bool,deleteRemoves:s.a.bool,delimiter:s.a.string,disabled:s.a.bool,escapeClearsValue:s.a.bool,filterOption:s.a.func,filterOptions:s.a.any,id:s.a.string,ignoreAccents:s.a.bool,ignoreCase:s.a.bool,inputProps:s.a.object,inputRenderer:s.a.func,instanceId:s.a.string,isLoading:s.a.bool,joinValues:s.a.bool,labelKey:s.a.string,matchPos:s.a.string,matchProp:s.a.string,menuBuffer:s.a.number,menuContainerStyle:s.a.object,menuRenderer:s.a.func,menuStyle:s.a.object,multi:s.a.bool,name:s.a.string,noResultsText:L,onBlur:s.a.func,onBlurResetsInput:s.a.bool,onChange:s.a.func,onClose:s.a.func,onCloseResetsInput:s.a.bool,onFocus:s.a.func,onInputChange:s.a.func,onInputKeyDown:s.a.func,onMenuScrollToBottom:s.a.func,onOpen:s.a.func,onSelectResetsInput:s.a.bool,onValueClick:s.a.func,openOnClick:s.a.bool,openOnFocus:s.a.bool,optionClassName:s.a.string,optionComponent:s.a.func,optionRenderer:s.a.func,options:s.a.array,pageSize:s.a.number,placeholder:L,removeSelected:s.a.bool,required:s.a.bool,resetValue:s.a.any,rtl:s.a.bool,scrollMenuIntoView:s.a.bool,searchable:s.a.bool,simpleValue:s.a.bool,style:s.a.object,tabIndex:D,tabSelectsValue:s.a.bool,trimFilter:s.a.bool,value:s.a.any,valueComponent:s.a.func,valueKey:s.a.string,valueRenderer:s.a.func,wrapperStyle:s.a.object},F.defaultProps={arrowRenderer:p,autosize:!0,backspaceRemoves:!0,backspaceToRemoveMessage:"Press backspace to remove {label}",clearable:!0,clearAllText:"Clear all",clearRenderer:d,clearValueText:"Clear value",closeOnSelect:!0,deleteRemoves:!0,delimiter:",",disabled:!1,escapeClearsValue:!0,filterOptions:g,ignoreAccents:!0,ignoreCase:!0,inputProps:{},isLoading:!1,joinValues:!1,labelKey:"label",matchPos:"any",matchProp:"any",menuBuffer:0,menuRenderer:b,multi:!1,noResultsText:"No results found",onBlurResetsInput:!0,onCloseResetsInput:!0,onSelectResetsInput:!0,openOnClick:!0,optionComponent:C,pageSize:5,placeholder:"Select...",removeSelected:!0,required:!1,rtl:!1,scrollMenuIntoView:!0,searchable:!0,simpleValue:!1,tabSelectsValue:!0,trimFilter:!0,valueComponent:A,valueKey:"value"};var B={autoload:s.a.bool.isRequired,cache:s.a.any,children:s.a.func.isRequired,ignoreAccents:s.a.bool,ignoreCase:s.a.bool,loadOptions:s.a.func.isRequired,loadingPlaceholder:s.a.oneOfType([s.a.string,s.a.node]),multi:s.a.bool,noResultsText:s.a.oneOfType([s.a.string,s.a.node]),onChange:s.a.func,onInputChange:s.a.func,options:s.a.array.isRequired,placeholder:s.a.oneOfType([s.a.string,s.a.node]),searchPromptText:s.a.oneOfType([s.a.string,s.a.node]),value:s.a.any},V={},H=function(e){return c.a.createElement(F,e)},U={autoload:!0,cache:V,children:H,ignoreAccents:!0,ignoreCase:!0,loadingPlaceholder:"Loading...",options:[],searchPromptText:"Type to search"},W=function(e){function t(e,n){w(this,t);var r=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r._cache=e.cache===V?{}:e.cache,r.state={inputValue:"",isLoading:!1,options:e.options},r.onInputChange=r.onInputChange.bind(r),r}return O(t,e),k(t,[{key:"componentDidMount",value:function(){this.props.autoload&&this.loadOptions("")}},{key:"componentWillReceiveProps",value:function(e){e.options!==this.props.options&&this.setState({options:e.options})}},{key:"componentWillUnmount",value:function(){this._callback=null}},{key:"loadOptions",value:function(e){var t=this,n=this.props.loadOptions,r=this._cache;if(r&&Object.prototype.hasOwnProperty.call(r,e))return this._callback=null,void this.setState({isLoading:!1,options:r[e]});var a=function n(a,o){var i=o&&o.options||[];r&&(r[e]=i),n===t._callback&&(t._callback=null,t.setState({isLoading:!1,options:i}))};this._callback=a;var o=n(e,a);o&&o.then((function(e){return a(0,e)}),(function(e){return a()})),this._callback&&!this.state.isLoading&&this.setState({isLoading:!0})}},{key:"onInputChange",value:function(e){var t=this.props,n=t.ignoreAccents,r=t.ignoreCase,a=t.onInputChange,o=e;if(a){var i=a(o);null!=i&&"object"!==("undefined"===typeof i?"undefined":_(i))&&(o=""+i)}var l=o;return n&&(l=v(l)),r&&(l=l.toLowerCase()),this.setState({inputValue:o}),this.loadOptions(l),o}},{key:"noResultsText",value:function(){var e=this.props,t=e.loadingPlaceholder,n=e.noResultsText,r=e.searchPromptText,a=this.state,o=a.inputValue;return a.isLoading?t:o&&n?n:r}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.loadingPlaceholder,a=t.placeholder,o=this.state,i=o.isLoading,l=o.options,s={noResultsText:this.noResultsText(),placeholder:i?r:a,options:i&&r?[]:l,ref:function(t){return e.select=t}};return n(E({},this.props,s,{isLoading:i,onInputChange:this.onInputChange}))}}]),t}(u.Component);W.propTypes=B,W.defaultProps=U;var q=function(e){function t(e,n){w(this,t);var r=S(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.filterOptions=r.filterOptions.bind(r),r.menuRenderer=r.menuRenderer.bind(r),r.onInputKeyDown=r.onInputKeyDown.bind(r),r.onInputChange=r.onInputChange.bind(r),r.onOptionSelect=r.onOptionSelect.bind(r),r}return O(t,e),k(t,[{key:"createNewOption",value:function(){var e=this.props,t=e.isValidNewOption,n=e.newOptionCreator,r=e.onNewOptionClick,a=e.options,o=void 0===a?[]:a;if(t({label:this.inputValue})){var i=n({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey});this.isOptionUnique({option:i,options:o})&&(r?r(i):(o.unshift(i),this.select.selectValue(i)))}}},{key:"filterOptions",value:function(){var e=this.props,t=e.filterOptions,n=e.isValidNewOption,r=e.promptTextCreator,a=e.showNewOptionAtTop,o=(arguments.length<=2?void 0:arguments[2])||[],i=t.apply(void 0,arguments)||[];if(n({label:this.inputValue})){var l=this.props.newOptionCreator,s=l({label:this.inputValue,labelKey:this.labelKey,valueKey:this.valueKey});if(this.isOptionUnique({option:s,options:o.concat(i)})){var u=r(this.inputValue);this._createPlaceholderOption=l({label:u,labelKey:this.labelKey,valueKey:this.valueKey}),a?i.unshift(this._createPlaceholderOption):i.push(this._createPlaceholderOption)}}return i}},{key:"isOptionUnique",value:function(e){var t=e.option,n=e.options,r=this.props.isOptionUnique;return n=n||this.props.options,r({labelKey:this.labelKey,option:t,options:n,valueKey:this.valueKey})}},{key:"menuRenderer",value:function(e){return(0,this.props.menuRenderer)(E({},e,{onSelect:this.onOptionSelect,selectValue:this.onOptionSelect}))}},{key:"onInputChange",value:function(e){var t=this.props.onInputChange;return this.inputValue=e,t&&(this.inputValue=t(e)),this.inputValue}},{key:"onInputKeyDown",value:function(e){var t=this.props,n=t.shouldKeyDownEventCreateNewOption,r=t.onInputKeyDown,a=this.select.getFocusedOption();a&&a===this._createPlaceholderOption&&n(e)?(this.createNewOption(),e.preventDefault()):r&&r(e)}},{key:"onOptionSelect",value:function(e){e===this._createPlaceholderOption?this.createNewOption():this.select.selectValue(e)}},{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this,t=this.props,n=t.ref,r=M(t,["ref"]),a=this.props.children;return a||(a=$),a(E({},r,{allowCreate:!0,filterOptions:this.filterOptions,menuRenderer:this.menuRenderer,onInputChange:this.onInputChange,onInputKeyDown:this.onInputKeyDown,ref:function(t){e.select=t,t&&(e.labelKey=t.props.labelKey,e.valueKey=t.props.valueKey),n&&n(t)}}))}}]),t}(c.a.Component),$=function(e){return c.a.createElement(F,e)},G=function(e){var t=e.option,n=e.options,r=e.labelKey,a=e.valueKey;return!n||!n.length||0===n.filter((function(e){return e[r]===t[r]||e[a]===t[a]})).length},Y=function(e){return!!e.label},K=function(e){var t=e.label,n=e.labelKey,r=e.valueKey,a={};return a[r]=t,a[n]=t,a.className="Select-create-option-placeholder",a},X=function(e){return'Create option "'+e+'"'},Z=function(e){switch(e.keyCode){case 9:case 13:case 188:return!0;default:return!1}};q.isOptionUnique=G,q.isValidNewOption=Y,q.newOptionCreator=K,q.promptTextCreator=X,q.shouldKeyDownEventCreateNewOption=Z,q.defaultProps={filterOptions:g,isOptionUnique:G,isValidNewOption:Y,menuRenderer:b,newOptionCreator:K,promptTextCreator:X,shouldKeyDownEventCreateNewOption:Z,showNewOptionAtTop:!0},q.propTypes={children:s.a.func,filterOptions:s.a.any,isOptionUnique:s.a.func,isValidNewOption:s.a.func,menuRenderer:s.a.any,newOptionCreator:s.a.func,onInputChange:s.a.func,onInputKeyDown:s.a.func,onNewOptionClick:s.a.func,options:s.a.array,promptTextCreator:s.a.func,ref:s.a.func,shouldKeyDownEventCreateNewOption:s.a.func,showNewOptionAtTop:s.a.bool};var J=function(e){function t(){return w(this,t),S(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return O(t,e),k(t,[{key:"focus",value:function(){this.select.focus()}},{key:"render",value:function(){var e=this;return c.a.createElement(W,this.props,(function(t){var n=t.ref,r=M(t,["ref"]),a=n;return c.a.createElement(q,r,(function(t){var n=t.ref,r=M(t,["ref"]),o=n;return e.props.children(E({},r,{ref:function(t){o(t),a(t),e.select=t}}))}))}))}}]),t}(c.a.Component),Q=function(e){return c.a.createElement(F,e)};J.propTypes={children:s.a.func.isRequired},J.defaultProps={children:Q},F.Async=W,F.AsyncCreatable=J,F.Creatable=q,F.Value=A,F.Option=C,t.default=F},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(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}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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}function l(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)}Object.defineProperty(t,"__esModule",{value:!0});var s=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},u=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}}(),c=n(0),f=r(c),p=n(1),d=r(p),h={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},v=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],m=function(e){return v.forEach((function(t){return delete e[t]})),e},y=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},g=!("undefined"===typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),b=function(){return g?"_"+Math.random().toString(36).substr(2,12):void 0},x=function(e){function t(e){o(this,t);var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"===typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||b()},n}return l(t,e),u(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||b()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"===typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(y(e,this.sizer),this.placeHolderSizer&&y(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&"undefined"!==typeof this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0,e<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return g&&e?f.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!==e&&void 0!==e?e:t})),t=s({},this.props.style);t.display||(t.display="inline-block");var n=s({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),r=a(this.props,[]);return m(r),r.className=this.props.inputClassName,r.id=this.state.inputId,r.style=n,f.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),f.default.createElement("input",s({},r,{ref:this.inputRef})),f.default.createElement("div",{ref:this.sizerRef,style:h},e),this.props.placeholder?f.default.createElement("div",{ref:this.placeHolderSizerRef,style:h},this.props.placeholder):null)}}]),t}(c.Component);x.propTypes={className:d.default.string,defaultValue:d.default.any,extraWidth:d.default.oneOfType([d.default.number,d.default.string]),id:d.default.string,injectStyles:d.default.bool,inputClassName:d.default.string,inputRef:d.default.func,inputStyle:d.default.object,minWidth:d.default.oneOfType([d.default.number,d.default.string]),onAutosize:d.default.func,onChange:d.default.func,placeholder:d.default.string,placeholderIsMinWidth:d.default.bool,style:d.default.object,value:d.default.any},x.defaultProps={minWidth:1,injectStyles:!0},t.default=x},function(e,t,n){var r=n(180);"string"===typeof r&&(r=[[e.i,r,""]]);var a={transform:void 0};n(54)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(53)(void 0),t.push([e.i,"/**\n * React Select\n * ============\n * Created by Jed Watson and Joss Mackison for KeystoneJS, http://www.keystonejs.com/\n * https://twitter.com/jedwatson https://twitter.com/jossmackison https://twitter.com/keystonejs\n * MIT License: https://github.com/JedWatson/react-select\n*/\n.Select {\n position: relative;\n}\n.Select input::-webkit-contacts-auto-fill-button,\n.Select input::-webkit-credentials-auto-fill-button {\n display: none !important;\n}\n.Select input::-ms-clear {\n display: none !important;\n}\n.Select input::-ms-reveal {\n display: none !important;\n}\n.Select,\n.Select div,\n.Select input,\n.Select span {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n}\n.Select.is-disabled .Select-arrow-zone {\n cursor: default;\n pointer-events: none;\n opacity: 0.35;\n}\n.Select.is-disabled > .Select-control {\n background-color: #f9f9f9;\n}\n.Select.is-disabled > .Select-control:hover {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.Select.is-open > .Select-control {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n background: #fff;\n border-color: #b3b3b3 #ccc #d9d9d9;\n}\n.Select.is-open > .Select-control .Select-arrow {\n top: -2px;\n border-color: transparent transparent #999;\n border-width: 0 5px 5px;\n}\n.Select.is-searchable.is-open > .Select-control {\n cursor: text;\n}\n.Select.is-searchable.is-focused:not(.is-open) > .Select-control {\n cursor: text;\n}\n.Select.is-focused > .Select-control {\n background: #fff;\n}\n.Select.is-focused:not(.is-open) > .Select-control {\n border-color: #007eff;\n -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1);\n box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(0, 126, 255, 0.1);\n background: #fff;\n}\n.Select.has-value.is-clearable.Select--single > .Select-control .Select-value {\n padding-right: 42px;\n}\n.Select.has-value.Select--single > .Select-control .Select-value .Select-value-label,\n.Select.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value .Select-value-label {\n color: #333;\n}\n.Select.has-value.Select--single > .Select-control .Select-value a.Select-value-label,\n.Select.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label {\n cursor: pointer;\n text-decoration: none;\n}\n.Select.has-value.Select--single > .Select-control .Select-value a.Select-value-label:hover,\n.Select.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label:hover,\n.Select.has-value.Select--single > .Select-control .Select-value a.Select-value-label:focus,\n.Select.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label:focus {\n color: #007eff;\n outline: none;\n text-decoration: underline;\n}\n.Select.has-value.Select--single > .Select-control .Select-value a.Select-value-label:focus,\n.Select.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value a.Select-value-label:focus {\n background: #fff;\n}\n.Select.has-value.is-pseudo-focused .Select-input {\n opacity: 0;\n}\n.Select.is-open .Select-arrow,\n.Select .Select-arrow-zone:hover > .Select-arrow {\n border-top-color: #666;\n}\n.Select.Select--rtl {\n direction: rtl;\n text-align: right;\n}\n.Select-control {\n background-color: #fff;\n border-color: #d9d9d9 #ccc #b3b3b3;\n border-radius: 4px;\n border: 1px solid #ccc;\n color: #333;\n cursor: default;\n display: table;\n border-spacing: 0;\n border-collapse: separate;\n height: 36px;\n outline: none;\n overflow: hidden;\n position: relative;\n width: 100%;\n}\n.Select-control:hover {\n -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n}\n.Select-control .Select-input:focus {\n outline: none;\n background: #fff;\n}\n.Select-placeholder,\n.Select--single > .Select-control .Select-value {\n bottom: 0;\n color: #aaa;\n left: 0;\n line-height: 34px;\n padding-left: 10px;\n padding-right: 10px;\n position: absolute;\n right: 0;\n top: 0;\n max-width: 100%;\n overflow: hidden;\n -o-text-overflow: ellipsis;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.Select-input {\n height: 34px;\n padding-left: 10px;\n padding-right: 10px;\n vertical-align: middle;\n}\n.Select-input > input {\n width: 100%;\n background: none transparent;\n border: 0 none;\n -webkit-box-shadow: none;\n box-shadow: none;\n cursor: default;\n display: inline-block;\n font-family: inherit;\n font-size: inherit;\n margin: 0;\n outline: none;\n line-height: 17px;\n /* For IE 8 compatibility */\n padding: 8px 0 12px;\n /* For IE 8 compatibility */\n -webkit-appearance: none;\n}\n.is-focused .Select-input > input {\n cursor: text;\n}\n.has-value.is-pseudo-focused .Select-input {\n opacity: 0;\n}\n.Select-control:not(.is-searchable) > .Select-input {\n outline: none;\n}\n.Select-loading-zone {\n cursor: pointer;\n display: table-cell;\n position: relative;\n text-align: center;\n vertical-align: middle;\n width: 16px;\n}\n.Select-loading {\n -webkit-animation: Select-animation-spin 400ms infinite linear;\n animation: Select-animation-spin 400ms infinite linear;\n width: 16px;\n height: 16px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n border-radius: 50%;\n border: 2px solid #ccc;\n border-right-color: #333;\n display: inline-block;\n position: relative;\n vertical-align: middle;\n}\n.Select-clear-zone {\n -webkit-animation: Select-animation-fadeIn 200ms;\n animation: Select-animation-fadeIn 200ms;\n color: #999;\n cursor: pointer;\n display: table-cell;\n position: relative;\n text-align: center;\n vertical-align: middle;\n width: 17px;\n}\n.Select-clear-zone:hover {\n color: #D0021B;\n}\n.Select-clear {\n display: inline-block;\n font-size: 18px;\n line-height: 1;\n}\n.Select--multi .Select-clear-zone {\n width: 17px;\n}\n.Select-arrow-zone {\n cursor: pointer;\n display: table-cell;\n position: relative;\n text-align: center;\n vertical-align: middle;\n width: 25px;\n padding-right: 5px;\n}\n.Select--rtl .Select-arrow-zone {\n padding-right: 0;\n padding-left: 5px;\n}\n.Select-arrow {\n border-color: #999 transparent transparent;\n border-style: solid;\n border-width: 5px 5px 2.5px;\n display: inline-block;\n height: 0;\n width: 0;\n position: relative;\n}\n.Select-control > *:last-child {\n padding-right: 5px;\n}\n.Select--multi .Select-multi-value-wrapper {\n display: inline-block;\n}\n.Select .Select-aria-only {\n position: absolute;\n display: inline-block;\n height: 1px;\n width: 1px;\n margin: -1px;\n clip: rect(0, 0, 0, 0);\n overflow: hidden;\n float: left;\n}\n@-webkit-keyframes Select-animation-fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n@keyframes Select-animation-fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n.Select-menu-outer {\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n background-color: #fff;\n border: 1px solid #ccc;\n border-top-color: #e6e6e6;\n -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n margin-top: -1px;\n max-height: 200px;\n position: absolute;\n left: 0;\n top: 100%;\n width: 100%;\n z-index: 1;\n -webkit-overflow-scrolling: touch;\n}\n.Select-menu {\n max-height: 198px;\n overflow-y: auto;\n}\n.Select-option {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n background-color: #fff;\n color: #666666;\n cursor: pointer;\n display: block;\n padding: 8px 10px;\n}\n.Select-option:last-child {\n border-bottom-right-radius: 4px;\n border-bottom-left-radius: 4px;\n}\n.Select-option.is-selected {\n background-color: #f5faff;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 126, 255, 0.04);\n color: #333;\n}\n.Select-option.is-focused {\n background-color: #ebf5ff;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 126, 255, 0.08);\n color: #333;\n}\n.Select-option.is-disabled {\n color: #cccccc;\n cursor: default;\n}\n.Select-noresults {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #999999;\n cursor: default;\n display: block;\n padding: 8px 10px;\n}\n.Select--multi .Select-input {\n vertical-align: middle;\n margin-left: 10px;\n padding: 0;\n}\n.Select--multi.Select--rtl .Select-input {\n margin-left: 0;\n margin-right: 10px;\n}\n.Select--multi.has-value .Select-input {\n margin-left: 5px;\n}\n.Select--multi .Select-value {\n background-color: #ebf5ff;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 126, 255, 0.08);\n border-radius: 2px;\n border: 1px solid #c2e0ff;\n /* Fallback color for IE 8 */\n border: 1px solid rgba(0, 126, 255, 0.24);\n color: #007eff;\n display: inline-block;\n font-size: 0.9em;\n line-height: 1.4;\n margin-left: 5px;\n margin-top: 5px;\n vertical-align: top;\n}\n.Select--multi .Select-value-icon,\n.Select--multi .Select-value-label {\n display: inline-block;\n vertical-align: middle;\n}\n.Select--multi .Select-value-label {\n border-bottom-right-radius: 2px;\n border-top-right-radius: 2px;\n cursor: default;\n padding: 2px 5px;\n}\n.Select--multi a.Select-value-label {\n color: #007eff;\n cursor: pointer;\n text-decoration: none;\n}\n.Select--multi a.Select-value-label:hover {\n text-decoration: underline;\n}\n.Select--multi .Select-value-icon {\n cursor: pointer;\n border-bottom-left-radius: 2px;\n border-top-left-radius: 2px;\n border-right: 1px solid #c2e0ff;\n /* Fallback color for IE 8 */\n border-right: 1px solid rgba(0, 126, 255, 0.24);\n padding: 1px 5px 3px;\n}\n.Select--multi .Select-value-icon:hover,\n.Select--multi .Select-value-icon:focus {\n background-color: #d8eafd;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 113, 230, 0.08);\n color: #0071e6;\n}\n.Select--multi .Select-value-icon:active {\n background-color: #c2e0ff;\n /* Fallback color for IE 8 */\n background-color: rgba(0, 126, 255, 0.24);\n}\n.Select--multi.Select--rtl .Select-value {\n margin-left: 0;\n margin-right: 5px;\n}\n.Select--multi.Select--rtl .Select-value-icon {\n border-right: none;\n border-left: 1px solid #c2e0ff;\n /* Fallback color for IE 8 */\n border-left: 1px solid rgba(0, 126, 255, 0.24);\n}\n.Select--multi.is-disabled .Select-value {\n background-color: #fcfcfc;\n border: 1px solid #e3e3e3;\n color: #333;\n}\n.Select--multi.is-disabled .Select-value-icon {\n cursor: not-allowed;\n border-right: 1px solid #e3e3e3;\n}\n.Select--multi.is-disabled .Select-value-icon:hover,\n.Select--multi.is-disabled .Select-value-icon:focus,\n.Select--multi.is-disabled .Select-value-icon:active {\n background-color: #fcfcfc;\n}\n@keyframes Select-animation-spin {\n to {\n -webkit-transform: rotate(1turn);\n transform: rotate(1turn);\n }\n}\n@-webkit-keyframes Select-animation-spin {\n to {\n -webkit-transform: rotate(1turn);\n }\n}\n",""])},function(e,t){e.exports=function(e){var t="undefined"!==typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!==typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var a,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?e:(a=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(a)+")")}))}},function(e,t,n){var r=n(183);"string"===typeof r&&(r=[[e.i,r,""]]);var a={transform:void 0};n(54)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(53)(void 0),t.push([e.i,".rc-slider {\n position: relative;\n height: 14px;\n padding: 5px 0;\n width: 100%;\n border-radius: 6px;\n -ms-touch-action: none;\n touch-action: none;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-rail {\n position: absolute;\n width: 100%;\n background-color: #e9e9e9;\n height: 4px;\n border-radius: 6px;\n}\n.rc-slider-track {\n position: absolute;\n left: 0;\n height: 4px;\n border-radius: 6px;\n background-color: #abe2fb;\n}\n.rc-slider-handle {\n position: absolute;\n margin-left: -7px;\n margin-top: -5px;\n width: 14px;\n height: 14px;\n cursor: pointer;\n cursor: -webkit-grab;\n cursor: grab;\n border-radius: 50%;\n border: solid 2px #96dbfa;\n background-color: #fff;\n -ms-touch-action: pan-x;\n touch-action: pan-x;\n}\n.rc-slider-handle:focus {\n border-color: #57c5f7;\n -webkit-box-shadow: 0 0 0 5px #96dbfa;\n box-shadow: 0 0 0 5px #96dbfa;\n outline: none;\n}\n.rc-slider-handle-click-focused:focus {\n border-color: #96dbfa;\n -webkit-box-shadow: unset;\n box-shadow: unset;\n}\n.rc-slider-handle:hover {\n border-color: #57c5f7;\n}\n.rc-slider-handle:active {\n border-color: #57c5f7;\n -webkit-box-shadow: 0 0 5px #57c5f7;\n box-shadow: 0 0 5px #57c5f7;\n cursor: -webkit-grabbing;\n cursor: grabbing;\n}\n.rc-slider-mark {\n position: absolute;\n top: 18px;\n left: 0;\n width: 100%;\n font-size: 12px;\n}\n.rc-slider-mark-text {\n position: absolute;\n display: inline-block;\n vertical-align: middle;\n text-align: center;\n cursor: pointer;\n color: #999;\n}\n.rc-slider-mark-text-active {\n color: #666;\n}\n.rc-slider-step {\n position: absolute;\n width: 100%;\n height: 4px;\n background: transparent;\n}\n.rc-slider-dot {\n position: absolute;\n bottom: -2px;\n margin-left: -4px;\n width: 8px;\n height: 8px;\n border: 2px solid #e9e9e9;\n background-color: #fff;\n cursor: pointer;\n border-radius: 50%;\n vertical-align: middle;\n}\n.rc-slider-dot-active {\n border-color: #96dbfa;\n}\n.rc-slider-disabled {\n background-color: #e9e9e9;\n}\n.rc-slider-disabled .rc-slider-track {\n background-color: #ccc;\n}\n.rc-slider-disabled .rc-slider-handle,\n.rc-slider-disabled .rc-slider-dot {\n border-color: #ccc;\n -webkit-box-shadow: none;\n box-shadow: none;\n background-color: #fff;\n cursor: not-allowed;\n}\n.rc-slider-disabled .rc-slider-mark-text,\n.rc-slider-disabled .rc-slider-dot {\n cursor: not-allowed !important;\n}\n.rc-slider-vertical {\n width: 14px;\n height: 100%;\n padding: 0 5px;\n}\n.rc-slider-vertical .rc-slider-rail {\n height: 100%;\n width: 4px;\n}\n.rc-slider-vertical .rc-slider-track {\n left: 5px;\n bottom: 0;\n width: 4px;\n}\n.rc-slider-vertical .rc-slider-handle {\n margin-left: -5px;\n margin-bottom: -7px;\n -ms-touch-action: pan-y;\n touch-action: pan-y;\n}\n.rc-slider-vertical .rc-slider-mark {\n top: 0;\n left: 18px;\n height: 100%;\n}\n.rc-slider-vertical .rc-slider-step {\n height: 100%;\n width: 4px;\n}\n.rc-slider-vertical .rc-slider-dot {\n left: 2px;\n margin-bottom: -4px;\n}\n.rc-slider-vertical .rc-slider-dot:first-child {\n margin-bottom: -4px;\n}\n.rc-slider-vertical .rc-slider-dot:last-child {\n margin-bottom: -4px;\n}\n.rc-slider-tooltip-zoom-down-enter,\n.rc-slider-tooltip-zoom-down-appear {\n -webkit-animation-duration: .3s;\n animation-duration: .3s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n display: block !important;\n -webkit-animation-play-state: paused;\n animation-play-state: paused;\n}\n.rc-slider-tooltip-zoom-down-leave {\n -webkit-animation-duration: .3s;\n animation-duration: .3s;\n -webkit-animation-fill-mode: both;\n animation-fill-mode: both;\n display: block !important;\n -webkit-animation-play-state: paused;\n animation-play-state: paused;\n}\n.rc-slider-tooltip-zoom-down-enter.rc-slider-tooltip-zoom-down-enter-active,\n.rc-slider-tooltip-zoom-down-appear.rc-slider-tooltip-zoom-down-appear-active {\n -webkit-animation-name: rcSliderTooltipZoomDownIn;\n animation-name: rcSliderTooltipZoomDownIn;\n -webkit-animation-play-state: running;\n animation-play-state: running;\n}\n.rc-slider-tooltip-zoom-down-leave.rc-slider-tooltip-zoom-down-leave-active {\n -webkit-animation-name: rcSliderTooltipZoomDownOut;\n animation-name: rcSliderTooltipZoomDownOut;\n -webkit-animation-play-state: running;\n animation-play-state: running;\n}\n.rc-slider-tooltip-zoom-down-enter,\n.rc-slider-tooltip-zoom-down-appear {\n -webkit-transform: scale(0, 0);\n -ms-transform: scale(0, 0);\n transform: scale(0, 0);\n -webkit-animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);\n}\n.rc-slider-tooltip-zoom-down-leave {\n -webkit-animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);\n}\n@-webkit-keyframes rcSliderTooltipZoomDownIn {\n 0% {\n opacity: 0;\n -webkit-transform-origin: 50% 100%;\n transform-origin: 50% 100%;\n -webkit-transform: scale(0, 0);\n transform: scale(0, 0);\n }\n 100% {\n -webkit-transform-origin: 50% 100%;\n transform-origin: 50% 100%;\n -webkit-transform: scale(1, 1);\n transform: scale(1, 1);\n }\n}\n@keyframes rcSliderTooltipZoomDownIn {\n 0% {\n opacity: 0;\n -webkit-transform-origin: 50% 100%;\n transform-origin: 50% 100%;\n -webkit-transform: scale(0, 0);\n transform: scale(0, 0);\n }\n 100% {\n -webkit-transform-origin: 50% 100%;\n transform-origin: 50% 100%;\n -webkit-transform: scale(1, 1);\n transform: scale(1, 1);\n }\n}\n@-webkit-keyframes rcSliderTooltipZoomDownOut {\n 0% {\n -webkit-transform-origin: 50% 100%;\n transform-origin: 50% 100%;\n -webkit-transform: scale(1, 1);\n transform: scale(1, 1);\n }\n 100% {\n opacity: 0;\n -webkit-transform-origin: 50% 100%;\n transform-origin: 50% 100%;\n -webkit-transform: scale(0, 0);\n transform: scale(0, 0);\n }\n}\n@keyframes rcSliderTooltipZoomDownOut {\n 0% {\n -webkit-transform-origin: 50% 100%;\n transform-origin: 50% 100%;\n -webkit-transform: scale(1, 1);\n transform: scale(1, 1);\n }\n 100% {\n opacity: 0;\n -webkit-transform-origin: 50% 100%;\n transform-origin: 50% 100%;\n -webkit-transform: scale(0, 0);\n transform: scale(0, 0);\n }\n}\n.rc-slider-tooltip {\n position: absolute;\n left: -9999px;\n top: -9999px;\n visibility: visible;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-tooltip * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n}\n.rc-slider-tooltip-hidden {\n display: none;\n}\n.rc-slider-tooltip-placement-top {\n padding: 4px 0 8px 0;\n}\n.rc-slider-tooltip-inner {\n padding: 6px 2px;\n min-width: 24px;\n height: 24px;\n font-size: 12px;\n line-height: 1;\n color: #fff;\n text-align: center;\n text-decoration: none;\n background-color: #6c6c6c;\n border-radius: 6px;\n -webkit-box-shadow: 0 0 4px #d9d9d9;\n box-shadow: 0 0 4px #d9d9d9;\n}\n.rc-slider-tooltip-arrow {\n position: absolute;\n width: 0;\n height: 0;\n border-color: transparent;\n border-style: solid;\n}\n.rc-slider-tooltip-placement-top .rc-slider-tooltip-arrow {\n bottom: 4px;\n left: 50%;\n margin-left: -4px;\n border-width: 4px 4px 0;\n border-top-color: #6c6c6c;\n}\n",""])},function(e,t,n){var r=n(185);"string"===typeof r&&(r=[[e.i,r,""]]);var a={transform:void 0};n(54)(r,a),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(53)(void 0),t.push([e.i,'.colorscalePickerContainer {\n max-height: 550px;\n max-width: 700px;\n min-width: 295px;\n overflow-y: auto;\n overflow-x: hidden;\n background: rgba(242, 245, 250, 0.9);\n border: 1px solid #c8d4e3;\n position: absolute;\n z-index: 99;\n font-family: Helvetica, sans-serif;\n padding: 10px;\n resize: horizontal;\n text-align: left;\n}\n\n.colorscalePickerContainer::-webkit-scrollbar {\n width: 5px;\n background-color: #dfe8f3;\n}\n\n.colorscalePickerContainer::-webkit-scrollbar-thumb {\n background-color: #a2b1c6;\n}\n\n.colorscalePickerContainer::-webkit-scrollbar-track {\n -webkit-box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.3);\n background-color: #dfe8f3;\n}\n\n.colorscalePickerContainer .textLabel {\n color: rgb(80, 103, 132);\n font-size: 12px;\n vertical-align: top;\n font-weight: 600;\n text-transform: uppercase;\n}\n\n.colorscalePickerContainer .spaceRight {\n margin-right: 5px;\n}\n.colorscalePickerContainer .spaceRightZeroTop {\n margin-right: 5px;\n margin-top: 0;\n}\n.colorscalePickerContainer .spaceLeft {\n margin-left: 5px;\n}\n.colorscalePickerContainer .spaceTop {\n margin-top: 5px;\n}\n.colorscalePickerContainer .alignMiddle {\n vertical-align: middle;\n}\n.colorscalePickerContainer .alignTop {\n vertical-align: top;\n}\n.colorscalePickerContainer .zeroSpace {\n margin: 0;\n}\n.colorscalePickerContainer .noWrap {\n white-space: nowrap;\n}\n.colorscalePickerContainer .inlineBlock {\n display: inline-block;\n}\n\n.colorscalePickerBottomContainer {\n padding: 10px 0;\n}\n\n.colorscaleDescription {\n font-size: 13px;\n color: #506784;\n border: 1px solid #c8d4e3;\n padding: 10px;\n border-radius: 2px;\n text-align: left;\n line-height: 1.4em;\n}\n\n.colorscaleControlPanel {\n display: block;\n padding: 10px;\n width: 80%;\n margin: 0 auto;\n}\n\n.colorscalePickerContainer input[type="range"] {\n width: 200px;\n}\n\n.colorscalePickerContainer input[type="number"] {\n vertical-align: top;\n margin-top: -4px;\n margin-right: 5px;\n}\n\n.colorscalePickerContainer input[type="text"] {\n text-align: center;\n font-size: 12px;\n width: 90%;\n margin-top: 5px;\n padding: 5px;\n border: 1px solid #dfe8f3;\n}\n\n.colorscaleControlsRow {\n margin-top: 20px;\n}\n\n.colorscaleControlsRow div {\n display: inline;\n}\n\n.colorscaleControlPanel .rc-slider-tooltip {\n opacity: 1;\n z-index: 999;\n font-family: Helvetica, sans-serif;\n}\n\n.colorscaleControlPanel .rc-slider-rail {\n background-color: #a2b1c6;\n}\n\n.Select.is-focused:not(.is-open) > .Select-control {\n border-color: #c8d4e3 !important;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n',""])}])}))},1529:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M28.438 15.188l-.563-6.938c1.063-1.063 1.313-2.75.625-4.125-.625-1.375-2.063-2.188-3.625-2.063-1.5.125-2.813 1.188-3.188 2.688l-3.438.125c-.938-1.5-2.75-2.188-4.438-1.563-1.688.563-2.688 2.313-2.375 4.063l-4.375 1.75C5.873 8 4.123 7.75 2.748 8.5a3.647 3.647 0 0 0-1.875 3.938c.25 1.563 1.563 2.75 3.125 3l2 6.938c-1 .938-1.313 2.313-.938 3.625s1.438 2.25 2.75 2.563c1.313.25 2.688-.188 3.563-1.188l5.125.875c.938 1.438 2.688 2.063 4.313 1.5s2.688-2.188 2.438-3.938l3.625-3.438c1.938.375 3.875-.938 4.25-2.875.438-1.938-.75-3.875-2.688-4.313zm-3.375 6.25l-2.625 2.5c-.938-1.188-2.563-1.625-4-1.125-1.5.5-2.5 1.813-2.5 3.375l-3.75-.625a3.65 3.65 0 0 0-1.125-3.25c-.938-.875-2.188-1.188-3.375-.875l-1.75-6.313c1.688-.688 2.563-2.563 2.063-4.313l4.25-1.688a3.725 3.725 0 0 0 4.063 1.125c1.5-.563 2.438-1.938 2.438-3.5l2.875-.063c.5 1.875 2.438 3.063 4.375 2.625l.5 5.875c-1.313.375-2.25 1.438-2.563 2.75-.313 1.25.125 2.625 1.125 3.5z"}))};t.default=u},1540:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=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}}(),o=n("ab5b"),i=u(o),l=n("d7bc"),s=u(l);function u(e){return e&&e.__esModule?e:{default:e}}function c(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}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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}function d(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)}var h={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},v=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],m=function(e){return v.forEach((function(t){return delete e[t]})),e},y=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},g=!("undefined"===typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),b=function(){return g?"_"+Math.random().toString(36).substr(2,12):void 0},x=function(e){function t(e){f(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"===typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||b()},n}return d(t,e),a(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||b()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"===typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(y(e,this.sizer),this.placeHolderSizer&&y(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&"undefined"!==typeof this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2;var t="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0;e+=t,e<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return g&&e?i.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!==e&&void 0!==e?e:t})),t=r({},this.props.style);t.display||(t.display="inline-block");var n=r({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),a=c(this.props,[]);return m(a),a.className=this.props.inputClassName,a.id=this.state.inputId,a.style=n,i.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),i.default.createElement("input",r({},a,{ref:this.inputRef})),i.default.createElement("div",{ref:this.sizerRef,style:h},e),this.props.placeholder?i.default.createElement("div",{ref:this.placeHolderSizerRef,style:h},this.props.placeholder):null)}}]),t}(o.Component);x.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},x.defaultProps={minWidth:1,injectStyles:!0},t.default=x},"159b":function(e,t,n){var r=n("da84"),a=n("fdbc"),o=n("17c2"),i=n("9112");for(var l in a){var s=r[l],u=s&&s.prototype;if(u&&u.forEach!==o)try{i(u,"forEach",o)}catch(c){u.forEach=o}}},"15b3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Photoshop=void 0;var r=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}}(),a=n("ab5b"),o=k(a),i=n("d7bc"),l=k(i),s=n("fc55"),u=k(s),c=n("4245"),f=k(c),p=n("4ccf"),d=n("f356"),h=k(d),v=n("04a3"),m=k(v),y=n("b158"),g=k(y),b=n("0d17"),x=k(b),_=n("db3a"),w=k(_);function k(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(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}function O(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)}var M=t.Photoshop=function(e){function t(e){T(this,t);var n=E(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:e.hex},n}return O(t,e),r(t,[{key:"render",value:function(){var e=this.props,t=e.styles,n=void 0===t?{}:t,r=e.className,a=void 0===r?"":r,i=(0,u.default)((0,f.default)({default:{picker:{background:"#DCDCDC",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",boxSizing:"initial",width:"513px"},head:{backgroundImage:"linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",borderBottom:"1px solid #B1B1B1",boxShadow:"inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",height:"23px",lineHeight:"24px",borderRadius:"4px 4px 0 0",fontSize:"13px",color:"#4D4D4D",textAlign:"center"},body:{padding:"15px 15px 0",display:"flex"},saturation:{width:"256px",height:"256px",position:"relative",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0",overflow:"hidden"},hue:{position:"relative",height:"256px",width:"19px",marginLeft:"10px",border:"2px solid #B3B3B3",borderBottom:"2px solid #F0F0F0"},controls:{width:"180px",marginLeft:"10px"},top:{display:"flex"},previews:{width:"60px"},actions:{flex:"1",marginLeft:"20px"}}},n));return o.default.createElement("div",{style:i.picker,className:"photoshop-picker "+a},o.default.createElement("div",{style:i.head},this.props.header),o.default.createElement("div",{style:i.body,className:"flexbox-fix"},o.default.createElement("div",{style:i.saturation},o.default.createElement(p.Saturation,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:m.default,onChange:this.props.onChange})),o.default.createElement("div",{style:i.hue},o.default.createElement(p.Hue,{direction:"vertical",hsl:this.props.hsl,pointer:g.default,onChange:this.props.onChange})),o.default.createElement("div",{style:i.controls},o.default.createElement("div",{style:i.top,className:"flexbox-fix"},o.default.createElement("div",{style:i.previews},o.default.createElement(w.default,{rgb:this.props.rgb,currentColor:this.state.currentColor})),o.default.createElement("div",{style:i.actions},o.default.createElement(x.default,{label:"OK",onClick:this.props.onAccept,active:!0}),o.default.createElement(x.default,{label:"Cancel",onClick:this.props.onCancel}),o.default.createElement(h.default,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t}(o.default.Component);M.propTypes={header:l.default.string,styles:l.default.object},M.defaultProps={header:"Color Picker",styles:{}},t.default=(0,p.ColorWrap)(M)},"15c2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M30.313 18.375l-2.375-2.188-4.438-11.5 1.063-1.375 4.063 7.563zm-12.5 5.188l-10.25-7L11.001 5h11.875l4.375 11.25zM24 2.938l-1.063 1.375H10.812l-3-1.625 7.75-.938zm-17.125 0l3.438 1.875-3.375 11.688-5.313 2.875v-7.813zM1.75 20.063l5.438-2.938 10.313 7-.938 6.125-9.313-2.563zm22.75 7l-7.25 3.063.875-5.938 9.5-7.375 2.75 2.563z"}))};t.default=u},"15c3":function(e,t,n){"use strict";e.exports={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}}},"174f":function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument?e.ownerDocument:document}e.exports=r},"178d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findLinkEntities=void 0;var r=n("bfcd"),a=function(e){var t=e.getEntity();if(null===t)return!1;var n=r.Entity.get(t);return"LINK"===n.getType()},o=function(e,t){e.findEntityRanges(a,t)};t.findLinkEntities=o},"17c2":function(e,t,n){"use strict";var r=n("b727").forEach,a=n("a640"),o=n("ae40"),i=a("forEach"),l=o("forEach");e.exports=i&&l?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},1838:function(e,t,n){var r=n("c05f"),a=n("9b02"),o=n("8604"),i=n("f608"),l=n("08cc"),s=n("20ec"),u=n("f4d6"),c=1,f=2;function p(e,t){return i(e)&&l(t)?s(u(e),t):function(n){var i=a(n,e);return void 0===i&&i===t?o(n,e):r(t,i,c|f)}}e.exports=p},1881:function(e,t,n){!function(t,n){e.exports=n()}(window,(function(){return n={},e.m=t=[function(e,t,n){var r=n(7);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4).default)("d763679c",r,!1,{})},function(e,t,n){var r=n(10);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4).default)("6b9cc0e0",r,!1,{})},function(e,t,n){var r=n(12);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(4).default)("663c004e",r,!1,{})},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var a=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),o=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(o).concat([a]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},a=0;a<this.length;a++){var o=this[a][0];"number"==typeof o&&(r[o]=!0)}for(a=0;a<e.length;a++){var i=e[a];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),t.push(i))}},t}},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},a=0;a<t.length;a++){var o=t[a],i=o[0],l={id:e+":"+a,css:o[1],media:o[2],sourceMap:o[3]};r[i]?r[i].parts.push(l):n.push(r[i]={id:i,parts:[l]})}return n}n.r(t),n.d(t,"default",(function(){return h}));var a="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!a)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},i=a&&(document.head||document.getElementsByTagName("head")[0]),l=null,s=0,u=!1,c=function(){},f=null,p="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,a){u=n,f=a||{};var i=r(e,t);return v(i),function(t){for(var n=[],a=0;a<i.length;a++){var l=i[a];(s=o[l.id]).refs--,n.push(s)}for(t?v(i=r(e,t)):i=[],a=0;a<n.length;a++){var s;if(0===(s=n[a]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete o[s.id]}}}}function v(e){for(var t=0;t<e.length;t++){var n=e[t],r=o[n.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](n.parts[a]);for(;a<n.parts.length;a++)r.parts.push(y(n.parts[a]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(a=0;a<n.parts.length;a++)i.push(y(n.parts[a]));o[n.id]={id:n.id,refs:1,parts:i}}}}function m(){var e=document.createElement("style");return e.type="text/css",i.appendChild(e),e}function y(e){var t,n,r=document.querySelector("style["+p+'~="'+e.id+'"]');if(r){if(u)return c;r.parentNode.removeChild(r)}if(d){var a=s++;r=l=l||m(),t=x.bind(null,r,a,!1),n=x.bind(null,r,a,!0)}else r=m(),t=function(e,t){var n=t.css,r=t.media,a=t.sourceMap;if(r&&e.setAttribute("media",r),f.ssrId&&e.setAttribute(p,t.id),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var g,b=(g=[],function(e,t){return g[e]=t,g.filter(Boolean).join("\n")});function x(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),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){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var a=r[n];e.call(t,a[1],a[0])}},t;function t(){this.__entries__=[]}}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,a=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)},i=2,l=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,u=(c.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},c.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},c.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},c.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),0<e.length},c.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(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)},c.prototype.disconnect_=function(){r&&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)},c.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;l.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},c.getInstance=function(){return this.instance_||(this.instance_=new c),this.instance_},c.instance_=null,c);function c(){function e(){l&&(l=!1,r()),s&&n()}function t(){o(e)}function n(){var e=Date.now();if(l){if(e-u<i)return;s=!0}else s=!(l=!0),setTimeout(t,a);u=e}var r,a,l,s,u;this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=(r=this.refresh.bind(this),s=l=!(a=20),u=0,n)}var f=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},p=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||a},d=b(0,0,0,0);function h(e){return parseFloat(e)||0}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+h(e["border-"+n+"-width"])}),0)}function m(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return d;var r,a=p(e).getComputedStyle(e),o=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var a=r[n],o=e["padding-"+a];t[a]=h(o)}return t}(a),i=o.left+o.right,l=o.top+o.bottom,s=h(a.width),u=h(a.height);if("border-box"===a.boxSizing&&(Math.round(s+i)!==t&&(s-=v(a,"left","right")+i),Math.round(u+l)!==n&&(u-=v(a,"top","bottom")+l)),(r=e)!==p(r).document.documentElement){var c=Math.round(s+i)-t,f=Math.round(u+l)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(f)&&(u-=f)}return b(o.left,o.top,s,u)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof p(e).SVGGraphicsElement}:function(e){return e instanceof p(e).SVGElement&&"function"==typeof e.getBBox};function g(e){return r?y(e)?b(0,0,(t=e.getBBox()).width,t.height):m(e):d;var t}function b(e,t,n,r){return{x:e,y:t,width:n,height:r}}var x=(_.prototype.isActive=function(){var e=g(this.target);return(this.contentRect_=e).width!==this.broadcastWidth||e.height!==this.broadcastHeight},_.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},_);function _(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=e}var w=function(e,t){var n,r,a,o,i,l,s,u=(r=(n=t).x,a=n.y,o=n.width,i=n.height,l="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,s=Object.create(l.prototype),f(s,{x:r,y:a,width:o,height:i,top:a,right:r+o,bottom:i+a,left:r}),s);f(this,{target:e,contentRect:u})},k=(T.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 p(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new x(e)),this.controller_.addObserver(this),this.controller_.refresh())}},T.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 p(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))}},T.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},T.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},T.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new w(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},T.prototype.clearActive=function(){this.activeObservations_.splice(0)},T.prototype.hasActive=function(){return 0<this.activeObservations_.length},T);function T(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}var E=new("undefined"!=typeof WeakMap?WeakMap:n),O=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=u.getInstance(),r=new k(t,n,this);E.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=E.get(this))[e].apply(t,arguments)}}));var M=void 0!==a.ResizeObserver?a.ResizeObserver:O;t.a=M}).call(this,n(8))},function(e,t,n){"use strict";var r=n(0);n.n(r).a},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,"\n.vue-modal-resizer {\n display: block;\n overflow: hidden;\n position: absolute;\n width: 12px;\n height: 12px;\n right: 0;\n bottom: 0;\n z-index: 9999999;\n background: transparent;\n cursor: se-resize;\n}\n.vue-modal-resizer::after {\n display: block;\n position: absolute;\n content: '';\n background: transparent;\n left: 0;\n top: 0;\n width: 0;\n height: 0;\n border-bottom: 10px solid #ddd;\n border-left: 10px solid transparent;\n}\n.vue-modal-resizer.clicked::after {\n border-bottom: 10px solid #369be9;\n}\n",""])},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(1);n.n(r).a},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,"\n.vm--block-scroll {\n overflow: hidden;\n width: 100vw;\n}\n.vm--container {\n position: fixed;\n box-sizing: border-box;\n left: 0;\n top: 0;\n width: 100%;\n height: 100vh;\n z-index: 999;\n}\n.vm--overlay {\n position: fixed;\n box-sizing: border-box;\n left: 0;\n top: 0;\n width: 100%;\n height: 100vh;\n background: rgba(0, 0, 0, 0.2);\n /* z-index: 999; */\n opacity: 1;\n}\n.vm--container.scrollable {\n height: 100%;\n min-height: 100vh;\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n}\n.vm--modal {\n position: relative;\n overflow: hidden;\n box-sizing: border-box;\n\n background-color: white;\n border-radius: 3px;\n box-shadow: 0 20px 60px -2px rgba(27, 33, 58, 0.4);\n}\n.vm--container.scrollable .vm--modal {\n margin-bottom: 2px;\n}\n.vm--top-right-slot {\n display: block;\n position: absolute;\n right: 0;\n top: 0;\n}\n.vm-transition--overlay-enter-active,\n.vm-transition--overlay-leave-active {\n transition: all 50ms;\n}\n.vm-transition--overlay-enter,\n.vm-transition--overlay-leave-active {\n opacity: 0;\n}\n.vm-transition--modal-enter-active,\n.vm-transition--modal-leave-active {\n transition: all 400ms;\n}\n.vm-transition--modal-enter,\n.vm-transition--modal-leave-active {\n opacity: 0;\n transform: translateY(-20px);\n}\n.vm-transition--default-enter-active,\n.vm-transition--default-leave-active {\n transition: all 2ms;\n}\n.vm-transition--default-enter,\n.vm-transition--default-leave-active {\n opacity: 0;\n}\n",""])},function(e,t,n){"use strict";var r=n(2);n.n(r).a},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,"\n.vue-dialog {\n font-size: 14px;\n}\n.vue-dialog div {\n box-sizing: border-box;\n}\n.vue-dialog-content {\n flex: 1 0 auto;\n width: 100%;\n padding: 14px;\n}\n.vue-dialog-content-title {\n font-weight: 600;\n padding-bottom: 14px;\n}\n.vue-dialog-buttons {\n display: flex;\n flex: 0 1 auto;\n width: 100%;\n border-top: 1px solid #eee;\n}\n.vue-dialog-buttons-none {\n width: 100%;\n padding-bottom: 14px;\n}\n.vue-dialog-button {\n font-size: inherit;\n background: transparent;\n padding: 0;\n margin: 0;\n border: 0;\n cursor: pointer;\n box-sizing: border-box;\n line-height: 40px;\n height: 40px;\n color: inherit;\n font: inherit;\n outline: none;\n}\n.vue-dialog-button:hover {\n background: #f9f9f9;\n}\n.vue-dialog-button:active {\n background: #f3f3f3;\n}\n.vue-dialog-button:not(:first-of-type) {\n border-left: 1px solid #eee;\n}\n",""])},function(e,t,n){"use strict";function r(){var e=this,t=e.$createElement,n=e._self._c||t;return e.visible?n("div",{class:e.containerClass},[n("transition",{attrs:{name:e.guaranteedOverlayTransition},on:{"before-enter":e.beforeOverlayTransitionEnter,"after-enter":e.afterOverlayTransitionEnter,"before-leave":e.beforeOverlayTransitionLeave,"after-leave":e.afterOverlayTransitionLeave}},[e.visibility.overlay?n("div",{staticClass:"vm--overlay",attrs:{"data-modal":e.name,"aria-expanded":e.visibility.overlay.toString()},on:{click:function(t){return t.target!==t.currentTarget?null:(t.stopPropagation(),e.onOverlayClick(t))}}},[n("div",{staticClass:"vm--top-right-slot"},[e._t("top-right")],2)]):e._e()]),e._v(" "),n("transition",{attrs:{name:e.guaranteedModalTransition},on:{"before-enter":e.beforeModalTransitionEnter,"after-enter":e.afterModalTransitionEnter,"before-leave":e.beforeModalTransitionLeave,"after-leave":e.afterModalTransitionLeave}},[e.visibility.modal?n("div",{ref:"modal",class:e.modalClass,style:e.modalStyle,attrs:{"aria-expanded":e.visibility.modal.toString(),role:"dialog","aria-modal":"true"}},[e._t("default"),e._v(" "),e.resizable&&!e.isAutoHeight?n("resizer",{attrs:{"min-width":e.minWidth,"min-height":e.minHeight,"max-width":e.maxWidth,"max-height":e.maxHeight},on:{resize:e.onModalResize}}):e._e()],2):e._e()])],1):e._e()}function a(){var e=this.$createElement;return(this._self._c||e)("div",{class:this.className})}function o(e,t,n){return n<e?e:t<n?t:n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(){var e=window.innerWidth,t=document.documentElement.clientWidth;return e&&t?Math.min(e,t):t||e}function u(e){return e.split(";").map((function(e){return e.trim()})).filter(Boolean).map((function(e){return e.split(":")})).reduce((function(e,t){var n=l(t,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}({},e,i({},n[0],n[1]))}),{})}function c(e){return e.touches&&0<e.touches.length?e.touches[0]:e}n.r(t),n.d(t,"Modal",(function(){return F})),n.d(t,"Dialog",(function(){return U})),n.d(t,"version",(function(){return Z})),a._withStripped=r._withStripped=!0;var f=["INPUT","TEXTAREA","SELECT"],p=function(e){var t=0<arguments.length&&void 0!==e?e:0;return function(){return(t++).toString()}}(),d={name:"VueJsModalResizer",props:{minHeight:{type:Number,default:0},minWidth:{type:Number,default:0},maxWidth:{type:Number,default:Number.MAX_SAFE_INTEGER},maxHeight:{type:Number,default:Number.MAX_SAFE_INTEGER}},data:function(){return{clicked:!1,size:{}}},mounted:function(){this.$el.addEventListener("mousedown",this.start,!1)},computed:{className:function(){return["vue-modal-resizer",{clicked:this.clicked}]}},methods:{start:function(e){this.clicked=!0,window.addEventListener("mousemove",this.mousemove,!1),window.addEventListener("mouseup",this.stop,!1),e.stopPropagation(),e.preventDefault()},stop:function(){this.clicked=!1,window.removeEventListener("mousemove",this.mousemove,!1),window.removeEventListener("mouseup",this.stop,!1),this.$emit("resize-stop",{element:this.$el.parentElement,size:this.size})},mousemove:function(e){this.resize(e)},resize:function(e){var t=this.$el.parentElement;if(t){var n=e.clientX-t.offsetLeft,r=e.clientY-t.offsetTop,a=Math.min(s(),this.maxWidth),i=Math.min(window.innerHeight,this.maxHeight);n=o(this.minWidth,a,n),r=o(this.minHeight,i,r),this.size={width:n,height:r},t.style.width=n+"px",t.style.height=r+"px",this.$emit("resize",{element:t,size:this.size})}}}};function h(e,t,n,r,a,o,i,l){var s,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),i?(s=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=s):a&&(s=l?function(){a.call(this,this.$root.$options.shadowRoot)}:a),s)if(u.functional){u._injectStyles=s;var c=u.render;u.render=function(e,t){return s.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,s):[s]}return{exports:e,options:u}}n(6);var v=h(d,a,[],!1,null,null,null);v.options.__file="src/components/Resizer.vue";var m=v.exports;function y(e){return(y="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)}function g(e){switch(y(e)){case"number":return{type:"px",value:e};case"string":return function(e){if("auto"===e)return{type:e,value:0};var t=_.find((function(t){return t.regexp.test(e)}));return t?{type:t.name,value:parseFloat(e)}:{type:"",value:e}}(e);default:return{type:"",value:e}}}function b(e){if("string"!=typeof e)return 0<=e;var t=g(e);return("%"===t.type||"px"===t.type)&&0<t.value}var x="[-+]?[0-9]*.?[0-9]+",_=[{name:"px",regexp:new RegExp("^".concat(x,"px$"))},{name:"%",regexp:new RegExp("^".concat(x,"%$"))},{name:"px",regexp:new RegExp("^".concat(x,"$"))}],w=n(5),k="undefined"!=typeof window&&window.ResizeObserver?ResizeObserver:w.a;function T(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 E(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function O(e){return t='button:not([disabled]), select:not([disabled]), a[href]:not([disabled]), area[href]:not([disabled]), [contentEditable=""]:not([disabled]), [contentEditable="true"]:not([disabled]), [contentEditable="TRUE"]:not([disabled]), textarea:not([disabled]), iframe:not([disabled]), input:not([disabled]), summary:not([disabled]), [tabindex]:not([tabindex="-1"])',E(e.querySelectorAll(t)||[]);var t}function M(e){return e==document.activeElement}var S=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.root=null,this.elements=[],this.onKeyDown=this.onKeyDown.bind(this),this.enable=this.enable.bind(this),this.disable=this.disable.bind(this),this.firstElement=this.firstElement.bind(this),this.lastElement=this.lastElement.bind(this)}var t,n,r;return t=e,(n=[{key:"lastElement",value:function(){return this.elements[this.elements.length-1]||null}},{key:"firstElement",value:function(){return this.elements[0]||null}},{key:"onKeyDown",value:function(e){var t;if("Tab"===(t=e).key||9===t.keyCode)return e.shiftKey&&M(this.firstElement())?(this.lastElement().focus(),void e.preventDefault()):!document.activeElement||M(this.lastElement())?(this.firstElement().focus(),void e.preventDefault()):void 0}},{key:"enabled",value:function(){return!!this.root}},{key:"enable",value:function(e){if(e){this.root=e,this.elements=O(this.root);var t=this.firstElement();t&&t.focus(),this.root.addEventListener("keydown",this.onKeyDown)}}},{key:"disable",value:function(){this.root.removeEventListener("keydown",this.onKeyDown),this.root=null}}])&&T(t.prototype,n),r&&T(t,r),e}();function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var P="vm-transition--default",L="enter",D="entering",j="leave",I="leavng",R={name:"VueJsModal",props:{name:{required:!0,type:String},resizable:{type:Boolean,default:!1},adaptive:{type:Boolean,default:!1},draggable:{type:[Boolean,String],default:!1},scrollable:{type:Boolean,default:!1},focusTrap:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},overlayTransition:{type:String,default:"vm-transition--overlay"},transition:{type:String,default:"vm-transition--modal"},clickToClose:{type:Boolean,default:!0},classes:{type:[String,Array],default:function(){return[]}},styles:{type:[String,Array,Object]},minWidth:{type:Number,default:0,validator:function(e){return 0<=e}},minHeight:{type:Number,default:0,validator:function(e){return 0<=e}},maxWidth:{type:Number,default:Number.MAX_SAFE_INTEGER},maxHeight:{type:Number,default:Number.MAX_SAFE_INTEGER},width:{type:[Number,String],default:600,validator:b},height:{type:[Number,String],default:300,validator:function(e){return"auto"===e||b(e)}},shiftX:{type:Number,default:.5,validator:function(e){return 0<=e&&e<=1}},shiftY:{type:Number,default:.5,validator:function(e){return 0<=e&&e<=1}}},components:{Resizer:m},data:function(){return{visible:!1,visibility:{modal:!1,overlay:!1},overlayTransitionState:null,modalTransitionState:null,shiftLeft:0,shiftTop:0,modal:{width:0,widthType:"px",height:0,heightType:"px",renderedHeight:0},viewportHeight:0,viewportWidth:0}},created:function(){this.setInitialSize()},beforeMount:function(){this.$modal.subscription.$on("toggle",this.onToggle),window.addEventListener("resize",this.onWindowResize),window.addEventListener("orientationchange",this.onWindowResize),this.onWindowResize(),this.scrollable&&!this.isAutoHeight&&console.warn('Modal "'.concat(this.name,'" has scrollable flag set to true ')+'but height is not "auto" ('.concat(this.height,")")),this.clickToClose&&window.addEventListener("keyup",this.onEscapeKeyUp)},mounted:function(){var e=this;this.resizeObserver=new k((function(t){if(0<t.length){var n=A(t,1)[0];e.modal.renderedHeight=n.contentRect.height}})),this.$focusTrap=new S},beforeDestroy:function(){this.$modal.subscription.$off("toggle",this.onToggle),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("orientationchange",this.onWindowResize),this.clickToClose&&window.removeEventListener("keyup",this.onEscapeKeyUp),document.body.classList.remove("vm--block-scroll")},computed:{guaranteedOverlayTransition:function(){return this.overlayTransition||P},guaranteedModalTransition:function(){return this.transition||P},isAutoHeight:function(){return"auto"===this.modal.heightType},position:function(){var e=this.viewportHeight,t=this.viewportWidth,n=this.shiftLeft,r=this.shiftTop,a=this.shiftX,i=this.shiftY,l=this.trueModalWidth,s=this.trueModalHeight,u=t-l,c=Math.max(e-s,0),f=r+i*c;return{left:parseInt(o(0,u,n+a*u)),top:!s&&this.isAutoHeight?void 0:parseInt(o(0,c,f))}},trueModalWidth:function(){var e=this.viewportWidth,t=this.modal,n=this.adaptive,r=this.minWidth,a=this.maxWidth,i="%"===t.widthType?e/100*t.width:t.width;if(n){var l=Math.max(r,Math.min(e,a));return o(r,l,i)}return i},trueModalHeight:function(){var e=this.viewportHeight,t=this.modal,n=this.isAutoHeight,r=this.adaptive,a=this.minHeight,i=this.maxHeight,l="%"===t.heightType?e/100*t.height:t.height;if(n)return this.modal.renderedHeight;if(r){var s=Math.max(a,Math.min(e,i));return o(a,s,l)}return l},autoHeight:function(){return this.adaptive&&this.modal.renderedHeight>=this.viewportHeight?Math.max(this.minHeight,this.viewportHeight)+"px":"auto"},containerClass:function(){return["vm--container",this.scrollable&&this.isAutoHeight&&"scrollable"]},modalClass:function(){return["vm--modal",this.classes]},stylesProp:function(){return"string"==typeof this.styles?u(this.styles):this.styles},modalStyle:function(){return[this.stylesProp,{top:this.position.top+"px",left:this.position.left+"px",width:this.trueModalWidth+"px",height:this.isAutoHeight?this.autoHeight:this.trueModalHeight+"px"}]},isComponentReadyToBeDestroyed:function(){return this.overlayTransitionState===j&&this.modalTransitionState===j}},watch:{isComponentReadyToBeDestroyed:function(e){e&&(this.visible=!1)}},methods:{startTransitionEnter:function(){this.visibility.overlay=!0,this.visibility.modal=!0},startTransitionLeave:function(){this.visibility.overlay=!1,this.visibility.modal=!1},beforeOverlayTransitionEnter:function(){this.overlayTransitionState=D},afterOverlayTransitionEnter:function(){this.overlayTransitionState=L},beforeOverlayTransitionLeave:function(){this.overlayTransitionState=I},afterOverlayTransitionLeave:function(){this.overlayTransitionState=j},beforeModalTransitionEnter:function(){var e=this;this.modalTransitionState=D,this.$nextTick((function(){e.resizeObserver.observe(e.$refs.modal)}))},afterModalTransitionEnter:function(){this.modalTransitionState=L,this.draggable&&this.addDraggableListeners(),this.focusTrap&&this.$focusTrap.enable(this.$refs.modal);var e=this.createModalEvent({state:"opened"});this.$emit("opened",e)},beforeModalTransitionLeave:function(){this.modalTransitionState=I,this.resizeObserver.unobserve(this.$refs.modal),this.$focusTrap.enabled()&&this.$focusTrap.disable()},afterModalTransitionLeave:function(){this.modalTransitionState=j;var e=this.createModalEvent({state:"closed"});this.$emit("closed",e)},onToggle:function(e,t,n){if(this.name===e){var r=void 0===t?!this.visible:t;this.toggle(r,n)}},setInitialSize:function(){var e=g(this.width),t=g(this.height);this.modal.width=e.value,this.modal.widthType=e.type,this.modal.height=t.value,this.modal.heightType=t.type},onEscapeKeyUp:function(e){27===e.which&&this.visible&&this.$modal.hide(this.name)},onWindowResize:function(){this.viewportWidth=s(),this.viewportHeight=window.innerHeight,this.ensureShiftInWindowBounds()},createModalEvent:function(e){var t=0<arguments.length&&void 0!==e?e:{};return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){C(e,t,n[t])}))}return e}({name:this.name,ref:this.$refs.modal||null},t)},onModalResize:function(e){this.modal.widthType="px",this.modal.width=e.size.width,this.modal.heightType="px",this.modal.height=e.size.height;var t=this.modal.size;this.$emit("resize",this.createModalEvent({size:t}))},open:function(e){var t=this;this.reset&&(this.setInitialSize(),this.shiftLeft=0,this.shiftTop=0),this.scrollable&&document.body.classList.add("vm--block-scroll");var n=!1,r=this.createModalEvent({cancel:function(){n=!0},state:"before-open",params:e});this.$emit("before-open",r),n?this.scrollable&&document.body.classList.remove("vm--block-scroll"):("undefined"!=typeof document&&document.activeElement&&"BODY"!==document.activeElement.tagName&&document.activeElement.blur&&document.activeElement.blur(),this.visible=!0,this.$nextTick((function(){t.startTransitionEnter()})))},close:function(e){this.scrollable&&document.body.classList.remove("vm--block-scroll");var t=!1,n=this.createModalEvent({cancel:function(){t=!0},state:"before-close",params:e});this.$emit("before-close",n),t||this.startTransitionLeave()},toggle:function(e,t){this.visible!==e&&(e?this.open(t):this.close(t))},getDraggableElement:function(){return!0===this.draggable?this.$refs.modal:"string"==typeof this.draggable?this.$refs.modal.querySelector(this.draggable):null},onOverlayClick:function(){this.clickToClose&&this.toggle(!1)},addDraggableListeners:function(){var e=this,t=this.getDraggableElement();if(t){var n=0,r=0,a=0,o=0,i=function(t){var i=t.target;if(!(u=i)||-1===f.indexOf(u.nodeName)){var u,p=c(t),d=p.clientX,h=p.clientY;document.addEventListener("mousemove",l),document.addEventListener("touchmove",l),document.addEventListener("mouseup",s),document.addEventListener("touchend",s),n=d,r=h,a=e.shiftLeft,o=e.shiftTop}},l=function(t){var i=c(t),l=i.clientX,s=i.clientY;e.shiftLeft=a+l-n,e.shiftTop=o+s-r,t.preventDefault()},s=function t(n){e.ensureShiftInWindowBounds(),document.removeEventListener("mousemove",l),document.removeEventListener("touchmove",l),document.removeEventListener("mouseup",t),document.removeEventListener("touchend",t),n.preventDefault()};t.addEventListener("mousedown",i),t.addEventListener("touchstart",i)}},ensureShiftInWindowBounds:function(){var e=this.viewportHeight,t=this.viewportWidth,n=this.shiftLeft,r=this.shiftTop,a=this.shiftX,i=this.shiftY,l=this.trueModalWidth,s=this.trueModalHeight,u=t-l,c=Math.max(e-s,0),f=n+a*u,p=r+i*c;this.shiftLeft-=f-o(0,u,f),this.shiftTop-=p-o(0,c,p)}}},z=(n(9),h(R,r,[],!1,null,null,null));function N(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.$modal.context.componentName,{tag:"component",attrs:{name:"dialog",height:"auto",classes:["vue-dialog",this.params.class],width:e.width,"shift-y":.3,adaptive:!0,"focus-trap":!0,clickToClose:e.clickToClose,transition:e.transition},on:{"before-open":e.beforeOpened,"before-close":e.beforeClosed,opened:function(t){return e.$emit("opened",t)},closed:function(t){return e.$emit("closed",t)}}},[n("div",{staticClass:"vue-dialog-content"},[e.params.title?n("div",{staticClass:"vue-dialog-content-title",domProps:{innerHTML:e._s(e.params.title||"")}}):e._e(),e._v(" "),e.params.component?n(e.params.component,e._b({tag:"component"},"component",e.params.props,!1)):n("div",{domProps:{innerHTML:e._s(e.params.text||"")}})],1),e._v(" "),e.buttons?n("div",{staticClass:"vue-dialog-buttons"},e._l(e.buttons,(function(t,r){return n("button",{key:r,class:t.class||"vue-dialog-button",style:e.buttonStyle,attrs:{type:"button",tabindex:"0"},domProps:{innerHTML:e._s(t.title)},on:{click:function(t){return t.stopPropagation(),e.click(r,t)}}},[e._v(e._s(t.title))])})),0):n("div",{staticClass:"vue-dialog-buttons-none"})])}z.options.__file="src/components/Modal.vue";var F=z.exports;N._withStripped=!0;var B={name:"VueJsDialog",props:{width:{type:[Number,String],default:400},clickToClose:{type:Boolean,default:!0},transition:{type:String}},data:function(){return{params:{}}},computed:{buttons:function(){return this.params.buttons||[]},buttonStyle:function(){return{flex:"1 1 ".concat(100/this.buttons.length,"%")}}},methods:{beforeOpened:function(e){this.params=e.params||{},this.$emit("before-opened",e)},beforeClosed:function(e){this.params={},this.$emit("before-closed",e)},click:function(e,t,n){var r=2<arguments.length&&void 0!==n?n:"click",a=this.buttons[e],o=null==a?void 0:a.handler;"function"==typeof o&&o(e,t,{source:r})}}},V=(n(11),h(B,N,[],!1,null,null,null));function H(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"modals-container"}},e._l(e.modals,(function(t){return n("modal",e._g(e._b({key:t.id,on:{closed:function(n){return e.remove(t.id)}}},"modal",t.modalAttrs,!1),t.modalListeners),[n(t.component,e._g(e._b({tag:"component",on:{close:function(n){return e.$modal.hide(t.modalAttrs.name,n)}}},"component",t.componentAttrs,!1),e.$listeners))],1)})),1)}V.options.__file="src/components/Dialog.vue";var U=V.exports;function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}H._withStripped=!0;var q=h({data:function(){return{modals:[]}},created:function(){this.$root.__modalContainer=this},mounted:function(){var e=this;this.$modal.subscription.$on("hide-all",(function(){e.modals=[]}))},methods:{add:function(e,t,n,r){var a=this,o=1<arguments.length&&void 0!==t?t:{},i=2<arguments.length&&void 0!==n?n:{},l=3<arguments.length&&void 0!==r?r:{},s=p(),u=i.name||"dynamic_modal_"+s;this.modals.push({id:s,modalAttrs:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){W(e,t,n[t])}))}return e}({},i,{name:u}),modalListeners:l,component:e,componentAttrs:o}),this.$nextTick((function(){a.$modal.show(u)}))},remove:function(e){var t=this.modals.findIndex((function(t){return t.id===e}));-1!==t&&this.modals.splice(t,1)}}},H,[],!1,null,null,null);q.options.__file="src/components/ModalsContainer.vue";var $=q.exports;function G(e){return(G="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)}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=function(e,t){function n(e,t,n,a){var i,l=2<arguments.length&&void 0!==n?n:{},s=3<arguments.length?a:void 0,u=null===(i=o.root)||void 0===i?void 0:i.__modalContainer,c=r.dynamicDefaults||{};null!=u&&u.add(e,t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Y(e,t,n[t])}))}return e}({},c,l),s)}var r=1<arguments.length&&void 0!==t?t:{},a=new e,o={root:null,componentName:r.componentName||"Modal"};return{context:o,subscription:a,show:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=t[0];switch(G(o)){case"string":(function(e,t){a.$emit("toggle",e,!0,t)}).apply(void 0,t);break;case"object":case"function":n.apply(void 0,t);break;default:console.warn("[vue-js-modal] $modal() received an unsupported argument as a first argument.",o)}},hide:function(e,t){a.$emit("toggle",e,!1,t)},hideAll:function(){a.$emit("hide-all")},toggle:function(e,t){a.$emit("toggle",e,void 0,t)},setDynamicModalContainer:function(t){o.root=t;var n,r=(n=document.createElement("div"),document.body.appendChild(n),n);new e({parent:t,render:function(e){return e($)}}).$mount(r)}}},X={install:function(e,t){var n=1<arguments.length&&void 0!==t?t:{};if(!e.prototype.$modal){var r=new K(e,n);Object.defineProperty(e.prototype,"$modal",{get:function(){if(this instanceof e){var t=this.$root;r.context.root||r.setDynamicModalContainer(t)}return r}}),e.component(r.context.componentName,F),n.dialog&&e.component("VDialog",U)}}},Z="__VERSION__";t.default=X}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var a in t)e.d(r,a,function(e){return t[e]}.bind(null,a));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="/dist/",e(e.s=13);function e(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var t,n}))},"18c2":function(e,t,n){"use strict";var r=n("1b23");function a(e){return!(!e||!e.ownerDocument)&&(r(e)&&"IMG"===e.nodeName)}e.exports=a},"18c9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M1.938 16.188c.125-.438.25-.938.438-1.438.5-1.5 1.063-3 1.75-4.438 1.75-3.875 3.625-6.188 5.375-6.188 1.625 0 3.063 1.625 6 6.25 3.25 5.125 4.75 6.813 7 6.813 2.438 0 4.563-2.563 6.5-6.875.625-1.438 1.25-3 1.75-4.563.188-.5.313-1 .5-1.438.063-.313.125-.5.125-.625l-1.125-.313c-.063.125-.063.313-.188.563-.125.438-.25.938-.438 1.438-.5 1.563-1.063 3.063-1.75 4.438C26.125 13.687 24.25 16 22.5 16c-1.625 0-3.063-1.563-6-6.25-3.25-5.125-4.75-6.813-7-6.813-2.438 0-4.563 2.625-6.5 6.875-.625 1.438-1.25 3-1.75 4.563-.188.563-.313 1.063-.5 1.5-.063.25-.125.438-.125.563l1.125.313c.063-.125.063-.313.188-.563zM.75 4.313c.188.438.313.938.5 1.438.5 1.563 1.125 3.125 1.75 4.563 1.938 4.313 4.063 6.875 6.5 6.875 2.25 0 3.75-1.688 7-6.813 2.938-4.625 4.375-6.25 6-6.25 1.75 0 3.625 2.313 5.375 6.188.688 1.438 1.25 2.938 1.75 4.438.188.5.313 1 .438 1.438.125.25.125.438.188.563l1.125-.313c0-.125-.063-.313-.125-.563-.188-.438-.313-.938-.5-1.5-.5-1.563-1.125-3.125-1.75-4.563-1.938-4.25-4.063-6.875-6.5-6.875-2.25 0-3.75 1.688-7 6.813-2.938 4.688-4.375 6.25-6 6.25-1.75 0-3.625-2.313-5.375-6.188-.688-1.375-1.25-2.875-1.75-4.438-.188-.5-.313-1-.438-1.438-.125-.25-.125-.438-.188-.563l-1.125.313c0 .125.063.313.125.625zM0 23.688h7.125v5.938H0zm22.5 0H32v5.938h-9.5zm-15.375 0H22.5v1.188H7.125zm0 4.75H22.5v1.188H7.125z"}))};t.default=u},"18d8":function(e,t,n){var r=n("234d"),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,n,r,a){t.push(r?a.replace(o,"$1"):n||e)})),t}));e.exports=i},"18e7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M28 8v6h-4V5.312H8V14H4V8H0v16h4v-6h4v8.688h16V18h4v6h4V8zM12 22.688V9.313h8v13.375z"}))};t.default=u},1935:function(e,t,n){"use strict";n.r(t),n.d(t,"Tabs",(function(){return j})),n.d(t,"TabList",(function(){return N})),n.d(t,"Tab",(function(){return U})),n.d(t,"TabPanel",(function(){return Y})),n.d(t,"resetIdCounter",(function(){return x}));n("d7bc");var r=n("ab5b"),a=n.n(r);function o(e){return function(t){return!!t.type&&t.type.tabsRole===e}}var i=o("Tab"),l=o("TabList"),s=o("TabPanel");function u(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){return i(e)||l(e)||s(e)}function d(e,t){return r["Children"].map(e,(function(e){return null===e?null:p(e)?t(e):e.props&&e.props.children&&"object"===typeof e.props.children?Object(r["cloneElement"])(e,c(c({},e.props),{},{children:d(e.props.children,t)})):e}))}function h(e,t){return r["Children"].forEach(e,(function(e){null!==e&&(i(e)||s(e)?t(e):e.props&&e.props.children&&"object"===typeof e.props.children&&(l(e)&&t(e),h(e.props.children,t)))}))}function v(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=v(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}var m,y=function(){var e,t,n=0,r="";while(n<arguments.length)(e=arguments[n++])&&(t=v(e))&&(r&&(r+=" "),r+=t);return r},g=0;function b(){return"react-tabs-"+g++}function x(){g=0}function _(e){var t=0;return h(e,(function(e){i(e)&&t++})),t}function w(e){var t=0;return h(e,(function(e){s(e)&&t++})),t}function k(){return k=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},k.apply(this,arguments)}function T(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function E(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function O(e){return e&&"getAttribute"in e}function M(e){return O(e)&&"tab"===e.getAttribute("role")}function S(e){return O(e)&&"true"===e.getAttribute("aria-disabled")}try{m=!("undefined"===typeof window||!window.document||!window.document.activeElement)}catch(K){m=!1}var C=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,t.tabNodes=[],t.handleKeyDown=function(e){var n=t.props.direction;if(t.isTabFromContainer(e.target)){var r=t.props.selectedIndex,a=!1,o=!1;32!==e.keyCode&&13!==e.keyCode||(a=!0,o=!1,t.handleClick(e)),37===e.keyCode||38===e.keyCode?(r="rtl"===n?t.getNextTab(r):t.getPrevTab(r),a=!0,o=!0):39===e.keyCode||40===e.keyCode?(r="rtl"===n?t.getPrevTab(r):t.getNextTab(r),a=!0,o=!0):35===e.keyCode?(r=t.getLastTab(),a=!0,o=!0):36===e.keyCode&&(r=t.getFirstTab(),a=!0,o=!0),a&&e.preventDefault(),o&&t.setSelected(r,e)}},t.handleClick=function(e){var n=e.target;do{if(t.isTabFromContainer(n)){if(S(n))return;var r=[].slice.call(n.parentNode.children).filter(M).indexOf(n);return void t.setSelected(r,e)}}while(null!=(n=n.parentNode))},t}E(t,e);var n=t.prototype;return n.setSelected=function(e,t){if(!(e<0||e>=this.getTabsCount())){var n=this.props,r=n.onSelect,a=n.selectedIndex;r(e,a,t)}},n.getNextTab=function(e){for(var t=this.getTabsCount(),n=e+1;n<t;n++)if(!S(this.getTab(n)))return n;for(var r=0;r<e;r++)if(!S(this.getTab(r)))return r;return e},n.getPrevTab=function(e){var t=e;while(t--)if(!S(this.getTab(t)))return t;t=this.getTabsCount();while(t-- >e)if(!S(this.getTab(t)))return t;return e},n.getFirstTab=function(){for(var e=this.getTabsCount(),t=0;t<e;t++)if(!S(this.getTab(t)))return t;return null},n.getLastTab=function(){var e=this.getTabsCount();while(e--)if(!S(this.getTab(e)))return e;return null},n.getTabsCount=function(){var e=this.props.children;return _(e)},n.getPanelsCount=function(){var e=this.props.children;return w(e)},n.getTab=function(e){return this.tabNodes["tabs-"+e]},n.getChildren=function(){var e=this,t=0,n=this.props,o=n.children,u=n.disabledTabClassName,c=n.focus,f=n.forceRenderTabPanel,p=n.selectedIndex,h=n.selectedTabClassName,v=n.selectedTabPanelClassName;this.tabIds=this.tabIds||[],this.panelIds=this.panelIds||[];var y=this.tabIds.length-this.getTabsCount();while(y++<0)this.tabIds.push(b()),this.panelIds.push(b());return d(o,(function(n){var o=n;if(l(n)){var y=0,g=!1;m&&(g=a.a.Children.toArray(n.props.children).filter(i).some((function(t,n){return document.activeElement===e.getTab(n)}))),o=Object(r["cloneElement"])(n,{children:d(n.props.children,(function(t){var n="tabs-"+y,a=p===y,o={tabRef:function(t){e.tabNodes[n]=t},id:e.tabIds[y],panelId:e.panelIds[y],selected:a,focus:a&&(c||g)};return h&&(o.selectedClassName=h),u&&(o.disabledClassName=u),y++,Object(r["cloneElement"])(t,o)}))})}else if(s(n)){var b={id:e.panelIds[t],tabId:e.tabIds[t],selected:p===t};f&&(b.forceRender=f),v&&(b.selectedClassName=v),t++,o=Object(r["cloneElement"])(n,b)}return o}))},n.isTabFromContainer=function(e){if(!M(e))return!1;var t=e.parentElement;do{if(t===this.node)return!0;if(t.getAttribute("data-tabs"))break;t=t.parentElement}while(t);return!1},n.render=function(){var e=this,t=this.props,n=(t.children,t.className),r=(t.disabledTabClassName,t.domRef),o=(t.focus,t.forceRenderTabPanel,t.onSelect,t.selectedIndex,t.selectedTabClassName,t.selectedTabPanelClassName,T(t,["children","className","disabledTabClassName","domRef","focus","forceRenderTabPanel","onSelect","selectedIndex","selectedTabClassName","selectedTabPanelClassName"]));return a.a.createElement("div",k({},o,{className:y(n),onClick:this.handleClick,onKeyDown:this.handleKeyDown,ref:function(t){e.node=t,r&&r(t)},"data-tabs":!0}),this.getChildren())},t}(r["Component"]);function A(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function P(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}C.defaultProps={className:"react-tabs",focus:!1},C.propTypes={};var L=0,D=1,j=function(e){function t(n){var r;return r=e.call(this,n)||this,r.handleSelected=function(e,t,n){var a=r.props.onSelect,o=r.state.mode;if("function"!==typeof a||!1!==a(e,t,n)){var i={focus:"keydown"===n.type};o===D&&(i.selectedIndex=e),r.setState(i)}},r.state=t.copyPropsToState(r.props,{},n.defaultFocus),r}P(t,e),t.getDerivedStateFromProps=function(e,n){return t.copyPropsToState(e,n)},t.getModeFromProps=function(e){return null===e.selectedIndex?D:L},t.copyPropsToState=function(e,n,r){void 0===r&&(r=!1);var a={focus:r,mode:t.getModeFromProps(e)};if(a.mode===D){var o=_(e.children)-1,i=null;i=null!=n.selectedIndex?Math.min(n.selectedIndex,o):e.defaultIndex||0,a.selectedIndex=i}return a};var n=t.prototype;return n.render=function(){var e=this.props,t=e.children,n=(e.defaultIndex,e.defaultFocus,A(e,["children","defaultIndex","defaultFocus"])),r=this.state,o=r.focus,i=r.selectedIndex;return n.focus=o,n.onSelect=this.handleSelected,null!=i&&(n.selectedIndex=i),a.a.createElement(C,n,t)},t}(r["Component"]);function I(){return I=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},I.apply(this,arguments)}function R(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function z(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}j.defaultProps={defaultFocus:!1,forceRenderTabPanel:!1,selectedIndex:null,defaultIndex:null},j.propTypes={},j.tabsRole="Tabs";var N=function(e){function t(){return e.apply(this,arguments)||this}z(t,e);var n=t.prototype;return n.render=function(){var e=this.props,t=e.children,n=e.className,r=R(e,["children","className"]);return a.a.createElement("ul",I({},r,{className:y(n),role:"tablist"}),t)},t}(r["Component"]);function F(){return F=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},F.apply(this,arguments)}function B(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function V(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}N.defaultProps={className:"react-tabs__tab-list"},N.propTypes={},N.tabsRole="TabList";var H="react-tabs__tab",U=function(e){function t(){return e.apply(this,arguments)||this}V(t,e);var n=t.prototype;return n.componentDidMount=function(){this.checkFocus()},n.componentDidUpdate=function(){this.checkFocus()},n.checkFocus=function(){var e=this.props,t=e.selected,n=e.focus;t&&n&&this.node.focus()},n.render=function(){var e,t=this,n=this.props,r=n.children,o=n.className,i=n.disabled,l=n.disabledClassName,s=(n.focus,n.id),u=n.panelId,c=n.selected,f=n.selectedClassName,p=n.tabIndex,d=n.tabRef,h=B(n,["children","className","disabled","disabledClassName","focus","id","panelId","selected","selectedClassName","tabIndex","tabRef"]);return a.a.createElement("li",F({},h,{className:y(o,(e={},e[f]=c,e[l]=i,e)),ref:function(e){t.node=e,d&&d(e)},role:"tab",id:s,"aria-selected":c?"true":"false","aria-disabled":i?"true":"false","aria-controls":u,tabIndex:p||(c?"0":null)}),r)},t}(r["Component"]);function W(){return W=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},W.apply(this,arguments)}function q(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function $(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}U.defaultProps={className:H,disabledClassName:H+"--disabled",focus:!1,id:null,panelId:null,selected:!1,selectedClassName:H+"--selected"},U.propTypes={},U.tabsRole="Tab";var G="react-tabs__tab-panel",Y=function(e){function t(){return e.apply(this,arguments)||this}$(t,e);var n=t.prototype;return n.render=function(){var e,t=this.props,n=t.children,r=t.className,o=t.forceRender,i=t.id,l=t.selected,s=t.selectedClassName,u=t.tabId,c=q(t,["children","className","forceRender","id","selected","selectedClassName","tabId"]);return a.a.createElement("div",W({},c,{className:y(r,(e={},e[s]=l,e)),role:"tabpanel",id:i,"aria-labelledby":u}),o||l?n:null)},t}(r["Component"]);Y.defaultProps={className:G,forceRender:!1,selectedClassName:G+"--selected"},Y.propTypes={},Y.tabsRole="TabPanel"},1964:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 1360 1360"},e),o.default.createElement("path",{fill:"#119DFF",d:"M1080.177 1084.467c.354-.322 1.108-1.021 2.555-2.404L813.893 807.359c-1.172.887-2.273 1.848-3.495 2.695-22.345 15.512-48.603 20.99-73.59 17.6l96.948 377.646c82.413-12.22 195.673-85.513 246.421-120.833zM693.09 637.132c22.891-15.186 49.64-20.216 74.876-16.01l88.415-463.555c-116.336-21.674-239.205-7.669-350.961 45.067l187.67 434.498zM1231.328 810.035c30.589-165.676-42.52-301.417-42.52-301.417l.015-.008-353.95 153.634c.577.793 1.229 1.516 1.791 2.326 31.529 45.414 21.991 106.994-20.521 141.049l332.54 197.34c32.805-47.598 68.03-113.773 82.645-192.924zM834.302 661.506l208.602-142.957c-10.164-13.462-77.007-98.029-177.018-132.644l-97.269 235.302c25.413 4.403 49.124 18.214 65.685 40.299zM648.714 702.166l-459.61-107.527c-32.188 139.755-12.253 290.923 65.154 422.035l408.846-235.822c-15.628-24.149-20.048-52.436-14.39-78.686zM329.351 480.408l319.894 219.463c5.76-24.115 19.966-46.309 41.941-61.558.467-.321.957-.57 1.424-.884l-203.702-324.95c-.032.021-119.013 88.111-159.557 167.929zM664.928 783.789c-.08-.113-.137-.23-.217-.342L501.627 970.611c45.541 79.689 180.246 104.195 180.326 104.211l49.816-247.875c-26.154-4.84-50.482-19.582-66.841-43.158z"}),o.default.createElement("g",{fill:"#09FFFF"},o.default.createElement("path",{d:"M834.302 661.506l208.602-142.957c-10.164-13.462-77.007-98.029-177.018-132.644l-97.269 235.302c25.413 4.403 49.124 18.214 65.685 40.299zM648.714 702.166L275.1 614.759c-27.23 118.514-10.205 246.698 55.633 357.805l332.37-191.713c-15.627-24.148-20.047-52.435-14.389-78.685zM1203.143 540.826c-.667-1.643-1.286-3.302-1.977-4.941a407.91 407.91 0 0 0-1.864-4.524 480.081 480.081 0 0 0-10.519-22.734l-353.91 153.618c.577.793 1.229 1.516 1.791 2.326 31.529 45.414 21.991 106.994-20.521 141.049l332.54 197.34c30.612-44.416 63.313-105.016 79.433-177.232.979-4.604 1.991-9.209 2.844-13.844.063-.355.145-.695.208-1.049 3.922-21.762 6.308-43.795 7.265-65.922.112-3.041.232-6.084.29-9.088.015-.855.007-1.715.031-2.576 1.052-84.013-20.474-153.912-35.611-192.423zM693.09 637.132c22.891-15.186 49.64-20.216 74.876-16.01L839.838 244.3c-99.287-18.42-204.188-6.179-299.394 39.427L693.09 637.132zM813.893 807.359c-1.172.887-2.273 1.848-3.495 2.695-22.345 15.512-48.603 20.99-73.59 17.6l96.932 377.559c68.136-11.697 134.865-38.029 195.407-80.053 19.131-13.281 36.938-27.752 53.553-43.129L813.893 807.359zM329.351 480.408l319.894 219.463c5.76-24.115 19.966-46.309 41.941-61.558.467-.321.957-.57 1.424-.884l-203.702-324.95c-.032.021-119.013 88.111-159.557 167.929zM664.928 783.789c-.08-.113-.137-.23-.217-.342L501.627 970.611c45.541 79.689 180.246 104.195 180.326 104.211l49.816-247.875c-26.154-4.84-50.482-19.582-66.841-43.158z"})),o.default.createElement("g",{fill:"#119DFF"},o.default.createElement("path",{d:"M693.09 637.132c22.891-15.186 49.64-20.216 74.876-16.01l47.365-248.342c-74.041-13.599-152.315-3.921-222.966 31.139L693.09 637.132zM834.302 661.506l208.602-142.957c-10.107-13.39-76.34-97.101-175.474-132.053-.523-.177-1.036-.382-1.559-.559l-97.254 235.27c25.413 4.403 49.124 18.214 65.685 40.299zM648.714 702.166l-246.229-57.605c-19.871 87.053-7.16 181.197 41.556 262.656l219.063-126.365c-15.628-24.149-20.048-52.436-14.39-78.686zM1068.493 560.841l-233.62 101.403c.577.793 1.229 1.516 1.791 2.326 31.529 45.414 21.991 106.994-20.521 141.049l221.569 131.486c79.858-107.585 93.889-253.884 30.781-376.264zM436.642 554.016l212.603 145.855c5.76-24.115 19.966-46.309 41.941-61.558.467-.321.957-.57 1.424-.884L558.337 423.24c-3.784 2.422-7.576 4.841-11.298 7.429-47.605 33.046-84.598 75.627-110.397 123.347zM813.893 807.359c-1.172.887-2.273 1.848-3.495 2.695-22.345 15.512-48.603 20.99-73.59 17.6l64.246 250.262c53.496-7.561 106.092-27.311 153.497-60.221 13.017-9.039 25.158-18.85 36.591-29.223L813.893 807.359zM664.928 783.789c-.08-.113-.137-.23-.217-.342L501.627 970.611c7.223 12.639 16.704 23.879 27.519 33.867a355.976 355.976 0 0 0 107.989 58.461c.619.201 1.205.377 1.816.578 3.624 1.189 7.271 2.283 10.928 3.352 2.859.836 5.551 1.59 8.114 2.281 4.002 1.078 7.995 2.139 12.021 3.078.306.063.58.129.868.199 3.68.846 7.392 1.551 11.097 2.275l49.791-247.756c-26.155-4.839-50.483-19.581-66.842-43.157z"})),o.default.createElement("g",{fill:"#09FFFF"},o.default.createElement("path",{d:"M664.928 783.789c-.08-.113-.137-.23-.217-.342l-72.41 83.104c31.81 35.506 73.583 58.213 118.081 66.811l21.389-106.414c-26.156-4.841-50.484-19.583-66.843-43.159zM629.277 549.13c-32.862 22.815-57.297 53.224-72.634 87.215l92.602 63.526c5.76-24.115 19.966-46.309 41.941-61.558.467-.321.957-.57 1.424-.884l-57.676-92.016c-1.896 1.226-3.792 2.423-5.657 3.717zM813.893 807.359c-1.172.887-2.273 1.848-3.495 2.695-22.345 15.512-48.603 20.99-73.59 17.6l28.024 109.162c37.33-2.428 74.508-14.703 107.475-37.588a214.348 214.348 0 0 0 17.902-13.891l-76.316-77.978zM648.714 702.166l-105.796-24.75c-11.763 52.371-3.824 108.988 26.001 157.76l94.185-54.324c-15.628-24.149-20.048-52.436-14.39-78.686zM693.09 637.132c22.891-15.186 49.64-20.216 74.876-16.01l20.353-106.699c-46.2-8.264-95.107-1.326-138.641 22.208l43.412 100.501zM834.302 661.506l89.645-61.435c-28.821-40.231-69.132-67.489-113.355-80.389l-41.974 101.525c25.412 4.403 49.123 18.214 65.684 40.299zM935.759 618.455l-100.886 43.79c.577.793 1.229 1.516 1.791 2.326 31.529 45.414 21.991 106.994-20.521 141.049l96.483 57.26c57.746-67.288 68.433-165.378 23.133-244.425z"})))};t.default=u},"19aa":function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},"19b2":function(e,t,n){"use strict";var r=n("e9b4");e.exports=function(e){var t=typeof e;if("string"===t){var n=e;if(e=+e,0===e&&r(n))return!1}else if("number"!==t)return!1;return e-e<1}},"1a23":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchFields=void 0;var r=n("ab5b"),a=c(r),o=n("fc55"),i=c(o),l=n("a7cc"),s=c(l),u=n("4ccf");function c(e){return e&&e.__esModule?e:{default:e}}var f=t.SketchFields=function(e){var t=e.onChange,n=e.rgb,r=e.hsl,o=e.hex,l=e.disableAlpha,c=(0,i.default)({default:{fields:{display:"flex",paddingTop:"4px"},single:{flex:"1",paddingLeft:"6px"},alpha:{flex:"1",paddingLeft:"6px"},double:{flex:"2"},input:{width:"80%",padding:"4px 10% 3px",border:"none",boxShadow:"inset 0 0 0 1px #ccc",fontSize:"11px"},label:{display:"block",textAlign:"center",fontSize:"11px",color:"#222",paddingTop:"3px",paddingBottom:"4px",textTransform:"capitalize"}},disableAlpha:{alpha:{display:"none"}}},{disableAlpha:l}),f=function(e,a){e.hex?s.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},a):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,a:n.a,source:"rgb"},a):e.a&&(e.a<0?e.a=0:e.a>100&&(e.a=100),e.a/=100,t({h:r.h,s:r.s,l:r.l,a:e.a,source:"rgb"},a))};return a.default.createElement("div",{style:c.fields,className:"flexbox-fix"},a.default.createElement("div",{style:c.double},a.default.createElement(u.EditableInput,{style:{input:c.input,label:c.label},label:"hex",value:o.replace("#",""),onChange:f})),a.default.createElement("div",{style:c.single},a.default.createElement(u.EditableInput,{style:{input:c.input,label:c.label},label:"r",value:n.r,onChange:f,dragLabel:"true",dragMax:"255"})),a.default.createElement("div",{style:c.single},a.default.createElement(u.EditableInput,{style:{input:c.input,label:c.label},label:"g",value:n.g,onChange:f,dragLabel:"true",dragMax:"255"})),a.default.createElement("div",{style:c.single},a.default.createElement(u.EditableInput,{style:{input:c.input,label:c.label},label:"b",value:n.b,onChange:f,dragLabel:"true",dragMax:"255"})),a.default.createElement("div",{style:c.alpha},a.default.createElement(u.EditableInput,{style:{input:c.input,label:c.label},label:"a",value:Math.round(100*n.a),onChange:f,dragLabel:"true",dragMax:"100"})))};t.default=f},"1a2d":function(e,t,n){var r=n("42a2"),a=n("1310"),o="[object Map]";function i(e){return a(e)&&r(e)==o}e.exports=i},"1a7e":function(e,t,n){"use strict";function r(e){return null!=e&&""!=e}e.exports={notEmptyKey:r}},"1a8c":function(e,t){function n(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}e.exports=n},"1a8c1":function(e,t,n){"use strict";var r=n("19b2"),a=n("d560").isArrayOrTypedArray;t.aggNums=function(e,n,o,i){var l,s;if((!i||i>o.length)&&(i=o.length),r(n)||(n=!1),a(o[0])){for(s=new Array(i),l=0;l<i;l++)s[l]=t.aggNums(e,n,o[l]);o=s}for(l=0;l<i;l++)r(n)?r(o[l])&&(n=e(+n,+o[l])):n=o[l];return n},t.len=function(e){return t.aggNums((function(e){return e+1}),0,e)},t.mean=function(e,n){return n||(n=t.len(e)),t.aggNums((function(e,t){return e+t}),0,e)/n},t.midRange=function(e){if(void 0!==e&&0!==e.length)return(t.aggNums(Math.max,null,e)+t.aggNums(Math.min,null,e))/2},t.variance=function(e,n,a){return n||(n=t.len(e)),r(a)||(a=t.mean(e,n)),t.aggNums((function(e,t){return e+Math.pow(t-a,2)}),0,e)/n},t.stdev=function(e,n,r){return Math.sqrt(t.variance(e,n,r))},t.median=function(e){var n=e.slice().sort();return t.interp(n,.5)},t.interp=function(e,t){if(!r(t))throw"n should be a finite number";if(t=t*e.length-.5,t<0)return e[0];if(t>e.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},"1b00":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"}))};e.exports=l},"1b23":function(e,t,n){"use strict";function r(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE}e.exports=r},"1b2b":function(e,t){e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<o.length;s++){var u=o[s];if(!l(u))return!1;var c=e[u],f=t[u];if(a=n?n.call(r,c,f,u):void 0,!1===a||void 0===a&&c!==f)return!1}return!0}},"1bac":function(e,t,n){var r=n("7d1f"),a=n("a029"),o=n("9934");function i(e){return r(e,o,a)}e.exports=i},"1be4":function(e,t,n){var r=n("d066");e.exports=r("document","documentElement")},"1c0b":function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},"1c3c":function(e,t,n){var r=n("9e69"),a=n("2474"),o=n("9638"),i=n("a2be"),l=n("edfa"),s=n("ac41"),u=1,c=2,f="[object Boolean]",p="[object Date]",d="[object Error]",h="[object Map]",v="[object Number]",m="[object RegExp]",y="[object Set]",g="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",_="[object DataView]",w=r?r.prototype:void 0,k=w?w.valueOf:void 0;function T(e,t,n,r,w,T,E){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!T(new a(e),new a(t)));case f:case p:case v:return o(+e,+t);case d:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case h:var O=l;case y:var M=r&u;if(O||(O=s),e.size!=t.size&&!M)return!1;var S=E.get(e);if(S)return S==t;r|=c,E.set(e,t);var C=i(O(e),O(t),r,w,T,E);return E["delete"](e),C;case b:if(k)return k.call(e)==k.call(t)}return!1}e.exports=T},"1c40":function(e,t,n){"use strict";var r=n("dec3"),a=n("1dec"),o=n("2127"),i=n("9168"),l=n("f1df");function s(e,t){var n=l(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return i(e,1);var r=t.currentTarget.ownerDocument,l=r.defaultView.getSelection(),s=l.getRangeAt(0);return s=a(s),o(e,null,s.endContainer,s.endOffset,s.startContainer,s.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:r.push(e,n,"remove-range")}e.exports=s},"1c7e":function(e,t,n){var r=n("b622"),a=r("iterator"),o=!1;try{var i=0,l={next:function(){return{done:!!i++}},return:function(){o=!0}};l[a]=function(){return this},Array.from(l,(function(){throw 2}))}catch(s){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var r={};r[a]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(s){}return n}},"1ca4":function(e,t,n){"use strict";(function(t){var r=n("d8db"),a=/\.textClipping$/,o={"text/plain":!0,"text/html":!0,"text/rtf":!0},i=5e3;function l(e,t){var n=0,r=[];e.forEach((function(a){s(a,(function(a){n++,a&&r.push(a.slice(0,i)),n==e.length&&t(r.join("\r"))}))}))}function s(e,n){if(!t.FileReader||e.type&&!(e.type in o))n("");else{if(""===e.type){var i="";return a.test(e.name)&&(i=e.name.replace(a,"")),void n(i)}var l=new FileReader;l.onload=function(){var e=l.result;"string"!==typeof e&&r(!1),n(e)},l.onerror=function(){n("")},l.readAsText(e)}}e.exports=l}).call(this,n("c8ba"))},"1cdc":function(e,t,n){var r=n("342f");e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1cec":function(e,t,n){var r=n("0b07"),a=n("2b3e"),o=r(a,"Promise");e.exports=o},"1d16":function(e,t,n){"use strict";e.exports=function(e){return e}},"1d35":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sketch=void 0;var r=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},a=n("ab5b"),o=y(a),i=n("d7bc"),l=y(i),s=n("fc55"),u=y(s),c=n("4245"),f=y(c),p=n("4ccf"),d=n("1a23"),h=y(d),v=n("7870"),m=y(v);function y(e){return e&&e.__esModule?e:{default:e}}var g=t.Sketch=function(e){var t=e.width,n=e.rgb,a=e.hex,i=e.hsv,l=e.hsl,s=e.onChange,c=e.onSwatchHover,d=e.disableAlpha,v=e.presetColors,y=e.renderers,g=e.styles,b=void 0===g?{}:g,x=e.className,_=void 0===x?"":x,w=(0,u.default)((0,f.default)({default:r({picker:{width:t,padding:"10px 10px 0",boxSizing:"initial",background:"#fff",borderRadius:"4px",boxShadow:"0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"},saturation:{width:"100%",paddingBottom:"75%",position:"relative",overflow:"hidden"},Saturation:{radius:"3px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},controls:{display:"flex"},sliders:{padding:"4px 0",flex:"1"},color:{width:"24px",height:"24px",position:"relative",marginTop:"4px",marginLeft:"4px",borderRadius:"3px"},activeColor:{absolute:"0px 0px 0px 0px",borderRadius:"2px",background:"rgba("+n.r+","+n.g+","+n.b+","+n.a+")",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},hue:{position:"relative",height:"10px",overflow:"hidden"},Hue:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"},alpha:{position:"relative",height:"10px",marginTop:"4px",overflow:"hidden"},Alpha:{radius:"2px",shadow:"inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"}},b),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},b),{disableAlpha:d});return o.default.createElement("div",{style:w.picker,className:"sketch-picker "+_},o.default.createElement("div",{style:w.saturation},o.default.createElement(p.Saturation,{style:w.Saturation,hsl:l,hsv:i,onChange:s})),o.default.createElement("div",{style:w.controls,className:"flexbox-fix"},o.default.createElement("div",{style:w.sliders},o.default.createElement("div",{style:w.hue},o.default.createElement(p.Hue,{style:w.Hue,hsl:l,onChange:s})),o.default.createElement("div",{style:w.alpha},o.default.createElement(p.Alpha,{style:w.Alpha,rgb:n,hsl:l,renderers:y,onChange:s}))),o.default.createElement("div",{style:w.color},o.default.createElement(p.Checkboard,null),o.default.createElement("div",{style:w.activeColor}))),o.default.createElement(h.default,{rgb:n,hsl:l,hex:a,onChange:s,disableAlpha:d}),o.default.createElement(m.default,{colors:v,onClick:s,onSwatchHover:c}))};g.propTypes={disableAlpha:l.default.bool,width:l.default.oneOfType([l.default.string,l.default.number]),styles:l.default.object},g.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},t.default=(0,p.ColorWrap)(g)},"1d67":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n("7515")),a=h(n("88e7")),o=h(n("d7bc")),i=d(n("ab5b")),l=n("e419"),s=h(n("ad9c")),u=n("8704"),c=n("4578"),f=n("c85e");function p(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!==v(e)&&"function"!==typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function h(e){return e&&e.__esModule?e:{default:e}}function v(e){return v="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},v(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 b(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function x(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&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=E();return function(){var n,r=O(e);if(t){var a=O(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==v(t)&&"function"!==typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(){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}}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var M=function(e){x(n,e);var t=w(n);function n(){return y(this,n),t.apply(this,arguments)}return b(n,[{key:"canAddAxis",value:function(){var e=this,t=this.props.fullContainer[this.props.attr],n=this.props.fullContainer.index;return this.context.fullData.some((function(r){return r.index!==n&&r[e.props.attr]===t}))}},{key:"addAndUpdateAxis",value:function(){var e,t=this.props,n=t.attr,r=t.updateContainer,a=this.context,o=a.onUpdate,i=a.fullLayout._subplots,s=Number(i[n][i[n].length-1].charAt(1))||1;r(m({},n,n.charAt(0)+(s+1)));var u=null;"yaxis"===n?u="right":"xaxis"===n&&(u="top"),o({type:l.EDITOR_ACTIONS.UPDATE_LAYOUT,payload:{update:(e={},m(e,"".concat(n+(s+1),".side"),u),m(e,"".concat(n+(s+1),".overlaying"),"yaxis"!==n&&"xaxis"!==n?null:i[n][i[n].length-1]),e)}})}},{key:"updateAxis",value:function(e){var t=this,n=this.props.fullContainer[this.props.attr],r=[];n===e||this.context.fullData.some((function(e){return e[t.props.attr]===n&&e.index!==t.props.fullContainer.index}))||r.push(n),this.context.onUpdate({type:l.EDITOR_ACTIONS.UPDATE_TRACES,payload:{axesToBeGarbageCollected:r,update:m({},this.props.attr,e),traceIndexes:[this.props.fullContainer.index]}})}},{key:"render",value:function(){var e=this,t=i.default.createElement(u.PlusIcon,null),n=this.canAddAxis()?i.default.createElement(s.default,{variant:"no-text",icon:t,onClick:function(){return e.addAndUpdateAxis()}}):i.default.createElement(s.default,{variant:"no-text--disabled",icon:t,onClick:function(){}});return i.default.createElement(r.default,{label:this.props.label,attr:this.props.attr,clearable:!1,options:this.props.options,updatePlot:function(t){return e.updateAxis(t)},extraComponent:n})}}]),n}(i.Component);M.propTypes={attr:o.default.string,label:o.default.string,options:o.default.array,container:o.default.object,fullContainer:o.default.object,updateContainer:o.default.func},M.contextTypes={fullLayout:o.default.object,data:o.default.array,fullData:o.default.array,onUpdate:o.default.func};var S=(0,c.connectToContainer)(M),C=function(e){x(n,e);var t=w(n);function n(){return y(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){var e=this,t=(0,c.traceTypeToAxisType)(this.props.container.type),n=1===this.context.data.filter((function(e){return(0,c.traceTypeToAxisType)(e.type)===t})).length;if(n)return null;var r=this.context,o=r.fullLayout,l=r.localize,s=[];function u(e){return o._subplots[e].map((function(e){return{label:(0,c.getParsedTemplateString)((0,c.getAxisTitle)(o[(0,c.axisIdToAxisName)(e)]),{meta:o.meta}),value:e}}))}return"cartesian"===t&&["xaxis","yaxis"].forEach((function(e,t){s.push(i.default.createElement(S,{key:t,attr:e,label:e.charAt(0).toUpperCase()+l(" Axis"),options:u(e)}))})),i.default.createElement(f.PlotlySection,{name:l("Axes to Use")},s,i.default.createElement(a.default,null,l("You can style and position your axes in the "),i.default.createElement("a",{onClick:function(){return e.context.setPanel("Structure","Subplots")}},l("Subplots")),l(" panel.")))}}]),n}(i.Component);C.propTypes={container:o.default.object,fullContainer:o.default.object},C.contextTypes={data:o.default.array,fullData:o.default.array,fullLayout:o.default.object,localize:o.default.func,setPanel:o.default.func};var A=(0,c.connectToContainer)(C,{modifyPlotProps:function(e,t,n){var r=t.data,a=n.fullContainer;n.isVisible=r.length>1&&r[a.index]&&"cartesian"===(0,c.traceTypeToAxisType)(r[a.index].type)}});t.default=A},"1d80":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},"1dd9":function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=n("ab5b"),o=n("6152"),i=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},n.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=o({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e}),n={whiteSpace:"pre-wrap"};return a.createElement("div",{className:t},a.createElement("div",{className:o("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:n},this.props.text))},t}(a.Component);e.exports=i},"1dde":function(e,t,n){var r=n("d039"),a=n("b622"),o=n("2d00"),i=a("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[i]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"1dec":function(e,t,n){"use strict";var r=n("8cb4"),a=n("174f"),o=n("d79f"),i=n("d8db");function l(e){var t=getComputedStyle(e),n=a(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||i(!1),o.appendChild(r);var l=r.getBoundingClientRect();return o.removeChild(r),l.height}function s(e,t){for(var n=1/0,r=1/0,a=-1/0,o=-1/0,i=0;i<e.length;i++){var l=e[i];0!==l.width&&1!==l.width&&(n=Math.min(n,l.top),r=Math.min(r,l.bottom),a=Math.max(a,l.top),o=Math.max(o,l.bottom))}return a<=r&&a-n<t&&o-r<t}function u(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}function c(e){e.collapsed||i(!1),e=e.cloneRange();var t=e.startContainer;1!==t.nodeType&&(t=t.parentNode);var n=l(t),a=e.endContainer,c=e.endOffset;e.setStart(e.startContainer,0);while(s(o(e),n))if(a=e.startContainer,c=e.startOffset,a.parentNode||i(!1),e.setStartBefore(a),1===a.nodeType&&"inline"!==getComputedStyle(a).display)break;var f=a,p=c-1;do{for(var d=f.nodeValue,h=p;h>=0;h--)if(!(null!=d&&h>0&&r.isSurrogatePair(d,h-1))){if(e.setStart(f,h),!s(o(e),n))break;a=f,c=h}if(-1===h||0===f.childNodes.length)break;f=f.childNodes[h],p=u(f)}while(1);return e.setStart(a,c),e}e.exports=c},"1e54":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Hue=void 0;var r=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}}(),a=n("ab5b"),o=f(a),i=n("fc55"),l=f(i),s=n("b2bb"),u=c(s);function c(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 f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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}function h(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)}var v=t.Hue=function(e){function t(){var e,n,r,a;p(this,t);for(var o=arguments.length,i=Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n=r,r.handleChange=function(e){var t=u.calculateChange(e,r.props.direction,r.props.hsl,r.container);t&&"function"===typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},a=n,d(r,a)}return h(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.direction,n=void 0===t?"horizontal":t,r=(0,l.default)({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:100*this.props.hsl.h/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-100*this.props.hsl.h/360+100+"%"}}},{vertical:"vertical"===n});return o.default.createElement("div",{style:r.hue},o.default.createElement("div",{className:"hue-"+n,style:r.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.default.createElement("style",null,"\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "),o.default.createElement("div",{style:r.pointer},this.props.pointer?o.default.createElement(this.props.pointer,this.props):o.default.createElement("div",{style:r.slider}))))}}]),t}(a.PureComponent||a.Component);t.default=v},"1e9b":function(e,t,n){"use strict";function r(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0,n="x"==e?t:3&t|8;return n.toString(16)}))}e.exports=r},"1ea7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32.2 29.5"},e),o.default.createElement("path",{d:"M3.1 3.2h26v5.1h-26zM7.6 9.7h17.3v5.1H7.6zM9.6 16.1h13.3v5H9.6zM12 22.6h8.5v3.9H12z"}))};t.default=u},"1eb8":function(e,t,n){"use strict";var r=new RegExp("\r","g");function a(e){return e.replace(r,"")}e.exports=a},"1ed1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M8.688 0h1.313v32H8.688zm6.625 0h1.375v32h-1.375zm0 5.313h1.375c.75 0 1.313.563 1.313 1.375v6.625c0 .813-.563 1.375-1.313 1.375h-1.375c-.75 0-1.313-.563-1.313-1.375V6.688c0-.813.563-1.375 1.313-1.375zM8.688 20h1.313c.813 0 1.313.563 1.313 1.313v6.688c0 .813-.5 1.313-1.313 1.313H8.688c-.813 0-1.375-.5-1.375-1.313v-6.688c0-.75.563-1.313 1.375-1.313zM2 0h1.313v32H2zm0 10.688h1.313c.813 0 1.375.5 1.375 1.313v6.688c0 .75-.563 1.313-1.375 1.313H2c-.813 0-1.313-.563-1.313-1.313v-6.688c0-.813.5-1.313 1.313-1.313zM22 0h1.313v32H22zm0 14.688h1.313c.813 0 1.375.5 1.375 1.313v6.688c0 .75-.563 1.313-1.375 1.313H22c-.813 0-1.313-.563-1.313-1.313v-6.688c0-.813.5-1.313 1.313-1.313zM28.688 0h1.313v32h-1.313zm0 2.688h1.313c.813 0 1.313.5 1.313 1.313v6.688c0 .75-.5 1.313-1.313 1.313h-1.313c-.813 0-1.375-.563-1.375-1.313V4.001c0-.813.563-1.313 1.375-1.313z"}))};t.default=u},"1efc":function(e,t){function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}e.exports=n},"1f4a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32.2 29.5"},e),o.default.createElement("path",{d:"M9.5 18.3l-3.1-6h19.4l-3.1 6H9.5zM12.9 25.3l-3.1-6h12.6l-3.1 6h-6.4zM6.2 11.3L3 5.2h26.2l-3.1 6.1H6.2z"}))};t.default=u},"1fb3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedDropdownCustom=void 0;var r=p(n("ab5b")),a=c(n("d7bc")),o=n("4578"),i=n("e419"),l=c(n("5174")),s=c(n("f51b")),u=c(n("090e"));function c(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(e){return d="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},d(e)}function h(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 b(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function x(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&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=E();return function(){var n,r=O(e);if(t){var a=O(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(){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}}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var M=function(e){x(n,e);var t=w(n);function n(e,r){var a;return y(this,n),a=t.call(this,e,r),a.setValue=a.setValue.bind(T(a)),a.setLocals=a.setLocals.bind(T(a)),a.setLocals(e),a.state={custom:a.value===e.customOpt||!a.props.options.map((function(e){return e.value})).includes(a.value)},a}return b(n,[{key:"componentWillReceiveProps",value:function(e){this.setLocals(e)}},{key:"setLocals",value:function(e){this.value=void 0===e.fullValue||e.fullValue===i.MULTI_VALUED_PLACEHOLDER?this.props.defaultOpt:e.fullValue}},{key:"setValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.value=e;var n=this.props.customOpt;this.setState({custom:(t||e===n)&&""!==e}),this.props.updateContainer(m({},this.props.attr,e!==n||t?e:n))}},{key:"render",value:function(){var e=this,t=this.props,n=t.options,a=t.attr,o=t.customOpt,i=""!==this.value&&n.map((function(e){return e.value})).includes(this.value)||!this.state.custom?this.value:o;return r.default.createElement(l.default,this.props,r.default.createElement(s.default,{backgroundDark:this.props.backgroundDark,options:n,value:i,onChange:this.setValue,clearable:this.props.clearable,components:this.props.components,placeholder:this.props.placeholder}),this.state.custom&&r.default.createElement(u.default,{attr:a,updatePlot:function(t){return e.setValue(t,!0)},onChange:function(t){t&&e.setValue(t,!0)}}))}}]),n}(r.Component);t.UnconnectedDropdownCustom=M,M.propTypes=v({backgroundDark:a.default.bool,fullValue:a.default.any,updatePlot:a.default.func,clearable:a.default.bool,components:a.default.object,placeholder:a.default.any,defaultOpt:a.default.oneOfType([a.default.number,a.default.bool,a.default.string]),customOpt:a.default.oneOfType([a.default.number,a.default.bool,a.default.string]),label:a.default.string,attr:a.default.string},l.default.propTypes),M.contextTypes={updateContainer:a.default.func},M.displayName="UnconnectedDropdownCustom";var S=(0,o.connectToContainer)(M);t.default=S},"1fc8":function(e,t,n){var r=n("42454");function a(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}e.exports=a},"1feb":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("d7bc")),a=l(n("ab5b")),o=n("4578");function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){d(n,e);var t=v(n);function n(){return c(this,n),t.apply(this,arguments)}return p(n,[{key:"render",value:function(){var e=this.props,t=e.onClick,n=e.label,r=e.active;return a.default.createElement("div",{onClick:t,className:(0,o.bem)("sidebar__item",[r?"is-active":""])},a.default.createElement("div",{className:(0,o.bem)("sidebar__item","wrapper")},a.default.createElement("div",{className:(0,o.bem)("sidebar__item","label")},n)))}}]),n}(a.Component);t.default=x,x.propTypes={active:r.default.bool,label:r.default.string,onClick:r.default.func}},"201b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n("a36d")),a=u(n("d7bc")),o=s(n("ab5b")),i=n("ca44");function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="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},c(e)}function f(e,t){if(null==e)return{};var n,r,a=p(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)&&(a[n]=e[n])}return a}function p(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function m(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&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function g(e){var t=_();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=function(e){m(n,e);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return v(n,[{key:"hasTrace",value:function(){return this.context.fullData.filter((function(e){return e.visible})).length>0}},{key:"render",value:function(){var e=this,t=this.context.localize,n=this.props,a=n.children,l=f(n,["children"]);return this.props.visible?this.hasTrace()?o.default.createElement(i.LayoutPanel,l,a):o.default.createElement(r.default,{heading:t("Looks like there aren't any traces defined yet.")},o.default.createElement("p",null,t("Go to the "),o.default.createElement("a",{onClick:function(){return e.context.setPanel("Structure","Traces")}},t("Traces")),t(" panel under Structure to define traces."))):null}}]),n}(o.Component);k.propTypes={children:a.default.node,visible:a.default.bool},k.defaultProps={visible:!0},k.contextTypes={fullData:a.default.array,localize:a.default.func,setPanel:a.default.func};var T=k;t.default=T},"20ec":function(e,t){function n(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}e.exports=n},2124:function(e,t,n){"use strict";var r=n("42fc"),a=n("7f23"),o=n("dec3"),i=n("91cf"),l=n("174f"),s=n("1ca4"),u=n("e514"),c=n("59a1"),f=n("4f8d"),p=n("8164");function d(e,t){var n=null,r=null,a=l(e.currentTarget);if("function"===typeof a.caretRangeFromPoint){var o=a.caretRangeFromPoint(e.x,e.y);n=o.startContainer,r=o.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=p(n),r=p(r);var s=p(i(n));return u(t,s,r,s,r)}var h={onDragEnd:function(e){e.exitCurrentMode(),v(e)},onDrop:function(e,t){var n=new r(t.nativeEvent.dataTransfer),a=e._latestEditorState,o=d(t.nativeEvent,a);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&f(e.props.handleDroppedFiles(o,i)))return;s(i,(function(t){t&&e.update(y(a,o,t))}))}else{var l=e._internalDrag?"internal":"external";e.props.handleDrop&&f(e.props.handleDrop(o,n,l))||(e._internalDrag?e.update(m(a,o)):e.update(y(a,o,n.getText()))),v(e)}}}};function v(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:c(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function m(e,t){var n=a.moveText(e.getCurrentContent(),e.getSelection(),t);return o.push(e,n,"insert-fragment")}function y(e,t,n){var r=a.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return o.push(e,r,"insert-fragment")}e.exports=h},2127:function(e,t,n){"use strict";var r=n("91cf"),a=n("cce4"),o=n("e514"),i=n("d8db"),l=n("1b23"),s=n("8164");function u(e,t,n,a,i,l){var u=n.nodeType===Node.TEXT_NODE,c=i.nodeType===Node.TEXT_NODE;if(u&&c)return{selectionState:o(e,s(r(n)),a,s(r(i)),l),needsRecovery:!1};var f=null,d=null,h=!0;return u?(f={key:s(r(n)),offset:a},d=p(t,i,l)):c?(d={key:s(r(i)),offset:l},f=p(t,n,a)):(f=p(t,n,a),d=p(t,i,l),n===i&&a===l&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:o(e,f.key,f.offset,d.key,d.offset),needsRecovery:h}}function c(e){while(e.firstChild&&(l(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||a(e.firstChild)))e=e.firstChild;return e}function f(e){while(e.lastChild&&(l(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||a(e.lastChild)))e=e.lastChild;return e}function p(e,t,n){var o=t,u=r(o);if(null!=u||e&&(e===o||e.firstChild===o)||i(!1),e===o){o=o.firstChild,l(o)||i(!1);var p=o;o=p,"true"!==o.getAttribute("data-contents")&&i(!1),n>0&&(n=o.childNodes.length)}if(0===n){var h=null;if(null!=u)h=u;else{var v=c(o);h=s(a(v))}return{key:h,offset:0}}var m=o.childNodes[n-1],y=null,g=null;if(a(m)){var b=f(m);y=s(a(b)),g=d(b)}else y=s(u),g=d(m);return{key:y,offset:g}}function d(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=u},"217a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M.875.25h.313c.5.125.875.5.875 1v4.938C6.251 5.125 10.501 4.063 14.688 3V1.25c0-.5.375-.875.813-1h.375c.438.125.875.5.875 1v2.188c4.375 1.688 8.813 3.313 13.188 4.938V1.251c0-.438.375-.875.875-1h.313c.438.125.75.438.875.813v29.875c-.125.375-.375.688-.75.813h-.563a1.07 1.07 0 0 1-.75-1v-3c-2.25-1.813-4.438-3.625-6.688-5.438a487.954 487.954 0 0 1-6.5 5.313v3.125c0 .438-.375.875-.75 1h-.563a1.07 1.07 0 0 1-.75-1v-2.75c-4.188-.813-8.438-1.563-12.625-2.375v5.125c0 .438-.375.875-.75 1H.75a1.18 1.18 0 0 1-.75-.875V1.127C.063.689.438.377.875.252M2.063 7.25v11.313c4.188-1.063 8.375-2.125 12.625-3.188V4.062A3664.18 3664.18 0 0 0 2.063 7.25M16.75 4.563v11.125a487.954 487.954 0 0 0 6.5 5.313c2.188-1.813 4.375-3.563 6.625-5.375 0 0 .063-.063.063-.125v-6c-4.375-1.625-8.813-3.313-13.188-4.938M2.063 19.625v4.938c4.188.813 8.375 1.563 12.625 2.375V16.5c-4.25 1-8.438 2.063-12.625 3.125m22.125 2c-.063 0-.063 0-.125.063 2 1.563 3.938 3.125 5.875 4.75v-9.5c-1.938 1.563-3.875 3.125-5.75 4.688m-7.438-4.563v9.188c1.875-1.5 3.75-3.063 5.688-4.563a366.502 366.502 0 0 0-5.688-4.625z"}))};t.default=u},"21db":function(e,t,n){"use strict";var r=n("7301"),a=r("draft_tree_data_support");e.exports=n(a?"62b1":"6373")},2266:function(e,t,n){var r=n("825a"),a=n("e95a"),o=n("50c4"),i=n("0366"),l=n("35a1"),s=n("9bdd"),u=function(e,t){this.stopped=e,this.result=t},c=e.exports=function(e,t,n,c,f){var p,d,h,v,m,y,g,b=i(t,n,c?2:1);if(f)p=e;else{if(d=l(e),"function"!=typeof d)throw TypeError("Target is not iterable");if(a(d)){for(h=0,v=o(e.length);v>h;h++)if(m=c?b(r(g=e[h])[0],g[1]):b(e[h]),m&&m instanceof u)return m;return new u(!1)}p=d.call(e)}y=p.next;while(!(g=y.call(p)).done)if(m=s(p,b,g.value,c),"object"==typeof m&&m&&m instanceof u)return m;return new u(!1)};c.stop=function(e){return new u(!0,e)}},2286:function(e,t,n){var r=n("85e3"),a=Math.max;function o(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){var o=arguments,i=-1,l=a(o.length-t,0),s=Array(l);while(++i<l)s[i]=o[t+i];i=-1;var u=Array(t+1);while(++i<t)u[i]=o[i];return u[t]=n(s),r(e,this,u)}}e.exports=o},2291:function(e,t,n){"use strict";var r=n("4766");e.exports=function(e,t){for(var n=e._context.locale,a=0;a<2;a++){for(var o=e._context.locales,i=0;i<2;i++){var l=(o[n]||{}).dictionary;if(l){var s=l[t];if(s)return s}o=r.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return t}},"22af":function(e,t,n){"use strict";var r="-",a={encode:function(e,t,n){return e+r+t+r+n},decode:function(e){var t=e.split(r).reverse(),n=t[0],a=t[1],o=t.slice(2);return{blockKey:o.reverse().join(r),decoratorKey:parseInt(a,10),leafKey:parseInt(n,10)}}};e.exports=a},"22d4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var r=u(n("ab5b")),a=l(n("d7bc")),o=n("4578"),i=n("e419");function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return c="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},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function _(e){var t=function(t){h(a,t);var n=m(a);function a(e,t){var r;return f(this,a),r=n.call(this,e,t),r.deleteTransform=r.deleteTransform.bind(g(r)),r.updateTransform=r.updateTransform.bind(g(r)),r.setLocals(e,t),r}return d(a,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.transformIndex,r=t.container,a=t.fullContainer,o=r.transforms||[],i=a.transforms||[];this.container=o[n],this.fullContainer=i[n]}},{key:"getChildContext",value:function(){var e=this;return{getValObject:function(t){return e.context.getValObject?e.context.getValObject("transforms[].".concat(t)):null},updateContainer:this.updateTransform,deleteContainer:this.deleteTransform,container:this.container,fullContainer:this.fullContainer}}},{key:"updateTransform",value:function(e){var t={},n=this.props.transformIndex;for(var r in e){var a="transforms[".concat(n,"].").concat(r);t[a]=e[r]}this.context.updateContainer(t)}},{key:"deleteTransform",value:function(){this.context.onUpdate&&this.context.onUpdate({type:i.EDITOR_ACTIONS.DELETE_TRANSFORM,payload:{traceIndex:this.context.fullContainer.index,transformIndex:this.props.transformIndex}})}},{key:"render",value:function(){return r.default.createElement(e,this.props)}}]),a}(r.Component);t.displayName="TransformConnected".concat((0,o.getDisplayName)(e)),t.propTypes={transformIndex:a.default.number.isRequired},t.contextTypes={container:a.default.object,fullContainer:a.default.object,data:a.default.array,onUpdate:a.default.func,updateContainer:a.default.func,getValObject:a.default.func},t.childContextTypes={updateContainer:a.default.func,deleteContainer:a.default.func,container:a.default.object,fullContainer:a.default.object,getValObject:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},2344:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M27.625 32H5.812a.722.722 0 0 1-.75-.75V.75c0-.438.313-.75.75-.75h21.813c.438 0 .75.313.75.75v30.5c0 .438-.313.75-.75.75zM6.563 30.563h20.375V1.438H6.563zm.687-24.75H4.375c-.438 0-.75-.313-.75-.75s.313-.688.75-.688H7.25c.438 0 .75.25.75.688s-.313.75-.75.75zm0 4.375H4.375c-.438 0-.75-.313-.75-.75s.313-.688.75-.688H7.25c.438 0 .75.25.75.688s-.313.75-.75.75zm0 4.375H4.375c-.438 0-.75-.313-.75-.75s.313-.75.75-.75H7.25c.438 0 .75.313.75.75s-.313.75-.75.75zm0 4.375H4.375c-.438 0-.75-.313-.75-.75s.313-.75.75-.75H7.25c.438 0 .75.313.75.75s-.313.75-.75.75zm0 4.312H4.375c-.438 0-.75-.25-.75-.688s.313-.75.75-.75H7.25c.438 0 .75.313.75.75s-.313.688-.75.688zm0 4.375H4.375c-.438 0-.75-.25-.75-.688s.313-.75.75-.75H7.25c.438 0 .75.313.75.75s-.313.688-.75.688zm6-5.937v-10.75h4.813c1 0 1.75.125 2.125.25.438.188.875.625 1.188 1 .313.438.438 1.063.438 1.625 0 .75-.313 1.438-.75 1.875-.438.625-1.25.875-2.313 1.063.438.125.75.25.875.563.438.438.875.875 1.188 1.438l1.875 2.938h-1.75l-1.438-2.188c-.438-.563-.75-1.188-1-1.438-.313-.438-.625-.625-.75-.75s-.438-.313-.563-.313h-2.5v4.813H13.25zm1.438-6h3.063c.563 0 1.188 0 1.625-.125s.563-.313.813-.563c.188-.313.313-.625.313-1.063 0-.563-.125-.875-.563-1.313-.438-.25-1-.438-1.75-.438h-3.5z"}))};t.default=u},"234d":function(e,t,n){var r=n("e380"),a=500;function o(e){var t=r(e,(function(e){return n.size===a&&n.clear(),e})),n=t.cache;return t}e.exports=o},2351:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M19,21H8V7H19M19,5H8C6.9,5 6,5.9 6,7V21C6,22.1 6.9,23 8,23H19C20.1,23 21,22.1 21,21V7C21,5.9 20.1,5 19,5M16,1H4C2.9,1 2,1.9 2,3V17H4V3H16V1Z"}))};e.exports=l},2365:function(e,t,n){"use strict";var r=n("24be"),a=n("5530"),o=n("24f7"),i=n("d8db"),l=o.OrderedMap,s=o.List,u=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},c=function(e,t,n,r,a){if(!a)return e;var o="after"===r,i=t.getKey(),l=n.getKey(),c=t.getParentKey(),f=t.getNextSiblingKey(),p=t.getPrevSiblingKey(),d=n.getParentKey(),h=o?n.getNextSiblingKey():l,v=o?l:n.getPrevSiblingKey();return e.withMutations((function(e){u(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t["delete"](t.indexOf(i))})})),u(p,e,(function(e){return e.merge({nextSibling:f})})),u(f,e,(function(e){return e.merge({prevSibling:p})})),u(h,e,(function(e){return e.merge({prevSibling:i})})),u(v,e,(function(e){return e.merge({nextSibling:i})})),u(d,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(l),r=o?n+1:0!==n?n-1:0,a=t.toArray();return a.splice(r,0,i),e.merge({children:s(a)})})),u(i,e,(function(e){return e.merge({nextSibling:h,prevSibling:v,parent:d})}))}))},f=function(e,t,n,o){"replace"===o&&i(!1);var s=n.getKey(),u=t.getKey();u===s&&i(!1);var f=e.getBlockMap(),p=t instanceof r,d=[t],h=f["delete"](u);p&&(d=[],h=f.withMutations((function(e){var n=t.getNextSiblingKey(),r=a(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===u})).takeWhile((function(e){var t=e.getKey(),a=t===u,o=n&&t!==n,i=!n&&e.getParentKey()&&(!r||t!==r);return!!(a||o||i)})).forEach((function(t){d.push(t),e["delete"](t.getKey())}))})));var v=h.toSeq().takeUntil((function(e){return e===n})),m=h.toSeq().skipUntil((function(e){return e===n})).skip(1),y=d.map((function(e){return[e.getKey(),e]})),g=l();if("before"===o){var b=e.getBlockBefore(s);b&&b.getKey()===t.getKey()&&i(!1),g=v.concat([].concat(y,[[s,n]]),m).toOrderedMap()}else if("after"===o){var x=e.getBlockAfter(s);x&&x.getKey()===u&&i(!1),g=v.concat([[s,n]].concat(y),m).toOrderedMap()}return e.merge({blockMap:c(g,t,n,o,p),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:u,focusKey:u})})};e.exports=f},"23c3":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n("7d90"),o=n("9a31"),i=n("d8db"),l=function(){function e(e){r(this,"_defaultDir",void 0),r(this,"_lastDir",void 0),e?o.isStrong(e)||i(!1):e=o.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=a.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=l},"23cb":function(e,t,n){var r=n("a691"),a=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?a(n+t,0):o(n,t)}},"23e7":function(e,t,n){var r=n("da84"),a=n("06cf").f,o=n("9112"),i=n("6eeb"),l=n("ce4e"),s=n("e893"),u=n("94ca");e.exports=function(e,t){var n,c,f,p,d,h,v=e.target,m=e.global,y=e.stat;if(c=m?r:y?r[v]||l(v,{}):(r[v]||{}).prototype,c)for(f in t){if(d=t[f],e.noTargetGet?(h=a(c,f),p=h&&h.value):p=c[f],n=u(m?f:v+(y?".":"#")+f,e.forced),!n&&void 0!==p){if(typeof d===typeof p)continue;s(d,p)}(e.sham||p&&p.sham)&&o(d,"sham",!0),i(c,f,d,e)}}},"23f7":function(e,t,n){"use strict";t.counter=function(e,t,n,r){var a=(t||"")+(n?"":"$"),o=!1===r?"":"^";return"xy"===e?new RegExp(o+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(o+e+"([2-9]|[1-9][0-9]+)?"+a)}},"241c":function(e,t,n){var r=n("ca84"),a=n("7839"),o=a.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},"242e":function(e,t,n){var r=n("72af"),a=n("ec69");function o(e,t){return e&&r(e,t,a)}e.exports=o},"242f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.LEFT=37,t.UP=38,t.RIGHT=39,t.DOWN=40,t.ENTER=13,t.SPACE=32,t.ESC=27,t.TAB=9},2474:function(e,t,n){var r=n("2b3e"),a=r.Uint8Array;e.exports=a},2478:function(e,t,n){var r=n("42454");function a(e){return r(this,e).get(e)}e.exports=a},"248d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Chrome=void 0;var r=n("ab5b"),a=g(r),o=n("d7bc"),i=g(o),l=n("fc55"),s=g(l),u=n("4245"),c=g(u),f=n("4ccf"),p=n("464a"),d=g(p),h=n("352b"),v=g(h),m=n("b6ee"),y=g(m);function g(e){return e&&e.__esModule?e:{default:e}}var b=t.Chrome=function(e){var t=e.width,n=e.onChange,r=e.disableAlpha,o=e.rgb,i=e.hsl,l=e.hsv,u=e.hex,p=e.renderers,h=e.styles,m=void 0===h?{}:h,g=e.className,b=void 0===g?"":g,x=e.defaultView,_=(0,s.default)((0,c.default)({default:{picker:{width:t,background:"#fff",borderRadius:"2px",boxShadow:"0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",boxSizing:"initial",fontFamily:"Menlo"},saturation:{width:"100%",paddingBottom:"55%",position:"relative",borderRadius:"2px 2px 0 0",overflow:"hidden"},Saturation:{radius:"2px 2px 0 0"},body:{padding:"16px 16px 12px"},controls:{display:"flex"},color:{width:"32px"},swatch:{marginTop:"6px",width:"16px",height:"16px",borderRadius:"8px",position:"relative",overflow:"hidden"},active:{absolute:"0px 0px 0px 0px",borderRadius:"8px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.1)",background:"rgba("+o.r+", "+o.g+", "+o.b+", "+o.a+")",zIndex:"2"},toggles:{flex:"1"},hue:{height:"10px",position:"relative",marginBottom:"8px"},Hue:{radius:"2px"},alpha:{height:"10px",position:"relative"},Alpha:{radius:"2px"}},disableAlpha:{color:{width:"22px"},alpha:{display:"none"},hue:{marginBottom:"0px"},swatch:{width:"10px",height:"10px",marginTop:"0px"}}},m),{disableAlpha:r});return a.default.createElement("div",{style:_.picker,className:"chrome-picker "+b},a.default.createElement("div",{style:_.saturation},a.default.createElement(f.Saturation,{style:_.Saturation,hsl:i,hsv:l,pointer:y.default,onChange:n})),a.default.createElement("div",{style:_.body},a.default.createElement("div",{style:_.controls,className:"flexbox-fix"},a.default.createElement("div",{style:_.color},a.default.createElement("div",{style:_.swatch},a.default.createElement("div",{style:_.active}),a.default.createElement(f.Checkboard,{renderers:p}))),a.default.createElement("div",{style:_.toggles},a.default.createElement("div",{style:_.hue},a.default.createElement(f.Hue,{style:_.Hue,hsl:i,pointer:v.default,onChange:n})),a.default.createElement("div",{style:_.alpha},a.default.createElement(f.Alpha,{style:_.Alpha,rgb:o,hsl:i,pointer:v.default,renderers:p,onChange:n})))),a.default.createElement(d.default,{rgb:o,hsl:i,hex:u,view:x,onChange:n,disableAlpha:r})))};b.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),disableAlpha:i.default.bool,styles:i.default.object,defaultView:i.default.oneOf(["hex","rgb","hsl"])},b.defaultProps={width:225,disableAlpha:!1,styles:{}},t.default=(0,f.ColorWrap)(b)},"248f":function(e,t,n){"use strict";var r=n("dec3"),a=n("4d6a"),o=n("8e5d");function i(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&o(n)===n.body){var i=n.defaultView.getSelection(),l=e.editor;1===i.rangeCount&&a(l,i.anchorNode)&&a(l,i.focusNode)&&i.removeAllRanges()}var s=e._latestEditorState,u=s.getSelection();if(u.getHasFocus()){var c=u.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(r.acceptSelection(s,c))}}e.exports=i},"24be":function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=n("9452"),o=n("4da8"),i=n("24f7"),l=i.List,s=i.Map,u=i.OrderedSet,c=i.Record,f=i.Repeat,p=u(),d={parent:null,characterList:l(),data:s(),depth:0,key:"",text:"",type:"unstyled",children:l(),prevSibling:null,nextSibling:null},h=function(e,t){return e.getStyle()===t.getStyle()},v=function(e,t){return e.getEntity()===t.getEntity()},m=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=l(f(a.EMPTY,n.length))),e},y=function(e){function t(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return e.call(this,m(t))||this}r(t,e);var n=t.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():p},n.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},n.getChildKeys=function(){return this.get("children")},n.getParentKey=function(){return this.get("parent")},n.getPrevSiblingKey=function(){return this.get("prevSibling")},n.getNextSiblingKey=function(){return this.get("nextSibling")},n.findStyleRanges=function(e,t){o(this.getCharacterList(),h,e,t)},n.findEntityRanges=function(e,t){o(this.getCharacterList(),v,e,t)},t}(c(d));e.exports=y},"24f7":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return i(e)?e:G(e)}function r(e){return l(e)?e:Y(e)}function a(e){return s(e)?e:K(e)}function o(e){return i(e)&&!u(e)?e:X(e)}function i(e){return!(!e||!e[f])}function l(e){return!(!e||!e[p])}function s(e){return!(!e||!e[d])}function u(e){return l(e)||s(e)}function c(e){return!(!e||!e[h])}t(r,n),t(a,n),t(o,n),n.isIterable=i,n.isKeyed=l,n.isIndexed=s,n.isAssociative=u,n.isOrdered=c,n.Keyed=r,n.Indexed=a,n.Set=o;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",v="delete",m=5,y=1<<m,g=y-1,b={},x={value:!1},_={value:!1};function w(e){return e.value=!1,e}function k(e){e&&(e.value=!0)}function T(){}function E(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),a=0;a<n;a++)r[a]=e[a+t];return r}function O(e){return void 0===e.size&&(e.size=e.__iterate(S)),e.size}function M(e,t){if("number"!==typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?O(e)+t:t}function S(){return!0}function C(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function A(e,t){return L(e,t,0)}function P(e,t){return L(e,t,t)}function L(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,j=1,I=2,R="function"===typeof Symbol&&Symbol.iterator,z="@@iterator",N=R||z;function F(e){this.next=e}function B(e,t,n,r){var a=0===e?t:1===e?n:[t,n];return r?r.value=a:r={value:a,done:!1},r}function V(){return{value:void 0,done:!0}}function H(e){return!!q(e)}function U(e){return e&&"function"===typeof e.next}function W(e){var t=q(e);return t&&t.call(e)}function q(e){var t=e&&(R&&e[R]||e[z]);if("function"===typeof t)return t}function $(e){return e&&"number"===typeof e.length}function G(e){return null===e||void 0===e?ie():i(e)?e.toSeq():ue(e)}function Y(e){return null===e||void 0===e?ie().toKeyedSeq():i(e)?l(e)?e.toSeq():e.fromEntrySeq():le(e)}function K(e){return null===e||void 0===e?ie():i(e)?l(e)?e.entrySeq():e.toIndexedSeq():se(e)}function X(e){return(null===e||void 0===e?ie():i(e)?l(e)?e.entrySeq():e:se(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=j,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[N]=function(){return this},t(G,n),G.of=function(){return G(arguments)},G.prototype.toSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq {","}")},G.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},G.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},G.prototype.__iterator=function(e,t){return pe(this,e,t,!0)},t(Y,G),Y.prototype.toKeyedSeq=function(){return this},t(K,G),K.of=function(){return K(arguments)},K.prototype.toIndexedSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq [","]")},K.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},K.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(X,G),X.of=function(){return X(arguments)},X.prototype.toSetSeq=function(){return this},G.isSeq=oe,G.Keyed=Y,G.Set=X,G.Indexed=K;var Z,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ae(e){this._iterator=e,this._iteratorCache=[]}function oe(e){return!(!e||!e[ee])}function ie(){return Z||(Z=new te([]))}function le(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(e)?new ae(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():"object"===typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function se(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){var t=ce(e)||"object"===typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function ce(e){return $(e)?new te(e):U(e)?new ae(e):H(e)?new re(e):void 0}function fe(e,t,n,r){var a=e._cache;if(a){for(var o=a.length-1,i=0;i<=o;i++){var l=a[n?o-i:i];if(!1===t(l[1],r?l[0]:i,e))return i+1}return i}return e.__iterateUncached(t,n)}function pe(e,t,n,r){var a=e._cache;if(a){var o=a.length-1,i=0;return new F((function(){var e=a[n?o-i:i];return i++>o?V():B(t,r?e[0]:i-1,e[1])}))}return e.__iteratorUncached(t,n)}function de(e,t){return t?he(t,e,"",{"":e}):ve(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,K(t).map((function(n,r){return he(e,n,r,t)}))):me(t)?e.call(r,n,Y(t).map((function(n,r){return he(e,n,r,t)}))):t}function ve(e){return Array.isArray(e)?K(e).map(ve).toList():me(e)?Y(e).map(ve).toMap():e}function me(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ye(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if("function"===typeof e.valueOf&&"function"===typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!("function"!==typeof e.equals||"function"!==typeof t.equals||!e.equals(t))}function ge(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||l(e)!==l(t)||s(e)!==s(t)||c(e)!==c(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(e);if(c(e)){var r=e.entries();return t.every((function(e,t){var a=r.next().value;return a&&ye(a[1],e)&&(n||ye(a[0],t))}))&&r.next().done}var a=!1;if(void 0===e.size)if(void 0===t.size)"function"===typeof e.cacheResult&&e.cacheResult();else{a=!0;var o=e;e=t,t=o}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):a?!ye(t,e.get(r,b)):!ye(e.get(r,b),t))return f=!1,!1}));return f&&e.size===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function xe(e,t){if(!e)throw new Error(t)}function _e(e,t,n){if(!(this instanceof _e))return new _e(e,t,n);if(xe(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function we(){throw TypeError("Abstract")}function ke(){}function Te(){}function Ee(){}G.prototype[ee]=!0,t(te,K),te.prototype.get=function(e,t){return this.has(e)?this._array[M(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,a=0;a<=r;a++)if(!1===e(n[t?r-a:a],a,this))return a+1;return a},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,a=0;return new F((function(){return a>r?V():B(e,a,n[t?r-a++:a++])}))},t(ne,Y),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,a=r.length-1,o=0;o<=a;o++){var i=r[t?a-o:o];if(!1===e(n[i],i,this))return o+1}return o},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,a=r.length-1,o=0;return new F((function(){var i=r[t?a-o:o];return o++>a?V():B(e,i,n[i])}))},ne.prototype[h]=!0,t(re,K),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n,r=this._iterable,a=W(r),o=0;if(U(a))while(!(n=a.next()).done)if(!1===e(n.value,o++,this))break;return o},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterable,r=W(n);if(!U(r))return new F(V);var a=0;return new F((function(){var t=r.next();return t.done?t:B(e,a++,t.value)}))},t(ae,K),ae.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n,r=this._iterator,a=this._iteratorCache,o=0;while(o<a.length)if(!1===e(a[o],o++,this))return o;while(!(n=r.next()).done){var i=n.value;if(a[o]=i,!1===e(i,o++,this))break}return o},ae.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,a=0;return new F((function(){if(a>=r.length){var t=n.next();if(t.done)return t;r[a]=t.value}return B(e,a,r[a++])}))},t(be,K),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ye(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return C(e,t,n)?this:new be(this._value,P(t,n)-A(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ye(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ye(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new F((function(){return r<n.size?B(e,r++,n._value):V()}))},be.prototype.equals=function(e){return e instanceof be?ye(this._value,e._value):ge(e)},t(_e,K),_e.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},_e.prototype.get=function(e,t){return this.has(e)?this._start+M(this,e)*this._step:t},_e.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},_e.prototype.slice=function(e,t){return C(e,t,this.size)?this:(e=A(e,this.size),t=P(t,this.size),t<=e?new _e(0,0):new _e(this.get(e,this._end),this.get(t,this._end),this._step))},_e.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},_e.prototype.lastIndexOf=function(e){return this.indexOf(e)},_e.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,a=t?this._start+n*r:this._start,o=0;o<=n;o++){if(!1===e(a,o,this))return o+1;a+=t?-r:r}return o},_e.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,a=t?this._start+n*r:this._start,o=0;return new F((function(){var i=a;return a+=t?-r:r,o>n?V():B(e,o++,i)}))},_e.prototype.equals=function(e){return e instanceof _e?this._start===e._start&&this._end===e._end&&this._step===e._step:ge(this,e)},t(we,n),t(ke,we),t(Te,we),t(Ee,we),we.Keyed=ke,we.Indexed=Te,we.Set=Ee;var Oe="function"===typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){e|=0,t|=0;var n=65535&e,r=65535&t;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Me(e){return e>>>1&1073741824|3221225471&e}function Se(e){if(!1===e||null===e||void 0===e)return 0;if("function"===typeof e.valueOf&&(e=e.valueOf(),!1===e||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;n!==e&&(n^=4294967295*e);while(e>4294967295)e/=4294967295,n^=e;return Me(n)}if("string"===t)return e.length>Fe?Ce(e):Ae(e);if("function"===typeof e.hashCode)return e.hashCode();if("object"===t)return Pe(e);if("function"===typeof e.toString)return Ae(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ce(e){var t=He[e];return void 0===t&&(t=Ae(e),Ve===Be&&(Ve=0,He={}),Ve++,He[e]=t),t}function Ae(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Me(t)}function Pe(e){var t;if(Re&&(t=Ie.get(e),void 0!==t))return t;if(t=e[Ne],void 0!==t)return t;if(!De){if(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Ne],void 0!==t)return t;if(t=je(e),void 0!==t)return t}if(t=++ze,1073741824&ze&&(ze=0),Re)Ie.set(e,t);else{if(void 0!==Le&&!1===Le(e))throw new Error("Non-extensible objects are not allowed as keys.");if(De)Object.defineProperty(e,Ne,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Ne]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Ne]=t}}return t}var Le=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function je(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Re="function"===typeof WeakMap;Re&&(Ie=new WeakMap);var ze=0,Ne="__immutablehash__";"function"===typeof Symbol&&(Ne=Symbol(Ne));var Fe=16,Be=255,Ve=0,He={};function Ue(e){xe(e!==1/0,"Cannot perform this action with an infinite size.")}function We(e){return null===e||void 0===e?at():qe(e)&&!c(e)?e:at().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function qe(e){return!(!e||!e[Ge])}t(We,ke),We.prototype.toString=function(){return this.__toString("Map {","}")},We.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},We.prototype.set=function(e,t){return ot(this,e,t)},We.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},We.prototype.remove=function(e){return ot(this,e,b)},We.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},We.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},We.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=mt(this,wn(e),t,n);return r===b?void 0:r},We.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):at()},We.prototype.merge=function(){return pt(this,void 0,arguments)},We.prototype.mergeWith=function(t){var n=e.call(arguments,1);return pt(this,t,n)},We.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,at(),(function(e){return"function"===typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},We.prototype.mergeDeep=function(){return pt(this,dt,arguments)},We.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,ht(t),n)},We.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,at(),(function(e){return"function"===typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},We.prototype.sort=function(e){return Ht(fn(this,e))},We.prototype.sortBy=function(e,t){return Ht(fn(this,t,e))},We.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},We.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new T)},We.prototype.asImmutable=function(){return this.__ensureOwner()},We.prototype.wasAltered=function(){return this.__altered},We.prototype.__iterator=function(e,t){return new et(this,e,t)},We.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},We.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},We.isMap=qe;var $e,Ge="@@__IMMUTABLE_MAP__@@",Ye=We.prototype;function Ke(e,t){this.ownerID=e,this.entries=t}function Xe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Ze(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return B(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var a=Object.create(Ye);return a.size=e,a._root=t,a.__ownerID=n,a.__hash=r,a.__altered=!1,a}function at(){return $e||($e=rt(0))}function ot(e,t,n){var r,a;if(e._root){var o=w(x),i=w(_);if(r=it(e._root,e.__ownerID,0,void 0,t,n,o,i),!i.value)return e;a=e.size+(o.value?n===b?-1:1:0)}else{if(n===b)return e;a=1,r=new Ke(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=a,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(a,r):at()}function it(e,t,n,r,a,o,i,l){return e?e.update(t,n,r,a,o,i,l):o===b?e:(k(l),k(i),new Qe(t,r,[a,o]))}function lt(e){return e.constructor===Qe||e.constructor===Je}function st(e,t,n,r,a){if(e.keyHash===r)return new Je(t,r,[e.entry,a]);var o,i=(0===n?e.keyHash:e.keyHash>>>n)&g,l=(0===n?r:r>>>n)&g,s=i===l?[st(e,t,n+m,r,a)]:(o=new Qe(t,r,a),i<l?[e,o]:[o,e]);return new Xe(t,1<<i|1<<l,s)}function ut(e,t,n,r){e||(e=new T);for(var a=new Qe(e,Se(n),[n,r]),o=0;o<t.length;o++){var i=t[o];a=a.update(e,0,void 0,i[0],i[1])}return a}function ct(e,t,n,r){for(var a=0,o=0,i=new Array(n),l=0,s=1,u=t.length;l<u;l++,s<<=1){var c=t[l];void 0!==c&&l!==r&&(a|=s,i[o++]=c)}return new Xe(e,a,i)}function ft(e,t,n,r,a){for(var o=0,i=new Array(y),l=0;0!==n;l++,n>>>=1)i[l]=1&n?t[o++]:void 0;return i[r]=a,new Ze(e,o+1,i)}function pt(e,t,n){for(var a=[],o=0;o<n.length;o++){var l=n[o],s=r(l);i(l)||(s=s.map((function(e){return de(e)}))),a.push(s)}return vt(e,t,a)}function dt(e,t,n){return e&&e.mergeDeep&&i(t)?e.mergeDeep(t):ye(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&i(n))return t.mergeDeepWith(e,n);var a=e(t,n,r);return ye(t,a)?t:a}}function vt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},a=0;a<n.length;a++)n[a].forEach(r)})):e.constructor(n[0])}function mt(e,t,n,r){var a=e===b,o=t.next();if(o.done){var i=a?n:e,l=r(i);return l===i?e:l}xe(a||e&&e.set,"invalid keyPath");var s=o.value,u=a?b:e.get(s,b),c=mt(u,t,n,r);return c===u?e:c===b?e.remove(s):(a?at():e).set(s,c)}function yt(e){return e-=e>>1&1431655765,e=(858993459&e)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,127&e}function gt(e,t,n,r){var a=r?e:E(e);return a[t]=n,a}function bt(e,t,n,r){var a=e.length+1;if(r&&t+1===a)return e[t]=n,e;for(var o=new Array(a),i=0,l=0;l<a;l++)l===t?(o[l]=n,i=-1):o[l]=e[l+i];return o}function xt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var a=new Array(r),o=0,i=0;i<r;i++)i===t&&(o=1),a[i]=e[i+o];return a}Ye[Ge]=!0,Ye[v]=Ye.remove,Ye.removeIn=Ye.deleteIn,Ke.prototype.get=function(e,t,n,r){for(var a=this.entries,o=0,i=a.length;o<i;o++)if(ye(n,a[o][0]))return a[o][1];return r},Ke.prototype.update=function(e,t,n,r,a,o,i){for(var l=a===b,s=this.entries,u=0,c=s.length;u<c;u++)if(ye(r,s[u][0]))break;var f=u<c;if(f?s[u][1]===a:l)return this;if(k(i),(l||!f)&&k(o),!l||1!==s.length){if(!f&&!l&&s.length>=_t)return ut(e,s,r,a);var p=e&&e===this.ownerID,d=p?s:E(s);return f?l?u===c-1?d.pop():d[u]=d.pop():d[u]=[r,a]:d.push([r,a]),p?(this.entries=d,this):new Ke(e,d)}},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=Se(n));var a=1<<((0===e?t:t>>>e)&g),o=this.bitmap;return 0===(o&a)?r:this.nodes[yt(o&a-1)].get(e+m,t,n,r)},Xe.prototype.update=function(e,t,n,r,a,o,i){void 0===n&&(n=Se(r));var l=(0===t?n:n>>>t)&g,s=1<<l,u=this.bitmap,c=0!==(u&s);if(!c&&a===b)return this;var f=yt(u&s-1),p=this.nodes,d=c?p[f]:void 0,h=it(d,e,t+m,n,r,a,o,i);if(h===d)return this;if(!c&&h&&p.length>=wt)return ft(e,p,u,l,h);if(c&&!h&&2===p.length&&lt(p[1^f]))return p[1^f];if(c&&h&&1===p.length&&lt(h))return h;var v=e&&e===this.ownerID,y=c?h?u:u^s:u|s,x=c?h?gt(p,f,h,v):xt(p,f,v):bt(p,f,h,v);return v?(this.bitmap=y,this.nodes=x,this):new Xe(e,y,x)},Ze.prototype.get=function(e,t,n,r){void 0===t&&(t=Se(n));var a=(0===e?t:t>>>e)&g,o=this.nodes[a];return o?o.get(e+m,t,n,r):r},Ze.prototype.update=function(e,t,n,r,a,o,i){void 0===n&&(n=Se(r));var l=(0===t?n:n>>>t)&g,s=a===b,u=this.nodes,c=u[l];if(s&&!c)return this;var f=it(c,e,t+m,n,r,a,o,i);if(f===c)return this;var p=this.count;if(c){if(!f&&(p--,p<kt))return ct(e,u,p,l)}else p++;var d=e&&e===this.ownerID,h=gt(u,l,f,d);return d?(this.count=p,this.nodes=h,this):new Ze(e,p,h)},Je.prototype.get=function(e,t,n,r){for(var a=this.entries,o=0,i=a.length;o<i;o++)if(ye(n,a[o][0]))return a[o][1];return r},Je.prototype.update=function(e,t,n,r,a,o,i){void 0===n&&(n=Se(r));var l=a===b;if(n!==this.keyHash)return l?this:(k(i),k(o),st(this,e,t,n,[r,a]));for(var s=this.entries,u=0,c=s.length;u<c;u++)if(ye(r,s[u][0]))break;var f=u<c;if(f?s[u][1]===a:l)return this;if(k(i),(l||!f)&&k(o),l&&2===c)return new Qe(e,this.keyHash,s[1^u]);var p=e&&e===this.ownerID,d=p?s:E(s);return f?l?u===c-1?d.pop():d[u]=d.pop():d[u]=[r,a]:d.push([r,a]),p?(this.entries=d,this):new Je(e,this.keyHash,d)},Qe.prototype.get=function(e,t,n,r){return ye(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,a,o,i){var l=a===b,s=ye(r,this.entry[0]);return(s?a===this.entry[1]:l)?this:(k(i),l?void k(o):s?e&&e===this.ownerID?(this.entry[1]=a,this):new Qe(e,this.keyHash,[r,a]):(k(o),st(this,e,t,Se(r),[r,a])))},Ke.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,a=n.length-1;r<=a;r++)if(!1===e(n[t?a-r:r]))return!1},Xe.prototype.iterate=Ze.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,a=n.length-1;r<=a;r++){var o=n[t?a-r:r];if(o&&!1===o.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){var e=this._type,t=this._stack;while(t){var n,r=t.node,a=t.index++;if(r.entry){if(0===a)return tt(e,r.entry)}else if(r.entries){if(n=r.entries.length-1,a<=n)return tt(e,r.entries[this._reverse?n-a:a])}else if(n=r.nodes.length-1,a<=n){var o=r.nodes[this._reverse?n-a:a];if(o){if(o.entry)return tt(e,o.entry);t=this._stack=nt(o,t)}continue}t=this._stack=this._stack.__prev}return V()};var _t=y/4,wt=y/2,kt=y/4;function Tt(e){var t=jt();if(null===e||void 0===e)return t;if(Et(e))return e;var n=a(e),r=n.size;return 0===r?t:(Ue(r),r>0&&r<y?Dt(0,r,m,null,new St(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Et(e){return!(!e||!e[Ot])}t(Tt,Te),Tt.of=function(){return this(arguments)},Tt.prototype.toString=function(){return this.__toString("List [","]")},Tt.prototype.get=function(e,t){if(e=M(this,e),e>=0&&e<this.size){e+=this._origin;var n=Nt(this,e);return n&&n.array[e&g]}return t},Tt.prototype.set=function(e,t){return It(this,e,t)},Tt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Tt.prototype.insert=function(e,t){return this.splice(e,0,t)},Tt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):jt()},Tt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ft(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},Tt.prototype.pop=function(){return Ft(this,0,-1)},Tt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},Tt.prototype.shift=function(){return Ft(this,1)},Tt.prototype.merge=function(){return Bt(this,void 0,arguments)},Tt.prototype.mergeWith=function(t){var n=e.call(arguments,1);return Bt(this,t,n)},Tt.prototype.mergeDeep=function(){return Bt(this,dt,arguments)},Tt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Bt(this,ht(t),n)},Tt.prototype.setSize=function(e){return Ft(this,0,e)},Tt.prototype.slice=function(e,t){var n=this.size;return C(e,t,n)?this:Ft(this,A(e,n),P(t,n))},Tt.prototype.__iterator=function(e,t){var n=0,r=Lt(this,t);return new F((function(){var t=r();return t===Pt?V():B(e,n++,t)}))},Tt.prototype.__iterate=function(e,t){var n,r=0,a=Lt(this,t);while((n=a())!==Pt)if(!1===e(n,r++,this))break;return r},Tt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},Tt.isList=Et;var Ot="@@__IMMUTABLE_LIST__@@",Mt=Tt.prototype;function St(e,t){this.array=e,this.ownerID=t}Mt[Ot]=!0,Mt[v]=Mt.remove,Mt.setIn=Ye.setIn,Mt.deleteIn=Mt.removeIn=Ye.removeIn,Mt.update=Ye.update,Mt.updateIn=Ye.updateIn,Mt.mergeIn=Ye.mergeIn,Mt.mergeDeepIn=Ye.mergeDeepIn,Mt.withMutations=Ye.withMutations,Mt.asMutable=Ye.asMutable,Mt.asImmutable=Ye.asImmutable,Mt.wasAltered=Ye.wasAltered,St.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&g;if(r>=this.array.length)return new St([],e);var a,o=0===r;if(t>0){var i=this.array[r];if(a=i&&i.removeBefore(e,t-m,n),a===i&&o)return this}if(o&&!a)return this;var l=zt(this,e);if(!o)for(var s=0;s<r;s++)l.array[s]=void 0;return a&&(l.array[r]=a),l},St.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,a=n-1>>>t&g;if(a>=this.array.length)return this;if(t>0){var o=this.array[a];if(r=o&&o.removeAfter(e,t-m,n),r===o&&a===this.array.length-1)return this}var i=zt(this,e);return i.array.splice(a+1),r&&(i.array[a]=r),i};var Ct,At,Pt={};function Lt(e,t){var n=e._origin,r=e._capacity,a=Vt(r),o=e._tail;return i(e._root,e._level,0);function i(e,t,n){return 0===t?l(e,n):s(e,t,n)}function l(e,i){var l=i===a?o&&o.array:e&&e.array,s=i>n?0:n-i,u=r-i;return u>y&&(u=y),function(){if(s===u)return Pt;var e=t?--u:s++;return l&&l[e]}}function s(e,a,o){var l,s=e&&e.array,u=o>n?0:n-o>>a,c=1+(r-o>>a);return c>y&&(c=y),function(){do{if(l){var e=l();if(e!==Pt)return e;l=null}if(u===c)return Pt;var n=t?--c:u++;l=i(s&&s[n],a-m,o+(n<<a))}while(1)}}}function Dt(e,t,n,r,a,o,i){var l=Object.create(Mt);return l.size=t-e,l._origin=e,l._capacity=t,l._level=n,l._root=r,l._tail=a,l.__ownerID=o,l.__hash=i,l.__altered=!1,l}function jt(){return Ct||(Ct=Dt(0,0,m))}function It(e,t,n){if(t=M(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,a=e._root,o=w(_);return t>=Vt(e._capacity)?r=Rt(r,e.__ownerID,0,t,n,o):a=Rt(a,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=a,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,a,r):e}function Rt(e,t,n,r,a,o){var i,l=r>>>n&g,s=e&&l<e.array.length;if(!s&&void 0===a)return e;if(n>0){var u=e&&e.array[l],c=Rt(u,t,n-m,r,a,o);return c===u?e:(i=zt(e,t),i.array[l]=c,i)}return s&&e.array[l]===a?e:(k(o),i=zt(e,t),void 0===a&&l===i.array.length-1?i.array.pop():i.array[l]=a,i)}function zt(e,t){return t&&e&&t===e.ownerID?e:new St(e?e.array.slice():[],t)}function Nt(e,t){if(t>=Vt(e._capacity))return e._tail;if(t<1<<e._level+m){var n=e._root,r=e._level;while(n&&r>0)n=n.array[t>>>r&g],r-=m;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new T,a=e._origin,o=e._capacity,i=a+t,l=void 0===n?o:n<0?o+n:a+n;if(i===a&&l===o)return e;if(i>=l)return e.clear();var s=e._level,u=e._root,c=0;while(i+c<0)u=new St(u&&u.array.length?[void 0,u]:[],r),s+=m,c+=1<<s;c&&(i+=c,a+=c,l+=c,o+=c);var f=Vt(o),p=Vt(l);while(p>=1<<s+m)u=new St(u&&u.array.length?[u]:[],r),s+=m;var d=e._tail,h=p<f?Nt(e,l-1):p>f?new St([],r):d;if(d&&p>f&&i<o&&d.array.length){u=zt(u,r);for(var v=u,y=s;y>m;y-=m){var b=f>>>y&g;v=v.array[b]=zt(v.array[b],r)}v.array[f>>>m&g]=d}if(l<o&&(h=h&&h.removeAfter(r,0,l)),i>=p)i-=p,l-=p,s=m,u=null,h=h&&h.removeBefore(r,0,i);else if(i>a||p<f){c=0;while(u){var x=i>>>s&g;if(x!==p>>>s&g)break;x&&(c+=(1<<s)*x),s-=m,u=u.array[x]}u&&i>a&&(u=u.removeBefore(r,s,i-c)),u&&p<f&&(u=u.removeAfter(r,s,p-c)),c&&(i-=c,l-=c)}return e.__ownerID?(e.size=l-i,e._origin=i,e._capacity=l,e._level=s,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(i,l,s,u,h)}function Bt(e,t,n){for(var r=[],o=0,l=0;l<n.length;l++){var s=n[l],u=a(s);u.size>o&&(o=u.size),i(s)||(u=u.map((function(e){return de(e)}))),r.push(u)}return o>e.size&&(e=e.setSize(o)),vt(e,t,r)}function Vt(e){return e<y?0:e-1>>>m<<m}function Ht(e){return null===e||void 0===e?qt():Ut(e)?e:qt().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return qe(e)&&c(e)}function Wt(e,t,n,r){var a=Object.create(Ht.prototype);return a.size=e?e.size:0,a._map=e,a._list=t,a.__ownerID=n,a.__hash=r,a}function qt(){return At||(At=Wt(at(),jt()))}function $t(e,t,n){var r,a,o=e._map,i=e._list,l=o.get(t),s=void 0!==l;if(n===b){if(!s)return e;i.size>=y&&i.size>=2*o.size?(a=i.filter((function(e,t){return void 0!==e&&l!==t})),r=a.toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=a.__ownerID=e.__ownerID)):(r=o.remove(t),a=l===i.size-1?i.pop():i.set(l,void 0))}else if(s){if(n===i.get(l)[1])return e;r=o,a=i.set(l,[t,n])}else r=o.set(t,i.size),a=i.set(i.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=a,e.__hash=void 0,e):Wt(r,a)}function Gt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Xt(e){this._iter=e,this.size=e.size}function Zt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=xn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===j?D:j,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,a){var o=e.get(r,b);return o===b?a:t.call(n,o,r,e)},r.__iterateUncached=function(r,a){var o=this;return e.__iterate((function(e,a,i){return!1!==r(t.call(n,e,a,i),a,o)}),a)},r.__iteratorUncached=function(r,a){var o=e.__iterator(I,a);return new F((function(){var a=o.next();if(a.done)return a;var i=a.value,l=i[0];return B(r,l,t.call(n,i[1],l,e),a)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Zt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=xn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var a=bn(e);return r&&(a.has=function(r){var a=e.get(r,b);return a!==b&&!!t.call(n,a,r,e)},a.get=function(r,a){var o=e.get(r,b);return o!==b&&t.call(n,o,r,e)?o:a}),a.__iterateUncached=function(a,o){var i=this,l=0;return e.__iterate((function(e,o,s){if(t.call(n,e,o,s))return l++,a(e,r?o:l-1,i)}),o),l},a.__iteratorUncached=function(a,o){var i=e.__iterator(I,o),l=0;return new F((function(){while(1){var o=i.next();if(o.done)return o;var s=o.value,u=s[0],c=s[1];if(t.call(n,c,u,e))return B(a,r?u:l++,c,o)}}))},a}function tn(e,t,n){var r=We().asMutable();return e.__iterate((function(a,o){r.update(t.call(n,a,o,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=l(e),a=(c(e)?Ht():We()).asMutable();e.__iterate((function(o,i){a.update(t.call(n,o,i,e),(function(e){return e=e||[],e.push(r?[i,o]:o),e}))}));var o=gn(e);return a.map((function(t){return vn(e,o(t))}))}function rn(e,t,n,r){var a=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),C(t,n,a))return e;var o=A(t,a),i=P(n,a);if(o!==o||i!==i)return rn(e.toSeq().cacheResult(),t,n,r);var l,s=i-o;s===s&&(l=s<0?0:s);var u=bn(e);return u.size=0===l?l:e.size&&l||void 0,!r&&oe(e)&&l>=0&&(u.get=function(t,n){return t=M(this,t),t>=0&&t<l?e.get(t+o,n):n}),u.__iterateUncached=function(t,n){var a=this;if(0===l)return 0;if(n)return this.cacheResult().__iterate(t,n);var i=0,s=!0,u=0;return e.__iterate((function(e,n){if(!s||!(s=i++<o))return u++,!1!==t(e,r?n:u-1,a)&&u!==l})),u},u.__iteratorUncached=function(t,n){if(0!==l&&n)return this.cacheResult().__iterator(t,n);var a=0!==l&&e.__iterator(t,n),i=0,s=0;return new F((function(){while(i++<o)a.next();if(++s>l)return V();var e=a.next();return r||t===j?e:B(t,s-1,t===D?void 0:e.value[1],e)}))},u}function an(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterate(r,a);var i=0;return e.__iterate((function(e,a,l){return t.call(n,e,a,l)&&++i&&r(e,a,o)})),i},r.__iteratorUncached=function(r,a){var o=this;if(a)return this.cacheResult().__iterator(r,a);var i=e.__iterator(I,a),l=!0;return new F((function(){if(!l)return V();var e=i.next();if(e.done)return e;var a=e.value,s=a[0],u=a[1];return t.call(n,u,s,o)?r===I?e:B(r,s,u,e):(l=!1,V())}))},r}function on(e,t,n,r){var a=bn(e);return a.__iterateUncached=function(a,o){var i=this;if(o)return this.cacheResult().__iterate(a,o);var l=!0,s=0;return e.__iterate((function(e,o,u){if(!l||!(l=t.call(n,e,o,u)))return s++,a(e,r?o:s-1,i)})),s},a.__iteratorUncached=function(a,o){var i=this;if(o)return this.cacheResult().__iterator(a,o);var l=e.__iterator(I,o),s=!0,u=0;return new F((function(){var e,o,c;do{if(e=l.next(),e.done)return r||a===j?e:B(a,u++,a===D?void 0:e.value[1],e);var f=e.value;o=f[0],c=f[1],s&&(s=t.call(n,c,o,i))}while(s);return a===I?e:B(a,o,c,e)}))},a}function ln(e,t){var n=l(e),a=[e].concat(t).map((function(e){return i(e)?n&&(e=r(e)):e=n?le(e):se(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===a.length)return e;if(1===a.length){var o=a[0];if(o===e||n&&l(o)||s(e)&&s(o))return o}var u=new te(a);return n?u=u.toKeyedSeq():s(e)||(u=u.toSetSeq()),u=u.flatten(!0),u.size=a.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function sn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,a){var o=0,l=!1;function s(e,u){var c=this;e.__iterate((function(e,a){return(!t||u<t)&&i(e)?s(e,u+1):!1===r(e,n?a:o++,c)&&(l=!0),!l}),a)}return s(e,0),o},r.__iteratorUncached=function(r,a){var o=e.__iterator(r,a),l=[],s=0;return new F((function(){while(o){var e=o.next();if(!1===e.done){var u=e.value;if(r===I&&(u=u[1]),t&&!(l.length<t)||!i(u))return n?e:B(r,s++,u,e);l.push(o),o=u.__iterator(r,a)}else o=l.pop()}return V()}))},r}function un(e,t,n){var r=gn(e);return e.toSeq().map((function(a,o){return r(t.call(n,a,o,e))})).flatten(!0)}function cn(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var a=this,o=0;return e.__iterate((function(e,r){return(!o||!1!==n(t,o++,a))&&!1!==n(e,o++,a)}),r),o},n.__iteratorUncached=function(n,r){var a,o=e.__iterator(j,r),i=0;return new F((function(){return(!a||i%2)&&(a=o.next(),a.done)?a:i%2?B(n,i++,t):B(n,i++,a.value,a)}))},n}function fn(e,t,n){t||(t=_n);var r=l(e),a=0,o=e.toSeq().map((function(t,r){return[r,t,a++,n?n(t,r,e):t]})).toArray();return o.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){o[t].length=2}:function(e,t){o[t]=e[1]}),r?Y(o):s(e)?K(o):X(o)}function pn(e,t,n){if(t||(t=_n),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return dn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return dn(t,e,n)?n:e}))}function dn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(void 0===n||null===n||n!==n)||r>0}function hn(e,t,r){var a=bn(e);return a.size=new te(r).map((function(e){return e.size})).min(),a.__iterate=function(e,t){var n,r=this.__iterator(j,t),a=0;while(!(n=r.next()).done)if(!1===e(n.value,a++,this))break;return a},a.__iteratorUncached=function(e,a){var o=r.map((function(e){return e=n(e),W(a?e.reverse():e)})),i=0,l=!1;return new F((function(){var n;return l||(n=o.map((function(e){return e.next()})),l=n.some((function(e){return e.done}))),l?V():B(e,i++,t.apply(null,n.map((function(e){return e.value}))))}))},a}function vn(e,t){return oe(e)?t:e.constructor(t)}function mn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function yn(e){return Ue(e.size),O(e)}function gn(e){return l(e)?r:s(e)?a:o}function bn(e){return Object.create((l(e)?Y:s(e)?K:X).prototype)}function xn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):G.prototype.cacheResult.call(this)}function _n(e,t){return e>t?1:e<t?-1:0}function wn(e){var t=W(e);if(!t){if(!$(e))throw new TypeError("Expected iterable or array-like: "+e);t=W(n(e))}return t}function kn(e,t){var n,r=function(o){if(o instanceof r)return o;if(!(this instanceof r))return new r(o);if(!n){n=!0;var i=Object.keys(e);Mn(a,i),a.size=i.length,a._name=t,a._keys=i,a._defaultValues=e}this._map=We(o)},a=r.prototype=Object.create(Tn);return a.constructor=r,r}t(Ht,We),Ht.of=function(){return this(arguments)},Ht.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ht.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):qt()},Ht.prototype.set=function(e,t){return $t(this,e,t)},Ht.prototype.remove=function(e){return $t(this,e,b)},Ht.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ht.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Ht.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ht.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Wt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ht.isOrderedMap=Ut,Ht.prototype[h]=!0,Ht.prototype[v]=Ht.prototype.remove,t(Gt,Y),Gt.prototype.get=function(e,t){return this._iter.get(e,t)},Gt.prototype.has=function(e){return this._iter.has(e)},Gt.prototype.valueSeq=function(){return this._iter.valueSeq()},Gt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Gt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Gt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?yn(this):0,function(a){return e(a,t?--n:n++,r)}),t)},Gt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(j,t),r=t?yn(this):0;return new F((function(){var a=n.next();return a.done?a:B(e,t?--r:r++,a.value,a)}))},Gt.prototype[h]=!0,t(Yt,K),Yt.prototype.includes=function(e){return this._iter.includes(e)},Yt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(j,t),r=0;return new F((function(){var t=n.next();return t.done?t:B(e,r++,t.value,t)}))},t(Kt,X),Kt.prototype.has=function(e){return this._iter.includes(e)},Kt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Kt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(j,t);return new F((function(){var t=n.next();return t.done?t:B(e,t.value,t.value,t)}))},t(Xt,Y),Xt.prototype.entrySeq=function(){return this._iter.toSeq()},Xt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){mn(t);var r=i(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Xt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(j,t);return new F((function(){while(1){var t=n.next();if(t.done)return t;var r=t.value;if(r){mn(r);var a=i(r);return B(e,a?r.get(0):r[0],a?r.get(1):r[1],t)}}}))},Yt.prototype.cacheResult=Gt.prototype.cacheResult=Kt.prototype.cacheResult=Xt.prototype.cacheResult=xn,t(kn,ke),kn.prototype.toString=function(){return this.__toString(On(this)+" {","}")},kn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},kn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},kn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=En(this,at()))},kn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+On(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:En(this,n)},kn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:En(this,t)},kn.prototype.wasAltered=function(){return this._map.wasAltered()},kn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},kn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},kn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?En(this,t,e):(this.__ownerID=e,this._map=t,this)};var Tn=kn.prototype;function En(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function On(e){return e._name||e.constructor.name||"Record"}function Mn(e,t){try{t.forEach(Sn.bind(void 0,e))}catch(n){}}function Sn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){xe(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function Cn(e){return null===e||void 0===e?Rn():An(e)&&!c(e)?e:Rn().withMutations((function(t){var n=o(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function An(e){return!(!e||!e[Ln])}Tn[v]=Tn.remove,Tn.deleteIn=Tn.removeIn=Ye.removeIn,Tn.merge=Ye.merge,Tn.mergeWith=Ye.mergeWith,Tn.mergeIn=Ye.mergeIn,Tn.mergeDeep=Ye.mergeDeep,Tn.mergeDeepWith=Ye.mergeDeepWith,Tn.mergeDeepIn=Ye.mergeDeepIn,Tn.setIn=Ye.setIn,Tn.update=Ye.update,Tn.updateIn=Ye.updateIn,Tn.withMutations=Ye.withMutations,Tn.asMutable=Ye.asMutable,Tn.asImmutable=Ye.asImmutable,t(Cn,Ee),Cn.of=function(){return this(arguments)},Cn.fromKeys=function(e){return this(r(e).keySeq())},Cn.prototype.toString=function(){return this.__toString("Set {","}")},Cn.prototype.has=function(e){return this._map.has(e)},Cn.prototype.add=function(e){return jn(this,this._map.set(e,!0))},Cn.prototype.remove=function(e){return jn(this,this._map.remove(e))},Cn.prototype.clear=function(){return jn(this,this._map.clear())},Cn.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)o(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},Cn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},Cn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return o(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},Cn.prototype.merge=function(){return this.union.apply(this,arguments)},Cn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},Cn.prototype.sort=function(e){return zn(fn(this,e))},Cn.prototype.sortBy=function(e,t){return zn(fn(this,t,e))},Cn.prototype.wasAltered=function(){return this._map.wasAltered()},Cn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},Cn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},Cn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},Cn.isSet=An;var Pn,Ln="@@__IMMUTABLE_SET__@@",Dn=Cn.prototype;function jn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Rn(){return Pn||(Pn=In(at()))}function zn(e){return null===e||void 0===e?Hn():Nn(e)?e:Hn().withMutations((function(t){var n=o(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Nn(e){return An(e)&&c(e)}Dn[Ln]=!0,Dn[v]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ye.withMutations,Dn.asMutable=Ye.asMutable,Dn.asImmutable=Ye.asImmutable,Dn.__empty=Rn,Dn.__make=In,t(zn,Cn),zn.of=function(){return this(arguments)},zn.fromKeys=function(e){return this(r(e).keySeq())},zn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},zn.isOrderedSet=Nn;var Fn,Bn=zn.prototype;function Vn(e,t){var n=Object.create(Bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Hn(){return Fn||(Fn=Vn(qt()))}function Un(e){return null===e||void 0===e?Kn():Wn(e)?e:Kn().unshiftAll(e)}function Wn(e){return!(!e||!e[$n])}Bn[h]=!0,Bn.__empty=Hn,Bn.__make=Vn,t(Un,Te),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;e=M(this,e);while(n&&e--)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Yn(e,t)},Un.prototype.pushAll=function(e){if(e=a(e),0===e.size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Yn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Kn()},Un.prototype.slice=function(e,t){if(C(e,t,this.size))return this;var n=A(e,this.size),r=P(t,this.size);if(r!==this.size)return Te.prototype.slice.call(this,e,t);var a=this.size-n,o=this._head;while(n--)o=o.next;return this.__ownerID?(this.size=a,this._head=o,this.__hash=void 0,this.__altered=!0,this):Yn(a,o)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Yn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);var n=0,r=this._head;while(r){if(!1===e(r.value,n++,this))break;r=r.next}return n},Un.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return V()}))},Un.isStack=Wn;var qn,$n="@@__IMMUTABLE_STACK__@@",Gn=Un.prototype;function Yn(e,t,n,r){var a=Object.create(Gn);return a.size=e,a._head=t,a.__ownerID=n,a.__hash=r,a.__altered=!1,a}function Kn(){return qn||(qn=Yn(0))}function Xn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}Gn[$n]=!0,Gn.withMutations=Ye.withMutations,Gn.asMutable=Ye.asMutable,Gn.asImmutable=Ye.asImmutable,Gn.wasAltered=Ye.wasAltered,n.Iterator=F,Xn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Yt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"===typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Gt(this,!0)},toMap:function(){return We(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return zn(l(this)?this.valueSeq():this)},toSet:function(){return Cn(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Kt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(l(this)?this.valueSeq():this)},toList:function(){return Tt(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return vn(this,ln(this,t))},includes:function(e){return this.some((function(t){return ye(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){Ue(this.size);var n=!0;return this.__iterate((function(r,a,o){if(!e.call(t,r,a,o))return n=!1,!1})),n},filter:function(e,t){return vn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,a,o){if(e.call(t,r,a,o))return n=[a,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!==r&&void 0!==r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return vn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,a;return Ue(this.size),arguments.length<2?a=!0:r=t,this.__iterate((function(t,o,i){a?(a=!1,r=t):r=e.call(n,r,t,o,i)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return vn(this,Qt(this,!0))},slice:function(e,t){return vn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return vn(this,fn(this,e))},values:function(){return this.__iterator(j)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return O(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return ge(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(S)},flatMap:function(e,t){return vn(this,un(this,e,t))},flatten:function(e){return vn(this,sn(this,e,!0))},fromEntrySeq:function(){return new Xt(this)},get:function(e,t){return this.find((function(t,n){return ye(n,e)}),void 0,t)},getIn:function(e,t){var n,r=this,a=wn(e);while(!(n=a.next()).done){var o=n.value;if(r=r&&r.get?r.get(o,b):b,r===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"===typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return e="function"===typeof e.isSubset?e:n(e),e.isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):or)},minBy:function(e,t){return pn(this,t?nr(t):or,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return vn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return vn(this,on(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return vn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return vn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return vn(this,an(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ir(this))}});var Zn=n.prototype;Zn[f]=!0,Zn[N]=Zn.values,Zn.__toJS=Zn.toArray,Zn.__toStringMapper=rr,Zn.inspect=Zn.toSource=function(){return this.toString()},Zn.chain=Zn.flatMap,Zn.contains=Zn.includes,function(){try{Object.defineProperty(Zn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Xn(r,{flip:function(){return vn(this,Zt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ye(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ye(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return vn(this,this.toSeq().map((function(a,o){return e.call(t,[o,a],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return vn(this,this.toSeq().flip().map((function(r,a){return e.call(t,r,a,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"===typeof e?JSON.stringify(e):e}function ar(){return E(arguments)}function or(e,t){return e<t?1:e>t?-1:0}function ir(e){if(e.size===1/0)return 0;var t=c(e),n=l(e),r=t?1:0,a=e.__iterate(n?t?function(e,t){r=31*r+sr(Se(e),Se(t))|0}:function(e,t){r=r+sr(Se(e),Se(t))|0}:t?function(e){r=31*r+Se(e)|0}:function(e){r=r+Se(e)|0});return lr(a,r)}function lr(e,t){return t=Oe(t,3432918353),t=Oe(t<<15|t>>>-15,461845907),t=Oe(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Oe(t^t>>>16,2246822507),t=Oe(t^t>>>13,3266489909),t=Me(t^t>>>16),t}function sr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}Jn[p]=!0,Jn[N]=Zn.entries,Jn.__toJS=Zn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Xn(a,{toKeyedSeq:function(){return new Gt(this,!1)},filter:function(e,t){return vn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return vn(this,Qt(this,!1))},slice:function(e,t){return vn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=A(e,e<0?this.count():this.size);var r=this.slice(0,e);return vn(this,1===n?r:r.concat(E(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return vn(this,sn(this,e,!1))},get:function(e,t){return e=M(this,e),e<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return e=M(this,e),e>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return vn(this,cn(this,e))},interleave:function(){var e=[this].concat(E(arguments)),t=hn(this.toSeq(),K.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),vn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return vn(this,on(this,e,t,!1))},zip:function(){var e=[this].concat(E(arguments));return vn(this,hn(this,ar,e))},zipWith:function(e){var t=E(arguments);return t[0]=this,vn(this,hn(this,e,t))}}),a.prototype[d]=!0,a.prototype[h]=!0,Xn(o,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Zn.includes,Xn(Y,r.prototype),Xn(K,a.prototype),Xn(X,o.prototype),Xn(ke,r.prototype),Xn(Te,a.prototype),Xn(Ee,o.prototype);var ur={Iterable:n,Seq:G,Collection:we,Map:We,OrderedMap:Ht,List:Tt,Stack:Un,Set:Cn,OrderedSet:zn,Record:kn,Range:_e,Repeat:be,is:ye,fromJS:de};return ur}))},2517:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"}))};e.exports=l},2524:function(e,t,n){var r=n("6044"),a="__lodash_hash_undefined__";function o(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?a:t,this}e.exports=o},"253c":function(e,t,n){var r=n("3729"),a=n("1310"),o="[object Arguments]";function i(e){return a(e)&&r(e)==o}e.exports=i},"25d0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n("ab5b"),o=f(a),i=n("d7bc"),l=f(i),s=n("d973"),u=f(s),c=n("242f");function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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}function h(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)}var v=function(e){function t(){var e,n,r,a;p(this,t);for(var o=arguments.length,i=Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=d(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n=r,r.handleNextClick=function(){r.props.onNextClick&&r.props.onNextClick()},r.handlePreviousClick=function(){r.props.onPreviousClick&&r.props.onPreviousClick()},r.handleNextKeyDown=function(e){e.keyCode!==c.ENTER&&e.keyCode!==c.SPACE||(e.preventDefault(),r.handleNextClick())},r.handlePreviousKeyDown=function(e){e.keyCode!==c.ENTER&&e.keyCode!==c.SPACE||(e.preventDefault(),r.handlePreviousClick())},a=n,d(r,a)}return h(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return e.labels!==this.props.labels||e.dir!==this.props.dir||this.props.showPreviousButton!==e.showPreviousButton||this.props.showNextButton!==e.showNextButton}},{key:"render",value:function(){var e=this.props,t=e.classNames,n=e.className,r=e.showPreviousButton,a=e.showNextButton,i=e.labels,l=e.dir,s=void 0,u=void 0,c=void 0,f=void 0,p=void 0,d=void 0;"rtl"===l?(s=this.handleNextClick,u=this.handlePreviousClick,c=this.handleNextKeyDown,f=this.handlePreviousKeyDown,d=r,p=a):(s=this.handlePreviousClick,u=this.handleNextClick,c=this.handlePreviousKeyDown,f=this.handleNextKeyDown,d=a,p=r);var h=p?t.navButtonPrev:t.navButtonPrev+" "+t.navButtonInteractionDisabled,v=d?t.navButtonNext:t.navButtonNext+" "+t.navButtonInteractionDisabled,m=o.default.createElement("span",{tabIndex:"0",role:"button","aria-label":i.previousMonth,key:"previous",className:h,onKeyDown:p?c:void 0,onClick:p?s:void 0}),y=o.default.createElement("span",{tabIndex:"0",role:"button","aria-label":i.nextMonth,key:"right",className:v,onKeyDown:d?f:void 0,onClick:d?u:void 0});return o.default.createElement("div",{className:n||t.navBar},"rtl"===l?[y,m]:[m,y])}}]),t}(a.Component);v.propTypes={classNames:l.default.shape({navBar:l.default.string.isRequired,navButtonPrev:l.default.string.isRequired,navButtonNext:l.default.string.isRequired,navButtonInteractionDisabled:l.default.string.isRequired}),className:l.default.string,showPreviousButton:l.default.bool,showNextButton:l.default.bool,onPreviousClick:l.default.func,onNextClick:l.default.func,dir:l.default.string,labels:l.default.shape({previousMonth:l.default.string.isRequired,nextMonth:l.default.string.isRequired})},v.defaultProps={classNames:u.default,dir:"ltr",labels:{previousMonth:"Previous Month",nextMonth:"Next Month"},showPreviousButton:!0,showNextButton:!0},t.default=v},"25f0":function(e,t,n){"use strict";var r=n("6eeb"),a=n("825a"),o=n("d039"),i=n("ad6d"),l="toString",s=RegExp.prototype,u=s[l],c=o((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),f=u.name!=l;(c||f)&&r(RegExp.prototype,l,(function(){var e=a(this),t=String(e.source),n=e.flags,r=String(void 0===n&&e instanceof RegExp&&!("flags"in s)?i.call(e):n);return"/"+t+"/"+r}),{unsafe:!0})},2626:function(e,t,n){"use strict";var r=n("d066"),a=n("9bf2"),o=n("b622"),i=n("83ab"),l=o("species");e.exports=function(e){var t=r(e),n=a.f;i&&t&&!t[l]&&n(t,l,{configurable:!0,get:function(){return this}})}},"262e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 14.57 14.6"},e),o.default.createElement("circle",{cx:"7.25",cy:"7.19",r:"1.22"}),o.default.createElement("path",{d:"M7.19 10.03a2.85 2.85 0 1 1 2.85-2.85 2.85 2.85 0 0 1-2.85 2.85zm0-4.86a2 2 0 1 0 2 2 2 2 0 0 0-2-1.96zM3.8.87a7.35 7.35 0 0 0-3 3.08c-.08.18-.18.37-.21.44l-.06.12 1.79.68c1 .37 1.8.67 1.81.66a1.61 1.61 0 0 0 .14-.24 3.77 3.77 0 0 1 1.22-1.26l.16-.1-.79-1.76-.8-1.76h-.08z"}),o.default.createElement("path",{d:"M5.32 2.28l.8 1.75.24-.07a3.74 3.74 0 0 1 1.12-.12 3.54 3.54 0 0 1 2.5 1.29 2.43 2.43 0 0 1 .42.74 2.73 2.73 0 0 1 .28.78 3.61 3.61 0 0 1 0 1.43v.22l1.78.68c1 .37 1.79.66 1.81.65a7.57 7.57 0 0 0 .29-1.12 7.43 7.43 0 0 0-.37-3.55 9.33 9.33 0 0 0-.78-1.62A7.37 7.37 0 0 0 9.87.47 7.25 7.25 0 0 0 7.54.03a7.44 7.44 0 0 0-2.83.44l-.18.07zM.31 5.18a7.48 7.48 0 0 0-.12 3.65 7.94 7.94 0 0 0 1.3 2.85 6.11 6.11 0 0 0 1.27 1.28s.54-.69 1.17-1.52l1.12-1.51-.19-.19a2.89 2.89 0 0 1-.69-1 3.4 3.4 0 0 1-.26-2.15v-.25l-1.72-.68-1.82-.63zM4.3 11.75c-.7.91-1.11 1.53-1.11 1.55a5.52 5.52 0 0 0 .85.52 7.41 7.41 0 0 0 2.93.77 6.39 6.39 0 0 0 1.11 0s-.11-.86-.25-1.9l-.25-1.9h-.39a3.4 3.4 0 0 1-1.54-.42l-.19-.1zM10.26 9.03l-.07.21h.08l1.81.7 1.73.66.08-.22.08-.21-1.78-.69-1.81-.68z"}))};t.default=u},2661:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M32 20h6v6h-6zm-12-6h6v6h-6zm-6 6h6v6h-6zm0 12h6v6h-6zm6 0h6v6h-6zm12 0h6v6h-6zm-6-12h6v6h-6z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M26 14h6v6h-6zm6 0h6v6h-6zm-12 6h6v6h-6zM8 20h6v6H8z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M14 14h6v6h-6z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M8 14h6v6H8z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M26 26h6v6h-6zM8 26h6v6H8z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M20 26h6v6h-6zm12 0h6v6h-6zm-18 0h6v6h-6z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M26 8h6v6h-6zM8 8h6v6H8z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M20 8h6v6h-6zm12 0h6v6h-6zM14 8h6v6h-6zM8 32h6v6H8zm18 0h6v6h-6z"}),o.default.createElement("circle",{cx:"29",cy:"29",r:"2",fill:"#fff"}),o.default.createElement("circle",{cx:"17",cy:"23",r:"2",fill:"#fff"}),o.default.createElement("circle",{cx:"17",cy:"35",r:"2",fill:"#fff"}),o.default.createElement("circle",{cx:"29",cy:"23",r:"2",fill:"#fff"}),o.default.createElement("circle",{cx:"23",cy:"17",r:"2",fill:"#fff"}),o.default.createElement("path",{fill:"none",stroke:"#fff",d:"M29 11l1.5-1.5M29 11l-1.5-1.5M29 11l1.5 1.5M29 11l-1.5 1.5M35 23l1.5-1.5M35 23l-1.5-1.5M35 23l1.5 1.5M35 23l-1.5 1.5M23 35l1.5-1.5M23 35l-1.5-1.5M23 35l1.5 1.5M23 35l-1.5 1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};t.default=u},"26b8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M23 24v16M11 12v24M35 6v29",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{fill:"#25fdfc",d:"M8 19h6v10H8z"}),o.default.createElement("path",{d:"M13 20v8H9v-8h4m2-2H7v12h8V18z",fill:"#1d9bfb"}),o.default.createElement("path",{fill:"#25fdfc",d:"M20 27h6v4h-6z"}),o.default.createElement("path",{d:"M25 28v2h-4v-2h4m2-2h-8v6h8v-6z",fill:"#1d9bfb"}),o.default.createElement("path",{fill:"#25fdfc",d:"M32 15h6v14h-6z"}),o.default.createElement("path",{d:"M37 16v12h-4V16h4m2-2h-8v16h8V14z",fill:"#1d9bfb"}))};t.default=u},"26e8":function(e,t){function n(e,t){return null!=e&&t in Object(e)}e.exports=n},"271a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Material=void 0;var r=n("ab5b"),a=p(r),o=n("fc55"),i=p(o),l=n("4245"),s=p(l),u=n("a7cc"),c=p(u),f=n("4ccf");function p(e){return e&&e.__esModule?e:{default:e}}var d=t.Material=function(e){var t=e.onChange,n=e.hex,r=e.rgb,o=e.styles,l=void 0===o?{}:o,u=e.className,p=void 0===u?"":u,d=(0,i.default)((0,s.default)({default:{material:{width:"98px",height:"98px",padding:"16px",fontFamily:"Roboto"},HEXwrap:{position:"relative"},HEXinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"2px solid "+n,outline:"none",height:"30px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},Hex:{style:{}},RGBwrap:{position:"relative"},RGBinput:{width:"100%",marginTop:"12px",fontSize:"15px",color:"#333",padding:"0px",border:"0px",borderBottom:"1px solid #eee",outline:"none",height:"30px"},RGBlabel:{position:"absolute",top:"0px",left:"0px",fontSize:"11px",color:"#999999",textTransform:"capitalize"},split:{display:"flex",marginRight:"-10px",paddingTop:"11px"},third:{flex:"1",paddingRight:"10px"}}},l)),h=function(e,n){e.hex?c.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):(e.r||e.g||e.b)&&t({r:e.r||r.r,g:e.g||r.g,b:e.b||r.b,source:"rgb"},n)};return a.default.createElement(f.Raised,{styles:l},a.default.createElement("div",{style:d.material,className:"material-picker "+p},a.default.createElement(f.EditableInput,{style:{wrap:d.HEXwrap,input:d.HEXinput,label:d.HEXlabel},label:"hex",value:n,onChange:h}),a.default.createElement("div",{style:d.split,className:"flexbox-fix"},a.default.createElement("div",{style:d.third},a.default.createElement(f.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"r",value:r.r,onChange:h})),a.default.createElement("div",{style:d.third},a.default.createElement(f.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"g",value:r.g,onChange:h})),a.default.createElement("div",{style:d.third},a.default.createElement(f.EditableInput,{style:{wrap:d.RGBwrap,input:d.RGBinput,label:d.RGBlabel},label:"b",value:r.b,onChange:h})))))};t.default=(0,f.ColorWrap)(d)},"284c":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z"}))};e.exports=l},2877:function(e,t,n){"use strict";function r(e,t,n,r,a,o,i,l){var s,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),i?(s=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(i)},u._ssrRegister=s):a&&(s=l?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),s)if(u.functional){u._injectStyles=s;var c=u.render;u.render=function(e,t){return s.call(t),c(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,s):[s]}return{exports:e,options:u}}n.d(t,"a",(function(){return r}))},"28bf":function(e,t,n){"use strict";var r=n("2b80"),a="Unknown",o={"Mac OS":"Mac OS X"};function i(e){return o[e]||e}function l(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}var s=new r,u=s.getResult(),c=l(u.browser.version),f={browserArchitecture:u.cpu.architecture||a,browserFullVersion:u.browser.version||a,browserMinorVersion:c.minor||a,browserName:u.browser.name||a,browserVersion:u.browser.major||a,deviceName:u.device.model||a,engineName:u.engine.name||a,engineVersion:u.engine.version||a,platformArchitecture:u.cpu.architecture||a,platformName:i(u.os.name)||a,platformVersion:u.os.version||a,platformFullVersion:u.os.version||a};e.exports=f},"28c9":function(e,t){function n(){this.__data__=[],this.size=0}e.exports=n},"290b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"#25fdfc",stroke:"#fff",d:"M32.05 26.375l-2.3 3.45-4.6 1.15-2.3-2.3H19.4l-6.15 1.15-3.45-2.3 3.85-4.6v-3.45h5.163l4.187 3 4.45-3 9.2 6.9h-4.6z",strokeMiterlimit:"10"}),o.default.createElement("path",{fill:"#25fdfc",stroke:"#fff",d:"M36.65 26.375l-9.2-6.9-4.45 3-4.187-3H13.65l-2.875-1.725v-2.3l-1.15-1.15-1.15 1.15-1.15-1.15V9.7h2.3l2.3-1.15h2.3l3.45 2.3h3.45l4.6-2.3 3.45 3.45-3.45 3.45h5.75v-2.3h3.45v1.15l1.15 1.15 1.15-1.15 3.45 3.45v3.45H36.65v5.175zm-9.775 7.475L25.725 35h-1.15l.575-4.025-2.3-2.3H19.4l-6.15 1.15 7.875 4.025v2.3l3.45 2.3h2.3l1.15-1.15V35l-1.15-1.15z",strokeMiterlimit:"10"}),o.default.createElement("circle",{cx:"37.5",cy:"18.5",r:"1",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"23",cy:"18.5",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"11.5",cy:"12.5",r:"1",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"16.5",cy:"22.5",r:"1",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"14.5",cy:"26.5",r:"1",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"26.5",cy:"25.5",r:"3",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"14.5",cy:"15.5",r:"1",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"21.5",cy:"24.5",r:"1",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"24.5",cy:"12.5",r:"1.5",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"31.5",cy:"18.5",r:"1",fill:"#1d9bfb"}))};t.default=u},"29ae":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M11.188 4c4.938 0 10.688 1.625 13.063 3.75 2.938 2.5 4.813 6 5.063 9.875.313 2.375-.625 4.75-2.25 6.625-3.188 2.813-7.313 4.313-11.625 4.313-2.875.125-5.688-.938-7.813-2.938-5.75-5.75-6.688-16.313-3.25-19.75C5.626 4.687 8.001 4 11.189 4m-.001-1.312c-3.188 0-6.125.625-7.75 2.25-4.125 4-2.75 15.438 3.25 21.438a11.902 11.902 0 0 0 8.75 3.375c4.563 0 9.125-1.625 12.563-4.688 4.125-4.125 3.75-12.938-2.813-18.5-2.625-2.313-8.813-3.875-14-3.875zm1.75 6.375c3.875 0 7.188 1.063 8.125 2 1.625 1.5 2.375 3.5 2.375 5.625.188 1.875-.5 3.688-1.813 5.063-1.25 1.063-2.813 1.688-4.563 1.563-2.25 0-4.375-.938-6-2.5-3.75-3.75-5.438-8.688-3.625-10.563.813-.5 2.438-1.188 5.5-1.188m.001-1.313c-2.688 0-5.063.5-6.25 1.563C4 12.001 6.25 17.876 10.251 21.751c1.875 1.875 4.313 2.938 6.938 2.938 2 0 4-.688 5.5-2.125 3.188-3.75 2.938-9.25-.688-12.688-1.438-1.188-5.438-2.125-9.063-2.125zm2 4.625c.5 0 1.063.313 1.438.563 1.875 1.875 2.813 4.5 2.563 4.938a2.002 2.002 0 0 1-1.75 1.063c-1.063-.125-2.125-.688-2.938-1.313-2.25-1.875-2.375-3.063-2.25-3.875 0-.125.125-.313.125-.313.688-.625 1.75-1.063 2.813-1.063m-.001-1.312c-1.875 0-4 1.063-4.25 2.125-.688 2 .625 3.75 2.625 5.375a7.121 7.121 0 0 0 3.875 1.563c1.188 0 2.25-.5 2.813-1.438.938-1.5-.813-4.813-2.688-6.688-.625-.563-1.438-1.063-2.375-.938"}))};t.default=u},"29f3":function(e,t){var n=Object.prototype,r=n.toString;function a(e){return r.call(e)}e.exports=a},"29f4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.autoprefix=void 0;var r=n("020f"),a=i(r),o=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 i(e){return e&&e.__esModule?e:{default:e}}var l={borderRadius:function(e){return{msBorderRadius:e,MozBorderRadius:e,OBorderRadius:e,WebkitBorderRadius:e,borderRadius:e}},boxShadow:function(e){return{msBoxShadow:e,MozBoxShadow:e,OBoxShadow:e,WebkitBoxShadow:e,boxShadow:e}},userSelect:function(e){return{WebkitTouchCallout:e,KhtmlUserSelect:e,MozUserSelect:e,msUserSelect:e,WebkitUserSelect:e,userSelect:e}},flex:function(e){return{WebkitBoxFlex:e,MozBoxFlex:e,WebkitFlex:e,msFlex:e,flex:e}},flexBasis:function(e){return{WebkitFlexBasis:e,flexBasis:e}},justifyContent:function(e){return{WebkitJustifyContent:e,justifyContent:e}},transition:function(e){return{msTransition:e,MozTransition:e,OTransition:e,WebkitTransition:e,transition:e}},transform:function(e){return{msTransform:e,MozTransform:e,OTransform:e,WebkitTransform:e,transform:e}},absolute:function(e){var t=e&&e.split(" ");return{position:"absolute",top:t&&t[0],right:t&&t[1],bottom:t&&t[2],left:t&&t[3]}},extend:function(e,t){var n=t[e];return n||{extend:e}}},s=t.autoprefix=function(e){var t={};return(0,a.default)(e,(function(e,n){var r={};(0,a.default)(e,(function(e,t){var n=l[t];n?r=o({},r,n(e)):r[t]=e})),t[n]=r})),t};t.default=s},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){
/*!
* Vue.js v2.6.11
* (c) 2014-2019 Evan You
* Released under the MIT License.
*/
var n=Object.freeze({});function r(e){return void 0===e||null===e}function a(e){return void 0!==e&&null!==e}function o(e){return!0===e}function i(e){return!1===e}function l(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function s(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function f(e){return"[object RegExp]"===u.call(e)}function p(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function v(e){var t=parseFloat(e);return isNaN(t)?e:t}function m(e,t){for(var n=Object.create(null),r=e.split(","),a=0;a<r.length;a++)n[r[a]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}m("slot,component",!0);var y=m("key,ref,slot,slot-scope,is");function g(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function x(e,t){return b.call(e,t)}function _(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var w=/-(\w)/g,k=_((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),T=_((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),E=/\B([A-Z])/g,O=_((function(e){return e.replace(E,"-$1").toLowerCase()}));function M(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function S(e,t){return e.bind(t)}var C=Function.prototype.bind?S:M;function A(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function P(e,t){for(var n in t)e[n]=t[n];return e}function L(e){for(var t={},n=0;n<e.length;n++)e[n]&&P(t,e[n]);return t}function D(e,t,n){}var j=function(e,t,n){return!1},I=function(e){return e};function R(e,t){if(e===t)return!0;var n=s(e),r=s(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var a=Array.isArray(e),o=Array.isArray(t);if(a&&o)return e.length===t.length&&e.every((function(e,n){return R(e,t[n])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(a||o)return!1;var i=Object.keys(e),l=Object.keys(t);return i.length===l.length&&i.every((function(n){return R(e[n],t[n])}))}catch(u){return!1}}function z(e,t){for(var n=0;n<e.length;n++)if(R(e[n],t))return n;return-1}function N(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var F="data-server-rendered",B=["component","directive","filter"],V=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:j,isReservedAttr:j,isUnknownElement:j,getTagNamespace:D,parsePlatformTagName:I,mustUseProp:j,async:!0,_lifecycleHooks:V},U=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function W(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function q(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var $=new RegExp("[^"+U.source+".$_\\d]");function G(e){if(!$.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}var Y,K="__proto__"in{},X="undefined"!==typeof window,Z="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,J=Z&&WXEnvironment.platform.toLowerCase(),Q=X&&window.navigator.userAgent.toLowerCase(),ee=Q&&/msie|trident/.test(Q),te=Q&&Q.indexOf("msie 9.0")>0,ne=Q&&Q.indexOf("edge/")>0,re=(Q&&Q.indexOf("android"),Q&&/iphone|ipad|ipod|ios/.test(Q)||"ios"===J),ae=(Q&&/chrome\/\d+/.test(Q),Q&&/phantomjs/.test(Q),Q&&Q.match(/firefox\/(\d+)/)),oe={}.watch,ie=!1;if(X)try{var le={};Object.defineProperty(le,"passive",{get:function(){ie=!0}}),window.addEventListener("test-passive",null,le)}catch(ki){}var se=function(){return void 0===Y&&(Y=!X&&!Z&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),Y},ue=X&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"===typeof e&&/native code/.test(e.toString())}var fe,pe="undefined"!==typeof Symbol&&ce(Symbol)&&"undefined"!==typeof Reflect&&ce(Reflect.ownKeys);fe="undefined"!==typeof Set&&ce(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=D,he=0,ve=function(){this.id=he++,this.subs=[]};ve.prototype.addSub=function(e){this.subs.push(e)},ve.prototype.removeSub=function(e){g(this.subs,e)},ve.prototype.depend=function(){ve.target&&ve.target.addDep(this)},ve.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t<n;t++)e[t].update()},ve.target=null;var me=[];function ye(e){me.push(e),ve.target=e}function ge(){me.pop(),ve.target=me[me.length-1]}var be=function(e,t,n,r,a,o,i,l){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=a,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=i,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=l,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},xe={child:{configurable:!0}};xe.child.get=function(){return this.componentInstance},Object.defineProperties(be.prototype,xe);var _e=function(e){void 0===e&&(e="");var t=new be;return t.text=e,t.isComment=!0,t};function we(e){return new be(void 0,void 0,void 0,String(e))}function ke(e){var t=new be(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var Te=Array.prototype,Ee=Object.create(Te),Oe=["push","pop","shift","unshift","splice","sort","reverse"];Oe.forEach((function(e){var t=Te[e];q(Ee,e,(function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];var a,o=t.apply(this,n),i=this.__ob__;switch(e){case"push":case"unshift":a=n;break;case"splice":a=n.slice(2);break}return a&&i.observeArray(a),i.dep.notify(),o}))}));var Me=Object.getOwnPropertyNames(Ee),Se=!0;function Ce(e){Se=e}var Ae=function(e){this.value=e,this.dep=new ve,this.vmCount=0,q(e,"__ob__",this),Array.isArray(e)?(K?Pe(e,Ee):Le(e,Ee,Me),this.observeArray(e)):this.walk(e)};function Pe(e,t){e.__proto__=t}function Le(e,t,n){for(var r=0,a=n.length;r<a;r++){var o=n[r];q(e,o,t[o])}}function De(e,t){var n;if(s(e)&&!(e instanceof be))return x(e,"__ob__")&&e.__ob__ instanceof Ae?n=e.__ob__:Se&&!se()&&(Array.isArray(e)||c(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new Ae(e)),t&&n&&n.vmCount++,n}function je(e,t,n,r,a){var o=new ve,i=Object.getOwnPropertyDescriptor(e,t);if(!i||!1!==i.configurable){var l=i&&i.get,s=i&&i.set;l&&!s||2!==arguments.length||(n=e[t]);var u=!a&&De(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=l?l.call(e):n;return ve.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&ze(t))),t},set:function(t){var r=l?l.call(e):n;t===r||t!==t&&r!==r||l&&!s||(s?s.call(e,t):n=t,u=!a&&De(t),o.notify())}})}}function Ie(e,t,n){if(Array.isArray(e)&&p(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(je(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Re(e,t){if(Array.isArray(e)&&p(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||x(e,t)&&(delete e[t],n&&n.dep.notify())}}function ze(e){for(var t=void 0,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&ze(t)}Ae.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)je(e,t[n])},Ae.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)De(e[t])};var Ne=H.optionMergeStrategies;function Fe(e,t){if(!t)return e;for(var n,r,a,o=pe?Reflect.ownKeys(t):Object.keys(t),i=0;i<o.length;i++)n=o[i],"__ob__"!==n&&(r=e[n],a=t[n],x(e,n)?r!==a&&c(r)&&c(a)&&Fe(r,a):Ie(e,n,a));return e}function Be(e,t,n){return n?function(){var r="function"===typeof t?t.call(n,n):t,a="function"===typeof e?e.call(n,n):e;return r?Fe(r,a):a}:t?e?function(){return Fe("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Ve(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?He(n):n}function He(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}function Ue(e,t,n,r){var a=Object.create(e||null);return t?P(a,t):a}Ne.data=function(e,t,n){return n?Be(e,t,n):t&&"function"!==typeof t?e:Be(e,t)},V.forEach((function(e){Ne[e]=Ve})),B.forEach((function(e){Ne[e+"s"]=Ue})),Ne.watch=function(e,t,n,r){if(e===oe&&(e=void 0),t===oe&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var a={};for(var o in P(a,e),t){var i=a[o],l=t[o];i&&!Array.isArray(i)&&(i=[i]),a[o]=i?i.concat(l):Array.isArray(l)?l:[l]}return a},Ne.props=Ne.methods=Ne.inject=Ne.computed=function(e,t,n,r){if(!e)return t;var a=Object.create(null);return P(a,e),t&&P(a,t),a},Ne.provide=Be;var We=function(e,t){return void 0===t?e:t};function qe(e,t){var n=e.props;if(n){var r,a,o,i={};if(Array.isArray(n)){r=n.length;while(r--)a=n[r],"string"===typeof a&&(o=k(a),i[o]={type:null})}else if(c(n))for(var l in n)a=n[l],o=k(l),i[o]=c(a)?a:{type:a};else 0;e.props=i}}function $e(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var a=0;a<n.length;a++)r[n[a]]={from:n[a]};else if(c(n))for(var o in n){var i=n[o];r[o]=c(i)?P({from:o},i):{from:i}}else 0}}function Ge(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"===typeof r&&(t[n]={bind:r,update:r})}}function Ye(e,t,n){if("function"===typeof t&&(t=t.options),qe(t,n),$e(t,n),Ge(t),!t._base&&(t.extends&&(e=Ye(e,t.extends,n)),t.mixins))for(var r=0,a=t.mixins.length;r<a;r++)e=Ye(e,t.mixins[r],n);var o,i={};for(o in e)l(o);for(o in t)x(e,o)||l(o);function l(r){var a=Ne[r]||We;i[r]=a(e[r],t[r],n,r)}return i}function Ke(e,t,n,r){if("string"===typeof n){var a=e[t];if(x(a,n))return a[n];var o=k(n);if(x(a,o))return a[o];var i=T(o);if(x(a,i))return a[i];var l=a[n]||a[o]||a[i];return l}}function Xe(e,t,n,r){var a=t[e],o=!x(n,e),i=n[e],l=et(Boolean,a.type);if(l>-1)if(o&&!x(a,"default"))i=!1;else if(""===i||i===O(e)){var s=et(String,a.type);(s<0||l<s)&&(i=!0)}if(void 0===i){i=Ze(r,a,e);var u=Se;Ce(!0),De(i),Ce(u)}return i}function Ze(e,t,n){if(x(t,"default")){var r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:"function"===typeof r&&"Function"!==Je(t.type)?r.call(e):r}}function Je(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Qe(e,t){return Je(e)===Je(t)}function et(e,t){if(!Array.isArray(t))return Qe(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(Qe(t[n],e))return n;return-1}function tt(e,t,n){ye();try{if(t){var r=t;while(r=r.$parent){var a=r.$options.errorCaptured;if(a)for(var o=0;o<a.length;o++)try{var i=!1===a[o].call(r,e,t,n);if(i)return}catch(ki){rt(ki,r,"errorCaptured hook")}}}rt(e,t,n)}finally{ge()}}function nt(e,t,n,r,a){var o;try{o=n?e.apply(t,n):e.call(t),o&&!o._isVue&&d(o)&&!o._handled&&(o.catch((function(e){return tt(e,r,a+" (Promise/async)")})),o._handled=!0)}catch(ki){tt(ki,r,a)}return o}function rt(e,t,n){if(H.errorHandler)try{return H.errorHandler.call(null,e,t,n)}catch(ki){ki!==e&&at(ki,null,"config.errorHandler")}at(e,t,n)}function at(e,t,n){if(!X&&!Z||"undefined"===typeof console)throw e;console.error(e)}var ot,it=!1,lt=[],st=!1;function ut(){st=!1;var e=lt.slice(0);lt.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&ce(Promise)){var ct=Promise.resolve();ot=function(){ct.then(ut),re&&setTimeout(D)},it=!0}else if(ee||"undefined"===typeof MutationObserver||!ce(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())ot="undefined"!==typeof setImmediate&&ce(setImmediate)?function(){setImmediate(ut)}:function(){setTimeout(ut,0)};else{var ft=1,pt=new MutationObserver(ut),dt=document.createTextNode(String(ft));pt.observe(dt,{characterData:!0}),ot=function(){ft=(ft+1)%2,dt.data=String(ft)},it=!0}function ht(e,t){var n;if(lt.push((function(){if(e)try{e.call(t)}catch(ki){tt(ki,t,"nextTick")}else n&&n(t)})),st||(st=!0,ot()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){n=e}))}var vt=new fe;function mt(e){yt(e,vt),vt.clear()}function yt(e,t){var n,r,a=Array.isArray(e);if(!(!a&&!s(e)||Object.isFrozen(e)||e instanceof be)){if(e.__ob__){var o=e.__ob__.dep.id;if(t.has(o))return;t.add(o)}if(a){n=e.length;while(n--)yt(e[n],t)}else{r=Object.keys(e),n=r.length;while(n--)yt(e[r[n]],t)}}}var gt=_((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var r="!"===e.charAt(0);return e=r?e.slice(1):e,{name:e,once:n,capture:r,passive:t}}));function bt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return nt(r,null,arguments,t,"v-on handler");for(var a=r.slice(),o=0;o<a.length;o++)nt(a[o],null,e,t,"v-on handler")}return n.fns=e,n}function xt(e,t,n,a,i,l){var s,u,c,f;for(s in e)u=e[s],c=t[s],f=gt(s),r(u)||(r(c)?(r(u.fns)&&(u=e[s]=bt(u,l)),o(f.once)&&(u=e[s]=i(f.name,u,f.capture)),n(f.name,u,f.capture,f.passive,f.params)):u!==c&&(c.fns=u,e[s]=c));for(s in t)r(e[s])&&(f=gt(s),a(f.name,t[s],f.capture))}function _t(e,t,n){var i;e instanceof be&&(e=e.data.hook||(e.data.hook={}));var l=e[t];function s(){n.apply(this,arguments),g(i.fns,s)}r(l)?i=bt([s]):a(l.fns)&&o(l.merged)?(i=l,i.fns.push(s)):i=bt([l,s]),i.merged=!0,e[t]=i}function wt(e,t,n){var o=t.options.props;if(!r(o)){var i={},l=e.attrs,s=e.props;if(a(l)||a(s))for(var u in o){var c=O(u);kt(i,s,u,c,!0)||kt(i,l,u,c,!1)}return i}}function kt(e,t,n,r,o){if(a(t)){if(x(t,n))return e[n]=t[n],o||delete t[n],!0;if(x(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function Tt(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}function Et(e){return l(e)?[we(e)]:Array.isArray(e)?Mt(e):void 0}function Ot(e){return a(e)&&a(e.text)&&i(e.isComment)}function Mt(e,t){var n,i,s,u,c=[];for(n=0;n<e.length;n++)i=e[n],r(i)||"boolean"===typeof i||(s=c.length-1,u=c[s],Array.isArray(i)?i.length>0&&(i=Mt(i,(t||"")+"_"+n),Ot(i[0])&&Ot(u)&&(c[s]=we(u.text+i[0].text),i.shift()),c.push.apply(c,i)):l(i)?Ot(u)?c[s]=we(u.text+i):""!==i&&c.push(we(i)):Ot(i)&&Ot(u)?c[s]=we(u.text+i.text):(o(e._isVList)&&a(i.tag)&&r(i.key)&&a(t)&&(i.key="__vlist"+t+"_"+n+"__"),c.push(i)));return c}function St(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Ct(e){var t=At(e.$options.inject,e);t&&(Ce(!1),Object.keys(t).forEach((function(n){je(e,n,t[n])})),Ce(!0))}function At(e,t){if(e){for(var n=Object.create(null),r=pe?Reflect.ownKeys(e):Object.keys(e),a=0;a<r.length;a++){var o=r[a];if("__ob__"!==o){var i=e[o].from,l=t;while(l){if(l._provided&&x(l._provided,i)){n[o]=l._provided[i];break}l=l.$parent}if(!l)if("default"in e[o]){var s=e[o].default;n[o]="function"===typeof s?s.call(t):s}else 0}}return n}}function Pt(e,t){if(!e||!e.length)return{};for(var n={},r=0,a=e.length;r<a;r++){var o=e[r],i=o.data;if(i&&i.attrs&&i.attrs.slot&&delete i.attrs.slot,o.context!==t&&o.fnContext!==t||!i||null==i.slot)(n.default||(n.default=[])).push(o);else{var l=i.slot,s=n[l]||(n[l]=[]);"template"===o.tag?s.push.apply(s,o.children||[]):s.push(o)}}for(var u in n)n[u].every(Lt)&&delete n[u];return n}function Lt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function Dt(e,t,r){var a,o=Object.keys(t).length>0,i=e?!!e.$stable:!o,l=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(i&&r&&r!==n&&l===r.$key&&!o&&!r.$hasNormal)return r;for(var s in a={},e)e[s]&&"$"!==s[0]&&(a[s]=jt(t,s,e[s]))}else a={};for(var u in t)u in a||(a[u]=It(t,u));return e&&Object.isExtensible(e)&&(e._normalized=a),q(a,"$stable",i),q(a,"$key",l),q(a,"$hasNormal",o),a}function jt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Et(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function It(e,t){return function(){return e[t]}}function Rt(e,t){var n,r,o,i,l;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;r<o;r++)n[r]=t(e[r],r);else if("number"===typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(s(e))if(pe&&e[Symbol.iterator]){n=[];var u=e[Symbol.iterator](),c=u.next();while(!c.done)n.push(t(c.value,n.length)),c=u.next()}else for(i=Object.keys(e),n=new Array(i.length),r=0,o=i.length;r<o;r++)l=i[r],n[r]=t(e[l],l,r);return a(n)||(n=[]),n._isVList=!0,n}function zt(e,t,n,r){var a,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=P(P({},r),n)),a=o(n)||t):a=this.$slots[e]||t;var i=n&&n.slot;return i?this.$createElement("template",{slot:i},a):a}function Nt(e){return Ke(this.$options,"filters",e,!0)||I}function Ft(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Bt(e,t,n,r,a){var o=H.keyCodes[t]||n;return a&&r&&!H.keyCodes[t]?Ft(a,r):o?Ft(o,e):r?O(r)!==t:void 0}function Vt(e,t,n,r,a){if(n)if(s(n)){var o;Array.isArray(n)&&(n=L(n));var i=function(i){if("class"===i||"style"===i||y(i))o=e;else{var l=e.attrs&&e.attrs.type;o=r||H.mustUseProp(t,l,i)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var s=k(i),u=O(i);if(!(s in o)&&!(u in o)&&(o[i]=n[i],a)){var c=e.on||(e.on={});c["update:"+i]=function(e){n[i]=e}}};for(var l in n)i(l)}else;return e}function Ht(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),Wt(r,"__static__"+e,!1)),r}function Ut(e,t,n){return Wt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Wt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!==typeof e[r]&&qt(e[r],t+"_"+r,n);else qt(e,t,n)}function qt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function $t(e,t){if(t)if(c(t)){var n=e.on=e.on?P({},e.on):{};for(var r in t){var a=n[r],o=t[r];n[r]=a?[].concat(a,o):o}}else;return e}function Gt(e,t,n,r){t=t||{$stable:!n};for(var a=0;a<e.length;a++){var o=e[a];Array.isArray(o)?Gt(o,t,n):o&&(o.proxy&&(o.fn.proxy=!0),t[o.key]=o.fn)}return r&&(t.$key=r),t}function Yt(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"===typeof r&&r&&(e[t[n]]=t[n+1])}return e}function Kt(e,t){return"string"===typeof e?t+e:e}function Xt(e){e._o=Ut,e._n=v,e._s=h,e._l=Rt,e._t=zt,e._q=R,e._i=z,e._m=Ht,e._f=Nt,e._k=Bt,e._b=Vt,e._v=we,e._e=_e,e._u=Gt,e._g=$t,e._d=Yt,e._p=Kt}function Zt(e,t,r,a,i){var l,s=this,u=i.options;x(a,"_uid")?(l=Object.create(a),l._original=a):(l=a,a=a._original);var c=o(u._compiled),f=!c;this.data=e,this.props=t,this.children=r,this.parent=a,this.listeners=e.on||n,this.injections=At(u.inject,a),this.slots=function(){return s.$slots||Dt(e.scopedSlots,s.$slots=Pt(r,a)),s.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Dt(e.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=Dt(e.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var o=fn(l,e,t,n,r,f);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=a),o}:this._c=function(e,t,n,r){return fn(l,e,t,n,r,f)}}function Jt(e,t,r,o,i){var l=e.options,s={},u=l.props;if(a(u))for(var c in u)s[c]=Xe(c,u,t||n);else a(r.attrs)&&en(s,r.attrs),a(r.props)&&en(s,r.props);var f=new Zt(r,s,i,o,e),p=l.render.call(null,f._c,f);if(p instanceof be)return Qt(p,r,f.parent,l,f);if(Array.isArray(p)){for(var d=Et(p)||[],h=new Array(d.length),v=0;v<d.length;v++)h[v]=Qt(d[v],r,f.parent,l,f);return h}}function Qt(e,t,n,r,a){var o=ke(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function en(e,t){for(var n in t)e[k(n)]=t[n]}Xt(Zt.prototype);var tn={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var n=e;tn.prepatch(n,n)}else{var r=e.componentInstance=an(e,An);r.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,r=t.componentInstance=e.componentInstance;In(r,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,n=e.componentInstance;n._isMounted||(n._isMounted=!0,Fn(n,"mounted")),e.data.keepAlive&&(t._isMounted?Jn(n):zn(n,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?Nn(t,!0):t.$destroy())}},nn=Object.keys(tn);function rn(e,t,n,i,l){if(!r(e)){var u=n.$options._base;if(s(e)&&(e=u.extend(e)),"function"===typeof e){var c;if(r(e.cid)&&(c=e,e=_n(c,u),void 0===e))return xn(c,t,n,i,l);t=t||{},_r(e),a(t.model)&&sn(e.options,t);var f=wt(t,e,l);if(o(e.options.functional))return Jt(e,f,t,n,i);var p=t.on;if(t.on=t.nativeOn,o(e.options.abstract)){var d=t.slot;t={},d&&(t.slot=d)}on(t);var h=e.options.name||l,v=new be("vue-component-"+e.cid+(h?"-"+h:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:p,tag:l,children:i},c);return v}}}function an(e,t){var n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}function on(e){for(var t=e.hook||(e.hook={}),n=0;n<nn.length;n++){var r=nn[n],a=t[r],o=tn[r];a===o||a&&a._merged||(t[r]=a?ln(o,a):o)}}function ln(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}function sn(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;var o=t.on||(t.on={}),i=o[r],l=t.model.callback;a(i)?(Array.isArray(i)?-1===i.indexOf(l):i!==l)&&(o[r]=[l].concat(i)):o[r]=l}var un=1,cn=2;function fn(e,t,n,r,a,i){return(Array.isArray(n)||l(n))&&(a=r,r=n,n=void 0),o(i)&&(a=cn),pn(e,t,n,r,a)}function pn(e,t,n,r,o){if(a(n)&&a(n.__ob__))return _e();if(a(n)&&a(n.is)&&(t=n.is),!t)return _e();var i,l,s;(Array.isArray(r)&&"function"===typeof r[0]&&(n=n||{},n.scopedSlots={default:r[0]},r.length=0),o===cn?r=Et(r):o===un&&(r=Tt(r)),"string"===typeof t)?(l=e.$vnode&&e.$vnode.ns||H.getTagNamespace(t),i=H.isReservedTag(t)?new be(H.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!a(s=Ke(e.$options,"components",t))?new be(t,n,r,void 0,void 0,e):rn(s,n,e,r,t)):i=rn(t,n,e,r);return Array.isArray(i)?i:a(i)?(a(l)&&dn(i,l),a(n)&&hn(n),i):_e()}function dn(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),a(e.children))for(var i=0,l=e.children.length;i<l;i++){var s=e.children[i];a(s.tag)&&(r(s.ns)||o(n)&&"svg"!==s.tag)&&dn(s,t,n)}}function hn(e){s(e.style)&&mt(e.style),s(e.class)&&mt(e.class)}function vn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,r=e.$vnode=t._parentVnode,a=r&&r.context;e.$slots=Pt(t._renderChildren,a),e.$scopedSlots=n,e._c=function(t,n,r,a){return fn(e,t,n,r,a,!1)},e.$createElement=function(t,n,r,a){return fn(e,t,n,r,a,!0)};var o=r&&r.data;je(e,"$attrs",o&&o.attrs||n,null,!0),je(e,"$listeners",t._parentListeners||n,null,!0)}var mn,yn=null;function gn(e){Xt(e.prototype),e.prototype.$nextTick=function(e){return ht(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,a=n._parentVnode;a&&(t.$scopedSlots=Dt(a.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=a;try{yn=t,e=r.call(t._renderProxy,t.$createElement)}catch(ki){tt(ki,t,"render"),e=t._vnode}finally{yn=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof be||(e=_e()),e.parent=a,e}}function bn(e,t){return(e.__esModule||pe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function xn(e,t,n,r,a){var o=_e();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:a},o}function _n(e,t){if(o(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=yn;if(n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),o(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var i=e.owners=[n],l=!0,u=null,c=null;n.$on("hook:destroyed",(function(){return g(i,n)}));var f=function(e){for(var t=0,n=i.length;t<n;t++)i[t].$forceUpdate();e&&(i.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},p=N((function(n){e.resolved=bn(n,t),l?i.length=0:f(!0)})),h=N((function(t){a(e.errorComp)&&(e.error=!0,f(!0))})),v=e(p,h);return s(v)&&(d(v)?r(e.resolved)&&v.then(p,h):d(v.component)&&(v.component.then(p,h),a(v.error)&&(e.errorComp=bn(v.error,t)),a(v.loading)&&(e.loadingComp=bn(v.loading,t),0===v.delay?e.loading=!0:u=setTimeout((function(){u=null,r(e.resolved)&&r(e.error)&&(e.loading=!0,f(!1))}),v.delay||200)),a(v.timeout)&&(c=setTimeout((function(){c=null,r(e.resolved)&&h(null)}),v.timeout)))),l=!1,e.loading?e.loadingComp:e.resolved}}function wn(e){return e.isComment&&e.asyncFactory}function kn(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(a(n)&&(a(n.componentOptions)||wn(n)))return n}}function Tn(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Sn(e,t)}function En(e,t){mn.$on(e,t)}function On(e,t){mn.$off(e,t)}function Mn(e,t){var n=mn;return function r(){var a=t.apply(null,arguments);null!==a&&n.$off(e,r)}}function Sn(e,t,n){mn=e,xt(t,n||{},En,On,Mn,e),mn=void 0}function Cn(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var a=0,o=e.length;a<o;a++)r.$on(e[a],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,a=e.length;r<a;r++)n.$off(e[r],t);return n}var o,i=n._events[e];if(!i)return n;if(!t)return n._events[e]=null,n;var l=i.length;while(l--)if(o=i[l],o===t||o.fn===t){i.splice(l,1);break}return n},e.prototype.$emit=function(e){var t=this,n=t._events[e];if(n){n=n.length>1?A(n):n;for(var r=A(arguments,1),a='event handler for "'+e+'"',o=0,i=n.length;o<i;o++)nt(n[o],t,r,t,a)}return t}}var An=null;function Pn(e){var t=An;return An=e,function(){An=t}}function Ln(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}function Dn(e){e.prototype._update=function(e,t){var n=this,r=n.$el,a=n._vnode,o=Pn(n);n._vnode=e,n.$el=a?n.__patch__(a,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Fn(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||g(t.$children,e),e._watcher&&e._watcher.teardown();var n=e._watchers.length;while(n--)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Fn(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function jn(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=_e),Fn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new nr(e,r,D,{before:function(){e._isMounted&&!e._isDestroyed&&Fn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Fn(e,"mounted")),e}function In(e,t,r,a,o){var i=a.data.scopedSlots,l=e.$scopedSlots,s=!!(i&&!i.$stable||l!==n&&!l.$stable||i&&e.$scopedSlots.$key!==i.$key),u=!!(o||e.$options._renderChildren||s);if(e.$options._parentVnode=a,e.$vnode=a,e._vnode&&(e._vnode.parent=a),e.$options._renderChildren=o,e.$attrs=a.data.attrs||n,e.$listeners=r||n,t&&e.$options.props){Ce(!1);for(var c=e._props,f=e.$options._propKeys||[],p=0;p<f.length;p++){var d=f[p],h=e.$options.props;c[d]=Xe(d,h,t,e)}Ce(!0),e.$options.propsData=t}r=r||n;var v=e.$options._parentListeners;e.$options._parentListeners=r,Sn(e,r,v),u&&(e.$slots=Pt(o,a.context),e.$forceUpdate())}function Rn(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function zn(e,t){if(t){if(e._directInactive=!1,Rn(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)zn(e.$children[n]);Fn(e,"activated")}}function Nn(e,t){if((!t||(e._directInactive=!0,!Rn(e)))&&!e._inactive){e._inactive=!0;for(var n=0;n<e.$children.length;n++)Nn(e.$children[n]);Fn(e,"deactivated")}}function Fn(e,t){ye();var n=e.$options[t],r=t+" hook";if(n)for(var a=0,o=n.length;a<o;a++)nt(n[a],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),ge()}var Bn=[],Vn=[],Hn={},Un=!1,Wn=!1,qn=0;function $n(){qn=Bn.length=Vn.length=0,Hn={},Un=Wn=!1}var Gn=0,Yn=Date.now;if(X&&!ee){var Kn=window.performance;Kn&&"function"===typeof Kn.now&&Yn()>document.createEvent("Event").timeStamp&&(Yn=function(){return Kn.now()})}function Xn(){var e,t;for(Gn=Yn(),Wn=!0,Bn.sort((function(e,t){return e.id-t.id})),qn=0;qn<Bn.length;qn++)e=Bn[qn],e.before&&e.before(),t=e.id,Hn[t]=null,e.run();var n=Vn.slice(),r=Bn.slice();$n(),Qn(n),Zn(r),ue&&H.devtools&&ue.emit("flush")}function Zn(e){var t=e.length;while(t--){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Fn(r,"updated")}}function Jn(e){e._inactive=!1,Vn.push(e)}function Qn(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,zn(e[t],!0)}function er(e){var t=e.id;if(null==Hn[t]){if(Hn[t]=!0,Wn){var n=Bn.length-1;while(n>qn&&Bn[n].id>e.id)n--;Bn.splice(n+1,0,e)}else Bn.push(e);Un||(Un=!0,ht(Xn))}}var tr=0,nr=function(e,t,n,r,a){this.vm=e,a&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++tr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new fe,this.newDepIds=new fe,this.expression="","function"===typeof t?this.getter=t:(this.getter=G(t),this.getter||(this.getter=D)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var e;ye(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(ki){if(!this.user)throw ki;tt(ki,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&mt(e),ge(),this.cleanupDeps()}return e},nr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},nr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():er(this)},nr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(ki){tt(ki,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var rr={enumerable:!0,configurable:!0,get:D,set:D};function ar(e,t,n){rr.get=function(){return this[t][n]},rr.set=function(e){this[t][n]=e},Object.defineProperty(e,n,rr)}function or(e){e._watchers=[];var t=e.$options;t.props&&ir(e,t.props),t.methods&&hr(e,t.methods),t.data?lr(e):De(e._data={},!0),t.computed&&cr(e,t.computed),t.watch&&t.watch!==oe&&vr(e,t.watch)}function ir(e,t){var n=e.$options.propsData||{},r=e._props={},a=e.$options._propKeys=[],o=!e.$parent;o||Ce(!1);var i=function(o){a.push(o);var i=Xe(o,t,n,e);je(r,o,i),o in e||ar(e,"_props",o)};for(var l in t)i(l);Ce(!0)}function lr(e){var t=e.$options.data;t=e._data="function"===typeof t?sr(t,e):t||{},c(t)||(t={});var n=Object.keys(t),r=e.$options.props,a=(e.$options.methods,n.length);while(a--){var o=n[a];0,r&&x(r,o)||W(o)||ar(e,"_data",o)}De(t,!0)}function sr(e,t){ye();try{return e.call(t,t)}catch(ki){return tt(ki,t,"data()"),{}}finally{ge()}}var ur={lazy:!0};function cr(e,t){var n=e._computedWatchers=Object.create(null),r=se();for(var a in t){var o=t[a],i="function"===typeof o?o:o.get;0,r||(n[a]=new nr(e,i||D,D,ur)),a in e||fr(e,a,o)}}function fr(e,t,n){var r=!se();"function"===typeof n?(rr.get=r?pr(t):dr(n),rr.set=D):(rr.get=n.get?r&&!1!==n.cache?pr(t):dr(n.get):D,rr.set=n.set||D),Object.defineProperty(e,t,rr)}function pr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ve.target&&t.depend(),t.value}}function dr(e){return function(){return e.call(this,this)}}function hr(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?D:C(t[n],e)}function vr(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var a=0;a<r.length;a++)mr(e,n,r[a]);else mr(e,n,r)}}function mr(e,t,n,r){return c(n)&&(r=n,n=n.handler),"string"===typeof n&&(n=e[n]),e.$watch(t,n,r)}function yr(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ie,e.prototype.$delete=Re,e.prototype.$watch=function(e,t,n){var r=this;if(c(t))return mr(r,e,t,n);n=n||{},n.user=!0;var a=new nr(r,e,t,n);if(n.immediate)try{t.call(r,a.value)}catch(o){tt(o,r,'callback for immediate watcher "'+a.expression+'"')}return function(){a.teardown()}}}var gr=0;function br(e){e.prototype._init=function(e){var t=this;t._uid=gr++,t._isVue=!0,e&&e._isComponent?xr(t,e):t.$options=Ye(_r(t.constructor),e||{},t),t._renderProxy=t,t._self=t,Ln(t),Tn(t),vn(t),Fn(t,"beforeCreate"),Ct(t),or(t),St(t),Fn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function xr(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var a=r.componentOptions;n.propsData=a.propsData,n._parentListeners=a.listeners,n._renderChildren=a.children,n._componentTag=a.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}function _r(e){var t=e.options;if(e.super){var n=_r(e.super),r=e.superOptions;if(n!==r){e.superOptions=n;var a=wr(e);a&&P(e.extendOptions,a),t=e.options=Ye(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function wr(e){var t,n=e.options,r=e.sealedOptions;for(var a in n)n[a]!==r[a]&&(t||(t={}),t[a]=n[a]);return t}function kr(e){this._init(e)}function Tr(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}function Er(e){e.mixin=function(e){return this.options=Ye(this.options,e),this}}function Or(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,a=e._Ctor||(e._Ctor={});if(a[r])return a[r];var o=e.name||n.options.name;var i=function(e){this._init(e)};return i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.cid=t++,i.options=Ye(n.options,e),i["super"]=n,i.options.props&&Mr(i),i.options.computed&&Sr(i),i.extend=n.extend,i.mixin=n.mixin,i.use=n.use,B.forEach((function(e){i[e]=n[e]})),o&&(i.options.components[o]=i),i.superOptions=n.options,i.extendOptions=e,i.sealedOptions=P({},i.options),a[r]=i,i}}function Mr(e){var t=e.options.props;for(var n in t)ar(e.prototype,"_props",n)}function Sr(e){var t=e.options.computed;for(var n in t)fr(e.prototype,n,t[n])}function Cr(e){B.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function Ar(e){return e&&(e.Ctor.options.name||e.tag)}function Pr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function Lr(e,t){var n=e.cache,r=e.keys,a=e._vnode;for(var o in n){var i=n[o];if(i){var l=Ar(i.componentOptions);l&&!t(l)&&Dr(n,o,r,a)}}}function Dr(e,t,n,r){var a=e[t];!a||r&&a.tag===r.tag||a.componentInstance.$destroy(),e[t]=null,g(n,t)}br(kr),yr(kr),Cn(kr),Dn(kr),gn(kr);var jr=[String,RegExp,Array],Ir={name:"keep-alive",abstract:!0,props:{include:jr,exclude:jr,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)Dr(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){Lr(e,(function(e){return Pr(t,e)}))})),this.$watch("exclude",(function(t){Lr(e,(function(e){return!Pr(t,e)}))}))},render:function(){var e=this.$slots.default,t=kn(e),n=t&&t.componentOptions;if(n){var r=Ar(n),a=this,o=a.include,i=a.exclude;if(o&&(!r||!Pr(o,r))||i&&r&&Pr(i,r))return t;var l=this,s=l.cache,u=l.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;s[c]?(t.componentInstance=s[c].componentInstance,g(u,c),u.push(c)):(s[c]=t,u.push(c),this.max&&u.length>parseInt(this.max)&&Dr(s,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},Rr={KeepAlive:Ir};function zr(e){var t={get:function(){return H}};Object.defineProperty(e,"config",t),e.util={warn:de,extend:P,mergeOptions:Ye,defineReactive:je},e.set=Ie,e.delete=Re,e.nextTick=ht,e.observable=function(e){return De(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,P(e.options.components,Rr),Tr(e),Er(e),Or(e),Cr(e)}zr(kr),Object.defineProperty(kr.prototype,"$isServer",{get:se}),Object.defineProperty(kr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(kr,"FunctionalRenderContext",{value:Zt}),kr.version="2.6.11";var Nr=m("style,class"),Fr=m("input,textarea,option,select,progress"),Br=function(e,t,n){return"value"===n&&Fr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Vr=m("contenteditable,draggable,spellcheck"),Hr=m("events,caret,typing,plaintext-only"),Ur=function(e,t){return Yr(t)||"false"===t?"false":"contenteditable"===e&&Hr(t)?t:"true"},Wr=m("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),qr="http://www.w3.org/1999/xlink",$r=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Gr=function(e){return $r(e)?e.slice(6,e.length):""},Yr=function(e){return null==e||!1===e};function Kr(e){var t=e.data,n=e,r=e;while(a(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=Xr(r.data,t));while(a(n=n.parent))n&&n.data&&(t=Xr(t,n.data));return Zr(t.staticClass,t.class)}function Xr(e,t){return{staticClass:Jr(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Zr(e,t){return a(e)||a(t)?Jr(e,Qr(t)):""}function Jr(e,t){return e?t?e+" "+t:e:t||""}function Qr(e){return Array.isArray(e)?ea(e):s(e)?ta(e):"string"===typeof e?e:""}function ea(e){for(var t,n="",r=0,o=e.length;r<o;r++)a(t=Qr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}function ta(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}var na={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},ra=m("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),aa=m("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),oa=function(e){return ra(e)||aa(e)};function ia(e){return aa(e)?"svg":"math"===e?"math":void 0}var la=Object.create(null);function sa(e){if(!X)return!0;if(oa(e))return!1;if(e=e.toLowerCase(),null!=la[e])return la[e];var t=document.createElement(e);return e.indexOf("-")>-1?la[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:la[e]=/HTMLUnknownElement/.test(t.toString())}var ua=m("text,number,password,search,email,tel,url");function ca(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function fa(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function pa(e,t){return document.createElementNS(na[e],t)}function da(e){return document.createTextNode(e)}function ha(e){return document.createComment(e)}function va(e,t,n){e.insertBefore(t,n)}function ma(e,t){e.removeChild(t)}function ya(e,t){e.appendChild(t)}function ga(e){return e.parentNode}function ba(e){return e.nextSibling}function xa(e){return e.tagName}function _a(e,t){e.textContent=t}function wa(e,t){e.setAttribute(t,"")}var ka=Object.freeze({createElement:fa,createElementNS:pa,createTextNode:da,createComment:ha,insertBefore:va,removeChild:ma,appendChild:ya,parentNode:ga,nextSibling:ba,tagName:xa,setTextContent:_a,setStyleScope:wa}),Ta={create:function(e,t){Ea(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Ea(e,!0),Ea(t))},destroy:function(e){Ea(e,!0)}};function Ea(e,t){var n=e.data.ref;if(a(n)){var r=e.context,o=e.componentInstance||e.elm,i=r.$refs;t?Array.isArray(i[n])?g(i[n],o):i[n]===o&&(i[n]=void 0):e.data.refInFor?Array.isArray(i[n])?i[n].indexOf(o)<0&&i[n].push(o):i[n]=[o]:i[n]=o}}var Oa=new be("",{},[]),Ma=["create","activate","update","remove","destroy"];function Sa(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&Ca(e,t)||o(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&r(t.asyncFactory.error))}function Ca(e,t){if("input"!==e.tag)return!0;var n,r=a(n=e.data)&&a(n=n.attrs)&&n.type,o=a(n=t.data)&&a(n=n.attrs)&&n.type;return r===o||ua(r)&&ua(o)}function Aa(e,t,n){var r,o,i={};for(r=t;r<=n;++r)o=e[r].key,a(o)&&(i[o]=r);return i}function Pa(e){var t,n,i={},s=e.modules,u=e.nodeOps;for(t=0;t<Ma.length;++t)for(i[Ma[t]]=[],n=0;n<s.length;++n)a(s[n][Ma[t]])&&i[Ma[t]].push(s[n][Ma[t]]);function c(e){return new be(u.tagName(e).toLowerCase(),{},[],void 0,e)}function f(e,t){function n(){0===--n.listeners&&p(e)}return n.listeners=t,n}function p(e){var t=u.parentNode(e);a(t)&&u.removeChild(t,e)}function d(e,t,n,r,i,l,s){if(a(e.elm)&&a(l)&&(e=l[s]=ke(e)),e.isRootInsert=!i,!h(e,t,n,r)){var c=e.data,f=e.children,p=e.tag;a(p)?(e.elm=e.ns?u.createElementNS(e.ns,p):u.createElement(p,e),w(e),b(e,f,t),a(c)&&_(e,t),g(n,e.elm,r)):o(e.isComment)?(e.elm=u.createComment(e.text),g(n,e.elm,r)):(e.elm=u.createTextNode(e.text),g(n,e.elm,r))}}function h(e,t,n,r){var i=e.data;if(a(i)){var l=a(e.componentInstance)&&i.keepAlive;if(a(i=i.hook)&&a(i=i.init)&&i(e,!1),a(e.componentInstance))return v(e,t),g(n,e.elm,r),o(l)&&y(e,t,n,r),!0}}function v(e,t){a(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,x(e)?(_(e,t),w(e)):(Ea(e),t.push(e))}function y(e,t,n,r){var o,l=e;while(l.componentInstance)if(l=l.componentInstance._vnode,a(o=l.data)&&a(o=o.transition)){for(o=0;o<i.activate.length;++o)i.activate[o](Oa,l);t.push(l);break}g(n,e.elm,r)}function g(e,t,n){a(e)&&(a(n)?u.parentNode(n)===e&&u.insertBefore(e,t,n):u.appendChild(e,t))}function b(e,t,n){if(Array.isArray(t)){0;for(var r=0;r<t.length;++r)d(t[r],n,e.elm,null,!0,t,r)}else l(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function x(e){while(e.componentInstance)e=e.componentInstance._vnode;return a(e.tag)}function _(e,n){for(var r=0;r<i.create.length;++r)i.create[r](Oa,e);t=e.data.hook,a(t)&&(a(t.create)&&t.create(Oa,e),a(t.insert)&&n.push(e))}function w(e){var t;if(a(t=e.fnScopeId))u.setStyleScope(e.elm,t);else{var n=e;while(n)a(t=n.context)&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),n=n.parent}a(t=An)&&t!==e.context&&t!==e.fnContext&&a(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function k(e,t,n,r,a,o){for(;r<=a;++r)d(n[r],o,e,t,!1,n,r)}function T(e){var t,n,r=e.data;if(a(r))for(a(t=r.hook)&&a(t=t.destroy)&&t(e),t=0;t<i.destroy.length;++t)i.destroy[t](e);if(a(t=e.children))for(n=0;n<e.children.length;++n)T(e.children[n])}function E(e,t,n){for(;t<=n;++t){var r=e[t];a(r)&&(a(r.tag)?(O(r),T(r)):p(r.elm))}}function O(e,t){if(a(t)||a(e.data)){var n,r=i.remove.length+1;for(a(t)?t.listeners+=r:t=f(e.elm,r),a(n=e.componentInstance)&&a(n=n._vnode)&&a(n.data)&&O(n,t),n=0;n<i.remove.length;++n)i.remove[n](e,t);a(n=e.data.hook)&&a(n=n.remove)?n(e,t):t()}else p(e.elm)}function M(e,t,n,o,i){var l,s,c,f,p=0,h=0,v=t.length-1,m=t[0],y=t[v],g=n.length-1,b=n[0],x=n[g],_=!i;while(p<=v&&h<=g)r(m)?m=t[++p]:r(y)?y=t[--v]:Sa(m,b)?(C(m,b,o,n,h),m=t[++p],b=n[++h]):Sa(y,x)?(C(y,x,o,n,g),y=t[--v],x=n[--g]):Sa(m,x)?(C(m,x,o,n,g),_&&u.insertBefore(e,m.elm,u.nextSibling(y.elm)),m=t[++p],x=n[--g]):Sa(y,b)?(C(y,b,o,n,h),_&&u.insertBefore(e,y.elm,m.elm),y=t[--v],b=n[++h]):(r(l)&&(l=Aa(t,p,v)),s=a(b.key)?l[b.key]:S(b,t,p,v),r(s)?d(b,o,e,m.elm,!1,n,h):(c=t[s],Sa(c,b)?(C(c,b,o,n,h),t[s]=void 0,_&&u.insertBefore(e,c.elm,m.elm)):d(b,o,e,m.elm,!1,n,h)),b=n[++h]);p>v?(f=r(n[g+1])?null:n[g+1].elm,k(e,f,n,h,g,o)):h>g&&E(t,p,v)}function S(e,t,n,r){for(var o=n;o<r;o++){var i=t[o];if(a(i)&&Sa(e,i))return o}}function C(e,t,n,l,s,c){if(e!==t){a(t.elm)&&a(l)&&(t=l[s]=ke(t));var f=t.elm=e.elm;if(o(e.isAsyncPlaceholder))a(t.asyncFactory.resolved)?L(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(o(t.isStatic)&&o(e.isStatic)&&t.key===e.key&&(o(t.isCloned)||o(t.isOnce)))t.componentInstance=e.componentInstance;else{var p,d=t.data;a(d)&&a(p=d.hook)&&a(p=p.prepatch)&&p(e,t);var h=e.children,v=t.children;if(a(d)&&x(t)){for(p=0;p<i.update.length;++p)i.update[p](e,t);a(p=d.hook)&&a(p=p.update)&&p(e,t)}r(t.text)?a(h)&&a(v)?h!==v&&M(f,h,v,n,c):a(v)?(a(e.text)&&u.setTextContent(f,""),k(f,null,v,0,v.length-1,n)):a(h)?E(h,0,h.length-1):a(e.text)&&u.setTextContent(f,""):e.text!==t.text&&u.setTextContent(f,t.text),a(d)&&a(p=d.hook)&&a(p=p.postpatch)&&p(e,t)}}}function A(e,t,n){if(o(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var P=m("attrs,class,staticClass,staticStyle,key");function L(e,t,n,r){var i,l=t.tag,s=t.data,u=t.children;if(r=r||s&&s.pre,t.elm=e,o(t.isComment)&&a(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(a(s)&&(a(i=s.hook)&&a(i=i.init)&&i(t,!0),a(i=t.componentInstance)))return v(t,n),!0;if(a(l)){if(a(u))if(e.hasChildNodes())if(a(i=s)&&a(i=i.domProps)&&a(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var c=!0,f=e.firstChild,p=0;p<u.length;p++){if(!f||!L(f,u[p],n,r)){c=!1;break}f=f.nextSibling}if(!c||f)return!1}else b(t,u,n);if(a(s)){var d=!1;for(var h in s)if(!P(h)){d=!0,_(t,n);break}!d&&s["class"]&&mt(s["class"])}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,l){if(!r(t)){var s=!1,f=[];if(r(e))s=!0,d(t,f);else{var p=a(e.nodeType);if(!p&&Sa(e,t))C(e,t,f,null,null,l);else{if(p){if(1===e.nodeType&&e.hasAttribute(F)&&(e.removeAttribute(F),n=!0),o(n)&&L(e,t,f))return A(t,f,!0),e;e=c(e)}var h=e.elm,v=u.parentNode(h);if(d(t,f,h._leaveCb?null:v,u.nextSibling(h)),a(t.parent)){var m=t.parent,y=x(t);while(m){for(var g=0;g<i.destroy.length;++g)i.destroy[g](m);if(m.elm=t.elm,y){for(var b=0;b<i.create.length;++b)i.create[b](Oa,m);var _=m.data.hook.insert;if(_.merged)for(var w=1;w<_.fns.length;w++)_.fns[w]()}else Ea(m);m=m.parent}}a(v)?E([e],0,0):a(e.tag)&&T(e)}}return A(t,f,s),t.elm}a(e)&&T(e)}}var La={create:Da,update:Da,destroy:function(e){Da(e,Oa)}};function Da(e,t){(e.data.directives||t.data.directives)&&ja(e,t)}function ja(e,t){var n,r,a,o=e===Oa,i=t===Oa,l=Ra(e.data.directives,e.context),s=Ra(t.data.directives,t.context),u=[],c=[];for(n in s)r=l[n],a=s[n],r?(a.oldValue=r.value,a.oldArg=r.arg,Na(a,"update",t,e),a.def&&a.def.componentUpdated&&c.push(a)):(Na(a,"bind",t,e),a.def&&a.def.inserted&&u.push(a));if(u.length){var f=function(){for(var n=0;n<u.length;n++)Na(u[n],"inserted",t,e)};o?_t(t,"insert",f):f()}if(c.length&&_t(t,"postpatch",(function(){for(var n=0;n<c.length;n++)Na(c[n],"componentUpdated",t,e)})),!o)for(n in l)s[n]||Na(l[n],"unbind",e,e,i)}var Ia=Object.create(null);function Ra(e,t){var n,r,a=Object.create(null);if(!e)return a;for(n=0;n<e.length;n++)r=e[n],r.modifiers||(r.modifiers=Ia),a[za(r)]=r,r.def=Ke(t.$options,"directives",r.name,!0);return a}function za(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function Na(e,t,n,r,a){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,a)}catch(ki){tt(ki,n.context,"directive "+e.name+" "+t+" hook")}}var Fa=[Ta,La];function Ba(e,t){var n=t.componentOptions;if((!a(n)||!1!==n.Ctor.options.inheritAttrs)&&(!r(e.data.attrs)||!r(t.data.attrs))){var o,i,l,s=t.elm,u=e.data.attrs||{},c=t.data.attrs||{};for(o in a(c.__ob__)&&(c=t.data.attrs=P({},c)),c)i=c[o],l=u[o],l!==i&&Va(s,o,i);for(o in(ee||ne)&&c.value!==u.value&&Va(s,"value",c.value),u)r(c[o])&&($r(o)?s.removeAttributeNS(qr,Gr(o)):Vr(o)||s.removeAttribute(o))}}function Va(e,t,n){e.tagName.indexOf("-")>-1?Ha(e,t,n):Wr(t)?Yr(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Vr(t)?e.setAttribute(t,Ur(t,n)):$r(t)?Yr(n)?e.removeAttributeNS(qr,Gr(t)):e.setAttributeNS(qr,t,n):Ha(e,t,n)}function Ha(e,t,n){if(Yr(n))e.removeAttribute(t);else{if(ee&&!te&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var Ua={create:Ba,update:Ba};function Wa(e,t){var n=t.elm,o=t.data,i=e.data;if(!(r(o.staticClass)&&r(o.class)&&(r(i)||r(i.staticClass)&&r(i.class)))){var l=Kr(t),s=n._transitionClasses;a(s)&&(l=Jr(l,Qr(s))),l!==n._prevClass&&(n.setAttribute("class",l),n._prevClass=l)}}var qa,$a={create:Wa,update:Wa},Ga="__r",Ya="__c";function Ka(e){if(a(e[Ga])){var t=ee?"change":"input";e[t]=[].concat(e[Ga],e[t]||[]),delete e[Ga]}a(e[Ya])&&(e.change=[].concat(e[Ya],e.change||[]),delete e[Ya])}function Xa(e,t,n){var r=qa;return function a(){var o=t.apply(null,arguments);null!==o&&Qa(e,a,n,r)}}var Za=it&&!(ae&&Number(ae[1])<=53);function Ja(e,t,n,r){if(Za){var a=Gn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=a||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}qa.addEventListener(e,t,ie?{capture:n,passive:r}:n)}function Qa(e,t,n,r){(r||qa).removeEventListener(e,t._wrapper||t,n)}function eo(e,t){if(!r(e.data.on)||!r(t.data.on)){var n=t.data.on||{},a=e.data.on||{};qa=t.elm,Ka(n),xt(n,a,Ja,Qa,Xa,t.context),qa=void 0}}var to,no={create:eo,update:eo};function ro(e,t){if(!r(e.data.domProps)||!r(t.data.domProps)){var n,o,i=t.elm,l=e.data.domProps||{},s=t.data.domProps||{};for(n in a(s.__ob__)&&(s=t.data.domProps=P({},s)),l)n in s||(i[n]="");for(n in s){if(o=s[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),o===l[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=o;var u=r(o)?"":String(o);ao(i,u)&&(i.value=u)}else if("innerHTML"===n&&aa(i.tagName)&&r(i.innerHTML)){to=to||document.createElement("div"),to.innerHTML="<svg>"+o+"</svg>";var c=to.firstChild;while(i.firstChild)i.removeChild(i.firstChild);while(c.firstChild)i.appendChild(c.firstChild)}else if(o!==l[n])try{i[n]=o}catch(ki){}}}}function ao(e,t){return!e.composing&&("OPTION"===e.tagName||oo(e,t)||io(e,t))}function oo(e,t){var n=!0;try{n=document.activeElement!==e}catch(ki){}return n&&e.value!==t}function io(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return v(n)!==v(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var lo={create:ro,update:ro},so=_((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function uo(e){var t=co(e.style);return e.staticStyle?P(e.staticStyle,t):t}function co(e){return Array.isArray(e)?L(e):"string"===typeof e?so(e):e}function fo(e,t){var n,r={};if(t){var a=e;while(a.componentInstance)a=a.componentInstance._vnode,a&&a.data&&(n=uo(a.data))&&P(r,n)}(n=uo(e.data))&&P(r,n);var o=e;while(o=o.parent)o.data&&(n=uo(o.data))&&P(r,n);return r}var po,ho=/^--/,vo=/\s*!important$/,mo=function(e,t,n){if(ho.test(t))e.style.setProperty(t,n);else if(vo.test(n))e.style.setProperty(O(t),n.replace(vo,""),"important");else{var r=go(t);if(Array.isArray(n))for(var a=0,o=n.length;a<o;a++)e.style[r]=n[a];else e.style[r]=n}},yo=["Webkit","Moz","ms"],go=_((function(e){if(po=po||document.createElement("div").style,e=k(e),"filter"!==e&&e in po)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<yo.length;n++){var r=yo[n]+t;if(r in po)return r}}));function bo(e,t){var n=t.data,o=e.data;if(!(r(n.staticStyle)&&r(n.style)&&r(o.staticStyle)&&r(o.style))){var i,l,s=t.elm,u=o.staticStyle,c=o.normalizedStyle||o.style||{},f=u||c,p=co(t.data.style)||{};t.data.normalizedStyle=a(p.__ob__)?P({},p):p;var d=fo(t,!0);for(l in f)r(d[l])&&mo(s,l,"");for(l in d)i=d[l],i!==f[l]&&mo(s,l,null==i?"":i)}}var xo={create:bo,update:bo},_o=/\s+/;function wo(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(_o).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function ko(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(_o).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function To(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&P(t,Eo(e.name||"v")),P(t,e),t}return"string"===typeof e?Eo(e):void 0}}var Eo=_((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Oo=X&&!te,Mo="transition",So="animation",Co="transition",Ao="transitionend",Po="animation",Lo="animationend";Oo&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Co="WebkitTransition",Ao="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Po="WebkitAnimation",Lo="webkitAnimationEnd"));var Do=X?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function jo(e){Do((function(){Do(e)}))}function Io(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),wo(e,t))}function Ro(e,t){e._transitionClasses&&g(e._transitionClasses,t),ko(e,t)}function zo(e,t,n){var r=Fo(e,t),a=r.type,o=r.timeout,i=r.propCount;if(!a)return n();var l=a===Mo?Ao:Lo,s=0,u=function(){e.removeEventListener(l,c),n()},c=function(t){t.target===e&&++s>=i&&u()};setTimeout((function(){s<i&&u()}),o+1),e.addEventListener(l,c)}var No=/\b(transform|all)(,|$)/;function Fo(e,t){var n,r=window.getComputedStyle(e),a=(r[Co+"Delay"]||"").split(", "),o=(r[Co+"Duration"]||"").split(", "),i=Bo(a,o),l=(r[Po+"Delay"]||"").split(", "),s=(r[Po+"Duration"]||"").split(", "),u=Bo(l,s),c=0,f=0;t===Mo?i>0&&(n=Mo,c=i,f=o.length):t===So?u>0&&(n=So,c=u,f=s.length):(c=Math.max(i,u),n=c>0?i>u?Mo:So:null,f=n?n===Mo?o.length:s.length:0);var p=n===Mo&&No.test(r[Co+"Property"]);return{type:n,timeout:c,propCount:f,hasTransform:p}}function Bo(e,t){while(e.length<t.length)e=e.concat(e);return Math.max.apply(null,t.map((function(t,n){return Vo(t)+Vo(e[n])})))}function Vo(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Ho(e,t){var n=e.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());var o=To(e.data.transition);if(!r(o)&&!a(n._enterCb)&&1===n.nodeType){var i=o.css,l=o.type,u=o.enterClass,c=o.enterToClass,f=o.enterActiveClass,p=o.appearClass,d=o.appearToClass,h=o.appearActiveClass,m=o.beforeEnter,y=o.enter,g=o.afterEnter,b=o.enterCancelled,x=o.beforeAppear,_=o.appear,w=o.afterAppear,k=o.appearCancelled,T=o.duration,E=An,O=An.$vnode;while(O&&O.parent)E=O.context,O=O.parent;var M=!E._isMounted||!e.isRootInsert;if(!M||_||""===_){var S=M&&p?p:u,C=M&&h?h:f,A=M&&d?d:c,P=M&&x||m,L=M&&"function"===typeof _?_:y,D=M&&w||g,j=M&&k||b,I=v(s(T)?T.enter:T);0;var R=!1!==i&&!te,z=qo(L),F=n._enterCb=N((function(){R&&(Ro(n,A),Ro(n,C)),F.cancelled?(R&&Ro(n,S),j&&j(n)):D&&D(n),n._enterCb=null}));e.data.show||_t(e,"insert",(function(){var t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),L&&L(n,F)})),P&&P(n),R&&(Io(n,S),Io(n,C),jo((function(){Ro(n,S),F.cancelled||(Io(n,A),z||(Wo(I)?setTimeout(F,I):zo(n,l,F)))}))),e.data.show&&(t&&t(),L&&L(n,F)),R||z||F()}}}function Uo(e,t){var n=e.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var o=To(e.data.transition);if(r(o)||1!==n.nodeType)return t();if(!a(n._leaveCb)){var i=o.css,l=o.type,u=o.leaveClass,c=o.leaveToClass,f=o.leaveActiveClass,p=o.beforeLeave,d=o.leave,h=o.afterLeave,m=o.leaveCancelled,y=o.delayLeave,g=o.duration,b=!1!==i&&!te,x=qo(d),_=v(s(g)?g.leave:g);0;var w=n._leaveCb=N((function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(Ro(n,c),Ro(n,f)),w.cancelled?(b&&Ro(n,u),m&&m(n)):(t(),h&&h(n)),n._leaveCb=null}));y?y(k):k()}function k(){w.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),p&&p(n),b&&(Io(n,u),Io(n,f),jo((function(){Ro(n,u),w.cancelled||(Io(n,c),x||(Wo(_)?setTimeout(w,_):zo(n,l,w)))}))),d&&d(n,w),b||x||w())}}function Wo(e){return"number"===typeof e&&!isNaN(e)}function qo(e){if(r(e))return!1;var t=e.fns;return a(t)?qo(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function $o(e,t){!0!==t.data.show&&Ho(t)}var Go=X?{create:$o,activate:$o,remove:function(e,t){!0!==e.data.show?Uo(e,t):t()}}:{},Yo=[Ua,$a,no,lo,xo,Go],Ko=Yo.concat(Fa),Xo=Pa({nodeOps:ka,modules:Ko});te&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&ai(e,"input")}));var Zo={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?_t(n,"postpatch",(function(){Zo.componentUpdated(e,t,n)})):Jo(e,t,n.context),e._vOptions=[].map.call(e.options,ti)):("textarea"===n.tag||ua(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",ni),e.addEventListener("compositionend",ri),e.addEventListener("change",ri),te&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Jo(e,t,n.context);var r=e._vOptions,a=e._vOptions=[].map.call(e.options,ti);if(a.some((function(e,t){return!R(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return ei(e,a)})):t.value!==t.oldValue&&ei(t.value,a);o&&ai(e,"change")}}}};function Jo(e,t,n){Qo(e,t,n),(ee||ne)&&setTimeout((function(){Qo(e,t,n)}),0)}function Qo(e,t,n){var r=t.value,a=e.multiple;if(!a||Array.isArray(r)){for(var o,i,l=0,s=e.options.length;l<s;l++)if(i=e.options[l],a)o=z(r,ti(i))>-1,i.selected!==o&&(i.selected=o);else if(R(ti(i),r))return void(e.selectedIndex!==l&&(e.selectedIndex=l));a||(e.selectedIndex=-1)}}function ei(e,t){return t.every((function(t){return!R(t,e)}))}function ti(e){return"_value"in e?e._value:e.value}function ni(e){e.target.composing=!0}function ri(e){e.target.composing&&(e.target.composing=!1,ai(e.target,"input"))}function ai(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function oi(e){return!e.componentInstance||e.data&&e.data.transition?e:oi(e.componentInstance._vnode)}var ii={bind:function(e,t,n){var r=t.value;n=oi(n);var a=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&a?(n.data.show=!0,Ho(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,a=t.oldValue;if(!r!==!a){n=oi(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Ho(n,(function(){e.style.display=e.__vOriginalDisplay})):Uo(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,a){a||(e.style.display=e.__vOriginalDisplay)}},li={model:Zo,show:ii},si={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function ui(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?ui(kn(t.children)):e}function ci(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var a=n._parentListeners;for(var o in a)t[k(o)]=a[o];return t}function fi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function pi(e){while(e=e.parent)if(e.data.transition)return!0}function di(e,t){return t.key===e.key&&t.tag===e.tag}var hi=function(e){return e.tag||wn(e)},vi=function(e){return"show"===e.name},mi={name:"transition",props:si,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(hi),n.length)){0;var r=this.mode;0;var a=n[0];if(pi(this.$vnode))return a;var o=ui(a);if(!o)return a;if(this._leaving)return fi(e,a);var i="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?i+"comment":i+o.tag:l(o.key)?0===String(o.key).indexOf(i)?o.key:i+o.key:o.key;var s=(o.data||(o.data={})).transition=ci(this),u=this._vnode,c=ui(u);if(o.data.directives&&o.data.directives.some(vi)&&(o.data.show=!0),c&&c.data&&!di(o,c)&&!wn(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var f=c.data.transition=P({},s);if("out-in"===r)return this._leaving=!0,_t(f,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),fi(e,a);if("in-out"===r){if(wn(o))return u;var p,d=function(){p()};_t(s,"afterEnter",d),_t(s,"enterCancelled",d),_t(f,"delayLeave",(function(e){p=e}))}}return a}}},yi=P({tag:String,moveClass:String},si);delete yi.mode;var gi={props:yi,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var a=Pn(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,a(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,a=this.$slots.default||[],o=this.children=[],i=ci(this),l=0;l<a.length;l++){var s=a[l];if(s.tag)if(null!=s.key&&0!==String(s.key).indexOf("__vlist"))o.push(s),n[s.key]=s,(s.data||(s.data={})).transition=i;else;}if(r){for(var u=[],c=[],f=0;f<r.length;f++){var p=r[f];p.data.transition=i,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?u.push(p):c.push(p)}this.kept=e(t,null,u),this.removed=c}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(bi),e.forEach(xi),e.forEach(_i),this._reflow=document.body.offsetHeight,e.forEach((function(e){if(e.data.moved){var n=e.elm,r=n.style;Io(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ao,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ao,e),n._moveCb=null,Ro(n,t))})}})))},methods:{hasMove:function(e,t){if(!Oo)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((function(e){ko(n,e)})),wo(n,t),n.style.display="none",this.$el.appendChild(n);var r=Fo(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function bi(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function xi(e){e.data.newPos=e.elm.getBoundingClientRect()}function _i(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,a=t.top-n.top;if(r||a){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+a+"px)",o.transitionDuration="0s"}}var wi={Transition:mi,TransitionGroup:gi};kr.config.mustUseProp=Br,kr.config.isReservedTag=oa,kr.config.isReservedAttr=Nr,kr.config.getTagNamespace=ia,kr.config.isUnknownElement=sa,P(kr.options.directives,li),P(kr.options.components,wi),kr.prototype.__patch__=X?Xo:D,kr.prototype.$mount=function(e,t){return e=e&&X?ca(e):void 0,jn(this,e,t)},X&&setTimeout((function(){H.devtools&&ue&&ue.emit("init",kr)}),0),t["default"]=kr}.call(this,n("c8ba"))},"2b3d":function(e,t,n){"use strict";n("3ca3");var r,a=n("23e7"),o=n("83ab"),i=n("0d3b"),l=n("da84"),s=n("37e8"),u=n("6eeb"),c=n("19aa"),f=n("5135"),p=n("60da"),d=n("4df4"),h=n("6547").codeAt,v=n("5fb2"),m=n("d44e"),y=n("9861"),g=n("69f3"),b=l.URL,x=y.URLSearchParams,_=y.getState,w=g.set,k=g.getterFor("URL"),T=Math.floor,E=Math.pow,O="Invalid authority",M="Invalid scheme",S="Invalid host",C="Invalid port",A=/[A-Za-z]/,P=/[\d+-.A-Za-z]/,L=/\d/,D=/^(0x|0X)/,j=/^[0-7]+$/,I=/^\d+$/,R=/^[\dA-Fa-f]+$/,z=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,N=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,F=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,B=/[\u0009\u000A\u000D]/g,V=function(e,t){var n,r,a;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return S;if(n=U(t.slice(1,-1)),!n)return S;e.host=n}else if(J(e)){if(t=v(t),z.test(t))return S;if(n=H(t),null===n)return S;e.host=n}else{if(N.test(t))return S;for(n="",r=d(t),a=0;a<r.length;a++)n+=X(r[a],$);e.host=n}},H=function(e){var t,n,r,a,o,i,l,s=e.split(".");if(s.length&&""==s[s.length-1]&&s.pop(),t=s.length,t>4)return e;for(n=[],r=0;r<t;r++){if(a=s[r],""==a)return e;if(o=10,a.length>1&&"0"==a.charAt(0)&&(o=D.test(a)?16:8,a=a.slice(8==o?1:2)),""===a)i=0;else{if(!(10==o?I:8==o?j:R).test(a))return e;i=parseInt(a,o)}n.push(i)}for(r=0;r<t;r++)if(i=n[r],r==t-1){if(i>=E(256,5-t))return null}else if(i>255)return null;for(l=n.pop(),r=0;r<n.length;r++)l+=n[r]*E(256,3-r);return l},U=function(e){var t,n,r,a,o,i,l,s=[0,0,0,0,0,0,0,0],u=0,c=null,f=0,p=function(){return e.charAt(f)};if(":"==p()){if(":"!=e.charAt(1))return;f+=2,u++,c=u}while(p()){if(8==u)return;if(":"!=p()){t=n=0;while(n<4&&R.test(p()))t=16*t+parseInt(p(),16),f++,n++;if("."==p()){if(0==n)return;if(f-=n,u>6)return;r=0;while(p()){if(a=null,r>0){if(!("."==p()&&r<4))return;f++}if(!L.test(p()))return;while(L.test(p())){if(o=parseInt(p(),10),null===a)a=o;else{if(0==a)return;a=10*a+o}if(a>255)return;f++}s[u]=256*s[u]+a,r++,2!=r&&4!=r||u++}if(4!=r)return;break}if(":"==p()){if(f++,!p())return}else if(p())return;s[u++]=t}else{if(null!==c)return;f++,u++,c=u}}if(null!==c){i=u-c,u=7;while(0!=u&&i>0)l=s[u],s[u--]=s[c+i-1],s[c+--i]=l}else if(8!=u)return;return s},W=function(e){for(var t=null,n=1,r=null,a=0,o=0;o<8;o++)0!==e[o]?(a>n&&(t=r,n=a),r=null,a=0):(null===r&&(r=o),++a);return a>n&&(t=r,n=a),t},q=function(e){var t,n,r,a;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=T(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=W(e),n=0;n<8;n++)a&&0===e[n]||(a&&(a=!1),r===n?(t+=n?":":"::",a=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},$={},G=p({},$,{" ":1,'"':1,"<":1,">":1,"`":1}),Y=p({},G,{"#":1,"?":1,"{":1,"}":1}),K=p({},Y,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),X=function(e,t){var n=h(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},Z={ftp:21,file:null,http:80,https:443,ws:80,wss:443},J=function(e){return f(Z,e.scheme)},Q=function(e){return""!=e.username||""!=e.password},ee=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},te=function(e,t){var n;return 2==e.length&&A.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ne=function(e){var t;return e.length>1&&te(e.slice(0,2))&&(2==e.length||"/"===(t=e.charAt(2))||"\\"===t||"?"===t||"#"===t)},re=function(e){var t=e.path,n=t.length;!n||"file"==e.scheme&&1==n&&te(t[0],!0)||t.pop()},ae=function(e){return"."===e||"%2e"===e.toLowerCase()},oe=function(e){return e=e.toLowerCase(),".."===e||"%2e."===e||".%2e"===e||"%2e%2e"===e},ie={},le={},se={},ue={},ce={},fe={},pe={},de={},he={},ve={},me={},ye={},ge={},be={},xe={},_e={},we={},ke={},Te={},Ee={},Oe={},Me=function(e,t,n,a){var o,i,l,s,u=n||ie,c=0,p="",h=!1,v=!1,m=!1;n||(e.scheme="",e.username="",e.password="",e.host=null,e.port=null,e.path=[],e.query=null,e.fragment=null,e.cannotBeABaseURL=!1,t=t.replace(F,"")),t=t.replace(B,""),o=d(t);while(c<=o.length){switch(i=o[c],u){case ie:if(!i||!A.test(i)){if(n)return M;u=se;continue}p+=i.toLowerCase(),u=le;break;case le:if(i&&(P.test(i)||"+"==i||"-"==i||"."==i))p+=i.toLowerCase();else{if(":"!=i){if(n)return M;p="",u=se,c=0;continue}if(n&&(J(e)!=f(Z,p)||"file"==p&&(Q(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=p,n)return void(J(e)&&Z[e.scheme]==e.port&&(e.port=null));p="","file"==e.scheme?u=be:J(e)&&a&&a.scheme==e.scheme?u=ue:J(e)?u=de:"/"==o[c+1]?(u=ce,c++):(e.cannotBeABaseURL=!0,e.path.push(""),u=Te)}break;case se:if(!a||a.cannotBeABaseURL&&"#"!=i)return M;if(a.cannotBeABaseURL&&"#"==i){e.scheme=a.scheme,e.path=a.path.slice(),e.query=a.query,e.fragment="",e.cannotBeABaseURL=!0,u=Oe;break}u="file"==a.scheme?be:fe;continue;case ue:if("/"!=i||"/"!=o[c+1]){u=fe;continue}u=he,c++;break;case ce:if("/"==i){u=ve;break}u=ke;continue;case fe:if(e.scheme=a.scheme,i==r)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query;else if("/"==i||"\\"==i&&J(e))u=pe;else if("?"==i)e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query="",u=Ee;else{if("#"!=i){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.path.pop(),u=ke;continue}e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,e.path=a.path.slice(),e.query=a.query,e.fragment="",u=Oe}break;case pe:if(!J(e)||"/"!=i&&"\\"!=i){if("/"!=i){e.username=a.username,e.password=a.password,e.host=a.host,e.port=a.port,u=ke;continue}u=ve}else u=he;break;case de:if(u=he,"/"!=i||"/"!=p.charAt(c+1))continue;c++;break;case he:if("/"!=i&&"\\"!=i){u=ve;continue}break;case ve:if("@"==i){h&&(p="%40"+p),h=!0,l=d(p);for(var y=0;y<l.length;y++){var g=l[y];if(":"!=g||m){var b=X(g,K);m?e.password+=b:e.username+=b}else m=!0}p=""}else if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&J(e)){if(h&&""==p)return O;c-=d(p).length+1,p="",u=me}else p+=i;break;case me:case ye:if(n&&"file"==e.scheme){u=_e;continue}if(":"!=i||v){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&J(e)){if(J(e)&&""==p)return S;if(n&&""==p&&(Q(e)||null!==e.port))return;if(s=V(e,p),s)return s;if(p="",u=we,n)return;continue}"["==i?v=!0:"]"==i&&(v=!1),p+=i}else{if(""==p)return S;if(s=V(e,p),s)return s;if(p="",u=ge,n==ye)return}break;case ge:if(!L.test(i)){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&J(e)||n){if(""!=p){var x=parseInt(p,10);if(x>65535)return C;e.port=J(e)&&x===Z[e.scheme]?null:x,p=""}if(n)return;u=we;continue}return C}p+=i;break;case be:if(e.scheme="file","/"==i||"\\"==i)u=xe;else{if(!a||"file"!=a.scheme){u=ke;continue}if(i==r)e.host=a.host,e.path=a.path.slice(),e.query=a.query;else if("?"==i)e.host=a.host,e.path=a.path.slice(),e.query="",u=Ee;else{if("#"!=i){ne(o.slice(c).join(""))||(e.host=a.host,e.path=a.path.slice(),re(e)),u=ke;continue}e.host=a.host,e.path=a.path.slice(),e.query=a.query,e.fragment="",u=Oe}}break;case xe:if("/"==i||"\\"==i){u=_e;break}a&&"file"==a.scheme&&!ne(o.slice(c).join(""))&&(te(a.path[0],!0)?e.path.push(a.path[0]):e.host=a.host),u=ke;continue;case _e:if(i==r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!n&&te(p))u=ke;else if(""==p){if(e.host="",n)return;u=we}else{if(s=V(e,p),s)return s;if("localhost"==e.host&&(e.host=""),n)return;p="",u=we}continue}p+=i;break;case we:if(J(e)){if(u=ke,"/"!=i&&"\\"!=i)continue}else if(n||"?"!=i)if(n||"#"!=i){if(i!=r&&(u=ke,"/"!=i))continue}else e.fragment="",u=Oe;else e.query="",u=Ee;break;case ke:if(i==r||"/"==i||"\\"==i&&J(e)||!n&&("?"==i||"#"==i)){if(oe(p)?(re(e),"/"==i||"\\"==i&&J(e)||e.path.push("")):ae(p)?"/"==i||"\\"==i&&J(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&te(p)&&(e.host&&(e.host=""),p=p.charAt(0)+":"),e.path.push(p)),p="","file"==e.scheme&&(i==r||"?"==i||"#"==i))while(e.path.length>1&&""===e.path[0])e.path.shift();"?"==i?(e.query="",u=Ee):"#"==i&&(e.fragment="",u=Oe)}else p+=X(i,Y);break;case Te:"?"==i?(e.query="",u=Ee):"#"==i?(e.fragment="",u=Oe):i!=r&&(e.path[0]+=X(i,$));break;case Ee:n||"#"!=i?i!=r&&("'"==i&&J(e)?e.query+="%27":e.query+="#"==i?"%23":X(i,$)):(e.fragment="",u=Oe);break;case Oe:i!=r&&(e.fragment+=X(i,G));break}c++}},Se=function(e){var t,n,r=c(this,Se,"URL"),a=arguments.length>1?arguments[1]:void 0,i=String(e),l=w(r,{type:"URL"});if(void 0!==a)if(a instanceof Se)t=k(a);else if(n=Me(t={},String(a)),n)throw TypeError(n);if(n=Me(l,i,null,t),n)throw TypeError(n);var s=l.searchParams=new x,u=_(s);u.updateSearchParams(l.query),u.updateURL=function(){l.query=String(s)||null},o||(r.href=Ae.call(r),r.origin=Pe.call(r),r.protocol=Le.call(r),r.username=De.call(r),r.password=je.call(r),r.host=Ie.call(r),r.hostname=Re.call(r),r.port=ze.call(r),r.pathname=Ne.call(r),r.search=Fe.call(r),r.searchParams=Be.call(r),r.hash=Ve.call(r))},Ce=Se.prototype,Ae=function(){var e=k(this),t=e.scheme,n=e.username,r=e.password,a=e.host,o=e.port,i=e.path,l=e.query,s=e.fragment,u=t+":";return null!==a?(u+="//",Q(e)&&(u+=n+(r?":"+r:"")+"@"),u+=q(a),null!==o&&(u+=":"+o)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?i[0]:i.length?"/"+i.join("/"):"",null!==l&&(u+="?"+l),null!==s&&(u+="#"+s),u},Pe=function(){var e=k(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&J(e)?t+"://"+q(e.host)+(null!==n?":"+n:""):"null"},Le=function(){return k(this).scheme+":"},De=function(){return k(this).username},je=function(){return k(this).password},Ie=function(){var e=k(this),t=e.host,n=e.port;return null===t?"":null===n?q(t):q(t)+":"+n},Re=function(){var e=k(this).host;return null===e?"":q(e)},ze=function(){var e=k(this).port;return null===e?"":String(e)},Ne=function(){var e=k(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Fe=function(){var e=k(this).query;return e?"?"+e:""},Be=function(){return k(this).searchParams},Ve=function(){var e=k(this).fragment;return e?"#"+e:""},He=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(o&&s(Ce,{href:He(Ae,(function(e){var t=k(this),n=String(e),r=Me(t,n);if(r)throw TypeError(r);_(t.searchParams).updateSearchParams(t.query)})),origin:He(Pe),protocol:He(Le,(function(e){var t=k(this);Me(t,String(e)+":",ie)})),username:He(De,(function(e){var t=k(this),n=d(String(e));if(!ee(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=X(n[r],K)}})),password:He(je,(function(e){var t=k(this),n=d(String(e));if(!ee(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=X(n[r],K)}})),host:He(Ie,(function(e){var t=k(this);t.cannotBeABaseURL||Me(t,String(e),me)})),hostname:He(Re,(function(e){var t=k(this);t.cannotBeABaseURL||Me(t,String(e),ye)})),port:He(ze,(function(e){var t=k(this);ee(t)||(e=String(e),""==e?t.port=null:Me(t,e,ge))})),pathname:He(Ne,(function(e){var t=k(this);t.cannotBeABaseURL||(t.path=[],Me(t,e+"",we))})),search:He(Fe,(function(e){var t=k(this);e=String(e),""==e?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",Me(t,e,Ee)),_(t.searchParams).updateSearchParams(t.query)})),searchParams:He(Be),hash:He(Ve,(function(e){var t=k(this);e=String(e),""!=e?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",Me(t,e,Oe)):t.fragment=null}))}),u(Ce,"toJSON",(function(){return Ae.call(this)}),{enumerable:!0}),u(Ce,"toString",(function(){return Ae.call(this)}),{enumerable:!0}),b){var Ue=b.createObjectURL,We=b.revokeObjectURL;Ue&&u(Se,"createObjectURL",(function(e){return Ue.apply(b,arguments)})),We&&u(Se,"revokeObjectURL",(function(e){return We.apply(b,arguments)}))}m(Se,"URL"),a({global:!0,forced:!i,sham:!o},{URL:Se})},"2b3e":function(e,t,n){var r=n("585a"),a="object"==typeof self&&self&&self.Object===Object&&self,o=r||a||Function("return this")();e.exports=o},"2b80":function(e,t,n){var r;
/*!
* UAParser.js v0.7.22
* Lightweight JavaScript-based User-Agent string parser
* https://github.com/faisalman/ua-parser-js
*
* Copyright © 2012-2019 Faisal Salman <f@faisalman.com>
* Licensed under MIT License
*/(function(a,o){"use strict";var i="0.7.22",l="",s="?",u="function",c="undefined",f="object",p="string",d="major",h="model",v="name",m="type",y="vendor",g="version",b="architecture",x="console",_="mobile",w="tablet",k="smarttv",T="wearable",E="embedded",O={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"===typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===p?e.replace(/[^\d\.]/g,"").split(".")[0]:o},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},M={rgx:function(e,t){var n,r,a,i,l,s,c=0;while(c<t.length&&!l){var p=t[c],d=t[c+1];n=r=0;while(n<p.length&&!l)if(l=p[n++].exec(e),l)for(a=0;a<d.length;a++)s=l[++r],i=d[a],typeof i===f&&i.length>0?2==i.length?typeof i[1]==u?this[i[0]]=i[1].call(this,s):this[i[0]]=i[1]:3==i.length?typeof i[1]!==u||i[1].exec&&i[1].test?this[i[0]]=s?s.replace(i[1],i[2]):o:this[i[0]]=s?i[1].call(this,s,i[2]):o:4==i.length&&(this[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):o):this[i]=s||o;c+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===f&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(O.has(t[n][r],e))return n===s?o:n}else if(O.has(t[n],e))return n===s?o:n;return e}},S={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},C={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[v,g],[/(opios)[\/\s]+([\w\.]+)/i],[[v,"Opera Mini"],g],[/\s(opr)\/([\w\.]+)/i],[[v,"Opera"],g],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[v,g],[/(konqueror)\/([\w\.]+)/i],[[v,"Konqueror"],g],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[v,"IE"],g],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[v,"Edge"],g],[/(yabrowser)\/([\w\.]+)/i],[[v,"Yandex"],g],[/(Avast)\/([\w\.]+)/i],[[v,"Avast Secure Browser"],g],[/(AVG)\/([\w\.]+)/i],[[v,"AVG Secure Browser"],g],[/(puffin)\/([\w\.]+)/i],[[v,"Puffin"],g],[/(focus)\/([\w\.]+)/i],[[v,"Firefox Focus"],g],[/(opt)\/([\w\.]+)/i],[[v,"Opera Touch"],g],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[v,"UCBrowser"],g],[/(comodo_dragon)\/([\w\.]+)/i],[[v,/_/g," "],g],[/(windowswechat qbcore)\/([\w\.]+)/i],[[v,"WeChat(Win) Desktop"],g],[/(micromessenger)\/([\w\.]+)/i],[[v,"WeChat"],g],[/(brave)\/([\w\.]+)/i],[[v,"Brave"],g],[/(qqbrowserlite)\/([\w\.]+)/i],[v,g],[/(QQ)\/([\d\.]+)/i],[v,g],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[v,g],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[v,g],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[v,g],[/(MetaSr)[\/\s]?([\w\.]+)/i],[v],[/(LBBROWSER)/i],[v],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[g,[v,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[g,[v,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[v,g],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[g,[v,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[v,/(.+)/,"$1 WebView"],g],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[v,/(.+(?:g|us))(.+)/,"$1 $2"],g],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[g,[v,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[v,"Sailfish Browser"],g],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[v,g],[/(dolfin)\/([\w\.]+)/i],[[v,"Dolphin"],g],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[v,"360 Browser"]],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[v,"Chrome"],g],[/(coast)\/([\w\.]+)/i],[[v,"Opera Coast"],g],[/fxios\/([\w\.-]+)/i],[g,[v,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[g,[v,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[g,v],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[v,"GSA"],g],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[v,[g,M.str,S.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[v,g],[/(navigator|netscape)\/([\w\.-]+)/i],[[v,"Netscape"],g],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[v,g]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[b,"amd64"]],[/(ia32(?=;))/i],[[b,O.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[b,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[b,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[b,/ower/,"",O.lowerize]],[/(sun4\w)[;\)]/i],[[b,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[b,O.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[h,y,[m,w]],[/applecoremedia\/[\w\.]+ \((ipad)/],[h,[y,"Apple"],[m,w]],[/(apple\s{0,1}tv)/i],[[h,"Apple TV"],[y,"Apple"],[m,k]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[y,h,[m,w]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[h,[y,"Amazon"],[m,w]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[h,M.str,S.device.amazon.model],[y,"Amazon"],[m,_]],[/android.+aft([bms])\sbuild/i],[h,[y,"Amazon"],[m,k]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[h,y,[m,_]],[/\((ip[honed|\s\w*]+);/i],[h,[y,"Apple"],[m,_]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[y,h,[m,_]],[/\(bb10;\s(\w+)/i],[h,[y,"BlackBerry"],[m,_]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[h,[y,"Asus"],[m,w]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[y,"Sony"],[h,"Xperia Tablet"],[m,w]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[h,[y,"Sony"],[m,_]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[y,h,[m,x]],[/android.+;\s(shield)\sbuild/i],[h,[y,"Nvidia"],[m,x]],[/(playstation\s[34portablevi]+)/i],[h,[y,"Sony"],[m,x]],[/(sprint\s(\w+))/i],[[y,M.str,S.device.sprint.vendor],[h,M.str,S.device.sprint.model],[m,_]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[y,[h,/_/g," "],[m,_]],[/(nexus\s9)/i],[h,[y,"HTC"],[m,w]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29|ele-l29)/i],[h,[y,"Huawei"],[m,_]],[/android.+(bah2?-a?[lw]\d{2})/i],[h,[y,"Huawei"],[m,w]],[/(microsoft);\s(lumia[\s\w]+)/i],[y,h,[m,_]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[h,[y,"Microsoft"],[m,x]],[/(kin\.[onetw]{3})/i],[[h,/\./g," "],[y,"Microsoft"],[m,_]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[h,[y,"Motorola"],[m,_]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[h,[y,"Motorola"],[m,w]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[y,O.trim],[h,O.trim],[m,k]],[/hbbtv.+maple;(\d+)/i],[[h,/^/,"SmartTV"],[y,"Samsung"],[m,k]],[/\(dtv[\);].+(aquos)/i],[h,[y,"Sharp"],[m,k]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[y,"Samsung"],h,[m,w]],[/smart-tv.+(samsung)/i],[y,[m,k],h],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[y,"Samsung"],h,[m,_]],[/sie-(\w*)/i],[h,[y,"Siemens"],[m,_]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[y,"Nokia"],h,[m,_]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[h,[y,"Acer"],[m,w]],[/android.+([vl]k\-?\d{3})\s+build/i],[h,[y,"LG"],[m,w]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[y,"LG"],h,[m,w]],[/(lg) netcast\.tv/i],[y,h,[m,k]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[h,[y,"LG"],[m,_]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[y,h,[m,w]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[h,[y,"Lenovo"],[m,w]],[/(lenovo)[_\s-]?([\w-]+)/i],[y,h,[m,_]],[/linux;.+((jolla));/i],[y,h,[m,_]],[/((pebble))app\/[\d\.]+\s/i],[y,h,[m,T]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[y,h,[m,_]],[/crkey/i],[[h,"Chromecast"],[y,"Google"],[m,k]],[/android.+;\s(glass)\s\d/i],[h,[y,"Google"],[m,T]],[/android.+;\s(pixel c)[\s)]/i],[h,[y,"Google"],[m,w]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[h,[y,"Google"],[m,_]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]?[\w\s]+))\s+build/i],[[h,/_/g," "],[y,"Xiaomi"],[m,_]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]?[\w\s]+))\s+build/i],[[h,/_/g," "],[y,"Xiaomi"],[m,w]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[h,[y,"Meizu"],[m,_]],[/(mz)-([\w-]{2,})/i],[[y,"Meizu"],h,[m,_]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[h,[y,"OnePlus"],[m,_]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[h,[y,"RCA"],[m,w]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[h,[y,"Dell"],[m,w]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[h,[y,"Verizon"],[m,w]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[y,"Barnes & Noble"],h,[m,w]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[h,[y,"NuVision"],[m,w]],[/android.+;\s(k88)\sbuild/i],[h,[y,"ZTE"],[m,w]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[h,[y,"Swiss"],[m,_]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[h,[y,"Swiss"],[m,w]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[h,[y,"Zeki"],[m,w]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[y,"Dragon Touch"],h,[m,w]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[h,[y,"Insignia"],[m,w]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[h,[y,"NextBook"],[m,w]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[y,"Voice"],h,[m,_]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[y,"LvTel"],h,[m,_]],[/android.+;\s(PH-1)\s/i],[h,[y,"Essential"],[m,_]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[h,[y,"Envizen"],[m,w]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[y,h,[m,w]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[h,[y,"MachSpeed"],[m,w]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[y,h,[m,w]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[h,[y,"Rotor"],[m,w]],[/android.+(KS(.+))\s+build/i],[h,[y,"Amazon"],[m,w]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[y,h,[m,w]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[m,O.lowerize],y,h],[/[\s\/\(](smart-?tv)[;\)]/i],[[m,k]],[/(android[\w\.\s\-]{0,9});.+build/i],[h,[y,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[g,[v,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[g,[v,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[v,g],[/rv\:([\w\.]{1,9}).+(gecko)/i],[g,v]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[v,g],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[v,[g,M.str,S.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[v,"Windows"],[g,M.str,S.os.windows.version]],[/\((bb)(10);/i],[[v,"BlackBerry"],g],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[v,g],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[v,"Symbian"],g],[/\((series40);/i],[v],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[v,"Firefox OS"],g],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[v,g],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[v,"Chromium OS"],g],[/(sunos)\s?([\w\.\d]*)/i],[[v,"Solaris"],g],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[v,g],[/(haiku)\s(\w+)/i],[v,g],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[g,/_/g,"."],[v,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[v,"Mac OS"],[g,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[v,g]]},A=function(e,t){if("object"===typeof e&&(t=e,e=o),!(this instanceof A))return new A(e,t).getResult();var n=e||(a&&a.navigator&&a.navigator.userAgent?a.navigator.userAgent:l),r=t?O.extend(C,t):C;return this.getBrowser=function(){var e={name:o,version:o};return M.rgx.call(e,n,r.browser),e.major=O.major(e.version),e},this.getCPU=function(){var e={architecture:o};return M.rgx.call(e,n,r.cpu),e},this.getDevice=function(){var e={vendor:o,model:o,type:o};return M.rgx.call(e,n,r.device),e},this.getEngine=function(){var e={name:o,version:o};return M.rgx.call(e,n,r.engine),e},this.getOS=function(){var e={name:o,version:o};return M.rgx.call(e,n,r.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return n},this.setUA=function(e){return n=e,this},this};A.VERSION=i,A.BROWSER={NAME:v,MAJOR:d,VERSION:g},A.CPU={ARCHITECTURE:b},A.DEVICE={MODEL:h,VENDOR:y,TYPE:m,CONSOLE:x,MOBILE:_,SMARTTV:k,TABLET:w,WEARABLE:T,EMBEDDED:E},A.ENGINE={NAME:v,VERSION:g},A.OS={NAME:v,VERSION:g},typeof t!==c?(typeof e!==c&&e.exports&&(t=e.exports=A),t.UAParser=A):(r=function(){return A}.call(t,n,t,e),r===o||(e.exports=r));var P=a&&(a.jQuery||a.Zepto);if(P&&!P.ua){var L=new A;P.ua=L.getResult(),P.ua.get=function(){return L.getUA()},P.ua.set=function(e){L.setUA(e);var t=L.getResult();for(var n in t)P.ua[n]=t[n]}}})("object"===typeof window?window:this)},"2bc4":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M15,7H20.5L15,1.5V7M8,0H16L22,6V18C22,19.1 21.1,20 20,20H8C6.89,20 6,19.1 6,18V2C6,0.9 6.9,0 8,0M4,4V22H20V24H4C2.9,24 2,23.1 2,22V4H4Z"}))};e.exports=l},"2c23":function(e,t,n){"use strict";function r(e){function t(e,r,s,u,c){for(var d,h,v,m,y,_=0,k=0,T=0,E=0,O=0,M=0,D=v=d=0,I=0,z=0,N=0,F=0,B=s.length,V=B-1,H="",U="",W="",q="";I<B;){if(h=s.charCodeAt(I),I===V&&0!==k+E+T+_&&(0!==k&&(h=47===k?10:47),E=T=_=0,B++,V++),0===k+E+T+_){if(I===V&&(0<z&&(H=H.replace(p,"")),0<H.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:H+=s.charAt(I)}h=59}switch(h){case 123:for(H=H.trim(),d=H.charCodeAt(0),v=1,F=++I;I<B;){switch(h=s.charCodeAt(I)){case 123:v++;break;case 125:v--;break;case 47:switch(h=s.charCodeAt(I+1)){case 42:case 47:e:{for(D=I+1;D<V;++D)switch(s.charCodeAt(D)){case 47:if(42===h&&42===s.charCodeAt(D-1)&&I+2!==D){I=D+1;break e}break;case 10:if(47===h){I=D+1;break e}}I=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;I++<V&&s.charCodeAt(I)!==h;);}if(0===v)break;I++}switch(v=s.substring(F,I),0===d&&(d=(H=H.replace(f,"").trim()).charCodeAt(0)),d){case 64:switch(0<z&&(H=H.replace(p,"")),h=H.charCodeAt(1),h){case 100:case 109:case 115:case 45:z=r;break;default:z=L}if(v=t(r,z,v,h,c+1),F=v.length,0<j&&(z=n(L,H,N),y=l(3,v,z,r,C,S,F,h,c,u),H=z.join(""),void 0!==y&&0===(F=(v=y.trim()).length)&&(h=0,v="")),0<F)switch(h){case 115:H=H.replace(w,i);case 100:case 109:case 45:v=H+"{"+v+"}";break;case 107:H=H.replace(g,"$1 $2"),v=H+"{"+v+"}",v=1===P||2===P&&o("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=H+v,112===u&&(U+=v,v="")}else v="";break;default:v=t(r,n(r,H,N),v,u,c+1)}W+=v,v=N=z=D=d=0,H="",h=s.charCodeAt(++I);break;case 125:case 59:if(H=(0<z?H.replace(p,""):H).trim(),1<(F=H.length))switch(0===D&&(d=H.charCodeAt(0),45===d||96<d&&123>d)&&(F=(H=H.replace(" ",":")).length),0<j&&void 0!==(y=l(1,H,r,e,C,S,U.length,u,c,u))&&0===(F=(H=y.trim()).length)&&(H="\0\0"),d=H.charCodeAt(0),h=H.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){q+=H+s.charAt(I);break}default:58!==H.charCodeAt(F-1)&&(U+=a(H,d,h,H.charCodeAt(2)))}N=z=D=d=0,H="",h=s.charCodeAt(++I)}}switch(h){case 13:case 10:47===k?k=0:0===1+d&&107!==u&&0<H.length&&(z=1,H+="\0"),0<j*R&&l(0,H,r,e,C,S,U.length,u,c,u),S=1,C++;break;case 59:case 125:if(0===k+E+T+_){S++;break}default:switch(S++,m=s.charAt(I),h){case 9:case 32:if(0===E+_+k)switch(O){case 44:case 58:case 9:case 32:m="";break;default:32!==h&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===E+k+_&&(z=N=1,m="\f"+m);break;case 108:if(0===E+k+_+A&&0<D)switch(I-D){case 2:112===O&&58===s.charCodeAt(I-3)&&(A=O);case 8:111===M&&(A=M)}break;case 58:0===E+k+_&&(D=I);break;case 44:0===k+T+E+_&&(z=1,m+="\r");break;case 34:case 39:0===k&&(E=E===h?0:0===E?h:E);break;case 91:0===E+k+T&&_++;break;case 93:0===E+k+T&&_--;break;case 41:0===E+k+_&&T--;break;case 40:if(0===E+k+_){if(0===d)switch(2*O+3*M){case 533:break;default:d=1}T++}break;case 64:0===k+T+E+_+D+v&&(v=1);break;case 42:case 47:if(!(0<E+_+T))switch(k){case 0:switch(2*h+3*s.charCodeAt(I+1)){case 235:k=47;break;case 220:F=I,k=42}break;case 42:47===h&&42===O&&F+2!==I&&(33===s.charCodeAt(F+2)&&(U+=s.substring(F,I+1)),m="",k=0)}}0===k&&(H+=m)}M=O,O=h,I++}if(F=U.length,0<F){if(z=r,0<j&&(y=l(2,U,z,e,C,S,F,u,c,u),void 0!==y&&0===(U=y).length))return q+U+W;if(U=z.join(",")+"{"+U+"}",0!==P*A){switch(2!==P||o(U,2)||(A=0),A){case 111:U=U.replace(x,":-moz-$1")+U;break;case 112:U=U.replace(b,"::-webkit-input-$1")+U.replace(b,"::-moz-$1")+U.replace(b,":-ms-input-$1")+U}A=0}}return q+U+W}function n(e,t,n){var a=t.trim().split(m);t=a;var o=a.length,i=e.length;switch(i){case 0:case 1:var l=0;for(e=0===i?"":e[0]+" ";l<o;++l)t[l]=r(e,t[l],n).trim();break;default:var s=l=0;for(t=[];l<o;++l)for(var u=0;u<i;++u)t[s++]=r(e[u]+" ",a[l],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(y,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var i=e+";",l=2*t+3*n+4*r;if(944===l){e=i.indexOf(":",9)+1;var s=i.substring(e,i.length-1).trim();return s=i.substring(0,e).trim()+s+";",1===P||2===P&&o(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!o(i,1))return i;switch(l){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(M,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return s=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+s+"-webkit-"+i+"-ms-flex-pack"+s+i;case 1005:return h.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(s=i.substring(13).trim(),t=s.indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=i.replace(_,"tb");break;case 232:s=i.replace(_,"tb-rl");break;case 220:s=i.replace(_,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+s+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim(),l=s.charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+i.replace(s,"-webkit-"+s)+";"+i.replace(s,"-ms-"+s+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return s=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+s+"-ms-flex-"+s+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(T,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(T,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):i.replace(s,"-webkit-"+s)+i.replace(s,"-moz-"+s.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(v,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(E,"$1"),n,t)}function i(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,a,o,i,l,s,u){for(var f,p=0,d=t;p<j;++p)switch(f=D[p].call(c,e,d,n,r,a,o,i,l,s,u)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==t)return d}function s(e){switch(e){case void 0:case null:j=D.length=0;break;default:if("function"===typeof e)D[j++]=e;else if("object"===typeof e)for(var t=0,n=e.length;t<n;++t)s(e[t]);else R=0|!!e}return s}function u(e){return e=e.prefix,void 0!==e&&(I=null,e?"function"!==typeof e?P=1:(P=2,I=e):P=0),u}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),z=r,r=[z],0<j){var a=l(-1,n,r,r,C,S,0,0,0,0);void 0!==a&&"string"===typeof a&&(n=a)}var o=t(L,r,n,0,0);return 0<j&&(a=l(-2,o,r,r,C,S,o.length,0,0,0),void 0!==a&&(o=a)),z="",A=0,S=C=1,o}var f=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,v=/([,: ])(transform)/g,m=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,x=/:(read-only)/g,_=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,T=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,S=1,C=1,A=0,P=1,L=[],D=[],j=0,I=null,R=0,z="";return c.use=s,c.set=u,void 0!==e&&u(e),c}t["a"]=r},"2ca0":function(e,t,n){"use strict";var r=n("23e7"),a=n("06cf").f,o=n("50c4"),i=n("5a34"),l=n("1d80"),s=n("ab13"),u=n("c430"),c="".startsWith,f=Math.min,p=s("startsWith"),d=!u&&!p&&!!function(){var e=a(String.prototype,"startsWith");return e&&!e.writable}();r({target:"String",proto:!0,forced:!d&&!p},{startsWith:function(e){var t=String(l(this));i(e);var n=o(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return c?c.call(t,r,n):t.slice(n,n+r.length)===r}})},"2cf4":function(e,t,n){var r,a,o,i=n("da84"),l=n("d039"),s=n("c6b6"),u=n("0366"),c=n("1be4"),f=n("cc12"),p=n("1cdc"),d=i.location,h=i.setImmediate,v=i.clearImmediate,m=i.process,y=i.MessageChannel,g=i.Dispatch,b=0,x={},_="onreadystatechange",w=function(e){if(x.hasOwnProperty(e)){var t=x[e];delete x[e],t()}},k=function(e){return function(){w(e)}},T=function(e){w(e.data)},E=function(e){i.postMessage(e+"",d.protocol+"//"+d.host)};h&&v||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return x[++b]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(b),b},v=function(e){delete x[e]},"process"==s(m)?r=function(e){m.nextTick(k(e))}:g&&g.now?r=function(e){g.now(k(e))}:y&&!p?(a=new y,o=a.port2,a.port1.onmessage=T,r=u(o.postMessage,o,1)):!i.addEventListener||"function"!=typeof postMessage||i.importScripts||l(E)||"file:"===d.protocol?r=_ in f("script")?function(e){c.appendChild(f("script"))[_]=function(){c.removeChild(this),w(e)}}:function(e){setTimeout(k(e),0)}:(r=E,i.addEventListener("message",T,!1))),e.exports={set:h,clear:v}},"2d00":function(e,t,n){var r,a,o=n("da84"),i=n("342f"),l=o.process,s=l&&l.versions,u=s&&s.v8;u?(r=u.split("."),a=r[0]+r[1]):i&&(r=i.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=i.match(/Chrome\/(\d+)/),r&&(a=r[1]))),e.exports=a&&+a},"2d47":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M3,3H21V5H3V3M7,7H17V9H7V7M3,11H21V13H3V11M7,15H17V17H7V15M3,19H21V21H3V19Z"}))};e.exports=l},"2d7c":function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,a=0,o=[];while(++n<r){var i=e[n];t(i,n,e)&&(o[a++]=i)}return o}e.exports=n},"2dcb":function(e,t,n){var r=n("91e9"),a=r(Object.getPrototypeOf,Object);e.exports=a},"2e94":function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i=n("61e5"),l=n("9452"),s=n("f2e4"),u=n("24be"),c=n("4f35"),f=n("84ca"),p=n("ac96"),d=n("51eb"),h=n("7301"),v=n("24f7"),m=n("1eb8"),y=v.List,g=v.Record,b=v.Repeat,x=v.Map,_=v.OrderedMap,w={entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null},k=g(w),T=h("draft_tree_data_support")?u:s,E=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.getEntityMap=function(){return c},n.getBlockMap=function(){return this.get("blockMap")},n.getSelectionBefore=function(){return this.get("selectionBefore")},n.getSelectionAfter=function(){return this.get("selectionAfter")},n.getBlockForKey=function(e){var t=this.getBlockMap().get(e);return t},n.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},n.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},n.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},n.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},n.getBlocksAsArray=function(){return this.getBlockMap().toArray()},n.getFirstBlock=function(){return this.getBlockMap().first()},n.getLastBlock=function(){return this.getBlockMap().last()},n.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},n.getLastCreatedEntityKey=function(){return c.__getLastCreatedEntityKey()},n.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},n.createEntity=function(e,t,n){return c.__create(e,t,n),this},n.mergeEntityData=function(e,t){return c.__mergeData(e,t),this},n.replaceEntityData=function(e,t){return c.__replaceData(e,t),this},n.addEntity=function(e){return c.__add(e),this},n.getEntity=function(e){return c.__get(e)},n.getAllEntities=function(){return c.__getAll()},n.loadWithEntities=function(e){return c.__loadWithEntities(e)},t.createFromBlockArray=function(e,n){var r=Array.isArray(e)?e:e.contentBlocks,a=i.createFromArray(r),o=a.isEmpty()?new f:f.createEmpty(a.first().getKey());return new t({blockMap:a,entityMap:n||c,selectionBefore:o,selectionAfter:o})},t.createFromText=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=e.split(n),a=r.map((function(e){return e=m(e),new T({key:p(),text:e,type:"unstyled",characterList:y(b(l.EMPTY,e.length))})}));return t.createFromBlockArray(a)},t.fromJS=function(e){return new t(r({},e,{blockMap:_(e.blockMap).map(t.createContentBlockFromJS),selectionBefore:new f(e.selectionBefore),selectionAfter:new f(e.selectionAfter)}))},t.createContentBlockFromJS=function(e){var t=e.characterList;return new T(r({},e,{data:x(e.data),characterList:null!=t?y((Array.isArray(t)?t:d(t)).map((function(e){return l.fromJS(e)}))):void 0}))},t}(k);e.exports=E},"2ec1":function(e,t,n){var r=n("100e"),a=n("9aff");function o(e){return r((function(t,n){var r=-1,o=n.length,i=o>1?n[o-1]:void 0,l=o>2?n[2]:void 0;i=e.length>3&&"function"==typeof i?(o--,i):void 0,l&&a(n[0],n[1],l)&&(i=o<3?void 0:i,o=1),t=Object(t);while(++r<o){var s=n[r];s&&e(t,s,r,i)}return t}))}e.exports=o},"2f06":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={},a=t.render=function(e,t,n,r){if("undefined"===typeof document&&!r)return null;var a=r?new r:document.createElement("canvas");a.width=2*n,a.height=2*n;var o=a.getContext("2d");return o?(o.fillStyle=e,o.fillRect(0,0,a.width,a.height),o.fillStyle=t,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),a.toDataURL()):null};t.get=function(e,t,n,o){var i=e+"-"+t+"-"+n+(o?"-server":"");if(r[i])return r[i];var l=a(e,t,n,o);return r[i]=l,l}},"2f1f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Github=void 0;var r=n("ab5b"),a=m(r),o=n("d7bc"),i=m(o),l=n("fc55"),s=m(l),u=n("dd61"),c=m(u),f=n("4245"),p=m(f),d=n("4ccf"),h=n("8860"),v=m(h);function m(e){return e&&e.__esModule?e:{default:e}}var y=t.Github=function(e){var t=e.width,n=e.colors,r=e.onChange,o=e.onSwatchHover,i=e.triangle,l=e.styles,u=void 0===l?{}:l,f=e.className,d=void 0===f?"":f,h=(0,s.default)((0,p.default)({default:{card:{width:t,background:"#fff",border:"1px solid rgba(0,0,0,0.2)",boxShadow:"0 3px 12px rgba(0,0,0,0.15)",borderRadius:"4px",position:"relative",padding:"5px",display:"flex",flexWrap:"wrap"},triangle:{position:"absolute",border:"7px solid transparent",borderBottomColor:"#fff"},triangleShadow:{position:"absolute",border:"8px solid transparent",borderBottomColor:"rgba(0,0,0,0.15)"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-14px",left:"10px"},triangleShadow:{top:"-16px",left:"9px"}},"top-right-triangle":{triangle:{top:"-14px",right:"10px"},triangleShadow:{top:"-16px",right:"9px"}},"bottom-left-triangle":{triangle:{top:"35px",left:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",left:"9px",transform:"rotate(180deg)"}},"bottom-right-triangle":{triangle:{top:"35px",right:"10px",transform:"rotate(180deg)"},triangleShadow:{top:"37px",right:"9px",transform:"rotate(180deg)"}}},u),{"hide-triangle":"hide"===i,"top-left-triangle":"top-left"===i,"top-right-triangle":"top-right"===i,"bottom-left-triangle":"bottom-left"===i,"bottom-right-triangle":"bottom-right"===i}),m=function(e,t){return r({hex:e,source:"hex"},t)};return a.default.createElement("div",{style:h.card,className:"github-picker "+d},a.default.createElement("div",{style:h.triangleShadow}),a.default.createElement("div",{style:h.triangle}),(0,c.default)(n,(function(e){return a.default.createElement(v.default,{color:e,key:e,onClick:m,onSwatchHover:o})})))};y.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),colors:i.default.arrayOf(i.default.string),triangle:i.default.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:i.default.object},y.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}},t.default=(0,d.ColorWrap)(y)},"2f4a":function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var i=n("4da8"),l=n("51eb"),s=n("24f7"),u=s.List,c=s.Repeat,f=s.Record,p=function(){return!0},d={start:null,end:null},h=f(d),v={start:null,end:null,decoratorKey:null,leaves:null},m=f(v),y={generate:function(e,t,n){var r=t.getLength();if(!r)return u.of(new m({start:0,end:0,decoratorKey:null,leaves:u.of(new h({start:0,end:0}))}));var a=[],o=n?n.getDecorations(t,e):u(c(null,r)),l=t.getCharacterList();return i(o,b,p,(function(e,t){a.push(new m({start:e,end:t,decoratorKey:o.get(e),leaves:g(l.slice(e,t).toList(),e)}))})),u(a)},fromJS:function(e){var t=e.leaves,n=o(e,["leaves"]);return new m(r({},n,{leaves:null!=t?u(Array.isArray(t)?t:l(t)).map((function(e){return h(e)})):null}))}};function g(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return i(r,b,p,(function(e,r){n.push(new h({start:e+t,end:r+t}))})),u(n)}function b(e,t){return e===t}e.exports=y},"2f61":function(e,t,n){"use strict";var r=n("61e5"),a=n("24be"),o=n("24f7"),i=n("65ff"),l=n("d8db"),s=n("57c7"),u=o.List,c=function(e,t,n,r,a,o){var l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(a),u=s.getText(),c=s.getCharacterList(),f=a,p=o+r.getText().length,d=null;switch(l){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData();break}var h=s.getType();u&&"unstyled"===h&&(h=r.getType());var v=s.merge({text:u.slice(0,o)+r.getText()+u.slice(o),characterList:i(c,r.getCharacterList(),o),type:h,data:d});return e.merge({blockMap:n.set(a,v),selectionBefore:t,selectionAfter:t.merge({anchorKey:f,anchorOffset:p,focusKey:f,focusOffset:p,isBackward:!1})})},f=function(e,t,n){var r=e.getText(),a=e.getCharacterList(),o=r.slice(0,t),i=a.slice(0,t),l=n.first();return e.merge({text:o+l.getText(),characterList:i.concat(l.getCharacterList()),type:o?e.getType():l.getType(),data:l.getData()})},p=function(e,t,n){var r=e.getText(),a=e.getCharacterList(),o=r.length,i=r.slice(t,o),l=a.slice(t,o),s=n.last();return s.merge({text:s.getText()+i,characterList:s.getCharacterList().concat(l),data:s.getData()})},d=function(e,t){var n=e.getKey(),r=e,a=[];t.get(n)&&a.push(n);while(r&&r.getNextSiblingKey()){var o=r.getNextSiblingKey();if(!o)break;a.push(o),r=t.get(o)}return a},h=function(e,t,n,r){return e.withMutations((function(t){var a=n.getKey(),o=r.getKey(),i=n.getNextSiblingKey(),l=n.getParentKey(),s=d(r,e),c=s[s.length-1];if(t.get(o)?(t.setIn([a,"nextSibling"],o),t.setIn([o,"prevSibling"],a)):(t.setIn([a,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],a)),t.setIn([c,"nextSibling"],i),i&&t.setIn([i,"prevSibling"],c),s.forEach((function(e){return t.setIn([e,"parent"],l)})),l){var f=e.get(l),p=f.getChildKeys(),h=p.indexOf(a),v=h+1,m=p.toArray();m.splice.apply(m,[v,0].concat(s)),t.setIn([l,"children"],u(m))}}))},v=function(e,t,n,o,i,l){var s=n.first()instanceof a,u=[],c=o.size,d=n.get(i),v=o.first(),m=o.last(),y=m.getLength(),g=m.getKey(),b=s&&(!d.getChildKeys().isEmpty()||!v.getChildKeys().isEmpty());n.forEach((function(e,t){t===i?(b?u.push(e):u.push(f(e,l,o)),o.slice(b?0:1,c-1).forEach((function(e){return u.push(e)})),u.push(p(e,l,o))):u.push(e)}));var x=r.createFromArray(u);return s&&(x=h(x,n,d,v)),e.merge({blockMap:x,selectionBefore:t,selectionAfter:t.merge({anchorKey:g,anchorOffset:y,focusKey:g,focusOffset:y,isBackward:!1})})},m=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||l(!1);var o=e.getBlockMap(),i=s(n),u=t.getStartKey(),f=t.getStartOffset(),p=o.get(u);return p instanceof a&&(p.getChildKeys().isEmpty()||l(!1)),1===i.size?c(e,t,o,i.first(),u,f,r):v(e,t,o,i,u,f)};e.exports=m},"2f62":function(e,t,n){"use strict";(function(e){
/*!
* vuex v3.5.1
* (c) 2020 Evan You
* @license MIT
*/
function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var r="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},a=r.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){a&&(e._devtoolHook=a,a.emit("vuex:init",e),a.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){a.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){a.emit("vuex:action",e,t)}),{prepend:!0}))}function i(e,t){return e.filter(t)[0]}function l(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=i(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=l(e[n],t)})),r}function s(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function c(e){return e&&"function"===typeof e.then}function f(e,t){return function(){return e(t)}}var p=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},p.prototype.addChild=function(e,t){this._children[e]=t},p.prototype.removeChild=function(e){delete this._children[e]},p.prototype.getChild=function(e){return this._children[e]},p.prototype.hasChild=function(e){return e in this._children},p.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},p.prototype.forEachChild=function(e){s(this._children,e)},p.prototype.forEachGetter=function(e){this._rawModule.getters&&s(this._rawModule.getters,e)},p.prototype.forEachAction=function(e){this._rawModule.actions&&s(this._rawModule.actions,e)},p.prototype.forEachMutation=function(e){this._rawModule.mutations&&s(this._rawModule.mutations,e)},Object.defineProperties(p.prototype,d);var h=function(e){this.register([],e,!1)};function v(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;v(e.concat(r),t.getChild(r),n.modules[r])}}h.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},h.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},h.prototype.update=function(e){v([],this.root,e)},h.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var a=new p(t,n);if(0===e.length)this.root=a;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],a)}t.modules&&s(t.modules,(function(t,a){r.register(e.concat(a),t,n)}))},h.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},h.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return t.hasChild(n)};var m;var y=function(e){var t=this;void 0===e&&(e={}),!m&&"undefined"!==typeof window&&window.Vue&&P(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new h(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new m,this._makeLocalGettersCache=Object.create(null);var a=this,i=this,l=i.dispatch,s=i.commit;this.dispatch=function(e,t){return l.call(a,e,t)},this.commit=function(e,t,n){return s.call(a,e,t,n)},this.strict=r;var u=this._modules.root.state;w(this,u,[],this._modules.root),_(this,u),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:m.config.devtools;c&&o(this)},g={state:{configurable:!0}};function b(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function x(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;w(e,n,[],e._modules.root,!0),_(e,n,t)}function _(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var a=e._wrappedGetters,o={};s(a,(function(t,n){o[n]=f(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var i=m.config.silent;m.config.silent=!0,e._vm=new m({data:{$$state:t},computed:o}),m.config.silent=i,e.strict&&S(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),m.nextTick((function(){return r.$destroy()})))}function w(e,t,n,r,a){var o=!n.length,i=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=r),!o&&!a){var l=C(t,n.slice(0,-1)),s=n[n.length-1];e._withCommit((function(){m.set(l,s,r.state)}))}var u=r.context=k(e,i,n);r.forEachMutation((function(t,n){var r=i+n;E(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:i+n,a=t.handler||t;O(e,r,a,u)})),r.forEachGetter((function(t,n){var r=i+n;M(e,r,t,u)})),r.forEachChild((function(r,o){w(e,t,n.concat(o),r,a)}))}function k(e,t,n){var r=""===t,a={dispatch:r?e.dispatch:function(n,r,a){var o=A(n,r,a),i=o.payload,l=o.options,s=o.type;return l&&l.root||(s=t+s),e.dispatch(s,i)},commit:r?e.commit:function(n,r,a){var o=A(n,r,a),i=o.payload,l=o.options,s=o.type;l&&l.root||(s=t+s),e.commit(s,i,l)}};return Object.defineProperties(a,{getters:{get:r?function(){return e.getters}:function(){return T(e,t)}},state:{get:function(){return C(e.state,n)}}}),a}function T(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(a){if(a.slice(0,r)===t){var o=a.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[a]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function E(e,t,n,r){var a=e._mutations[t]||(e._mutations[t]=[]);a.push((function(t){n.call(e,r.state,t)}))}function O(e,t,n,r){var a=e._actions[t]||(e._actions[t]=[]);a.push((function(t){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return c(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):a}))}function M(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function S(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function C(e,t){return t.reduce((function(e,t){return e[t]}),e)}function A(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function P(e){m&&e===m||(m=e,n(m))}g.state.get=function(){return this._vm._data.$$state},g.state.set=function(e){0},y.prototype.commit=function(e,t,n){var r=this,a=A(e,t,n),o=a.type,i=a.payload,l=(a.options,{type:o,payload:i}),s=this._mutations[o];s&&(this._withCommit((function(){s.forEach((function(e){e(i)}))})),this._subscribers.slice().forEach((function(e){return e(l,r.state)})))},y.prototype.dispatch=function(e,t){var n=this,r=A(e,t),a=r.type,o=r.payload,i={type:a,payload:o},l=this._actions[a];if(l){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(i,n.state)}))}catch(u){0}var s=l.length>1?Promise.all(l.map((function(e){return e(o)}))):l[0](o);return new Promise((function(e,t){s.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(i,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(i,n.state,e)}))}catch(u){0}t(e)}))}))}},y.prototype.subscribe=function(e,t){return b(e,this._subscribers,t)},y.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return b(n,this._actionSubscribers,t)},y.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},y.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},y.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),w(this,this.state,e,this._modules.get(e),n.preserveState),_(this,this.state)},y.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=C(t.state,e.slice(0,-1));m.delete(n,e[e.length-1])})),x(this)},y.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},y.prototype.hotUpdate=function(e){this._modules.update(e),x(this,!0)},y.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(y.prototype,g);var L=F((function(e,t){var n={};return z(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=B(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof a?a.call(this,t,n):t[a]},n[r].vuex=!0})),n})),D=F((function(e,t){var n={};return z(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=B(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof a?a.apply(this,[r].concat(t)):r.apply(this.$store,[a].concat(t))}})),n})),j=F((function(e,t){var n={};return z(t).forEach((function(t){var r=t.key,a=t.val;a=e+a,n[r]=function(){if(!e||B(this.$store,"mapGetters",e))return this.$store.getters[a]},n[r].vuex=!0})),n})),I=F((function(e,t){var n={};return z(t).forEach((function(t){var r=t.key,a=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=B(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof a?a.apply(this,[r].concat(t)):r.apply(this.$store,[a].concat(t))}})),n})),R=function(e){return{mapState:L.bind(null,e),mapGetters:j.bind(null,e),mapMutations:D.bind(null,e),mapActions:I.bind(null,e)}};function z(e){return N(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function N(e){return Array.isArray(e)||u(e)}function F(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function B(e,t,n){var r=e._modulesNamespaceMap[n];return r}function V(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var a=e.mutationTransformer;void 0===a&&(a=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var i=e.actionTransformer;void 0===i&&(i=function(e){return e});var s=e.logMutations;void 0===s&&(s=!0);var u=e.logActions;void 0===u&&(u=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var f=l(e.state);"undefined"!==typeof c&&(s&&e.subscribe((function(e,o){var i=l(o);if(n(e,f,i)){var s=W(),u=a(e),p="mutation "+e.type+s;H(c,p,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",r(i)),U(c)}f=i})),u&&e.subscribeAction((function(e,n){if(o(e,n)){var r=W(),a=i(e),l="action "+e.type+r;H(c,l,t),c.log("%c action","color: #03A9F4; font-weight: bold",a),U(c)}})))}}function H(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(a){e.log(t)}}function U(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function W(){var e=new Date;return" @ "+$(e.getHours(),2)+":"+$(e.getMinutes(),2)+":"+$(e.getSeconds(),2)+"."+$(e.getMilliseconds(),3)}function q(e,t){return new Array(t+1).join(e)}function $(e,t){return q("0",t-e.toString().length)+e}var G={Store:y,install:P,version:"3.5.1",mapState:L,mapMutations:D,mapGetters:j,mapActions:I,createNamespacedHelpers:R,createLogger:V};t["a"]=G}).call(this,n("c8ba"))},"2fcc":function(e,t){function n(e){var t=this.__data__,n=t["delete"](e);return this.size=t.size,n}e.exports=n},"303f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("ab5b")),a=s(n("a93d")),o=s(n("8bcf")),i=s(n("d7bc")),l=n("e419");function s(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return f="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},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=function(e){v(n,e);var t=y(n);function n(e){var r;return p(this,n),r=t.call(this),r.state={graphDiv:{}},r.PlotComponent=(0,a.default)(e.plotly),r.handleRender=r.handleRender.bind(b(r)),r}return h(n,[{key:"handleRender",value:function(e,t){this.setState({graphDiv:t}),this.props.onRender&&this.props.onRender(t.data,t.layout,t._transitionData._frames)}},{key:"render",value:function(){return r.default.createElement("div",{className:"plotly_editor"},!this.props.hideControls&&r.default.createElement(o.default,{graphDiv:this.state.graphDiv,dataSources:this.props.dataSources,dataSourceOptions:this.props.dataSourceOptions,plotly:this.props.plotly,onUpdate:this.props.onUpdate,advancedTraceTypeSelector:this.props.advancedTraceTypeSelector,locale:this.props.locale,traceTypesConfig:this.props.traceTypesConfig,dictionaries:this.props.dictionaries,showFieldTooltips:this.props.showFieldTooltips,srcConverters:this.props.srcConverters,makeDefaultTrace:this.props.makeDefaultTrace,glByDefault:this.props.glByDefault,mapBoxAccess:Boolean(this.props.config&&this.props.config.mapboxAccessToken),fontOptions:this.props.fontOptions,chartHelp:this.props.chartHelp,customConfig:this.props.customConfig},this.props.children),r.default.createElement("div",{className:"plotly_editor_plot",style:{width:"100%",height:"100%"}},r.default.createElement(this.PlotComponent,{data:this.props.data,layout:this.props.layout,frames:this.props.frames,config:this.props.config,useResizeHandler:this.props.useResizeHandler,debug:this.props.debug,onInitialized:this.handleRender,onUpdate:this.handleRender,style:{width:"100%",height:"100%"},divId:this.props.divId})))}}]),n}(r.Component);w.propTypes={children:i.default.any,layout:i.default.object,data:i.default.array,config:i.default.object,dataSourceOptions:i.default.array,dataSources:i.default.object,frames:i.default.array,onUpdate:i.default.func,onRender:i.default.func,plotly:i.default.object,useResizeHandler:i.default.bool,debug:i.default.bool,advancedTraceTypeSelector:i.default.bool,locale:i.default.string,traceTypesConfig:i.default.object,dictionaries:i.default.object,divId:i.default.string,hideControls:i.default.bool,showFieldTooltips:i.default.bool,srcConverters:i.default.shape({toSrc:i.default.func.isRequired,fromSrc:i.default.func.isRequired}),makeDefaultTrace:i.default.func,glByDefault:i.default.bool,fontOptions:i.default.array,chartHelp:i.default.object,customConfig:i.default.object},w.defaultProps={hideControls:!1,showFieldTooltips:!1,fontOptions:l.DEFAULT_FONTS};var k=w;t.default=k},"306b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("ab5b")),a=i(n("d7bc")),o=n("c85e");function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var n=t.localize;return r.default.createElement(o.UpdateMenuAccordion,null,r.default.createElement(o.VisibilitySelect,{attr:"visible",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}],showOn:!0},r.default.createElement(o.PlotlySection,{name:n("Button Labels")},r.default.createElement(o.UpdateMenuButtons,{attr:"buttons"})),r.default.createElement(o.PlotlySection,{name:n("Background")},r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"bgcolor"})),r.default.createElement(o.PlotlySection,{name:n("Font")},r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:"font.family"}),r.default.createElement(o.Numeric,{label:n("Size"),attr:"font.size"}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"font.color"})),r.default.createElement(o.PlotlySection,{name:n("Border")},r.default.createElement(o.Numeric,{label:n("Width"),attr:"borderwidth"}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"bordercolor"})),r.default.createElement(o.PlotlySection,{name:n("Horizontal Positioning"),attr:"x"},r.default.createElement(o.Numeric,{label:n("Position"),attr:"x",showSlider:!0,step:.02}),r.default.createElement(o.Radio,{label:n("Anchor"),attr:"xanchor",options:[{label:n("Left"),value:"left"},{label:n("Center"),value:"center"},{label:n("Right"),value:"right"}]})),r.default.createElement(o.PlotlySection,{name:n("Vertical Positioning"),attr:"y"},r.default.createElement(o.Numeric,{label:n("Position"),attr:"y",showSlider:!0,step:.02}),r.default.createElement(o.Radio,{label:n("Anchor"),attr:"yanchor",options:[{label:n("Top"),value:"top"},{label:n("Middle"),value:"middle"},{label:n("Bottom"),value:"bottom"}]})),r.default.createElement(o.PlotlySection,{name:n("Padding")},r.default.createElement(o.Numeric,{label:n("Top"),attr:"pad.t",units:"px"}),r.default.createElement(o.Numeric,{label:n("Bottom"),attr:"pad.b",units:"px"}),r.default.createElement(o.Numeric,{label:n("Left"),attr:"pad.l",units:"px"}),r.default.createElement(o.Numeric,{label:n("Right"),attr:"pad.r",units:"px"}))))};l.contextTypes={localize:a.default.func};var s=l;t.default=s},"30c9":function(e,t,n){var r=n("9520"),a=n("b218");function o(e){return null!=e&&a(e.length)&&!r(e)}e.exports=o},"30f2":function(e,t,n){"use strict";var r=n("7f23"),a=n("dec3");function o(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return a.push(e,t,"split-block")}e.exports=o},3118:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 23.91 19.74"},e),o.default.createElement("path",{class:"cls-1",d:"M22 0H1.87A1.73 1.73 0 0 0 0 1.54v16.65a1.75 1.75 0 0 0 1.87 1.55H22a1.75 1.75 0 0 0 1.87-1.55V1.54A1.73 1.73 0 0 0 22 0zm1.12 18.19a1 1 0 0 1-1.12.93H1.87a1 1 0 0 1-1.12-.93V1.54A1 1 0 0 1 1.87.62H22a1 1 0 0 1 1.12.92z"}),o.default.createElement("path",{class:"cls-1",d:"M2.62 1.87a.73.73 0 0 0-.71.75v1.49h.75V2.62h1.82v-.75zM19.8 3.74H4.11a.36.36 0 0 0-.37.37v4.48a.37.37 0 0 0 .37.41H19.8a.37.37 0 0 0 .37-.38V4.11a.36.36 0 0 0-.37-.37zm-.37 4.48H4.48V4.48h15zM9.76 10.09H4.09a.35.35 0 0 0-.35.35v5.67a.35.35 0 0 0 .35.36h5.67a.35.35 0 0 0 .35-.36v-5.67a.35.35 0 0 0-.35-.35zm-5.32 5.67V11.3l4.47 4.46zm5-.5L5 10.8h4.41zM11.21 10.77h8.97v.75h-8.97zM12.7 12.51h7.56v.9H12.7zM11.64 14.96h1.02v1.02h-1.02zM13.68 14.96h1.02v1.02h-1.02z"}))};t.default=u},"31b4":function(e,t,n){"use strict";function r(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1}e.exports=r},"320c":function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function l(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(o){return!1}}e.exports=l()?Object.assign:function(e,t){for(var n,l,s=i(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]),n)a.call(n,c)&&(s[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)o.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},"321f":function(e,t,n){"use strict";var r=n("24f7"),a=r.Map;function o(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),l=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(a([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(l),selectionBefore:t,selectionAfter:t})}e.exports=o},3252:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M6.688 2.688h2.625v26.625H6.688zm2.625 12h5.375v2.625H9.313zm-8 8h5.375v2.625H1.313zm20-20h2.688v26.625h-2.688zm-5.313 4h5.313v2.625H16zm8 10.625h5.313v2.688H24z"}))};t.default=u},3253:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n("5174")),a=d(n("d7bc")),o=p(n("ab5b")),i=n("4578"),l=d(n("37cc")),s=d(n("134d")),u=d(n("76fe")),c=n("e419");function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(e){return e&&e.__esModule?e:{default:e}}function h(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e){return m="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},m(e)}function y(){return y=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},y.apply(this,arguments)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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 _(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function w(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&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function T(e){var t=M();return function(){var n,r=S(e);if(t){var a=S(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==m(t)&&"function"!==typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(){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}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var C=function(e){w(n,e);var t=T(n);function n(e,r){var a;b(this,n),a=t.call(this,e,r);var o=null;return!e.container.marker||e.container.marker&&!e.container.marker.sizesrc?o="constant":e.container.marker&&Array.isArray(e.container.marker.size)&&e.fullContainer.marker&&Array.isArray(e.fullContainer.marker.size)&&(o="variable"),a.state={type:o,value:{constant:"constant"===o?e.fullValue:"6",variable:"variable"===o?e.fullValue:null}},a.setType=a.setType.bind(O(a)),a.setValue=a.setValue.bind(O(a)),a}return _(n,[{key:"setType",value:function(e){var t;(this.setState({type:e}),this.props.updatePlot(this.state.value[e]),"constant"===e)?this.context.updateContainer(g({},"marker.sizesrc",null)):this.context.updateContainer((t={},g(t,"marker.size",null),g(t,"marker.sizesrc",null),t))}},{key:"setValue",value:function(e){var t=this.state.type;this.setState("constant"===t?{value:{constant:e}}:{value:{variable:e}}),this.props.updatePlot(e)}},{key:"render",value:function(){var e=this.props,t=e.attr,n=e.fullValue,a=this.context.localize,i=this.state,f=i.type,p=i.value,d=[{label:a("Constant"),value:"constant"},{label:a("Variable"),value:"variable"}],h=this.props.multiValued||Array.isArray(n)&&n.includes(c.MULTI_VALUED);return o.default.createElement(r.default,y({},this.props,{multiValued:h,attr:t}),o.default.createElement(l.default,{options:d,activeOption:f,onOptionChange:this.setType}),"constant"===f?o.default.createElement(s.default,{suppressMultiValuedMessage:!0,attr:"marker.size",updatePlot:this.setValue,fullValue:p.constant}):h?null:o.default.createElement(u.default,{suppressMultiValuedMessage:!0,attr:"marker.size",updatePlot:this.setValue}))}}]),n}(o.Component);C.propTypes=v({fullValue:a.default.any,updatePlot:a.default.func},r.default.propTypes),C.contextTypes={localize:a.default.func,updateContainer:a.default.func},C.displayName="UnconnectedMarkerSize";var A=(0,i.connectToContainer)(C);t.default=A},"32b3":function(e,t,n){var r=n("872a"),a=n("9638"),o=Object.prototype,i=o.hasOwnProperty;function l(e,t,n){var o=e[t];i.call(e,t)&&a(o,n)&&(void 0!==n||t in e)||r(e,t,n)}e.exports=l},"32f4":function(e,t,n){var r=n("2d7c"),a=n("d327"),o=Object.prototype,i=o.propertyIsEnumerable,l=Object.getOwnPropertySymbols,s=l?function(e){return null==e?[]:(e=Object(e),r(l(e),(function(t){return i.call(e,t)})))}:a;e.exports=s},3310:function(e,t,n){"use strict";function r(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=r},3366:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traceTypes=t.categoryLayout=t.chartCategory=void 0;var r=function(e){return{SIMPLE:{value:"SIMPLE",label:e("Simple")},FINANCIAL:{value:"FINANCIAL",label:e("Finance"),maxColumns:1},DISTRIBUTIONS:{value:"DISTRIBUTIONS",label:e("Distributions")},MAPS:{value:"MAPS",label:e("Maps"),maxColumns:1},SPECIALIZED:{value:"SPECIALIZED",label:e("Specialized"),maxColumns:1},THREE_D:{value:"3D",label:e("3D"),maxColumns:1},HIDDEN:{value:"HIDDEN",label:""}}};t.chartCategory=r;var a=function(e){return[r(e).SIMPLE,r(e).DISTRIBUTIONS,r(e).THREE_D,r(e).MAPS,r(e).FINANCIAL,r(e).SPECIALIZED]};t.categoryLayout=a;var o=function(e){return[{value:"scatter",label:e("Scatter"),category:r(e).SIMPLE},{value:"bar",label:e("Bar"),category:r(e).SIMPLE},{value:"line",label:e("Line"),category:r(e).SIMPLE},{value:"area",label:e("Area"),category:r(e).SIMPLE},{value:"heatmap",label:e("Heatmap"),category:r(e).SIMPLE},{value:"table",label:e("Table"),category:r(e).SIMPLE},{value:"contour",label:e("Contour"),category:r(e).SIMPLE},{value:"pie",label:e("Pie"),category:r(e).SIMPLE},{value:"scatter3d",label:e("3D Scatter"),category:r(e).THREE_D},{value:"line3d",label:e("3D Line"),category:r(e).THREE_D},{value:"surface",label:e("3D Surface"),category:r(e).THREE_D},{value:"mesh3d",label:e("3D Mesh"),category:r(e).THREE_D},{value:"cone",label:e("Cone"),category:r(e).THREE_D},{value:"streamtube",label:e("Streamtube"),category:r(e).THREE_D},{value:"box",label:e("Box"),category:r(e).DISTRIBUTIONS},{value:"violin",label:e("Violin"),category:r(e).DISTRIBUTIONS},{value:"histogram",label:e("Histogram"),category:r(e).DISTRIBUTIONS},{value:"histogram2d",label:e("2D Histogram"),category:r(e).DISTRIBUTIONS},{value:"histogram2dcontour",label:e("2D Contour Histogram"),category:r(e).DISTRIBUTIONS},{value:"scattermapbox",label:e("Tile Map"),category:r(e).MAPS},{value:"scattergeo",label:e("Atlas Map"),category:r(e).MAPS},{value:"choroplethmapbox",label:e("Choropleth Tile Map"),category:r(e).MAPS},{value:"choropleth",label:e("Choropleth Atlas Map"),category:r(e).MAPS},{value:"densitymapbox",label:e("Density Tile Map"),category:r(e).MAPS},{value:"scatterpolar",label:e("Polar Scatter"),category:r(e).SPECIALIZED},{value:"barpolar",label:e("Polar Bar"),category:r(e).SPECIALIZED},{value:"scatterternary",label:e("Ternary Scatter"),category:r(e).SPECIALIZED},{value:"sunburst",label:e("Sunburst"),category:r(e).SPECIALIZED},{value:"treemap",label:e("Treemap"),category:r(e).SPECIALIZED},{value:"sankey",label:e("Sankey"),category:r(e).SPECIALIZED},{value:"candlestick",label:e("Candlestick"),category:r(e).FINANCIAL},{value:"ohlc",label:e("OHLC"),category:r(e).FINANCIAL},{value:"waterfall",label:e("Waterfall"),category:r(e).FINANCIAL},{value:"funnel",label:e("Funnel"),category:r(e).FINANCIAL},{value:"funnelarea",label:e("Funnel Area"),category:r(e).FINANCIAL},{value:"scattergl",icon:"scatter",label:e("Scatter"),category:r(e).THREE_D},{value:"scatterpolargl",icon:"scatterpolar",label:e("Polar Scatter"),category:r(e).THREE_D},{value:"heatmapgl",icon:"heatmap",label:e("Heatmap GL"),category:r(e).HIDDEN},{value:"pointcloud",label:e("Point Cloud"),category:r(e).HIDDEN},{value:"parcoords",label:e("Parallel Coordinates"),category:r(e).HIDDEN},{value:"parcats",label:e("Parallel Categories"),category:r(e).HIDDEN},{value:"splom",label:e("Scatterplot Matrix"),category:r(e).HIDDEN},{value:"scattercarpet",label:e("Scatter Carpet"),category:r(e).HIDDEN},{value:"contourcarpet",label:e("Contour Carpet"),category:r(e).HIDDEN},{value:"carpet",label:e("Carpet"),category:r(e).HIDDEN},{value:"isosurface",label:e("Isosurface"),category:r(e).HIDDEN}]};t.traceTypes=o},"33aa":function(e,t,n){"use strict";var r=n("9452"),a=n("24f7"),o=a.Map,i={add:function(e,t,n){return l(e,t,n,!0)},remove:function(e,t,n){return l(e,t,n,!1)}};function l(e,t,n,a){var i=e.getBlockMap(),l=t.getStartKey(),s=t.getStartOffset(),u=t.getEndKey(),c=t.getEndOffset(),f=i.skipUntil((function(e,t){return t===l})).takeUntil((function(e,t){return t===u})).concat(o([[u,i.get(u)]])).map((function(e,t){var o,i;l===u?(o=s,i=c):(o=t===l?s:0,i=t===u?c:e.getLength());var f,p=e.getCharacterList();while(o<i)f=p.get(o),p=p.set(o,a?r.applyStyle(f,n):r.removeStyle(f,n)),o++;return e.set("characterList",p)}));return e.merge({blockMap:i.merge(f),selectionBefore:t,selectionAfter:t})}e.exports=i},"340d":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}))};e.exports=l},"342a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("7515")),a=i(n("ab5b")),o=i(n("9825"));function i(e){return e&&e.__esModule?e:{default:e}}function l(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return c=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},c.apply(this,arguments)}var f=o.default.map((function(e,t){var n=e.path,r=a.default.createElement("svg",{width:"40",height:"20",style:{position:"relative"}},a.default.createElement("line",{stroke:"rgb(68, 68, 68)",style:{fill:"none"},x1:"5",y1:"10",x2:"23.8",y2:"10",strokeWidth:"2"}),a.default.createElement("path",{d:n,transform:"translate(23.8,10)rotate(360)scale(2)",style:{fill:"rgb(68, 68, 68)",opacity:1,strokeWidth:0}}));return{label:r,value:t,key:"arrow"+t}})),p=function(e){return a.default.createElement(r.default,c({},e,{options:f}))};p.propTypes=s({},r.default.propTypes),p.defaultProps={clearable:!1};var d=p;t.default=d},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"34ac":function(e,t,n){var r=n("9520"),a=n("1368"),o=n("1a8c"),i=n("dc57"),l=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,f=u.toString,p=c.hasOwnProperty,d=RegExp("^"+f.call(p).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(e){if(!o(e)||a(e))return!1;var t=r(e)?d:s;return t.test(i(e))}e.exports=h},3505:function(e,t,n){"use strict";var r={isImage:function(e){return"image"===a(e)[0]},isJpeg:function(e){var t=a(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function a(e){return e.split("/")}e.exports=r},"352b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointer=void 0;var r=n("ab5b"),a=l(r),o=n("fc55"),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.ChromePointer=function(){var e=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",transform:"translate(-6px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return a.default.createElement("div",{style:e.picker})};t.default=s},"35a1":function(e,t,n){var r=n("f5df"),a=n("3f8c"),o=n("b622"),i=o("iterator");e.exports=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||a[r(e)]}},3601:function(e,t,n){"use strict";var r=/-(.)/g;function a(e){return e.replace(r,(function(e,t){return t.toUpperCase()}))}e.exports=a},3698:function(e,t){function n(e,t){return null==e?void 0:e[t]}e.exports=n},"36ad":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Checkboard=void 0;var r=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},a=n("ab5b"),o=f(a),i=n("fc55"),l=f(i),s=n("2f06"),u=c(s);function c(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 f(e){return e&&e.__esModule?e:{default:e}}var p=t.Checkboard=function(e){var t=e.white,n=e.grey,i=e.size,s=e.renderers,c=e.borderRadius,f=e.boxShadow,p=e.children,d=(0,l.default)({default:{grid:{borderRadius:c,boxShadow:f,absolute:"0px 0px 0px 0px",background:"url("+u.get(t,n,i,s.canvas)+") center left"}}});return(0,a.isValidElement)(p)?o.default.cloneElement(p,r({},p.props,{style:r({},p.props.style,d.grid)})):o.default.createElement("div",{style:d.grid})};p.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}},t.default=p},"36cc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n("ab5b")),a=l(n("d7bc")),o=l(n("4d26")),i=n("8704");function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return c="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},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var _=function(e){h(n,e);var t=m(n);function n(e){var r;return f(this,n),r=t.call(this,e),r.state={isOpen:!1},r.togglePanel=r.togglePanel.bind(g(r)),r}return d(n,[{key:"shouldComponentUpdate",value:function(e,t){var n=this.props,r=n.markerColor,a=n.borderColor,o=e.markerColor,i=e.borderColor;return this.props.value!==e.value||this.state.isOpen!==t.isOpen||r!==o||a!==i}},{key:"togglePanel",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"renderActiveOption",value:function(){var e=this.props,t=e.markerColor,n=e.borderColor,a=e.symbolOptions,o=e.value,i=a.find((function(e){return e.value===o}));if(!i)return r.default.createElement("span",{style:{paddingTop:"5px",paddingLeft:"15px"}},"-");var l={stroke:"none"===i.fill?t:n,strokeOpacity:"1",strokeWidth:"2px",fill:"none"===i.fill?"none":t};return r.default.createElement("span",null,r.default.createElement("svg",{width:"18",height:"18"},r.default.createElement("g",{transform:"translate(8,8)"},r.default.createElement("path",{d:i.label,style:l}))))}},{key:"renderOptions",value:function(){var e=this,t=this.props,n=t.markerColor,a=t.borderColor,o=t.symbolOptions;return o.map((function(t){var o=t.fill,i=t.value,l=t.label,s={stroke:"none"===o?n:a,strokeOpacity:"1",strokeWidth:"2px",fill:"none"===o?"none":n};return r.default.createElement("div",{className:"symbol-selector__item",key:i,onClick:function(){return e.props.onChange(i)}},r.default.createElement("svg",{width:"28",height:"28",className:"symbol-selector__symbol","data-value":i},r.default.createElement("g",{transform:"translate(14,14)"},r.default.createElement("path",{d:l,style:s}))))}))}},{key:"render",value:function(){var e=this.state.isOpen,t=(0,o.default)("symbol-selector__toggle",{"symbol-selector__toggle--dark":this.props.backgroundDark});return r.default.createElement("div",null,r.default.createElement("div",{className:t,onClick:this.togglePanel},r.default.createElement("span",{className:"symbol-selector__toggle_option"},this.renderActiveOption()),r.default.createElement("span",null,r.default.createElement(i.CarretDownIcon,{className:"symbol-selector__toggle__caret"}))),e&&this.renderOptions())}}]),n}(r.Component);t.default=_,_.propTypes={backgroundDark:a.default.bool,markerColor:a.default.string,borderColor:a.default.string,value:a.default.string,onChange:a.default.func,symbolOptions:a.default.array}},"371e":function(e,t,n){"use strict";var r=n("7f23"),a=n("dec3"),o=n("00a3"),i=n("8164"),l={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return l.toggleInlineStyle(e,"BOLD");case"italic":return l.toggleInlineStyle(e,"ITALIC");case"underline":return l.toggleInlineStyle(e,"UNDERLINE");case"code":return l.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return l.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return l.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=a.push(e,t,"insert-characters");return a.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap()["delete"](o.getKey()),s=n.merge({blockMap:i,selectionAfter:t});if(s!==n)return a.push(e,s,"remove-range")}var u=l.tryToRemoveBlockStyle(e);return u?a.push(e,u,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),o=t.getStartKey(),i=n.getBlockForKey(o),l=i.getLength();if(t.getStartOffset()<l)return null;var s=n.getBlockAfter(o);if(!s||"atomic"!==s.getType())return null;var u=t.merge({focusKey:s.getKey(),focusOffset:s.getLength()}),c=r.removeRange(n,u,"forward");return c!==n?a.push(e,c,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),i=r.getAnchorKey();if(i!==r.getFocusKey())return t;var l=t.getCurrentContent(),s=l.getBlockForKey(i),u=s.getType();if("unordered-list-item"!==u&&"ordered-list-item"!==u)return t;e.preventDefault();var c=s.getDepth();if(!e.shiftKey&&c===n)return t;var f=o(l,r,e.shiftKey?-1:1,n);return a.push(t,f,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),o=n.getStartKey(),l=n.getEndKey(),s=e.getCurrentContent(),u=n;if(o!==l&&0===n.getEndOffset()){var c=i(s.getBlockBefore(l));l=c.getKey(),u=u.merge({anchorKey:o,anchorOffset:n.getStartOffset(),focusKey:l,focusOffset:c.getLength(),isBackward:!1})}var f=s.getBlockMap().skipWhile((function(e,t){return t!==o})).reverse().skipWhile((function(e,t){return t!==l})).some((function(e){return"atomic"===e.getType()}));if(f)return e;var p=s.getBlockForKey(o).getType()===t?"unstyled":t;return a.push(e,r.setBlockType(s,u,p),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?l.toggleBlockType(e,"code-block"):l.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),o=e.getCurrentInlineStyle();if(n.isCollapsed())return a.setInlineStyleOverride(e,o.has(t)?o.remove(t):o.add(t));var i,l=e.getCurrentContent();return i=o.has(t)?r.removeInlineStyle(l,n,t):r.applyInlineStyle(l,n,t),a.push(e,i,"change-inline-style")},toggleLink:function(e,t,n){var o=r.applyEntity(e.getCurrentContent(),t,n);return a.push(e,o,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var a=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(a),l=i.getType(),s=o.getBlockBefore(a);if("code-block"===l&&s&&"code-block"===s.getType()&&0!==s.getLength())return null;if("unstyled"!==l)return r.setBlockType(o,t,"unstyled")}return null}};e.exports=l},3729:function(e,t,n){var r=n("9e69"),a=n("00fd"),o=n("29f3"),i="[object Null]",l="[object Undefined]",s=r?r.toStringTag:void 0;function u(e){return null==e?void 0===e?l:i:s&&s in Object(e)?a(e):o(e)}e.exports=u},"374e":function(e,t,n){"use strict";e.exports={mode:{valType:"enumerated",dflt:"afterall",role:"info",values:["immediate","next","afterall"],description:["Describes how a new animate call interacts with currently-running","animations. If `immediate`, current animations are interrupted and","the new animation is started. If `next`, the current frame is allowed","to complete, after which the new animation is started. If `afterall`","all existing frames are animated to completion before the new animation","is started."].join(" ")},direction:{valType:"enumerated",role:"info",values:["forward","reverse"],dflt:"forward",description:["The direction in which to play the frames triggered by the animation call"].join(" ")},fromcurrent:{valType:"boolean",dflt:!1,role:"info",description:["Play frames starting at the current frame instead of the beginning."].join(" ")},frame:{duration:{valType:"number",role:"info",min:0,dflt:500,description:["The duration in milliseconds of each frame. If greater than the frame","duration, it will be limited to the frame duration."].join(" ")},redraw:{valType:"boolean",role:"info",dflt:!0,description:["Redraw the plot at completion of the transition. This is desirable","for transitions that include properties that cannot be transitioned,","but may significantly slow down updates that do not require a full","redraw of the plot"].join(" ")}},transition:{duration:{valType:"number",role:"info",min:0,dflt:500,editType:"none",description:["The duration of the transition, in milliseconds. If equal to zero,","updates are synchronous."].join(" ")},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],role:"info",editType:"none",description:"The easing function used for the transition"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",role:"info",editType:"none",description:["Determines whether the figure's layout or traces smoothly transitions","during updates that make both traces and layout change."].join(" ")}}}},"37cc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("ab5b")),a=i(n("d7bc")),o=i(n("4d26"));function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){d(n,e);var t=v(n);function n(e){var r;return c(this,n),r=t.call(this,e),r.state={activeOption:r.props.activeOption},r.handleChange=r.handleChange.bind(y(r)),r.renderOption=r.renderOption.bind(y(r)),r}return p(n,[{key:"componentWillReceiveProps",value:function(e){e.activeOption!==this.state.activeOption&&this.setState({activeOption:e.activeOption})}},{key:"handleChange",value:function(e){this.setState({activeOption:e}),this.props.onOptionChange(e)}},{key:"renderOption",value:function(e){var t=this,n=e.label,a=e.value,i=e.icon,l=this.state.activeOption===a,s=(0,o.default)("radio-block__option",{"radio-block__option--active":l});return r.default.createElement("div",{className:s,key:a,checked:l,onClick:function(){return t.handleChange(a)}},i?r.default.createElement(i,{className:"radio-block__icon"}):null,n?r.default.createElement("span",null,n):null)}},{key:"render",value:function(){var e=this.props.options.map(this.renderOption),t=(0,o.default)("radio-block","radio-block__group",{"radio-block__group--center":"center"===this.props.alignment});return r.default.createElement("div",{className:t},e)}}]),n}(r.Component);x.propTypes={options:a.default.arrayOf(a.default.shape({value:a.default.oneOfType([a.default.string,a.default.bool,a.default.number]).isRequired,label:a.default.string,icon:a.default.oneOfType([a.default.node,a.default.func]),disabled:a.default.bool})),onOptionChange:a.default.func.isRequired,activeOption:a.default.oneOfType([a.default.string,a.default.bool,a.default.number]),radioClassName:a.default.string,alignment:a.default.string};var _=x;t.default=_},"37e8":function(e,t,n){var r=n("83ab"),a=n("9bf2"),o=n("825a"),i=n("df75");e.exports=r?Object.defineProperties:function(e,t){o(e);var n,r=i(t),l=r.length,s=0;while(l>s)a.f(e,n=r[s++],t[n]);return e}},3818:function(e,t,n){var r=n("7e64"),a=n("8057"),o=n("32b3"),i=n("5b01"),l=n("0f0f"),s=n("e5383"),u=n("4359"),c=n("54eb"),f=n("1041"),p=n("a994"),d=n("1bac"),h=n("42a2"),v=n("c87c"),m=n("c2b6"),y=n("fa21"),g=n("6747"),b=n("0d24"),x=n("cc45"),_=n("1a8c"),w=n("d7ee"),k=n("ec69"),T=1,E=2,O=4,M="[object Arguments]",S="[object Array]",C="[object Boolean]",A="[object Date]",P="[object Error]",L="[object Function]",D="[object GeneratorFunction]",j="[object Map]",I="[object Number]",R="[object Object]",z="[object RegExp]",N="[object Set]",F="[object String]",B="[object Symbol]",V="[object WeakMap]",H="[object ArrayBuffer]",U="[object DataView]",W="[object Float32Array]",q="[object Float64Array]",$="[object Int8Array]",G="[object Int16Array]",Y="[object Int32Array]",K="[object Uint8Array]",X="[object Uint8ClampedArray]",Z="[object Uint16Array]",J="[object Uint32Array]",Q={};function ee(e,t,n,S,C,A){var P,j=t&T,I=t&E,z=t&O;if(n&&(P=C?n(e,S,C,A):n(e)),void 0!==P)return P;if(!_(e))return e;var N=g(e);if(N){if(P=v(e),!j)return u(e,P)}else{var F=h(e),B=F==L||F==D;if(b(e))return s(e,j);if(F==R||F==M||B&&!C){if(P=I||B?{}:y(e),!j)return I?f(e,l(P,e)):c(e,i(P,e))}else{if(!Q[F])return C?e:{};P=m(e,F,j)}}A||(A=new r);var V=A.get(e);if(V)return V;A.set(e,P),w(e)?e.forEach((function(r){P.add(ee(r,t,n,r,e,A))})):x(e)&&e.forEach((function(r,a){P.set(a,ee(r,t,n,a,e,A))}));var H=z?I?d:p:I?keysIn:k,U=N?void 0:H(e);return a(U||e,(function(r,a){U&&(a=r,r=e[a]),o(P,a,ee(r,t,n,a,e,A))})),P}Q[M]=Q[S]=Q[H]=Q[U]=Q[C]=Q[A]=Q[W]=Q[q]=Q[$]=Q[G]=Q[Y]=Q[j]=Q[I]=Q[R]=Q[z]=Q[N]=Q[F]=Q[B]=Q[K]=Q[X]=Q[Z]=Q[J]=!0,Q[P]=Q[L]=Q[V]=!1,e.exports=ee},3835:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",(function(){return s}));n("a4d3"),n("e01a"),n("d28b"),n("d3b7"),n("3ca3"),n("ddb0");function a(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)if(n.push(i.value),t&&n.length===t)break}catch(s){a=!0,o=s}finally{try{r||null==l["return"]||l["return"]()}finally{if(a)throw o}}return n}}n("a630"),n("fb6a"),n("b0c0"),n("25f0");function o(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 i(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.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)?o(e,t):void 0}}function l(){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 s(e,t){return r(e)||a(e,t)||i(e,t)||l()}},"38bc":function(e,t,n){"use strict";function r(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)}e.exports=r},"38d4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M1.313 19.313c0 1.5 1.188 2.688 2.688 2.688s2.688-1.188 2.688-2.688c0-1.438-1.188-2.625-2.688-2.625s-2.688 1.188-2.688 2.625zM9.313 8c0 1.5 1.188 2.688 2.688 2.688S14.689 9.5 14.689 8c0-1.5-1.188-2.688-2.688-2.688S9.313 6.5 9.313 8zm16 4.688c0 1.438 1.188 2.625 2.688 2.625s2.688-1.188 2.688-2.625c0-1.5-1.188-2.688-2.688-2.688s-2.688 1.188-2.688 2.688zm-8 11.312c0 1.5 1.188 2.688 2.688 2.688S22.689 25.5 22.689 24c0-1.5-1.188-2.688-2.688-2.688S17.313 22.5 17.313 24zM32 22.688L0 13.313v-4l32 9.375z"}))};t.default=u},3932:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M23 23v16m4 0h-8m8-16h-8m-8-12v24m4 0H7m8-24H7m28-2v24m4 0h-8m8-24h-8",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{fill:"#25fdfc",d:"M8 18h6v10H8z"}),o.default.createElement("path",{d:"M13 19v8H9v-8h4m2-2H7v12h8V17z",fill:"#1d9bfb"}),o.default.createElement("path",{fill:"#25fdfc",d:"M20 29h6v4h-6z"}),o.default.createElement("path",{d:"M25 30v2h-4v-2h4m2-2h-8v6h8v-6z",fill:"#1d9bfb"}),o.default.createElement("path",{fill:"#25fdfc",d:"M32 14h6v14h-6z"}),o.default.createElement("path",{d:"M37 15v12h-4V15h4m2-2h-8v16h8V13z",fill:"#1d9bfb"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M38 21h-6m-18 1H8",strokeMiterlimit:"10",strokeWidth:"2"}))};t.default=u},3989:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatches=void 0;var r=n("ab5b"),a=u(r),o=n("fc55"),i=u(o),l=n("3c67"),s=u(l);function u(e){return e&&e.__esModule?e:{default:e}}var c=t.SliderSwatches=function(e){var t=e.onClick,n=e.hsl,r=(0,i.default)({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),o=.1;return a.default.createElement("div",{style:r.swatches},a.default.createElement("div",{style:r.swatch},a.default.createElement(s.default,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<o&&Math.abs(n.s-.5)<o,onClick:t,first:!0})),a.default.createElement("div",{style:r.swatch},a.default.createElement(s.default,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<o&&Math.abs(n.s-.5)<o,onClick:t})),a.default.createElement("div",{style:r.swatch},a.default.createElement(s.default,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<o&&Math.abs(n.s-.5)<o,onClick:t})),a.default.createElement("div",{style:r.swatch},a.default.createElement(s.default,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<o&&Math.abs(n.s-.5)<o,onClick:t})),a.default.createElement("div",{style:r.swatch},a.default.createElement(s.default,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<o&&Math.abs(n.s-.5)<o,onClick:t,last:!0})),a.default.createElement("div",{style:r.clear}))};t.default=c},"39ab":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M28 11H4c-1 0-2 1-2 2v14c0 1 1 2 2 2h24c1 0 2-1 2-2V13c0-1-1-2-2-2zm-6.375 6.625c0 1-1 2-2 2H12c-1 0-2-1-2-2V17c0-1 1-2 2-2h7.625c1 0 2 1 2 2zM30 3H2C1 3 0 4 0 5v4h32V5c0-1-1-2-2-2z"}))};t.default=u},"39f0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={ArrowSelector:!0,AxesSelector:!0,ColorPicker:!0,ColorscalePicker:!0,PieColorscalePicker:!0,ColorwayPicker:!0,ColorArrayPicker:!0,Dropdown:!0,Dropzone:!0,FontSelector:!0,Flaglist:!0,Info:!0,Radio:!0,TextEditor:!0,DataSelector:!0,Numeric:!0,NumericOrDate:!0,DualNumeric:!0,AxisRangeValue:!0,Text:!0,SymbolSelector:!0,TraceSelector:!0,ErrorBars:!0,AxesCreator:!0,SubplotCreator:!0,GroupCreator:!0,UpdateMenuButtons:!0,FilterOperation:!0,FilterValue:!0,MarkerSize:!0,MarkerColor:!0,VisibilitySelect:!0,DropdownCustom:!0,MultiColorPicker:!0,RectanglePositioner:!0,LocationSelector:!0,AxisInterval:!0,DateTimePicker:!0,TextPosition:!0,HoverLabelNameLength:!0};Object.defineProperty(t,"ArrowSelector",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"AxesSelector",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"ColorPicker",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"ColorscalePicker",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"PieColorscalePicker",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"ColorwayPicker",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ColorArrayPicker",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"Dropdown",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"Dropzone",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"FontSelector",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Flaglist",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"Info",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"Radio",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"TextEditor",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"DataSelector",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"Numeric",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"NumericOrDate",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"DualNumeric",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"AxisRangeValue",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"SymbolSelector",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"TraceSelector",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"ErrorBars",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"AxesCreator",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"SubplotCreator",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"GroupCreator",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"UpdateMenuButtons",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"FilterOperation",{enumerable:!0,get:function(){return P.FilterOperation}}),Object.defineProperty(t,"FilterValue",{enumerable:!0,get:function(){return P.FilterValue}}),Object.defineProperty(t,"MarkerSize",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"MarkerColor",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"VisibilitySelect",{enumerable:!0,get:function(){return j.default}}),Object.defineProperty(t,"DropdownCustom",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(t,"MultiColorPicker",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"RectanglePositioner",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"LocationSelector",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"AxisInterval",{enumerable:!0,get:function(){return F.default}}),Object.defineProperty(t,"DateTimePicker",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"TextPosition",{enumerable:!0,get:function(){return V.default}}),Object.defineProperty(t,"HoverLabelNameLength",{enumerable:!0,get:function(){return H.default}});var a=q(n("342a")),o=q(n("ad54")),i=q(n("bbf7")),l=q(n("b74c")),s=q(n("be7d")),u=q(n("622c")),c=q(n("df88")),f=q(n("7515")),p=q(n("603a")),d=q(n("b646")),h=q(n("7d2f")),v=q(n("88e7")),m=q(n("e518")),y=q(n("d1bf")),g=q(n("76fe")),b=q(n("134d")),x=q(n("7592")),_=q(n("c7db")),w=q(n("7916")),k=q(n("090e")),T=q(n("8370")),E=q(n("78399")),O=q(n("8b0e")),M=q(n("1d67")),S=q(n("cb8a")),C=q(n("937b")),A=q(n("431e")),P=n("0714"),L=q(n("3253")),D=q(n("cc1a8")),j=q(n("6bd2")),I=q(n("1fb3")),R=q(n("fe58")),z=q(n("58b7")),N=q(n("b092")),F=q(n("79e5")),B=q(n("3cb6")),V=q(n("e1c7")),H=q(n("706c")),U=n("e688");Object.keys(U).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return U[e]}}))}));var W=n("eae8");function q(e){return e&&e.__esModule?e:{default:e}}Object.keys(W).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return W[e]}}))}))},"39ff":function(e,t,n){var r=n("0b07"),a=n("2b3e"),o=r(a,"WeakMap");e.exports=o},"3a3b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Raised=void 0;var r=n("ab5b"),a=f(r),o=n("d7bc"),i=f(o),l=n("fc55"),s=f(l),u=n("4245"),c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}var p=t.Raised=function(e){var t=e.zDepth,n=e.radius,r=e.background,o=e.children,i=e.styles,l=void 0===i?{}:i,u=(0,s.default)((0,c.default)({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+t+"px "+4*t+"px rgba(0,0,0,.24)",borderRadius:n,background:r}},"zDepth-0":{bg:{boxShadow:"none"}},"zDepth-1":{bg:{boxShadow:"0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"}},"zDepth-2":{bg:{boxShadow:"0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"}},"zDepth-3":{bg:{boxShadow:"0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"}},"zDepth-4":{bg:{boxShadow:"0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"}},"zDepth-5":{bg:{boxShadow:"0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"}},square:{bg:{borderRadius:"0"}},circle:{bg:{borderRadius:"50%"}}},l),{"zDepth-1":1===t});return a.default.createElement("div",{style:u.wrap},a.default.createElement("div",{style:u.bg}),a.default.createElement("div",{style:u.content},o))};p.propTypes={background:i.default.string,zDepth:i.default.oneOf([0,1,2,3,4,5]),radius:i.default.number,styles:i.default.object},p.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}},t.default=p},"3b2b":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M15,17H17V15H15M15,5H17V3H15M5,7H3V19C3,20.1 3.9,21 5,21H17V19H5M19,17C20.1,17 21,16.1 21,15H19M19,9H21V7H19M19,13H21V11H19M9,17V15H7C7,16.1 7.9,17 9,17M13,3H11V5H13M19,3V5H21C21,3.89 20.1,3 19,3M13,15H11V17H13M9,3C7.89,3 7,3.89 7,5H9M9,11H7V13H9M9,7H7V9H9V7Z"}))};e.exports=l},"3b3e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var r=u(n("ab5b")),a=l(n("d7bc")),o=n("4578"),i=n("e419");function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return c="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},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function _(e){var t=function(t){h(a,t);var n=m(a);function a(e,t){var r;return f(this,a),r=n.call(this,e,t),r.deleteRangeselector=r.deleteRangeselector.bind(g(r)),r.updateRangeselector=r.updateRangeselector.bind(g(r)),r.setLocals(e,t),r}return d(a,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.rangeselectorIndex,r=t.container,a=t.fullContainer,o=r.rangeselector&&r.rangeselector.buttons||[],i=a.rangeselector&&a.rangeselector.buttons||[];this.container=o[n],this.fullContainer=i[n]}},{key:"getChildContext",value:function(){var e=this;return{getValObject:function(t){return e.context.getValObject?e.context.getValObject("rangeselector.buttons[].".concat(t)):null},updateContainer:this.updateRangeselector,deleteContainer:this.deleteRangeselector,container:this.container,fullContainer:this.fullContainer}}},{key:"updateRangeselector",value:function(e){var t={},n=this.props.rangeselectorIndex;for(var r in e){var a="rangeselector.buttons[".concat(n,"].").concat(r);t[a]=e[r]}this.context.updateContainer(t)}},{key:"deleteRangeselector",value:function(){this.context.onUpdate&&this.context.onUpdate({type:i.EDITOR_ACTIONS.DELETE_RANGESELECTOR,payload:{axisId:this.context.fullContainer._name,rangeselectorIndex:this.props.rangeselectorIndex}})}},{key:"render",value:function(){return r.default.createElement(e,this.props)}}]),a}(r.Component);t.displayName="RangeSelectorConnected".concat((0,o.getDisplayName)(e)),t.propTypes={rangeselectorIndex:a.default.number.isRequired},t.contextTypes={container:a.default.object,fullContainer:a.default.object,data:a.default.array,onUpdate:a.default.func,updateContainer:a.default.func,getValObject:a.default.func},t.childContextTypes={updateContainer:a.default.func,deleteContainer:a.default.func,container:a.default.object,fullContainer:a.default.object,getValObject:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},"3b4a":function(e,t,n){var r=n("0b07"),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=a},"3b8c":function(e,t,n){"use strict";var r=n("9bbe"),a=n("15c3"),o=n("0984"),i=n("4d6a"),l=n("8e5d"),s=n("174f"),u=n("d8db"),c=n("1b23"),f=o.isBrowser("IE");function p(e,t){if(!e)return"[empty]";var n=d(e,t);if(n.nodeType===Node.TEXT_NODE)return n.textContent;c(n)||u(!1);var r=n;return r.outerHTML}function d(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return s(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var a=e.cloneNode();1===a.nodeType&&n.length&&a.setAttribute("data-labels",n.join(", "));for(var o=e.childNodes,i=0;i<o.length;i++)a.appendChild(d(o[i],t));return a}function h(e,t){var n=e,r=n;while(n){if(c(n)&&r.hasAttribute("contenteditable"))return p(n,t);n=n.parentNode,r=n}return"Could not find contentEditable parent of node"}function v(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function m(e,t,n,r,a){var o=s(t);if(i(o.documentElement,t)){var l=o.defaultView.getSelection(),u=e.getAnchorKey(),c=e.getAnchorOffset(),f=e.getFocusKey(),p=e.getFocusOffset(),d=e.getIsBackward();if(!l.extend&&d){var h=u,v=c;u=f,c=p,f=h,p=v,d=!1}var m=u===n&&r<=c&&a>=c,b=f===n&&r<=p&&a>=p;if(m&&b)return l.removeAllRanges(),g(l,t,c-r,e),void y(l,t,p-r,e);if(d){if(b&&(l.removeAllRanges(),g(l,t,p-r,e)),m){var x=l.focusNode,_=l.focusOffset;l.removeAllRanges(),g(l,t,c-r,e),y(l,x,_,e)}}else m&&(l.removeAllRanges(),g(l,t,c-r,e)),b&&y(l,t,p-r,e)}}function y(e,t,n,r){var o=l(),s=e.extend;if(s&&null!=t&&i(o,t)){n>v(t)&&a.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var u=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(f){throw a.logSelectionStateFailure({anonymizedDom:h(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:u,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:f?""+f:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),f}}else if(t&&e.rangeCount>0){var c=e.getRangeAt(0);c.setEnd(t,n),e.addRange(c.cloneRange())}}function g(e,t,n,o){var i=s(t).createRange();if(n>v(t)&&(a.logSelectionStateFailure({anonymizedDom:h(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(o.toJS())}),r.handleExtensionCausedError()),i.setStart(t,n),f)try{e.addRange(i)}catch(l){0}else e.addRange(i)}e.exports={setDraftEditorSelection:m,addFocusToSelection:y}},"3b8f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("g",{fill:"none"},o.default.createElement("path",{d:"M0 0h46v46H0z"}),o.default.createElement("path",{stroke:"#1d9bfb",d:"M23 24v16M11 12v24M35 6v29m-24 0H6m10-14h-5m12 18h-5m11-14h-5m11 5h-5M40 7h-5",strokeMiterlimit:"10",strokeWidth:"2"})))};t.default=u},"3bb4":function(e,t,n){var r=n("08cc"),a=n("ec69");function o(e){var t=a(e),n=t.length;while(n--){var o=t[n],i=e[o];t[n]=[o,i,r(i)]}return t}e.exports=o},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3c01":function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;i(n("d7bc"));var r=i(n("ab5b")),a=n("8bc8"),o=i(n("5275"));function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,t.handleEnter=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.handleLifecycle("onExited",1,n)},t}s(t,e);var n=t.prototype;return n.handleLifecycle=function(e,t,n){var o,i=this.props.children,l=r.default.Children.toArray(i)[t];l.props[e]&&(o=l.props)[e].apply(o,n),this.props[e]&&this.props[e]((0,a.findDOMNode)(this))},n.render=function(){var e=this.props,t=e.children,n=e.in,a=l(e,["children","in"]),i=r.default.Children.toArray(t),s=i[0],u=i[1];return delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,r.default.createElement(o.default,a,n?r.default.cloneElement(s,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):r.default.cloneElement(u,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},t}(r.default.Component);u.propTypes={};var c=u;t.default=c,e.exports=t["default"]},"3c07":function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return l}));var r=n("a23e"),a="undefined"!==typeof e?e:{},o=Object(r["a"])(a),i=(o.flush,o.hydrate,o.cx,o.merge,o.getRegisteredStyles,o.injectGlobal),l=(o.keyframes,o.css);o.sheet,o.caches}).call(this,n("c8ba"))},"3c55":function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n("ac96"),i=n("d8db"),l=function(e,t){var n=[].concat(e).reverse();while(n.length){var r=n.pop();t(r);var a=r.children;Array.isArray(a)||i(!1),n=n.concat([].concat(a.reverse()))}},s=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},u=function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?r({},t,{depth:(e.depth||0)+1}):t})))},c={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||i(!1),Array.isArray(t)&&t.length?(l(t,(function(e){var t=r({},e);s(e)&&(t.depth=t.depth||0,u(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,r({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var a=s(e),i=e.depth||0,l=r({},e,{children:[]});if(a){var u=n[0];if(null==u&&0===i)t.push(l);else if(null==u||u.depth<i-1){var c={key:o(),text:"",depth:i-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(c),1===i?t.push(c):null!=u&&u.children.push(c),c.children.push(l)}else if(u.depth===i-1)u.children.push(l);else{while(null!=u&&u.depth>=i)n.shift(),u=n[0];i>0?u.children.push(l):t.push(l)}}else t.push(l)})),r({},e,{blocks:t})}};e.exports=c},"3c67":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderSwatch=void 0;var r=n("ab5b"),a=l(r),o=n("fc55"),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.SliderSwatch=function(e){var t=e.hsl,n=e.offset,r=e.onClick,o=void 0===r?function(){}:r,l=e.active,s=e.first,u=e.last,c=(0,i.default)({default:{swatch:{height:"12px",background:"hsl("+t.h+", 50%, "+100*n+"%)",cursor:"pointer"}},first:{swatch:{borderRadius:"2px 0 0 2px"}},last:{swatch:{borderRadius:"0 2px 2px 0"}},active:{swatch:{transform:"scaleY(1.8)",borderRadius:"3.6px/2px"}}},{active:l,first:s,last:u}),f=function(e){return o({h:t.h,s:.5,l:n,source:"hsl"},e)};return a.default.createElement("div",{style:c.swatch,onClick:f})};t.default=s},"3ca3":function(e,t,n){"use strict";var r=n("6547").charAt,a=n("69f3"),o=n("7dd0"),i="String Iterator",l=a.set,s=a.getterFor(i);o(String,"String",(function(e){l(this,{type:i,string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,a=t.index;return a>=n.length?{value:void 0,done:!0}:(e=r(n,a),t.index+=e.length,{value:e,done:!1})}))},"3cb6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedDateTimePicker=void 0;var r=c(n("5174")),a=c(n("e433")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=function(e){g(n,e);var t=x(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){return i.default.createElement(r.default,this.props,i.default.createElement(a.default,{value:this.props.fullValue,placeholder:this.props.placeholder,onChange:this.props.updatePlot}))}}]),n}(i.Component);t.UnconnectedDateTimePicker=E,E.propTypes=d({fullValue:o.default.string,updatePlot:o.default.func,placeholder:o.default.string},r.default.propTypes),E.displayName="UnconnectedDateTimePicker";var O=(0,l.connectToContainer)(E);t.default=O},"3d08":function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n("f2e4"),i=n("24be"),l=n("d6aa"),s=n("ac96"),u=n("c687"),c=n("7301"),f=n("24f7"),p=n("1eb8"),d=f.List,h=f.Repeat,v=c("draft_tree_data_support"),m=v?i:o,y={processHTML:function(e,t){return l(e,u,t)},processText:function(e,t,n){return e.reduce((function(e,a,o){a=p(a);var i=s(),l={key:i,type:n,text:a,characterList:d(h(t,a.length))};if(v&&0!==o){var u=o-1,c=e[u]=e[u].merge({nextSibling:i});l=r({},l,{prevSibling:c.getKey()})}return e.push(new m(l)),e}),[])}};e.exports=y},"3d28":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M3,15H21V13H3V15M3,19H21V17H3V19M3,11H21V9H3V11M3,5V7H21V5H3Z"}))};e.exports=l},"3f3a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Slider=void 0;var r=n("ab5b"),a=m(r),o=n("d7bc"),i=m(o),l=n("fc55"),s=m(l),u=n("4245"),c=m(u),f=n("4ccf"),p=n("3989"),d=m(p),h=n("7404"),v=m(h);function m(e){return e&&e.__esModule?e:{default:e}}var y=t.Slider=function(e){var t=e.hsl,n=e.onChange,r=e.pointer,o=e.styles,i=void 0===o?{}:o,l=e.className,u=void 0===l?"":l,p=(0,s.default)((0,c.default)({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},i));return a.default.createElement("div",{style:p.wrap||{},className:"slider-picker "+u},a.default.createElement("div",{style:p.hue},a.default.createElement(f.Hue,{style:p.Hue,hsl:t,pointer:r,onChange:n})),a.default.createElement("div",{style:p.swatches},a.default.createElement(d.default,{hsl:t,onClick:n})))};y.propTypes={styles:i.default.object},y.defaultProps={pointer:v.default,styles:{}},t.default=(0,f.ColorWrap)(y)},"3f8c":function(e,t){e.exports={}},4029:function(e,t,n){"use strict";e.exports=n("fb07")},4031:function(e,t,n){"use strict";var r=n("320c");function a(){return a=r||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},a.apply(this,arguments)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i=n("22af"),l=n("ab5b"),s=n("7d90"),u=n("9a31"),c=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.render=function(){var e=this.props,t=e.block,n=e.children,r=e.contentState,o=e.decorator,c=e.decoratorKey,f=e.direction,p=e.leafSet,d=e.text,h=t.getKey(),v=p.get("leaves"),m=o.getComponentForKey(c),y=o.getPropsForKey(c),g=i.encode(h,parseInt(c,10),0),b=d.slice(v.first().get("start"),v.last().get("end")),x=u.getHTMLDirIfDifferent(s.getDirection(b),f);return l.createElement(m,a({},y,{contentState:r,decoratedText:b,dir:x,key:g,entityKey:t.getEntityAt(p.get("start")),offsetKey:g}),n)},t}(l.Component);e.exports=c},"408c":function(e,t,n){var r=n("2b3e"),a=function(){return r.Date.now()};e.exports=a},"40dd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("ab5b")),a=i(n("d7bc")),o=n("c85e");function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var n=t.localize;return r.default.createElement(o.ImageAccordion,{canAdd:!0,canReorder:!0},r.default.createElement(o.Radio,{attr:"visible",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.Dropzone,{attr:"source",fileType:"image",show:!0}),r.default.createElement(o.Dropdown,{label:n("Aspect Ratio"),attr:"sizing",options:[{label:n("Contain"),value:"contain"},{label:n("Fill"),value:"fill"},{label:n("Stretch"),value:"stretch"}],clearable:!1}),r.default.createElement(o.Radio,{label:n("Relative to Grid"),attr:"layer",options:[{label:n("Below"),value:"below"},{label:n("Above"),value:"above"}]}),r.default.createElement(o.PositioningNumeric,{attr:"sizex",label:n("Width")}),r.default.createElement(o.PositioningNumeric,{attr:"sizey",label:n("Height")}),r.default.createElement(o.PlotlySection,{name:n("Horizontal Positioning")},r.default.createElement(o.Dropdown,{label:n("Anchor Point"),clearable:!1,attr:"xanchor",options:[{label:n("Left"),value:"left"},{label:n("Center"),value:"center"},{label:n("Right"),value:"right"}]}),r.default.createElement(o.PositioningNumeric,{label:n("Position"),attr:"x"}),r.default.createElement(o.PositioningRef,{label:n("Relative To"),attr:"xref"})),r.default.createElement(o.PlotlySection,{name:n("Vertical Positioning")},r.default.createElement(o.Dropdown,{label:n("Anchor Point"),clearable:!1,attr:"yanchor",options:[{label:n("Top"),value:"top"},{label:n("Middle"),value:"middle"},{label:n("Bottom"),value:"bottom"}]}),r.default.createElement(o.PositioningNumeric,{label:n("Position"),attr:"y"}),r.default.createElement(o.PositioningRef,{label:n("Relative To"),attr:"yref"})))};l.contextTypes={localize:a.default.func};var s=l;t.default=s},4160:function(e,t,n){"use strict";var r=n("23e7"),a=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},4179:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}))};e.exports=l},"41c3":function(e,t,n){var r=n("1a8c"),a=n("eac5"),o=n("ec8c"),i=Object.prototype,l=i.hasOwnProperty;function s(e){if(!r(e))return o(e);var t=a(e),n=[];for(var i in e)("constructor"!=i||!t&&l.call(e,i))&&n.push(i);return n}e.exports=s},"41f4":function(e,t,n){"use strict";var r=n("d8db"),a=/\./,o=/\|\|/,i=/\s+\-\s+/,l=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function u(e,t){var n=e.split(o);return n.length>1?n.some((function(e){return O.contains(e,t)})):(e=n[0].trim(),c(e,t))}function c(e,t){var n=e.split(i);if(n.length>0&&n.length<=2||r(!1),1===n.length)return f(n[0],t);var a=n[0],o=n[1];return x(a)&&x(o)||r(!1),f(">="+a,t)&&f("<="+o,t)}function f(e,t){if(e=e.trim(),""===e)return!0;var n=t.split(a),r=g(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return p(n,i);case"<=":return d(n,i);case">=":return v(n,i);case">":return m(n,i);case"~":case"~>":return y(n,i);default:return h(n,i)}}function p(e,t){return-1===E(e,t)}function d(e,t){var n=E(e,t);return-1===n||0===n}function h(e,t){return 0===E(e,t)}function v(e,t){var n=E(e,t);return 1===n||0===n}function m(e,t){return 1===E(e,t)}function y(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var a=r.length-1,o=parseInt(r[a],10);return b(o)&&(r[a]=o+1+""),v(e,n)&&p(e,r)}function g(e){var t=e.split(a),n=t[0].match(l);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function b(e){return!isNaN(e)&&isFinite(e)}function x(e){return!g(e).modifier}function _(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function w(e,t){e=e.slice(),t=t.slice(),_(e,t.length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var a=n;a<e.length;a++)e[a]="0"}return _(t,e.length),[e,t]}function k(e,t){var n=e.match(s)[1],r=t.match(s)[1],a=parseInt(n,10),o=parseInt(r,10);return b(a)&&b(o)&&a!==o?T(a,o):T(e,t)}function T(e,t){return typeof e!==typeof t&&r(!1),e>t?1:e<t?-1:0}function E(e,t){for(var n=w(e,t),r=n[0],a=n[1],o=0;o<a.length;o++){var i=k(r[o],a[o]);if(i)return i}return 0}var O={contains:function(e,t){return u(e.trim(),t.trim())}};e.exports=O},4242:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=x;var r=s(n("ab5b")),a=i(n("d7bc")),o=n("4578");function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function x(e){var t=function(t){d(a,t);var n=v(a);function a(e,t){var r;return c(this,a),r=n.call(this,e,t),r.updateSlider=r.updateSlider.bind(y(r)),r.setLocals(e,t),r}return p(a,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.sliderIndex,r=t.container,a=t.fullContainer,o=r.sliders||[],i=a.sliders||[];this.container=o[n],this.fullContainer=i[n]}},{key:"getChildContext",value:function(){var e=this;return{getValObject:function(t){return e.context.getValObject?e.context.getValObject("sliders[].".concat(t)):null},updateContainer:this.updateSlider,container:this.container,fullContainer:this.fullContainer}}},{key:"updateSlider",value:function(e){var t={},n=this.props.sliderIndex;for(var r in e){var a="sliders[".concat(n,"].").concat(r);t[a]=e[r]}this.context.updateContainer(t)}},{key:"render",value:function(){return r.default.createElement(e,this.props)}}]),a}(r.Component);t.displayName="SliderConnected".concat((0,o.getDisplayName)(e)),t.propTypes={sliderIndex:a.default.number.isRequired},t.contextTypes={container:a.default.object,fullContainer:a.default.object,onUpdate:a.default.func,updateContainer:a.default.func,getValObject:a.default.func},t.childContextTypes={updateContainer:a.default.func,container:a.default.object,fullContainer:a.default.object,getValObject:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},4245:function(e,t,n){var r=n("f909"),a=n("2ec1"),o=a((function(e,t,n){r(e,t,n)}));e.exports=o},42454:function(e,t,n){var r=n("1290");function a(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}e.exports=a},4276:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{d:"M7 21.733c0-6.22 4.412-8.674 4.412-13.968 0 5.294 4.411 7.749 4.411 13.968 0 4.756-4.411 7.267-4.411 17.561C11.412 29 7 26.49 7 21.734zm17.039 14.679s.434-5.754 1.856-8.467-.924-6.533.427-9.879a11.606 11.606 0 0 0 0-7.816C25.468 7.862 24.039 3 24.039 3s-1.43 4.862-2.283 7.25a11.606 11.606 0 0 0 0 7.816c1.351 3.346-.995 7.165.427 9.878s1.856 8.468 1.856 8.468zm12.991 3.882a11.821 11.821 0 0 0-2.344-6.03c-1.065-1.507-1.704-6.346-.639-8.549S37.03 12 37.03 12h-.058s1.917 11.512 2.982 13.715.426 7.042-.64 8.55a11.821 11.821 0 0 0-2.342 6.03zM24 36v6M37 3v9",fill:"#25fdfc",stroke:"#1d9bfb",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}))};t.default=u},4284:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(t(e[n],n,e))return!0;return!1}e.exports=n},"428f":function(e,t,n){var r=n("da84");e.exports=r},"42a1":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M17,10.5V7C17,6.45 16.55,6 16,6H4C3.45,6 3,6.45 3,7V17C3,17.55 3.45,18 4,18H16C16.55,18 17,17.55 17,17V13.5L21,17.5V6.5L17,10.5Z"}))};e.exports=l},"42a2":function(e,t,n){var r=n("b5a7"),a=n("79bc"),o=n("1cec"),i=n("c869"),l=n("39ff"),s=n("3729"),u=n("dc57"),c="[object Map]",f="[object Object]",p="[object Promise]",d="[object Set]",h="[object WeakMap]",v="[object DataView]",m=u(r),y=u(a),g=u(o),b=u(i),x=u(l),_=s;(r&&_(new r(new ArrayBuffer(1)))!=v||a&&_(new a)!=c||o&&_(o.resolve())!=p||i&&_(new i)!=d||l&&_(new l)!=h)&&(_=function(e){var t=s(e),n=t==f?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return v;case y:return c;case g:return p;case b:return d;case x:return h}return t}),e.exports=_},"42fc":function(e,t,n){"use strict";var r=n("3505"),a=n("ab2d"),o=n("a211"),i=new RegExp("\r\n","g"),l="\n",s={"text/rtf":1,"text/html":1};function u(e){if("file"==e.kind)return e.getAsFile()}var c=function(){function e(e){this.data=e,this.types=e.types?a(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return s[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(i,l):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){if(this.data.getData){if(-1!=this.types.indexOf("text/x-moz-url")){var e=this.data.getData("text/x-moz-url").split("\n");return e[0]}return-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url")}return null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var a=t[n].type;if(!r.isImage(a))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(u).filter(o.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}();e.exports=c},"431e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("d7bc")),a=u(n("ab5b")),o=n("c85e"),i=c(n("5174")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=function(e){v(n,e);var t=y(n);function n(e,r){var a;return p(this,n),a=t.call(this,e,r),a.state={currentButtonIndex:0},a}return h(n,[{key:"renderDropdown",value:function(){var e=this,t=this.context.localize,n=this.props.fullValue.map((function(e,n){return{label:t("Button")+" ".concat(n+1),value:n}}));return a.default.createElement(o.Dropdown,{attr:"buttons",label:t("Button"),options:n,updatePlot:function(t){return e.setState({currentButtonIndex:t})},clearable:!1,fullValue:this.state.currentButtonIndex})}},{key:"render",value:function(){return a.default.createElement(i.default,null,this.renderDropdown(),a.default.createElement(o.TextEditor,{attr:"buttons[".concat(this.state.currentButtonIndex,"].label"),richTextOnly:!0}))}}]),n}(a.Component);w.propTypes={attr:r.default.string,fullValue:r.default.array,updatePlot:r.default.func},w.contextTypes={localize:r.default.func};var k=(0,l.connectToContainer)(w);t.default=k},4359:function(e,t){function n(e,t){var n=-1,r=e.length;t||(t=Array(r));while(++n<r)t[n]=e[n];return t}e.exports=n},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"43fa":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n("d7bc")),a=i(n("ab5b"));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return 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},s(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function p(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&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=y();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){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}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var b=13,x=function(e){p(n,e);var t=h(n);function n(e){var r;return u(this,n),r=t.call(this,e),r.handleFocus=r.handleFocus.bind(m(r)),r.handleChange=r.handleChange.bind(m(r)),r.handleUpdate=r.handleUpdate.bind(m(r)),r.handleKeyPress=r.handleKeyPress.bind(m(r)),r.handleWheel=r.handleWheel.bind(m(r)),r.getRef=r.getRef.bind(m(r)),r}return f(n,[{key:"getRef",value:function(e){this._ref=e}},{key:"handleFocus",value:function(e){e.target.select()}},{key:"handleChange",value:function(e){var t=this.props.onChange;t&&t(e.target.value)}},{key:"handleUpdate",value:function(e){var t=this.props.onUpdate;t&&t(e.target.value)}},{key:"handleKeyPress",value:function(e){(e.keyCode||e.which)===b&&this._ref.blur()}},{key:"handleWheel",value:function(e){this.props.onWheel&&document.activeElement===this._ref&&this.props.onWheel(e)}},{key:"render",value:function(){var e=this.props,t=e.type,n=e.className,r=e.text,o=e.disable,i=e.autoFocus,l=e.onKeyDown,s=e.placeholder,u=e.readOnly,c=e.size;return a.default.createElement("input",{ref:this.getRef,type:t,className:n||"",value:r,onFocus:this.handleFocus,onChange:this.handleChange,onBlur:this.handleUpdate,disabled:o,autoFocus:i,onKeyPress:this.handleKeyPress,onKeyDown:l,onWheel:this.handleWheel,placeholder:s,readOnly:u,size:c})}}]),n}(a.Component);x.propTypes={onChange:r.default.func,onUpdate:r.default.func,onKeyDown:r.default.func,onWheel:r.default.func,text:r.default.any,placeholder:r.default.oneOfType([r.default.string,r.default.number]),className:r.default.string,disable:r.default.bool,autoFocus:r.default.bool,readOnly:r.default.bool,type:r.default.oneOf(["text","password"]),size:r.default.number},x.defaultProps={readOnly:!1,type:"text"};var _=x;t.default=_},4406:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M14,12L10,8V11H2V13H10V16M20,18V6C20,4.89 19.1,4 18,4H6C4.9,4 4,4.9 4,6V9H6V6H18V18H6V15H4V18C4,19.1 4.9,20 6,20H18C19.1,20 20,19.1 20,18Z"}))};e.exports=l},4424:function(e,t,n){"use strict";var r=n("8cb4"),a=n("24f7"),o=a.OrderedSet,i=r.substr,l=o();function s(e,t){var n=Array(e.length).fill(l);return t&&t.forEach((function(t){var r=i(e,0,t.offset).length,a=r+i(e,t.offset,t.length).length;while(r<a)n[r]=n[r].add(t.style),r++})),n}e.exports=s},4481:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z"}))};e.exports=l},"44ad":function(e,t,n){var r=n("d039"),a=n("c6b6"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?o.call(e,""):Object(e)}:Object},"44af":function(e,t,n){"use strict";var r=/\r\n?|\n/g;function a(e){return e.split(r)}e.exports=a},"44d2":function(e,t,n){var r=n("b622"),a=n("7c73"),o=n("9bf2"),i=r("unscopables"),l=Array.prototype;void 0==l[i]&&o.f(l,i,{configurable:!0,value:a(null)}),e.exports=function(e){l[i][e]=!0}},"44de":function(e,t,n){var r=n("da84");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var r=n("861d"),a=n("c6b6"),o=n("b622"),i=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==a(e))}},4500:function(e,t,n){"use strict";t.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],t.defaultLine="#444",t.lightLine="#eee",t.background="#fff",t.borderLine="#BEC8D9",t.lightFraction=1e3/11},4578:function(e,t,n){"use strict";function r(e){return 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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.adjustColorscale=q,t.clamp=z,t.getDisplayName=N,t.getFullTrace=$,t.maybeAdjustSrc=W,t.maybeTransposeData=U,t.getParsedTemplateString=G,t.renderTraceIcon=B,t.tooLight=F,t.transpose=V,Object.defineProperty(t,"bem",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"connectCartesianSubplotToLayout",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"connectNonCartesianSubplotToLayout",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"connectAnnotationToLayout",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"connectShapeToLayout",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"connectSliderToLayout",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"connectImageToLayout",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"connectUpdateMenuToLayout",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"connectRangeSelectorToAxis",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"connectLayersToMapbox",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"connectTransformToTrace",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"connectAggregationToTransform",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"connectAxesToLayout",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"connectLayoutToPlot",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"connectToContainer",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"containerConnectedContextTypes",{enumerable:!0,get:function(){return g.containerConnectedContextTypes}}),Object.defineProperty(t,"computeTraceOptionsFromSchema",{enumerable:!0,get:function(){return b.computeTraceOptionsFromSchema}}),Object.defineProperty(t,"connectTraceToPlot",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"dereference",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"getAllAxes",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"axisIdToAxisName",{enumerable:!0,get:function(){return w.axisIdToAxisName}}),Object.defineProperty(t,"traceTypeToAxisType",{enumerable:!0,get:function(){return w.traceTypeToAxisType}}),Object.defineProperty(t,"getAxisTitle",{enumerable:!0,get:function(){return w.getAxisTitle}}),Object.defineProperty(t,"getSubplotTitle",{enumerable:!0,get:function(){return w.getSubplotTitle}}),Object.defineProperty(t,"localize",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"localizeString",{enumerable:!0,get:function(){return k.localizeString}}),Object.defineProperty(t,"unpackPlotProps",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"computeCustomConfigVisibility",{enumerable:!0,get:function(){return E.computeCustomConfigVisibility}}),Object.defineProperty(t,"hasValidCustomConfigVisibilityRules",{enumerable:!0,get:function(){return E.hasValidCustomConfigVisibilityRules}}),Object.defineProperty(t,"isVisibleGivenCustomConfig",{enumerable:!0,get:function(){return E.isVisibleGivenCustomConfig}}),Object.defineProperty(t,"walkObject",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"isPlainObject",{enumerable:!0,get:function(){return O.isPlainObject}}),Object.defineProperty(t,"traceTypeToPlotlyInitFigure",{enumerable:!0,get:function(){return M.traceTypeToPlotlyInitFigure}}),Object.defineProperty(t,"plotlyTraceToCustomTrace",{enumerable:!0,get:function(){return M.plotlyTraceToCustomTrace}}),Object.defineProperty(t,"striptags",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"capitalize",{enumerable:!0,get:function(){return A.capitalize}}),Object.defineProperty(t,"lowerCase",{enumerable:!0,get:function(){return A.lowerCase}}),Object.defineProperty(t,"upperCase",{enumerable:!0,get:function(){return A.upperCase}}),Object.defineProperty(t,"removeNonWord",{enumerable:!0,get:function(){return A.removeNonWord}}),Object.defineProperty(t,"camelCase",{enumerable:!0,get:function(){return A.camelCase}}),Object.defineProperty(t,"pascalCase",{enumerable:!0,get:function(){return A.pascalCase}});var a=I(n("e957")),o=I(n("b9c5")),i=I(n("5e95")),l=I(n("8a16")),s=I(n("9371")),u=I(n("4242")),c=I(n("0564")),f=I(n("8b47")),p=I(n("3b3e")),d=I(n("69b9")),h=I(n("22d4")),v=I(n("839c")),m=I(n("c612")),y=I(n("5c08")),g=j(n("0397")),b=n("4e46"),x=I(n("e41b")),_=I(n("662f")),w=j(n("b8ca")),k=j(n("ac8b")),T=I(n("66cb")),E=j(n("5968")),O=j(n("ff43")),M=n("5be5"),S=j(n("8704")),C=I(n("ab0d")),A=n("4efd"),P=n("14e0"),L=n("8365");function D(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return D=function(){return e},e}function j(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=D();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function I(e){return e&&e.__esModule?e:{default:e}}var R=.8;function z(e,t,n){return Math.max(t,Math.min(n,e))}function N(e){return e.displayName||e.name||"Component"}function F(e){var t=(0,T.default)(e).toHsl();return t.l>R}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Plot";if(!e)return null;var n="gl",r="".concat(t).concat((0,A.pascalCase)(e.endsWith(n)?e.slice(0,-n.length):e),"Icon");return S[r]?S[r]:S.PlotLineIcon}function V(e){if(e.every((function(e){return!Array.isArray(e)})))return e.map((function(e){return[e]}));var t=Array.isArray(e[0])?e[0].length:1;e.forEach((function(e){var n=Array.isArray(e)?e.length:1;n>t&&(t=n)}));for(var n=new Array(t),r=0;r<e.length;r++){Array.isArray(e[r])||(e[r]=[e[r]]);for(var a=0;a<t;a++){Array.isArray(n[a])||(n[a]=[]);var o="undefined"!==typeof e[r][a]?e[r][a]:null;n[a].push(o)}}return n}var H=function(e,t){return"table"===e&&["header.valuessrc","header.font.colorsrc","header.font.sizesrc","header.fill.colorsrc","columnwidthsrc"].some((function(e){return t.endsWith(e)}))};function U(e,t,n){if(!e||Array.isArray(e)&&0===e.length)return null;var r=t.endsWith("zsrc")&&["contour","contourgl","heatmap","heatmapgl","surface","carpet","contourcarpet"].includes(n);return r?V(e):H(n,t)&&Array.isArray(e[0])&&1===e.length?e[0]:e}function W(e,t,n,r){return!e||Array.isArray(e)&&0===e.length?null:H(n,t)&&1===e.length?e[0]:r&&r.fromSrc?r.fromSrc(e,n,t):e}function q(e,t,n,r){if(r&&r.repeat){if(t<e.length)return e.slice(0,t);var a=Math.ceil(t/e.length),o=new Array(a).fill(e);return o.reduce((function(e,t){return e.concat(t)}),[]).slice(0,t)}return(0,P.getColorscale)(e,t,null,null,n)}function $(e,t){var n={};return t.fullData&&t.data&&(n=e.fullDataArrayPosition?t.fullData[e.fullDataArrayPosition[0]]:t.fullData.filter((function(t){return t&&e.traceIndexes[0]===t.index}))[0],n&&n.transforms&&!n.transforms.some((function(e){return["moving-average","fits"].includes(e.type)}))&&!e.fullDataArrayPosition&&(n=n._fullInput)),n}function G(e,t){var n=e;return e&&t&&(n=(0,L.templateString)(e,t)),""===n&&e?e:n}},"45cb":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M16.89,15.5L18.31,16.89C19.21,15.73 19.76,14.39 19.93,13H17.91C17.77,13.87 17.43,14.72 16.89,15.5M13,17.9V19.92C14.39,19.75 15.74,19.21 16.9,18.31L15.46,16.87C14.71,17.41 13.87,17.76 13,17.9M19.93,11C19.76,9.61 19.21,8.27 18.31,7.11L16.89,8.53C17.43,9.28 17.77,10.13 17.91,11M15.55,5.55L11,1V4.07C7.06,4.56 4,7.92 4,12C4,16.08 7.05,19.44 11,19.93V17.91C8.16,17.43 6,14.97 6,12C6,9.03 8.16,6.57 11,6.09V10L15.55,5.55Z"}))};e.exports=l},4633:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M0 0h1.625v32H0zm32 30.375V32H0v-1.625zM9.625 19.188c0 .875-.75 1.625-1.625 1.625s-1.625-.75-1.625-1.625.75-1.563 1.625-1.563 1.625.688 1.625 1.563zM30.375 4a2.374 2.374 0 1 1-4.75 0 2.374 2.374 0 1 1 4.75 0zm-1.562 7.188a3.202 3.202 0 0 1-3.188 3.188c-1.813 0-3.25-1.438-3.25-3.188S23.813 8 25.625 8a3.202 3.202 0 0 1 3.188 3.188zm-6.438-5.563c0 2.188-1.75 4-4 4-2.188 0-4-1.813-4-4 0-2.25 1.813-4 4-4 2.25 0 4 1.75 4 4zM20.75 16c0 2.625-2.188 4.813-4.813 4.813-2.688 0-4.813-2.188-4.813-4.813s2.125-4.813 4.813-4.813c2.625 0 4.813 2.188 4.813 4.813zM9.5 12.813c0 1.75-1.438 3.188-3.188 3.188s-3.188-1.438-3.188-3.188c0-1.75 1.438-3.188 3.188-3.188S9.5 11.063 9.5 12.813zm.125 12c0 1.313-1.125 2.375-2.438 2.375s-2.375-1.063-2.375-2.375c0-1.313 1.063-2.438 2.375-2.438s2.438 1.125 2.438 2.438zM16 24c0 .875-.688 1.625-1.625 1.625-.875 0-1.563-.75-1.563-1.625s.688-1.625 1.563-1.625c.938 0 1.625.75 1.625 1.625zm11.188-5.625c0 1.375-1.063 2.438-2.375 2.438s-2.438-1.063-2.438-2.438c0-1.313 1.125-2.375 2.438-2.375s2.375 1.063 2.375 2.375zm-6.375 4.813c0 .438-.375.813-.813.813s-.813-.375-.813-.813c0-.438.375-.813.813-.813s.813.375.813.813zm-8-16c0 .438-.375.813-.813.813s-.813-.375-.813-.813c0-.438.375-.813.813-.813s.813.375.813.813z"}))};t.default=u},"464a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromeFields=void 0;var r=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}}(),a=n("ab5b"),o=v(a),i=n("fc55"),l=v(i),s=n("a7cc"),u=v(s),c=n("4cfe"),f=v(c),p=n("4ccf"),d=n("f45d"),h=v(d);function v(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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}function g(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)}var b=t.ChromeFields=function(e){function t(e){m(this,t);var n=y(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){"hex"===n.state.view?n.setState({view:"rgb"}):"rgb"===n.state.view?n.setState({view:"hsl"}):"hsl"===n.state.view&&(1===n.props.hsl.a?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(e,t){e.hex?u.default.isValidHex(e.hex)&&n.props.onChange({hex:e.hex,source:"hex"},t):e.r||e.g||e.b?n.props.onChange({r:e.r||n.props.rgb.r,g:e.g||n.props.rgb.g,b:e.b||n.props.rgb.b,source:"rgb"},t):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(100*e.a)/100,source:"rgb"},t)):(e.h||e.s||e.l)&&("string"===typeof e.s&&e.s.includes("%")&&(e.s=e.s.replace("%","")),"string"===typeof e.l&&e.l.includes("%")&&(e.l=e.l.replace("%","")),1==e.s?e.s=.01:1==e.l&&(e.l=.01),n.props.onChange({h:e.h||n.props.hsl.h,s:Number((0,f.default)(e.s)?n.props.hsl.s:e.s),l:Number((0,f.default)(e.l)?n.props.hsl.l:e.l),source:"hsl"},t))},n.showHighlight=function(e){e.currentTarget.style.background="#eee"},n.hideHighlight=function(e){e.currentTarget.style.background="transparent"},1!==e.hsl.a&&"hex"===e.view?n.state={view:"rgb"}:n.state={view:e.view},n}return g(t,e),r(t,[{key:"render",value:function(){var e=this,t=(0,l.default)({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),n=void 0;return"hex"===this.state.view?n=o.default.createElement("div",{style:t.fields,className:"flexbox-fix"},o.default.createElement("div",{style:t.field},o.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):"rgb"===this.state.view?n=o.default.createElement("div",{style:t.fields,className:"flexbox-fix"},o.default.createElement("div",{style:t.field},o.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),o.default.createElement("div",{style:t.field},o.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),o.default.createElement("div",{style:t.field},o.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),o.default.createElement("div",{style:t.alpha},o.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):"hsl"===this.state.view&&(n=o.default.createElement("div",{style:t.fields,className:"flexbox-fix"},o.default.createElement("div",{style:t.field},o.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),o.default.createElement("div",{style:t.field},o.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"s",value:Math.round(100*this.props.hsl.s)+"%",onChange:this.handleChange})),o.default.createElement("div",{style:t.field},o.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"l",value:Math.round(100*this.props.hsl.l)+"%",onChange:this.handleChange})),o.default.createElement("div",{style:t.alpha},o.default.createElement(p.EditableInput,{style:{input:t.input,label:t.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),o.default.createElement("div",{style:t.wrap,className:"flexbox-fix"},n,o.default.createElement("div",{style:t.toggle},o.default.createElement("div",{style:t.icon,onClick:this.toggleViews,ref:function(t){return e.icon=t}},o.default.createElement(h.default,{style:t.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return 1!==e.hsl.a&&"hex"===t.view?{view:"rgb"}:null}}]),t}(o.default.Component);b.defaultProps={view:"hex"},t.default=b},"46c3":function(e,t,n){"use strict";(function(n){function r(e){return"object"!==typeof e||"toString"in e?e:Object.prototype.toString.call(e).slice(8,-1)}Object.defineProperty(t,"__esModule",{value:!0});var a="object"===typeof n&&!0;function o(e,t){if(!e){if(a)throw new Error("Invariant failed");throw new Error(t())}}t.invariant=o;var i=Object.prototype.hasOwnProperty,l=Array.prototype.splice,s=Object.prototype.toString;function u(e){return s.call(e).slice(8,-1)}var c=Object.assign||function(e,t){return f(t).forEach((function(n){i.call(t,n)&&(e[n]=t[n])})),e},f="function"===typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function p(e){return Array.isArray(e)?c(e.constructor(e.length),e):"Map"===u(e)?new Map(e):"Set"===u(e)?new Set(e):e&&"object"===typeof e?c(Object.create(Object.getPrototypeOf(e)),e):e}var d=function(){function e(){this.commands=c({},h),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new e).update}}return Object.defineProperty(e.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),e.prototype.extend=function(e,t){this.commands[e]=t},e.prototype.update=function(e,t){var n=this,r="function"===typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(r)||o(!Array.isArray(r),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),o("object"===typeof r&&null!==r,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."}));var a=e;return f(r).forEach((function(t){if(i.call(n.commands,t)){var o=e===a;a=n.commands[t](r[t],a,r,e),o&&n.isEquals(a,e)&&(a=e)}else{var l="Map"===u(e)?n.update(e.get(t),r[t]):n.update(e[t],r[t]),s="Map"===u(a)?a.get(t):a[t];n.isEquals(l,s)&&("undefined"!==typeof l||i.call(e,t))||(a===e&&(a=p(e)),"Map"===u(a)?a.set(t,l):a[t]=l)}})),a},e}();t.Context=d;var h={$push:function(e,t,n){return m(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return m(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,r){return g(t,n),e.forEach((function(e){b(e),t===r&&e.length&&(t=p(r)),l.apply(t,e)})),t},$set:function(e,t,n){return _(n),e},$toggle:function(e,t){y(e,"$toggle");var n=e.length?p(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,r){return y(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=p(r)),delete t[e])})),t},$add:function(e,t,n,r){return k(t,"$add"),y(e,"$add"),"Map"===u(t)?e.forEach((function(e){var n=e[0],a=e[1];t===r&&t.get(n)!==a&&(t=p(r)),t.set(n,a)})):e.forEach((function(e){t!==r||t.has(e)||(t=p(r)),t.add(e)})),t},$remove:function(e,t,n,r){return k(t,"$remove"),y(e,"$remove"),e.forEach((function(e){t===r&&t.has(e)&&(t=p(r)),t.delete(e)})),t},$merge:function(e,t,n,r){return w(t,e),f(e).forEach((function(n){e[n]!==t[n]&&(t===r&&(t=p(r)),t[n]=e[n])})),t},$apply:function(e,t){return x(e),e(t)}},v=new d;function m(e,t,n){o(Array.isArray(e),(function(){return"update(): expected target of "+r(n)+" to be an array; got "+r(e)+"."})),y(t[n],n)}function y(e,t){o(Array.isArray(e),(function(){return"update(): expected spec of "+r(t)+" to be an array; got "+r(e)+". Did you forget to wrap your parameter in an array?"}))}function g(e,t){o(Array.isArray(e),(function(){return"Expected $splice target to be an array; got "+r(e)})),b(t.$splice)}function b(e){o(Array.isArray(e),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+r(e)+". Did you forget to wrap your parameters in an array?"}))}function x(e){o("function"===typeof e,(function(){return"update(): expected spec of $apply to be a function; got "+r(e)+"."}))}function _(e){o(1===Object.keys(e).length,(function(){return"Cannot have more than one key in an object with $set"}))}function w(e,t){o(t&&"object"===typeof t,(function(){return"update(): $merge expects a spec of type 'object'; got "+r(t)})),o(e&&"object"===typeof e,(function(){return"update(): $merge expects a target of type 'object'; got "+r(e)}))}function k(e,t){var n=u(e);o("Map"===n||"Set"===n,(function(){return"update(): "+r(t)+" expects a target of type Set or Map; got "+r(n)}))}t.isEquals=v.update.isEquals,t.extend=v.extend,t.default=v.update,t.default.default=e.exports=c(t.default,t)}).call(this,n("4362"))},4755:function(e,t,n){"use strict";e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},4766:function(e,t,n){"use strict";var r=n("f6a4"),a=n("be45"),o=n("7ec4"),i=n("ba7e"),l=n("551e").addStyleRule,s=n("5940"),u=n("0d41"),c=n("de4c"),f=s.extendFlat,p=s.extendDeepAll;function d(e){var n=e.name,a=e.categories,o=e.meta;if(t.modules[n])r.log("Type "+n+" already registered");else{t.subplotsRegistry[e.basePlotModule.name]||h(e.basePlotModule);for(var i={},s=0;s<a.length;s++)i[a[s]]=!0,t.allCategories[a[s]]=!0;for(var u in t.modules[n]={_module:e,categories:i},o&&Object.keys(o).length&&(t.modules[n].meta=o),t.allTypes.push(n),t.componentsRegistry)b(u,n);e.layoutAttributes&&f(t.traceLayoutAttributes,e.layoutAttributes);var c=e.basePlotModule,p=c.name;if("mapbox"===p){var d=c.constants.styleRules;for(var v in d)l(".js-plotly-plot .plotly .mapboxgl-"+v,d[v])}"geo"!==p&&"mapbox"!==p||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function h(e){var n=e.name;if(t.subplotsRegistry[n])r.log("Plot type "+n+" already registered.");else for(var a in g(e),t.subplotsRegistry[n]=e,t.componentsRegistry)_(a,e.name)}function v(e){if("string"!==typeof e.name)throw new Error("Component module *name* must be a string.");var n=e.name;for(var r in t.componentsRegistry[n]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&o(t.layoutArrayContainers,n),g(e)),t.modules)b(n,r);for(var a in t.subplotsRegistry)_(n,a);for(var i in t.transformsRegistry)x(n,i);e.schema&&e.schema.layout&&p(c,e.schema.layout)}function m(e){if("string"!==typeof e.name)throw new Error("Transform module *name* must be a string.");var n="Transform module "+e.name,a="function"===typeof e.transform,o="function"===typeof e.calcTransform;if(!a&&!o)throw new Error(n+" is missing a *transform* or *calcTransform* method.");for(var l in a&&o&&r.log([n+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),i(e.attributes)||r.log(n+" registered without an *attributes* object."),"function"!==typeof e.supplyDefaults&&r.log(n+" registered without a *supplyDefaults* method."),t.transformsRegistry[e.name]=e,t.componentsRegistry)x(l,e.name)}function y(e){var n=e.name,r=n.split("-")[0],a=e.dictionary,o=e.format,i=a&&Object.keys(a).length,l=o&&Object.keys(o).length,s=t.localeRegistry,u=s[n];if(u||(s[n]=u={}),r!==n){var c=s[r];c||(s[r]=c={}),i&&c.dictionary===u.dictionary&&(c.dictionary=a),l&&c.format===u.format&&(c.format=o)}i&&(u.dictionary=a),l&&(u.format=o)}function g(e){if(e.layoutAttributes){var n=e.layoutAttributes._arrayAttrRegexps;if(n)for(var r=0;r<n.length;r++)o(t.layoutArrayRegexes,n[r])}}function b(e,n){var r=t.componentsRegistry[e].schema;if(r&&r.traces){var a=r.traces[n];a&&p(t.modules[n]._module.attributes,a)}}function x(e,n){var r=t.componentsRegistry[e].schema;if(r&&r.transforms){var a=r.transforms[n];a&&p(t.transformsRegistry[n].attributes,a)}}function _(e,n){var r=t.componentsRegistry[e].schema;if(r&&r.subplots){var a=t.subplotsRegistry[n],o=a.layoutAttributes,i="subplot"===a.attr?a.name:a.attr;Array.isArray(i)&&(i=i[0]);var l=r.subplots[i];o&&l&&p(o,l)}}function w(e){return"object"===typeof e&&(e=e.type),e}t.modules={},t.allCategories={},t.allTypes=[],t.subplotsRegistry={},t.transformsRegistry={},t.componentsRegistry={},t.layoutArrayContainers=[],t.layoutArrayRegexes=[],t.traceLayoutAttributes={},t.localeRegistry={},t.apiMethodRegistry={},t.collectableSubplotTypes=null,t.register=function(e){if(t.collectableSubplotTypes=null,!e)throw new Error("No argument passed to Plotly.register.");e&&!Array.isArray(e)&&(e=[e]);for(var n=0;n<e.length;n++){var r=e[n];if(!r)throw new Error("Invalid module was attempted to be registered!");switch(r.moduleType){case"trace":d(r);break;case"transform":m(r);break;case"component":v(r);break;case"locale":y(r);break;case"apiMethod":var a=r.name;t.apiMethodRegistry[a]=r.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},t.getModule=function(e){var n=t.modules[w(e)];return!!n&&n._module},t.traceIs=function(e,n){if(e=w(e),"various"===e)return!1;var a=t.modules[e];return a||(e&&"area"!==e&&r.log("Unrecognized trace type "+e+"."),a=t.modules[u.type.dflt]),!!a.categories[n]},t.getTransformIndices=function(e,t){for(var n=[],r=e.transforms||[],a=0;a<r.length;a++)r[a].type===t&&n.push(a);return n},t.hasTransform=function(e,t){for(var n=e.transforms||[],r=0;r<n.length;r++)if(n[r].type===t)return!0;return!1},t.getComponentMethod=function(e,n){var r=t.componentsRegistry[e];return r&&r[n]||a},t.call=function(){var e=arguments[0],n=[].slice.call(arguments,1);return t.apiMethodRegistry[e].apply(null,n)}},"47b2":function(e,t,n){"use strict";var r=n("23f7").counter;e.exports={idRegex:{x:r("x"),y:r("y")},attrRegex:r("[xy]axis"),xAxisMatch:r("xaxis"),yAxisMatch:r("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:"-select",DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},"47d8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("7a91");Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l(r).default}});var a=n("4ea5");Object.defineProperty(t,"DateUtils",{enumerable:!0,get:function(){return l(a).default}});var o=n("a6a7");Object.defineProperty(t,"LocaleUtils",{enumerable:!0,get:function(){return l(o).default}});var i=n("70d2");function l(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"ModifiersUtils",{enumerable:!0,get:function(){return l(i).default}})},4840:function(e,t,n){var r=n("825a"),a=n("1c0b"),o=n("b622"),i=o("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[i])?t:a(n)}},"485e":function(e,t,n){"use strict";var r=n("7af6"),a=r.getPunctuation(),o="[']",i="\\s|(?![_])"+a,l="^(?:"+i+")*(?:"+o+"|(?!"+i+").)*(?:(?!"+i+").)",s=new RegExp(l),u="(?:(?!"+i+").)(?:"+o+"|(?!"+i+").)*(?:"+i+")*$",c=new RegExp(u);function f(e,t){var n=t?c.exec(e):s.exec(e);return n?n[0]:e}var p={getBackward:function(e){return f(e,!0)},getForward:function(e){return f(e,!1)}};e.exports=p},"48a0":function(e,t,n){var r=n("242e"),a=n("950a"),o=a(r);e.exports=o},"490d":function(e,t,n){"use strict";var r=n("f786");function a(e){return r(e)&&3==e.nodeType}e.exports=a},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},4978:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M16,13C15.71,13 15.38,13 15.03,13.05C16.19,13.89 17,15 17,16.5V19H23V16.5C23,14.17 18.33,13 16,13M8,13C5.67,13 1,14.17 1,16.5V19H15V16.5C15,14.17 10.33,13 8,13M8,11C9.66,11 11,9.66 11,8C11,6.34 9.66,5 8,5C6.34,5 5,6.34 5,8C5,9.66 6.34,11 8,11M16,11C17.66,11 19,9.66 19,8C19,6.34 17.66,5 16,5C14.34,5 13,6.34 13,8C13,9.66 14.34,11 16,11Z"}))};e.exports=l},4988:function(e,t,n){"use strict";var r=n("dec3");function a(e,t,n){var a=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(a)}),0)):n(a);else{var o=a.getCurrentContent();n(r.set(a,{nativelyRenderedContent:o}))}}e.exports=a},"49f4":function(e,t,n){var r=n("6044");function a(){this.__data__=r?r(null):{},this.size=0}e.exports=a},"4a2f":function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;s(n("d7bc"));var r=l(n("c9c1")),a=l(n("54e7")),o=l(n("ab5b")),i=l(n("4b75"));n("c5fc");function l(e){return e&&e.__esModule?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function u(){return u=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},u.apply(this,arguments)}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var f=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,r.default)(e,t)}))},p=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,a.default)(e,t)}))},d=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t=e.call.apply(e,[this].concat(r))||this,t.onEnter=function(e,n){var r=t.getClassNames(n?"appear":"enter"),a=r.className;t.removeClasses(e,"exit"),f(e,a),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.getClassNames(n?"appear":"enter"),a=r.activeClassName;t.reflowAndAddClass(e,a),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.getClassNames("appear").doneClassName,a=t.getClassNames("enter").doneClassName,o=n?r+" "+a:a;t.removeClasses(e,n?"appear":"enter"),f(e,o),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit"),r=n.className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),f(e,r),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit"),r=n.activeClassName;t.reflowAndAddClass(e,r),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit"),r=n.doneClassName;t.removeClasses(e,"exit"),f(e,r),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,r="string"===typeof n,a=r&&n?n+"-":"",o=r?a+e:n[e],i=r?o+"-active":n[e+"Active"],l=r?o+"-done":n[e+"Done"];return{className:o,activeClassName:i,doneClassName:l}},t}c(t,e);var n=t.prototype;return n.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,a=n.activeClassName,o=n.doneClassName;r&&p(e,r),a&&p(e,a),o&&p(e,o)},n.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,f(e,t))},n.render=function(){var e=u({},this.props);return delete e.classNames,o.default.createElement(i.default,u({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(o.default.Component);d.defaultProps={classNames:""},d.propTypes={};var h=d;t.default=h,e.exports=t["default"]},"4a8b":function(e,t,n){"use strict";var r=n("69d1"),a=n("88f6").hoverlabel,o=n("5940").extendFlat;e.exports={hoverlabel:{bgcolor:o({},a.bgcolor,{arrayOk:!0,description:"Sets the background color of the hover labels for this trace"}),bordercolor:o({},a.bordercolor,{arrayOk:!0,description:"Sets the border color of the hover labels for this trace."}),font:r({arrayOk:!0,editType:"none",description:"Sets the font used in hover labels."}),align:o({},a.align,{arrayOk:!0}),namelength:o({},a.namelength,{arrayOk:!0}),editType:"none"}}},"4b2c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPointer=void 0;var r=n("ab5b"),a=l(r),o=n("fc55"),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.AlphaPointer=function(e){var t=e.direction,n=(0,i.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return a.default.createElement("div",{style:n.picker})};t.default=s},"4b75":function(e,t,n){"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=s(n("d7bc")),a=l(n("ab5b")),o=l(n("8bc8")),i=n("5422");n("c5fc");function l(e){return e&&e.__esModule?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}function u(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var f="unmounted";t.UNMOUNTED=f;var p="exited";t.EXITED=p;var d="entering";t.ENTERING=d;var h="entered";t.ENTERED=h;var v="exiting";t.EXITING=v;var m=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var a,o=n.transitionGroup,i=o&&!o.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(a=p,r.appearStatus=d):a=h:a=t.unmountOnExit||t.mountOnEnter?f:p,r.state={status:a},r.nextCallback=null,r}c(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:null}},t.getDerivedStateFromProps=function(e,t){var n=e.in;return n&&t.status===f?{status:p}:null},n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==d&&n!==h&&(t=d):n!==d&&n!==h||(t=v)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=o.default.findDOMNode(this);t===d?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:f})},n.performEnter=function(e,t){var n=this,r=this.props.enter,a=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,o=this.getTimeouts(),i=a?o.appear:o.enter;t||r?(this.props.onEnter(e,a),this.safeSetState({status:d},(function(){n.props.onEntering(e,a),n.onTransitionEnd(e,i,(function(){n.safeSetState({status:h},(function(){n.props.onEntered(e,a)}))}))}))):this.safeSetState({status:h},(function(){n.props.onEntered(e)}))},n.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:v},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:p},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:p},(function(){t.props.onExited(e)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var r=null==t&&!this.props.addEndListener;e&&!r?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===f)return null;var t=this.props,n=t.children,r=u(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"===typeof n)return n(e,r);var o=a.default.Children.only(n);return a.default.cloneElement(o,r)},t}(a.default.Component);function y(){}m.contextTypes={transitionGroup:r.object},m.childContextTypes={transitionGroup:function(){}},m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:y,onEntering:y,onEntered:y,onExit:y,onExiting:y,onExited:y},m.UNMOUNTED=0,m.EXITED=1,m.ENTERING=2,m.ENTERED=3,m.EXITING=4;var g=(0,i.polyfill)(m);t.default=g},"4b96":function(e,t,n){"use strict";var r=n("3601"),a=n("f9a1");function o(e){return null==e?e:String(e)}function i(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null),n))return o(n.getPropertyValue(a(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null),n)return o(n.getPropertyValue(a(t)));if("display"===t)return"none"}return e.currentStyle?o("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):o(e.style&&e.style[r(t)])}e.exports=i},"4bc5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n("1a23")),a=c(n("ab5b")),o=f(n("d7bc")),i=f(n("66cb")),l=n("4ccf"),s=n("5858");function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(){return d=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},d.apply(this,arguments)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 m(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function y(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&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function b(e){var t=w();return function(){var n,r=k(e);if(t){var a=k(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){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}}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var T=function(e){return e.rgb||e},E=function(e){return"hex"===e.source?e.hex:T(e)},O=function(e){return(0,i.default)(E(e))},M=function(e){y(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this.props.onChangeComplete;return a.default.createElement("div",{className:"colorpicker__outer"},a.default.createElement("div",{className:"colorpicker__controls +flex"},a.default.createElement("div",{className:"colorpicker__sliders"},a.default.createElement("div",{className:"colorpicker__slider"},a.default.createElement(l.Hue,this.props)))),a.default.createElement("div",{className:"colorpicker__saturation"},a.default.createElement(l.Saturation,this.props)),a.default.createElement("div",{className:"colorpicker__custom-input"},a.default.createElement(r.default,d({},this.props,{onChange:e}))))}}]),n}(a.Component);M.propTypes={rgb:o.default.object,onChangeComplete:o.default.func};var S=(0,s.CustomPicker)(M),C=function(e){y(n,e);var t=b(n);function n(e){var r;return h(this,n),r=t.call(this,e),r.state={isVisible:!1},r.onSelectedColorChange=r.onSelectedColorChange.bind(_(r)),r.toggleVisible=r.toggleVisible.bind(_(r)),r}return m(n,[{key:"onSelectedColorChange",value:function(e){var t=O(e);this.props.onColorChange(t.toRgbString())}},{key:"toggleVisible",value:function(){this.setState({isVisible:!this.state.isVisible})}},{key:"render",value:function(){var e=(0,i.default)(this.props.selectedColor),t=e.toHexString(),n=0!==e._a?e.toRgbString():"rgb(".concat(e._r,",").concat(e._g,",").concat(e._b,")"),r={backgroundColor:n};return a.default.createElement(a.default.Fragment,null,a.default.createElement("div",{className:"colorpicker__container"},a.default.createElement("div",{className:"colorpicker"},a.default.createElement("div",{className:"colorpicker__swatch +cursor-clickable",style:r,onClick:this.toggleVisible})),a.default.createElement("div",{className:"colorpicker__selected-color +hover-grey",onClick:this.toggleVisible},t)),this.state.isVisible&&a.default.createElement(S,{color:n,onChangeComplete:this.onSelectedColorChange}))}}]),n}(a.Component);C.propTypes={onColorChange:o.default.func.isRequired,selectedColor:o.default.string};var A=C;t.default=A},"4c06":function(e,t,n){(function(t){e["exports"]=t()})((function(){"use strict";return function(e){var t="/*|*/",n=t+"}";function r(t){if(t)try{e(t+"}")}catch(n){}}return function(a,o,i,l,s,u,c,f,p,d){switch(a){case 1:if(0===p&&64===o.charCodeAt(0))return e(o+";"),"";break;case 2:if(0===f)return o+t;break;case 3:switch(f){case 102:case 112:return e(i[0]+o),"";default:return o+(0===d?t:"")}case-2:o.split(n).forEach(r)}}}}))},"4c72":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r,a){var o=a.clientWidth,i=a.clientHeight,l="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,s="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,u=l-(a.getBoundingClientRect().left+window.pageXOffset),c=s-(a.getBoundingClientRect().top+window.pageYOffset);if("vertical"===n){var f=void 0;if(f=c<0?0:c>i?1:Math.round(100*c/i)/100,t.a!==f)return{h:t.h,s:t.s,l:t.l,a:f,source:"rgb"}}else{var p=void 0;if(p=u<0?0:u>o?1:Math.round(100*u/o)/100,r!==p)return{h:t.h,s:t.s,l:t.l,a:p,source:"rgb"}}return null}},"4ccf":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("c8e6");Object.defineProperty(t,"Alpha",{enumerable:!0,get:function(){return f(r).default}});var a=n("36ad");Object.defineProperty(t,"Checkboard",{enumerable:!0,get:function(){return f(a).default}});var o=n("0272");Object.defineProperty(t,"EditableInput",{enumerable:!0,get:function(){return f(o).default}});var i=n("1e54");Object.defineProperty(t,"Hue",{enumerable:!0,get:function(){return f(i).default}});var l=n("3a3b");Object.defineProperty(t,"Raised",{enumerable:!0,get:function(){return f(l).default}});var s=n("71cc");Object.defineProperty(t,"Saturation",{enumerable:!0,get:function(){return f(s).default}});var u=n("506c");Object.defineProperty(t,"ColorWrap",{enumerable:!0,get:function(){return f(u).default}});var c=n("05ae");function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"Swatch",{enumerable:!0,get:function(){return f(c).default}})},"4cec":function(e,t,n){"use strict";e.exports=n("a93d7")},"4cfe":function(e,t){function n(e){return void 0===e}e.exports=n},"4d26":function(e,t,n){var r,a;
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var i=o.apply(null,r);i&&e.push(i)}else if("object"===a)for(var l in r)n.call(r,l)&&r[l]&&e.push(l)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):(r=[],a=function(){return o}.apply(t,r),void 0===a||(e.exports=a))})()},"4d3e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,a,o,i=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},l=function(){function e(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)if(n.push(i.value),t&&n.length===t)break}catch(s){a=!0,o=s}finally{try{!r&&l["return"]&&l["return"]()}finally{if(a)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=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}}();t.default=N;var u=n("c95a"),c=m(u),f=n("9364"),p=m(f),d=n("74c7"),h=m(d),v=n("f825");function m(e){return e&&e.__esModule?e:{default:e}}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=v.INLINE_STYLE.BOLD,x=v.INLINE_STYLE.CODE,_=v.INLINE_STYLE.ITALIC,w=v.INLINE_STYLE.STRIKETHROUGH,k=v.INLINE_STYLE.UNDERLINE,T=" ",E="<br>",O=/^data-([a-z0-9-]+)$/,M=(r={},g(r,b,{element:"strong"}),g(r,x,{element:"code"}),g(r,_,{element:"em"}),g(r,w,{element:"del"}),g(r,k,{element:"u"}),r),S=[b,_,k,w,x],C=(a={},g(a,v.ENTITY_TYPE.LINK,{url:"href",href:"href",rel:"rel",target:"target",title:"title",className:"class"}),g(a,v.ENTITY_TYPE.IMAGE,{src:"src",height:"height",width:"width",alt:"alt",className:"class"}),a),A=(o={},g(o,v.ENTITY_TYPE.LINK,(function(e,t){var n=C.hasOwnProperty(e)?C[e]:{},r=t.getData(),a={},o=!0,i=!1,l=void 0;try{for(var s,u=Object.keys(r)[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value,f=r[c];if(n.hasOwnProperty(c)){var p=n[c];a[p]=f}else O.test(c)&&(a[c]=f)}}catch(d){i=!0,l=d}finally{try{!o&&u.return&&u.return()}finally{if(i)throw l}}return a})),g(o,v.ENTITY_TYPE.IMAGE,(function(e,t){var n=C.hasOwnProperty(e)?C[e]:{},r=t.getData(),a={},o=!0,i=!1,l=void 0;try{for(var s,u=Object.keys(r)[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){var c=s.value,f=r[c];if(n.hasOwnProperty(c)){var p=n[c];a[p]=f}else O.test(c)&&(a[c]=f)}}catch(d){i=!0,l=d}finally{try{!o&&u.return&&u.return()}finally{if(i)throw l}}return a})),o);function P(e,t){switch(e){case v.BLOCK_TYPE.HEADER_ONE:return["h1"];case v.BLOCK_TYPE.HEADER_TWO:return["h2"];case v.BLOCK_TYPE.HEADER_THREE:return["h3"];case v.BLOCK_TYPE.HEADER_FOUR:return["h4"];case v.BLOCK_TYPE.HEADER_FIVE:return["h5"];case v.BLOCK_TYPE.HEADER_SIX:return["h6"];case v.BLOCK_TYPE.UNORDERED_LIST_ITEM:case v.BLOCK_TYPE.ORDERED_LIST_ITEM:return["li"];case v.BLOCK_TYPE.BLOCKQUOTE:return["blockquote"];case v.BLOCK_TYPE.CODE:return["pre","code"];case v.BLOCK_TYPE.ATOMIC:return["figure"];default:return null===t?[]:[t||"p"]}}function L(e){switch(e){case v.BLOCK_TYPE.UNORDERED_LIST_ITEM:return"ul";case v.BLOCK_TYPE.ORDERED_LIST_ITEM:return"ol";default:return null}}var D=function(){function e(t,n){y(this,e),null==n&&(n={}),this.contentState=t,this.options=n;var r=(0,c.default)(n.inlineStyles,[M,S]),a=l(r,2),o=a[0],i=a[1];this.inlineStyles=o,this.styleOrder=i}return s(e,[{key:"generate",value:function(){this.output=[],this.blocks=this.contentState.getBlocksAsArray(),this.totalBlocks=this.blocks.length,this.currentBlock=0,this.indentLevel=0,this.wrapperTag=null;while(this.currentBlock<this.totalBlocks)this.processBlock();return this.closeWrapperTag(),this.output.join("").trim()}},{key:"processBlock",value:function(){var e=this.options,t=e.blockRenderers,n=e.defaultBlockTag,r=this.blocks[this.currentBlock],a=r.getType(),o=L(a);this.wrapperTag!==o&&(this.wrapperTag&&this.closeWrapperTag(),o&&this.openWrapperTag(o)),this.indent();var i=null!=t&&t.hasOwnProperty(a)?t[a]:null,l=i?i(r):null;if(null!=l)return this.output.push(l),this.output.push("\n"),void(this.currentBlock+=1);this.writeStartTag(r,n),this.output.push(this.renderBlockContent(r));var s=this.getNextBlock();if(I(a)&&s&&s.getDepth()===r.getDepth()+1){this.output.push("\n");var u=this.wrapperTag;this.wrapperTag=null,this.indentLevel+=1,this.currentBlock+=1,this.processBlocksAtDepth(s.getDepth()),this.wrapperTag=u,this.indentLevel-=1,this.indent()}else this.currentBlock+=1;this.writeEndTag(r,n)}},{key:"processBlocksAtDepth",value:function(e){var t=this.blocks[this.currentBlock];while(t&&t.getDepth()===e)this.processBlock(),t=this.blocks[this.currentBlock];this.closeWrapperTag()}},{key:"getNextBlock",value:function(){return this.blocks[this.currentBlock+1]}},{key:"writeStartTag",value:function(e,t){var n=P(e.getType(),t),r=void 0;if(this.options.blockStyleFn){var a=this.options.blockStyleFn(e)||{},o=a.attributes,l=a.style;if(o=(0,p.default)(o),null!=l){var s=(0,h.default)(l);o=null==o?{style:s}:i({},o,{style:s})}r=j(o)}else r="";var u=!0,c=!1,f=void 0;try{for(var d,v=n[Symbol.iterator]();!(u=(d=v.next()).done);u=!0){var m=d.value;this.output.push("<"+m+r+">")}}catch(y){c=!0,f=y}finally{try{!u&&v.return&&v.return()}finally{if(c)throw f}}}},{key:"writeEndTag",value:function(e,t){var n=P(e.getType(),t);if(1===n.length)this.output.push("</"+n[0]+">\n");else{var r=[],a=!0,o=!1,i=void 0;try{for(var l,s=n[Symbol.iterator]();!(a=(l=s.next()).done);a=!0){var u=l.value;r.unshift("</"+u+">")}}catch(c){o=!0,i=c}finally{try{!a&&s.return&&s.return()}finally{if(o)throw i}}this.output.push(r.join("")+"\n")}}},{key:"openWrapperTag",value:function(e){this.wrapperTag=e,this.indent(),this.output.push("<"+e+">\n"),this.indentLevel+=1}},{key:"closeWrapperTag",value:function(){var e=this.wrapperTag;e&&(this.indentLevel-=1,this.indent(),this.output.push("</"+e+">\n"),this.wrapperTag=null)}},{key:"indent",value:function(){this.output.push(T.repeat(this.indentLevel))}},{key:"renderBlockContent",value:function(e){var t=this,n=e.getType(),r=e.getText();if(""===r)return E;r=this.preserveWhitespace(r);var a=e.getCharacterList(),o=(0,v.getEntityRanges)(r,a);return o.map((function(e){var r=l(e,2),a=r[0],o=r[1],s=o.map((function(e){var r=l(e,2),a=r[0],o=r[1],s=R(a),u=!0,c=!1,f=void 0;try{for(var d,m=t.styleOrder[Symbol.iterator]();!(u=(d=m.next()).done);u=!0){var y=d.value;if((y!==x||n!==v.BLOCK_TYPE.CODE)&&o.has(y)){var g=t.inlineStyles[y],b=g.element,_=g.attributes,w=g.style;if(null==b&&(b="span"),_=(0,p.default)(_),null!=w){var k=(0,h.default)(w);_=null==_?{style:k}:i({},_,{style:k})}var T=j(_);s="<"+b+T+">"+s+"</"+b+">"}}}catch(E){c=!0,f=E}finally{try{!u&&m.return&&m.return()}finally{if(c)throw f}}return s})).join(""),u=a?t.contentState.getEntity(a):null,c=null==u?null:u.getType().toUpperCase(),f=void 0;if(null!=u&&t.options.entityStyleFn&&(f=t.options.entityStyleFn(u))){var d=f,m=d.element,y=d.attributes,g=d.style;if(null==m&&(m="span"),y=(0,p.default)(y),null!=g){var b=(0,h.default)(g);y=null==y?{style:b}:i({},y,{style:b})}var _=j(y);return"<"+m+_+">"+s+"</"+m+">"}if(null!=c&&c===v.ENTITY_TYPE.LINK){var w=A.hasOwnProperty(c)?A[c](c,u):null,k=j(w);return"<a"+k+">"+s+"</a>"}if(null!=c&&c===v.ENTITY_TYPE.IMAGE){var T=A.hasOwnProperty(c)?A[c](c,u):null,E=j(T);return"<img"+E+"/>"}return s})).join("")}},{key:"preserveWhitespace",value:function(e){for(var t=e.length,n=new Array(t),r=0;r<t;r++)" "!==e[r]||0!==r&&r!==t-1&&" "!==e[r-1]?n[r]=e[r]:n[r]=" ";return n.join("")}}]),e}();function j(e){if(null==e)return"";var t=[],n=!0,r=!1,a=void 0;try{for(var o,i=Object.keys(e)[Symbol.iterator]();!(n=(o=i.next()).done);n=!0){var l=o.value,s=e[l];null!=s&&t.push(" "+l+'="'+z(s+"")+'"')}}catch(u){r=!0,a=u}finally{try{!n&&i.return&&i.return()}finally{if(r)throw a}}return t.join("")}function I(e){switch(e){case v.BLOCK_TYPE.UNORDERED_LIST_ITEM:case v.BLOCK_TYPE.ORDERED_LIST_ITEM:return!0;default:return!1}}function R(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split(" ").join("&nbsp;").split("\n").join(E+"\n")}function z(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")}function N(e,t){return new D(e,t).generate()}},"4d64":function(e,t,n){var r=n("fc6a"),a=n("50c4"),o=n("23cb"),i=function(e){return function(t,n,i){var l,s=r(t),u=a(s.length),c=o(i,u);if(e&&n!=n){while(u>c)if(l=s[c++],l!=l)return!0}else for(;u>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:i(!0),indexOf:i(!1)}},"4d6a":function(e,t,n){"use strict";var r=n("490d");function a(e,t){return!(!e||!t)&&(e===t||!r(e)&&(r(t)?a(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}e.exports=a},"4d87":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M5.5,7C6.33,7 7,6.33 7,5.5C7,4.67 6.33,4 5.5,4C4.67,4 4,4.67 4,5.5C4,6.33 4.67,7 5.5,7M21.41,11.58C21.77,11.94 22,12.44 22,13C22,13.55 21.78,14.05 21.41,14.41L14.41,21.41C14.05,21.77 13.55,22 13,22C12.45,22 11.95,21.77 11.58,21.41L2.59,12.41C2.22,12.05 2,11.55 2,11V4C2,2.89 2.89,2 4,2H11C11.55,2 12.05,2.22 12.41,2.58L21.41,11.58M13,20L20,13L11.5,4.5L4.5,11.5L13,20Z"}))};e.exports=l},"4da8":function(e,t,n){"use strict";function r(e,t,n,r){if(e.size){var a=0;e.reduce((function(e,o,i){return t(e,o)||(n(e)&&r(a,i),a=i),o})),n(e.last())&&r(a,e.count())}}e.exports=r},"4de4":function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").filter,o=n("1dde"),i=n("ae40"),l=o("filter"),s=i("filter");r({target:"Array",proto:!0,forced:!l||!s},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},"4ded":function(e,t,n){"use strict";function r(e){return 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},r(e)}Object.defineProperty(t,"__esModule",{value:!0});var a={AnnotationAccordion:!0,ShapeAccordion:!0,SliderAccordion:!0,ImageAccordion:!0,UpdateMenuAccordion:!0,RangeSelectorAccordion:!0,MapboxLayersAccordion:!0,AxesFold:!0,PlotlyFold:!0,Fold:!0,MenuPanel:!0,PlotlyPanel:!0,Panel:!0,PlotlySection:!0,Section:!0,PanelEmpty:!0,PanelMessage:!0,SubplotAccordion:!0,TraceAccordion:!0,TransformAccordion:!0,TraceMarkerSection:!0,TraceRequiredPanel:!0,SingleSidebarItem:!0,ModalProvider:!0,Modal:!0};Object.defineProperty(t,"AnnotationAccordion",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"ShapeAccordion",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"SliderAccordion",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"ImageAccordion",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"UpdateMenuAccordion",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"RangeSelectorAccordion",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"MapboxLayersAccordion",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"AxesFold",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"PlotlyFold",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"Fold",{enumerable:!0,get:function(){return d.Fold}}),Object.defineProperty(t,"MenuPanel",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"PlotlyPanel",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"Panel",{enumerable:!0,get:function(){return v.Panel}}),Object.defineProperty(t,"PlotlySection",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"Section",{enumerable:!0,get:function(){return m.Section}}),Object.defineProperty(t,"PanelEmpty",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"PanelMessage",{enumerable:!0,get:function(){return y.PanelMessage}}),Object.defineProperty(t,"SubplotAccordion",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"TraceAccordion",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"TransformAccordion",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"TraceMarkerSection",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"TraceRequiredPanel",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"SingleSidebarItem",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"ModalProvider",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"Modal",{enumerable:!0,get:function(){return E.default}});var o=C(n("c1e1")),i=C(n("71ec")),l=C(n("b91d")),s=C(n("7cdc")),u=C(n("ddc9")),c=C(n("801f")),f=C(n("893b")),p=C(n("bd2e")),d=S(n("9903")),h=C(n("592e")),v=S(n("e78b")),m=S(n("691e")),y=S(n("a36d")),g=C(n("f78b")),b=C(n("be62")),x=C(n("cdc4")),_=C(n("d618")),w=C(n("201b")),k=C(n("7635")),T=C(n("7b49")),E=C(n("71a6")),O=n("ca44");function M(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return M=function(){return e},e}function S(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=M();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function C(e){return e&&e.__esModule?e:{default:e}}Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(a,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}))},"4df4":function(e,t,n){"use strict";var r=n("0366"),a=n("7b0b"),o=n("9bdd"),i=n("e95a"),l=n("50c4"),s=n("8418"),u=n("35a1");e.exports=function(e){var t,n,c,f,p,d,h=a(e),v="function"==typeof this?this:Array,m=arguments.length,y=m>1?arguments[1]:void 0,g=void 0!==y,b=u(h),x=0;if(g&&(y=r(y,m>2?arguments[2]:void 0,2)),void 0==b||v==Array&&i(b))for(t=l(h.length),n=new v(t);t>x;x++)d=g?y(h[x],x):h[x],s(n,x,d);else for(f=b.call(h),p=f.next,n=new v;!(c=p.call(f)).done;x++)d=g?o(f,y,[c.value,x],!0):c.value,s(n,x,d);return n.length=x,n}},"4e46":function(e,t,n){"use strict";function r(e,t,n){var r=Object.keys(e.traces).filter((function(e){return!["area","scattermapbox"].includes(e)})),a=[{value:"scatter",label:t("Scatter")},{value:"box",label:t("Box")},{value:"bar",label:t("Bar")},{value:"heatmap",label:t("Heatmap")},{value:"histogram",label:t("Histogram")},{value:"histogram2d",label:t("2D Histogram")},{value:"histogram2dcontour",label:t("2D Contour Histogram")},{value:"pie",label:t("Pie")},{value:"contour",label:t("Contour")},{value:"scatterternary",label:t("Ternary Scatter")},{value:"violin",label:t("Violin")},{value:"scatter3d",label:t("3D Scatter")},{value:"surface",label:t("Surface")},{value:"mesh3d",label:t("3D Mesh")},{value:"cone",label:t("Cone")},{value:"streamtube",label:t("Streamtube")},{value:"scattergeo",label:t("Atlas Map")},{value:"choropleth",label:t("Choropleth")},{value:"scattergl",label:t("Scatter GL")},{value:"pointcloud",label:t("Point Cloud")},{value:"heatmapgl",label:t("Heatmap GL")},{value:"parcoords",label:t("Parallel Coordinates")},{value:"sankey",label:t("Sankey")},{value:"table",label:t("Table")},{value:"carpet",label:t("Carpet")},{value:"scattercarpet",label:t("Carpet Scatter")},{value:"contourcarpet",label:t("Carpet Contour")},{value:"ohlc",label:t("OHLC")},{value:"candlestick",label:t("Candlestick")},{value:"scatterpolar",label:t("Polar Scatter")},{value:"scatterpolargl",label:t("Polar Scatter GL")},{value:"barpolar",label:t("Polar Bar")},{value:"isosurface",label:t("Isosurface")}].filter((function(e){return-1!==r.indexOf(e.value)})),o=function(e){return a.findIndex((function(t){return t.value===e}))};return a.splice(o("scatter")+1,0,{label:t("Line"),value:"line"},{label:t("Area"),value:"area"},{label:t("Timeseries"),value:"timeseries"}),a.splice(o("scatter3d")+1,0,{label:t("3D Line"),value:"line3d"}),n.config&&n.config.mapboxAccessToken&&a.push({value:"scattermapbox",label:t("Satellite Map")}),a}Object.defineProperty(t,"__esModule",{value:!0}),t.computeTraceOptionsFromSchema=r},"4e55":function(e,t,n){"use strict";var r=n("9452"),a=n("24f7"),o=a.List;function i(e,t){var n=e.map((function(e,n){var a=t[n];return r.create({style:e,entity:a})}));return o(n)}e.exports=i},"4e92":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M8 8h16v6H8z"}),o.default.createElement("path",{fill:"#fff",d:"M8 14h16v6H8z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M8 20h16v6H8z"}),o.default.createElement("path",{fill:"#fff",d:"M8 26h16v6H8z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M8 32h16v6H8zM26 8h12v6H26z"}),o.default.createElement("path",{fill:"#fff",d:"M26 14h12v6H26z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M26 20h12v6H26z"}),o.default.createElement("path",{fill:"#fff",d:"M26 26h12v6H26z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M26 32h12v6H26z"}),o.default.createElement("path",{fill:"none",stroke:"#25fdfc",d:"M21 11H11m10 12H11",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M21 17H11m10 12H11",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{fill:"none",stroke:"#25fdfc",d:"M21 35H11m24-24h-6m6 12h-6",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M35 17h-6m6 12h-6",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{fill:"none",stroke:"#25fdfc",d:"M35 35h-6",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M24 8h2v30h-2z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M24 8h2v6h-2zm0 12h2v6h-2zm0 12h2v6h-2z"}))};t.default=u},"4ea4":function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},"4ea5":function(e,t,n){"use strict";function r(e){return new Date(e.getTime())}function a(e){return e instanceof Date&&!isNaN(e.valueOf())}function o(e,t){var n=r(e);return n.setMonth(e.getMonth()+t),n}function i(e,t){return!(!e||!t)&&(e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())}function l(e,t){return!(!e||!t)&&(e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear())}function s(e,t){var n=r(e).setHours(0,0,0,0),a=r(t).setHours(0,0,0,0);return n<a}function u(e,t){var n=r(e).setHours(0,0,0,0),a=r(t).setHours(0,0,0,0);return n>a}function c(e){var t=new Date;return t.setHours(0,0,0,0),s(e,t)}function f(e){var t=new Date((new Date).getTime()+864e5);return t.setHours(0,0,0,0),e>=t}function p(e,t,n){var a=r(e);return a.setHours(0,0,0,0),u(a,t)&&s(a,n)||u(a,n)&&s(a,t)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{from:null,to:null},n=t.from,r=t.to;return n?n&&r&&i(n,r)&&i(e,n)?(n=null,r=null):r&&s(e,n)?n=e:r&&i(e,r)?(n=e,r=e):(r=e,s(r,n)&&(r=n,n=e)):n=e,{from:n,to:r}}function h(e,t){var n=t.from,r=t.to;return n&&i(e,n)||r&&i(e,r)||n&&r&&p(e,n,r)}function v(e){var t=r(e);return t.setHours(0,0,0),t.setDate(t.getDate()+4-(t.getDay()||7)),Math.ceil(((t-new Date(t.getFullYear(),0,1))/864e5+1)/7)}Object.defineProperty(t,"__esModule",{value:!0}),t.clone=r,t.isDate=a,t.addMonths=o,t.isSameDay=i,t.isSameMonth=l,t.isDayBefore=s,t.isDayAfter=u,t.isPastDay=c,t.isFutureDay=f,t.isDayBetween=p,t.addDayToRange=d,t.isDayInRange=h,t.getWeekNumber=v,t.default={addDayToRange:d,addMonths:o,clone:r,getWeekNumber:v,isDate:a,isDayAfter:u,isDayBefore:s,isDayBetween:p,isDayInRange:h,isFutureDay:f,isPastDay:c,isSameDay:i,isSameMonth:l}},"4efd":function(e,t,n){"use strict";function r(e){return e?e.charAt(0).toUpperCase()+e.substring(1):""}function a(e){return e.toLowerCase()}function o(e){return e.toUpperCase()}function i(e){return e.replace(/[^0-9a-zA-Z\xC0-\xFF \-]/g,"")}function l(e){return e.replace(/\-/g," ").replace(/(\d)(?=(\d{1})+$)/g,"$1 ").replace(/\s[a-z]/g,o).replace(/\s+/g,"").replace(/^[A-Z]/g,a)}function s(e){return l(e).replace(/^[a-z]/,o)}Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=r,t.lowerCase=a,t.upperCase=o,t.removeNonWord=i,t.camelCase=l,t.pascalCase=s},"4f35":function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n("aa79"),i=n("24f7"),l=n("d8db"),s=n("1e9b"),u=i.Map,c=u(),f=s();function p(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var d={getLastCreatedEntityKey:function(){return p("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),d.__getLastCreatedEntityKey()},create:function(e,t,n){return p("DraftEntity.create","contentState.createEntity"),d.__create(e,t,n)},add:function(e){return p("DraftEntity.add","contentState.addEntity"),d.__add(e)},get:function(e){return p("DraftEntity.get","contentState.getEntity"),d.__get(e)},__getAll:function(){return c},__loadWithEntities:function(e){c=e,f=s()},mergeData:function(e,t){return p("DraftEntity.mergeData","contentState.mergeEntityData"),d.__mergeData(e,t)},replaceData:function(e,t){return p("DraftEntity.replaceData","contentState.replaceEntityData"),d.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return f},__create:function(e,t,n){return d.__add(new o({type:e,mutability:t,data:n||{}}))},__add:function(e){return f=s(),c=c.set(f,e),f},__get:function(e){var t=c.get(e);return t||l(!1),t},__mergeData:function(e,t){var n=d.__get(e),a=r({},n.getData(),t),o=n.set("data",a);return c=c.set(e,o),o},__replaceData:function(e,t){var n=d.__get(e),r=n.set("data",t);return c=c.set(e,r),r}};e.exports=d},"4f50":function(e,t,n){var r=n("b760"),a=n("e5383"),o=n("c8fe"),i=n("4359"),l=n("fa21"),s=n("d370"),u=n("6747"),c=n("dcbe"),f=n("0d24"),p=n("9520"),d=n("1a8c"),h=n("60ed"),v=n("73ac"),m=n("8adb"),y=n("8de2");function g(e,t,n,g,b,x,_){var w=m(e,n),k=m(t,n),T=_.get(k);if(T)r(e,n,T);else{var E=x?x(w,k,n+"",e,t,_):void 0,O=void 0===E;if(O){var M=u(k),S=!M&&f(k),C=!M&&!S&&v(k);E=k,M||S||C?u(w)?E=w:c(w)?E=i(w):S?(O=!1,E=a(k,!0)):C?(O=!1,E=o(k,!0)):E=[]:h(k)||s(k)?(E=w,s(w)?E=y(w):d(w)&&!p(w)||(E=l(k))):O=!1}O&&(_.set(k,E),b(E,k,g,x,_),_["delete"](k)),r(e,n,E)}}e.exports=g},"4f8d":function(e,t,n){"use strict";function r(e){return"handled"===e||!0===e}e.exports=r},"506c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorWrap=void 0;var r=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},a=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}}(),o=n("ab5b"),i=f(o),l=n("b047c"),s=f(l),u=n("a7cc"),c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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}function h(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)}var v=t.ColorWrap=function(e){var t=function(t){function n(e){p(this,n);var t=d(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.handleChange=function(e,n){var r=c.default.simpleCheckForValidColor(e);if(r){var a=c.default.toState(e,e.h||t.state.oldHue);t.setState(a),t.props.onChangeComplete&&t.debounce(t.props.onChangeComplete,a,n),t.props.onChange&&t.props.onChange(a,n)}},t.handleSwatchHover=function(e,n){var r=c.default.simpleCheckForValidColor(e);if(r){var a=c.default.toState(e,e.h||t.state.oldHue);t.props.onSwatchHover&&t.props.onSwatchHover(a,n)}},t.state=r({},c.default.toState(e.color,0)),t.debounce=(0,s.default)((function(e,t,n){e(t,n)}),100),t}return h(n,t),a(n,[{key:"render",value:function(){var t={};return this.props.onSwatchHover&&(t.onSwatchHover=this.handleSwatchHover),i.default.createElement(e,r({},this.props,this.state,{onChange:this.handleChange},t))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return r({},c.default.toState(e.color,t.oldHue))}}]),n}(o.PureComponent||o.Component);return t.propTypes=r({},e.propTypes),t.defaultProps=r({},e.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),t};t.default=v},"50c4":function(e,t,n){var r=n("a691"),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},"50d4":function(e,t,n){},"50d8":function(e,t){function n(e,t){var n=-1,r=Array(e);while(++n<e)r[n]=t(n);return r}e.exports=n},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"515d":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M17,12V3C17,2.45 16.55,2 16,2H3C2.45,2 2,2.45 2,3V17L6,13H16C16.55,13 17,12.55 17,12M21,6H19V15H6V17C6,17.55 6.45,18 7,18H18L22,22V7C22,6.45 21.55,6 21,6Z"}))};e.exports=l},5174:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FieldDelete=void 0;var r=p(n("d7bc")),a=f(n("ab5b")),o=p(n("592e")),i=p(n("4d26")),l=n("4578"),s=n("e419"),u=n("8704");function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function p(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="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},d(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=function(e){g(n,e);var t=x(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){var e=this.props.onClick;return a.default.createElement("div",{className:"field__delete",onClick:e},a.default.createElement(u.CloseIcon,null))}}]),n}(a.Component);t.FieldDelete=E;var O=function(e){g(n,e);var t=x(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){var e,t=this.props,n=t.center,r=t.children,u=t.label,c=t.multiValued,f=t.suppressMultiValuedMessage,p=t.units,d=t.extraComponent,v=t.fieldContainerClassName,m=t.labelWidth,y=this.context.localize;e=u?(0,i.default)("field__widget",{"field__widget--units":Boolean(p)}):(0,i.default)("field__no-title",{"field__no-title--center":n});var g=this.context.attr;this.context.description&&(g+=" "+this.context.description.replace(/`/g,'"').replace(/\*/g,'"'));var b=(0,i.default)((0,l.bem)("field"),h({},v,Boolean(v)));return a.default.createElement("div",{className:b},u?a.default.createElement("div",{className:(0,l.bem)("field","title"),style:m?{minWidth:m+"px"}:{}},this.context.showFieldTooltips?a.default.createElement("div",{className:(0,l.bem)("field","title-text"),"aria-label":g,"data-microtip-position":"bottom-right","data-microtip-size":"large",role:"tooltip"},u):a.default.createElement("div",{className:(0,l.bem)("field","title-text")},u)):null,a.default.createElement("div",{className:e},r,d||null,c&&!f?a.default.createElement(o.default,{label:(0,s.getMultiValueText)("title",y),ownline:!0,question:!0},a.default.createElement("div",{className:"info__title"},(0,s.getMultiValueText)("title",y)),a.default.createElement("div",{className:"info__text"},(0,s.getMultiValueText)("text",y)),a.default.createElement("div",{className:"info__sub-text"},(0,s.getMultiValueText)("subText",y))):null),p?a.default.createElement("div",{className:(0,l.bem)("field","units")},a.default.createElement("div",{className:(0,l.bem)("field","units-text")},p)):null)}}]),n}(a.Component);O.propTypes={labelWidth:r.default.number,center:r.default.bool,label:r.default.any,units:r.default.string,multiValued:r.default.bool,suppressMultiValuedMessage:r.default.bool,children:r.default.node,extraComponent:r.default.any,fieldContainerClassName:r.default.string},O.contextTypes={localize:r.default.func,description:r.default.string,attr:r.default.string,showFieldTooltips:r.default.bool},O.defaultProps={center:!1,multiValued:!1},E.propTypes={onClick:r.default.func};var M=O;t.default=M},"51eb":function(e,t,n){"use strict";function r(e){return Object.keys(e).map((function(t){return e[t]}))}e.exports=r},5275:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=l(n("d7bc")),a=l(n("ab5b")),o=n("5422"),i=n("f0f7");function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function u(){return u=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},u.apply(this,arguments)}function c(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var p=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},d={component:"div",childFactory:function(e){return e}},h=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var a=r.handleExited.bind(f(f(r)));return r.state={handleExited:a,firstRender:!0},r}c(t,e);var n=t.prototype;return n.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},n.componentDidMount=function(){this.appeared=!0,this.mounted=!0},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited,a=t.firstRender;return{children:a?(0,i.getInitialChildMapping)(e,r):(0,i.getNextChildMapping)(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=(0,i.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=u({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=s(e,["component","childFactory"]),o=p(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?o:a.default.createElement(t,r,o)},t}(a.default.Component);h.childContextTypes={transitionGroup:r.default.object.isRequired},h.propTypes={},h.defaultProps=d;var v=(0,o.polyfill)(h);t.default=v,e.exports=t["default"]},5295:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("ab5b")),a=i(n("d7bc")),o=n("c85e");function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){d(n,e);var t=v(n);function n(){return c(this,n),t.apply(this,arguments)}return p(n,[{key:"render",value:function(){var e=this.context.localize;return r.default.createElement(o.LayoutPanel,null,r.default.createElement(o.AxesFold,{name:e("Titles"),axisFilter:function(e){return!(e._name.includes("angular")||e._subplot.includes("geo"))}},r.default.createElement(o.TextEditor,{attr:"title.text"}),r.default.createElement(o.FontSelector,{label:e("Typeface"),attr:"title.font.family"}),r.default.createElement(o.Numeric,{label:e("Font Size"),attr:"title.font.size",units:"px"}),r.default.createElement(o.ColorPicker,{label:e("Font Color"),attr:"title.font.color"})),r.default.createElement(o.AxesFold,{name:e("Range")},r.default.createElement(o.PlotlySection,{name:e("Range"),attr:"autorange"},r.default.createElement(o.Dropdown,{attr:"type",label:e("Type"),clearable:!1,options:[{label:e("Linear"),value:"linear"},{label:e("Log"),value:"log"},{label:e("Date"),value:"date"},{label:e("Categorical"),value:"category"},{label:e("Multicategorical"),value:"multicategory"}]}),r.default.createElement(o.Radio,{attr:"autorange",label:e("Range"),options:[{label:e("Auto"),value:!0},{label:e("Custom"),value:!1}]}),r.default.createElement(o.AxesRange,{label:e("Min"),attr:"range[0]"}),r.default.createElement(o.AxesRange,{label:e("Max"),attr:"range[1]"}),r.default.createElement(o.Numeric,{label:e("Min"),attr:"min"})),r.default.createElement(o.PlotlySection,{name:e("Zoom Interactivity"),attr:"fixedrange"},r.default.createElement(o.Radio,{attr:"fixedrange",options:[{label:e("Enable"),value:!1},{label:e("Disable"),value:!0}]})),r.default.createElement(o.Dropdown,{label:e("Direction"),attr:"direction",options:[{label:e("Clockwise"),value:"clockwise"},{label:e("Counter Clockwise"),value:"counterclockwise"}],clearable:!1})),r.default.createElement(o.AxesFold,{name:e("Lines")},r.default.createElement(o.PlotlySection,{name:e("Axis Line"),attr:"showline"},r.default.createElement(o.VisibilitySelect,{attr:"showline",options:[{label:e("Show"),value:!0},{label:e("Hide"),value:!1}],showOn:!0,defaultOpt:!0},r.default.createElement(o.Numeric,{label:e("Thickness"),attr:"linewidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:e("Color"),attr:"linecolor"}),r.default.createElement(o.AxisSide,{label:e("Position"),attr:"side"}),r.default.createElement(o.Radio,{label:e("Mirror Axis"),attr:"mirror",options:[{label:e("On"),value:"ticks"},{label:e("Off"),value:!1}]}))),r.default.createElement(o.PlotlySection,{name:e("Grid Lines"),attr:"showgrid"},r.default.createElement(o.VisibilitySelect,{attr:"showgrid",options:[{label:e("Show"),value:!0},{label:e("Hide"),value:!1}],showOn:!0,defaultOpt:!0},r.default.createElement(o.Numeric,{label:e("Thickness"),attr:"gridwidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:e("Color"),attr:"gridcolor"}),r.default.createElement(o.Radio,{label:e("Position On"),attr:"tickson",options:[{label:e("Labels"),value:"labels"},{label:e("Boundaries"),value:"boundaries"}]}),r.default.createElement(o.Radio,{label:e("Grid Spacing"),attr:"tickmode",options:[{label:e("Auto"),value:"auto"},{label:e("Custom"),value:"linear"}]}),r.default.createElement(o.DTicks,{label:e("Step Offset"),attr:"tick0"}),r.default.createElement(o.DTicksInterval,{label:e("Step Size"),attr:"dtick"}),r.default.createElement(o.NTicks,{label:e("Max Number of Lines"),attr:"nticks"}))),r.default.createElement(o.PlotlySection,{name:e("Zero Line"),attr:"zeroline"},r.default.createElement(o.Radio,{attr:"zeroline",options:[{label:e("Show"),value:!0},{label:e("Hide"),value:!1}]}),r.default.createElement(o.Numeric,{label:e("Thickness"),attr:"zerolinewidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:e("Color"),attr:"zerolinecolor"})),r.default.createElement(o.PlotlySection,{name:e("Axis Background"),attr:"showbackground"},r.default.createElement(o.Radio,{attr:"showbackground",options:[{label:e("Show"),value:!0},{label:e("Hide"),value:!1}]}),r.default.createElement(o.ColorPicker,{label:e("Color"),attr:"backgroundcolor"}))),r.default.createElement(o.AxesFold,{name:e("Tick Labels"),axisFilter:function(e){return!e._subplot.includes("geo")}},r.default.createElement(o.PlotlySection,{name:e("Tick Labels"),attr:"showticklabels"},r.default.createElement(o.VisibilitySelect,{attr:"showticklabels",options:[{label:e("Show"),value:!0},{label:e("Hide"),value:!1}],showOn:!0,defaultOpt:!0},r.default.createElement(o.AxisSide,{label:e("Position"),attr:"side"}),r.default.createElement(o.Radio,{label:e("Auto margins"),attr:"automargin",options:[{label:e("True"),value:!0},{label:e("False"),value:!1}]}),r.default.createElement(o.Radio,{label:e("Position on"),attr:"tickson",options:[{label:e("Labels"),value:"labels"},{label:e("Boundaries"),value:"boundaries"}]}),r.default.createElement(o.FontSelector,{label:e("Typeface"),attr:"tickfont.family"}),r.default.createElement(o.Numeric,{label:e("Font Size"),attr:"tickfont.size",units:"px"}),r.default.createElement(o.ColorPicker,{label:e("Font Color"),attr:"tickfont.color"}),r.default.createElement(o.Dropdown,{label:e("Angle"),attr:"tickangle",clearable:!1,options:[{label:e("Auto"),value:"auto"},{label:e("45"),value:45},{label:e("90"),value:90},{label:e("135"),value:135},{label:e("180"),value:180}]}),r.default.createElement(o.TickFormat,{label:e("Label Format"),attr:"tickformat",dafaultOpt:"",clearable:!1}),r.default.createElement(o.Radio,{label:e("Separate Thousands"),attr:"separatethousands",options:[{label:e("True"),value:!0},{label:e("False"),value:!1}]}),r.default.createElement(o.Dropdown,{label:e("Exponents"),attr:"exponentformat",clearable:!1,options:[{label:e("None"),value:"none"},{label:e("e+6"),value:"e"},{label:e("E+6"),value:"E"},{label:e("x10^6"),value:"power"},{label:e("k/M/G"),value:"SI"},{label:e("k/M/B"),value:"B"}]}),r.default.createElement(o.Dropdown,{label:e("Show Exponents"),attr:"showexponent",clearable:!1,options:[{label:e("All"),value:"all"},{label:e("First"),value:"first"},{label:e("Last"),value:"last"},{label:e("None"),value:"none"}]}),r.default.createElement(o.DropdownCustom,{label:e("Prefix"),attr:"tickprefix",options:[{label:e("None"),value:""},{label:e("x"),value:"x"},{label:e("$"),value:"$"},{label:e("#"),value:"#"},{label:e("@"),value:"@"},{label:e("Custom"),value:"custom"}],customOpt:"custom",dafaultOpt:"",clearable:!1}),r.default.createElement(o.Dropdown,{label:e("Show Prefix"),attr:"showtickprefix",options:[{label:e("Every label"),value:"all"},{label:e("First label"),value:"first"},{label:e("Last label"),value:"last"},{label:e("None"),value:"none"}]}),r.default.createElement(o.DropdownCustom,{label:e("Suffix"),attr:"ticksuffix",options:[{label:e("None"),value:""},{label:e("C"),value:"C"},{label:e("%"),value:"%"},{label:e("^"),value:"^"},{label:e("Custom"),value:"custom"}],customOpt:"custom",dafaultOpt:"",clearable:!1}),r.default.createElement(o.Dropdown,{label:e("Show Suffix"),attr:"showticksuffix",options:[{label:e("Every label"),value:"all"},{label:e("First label"),value:"first"},{label:e("Last label"),value:"last"},{label:e("None"),value:"none"}]}),r.default.createElement(o.Radio,{label:e("Tick Spacing"),attr:"tickmode",options:[{label:e("Auto"),value:"auto"},{label:e("Custom"),value:"linear"}]}),r.default.createElement(o.DTicks,{label:e("Step Offset"),attr:"tick0"}),r.default.createElement(o.DTicksInterval,{label:e("Step Size"),attr:"dtick"}),r.default.createElement(o.NTicks,{label:e("Max Number of Labels"),attr:"nticks"})))),r.default.createElement(o.AxesFold,{name:e("Tick Markers"),axisFilter:function(e){return!e._subplot.includes("geo")}},r.default.createElement(o.PlotlySection,{name:e("Tick Markers"),attr:"ticks"},r.default.createElement(o.VisibilitySelect,{attr:"ticks",options:[{label:e("Inside"),value:"inside"},{label:e("Outside"),value:"outside"},{label:e("Hide"),value:""}],showOn:["inside","outside"],defaultOpt:"Outside"},r.default.createElement(o.AxisSide,{label:e("Position"),attr:"side"}),r.default.createElement(o.Radio,{label:e("Position on"),attr:"tickson",options:[{label:e("Labels"),value:"labels"},{label:e("Boundaries"),value:"boundaries"}]}),r.default.createElement(o.Numeric,{label:e("Length"),attr:"ticklen",units:"px"}),r.default.createElement(o.Numeric,{label:e("Width"),attr:"tickwidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:e("Color"),attr:"tickcolor"}),r.default.createElement(o.Radio,{label:e("Tick Spacing"),attr:"tickmode",options:[{label:e("Auto"),value:"auto"},{label:e("Custom"),value:"linear"}]}),r.default.createElement(o.DTicks,{label:e("Step Offset"),attr:"tick0"}),r.default.createElement(o.DTicksInterval,{label:e("Step Size"),attr:"dtick"}),r.default.createElement(o.NTicks,{label:e("Max Number of Markers"),attr:"nticks"}))),r.default.createElement(o.PlotlySection,{name:e("Multicategory Dividers"),attr:"showdividers"},r.default.createElement(o.VisibilitySelect,{attr:"showdividers",options:[{label:e("Show"),value:!0},{label:e("Hide"),value:!1}],showOn:!0},r.default.createElement(o.Numeric,{label:e("Width"),attr:"dividerwidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:e("Color"),attr:"dividercolor"})))),r.default.createElement(o.AxesFold,{name:e("Range Slider"),axisFilter:function(e){return e._subplot.includes("xaxis")}},r.default.createElement(o.RangesliderVisible,{attr:"rangeslider.visible",options:[{label:e("Show"),value:!0},{label:e("Hide"),value:!1}]}),r.default.createElement(o.NumericFraction,{label:e("Height"),attr:"rangeslider.thickness"}),r.default.createElement(o.ColorPicker,{label:e("Background Color"),attr:"rangeslider.bgcolor"}),r.default.createElement(o.Numeric,{label:e("Border Width"),attr:"rangeslider.borderwidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:e("Border Color"),attr:"rangeslider.bordercolor"})),r.default.createElement(o.AxesFold,{name:e("Timescale Buttons"),axisFilter:function(e){return e._subplot.includes("xaxis")&&"date"===e.type}},r.default.createElement(o.Radio,{attr:"rangeselector.visible",options:[{label:e("Show"),value:!0},{label:e("Hide"),value:!1}]}),r.default.createElement(o.RangeSelectorAccordion,null,r.default.createElement(o.TextEditor,{attr:"label",label:e("Label"),show:!0}),r.default.createElement(o.Numeric,{label:e("Count"),attr:"count"}),r.default.createElement(o.Dropdown,{label:e("Step"),attr:"step",clearable:!1,options:[{label:e("Year"),value:"year"},{label:e("Month"),value:"month"},{label:e("Day"),value:"day"},{label:e("Hour"),value:"hour"},{label:e("Minute"),value:"minute"},{label:e("Second"),value:"second"},{label:e("All"),value:"all"}]}),r.default.createElement(o.Dropdown,{label:e("Stepmode"),attr:"stepmode",clearable:!1,options:[{label:e("To Date"),value:"todate"},{label:e("Backward"),value:"backward"}]})),r.default.createElement(o.PlotlySection,{name:e("Text")},r.default.createElement(o.FontSelector,{label:e("Typeface"),attr:"rangeselector.font.family"}),r.default.createElement(o.Numeric,{label:e("Font Size"),attr:"rangeselector.font.size",units:"px"}),r.default.createElement(o.ColorPicker,{label:e("Font Color"),attr:"rangeselector.font.color"})),r.default.createElement(o.PlotlySection,{name:e("Style")},r.default.createElement(o.ColorPicker,{label:e("Background Color"),attr:"rangeselector.bgcolor"}),r.default.createElement(o.ColorPicker,{label:e("Active Color"),attr:"rangeselector.activecolor"}),r.default.createElement(o.Numeric,{label:e("Border Width"),attr:"rangeselector.borderwidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:e("Border Color"),attr:"rangeselector.bordercolor"})),r.default.createElement(o.PlotlySection,{name:e("Horizontal Positioning")},r.default.createElement(o.Dropdown,{label:e("Anchor Point"),clearable:!1,attr:"rangeselector.xanchor",options:[{label:e("Auto"),value:"auto"},{label:e("Left"),value:"left"},{label:e("Center"),value:"center"},{label:e("Right"),value:"right"}]}),r.default.createElement(o.Numeric,{label:e("Position"),step:.02,attr:"rangeselector.x"})),r.default.createElement(o.PlotlySection,{name:e("Vertical Positioning")},r.default.createElement(o.Dropdown,{label:e("Anchor Point"),clearable:!1,attr:"rangeselector.yanchor",options:[{label:e("Auto"),value:"auto"},{label:e("Top"),value:"top"},{label:e("Middle"),value:"middle"},{label:e("Bottom"),value:"bottom"}]}),r.default.createElement(o.Numeric,{label:e("Position"),step:.02,attr:"rangeselector.y"}))),r.default.createElement(o.AxesFold,{name:e("Spike Lines"),axisFilter:function(e){return!(e._subplot.includes("ternary")||e._subplot.includes("polar")||e._subplot.includes("geo"))}},r.default.createElement(o.Radio,{attr:"showspikes",options:[{label:e("Show"),value:!0},{label:e("Hide"),value:!1}]}),r.default.createElement(o.Radio,{attr:"spikesides",label:e("Show Sides"),options:[{label:e("Show"),value:!0},{label:e("Hide"),value:!1}]}),r.default.createElement(o.Numeric,{label:e("Thickness"),attr:"spikethickness",units:"px"}),r.default.createElement(o.ColorPicker,{label:e("Color"),attr:"spikecolor"})))}}]),n}(r.Component);x.contextTypes={fullLayout:a.default.object,localize:a.default.func};var _=x;t.default=_},5319:function(e,t,n){"use strict";var r=n("d784"),a=n("825a"),o=n("7b0b"),i=n("50c4"),l=n("a691"),s=n("1d80"),u=n("8aa5"),c=n("14c3"),f=Math.max,p=Math.min,d=Math.floor,h=/\$([$&'`]|\d\d?|<[^>]*>)/g,v=/\$([$&'`]|\d\d?)/g,m=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var y=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,g=r.REPLACE_KEEPS_$0,b=y?"$":"$0";return[function(n,r){var a=s(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,a,r):t.call(String(a),n,r)},function(e,r){if(!y&&g||"string"===typeof r&&-1===r.indexOf(b)){var o=n(t,e,this,r);if(o.done)return o.value}var s=a(e),d=String(this),h="function"===typeof r;h||(r=String(r));var v=s.global;if(v){var _=s.unicode;s.lastIndex=0}var w=[];while(1){var k=c(s,d);if(null===k)break;if(w.push(k),!v)break;var T=String(k[0]);""===T&&(s.lastIndex=u(d,i(s.lastIndex),_))}for(var E="",O=0,M=0;M<w.length;M++){k=w[M];for(var S=String(k[0]),C=f(p(l(k.index),d.length),0),A=[],P=1;P<k.length;P++)A.push(m(k[P]));var L=k.groups;if(h){var D=[S].concat(A,C,d);void 0!==L&&D.push(L);var j=String(r.apply(void 0,D))}else j=x(S,d,C,A,L,r);C>=O&&(E+=d.slice(O,C)+j,O=C+S.length)}return E+d.slice(O)}];function x(e,n,r,a,i,l){var s=r+e.length,u=a.length,c=v;return void 0!==i&&(i=o(i),c=h),t.call(l,c,(function(t,o){var l;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(s);case"<":l=i[o.slice(1,-1)];break;default:var c=+o;if(0===c)return t;if(c>u){var f=d(c/10);return 0===f?t:f<=u?void 0===a[f-1]?o.charAt(1):a[f-1]+o.charAt(1):t}l=a[c-1]}return void 0===l?"":l}))}}))},"53ce":function(e,t,n){"use strict";var r=n("772c"),a=n("8cb4"),o=a.strlen;function i(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(a,i){var l=e.getText(),s=e.getEntityAt(a);n.push({offset:o(l.slice(0,a)),length:o(l.slice(a,i)),key:Number(t[r.stringify(s)])})})),n}e.exports=i},5422:function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function a(e){function t(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}this.setState(t.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function i(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!==typeof e.getDerivedStateFromProps&&"function"!==typeof t.getSnapshotBeforeUpdate)return e;var n=null,i=null,l=null;if("function"===typeof t.componentWillMount?n="componentWillMount":"function"===typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"===typeof t.componentWillReceiveProps?i="componentWillReceiveProps":"function"===typeof t.UNSAFE_componentWillReceiveProps&&(i="UNSAFE_componentWillReceiveProps"),"function"===typeof t.componentWillUpdate?l="componentWillUpdate":"function"===typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==n||null!==i||null!==l){var s=e.displayName||e.name,u="function"===typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+u+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==i?"\n "+i:"")+(null!==l?"\n "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"===typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=a),"function"===typeof t.getSnapshotBeforeUpdate){if("function"!==typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var c=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;c.call(this,e,t,r)}}return e}n.r(t),n.d(t,"polyfill",(function(){return i})),r.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},"543f":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M5,3C3.89,3 3,3.89 3,5V19C3,20.11 3.89,21 5,21H11V3M13,3V11H21V5C21,3.89 20.11,3 19,3M13,13V21H19C20.11,21 21,20.11 21,19V13"}))};e.exports=l},"54b1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n("ab5b")),a=l(n("d7bc")),o=n("c85e"),i=n("e419");function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t){var n=t.localize;return r.default.createElement(o.SubplotAccordion,null,r.default.createElement(o.PlotlySection,{name:n("Boundaries"),attr:"xaxis.domain[0]"},r.default.createElement(o.AxisOverlayDropdown,{label:n("X Overlay"),attr:"xaxis.overlaying"}),r.default.createElement(o.AxisOverlayDropdown,{label:n("Y Overlay"),attr:"yaxis.overlaying"})),r.default.createElement(o.RectanglePositioner,{attr:"domain.x[0]"}),r.default.createElement(o.RectanglePositioner,{attr:"xaxis.domain[0]",cartesian:!0}),r.default.createElement(o.TraceTypeSection,{name:n("X Anchor"),traceTypes:i.TRACE_TO_AXIS.cartesian},r.default.createElement(o.AxisAnchorDropdown,{label:n("Anchor to"),attr:"xaxis.anchor",clearable:!1}),r.default.createElement(o.AxisSide,{label:n("Side"),attr:"xaxis.side"})),r.default.createElement(o.TraceTypeSection,{name:n("Y Anchor"),traceTypes:i.TRACE_TO_AXIS.cartesian},r.default.createElement(o.AxisAnchorDropdown,{label:n("Anchor to"),attr:"yaxis.anchor",clearable:!1}),r.default.createElement(o.AxisSide,{label:n("Side"),attr:"yaxis.side"})),r.default.createElement(o.PlotlySection,{name:n("Aspect Ratio")},r.default.createElement(o.VisibilitySelect,{attr:"aspectmode",options:[{label:n("Auto"),value:"mode"},{label:n("Cube"),value:"cube"},{label:n("Data"),value:"data"},{label:n("Manual"),value:"manual"}],dropdown:!0,clearable:!1,showOn:"manual",defaultOpt:"mode"},r.default.createElement(o.Numeric,{label:n("X"),attr:"aspectratio.x",step:.1}),r.default.createElement(o.Numeric,{label:n("Y"),attr:"aspectratio.y",step:.1}),r.default.createElement(o.Numeric,{label:n("Z"),attr:"aspectratio.z",step:.1}))),r.default.createElement(o.PlotlySection,{name:n("Projection")},r.default.createElement(o.Dropdown,{label:n("Type"),attr:"camera.projection.type",options:[{label:n("Perspective"),value:"perspective"},{label:n("Orthographic"),value:"orthographic"}],clearable:!1})),r.default.createElement(o.PlotlySection,{name:n("Canvas")},r.default.createElement(o.ColorPicker,{label:n("Plot Background"),attr:"bgcolor"})),r.default.createElement(o.PlotlySection,{name:n("Bar Options")},r.default.createElement(o.Radio,{label:n("Bar Mode"),attr:"barmode",options:[{label:n("Stack"),value:"stack"},{label:n("Overlay"),value:"overlay"}]}),r.default.createElement(o.NumericFraction,{label:n("Bar Padding"),attr:"bargap",showSlider:!0})),r.default.createElement(o.PlotlySection,{name:n("Ternary")},r.default.createElement(o.Numeric,{label:n("Sum"),attr:"sum"})),r.default.createElement(o.PlotlySection,{name:n("Polar Sector")},r.default.createElement(o.Numeric,{label:n("Min"),attr:"sector[0]",min:-360,max:360,showSlider:!0}),r.default.createElement(o.Numeric,{label:n("Max"),attr:"sector[1]",min:-360,max:360,showSlider:!0}),r.default.createElement(o.NumericFraction,{label:n("Hole"),attr:"hole",min:0,max:100,showSlider:!0})))};s.contextTypes={localize:a.default.func};var u=s;t.default=u},"54d8":function(e,t,n){"use strict";e.exports=function(e){for(var t={},n=[],r=0,a=0;a<e.length;a++){var o=e[a];1!==t[o]&&(t[o]=1,n[r++]=o)}return n}},"54e7":function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"===typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},"54eb":function(e,t,n){var r=n("8eeb"),a=n("32f4");function o(e,t){return r(e,a(e),t)}e.exports=o},"551e":function(e,t,n){"use strict";var r=n("6e58"),a=n("f6a4");function o(e){var t;if("string"===typeof e){if(t=document.getElementById(e),null===t)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}if(null===e||void 0===e)throw new Error("DOM element provided is null or undefined");return e}function i(e){var t=r.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function l(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function s(e,t){u("global",e,t)}function u(e,t,n){var r="plotly.js-style-"+e,o=document.getElementById(r);o||(o=document.createElement("style"),o.setAttribute("id",r),o.appendChild(document.createTextNode("")),document.head.appendChild(o));var i=o.sheet;i.insertRule?i.insertRule(t+"{"+n+"}",0):i.addRule?i.addRule(t,n,0):a.warn("addStyleRule failed")}function c(e){var t="plotly.js-style-"+e,n=document.getElementById(t);n&&l(n)}e.exports={getGraphDiv:o,isPlotDiv:i,removeElement:l,addStyleRule:s,addRelatedStyleRule:u,deleteRelatedStyleRule:c}},5529:function(e,t,n){"use strict";var r,a=n("23c3"),o=n("24f7"),i=n("8164"),l=o.OrderedMap,s={getDirectionMap:function(e,t){r?r.reset():r=new a;var n=e.getBlockMap(),s=n.valueSeq().map((function(e){return i(r).getDirection(e.getText())})),u=l(n.keySeq().zip(s));return null!=t&&o.is(t,u)?t:u}};e.exports=s},5530:function(e,t,n){"use strict";var r=n("24be"),a=function(e,t){var n=e instanceof r;if(!n)return null;var a=e.getNextSiblingKey();if(a)return a;var o=e.getParentKey();if(!o)return null;var i=t.get(o);while(i&&!i.getNextSiblingKey()){var l=i.getParentKey();i=l?t.get(l):null}return i?i.getNextSiblingKey():null};e.exports=a},55304:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("a4d3"),n("4de4"),n("4160"),n("e439"),n("dbb4"),n("b64b"),n("159b");var r=n("ade3");function a(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 o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){Object(r["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},5559:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n){var r=n.getBoundingClientRect(),a=r.width,o=r.height,i="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(n.getBoundingClientRect().left+window.pageXOffset),u=l-(n.getBoundingClientRect().top+window.pageYOffset);s<0?s=0:s>a&&(s=a),u<0?u=0:u>o&&(u=o);var c=s/a,f=1-u/o;return{h:t.h,s:c,v:f,a:t.a,source:"hsv"}}},"558b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hover=void 0;var r=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},a=n("ab5b"),o=i(a);function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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}function u(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)}var c=t.hover=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function a(){var n,i,u,c;l(this,a);for(var f=arguments.length,p=Array(f),d=0;d<f;d++)p[d]=arguments[d];return u=s(this,(n=a.__proto__||Object.getPrototypeOf(a)).call.apply(n,[this].concat(p))),i=u,u.state={hover:!1},u.handleMouseOver=function(){return u.setState({hover:!0})},u.handleMouseOut=function(){return u.setState({hover:!1})},u.render=function(){return o.default.createElement(t,{onMouseOver:u.handleMouseOver,onMouseOut:u.handleMouseOut},o.default.createElement(e,r({},u.props,u.state)))},c=i,s(u,c)}return u(a,n),a}(o.default.Component)};t.default=c},"55a3":function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},"55f8":function(e,t,n){"use strict";t.init2dArray=function(e,t){for(var n=new Array(e),r=0;r<e;r++)n[r]=new Array(t);return n},t.transposeRagged=function(e){var t,n,r=0,a=e.length;for(t=0;t<a;t++)r=Math.max(r,e[t].length);var o=new Array(r);for(t=0;t<r;t++)for(o[t]=new Array(a),n=0;n<a;n++)o[t][n]=e[n][t];return o},t.dot=function(e,n){if(!e.length||!n.length||e.length!==n.length)return null;var r,a,o=e.length;if(e[0].length)for(r=new Array(o),a=0;a<o;a++)r[a]=t.dot(e[a],n);else if(n[0].length){var i=t.transposeRagged(n);for(r=new Array(i.length),a=0;a<i.length;a++)r[a]=t.dot(e,i[a])}else for(r=0,a=0;a<o;a++)r+=e[a]*n[a];return r},t.translationMatrix=function(e,t){return[[1,0,e],[0,1,t],[0,0,1]]},t.rotationMatrix=function(e){var t=e*Math.PI/180;return[[Math.cos(t),-Math.sin(t),0],[Math.sin(t),Math.cos(t),0],[0,0,1]]},t.rotationXYMatrix=function(e,n,r){return t.dot(t.dot(t.translationMatrix(n,r),t.rotationMatrix(e)),t.translationMatrix(-n,-r))},t.apply2DTransform=function(e){return function(){var n=arguments;3===n.length&&(n=n[0]);var r=1===arguments.length?n[0]:[n[0],n[1]];return t.dot(e,[r[0],r[1],1]).slice(0,2)}},t.apply2DTransform2=function(e){var n=t.apply2DTransform(e);return function(e){return n(e.slice(0,2)).concat(n(e.slice(2,4)))}}},"562c":function(e,t,n){"use strict";function r(e){return 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},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"RadioBlocks",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"DateTimePicker",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"TraceTypeSelector",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"TraceTypeSelectorButton",{enumerable:!0,get:function(){return l.TraceTypeSelectorButton}});var a=c(n("ad9c")),o=c(n("37cc")),i=c(n("e433")),l=u(n("04e9"));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}},5679:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3C8.03,3 4,7.03 4,12H1L4.96,16.03L9,12H6C6,8.13 9.13,5 13,5C16.87,5 20,8.13 20,12C20,15.87 16.87,19 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21C17.97,21 22,16.97 22,12C22,7.03 17.97,3 13,3"}))};e.exports=l},5692:function(e,t,n){var r=n("c430"),a=n("c6cd");(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56b3":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),i=r||a||o,l=i&&(r?document.documentMode||6:+(o||a)[1]),s=!o&&/WebKit\//.test(e),u=s&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\//.test(e),f=/Opera\//.test(e),p=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),v=!o&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),m=/Android/.test(e),y=v||m||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),g=v||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),_=f&&e.match(/Version\/(\d*\.\d*)/);_&&(_=Number(_[1])),_&&_>=15&&(f=!1,s=!0);var w=g&&(u||f&&(null==_||_<12.11)),k=n||i&&l>=9;function T(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E,O=function(e,t){var n=e.className,r=T(t).exec(n);if(r){var a=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(a?r[1]+a:"")}};function M(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function S(e,t){return M(e).appendChild(t)}function C(e,t,n,r){var a=document.createElement(e);if(n&&(a.className=n),r&&(a.style.cssText=r),"string"==typeof t)a.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)a.appendChild(t[o]);return a}function A(e,t,n,r){var a=C(e,t,n,r);return a.setAttribute("role","presentation"),a}function P(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function L(){var e;try{e=document.activeElement}catch(t){e=document.body||null}while(e&&e.shadowRoot&&e.shadowRoot.activeElement)e=e.shadowRoot.activeElement;return e}function D(e,t){var n=e.className;T(t).test(n)||(e.className+=(n?" ":"")+t)}function j(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!T(n[r]).test(t)&&(t+=" "+n[r]);return t}E=document.createRange?function(e,t,n,r){var a=document.createRange();return a.setEnd(r||e,n),a.setStart(e,t),a}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(a){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var I=function(e){e.select()};function R(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function z(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function N(e,t,n,r,a){null==t&&(t=e.search(/[^\s\u00a0]/),-1==t&&(t=e.length));for(var o=r||0,i=a||0;;){var l=e.indexOf("\t",o);if(l<0||l>=t)return i+(t-o);i+=l-o,i+=n-i%n,o=l+1}}v?I=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:i&&(I=function(e){try{e.select()}catch(t){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=R(this.onTimeout,this)};function B(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}F.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},F.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var V=50,H={toString:function(){return"CodeMirror.Pass"}},U={scroll:!1},W={origin:"*mouse"},q={origin:"+move"};function $(e,t,n){for(var r=0,a=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var i=o-r;if(o==e.length||a+i>=t)return r+Math.min(i,t-a);if(a+=o-r,a+=n-a%n,r=o+1,a>=t)return r}}var G=[""];function Y(e){while(G.length<=e)G.push(K(G)+" ");return G[e]}function K(e){return e[e.length-1]}function X(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function Z(e,t,n){var r=0,a=n(t);while(r<e.length&&n(e[r])<=a)r++;e.splice(r,0,t)}function J(){}function Q(e,t){var n;return Object.create?n=Object.create(e):(J.prototype=e,n=new J),t&&z(t,n),n}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function te(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||ee.test(e))}function ne(e,t){return t?!!(t.source.indexOf("\\w")>-1&&te(e))||t.test(e):te(e)}function re(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ae=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function oe(e){return e.charCodeAt(0)>=768&&ae.test(e)}function ie(e,t,n){while((n<0?t>0:t<e.length)&&oe(e.charAt(t)))t+=n;return t}function le(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var a=(t+n)/2,o=r<0?Math.ceil(a):Math.floor(a);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function se(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var a=!1,o=0;o<e.length;++o){var i=e[o];(i.from<n&&i.to>t||t==n&&i.to==t)&&(r(Math.max(i.from,t),Math.min(i.to,n),1==i.level?"rtl":"ltr",o),a=!0)}a||r(t,n,"ltr")}var ue=null;function ce(e,t,n){var r;ue=null;for(var a=0;a<e.length;++a){var o=e[a];if(o.from<t&&o.to>t)return a;o.to==t&&(o.from!=o.to&&"before"==n?r=a:ue=a),o.from==t&&(o.from!=o.to&&"before"!=n?r=a:ue=a)}return null!=r?r:ue}var fe=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,a=/[stwN]/,o=/[LRr]/,i=/[Lb1n]/,l=/[1n]/;function s(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,f=[],p=0;p<c;++p)f.push(n(e.charCodeAt(p)));for(var d=0,h=u;d<c;++d){var v=f[d];"m"==v?f[d]=h:h=v}for(var m=0,y=u;m<c;++m){var g=f[m];"1"==g&&"r"==y?f[m]="n":o.test(g)&&(y=g,"r"==g&&(f[m]="R"))}for(var b=1,x=f[0];b<c-1;++b){var _=f[b];"+"==_&&"1"==x&&"1"==f[b+1]?f[b]="1":","!=_||x!=f[b+1]||"1"!=x&&"n"!=x||(f[b]=x),x=_}for(var w=0;w<c;++w){var k=f[w];if(","==k)f[w]="N";else if("%"==k){var T=void 0;for(T=w+1;T<c&&"%"==f[T];++T);for(var E=w&&"!"==f[w-1]||T<c&&"1"==f[T]?"1":"N",O=w;O<T;++O)f[O]=E;w=T-1}}for(var M=0,S=u;M<c;++M){var C=f[M];"L"==S&&"1"==C?f[M]="L":o.test(C)&&(S=C)}for(var A=0;A<c;++A)if(a.test(f[A])){var P=void 0;for(P=A+1;P<c&&a.test(f[P]);++P);for(var L="L"==(A?f[A-1]:u),D="L"==(P<c?f[P]:u),j=L==D?L?"L":"R":u,I=A;I<P;++I)f[I]=j;A=P-1}for(var R,z=[],N=0;N<c;)if(i.test(f[N])){var F=N;for(++N;N<c&&i.test(f[N]);++N);z.push(new s(0,F,N))}else{var B=N,V=z.length,H="rtl"==t?1:0;for(++N;N<c&&"L"!=f[N];++N);for(var U=B;U<N;)if(l.test(f[U])){B<U&&(z.splice(V,0,new s(1,B,U)),V+=H);var W=U;for(++U;U<N&&l.test(f[U]);++U);z.splice(V,0,new s(2,W,U)),V+=H,B=U}else++U;B<N&&z.splice(V,0,new s(1,B,N))}return"ltr"==t&&(1==z[0].level&&(R=e.match(/^\s+/))&&(z[0].from=R[0].length,z.unshift(new s(0,0,R[0].length))),1==K(z).level&&(R=e.match(/\s+$/))&&(K(z).to-=R[0].length,z.push(new s(0,c-R[0].length,c)))),"rtl"==t?z.reverse():z}}();function pe(e,t){var n=e.order;return null==n&&(n=e.order=fe(e.text,t)),n}var de=[],he=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||de).concat(n)}};function ve(e,t){return e._handlers&&e._handlers[t]||de}function me(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,a=r&&r[t];if(a){var o=B(a,n);o>-1&&(r[t]=a.slice(0,o).concat(a.slice(o+1)))}}}function ye(e,t){var n=ve(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),a=0;a<n.length;++a)n[a].apply(null,r)}function ge(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),ye(e,n||t.type,e,t),Te(t)||t.codemirrorIgnore}function be(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==B(n,t[r])&&n.push(t[r])}function xe(e,t){return ve(e,t).length>0}function _e(e){e.prototype.on=function(e,t){he(this,e,t)},e.prototype.off=function(e,t){me(this,e,t)}}function we(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function ke(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Te(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ee(e){we(e),ke(e)}function Oe(e){return e.target||e.srcElement}function Me(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),g&&e.ctrlKey&&1==t&&(t=3),t}var Se,Ce,Ae=function(){if(i&&l<9)return!1;var e=C("div");return"draggable"in e||"dragDrop"in e}();function Pe(e){if(null==Se){var t=C("span","");S(e,C("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Se=t.offsetWidth<=1&&t.offsetHeight>2&&!(i&&l<8))}var n=Se?C("span",""):C("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Le(e){if(null!=Ce)return Ce;var t=S(e,document.createTextNode("AخA")),n=E(t,0,1).getBoundingClientRect(),r=E(t,1,2).getBoundingClientRect();return M(e),!(!n||n.left==n.right)&&(Ce=r.right-n.right<3)}var De=3!="\n\nb".split(/\n/).length?function(e){var t=0,n=[],r=e.length;while(t<=r){var a=e.indexOf("\n",t);-1==a&&(a=e.length);var o=e.slice(t,"\r"==e.charAt(a-1)?a-1:a),i=o.indexOf("\r");-1!=i?(n.push(o.slice(0,i)),t+=i+1):(n.push(o),t=a+1)}return n}:function(e){return e.split(/\r\n?|\n/)},je=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie=function(){var e=C("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Re=null;function ze(e){if(null!=Re)return Re;var t=S(e,C("span","x")),n=t.getBoundingClientRect(),r=E(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-r.left)>1}var Ne={},Fe={};function Be(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Ne[e]=t}function Ve(e,t){Fe[e]=t}function He(e){if("string"==typeof e&&Fe.hasOwnProperty(e))e=Fe[e];else if(e&&"string"==typeof e.name&&Fe.hasOwnProperty(e.name)){var t=Fe[e.name];"string"==typeof t&&(t={name:t}),e=Q(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return He("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return He("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ue(e,t){t=He(t);var n=Ne[t.name];if(!n)return Ue(e,"text/plain");var r=n(e,t);if(We.hasOwnProperty(t.name)){var a=We[t.name];for(var o in a)a.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=a[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var i in t.modeProps)r[i]=t.modeProps[i];return r}var We={};function qe(e,t){var n=We.hasOwnProperty(e)?We[e]:We[e]={};z(t,n)}function $e(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var a=t[r];a instanceof Array&&(a=a.concat([])),n[r]=a}return n}function Ge(e,t){var n;while(e.innerMode){if(n=e.innerMode(t),!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}}function Ye(e,t,n){return!e.startState||e.startState(t,n)}var Ke=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Xe(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var r=0;;++r){var a=n.children[r],o=a.chunkSize();if(t<o){n=a;break}t-=o}return n.lines[t]}function Ze(e,t,n){var r=[],a=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;a==n.line&&(o=o.slice(0,n.ch)),a==t.line&&(o=o.slice(t.ch)),r.push(o),++a})),r}function Je(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Qe(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function et(e){if(null==e.parent)return null;for(var t=e.parent,n=B(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var a=0;;++a){if(r.children[a]==t)break;n+=r.children[a].chunkSize()}return n+t.first}function tt(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var a=e.children[r],o=a.height;if(t<o){e=a;continue e}t-=o,n+=a.chunkSize()}return n}while(!e.lines);for(var i=0;i<e.lines.length;++i){var l=e.lines[i],s=l.height;if(t<s)break;t-=s}return n+i}function nt(e,t){return t>=e.first&&t<e.first+e.size}function rt(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function at(e,t,n){if(void 0===n&&(n=null),!(this instanceof at))return new at(e,t,n);this.line=e,this.ch=t,this.sticky=n}function ot(e,t){return e.line-t.line||e.ch-t.ch}function it(e,t){return e.sticky==t.sticky&&0==ot(e,t)}function lt(e){return at(e.line,e.ch)}function st(e,t){return ot(e,t)<0?t:e}function ut(e,t){return ot(e,t)<0?e:t}function ct(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function ft(e,t){if(t.line<e.first)return at(e.first,0);var n=e.first+e.size-1;return t.line>n?at(n,Xe(e,n).text.length):pt(t,Xe(e,t.line).text.length)}function pt(e,t){var n=e.ch;return null==n||n>t?at(e.line,t):n<0?at(e.line,0):e}function dt(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=ft(e,t[r]);return n}Ke.prototype.eol=function(){return this.pos>=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ke.prototype.eat=function(e){var t,n=this.string.charAt(this.pos);if(t="string"==typeof e?n==e:n&&(e.test?e.test(n):e(n)),t)return++this.pos,n},Ke.prototype.eatWhile=function(e){var t=this.pos;while(this.eat(e));return this.pos>t},Ke.prototype.eatSpace=function(){var e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ke.prototype.backUp=function(e){this.pos-=e},Ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=N(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?N(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.indentation=function(){return N(this.string,null,this.tabSize)-(this.lineStart?N(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var a=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(a(o)==a(e))return!1!==t&&(this.pos+=e.length),!0},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ke.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ke.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ht=function(e,t){this.state=e,this.lookAhead=t},vt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function mt(e,t,n,r){var a=[e.state.modeGen],o={};Et(e,t.text,e.doc.mode,n,(function(e,t){return a.push(e,t)}),o,r);for(var i=n.state,l=function(r){n.baseTokens=a;var l=e.state.overlays[r],s=1,u=0;n.state=!0,Et(e,t.text,l.mode,n,(function(e,t){var n=s;while(u<e){var r=a[s];r>e&&a.splice(s,1,e,a[s+1],r),s+=2,u=Math.min(e,r)}if(t)if(l.opaque)a.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;n<s;n+=2){var o=a[n+1];a[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=i,n.baseTokens=null,n.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)l(s);return{styles:a,classes:o.bgClass||o.textClass?o:null}}function yt(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=gt(e,et(t)),a=t.text.length>e.options.maxHighlightLength&&$e(e.doc.mode,r.state),o=mt(e,t,r);a&&(r.state=a),t.stateAfter=r.save(!a),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function gt(e,t,n){var r=e.doc,a=e.display;if(!r.mode.startState)return new vt(r,!0,t);var o=Ot(e,t,n),i=o>r.first&&Xe(r,o-1).stateAfter,l=i?vt.fromSaved(r,i,o):new vt(r,Ye(r.mode),o);return r.iter(o,t,(function(n){bt(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=a.viewFrom&&r<a.viewTo?l.save():null,l.nextLine()})),n&&(r.modeFrontier=l.line),l}function bt(e,t,n,r){var a=e.doc.mode,o=new Ke(t,e.options.tabSize,n);o.start=o.pos=r||0,""==t&&xt(a,n.state);while(!o.eol())_t(a,o,n.state),o.start=o.pos}function xt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ge(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function _t(e,t,n,r){for(var a=0;a<10;a++){r&&(r[0]=Ge(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}vt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},vt.prototype.baseToken=function(e){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},vt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vt.fromSaved=function(e,t,n){return t instanceof ht?new vt(e,$e(e.mode,t.state),n,t.lookAhead):new vt(e,$e(e.mode,t),n)},vt.prototype.save=function(e){var t=!1!==e?$e(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ht(t,this.maxLookAhead):t};var wt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function kt(e,t,n,r){var a,o=e.doc,i=o.mode;t=ft(o,t);var l,s=Xe(o,t.line),u=gt(e,t.line,n),c=new Ke(s.text,e.options.tabSize,u);r&&(l=[]);while((r||c.pos<t.ch)&&!c.eol())c.start=c.pos,a=_t(i,c,u.state),r&&l.push(new wt(c,a,$e(o.mode,u.state)));return r?l:new wt(c,a,u.state)}function Tt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function Et(e,t,n,r,a,o,i){var l=n.flattenSpans;null==l&&(l=e.options.flattenSpans);var s,u=0,c=null,f=new Ke(t,e.options.tabSize,r),p=e.options.addModeClass&&[null];""==t&&Tt(xt(n,r.state),o);while(!f.eol()){if(f.pos>e.options.maxHighlightLength?(l=!1,i&&bt(e,t,r,f.pos),f.pos=t.length,s=null):s=Tt(_t(n,f,r.state,p),o),p){var d=p[0].name;d&&(s="m-"+(s?d+" "+s:d))}if(!l||c!=s){while(u<f.start)u=Math.min(f.start,u+5e3),a(u,c);c=s}f.start=f.pos}while(u<f.pos){var h=Math.min(f.pos,u+5e3);a(h,c),u=h}}function Ot(e,t,n){for(var r,a,o=e.doc,i=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>i;--l){if(l<=o.first)return o.first;var s=Xe(o,l-1),u=s.stateAfter;if(u&&(!n||l+(u instanceof ht?u.lookAhead:0)<=o.modeFrontier))return l;var c=N(s.text,null,e.options.tabSize);(null==a||r>c)&&(a=l-1,r=c)}return a}function Mt(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var a=Xe(e,r).stateAfter;if(a&&(!(a instanceof ht)||r+a.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}var St=!1,Ct=!1;function At(){St=!0}function Pt(){Ct=!0}function Lt(e,t,n){this.marker=e,this.from=t,this.to=n}function Dt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function jt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function It(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Rt(e,t,n){var r;if(e)for(var a=0;a<e.length;++a){var o=e[a],i=o.marker,l=null==o.from||(i.inclusiveLeft?o.from<=t:o.from<t);if(l||o.from==t&&"bookmark"==i.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(i.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new Lt(i,o.from,s?null:o.to))}}return r}function zt(e,t,n){var r;if(e)for(var a=0;a<e.length;++a){var o=e[a],i=o.marker,l=null==o.to||(i.inclusiveRight?o.to>=t:o.to>t);if(l||o.from==t&&"bookmark"==i.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(i.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new Lt(i,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}function Nt(e,t){if(t.full)return null;var n=nt(e,t.from.line)&&Xe(e,t.from.line).markedSpans,r=nt(e,t.to.line)&&Xe(e,t.to.line).markedSpans;if(!n&&!r)return null;var a=t.from.ch,o=t.to.ch,i=0==ot(t.from,t.to),l=Rt(n,a,i),s=zt(r,o,i),u=1==t.text.length,c=K(t.text).length+(u?a:0);if(l)for(var f=0;f<l.length;++f){var p=l[f];if(null==p.to){var d=Dt(s,p.marker);d?u&&(p.to=null==d.to?null:d.to+c):p.to=a}}if(s)for(var h=0;h<s.length;++h){var v=s[h];if(null!=v.to&&(v.to+=c),null==v.from){var m=Dt(l,v.marker);m||(v.from=c,u&&(l||(l=[])).push(v))}else v.from+=c,u&&(l||(l=[])).push(v)}l&&(l=Ft(l)),s&&s!=l&&(s=Ft(s));var y=[l];if(!u){var g,b=t.text.length-2;if(b>0&&l)for(var x=0;x<l.length;++x)null==l[x].to&&(g||(g=[])).push(new Lt(l[x].marker,null,null));for(var _=0;_<b;++_)y.push(g);y.push(s)}return y}function Ft(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function Bt(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=B(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var a=[{from:t,to:n}],o=0;o<r.length;++o)for(var i=r[o],l=i.find(0),s=0;s<a.length;++s){var u=a[s];if(!(ot(u.to,l.from)<0||ot(u.from,l.to)>0)){var c=[s,1],f=ot(u.from,l.from),p=ot(u.to,l.to);(f<0||!i.inclusiveLeft&&!f)&&c.push({from:u.from,to:l.from}),(p>0||!i.inclusiveRight&&!p)&&c.push({from:l.to,to:u.to}),a.splice.apply(a,c),s+=c.length-3}}return a}function Vt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Ht(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function Ut(e){return e.inclusiveLeft?-1:0}function Wt(e){return e.inclusiveRight?1:0}function qt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),a=t.find(),o=ot(r.from,a.from)||Ut(e)-Ut(t);if(o)return-o;var i=ot(r.to,a.to)||Wt(e)-Wt(t);return i||t.id-e.id}function $t(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var a=void 0,o=0;o<r.length;++o)a=r[o],a.marker.collapsed&&null==(t?a.from:a.to)&&(!n||qt(n,a.marker)<0)&&(n=a.marker);return n}function Gt(e){return $t(e,!0)}function Yt(e){return $t(e,!1)}function Kt(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var a=0;a<r.length;++a){var o=r[a];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||qt(n,o.marker)<0)&&(n=o.marker)}return n}function Xt(e,t,n,r,a){var o=Xe(e,t),i=Ct&&o.markedSpans;if(i)for(var l=0;l<i.length;++l){var s=i[l];if(s.marker.collapsed){var u=s.marker.find(0),c=ot(u.from,n)||Ut(s.marker)-Ut(a),f=ot(u.to,r)||Wt(s.marker)-Wt(a);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(s.marker.inclusiveRight&&a.inclusiveLeft?ot(u.to,n)>=0:ot(u.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&a.inclusiveLeft?ot(u.from,r)<=0:ot(u.from,r)<0)))return!0}}}function Zt(e){var t;while(t=Gt(e))e=t.find(-1,!0).line;return e}function Jt(e){var t;while(t=Yt(e))e=t.find(1,!0).line;return e}function Qt(e){var t,n;while(t=Yt(e))e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function en(e,t){var n=Xe(e,t),r=Zt(n);return n==r?t:et(r)}function tn(e,t){if(t>e.lastLine())return t;var n,r=Xe(e,t);if(!nn(e,r))return t;while(n=Yt(r))r=n.find(1,!0).line;return et(r)+1}function nn(e,t){var n=Ct&&t.markedSpans;if(n)for(var r=void 0,a=0;a<n.length;++a)if(r=n[a],r.marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&rn(e,t,r))return!0}}function rn(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return rn(e,r.line,Dt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var a=void 0,o=0;o<t.markedSpans.length;++o)if(a=t.markedSpans[o],a.marker.collapsed&&!a.marker.widgetNode&&a.from==n.to&&(null==a.to||a.to!=n.from)&&(a.marker.inclusiveLeft||n.marker.inclusiveRight)&&rn(e,t,a))return!0}function an(e){e=Zt(e);for(var t=0,n=e.parent,r=0;r<n.lines.length;++r){var a=n.lines[r];if(a==e)break;t+=a.height}for(var o=n.parent;o;n=o,o=n.parent)for(var i=0;i<o.children.length;++i){var l=o.children[i];if(l==n)break;t+=l.height}return t}function on(e){if(0==e.height)return 0;var t,n=e.text.length,r=e;while(t=Gt(r)){var a=t.find(0,!0);r=a.from.line,n+=a.from.ch-a.to.ch}r=e;while(t=Yt(r)){var o=t.find(0,!0);n-=r.text.length-o.from.ch,r=o.to.line,n+=r.text.length-o.to.ch}return n}function ln(e){var t=e.display,n=e.doc;t.maxLine=Xe(n,n.first),t.maxLineLength=on(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=on(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var sn=function(e,t,n){this.text=e,Ht(this,t),this.height=n?n(this):1};function un(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),Vt(e),Ht(e,n);var a=r?r(e):1;a!=e.height&&Qe(e,a)}function cn(e){e.parent=null,Vt(e)}sn.prototype.lineNo=function(){return et(this)},_e(sn);var fn={},pn={};function dn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?pn:fn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function hn(e,t){var n=A("span",null,null,s?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var a=0;a<=(t.rest?t.rest.length:0);a++){var o=a?t.rest[a-1]:t.line,i=void 0;r.pos=0,r.addToken=mn,Le(e.display.measure)&&(i=pe(o,e.doc.direction))&&(r.addToken=gn(r.addToken,i)),r.map=[];var l=t!=e.display.externalMeasured&&et(o);xn(o,r,yt(e,o,l)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=j(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=j(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Pe(e.display.measure))),0==a?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var u=r.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return ye(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=j(r.pre.className,r.textClass||"")),r}function vn(e){var t=C("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function mn(e,t,n,r,a,o,s){if(t){var u,c=e.splitSpaces?yn(t,e.trailingSpace):t,f=e.cm.state.specialChars,p=!1;if(f.test(t)){u=document.createDocumentFragment();var d=0;while(1){f.lastIndex=d;var h=f.exec(t),v=h?h.index-d:t.length-d;if(v){var m=document.createTextNode(c.slice(d,d+v));i&&l<9?u.appendChild(C("span",[m])):u.appendChild(m),e.map.push(e.pos,e.pos+v,m),e.col+=v,e.pos+=v}if(!h)break;d+=v+1;var y=void 0;if("\t"==h[0]){var g=e.cm.options.tabSize,b=g-e.col%g;y=u.appendChild(C("span",Y(b),"cm-tab")),y.setAttribute("role","presentation"),y.setAttribute("cm-text","\t"),e.col+=b}else"\r"==h[0]||"\n"==h[0]?(y=u.appendChild(C("span","\r"==h[0]?"␍":"␤","cm-invalidchar")),y.setAttribute("cm-text",h[0]),e.col+=1):(y=e.cm.options.specialCharPlaceholder(h[0]),y.setAttribute("cm-text",h[0]),i&&l<9?u.appendChild(C("span",[y])):u.appendChild(y),e.col+=1);e.map.push(e.pos,e.pos+1,y),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),i&&l<9&&(p=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||a||p||o){var x=n||"";r&&(x+=r),a&&(x+=a);var _=C("span",[u],x,o);if(s)for(var w in s)s.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&_.setAttribute(w,s[w]);return e.content.appendChild(_)}e.content.appendChild(u)}}function yn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",a=0;a<e.length;a++){var o=e.charAt(a);" "!=o||!n||a!=e.length-1&&32!=e.charCodeAt(a+1)||(o=" "),r+=o,n=" "==o}return r}function gn(e,t){return function(n,r,a,o,i,l,s){a=a?a+" cm-force-border":"cm-force-border";for(var u=n.pos,c=u+r.length;;){for(var f=void 0,p=0;p<t.length;p++)if(f=t[p],f.to>u&&f.from<=u)break;if(f.to>=c)return e(n,r,a,o,i,l,s);e(n,r.slice(0,f.to-u),a,o,null,l,s),o=null,r=r.slice(f.to-u),u=f.to}}}function bn(e,t,n,r){var a=!r&&n.widgetNode;a&&e.map.push(e.pos,e.pos+t,a),!r&&e.cm.display.input.needsContentAttribute&&(a||(a=e.content.appendChild(document.createElement("span"))),a.setAttribute("cm-marker",n.id)),a&&(e.cm.display.input.setUneditable(a),e.content.appendChild(a)),e.pos+=t,e.trailingSpace=!1}function xn(e,t,n){var r=e.markedSpans,a=e.text,o=0;if(r)for(var i,l,s,u,c,f,p,d=a.length,h=0,v=1,m="",y=0;;){if(y==h){s=u=c=l="",p=null,f=null,y=1/0;for(var g=[],b=void 0,x=0;x<r.length;++x){var _=r[x],w=_.marker;if("bookmark"==w.type&&_.from==h&&w.widgetNode)g.push(w);else if(_.from<=h&&(null==_.to||_.to>h||w.collapsed&&_.to==h&&_.from==h)){if(null!=_.to&&_.to!=h&&y>_.to&&(y=_.to,u=""),w.className&&(s+=" "+w.className),w.css&&(l=(l?l+";":"")+w.css),w.startStyle&&_.from==h&&(c+=" "+w.startStyle),w.endStyle&&_.to==y&&(b||(b=[])).push(w.endStyle,_.to),w.title&&((p||(p={})).title=w.title),w.attributes)for(var k in w.attributes)(p||(p={}))[k]=w.attributes[k];w.collapsed&&(!f||qt(f.marker,w)<0)&&(f=_)}else _.from>h&&y>_.from&&(y=_.from)}if(b)for(var T=0;T<b.length;T+=2)b[T+1]==y&&(u+=" "+b[T]);if(!f||f.from==h)for(var E=0;E<g.length;++E)bn(t,0,g[E]);if(f&&(f.from||0)==h){if(bn(t,(null==f.to?d+1:f.to)-h,f.marker,null==f.from),null==f.to)return;f.to==h&&(f=!1)}}if(h>=d)break;var O=Math.min(d,y);while(1){if(m){var M=h+m.length;if(!f){var S=M>O?m.slice(0,O-h):m;t.addToken(t,S,i?i+s:s,c,h+S.length==y?u:"",l,p)}if(M>=O){m=m.slice(O-h),h=O;break}h=M,c=""}m=a.slice(o,o=n[v++]),i=dn(n[v++],t.cm.options)}}else for(var C=1;C<n.length;C+=2)t.addToken(t,a.slice(o,o=n[C]),dn(n[C+1],t.cm.options))}function _n(e,t,n){this.line=t,this.rest=Qt(t),this.size=this.rest?et(K(this.rest))-n+1:1,this.node=this.text=null,this.hidden=nn(e,t)}function wn(e,t,n){for(var r,a=[],o=t;o<n;o=r){var i=new _n(e.doc,Xe(e.doc,o),o);r=o+i.size,a.push(i)}return a}var kn=null;function Tn(e){kn?kn.ops.push(e):e.ownsGroup=kn={ops:[e],delayedCallbacks:[]}}function En(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var a=e.ops[r];if(a.cursorActivityHandlers)while(a.cursorActivityCalled<a.cursorActivityHandlers.length)a.cursorActivityHandlers[a.cursorActivityCalled++].call(null,a.cm)}}while(n<t.length)}function On(e,t){var n=e.ownsGroup;if(n)try{En(n)}finally{kn=null,t(n)}}var Mn=null;function Sn(e,t){var n=ve(e,t);if(n.length){var r,a=Array.prototype.slice.call(arguments,2);kn?r=kn.delayedCallbacks:Mn?r=Mn:(r=Mn=[],setTimeout(Cn,0));for(var o=function(e){r.push((function(){return n[e].apply(null,a)}))},i=0;i<n.length;++i)o(i)}}function Cn(){var e=Mn;Mn=null;for(var t=0;t<e.length;++t)e[t]()}function An(e,t,n,r){for(var a=0;a<t.changes.length;a++){var o=t.changes[a];"text"==o?jn(e,t):"gutter"==o?Rn(e,t,n,r):"class"==o?In(e,t):"widget"==o&&zn(e,t,r)}t.changes=null}function Pn(e){return e.node==e.text&&(e.node=C("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),i&&l<8&&(e.node.style.zIndex=2)),e.node}function Ln(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=Pn(t);t.background=r.insertBefore(C("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}function Dn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):hn(e,t)}function jn(e,t){var n=t.text.className,r=Dn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,In(e,t)):n&&(t.text.className=n)}function In(e,t){Ln(e,t),t.line.wrapClass?Pn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function Rn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var a=Pn(t);t.gutterBackground=C("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),a.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var i=Pn(t),l=t.gutter=C("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(l),i.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=l.appendChild(C("div",rt(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var s=0;s<e.display.gutterSpecs.length;++s){var u=e.display.gutterSpecs[s].className,c=o.hasOwnProperty(u)&&o[u];c&&l.appendChild(C("div",[c],"CodeMirror-gutter-elt","left: "+r.gutterLeft[u]+"px; width: "+r.gutterWidth[u]+"px"))}}}function zn(e,t,n){t.alignable&&(t.alignable=null);for(var r=T("CodeMirror-linewidget"),a=t.node.firstChild,o=void 0;a;a=o)o=a.nextSibling,r.test(a.className)&&t.node.removeChild(a);Fn(e,t,n)}function Nn(e,t,n,r){var a=Dn(e,t);return t.text=t.node=a.pre,a.bgClass&&(t.bgClass=a.bgClass),a.textClass&&(t.textClass=a.textClass),In(e,t),Rn(e,t,n,r),Fn(e,t,r),t.node}function Fn(e,t,n){if(Bn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)Bn(e,t.rest[r],t,n,!1)}function Bn(e,t,n,r,a){if(t.widgets)for(var o=Pn(n),i=0,l=t.widgets;i<l.length;++i){var s=l[i],u=C("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),Vn(s,u,n,r),e.display.input.setUneditable(u),a&&s.above?o.insertBefore(u,n.gutter||n.text):o.appendChild(u),Sn(s,"redraw")}}function Vn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var a=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(a-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=a+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Hn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!P(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),S(t.display.measure,C("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Un(e,t){for(var n=Oe(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function Wn(e){return e.lineSpace.offsetTop}function qn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function $n(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=S(e.measure,C("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Gn(e){return V-e.display.nativeBarWidth}function Yn(e){return e.display.scroller.clientWidth-Gn(e)-e.display.barWidth}function Kn(e){return e.display.scroller.clientHeight-Gn(e)-e.display.barHeight}function Xn(e,t,n){var r=e.options.lineWrapping,a=r&&Yn(e);if(!t.measure.heights||r&&t.measure.width!=a){var o=t.measure.heights=[];if(r){t.measure.width=a;for(var i=t.text.firstChild.getClientRects(),l=0;l<i.length-1;l++){var s=i[l],u=i[l+1];Math.abs(s.bottom-u.bottom)>2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Zn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var a=0;a<e.rest.length;a++)if(et(e.rest[a])>n)return{map:e.measure.maps[a],cache:e.measure.caches[a],before:!0}}function Jn(e,t){t=Zt(t);var n=et(t),r=e.display.externalMeasured=new _n(e.doc,t,n);r.lineN=n;var a=r.built=hn(e,r);return r.text=a.pre,S(e.display.lineMeasure,a.pre),r}function Qn(e,t,n,r){return nr(e,tr(e,t),n,r)}function er(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Ir(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function tr(e,t){var n=et(t),r=er(e,n);r&&!r.text?r=null:r&&r.changes&&(An(e,r,n,Ar(e)),e.curOp.forceUpdate=!0),r||(r=Jn(e,t));var a=Zn(r,t,n);return{line:t,view:r,rect:null,map:a.map,cache:a.cache,before:a.before,hasHeights:!1}}function nr(e,t,n,r,a){t.before&&(n=-1);var o,i=n+(r||"");return t.cache.hasOwnProperty(i)?o=t.cache[i]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(Xn(e,t.view,t.rect),t.hasHeights=!0),o=lr(e,t,n,r),o.bogus||(t.cache[i]=o)),{left:o.left,right:o.right,top:a?o.rtop:o.top,bottom:a?o.rbottom:o.bottom}}var rr,ar={left:0,right:0,top:0,bottom:0};function or(e,t,n){for(var r,a,o,i,l,s,u=0;u<e.length;u+=3)if(l=e[u],s=e[u+1],t<l?(a=0,o=1,i="left"):t<s?(a=t-l,o=a+1):(u==e.length-3||t==s&&e[u+3]>t)&&(o=s-l,a=o-1,t>=s&&(i="right")),null!=a){if(r=e[u+2],l==s&&n==(r.insertLeft?"left":"right")&&(i=n),"left"==n&&0==a)while(u&&e[u-2]==e[u-3]&&e[u-1].insertLeft)r=e[2+(u-=3)],i="left";if("right"==n&&a==s-l)while(u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft)r=e[(u+=3)+2],i="right";break}return{node:r,start:a,end:o,collapse:i,coverStart:l,coverEnd:s}}function ir(e,t){var n=ar;if("left"==t){for(var r=0;r<e.length;r++)if((n=e[r]).left!=n.right)break}else for(var a=e.length-1;a>=0;a--)if((n=e[a]).left!=n.right)break;return n}function lr(e,t,n,r){var a,o=or(t.map,n,r),s=o.node,u=o.start,c=o.end,f=o.collapse;if(3==s.nodeType){for(var p=0;p<4;p++){while(u&&oe(t.line.text.charAt(o.coverStart+u)))--u;while(o.coverStart+c<o.coverEnd&&oe(t.line.text.charAt(o.coverStart+c)))++c;if(a=i&&l<9&&0==u&&c==o.coverEnd-o.coverStart?s.parentNode.getBoundingClientRect():ir(E(s,u,c).getClientRects(),r),a.left||a.right||0==u)break;c=u,u-=1,f="right"}i&&l<11&&(a=sr(e.display.measure,a))}else{var d;u>0&&(f=r="right"),a=e.options.lineWrapping&&(d=s.getClientRects()).length>1?d["right"==r?d.length-1:0]:s.getBoundingClientRect()}if(i&&l<9&&!u&&(!a||!a.left&&!a.right)){var h=s.parentNode.getClientRects()[0];a=h?{left:h.left,right:h.left+Cr(e.display),top:h.top,bottom:h.bottom}:ar}for(var v=a.top-t.rect.top,m=a.bottom-t.rect.top,y=(v+m)/2,g=t.view.measure.heights,b=0;b<g.length-1;b++)if(y<g[b])break;var x=b?g[b-1]:0,_=g[b],w={left:("right"==f?a.right:a.left)-t.rect.left,right:("left"==f?a.left:a.right)-t.rect.left,top:x,bottom:_};return a.left||a.right||(w.bogus=!0),e.options.singleCursorHeightPerLine||(w.rtop=v,w.rbottom=m),w}function sr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!ze(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}function ur(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function cr(e){e.display.externalMeasure=null,M(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)ur(e.display.view[t])}function fr(e){cr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function pr(){return c&&m?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function dr(){return c&&m?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function hr(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=Hn(e.widgets[n]));return t}function vr(e,t,n,r,a){if(!a){var o=hr(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var i=an(t);if("local"==r?i+=Wn(e.display):i-=e.display.viewOffset,"page"==r||"window"==r){var l=e.display.lineSpace.getBoundingClientRect();i+=l.top+("window"==r?0:dr());var s=l.left+("window"==r?0:pr());n.left+=s,n.right+=s}return n.top+=i,n.bottom+=i,n}function mr(e,t,n){if("div"==n)return t;var r=t.left,a=t.top;if("page"==n)r-=pr(),a-=dr();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,a+=o.top}var i=e.display.lineSpace.getBoundingClientRect();return{left:r-i.left,top:a-i.top}}function yr(e,t,n,r,a){return r||(r=Xe(e.doc,t.line)),vr(e,r,Qn(e,r,t.ch,a),n)}function gr(e,t,n,r,a,o){function i(t,i){var l=nr(e,a,t,i?"right":"left",o);return i?l.left=l.right:l.right=l.left,vr(e,r,l,n)}r=r||Xe(e.doc,t.line),a||(a=tr(e,r));var l=pe(r,e.doc.direction),s=t.ch,u=t.sticky;if(s>=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!l)return i("before"==u?s-1:s,"before"==u);function c(e,t,n){var r=l[t],a=1==r.level;return i(n?e-1:e,a!=n)}var f=ce(l,s,u),p=ue,d=c(s,f,"before"==u);return null!=p&&(d.other=c(s,p,"before"!=u)),d}function br(e,t){var n=0;t=ft(e.doc,t),e.options.lineWrapping||(n=Cr(e.display)*t.ch);var r=Xe(e.doc,t.line),a=an(r)+Wn(e.display);return{left:n,right:n,top:a,bottom:a+r.height}}function xr(e,t,n,r,a){var o=at(e,t,n);return o.xRel=a,r&&(o.outside=r),o}function _r(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return xr(r.first,0,null,-1,-1);var a=tt(r,n),o=r.first+r.size-1;if(a>o)return xr(r.first+r.size-1,Xe(r,o).text.length,null,1,1);t<0&&(t=0);for(var i=Xe(r,a);;){var l=Er(e,i,a,t,n),s=Kt(i,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var u=s.find(1);if(u.line==a)return u;i=Xe(r,a=u.line)}}function wr(e,t,n,r){r-=hr(t);var a=t.text.length,o=le((function(t){return nr(e,n,t-1).bottom<=r}),a,0);return a=le((function(t){return nr(e,n,t).top>r}),o,a),{begin:o,end:a}}function kr(e,t,n,r){n||(n=tr(e,t));var a=vr(e,t,nr(e,n,r),"line").top;return wr(e,t,n,a)}function Tr(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Er(e,t,n,r,a){a-=an(t);var o=tr(e,t),i=hr(t),l=0,s=t.text.length,u=!0,c=pe(t,e.doc.direction);if(c){var f=(e.options.lineWrapping?Mr:Or)(e,t,n,o,c,r,a);u=1!=f.level,l=u?f.from:f.to-1,s=u?f.to:f.from-1}var p,d,h=null,v=null,m=le((function(t){var n=nr(e,o,t);return n.top+=i,n.bottom+=i,!!Tr(n,r,a,!1)&&(n.top<=a&&n.left<=r&&(h=t,v=n),!0)}),l,s),y=!1;if(v){var g=r-v.left<v.right-r,b=g==u;m=h+(b?0:1),d=b?"after":"before",p=g?v.left:v.right}else{u||m!=s&&m!=l||m++,d=0==m?"after":m==t.text.length?"before":nr(e,o,m-(u?1:0)).bottom+i<=a==u?"after":"before";var x=gr(e,at(n,m,d),"line",t,o);p=x.left,y=a<x.top?-1:a>=x.bottom?1:0}return m=ie(t.text,m,1),xr(n,m,d,y,r-p)}function Or(e,t,n,r,a,o,i){var l=le((function(l){var s=a[l],u=1!=s.level;return Tr(gr(e,at(n,u?s.to:s.from,u?"before":"after"),"line",t,r),o,i,!0)}),0,a.length-1),s=a[l];if(l>0){var u=1!=s.level,c=gr(e,at(n,u?s.from:s.to,u?"after":"before"),"line",t,r);Tr(c,o,i,!0)&&c.top>i&&(s=a[l-1])}return s}function Mr(e,t,n,r,a,o,i){var l=wr(e,t,r,i),s=l.begin,u=l.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,f=null,p=0;p<a.length;p++){var d=a[p];if(!(d.from>=u||d.to<=s)){var h=1!=d.level,v=nr(e,r,h?Math.min(u,d.to)-1:Math.max(s,d.from)).right,m=v<o?o-v+1e9:v-o;(!c||f>m)&&(c=d,f=m)}}return c||(c=a[a.length-1]),c.from<s&&(c={from:s,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function Sr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==rr){rr=C("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)rr.appendChild(document.createTextNode("x")),rr.appendChild(C("br"));rr.appendChild(document.createTextNode("x"))}S(e.measure,rr);var n=rr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),M(e.measure),n||1}function Cr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=C("span","xxxxxxxxxx"),n=C("pre",[t],"CodeMirror-line-like");S(e.measure,n);var r=t.getBoundingClientRect(),a=(r.right-r.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function Ar(e){for(var t=e.display,n={},r={},a=t.gutters.clientLeft,o=t.gutters.firstChild,i=0;o;o=o.nextSibling,++i){var l=e.display.gutterSpecs[i].className;n[l]=o.offsetLeft+o.clientLeft+a,r[l]=o.clientWidth}return{fixedPos:Pr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Pr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Lr(e){var t=Sr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Cr(e.display)-3);return function(a){if(nn(e.doc,a))return 0;var o=0;if(a.widgets)for(var i=0;i<a.widgets.length;i++)a.widgets[i].height&&(o+=a.widgets[i].height);return n?o+(Math.ceil(a.text.length/r)||1)*t:o+t}}function Dr(e){var t=e.doc,n=Lr(e);t.iter((function(e){var t=n(e);t!=e.height&&Qe(e,t)}))}function jr(e,t,n,r){var a=e.display;if(!n&&"true"==Oe(t).getAttribute("cm-not-content"))return null;var o,i,l=a.lineSpace.getBoundingClientRect();try{o=t.clientX-l.left,i=t.clientY-l.top}catch(f){return null}var s,u=_r(e,o,i);if(r&&u.xRel>0&&(s=Xe(e.doc,u.line).text).length==u.ch){var c=N(s,s.length,e.options.tabSize)-s.length;u=at(u.line,Math.max(0,Math.round((o-$n(e.display).left)/Cr(e.display))-c))}return u}function Ir(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if(t-=n[r].size,t<0)return r}function Rr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var a=e.display;if(r&&n<a.viewTo&&(null==a.updateLineNumbers||a.updateLineNumbers>t)&&(a.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=a.viewTo)Ct&&en(e.doc,t)<a.viewTo&&Nr(e);else if(n<=a.viewFrom)Ct&&tn(e.doc,n+r)>a.viewFrom?Nr(e):(a.viewFrom+=r,a.viewTo+=r);else if(t<=a.viewFrom&&n>=a.viewTo)Nr(e);else if(t<=a.viewFrom){var o=Fr(e,n,n+r,1);o?(a.view=a.view.slice(o.index),a.viewFrom=o.lineN,a.viewTo+=r):Nr(e)}else if(n>=a.viewTo){var i=Fr(e,t,t,-1);i?(a.view=a.view.slice(0,i.index),a.viewTo=i.lineN):Nr(e)}else{var l=Fr(e,t,t,-1),s=Fr(e,n,n+r,1);l&&s?(a.view=a.view.slice(0,l.index).concat(wn(e,l.lineN,s.lineN)).concat(a.view.slice(s.index)),a.viewTo+=r):Nr(e)}var u=a.externalMeasured;u&&(n<u.lineN?u.lineN+=r:t<u.lineN+u.size&&(a.externalMeasured=null))}function zr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,a=e.display.externalMeasured;if(a&&t>=a.lineN&&t<a.lineN+a.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[Ir(e,t)];if(null!=o.node){var i=o.changes||(o.changes=[]);-1==B(i,n)&&i.push(n)}}}function Nr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Fr(e,t,n,r){var a,o=Ir(e,t),i=e.display.view;if(!Ct||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var l=e.display.viewFrom,s=0;s<o;s++)l+=i[s].size;if(l!=t){if(r>0){if(o==i.length-1)return null;a=l+i[o].size-t,o++}else a=l-t;t+=a,n+=a}while(en(e.doc,n)!=n){if(o==(r<0?0:i.length-1))return null;n+=r*i[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Br(e,t,n){var r=e.display,a=r.view;0==a.length||t>=r.viewTo||n<=r.viewFrom?(r.view=wn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=wn(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(Ir(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(wn(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,Ir(e,n)))),r.viewTo=n}function Vr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var a=t[r];a.hidden||a.node&&!a.changes||++n}return n}function Hr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Ur(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},a=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),i=0;i<n.sel.ranges.length;i++)if(t||i!=n.sel.primIndex){var l=n.sel.ranges[i];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var s=l.empty();(s||e.options.showCursorWhenSelecting)&&Wr(e,l.head,a),s||$r(e,l,o)}}return r}function Wr(e,t,n){var r=gr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),a=n.appendChild(C("div"," ","CodeMirror-cursor"));if(a.style.left=r.left+"px",a.style.top=r.top+"px",a.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(C("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function qr(e,t){return e.top-t.top||e.left-t.left}function $r(e,t,n){var r=e.display,a=e.doc,o=document.createDocumentFragment(),i=$n(e.display),l=i.left,s=Math.max(r.sizerWidth,Yn(e)-r.sizer.offsetLeft)-i.right,u="ltr"==a.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(C("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?s-e:n)+"px;\n height: "+(r-t)+"px"))}function f(t,n,r){var o,i,f=Xe(a,t),p=f.text.length;function d(n,r){return yr(e,at(t,n),"div",f,r)}function h(t,n,r){var a=kr(e,f,null,t),o="ltr"==n==("after"==r)?"left":"right",i="after"==r?a.begin:a.end-(/\s/.test(f.text.charAt(a.end-1))?2:1);return d(i,o)[o]}var v=pe(f,a.direction);return se(v,n||0,null==r?p:r,(function(e,t,a,f){var m="ltr"==a,y=d(e,m?"left":"right"),g=d(t-1,m?"right":"left"),b=null==n&&0==e,x=null==r&&t==p,_=0==f,w=!v||f==v.length-1;if(g.top-y.top<=3){var k=(u?b:x)&&_,T=(u?x:b)&&w,E=k?l:(m?y:g).left,O=T?s:(m?g:y).right;c(E,y.top,O-E,y.bottom)}else{var M,S,C,A;m?(M=u&&b&&_?l:y.left,S=u?s:h(e,a,"before"),C=u?l:h(t,a,"after"),A=u&&x&&w?s:g.right):(M=u?h(e,a,"before"):l,S=!u&&b&&_?s:y.right,C=!u&&x&&w?l:g.left,A=u?h(t,a,"after"):s),c(M,y.top,S-M,y.bottom),y.bottom<g.top&&c(l,y.bottom,null,g.top),c(C,g.top,A-C,g.bottom)}(!o||qr(y,o)<0)&&(o=y),qr(g,o)<0&&(o=g),(!i||qr(y,i)<0)&&(i=y),qr(g,i)<0&&(i=g)})),{start:o,end:i}}var p=t.from(),d=t.to();if(p.line==d.line)f(p.line,p.ch,d.ch);else{var h=Xe(a,p.line),v=Xe(a,d.line),m=Zt(h)==Zt(v),y=f(p.line,p.ch,m?h.text.length+1:null).end,g=f(d.line,m?0:null,d.ch).start;m&&(y.top<g.top-2?(c(y.right,y.top,null,y.bottom),c(l,g.top,g.left,g.bottom)):c(y.right,y.top,g.left-y.right,y.bottom)),y.bottom<g.top&&c(l,y.bottom,null,g.top)}n.appendChild(o)}function Gr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Yr(e){e.state.focused||(e.display.input.focus(),Xr(e))}function Kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Zr(e))}),100)}function Xr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(ye(e,"focus",e,t),e.state.focused=!0,D(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Gr(e))}function Zr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(ye(e,"blur",e,t),e.state.focused=!1,O(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Jr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var a=t.view[r],o=e.options.lineWrapping,s=void 0,u=0;if(!a.hidden){if(i&&l<8){var c=a.node.offsetTop+a.node.offsetHeight;s=c-n,n=c}else{var f=a.node.getBoundingClientRect();s=f.bottom-f.top,!o&&a.text.firstChild&&(u=a.text.firstChild.getBoundingClientRect().right-f.left-1)}var p=a.line.height-s;if((p>.005||p<-.005)&&(Qe(a.line,s),Qr(a.line),a.rest))for(var d=0;d<a.rest.length;d++)Qr(a.rest[d]);if(u>e.display.sizerWidth){var h=Math.ceil(u/Cr(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}}function Qr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function ea(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-Wn(e));var a=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=tt(t,r),i=tt(t,a);if(n&&n.ensure){var l=n.ensure.from.line,s=n.ensure.to.line;l<o?(o=l,i=tt(t,an(Xe(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=i&&(o=tt(t,an(Xe(t,s))-e.wrapper.clientHeight),i=s)}return{from:o,to:Math.max(i,o+1)}}function ta(e,t){if(!ge(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),a=null;if(t.top+r.top<0?a=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(a=!1),null!=a&&!h){var o=C("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Wn(e.display))+"px;\n height: "+(t.bottom-t.top+Gn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(a),e.display.lineSpace.removeChild(o)}}}function na(e,t,n,r){var a;null==r&&(r=0),e.options.lineWrapping||t!=n||(t=t.ch?at(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?at(t.line,t.ch+1,"before"):t);for(var o=0;o<5;o++){var i=!1,l=gr(e,t),s=n&&n!=t?gr(e,n):l;a={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r};var u=aa(e,a),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&(fa(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(i=!0)),null!=u.scrollLeft&&(da(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(i=!0)),!i)break}return a}function ra(e,t){var n=aa(e,t);null!=n.scrollTop&&fa(e,n.scrollTop),null!=n.scrollLeft&&da(e,n.scrollLeft)}function aa(e,t){var n=e.display,r=Sr(e.display);t.top<0&&(t.top=0);var a=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=Kn(e),i={};t.bottom-t.top>o&&(t.bottom=t.top+o);var l=e.doc.height+qn(n),s=t.top<r,u=t.bottom>l-r;if(t.top<a)i.scrollTop=s?0:t.top;else if(t.bottom>a+o){var c=Math.min(t.top,(u?l:t.bottom)-o);c!=a&&(i.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=Yn(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?i.scrollLeft=0:t.left<f?i.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>p+f-3&&(i.scrollLeft=t.right+(d?0:10)-p),i}function oa(e,t){null!=t&&(ua(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function ia(e){ua(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function la(e,t,n){null==t&&null==n||ua(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function sa(e,t){ua(e),e.curOp.scrollToPos=t}function ua(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=br(e,t.from),r=br(e,t.to);ca(e,n,r,t.margin)}}function ca(e,t,n,r){var a=aa(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});la(e,a.scrollLeft,a.scrollTop)}function fa(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Ha(e,{top:t}),pa(e,t,!0),n&&Ha(e),ja(e,100))}function pa(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function da(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,$a(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function ha(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+qn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Gn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var va=function(e,t,n){this.cm=n;var r=this.vert=C("div",[C("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),a=this.horiz=C("div",[C("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=a.tabIndex=-1,e(r),e(a),he(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),he(a,"scroll",(function(){a.clientWidth&&t(a.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,i&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};va.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var a=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+a)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},va.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},va.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},va.prototype.zeroWidthHack=function(){var e=g&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},va.prototype.enableZeroWidthBar=function(e,t,n){function r(){var a=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(a.right-1,(a.top+a.bottom)/2):document.elementFromPoint((a.right+a.left)/2,a.bottom-1);o!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},va.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var ma=function(){};function ya(e,t){t||(t=ha(e));var n=e.display.barWidth,r=e.display.barHeight;ga(e,t);for(var a=0;a<4&&n!=e.display.barWidth||r!=e.display.barHeight;a++)n!=e.display.barWidth&&e.options.lineWrapping&&Jr(e),ga(e,ha(e)),n=e.display.barWidth,r=e.display.barHeight}function ga(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}ma.prototype.update=function(){return{bottom:0,right:0}},ma.prototype.setScrollLeft=function(){},ma.prototype.setScrollTop=function(){},ma.prototype.clear=function(){};var ba={native:va,null:ma};function xa(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&O(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ba[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),he(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?da(e,t):fa(e,t)}),e),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)}var _a=0;function wa(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++_a},Tn(e.curOp)}function ka(e){var t=e.curOp;t&&On(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;Ta(e)}))}function Ta(e){for(var t=e.ops,n=0;n<t.length;n++)Ea(t[n]);for(var r=0;r<t.length;r++)Oa(t[r]);for(var a=0;a<t.length;a++)Ma(t[a]);for(var o=0;o<t.length;o++)Sa(t[o]);for(var i=0;i<t.length;i++)Ca(t[i])}function Ea(e){var t=e.cm,n=t.display;za(t),e.updateMaxLine&&ln(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Ra(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Oa(e){e.updatedDisplay=e.mustUpdate&&Ba(e.cm,e.update)}function Ma(e){var t=e.cm,n=t.display;e.updatedDisplay&&Jr(t),e.barMeasure=ha(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=Qn(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Gn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Yn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Sa(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&da(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==L();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&ya(t,e.barMeasure),e.updatedDisplay&&qa(t,e.barMeasure),e.selectionChanged&&Gr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Yr(e.cm)}function Ca(e){var t=e.cm,n=t.display,r=t.doc;if(e.updatedDisplay&&Va(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&pa(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&da(t,e.scrollLeft,!0,!0),e.scrollToPos){var a=na(t,ft(r,e.scrollToPos.from),ft(r,e.scrollToPos.to),e.scrollToPos.margin);ta(t,a)}var o=e.maybeHiddenMarkers,i=e.maybeUnhiddenMarkers;if(o)for(var l=0;l<o.length;++l)o[l].lines.length||ye(o[l],"hide");if(i)for(var s=0;s<i.length;++s)i[s].lines.length&&ye(i[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&ye(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Aa(e,t){if(e.curOp)return t();wa(e);try{return t()}finally{ka(e)}}function Pa(e,t){return function(){if(e.curOp)return t.apply(e,arguments);wa(e);try{return t.apply(e,arguments)}finally{ka(e)}}}function La(e){return function(){if(this.curOp)return e.apply(this,arguments);wa(this);try{return e.apply(this,arguments)}finally{ka(this)}}}function Da(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);wa(t);try{return e.apply(this,arguments)}finally{ka(t)}}}function ja(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,R(Ia,e))}function Ia(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=gt(e,t.highlightFrontier),a=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var i=o.styles,l=o.text.length>e.options.maxHighlightLength?$e(t.mode,r.state):null,s=mt(e,o,r,!0);l&&(r.state=l),o.styles=s.styles;var u=o.styleClasses,c=s.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!i||i.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),p=0;!f&&p<i.length;++p)f=i[p]!=o.styles[p];f&&a.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&bt(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ja(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),a.length&&Aa(e,(function(){for(var t=0;t<a.length;t++)zr(e,a[t],"text")}))}}var Ra=function(e,t,n){var r=e.display;this.viewport=t,this.visible=ea(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Yn(e),this.force=n,this.dims=Ar(e),this.events=[]};function za(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Gn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Gn(e)+"px",t.scrollbarsClipped=!0)}function Na(e){if(e.hasFocus())return null;var t=L();if(!t||!P(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&P(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}function Fa(e){if(e&&e.activeElt&&e.activeElt!=L()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&P(document.body,e.anchorNode)&&P(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}function Ba(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return Nr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==Vr(e))return!1;Ga(e)&&(Nr(e),t.dims=Ar(e));var a=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),i=Math.min(a,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>i&&n.viewTo-i<20&&(i=Math.min(a,n.viewTo)),Ct&&(o=en(e.doc,o),i=tn(e.doc,i));var l=o!=n.viewFrom||i!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Br(e,o,i),n.viewOffset=an(Xe(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Vr(e);if(!l&&0==s&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Na(e);return s>4&&(n.lineDiv.style.display="none"),Ua(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Fa(u),M(n.cursorDiv),M(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ja(e,400)),n.updateLineNumbers=null,!0}function Va(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Yn(e))r&&(t.visible=ea(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+qn(e.display)-Kn(e),n.top)}),t.visible=ea(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Ba(e,t))break;Jr(e);var a=ha(e);Hr(e),ya(e,a),qa(e,a),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ha(e,t){var n=new Ra(e,t);if(Ba(e,n)){Jr(e),Va(e,n);var r=ha(e);Hr(e),ya(e,r),qa(e,r),n.finish()}}function Ua(e,t,n){var r=e.display,a=e.options.lineNumbers,o=r.lineDiv,i=o.firstChild;function l(t){var n=t.nextSibling;return s&&g&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,f=0;f<u.length;f++){var p=u[f];if(p.hidden);else if(p.node&&p.node.parentNode==o){while(i!=p.node)i=l(i);var d=a&&null!=t&&t<=c&&p.lineNumber;p.changes&&(B(p.changes,"gutter")>-1&&(d=!1),An(e,p,c,n)),d&&(M(p.lineNumber),p.lineNumber.appendChild(document.createTextNode(rt(e.options,c)))),i=p.node.nextSibling}else{var h=Nn(e,p,c,n);o.insertBefore(h,i)}c+=p.size}while(i)i=l(i)}function Wa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function qa(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Gn(e)+"px"}function $a(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Pr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,a=t.gutters.offsetWidth,o=r+"px",i=0;i<n.length;i++)if(!n[i].hidden){e.options.fixedGutter&&(n[i].gutter&&(n[i].gutter.style.left=o),n[i].gutterBackground&&(n[i].gutterBackground.style.left=o));var l=n[i].alignable;if(l)for(var s=0;s<l.length;s++)l[s].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+a+"px")}}function Ga(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=rt(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var a=r.measure.appendChild(C("div",[C("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=a.firstChild.offsetWidth,i=a.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-i)+1,r.lineNumWidth=r.lineNumInnerWidth+i,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",Wa(e.display),!0}return!1}function Ya(e,t){for(var n=[],r=!1,a=0;a<e.length;a++){var o=e[a],i=null;if("string"!=typeof o&&(i=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:i})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function Ka(e){var t=e.gutters,n=e.gutterSpecs;M(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var a=n[r],o=a.className,i=a.style,l=t.appendChild(C("div",null,"CodeMirror-gutter "+o));i&&(l.style.cssText=i),"CodeMirror-linenumbers"==o&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",Wa(e)}function Xa(e){Ka(e.display),Rr(e),$a(e)}function Za(e,t,r,a){var o=this;this.input=r,o.scrollbarFiller=C("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=C("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=A("div",null,"CodeMirror-code"),o.selectionDiv=C("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=C("div",null,"CodeMirror-cursors"),o.measure=C("div",null,"CodeMirror-measure"),o.lineMeasure=C("div",null,"CodeMirror-measure"),o.lineSpace=A("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=A("div",[o.lineSpace],"CodeMirror-lines");o.mover=C("div",[u],null,"position: relative"),o.sizer=C("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=C("div",null,null,"position: absolute; height: "+V+"px; width: 1px;"),o.gutters=C("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=C("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=C("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),i&&l<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),s||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Ya(a.gutters,a.lineNumbers),Ka(o),r.init(o)}Ra.prototype.signal=function(e,t){xe(e,t)&&this.events.push(arguments)},Ra.prototype.finish=function(){for(var e=0;e<this.events.length;e++)ye.apply(null,this.events[e])};var Ja=0,Qa=null;function eo(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function to(e){var t=eo(e);return t.x*=Qa,t.y*=Qa,t}function no(e,t){var r=eo(t),a=r.x,o=r.y,i=e.display,l=i.scroller,u=l.scrollWidth>l.clientWidth,c=l.scrollHeight>l.clientHeight;if(a&&u||o&&c){if(o&&g&&s)e:for(var p=t.target,d=i.view;p!=l;p=p.parentNode)for(var h=0;h<d.length;h++)if(d[h].node==p){e.display.currentWheelTarget=p;break e}if(a&&!n&&!f&&null!=Qa)return o&&c&&fa(e,Math.max(0,l.scrollTop+o*Qa)),da(e,Math.max(0,l.scrollLeft+a*Qa)),(!o||o&&c)&&we(t),void(i.wheelStartX=null);if(o&&null!=Qa){var v=o*Qa,m=e.doc.scrollTop,y=m+i.wrapper.clientHeight;v<0?m=Math.max(0,m+v-50):y=Math.min(e.doc.height,y+v+50),Ha(e,{top:m,bottom:y})}Ja<20&&(null==i.wheelStartX?(i.wheelStartX=l.scrollLeft,i.wheelStartY=l.scrollTop,i.wheelDX=a,i.wheelDY=o,setTimeout((function(){if(null!=i.wheelStartX){var e=l.scrollLeft-i.wheelStartX,t=l.scrollTop-i.wheelStartY,n=t&&i.wheelDY&&t/i.wheelDY||e&&i.wheelDX&&e/i.wheelDX;i.wheelStartX=i.wheelStartY=null,n&&(Qa=(Qa*Ja+n)/(Ja+1),++Ja)}}),200)):(i.wheelDX+=a,i.wheelDY+=o))}}i?Qa=-.53:n?Qa=15:c?Qa=-.7:p&&(Qa=-1/3);var ro=function(e,t){this.ranges=e,this.primIndex=t};ro.prototype.primary=function(){return this.ranges[this.primIndex]},ro.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!it(n.anchor,r.anchor)||!it(n.head,r.head))return!1}return!0},ro.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ao(lt(this.ranges[t].anchor),lt(this.ranges[t].head));return new ro(e,this.primIndex)},ro.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},ro.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(ot(t,r.from())>=0&&ot(e,r.to())<=0)return n}return-1};var ao=function(e,t){this.anchor=e,this.head=t};function oo(e,t,n){var r=e&&e.options.selectionsMayTouch,a=t[n];t.sort((function(e,t){return ot(e.from(),t.from())})),n=B(t,a);for(var o=1;o<t.length;o++){var i=t[o],l=t[o-1],s=ot(l.to(),i.from());if(r&&!i.empty()?s>0:s>=0){var u=ut(l.from(),i.from()),c=st(l.to(),i.to()),f=l.empty()?i.from()==i.head:l.from()==l.head;o<=n&&--n,t.splice(--o,2,new ao(f?c:u,f?u:c))}}return new ro(t,n)}function io(e,t){return new ro([new ao(e,t||e)],0)}function lo(e){return e.text?at(e.from.line+e.text.length-1,K(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function so(e,t){if(ot(e,t.from)<0)return e;if(ot(e,t.to)<=0)return lo(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=lo(t).ch-t.to.ch),at(n,r)}function uo(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var a=e.sel.ranges[r];n.push(new ao(so(a.anchor,t),so(a.head,t)))}return oo(e.cm,n,e.sel.primIndex)}function co(e,t,n){return e.line==t.line?at(n.line,e.ch-t.ch+n.ch):at(n.line+(e.line-t.line),e.ch)}function fo(e,t,n){for(var r=[],a=at(e.first,0),o=a,i=0;i<t.length;i++){var l=t[i],s=co(l.from,a,o),u=co(lo(l),a,o);if(a=l.to,o=u,"around"==n){var c=e.sel.ranges[i],f=ot(c.head,c.anchor)<0;r[i]=new ao(f?u:s,f?s:u)}else r[i]=new ao(s,s)}return new ro(r,e.sel.primIndex)}function po(e){e.doc.mode=Ue(e.options,e.doc.modeOption),ho(e)}function ho(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ja(e,100),e.state.modeGen++,e.curOp&&Rr(e)}function vo(e,t){return 0==t.from.ch&&0==t.to.ch&&""==K(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function mo(e,t,n,r){function a(e){return n?n[e]:null}function o(e,n,a){un(e,n,a,r),Sn(e,"change",e,t)}function i(e,t){for(var n=[],o=e;o<t;++o)n.push(new sn(u[o],a(o),r));return n}var l=t.from,s=t.to,u=t.text,c=Xe(e,l.line),f=Xe(e,s.line),p=K(u),d=a(u.length-1),h=s.line-l.line;if(t.full)e.insert(0,i(0,u.length)),e.remove(u.length,e.size-u.length);else if(vo(e,t)){var v=i(0,u.length-1);o(f,f.text,d),h&&e.remove(l.line,h),v.length&&e.insert(l.line,v)}else if(c==f)if(1==u.length)o(c,c.text.slice(0,l.ch)+p+c.text.slice(s.ch),d);else{var m=i(1,u.length-1);m.push(new sn(p+c.text.slice(s.ch),d,r)),o(c,c.text.slice(0,l.ch)+u[0],a(0)),e.insert(l.line+1,m)}else if(1==u.length)o(c,c.text.slice(0,l.ch)+u[0]+f.text.slice(s.ch),a(0)),e.remove(l.line+1,h);else{o(c,c.text.slice(0,l.ch)+u[0],a(0)),o(f,p+f.text.slice(s.ch),d);var y=i(1,u.length-1);h>1&&e.remove(l.line+1,h-1),e.insert(l.line+1,y)}Sn(e,"change",e,t)}function yo(e,t,n){function r(e,a,o){if(e.linked)for(var i=0;i<e.linked.length;++i){var l=e.linked[i];if(l.doc!=a){var s=o&&l.sharedHist;n&&!s||(t(l.doc,s),r(l.doc,e,s))}}}r(e,null,!0)}function go(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Dr(e),po(e),bo(e),e.options.lineWrapping||ln(e),e.options.mode=t.modeOption,Rr(e)}function bo(e){("rtl"==e.doc.direction?D:O)(e.display.lineDiv,"CodeMirror-rtl")}function xo(e){Aa(e,(function(){bo(e),Rr(e)}))}function _o(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function wo(e,t){var n={from:lt(t.from),to:lo(t),text:Ze(e,t.from,t.to)};return Co(e,n,t.from.line,t.to.line+1),yo(e,(function(e){return Co(e,n,t.from.line,t.to.line+1)}),!0),n}function ko(e){while(e.length){var t=K(e);if(!t.ranges)break;e.pop()}}function To(e,t){return t?(ko(e.done),K(e.done)):e.done.length&&!K(e.done).ranges?K(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),K(e.done)):void 0}function Eo(e,t,n,r){var a=e.history;a.undone.length=0;var o,i,l=+new Date;if((a.lastOp==r||a.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&a.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=To(a,a.lastOp==r)))i=K(o.changes),0==ot(t.from,t.to)&&0==ot(t.from,i.to)?i.to=lo(t):o.changes.push(wo(e,t));else{var s=K(a.done);s&&s.ranges||So(e.sel,a.done),o={changes:[wo(e,t)],generation:a.generation},a.done.push(o);while(a.done.length>a.undoDepth)a.done.shift(),a.done[0].ranges||a.done.shift()}a.done.push(n),a.generation=++a.maxGeneration,a.lastModTime=a.lastSelTime=l,a.lastOp=a.lastSelOp=r,a.lastOrigin=a.lastSelOrigin=t.origin,i||ye(e,"historyAdded")}function Oo(e,t,n,r){var a=t.charAt(0);return"*"==a||"+"==a&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Mo(e,t,n,r){var a=e.history,o=r&&r.origin;n==a.lastSelOp||o&&a.lastSelOrigin==o&&(a.lastModTime==a.lastSelTime&&a.lastOrigin==o||Oo(e,o,K(a.done),t))?a.done[a.done.length-1]=t:So(t,a.done),a.lastSelTime=+new Date,a.lastSelOrigin=o,a.lastSelOp=n,r&&!1!==r.clearRedo&&ko(a.undone)}function So(e,t){var n=K(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Co(e,t,n,r){var a=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((a||(a=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Ao(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Po(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],a=0;a<t.text.length;++a)r.push(Ao(n[a]));return r}function Lo(e,t){var n=Po(e,t),r=Nt(e,t);if(!n)return r;if(!r)return n;for(var a=0;a<n.length;++a){var o=n[a],i=r[a];if(o&&i)e:for(var l=0;l<i.length;++l){for(var s=i[l],u=0;u<o.length;++u)if(o[u].marker==s.marker)continue e;o.push(s)}else i&&(n[a]=i)}return n}function Do(e,t,n){for(var r=[],a=0;a<e.length;++a){var o=e[a];if(o.ranges)r.push(n?ro.prototype.deepCopy.call(o):o);else{var i=o.changes,l=[];r.push({changes:l});for(var s=0;s<i.length;++s){var u=i[s],c=void 0;if(l.push({from:u.from,to:u.to,text:u.text}),t)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&B(t,Number(c[1]))>-1&&(K(l)[f]=u[f],delete u[f])}}}return r}function jo(e,t,n,r){if(r){var a=e.anchor;if(n){var o=ot(t,a)<0;o!=ot(n,a)<0?(a=t,t=n):o!=ot(t,n)<0&&(t=n)}return new ao(a,t)}return new ao(n||t,t)}function Io(e,t,n,r,a){null==a&&(a=e.cm&&(e.cm.display.shift||e.extend)),Vo(e,new ro([jo(e.sel.primary(),t,n,a)],0),r)}function Ro(e,t,n){for(var r=[],a=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=jo(e.sel.ranges[o],t[o],null,a);var i=oo(e.cm,r,e.sel.primIndex);Vo(e,i,n)}function zo(e,t,n,r){var a=e.sel.ranges.slice(0);a[t]=n,Vo(e,oo(e.cm,a,e.sel.primIndex),r)}function No(e,t,n,r){Vo(e,io(t,n),r)}function Fo(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new ao(ft(e,t[n].anchor),ft(e,t[n].head))},origin:n&&n.origin};return ye(e,"beforeSelectionChange",e,r),e.cm&&ye(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?oo(e.cm,r.ranges,r.ranges.length-1):t}function Bo(e,t,n){var r=e.history.done,a=K(r);a&&a.ranges?(r[r.length-1]=t,Ho(e,t,n)):Vo(e,t,n)}function Vo(e,t,n){Ho(e,t,n),Mo(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function Ho(e,t,n){(xe(e,"beforeSelectionChange")||e.cm&&xe(e.cm,"beforeSelectionChange"))&&(t=Fo(e,t,n));var r=n&&n.bias||(ot(t.primary().head,e.sel.primary().head)<0?-1:1);Uo(e,qo(e,t,r,!0)),n&&!1===n.scroll||!e.cm||ia(e.cm)}function Uo(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,be(e.cm)),Sn(e,"cursorActivity",e))}function Wo(e){Uo(e,qo(e,e.sel,null,!1))}function qo(e,t,n,r){for(var a,o=0;o<t.ranges.length;o++){var i=t.ranges[o],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],s=Go(e,i.anchor,l&&l.anchor,n,r),u=Go(e,i.head,l&&l.head,n,r);(a||s!=i.anchor||u!=i.head)&&(a||(a=t.ranges.slice(0,o)),a[o]=new ao(s,u))}return a?oo(e.cm,a,t.primIndex):t}function $o(e,t,n,r,a){var o=Xe(e,t.line);if(o.markedSpans)for(var i=0;i<o.markedSpans.length;++i){var l=o.markedSpans[i],s=l.marker,u="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,c="selectRight"in s?!s.selectRight:s.inclusiveRight;if((null==l.from||(u?l.from<=t.ch:l.from<t.ch))&&(null==l.to||(c?l.to>=t.ch:l.to>t.ch))){if(a&&(ye(s,"beforeCursorEnter"),s.explicitlyCleared)){if(o.markedSpans){--i;continue}break}if(!s.atomic)continue;if(n){var f=s.find(r<0?1:-1),p=void 0;if((r<0?c:u)&&(f=Yo(e,f,-r,f&&f.line==t.line?o:null)),f&&f.line==t.line&&(p=ot(f,n))&&(r<0?p<0:p>0))return $o(e,f,t,r,a)}var d=s.find(r<0?-1:1);return(r<0?u:c)&&(d=Yo(e,d,r,d.line==t.line?o:null)),d?$o(e,d,t,r,a):null}}return t}function Go(e,t,n,r,a){var o=r||1,i=$o(e,t,n,o,a)||!a&&$o(e,t,n,o,!0)||$o(e,t,n,-o,a)||!a&&$o(e,t,n,-o,!0);return i||(e.cantEdit=!0,at(e.first,0))}function Yo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?ft(e,at(t.line-1)):null:n>0&&t.ch==(r||Xe(e,t.line)).text.length?t.line<e.first+e.size-1?at(t.line+1,0):null:new at(t.line,t.ch+n)}function Ko(e){e.setSelection(at(e.firstLine(),0),at(e.lastLine()),U)}function Xo(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,a,o){t&&(r.from=ft(e,t)),n&&(r.to=ft(e,n)),a&&(r.text=a),void 0!==o&&(r.origin=o)}),ye(e,"beforeChange",e,r),e.cm&&ye(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Zo(e,t,n){if(e.cm){if(!e.cm.curOp)return Pa(e.cm,Zo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(xe(e,"beforeChange")||e.cm&&xe(e.cm,"beforeChange"))||(t=Xo(e,t,!0),t)){var r=St&&!n&&Bt(e,t.from,t.to);if(r)for(var a=r.length-1;a>=0;--a)Jo(e,{from:r[a].from,to:r[a].to,text:a?[""]:t.text,origin:t.origin});else Jo(e,t)}}function Jo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ot(t.from,t.to)){var n=uo(e,t);Eo(e,t,n,e.cm?e.cm.curOp.id:NaN),ti(e,t,n,Nt(e,t));var r=[];yo(e,(function(e,n){n||-1!=B(r,e.history)||(ii(e.history,t),r.push(e.history)),ti(e,t,null,Nt(e,t))}))}}function Qo(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var a,o=e.history,i=e.sel,l="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u<l.length;u++)if(a=l[u],n?a.ranges&&!a.equals(e.sel):!a.ranges)break;if(u!=l.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(a=l.pop(),!a.ranges){if(r)return void l.push(a);break}if(So(a,s),n&&!a.equals(e.sel))return void Vo(e,a,{clearRedo:!1});i=a}var c=[];So(i,s),s.push({changes:c,generation:o.generation}),o.generation=a.generation||++o.maxGeneration;for(var f=xe(e,"beforeChange")||e.cm&&xe(e.cm,"beforeChange"),p=function(n){var r=a.changes[n];if(r.origin=t,f&&!Xo(e,r,!1))return l.length=0,{};c.push(wo(e,r));var o=n?uo(e,r):K(l);ti(e,r,o,Lo(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:lo(r)});var i=[];yo(e,(function(e,t){t||-1!=B(i,e.history)||(ii(e.history,r),i.push(e.history)),ti(e,r,null,Lo(e,r))}))},d=a.changes.length-1;d>=0;--d){var h=p(d);if(h)return h.v}}}}function ei(e,t){if(0!=t&&(e.first+=t,e.sel=new ro(X(e.sel.ranges,(function(e){return new ao(at(e.anchor.line+t,e.anchor.ch),at(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Rr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)zr(e.cm,r,"gutter")}}function ti(e,t,n,r){if(e.cm&&!e.cm.curOp)return Pa(e.cm,ti)(e,t,n,r);if(t.to.line<e.first)ei(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var a=t.text.length-1-(e.first-t.from.line);ei(e,a),t={from:at(e.first,0),to:at(t.to.line+a,t.to.ch),text:[K(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:at(o,Xe(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ze(e,t.from,t.to),n||(n=uo(e,t)),e.cm?ni(e.cm,t,r):mo(e,t,r),Ho(e,n,U),e.cantEdit&&Go(e,at(e.firstLine(),0))&&(e.cantEdit=!1)}}function ni(e,t,n){var r=e.doc,a=e.display,o=t.from,i=t.to,l=!1,s=o.line;e.options.lineWrapping||(s=et(Zt(Xe(r,o.line))),r.iter(s,i.line+1,(function(e){if(e==a.maxLine)return l=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&be(e),mo(r,t,n,Lr(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,(function(e){var t=on(e);t>a.maxLineLength&&(a.maxLine=e,a.maxLineLength=t,a.maxLineChanged=!0,l=!1)})),l&&(e.curOp.updateMaxLine=!0)),Mt(r,o.line),ja(e,400);var u=t.text.length-(i.line-o.line)-1;t.full?Rr(e):o.line!=i.line||1!=t.text.length||vo(e.doc,t)?Rr(e,o.line,i.line+1,u):zr(e,o.line,"text");var c=xe(e,"changes"),f=xe(e,"change");if(f||c){var p={from:o,to:i,text:t.text,removed:t.removed,origin:t.origin};f&&Sn(e,"change",e,p),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function ri(e,t,n,r,a){var o;r||(r=n),ot(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),Zo(e,{from:n,to:r,text:t,origin:a})}function ai(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function oi(e,t,n,r){for(var a=0;a<e.length;++a){var o=e[a],i=!0;if(o.ranges){o.copied||(o=e[a]=o.deepCopy(),o.copied=!0);for(var l=0;l<o.ranges.length;l++)ai(o.ranges[l].anchor,t,n,r),ai(o.ranges[l].head,t,n,r)}else{for(var s=0;s<o.changes.length;++s){var u=o.changes[s];if(n<u.from.line)u.from=at(u.from.line+r,u.from.ch),u.to=at(u.to.line+r,u.to.ch);else if(t<=u.to.line){i=!1;break}}i||(e.splice(0,a+1),a=0)}}}function ii(e,t){var n=t.from.line,r=t.to.line,a=t.text.length-(r-n)-1;oi(e.done,n,r,a),oi(e.undone,n,r,a)}function li(e,t,n,r){var a=t,o=t;return"number"==typeof t?o=Xe(e,ct(e,t)):a=et(t),null==a?null:(r(o,a)&&e.cm&&zr(e.cm,a,n),o)}function si(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function ui(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var a=e[r];t+=a.chunkSize(),n+=a.height,a.parent=this}this.size=t,this.height=n,this.parent=null}ao.prototype.from=function(){return ut(this.anchor,this.head)},ao.prototype.to=function(){return st(this.anchor,this.head)},ao.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},si.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var a=this.lines[n];this.height-=a.height,cn(a),Sn(a,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},ui.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],a=r.chunkSize();if(e<a){var o=Math.min(t,a-e),i=r.height;if(r.removeInner(e,o),this.height-=i-r.height,a==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=a}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof si))){var l=[];this.collapse(l),this.children=[new si(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var a=this.children[r],o=a.chunkSize();if(e<=o){if(a.insertInner(e,t,n),a.lines&&a.lines.length>50){for(var i=a.lines.length%25+25,l=i;l<a.lines.length;){var s=new si(a.lines.slice(l,l+=25));a.height-=s.height,this.children.splice(++r,0,s),s.parent=this}a.lines=a.lines.slice(0,i),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),n=new ui(t);if(e.parent){e.size-=n.size,e.height-=n.height;var r=B(e.parent.children,e);e.parent.children.splice(r+1,0,n)}else{var a=new ui(e.children);a.parent=e,e.children=[a,n],e=a}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var a=this.children[r],o=a.chunkSize();if(e<o){var i=Math.min(t,o-e);if(a.iterN(e,i,n))return!0;if(0==(t-=i))break;e=0}else e-=o}}};var ci=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function fi(e,t,n){an(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&oa(e,n)}function pi(e,t,n,r){var a=new ci(e,n,r),o=e.cm;return o&&a.noHScroll&&(o.display.alignWidgets=!0),li(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==a.insertAt?n.push(a):n.splice(Math.min(n.length-1,Math.max(0,a.insertAt)),0,a),a.line=t,o&&!nn(e,t)){var r=an(t)<e.scrollTop;Qe(t,t.height+Hn(a)),r&&oa(o,a.height),o.curOp.forceUpdate=!0}return!0})),o&&Sn(o,"lineWidgetAdded",o,a,"number"==typeof t?t:et(t)),a}ci.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=et(n);if(null!=r&&t){for(var a=0;a<t.length;++a)t[a]==this&&t.splice(a--,1);t.length||(n.widgets=null);var o=Hn(this);Qe(n,Math.max(0,n.height-o)),e&&(Aa(e,(function(){fi(e,n,-o),zr(e,r,"widget")})),Sn(e,"lineWidgetCleared",e,this,r))}},ci.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var a=Hn(this)-t;a&&(nn(this.doc,r)||Qe(r,r.height+a),n&&Aa(n,(function(){n.curOp.forceUpdate=!0,fi(n,r,a),Sn(n,"lineWidgetChanged",n,e,et(r))})))},_e(ci);var di=0,hi=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++di};function vi(e,t,n,r,a){if(r&&r.shared)return yi(e,t,n,r,a);if(e.cm&&!e.cm.curOp)return Pa(e.cm,vi)(e,t,n,r,a);var o=new hi(e,a),i=ot(t,n);if(r&&z(r,o,!1),i>0||0==i&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Xt(e,t.line,t,n,o)||t.line!=n.line&&Xt(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pt()}o.addToHistory&&Eo(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,s=t.line,u=e.cm;if(e.iter(s,n.line+1,(function(e){u&&o.collapsed&&!u.options.lineWrapping&&Zt(e)==u.display.maxLine&&(l=!0),o.collapsed&&s!=t.line&&Qe(e,0),It(e,new Lt(o,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){nn(e,t)&&Qe(t,0)})),o.clearOnEnter&&he(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(At(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++di,o.atomic=!0),u){if(l&&(u.curOp.updateMaxLine=!0),o.collapsed)Rr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)zr(u,c,"text");o.atomic&&Wo(u.doc),Sn(u,"markerAdded",u,o)}return o}hi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&wa(e),xe(this,"clear")){var n=this.find();n&&Sn(this,"clear",n.from,n.to)}for(var r=null,a=null,o=0;o<this.lines.length;++o){var i=this.lines[o],l=Dt(i.markedSpans,this);e&&!this.collapsed?zr(e,et(i),"text"):e&&(null!=l.to&&(a=et(i)),null!=l.from&&(r=et(i))),i.markedSpans=jt(i.markedSpans,l),null==l.from&&this.collapsed&&!nn(this.doc,i)&&e&&Qe(i,Sr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var u=Zt(this.lines[s]),c=on(u);c>e.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Rr(e,r,a+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Wo(e.doc)),e&&Sn(e,"markerCleared",e,this,r,a),t&&ka(e),this.parent&&this.parent.clear()}},hi.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var a=0;a<this.lines.length;++a){var o=this.lines[a],i=Dt(o.markedSpans,this);if(null!=i.from&&(n=at(t?o:et(o),i.from),-1==e))return n;if(null!=i.to&&(r=at(t?o:et(o),i.to),1==e))return r}return n&&{from:n,to:r}},hi.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Aa(r,(function(){var a=t.line,o=et(t.line),i=er(r,o);if(i&&(ur(i),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!nn(n.doc,a)&&null!=n.height){var l=n.height;n.height=null;var s=Hn(n)-l;s&&Qe(a,a.height+s)}Sn(r,"markerChanged",r,e)}))},hi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=B(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},hi.prototype.detachLine=function(e){if(this.lines.splice(B(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},_e(hi);var mi=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function yi(e,t,n,r,a){r=z(r),r.shared=!1;var o=[vi(e,t,n,r,a)],i=o[0],l=r.widgetNode;return yo(e,(function(e){l&&(r.widgetNode=l.cloneNode(!0)),o.push(vi(e,ft(e,t),ft(e,n),r,a));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;i=K(o)})),new mi(o,i)}function gi(e){return e.findMarks(at(e.first,0),e.clipPos(at(e.lastLine())),(function(e){return e.parent}))}function bi(e,t){for(var n=0;n<t.length;n++){var r=t[n],a=r.find(),o=e.clipPos(a.from),i=e.clipPos(a.to);if(ot(o,i)){var l=vi(e,o,i,r.primary,r.primary.type);r.markers.push(l),l.parent=r}}}function xi(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];yo(n.primary.doc,(function(e){return r.push(e)}));for(var a=0;a<n.markers.length;a++){var o=n.markers[a];-1==B(r,o.doc)&&(o.parent=null,n.markers.splice(a--,1))}},n=0;n<e.length;n++)t(n)}mi.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();Sn(this,"clear")}},mi.prototype.find=function(e,t){return this.primary.find(e,t)},_e(mi);var _i=0,wi=function(e,t,n,r,a){if(!(this instanceof wi))return new wi(e,t,n,r,a);null==n&&(n=0),ui.call(this,[new si([new sn("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=at(n,0);this.sel=io(o),this.history=new _o(null),this.id=++_i,this.modeOption=t,this.lineSep=r,this.direction="rtl"==a?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),mo(this,{from:o,to:o,text:e}),Vo(this,io(o),U)};wi.prototype=Q(ui.prototype,{constructor:wi,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Je(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:Da((function(e){var t=at(this.first,0),n=this.first+this.size-1;Zo(this,{from:t,to:at(n,Xe(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&la(this.cm,0,0),Vo(this,io(t),U)})),replaceRange:function(e,t,n,r){t=ft(this,t),n=n?ft(this,n):t,ri(this,e,t,n,r)},getRange:function(e,t,n){var r=Ze(this,ft(this,e),ft(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(nt(this,e))return Xe(this,e)},getLineNumber:function(e){return et(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Xe(this,e)),Zt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return ft(this,e)},getCursor:function(e){var t,n=this.sel.primary();return t=null==e||"head"==e?n.head:"anchor"==e?n.anchor:"end"==e||"to"==e||!1===e?n.to():n.from(),t},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Da((function(e,t,n){No(this,ft(this,"number"==typeof e?at(e,t||0):e),null,n)})),setSelection:Da((function(e,t,n){No(this,ft(this,e),ft(this,t||e),n)})),extendSelection:Da((function(e,t,n){Io(this,ft(this,e),t&&ft(this,t),n)})),extendSelections:Da((function(e,t){Ro(this,dt(this,e),t)})),extendSelectionsBy:Da((function(e,t){var n=X(this.sel.ranges,e);Ro(this,dt(this,n),t)})),setSelections:Da((function(e,t,n){if(e.length){for(var r=[],a=0;a<e.length;a++)r[a]=new ao(ft(this,e[a].anchor),ft(this,e[a].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Vo(this,oo(this.cm,r,t),n)}})),addSelection:Da((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ao(ft(this,e),ft(this,t||e))),Vo(this,oo(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var a=Ze(this,n[r].from(),n[r].to());t=t?t.concat(a):a}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var a=Ze(this,n[r].from(),n[r].to());!1!==e&&(a=a.join(e||this.lineSeparator())),t[r]=a}return t},replaceSelection:function(e,t,n){for(var r=[],a=0;a<this.sel.ranges.length;a++)r[a]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:Da((function(e,t,n){for(var r=[],a=this.sel,o=0;o<a.ranges.length;o++){var i=a.ranges[o];r[o]={from:i.from(),to:i.to(),text:this.splitLines(e[o]),origin:n}}for(var l=t&&"end"!=t&&fo(this,r,t),s=r.length-1;s>=0;s--)Zo(this,r[s]);l?Bo(this,l):this.cm&&ia(this.cm)})),undo:Da((function(){Qo(this,"undo")})),redo:Da((function(){Qo(this,"redo")})),undoSelection:Da((function(){Qo(this,"undo",!0)})),redoSelection:Da((function(){Qo(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var a=0;a<e.undone.length;a++)e.undone[a].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new _o(this.history.maxGeneration),yo(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Do(this.history.done),undone:Do(this.history.undone)}},setHistory:function(e){var t=this.history=new _o(this.history.maxGeneration);t.done=Do(e.done.slice(0),null,!0),t.undone=Do(e.undone.slice(0),null,!0)},setGutterMarker:Da((function(e,t,n){return li(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&re(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:Da((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&li(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,re(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!nt(this,e))return null;if(t=e,e=Xe(this,e),!e)return null}else if(t=et(e),null==t)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Da((function(e,t,n){return li(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(T(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:Da((function(e,t,n){return li(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",a=e[r];if(!a)return!1;if(null==n)e[r]=null;else{var o=a.match(T(n));if(!o)return!1;var i=o.index+o[0].length;e[r]=a.slice(0,o.index)+(o.index&&i!=a.length?" ":"")+a.slice(i)||null}return!0}))})),addLineWidget:Da((function(e,t,n){return pi(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return vi(this,ft(this,e),ft(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=ft(this,e),vi(this,e,e,n,"bookmark")},findMarksAt:function(e){e=ft(this,e);var t=[],n=Xe(this,e.line).markedSpans;if(n)for(var r=0;r<n.length;++r){var a=n[r];(null==a.from||a.from<=e.ch)&&(null==a.to||a.to>=e.ch)&&t.push(a.marker.parent||a.marker)}return t},findMarks:function(e,t,n){e=ft(this,e),t=ft(this,t);var r=[],a=e.line;return this.iter(e.line,t.line+1,(function(o){var i=o.markedSpans;if(i)for(var l=0;l<i.length;l++){var s=i[l];null!=s.to&&a==e.line&&e.ch>=s.to||null==s.from&&a!=e.line||null!=s.from&&a==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++a})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(a){var o=a.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),ft(this,at(n,t))},indexFromPos:function(e){e=ft(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new wi(Je(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new wi(Je(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],bi(r,gi(this)),r},unlinkDoc:function(e){if(e instanceof Rl&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var n=this.linked[t];if(n.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),xi(gi(this));break}}if(e.history==this.history){var r=[e.id];yo(e,(function(e){return r.push(e.id)}),!0),e.history=new _o(null),e.history.done=Do(this.history.done,r),e.history.undone=Do(this.history.undone,r)}},iterLinkedDocs:function(e){yo(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):De(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:Da((function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&xo(this.cm))}))}),wi.prototype.eachLine=wi.prototype.iter;var ki=0;function Ti(e){var t=this;if(Mi(t),!ge(t,e)&&!Un(t.display,e)){we(e),i&&(ki=+new Date);var n=jr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var a=r.length,o=Array(a),l=0,s=function(){++l==a&&Pa(t,(function(){n=ft(t.doc,n);var e={from:n,to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};Zo(t.doc,e),Bo(t.doc,io(ft(t.doc,n),ft(t.doc,lo(e))))}))()},u=function(e,n){if(t.options.allowDropFileTypes&&-1==B(t.options.allowDropFileTypes,e.type))s();else{var r=new FileReader;r.onerror=function(){return s()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),s()},r.readAsText(e)}},c=0;c<r.length;c++)u(r[c],c);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var f=e.dataTransfer.getData("Text");if(f){var p;if(t.state.draggingText&&!t.state.draggingText.copy&&(p=t.listSelections()),Ho(t.doc,io(n,n)),p)for(var d=0;d<p.length;++d)ri(t.doc,"",p[d].anchor,p[d].head,"drag");t.replaceSelection(f,"around","paste"),t.display.input.focus()}}catch(h){}}}}function Ei(e,t){if(i&&(!e.state.draggingText||+new Date-ki<100))Ee(t);else if(!ge(e,t)&&!Un(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!p)){var n=C("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),f&&n.parentNode.removeChild(n)}}function Oi(e,t){var n=jr(e,t);if(n){var r=document.createDocumentFragment();Wr(e,n,r),e.display.dragCursor||(e.display.dragCursor=C("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),S(e.display.dragCursor,r)}}function Mi(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Si(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var a=t[r].CodeMirror;a&&n.push(a)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Ci=!1;function Ai(){Ci||(Pi(),Ci=!0)}function Pi(){var e;he(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Si(Li)}),100))})),he(window,"blur",(function(){return Si(Zr)}))}function Li(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Di={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},ji=0;ji<10;ji++)Di[ji+48]=Di[ji+96]=String(ji);for(var Ii=65;Ii<=90;Ii++)Di[Ii]=String.fromCharCode(Ii);for(var Ri=1;Ri<=12;Ri++)Di[Ri+111]=Di[Ri+63235]="F"+Ri;var zi={};function Ni(e){var t,n,r,a,o=e.split(/-(?!$)/);e=o[o.length-1];for(var i=0;i<o.length-1;i++){var l=o[i];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else{if(!/^s(hift)?$/i.test(l))throw new Error("Unrecognized modifier name: "+l);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),a&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Fi(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var a=X(n.split(" "),Ni),o=0;o<a.length;o++){var i=void 0,l=void 0;o==a.length-1?(l=a.join(" "),i=r):(l=a.slice(0,o+1).join(" "),i="...");var s=t[l];if(s){if(s!=i)throw new Error("Inconsistent bindings for "+l)}else t[l]=i}delete e[n]}for(var u in t)e[u]=t[u];return e}function Bi(e,t,n,r){t=Wi(t);var a=t.call?t.call(e,r):t[e];if(!1===a)return"nothing";if("..."===a)return"multi";if(null!=a&&n(a))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Bi(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var i=Bi(e,t.fallthrough[o],n,r);if(i)return i}}}function Vi(e){var t="string"==typeof e?e:Di[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Hi(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(w?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(w?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ui(e,t){if(f&&34==e.keyCode&&e["char"])return!1;var n=Di[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Hi(n,e,t))}function Wi(e){return"string"==typeof e?zi[e]:e}function qi(e,t){for(var n=e.doc.sel.ranges,r=[],a=0;a<n.length;a++){var o=t(n[a]);while(r.length&&ot(o.from,K(r).to)<=0){var i=r.pop();if(ot(i.from,o.from)<0){o.from=i.from;break}}r.push(o)}Aa(e,(function(){for(var t=r.length-1;t>=0;t--)ri(e.doc,"",r[t].from,r[t].to,"+delete");ia(e)}))}function $i(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Gi(e,t,n){var r=$i(e,t.ch,n);return null==r?null:new at(t.line,r,n<0?"after":"before")}function Yi(e,t,n,r,a){if(e){"rtl"==t.doc.direction&&(a=-a);var o=pe(n,t.doc.direction);if(o){var i,l=a<0?K(o):o[0],s=a<0==(1==l.level),u=s?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var c=tr(t,n);i=a<0?n.text.length-1:0;var f=nr(t,c,i).top;i=le((function(e){return nr(t,c,e).top==f}),a<0==(1==l.level)?l.from:l.to-1,i),"before"==u&&(i=$i(n,i,1))}else i=a<0?l.to:l.from;return new at(r,i,u)}}return new at(r,a<0?n.text.length:0,a<0?"before":"after")}function Ki(e,t,n,r){var a=pe(t,e.doc.direction);if(!a)return Gi(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=ce(a,n.ch,n.sticky),i=a[o];if("ltr"==e.doc.direction&&i.level%2==0&&(r>0?i.to>n.ch:i.from<n.ch))return Gi(t,n,r);var l,s=function(e,n){return $i(t,e instanceof at?e.ch:e,n)},u=function(n){return e.options.lineWrapping?(l=l||tr(e,t),kr(e,t,l,n)):{begin:0,end:t.text.length}},c=u("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==i.level){var f=1==i.level==r<0,p=s(n,f?1:-1);if(null!=p&&(f?p<=i.to&&p<=c.end:p>=i.from&&p>=c.begin)){var d=f?"before":"after";return new at(n.line,p,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new at(n.line,s(e,1),"before"):new at(n.line,e,"after")};e>=0&&e<a.length;e+=t){var i=a[e],l=t>0==(1!=i.level),u=l?r.begin:s(r.end,-1);if(i.from<=u&&u<i.to)return o(u,l);if(u=l?i.from:s(i.to,-1),r.begin<=u&&u<r.end)return o(u,l)}},v=h(o+r,r,c);if(v)return v;var m=r>0?c.end:s(c.begin,-1);return null==m||r>0&&m==t.text.length||(v=h(r>0?0:a.length-1,r,u(m)),!v)?null:v}zi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},zi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},zi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},zi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},zi["default"]=g?zi.macDefault:zi.pcDefault;var Xi={selectAll:Ko,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),U)},killLine:function(e){return qi(e,(function(t){if(t.empty()){var n=Xe(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:at(t.head.line+1,0)}:{from:t.head,to:at(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return qi(e,(function(t){return{from:at(t.from().line,0),to:ft(e.doc,at(t.to().line+1,0))}}))},delLineLeft:function(e){return qi(e,(function(e){return{from:at(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return qi(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return{from:r,to:t.from()}}))},delWrappedLineRight:function(e){return qi(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(at(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(at(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return Zi(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return Qi(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return Ji(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),q)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),q)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?Qi(e,t.head):r}),q)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,a=0;a<n.length;a++){var o=n[a].from(),i=N(e.getLine(o.line),o.ch,r);t.push(Y(r-i%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Aa(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var a=t[r].head,o=Xe(e.doc,a.line).text;if(o)if(a.ch==o.length&&(a=new at(a.line,a.ch-1)),a.ch>0)a=new at(a.line,a.ch+1),e.replaceRange(o.charAt(a.ch-1)+o.charAt(a.ch-2),at(a.line,a.ch-2),a,"+transpose");else if(a.line>e.doc.first){var i=Xe(e.doc,a.line-1).text;i&&(a=new at(a.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+i.charAt(i.length-1),at(a.line-1,i.length-1),a,"+transpose"))}n.push(new ao(a,a))}e.setSelections(n)}))},newlineAndIndent:function(e){return Aa(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);ia(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Zi(e,t){var n=Xe(e.doc,t),r=Zt(n);return r!=n&&(t=et(r)),Yi(!0,e,r,t,1)}function Ji(e,t){var n=Xe(e.doc,t),r=Jt(n);return r!=n&&(t=et(r)),Yi(!0,e,n,t,-1)}function Qi(e,t){var n=Zi(e,t.line),r=Xe(e.doc,n.line),a=pe(r,e.doc.direction);if(!a||0==a[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),i=t.line==n.line&&t.ch<=o&&t.ch;return at(n.line,i?0:o,n.sticky)}return n}function el(e,t,n){if("string"==typeof t&&(t=Xi[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),a=t(e)!=H}finally{e.display.shift=r,e.state.suppressEdits=!1}return a}function tl(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var a=Bi(t,e.state.keyMaps[r],n,e);if(a)return a}return e.options.extraKeys&&Bi(t,e.options.extraKeys,n,e)||Bi(t,e.options.keyMap,n,e)}var nl=new F;function rl(e,t,n,r){var a=e.state.keySeq;if(a){if(Vi(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:nl.set(50,(function(){e.state.keySeq==a&&(e.state.keySeq=null,e.display.input.reset())})),al(e,a+" "+t,n,r))return!0}return al(e,t,n,r)}function al(e,t,n,r){var a=tl(e,t,r);return"multi"==a&&(e.state.keySeq=t),"handled"==a&&Sn(e,"keyHandled",e,t,n),"handled"!=a&&"multi"!=a||(we(n),Gr(e)),!!a}function ol(e,t){var n=Ui(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?rl(e,"Shift-"+n,t,(function(t){return el(e,t,!0)}))||rl(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return el(e,t)})):rl(e,n,t,(function(t){return el(e,t)})))}function il(e,t,n){return rl(e,"'"+n+"'",t,(function(t){return el(e,t,!0)}))}var ll=null;function sl(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&(t.curOp.focus=L(),!ge(t,e))){i&&l<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var a=ol(t,e);f&&(ll=a?r:null,a||88!=r||Ie||!(g?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!g&&!a&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||ul(t)}}function ul(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(O(t,"CodeMirror-crosshair"),me(document,"keyup",n),me(document,"mouseover",n))}D(t,"CodeMirror-crosshair"),he(document,"keyup",n),he(document,"mouseover",n)}function cl(e){16==e.keyCode&&(this.doc.sel.shift=!1),ge(this,e)}function fl(e){var t=this;if((!e.target||e.target==t.display.input.getField())&&!(Un(t.display,e)||ge(t,e)||e.ctrlKey&&!e.altKey||g&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(f&&n==ll)return ll=null,void we(e);if(!f||e.which&&!(e.which<10)||!ol(t,e)){var a=String.fromCharCode(null==r?n:r);"\b"!=a&&(il(t,e,a)||t.display.input.onKeyPress(e))}}}var pl,dl,hl=400,vl=function(e,t,n){this.time=e,this.pos=t,this.button=n};function ml(e,t){var n=+new Date;return dl&&dl.compare(n,e,t)?(pl=dl=null,"triple"):pl&&pl.compare(n,e,t)?(dl=new vl(n,e,t),pl=null,"double"):(pl=new vl(n,e,t),dl=null,"single")}function yl(e){var t=this,n=t.display;if(!(ge(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Un(n,e))s||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!Ol(t,e)){var r=jr(t,e),a=Me(e),o=r?ml(r,a):"single";window.focus(),1==a&&t.state.selectingText&&t.state.selectingText(e),r&&gl(t,a,r,o,e)||(1==a?r?xl(t,r,o,e):Oe(e)==n.scroller&&we(e):2==a?(r&&Io(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==a&&(k?t.display.input.onContextMenu(e):Kr(t)))}}function gl(e,t,n,r,a){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),o=(1==t?"Left":2==t?"Middle":"Right")+o,rl(e,Hi(o,a),a,(function(t){if("string"==typeof t&&(t=Xi[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=H}finally{e.state.suppressEdits=!1}return r}))}function bl(e,t,n){var r=e.getOption("configureMouse"),a=r?r(e,t,n):{};if(null==a.unit){var o=b?n.shiftKey&&n.metaKey:n.altKey;a.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==a.extend||e.doc.extend)&&(a.extend=e.doc.extend||n.shiftKey),null==a.addNew&&(a.addNew=g?n.metaKey:n.ctrlKey),null==a.moveOnDrag&&(a.moveOnDrag=!(g?n.altKey:n.ctrlKey)),a}function xl(e,t,n,r){i?setTimeout(R(Yr,e),0):e.curOp.focus=L();var a,o=bl(e,n,r),l=e.doc.sel;e.options.dragDrop&&Ae&&!e.isReadOnly()&&"single"==n&&(a=l.contains(t))>-1&&(ot((a=l.ranges[a]).from(),t)<0||t.xRel>0)&&(ot(a.to(),t)>0||t.xRel<0)?_l(e,r,t,o):kl(e,r,t,o)}function _l(e,t,n,r){var a=e.display,o=!1,u=Pa(e,(function(t){s&&(a.scroller.draggable=!1),e.state.draggingText=!1,me(a.wrapper.ownerDocument,"mouseup",u),me(a.wrapper.ownerDocument,"mousemove",c),me(a.scroller,"dragstart",f),me(a.scroller,"drop",u),o||(we(t),r.addNew||Io(e.doc,n,null,null,r.extend),s&&!p||i&&9==l?setTimeout((function(){a.wrapper.ownerDocument.body.focus({preventScroll:!0}),a.input.focus()}),20):a.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},f=function(){return o=!0};s&&(a.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,a.scroller.dragDrop&&a.scroller.dragDrop(),he(a.wrapper.ownerDocument,"mouseup",u),he(a.wrapper.ownerDocument,"mousemove",c),he(a.scroller,"dragstart",f),he(a.scroller,"drop",u),Kr(e),setTimeout((function(){return a.input.focus()}),20)}function wl(e,t,n){if("char"==n)return new ao(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ao(at(t.line,0),ft(e.doc,at(t.line+1,0)));var r=n(e,t);return new ao(r.from,r.to)}function kl(e,t,n,r){var a=e.display,o=e.doc;we(t);var i,l,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),i=l>-1?u[l]:new ao(n,n)):(i=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(i=new ao(n,n)),n=jr(e,t,!0,!0),l=-1;else{var c=wl(e,n,r.unit);i=r.extend?jo(i,c.anchor,c.head,r.extend):c}r.addNew?-1==l?(l=u.length,Vo(o,oo(e,u.concat([i]),l),{scroll:!1,origin:"*mouse"})):u.length>1&&u[l].empty()&&"char"==r.unit&&!r.extend?(Vo(o,oo(e,u.slice(0,l).concat(u.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):zo(o,l,i,W):(l=0,Vo(o,new ro([i],0),W),s=o.sel);var f=n;function p(t){if(0!=ot(f,t))if(f=t,"rectangle"==r.unit){for(var a=[],u=e.options.tabSize,c=N(Xe(o,n.line).text,n.ch,u),p=N(Xe(o,t.line).text,t.ch,u),d=Math.min(c,p),h=Math.max(c,p),v=Math.min(n.line,t.line),m=Math.min(e.lastLine(),Math.max(n.line,t.line));v<=m;v++){var y=Xe(o,v).text,g=$(y,d,u);d==h?a.push(new ao(at(v,g),at(v,g))):y.length>g&&a.push(new ao(at(v,g),at(v,$(y,h,u))))}a.length||a.push(new ao(n,n)),Vo(o,oo(e,s.ranges.slice(0,l).concat(a),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var b,x=i,_=wl(e,t,r.unit),w=x.anchor;ot(_.anchor,w)>0?(b=_.head,w=ut(x.from(),_.anchor)):(b=_.anchor,w=st(x.to(),_.head));var k=s.ranges.slice(0);k[l]=Tl(e,new ao(ft(o,w),b)),Vo(o,oo(e,k,l),W)}}var d=a.wrapper.getBoundingClientRect(),h=0;function v(t){var n=++h,i=jr(e,t,!0,"rectangle"==r.unit);if(i)if(0!=ot(i,f)){e.curOp.focus=L(),p(i);var l=ea(a,o);(i.line>=l.to||i.line<l.from)&&setTimeout(Pa(e,(function(){h==n&&v(t)})),150)}else{var s=t.clientY<d.top?-20:t.clientY>d.bottom?20:0;s&&setTimeout(Pa(e,(function(){h==n&&(a.scroller.scrollTop+=s,v(t))})),50)}}function m(t){e.state.selectingText=!1,h=1/0,t&&(we(t),a.input.focus()),me(a.wrapper.ownerDocument,"mousemove",y),me(a.wrapper.ownerDocument,"mouseup",g),o.history.lastSelOrigin=null}var y=Pa(e,(function(e){0!==e.buttons&&Me(e)?v(e):m(e)})),g=Pa(e,m);e.state.selectingText=g,he(a.wrapper.ownerDocument,"mousemove",y),he(a.wrapper.ownerDocument,"mouseup",g)}function Tl(e,t){var n=t.anchor,r=t.head,a=Xe(e.doc,n.line);if(0==ot(n,r)&&n.sticky==r.sticky)return t;var o=pe(a);if(!o)return t;var i=ce(o,n.ch,n.sticky),l=o[i];if(l.from!=n.ch&&l.to!=n.ch)return t;var s,u=i+(l.from==n.ch==(1!=l.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=ce(o,r.ch,r.sticky),f=c-i||(r.ch-n.ch)*(1==l.level?-1:1);s=c==u-1||c==u?f<0:f>0}var p=o[u+(s?-1:0)],d=s==(1==p.level),h=d?p.from:p.to,v=d?"after":"before";return n.ch==h&&n.sticky==v?t:new ao(new at(n.line,h,v),r)}function El(e,t,n,r){var a,o;if(t.touches)a=t.touches[0].clientX,o=t.touches[0].clientY;else try{a=t.clientX,o=t.clientY}catch(p){return!1}if(a>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&we(t);var i=e.display,l=i.lineDiv.getBoundingClientRect();if(o>l.bottom||!xe(e,n))return Te(t);o-=l.top-i.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var u=i.gutters.childNodes[s];if(u&&u.getBoundingClientRect().right>=a){var c=tt(e.doc,o),f=e.display.gutterSpecs[s];return ye(e,n,e,c,f.className,t),Te(t)}}}function Ol(e,t){return El(e,t,"gutterClick",!0)}function Ml(e,t){Un(e.display,t)||Sl(e,t)||ge(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function Sl(e,t){return!!xe(e,"gutterContextMenu")&&El(e,t,"gutterContextMenu",!1)}function Cl(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),fr(e)}vl.prototype.compare=function(e,t,n){return this.time+hl>e&&0==ot(t,this.pos)&&n==this.button};var Al={toString:function(){return"CodeMirror.Init"}},Pl={},Ll={};function Dl(e){var t=e.optionHandlers;function n(n,r,a,o){e.defaults[n]=r,a&&(t[n]=o?function(e,t,n){n!=Al&&a(e,t,n)}:a)}e.defineOption=n,e.Init=Al,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,po(e)}),!0),n("indentUnit",2,po,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){ho(e),fr(e),Rr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var a=0;;){var o=e.text.indexOf(t,a);if(-1==o)break;a=o+t.length,n.push(at(r,o))}r++}));for(var a=n.length-1;a>=0;a--)ri(e.doc,t,n[a],at(n[a].line,n[a].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Al&&e.refresh()})),n("specialCharPlaceholder",vn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Cl(e),Xa(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Wi(t),a=n!=Al&&Wi(n);a&&a.detach&&a.detach(e,r),r.attach&&r.attach(e,a||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Il,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Ya(t,e.options.lineNumbers),Xa(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Pr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return ya(e)}),!0),n("scrollbarStyle","native",(function(e){xa(e),ya(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Ya(e.options.gutters,t),Xa(e)}),!0),n("firstLineNumber",1,Xa,!0),n("lineNumberFormatter",(function(e){return e}),Xa,!0),n("showCursorWhenSelecting",!1,Hr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Zr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,jl),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Hr,!0),n("singleCursorHeightPerLine",!0,Hr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,ho,!0),n("addModeClass",!1,ho,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,ho,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function jl(e,t,n){var r=n&&n!=Al;if(!t!=!r){var a=e.display.dragFunctions,o=t?he:me;o(e.display.scroller,"dragstart",a.start),o(e.display.scroller,"dragenter",a.enter),o(e.display.scroller,"dragover",a.over),o(e.display.scroller,"dragleave",a.leave),o(e.display.scroller,"drop",a.drop)}}function Il(e){e.options.lineWrapping?(D(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(O(e.display.wrapper,"CodeMirror-wrap"),ln(e)),Dr(e),Rr(e),fr(e),setTimeout((function(){return ya(e)}),100)}function Rl(e,t){var n=this;if(!(this instanceof Rl))return new Rl(e,t);this.options=t=t?z(t):{},z(Pl,t,!1);var r=t.value;"string"==typeof r?r=new wi(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var a=new Rl.inputStyles[t.inputStyle](this),o=this.display=new Za(e,r,a,t);for(var u in o.wrapper.CodeMirror=this,Cl(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),xa(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),i&&l<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),zl(this),Ai(),wa(this),this.curOp.forceUpdate=!0,go(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout(R(Xr,this),20):Zr(this),Ll)Ll.hasOwnProperty(u)&&Ll[u](this,t[u],Al);Ga(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Nl.length;++c)Nl[c](this);ka(this),s&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function zl(e){var t=e.display;he(t.scroller,"mousedown",Pa(e,yl)),he(t.scroller,"dblclick",i&&l<11?Pa(e,(function(t){if(!ge(e,t)){var n=jr(e,t);if(n&&!Ol(e,t)&&!Un(e.display,t)){we(t);var r=e.findWordAt(n);Io(e.doc,r.anchor,r.head)}}})):function(t){return ge(e,t)||we(t)}),he(t.scroller,"contextmenu",(function(t){return Ml(e,t)})),he(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||Ml(e,n)}));var n,r={end:0};function a(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),r=t.activeTouch,r.end=+new Date)}function o(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function s(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}he(t.scroller,"touchstart",(function(a){if(!ge(e,a)&&!o(a)&&!Ol(e,a)){t.input.ensurePolled(),clearTimeout(n);var i=+new Date;t.activeTouch={start:i,moved:!1,prev:i-r.end<=300?r:null},1==a.touches.length&&(t.activeTouch.left=a.touches[0].pageX,t.activeTouch.top=a.touches[0].pageY)}})),he(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),he(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Un(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,i=e.coordsChar(t.activeTouch,"page");o=!r.prev||s(r,r.prev)?new ao(i,i):!r.prev.prev||s(r,r.prev.prev)?e.findWordAt(i):new ao(at(i.line,0),ft(e.doc,at(i.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),we(n)}a()})),he(t.scroller,"touchcancel",a),he(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(fa(e,t.scroller.scrollTop),da(e,t.scroller.scrollLeft,!0),ye(e,"scroll",e))})),he(t.scroller,"mousewheel",(function(t){return no(e,t)})),he(t.scroller,"DOMMouseScroll",(function(t){return no(e,t)})),he(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){ge(e,t)||Ee(t)},over:function(t){ge(e,t)||(Oi(e,t),Ee(t))},start:function(t){return Ei(e,t)},drop:Pa(e,Ti),leave:function(t){ge(e,t)||Mi(e)}};var u=t.input.getField();he(u,"keyup",(function(t){return cl.call(e,t)})),he(u,"keydown",Pa(e,sl)),he(u,"keypress",Pa(e,fl)),he(u,"focus",(function(t){return Xr(e,t)})),he(u,"blur",(function(t){return Zr(e,t)}))}Rl.defaults=Pl,Rl.optionHandlers=Ll;var Nl=[];function Fl(e,t,n,r){var a,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?a=gt(e,t).state:n="prev");var i=e.options.tabSize,l=Xe(o,t),s=N(l.text,null,i);l.stateAfter&&(l.stateAfter=null);var u,c=l.text.match(/^\s*/)[0];if(r||/\S/.test(l.text)){if("smart"==n&&(u=o.mode.indent(a,l.text.slice(c.length),l.text),u==H||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?N(Xe(o,t-1).text,null,i):0:"add"==n?u=s+e.options.indentUnit:"subtract"==n?u=s-e.options.indentUnit:"number"==typeof n&&(u=s+n),u=Math.max(0,u);var f="",p=0;if(e.options.indentWithTabs)for(var d=Math.floor(u/i);d;--d)p+=i,f+="\t";if(p<u&&(f+=Y(u-p)),f!=c)return ri(o,f,at(t,0),at(t,c.length),"+input"),l.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var v=o.sel.ranges[h];if(v.head.line==t&&v.head.ch<c.length){var m=at(t,c.length);zo(o,h,new ao(m,m));break}}}Rl.defineInitHook=function(e){return Nl.push(e)};var Bl=null;function Vl(e){Bl=e}function Hl(e,t,n,r,a){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var i=+new Date-200,l="paste"==a||e.state.pasteIncoming>i,s=De(t),u=null;if(l&&r.ranges.length>1)if(Bl&&Bl.text.join("\n")==t){if(r.ranges.length%Bl.text.length==0){u=[];for(var c=0;c<Bl.text.length;c++)u.push(o.splitLines(Bl.text[c]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(u=X(s,(function(e){return[e]})));for(var f=e.curOp.updateInput,p=r.ranges.length-1;p>=0;p--){var d=r.ranges[p],h=d.from(),v=d.to();d.empty()&&(n&&n>0?h=at(h.line,h.ch-n):e.state.overwrite&&!l?v=at(v.line,Math.min(Xe(o,v.line).text.length,v.ch+K(s).length)):l&&Bl&&Bl.lineWise&&Bl.text.join("\n")==s.join("\n")&&(h=v=at(h.line,0)));var m={from:h,to:v,text:u?u[p%u.length]:s,origin:a||(l?"paste":e.state.cutIncoming>i?"cut":"+input")};Zo(e.doc,m),Sn(e,"inputRead",e,m)}t&&!l&&Wl(e,t),ia(e),e.curOp.updateInput<2&&(e.curOp.updateInput=f),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ul(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Aa(t,(function(){return Hl(t,n,0,null,"paste")})),!0}function Wl(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var a=n.ranges[r];if(!(a.head.ch>100||r&&n.ranges[r-1].head.line==a.head.line)){var o=e.getModeAt(a.head),i=!1;if(o.electricChars){for(var l=0;l<o.electricChars.length;l++)if(t.indexOf(o.electricChars.charAt(l))>-1){i=Fl(e,a.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(Xe(e.doc,a.head.line).text.slice(0,a.head.ch))&&(i=Fl(e,a.head.line,"smart"));i&&Sn(e,"electricInput",e,a.head.line)}}}function ql(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var a=e.doc.sel.ranges[r].head.line,o={anchor:at(a,0),head:at(a+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function $l(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Gl(){var e=C("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=C("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return s?e.style.width="1000px":e.setAttribute("wrap","off"),v&&(e.style.border="1px solid black"),$l(e),t}function Yl(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,a=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&Pa(this,t[e])(this,n,a),ye(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Wi(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:La((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");Z(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,Rr(this)})),removeOverlay:La((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void Rr(this)}})),indentLine:La((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),nt(this.doc,e)&&Fl(this,e,t,n)})),indentSelection:La((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var a=t[r];if(a.empty())a.head.line>n&&(Fl(this,a.head.line,e,!0),n=a.head.line,r==this.doc.sel.primIndex&&ia(this));else{var o=a.from(),i=a.to(),l=Math.max(n,o.line);n=Math.min(this.lastLine(),i.line-(i.ch?0:1))+1;for(var s=l;s<n;++s)Fl(this,s,e);var u=this.doc.sel.ranges;0==o.ch&&t.length==u.length&&u[r].from().ch>0&&zo(this.doc,r,new ao(o,u[r].to()),U)}}})),getTokenAt:function(e,t){return kt(this,e,t)},getLineTokens:function(e,t){return kt(this,at(e),t,!0)},getTokenTypeAt:function(e){e=ft(this.doc,e);var t,n=yt(this,Xe(this.doc,e.line)),r=0,a=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var i=r+a>>1;if((i?n[2*i-1]:0)>=o)a=i;else{if(!(n[2*i+1]<o)){t=n[2*i+2];break}r=i+1}}var l=t?t.indexOf("overlay "):-1;return l<0?t:0==l?null:t.slice(0,l-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var a=n[t],o=this.getModeAt(e);if("string"==typeof o[t])a[o[t]]&&r.push(a[o[t]]);else if(o[t])for(var i=0;i<o[t].length;i++){var l=a[o[t][i]];l&&r.push(l)}else o.helperType&&a[o.helperType]?r.push(a[o.helperType]):a[o.name]&&r.push(a[o.name]);for(var s=0;s<a._global.length;s++){var u=a._global[s];u.pred(o,this)&&-1==B(r,u.val)&&r.push(u.val)}return r},getStateAfter:function(e,t){var n=this.doc;return e=ct(n,null==e?n.first+n.size-1:e),gt(this,e+1,t).state},cursorCoords:function(e,t){var n,r=this.doc.sel.primary();return n=null==e?r.head:"object"==typeof e?ft(this.doc,e):e?r.from():r.to(),gr(this,n,t||"page")},charCoords:function(e,t){return yr(this,ft(this.doc,e),t||"page")},coordsChar:function(e,t){return e=mr(this,e,t||"page"),_r(this,e.left,e.top)},lineAtHeight:function(e,t){return e=mr(this,{top:e,left:0},t||"page").top,tt(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,a=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,a=!0),r=Xe(this.doc,e)}else r=e;return vr(this,r,{top:0,left:0},t||"page",n||a).top+(a?this.doc.height-an(r):0)},defaultTextHeight:function(){return Sr(this.display)},defaultCharWidth:function(){return Cr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,a){var o=this.display;e=gr(this,ft(this.doc,e));var i=e.bottom,l=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)i=e.top;else if("above"==r||"near"==r){var s=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>s)&&e.top>t.offsetHeight?i=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=s&&(i=e.bottom),l+t.offsetWidth>u&&(l=u-t.offsetWidth)}t.style.top=i+"px",t.style.left=t.style.right="","right"==a?(l=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==a?l=0:"middle"==a&&(l=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=l+"px"),n&&ra(this,{left:l,top:i,right:l+t.offsetWidth,bottom:i+t.offsetHeight})},triggerOnKeyDown:La(sl),triggerOnKeyPress:La(fl),triggerOnKeyUp:cl,triggerOnMouseDown:La(yl),execCommand:function(e){if(Xi.hasOwnProperty(e))return Xi[e].call(null,this)},triggerElectric:La((function(e){Wl(this,e)})),findPosH:function(e,t,n,r){var a=1;t<0&&(a=-1,t=-t);for(var o=ft(this.doc,e),i=0;i<t;++i)if(o=Kl(this.doc,o,a,n,r),o.hitSide)break;return o},moveH:La((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Kl(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),q)})),deleteH:La((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):qi(this,(function(n){var a=Kl(r,n.head,e,t,!1);return e<0?{from:a,to:n.head}:{from:n.head,to:a}}))})),findPosV:function(e,t,n,r){var a=1,o=r;t<0&&(a=-1,t=-t);for(var i=ft(this.doc,e),l=0;l<t;++l){var s=gr(this,i,"div");if(null==o?o=s.left:s.left=o,i=Xl(this,s,a,n),i.hitSide)break}return i},moveV:La((function(e,t){var n=this,r=this.doc,a=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(i){if(o)return e<0?i.from():i.to();var l=gr(n,i.head,"div");null!=i.goalColumn&&(l.left=i.goalColumn),a.push(l.left);var s=Xl(n,l,e,t);return"page"==t&&i==r.sel.primary()&&oa(n,yr(n,s,"div").top-l.top),s}),q),a.length)for(var i=0;i<r.sel.ranges.length;i++)r.sel.ranges[i].goalColumn=a[i]})),findWordAt:function(e){var t=this.doc,n=Xe(t,e.line).text,r=e.ch,a=e.ch;if(n){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&a!=n.length||!r?++a:--r;var i=n.charAt(r),l=ne(i,o)?function(e){return ne(e,o)}:/\s/.test(i)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ne(e)};while(r>0&&l(n.charAt(r-1)))--r;while(a<n.length&&l(n.charAt(a)))++a}return new ao(at(e.line,r),at(e.line,a))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?D(this.display.cursorDiv,"CodeMirror-overwrite"):O(this.display.cursorDiv,"CodeMirror-overwrite"),ye(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==L()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:La((function(e,t){la(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Gn(this)-this.display.barHeight,width:e.scrollWidth-Gn(this)-this.display.barWidth,clientHeight:Kn(this),clientWidth:Yn(this)}},scrollIntoView:La((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:at(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?sa(this,e):ca(this,e.from,e.to,e.margin)})),setSize:La((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&cr(this);var a=this.display.viewFrom;this.doc.iter(a,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){zr(n,a,"widget");break}++a})),this.curOp.forceUpdate=!0,ye(this,"refresh",this)})),operation:function(e){return Aa(this,e)},startOperation:function(){return wa(this)},endOperation:function(){return ka(this)},refresh:La((function(){var e=this.display.cachedTextHeight;Rr(this),this.curOp.forceUpdate=!0,fr(this),la(this,this.doc.scrollLeft,this.doc.scrollTop),Wa(this.display),(null==e||Math.abs(e-Sr(this.display))>.5||this.options.lineWrapping)&&Dr(this),ye(this,"refresh",this)})),swapDoc:La((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),go(this,e),fr(this),this.display.input.reset(),la(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Sn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},_e(e),e.registerHelper=function(t,r,a){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=a},e.registerGlobalHelper=function(t,r,a,o){e.registerHelper(t,r,o),n[t]._global.push({pred:a,val:o})}}function Kl(e,t,n,r,a){var o=t,i=n,l=Xe(e,t.line),s=a&&"rtl"==e.direction?-n:n;function u(){var n=t.line+s;return!(n<e.first||n>=e.first+e.size)&&(t=new at(n,t.ch,t.sticky),l=Xe(e,n))}function c(r){var o;if(o=a?Ki(e.cm,l,t,n):Gi(l,t,n),null==o){if(r||!u())return!1;t=Yi(a,e.cm,l,t.line,s)}else t=o;return!0}if("char"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var f=null,p="group"==r,d=e.cm&&e.cm.getHelper(t,"wordChars"),h=!0;;h=!1){if(n<0&&!c(!h))break;var v=l.text.charAt(t.ch)||"\n",m=ne(v,d)?"w":p&&"\n"==v?"n":!p||/\s/.test(v)?null:"p";if(!p||h||m||(m="s"),f&&f!=m){n<0&&(n=1,c(),t.sticky="after");break}if(m&&(f=m),n>0&&!c(!h))break}var y=Go(e,t,o,i,!0);return it(o,y)&&(y.hitSide=!0),y}function Xl(e,t,n,r){var a,o,i=e.doc,l=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*Sr(e.display),3);a=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(a=n>0?t.bottom+3:t.top-3);for(;;){if(o=_r(e,l,a),!o.outside)break;if(n<0?a<=0:a>=i.height){o.hitSide=!0;break}a+=5*n}return o}var Zl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Jl(e,t){var n=er(e,t.line);if(!n||n.hidden)return null;var r=Xe(e.doc,t.line),a=Zn(n,r,t.line),o=pe(r,e.doc.direction),i="left";if(o){var l=ce(o,t.ch);i=l%2?"right":"left"}var s=or(a.map,t.ch,i);return s.offset="right"==s.collapse?s.end:s.start,s}function Ql(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function es(e,t){return t&&(e.bad=!0),e}function ts(e,t,n,r,a){var o="",i=!1,l=e.doc.lineSeparator(),s=!1;function u(e){return function(t){return t.id==e}}function c(){i&&(o+=l,s&&(o+=l),i=s=!1)}function f(e){e&&(c(),o+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void f(n);var o,d=t.getAttribute("cm-marker");if(d){var h=e.findMarks(at(r,0),at(a+1,0),u(+d));return void(h.length&&(o=h[0].find(0))&&f(Ze(e.doc,o.from,o.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var v=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;v&&c();for(var m=0;m<t.childNodes.length;m++)p(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(s=!0),v&&(i=!0)}else 3==t.nodeType&&f(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;;){if(p(t),t==n)break;t=t.nextSibling,s=!1}return o}function ns(e,t,n){var r;if(t==e.display.lineDiv){if(r=e.display.lineDiv.childNodes[n],!r)return es(e.clipPos(at(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var a=0;a<e.display.view.length;a++){var o=e.display.view[a];if(o.node==r)return rs(o,t,n)}}function rs(e,t,n){var r=e.text.firstChild,a=!1;if(!t||!P(r,t))return es(at(et(e.line),0),!0);if(t==r&&(a=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?K(e.rest):e.line;return es(at(et(o),o.text.length),a)}var i=3==t.nodeType?t:null,l=t;i||1!=t.childNodes.length||3!=t.firstChild.nodeType||(i=t.firstChild,n&&(n=i.nodeValue.length));while(l.parentNode!=r)l=l.parentNode;var s=e.measure,u=s.maps;function c(t,n,r){for(var a=-1;a<(u?u.length:0);a++)for(var o=a<0?s.map:u[a],i=0;i<o.length;i+=3){var l=o[i+2];if(l==t||l==n){var c=et(a<0?e.line:e.rest[a]),f=o[i]+r;return(r<0||l!=t)&&(f=o[i+(r?1:0)]),at(c,f)}}}var f=c(i,l,n);if(f)return es(f,a);for(var p=l.nextSibling,d=i?i.nodeValue.length-n:0;p;p=p.nextSibling){if(f=c(p,p.firstChild,0),f)return es(at(f.line,f.ch-d),a);d+=p.textContent.length}for(var h=l.previousSibling,v=n;h;h=h.previousSibling){if(f=c(h,h.firstChild,-1),f)return es(at(f.line,f.ch+v),a);v+=h.textContent.length}}Zl.prototype.init=function(e){var t=this,n=this,r=n.cm,a=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==a)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function i(e){if(o(e)&&!ge(r,e)){if(r.somethingSelected())Vl({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=ql(r);Vl({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,U),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var i=Bl.text.join("\n");if(e.clipboardData.setData("Text",i),e.clipboardData.getData("Text")==i)return void e.preventDefault()}var l=Gl(),s=l.firstChild;r.display.lineSpace.insertBefore(l,r.display.lineSpace.firstChild),s.value=Bl.text.join("\n");var u=document.activeElement;I(s),setTimeout((function(){r.display.lineSpace.removeChild(l),u.focus(),u==a&&n.showPrimarySelection()}),50)}}$l(a,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),he(a,"paste",(function(e){!o(e)||ge(r,e)||Ul(e,r)||l<=11&&setTimeout(Pa(r,(function(){return t.updateFromDOM()})),20)})),he(a,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),he(a,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),he(a,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),he(a,"touchstart",(function(){return n.forceCompositionEnd()})),he(a,"input",(function(){t.composing||t.readFromDOMSoon()})),he(a,"copy",i),he(a,"cut",i)},Zl.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Zl.prototype.prepareSelection=function(){var e=Ur(this.cm,!1);return e.focus=document.activeElement==this.div,e},Zl.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Zl.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Zl.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),a=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||a.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var i=ns(t,e.anchorNode,e.anchorOffset),l=ns(t,e.focusNode,e.focusOffset);if(!i||i.bad||!l||l.bad||0!=ot(ut(i,l),a)||0!=ot(st(i,l),o)){var s=t.display.view,u=a.line>=t.display.viewFrom&&Jl(t,a)||{node:s[0].measure.map[2],offset:0},c=o.line<t.display.viewTo&&Jl(t,o);if(!c){var f=s[s.length-1].measure,p=f.maps?f.maps[f.maps.length-1]:f.map;c={node:p[p.length-1],offset:p[p.length-2]-p[p.length-3]}}if(u&&c){var d,h=e.rangeCount&&e.getRangeAt(0);try{d=E(u.node,u.offset,c.offset,c.node)}catch(v){}d&&(!n&&t.state.focused?(e.collapse(u.node,u.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},Zl.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},Zl.prototype.showMultipleSelections=function(e){S(this.cm.display.cursorDiv,e.cursors),S(this.cm.display.selectionDiv,e.selection)},Zl.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Zl.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return P(this.div,t)},Zl.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Zl.prototype.blur=function(){this.div.blur()},Zl.prototype.getField=function(){return this.div},Zl.prototype.supportsTouch=function(){return!0},Zl.prototype.receivedFocus=function(){var e=this;function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}this.selectionInEditor()?this.pollSelection():Aa(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,t)},Zl.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Zl.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(m&&c&&this.cm.display.gutterSpecs.length&&Ql(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=ns(t,e.anchorNode,e.anchorOffset),r=ns(t,e.focusNode,e.focusOffset);n&&r&&Aa(t,(function(){Vo(t.doc,io(n,r),U),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},Zl.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,a=r.display,o=r.doc.sel.primary(),i=o.from(),l=o.to();if(0==i.ch&&i.line>r.firstLine()&&(i=at(i.line-1,Xe(r.doc,i.line-1).length)),l.ch==Xe(r.doc,l.line).text.length&&l.line<r.lastLine()&&(l=at(l.line+1,0)),i.line<a.viewFrom||l.line>a.viewTo-1)return!1;i.line==a.viewFrom||0==(e=Ir(r,i.line))?(t=et(a.view[0].line),n=a.view[0].node):(t=et(a.view[e].line),n=a.view[e-1].node.nextSibling);var s,u,c=Ir(r,l.line);if(c==a.view.length-1?(s=a.viewTo-1,u=a.lineDiv.lastChild):(s=et(a.view[c+1].line)-1,u=a.view[c+1].node.previousSibling),!n)return!1;var f=r.doc.splitLines(ts(r,n,u,t,s)),p=Ze(r.doc,at(t,0),at(s,Xe(r.doc,s).text.length));while(f.length>1&&p.length>1)if(K(f)==K(p))f.pop(),p.pop(),s--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),t++}var d=0,h=0,v=f[0],m=p[0],y=Math.min(v.length,m.length);while(d<y&&v.charCodeAt(d)==m.charCodeAt(d))++d;var g=K(f),b=K(p),x=Math.min(g.length-(1==f.length?d:0),b.length-(1==p.length?d:0));while(h<x&&g.charCodeAt(g.length-h-1)==b.charCodeAt(b.length-h-1))++h;if(1==f.length&&1==p.length&&t==i.line)while(d&&d>i.ch&&g.charCodeAt(g.length-h-1)==b.charCodeAt(b.length-h-1))d--,h++;f[f.length-1]=g.slice(0,g.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var _=at(t,d),w=at(s,p.length?K(p).length-h:0);return f.length>1||f[0]||ot(_,w)?(ri(r.doc,f,_,w,"+input"),!0):void 0},Zl.prototype.ensurePolled=function(){this.forceCompositionEnd()},Zl.prototype.reset=function(){this.forceCompositionEnd()},Zl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Zl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},Zl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Aa(this.cm,(function(){return Rr(e.cm)}))},Zl.prototype.setUneditable=function(e){e.contentEditable="false"},Zl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Pa(this.cm,Hl)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Zl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Zl.prototype.onContextMenu=function(){},Zl.prototype.resetPosition=function(){},Zl.prototype.needsContentAttribute=!0;var as=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};function os(e,t){if(t=t?z(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=L();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=l.getValue()}var a;if(e.form&&(he(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;a=o.submit;try{var i=o.submit=function(){r(),o.submit=a,o.submit(),o.submit=i}}catch(s){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(me(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=a))}},e.style.display="none";var l=Rl((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return l}function is(e){e.off=me,e.on=he,e.wheelEventPixels=to,e.Doc=wi,e.splitLines=De,e.countColumn=N,e.findColumn=$,e.isWordChar=te,e.Pass=H,e.signal=ye,e.Line=sn,e.changeEnd=lo,e.scrollbarModel=ba,e.Pos=at,e.cmpPos=ot,e.modes=Ne,e.mimeModes=Fe,e.resolveMode=He,e.getMode=Ue,e.modeExtensions=We,e.extendMode=qe,e.copyState=$e,e.startState=Ye,e.innerMode=Ge,e.commands=Xi,e.keyMap=zi,e.keyName=Ui,e.isModifierKey=Vi,e.lookupKey=Bi,e.normalizeKeyMap=Fi,e.StringStream=Ke,e.SharedTextMarker=mi,e.TextMarker=hi,e.LineWidget=ci,e.e_preventDefault=we,e.e_stopPropagation=ke,e.e_stop=Ee,e.addClass=D,e.contains=P,e.rmClass=O,e.keyNames=Di}as.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var a=this.textarea;function o(e){if(!ge(r,e)){if(r.somethingSelected())Vl({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=ql(r);Vl({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,U):(n.prevInput="",a.value=t.text.join("\n"),I(a))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),v&&(a.style.width="0px"),he(a,"input",(function(){i&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),he(a,"paste",(function(e){ge(r,e)||Ul(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),he(a,"cut",o),he(a,"copy",o),he(e.scroller,"paste",(function(t){if(!Un(e,t)&&!ge(r,t)){if(!a.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,a.dispatchEvent(o)}})),he(e.lineSpace,"selectstart",(function(t){Un(e,t)||we(t)})),he(a,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),he(a,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},as.prototype.createField=function(e){this.wrapper=Gl(),this.textarea=this.wrapper.firstChild},as.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},as.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Ur(e);if(e.options.moveInputWithCursor){var a=gr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),i=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,a.top+i.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,a.left+i.left-o.left))}return r},as.prototype.showSelection=function(e){var t=this.cm,n=t.display;S(n.cursorDiv,e.cursors),S(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},as.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&I(this.textarea),i&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",i&&l>=9&&(this.hasSelection=null))}},as.prototype.getField=function(){return this.textarea},as.prototype.supportsTouch=function(){return!1},as.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||L()!=this.textarea))try{this.textarea.focus()}catch(e){}},as.prototype.blur=function(){this.textarea.blur()},as.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},as.prototype.receivedFocus=function(){this.slowPoll()},as.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},as.prototype.fastPoll=function(){var e=!1,t=this;function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},as.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||je(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var a=n.value;if(a==r&&!t.somethingSelected())return!1;if(i&&l>=9&&this.hasSelection===a||g&&/[\uf700-\uf7ff]/.test(a))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=a.charCodeAt(0);if(8203!=o||r||(r=""),8666==o)return this.reset(),this.cm.execCommand("undo")}var s=0,u=Math.min(r.length,a.length);while(s<u&&r.charCodeAt(s)==a.charCodeAt(s))++s;return Aa(t,(function(){Hl(t,a.slice(s),r.length-s,null,e.composing?"*compose":null),a.length>1e3||a.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=a,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},as.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},as.prototype.onKeyPress=function(){i&&l>=9&&(this.hasSelection=null),this.fastPoll()},as.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,a=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=jr(n,e),u=r.scroller.scrollTop;if(o&&!f){var c=n.options.resetSelectionOnContextMenu;c&&-1==n.doc.sel.contains(o)&&Pa(n,Vo)(n.doc,io(o),U);var p,d=a.style.cssText,h=t.wrapper.style.cssText,v=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-v.top-5)+"px; left: "+(e.clientX-v.left-5)+"px;\n z-index: 1000; background: "+(i?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(p=window.scrollY),r.input.focus(),s&&window.scrollTo(null,p),r.input.reset(),n.somethingSelected()||(a.value=t.prevInput=" "),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),i&&l>=9&&y(),k){Ee(e);var m=function(){me(window,"mouseup",m),setTimeout(g,20)};he(window,"mouseup",m)}else setTimeout(g,50)}function y(){if(null!=a.selectionStart){var e=n.somethingSelected(),o=""+(e?a.value:"");a.value="⇚",a.value=o,t.prevInput=e?"":"",a.selectionStart=1,a.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=h,a.style.cssText=d,i&&l<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=a.selectionStart)){(!i||i&&l<9)&&y();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&""==t.prevInput?Pa(n,Ko)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},as.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},as.prototype.setUneditable=function(){},as.prototype.needsContentAttribute=!1,Dl(Rl),Yl(Rl);var ls="iter insert remove copy getEditor constructor".split(" ");for(var ss in wi.prototype)wi.prototype.hasOwnProperty(ss)&&B(ls,ss)<0&&(Rl.prototype[ss]=function(e){return function(){return e.apply(this.doc,arguments)}}(wi.prototype[ss]));return _e(wi),Rl.inputStyles={textarea:as,contenteditable:Zl},Rl.defineMode=function(e){Rl.defaults.mode||"null"==e||(Rl.defaults.mode=e),Be.apply(this,arguments)},Rl.defineMIME=Ve,Rl.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Rl.defineMIME("text/plain","null"),Rl.defineExtension=function(e,t){Rl.prototype[e]=t},Rl.defineDocExtension=function(e,t){wi.prototype[e]=t},Rl.fromTextArea=os,is(Rl),Rl.version="5.57.0",Rl}))},"56ef":function(e,t,n){var r=n("d066"),a=n("241c"),o=n("7418"),i=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},"56ff":function(e,t,n){"use strict";var r=n("19b2");e.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}},"579f":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"}))};e.exports=l},"57a4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n("ab5b")),a=l(n("d7bc")),o=n("c85e"),i=n("e688");function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t){var n=t.localize,a=t.setPanel;return r.default.createElement(o.TraceAccordion,{canAdd:!0,traceFilterCondition:function(e){return!(e.transforms&&e.transforms.some((function(e){return["fit","moving-average"].includes(e.type)})))},canReorder:!0},r.default.createElement(o.TraceSelector,{label:n("Type"),attr:"type",show:!0}),r.default.createElement(o.Dropzone,{attr:"geojson",fileType:"geojson"}),r.default.createElement(o.LocationSelector,{attr:"type"}),r.default.createElement(o.DataSelector,{label:n("Values"),attr:"values"}),r.default.createElement(o.DataSelector,{label:n("Labels"),attr:"labels"}),r.default.createElement(o.DataSelector,{label:n("Parents"),attr:"parents"}),r.default.createElement(o.TraceTypeSection,{traceTypes:["sunburst","treemap"],mode:"trace"},r.default.createElement(o.DataSelector,{label:n("IDs"),attr:"ids"})),r.default.createElement(o.Dropdown,{label:n("Parent Value Mode"),attr:"branchvalues",options:[{label:n("Total"),value:"total"},{label:n("Remainder"),value:"remainder"}],clearable:!1}),r.default.createElement(o.DataSelector,{label:{histogram2d:n("X Values"),histogram:n("X Values"),"*":n("X")},attr:"x"}),r.default.createElement(o.DataSelector,{label:{histogram2d:n("Y Values"),histogram:n("Y Values"),"*":n("Y")},attr:"y"}),r.default.createElement(o.DataSelector,{label:{choropleth:n("Values"),histogram2d:n("Z Values"),"*":n("Z")},attr:"z"}),r.default.createElement(o.DropdownCustom,{label:n("GeoJSON Location Field"),attr:"featureidkey",options:[{label:n("id"),value:"id"},{label:n("Custom"),value:"custom"}],customOpt:"custom",dafaultOpt:"",clearable:!1}),r.default.createElement(o.Numeric,{label:n("Radius"),attr:"radius",min:0,max:50,showSlider:!0}),r.default.createElement(o.DataSelector,{label:n("Measure"),attr:"measure"}),r.default.createElement(o.PlotlySection,{name:n("Nodes")},r.default.createElement(o.DataSelector,{label:n("Labels"),attr:"node.label"}),r.default.createElement(o.DataSelector,{label:n("Groups"),attr:"node.groups"}),r.default.createElement(o.DataSelector,{label:n("X"),attr:"node.x"}),r.default.createElement(o.DataSelector,{label:n("Y"),attr:"node.y"})),r.default.createElement(o.PlotlySection,{name:n("Links")},r.default.createElement(o.DataSelector,{label:n("Sources"),attr:"link.source"}),r.default.createElement(o.DataSelector,{label:n("Targets"),attr:"link.target"}),r.default.createElement(o.DataSelector,{label:n("Values"),attr:"link.value"}),r.default.createElement(o.DataSelector,{label:n("Labels"),attr:"link.label"})),r.default.createElement(o.Radio,{label:n("Orientation"),attr:"orientation",options:[{label:n("Vertical"),value:"v"},{label:n("Horizontal"),value:"h"}]}),r.default.createElement(i.HistogramInfoVertical,null,n("Note: in vertical orientation, X values are used for binning. If Y values are provided, they are used as inputs to the histogram function which you can configure in the "),r.default.createElement("a",{onClick:function(){return a("Style","Traces")}},n("Traces")),n(" panel under Style. If Y values are omitted, the histogram function defaults to Count.")),r.default.createElement(i.HistogramInfoHorizontal,null,n("Note: in horizontal orientation, Y values are used for binning. If X values are provided, they are used as inputs to the histogram function which you can configure in the "),r.default.createElement("a",{onClick:function(){return a("Style","Traces")}},n("Traces")),n(" under Style panel. If X values are omitted, the histogram function defaults to Count.")),r.default.createElement(i.Histogram2d,null,n("Note: X and Y Values are used for binning. If Z values are provided, they are used as inputs to the histogram function which you can configure in the "),r.default.createElement("a",{onClick:function(){return a("Style","Traces")}},n("Traces")),n(" under Style panel. If Z values are omitted, the histogram function defaults to Count.")),r.default.createElement(o.DataSelector,{label:n("I (Optional)"),attr:"i"}),r.default.createElement(o.DataSelector,{label:n("J (Optional)"),attr:"j"}),r.default.createElement(o.DataSelector,{label:n("K (Optional)"),attr:"k"}),r.default.createElement(o.DataSelector,{label:n("Open"),attr:"open"}),r.default.createElement(o.DataSelector,{label:n("High"),attr:"high"}),r.default.createElement(o.DataSelector,{label:n("Low"),attr:"low"}),r.default.createElement(o.DataSelector,{label:n("Close"),attr:"close"}),r.default.createElement(o.DataSelector,{label:n("A"),attr:"a"}),r.default.createElement(o.DataSelector,{label:n("B"),attr:"b"}),r.default.createElement(o.DataSelector,{label:n("C"),attr:"c"}),r.default.createElement(o.DataSelector,{label:n("U"),attr:"u"}),r.default.createElement(o.DataSelector,{label:n("V"),attr:"v"}),r.default.createElement(o.DataSelector,{label:n("W"),attr:"w"}),r.default.createElement(o.DataSelector,{label:n("X start"),attr:"starts.x"}),r.default.createElement(o.DataSelector,{label:n("Y start"),attr:"starts.y"}),r.default.createElement(o.DataSelector,{label:n("Z start"),attr:"starts.z"}),r.default.createElement(o.DataSelector,{label:n("Headers"),attr:"header.values"}),r.default.createElement(o.DataSelector,{label:n("Columns"),attr:"cells.values"}),r.default.createElement(o.TraceTypeSection,{traceTypes:["scatterpolar","scatterpolargl","barpolar"],mode:"trace"},r.default.createElement(o.DataSelector,{label:n("Radius"),attr:"r"}),r.default.createElement(o.DataSelector,{label:n("Theta"),attr:"theta"}),r.default.createElement(o.Dropdown,{label:n("Theta Unit"),options:[{label:n("Radians"),value:"radians"},{label:n("Degrees"),value:"degrees"},{label:n("Gradians"),value:"gradians"}],attr:"thetaunit",clearable:!1})),r.default.createElement(o.AxesCreator,{attr:"fake_attr"}),r.default.createElement(o.SubplotCreator,{attr:"fake_attr"}),r.default.createElement(o.PlotlySection,{name:n("Header Options")},r.default.createElement(o.DataSelector,{label:n("Fill Color"),attr:"header.fill.color"}),r.default.createElement(o.DataSelector,{label:n("Font Color"),attr:"header.font.color"}),r.default.createElement(o.DataSelector,{label:n("Font Size"),attr:"header.font.size"})),r.default.createElement(o.PlotlySection,{name:n("Cell Options")},r.default.createElement(o.DataSelector,{label:n("Fill Color"),attr:"cells.fill.color"}),r.default.createElement(o.DataSelector,{label:n("Font Color"),attr:"cells.font.color"}),r.default.createElement(o.DataSelector,{label:n("Font Size"),attr:"cells.font.size"})),r.default.createElement(o.PlotlySection,{name:n("Column Options")},r.default.createElement(o.DataSelector,{label:n("Width"),attr:"columnwidth"}),r.default.createElement(o.DataSelector,{label:n("Order"),attr:"columnorder"})),r.default.createElement(o.PlotlySection,{name:n("Options")},r.default.createElement(o.DataSelector,{label:n("Intensity"),attr:"intensity"}),r.default.createElement(o.DataSelector,{label:n("Facecolor"),attr:"facecolor"}),r.default.createElement(o.DataSelector,{label:n("Vertexcolor"),attr:"vertexcolor"}),r.default.createElement(o.Radio,{label:n("Transpose"),attr:"transpose",options:[{label:n("No"),value:!1},{label:n("Yes"),value:!0}]})))},u=s;t.default=u,s.contextTypes={localize:a.default.func,setPanel:a.default.func}},"57a5":function(e,t,n){var r=n("91e9"),a=r(Object.keys,Object);e.exports=a},"57c7":function(e,t,n){"use strict";var r=n("24be"),a=n("ac96"),o=n("24f7"),i=o.OrderedMap,l=function(e){var t,n={};return i(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),l=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),u=r.getChildKeys(),c=r.getParentKey(),f=a();if(n[i]=f,l){var p=e.get(l);p?e.setIn([l,"prevSibling"],f):e.setIn([i,"nextSibling"],null)}if(s){var d=e.get(s);d?e.setIn([s,"nextSibling"],f):e.setIn([i,"prevSibling"],null)}if(c&&e.get(c)){var h=e.get(c),v=h.getChildKeys();e.setIn([c,"children"],v.set(v.indexOf(r.getKey()),f))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],f),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);u.forEach((function(t){var n=e.get(t);n?e.setIn([t,"parent"],f):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))},s=function(e){return i(e.toArray().map((function(e){var t=a();return[t,e.set("key",t)]})))},u=function(e){var t=e.first()instanceof r;return t?l(e):s(e)};e.exports=u},5858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPicker=t.TwitterPicker=t.SwatchesPicker=t.SliderPicker=t.SketchPicker=t.PhotoshopPicker=t.MaterialPicker=t.HuePicker=t.GithubPicker=t.CompactPicker=t.ChromePicker=t.default=t.CirclePicker=t.BlockPicker=t.AlphaPicker=void 0;var r=n("aa8e");Object.defineProperty(t,"AlphaPicker",{enumerable:!0,get:function(){return g(r).default}});var a=n("ac9f");Object.defineProperty(t,"BlockPicker",{enumerable:!0,get:function(){return g(a).default}});var o=n("edd5");Object.defineProperty(t,"CirclePicker",{enumerable:!0,get:function(){return g(o).default}});var i=n("248d");Object.defineProperty(t,"ChromePicker",{enumerable:!0,get:function(){return g(i).default}});var l=n("a0f2");Object.defineProperty(t,"CompactPicker",{enumerable:!0,get:function(){return g(l).default}});var s=n("2f1f");Object.defineProperty(t,"GithubPicker",{enumerable:!0,get:function(){return g(s).default}});var u=n("c24c");Object.defineProperty(t,"HuePicker",{enumerable:!0,get:function(){return g(u).default}});var c=n("271a");Object.defineProperty(t,"MaterialPicker",{enumerable:!0,get:function(){return g(c).default}});var f=n("15b3");Object.defineProperty(t,"PhotoshopPicker",{enumerable:!0,get:function(){return g(f).default}});var p=n("1d35");Object.defineProperty(t,"SketchPicker",{enumerable:!0,get:function(){return g(p).default}});var d=n("3f3a");Object.defineProperty(t,"SliderPicker",{enumerable:!0,get:function(){return g(d).default}});var h=n("b7ca");Object.defineProperty(t,"SwatchesPicker",{enumerable:!0,get:function(){return g(h).default}});var v=n("9d6e");Object.defineProperty(t,"TwitterPicker",{enumerable:!0,get:function(){return g(v).default}});var m=n("506c");Object.defineProperty(t,"CustomPicker",{enumerable:!0,get:function(){return g(m).default}});var y=g(i);function g(e){return e&&e.__esModule?e:{default:e}}t.default=y.default},"585a":function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n("c8ba"))},5893:function(e,t,n){"use strict";var r=n("15c3"),a=n("dec3"),o=n("d082"),i=n("6606");function l(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState,n=t.getSelection();r.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(n.toJS())})}}else{var l=e.props.editorState,s=i(l,o(e)),u=s.selectionState;u!==l.getSelection()&&(l=s.needsRecovery?a.forceSelection(l,u):a.acceptSelection(l,u),e.update(l))}}e.exports=l},"58b1":function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n("ab5b"),l=n("0984"),s=n("d8db"),u=n("1b23"),c=l.isBrowser("IE <= 11");function f(e){return c?"\n"===e.textContent:"BR"===e.tagName}var p=function(e){return c?i.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"A","data-text":"true",ref:e})},d=function(e){return c?i.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):i.createElement("br",{key:"B","data-text":"true",ref:e})},h=function(e){function t(t){var n;return n=e.call(this,t)||this,o(r(n),"_forceFlag",void 0),o(r(n),"_node",void 0),n._forceFlag=!1,n}a(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;u(t)||s(!1);var r=t;return n?!f(r):r.textContent!==e.children},n.componentDidMount=function(){this._forceFlag=!this._forceFlag},n.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},n.render=function(){var e=this;return""===this.props.children?this._forceFlag?p((function(t){return e._node=t})):d((function(t){return e._node=t})):i.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(t){return e._node=t}},this.props.children)},t}(i.Component);e.exports=h},"58b2":function(e,t,n){"use strict";var r={staticPlot:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are interactive or not.","If *false*, no interactivity, for export or image generation."].join(" ")},plotlyServerURL:{valType:"string",dflt:"",description:["When set it determines base URL for","the 'Edit in Chart Studio' `showEditInChartStudio`/`showSendToCloud` mode bar button","and the showLink/sendData on-graph link.","To enable sending your data to Chart Studio Cloud, you need to","set both `plotlyServerURL` to 'https://chart-studio.plotly.com' and","also set `showSendToCloud` to true."].join(" ")},editable:{valType:"boolean",dflt:!1,description:["Determines whether the graph is editable or not.","Sets all pieces of `edits`","unless a separate `edits` config item overrides individual parts."].join(" ")},edits:{annotationPosition:{valType:"boolean",dflt:!1,description:["Determines if the main anchor of the annotation is editable.","The main anchor corresponds to the","text (if no arrow) or the arrow (which drags the whole thing leaving","the arrow length & direction unchanged)."].join(" ")},annotationTail:{valType:"boolean",dflt:!1,description:["Has only an effect for annotations with arrows.","Enables changing the length and direction of the arrow."].join(" ")},annotationText:{valType:"boolean",dflt:!1,description:"Enables editing annotation text."},axisTitleText:{valType:"boolean",dflt:!1,description:"Enables editing axis title text."},colorbarPosition:{valType:"boolean",dflt:!1,description:"Enables moving colorbars."},colorbarTitleText:{valType:"boolean",dflt:!1,description:"Enables editing colorbar title text."},legendPosition:{valType:"boolean",dflt:!1,description:"Enables moving the legend."},legendText:{valType:"boolean",dflt:!1,description:"Enables editing the trace name fields from the legend"},shapePosition:{valType:"boolean",dflt:!1,description:"Enables moving shapes."},titleText:{valType:"boolean",dflt:!1,description:"Enables editing the global layout title."}},autosizable:{valType:"boolean",dflt:!1,description:["Determines whether the graphs are plotted with respect to","layout.autosize:true and infer its container size."].join(" ")},responsive:{valType:"boolean",dflt:!1,description:["Determines whether to change the layout size when window is resized.","In v2, this option will be removed and will always be true."].join(" ")},fillFrame:{valType:"boolean",dflt:!1,description:["When `layout.autosize` is turned on, determines whether the graph","fills the container (the default) or the screen (if set to *true*)."].join(" ")},frameMargins:{valType:"number",dflt:0,min:0,max:.5,description:["When `layout.autosize` is turned on, set the frame margins","in fraction of the graph size."].join(" ")},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox",description:["Determines whether mouse wheel or two-finger scroll zooms is enable.","Turned on by default for gl3d, geo and mapbox subplots","(as these subplot types do not have zoombox via pan),","but turned off by default for cartesian subplots.","Set `scrollZoom` to *false* to disable scrolling for all subplots."].join(" ")},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize",description:["Sets the double click interaction mode.","Has an effect only in cartesian plots.","If *false*, double click is disable.","If *reset*, double click resets the axis ranges to their initial values.","If *autosize*, double click set the axis ranges to their autorange values.","If *reset+autosize*, the odd double clicks resets the axis ranges","to their initial values and even double clicks set the axis ranges","to their autorange values."].join(" ")},doubleClickDelay:{valType:"number",dflt:300,min:0,description:["Sets the delay for registering a double-click in ms.","This is the time interval (in ms) between first mousedown and","2nd mouseup to constitute a double-click.","This setting propagates to all on-subplot double clicks","(except for geo and mapbox) and on-legend double clicks."].join(" ")},showAxisDragHandles:{valType:"boolean",dflt:!0,description:["Set to *false* to omit cartesian axis pan/zoom drag handles."].join(" ")},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0,description:["Set to *false* to omit direct range entry at the pan/zoom drag points,","note that `showAxisDragHandles` must be enabled to have an effect."].join(" ")},showTips:{valType:"boolean",dflt:!0,description:["Determines whether or not tips are shown while interacting","with the resulting graphs."].join(" ")},showLink:{valType:"boolean",dflt:!1,description:["Determines whether a link to Chart Studio Cloud is displayed","at the bottom right corner of resulting graphs.","Use with `sendData` and `linkText`."].join(" ")},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0,description:["Sets the text appearing in the `showLink` link."].join(" ")},sendData:{valType:"boolean",dflt:!0,description:["If *showLink* is true, does it contain data","just link to a Chart Studio Cloud file?"].join(" ")},showSources:{valType:"any",dflt:!1,description:["Adds a source-displaying function to show sources on","the resulting graphs."].join(" ")},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover",description:["Determines the mode bar display mode.","If *true*, the mode bar is always visible.","If *false*, the mode bar is always hidden.","If *hover*, the mode bar is visible while the mouse cursor","is on the graph container."].join(" ")},showSendToCloud:{valType:"boolean",dflt:!1,description:['Should we include a ModeBar button, labeled "Edit in Chart Studio",',"that sends this chart to chart-studio.plotly.com (formerly plot.ly) or another plotly server","as specified by `plotlyServerURL` for editing, export, etc? Prior to version 1.43.0","this button was included by default, now it is opt-in using this flag.","Note that this button can (depending on `plotlyServerURL` being set) send your data","to an external server. However that server does not persist your data",'until you arrive at the Chart Studio and explicitly click "Save".'].join(" ")},showEditInChartStudio:{valType:"boolean",dflt:!1,description:["Same as `showSendToCloud`, but use a pencil icon instead of a floppy-disk.","Note that if both `showSendToCloud` and `showEditInChartStudio` are turned,","only `showEditInChartStudio` will be honored."].join(" ")},modeBarButtonsToRemove:{valType:"any",dflt:[],description:["Remove mode bar buttons by name.","See ./components/modebar/buttons.js for the list of names."].join(" ")},modeBarButtonsToAdd:{valType:"any",dflt:[],description:["Add mode bar button using config objects","See ./components/modebar/buttons.js for list of arguments."].join(" ")},modeBarButtons:{valType:"any",dflt:!1,description:["Define fully custom mode bar buttons as nested array,","where the outer arrays represents button groups, and","the inner arrays have buttons config objects or names of default buttons","See ./components/modebar/buttons.js for more info."].join(" ")},toImageButtonOptions:{valType:"any",dflt:{},description:["Statically override options for toImage modebar button","allowed keys are format, filename, width, height, scale","see ../components/modebar/buttons.js"].join(" ")},displaylogo:{valType:"boolean",dflt:!0,description:["Determines whether or not the plotly logo is displayed","on the end of the mode bar."].join(" ")},watermark:{valType:"boolean",dflt:!1,description:"watermark the images with the company's logo"},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4,description:["Set the pixel ratio during WebGL image export.","This config option was formerly named `plot3dPixelRatio`","which is now deprecated."].join(" ")},setBackground:{valType:"any",dflt:"transparent",description:["Set function to add the background color (i.e. `layout.paper_color`)","to a different container.","This function take the graph div as first argument and the current background","color as second argument.","Alternatively, set to string *opaque* to ensure there is white behind it."].join(" ")},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/",description:["Set the URL to topojson used in geo charts.","By default, the topojson files are fetched from cdn.plot.ly.","For example, set this option to:","<path-to-plotly.js>/dist/topojson/","to render geographical feature using the topojson files","that ship with the plotly.js module."].join(" ")},mapboxAccessToken:{valType:"string",dflt:null,description:["Mapbox access token (required to plot mapbox trace types)","If using an Mapbox Atlas server, set this option to ''","so that plotly.js won't attempt to authenticate to the public Mapbox server."].join(" ")},logging:{valType:"integer",min:0,max:2,dflt:1,description:["Turn all console logging on or off (errors will be thrown)","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0,description:["Set on-graph logging (notifier) level","This should ONLY be set via Plotly.setPlotConfig","Available levels:","0: no on-graph logs","1: warnings and errors, but not informational messages","2: verbose logs"].join(" ")},queueLength:{valType:"integer",min:0,dflt:0,description:"Sets the length of the undo/redo queue."},globalTransforms:{valType:"any",dflt:[],description:["Set global transform to be applied to all traces with no","specification needed"].join(" ")},locale:{valType:"string",dflt:"en-US",description:["Which localization should we use?","Should be a string like 'en' or 'en-US'."].join(" ")},locales:{valType:"any",dflt:{},description:["Localization definitions","Locales can be provided either here (specific to one chart) or globally","by registering them as modules.","Should be an object of objects {locale: {dictionary: {...}, format: {...}}}","{"," da: {"," dictionary: {'Reset axes': 'Nulstil aksler', ...},"," format: {months: [...], shortMonths: [...]}"," },"," ...","}","All parts are optional. When looking for translation or format fields, we","look first for an exact match in a config locale, then in a registered","module. If those fail, we strip off any regionalization ('en-US' -> 'en')","and try each (config, registry) again. The final fallback for translation","is untranslated (which is US English) and for formats is the base English","(the only consequence being the last fallback date format %x is DD/MM/YYYY","instead of MM/DD/YYYY). Currently `grouping` and `currency` are ignored","for our automatic number formatting, but can be used in custom formats."].join(" ")}},a={};function o(e,t){for(var n in e){var r=e[n];r.valType?t[n]=r.dflt:(t[n]||(t[n]={}),o(r,t[n]))}}o(r,a),e.exports={configAttributes:r,dfltConfig:a}},"58b7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n("5174")),a=p(n("d7bc")),o=f(n("ab5b")),i=n("4578"),l=p(n("5f31")),s=p(n("37cc")),u=p(n("c7db"));function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function p(e){return e&&e.__esModule?e:{default:e}}function d(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){return m="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},m(e)}function y(){return y=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},y.apply(this,arguments)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 x(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}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&&w(e,t)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function k(e){var t=O();return function(){var n,r=M(e);if(t){var a=M(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==m(t)&&"function"!==typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(){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}}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var S=276,C=8,A=function(e){_(n,e);var t=k(n);function n(e,r){var a;return g(this,n),a=t.call(this,e,r),a.sendUpdate=a.sendUpdate.bind(E(a)),a.attr=a.props.cartesian?{x:["xaxis.domain[0]","xaxis.domain[1]"],y:["yaxis.domain[0]","yaxis.domain[1]"]}:{x:["domain.x[0]","domain.x[1]"],y:["domain.y[0]","domain.y[1]"]},a.state={snap:!0},a}return x(n,[{key:"sendUpdate",value:function(e){var t=e.x,n=e.y,r=e.width,a=e.height,o=e.fieldWidthPx,i=e.fieldHeightPx,l=t/o,s=(r+t)/o,u=(i-(a+n))/i,c=(i-n)/i,f=this.state.snap?function(e){return Math.round(e*C)/C}:function(e){return e},p={};l>=0&&s<=1&&(p[this.attr.x[0]]=f(l),p[this.attr.x[1]]=f(s)),u>=0&&c<=1&&(p[this.attr.y[0]]=f(u),p[this.attr.y[1]]=f(c)),this.context.updateContainer(p)}},{key:"render",value:function(){var e=this,t=this.props,n=t.attr,a=t.cartesian,i=this.context,c=i.localize,f=i.fullContainer,p=i.fullLayout,d=p.width,h=p.height,v=a?f.xaxis.domain:f.domain.x,m=a?f.yaxis.domain:f.domain.y,g=h/d,b=Math.min(S,S/g),x=Math.min(S,S*g),_=b*(v[1]-v[0]),w=x*(m[1]-m[0]),k=b*v[0],T=x*(1-m[1]),E="";return f.xaxis&&f.yaxis&&(f.xaxis.overlaying||f.yaxis.overlaying)?f.xaxis.overlaying?f.yaxis.overlaying||(E="n, s"):E="e, w":E="n, w, s, e, nw, ne, se, sw",o.default.createElement("div",{style:{marginRight:25}},o.default.createElement(r.default,y({},this.props,{attr:n}),o.default.createElement(r.default,{label:c("Snap to Grid")},o.default.createElement(s.default,{alignment:"center",onOptionChange:function(t){return e.setState({snap:t})},activeOption:this.state.snap,options:[{label:c("On"),value:!0},{label:c("Off"),value:!1}]})),o.default.createElement("div",{className:"rect-container",style:{width:b+1,height:x+1}},Array(C*C).fill(0).map((function(e,t){return o.default.createElement("div",{key:t,className:"rect-grid",style:{width:b/C-1,height:x/C-1,borderBottom:t<C*(C-1)?"0":"1px solid ",borderRight:(t+1)%C?"0":"1px solid"}})})),o.default.createElement(l.default,{bounds:"parent",width:_,height:w,left:k,top:T,rotatable:!1,draggable:!this.state.snap,zoomable:E,onResize:function(t){e.sendUpdate({fieldWidthPx:b,fieldHeightPx:x,width:t.width,height:t.height,x:t.left,y:t.top})},onDrag:function(t,n){e.sendUpdate({fieldWidthPx:b,fieldHeightPx:x,width:_,height:w,x:k+t,y:T+n})}})),f.xaxis&&f.xaxis.overlaying?"":o.default.createElement(u.default,{label:c("X"),attr:this.attr.x[0],attr2:this.attr.x[1],percentage:!0,step:1,min:0,max:100}),f.yaxis&&f.yaxis.overlaying?"":o.default.createElement(u.default,{label:c("Y"),attr:this.attr.y[0],attr2:this.attr.y[1],percentage:!0,step:1,min:0,max:100})))}}]),n}(o.Component);A.propTypes=h({fullValue:a.default.any,updatePlot:a.default.func,cartesian:a.default.bool},r.default.propTypes),A.contextTypes={localize:a.default.func,updateContainer:a.default.func,fullContainer:a.default.object,fullLayout:a.default.object},A.displayName="UnconnectedRectanglePositioner";var P=(0,i.connectToContainer)(A);t.default=P},"592e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("00ac")),a=c(n("d7bc")),o=u(n("ab5b")),i=c(n("4d26")),l=n("8704");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=function(e){v(n,e);var t=y(n);function n(){var e;return p(this,n),e=t.call(this),e.state={isOpen:!1},e.togglePanel=e.togglePanel.bind(b(e)),e}return h(n,[{key:"getIcon",value:function(){var e=this.props,t=e.question,n=e.icon;return t?{icon:o.default.createElement(l.QuestionIcon,{className:"menupanel__icon"}),spanClass:"menupanel__icon-span menupanel__icon-span--question"}:n?{icon:o.default.createElement(n,{className:"menupanel__icon"}),spanClass:"menupanel__icon-span"}:{icon:o.default.createElement(l.CogIcon,{className:"menupanel__icon"}),spanClass:"menupanel__icon-span menupanel__icon-span--cog"}}},{key:"togglePanel",value:function(){this.setState({isOpen:!this.state.isOpen})}},{key:"render",value:function(){var e=this.props,t=e.show,n=e.ownline,a=e.label,l=e.children,s=t||this.state.isOpen,u=(0,i.default)("menupanel",{"menupanel--ownline":n}),c=this.getIcon(),f=c.icon,p=c.spanClass;return o.default.createElement("div",{className:u},o.default.createElement("div",{className:p},o.default.createElement("div",{className:"menupanel__label"},a),o.default.createElement("div",{className:"menupanel__icon__wrapper",onClick:this.togglePanel},f)),s&&o.default.createElement(r.default,{onClose:this.togglePanel},l))}}]),n}(o.Component);t.default=w,w.propTypes={children:a.default.node,icon:a.default.oneOfType([a.default.node,a.default.func]),label:a.default.string,ownline:a.default.bool,question:a.default.bool,show:a.default.bool}},5940:function(e,t,n){"use strict";var r=n("ba7e"),a=Array.isArray;function o(e,t){var n,r;for(n=0;n<e.length;n++){if(r=e[n],null!==r&&"object"===typeof r)return!1;void 0!==r&&(t[n]=r)}return!0}function i(e,t,n,l){var s,u,c,f,p,d,h,v=e[0],m=e.length;if(2===m&&a(v)&&a(e[1])&&0===v.length){if(h=o(e[1],v),h)return v;v.splice(0,v.length)}for(var y=1;y<m;y++)for(u in s=e[y],s)c=v[u],f=s[u],l&&a(f)?v[u]=f:t&&f&&(r(f)||(p=a(f)))?(p?(p=!1,d=c&&a(c)?c:[]):d=c&&r(c)?c:{},v[u]=i([d,f],t,n,l)):("undefined"!==typeof f||n)&&(v[u]=f);return v}t.extendFlat=function(){return i(arguments,!1,!1,!1)},t.extendDeep=function(){return i(arguments,!0,!1,!1)},t.extendDeepAll=function(){return i(arguments,!0,!0,!1)},t.extendDeepNoArrays=function(){return i(arguments,!0,!1,!0)}},5944:function(e,t,n){"use strict";t.isLeftAnchor=function(e){return"left"===e.xanchor||"auto"===e.xanchor&&e.x<=1/3},t.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},t.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},t.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},t.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},t.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},5968:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasValidCustomConfigVisibilityRules=u,t.computeCustomConfigVisibility=c,t.isVisibleGivenCustomConfig=f,t.default=p;var r=i(n("10b4")),a=i(n("19b2")),o=n("e419");function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){return void 0!==e&&null!==e};function u(e){if(e&&e===Object(e)&&Object.keys(e).length&&e.visibility_rules){if(e.visibility_rules.blacklist&&e.visibility_rules.whitelist)return console.error("customConfig.visibility_rules can have a blacklist OR whitelist key, both are present in your config."),!1;if(!Object.keys(e.visibility_rules).some((function(e){return["blacklist","whitelist"].includes(e)})))return console.error("customConfig.visibility_rules must have at least a blacklist or whitelist key."),!1;var t=function e(t){return t.exceptions?t.exceptions.every(e):t.type&&["attrName","controlType"].includes(t.type)&&t.regex_match},n="All rules and exceptions must have a type (one of: 'attrName' or 'controlType') and regex_match key.";return e.visibility_rules.blacklist&&!e.visibility_rules.blacklist.every(t)?(console.error(n),!1):!(e.visibility_rules.whitelist&&!e.visibility_rules.whitelist.every(t))||(console.error(n),!1)}return!1}function c(e,t,n){var r,a=function(t){var r="attrName"===t.type?e.attr:n;return RegExp(t.regex_match).test(r)},o=function e(t){var n=function(t){return!!t.exceptions&&t.exceptions.some((function(t){return e(t)}))};return a(t)&&!n(t)};return t.visibility_rules.blacklist&&(r=!t.visibility_rules.blacklist.some(o)),t.visibility_rules.whitelist&&(r=t.visibility_rules.whitelist.some(o)),r}function f(e,t,n,r){var a=e;return a&&n.hasValidCustomConfigVisibilityRules&&(a=c(t,n.customConfig,r)),a}function p(e,t){var n,i=t.container,u=t.getValObject,c=t.defaultContainer,f=t.updateContainer;if(!e.attr)return{};u&&(n=t.getValObject(e.attr)||{});var p=t.fullContainer,d=(0,r.default)(p,e.attr),h=d.get(),v=!1;h===o.MULTI_VALUED&&(h=o.MULTI_VALUED_PLACEHOLDER,v=!0);var m,y,g,b=Boolean(s(h)||e.show),x=e.defaultValue;void 0===x&&c&&(x=(0,r.default)(c,e.attr).get()),n&&((0,a.default)(n.max)&&(y=n.max),(0,a.default)(n.min)&&(m=n.min),g=n.description);var _=function(t){f&&f(l({},e.attr,t))};return{attrMeta:n,container:i,defaultValue:x,fullContainer:p,fullValue:h,getValObject:u,isVisible:b,max:y,min:m,description:g,multiValued:v,updateContainer:f,updatePlot:_}}},"59a1":function(e,t,n){"use strict";function r(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window}e.exports=r},"59b0":function(e,t,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";e.exports=r},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a4c":function(e,t,n){"use strict";var r=n("7f23"),a=n("dec3"),o=n("0d82"),i=n("8164"),l=null,s={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),s=null;if(n.isCollapsed()){var u=n.getAnchorKey(),c=t.getBlockForKey(u).getLength();if(c===n.getAnchorOffset()){var f=t.getKeyAfter(u);if(null==f)return e;s=n.set("focusKey",f).set("focusOffset",0)}else s=n.set("focusOffset",c)}else s=n;s=i(s),l=o(t,s);var p=r.removeRange(t,s,"forward");return p===t?e:a.push(e,p,"remove-range")},paste:function(e){if(!l)return e;var t=r.replaceWithFragment(e.getCurrentContent(),e.getSelection(),l);return a.push(e,t,"insert-fragment")}};e.exports=s},"5b01":function(e,t,n){var r=n("8eeb"),a=n("ec69");function o(e,t){return e&&r(t,a(t),e)}e.exports=o},"5b71":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.flattenNames=void 0;var r=n("e2a0"),a=f(r),o=n("020f"),i=f(o),l=n("60ed"),s=f(l),u=n("dd61"),c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}var p=t.flattenNames=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=[];return(0,c.default)(t,(function(t){Array.isArray(t)?e(t).map((function(e){return n.push(e)})):(0,s.default)(t)?(0,i.default)(t,(function(e,t){!0===e&&n.push(t),n.push(t+"-"+e)})):(0,a.default)(t)&&n.push(t)})),n};t.default=p},"5baa":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M3,1C1.89,1 1,1.89 1,3V5H3V3H5V1H3M7,1V3H10V1H7M12,1V3H14V5H16V3C16,1.89 15.11,1 14,1H12M1,7V10H3V7H1M14,7C14,7 14,11.67 14,14C11.67,14 7,14 7,14C7,14 7,18 7,20C7,21.11 7.89,22 9,22H20C21.11,22 22,21.11 22,20V9C22,7.89 21.11,7 20,7C18,7 14,7 14,7M16,9H20V20H9V16H14C15.11,16 16,15.11 16,14V9M1,12V14C1,15.11 1.89,16 3,16H5V14H3V12H1Z"}))};e.exports=l},"5be5":function(e,t,n){"use strict";function r(e){return 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},r(e)}function a(e){if("object"!==r(e))throw new Error("trace provided to plotlyTraceToCustomTrace function should be an object, received ".concat(r(e)));var t="gl",n=e.type?e.type.endsWith(t)?e.type.slice(0,-t.length):e.type:"scatter";return"scatter"!==n&&"scattergl"!==n||[null,void 0,""].includes(e.stackgroup)&&!["tozeroy","tozerox","tonexty","tonextx","toself","tonext"].includes(e.fill)?"scatter"!==n&&"scattergl"!==n||"lines"!==e.mode&&"lines+markers"!==e.mode?"scatter3d"===n&&"lines"===e.mode?"line3d":n:"line":"area"}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n={type:"scatter"+t,mode:"markers",stackgroup:null};switch(e){case"line":return{type:"scatter"+t,mode:"lines",stackgroup:null};case"scatter":return n;case void 0:return n;case"area":return{type:"scatter"+t,mode:"lines",stackgroup:1};case"scatterpolar":return{type:"scatterpolar"+t};case"waterfall":return{type:"waterfall",orientation:"v"};case"box":return{type:"box",boxpoints:!1};case"violin":return{type:"violin",bandwidth:0};case"line3d":return{type:"scatter3d",mode:"lines"};case"scatter3d":return{type:"scatter3d",mode:"markers"};case"bar":return{orientation:"v",type:"bar"};case"cone":return{sizeref:1,type:"cone"};case"histogram2dcontour":return{type:"histogram2dcontour",autocolorscale:!0};case"histogram2d":return{type:"histogram2d",autocolorscale:!0};case"heatmap":return{type:"heatmap",autocolorscale:!0};case"contour":return{type:"contour",autocolorscale:!0};default:return{type:e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.plotlyTraceToCustomTrace=a,t.traceTypeToPlotlyInitFigure=o},"5be9":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M9.5,3C13.09,3 16,5.91 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16C5.91,16 3,13.09 3,9.5C3,5.91 5.91,3 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z"}))};e.exports=l},"5c08":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=w;var r=c(n("ab5b")),a=s(n("d7bc")),o=s(n("10b4")),i=n("4578"),l=n("e419");function s(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return f="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},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function w(e){var t=function(t){v(a,t);var n=y(a);function a(){return p(this,a),n.apply(this,arguments)}return h(a,[{key:"getChildContext",value:function(){var e=this.context,t=e.layout,n=e.fullLayout,r=e.plotly,a=e.onUpdate,i=function(e){a&&a({type:l.EDITOR_ACTIONS.UPDATE_LAYOUT,payload:{update:e}})};return{getValObject:function(e){return r?r.PlotSchema.getLayoutValObject(n,(0,o.default)({},e).parts):null},updateContainer:i,container:t,fullContainer:n}}},{key:"render",value:function(){return r.default.createElement(e,this.props)}}]),a}(r.Component);t.displayName="LayoutConnected".concat((0,i.getDisplayName)(e)),t.contextTypes={layout:a.default.object,fullLayout:a.default.object,plotly:a.default.object,onUpdate:a.default.func},t.childContextTypes={getValObject:a.default.func,updateContainer:a.default.func,container:a.default.object,fullContainer:a.default.object};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"5d0b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.active=void 0;var r=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},a=n("ab5b"),o=i(a);function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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}function u(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)}var c=t.active=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function a(){var n,i,u,c;l(this,a);for(var f=arguments.length,p=Array(f),d=0;d<f;d++)p[d]=arguments[d];return u=s(this,(n=a.__proto__||Object.getPrototypeOf(a)).call.apply(n,[this].concat(p))),i=u,u.state={active:!1},u.handleMouseDown=function(){return u.setState({active:!0})},u.handleMouseUp=function(){return u.setState({active:!1})},u.render=function(){return o.default.createElement(t,{onMouseDown:u.handleMouseDown,onMouseUp:u.handleMouseUp},o.default.createElement(e,r({},u.props,u.state)))},c=i,s(u,c)}return u(a,n),a}(o.default.Component)};t.default=c},"5d7c":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M9,3V21H11V3H9M5,3V21H7V3H5M13,3V21H15V3H13M19,3H17V21H19V3Z"}))};e.exports=l},"5d89":function(e,t,n){var r=n("f8af");function a(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}e.exports=a},"5d8c":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M4,2H20C21.1,2 22,2.9 22,4V16C22,17.1 21.1,18 20,18H16L12,22L8,18H4C2.9,18 2,17.1 2,16V4C2,2.9 2.9,2 4,2M5,5V7H19V5H5M5,9V11H15V9H5M5,13V15H17V13H5Z"}))};e.exports=l},"5dd4":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M22.46,6C21.69,6.35 20.86,6.58 20,6.69C20.88,6.16 21.56,5.32 21.88,4.31C21.05,4.81 20.13,5.16 19.16,5.36C18.37,4.5 17.26,4 16,4C13.65,4 11.73,5.92 11.73,8.29C11.73,8.63 11.77,8.96 11.84,9.27C8.28,9.09 5.11,7.38 3,4.79C2.63,5.42 2.42,6.16 2.42,6.94C2.42,8.43 3.17,9.75 4.33,10.5C3.62,10.5 2.96,10.3 2.38,10C2.38,10 2.38,10 2.38,10.03C2.38,12.11 3.86,13.85 5.82,14.24C5.46,14.34 5.08,14.39 4.69,14.39C4.42,14.39 4.15,14.36 3.89,14.31C4.43,16 6,17.26 7.89,17.29C6.43,18.45 4.58,19.13 2.56,19.13C2.22,19.13 1.88,19.11 1.54,19.07C3.44,20.29 5.7,21 8.12,21C16,21 20.33,14.46 20.33,8.79C20.33,8.6 20.33,8.42 20.32,8.23C21.16,7.63 21.88,6.87 22.46,6Z"}))};e.exports=l},"5e2e":function(e,t,n){var r=n("28c9"),a=n("69d5"),o=n("b4c0"),i=n("fba5"),l=n("67ca");function s(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype["delete"]=a,s.prototype.get=o,s.prototype.has=i,s.prototype.set=l,e.exports=s},"5e95":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var r=s(n("ab5b")),a=i(n("d7bc")),o=n("4578");function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(){return c=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},c.apply(this,arguments)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function _(e){var t=function(t){h(a,t);var n=m(a);function a(e,t){var r;return f(this,a),r=n.call(this,e,t),r.updateSubplot=r.updateSubplot.bind(g(r)),r.setLocals(e,t),r}return d(a,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.subplot,r=e.traceIndexes,a=t.container,i=t.fullContainer,l=t.data;this.container=a[n]||{},this.fullContainer=i[n]||{};var s=r.length>0?l[r[0]]:{},u=(0,o.getFullTrace)(e,t);s&&u&&(this.icon=(0,o.renderTraceIcon)((0,o.plotlyTraceToCustomTrace)(s)),this.name=u.name)}},{key:"getChildContext",value:function(){var e=this;return{getValObject:function(t){return e.context.getValObject?e.context.getValObject("".concat(e.props.subplot,".").concat(t)):null},updateContainer:this.updateSubplot,container:this.container,fullContainer:this.fullContainer}}},{key:"updateSubplot",value:function(e){var t={};for(var n in e)t["".concat(this.props.subplot,".").concat(n)]=e[n];this.context.updateContainer(t)}},{key:"render",value:function(){return r.default.createElement(e,c({name:this.name,icon:this.icon},this.props))}}]),a}(r.Component);t.displayName="SubplotConnected".concat((0,o.getDisplayName)(e)),t.propTypes={subplot:a.default.string.isRequired},t.contextTypes={container:a.default.object,fullContainer:a.default.object,data:a.default.array,fullData:a.default.array,onUpdate:a.default.func,updateContainer:a.default.func,getValObject:a.default.func},t.childContextTypes={updateContainer:a.default.func,deleteContainer:a.default.func,container:a.default.object,fullContainer:a.default.object,getValObject:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},"5f11":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n("ab5b")),a=l(n("e874")),o=l(n("d7bc")),i=n("0bab");function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return 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},s(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function p(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&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=y();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){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}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var b=function(e){p(n,e);var t=h(n);function n(e){var r;u(this,n),r=t.call(this,e);var a=r.unwrap(e.value);return r.state={value:a},r.onChange=r.onChange.bind(m(r)),r.onBlur=r.onBlur.bind(m(r)),r}return f(n,[{key:"componentWillReceiveProps",value:function(e){var t=this.unwrap(e.value);t!==this.state.value&&this.setState({value:t})}},{key:"unwrap",value:function(e){return(0,i.isLaTeXExpr)(e)?e.substr(1,e.length-2):e}},{key:"wrap",value:function(e){return(0,i.isLaTeXExpr)(e)?e:"$".concat(e,"$")}},{key:"onChange",value:function(e){this.setState({value:e.target.value})}},{key:"onBlur",value:function(e){var t=this.wrap(e.target.value);this.props.onChange(t)}},{key:"render",value:function(){var e=this.props.className,t=e||"text-editor__latex";return r.default.createElement("textarea",{value:this.state.value,placeholder:this.props.placeholder,onChange:this.onChange,onBlur:this.onBlur,className:t})}}]),n}(a.default);t.default=b,b.propTypes={className:o.default.string,onChange:o.default.func.isRequired,placeholder:o.default.string,value:o.default.string},b.defaultProps={value:"",placeholder:""}},"5f31":function(e,t,n){"use strict";n.r(t);var r=n("d7bc"),a=n.n(r),o=n("ab5b"),i=n.n(o),l=n("bce9");function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){f(e,t,n[t])}))}return e}function d(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&&v(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?m(e):t}var g=function(e,t){return Math.sqrt(e*e+t*t)},b=function(e,t){var n=e.x,r=e.y,a=t.x,o=t.y,i=n*a+r*o,l=n*o-r*a,s=Math.atan2(l,i)/Math.PI*180;return(s+360)%360},x=function(e){return e*Math.PI/180},_=function(e){return Math.cos(x(e))},w=function(e){return Math.sin(x(e))},k=function(e,t,n){var r=e+t;return r>n?e=r:(t=n-e,e=n),{width:e,deltaW:t}},T=function(e,t,n){var r=e+t;return r>n?e=r:(t=n-e,e=n),{height:e,deltaH:t}},E=function(e,t,n,r,a,o,i){var l=t.width,s=t.height,u=t.centerX,c=t.centerY,f=t.rotateAngle,p=l<0?-1:1,d=s<0?-1:1;switch(l=Math.abs(l),s=Math.abs(s),e){case"r":var h=k(l,n,o);l=h.width,n=h.deltaW,a?(r=n/a,s=l/a,u+=n/2*_(f)-r/2*w(f),c+=n/2*w(f)+r/2*_(f)):(u+=n/2*_(f),c+=n/2*w(f));break;case"tr":r=-r;var v=k(l,n,o);l=v.width,n=v.deltaW;var m=T(s,r,i);s=m.height,r=m.deltaH,a&&(n=r*a,l=s*a),u+=n/2*_(f)+r/2*w(f),c+=n/2*w(f)-r/2*_(f);break;case"br":var y=k(l,n,o);l=y.width,n=y.deltaW;var g=T(s,r,i);s=g.height,r=g.deltaH,a&&(n=r*a,l=s*a),u+=n/2*_(f)-r/2*w(f),c+=n/2*w(f)+r/2*_(f);break;case"b":var b=T(s,r,i);s=b.height,r=b.deltaH,a?(n=r*a,l=s*a,u+=n/2*_(f)-r/2*w(f),c+=n/2*w(f)+r/2*_(f)):(u-=r/2*w(f),c+=r/2*_(f));break;case"bl":n=-n;var x=k(l,n,o);l=x.width,n=x.deltaW;var E=T(s,r,i);s=E.height,r=E.deltaH,a&&(s=l/a,r=n/a),u-=n/2*_(f)+r/2*w(f),c-=n/2*w(f)-r/2*_(f);break;case"l":n=-n;var O=k(l,n,o);l=O.width,n=O.deltaW,a?(s=l/a,r=n/a,u-=n/2*_(f)+r/2*w(f),c-=n/2*w(f)-r/2*_(f)):(u-=n/2*_(f),c-=n/2*w(f));break;case"tl":n=-n,r=-r;var M=k(l,n,o);l=M.width,n=M.deltaW;var S=T(s,r,i);s=S.height,r=S.deltaH,a&&(l=s*a,n=r*a),u-=n/2*_(f)-r/2*w(f),c-=n/2*w(f)+r/2*_(f);break;case"t":r=-r;var C=T(s,r,i);s=C.height,r=C.deltaH,a?(l=s*a,n=r*a,u+=n/2*_(f)+r/2*w(f),c+=n/2*w(f)-r/2*_(f)):(u+=r/2*w(f),c-=r/2*_(f));break}return{position:{centerX:u,centerY:c},size:{width:l*p,height:s*d}}},O={n:0,ne:1,e:2,se:3,s:4,sw:5,w:6,nw:7},M=["n","ne","e","se","s","sw","w","nw"],S={0:0,1:1,2:2,3:2,4:3,5:4,6:4,7:5,8:6,9:6,10:7,11:8},C=function(e,t){var n=S[Math.floor(e/30)],r=O[t],a=(r+n)%8;return M[a]},A=function(e){var t=e.centerX,n=e.centerY,r=e.width,a=e.height,o=e.rotateAngle;return{top:n-a/2,left:t-r/2,width:r,height:a,rotateAngle:o}},P=function(e){var t=e.top,n=e.left,r=e.width,a=e.height,o=e.rotateAngle;return{position:{centerX:n+r/2,centerY:t+a/2},size:{width:r,height:a},transform:{rotateAngle:o}}},L=l["a"].div.withConfig({displayName:"StyledRect",componentId:"sc-1uso172-0"})(['position:absolute;border:1px solid #eb5648;.square{position:absolute;width:7px;height:7px;background:white;border:1px solid #eb5648;border-radius:1px;}.resizable-handler{position:absolute;width:14px;height:14px;cursor:pointer;z-index:1;&.tl,&.t,&.tr{top:-7px;}&.tl,&.l,&.bl{left:-7px;}&.bl,&.b,&.br{bottom:-7px;}&.br,&.r,&.tr{right:-7px;}&.l,&.r{margin-top:-7px;}&.t,&.b{margin-left:-7px;}}.rotate{position:absolute;cursor:pointer;left:50%;top:-26px;transform:translateX(-50%);& i{font-size:18px;display:inline-block;width:1em;height:1em;background-size:1em 1em;background-repeat:no-repeat;background-position:center center;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPjxkZWZzPjxwYXRoIGlkPSJhIiBkPSJNOC4zIDUuNEw4IC40bDMuMiAyLjEgMS43IDF6Ii8+PG1hc2sgaWQ9ImIiIHg9IjAiIHk9IjAiIHdpZHRoPSI0LjkiIGhlaWdodD0iNC45IiBmaWxsPSIjZmZmIj48dXNlIHhsaW5rOmhyZWY9IiNhIi8+PC9tYXNrPjwvZGVmcz48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxIDEpIiBzdHJva2U9IiNGNTVENTQiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZD0iTTExIDkuMkE2IDYgMCAwIDEgMCA2YTYgNiAwIDAgMSAxMC43LTMuOCIvPjx1c2UgbWFzaz0idXJsKCNiKSIgc3Ryb2tlLXdpZHRoPSIyIiB0cmFuc2Zvcm09Im1hdHJpeCgtMSAwIDAgMSAyMSAwKSIgeGxpbms6aHJlZj0iI2EiLz48L2c+PC9zdmc+Cg==");}}.t,.tl,.tr{top:-3px;}.b,.bl,.br{bottom:-3px;}.r,.tr,.br{right:-3px;}.tl,.l,.bl{left:-3px;}.l,.r{top:50%;margin-top:-3px;}.t,.b{left:50%;margin-left:-3px;}']),D={n:"t",s:"b",e:"r",w:"l",ne:"tr",nw:"tl",se:"br",sw:"bl"},j=function(e){function t(){var e,n;s(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=y(this,(e=h(t)).call.apply(e,[this].concat(a))),f(m(m(n)),"setElementRef",(function(e){n.$element=e})),f(m(m(n)),"startDrag",(function(e){var t=e.clientX,r=e.clientY;n.props.onDragStart&&n.props.onDragStart(),n._isMouseDown=!0;var a=function(e){if(n._isMouseDown){e.stopImmediatePropagation();var a=e.clientX,o=e.clientY,i=a-t,l=o-r;n.props.onDrag(i,l),t=a,r=o}},o=function e(){document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",e),n._isMouseDown&&(n._isMouseDown=!1,n.props.onDragEnd&&n.props.onDragEnd())};document.addEventListener("mousemove",a),document.addEventListener("mouseup",o)})),f(m(m(n)),"startRotate",(function(e){if(0===e.button){var t=e.clientX,r=e.clientY,a=n.props.styles.transform.rotateAngle,o=n.$element.getBoundingClientRect(),i={x:o.left+o.width/2,y:o.top+o.height/2},l={x:t-i.x,y:r-i.y};n.props.onRotateStart&&n.props.onRotateStart(),n._isMouseDown=!0;var s=function(e){if(n._isMouseDown){e.stopImmediatePropagation();var t=e.clientX,r=e.clientY,o={x:t-i.x,y:r-i.y},s=b(l,o);n.props.onRotate(s,a)}},u=function e(){document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",e),n._isMouseDown&&(n._isMouseDown=!1,n.props.onRotateEnd&&n.props.onRotateEnd())};document.addEventListener("mousemove",s),document.addEventListener("mouseup",u)}})),f(m(m(n)),"startResize",(function(e,t){if(0===e.button){document.body.style.cursor=t;var r=n.props.styles,a=r.position,o=a.centerX,i=a.centerY,l=r.size,s=l.width,u=l.height,c=r.transform.rotateAngle,f=e.clientX,p=e.clientY,d={width:s,height:u,centerX:o,centerY:i,rotateAngle:c},h=e.target.getAttribute("class").split(" ")[0];n.props.onResizeStart&&n.props.onResizeStart(),n._isMouseDown=!0;var v=function(e){if(n._isMouseDown){e.stopImmediatePropagation();var t=e.clientX,r=e.clientY,a=t-f,o=r-p,i=Math.atan2(o,a),l=g(a,o),s=e.shiftKey;n.props.onResize(l,i,d,h,s)}},m=function e(){document.body.style.cursor="auto",document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",e),n._isMouseDown&&(n._isMouseDown=!1,n.props.onResizeEnd&&n.props.onResizeEnd())};document.addEventListener("mousemove",v),document.addEventListener("mouseup",m)}})),n}return d(t,e),c(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.styles,r=n.position,a=r.centerX,o=r.centerY,l=n.size,s=l.width,u=l.height,c=n.transform.rotateAngle,f=t.zoomable,p=t.rotatable,d=t.parentRotateAngle,h={width:Math.abs(s),height:Math.abs(u),transform:"rotate(".concat(c,"deg)"),left:a-Math.abs(s)/2,top:o-Math.abs(u)/2},v=f.split(",").map((function(e){return e.trim()})).filter((function(e){return e}));return i.a.createElement(L,{ref:this.setElementRef,onMouseDown:this.startDrag,className:"rect single-resizer",style:h},p&&i.a.createElement("div",{className:"rotate",onMouseDown:this.startRotate},i.a.createElement("i",null)),v.map((function(t){var n="".concat(C(c+d,t),"-resize");return i.a.createElement("div",{key:t,style:{cursor:n},className:"".concat(D[t]," resizable-handler"),onMouseDown:function(t){return e.startResize(t,n)}})})),v.map((function(e){return i.a.createElement("div",{key:e,className:"".concat(D[e]," square")})})))}}]),t}(o["PureComponent"]);f(j,"propTypes",{styles:a.a.object,zoomable:a.a.string,rotatable:a.a.bool,onResizeStart:a.a.func,onResize:a.a.func,onResizeEnd:a.a.func,onRotateStart:a.a.func,onRotate:a.a.func,onRotateEnd:a.a.func,onDragStart:a.a.func,onDrag:a.a.func,onDragEnd:a.a.func,parentRotateAngle:a.a.number});var I=function(e){function t(){var e,n;s(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=y(this,(e=h(t)).call.apply(e,[this].concat(a))),f(m(m(n)),"handleRotate",(function(e,t){if(n.props.onRotate){var r=Math.round(t+e);r>=360?r-=360:r<0&&(r+=360),r>356||r<4?r=0:r>86&&r<94?r=90:r>176&&r<184?r=180:r>266&&r<274&&(r=270),n.props.onRotate(r)}})),f(m(m(n)),"handleResize",(function(e,t,r,a,o){if(n.props.onResize){var i=n.props,l=i.rotateAngle,s=i.aspectRatio,u=i.minWidth,c=i.minHeight,f=i.parentRotateAngle,d=t-x(l+f),h=e*Math.cos(d),v=e*Math.sin(d),m=o&&!s?r.width/r.height:s,y=E(a,p({},r,{rotateAngle:l}),h,v,m,u,c),g=y.position,b=g.centerX,_=g.centerY,w=y.size,k=w.width,T=w.height;n.props.onResize(A({centerX:b,centerY:_,width:k,height:T,rotateAngle:l}),o,a)}})),f(m(m(n)),"handleDrag",(function(e,t){n.props.onDrag&&n.props.onDrag(e,t)})),n}return d(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.top,n=e.left,r=e.width,a=e.height,o=e.rotateAngle,l=e.parentRotateAngle,s=e.zoomable,u=e.rotatable,c=e.onRotate,f=e.onResizeStart,p=e.onResizeEnd,d=e.onRotateStart,h=e.onRotateEnd,v=e.onDragStart,m=e.onDragEnd,y=P({top:t,left:n,width:r,height:a,rotateAngle:o});return i.a.createElement(j,{styles:y,zoomable:s,rotatable:Boolean(u&&c),parentRotateAngle:l,onResizeStart:f,onResize:this.handleResize,onResizeEnd:p,onRotateStart:d,onRotate:this.handleRotate,onRotateEnd:h,onDragStart:v,onDrag:this.handleDrag,onDragEnd:m})}}]),t}(o["Component"]);f(I,"propTypes",{left:a.a.number.isRequired,top:a.a.number.isRequired,width:a.a.number.isRequired,height:a.a.number.isRequired,rotatable:a.a.bool,rotateAngle:a.a.number,parentRotateAngle:a.a.number,zoomable:a.a.string,minWidth:a.a.number,minHeight:a.a.number,aspectRatio:a.a.oneOfType([a.a.number,a.a.bool]),onRotateStart:a.a.func,onRotate:a.a.func,onRotateEnd:a.a.func,onResizeStart:a.a.func,onResize:a.a.func,onResizeEnd:a.a.func,onDragStart:a.a.func,onDrag:a.a.func,onDragEnd:a.a.func}),f(I,"defaultProps",{parentRotateAngle:0,rotateAngle:0,rotatable:!0,zoomable:"",minWidth:10,minHeight:10}),t["default"]=I},"5f50":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=(e.type||"").toLowerCase(),o=a.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?o===t.replace(/\/.*$/,""):a===t}))}return!0}},"5fb2":function(e,t,n){"use strict";var r=2147483647,a=36,o=1,i=26,l=38,s=700,u=72,c=128,f="-",p=/[^\0-\u007E]/,d=/[.\u3002\uFF0E\uFF61]/g,h="Overflow: input needs wider integers to process",v=a-o,m=Math.floor,y=String.fromCharCode,g=function(e){var t=[],n=0,r=e.length;while(n<r){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&a)<<10)+(1023&o)+65536):(t.push(a),n--)}else t.push(a)}return t},b=function(e){return e+22+75*(e<26)},x=function(e,t,n){var r=0;for(e=n?m(e/s):e>>1,e+=m(e/t);e>v*i>>1;r+=a)e=m(e/v);return m(r+(v+1)*e/(e+l))},_=function(e){var t=[];e=g(e);var n,l,s=e.length,p=c,d=0,v=u;for(n=0;n<e.length;n++)l=e[n],l<128&&t.push(y(l));var _=t.length,w=_;_&&t.push(f);while(w<s){var k=r;for(n=0;n<e.length;n++)l=e[n],l>=p&&l<k&&(k=l);var T=w+1;if(k-p>m((r-d)/T))throw RangeError(h);for(d+=(k-p)*T,p=k,n=0;n<e.length;n++){if(l=e[n],l<p&&++d>r)throw RangeError(h);if(l==p){for(var E=d,O=a;;O+=a){var M=O<=v?o:O>=v+i?i:O-v;if(E<M)break;var S=E-M,C=a-M;t.push(y(b(M+S%C))),E=m(S/C)}t.push(y(b(E))),v=x(d,T,w==_),d=0,++w}}++d,++p}return t.join("")};e.exports=function(e){var t,n,r=[],a=e.toLowerCase().replace(d,".").split(".");for(t=0;t<a.length;t++)n=a[t],r.push(p.test(n)?"xn--"+_(n):n);return r.join(".")}},"5ff2":function(e,t,n){"use strict";e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},6017:function(e,t,n){(function(e,t){(function(e,n){"use strict";if(!e.setImmediate){var r,a=1,o={},i=!1,l=e.document,s=Object.getPrototypeOf&&Object.getPrototypeOf(e);s=s&&s.setTimeout?s:e,"[object process]"==={}.toString.call(e.process)?d():h()?v():e.MessageChannel?m():l&&"onreadystatechange"in l.createElement("script")?y():g(),s.setImmediate=u,s.clearImmediate=c}function u(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return o[a]=i,r(a),a++}function c(e){delete o[e]}function f(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r);break}}function p(e){if(i)setTimeout(p,0,e);else{var t=o[e];if(t){i=!0;try{f(t)}finally{c(e),i=!1}}}}function d(){r=function(e){t.nextTick((function(){p(e)}))}}function h(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}function v(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"===typeof n.data&&0===n.data.indexOf(t)&&p(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),r=function(n){e.postMessage(t+n,"*")}}function m(){var e=new MessageChannel;e.port1.onmessage=function(e){var t=e.data;p(t)},r=function(t){e.port2.postMessage(t)}}function y(){var e=l.documentElement;r=function(t){var n=l.createElement("script");n.onreadystatechange=function(){p(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}function g(){r=function(e){setTimeout(p,0,e)}}})("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(this,n("c8ba"),n("4362"))},6033:function(e,t,n){"use strict";var r=n("8720");function a(e,t){var n=e._latestEditorState,a=n.getSelection();a.isCollapsed()?t.preventDefault():e.setClipboard(r(e._latestEditorState))}e.exports=a},"603a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedDropzone=void 0;var r=c(n("6754")),a=c(n("5174")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=function(e){g(n,e);var t=x(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){return i.default.createElement(a.default,this.props,i.default.createElement(r.default,{value:this.props.fullValue,onUpdate:this.props.updatePlot,fileType:this.props.fileType}))}}]),n}(i.Component);function O(e,t,n){"choroplethmapbox"!==t.container.type&&"choropleth"!==t.container.type||(n.isVisible=!0)}t.UnconnectedDropzone=E,E.propTypes=d({value:o.default.any,onUpdate:o.default.func},a.default.propTypes),E.displayName="UnconnectedDropzone";var M=(0,l.connectToContainer)(E,{modifyPlotProps:O});t.default=M},6044:function(e,t,n){var r=n("0b07"),a=r(Object,"create");e.exports=a},6062:function(e,t,n){"use strict";var r=n("6d61"),a=n("6566");e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),a)},6097:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M18,4V3C18,2.45 17.55,2 17,2H5C4.45,2 4,2.45 4,3V7C4,7.55 4.45,8 5,8H17C17.55,8 18,7.55 18,7V6H19V10H9V21C9,21.55 9.45,22 10,22H12C12.55,22 13,21.55 13,21V12H21V4H18Z"}))};e.exports=l},"60da":function(e,t,n){"use strict";var r=n("83ab"),a=n("d039"),o=n("df75"),i=n("7418"),l=n("d1e7"),s=n("7b0b"),u=n("44ad"),c=Object.assign,f=Object.defineProperty;e.exports=!c||a((function(){if(r&&1!==c({b:1},c(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),a="abcdefghijklmnopqrst";return e[n]=7,a.split("").forEach((function(e){t[e]=e})),7!=c({},e)[n]||o(c({},t)).join("")!=a}))?function(e,t){var n=s(e),a=arguments.length,c=1,f=i.f,p=l.f;while(a>c){var d,h=u(arguments[c++]),v=f?o(h).concat(f(h)):o(h),m=v.length,y=0;while(m>y)d=v[y++],r&&!p.call(h,d)||(n[d]=h[d])}return n}:c},"60ed":function(e,t,n){var r=n("3729"),a=n("2dcb"),o=n("1310"),i="[object Object]",l=Function.prototype,s=Object.prototype,u=l.toString,c=s.hasOwnProperty,f=u.call(Object);function p(e){if(!o(e)||r(e)!=i)return!1;var t=a(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}e.exports=p},6147:function(e,t,n){"use strict";var r=n("485e"),a=n("dec3"),o=n("0c45"),i=n("f1df");function l(e){var t=i(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),a=t.getStartKey(),i=e.getCurrentContent(),l=i.getBlockForKey(a).getText().slice(n),s=r.getForward(l);return o(e,s.length||1)}),"forward");return t===e.getCurrentContent()?e:a.push(e,t,"remove-range")}e.exports=l},6152:function(e,t,n){"use strict";function r(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(a).join(" "):Array.prototype.map.call(arguments,a).join(" ")}function a(e){return e.replace(/\//g,"-")}e.exports=r},"615b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n("ab5b"),o=s(a),i=n("d7bc"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function f(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)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return this.props!==e}},{key:"render",value:function(){var e=this.props,t=e.weekday,n=e.className,r=e.weekdaysLong,a=e.weekdaysShort,i=e.localeUtils,l=e.locale,s=void 0;s=r?r[t]:i.formatWeekdayLong(t,l);var u=void 0;return u=a?a[t]:i.formatWeekdayShort(t,l),o.default.createElement("div",{className:n,role:"columnheader"},o.default.createElement("abbr",{title:s},u))}}]),t}(a.Component);p.propTypes={weekday:l.default.number,className:l.default.string,locale:l.default.string,localeUtils:l.default.object,weekdaysLong:l.default.arrayOf(l.default.string),weekdaysShort:l.default.arrayOf(l.default.string)},t.default=p},"61ba":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("ab5b")),a=i(n("d7bc")),o=n("c85e");function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var n=t.localize;return r.default.createElement(o.ShapeAccordion,{canAdd:!0,canReorder:!0},r.default.createElement(o.Radio,{attr:"visible",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.Radio,{attr:"type",options:[{label:n("Line"),value:"line"},{label:n("Rectangle"),value:"rect"},{label:n("Ellipse"),value:"circle"}]}),r.default.createElement(o.PlotlySection,{name:n("Horizontal Boundaries")},r.default.createElement(o.PositioningRef,{label:n("Relative to"),attr:"xref"}),r.default.createElement(o.PositioningNumeric,{label:n("Start Point"),attr:"x0"}),r.default.createElement(o.PositioningNumeric,{label:n("End Point"),attr:"x1"})),r.default.createElement(o.PlotlySection,{name:n("Vertical Boundaries")},r.default.createElement(o.PositioningRef,{label:n("Relative to"),attr:"yref"}),r.default.createElement(o.PositioningNumeric,{label:n("Start Point"),attr:"y0"}),r.default.createElement(o.PositioningNumeric,{label:n("End Point"),attr:"y1"})),r.default.createElement(o.PlotlySection,{name:n("Lines")},r.default.createElement(o.Numeric,{label:n("Width"),attr:"line.width"}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"line.color"}),r.default.createElement(o.LineDashSelector,{label:n("Type"),attr:"line.dash"})),r.default.createElement(o.PlotlySection,{name:n("Fill")},r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"fillcolor"}),r.default.createElement(o.NumericFraction,{label:n("Opacity"),attr:"opacity"})))};l.contextTypes={localize:a.default.func};var s=l;t.default=s},"61e5":function(e,t,n){"use strict";var r=n("24f7"),a=r.OrderedMap,o={createFromArray:function(e){return a(e.map((function(e){return[e.getKey(),e]})))}};e.exports=o},"622c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("eff1")),a=c(n("5174")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return h="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},h(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=function(e){g(n,e);var t=x(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){return i.default.createElement(a.default,this.props,i.default.createElement(r.default,{selected:this.props.fullValue,onColorscaleChange:this.props.updatePlot,initialCategory:"categorical",disableCategorySwitch:this.props.disableCategorySwitch}))}}]),n}(i.Component);E.propTypes=p({fullValue:o.default.any,updatePlot:o.default.func},a.default.propTypes),E.displayName="UnconnectedColorwayPicker";var O=(0,l.connectToContainer)(E);t.default=O},6283:function(e,t,n){var r;
/*!
* sqlite-parser - v1.0.1
* @copyright 2015-2017 Code School (http://codeschool.com)
* @author Nick Wronski <nick@javascript.com>
*/
(function(t){e.exports=t()})((function(){return function e(t,n,a){function o(l,s){if(!n[l]){if(!t[l]){var u="function"==typeof r&&r;if(!s&&u)return r(l,!0);if(i)return i(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[l]={exports:{}};t[l][0].call(f.exports,(function(e){var n=t[l][1][e];return o(n||e)}),f,f.exports,e,t,n,a)}return n[l].exports}for(var i="function"==typeof r&&r,l=0;l<a.length;l++)o(a[l]);return o}({"./streaming":[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});n.SqliteParserTransform=function e(t){throw r(this,e),new Error("SqliteParserTransform is not available in this environment")},n.SingleNodeTransform=function e(t){throw r(this,e),new Error("SingleNodeTransform is not available in this environment")}},{}],1:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=i;var r=e("./parser"),a=e("./tracer"),o=e("./streaming");function i(e,t,n){var o=(0,a.Tracer)();2===arguments.length&&"function"===typeof t&&(n=t,t={});var i="function"===typeof n,l={tracer:o,startRule:"start"};if(t&&t.streaming&&(l["startRule"]="start_streaming"),i)setTimeout((function(){var t=void 0,a=void 0;try{t=(0,r.parse)(e,l)}catch(i){a=i instanceof r.SyntaxError?o.smartError(i):i}n(a,t)}),0);else try{return(0,r.parse)(e,l)}catch(s){throw s instanceof r.SyntaxError?o.smartError(s):s}}i["createParser"]=function(){return new o.SqliteParserTransform},i["createStitcher"]=function(){return new o.SingleNodeTransform},i["NAME"]="sqlite-parser",i["VERSION"]="1.0.1",t.exports=n["default"]},{"./parser":2,"./streaming":"./streaming","./tracer":3}],2:[function(e,t,n){"use strict";var r=function(){function e(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)if(n.push(i.value),t&&n.length===t)break}catch(s){a=!0,o=s}finally{try{!r&&l["return"]&&l["return"]()}finally{if(a)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a="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 o(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function i(e,t,n,r){this.message=e,this.expected=t,this.found=n,this.location=r,this.name="SyntaxError","function"===typeof Error.captureStackTrace&&Error.captureStackTrace(this,i)}function l(){this.indentLevel=0}function s(e,t){t=void 0!==t?t:{};var n,a={},o={start:0,start_streaming:1},s=0,u=[function(e){return e},function(e,t){return{type:"statement",variant:"list",statement:R([e,t])}},function(e){return e},T("Type Definition"),function(e,t){return Object.assign(e,t)},function(e){return{type:"datatype",variant:e[0],affinity:e[1]}},T("Custom Datatype Name"),function(e,t){var n=I([e,t]),r="numeric";return/int/i.test(n)?r="integer":/char|clob|text/i.test(n)?r="text":/blob/i.test(n)?r="blob":/real|floa|doub/i.test(n)&&(r="real"),{type:"datatype",variant:n,affinity:r}},/^[\t ]/,_(["\t"," "],!1,!1),function(e){return e},T("Type Definition Arguments"),function(e,t){return{args:{type:"expression",variant:"list",expression:R([e,t])}}},function(e){return e},T("Null Literal"),function(e){return{type:"literal",variant:"null",value:B(e)}},T("Date Literal"),function(e){return{type:"literal",variant:"date",value:B(e)}},T("String Literal"),function(e,t){return{type:"literal",variant:"text",value:t}},T("Single-quoted String Literal"),function(e){return z(e,"'")},"''",x("''",!1),/^[^']/,_(["'"],!0,!1),T("Blob Literal"),/^[x]/i,_(["x"],!1,!0),function(e){return{type:"literal",variant:"blob",value:e}},function(e){return{type:"literal",variant:"text",value:e}},T("Number Sign"),function(e,t){return L(e)&&(t["value"]=j([e,t["value"]])),t},function(e,t){return{type:"literal",variant:"decimal",value:j([e,t])}},T("Decimal Literal"),function(e,t){return j([e,t])},function(e,t){return j([e,t])},T("Decimal Literal Exponent"),"e",x("E",!0),/^[+\-]/,_(["+","-"],!1,!1),function(e,t,n){return j([e,t,n])},T("Hexidecimal Literal"),"0x",x("0x",!0),function(e,t){return{type:"literal",variant:"hexidecimal",value:j([e,t])}},/^[0-9a-f]/i,_([["0","9"],["a","f"]],!1,!0),/^[0-9]/,_([["0","9"]],!1,!1),T("Bind Parameter"),function(e){return Object.assign({type:"variable"},e)},T("Numbered Bind Parameter"),function(e,t){return{format:"numbered",name:j([e,t])}},/^[1-9]/,_([["1","9"]],!1,!1),function(e,t){return j([e,t])},T("Named Bind Parameter"),/^[:@]/,_([":","@"],!1,!1),function(e,t){return{format:"named",name:j([e,t])}},T("TCL Bind Parameter"),"$",x("$",!1),":",x(":",!1),function(e,t,n){return Object.assign({format:"tcl",name:j([e,t])},n)},function(e){return{suffix:e}},T("EXISTS Expression"),function(e,t){return L(e)?{type:"expression",format:"unary",variant:"exists",expression:t,operator:B(e)}:t},T("EXISTS Keyword"),function(e,t){return I([e,t])},T("RAISE Expression"),function(e,t){return Object.assign({type:"expression",format:"unary",variant:B(e),expression:t},t)},T("RAISE Expression Arguments"),function(e){return Object.assign({type:"error"},e)},T("IGNORE Keyword"),function(e){return{action:B(e)}},function(e,t){return{action:B(e),message:t}},function(e){return e},function(e,t){return Object.assign(t,{expression:e})},function(e,t){return{type:"expression",format:"unary",variant:"operation",expression:t,operator:B(e)}},T("COLLATE Expression"),function(e){return Object.assign({type:"expression",format:"unary",variant:"operation",operator:"collate"},e)},function(e,t){return H(e,t)},function(e){return[null,e,null,{type:"literal",variant:"null",value:"null"}]},"not ",x("NOT ",!0),"null",x("NULL",!0),function(){return"not"},function(){return"is"},T("CAST Expression"),function(e,t,n){return{type:"expression",format:"unary",variant:B(e),expression:t,as:n}},T("Type Alias"),function(e){return e},T("CASE Expression"),function(e,t,n,r){return Object.assign({type:"expression",variant:B(e),expression:R([n,r])},t)},function(e){return{discriminant:e}},T("WHEN Clause"),function(e,t,n){return{type:"condition",variant:B(e),condition:t,consequent:n}},T("ELSE Clause"),function(e,t){return{type:"condition",variant:B(e),consequent:t}},function(e,t){return Object.assign(t,{left:e})},T("Comparison Expression"),function(e,t,n,r){return Object.assign({type:"expression",format:"binary",variant:"operation",operation:I([e,t]),right:n},r)},T("ESCAPE Expression"),function(e,t){return{escape:t}},T("BETWEEN Expression"),function(e,t,n){return{type:"expression",format:"binary",variant:"operation",operation:I([e,t]),right:n}},function(e,t){return H(e,[t])},function(e){return B(e)},T("IN Expression"),function(e,t,n){return{type:"expression",format:"binary",variant:"operation",operation:I([e,t]),right:n}},function(e){return e},T("Expression List"),function(e){return{type:"expression",variant:"list",expression:L(e)?e:[]}},function(e,t){return R([e,t])},T("Function Call"),function(e,t){return Object.assign({type:"function",name:e},t)},T("Function Call Arguments"),function(e){return{args:{type:"identifier",variant:"star",name:e}}},function(e,t){return!L(e)||t["expression"].length>0},function(e,t){return{args:Object.assign(t,e)}},function(e){return{filter:B(e)}},T("Error Message"),function(e){return e},T("Statement"),function(e,t){return Object.assign(t,e)},T("QUERY PLAN"),function(e,t){return{explain:L(e)}},T("QUERY PLAN Keyword"),function(e,t){return I([e,t])},T("END Transaction Statement"),function(e,t){return{type:"statement",variant:"transaction",action:"commit"}},T("BEGIN Transaction Statement"),function(e,t,n,r){return Object.assign({type:"statement",variant:"transaction",action:"begin"},t,r)},function(e){return e},function(e){return{defer:B(e)}},T("ROLLBACK Statement"),function(e,t){return Object.assign({type:"statement",variant:"transaction",action:"rollback"},t)},T("TO Clause"),function(e){return{savepoint:e}},function(e){return B(e)},T("SAVEPOINT Statement"),function(e,t){return{type:"statement",variant:e,target:t}},T("RELEASE Statement"),function(e,t,n){return{type:"statement",variant:B(e),target:n}},T("ALTER TABLE Statement"),function(e,t,n){return Object.assign({type:"statement",variant:B(e),target:t},n)},T("ALTER TABLE Keyword"),function(e,t){return I([e,t])},T("RENAME TO Keyword"),function(e,t){return{action:B(e),name:t}},T("ADD COLUMN Keyword"),function(e,t){return{action:B(e),definition:t}},function(e,t){return Object.assign(t,e)},T("WITH Clause"),function(e,t,n){var r={variant:L(t)?"recursive":"common"};return V(n)&&(n=n.map((function(e){return Object.assign(e,r)}))),{with:n}},function(e,t){return R([e,t])},T("Common Table Expression"),function(e,t){return Object.assign({type:"expression",format:"table",variant:"common",target:e},t)},function(e){return{expression:e}},function(e,t){return Object.assign(t,e)},T("ATTACH Statement"),function(e,t,n,r){return{type:"statement",variant:B(e),target:r,attach:n}},T("DETACH Statement"),function(e,t,n){return{type:"statement",variant:B(e),target:n}},T("VACUUM Statement"),function(e,t){return Object.assign({type:"statement",variant:"vacuum"},t)},function(e){return{target:e}},T("ANALYZE Statement"),function(e,t){return Object.assign({type:"statement",variant:B(e)},t)},function(e){return{target:e["name"]}},T("REINDEX Statement"),function(e){return{target:e["name"]}},T("PRAGMA Statement"),function(e,t,n){return{type:"statement",variant:B(e),target:t,args:{type:"expression",variant:"list",expression:n}}},function(e){return e},function(e){return/^(yes|no|on|off|false|true|0|1)$/i.test(e)},function(e){return{type:"literal",variant:"boolean",normalized:/^(yes|on|true|1)$/i.test(e)?"1":"0",value:e}},function(e){return B(e)},function(e){return{type:"identifier",variant:"name",name:e}},T("SELECT Statement"),function(e,t,n){return Object.assign(e,t,n)},T("ORDER BY Clause"),function(e){return{order:e["result"]}},T("LIMIT Clause"),function(e,t,n){return{limit:Object.assign({type:"expression",variant:"limit",start:t},n)}},T("OFFSET Clause"),function(e,t){return{offset:t}},function(e,t){return V(t)?{type:"statement",variant:"compound",statement:e,compound:t}:e},T("Union Operation"),function(e,t){return{type:"compound",variant:e,statement:t}},function(e,t,n,r){return Object.assign({type:"statement",variant:"select"},e,t,n,r)},T("SELECT Results Clause"),function(e,t){return Object.assign({result:t},e)},T("SELECT Results Modifier"),function(e){return{distinct:!0}},function(e){return{}},T("FROM Clause"),function(e,t){return{from:t}},T("WHERE Clause"),function(e,t){return{where:P(t)}},T("GROUP BY Clause"),function(e,t,n){return Object.assign({group:t},n)},T("HAVING Clause"),function(e,t){return{having:t}},function(e,t){return{type:"identifier",variant:"star",name:j([e,t])}},function(e,t){return j([e,t])},function(e,t){return Object.assign(e,t)},function(e,t){return V(t)?{type:"map",variant:"join",source:e,map:t}:e},function(e,t){return Object.assign(e,t)},T("CROSS JOIN Operation"),function(e){return{type:"join",variant:"cross join",source:e}},T("JOIN Operation"),function(e,t){return{type:"join",variant:B(e),source:t}},function(e,t,n){return Object.assign({type:"function",variant:"table",name:e,args:t},n)},T("Qualified Table"),function(e,t){return Object.assign(e,t)},T("Qualified Table Identifier"),function(e,t){return Object.assign(e,t)},T("Qualfied Table Index"),function(e,t){return{index:t}},function(e,t){return{index:I([e,t])}},T("SELECT Source"),function(e,t){return Object.assign(e,t)},T("Subquery"),function(e,t){return Object.assign(e,t)},T("Alias"),function(e,t){return{alias:t}},T("JOIN Operator"),function(e,t,n){return I([e,t,n])},function(e,t){return I([e,t])},function(e){return B(e)},T("JOIN Constraint"),function(e){return{constraint:Object.assign({type:"constraint",variant:"join"},e)}},T("Join ON Clause"),function(e,t){return{format:B(e),on:t}},T("Join USING Clause"),function(e,t){return{format:B(e),using:t}},T("VALUES Clause"),function(e,t){return{type:"statement",variant:"select",result:t}},function(e,t){return{result:R([e,t])}},function(e){return e},T("Ordering Expression"),function(e,t){return L(t)?Object.assign({type:"expression",variant:"order",expression:e},t):e},T("Star"),T("Fallback Type"),T("INSERT Statement"),function(e,t){return Object.assign({type:"statement",variant:"insert"},e,t)},T("INSERT Keyword"),function(e,t){return Object.assign({action:B(e)},t)},T("REPLACE Keyword"),function(e){return{action:B(e)}},T("INSERT OR Modifier"),function(e,t){return{or:B(t)}},function(e,t){return Object.assign({into:e},t)},T("INTO Clause"),function(e,t){return t},T("INTO Keyword"),function(e){return{result:e}},T("Column List"),function(e,t){return{columns:R([e,t])}},function(e){return e},T("Column Name"),function(e){return{type:"identifier",variant:"column",name:e}},function(e,t){return t},T("VALUES Keyword"),function(e,t){return R([e,t])},T("Wrapped Expression List"),function(e){return e},T("DEFAULT VALUES Clause"),function(e,t){return{type:"values",variant:"default"}},T("Compound Operator"),T("UNION Operator"),function(e,t){return I([e,t])},function(e){return e},T("UPDATE Statement"),function(e,t,n,r,a,o,i){return Object.assign({type:"statement",variant:e,into:n},t,r,a,o,i)},T("UPDATE Keyword"),T("UPDATE OR Modifier"),function(e){return{or:B(e)}},T("SET Clause"),function(e){return{set:e}},T("Column Assignment"),function(e,t){return{type:"assignment",target:e,value:t}},T("DELETE Statement"),function(e,t,n,r,a){return Object.assign({type:"statement",variant:e,from:t},n,r,a)},T("DELETE Keyword"),T("CREATE Statement"),T("CREATE TABLE Statement"),function(e,t,n,r){return Object.assign({type:"statement",name:n},e,r,t)},function(e,t,n){return Object.assign({variant:e,format:B(n)},t)},function(e){return{temporary:L(e)}},T("IF NOT EXISTS Modifier"),function(e,t,n){return{condition:P({type:"condition",variant:B(e),condition:{type:"expression",variant:B(n),operator:I([t,n])}})}},T("Table Definition"),function(e,t,n){return Object.assign({definition:R([e,t])},n)},function(e,t){return{optimization:[{type:"optimization",value:I([e,t])}]}},function(e){return e},T("Column Definition"),function(e,t,n){return Object.assign({type:"definition",variant:"column",name:e,definition:L(n)?n:[]},t)},T("Column Datatype"),function(e){return{datatype:e}},T("Column Constraint"),function(e,t,n){return Object.assign(t,e)},function(e){return e[e.length-1]},T("CONSTRAINT Name"),function(e){return{name:e}},T("FOREIGN KEY Column Constraint"),function(e){return Object.assign({variant:"foreign key"},e)},T("PRIMARY KEY Column Constraint"),function(e,t,n,r){return Object.assign(e,n,t,r)},T("PRIMARY KEY Keyword"),function(e,t){return{type:"constraint",variant:I([e,t])}},T("AUTOINCREMENT Keyword"),function(e){return{autoIncrement:!0}},function(e,t){return Object.assign({type:"constraint",variant:e},t)},T("UNIQUE Column Constraint"),T("NULL Column Constraint"),function(e,t){return I([e,t])},T("CHECK Column Constraint"),T("DEFAULT Column Constraint"),function(e,t){return{type:"constraint",variant:B(e),value:t}},T("COLLATE Column Constraint"),function(e){return{type:"constraint",variant:"collate",collate:e}},T("Table Constraint"),function(e,t,n){return Object.assign({type:"definition",variant:"constraint"},t,e)},T("CHECK Table Constraint"),function(e){return{definition:P(e)}},T("PRIMARY KEY Table Constraint"),function(e,t,n){return{definition:P(Object.assign(e,n,t[1])),columns:t[0]}},function(e){return{type:"constraint",variant:B(e)}},function(e,t){return I([e,t])},T("UNIQUE Keyword"),function(e){return B(e)},function(e,t){return[e].concat(t)},function(e){return e.map((function(e){var t=r(e,1),n=t[0];return n}))},function(e){var t=e.find((function(e){var t=r(e,2),n=(t[0],t[1]);return L(n)}));return[e.map((function(e){var t=r(e,2),n=t[0];t[1];return n})),t?t[1]:null]},T("Indexed Column"),function(e,t,n){var r=e;return L(t)&&(r=Object.assign({type:"expression",variant:"order",expression:e},t)),[r,n]},T("Collation"),function(e){return{collate:P(e)}},T("Column Direction"),function(e){return{direction:B(e)}},function(e,t){return{conflict:B(t)}},T("ON CONFLICT Keyword"),function(e,t){return I([e,t])},function(e,t){return{type:"constraint",variant:B(e),expression:t}},T("FOREIGN KEY Table Constraint"),function(e,t,n){return Object.assign({definition:P(Object.assign(e,n))},t)},T("FOREIGN KEY Keyword"),function(e,t){return{type:"constraint",variant:I([e,t])}},function(e,t,n){return Object.assign({type:"constraint"},e,t,n)},T("REFERENCES Clause"),function(e,t){return{references:t}},function(e,t){return{action:R([e,t])}},T("FOREIGN KEY Action Clause"),function(e,t,n){return{type:"action",variant:B(e),action:B(n)}},T("FOREIGN KEY Action"),function(e,t){return I([e,t])},function(e){return B(e)},function(e,t){return I([e,t])},function(e,t){return{type:"action",variant:B(e),action:t}},T("DEFERRABLE Clause"),function(e,t,n){return{defer:I([e,t,n])}},function(e,t){return I([e,t])},function(e){return{definition:P(e)}},T("CREATE INDEX Statement"),function(e,t,n,r,a){return Object.assign({type:"statement",target:n,on:r},e,t,a)},function(e,t,n){return Object.assign({variant:B(e),format:B(n)},t)},function(e){return{unique:!0}},T("ON Clause"),function(e,t,n){return{type:"identifier",variant:"expression",format:"table",name:t["name"],columns:n}},T("CREATE TRIGGER Statement"),function(e,t,n,r,a,o,i,l){return Object.assign({type:"statement",target:n,on:a,event:r,by:L(o)?o:"row",action:P(l)},e,t,i)},function(e,t,n){return Object.assign({variant:B(e),format:B(n)},t)},T("Conditional Clause"),function(e,t){return Object.assign({type:"event"},e,t)},function(e){return{occurs:B(e)}},function(e,t){return I([e,t])},T("Conditional Action"),function(e){return{event:B(e)}},function(e,t){return{event:B(e),of:t}},function(e,t){return t},"statement",x("STATEMENT",!0),function(e,t,n){return B(n)},function(e,t){return{when:t}},T("Actions Clause"),function(e,t,n){return t},function(e){return e},T("CREATE VIEW Statement"),function(e,t,n,r){return Object.assign({type:"statement",target:n,result:r},e,t)},function(e,t){return Object.assign({type:"identifier",variant:"expression",format:"view",name:e["name"],columns:[]},t)},function(e,t,n){return Object.assign({variant:B(e),format:B(n)},t)},T("CREATE VIRTUAL TABLE Statement"),function(e,t,n,r){return Object.assign({type:"statement",target:n,result:r},e,t)},function(e,t,n){return{variant:B(e),format:B(t)}},function(e,t){return Object.assign({type:"module",variant:"virtual",name:e},t)},T("Module Arguments"),function(e){return{args:{type:"expression",variant:"list",expression:L(e)?e:[]}}},function(e,t){return R([e,t]).filter((function(e){return L(e)}))},function(e){return e},T("DROP Statement"),function(e,t){return Object.assign({type:"statement",target:Object.assign(t,{variant:e["format"]})},e)},T("DROP Keyword"),function(e,t,n){return Object.assign({variant:B(e),format:t,condition:[]},n)},T("DROP Type"),T("IF EXISTS Keyword"),function(e,t){return{condition:[{type:"condition",variant:B(e),condition:{type:"expression",variant:B(t),operator:B(t)}}]}},T("Or"),T("Add"),T("Subtract"),T("Multiply"),T("Divide"),T("Modulo"),T("Shift Left"),T("Shift Right"),T("Logical AND"),T("Logical OR"),T("Less Than"),T("Greater Than"),T("Less Than Or Equal"),T("Greater Than Or Equal"),T("Equal"),T("Not Equal"),T("IS"),function(e,t){return I([e,t])},T("Identifier"),T("Database Identifier"),function(e){return{type:"identifier",variant:"database",name:e}},T("Function Identifier"),function(e,t){return{type:"identifier",variant:"function",name:j([e,t])}},T("Table Identifier"),function(e,t){return{type:"identifier",variant:"table",name:j([e,t])}},function(e,t){return j([e,t])},T("Column Identifier"),function(e,t){return{type:"identifier",variant:"column",name:j([e,t])}},function(){return""},function(e,t){return j([e,t])},T("Collation Identifier"),function(e){return{type:"identifier",variant:"collation",name:e}},T("Savepoint Identifier"),function(e){return{type:"identifier",variant:"savepoint",name:e}},T("Index Identifier"),function(e,t){return{type:"identifier",variant:"index",name:j([e,t])}},T("Trigger Identifier"),function(e,t){return{type:"identifier",variant:"trigger",name:j([e,t])}},T("View Identifier"),function(e,t){return{type:"identifier",variant:"view",name:j([e,t])}},T("Pragma Identifier"),function(e,t){return{type:"identifier",variant:"pragma",name:j([e,t])}},T("CTE Identifier"),function(e){return e},function(e,t){return Object.assign({type:"identifier",variant:"expression",format:"table",name:e["name"],columns:[]},t)},T("Table Constraint Identifier"),function(e){return{type:"identifier",variant:"constraint",format:"table",name:e}},T("Column Constraint Identifier"),function(e){return{type:"identifier",variant:"constraint",format:"column",name:e}},T("Datatype Name"),function(e){return[e,"text"]},function(e){return[e,"real"]},function(e){return[e,"numeric"]},function(e){return[e,"integer"]},function(e){return[e,"none"]},T("TEXT Datatype Name"),"n",x("N",!0),"var",x("VAR",!0),"char",x("CHAR",!0),"tiny",x("TINY",!0),"medium",x("MEDIUM",!0),"long",x("LONG",!0),"text",x("TEXT",!0),"clob",x("CLOB",!0),T("REAL Datatype Name"),"float",x("FLOAT",!0),"real",x("REAL",!0),T("DOUBLE Datatype Name"),"double",x("DOUBLE",!0),"precision",x("PRECISION",!0),function(e,t){return j([e,t])},T("NUMERIC Datatype Name"),"numeric",x("NUMERIC",!0),"decimal",x("DECIMAL",!0),"boolean",x("BOOLEAN",!0),"date",x("DATE",!0),"time",x("TIME",!0),"stamp",x("STAMP",!0),"string",x("STRING",!0),T("INTEGER Datatype Name"),"int",x("INT",!0),"2",x("2",!1),"4",x("4",!1),"8",x("8",!1),"eger",x("EGER",!0),"big",x("BIG",!0),"small",x("SMALL",!0),"floating",x("FLOATING",!0),"point",x("POINT",!0),function(e,t){return j([e,t])},T("BLOB Datatype Name"),"blob",x("BLOB",!0),/^[a-z0-9$_]/i,_([["a","z"],["0","9"],"$","_"],!1,!0),"\\u",x("\\u",!1),/^[a-f0-9]/i,_([["a","f"],["0","9"]],!1,!0),function(e,t){return j([e,t]).toLowerCase()},function(e){return B(e)},w(),function(e){return F(e)},/^[ \t]/,_([" ","\t"],!1,!1),'"',x('"',!1),'""',x('""',!1),/^[^"]/,_(['"'],!0,!1),function(e){return z(e,'"')},"'",x("'",!1),function(e){return z(e,"'")},"`",x("`",!1),"``",x("``",!1),/^[^`]/,_(["`"],!0,!1),function(e){return z(e,"`")},T("Open Bracket"),"[",x("[",!1),T("Close Bracket"),"]",x("]",!1),T("Open Parenthesis"),"(",x("(",!1),T("Close Parenthesis"),")",x(")",!1),T("Comma"),",",x(",",!1),T("Period"),".",x(".",!1),T("Asterisk"),"*",x("*",!1),T("Question Mark"),"?",x("?",!1),T("Single Quote"),T("Double Quote"),T("Backtick"),T("Tilde"),"~",x("~",!1),T("Plus"),"+",x("+",!1),T("Minus"),"-",x("-",!1),"=",x("=",!1),T("Ampersand"),"&",x("&",!1),T("Pipe"),"|",x("|",!1),"%",x("%",!1),"<",x("<",!1),">",x(">",!1),T("Exclamation"),"!",x("!",!1),T("Semicolon"),";",x(";",!1),T("Colon"),T("Forward Slash"),"/",x("/",!1),T("Backslash"),"\\",x("\\",!1),"abort",x("ABORT",!0),"action",x("ACTION",!0),"add",x("ADD",!0),"after",x("AFTER",!0),"all",x("ALL",!0),"alter",x("ALTER",!0),"analyze",x("ANALYZE",!0),"and",x("AND",!0),"as",x("AS",!0),"asc",x("ASC",!0),"attach",x("ATTACH",!0),"autoincrement",x("AUTOINCREMENT",!0),"before",x("BEFORE",!0),"begin",x("BEGIN",!0),"between",x("BETWEEN",!0),"by",x("BY",!0),"cascade",x("CASCADE",!0),"case",x("CASE",!0),"cast",x("CAST",!0),"check",x("CHECK",!0),"collate",x("COLLATE",!0),"column",x("COLUMN",!0),"commit",x("COMMIT",!0),"conflict",x("CONFLICT",!0),"constraint",x("CONSTRAINT",!0),"create",x("CREATE",!0),"cross",x("CROSS",!0),"current_date",x("CURRENT_DATE",!0),"current_time",x("CURRENT_TIME",!0),"current_timestamp",x("CURRENT_TIMESTAMP",!0),"database",x("DATABASE",!0),"default",x("DEFAULT",!0),"deferrable",x("DEFERRABLE",!0),"deferred",x("DEFERRED",!0),"delete",x("DELETE",!0),"desc",x("DESC",!0),"detach",x("DETACH",!0),"distinct",x("DISTINCT",!0),"drop",x("DROP",!0),"each",x("EACH",!0),"else",x("ELSE",!0),"end",x("END",!0),"escape",x("ESCAPE",!0),"except",x("EXCEPT",!0),"exclusive",x("EXCLUSIVE",!0),"exists",x("EXISTS",!0),"explain",x("EXPLAIN",!0),"fail",x("FAIL",!0),"for",x("FOR",!0),"foreign",x("FOREIGN",!0),"from",x("FROM",!0),"full",x("FULL",!0),"glob",x("GLOB",!0),"group",x("GROUP",!0),"having",x("HAVING",!0),"if",x("IF",!0),"ignore",x("IGNORE",!0),"immediate",x("IMMEDIATE",!0),"in",x("IN",!0),"index",x("INDEX",!0),"indexed",x("INDEXED",!0),"initially",x("INITIALLY",!0),"inner",x("INNER",!0),"insert",x("INSERT",!0),"instead",x("INSTEAD",!0),"intersect",x("INTERSECT",!0),"into",x("INTO",!0),"is",x("IS",!0),"isnull",x("ISNULL",!0),"join",x("JOIN",!0),"key",x("KEY",!0),"left",x("LEFT",!0),"like",x("LIKE",!0),"limit",x("LIMIT",!0),"match",x("MATCH",!0),"natural",x("NATURAL",!0),"no",x("NO",!0),"not",x("NOT",!0),"notnull",x("NOTNULL",!0),"of",x("OF",!0),"offset",x("OFFSET",!0),"on",x("ON",!0),"or",x("OR",!0),"order",x("ORDER",!0),"outer",x("OUTER",!0),"plan",x("PLAN",!0),"pragma",x("PRAGMA",!0),"primary",x("PRIMARY",!0),"query",x("QUERY",!0),"raise",x("RAISE",!0),"recursive",x("RECURSIVE",!0),"references",x("REFERENCES",!0),"regexp",x("REGEXP",!0),"reindex",x("REINDEX",!0),"release",x("RELEASE",!0),"rename",x("RENAME",!0),"replace",x("REPLACE",!0),"restrict",x("RESTRICT",!0),"right",x("RIGHT",!0),"rollback",x("ROLLBACK",!0),"row",x("ROW",!0),"rowid",x("ROWID",!0),"savepoint",x("SAVEPOINT",!0),"select",x("SELECT",!0),"set",x("SET",!0),"table",x("TABLE",!0),"temp",x("TEMP",!0),"temporary",x("TEMPORARY",!0),"then",x("THEN",!0),"to",x("TO",!0),"transaction",x("TRANSACTION",!0),"trigger",x("TRIGGER",!0),"union",x("UNION",!0),"unique",x("UNIQUE",!0),"update",x("UPDATE",!0),"using",x("USING",!0),"vacuum",x("VACUUM",!0),"values",x("VALUES",!0),"view",x("VIEW",!0),"virtual",x("VIRTUAL",!0),"when",x("WHEN",!0),"where",x("WHERE",!0),"with",x("WITH",!0),"without",x("WITHOUT",!0),function(e){return B(e)},function(){return null},T("Line Comment"),"--",x("--",!1),/^[\n\v\f\r]/,_(["\n","\v","\f","\r"],!1,!1),T("Block Comment"),"/*",x("/*",!1),"*/",x("*/",!1),/^[\n\v\f\r\t ]/,_(["\n","\v","\f","\r","\t"," "],!1,!1),T("Whitespace"),"__TODO__",x("__TODO__",!1)],c=[C("%;ȿ/H#;#/?$;\".\" &\"/1$;#/($8$: $!!)($'#(#'#(\"'#&'#"),C("%;ȿ/C#;#/:$;x/1$;#/($8$: $!!)($'#(#'#(\"'#&'#"),C("%;x/B#;ȿ/9$$;%0#*;%&/)$8#:!#\"\" )(#'#(\"'#&'#"),C("$;Ƴ0#*;Ƴ&"),C("$;Ƴ/&#0#*;Ƴ&&&#"),C("%;$/:#;x/1$;ȿ/($8#:\"#!!)(#'#(\"'#&'#"),C('<%;\'.# &;(/@#;ȿ/7$;*." &"/)$8#:$#"" )(#\'#("\'#&\'#=." 7#'),C("%;Ƌ/' 8!:%!! )"),C('<%;ƕ/9#$;)0#*;)&/)$8":\'""! )("\'#&\'#=." 7&'),C('%4(""5!7)/1#;Ɨ/($8":*"! )("\'#&\'#'),C("<%;Ơ/R#;5/I$;ȿ/@$;+.\" &\"/2$;ơ/)$8%:,%\"#!)(%'#($'#(#'#(\"'#&'#=.\" 7+"),C("%;Ƣ/C#;ȿ/:$;5/1$;ȿ/($8$:-$!!)($'#(#'#(\"'#&'#"),C(";5.; &;6.5 &;2./ &;-.) &;..# &;/"),C('<%;Ȇ/1#;ȿ/($8":/"!!)("\'#&\'#=." 7.'),C('<%;ǒ.) &;ǔ.# &;Ǔ/1#;ȿ/($8":1"!!)("\'#&\'#=." 70'),C('<%;4." &"/2#;0/)$8":3""! )("\'#&\'#=." 72'),C("<%;Ʀ/A#$;10#*;1&/1$;Ʀ/($8#:5#!!)(#'#(\"'#&'#=.\" 74"),C('26""6677.) &48""5!79'),C('<%4;""5!7</1#;0/($8":="! )("\'#&\'#=." 7:'),C("%;Ɨ.# &;ƛ/' 8!:>!! )"),C('<%;ƪ.# &;ƫ/\' 8!:"!! )=." 7?'),C('%;4." &"/2#;6/)$8":@""! )("\'#&\'#'),C(";<.# &;7"),C('%;8/7#;;." &"/)$8":A""! )("\'#&\'#'),C('<;9.# &;:=." 7B'),C('%$;>/&#0#*;>&&&#/7#;:." &"/)$8":C""! )("\'#&\'#'),C('%;ƣ/9#$;>0#*;>&/)$8":D""! )("\'#&\'#'),C('<%3F""5!7G/T#4H""5!7I." &"/@$$;>/&#0#*;>&&&#/*$8#:J##"! )(#\'#("\'#&\'#=." 7E'),C('<%3L""5"7M/?#$;=/&#0#*;=&&&#/)$8":N""! )("\'#&\'#=." 7K'),C('4O""5!7P'),C('4Q""5!7R'),C("<%;@.) &;B.# &;C/' 8!:T!! )=.\" 7S"),C('<%;ƥ/@#;A." &"/2$;ȿ/)$8#:V#""!)(#\'#("\'#&\'#=." 7U'),C('%4W""5!7X/9#$;>0#*;>&/)$8":Y""! )("\'#&\'#'),C('<%4[""5!7\\/H#$;Ɠ/&#0#*;Ɠ&&&#/2$;ȿ/)$8#:]#""!)(#\'#("\'#&\'#=." 7Z'),C('<%2_""6_7`/o#$;Ɠ.) &2a""6a7b/2#0/*;Ɠ.) &2a""6a7b&&&#/A$;ȿ/8$;D." &"/*$8$:c$##" )($\'#(#\'#("\'#&\'#=." 7^'),C('%;ƛ/1#;ȿ/($8":d"!!)("\'#&\'#'),C('<%;F." &"/;#;ȿ/2$;”/)$8#:f#"" )(#\'#("\'#&\'#=." 7e'),C('<%;k." &"/;#;Ǥ/2$;ȿ/)$8#:h#""!)(#\'#("\'#&\'#=." 7g'),C("<%;ȑ/_#;ȿ/V$;Ơ/M$;ȿ/D$;H/;$;ȿ/2$;ơ/)$8':j'\"&\")(''#(&'#(%'#($'#(#'#(\"'#&'#=.\" 7i"),C("<%;I.# &;J/' 8!:l!! )=.\" 7k"),C("<%;ǯ/' 8!:n!! )=.\" 7m"),C("%;ț.) &;Ʒ.# &;Ǧ/M#;ȿ/D$;Ƣ/;$;ȿ/2$;w/)$8%:o%\"$ )(%'#($'#(#'#(\"'#&'#"),C(";?./ &;t.) &;,.# &;Ž"),C("%;Ơ/L#;ȿ/C$;p/:$;ȿ/1$;ơ/($8%:p%!\")(%'#($'#(#'#(\"'#&'#"),C(";L.; &;E.5 &;_./ &;a.) &;G.# &;K"),C("%;M/;#;ȿ/2$;Q/)$8#:q#\"\" )(#'#(\"'#&'#.# &;M"),C("%;P/A#;ȿ/8$;N.# &;p/)$8#:r#\"\" )(#'#(\"'#&'#.# &;N"),C(";Ʃ.U &;ƫ.O &;ƪ.I &%%;k/8#%<;Ǥ=.##&&!&'#/#$+\")(\"'#&'#/\"!&,)"),C("<%;ĭ/' 8!:t!! )=.\" 7s"),C("%;O/ƒ#$%;ȿ/>#;Ŧ/5$;ȿ/,$;O/#$+$)($'#(#'#(\"'#&'#0H*%;ȿ/>#;Ŧ/5$;ȿ/,$;O/#$+$)($'#(#'#(\"'#&'#&/)$8\":u\"\"! )(\"'#&'#"),C("%;R/ƒ#$%;ȿ/>#;T/5$;ȿ/,$;R/#$+$)($'#(#'#(\"'#&'#0H*%;ȿ/>#;T/5$;ȿ/,$;R/#$+$)($'#(#'#(\"'#&'#&/)$8\":u\"\"! )(\"'#&'#"),C(";ũ.) &;Ū.# &;ū"),C("%;S/ƒ#$%;ȿ/>#;V/5$;ȿ/,$;S/#$+$)($'#(#'#(\"'#&'#0H*%;ȿ/>#;V/5$;ȿ/,$;S/#$+$)($'#(#'#(\"'#&'#&/)$8\":u\"\"! )(\"'#&'#"),C(";ŧ.# &;Ũ"),C("%;U/ƒ#$%;ȿ/>#;X/5$;ȿ/,$;U/#$+$)($'#(#'#(\"'#&'#0H*%;ȿ/>#;X/5$;ȿ/,$;U/#$+$)($'#(#'#(\"'#&'#&/)$8\":u\"\"! )(\"'#&'#"),C(";Ŭ.U &;ŭ.O &;Ů.I &%%;ů/8#%<;ů=.##&&!&'#/#$+\")(\"'#&'#/\"!&,)"),C("%;W/ƒ#$%;ȿ/>#;Z/5$;ȿ/,$;W/#$+$)($'#(#'#(\"'#&'#0H*%;ȿ/>#;Z/5$;ȿ/,$;W/#$+$)($'#(#'#(\"'#&'#&/)$8\":u\"\"! )(\"'#&'#"),C(";Ų.{ &;ų.u &%%;Ű/8#%<;X=.##&&!&'#/#$+\")(\"'#&'#/\"!&,).I &%%;ű/8#%<;X=.##&&!&'#/#$+\")(\"'#&'#/\"!&,)"),C('%;Y/9#$;\\0#*;\\&/)$8":u""! )("\'#&\'#'),C("%;ȿ/1#;]/($8\":v\"! )(\"'#&'#.H &%;ȿ/>#;^/5$;ȿ/,$;Y/#$+$)($'#(#'#(\"'#&'#"),C('%3w""5$7x/?#;ȿ/6$3y""5$7z/\'$8#:{# )(#\'#("\'#&\'#.? &%;ǻ/& 8!:|! ).. &%;ȅ/& 8!:{! )'),C(";ŷ./ &;ŵ.) &;Ŷ.# &;Ŵ"),C("<%;lj/i#;ȿ/`$;Ơ/W$;p/N$;ȿ/E$;`/<$;ȿ/3$;ơ/*$8(:~(#'$\")(('#(''#(&'#(%'#($'#(#'#(\"'#&'#=.\" 7}"),C("<%;ƿ/:#;ȿ/1$;&/($8#:€#! )(#'#(\"'#&'#=.\" 7"),C("<%;Lj/“#;ȿ/Š$;b.\" &\"/|$;ȿ/s$$;c/&#0#*;c&&&#/]$;ȿ/T$;d.\" &\"/F$;ȿ/=$;Ǡ/4$;ȿ/+$8*:‚*$)'%#)(*'#()'#(('#(''#(&'#(%'#($'#(#'#(\"'#&'#=.\" 7"),C("%%<;Ȱ=.##&&!&'#/1#;p/($8\":ƒ\"! )(\"'#&'#"),C("<%;Ȱ/i#;ȿ/`$;p/W$;ȿ/N$;Ȥ/E$;ȿ/<$;p/3$;ȿ/*$8(:…(#'%!)(('#(''#(&'#(%'#($'#(#'#(\"'#&'#=.\" 7„"),C("<%;ǟ/D#;ȿ/;$;p/2$;ȿ/)$8$:‡$\"#!)($'#(#'#(\"'#&'#=.\" 7†"),C("%;[/;#;ȿ/2$;f/)$8#:ˆ#\"\" )(#'#(\"'#&'#.# &;["),C(";l.) &;i.# &;g"),C('<%;k." &"/o#;ǿ./ &;ǫ.) &;Ȕ.# &;ȁ/T$;ȿ/K$;p/B$;ȿ/9$;h." &"/+$8&:Š&$%$" )(&\'#(%\'#($\'#(#\'#("\'#&\'#=." 7‰'),C("<%;ǡ/D#;ȿ/;$;p/2$;ȿ/)$8$:Œ$\"#!)($'#(#'#(\"'#&'#=.\" 7‹"),C('<%;k." &"/E#;Dž/<$;ȿ/3$;j/*$8$:Ž$##" )($\'#(#\'#("\'#&\'#=." 7'),C("%;e/W#%;ȿ/>#;ƾ/5$;ȿ/,$;e/#$+$)($'#(#'#(\"'#&'#/)$8\":\"\"! )(\"'#&'#"),C('%;Ȅ/1#;ȿ/($8":"!!)("\'#&\'#'),C('<%;k." &"/E#;DZ/<$;ȿ/3$;m/*$8$:’$##" )($\'#(#\'#("\'#&\'#=." 7‘'),C(";n.# &;Ż"),C("%;Ơ/I#;•.# &;q/:$;ȿ/1$;ơ/($8$:“$!\")($'#(#'#(\"'#&'#"),C("%;e/ƒ#$%;ȿ/>#;ƾ/5$;ȿ/,$;e/#$+$)($'#(#'#(\"'#&'#0H*%;ȿ/>#;ƾ/5$;ȿ/,$;e/#$+$)($'#(#'#(\"'#&'#&/)$8\":u\"\"! )(\"'#&'#"),C("%;o/ƒ#$%;ȿ/>#;Ȋ/5$;ȿ/,$;o/#$+$)($'#(#'#(\"'#&'#0H*%;ȿ/>#;Ȋ/5$;ȿ/,$;o/#$+$)($'#(#'#(\"'#&'#&/)$8\":u\"\"! )(\"'#&'#"),C('<%;r." &"/1#;ȿ/($8":•"!!)("\'#&\'#=." 7”'),C("%;p/B#;ȿ/9$$;s0#*;s&/)$8#:–#\"\" )(#'#(\"'#&'#"),C("%;Ƣ/:#;p/1$;ȿ/($8#:“#!!)(#'#(\"'#&'#"),C("<%;ź/[#;ȿ/R$;Ơ/I$;u.\" &\"/;$;ȿ/2$;ơ/)$8&:˜&\"%\")(&'#(%'#($'#(#'#(\"'#&'#=.\" 7—"),C('<%;Û/\' 8!:š!! ).V &%;v." &"/G#;q/>$9:› "! -""&!&#/)$8#:œ#""!)(#\'#("\'#&\'#=." 7™'),C('%;ǜ.# &;ƻ/1#;ȿ/($8":"!!)("\'#&\'#'),C("<%;//' 8!:Ÿ!! )=.\" 7ž"),C('<%;y." &"/;#;{/2$;ȿ/)$8#:¡#""!)(#\'#("\'#&\'#=." 7 '),C('<%;ǥ/@#;ȿ/7$;z." &"/)$8#:£#"" )(#\'#("\'#&\'#=." 7¢'),C("<%;Ȑ/D#;ȿ/;$;ȍ/2$;ȿ/)$8$:¥$\"#!)($'#(#'#(\"'#&'#=.\" 7¤"),C(";Œ.S &;û.M &;Ţ.G &;}.A &;|.; &;†.5 &;€./ &;„.) &;….# &;–"),C('<%;Ǎ.# &;Ǡ/@#;ȿ/7$;~." &"/)$8#:§#"" )(#\'#("\'#&\'#=." 7¦'),C('<%;DŽ/^#;ȿ/U$;." &"/G$;~." &"/9$;‚." &"/+$8%:©%$$"! )(%\'#($\'#(#\'#("\'#&\'#=." 7¨'),C('%;Ȧ/1#;ȿ/($8":ª"!!)("\'#&\'#'),C('%;ǘ.) &;ǰ.# &;ǣ/1#;ȿ/($8":«"!!)("\'#&\'#'),C('<%;ț/N#;ȿ/E$;~." &"/7$;." &"/)$8$:­$"# )($\'#(#\'#("\'#&\'#=." 7¬'),C('<%%;ȥ/,#;ȿ/#$+")("\'#&\'#." &"/?#;ƒ." &"/1$;‚/($8#:p#! )(#\'#("\'#&\'#=." 7®'),C('%;Ƃ/1#;ȿ/($8":¯"!!)("\'#&\'#'),C('%;Ȟ/1#;ȿ/($8":°"!!)("\'#&\'#'),C('<%;ƒ/2#;‚/)$8":²""! )("\'#&\'#=." 7±'),C("<%;Ȗ/J#;ȿ/A$;ƒ.\" &\"/3$;‚/*$8$:´$##! )($'#(#'#(\"'#&'#=.\" 7³"),C("<%;‡/N#;Ż/E$;ȿ/<$;ˆ/3$;ȿ/*$8%:¶%#$#!)(%'#($'#(#'#(\"'#&'#=.\" 7µ"),C("<%;Ƽ/D#;ȿ/;$;ȡ/2$;ȿ/)$8$:¸$\"#!)($'#(#'#(\"'#&'#=.\" 7·"),C(";‰.# &;Š"),C("<%;ȗ/M#;ȿ/D$;ȥ/;$;ȿ/2$;Ż/)$8%:º%\"$ )(%'#($'#(#'#(\"'#&'#=.\" 7¹"),C('<%;ƹ/I#;ȿ/@$;‹." &"/2$;Č/)$8$:¼$"# )($\'#(#\'#("\'#&\'#=." 7»'),C('%;nj/1#;ȿ/($8":°"!!)("\'#&\'#'),C('%;/2#;§/)$8":½""! )("\'#&\'#'),C('<%;Ž." &"/1#;ȿ/($8":*"!!)("\'#&\'#=." 7¾'),C("%;Ȳ/J#;ȿ/A$;.\" &\"/3$;/*$8$:¿$##! )($'#(#'#(\"'#&'#"),C('%;Ȓ/1#;ȿ/($8":°"!!)("\'#&\'#'),C("%;’/B#;ȿ/9$$;‘0#*;‘&/)$8#:À#\"\" )(#'#(\"'#&'#"),C("%;Ƣ/:#;’/1$;ȿ/($8#:“#!!)(#'#(\"'#&'#"),C('<%;Ƈ/2#;“/)$8":Â""! )("\'#&\'#=." 7Á'),C("%;ƿ/:#;ȿ/1$;”/($8#:Ã#! )(#'#(\"'#&'#"),C("%;Ơ/C#;•/:$;ȿ/1$;ơ/($8$: $!\")($'#(#'#(\"'#&'#"),C('%;/2#;¨/)$8":Ä""! )("\'#&\'#'),C(";—.; &;™.5 &;š./ &;œ.) &;ž.# &; "),C("<%;ǁ/‹#;ȿ/‚$%;Ǖ/,#;ȿ/#$+\")(\"'#&'#.\" &\"/a$;p/X$;ȿ/O$;ƿ/F$;ȿ/=$;˜/4$;ȿ/+$8):Æ)$(&%!)()'#(('#(''#(&'#(%'#($'#(#'#(\"'#&'#=.\" 7Å"),C(";Ź.) &;-.# &;?"),C("<%;Ǜ/f#;ȿ/]$%;Ǖ/,#;ȿ/#$+\")(\"'#&'#.\" &\"/<$;˜/3$;ȿ/*$8%:È%#$\"!)(%'#($'#(#'#(\"'#&'#=.\" 7Ç"),C('<%;Ȭ/@#;ȿ/7$;›." &"/)$8#:Ê#"" )(#\'#("\'#&\'#=." 7É'),C('%;Ź/1#;ȿ/($8":Ë"!!)("\'#&\'#'),C('<%;ƽ/@#;ȿ/7$;." &"/)$8#:Í#"" )(#\'#("\'#&\'#=." 7Ì'),C('%;Ż.) &;ƃ.# &;Ź/1#;ȿ/($8":Î"!!)("\'#&\'#'),C('<%;ȕ/I#;ȿ/@$;Ÿ." &"/2$;ȿ/)$8$:Í$"#!)($\'#(#\'#("\'#&\'#=." 7Ï'),C('%;Ż.) &;ƃ.# &;Ɓ/1#;ȿ/($8":Ð"!!)("\'#&\'#'),C("<%;Ȏ/S#;ȿ/J$;Ɔ/A$;ȿ/8$;¡.\" &\"/*$8%:Ò%#$\" )(%'#($'#(#'#(\"'#&'#=.\" 7Ñ"),C("%;Ơ/C#;¢/:$;ȿ/1$;ơ/($8$:Ó$!\")($'#(#'#(\"'#&'#.D &%;Ƭ/:#;¢/1$;ȿ/($8#:Ó#!!)(#'#(\"'#&'#"),C(";¤.) &;£.# &;¦"),C(";5.) &;/.# &;3"),C('%;¥/<#9:Ô ! -""&!&#/($8":Õ"!!)("\'#&\'#'),C("%$;Ɠ/&#0#*;Ɠ&&&#/' 8!:Ö!! )"),C("%;¥/' 8!:×!! )"),C(";¨./ &;Ý.) &;ò.# &;ù"),C('<%;®/X#;ȿ/O$;©." &"/A$;ȿ/8$;ª." &"/*$8%:Ù%#$" )(%\'#($\'#(#\'#("\'#&\'#=." 7Ø'),C("<%;ȋ/L#;ȿ/C$;dž/:$;ȿ/1$;Ø/($8%:Û%! )(%'#($'#(#'#(\"'#&'#=.\" 7Ú"),C("<%;Ȁ/S#;ȿ/J$;p/A$;ȿ/8$;«.\" &\"/*$8%:Ý%#$\" )(%'#($'#(#'#(\"'#&'#=.\" 7Ü"),C('<%;¬/2#;p/)$8":ß""! )("\'#&\'#=." 7Þ'),C(";­.# &;Ƣ"),C('%;Ȉ/1#;ȿ/($8":°"!!)("\'#&\'#'),C("%;°/B#;ȿ/9$$;¯0#*;¯&/)$8#:à#\"\" )(#'#(\"'#&'#"),C("<%;ï/D#;ȿ/;$;°/2$;ȿ/)$8$:â$\"#!)($'#(#'#(\"'#&'#=.\" 7á"),C(";±.# &;×"),C('%;²/U#;¸." &"/G$;¹." &"/9$;º." &"/+$8$:ã$$#"! )($\'#(#\'#("\'#&\'#'),C('<%;ȟ/R#;ȿ/I$;³." &"/;$;ȿ/2$;¶/)$8%:å%"" )(%\'#($\'#(#\'#("\'#&\'#=." 7ä'),C('<;´.# &;µ=." 7æ'),C('%;ǜ/1#;ȿ/($8":ç"!!)("\'#&\'#'),C('%;ƻ/1#;ȿ/($8":è"!!)("\'#&\'#'),C("%;¼/B#;ȿ/9$$;·0#*;·&/)$8#:À#\"\" )(#'#(\"'#&'#"),C("%;Ƣ/:#;¼/1$;ȿ/($8#:-#!!)(#'#(\"'#&'#"),C("<%;ǩ/D#;ȿ/;$;À/2$;ȿ/)$8$:ê$\"#!)($'#(#'#(\"'#&'#=.\" 7é"),C("<%;ȱ/D#;ȿ/;$;p/2$;ȿ/)$8$:ì$\"#!)($'#(#'#(\"'#&'#=.\" 7ë"),C("<%;Ǭ/e#;ȿ/\\$;dž/S$;ȿ/J$;q/A$;ȿ/8$;».\" &\"/*$8':î'#&\" )(''#(&'#(%'#($'#(#'#(\"'#&'#=.\" 7í"),C("<%;ǭ/D#;ȿ/;$;p/2$;ȿ/)$8$:ð$\"#!)($'#(#'#(\"'#&'#=.\" 7ï"),C(";½.# &;¿"),C('%;¾." &"/2#;Û/)$8":ñ""! )("\'#&\'#'),C('%;ƕ/2#;ƣ/)$8":ò""! )("\'#&\'#'),C('%;p/@#;ȿ/7$;Í." &"/)$8#:ó#"" )(#\'#("\'#&\'#'),C("%;Ä/B#;ȿ/9$$;Á0#*;Á&/)$8#:ô#\"\" )(#'#(\"'#&'#"),C('%;Â.# &;Ã/7#;Ô." &"/)$8":õ""! )("\'#&\'#'),C("<%;Ƣ/:#;Ä/1$;ȿ/($8#:÷#!!)(#'#(\"'#&'#=.\" 7ö"),C("<%;Î/D#;ȿ/;$;Ä/2$;ȿ/)$8$:ù$\"#!)($'#(#'#(\"'#&'#=.\" 7ø"),C(";Ë.5 &;?./ &;Å.) &;Æ.# &;Ì"),C("%;ź/S#;ȿ/J$;í/A$;ȿ/8$;Í.\" &\"/*$8%:ú%#$\" )(%'#($'#(#'#(\"'#&'#"),C('<%;Ç/@#;ȿ/7$;È." &"/)$8#:ü#"" )(#\'#("\'#&\'#=." 7û'),C('<%;Ż/@#;ȿ/7$;Í." &"/)$8#:þ#"" )(#\'#("\'#&\'#=." 7ý'),C('<;É.# &;Ê=." 7ÿ'),C("%;dz/V#;ȿ/M$;dž/D$;ȿ/;$;ƃ/2$;ȿ/)$8&:Ā&\"%!)(&'#(%'#($'#(#'#(\"'#&'#"),C("%;k/;#;dz/2$;ȿ/)$8#:ā#\"\"!)(#'#(\"'#&'#"),C("<%;Ơ/R#;À/I$;ȿ/@$;ơ/7$;Í.\" &\"/)$8%:ă%\"# )(%'#($'#(#'#(\"'#&'#=.\" 7Ă"),C('<%;”/7#;Í." &"/)$8":ą""! )("\'#&\'#=." 7Ą'),C('<%%;ƿ/Q#%%<;Ɠ.# &;ȶ=.##&&!&\'#/,#;ȿ/#$+")("\'#&\'#/#$+")("\'#&\'#." &"/;#;ƕ/2$;ȿ/)$8#:ć#""!)(#\'#("\'#&\'#=." 7Ć'),C('<%;Ï." &"/J#;ȿ/A$;Ð." &"/3$;Ǽ/*$8$:ĉ$##! )($\'#(#\'#("\'#&\'#=." 7Ĉ'),C('%;Ȃ/1#;ȿ/($8":"!!)("\'#&\'#'),C(";Ñ.# &;Ó"),C('%;Ǿ.) &;Ț.# &;Ǫ/@#;ȿ/7$;Ò." &"/)$8#:Ċ#"" )(#\'#("\'#&\'#'),C('%;Ȍ/1#;ȿ/($8":ċ"!!)("\'#&\'#'),C('%;ǵ.# &;Ǒ/1#;ȿ/($8":ċ"!!)("\'#&\'#'),C('<%;Õ.# &;Ö/1#;ȿ/($8":č"!!)("\'#&\'#=." 7Č'),C('<%;ȉ/;#;ȿ/2$;p/)$8#:ď#"" )(#\'#("\'#&\'#=." 7Ď'),C('<%;ȫ/;#;ȿ/2$;æ/)$8#:đ#"" )(#\'#("\'#&\'#=." 7Đ'),C('<%;ȭ/;#;ȿ/2$;ë/)$8#:ē#"" )(#\'#("\'#&\'#=." 7Ē'),C("%;Ú/B#;ȿ/9$$;Ù0#*;Ù&/)$8#:Ĕ#\"\" )(#'#(\"'#&'#"),C("%;Ƣ/:#;Ú/1$;ȿ/($8#:ĕ#!!)(#'#(\"'#&'#"),C('<%;p/@#;ȿ/7$;į." &"/)$8#:ė#"" )(#\'#("\'#&\'#=." 7Ė'),C('<;Ƥ=." 7Ę'),C('<;Ș.5 &;ț./ &;Ʒ.) &;Ǧ.# &;ǯ=." 7ę'),C('<%;Þ/;#;ȿ/2$;â/)$8#:ě#"" )(#\'#("\'#&\'#=." 7Ě'),C(";ß.# &;à"),C('<%;Ƕ/@#;ȿ/7$;á." &"/)$8#:ĝ#"" )(#\'#("\'#&\'#=." 7Ĝ'),C('<%;Ș/1#;ȿ/($8":ğ"!!)("\'#&\'#=." 7Ğ'),C('<%;Ȋ/;#;ȿ/2$;Ü/)$8#:ġ#"" )(#\'#("\'#&\'#=." 7Ġ'),C('%;ã/2#;å/)$8":Ģ""! )("\'#&\'#'),C('<%;ä/2#;Ƈ/)$8":Ĥ""! )("\'#&\'#=." 7ģ'),C('<%;ǹ/,#;ȿ/#$+")("\'#&\'#=." 7ĥ'),C('<%;é.) &;•.# &;î/1#;ȿ/($8":Ħ"!!)("\'#&\'#=." 7Ē'),C("<%;Ơ/T#;è/K$;ȿ/B$$;ç0#*;ç&/2$;ơ/)$8%:Ĩ%\"#!)(%'#($'#(#'#(\"'#&'#=.\" 7ħ"),C("%;Ƣ/:#;è/1$;ȿ/($8#:ĩ#!!)(#'#(\"'#&'#"),C("<%;Ÿ/' 8!:ī!! )=.\" 7Ī"),C('<%;ê/2#;ë/)$8":Ĭ""! )("\'#&\'#=." 7Ē'),C('<%;ȭ/1#;ȿ/($8":°"!!)("\'#&\'#=." 7ĭ'),C("%;í/B#;ȿ/9$$;ì0#*;ì&/)$8#:Į#\"\" )(#'#(\"'#&'#"),C("%;Ƣ/:#;í/1$;ȿ/($8#:“#!!)(#'#(\"'#&'#"),C("<%;Ơ/C#;q/:$;ȿ/1$;ơ/($8$:İ$!\")($'#(#'#(\"'#&'#=.\" 7į"),C('<%;ǖ/;#;ȿ/2$;ȭ/)$8#:IJ#"" )(#\'#("\'#&\'#=." 7ı'),C("<%;ð.) &;Ǹ.# &;Ǣ/' 8!:°!! )=.\" 7ij"),C('<%;Ȩ/@#;ȿ/7$;ñ." &"/)$8#:ĵ#"" )(#\'#("\'#&\'#=." 7Ĵ'),C('%;ƻ/1#;ȿ/($8":Ķ"!!)("\'#&\'#'),C("<%;ó/Š#;ô.\" &\"/|$;Æ/s$;ȿ/j$;õ/a$;¹.\" &\"/S$;©.\" &\"/E$;ȿ/<$;ª.\" &\"/.$8):ĸ)'('&$#\" )()'#(('#(''#(&'#(%'#($'#(#'#(\"'#&'#=.\" 7ķ"),C('<%;Ȫ/1#;ȿ/($8":°"!!)("\'#&\'#=." 7Ĺ'),C("<%;Ȋ/C#;ȿ/:$;Ü/1$;ȿ/($8$:Ļ$!!)($'#(#'#(\"'#&'#=.\" 7ĺ"),C("<%;Ƞ/C#;ȿ/:$;ö/1$;ȿ/($8$:Ľ$!!)($'#(#'#(\"'#&'#=.\" 7ļ"),C('%;ø/9#$;÷0#*;÷&/)$8":Į""! )("\'#&\'#'),C("%;ȿ/:#;Ƣ/1$;ø/($8#:ĩ#! )(#'#(\"'#&'#"),C("<%;Ž/M#;ȿ/D$;Ƭ/;$;p/2$;ȿ/)$8%:Ŀ%\"$!)(%'#($'#(#'#(\"'#&'#=.\" 7ľ"),C('<%;ú/h#;Æ/_$;ȿ/V$;¹." &"/H$;©." &"/:$;ª." &"/,$8&:Ł&%%$"! )(&\'#(%\'#($\'#(#\'#("\'#&\'#=." 7ŀ'),C("<%;Ǚ/C#;ȿ/:$;ǩ/1$;ȿ/($8$:°$!#)($'#(#'#(\"'#&'#=.\" 7ł"),C('<;ý.5 &;þ./ &;ÿ.) &;Ā.# &;ā=." 7Ń'),C('%;ǐ/1#;ȿ/($8":°"!!)("\'#&\'#'),C("%%<%;ü/>#;Dz./ &;ȧ.) &;Ȯ.# &;ȯ/#$+\")(\"'#&'#=.##&&!&'#/1#;Ă/($8\":ĩ\"! )(\"'#&'#"),C("%%<%;ü/>#;ȡ./ &;ȧ.) &;Ȯ.# &;ȯ/#$+\")(\"'#&'#=.##&&!&'#/1#;Ń/($8\":ĩ\"! )(\"'#&'#"),C("%%<%;ü/>#;ȡ./ &;Dz.) &;Ȯ.# &;ȯ/#$+\")(\"'#&'#=.##&&!&'#/1#;Ň/($8\":ĩ\"! )(\"'#&'#"),C("%%<%;ü/>#;ȡ./ &;Dz.) &;ȧ.# &;ȯ/#$+\")(\"'#&'#=.##&&!&'#/1#;Ŗ/($8\":ĩ\"! )(\"'#&'#"),C("%%<%;ü/>#;ȡ./ &;Dz.) &;ȧ.# &;Ȯ/#$+\")(\"'#&'#=.##&&!&'#/1#;Ś/($8\":ĩ\"! )(\"'#&'#"),C("<%;ă/T#;ą.\" &\"/F$;Ż/=$;ȿ/4$;Ć/+$8%:Ņ%$$#\" )(%'#($'#(#'#(\"'#&'#=.\" 7ń"),C("%;ü/J#;Ą.\" &\"/<$;ȡ/3$;ȿ/*$8$:ņ$##\"!)($'#(#'#(\"'#&'#"),C('%;ȣ.# &;Ȣ/1#;ȿ/($8":Ň"!!)("\'#&\'#'),C("<%;Ǯ/N#;ȿ/E$;k/<$;Ǥ/3$;ȿ/*$8%:ʼn%#$\"!)(%'#($'#(#'#(\"'#&'#=.\" 7ň"),C(";ć.# &;ł"),C("<%;Ơ/Z#;ĉ/Q$$;ċ0#*;ċ&/A$;ơ/8$;Ĉ.\" &\"/*$8%:ŋ%##\" )(%'#($'#(#'#(\"'#&'#=.\" 7Ŋ"),C("%;ȳ/D#;ȿ/;$;ȝ/2$;ȿ/)$8$:Ō$\"#!)($'#(#'#(\"'#&'#"),C("%;Č/B#;ȿ/9$$;Ċ0#*;Ċ&/)$8#:Į#\"\" )(#'#(\"'#&'#"),C("%;Ƣ/:#;Č/1$;ȿ/($8#:ª#!!)(#'#(\"'#&'#"),C('%;Ƣ." &"/1#;Ġ/($8":ō"! )("\'#&\'#'),C('<%;č/O#;ȿ/F$;Ď." &"/8$;ď." &"/*$8$:ŏ$##! )($\'#(#\'#("\'#&\'#=." 7Ŏ'),C("%;ƕ/=#%<;ȿ=/##&'!&&#/($8\":p\"!!)(\"'#&'#.\\ &%%<;Ď.) &;đ.# &;Ġ=.##&&!&'#/:#;ȿ/1$;Ƙ/($8#:p#! )(#'#(\"'#&'#"),C('<%;&/1#;ȿ/($8":ő"!!)("\'#&\'#=." 7Ő'),C("%;đ/B#$;Đ0#*;Đ&/2$;ȿ/)$8#:Į#\"\"!)(#'#(\"'#&'#"),C('%;ȿ/1#;đ/($8":ĩ"! )("\'#&\'#'),C('<%;Ē." &"/A#;Ĕ/8$;Ē." &"/*$8#:œ##"! )(#\'#("\'#&\'#=." 7Œ'),C("%$;ē/&#0#*;ē&&&#/' 8!:Ŕ!! )"),C("<%;Ǐ/C#;ȿ/:$;ƕ/1$;ȿ/($8$:Ŗ$!!)($'#(#'#(\"'#&'#=.\" 7ŕ"),C(";Ė.; &;ę.5 &;Ĝ./ &;ĝ.) &;ğ.# &;ĕ"),C("<%;ĵ/' 8!:Ř!! )=.\" 7ŗ"),C('<%;ė/U#;į." &"/G$;İ." &"/9$;Ę." &"/+$8$:Ś$$#"! )($\'#(#\'#("\'#&\'#=." 7ř'),C("<%;ȏ.# &;Ȏ/D#;ȿ/;$;ǽ/2$;ȿ/)$8$:Ŝ$\"#!)($'#(#'#(\"'#&'#=.\" 7ś"),C('<%;ǂ/1#;ȿ/($8":Ş"!!)("\'#&\'#=." 7ŝ'),C('%;Ě/@#;İ." &"/2$;ȿ/)$8#:ş#""!)(#\'#("\'#&\'#'),C('<%;ě.# &;ȩ/1#;ȿ/($8":ċ"!!)("\'#&\'#=." 7Š'),C('<%;k." &"/2#;Ȇ/)$8":Ţ""! )("\'#&\'#=." 7š'),C('<;IJ=." 7ţ'),C("<%;ǖ/D#;ȿ/;$;Ğ/2$;ȿ/)$8$:ť$\"#!)($'#(#'#(\"'#&'#=.\" 7Ť"),C(";L./ &;5.) &;,.# &;3"),C("<%;ĭ/' 8!:ŧ!! )=.\" 7Ŧ"),C('<%;Ē." &"/J#;ġ/A$;ȿ/8$;Ē." &"/*$8$:ũ$##" )($\'#(#\'#("\'#&\'#=." 7Ũ'),C(";ij.) &;ģ.# &;Ģ"),C("<%;IJ/' 8!:ū!! )=.\" 7Ū"),C("<%;Ĥ/J#;ȿ/A$;ĩ/8$;İ.\" &\"/*$8$:ŭ$##! )($'#(#'#(\"'#&'#=.\" 7Ŭ"),C('%;ĥ.# &;Ħ/1#;ȿ/($8":Ů"!!)("\'#&\'#'),C('<%;ȏ/;#;ȿ/2$;ǽ/)$8#:ů#"" )(#\'#("\'#&\'#=." 7ś'),C("<%;ȩ/' 8!:ű!! )=.\" 7Ű"),C("%;Ơ/T#;ī/K$;ȿ/B$$;Ī0#*;Ī&/2$;ơ/)$8%:Ų%\"#!)(%'#($'#(#'#(\"'#&'#"),C("%;ħ/' 8!:ų!! )"),C("%;ħ/' 8!:Ŵ!! )"),C("%;Ƣ/:#;ī/1$;ȿ/($8#:ĩ#!!)(#'#(\"'#&'#"),C('<%;Ĭ/O#;ȿ/F$;į." &"/8$;Ę." &"/*$8$:Ŷ$##! )($\'#(#\'#("\'#&\'#=." 7ŵ'),C("%;è/\\#%<%;ȿ/8#;Ƴ.) &;ơ.# &;į/#$+\")(\"'#&'#=/##&'!&&#/($8\":p\"!!)(\"'#&'#.# &;p"),C("<%$;Į/&#0#*;Į&&&#/' 8!:Ÿ!! )=.\" 7ŷ"),C("%;Nj/C#;ȿ/:$;Ɓ/1$;ȿ/($8$:p$!!)($'#(#'#(\"'#&'#"),C('<%;ǀ.# &;ǚ/1#;ȿ/($8":ź"!!)("\'#&\'#=." 7Ź'),C("%;ı/;#;Ü/2$;ȿ/)$8#:Ż#\"\"!)(#'#(\"'#&'#"),C("<%;ȉ/D#;ȿ/;$;ǎ/2$;ȿ/)$8$:Ž$\"#!)($'#(#'#(\"'#&'#=.\" 7ż"),C("%;NJ/;#;ȿ/2$;L/)$8#:ž#\"\" )(#'#(\"'#&'#"),C("<%;Ĵ/E#;æ/<$;ĵ/3$;ȿ/*$8$:ƀ$##\"!)($'#(#'#(\"'#&'#=.\" 7ſ"),C("<%;Ǩ/D#;ȿ/;$;ǽ/2$;ȿ/)$8$:Ƃ$\"#!)($'#(#'#(\"'#&'#=.\" 7Ɓ"),C('%;Ķ/F#;ķ." &"/8$;ŀ." &"/*$8#:ƃ##"! )(#\'#("\'#&\'#'),C("<%;ȓ/D#;ȿ/;$;Ƈ/2$;ȿ/)$8$:ƅ$\"#!)($'#(#'#(\"'#&'#=.\" 7Ƅ"),C("%;Ĺ/B#;ȿ/9$$;ĸ0#*;ĸ&/)$8#:Ɔ#\"\" )(#'#(\"'#&'#"),C('%;Ĺ/1#;ȿ/($8":Ķ"!!)("\'#&\'#'),C('<;ĺ.# &;Ŀ=." 7Ƈ'),C("%;ȉ/T#;ȿ/K$;Ǚ.# &;Ȫ/<$;ȿ/3$;Ļ/*$8%:ƈ%#$\" )(%'#($'#(#'#(\"'#&'#"),C('<;ļ.) &;Ľ.# &;ľ=." 7Ɖ'),C("%;Ƞ/J#;ȿ/A$;Ȇ.# &;ǖ/2$;ȿ/)$8$:Ɗ$\"#!)($'#(#'#(\"'#&'#"),C('%;LJ.# &;ș/1#;ȿ/($8":Ƌ"!!)("\'#&\'#'),C("%;ȃ/D#;ȿ/;$;Ƹ/2$;ȿ/)$8$:ƌ$\"#!)($'#(#'#(\"'#&'#"),C("%;ȁ/D#;ȿ/;$;ƕ/2$;ȿ/)$8$:ƍ$\"#!)($'#(#'#(\"'#&'#"),C('<%;k." &"/J#;Ǘ/A$;ȿ/8$;Ł." &"/*$8$:Ə$##" )($\'#(#\'#("\'#&\'#=." 7Ǝ'),C("%;Ǵ/J#;ȿ/A$;ǘ.# &;ǰ/2$;ȿ/)$8$:Ɛ$\"#!)($'#(#'#(\"'#&'#"),C("%;ř/' 8!:Ƒ!! )"),C("<%;ń/c#;ą.\" &\"/U$;ƃ/L$;ȿ/C$;ņ/:$;¹.\" &\"/,$8&:Ɠ&%%$#! )(&'#(%'#($'#(#'#(\"'#&'#=.\" 7ƒ"),C("%;ü/J#;Ņ.\" &\"/<$;Dz/3$;ȿ/*$8$:Ɣ$##\"!)($'#(#'#(\"'#&'#"),C('%;ȩ/1#;ȿ/($8":ƕ"!!)("\'#&\'#'),C("<%;ȉ/N#;ȿ/E$;Ż/<$;ȿ/3$;Ĩ/*$8%:Ɨ%#$\" )(%'#($'#(#'#(\"'#&'#=.\" 7Ɩ"),C("<%;ň/¦#;ą.\" &\"/˜$;Ƅ.\" &\"/Š$;ȿ/$;ʼn/x$;ȉ/o$;ȿ/f$;Ż/]$;ȿ/T$;ő.\" &\"/F$;Œ.\" &\"/8$;œ//$8,:ƙ,(+*)'$\"! )(,'#(+'#(*'#()'#(('#(''#(&'#(%'#($'#(#'#(\"'#&'#=.\" 7Ƙ"),C("%;ü/J#;Ą.\" &\"/<$;ȧ/3$;ȿ/*$8$:ƚ$##\"!)($'#(#'#(\"'#&'#"),C('<%;Ŋ." &"/2#;Ō/)$8":Ɯ""! )("\'#&\'#=." 7ƛ'),C('%;ǃ.) &;ƺ.# &;ŋ/1#;ȿ/($8":Ɲ"!!)("\'#&\'#'),C("%;Ƿ/;#;ȿ/2$;ȇ/)$8#:ƞ#\"\" )(#'#(\"'#&'#"),C('<;ō.# &;Ŏ=." 7Ɵ'),C('%;Ǚ.# &;Ƕ/1#;ȿ/($8":Ơ"!!)("\'#&\'#'),C('%;Ȫ/@#;ȿ/7$;ŏ." &"/)$8#:ơ#"" )(#\'#("\'#&\'#'),C("%;ȇ/;#;ȿ/2$;Ő/)$8#:Ƣ#\"\" )(#'#(\"'#&'#"),C("%;è/B#;ȿ/9$$;ç0#*;ç&/)$8#:Į#\"\" )(#'#(\"'#&'#"),C("%;ǧ/c#;ȿ/Z$;Ǟ/Q$;ȿ/H$;Ȝ.) &3ƣ\"\"5)7Ƥ/3$;ȿ/*$8&:ƥ&#%#!)(&'#(%'#($'#(#'#(\"'#&'#"),C("<%;Ȱ/D#;ȿ/;$;p/2$;ȿ/)$8$:Ʀ$\"#!)($'#(#'#(\"'#&'#=.\" 7„"),C("<%;DŽ/W#;ȿ/N$;Ŕ/E$;ȿ/<$;Ǡ/3$;ȿ/*$8&:ƨ&#%#!)(&'#(%'#($'#(#'#(\"'#&'#=.\" 7Ƨ"),C("%$;ŕ/&#0#*;ŕ&&&#/' 8!:Ʃ!! )"),C("%;Œ/:#;ȿ/1$;$/($8#:\"#!\")(#'#(\"'#&'#"),C("<%;Ř/T#;ą.\" &\"/F$;ŗ/=$;ȿ/4$;ř/+$8%:ƫ%$$#\" )(%'#($'#(#'#(\"'#&'#=.\" 7ƪ"),C("%;ƅ/;#;ȿ/2$;æ/)$8#:Ƭ#\"\" )(#'#(\"'#&'#.# &;ƅ"),C("%;ü/J#;Ą.\" &\"/<$;Ȯ/3$;ȿ/*$8$:ƭ$##\"!)($'#(#'#(\"'#&'#"),C("%;ƿ/D#;ȿ/;$;¨/2$;ȿ/)$8$:Ĭ$\"#!)($'#(#'#(\"'#&'#"),C("<%;ś/f#;ą.\" &\"/X$;Ż/O$;ȿ/F$;ȫ/=$;ȿ/4$;Ŝ/+$8':Ư'$&%$ )(''#(&'#(%'#($'#(#'#(\"'#&'#=.\" 7Ʈ"),C("%;ü/N#;ȯ/E$;ȿ/<$;ȡ/3$;ȿ/*$8%:ư%#$#!)(%'#($'#(#'#(\"'#&'#"),C('%;Ɨ/@#;ȿ/7$;ŝ." &"/)$8#:Ʊ#"" )(#\'#("\'#&\'#'),C("<%;Ơ/Z#;ȿ/Q$;Ş.\" &\"/C$;ȿ/:$;ơ/1$;ȿ/($8&:Ƴ&!#)(&'#(%'#($'#(#'#(\"'#&'#=.\" 7Ʋ"),C('%;Š/9#$;ş0#*;ş&/)$8":ƴ""! )("\'#&\'#'),C("%;ȿ/H#;Ƣ/?$;ȿ/6$;Š.\" &\"/($8$:Ƶ$! )($'#(#'#(\"'#&'#"),C("%%<%;ƕ/;#;ȿ/2$;&.# &;đ/#$+#)(#'#(\"'#&'#=.##&&!&'#/:#;p/1$;ȿ/($8#:İ#!!)(#'#(\"'#&'#.x &%;š/n#%%<;Ɠ=.##&&!&'#/,#;ȿ/#$+\")(\"'#&'#/F$;Ď.\" &\"/8$;ď.\" &\"/*$8$:ŏ$##! )($'#(#'#(\"'#&'#"),C(";ƕ.# &;Ƙ"),C('<%;ţ/;#;Ż/2$;ȿ/)$8#:Ʒ#""!)(#\'#("\'#&\'#=." 7ƶ'),C("<%;ǝ/J#;ȿ/A$;Ť/8$;ť.\" &\"/*$8$:ƹ$##! )($'#(#'#(\"'#&'#=.\" 7Ƹ"),C('<%;ȡ./ &;Dz.) &;ȧ.# &;Ȯ/1#;ȿ/($8":ċ"!!)("\'#&\'#=." 7ƺ'),C("<%;Ǯ/D#;ȿ/;$;Ǥ/2$;ȿ/)$8$:Ƽ$\"#!)($'#(#'#(\"'#&'#=.\" 7ƻ"),C('<%;Ʈ/,#;Ʈ/#$+")("\'#&\'#=." 7ƽ'),C('<;ƪ=." 7ƾ'),C('<;ƫ=." 7ƿ'),C('<;Ƥ=." 7ǀ'),C('<;Ƶ=." 7ǁ'),C('<;Ư=." 7ǂ'),C('<%;ư/,#;ư/#$+")("\'#&\'#=." 7ǃ'),C('<%;Ʊ/,#;Ʊ/#$+")("\'#&\'#=." 7DŽ'),C('<;ƭ=." 7Dž'),C('<;Ʈ=." 7dž'),C('<;ư=." 7LJ'),C('<;Ʊ=." 7Lj'),C('<%;ư/,#;Ƭ/#$+")("\'#&\'#=." 7lj'),C('<%;Ʊ/,#;Ƭ/#$+")("\'#&\'#=." 7NJ'),C('<%;Ƭ/1#;Ƭ." &"/#$+")("\'#&\'#=." 7Nj'),C('<%;Ʋ/,#;Ƭ/#$+")("\'#&\'#=." 7nj'),C('<%;ư/,#;Ʊ/#$+")("\'#&\'#=." 7nj'),C('<%;Ǻ/@#;ȿ/7$;k." &"/)$8#:ǎ#"" )(#\'#("\'#&\'#=." 7Ǎ'),C('<;ƕ.# &;Ƙ=." 7Ǐ'),C("<%;Ÿ/' 8!:Ǒ!! )=.\" 7ǐ"),C('<%;ż." &"/2#;Ÿ/)$8":Ǔ""! )("\'#&\'#=." 7ǒ'),C('<%;ż." &"/2#;Ÿ/)$8":Ǖ""! )("\'#&\'#=." 7ǔ'),C('%;Ÿ/2#;ƣ/)$8":ǖ""! )("\'#&\'#'),C('<%;ſ.) &;ƀ.# &;ž/2#;Ÿ/)$8":ǘ""! )("\'#&\'#=." 7Ǘ'),C("%;ȿ/& 8!:Ǚ! )"),C('%;ż/2#;ƀ/)$8":ǚ""! )("\'#&\'#'),C('%;Ÿ/2#;ƣ/)$8":D""! )("\'#&\'#'),C("<%;Ÿ/' 8!:ǜ!! )=.\" 7Ǜ"),C("<%;Ÿ/' 8!:Ǟ!! )=.\" 7ǝ"),C('<%;ż." &"/2#;Ÿ/)$8":Ǡ""! )("\'#&\'#=." 7ǟ'),C('<%;ż." &"/2#;Ÿ/)$8":Ǣ""! )("\'#&\'#=." 7ǡ'),C('<%;ż." &"/2#;Ÿ/)$8":Ǥ""! )("\'#&\'#=." 7ǣ'),C('<%;ż." &"/2#;Ÿ/)$8":Ǧ""! )("\'#&\'#=." 7ǥ'),C('<%;ƈ.# &;Ż/1#;ȿ/($8":Ǩ"!!)("\'#&\'#=." 7ǧ'),C("%;Ż/;#;ȿ/2$;æ/)$8#:ǩ#\"\" )(#'#(\"'#&'#"),C("<%;Ÿ/' 8!:ǫ!! )=.\" 7Ǫ"),C("<%;Ÿ/' 8!:ǭ!! )=.\" 7Ǭ"),C('<%;ƌ/=#%<;Ɠ=.##&&!&\'#/($8":ǯ"!!)("\'#&\'#.Å &%;ƍ/=#%<;Ɠ=.##&&!&\'#/($8":ǰ"!!)("\'#&\'#.› &%;Ə/=#%<;Ɠ=.##&&!&\'#/($8":DZ"!!)("\'#&\'#.q &%;Ɛ/=#%<;Ɠ=.##&&!&\'#/($8":Dz"!!)("\'#&\'#.G &%;ƒ/=#%<;Ɠ=.##&&!&\'#/($8":dz"!!)("\'#&\'#=." 7Ǯ'),C('<%%3ǵ""5!7Ƕ." &"/F#3Ƿ""5#7Ǹ." &"/2$3ǹ""5$7Ǻ/#$+#)(#\'#("\'#&\'#.k &%3ǻ""5$7Ǽ.5 &3ǽ""5&7Ǿ.) &3ǿ""5$7Ȁ." &"/2#3ȁ""5$7Ȃ/#$+")("\'#&\'#.) &3ȃ""5$7Ȅ/\' 8!:ċ!! )=." 7Ǵ'),C('<%;Ǝ.5 &3Ȇ""5%7ȇ.) &3Ȉ""5$7ȉ/\' 8!:ċ!! )=." 7ȅ'),C('<%3ȋ""5&7Ȍ/i#%$4(""5!7)/,#0)*4(""5!7)&&&#/2#3ȍ""5)7Ȏ/#$+")("\'#&\'#." &"/)$8":ȏ""! )("\'#&\'#=." 7Ȋ'),C('<%3ȑ""5\'7Ȓ.• &3ȓ""5\'7Ȕ.‰ &3ȕ""5\'7Ȗ.} &%3ȗ""5$7Ș/7#3ș""5$7Ț." &"/#$+")("\'#&\'#.S &%3ș""5$7Ț/7#3ț""5%7Ȝ." &"/#$+")("\'#&\'#.) &3ȝ""5&7Ȟ/\' 8!:ċ!! )=." 7Ȑ'),C('<%%3Ƞ""5#7ȡ/V#2Ȣ""6Ȣ7ȣ.A &2Ȥ""6Ȥ7ȥ.5 &2Ȧ""6Ȧ7ȧ.) &3Ȩ""5$7ȩ/#$+")("\'#&\'#.q &%3Ȫ""5#7ȫ.A &3ǽ""5&7Ǿ.5 &3Ȭ""5%7ȭ.) &3ǻ""5$7Ǽ." &"/2#3Ƞ""5#7ȡ/#$+")("\'#&\'#.# &;Ƒ/\' 8!:ċ!! )=." 7ȟ'),C('%3Ȯ""5(7ȯ/d#%$4(""5!7)/,#0)*4(""5!7)&&&#/2#3Ȱ""5%7ȱ/#$+")("\'#&\'#/)$8":Ȳ""! )("\'#&\'#'),C('<%3ȴ""5$7ȵ/\' 8!:ċ!! )=." 7ȳ'),C('4ȶ""5!7ȷ'),C('%2ȸ""6ȸ7ȹ/K#$4Ⱥ""5!7Ȼ/,#0)*4Ⱥ""5!7Ȼ&&&#/)$8":ȼ""! )("\'#&\'#'),C(";Ɩ.# &;Ɨ"),C(";ƙ./ &;Ɲ.) &;ƛ.# &;Ɯ"),C("%%<;ȴ.# &;>=.##&&!&'#/J#$;Ɣ.# &;Ɠ/,#0)*;Ɣ.# &;Ɠ&&&#/($8\":Ö\"! )(\"'#&'#"),C("%%<;ȶ.# &;>=.##&&!&'#/J#$;Ɣ.# &;Ɠ/,#0)*;Ɣ.# &;Ɠ&&&#/($8\":Ƚ\"! )(\"'#&'#"),C("%;ƞ/™#;ȿ/$%$%%<;ƚ=.##&&!&'#/1#1\"\"5!7Ⱦ/#$+\")(\"'#&'#0G*%%<;ƚ=.##&&!&'#/1#1\"\"5!7Ⱦ/#$+\")(\"'#&'#&/\"!&,)/1$;ƚ/($8$:ȿ$!!)($'#(#'#(\"'#&'#"),C('%$4ɀ""5!7Ɂ0)*4ɀ""5!7Ɂ&/5#;Ɵ/,$;ȿ/#$+#)(#\'#("\'#&\'#'),C('%2ɂ""6ɂ7Ƀ/k#$2Ʉ""6Ʉ7Ʌ.) &4Ɇ""5!7ɇ05*2Ʉ""6Ʉ7Ʌ.) &4Ɇ""5!7ɇ&/7$2ɂ""6ɂ7Ƀ/($8#:Ɉ#!!)(#\'#("\'#&\'#'),C('%2ɉ""6ɉ7Ɋ/k#$26""6677.) &48""5!7905*26""6677.) &48""5!79&/7$2ɉ""6ɉ7Ɋ/($8#:ɋ#!!)(#\'#("\'#&\'#'),C('%2Ɍ""6Ɍ7ɍ/k#$2Ɏ""6Ɏ7ɏ.) &4ɐ""5!7ɑ05*2Ɏ""6Ɏ7ɏ.) &4ɐ""5!7ɑ&/7$2Ɍ""6Ɍ7ɍ/($8#:ɒ#!!)(#\'#("\'#&\'#'),C('<%2ɔ""6ɔ7ɕ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɓ'),C('<%2ɗ""6ɗ7ɘ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɖ'),C('<%2ɚ""6ɚ7ɛ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ə'),C('<%2ɝ""6ɝ7ɞ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɜ'),C('<%2ɠ""6ɠ7ɡ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɟ'),C('<%2ɣ""6ɣ7ɤ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɢ'),C('<%2ɦ""6ɦ7ɧ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɥ'),C('<%2ɩ""6ɩ7ɪ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɨ'),C('<%2ɉ""6ɉ7Ɋ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɫ'),C('<%2ɂ""6ɂ7Ƀ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɬ'),C('<%2Ɍ""6Ɍ7ɍ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɭ'),C('<%2ɯ""6ɯ7ɰ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɮ'),C('<%2ɲ""6ɲ7ɳ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɱ'),C('<%2ɵ""6ɵ7ɶ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɴ'),C('<%2ɷ""6ɷ7ɸ/1#;ȿ/($8":""!!)("\'#&\'#=." 7Nj'),C('<%2ɺ""6ɺ7ɻ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɹ'),C('<%2ɽ""6ɽ7ɾ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ɼ'),C('<%2ɿ""6ɿ7ʀ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ǂ'),C('<%2ʁ""6ʁ7ʂ/1#;ȿ/($8":""!!)("\'#&\'#=." 7LJ'),C('<%2ʃ""6ʃ7ʄ/1#;ȿ/($8":""!!)("\'#&\'#=." 7Lj'),C('<%2ʆ""6ʆ7ʇ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ʅ'),C('<%2ʉ""6ʉ7ʊ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ʈ'),C('<%2a""6a7b/1#;ȿ/($8":""!!)("\'#&\'#=." 7ʋ'),C('<%2ʍ""6ʍ7ʎ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ʌ'),C('<%2ʐ""6ʐ7ʑ/1#;ȿ/($8":""!!)("\'#&\'#=." 7ʏ'),C('%3ʒ""5%7ʓ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʔ""5&7ʕ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʖ""5#7ʗ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʘ""5%7ʙ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʚ""5#7ʛ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʜ""5%7ʝ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3ʞ\"\"5'7ʟ/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3ʠ""5#7ʡ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʢ""5"7ʣ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʤ""5#7ʥ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʦ""5&7ʧ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʨ""5-7ʩ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʪ""5&7ʫ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʬ""5%7ʭ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3ʮ\"\"5'7ʯ/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3ʰ""5"7ʱ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3ʲ\"\"5'7ʳ/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3ʴ""5$7ʵ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʶ""5$7ʷ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʸ""5%7ʹ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3ʺ\"\"5'7ʻ/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3ʼ""5&7ʽ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʾ""5&7ʿ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ˀ""5(7ˁ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˂""5*7˃/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˄""5&7˅/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ˆ""5%7ˇ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ˈ""5,7ˉ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ˊ""5,7ˋ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ˌ""517ˍ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ˎ""5(7ˏ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3ː\"\"5'7ˑ/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3˒""5*7˓/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˔""5(7˕/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˖""5&7˗/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˘""5$7˙/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˚""5&7˛/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˜""5(7˝/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˞""5$7˟/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ˠ""5$7ˡ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ˢ""5$7ˣ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ˤ""5#7˥/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˦""5&7˧/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˨""5&7˩/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˪""5)7˫/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ˬ""5&7˭/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3ˮ\"\"5'7˯/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3˰""5$7˱/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˲""5#7˳/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3˴\"\"5'7˵/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3˶""5$7˷/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˸""5$7˹/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˺""5$7˻/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˼""5%7˽/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3˾""5&7˿/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̀""5"7́/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̂""5&7̃/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̄""5)7̅/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̆""5"7̇/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̈""5%7̉/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3̊\"\"5'7̋/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3̌""5)7̍/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̎""5%7̏/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̐""5&7̑/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3̒\"\"5'7̓/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3̔""5)7̕/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̖""5$7̗/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̘""5"7̙/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̚""5&7̛/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̜""5$7̝/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̞""5#7̟/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̠""5$7̡/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̢""5$7̣/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̤""5%7̥/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̦""5%7̧/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3̨\"\"5'7̩/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3̪""5"7̫/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̬""5#7̭/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3̮\"\"5'7̯/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3y""5$7z/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̰""5"7̱/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̲""5&7̳/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̴""5"7̵/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̶""5"7̷/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̸""5%7̹/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̺""5%7̻/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̼""5$7̽/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̾""5&7̿/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3̀\"\"5'7́/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3͂""5%7̓/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3̈́""5%7ͅ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3͆""5)7͇/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3͈""5*7͉/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3͊""5&7͋/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3͌\"\"5'7͍/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C("%3͎\"\"5'7͏/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3͐""5&7͑/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3͒\"\"5'7͓/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3͔""5(7͕/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3͖""5%7͗/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3͘""5(7͙/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3͚""5#7͛/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3͜""5%7͝/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3͞""5)7͟/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3͠""5&7͡/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3͢""5#7ͣ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ͤ""5%7ͥ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ͦ""5$7ͧ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ͨ""5)7ͩ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ͪ""5$7ͫ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ͬ""5"7ͭ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ͮ""5+7ͯ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3Ͱ\"\"5'7ͱ/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3Ͳ""5%7ͳ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ʹ""5&7͵/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3Ͷ""5&7ͷ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3͸""5%7͹/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ͺ""5&7ͻ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3ͼ""5&7ͽ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3;""5$7Ϳ/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3΀\"\"5'7΁/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C('%3΂""5$7΃/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3΄""5%7΅/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C('%3Ά""5$7·/8#%<;Ɠ=.##&&!&\'#/#$+")("\'#&\'#'),C("%3Έ\"\"5'7Ή/8#%<;Ɠ=.##&&!&'#/#$+\")(\"'#&'#"),C("%;ȵ/' 8!:Ί!! )"),C(";Ʒ.˹ &;Ƹ.˳ &;ƹ.˭ &;ƺ.˧ &;ƻ.ˡ &;Ƽ.˛ &;ƽ.˕ &;ƾ.ˏ &;ƿ.ˉ &;ǀ.˃ &;ǁ.ʽ &;ǂ.ʷ &;ǃ.ʱ &;DŽ.ʫ &;Dž.ʥ &;dž.ʟ &;LJ.ʙ &;Lj.ʓ &;lj.ʍ &;NJ.ʇ &;Nj.ʁ &;nj.ɻ &;Ǎ.ɵ &;ǎ.ɯ &;Ǐ.ɩ &;ǐ.ɣ &;Ǒ.ɝ &;ǒ.ɗ &;Ǔ.ɑ &;ǔ.ɋ &;Ǖ.Ʌ &;ǖ.ȿ &;Ǘ.ȹ &;ǘ.ȳ &;Ǚ.ȭ &;ǚ.ȧ &;Ǜ.ȡ &;ǜ.ț &;ǝ.ȕ &;Ǟ.ȏ &;ǟ.ȉ &;Ǡ.ȃ &;ǡ.ǽ &;Ǣ.Ƿ &;ǣ.DZ &;Ǥ.ǫ &;ǥ.ǥ &;Ǧ.ǟ &;ǧ.Ǚ &;Ǩ.Ǔ &;ǩ.Ǎ &;Ǫ.LJ &;ǫ.ǁ &;Ǭ.ƻ &;ǭ.Ƶ &;Ǯ.Ư &;ǯ.Ʃ &;ǰ.ƣ &;DZ.Ɲ &;Dz.Ɨ &;dz.Ƒ &;Ǵ.Ƌ &;ǵ.ƅ &;Ƕ.ſ &;Ƿ.Ź &;Ǹ.ų &;ǹ.ŭ &;Ǻ.ŧ &;ǻ.š &;Ǽ.ś &;ǽ.ŕ &;Ǿ.ŏ &;ǿ.ʼn &;Ȁ.Ń &;ȁ.Ľ &;Ȃ.ķ &;ȃ.ı &;Ȅ.ī &;ȅ.ĥ &;Ȇ.ğ &;ȇ.ę &;Ȉ.ē &;ȉ.č &;Ȋ.ć &;ȋ.ā &;Ȍ.û &;ȍ.õ &;Ȏ.ï &;ȏ.é &;Ȑ.ã &;ȑ.Ý &;Ȓ.× &;ȓ.Ñ &;Ȕ.Ë &;ȕ.Å &;Ȗ.¿ &;ȗ.¹ &;Ș.³ &;ș.­ &;Ț.§ &;ț.¡ &;Ȝ.› &;Ȟ.• &;ȟ. &;Ƞ.‰ &;ȡ.ƒ &;ȣ.} &;Ȥ.w &;ȥ.q &;Ȧ.k &;ȧ.e &;Ȩ._ &;ȩ.Y &;Ȫ.S &;ȫ.M &;Ȭ.G &;ȭ.A &;Ȯ.; &;ȯ.5 &;Ȱ./ &;ȱ.) &;Ȳ.# &;ȳ"),C(";ƹ.ŧ &;ƻ.š &;Ƽ.ś &;ƾ.ŕ &;ƿ.ŏ &;ǂ.ʼn &;Dž.Ń &;Lj.Ľ &;NJ.ķ &;Nj.ı &;Ǎ.ī &;Ǐ.ĥ &;ǐ.ğ &;ǖ.ę &;Ǘ.ē &;Ǚ.č &;ǜ.ć &;ǝ.ā &;ǟ.û &;ǡ.õ &;Ǣ.ï &;Ǥ.é &;Ǩ.ã &;ǩ.Ý &;Ǭ.× &;ǭ.Ñ &;DZ.Ë &;Dz.Å &;Ƕ.¿ &;Ǹ.¹ &;ǹ.³ &;Ǻ.­ &;ǻ.§ &;Ǽ.¡ &;Ȁ.› &;Ȅ.• &;ȅ. &;Ȇ.‰ &;ȉ.ƒ &;Ȋ.} &;ȋ.w &;ȏ.q &;ȓ.k &;ȟ.e &;Ƞ._ &;ȡ.Y &;Ȥ.S &;ȥ.M &;Ȧ.G &;Ȩ.A &;ȩ.; &;Ȫ.5 &;ȫ./ &;ȭ.) &;Ȱ.# &;ȱ"),C(";ȸ.. &%;ȹ/& 8!:΋! )"),C('<%2΍""6΍7Ύ/‡#$%%<4Ώ""5!7ΐ=.##&&!&\'#/1#1""5!7Ⱦ/#$+")("\'#&\'#0M*%%<4Ώ""5!7ΐ=.##&&!&\'#/1#1""5!7Ⱦ/#$+")("\'#&\'#&/#$+")("\'#&\'#=." 7Ό'),C("<%;Ⱥ/5#;Ⱦ/,$;Ȼ/#$+#)(#'#(\"'#&'#=.\" 7Α"),C('2Β""6Β7Γ'),C('2Δ""6Δ7Ε'),C('$%%<;Ȼ.# &;Ⱥ=.##&&!&\'#/1#1""5!7Ⱦ/#$+")("\'#&\'#/P#0M*%%<;Ȼ.# &;Ⱥ=.##&&!&\'#/1#1""5!7Ⱦ/#$+")("\'#&\'#&&&#'),C(";ȼ.# &;ȹ"),C('%;Ƚ/K#$4Ζ""5!7Η.# &;Ƚ0/*4Ζ""5!7Η.# &;Ƚ&/#$+")("\'#&\'#'),C('<%$4Ζ""5!7Η.# &;ȷ0/*4Ζ""5!7Η.# &;ȷ&/\' 8!:-!! )=." 7Θ'),C('2Ι""6Ι7Κ')],f=0,p=[{line:1,column:1}],d=0,h=[],v=0,m={},y=["start","start_streaming","stmt_list","semi_optional","semi_required","stmt_list_tail","type_definition","type_definition_types","datatype_custom","datatype_word_tail","type_definition_args","definition_args_loop","literal_value","literal_null","literal_date","literal_string","literal_string_single","literal_string_schar","literal_blob","literal_text","number_sign","literal_number_signed","literal_number","literal_number_decimal","number_decimal_node","number_decimal_full","number_decimal_fraction","number_decimal_exponent","literal_number_hex","number_hex","number_digit","bind_parameter","bind_parameter_numbered","bind_number_id","bind_parameter_named","bind_parameter_tcl","tcl_suffix","expression_exists","expression_exists_ne","expression_raise","expression_raise_args","raise_args_ignore","raise_args_message","expression_root","expression_wrapped","expression_recur","expression_unary_collate","expression_unary","expression_unary_op","expression_collate","expression_concat","expression_multiply","expression_multiply_op","expression_add","expression_add_op","expression_shift","expression_shift_op","expression_compare","expression_compare_op","expression_equiv","expression_equiv_tails","expression_equiv_null_op","expression_equiv_op","expression_cast","type_alias","expression_case","case_expression","expression_case_when","expression_case_else","expression_postfix","expression_postfix_tail","expression_like","expression_escape","expression_between","expression_between_tail","expression_is_not","expression_in","expression_in_target","expression_list_or_select","expression_and","expression","expression_list","expression_list_loop","expression_list_rest","function_call","function_call_args","args_list_distinct","error_message","stmt","stmt_modifier","modifier_query","stmt_nodes","stmt_commit","stmt_begin","commit_transaction","stmt_begin_modifier","stmt_rollback","rollback_savepoint","savepoint_name","savepoint_alt","stmt_savepoint","stmt_release","stmt_alter","alter_start","alter_action","alter_action_rename","alter_action_add","action_add_modifier","stmt_crud","stmt_core_with","clause_with","clause_with_recursive","clause_with_tables","clause_with_loop","expression_cte","select_alias","select_wrapped","stmt_select_full","stmt_sqlite","stmt_attach","attach_arg","stmt_detach","stmt_vacuum","vacuum_target","stmt_analyze","analyze_arg","stmt_reindex","reindex_arg","stmt_pragma","pragma_expression","pragma_value","pragma_value_literal","pragma_value_bool","pragma_bool_id","pragma_value_name","stmt_crud_types","stmt_select","stmt_core_order","stmt_core_limit","stmt_core_limit_offset","limit_offset_variant","limit_offset_variant_name","select_loop","select_loop_union","select_parts","select_parts_core","select_core_select","select_modifier","select_modifier_distinct","select_modifier_all","select_target","select_target_loop","select_core_from","stmt_core_where","select_core_group","select_core_having","select_node","select_node_star","select_node_star_qualified","select_node_aliased","select_source","source_loop_tail","select_cross_clause","select_join_clause","table_or_sub","table_or_sub_func","table_qualified","table_qualified_id","table_or_sub_index_node","index_node_indexed","index_node_none","table_or_sub_sub","table_or_sub_select","alias","join_operator","join_operator_natural","join_operator_types","operator_types_hand","types_hand_outer","operator_types_misc","join_condition","join_condition_on","join_condition_using","select_parts_values","stmt_core_order_list","stmt_core_order_list_loop","stmt_core_order_list_item","select_star","stmt_fallback_types","stmt_insert","insert_keyword","insert_keyword_ins","insert_keyword_repl","insert_keyword_mod","insert_target","insert_into","insert_into_start","insert_results","loop_columns","loop_column_tail","loop_name","insert_value","insert_value_start","insert_values_list","insert_values_loop","expression_list_wrapped","insert_default","operator_compound","compound_union","compound_union_all","stmt_update","update_start","update_fallback","update_set","update_columns","update_columns_tail","update_column","stmt_delete","delete_start","stmt_create","create_start","create_table_only","create_index_only","create_trigger_only","create_view_only","create_virtual_only","create_table","create_table_start","create_core_tmp","create_core_ine","create_table_source","table_source_def","source_def_rowid","source_def_loop","source_def_tail","source_tbl_loop","source_def_column","source_def_name","column_type","column_constraints","column_constraint_tail","column_constraint","constraint_name","constraint_name_loop","column_constraint_types","column_constraint_foreign","column_constraint_primary","col_primary_start","col_primary_auto","column_constraint_null","constraint_null_types","constraint_null_value","column_constraint_check","column_constraint_default","column_default_values","column_constraint_collate","table_constraint","table_constraint_types","table_constraint_check","table_constraint_primary","primary_start","primary_start_normal","primary_start_unique","primary_columns","primary_columns_index","primary_columns_table","primary_column_tail","primary_column","primary_column_types","column_collate","column_collate_loop","primary_column_dir","primary_conflict","primary_conflict_start","constraint_check","table_constraint_foreign","foreign_start","foreign_clause","foreign_references","foreign_actions","foreign_actions_tail","foreign_action","foreign_action_on","action_on_action","on_action_set","on_action_cascade","on_action_none","foreign_action_match","foreign_deferrable","deferrable_initially","table_source_select","create_index","create_index_start","index_unique","index_on","create_trigger","create_trigger_start","trigger_conditions","trigger_apply_mods","trigger_apply_instead","trigger_do","trigger_do_on","trigger_do_update","do_update_of","do_update_columns","trigger_foreach","trigger_when","trigger_action","action_loop","action_loop_stmt","create_view","id_view_expression","create_view_start","create_as_select","create_virtual","create_virtual_start","virtual_module","virtual_args","virtual_args_loop","virtual_args_tail","virtual_arg_types","virtual_column_name","stmt_drop","drop_start","drop_types","drop_ie","binary_concat","binary_plus","binary_minus","binary_multiply","binary_divide","binary_mod","binary_left","binary_right","binary_and","binary_or","binary_lt","binary_gt","binary_lte","binary_gte","binary_equal","binary_notequal_a","binary_notequal_b","binary_lang_isnt","id_name","id_database","id_function","id_table","id_table_qualified","id_column","column_unqualified","column_qualifiers","id_column_qualified","id_collation","id_savepoint","id_index","id_trigger","id_view","id_pragma","id_cte","id_table_expression","id_constraint_table","id_constraint_column","datatype_types","datatype_text","datatype_real","datatype_real_double","datatype_numeric","datatype_integer","datatype_integer_fp","datatype_none","name_char","unicode_char","name","name_quoted","name_unquoted","name_reserved","name_bracketed","bracket_terminator","name_dblquoted","name_sglquoted","name_backticked","sym_bopen","sym_bclose","sym_popen","sym_pclose","sym_comma","sym_dot","sym_star","sym_quest","sym_sglquote","sym_dblquote","sym_backtick","sym_tilde","sym_plus","sym_minus","sym_equal","sym_amp","sym_pipe","sym_mod","sym_lt","sym_gt","sym_excl","sym_semi","sym_colon","sym_fslash","sym_bslash","ABORT","ACTION","ADD","AFTER","ALL","ALTER","ANALYZE","AND","AS","ASC","ATTACH","AUTOINCREMENT","BEFORE","BEGIN","BETWEEN","BY","CASCADE","CASE","CAST","CHECK","COLLATE","COLUMN","COMMIT","CONFLICT","CONSTRAINT","CREATE","CROSS","CURRENT_DATE","CURRENT_TIME","CURRENT_TIMESTAMP","DATABASE","DEFAULT","DEFERRABLE","DEFERRED","DELETE","DESC","DETACH","DISTINCT","DROP","EACH","ELSE","END","ESCAPE","EXCEPT","EXCLUSIVE","EXISTS","EXPLAIN","FAIL","FOR","FOREIGN","FROM","FULL","GLOB","GROUP","HAVING","IF","IGNORE","IMMEDIATE","IN","INDEX","INDEXED","INITIALLY","INNER","INSERT","INSTEAD","INTERSECT","INTO","IS","ISNULL","JOIN","KEY","LEFT","LIKE","LIMIT","MATCH","NATURAL","NO","NOT","NOTNULL","NULL","OF","OFFSET","ON","OR","ORDER","OUTER","PLAN","PRAGMA","PRIMARY","QUERY","RAISE","RECURSIVE","REFERENCES","REGEXP","REINDEX","RELEASE","RENAME","REPLACE","RESTRICT","RIGHT","ROLLBACK","ROW","ROWID","SAVEPOINT","SELECT","SET","TABLE","TEMP","TEMPORARY","THEN","TO","TRANSACTION","TRIGGER","UNION","UNIQUE","UPDATE","USING","VACUUM","VALUES","VIEW","VIRTUAL","WHEN","WHERE","WITH","WITHOUT","reserved_words","reserved_word_list","reserved_critical_list","comment","comment_line","comment_block","comment_block_start","comment_block_end","comment_block_body","block_body_nodes","comment_block_feed","o","_TODO_"],g=[null,null,null,null,null,null,"Type Definition",null,"Custom Datatype Name",null,"Type Definition Arguments",null,null,"Null Literal","Date Literal","String Literal","Single-quoted String Literal",null,"Blob Literal",null,"Number Sign",null,null,null,"Decimal Literal",null,null,"Decimal Literal Exponent","Hexidecimal Literal",null,null,"Bind Parameter","Numbered Bind Parameter",null,"Named Bind Parameter","TCL Bind Parameter",null,"EXISTS Expression","EXISTS Keyword","RAISE Expression","RAISE Expression Arguments","IGNORE Keyword",null,null,null,null,null,null,null,"COLLATE Expression",null,null,null,null,null,null,null,null,null,null,null,null,null,"CAST Expression","Type Alias","CASE Expression",null,"WHEN Clause","ELSE Clause",null,null,"Comparison Expression","ESCAPE Expression","BETWEEN Expression",null,null,"IN Expression",null,null,null,null,"Expression List",null,null,"Function Call","Function Call Arguments",null,"Error Message","Statement","QUERY PLAN","QUERY PLAN Keyword",null,"END Transaction Statement","BEGIN Transaction Statement",null,null,"ROLLBACK Statement","TO Clause",null,null,"SAVEPOINT Statement","RELEASE Statement","ALTER TABLE Statement","ALTER TABLE Keyword",null,"RENAME TO Keyword","ADD COLUMN Keyword",null,null,"WITH Clause",null,null,null,null,"Common Table Expression",null,null,null,null,"ATTACH Statement",null,"DETACH Statement","VACUUM Statement",null,"ANALYZE Statement",null,"REINDEX Statement",null,"PRAGMA Statement",null,null,null,null,null,null,null,"SELECT Statement","ORDER BY Clause","LIMIT Clause","OFFSET Clause",null,null,null,"Union Operation",null,null,"SELECT Results Clause","SELECT Results Modifier",null,null,null,null,"FROM Clause","WHERE Clause","GROUP BY Clause","HAVING Clause",null,null,null,null,null,null,"CROSS JOIN Operation","JOIN Operation",null,null,"Qualified Table","Qualified Table Identifier","Qualfied Table Index",null,null,"SELECT Source","Subquery","Alias","JOIN Operator",null,null,null,null,null,"JOIN Constraint","Join ON Clause","Join USING Clause","VALUES Clause",null,null,"Ordering Expression","Star","Fallback Type","INSERT Statement",null,"INSERT Keyword","REPLACE Keyword","INSERT OR Modifier",null,"INTO Clause","INTO Keyword","VALUES Clause","Column List",null,"Column Name","VALUES Clause","VALUES Keyword",null,null,"Wrapped Expression List","DEFAULT VALUES Clause","Compound Operator","UNION Operator",null,"UPDATE Statement","UPDATE Keyword","UPDATE OR Modifier","SET Clause",null,null,"Column Assignment","DELETE Statement","DELETE Keyword","CREATE Statement",null,null,null,null,null,null,"CREATE TABLE Statement",null,null,"IF NOT EXISTS Modifier",null,"Table Definition",null,null,null,null,"Column Definition",null,"Column Datatype",null,null,"Column Constraint",null,"CONSTRAINT Name",null,"FOREIGN KEY Column Constraint","PRIMARY KEY Column Constraint","PRIMARY KEY Keyword","AUTOINCREMENT Keyword",null,"UNIQUE Column Constraint","NULL Column Constraint","CHECK Column Constraint","DEFAULT Column Constraint",null,"COLLATE Column Constraint","Table Constraint",null,"CHECK Table Constraint","PRIMARY KEY Table Constraint",null,"PRIMARY KEY Keyword","UNIQUE Keyword",null,null,null,null,"Indexed Column",null,"Collation",null,"Column Direction",null,"ON CONFLICT Keyword",null,"FOREIGN KEY Table Constraint","FOREIGN KEY Keyword",null,"REFERENCES Clause",null,null,"FOREIGN KEY Action Clause",null,"FOREIGN KEY Action",null,null,null,null,"DEFERRABLE Clause",null,null,"CREATE INDEX Statement",null,null,"ON Clause","CREATE TRIGGER Statement",null,"Conditional Clause",null,null,"Conditional Action",null,null,null,null,null,"WHEN Clause","Actions Clause",null,null,"CREATE VIEW Statement",null,null,null,"CREATE VIRTUAL TABLE Statement",null,null,"Module Arguments",null,null,null,null,"DROP Statement","DROP Keyword","DROP Type","IF EXISTS Keyword","Or","Add","Subtract","Multiply","Divide","Modulo","Shift Left","Shift Right","Logical AND","Logical OR","Less Than","Greater Than","Less Than Or Equal","Greater Than Or Equal","Equal","Not Equal","Not Equal","IS","Identifier","Database Identifier","Function Identifier","Table Identifier",null,"Column Identifier",null,null,null,"Collation Identifier","Savepoint Identifier","Index Identifier","Trigger Identifier","View Identifier","Pragma Identifier","CTE Identifier",null,"Table Constraint Identifier","Column Constraint Identifier","Datatype Name","TEXT Datatype Name","REAL Datatype Name","DOUBLE Datatype Name","NUMERIC Datatype Name","INTEGER Datatype Name",null,"BLOB Datatype Name",null,null,null,null,null,null,null,null,null,null,null,"Open Bracket","Close Bracket","Open Parenthesis","Close Parenthesis","Comma","Period","Asterisk","Question Mark","Single Quote","Double Quote","Backtick","Tilde","Plus","Minus","Equal","Ampersand","Pipe","Modulo","Less Than","Greater Than","Exclamation","Semicolon","Colon","Forward Slash","Backslash",null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,"Line Comment","Block Comment",null,null,null,null,null,"Whitespace",null],b="tracer"in t?t.tracer:new l;if("startRule"in t){if(!(t.startRule in o))throw new Error("Can't start parsing from rule \""+t.startRule+'".');s=o[t.startRule]}function x(e,t){return{type:"literal",text:e,ignoreCase:t}}function _(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function w(){return{type:"any"}}function k(){return{type:"end"}}function T(e){return{type:"other",description:e}}function E(t){var n,r=p[t];if(r)return r;n=t-1;while(!p[n])n--;r=p[n],r={line:r.line,column:r.column};while(n<t)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return p[t]=r,r}function O(e,t){var n=E(e),r=E(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function M(e){f<d||(f>d&&(d=f,h=[]),h.push(e))}function S(e,t,n){return new i(i.buildMessage(e,t),e,t,n)}function C(e){return e.split("").map((function(e){return e.charCodeAt(0)-32}))}function A(t){var n,r=c[t],o=0,i=[],l=r.length,s=[],p=[],d=f;b.trace({type:"rule.enter",rule:y[t],description:g[t],location:O(d,d)});var h=545*f+t,x=m[h];if(x)return f=x.nextPos,x.result!==a?b.trace({type:"rule.match",rule:y[t],description:g[t],result:x.result,location:O(d,f)}):b.trace({type:"rule.fail",rule:y[t],description:g[t],location:O(d,d)}),x.result;while(1){while(o<l)switch(r[o]){case 0:p.push(u[r[o+1]]),o+=2;break;case 1:p.push(void 0),o++;break;case 2:p.push(null),o++;break;case 3:p.push(a),o++;break;case 4:p.push([]),o++;break;case 5:p.push(f),o++;break;case 6:p.pop(),o++;break;case 7:f=p.pop(),o++;break;case 8:p.length-=r[o+1],o+=2;break;case 9:p.splice(-2,1),o++;break;case 10:p[p.length-2].push(p.pop()),o++;break;case 11:p.push(p.splice(p.length-r[o+1],r[o+1])),o+=2;break;case 12:p.push(e.substring(p.pop(),f)),o++;break;case 13:s.push(l),i.push(o+3+r[o+1]+r[o+2]),p[p.length-1]?(l=o+3+r[o+1],o+=3):(l=o+3+r[o+1]+r[o+2],o+=3+r[o+1]);break;case 14:s.push(l),i.push(o+3+r[o+1]+r[o+2]),p[p.length-1]===a?(l=o+3+r[o+1],o+=3):(l=o+3+r[o+1]+r[o+2],o+=3+r[o+1]);break;case 15:s.push(l),i.push(o+3+r[o+1]+r[o+2]),p[p.length-1]!==a?(l=o+3+r[o+1],o+=3):(l=o+3+r[o+1]+r[o+2],o+=3+r[o+1]);break;case 16:p[p.length-1]!==a?(s.push(l),i.push(o),l=o+2+r[o+1],o+=2):o+=2+r[o+1];break;case 17:s.push(l),i.push(o+3+r[o+1]+r[o+2]),e.length>f?(l=o+3+r[o+1],o+=3):(l=o+3+r[o+1]+r[o+2],o+=3+r[o+1]);break;case 18:s.push(l),i.push(o+4+r[o+2]+r[o+3]),e.substr(f,u[r[o+1]].length)===u[r[o+1]]?(l=o+4+r[o+2],o+=4):(l=o+4+r[o+2]+r[o+3],o+=4+r[o+2]);break;case 19:s.push(l),i.push(o+4+r[o+2]+r[o+3]),e.substr(f,u[r[o+1]].length).toLowerCase()===u[r[o+1]]?(l=o+4+r[o+2],o+=4):(l=o+4+r[o+2]+r[o+3],o+=4+r[o+2]);break;case 20:s.push(l),i.push(o+4+r[o+2]+r[o+3]),u[r[o+1]].test(e.charAt(f))?(l=o+4+r[o+2],o+=4):(l=o+4+r[o+2]+r[o+3],o+=4+r[o+2]);break;case 21:p.push(e.substr(f,r[o+1])),f+=r[o+1],o+=2;break;case 22:p.push(u[r[o+1]]),f+=u[r[o+1]].length,o+=2;break;case 23:p.push(a),0===v&&M(u[r[o+1]]),o+=2;break;case 24:p[p.length-1-r[o+1]],o+=2;break;case 25:f,o++;break;case 26:n=r.slice(o+4,o+4+r[o+3]).map((function(e){return p[p.length-1-e]})),p.splice(p.length-r[o+2],r[o+2],u[r[o+1]].apply(null,n)),o+=4+r[o+3];break;case 27:p.push(A(r[o+1])),o+=2;break;case 28:v++,o++;break;case 29:v--,o++;break;default:throw new Error("Invalid opcode: "+r[o]+".")}if(!(s.length>0))break;l=s.pop(),o=i.pop()}return m[h]={nextPos:f,result:p[0]},p[0]!==a?b.trace({type:"rule.match",rule:y[t],description:g[t],result:p[0],location:O(d,f)}):b.trace({type:"rule.fail",rule:y[t],description:g[t],location:O(d,d)}),p[0]}function P(e){return L(e)?Array.isArray(e)?e:[e]:[]}function L(e){return null!=e}function D(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",n=e.filter((function(e){return L(e)})).reduce((function(e,n){return""+e+N(n)+t}),"");return n.trim()}function j(e){return D(e,"")}function I(e){return D(e).toLowerCase()}function R(e){return e.filter((function(e){return L(e)})).reduce((function(e,t){return e.concat(t)}),[])}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"'",n=new RegExp(t+"{2}","g");return N(e).replace(n,t)}function N(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return P(e).join("")}function F(e){return N(e).trim()}function B(e){return F(e).toLowerCase()}function V(e){return Array.isArray(e)&&e.length>0&&L(e[0])}function H(e,t){return t.reduce((function(e,t){var n=r(t,4),a=(n[0],n[1]),o=(n[2],n[3]);return{type:"expression",format:"binary",variant:"operation",operation:B(a),left:e,right:o}}),e)}if(n=A(s),n!==a&&f===e.length)return n;throw n!==a&&f<e.length&&M(k()),S(h,d<e.length?e.charAt(d):null,d<e.length?O(d,d+1):O(d,d))}o(i,Error),i.buildMessage=function(e,t){var n={literal:function(e){return'"'+a(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function a(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+r(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+r(e)}))}function i(e){return n[e.type](e)}function l(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}function s(e){return e?'"'+a(e)+'"':"end of input"}return"Expected "+l(e)+" but "+s(t)+" found."},l.prototype.trace=function(e){var t=this;function n(e){function n(e,t){var n,r="";for(n=0;n<t;n++)r+=e;return r}function r(e,t){return e+n(" ",t-e.length)}"object"===("undefined"===typeof console?"undefined":a(console))&&console.log(e.location.start.line+":"+e.location.start.column+"-"+e.location.end.line+":"+e.location.end.column+" "+r(e.type,10)+" "+n(" ",t.indentLevel)+e.rule)}switch(e.type){case"rule.enter":n(e),this.indentLevel++;break;case"rule.match":this.indentLevel--,n(e);break;case"rule.fail":this.indentLevel--,n(e);break;default:throw new Error("Invalid event type: "+e.type+".")}},t.exports={SyntaxError:i,DefaultTracer:l,parse:s}},{}],3:[function(e,t,n){"use strict";function r(e,t){for(var n=e.length-1;n>=0;n-=1)if(t(e[n]))return n;return-1}function a(e,t){for(var n=e.length,r=0;r<n;r+=1)if(!t(e[r]))return e.slice(0,r);return e}Object.defineProperty(n,"__esModule",{value:!0});n.Tracer=function(){function e(){if(!(this instanceof e))return new e;this.events=[],this.indentation=0,this.whitespaceRule=/(^whitespace)|(char$)|(^[oe]$)|(^sym\_)/i,this.statementRule=/Statement$/i,this.firstNodeRule=/(Statement|Clause)$/i}return e.prototype.trace=function(e){var t,n,a=this;switch(e.indentation=this.indentation,e.type){case"rule.enter":this.events.push(e),this.indentation+=1;break;case"rule.match":this.indentation-=1;break;case"rule.fail":t=r(this.events,(function(t){var n=t.rule;return n===e.rule})),n=r(this.events,(function(e){return!a.whitespaceRule.test(e.rule)})),(a.whitespaceRule.test(e.rule)||t===n)&&this.events.splice(t,1),this.indentation-=1;break}},e.prototype.smartError=function(e){var t,n,r,o,i,l=this,s={indentation:-1},u=!1,c=0,f=this.events.filter((function(e){return null!=e.description&&!l.whitespaceRule.test(e.rule)})).reverse();return r=a(f,(function(e){if(/^(sym\_semi)$/i.test(e.rule)&&(c+=1),c>1)return!1;if(u){if(/^(stmt)$/i.test(e.rule))return u=!0,!0}else e.indentation>s.indentation?s=e:u=!0;return!0})),r.length&&(n=s.location,i=r.find((function(e){return l.firstNodeRule.test(e.description)&&e.description!==s.description&&e.indentation!==s.indentation})),o=null!=i?this.statementRule.test(s.description)&&this.statementRule.test(i.description)?i.description:s.description+" ("+i.description+")":s.description,t="Syntax error found near "+o,Object.assign(e,{message:t,location:n})),e},e}()},{}]},{},[1])(1)}))},"62b1":function(e,t,n){"use strict";var r=n("320c");function a(){return a=r||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},a.apply(this,arguments)}function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var i=n("0bca"),l=n("22af"),s=n("ab5b"),u=n("8164"),c=function(e){function t(){return e.apply(this,arguments)||this}o(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState,r=t.getDirectionMap(),a=n.getDirectionMap();if(r!==a)return!0;var o=t.getSelection().getHasFocus(),i=n.getSelection().getHasFocus();if(o!==i)return!0;var l=n.getNativelyRenderedContent(),s=t.isInCompositionMode(),u=n.isInCompositionMode();if(t===n||null!==l&&n.getCurrentContent()===l||s&&u)return!1;var c=t.getCurrentContent(),f=n.getCurrentContent(),p=t.getDecorator(),d=n.getDecorator();return s!==u||c!==f||p!==d||n.mustForceSelection()},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleMap,c=e.customStyleFn,f=e.editorState,p=e.editorKey,d=e.textDirectionality,h=f.getCurrentContent(),v=f.getSelection(),m=f.mustForceSelection(),y=f.getDecorator(),g=u(f.getDirectionMap()),b=h.getBlocksAsArray(),x=b[0],_=[],w=x;while(w){var k=w.getKey(),T={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,contentState:h,customStyleFn:c,customStyleMap:o,decorator:y,editorKey:p,editorState:f,forceSelection:m,selection:v,block:w,direction:d||g.get(k),tree:f.getBlockTree(k)},E=t.get(w.getType())||t.get("unstyled"),O=E.wrapper;_.push({block:s.createElement(i,a({key:k},T)),wrapperTemplate:O,key:k,offsetKey:l.encode(k,0,0)});var M=w.getNextSiblingKey();w=M?h.getBlockForKey(M):null}for(var S=[],C=0;C<_.length;){var A=_[C];if(A.wrapperTemplate){var P=[];do{P.push(_[C].block),C++}while(C<_.length&&_[C].wrapperTemplate===A.wrapperTemplate);var L=s.cloneElement(A.wrapperTemplate,{key:A.key+"-wrap","data-offset-key":A.offsetKey},P);S.push(L)}else S.push(A.block),C++}return s.createElement("div",{"data-contents":"true"},S)},t}(s.Component);e.exports=c},"62b9":function(e,t,n){"use strict";function r(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),a=t.getStartOffset(),o=!1;return r.some((function(e){return a===e.get("start")?(o=!0,!0):a<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return a===t&&(o=!0,!0)}))})),o}e.exports=r},"62e4":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"633c":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M12,15.5C10.07,15.5 8.5,13.93 8.5,12C8.5,10.07 10.07,8.5 12,8.5C13.93,8.5 15.5,10.07 15.5,12C15.5,13.93 13.93,15.5 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z"}))};e.exports=l},6373:function(e,t,n){"use strict";var r=n("320c");function a(){return a=r||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},a.apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var s=n("0ed8"),u=n("22af"),c=n("ab5b"),f=n("6152"),p=n("7da0"),d=n("8164"),h=function(e,t,n,r){return f({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},v=function(e){function t(){return e.apply(this,arguments)||this}l(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState,r=t.getDirectionMap(),a=n.getDirectionMap();if(r!==a)return!0;var o=t.getSelection().getHasFocus(),i=n.getSelection().getHasFocus();if(o!==i)return!0;var l=n.getNativelyRenderedContent(),s=t.isInCompositionMode(),u=n.isInCompositionMode();if(t===n||null!==l&&n.getCurrentContent()===l||s&&u)return!1;var c=t.getCurrentContent(),f=n.getCurrentContent(),p=t.getDecorator(),d=n.getDecorator();return s!==u||c!==f||p!==d||n.mustForceSelection()},n.render=function(){for(var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,i=e.customStyleMap,l=e.customStyleFn,f=e.editorState,v=e.editorKey,m=e.preventScroll,y=e.textDirectionality,g=f.getCurrentContent(),b=f.getSelection(),x=f.mustForceSelection(),_=f.getDecorator(),w=d(f.getDirectionMap()),k=g.getBlocksAsArray(),T=[],E=null,O=null,M=0;M<k.length;M++){var S=k[M],C=S.getKey(),A=S.getType(),P=n(S),L=void 0,D=void 0,j=void 0;P&&(L=P.component,D=P.props,j=P.editable);var I=y||w.get(C),R=u.encode(C,0,0),z={contentState:g,block:S,blockProps:D,blockStyleFn:r,customStyleMap:i,customStyleFn:l,decorator:_,direction:I,forceSelection:x,offsetKey:R,preventScroll:m,selection:b,tree:f.getBlockTree(C)},N=t.get(A)||t.get("unstyled"),F=N.wrapper,B=N.element||t.get("unstyled").element,V=S.getDepth(),H="";if(r&&(H=r(S)),"li"===B){var U=O!==F||null===E||V>E;H=p(H,h(A,V,U,I))}var W=L||s,q={className:H,"data-block":!0,"data-editor":v,"data-offset-key":R,key:C};void 0!==j&&(q=o({},q,{contentEditable:j,suppressContentEditableWarning:!0}));var $=c.createElement(B,q,c.createElement(W,a({},z,{key:C})));T.push({block:$,wrapperTemplate:F,key:C,offsetKey:R}),E=F?S.getDepth():null,O=F}for(var G=[],Y=0;Y<T.length;){var K=T[Y];if(K.wrapperTemplate){var X=[];do{X.push(T[Y].block),Y++}while(Y<T.length&&T[Y].wrapperTemplate===K.wrapperTemplate);var Z=c.cloneElement(K.wrapperTemplate,{key:K.key+"-wrap","data-offset-key":K.offsetKey},X);G.push(Z)}else G.push(K.block),Y++}return c.createElement("div",{"data-contents":"true"},G)},t}(c.Component);e.exports=v},"63f9":function(e,t,n){"use strict";function r(e){e._internalDrag=!0,e.setMode("drag")}e.exports=r},"642a":function(e,t,n){var r=n("966f"),a=n("3bb4"),o=n("20ec");function i(e){var t=a(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}e.exports=i},"64b3":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M19,3C20.1,3 21,3.9 21,5V19C21,20.1 20.1,21 19,21H5C3.9,21 3,20.1 3,19V5C3,3.9 3.9,3 5,3H19M18.5,18.5V13.2C18.5,11.4 17.04,9.94 15.24,9.94C14.39,9.94 13.4,10.46 12.92,11.24V10.13H10.13V18.5H12.92V13.57C12.92,12.8 13.54,12.17 14.31,12.17C15.08,12.17 15.71,12.8 15.71,13.57V18.5H18.5M6.88,8.56C7.81,8.56 8.56,7.81 8.56,6.88C8.56,5.95 7.81,5.19 6.88,5.19C5.95,5.19 5.19,5.95 5.19,6.88C5.19,7.81 5.95,8.56 6.88,8.56M8.27,18.5V10.13H5.5V18.5H8.27Z"}))};e.exports=l},"64ed":function(e,t,n){"use strict";function r(e){return!0===e.visible}function a(e){var t=e[0].trace;return!0===t.visible&&0!==t._length}function o(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}e.exports=function(e){for(var t=o(e)?a:r,n=[],i=0;i<e.length;i++){var l=e[i];t(l)&&n.push(l)}return n}},6504:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactColor=void 0;var r=n("ab5b"),a=c(r),o=n("fc55"),i=c(o),l=n("a7cc"),s=c(l),u=n("4ccf");function c(e){return e&&e.__esModule?e:{default:e}}var f=t.CompactColor=function(e){var t=e.color,n=e.onClick,r=void 0===n?function(){}:n,o=e.onSwatchHover,l=e.active,c=(0,i.default)({default:{color:{background:t,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:s.default.getContrastingColor(t),borderRadius:"50%",opacity:"0"}},active:{dot:{opacity:"1"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},dot:{background:"#000"}},transparent:{dot:{background:"#000"}}},{active:l,"color-#FFFFFF":"#FFFFFF"===t,transparent:"transparent"===t});return a.default.createElement(u.Swatch,{style:c.color,color:t,onClick:r,onHover:o,focusStyle:{boxShadow:"0 0 4px "+t}},a.default.createElement("div",{style:c.dot}))};t.default=f},6547:function(e,t,n){var r=n("a691"),a=n("1d80"),o=function(e){return function(t,n){var o,i,l=String(a(t)),s=r(n),u=l.length;return s<0||s>=u?e?"":void 0:(o=l.charCodeAt(s),o<55296||o>56319||s+1===u||(i=l.charCodeAt(s+1))<56320||i>57343?e?l.charAt(s):o:e?l.slice(s,s+2):i-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},6566:function(e,t,n){"use strict";var r=n("9bf2").f,a=n("7c73"),o=n("e2cc"),i=n("0366"),l=n("19aa"),s=n("2266"),u=n("7dd0"),c=n("2626"),f=n("83ab"),p=n("f183").fastKey,d=n("69f3"),h=d.set,v=d.getterFor;e.exports={getConstructor:function(e,t,n,u){var c=e((function(e,r){l(e,c,t),h(e,{type:t,index:a(null),first:void 0,last:void 0,size:0}),f||(e.size=0),void 0!=r&&s(r,e[u],e,n)})),d=v(t),m=function(e,t,n){var r,a,o=d(e),i=y(e,t);return i?i.value=n:(o.last=i={index:a=p(t,!0),key:t,value:n,previous:r=o.last,next:void 0,removed:!1},o.first||(o.first=i),r&&(r.next=i),f?o.size++:e.size++,"F"!==a&&(o.index[a]=i)),e},y=function(e,t){var n,r=d(e),a=p(t);if("F"!==a)return r.index[a];for(n=r.first;n;n=n.next)if(n.key==t)return n};return o(c.prototype,{clear:function(){var e=this,t=d(e),n=t.index,r=t.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete n[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:e.size=0},delete:function(e){var t=this,n=d(t),r=y(t,e);if(r){var a=r.next,o=r.previous;delete n.index[r.index],r.removed=!0,o&&(o.next=a),a&&(a.previous=o),n.first==r&&(n.first=a),n.last==r&&(n.last=o),f?n.size--:t.size--}return!!r},forEach:function(e){var t,n=d(this),r=i(e,arguments.length>1?arguments[1]:void 0,3);while(t=t?t.next:n.first){r(t.value,t.key,this);while(t&&t.removed)t=t.previous}},has:function(e){return!!y(this,e)}}),o(c.prototype,n?{get:function(e){var t=y(this,e);return t&&t.value},set:function(e,t){return m(this,0===e?0:e,t)}}:{add:function(e){return m(this,e=0===e?0:e,e)}}),f&&r(c.prototype,"size",{get:function(){return d(this).size}}),c},setStrong:function(e,t,n){var r=t+" Iterator",a=v(t),o=v(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:a(e),kind:t,last:void 0})}),(function(){var e=o(this),t=e.kind,n=e.last;while(n&&n.removed)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),c(t)}}},"656b":function(e,t,n){var r=n("e2e4"),a=n("f4d6");function o(e,t){t=r(t,e);var n=0,o=t.length;while(null!=e&&n<o)e=e[a(t[n++])];return n&&n==o?e:void 0}e.exports=o},"65ee":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M5.375 11.875C5.25 11.187 4.812 11 4.25 11H0v.188c2.875.75 5.25 2.313 6.313 5.25zm1.188 6l-.25-1.438c-.563-1.438-1.875-2.813-3.375-3.375L5.001 21h2.75l4.125-10H9.063zM13.875 21L15.5 11h-2.625L11.25 21zm7.063-10.187c-2.563 0-4.375 1.375-4.375 3.313 0 1.438 1.313 2.25 2.25 2.75 1.063.5 1.375.813 1.375 1.25 0 .625-.813.938-1.563.938-1.063 0-1.625-.125-2.438-.5l-.313-.188-.375 2.25c.563.313 1.688.563 2.875.563 2.688 0 4.5-1.375 4.5-3.438 0-1.125-.688-2-2.188-2.75-.875-.438-1.438-.75-1.438-1.188s.5-.875 1.5-.875c.813 0 1.438.125 1.938.375l.25.125.313-2.188a6.565 6.565 0 0 0-2.313-.438zm7 .187c-.625 0-1.125.188-1.375.875L22.688 21h2.75c.438-1.188.563-1.5.563-1.5h3.313l.25 1.5h2.438l-2.063-10zm-1.25 6.5s.25-.625 1.063-2.813c0 0 .188-.625.313-.938l.188.813c.5 2.438.625 2.938.625 2.938h-2.188z"}))};t.default=u},"65f0":function(e,t,n){var r=n("861d"),a=n("e8b5"),o=n("b622"),i=o("species");e.exports=function(e,t){var n;return a(e)&&(n=e.constructor,"function"!=typeof n||n!==Array&&!a(n.prototype)?r(n)&&(n=n[i],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},"65ff":function(e,t,n){"use strict";function r(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var a=r.slice(0,n),o=r.slice(n);r=a.concat(t,o).toList()}return r}e.exports=r},6606:function(e,t,n){"use strict";var r=n("2127");function a(e,t){var n=t.ownerDocument.defaultView.getSelection(),a=n.anchorNode,o=n.anchorOffset,i=n.focusNode,l=n.focusOffset,s=n.rangeCount;return 0===s||null==a||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:r(e,t,a,o,i,l)}e.exports=a},"662f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getColumnNames=l,t.default=s;var r=o(n("ff43")),a=n("4578");function o(e){return e&&e.__esModule?e:{default:e}}var i=/src$/;function l(e,t){return e.map((function(e){var n=t.filter((function(t){return t.value===e}));return 1===n.length?n[0].columnName||n[0].label:""})).join(" - ")}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{deleteKeys:!1},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=Array.isArray(e),u=function(e,r,u){if(i.test(e)){var c=e.replace(i,""),f=n.toSrc?n.toSrc(r[e]):r[e];Array.isArray(f)||(f=[f]);var p=f.map((function(e){return n.deleteKeys&&!(e in t)&&delete r[c],t[e]}));1===f.length&&(p=p[0]),Array.isArray(p)&&(s&&null!==r.type?(null!==o&&(r.meta=r.meta||{},r.meta.columnNames=r.meta.columnNames||{},r.meta.columnNames[c]=l(f,o)),r[c]=(0,a.maybeTransposeData)(p,u,r.type)):r[c]=p)}};s?(0,r.default)(e,u,{walkArraysMatchingKeys:["data","transforms"],pathType:"nestedProperty"}):(0,r.default)(e,u,{pathType:"nestedProperty"})}},"66cb":function(e,t,n){var r;(function(a){var o=/^\s+/,i=/\s+$/,l=0,s=a.round,u=a.min,c=a.max,f=a.random;function p(e,t){if(e=e||"",t=t||{},e instanceof p)return e;if(!(this instanceof p))return new p(e,t);var n=d(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=l++}function d(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,l=!1;return"string"==typeof e&&(e=X(e)),"object"==typeof e&&(K(e.r)&&K(e.g)&&K(e.b)?(t=h(e.r,e.g,e.b),i=!0,l="%"===String(e.r).substr(-1)?"prgb":"rgb"):K(e.h)&&K(e.s)&&K(e.v)?(r=q(e.s),a=q(e.v),t=g(e.h,r,a),i=!0,l="hsv"):K(e.h)&&K(e.s)&&K(e.l)&&(r=q(e.s),o=q(e.l),t=m(e.h,r,o),i=!0,l="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=N(n),{ok:i,format:e.format||l,r:u(255,c(t.r,0)),g:u(255,c(t.g,0)),b:u(255,c(t.b,0)),a:n}}function h(e,t,n){return{r:255*F(e,255),g:255*F(t,255),b:255*F(n,255)}}function v(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r,a,o=c(e,t,n),i=u(e,t,n),l=(o+i)/2;if(o==i)r=a=0;else{var s=o-i;switch(a=l>.5?s/(2-o-i):s/(o+i),o){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4;break}r/=6}return{h:r,s:a,l:l}}function m(e,t,n){var r,a,o;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=F(e,360),t=F(t,100),n=F(n,100),0===t)r=a=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=i(s,l,e+1/3),a=i(s,l,e),o=i(s,l,e-1/3)}return{r:255*r,g:255*a,b:255*o}}function y(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r,a,o=c(e,t,n),i=u(e,t,n),l=o,s=o-i;if(a=0===o?0:s/o,o==i)r=0;else{switch(o){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4;break}r/=6}return{h:r,s:a,v:l}}function g(e,t,n){e=6*F(e,360),t=F(t,100),n=F(n,100);var r=a.floor(e),o=e-r,i=n*(1-t),l=n*(1-o*t),s=n*(1-(1-o)*t),u=r%6,c=[n,l,i,i,s,n][u],f=[s,n,n,l,i,i][u],p=[i,i,s,n,n,l][u];return{r:255*c,g:255*f,b:255*p}}function b(e,t,n,r){var a=[W(s(e).toString(16)),W(s(t).toString(16)),W(s(n).toString(16))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function x(e,t,n,r,a){var o=[W(s(e).toString(16)),W(s(t).toString(16)),W(s(n).toString(16)),W($(r))];return a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function _(e,t,n,r){var a=[W($(r)),W(s(e).toString(16)),W(s(t).toString(16)),W(s(n).toString(16))];return a.join("")}function w(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s-=t/100,n.s=B(n.s),p(n)}function k(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.s+=t/100,n.s=B(n.s),p(n)}function T(e){return p(e).desaturate(100)}function E(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l+=t/100,n.l=B(n.l),p(n)}function O(e,t){t=0===t?0:t||10;var n=p(e).toRgb();return n.r=c(0,u(255,n.r-s(-t/100*255))),n.g=c(0,u(255,n.g-s(-t/100*255))),n.b=c(0,u(255,n.b-s(-t/100*255))),p(n)}function M(e,t){t=0===t?0:t||10;var n=p(e).toHsl();return n.l-=t/100,n.l=B(n.l),p(n)}function S(e,t){var n=p(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,p(n)}function C(e){var t=p(e).toHsl();return t.h=(t.h+180)%360,p(t)}function A(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+120)%360,s:t.s,l:t.l}),p({h:(n+240)%360,s:t.s,l:t.l})]}function P(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+90)%360,s:t.s,l:t.l}),p({h:(n+180)%360,s:t.s,l:t.l}),p({h:(n+270)%360,s:t.s,l:t.l})]}function L(e){var t=p(e).toHsl(),n=t.h;return[p(e),p({h:(n+72)%360,s:t.s,l:t.l}),p({h:(n+216)%360,s:t.s,l:t.l})]}function D(e,t,n){t=t||6,n=n||30;var r=p(e).toHsl(),a=360/n,o=[p(e)];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(p(r));return o}function j(e,t){t=t||6;var n=p(e).toHsv(),r=n.h,a=n.s,o=n.v,i=[],l=1/t;while(t--)i.push(p({h:r,s:a,v:o})),o=(o+l)%1;return i}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,o,i,l=this.toRgb();return e=l.r/255,t=l.g/255,n=l.b/255,r=e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4),o=t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4),i=n<=.03928?n/12.92:a.pow((n+.055)/1.055,2.4),.2126*r+.7152*o+.0722*i},setAlpha:function(e){return this._a=N(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=y(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=y(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=v(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=v(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return x(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*F(this._r,255))+"%",g:s(100*F(this._g,255))+"%",b:s(100*F(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*F(this._r,255))+"%, "+s(100*F(this._g,255))+"%, "+s(100*F(this._b,255))+"%)":"rgba("+s(100*F(this._r,255))+"%, "+s(100*F(this._g,255))+"%, "+s(100*F(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(R[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+_(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var a=p(e);n="#"+_(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0,a=!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return a?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return p(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(E,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(M,arguments)},desaturate:function(){return this._applyModification(w,arguments)},saturate:function(){return this._applyModification(k,arguments)},greyscale:function(){return this._applyModification(T,arguments)},spin:function(){return this._applyModification(S,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(D,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(j,arguments)},splitcomplement:function(){return this._applyCombination(L,arguments)},triad:function(){return this._applyCombination(A,arguments)},tetrad:function(){return this._applyCombination(P,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:q(e[r]));e=n}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:f(),g:f(),b:f()})},p.mix=function(e,t,n){n=0===n?0:n||50;var r=p(e).toRgb(),a=p(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return p(i)},p.readability=function(e,t){var n=p(e),r=p(t);return(a.max(n.getLuminance(),r.getLuminance())+.05)/(a.min(n.getLuminance(),r.getLuminance())+.05)},p.isReadable=function(e,t,n){var r,a,o=p.readability(e,t);switch(a=!1,r=Z(n),r.level+r.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7;break}return a},p.mostReadable=function(e,t,n){var r,a,o,i,l=null,s=0;n=n||{},a=n.includeFallbackColors,o=n.level,i=n.size;for(var u=0;u<t.length;u++)r=p.readability(e,t[u]),r>s&&(s=r,l=p(t[u]));return p.isReadable(e,l,{level:o,size:i})||!a?l:(n.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],n))};var I=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},R=p.hexNames=z(I);function z(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function N(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function F(e,t){H(e)&&(e="100%");var n=U(e);return e=u(t,c(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function B(e){return u(1,c(0,e))}function V(e){return parseInt(e,16)}function H(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function U(e){return"string"===typeof e&&-1!=e.indexOf("%")}function W(e){return 1==e.length?"0"+e:""+e}function q(e){return e<=1&&(e=100*e+"%"),e}function $(e){return a.round(255*parseFloat(e)).toString(16)}function G(e){return V(e)/255}var Y=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function K(e){return!!Y.CSS_UNIT.exec(e)}function X(e){e=e.replace(o,"").replace(i,"").toLowerCase();var t,n=!1;if(I[e])e=I[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=Y.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Y.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Y.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Y.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Y.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Y.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Y.hex8.exec(e))?{r:V(t[1]),g:V(t[2]),b:V(t[3]),a:G(t[4]),format:n?"name":"hex8"}:(t=Y.hex6.exec(e))?{r:V(t[1]),g:V(t[2]),b:V(t[3]),format:n?"name":"hex"}:(t=Y.hex4.exec(e))?{r:V(t[1]+""+t[1]),g:V(t[2]+""+t[2]),b:V(t[3]+""+t[3]),a:G(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=Y.hex3.exec(e))&&{r:V(t[1]+""+t[1]),g:V(t[2]+""+t[2]),b:V(t[3]+""+t[3]),format:n?"name":"hex"}}function Z(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}e.exports?e.exports=p:(r=function(){return p}.call(t,n,t,e),void 0===r||(e.exports=r))})(Math)},6747:function(e,t){var n=Array.isArray;e.exports=n},6754:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("ab5b")),a=i(n("d7bc")),o=i(n("cb36"));function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(){return c=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},c.apply(this,arguments)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var _=function(e){h(n,e);var t=m(n);function n(e,r){var a;return f(this,n),a=t.call(this,e,r),a.state={content:""},a.validFiletypes={image:"image/jpeg, image/jpg, image/svg, image/png, image/gif, image/bmp, image/webp",geojson:"application/json"},a.onDrop=a.onDrop.bind(g(a)),a.parsingError=a.parsingError.bind(g(a)),a.renderSuccess=a.renderSuccess.bind(g(a)),a}return d(n,[{key:"renderSuccess",value:function(e){var t=this.context.localize;return"image"===this.props.fileType?r.default.createElement("div",{className:"dropzone-container__image",style:{backgroundImage:"url(".concat(e,")")}}):"geojson"===this.props.fileType?r.default.createElement("div",{className:"dropzone-container__message"},r.default.createElement("p",null,t("GeoJSON loaded!")),r.default.createElement("p",null,e.features.length+t(" features detected."))):r.default.createElement("div",{className:"dropzone-container__message"},t("File loaded!"))}},{key:"componentWillMount",value:function(){var e=this.context.localize;this.props.value&&""!==this.props.value?this.setState({content:this.renderSuccess(this.props.value)}):this.setState({content:r.default.createElement("div",{className:"dropzone-container__message"},r.default.createElement("p",null,e("Drop the ")+this.props.fileType+e(" to upload here or click to choose a file from your computer.")),this.validFiletypes[this.props.fileType]?r.default.createElement("p",null,e("Supported formats are: ")+this.validFiletypes[this.props.fileType].split("image/").join("")+"."):null)})}},{key:"parsingError",value:function(){var e=this.context.localize,t="image"===this.props.fileType?this.validFiletypes[this.props.fileType].split("image/").join(""):this.validFiletypes[this.props.fileType];return r.default.createElement("div",{className:"dropzone-container__message"},e("Yikes! This doesn't look like a valid ")+this.props.fileType,r.default.createElement("p",null,e("Try again with a supported file format: ")+t+"."))}},{key:"onLoad",value:function(e){try{var t=e.target.result,n="image"===this.props.fileType?t:JSON.parse(t);this.props.onUpdate(n),this.setState({content:this.renderSuccess(n)})}catch(r){console.warn(r),this.setState({content:this.parsingError()})}}},{key:"onDrop",value:function(e,t){var n=this,a=this.context.localize,o=new FileReader;if(e.length){if(e.length>1)return void this.setState({content:r.default.createElement("div",{className:"dropzone-container__message"},r.default.createElement("p",null,a("Yikes! You can only upload one file at a time.")))});this.setState({content:a("Loading...")}),o.onload=function(e){return n.onLoad(e)},"image"===this.props.fileType?o.readAsDataURL(e[0]):"geojson"===this.props.fileType&&o.readAsText(e[0])}t.length&&this.setState({content:this.parsingError()})}},{key:"render",value:function(){var e=this;return r.default.createElement(o.default,{accept:this.validFiletypes[this.props.fileType],onDrop:this.onDrop,activeClassName:"dropzone-container--active",rejectClassName:"dropzone-container--rejected"},(function(t){var n=t.getRootProps,a=t.getInputProps;return r.default.createElement("div",c({},n(),{className:"dropzone-container"}),r.default.createElement("input",a()),r.default.createElement("div",{className:"dropzone-container__content"},e.state.content))}))}}]),n}(r.Component);_.propTypes={fileType:a.default.string.isRequired,onUpdate:a.default.func,value:a.default.any},_.contextTypes={localize:a.default.func};var w=_;t.default=w},6779:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M3,22V8H7V22H3M10,22V2H14V22H10M17,22V14H21V22H17Z"}))};e.exports=l},"67b9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=i;var r,a=250;function o(){window.clearTimeout(r),r=null}function i(e,t){r&&o(),r=window.setTimeout((function(){e.apply(null,t),r=null}),a)}},"67ca":function(e,t,n){var r=n("cb5a");function a(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}e.exports=a},"67db":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=function(){function e(e){r(this,"_uri",void 0),this._uri=e}var t=e.prototype;return t.toString=function(){return this._uri},e}();e.exports=a},"681d":function(e,t,n){"use strict";var r=n("1b23");function a(e){return!(!e||!e.ownerDocument)&&(r(e)&&"BR"===e.nodeName)}e.exports=a},"683f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M14.688 22.688L0 17.313v9.375h32v-5.375l-8-3.938zM24 8l-9.313 5.375L-.001 5.312v9.313L14.687 20 24 14.687l8 4v-6.75z"}))};t.default=u},"685e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M7 20h8v20H7z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M32 28h8v12h-8zM15 16h9v24h-9z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M24 20h8v20h-8z"}))};t.default=u},"691e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Section=void 0;var r=s(n("ab5b")),a=i(n("d7bc")),o=n("4578");function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){d(n,e);var t=v(n);function n(){var e;return c(this,n),e=t.call(this),e.sectionVisible=!0,e}return p(n,[{key:"render",value:function(){return this.sectionVisible?r.default.createElement("div",{className:"section"},this.props.name?r.default.createElement("div",{className:"section__heading"},r.default.createElement("div",{className:"section__heading__text"},this.props.name)):null,this.props.children):null}}]),n}(r.Component);t.Section=x,x.plotly_editor_traits={no_visibility_forcing:!1},x.propTypes={children:a.default.node,name:a.default.string,attr:a.default.string};var _=function(e){d(n,e);var t=v(n);function n(e,r){var a;return c(this,n),a=t.call(this,e,r),a.determineVisibility(e,r),a}return p(n,[{key:"componentWillReceiveProps",value:function(e,t){this.determineVisibility(e,t)}},{key:"determineVisibility",value:function(e,t){var n=this,a=(0,o.unpackPlotProps)(e,t),i=a.isVisible;this.sectionVisible=(0,o.isVisibleGivenCustomConfig)(i,e,t),r.default.Children.forEach(e.children,(function(e){if(e&&!n.sectionVisible){if(e.props.attr){var r=(0,o.unpackPlotProps)(e.props,t);return e.type.modifyPlotProps&&e.type.modifyPlotProps(e.props,t,r),void(n.sectionVisible=(0,o.isVisibleGivenCustomConfig)(n.sectionVisible||r.isVisible,e.props,t,e.type&&e.type.displayName?e.type.displayName:null))}(e.type.plotly_editor_traits||{}).no_visibility_forcing||(n.sectionVisible=!0)}}))}}]),n}(x);t.default=_,_.plotly_editor_traits={no_visibility_forcing:!0},_.contextTypes=o.containerConnectedContextTypes},"69a4":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M16,20H20V16H16M16,14H20V10H16M10,8H14V4H10M16,8H20V4H16M10,14H14V10H10M4,14H8V10H4M4,20H8V16H4M10,20H14V16H10M4,8H8V4H4V8Z"}))};e.exports=l},"69b9":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var r=u(n("ab5b")),a=l(n("d7bc")),o=n("4578"),i=n("e419");function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return c="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},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function _(e){var t=function(t){h(a,t);var n=m(a);function a(e,t){var r;return f(this,a),r=n.call(this,e,t),r.deleteMapboxLayer=r.deleteMapboxLayer.bind(g(r)),r.updateMapboxLayer=r.updateMapboxLayer.bind(g(r)),r.moveMapboxLayer=r.moveMapboxLayer.bind(g(r)),r.setLocals(e,t),r}return d(a,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.mapboxLayerIndex,r=t.container,a=t.fullContainer,o=r.layers||[],i=a.layers||[];this.container=o[n],this.fullContainer=i[n]}},{key:"getChildContext",value:function(){var e=this;return{getValObject:function(t){return e.context.getValObject?e.context.getValObject("layers[].".concat(t)):null},updateContainer:this.updateMapboxLayer,deleteContainer:this.deleteMapboxLayer,moveContainer:this.moveMapboxLayer,container:this.container,fullContainer:this.fullContainer}}},{key:"updateMapboxLayer",value:function(e){var t={},n=this.props.mapboxLayerIndex;for(var r in e){var a="layers[".concat(n,"].").concat(r);t[a]=e[r]}this.context.updateContainer(t)}},{key:"deleteMapboxLayer",value:function(){this.context.onUpdate&&this.context.onUpdate({type:i.EDITOR_ACTIONS.DELETE_MAPBOXLAYER,payload:{mapboxId:this.context.fullContainer._subplot.id,mapboxLayerIndex:this.props.mapboxLayerIndex}})}},{key:"moveMapboxLayer",value:function(e){if(this.context.onUpdate){var t=this.props.mapboxLayerIndex,n="up"===e?t-1:t+1;this.context.onUpdate({type:i.EDITOR_ACTIONS.MOVE_TO,payload:{fromIndex:t,toIndex:n,mapboxId:this.context.fullContainer._subplot.id,path:"layout.mapbox.layers"}})}}},{key:"render",value:function(){return r.default.createElement(e,this.props)}}]),a}(r.Component);t.displayName="MapboxLayerConnected".concat((0,o.getDisplayName)(e)),t.propTypes={mapboxLayerIndex:a.default.number.isRequired},t.contextTypes={container:a.default.object,fullContainer:a.default.object,data:a.default.array,onUpdate:a.default.func,updateContainer:a.default.func,getValObject:a.default.func},t.childContextTypes={updateContainer:a.default.func,deleteContainer:a.default.func,moveContainer:a.default.func,container:a.default.object,fullContainer:a.default.object,getValObject:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},"69d1":function(e,t,n){"use strict";e.exports=function(e){var t=e.editType,n=e.colorEditType;void 0===n&&(n=t);var r={family:{valType:"string",role:"style",noBlank:!0,strict:!0,editType:t,description:["HTML font family - the typeface that will be applied by the web browser.","The web browser will only be able to apply a font if it is available on the system","which it operates. Provide multiple font families, separated by commas, to indicate","the preference in which to apply fonts if they aren't available on the system.","The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server,","where only a select number of","fonts are installed and supported.","These include *Arial*, *Balto*, *Courier New*, *Droid Sans*,, *Droid Serif*,","*Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*,","*PT Sans Narrow*, *Raleway*, *Times New Roman*."].join(" ")},size:{valType:"number",role:"style",min:1,editType:t},color:{valType:"color",role:"style",editType:n},editType:t,description:""+(e.description||"")};return e.arrayOk&&(r.family.arrayOk=!0,r.size.arrayOk=!0,r.color.arrayOk=!0),r}},"69d5":function(e,t,n){var r=n("cb5a"),a=Array.prototype,o=a.splice;function i(e){var t=this.__data__,n=r(t,e);if(n<0)return!1;var a=t.length-1;return n==a?t.pop():o.call(t,n,1),--this.size,!0}e.exports=i},"69f3":function(e,t,n){var r,a,o,i=n("7f9a"),l=n("da84"),s=n("861d"),u=n("9112"),c=n("5135"),f=n("f772"),p=n("d012"),d=l.WeakMap,h=function(e){return o(e)?a(e):r(e,{})},v=function(e){return function(t){var n;if(!s(t)||(n=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}};if(i){var m=new d,y=m.get,g=m.has,b=m.set;r=function(e,t){return b.call(m,e,t),t},a=function(e){return y.call(m,e)||{}},o=function(e){return g.call(m,e)}}else{var x=f("state");p[x]=!0,r=function(e,t){return u(e,x,t),t},a=function(e){return c(e,x)?e[x]:{}},o=function(e){return c(e,x)}}e.exports={set:r,get:a,has:o,enforce:h,getterFor:v}},"6a30":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M16 0L1.312 8v16L16 32l14.688-8V8zM4 11.313l4 2v4.125l-4-2.25zm19.063-.25l-4.688-2.375 4.188-2 4.5 2.5zm-2.25 1.187L16 14.688l-4.813-2.438L16 9.875zM8.938 11.063l-4-2 4.5-2.375 4.188 2zm1.75 3.625l4 2v4.5l-4-2.25zm4 9.437v4l-4-2.125v-4.125zm2.625 0l4-2.25V26l-4 2.125zm0-2.937v-4.5l4-2v4.25zM24 13.313l4-2v3.875l-4 2.25zm-3.75-8L16 7.438l-4.25-2.125L16 3.063zM4 18.25l4 2.313v4.125l-4-2.125zm20 6.438v-4.125l4-2.313v4.125z"}))};t.default=u},"6a4d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M29.313 0H2.688A2.668 2.668 0 0 0 0 2.688v26.625c0 1.5 1.188 2.688 2.688 2.688h26.625c1.5 0 2.688-1.188 2.688-2.688V2.688c0-1.5-1.188-2.688-2.688-2.688zM18.125 2.938c.125.125.25.125.438.125h.375c0 .125 0 .125-.125.25h-.125l-.125.125s0 .188-.188.188h.313v-.313-.125c-.125-.125-.125-.125-.313 0-.125.125-.125.125-.25 0 0 0 0-.125-.125-.125 0-.125-.125-.125-.125-.125l-.25-.125-.188-.125h-.125H18c.125.125.125.125.125.25zm-.812.125v.375l-.125.188c-.125.125-.125 0-.125-.188v-.25h-.25-.125s-.125.125 0 .125.125.125.125.313h-1.376v-.188h.188c.25 0 .375 0 .5-.125.125-.375-.125-.375-.25-.375s-.125 0-.25-.125l-.188-.125h1.75c0 .125.125.25.125.375zm-4.375 0c.125 0 .125.125.25.125 0 0 0 .25-.125.125s-.375-.125-.5-.125c-.188-.125-.313-.125-.438-.125h-.688c-.125 0-.125.125-.25.125v-.25h-.125s-.125 0-.125.125c-.125-.125-.25-.125-.375-.125h-.938s0 .125-.188.125c0 .125-.125.25-.25 0h-.625c-.188 0-.438-.125-.563-.25-.25 0-.563.125-.813.125-.125 0-.25-.125-.5-.125h-.813-.125c-.125 0-.125-.125-.313-.125h6c.313.125.438.125.563.25.125 0 .375 0 .563-.125v-.125h.125zM12 8c-.125 0-.125-.125-.125-.25s-.125-.125-.25-.125h-.188v-.188l.188.188c.125 0 .25 0 .375.125V8zM2.688 2.688h2.75s0 .125-.125.125-.25.125-.375.125-.25.125-.563.125H4s-.125.125-.125.25.125.313.25.313.25 0 .438.125c.125 0 .25.125.25.25.125 0 .125.125 0 .125-.25-.125-.438-.125-.563-.25l-.125-.125L4 3.876c-.25 0-.375.125-.563.125 0 .125.188.25.313.25.125.125.25.125.375.125h.563s0 .313-.313.313c-.125 0-.375 0-.5.125 0 .125-.125.125-.125.25.125.125.25.375.25.563 0 .125.125 0 .25 0 0 0 .125 0 .125-.188 0-.125.313-.125.188.188 0 .125 0 .25.125.25 0-.125.125-.25.125-.25l.25.25s.125-.125.125 0 0 0-.125.125-.375.125-.5.25h-.188c-.125 0-.125.125-.25.125s-.125.313 0 .313c.25 0 .563-.125.813-.313.125 0 .125.188.375 0l.125-.125c.188-.125.313-.125.313-.25.125.125.125.125.25.125h.125c.125 0 .125-.125.25-.125v-.125h-.25c.125 0 .125-.125.25-.25v-.188c0-.125.188-.125.188-.125.125 0 .125 0 0 .313-.188.25.125-.188.25-.188h.375c0-.125 0-.125.125-.125 0-.125 0-.125.125-.25.188.125.313.125.438.125s.25 0 .375.125c.125 0 .688.125.813.125.25 0 .375.188.375.438s.188.25.188.25c.125 0 .25.125.375.25 0 .188 0 .438.125.563s.25.125.438.25v-.125c0-.125 0-.125-.188-.125v-.125c0-.125.188-.125.188 0 0-.125.125 0 .25.125s.125.25.125.25 0 .438.125.438.25.125.375.25c0 0 .188.125.188.25s.125.25.125.438v.75c0 .313.125.563.25.813 0 .25 0 .563.125.688s.25.125.563.125c.125 0 .25.125.375.375 0 .438.125.563.25.813.125 0 .313.125.125.25-.125.188-.125.313 0 .313.188 0 .188-.125.313.125.125.125.125.25.25.375 0 .125.125.125.125.125.125 0 .125.313.438.313v-.188c-.188-.125-.188-.125-.313-.25 0-.125-.125-.25-.125-.25 0-.125-.125-.25-.125-.25h-.125c-.125-.125-.125-.313-.25-.438l-.188-.125s-.125-.125 0-.25c.188-.125.188.125.313.25.125.25.375.563.5.688.125.25.313.375.563.625.125.188.25.188.25.313s.125.25.125.25c0 .125 0 .25.125.375a.77.77 0 0 1 .688.438c0 .125.125.375.25.375h.438s.125.125.25 0c0-.125.125-.125.25-.125s.25.125.25.25c.188.125.313.313.438.313s.25.125.25.125c.125 0 .125 0 .25.125.188.125.313.25.188.375 0 .125.125.313.25.313.125.125.25.125.25.25.125 0 .25.125.25.125s.125.125.313.125l.125-.125v-.125h.25c.125.125.125.25.125.375.125.125.125.438.125.563s0 .25-.125.375-.25.125-.25.25c-.125.188-.25.313-.25.438v.5c-.188.125-.188.313-.188.563s.438.25.438.375.25.688.25.813c.125.25.125.375.125.688.125.25.313.375.563.375.125 0 .25.125.25.25.125.188.25.188.25.313s.125.25 0 .375c0 0 0 .688-.125.938v.813c-.125.125-.25.125-.125.25s.375.25.375.25c0 .125.188.313 0 .563 0 .125-.125.25-.125.375-.125.125-.125.313-.125.438s-.125.125-.125.25.125.125.125.25-.125.25-.125.438c0 .125 0 .25.125.375 0 .125-.125.25-.125.375-.125.188-.125.313-.125.313 0 .125.125.125.125.25 0 0 0 .125-.125.25H2.696zm26.625 26.625h-6.625v-.125-.25h-.313v-.125l.188-.125.125-.125c.125-.188.125-.313.25-.313 0 0 .125-.125.125-.25s0 0-.125 0-.125-.125-.125-.25c.125 0 .25 0 .375.125h.125v-.25-.188-.125h.688c.125 0 .125-.125.125-.25l.125-.125s.125-.125 0-.25h-.25l-.125-.125v-.188c0-.125 0-.25.125-.375 0 .25 0 .375.25.563.125.125.438 0 .563-.188l.125-.125c.125-.125.25-.25.25-.375v-.25s0-.188.125-.188l.125-.125c0-.125.188-.125.313-.25v-.25-.25l.125-.188.25-.125c.125 0 .125-.125.25-.125.188 0 .313 0 .438-.125 0-.125.125-.25.125-.375l.125-.188.125-.125c.125-.125.125-.25.125-.25v-.25c0-.125 0-.25.125-.25v-.313c0-.125 0-.25.188-.25l.625-.813c.125-.125.125-.25.313-.375l.125-.25c0-.188.125-.313.125-.438s0-.125-.125-.25c0-.125-.125-.125-.313-.25-.125 0-.25 0-.25-.188 0 0-.125 0-.125-.125l-.125-.125c-.125-.125-.25-.125-.25-.125h-.438l-.375-.25c-.125-.125-.25-.125-.438-.125-.125 0-.125-.125-.25.125 0 .125-.125.125-.125.25h-.25-.125l.125-.125v-.25-.313c0 .188-.125.188-.313.313-.25 0-.25-.125-.125-.125s.313-.188.438-.188.125-.125.125-.125c0-.125 0-.125-.125-.25s-.125-.25-.313-.375l-.25-.438c-.125-.125-.25-.25-.5-.25-.125 0-.313.25-.438 0v-.125l-.25-.25h-.25s-.313 0-.125-.188v-.125-.25-.125c0 .125-.188.125-.313.25l-.25-.25h-.25s-.125 0-.125.125v.125s0-.125-.125-.125c-.188-.125-.313-.125-.438 0 0 0-.125 0-.125-.125s-.125-.125-.125-.25h-.125c-.125 0-.125.125-.125.25s-.188.25-.188.375v-.125-.25c0-.125.188-.25 0-.25h-.125l.125.375h-.125c-.125.125-.25.125-.25.25s-.125.313-.25.313h-.125c0-.188-.125-.188-.125-.188h-.313-.125l-.25.188c-.125.125-.25 0-.438 0 0-.188-.125-.188-.125-.313v-.125-.25-.438c0-.125 0-.125-.125-.25 0-.125-.125-.125-.25-.125s-.25.125-.25.125h-.313c-.125 0 0 0 0-.125v-.125-.25c0-.125 0-.125.188-.313.125-.125.125-.25.125-.375 0 0 0-.125-.125-.125h-.563a.269.269 0 0 0-.25.25v.125c0 .125 0 .313-.125.313-.188-.188-.313-.188-.313 0 0 .125 0 0-.25-.188h-.125c-.125-.125-.25-.25-.25-.375v-.125-.438-.25-.375s0-.125.125-.125l.125-.313c.125 0 .125-.125.25-.25h.438c.125 0 .25 0 .375.125h.25v-.125s.125-.125.313-.125c.125 0 .375-.125.5-.125 0 0 .125.25.25.25.125-.125.125-.25.125 0s.188.438.313.688c0 .125.125.25.25.25.125-.125.125-.125.125-.25v-.25c0-.188-.125-.313-.125-.438 0 0 0-.125-.125-.125v-.125c0-.125.125-.25.125-.25.125-.188.125-.188.25-.313s.125-.25.313-.25c.125-.125.375-.125.25-.25s-.125-.25-.125-.563c0-.125.125-.125.125 0s.25-.125.125-.25v-.125h.125v-.125c0-.125.125-.125.25-.125h.563v-.188c0-.125-.125-.125-.125-.25v-.125c0-.125.125-.25.25-.25h.25l.125-.125h.188s0 .375.125.375.25-.125.25-.125l.375-.125c.125 0 .313 0 .438-.125v-.313s0-.125-.125-.125c0 0-.188 0-.188.125h-.125c0-.125 0-.25-.125-.25l-.125.125-.125-.125c.125 0 .125-.125 0-.25h-.25s-.125.125-.313.125c-.125 0-.125 0-.25.125C22 7.99 22 7.865 22 7.865c0-.125 0-.125.125-.125s.438-.125.563-.125c.125 0 .25 0 .25.125v.375s.375-.125.25-.125 0 0 0-.125l.125-.125h.438l.125-.125c.125 0 .125.125 0 .25s-.125.25-.25.5c-.188.188 0 .188.125.188h.375c.125 0 .125 0 .25.125h.563v-.125l-.125-.313v-.5-.125h-.125v-.188c-.125 0-.125.188-.125 0 .125-.125.125-.125.125-.25s.125-.125.125-.25v-.125a.269.269 0 0 1-.25-.25c0-.188-.188-.188-.313-.313h-.5c0-.125 0-.125-.125-.25 0 0 0-.125-.188-.125l-.125-.125-.25-.438v-.125s-.125 0-.25.25l-.125.188h-.125c-.188 0-.313-.188-.438-.313v-.125l.125-.125c-.125-.125-.25-.125-.375-.125-.125-.125-.25-.125-.563-.25h-.625c-.125.125-.125.25-.125.25v.25h-.188v.125c.188.125.313.313.313.438s0 .125-.125.25c-.188.25-.313.25-.438.25h-.125c.125.125.125.125.125.313v.5h-.25c-.125 0-.125-.125-.125-.125v-.25l-.125.125v-.25-.188c0-.125-.188-.25-.313-.25 0-.125-.125-.125-.25-.125h-.5c-.188 0-.313-.125-.438-.25h-.25-.25c0-.125 0-.125-.188-.313-.125 0 0-.125-.125-.25v-.25l.313-.125.25-.125c0-.125.125-.313.25-.313.25 0 .438.188.438.188v-.188-.25c0 .125.25.125.125.25-.125.188 0 .188 0 .188.125 0 .25-.188.25-.188s.25-.125.25 0c0 .188 0 .313.125.313s.313-.125.125-.313c-.125-.125-.25-.125-.25-.25l.25-.125h-.125-.125-.125s0-.125.125-.125h.563c.125 0 .125 0 .25-.125l.125-.125c0-.188-.125-.188-.125-.188l.125-.125h.438v-.125c.125 0 0 .25.125.125h.25c0 .125 0 .313-.125.313h-.125s-.125.125 0 .125h.25c0-.125.125-.125.125-.313h.125s.25.188.125.188l-.125.125c-.125 0-.125.125-.125.125v.125h-.25-.125-.125v.375s.125 0 .25-.125h.5c.125 0 .313.125.313.125.125 0 .125.188.25.188H22c.125 0 .125.125.125.125h.25v-.125h.188c.125.125.125.125.25.125v-.125c0-.188 0-.188-.125-.313s-.313-.125-.438-.25v-.125c.125 0 .313 0 .438.125s.25.125.25.125l.125-.125h.125l.438-.25h-.188c-.125 0-.25 0-.25-.125-.125-.188-.25-.188-.375-.313 0 0-.25.125-.25 0v-.25c0-.125 0-.125-.188-.25l-.625-.125h7.563zM19.875 8.375c0-.125-.125.313 0 .438 0 .125 0 .125-.125.25h-.125s-.188-.125-.188-.25v-.125c0-.125 0-.313-.125-.313h-.125c-.125 0-.125.188-.25.313v.625c-.125 0-.25-.125-.25-.375v-.125-.438c.125-.125.25-.125.375-.25.125 0 .375.125.375.125h.438c.125.125.25.313.25.438-.125 0-.25-.125-.25-.313zm.375.438c.313-.125.438-.125.563-.125.125.125-.125.125-.125.25-.125 0-.125.125-.313.125l-.25.125H20v.125c-.125.125-.25.125-.25.125l.25-.125v-.125zM19.063 8h-.375s-.125 0-.125-.125c-.188 0-.313 0-.313.125H18v-.125l.25-.125c.125-.125.313-.313.563-.313.125.188.25.313.375.313 0 0 0 .25-.125.25z"}))};t.default=u},"6a79":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M7,10L12,15L17,10H7Z"}))};e.exports=l},"6aa6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 1360 1360"},e),o.default.createElement("path",{fill:"#119DFF",d:"M1247.981 867.856l-551.37-255.077a40.776 40.776 0 0 0-34.201 0L111.045 867.856a40.731 40.731 0 0 0-.267 73.819l551.362 259.917a40.777 40.777 0 0 0 17.374 3.887 40.722 40.722 0 0 0 17.363-3.887l551.37-259.917a40.754 40.754 0 0 0 23.37-36.994 40.74 40.74 0 0 0-23.636-36.825z"}),o.default.createElement("linearGradient",{id:"a",gradientUnits:"userSpaceOnUse",x1:"730.859",y1:"916.448",x2:"860.664",y2:"991.391"},o.default.createElement("stop",{offset:"0",stopColor:"#119dff"}),o.default.createElement("stop",{offset:".462",stopColor:"#09ffff"})),o.default.createElement("path",{fill:"url(#a)",d:"M763.471 859.964c39.777-20.916 73.551.519 91.382 18.35 17.828 17.828 39.952 52.288 18.342 91.374l-160.126 50.409 50.402-160.133z"}),o.default.createElement("linearGradient",{id:"b",gradientUnits:"userSpaceOnUse",x1:"730.856",y1:"617",x2:"860.663",y2:"691.945"},o.default.createElement("stop",{offset:"0",stopColor:"#119dff"}),o.default.createElement("stop",{offset:".462",stopColor:"#09ffff"})),o.default.createElement("path",{fill:"url(#b)",d:"M763.463 560.523c39.779-20.916 73.559.512 91.39 18.342 17.828 17.828 39.944 52.296 18.337 91.382l-160.121 50.404 50.394-160.128z"}),o.default.createElement("linearGradient",{id:"c",gradientUnits:"userSpaceOnUse",x1:"1020.848",y1:"750.898",x2:"1150.659",y2:"825.844"},o.default.createElement("stop",{offset:"0",stopColor:"#119dff"}),o.default.createElement("stop",{offset:".462",stopColor:"#09ffff"})),o.default.createElement("path",{fill:"url(#c)",d:"M1053.46 694.414c39.774-20.921 73.549.514 91.382 18.35 17.828 17.83 39.952 52.286 18.348 91.379l-160.131 50.406 50.401-160.135z"}),o.default.createElement("linearGradient",{id:"d",gradientUnits:"userSpaceOnUse",x1:"1106.724",y1:"555.481",x2:"1031.777",y2:"425.669"},o.default.createElement("stop",{offset:".237",stopColor:"#119dff"}),o.default.createElement("stop",{offset:".989",stopColor:"#09ffff"})),o.default.createElement("path",{fill:"url(#d)",d:"M1053.452 413.156c39.775-20.916 73.552.512 91.385 18.345 17.831 17.833 39.944 52.296 18.345 91.384l-160.126 50.402 50.396-160.131z"}),o.default.createElement("linearGradient",{id:"e",gradientUnits:"userSpaceOnUse",x1:"426.62",y1:"677.754",x2:"556.428",y2:"752.698"},o.default.createElement("stop",{offset:"0",stopColor:"#119dff"}),o.default.createElement("stop",{offset:".462",stopColor:"#09ffff"})),o.default.createElement("path",{fill:"url(#e)",d:"M459.229 621.274c39.775-20.918 73.552.509 91.382 18.342 17.833 17.833 39.95 52.291 18.345 91.382l-160.131 50.404 50.404-160.128z"}),o.default.createElement("linearGradient",{id:"f",gradientUnits:"userSpaceOnUse",x1:"156.995",y1:"821.842",x2:"286.801",y2:"896.785"},o.default.createElement("stop",{offset:"0",stopColor:"#119dff"}),o.default.createElement("stop",{offset:".462",stopColor:"#09ffff"})),o.default.createElement("path",{fill:"url(#f)",d:"M189.604 765.361c39.775-20.921 73.549.51 91.382 18.343 17.828 17.828 39.942 52.286 18.342 91.382L139.2 925.49l50.404-160.129z"}),o.default.createElement("linearGradient",{id:"g",gradientUnits:"userSpaceOnUse",x1:"242.869",y1:"578.82",x2:"167.925",y2:"449.012"},o.default.createElement("stop",{offset:".237",stopColor:"#119dff"}),o.default.createElement("stop",{offset:".989",stopColor:"#09ffff"})),o.default.createElement("path",{fill:"url(#g)",d:"M189.604 436.496c39.77-20.916 73.549.512 91.382 18.345 17.828 17.828 39.939 52.291 18.342 91.382L139.2 596.626l50.404-160.13z"}),o.default.createElement("linearGradient",{id:"h",gradientUnits:"userSpaceOnUse",x1:"512.5",y1:"309.669",x2:"437.554",y2:"179.859"},o.default.createElement("stop",{offset:".237",stopColor:"#119dff"}),o.default.createElement("stop",{offset:".989",stopColor:"#09ffff"})),o.default.createElement("path",{fill:"url(#h)",d:"M459.234 167.341c39.777-20.922 73.549.514 91.38 18.347 17.833 17.833 39.955 52.285 18.35 91.381l-160.138 50.404 50.408-160.132z"}),o.default.createElement("linearGradient",{id:"i",gradientUnits:"userSpaceOnUse",x1:"816.734",y1:"445.83",x2:"741.791",y2:"316.024"},o.default.createElement("stop",{offset:".237",stopColor:"#119dff"}),o.default.createElement("stop",{offset:".989",stopColor:"#09ffff"})),o.default.createElement("path",{fill:"url(#i)",d:"M763.468 303.509c39.772-20.914 73.554.514 91.387 18.345 17.828 17.828 39.942 52.299 18.338 91.38l-160.126 50.409 50.401-160.134z"}))};t.default=u},"6b75":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("ab5b")),a=o(n("d7bc"));function o(e){return e&&e.__esModule?e:{default:e}}var i=function(e){return r.default.createElement("a",{href:"#",style:e.style},e.children)};i.propTypes={style:a.default.object.isRequired,children:a.default.oneOfType([a.default.array,a.default.element]).isRequired};var l=i;t.default=l},"6b79":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z"}))};e.exports=l},"6bd2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedVisibilitySelect=void 0;var r=p(n("ab5b")),a=c(n("d7bc")),o=n("4578"),i=n("e419"),l=c(n("5174")),s=c(n("e518")),u=c(n("7515"));function c(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(e){return d="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},d(e)}function h(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 b(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function x(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&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=E();return function(){var n,r=O(e);if(t){var a=O(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(){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}}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var M=function(e){x(n,e);var t=w(n);function n(e,r){var a;return y(this,n),a=t.call(this,e,r),a.setMode=a.setMode.bind(T(a)),a.setLocals=a.setLocals.bind(T(a)),a.setLocals(e),a}return b(n,[{key:"componentWillReceiveProps",value:function(e){this.setLocals(e)}},{key:"setLocals",value:function(e){this.mode=void 0===e.fullValue||e.fullValue===i.MULTI_VALUED_PLACEHOLDER?this.props.defaultOpt:e.fullValue}},{key:"setMode",value:function(e){this.props.updateContainer(m({},this.props.attr,e))}},{key:"render",value:function(){var e=this.props,t=e.dropdown,n=e.clearable,a=e.options,o=e.showOn,i=e.attr,l=e.label;return r.default.createElement(r.default.Fragment,null,t?r.default.createElement(u.default,{attr:i,label:l,options:a,fullValue:this.mode,updatePlot:this.setMode,clearable:n}):r.default.createElement(s.default,{attr:i,label:l,options:a,fullValue:this.mode,updatePlot:this.setMode}),Array.isArray(o)&&o.includes(this.mode)||this.mode===o?this.props.children:null)}}]),n}(r.Component);t.UnconnectedVisibilitySelect=M,M.propTypes=v({fullValue:a.default.any,updatePlot:a.default.func,dropdown:a.default.bool,clearable:a.default.bool,showOn:a.default.oneOfType([a.default.number,a.default.bool,a.default.string,a.default.array]),defaultOpt:a.default.oneOfType([a.default.number,a.default.bool,a.default.string]),label:a.default.string,attr:a.default.string},l.default.propTypes),M.contextTypes={updateContainer:a.default.func},M.displayName="UnconnectedVisibilitySelect";var S=(0,o.connectToContainer)(M);t.default=S},"6cab":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M19,19V8H5V19H19M16,1H18V3H19C20.1,3 21,3.9 21,5V19C21,20.1 20.1,21 19,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H6V1H8V3H16V1M7,10H9V12H7V10M15,10H17V12H15V10M11,14H13V16H11V14M15,14H17V16H15V14Z"}))};e.exports=l},"6cd4":function(e,t,n){var r=n("8057"),a=n("48a0"),o=n("1304"),i=n("6747");function l(e,t){var n=i(e)?r:a;return n(e,o(t))}e.exports=l},"6cd7":function(e,t,n){"use strict";var r=n("8cb4"),a=r.substr;function o(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=a(e,0,t.offset).length,o=r+a(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n}e.exports=o},"6d08":function(e,t,n){(function(t){(function(){var n,r,a,o,i,l;"undefined"!==typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!==typeof t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-i)/1e6},r=t.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},o=n(),l=1e9*t.uptime(),i=o-l):Date.now?(e.exports=function(){return Date.now()-a},a=Date.now()):(e.exports=function(){return(new Date).getTime()-a},a=(new Date).getTime())}).call(this)}).call(this,n("4362"))},"6d5b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n("ab5b")),a=u(n("d7bc")),o=n("c85e"),i=n("e688"),l=n("3366"),s=u(n("ac8b"));function u(e){return e&&e.__esModule?e:{default:e}}var c=(0,l.traceTypes)(s.default).map((function(e){var t=e.value;return t})),f=function(e,t){var n=t.localize;return r.default.createElement(o.TraceAccordion,{canGroup:!0},r.default.createElement(o.TextEditor,{label:n("Name"),attr:"name",richTextOnly:!0}),r.default.createElement(o.NumericFraction,{label:n("Trace Opacity"),attr:"opacity"}),r.default.createElement(o.TraceTypeSection,{name:n("Leaves"),traceTypes:["sunburst","treemap"],mode:"trace"},r.default.createElement(i.LevelRendered,{label:n("Start at Level"),attr:"level"}),r.default.createElement(o.Numeric,{label:n("Max Depth"),attr:"maxdepth",min:-1,step:1}),r.default.createElement(o.NumericFraction,{label:n("Opacity"),attr:"leaf.opacity"})),r.default.createElement(o.PlotlySection,{name:n("Legend")},r.default.createElement(i.ShowInLegend,{label:n("Show in Legend"),attr:"showlegend",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}],showOn:!0},r.default.createElement(o.GroupCreator,{label:n("Legend Group"),prefix:n("Group"),attr:"legendgroup"}))),r.default.createElement(o.PlotlySection,{name:n("Cones & Streamtubes")},r.default.createElement(o.Numeric,{label:n("Size"),attr:"sizeref",stepmode:"relative"}),r.default.createElement(o.Dropdown,{label:n("Size Mode"),options:[{label:n("scaled"),value:"scaled"},{label:n("absolute"),value:"absolute"}],attr:"sizemode"}),r.default.createElement(o.Dropdown,{label:n("Cone Anchor"),options:[{label:n("Tip"),value:"tip"},{label:n("Tail"),value:"tail"},{label:n("Center"),value:"center"},{label:n("Center of Mass"),value:"cm"}],attr:"anchor"}),r.default.createElement(o.Numeric,{label:n("Max Tube segments"),attr:"maxdisplayed"})),r.default.createElement(o.MultiColorPicker,{label:n("Color"),attr:"color"}),r.default.createElement(o.TraceTypeSection,{name:n("Segment Colors"),traceTypes:["pie","sunburst","treemap","funnelarea"],mode:"trace"},r.default.createElement(o.LayoutSection,{attr:"name"},r.default.createElement(o.ColorwayPicker,{label:n("Colors"),attr:"piecolorway"}),r.default.createElement(o.Radio,{label:n("Extended Colors"),attr:"extendpiecolors",options:[{label:n("On"),value:!0},{label:n("Off"),value:!1}]}),r.default.createElement(o.ColorwayPicker,{label:n("Colors"),attr:"sunburstcolorway"}),r.default.createElement(o.ColorwayPicker,{label:n("Colors"),attr:"treemapcolorway"}),r.default.createElement(o.Radio,{label:n("Extended Colors"),attr:"extendsunburstcolors",options:[{label:n("On"),value:!0},{label:n("Off"),value:!1}]}),r.default.createElement(o.Radio,{label:n("Extended Colors"),attr:"extendtreemapcolors",options:[{label:n("On"),value:!0},{label:n("Off"),value:!1}]}),r.default.createElement(o.ColorwayPicker,{label:n("Colors"),attr:"funnelareacolorway"}),r.default.createElement(o.Radio,{label:n("Extended Colors"),attr:"extendfunnelareacolors",options:[{label:n("On"),value:!0},{label:n("Off"),value:!1}]}))),r.default.createElement(o.PlotlySection,{name:n("Funnel Dimensions"),traceTypes:["funnelarea"],attr:"aspectratio"},r.default.createElement(o.Numeric,{label:n("Aspect Ratio"),attr:"aspectratio",step:.01,min:0,max:2,showSlider:!0}),r.default.createElement(o.NumericFraction,{label:n("Base Ratio"),attr:"baseratio"})),r.default.createElement(o.PlotlySection,{name:n("Subplot Title"),attr:"title.text"},r.default.createElement(o.TextEditor,{label:n("Name"),attr:"title.text"}),r.default.createElement(o.Dropdown,{label:"Title Position",attr:"titleposition",options:[{label:n("Top Left"),value:"top left"},{label:n("Top Center"),value:"top center"},{label:n("Top Right"),value:"top right"},{label:n("Middle Center"),value:"middle center"},{label:n("Bottom Left"),value:"bottom left"},{label:n("Bottom Center"),value:"bottom center"},{label:n("Bottom Right"),value:"bottom right"}]}),r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:"title.font.family",clearable:!1}),r.default.createElement(o.Numeric,{label:n("Font Size"),attr:"title.font.size",units:"px"})),r.default.createElement(o.PlotlySection,{name:n("Values")},r.default.createElement(i.BinningDropdown,{label:n("Histogram Function"),attr:"histfunc"}),r.default.createElement(o.Dropdown,{label:n("Histogram Normalization"),options:[{label:n("Number of Occurences"),value:""},{label:n("Percent"),value:"percent"},{label:n("Probability"),value:"probability"},{label:n("Density"),value:"density"},{label:n("Probability Density"),value:"probability density"}],attr:"histnorm"})),r.default.createElement(o.PlotlySection,{name:n("Cumulative")},r.default.createElement(o.Radio,{label:n("Cumulative"),attr:"cumulative.enabled",options:[{label:n("Enabled"),value:!0},{label:n("Disabled"),value:!1}]}),r.default.createElement(o.Radio,{label:n("Direction"),attr:"cumulative.direction",options:[{label:n("Increasing"),value:"increasing"},{label:n("Decreasing"),value:"decreasing"}]}),r.default.createElement(o.Radio,{label:n("Current Bin"),attr:"cumulative.currentbin",options:[{label:n("Include"),value:"include"},{label:n("Exclude"),value:"exclude"},{label:n("Half"),value:"half"}]})),r.default.createElement(o.PlotlySection,{name:n("Header")},r.default.createElement(o.Numeric,{label:n("Height"),attr:"header.height"}),r.default.createElement(o.MultiColorPicker,{label:n("Fill Color"),attr:"header.fill.color"}),r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:"header.font.family"}),r.default.createElement(o.Numeric,{label:n("Font Size"),attr:"header.font.size"}),r.default.createElement(o.Dropdown,{label:n("Text Alignment"),options:[{label:n("Left"),value:"left"},{label:n("Center"),value:"center"},{label:n("Right"),value:"right"}],attr:"header.align"}),r.default.createElement(o.MultiColorPicker,{label:n("Font Color"),attr:"header.font.color"}),r.default.createElement(o.Numeric,{label:n("Border Width"),attr:"header.line.width"}),r.default.createElement(o.MultiColorPicker,{label:n("Border Color"),attr:"header.line.color"})),r.default.createElement(o.PlotlySection,{name:n("Cells")},r.default.createElement(o.Numeric,{label:n("Height"),attr:"cells.height"}),r.default.createElement(o.MultiColorPicker,{label:n("Fill Color"),attr:"cells.fill.color"}),r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:"cells.font.family"}),r.default.createElement(o.Numeric,{label:n("Font Size"),attr:"cells.font.size"}),r.default.createElement(o.Dropdown,{label:n("Text Alignment"),options:[{label:n("Left"),value:"left"},{label:n("Center"),value:"center"},{label:n("Right"),value:"right"}],attr:"cells.align"}),r.default.createElement(o.MultiColorPicker,{label:n("Font Color"),attr:"cells.font.color"}),r.default.createElement(o.Numeric,{label:n("Border Width"),attr:"cells.line.width"}),r.default.createElement(o.MultiColorPicker,{label:n("Border Color"),attr:"cells.line.color"})),r.default.createElement(o.PlotlySection,{name:n("Display")},r.default.createElement(o.Flaglist,{attr:"mode",options:[{label:n("Points"),value:"markers"},{label:n("Lines"),value:"lines"},{label:n("Text"),value:"text"}]}),r.default.createElement(o.Radio,{attr:"flatshading",label:n("Flatshading"),options:[{label:n("Enable"),value:!0},{label:n("Disable"),value:!1}]})),r.default.createElement(o.TraceTypeSection,{name:n("Bar Grouping, Sizing and Spacing"),traceTypes:["bar","histogram","funnel","waterfall"],mode:"trace"},r.default.createElement(o.LayoutSection,{attr:"name"},r.default.createElement(o.Dropdown,{label:n("Bar Mode"),attr:"barmode",options:[{label:n("Grouped"),value:"group"},{label:n("Positive/Negative Stacked"),value:"relative"},{label:n("Strict Sum Stacked"),value:"stack"},{label:n("Overlaid"),value:"overlay"}],clearable:!1}),r.default.createElement(o.Dropdown,{label:n("Normalization"),attr:"barnorm",options:[{label:n("None"),value:""},{label:n("Fraction"),value:"fraction"},{label:n("Percent"),value:"percent"}],clearable:!1}),r.default.createElement(o.NumericFractionInverse,{label:n("Bar Width"),attr:"bargap"}),r.default.createElement(o.NumericFraction,{label:n("Bar Padding"),attr:"bargroupgap"}),r.default.createElement(o.Dropdown,{label:n("Bar Mode"),attr:"funnelmode",options:[{label:n("Grouped"),value:"group"},{label:n("Stacked"),value:"stack"},{label:n("Overlaid"),value:"overlay"}],clearable:!1}),r.default.createElement(o.NumericFractionInverse,{label:n("Bar Width"),attr:"funnelgap"}),r.default.createElement(o.NumericFraction,{label:n("Bar Padding"),attr:"funnelgroupgap"}),r.default.createElement(o.Dropdown,{label:n("Bar Mode"),attr:"waterfallmode",options:[{label:n("Grouped"),value:"group"},{label:n("Stacked"),value:"stack"},{label:n("Overlaid"),value:"overlay"}],clearable:!1}),r.default.createElement(o.NumericFractionInverse,{label:n("Bar Width"),attr:"waterfallgap"}),r.default.createElement(o.NumericFraction,{label:n("Bar Padding"),attr:"waterfallgroupgap"}))),r.default.createElement(o.PlotlySection,{name:n("Binning")},r.default.createElement(o.NumericOrDate,{label:n("X Bin Start"),attr:"xbins.start",axis:"x"}),r.default.createElement(o.NumericOrDate,{label:n("X Bin End"),attr:"xbins.end",axis:"x"}),r.default.createElement(o.Numeric,{label:n("Max X Bins"),attr:"nbinsx"}),r.default.createElement(o.AxisInterval,{label:n("X Bin Size"),attr:"xbins.size",axis:"x"}),r.default.createElement(o.NumericOrDate,{label:n("Y Bin Start"),attr:"ybins.start",axis:"y"}),r.default.createElement(o.NumericOrDate,{label:n("Y Bin End"),attr:"ybins.end",axis:"y"}),r.default.createElement(o.Numeric,{label:n("Max Y Bins"),attr:"nbinsy"}),r.default.createElement(o.AxisInterval,{label:n("Y Bin Size"),attr:"ybins.size",axis:"y"})),r.default.createElement(o.PlotlySection,{label:n("Bar Position")},r.default.createElement(o.NumericOrDate,{label:n("Base"),attr:"base"}),r.default.createElement(o.Numeric,{label:n("Offset"),attr:"offset"}),r.default.createElement(o.Numeric,{label:n("Width"),attr:"width"})),r.default.createElement(o.TraceTypeSection,{name:n("Box Size and Spacing"),traceTypes:["box"],mode:"trace"},r.default.createElement(o.LayoutSection,{attr:"name"},r.default.createElement(o.Radio,{label:n("Box Mode"),attr:"boxmode",options:[{label:n("Overlay"),value:"overlay"},{label:n("Group"),value:"group"}]}),r.default.createElement(o.NumericFractionInverse,{label:n("Box Width"),attr:"boxgap"}),r.default.createElement(o.NumericFraction,{label:n("Box Padding"),attr:"boxgroupgap"}))),r.default.createElement(o.TraceTypeSection,{name:n("Violin Size and Spacing"),traceTypes:["violin"],mode:"trace"},r.default.createElement(o.LayoutSection,{attr:"name"},r.default.createElement(o.Radio,{label:n("Violin Mode"),attr:"violinmode",options:[{label:n("Overlay"),value:"overlay"},{label:n("Group"),value:"group"}]}),r.default.createElement(o.NumericFractionInverse,{label:n("Violin Width"),attr:"violingap"}),r.default.createElement(o.NumericFraction,{label:n("Violin Padding"),attr:"violingroupgap"}))),r.default.createElement(o.NumericFraction,{label:n("Whisker Width"),attr:"whiskerwidth"}),r.default.createElement(o.TraceMarkerSection,null,r.default.createElement(o.Radio,{label:n("Order"),attr:"sort",options:[{label:n("Sorted"),value:!0},{label:n("Unsorted"),value:!1}]}),r.default.createElement(o.Radio,{label:n("Direction"),attr:"direction",options:[{label:n("Clockwise"),value:"clockwise"},{label:n("Counterclockwise"),value:"counterclockwise"}]}),r.default.createElement(o.Numeric,{label:n("Rotation"),attr:"rotation"}),r.default.createElement(o.NumericFraction,{label:n("Hole Size"),attr:"hole"}),r.default.createElement(o.NumericFraction,{label:n("Pull"),attr:"pull"}),r.default.createElement(o.Dropdown,{options:[{label:n("Show All"),value:"all"},{label:n("Outliers"),value:"outliers"},{label:n("Suspected Outliers"),value:"suspectedoutliers"},{label:n("Hide"),value:!1}],attr:"boxpoints",clearable:!1}),r.default.createElement(o.Dropdown,{options:[{label:n("Show All"),value:"all"},{label:n("Outliers"),value:"outliers"},{label:n("Suspected Outliers"),value:"suspectedoutliers"},{label:n("Hide"),value:!1}],attr:"points",clearable:!1}),r.default.createElement(o.NumericFraction,{label:n("Jitter"),attr:"jitter"}),r.default.createElement(o.Numeric,{label:n("Position"),attr:"pointpos",step:.1,showSlider:!0}),r.default.createElement(o.MarkerColor,{suppressMultiValuedMessage:!0,label:n("Color"),attr:"marker.color",labelWidth:80}),r.default.createElement(o.NumericFraction,{label:n("Point Opacity"),attr:"marker.opacity"}),r.default.createElement(o.MarkerSize,{label:n("Size"),attr:"marker.size"}),r.default.createElement(i.NumericReciprocal,{label:n("Size Scale"),attr:"marker.sizeref",step:.2,stepmode:"relative"}),r.default.createElement(o.Radio,{label:n("Size Mode"),attr:"marker.sizemode",options:[{label:n("Area"),value:"area"},{label:n("Diameter"),value:"diameter"}]}),r.default.createElement(o.Numeric,{label:n("Minimum Size"),attr:"marker.sizemin"}),r.default.createElement(o.SymbolSelector,{label:n("Symbol"),attr:"marker.symbol"}),r.default.createElement(o.Numeric,{label:n("Border Width"),attr:"marker.line.width"}),r.default.createElement(o.MultiColorPicker,{label:n("Border Color"),attr:"marker.line.color"}),r.default.createElement(o.Numeric,{label:n("Max Number of Points"),attr:"marker.maxdisplayed"})),r.default.createElement(o.PlotlySection,{name:n("Connector Styles")},r.default.createElement(o.Radio,{attr:"connector.visible",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.MultiColorPicker,{label:n("Fill Color"),attr:"connector.fillcolor"}),r.default.createElement(o.Numeric,{label:n("Line Width"),attr:"connector.line.width"}),r.default.createElement(o.MultiColorPicker,{label:n("Line Color"),attr:"connector.line.color"}),r.default.createElement(o.LineDashSelector,{label:n("Line Type"),attr:"connector.line.dash"}),r.default.createElement(o.Dropdown,{label:n("Line Shape"),options:[{label:n("Spanning"),value:"spanning"},{label:n("Between"),value:"between"}],attr:"connector.mode",clearable:!1})),r.default.createElement(o.PlotlySection,{name:n("Increasing Marker Styles")},r.default.createElement(o.TextEditor,{label:n("Name"),attr:"increasing.name",richTextOnly:!0}),r.default.createElement(o.Numeric,{label:n("Width"),attr:"increasing.line.width"}),r.default.createElement(o.MultiColorPicker,{label:n("Line Color"),attr:"increasing.line.color"}),r.default.createElement(o.MultiColorPicker,{label:n("Marker Color"),attr:"increasing.marker.color"}),r.default.createElement(o.MultiColorPicker,{label:n("Line Color"),attr:"increasing.marker.line.color"}),r.default.createElement(o.Numeric,{label:n("Line Width"),attr:"increasing.marker.line.width"}),r.default.createElement(o.MultiColorPicker,{label:n("Fill Color"),attr:"increasing.fillcolor"}),r.default.createElement(o.LineDashSelector,{label:n("Type"),attr:"increasing.line.dash"}),r.default.createElement(o.Radio,{label:n("Show in Legend"),attr:"increasing.showlegend",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]})),r.default.createElement(o.PlotlySection,{name:n("Decreasing Marker Styles")},r.default.createElement(o.TextEditor,{label:n("Name"),attr:"decreasing.name",richTextOnly:!0}),r.default.createElement(o.Numeric,{label:n("Width"),attr:"decreasing.line.width"}),r.default.createElement(o.MultiColorPicker,{label:n("Line Color"),attr:"decreasing.line.color"}),r.default.createElement(o.MultiColorPicker,{label:n("Marker Color"),attr:"decreasing.marker.color"}),r.default.createElement(o.MultiColorPicker,{label:n("Line Color"),attr:"decreasing.marker.line.color"}),r.default.createElement(o.Numeric,{label:n("Line Width"),attr:"decreasing.marker.line.width"}),r.default.createElement(o.MultiColorPicker,{label:n("Fill Color"),attr:"decreasing.fillcolor"}),r.default.createElement(o.LineDashSelector,{label:n("Type"),attr:"decreasing.line.dash"}),r.default.createElement(o.Radio,{label:n("Show in Legend"),attr:"decreasing.showlegend",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]})),r.default.createElement(o.PlotlySection,{name:n("Total Marker Styles")},r.default.createElement(o.MultiColorPicker,{label:n("Marker Color"),attr:"totals.marker.color"}),r.default.createElement(o.MultiColorPicker,{label:n("Line Color"),attr:"totals.marker.line.color"}),r.default.createElement(o.Numeric,{label:n("Line Width"),attr:"totals.marker.line.width"})),r.default.createElement(o.PlotlySection,{name:n("Ticks")},r.default.createElement(o.Numeric,{label:n("Width"),attr:"tickwidth"})),r.default.createElement(o.PlotlySection,{name:n("Contours")},r.default.createElement(o.Radio,{label:n("Type"),attr:"contours.type",options:[{label:n("Levels"),value:"levels"},{label:n("Constraint"),value:"constraint"}]}),r.default.createElement(o.Dropdown,{label:n("Coloring"),attr:"contours.coloring",options:[{label:n("Fill"),value:"fill"},{label:n("Heatmap"),value:"heatmap"},{label:n("Lines"),value:"lines"},{label:n("None"),value:"none"}],clearable:!1}),r.default.createElement(o.Radio,{label:n("Contour Lines"),attr:"contours.showlines",options:[{label:n("On"),value:!0},{label:n("Off"),value:!1}]}),r.default.createElement(o.Radio,{label:n("Contour Labels"),attr:"contours.showlabels",options:[{label:n("On"),value:!0},{label:n("Off"),value:!1}]}),r.default.createElement(o.Radio,{label:n("Number of Contours"),attr:"autocontour",options:[{label:n("Auto"),value:!0},{label:n("Custom"),value:!1}]}),r.default.createElement(o.Numeric,{label:n("Max Contours"),attr:"ncontours"}),r.default.createElement(o.ContourNumeric,{label:n("Step Size"),attr:"contours.size"}),r.default.createElement(o.ContourNumeric,{label:n("Min Contour"),attr:"contours.start"}),r.default.createElement(o.ContourNumeric,{label:n("Max Contour"),attr:"contours.end"})),r.default.createElement(o.TraceTypeSection,{name:n("Stacking"),traceTypes:["scatter"],mode:"trace"},r.default.createElement(o.GroupCreator,{label:n("Group"),prefix:n("Stack"),attr:"stackgroup"}),r.default.createElement(o.Radio,{label:n("Gaps"),attr:"stackgaps",options:[{label:n("Infer Zero"),value:"infer zero"},{label:n("Interpolate"),value:"interpolate"}]}),r.default.createElement(o.Radio,{label:n("Orientation"),attr:"orientation",options:[{label:n("Horizontal"),value:"h"},{label:n("Vertical"),value:"v"}]}),r.default.createElement(o.Radio,{label:n("Normalization"),attr:"groupnorm",options:[{label:n("None"),value:""},{label:n("Fraction"),value:"fraction"},{label:n("Percent"),value:"percent"}]})),r.default.createElement(o.TraceTypeSection,{name:n("Lines"),traceTypes:["scatter","contour","scatterternary","scatterpolar","scatterpolargl","box","violin","scatter3d","scattergl","scattergeo","parcoords","parcats","scattermapbox","scattercarpet","contourcarpet","ohlc","candlestick","histogram2dcontour"],mode:"trace"},r.default.createElement(o.Numeric,{label:n("Width"),attr:"line.width"}),r.default.createElement(o.MultiColorPicker,{label:n("Color"),attr:"line.color"}),r.default.createElement(o.Radio,{label:n("Color Bar"),attr:"line.showscale",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.ColorscalePicker,{label:n("Colorscale"),attr:"line.colorscale"}),r.default.createElement(o.LineDashSelector,{label:n("Type"),attr:"line.dash"}),r.default.createElement(o.LineShapeSelector,{label:n("Shape"),attr:"line.shape"}),r.default.createElement(o.Numeric,{label:n("Smoothing"),attr:"line.smoothing",showSlider:!0,step:.1}),r.default.createElement(o.Radio,{label:n("Connect Gaps"),attr:"connectgaps",options:[{label:n("Connect"),value:!0},{label:n("Blank"),value:!1}]})),r.default.createElement(o.PlotlySection,{name:n("Filled Area")},r.default.createElement(o.FillDropdown,{attr:"fill",label:n("Fill to")}),r.default.createElement(o.MultiColorPicker,{label:n("Color"),attr:"fillcolor"})),r.default.createElement(o.PlotlySection,{name:n("Notches")},r.default.createElement(o.Radio,{attr:"notched",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.Numeric,{label:n("Width"),attr:"notchwidth",min:0,max:.5,step:.1})),r.default.createElement(o.TraceTypeSection,{name:n("Text"),traceTypes:c.filter((function(e){return!["histogram2d","histogram2dcontour","parcoords","parcats","sankey","table","scattercarpet","carpet"].includes(e)})),mode:"trace"},r.default.createElement(o.TextPosition,{label:n("Text Position"),attr:"textposition"}),r.default.createElement(o.HoverTemplateSwitch,{attr:"texttemplate",label:n("Mode")}),r.default.createElement(i.TextInfo,{attr:"textinfo",label:n("Show")}),r.default.createElement(o.HoverTemplateText,{attr:"texttemplate",label:n("Template")}),r.default.createElement(o.DataSelector,{label:n("Text"),attr:"text"}),r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:"textfont.family"}),r.default.createElement(o.Numeric,{label:n("Font Size"),attr:"textfont.size",units:"px"}),r.default.createElement(o.MultiColorPicker,{label:n("Font Color"),attr:"textfont.color"}),r.default.createElement(o.Dropdown,{label:n("Inside Text Orientation"),options:[{label:n("Auto"),value:"auto"},{label:n("Radial"),value:"radial"},{label:n("Tangential"),value:"tangential"},{label:n("Horizontal"),value:"horizontal"}],attr:"insidetextorientation",clearable:!1}),r.default.createElement(o.Dropdown,{label:n("Text Angle"),options:[{label:n("Auto"),value:"auto"},{label:n("Horizontal"),value:0},{label:n("Vertical Up"),value:-90},{label:n("Vertical Down"),value:90},{label:n("Angled Down"),value:45},{label:n("Angled Up"),value:-45}],attr:"textangle",clearable:!1}),r.default.createElement(o.Dropdown,{label:n("Constrain Text"),options:[{label:n("Inside"),value:"inside"},{label:n("Outside"),value:"outside"},{label:n("Both"),value:"both"},{label:n("None"),value:"none"}],attr:"constraintext",clearable:!1}),r.default.createElement(o.Radio,{label:n("Clip on Axes"),attr:"cliponaxis",options:[{label:n("Yes"),value:!0},{label:n("No"),value:!1}]})),r.default.createElement(o.PlotlySection,{name:n("Colorscale")},r.default.createElement(o.ColorscalePicker,{label:n("Colorscale"),attr:"colorscale"}),r.default.createElement(o.Radio,{label:n("Color Bar"),attr:"showscale",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.Radio,{label:n("Orientation"),attr:"reversescale",options:[{label:n("Normal"),value:!1},{label:n("Reversed"),value:!0}]}),r.default.createElement(o.VisibilitySelect,{label:n("Range"),attr:"zauto",options:[{label:n("Auto"),value:!0},{label:n("Custom"),value:!1}],showOn:!1,defaultOpt:!0},r.default.createElement(o.Numeric,{label:n("Min"),attr:"zmin"}),r.default.createElement(o.Numeric,{label:n("Max"),attr:"zmax"})),r.default.createElement(o.VisibilitySelect,{label:n("Range"),attr:"cauto",options:[{label:n("Auto"),value:!0},{label:n("Custom"),value:!1}],showOn:!1,defaultOpt:!0},r.default.createElement(o.Numeric,{label:n("Min"),attr:"cmin"}),r.default.createElement(o.Numeric,{label:n("Max"),attr:"cmax"})),r.default.createElement(o.Radio,{label:n("Smoothing"),attr:"zsmooth",options:[{label:n("On"),value:"best"},{label:n("Off"),value:!1}]})),r.default.createElement(o.PlotlySection,{name:n("Gaps Between Cells")},r.default.createElement(o.Numeric,{label:n("Horizontal Gap"),attr:"xgap"}),r.default.createElement(o.Numeric,{label:n("Vertical Gap"),attr:"ygap"})),r.default.createElement(o.PlotlySection,{name:n("Heatmap")},r.default.createElement(o.Numeric,{label:n("Horizontal Gaps"),attr:"xgap"}),r.default.createElement(o.Numeric,{label:n("Vertical Gaps"),attr:"ygap"})),r.default.createElement(o.TraceTypeSection,{name:n("Gaps in Data"),traceTypes:["heatmap","contour","heatmapgl"],mode:"trace"},r.default.createElement(o.Radio,{label:n("Interpolate Gaps"),attr:"connectgaps",options:[{label:n("On"),value:!0},{label:n("Off"),value:!1}]})),r.default.createElement(o.PlotlySection,{name:n("Lighting")},r.default.createElement(o.NumericFraction,{label:n("Ambient"),attr:"lighting.ambient"}),r.default.createElement(o.NumericFraction,{label:n("Diffuse"),attr:"lighting.diffuse"}),r.default.createElement(o.NumericFraction,{label:n("Specular"),attr:"lighting.specular"}),r.default.createElement(o.NumericFraction,{label:n("Roughness"),attr:"lighting.roughness"}),r.default.createElement(o.NumericFraction,{label:n("Fresnel"),attr:"lighting.fresnel"}),r.default.createElement(o.NumericFraction,{label:n("Vertex Normal"),attr:"lighting.vertexnormalsepsilon"}),r.default.createElement(o.NumericFraction,{label:n("Face Normal"),attr:"lighting.facenormalsepsilon"})),r.default.createElement(o.PlotlySection,{name:n("Light Position")},r.default.createElement(o.NumericFraction,{label:n("X"),attr:"lightposition.x"}),r.default.createElement(o.NumericFraction,{label:n("Y"),attr:"lightposition.y"}),r.default.createElement(o.NumericFraction,{label:n("Z"),attr:"lightposition.z"})),r.default.createElement(o.PlotlySection,{name:n("Scaling")},r.default.createElement(o.GroupCreator,{label:n("Scale Group"),prefix:n("Group"),attr:"scalegroup"}),r.default.createElement(o.Radio,{label:n("Scale Mode"),attr:"scalemode",options:[{label:n("Width"),value:"width"},{label:n("Count"),value:"count"}]}),r.default.createElement(o.Radio,{label:n("Span Mode"),attr:"spanmode",options:[{label:n("Soft"),value:"soft"},{label:n("Hard"),value:"hard"},{label:n("Manual"),value:"manual"}]}),r.default.createElement(o.Numeric,{label:n("Bandwidth"),attr:"bandwidth"}),r.default.createElement(o.Numeric,{label:n("Span"),attr:"span"}),r.default.createElement(o.Radio,{attr:"side",label:n("Visible Sides"),options:[{label:n("Both"),value:"both"},{label:n("Positive"),value:"positive"},{label:n("Negative"),value:"negative"}]})),r.default.createElement(o.PlotlySection,{name:n("Box Mean")},r.default.createElement(o.Radio,{attr:"boxmean",options:[{label:n("Mean"),value:!0},{label:n("Mean & SD"),value:"sd"},{label:n("None"),value:!1}]})),r.default.createElement(o.PlotlySection,{name:n("Box")},r.default.createElement(o.Radio,{attr:"box.visible",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.NumericFraction,{label:n("Box Width"),attr:"box.width"}),r.default.createElement(o.MultiColorPicker,{label:n("Box Fill Color"),attr:"box.color"}),r.default.createElement(o.NumericFraction,{label:n("Box Line Width"),attr:"box.line.width"}),r.default.createElement(o.MultiColorPicker,{label:n("Box Line Color"),attr:"box.line.color"})),r.default.createElement(o.PlotlySection,{name:n("Meanline")},r.default.createElement(o.Radio,{attr:"meanline.visible",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.NumericFraction,{label:n("Meanline Width"),attr:"meanline.width"}),r.default.createElement(o.MultiColorPicker,{label:n("Meanline Color"),attr:"meanline.color"})),r.default.createElement(o.PlotlySection,{name:n("Nodes")},r.default.createElement(o.ColorArrayPicker,{label:n("Color"),attr:"node.color"}),r.default.createElement(o.Numeric,{label:n("Padding"),attr:"node.pad",min:0}),r.default.createElement(o.Numeric,{label:n("Thickness"),attr:"node.thickness",min:0}),r.default.createElement(o.MultiColorPicker,{label:n("Line Color"),attr:"node.line.color"}),r.default.createElement(o.Numeric,{label:n("Line Width"),attr:"node.line.width",min:0}),r.default.createElement(o.Dropdown,{label:n("Arrangement"),attr:"arrangement",options:[{label:n("Snap"),value:"snap"},{label:n("Perpendicular"),value:"perpendicular"},{label:n("Freeform"),value:"freeform"},{label:n("Fixed"),value:"fixed"}],clearable:!1})),r.default.createElement(o.PlotlySection,{name:n("Links")},r.default.createElement(o.ColorArrayPicker,{label:n("Color"),attr:"link.color"}),r.default.createElement(o.MultiColorPicker,{label:n("Line Color"),attr:"link.line.color"}),r.default.createElement(o.Numeric,{label:n("Line Width"),attr:"link.line.width",min:0})),r.default.createElement(o.PlotlySection,{name:n("Path Bar"),attr:"pathbar.visible"},r.default.createElement(o.Radio,{attr:"pathbar.visible",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.Radio,{attr:"pathbar.side",options:[{label:n("Top"),value:"top"},{label:n("Bottom"),value:"bottom"}],label:n("Side")})),r.default.createElement(o.PlotlySection,{name:n("Hover/Tooltip")},r.default.createElement(i.HoveronDropdown,{attr:"hoveron",label:n("Hover on")}),r.default.createElement(o.Radio,{label:n("Hover on Gaps"),attr:"hoverongaps",options:[{label:n("Yes"),value:!0},{label:n("No"),value:!1}]}),r.default.createElement(o.HoverTemplateSwitch,{attr:"hovertemplate",label:n("Mode")}),r.default.createElement(o.HoverInfo,{attr:"hoverinfo",label:n("Show")}),r.default.createElement(o.HoverTemplateText,{attr:"hovertemplate",label:n("Template")}),r.default.createElement(o.Radio,{label:n("Split labels"),attr:"hoverlabel.split",options:[{label:n("Yes"),value:!0},{label:n("No"),value:!1}]}),r.default.createElement(o.HoverLabelNameLength,{label:n("Trace Name"),attr:"hoverlabel.namelength"}),r.default.createElement(o.VisibilitySelect,{attr:"contour.show",label:n("Show Contour"),options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}],showOn:!0,defaultOpt:!1},r.default.createElement(o.MultiColorPicker,{label:n("Contour Color"),attr:"contour.color"}),r.default.createElement(o.Numeric,{label:n("Contour Width"),attr:"contour.width"})),r.default.createElement(o.Dropdown,{label:n("Text Alignment"),attr:"hoverlabel.align",options:[{label:n("Auto"),value:"auto"},{label:n("Left"),value:"left"},{label:n("Right"),value:"right"}],clearable:!1}),r.default.createElement(o.Text,{label:n("Value Format"),attr:"valueformat"}),r.default.createElement(o.Text,{label:n("Value Suffix"),attr:"valuesuffix"})),r.default.createElement(o.TraceTypeSection,{name:n("Error Bars X"),traceTypes:["scatter","scattergl","scatter3d","bar"],mode:"trace"},r.default.createElement(o.ErrorBars,{attr:"error_x"})),r.default.createElement(o.TraceTypeSection,{name:n("Error Bars Y"),traceTypes:["scatter","scattergl","scatter3d","bar"],mode:"trace"},r.default.createElement(o.ErrorBars,{attr:"error_y"})),r.default.createElement(o.TraceTypeSection,{name:n("Error Bars Z"),traceTypes:["scatter3d"],mode:"trace"},r.default.createElement(o.ErrorBars,{attr:"error_z"})))};f.contextTypes={localize:a.default.func};var p=f;t.default=p},"6d61":function(e,t,n){"use strict";var r=n("23e7"),a=n("da84"),o=n("94ca"),i=n("6eeb"),l=n("f183"),s=n("2266"),u=n("19aa"),c=n("861d"),f=n("d039"),p=n("1c7e"),d=n("d44e"),h=n("7156");e.exports=function(e,t,n){var v=-1!==e.indexOf("Map"),m=-1!==e.indexOf("Weak"),y=v?"set":"add",g=a[e],b=g&&g.prototype,x=g,_={},w=function(e){var t=b[e];i(b,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:function(e,n){return t.call(this,0===e?0:e,n),this})};if(o(e,"function"!=typeof g||!(m||b.forEach&&!f((function(){(new g).entries().next()})))))x=n.getConstructor(t,e,v,y),l.REQUIRED=!0;else if(o(e,!0)){var k=new x,T=k[y](m?{}:-0,1)!=k,E=f((function(){k.has(1)})),O=p((function(e){new g(e)})),M=!m&&f((function(){var e=new g,t=5;while(t--)e[y](t,t);return!e.has(-0)}));O||(x=t((function(t,n){u(t,x,e);var r=h(new g,t,x);return void 0!=n&&s(n,r[y],r,v),r})),x.prototype=b,b.constructor=x),(E||M)&&(w("delete"),w("has"),v&&w("get")),(M||T)&&w(y),m&&b.clear&&delete b.clear}return _[e]=x,r({global:!0,forced:x!=g},_),d(x,e),m||n.setStrong(x,e,v),x}},"6d74":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M30.375 28.688L16 1.188 3.625 24.813l-2 3.875zM4.688 25.75c.375-.313 1.188-.688 2-.563.375 0 .625.25.938.563.375.625 1.188 1.188 2.125 1.563h-6zm14.125 1.563s.125 0 .25-.125c2.25-1.313 4.813-2.625 7.188-3.563l2 3.688zm-7.188-14.5c.5-.563 1.813-.688 3.438-.688s3.313.125 4.563.438l3.313 5.438c-1.875.125-3.625 0-5.5 0-3.563-.125-6-2.125-6-4.688-.125-.125 0-.25.188-.5zm5.688 6.5c1.063 0 2.313.125 3.375.125h2c-1.5 1.875-4.938 5.5-9.063 4-2.188-.875-4.188-2-5.875-3.438l2.625-4.938c.688 2.375 3.375 4.125 6.938 4.25zm2.437-8c-1.188-.125-5.063-.625-7.5-.125L16 4.125zm-12.687 9.75c1.875 1.5 3.875 2.563 6.125 3.5.813.25 1.625.375 2.438.375 4.25 0 7.438-3.875 8.625-5.5l1.5 2.813c-2.563 1.063-4.938 2.313-7.375 3.75-3.438 2-8.625.563-9.688-1.188a2.572 2.572 0 0 0-1.75-1.188H5.75z"}))};t.default=u},"6dd8":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),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){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var a=r[n];e.call(t,a[1],a[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,a=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),o=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(a):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),i=2;function l(e,t){var n=!1,r=!1,a=0;function l(){n&&(n=!1,e()),r&&u()}function s(){o(l)}function u(){var e=Date.now();if(n){if(e-a<i)return;r=!0}else n=!0,r=!1,setTimeout(s,t);a=e}return u}var s=20,u=["top","right","bottom","left","width","height","size","weight"],c="undefined"!==typeof MutationObserver,f=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=l(this.refresh.bind(this),s)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.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},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(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)},e.prototype.disconnect_=function(){r&&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)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=u.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var a=r[n];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},d=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||a},h=T(0,0,0,0);function v(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+v(r)}),0)}function y(e){for(var t=["top","right","bottom","left"],n={},r=0,a=t;r<a.length;r++){var o=a[r],i=e["padding-"+o];n[o]=v(i)}return n}function g(e){var t=e.getBBox();return T(0,0,t.width,t.height)}function b(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return h;var r=d(e).getComputedStyle(e),a=y(r),o=a.left+a.right,i=a.top+a.bottom,l=v(r.width),s=v(r.height);if("border-box"===r.boxSizing&&(Math.round(l+o)!==t&&(l-=m(r,"left","right")+o),Math.round(s+i)!==n&&(s-=m(r,"top","bottom")+i)),!_(e)){var u=Math.round(l+o)-t,c=Math.round(s+i)-n;1!==Math.abs(u)&&(l-=u),1!==Math.abs(c)&&(s-=c)}return T(a.left,a.top,l,s)}var x=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof d(e).SVGGraphicsElement}:function(e){return e instanceof d(e).SVGElement&&"function"===typeof e.getBBox}}();function _(e){return e===d(e).document.documentElement}function w(e){return r?x(e)?g(e):b(e):h}function k(e){var t=e.x,n=e.y,r=e.width,a=e.height,o="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,i=Object.create(o.prototype);return p(i,{x:t,y:n,width:r,height:a,top:n,right:t+r,bottom:a+n,left:t}),i}function T(e,t,n,r){return{x:e,y:t,width:n,height:r}}var E=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=w(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),O=function(){function e(e,t){var n=k(t);p(this,{target:e,contentRect:n})}return e}(),M=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.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 d(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new E(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.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 d(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))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new O(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),S="undefined"!==typeof WeakMap?new WeakMap:new n,C=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=f.getInstance(),r=new M(t,n,this);S.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){C.prototype[e]=function(){var t;return(t=S.get(this))[e].apply(t,arguments)}}));var A=function(){return"undefined"!==typeof a.ResizeObserver?a.ResizeObserver:C}();t["default"]=A}.call(this,n("c8ba"))},"6ddf":function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function a(e,t,n){if(!e)return null;var a={};for(var o in e)r.call(e,o)&&(a[o]=t.call(n,e[o],o,e));return a}e.exports=a},"6e58":function(e,t,n){var r,a;!function(){var o={version:"3.5.17"},i=[].slice,l=function(e){return i.call(e)},s=this.document;function u(e){return e&&(e.ownerDocument||e.document||e).documentElement}function c(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(s)try{l(s.documentElement.childNodes)[0].nodeType}catch(lu){l=function(e){var t=e.length,n=new Array(t);while(t--)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),s)try{s.createElement("DIV").style.setProperty("opacity",0,"")}catch(su){var f=this.Element.prototype,p=f.setAttribute,d=f.setAttributeNS,h=this.CSSStyleDeclaration.prototype,v=h.setProperty;f.setAttribute=function(e,t){p.call(this,e,t+"")},f.setAttributeNS=function(e,t,n){d.call(this,e,t,n+"")},h.setProperty=function(e,t,n){v.call(this,e,t+"",n)}}function m(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function y(e){return null===e?NaN:+e}function g(e){return!isNaN(e)}function b(e){return{left:function(t,n,r,a){arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);while(r<a){var o=r+a>>>1;e(t[o],n)<0?r=o+1:a=o}return r},right:function(t,n,r,a){arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);while(r<a){var o=r+a>>>1;e(t[o],n)>0?a=o:r=o+1}return r}}}o.ascending=m,o.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},o.min=function(e,t){var n,r,a=-1,o=e.length;if(1===arguments.length){while(++a<o)if(null!=(r=e[a])&&r>=r){n=r;break}while(++a<o)null!=(r=e[a])&&n>r&&(n=r)}else{while(++a<o)if(null!=(r=t.call(e,e[a],a))&&r>=r){n=r;break}while(++a<o)null!=(r=t.call(e,e[a],a))&&n>r&&(n=r)}return n},o.max=function(e,t){var n,r,a=-1,o=e.length;if(1===arguments.length){while(++a<o)if(null!=(r=e[a])&&r>=r){n=r;break}while(++a<o)null!=(r=e[a])&&r>n&&(n=r)}else{while(++a<o)if(null!=(r=t.call(e,e[a],a))&&r>=r){n=r;break}while(++a<o)null!=(r=t.call(e,e[a],a))&&r>n&&(n=r)}return n},o.extent=function(e,t){var n,r,a,o=-1,i=e.length;if(1===arguments.length){while(++o<i)if(null!=(r=e[o])&&r>=r){n=a=r;break}while(++o<i)null!=(r=e[o])&&(n>r&&(n=r),a<r&&(a=r))}else{while(++o<i)if(null!=(r=t.call(e,e[o],o))&&r>=r){n=a=r;break}while(++o<i)null!=(r=t.call(e,e[o],o))&&(n>r&&(n=r),a<r&&(a=r))}return[n,a]},o.sum=function(e,t){var n,r=0,a=e.length,o=-1;if(1===arguments.length)while(++o<a)g(n=+e[o])&&(r+=n);else while(++o<a)g(n=+t.call(e,e[o],o))&&(r+=n);return r},o.mean=function(e,t){var n,r=0,a=e.length,o=-1,i=a;if(1===arguments.length)while(++o<a)g(n=y(e[o]))?r+=n:--i;else while(++o<a)g(n=y(t.call(e,e[o],o)))?r+=n:--i;if(i)return r/i},o.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),a=+e[r-1],o=n-r;return o?a+o*(e[r]-a):a},o.median=function(e,t){var n,r=[],a=e.length,i=-1;if(1===arguments.length)while(++i<a)g(n=y(e[i]))&&r.push(n);else while(++i<a)g(n=y(t.call(e,e[i],i)))&&r.push(n);if(r.length)return o.quantile(r.sort(m),.5)},o.variance=function(e,t){var n,r,a=e.length,o=0,i=0,l=-1,s=0;if(1===arguments.length)while(++l<a)g(n=y(e[l]))&&(r=n-o,o+=r/++s,i+=r*(n-o));else while(++l<a)g(n=y(t.call(e,e[l],l)))&&(r=n-o,o+=r/++s,i+=r*(n-o));if(s>1)return i/(s-1)},o.deviation=function(){var e=o.variance.apply(this,arguments);return e?Math.sqrt(e):e};var x=b(m);function _(e){return e.length}o.bisectLeft=x.left,o.bisect=o.bisectRight=x.right,o.bisector=function(e){return b(1===e.length?function(t,n){return m(e(t),n)}:e)},o.shuffle=function(e,t,n){(o=arguments.length)<3&&(n=e.length,o<2&&(t=0));var r,a,o=n-t;while(o)a=Math.random()*o--|0,r=e[o+t],e[o+t]=e[a+t],e[a+t]=r;return e},o.permute=function(e,t){var n=t.length,r=new Array(n);while(n--)r[n]=e[t[n]];return r},o.pairs=function(e){var t=0,n=e.length-1,r=e[0],a=new Array(n<0?0:n);while(t<n)a[t]=[r,r=e[++t]];return a},o.transpose=function(e){if(!(a=e.length))return[];for(var t=-1,n=o.min(e,_),r=new Array(n);++t<n;)for(var a,i=-1,l=r[t]=new Array(a);++i<a;)l[i]=e[i][t];return r},o.zip=function(){return o.transpose(arguments)},o.keys=function(e){var t=[];for(var n in e)t.push(n);return t},o.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},o.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},o.merge=function(e){var t,n,r,a=e.length,o=-1,i=0;while(++o<a)i+=e[o].length;n=new Array(i);while(--a>=0){r=e[a],t=r.length;while(--t>=0)n[--i]=r[t]}return n};var w=Math.abs;function k(e){var t=1;while(e*t%1)t*=10;return t}function T(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function E(){this._=Object.create(null)}o.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,a=[],o=k(w(n)),i=-1;if(e*=o,t*=o,n*=o,n<0)while((r=e+n*++i)>t)a.push(r/o);else while((r=e+n*++i)<t)a.push(r/o);return a},o.map=function(e,t){var n=new E;if(e instanceof E)e.forEach((function(e,t){n.set(e,t)}));else if(Array.isArray(e)){var r,a=-1,o=e.length;if(1===arguments.length)while(++a<o)n.set(a,e[a]);else while(++a<o)n.set(t.call(e,r=e[a],a),r)}else for(var i in e)n.set(i,e[i]);return n};var O="__proto__",M="\0";function S(e){return(e+="")===O||e[0]===M?M+e:e}function C(e){return(e+="")[0]===M?e.slice(1):e}function A(e){return S(e)in this._}function P(e){return(e=S(e))in this._&&delete this._[e]}function L(){var e=[];for(var t in this._)e.push(C(t));return e}function D(){var e=0;for(var t in this._)++e;return e}function j(){for(var e in this._)return!1;return!0}function I(){this._=Object.create(null)}function R(e){return e}function z(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function N(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=F.length;n<r;++n){var a=F[n]+t;if(a in e)return a}}T(E,{has:A,get:function(e){return this._[S(e)]},set:function(e,t){return this._[S(e)]=t},remove:P,keys:L,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:C(t),value:this._[t]});return e},size:D,empty:j,forEach:function(e){for(var t in this._)e.call(this,C(t),this._[t])}}),o.nest=function(){var e,t,n={},r=[],a=[];function i(a,o,l){if(l>=r.length)return t?t.call(n,o):e?o.sort(e):o;var s,u,c,f,p=-1,d=o.length,h=r[l++],v=new E;while(++p<d)(f=v.get(s=h(u=o[p])))?f.push(u):v.set(s,[u]);return a?(u=a(),c=function(e,t){u.set(e,i(a,t,l))}):(u={},c=function(e,t){u[e]=i(a,t,l)}),v.forEach(c),u}function l(e,t){if(t>=r.length)return e;var n=[],o=a[t++];return e.forEach((function(e,r){n.push({key:e,values:l(r,t)})})),o?n.sort((function(e,t){return o(e.key,t.key)})):n}return n.map=function(e,t){return i(t,e,0)},n.entries=function(e){return l(i(o.map,e,0),0)},n.key=function(e){return r.push(e),n},n.sortKeys=function(e){return a[r.length-1]=e,n},n.sortValues=function(t){return e=t,n},n.rollup=function(e){return t=e,n},n},o.set=function(e){var t=new I;if(e)for(var n=0,r=e.length;n<r;++n)t.add(e[n]);return t},T(I,{has:A,add:function(e){return this._[S(e+="")]=!0,e},remove:P,values:L,size:D,empty:j,forEach:function(e){for(var t in this._)e.call(this,C(t))}}),o.behavior={},o.rebind=function(e,t){var n,r=1,a=arguments.length;while(++r<a)e[n=arguments[r]]=z(e,t,t[n]);return e};var F=["webkit","ms","moz","Moz","o","O"];function B(){}function V(){}function H(e){var t=[],n=new E;function r(){var n,r=t,a=-1,o=r.length;while(++a<o)(n=r[a].on)&&n.apply(this,arguments);return e}return r.on=function(r,a){var o,i=n.get(r);return arguments.length<2?i&&i.on:(i&&(i.on=null,t=t.slice(0,o=t.indexOf(i)).concat(t.slice(o+1)),n.remove(r)),a&&t.push(n.set(r,{on:a})),e)},r}function U(){o.event.preventDefault()}function W(){var e,t=o.event;while(e=t.sourceEvent)t=e;return t}function q(e){var t=new V,n=0,r=arguments.length;while(++n<r)t[arguments[n]]=H(t);return t.of=function(n,r){return function(a){try{var i=a.sourceEvent=o.event;a.target=e,o.event=a,t[a.type].apply(n,r)}finally{o.event=i}}},t}o.dispatch=function(){var e=new V,t=-1,n=arguments.length;while(++t<n)e[arguments[t]]=H(e);return e},V.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},o.event=null,o.requote=function(e){return e.replace($,"\\$&")};var $=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,G={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function Y(e){return G(e,J),e}var K=function(e,t){return t.querySelector(e)},X=function(e,t){return t.querySelectorAll(e)},Z=function(e,t){var n=e.matches||e[N(e,"matchesSelector")];return Z=function(e,t){return n.call(e,t)},Z(e,t)};"function"===typeof Sizzle&&(K=function(e,t){return Sizzle(e,t)[0]||null},X=Sizzle,Z=Sizzle.matchesSelector),o.selection=function(){return o.select(s.documentElement)};var J=o.selection.prototype=[];function Q(e){return"function"===typeof e?e:function(){return K(e,this)}}function ee(e){return"function"===typeof e?e:function(){return X(e,this)}}J.select=function(e){var t,n,r,a,o=[];e=Q(e);for(var i=-1,l=this.length;++i<l;){o.push(t=[]),t.parentNode=(r=this[i]).parentNode;for(var s=-1,u=r.length;++s<u;)(a=r[s])?(t.push(n=e.call(a,a.__data__,s,i)),n&&"__data__"in a&&(n.__data__=a.__data__)):t.push(null)}return Y(o)},J.selectAll=function(e){var t,n,r=[];e=ee(e);for(var a=-1,o=this.length;++a<o;)for(var i=this[a],s=-1,u=i.length;++s<u;)(n=i[s])&&(r.push(t=l(e.call(n,n.__data__,s,a))),t.parentNode=n);return Y(r)};var te="http://www.w3.org/1999/xhtml",ne={svg:"http://www.w3.org/2000/svg",xhtml:te,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function re(e,t){function n(){this.removeAttribute(e)}function r(){this.removeAttributeNS(e.space,e.local)}function a(){this.setAttribute(e,t)}function i(){this.setAttributeNS(e.space,e.local,t)}function l(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}function s(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}return e=o.ns.qualify(e),null==t?e.local?r:n:"function"===typeof t?e.local?s:l:e.local?i:a}function ae(e){return e.trim().replace(/\s+/g," ")}function oe(e){return new RegExp("(?:^|\\s+)"+o.requote(e)+"(?:\\s+|$)","g")}function ie(e){return(e+"").trim().split(/^|\s+/)}function le(e,t){e=ie(e).map(se);var n=e.length;function r(){var r=-1;while(++r<n)e[r](this,t)}function a(){var r=-1,a=t.apply(this,arguments);while(++r<n)e[r](this,a)}return"function"===typeof t?a:r}function se(e){var t=oe(e);return function(n,r){if(a=n.classList)return r?a.add(e):a.remove(e);var a=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(a)||n.setAttribute("class",ae(a+" "+e))):n.setAttribute("class",ae(a.replace(t," ")))}}function ue(e,t,n){function r(){this.style.removeProperty(e)}function a(){this.style.setProperty(e,t,n)}function o(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}return null==t?r:"function"===typeof t?o:a}function ce(e,t){function n(){delete this[e]}function r(){this[e]=t}function a(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}return null==t?n:"function"===typeof t?a:r}function fe(e){function t(){var t=this.ownerDocument,n=this.namespaceURI;return n===te&&t.documentElement.namespaceURI===te?t.createElement(e):t.createElementNS(n,e)}function n(){return this.ownerDocument.createElementNS(e.space,e.local)}return"function"===typeof e?e:(e=o.ns.qualify(e)).local?n:t}function pe(){var e=this.parentNode;e&&e.removeChild(this)}function de(e){return{__data__:e}}function he(e){return function(){return Z(this,e)}}function ve(e){return arguments.length||(e=m),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function me(e,t){for(var n=0,r=e.length;n<r;n++)for(var a,o=e[n],i=0,l=o.length;i<l;i++)(a=o[i])&&t(a,i,n);return e}function ye(e){return G(e,ge),e}o.ns={prefix:ne,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),ne.hasOwnProperty(n)?{space:ne[n],local:e}:e}},J.attr=function(e,t){if(arguments.length<2){if("string"===typeof e){var n=this.node();return e=o.ns.qualify(e),e.local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(t in e)this.each(re(t,e[t]));return this}return this.each(re(e,t))},J.classed=function(e,t){if(arguments.length<2){if("string"===typeof e){var n=this.node(),r=(e=ie(e)).length,a=-1;if(t=n.classList){while(++a<r)if(!t.contains(e[a]))return!1}else{t=n.getAttribute("class");while(++a<r)if(!oe(e[a]).test(t))return!1}return!0}for(t in e)this.each(le(t,e[t]));return this}return this.each(le(e,t))},J.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!==typeof e){for(n in r<2&&(t=""),e)this.each(ue(n,e[n],t));return this}if(r<2){var a=this.node();return c(a).getComputedStyle(a,null).getPropertyValue(e)}n=""}return this.each(ue(e,t,n))},J.property=function(e,t){if(arguments.length<2){if("string"===typeof e)return this.node()[e];for(t in e)this.each(ce(t,e[t]));return this}return this.each(ce(e,t))},J.text=function(e){return arguments.length?this.each("function"===typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},J.html=function(e){return arguments.length?this.each("function"===typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},J.append=function(e){return e=fe(e),this.select((function(){return this.appendChild(e.apply(this,arguments))}))},J.insert=function(e,t){return e=fe(e),t=Q(t),this.select((function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)}))},J.remove=function(){return this.each(pe)},J.data=function(e,t){var n,r,a=-1,o=this.length;if(!arguments.length){e=new Array(o=(n=this[0]).length);while(++a<o)(r=n[a])&&(e[a]=r.__data__);return e}function i(e,n){var r,a,o,i=e.length,c=n.length,f=Math.min(i,c),p=new Array(c),d=new Array(c),h=new Array(i);if(t){var v,m=new E,y=new Array(i);for(r=-1;++r<i;)(a=e[r])&&(m.has(v=t.call(a,a.__data__,r))?h[r]=a:m.set(v,a),y[r]=v);for(r=-1;++r<c;)(a=m.get(v=t.call(n,o=n[r],r)))?!0!==a&&(p[r]=a,a.__data__=o):d[r]=de(o),m.set(v,!0);for(r=-1;++r<i;)r in y&&!0!==m.get(y[r])&&(h[r]=e[r])}else{for(r=-1;++r<f;)a=e[r],o=n[r],a?(a.__data__=o,p[r]=a):d[r]=de(o);for(;r<c;++r)d[r]=de(n[r]);for(;r<i;++r)h[r]=e[r]}d.update=p,d.parentNode=p.parentNode=h.parentNode=e.parentNode,l.push(d),s.push(p),u.push(h)}var l=ye([]),s=Y([]),u=Y([]);if("function"===typeof e)while(++a<o)i(n=this[a],e.call(n,n.parentNode.__data__,a));else while(++a<o)i(n=this[a],e);return s.enter=function(){return l},s.exit=function(){return u},s},J.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},J.filter=function(e){var t,n,r,a=[];"function"!==typeof e&&(e=he(e));for(var o=0,i=this.length;o<i;o++){a.push(t=[]),t.parentNode=(n=this[o]).parentNode;for(var l=0,s=n.length;l<s;l++)(r=n[l])&&e.call(r,r.__data__,l,o)&&t.push(r)}return Y(a)},J.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],a=r.length-1,o=r[a];--a>=0;)(n=r[a])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},J.sort=function(e){e=ve.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},J.each=function(e){return me(this,(function(t,n,r){e.call(t,t.__data__,n,r)}))},J.call=function(e){var t=l(arguments);return e.apply(t[0]=this,t),this},J.empty=function(){return!this.node()},J.node=function(){for(var e=0,t=this.length;e<t;e++)for(var n=this[e],r=0,a=n.length;r<a;r++){var o=n[r];if(o)return o}return null},J.size=function(){var e=0;return me(this,(function(){++e})),e};var ge=[];function be(e){var t,n;return function(r,a,o){var i,l=e[o].update,s=l.length;o!=n&&(n=o,t=0),a>=t&&(t=a+1);while(!(i=l[t])&&++t<s);return i}}function xe(e,t,n){var r="__on"+e,a=e.indexOf("."),i=we;a>0&&(e=e.slice(0,a));var s=_e.get(e);function u(){var t=this[r];t&&(this.removeEventListener(e,t,t.$),delete this[r])}function c(){var a=i(t,l(arguments));u.call(this),this.addEventListener(e,this[r]=a,a.$=n),a._=t}function f(){var t,n=new RegExp("^__on([^.]+)"+o.requote(e)+"$");for(var r in this)if(t=r.match(n)){var a=this[r];this.removeEventListener(t[1],a,a.$),delete this[r]}}return s&&(e=s,i=ke),a?t?c:u:t?B:f}o.selection.enter=ye,o.selection.enter.prototype=ge,ge.append=J.append,ge.empty=J.empty,ge.node=J.node,ge.call=J.call,ge.size=J.size,ge.select=function(e){for(var t,n,r,a,o,i=[],l=-1,s=this.length;++l<s;){r=(a=this[l]).update,i.push(t=[]),t.parentNode=a.parentNode;for(var u=-1,c=a.length;++u<c;)(o=a[u])?(t.push(r[u]=n=e.call(a.parentNode,o.__data__,u,l)),n.__data__=o.__data__):t.push(null)}return Y(i)},ge.insert=function(e,t){return arguments.length<2&&(t=be(this)),J.insert.call(this,e,t)},o.select=function(e){var t;return"string"===typeof e?(t=[K(e,s)],t.parentNode=s.documentElement):(t=[e],t.parentNode=u(e)),Y([t])},o.selectAll=function(e){var t;return"string"===typeof e?(t=l(X(e,s)),t.parentNode=s.documentElement):(t=l(e),t.parentNode=null),Y([t])},J.on=function(e,t,n){var r=arguments.length;if(r<3){if("string"!==typeof e){for(n in r<2&&(t=!1),e)this.each(xe(n,e[n],t));return this}if(r<2)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(xe(e,t,n))};var _e=o.map({mouseenter:"mouseover",mouseleave:"mouseout"});function we(e,t){return function(n){var r=o.event;o.event=n,t[0]=this.__data__;try{e.apply(this,t)}finally{o.event=r}}}function ke(e,t){var n=we(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}s&&_e.forEach((function(e){"on"+e in s&&_e.remove(e)}));var Te,Ee=0;function Oe(e){var t=".dragsuppress-"+ ++Ee,n="click"+t,r=o.select(c(e)).on("touchmove"+t,U).on("dragstart"+t,U).on("selectstart"+t,U);if(null==Te&&(Te=!("onselectstart"in e)&&N(e.style,"userSelect")),Te){var a=u(e).style,i=a[Te];a[Te]="none"}return function(e){if(r.on(t,null),Te&&(a[Te]=i),e){var o=function(){r.on(n,null)};r.on(n,(function(){U(),o()}),!0),setTimeout(o,0)}}}o.mouse=function(e){return Se(e,W())};var Me=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Se(e,t){t.changedTouches&&(t=t.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();if(Me<0){var a=c(e);if(a.scrollX||a.scrollY){n=o.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=n[0][0].getScreenCTM();Me=!(i.f||i.e),n.remove()}}return Me?(r.x=t.pageX,r.y=t.pageY):(r.x=t.clientX,r.y=t.clientY),r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}var l=e.getBoundingClientRect();return[t.clientX-l.left-e.clientLeft,t.clientY-l.top-e.clientTop]}function Ce(){return o.event.changedTouches[0].identifier}o.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=W().changedTouches),t)for(var r,a=0,o=t.length;a<o;++a)if((r=t[a]).identifier===n)return Se(e,r)},o.behavior.drag=function(){var e=q(a,"drag","dragstart","dragend"),t=null,n=i(B,o.mouse,c,"mousemove","mouseup"),r=i(Ce,o.touch,R,"touchmove","touchend");function a(){this.on("mousedown.drag",n).on("touchstart.drag",r)}function i(n,r,a,i,l){return function(){var s,u=this,c=o.event.target.correspondingElement||o.event.target,f=u.parentNode,p=e.of(u,arguments),d=0,h=n(),v=".drag"+(null==h?"":"-"+h),m=o.select(a(c)).on(i+v,b).on(l+v,x),y=Oe(c),g=r(f,h);function b(){var e,t,n=r(f,h);n&&(e=n[0]-g[0],t=n[1]-g[1],d|=e|t,g=n,p({type:"drag",x:n[0]+s[0],y:n[1]+s[1],dx:e,dy:t}))}function x(){r(f,h)&&(m.on(i+v,null).on(l+v,null),y(d),p({type:"dragend"}))}t?(s=t.apply(u,arguments),s=[s.x-g[0],s.y-g[1]]):s=[0,0],p({type:"dragstart"})}}return a.origin=function(e){return arguments.length?(t=e,a):t},o.rebind(a,e,"on")},o.touches=function(e,t){return arguments.length<2&&(t=W().touches),t?l(t).map((function(t){var n=Se(e,t);return n.identifier=t.identifier,n})):[]};var Ae=1e-6,Pe=Ae*Ae,Le=Math.PI,De=2*Le,je=De-Ae,Ie=Le/2,Re=Le/180,ze=180/Le;function Ne(e){return e>0?1:e<0?-1:0}function Fe(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function Be(e){return e>1?0:e<-1?Le:Math.acos(e)}function Ve(e){return e>1?Ie:e<-1?-Ie:Math.asin(e)}function He(e){return((e=Math.exp(e))-1/e)/2}function Ue(e){return((e=Math.exp(e))+1/e)/2}function We(e){return((e=Math.exp(2*e))-1)/(e+1)}function qe(e){return(e=Math.sin(e/2))*e}var $e=Math.SQRT2,Ge=2,Ye=4;o.interpolateZoom=function(e,t){var n,r,a=e[0],o=e[1],i=e[2],l=t[0],s=t[1],u=t[2],c=l-a,f=s-o,p=c*c+f*f;if(p<Pe)r=Math.log(u/i)/$e,n=function(e){return[a+e*c,o+e*f,i*Math.exp($e*e*r)]};else{var d=Math.sqrt(p),h=(u*u-i*i+Ye*p)/(2*i*Ge*d),v=(u*u-i*i-Ye*p)/(2*u*Ge*d),m=Math.log(Math.sqrt(h*h+1)-h),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-m)/$e,n=function(e){var t=e*r,n=Ue(m),l=i/(Ge*d)*(n*We($e*t+m)-He(m));return[a+l*c,o+l*f,i*n/Ue($e*t+m)]}}return n.duration=1e3*r,n},o.behavior.zoom=function(){var e,t,n,r,a,i,l,u,f,p={x:0,y:0,k:1},d=[960,500],h=Ze,v=250,m=0,y="mousedown.zoom",g="mousemove.zoom",b="mouseup.zoom",x="touchstart.zoom",_=q(w,"zoomstart","zoom","zoomend");function w(e){e.on(y,L).on(Xe+".zoom",j).on("dblclick.zoom",I).on(x,D)}function k(e){return[(e[0]-p.x)/p.k,(e[1]-p.y)/p.k]}function T(e){return[e[0]*p.k+p.x,e[1]*p.k+p.y]}function E(e){p.k=Math.max(h[0],Math.min(h[1],e))}function O(e,t){t=T(t),p.x+=e[0]-t[0],p.y+=e[1]-t[1]}function M(e,n,r,a){e.__chart__={x:p.x,y:p.y,k:p.k},E(Math.pow(2,a)),O(t=n,r),e=o.select(e),v>0&&(e=e.transition().duration(v)),e.call(w.event)}function S(){l&&l.domain(i.range().map((function(e){return(e-p.x)/p.k})).map(i.invert)),f&&f.domain(u.range().map((function(e){return(e-p.y)/p.k})).map(u.invert))}function C(e){m++||e({type:"zoomstart"})}function A(e){S(),e({type:"zoom",scale:p.k,translate:[p.x,p.y]})}function P(e){--m||(e({type:"zoomend"}),t=null)}function L(){var e=this,t=_.of(e,arguments),n=0,r=o.select(c(e)).on(g,l).on(b,s),a=k(o.mouse(e)),i=Oe(e);function l(){n=1,O(o.mouse(e),a),A(t)}function s(){r.on(g,null).on(b,null),i(n),P(t)}As.call(e),C(t)}function D(){var e,t=this,n=_.of(t,arguments),r={},i=0,l=".zoom-"+o.event.changedTouches[0].identifier,s="touchmove"+l,u="touchend"+l,c=[],f=o.select(t),d=Oe(t);function h(){var n=o.touches(t);return e=p.k,n.forEach((function(e){e.identifier in r&&(r[e.identifier]=k(e))})),n}function v(){var e=o.event.target;o.select(e).on(s,m).on(u,g),c.push(e);for(var n=o.event.changedTouches,l=0,f=n.length;l<f;++l)r[n[l].identifier]=null;var d=h(),v=Date.now();if(1===d.length){if(v-a<500){var y=d[0];M(t,y,r[y.identifier],Math.floor(Math.log(p.k)/Math.LN2)+1),U()}a=v}else if(d.length>1){y=d[0];var b=d[1],x=y[0]-b[0],_=y[1]-b[1];i=x*x+_*_}}function m(){var l,s,u,c,f=o.touches(t);As.call(t);for(var p=0,d=f.length;p<d;++p,c=null)if(u=f[p],c=r[u.identifier]){if(s)break;l=u,s=c}if(c){var h=(h=u[0]-l[0])*h+(h=u[1]-l[1])*h,v=i&&Math.sqrt(h/i);l=[(l[0]+u[0])/2,(l[1]+u[1])/2],s=[(s[0]+c[0])/2,(s[1]+c[1])/2],E(v*e)}a=null,O(l,s),A(n)}function g(){if(o.event.touches.length){for(var e=o.event.changedTouches,t=0,a=e.length;t<a;++t)delete r[e[t].identifier];for(var i in r)return void h()}o.selectAll(c).on(l,null),f.on(y,L).on(x,D),d(),P(n)}v(),C(n),f.on(y,null).on(x,v)}function j(){var a=_.of(this,arguments);r?clearTimeout(r):(As.call(this),e=k(t=n||o.mouse(this)),C(a)),r=setTimeout((function(){r=null,P(a)}),50),U(),E(Math.pow(2,.002*Ke())*p.k),O(t,e),A(a)}function I(){var e=o.mouse(this),t=Math.log(p.k)/Math.LN2;M(this,e,k(e),o.event.shiftKey?Math.ceil(t)-1:Math.floor(t)+1)}return Xe||(Xe="onwheel"in s?(Ke=function(){return-o.event.deltaY*(o.event.deltaMode?120:1)},"wheel"):"onmousewheel"in s?(Ke=function(){return o.event.wheelDelta},"mousewheel"):(Ke=function(){return-o.event.detail},"MozMousePixelScroll")),w.event=function(e){e.each((function(){var e=_.of(this,arguments),n=p;Ds?o.select(this).transition().each("start.zoom",(function(){p=this.__chart__||{x:0,y:0,k:1},C(e)})).tween("zoom:zoom",(function(){var r=d[0],a=d[1],i=t?t[0]:r/2,l=t?t[1]:a/2,s=o.interpolateZoom([(i-p.x)/p.k,(l-p.y)/p.k,r/p.k],[(i-n.x)/n.k,(l-n.y)/n.k,r/n.k]);return function(t){var n=s(t),a=r/n[2];this.__chart__=p={x:i-n[0]*a,y:l-n[1]*a,k:a},A(e)}})).each("interrupt.zoom",(function(){P(e)})).each("end.zoom",(function(){P(e)})):(this.__chart__=p,C(e),A(e),P(e))}))},w.translate=function(e){return arguments.length?(p={x:+e[0],y:+e[1],k:p.k},S(),w):[p.x,p.y]},w.scale=function(e){return arguments.length?(p={x:p.x,y:p.y,k:null},E(+e),S(),w):p.k},w.scaleExtent=function(e){return arguments.length?(h=null==e?Ze:[+e[0],+e[1]],w):h},w.center=function(e){return arguments.length?(n=e&&[+e[0],+e[1]],w):n},w.size=function(e){return arguments.length?(d=e&&[+e[0],+e[1]],w):d},w.duration=function(e){return arguments.length?(v=+e,w):v},w.x=function(e){return arguments.length?(l=e,i=e.copy(),p={x:0,y:0,k:1},w):l},w.y=function(e){return arguments.length?(f=e,u=e.copy(),p={x:0,y:0,k:1},w):f},o.rebind(w,_,"on")};var Ke,Xe,Ze=[0,1/0];function Je(){}function Qe(e,t,n){return this instanceof Qe?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof Qe?new Qe(e.h,e.s,e.l):_t(""+e,wt,Qe):new Qe(e,t,n)}o.color=Je,Je.prototype.toString=function(){return this.rgb()+""},o.hsl=Qe;var et=Qe.prototype=new Je;function tt(e,t,n){var r,a;function o(e){return e>360?e-=360:e<0&&(e+=360),e<60?r+(a-r)*e/60:e<180?a:e<240?r+(a-r)*(240-e)/60:r}function i(e){return Math.round(255*o(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,n=n<0?0:n>1?1:n,a=n<=.5?n*(1+t):n+t-n*t,r=2*n-a,new mt(i(e+120),i(e),i(e-120))}function nt(e,t,n){return this instanceof nt?(this.h=+e,this.c=+t,void(this.l=+n)):arguments.length<2?e instanceof nt?new nt(e.h,e.c,e.l):pt(e instanceof ot?e.l:(e=kt((e=o.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new nt(e,t,n)}et.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Qe(this.h,this.s,this.l/e)},et.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Qe(this.h,this.s,e*this.l)},et.rgb=function(){return tt(this.h,this.s,this.l)},o.hcl=nt;var rt=nt.prototype=new Je;function at(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new ot(n,Math.cos(e*=Re)*t,Math.sin(e)*t)}function ot(e,t,n){return this instanceof ot?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof ot?new ot(e.l,e.a,e.b):e instanceof nt?at(e.h,e.c,e.l):kt((e=mt(e)).r,e.g,e.b):new ot(e,t,n)}rt.brighter=function(e){return new nt(this.h,this.c,Math.min(100,this.l+it*(arguments.length?e:1)))},rt.darker=function(e){return new nt(this.h,this.c,Math.max(0,this.l-it*(arguments.length?e:1)))},rt.rgb=function(){return at(this.h,this.c,this.l).rgb()},o.lab=ot;var it=18,lt=.95047,st=1,ut=1.08883,ct=ot.prototype=new Je;function ft(e,t,n){var r=(e+16)/116,a=r+t/500,o=r-n/200;return a=dt(a)*lt,r=dt(r)*st,o=dt(o)*ut,new mt(vt(3.2404542*a-1.5371385*r-.4985314*o),vt(-.969266*a+1.8760108*r+.041556*o),vt(.0556434*a-.2040259*r+1.0572252*o))}function pt(e,t,n){return e>0?new nt(Math.atan2(n,t)*ze,Math.sqrt(t*t+n*n),e):new nt(NaN,NaN,e)}function dt(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function ht(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function vt(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function mt(e,t,n){return this instanceof mt?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof mt?new mt(e.r,e.g,e.b):_t(""+e,mt,tt):new mt(e,t,n)}function yt(e){return new mt(e>>16,e>>8&255,255&e)}function gt(e){return yt(e)+""}ct.brighter=function(e){return new ot(Math.min(100,this.l+it*(arguments.length?e:1)),this.a,this.b)},ct.darker=function(e){return new ot(Math.max(0,this.l-it*(arguments.length?e:1)),this.a,this.b)},ct.rgb=function(){return ft(this.l,this.a,this.b)},o.rgb=mt;var bt=mt.prototype=new Je;function xt(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function _t(e,t,n){var r,a,o,i=0,l=0,s=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()),r)switch(a=r[2].split(","),r[1]){case"hsl":return n(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(Et(a[0]),Et(a[1]),Et(a[2]))}return(o=Ot.get(e))?t(o.r,o.g,o.b):(null==e||"#"!==e.charAt(0)||isNaN(o=parseInt(e.slice(1),16))||(4===e.length?(i=(3840&o)>>4,i|=i>>4,l=240&o,l|=l>>4,s=15&o,s|=s<<4):7===e.length&&(i=(16711680&o)>>16,l=(65280&o)>>8,s=255&o)),t(i,l,s))}function wt(e,t,n){var r,a,o=Math.min(e/=255,t/=255,n/=255),i=Math.max(e,t,n),l=i-o,s=(i+o)/2;return l?(a=s<.5?l/(i+o):l/(2-i-o),r=e==i?(t-n)/l+(t<n?6:0):t==i?(n-e)/l+2:(e-t)/l+4,r*=60):(r=NaN,a=s>0&&s<1?0:r),new Qe(r,a,s)}function kt(e,t,n){e=Tt(e),t=Tt(t),n=Tt(n);var r=ht((.4124564*e+.3575761*t+.1804375*n)/lt),a=ht((.2126729*e+.7151522*t+.072175*n)/st),o=ht((.0193339*e+.119192*t+.9503041*n)/ut);return ot(116*a-16,500*(r-a),200*(a-o))}function Tt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Et(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}bt.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,a=30;return t||n||r?(t&&t<a&&(t=a),n&&n<a&&(n=a),r&&r<a&&(r=a),new mt(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new mt(a,a,a)},bt.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new mt(e*this.r,e*this.g,e*this.b)},bt.hsl=function(){return wt(this.r,this.g,this.b)},bt.toString=function(){return"#"+xt(this.r)+xt(this.g)+xt(this.b)};var Ot=o.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function Mt(e){return"function"===typeof e?e:function(){return e}}function St(e){return function(t,n,r){return 2===arguments.length&&"function"===typeof n&&(r=n,n=null),Ct(t,n,e,r)}}function Ct(e,t,n,r){var a={},i=o.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,c=null;function f(){var e,t=u.status;if(!t&&Pt(u)||t>=200&&t<300||304===t){try{e=n.call(a,u)}catch(lu){return void i.error.call(a,lu)}i.load.call(a,e)}else i.error.call(a,u)}return this.XDomainRequest&&!("withCredentials"in u)&&/^(http(s)?:)?\/\//.test(e)&&(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=f:u.onreadystatechange=function(){u.readyState>3&&f()},u.onprogress=function(e){var t=o.event;o.event=e;try{i.progress.call(a,u)}finally{o.event=t}},a.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",a)},a.mimeType=function(e){return arguments.length?(t=null==e?null:e+"",a):t},a.responseType=function(e){return arguments.length?(c=e,a):c},a.response=function(e){return n=e,a},["get","post"].forEach((function(e){a[e]=function(){return a.send.apply(a,[e].concat(l(arguments)))}})),a.send=function(n,r,o){if(2===arguments.length&&"function"===typeof r&&(o=r,r=null),u.open(n,e,!0),null==t||"accept"in s||(s["accept"]=t+",*/*"),u.setRequestHeader)for(var l in s)u.setRequestHeader(l,s[l]);return null!=t&&u.overrideMimeType&&u.overrideMimeType(t),null!=c&&(u.responseType=c),null!=o&&a.on("error",o).on("load",(function(e){o(null,e)})),i.beforesend.call(a,u),u.send(null==r?null:r),a},a.abort=function(){return u.abort(),a},o.rebind(a,i,"on"),null==r?a:a.get(At(r))}function At(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function Pt(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}Ot.forEach((function(e,t){Ot.set(e,yt(t))})),o.functor=Mt,o.xhr=St(R),o.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function a(e,n,r){arguments.length<3&&(r=n,n=null);var a=Ct(e,t,null==n?o:i(n),r);return a.row=function(e){return arguments.length?a.response(null==(n=e)?o:i(e)):n},a}function o(e){return a.parse(e.responseText)}function i(e){return function(t){return a.parse(t.responseText,e)}}function l(t){return t.map(s).join(e)}function s(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var n;return a.parseRows(e,(function(e,r){if(n)return n(e,r-1);var a=new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}");n=t?function(e,n){return t(a(e),n)}:a}))},a.parseRows=function(e,t){var n,a,o={},i={},l=[],s=e.length,u=0,c=0;function f(){if(u>=s)return i;if(a)return a=!1,o;var t=u;if(34===e.charCodeAt(t)){var n=t;while(n++<s)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}u=n+2;var l=e.charCodeAt(n+1);return 13===l?(a=!0,10===e.charCodeAt(n+2)&&++u):10===l&&(a=!0),e.slice(t+1,n).replace(/""/g,'"')}while(u<s){l=e.charCodeAt(u++);var c=1;if(10===l)a=!0;else if(13===l)a=!0,10===e.charCodeAt(u)&&(++u,++c);else if(l!==r)continue;return e.slice(t,u-c)}return e.slice(t)}while((n=f())!==i){var p=[];while(n!==o&&n!==i)p.push(n),n=f();t&&null==(p=t(p,c++))||l.push(p)}return l},a.format=function(t){if(Array.isArray(t[0]))return a.formatRows(t);var n=new I,r=[];return t.forEach((function(e){for(var t in e)n.has(t)||r.push(n.add(t))})),[r.map(s).join(e)].concat(t.map((function(t){return r.map((function(e){return s(t[e])})).join(e)}))).join("\n")},a.formatRows=function(e){return e.map(l).join("\n")},a},o.csv=o.dsv(",","text/csv"),o.tsv=o.dsv("\t","text/tab-separated-values");var Lt,Dt,jt,It,Rt=this[N(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};function zt(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var a=n+t,o={c:e,t:a,n:null};return Dt?Dt.n=o:Lt=o,Dt=o,jt||(It=clearTimeout(It),jt=1,Rt(Nt)),o}function Nt(){var e=Ft(),t=Bt()-e;t>24?(isFinite(t)&&(clearTimeout(It),It=setTimeout(Nt,t)),jt=0):(jt=1,Rt(Nt))}function Ft(){var e=Date.now(),t=Lt;while(t)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function Bt(){var e,t=Lt,n=1/0;while(t)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:Lt=t.n;return Dt=e,n}function Vt(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}o.timer=function(){zt.apply(this,arguments)},o.timer.flush=function(){Ft(),Bt()},o.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var Ht=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Ut);function Ut(e,t){var n=Math.pow(10,3*w(8-t));return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}function Wt(e){var t=e.decimal,n=e.thousands,r=e.grouping,a=e.currency,i=r&&n?function(e,t){var a=e.length,o=[],i=0,l=r[0],s=0;while(a>0&&l>0){if(s+l+1>t&&(l=Math.max(1,t-s)),o.push(e.substring(a-=l,a+l)),(s+=l+1)>t)break;l=r[i=(i+1)%r.length]}return o.reverse().join(n)}:R;return function(e){var n=qt.exec(e),r=n[1]||" ",l=n[2]||">",s=n[3]||"-",u=n[4]||"",c=n[5],f=+n[6],p=n[7],d=n[8],h=n[9],v=1,m="",y="",g=!1,b=!0;switch(d&&(d=+d.substring(1)),(c||"0"===r&&"="===l)&&(c=r="0",l="="),h){case"n":p=!0,h="g";break;case"%":v=100,y="%",h="f";break;case"p":v=100,y="%",h="r";break;case"b":case"o":case"x":case"X":"#"===u&&(m="0"+h.toLowerCase());case"c":b=!1;case"d":g=!0,d=0;break;case"s":v=-1,h="r";break}"$"===u&&(m=a[0],y=a[1]),"r"!=h||d||(h="g"),null!=d&&("g"==h?d=Math.max(1,Math.min(21,d)):"e"!=h&&"f"!=h||(d=Math.max(0,Math.min(20,d)))),h=$t.get(h)||Gt;var x=c&&p;return function(e){var n=y;if(g&&e%1)return"";var a=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(v<0){var u=o.formatPrefix(e,d);e=u.scale(e),n=u.symbol+y}else e*=v;e=h(e,d);var _,w,k=e.lastIndexOf(".");if(k<0){var T=b?e.lastIndexOf("e"):-1;T<0?(_=e,w=""):(_=e.substring(0,T),w=e.substring(T))}else _=e.substring(0,k),w=t+e.substring(k+1);!c&&p&&(_=i(_,1/0));var E=m.length+_.length+w.length+(x?0:a.length),O=E<f?new Array(E=f-E+1).join(r):"";return x&&(_=i(O+_,O.length?f-w.length:1/0)),a+=m,e=_+w,("<"===l?a+e+O:">"===l?O+a+e:"^"===l?O.substring(0,E>>=1)+a+e+O.substring(E):a+(x?e:O+e))+n}}}o.formatPrefix=function(e,t){var n=0;return(e=+e)&&(e<0&&(e*=-1),t&&(e=o.round(e,Vt(e,t))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Ht[8+n/3]};var qt=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,$t=o.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,t){return(e=o.round(e,Vt(e,t))).toFixed(Math.max(0,Math.min(20,Vt(e*(1+1e-15),t))))}});function Gt(e){return e+""}var Yt=o.time={},Kt=Date;function Xt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Xt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Zt.setUTCDate.apply(this._,arguments)},setDay:function(){Zt.setUTCDay.apply(this._,arguments)},setFullYear:function(){Zt.setUTCFullYear.apply(this._,arguments)},setHours:function(){Zt.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Zt.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Zt.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Zt.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Zt.setUTCSeconds.apply(this._,arguments)},setTime:function(){Zt.setTime.apply(this._,arguments)}};var Zt=Date.prototype;function Jt(e,t,n){function r(t){var n=e(t),r=o(n,1);return t-n<r-t?n:r}function a(n){return t(n=e(new Kt(n-1)),1),n}function o(e,n){return t(e=new Kt(+e),n),e}function i(e,r,o){var i=a(e),l=[];if(o>1)while(i<r)n(i)%o||l.push(new Date(+i)),t(i,1);else while(i<r)l.push(new Date(+i)),t(i,1);return l}function l(e,t,n){try{Kt=Xt;var r=new Xt;return r._=e,i(r,t,n)}finally{Kt=Date}}e.floor=e,e.round=r,e.ceil=a,e.offset=o,e.range=i;var s=e.utc=Qt(e);return s.floor=s,s.round=Qt(r),s.ceil=Qt(a),s.offset=Qt(o),s.range=l,e}function Qt(e){return function(t,n){try{Kt=Xt;var r=new Xt;return r._=t,e(r,n)._}finally{Kt=Date}}}function en(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,l=e.shortDays,s=e.months,u=e.shortMonths;function c(e){var t=e.length;function n(n){var r,a,o,i=[],l=-1,s=0;while(++l<t)37===e.charCodeAt(l)&&(i.push(e.slice(s,l)),null!=(a=tn[r=e.charAt(++l)])&&(r=e.charAt(++l)),(o=_[r])&&(r=o(n,null==a?"e"===r?" ":"0":a)),i.push(r),s=l+1);return i.push(e.slice(s,l)),i.join("")}return n.parse=function(t){var n={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},r=f(n,e,t,0);if(r!=t.length)return null;"p"in n&&(n.H=n.H%12+12*n.p);var a=null!=n.Z&&Kt!==Xt,o=new(a?Xt:Kt);return"j"in n?o.setFullYear(n.y,0,n.j):"W"in n||"U"in n?("w"in n||(n.w="W"in n?1:0),o.setFullYear(n.y,0,1),o.setFullYear(n.y,0,"W"in n?(n.w+6)%7+7*n.W-(o.getDay()+5)%7:n.w+7*n.U-(o.getDay()+6)%7)):o.setFullYear(n.y,n.m,n.d),o.setHours(n.H+(n.Z/100|0),n.M+n.Z%100,n.S,n.L),a?o._:o},n.toString=function(){return e},n}function f(e,t,n,r){var a,o,i,l=0,s=t.length,u=n.length;while(l<s){if(r>=u)return-1;if(a=t.charCodeAt(l++),37===a){if(i=t.charAt(l++),o=w[i in tn?t.charAt(l++):i],!o||(r=o(e,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}c.utc=function(e){var t=c(e);function n(e){try{Kt=Xt;var n=new Kt;return n._=e,t(n)}finally{Kt=Date}}return n.parse=function(e){try{Kt=Xt;var n=t.parse(e);return n&&n._}finally{Kt=Date}},n.toString=t.toString,n},c.multi=c.utc.multi=Tn;var p=o.map(),d=on(i),h=ln(i),v=on(l),m=ln(l),y=on(s),g=ln(s),b=on(u),x=ln(u);a.forEach((function(e,t){p.set(e.toLowerCase(),t)}));var _={a:function(e){return l[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:c(t),d:function(e,t){return an(e.getDate(),t,2)},e:function(e,t){return an(e.getDate(),t,2)},H:function(e,t){return an(e.getHours(),t,2)},I:function(e,t){return an(e.getHours()%12||12,t,2)},j:function(e,t){return an(1+Yt.dayOfYear(e),t,3)},L:function(e,t){return an(e.getMilliseconds(),t,3)},m:function(e,t){return an(e.getMonth()+1,t,2)},M:function(e,t){return an(e.getMinutes(),t,2)},p:function(e){return a[+(e.getHours()>=12)]},S:function(e,t){return an(e.getSeconds(),t,2)},U:function(e,t){return an(Yt.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return an(Yt.mondayOfYear(e),t,2)},x:c(n),X:c(r),y:function(e,t){return an(e.getFullYear()%100,t,2)},Y:function(e,t){return an(e.getFullYear()%1e4,t,4)},Z:wn,"%":function(){return"%"}},w={a:k,A:T,b:E,B:O,c:M,d:mn,e:mn,H:gn,I:gn,j:yn,L:_n,m:vn,M:bn,p:A,S:xn,U:un,w:sn,W:cn,x:S,X:C,y:pn,Y:fn,Z:dn,"%":kn};function k(e,t,n){v.lastIndex=0;var r=v.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function T(e,t,n){d.lastIndex=0;var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){b.lastIndex=0;var r=b.exec(t.slice(n));return r?(e.m=x.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){y.lastIndex=0;var r=y.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function M(e,t,n){return f(e,_.c.toString(),t,n)}function S(e,t,n){return f(e,_.x.toString(),t,n)}function C(e,t,n){return f(e,_.X.toString(),t,n)}function A(e,t,n){var r=p.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}return c}Yt.year=Jt((function(e){return e=Yt.day(e),e.setMonth(0,1),e}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e){return e.getFullYear()})),Yt.years=Yt.year.range,Yt.years.utc=Yt.year.utc.range,Yt.day=Jt((function(e){var t=new Kt(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e){return e.getDate()-1})),Yt.days=Yt.day.range,Yt.days.utc=Yt.day.utc.range,Yt.dayOfYear=function(e){var t=Yt.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(e,t){t=7-t;var n=Yt[e]=Jt((function(e){return(e=Yt.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e}),(function(e,t){e.setDate(e.getDate()+7*Math.floor(t))}),(function(e){var n=Yt.year(e).getDay();return Math.floor((Yt.dayOfYear(e)+(n+t)%7)/7)-(n!==t)}));Yt[e+"s"]=n.range,Yt[e+"s"].utc=n.utc.range,Yt[e+"OfYear"]=function(e){var n=Yt.year(e).getDay();return Math.floor((Yt.dayOfYear(e)+(n+t)%7)/7)}})),Yt.week=Yt.sunday,Yt.weeks=Yt.sunday.range,Yt.weeks.utc=Yt.sunday.utc.range,Yt.weekOfYear=Yt.sundayOfYear;var tn={"-":"",_:" ",0:"0"},nn=/^\s*\d+/,rn=/^%/;function an(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function on(e){return new RegExp("^(?:"+e.map(o.requote).join("|")+")","i")}function ln(e){var t=new E,n=-1,r=e.length;while(++n<r)t.set(e[n].toLowerCase(),n);return t}function sn(e,t,n){nn.lastIndex=0;var r=nn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function un(e,t,n){nn.lastIndex=0;var r=nn.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function cn(e,t,n){nn.lastIndex=0;var r=nn.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function fn(e,t,n){nn.lastIndex=0;var r=nn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function pn(e,t,n){nn.lastIndex=0;var r=nn.exec(t.slice(n,n+2));return r?(e.y=hn(+r[0]),n+r[0].length):-1}function dn(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function hn(e){return e+(e>68?1900:2e3)}function vn(e,t,n){nn.lastIndex=0;var r=nn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function mn(e,t,n){nn.lastIndex=0;var r=nn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function yn(e,t,n){nn.lastIndex=0;var r=nn.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function gn(e,t,n){nn.lastIndex=0;var r=nn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function bn(e,t,n){nn.lastIndex=0;var r=nn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function xn(e,t,n){nn.lastIndex=0;var r=nn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function _n(e,t,n){nn.lastIndex=0;var r=nn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function wn(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=w(t)/60|0,a=w(t)%60;return n+an(r,"0",2)+an(a,"0",2)}function kn(e,t,n){rn.lastIndex=0;var r=rn.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Tn(e){var t=e.length,n=-1;while(++n<t)e[n][0]=this(e[n][0]);return function(t){var n=0,r=e[n];while(!r[1](t))r=e[++n];return r[0](t)}}o.locale=function(e){return{numberFormat:Wt(e),timeFormat:en(e)}};var En=o.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function On(){}o.format=En.numberFormat,o.geo={},On.prototype={s:0,t:0,add:function(e){Sn(e,this.t,Mn),Sn(Mn.s,this.s,this),this.s?this.t+=Mn.t:this.s=Mn.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Mn=new On;function Sn(e,t,n){var r=n.s=e+t,a=r-e,o=r-a;n.t=e-o+(t-a)}function Cn(e,t){e&&Pn.hasOwnProperty(e.type)&&Pn[e.type](e,t)}o.geo.stream=function(e,t){e&&An.hasOwnProperty(e.type)?An[e.type](e,t):Cn(e,t)};var An={Feature:function(e,t){Cn(e.geometry,t)},FeatureCollection:function(e,t){var n=e.features,r=-1,a=n.length;while(++r<a)Cn(n[r].geometry,t)}},Pn={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){var n=e.coordinates,r=-1,a=n.length;while(++r<a)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){Ln(e.coordinates,t,0)},MultiLineString:function(e,t){var n=e.coordinates,r=-1,a=n.length;while(++r<a)Ln(n[r],t,0)},Polygon:function(e,t){Dn(e.coordinates,t)},MultiPolygon:function(e,t){var n=e.coordinates,r=-1,a=n.length;while(++r<a)Dn(n[r],t)},GeometryCollection:function(e,t){var n=e.geometries,r=-1,a=n.length;while(++r<a)Cn(n[r],t)}};function Ln(e,t,n){var r,a=-1,o=e.length-n;t.lineStart();while(++a<o)r=e[a],t.point(r[0],r[1],r[2]);t.lineEnd()}function Dn(e,t){var n=-1,r=e.length;t.polygonStart();while(++n<r)Ln(e[n],t,1);t.polygonEnd()}o.geo.area=function(e){return jn=0,o.geo.stream(e,Gn),jn};var jn,In,Rn,zn,Nn,Fn,Bn,Vn,Hn,Un,Wn,qn,$n=new On,Gn={sphere:function(){jn+=4*Le},point:B,lineStart:B,lineEnd:B,polygonStart:function(){$n.reset(),Gn.lineStart=Yn},polygonEnd:function(){var e=2*$n;jn+=e<0?4*Le+e:e,Gn.lineStart=Gn.lineEnd=Gn.point=B}};function Yn(){var e,t,n,r,a;function o(e,t){e*=Re,t=t*Re/2+Le/4;var o=e-n,i=o>=0?1:-1,l=i*o,s=Math.cos(t),u=Math.sin(t),c=a*u,f=r*s+c*Math.cos(l),p=c*i*Math.sin(l);$n.add(Math.atan2(p,f)),n=e,r=s,a=u}Gn.point=function(i,l){Gn.point=o,n=(e=i)*Re,r=Math.cos(l=(t=l)*Re/2+Le/4),a=Math.sin(l)},Gn.lineEnd=function(){o(e,t)}}function Kn(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function Xn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Zn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Jn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Qn(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function er(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function tr(e){return[Math.atan2(e[1],e[0]),Ve(e[2])]}function nr(e,t){return w(e[0]-t[0])<Ae&&w(e[1]-t[1])<Ae}o.geo.bounds=function(){var e,t,n,r,a,i,l,s,u,c,f,p={point:d,lineStart:v,lineEnd:m,polygonStart:function(){p.point=y,p.lineStart=g,p.lineEnd=b,u=0,Gn.polygonStart()},polygonEnd:function(){Gn.polygonEnd(),p.point=d,p.lineStart=v,p.lineEnd=m,$n<0?(e=-(n=180),t=-(r=90)):u>Ae?r=90:u<-Ae&&(t=-90),f[0]=e,f[1]=n}};function d(a,o){c.push(f=[e=a,n=a]),o<t&&(t=o),o>r&&(r=o)}function h(o,i){var l=Kn([o*Re,i*Re]);if(s){var u=Zn(s,l),c=[u[1],-u[0],0],f=Zn(c,u);er(f),f=tr(f);var p=o-a,h=p>0?1:-1,v=f[0]*ze*h,m=w(p)>180;if(m^(h*a<v&&v<h*o)){var y=f[1]*ze;y>r&&(r=y)}else if(v=(v+360)%360-180,m^(h*a<v&&v<h*o)){y=-f[1]*ze;y<t&&(t=y)}else i<t&&(t=i),i>r&&(r=i);m?o<a?x(e,o)>x(e,n)&&(n=o):x(o,n)>x(e,n)&&(e=o):n>=e?(o<e&&(e=o),o>n&&(n=o)):o>a?x(e,o)>x(e,n)&&(n=o):x(o,n)>x(e,n)&&(e=o)}else d(o,i);s=l,a=o}function v(){p.point=h}function m(){f[0]=e,f[1]=n,p.point=d,s=null}function y(e,t){if(s){var n=e-a;u+=w(n)>180?n+(n>0?360:-360):n}else i=e,l=t;Gn.point(e,t),h(e,t)}function g(){Gn.lineStart()}function b(){y(i,l),Gn.lineEnd(),w(u)>Ae&&(e=-(n=180)),f[0]=e,f[1]=n,s=null}function x(e,t){return(t-=e)<0?t+360:t}function _(e,t){return e[0]-t[0]}function k(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}return function(a){r=n=-(e=t=1/0),c=[],o.geo.stream(a,p);var i=c.length;if(i){c.sort(_);for(var l=1,s=c[0],u=[s];l<i;++l)h=c[l],k(h[0],s)||k(h[1],s)?(x(s[0],h[1])>x(s[0],s[1])&&(s[1]=h[1]),x(h[0],s[1])>x(s[0],s[1])&&(s[0]=h[0])):u.push(s=h);var d,h,v=-1/0;for(i=u.length-1,l=0,s=u[i];l<=i;s=h,++l)h=u[l],(d=x(s[1],h[0]))>v&&(v=d,e=h[0],n=s[1])}return c=f=null,e===1/0||t===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,t],[n,r]]}}(),o.geo.centroid=function(e){In=Rn=zn=Nn=Fn=Bn=Vn=Hn=Un=Wn=qn=0,o.geo.stream(e,rr);var t=Un,n=Wn,r=qn,a=t*t+n*n+r*r;return a<Pe&&(t=Bn,n=Vn,r=Hn,Rn<Ae&&(t=zn,n=Nn,r=Fn),a=t*t+n*n+r*r,a<Pe)?[NaN,NaN]:[Math.atan2(n,t)*ze,Ve(r/Math.sqrt(a))*ze]};var rr={sphere:B,point:ar,lineStart:ir,lineEnd:lr,polygonStart:function(){rr.lineStart=sr},polygonEnd:function(){rr.lineStart=ir}};function ar(e,t){e*=Re;var n=Math.cos(t*=Re);or(n*Math.cos(e),n*Math.sin(e),Math.sin(t))}function or(e,t,n){++In,zn+=(e-zn)/In,Nn+=(t-Nn)/In,Fn+=(n-Fn)/In}function ir(){var e,t,n;function r(r,a){r*=Re;var o=Math.cos(a*=Re),i=o*Math.cos(r),l=o*Math.sin(r),s=Math.sin(a),u=Math.atan2(Math.sqrt((u=t*s-n*l)*u+(u=n*i-e*s)*u+(u=e*l-t*i)*u),e*i+t*l+n*s);Rn+=u,Bn+=u*(e+(e=i)),Vn+=u*(t+(t=l)),Hn+=u*(n+(n=s)),or(e,t,n)}rr.point=function(a,o){a*=Re;var i=Math.cos(o*=Re);e=i*Math.cos(a),t=i*Math.sin(a),n=Math.sin(o),rr.point=r,or(e,t,n)}}function lr(){rr.point=ar}function sr(){var e,t,n,r,a;function o(e,t){e*=Re;var o=Math.cos(t*=Re),i=o*Math.cos(e),l=o*Math.sin(e),s=Math.sin(t),u=r*s-a*l,c=a*i-n*s,f=n*l-r*i,p=Math.sqrt(u*u+c*c+f*f),d=n*i+r*l+a*s,h=p&&-Be(d)/p,v=Math.atan2(p,d);Un+=h*u,Wn+=h*c,qn+=h*f,Rn+=v,Bn+=v*(n+(n=i)),Vn+=v*(r+(r=l)),Hn+=v*(a+(a=s)),or(n,r,a)}rr.point=function(i,l){e=i,t=l,rr.point=o,i*=Re;var s=Math.cos(l*=Re);n=s*Math.cos(i),r=s*Math.sin(i),a=Math.sin(l),or(n,r,a)},rr.lineEnd=function(){o(e,t),rr.lineEnd=lr,rr.point=ar}}function ur(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function cr(){return!0}function fr(e,t,n,r,a){var o=[],i=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t];if(nr(n,r)){a.lineStart();for(var l=0;l<t;++l)a.point((n=e[l])[0],n[1]);a.lineEnd()}else{var s=new dr(n,e,null,!0),u=new dr(n,null,s,!1);s.o=u,o.push(s),i.push(u),s=new dr(r,e,null,!1),u=new dr(r,null,s,!0),s.o=u,o.push(s),i.push(u)}}})),i.sort(t),pr(o),pr(i),o.length){for(var l=0,s=n,u=i.length;l<u;++l)i[l].e=s=!s;var c,f,p=o[0];while(1){var d=p,h=!0;while(d.v)if((d=d.n)===p)return;c=d.z,a.lineStart();do{if(d.v=d.o.v=!0,d.e){if(h)for(l=0,u=c.length;l<u;++l)a.point((f=c[l])[0],f[1]);else r(d.x,d.n.x,1,a);d=d.n}else{if(h){c=d.p.z;for(l=c.length-1;l>=0;--l)a.point((f=c[l])[0],f[1])}else r(d.x,d.p.x,-1,a);d=d.p}d=d.o,c=d.z,h=!h}while(!d.v);a.lineEnd()}}}function pr(e){if(t=e.length){var t,n,r=0,a=e[0];while(++r<t)a.n=n=e[r],n.p=a,a=n;a.n=n=e[0],n.p=a}}function dr(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function hr(e,t,n,r){return function(a,i){var l,s=t(i),u=a.invert(r[0],r[1]),c={point:f,lineStart:d,lineEnd:h,polygonStart:function(){c.point=x,c.lineStart=_,c.lineEnd=w,l=[],v=[]},polygonEnd:function(){c.point=f,c.lineStart=d,c.lineEnd=h,l=o.merge(l);var e=wr(u,v);l.length?(b||(i.polygonStart(),b=!0),fr(l,yr,e,n,i)):e&&(b||(i.polygonStart(),b=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),l=v=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(t,n){var r=a(t,n);e(t=r[0],n=r[1])&&i.point(t,n)}function p(e,t){var n=a(e,t);s.point(n[0],n[1])}function d(){c.point=p,s.lineStart()}function h(){c.point=f,s.lineEnd()}var v,m,y=mr(),g=t(y),b=!1;function x(e,t){m.push([e,t]);var n=a(e,t);g.point(n[0],n[1])}function _(){g.lineStart(),m=[]}function w(){x(m[0][0],m[0][1]),g.lineEnd();var e,t=g.clean(),n=y.buffer(),r=n.length;if(m.pop(),v.push(m),m=null,r)if(1&t){e=n[0];r=e.length-1;var a,o=-1;if(r>0){b||(i.polygonStart(),b=!0),i.lineStart();while(++o<r)i.point((a=e[o])[0],a[1]);i.lineEnd()}}else r>1&&2&t&&n.push(n.pop().concat(n.shift())),l.push(n.filter(vr))}return c}}function vr(e){return e.length>1}function mr(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:B,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function yr(e,t){return((e=e.x)[0]<0?e[1]-Ie-Ae:Ie-e[1])-((t=t.x)[0]<0?t[1]-Ie-Ae:Ie-t[1])}var gr=hr(cr,br,_r,[-Le,-Le/2]);function br(e){var t,n=NaN,r=NaN,a=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,i){var l=o>0?Le:-Le,s=w(o-n);w(s-Le)<Ae?(e.point(n,r=(r+i)/2>0?Ie:-Ie),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(l,r),e.point(o,r),t=0):a!==l&&s>=Le&&(w(n-a)<Ae&&(n-=a*Ae),w(o-l)<Ae&&(o-=l*Ae),r=xr(n,r,o,i),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(l,r),t=0),e.point(n=o,r=i),a=l},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}function xr(e,t,n,r){var a,o,i=Math.sin(e-n);return w(i)>Ae?Math.atan((Math.sin(t)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(a=Math.cos(t))*Math.sin(e))/(a*o*i)):(t+r)/2}function _r(e,t,n,r){var a;if(null==e)a=n*Ie,r.point(-Le,a),r.point(0,a),r.point(Le,a),r.point(Le,0),r.point(Le,-a),r.point(0,-a),r.point(-Le,-a),r.point(-Le,0),r.point(-Le,a);else if(w(e[0]-t[0])>Ae){var o=e[0]<t[0]?Le:-Le;a=n*o/2,r.point(-o,a),r.point(0,a),r.point(o,a)}else r.point(t[0],t[1])}function wr(e,t){var n=e[0],r=e[1],a=[Math.sin(n),-Math.cos(n),0],o=0,i=0;$n.reset();for(var l=0,s=t.length;l<s;++l){var u=t[l],c=u.length;if(c){var f=u[0],p=f[0],d=f[1]/2+Le/4,h=Math.sin(d),v=Math.cos(d),m=1;while(1){m===c&&(m=0),e=u[m];var y=e[0],g=e[1]/2+Le/4,b=Math.sin(g),x=Math.cos(g),_=y-p,w=_>=0?1:-1,k=w*_,T=k>Le,E=h*b;if($n.add(Math.atan2(E*w*Math.sin(k),v*x+E*Math.cos(k))),o+=T?_+w*De:_,T^p>=n^y>=n){var O=Zn(Kn(f),Kn(e));er(O);var M=Zn(a,O);er(M);var S=(T^_>=0?-1:1)*Ve(M[2]);(r>S||r===S&&(O[0]||O[1]))&&(i+=T^_>=0?1:-1)}if(!m++)break;p=y,h=b,v=x,f=e}}}return(o<-Ae||o<Ae&&$n<-Ae)^1&i}function kr(e){var t=Math.cos(e),n=t>0,r=w(t)>Ae,a=la(e,6*Re);return hr(o,i,a,n?[0,-e]:[-Le,e-Le]);function o(e,n){return Math.cos(e)*Math.cos(n)>t}function i(e){var t,a,i,u,c;return{lineStart:function(){u=i=!1,c=1},point:function(f,p){var d,h=[f,p],v=o(f,p),m=n?v?0:s(f,p):v?s(f+(f<0?Le:-Le),p):0;if(!t&&(u=i=v)&&e.lineStart(),v!==i&&(d=l(t,h),(nr(t,d)||nr(h,d))&&(h[0]+=Ae,h[1]+=Ae,v=o(h[0],h[1]))),v!==i)c=0,v?(e.lineStart(),d=l(h,t),e.point(d[0],d[1])):(d=l(t,h),e.point(d[0],d[1]),e.lineEnd()),t=d;else if(r&&t&&n^v){var y;m&a||!(y=l(h,t,!0))||(c=0,n?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!v||t&&nr(t,h)||e.point(h[0],h[1]),t=h,i=v,a=m},lineEnd:function(){i&&e.lineEnd(),t=null},clean:function(){return c|(u&&i)<<1}}}function l(e,n,r){var a=Kn(e),o=Kn(n),i=[1,0,0],l=Zn(a,o),s=Xn(l,l),u=l[0],c=s-u*u;if(!c)return!r&&e;var f=t*s/c,p=-t*u/c,d=Zn(i,l),h=Qn(i,f),v=Qn(l,p);Jn(h,v);var m=d,y=Xn(h,m),g=Xn(m,m),b=y*y-g*(Xn(h,h)-1);if(!(b<0)){var x=Math.sqrt(b),_=Qn(m,(-y-x)/g);if(Jn(_,h),_=tr(_),!r)return _;var k,T=e[0],E=n[0],O=e[1],M=n[1];E<T&&(k=T,T=E,E=k);var S=E-T,C=w(S-Le)<Ae,A=C||S<Ae;if(!C&&M<O&&(k=O,O=M,M=k),A?C?O+M>0^_[1]<(w(_[0]-T)<Ae?O:M):O<=_[1]&&_[1]<=M:S>Le^(T<=_[0]&&_[0]<=E)){var P=Qn(m,(-y+x)/g);return Jn(P,h),[_,tr(P)]}}}function s(t,r){var a=n?e:Le-e,o=0;return t<-a?o|=1:t>a&&(o|=2),r<-a?o|=4:r>a&&(o|=8),o}}function Tr(e,t,n,r){return function(a){var o,i=a.a,l=a.b,s=i.x,u=i.y,c=l.x,f=l.y,p=0,d=1,h=c-s,v=f-u;if(o=e-s,h||!(o>0)){if(o/=h,h<0){if(o<p)return;o<d&&(d=o)}else if(h>0){if(o>d)return;o>p&&(p=o)}if(o=n-s,h||!(o<0)){if(o/=h,h<0){if(o>d)return;o>p&&(p=o)}else if(h>0){if(o<p)return;o<d&&(d=o)}if(o=t-u,v||!(o>0)){if(o/=v,v<0){if(o<p)return;o<d&&(d=o)}else if(v>0){if(o>d)return;o>p&&(p=o)}if(o=r-u,v||!(o<0)){if(o/=v,v<0){if(o>d)return;o>p&&(p=o)}else if(v>0){if(o<p)return;o<d&&(d=o)}return p>0&&(a.a={x:s+p*h,y:u+p*v}),d<1&&(a.b={x:s+d*h,y:u+d*v}),a}}}}}}var Er=1e9;function Or(e,t,n,r){return function(s){var u,c,f,p,d,h,v,m,y,g,b,x=s,_=mr(),w=Tr(e,t,n,r),k={point:M,lineStart:S,lineEnd:C,polygonStart:function(){s=_,u=[],c=[],b=!0},polygonEnd:function(){s=x,u=o.merge(u);var t=T([e,r]),n=b&&t,a=u.length;(n||a)&&(s.polygonStart(),n&&(s.lineStart(),E(null,null,1,s),s.lineEnd()),a&&fr(u,i,t,E,s),s.polygonEnd()),u=c=f=null}};function T(e){for(var t=0,n=c.length,r=e[1],a=0;a<n;++a)for(var o,i=1,l=c[a],s=l.length,u=l[0];i<s;++i)o=l[i],u[1]<=r?o[1]>r&&Fe(u,o,e)>0&&++t:o[1]<=r&&Fe(u,o,e)<0&&--t,u=o;return 0!==t}function E(o,i,s,u){var c=0,f=0;if(null==o||(c=a(o,s))!==(f=a(i,s))||l(o,i)<0^s>0)do{u.point(0===c||3===c?e:n,c>1?r:t)}while((c=(c+s+4)%4)!==f);else u.point(i[0],i[1])}function O(a,o){return e<=a&&a<=n&&t<=o&&o<=r}function M(e,t){O(e,t)&&s.point(e,t)}function S(){k.point=A,c&&c.push(f=[]),g=!0,y=!1,v=m=NaN}function C(){u&&(A(p,d),h&&y&&_.rejoin(),u.push(_.buffer())),k.point=M,y&&s.lineEnd()}function A(e,t){e=Math.max(-Er,Math.min(Er,e)),t=Math.max(-Er,Math.min(Er,t));var n=O(e,t);if(c&&f.push([e,t]),g)p=e,d=t,h=n,g=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&y)s.point(e,t);else{var r={a:{x:v,y:m},b:{x:e,y:t}};w(r)?(y||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),b=!1):n&&(s.lineStart(),s.point(e,t),b=!1)}v=e,m=t,y=n}return k};function a(r,a){return w(r[0]-e)<Ae?a>0?0:3:w(r[0]-n)<Ae?a>0?2:1:w(r[1]-t)<Ae?a>0?1:0:a>0?3:2}function i(e,t){return l(e.x,t.x)}function l(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function Mr(e){var t=0,n=Le/3,r=Qr(e),a=r(t,n);return a.parallels=function(e){return arguments.length?r(t=e[0]*Le/180,n=e[1]*Le/180):[t/Le*180,n/Le*180]},a}function Sr(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,a=1+n*(2*r-n),o=Math.sqrt(a)/r;function i(e,t){var n=Math.sqrt(a-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),o-n*Math.cos(e)]}return i.invert=function(e,t){var n=o-t;return[Math.atan2(e,n)/r,Ve((a-(e*e+n*n)*r*r)/(2*r))]},i}o.geo.clipExtent=function(){var e,t,n,r,a,o,i={stream:function(e){return a&&(a.valid=!1),a=o(e),a.valid=!0,a},extent:function(l){return arguments.length?(o=Or(e=+l[0][0],t=+l[0][1],n=+l[1][0],r=+l[1][1]),a&&(a.valid=!1,a=null),i):[[e,t],[n,r]]}};return i.extent([[0,0],[960,500]])},(o.geo.conicEqualArea=function(){return Mr(Sr)}).raw=Sr,o.geo.albers=function(){return o.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},o.geo.albersUsa=function(){var e,t,n,r,a=o.geo.albers(),i=o.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=o.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){e=[t,n]}};function u(a){var o=a[0],i=a[1];return e=null,t(o,i),e||(n(o,i),e)||r(o,i),e}return u.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?i:o>=.166&&o<.234&&r>=-.214&&r<-.115?l:a).invert(e)},u.stream=function(e){var t=a.stream(e),n=i.stream(e),r=l.stream(e);return{point:function(e,a){t.point(e,a),n.point(e,a),r.point(e,a)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},u.precision=function(e){return arguments.length?(a.precision(e),i.precision(e),l.precision(e),u):a.precision()},u.scale=function(e){return arguments.length?(a.scale(e),i.scale(.35*e),l.scale(e),u.translate(a.translate())):a.scale()},u.translate=function(e){if(!arguments.length)return a.translate();var o=a.scale(),c=+e[0],f=+e[1];return t=a.translate(e).clipExtent([[c-.455*o,f-.238*o],[c+.455*o,f+.238*o]]).stream(s).point,n=i.translate([c-.307*o,f+.201*o]).clipExtent([[c-.425*o+Ae,f+.12*o+Ae],[c-.214*o-Ae,f+.234*o-Ae]]).stream(s).point,r=l.translate([c-.205*o,f+.212*o]).clipExtent([[c-.214*o+Ae,f+.166*o+Ae],[c-.115*o-Ae,f+.234*o-Ae]]).stream(s).point,u},u.scale(1070)};var Cr,Ar,Pr,Lr,Dr,jr,Ir={point:B,lineStart:B,lineEnd:B,polygonStart:function(){Ar=0,Ir.lineStart=Rr},polygonEnd:function(){Ir.lineStart=Ir.lineEnd=Ir.point=B,Cr+=w(Ar/2)}};function Rr(){var e,t,n,r;function a(e,t){Ar+=r*e-n*t,n=e,r=t}Ir.point=function(o,i){Ir.point=a,e=n=o,t=r=i},Ir.lineEnd=function(){a(e,t)}}var zr={point:Nr,lineStart:B,lineEnd:B,polygonStart:B,polygonEnd:B};function Nr(e,t){e<Pr&&(Pr=e),e>Dr&&(Dr=e),t<Lr&&(Lr=t),t>jr&&(jr=t)}function Fr(){var e=Br(4.5),t=[],n={point:r,lineStart:function(){n.point=a},lineEnd:i,polygonStart:function(){n.lineEnd=l},polygonEnd:function(){n.lineEnd=i,n.point=r},pointRadius:function(t){return e=Br(t),n},result:function(){if(t.length){var e=t.join("");return t=[],e}}};function r(n,r){t.push("M",n,",",r,e)}function a(e,r){t.push("M",e,",",r),n.point=o}function o(e,n){t.push("L",e,",",n)}function i(){n.point=r}function l(){t.push("Z")}return n}function Br(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var Vr,Hr={point:Ur,lineStart:Wr,lineEnd:qr,polygonStart:function(){Hr.lineStart=$r},polygonEnd:function(){Hr.point=Ur,Hr.lineStart=Wr,Hr.lineEnd=qr}};function Ur(e,t){zn+=e,Nn+=t,++Fn}function Wr(){var e,t;function n(n,r){var a=n-e,o=r-t,i=Math.sqrt(a*a+o*o);Bn+=i*(e+n)/2,Vn+=i*(t+r)/2,Hn+=i,Ur(e=n,t=r)}Hr.point=function(r,a){Hr.point=n,Ur(e=r,t=a)}}function qr(){Hr.point=Ur}function $r(){var e,t,n,r;function a(e,t){var a=e-n,o=t-r,i=Math.sqrt(a*a+o*o);Bn+=i*(n+e)/2,Vn+=i*(r+t)/2,Hn+=i,i=r*e-n*t,Un+=i*(n+e),Wn+=i*(r+t),qn+=3*i,Ur(n=e,r=t)}Hr.point=function(o,i){Hr.point=a,Ur(e=n=o,t=r=i)},Hr.lineEnd=function(){a(e,t)}}function Gr(e){var t=4.5,n={point:r,lineStart:function(){n.point=a},lineEnd:i,polygonStart:function(){n.lineEnd=l},polygonEnd:function(){n.lineEnd=i,n.point=r},pointRadius:function(e){return t=e,n},result:B};function r(n,r){e.moveTo(n+t,r),e.arc(n,r,t,0,De)}function a(t,r){e.moveTo(t,r),n.point=o}function o(t,n){e.lineTo(t,n)}function i(){n.point=r}function l(){e.closePath()}return n}function Yr(e){var t=.5,n=Math.cos(30*Re),r=16;function a(e){return(r?i:o)(e)}function o(t){return Zr(t,(function(n,r){n=e(n,r),t.point(n[0],n[1])}))}function i(t){var n,a,o,i,s,u,c,f,p,d,h,v,m={point:y,lineStart:g,lineEnd:x,polygonStart:function(){t.polygonStart(),m.lineStart=_},polygonEnd:function(){t.polygonEnd(),m.lineStart=g}};function y(n,r){n=e(n,r),t.point(n[0],n[1])}function g(){f=NaN,m.point=b,t.lineStart()}function b(n,a){var o=Kn([n,a]),i=e(n,a);l(f,p,c,d,h,v,f=i[0],p=i[1],c=n,d=o[0],h=o[1],v=o[2],r,t),t.point(f,p)}function x(){m.point=y,t.lineEnd()}function _(){g(),m.point=w,m.lineEnd=k}function w(e,t){b(n=e,t),a=f,o=p,i=d,s=h,u=v,m.point=b}function k(){l(f,p,c,d,h,v,a,o,n,i,s,u,r,t),m.lineEnd=x,x()}return m}function l(r,a,o,i,s,u,c,f,p,d,h,v,m,y){var g=c-r,b=f-a,x=g*g+b*b;if(x>4*t&&m--){var _=i+d,k=s+h,T=u+v,E=Math.sqrt(_*_+k*k+T*T),O=Math.asin(T/=E),M=w(w(T)-1)<Ae||w(o-p)<Ae?(o+p)/2:Math.atan2(k,_),S=e(M,O),C=S[0],A=S[1],P=C-r,L=A-a,D=b*P-g*L;(D*D/x>t||w((g*P+b*L)/x-.5)>.3||i*d+s*h+u*v<n)&&(l(r,a,o,i,s,u,C,A,M,_/=E,k/=E,T,m,y),y.point(C,A),l(C,A,M,_,k,T,c,f,p,d,h,v,m,y))}}return a.precision=function(e){return arguments.length?(r=(t=e*e)>0&&16,a):Math.sqrt(t)},a}function Kr(e){var t=Yr((function(t,n){return e([t*ze,n*ze])}));return function(e){return ea(t(e))}}function Xr(e){this.stream=e}function Zr(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Jr(e){return Qr((function(){return e}))()}function Qr(e){var t,n,r,a,i,l,s=Yr((function(e,n){return e=t(e,n),[e[0]*u+a,i-e[1]*u]})),u=150,c=480,f=250,p=0,d=0,h=0,v=0,m=0,y=gr,g=R,b=null,x=null;function _(e){return e=r(e[0]*Re,e[1]*Re),[e[0]*u+a,i-e[1]*u]}function w(e){return e=r.invert((e[0]-a)/u,(i-e[1])/u),e&&[e[0]*ze,e[1]*ze]}function k(){r=ur(n=ra(h,v,m),t);var e=t(p,d);return a=c-e[0]*u,i=f+e[1]*u,T()}function T(){return l&&(l.valid=!1,l=null),_}return _.stream=function(e){return l&&(l.valid=!1),l=ea(y(n,s(g(e)))),l.valid=!0,l},_.clipAngle=function(e){return arguments.length?(y=null==e?(b=e,gr):kr((b=+e)*Re),T()):b},_.clipExtent=function(e){return arguments.length?(x=e,g=e?Or(e[0][0],e[0][1],e[1][0],e[1][1]):R,T()):x},_.scale=function(e){return arguments.length?(u=+e,k()):u},_.translate=function(e){return arguments.length?(c=+e[0],f=+e[1],k()):[c,f]},_.center=function(e){return arguments.length?(p=e[0]%360*Re,d=e[1]%360*Re,k()):[p*ze,d*ze]},_.rotate=function(e){return arguments.length?(h=e[0]%360*Re,v=e[1]%360*Re,m=e.length>2?e[2]%360*Re:0,k()):[h*ze,v*ze,m*ze]},o.rebind(_,s,"precision"),function(){return t=e.apply(this,arguments),_.invert=t.invert&&w,k()}}function ea(e){return Zr(e,(function(t,n){e.point(t*Re,n*Re)}))}function ta(e,t){return[e,t]}function na(e,t){return[e>Le?e-De:e<-Le?e+De:e,t]}function ra(e,t,n){return e?t||n?ur(oa(e),ia(t,n)):oa(e):t||n?ia(t,n):na}function aa(e){return function(t,n){return t+=e,[t>Le?t-De:t<-Le?t+De:t,n]}}function oa(e){var t=aa(e);return t.invert=aa(-e),t}function ia(e,t){var n=Math.cos(e),r=Math.sin(e),a=Math.cos(t),o=Math.sin(t);function i(e,t){var i=Math.cos(t),l=Math.cos(e)*i,s=Math.sin(e)*i,u=Math.sin(t),c=u*n+l*r;return[Math.atan2(s*a-c*o,l*n-u*r),Ve(c*a+s*o)]}return i.invert=function(e,t){var i=Math.cos(t),l=Math.cos(e)*i,s=Math.sin(e)*i,u=Math.sin(t),c=u*a-s*o;return[Math.atan2(s*a+u*o,l*n+c*r),Ve(c*n-l*r)]},i}function la(e,t){var n=Math.cos(e),r=Math.sin(e);return function(a,o,i,l){var s=i*t;null!=a?(a=sa(n,a),o=sa(n,o),(i>0?a<o:a>o)&&(a+=i*De)):(a=e+i*De,o=e-.5*s);for(var u,c=a;i>0?c>o:c<o;c-=s)l.point((u=tr([n,-r*Math.cos(c),-r*Math.sin(c)]))[0],u[1])}}function sa(e,t){var n=Kn(t);n[0]-=e,er(n);var r=Be(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Ae)%(2*Math.PI)}function ua(e,t,n){var r=o.range(e,t-Ae,n).concat(t);return function(e){return r.map((function(t){return[e,t]}))}}function ca(e,t,n){var r=o.range(e,t-Ae,n).concat(t);return function(e){return r.map((function(t){return[t,e]}))}}function fa(e){return e.source}function pa(e){return e.target}function da(e,t,n,r){var a=Math.cos(t),o=Math.sin(t),i=Math.cos(r),l=Math.sin(r),s=a*Math.cos(e),u=a*Math.sin(e),c=i*Math.cos(n),f=i*Math.sin(n),p=2*Math.asin(Math.sqrt(qe(r-t)+a*i*qe(n-e))),d=1/Math.sin(p),h=p?function(e){var t=Math.sin(e*=p)*d,n=Math.sin(p-e)*d,r=n*s+t*c,a=n*u+t*f,i=n*o+t*l;return[Math.atan2(a,r)*ze,Math.atan2(i,Math.sqrt(r*r+a*a))*ze]}:function(){return[e*ze,t*ze]};return h.distance=p,h}o.geo.path=function(){var e,t,n,r,a,i=4.5;function l(e){return e&&("function"===typeof i&&r.pointRadius(+i.apply(this,arguments)),a&&a.valid||(a=n(r)),o.geo.stream(e,a)),r.result()}function s(){return a=null,l}return l.area=function(e){return Cr=0,o.geo.stream(e,n(Ir)),Cr},l.centroid=function(e){return zn=Nn=Fn=Bn=Vn=Hn=Un=Wn=qn=0,o.geo.stream(e,n(Hr)),qn?[Un/qn,Wn/qn]:Hn?[Bn/Hn,Vn/Hn]:Fn?[zn/Fn,Nn/Fn]:[NaN,NaN]},l.bounds=function(e){return Dr=jr=-(Pr=Lr=1/0),o.geo.stream(e,n(zr)),[[Pr,Lr],[Dr,jr]]},l.projection=function(t){return arguments.length?(n=(e=t)?t.stream||Kr(t):R,s()):e},l.context=function(e){return arguments.length?(r=null==(t=e)?new Fr:new Gr(e),"function"!==typeof i&&r.pointRadius(i),s()):t},l.pointRadius=function(e){return arguments.length?(i="function"===typeof e?e:(r.pointRadius(+e),+e),l):i},l.projection(o.geo.albersUsa()).context(null)},o.geo.transform=function(e){return{stream:function(t){var n=new Xr(t);for(var r in e)n[r]=e[r];return n}}},Xr.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},o.geo.projection=Jr,o.geo.projectionMutator=Qr,(o.geo.equirectangular=function(){return Jr(ta)}).raw=ta.invert=ta,o.geo.rotation=function(e){function t(t){return t=e(t[0]*Re,t[1]*Re),t[0]*=ze,t[1]*=ze,t}return e=ra(e[0]%360*Re,e[1]*Re,e.length>2?e[2]*Re:0),t.invert=function(t){return t=e.invert(t[0]*Re,t[1]*Re),t[0]*=ze,t[1]*=ze,t},t},na.invert=ta,o.geo.circle=function(){var e,t,n=[0,0],r=6;function a(){var e="function"===typeof n?n.apply(this,arguments):n,r=ra(-e[0]*Re,-e[1]*Re,0).invert,a=[];return t(null,null,1,{point:function(e,t){a.push(e=r(e,t)),e[0]*=ze,e[1]*=ze}}),{type:"Polygon",coordinates:[a]}}return a.origin=function(e){return arguments.length?(n=e,a):n},a.angle=function(n){return arguments.length?(t=la((e=+n)*Re,r*Re),a):e},a.precision=function(n){return arguments.length?(t=la(e*Re,(r=+n)*Re),a):r},a.angle(90)},o.geo.distance=function(e,t){var n,r=(t[0]-e[0])*Re,a=e[1]*Re,o=t[1]*Re,i=Math.sin(r),l=Math.cos(r),s=Math.sin(a),u=Math.cos(a),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*i)*n+(n=u*c-s*f*l)*n),s*c+u*f*l)},o.geo.graticule=function(){var e,t,n,r,a,i,l,s,u,c,f,p,d=10,h=d,v=90,m=360,y=2.5;function g(){return{type:"MultiLineString",coordinates:b()}}function b(){return o.range(Math.ceil(r/v)*v,n,v).map(f).concat(o.range(Math.ceil(s/m)*m,l,m).map(p)).concat(o.range(Math.ceil(t/d)*d,e,d).filter((function(e){return w(e%v)>Ae})).map(u)).concat(o.range(Math.ceil(i/h)*h,a,h).filter((function(e){return w(e%m)>Ae})).map(c))}return g.lines=function(){return b().map((function(e){return{type:"LineString",coordinates:e}}))},g.outline=function(){return{type:"Polygon",coordinates:[f(r).concat(p(l).slice(1),f(n).reverse().slice(1),p(s).reverse().slice(1))]}},g.extent=function(e){return arguments.length?g.majorExtent(e).minorExtent(e):g.minorExtent()},g.majorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],l=+e[1][1],r>n&&(e=r,r=n,n=e),s>l&&(e=s,s=l,l=e),g.precision(y)):[[r,s],[n,l]]},g.minorExtent=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],i=+n[0][1],a=+n[1][1],t>e&&(n=t,t=e,e=n),i>a&&(n=i,i=a,a=n),g.precision(y)):[[t,i],[e,a]]},g.step=function(e){return arguments.length?g.majorStep(e).minorStep(e):g.minorStep()},g.majorStep=function(e){return arguments.length?(v=+e[0],m=+e[1],g):[v,m]},g.minorStep=function(e){return arguments.length?(d=+e[0],h=+e[1],g):[d,h]},g.precision=function(o){return arguments.length?(y=+o,u=ua(i,a,90),c=ca(t,e,y),f=ua(s,l,90),p=ca(r,n,y),g):y},g.majorExtent([[-180,-90+Ae],[180,90-Ae]]).minorExtent([[-180,-80-Ae],[180,80+Ae]])},o.geo.greatArc=function(){var e,t,n=fa,r=pa;function a(){return{type:"LineString",coordinates:[e||n.apply(this,arguments),t||r.apply(this,arguments)]}}return a.distance=function(){return o.geo.distance(e||n.apply(this,arguments),t||r.apply(this,arguments))},a.source=function(t){return arguments.length?(n=t,e="function"===typeof t?null:t,a):n},a.target=function(e){return arguments.length?(r=e,t="function"===typeof e?null:e,a):r},a.precision=function(){return arguments.length?a:0},a},o.geo.interpolate=function(e,t){return da(e[0]*Re,e[1]*Re,t[0]*Re,t[1]*Re)},o.geo.length=function(e){return Vr=0,o.geo.stream(e,ha),Vr};var ha={sphere:B,point:B,lineStart:va,lineEnd:B,polygonStart:B,polygonEnd:B};function va(){var e,t,n;function r(r,a){var o=Math.sin(a*=Re),i=Math.cos(a),l=w((r*=Re)-e),s=Math.cos(l);Vr+=Math.atan2(Math.sqrt((l=i*Math.sin(l))*l+(l=n*o-t*i*s)*l),t*o+n*i*s),e=r,t=o,n=i}ha.point=function(a,o){e=a*Re,t=Math.sin(o*=Re),n=Math.cos(o),ha.point=r},ha.lineEnd=function(){ha.point=ha.lineEnd=B}}function ma(e,t){function n(t,n){var r=Math.cos(t),a=Math.cos(n),o=e(r*a);return[o*a*Math.sin(t),o*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),a=t(r),o=Math.sin(a),i=Math.cos(a);return[Math.atan2(e*o,r*i),Math.asin(r&&n*o/r)]},n}var ya=ma((function(e){return Math.sqrt(2/(1+e))}),(function(e){return 2*Math.asin(e/2)}));(o.geo.azimuthalEqualArea=function(){return Jr(ya)}).raw=ya;var ga=ma((function(e){var t=Math.acos(e);return t&&t/Math.sin(t)}),R);function ba(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Le/4+e/2)},a=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),o=n*Math.pow(r(e),a)/a;if(!a)return wa;function i(e,t){o>0?t<-Ie+Ae&&(t=-Ie+Ae):t>Ie-Ae&&(t=Ie-Ae);var n=o/Math.pow(r(t),a);return[n*Math.sin(a*e),o-n*Math.cos(a*e)]}return i.invert=function(e,t){var n=o-t,r=Ne(a)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/a,2*Math.atan(Math.pow(o/r,1/a))-Ie]},i}function xa(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),a=n/r+e;if(w(r)<Ae)return ta;function o(e,t){var n=a-t;return[n*Math.sin(r*e),a-n*Math.cos(r*e)]}return o.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/r,a-Ne(r)*Math.sqrt(e*e+n*n)]},o}(o.geo.azimuthalEquidistant=function(){return Jr(ga)}).raw=ga,(o.geo.conicConformal=function(){return Mr(ba)}).raw=ba,(o.geo.conicEquidistant=function(){return Mr(xa)}).raw=xa;var _a=ma((function(e){return 1/e}),Math.atan);function wa(e,t){return[e,Math.log(Math.tan(Le/4+t/2))]}function ka(e){var t,n=Jr(e),r=n.scale,a=n.translate,o=n.clipExtent;return n.scale=function(){var e=r.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.translate=function(){var e=a.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.clipExtent=function(e){var i=o.apply(n,arguments);if(i===n){if(t=null==e){var l=Le*r(),s=a();o([[s[0]-l,s[1]-l],[s[0]+l,s[1]+l]])}}else t&&(i=null);return i},n.clipExtent(null)}(o.geo.gnomonic=function(){return Jr(_a)}).raw=_a,wa.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-Ie]},(o.geo.mercator=function(){return ka(wa)}).raw=wa;var Ta=ma((function(){return 1}),Math.asin);(o.geo.orthographic=function(){return Jr(Ta)}).raw=Ta;var Ea=ma((function(e){return 1/(1+e)}),(function(e){return 2*Math.atan(e)}));function Oa(e,t){return[Math.log(Math.tan(Le/4+t/2)),-e]}function Ma(e){return e[0]}function Sa(e){return e[1]}function Ca(e){for(var t=e.length,n=[0,1],r=2,a=2;a<t;a++){while(r>1&&Fe(e[n[r-2]],e[n[r-1]],e[a])<=0)--r;n[r++]=a}return n.slice(0,r)}function Aa(e,t){return e[0]-t[0]||e[1]-t[1]}(o.geo.stereographic=function(){return Jr(Ea)}).raw=Ea,Oa.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Ie]},(o.geo.transverseMercator=function(){var e=ka(Oa),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=Oa,o.geom={},o.geom.hull=function(e){var t=Ma,n=Sa;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,a=Mt(t),o=Mt(n),i=e.length,l=[],s=[];for(r=0;r<i;r++)l.push([+a.call(this,e[r],r),+o.call(this,e[r],r),r]);for(l.sort(Aa),r=0;r<i;r++)s.push([l[r][0],-l[r][1]]);var u=Ca(l),c=Ca(s),f=c[0]===u[0],p=c[c.length-1]===u[u.length-1],d=[];for(r=u.length-1;r>=0;--r)d.push(e[l[u[r]][2]]);for(r=+f;r<c.length-p;++r)d.push(e[l[c[r]][2]]);return d}return r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(e){return arguments.length?(n=e,r):n},r},o.geom.polygon=function(e){return G(e,Pa),e};var Pa=o.geom.polygon.prototype=[];function La(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function Da(e,t,n,r){var a=e[0],o=n[0],i=t[0]-a,l=r[0]-o,s=e[1],u=n[1],c=t[1]-s,f=r[1]-u,p=(l*(s-u)-f*(a-o))/(f*i-l*c);return[a+p*i,s+p*c]}function ja(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}Pa.area=function(){var e,t=-1,n=this.length,r=this[n-1],a=0;while(++t<n)e=r,r=this[t],a+=e[1]*r[0]-e[0]*r[1];return.5*a},Pa.centroid=function(e){var t,n,r=-1,a=this.length,o=0,i=0,l=this[a-1];arguments.length||(e=-1/(6*this.area()));while(++r<a)t=l,l=this[r],n=t[0]*l[1]-l[0]*t[1],o+=(t[0]+l[0])*n,i+=(t[1]+l[1])*n;return[o*e,i*e]},Pa.clip=function(e){var t,n,r,a,o,i,l=ja(e),s=-1,u=this.length-ja(this),c=this[u-1];while(++s<u){t=e.slice(),e.length=0,a=this[s],o=t[(r=t.length-l)-1],n=-1;while(++n<r)i=t[n],La(i,c,a)?(La(o,c,a)||e.push(Da(o,i,c,a)),e.push(i)):La(o,c,a)&&e.push(Da(o,i,c,a)),o=i;l&&e.push(e[0]),c=a}return e};var Ia,Ra,za,Na,Fa,Ba=[],Va=[];function Ha(){uo(this),this.edge=this.site=this.circle=null}function Ua(e){var t=Ba.pop()||new Ha;return t.site=e,t}function Wa(e){eo(e),za.remove(e),Ba.push(e),uo(e)}function qa(e){var t=e.circle,n=t.x,r=t.cy,a={x:n,y:r},o=e.P,i=e.N,l=[e];Wa(e);var s=o;while(s.circle&&w(n-s.circle.x)<Ae&&w(r-s.circle.cy)<Ae)o=s.P,l.unshift(s),Wa(s),s=o;l.unshift(s),eo(s);var u=i;while(u.circle&&w(n-u.circle.x)<Ae&&w(r-u.circle.cy)<Ae)i=u.N,l.push(u),Wa(u),u=i;l.push(u),eo(u);var c,f=l.length;for(c=1;c<f;++c)u=l[c],s=l[c-1],io(u.edge,s.site,u.site,a);s=l[0],u=l[f-1],u.edge=ao(s.site,u.site,null,a),Qa(s),Qa(u)}function $a(e){var t,n,r,a,o=e.x,i=e.y,l=za._;while(l)if(r=Ga(l,i)-o,r>Ae)l=l.L;else{if(a=o-Ya(l,i),!(a>Ae)){r>-Ae?(t=l.P,n=l):a>-Ae?(t=l,n=l.N):t=n=l;break}if(!l.R){t=l;break}l=l.R}var s=Ua(e);if(za.insert(t,s),t||n){if(t===n)return eo(t),n=Ua(t.site),za.insert(s,n),s.edge=n.edge=ao(t.site,s.site),Qa(t),void Qa(n);if(n){eo(t),eo(n);var u=t.site,c=u.x,f=u.y,p=e.x-c,d=e.y-f,h=n.site,v=h.x-c,m=h.y-f,y=2*(p*m-d*v),g=p*p+d*d,b=v*v+m*m,x={x:(m*g-d*b)/y+c,y:(p*b-v*g)/y+f};io(n.edge,u,h,x),s.edge=ao(u,e,null,x),n.edge=ao(e,h,null,x),Qa(t),Qa(n)}else s.edge=ao(t.site,s.site)}}function Ga(e,t){var n=e.site,r=n.x,a=n.y,o=a-t;if(!o)return r;var i=e.P;if(!i)return-1/0;n=i.site;var l=n.x,s=n.y,u=s-t;if(!u)return l;var c=l-r,f=1/o-1/u,p=c/u;return f?(-p+Math.sqrt(p*p-2*f*(c*c/(-2*u)-s+u/2+a-o/2)))/f+r:(r+l)/2}function Ya(e,t){var n=e.N;if(n)return Ga(n,t);var r=e.site;return r.y===t?r.x:1/0}function Ka(e){this.site=e,this.edges=[]}function Xa(e){var t,n,r,a,o,i,l,s,u,c,f=e[0][0],p=e[1][0],d=e[0][1],h=e[1][1],v=Ra,m=v.length;while(m--)if(o=v[m],o&&o.prepare()){l=o.edges,s=l.length,i=0;while(i<s)c=l[i].end(),r=c.x,a=c.y,u=l[++i%s].start(),t=u.x,n=u.y,(w(r-t)>Ae||w(a-n)>Ae)&&(l.splice(i,0,new lo(oo(o.site,c,w(r-f)<Ae&&h-a>Ae?{x:f,y:w(t-f)<Ae?n:h}:w(a-h)<Ae&&p-r>Ae?{x:w(n-h)<Ae?t:p,y:h}:w(r-p)<Ae&&a-d>Ae?{x:p,y:w(t-p)<Ae?n:d}:w(a-d)<Ae&&r-f>Ae?{x:w(n-d)<Ae?t:f,y:d}:null),o.site,null)),++s)}}function Za(e,t){return t.angle-e.angle}function Ja(){uo(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qa(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,a=e.site,o=n.site;if(r!==o){var i=a.x,l=a.y,s=r.x-i,u=r.y-l,c=o.x-i,f=o.y-l,p=2*(s*f-u*c);if(!(p>=-Pe)){var d=s*s+u*u,h=c*c+f*f,v=(f*d-u*h)/p,m=(s*h-c*d)/p,y=(f=m+l,Va.pop()||new Ja);y.arc=e,y.site=a,y.x=v+i,y.y=f+Math.sqrt(v*v+m*m),y.cy=f,e.circle=y;var g=null,b=Fa._;while(b)if(y.y<b.y||y.y===b.y&&y.x<=b.x){if(!b.L){g=b.P;break}b=b.L}else{if(!b.R){g=b;break}b=b.R}Fa.insert(g,y),g||(Na=y)}}}}function eo(e){var t=e.circle;t&&(t.P||(Na=t.N),Fa.remove(t),Va.push(t),uo(t),e.circle=null)}function to(e){var t,n=Ia,r=Tr(e[0][0],e[0][1],e[1][0],e[1][1]),a=n.length;while(a--)t=n[a],(!no(t,e)||!r(t)||w(t.a.x-t.b.x)<Ae&&w(t.a.y-t.b.y)<Ae)&&(t.a=t.b=null,n.splice(a,1))}function no(e,t){var n=e.b;if(n)return!0;var r,a,o=e.a,i=t[0][0],l=t[1][0],s=t[0][1],u=t[1][1],c=e.l,f=e.r,p=c.x,d=c.y,h=f.x,v=f.y,m=(p+h)/2,y=(d+v)/2;if(v===d){if(m<i||m>=l)return;if(p>h){if(o){if(o.y>=u)return}else o={x:m,y:s};n={x:m,y:u}}else{if(o){if(o.y<s)return}else o={x:m,y:u};n={x:m,y:s}}}else if(r=(p-h)/(v-d),a=y-r*m,r<-1||r>1)if(p>h){if(o){if(o.y>=u)return}else o={x:(s-a)/r,y:s};n={x:(u-a)/r,y:u}}else{if(o){if(o.y<s)return}else o={x:(u-a)/r,y:u};n={x:(s-a)/r,y:s}}else if(d<v){if(o){if(o.x>=l)return}else o={x:i,y:r*i+a};n={x:l,y:r*l+a}}else{if(o){if(o.x<i)return}else o={x:l,y:r*l+a};n={x:i,y:r*i+a}}return e.a=o,e.b=n,!0}function ro(e,t){this.l=e,this.r=t,this.a=this.b=null}function ao(e,t,n,r){var a=new ro(e,t);return Ia.push(a),n&&io(a,e,t,n),r&&io(a,t,e,r),Ra[e.i].edges.push(new lo(a,e,t)),Ra[t.i].edges.push(new lo(a,t,e)),a}function oo(e,t,n){var r=new ro(e,null);return r.a=t,r.b=n,Ia.push(r),r}function io(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function lo(e,t,n){var r=e.a,a=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(a.x-r.x,r.y-a.y):Math.atan2(r.x-a.x,a.y-r.y)}function so(){this._=null}function uo(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function co(e,t){var n=t,r=t.R,a=n.U;a?a.L===n?a.L=r:a.R=r:e._=r,r.U=a,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function fo(e,t){var n=t,r=t.L,a=n.U;a?a.L===n?a.L=r:a.R=r:e._=r,r.U=a,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function po(e){while(e.L)e=e.L;return e}function ho(e,t){var n,r,a,o=e.sort(vo).pop();Ia=[],Ra=new Array(e.length),za=new so,Fa=new so;while(1)if(a=Na,o&&(!a||o.y<a.y||o.y===a.y&&o.x<a.x))o.x===n&&o.y===r||(Ra[o.i]=new Ka(o),$a(o),n=o.x,r=o.y),o=e.pop();else{if(!a)break;qa(a.arc)}t&&(to(t),Xa(t));var i={cells:Ra,edges:Ia};return za=Fa=Ia=Ra=null,i}function vo(e,t){return t.y-e.y||t.x-e.x}Ka.prototype.prepare=function(){var e,t=this.edges,n=t.length;while(n--)e=t[n].edge,e.b&&e.a||t.splice(n,1);return t.sort(Za),t.length},lo.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},so.prototype={insert:function(e,t){var n,r,a;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){e=e.R;while(e.L)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=po(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);t.L=t.R=null,t.U=n,t.C=!0,e=t;while(n&&n.C)r=n.U,n===r.L?(a=r.R,a&&a.C?(n.C=a.C=!1,r.C=!0,e=r):(e===n.R&&(co(this,n),e=n,n=e.U),n.C=!1,r.C=!0,fo(this,r))):(a=r.L,a&&a.C?(n.C=a.C=!1,r.C=!0,e=r):(e===n.L&&(fo(this,n),e=n,n=e.U),n.C=!1,r.C=!0,co(this,r))),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,a=e.U,o=e.L,i=e.R;if(n=o?i?po(i):o:i,a?a.L===e?a.L=n:a.R=n:this._=n,o&&i?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==i?(a=n.U,n.U=e.U,e=n.R,a.L=e,n.R=i,i.U=n):(n.U=a,a=n,e=n.R)):(r=e.C,e=n),e&&(e.U=a),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===a.L){if(t=a.R,t.C&&(t.C=!1,a.C=!0,co(this,a),t=a.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,fo(this,t),t=a.R),t.C=a.C,a.C=t.R.C=!1,co(this,a),e=this._;break}}else if(t=a.L,t.C&&(t.C=!1,a.C=!0,fo(this,a),t=a.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,co(this,t),t=a.L),t.C=a.C,a.C=t.L.C=!1,fo(this,a),e=this._;break}t.C=!0,e=a,a=a.U}while(!e.C);e&&(e.C=!1)}}},o.geom.voronoi=function(e){var t=Ma,n=Sa,r=t,a=n,o=mo;if(e)return i(e);function i(e){var t=new Array(e.length),n=o[0][0],r=o[0][1],a=o[1][0],i=o[1][1];return ho(l(e),o).cells.forEach((function(o,l){var s=o.edges,u=o.site,c=t[l]=s.length?s.map((function(e){var t=e.start();return[t.x,t.y]})):u.x>=n&&u.x<=a&&u.y>=r&&u.y<=i?[[n,i],[a,i],[a,r],[n,r]]:[];c.point=e[l]})),t}function l(e){return e.map((function(e,t){return{x:Math.round(r(e,t)/Ae)*Ae,y:Math.round(a(e,t)/Ae)*Ae,i:t}}))}return i.links=function(e){return ho(l(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},i.triangles=function(e){var t=[];return ho(l(e)).cells.forEach((function(n,r){var a,o=n.site,i=n.edges.sort(Za),l=-1,s=i.length,u=i[s-1].edge,c=u.l===o?u.r:u.l;while(++l<s)u,a=c,u=i[l].edge,c=u.l===o?u.r:u.l,r<a.i&&r<c.i&&yo(o,a,c)<0&&t.push([e[r],e[a.i],e[c.i]])})),t},i.x=function(e){return arguments.length?(r=Mt(t=e),i):t},i.y=function(e){return arguments.length?(a=Mt(n=e),i):n},i.clipExtent=function(e){return arguments.length?(o=null==e?mo:e,i):o===mo?null:o},i.size=function(e){return arguments.length?i.clipExtent(e&&[[0,0],e]):o===mo?null:o&&o[1]},i};var mo=[[-1e6,-1e6],[1e6,1e6]];function yo(e,t,n){return(e.x-n.x)*(t.y-e.y)-(e.x-t.x)*(n.y-e.y)}function go(e){return e.x}function bo(e){return e.y}function xo(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function _o(e,t,n,r,a,o){if(!e(t,n,r,a,o)){var i=.5*(n+a),l=.5*(r+o),s=t.nodes;s[0]&&_o(e,s[0],n,r,i,l),s[1]&&_o(e,s[1],i,r,a,l),s[2]&&_o(e,s[2],n,l,i,o),s[3]&&_o(e,s[3],i,l,a,o)}}function wo(e,t,n,r,a,o,i){var l,s=1/0;return function e(u,c,f,p,d){if(!(c>o||f>i||p<r||d<a)){if(h=u.point){var h,v=t-u.x,m=n-u.y,y=v*v+m*m;if(y<s){var g=Math.sqrt(s=y);r=t-g,a=n-g,o=t+g,i=n+g,l=h}}for(var b=u.nodes,x=.5*(c+p),_=.5*(f+d),w=t>=x,k=n>=_,T=k<<1|w,E=T+4;T<E;++T)if(u=b[3&T])switch(3&T){case 0:e(u,c,f,x,_);break;case 1:e(u,x,f,p,_);break;case 2:e(u,c,_,x,d);break;case 3:e(u,x,_,p,d);break}}}(e,r,a,o,i),l}function ko(e,t){e=o.rgb(e),t=o.rgb(t);var n=e.r,r=e.g,a=e.b,i=t.r-n,l=t.g-r,s=t.b-a;return function(e){return"#"+xt(Math.round(n+i*e))+xt(Math.round(r+l*e))+xt(Math.round(a+s*e))}}function To(e,t){var n,r={},a={};for(n in e)n in t?r[n]=Co(e[n],t[n]):a[n]=e[n];for(n in t)n in e||(a[n]=t[n]);return function(e){for(n in r)a[n]=r[n](e);return a}}function Eo(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Oo(e,t){var n,r,a,o=Mo.lastIndex=So.lastIndex=0,i=-1,l=[],s=[];e+="",t+="";while((n=Mo.exec(e))&&(r=So.exec(t)))(a=r.index)>o&&(a=t.slice(o,a),l[i]?l[i]+=a:l[++i]=a),(n=n[0])===(r=r[0])?l[i]?l[i]+=r:l[++i]=r:(l[++i]=null,s.push({i:i,x:Eo(n,r)})),o=So.lastIndex;return o<t.length&&(a=t.slice(o),l[i]?l[i]+=a:l[++i]=a),l.length<2?s[0]?(t=s[0].x,function(e){return t(e)+""}):function(){return t}:(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}o.geom.delaunay=function(e){return o.geom.voronoi().triangles(e)},o.geom.quadtree=function(e,t,n,r,a){var o,i=Ma,l=Sa;if(o=arguments.length)return i=go,l=bo,3===o&&(a=n,r=t,n=t=0),s(e);function s(e){var s,u,c,f,p,d,h,v,m,y=Mt(i),g=Mt(l);if(null!=t)d=t,h=n,v=r,m=a;else if(v=m=-(d=h=1/0),u=[],c=[],p=e.length,o)for(f=0;f<p;++f)s=e[f],s.x<d&&(d=s.x),s.y<h&&(h=s.y),s.x>v&&(v=s.x),s.y>m&&(m=s.y),u.push(s.x),c.push(s.y);else for(f=0;f<p;++f){var b=+y(s=e[f],f),x=+g(s,f);b<d&&(d=b),x<h&&(h=x),b>v&&(v=b),x>m&&(m=x),u.push(b),c.push(x)}var _=v-d,k=m-h;function T(e,t,n,r,a,o,i,l){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var s=e.x,u=e.y;if(null!=s)if(w(s-n)+w(u-r)<.01)E(e,t,n,r,a,o,i,l);else{var c=e.point;e.x=e.y=e.point=null,E(e,c,s,u,a,o,i,l),E(e,t,n,r,a,o,i,l)}else e.x=n,e.y=r,e.point=t}else E(e,t,n,r,a,o,i,l)}function E(e,t,n,r,a,o,i,l){var s=.5*(a+i),u=.5*(o+l),c=n>=s,f=r>=u,p=f<<1|c;e.leaf=!1,e=e.nodes[p]||(e.nodes[p]=xo()),c?a=s:i=s,f?o=u:l=u,T(e,t,n,r,a,o,i,l)}_>k?m=h+_:v=d+k;var O=xo();if(O.add=function(e){T(O,e,+y(e,++f),+g(e,f),d,h,v,m)},O.visit=function(e){_o(e,O,d,h,v,m)},O.find=function(e){return wo(O,e[0],e[1],d,h,v,m)},f=-1,null==t){while(++f<p)T(O,e[f],u[f],c[f],d,h,v,m);--f}else e.forEach(O.add);return u=c=e=s=null,O}return s.x=function(e){return arguments.length?(i=e,s):i},s.y=function(e){return arguments.length?(l=e,s):l},s.extent=function(e){return arguments.length?(null==e?t=n=r=a=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],a=+e[1][1]),s):null==t?null:[[t,n],[r,a]]},s.size=function(e){return arguments.length?(null==e?t=n=r=a=null:(t=n=0,r=+e[0],a=+e[1]),s):null==t?null:[r-t,a-n]},s},o.interpolateRgb=ko,o.interpolateObject=To,o.interpolateNumber=Eo,o.interpolateString=Oo;var Mo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,So=new RegExp(Mo.source,"g");function Co(e,t){var n,r=o.interpolators.length;while(--r>=0&&!(n=o.interpolators[r](e,t)));return n}function Ao(e,t){var n,r=[],a=[],o=e.length,i=t.length,l=Math.min(e.length,t.length);for(n=0;n<l;++n)r.push(Co(e[n],t[n]));for(;n<o;++n)a[n]=e[n];for(;n<i;++n)a[n]=t[n];return function(e){for(n=0;n<l;++n)a[n]=r[n](e);return a}}o.interpolate=Co,o.interpolators=[function(e,t){var n=typeof t;return("string"===n?Ot.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?ko:Oo:t instanceof Je?ko:Array.isArray(t)?Ao:"object"===n&&isNaN(t)?To:Eo)(e,t)}],o.interpolateArray=Ao;var Po=function(){return R},Lo=o.map({linear:Po,poly:Bo,quad:function(){return zo},cubic:function(){return No},sin:function(){return Vo},exp:function(){return Ho},circle:function(){return Uo},elastic:Wo,back:qo,bounce:function(){return $o}}),Do=o.map({in:R,out:Io,"in-out":Ro,"out-in":function(e){return Ro(Io(e))}});function jo(e){return function(t){return t<=0?0:t>=1?1:e(t)}}function Io(e){return function(t){return 1-e(1-t)}}function Ro(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function zo(e){return e*e}function No(e){return e*e*e}function Fo(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function Bo(e){return function(t){return Math.pow(t,e)}}function Vo(e){return 1-Math.cos(e*Ie)}function Ho(e){return Math.pow(2,10*(e-1))}function Uo(e){return 1-Math.sqrt(1-e*e)}function Wo(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/De*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*De/t)}}function qo(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function $o(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Go(e,t){e=o.hcl(e),t=o.hcl(t);var n=e.h,r=e.c,a=e.l,i=t.h-n,l=t.c-r,s=t.l-a;return isNaN(l)&&(l=0,r=isNaN(r)?t.c:r),isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360),function(e){return at(n+i*e,r+l*e,a+s*e)+""}}function Yo(e,t){e=o.hsl(e),t=o.hsl(t);var n=e.h,r=e.s,a=e.l,i=t.h-n,l=t.s-r,s=t.l-a;return isNaN(l)&&(l=0,r=isNaN(r)?t.s:r),isNaN(i)?(i=0,n=isNaN(n)?t.h:n):i>180?i-=360:i<-180&&(i+=360),function(e){return tt(n+i*e,r+l*e,a+s*e)+""}}function Ko(e,t){e=o.lab(e),t=o.lab(t);var n=e.l,r=e.a,a=e.b,i=t.l-n,l=t.a-r,s=t.b-a;return function(e){return ft(n+i*e,r+l*e,a+s*e)+""}}function Xo(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Zo(e){var t=[e.a,e.b],n=[e.c,e.d],r=Qo(t),a=Jo(t,n),o=Qo(ei(n,t,-a))||0;t[0]*n[1]<n[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,a*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-n[0],n[1]))*ze,this.translate=[e.e,e.f],this.scale=[r,o],this.skew=o?Math.atan2(a,o)*ze:0}function Jo(e,t){return e[0]*t[0]+e[1]*t[1]}function Qo(e){var t=Math.sqrt(Jo(e,e));return t&&(e[0]/=t,e[1]/=t),t}function ei(e,t,n){return e[0]+=n*t[0],e[1]+=n*t[1],e}o.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.slice(0,t):e,r=t>=0?e.slice(t+1):"in";return n=Lo.get(n)||Po,r=Do.get(r)||R,jo(r(n.apply(null,i.call(arguments,1))))},o.interpolateHcl=Go,o.interpolateHsl=Yo,o.interpolateLab=Ko,o.interpolateRound=Xo,o.transform=function(e){var t=s.createElementNS(o.ns.prefix.svg,"g");return(o.transform=function(e){if(null!=e){t.setAttribute("transform",e);var n=t.transform.baseVal.consolidate()}return new Zo(n?n.matrix:ti)})(e)},Zo.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var ti={a:1,b:0,c:0,d:1,e:0,f:0};function ni(e){return e.length?e.pop()+",":""}function ri(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push("translate(",null,",",null,")");r.push({i:a-4,x:Eo(e[0],t[0])},{i:a-2,x:Eo(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}function ai(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(ni(n)+"rotate(",null,")")-2,x:Eo(e,t)})):t&&n.push(ni(n)+"rotate("+t+")")}function oi(e,t,n,r){e!==t?r.push({i:n.push(ni(n)+"skewX(",null,")")-2,x:Eo(e,t)}):t&&n.push(ni(n)+"skewX("+t+")")}function ii(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push(ni(n)+"scale(",null,",",null,")");r.push({i:a-4,x:Eo(e[0],t[0])},{i:a-2,x:Eo(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(ni(n)+"scale("+t+")")}function li(e,t){var n=[],r=[];return e=o.transform(e),t=o.transform(t),ri(e.translate,t.translate,n,r),ai(e.rotate,t.rotate,n,r),oi(e.skew,t.skew,n,r),ii(e.scale,t.scale,n,r),e=t=null,function(e){var t,a=-1,o=r.length;while(++a<o)n[(t=r[a]).i]=t.x(e);return n.join("")}}function si(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function ui(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function ci(e){var t=e.source,n=e.target,r=pi(t,n),a=[t];while(t!==r)t=t.parent,a.push(t);var o=a.length;while(n!==r)a.splice(o,0,n),n=n.parent;return a}function fi(e){var t=[],n=e.parent;while(null!=n)t.push(e),e=n,n=n.parent;return t.push(e),t}function pi(e,t){if(e===t)return e;var n=fi(e),r=fi(t),a=n.pop(),o=r.pop(),i=null;while(a===o)i=a,a=n.pop(),o=r.pop();return i}function di(e){e.fixed|=2}function hi(e){e.fixed&=-7}function vi(e){e.fixed|=4,e.px=e.x,e.py=e.y}function mi(e){e.fixed&=-5}function yi(e,t,n){var r=0,a=0;if(e.charge=0,!e.leaf){var o,i=e.nodes,l=i.length,s=-1;while(++s<l)o=i[s],null!=o&&(yi(o,t,n),e.charge+=o.charge,r+=o.charge*o.cx,a+=o.charge*o.cy)}if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=t*n[e.point.index];e.charge+=e.pointCharge=u,r+=u*e.point.x,a+=u*e.point.y}e.cx=r/e.charge,e.cy=a/e.charge}o.interpolateTransform=li,o.layout={},o.layout.bundle=function(){return function(e){var t=[],n=-1,r=e.length;while(++n<r)t.push(ci(e[n]));return t}},o.layout.chord=function(){var e,t,n,r,a,i,l,s={},u=0;function c(){var s,c,p,d,h,v={},m=[],y=o.range(r),g=[];e=[],t=[],s=0,d=-1;while(++d<r){c=0,h=-1;while(++h<r)c+=n[d][h];m.push(c),g.push(o.range(r)),s+=c}a&&y.sort((function(e,t){return a(m[e],m[t])})),i&&g.forEach((function(e,t){e.sort((function(e,r){return i(n[t][e],n[t][r])}))})),s=(De-u*r)/s,c=0,d=-1;while(++d<r){p=c,h=-1;while(++h<r){var b=y[d],x=g[b][h],_=n[b][x],w=c,k=c+=_*s;v[b+"-"+x]={index:b,subindex:x,startAngle:w,endAngle:k,value:_}}t[b]={index:b,startAngle:p,endAngle:c,value:m[b]},c+=u}d=-1;while(++d<r){h=d-1;while(++h<r){var T=v[d+"-"+h],E=v[h+"-"+d];(T.value||E.value)&&e.push(T.value<E.value?{source:E,target:T}:{source:T,target:E})}}l&&f()}function f(){e.sort((function(e,t){return l((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)}))}return s.matrix=function(a){return arguments.length?(r=(n=a)&&n.length,e=t=null,s):n},s.padding=function(n){return arguments.length?(u=n,e=t=null,s):u},s.sortGroups=function(n){return arguments.length?(a=n,e=t=null,s):a},s.sortSubgroups=function(t){return arguments.length?(i=t,e=null,s):i},s.sortChords=function(t){return arguments.length?(l=t,e&&f(),s):l},s.chords=function(){return e||c(),e},s.groups=function(){return t||c(),t},s},o.layout.force=function(){var e,t,n,r,a,i,l={},s=o.dispatch("start","tick","end"),u=[1,1],c=.9,f=gi,p=bi,d=-30,h=xi,v=.1,m=.64,y=[],g=[];function b(e){return function(t,n,r,a){if(t.point!==e){var o=t.cx-e.x,i=t.cy-e.y,l=a-n,s=o*o+i*i;if(l*l/m<s){if(s<h){var u=t.charge/s;e.px-=o*u,e.py-=i*u}return!0}if(t.point&&s&&s<h){u=t.pointCharge/s;e.px-=o*u,e.py-=i*u}}return!t.charge}}function x(e){e.px=o.event.x,e.py=o.event.y,l.resume()}return l.tick=function(){if((n*=.99)<.005)return e=null,s.end({type:"end",alpha:n=0}),!0;var t,l,f,p,h,m,x,_,w,k=y.length,T=g.length;for(l=0;l<T;++l)f=g[l],p=f.source,h=f.target,_=h.x-p.x,w=h.y-p.y,(m=_*_+w*w)&&(m=n*a[l]*((m=Math.sqrt(m))-r[l])/m,_*=m,w*=m,h.x-=_*(x=p.weight+h.weight?p.weight/(p.weight+h.weight):.5),h.y-=w*x,p.x+=_*(x=1-x),p.y+=w*x);if((x=n*v)&&(_=u[0]/2,w=u[1]/2,l=-1,x))while(++l<k)f=y[l],f.x+=(_-f.x)*x,f.y+=(w-f.y)*x;if(d){yi(t=o.geom.quadtree(y),n,i),l=-1;while(++l<k)(f=y[l]).fixed||t.visit(b(f))}l=-1;while(++l<k)f=y[l],f.fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*c,f.y-=(f.py-(f.py=f.y))*c);s.tick({type:"tick",alpha:n})},l.nodes=function(e){return arguments.length?(y=e,l):y},l.links=function(e){return arguments.length?(g=e,l):g},l.size=function(e){return arguments.length?(u=e,l):u},l.linkDistance=function(e){return arguments.length?(f="function"===typeof e?e:+e,l):f},l.distance=l.linkDistance,l.linkStrength=function(e){return arguments.length?(p="function"===typeof e?e:+e,l):p},l.friction=function(e){return arguments.length?(c=+e,l):c},l.charge=function(e){return arguments.length?(d="function"===typeof e?e:+e,l):d},l.chargeDistance=function(e){return arguments.length?(h=e*e,l):Math.sqrt(h)},l.gravity=function(e){return arguments.length?(v=+e,l):v},l.theta=function(e){return arguments.length?(m=e*e,l):Math.sqrt(m)},l.alpha=function(t){return arguments.length?(t=+t,n?t>0?n=t:(e.c=null,e.t=NaN,e=null,s.end({type:"end",alpha:n=0})):t>0&&(s.start({type:"start",alpha:n=t}),e=zt(l.tick)),l):n},l.start=function(){var e,t,n,o=y.length,s=g.length,c=u[0],h=u[1];for(e=0;e<o;++e)(n=y[e]).index=e,n.weight=0;for(e=0;e<s;++e)n=g[e],"number"==typeof n.source&&(n.source=y[n.source]),"number"==typeof n.target&&(n.target=y[n.target]),++n.source.weight,++n.target.weight;for(e=0;e<o;++e)n=y[e],isNaN(n.x)&&(n.x=v("x",c)),isNaN(n.y)&&(n.y=v("y",h)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(r=[],"function"===typeof f)for(e=0;e<s;++e)r[e]=+f.call(this,g[e],e);else for(e=0;e<s;++e)r[e]=f;if(a=[],"function"===typeof p)for(e=0;e<s;++e)a[e]=+p.call(this,g[e],e);else for(e=0;e<s;++e)a[e]=p;if(i=[],"function"===typeof d)for(e=0;e<o;++e)i[e]=+d.call(this,y[e],e);else for(e=0;e<o;++e)i[e]=d;function v(n,r){if(!t){for(t=new Array(o),u=0;u<o;++u)t[u]=[];for(u=0;u<s;++u){var a=g[u];t[a.source.index].push(a.target),t[a.target.index].push(a.source)}}var i,l=t[e],u=-1,c=l.length;while(++u<c)if(!isNaN(i=l[u][n]))return i;return Math.random()*r}return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(t||(t=o.behavior.drag().origin(R).on("dragstart.force",di).on("drag.force",x).on("dragend.force",hi)),!arguments.length)return t;this.on("mouseover.force",vi).on("mouseout.force",mi).call(t)},o.rebind(l,s,"on")};var gi=20,bi=1,xi=1/0;function _i(e,t){return o.rebind(e,t,"sort","children","value"),e.nodes=e,e.links=Mi,e}function wi(e,t){var n=[e];while(null!=(e=n.pop())){var r,a;if(t(e),(a=e.children)&&(r=a.length))while(--r>=0)n.push(a[r])}}function ki(e,t){var n=[e],r=[];while(null!=(e=n.pop()))if(r.push(e),(o=e.children)&&(a=o.length)){var a,o,i=-1;while(++i<a)n.push(o[i])}while(null!=(e=r.pop()))t(e)}function Ti(e){return e.children}function Ei(e){return e.value}function Oi(e,t){return t.value-e.value}function Mi(e){return o.merge(e.map((function(e){return(e.children||[]).map((function(t){return{source:e,target:t}}))})))}o.layout.hierarchy=function(){var e=Oi,t=Ti,n=Ei;function r(a){var o,i=[a],l=[];a.depth=0;while(null!=(o=i.pop()))if(l.push(o),(u=t.call(r,o,o.depth))&&(s=u.length)){var s,u,c;while(--s>=0)i.push(c=u[s]),c.parent=o,c.depth=o.depth+1;n&&(o.value=0),o.children=u}else n&&(o.value=+n.call(r,o,o.depth)||0),delete o.children;return ki(a,(function(t){var r,a;e&&(r=t.children)&&r.sort(e),n&&(a=t.parent)&&(a.value+=t.value)})),l}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(wi(e,(function(e){e.children&&(e.value=0)})),ki(e,(function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},r},o.layout.partition=function(){var e=o.layout.hierarchy(),t=[1,1];function n(e,t,r,a){var o=e.children;if(e.x=t,e.y=e.depth*a,e.dx=r,e.dy=a,o&&(i=o.length)){var i,l,s,u=-1;r=e.value?r/e.value:0;while(++u<i)n(l=o[u],t,s=l.value*r,a),t+=s}}function r(e){var t=e.children,n=0;if(t&&(a=t.length)){var a,o=-1;while(++o<a)n=Math.max(n,r(t[o]))}return 1+n}function a(a,o){var i=e.call(this,a,o);return n(i[0],0,t[0],t[1]/r(i[0])),i}return a.size=function(e){return arguments.length?(t=e,a):t},_i(a,e)},o.layout.pie=function(){var e=Number,t=Si,n=0,r=De,a=0;function i(l){var s,u=l.length,c=l.map((function(t,n){return+e.call(i,t,n)})),f=+("function"===typeof n?n.apply(this,arguments):n),p=("function"===typeof r?r.apply(this,arguments):r)-f,d=Math.min(Math.abs(p)/u,+("function"===typeof a?a.apply(this,arguments):a)),h=d*(p<0?-1:1),v=o.sum(c),m=v?(p-u*h)/v:0,y=o.range(u),g=[];return null!=t&&y.sort(t===Si?function(e,t){return c[t]-c[e]}:function(e,n){return t(l[e],l[n])}),y.forEach((function(e){g[e]={data:l[e],value:s=c[e],startAngle:f,endAngle:f+=s*m+h,padAngle:d}})),g}return i.value=function(t){return arguments.length?(e=t,i):e},i.sort=function(e){return arguments.length?(t=e,i):t},i.startAngle=function(e){return arguments.length?(n=e,i):n},i.endAngle=function(e){return arguments.length?(r=e,i):r},i.padAngle=function(e){return arguments.length?(a=e,i):a},i};var Si={};function Ci(e){return e.x}function Ai(e){return e.y}function Pi(e,t,n){e.y0=t,e.y=n}o.layout.stack=function(){var e=R,t=ji,n=Ii,r=Pi,a=Ci,i=Ai;function l(s,u){if(!(d=s.length))return s;var c=s.map((function(t,n){return e.call(l,t,n)})),f=c.map((function(e){return e.map((function(e,t){return[a.call(l,e,t),i.call(l,e,t)]}))})),p=t.call(l,f,u);c=o.permute(c,p),f=o.permute(f,p);var d,h,v,m,y=n.call(l,f,u),g=c[0].length;for(v=0;v<g;++v)for(r.call(l,c[0][v],m=y[v],f[0][v][1]),h=1;h<d;++h)r.call(l,c[h][v],m+=f[h-1][v][1],f[h][v][1]);return s}return l.values=function(t){return arguments.length?(e=t,l):e},l.order=function(e){return arguments.length?(t="function"===typeof e?e:Li.get(e)||ji,l):t},l.offset=function(e){return arguments.length?(n="function"===typeof e?e:Di.get(e)||Ii,l):n},l.x=function(e){return arguments.length?(a=e,l):a},l.y=function(e){return arguments.length?(i=e,l):i},l.out=function(e){return arguments.length?(r=e,l):r},l};var Li=o.map({"inside-out":function(e){var t,n,r=e.length,a=e.map(Ri),i=e.map(zi),l=o.range(r).sort((function(e,t){return a[e]-a[t]})),s=0,u=0,c=[],f=[];for(t=0;t<r;++t)n=l[t],s<u?(s+=i[n],c.push(n)):(u+=i[n],f.push(n));return f.reverse().concat(c)},reverse:function(e){return o.range(e.length).reverse()},default:ji}),Di=o.map({silhouette:function(e){var t,n,r,a=e.length,o=e[0].length,i=[],l=0,s=[];for(n=0;n<o;++n){for(t=0,r=0;t<a;t++)r+=e[t][n][1];r>l&&(l=r),i.push(r)}for(n=0;n<o;++n)s[n]=(l-i[n])/2;return s},wiggle:function(e){var t,n,r,a,o,i,l,s,u,c=e.length,f=e[0],p=f.length,d=[];for(d[0]=s=u=0,n=1;n<p;++n){for(t=0,a=0;t<c;++t)a+=e[t][n][1];for(t=0,o=0,l=f[n][0]-f[n-1][0];t<c;++t){for(r=0,i=(e[t][n][1]-e[t][n-1][1])/(2*l);r<t;++r)i+=(e[r][n][1]-e[r][n-1][1])/l;o+=i*e[t][n][1]}d[n]=s-=a?o/a*l:0,s<u&&(u=s)}for(n=0;n<p;++n)d[n]-=u;return d},expand:function(e){var t,n,r,a=e.length,o=e[0].length,i=1/a,l=[];for(n=0;n<o;++n){for(t=0,r=0;t<a;t++)r+=e[t][n][1];if(r)for(t=0;t<a;t++)e[t][n][1]/=r;else for(t=0;t<a;t++)e[t][n][1]=i}for(n=0;n<o;++n)l[n]=0;return l},zero:Ii});function ji(e){return o.range(e.length)}function Ii(e){var t=-1,n=e[0].length,r=[];while(++t<n)r[t]=0;return r}function Ri(e){for(var t,n=1,r=0,a=e[0][1],o=e.length;n<o;++n)(t=e[n][1])>a&&(r=n,a=t);return r}function zi(e){return e.reduce(Ni,0)}function Ni(e,t){return e+t[1]}function Fi(e,t){return Bi(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function Bi(e,t){var n=-1,r=+e[0],a=(e[1]-r)/t,o=[];while(++n<=t)o[n]=a*n+r;return o}function Vi(e){return[o.min(e),o.max(e)]}function Hi(e,t){return e.value-t.value}function Ui(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Wi(e,t){e._pack_next=t,t._pack_prev=e}function qi(e,t){var n=t.x-e.x,r=t.y-e.y,a=e.r+t.r;return.999*a*a>n*n+r*r}function $i(e){if((t=e.children)&&(s=t.length)){var t,n,r,a,o,i,l,s,u=1/0,c=-1/0,f=1/0,p=-1/0;if(t.forEach(Gi),n=t[0],n.x=-n.r,n.y=0,b(n),s>1&&(r=t[1],r.x=r.r,r.y=0,b(r),s>2))for(a=t[2],Xi(n,r,a),b(a),Ui(n,a),n._pack_prev=a,Ui(a,r),r=n._pack_next,o=3;o<s;o++){Xi(n,r,a=t[o]);var d=0,h=1,v=1;for(i=r._pack_next;i!==r;i=i._pack_next,h++)if(qi(i,a)){d=1;break}if(1==d)for(l=n._pack_prev;l!==i._pack_prev;l=l._pack_prev,v++)if(qi(l,a))break;d?(h<v||h==v&&r.r<n.r?Wi(n,r=i):Wi(n=l,r),o--):(Ui(n,a),r=a,b(a))}var m=(u+c)/2,y=(f+p)/2,g=0;for(o=0;o<s;o++)a=t[o],a.x-=m,a.y-=y,g=Math.max(g,a.r+Math.sqrt(a.x*a.x+a.y*a.y));e.r=g,t.forEach(Yi)}function b(e){u=Math.min(e.x-e.r,u),c=Math.max(e.x+e.r,c),f=Math.min(e.y-e.r,f),p=Math.max(e.y+e.r,p)}}function Gi(e){e._pack_next=e._pack_prev=e}function Yi(e){delete e._pack_next,delete e._pack_prev}function Ki(e,t,n,r){var a=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,a){var o=-1,i=a.length;while(++o<i)Ki(a[o],t,n,r)}}function Xi(e,t,n){var r=e.r+n.r,a=t.x-e.x,o=t.y-e.y;if(r&&(a||o)){var i=t.r+n.r,l=a*a+o*o;i*=i,r*=r;var s=.5+(r-i)/(2*l),u=Math.sqrt(Math.max(0,2*i*(r+l)-(r-=l)*r-i*i))/(2*l);n.x=e.x+s*a+u*o,n.y=e.y+s*o-u*a}else n.x=e.x+r,n.y=e.y}function Zi(e,t){return e.parent==t.parent?1:2}function Ji(e){var t=e.children;return t.length?t[0]:e.t}function Qi(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function el(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function tl(e){var t,n=0,r=0,a=e.children,o=a.length;while(--o>=0)t=a[o],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function nl(e,t,n){return e.a.parent===t.parent?e.a:n}function rl(e){return 1+o.max(e,(function(e){return e.y}))}function al(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}function ol(e){var t=e.children;return t&&t.length?ol(t[0]):e}function il(e){var t,n=e.children;return n&&(t=n.length)?il(n[t-1]):e}function ll(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function sl(e,t){var n=e.x+t[3],r=e.y+t[0],a=e.dx-t[1]-t[3],o=e.dy-t[0]-t[2];return a<0&&(n+=a/2,a=0),o<0&&(r+=o/2,o=0),{x:n,y:r,dx:a,dy:o}}function ul(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function cl(e){return e.rangeExtent?e.rangeExtent():ul(e.range())}function fl(e,t,n,r){var a=n(e[0],e[1]),o=r(t[0],t[1]);return function(e){return o(a(e))}}function pl(e,t){var n,r=0,a=e.length-1,o=e[r],i=e[a];return i<o&&(n=r,r=a,a=n,n=o,o=i,i=n),e[r]=t.floor(o),e[a]=t.ceil(i),e}function dl(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:hl}o.layout.histogram=function(){var e=!0,t=Number,n=Vi,r=Fi;function a(a,i){var l,s,u=[],c=a.map(t,this),f=n.call(this,c,i),p=r.call(this,f,c,i),d=(i=-1,c.length),h=p.length-1,v=e?1:1/d;while(++i<h)l=u[i]=[],l.dx=p[i+1]-(l.x=p[i]),l.y=0;if(h>0){i=-1;while(++i<d)s=c[i],s>=f[0]&&s<=f[1]&&(l=u[o.bisect(p,s,1,h)-1],l.y+=v,l.push(a[i]))}return u}return a.value=function(e){return arguments.length?(t=e,a):t},a.range=function(e){return arguments.length?(n=Mt(e),a):n},a.bins=function(e){return arguments.length?(r="number"===typeof e?function(t){return Bi(t,e)}:Mt(e),a):r},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},o.layout.pack=function(){var e,t=o.layout.hierarchy().sort(Hi),n=0,r=[1,1];function a(a,o){var i=t.call(this,a,o),l=i[0],s=r[0],u=r[1],c=null==e?Math.sqrt:"function"===typeof e?e:function(){return e};if(l.x=l.y=0,ki(l,(function(e){e.r=+c(e.value)})),ki(l,$i),n){var f=n*(e?1:Math.max(2*l.r/s,2*l.r/u))/2;ki(l,(function(e){e.r+=f})),ki(l,$i),ki(l,(function(e){e.r-=f}))}return Ki(l,s/2,u/2,e?1:1/Math.max(2*l.r/s,2*l.r/u)),i}return a.size=function(e){return arguments.length?(r=e,a):r},a.radius=function(t){return arguments.length?(e=null==t||"function"===typeof t?t:+t,a):e},a.padding=function(e){return arguments.length?(n=+e,a):n},_i(a,t)},o.layout.tree=function(){var e=o.layout.hierarchy().sort(null).value(null),t=Zi,n=[1,1],r=null;function a(a,o){var u=e.call(this,a,o),f=u[0],p=i(f);if(ki(p,l),p.parent.m=-p.z,wi(p,s),r)wi(f,c);else{var d=f,h=f,v=f;wi(f,(function(e){e.x<d.x&&(d=e),e.x>h.x&&(h=e),e.depth>v.depth&&(v=e)}));var m=t(d,h)/2-d.x,y=n[0]/(h.x+t(h,d)/2+m),g=n[1]/(v.depth||1);wi(f,(function(e){e.x=(e.x+m)*y,e.y=e.depth*g}))}return u}function i(e){var t,n={A:null,children:[e]},r=[n];while(null!=(t=r.pop()))for(var a,o=t.children,i=0,l=o.length;i<l;++i)r.push((o[i]=a={_:o[i],parent:t,children:(a=o[i].children)&&a.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:i}).a=a);return n.children[0]}function l(e){var n=e.children,r=e.parent.children,a=e.i?r[e.i-1]:null;if(n.length){tl(e);var o=(n[0].z+n[n.length-1].z)/2;a?(e.z=a.z+t(e._,a._),e.m=e.z-o):e.z=o}else a&&(e.z=a.z+t(e._,a._));e.parent.A=u(e,a,e.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function u(e,n,r){if(n){var a,o=e,i=e,l=n,s=o.parent.children[0],u=o.m,c=i.m,f=l.m,p=s.m;while(l=Qi(l),o=Ji(o),l&&o)s=Ji(s),i=Qi(i),i.a=e,a=l.z+f-o.z-u+t(l._,o._),a>0&&(el(nl(l,e,r),e,a),u+=a,c+=a),f+=l.m,u+=o.m,p+=s.m,c+=i.m;l&&!Qi(i)&&(i.t=l,i.m+=f-c),o&&!Ji(s)&&(s.t=o,s.m+=u-p,r=e)}return r}function c(e){e.x*=n[0],e.y=e.depth*n[1]}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(r=null==(n=e)?c:null,a):r?null:n},a.nodeSize=function(e){return arguments.length?(r=null==(n=e)?null:c,a):r?n:null},_i(a,e)},o.layout.cluster=function(){var e=o.layout.hierarchy().sort(null).value(null),t=Zi,n=[1,1],r=!1;function a(a,o){var i,l=e.call(this,a,o),s=l[0],u=0;ki(s,(function(e){var n=e.children;n&&n.length?(e.x=al(n),e.y=rl(n)):(e.x=i?u+=t(e,i):0,e.y=0,i=e)}));var c=ol(s),f=il(s),p=c.x-t(c,f)/2,d=f.x+t(f,c)/2;return ki(s,r?function(e){e.x=(e.x-s.x)*n[0],e.y=(s.y-e.y)*n[1]}:function(e){e.x=(e.x-p)/(d-p)*n[0],e.y=(1-(s.y?e.y/s.y:1))*n[1]}),l}return a.separation=function(e){return arguments.length?(t=e,a):t},a.size=function(e){return arguments.length?(r=null==(n=e),a):r?null:n},a.nodeSize=function(e){return arguments.length?(r=null!=(n=e),a):r?n:null},_i(a,e)},o.layout.treemap=function(){var e,t=o.layout.hierarchy(),n=Math.round,r=[1,1],a=null,i=ll,l=!1,s="squarify",u=.5*(1+Math.sqrt(5));function c(e,t){var n,r,a=-1,o=e.length;while(++a<o)r=(n=e[a]).value*(t<0?0:t),n.area=isNaN(r)||r<=0?0:r}function f(e){var t=e.children;if(t&&t.length){var n,r,a,o=i(e),l=[],u=t.slice(),p=1/0,v="slice"===s?o.dx:"dice"===s?o.dy:"slice-dice"===s?1&e.depth?o.dy:o.dx:Math.min(o.dx,o.dy);c(u,o.dx*o.dy/e.value),l.area=0;while((a=u.length)>0)l.push(n=u[a-1]),l.area+=n.area,"squarify"!==s||(r=d(l,v))<=p?(u.pop(),p=r):(l.area-=l.pop().area,h(l,v,o,!1),v=Math.min(o.dx,o.dy),l.length=l.area=0,p=1/0);l.length&&(h(l,v,o,!0),l.length=l.area=0),t.forEach(f)}}function p(e){var t=e.children;if(t&&t.length){var n,r=i(e),a=t.slice(),o=[];c(a,r.dx*r.dy/e.value),o.area=0;while(n=a.pop())o.push(n),o.area+=n.area,null!=n.z&&(h(o,n.z?r.dx:r.dy,r,!a.length),o.length=o.area=0);t.forEach(p)}}function d(e,t){var n,r=e.area,a=0,o=1/0,i=-1,l=e.length;while(++i<l)(n=e[i].area)&&(n<o&&(o=n),n>a&&(a=n));return r*=r,t*=t,r?Math.max(t*a*u/r,r/(t*o*u)):1/0}function h(e,t,r,a){var o,i=-1,l=e.length,s=r.x,u=r.y,c=t?n(e.area/t):0;if(t==r.dx){(a||c>r.dy)&&(c=r.dy);while(++i<l)o=e[i],o.x=s,o.y=u,o.dy=c,s+=o.dx=Math.min(r.x+r.dx-s,c?n(o.area/c):0);o.z=!0,o.dx+=r.x+r.dx-s,r.y+=c,r.dy-=c}else{(a||c>r.dx)&&(c=r.dx);while(++i<l)o=e[i],o.x=s,o.y=u,o.dx=c,u+=o.dy=Math.min(r.y+r.dy-u,c?n(o.area/c):0);o.z=!1,o.dy+=r.y+r.dy-u,r.x+=c,r.dx-=c}}function v(n){var a=e||t(n),o=a[0];return o.x=o.y=0,o.value?(o.dx=r[0],o.dy=r[1]):o.dx=o.dy=0,e&&t.revalue(o),c([o],o.dx*o.dy/o.value),(e?p:f)(o),l&&(e=a),a}return v.size=function(e){return arguments.length?(r=e,v):r},v.padding=function(e){if(!arguments.length)return a;function t(t){var n=e.call(v,t,t.depth);return null==n?ll(t):sl(t,"number"===typeof n?[n,n,n,n]:n)}function n(t){return sl(t,e)}var r;return i=null==(a=e)?ll:"function"===(r=typeof e)?t:"number"===r?(e=[e,e,e,e],n):n,v},v.round=function(e){return arguments.length?(n=e?Math.round:Number,v):n!=Number},v.sticky=function(t){return arguments.length?(l=t,e=null,v):l},v.ratio=function(e){return arguments.length?(u=e,v):u},v.mode=function(e){return arguments.length?(s=e+"",v):s},_i(v,t)},o.random={normal:function(e,t){var n=arguments.length;return n<2&&(t=1),n<1&&(e=0),function(){var n,r,a;do{n=2*Math.random()-1,r=2*Math.random()-1,a=n*n+r*r}while(!a||a>1);return e+t*n*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var e=o.random.normal.apply(o,arguments);return function(){return Math.exp(e())}},bates:function(e){var t=o.random.irwinHall(e);return function(){return t()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n<e;n++)t+=Math.random();return t}}},o.scale={};var hl={floor:R,ceil:R};function vl(e,t,n,r){var a=[],i=[],l=0,s=Math.min(e.length,t.length)-1;e[s]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());while(++l<=s)a.push(n(e[l-1],e[l])),i.push(r(t[l-1],t[l]));return function(t){var n=o.bisect(e,t,1,s)-1;return i[n](a[n](t))}}function ml(e,t,n,r){var a,o;function i(){var i=Math.min(e.length,t.length)>2?vl:fl,s=r?ui:si;return a=i(e,t,s,n),o=i(t,e,s,Co),l}function l(e){return a(e)}return l.invert=function(e){return o(e)},l.domain=function(t){return arguments.length?(e=t.map(Number),i()):e},l.range=function(e){return arguments.length?(t=e,i()):t},l.rangeRound=function(e){return l.range(e).interpolate(Xo)},l.clamp=function(e){return arguments.length?(r=e,i()):r},l.interpolate=function(e){return arguments.length?(n=e,i()):n},l.ticks=function(t){return xl(e,t)},l.tickFormat=function(t,n){return _l(e,t,n)},l.nice=function(t){return gl(e,t),i()},l.copy=function(){return ml(e,t,n,r)},i()}function yl(e,t){return o.rebind(e,t,"range","rangeRound","interpolate","clamp")}function gl(e,t){return pl(e,dl(bl(e,t)[2])),pl(e,dl(bl(e,t)[2])),e}function bl(e,t){null==t&&(t=10);var n=ul(e),r=n[1]-n[0],a=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),o=t/r*a;return o<=.15?a*=10:o<=.35?a*=5:o<=.75&&(a*=2),n[0]=Math.ceil(n[0]/a)*a,n[1]=Math.floor(n[1]/a)*a+.5*a,n[2]=a,n}function xl(e,t){return o.range.apply(o,bl(e,t))}function _l(e,t,n){var r=bl(e,t);if(n){var a=qt.exec(n);if(a.shift(),"s"===a[8]){var i=o.formatPrefix(Math.max(w(r[0]),w(r[1])));return a[7]||(a[7]="."+kl(i.scale(r[2]))),a[8]="f",n=o.format(a.join("")),function(e){return n(i.scale(e))+i.symbol}}a[7]||(a[7]="."+Tl(a[8],r)),n=a.join("")}else n=",."+kl(r[2])+"f";return o.format(n)}o.scale.linear=function(){return ml([0,1],[0,1],Co,!1)};var wl={s:1,g:1,p:1,r:1,e:1};function kl(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function Tl(e,t){var n=kl(t[2]);return e in wl?Math.abs(n-kl(Math.max(w(t[0]),w(t[1]))))+ +("e"!==e):n-2*("%"===e)}function El(e,t,n,r){function a(e){return(n?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(t)}function i(e){return n?Math.pow(t,e):-Math.pow(t,-e)}function l(t){return e(a(t))}return l.invert=function(t){return i(e.invert(t))},l.domain=function(t){return arguments.length?(n=t[0]>=0,e.domain((r=t.map(Number)).map(a)),l):r},l.base=function(n){return arguments.length?(t=+n,e.domain(r.map(a)),l):t},l.nice=function(){var t=pl(r.map(a),n?Math:Ml);return e.domain(t),r=t.map(i),l},l.ticks=function(){var e=ul(r),o=[],l=e[0],s=e[1],u=Math.floor(a(l)),c=Math.ceil(a(s)),f=t%1?2:t;if(isFinite(c-u)){if(n){for(;u<c;u++)for(var p=1;p<f;p++)o.push(i(u)*p);o.push(i(u))}else for(o.push(i(u));u++<c;)for(p=f-1;p>0;p--)o.push(i(u)*p);for(u=0;o[u]<l;u++);for(c=o.length;o[c-1]>s;c--);o=o.slice(u,c)}return o},l.tickFormat=function(e,n){if(!arguments.length)return Ol;arguments.length<2?n=Ol:"function"!==typeof n&&(n=o.format(n));var r=Math.max(1,t*e/l.ticks().length);return function(e){var o=e/i(Math.round(a(e)));return o*t<t-.5&&(o*=t),o<=r?n(e):""}},l.copy=function(){return El(e.copy(),t,n,r)},yl(l,e)}o.scale.log=function(){return El(o.scale.linear().domain([0,1]),10,!0,[1,10])};var Ol=o.format(".0e"),Ml={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function Sl(e,t,n){var r=Cl(t),a=Cl(1/t);function o(t){return e(r(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(r)),o):n},o.ticks=function(e){return xl(n,e)},o.tickFormat=function(e,t){return _l(n,e,t)},o.nice=function(e){return o.domain(gl(n,e))},o.exponent=function(i){return arguments.length?(r=Cl(t=i),a=Cl(1/t),e.domain(n.map(r)),o):t},o.copy=function(){return Sl(e.copy(),t,n)},yl(o,e)}function Cl(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Al(e,t){var n,r,a;function i(a){return r[((n.get(a)||("range"===t.t?n.set(a,e.push(a)):NaN))-1)%r.length]}function l(t,n){return o.range(e.length).map((function(e){return t+n*e}))}return i.domain=function(r){if(!arguments.length)return e;e=[],n=new E;var a,o=-1,l=r.length;while(++o<l)n.has(a=r[o])||n.set(a,e.push(a));return i[t.t].apply(i,t.a)},i.range=function(e){return arguments.length?(r=e,a=0,t={t:"range",a:arguments},i):r},i.rangePoints=function(n,o){arguments.length<2&&(o=0);var s=n[0],u=n[1],c=e.length<2?(s=(s+u)/2,0):(u-s)/(e.length-1+o);return r=l(s+c*o/2,c),a=0,t={t:"rangePoints",a:arguments},i},i.rangeRoundPoints=function(n,o){arguments.length<2&&(o=0);var s=n[0],u=n[1],c=e.length<2?(s=u=Math.round((s+u)/2),0):(u-s)/(e.length-1+o)|0;return r=l(s+Math.round(c*o/2+(u-s-(e.length-1+o)*c)/2),c),a=0,t={t:"rangeRoundPoints",a:arguments},i},i.rangeBands=function(n,o,s){arguments.length<2&&(o=0),arguments.length<3&&(s=o);var u=n[1]<n[0],c=n[u-0],f=n[1-u],p=(f-c)/(e.length-o+2*s);return r=l(c+p*s,p),u&&r.reverse(),a=p*(1-o),t={t:"rangeBands",a:arguments},i},i.rangeRoundBands=function(n,o,s){arguments.length<2&&(o=0),arguments.length<3&&(s=o);var u=n[1]<n[0],c=n[u-0],f=n[1-u],p=Math.floor((f-c)/(e.length-o+2*s));return r=l(c+Math.round((f-c-(e.length-o)*p)/2),p),u&&r.reverse(),a=Math.round(p*(1-o)),t={t:"rangeRoundBands",a:arguments},i},i.rangeBand=function(){return a},i.rangeExtent=function(){return ul(t.a[0])},i.copy=function(){return Al(e,t)},i.domain(e)}o.scale.pow=function(){return Sl(o.scale.linear(),1,[0,1])},o.scale.sqrt=function(){return o.scale.pow().exponent(.5)},o.scale.ordinal=function(){return Al([],{t:"range",a:[[]]})},o.scale.category10=function(){return o.scale.ordinal().range(Pl)},o.scale.category20=function(){return o.scale.ordinal().range(Ll)},o.scale.category20b=function(){return o.scale.ordinal().range(Dl)},o.scale.category20c=function(){return o.scale.ordinal().range(jl)};var Pl=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(gt),Ll=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(gt),Dl=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(gt),jl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(gt);function Il(e,t){var n;function r(){var r=0,i=t.length;n=[];while(++r<i)n[r-1]=o.quantile(e,r/i);return a}function a(e){if(!isNaN(e=+e))return t[o.bisect(n,e)]}return a.domain=function(t){return arguments.length?(e=t.map(y).filter(g).sort(m),r()):e},a.range=function(e){return arguments.length?(t=e,r()):t},a.quantiles=function(){return n},a.invertExtent=function(r){return r=t.indexOf(r),r<0?[NaN,NaN]:[r>0?n[r-1]:e[0],r<n.length?n[r]:e[e.length-1]]},a.copy=function(){return Il(e,t)},r()}function Rl(e,t,n){var r,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(r*(t-e))))]}function i(){return r=n.length/(t-e),a=n.length-1,o}return o.domain=function(n){return arguments.length?(e=+n[0],t=+n[n.length-1],i()):[e,t]},o.range=function(e){return arguments.length?(n=e,i()):n},o.invertExtent=function(t){return t=n.indexOf(t),t=t<0?NaN:t/r+e,[t,t+1/r]},o.copy=function(){return Rl(e,t,n)},i()}function zl(e,t){function n(n){if(n<=n)return t[o.bisect(e,n)]}return n.domain=function(t){return arguments.length?(e=t,n):e},n.range=function(e){return arguments.length?(t=e,n):t},n.invertExtent=function(n){return n=t.indexOf(n),[e[n-1],e[n]]},n.copy=function(){return zl(e,t)},n}function Nl(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return xl(e,t)},t.tickFormat=function(t,n){return _l(e,t,n)},t.copy=function(){return Nl(e)},t}function Fl(){return 0}o.scale.quantile=function(){return Il([],[])},o.scale.quantize=function(){return Rl(0,1,[0,1])},o.scale.threshold=function(){return zl([.5],[0,1])},o.scale.identity=function(){return Nl([0,1])},o.svg={},o.svg.arc=function(){var e=Vl,t=Hl,n=Fl,r=Bl,a=Ul,o=Wl,i=ql;function l(){var l=Math.max(0,+e.apply(this,arguments)),u=Math.max(0,+t.apply(this,arguments)),c=a.apply(this,arguments)-Ie,f=o.apply(this,arguments)-Ie,p=Math.abs(f-c),d=c>f?0:1;if(u<l&&(h=u,u=l,l=h),p>=je)return s(u,d)+(l?s(l,1-d):"")+"Z";var h,v,m,y,g,b,x,_,w,k,T,E,O=0,M=0,S=[];if((y=(+i.apply(this,arguments)||0)/2)&&(m=r===Bl?Math.sqrt(l*l+u*u):+r.apply(this,arguments),d||(M*=-1),u&&(M=Ve(m/u*Math.sin(y))),l&&(O=Ve(m/l*Math.sin(y)))),u){g=u*Math.cos(c+M),b=u*Math.sin(c+M),x=u*Math.cos(f-M),_=u*Math.sin(f-M);var C=Math.abs(f-c-2*M)<=Le?0:1;if(M&&$l(g,b,x,_)===d^C){var A=(c+f)/2;g=u*Math.cos(A),b=u*Math.sin(A),x=_=null}}else g=b=0;if(l){w=l*Math.cos(f-O),k=l*Math.sin(f-O),T=l*Math.cos(c+O),E=l*Math.sin(c+O);var P=Math.abs(c-f+2*O)<=Le?0:1;if(O&&$l(w,k,T,E)===1-d^P){var L=(c+f)/2;w=l*Math.cos(L),k=l*Math.sin(L),T=E=null}}else w=k=0;if(p>Ae&&(h=Math.min(Math.abs(u-l)/2,+n.apply(this,arguments)))>.001){v=l<u^d?0:1;var D=h,j=h;if(p<Le){var I=null==T?[w,k]:null==x?[g,b]:Da([g,b],[T,E],[x,_],[w,k]),R=g-I[0],z=b-I[1],N=x-I[0],F=_-I[1],B=1/Math.sin(Math.acos((R*N+z*F)/(Math.sqrt(R*R+z*z)*Math.sqrt(N*N+F*F)))/2),V=Math.sqrt(I[0]*I[0]+I[1]*I[1]);j=Math.min(h,(l-V)/(B-1)),D=Math.min(h,(u-V)/(B+1))}if(null!=x){var H=Gl(null==T?[w,k]:[T,E],[g,b],u,D,d),U=Gl([x,_],[w,k],u,D,d);h===D?S.push("M",H[0],"A",D,",",D," 0 0,",v," ",H[1],"A",u,",",u," 0 ",1-d^$l(H[1][0],H[1][1],U[1][0],U[1][1]),",",d," ",U[1],"A",D,",",D," 0 0,",v," ",U[0]):S.push("M",H[0],"A",D,",",D," 0 1,",v," ",U[0])}else S.push("M",g,",",b);if(null!=T){var W=Gl([g,b],[T,E],l,-j,d),q=Gl([w,k],null==x?[g,b]:[x,_],l,-j,d);h===j?S.push("L",q[0],"A",j,",",j," 0 0,",v," ",q[1],"A",l,",",l," 0 ",d^$l(q[1][0],q[1][1],W[1][0],W[1][1]),",",1-d," ",W[1],"A",j,",",j," 0 0,",v," ",W[0]):S.push("L",q[0],"A",j,",",j," 0 0,",v," ",W[0])}else S.push("L",w,",",k)}else S.push("M",g,",",b),null!=x&&S.push("A",u,",",u," 0 ",C,",",d," ",x,",",_),S.push("L",w,",",k),null!=T&&S.push("A",l,",",l," 0 ",P,",",1-d," ",T,",",E);return S.push("Z"),S.join("")}function s(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}return l.innerRadius=function(t){return arguments.length?(e=Mt(t),l):e},l.outerRadius=function(e){return arguments.length?(t=Mt(e),l):t},l.cornerRadius=function(e){return arguments.length?(n=Mt(e),l):n},l.padRadius=function(e){return arguments.length?(r=e==Bl?Bl:Mt(e),l):r},l.startAngle=function(e){return arguments.length?(a=Mt(e),l):a},l.endAngle=function(e){return arguments.length?(o=Mt(e),l):o},l.padAngle=function(e){return arguments.length?(i=Mt(e),l):i},l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-Ie;return[Math.cos(r)*n,Math.sin(r)*n]},l};var Bl="auto";function Vl(e){return e.innerRadius}function Hl(e){return e.outerRadius}function Ul(e){return e.startAngle}function Wl(e){return e.endAngle}function ql(e){return e&&e.padAngle}function $l(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function Gl(e,t,n,r,a){var o=e[0]-t[0],i=e[1]-t[1],l=(a?r:-r)/Math.sqrt(o*o+i*i),s=l*i,u=-l*o,c=e[0]+s,f=e[1]+u,p=t[0]+s,d=t[1]+u,h=(c+p)/2,v=(f+d)/2,m=p-c,y=d-f,g=m*m+y*y,b=n-r,x=c*d-p*f,_=(y<0?-1:1)*Math.sqrt(Math.max(0,b*b*g-x*x)),w=(x*y-m*_)/g,k=(-x*m-y*_)/g,T=(x*y+m*_)/g,E=(-x*m+y*_)/g,O=w-h,M=k-v,S=T-h,C=E-v;return O*O+M*M>S*S+C*C&&(w=T,k=E),[[w-s,k-u],[w*n/b,k*n/b]]}function Yl(e){var t=Ma,n=Sa,r=cr,a=Xl,o=a.key,i=.7;function l(o){var l,s=[],u=[],c=-1,f=o.length,p=Mt(t),d=Mt(n);function h(){s.push("M",a(e(u),i))}while(++c<f)r.call(this,l=o[c],c)?u.push([+p.call(this,l,c),+d.call(this,l,c)]):u.length&&(h(),u=[]);return u.length&&h(),s.length?s.join(""):null}return l.x=function(e){return arguments.length?(t=e,l):t},l.y=function(e){return arguments.length?(n=e,l):n},l.defined=function(e){return arguments.length?(r=e,l):r},l.interpolate=function(e){return arguments.length?(o="function"===typeof e?a=e:(a=Kl.get(e)||Xl).key,l):o},l.tension=function(e){return arguments.length?(i=e,l):i},l}o.svg.line=function(){return Yl(R)};var Kl=o.map({linear:Xl,"linear-closed":Zl,step:Jl,"step-before":Ql,"step-after":es,basis:is,"basis-open":ls,"basis-closed":ss,bundle:us,cardinal:rs,"cardinal-open":ts,"cardinal-closed":ns,monotone:gs});function Xl(e){return e.length>1?e.join("L"):e+"Z"}function Zl(e){return e.join("L")+"Z"}function Jl(e){var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];while(++t<n)a.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);return n>1&&a.push("H",r[0]),a.join("")}function Ql(e){var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];while(++t<n)a.push("V",(r=e[t])[1],"H",r[0]);return a.join("")}function es(e){var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];while(++t<n)a.push("H",(r=e[t])[0],"V",r[1]);return a.join("")}function ts(e,t){return e.length<4?Xl(e):e[1]+as(e.slice(1,-1),os(e,t))}function ns(e,t){return e.length<3?Zl(e):e[0]+as((e.push(e[0]),e),os([e[e.length-2]].concat(e,[e[1]]),t))}function rs(e,t){return e.length<3?Xl(e):e[0]+as(e,os(e,t))}function as(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return Xl(e);var n=e.length!=t.length,r="",a=e[0],o=e[1],i=t[0],l=i,s=1;if(n&&(r+="Q"+(o[0]-2*i[0]/3)+","+(o[1]-2*i[1]/3)+","+o[0]+","+o[1],a=e[1],s=2),t.length>1){l=t[1],o=e[s],s++,r+="C"+(a[0]+i[0])+","+(a[1]+i[1])+","+(o[0]-l[0])+","+(o[1]-l[1])+","+o[0]+","+o[1];for(var u=2;u<t.length;u++,s++)o=e[s],l=t[u],r+="S"+(o[0]-l[0])+","+(o[1]-l[1])+","+o[0]+","+o[1]}if(n){var c=e[s];r+="Q"+(o[0]+2*l[0]/3)+","+(o[1]+2*l[1]/3)+","+c[0]+","+c[1]}return r}function os(e,t){var n,r=[],a=(1-t)/2,o=e[0],i=e[1],l=1,s=e.length;while(++l<s)n=o,o=i,i=e[l],r.push([a*(i[0]-n[0]),a*(i[1]-n[1])]);return r}function is(e){if(e.length<3)return Xl(e);var t=1,n=e.length,r=e[0],a=r[0],o=r[1],i=[a,a,a,(r=e[1])[0]],l=[o,o,o,r[1]],s=[a,",",o,"L",cs(ds,i),",",cs(ds,l)];e.push(e[n-1]);while(++t<=n)r=e[t],i.shift(),i.push(r[0]),l.shift(),l.push(r[1]),hs(s,i,l);return e.pop(),s.push("L",r),s.join("")}function ls(e){if(e.length<4)return Xl(e);var t,n=[],r=-1,a=e.length,o=[0],i=[0];while(++r<3)t=e[r],o.push(t[0]),i.push(t[1]);n.push(cs(ds,o)+","+cs(ds,i)),--r;while(++r<a)t=e[r],o.shift(),o.push(t[0]),i.shift(),i.push(t[1]),hs(n,o,i);return n.join("")}function ss(e){var t,n,r=-1,a=e.length,o=a+4,i=[],l=[];while(++r<4)n=e[r%a],i.push(n[0]),l.push(n[1]);t=[cs(ds,i),",",cs(ds,l)],--r;while(++r<o)n=e[r%a],i.shift(),i.push(n[0]),l.shift(),l.push(n[1]),hs(t,i,l);return t.join("")}function us(e,t){var n=e.length-1;if(n){var r,a,o=e[0][0],i=e[0][1],l=e[n][0]-o,s=e[n][1]-i,u=-1;while(++u<=n)r=e[u],a=u/n,r[0]=t*r[0]+(1-t)*(o+a*l),r[1]=t*r[1]+(1-t)*(i+a*s)}return is(e)}function cs(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}Kl.forEach((function(e,t){t.key=e,t.closed=/-closed$/.test(e)}));var fs=[0,2/3,1/3,0],ps=[0,1/3,2/3,0],ds=[0,1/6,2/3,1/6];function hs(e,t,n){e.push("C",cs(fs,t),",",cs(fs,n),",",cs(ps,t),",",cs(ps,n),",",cs(ds,t),",",cs(ds,n))}function vs(e,t){return(t[1]-e[1])/(t[0]-e[0])}function ms(e){var t=0,n=e.length-1,r=[],a=e[0],o=e[1],i=r[0]=vs(a,o);while(++t<n)r[t]=(i+(i=vs(a=o,o=e[t+1])))/2;return r[t]=i,r}function ys(e){var t,n,r,a,o=[],i=ms(e),l=-1,s=e.length-1;while(++l<s)t=vs(e[l],e[l+1]),w(t)<Ae?i[l]=i[l+1]=0:(n=i[l]/t,r=i[l+1]/t,a=n*n+r*r,a>9&&(a=3*t/Math.sqrt(a),i[l]=a*n,i[l+1]=a*r));l=-1;while(++l<=s)a=(e[Math.min(s,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+i[l]*i[l])),o.push([a||0,i[l]*a||0]);return o}function gs(e){return e.length<3?Xl(e):e[0]+as(e,ys(e))}function bs(e){var t,n,r,a=-1,o=e.length;while(++a<o)t=e[a],n=t[0],r=t[1]-Ie,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function xs(e){var t=Ma,n=Ma,r=0,a=Sa,o=cr,i=Xl,l=i.key,s=i,u="L",c=.7;function f(l){var f,p,d,h=[],v=[],m=[],y=-1,g=l.length,b=Mt(t),x=Mt(r),_=t===n?function(){return p}:Mt(n),w=r===a?function(){return d}:Mt(a);function k(){h.push("M",i(e(m),c),u,s(e(v.reverse()),c),"Z")}while(++y<g)o.call(this,f=l[y],y)?(v.push([p=+b.call(this,f,y),d=+x.call(this,f,y)]),m.push([+_.call(this,f,y),+w.call(this,f,y)])):v.length&&(k(),v=[],m=[]);return v.length&&k(),h.length?h.join(""):null}return f.x=function(e){return arguments.length?(t=n=e,f):n},f.x0=function(e){return arguments.length?(t=e,f):t},f.x1=function(e){return arguments.length?(n=e,f):n},f.y=function(e){return arguments.length?(r=a=e,f):a},f.y0=function(e){return arguments.length?(r=e,f):r},f.y1=function(e){return arguments.length?(a=e,f):a},f.defined=function(e){return arguments.length?(o=e,f):o},f.interpolate=function(e){return arguments.length?(l="function"===typeof e?i=e:(i=Kl.get(e)||Xl).key,s=i.reverse||i,u=i.closed?"M":"L",f):l},f.tension=function(e){return arguments.length?(c=e,f):c},f}function _s(e){return e.radius}function ws(e){return[e.x,e.y]}function ks(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Ie;return[n*Math.cos(r),n*Math.sin(r)]}}function Ts(){return 64}function Es(){return"circle"}function Os(e){var t=Math.sqrt(e/Le);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}o.svg.line.radial=function(){var e=Yl(bs);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},Ql.reverse=es,es.reverse=Ql,o.svg.area=function(){return xs(R)},o.svg.area.radial=function(){var e=xs(bs);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},o.svg.chord=function(){var e=fa,t=pa,n=_s,r=Ul,a=Wl;function o(n,r){var a=i(this,e,n,r),o=i(this,t,n,r);return"M"+a.p0+s(a.r,a.p1,a.a1-a.a0)+(l(a,o)?u(a.r,a.p1,a.r,a.p0):u(a.r,a.p1,o.r,o.p0)+s(o.r,o.p1,o.a1-o.a0)+u(o.r,o.p1,a.r,a.p0))+"Z"}function i(e,t,o,i){var l=t.call(e,o,i),s=n.call(e,l,i),u=r.call(e,l,i)-Ie,c=a.call(e,l,i)-Ie;return{r:s,a0:u,a1:c,p0:[s*Math.cos(u),s*Math.sin(u)],p1:[s*Math.cos(c),s*Math.sin(c)]}}function l(e,t){return e.a0==t.a0&&e.a1==t.a1}function s(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Le)+",1 "+t}function u(e,t,n,r){return"Q 0,0 "+r}return o.radius=function(e){return arguments.length?(n=Mt(e),o):n},o.source=function(t){return arguments.length?(e=Mt(t),o):e},o.target=function(e){return arguments.length?(t=Mt(e),o):t},o.startAngle=function(e){return arguments.length?(r=Mt(e),o):r},o.endAngle=function(e){return arguments.length?(a=Mt(e),o):a},o},o.svg.diagonal=function(){var e=fa,t=pa,n=ws;function r(r,a){var o=e.call(this,r,a),i=t.call(this,r,a),l=(o.y+i.y)/2,s=[o,{x:o.x,y:l},{x:i.x,y:l},i];return s=s.map(n),"M"+s[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return r.source=function(t){return arguments.length?(e=Mt(t),r):e},r.target=function(e){return arguments.length?(t=Mt(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},o.svg.diagonal.radial=function(){var e=o.svg.diagonal(),t=ws,n=e.projection;return e.projection=function(e){return arguments.length?n(ks(t=e)):t},e},o.svg.symbol=function(){var e=Es,t=Ts;function n(n,r){return(Ms.get(e.call(this,n,r))||Os)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=Mt(t),n):e},n.size=function(e){return arguments.length?(t=Mt(e),n):t},n};var Ms=o.map({circle:Os,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Cs)),n=t*Cs;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Ss),n=t*Ss/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Ss),n=t*Ss/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});o.svg.symbolTypes=Ms.keys();var Ss=Math.sqrt(3),Cs=Math.tan(30*Re);J.transition=function(e){for(var t,n,r=Ds||++Rs,a=Fs(e),o=[],i=js||{time:Date.now(),ease:Fo,delay:0,duration:250},l=-1,s=this.length;++l<s;){o.push(t=[]);for(var u=this[l],c=-1,f=u.length;++c<f;)(n=u[c])&&Bs(n,c,a,r,i),t.push(n)}return Ls(o,a,r)},J.interrupt=function(e){return this.each(null==e?As:Ps(Fs(e)))};var As=Ps(Fs());function Ps(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Ls(e,t,n){return G(e,Is),e.namespace=t,e.id=n,e}var Ds,js,Is=[],Rs=0;function zs(e,t,n,r){var a=e.id,o=e.namespace;return me(e,"function"===typeof n?function(e,i,l){e[o][a].tween.set(t,r(n.call(e,e.__data__,i,l)))}:(n=r(n),function(e){e[o][a].tween.set(t,n)}))}function Ns(e){return null==e&&(e=""),function(){this.textContent=e}}function Fs(e){return null==e?"__transition__":"__transition_"+e+"__"}function Bs(e,t,n,r,a){var o,i,l,s,u,c=e[n]||(e[n]={active:0,count:0}),f=c[r];function p(e){var t=f.delay;if(i.t=t+o,t<=e)return d(e-t);i.c=d}function d(n){var a=c.active,p=c[a];for(var d in p&&(p.timer.c=null,p.timer.t=NaN,--c.count,delete c[a],p.event&&p.event.interrupt.call(e,e.__data__,p.index)),c)if(+d<r){var v=c[d];v.timer.c=null,v.timer.t=NaN,--c.count,delete c[d]}i.c=h,zt((function(){return i.c&&h(n||1)&&(i.c=null,i.t=NaN),1}),0,o),c.active=r,f.event&&f.event.start.call(e,e.__data__,t),u=[],f.tween.forEach((function(n,r){(r=r.call(e,e.__data__,t))&&u.push(r)})),s=f.ease,l=f.duration}function h(a){var o=a/l,i=s(o),p=u.length;while(p>0)u[--p].call(e,i);if(o>=1)return f.event&&f.event.end.call(e,e.__data__,t),--c.count?delete c[r]:delete e[n],1}f||(o=a.time,i=zt(p,0,o),f=c[r]={tween:new E,time:o,timer:i,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++c.count)}Is.call=J.call,Is.empty=J.empty,Is.node=J.node,Is.size=J.size,o.transition=function(e,t){return e&&e.transition?Ds?e.transition(t):e:o.selection().transition(e)},o.transition.prototype=Is,Is.select=function(e){var t,n,r,a=this.id,o=this.namespace,i=[];e=Q(e);for(var l=-1,s=this.length;++l<s;){i.push(t=[]);for(var u=this[l],c=-1,f=u.length;++c<f;)(r=u[c])&&(n=e.call(r,r.__data__,c,l))?("__data__"in r&&(n.__data__=r.__data__),Bs(n,c,o,a,r[o][a]),t.push(n)):t.push(null)}return Ls(i,o,a)},Is.selectAll=function(e){var t,n,r,a,o,i=this.id,l=this.namespace,s=[];e=ee(e);for(var u=-1,c=this.length;++u<c;)for(var f=this[u],p=-1,d=f.length;++p<d;)if(r=f[p]){o=r[l][i],n=e.call(r,r.__data__,p,u),s.push(t=[]);for(var h=-1,v=n.length;++h<v;)(a=n[h])&&Bs(a,h,l,i,o),t.push(a)}return Ls(s,l,i)},Is.filter=function(e){var t,n,r=[];"function"!==typeof e&&(e=he(e));for(var a=0,o=this.length;a<o;a++){r.push(t=[]);for(var i=this[a],l=0,s=i.length;l<s;l++)(n=i[l])&&e.call(n,n.__data__,l,a)&&t.push(n)}return Ls(r,this.namespace,this.id)},Is.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):me(this,null==t?function(t){t[r][n].tween.remove(e)}:function(a){a[r][n].tween.set(e,t)})},Is.attr=function(e,t){if(arguments.length<2){for(t in e)this.attr(t,e[t]);return this}var n="transform"==e?li:Co,r=o.ns.qualify(e);function a(){this.removeAttribute(r)}function i(){this.removeAttributeNS(r.space,r.local)}function l(e){return null==e?a:(e+="",function(){var t,a=this.getAttribute(r);return a!==e&&(t=n(a,e),function(e){this.setAttribute(r,t(e))})})}function s(e){return null==e?i:(e+="",function(){var t,a=this.getAttributeNS(r.space,r.local);return a!==e&&(t=n(a,e),function(e){this.setAttributeNS(r.space,r.local,t(e))})})}return zs(this,"attr."+e,t,r.local?s:l)},Is.attrTween=function(e,t){var n=o.ns.qualify(e);function r(e,r){var a=t.call(this,e,r,this.getAttribute(n));return a&&function(e){this.setAttribute(n,a(e))}}function a(e,r){var a=t.call(this,e,r,this.getAttributeNS(n.space,n.local));return a&&function(e){this.setAttributeNS(n.space,n.local,a(e))}}return this.tween("attr."+e,n.local?a:r)},Is.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!==typeof e){for(n in r<2&&(t=""),e)this.style(n,e[n],t);return this}n=""}function a(){this.style.removeProperty(e)}function o(t){return null==t?a:(t+="",function(){var r,a=c(this).getComputedStyle(this,null).getPropertyValue(e);return a!==t&&(r=Co(a,t),function(t){this.style.setProperty(e,r(t),n)})})}return zs(this,"style."+e,t,o)},Is.styleTween=function(e,t,n){function r(r,a){var o=t.call(this,r,a,c(this).getComputedStyle(this,null).getPropertyValue(e));return o&&function(t){this.style.setProperty(e,o(t),n)}}return arguments.length<3&&(n=""),this.tween("style."+e,r)},Is.text=function(e){return zs(this,"text",e,Ns)},Is.remove=function(){var e=this.namespace;return this.each("end.transition",(function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)}))},Is.ease=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].ease:("function"!==typeof e&&(e=o.ease.apply(o,arguments)),me(this,(function(r){r[n][t].ease=e})))},Is.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:me(this,"function"===typeof e?function(r,a,o){r[n][t].delay=+e.call(r,r.__data__,a,o)}:(e=+e,function(r){r[n][t].delay=e}))},Is.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:me(this,"function"===typeof e?function(r,a,o){r[n][t].duration=Math.max(1,e.call(r,r.__data__,a,o))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},Is.each=function(e,t){var n=this.id,r=this.namespace;if(arguments.length<2){var a=js,i=Ds;try{Ds=n,me(this,(function(t,a,o){js=t[r][n],e.call(t,t.__data__,a,o)}))}finally{js=a,Ds=i}}else me(this,(function(a){var i=a[r][n];(i.event||(i.event=o.dispatch("start","end","interrupt"))).on(e,t)}));return this},Is.transition=function(){for(var e,t,n,r=this.id,a=++Rs,o=this.namespace,i=[],l=0,s=this.length;l<s;l++){i.push(e=[]);for(var u=this[l],c=0,f=u.length;c<f;c++)(t=u[c])&&(n=t[o][r],Bs(t,c,o,a,{time:n.time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration})),e.push(t)}return Ls(i,o,a)},o.svg.axis=function(){var e,t=o.scale.linear(),n=Vs,r=6,a=6,i=3,s=[10],u=null;function c(l){l.each((function(){var l,c=o.select(this),f=this.__chart__||t,p=this.__chart__=t.copy(),d=null==u?p.ticks?p.ticks.apply(p,s):p.domain():u,h=null==e?p.tickFormat?p.tickFormat.apply(p,s):R:e,v=c.selectAll(".tick").data(d,p),m=v.enter().insert("g",".domain").attr("class","tick").style("opacity",Ae),y=o.transition(v.exit()).style("opacity",Ae).remove(),g=o.transition(v.order()).style("opacity",1),b=Math.max(r,0)+i,x=cl(p),_=c.selectAll(".domain").data([0]),w=(_.enter().append("path").attr("class","domain"),o.transition(_));m.append("line"),m.append("text");var k,T,E,O,M=m.select("line"),S=g.select("line"),C=v.select("text").text(h),A=m.select("text"),P=g.select("text"),L="top"===n||"left"===n?-1:1;if("bottom"===n||"top"===n?(l=Us,k="x",E="y",T="x2",O="y2",C.attr("dy",L<0?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+x[0]+","+L*a+"V0H"+x[1]+"V"+L*a)):(l=Ws,k="y",E="x",T="y2",O="x2",C.attr("dy",".32em").style("text-anchor",L<0?"end":"start"),w.attr("d","M"+L*a+","+x[0]+"H0V"+x[1]+"H"+L*a)),M.attr(O,L*r),A.attr(E,L*b),S.attr(T,0).attr(O,L*r),P.attr(k,0).attr(E,L*b),p.rangeBand){var D=p,j=D.rangeBand()/2;f=p=function(e){return D(e)+j}}else f.rangeBand?f=p:y.call(l,p,f);m.call(l,f,p),g.call(l,p,p)}))}return c.scale=function(e){return arguments.length?(t=e,c):t},c.orient=function(e){return arguments.length?(n=e in Hs?e+"":Vs,c):n},c.ticks=function(){return arguments.length?(s=l(arguments),c):s},c.tickValues=function(e){return arguments.length?(u=e,c):u},c.tickFormat=function(t){return arguments.length?(e=t,c):e},c.tickSize=function(e){var t=arguments.length;return t?(r=+e,a=+arguments[t-1],c):r},c.innerTickSize=function(e){return arguments.length?(r=+e,c):r},c.outerTickSize=function(e){return arguments.length?(a=+e,c):a},c.tickPadding=function(e){return arguments.length?(i=+e,c):i},c.tickSubdivide=function(){return arguments.length&&c},c};var Vs="bottom",Hs={top:1,right:1,bottom:1,left:1};function Us(e,t,n){e.attr("transform",(function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"}))}function Ws(e,t,n){e.attr("transform",(function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"}))}o.svg.brush=function(){var e,t,n=q(p,"brushstart","brush","brushend"),r=null,a=null,i=[0,0],l=[0,0],s=!0,u=!0,f=$s[0];function p(e){e.each((function(){var e=o.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",m).on("touchstart.brush",m),t=e.selectAll(".background").data([0]);t.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var n=e.selectAll(".resize").data(f,R);n.exit().remove(),n.enter().append("g").attr("class",(function(e){return"resize "+e})).style("cursor",(function(e){return qs[e]})).append("rect").attr("x",(function(e){return/[ew]$/.test(e)?-3:null})).attr("y",(function(e){return/^[ns]/.test(e)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),n.style("display",p.empty()?"none":null);var i,l=o.transition(e),s=o.transition(t);r&&(i=cl(r),s.attr("x",i[0]).attr("width",i[1]-i[0]),h(l)),a&&(i=cl(a),s.attr("y",i[0]).attr("height",i[1]-i[0]),v(l)),d(l)}))}function d(e){e.selectAll(".resize").attr("transform",(function(e){return"translate("+i[+/e$/.test(e)]+","+l[+/^s/.test(e)]+")"}))}function h(e){e.select(".extent").attr("x",i[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",i[1]-i[0])}function v(e){e.select(".extent").attr("y",l[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",l[1]-l[0])}function m(){var f,m,y=this,g=o.select(o.event.target),b=n.of(y,arguments),x=o.select(y),_=g.datum(),w=!/^(n|s)$/.test(_)&&r,k=!/^(e|w)$/.test(_)&&a,T=g.classed("extent"),E=Oe(y),O=o.mouse(y),M=o.select(c(y)).on("keydown.brush",A).on("keyup.brush",P);if(o.event.changedTouches?M.on("touchmove.brush",L).on("touchend.brush",j):M.on("mousemove.brush",L).on("mouseup.brush",j),x.interrupt().selectAll("*").interrupt(),T)O[0]=i[0]-O[0],O[1]=l[0]-O[1];else if(_){var S=+/w$/.test(_),C=+/^n/.test(_);m=[i[1-S]-O[0],l[1-C]-O[1]],O[0]=i[S],O[1]=l[C]}else o.event.altKey&&(f=O.slice());function A(){32==o.event.keyCode&&(T||(f=null,O[0]-=i[1],O[1]-=l[1],T=2),U())}function P(){32==o.event.keyCode&&2==T&&(O[0]+=i[1],O[1]+=l[1],T=0,U())}function L(){var e=o.mouse(y),t=!1;m&&(e[0]+=m[0],e[1]+=m[1]),T||(o.event.altKey?(f||(f=[(i[0]+i[1])/2,(l[0]+l[1])/2]),O[0]=i[+(e[0]<f[0])],O[1]=l[+(e[1]<f[1])]):f=null),w&&D(e,r,0)&&(h(x),t=!0),k&&D(e,a,1)&&(v(x),t=!0),t&&(d(x),b({type:"brush",mode:T?"move":"resize"}))}function D(n,r,a){var o,c,p=cl(r),d=p[0],h=p[1],v=O[a],m=a?l:i,y=m[1]-m[0];if(T&&(d-=v,h-=y+v),o=(a?u:s)?Math.max(d,Math.min(h,n[a])):n[a],T?c=(o+=v)+y:(f&&(v=Math.max(d,Math.min(h,2*f[a]-o))),v<o?(c=o,o=v):c=v),m[0]!=o||m[1]!=c)return a?t=null:e=null,m[0]=o,m[1]=c,!0}function j(){L(),x.style("pointer-events","all").selectAll(".resize").style("display",p.empty()?"none":null),o.select("body").style("cursor",null),M.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),E(),b({type:"brushend"})}x.style("pointer-events","none").selectAll(".resize").style("display",null),o.select("body").style("cursor",g.style("cursor")),b({type:"brushstart"}),L()}return p.event=function(r){r.each((function(){var r=n.of(this,arguments),a={x:i,y:l,i:e,j:t},s=this.__chart__||a;this.__chart__=a,Ds?o.select(this).transition().each("start.brush",(function(){e=s.i,t=s.j,i=s.x,l=s.y,r({type:"brushstart"})})).tween("brush:brush",(function(){var n=Ao(i,a.x),o=Ao(l,a.y);return e=t=null,function(e){i=a.x=n(e),l=a.y=o(e),r({type:"brush",mode:"resize"})}})).each("end.brush",(function(){e=a.i,t=a.j,r({type:"brush",mode:"resize"}),r({type:"brushend"})})):(r({type:"brushstart"}),r({type:"brush",mode:"resize"}),r({type:"brushend"}))}))},p.x=function(e){return arguments.length?(r=e,f=$s[!r<<1|!a],p):r},p.y=function(e){return arguments.length?(a=e,f=$s[!r<<1|!a],p):a},p.clamp=function(e){return arguments.length?(r&&a?(s=!!e[0],u=!!e[1]):r?s=!!e:a&&(u=!!e),p):r&&a?[s,u]:r?s:a?u:null},p.extent=function(n){var o,s,u,c,f;return arguments.length?(r&&(o=n[0],s=n[1],a&&(o=o[0],s=s[0]),e=[o,s],r.invert&&(o=r(o),s=r(s)),s<o&&(f=o,o=s,s=f),o==i[0]&&s==i[1]||(i=[o,s])),a&&(u=n[0],c=n[1],r&&(u=u[1],c=c[1]),t=[u,c],a.invert&&(u=a(u),c=a(c)),c<u&&(f=u,u=c,c=f),u==l[0]&&c==l[1]||(l=[u,c])),p):(r&&(e?(o=e[0],s=e[1]):(o=i[0],s=i[1],r.invert&&(o=r.invert(o),s=r.invert(s)),s<o&&(f=o,o=s,s=f))),a&&(t?(u=t[0],c=t[1]):(u=l[0],c=l[1],a.invert&&(u=a.invert(u),c=a.invert(c)),c<u&&(f=u,u=c,c=f))),r&&a?[[o,u],[s,c]]:r?[o,s]:a&&[u,c])},p.clear=function(){return p.empty()||(i=[0,0],l=[0,0],e=t=null),p},p.empty=function(){return!!r&&i[0]==i[1]||!!a&&l[0]==l[1]},o.rebind(p,n,"on")};var qs={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},$s=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Gs=Yt.format=En.timeFormat,Ys=Gs.utc,Ks=Ys("%Y-%m-%dT%H:%M:%S.%LZ");function Xs(e){return e.toISOString()}function Zs(e,t,n){function r(t){return e(t)}function a(e,n){var r=e[1]-e[0],a=r/n,i=o.bisect(Qs,a);return i==Qs.length?[t.year,bl(e.map((function(e){return e/31536e6})),n)[2]]:i?t[a/Qs[i-1]<Qs[i]/a?i-1:i]:[nu,bl(e,n)[2]]}return r.invert=function(t){return Js(e.invert(t))},r.domain=function(t){return arguments.length?(e.domain(t),r):e.domain().map(Js)},r.nice=function(e,t){var n=r.domain(),o=ul(n),i=null==e?a(o,10):"number"===typeof e&&a(o,e);function l(n){return!isNaN(n)&&!e.range(n,Js(+n+1),t).length}return i&&(e=i[0],t=i[1]),r.domain(pl(n,t>1?{floor:function(t){while(l(t=e.floor(t)))t=Js(t-1);return t},ceil:function(t){while(l(t=e.ceil(t)))t=Js(+t+1);return t}}:e))},r.ticks=function(e,t){var n=ul(r.domain()),o=null==e?a(n,10):"number"===typeof e?a(n,e):!e.range&&[{range:e},t];return o&&(e=o[0],t=o[1]),e.range(n[0],Js(+n[1]+1),t<1?1:t)},r.tickFormat=function(){return n},r.copy=function(){return Zs(e.copy(),t,n)},yl(r,e)}function Js(e){return new Date(e)}Gs.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Xs:Ks,Xs.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Xs.toString=Ks.toString,Yt.second=Jt((function(e){return new Kt(1e3*Math.floor(e/1e3))}),(function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))}),(function(e){return e.getSeconds()})),Yt.seconds=Yt.second.range,Yt.seconds.utc=Yt.second.utc.range,Yt.minute=Jt((function(e){return new Kt(6e4*Math.floor(e/6e4))}),(function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))}),(function(e){return e.getMinutes()})),Yt.minutes=Yt.minute.range,Yt.minutes.utc=Yt.minute.utc.range,Yt.hour=Jt((function(e){var t=e.getTimezoneOffset()/60;return new Kt(36e5*(Math.floor(e/36e5-t)+t))}),(function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))}),(function(e){return e.getHours()})),Yt.hours=Yt.hour.range,Yt.hours.utc=Yt.hour.utc.range,Yt.month=Jt((function(e){return e=Yt.day(e),e.setDate(1),e}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e){return e.getMonth()})),Yt.months=Yt.month.range,Yt.months.utc=Yt.month.utc.range;var Qs=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],eu=[[Yt.second,1],[Yt.second,5],[Yt.second,15],[Yt.second,30],[Yt.minute,1],[Yt.minute,5],[Yt.minute,15],[Yt.minute,30],[Yt.hour,1],[Yt.hour,3],[Yt.hour,6],[Yt.hour,12],[Yt.day,1],[Yt.day,2],[Yt.week,1],[Yt.month,1],[Yt.month,3],[Yt.year,1]],tu=Gs.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",cr]]),nu={range:function(e,t,n){return o.range(Math.ceil(e/n)*n,+t,n).map(Js)},floor:R,ceil:R};eu.year=Yt.year,Yt.scale=function(){return Zs(o.scale.linear(),eu,tu)};var ru=eu.map((function(e){return[e[0].utc,e[1]]})),au=Ys.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",cr]]);function ou(e){return JSON.parse(e.responseText)}function iu(e){var t=s.createRange();return t.selectNode(s.body),t.createContextualFragment(e.responseText)}ru.year=Yt.year.utc,Yt.scale.utc=function(){return Zs(o.scale.linear(),ru,au)},o.text=St((function(e){return e.responseText})),o.json=function(e,t){return Ct(e,"application/json",ou,t)},o.html=function(e,t){return Ct(e,"text/html",iu,t)},o.xml=St((function(e){return e.responseXML})),this.d3=o,r=o,a="function"===typeof r?r.call(t,n,t,e):r,void 0===a||(e.exports=a)}()},"6eeb":function(e,t,n){var r=n("da84"),a=n("9112"),o=n("5135"),i=n("ce4e"),l=n("8925"),s=n("69f3"),u=s.get,c=s.enforce,f=String(String).split("String");(e.exports=function(e,t,n,l){var s=!!l&&!!l.unsafe,u=!!l&&!!l.enumerable,p=!!l&&!!l.noTargetGet;"function"==typeof n&&("string"!=typeof t||o(n,"name")||a(n,"name",t),c(n).source=f.join("string"==typeof t?t:"")),e!==r?(s?!p&&e[t]&&(u=!0):delete e[t],u?e[t]=n:a(e,t,n)):u?e[t]=n:i(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||l(this)}))},"6eee":function(e,t,n){"use strict";var r=n("9452"),a=n("4da8"),o=n("d8db");function i(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),a={},o=t.getStartKey(),i=t.getStartOffset(),l=n.get(o),u=s(r,l,i);u!==l&&(a[o]=u);var c=t.getEndKey(),f=t.getEndOffset(),p=n.get(c);o===c&&(p=u);var d=s(r,p,f);return d!==p&&(a[c]=d),Object.keys(a).length?e.merge({blockMap:n.merge(a),selectionAfter:t}):e.set("selectionAfter",t)}function l(e,t,n){var r;return a(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!==typeof r&&o(!1),r}function s(e,t,n){var a=t.getCharacterList(),o=n>0?a.get(n-1):void 0,i=n<a.count()?a.get(n):void 0,s=o?o.getEntity():void 0,u=i?i.getEntity():void 0;if(u&&u===s){var c=e.__get(u);if("MUTABLE"!==c.getMutability()){var f,p=l(a,u,n),d=p.start,h=p.end;while(d<h)f=a.get(d),a=a.set(d,r.applyEntity(f,null)),d++;return t.set("characterList",a)}}return t}e.exports=i},"6f6c":function(e,t){var n=/\w*$/;function r(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}e.exports=r},"6f85":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M19,19H5V5H15V3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V11H19M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}))};e.exports=l},"6fcd":function(e,t,n){var r=n("50d8"),a=n("d370"),o=n("6747"),i=n("0d24"),l=n("c098"),s=n("73ac"),u=Object.prototype,c=u.hasOwnProperty;function f(e,t){var n=o(e),u=!n&&a(e),f=!n&&!u&&i(e),p=!n&&!u&&!f&&s(e),d=n||u||f||p,h=d?r(e.length,String):[],v=h.length;for(var m in e)!t&&!c.call(e,m)||d&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||l(m,v))||h.push(m);return h}e.exports=f},"706c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedHoverLabelNameLength=void 0;var r=f(n("ab5b")),a=u(n("d7bc")),o=n("4578"),i=u(n("5174")),l=u(n("37cc")),s=u(n("d8d0"));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function p(e){return p="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},p(e)}function d(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 g(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}function b(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&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function _(e){var t=T();return function(){var n,r=E(e);if(t){var a=E(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?k(e):t}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(){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}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var O=function(e){b(n,e);var t=_(n);function n(e){var r;return m(this,n),r=t.call(this,e),r.state={currentOption:r.getCurrentOption(e)},r.onOptionChange=r.onOptionChange.bind(k(r)),r}return g(n,[{key:"getCurrentOption",value:function(e){return e.fullValue>0?"clip":0===e.fullValue?"hide":"no-clip"}},{key:"componentWillReceiveProps",value:function(e){e.fullValue!==this.props.fullValue&&this.setState({currentOption:this.getCurrentOption(e)})}},{key:"onOptionChange",value:function(e){"clip"===this.state.currentOption||"clip"!==e?"no-clip"!==e?"hide"!==e||this.props.updatePlot(0):this.props.updatePlot(-1):this.props.updatePlot(15)}},{key:"render",value:function(){var e=this.context.localize;return r.default.createElement(i.default,this.props,r.default.createElement(l.default,{activeOption:this.state.currentOption,options:[{label:e("Clip To"),value:"clip"},{label:e("No Clip"),value:"no-clip"},{label:e("Hide"),value:"hide"}],onOptionChange:this.onOptionChange}),r.default.createElement("div",{style:{height:"10px",width:"100%"}}),"clip"===this.state.currentOption?r.default.createElement(s.default,{value:this.props.fullValue,onChange:this.props.updatePlot,onUpdate:this.props.updatePlot,units:"px"}):null)}}]),n}(r.Component);t.UnconnectedHoverLabelNameLength=O,O.propTypes=h({fullValue:a.default.number,updatePlot:a.default.func},i.default.propTypes),O.contextTypes={localize:a.default.func},O.displayName="UnconnectedHoverLabelNameLength";var M=(0,o.connectToContainer)(O,{modifyPlotProps:function(e,t,n){var r=n.container;n.isVisible=r.hoverinfo&&r.hoverinfo.includes("name")||r.hovertemplate||" "===r.hovertemplate}});t.default=M},7077:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19C20.1,6 21,6.9 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z"}))};e.exports=l},"70d2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dayMatchesModifier=o,t.getModifiersForDay=i;var r=n("4ea5"),a=n("db0b");function o(e,t){if(!t)return!1;var n=Array.isArray(t)?t:[t];return n.some((function(t){return!!t&&(t instanceof Date?(0,r.isSameDay)(e,t):(0,a.isRangeOfDates)(t)?(0,r.isDayInRange)(e,t):t.after&&t.before&&(0,r.isDayAfter)(t.before,t.after)?(0,r.isDayAfter)(e,t.after)&&(0,r.isDayBefore)(e,t.before):t.after&&t.before&&((0,r.isDayAfter)(t.after,t.before)||(0,r.isSameDay)(t.after,t.before))?(0,r.isDayAfter)(e,t.after)||(0,r.isDayBefore)(e,t.before):t.after?(0,r.isDayAfter)(e,t.after):t.before?(0,r.isDayBefore)(e,t.before):t.daysOfWeek?t.daysOfWeek.some((function(t){return e.getDay()===t})):"function"===typeof t&&t(e))}))}function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(n,r){var a=t[r];return o(e,a)&&n.push(r),n}),[])}t.default={dayMatchesModifier:o,getModifiersForDay:i}},"70e1":function(e,t,n){"use strict";n.r(t),n.d(t,"timeFormatDefaultLocale",(function(){return ot})),n.d(t,"timeFormat",(function(){return N})),n.d(t,"timeParse",(function(){return F})),n.d(t,"utcFormat",(function(){return B})),n.d(t,"utcParse",(function(){return V})),n.d(t,"timeFormatLocale",(function(){return R})),n.d(t,"isoFormat",(function(){return ut})),n.d(t,"isoParse",(function(){return pt}));var r=new Date,a=new Date;function o(e,t,n,i){function l(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return l.floor=function(t){return e(t=new Date(+t)),t},l.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},l.round=function(e){var t=l(e),n=l.ceil(e);return e-t<n-e?t:n},l.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},l.range=function(n,r,a){var o,i=[];if(n=l.ceil(n),a=null==a?1:Math.floor(a),!(n<r)||!(a>0))return i;do{i.push(o=new Date(+n)),t(n,a),e(n)}while(o<n&&n<r);return i},l.filter=function(n){return o((function(t){if(t>=t)while(e(t),!n(t))t.setTime(t-1)}),(function(e,r){if(e>=e)if(r<0)while(++r<=0)while(t(e,-1),!n(e));else while(--r>=0)while(t(e,1),!n(e));}))},n&&(l.count=function(t,o){return r.setTime(+t),a.setTime(+o),e(r),e(a),Math.floor(n(r,a))},l.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?l.filter(i?function(t){return i(t)%e===0}:function(t){return l.count(0,t)%e===0}):l:null}),l}var i=6e4,l=864e5,s=6048e5;function u(e){return o((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/s}))}var c=u(0),f=u(1),p=u(2),d=u(3),h=u(4),v=u(5),m=u(6),y=(c.range,f.range,p.range,d.range,h.range,v.range,m.range,o((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/l}),(function(e){return e.getUTCDate()-1}))),g=y;y.range;function b(e){return o((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i)/s}))}var x=b(0),_=b(1),w=b(2),k=b(3),T=b(4),E=b(5),O=b(6),M=(x.range,_.range,w.range,k.range,T.range,E.range,O.range,o((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*i)/l}),(function(e){return e.getDate()-1}))),S=M,C=(M.range,o((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()})));C.every=function(e){return isFinite(e=Math.floor(e))&&e>0?o((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var A=C,P=(C.range,o((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()})));P.every=function(e){return isFinite(e=Math.floor(e))&&e>0?o((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var L=P;P.range;function D(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function j(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function I(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function R(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,o=e.days,i=e.shortDays,l=e.months,s=e.shortMonths,u=Y(a),c=K(a),p=Y(o),d=K(o),h=Y(i),v=K(i),m=Y(l),y=K(l),b=Y(s),x=K(s),w={a:B,A:V,b:U,B:W,c:null,d:me,e:me,f:_e,g:Le,G:je,H:ye,I:ge,j:be,L:xe,m:we,M:ke,p:q,q:$,Q:rt,s:at,S:Te,u:Ee,U:Oe,V:Se,w:Ce,W:Ae,x:null,X:null,y:Pe,Y:De,Z:Ie,"%":nt},k={a:G,A:Me,b:Ge,B:ot,c:null,d:Re,e:Re,f:Ve,g:Je,G:et,H:ze,I:Ne,j:Fe,L:Be,m:He,M:Ue,p:it,q:lt,Q:rt,s:at,S:We,u:qe,U:$e,V:Ye,w:Ke,W:Xe,x:null,X:null,y:Ze,Y:Qe,Z:tt,"%":nt},T={a:A,A:P,b:L,B:R,c:z,d:ie,e:ie,f:pe,g:ne,G:te,H:se,I:se,j:le,L:fe,m:oe,M:ue,p:C,q:ae,Q:he,s:ve,S:ce,u:Z,U:J,V:Q,w:X,W:ee,x:N,X:F,y:ne,Y:te,Z:re,"%":de};function E(e,t){return function(n){var r,a,o,i=[],l=-1,s=0,u=e.length;n instanceof Date||(n=new Date(+n));while(++l<u)37===e.charCodeAt(l)&&(i.push(e.slice(s,l)),null!=(a=H[r=e.charAt(++l)])?r=e.charAt(++l):a="e"===r?" ":"0",(o=t[r])&&(r=o(n,a)),i.push(r),s=l+1);return i.push(e.slice(s,l)),i.join("")}}function O(e,t){return function(n){var r,a,o=I(1900,void 0,1),i=M(o,e,n+="",0);if(i!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=j(I(o.y,0,1)),a=r.getUTCDay(),r=a>4||0===a?f.ceil(r):f(r),r=g.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=D(I(o.y,0,1)),a=r.getDay(),r=a>4||0===a?_.ceil(r):_(r),r=S.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),a="Z"in o?j(I(o.y,0,1)).getUTCDay():D(I(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(a+5)%7:o.w+7*o.U-(a+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,j(o)):D(o)}}function M(e,t,n,r){var a,o,i=0,l=t.length,s=n.length;while(i<l){if(r>=s)return-1;if(a=t.charCodeAt(i++),37===a){if(a=t.charAt(i++),o=T[a in H?t.charAt(i++):a],!o||(r=o(e,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}function C(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=c[r[0].toLowerCase()],n+r[0].length):-1}function A(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=v[r[0].toLowerCase()],n+r[0].length):-1}function P(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1}function L(e,t,n){var r=b.exec(t.slice(n));return r?(e.m=x[r[0].toLowerCase()],n+r[0].length):-1}function R(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1}function z(e,n,r){return M(e,t,n,r)}function N(e,t,r){return M(e,n,t,r)}function F(e,t,n){return M(e,r,t,n)}function B(e){return i[e.getDay()]}function V(e){return o[e.getDay()]}function U(e){return s[e.getMonth()]}function W(e){return l[e.getMonth()]}function q(e){return a[+(e.getHours()>=12)]}function $(e){return 1+~~(e.getMonth()/3)}function G(e){return i[e.getUTCDay()]}function Me(e){return o[e.getUTCDay()]}function Ge(e){return s[e.getUTCMonth()]}function ot(e){return l[e.getUTCMonth()]}function it(e){return a[+(e.getUTCHours()>=12)]}function lt(e){return 1+~~(e.getUTCMonth()/3)}return w.x=E(n,w),w.X=E(r,w),w.c=E(t,w),k.x=E(n,k),k.X=E(r,k),k.c=E(t,k),{format:function(e){var t=E(e+="",w);return t.toString=function(){return e},t},parse:function(e){var t=O(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",k);return t.toString=function(){return e},t},utcParse:function(e){var t=O(e+="",!0);return t.toString=function(){return e},t}}}var z,N,F,B,V,H={"-":"",_:" ",0:"0"},U=/^\s*\d+/,W=/^%/,q=/[\\^$*+?|[\]().{}]/g;function $(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function G(e){return e.replace(q,"\\$&")}function Y(e){return new RegExp("^(?:"+e.map(G).join("|")+")","i")}function K(e){var t={},n=-1,r=e.length;while(++n<r)t[e[n].toLowerCase()]=n;return t}function X(e,t,n){var r=U.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Z(e,t,n){var r=U.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function J(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Q(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ee(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function te(e,t,n){var r=U.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function ne(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function re(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ae(e,t,n){var r=U.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function oe(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ie(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function le(e,t,n){var r=U.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function se(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function ue(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ce(e,t,n){var r=U.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function fe(e,t,n){var r=U.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function pe(e,t,n){var r=U.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function de(e,t,n){var r=W.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function he(e,t,n){var r=U.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ve(e,t,n){var r=U.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function me(e,t){return $(e.getDate(),t,2)}function ye(e,t){return $(e.getHours(),t,2)}function ge(e,t){return $(e.getHours()%12||12,t,2)}function be(e,t){return $(1+S.count(A(e),e),t,3)}function xe(e,t){return $(e.getMilliseconds(),t,3)}function _e(e,t){return xe(e,t)+"000"}function we(e,t){return $(e.getMonth()+1,t,2)}function ke(e,t){return $(e.getMinutes(),t,2)}function Te(e,t){return $(e.getSeconds(),t,2)}function Ee(e){var t=e.getDay();return 0===t?7:t}function Oe(e,t){return $(x.count(A(e)-1,e),t,2)}function Me(e){var t=e.getDay();return t>=4||0===t?T(e):T.ceil(e)}function Se(e,t){return e=Me(e),$(T.count(A(e),e)+(4===A(e).getDay()),t,2)}function Ce(e){return e.getDay()}function Ae(e,t){return $(_.count(A(e)-1,e),t,2)}function Pe(e,t){return $(e.getFullYear()%100,t,2)}function Le(e,t){return e=Me(e),$(e.getFullYear()%100,t,2)}function De(e,t){return $(e.getFullYear()%1e4,t,4)}function je(e,t){var n=e.getDay();return e=n>=4||0===n?T(e):T.ceil(e),$(e.getFullYear()%1e4,t,4)}function Ie(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+$(t/60|0,"0",2)+$(t%60,"0",2)}function Re(e,t){return $(e.getUTCDate(),t,2)}function ze(e,t){return $(e.getUTCHours(),t,2)}function Ne(e,t){return $(e.getUTCHours()%12||12,t,2)}function Fe(e,t){return $(1+g.count(L(e),e),t,3)}function Be(e,t){return $(e.getUTCMilliseconds(),t,3)}function Ve(e,t){return Be(e,t)+"000"}function He(e,t){return $(e.getUTCMonth()+1,t,2)}function Ue(e,t){return $(e.getUTCMinutes(),t,2)}function We(e,t){return $(e.getUTCSeconds(),t,2)}function qe(e){var t=e.getUTCDay();return 0===t?7:t}function $e(e,t){return $(c.count(L(e)-1,e),t,2)}function Ge(e){var t=e.getUTCDay();return t>=4||0===t?h(e):h.ceil(e)}function Ye(e,t){return e=Ge(e),$(h.count(L(e),e)+(4===L(e).getUTCDay()),t,2)}function Ke(e){return e.getUTCDay()}function Xe(e,t){return $(f.count(L(e)-1,e),t,2)}function Ze(e,t){return $(e.getUTCFullYear()%100,t,2)}function Je(e,t){return e=Ge(e),$(e.getUTCFullYear()%100,t,2)}function Qe(e,t){return $(e.getUTCFullYear()%1e4,t,4)}function et(e,t){var n=e.getUTCDay();return e=n>=4||0===n?h(e):h.ceil(e),$(e.getUTCFullYear()%1e4,t,4)}function tt(){return"+0000"}function nt(){return"%"}function rt(e){return+e}function at(e){return Math.floor(+e/1e3)}function ot(e){return z=R(e),N=z.format,F=z.parse,B=z.utcFormat,V=z.utcParse,z}ot({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var it="%Y-%m-%dT%H:%M:%S.%LZ";function lt(e){return e.toISOString()}var st=Date.prototype.toISOString?lt:B(it),ut=st;function ct(e){var t=new Date(e);return isNaN(t)?null:t}var ft=+new Date("2000-01-01T00:00:00.000Z")?ct:V(it),pt=ft},7156:function(e,t,n){var r=n("861d"),a=n("d2bb");e.exports=function(e,t,n){var o,i;return a&&"function"==typeof(o=t.constructor)&&o!==n&&r(i=o.prototype)&&i!==n.prototype&&a(e,i),e}},"71a6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModalContent=t.ModalHeader=t.default=void 0;var r=s(n("ab5b")),a=i(n("d7bc")),o=n("8704");function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){var t=e.title,n=e.handleClose;return r.default.createElement("div",{className:"modal__header"},t?r.default.createElement("div",{className:"modal__header__title"},t):null,n?r.default.createElement("div",{className:"modal__header__close",onClick:n?function(){return n()}:null},r.default.createElement(o.CloseIcon,null)):null)};t.ModalHeader=x;var _=function(e){var t=e.children;return r.default.createElement("div",{className:"modal__content"},t)};t.ModalContent=_;var w=function(e){d(n,e);var t=v(n);function n(e){var r;return c(this,n),r=t.call(this,e),r.escFunction=r.escFunction.bind(y(r)),r}return p(n,[{key:"escFunction",value:function(e){var t=27;e.keyCode===t&&this.context.handleClose()}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.escFunction,!1)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.escFunction,!1)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,a=t.title,o="modal";return this.context.isAnimatingOut&&(o+=" modal--animate-out"),r.default.createElement("div",{className:o},r.default.createElement("div",{className:"modal__card"},r.default.createElement(x,{title:a,handleClose:function(){return e.context.handleClose()}}),r.default.createElement(_,null,n)),r.default.createElement("div",{className:"modal__backdrop",onClick:function(){return e.context.handleClose()}}))}}]),n}(r.Component);x.propTypes={title:a.default.node,handleClose:a.default.func.isRequired},_.propTypes={children:a.default.node.isRequired},w.propTypes={children:a.default.node.isRequired,title:a.default.node},w.contextTypes={handleClose:a.default.func,isAnimatingOut:a.default.bool};var k=w;t.default=k},"71cc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Saturation=void 0;var r=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}}(),a=n("ab5b"),o=d(a),i=n("fc55"),l=d(i),s=n("0f32"),u=d(s),c=n("5559"),f=p(c);function p(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 d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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}function m(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)}var y=t.Saturation=function(e){function t(e){h(this,t);var n=v(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleChange=function(e){"function"===typeof n.props.onChange&&n.throttle(n.props.onChange,f.calculateChange(e,n.props.hsl,n.container),e)},n.handleMouseDown=function(e){n.handleChange(e),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=(0,u.default)((function(e,t,n){e(t,n)}),50),n}return m(t,e),r(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,t=this.props.style||{},n=t.color,r=t.white,a=t.black,i=t.pointer,s=t.circle,u=(0,l.default)({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-100*this.props.hsv.v+100+"%",left:100*this.props.hsv.s+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:"0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:n,white:r,black:a,pointer:i,circle:s}},{custom:!!this.props.style});return o.default.createElement("div",{style:u.color,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},o.default.createElement("style",null,"\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "),o.default.createElement("div",{style:u.white,className:"saturation-white"},o.default.createElement("div",{style:u.black,className:"saturation-black"}),o.default.createElement("div",{style:u.pointer},this.props.pointer?o.default.createElement(this.props.pointer,this.props):o.default.createElement("div",{style:u.circle}))))}}]),t}(a.PureComponent||a.Component);t.default=y},"71ec":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n("9903")),a=n("ca44"),o=p(n("d7bc")),i=f(n("ab5b")),l=n("4578"),s=n("e419"),u=n("a36d");function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function p(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="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},d(e)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=(0,l.connectShapeToLayout)(r.default),O=function(e){g(n,e);var t=x(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){var e=this.context,t=e.layout.shapes,n=void 0===t?[]:t,r=e.localize,o=this.props,l=o.canAdd,c=o.children,f=o.canReorder,p=n.length&&n.map((function(e,t){return i.default.createElement(E,{key:t,shapeIndex:t,name:"".concat(r("Shape")," ").concat(t+1),canDelete:l},c)})),d={label:r("Shape"),handler:function(e){var t,n=e.layout,r=e.updateContainer;t=Array.isArray(n.shapes)?n.shapes.length:0;var a="shapes[".concat(t,"]"),o={line:{color:s.COLORS.charcoal},fillcolor:s.COLORS.middleGray,opacity:.3};r&&r(h({},a,o))}};return i.default.createElement(a.LayoutPanel,{addAction:l?d:null,canReorder:f},p||i.default.createElement(u.PanelMessage,{heading:r("Lines, Rectangles and Ellipses.")},i.default.createElement("p",null,r("Add shapes to a figure to highlight points or periods in time, thresholds, or areas of interest.")),i.default.createElement("p",null,r("Click on the + button above to add a shape."))))}}]),n}(i.Component);O.contextTypes={layout:o.default.object,localize:o.default.func},O.propTypes={children:o.default.node,canAdd:o.default.bool,canReorder:o.default.bool};var M=O;t.default=M},7264:function(e,t,n){"use strict";function r(e,t){e.setMode("drag"),t.preventDefault()}e.exports=r},"72af":function(e,t,n){var r=n("99cd"),a=r();e.exports=a},"72f0":function(e,t){function n(e){return function(){return e}}e.exports=n},7301:function(e,t,n){"use strict";e.exports=function(e){return!("undefined"===typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]}},"736d":function(e,t,n){"use strict";var r=n("ff2d"),a=n("7cc6"),o=n("d8db");function i(e,t,n,r,a){var o=r.getStartOffset(),i=r.getEndOffset(),s=t.getEntityAt(o),u=n.getEntityAt(i-1);if(!s&&!u)return r;var c=r;if(s&&s===u)c=l(e,t,c,a,s,!0,!0);else if(s&&u){var f=l(e,t,c,a,s,!1,!0),p=l(e,n,c,a,u,!1,!1);c=c.merge({anchorOffset:f.getAnchorOffset(),focusOffset:p.getFocusOffset(),isBackward:!1})}else if(s){var d=l(e,t,c,a,s,!1,!0);c=c.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var h=l(e,n,c,a,u,!1,!1);c=c.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return c}function l(e,t,n,i,l,s,u){var c=n.getStartOffset(),f=n.getEndOffset(),p=e.__get(l),d=p.getMutability(),h=u?c:f;if("MUTABLE"===d)return n;var v=a(t,l).filter((function(e){return h<=e.end&&h>=e.start}));1!=v.length&&o(!1);var m=v[0];if("IMMUTABLE"===d)return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1});s||(u?f=m.end:c=m.start);var y=r.getRemovalRange(c,f,t.getText().slice(m.start,m.end),m.start,i);return n.merge({anchorOffset:y.start,focusOffset:y.end,isBackward:!1})}e.exports=i},"73ac":function(e,t,n){var r=n("743f"),a=n("b047"),o=n("99d3"),i=o&&o.isTypedArray,l=i?a(i):r;e.exports=l},7404:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=n("ab5b"),a=l(r),o=n("fc55"),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.SliderPointer=function(){var e=(0,i.default)({default:{picker:{width:"14px",height:"14px",borderRadius:"6px",transform:"translate(-7px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}}});return a.default.createElement("div",{style:e.picker})};t.default=s},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"743f":function(e,t,n){var r=n("3729"),a=n("b218"),o=n("1310"),i="[object Arguments]",l="[object Array]",s="[object Boolean]",u="[object Date]",c="[object Error]",f="[object Function]",p="[object Map]",d="[object Number]",h="[object Object]",v="[object RegExp]",m="[object Set]",y="[object String]",g="[object WeakMap]",b="[object ArrayBuffer]",x="[object DataView]",_="[object Float32Array]",w="[object Float64Array]",k="[object Int8Array]",T="[object Int16Array]",E="[object Int32Array]",O="[object Uint8Array]",M="[object Uint8ClampedArray]",S="[object Uint16Array]",C="[object Uint32Array]",A={};function P(e){return o(e)&&a(e.length)&&!!A[r(e)]}A[_]=A[w]=A[k]=A[T]=A[E]=A[O]=A[M]=A[S]=A[C]=!0,A[i]=A[l]=A[b]=A[s]=A[x]=A[u]=A[c]=A[f]=A[p]=A[d]=A[h]=A[v]=A[m]=A[y]=A[g]=!1,e.exports=P},"746f":function(e,t,n){var r=n("428f"),a=n("5135"),o=n("e538"),i=n("9bf2").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});a(t,e)||i(t,e,{value:o.f(e)})}},"74c7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/^(moz|ms|o|webkit)-/,a=/^\d+$/,o=/([A-Z])/g,i={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function l(e){return e.replace(o,"-$1").toLowerCase().replace(r,"-$1-")}function s(e,t){var n=void 0;return"string"===typeof t?n=a.test(t):(n=!0,t=String(t)),n&&"0"!==t&&!0!==i[e]?t+"px":t}function u(e){return Object.keys(e).map((function(t){var n=s(t,e[t]),r=l(t);return r+": "+n})).join("; ")}t.default=u},7515:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedDropdown=void 0;var r=c(n("f51b")),a=c(n("5174")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=function(e){g(n,e);var t=x(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){var e;return this.props.multiValued&&(e=this.props.fullValue),i.default.createElement(a.default,this.props,i.default.createElement(r.default,{backgroundDark:this.props.backgroundDark,options:this.props.options,value:this.props.fullValue,onChange:this.props.updatePlot,clearable:this.props.clearable,placeholder:e,disabled:this.props.disabled,components:this.props.components}))}}]),n}(i.Component);t.UnconnectedDropdown=E,E.propTypes=d({backgroundDark:o.default.bool,components:o.default.object,clearable:o.default.bool,fullValue:o.default.any,options:o.default.array.isRequired,updatePlot:o.default.func,disabled:o.default.bool},a.default.propTypes),E.displayName="UnconnectedDropdown";var O=(0,l.connectToContainer)(E);t.default=O},7530:function(e,t,n){var r=n("1a8c"),a=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},7592:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedNumericOrDate=void 0;var r=d(n("5174")),a=n("134d"),o=d(n("d7bc")),i=p(n("ab5b")),l=n("4578"),s=n("8365"),u=n("b51c"),c=n("3cb6");function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="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},h(e)}function v(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(){return g=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},g.apply(this,arguments)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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 _(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function w(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&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function T(e){var t=M();return function(){var n,r=S(e);if(t){var a=S(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(){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}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var C=function(e){w(n,e);var t=T(n);function n(){return b(this,n),t.apply(this,arguments)}return _(n,[{key:"render",value:function(){var e="string"===typeof this.props.fullValue&&this.props.fullValue.split(" ")[0],t="string"===typeof this.props.fullValue&&e&&((0,s.isDateTime)(e)||(0,u.isJSDate)(e));return t?i.default.createElement(c.UnconnectedDateTimePicker,g({},this.props,{placeholder:"yyyy-mm-dd hh:mm:ss.xxx"})):i.default.createElement(a.UnconnectedNumeric,this.props)}}]),n}(i.Component);t.UnconnectedNumericOrDate=C,C.propTypes=m({defaultValue:o.default.any,fullValue:o.default.any,min:o.default.number,max:o.default.number,multiValued:o.default.bool,hideArrows:o.default.bool,showSlider:o.default.bool,step:o.default.number,fullContainer:o.default.object,updatePlot:o.default.func},r.default.propTypes),C.displayName="UnconnectedNumericOrDate";var A=(0,l.connectToContainer)(C);t.default=A},"75f4":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M4,2H20C21.1,2 22,2.9 22,4V16C22,17.1 21.1,18 20,18H16L12,22L8,18H4C2.9,18 2,17.1 2,16V4C2,2.9 2.9,2 4,2Z"}))};e.exports=l},7621:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("g",{fill:"none"},o.default.createElement("path",{stroke:"#25fdfc",d:"M7 6v31M23 6v31M15 6v34M31 6v34m8-34v31",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{d:"M0 0h46v46H0z"}),o.default.createElement("path",{stroke:"#1d9bfb",d:"M5.13 24.645L11 29l4-6.871 3.458 2.516L23 17.29l3.917 10.032L31 15.451 35.082 24l4.168-4.355 2.054-5.71",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{stroke:"#1d9bfb",d:"M4 39h6m2 3h6m2-3h6m2 3h6m2-3h6",strokeLinejoin:"round",strokeWidth:"2"})))};t.default=u},"762a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 60 60"},e),o.default.createElement("path",{class:"st0",fill:"#119DFF",d:"M10.1 11.2h19.4v39.1H10.1z"}),o.default.createElement("path",{class:"st1",fill:"#09FFFF",d:"M30.6 11.2h19.6v21.5H30.6z"}),o.default.createElement("path",{class:"st2",fill:"#43C0FF",d:"M30.6 33.7h19.6v16.7H30.6z"}))};t.default=u},7635:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n("d7bc")),a=i(n("ab5b"));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return 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},s(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function p(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&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=y();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){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}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var b=function(e){p(n,e);var t=h(n);function n(){return u(this,n),t.apply(this,arguments)}return f(n,[{key:"render",value:function(){return this.props.children?a.default.createElement("div",{className:"sidebar__item--single"},this.props.children):null}}]),n}(a.Component);t.default=b,b.plotly_editor_traits={sidebar_element:!0},b.propTypes={children:r.default.any}},7678:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M17.9,17.39C17.64,16.59 16.89,16 16,16H15V13C15,12.45 14.55,12 14,12H8V10H10C10.55,10 11,9.55 11,9V7H13C14.1,7 15,6.1 15,5V4.59C17.93,5.77 20,8.64 20,12C20,14.08 19.2,15.97 17.9,17.39M11,19.93C7.05,19.44 4,16.08 4,12C4,11.38 4.08,10.78 4.21,10.21L9,15V16C9,17.1 9.9,18 11,18M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z"}))};e.exports=l},"76dd":function(e,t,n){var r=n("ce86");function a(e){return null==e?"":r(e)}e.exports=a},"76fe":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.attributeIsData=S,t.default=t.UnconnectedDataSelector=void 0;var r=d(n("f51b")),a=d(n("d7bc")),o=p(n("ab5b")),i=d(n("5174")),l=d(n("10b4")),s=n("4578"),u=n("e419"),c=n("662f");function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==y(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(e){return e&&e.__esModule?e:{default:e}}function h(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){return y="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},y(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 x(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}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&&w(e,t)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function k(e){var t=O();return function(){var n,r=M(e);if(t){var a=M(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==y(t)&&"function"!==typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(){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}}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"data_array"===e.valType||e.arrayOk}var C=function(e){_(n,e);var t=k(n);function n(e,r){var a;return g(this,n),a=t.call(this,e,r),a.updatePlot=a.updatePlot.bind(E(a)),a.setLocals(e,r),a}return x(n,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){this.dataSources=t.dataSources||{},this.dataSourceOptions=t.dataSourceOptions||[],this.srcAttr=e.attr+"src",this.srcProperty=(0,l.default)(e.container,this.srcAttr).get(),this.fullValue=this.context.srcConverters?this.context.srcConverters.toSrc(this.srcProperty,e.container.type):this.srcProperty,this.is2D=!1,e.container&&(this.is2D=("x"===e.attr||"y"===e.attr)&&["scatter","scattergl","bar","funnel","heatmap","heatmapgl","violin","waterfall","box","contour","contourgl"].includes(e.container.type)||"z"===e.attr&&["contour","contourgl","heatmap","heatmapgl","surface","carpet","contourcarpet"].includes(e.container.type)||"table"===e.container.type&&"columnorder"!==e.attr||Array.isArray(this.fullValue)),this.hasData=!!e.container&&e.attr in e.container}},{key:"updatePlot",value:function(e){var t=this;if(this.props.updateContainer){var n,r={},a=!Array.isArray(e)||1!==e.length||"x"!==this.props.attr&&"y"!==this.props.attr?e:e[0];n=Array.isArray(a)?a.filter((function(e){return Array.isArray(t.dataSources[e])})).map((function(e){return t.dataSources[e]})):this.dataSources[a]||null,r[this.props.attr]=(0,s.maybeTransposeData)(n,this.srcAttr,this.props.container.type),r[this.srcAttr]=(0,s.maybeAdjustSrc)(a,this.srcAttr,this.props.container.type,{fromSrc:this.context.srcConverters?this.context.srcConverters.fromSrc:null}),this.props.container.type&&(r["meta.columnNames."+this.props.attr]=(0,c.getColumnNames)(Array.isArray(a)?a:[a],this.dataSourceOptions)),this.props.updateContainer(r)}}},{key:"render",value:function(){var e,t=this.props.label;if("object"===y(t)){var n=this.props.container.type;e=t[n]?t[n]:t["*"]}else e=t;return o.default.createElement(i.default,v(v({},this.props),{},{label:e}),o.default.createElement(r.default,{options:this.dataSourceOptions,value:this.fullValue,onChange:this.updatePlot,multi:this.is2D,searchable:!0,clearable:!0,placeholder:this.hasData?"Data inlined in figure":"Choose data...",disabled:0===this.dataSourceOptions.length,components:this.props.dataSourceComponents}))}}]),n}(o.Component);function A(e,t,n){S(n.attrMeta)&&t.container&&-1===u.TRANSFORMS_LIST.indexOf(t.container.type)&&(n.isVisible=!0)}t.UnconnectedDataSelector=C,C.propTypes=v({fullValue:a.default.any,updatePlot:a.default.func,container:a.default.object},i.default.propTypes),C.contextTypes={dataSources:a.default.object,dataSourceComponents:a.default.object,dataSourceOptions:a.default.array,srcConverters:a.default.shape({toSrc:a.default.func.isRequired,fromSrc:a.default.func.isRequired}),container:a.default.object},C.displayName="UnconnectedDataSelector";var P=(0,s.connectToContainer)(C,{modifyPlotProps:A});t.default=P},"772c":function(e,t,n){"use strict";var r={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=r},7730:function(e,t,n){"use strict";var r=n("19b2"),a=n("7e6f").BADNUM,o=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;e.exports=function(e){return"string"===typeof e&&(e=e.replace(o,"")),r(e)?Number(e):a}},7795:function(e,t,n){"use strict";function r(e,t){var n=e%t;return n<0?n+t:n}function a(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}e.exports={mod:r,modHalf:a}},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},78399:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("7515"),a=d(n("d7bc")),o=p(n("ab5b")),i=n("4578"),l=n("e419"),s=n("562c"),u=d(n("5174")),c=n("8704");function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="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},h(e)}function v(){return v=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},v.apply(this,arguments)}function m(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 y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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 _(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function w(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&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function T(e){var t=M();return function(){var n,r=S(e);if(t){var a=S(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(){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}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var C=function(e){w(n,e);var t=T(n);function n(e,r){var a;return b(this,n),a=t.call(this,e,r),a.updatePlot=a.updatePlot.bind(O(a)),a.setGl=a.setGl.bind(O(a)),a.glEnabled=a.glEnabled.bind(O(a)),a.setTraceDefaults=a.setTraceDefaults.bind(O(a)),a.toggleGlControls=a.toggleGlControls.bind(O(a)),a.setTraceDefaults(e.container,e.fullContainer,e.updateContainer),a.setLocals(e,r),a.state={showGlControls:!1},a}return _(n,[{key:"glEnabled",value:function(){return this.props.container.type&&this.props.container.type.endsWith("gl")?"gl":""}},{key:"toggleGlControls",value:function(){this.setState({showGlControls:!this.state.showGlControls})}},{key:"setLocals",value:function(e,t){var n=t.localize;e.traceOptions?this.traceOptions=e.traceOptions:t.traceTypesConfig?this.traceOptions=t.traceTypesConfig.traces(n):t.plotSchema?this.traceOptions=(0,i.computeTraceOptionsFromSchema)(t.plotSchema,n,this.context):this.traceOptions=[{label:n("Scatter"),value:"scatter"}],e.container&&(this.fullValue=(0,i.plotlyTraceToCustomTrace)(e.container))}},{key:"setTraceDefaults",value:function(e,t,n,r){e&&!e.mode&&"scatter"===t.type&&n({type:"scatter"+(r||this.context.glByDefault?r:this.glEnabled()),mode:t.mode||"markers"})}},{key:"componentWillReceiveProps",value:function(e,t){var n=e.container,r=e.fullContainer,a=e.updateContainer;this.setTraceDefaults(n,r,a),this.setLocals(e,t)}},{key:"updatePlot",value:function(e){var t=this.props.updateContainer,n=this.context.glByDefault;t&&t((0,i.traceTypeToPlotlyInitFigure)(e,this.glEnabled()||n))}},{key:"setGl",value:function(e){var t=this.props,n=t.container,r=t.fullContainer,a=t.updateContainer,o="gl";this.setTraceDefaults(n,r,a,e);var l=this.fullValue.endsWith(o)&&""===e?this.fullValue.slice(0,-o.length):this.fullValue;a((0,i.traceTypeToPlotlyInitFigure)(l,e))}},{key:"render",value:function(){var e=this,t=Object.assign({},this.props,{fullValue:this.fullValue,updatePlot:this.updatePlot,options:this.traceOptions,clearable:!1}),n=this.context,a=n.localize,i=n.advancedTraceTypeSelector,f=[{label:a("SVG"),value:""},{label:a("WebGL"),value:"gl"}];return i?o.default.createElement("div",null,o.default.createElement(u.default,t,o.default.createElement("div",{style:{display:"flex",width:"100%",alignItems:"center"}},o.default.createElement(s.TraceTypeSelectorButton,v({},t,{traceTypesConfig:this.context.traceTypesConfig,handleClick:function(){return e.context.openModal(s.TraceTypeSelector,y(y({},t),{},{traceTypesConfig:e.context.traceTypesConfig,glByDefault:e.context.glByDefault}))}})),l.TRACES_WITH_GL.includes(this.props.container.type)?o.default.createElement(c.CogIcon,{className:"menupanel__icon",onClick:this.toggleGlControls}):"")),l.TRACES_WITH_GL.includes(this.props.container.type)&&this.state.showGlControls?o.default.createElement(u.default,{label:a("Rendering")},o.default.createElement(s.RadioBlocks,{options:f,activeOption:this.glEnabled(),onOptionChange:this.setGl})):""):o.default.createElement(r.UnconnectedDropdown,t)}}]),n}(o.Component);C.contextTypes={openModal:a.default.func,advancedTraceTypeSelector:a.default.bool,traceTypesConfig:a.default.object,plotSchema:a.default.object,config:a.default.object,localize:a.default.func,glByDefault:a.default.bool},C.propTypes={container:a.default.object.isRequired,fullContainer:a.default.object.isRequired,fullValue:a.default.any,updateContainer:a.default.func};var A=(0,i.connectToContainer)(C);t.default=A},"784e":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}))};e.exports=l},7870:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SketchPresetColors=void 0;var r=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},a=n("ab5b"),o=f(a),i=n("d7bc"),l=f(i),s=n("fc55"),u=f(s),c=n("4ccf");function f(e){return e&&e.__esModule?e:{default:e}}var p=t.SketchPresetColors=function(e){var t=e.colors,n=e.onClick,a=void 0===n?function(){}:n,i=e.onSwatchHover,l=(0,u.default)({default:{colors:{margin:"0 -10px",padding:"10px 0 0 10px",borderTop:"1px solid #eee",display:"flex",flexWrap:"wrap",position:"relative"},swatchWrap:{width:"16px",height:"16px",margin:"0 10px 10px 0"},swatch:{borderRadius:"3px",boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15)"}},"no-presets":{colors:{display:"none"}}},{"no-presets":!t||!t.length}),s=function(e,t){a({hex:e,source:"hex"},t)};return o.default.createElement("div",{style:l.colors,className:"flexbox-fix"},t.map((function(e){var t="string"===typeof e?{color:e}:e,n=""+t.color+(t.title||"");return o.default.createElement("div",{key:n,style:l.swatchWrap},o.default.createElement(c.Swatch,r({},t,{style:l.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+t.color}})))})))};p.propTypes={colors:l.default.arrayOf(l.default.oneOfType([l.default.string,l.default.shape({color:l.default.string,title:l.default.string})])).isRequired},t.default=p},"78ec":function(e,t,n){"use strict";(function(t){n("6017"),e.exports=t.setImmediate}).call(this,n("c8ba"))},7916:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedAxisRangeValue=void 0;var r=d(n("5174")),a=n("134d"),o=n("3cb6"),i=d(n("d7bc")),l=p(n("ab5b")),s=n("4578"),u=d(n("88e7")),c=n("e419");function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="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},h(e)}function v(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 x(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}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&&w(e,t)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function k(e){var t=O();return function(){var n,r=M(e);if(t){var a=M(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(){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}}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var S=function(e){_(n,e);var t=k(n);function n(){return g(this,n),t.apply(this,arguments)}return x(n,[{key:"render",value:function(){return this.props.fullContainer&&"date"===this.props.fullContainer.type?l.default.createElement(o.UnconnectedDateTimePicker,this.props):this.props.multiValued&&this.props.fullContainer.type===c.MULTI_VALUED?l.default.createElement(u.default,this.props):l.default.createElement(a.UnconnectedNumeric,this.props)}}]),n}(l.Component);t.UnconnectedAxisRangeValue=S,S.propTypes=m({defaultValue:i.default.any,fullValue:i.default.any,min:i.default.number,max:i.default.number,multiValued:i.default.bool,hideArrows:i.default.bool,showSlider:i.default.bool,step:i.default.number,fullContainer:i.default.object,updatePlot:i.default.func},r.default.propTypes);var C=(0,s.connectToContainer)(S);t.default=C},7948:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length,a=Array(r);while(++n<r)a[n]=t(e[n],n,e);return a}e.exports=n},"796d":function(e,t,n){"use strict";var r=n("4766"),a=n("47b2");t.id2name=function(e){if("string"===typeof e&&e.match(a.AX_ID_PATTERN)){var t=e.substr(1);return"1"===t&&(t=""),e.charAt(0)+"axis"+t}},t.name2id=function(e){if(e.match(a.AX_NAME_PATTERN)){var t=e.substr(5);return"1"===t&&(t=""),e.charAt(0)+t}},t.cleanId=function(e,t){if("string"===typeof e&&e.match(a.AX_ID_PATTERN)&&(!t||e.charAt(0)===t)){var n=e.substr(1).replace(/^0+/,"");return"1"===n&&(n=""),e.charAt(0)+n}},t.list=function(e,n,r){var a=e._fullLayout;if(!a)return[];var o,i=t.listIds(e,n),l=new Array(i.length);for(o=0;o<i.length;o++){var s=i[o];l[o]=a[s.charAt(0)+"axis"+s.substr(1)]}if(!r){var u=a._subplots.gl3d||[];for(o=0;o<u.length;o++){var c=a[u[o]];n?l.push(c[n+"axis"]):l.push(c.xaxis,c.yaxis,c.zaxis)}}return l},t.listIds=function(e,t){var n=e._fullLayout;if(!n)return[];var r=n._subplots;return t?r[t+"axis"]:r.xaxis.concat(r.yaxis)},t.getFromId=function(e,n,r){var a=e._fullLayout;return"x"===r?n=n.replace(/y[0-9]*/,""):"y"===r&&(n=n.replace(/x[0-9]*/,"")),a[t.id2name(n)]},t.getFromTrace=function(e,n,a){var o=e._fullLayout,i=null;if(r.traceIs(n,"gl3d")){var l=n.scene;"scene"===l.substr(0,5)&&(i=o[l][a+"axis"])}else i=t.getFromId(e,n[a+"axis"]||a);return i},t.idSort=function(e,t){var n=e.charAt(0),r=t.charAt(0);return n!==r?n>r?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},t.getAxisGroup=function(e,t){for(var n=e._axisMatchGroups,r=0;r<n.length;r++){var a=n[r];if(a[t])return"g"+r}return t}},"797e":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"}))};e.exports=l},"79bc":function(e,t,n){var r=n("0b07"),a=n("2b3e"),o=r(a,"Map");e.exports=o},"79e5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedAxisInterval=void 0;var r=d(n("ab5b")),a=f(n("5174")),o=f(n("f51b")),i=f(n("d8d0")),l=f(n("d7bc")),s=n("4578"),u=n("8365"),c=n("b51c");function f(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function h(e){return h="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},h(e)}function v(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 x(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}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&&w(e,t)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function k(e){var t=O();return function(){var n,r=M(e);if(t){var a=M(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(){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}}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var S=1e3,C=60*S,A=60*C*24,P=30,L=12;function D(e){return Math.round(100*e)/100}function j(e){var t={seconds:S,minutes:C,days:A},n="milliseconds";return["seconds","minutes","days"].forEach((function(r){e%t[r]===0&&("milliseconds"===n||"milliseconds"!==n&&e/t[n]>e/t[r])&&(n=r)})),n}var I=function(e){_(n,e);var t=k(n);function n(e){var r;g(this,n),r=t.call(this,e);var a=e.fullValue&&"string"===typeof e.fullValue&&"M"===e.fullValue[0]?parseInt(e.fullValue.substring(1),10)%L===0?"years":"months":j(e.fullValue);return r.state={units:a},r}return x(n,[{key:"update",value:function(e){var t=e<0?0:e,n=t%1===0;"years"===this.state.units&&(t=n?"M"+t*L:t*L*P*A),"months"===this.state.units&&(t=n?"M"+t:t*P*A),"days"===this.state.units&&(t*=A),"minutes"===this.state.units&&(t*=C),"seconds"===this.state.units&&(t*=S),this.props.updatePlot(t)}},{key:"onUnitChange",value:function(e){var t="string"===typeof this.props.fullValue&&"M"===this.props.fullValue[0],n=t?parseInt(this.props.fullValue.substring(1),10)*P*A:this.props.fullValue;if(this.setState({units:e}),["years","months"].includes(e)){var r=n/A/P;r%1===0?this.props.updatePlot("M"+r):this.props.updatePlot(n)}else this.props.updatePlot(n)}},{key:"getDisplayValue",value:function(e){var t="string"===typeof e&&"M"===e[0]?parseInt(e.substring(1),10):e;return"years"===this.state.units?D("string"===typeof e?t/L:t/A/P/L):"months"===this.state.units?D("string"===typeof e?t:t/A/P):"days"===this.state.units?D(t/A):"minutes"===this.state.units?D(t/C):"seconds"===this.state.units?D(t/S):"milliseconds"===this.state.units?t:null}},{key:"render",value:function(){var e=this,t=this.context.localize,n=this.props.attr.split(".")[0],l=this.props.fullContainer[n].start,s="string"===typeof l&&((0,u.isDateTime)(l)||(0,c.isJSDate)(l)),f=this.props.fullContainer.tick0&&(this.props.fullContainer.tick0||this.props.fullContainer.colorbar.tick0),p=f&&((0,u.isDateTime)(f)||(0,c.isJSDate)(f));return s||p?r.default.createElement(a.default,this.props,r.default.createElement(o.default,{options:[{value:"years",label:t("Years")},{value:"months",label:t("Months")},{value:"days",label:t("Days")},{value:"minutes",label:t("Minutes")},{value:"seconds",label:t("Seconds")},{value:"milliseconds",label:t("Milliseconds")}],clearable:!1,onChange:function(t){return e.onUnitChange(t)},value:this.state.units}),r.default.createElement("div",{style:{width:"100%",display:"block"}}," "),r.default.createElement(i.default,{value:this.getDisplayValue(this.props.fullValue),onUpdate:function(t){return e.update(t)},editableClassName:"AxisInterval-milliseconds"})):r.default.createElement(a.default,this.props,r.default.createElement(i.default,{value:this.props.fullValue,onUpdate:function(t){return e.props.updatePlot(t)}}))}}]),n}(r.Component);t.UnconnectedAxisInterval=I,I.contextTypes={localize:l.default.func},I.propTypes=m({fullValue:l.default.oneOfType([l.default.number,l.default.string]),updatePlot:l.default.func,attr:l.default.string,fullContainer:l.default.object},a.default.propTypes);var R=(0,s.connectToContainer)(I);t.default=R},"7a48":function(e,t,n){var r=n("6044"),a=Object.prototype,o=a.hasOwnProperty;function i(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}e.exports=i},"7a91":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModifiersUtils=t.LocaleUtils=t.DateUtils=t.DayPicker=void 0;var r=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},a=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}}(),o=n("ab5b"),i=C(o),l=n("d7bc"),s=C(l),u=n("7ca3"),c=C(u),f=n("25d0"),p=C(f),d=n("88dd"),h=C(d),v=n("615b"),m=C(v),y=n("db0b"),g=S(y),b=n("4ea5"),x=S(b),_=n("a6a7"),w=S(_),k=n("70d2"),T=S(k),E=n("d973"),O=C(E),M=n("242f");function S(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 C(e){return e&&e.__esModule?e:{default:e}}function A(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}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(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}function D(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)}var j=t.DayPicker=function(e){function t(e){P(this,t);var n=L(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.dayPicker=null,n.showNextMonth=function(e){if(n.allowNextMonth()){var t=n.props.pagedNavigation?n.props.numberOfMonths:1,r=x.addMonths(n.state.currentMonth,t);n.showMonth(r,e)}},n.showPreviousMonth=function(e){if(n.allowPreviousMonth()){var t=n.props.pagedNavigation?n.props.numberOfMonths:1,r=x.addMonths(n.state.currentMonth,-t);n.showMonth(r,e)}},n.handleKeyDown=function(e){switch(e.persist(),e.keyCode){case M.LEFT:"rtl"===n.props.dir?n.showNextMonth():n.showPreviousMonth(),g.cancelEvent(e);break;case M.RIGHT:"rtl"===n.props.dir?n.showPreviousMonth():n.showNextMonth(),g.cancelEvent(e);break;case M.UP:n.showPreviousYear(),g.cancelEvent(e);break;case M.DOWN:n.showNextYear(),g.cancelEvent(e);break;default:break}n.props.onKeyDown&&n.props.onKeyDown(e)},n.handleDayKeyDown=function(e,t,r){switch(r.persist(),r.keyCode){case M.LEFT:g.cancelEvent(r),"rtl"===n.props.dir?n.focusNextDay(r.target):n.focusPreviousDay(r.target);break;case M.RIGHT:g.cancelEvent(r),"rtl"===n.props.dir?n.focusPreviousDay(r.target):n.focusNextDay(r.target);break;case M.UP:g.cancelEvent(r),n.focusPreviousWeek(r.target);break;case M.DOWN:g.cancelEvent(r),n.focusNextWeek(r.target);break;case M.ENTER:case M.SPACE:g.cancelEvent(r),n.props.onDayClick&&n.handleDayClick(e,t,r);break;default:break}n.props.onDayKeyDown&&n.props.onDayKeyDown(e,t,r)},n.handleDayClick=function(e,t,r){r.persist(),t[n.props.classNames.outside]&&n.props.enableOutsideDaysClick&&n.handleOutsideDayClick(e),n.props.onDayClick&&n.props.onDayClick(e,t,r)},n.handleTodayButtonClick=function(e){var t=new Date,r=new Date(t.getFullYear(),t.getMonth());n.showMonth(r),e.target.blur(),n.props.onTodayButtonClick&&(e.persist(),n.props.onTodayButtonClick(new Date(t.getFullYear(),t.getMonth(),t.getDate()),T.getModifiersForDay(t,n.props.modifiers),e))};var r=n.getCurrentMonthFromProps(e);return n.state={currentMonth:r},n}return D(t,e),a(t,[{key:"componentDidUpdate",value:function(e){if(e.month!==this.props.month&&!x.isSameMonth(e.month,this.props.month)){var t=this.getCurrentMonthFromProps(this.props);this.setState({currentMonth:t})}}},{key:"getCurrentMonthFromProps",value:function(e){var t=g.startOfMonth(e.month||e.initialMonth||new Date),n=t;if(e.pagedNavigation&&e.numberOfMonths>1&&e.fromMonth){var r=g.startOfMonth(e.fromMonth),a=g.getMonthsDiff(r,n);n=x.addMonths(r,Math.floor(a/e.numberOfMonths)*e.numberOfMonths)}else e.toMonth&&e.numberOfMonths>1&&g.getMonthsDiff(n,e.toMonth)<=0&&(n=x.addMonths(g.startOfMonth(e.toMonth),1-this.props.numberOfMonths));return n}},{key:"getNextNavigableMonth",value:function(){return x.addMonths(this.state.currentMonth,this.props.numberOfMonths)}},{key:"getPreviousNavigableMonth",value:function(){return x.addMonths(this.state.currentMonth,-1)}},{key:"allowPreviousMonth",value:function(){var e=x.addMonths(this.state.currentMonth,-1);return this.allowMonth(e)}},{key:"allowNextMonth",value:function(){var e=x.addMonths(this.state.currentMonth,this.props.numberOfMonths);return this.allowMonth(e)}},{key:"allowMonth",value:function(e){var t=this.props,n=t.fromMonth,r=t.toMonth,a=t.canChangeMonth;return!(!a||n&&g.getMonthsDiff(n,e)<0||r&&g.getMonthsDiff(r,e)>0)}},{key:"allowYearChange",value:function(){return this.props.canChangeMonth}},{key:"showMonth",value:function(e,t){var n=this;this.allowMonth(e)&&this.setState({currentMonth:g.startOfMonth(e)},(function(){t&&t(),n.props.onMonthChange&&n.props.onMonthChange(n.state.currentMonth)}))}},{key:"showNextYear",value:function(){if(this.allowYearChange()){var e=x.addMonths(this.state.currentMonth,12);this.showMonth(e)}}},{key:"showPreviousYear",value:function(){if(this.allowYearChange()){var e=x.addMonths(this.state.currentMonth,-12);this.showMonth(e)}}},{key:"focus",value:function(){this.wrapper.focus()}},{key:"focusFirstDayOfMonth",value:function(){g.getDayNodes(this.dayPicker,this.props.classNames)[0].focus()}},{key:"focusLastDayOfMonth",value:function(){var e=g.getDayNodes(this.dayPicker,this.props.classNames);e[e.length-1].focus()}},{key:"focusPreviousDay",value:function(e){var t=this,n=g.getDayNodes(this.dayPicker,this.props.classNames),r=g.nodeListToArray(n).indexOf(e);-1!==r&&(0===r?this.showPreviousMonth((function(){return t.focusLastDayOfMonth()})):n[r-1].focus())}},{key:"focusNextDay",value:function(e){var t=this,n=g.getDayNodes(this.dayPicker,this.props.classNames),r=g.nodeListToArray(n).indexOf(e);-1!==r&&(r===n.length-1?this.showNextMonth((function(){return t.focusFirstDayOfMonth()})):n[r+1].focus())}},{key:"focusNextWeek",value:function(e){var t=this,n=g.getDayNodes(this.dayPicker,this.props.classNames),r=g.nodeListToArray(n).indexOf(e),a=r>n.length-8;a?this.showNextMonth((function(){var e=n.length-r,a=7-e;g.getDayNodes(t.dayPicker,t.props.classNames)[a].focus()})):n[r+7].focus()}},{key:"focusPreviousWeek",value:function(e){var t=this,n=g.getDayNodes(this.dayPicker,this.props.classNames),r=g.nodeListToArray(n).indexOf(e),a=r<=6;a?this.showPreviousMonth((function(){var e=g.getDayNodes(t.dayPicker,t.props.classNames),n=e.length-7,a=n+r;e[a].focus()})):n[r-7].focus()}},{key:"handleOutsideDayClick",value:function(e){var t=this.state.currentMonth,n=this.props.numberOfMonths,r=g.getMonthsDiff(t,e);r>0&&r>=n?this.showNextMonth():r<0&&this.showPreviousMonth()}},{key:"renderNavbar",value:function(){var e=this.props,t=e.labels,n=e.locale,r=e.localeUtils,a=e.canChangeMonth,o=e.navbarElement,l=A(e,["labels","locale","localeUtils","canChangeMonth","navbarElement"]);if(!a)return null;var s={month:this.state.currentMonth,classNames:this.props.classNames,className:this.props.classNames.navBar,nextMonth:this.getNextNavigableMonth(),previousMonth:this.getPreviousNavigableMonth(),showPreviousButton:this.allowPreviousMonth(),showNextButton:this.allowNextMonth(),onNextClick:this.showNextMonth,onPreviousClick:this.showPreviousMonth,dir:l.dir,labels:t,locale:n,localeUtils:r};return i.default.isValidElement(o)?i.default.cloneElement(o,s):i.default.createElement(o,s)}},{key:"renderMonths",value:function(){for(var e=[],t=g.getFirstDayOfWeekFromProps(this.props),n=0;n<this.props.numberOfMonths;n+=1){var a=x.addMonths(this.state.currentMonth,n);e.push(i.default.createElement(h.default,r({key:n},this.props,{month:a,firstDayOfWeek:t,onDayKeyDown:this.handleDayKeyDown,onDayClick:this.handleDayClick})))}return this.props.reverseMonths&&e.reverse(),e}},{key:"renderFooter",value:function(){return this.props.todayButton?i.default.createElement("div",{className:this.props.classNames.footer},this.renderTodayButton()):null}},{key:"renderTodayButton",value:function(){return i.default.createElement("button",{type:"button",tabIndex:0,className:this.props.classNames.todayButton,"aria-label":this.props.todayButton,onClick:this.handleTodayButtonClick},this.props.todayButton)}},{key:"render",value:function(){var e=this,t=this.props.classNames.container;return this.props.onDayClick||(t=t+" "+this.props.classNames.interactionDisabled),this.props.className&&(t=t+" "+this.props.className),i.default.createElement("div",r({},this.props.containerProps,{className:t,ref:function(t){return e.dayPicker=t},lang:this.props.locale}),i.default.createElement("div",{className:this.props.classNames.wrapper,ref:function(t){return e.wrapper=t},tabIndex:this.props.canChangeMonth&&"undefined"!==typeof this.props.tabIndex?this.props.tabIndex:-1,onKeyDown:this.handleKeyDown,onFocus:this.props.onFocus,onBlur:this.props.onBlur},this.renderNavbar(),i.default.createElement("div",{className:this.props.classNames.months},this.renderMonths()),this.renderFooter()))}}]),t}(o.Component);j.propTypes={initialMonth:s.default.instanceOf(Date),month:s.default.instanceOf(Date),numberOfMonths:s.default.number,fromMonth:s.default.instanceOf(Date),toMonth:s.default.instanceOf(Date),canChangeMonth:s.default.bool,reverseMonths:s.default.bool,pagedNavigation:s.default.bool,todayButton:s.default.string,showWeekNumbers:s.default.bool,showWeekDays:s.default.bool,selectedDays:s.default.oneOfType([s.default.object,s.default.func,s.default.array]),disabledDays:s.default.oneOfType([s.default.object,s.default.func,s.default.array]),modifiers:s.default.object,modifiersStyles:s.default.object,dir:s.default.string,firstDayOfWeek:s.default.oneOf([0,1,2,3,4,5,6]),labels:s.default.shape({nextMonth:s.default.string.isRequired,previousMonth:s.default.string.isRequired}),locale:s.default.string,localeUtils:s.default.shape({formatMonthTitle:s.default.func,formatWeekdayShort:s.default.func,formatWeekdayLong:s.default.func,getFirstDayOfWeek:s.default.func}),months:s.default.arrayOf(s.default.string),weekdaysLong:s.default.arrayOf(s.default.string),weekdaysShort:s.default.arrayOf(s.default.string),showOutsideDays:s.default.bool,enableOutsideDaysClick:s.default.bool,fixedWeeks:s.default.bool,classNames:s.default.shape({body:s.default.string,container:s.default.string,day:s.default.string.isRequired,disabled:s.default.string.isRequired,footer:s.default.string,interactionDisabled:s.default.string,months:s.default.string,month:s.default.string,navBar:s.default.string,outside:s.default.string.isRequired,selected:s.default.string.isRequired,today:s.default.string.isRequired,todayButton:s.default.string,week:s.default.string,wrapper:s.default.string}),className:s.default.string,containerProps:s.default.object,tabIndex:s.default.number,renderDay:s.default.func,renderWeek:s.default.func,weekdayElement:s.default.oneOfType([s.default.element,s.default.func,s.default.instanceOf(o.Component)]),navbarElement:s.default.oneOfType([s.default.element,s.default.func,s.default.instanceOf(o.Component)]),captionElement:s.default.oneOfType([s.default.element,s.default.func,s.default.instanceOf(o.Component)]),onBlur:s.default.func,onFocus:s.default.func,onKeyDown:s.default.func,onDayClick:s.default.func,onDayKeyDown:s.default.func,onDayMouseEnter:s.default.func,onDayMouseLeave:s.default.func,onDayMouseDown:s.default.func,onDayMouseUp:s.default.func,onDayTouchStart:s.default.func,onDayTouchEnd:s.default.func,onDayFocus:s.default.func,onMonthChange:s.default.func,onCaptionClick:s.default.func,onWeekClick:s.default.func,onTodayButtonClick:s.default.func},j.defaultProps={classNames:O.default,tabIndex:0,numberOfMonths:1,labels:{previousMonth:"Previous Month",nextMonth:"Next Month"},locale:"en",localeUtils:w,showOutsideDays:!1,enableOutsideDaysClick:!0,fixedWeeks:!1,canChangeMonth:!0,reverseMonths:!1,pagedNavigation:!1,showWeekNumbers:!1,showWeekDays:!0,renderDay:function(e){return e.getDate()},renderWeek:function(e){return e},weekdayElement:i.default.createElement(m.default,null),navbarElement:i.default.createElement(p.default,{classNames:O.default}),captionElement:i.default.createElement(c.default,{classNames:O.default})},j.VERSION="7.4.8",j.DateUtils=x,j.LocaleUtils=w,j.ModifiersUtils=T,t.DateUtils=x,t.LocaleUtils=w,t.ModifiersUtils=T,t.default=j},"7af6":function(e,t,n){"use strict";var r="[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:----・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]";e.exports={getPunctuation:function(){return r}}},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7b49":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=o(n("ab5b")),a=o(n("d7bc"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){return i="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},i(e)}function l(){return l=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},l.apply(this,arguments)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(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&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){var t=m();return function(){var n,r=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==i(t)&&"function"!==typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){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}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var g=function(e){f(n,e);var t=d(n);function n(e){var r;return s(this,n),r=t.call(this,e),r.state={component:null,componentProps:{},open:!1,isAnimatingOut:!1},r}return c(n,[{key:"componentDidUpdate",value:function(){var e=document.body,t=this.state.open,n=e.classList.contains("no-scroll");t&&!n&&e.classList.add("no-scroll"),!t&&n&&e.classList.remove("no-scroll")}},{key:"openModal",value:function(e,t){var n=this.context.localize;if(!e)throw Error(n("You need to provide a component for the modal to open!"));var r=this.state.open;r||this.setState({component:e,componentProps:t,open:!0})}},{key:"closeModal",value:function(){var e=this.state.open;e&&this.setState({open:!1,component:null})}},{key:"handleClose",value:function(){var e=this;this.setState({isAnimatingOut:!0});var t=600;setTimeout((function(){e.setState({isAnimatingOut:!1}),e.closeModal()}),t)}},{key:"getChildContext",value:function(){var e=this;return{openModal:function(t,n){return e.openModal(t,n)},closeModal:function(){return e.closeModal()},handleClose:function(){return e.handleClose()},isAnimatingOut:this.state.isAnimatingOut}}},{key:"render",value:function(){var e=this.state,t=e.component,n=e.componentProps,a=e.isAnimatingOut;return r.default.createElement(r.default.Fragment,null,this.props.children,this.state.open?r.default.createElement(t,l({isAnimatingOut:a},n)):null)}}]),n}(r.default.Component);g.propTypes={children:a.default.node},g.contextTypes={localize:a.default.func},g.childContextTypes={openModal:a.default.func,closeModal:a.default.func,handleClose:a.default.func,isAnimatingOut:a.default.bool};var b=g;t.default=b},"7b6c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 1360 1360"},e),o.default.createElement("path",{fill:"currentColor",d:"M855.254 790.532l-37.135-16.591c-.04-.019-.081-.03-.121-.046-.055-.021-.107-.043-.162-.061-.057-.018-.113-.031-.17-.045a3.018 3.018 0 0 0-.158-.038 2.195 2.195 0 0 0-.179-.024c-.052-.007-.104-.014-.157-.018-.061-.004-.121-.003-.181-.003-.053.001-.104 0-.157.003-.061.004-.119.012-.18.02-.053.007-.104.012-.156.021-.059.012-.117.027-.177.042-.052.013-.103.025-.153.041-.058.019-.113.041-.17.063-.039.016-.078.026-.117.044l-37.135 16.591a2.743 2.743 0 0 0-1.624 2.505v42.066c0 1.063.613 2.029 1.573 2.481l37.135 17.506a3.225 3.225 0 0 0 .544.19l.049.012a2.616 2.616 0 0 0 .32.049c.083.008.166.013.25.014h.016a2.968 2.968 0 0 0 .568-.063c.018-.003.034-.009.052-.013.072-.017.145-.037.216-.061.02-.006.04-.012.06-.02.084-.029.166-.063.246-.1l.02-.008 37.135-17.506a2.74 2.74 0 0 0 1.573-2.481v-42.066a2.747 2.747 0 0 0-1.625-2.504zm-3.863 40.299l-13.438-6.225c-2.421.948-4.859 1.151-6.923 1.151a36.83 36.83 0 0 1-1.673-.041 5.964 5.964 0 0 0-1.711.163l19.984 9.257-30.63 14.44-30.631-14.439 10.344-4.791a6.421 6.421 0 0 1-1.898-2.356 6.434 6.434 0 0 1-.598-2.535l-11.607 5.377v-36.015l31.647-14.14v15.256l.118.003c2.863 0 4.104-.491 5.369-3.279v-11.979l31.646 14.14v36.013z"}),o.default.createElement("path",{fill:"currentColor",d:"M792.381 818.253a2.47 2.47 0 0 1-1.054-4.702c.047-.022 4.723-2.294 9.344-8.231.714-1.17 4.561-6.783 12.392-6.417 4.753.222 7.546-.564 9.62-5.472a2.467 2.467 0 0 1 3.235-1.313 2.47 2.47 0 0 1 1.313 3.235c-3.335 7.889-8.891 8.738-14.399 8.482-5.511-.258-7.93 4.023-7.954 4.066-.061.11-.131.217-.207.318-5.436 7.04-11.014 9.692-11.248 9.802a2.446 2.446 0 0 1-1.042.232zM800.68 827.728a2.468 2.468 0 0 1-1.052-4.703c.092-.044 4.744-2.321 9.343-8.232.715-1.168 4.567-6.781 12.392-6.415 4.754.222 7.547-.565 9.621-5.473a2.469 2.469 0 0 1 4.547 1.921c-3.334 7.891-8.891 8.741-14.397 8.483-5.509-.253-7.931 4.022-7.954 4.066a2.562 2.562 0 0 1-.209.318c-5.434 7.04-11.013 9.693-11.247 9.802a2.483 2.483 0 0 1-1.044.233zM809.045 837.138a2.469 2.469 0 0 1-1.053-4.701c.067-.033 4.731-2.308 9.343-8.234.715-1.168 4.564-6.784 12.393-6.416 4.753.223 7.545-.564 9.62-5.471a2.466 2.466 0 0 1 3.235-1.313 2.467 2.467 0 0 1 1.313 3.233c-3.334 7.891-8.891 8.741-14.398 8.484-5.51-.254-7.931 4.022-7.954 4.066a2.79 2.79 0 0 1-.208.317c-5.434 7.041-11.013 9.694-11.247 9.804-.34.156-.694.231-1.044.231z"}),o.default.createElement("path",{fill:"currentColor",d:"M1066.344 423.203l-376.77-168.33c-.406-.188-.822-.308-1.229-.466-.555-.208-1.09-.437-1.645-.615a27.59 27.59 0 0 0-1.725-.456 31.707 31.707 0 0 0-1.605-.387 27.974 27.974 0 0 0-1.813-.247c-.525-.07-1.06-.139-1.594-.179-.615-.04-1.229-.03-1.834-.03-.534.01-1.061 0-1.595.03-.615.04-1.209.119-1.822.198-.536.07-1.062.119-1.587.219-.594.119-1.188.277-1.794.425a28.1 28.1 0 0 0-1.556.417c-.584.188-1.148.416-1.724.644-.396.159-.792.268-1.188.446l-376.77 168.33a27.832 27.832 0 0 0-16.478 25.415v426.806a27.833 27.833 0 0 0 15.961 25.178l376.771 177.615c.06.029.12.047.179.068.832.385 1.665.723 2.536 1.029.189.07.387.129.574.189.735.238 1.467.447 2.221.625.158.039.337.09.494.119.834.178 1.676.316 2.518.414a30.561 30.561 0 0 0 3.269.219h.168a30.488 30.488 0 0 0 3.27-.219 29.164 29.164 0 0 0 2.498-.414c.178-.029.346-.09.523-.129a24.45 24.45 0 0 0 2.191-.615c.197-.061.406-.119.604-.197a28.35 28.35 0 0 0 2.498-1.012c.068-.031.139-.049.197-.078l376.77-177.615a27.816 27.816 0 0 0 15.962-25.178V448.618a27.83 27.83 0 0 0-16.475-25.415zm-39.198 408.873L890.811 768.92c-24.563 9.621-49.303 11.682-70.24 11.682-5.359 0-10.928-.139-16.973-.416a64.196 64.196 0 0 0-3.348-.08c-5.143 0-9.711.734-14.012 1.734l202.764 93.922-310.783 146.502-310.781-146.502 104.948-48.611c-8.075-6.281-14.803-14.326-19.261-23.908a65.195 65.195 0 0 1-6.065-25.721l-117.77 54.555V466.671L650.387 323.21v154.787c.388 0 .813.029 1.199.029 29.051 0 41.644-4.984 54.476-33.271V323.209l321.084 143.461v365.406z"}),o.default.createElement("path",{fill:"currentColor",d:"M428.433 704.459c-9.443 0-18.468-5.352-22.729-14.457-5.827-12.514-.437-27.376 12.028-33.252.476-.228 47.916-23.274 94.801-83.516 7.245-11.87 46.272-68.822 125.728-65.106 48.222 2.249 76.562-5.728 97.605-55.516 5.381-12.743 20.074-18.717 32.828-13.327 12.73 5.39 18.695 20.084 13.324 32.826-33.836 80.039-90.205 88.659-146.096 86.063-55.913-2.615-80.455 40.822-80.704 41.258a26.872 26.872 0 0 1-2.101 3.229C497.969 674.089 441.372 701 438.995 702.109a24.848 24.848 0 0 1-10.562 2.35zM512.633 800.586c-9.434 0-18.47-5.359-22.711-14.475-5.825-12.516-.445-27.365 12.03-33.242.931-.447 48.134-23.551 94.792-83.526 7.253-11.851 46.341-68.803 125.725-65.087 48.232 2.249 76.572-5.737 97.617-55.526 5.379-12.732 20.074-18.697 32.816-13.327 12.742 5.39 18.705 20.084 13.316 32.816-33.826 80.059-90.205 88.688-146.076 86.072-55.894-2.566-80.466 40.811-80.704 41.258a25.655 25.655 0 0 1-2.12 3.23c-55.13 71.428-111.736 98.348-114.114 99.447a24.915 24.915 0 0 1-10.571 2.36zM597.506 896.063c-9.433 0-18.468-5.35-22.73-14.455-5.825-12.516-.436-27.377 12.039-33.242.685-.338 48.005-23.414 94.792-83.547 7.252-11.852 46.311-68.832 125.736-65.098 48.223 2.26 76.551-5.727 97.605-55.505 5.391-12.761 20.074-18.716 32.824-13.325 12.744 5.38 18.709 20.083 13.318 32.806-33.828 80.058-90.205 88.689-146.086 86.083-55.902-2.576-80.465 40.811-80.703 41.256a27.541 27.541 0 0 1-2.111 3.221c-55.129 71.438-111.735 98.357-114.113 99.469a25.118 25.118 0 0 1-10.571 2.337z"}))};t.default=u},"7b83":function(e,t,n){var r=n("7c64"),a=n("93ed"),o=n("2478"),i=n("a524"),l=n("1fc8");function s(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype["delete"]=a,s.prototype.get=o,s.prototype.has=i,s.prototype.set=l,e.exports=s},"7b97":function(e,t,n){var r=n("7e64"),a=n("a2be"),o=n("1c3c"),i=n("b1e5"),l=n("42a2"),s=n("6747"),u=n("0d24"),c=n("73ac"),f=1,p="[object Arguments]",d="[object Array]",h="[object Object]",v=Object.prototype,m=v.hasOwnProperty;function y(e,t,n,v,y,g){var b=s(e),x=s(t),_=b?d:l(e),w=x?d:l(t);_=_==p?h:_,w=w==p?h:w;var k=_==h,T=w==h,E=_==w;if(E&&u(e)){if(!u(t))return!1;b=!0,k=!1}if(E&&!k)return g||(g=new r),b||c(e)?a(e,t,n,v,y,g):o(e,t,_,n,v,y,g);if(!(n&f)){var O=k&&m.call(e,"__wrapped__"),M=T&&m.call(t,"__wrapped__");if(O||M){var S=O?e.value():e,C=M?t.value():t;return g||(g=new r),y(S,C,n,v,g)}}return!!E&&(g||(g=new r),i(e,t,n,v,y,g))}e.exports=y},"7bb1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M32 16h-5.313v-5.313h-5.375V5.312H10.687v5.375H-.001V16h5.313v5.313h5.375v5.375h10.625v-5.375H32z"}))};t.default=u},"7bb3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 16 16"},e),o.default.createElement("path",{d:"M4 0H0v4h1V1h3V0zm11 0h-3v1h3v3h1V0h-1zM1 15v-3H0v4h4v-1H1zm14-3v3h-3v1h4v-4h-1zm-2-3l-.008-.003L11.5 10.5 9 8l2.5-2.5L12.971 7H13V3H9v.03l1.5 1.47L8 7 5.5 4.5 7 3.03V3H3v4l1.5-1.5L7 8l-2.5 2.5L3 9v4h4l-1.5-1.5L8 9l2.5 2.5L9 13h4V9z"}))};t.default=u},"7bf3":function(e,t,n){"use strict";var r=n("7f23"),a=n("dec3"),o=n("e97a"),i=n("8720"),l=n("0de2"),s=n("31b4");function u(e,t){var n,r=e._latestEditorState,a=r.getSelection(),u=t.target;if(a.isCollapsed())t.preventDefault();else{if(s(u)){var f=u;n=l(o.getScrollParent(f))}var p=i(r);e.setClipboard(p),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(c(r))}),0)}}function c(e){var t=r.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return a.push(e,t,"remove-range")}e.exports=u},"7c4c":function(e,t,n){"use strict";var r=n("24be"),a=n("5530"),o=n("24f7"),i=(o.List,o.Map),l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},s=function(e,t){var n=[];if(!e)return n;var r=t.get(e);while(r&&r.getParentKey()){var a=r.getParentKey();a&&n.push(a),r=a?t.get(a):null}return n},u=function(e,t){var n=[];if(!e)return n;var r=a(e,t);while(r&&t.get(r)){var o=t.get(r);n.push(r),r=o.getParentKey()?a(o,t):null}return n},c=function(e,t,n){if(!e)return null;var r=n.get(e.getKey()).getNextSiblingKey();while(r&&!t.get(r))r=n.get(r).getNextSiblingKey()||null;return r},f=function(e,t,n){if(!e)return null;var r=n.get(e.getKey()).getPrevSiblingKey();while(r&&!t.get(r))r=n.get(r).getPrevSiblingKey()||null;return r},p=function(e,t,n,r){return e.withMutations((function(a){if(l(t.getKey(),a,(function(e){return e.merge({nextSibling:c(e,a,r),prevSibling:f(e,a,r)})})),l(n.getKey(),a,(function(e){return e.merge({nextSibling:c(e,a,r),prevSibling:f(e,a,r)})})),s(t.getKey(),r).forEach((function(e){return l(e,a,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return a.get(e)})),nextSibling:c(e,a,r),prevSibling:f(e,a,r)})}))})),l(t.getNextSiblingKey(),a,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),l(t.getPrevSiblingKey(),a,(function(e){return e.merge({nextSibling:c(e,a,r)})})),l(n.getNextSiblingKey(),a,(function(e){return e.merge({prevSibling:f(e,a,r)})})),l(n.getPrevSiblingKey(),a,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),s(n.getKey(),r).forEach((function(e){l(e,a,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return a.get(e)})),nextSibling:c(e,a,r),prevSibling:f(e,a,r)})}))})),u(n,r).forEach((function(e){return l(e,a,(function(e){return e.merge({nextSibling:c(e,a,r),prevSibling:f(e,a,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var o=t.getPrevSiblingKey();l(n.getKey(),a,(function(e){return e.merge({prevSibling:o})})),l(o,a,(function(e){return e.merge({nextSibling:n.getKey()})}));var i=o?e.get(o):null,p=i?i.getParentKey():null;if(t.getChildKeys().forEach((function(e){l(e,a,(function(e){return e.merge({parent:p})}))})),null!=p){var d=e.get(p);l(p,a,(function(e){return e.merge({children:d.getChildKeys().concat(t.getChildKeys())})}))}l(t.getChildKeys().find((function(t){var n=e.get(t);return null===n.getNextSiblingKey()})),a,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},d=function(e,t){if(t.isCollapsed())return e;var n,o=e.getBlockMap(),l=t.getStartKey(),u=t.getStartOffset(),c=t.getEndKey(),f=t.getEndOffset(),d=o.get(l),v=o.get(c),m=d instanceof r,y=[];if(m){var g=v.getChildKeys(),b=s(c,o);v.getNextSiblingKey()&&(y=y.concat(b)),g.isEmpty()||(y=y.concat(b.concat([c]))),y=y.concat(s(a(v,o),o))}n=d===v?h(d.getCharacterList(),u,f):d.getCharacterList().slice(0,u).concat(v.getCharacterList().slice(f));var x=d.merge({text:d.getText().slice(0,u)+v.getText().slice(f),characterList:n}),_=m&&0===u&&0===f&&v.getParentKey()===l&&null==v.getPrevSiblingKey(),w=_?i([[l,null]]):o.toSeq().skipUntil((function(e,t){return t===l})).takeUntil((function(e,t){return t===c})).filter((function(e,t){return-1===y.indexOf(t)})).concat(i([[c,null]])).map((function(e,t){return t===l?x:null})),k=o.merge(w).filter((function(e){return!!e}));return m&&d!==v&&(k=p(k,d,v,o)),e.merge({blockMap:k,selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:u,focusKey:l,focusOffset:u,isBackward:!1})})},h=function(e,t,n){if(0===t)while(t<n)e=e.shift(),t++;else if(n===e.count())while(n>t)e=e.pop(),n--;else{var r=e.slice(0,t),a=e.slice(n);e=r.concat(a).toList()}return e};e.exports=d},"7c50":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("g",{fill:"none"},o.default.createElement("path",{d:"M0 0h46v46H0z"}),o.default.createElement("path",{stroke:"#1d9bfb",d:"M23.511 20.062L9.516 13.588l13.929-6.319 14.039 6.319-13.973 6.474zM9.516 13.588v16.75l13.999 6.026-.004-16.302-13.995-6.474z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{stroke:"#1d9bfb",d:"M37.484 13.588v16.75l-13.999 6.026.004-16.302 13.995-6.474z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{stroke:"#1d9bfb",d:"M18.489 17.739v16.408M14 15.662V32.5m9.515-1.695L9.516 24.588m13.999 1.217L9.516 19.588m19.026-1.924v16.483m4.489-18.387V32.5m-9.516-1.695l14-6.217m-14 1.217l14-6.217m-23.128-8.21l14.155 6.286m-9.814-8.255l14.303 6.351m-14.542 1.979l14.124-6.292M14 15.662l14.123-6.291",strokeLinecap:"round",strokeLinejoin:"round"})))};t.default=u},"7c64":function(e,t,n){var r=n("e24b"),a=n("5e2e"),o=n("79bc");function i(){this.size=0,this.__data__={hash:new r,map:new(o||a),string:new r}}e.exports=i},"7c73":function(e,t,n){var r,a=n("825a"),o=n("37e8"),i=n("7839"),l=n("d012"),s=n("1be4"),u=n("cc12"),c=n("f772"),f=">",p="<",d="prototype",h="script",v=c("IE_PROTO"),m=function(){},y=function(e){return p+h+f+e+p+"/"+h+f},g=function(e){e.write(y("")),e.close();var t=e.parentWindow.Object;return e=null,t},b=function(){var e,t=u("iframe"),n="java"+h+":";return t.style.display="none",s.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(y("document.F=Object")),e.close(),e.F},x=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}x=r?g(r):b();var e=i.length;while(e--)delete x[d][i[e]];return x()};l[v]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(m[d]=a(e),n=new m,m[d]=null,n[v]=e):n=x(),void 0===t?n:o(n,t)}},"7ca3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n("ab5b"),o=f(a),i=n("d7bc"),l=f(i),s=n("a6a7"),u=f(s),c=n("242f");function f(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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}function h(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)}var v=function(e){function t(e){p(this,t);var n=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleKeyUp=n.handleKeyUp.bind(n),n}return h(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return e.locale!==this.props.locale||e.classNames!==this.props.classNames||e.date.getMonth()!==this.props.date.getMonth()||e.date.getFullYear()!==this.props.date.getFullYear()}},{key:"handleKeyUp",value:function(e){e.keyCode===c.ENTER&&this.props.onClick(e)}},{key:"render",value:function(){var e=this.props,t=e.classNames,n=e.date,r=e.months,a=e.locale,i=e.localeUtils,l=e.onClick;return o.default.createElement("div",{className:t.caption,role:"heading"},o.default.createElement("div",{onClick:l,onKeyUp:this.handleKeyUp},r?r[n.getMonth()]+" "+n.getFullYear():i.formatMonthTitle(n,a)))}}]),t}(a.Component);v.propTypes={date:l.default.instanceOf(Date),months:l.default.arrayOf(l.default.string),locale:l.default.string,localeUtils:l.default.object,onClick:l.default.func,classNames:l.default.shape({caption:l.default.string.isRequired}).isRequired},v.defaultProps={localeUtils:u.default},t.default=v},"7cbf":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M32 26.625l-12-16L16 16 9.312 5.25-.001 26.625z"}))};t.default=u},"7cc6":function(e,t,n){"use strict";var r=n("d8db");function a(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||r(!1),n}e.exports=a},"7cdc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n("9903")),a=n("ca44"),o=f(n("d7bc")),i=c(n("ab5b")),l=n("4578"),s=n("a36d");function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 m(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function y(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&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function b(e){var t=w();return function(){var n,r=k(e);if(t){var a=k(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){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}}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var T=(0,l.connectImageToLayout)(r.default),E=function(e){y(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this.context,t=e.layout.images,n=void 0===t?[]:t,r=e.localize,o=this.props,l=o.canAdd,u=o.children,c=o.canReorder,f=n.length&&n.map((function(e,t){return i.default.createElement(T,{key:t,imageIndex:t,name:"".concat(r("Image")," ").concat(t+1),canDelete:l},u)})),p={label:r("Image"),handler:function(e){var t,n=e.layout,r=e.updateContainer;t=Array.isArray(n.images)?n.images.length:0;var a="images[".concat(t,"]"),o={sizex:.1,sizey:.1,x:.5,y:.5};r&&r(d({},a,o))}};return i.default.createElement(a.LayoutPanel,{addAction:l?p:null,canReorder:c},f||i.default.createElement(s.PanelMessage,{heading:r("Logos, watermarks and more.")},i.default.createElement("p",null,r("Embed images in your figure to make the data more readable or to brand your content.")),i.default.createElement("p",null,r("Click on the + button above to add an image."))))}}]),n}(i.Component);E.contextTypes={layout:o.default.object,localize:o.default.func},E.propTypes={children:o.default.node,canAdd:o.default.bool,canReorder:o.default.bool};var O=E;t.default=O},"7d1f":function(e,t,n){var r=n("087d"),a=n("6747");function o(e,t,n){var o=t(e);return a(e)?o:r(o,n(e))}e.exports=o},"7d2f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedFlaglist=void 0;var r=c(n("5174")),a=c(n("c983")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=function(e){g(n,e);var t=x(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){return i.default.createElement(r.default,this.props,i.default.createElement(a.default,{options:this.props.options,activeOption:this.props.fullValue,onChange:this.props.updatePlot}))}}]),n}(i.Component);t.UnconnectedFlaglist=E,E.propTypes=d({fullValue:o.default.any,options:o.default.array.isRequired,updatePlot:o.default.func},r.default.propTypes),E.displayName="UnconnectedFlaglist";var O=(0,l.connectToContainer)(E);t.default=O},"7d90":function(e,t,n){"use strict";var r=n("9a31"),a=n("d8db"),o={L:"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ--ℝℤΩℨK--ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA--zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",R:"֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",AL:"؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾"},i=new RegExp("["+o.L+o.R+o.AL+"]"),l=new RegExp("["+o.R+o.AL+"]");function s(e){var t=i.exec(e);return null==t?null:t[0]}function u(e){var t=s(e);return null==t?r.NEUTRAL:l.exec(t)?r.RTL:r.LTR}function c(e,t){if(t=t||r.NEUTRAL,!e.length)return t;var n=u(e);return n===r.NEUTRAL?t:n}function f(e,t){return t||(t=r.getGlobalDir()),r.isStrong(t)||a(!1),c(e,t)}function p(e,t){return f(e,t)===r.LTR}function d(e,t){return f(e,t)===r.RTL}var h={firstStrongChar:s,firstStrongCharDir:u,resolveBlockDir:c,getDirection:f,isDirectionLTR:p,isDirectionRTL:d};e.exports=h},"7da0":function(e,t,n){"use strict";function r(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var a=arguments[r];a&&(t=(t?t+" ":"")+a)}return t}e.exports=r},"7db6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M0 21.313h10.688v5.375H0zm0-7.938h21.375v5.313H0zm0-8.062h32v5.375H0z"}))};t.default=u},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),a=n("9ed3"),o=n("e163"),i=n("d2bb"),l=n("d44e"),s=n("9112"),u=n("6eeb"),c=n("b622"),f=n("c430"),p=n("3f8c"),d=n("ae93"),h=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,m=c("iterator"),y="keys",g="values",b="entries",x=function(){return this};e.exports=function(e,t,n,c,d,_,w){a(n,t,c);var k,T,E,O=function(e){if(e===d&&P)return P;if(!v&&e in C)return C[e];switch(e){case y:return function(){return new n(this,e)};case g:return function(){return new n(this,e)};case b:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",S=!1,C=e.prototype,A=C[m]||C["@@iterator"]||d&&C[d],P=!v&&A||O(d),L="Array"==t&&C.entries||A;if(L&&(k=o(L.call(new e)),h!==Object.prototype&&k.next&&(f||o(k)===h||(i?i(k,h):"function"!=typeof k[m]&&s(k,m,x)),l(k,M,!0,!0),f&&(p[M]=x))),d==g&&A&&A.name!==g&&(S=!0,P=function(){return A.call(this)}),f&&!w||C[m]===P||s(C,m,P),p[t]=P,d)if(T={values:O(g),keys:_?P:O(y),entries:O(b)},w)for(E in T)(v||S||!(E in C))&&u(C,E,T[E]);else r({target:t,proto:!0,forced:v||S},T);return T}},"7de8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n("ab5b")),a=l(n("d7bc")),o=n("e419"),i=n("8bc8");function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return c="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},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var _=function(e){h(n,e);var t=m(n);function n(e){var r;return f(this,n),r=t.call(this,e),r.state={position:r.getUpdatedPosition(e),originalLinkURL:e.linkURL},r}return d(n,[{key:"componentDidMount",value:function(){""===this.props.linkURL.trim()&&(0,i.findDOMNode)(this.input).focus()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props;e.linkID!==t.linkID&&this.setState({position:this.getUpdatedPosition(t)})}},{key:"componentDidUpdate",value:function(){(0,i.findDOMNode)(this.input).setSelectionRange(this.props.linkURL.length,this.props.linkURL.length)}},{key:"getUpdatedPosition",value:function(e){var t=e.coordinates,n=t.x,r=t.y;return{x:n,y:r}}},{key:"onInputChange",value:function(e){var t=this.props,n=t.linkID,r=t.onURLChange;r(n,e)}},{key:"onInputKeyDown",value:function(e){var t=e.key;t===o.RETURN_KEY&&(e.preventDefault(),this.props.onClose(this.props.linkID)),t===o.ESCAPE_KEY&&(e.preventDefault(),this.onInputChange(this.state.originalLinkURL),this.props.onClose(this.props.linkID))}},{key:"render",value:function(){var e=this,t=this.context.localize,n=this.state.position,a=this.props,o=a.onBlur,i=a.onFocus,l=a.linkURL,s=t("Enter Link URL"),u=t("URL");return r.default.createElement("div",{className:"rich-text-editor__link-editor",style:{left:n.x,top:n.y}},r.default.createElement("span",{className:"rich-text-editor__link-editor__label"},u),r.default.createElement("input",{className:"rich-text-editor__link-editor__input",onBlur:o,onFocus:i,onChange:function(t){return e.onInputChange(t.target.value)},onKeyDown:function(t){return e.onInputKeyDown(t)},ref:function(t){return e.input=t},value:l,placeholder:s}))}}]),n}(r.Component);_.propTypes={linkID:a.default.string.isRequired,linkURL:a.default.string.isRequired,onBlur:a.default.func.isRequired,onFocus:a.default.func.isRequired,onClose:a.default.func.isRequired,onURLChange:a.default.func.isRequired,coordinates:a.default.shape({x:a.default.number,y:a.default.number})},_.defaultProps={coordinates:{x:0,y:0}},_.contextTypes={localize:a.default.func.isRequired};var w=_;t.default=w},"7e43":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("defs",null,o.default.createElement("radialGradient",{id:"a",cx:"36.94",cy:"20.41",r:"1",gradientUnits:"userSpaceOnUse"},o.default.createElement("stop",{offset:"0",stopColor:"#269ffb"}),o.default.createElement("stop",{offset:"1",stopColor:"#1d9bfb",stopOpacity:".1"})),o.default.createElement("radialGradient",{id:"b",cx:"22.42",cy:"20.41",r:"2",xlinkHref:"#a"}),o.default.createElement("radialGradient",{id:"c",cx:"10.91",cy:"14.41",r:"1",xlinkHref:"#a"}),o.default.createElement("radialGradient",{id:"d",cx:"15.92",cy:"24.42",r:"1",xlinkHref:"#a"}),o.default.createElement("radialGradient",{id:"e",cx:"13.91",cy:"28.42",r:"1",xlinkHref:"#a"}),o.default.createElement("radialGradient",{id:"f",cx:"25.93",cy:"27.42",r:"3",xlinkHref:"#a"}),o.default.createElement("radialGradient",{id:"g",cx:"13.91",cy:"17.41",r:"1",xlinkHref:"#a"}),o.default.createElement("radialGradient",{id:"h",cx:"20.92",cy:"26.42",r:"1",xlinkHref:"#a"}),o.default.createElement("radialGradient",{id:"i",cx:"23.93",cy:"14.41",r:"1.5",xlinkHref:"#a"}),o.default.createElement("radialGradient",{id:"j",cx:"30.93",cy:"20.41",r:"1",xlinkHref:"#a"})),o.default.createElement("path",{fill:"none",stroke:"#dfe8f3",d:"M5.48 6.05h35.48v35.48H5.48zM5.48 11.22h35.48M5.48 16.4h35.48M5.48 21.08h35.48M5.48 26.25h35.48M5.48 31.43h35.48M5.48 36.6h35.48M10.65 41.44V5.96M15.83 41.53V6.05M20.51 41.53V6.05M25.68 41.53V6.05M30.86 41.53V6.05M36.03 41.53V6.05",strokeMiterlimit:"10",strokeWidth:".25"}),o.default.createElement("path",{d:"M0 0h46v46H0z",fill:"none"}),o.default.createElement("path",{d:"M31.48 28.3l-2.3 3.45-4.6 1.15-2.31-2.3h-3.45l-6.16 1.15-3.45-2.3 3.85-4.61v-3.45h5.17l4.19 3 4.46-3 9.21 6.91z",fill:"#25fdfc",stroke:"#fff",strokeMiterlimit:"10"}),o.default.createElement("path",{d:"M36.09 28.3l-9.21-6.91-4.46 3-4.19-3h-5.17l-2.88-1.73v-2.3L9 16.21l-1.12 1.15-1.15-1.15V11.6H9l2.31-1.15h2.3l3.45 2.3h3.46l4.6-2.3 3.46 3.46-3.46 3.45h5.76v-2.3h3.45v1.15l1.15 1.15 1.15-1.15 3.46 3.45v3.46h-4zm-9.79 7.48l-1.15 1.15H24l.58-4-2.31-2.3h-3.45l-6.16 1.15 7.89 4v2.3l3.45 2.3h2.3l1.15-1.15v-2.3z",fill:"#25fdfc",stroke:"#fff",strokeMiterlimit:"10"}),o.default.createElement("circle",{cx:"36.94",cy:"20.41",r:"1",fill:"url(#a)"}),o.default.createElement("circle",{cx:"22.42",cy:"20.41",r:"2",fill:"url(#b)"}),o.default.createElement("circle",{cx:"10.91",cy:"14.41",r:"1",fill:"url(#c)"}),o.default.createElement("circle",{cx:"15.92",cy:"24.42",r:"1",fill:"url(#d)"}),o.default.createElement("circle",{cx:"13.91",cy:"28.42",r:"1",fill:"url(#e)"}),o.default.createElement("circle",{cx:"25.93",cy:"27.42",r:"3",fill:"url(#f)"}),o.default.createElement("circle",{cx:"13.91",cy:"17.41",r:"1",fill:"url(#g)"}),o.default.createElement("circle",{cx:"20.92",cy:"26.42",r:"1",fill:"url(#h)"}),o.default.createElement("circle",{cx:"23.93",cy:"14.41",r:"1.5",fill:"url(#i)"}),o.default.createElement("circle",{cx:"30.93",cy:"20.41",r:"1",fill:"url(#j)"}))};t.default=u},"7e64":function(e,t,n){var r=n("5e2e"),a=n("efb6"),o=n("2fcc"),i=n("802a"),l=n("55a3"),s=n("d02c");function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=a,u.prototype["delete"]=o,u.prototype.get=i,u.prototype.has=l,u.prototype.set=s,e.exports=u},"7e6f":function(e,t,n){"use strict";e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:""}},"7ec4":function(e,t,n){"use strict";e.exports=function(e,t){if(t instanceof RegExp){for(var n=t.toString(),r=0;r<e.length;r++)if(e[r]instanceof RegExp&&e[r].toString()===n)return e;e.push(t)}else!t&&0!==t||-1!==e.indexOf(t)||e.push(t);return e}},"7ed2":function(e,t){var n="__lodash_hash_undefined__";function r(e){return this.__data__.set(e,n),this}e.exports=r},"7f23":function(e,t,n){"use strict";var r=n("9452"),a=n("33aa"),o=n("8a55"),i=n("736d"),l=n("0d82"),s=n("24f7"),u=n("2f61"),c=n("f352"),f=n("d8db"),p=n("321f"),d=n("6eee"),h=n("7c4c"),v=n("0746"),m=s.OrderedSet,y={replaceText:function(e,t,n,a,o){var i=d(e,t),l=h(i,t),s=r.create({style:a||m(),entity:o||null});return c(l,l.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,a){return t.isCollapsed()||f(!1),y.replaceText(e,t,n,r,a)},moveText:function(e,t,n){var r=l(e,t),a=y.removeRange(e,t,"backward");return y.replaceWithFragment(a,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",a=d(e,t),o=h(a,t);return u(o,o.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,a,o,l;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),a=t.getFocusKey(),o=e.getBlockForKey(r),l=e.getBlockForKey(a);var s=t.getStartOffset(),u=t.getEndOffset(),c=o.getEntityAt(s),f=l.getEntityAt(u-1);if(r===a&&c&&c===f){var p=i(e.getEntityMap(),o,l,t,n);return h(e,p)}var v=d(e,t);return h(v,t)},splitBlock:function(e,t){var n=d(e,t),r=h(n,t);return v(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return a.add(e,t,n)},removeInlineStyle:function(e,t,n){return a.remove(e,t,n)},setBlockType:function(e,t,n){return p(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return p(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=d(e,t);return o(r,t,n)}};e.exports=y},"7f24":function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n("61e5"),i=n("9452"),l=n("f2e4"),s=n("24be"),u=n("7f23"),c=n("dec3"),f=n("ac96"),p=n("7301"),d=n("24f7"),h=n("2365"),v=p("draft_tree_data_support"),m=v?s:l,y=d.List,g=d.Repeat,b={insertAtomicBlock:function(e,t,n){var a=e.getCurrentContent(),l=e.getSelection(),s=u.removeRange(a,l,"backward"),p=s.getSelectionAfter(),d=u.splitBlock(s,p),h=d.getSelectionAfter(),b=u.setBlockType(d,h,"atomic"),x=i.create({entity:t}),_={key:f(),type:"atomic",text:n,characterList:y(g(x,n.length))},w={key:f(),type:"unstyled"};v&&(_=r({},_,{nextSibling:w.key}),w=r({},w,{prevSibling:_.key}));var k=[new m(_),new m(w)],T=o.createFromArray(k),E=u.replaceWithFragment(b,h,T),O=E.merge({selectionBefore:l,selectionAfter:E.getSelectionAfter().set("hasFocus",!0)});return c.push(e,O,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var a,o=e.getCurrentContent(),i=e.getSelection();if("before"===r||"after"===r){var l=o.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());a=h(o,t,l,r)}else{var s=u.removeRange(o,n,"backward"),f=s.getSelectionAfter(),p=s.getBlockForKey(f.getFocusKey());if(0===f.getStartOffset())a=h(s,t,p,"before");else if(f.getEndOffset()===p.getLength())a=h(s,t,p,"after");else{var d=u.splitBlock(s,f),v=d.getSelectionAfter(),m=d.getBlockForKey(v.getFocusKey());a=h(d,t,m,"before")}}var y=a.merge({selectionBefore:i,selectionAfter:a.getSelectionAfter().set("hasFocus",!0)});return c.push(e,y,"move-block")}};e.exports=b},"7f9a":function(e,t,n){var r=n("da84"),a=n("8925"),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(a(o))},8014:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n("ab5b")),a=l(n("d7bc")),o=l(n("4d26")),i=n("8704");function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return c="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},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var _=function(e){h(n,e);var t=m(n);function n(e){var r;return f(this,n),r=t.call(this,e),r.state={options:r.props.options},r.handleChange=r.handleChange.bind(g(r)),r}return d(n,[{key:"componentWillReceiveProps",value:function(e){this.setState({options:e.options})}},{key:"handleChange",value:function(e){var t=this.props.options.slice();t[e]=Object.assign(t[e],{checked:!t[e].checked}),this.props.onChange(t)}},{key:"renderOptions",value:function(){var e=this;return this.state.options.map((function(t,n){var a=(0,o.default)(["checkbox__check","icon"],{"checkbox__check--checked":t.checked}),l=(0,o.default)("checkbox__item",{"checkbox__item--vertical":"vertical"===e.props.orientation,"checkbox__item--horizontal":"horizontal"===e.props.orientation});return r.default.createElement("div",{key:n,className:l},r.default.createElement("div",{className:"checkbox__box".concat(t.checked?" checkbox__box--checked":""),onClick:function(){return e.handleChange(n)}},t.checked&&r.default.createElement("div",{className:a},r.default.createElement(i.CheckIcon,null))),r.default.createElement("div",{className:"checkbox__label",onClick:function(){return e.handleChange(n)}},t.label))}))}},{key:"render",value:function(){var e=(0,o.default)("checkbox__group",this.props.className,{checkbox__group_horizontal:"horizontal"===this.props.orientation});return r.default.createElement("div",{className:e},this.renderOptions())}}]),n}(r.Component);_.propTypes={options:a.default.arrayOf(a.default.shape({label:a.default.string.isRequired,value:a.default.string.isRequired,checked:a.default.bool.isRequired})).isRequired,onChange:a.default.func,className:a.default.string,orientation:a.default.string},_.defaultProps={className:""};var w=_;t.default=w},"801f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("9903")),a=c(n("e78b")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function m(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&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function g(e){var t=_();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=(0,l.connectRangeSelectorToAxis)(r.default),T=function(e){m(n,e);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return v(n,[{key:"render",value:function(){if(!this.context.fullContainer||!this.context.fullContainer.rangeselector||!this.context.fullContainer.rangeselector.visible||0===this.context.fullContainer._axisGroup)return null;var e=this.context,t=e.fullContainer.rangeselector.buttons,n=void 0===t?[]:t,r=e.localize,o=e.layout,s=this.props.children,u=n.length&&n.map((function(e,t){return i.default.createElement(k,{key:t,rangeselectorIndex:t,name:(0,l.getParsedTemplateString)(e.label,{meta:o}),canDelete:!0},s)})),c={label:r("Button"),handler:function(e){var t=e.fullContainer,n=e.updateContainer;if(n){var r=Array.isArray(t.rangeselector.buttons)?t.rangeselector.buttons.length:0;n(p({},"rangeselector.buttons[".concat(r,"]"),{}))}}};return i.default.createElement(a.default,{addAction:c},u||null)}}]),n}(i.Component);T.contextTypes={fullContainer:o.default.object,localize:o.default.func,layout:o.default.object},T.propTypes={children:o.default.node},T.plotly_editor_traits={no_visibility_forcing:!0};var E=T;t.default=E},"802a":function(e,t){function n(e){return this.__data__.get(e)}e.exports=n},8057:function(e,t){function n(e,t){var n=-1,r=null==e?0:e.length;while(++n<r)if(!1===t(e[n],n,e))break;return e}e.exports=n},"807a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M31.625 8.813s.125 0 0 0c.125 0 0-.125 0 0zm-4.312 16.25c.313-.125.438-.375.563-.688-.125 0 0 .188-.125.188 0 .25-.438.25-.438.5zm5.062-17.438c-.125 0-.125.125-.25 0v-.313h-.25c0-.375-.25-.625-.25-1.063-.188 0-.313 0-.313-.125l-.25.25c-.125 0 0-.125-.125-.125-.25.438-.375.938-.25 1.375-.125.125-.125.375-.125.5h-.313c0 .125 0 .25-.125.25-.375.188-.813.313-1.188.313-.125 0-.375 0-.563.125-.125.125-.25.375-.375.5s-.25.125-.25.313c.125.125.125.25.125.375-.438.688-1.063.375-1.625.688 0 .125.125.25.125.375-.5.688-1.188 1.063-1.813 1.5-.188 0-.438-.188-.563-.313 0-.25.25-.5.375-.625 0-.438-.125-.813-.375-1.063l-.375.375c-.188 0-.188-.125-.188-.25.438-.125.188-.813.313-.938-.125 0-.125-.125-.125-.125-.438 0-.688-.438-.938 0 0 .125.125 0 .125.125-.125 0-.125 0-.25.125 0 .25.125.375-.188.375 0-.125.188-.25 0-.375-.25.375-.375.938-.375 1.438.375.438.25 1.063-.125 1.5l-.125.125c-.813-.688-.313-2.125-.125-2.938-.188.25-.313.375-.563.563.25-.563.375-.938.563-1.25.25 0 .625-.125.938-.25h.75c-.125 0-.25-.125-.125-.375h-.375v-.313c-.438.188-.938.313-1.375.313 0-.313-.25-.313-.5-.313h-.125c.125-.25.125-.375.375-.5-.25 0-.5.125-.625.375-.313.125-.563.313-.813.438 0-.125-.313 0-.313-.125 0 0 .188-.188.188-.313-.313.125-.438.125-.688.125.25-.25.375-.375.688-.625.25-.125.5-.313.625-.438-.25 0-.5 0-.625-.125-.188.125-.438.125-.563 0l-.125-.125c-.25-.125-.563-.125-.938-.125-.125-.125-.25-.125-.563-.125-.125-.125 0-.563-.25-.563-.125 0 0 .313-.125.313-4.813 0-9.625-.563-14.25-1.875.125.625.125.938.125 1.188-.125 0-.25-.125-.125-.25-.125 0-.125 0-.25.125-.313-.125-.563-.313-.813-.438-.125.438 0 .813.125 1.25h-.125s0 .125.125.125c-.125.125-.25.25 0 .375-.125 0-.125.125-.125.125-.438.813-.688 1.625-1.188 2.25 0 .188 0 .438-.188.563 0 .563-.125 1.063-.375 1.438.375.313 0 .813.125 1.125.125.125.25.375.25.625 0 .125 0 .438.188.438-.188.25 0 .625.25.75 0 .188-.125.188-.125.313 0 .5.5.75.5 1.313v.563c.438.125.813.375 1.188.625v.125c.438.125.688.563.563 1.063.375.188.938.313 1.438.313 0 .125-.125 0-.125.125.563.25 1.063.625 1.625 1.063.813.375 1.563.5 2.5.688 0-.188 0-.313.188-.438.375.125.75.125 1.063.125.25.438.5.688.75.938.313.125.438.438.438.688.25.375.5.688.938.813.125-.313.375-.563.625-.688.688 0 1.375.688 1.375 1.313.25.125.25.563.5.688-.125.938.938 1.188 1.5 1.313-.125-.5-.125-1.063 0-1.438.625-.438 1.313-.813 1.875-1.188.625-.313 1.313-.313 2-.125 0-.313-.313 0-.313-.188.313-.25.438.188.688.188v.125c.125.125.25.125.375.125.188-.125.188-.125.313-.125.125.125-.125.125 0 .125.125-.125.25-.25.25-.438 0 .188.5.438.5.188-.125 0-.25-.188-.5-.313.125 0 .25-.25.125-.375-.125.125-.125.125-.25.125.125-.375.5-.375 1.063-.375 0 0 0-.313.125-.313s.125.313 0 .313c.563-.438 1.313-.313 1.875.25.25 0 .5-.125.688-.438.625 0 .5.563 1.063.563.25.25 0 .938.25 1.188v-.25h.125c0 .125-.125.25-.125.25.125.25.375.563.5.688l.188-.125c.125.125.125.25.125.375.25 0 .5.25.5.563.125-.125.25-.125.563-.125.125-.813-.125-1.625-.563-2.313 0 0 .125 0 .125-.125-.625-.5-1.063-1.563-.75-2.5.125-.188.25-.438.25-.563.25-.125.5-.375.625-.688 0-.375.188-.625.563-.625h.125c0-.813.938-.563.938-1.063-.125.125-.25.125-.375 0 .125.125.25-.125.125-.313.125.188.375 0 .5-.125v-.125h-.25c.125 0 .25 0 .25-.125-.125-.25-.25-.563-.375-.813h-.25c.125-.125-.125-.25-.125-.375h.125a.657.657 0 0 0-.313-.563c.188 0 0-.125.188-.125-.313-.125-.313-.813 0-.938-.188.125.125.25-.188.563.188 0 0 0 .188.25.125.125.25.125.25.25v-.25c.375.125 0 .688.25.938.25-.563.25-.938.25-1.5-.25-.125-.375-.25-.375-.5.125.25.25.375.375.375v.125c.438-.375.563-.75.438-1.313h-.125c.125 0 0-.125.125-.125v-.125c.375-.438.938-.688 1.438-.938 0-.125 0-.125.125-.25 0 .125 0 .125-.125.25.125-.125.25-.25.563-.25 0-.125 0-.313-.313-.313.188.188.188.188.188.313-.313.25-.438-.438-.688-.313 0-.375 0-.75.125-1.188.25 0 .375-.125.563-.25v-.125-.25s.125 0 .125.125c.125 0 .25-.125.25-.313 0 .188 0 .188.125.188s-.125-.188-.125-.313c.25.125.813-.375.375-.625zm-7.812 9.313h-2.688v-.813l-7.188.563v.938h-2.688v-2l-4.813-4.688h-2V8.25h2.688v2l4.813 4.688h2v.813l7.188-.438v-.938h2.688z"}))};t.default=u},8164:function(e,t,n){"use strict";var r=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")};e.exports=r},8256:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M29.313 0H2.688A2.668 2.668 0 0 0 0 2.688v26.625c0 1.5 1.188 2.688 2.688 2.688h26.625c1.5 0 2.688-1.188 2.688-2.688V2.688c0-1.5-1.188-2.688-2.688-2.688zM18.125 2.938c.125.125.25.125.438.125h.375c0 .125 0 .125-.125.25h-.125l-.125.125s0 .188-.188.188h.313v-.313-.125c-.125-.125-.125-.125-.313 0-.125.125-.125.125-.25 0 0 0 0-.125-.125-.125 0-.125-.125-.125-.125-.125l-.25-.125-.188-.125h-.125H18c.125.125.125.125.125.25zm-.812.125v.375l-.125.188c-.125.125-.125 0-.125-.188v-.25h-.25-.125s-.125.125 0 .125.125.125.125.313h-1.376v-.188h.188c.25 0 .375 0 .5-.125.125-.375-.125-.375-.25-.375s-.125 0-.25-.125l-.188-.125h1.75c0 .125.125.25.125.375zm-4.375 0c.125 0 .125.125.25.125 0 0 0 .25-.125.125s-.375-.125-.5-.125c-.188-.125-.313-.125-.438-.125h-.688c-.125 0-.125.125-.25.125v-.25h-.125s-.125 0-.125.125c-.125-.125-.25-.125-.375-.125h-.938s0 .125-.188.125c0 .125-.125.25-.25 0h-.625c-.188 0-.438-.125-.563-.25-.25 0-.563.125-.813.125-.125 0-.25-.125-.5-.125h-.813-.125c-.125 0-.125-.125-.313-.125h6c.313.125.438.125.563.25.125 0 .375 0 .563-.125v-.125h.125zM12 8c-.125 0-.125-.125-.125-.25s-.125-.125-.25-.125h-.188v-.188l.188.188c.125 0 .25 0 .375.125V8zM2.688 2.688h2.75s0 .125-.125.125-.25.125-.375.125-.25.125-.563.125H4s-.125.125-.125.25.125.313.25.313.25 0 .438.125c.125 0 .25.125.25.25.125 0 .125.125 0 .125-.25-.125-.438-.125-.563-.25l-.125-.125L4 3.876c-.25 0-.375.125-.563.125 0 .125.188.25.313.25.125.125.25.125.375.125h.563s0 .313-.313.313c-.125 0-.375 0-.5.125 0 .125-.125.125-.125.25.125.125.25.375.25.563 0 .125.125 0 .25 0 0 0 .125 0 .125-.188 0-.125.313-.125.188.188 0 .125 0 .25.125.25 0-.125.125-.25.125-.25l.25.25s.125-.125.125 0 0 0-.125.125-.375.125-.5.25h-.188c-.125 0-.125.125-.25.125s-.125.313 0 .313c.25 0 .563-.125.813-.313.125 0 .125.188.375 0l.125-.125c.188-.125.313-.125.313-.25.125.125.125.125.25.125h.125c.125 0 .125-.125.25-.125v-.125h-.25c.125 0 .125-.125.25-.25v-.188c0-.125.188-.125.188-.125.125 0 .125 0 0 .313-.188.25.125-.188.25-.188h.375c0-.125 0-.125.125-.125 0-.125 0-.125.125-.25.188.125.313.125.438.125s.25 0 .375.125c.125 0 .688.125.813.125.25 0 .375.188.375.438s.188.25.188.25c.125 0 .25.125.375.25 0 .188 0 .438.125.563s.25.125.438.25v-.125c0-.125 0-.125-.188-.125v-.125c0-.125.188-.125.188 0 0-.125.125 0 .25.125s.125.25.125.25 0 .438.125.438.25.125.375.25c0 0 .188.125.188.25s.125.25.125.438v.75c0 .313.125.563.25.813 0 .25 0 .563.125.688s.25.125.563.125c.125 0 .25.125.375.375 0 .438.125.563.25.813.125 0 .313.125.125.25-.125.188-.125.313 0 .313.188 0 .188-.125.313.125.125.125.125.25.25.375 0 .125.125.125.125.125.125 0 .125.313.438.313v-.188c-.188-.125-.188-.125-.313-.25 0-.125-.125-.25-.125-.25 0-.125-.125-.25-.125-.25h-.125c-.125-.125-.125-.313-.25-.438l-.188-.125s-.125-.125 0-.25c.188-.125.188.125.313.25.125.25.375.563.5.688.125.25.313.375.563.625.125.188.25.188.25.313s.125.25.125.25c0 .125 0 .25.125.375a.77.77 0 0 1 .688.438c0 .125.125.375.25.375h.438s.125.125.25 0c0-.125.125-.125.25-.125s.25.125.25.25c.188.125.313.313.438.313s.25.125.25.125c.125 0 .125 0 .25.125.188.125.313.25.188.375 0 .125.125.313.25.313.125.125.25.125.25.25.125 0 .25.125.25.125s.125.125.313.125l.125-.125v-.125h.25c.125.125.125.25.125.375.125.125.125.438.125.563s0 .25-.125.375-.25.125-.25.25c-.125.188-.25.313-.25.438v.5c-.188.125-.188.313-.188.563s.438.25.438.375.25.688.25.813c.125.25.125.375.125.688.125.25.313.375.563.375.125 0 .25.125.25.25.125.188.25.188.25.313s.125.25 0 .375c0 0 0 .688-.125.938v.813c-.125.125-.25.125-.125.25s.375.25.375.25c0 .125.188.313 0 .563 0 .125-.125.25-.125.375-.125.125-.125.313-.125.438s-.125.125-.125.25.125.125.125.25-.125.25-.125.438c0 .125 0 .25.125.375 0 .125-.125.25-.125.375-.125.188-.125.313-.125.313 0 .125.125.125.125.25 0 0 0 .125-.125.25H2.696zm26.625 26.625h-6.625v-.125-.25h-.313v-.125l.188-.125.125-.125c.125-.188.125-.313.25-.313 0 0 .125-.125.125-.25s0 0-.125 0-.125-.125-.125-.25c.125 0 .25 0 .375.125h.125v-.25-.188-.125h.688c.125 0 .125-.125.125-.25l.125-.125s.125-.125 0-.25h-.25l-.125-.125v-.188c0-.125 0-.25.125-.375 0 .25 0 .375.25.563.125.125.438 0 .563-.188l.125-.125c.125-.125.25-.25.25-.375v-.25s0-.188.125-.188l.125-.125c0-.125.188-.125.313-.25v-.25-.25l.125-.188.25-.125c.125 0 .125-.125.25-.125.188 0 .313 0 .438-.125 0-.125.125-.25.125-.375l.125-.188.125-.125c.125-.125.125-.25.125-.25v-.25c0-.125 0-.25.125-.25v-.313c0-.125 0-.25.188-.25l.625-.813c.125-.125.125-.25.313-.375l.125-.25c0-.188.125-.313.125-.438s0-.125-.125-.25c0-.125-.125-.125-.313-.25-.125 0-.25 0-.25-.188 0 0-.125 0-.125-.125l-.125-.125c-.125-.125-.25-.125-.25-.125h-.438l-.375-.25c-.125-.125-.25-.125-.438-.125-.125 0-.125-.125-.25.125 0 .125-.125.125-.125.25h-.25-.125l.125-.125v-.25-.313c0 .188-.125.188-.313.313-.25 0-.25-.125-.125-.125s.313-.188.438-.188.125-.125.125-.125c0-.125 0-.125-.125-.25s-.125-.25-.313-.375l-.25-.438c-.125-.125-.25-.25-.5-.25-.125 0-.313.25-.438 0v-.125l-.25-.25h-.25s-.313 0-.125-.188v-.125-.25-.125c0 .125-.188.125-.313.25l-.25-.25h-.25s-.125 0-.125.125v.125s0-.125-.125-.125c-.188-.125-.313-.125-.438 0 0 0-.125 0-.125-.125s-.125-.125-.125-.25h-.125c-.125 0-.125.125-.125.25s-.188.25-.188.375v-.125-.25c0-.125.188-.25 0-.25h-.125l.125.375h-.125c-.125.125-.25.125-.25.25s-.125.313-.25.313h-.125c0-.188-.125-.188-.125-.188h-.313-.125l-.25.188c-.125.125-.25 0-.438 0 0-.188-.125-.188-.125-.313v-.125-.25-.438c0-.125 0-.125-.125-.25 0-.125-.125-.125-.25-.125s-.25.125-.25.125h-.313c-.125 0 0 0 0-.125v-.125-.25c0-.125 0-.125.188-.313.125-.125.125-.25.125-.375 0 0 0-.125-.125-.125h-.563a.269.269 0 0 0-.25.25v.125c0 .125 0 .313-.125.313-.188-.188-.313-.188-.313 0 0 .125 0 0-.25-.188h-.125c-.125-.125-.25-.25-.25-.375v-.125-.438-.25-.375s0-.125.125-.125l.125-.313c.125 0 .125-.125.25-.25h.438c.125 0 .25 0 .375.125h.25v-.125s.125-.125.313-.125c.125 0 .375-.125.5-.125 0 0 .125.25.25.25.125-.125.125-.25.125 0s.188.438.313.688c0 .125.125.25.25.25.125-.125.125-.125.125-.25v-.25c0-.188-.125-.313-.125-.438 0 0 0-.125-.125-.125v-.125c0-.125.125-.25.125-.25.125-.188.125-.188.25-.313s.125-.25.313-.25c.125-.125.375-.125.25-.25s-.125-.25-.125-.563c0-.125.125-.125.125 0s.25-.125.125-.25v-.125h.125v-.125c0-.125.125-.125.25-.125h.563v-.188c0-.125-.125-.125-.125-.25v-.125c0-.125.125-.25.25-.25h.25l.125-.125h.188s0 .375.125.375.25-.125.25-.125l.375-.125c.125 0 .313 0 .438-.125v-.313s0-.125-.125-.125c0 0-.188 0-.188.125h-.125c0-.125 0-.25-.125-.25l-.125.125-.125-.125c.125 0 .125-.125 0-.25h-.25s-.125.125-.313.125c-.125 0-.125 0-.25.125C22 7.99 22 7.865 22 7.865c0-.125 0-.125.125-.125s.438-.125.563-.125c.125 0 .25 0 .25.125v.375s.375-.125.25-.125 0 0 0-.125l.125-.125h.438l.125-.125c.125 0 .125.125 0 .25s-.125.25-.25.5c-.188.188 0 .188.125.188h.375c.125 0 .125 0 .25.125h.563v-.125l-.125-.313v-.5-.125h-.125v-.188c-.125 0-.125.188-.125 0 .125-.125.125-.125.125-.25s.125-.125.125-.25v-.125a.269.269 0 0 1-.25-.25c0-.188-.188-.188-.313-.313h-.5c0-.125 0-.125-.125-.25 0 0 0-.125-.188-.125l-.125-.125-.25-.438v-.125s-.125 0-.25.25l-.125.188h-.125c-.188 0-.313-.188-.438-.313v-.125l.125-.125c-.125-.125-.25-.125-.375-.125-.125-.125-.25-.125-.563-.25h-.625c-.125.125-.125.25-.125.25v.25h-.188v.125c.188.125.313.313.313.438s0 .125-.125.25c-.188.25-.313.25-.438.25h-.125c.125.125.125.125.125.313v.5h-.25c-.125 0-.125-.125-.125-.125v-.25l-.125.125v-.25-.188c0-.125-.188-.25-.313-.25 0-.125-.125-.125-.25-.125h-.5c-.188 0-.313-.125-.438-.25h-.25-.25c0-.125 0-.125-.188-.313-.125 0 0-.125-.125-.25v-.25l.313-.125.25-.125c0-.125.125-.313.25-.313.25 0 .438.188.438.188v-.188-.25c0 .125.25.125.125.25-.125.188 0 .188 0 .188.125 0 .25-.188.25-.188s.25-.125.25 0c0 .188 0 .313.125.313s.313-.125.125-.313c-.125-.125-.25-.125-.25-.25l.25-.125h-.125-.125-.125s0-.125.125-.125h.563c.125 0 .125 0 .25-.125l.125-.125c0-.188-.125-.188-.125-.188l.125-.125h.438v-.125c.125 0 0 .25.125.125h.25c0 .125 0 .313-.125.313h-.125s-.125.125 0 .125h.25c0-.125.125-.125.125-.313h.125s.25.188.125.188l-.125.125c-.125 0-.125.125-.125.125v.125h-.25-.125-.125v.375s.125 0 .25-.125h.5c.125 0 .313.125.313.125.125 0 .125.188.25.188H22c.125 0 .125.125.125.125h.25v-.125h.188c.125.125.125.125.25.125v-.125c0-.188 0-.188-.125-.313s-.313-.125-.438-.25v-.125c.125 0 .313 0 .438.125s.25.125.25.125l.125-.125h.125l.438-.25h-.188c-.125 0-.25 0-.25-.125-.125-.188-.25-.188-.375-.313 0 0-.25.125-.25 0v-.25c0-.125 0-.125-.188-.25l-.625-.125h7.563zM19.875 8.375c0-.125-.125.313 0 .438 0 .125 0 .125-.125.25h-.125s-.188-.125-.188-.25v-.125c0-.125 0-.313-.125-.313h-.125c-.125 0-.125.188-.25.313v.625c-.125 0-.25-.125-.25-.375v-.125-.438c.125-.125.25-.125.375-.25.125 0 .375.125.375.125h.438c.125.125.25.313.25.438-.125 0-.25-.125-.25-.313zm.375.438c.313-.125.438-.125.563-.125.125.125-.125.125-.125.25-.125 0-.125.125-.313.125l-.25.125H20v.125c-.125.125-.25.125-.25.125l.25-.125v-.125zM19.063 8h-.375s-.125 0-.125-.125c-.188 0-.313 0-.313.125H18v-.125l.25-.125c.125-.125.313-.313.563-.313.125.188.25.313.375.313 0 0 0 .25-.125.25z"}))};t.default=u},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},8297:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("d7bc")),a=u(n("ab5b")),o=n("4578"),i=n("8704"),l=c(n("1feb"));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=function(e){v(n,e);var t=y(n);function n(e){var r;return p(this,n),r=t.call(this,e),r.state={expanded:r.props.group===r.props.selectedGroup},r.toggleExpanded=r.toggleExpanded.bind(b(r)),r.onChangeGroup=r.onChangeGroup.bind(b(r)),r.renderSubItem=r.renderSubItem.bind(b(r)),r}return h(n,[{key:"toggleExpanded",value:function(){this.setState({expanded:!this.state.expanded})}},{key:"onChangeGroup",value:function(e){this.props.onChangeGroup(this.props.group,e)}},{key:"renderSubItem",value:function(e,t){var n=this,r=this.props.selectedPanel===e&&this.props.group===this.props.selectedGroup;return a.default.createElement(l.default,{key:"subitem-"+t,active:r,onClick:function(){return n.onChangeGroup(e)},label:e})}},{key:"render",value:function(){var e=this.props,t=e.group,n=e.panels,r=e.selectedGroup,l=this.state.expanded;return a.default.createElement("div",{className:(0,o.bem)("sidebar__group",[l?"is-expanded":"",r===t?"is-active":""])},a.default.createElement("div",{onClick:this.toggleExpanded,className:(0,o.bem)("sidebar__group","title")},a.default.createElement("div",{className:(0,o.bem)("sidebar__group","title__icon")},a.default.createElement(i.AngleRightIcon,null)),a.default.createElement("div",{className:(0,o.bem)("sidebar__group","title__label")},t)),l&&n.map(this.renderSubItem))}}]),n}(a.Component);t.default=w,w.propTypes={group:r.default.string,onChangeGroup:r.default.func,panels:r.default.array,selectedGroup:r.default.string,selectedPanel:r.default.string}},8365:function(e,t,n){"use strict";var r=n("6e58"),a=n("70e1").utcFormat,o=n("19b2"),i=n("7e6f"),l=i.FP_SAFE,s=i.BADNUM,u=e.exports={};u.nestedProperty=n("10b4"),u.keyedContainer=n("9252"),u.relativeAttr=n("ae3c"),u.isPlainObject=n("ba7e"),u.toLogRange=n("56ff"),u.relinkPrivateKeys=n("f6da");var c=n("d560");u.isTypedArray=c.isTypedArray,u.isArrayOrTypedArray=c.isArrayOrTypedArray,u.isArray1D=c.isArray1D,u.ensureArray=c.ensureArray,u.concat=c.concat,u.maxRowLength=c.maxRowLength,u.minRowLength=c.minRowLength;var f=n("7795");u.mod=f.mod,u.modHalf=f.modHalf;var p=n("aeba");u.valObjectMeta=p.valObjectMeta,u.coerce=p.coerce,u.coerce2=p.coerce2,u.coerceFont=p.coerceFont,u.coerceHoverinfo=p.coerceHoverinfo,u.coerceSelectionMarkerOpacity=p.coerceSelectionMarkerOpacity,u.validate=p.validate;var d=n("b51c");u.dateTime2ms=d.dateTime2ms,u.isDateTime=d.isDateTime,u.ms2DateTime=d.ms2DateTime,u.ms2DateTimeLocal=d.ms2DateTimeLocal,u.cleanDate=d.cleanDate,u.isJSDate=d.isJSDate,u.formatDate=d.formatDate,u.incrementMonth=d.incrementMonth,u.dateTick0=d.dateTick0,u.dfltRange=d.dfltRange,u.findExactDates=d.findExactDates,u.MIN_MS=d.MIN_MS,u.MAX_MS=d.MAX_MS;var h=n("0644");u.findBin=h.findBin,u.sorterAsc=h.sorterAsc,u.sorterDes=h.sorterDes,u.distinctVals=h.distinctVals,u.roundUp=h.roundUp,u.sort=h.sort,u.findIndexOfMin=h.findIndexOfMin;var v=n("1a8c1");u.aggNums=v.aggNums,u.len=v.len,u.mean=v.mean,u.median=v.median,u.midRange=v.midRange,u.variance=v.variance,u.stdev=v.stdev,u.interp=v.interp;var m=n("55f8");u.init2dArray=m.init2dArray,u.transposeRagged=m.transposeRagged,u.dot=m.dot,u.translationMatrix=m.translationMatrix,u.rotationMatrix=m.rotationMatrix,u.rotationXYMatrix=m.rotationXYMatrix,u.apply2DTransform=m.apply2DTransform,u.apply2DTransform2=m.apply2DTransform2;var y=n("0f3d");u.deg2rad=y.deg2rad,u.rad2deg=y.rad2deg,u.angleDelta=y.angleDelta,u.angleDist=y.angleDist,u.isFullCircle=y.isFullCircle,u.isAngleInsideSector=y.isAngleInsideSector,u.isPtInsideSector=y.isPtInsideSector,u.pathArc=y.pathArc,u.pathSector=y.pathSector,u.pathAnnulus=y.pathAnnulus;var g=n("5944");u.isLeftAnchor=g.isLeftAnchor,u.isCenterAnchor=g.isCenterAnchor,u.isRightAnchor=g.isRightAnchor,u.isTopAnchor=g.isTopAnchor,u.isMiddleAnchor=g.isMiddleAnchor,u.isBottomAnchor=g.isBottomAnchor;var b=n("9a64");u.segmentsIntersect=b.segmentsIntersect,u.segmentDistance=b.segmentDistance,u.getTextLocation=b.getTextLocation,u.clearLocationCache=b.clearLocationCache,u.getVisibleSegment=b.getVisibleSegment,u.findPointOnPath=b.findPointOnPath;var x=n("5940");u.extendFlat=x.extendFlat,u.extendDeep=x.extendDeep,u.extendDeepAll=x.extendDeepAll,u.extendDeepNoArrays=x.extendDeepNoArrays;var _=n("f6a4");u.log=_.log,u.warn=_.warn,u.error=_.error;var w=n("23f7");u.counterRegex=w.counter;var k=n("cbb3");u.throttle=k.throttle,u.throttleDone=k.done,u.clearThrottle=k.clear;var T=n("551e");function E(e){var t={};for(var n in e)for(var r=e[n],a=0;a<r.length;a++)t[r[a]]=+n;return t}u.getGraphDiv=T.getGraphDiv,u.isPlotDiv=T.isPlotDiv,u.removeElement=T.removeElement,u.addStyleRule=T.addStyleRule,u.addRelatedStyleRule=T.addRelatedStyleRule,u.deleteRelatedStyleRule=T.deleteRelatedStyleRule,u.clearResponsive=n("ffd8"),u.makeTraceGroups=n("940f"),u._=n("2291"),u.notifier=n("9da7"),u.filterUnique=n("54d8"),u.filterVisible=n("64ed"),u.pushUnique=n("7ec4"),u.increment=n("e61d"),u.cleanNumber=n("7730"),u.ensureNumber=function(e){return o(e)?(e=Number(e),e<-l||e>l?s:o(e)?Number(e):s):s},u.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&(o(e)&&e>=0&&e%1===0)},u.noop=n("be45"),u.identity=n("1d16"),u.repeat=function(e,t){for(var n=new Array(t),r=0;r<t;r++)n[r]=e;return n},u.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var a=0;a<t.length;a++){var o=t[a],i=u.nestedProperty(e,o.replace("?",n)),l=u.nestedProperty(e,o.replace("?",r)),s=i.get();i.set(l.get()),l.set(s)}},u.raiseToTop=function(e){e.parentNode.appendChild(e)},u.cancelTransition=function(e){return e.transition().duration(0)},u.constrain=function(e,t,n){return t>n?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},u.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},u.simpleMap=function(e,t,n,r,a){for(var o=e.length,i=new Array(o),l=0;l<o;l++)i[l]=t(e[l],n,r,a);return i},u.randstr=function e(t,n,r,a){if(r||(r=16),void 0===n&&(n=24),n<=0)return"0";var o,i,l,s=Math.log(Math.pow(2,n))/Math.log(r),c="";for(o=2;s===1/0;o*=2)s=Math.log(Math.pow(2,n/o))/Math.log(r)*o;var f=s-Math.floor(s);for(o=0;o<Math.floor(s);o++)l=Math.floor(Math.random()*r).toString(r),c=l+c;f&&(i=Math.pow(r,f),l=Math.floor(Math.random()*i).toString(r),c=l+c);var p=parseInt(c,r);return t&&t[c]||p!==1/0&&p>=Math.pow(2,n)?a>10?(u.warn("randstr failed uniqueness"),c):e(t,n,r,(a||0)+1):c},u.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},u.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var n,r,a,o,i=e.length,l=2*i,s=2*t-1,u=new Array(s),c=new Array(i);for(n=0;n<s;n++)u[n]=(1-Math.cos(Math.PI*(n+1)/t))/(2*t);for(n=0;n<i;n++){for(o=0,r=0;r<s;r++)a=n+r+1-t,a<-i?a-=l*Math.round(a/l):a>=l&&(a-=l*Math.floor(a/l)),a<0?a=-1-a:a>=i&&(a=l-1-a),o+=e[a]*u[r];c[n]=o}return c},u.syncOrAsync=function(e,t,n){var r,a;function o(){return u.syncOrAsync(e,t,n)}while(e.length)if(a=e.splice(0,1)[0],r=a(t),r&&r.then)return r.then(o).then(void 0,u.promiseError);return n&&n(t)},u.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},u.noneOrAll=function(e,t,n){if(e){var r,a,o=!1,i=!0;for(r=0;r<n.length;r++)a=e[n[r]],void 0!==a&&null!==a?o=!0:i=!1;if(o&&!i)for(r=0;r<n.length;r++)e[n[r]]=t[n[r]]}},u.mergeArray=function(e,t,n,r){var a="function"===typeof r;if(u.isArrayOrTypedArray(e))for(var o=Math.min(e.length,t.length),i=0;i<o;i++){var l=e[i];t[i][n]=a?r(l):l}},u.mergeArrayCastPositive=function(e,t,n){return u.mergeArray(e,t,n,(function(e){var t=+e;return isFinite(t)&&t>0?t:0}))},u.fillArray=function(e,t,n,r){if(r=r||u.identity,u.isArrayOrTypedArray(e))for(var a=0;a<t.length;a++)t[a][n]=r(e[a])},u.castOption=function(e,t,n,r){r=r||u.identity;var a=u.nestedProperty(e,n).get();return u.isArrayOrTypedArray(a)?Array.isArray(t)&&u.isArrayOrTypedArray(a[t[0]])?r(a[t[0]][t[1]]):r(a[t]):a},u.extractOption=function(e,t,n,r){if(n in e)return e[n];var a=u.nestedProperty(t,r).get();return Array.isArray(a)?void 0:a},u.tagSelected=function(e,t,n){var r,a=t.selectedpoints,o=t._indexToPoints;function i(t){return void 0!==t&&t<e.length}o&&(r=E(o));for(var l=0;l<a.length;l++){var s=a[l];if(u.isIndex(s)||u.isArrayOrTypedArray(s)&&u.isIndex(s[0])&&u.isIndex(s[1])){var c=r?r[s]:s,f=n?n[c]:c;i(f)&&(e[f].selected=1)}}},u.selIndices2selPoints=function(e){var t=e.selectedpoints,n=e._indexToPoints;if(n){for(var r=E(n),a=[],o=0;o<t.length;o++){var i=t[o];if(u.isIndex(i)){var l=r[i];u.isIndex(l)&&a.push(l)}}return a}return t},u.getTargetArray=function(e,t){var n=t.target;if("string"===typeof n&&n){var r=u.nestedProperty(e,n).get();return!!Array.isArray(r)&&r}return!!Array.isArray(n)&&n},u.minExtend=function(e,t){var n={};"object"!==typeof t&&(t={});var r,a,o,i=3,l=Object.keys(e);for(r=0;r<l.length;r++)a=l[r],o=e[a],"_"!==a.charAt(0)&&"function"!==typeof o&&("module"===a?n[a]=o:Array.isArray(o)?n[a]="colorscale"===a?o.slice():o.slice(0,i):u.isTypedArray(o)?n[a]=o.subarray(0,i):n[a]=o&&"object"===typeof o?u.minExtend(e[a],t[a]):o);for(l=Object.keys(t),r=0;r<l.length;r++)a=l[r],o=t[a],"object"===typeof o&&a in n&&"object"===typeof n[a]||(n[a]=o);return n},u.titleCase=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},u.containsAny=function(e,t){for(var n=0;n<t.length;n++)if(-1!==e.indexOf(t[n]))return!0;return!1},u.isIE=function(){return"undefined"!==typeof window.navigator.msSaveBlob};var O=/MSIE [1-9]\./;u.isIE9orBelow=function(){return u.isIE()&&O.test(window.navigator.userAgent)};var M=/Version\/[\d\.]+.*Safari/;u.isSafari=function(){return M.test(window.navigator.userAgent)};var S=/iPad|iPhone|iPod/;u.isIOS=function(){return S.test(window.navigator.userAgent)},u.isD3Selection=function(e){return e&&"function"===typeof e.classed},u.ensureSingle=function(e,t,n,r){var a=e.select(t+(n?"."+n:""));if(a.size())return a;var o=e.append(t);return n&&o.classed(n,!0),r&&o.call(r),o},u.ensureSingleById=function(e,t,n,r){var a=e.select(t+"#"+n);if(a.size())return a;var o=e.append(t).attr("id",n);return r&&o.call(r),o},u.objectFromPath=function(e,t){for(var n,r=e.split("."),a=n={},o=0;o<r.length;o++){var i=r[o],l=null,s=r[o].match(/(.*)\[([0-9]+)\]/);s?(i=s[1],l=s[2],n=n[i]=[],o===r.length-1?n[l]=t:n[l]={},n=n[l]):(o===r.length-1?n[i]=t:n[i]={},n=n[i])}return a};var C=/^([^\[\.]+)\.(.+)?/,A=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;u.expandObjectPaths=function(e){var t,n,r,a,o,i,l;if("object"===typeof e&&!Array.isArray(e))for(n in e)e.hasOwnProperty(n)&&((t=n.match(C))?(a=e[n],r=t[1],delete e[n],e[r]=u.extendDeepNoArrays(e[r]||{},u.objectFromPath(n,u.expandObjectPaths(a))[r])):(t=n.match(A))?(a=e[n],r=t[1],o=parseInt(t[2]),delete e[n],e[r]=e[r]||[],"."===t[3]?(l=t[4],i=e[r][o]=e[r][o]||{},u.extendDeepNoArrays(i,u.objectFromPath(l,u.expandObjectPaths(a)))):e[r][o]=u.expandObjectPaths(a)):e[n]=u.expandObjectPaths(e[n]));return e},u.numSeparate=function(e,t,n){if(n||(n=!1),"string"!==typeof t||0===t.length)throw new Error("Separator string required for formatting!");"number"===typeof e&&(e=String(e));var r=/(\d+)(\d{3})/,a=t.charAt(0),o=t.charAt(1),i=e.split("."),l=i[0],s=i.length>1?a+i[1]:"";if(o&&(i.length>1||l.length>4||n))while(r.test(l))l=l.replace(r,"$1"+o+"$2");return l+s},u.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var P=/^\w*$/;u.templateString=function(e,t){var n={};return e.replace(u.TEMPLATE_STRING_REGEX,(function(e,r){var a;return P.test(r)?a=t[r]:(n[r]=n[r]||u.nestedProperty(t,r).get,a=n[r]()),u.isValidTextValue(a)?a:""}))};var L={max:10,count:0,name:"hovertemplate"};u.hovertemplateString=function(){return I.apply(L,arguments)};var D={max:10,count:0,name:"texttemplate"};u.texttemplateString=function(){return I.apply(D,arguments)};var j=/^[:|\|]/;function I(e,t,n){var o=this,i=arguments;t||(t={});var l={};return e.replace(u.TEMPLATE_STRING_REGEX,(function(e,s,c){var f,p,d,h;for(d=3;d<i.length;d++)if(f=i[d],f){if(f.hasOwnProperty(s)){p=f[s];break}if(P.test(s)||(p=l[s]||u.nestedProperty(f,s).get(),p&&(l[s]=p)),void 0!==p)break}if(void 0===p&&o)return o.count<o.max&&(u.warn("Variable '"+s+"' in "+o.name+" could not be found!"),p=e),o.count===o.max&&u.warn("Too many "+o.name+" warnings - additional warnings will be suppressed"),o.count++,e;if(c){if(":"===c[0]&&(h=n?n.numberFormat:r.format,p=h(c.replace(j,""))(p)),"|"===c[0]){h=n?n.timeFormat:a;var v=u.dateTime2ms(p);p=u.formatDate(v,c.replace(j,""),!1,h)}}else t.hasOwnProperty(s+"Label")&&(p=t[s+"Label"]);return p}))}var R=48,z=57;u.subplotSort=function(e,t){for(var n=Math.min(e.length,t.length)+1,r=0,a=0,o=0;o<n;o++){var i=e.charCodeAt(o)||0,l=t.charCodeAt(o)||0,s=i>=R&&i<=z,u=l>=R&&l<=z;if(s&&(r=10*r+i-R),u&&(a=10*a+l-R),!s||!u){if(r!==a)return r-a;if(i!==l)return i-l}}return a-r};var N=2e9;u.seedPseudoRandom=function(){N=2e9},u.pseudoRandom=function(){var e=N;return N=(69069*N+1)%4294967296,Math.abs(N-e)<429496729?u.pseudoRandom():N/4294967296},u.fillText=function(e,t,n){var r=Array.isArray(n)?function(e){n.push(e)}:function(e){n.text=e},a=u.extractOption(e,t,"htx","hovertext");if(u.isValidTextValue(a))return r(a);var o=u.extractOption(e,t,"tx","text");return u.isValidTextValue(o)?r(o):void 0},u.isValidTextValue=function(e){return e||0===e},u.formatPercent=function(e,t){t=t||0;for(var n=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",r=0;r<t;r++)-1!==n.indexOf(".")&&(n=n.replace("0%","%"),n=n.replace(".%","%"));return n},u.isHidden=function(e){var t=window.getComputedStyle(e).display;return!t||"none"===t},u.getTextTransform=function(e){var t=e.noCenter,n=e.textX,r=e.textY,a=e.targetX,o=e.targetY,i=e.anchorX||0,l=e.anchorY||0,s=e.rotate,u=e.scale;return u?u>1&&(u=1):u=0,"translate("+(a-u*(n+i))+","+(o-u*(r+l))+")"+(u<1?"scale("+u+")":"")+(s?"rotate("+s+(t?"":" "+n+" "+r)+")":"")},u.ensureUniformFontSize=function(e,t){var n=u.extendFlat({},t);return n.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),n}},8370:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n("5174")),a=p(n("d7bc")),o=f(n("ab5b")),i=p(n("36cc")),l=p(n("10b4")),s=n("4578"),u=n("e419");function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function p(e){return e&&e.__esModule?e:{default:e}}function d(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e){return m="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},m(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 b(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function x(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&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=E();return function(){var n,r=O(e);if(t){var a=O(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==m(t)&&"function"!==typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(){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}}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var M=[{value:"circle",label:"M5,0A5,5 0 1,1 0,-5A5,5 0 0,1 5,0Z",threeD:!0,gl:!0},{value:"circle-open",label:"M5,0A5,5 0 1,1 0,-5A5,5 0 0,1 5,0Z",fill:"none",threeD:!0,gl:!0},{value:"circle-open-dot",label:"M5,0A5,5 0 1,1 0,-5A5,5 0 0,1 5,0ZM0,0.5L0.5,0L0,-0.5L-0.5,0Z",fill:"none"},{value:"square",label:"M5,5H-5V-5H5Z",threeD:!0,gl:!0},{value:"square-open",label:"M5,5H-5V-5H5Z",fill:"none",threeD:!0,gl:!0},{value:"square-open-dot",label:"M5,5H-5V-5H5ZM0,0.5L0.5,0L0,-0.5L-0.5,0Z",fill:"none"},{value:"diamond",label:"M6.5,0L0,6.5L-6.5,0L0,-6.5Z",threeD:!0,gl:!0},{value:"diamond-open",label:"M6.5,0L0,6.5L-6.5,0L0,-6.5Z",fill:"none",threeD:!0,gl:!0},{value:"diamond-open-dot",label:"M6.5,0L0,6.5L-6.5,0L0,-6.5ZM0,0.5L0.5,0L0,-0.5L-0.5,0Z",fill:"none"},{value:"cross",label:"M6,2H2V6H-2V2H-6V-2H-2V-6H2V-2H6Z",threeD:!0,gl:!0},{value:"cross-open",label:"M6,2H2V6H-2V2H-6V-2H-2V-6H2V-2H6Z",fill:"none",gl:!0},{value:"x",label:"M0,2.83l2.83,2.83l2.83,-2.83l-2.83,-2.83l2.83,-2.83l-2.83,-2.83l-2.83,2.83l-2.83,-2.83l-2.83,2.83l2.83,2.83l-2.83,2.83l2.83,2.83Z",threeD:!0,gl:!0},{value:"x-open",label:"M0,2.83l2.83,2.83l2.83,-2.83l-2.83,-2.83l2.83,-2.83l-2.83,-2.83l-2.83,2.83l-2.83,-2.83l-2.83,2.83l2.83,2.83l-2.83,2.83l2.83,2.83Z",fill:"none",gl:!0},{value:"triangle-up",label:"M-5.77,2.5H5.77L0,-5Z",gl:!0},{value:"triangle-up-open",label:"M-5.77,2.5H5.77L0,-5Z",fill:"none",gl:!0},{value:"triangle-down",label:"M-5.77,-2.5H5.77L0,5Z",gl:!0},{value:"triangle-down-open",label:"M-5.77,-2.5H5.77L0,5Z",fill:"none",gl:!0},{value:"triangle-left",label:"M2.5,-5.77V5.77L-5,0Z",gl:!0},{value:"triangle-left-open",label:"M2.5,-5.77V5.77L-5,0Z",fill:"none",gl:!0},{value:"triangle-right",label:"M-2.5,-5.77V5.77L5,0Z",gl:!0},{value:"triangle-right-open",label:"M-2.5,-5.77V5.77L5,0Z",fill:"none",gl:!0},{value:"triangle-ne",label:"M-6,-3H3V6Z",gl:!0},{value:"triangle-ne-open",label:"M-6,-3H3V6Z",fill:"none",gl:!0},{value:"triangle-se",label:"M3,-6V3H-6Z",gl:!0},{value:"triangle-se-open",label:"M3,-6V3H-6Z",fill:"none",gl:!0},{value:"triangle-sw",label:"M6,3H-3V-6Z",gl:!0},{value:"triangle-sw-open",label:"M6,3H-3V-6Z",fill:"none",gl:!0},{value:"triangle-nw",label:"M-3,6V-3H6Z",gl:!0},{value:"triangle-nw-open",label:"M-3,6V-3H6Z",fill:"none",gl:!0},{value:"pentagon",label:"M4.76,-1.54L2.94,4.05H-2.94L-4.76,-1.54L0,-5Z",gl:!0},{value:"pentagon-open",label:"M4.76,-1.54L2.94,4.05H-2.94L-4.76,-1.54L0,-5Z",fill:"none",gl:!0},{value:"hexagon",label:"M4.33,-2.5V2.5L0,5L-4.33,2.5V-2.5L0,-5Z",gl:!0},{value:"hexagon-open",label:"M4.33,-2.5V2.5L0,5L-4.33,2.5V-2.5L0,-5Z",fill:"none",gl:!0},{value:"hexagon2",label:"M-2.5,4.33H2.5L5,0L2.5,-4.33H-2.5L-5,0Z",gl:!0},{value:"hexagon2-open",label:"M-2.5,4.33H2.5L5,0L2.5,-4.33H-2.5L-5,0Z",fill:"none",gl:!0},{value:"octagon",label:"M-1.92,-4.62H1.92L4.62,-1.92V1.92L1.92,4.62H-1.92L-4.62,1.92V-1.92Z"},{value:"octagon-open",label:"M-1.92,-4.62H1.92L4.62,-1.92V1.92L1.92,4.62H-1.92L-4.62,1.92V-1.92Z",fill:"none"},{value:"star",label:"M1.58,-2.16H6.66L2.54,0.83L4.12,5.66L0,2.67L-4.12,5.66L-2.54,0.83L-6.66,-2.16H-1.58L0,-7Z",gl:!0},{value:"star-open",alias:17,label:"M1.58,-2.16H6.66L2.54,0.83L4.12,5.66L0,2.67L-4.12,5.66L-2.54,0.83L-6.66,-2.16H-1.58L0,-7Z",fill:"none",gl:!0},{value:"hexagram",label:"M-3.8,0l-1.9,-3.3h3.8l1.9,-3.3l1.9,3.3h3.8l-1.9,3.3l1.9,3.3h-3.8l-1.9,3.3l-1.9,-3.3h-3.8Z"},{value:"hexagram-open",label:"M-3.8,0l-1.9,-3.3h3.8l1.9,-3.3l1.9,3.3h3.8l-1.9,3.3l1.9,3.3h-3.8l-1.9,3.3l-1.9,-3.3h-3.8Z",fill:"none"},{value:"star-triangle-up",label:"M-6.93,4A 20,20 0 0 1 6.93,4A 20,20 0 0 1 0,-8A 20,20 0 0 1 -6.93,4Z"},{value:"star-triangle-up-open",label:"M-6.93,4A 20,20 0 0 1 6.93,4A 20,20 0 0 1 0,-8A 20,20 0 0 1 -6.93,4Z",fill:"none"},{value:"star-triangle-down",label:"M6.93,-4A 20,20 0 0 1 -6.93,-4A 20,20 0 0 1 0,8A 20,20 0 0 1 6.93,-4Z"},{value:"star-triangle-down-open",label:"M6.93,-4A 20,20 0 0 1 -6.93,-4A 20,20 0 0 1 0,8A 20,20 0 0 1 6.93,-4Z",fill:"none"},{value:"star-square",label:"M-5.5,-5.5A 10,10 0 0 1 -5.5,5.5A 10,10 0 0 1 5.5,5.5A 10,10 0 0 1 5.5,-5.5A 10,10 0 0 1 -5.5,-5.5Z"},{value:"star-square-open",label:"M-5.5,-5.5A 10,10 0 0 1 -5.5,5.5A 10,10 0 0 1 5.5,5.5A 10,10 0 0 1 5.5,-5.5A 10,10 0 0 1 -5.5,-5.5Z",fill:"none"},{value:"star-diamond",label:"M-7,0A 9.5,9.5 0 0 1 0,7A 9.5,9.5 0 0 1 7,0A 9.5,9.5 0 0 1 0,-7A 9.5,9.5 0 0 1 -7,0Z"},{value:"star-diamond-open",label:"M-7,0A 9.5,9.5 0 0 1 0,7A 9.5,9.5 0 0 1 7,0A 9.5,9.5 0 0 1 0,-7A 9.5,9.5 0 0 1 -7,0Z",fill:"none"},{value:"diamond-tall",label:"M0,7L3.5,0L0,-7L-3.5,0Z",gl:!0},{value:"diamond-tall-open",label:"M0,7L3.5,0L0,-7L-3.5,0Z",fill:"none",gl:!0},{value:"diamond-wide",label:"M0,3.5L7,0L0,-3.5L-7,0Z"},{value:"diamond-wide-open",label:"M0,3.5L7,0L0,-3.5L-7,0Z",fill:"none"},{value:"hourglass",label:"M5,5H-5L5,-5H-5Z"},{value:"bowtie",label:"M5,5V-5L-5,5V-5Z",gl:!0},{value:"cross-thin-open",label:"M0,7V-7M7,0H-7",fill:"none",gl:!0},{value:"x-thin-open",label:"M5,5L-5,-5M5,-5L-5,5",fill:"none"},{value:"asterisk-open",label:"M0,6V-6M6,0H-6M4.25,4.25L-4.25,-4.25M4.25,-4.25L-4.25,4.25",fill:"none",gl:!0},{value:"hash-open",label:"M2.5,5V-5m-5,0V5M5,2.5H-5m0,-5H5",fill:"none"},{value:"hash-open-dot",label:"M2.5,5V-5m-5,0V5M5,2.5H-5m0,-5H5M0,0.5L0.5,0L0,-0.5L-0.5,0Z",fill:"none"},{value:"y-up-open",label:"M-6,4L0,0M6,4L0,0M0,-8L0,0",fill:"none",gl:!0},{value:"y-down-open",label:"M-6,-4L0,0M6,-4L0,0M0,8L0,0",fill:"none",gl:!0},{value:"y-left-open",label:"M4,6L0,0M4,-6L0,0M-8,0L0,0",fill:"none"},{value:"y-right-open",label:"M-4,6L0,0M-4,-6L0,0M8,0L0,0",fill:"none"},{value:"line-ew-open",label:"M7,0H-7",fill:"none",gl:!0},{value:"line-ns-open",label:"M0,7V-7",fill:"none",gl:!0},{value:"line-ne-open",label:"M5,-5L-5,5",fill:"none"},{value:"line-nw-open",label:"M5,5L-5,-5",fill:"none"}],S=function(e){x(n,e);var t=w(n);function n(e,r){var a;return y(this,n),a=t.call(this,e,r),a.setLocals(e,r),a}return b(n,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.fullContainer,r=t.defaultContainer;this.markerColor=(0,l.default)(n,"marker.color").get(),this.borderWidth=(0,l.default)(n,"marker.line.width").get(),this.markerColor===u.MULTI_VALUED&&(this.markerColor=(0,l.default)(r,"marker.color").get()),this.markerColor=Array.isArray(this.markerColor)?u.COLORS.mutedBlue:this.markerColor,this.borderColor=this.markerColor,this.borderWidth&&(this.borderColor=(0,l.default)(n,"marker.line.color").get(),this.borderColor===u.MULTI_VALUED&&(this.borderColor=(0,l.default)(r,"marker.line.color").get())),this.borderColor=Array.isArray(this.borderColor)?u.COLORS.charcoal:this.borderColor,this.symbolOptions="scatter3d"===this.props.container.type?M.filter((function(e){return e.threeD})):[].concat(M)}},{key:"render",value:function(){var e=this.props,t=e.fullValue,n=e.updatePlot;return o.default.createElement(r.default,this.props,o.default.createElement(i.default,{markerColor:this.markerColor,borderColor:this.borderColor,value:t,onChange:n,symbolOptions:this.symbolOptions,backgroundDark:(0,s.tooLight)(this.markerColor)}))}}]),n}(o.Component);S.propTypes=h({defaultValue:a.default.string,fullValue:a.default.any,updatePlot:a.default.func},r.default.propTypes),S.contextTypes={defaultContainer:a.default.object},S.defaultProps={showArrows:!0};var C=(0,s.connectToContainer)(S);t.default=C},"839c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=x;var r=s(n("ab5b")),a=i(n("d7bc")),o=n("4578");function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function x(e){var t=function(t){d(a,t);var n=v(a);function a(e,t){var r;return c(this,a),r=n.call(this,e,t),r.updateAggregation=r.updateAggregation.bind(y(r)),r.setLocals(e,t),r}return p(a,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.aggregationIndex,r=t.container,a=t.fullContainer,o=r&&r.aggregations||[],i=a.aggregations||[];this.container=o[n],this.fullContainer=i[n]}},{key:"getChildContext",value:function(){var e=this;return{getValObject:function(t){return e.context.getValObject?e.context.getValObject("aggregations[].".concat(t)):null},updateContainer:this.updateAggregation,container:this.container,fullContainer:this.fullContainer}}},{key:"updateAggregation",value:function(e){var t={},n="aggregations[".concat(this.props.aggregationIndex,"]");for(var r in e)t["".concat(n,".").concat(r)]=e[r];t["".concat(n,".target")]=this.fullContainer.target,t["".concat(n,".enabled")]=!0,this.context.updateContainer(t)}},{key:"render",value:function(){return r.default.createElement(e,this.props)}}]),a}(r.Component);t.displayName="AggregationConnected".concat((0,o.getDisplayName)(e)),t.propTypes={aggregationIndex:a.default.number.isRequired},t.contextTypes={container:a.default.object,fullContainer:a.default.object,data:a.default.array,onUpdate:a.default.func,updateContainer:a.default.func,getValObject:a.default.func},t.childContextTypes={updateContainer:a.default.func,deleteContainer:a.default.func,container:a.default.object,fullContainer:a.default.object,getValObject:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83c2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M7 28h6v12H7z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M32 28h6v12h-6zM15 10h6v30h-6z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M24 20h6v20h-6z"}))};t.default=u},8418:function(e,t,n){"use strict";var r=n("c04e"),a=n("9bf2"),o=n("5c6c");e.exports=function(e,t,n){var i=r(t);i in e?a.f(e,i,o(0,n)):e[i]=n}},"84a3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("g",{fill:"none"},o.default.createElement("path",{d:"M0 0h46v46H0z"}),o.default.createElement("path",{stroke:"#25fdfc",d:"M23.511 23.571l.005-15.302L37 14.295v15.75l-13.489-6.474z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{stroke:"#25fdfc",d:"M23.511 23.571L9.516 30.045l13.929 6.319L37 30.045l-13.489-6.474z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{stroke:"#25fdfc",d:"M9.516 30.045v-15.75l13.999-6.026-.004 15.302-13.995 6.474z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{d:"M31.536 15.247a6.357 6.357 0 0 1-4.188 6.763c-5.017 2.166-11.255.028-11.255-3.14s5.11-3.87 7.48-3.87 7.48 1.908 7.48 5.684c0 3.654-3.797 5.485-8.216 5.566s-6.744-2.266-6.744-4.104 2.786-3.986 7.458-3.986 7.492 3.526 7.492 5.934a5.722 5.722 0 0 1-2.82 5.074",stroke:"#1d9bfb",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})))};t.default=u},"84ca":function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=n("24f7"),o=a.Record,i={anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1},l=o(i),s=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},n.getAnchorKey=function(){return this.get("anchorKey")},n.getAnchorOffset=function(){return this.get("anchorOffset")},n.getFocusKey=function(){return this.get("focusKey")},n.getFocusOffset=function(){return this.get("focusOffset")},n.getIsBackward=function(){return this.get("isBackward")},n.getHasFocus=function(){return this.get("hasFocus")},n.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),a=this.getFocusKey();if(r===a&&r===e){var o=this.getStartOffset(),i=this.getEndOffset();return t<=o&&o<=n||t<=i&&i<=n}if(e!==r&&e!==a)return!1;var l=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=l&&n>=l},n.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},n.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},n.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},n.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},n.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}(l);e.exports=s},8550:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M1.313 32h4c.75 0 1.375-.625 1.375-1.313V19.999c0-.75-.625-1.313-1.375-1.313h-4A1.32 1.32 0 0 0 0 19.999v10.688C0 31.375.625 32 1.313 32zm1.375-2.687v-8h1.313v8zM20 6.688h10.688c.688 0 1.313-.625 1.313-1.375v-4C32.001.625 31.376 0 30.688 0H20a1.32 1.32 0 0 0-1.313 1.313v4c0 .75.563 1.375 1.313 1.375zm1.313-4h8v1.313h-8zM20 5.313v9c0 3.75-1.938 5.688-5.5 5.688H5.312c-.688 0-1.313.625-1.313 1.313v8c0 .75.625 1.375 1.313 1.375H14.5c8.75 0 16.188-7.563 16.188-16.375v-9c0-.688-.625-1.313-1.375-1.313h-8c-.688 0-1.313.625-1.313 1.313zm2.688 1.375h5.313v7.625c0 7.375-6.188 13.688-13.5 13.688H6.688v-5.313h7.813c5 0 8.188-3.125 8.188-8.375z"}))};t.default=u},"859e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("circle",{cx:"13",cy:"32",r:"3",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"21",cy:"27",r:"3",fill:"#25fdfc"}),o.default.createElement("circle",{cx:"23",cy:"18",r:"3",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"32",cy:"24",r:"3",fill:"#25fdfc"}),o.default.createElement("circle",{cx:"32",cy:"11",r:"3",fill:"#25fdfc"}))};t.default=u},"85e3":function(e,t){function n(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.exports=n},8604:function(e,t,n){var r=n("26e8"),a=n("e2c0");function o(e,t){return null!=e&&a(e,t,r)}e.exports=o},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8621:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M23 6l17 32H6L23 6z"}),o.default.createElement("circle",{cx:"19",cy:"22",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"23",cy:"17",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"23",cy:"30",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"27",cy:"26",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"17",cy:"35",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"28",cy:"34",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"11",cy:"35",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"32",cy:"30",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"23",cy:"12",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"35",cy:"35",r:"2",fill:"#1d9bfb"}))};t.default=u},8685:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M0 9.313h4v3.438H2v4h2v3.25H0v4h12v-4H8v-3.25h1.938v-4H8V9.313h4v-4H0zM32 12V8H20v4h4v3.313h-2v4h2v3.375h-4v4h12v-4h-4v-3.375h2v-4h-2V12z"}))};t.default=u},8693:function(e,t,n){"use strict";var r=n("1a7e"),a=r.notEmptyKey;function o(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(n=e.getBlockForKey(r).getEntityAt(a-1),n!==e.getBlockForKey(r).getEntityAt(a)?null:i(e.getEntityMap(),n)):null}var o=t.getStartKey(),l=t.getStartOffset(),s=e.getBlockForKey(o);return n=l===s.getLength()?null:s.getEntityAt(l),i(e.getEntityMap(),n)}function i(e,t){if(a(t)){var n=e.__get(t);return"MUTABLE"===n.getMutability()?t:null}return null}e.exports=o},8704:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WrenchIcon=t.VideoIcon=t.VectorDifferenceIcon=t.VectorDifferenceBaIcon=t.VectorDifferenceAbIcon=t.UploadIcon=t.UploadFileIcon=void 0,t.UnlockIcon=t.TwitterIcon=t.TrashIcon=t.TooltipTextIcon=t.TooltipIcon=t.ThumnailViewIcon=t.ThemeIcon=t.TeamIcon=t.TalkChatMultipleIcon=t.TalkChatIcon=t.TagOutlineIcon=t.TagIcon=t.SuitcaseIcon=t.StarIcon=t.SquareIcon=t.SignOutIcon=t.ShareVariantIcon=t.ShareIcon=t.SearchIcon=t.SaveIcon=t.RotateRightIcon=t.RotateLeftIcon=t.RevisionsIcon=t.ResizeUpIcon=t.ResizeDownIcon=t.ReorderVerticalIcon=t.ReorderHorizontalIcon=t.RefreshIcon=t.RecentIcon=t.QuestionIcon=t.PlusIcon=t.PlotTableIcon=t.PlayIcon=t.PhoneIcon=t.OfficeIcon=t.MinusIcon=t.LockIcon=t.ListViewIcon=t.LinkVariantIcon=t.LinkIcon=t.LinkedInIcon=t.InstagramIcon=t.InboxIcon=t.InboxArrowIcon=t.ImportIcon=t.HeartIcon=t.GridIcon=t.GraphIcon=t.GooglePlusIcon=t.GlobeIcon=t.GitHubIcon=t.FullViewIcon=t.FormatAlignRightIcon=t.FormatAlignLeftIcon=t.FormatAlignCenterIcon=t.FolderOpenIcon=t.FolderIcon=t.FlipToFrontIcon=t.FlipToBackIcon=t.FilterIcon=t.FileMultipleIcon=t.FileIcon=t.FileDocumentIcon=t.FacebookIcon=t.ExternalLinkIcon=t.EnvelopeOutlineIcon=t.EnvelopeIcon=t.EditIcon=t.DownloadIcon=t.CreditCardIcon=t.ContentCopyIcon=t.CollageIcon=t.CollaboratorIcon=t.CogIcon=t.CodeBracesIcon=t.CloudIcon=t.CloseIcon=t.CheckIcon=t.CheckboxMarkedOutlineIcon=t.ChatOutlineIcon=t.ChatIcon=t.ChartLineIcon=t.CarretUpIcon=t.CarretDownIcon=t.CalendarMultiselectIcon=t.BufferIcon=t.BookmarkIcon=t.BellIcon=t.BarsIcon=t.ArrowUpIcon=t.ArrowRightIcon=t.ArrowLeftIcon=t.ArrowDownIcon=t.ArrangeSendBackwardIcon=t.AnimationIcon=t.AngleUpIcon=t.AngleRightIcon=t.AngleLeftIcon=t.AngleDownIcon=t.AccountIcon=void 0;var r=n("d073");Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}})}));var a=n("0ac6"),o=Qn(a),i=n("784e"),l=Qn(i),s=n("579f"),u=Qn(s),c=n("fdb9"),f=Qn(c),p=n("b319"),d=Qn(p),h=n("b830"),v=Qn(h),m=n("073f"),y=Qn(m),g=n("bb12"),b=Qn(g),x=n("340d"),_=Qn(x),w=n("797e"),k=Qn(w),T=n("284c"),E=Qn(T),O=n("0f2e"),M=Qn(O),S=n("f26d"),C=Qn(S),A=n("87e1"),P=Qn(A),L=n("df77"),D=Qn(L),j=n("6cab"),I=Qn(j),R=n("6a79"),z=Qn(R),N=n("ae15"),F=Qn(N),B=n("abda"),V=Qn(B),H=n("0468"),U=Qn(H),W=n("144c"),q=Qn(W),$=n("6f85"),G=Qn($),Y=n("c642"),K=Qn(Y),X=n("b7d6"),Z=Qn(X),J=n("0945"),Q=Qn(J),ee=n("b61a"),te=Qn(ee),ne=n("633c"),re=Qn(ne),ae=n("4978"),oe=Qn(ae),ie=n("543f"),le=Qn(ie),se=n("2351"),ue=Qn(se),ce=n("faf6"),fe=Qn(ce),pe=n("6b79"),de=Qn(pe),he=n("bfc4"),ve=Qn(he),me=n("c342"),ye=Qn(me),ge=n("f60e"),be=Qn(ge),xe=n("039b"),_e=Qn(xe),we=n("a654"),ke=Qn(we),Te=n("9897"),Ee=Qn(Te),Oe=n("9981"),Me=Qn(Oe),Se=n("2bc4"),Ce=Qn(Se),Ae=n("bb68"),Pe=Qn(Ae),Le=n("3b2b"),De=Qn(Le),je=n("8a5b"),Ie=Qn(je),Re=n("e3e3"),ze=Qn(Re),Ne=n("7077"),Fe=Qn(Ne),Be=n("2d47"),Ve=Qn(Be),He=n("be77"),Ue=Qn(He),We=n("b207"),qe=Qn(We),$e=n("b80f"),Ge=Qn($e),Ye=n("0c4d"),Ke=Qn(Ye),Xe=n("7678"),Ze=Qn(Xe),Je=n("bd1c"),Qe=Qn(Je),et=n("6779"),tt=Qn(et),nt=n("a5ba"),rt=Qn(nt),at=n("fbbc"),ot=Qn(at),it=n("4406"),lt=Qn(it),st=n("c799"),ut=Qn(st),ct=n("01a1"),ft=Qn(ct),pt=n("fb14"),dt=Qn(pt),ht=n("64b3"),vt=Qn(ht),mt=n("2517"),yt=Qn(mt),gt=n("b7b8"),bt=Qn(gt),xt=n("c751"),_t=Qn(xt),wt=n("8790"),kt=Qn(wt),Tt=n("c436"),Et=Qn(Tt),Ot=n("0226"),Mt=Qn(Ot),St=n("a05a"),Ct=Qn(St),At=n("d3e8"),Pt=Qn(At),Lt=n("4179"),Dt=Qn(Lt),jt=n("8a5d"),It=Qn(jt),Rt=n("4481"),zt=Qn(Rt),Nt=n("d546"),Ft=Qn(Nt),Bt=n("3d28"),Vt=Qn(Bt),Ht=n("5d7c"),Ut=Qn(Ht),Wt=n("8966"),qt=Qn(Wt),$t=n("fb94"),Gt=Qn($t),Yt=n("5679"),Kt=Qn(Yt),Xt=n("ba9f"),Zt=Qn(Xt),Jt=n("45cb"),Qt=Qn(Jt),en=n("b50d"),tn=Qn(en),nn=n("5be9"),rn=Qn(nn),an=n("bcca"),on=Qn(an),ln=n("d98d"),sn=Qn(ln),un=n("bbce"),cn=Qn(un),fn=n("e762"),pn=Qn(fn),dn=n("1b00"),hn=Qn(dn),vn=n("dc1f"),mn=Qn(vn),yn=n("9cb4"),gn=Qn(yn),bn=n("4d87"),xn=Qn(bn),_n=n("515d"),wn=Qn(_n),kn=n("1330"),Tn=Qn(kn),En=n("6097"),On=Qn(En),Mn=n("69a4"),Sn=Qn(Mn),Cn=n("75f4"),An=Qn(Cn),Pn=n("5d8c"),Ln=Qn(Pn),Dn=n("f6ae"),jn=Qn(Dn),In=n("5dd4"),Rn=Qn(In),zn=n("9403"),Nn=Qn(zn),Fn=n("a3b3"),Bn=Qn(Fn),Vn=n("9f00"),Hn=Qn(Vn),Un=n("5baa"),Wn=Qn(Un),qn=n("8838"),$n=Qn(qn),Gn=n("e9ef"),Yn=Qn(Gn),Kn=n("42a1"),Xn=Qn(Kn),Zn=n("bba6"),Jn=Qn(Zn);function Qn(e){return e&&e.__esModule?e:{default:e}}t.AccountIcon=o.default,t.AngleDownIcon=l.default,t.AngleLeftIcon=u.default,t.AngleRightIcon=f.default,t.AngleUpIcon=d.default,t.AnimationIcon=v.default,t.ArrangeSendBackwardIcon=y.default,t.ArrowDownIcon=b.default,t.ArrowLeftIcon=_.default,t.ArrowRightIcon=k.default,t.ArrowUpIcon=E.default,t.BarsIcon=M.default,t.BellIcon=C.default,t.BookmarkIcon=P.default,t.BufferIcon=D.default,t.CalendarMultiselectIcon=I.default,t.CarretDownIcon=z.default,t.CarretUpIcon=F.default,t.ChartLineIcon=V.default,t.ChatIcon=U.default,t.ChatOutlineIcon=q.default,t.CheckboxMarkedOutlineIcon=G.default,t.CheckIcon=K.default,t.CloseIcon=Z.default,t.CloudIcon=Q.default,t.CodeBracesIcon=te.default,t.CogIcon=re.default,t.CollaboratorIcon=oe.default,t.CollageIcon=le.default,t.ContentCopyIcon=ue.default,t.CreditCardIcon=fe.default,t.DownloadIcon=de.default,t.EditIcon=ve.default,t.EnvelopeIcon=ye.default,t.EnvelopeOutlineIcon=be.default,t.ExternalLinkIcon=_e.default,t.FacebookIcon=ke.default,t.FileDocumentIcon=Ee.default,t.FileIcon=Me.default,t.FileMultipleIcon=Ce.default,t.FilterIcon=Pe.default,t.FlipToBackIcon=De.default,t.FlipToFrontIcon=Ie.default,t.FolderIcon=ze.default,t.FolderOpenIcon=Fe.default,t.FormatAlignCenterIcon=Ve.default,t.FormatAlignLeftIcon=Ue.default,t.FormatAlignRightIcon=qe.default,t.FullViewIcon=Ge.default,t.GitHubIcon=Ke.default,t.GlobeIcon=Ze.default,t.GooglePlusIcon=Qe.default,t.GraphIcon=tt.default,t.GridIcon=rt.default,t.HeartIcon=ot.default,t.ImportIcon=lt.default,t.InboxArrowIcon=ut.default,t.InboxIcon=ft.default,t.InstagramIcon=dt.default,t.LinkedInIcon=vt.default,t.LinkIcon=yt.default,t.LinkVariantIcon=yt.default,t.ListViewIcon=bt.default,t.LockIcon=_t.default,t.MinusIcon=kt.default,t.OfficeIcon=Et.default,t.PhoneIcon=Mt.default,t.PlayIcon=Ct.default,t.PlotTableIcon=Pt.default,t.PlusIcon=Dt.default,t.QuestionIcon=It.default,t.RecentIcon=zt.default,t.RefreshIcon=Ft.default,t.ReorderHorizontalIcon=Vt.default,t.ReorderVerticalIcon=Ut.default,t.ResizeDownIcon=qt.default,t.ResizeUpIcon=Gt.default,t.RevisionsIcon=Kt.default,t.RotateLeftIcon=Zt.default,t.RotateRightIcon=Qt.default,t.SaveIcon=tn.default,t.SearchIcon=rn.default,t.ShareIcon=on.default,t.ShareVariantIcon=sn.default,t.SignOutIcon=cn.default,t.SquareIcon=pn.default,t.StarIcon=hn.default,t.SuitcaseIcon=mn.default,t.TagIcon=gn.default,t.TagOutlineIcon=xn.default,t.TalkChatIcon=U.default,t.TalkChatMultipleIcon=wn.default,t.TeamIcon=Tn.default,t.ThemeIcon=On.default,t.ThumnailViewIcon=Sn.default,t.TooltipIcon=An.default,t.TooltipTextIcon=Ln.default,t.TrashIcon=jn.default,t.TwitterIcon=Rn.default,t.UnlockIcon=Nn.default,t.UploadFileIcon=Bn.default,t.UploadIcon=Hn.default,t.VectorDifferenceAbIcon=Wn.default,t.VectorDifferenceBaIcon=$n.default,t.VectorDifferenceIcon=Yn.default,t.VideoIcon=Xn.default,t.WrenchIcon=Jn.default},8720:function(e,t,n){"use strict";var r=n("0d82");function a(e){var t=e.getSelection();return t.isCollapsed()?null:r(e.getCurrentContent(),t)}e.exports=a},"872a":function(e,t,n){var r=n("3b4a");function a(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}e.exports=a},8766:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M0 0h1.625v32H0zm32 30.375V32H0v-1.625zM3.188 12.813h3.188v16H3.188zM8 11.188h3.188v17.625H8zm4.813 1.625h3.188v16h-3.188zm4.812-3.188h3.188v19.188h-3.188zM22.375 8h3.25v20.813h-3.25zm4.813-3.187h3.188v24h-3.188z"}))};t.default=u},8790:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M19,13H5V11H19V13Z"}))};e.exports=l},"87e1":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M17,3H7C5.9,3 5,3.9 5,5V21L12,18L19,21V5C19,3.89 18.1,3 17,3Z"}))};e.exports=l},"87fd":function(e,t,n){"use strict";var r=n("7f23"),a=n("dec3"),o=n("0984"),i=n("8693"),l=n("4f8d"),s=n("62b9"),u=n("8164"),c=n("78ec"),f="'",p="/",d=o.isBrowser("Firefox");function h(e){return d&&(e==f||e==p)}function v(e,t,n,o,i){var l=r.replaceText(e.getCurrentContent(),e.getSelection(),t,n,o);return a.push(e,l,"insert-characters",i)}function m(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&l(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),f=o.getStartOffset(),p=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(v(n,r,n.getCurrentInlineStyle(),i(n.getCurrentContent(),n.getSelection()),!0));var d=v(n,r,n.getCurrentInlineStyle(),i(n.getCurrentContent(),n.getSelection()),!1),m=!1;if(m||(m=s(e._latestCommittedEditorState)),!m){var y=n.getBlockTree(p),g=d.getBlockTree(p);m=y.size!==g.size||y.zip(g).some((function(e){var t=e[0],n=e[1],a=t.get("start"),o=a+(a>=f?r.length:0),i=t.get("end"),l=i+(i>=f?r.length:0),s=n.get("start"),u=n.get("end"),c=n.get("decoratorKey");return t.get("decoratorKey")!==c||t.get("leaves").size!==n.get("leaves").size||o!==s||l!==u||null!=c&&u-s!==i-a}))}if(m||(m=h(r)),m||(m=u(d.getDirectionMap()).get(p)!==u(n.getDirectionMap()).get(p)),m)return t.preventDefault(),d=a.set(d,{forceSelection:!0}),void e.update(d);d=a.set(d,{nativelyRenderedContent:d.getCurrentContent()}),e._pendingStateFromBeforeInput=d,c((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}}e.exports=m},8832:function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={exports:{},id:r,loaded:!1};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}var a=n(1),o=r(a);e.exports=o.default},function(e,t,n){n(2);var r=n(6)(n(7),n(8),"data-v-82963a40",null);e.exports=r.exports},function(e,t,n){var r=n(3);"string"==typeof r&&(r=[[e.id,r,""]]),n(5)(r,{}),r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(4)(),t.push([e.id,"a[data-v-82963a40]{cursor:pointer}",""])},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},a=0;a<this.length;a++){var o=this[a][0];"number"==typeof o&&(r[o]=!0)}for(a=0;a<t.length;a++){var i=t[a];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],a=f[r.id];if(a){a.refs++;for(var o=0;o<a.parts.length;o++)a.parts[o](r.parts[o]);for(;o<r.parts.length;o++)a.parts.push(s(r.parts[o],t))}else{var i=[];for(o=0;o<r.parts.length;o++)i.push(s(r.parts[o],t));f[r.id]={id:r.id,refs:1,parts:i}}}}function a(e){for(var t=[],n={},r=0;r<e.length;r++){var a=e[r],o=a[0],i=a[1],l=a[2],s=a[3],u={css:i,media:l,sourceMap:s};n[o]?n[o].parts.push(u):t.push(n[o]={id:o,parts:[u]})}return t}function o(e,t){var n=h(),r=y[y.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function i(e){e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function l(e){var t=document.createElement("style");return t.type="text/css",o(e,t),t}function s(e,t){var n,r,a;if(t.singleton){var o=m++;n=v||(v=l(t)),r=u.bind(null,n,o,!1),a=u.bind(null,n,o,!0)}else n=l(t),r=c.bind(null,n),a=function(){i(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else a()}}function u(e,t,n,r){var a=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,a);else{var o=document.createTextNode(a),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(o,i[t]):e.appendChild(o)}}function c(e,t){var n=t.css,r=t.media,a=t.sourceMap;if(r&&e.setAttribute("media",r),a&&(n+="\n/*# sourceURL="+a.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var f={},p=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},d=p((function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())})),h=p((function(){return document.head||document.getElementsByTagName("head")[0]})),v=null,m=0,y=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=d()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=a(e);return r(n,t),function(e){for(var o=[],i=0;i<n.length;i++){var l=n[i],s=f[l.id];s.refs--,o.push(s)}if(e){var u=a(e);r(u,t)}for(i=0;i<o.length;i++){s=o[i];if(0===s.refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete f[s.id]}}}};var g=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e,t,n,r){var a,o=e=e||{},i=typeof e.default;"object"!==i&&"function"!==i||(a=e,o=e.default);var l="function"==typeof o?o.options:o;if(t&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns),n&&(l._scopeId=n),r){var s=l.computed||(l.computed={});Object.keys(r).forEach((function(e){var t=r[e];s[e]=function(){return t}}))}return{esModule:a,exports:o,options:l}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:{value:{type:Number},pageCount:{type:Number,required:!0},forcePage:{type:Number},clickHandler:{type:Function,default:function(){}},pageRange:{type:Number,default:3},marginPages:{type:Number,default:1},prevText:{type:String,default:"Prev"},nextText:{type:String,default:"Next"},breakViewText:{type:String,default:"…"},containerClass:{type:String},pageClass:{type:String},pageLinkClass:{type:String},prevClass:{type:String},prevLinkClass:{type:String},nextClass:{type:String},nextLinkClass:{type:String},breakViewClass:{type:String},breakViewLinkClass:{type:String},activeClass:{type:String,default:"active"},disabledClass:{type:String,default:"disabled"},noLiSurround:{type:Boolean,default:!1},firstLastButton:{type:Boolean,default:!1},firstButtonText:{type:String,default:"First"},lastButtonText:{type:String,default:"Last"},hidePrevNext:{type:Boolean,default:!1}},beforeUpdate:function(){void 0!==this.forcePage&&this.forcePage!==this.selected&&(this.selected=this.forcePage)},computed:{selected:{get:function(){return this.value||this.innerValue},set:function(e){this.innerValue=e}},pages:function(){var e=this,t={};if(this.pageCount<=this.pageRange)for(var n=0;n<this.pageCount;n++){var r={index:n,content:n+1,selected:n===this.selected-1};t[n]=r}else{for(var a=Math.floor(this.pageRange/2),o=function(n){var r={index:n,content:n+1,selected:n===e.selected-1};t[n]=r},i=function(e){var n={disabled:!0,breakView:!0};t[e]=n},l=0;l<this.marginPages;l++)o(l);var s=0;this.selected-a>0&&(s=this.selected-1-a);var u=s+this.pageRange-1;u>=this.pageCount&&(u=this.pageCount-1,s=u-this.pageRange+1);for(var c=s;c<=u&&c<=this.pageCount-1;c++)o(c);s>this.marginPages&&i(s-1),u+1<this.pageCount-this.marginPages&&i(u+1);for(var f=this.pageCount-1;f>=this.pageCount-this.marginPages;f--)o(f)}return t}},data:function(){return{innerValue:1}},methods:{handlePageSelected:function(e){this.selected!==e&&(this.innerValue=e,this.$emit("input",e),this.clickHandler(e))},prevPage:function(){this.selected<=1||this.handlePageSelected(this.selected-1)},nextPage:function(){this.selected>=this.pageCount||this.handlePageSelected(this.selected+1)},firstPageSelected:function(){return 1===this.selected},lastPageSelected:function(){return this.selected===this.pageCount||0===this.pageCount},selectFirstPage:function(){this.selected<=1||this.handlePageSelected(1)},selectLastPage:function(){this.selected>=this.pageCount||this.handlePageSelected(this.pageCount)}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.noLiSurround?n("div",{class:e.containerClass},[e.firstLastButton?n("a",{class:[e.pageLinkClass,e.firstPageSelected()?e.disabledClass:""],attrs:{tabindex:"0"},domProps:{innerHTML:e._s(e.firstButtonText)},on:{click:function(t){e.selectFirstPage()},keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13)?void e.selectFirstPage():null}}}):e._e(),e._v(" "),e.firstPageSelected()&&e.hidePrevNext?e._e():n("a",{class:[e.prevLinkClass,e.firstPageSelected()?e.disabledClass:""],attrs:{tabindex:"0"},domProps:{innerHTML:e._s(e.prevText)},on:{click:function(t){e.prevPage()},keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13)?void e.prevPage():null}}}),e._v(" "),e._l(e.pages,(function(t){return[t.breakView?n("a",{class:[e.pageLinkClass,e.breakViewLinkClass,t.disabled?e.disabledClass:""],attrs:{tabindex:"0"}},[e._t("breakViewContent",[e._v(e._s(e.breakViewText))])],2):t.disabled?n("a",{class:[e.pageLinkClass,t.selected?e.activeClass:"",e.disabledClass],attrs:{tabindex:"0"}},[e._v(e._s(t.content))]):n("a",{class:[e.pageLinkClass,t.selected?e.activeClass:""],attrs:{tabindex:"0"},on:{click:function(n){e.handlePageSelected(t.index+1)},keyup:function(n){return"button"in n||!e._k(n.keyCode,"enter",13)?void e.handlePageSelected(t.index+1):null}}},[e._v(e._s(t.content))])]})),e._v(" "),e.lastPageSelected()&&e.hidePrevNext?e._e():n("a",{class:[e.nextLinkClass,e.lastPageSelected()?e.disabledClass:""],attrs:{tabindex:"0"},domProps:{innerHTML:e._s(e.nextText)},on:{click:function(t){e.nextPage()},keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13)?void e.nextPage():null}}}),e._v(" "),e.firstLastButton?n("a",{class:[e.pageLinkClass,e.lastPageSelected()?e.disabledClass:""],attrs:{tabindex:"0"},domProps:{innerHTML:e._s(e.lastButtonText)},on:{click:function(t){e.selectLastPage()},keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13)?void e.selectLastPage():null}}}):e._e()],2):n("ul",{class:e.containerClass},[e.firstLastButton?n("li",{class:[e.pageClass,e.firstPageSelected()?e.disabledClass:""]},[n("a",{class:e.pageLinkClass,attrs:{tabindex:e.firstPageSelected()?-1:0},domProps:{innerHTML:e._s(e.firstButtonText)},on:{click:function(t){e.selectFirstPage()},keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13)?void e.selectFirstPage():null}}})]):e._e(),e._v(" "),e.firstPageSelected()&&e.hidePrevNext?e._e():n("li",{class:[e.prevClass,e.firstPageSelected()?e.disabledClass:""]},[n("a",{class:e.prevLinkClass,attrs:{tabindex:e.firstPageSelected()?-1:0},domProps:{innerHTML:e._s(e.prevText)},on:{click:function(t){e.prevPage()},keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13)?void e.prevPage():null}}})]),e._v(" "),e._l(e.pages,(function(t){return n("li",{class:[e.pageClass,t.selected?e.activeClass:"",t.disabled?e.disabledClass:"",t.breakView?e.breakViewClass:""]},[t.breakView?n("a",{class:[e.pageLinkClass,e.breakViewLinkClass],attrs:{tabindex:"0"}},[e._t("breakViewContent",[e._v(e._s(e.breakViewText))])],2):t.disabled?n("a",{class:e.pageLinkClass,attrs:{tabindex:"0"}},[e._v(e._s(t.content))]):n("a",{class:e.pageLinkClass,attrs:{tabindex:"0"},on:{click:function(n){e.handlePageSelected(t.index+1)},keyup:function(n){return"button"in n||!e._k(n.keyCode,"enter",13)?void e.handlePageSelected(t.index+1):null}}},[e._v(e._s(t.content))])])})),e._v(" "),e.lastPageSelected()&&e.hidePrevNext?e._e():n("li",{class:[e.nextClass,e.lastPageSelected()?e.disabledClass:""]},[n("a",{class:e.nextLinkClass,attrs:{tabindex:e.lastPageSelected()?-1:0},domProps:{innerHTML:e._s(e.nextText)},on:{click:function(t){e.nextPage()},keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13)?void e.nextPage():null}}})]),e._v(" "),e.firstLastButton?n("li",{class:[e.pageClass,e.lastPageSelected()?e.disabledClass:""]},[n("a",{class:e.pageLinkClass,attrs:{tabindex:e.lastPageSelected()?-1:0},domProps:{innerHTML:e._s(e.lastButtonText)},on:{click:function(t){e.selectLastPage()},keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13)?void e.selectLastPage():null}}})]):e._e()],2)},staticRenderFns:[]}}])}))},8838:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M20,22C21.11,22 22,21.11 22,20V18H20V20H18V22H20M16,22V20H13V22H16M11,22V20H9V18H7V20C7,21.11 7.89,22 9,22H11M22,16V13H20V16H22M9,16C9,16 9,11.33 9,9C11.33,9 16,9 16,9C16,9 16,5 16,3C16,1.89 15.11,1 14,1H3C1.89,1 1,1.89 1,3V14C1,15.11 1.89,16 3,16C5,16 9,16 9,16M7,14H3V3H14V7H9C7.89,7 7,7.89 7,9V14M22,11V9C22,7.89 21.11,7 20,7H18V9H20V11H22Z"}))};e.exports=l},8860:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GithubSwatch=void 0;var r=n("ab5b"),a=s(r),o=n("fc55"),i=s(o),l=n("4ccf");function s(e){return e&&e.__esModule?e:{default:e}}var u=t.GithubSwatch=function(e){var t=e.hover,n=e.color,r=e.onClick,o=e.onSwatchHover,s={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},u=(0,i.default)({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:s}},{hover:t});return a.default.createElement("div",{style:u.swatch},a.default.createElement(l.Swatch,{color:n,onClick:r,onHover:o,focusStyle:s}))};t.default=(0,o.handleHover)(u)},"88dd":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n("ab5b"),o=x(a),i=n("d7bc"),l=x(i),s=n("b1db"),u=x(s),c=n("d8dc"),f=x(c),p=n("242f"),d=n("70d2"),h=b(d),v=n("db0b"),m=b(v),y=n("4ea5"),g=b(y);function b(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 x(e){return e&&e.__esModule?e:{default:e}}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(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}function k(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)}var T=function(e){function t(){var e,n,r,a;_(this,t);for(var i=arguments.length,l=Array(i),s=0;s<i;s++)l[s]=arguments[s];return r=w(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(l))),n=r,r.renderDay=function(e){var t=r.props.month.getMonth(),n=m.getModifiersFromProps(r.props),a=h.getModifiersForDay(e,n);g.isSameDay(e,new Date)&&!Object.prototype.hasOwnProperty.call(n,r.props.classNames.today)&&a.push(r.props.classNames.today),e.getMonth()!==t&&a.push(r.props.classNames.outside);var i=e.getMonth()!==t,l=-1;r.props.onDayClick&&!i&&1===e.getDate()&&(l=r.props.tabIndex);var s=""+e.getFullYear()+e.getMonth()+e.getDate(),u={};return a.forEach((function(e){u[e]=!0})),o.default.createElement(f.default,{key:(i?"outside-":"")+s,classNames:r.props.classNames,day:e,modifiers:u,modifiersStyles:r.props.modifiersStyles,empty:i&&!r.props.showOutsideDays&&!r.props.fixedWeeks,tabIndex:l,ariaLabel:r.props.localeUtils.formatDay(e,r.props.locale),ariaDisabled:i||a.indexOf(r.props.classNames.disabled)>-1,ariaSelected:a.indexOf(r.props.classNames.selected)>-1,onClick:r.props.onDayClick,onFocus:r.props.onDayFocus,onKeyDown:r.props.onDayKeyDown,onMouseEnter:r.props.onDayMouseEnter,onMouseLeave:r.props.onDayMouseLeave,onMouseDown:r.props.onDayMouseDown,onMouseUp:r.props.onDayMouseUp,onTouchEnd:r.props.onDayTouchEnd,onTouchStart:r.props.onDayTouchStart},r.props.renderDay(e,u))},a=n,w(r,a)}return k(t,e),r(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.classNames,r=t.month,a=t.months,i=t.fixedWeeks,l=t.captionElement,s=t.weekdayElement,c=t.locale,f=t.localeUtils,d=t.weekdaysLong,h=t.weekdaysShort,v=t.firstDayOfWeek,y=t.onCaptionClick,b=t.showWeekNumbers,x=t.showWeekDays,_=t.onWeekClick,w={date:r,classNames:n,months:a,localeUtils:f,locale:c,onClick:y?function(e){return y(r,e)}:void 0},k=o.default.isValidElement(l)?o.default.cloneElement(l,w):o.default.createElement(l,w),T=m.getWeekArray(r,v,i);return o.default.createElement("div",{className:n.month,role:"grid"},k,x&&o.default.createElement(u.default,{classNames:n,weekdaysShort:h,weekdaysLong:d,firstDayOfWeek:v,showWeekNumbers:b,locale:c,localeUtils:f,weekdayElement:s}),o.default.createElement("div",{className:n.body,role:"rowgroup"},T.map((function(t){var a=void 0;return b&&(a=g.getWeekNumber(t[6])),o.default.createElement("div",{key:t[0].getTime(),className:n.week,role:"row"},b&&o.default.createElement("div",{className:n.weekNumber,tabIndex:_?0:-1,role:"gridcell",onClick:_?function(e){return _(a,t,e)}:void 0,onKeyUp:_?function(e){return e.keyCode===p.ENTER&&_(a,t,e)}:void 0},e.props.renderWeek(a,t,r)),t.map(e.renderDay))}))))}}]),t}(a.Component);T.propTypes={classNames:l.default.shape({body:l.default.string.isRequired,month:l.default.string.isRequired,outside:l.default.string.isRequired,today:l.default.string.isRequired,week:l.default.string.isRequired,weekNumber:l.default.string.isRequired,disabled:l.default.string.isRequired,selected:l.default.string.isRequired}).isRequired,tabIndex:l.default.number,month:l.default.instanceOf(Date).isRequired,months:l.default.arrayOf(l.default.string),modifiersStyles:l.default.object,showWeekDays:l.default.bool,showOutsideDays:l.default.bool,renderDay:l.default.func.isRequired,renderWeek:l.default.func.isRequired,captionElement:l.default.oneOfType([l.default.element,l.default.func,l.default.instanceOf(o.default.Component)]).isRequired,weekdayElement:l.default.oneOfType([l.default.element,l.default.func,l.default.instanceOf(o.default.Component)]),fixedWeeks:l.default.bool,showWeekNumbers:l.default.bool,locale:l.default.string.isRequired,localeUtils:l.default.object.isRequired,weekdaysLong:l.default.arrayOf(l.default.string),weekdaysShort:l.default.arrayOf(l.default.string),firstDayOfWeek:l.default.number.isRequired,onCaptionClick:l.default.func,onDayClick:l.default.func,onDayFocus:l.default.func,onDayKeyDown:l.default.func,onDayMouseEnter:l.default.func,onDayMouseLeave:l.default.func,onDayMouseDown:l.default.func,onDayMouseUp:l.default.func,onDayTouchEnd:l.default.func,onDayTouchStart:l.default.func,onWeekClick:l.default.func},t.default=T},"88e7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n("5174")),a=i(n("ab5b"));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function l(e){return e&&e.__esModule?e:{default:e}}function s(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 u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return f="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},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=function(e){v(n,e);var t=y(n);function n(){return p(this,n),t.apply(this,arguments)}return h(n,[{key:"render",value:function(){return a.default.createElement(r.default,this.props,a.default.createElement("div",{className:"js-test-info ".concat(this.props.className?this.props.className:"")},this.props.children))}}]),n}(a.Component);t.default=w,w.plotly_editor_traits={no_visibility_forcing:!0},w.propTypes=u({},r.default.propTypes)},"88f6":function(e,t,n){"use strict";var r=n("4755"),a=n("69d1")({editType:"none",description:"Sets the default hover label font used by all traces on the graph."});a.family.dflt=r.HOVERFONT,a.size.dflt=r.HOVERFONTSIZE,e.exports={clickmode:{valType:"flaglist",role:"info",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"],description:["Determines the mode of single click interactions.","*event* is the default value and emits the `plotly_click`","event. In addition this mode emits the `plotly_selected` event","in drag modes *lasso* and *select*, but with no event data attached","(kept for compatibility reasons).","The *select* flag enables selecting single","data points via click. This mode also supports persistent selections,","meaning that pressing Shift while clicking, adds to / subtracts from an","existing selection. *select* with `hovermode`: *x* can be confusing, consider","explicitly setting `hovermode`: *closest* when using this feature.","Selection events are sent accordingly as long as *event* flag is set as well.","When the *event* flag is missing, `plotly_click` and `plotly_selected`","events are not fired."].join(" ")},dragmode:{valType:"enumerated",role:"info",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar",description:["Determines the mode of drag interactions.","*select* and *lasso* apply only to scatter traces with","markers or text. *orbit* and *turntable* apply only to","3D scenes."].join(" ")},hovermode:{valType:"enumerated",role:"info",values:["x","y","closest",!1,"x unified","y unified"],editType:"modebar",description:["Determines the mode of hover interactions.","If *closest*, a single hoverlabel will appear","for the *closest* point within the `hoverdistance`.","If *x* (or *y*), multiple hoverlabels will appear for multiple points","at the *closest* x- (or y-) coordinate within the `hoverdistance`,","with the caveat that no more than one hoverlabel will appear per trace.","If *x unified* (or *y unified*), a single hoverlabel will appear","multiple points at the closest x- (or y-) coordinate within the `hoverdistance`","with the caveat that no more than one hoverlabel will appear per trace.","In this mode, spikelines are enabled by default perpendicular to the specified axis.","If false, hover interactions are disabled.","If `clickmode` includes the *select* flag,","`hovermode` defaults to *closest*.","If `clickmode` lacks the *select* flag,","it defaults to *x* or *y* (depending on the trace's","`orientation` value) for plots based on","cartesian coordinates. For anything else the default","value is *closest*."].join(" ")},hoverdistance:{valType:"integer",min:-1,dflt:20,role:"info",editType:"none",description:["Sets the default distance (in pixels) to look for data","to add hover labels (-1 means no cutoff, 0 means no looking for data).","This is only a real distance for hovering on point-like objects,","like scatter points. For area-like objects (bars, scatter fills, etc)","hovering is on inside the area and off outside, but these objects","will not supersede hover on point-like objects in case of conflict."].join(" ")},spikedistance:{valType:"integer",min:-1,dflt:20,role:"info",editType:"none",description:["Sets the default distance (in pixels) to look for data to draw","spikelines to (-1 means no cutoff, 0 means no looking for data).","As with hoverdistance, distance does not apply to area-like objects.","In addition, some objects can be hovered on but will not generate","spikelines, such as scatter fills."].join(" ")},hoverlabel:{bgcolor:{valType:"color",role:"style",editType:"none",description:["Sets the background color of all hover labels on graph"].join(" ")},bordercolor:{valType:"color",role:"style",editType:"none",description:["Sets the border color of all hover labels on graph."].join(" ")},font:a,align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",role:"style",editType:"none",description:["Sets the horizontal alignment of the text content within hover label box.","Has an effect only if the hover label text spans more two or more lines"].join(" ")},namelength:{valType:"integer",min:-1,dflt:15,role:"style",editType:"none",description:["Sets the default length (in number of characters) of the trace name in","the hover labels for all traces. -1 shows the whole name","regardless of length. 0-3 shows the first 0-3 characters, and","an integer >3 will show the whole name if it is less than that","many characters, but if it is longer, will truncate to","`namelength - 3` characters and add an ellipsis."].join(" ")},editType:"none"},selectdirection:{valType:"enumerated",role:"info",values:["h","v","d","any"],dflt:"any",description:["When `dragmode` is set to *select*, this limits the selection of the drag to","horizontal, vertical or diagonal. *h* only allows horizontal selection,","*v* only vertical, *d* only diagonal and *any* sets no limit."].join(" "),editType:"none"}}},8925:function(e,t,n){var r=n("c6cd"),a=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return a.call(e)}),e.exports=r.inspectSource},"893b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("9903")),a=c(n("e78b")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function m(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&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function g(e){var t=_();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=(0,l.connectLayersToMapbox)(r.default),T=function(e){m(n,e);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return v(n,[{key:"render",value:function(){var e=this.context,t=e.fullContainer.layers,n=void 0===t?[]:t,r=e.localize,o=e.layout,s=this.props.children,u=n.length&&n.map((function(e,t){return i.default.createElement(k,{key:t,mapboxLayerIndex:t,name:(0,l.getParsedTemplateString)(e.name,{meta:o}),canDelete:!0},s)})),c={label:r("Layer"),handler:function(e){var t=e.fullContainer,n=e.updateContainer;if(n){var r=Array.isArray(t.layers)?t.layers.length:0;n(p({},"layers[".concat(r,"]"),{name:"Layer ".concat(r),sourcetype:"raster",below:"traces"}))}}};return i.default.createElement(a.default,{addAction:c,canReorder:!0},u||null)}}]),n}(i.Component);T.contextTypes={fullContainer:o.default.object,localize:o.default.func,layout:o.default.object},T.propTypes={children:o.default.node},T.plotly_editor_traits={no_visibility_forcing:!0};var E=T;t.default=E},8966:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M19.5,3.09L15,7.59V4H13V11H20V9H16.41L20.91,4.5L19.5,3.09M4,13V15H7.59L3.09,19.5L4.5,20.91L9,16.41V20H11V13H4Z"}))};e.exports=l},"89ab":function(e,t,n){"use strict";var r=n("4d6a");function a(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}e.exports=a},"89af":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 16 16"},e),o.default.createElement("path",{d:"M16 8l-3-3v2H9V3h2L8 0 5 3h2v4H3V4.999L0 8l2.977 3V9H7v4H5l3 3 3-3H9V9h4v2.001L16 8z"}))};t.default=u},"8a16":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var r=u(n("ab5b")),a=l(n("d7bc")),o=n("4578"),i=n("e419");function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return c="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},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function _(e){var t=function(t){h(a,t);var n=m(a);function a(e,t){var r;return f(this,a),r=n.call(this,e,t),r.deleteAnnotation=r.deleteAnnotation.bind(g(r)),r.updateAnnotation=r.updateAnnotation.bind(g(r)),r.moveAnnotation=r.moveAnnotation.bind(g(r)),r.setLocals(e,t),r}return d(a,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.annotationIndex,r=t.container,a=t.fullContainer,o=r.annotations||[],i=a.annotations||[];this.container=o[n],this.fullContainer=i[n]}},{key:"getChildContext",value:function(){var e=this;return{getValObject:function(t){return e.context.getValObject?e.context.getValObject("annotations[].".concat(t)):null},updateContainer:this.updateAnnotation,deleteContainer:this.deleteAnnotation,container:this.container,fullContainer:this.fullContainer,moveContainer:this.moveAnnotation}}},{key:"updateAnnotation",value:function(e){var t={},n=this.props.annotationIndex;for(var r in e){var a="annotations[".concat(n,"].").concat(r);t[a]=e[r]}this.context.updateContainer(t)}},{key:"deleteAnnotation",value:function(){this.context.onUpdate&&this.context.onUpdate({type:i.EDITOR_ACTIONS.DELETE_ANNOTATION,payload:{annotationIndex:this.props.annotationIndex}})}},{key:"moveAnnotation",value:function(e){if(this.context.onUpdate){var t=this.props.annotationIndex,n="up"===e?t-1:t+1;this.context.onUpdate({type:i.EDITOR_ACTIONS.MOVE_TO,payload:{fromIndex:t,toIndex:n,path:"layout.annotations"}})}}},{key:"render",value:function(){return r.default.createElement(e,this.props)}}]),a}(r.Component);t.displayName="AnnotationConnected".concat((0,o.getDisplayName)(e)),t.propTypes={annotationIndex:a.default.number.isRequired},t.contextTypes={container:a.default.object,fullContainer:a.default.object,data:a.default.array,onUpdate:a.default.func,updateContainer:a.default.func,getValObject:a.default.func},t.childContextTypes={updateContainer:a.default.func,deleteContainer:a.default.func,container:a.default.object,fullContainer:a.default.object,getValObject:a.default.func,moveContainer:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},"8a2b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("d7bc"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(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}var c=function(e){var t=e.children,n=e.width,a=e.height,i=e.style,l=void 0===i?{}:i,s=u(e,["children","width","height","style"]);return o.default.createElement("svg",r({children:t,fill:"currentColor",preserveAspectRatio:"xMidYMid meet",height:a,width:n,style:l},s))};c.propTypes={children:l.default.node.isRequired,width:l.default.oneOfType([l.default.number,l.default.string]),height:l.default.oneOfType([l.default.number,l.default.string]),style:l.default.object},t.default=c},"8a55":function(e,t,n){"use strict";var r=n("bd8c"),a=n("24f7");function o(e,t,n){var o=e.getBlockMap(),i=t.getStartKey(),l=t.getStartOffset(),s=t.getEndKey(),u=t.getEndOffset(),c=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).toOrderedMap().merge(a.OrderedMap([[s,o.get(s)]])).map((function(e,t){var a=t===i?l:0,o=t===s?u:e.getLength();return r(e,a,o,n)}));return e.merge({blockMap:o.merge(c),selectionBefore:t,selectionAfter:t})}e.exports=o},"8a56":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{d:"M9 20c.68-.038 1.36-.062 2.04-.065l.51-.002c.118 0 .093-.003.106-.004h.023a.225.225 0 0 1 .096 0 3.276 3.276 0 0 0 .436-.003c.245-.1-.029.275 1.324-1.046l2.965-2.813 3.328-3.172a18.619 18.619 0 0 1 9.888-4.556q.907-.126 1.821-.16l1.384-.016c1.36.002 2.72-.006 4.08-.083v16c-1.36-.076-2.72-.085-4.08-.083l-.51-.002c-.115.003-.093.011-.146.011-.07.01-.14.022-.208.037a1.784 1.784 0 0 0-.385.161 1.838 1.838 0 0 0-.555.568c-.02.023-.029.058-.047.082l-.266.322-.647.791-1.296 1.581-2.587 3.164a21.69 21.69 0 0 1-1.732 1.97 18.844 18.844 0 0 1-2.987 2.418 18.143 18.143 0 0 1-7.18 2.76 15.55 15.55 0 0 1-1.935.19l-.89.017-.51-.002c-.68-.003-1.36-.027-2.04-.065z",fill:"#25fdfc"}),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M9 20v18M9 8v10M37 8v30",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{d:"M9 13.08h1.35a10 10 0 0 1 8.566 4.84l6.169 10.24A10 10 0 0 0 33.65 33H37",fill:"none",stroke:"#1d9bfb",opacity:".5",strokeMiterlimit:"10",strokeWidth:"10"}),o.default.createElement("path",{d:"M10 9.04h.002a14.77 14.77 0 0 1 12.37 6.698l7.444 11.408a4 4 0 0 0 3.35 1.814H36",fill:"none",stroke:"#1d9bfb",strokeMiterlimit:"10",strokeWidth:"2"}))};t.default=u},"8a5b":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M7,21H9V19H7M11,21H13V19H11M19,15H9V5H19M19,3H9C7.89,3 7,3.89 7,5V15C7,16.1 7.9,17 9,17H14L18,17H19C20.1,17 21,16.1 21,15V5C21,3.89 20.1,3 19,3M15,21H17V19H15M3,9H5V7H3M5,21V19H3C3,20.1 3.9,21 5,21M3,17H5V15H3M3,13H5V11H3V13Z"}))};e.exports=l},"8a5d":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7C10.9,7 10,7.9 10,9H8C8,6.79 9.79,5 12,5C14.21,5 16,6.79 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.47 17.5,2 12,2Z"}))};e.exports=l},"8aa5":function(e,t,n){"use strict";var r=n("6547").charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8adb":function(e,t){function n(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}e.exports=n},"8b0e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n("d7bc")),a=c(n("ab5b")),o=n("c85e"),i=f(n("37cc")),l=f(n("5174")),s=n("4578");function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 g(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}function b(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&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function _(e){var t=T();return function(){var n,r=E(e);if(t){var a=E(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?k(e):t}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(){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}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var O=function(e){b(n,e);var t=_(n);function n(e,r){var a;return m(this,n),a=t.call(this,e,r),a.updatePlot=a.updatePlot.bind(k(a)),a}return g(n,[{key:"updatePlot",value:function(e){"symmetric"===e&&this.props.updatePlot(h(h({},this.props.fullValue),{},{visible:!0,symmetric:!0})),"asymmetric"===e&&this.props.updatePlot(h(h({},this.props.fullValue),{},{visible:!0,symmetric:!1})),"hidden"===e&&this.props.updatePlot(h(h({},this.props.fullValue),{},{visible:!1}))}},{key:"getMode",value:function(){var e;return this.props.fullValue.visible||(e="hidden"),this.props.fullValue.visible&&(this.props.fullValue.symmetric||"undefined"===typeof this.props.fullValue.symmetric)&&(e="symmetric"),this.props.fullValue.visible&&!1===this.props.fullValue.symmetric&&(e="asymmetric"),e}},{key:"renderModeSelector",value:function(){var e=this.context.localize;return a.default.createElement(l.default,null,a.default.createElement(i.default,{alignment:"center",onOptionChange:this.updatePlot,activeOption:this.getMode(),options:[{label:e("None"),value:"hidden"},{label:e("Symmetric"),value:"symmetric"},{label:e("Asymmetric"),value:"asymmetric"}]}))}},{key:"renderErrorBarControls",value:function(){var e=this.context.localize,t=this.getMode(),n="data"===this.props.fullValue.type,r=a.default.createElement(a.default.Fragment,null,a.default.createElement(o.Radio,{label:e("Copy Y Style"),attr:"".concat(this.props.attr,".copy_ystyle"),options:[{label:e("Yes"),value:!0},{label:e("No"),value:!1}]}),a.default.createElement(o.Radio,{label:e("Copy Z Style"),attr:"".concat(this.props.attr,".copy_zstyle"),options:[{label:e("Yes"),value:!0},{label:e("No"),value:!1}]}),a.default.createElement(o.MultiColorPicker,{label:e("Color"),attr:"".concat(this.props.attr,".color")}),a.default.createElement(o.Numeric,{label:e("Thickness"),attr:"".concat(this.props.attr,".thickness")}),a.default.createElement(o.Numeric,{label:e("Crossbar Width"),attr:"".concat(this.props.attr,".width")}));return"symmetric"===t?a.default.createElement(a.default.Fragment,null,a.default.createElement(o.Radio,{label:e("Error Type"),attr:"".concat(this.props.attr,".type"),options:[{label:e("%"),value:"percent"},{label:e("Constant"),value:"constant"},{label:e("√"),value:"sqrt"},{label:e("Data"),value:"data"}]}),a.default.createElement(o.Numeric,{label:e("Value"),attr:"".concat(this.props.attr,".value")}),n?a.default.createElement(o.DataSelector,{label:e("Custom Data"),attr:"".concat(this.props.attr,".array")}):null,r):"asymmetric"===t?a.default.createElement(a.default.Fragment,null,a.default.createElement(o.Radio,{label:e("Error Type"),attr:"".concat(this.props.attr,".type"),options:[{label:e("%"),value:"percent"},{label:e("Constant"),value:"constant"},{label:e("Data"),value:"data"}]}),a.default.createElement(o.Numeric,{label:e("Value"),attr:"".concat(this.props.attr,".value")}),a.default.createElement(o.Numeric,{label:e("Value (-)"),attr:"".concat(this.props.attr,".valueminus")}),n?a.default.createElement(a.default.Fragment,null,a.default.createElement(o.DataSelector,{label:e("Error (+)"),attr:"".concat(this.props.attr,".array")}),a.default.createElement(o.DataSelector,{label:e("Error (-)"),attr:"".concat(this.props.attr,".arrayminus")})):null,r):null}},{key:"render",value:function(){return a.default.createElement(a.default.Fragment,null,this.renderModeSelector(),this.renderErrorBarControls())}}]),n}(a.Component);O.propTypes={attr:r.default.string,fullValue:r.default.object,updatePlot:r.default.func},O.contextTypes={localize:r.default.func};var M=(0,s.connectToContainer)(O);t.default=M},"8b21":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 18.2 13"},e),o.default.createElement("path",{class:"cls-1",d:"M5.61 13H2.12A2.12 2.12 0 0 1 0 10.88V3h5.61zM18.2 2.12A2.18 2.18 0 0 0 16 0H2.23A2.18 2.18 0 0 0 0 2.12zM6.47 3v10h9.61a2.12 2.12 0 0 0 2.12-2.12V3zM7.8 5.65a.45.45 0 0 1 .45-.45h5.34a.45.45 0 0 1 .45.45v.14a.45.45 0 0 1-.45.45H8.25a.45.45 0 0 1-.45-.45zM14 10a.45.45 0 0 1-.45.45h-5.3A.45.45 0 0 1 7.8 10v-.19a.45.45 0 0 1 .45-.45h5.34a.45.45 0 0 1 .45.45zm1.6-1.68H8.32a.52.52 0 0 1 0-1h7.28a.52.52 0 0 1 0 1z"}))};t.default=u},"8b47":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=x;var r=s(n("ab5b")),a=i(n("d7bc")),o=n("4578");function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function x(e){var t=function(t){d(a,t);var n=v(a);function a(e,t){var r;return c(this,a),r=n.call(this,e,t),r.updateUpdateMenu=r.updateUpdateMenu.bind(y(r)),r.setLocals(e,t),r}return p(a,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.updateMenuIndex,r=t.container,a=t.fullContainer,o=r.updatemenus||[],i=a.updatemenus||[];this.container=o[n],this.fullContainer=i[n]}},{key:"getChildContext",value:function(){var e=this;return{getValObject:function(t){return e.context.getValObject?e.context.getValObject("updatemenus[].".concat(t)):null},updateContainer:this.updateUpdateMenu,container:this.container,fullContainer:this.fullContainer}}},{key:"updateUpdateMenu",value:function(e){var t={},n=this.props.updateMenuIndex;for(var r in e){var a="updatemenus[".concat(n,"].").concat(r);t[a]=e[r]}this.context.updateContainer(t)}},{key:"render",value:function(){return r.default.createElement(e,this.props)}}]),a}(r.Component);t.displayName="UpdateMenuConnected".concat((0,o.getDisplayName)(e)),t.propTypes={updateMenuIndex:a.default.number.isRequired},t.contextTypes={container:a.default.object,fullContainer:a.default.object,onUpdate:a.default.func,updateContainer:a.default.func,getValObject:a.default.func},t.childContextTypes={updateContainer:a.default.func,container:a.default.object,fullContainer:a.default.object,getValObject:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},"8b6c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{d:"M23 23l-10.725 8.999A14 14 0 0 0 37 23z",fill:"#1d9bfb"}),o.default.createElement("path",{d:"M23 23h14A14 14 0 0 0 25.431 9.213zm0 0H9a14 14 0 0 0 3.275 8.999zm0 0l2.431 13.787A14 14 0 0 0 32 33.725z",fill:"#25fdfc"}),o.default.createElement("path",{d:"M23 23l2.431-13.787A14 14 0 0 0 9 23z",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"23",cy:"23",r:"6",fill:"#fff"}))};t.default=u},"8bc8":function(e,t,n){"use strict";function r(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}}r(),e.exports=n("ca5d")},"8bcf":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n("a794")),a=v(n("d7bc")),o=h(n("ab5b")),i=n("4578"),l=n("d8ab"),s=n("e419"),u=v(n("19b2")),c=v(n("10b4")),f=n("3366"),p=n("4ded");function d(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!==typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function v(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="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},m(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 b(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function x(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&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=E();return function(){var n,r=O(e);if(t){var a=O(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==m(t)&&"function"!==typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(){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}}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var M=function(e){x(n,e);var t=w(n);function n(e,r){var a;return y(this,n),a=t.call(this,e,r),a.localize=function(e){return(0,i.localizeString)(a.props.dictionaries||{},a.props.locale,e)},a.props.plotly&&(a.plotSchema=a.props.plotly.PlotSchema.get()),a}return b(n,[{key:"getChildContext",value:function(){var e=this.props.graphDiv||{};return{advancedTraceTypeSelector:this.props.advancedTraceTypeSelector,config:e._context,srcConverters:this.props.srcConverters,data:e.data,dataSourceComponents:this.props.dataSourceComponents,dataSourceOptions:this.props.dataSourceOptions,dataSources:this.props.dataSources,dictionaries:this.props.dictionaries||{},localize:this.localize,frames:e._transitionData?e._transitionData._frames:[],fullData:e._fullData,fullLayout:e._fullLayout,graphDiv:e,layout:e.layout,locale:this.props.locale,onUpdate:this.handleUpdate.bind(this),plotSchema:this.plotSchema,plotly:this.props.plotly,traceTypesConfig:this.props.traceTypesConfig,showFieldTooltips:this.props.showFieldTooltips,glByDefault:this.props.glByDefault,mapBoxAccess:this.props.mapBoxAccess,fontOptions:this.props.fontOptions,chartHelp:this.props.chartHelp,customConfig:this.props.customConfig,hasValidCustomConfigVisibilityRules:(0,i.hasValidCustomConfigVisibilityRules)(this.props.customConfig)}}},{key:"handleUpdate",value:function(e){var t=e.type,n=e.payload,r=this.props.graphDiv;switch(t){case s.EDITOR_ACTIONS.UPDATE_TRACES:this.props.beforeUpdateTraces&&this.props.beforeUpdateTraces(n),(0,l.shamefullyAdjustSizeref)(r,n),(0,l.shamefullyAdjustAxisDirection)(r,n),(0,l.shamefullyClearAxisTypes)(r,n),(0,l.shamefullyAdjustAxisRef)(r,n),(0,l.shamefullyAddTableColumns)(r,n),(0,l.shamefullyAdjustSplitStyleTargetContainers)(r,n),this.props.mapBoxAccess||(0,l.shamefullyAdjustMapbox)(r,n);for(var a=0;a<n.traceIndexes.length;a++){var o=function(e){var t=n.traceIndexes[a],o=n.splitTraceGroup?n.splitTraceGroup.toString():null,i=[(0,c.default)(r.data[t],e)],s=n.update[e];o&&(i=(0,l.shamefullyCreateSplitStyleProps)(r,e,t,o)),i.forEach((function(e){void 0!==s&&e.set(s)}))};for(var f in n.update)o(f)}this.props.afterUpdateTraces&&this.props.afterUpdateTraces(n),this.props.onUpdate&&this.props.onUpdate(r.data.slice(),r.layout,r._transitionData._frames);break;case s.EDITOR_ACTIONS.UPDATE_LAYOUT:for(var p in(0,l.shamefullyAdjustGeo)(r,n),this.props.beforeUpdateLayout&&this.props.beforeUpdateLayout(n),n.update){var d=(0,c.default)(r.layout,p),h=n.update[p];void 0!==h&&d.set(h)}this.props.afterUpdateLayout&&this.props.afterUpdateLayout(n),this.props.onUpdate&&this.props.onUpdate(r.data,Object.assign({},r.layout),r._transitionData._frames);break;case s.EDITOR_ACTIONS.ADD_TRACE:if(this.props.beforeAddTrace&&this.props.beforeAddTrace(n),0===r.data.length)r.data.push(this.props.makeDefaultTrace?this.props.makeDefaultTrace():{type:"scatter".concat(this.props.glByDefault?"gl":""),mode:"markers"});else{var v=r.data[r.data.length-1],m=(0,i.plotlyTraceToCustomTrace)(v);r.data.push((0,i.traceTypeToPlotlyInitFigure)(m,v.type&&v.type.endsWith("gl")?"gl":""))}this.props.afterAddTrace&&this.props.afterAddTrace(n),this.props.onUpdate&&this.props.onUpdate(r.data.slice(),r.layout,r._transitionData._frames);break;case s.EDITOR_ACTIONS.DELETE_TRACE:n.traceIndexes&&n.traceIndexes.length&&(this.props.beforeDeleteTrace&&this.props.beforeDeleteTrace(n),(0,l.shamefullyAdjustAxisRef)(r,n),(0,l.shamefullyDeleteRelatedAnalysisTransforms)(r,n),r.data.splice(n.traceIndexes[0],1),this.props.afterDeleteTrace&&this.props.afterDeleteTrace(n),this.props.onUpdate&&this.props.onUpdate(r.data.slice(),r.layout,r._transitionData._frames));break;case s.EDITOR_ACTIONS.DELETE_ANNOTATION:(0,u.default)(n.annotationIndex)&&(this.props.beforeDeleteAnnotation&&this.props.beforeDeleteAnnotation(n),r.layout.annotations.splice(n.annotationIndex,1),this.props.afterDeleteAnnotation&&this.props.afterDeleteAnnotation(n),this.props.onUpdate&&this.props.onUpdate(r.data,Object.assign({},r.layout),r._transitionData._frames));break;case s.EDITOR_ACTIONS.DELETE_SHAPE:(0,u.default)(n.shapeIndex)&&(this.props.beforeDeleteShape&&this.props.beforeDeleteShape(n),r.layout.shapes.splice(n.shapeIndex,1),this.props.afterDeleteShape&&this.props.afterDeleteShape(n),this.props.onUpdate&&this.props.onUpdate(r.data,Object.assign({},r.layout),r._transitionData._frames));break;case s.EDITOR_ACTIONS.DELETE_IMAGE:(0,u.default)(n.imageIndex)&&(this.props.beforeDeleteImage&&this.props.beforeDeleteImage(n),r.layout.images.splice(n.imageIndex,1),this.props.afterDeleteImage&&this.props.afterDeleteImage(n),this.props.onUpdate&&this.props.onUpdate(r.data,Object.assign({},r.layout),r._transitionData._frames));break;case s.EDITOR_ACTIONS.DELETE_RANGESELECTOR:(0,u.default)(n.rangeselectorIndex)&&(r.layout[n.axisId].rangeselector.buttons.splice(n.rangeselectorIndex,1),this.props.onUpdate&&this.props.onUpdate(r.data,Object.assign({},r.layout),r._transitionData._frames));break;case s.EDITOR_ACTIONS.DELETE_MAPBOXLAYER:(0,u.default)(n.mapboxLayerIndex)&&(r.layout[n.mapboxId].layers.splice(n.mapboxLayerIndex,1),this.props.onUpdate&&this.props.onUpdate(r.data,Object.assign({},r.layout),r._transitionData._frames));break;case s.EDITOR_ACTIONS.DELETE_TRANSFORM:(0,u.default)(n.transformIndex)&&n.traceIndex<r.data.length&&(1===r.data[n.traceIndex].transforms.length?delete r.data[n.traceIndex].transforms:r.data[n.traceIndex].transforms.splice(n.transformIndex,1),this.props.onUpdate&&this.props.onUpdate(r.data.slice(),r.layout,r._transitionData._frames));break;case s.EDITOR_ACTIONS.MOVE_TO:if(n.path&&!isNaN(n.fromIndex)&&!isNaN(n.toIndex)){function y(e){var t=e[n.fromIndex],r=e[n.toIndex];e[n.toIndex]=t,e[n.fromIndex]=r}"data"===n.path&&y(r.data),"layout.images"===n.path&&y(r.layout.images),"layout.shapes"===n.path&&y(r.layout.shapes),"layout.annotations"===n.path&&y(r.layout.annotations),"layout.mapbox.layers"===n.path&&y(r.layout[n.mapboxId].layers);var g=n.path.startsWith("data")?r.data.slice():r.data,b=n.path.startsWith("layout")?Object.assign({},r.layout):r.layout;this.props.onUpdate&&this.props.onUpdate(g,b,r._transitionData._frames)}break;default:throw new Error(this.localize("must specify an action type to handleEditorUpdate"))}}},{key:"render",value:function(){return o.default.createElement("div",{className:(0,i.bem)("editor_controls")+" plotly-editor--theme-provider"+"".concat(this.props.className?" ".concat(this.props.className):"")},o.default.createElement(p.ModalProvider,null,this.props.graphDiv&&this.props.graphDiv._fullLayout&&(this.props.children?this.props.children:o.default.createElement(r.default,null))))}}]),n}(o.Component);M.propTypes={advancedTraceTypeSelector:a.default.bool,afterAddTrace:a.default.func,afterDeleteAnnotation:a.default.func,afterDeleteShape:a.default.func,afterDeleteImage:a.default.func,afterDeleteTrace:a.default.func,afterUpdateLayout:a.default.func,afterUpdateTraces:a.default.func,beforeAddTrace:a.default.func,beforeDeleteAnnotation:a.default.func,beforeDeleteShape:a.default.func,beforeDeleteImage:a.default.func,beforeDeleteTrace:a.default.func,beforeUpdateLayout:a.default.func,beforeUpdateTraces:a.default.func,children:a.default.node,className:a.default.string,srcConverters:a.default.shape({toSrc:a.default.func.isRequired,fromSrc:a.default.func.isRequired}),dataSourceComponents:a.default.object,dataSourceOptions:a.default.array,dataSources:a.default.object,dictionaries:a.default.object,graphDiv:a.default.object,locale:a.default.string,onUpdate:a.default.func,plotly:a.default.object,showFieldTooltips:a.default.bool,traceTypesConfig:a.default.object,makeDefaultTrace:a.default.func,glByDefault:a.default.bool,mapBoxAccess:a.default.bool,fontOptions:a.default.array,chartHelp:a.default.object,customConfig:a.default.object},M.defaultProps={showFieldTooltips:!1,locale:"en",traceTypesConfig:{categories:function(e){return(0,f.categoryLayout)(e)},traces:function(e){return(0,f.traceTypes)(e)},complex:!0},fontOptions:s.DEFAULT_FONTS},M.childContextTypes={advancedTraceTypeSelector:a.default.bool,config:a.default.object,srcConverters:a.default.shape({toSrc:a.default.func.isRequired,fromSrc:a.default.func.isRequired}),data:a.default.array,dataSourceComponents:a.default.object,dataSourceOptions:a.default.array,dataSources:a.default.object,dictionaries:a.default.object,frames:a.default.array,fullData:a.default.array,fullLayout:a.default.object,graphDiv:a.default.any,layout:a.default.object,locale:a.default.string,localize:a.default.func,onUpdate:a.default.func,plotly:a.default.object,plotSchema:a.default.object,traceTypesConfig:a.default.object,showFieldTooltips:a.default.bool,glByDefault:a.default.bool,mapBoxAccess:a.default.bool,fontOptions:a.default.array,chartHelp:a.default.object,customConfig:a.default.object,hasValidCustomConfigVisibilityRules:a.default.bool};var S=M;t.default=S},"8bd3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M24.5 4.438l-.063-.063h-.063c-2.375-1.75-5.25-2.75-8.375-2.75s-6 1-8.375 2.75h-.063l-.063.063c-3.563 2.625-5.875 6.813-5.875 11.563 0 1.563.25 3 .688 4.438 0 0 .063 0 .063.063a14.302 14.302 0 0 0 13.625 9.875c6.313 0 11.688-4.125 13.625-9.813v-.063c.5-1.438.75-2.938.75-4.5 0-4.75-2.313-8.938-5.875-11.563zM16 4.25c2.125 0 4.063.563 5.813 1.5l-2.125 2.875C18.625 8.062 17.313 7.75 16 7.75a8.291 8.291 0 0 0-3.75.875L10.187 5.75c1.75-.938 3.688-1.5 5.813-1.5zm2.125 11.063l2.125-3c.875 1 1.438 2.25 1.438 3.688 0 .188-.063.313-.063.438zm2.688 3.625c-.813 1.25-2 2.188-3.5 2.563v-3.688zm-6.938-3.625l-3.5 1.125c0-.125-.063-.25-.063-.438 0-1.438.563-2.688 1.375-3.688zM4.25 16c0-3.25 1.313-6.188 3.438-8.313l.375-.375 2.063 2.813c-1.5 1.5-2.375 3.625-2.375 5.875 0 .438.063.875.125 1.25l-3.375 1.125c-.188-.75-.25-1.563-.25-2.375zm10.438 11.688a11.779 11.779 0 0 1-7-3.375c-1-1-1.813-2.188-2.375-3.438l3.375-1.125c1.125 2.313 3.375 3.938 6 4.375v3.563zm0-6.188a5.673 5.673 0 0 1-3.5-2.563l3.5-1.125zm-.875-10.75c.688-.25 1.375-.438 2.188-.438.75 0 1.5.188 2.188.438l-2.188 3zm10.5 13.563c-1.875 1.813-4.313 3.063-7 3.375v-3.563a8.226 8.226 0 0 0 6-4.375l3.375 1.125a11.696 11.696 0 0 1-2.375 3.438zm3.187-5.938l-3.375-1.125c.063-.375.125-.813.125-1.25 0-2.25-.875-4.375-2.375-5.875l2-2.813c.188.125.313.25.438.375A11.715 11.715 0 0 1 27.751 16c0 .813-.063 1.625-.25 2.375z"}))};t.default=u},"8c4f":function(e,t,n){"use strict";
/*!
* vue-router v3.3.4
* (c) 2020 Evan You
* @license MIT
*/function r(e,t){0}function a(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function o(e,t){return a(e)&&e._isRouter&&(null==t||e.type===t)}function i(e,t){for(var n in t)e[n]=t[n];return e}var l={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,r=t.children,a=t.parent,o=t.data;o.routerView=!0;var l=a.$createElement,u=n.name,c=a.$route,f=a._routerViewCache||(a._routerViewCache={}),p=0,d=!1;while(a&&a._routerRoot!==a){var h=a.$vnode?a.$vnode.data:{};h.routerView&&p++,h.keepAlive&&a._directInactive&&a._inactive&&(d=!0),a=a.$parent}if(o.routerViewDepth=p,d){var v=f[u],m=v&&v.component;return m?(v.configProps&&s(m,o,v.route,v.configProps),l(m,o,r)):l()}var y=c.matched[p],g=y&&y.components[u];if(!y||!g)return f[u]=null,l();f[u]={component:g},o.registerRouteInstance=function(e,t){var n=y.instances[u];(t&&n!==e||!t&&n===e)&&(y.instances[u]=t)},(o.hook||(o.hook={})).prepatch=function(e,t){y.instances[u]=t.componentInstance},o.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==y.instances[u]&&(y.instances[u]=e.componentInstance)};var b=y.props&&y.props[u];return b&&(i(f[u],{route:c,configProps:b}),s(g,o,c,b)),l(g,o,r)}};function s(e,t,n,r){var a=t.props=u(n,r);if(a){a=t.props=i({},a);var o=t.attrs=t.attrs||{};for(var l in a)e.props&&l in e.props||(o[l]=a[l],delete a[l])}}function u(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0;default:0}}var c=/[!'()*]/g,f=function(e){return"%"+e.charCodeAt(0).toString(16)},p=/%2C/g,d=function(e){return encodeURIComponent(e).replace(c,f).replace(p,",")},h=decodeURIComponent;function v(e,t,n){void 0===t&&(t={});var r,a=n||m;try{r=a(e||"")}catch(i){r={}}for(var o in t)r[o]=t[o];return r}function m(e){var t={};return e=e.trim().replace(/^(\?|#|&)/,""),e?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=h(n.shift()),a=n.length>0?h(n.join("=")):null;void 0===t[r]?t[r]=a:Array.isArray(t[r])?t[r].push(a):t[r]=[t[r],a]})),t):t}function y(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return d(t);if(Array.isArray(n)){var r=[];return n.forEach((function(e){void 0!==e&&(null===e?r.push(d(t)):r.push(d(t)+"="+d(e)))})),r.join("&")}return d(t)+"="+d(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var g=/\/?$/;function b(e,t,n,r){var a=r&&r.options.stringifyQuery,o=t.query||{};try{o=x(o)}catch(l){}var i={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:o,params:t.params||{},fullPath:k(t,a),matched:e?w(e):[]};return n&&(i.redirectedFrom=k(n,a)),Object.freeze(i)}function x(e){if(Array.isArray(e))return e.map(x);if(e&&"object"===typeof e){var t={};for(var n in e)t[n]=x(e[n]);return t}return e}var _=b(null,{path:"/"});function w(e){var t=[];while(e)t.unshift(e),e=e.parent;return t}function k(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var a=e.hash;void 0===a&&(a="");var o=t||y;return(n||"/")+o(r)+a}function T(e,t){return t===_?e===t:!!t&&(e.path&&t.path?e.path.replace(g,"")===t.path.replace(g,"")&&e.hash===t.hash&&E(e.query,t.query):!(!e.name||!t.name)&&(e.name===t.name&&e.hash===t.hash&&E(e.query,t.query)&&E(e.params,t.params)))}function E(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){var r=e[n],a=t[n];return"object"===typeof r&&"object"===typeof a?E(r,a):String(r)===String(a)}))}function O(e,t){return 0===e.path.replace(g,"/").indexOf(t.path.replace(g,"/"))&&(!t.hash||e.hash===t.hash)&&M(e.query,t.query)}function M(e,t){for(var n in t)if(!(n in e))return!1;return!0}function S(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var a=t.split("/");n&&a[a.length-1]||a.pop();for(var o=e.replace(/^\//,"").split("/"),i=0;i<o.length;i++){var l=o[i];".."===l?a.pop():"."!==l&&a.push(l)}return""!==a[0]&&a.unshift(""),a.join("/")}function C(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var a=e.indexOf("?");return a>=0&&(n=e.slice(a+1),e=e.slice(0,a)),{path:e,query:n,hash:t}}function A(e){return e.replace(/\/\//g,"/")}var P=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},L=Z,D=N,j=F,I=H,R=X,z=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function N(e,t){var n,r=[],a=0,o=0,i="",l=t&&t.delimiter||"/";while(null!=(n=z.exec(e))){var s=n[0],u=n[1],c=n.index;if(i+=e.slice(o,c),o=c+s.length,u)i+=u[1];else{var f=e[o],p=n[2],d=n[3],h=n[4],v=n[5],m=n[6],y=n[7];i&&(r.push(i),i="");var g=null!=p&&null!=f&&f!==p,b="+"===m||"*"===m,x="?"===m||"*"===m,_=n[2]||l,w=h||v;r.push({name:d||a++,prefix:p||"",delimiter:_,optional:x,repeat:b,partial:g,asterisk:!!y,pattern:w?W(w):y?".*":"[^"+U(_)+"]+?"})}}return o<e.length&&(i+=e.substr(o)),i&&r.push(i),r}function F(e,t){return H(N(e,t),t)}function B(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function V(e){return encodeURI(e).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function H(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"===typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",$(t)));return function(t,r){for(var a="",o=t||{},i=r||{},l=i.pretty?B:encodeURIComponent,s=0;s<e.length;s++){var u=e[s];if("string"!==typeof u){var c,f=o[u.name];if(null==f){if(u.optional){u.partial&&(a+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(P(f)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(f)+"`");if(0===f.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var p=0;p<f.length;p++){if(c=l(f[p]),!n[s].test(c))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(c)+"`");a+=(0===p?u.prefix:u.delimiter)+c}}else{if(c=u.asterisk?V(f):l(f),!n[s].test(c))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+c+'"');a+=u.prefix+c}}else a+=u}return a}}function U(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function W(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function q(e,t){return e.keys=t,e}function $(e){return e&&e.sensitive?"":"i"}function G(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return q(e,t)}function Y(e,t,n){for(var r=[],a=0;a<e.length;a++)r.push(Z(e[a],t,n).source);var o=new RegExp("(?:"+r.join("|")+")",$(n));return q(o,t)}function K(e,t,n){return X(N(e,n),t,n)}function X(e,t,n){P(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,a=!1!==n.end,o="",i=0;i<e.length;i++){var l=e[i];if("string"===typeof l)o+=U(l);else{var s=U(l.prefix),u="(?:"+l.pattern+")";t.push(l),l.repeat&&(u+="(?:"+s+u+")*"),u=l.optional?l.partial?s+"("+u+")?":"(?:"+s+"("+u+"))?":s+"("+u+")",o+=u}}var c=U(n.delimiter||"/"),f=o.slice(-c.length)===c;return r||(o=(f?o.slice(0,-c.length):o)+"(?:"+c+"(?=$))?"),o+=a?"$":r&&f?"":"(?="+c+"|$)",q(new RegExp("^"+o,$(n)),t)}function Z(e,t,n){return P(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?G(e,t):P(e)?Y(e,t,n):K(e,t,n)}L.parse=D,L.compile=j,L.tokensToFunction=I,L.tokensToRegExp=R;var J=Object.create(null);function Q(e,t,n){t=t||{};try{var r=J[e]||(J[e]=L.compile(e));return"string"===typeof t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(a){return""}finally{delete t[0]}}function ee(e,t,n,r){var a="string"===typeof e?{path:e}:e;if(a._normalized)return a;if(a.name){a=i({},e);var o=a.params;return o&&"object"===typeof o&&(a.params=i({},o)),a}if(!a.path&&a.params&&t){a=i({},a),a._normalized=!0;var l=i(i({},t.params),a.params);if(t.name)a.name=t.name,a.params=l;else if(t.matched.length){var s=t.matched[t.matched.length-1].path;a.path=Q(s,l,"path "+t.path)}else 0;return a}var u=C(a.path||""),c=t&&t.path||"/",f=u.path?S(u.path,c,n||a.append):c,p=v(u.query,a.query,r&&r.options.parseQuery),d=a.hash||u.hash;return d&&"#"!==d.charAt(0)&&(d="#"+d),{_normalized:!0,path:f,query:p,hash:d}}var te,ne=[String,Object],re=[String,Array],ae=function(){},oe={name:"RouterLink",props:{to:{type:ne,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:re,default:"click"}},render:function(e){var t=this,n=this.$router,r=this.$route,a=n.resolve(this.to,r,this.append),o=a.location,l=a.route,s=a.href,u={},c=n.options.linkActiveClass,f=n.options.linkExactActiveClass,p=null==c?"router-link-active":c,d=null==f?"router-link-exact-active":f,h=null==this.activeClass?p:this.activeClass,v=null==this.exactActiveClass?d:this.exactActiveClass,m=l.redirectedFrom?b(null,ee(l.redirectedFrom),null,n):l;u[v]=T(r,m),u[h]=this.exact?u[v]:O(r,m);var y=u[v]?this.ariaCurrentValue:null,g=function(e){ie(e)&&(t.replace?n.replace(o,ae):n.push(o,ae))},x={click:ie};Array.isArray(this.event)?this.event.forEach((function(e){x[e]=g})):x[this.event]=g;var _={class:u},w=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:s,route:l,navigate:g,isActive:u[h],isExactActive:u[v]});if(w){if(1===w.length)return w[0];if(w.length>1||!w.length)return 0===w.length?e():e("span",{},w)}if("a"===this.tag)_.on=x,_.attrs={href:s,"aria-current":y};else{var k=le(this.$slots.default);if(k){k.isStatic=!1;var E=k.data=i({},k.data);for(var M in E.on=E.on||{},E.on){var S=E.on[M];M in x&&(E.on[M]=Array.isArray(S)?S:[S])}for(var C in x)C in E.on?E.on[C].push(x[C]):E.on[C]=g;var A=k.data.attrs=i({},k.data.attrs);A.href=s,A["aria-current"]=y}else _.on=x}return e(this.tag,_,this.$slots.default)}};function ie(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&(void 0===e.button||0===e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function le(e){if(e)for(var t,n=0;n<e.length;n++){if(t=e[n],"a"===t.tag)return t;if(t.children&&(t=le(t.children)))return t}}function se(e){if(!se.installed||te!==e){se.installed=!0,te=e;var t=function(e){return void 0!==e},n=function(e,n){var r=e.$options._parentVnode;t(r)&&t(r=r.data)&&t(r=r.registerRouteInstance)&&r(e,n)};e.mixin({beforeCreate:function(){t(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",l),e.component("RouterLink",oe);var r=e.config.optionMergeStrategies;r.beforeRouteEnter=r.beforeRouteLeave=r.beforeRouteUpdate=r.created}}var ue="undefined"!==typeof window;function ce(e,t,n,r){var a=t||[],o=n||Object.create(null),i=r||Object.create(null);e.forEach((function(e){fe(a,o,i,e)}));for(var l=0,s=a.length;l<s;l++)"*"===a[l]&&(a.push(a.splice(l,1)[0]),s--,l--);return{pathList:a,pathMap:o,nameMap:i}}function fe(e,t,n,r,a,o){var i=r.path,l=r.name;var s=r.pathToRegexpOptions||{},u=de(i,a,s.strict);"boolean"===typeof r.caseSensitive&&(s.sensitive=r.caseSensitive);var c={path:u,regex:pe(u,s),components:r.components||{default:r.component},instances:{},name:l,parent:a,matchAs:o,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var a=o?A(o+"/"+r.path):void 0;fe(e,t,n,r,c,a)})),t[c.path]||(e.push(c.path),t[c.path]=c),void 0!==r.alias)for(var f=Array.isArray(r.alias)?r.alias:[r.alias],p=0;p<f.length;++p){var d=f[p];0;var h={path:d,children:r.children};fe(e,t,n,h,a,c.path||"/")}l&&(n[l]||(n[l]=c))}function pe(e,t){var n=L(e,[],t);return n}function de(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:A(t.path+"/"+e)}function he(e,t){var n=ce(e),r=n.pathList,a=n.pathMap,o=n.nameMap;function i(e){ce(e,r,a,o)}function l(e,n,i){var l=ee(e,n,!1,t),s=l.name;if(s){var u=o[s];if(!u)return c(null,l);var f=u.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!==typeof l.params&&(l.params={}),n&&"object"===typeof n.params)for(var p in n.params)!(p in l.params)&&f.indexOf(p)>-1&&(l.params[p]=n.params[p]);return l.path=Q(u.path,l.params,'named route "'+s+'"'),c(u,l,i)}if(l.path){l.params={};for(var d=0;d<r.length;d++){var h=r[d],v=a[h];if(ve(v.regex,l.path,l.params))return c(v,l,i)}}return c(null,l)}function s(e,n){var r=e.redirect,a="function"===typeof r?r(b(e,n,null,t)):r;if("string"===typeof a&&(a={path:a}),!a||"object"!==typeof a)return c(null,n);var i=a,s=i.name,u=i.path,f=n.query,p=n.hash,d=n.params;if(f=i.hasOwnProperty("query")?i.query:f,p=i.hasOwnProperty("hash")?i.hash:p,d=i.hasOwnProperty("params")?i.params:d,s){o[s];return l({_normalized:!0,name:s,query:f,hash:p,params:d},void 0,n)}if(u){var h=me(u,e),v=Q(h,d,'redirect route with path "'+h+'"');return l({_normalized:!0,path:v,query:f,hash:p},void 0,n)}return c(null,n)}function u(e,t,n){var r=Q(n,t.params,'aliased route with path "'+n+'"'),a=l({_normalized:!0,path:r});if(a){var o=a.matched,i=o[o.length-1];return t.params=a.params,c(i,t)}return c(null,t)}function c(e,n,r){return e&&e.redirect?s(e,r||n):e&&e.matchAs?u(e,n,e.matchAs):b(e,n,r,t)}return{match:l,addRoutes:i}}function ve(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var a=1,o=r.length;a<o;++a){var i=e.keys[a-1],l="string"===typeof r[a]?decodeURIComponent(r[a]):r[a];i&&(n[i.name||"pathMatch"]=l)}return!0}function me(e,t){return S(e,t.parent?t.parent.path:"/",!0)}var ye=ue&&window.performance&&window.performance.now?window.performance:Date;function ge(){return ye.now().toFixed(3)}var be=ge();function xe(){return be}function _e(e){return be=e}var we=Object.create(null);function ke(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=i({},window.history.state);return n.key=xe(),window.history.replaceState(n,"",t),window.addEventListener("popstate",Oe),function(){window.removeEventListener("popstate",Oe)}}function Te(e,t,n,r){if(e.app){var a=e.options.scrollBehavior;a&&e.app.$nextTick((function(){var o=Me(),i=a.call(e,t,n,r?o:null);i&&("function"===typeof i.then?i.then((function(e){je(e,o)})).catch((function(e){0})):je(i,o))}))}}function Ee(){var e=xe();e&&(we[e]={x:window.pageXOffset,y:window.pageYOffset})}function Oe(e){Ee(),e.state&&e.state.key&&_e(e.state.key)}function Me(){var e=xe();if(e)return we[e]}function Se(e,t){var n=document.documentElement,r=n.getBoundingClientRect(),a=e.getBoundingClientRect();return{x:a.left-r.left-t.x,y:a.top-r.top-t.y}}function Ce(e){return Le(e.x)||Le(e.y)}function Ae(e){return{x:Le(e.x)?e.x:window.pageXOffset,y:Le(e.y)?e.y:window.pageYOffset}}function Pe(e){return{x:Le(e.x)?e.x:0,y:Le(e.y)?e.y:0}}function Le(e){return"number"===typeof e}var De=/^#\d/;function je(e,t){var n="object"===typeof e;if(n&&"string"===typeof e.selector){var r=De.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(r){var a=e.offset&&"object"===typeof e.offset?e.offset:{};a=Pe(a),t=Se(r,a)}else Ce(e)&&(t=Ae(e))}else n&&Ce(e)&&(t=Ae(e));t&&window.scrollTo(t.x,t.y)}var Ie=ue&&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&&"function"===typeof window.history.pushState)}();function Re(e,t){Ee();var n=window.history;try{if(t){var r=i({},n.state);r.key=xe(),n.replaceState(r,"",e)}else n.pushState({key:_e(ge())},"",e)}catch(a){window.location[t?"replace":"assign"](e)}}function ze(e){Re(e,!0)}function Ne(e,t,n){var r=function(a){a>=e.length?n():e[a]?t(e[a],(function(){r(a+1)})):r(a+1)};r(0)}function Fe(e){return function(t,n,r){var o=!1,i=0,l=null;Be(e,(function(e,t,n,s){if("function"===typeof e&&void 0===e.cid){o=!0,i++;var u,c=We((function(t){Ue(t)&&(t=t.default),e.resolved="function"===typeof t?t:te.extend(t),n.components[s]=t,i--,i<=0&&r()})),f=We((function(e){var t="Failed to resolve async component "+s+": "+e;l||(l=a(e)?e:new Error(t),r(l))}));try{u=e(c,f)}catch(d){f(d)}if(u)if("function"===typeof u.then)u.then(c,f);else{var p=u.component;p&&"function"===typeof p.then&&p.then(c,f)}}})),o||r()}}function Be(e,t){return Ve(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Ve(e){return Array.prototype.concat.apply([],e)}var He="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ue(e){return e.__esModule||He&&"Module"===e[Symbol.toStringTag]}function We(e){var t=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var qe={redirected:1,aborted:2,cancelled:3,duplicated:4};function $e(e,t){return Xe(e,t,qe.redirected,'Redirected when going from "'+e.fullPath+'" to "'+Je(t)+'" via a navigation guard.')}function Ge(e,t){return Xe(e,t,qe.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".')}function Ye(e,t){return Xe(e,t,qe.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function Ke(e,t){return Xe(e,t,qe.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}function Xe(e,t,n,r){var a=new Error(r);return a._isRouter=!0,a.from=e,a.to=t,a.type=n,a}var Ze=["params","query","hash"];function Je(e){if("string"===typeof e)return e;if("path"in e)return e.path;var t={};return Ze.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}var Qe=function(e,t){this.router=e,this.base=et(t),this.current=_,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function et(e){if(!e)if(ue){var t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}function tt(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r;n++)if(e[n]!==t[n])break;return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}function nt(e,t,n,r){var a=Be(e,(function(e,r,a,o){var i=rt(e,t);if(i)return Array.isArray(i)?i.map((function(e){return n(e,r,a,o)})):n(i,r,a,o)}));return Ve(r?a.reverse():a)}function rt(e,t){return"function"!==typeof e&&(e=te.extend(e)),e.options[t]}function at(e){return nt(e,"beforeRouteLeave",it,!0)}function ot(e){return nt(e,"beforeRouteUpdate",it)}function it(e,t){if(t)return function(){return e.apply(t,arguments)}}function lt(e,t,n){return nt(e,"beforeRouteEnter",(function(e,r,a,o){return st(e,a,o,t,n)}))}function st(e,t,n,r,a){return function(o,i,l){return e(o,i,(function(e){"function"===typeof e&&r.push((function(){ut(e,t.instances,n,a)})),l(e)}))}}function ut(e,t,n,r){t[n]&&!t[n]._isBeingDestroyed?e(t[n]):r()&&setTimeout((function(){ut(e,t,n,r)}),16)}Qe.prototype.listen=function(e){this.cb=e},Qe.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Qe.prototype.onError=function(e){this.errorCbs.push(e)},Qe.prototype.transitionTo=function(e,t,n){var r=this,a=this.router.match(e,this.current);this.confirmTransition(a,(function(){var e=r.current;r.updateRoute(a),t&&t(a),r.ensureURL(),r.router.afterHooks.forEach((function(t){t&&t(a,e)})),r.ready||(r.ready=!0,r.readyCbs.forEach((function(e){e(a)})))}),(function(e){n&&n(e),e&&!r.ready&&(r.ready=!0,o(e,qe.redirected)?r.readyCbs.forEach((function(e){e(a)})):r.readyErrorCbs.forEach((function(t){t(e)})))}))},Qe.prototype.confirmTransition=function(e,t,n){var i=this,l=this.current,s=function(e){!o(e)&&a(e)&&(i.errorCbs.length?i.errorCbs.forEach((function(t){t(e)})):(r(!1,"uncaught error during route navigation:"),console.error(e))),n&&n(e)},u=e.matched.length-1,c=l.matched.length-1;if(T(e,l)&&u===c&&e.matched[u]===l.matched[c])return this.ensureURL(),s(Ge(l,e));var f=tt(this.current.matched,e.matched),p=f.updated,d=f.deactivated,h=f.activated,v=[].concat(at(d),this.router.beforeHooks,ot(p),h.map((function(e){return e.beforeEnter})),Fe(h));this.pending=e;var m=function(t,n){if(i.pending!==e)return s(Ye(l,e));try{t(e,l,(function(t){!1===t?(i.ensureURL(!0),s(Ke(l,e))):a(t)?(i.ensureURL(!0),s(t)):"string"===typeof t||"object"===typeof t&&("string"===typeof t.path||"string"===typeof t.name)?(s($e(l,e)),"object"===typeof t&&t.replace?i.replace(t):i.push(t)):n(t)}))}catch(r){s(r)}};Ne(v,m,(function(){var n=[],r=function(){return i.current===e},a=lt(h,n,r),o=a.concat(i.router.resolveHooks);Ne(o,m,(function(){if(i.pending!==e)return s(Ye(l,e));i.pending=null,t(e),i.router.app&&i.router.app.$nextTick((function(){n.forEach((function(e){e()}))}))}))}))},Qe.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},Qe.prototype.setupListeners=function(){},Qe.prototype.teardownListeners=function(){this.listeners.forEach((function(e){e()})),this.listeners=[]};var ct=function(e){function t(t,n){e.call(this,t,n),this._startLocation=ft(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Ie&&n;r&&this.listeners.push(ke());var a=function(){var n=e.current,a=ft(e.base);e.current===_&&a===e._startLocation||e.transitionTo(a,(function(e){r&&Te(t,e,n,!0)}))};window.addEventListener("popstate",a),this.listeners.push((function(){window.removeEventListener("popstate",a)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,a=this,o=a.current;this.transitionTo(e,(function(e){Re(A(r.base+e.fullPath)),Te(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,a=this,o=a.current;this.transitionTo(e,(function(e){ze(A(r.base+e.fullPath)),Te(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(ft(this.base)!==this.current.fullPath){var t=A(this.base+this.current.fullPath);e?Re(t):ze(t)}},t.prototype.getCurrentLocation=function(){return ft(this.base)},t}(Qe);function ft(e){var t=decodeURI(window.location.pathname);return e&&0===t.toLowerCase().indexOf(e.toLowerCase())&&(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var pt=function(e){function t(t,n,r){e.call(this,t,n),r&&dt(this.base)||ht()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=Ie&&n;r&&this.listeners.push(ke());var a=function(){var t=e.current;ht()&&e.transitionTo(vt(),(function(n){r&&Te(e.router,n,t,!0),Ie||gt(n.fullPath)}))},o=Ie?"popstate":"hashchange";window.addEventListener(o,a),this.listeners.push((function(){window.removeEventListener(o,a)}))}},t.prototype.push=function(e,t,n){var r=this,a=this,o=a.current;this.transitionTo(e,(function(e){yt(e.fullPath),Te(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,a=this,o=a.current;this.transitionTo(e,(function(e){gt(e.fullPath),Te(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;vt()!==t&&(e?yt(t):gt(t))},t.prototype.getCurrentLocation=function(){return vt()},t}(Qe);function dt(e){var t=ft(e);if(!/^\/#/.test(t))return window.location.replace(A(e+"/#"+t)),!0}function ht(){var e=vt();return"/"===e.charAt(0)||(gt("/"+e),!1)}function vt(){var e=window.location.href,t=e.indexOf("#");if(t<0)return"";e=e.slice(t+1);var n=e.indexOf("?");if(n<0){var r=e.indexOf("#");e=r>-1?decodeURI(e.slice(0,r))+e.slice(r):decodeURI(e)}else e=decodeURI(e.slice(0,n))+e.slice(n);return e}function mt(e){var t=window.location.href,n=t.indexOf("#"),r=n>=0?t.slice(0,n):t;return r+"#"+e}function yt(e){Ie?Re(mt(e)):window.location.hash=e}function gt(e){Ie?ze(mt(e)):window.location.replace(mt(e))}var bt=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){t.index=n,t.updateRoute(r)}),(function(e){o(e,qe.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Qe),xt=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=he(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!Ie&&!1!==e.fallback,this.fallback&&(t="hash"),ue||(t="abstract"),this.mode=t,t){case"history":this.history=new ct(this,e.base);break;case"hash":this.history=new pt(this,e.base,this.fallback);break;case"abstract":this.history=new bt(this,e.base);break;default:0}},_t={currentRoute:{configurable:!0}};function wt(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function kt(e,t,n){var r="hash"===n?"#"+t:t;return e?A(e+"/"+r):r}xt.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},_t.currentRoute.get=function(){return this.history&&this.history.current},xt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardownListeners()})),!this.app){this.app=e;var n=this.history;if(n instanceof ct||n instanceof pt){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},xt.prototype.beforeEach=function(e){return wt(this.beforeHooks,e)},xt.prototype.beforeResolve=function(e){return wt(this.resolveHooks,e)},xt.prototype.afterEach=function(e){return wt(this.afterHooks,e)},xt.prototype.onReady=function(e,t){this.history.onReady(e,t)},xt.prototype.onError=function(e){this.history.onError(e)},xt.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},xt.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!==typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},xt.prototype.go=function(e){this.history.go(e)},xt.prototype.back=function(){this.go(-1)},xt.prototype.forward=function(){this.go(1)},xt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},xt.prototype.resolve=function(e,t,n){t=t||this.history.current;var r=ee(e,t,n,this),a=this.match(r,t),o=a.redirectedFrom||a.fullPath,i=this.history.base,l=kt(i,o,this.mode);return{location:r,route:a,href:l,normalizedTo:r,resolved:a}},xt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==_&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(xt.prototype,_t),xt.install=se,xt.version="3.3.4",ue&&window.Vue&&window.Vue.use(xt),t["a"]=xt},"8c7e":function(e,t,n){"use strict";var r=n("dec3");function a(e,t){e.setMode("composite"),e.update(r.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)}e.exports=a},"8cb4":function(e,t,n){"use strict";var r=n("d8db"),a=55296,o=56319,i=56320,l=57343,s=/[\uD800-\uDFFF]/;function u(e){return a<=e&&e<=l}function c(e,t){if(0<=t&&t<e.length||r(!1),t+1===e.length)return!1;var n=e.charCodeAt(t),s=e.charCodeAt(t+1);return a<=n&&n<=o&&i<=s&&s<=l}function f(e){return s.test(e)}function p(e,t){return 1+u(e.charCodeAt(t))}function d(e){if(!f(e))return e.length;for(var t=0,n=0;n<e.length;n+=p(e,n))t++;return t}function h(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!f(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var a=0;if(t>0){for(;t>0&&a<r;t--)a+=p(e,a);if(a>=r)return""}else if(t<0){for(a=r;t<0&&0<a;t++)a-=p(e,a-1);a<0&&(a=0)}var o=r;if(n<r)for(o=a;n>0&&o<r;n--)o+=p(e,o);return e.substring(a,o)}function v(e,t,n){t=t||0,n=void 0===n?1/0:n||0,t<0&&(t=0),n<0&&(n=0);var r=Math.abs(n-t);return t=t<n?t:n,h(e,t,r)}function m(e){for(var t=[],n=0;n<e.length;n+=p(e,n))t.push(e.codePointAt(n));return t}var y={getCodePoints:m,getUTF16Length:p,hasSurrogateUnit:f,isCodeUnitInSurrogateRange:u,isSurrogatePair:c,strlen:d,substring:v,substr:h};e.exports=y},"8d19":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Aggregations=void 0;var r=c(n("ab5b")),a=s(n("d7bc")),o=n("c85e"),i=n("4578"),l=n("e419");function s(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return f="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},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=(0,i.connectAggregationToTransform)(o.PlotlySection),k=function(e){v(n,e);var t=y(n);function n(){return p(this,n),t.apply(this,arguments)}return h(n,[{key:"render",value:function(){var e=this.context.fullContainer.aggregations,t=void 0===e?[]:e,n=this.context.localize;return 0===t.length?null:r.default.createElement(o.PlotlySection,{name:n("Aggregations"),attr:"aggregations"},t.filter((function(e){return e.target&&null===e.target.match(/transforms\[\d*\]\./gi)})).map((function(e,t){var a=e.target;return r.default.createElement(w,{show:!0,key:t,aggregationIndex:t},r.default.createElement(o.Dropdown,{attr:"func",label:a,options:[{label:n("Count"),value:"count"},{label:n("Sum"),value:"sum"},{label:n("Average"),value:"avg"},{label:n("Median"),value:"median"},{label:n("Mode"),value:"mode"},{label:n("RMS"),value:"rms"},{label:n("Standard Deviation"),value:"stddev"},{label:n("Min"),value:"min"},{label:n("Max"),value:"max"},{label:n("First"),value:"first"},{label:n("Last"),value:"last"},{label:n("Change"),value:"change"},{label:n("Range"),value:"range"}],clearable:!1}))})))}}]),n}(r.Component);t.Aggregations=k,k.plotly_editor_traits={no_visibility_forcing:!0},k.contextTypes={fullContainer:a.default.object,localize:a.default.func};var T=function(e,t){var n=t.localize;return r.default.createElement(o.TraceAccordion,{traceFilterCondition:function(e){return l.TRANSFORMABLE_TRACES.includes(e.type)}},r.default.createElement(o.TransformAccordion,null,r.default.createElement(o.Radio,{attr:"enabled",options:[{label:n("Enabled"),value:!0},{label:n("Disabled"),value:!1}]}),r.default.createElement(o.DataSelector,{label:n("By"),attr:"groups"}),r.default.createElement(o.DataSelector,{label:n("Target"),attr:"target"}),r.default.createElement(o.FilterOperation,{label:n("Operator"),attr:"operation"}),r.default.createElement(o.FilterValue,{label:n("Value"),attr:"value"}),r.default.createElement(o.Radio,{attr:"order",options:[{label:n("Ascending"),value:"ascending"},{label:n("Descending"),value:"descending"}]}),r.default.createElement(k,null)))};T.contextTypes={localize:a.default.func};var E=T;t.default=E},"8d6a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M22 6c-2.188 0-4 1.813-4 4 0 1.5.813 2.75 2 3.438v.563c0 2-2 4-4 4-1.625 0-2.938.375-4 .938v-9.5c1.188-.688 2-1.938 2-3.438 0-2.188-1.75-4-4-4-2.188 0-4 1.813-4 4 0 1.5.813 2.75 2 3.438v13.125c-1.188.688-2 1.938-2 3.438 0 2.188 1.813 4 4 4 2.25 0 4-1.813 4-4 0-1.063-.375-2-1.063-2.75.625-.688 1.563-1.25 3.063-1.25 4 0 8-4 8-8v-.563c1.188-.688 2-2 2-3.438 0-2.25-1.75-4-4-4zM10 4c1.125 0 2 .938 2 2 0 1.125-.875 2-2 2-1.063 0-2-.875-2-2 0-1.063.938-2 2-2zm0 24c-1.063 0-2-.875-2-2 0-1.063.938-2 2-2 1.125 0 2 .938 2 2 0 1.125-.875 2-2 2zm12-16c-1.063 0-2-.875-2-2 0-1.063.938-2 2-2 1.125 0 2 .938 2 2 0 1.125-.875 2-2 2z"}))};t.default=u},"8d6a1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M27.625 32H5.812a.722.722 0 0 1-.75-.75V.75c0-.438.313-.75.75-.75h21.813c.438 0 .75.313.75.75v30.5c0 .438-.313.75-.75.75zM6.563 30.563h20.375V1.438H6.563zm.687-24.75H4.375c-.438 0-.75-.313-.75-.75s.313-.688.75-.688H7.25c.438 0 .75.25.75.688s-.313.75-.75.75zm0 4.375H4.375c-.438 0-.75-.313-.75-.75s.313-.688.75-.688H7.25c.438 0 .75.25.75.688s-.313.75-.75.75zm0 4.375H4.375c-.438 0-.75-.313-.75-.75s.313-.75.75-.75H7.25c.438 0 .75.313.75.75s-.313.75-.75.75zm0 4.375H4.375c-.438 0-.75-.313-.75-.75s.313-.75.75-.75H7.25c.438 0 .75.313.75.75s-.313.75-.75.75zm0 4.312H4.375c-.438 0-.75-.25-.75-.688s.313-.75.75-.75H7.25c.438 0 .75.313.75.75s-.313.688-.75.688zm0 4.375H4.375c-.438 0-.75-.25-.75-.688s.313-.75.75-.75H7.25c.438 0 .75.313.75.75s-.313.688-.75.688zM21.813 10.75c-2-.125-3.75 0-3.75 0v10.5h1.313v-4.063h2.438c2.063-.188 2.75-2.063 2.75-3.25 0-1.313-.688-3-2.75-3.188zm-.313 5.375h-2.125v-4.188H21.5c.625 0 1.625.563 1.625 2 0 1.5-1 2.188-1.625 2.188zm-5.062-4.5v-.875h-5.5v.875h2v8.75h-2v1h5.5v-1h-2.063v-8.75z"}))};t.default=u},"8daa":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleFocus=void 0;var r=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},a=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}}(),o=n("ab5b"),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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}function c(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.handleFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"span";return function(n){function o(){var e,t,n,r;s(this,o);for(var a=arguments.length,i=Array(a),l=0;l<a;l++)i[l]=arguments[l];return n=u(this,(e=o.__proto__||Object.getPrototypeOf(o)).call.apply(e,[this].concat(i))),t=n,n.state={focus:!1},n.handleFocus=function(){return n.setState({focus:!0})},n.handleBlur=function(){return n.setState({focus:!1})},r=t,u(n,r)}return c(o,n),a(o,[{key:"render",value:function(){return i.default.createElement(t,{onFocus:this.handleFocus,onBlur:this.handleBlur},i.default.createElement(e,r({},this.props,this.state)))}}]),o}(i.default.Component)}},"8de2":function(e,t,n){var r=n("8eeb"),a=n("9934");function o(e){return r(e,a(e))}e.exports=o},"8e5d":function(e,t,n){"use strict";function r(e){if(e=e||("undefined"!==typeof document?document:void 0),"undefined"===typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}e.exports=r},"8e5d5":function(e,t,n){"use strict";var r=n("e17a"),a=n("7f23"),o=n("22af"),i=n("dec3"),l=n("ef00"),s=n("0984"),u=n("5893"),c=n("d082"),f=n("6606"),p=n("8693"),d=n("8164"),h=s.isBrowser("IE"),v=20,m=!1,y=!1,g=null;function b(e){g||(g=new r(c(e)),g.start())}var x={onCompositionStart:function(e){y=!0,b(e)},onCompositionEnd:function(e){m=!1,y=!1,setTimeout((function(){m||x.resolveComposition(e)}),v)},onSelect:u,onKeyDown:function(e,t){if(!y)return x.resolveComposition(e),void e._onKeyDown(t);t.which!==l.RIGHT&&t.which!==l.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===l.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!y){var t=d(g).stopAndFlushMutations();g=null,m=!0;var n=i.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var l=o.decode(t),s=l.blockKey,u=l.decoratorKey,c=l.leafKey,f=n.getBlockTree(s).getIn([u,"leaves",c]),d=f.start,h=f.end,v=n.getSelection().merge({anchorKey:s,focusKey:s,anchorOffset:d,focusOffset:h,isBackward:!1}),m=p(r,v),y=r.getBlockForKey(s).getInlineStyleAt(d);r=a.replaceText(r,v,e,y,m),n=i.set(n,{currentContent:r})}));var l=f(n,c(e)),s=l.selectionState;e.restoreEditorDOM();var u=h?i.forceSelection(n,s):i.acceptSelection(n,s);e.update(i.push(u,r,"insert-characters"))}else e.update(n)}}};e.exports=x},"8eeb":function(e,t,n){var r=n("32b3"),a=n("872a");function o(e,t,n,o){var i=!n;n||(n={});var l=-1,s=t.length;while(++l<s){var u=t[l],c=o?o(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),i?a(n,u,c):r(n,u,c)}return n}e.exports=o},"8f20":function(e,t,n){"use strict";var r=n("7f23"),a=n("22af"),o=n("dec3"),i=n("0984"),l=n("1a7e"),s=l.notEmptyKey,u=n("91cf"),c=n("dc1a"),f=n("8164"),p=i.isEngine("Gecko"),d="\n\n";function h(e,t){switch(e){case"deleteContentBackward":return c(t)}return t}function v(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor,i=n.ownerDocument.defaultView.getSelection(),l=i.anchorNode,c=i.isCollapsed,v=(null===l||void 0===l?void 0:l.nodeType)!==Node.TEXT_NODE&&(null===l||void 0===l?void 0:l.nodeType)!==Node.ELEMENT_NODE;if(null!=l&&!v){if(l.nodeType===Node.TEXT_NODE&&(null!==l.previousSibling||null!==l.nextSibling)){var m=l.parentNode;if(null==m)return;l.nodeValue=m.textContent;for(var y=m.firstChild;null!=y;y=y.nextSibling)y!==l&&m.removeChild(y)}var g=l.textContent,b=e._latestEditorState,x=f(u(l)),_=a.decode(x),w=_.blockKey,k=_.decoratorKey,T=_.leafKey,E=b.getBlockTree(w).getIn([k,"leaves",T]),O=E.start,M=E.end,S=b.getCurrentContent(),C=S.getBlockForKey(w),A=C.getText().slice(O,M);if(g.endsWith(d)&&(g=g.slice(0,-1)),g!==A){var P,L,D,j,I=b.getSelection(),R=I.merge({anchorOffset:O,focusOffset:M,isBackward:!1}),z=C.getEntityAt(O),N=s(z)?S.getEntity(z):null,F=null!=N?N.getMutability():null,B="MUTABLE"===F,V=B?"spellcheck-change":"apply-entity",H=r.replaceText(S,R,g,C.getInlineStyleAt(O),B?C.getEntityAt(O):null);if(p)P=i.anchorOffset,L=i.focusOffset,D=O+Math.min(P,L),j=D+Math.abs(P-L),P=D,L=j;else{var U=g.length-A.length;D=I.getStartOffset(),j=I.getEndOffset(),P=c?j+U:D,L=j+U}var W=H.merge({selectionBefore:S.getSelectionAfter(),selectionAfter:I.merge({anchorOffset:P,focusOffset:L})});e.update(o.push(b,W,V))}else{var q=t.nativeEvent.inputType;if(q){var $=h(q,b);if($!==b)return e.restoreEditorDOM(),void e.update($)}}}}e.exports=v},"8f94":function(e,t,n){!function(t,r){e.exports=r(n("56b3"))}(0,(function(e){return function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/",t(t.s=3)}([function(t,n){t.exports=e},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=function(e){return e&&e.__esModule?e:{default:e}}(r),o=window.CodeMirror||a.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),r=1;r<arguments.length;r++){var a=arguments[r];if(null!=a)for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},writable:!0,configurable:!0}),t.default={name:"codemirror",data:function(){return{content:"",codemirror:null,cminstance:null}},props:{code:String,value:String,marker:Function,unseenLines:Array,name:{type:String,default:"codemirror"},placeholder:{type:String,default:""},merge:{type:Boolean,default:!1},options:{type:Object,default:function(){return{}}},events:{type:Array,default:function(){return[]}},globalOptions:{type:Object,default:function(){return{}}},globalEvents:{type:Array,default:function(){return[]}}},watch:{options:{deep:!0,handler:function(e){for(var t in e)this.cminstance.setOption(t,e[t])}},merge:function(){this.$nextTick(this.switchMerge)},code:function(e){this.handerCodeChange(e)},value:function(e){this.handerCodeChange(e)}},methods:{initialize:function(){var e=this,t=Object.assign({},this.globalOptions,this.options);this.merge?(this.codemirror=o.MergeView(this.$refs.mergeview,t),this.cminstance=this.codemirror.edit):(this.codemirror=o.fromTextArea(this.$refs.textarea,t),this.cminstance=this.codemirror,this.cminstance.setValue(this.code||this.value||this.content)),this.cminstance.on("change",(function(t){e.content=t.getValue(),e.$emit&&e.$emit("input",e.content)}));var n={};["scroll","changes","beforeChange","cursorActivity","keyHandled","inputRead","electricInput","beforeSelectionChange","viewportChange","swapDoc","gutterClick","gutterContextMenu","focus","blur","refresh","optionChange","scrollCursorIntoView","update"].concat(this.events).concat(this.globalEvents).filter((function(e){return!n[e]&&(n[e]=!0)})).forEach((function(t){e.cminstance.on(t,(function(){for(var n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];e.$emit.apply(e,[t].concat(r));var o=t.replace(/([A-Z])/g,"-$1").toLowerCase();o!==t&&e.$emit.apply(e,[o].concat(r))}))})),this.$emit("ready",this.codemirror),this.unseenLineMarkers(),this.refresh()},refresh:function(){var e=this;this.$nextTick((function(){e.cminstance.refresh()}))},destroy:function(){var e=this.cminstance.doc.cm.getWrapperElement();e&&e.remove&&e.remove()},handerCodeChange:function(e){if(e!==this.cminstance.getValue()){var t=this.cminstance.getScrollInfo();this.cminstance.setValue(e),this.content=e,this.cminstance.scrollTo(t.left,t.top)}this.unseenLineMarkers()},unseenLineMarkers:function(){var e=this;void 0!==this.unseenLines&&void 0!==this.marker&&this.unseenLines.forEach((function(t){var n=e.cminstance.lineInfo(t);e.cminstance.setGutterMarker(t,"breakpoints",n.gutterMarkers?null:e.marker())}))},switchMerge:function(){var e=this.cminstance.doc.history,t=this.cminstance.doc.cleanGeneration;this.options.value=this.cminstance.getValue(),this.destroy(),this.initialize(),this.cminstance.doc.history=e,this.cminstance.doc.cleanGeneration=t}},mounted:function(){this.initialize()},beforeDestroy:function(){this.destroy()}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),a=n.n(r);for(var o in r)["default","default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(o);var i=n(5),l=n(4),s=l(a.a,i.a,!1,null,null,null);t.default=s.exports},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.install=t.codemirror=t.CodeMirror=void 0;var a=n(0),o=r(a),i=n(2),l=r(i),s=window.CodeMirror||o.default,u=function(e,t){t&&(t.options&&(l.default.props.globalOptions.default=function(){return t.options}),t.events&&(l.default.props.globalEvents.default=function(){return t.events})),e.component(l.default.name,l.default)},c={CodeMirror:s,codemirror:l.default,install:u};t.default=c,t.CodeMirror=s,t.codemirror=l.default,t.install=u},function(e,t){e.exports=function(e,t,n,r,a,o){var i,l=e=e||{},s=typeof e.default;"object"!==s&&"function"!==s||(i=e,l=e.default);var u,c="function"==typeof l?l.options:l;if(t&&(c.render=t.render,c.staticRenderFns=t.staticRenderFns,c._compiled=!0),n&&(c.functional=!0),a&&(c._scopeId=a),o?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},c._ssrRegister=u):r&&(u=r),u){var f=c.functional,p=f?c.render:c.beforeCreate;f?(c._injectStyles=u,c.render=function(e,t){return u.call(t),p(e,t)}):c.beforeCreate=p?[].concat(p,u):[u]}return{esModule:i,exports:l,options:c}}},function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-codemirror",class:{merge:e.merge}},[e.merge?n("div",{ref:"mergeview"}):n("textarea",{ref:"textarea",attrs:{name:e.name,placeholder:e.placeholder}})])},a=[],o={render:r,staticRenderFns:a};t.a=o}])}))},"8fff":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M38 39V23l-11 4-9-3-11 3v12h31z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M38 21l-11 4-9-3-11 3V14l14 5L38 7v14z"}))};t.default=u},9039:function(e,t,n){"use strict";var r=n("61e5"),a=n("9452"),o=n("42fc"),i=n("7f23"),l=n("3d08"),s=n("dec3"),u=n("371e"),c=n("8693"),f=n("1ca4"),p=n("4f8d"),d=n("44af");function h(e,t){t.preventDefault();var n=new o(t.clipboardData);if(!n.isRichText()){var h=n.getFiles(),y=n.getText();if(h.length>0){if(e.props.handlePastedFiles&&p(e.props.handlePastedFiles(h)))return;return void f(h,(function(t){if(t=t||y,t){var n=e._latestEditorState,o=d(t),f=a.create({style:n.getCurrentInlineStyle(),entity:c(n.getCurrentContent(),n.getSelection())}),p=u.getCurrentBlockType(n),h=l.processText(o,f,p),v=r.createFromArray(h),m=i.replaceWithFragment(n.getCurrentContent(),n.getSelection(),v);e.update(s.push(n,m,"insert-fragment"))}}))}}var g=[],b=n.getText(),x=n.getHTML(),_=e._latestEditorState;if(e.props.formatPastedText){var w=e.props.formatPastedText(b,x),k=w.text,T=w.html;b=k,x=T}if(!e.props.handlePastedText||!p(e.props.handlePastedText(b,x,_))){if(b&&(g=d(b)),!e.props.stripPastedStyles){var E,O=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&O){if(-1!==(null===(E=x)||void 0===E?void 0:E.indexOf(e.getEditorKey()))||1===g.length&&1===O.size&&O.first().getText()===b)return void e.update(v(e._latestEditorState,O))}else if(O&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&m(g,O))return void e.update(v(e._latestEditorState,O));if(x){var M=l.processHTML(x,e.props.blockRenderMap);if(M){var S=M.contentBlocks,C=M.entityMap;if(S){var A=r.createFromArray(S);return void e.update(v(e._latestEditorState,A,C))}}}e.setClipboard(null)}if(g.length){var P=a.create({style:_.getCurrentInlineStyle(),entity:c(_.getCurrentContent(),_.getSelection())}),L=u.getCurrentBlockType(_),D=l.processText(g,P,L),j=r.createFromArray(D);e.update(v(e._latestEditorState,j))}}}function v(e,t,n){var r=i.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return s.push(e,r.set("entityMap",n),"insert-fragment")}function m(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}e.exports=h},"904e":function(e,t,n){"use strict";var r=n("ef00");function a(e){return e.which===r.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))}e.exports=a},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},9112:function(e,t,n){var r=n("83ab"),a=n("9bf2"),o=n("5c6c");e.exports=r?function(e,t,n){return a.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},9168:function(e,t,n){"use strict";n("da67");function r(e,t){var n=e.getSelection(),r=e.getCurrentContent(),a=n.getStartKey(),o=n.getStartOffset(),i=a,l=0;if(t>o){var s=r.getKeyBefore(a);if(null==s)i=a;else{i=s;var u=r.getBlockForKey(s);l=u.getText().length}}else l=o-t;return n.merge({focusKey:i,focusOffset:l,isBackward:!0})}e.exports=r},"91cf":function(e,t,n){"use strict";var r=n("174f"),a=n("cce4");function o(e){var t=e;while(t&&t!==r(e).documentElement){var n=a(t);if(null!=n)return n;t=t.parentNode}return null}e.exports=o},"91dc":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M0 5.313h5.313v5.375H0zm5.313 16V16H0v10.688h10.688v-5.375zm5.375-16h5.313v5.375h-5.313zm-5.375 5.375h5.375v5.313H5.313zm10.687 0h5.313v5.313H16zM10.688 16h5.313v5.313h-5.313zm16-10.687h-5.375v5.375h5.375v5.313h5.313V5.313zM21.313 16h5.375v5.313h-5.375zM16 21.313h5.313v5.375H16zm10.688 0h5.313v5.375h-5.313z"}))};t.default=u},"91e9":function(e,t){function n(e,t){return function(n){return e(t(n))}}e.exports=n},9252:function(e,t,n){"use strict";var r=n("10b4"),a=/^\w*$/,o=0,i=1,l=2,s=3,u=4;e.exports=function(e,t,n,c){var f,p,d;n=n||"name",c=c||"value";var h={};t&&t.length?(d=r(e,t),p=d.get()):p=e,t=t||"";var v={};if(p)for(f=0;f<p.length;f++)v[p[f][n]]=f;var m=a.test(c),y={set:function(e,t){var a=null===t?u:o;if(!p){if(!d||a===u)return;p=[],d.set(p)}var i=v[e];if(void 0===i){if(a===u)return;a|=s,i=p.length,v[e]=i}else t!==(m?p[i][c]:r(p[i],c).get())&&(a|=l);var f=p[i]=p[i]||{};return f[n]=e,m?f[c]=t:r(f,c).set(t),null!==t&&(a&=~u),h[i]=h[i]|a,y},get:function(e){if(p){var t=v[e];return void 0===t?void 0:m?p[t][c]:r(p[t],c).get()}},rename:function(e,t){var r=v[e];return void 0===r||(h[r]=h[r]|i,v[t]=r,delete v[e],p[r][n]=t),y},remove:function(e){var t=v[e];if(void 0===t)return y;var a=p[t];if(Object.keys(a).length>2)return h[t]=h[t]|l,y.set(e,null);if(m){for(f=t;f<p.length;f++)h[f]=h[f]|s;for(f=t;f<p.length;f++)v[p[f][n]]--;p.splice(t,1),delete v[e]}else r(a,c).set(null),h[t]=h[t]|l|u;return y},constructUpdate:function(){for(var e,a,o={},s=Object.keys(h),f=0;f<s.length;f++)a=s[f],e=t+"["+a+"]",p[a]?(h[a]&i&&(o[e+"."+n]=p[a][n]),h[a]&l&&(o[e+"."+c]=m?h[a]&u?null:p[a][c]:h[a]&u?null:r(p[a],c).get())):o[e]=null;return o}};return y}},9263:function(e,t,n){"use strict";var r=n("ad6d"),a=n("9f7f"),o=RegExp.prototype.exec,i=String.prototype.replace,l=o,s=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),u=a.UNSUPPORTED_Y||a.BROKEN_CARET,c=void 0!==/()??/.exec("")[1],f=s||c||u;f&&(l=function(e){var t,n,a,l,f=this,p=u&&f.sticky,d=r.call(f),h=f.source,v=0,m=e;return p&&(d=d.replace("y",""),-1===d.indexOf("g")&&(d+="g"),m=String(e).slice(f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==e[f.lastIndex-1])&&(h="(?: "+h+")",m=" "+m,v++),n=new RegExp("^(?:"+h+")",d)),c&&(n=new RegExp("^"+h+"$(?!\\s)",d)),s&&(t=f.lastIndex),a=o.call(p?n:f,m),p?a?(a.input=a.input.slice(v),a[0]=a[0].slice(v),a.index=f.lastIndex,f.lastIndex+=a[0].length):f.lastIndex=0:s&&a&&(f.lastIndex=f.global?a.index+a[0].length:t),c&&a&&a.length>1&&i.call(a[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)})),a}),e.exports=l},9306:function(e,t,n){"use strict";var r=n("66cb"),a={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},o=a.RdBu;function i(e,t){if(t||(t=o),!e)return t;function n(){try{e=a[e]||JSON.parse(e)}catch(n){e=t}}return"string"===typeof e&&(n(),"string"===typeof e&&n()),l(e)?e:t}function l(e){var t=0;if(!Array.isArray(e)||e.length<2)return!1;if(!e[0]||!e[e.length-1])return!1;if(0!==+e[0][0]||1!==+e[e.length-1][0])return!1;for(var n=0;n<e.length;n++){var a=e[n];if(2!==a.length||+a[0]<t||!r(a[1]).isValid())return!1;t=+a[0]}return!0}function s(e){return void 0!==a[e]||l(e)}e.exports={scales:a,defaultScale:o,get:i,isValid:s}},9308:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",stroke:"#dfe8f3",d:"M5.5 6H41v35.5H5.5zM5.5 11.2H41M5.5 16.4H41M5.5 21.1H41M5.5 26.3H41M5.5 31.4H41M5.5 36.6H41M10.7 41.4V6M15.8 41.5V6M20.5 41.5V6M25.7 41.5V6M30.9 41.5V6M36 41.5V6",strokeMiterlimit:"10",strokeWidth:".25"}),o.default.createElement("path",{d:"M0 0h46v46H0z",fill:"none"}),o.default.createElement("path",{d:"M31.1 27.4l-2.2 3.3-4.4 1.1-2.2-2.2H19l-6 1.1-3.3-2.2 3.7-4.4v-3.3h5l4 2.9 4.3-2.9 8.9 6.6z",fill:"#27d1f0",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round"}),o.default.createElement("path",{d:"M35.5 27.4l-8.9-6.6-4.3 2.9-4-2.9h-5l-2.8-1.7v-2.2l-1.1-1.1-1.1 1.1-1.1-1.1v-4.4h2.2l2.2-1.1h2.2l3.3 2.2h3.3l4.4-2.2 3.3 3.3-3.1 3.3h5.5v-2.2h3.3v1.1l1.1 1.1 1.1-1.1 3.3 3.3v3.3h-3.9v5zm-9.4 7.2L25 35.7h-1.1l.6-3.9-2.2-2.2H19l-6 1.1 7.6 3.9v2.2l3.3 2.2h2.2l1.1-1.1v-2.2z",fill:"#1d9bfb",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round"}))};t.default=u},9364:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"};function a(e){if(null==e)return e;var t={},n=!1,a=!0,o=!1,i=void 0;try{for(var l,s=Object.keys(e)[Symbol.iterator]();!(a=(l=s.next()).done);a=!0){var u=l.value,c=u;r.hasOwnProperty(u)&&(c=r[u],n=!0),t[c]=e[u]}}catch(f){o=!0,i=f}finally{try{!a&&s.return&&s.return()}finally{if(o)throw i}}return n?t:e}t.default=a},9371:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var r=u(n("ab5b")),a=l(n("d7bc")),o=n("4578"),i=n("e419");function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return c="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},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function _(e){var t=function(t){h(a,t);var n=m(a);function a(e,t){var r;return f(this,a),r=n.call(this,e,t),r.deleteShape=r.deleteShape.bind(g(r)),r.updateShape=r.updateShape.bind(g(r)),r.moveShape=r.moveShape.bind(g(r)),r.setLocals(e,t),r}return d(a,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.shapeIndex,r=t.container,a=t.fullContainer,o=r.shapes||[],i=a.shapes||[];this.container=o[n],this.fullContainer=i[n]}},{key:"getChildContext",value:function(){var e=this;return{getValObject:function(t){return e.context.getValObject?e.context.getValObject("shapes[].".concat(t)):null},updateContainer:this.updateShape,deleteContainer:this.deleteShape,container:this.container,fullContainer:this.fullContainer,moveContainer:this.moveShape}}},{key:"updateShape",value:function(e){var t={},n=this.props.shapeIndex;for(var r in e){var a="shapes[".concat(n,"].").concat(r);t[a]=e[r]}this.context.updateContainer(t)}},{key:"deleteShape",value:function(){this.context.onUpdate&&this.context.onUpdate({type:i.EDITOR_ACTIONS.DELETE_SHAPE,payload:{shapeIndex:this.props.shapeIndex}})}},{key:"moveShape",value:function(e){if(this.context.onUpdate){var t=this.props.shapeIndex,n="up"===e?t-1:t+1;this.context.onUpdate({type:i.EDITOR_ACTIONS.MOVE_TO,payload:{fromIndex:t,toIndex:n,path:"layout.shapes"}})}}},{key:"render",value:function(){return r.default.createElement(e,this.props)}}]),a}(r.Component);t.displayName="ShapeConnected".concat((0,o.getDisplayName)(e)),t.propTypes={shapeIndex:a.default.number.isRequired},t.contextTypes={container:a.default.object,fullContainer:a.default.object,data:a.default.array,onUpdate:a.default.func,updateContainer:a.default.func,getValObject:a.default.func},t.childContextTypes={updateContainer:a.default.func,deleteContainer:a.default.func,container:a.default.object,fullContainer:a.default.object,getValObject:a.default.func,moveContainer:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},"937b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n("ab5b")),a=n("4578"),o=f(n("5174")),i=f(n("7515")),l=f(n("d7bc")),s=f(n("ad9c")),u=n("8704"),c=n("e419");function f(e){return e&&e.__esModule?e:{default:e}}function p(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!==y(e)&&"function"!==typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function h(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){return y="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},y(e)}function g(e){return w(e)||_(e)||x(e)||b()}function b(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){if(e){if("string"===typeof e)return k(e,t);var n=Object.prototype.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)?k(e,t):void 0}}function _(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function w(e){if(Array.isArray(e))return k(e)}function k(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 T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a 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)}}function O(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),e}function M(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&&S(e,t)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function C(e){var t=L();return function(){var n,r=D(e);if(t){var a=D(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==y(t)&&"function"!==typeof t?P(e):t}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(){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}}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}var j=function(e){M(n,e);var t=C(n);function n(){return T(this,n),t.apply(this,arguments)}return O(n,[{key:"getAllGroups",value:function(){var e=this;return g(new Set(this.context.data.map((function(t){return t[e.props.attr]})))).filter((function(e){return Boolean(e)}))}},{key:"canAddGroup",value:function(){var e=this.props,t=e.fullContainer,n=e.attr,r=t[n],a=t.index;return t.index===c.MULTI_VALUED?0===this.getAllGroups().length:!r||this.context.fullData.some((function(e){return e.index!==a&&e[n]===r}))}},{key:"addAndUpdateGroup",value:function(){var e=this,t=this.context.fullData.map((function(t){return parseInt(t[e.props.attr],10)})).filter((function(e){return Number.isInteger(e)}));t.push(0);var n=Math.max.apply(Math,t);this.props.updatePlot(n+1)}},{key:"render",value:function(){var e=this,t=this.context.localize,n=this.props,a=n.attr,o=n.label,l=n.prefix,c=n.updatePlot,f=[{label:t("None"),value:""}],p=this.getAllGroups();p.forEach((function(e){return f.push({label:"".concat(l," ").concat(e),value:e})})),f.sort((function(e,t){return e.value-t.value}));var d=r.default.createElement(u.PlusIcon,null),h=this.canAddGroup()?r.default.createElement(s.default,{variant:"no-text",icon:d,onClick:function(){return e.addAndUpdateGroup()}}):r.default.createElement(s.default,{variant:"no-text--disabled",icon:d,onClick:function(){}});return r.default.createElement(i.default,{label:o,attr:a,clearable:!1,options:f,updatePlot:c,extraComponent:h})}}]),n}(r.Component);j.propTypes=v({attr:l.default.string,fullContainer:l.default.object,prefix:l.default.string},o.default.propTypes),j.contextTypes={localize:l.default.func,data:l.default.array,fullData:l.default.array},j.displayName="UnconnectedGroupCreator";var I=(0,a.connectToContainer)(j);t.default=I},9398:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("d837"),a=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=a.default},"93ed":function(e,t,n){var r=n("42454");function a(e){var t=r(this,e)["delete"](e);return this.size-=t?1:0,t}e.exports=a},9403:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M18,8C19.1,8 20,8.9 20,10V20C20,21.1 19.1,22 18,22H6C4.89,22 4,21.1 4,20V10C4,8.9 4.9,8 6,8H15V6C15,4.34 13.66,3 12,3C10.34,3 9,4.34 9,6H7C7,3.24 9.24,1 12,1C14.76,1 17,3.24 17,6V8H18M12,17C13.1,17 14,16.1 14,15C14,13.9 13.1,13 12,13C10.9,13 10,13.9 10,15C10,16.1 10.9,17 12,17Z"}))};e.exports=l},"940f":function(e,t,n){"use strict";var r=n("6e58");e.exports=function(e,t,n){var a=e.selectAll("g."+n.replace(/\s/g,".")).data(t,(function(e){return e[0].trace.uid}));a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var o=e.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each((function(e){e[0][o]=r.select(this)})),a}},9452:function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=n("24f7"),o=a.Map,i=a.OrderedSet,l=a.Record,s=i(),u={style:s,entity:null},c=l(u),f=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getStyle=function(){return this.get("style")},n.getEntity=function(){return this.get("entity")},n.hasStyle=function(e){return this.getStyle().includes(e)},t.applyStyle=function(e,n){var r=e.set("style",e.getStyle().add(n));return t.create(r)},t.removeStyle=function(e,n){var r=e.set("style",e.getStyle().remove(n));return t.create(r)},t.applyEntity=function(e,n){var r=e.getEntity()===n?e:e.set("entity",n);return t.create(r)},t.create=function(e){if(!e)return p;var n={style:s,entity:null},r=o(n).merge(e),a=d.get(r);if(a)return a;var i=new t(r);return d=d.set(r,i),i},t.fromJS=function(e){var n=e.style,r=e.entity;return new t({style:Array.isArray(n)?i(n):n,entity:Array.isArray(r)?i(r):r})},t}(c),p=new f,d=o([[o(u),p]]);f.EMPTY=p,e.exports=f},"94ca":function(e,t,n){var r=n("d039"),a=/#|\.prototype\./,o=function(e,t){var n=l[i(e)];return n==u||n!=s&&("function"==typeof t?r(t):!!t)},i=o.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=o.data={},s=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},"950a":function(e,t,n){var r=n("30c9");function a(e,t){return function(n,a){if(null==n)return n;if(!r(n))return e(n,a);var o=n.length,i=t?o:-1,l=Object(n);while(t?i--:++i<o)if(!1===a(l[i],i,l))break;return n}}e.exports=a},9520:function(e,t,n){var r=n("3729"),a=n("1a8c"),o="[object AsyncFunction]",i="[object Function]",l="[object GeneratorFunction]",s="[object Proxy]";function u(e){if(!a(e))return!1;var t=r(e);return t==i||t==l||t==o||t==s}e.exports=u},"95e6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("d7bc")),a=u(n("ab5b")),o=c(n("8297")),i=n("4578"),l=c(n("e209"));function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=function(e){v(n,e);var t=y(n);function n(e){var r;p(this,n),r=t.call(this,e);var a=r.computeMenuOptions(e),o=a.filter((function(e){return e.panels}))[0];return r.state={group:o.name,panel:o.panels[0]},r.setPanel=r.setPanel.bind(b(r)),r.renderSection=r.renderSection.bind(b(r)),r}return h(n,[{key:"setPanel",value:function(e,t){this.setState({group:e,panel:t})}},{key:"getChildContext",value:function(){return{setPanel:this.setPanel}}},{key:"renderSection",value:function(e,t){return e.type&&(e.type.plotly_editor_traits||{}).sidebar_element?(0,a.cloneElement)(e,{key:t}):a.default.createElement(o.default,{key:t,selectedGroup:this.state.group,selectedPanel:this.state.panel,group:e.name,panels:e.panels,onChangeGroup:this.setPanel})}},{key:"computeMenuOptions",value:function(e){var t,n=e.children,r=e.menuPanelOrder,o=[],i={},s=(0,l.default)(a.default.Children.toArray(n),r);return s.forEach((function(e){if(e){var n,r=e.props.group,a=e.props.name;if(r&&a)i.hasOwnProperty(r)?(t=i[r],n=o[t]):(i[r]=o.length,n={name:r,panels:[]},o.push(n)),n.panels.push(a);(e.type.plotly_editor_traits||{}).sidebar_element&&o.push(e)}})),o}},{key:"render",value:function(){var e=this,t=this.computeMenuOptions(this.props);return a.default.createElement("div",{className:(0,i.bem)("editor_controls","wrapper")},a.default.createElement("div",{className:(0,i.bem)("sidebar")},t.map(this.renderSection)),a.default.Children.map(this.props.children,(function(t,n){return null===t||e.state.group!==t.props.group||e.state.panel!==t.props.name?null:(0,a.cloneElement)(t,{key:n})})))}}]),n}(a.Component);w.propTypes={children:r.default.node,menuPanelOrder:r.default.array},w.childContextTypes={setPanel:r.default.func};var k=w;t.default=k},"95ee":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M32 6.438c0 3.563-2.875 6.5-6.438 6.5s-6.5-2.938-6.5-6.5C19.062 2.875 22 0 25.562 0S32 2.875 32 6.438zM11.563 8.875h5.75v-5.75h-5.75zM0 8.875h5.75v-5.75H0zM23.125 20.5h5.75v-5.813h-5.75zm0 11.5h5.75v-5.75h-5.75z"}))};t.default=u},9638:function(e,t){function n(e,t){return e===t||e!==e&&t!==t}e.exports=n},"966f":function(e,t,n){var r=n("7e64"),a=n("c05f"),o=1,i=2;function l(e,t,n,l){var s=n.length,u=s,c=!l;if(null==e)return!u;e=Object(e);while(s--){var f=n[s];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}while(++s<u){f=n[s];var p=f[0],d=e[p],h=f[1];if(c&&f[2]){if(void 0===d&&!(p in e))return!1}else{var v=new r;if(l)var m=l(d,h,p,e,t,v);if(!(void 0===m?a(h,d,o|i,l,v):m))return!1}}return!0}e.exports=l},"96b7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeClasses=void 0;var r=n("020f"),a=s(r),o=n("06444"),i=s(o),l=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 s(e){return e&&e.__esModule?e:{default:e}}var u=t.mergeClasses=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.default&&(0,i.default)(e.default)||{};return t.map((function(t){var r=e[t];return r&&(0,a.default)(r,(function(e,t){n[t]||(n[t]={}),n[t]=l({},n[t],r[t])})),t})),n};t.default=u},"971d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M29.375 28.375H5.062c-.75 0-1.438-.625-1.438-1.375V2.625c0-.563-.438-1-1-1s-1 .438-1 1V27c0 1.875 1.5 3.375 3.438 3.375h24.375c.563 0 1-.438 1-1s-.5-1-1.063-1zm-18.437-6.312c0 1-.813 1.75-1.75 1.75s-1.75-.75-1.75-1.75c0-.938.813-1.688 1.75-1.688s1.75.75 1.75 1.688zm6.312-9.25c0 1-.75 1.75-1.75 1.75-.938 0-1.688-.75-1.688-1.75 0-.938.75-1.688 1.688-1.688 1 0 1.75.75 1.75 1.688zm2.188 6.812c0 1-.75 1.75-1.688 1.75-1 0-1.75-.75-1.75-1.75 0-.938.75-1.688 1.75-1.688.938 0 1.688.75 1.688 1.688zm4.875-5.562c0 .938-.75 1.688-1.75 1.688-.938 0-1.688-.75-1.688-1.688s.75-1.75 1.688-1.75c1 0 1.75.813 1.75 1.75zM27 7.5c0 .938-.813 1.688-1.75 1.688S23.5 8.438 23.5 7.5s.813-1.75 1.75-1.75S27 6.563 27 7.5z"}))};t.default=u},"976e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deepCopyPublic=o,t.setMultiValuedContainer=i;var r=n("e419"),a=n("4578");function o(e){if("undefined"===typeof e)return e;var t=function(e,t){return e.startsWith("_")?0:t};return window.JSON.parse(window.JSON.stringify(e,t))}function i(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=e[n],s=t[n];if(("string"!==typeof n||"_"!==n.charAt(0)||"_group"===n)&&"function"!==typeof l&&"module"!==n&&l!==r.MULTI_VALUED)if(void 0===l)e[n]=s;else if("colorscale"===n)String(l)!==String(s)&&(e[n]=r.MULTI_VALUED);else if(Array.isArray(l)){if(!o.searchArrays)return;if(Array.isArray(s))for(var u=0;u<s.length;u++)i(l,s,u,o);else e[n]=r.MULTI_VALUED}else if((0,a.isPlainObject)(s)){if(!(0,a.isPlainObject)(l))throw new Error("tried to merge object into non-object: "+n);Object.keys(s).forEach((function(e){i(l,s,e,o)}))}else{if((0,a.isPlainObject)(l))throw new Error("tried to merge non-object into object: "+n);l!==s&&(e[n]=r.MULTI_VALUED)}}},"97d3":function(e,t,n){var r=n("48a0"),a=n("30c9");function o(e,t){var n=-1,o=a(e)?Array(e.length):[];return r(e,(function(e,r,a){o[++n]=t(e,r,a)})),o}e.exports=o},9825:function(e,t,n){"use strict";e.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},9840:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M12 26.313c0-.5-.188-.938-.5-1.25s-.75-.5-1.188-.5c-.5 0-.938.188-1.25.5s-.5.75-.5 1.25c0 .438.188.875.5 1.188s.75.5 1.25.5A1.71 1.71 0 0 0 12 26.313zm0-20.625A1.71 1.71 0 0 0 10.312 4c-.5 0-.938.188-1.25.5s-.5.75-.5 1.188c0 .5.188.938.5 1.25s.75.5 1.25.5c.438 0 .875-.188 1.188-.5s.5-.75.5-1.25zM23.438 8c0-.5-.188-.875-.5-1.188-.313-.375-.75-.5-1.25-.5-.438 0-.875.125-1.188.5-.313.313-.5.688-.5 1.188s.188.875.5 1.188c.313.375.75.5 1.188.5.5 0 .938-.125 1.25-.5a1.6 1.6 0 0 0 .5-1.188zm1.687 0c0 .625-.125 1.188-.438 1.75-.313.5-.75.938-1.25 1.188-.063 3.438-1.375 5.938-4.063 7.438-.813.438-2 .938-3.625 1.438-1.5.438-2.5.875-3 1.25s-.75 1-.75 1.813v.438c.5.313.938.75 1.25 1.25s.438 1.125.438 1.75c0 .938-.313 1.75-1 2.375-.625.688-1.438 1-2.375 1-1 0-1.813-.313-2.438-1-.688-.625-1-1.438-1-2.375 0-.625.125-1.25.438-1.75s.75-.938 1.25-1.25V8.69c-.5-.313-.938-.75-1.25-1.25s-.438-1.125-.438-1.75c0-.938.313-1.75 1-2.375.625-.688 1.438-1 2.438-1 .938 0 1.75.313 2.375 1 .688.625 1 1.438 1 2.375 0 .625-.125 1.25-.438 1.75s-.75.938-1.25 1.25v8.875c.625-.313 1.563-.688 2.75-1 .625-.25 1.188-.375 1.563-.563a7.07 7.07 0 0 0 1.25-.563c.438-.188.813-.438 1.063-.688s.5-.563.75-.938c.188-.313.375-.75.5-1.188.063-.5.125-1.063.125-1.688-.5-.25-.938-.688-1.25-1.188a3.464 3.464 0 0 1-.438-1.75c0-.938.313-1.75 1-2.438.625-.688 1.438-1 2.375-1 1 0 1.813.313 2.438 1 .688.688 1 1.5 1 2.438z"}))};t.default=u},9861:function(e,t,n){"use strict";n("e260");var r=n("23e7"),a=n("d066"),o=n("0d3b"),i=n("6eeb"),l=n("e2cc"),s=n("d44e"),u=n("9ed3"),c=n("69f3"),f=n("19aa"),p=n("5135"),d=n("0366"),h=n("f5df"),v=n("825a"),m=n("861d"),y=n("7c73"),g=n("5c6c"),b=n("9a1f"),x=n("35a1"),_=n("b622"),w=a("fetch"),k=a("Headers"),T=_("iterator"),E="URLSearchParams",O=E+"Iterator",M=c.set,S=c.getterFor(E),C=c.getterFor(O),A=/\+/g,P=Array(4),L=function(e){return P[e-1]||(P[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},D=function(e){try{return decodeURIComponent(e)}catch(t){return e}},j=function(e){var t=e.replace(A," "),n=4;try{return decodeURIComponent(t)}catch(r){while(n)t=t.replace(L(n--),D);return t}},I=/[!'()~]|%20/g,R={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},z=function(e){return R[e]},N=function(e){return encodeURIComponent(e).replace(I,z)},F=function(e,t){if(t){var n,r,a=t.split("&"),o=0;while(o<a.length)n=a[o++],n.length&&(r=n.split("="),e.push({key:j(r.shift()),value:j(r.join("="))}))}},B=function(e){this.entries.length=0,F(this.entries,e)},V=function(e,t){if(e<t)throw TypeError("Not enough arguments")},H=u((function(e,t){M(this,{type:O,iterator:b(S(e).entries),kind:t})}),"Iterator",(function(){var e=C(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n})),U=function(){f(this,U,E);var e,t,n,r,a,o,i,l,s,u=arguments.length>0?arguments[0]:void 0,c=this,d=[];if(M(c,{type:E,entries:d,updateURL:function(){},updateSearchParams:B}),void 0!==u)if(m(u))if(e=x(u),"function"===typeof e){t=e.call(u),n=t.next;while(!(r=n.call(t)).done){if(a=b(v(r.value)),o=a.next,(i=o.call(a)).done||(l=o.call(a)).done||!o.call(a).done)throw TypeError("Expected sequence with length 2");d.push({key:i.value+"",value:l.value+""})}}else for(s in u)p(u,s)&&d.push({key:s,value:u[s]+""});else F(d,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},W=U.prototype;l(W,{append:function(e,t){V(arguments.length,2);var n=S(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){V(arguments.length,1);var t=S(this),n=t.entries,r=e+"",a=0;while(a<n.length)n[a].key===r?n.splice(a,1):a++;t.updateURL()},get:function(e){V(arguments.length,1);for(var t=S(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){V(arguments.length,1);for(var t=S(this).entries,n=e+"",r=[],a=0;a<t.length;a++)t[a].key===n&&r.push(t[a].value);return r},has:function(e){V(arguments.length,1);var t=S(this).entries,n=e+"",r=0;while(r<t.length)if(t[r++].key===n)return!0;return!1},set:function(e,t){V(arguments.length,1);for(var n,r=S(this),a=r.entries,o=!1,i=e+"",l=t+"",s=0;s<a.length;s++)n=a[s],n.key===i&&(o?a.splice(s--,1):(o=!0,n.value=l));o||a.push({key:i,value:l}),r.updateURL()},sort:function(){var e,t,n,r=S(this),a=r.entries,o=a.slice();for(a.length=0,n=0;n<o.length;n++){for(e=o[n],t=0;t<n;t++)if(a[t].key>e.key){a.splice(t,0,e);break}t===n&&a.push(e)}r.updateURL()},forEach:function(e){var t,n=S(this).entries,r=d(e,arguments.length>1?arguments[1]:void 0,3),a=0;while(a<n.length)t=n[a++],r(t.value,t.key,this)},keys:function(){return new H(this,"keys")},values:function(){return new H(this,"values")},entries:function(){return new H(this,"entries")}},{enumerable:!0}),i(W,T,W.entries),i(W,"toString",(function(){var e,t=S(this).entries,n=[],r=0;while(r<t.length)e=t[r++],n.push(N(e.key)+"="+N(e.value));return n.join("&")}),{enumerable:!0}),s(U,E),r({global:!0,forced:!o},{URLSearchParams:U}),o||"function"!=typeof w||"function"!=typeof k||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,a=[e];return arguments.length>1&&(t=arguments[1],m(t)&&(n=t.body,h(n)===E&&(r=t.headers?new k(t.headers):new k,r.has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=y(t,{body:g(0,String(n)),headers:g(0,r)}))),a.push(t)),w.apply(this,a)}}),e.exports={URLSearchParams:U,getState:S}},9897:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20C20,21.1 19.1,22 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"}))};e.exports=l},9903:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Fold=void 0;var r=f(n("9c5c")),a=f(n("d7bc")),o=c(n("ab5b")),i=f(n("4d26")),l=n("8704"),s=n("4578");function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function m(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&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function g(e){var t=_();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=function(e){m(n,e);var t=g(n);function n(){var e;return d(this,n),e=t.call(this),e.foldVisible=!0,e}return v(n,[{key:"getChildContext",value:function(){return{foldInfo:this.props.foldInfo?this.props.foldInfo:null}}},{key:"render",value:function(){if(!this.foldVisible&&!this.props.messageIfEmpty)return null;var e=this.context,t=e.deleteContainer,n=e.moveContainer,a=this.props,u=a.canDelete,c=a.children,f=a.className,p=a.folded,d=a.foldInfo,h=a.toggleFold,v=a.hideHeader,m=a.icon,y=a.messageIfEmpty,g=a.name,b=a.canMoveUp,x=a.canMoveDown,_=(0,i.default)("fold__content",{"fold__content--noheader":v}),w=(0,i.default)("fold__top",{"fold__top--open":!p}),k=(0,i.default)("fold__top__arrow",{"fold__top__arrow--open":!p}),T=o.default.createElement("div",{className:k},o.default.createElement("div",{className:"fold__top__arrow__wrapper"},o.default.createElement(l.AngleDownIcon,null))),E=m?o.default.createElement(m,{className:"fold__top__icon"}):null,O=u&&"function"===typeof t?o.default.createElement("div",{className:"fold__top__delete js-fold__delete",onClick:function(e){e.stopPropagation(),t(d)}},o.default.createElement(l.CloseIcon,null)):null,M=(x||b)&&o.default.createElement("div",{className:"fold__top__moving-controls"},o.default.createElement("span",{className:"fold__top__moving-controls--up".concat(b?"":"--disabled"),onClick:function(e){if(e.stopPropagation(),b){if(!n||"function"!==typeof n)throw new Error("moveContainer must be a function");n("up")}}},o.default.createElement(l.AngleDownIcon,null)),o.default.createElement("span",{className:"fold__top__moving-controls--down".concat(x?"":"--disabled"),onClick:function(e){if(e.stopPropagation(),x){if(!n||"function"!==typeof n)throw new Error("moveContainer must be a function");n("down")}}},o.default.createElement(l.AngleDownIcon,null))),S=!v&&o.default.createElement("div",{className:w,onClick:h},o.default.createElement("div",{className:"fold__top__arrow-title"},T,E,o.default.createElement("div",{className:"fold__top__title"},(0,s.striptags)(g))),M,O),C=null;p||(C=this.foldVisible?o.default.createElement("div",{className:_},c):o.default.createElement("div",{className:_},o.default.createElement(r.default,{icon:m,messagePrimary:y})));var A=f?" "+f:"";return o.default.createElement("div",{className:"fold".concat(A)},S,C)}}]),n}(o.Component);t.Fold=k,k.plotly_editor_traits={foldable:!0},k.propTypes={canDelete:a.default.bool,children:a.default.node,className:a.default.string,folded:a.default.bool,foldInfo:a.default.object,toggleFold:a.default.func,hideHeader:a.default.bool,icon:a.default.oneOfType([a.default.node,a.default.func]),messageIfEmpty:a.default.string,name:a.default.string,canMoveUp:a.default.bool,canMoveDown:a.default.bool},k.contextTypes={deleteContainer:a.default.func},k.childContextTypes={foldInfo:a.default.object};var T=function(e){m(n,e);var t=g(n);function n(e,r){var a;return d(this,n),a=t.call(this,e,r),a.foldVisible=!1,a.determineVisibility(e,r),a}return v(n,[{key:"componentWillReceiveProps",value:function(e,t){this.determineVisibility(e,t)}},{key:"determineVisibility",value:function(e,t){var n=this;this.foldVisible=!1,o.default.Children.forEach(e.children,(function(e){if(e&&!n.foldVisible){if(e.props.attr){var r=(0,s.unpackPlotProps)(e.props,t);return e.type.modifyPlotProps&&e.type.modifyPlotProps(e.props,t,r),void(n.foldVisible=n.foldVisible||r.isVisible)}(e.type.plotly_editor_traits||{}).no_visibility_forcing||(n.foldVisible=!0)}}))}}]),n}(k);T.plotly_editor_traits={foldable:!0},T.contextTypes=Object.assign({deleteContainer:a.default.func,moveContainer:a.default.func},s.containerConnectedContextTypes);var E=T;t.default=E},"991c":function(e,t,n){(function(e){e(n("56b3"),n("ffda"))})((function(e){"use strict";var t,n,r,a,o={QUERY_DIV:";",ALIAS_KEYWORD:"AS"},i=e.Pos,l=e.cmpPos;function s(e){return"[object Array]"==Object.prototype.toString.call(e)}function u(t){var n=t.doc.modeOption;return"sql"===n&&(n="text/x-sql"),e.resolveMode(n).keywords}function c(t){var n=t.doc.modeOption;return"sql"===n&&(n="text/x-sql"),e.resolveMode(n).identifierQuote||"`"}function f(e){return"string"==typeof e?e:e.text}function p(e,t){return s(t)&&(t={columns:t}),t.text||(t.text=e),t}function d(e){var t={};if(s(e))for(var n=e.length-1;n>=0;n--){var r=e[n];t[f(r).toUpperCase()]=p(f(r),r)}else if(e)for(var a in e)t[a.toUpperCase()]=p(a,e[a]);return t}function h(e){return t[e.toUpperCase()]}function v(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function m(e,t){var n=e.length,r=f(t).substr(0,n);return e.toUpperCase()===r.toUpperCase()}function y(e,t,n,r){if(s(n))for(var a=0;a<n.length;a++)m(t,n[a])&&e.push(r(n[a]));else for(var o in n)if(n.hasOwnProperty(o)){var i=n[o];i=i&&!0!==i?i.displayText?{text:i.text,displayText:i.displayText}:i.text:o,m(t,i)&&e.push(r(i))}}function g(e){"."==e.charAt(0)&&(e=e.substr(1));for(var t=e.split(a+a),n=0;n<t.length;n++)t[n]=t[n].replace(new RegExp(a,"g"),"");return t.join(a)}function b(e){for(var t=f(e).split("."),n=0;n<t.length;n++)t[n]=a+t[n].replace(new RegExp(a,"g"),a+a)+a;var r=t.join(".");return"string"==typeof e?r:(e=v(e),e.text=r,e)}function x(e,r,o,l){var s=!1,u=[],c=r.start,f=!0;while(f)f="."==r.string.charAt(0),s=s||r.string.charAt(0)==a,c=r.start,u.unshift(g(r.string)),r=l.getTokenAt(i(e.line,r.start)),"."==r.string&&(f=!0,r=l.getTokenAt(i(e.line,r.start)));var p=u.join(".");y(o,p,t,(function(e){return s?b(e):e})),y(o,p,n,(function(e){return s?b(e):e})),p=u.pop();var d=u.join("."),m=!1,x=d;if(!h(d)){var _=d;d=w(d,l),d!==_&&(m=!0)}var k=h(d);return k&&k.columns&&(k=k.columns),k&&y(o,p,k,(function(e){var t=d;return 1==m&&(t=x),"string"==typeof e?e=t+"."+e:(e=v(e),e.text=t+"."+e.text),s?b(e):e})),c}function _(e,t){for(var n=e.split(/\s+/),r=0;r<n.length;r++)n[r]&&t(n[r].replace(/[,;]/g,""))}function w(e,t){var n=t.doc,r=n.getValue(),a=e.toUpperCase(),s="",u="",c=[],f={start:i(0,0),end:i(t.lastLine(),t.getLineHandle(t.lastLine()).length)},p=r.indexOf(o.QUERY_DIV);while(-1!=p)c.push(n.posFromIndex(p)),p=r.indexOf(o.QUERY_DIV,p+1);c.unshift(i(0,0)),c.push(i(t.lastLine(),t.getLineHandle(t.lastLine()).text.length));for(var d=null,v=t.getCursor(),m=0;m<c.length;m++){if((null==d||l(v,d)>0)&&l(v,c[m])<=0){f={start:d,end:c[m]};break}d=c[m]}if(f.start){var y=n.getRange(f.start,f.end,!1);for(m=0;m<y.length;m++){var g=y[m];if(_(g,(function(e){var t=e.toUpperCase();t===a&&h(s)&&(u=s),t!==o.ALIAS_KEYWORD&&(s=e)})),u)break}}return u}e.registerHelper("hint","sql",(function(e,o){t=d(o&&o.tables);var l=o&&o.defaultTable,s=o&&o.disableKeywords;n=l&&h(l),r=u(e),a=c(e),l&&!n&&(n=w(l,e)),n=n||[],n.columns&&(n=n.columns);var f,p,v,m=e.getCursor(),g=[],b=e.getTokenAt(m);if(b.end>m.ch&&(b.end=m.ch,b.string=b.string.slice(0,m.ch-b.start)),b.string.match(/^[.`"'\w@][\w$#]*$/g)?(v=b.string,f=b.start,p=b.end):(f=p=m.ch,v=""),"."==v.charAt(0)||v.charAt(0)==a)f=x(m,b,g,e);else{var _=function(e,t){return"object"===typeof e?e.className=t:e={text:e,className:t},e};y(g,v,n,(function(e){return _(e,"CodeMirror-hint-table CodeMirror-hint-default-table")})),y(g,v,t,(function(e){return _(e,"CodeMirror-hint-table")})),s||y(g,v,r,(function(e){return _(e.toUpperCase(),"CodeMirror-hint-keyword")}))}return{list:g,from:i(m.line,f),to:i(m.line,p)}}))}))},9934:function(e,t,n){var r=n("6fcd"),a=n("41c3"),o=n("30c9");function i(e){return o(e)?r(e,!0):a(e)}e.exports=i},9981:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20C4,21.1 4.9,22 6,22H18C19.1,22 20,21.1 20,20V8L14,2H6Z"}))};e.exports=l},"99af":function(e,t,n){"use strict";var r=n("23e7"),a=n("d039"),o=n("e8b5"),i=n("861d"),l=n("7b0b"),s=n("50c4"),u=n("8418"),c=n("65f0"),f=n("1dde"),p=n("b622"),d=n("2d00"),h=p("isConcatSpreadable"),v=9007199254740991,m="Maximum allowed index exceeded",y=d>=51||!a((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),g=f("concat"),b=function(e){if(!i(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)},x=!y||!g;r({target:"Array",proto:!0,forced:x},{concat:function(e){var t,n,r,a,o,i=l(this),f=c(i,0),p=0;for(t=-1,r=arguments.length;t<r;t++)if(o=-1===t?i:arguments[t],b(o)){if(a=s(o.length),p+a>v)throw TypeError(m);for(n=0;n<a;n++,p++)n in o&&u(f,p,o[n])}else{if(p>=v)throw TypeError(m);u(f,p++,o)}return f.length=p,f}})},"99cd":function(e,t){function n(e){return function(t,n,r){var a=-1,o=Object(t),i=r(t),l=i.length;while(l--){var s=i[e?l:++a];if(!1===n(o[s],s,o))break}return t}}e.exports=n},"99d3":function(e,t,n){(function(e){var r=n("585a"),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a,l=i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||l&&l.binding&&l.binding("util")}catch(t){}}();e.exports=s}).call(this,n("62e4")(e))},"99fb":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("ab5b")),a=i(n("d7bc")),o=i(n("4d26"));function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){d(n,e);var t=v(n);function n(e){var r;return c(this,n),r=t.call(this,e),r.onToggle=r.onToggle.bind(y(r)),r}return p(n,[{key:"onToggle",value:function(e){e.preventDefault(),this.props.onToggle(this.props.value)}},{key:"render",value:function(){var e=this.props,t=e.active,n=e.label,a=e.value,i=(0,o.default)("rich-text-editor__styleButton","rich-text-editor__styleButton__".concat(a),{"rich-text-editor__styleButton--active":t});return r.default.createElement("span",{className:"rich-text-editor__styleButton__wrapper"},r.default.createElement("span",{className:i,onMouseDown:this.onToggle,"data-role":"button","data-pressed":t},n))}}]),n}(r.Component);x.propTypes={active:a.default.bool,label:a.default.element.isRequired,onToggle:a.default.func.isRequired,value:a.default.string.isRequired};var _=x;t.default=_},"9a1f":function(e,t,n){var r=n("825a"),a=n("35a1");e.exports=function(e){var t=a(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},"9a31":function(e,t,n){"use strict";var r=n("d8db"),a="NEUTRAL",o="LTR",i="RTL",l=null;function s(e){return e===o||e===i}function u(e){return s(e)||r(!1),e===o?"ltr":"rtl"}function c(e,t){return s(e)||r(!1),s(t)||r(!1),e===t?null:u(e)}function f(e){l=e}function p(){f(o)}function d(){return l||this.initGlobalDir(),l||r(!1),l}var h={NEUTRAL:a,LTR:o,RTL:i,isStrong:s,getHTMLDir:u,getHTMLDirIfDifferent:c,setGlobalDir:f,initGlobalDir:p,getGlobalDir:d};e.exports=h},"9a64":function(e,t,n){"use strict";var r,a,o,i=n("7795").mod;function l(e,t,n,r,a,o,i,l){var s=n-e,u=a-e,c=i-a,f=r-t,p=o-t,d=l-o,h=s*d-c*f;if(0===h)return null;var v=(u*d-c*p)/h,m=(u*f-s*p)/h;return m<0||m>1||v<0||v>1?null:{x:e+s*v,y:t+f*v}}function s(e,t,n,r,a){var o=r*e+a*t;if(o<0)return r*r+a*a;if(o>n){var i=r-e,l=a-t;return i*i+l*l}var s=r*t-a*e;return s*s/n}t.segmentsIntersect=l,t.segmentDistance=function(e,t,n,r,a,o,i,u){if(l(e,t,n,r,a,o,i,u))return 0;var c=n-e,f=r-t,p=i-a,d=u-o,h=c*c+f*f,v=p*p+d*d,m=Math.min(s(c,f,h,a-e,o-t),s(c,f,h,i-e,u-t),s(p,d,v,e-a,t-o),s(p,d,v,n-a,r-o));return Math.sqrt(m)},t.getTextLocation=function(e,t,n,l){if(e===a&&l===o||(r={},a=e,o=l),r[n])return r[n];var s=e.getPointAtLength(i(n-l/2,t)),u=e.getPointAtLength(i(n+l/2,t)),c=Math.atan((u.y-s.y)/(u.x-s.x)),f=e.getPointAtLength(i(n,t)),p=(4*f.x+s.x+u.x)/6,d=(4*f.y+s.y+u.y)/6,h={x:p,y:d,theta:c};return r[n]=h,h},t.clearLocationCache=function(){a=null},t.getVisibleSegment=function(e,t,n){var r,a,o=t.left,i=t.right,l=t.top,s=t.bottom,u=0,c=e.getTotalLength(),f=c;function p(t){var n=e.getPointAtLength(t);0===t?r=n:t===c&&(a=n);var u=n.x<o?o-n.x:n.x>i?n.x-i:0,f=n.y<l?l-n.y:n.y>s?n.y-s:0;return Math.sqrt(u*u+f*f)}var d=p(u);while(d){if(u+=d+n,u>f)return;d=p(u)}d=p(f);while(d){if(f-=d+n,u>f)return;d=p(f)}return{min:u,max:f,len:f-u,total:c,isClosed:0===u&&f===c&&Math.abs(r.x-a.x)<.1&&Math.abs(r.y-a.y)<.1}},t.findPointOnPath=function(e,t,n,r){r=r||{};var a,o,i,l=r.pathLength||e.getTotalLength(),s=r.tolerance||.001,u=r.iterationLimit||30,c=e.getPointAtLength(0)[n]>e.getPointAtLength(l)[n]?-1:1,f=0,p=0,d=l;while(f<u){if(a=(p+d)/2,o=e.getPointAtLength(a),i=o[n]-t,Math.abs(i)<s)return o;c*i>0?d=a:p=a,f++}return o}},"9aff":function(e,t,n){var r=n("9638"),a=n("30c9"),o=n("c098"),i=n("1a8c");function l(e,t,n){if(!i(n))return!1;var l=typeof t;return!!("number"==l?a(n)&&o(t,n.length):"string"==l&&t in n)&&r(n[t],e)}e.exports=l},"9b02":function(e,t,n){var r=n("656b");function a(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}e.exports=a},"9b04":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 16 16"},e),o.default.createElement("path",{d:"M0 7c.617 0 1.197-.123 1.5-.5.303-.377.5-1.051.5-2V3c0-1.078.407-1.752.899-2.255C3.392.242 4.186 0 5.281 0H6v2l-.068.002c-.751 0-1.208.097-1.373.289s-.246.729-.246 1.611c0 1.127-.083 1.98-.25 2.558C3.896 7.037 3.64 7.548 3 8c.64.447.896.965 1.063 1.543.167.578.25 1.432.25 2.561 0 .884.082 1.421.246 1.614.164.192.622.289 1.373.289L6 14v2h-.719c-1.096 0-1.89-.233-2.382-.736S2 14.078 2 13v-1.5c0-.955-.197-1.626-.5-2C1.197 9.126.617 9.006 0 9V7zm16 2c-.617.006-1.199.126-1.5.5-.3.374-.5 1.045-.5 2V13c0 1.078-.312 1.761-.805 2.264S11.906 16 10.804 16H10v-2l.154.007c.756 0 1.217-.097 1.381-.289.164-.193.246-.73.246-1.614 0-1.129.083-1.982.25-2.561S12.366 8.447 13 8c-.634-.452-.802-.963-.969-1.541s-.25-1.43-.25-2.558c0-.882-.082-1.419-.246-1.611s-.625-.288-1.381-.288L10 2V0h.805c1.102 0 1.898.242 2.391.745C13.688 1.248 14 1.922 14 3v1.5c0 .949.2 1.623.5 2 .301.377.883.5 1.5.5v2z"}))};t.default=u},"9b3d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M1.313 13.375v-.063h21.375v4l9.313-8-9.313-8v4H0V24c4.5 0 8.25 1.625 10.313 4.438l-1.875.75 6.25 2.813 2.813-6.25-2.063.75c-2.75-4.563-7.938-7.375-14.125-7.75v-.063c9.938.188 15.688 2.25 21.375 7.625l-1.563 1.5 6.875.188.188-6.875-1.563 1.5c-6.813-6.5-13.813-9.063-25.313-9.25z"}))};t.default=u},"9b74":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";var t="CodeMirror-hint",n="CodeMirror-hint-active";function r(e,t){this.cm=e,this.options=t,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length;var n=this;e.on("cursorActivity",this.activityFunc=function(){n.cursorActivity()})}e.showHint=function(e,t,n){if(!t)return e.showHint(n);n&&n.async&&(t.async=!0);var r={hint:t};if(n)for(var a in n)r[a]=n[a];return e.showHint(r)},e.defineExtension("showHint",(function(t){t=i(this,this.getCursor("start"),t);var n=this.listSelections();if(!(n.length>1)){if(this.somethingSelected()){if(!t.hint.supportsSelection)return;for(var a=0;a<n.length;a++)if(n[a].head.line!=n[a].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var o=this.state.completionActive=new r(this,t);o.options.hint&&(e.signal(this,"startCompletion",this),o.update(!0))}})),e.defineExtension("closeHint",(function(){this.state.completionActive&&this.state.completionActive.close()}));var a=window.requestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||clearTimeout;function i(e,t,n){var r=e.options.hintOptions,a={};for(var o in h)a[o]=h[o];if(r)for(var o in r)void 0!==r[o]&&(a[o]=r[o]);if(n)for(var o in n)void 0!==n[o]&&(a[o]=n[o]);return a.hint.resolve&&(a.hint=a.hint.resolve(e,t)),a}function l(e){return"string"==typeof e?e:e.text}function s(e,t){var n={Up:function(){t.moveFocus(-1)},Down:function(){t.moveFocus(1)},PageUp:function(){t.moveFocus(1-t.menuSize(),!0)},PageDown:function(){t.moveFocus(t.menuSize()-1,!0)},Home:function(){t.setFocus(0)},End:function(){t.setFocus(t.length-1)},Enter:t.pick,Tab:t.pick,Esc:t.close},r=/Mac/.test(navigator.platform);r&&(n["Ctrl-P"]=function(){t.moveFocus(-1)},n["Ctrl-N"]=function(){t.moveFocus(1)});var a=e.options.customKeys,o=a?{}:n;function i(e,r){var a;a="string"!=typeof r?function(e){return r(e,t)}:n.hasOwnProperty(r)?n[r]:r,o[e]=a}if(a)for(var l in a)a.hasOwnProperty(l)&&i(l,a[l]);var s=e.options.extraKeys;if(s)for(var l in s)s.hasOwnProperty(l)&&i(l,s[l]);return o}function u(e,t){while(t&&t!=e){if("LI"===t.nodeName.toUpperCase()&&t.parentNode==e)return t;t=t.parentNode}}function c(r,a){this.completion=r,this.data=a,this.picked=!1;var o=this,i=r.cm,c=i.getInputField().ownerDocument,f=c.defaultView||c.parentWindow,p=this.hints=c.createElement("ul"),d=r.cm.options.theme;p.className="CodeMirror-hints "+d,this.selectedHint=a.selectedHint||0;for(var h=a.list,v=0;v<h.length;++v){var m=p.appendChild(c.createElement("li")),y=h[v],g=t+(v!=this.selectedHint?"":" "+n);null!=y.className&&(g=y.className+" "+g),m.className=g,y.render?y.render(m,a,y):m.appendChild(c.createTextNode(y.displayText||l(y))),m.hintId=v}var b=r.options.container||c.body,x=i.cursorCoords(r.options.alignWithWord?a.from:null),_=x.left,w=x.bottom,k=!0,T=0,E=0;if(b!==c.body){var O=-1!==["absolute","relative","fixed"].indexOf(f.getComputedStyle(b).position),M=O?b:b.offsetParent,S=M.getBoundingClientRect(),C=c.body.getBoundingClientRect();T=S.left-C.left-M.scrollLeft,E=S.top-C.top-M.scrollTop}p.style.left=_-T+"px",p.style.top=w-E+"px";var A=f.innerWidth||Math.max(c.body.offsetWidth,c.documentElement.offsetWidth),P=f.innerHeight||Math.max(c.body.offsetHeight,c.documentElement.offsetHeight);b.appendChild(p);var L=p.getBoundingClientRect(),D=L.bottom-P,j=p.scrollHeight>p.clientHeight+1,I=i.getScrollInfo();if(D>0){var R=L.bottom-L.top,z=x.top-(x.bottom-L.top);if(z-R>0)p.style.top=(w=x.top-R-E)+"px",k=!1;else if(R>P){p.style.height=P-5+"px",p.style.top=(w=x.bottom-L.top-E)+"px";var N=i.getCursor();a.from.ch!=N.ch&&(x=i.cursorCoords(N),p.style.left=(_=x.left-T)+"px",L=p.getBoundingClientRect())}}var F,B=L.right-A;if(B>0&&(L.right-L.left>A&&(p.style.width=A-5+"px",B-=L.right-L.left-A),p.style.left=(_=x.left-B-T)+"px"),j)for(var V=p.firstChild;V;V=V.nextSibling)V.style.paddingRight=i.display.nativeBarWidth+"px";(i.addKeyMap(this.keyMap=s(r,{moveFocus:function(e,t){o.changeActive(o.selectedHint+e,t)},setFocus:function(e){o.changeActive(e)},menuSize:function(){return o.screenAmount()},length:h.length,close:function(){r.close()},pick:function(){o.pick()},data:a})),r.options.closeOnUnfocus)&&(i.on("blur",this.onBlur=function(){F=setTimeout((function(){r.close()}),100)}),i.on("focus",this.onFocus=function(){clearTimeout(F)}));return i.on("scroll",this.onScroll=function(){var e=i.getScrollInfo(),t=i.getWrapperElement().getBoundingClientRect(),n=w+I.top-e.top,a=n-(f.pageYOffset||(c.documentElement||c.body).scrollTop);if(k||(a+=p.offsetHeight),a<=t.top||a>=t.bottom)return r.close();p.style.top=n+"px",p.style.left=_+I.left-e.left+"px"}),e.on(p,"dblclick",(function(e){var t=u(p,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),o.pick())})),e.on(p,"click",(function(e){var t=u(p,e.target||e.srcElement);t&&null!=t.hintId&&(o.changeActive(t.hintId),r.options.completeOnSingleClick&&o.pick())})),e.on(p,"mousedown",(function(){setTimeout((function(){i.focus()}),20)})),this.scrollToActive(),e.signal(a,"select",h[this.selectedHint],p.childNodes[this.selectedHint]),!0}function f(e,t){if(!e.somethingSelected())return t;for(var n=[],r=0;r<t.length;r++)t[r].supportsSelection&&n.push(t[r]);return n}function p(e,t,n,r){if(e.async)e(t,r,n);else{var a=e(t,n);a&&a.then?a.then(r):r(a)}}function d(t,n){var r,a=t.getHelpers(n,"hint");if(a.length){var o=function(e,t,n){var r=f(e,a);function o(a){if(a==r.length)return t(null);p(r[a],e,n,(function(e){e&&e.list.length>0?t(e):o(a+1)}))}o(0)};return o.async=!0,o.supportsSelection=!0,o}return(r=t.getHelper(t.getCursor(),"hintWords"))?function(t){return e.hint.fromList(t,{words:r})}:e.hint.anyword?function(t,n){return e.hint.anyword(t,n)}:function(){}}r.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&e.signal(this.data,"close"),this.widget&&this.widget.close(),e.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(t,n){var r=t.list[n],a=this;this.cm.operation((function(){r.hint?r.hint(a.cm,t,r):a.cm.replaceRange(l(r),r.from||t.from,r.to||t.to,"complete"),e.signal(t,"pick",r),a.cm.scrollIntoView()})),this.close()},cursorActivity:function(){this.debounce&&(o(this.debounce),this.debounce=0);var e=this.startPos;this.data&&(e=this.data.from);var t=this.cm.getCursor(),n=this.cm.getLine(t.line);if(t.line!=this.startPos.line||n.length-t.ch!=this.startLen-this.startPos.ch||t.ch<e.ch||this.cm.somethingSelected()||!t.ch||this.options.closeCharacters.test(n.charAt(t.ch-1)))this.close();else{var r=this;this.debounce=a((function(){r.update()})),this.widget&&this.widget.disable()}},update:function(e){if(null!=this.tick){var t=this,n=++this.tick;p(this.options.hint,this.cm,this.options,(function(r){t.tick==n&&t.finishUpdate(r,e)}))}},finishUpdate:function(t,n){this.data&&e.signal(this.data,"update");var r=this.widget&&this.widget.picked||n&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=t,t&&t.list.length&&(r&&1==t.list.length?this.pick(t,0):(this.widget=new c(this,t),e.signal(t,"shown")))}},c.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var e=this.completion.cm;this.completion.options.closeOnUnfocus&&(e.off("blur",this.onBlur),e.off("focus",this.onFocus)),e.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var e=this;this.keyMap={Enter:function(){e.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(t,r){if(t>=this.data.list.length?t=r?this.data.list.length-1:0:t<0&&(t=r?0:this.data.list.length-1),this.selectedHint!=t){var a=this.hints.childNodes[this.selectedHint];a&&(a.className=a.className.replace(" "+n,"")),a=this.hints.childNodes[this.selectedHint=t],a.className+=" "+n,this.scrollToActive(),e.signal(this.data,"select",this.data.list[this.selectedHint],a)}},scrollToActive:function(){var e=this.completion.options.scrollMargin||0,t=this.hints.childNodes[Math.max(0,this.selectedHint-e)],n=this.hints.childNodes[Math.min(this.data.list.length-1,this.selectedHint+e)],r=this.hints.firstChild;t.offsetTop<this.hints.scrollTop?this.hints.scrollTop=t.offsetTop-r.offsetTop:n.offsetTop+n.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=n.offsetTop+n.offsetHeight-this.hints.clientHeight+r.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1}},e.registerHelper("hint","auto",{resolve:d}),e.registerHelper("hint","fromList",(function(t,n){var r,a=t.getCursor(),o=t.getTokenAt(a),i=e.Pos(a.line,o.start),l=a;o.start<a.ch&&/\w/.test(o.string.charAt(a.ch-o.start-1))?r=o.string.substr(0,a.ch-o.start):(r="",i=a);for(var s=[],u=0;u<n.words.length;u++){var c=n.words[u];c.slice(0,r.length)==r&&s.push(c)}if(s.length)return{list:s,from:i,to:l}})),e.commands.autocomplete=e.showHint;var h={hint:e.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnUnfocus:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null};e.defineOption("hintOptions",null)}))},"9bbe":function(e,t,n){"use strict";e.exports={initODS:function(){},handleExtensionCausedError:function(){}}},"9bdd":function(e,t,n){var r=n("825a");e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(i){var o=e["return"];throw void 0!==o&&r(o.call(e)),i}}},"9bf2":function(e,t,n){var r=n("83ab"),a=n("0cfb"),o=n("825a"),i=n("c04e"),l=Object.defineProperty;t.f=r?l:function(e,t,n){if(o(e),t=i(t,!0),o(n),a)try{return l(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},"9c5c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n("d7bc")),a=i(n("ab5b"));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return 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},s(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function p(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&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=y();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){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}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var b=function(e){p(n,e);var t=h(n);function n(){return u(this,n),t.apply(this,arguments)}return f(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.icon,r=e.messagePrimary,o=e.messageSecondary;return a.default.createElement("div",{className:"fold__content__empty"},n?a.default.createElement("div",{className:"fold__content__empty__icon"},a.default.createElement(n,null)):null,r?a.default.createElement("div",{className:"fold__content__empty__message__primary"},r):null,o?a.default.createElement("div",{className:"fold__content__empty__message__secondary"},o):null,t||null)}}]),n}(a.Component);t.default=b,b.propTypes={messagePrimary:r.default.string,messageSecondary:r.default.string,children:r.default.node,icon:r.default.oneOfType([r.default.node,r.default.func])}},"9cb4":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M5.5,7C4.67,7 4,6.33 4,5.5C4,4.67 4.67,4 5.5,4C6.33,4 7,4.67 7,5.5C7,6.33 6.33,7 5.5,7M21.41,11.58L12.41,2.58C12.05,2.22 11.55,2 11,2H4C2.89,2 2,2.89 2,4V11C2,11.55 2.22,12.05 2.59,12.41L11.58,21.41C11.95,21.77 12.45,22 13,22C13.55,22 14.05,21.77 14.41,21.41L21.41,14.41C21.78,14.05 22,13.55 22,13C22,12.44 21.77,11.94 21.41,11.58Z"}))};e.exports=l},"9d6e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Twitter=void 0;var r=n("ab5b"),a=m(r),o=n("d7bc"),i=m(o),l=n("fc55"),s=m(l),u=n("dd61"),c=m(u),f=n("4245"),p=m(f),d=n("a7cc"),h=m(d),v=n("4ccf");function m(e){return e&&e.__esModule?e:{default:e}}var y=t.Twitter=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,o=e.colors,i=e.width,l=e.triangle,u=e.styles,f=void 0===u?{}:u,d=e.className,m=void 0===d?"":d,y=(0,s.default)((0,p.default)({default:{card:{width:i,background:"#fff",border:"0 solid rgba(0,0,0,0.25)",boxShadow:"0 1px 4px rgba(0,0,0,0.25)",borderRadius:"4px",position:"relative"},body:{padding:"15px 9px 9px 15px"},label:{fontSize:"18px",color:"#fff"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent #fff transparent",position:"absolute"},triangleShadow:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 9px 10px 9px",borderColor:"transparent transparent rgba(0,0,0,.1) transparent",position:"absolute"},hash:{background:"#F0F0F0",height:"30px",width:"30px",borderRadius:"4px 0 0 4px",float:"left",color:"#98A1A4",display:"flex",alignItems:"center",justifyContent:"center"},input:{width:"100px",fontSize:"14px",color:"#666",border:"0px",outline:"none",height:"28px",boxShadow:"inset 0 0 0 1px #F0F0F0",boxSizing:"content-box",borderRadius:"0 4px 4px 0",float:"left",paddingLeft:"8px"},swatch:{width:"30px",height:"30px",float:"left",borderRadius:"4px",margin:"0 6px 6px 0"},clear:{clear:"both"}},"hide-triangle":{triangle:{display:"none"},triangleShadow:{display:"none"}},"top-left-triangle":{triangle:{top:"-10px",left:"12px"},triangleShadow:{top:"-11px",left:"12px"}},"top-right-triangle":{triangle:{top:"-10px",right:"12px"},triangleShadow:{top:"-11px",right:"12px"}}},f),{"hide-triangle":"hide"===l,"top-left-triangle":"top-left"===l,"top-right-triangle":"top-right"===l}),g=function(e,n){h.default.isValidHex(e)&&t({hex:e,source:"hex"},n)};return a.default.createElement("div",{style:y.card,className:"twitter-picker "+m},a.default.createElement("div",{style:y.triangleShadow}),a.default.createElement("div",{style:y.triangle}),a.default.createElement("div",{style:y.body},(0,c.default)(o,(function(e,t){return a.default.createElement(v.Swatch,{key:t,color:e,hex:e,style:y.swatch,onClick:g,onHover:n,focusStyle:{boxShadow:"0 0 4px "+e}})})),a.default.createElement("div",{style:y.hash},"#"),a.default.createElement(v.EditableInput,{label:null,style:{input:y.input},value:r.replace("#",""),onChange:g}),a.default.createElement("div",{style:y.clear})))};y.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),triangle:i.default.oneOf(["hide","top-left","top-right"]),colors:i.default.arrayOf(i.default.string),styles:i.default.object},y.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}},t.default=(0,v.ColorWrap)(y)},"9da7":function(e,t,n){"use strict";var r=n("6e58"),a=n("19b2"),o=[];e.exports=function(e,t){if(-1===o.indexOf(e)){o.push(e);var n=1e3;a(t)?n=t:"long"===t&&(n=3e3);var i=r.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var l=i.selectAll(".notifier-note").data(o);l.enter().append("div").classed("notifier-note",!0).style("opacity",0).each((function(e){var a=r.select(this);a.append("button").classed("notifier-close",!0).html("&times;").on("click",(function(){a.transition().call(s)}));for(var o=a.append("p"),i=e.split(/<br\s*\/?>/g),l=0;l<i.length;l++)l&&o.append("br"),o.append("span").text(i[l]);"stick"===t?a.transition().duration(350).style("opacity",1):a.transition().duration(700).style("opacity",1).transition().delay(n).call(s)}))}function s(e){e.duration(700).style("opacity",0).each("end",(function(e){var t=o.indexOf(e);-1!==t&&o.splice(t,1),r.select(this).remove()}))}}},"9e69":function(e,t,n){var r=n("2b3e"),a=r.Symbol;e.exports=a},"9e8e":function(e,t,n){"use strict";t.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",role:"style",editType:"style",description:["Sets the dash style of lines. Set to a dash type string","(*solid*, *dot*, *dash*, *longdash*, *dashdot*, or *longdashdot*)","or a dash length list in px (eg *5px,10px,2px,2px*)."].join(" ")}},"9ed3":function(e,t,n){"use strict";var r=n("ae93").IteratorPrototype,a=n("7c73"),o=n("5c6c"),i=n("d44e"),l=n("3f8c"),s=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=a(r,{next:o(1,n)}),i(e,u,!1,!0),l[u]=s,e}},"9f00":function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z"}))};e.exports=l},"9f7f":function(e,t,n){"use strict";var r=n("d039");function a(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r((function(){var e=a("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),t.BROKEN_CARET=r((function(){var e=a("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},"9fc2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M32 20h6v6h-6zm-12-6h6v6h-6zm-6 6h6v6h-6zm0 12h6v6h-6zm6 0h6v6h-6zm12 0h6v6h-6zm-6-12h6v6h-6z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M26 14h6v6h-6zm6 0h6v6h-6zm-12 6h6v6h-6zM8 20h6v6H8z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M14 14h6v6h-6z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M8 14h6v6H8z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M26 26h6v6h-6zM8 26h6v6H8z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M20 26h6v6h-6zm12 0h6v6h-6zm-18 0h6v6h-6zM26 8h6v6h-6z"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M8 8h6v6H8zm12 0h6v6h-6zm12 0h6v6h-6z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M14 8h6v6h-6zM8 32h6v6H8zm18 0h6v6h-6z"}))};t.default=u},a029:function(e,t,n){var r=n("087d"),a=n("2dcb"),o=n("32f4"),i=n("d327"),l=Object.getOwnPropertySymbols,s=l?function(e){var t=[];while(e)r(t,o(e)),e=a(e);return t}:i;e.exports=s},a05a:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M8,5.14V19.14L19,12.14L8,5.14Z"}))};e.exports=l},a0f2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Compact=void 0;var r=n("ab5b"),a=x(r),o=n("d7bc"),i=x(o),l=n("fc55"),s=x(l),u=n("dd61"),c=x(u),f=n("4245"),p=x(f),d=n("a7cc"),h=x(d),v=n("4ccf"),m=n("6504"),y=x(m),g=n("f09f"),b=x(g);function x(e){return e&&e.__esModule?e:{default:e}}var _=t.Compact=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.colors,o=e.hex,i=e.rgb,l=e.styles,u=void 0===l?{}:l,f=e.className,d=void 0===f?"":f,m=(0,s.default)((0,p.default)({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},u)),g=function(e,n){e.hex?h.default.isValidHex(e.hex)&&t({hex:e.hex,source:"hex"},n):t(e,n)};return a.default.createElement(v.Raised,{style:m.Compact,styles:u},a.default.createElement("div",{style:m.compact,className:"compact-picker "+d},a.default.createElement("div",null,(0,c.default)(r,(function(e){return a.default.createElement(y.default,{key:e,color:e,active:e.toLowerCase()===o,onClick:g,onSwatchHover:n})})),a.default.createElement("div",{style:m.clear})),a.default.createElement(b.default,{hex:o,rgb:i,onChange:g})))};_.propTypes={colors:i.default.arrayOf(i.default.string),styles:i.default.object},_.defaultProps={colors:["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#cccccc","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"],styles:{}},t.default=(0,v.ColorWrap)(_)},a1c8:function(e,t,n){"use strict";var r=n("7f23"),a=n("dec3"),o=n("0d82");function i(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var i,l,s=t.getAnchorKey(),u=e.getCurrentContent(),c=u.getBlockForKey(s),f=c.getLength();if(f<=1)return e;n===f?(i=t.set("anchorOffset",n-1),l=t):(i=t.set("focusOffset",n+1),l=i.set("anchorOffset",n+1));var p=o(u,i),d=r.removeRange(u,i,"backward"),h=d.getSelectionAfter(),v=h.getAnchorOffset()-1,m=h.merge({anchorOffset:v,focusOffset:v}),y=r.replaceWithFragment(d,m,p),g=a.push(e,y,"insert-fragment");return a.acceptSelection(g,l)}e.exports=i},a1e2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M30.375 28.688H1.625L16 1.188zM3.75 27.313h24.375L16 4.125zM18.688 16c0 .75-.625 1.313-1.375 1.313C16.625 17.313 16 16.75 16 16s.625-1.313 1.313-1.313c.75 0 1.375.563 1.375 1.313zm2.625 4c0 .75-.563 1.313-1.313 1.313S18.687 20.75 18.687 20s.563-1.313 1.313-1.313 1.313.563 1.313 1.313zm-12 4c0 .75-.563 1.313-1.313 1.313S6.687 24.75 6.687 24 7.25 22.687 8 22.687 9.313 23.25 9.313 24zm8-12c0 .75-.563 1.313-1.313 1.313S14.687 12.75 14.687 12s.563-1.313 1.313-1.313 1.313.563 1.313 1.313zm-4 8c0 .75-.563 1.313-1.313 1.313S10.687 20.75 10.687 20s.563-1.313 1.313-1.313 1.313.563 1.313 1.313zm0 5.313c0 .75-.563 1.375-1.313 1.375s-1.313-.625-1.313-1.375c0-.688.563-1.313 1.313-1.313s1.313.625 1.313 1.313zM24 24a1.32 1.32 0 0 1-1.313 1.313c-.75 0-1.375-.563-1.375-1.313s.625-1.313 1.375-1.313A1.32 1.32 0 0 1 24 24z"}))};t.default=u},a211:function(e,t,n){"use strict";function r(e){return function(){return e}}var a=function(){};a.thatReturns=r,a.thatReturnsFalse=r(!1),a.thatReturnsTrue=r(!0),a.thatReturnsNull=r(null),a.thatReturnsThis=function(){return this},a.thatReturnsArgument=function(e){return e},e.exports=a},a23e:function(e,t,n){"use strict";function r(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var a=r,o={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},i=o;function l(e){var t,n=e.length,r=n^n,a=0;while(n>=4)t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),t^=t>>>24,t=1540483477*(65535&t)+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^t,n-=4,++a;switch(n){case 3:r^=(255&e.charCodeAt(a+2))<<16;case 2:r^=(255&e.charCodeAt(a+1))<<8;case 1:r^=255&e.charCodeAt(a),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)}return r^=r>>>13,r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16),r^=r>>>15,(r>>>0).toString(36)}var s=l;function u(e){function t(e,r,s,u,c){for(var d,h,v,m,y,_=0,k=0,T=0,E=0,O=0,M=0,D=v=d=0,I=0,z=0,N=0,F=0,B=s.length,V=B-1,H="",U="",W="",q="";I<B;){if(h=s.charCodeAt(I),I===V&&0!==k+E+T+_&&(0!==k&&(h=47===k?10:47),E=T=_=0,B++,V++),0===k+E+T+_){if(I===V&&(0<z&&(H=H.replace(p,"")),0<H.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:H+=s.charAt(I)}h=59}switch(h){case 123:for(H=H.trim(),d=H.charCodeAt(0),v=1,F=++I;I<B;){switch(h=s.charCodeAt(I)){case 123:v++;break;case 125:v--;break;case 47:switch(h=s.charCodeAt(I+1)){case 42:case 47:e:{for(D=I+1;D<V;++D)switch(s.charCodeAt(D)){case 47:if(42===h&&42===s.charCodeAt(D-1)&&I+2!==D){I=D+1;break e}break;case 10:if(47===h){I=D+1;break e}}I=D}}break;case 91:h++;case 40:h++;case 34:case 39:for(;I++<V&&s.charCodeAt(I)!==h;);}if(0===v)break;I++}switch(v=s.substring(F,I),0===d&&(d=(H=H.replace(f,"").trim()).charCodeAt(0)),d){case 64:switch(0<z&&(H=H.replace(p,"")),h=H.charCodeAt(1),h){case 100:case 109:case 115:case 45:z=r;break;default:z=L}if(v=t(r,z,v,h,c+1),F=v.length,0<j&&(z=n(L,H,N),y=l(3,v,z,r,C,S,F,h,c,u),H=z.join(""),void 0!==y&&0===(F=(v=y.trim()).length)&&(h=0,v="")),0<F)switch(h){case 115:H=H.replace(w,i);case 100:case 109:case 45:v=H+"{"+v+"}";break;case 107:H=H.replace(g,"$1 $2"),v=H+"{"+v+"}",v=1===P||2===P&&o("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=H+v,112===u&&(U+=v,v="")}else v="";break;default:v=t(r,n(r,H,N),v,u,c+1)}W+=v,v=N=z=D=d=0,H="",h=s.charCodeAt(++I);break;case 125:case 59:if(H=(0<z?H.replace(p,""):H).trim(),1<(F=H.length))switch(0===D&&(d=H.charCodeAt(0),45===d||96<d&&123>d)&&(F=(H=H.replace(" ",":")).length),0<j&&void 0!==(y=l(1,H,r,e,C,S,U.length,u,c,u))&&0===(F=(H=y.trim()).length)&&(H="\0\0"),d=H.charCodeAt(0),h=H.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){q+=H+s.charAt(I);break}default:58!==H.charCodeAt(F-1)&&(U+=a(H,d,h,H.charCodeAt(2)))}N=z=D=d=0,H="",h=s.charCodeAt(++I)}}switch(h){case 13:case 10:47===k?k=0:0===1+d&&107!==u&&0<H.length&&(z=1,H+="\0"),0<j*R&&l(0,H,r,e,C,S,U.length,u,c,u),S=1,C++;break;case 59:case 125:if(0===k+E+T+_){S++;break}default:switch(S++,m=s.charAt(I),h){case 9:case 32:if(0===E+_+k)switch(O){case 44:case 58:case 9:case 32:m="";break;default:32!==h&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===E+k+_&&(z=N=1,m="\f"+m);break;case 108:if(0===E+k+_+A&&0<D)switch(I-D){case 2:112===O&&58===s.charCodeAt(I-3)&&(A=O);case 8:111===M&&(A=M)}break;case 58:0===E+k+_&&(D=I);break;case 44:0===k+T+E+_&&(z=1,m+="\r");break;case 34:case 39:0===k&&(E=E===h?0:0===E?h:E);break;case 91:0===E+k+T&&_++;break;case 93:0===E+k+T&&_--;break;case 41:0===E+k+_&&T--;break;case 40:if(0===E+k+_){if(0===d)switch(2*O+3*M){case 533:break;default:d=1}T++}break;case 64:0===k+T+E+_+D+v&&(v=1);break;case 42:case 47:if(!(0<E+_+T))switch(k){case 0:switch(2*h+3*s.charCodeAt(I+1)){case 235:k=47;break;case 220:F=I,k=42}break;case 42:47===h&&42===O&&F+2!==I&&(33===s.charCodeAt(F+2)&&(U+=s.substring(F,I+1)),m="",k=0)}}0===k&&(H+=m)}M=O,O=h,I++}if(F=U.length,0<F){if(z=r,0<j&&(y=l(2,U,z,e,C,S,F,u,c,u),void 0!==y&&0===(U=y).length))return q+U+W;if(U=z.join(",")+"{"+U+"}",0!==P*A){switch(2!==P||o(U,2)||(A=0),A){case 111:U=U.replace(x,":-moz-$1")+U;break;case 112:U=U.replace(b,"::-webkit-input-$1")+U.replace(b,"::-moz-$1")+U.replace(b,":-ms-input-$1")+U}A=0}}return q+U+W}function n(e,t,n){var a=t.trim().split(m);t=a;var o=a.length,i=e.length;switch(i){case 0:case 1:var l=0;for(e=0===i?"":e[0]+" ";l<o;++l)t[l]=r(e,t[l],n,i).trim();break;default:var s=l=0;for(t=[];l<o;++l)for(var u=0;u<i;++u)t[s++]=r(e[u]+" ",a[l],n,i).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(y,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,r){var i=e+";",l=2*t+3*n+4*r;if(944===l){e=i.indexOf(":",9)+1;var s=i.substring(e,i.length-1).trim();return s=i.substring(0,e).trim()+s+";",1===P||2===P&&o(s,1)?"-webkit-"+s+s:s}if(0===P||2===P&&!o(i,1))return i;switch(l){case 1015:return 97===i.charCodeAt(10)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:if(45===i.charCodeAt(8))return"-webkit-"+i+i;if(0<i.indexOf("image-set(",11))return i.replace(M,"$1-webkit-$2")+i;break;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return s=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+s+"-webkit-"+i+"-ms-flex-pack"+s+i;case 1005:return h.test(i)?i.replace(d,":-webkit-")+i.replace(d,":-moz-")+i:i;case 1e3:switch(s=i.substring(13).trim(),t=s.indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=i.replace(_,"tb");break;case 232:s=i.replace(_,"tb-rl");break;case 220:s=i.replace(_,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+s+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(t=(i=e).length-10,s=(33===i.charCodeAt(t)?i.substring(0,t):i).substring(e.indexOf(":",7)+1).trim(),l=s.charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:i=i.replace(s,"-webkit-"+s)+";"+i;break;case 207:case 102:i=i.replace(s,"-webkit-"+(102<l?"inline-":"")+"box")+";"+i.replace(s,"-webkit-"+s)+";"+i.replace(s,"-ms-"+s+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return s=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+s+"-ms-flex-"+s+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(T,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","").replace(T,"")+i}break;case 973:case 989:if(45!==i.charCodeAt(3)||122===i.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):i.replace(s,"-webkit-"+s)+i.replace(s,"-moz-"+s.replace("fill-",""))+i;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===n+r&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(v,"$1-webkit-$2")+i}return i}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(E,"$1"),n,t)}function i(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(k," or ($1)").substring(4):"("+t+")"}function l(e,t,n,r,a,o,i,l,s,u){for(var f,p=0,d=t;p<j;++p)switch(f=D[p].call(c,e,d,n,r,a,o,i,l,s,u)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==t)return d}function s(e){switch(e){case void 0:case null:j=D.length=0;break;default:switch(e.constructor){case Array:for(var t=0,n=e.length;t<n;++t)s(e[t]);break;case Function:D[j++]=e;break;case Boolean:R=0|!!e}}return s}function u(e){return e=e.prefix,void 0!==e&&(I=null,e?"function"!==typeof e?P=1:(P=2,I=e):P=0),u}function c(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),z=r,r=[z],0<j){var a=l(-1,n,r,r,C,S,0,0,0,0);void 0!==a&&"string"===typeof a&&(n=a)}var o=t(L,r,n,0,0);return 0<j&&(a=l(-2,o,r,r,C,S,o.length,0,0,0),void 0!==a&&(o=a)),z="",A=0,S=C=1,o}var f=/^\0+/g,p=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,v=/([,: ])(transform)/g,m=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,b=/::(place)/g,x=/:(read-only)/g,_=/[svh]\w+-[tblr]{2}/,w=/\(\s*(.*)\s*\)/g,k=/([\s\S]*?);/g,T=/-self|flex-/g,E=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,S=1,C=1,A=0,P=1,L=[],D=[],j=0,I=null,R=0,z="";return c.use=s,c.set=u,void 0!==e&&u(e),c}var c=u,f=n("4c06"),p=n.n(f),d=/[A-Z]|^ms/g,h=a((function(e){return e.replace(d,"-$&").toLowerCase()})),v=function(e,t){return null==t||"boolean"===typeof t?"":1===i[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},m=function e(t){for(var n=t.length,r=0,a="";r<n;r++){var o=t[r];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"function":0,i=e([o()]);break;case"object":if(Array.isArray(o))i=e(o);else for(var l in i="",o)o[l]&&l&&(i&&(i+=" "),i+=l);break;default:i=o}i&&(a&&(a+=" "),a+=i)}}return a},y="undefined"!==typeof document;function g(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function b(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}var x=function(){function e(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=b(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var n=this.tags[this.tags.length-1],r=g(n);try{r.insertRule(e,r.cssRules.length)}catch(o){0}}else{var a=b(this.opts);this.tags.push(a),a.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3===0&&this.tags.push(b(this.opts))},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,this.injected=!1},e}();function _(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var n,r=t.key||"css";function a(e){n+=e,y&&u.insert(e,d)}var o,i=p()(a);void 0!==t.prefix&&(o={prefix:t.prefix});var l={registered:{},inserted:{},nonce:t.nonce,key:r},u=new x(t);y&&u.inject();var f=new c(o);f.use(t.stylisPlugins)(i);var d="";function g(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var n=e.toString();return n}return g.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return k.call(this,e);default:var r=l.registered[e];return!1===t&&void 0!==r?r:e}}var b,_,w=new WeakMap;function k(e){if(w.has(e))return w.get(e);var t="";return Array.isArray(e)?e.forEach((function(e){t+=g.call(this,e,!1)}),this):Object.keys(e).forEach((function(n){"object"!==typeof e[n]?void 0!==l.registered[e[n]]?t+=n+"{"+l.registered[e[n]]+"}":t+=h(n)+":"+v(n,e[n])+";":Array.isArray(e[n])&&"string"===typeof e[n][0]&&void 0===l.registered[e[n][0]]?e[n].forEach((function(e){t+=h(n)+":"+v(n,e)+";"})):t+=n+"{"+g.call(this,e[n],!1)+"}"}),this),w.set(e,t),t}var T=/label:\s*([^\s;\n{]+)\s*;/g,E=function(e,t){return s(e+t)+t},O=function(e){var t=!0,n="",r="";null==e||void 0===e.raw?(t=!1,n+=g.call(this,e,!1)):n+=e[0];for(var a=arguments.length,o=new Array(a>1?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];return o.forEach((function(r,a){n+=g.call(this,r,46===n.charCodeAt(n.length-1)),!0===t&&void 0!==e[a+1]&&(n+=e[a+1])}),this),_=n,n=n.replace(T,(function(e,t){return r+="-"+t,""})),b=E(n,r),n};function M(e,t){void 0===l.inserted[b]&&(n="",f(e,t),l.inserted[b]=n)}var S=function(){var e=O.apply(this,arguments),t=r+"-"+b;return void 0===l.registered[t]&&(l.registered[t]=_),M("."+t,e),t},C=function(){var e=O.apply(this,arguments),t="animation-"+b;return M("","@keyframes "+t+"{"+e+"}"),t},A=function(){var e=O.apply(this,arguments);M("",e)};function P(e,t){var n="";return t.split(" ").forEach((function(t){void 0!==l.registered[t]?e.push(t):n+=t+" "})),n}function L(e,t){var n=[],r=P(n,e);return n.length<2?e:r+S(n,t)}function D(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return L(m(t))}function j(e){l.inserted[e]=!0}function I(e){e.forEach(j)}function R(){y&&(u.flush(),u.inject()),l.inserted={},l.registered={}}if(y){var z=document.querySelectorAll("[data-emotion-"+r+"]");Array.prototype.forEach.call(z,(function(e){u.tags[0].parentNode.insertBefore(e,u.tags[0]),e.getAttribute("data-emotion-"+r).split(" ").forEach(j)}))}var N={flush:R,hydrate:I,cx:D,merge:L,getRegisteredStyles:P,injectGlobal:A,keyframes:C,css:S,sheet:u,caches:l};return e.__SECRET_EMOTION__=N,N}t["a"]=_},a26e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 1360 1360"},e),o.default.createElement("path",{fill:"#09FFFF",d:"M702.658 1295.469a41.129 41.129 0 0 1-17.609-3.965l-559.677-263.837a41.352 41.352 0 0 1-23.715-37.404v-634.01a41.35 41.35 0 0 1 24.475-37.749L685.814 68.438a41.361 41.361 0 0 1 39.367 3.062 41.341 41.341 0 0 1 18.85 34.69v625.15a41.342 41.342 0 0 1-23.969 37.521L241.021 990.756l479.294 225.948c20.66 9.736 29.502 34.378 19.771 55.03-7.051 14.961-21.919 23.735-37.428 23.735zM184.354 383.068v542.804l476.984-220.946V169.952L184.354 383.068z"}),o.default.createElement("path",{fill:"#09FFFF",d:"M702.713 1295.469c-15.515 0-30.377-8.773-37.429-23.734-9.736-20.652-.889-45.294 19.765-55.03l479.295-225.948L685.302 768.86a41.335 41.335 0 0 1-23.963-37.521V106.19a41.346 41.346 0 0 1 58.212-37.752l559.683 250.067a41.349 41.349 0 0 1 24.476 37.749v634.008a41.351 41.351 0 0 1-23.716 37.404l-559.678 263.837a41.123 41.123 0 0 1-17.603 3.966zm41.318-590.543l476.979 220.952V383.069L744.031 169.952v534.974z"}),o.default.createElement("linearGradient",{id:"a",gradientUnits:"userSpaceOnUse",x1:"569.693",y1:"609.274",x2:"490.846",y2:"472.706"},o.default.createElement("stop",{offset:"0",stopColor:"#09ffff"}),o.default.createElement("stop",{offset:".058",stopColor:"#0be3ff"}),o.default.createElement("stop",{offset:".135",stopColor:"#0ec5ff"}),o.default.createElement("stop",{offset:".211",stopColor:"#10afff"}),o.default.createElement("stop",{offset:".283",stopColor:"#11a1ff"}),o.default.createElement("stop",{offset:".349",stopColor:"#119dff"}),o.default.createElement("stop",{offset:".459",stopColor:"#10a4ff"}),o.default.createElement("stop",{offset:".614",stopColor:"#0fb6ff"}),o.default.createElement("stop",{offset:".795",stopColor:"#0cd4ff"}),o.default.createElement("stop",{offset:".995",stopColor:"#09feff"}),o.default.createElement("stop",{offset:"1",stopColor:"#09ffff"})),o.default.createElement("path",{fill:"url(#a)",d:"M260.692 770.274c-15.886 0-31.032-9.212-37.854-24.673-9.193-20.843.204-45.183 21-54.457.815-.369 82.487-37.934 159.691-137.073 11.965-19.586 76.511-113.551 207.528-107.458 79.605 3.699 126.375-9.453 161.124-91.65 8.885-21.036 33.155-30.877 54.18-21.986 21.036 8.891 30.876 33.144 21.986 54.185-55.841 132.117-148.918 146.361-241.13 142.058-92.273-4.328-132.827 67.379-133.227 68.101a40.6 40.6 0 0 1-3.489 5.323C379.22 720.93 281.474 764.927 277.356 766.743a41.175 41.175 0 0 1-16.664 3.531z"}),o.default.createElement("linearGradient",{id:"b",gradientUnits:"userSpaceOnUse",x1:"726.132",y1:"754.813",x2:"647.261",y2:"618.205"},o.default.createElement("stop",{offset:".382",stopColor:"#119dff"}),o.default.createElement("stop",{offset:".984",stopColor:"#09ffff"})),o.default.createElement("path",{fill:"url(#b)",d:"M417.123 915.811c-15.88 0-31.032-9.199-37.848-24.672-9.199-20.844.21-45.196 21.012-54.457 1.653-.753 82.876-38.441 159.671-137.068 11.966-19.578 76.364-113.594 207.537-107.457 79.61 3.711 126.38-9.453 161.123-91.65 8.885-21.042 33.155-30.872 54.179-21.993 21.041 8.891 30.884 33.155 21.993 54.186-55.842 132.115-148.9 146.353-241.143 142.062-89.349-4.174-130.5 63.441-133.291 68.232-1.075 2.012-2.013 3.364-3.427 5.192-91.28 118.279-189.025 162.29-193.143 164.104a41.21 41.21 0 0 1-16.663 3.521z"}),o.default.createElement("linearGradient",{id:"c",gradientUnits:"userSpaceOnUse",x1:"886.165",y1:"896.485",x2:"807.297",y2:"759.882"},o.default.createElement("stop",{offset:"0",stopColor:"#09ffff"}),o.default.createElement("stop",{offset:".602",stopColor:"#119dff"})),o.default.createElement("path",{fill:"url(#c)",d:"M577.159 1057.484c-15.886 0-31.032-9.213-37.854-24.673-9.193-20.856.216-45.201 21.012-54.463 1.649-.747 82.876-38.44 159.673-137.074 11.966-19.573 76.395-113.569 207.534-107.456 79.605 3.716 126.388-9.447 161.123-91.645 8.892-21.036 33.163-30.878 54.186-21.986 21.035 8.89 30.883 33.143 21.992 54.185-55.845 132.117-148.904 146.354-241.141 142.058-89.312-4.187-130.505 63.439-133.296 68.231-1.075 2.013-2.013 3.364-3.427 5.192-91.274 118.28-189.02 162.283-193.137 164.1a41.187 41.187 0 0 1-16.665 3.531z"}))};t.default=u},a2be:function(e,t,n){var r=n("d612"),a=n("4284"),o=n("c584"),i=1,l=2;function s(e,t,n,s,u,c){var f=n&i,p=e.length,d=t.length;if(p!=d&&!(f&&d>p))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var v=-1,m=!0,y=n&l?new r:void 0;c.set(e,t),c.set(t,e);while(++v<p){var g=e[v],b=t[v];if(s)var x=f?s(b,g,v,t,e,c):s(g,b,v,e,t,c);if(void 0!==x){if(x)continue;m=!1;break}if(y){if(!a(t,(function(e,t){if(!o(y,t)&&(g===e||u(g,e,n,s,c)))return y.push(t)}))){m=!1;break}}else if(g!==b&&!u(g,b,n,s,c)){m=!1;break}}return c["delete"](e),c["delete"](t),m}e.exports=s},a2db:function(e,t,n){var r=n("9e69"),a=r?r.prototype:void 0,o=a?a.valueOf:void 0;function i(e){return o?Object(o.call(e)):{}}e.exports=i},a30a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n("ad9c")),a=u(n("d7bc")),o=s(n("ab5b")),i=n("8704");function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="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},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var _=function(e){h(n,e);var t=m(n);function n(){var e;return f(this,n),e=t.call(this),e.state={addPanelOpen:!1},e.togglePanel=e.togglePanel.bind(g(e)),e}return d(n,[{key:"togglePanel",value:function(){this.setState({addPanelOpen:!this.state.addPanelOpen})}},{key:"render",value:function(){var e=this,t=this.context.localize,n=this.props,a=n.children,l=n.addAction,s=n.allowCollapse,u=n.toggleFolds,c=n.hasOpen,f=o.default.createElement(i.PlusIcon,null);return a||l||s?o.default.createElement("div",{className:"panel__header"},a&&a.length?o.default.createElement("div",{className:"panel__header__content"},a):null,o.default.createElement("div",{className:"panel__header__actions__container"},s?o.default.createElement("div",{className:"panel__header__collapse",onClick:u},c?o.default.createElement("span",null,o.default.createElement(i.ResizeDownIcon,null),t("Collapse All")):o.default.createElement("span",null,o.default.createElement(i.ResizeUpIcon,null),t("Expand All"))):null,l?o.default.createElement("div",{className:"panel__header__action dropdown-container"},o.default.createElement(r.default,{variant:"primary",className:"js-add-button",onClick:Array.isArray(l.handler)?this.togglePanel:function(){return l.handler(e.context)},icon:f,label:l.label}),this.state.addPanelOpen&&o.default.createElement("div",{className:"Select"},o.default.createElement("div",{className:"Select-menu-outer"},o.default.createElement("div",{className:"Select-menu"},l.handler.map((function(t){var n=t.label,r=t.handler;return o.default.createElement("div",{className:"Select-option",key:n,onClick:function(){r(e.context),e.togglePanel()}},n)})))))):null)):null}}]),n}(o.Component);_.contextTypes={layout:a.default.object,fullContainer:a.default.object,onUpdate:a.default.func,updateContainer:a.default.func,localize:a.default.func},_.propTypes={addAction:a.default.object,allowCollapse:a.default.bool,children:a.default.node,hasOpen:a.default.bool,toggleFolds:a.default.func};var w=_;t.default=w},a36d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.PanelMessage=void 0;var r=u(n("d7bc")),a=s(n("ab5b")),o=n("8704"),i=n("4578");function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="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},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var _=function(e){h(n,e);var t=m(n);function n(){return f(this,n),t.apply(this,arguments)}return d(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.icon,r=this.props.heading||"";return a.default.createElement("div",{className:"panel__empty__message"},Boolean(n)&&a.default.createElement("div",{className:"panel__empty__message__icon"},a.default.createElement(n,null)),Boolean(r)&&a.default.createElement("div",{className:"panel__empty__message__heading"},r),a.default.createElement("div",{className:"panel__empty__message__content"},t))}}]),n}(a.Component);t.PanelMessage=_,_.defaultProps={icon:o.ChartLineIcon},_.propTypes={heading:r.default.string,children:r.default.node,icon:r.default.oneOfType([r.default.node,r.default.func])};var w=function(e){h(n,e);var t=m(n);function n(){return f(this,n),t.apply(this,arguments)}return d(n,[{key:"render",value:function(){return a.default.createElement("div",{className:(0,i.bem)("panel","empty")},a.default.createElement(_,this.props))}}]),n}(a.Component);w.propTypes={heading:r.default.string,children:r.default.node,icon:r.default.oneOfType([r.default.node,r.default.func])};var k=w;t.default=k},a3b3:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M6,2C4.89,2 4,2.9 4,4V20C4,21.1 4.9,22 6,22H18C19.1,22 20,21.1 20,20V8L14,2M13,3.5L18.5,9H13M8.93,12.22H16V19.29L13.88,17.17L11.05,20L8.22,17.17L11.05,14.35"}))};e.exports=l},a3fb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M2 25l12 5V16L2 11zm16-9v14l12-5V11zM16 1L2 7l14 6 14-6z"}))};t.default=u},a434:function(e,t,n){"use strict";var r=n("23e7"),a=n("23cb"),o=n("a691"),i=n("50c4"),l=n("7b0b"),s=n("65f0"),u=n("8418"),c=n("1dde"),f=n("ae40"),p=c("splice"),d=f("splice",{ACCESSORS:!0,0:0,1:2}),h=Math.max,v=Math.min,m=9007199254740991,y="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!p||!d},{splice:function(e,t){var n,r,c,f,p,d,g=l(this),b=i(g.length),x=a(e,b),_=arguments.length;if(0===_?n=r=0:1===_?(n=0,r=b-x):(n=_-2,r=v(h(o(t),0),b-x)),b+n-r>m)throw TypeError(y);for(c=s(g,r),f=0;f<r;f++)p=x+f,p in g&&u(c,f,g[p]);if(c.length=r,n<r){for(f=x;f<b-r;f++)p=f+r,d=f+n,p in g?g[d]=g[p]:delete g[d];for(f=b;f>b-r+n;f--)delete g[f-1]}else if(n>r)for(f=b-r;f>x;f--)p=f+r-1,d=f+n-1,p in g?g[d]=g[p]:delete g[d];for(f=0;f<n;f++)g[f+x]=arguments[f+2];return g.length=b-r+n,c}})},a454:function(e,t,n){var r=n("72f0"),a=n("3b4a"),o=n("cd9d"),i=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=i},a4d3:function(e,t,n){"use strict";var r=n("23e7"),a=n("da84"),o=n("d066"),i=n("c430"),l=n("83ab"),s=n("4930"),u=n("fdbf"),c=n("d039"),f=n("5135"),p=n("e8b5"),d=n("861d"),h=n("825a"),v=n("7b0b"),m=n("fc6a"),y=n("c04e"),g=n("5c6c"),b=n("7c73"),x=n("df75"),_=n("241c"),w=n("057f"),k=n("7418"),T=n("06cf"),E=n("9bf2"),O=n("d1e7"),M=n("9112"),S=n("6eeb"),C=n("5692"),A=n("f772"),P=n("d012"),L=n("90e3"),D=n("b622"),j=n("e538"),I=n("746f"),R=n("d44e"),z=n("69f3"),N=n("b727").forEach,F=A("hidden"),B="Symbol",V="prototype",H=D("toPrimitive"),U=z.set,W=z.getterFor(B),q=Object[V],$=a.Symbol,G=o("JSON","stringify"),Y=T.f,K=E.f,X=w.f,Z=O.f,J=C("symbols"),Q=C("op-symbols"),ee=C("string-to-symbol-registry"),te=C("symbol-to-string-registry"),ne=C("wks"),re=a.QObject,ae=!re||!re[V]||!re[V].findChild,oe=l&&c((function(){return 7!=b(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Y(q,t);r&&delete q[t],K(e,t,n),r&&e!==q&&K(q,t,r)}:K,ie=function(e,t){var n=J[e]=b($[V]);return U(n,{type:B,tag:e,description:t}),l||(n.description=t),n},le=u?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof $},se=function(e,t,n){e===q&&se(Q,t,n),h(e);var r=y(t,!0);return h(n),f(J,r)?(n.enumerable?(f(e,F)&&e[F][r]&&(e[F][r]=!1),n=b(n,{enumerable:g(0,!1)})):(f(e,F)||K(e,F,g(1,{})),e[F][r]=!0),oe(e,r,n)):K(e,r,n)},ue=function(e,t){h(e);var n=m(t),r=x(n).concat(he(n));return N(r,(function(t){l&&!fe.call(n,t)||se(e,t,n[t])})),e},ce=function(e,t){return void 0===t?b(e):ue(b(e),t)},fe=function(e){var t=y(e,!0),n=Z.call(this,t);return!(this===q&&f(J,t)&&!f(Q,t))&&(!(n||!f(this,t)||!f(J,t)||f(this,F)&&this[F][t])||n)},pe=function(e,t){var n=m(e),r=y(t,!0);if(n!==q||!f(J,r)||f(Q,r)){var a=Y(n,r);return!a||!f(J,r)||f(n,F)&&n[F][r]||(a.enumerable=!0),a}},de=function(e){var t=X(m(e)),n=[];return N(t,(function(e){f(J,e)||f(P,e)||n.push(e)})),n},he=function(e){var t=e===q,n=X(t?Q:m(e)),r=[];return N(n,(function(e){!f(J,e)||t&&!f(q,e)||r.push(J[e])})),r};if(s||($=function(){if(this instanceof $)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=L(e),n=function(e){this===q&&n.call(Q,e),f(this,F)&&f(this[F],t)&&(this[F][t]=!1),oe(this,t,g(1,e))};return l&&ae&&oe(q,t,{configurable:!0,set:n}),ie(t,e)},S($[V],"toString",(function(){return W(this).tag})),S($,"withoutSetter",(function(e){return ie(L(e),e)})),O.f=fe,E.f=se,T.f=pe,_.f=w.f=de,k.f=he,j.f=function(e){return ie(D(e),e)},l&&(K($[V],"description",{configurable:!0,get:function(){return W(this).description}}),i||S(q,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!s,sham:!s},{Symbol:$}),N(x(ne),(function(e){I(e)})),r({target:B,stat:!0,forced:!s},{for:function(e){var t=String(e);if(f(ee,t))return ee[t];var n=$(t);return ee[t]=n,te[n]=t,n},keyFor:function(e){if(!le(e))throw TypeError(e+" is not a symbol");if(f(te,e))return te[e]},useSetter:function(){ae=!0},useSimple:function(){ae=!1}}),r({target:"Object",stat:!0,forced:!s,sham:!l},{create:ce,defineProperty:se,defineProperties:ue,getOwnPropertyDescriptor:pe}),r({target:"Object",stat:!0,forced:!s},{getOwnPropertyNames:de,getOwnPropertySymbols:he}),r({target:"Object",stat:!0,forced:c((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(v(e))}}),G){var ve=!s||c((function(){var e=$();return"[null]"!=G([e])||"{}"!=G({a:e})||"{}"!=G(Object(e))}));r({target:"JSON",stat:!0,forced:ve},{stringify:function(e,t,n){var r,a=[e],o=1;while(arguments.length>o)a.push(arguments[o++]);if(r=t,(d(t)||void 0!==e)&&!le(e))return p(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!le(t))return t}),a[1]=t,G.apply(null,a)}})}$[V][H]||M($[V],H,$[V].valueOf),R($,B),P[F]=!0},a524:function(e,t,n){var r=n("42454");function a(e){return r(this,e).has(e)}e.exports=a},a5ba:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M10,4V8H14V4H10M16,4V8H20V4H16M16,10V14H20V10H16M16,16V20H20V16H16M14,20V16H10V20H14M8,20V16H4V20H8M8,14V10H4V14H8M8,8V4H4V8H8M10,14H14V10H10V14M4,2H20C21.1,2 22,2.9 22,4V20C22,21.1 21.1,22 20,22H4C2.92,22 2,21.1 2,20V4C2,2.9 2.9,2 4,2Z"}))};e.exports=l},a60e:function(e,t,n){"use strict";var r=n("dec3"),a=n("0984");function o(e,t){var n=e._latestEditorState,o=n.getSelection();if(!o.getHasFocus()){var i=o.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),a.isBrowser("Chrome < 60.0.3081.0")?e.update(r.forceSelection(n,i)):e.update(r.acceptSelection(n,i))}}e.exports=o},a630:function(e,t,n){var r=n("23e7"),a=n("4df4"),o=n("1c7e"),i=!o((function(e){Array.from(e)}));r({target:"Array",stat:!0,forced:i},{from:a})},a640:function(e,t,n){"use strict";var r=n("d039");e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},a654:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M5,3H19C20.1,3 21,3.9 21,5V19C21,20.1 20.1,21 19,21H5C3.9,21 3,20.1 3,19V5C3,3.9 3.9,3 5,3M18,5H15.5C13.57,5 12,6.57 12,8.5V11H10V14H12V21H15V14H18V11H15V9C15,8.45 15.45,8 16,8H18V5Z"}))};e.exports=l},a687:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M21.5 15.625L16.062 14l3.25 5.313zM26 8l-4.5 7.625 2.688.75 1.813-3.063 2.375 4.313-4.188-1.25-4.875 8.313-5.875-9.938-9.125 2.688L10.688 10l2.75 4.75 2.563-.75h.063l-5.375-8.688L.001 18.625h.063l-.063.063 16 8 16-8z"}))};t.default=u},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},a6a7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatDay=i,t.formatMonthTitle=l,t.formatWeekdayShort=s,t.formatWeekdayLong=u,t.getFirstDayOfWeek=c,t.getMonths=f;var r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["Su","Mo","Tu","We","Th","Fr","Sa"],o=["January","February","March","April","May","June","July","August","September","October","November","December"];function i(e){return e.toDateString()}function l(e){return o[e.getMonth()]+" "+e.getFullYear()}function s(e){return a[e]}function u(e){return r[e]}function c(){return 0}function f(){return o}t.default={formatDay:i,formatMonthTitle:l,formatWeekdayShort:s,formatWeekdayLong:u,getFirstDayOfWeek:c,getMonths:f}},a6b3:function(e,t,n){"use strict";function r(e,t){return!!t&&(e===t.documentElement||e===t.body)}var a={getTop:function(e){var t=e.ownerDocument;return r(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;r(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return r(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;r(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=a},a759:function(e,t,n){"use strict";var r=n("89ab");function a(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}e.exports=a},a794:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n("ab5b")),a=c(n("d7bc")),o=n("c85e"),i=n("b07b"),l=n("e750"),s=c(n("da68")),u=n("e419");function c(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(e){return d="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},d(e)}function h(e){return g(e)||y(e)||m(e)||v()}function v(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){if(e){if("string"===typeof e)return b(e,t);var n=Object.prototype.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)?b(e,t):void 0}}function y(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function g(e){if(Array.isArray(e))return b(e)}function b(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 x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(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 w(e,t,n){return t&&_(e.prototype,t),n&&_(e,n),e}function k(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&&T(e,t)}function T(e,t){return T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},T(e,t)}function E(e){var t=S();return function(){var n,r=C(e);if(t){var a=C(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(){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}}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var A=function(e){k(n,e);var t=E(n);function n(e,r){var a;return x(this,n),a=t.call(this,e,r),a.hasTransforms=a.hasTransforms.bind(M(a)),a.hasAxes=a.hasAxes.bind(M(a)),a.hasMenus=a.hasMenus.bind(M(a)),a.hasSliders=a.hasSliders.bind(M(a)),a.hasColorbars=a.hasColorbars.bind(M(a)),a.hasLegend=a.hasLegend.bind(M(a)),a}return w(n,[{key:"hasTransforms",value:function(){return this.context.fullData.some((function(e){return u.TRANSFORMABLE_TRACES.includes(e.type)}))}},{key:"hasAxes",value:function(){var e=this;return Object.keys(this.context.fullLayout._subplots).filter((function(t){return!["cartesian","mapbox"].includes(t)&&e.context.fullLayout._subplots[t].length>0})).length>0}},{key:"hasMenus",value:function(){var e=this.context.fullLayout.updatemenus,t=void 0===e?[]:e;return t.length>0}},{key:"hasSliders",value:function(){var e=this.context.layout.sliders,t=void 0===e?[]:e;return t.length>0}},{key:"hasColorbars",value:function(){return this.context.fullData.some((function(e){return(0,l.traceHasColorbar)({},e)}))}},{key:"hasLegend",value:function(){return this.context.fullData.some((function(e){return void 0!==e.showlegend}))}},{key:"hasMaps",value:function(){return this.context.fullData.some((function(e){return[].concat(h(u.TRACE_TO_AXIS.geo),h(u.TRACE_TO_AXIS.mapbox)).includes(e.type)}))}},{key:"render",value:function(){var e=this.context.localize,t=this.props.logoSrc&&r.default.createElement(s.default,{src:this.props.logoSrc});return r.default.createElement(o.PanelMenuWrapper,{menuPanelOrder:this.props.menuPanelOrder},t||null,r.default.createElement(i.GraphCreatePanel,{group:e("Structure"),name:e("Traces")}),r.default.createElement(i.GraphSubplotsPanel,{group:e("Structure"),name:e("Subplots")}),this.hasTransforms()&&r.default.createElement(i.GraphTransformsPanel,{group:e("Structure"),name:e("Transforms")}),r.default.createElement(i.StyleLayoutPanel,{group:e("Style"),name:e("General")}),r.default.createElement(i.StyleTracesPanel,{group:e("Style"),name:e("Traces")}),this.hasAxes()&&r.default.createElement(i.StyleAxesPanel,{group:e("Style"),name:e("Axes")}),this.hasMaps()&&r.default.createElement(i.StyleMapsPanel,{group:e("Style"),name:e("Maps")}),this.hasLegend()&&r.default.createElement(i.StyleLegendPanel,{group:e("Style"),name:e("Legend")}),this.hasColorbars()&&r.default.createElement(i.StyleColorbarsPanel,{group:e("Style"),name:e("Color Bars")}),r.default.createElement(i.StyleNotesPanel,{group:e("Annotate"),name:e("Text")}),r.default.createElement(i.StyleShapesPanel,{group:e("Annotate"),name:e("Shapes")}),r.default.createElement(i.StyleImagesPanel,{group:e("Annotate"),name:e("Images")}),this.hasSliders()&&r.default.createElement(i.StyleSlidersPanel,{group:e("Control"),name:e("Sliders")}),this.hasMenus()&&r.default.createElement(i.StyleUpdateMenusPanel,{group:e("Control"),name:e("Menus")}),this.props.children?this.props.children:null)}}]),n}(r.Component);A.propTypes={children:a.default.node,logoSrc:a.default.string,menuPanelOrder:a.default.array},A.contextTypes={localize:a.default.func,fullData:a.default.array,fullLayout:a.default.object,layout:a.default.object};var P=A;t.default=P},a79d:function(e,t,n){"use strict";var r=n("23e7"),a=n("c430"),o=n("fea9"),i=n("d039"),l=n("d066"),s=n("4840"),u=n("cdf9"),c=n("6eeb"),f=!!o&&i((function(){o.prototype["finally"].call({then:function(){}},(function(){}))}));r({target:"Promise",proto:!0,real:!0,forced:f},{finally:function(e){var t=s(this,l("Promise")),n="function"==typeof e;return this.then(n?function(n){return u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),a||"function"!=typeof o||o.prototype["finally"]||c(o.prototype,"finally",l("Promise").prototype["finally"])},a7be:function(e,t,n){},a7cc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.red=t.getContrastingColor=t.isValidHex=t.toState=t.simpleCheckForValidColor=void 0;var r=n("c641"),a=l(r),o=n("66cb"),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}t.simpleCheckForValidColor=function(e){var t=["r","g","b","a","h","s","l","v"],n=0,r=0;return(0,a.default)(t,(function(t){if(e[t]&&(n+=1,isNaN(e[t])||(r+=1),"s"===t||"l"===t)){var a=/^\d+%$/;a.test(e[t])&&(r+=1)}})),n===r&&e};var s=t.toState=function(e,t){var n=e.hex?(0,i.default)(e.hex):(0,i.default)(e),r=n.toHsl(),a=n.toHsv(),o=n.toRgb(),l=n.toHex();0===r.s&&(r.h=t||0,a.h=t||0);var s="000000"===l&&0===o.a;return{hsl:r,hex:s?"transparent":"#"+l,rgb:o,hsv:a,oldHue:e.h||t||r.h,source:e.source}};t.isValidHex=function(e){var t="#"===String(e).charAt(0)?1:0;return e.length!==4+t&&e.length<7+t&&(0,i.default)(e).isValid()},t.getContrastingColor=function(e){if(!e)return"#fff";var t=s(e);if("transparent"===t.hex)return"rgba(0,0,0,0.4)";var n=(299*t.rgb.r+587*t.rgb.g+114*t.rgb.b)/1e3;return n>=128?"#000":"#fff"},t.red={hsl:{a:1,h:0,l:.5,s:1},hex:"#ff0000",rgb:{r:255,g:0,b:0,a:1},hsv:{h:0,s:1,v:1,a:1}};t.default=t},a93d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=w;var r=l(n("ab5b")),a=o(n("d7bc"));function o(e){return e&&e.__esModule?e:{default:e}}function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n["default"]=e,t&&t.set(e,n),n}function s(e){return 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},s(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function p(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&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=y();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){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}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var b=["AfterExport","AfterPlot","Animated","AnimatingFrame","AnimationInterrupted","AutoSize","BeforeExport","ButtonClicked","Click","ClickAnnotation","Deselect","DoubleClick","Framework","Hover","LegendClick","LegendDoubleClick","Relayout","Relayouting","Restyle","Redraw","Selected","Selecting","SliderChange","SliderEnd","SliderStart","SunburstClick","Transitioning","TransitionInterrupted","Unhover"],x=["plotly_restyle","plotly_redraw","plotly_relayout","plotly_relayouting","plotly_doubleclick","plotly_animated","plotly_sunburstclick"],_="undefined"!==typeof window;function w(e){var t=function(t){p(a,t);var n=h(a);function a(e){var t;return u(this,a),t=n.call(this,e),t.p=Promise.resolve(),t.resizeHandler=null,t.handlers={},t.syncWindowResize=t.syncWindowResize.bind(m(t)),t.syncEventHandlers=t.syncEventHandlers.bind(m(t)),t.attachUpdateEvents=t.attachUpdateEvents.bind(m(t)),t.getRef=t.getRef.bind(m(t)),t.handleUpdate=t.handleUpdate.bind(m(t)),t.figureCallback=t.figureCallback.bind(m(t)),t.updatePlotly=t.updatePlotly.bind(m(t)),t}return f(a,[{key:"updatePlotly",value:function(t,n,r){var a=this;this.p=this.p.then((function(){if(!a.unmounting){if(!a.el)throw new Error("Missing element reference");return e.react(a.el,{data:a.props.data,layout:a.props.layout,config:a.props.config,frames:a.props.frames})}})).then((function(){a.unmounting||(a.syncWindowResize(t),a.syncEventHandlers(),a.figureCallback(n),r&&a.attachUpdateEvents())}))["catch"]((function(e){a.props.onError&&a.props.onError(e)}))}},{key:"componentDidMount",value:function(){this.unmounting=!1,this.updatePlotly(!0,this.props.onInitialized,!0)}},{key:"componentDidUpdate",value:function(e){this.unmounting=!1;var t=e.frames&&e.frames.length?e.frames.length:0,n=this.props.frames&&this.props.frames.length?this.props.frames.length:0,r=!(e.layout===this.props.layout&&e.data===this.props.data&&e.config===this.props.config&&n===t),a=void 0!==e.revision,o=e.revision!==this.props.revision;(r||a&&(!a||o))&&this.updatePlotly(!1,this.props.onUpdate,!1)}},{key:"componentWillUnmount",value:function(){this.unmounting=!0,this.figureCallback(this.props.onPurge),this.resizeHandler&&_&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null),this.removeUpdateEvents(),e.purge(this.el)}},{key:"attachUpdateEvents",value:function(){var e=this;this.el&&this.el.removeListener&&x.forEach((function(t){e.el.on(t,e.handleUpdate)}))}},{key:"removeUpdateEvents",value:function(){var e=this;this.el&&this.el.removeListener&&x.forEach((function(t){e.el.removeListener(t,e.handleUpdate)}))}},{key:"handleUpdate",value:function(){this.figureCallback(this.props.onUpdate)}},{key:"figureCallback",value:function(e){if("function"===typeof e){var t=this.el,n=t.data,r=t.layout,a=this.el._transitionData?this.el._transitionData._frames:null,o={data:n,layout:r,frames:a};e(o,this.el)}}},{key:"syncWindowResize",value:function(t){var n=this;_&&(this.props.useResizeHandler&&!this.resizeHandler?(this.resizeHandler=function(){return e.Plots.resize(n.el)},window.addEventListener("resize",this.resizeHandler),t&&this.resizeHandler()):!this.props.useResizeHandler&&this.resizeHandler&&(window.removeEventListener("resize",this.resizeHandler),this.resizeHandler=null))}},{key:"getRef",value:function(e){this.el=e,this.props.debug&&_&&(window.gd=this.el)}},{key:"syncEventHandlers",value:function(){var e=this;b.forEach((function(t){var n=e.props["on"+t],r=e.handlers[t],a=Boolean(r);n&&!a?e.addEventHandler(t,n):!n&&a?e.removeEventHandler(t):n&&a&&n!==r&&(e.removeEventHandler(t),e.addEventHandler(t,n))}))}},{key:"addEventHandler",value:function(e,t){this.handlers[e]=t,this.el.on(this.getPlotlyEventName(e),this.handlers[e])}},{key:"removeEventHandler",value:function(e){this.el.removeListener(this.getPlotlyEventName(e),this.handlers[e]),delete this.handlers[e]}},{key:"getPlotlyEventName",value:function(e){return"plotly_"+e.toLowerCase()}},{key:"render",value:function(){return r["default"].createElement("div",{id:this.props.divId,style:this.props.style,ref:this.getRef,className:this.props.className})}}]),a}(r.Component);return t.propTypes={data:a["default"].arrayOf(a["default"].object),config:a["default"].object,layout:a["default"].object,frames:a["default"].arrayOf(a["default"].object),revision:a["default"].number,onInitialized:a["default"].func,onPurge:a["default"].func,onError:a["default"].func,onUpdate:a["default"].func,debug:a["default"].bool,style:a["default"].object,className:a["default"].string,useResizeHandler:a["default"].bool,divId:a["default"].string},b.forEach((function(e){t.propTypes["on"+e]=a["default"].func})),t.defaultProps={debug:!1,useResizeHandler:!1,data:[],style:{position:"relative",display:"inline-block"}},t}},a93d7:function(e,t,n){"use strict";
/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r="function"===typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,l=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,p=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,h=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,m=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,g=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,x=r?Symbol.for("react.responder"):60118,_=r?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type,e){case f:case p:case i:case s:case l:case h:return e;default:switch(e=e&&e.$$typeof,e){case c:case d:case y:case m:case u:return e;default:return t}}case o:return t}}}function k(e){return w(e)===p}t.AsyncMode=f,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=u,t.Element=a,t.ForwardRef=d,t.Fragment=i,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=s,t.StrictMode=l,t.Suspense=h,t.isAsyncMode=function(e){return k(e)||w(e)===f},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===a},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===i},t.isLazy=function(e){return w(e)===y},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===o},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===l},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===p||e===s||e===l||e===h||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===x||e.$$typeof===_||e.$$typeof===g)},t.typeOf=w},a994:function(e,t,n){var r=n("7d1f"),a=n("32f4"),o=n("ec69");function i(e){return r(e,o,a)}e.exports=i},aa5f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=i(a);function i(e){return e&&e.__esModule?e:{default:e}}function l(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}var s=24;t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,a=e.width,i=void 0===a?s:a,u=e.height,c=void 0===u?s:u,f=e.style,p=void 0===f?{}:f,d=l(e,["fill","width","height","style"]);return o.default.createElement("svg",r({viewBox:"0 0 "+s+" "+s,style:r({fill:n,width:i,height:c},p)},d),o.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))}},aa79:function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=n("24f7"),o=a.Record,i=o({type:"TOKEN",mutability:"IMMUTABLE",data:Object}),l=function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.getType=function(){return this.get("type")},n.getMutability=function(){return this.get("mutability")},n.getData=function(){return this.get("data")},t}(i);e.exports=l},aa8e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlphaPicker=void 0;var r=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},a=n("ab5b"),o=f(a),i=n("fc55"),l=f(i),s=n("4ccf"),u=n("4b2c"),c=f(u);function f(e){return e&&e.__esModule?e:{default:e}}var p=t.AlphaPicker=function(e){var t=e.rgb,n=e.hsl,a=e.width,i=e.height,u=e.onChange,c=e.direction,f=e.style,p=e.renderers,d=e.pointer,h=e.className,v=void 0===h?"":h,m=(0,l.default)({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:f}}});return o.default.createElement("div",{style:m.picker,className:"alpha-picker "+v},o.default.createElement(s.Alpha,r({},m.alpha,{rgb:t,hsl:n,pointer:d,renderers:p,onChange:u,direction:c})))};p.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:c.default},t.default=(0,s.ColorWrap)(p)},aae4:function(e,t,n){"use strict";n("da67");var r={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r){var a=t.get(r);if(!a.getChildKeys().includes(n))return!1}var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return!1;var i=e.getPrevSiblingKey();if(null!=i){var l=t.get(i);if(l.getNextSiblingKey()!==n)return!1}var s=e.getNextSiblingKey();if(null!=s){var u=t.get(s);if(u.getPrevSiblingKey()!==n)return!1}return(null===s||null===i||i!==s)&&!(""!=e.text&&e.getChildKeys().size>0)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return!1;var n=t.shift(),r=0,a=n.getKey(),o=[];while(null!=a){var i=e.get(a),l=i.getChildKeys(),s=i.getNextSiblingKey();if(l.size>0){null!=s&&o.unshift(s);var u=l.map((function(t){return e.get(t)})),c=u.find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return!1;a=c.getKey()}else a=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();r++}return r===e.size},isValidTree:function(e){var t=this,n=e.toArray();return!!n.every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}};e.exports=r},ab0d:function(e,t,n){"use strict";if(Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,"function"!==typeof r){var r=function(e){return e};r.nonNative=!0}var a=r("plaintext"),o=r("html"),i=r("comment"),l=/<(\w*)>/g,s=/<\/?([^\s\/>]+)/;function u(e,t,n){e=e||"",t=t||[],n=n||"";var r=f(t,n);return p(e,r)}function c(e,t){e=e||[],t=t||"";var n=f(e,t);return function(e){return p(e||"",n)}}function f(e,t){return e=d(e),{allowable_tags:e,tag_replacement:t,state:a,tag_buffer:"",depth:0,in_quote_char:""}}function p(e,t){for(var n=t.allowable_tags,r=t.tag_replacement,l=t.state,s=t.tag_buffer,u=t.depth,c=t.in_quote_char,f="",p=0,d=e.length;p<d;p++){var v=e[p];if(l===a)switch(v){case"<":l=o,s+=v;break;default:f+=v;break}else if(l===o)switch(v){case"<":if(c)break;u++;break;case">":if(c)break;if(u){u--;break}c="",l=a,s+=">",n.has(h(s))?f+=s:f+=r,s="";break;case'"':case"'":c=v===c?"":c||v,s+=v;break;case"-":"<!-"===s&&(l=i),s+=v;break;case" ":case"\n":if("<"===s){l=a,f+="< ",s="";break}s+=v;break;default:s+=v;break}else if(l===i)switch(v){case">":"--"==s.slice(-2)&&(l=a),s="";break;default:s+=v;break}}return t.state=l,t.tag_buffer=s,t.depth=u,t.in_quote_char=c,f}function d(e){var t,n=new Set;if("string"===typeof e)while(t=l.exec(e))n.add(t[1]);else r.nonNative||"function"!==typeof e[r.iterator]?"function"===typeof e.forEach&&e.forEach(n.add,n):n=new Set(e);return n}function h(e){var t=s.exec(e);return t?t[1].toLowerCase():null}u.init_streaming_mode=c;var v=u;t.default=v},ab13:function(e,t,n){var r=n("b622"),a=r("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[a]=!1,"/./"[e](t)}catch(r){}}return!1}},ab2d:function(e,t,n){"use strict";var r=n("d8db");function a(e){var t=e.length;if((Array.isArray(e)||"object"!==typeof e&&"function"!==typeof e)&&r(!1),"number"!==typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"===typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(o){}for(var n=Array(t),a=0;a<t;a++)n[a]=e[a];return n}function o(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function i(e){return o(e)?Array.isArray(e)?e.slice():a(e):[e]}e.exports=i},ab5b:function(e,t,n){"use strict";e.exports=n("be24")},abda:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M16,11.78L20.24,4.45L21.97,5.45L16.74,14.5L10.23,10.75L5.46,19H22V21H2V3H4V17.54L9.5,8L16,11.78Z"}))};e.exports=l},ac05:function(e,t,n){"use strict";var r=n("ab5b"),a=n("6152"),o=n("24f7"),i=o.Map,l=r.createElement("ul",{className:a("public/DraftStyleDefault/ul")}),s=r.createElement("ol",{className:a("public/DraftStyleDefault/ol")}),u=r.createElement("pre",{className:a("public/DraftStyleDefault/pre")}),c=i({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:l},"ordered-list-item":{element:"li",wrapper:s},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:u},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=c},ac1f:function(e,t,n){"use strict";var r=n("23e7"),a=n("9263");r({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},ac41:function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}e.exports=n},ac8b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=_,t.localizeString=w;var r=s(n("d7bc")),a=l(n("ab5b")),o=n("4578");function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return 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},u(e)}function c(){return c=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},c.apply(this,arguments)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function _(e){var t=function(t){h(r,t);var n=m(r);function r(e,t){var a;f(this,r),a=n.call(this,e,t);var o=t.dictionaries,i=t.locale;return a.localize=function(e){return w(o,i,e)},a}return d(r,[{key:"render",value:function(){return a.default.createElement(e,c({localize:this.localize},this.props))}}]),r}(a.Component);return t.displayName="Localized".concat((0,o.getDisplayName)(e)),t.contextTypes=t.contextTypes||{},t.contextTypes.dictionaries=r.default.object,t.contextTypes.locale=r.default.string,t.plotly_editor_traits=e.plotly_editor_traits,t}function w(e,t,n){var r=e[t];return r&&r.hasOwnProperty(n)?r[n]:n}},ac96:function(e,t,n){"use strict";var r={},a=Math.pow(2,24);function o(){var e;while(void 0===e||r.hasOwnProperty(e)||!isNaN(+e))e=Math.floor(Math.random()*a).toString(32);return r[e]=!0,e}e.exports=o},ac9f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Block=void 0;var r=n("ab5b"),a=m(r),o=n("d7bc"),i=m(o),l=n("fc55"),s=m(l),u=n("4245"),c=m(u),f=n("a7cc"),p=m(f),d=n("4ccf"),h=n("b835"),v=m(h);function m(e){return e&&e.__esModule?e:{default:e}}var y=t.Block=function(e){var t=e.onChange,n=e.onSwatchHover,r=e.hex,o=e.colors,i=e.width,l=e.triangle,u=e.styles,f=void 0===u?{}:u,h=e.className,m=void 0===h?"":h,y="transparent"===r,g=function(e,n){p.default.isValidHex(e)&&t({hex:e,source:"hex"},n)},b=(0,s.default)((0,c.default)({default:{card:{width:i,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:r,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:p.default.getContrastingColor(r),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+r+" transparent",position:"absolute",top:"-10px",left:"50%",marginLeft:"-10px"},input:{width:"100%",fontSize:"12px",color:"#666",border:"0px",outline:"none",height:"22px",boxShadow:"inset 0 0 0 1px #ddd",borderRadius:"4px",padding:"0 7px",boxSizing:"border-box"}},"hide-triangle":{triangle:{display:"none"}}},f),{"hide-triangle":"hide"===l});return a.default.createElement("div",{style:b.card,className:"block-picker "+m},a.default.createElement("div",{style:b.triangle}),a.default.createElement("div",{style:b.head},y&&a.default.createElement(d.Checkboard,{borderRadius:"6px 6px 0 0"}),a.default.createElement("div",{style:b.label},r)),a.default.createElement("div",{style:b.body},a.default.createElement(v.default,{colors:o,onClick:g,onSwatchHover:n}),a.default.createElement(d.EditableInput,{style:{input:b.input},value:r,onChange:g})))};y.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),colors:i.default.arrayOf(i.default.string),triangle:i.default.oneOf(["top","hide"]),styles:i.default.object},y.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}},t.default=(0,d.ColorWrap)(y)},ad2e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M4.313 15.813l5.75-5.75-2.125-2.125L0 15.813l7.938 7.938 2.125-2.125zM25.188 9l-1.125-1.063-2.125 2.125 1.125 1.063 4.625 4.688-5.75 5.813 2.125 2.125 7.938-7.938zm-10.25 17.75h-3l5.563-21.5h3z"}))};t.default=u},ad54:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n("5174")),a=f(n("d7bc")),o=f(n("f51b")),i=f(n("37cc")),l=c(n("ab5b")),s=n("4578");function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(){return d=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},d.apply(this,arguments)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 m(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function y(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&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function b(e){var t=w();return function(){var n,r=k(e);if(t){var a=k(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){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}}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var T=function(e){y(n,e);var t=b(n);function n(e,r){var a;h(this,n),a=t.call(this,e,r);var o=r.localize;if(!r.axesTargetHandler)throw new Error(o("AxesSelector must be nested within a connectAxesToPlot component"));return a}return m(n,[{key:"render",value:function(){var e=this.context,t=e.axesTargetHandler,n=e.axesTarget,a=e.fullLayout,u=e.localize,c=this.props.axesOptions,f=27,p=c.length>4,h=a&&a._subplots&&Object.values(a._subplots).some((function(e){return e.length>1})),v=h?c.map((function(e){return"allaxes"===e.value?e:{label:(0,s.getParsedTemplateString)(e.title,{meta:a.meta}),value:e.value}})):c,m=v&&v.map((function(e){return e.label})).reduce((function(e,t){return e+t.length}),0)||0;return p||m>=f?l.default.createElement(r.default,d({},this.props,{label:u("Axis to Style")}),l.default.createElement(o.default,{options:v,value:n,onChange:t,clearable:!1})):l.default.createElement(r.default,d({},this.props,{center:!0}),l.default.createElement(i.default,{options:v,activeOption:n,onOptionChange:t}))}}]),n}(l.Component);T.contextTypes={axesTargetHandler:a.default.func,axesTarget:a.default.string,fullLayout:a.default.object,localize:a.default.func},T.propTypes={axesOptions:a.default.array};var E=T;t.default=E},ad65:function(e,t,n){"use strict";function r(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=r},ad6d:function(e,t,n){"use strict";var r=n("825a");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},ad9c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("d7bc")),a=l(n("ab5b")),o=n("4578");function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return 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},u(e)}function c(){return c=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},c.apply(this,arguments)}function f(e,t){if(null==e)return{};var n,r,a=p(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)&&(a[n]=e[n])}return a}function p(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function m(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&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function g(e){var t=_();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=function(e){m(n,e);var t=g(n);function n(e){return d(this,n),t.call(this,e)}return v(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.icon,i=e.label,l=e.variant,s=f(e,["children","className","icon","label","variant"]),u="button";u+=l?" button--".concat(l):" button--default",n&&(u+=" ".concat(n));var p=r?a.default.createElement("div",{className:(0,o.bem)("button","icon")},r):null;return a.default.createElement("button",c({className:u},s),a.default.createElement("div",{className:(0,o.bem)("button","wrapper")},p,a.default.createElement("div",{className:"button__label"},i||t)))}}]),n}(a.Component);k.propTypes={children:r.default.node,className:r.default.any,icon:r.default.oneOfType([r.default.node,r.default.func]),label:r.default.any,variant:r.default.string};var T=k;t.default=T},ade3:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},ae15:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M7,15L12,10L17,15H7Z"}))};e.exports=l},ae3c:function(e,t,n){"use strict";var r=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,a=/^[^\.\[\]]+$/;e.exports=function(e,t){while(t){var n=e.match(r);if(n)e=n[1];else{if(!e.match(a))throw new Error("bad relativeAttr call:"+[e,t]);e=""}if("^"!==t.charAt(0))break;t=t.slice(1)}return e&&"["!==t.charAt(0)?e+"."+t:e+t}},ae40:function(e,t,n){var r=n("83ab"),a=n("d039"),o=n("5135"),i=Object.defineProperty,l={},s=function(e){throw e};e.exports=function(e,t){if(o(l,e))return l[e];t||(t={});var n=[][e],u=!!o(t,"ACCESSORS")&&t.ACCESSORS,c=o(t,0)?t[0]:s,f=o(t,1)?t[1]:void 0;return l[e]=!!n&&!a((function(){if(u&&!r)return!0;var e={length:-1};u?i(e,1,{enumerable:!0,get:s}):e[1]=1,n.call(e,c,f)}))}},ae93:function(e,t,n){"use strict";var r,a,o,i=n("e163"),l=n("9112"),s=n("5135"),u=n("b622"),c=n("c430"),f=u("iterator"),p=!1,d=function(){return this};[].keys&&(o=[].keys(),"next"in o?(a=i(i(o)),a!==Object.prototype&&(r=a)):p=!0),void 0==r&&(r={}),c||s(r,f)||l(r,f,d),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},aeba:function(e,t,n){"use strict";var r=n("19b2"),a=n("66cb"),o=n("0d41"),i=n("9306"),l=n("5ff2").DESELECTDIM,s=n("10b4"),u=n("23f7").counter,c=n("7795").modHalf,f=n("d560").isArrayOrTypedArray;function p(e,n){var r=t.valObjectMeta[n.valType];if(n.arrayOk&&f(e))return!0;if(r.validateFunction)return r.validateFunction(e,n);var a={},o=a,i={set:function(e){o=e}};return r.coerceFunction(e,i,a,n),o!==a}t.valObjectMeta={data_array:{description:["An {array} of data.","The value MUST be an {array}, or we ignore it.","Note that typed arrays (e.g. Float32Array) are supported."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){f(e)?t.set(e):void 0!==n&&t.set(n)}},enumerated:{description:["Enumerated value type. The available values are listed","in `values`."].join(" "),requiredOpts:["values"],otherOpts:["dflt","coerceNumber","arrayOk"],coerceFunction:function(e,t,n,r){r.coerceNumber&&(e=+e),-1===r.values.indexOf(e)?t.set(n):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var n=t.values,r=0;r<n.length;r++){var a=String(n[r]);if("/"===a.charAt(0)&&"/"===a.charAt(a.length-1)){var o=new RegExp(a.substr(1,a.length-2));if(o.test(e))return!0}else if(e===n[r])return!0}return!1}},boolean:{description:"A boolean (true/false) value.",requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){!0===e||!1===e?t.set(e):t.set(n)}},number:{description:["A number or a numeric value","(e.g. a number inside a string).","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,n,a){!r(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(n):t.set(+e)}},integer:{description:["An integer or an integer inside a string.","When applicable, values greater (less) than `max` (`min`)","are coerced to the `dflt`."].join(" "),requiredOpts:[],otherOpts:["dflt","min","max","arrayOk"],coerceFunction:function(e,t,n,a){e%1||!r(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(n):t.set(+e)}},string:{description:["A string value.","Numbers are converted to strings except for attributes with","`strict` set to true."].join(" "),requiredOpts:[],otherOpts:["dflt","noBlank","strict","arrayOk","values"],coerceFunction:function(e,t,n,r){if("string"!==typeof e){var a="number"===typeof e;!0!==r.strict&&a?t.set(String(e)):t.set(n)}else r.noBlank&&!e?t.set(n):t.set(e)}},color:{description:["A string describing color.","Supported formats:","- hex (e.g. '#d3d3d3')","- rgb (e.g. 'rgb(255, 0, 0)')","- rgba (e.g. 'rgb(255, 0, 0, 0.5)')","- hsl (e.g. 'hsl(0, 100%, 50%)')","- hsv (e.g. 'hsv(0, 100%, 100%)')","- named colors (full list: http://www.w3.org/TR/css3-color/#svg-color)"].join(" "),requiredOpts:[],otherOpts:["dflt","arrayOk"],coerceFunction:function(e,t,n){a(e).isValid()?t.set(e):t.set(n)}},colorlist:{description:["A list of colors.","Must be an {array} containing valid colors."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){function r(e){return a(e).isValid()}Array.isArray(e)&&e.length&&e.every(r)?t.set(e):t.set(n)}},colorscale:{description:["A Plotly colorscale either picked by a name:","(any of",Object.keys(i.scales).join(", "),")","customized as an {array} of 2-element {arrays} where","the first element is the normalized color level value","(starting at *0* and ending at *1*),","and the second item is a valid color string."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){t.set(i.get(e,n))}},angle:{description:["A number (in degree) between -180 and 180."].join(" "),requiredOpts:[],otherOpts:["dflt"],coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?t.set(c(+e,360)):t.set(n)}},subplotid:{description:["An id string of a subplot type (given by dflt), optionally","followed by an integer >1. e.g. if dflt='geo', we can have","'geo', 'geo2', 'geo3', ..."].join(" "),requiredOpts:["dflt"],otherOpts:["regex"],coerceFunction:function(e,t,n,r){var a=r.regex||u(n);"string"===typeof e&&a.test(e)?t.set(e):t.set(n)},validateFunction:function(e,t){var n=t.dflt;return e===n||"string"===typeof e&&!!u(n).test(e)}},flaglist:{description:["A string representing a combination of flags","(order does not matter here).","Combine any of the available `flags` with *+*.","(e.g. ('lines+markers')).","Values in `extras` cannot be combined."].join(" "),requiredOpts:["flags"],otherOpts:["dflt","extras","arrayOk"],coerceFunction:function(e,t,n,r){if("string"===typeof e)if(-1===(r.extras||[]).indexOf(e)){var a=e.split("+"),o=0;while(o<a.length){var i=a[o];-1===r.flags.indexOf(i)||a.indexOf(i)<o?a.splice(o,1):o++}a.length?t.set(a.join("+")):t.set(n)}else t.set(e);else t.set(n)}},any:{description:"Any type.",requiredOpts:[],otherOpts:["dflt","values","arrayOk"],coerceFunction:function(e,t,n){void 0===e?t.set(n):t.set(e)}},info_array:{description:["An {array} of plot information."].join(" "),requiredOpts:["items"],otherOpts:["dflt","freeLength","dimensions"],coerceFunction:function(e,n,r,a){function o(e,n,r){var a,o={set:function(e){a=e}};return void 0===r&&(r=n.dflt),t.valObjectMeta[n.valType].coerceFunction(e,o,r,n),a}var i=2===a.dimensions||"1-2"===a.dimensions&&Array.isArray(e)&&Array.isArray(e[0]);if(Array.isArray(e)){var l,s,u,c,f,p,d=a.items,h=[],v=Array.isArray(d),m=v&&i&&Array.isArray(d[0]),y=i&&v&&!m,g=v&&!y?d.length:e.length;if(r=Array.isArray(r)?r:[],i)for(l=0;l<g;l++)for(h[l]=[],u=Array.isArray(e[l])?e[l]:[],f=y?d.length:v?d[l].length:u.length,s=0;s<f;s++)c=y?d[s]:v?d[l][s]:d,p=o(u[s],c,(r[l]||[])[s]),void 0!==p&&(h[l][s]=p);else for(l=0;l<g;l++)p=o(e[l],v?d[l]:d,r[l]),void 0!==p&&(h[l]=p);n.set(h)}else n.set(r)},validateFunction:function(e,t){if(!Array.isArray(e))return!1;var n=t.items,r=Array.isArray(n),a=2===t.dimensions;if(!t.freeLength&&e.length!==n.length)return!1;for(var o=0;o<e.length;o++)if(a){if(!Array.isArray(e[o])||!t.freeLength&&e[o].length!==n[o].length)return!1;for(var i=0;i<e[o].length;i++)if(!p(e[o][i],r?n[o][i]:n))return!1}else if(!p(e[o],r?n[o]:n))return!1;return!0}}},t.coerce=function(e,n,r,a,o){var i=s(r,a).get(),l=s(e,a),u=s(n,a),c=l.get(),d=n._template;if(void 0===c&&d&&(c=s(d,a).get(),d=0),void 0===o&&(o=i.dflt),i.arrayOk&&f(c))return u.set(c),c;var h=t.valObjectMeta[i.valType].coerceFunction;h(c,u,o,i);var v=u.get();return d&&v===o&&!p(c,i)&&(c=s(d,a).get(),h(c,u,o,i),v=u.get()),v},t.coerce2=function(e,n,r,a,o){var i=s(e,a),l=t.coerce(e,n,r,a,o),u=i.get();return void 0!==u&&null!==u&&l},t.coerceFont=function(e,t,n){var r={};return n=n||{},r.family=e(t+".family",n.family),r.size=e(t+".size",n.size),r.color=e(t+".color",n.color),r},t.coerceHoverinfo=function(e,n,r){var a,i=n._module.attributes,l=i.hoverinfo?i:o,s=l.hoverinfo;if(1===r._dataLength){var u="all"===s.dflt?s.flags.slice():s.dflt.split("+");u.splice(u.indexOf("name"),1),a=u.join("+")}return t.coerce(e,n,l,"hoverinfo",a)},t.coerceSelectionMarkerOpacity=function(e,t){if(e.marker){var n,r,a=e.marker.opacity;if(void 0!==a)f(a)||e.selected||e.unselected||(n=a,r=l*a),t("selected.marker.opacity",n),t("unselected.marker.opacity",r)}},t.validate=p},af23:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 60 60"},e),o.default.createElement("circle",{cx:"29.31",cy:"31.08",r:"14.14",fill:"#09ffff"}),o.default.createElement("path",{d:"M29.24 47.68A16.82 16.82 0 0 1 21 45.5l2.17-3.82a12.52 12.52 0 0 0 18.58-10.92h4.41a16.94 16.94 0 0 1-16.92 16.92z",fill:"#a6fff8"}),o.default.createElement("path",{d:"M20.23 47.09a18.67 18.67 0 0 1 9.34-34.83v18.67M29.57 30.93h18.67a18.67 18.67 0 0 0-18.67-18.67v18.67",fill:"#119dff"}),o.default.createElement("path",{d:"M19.46 48.5A20 20 0 1 1 49 30.93h-3.82a16.21 16.21 0 1 0-23.91 14.24z",fill:"#09ffff"}),o.default.createElement("path",{d:"M29.29 31.31h-12.1a12.1 12.1 0 0 1 12.1-12.1z",fill:"#09ffff"}),o.default.createElement("path",{d:"M31.38 32.49L40 37.63a11.08 11.08 0 0 1-8.41 5.49l-.25-10.63",fill:"#119dff"}),o.default.createElement("circle",{cx:"29.61",cy:"30.35",r:"7.32",fill:"#fff"}),o.default.createElement("circle",{cx:"29.61",cy:"30.35",r:"3.1",fill:"#119dff"}))};t.default=u},b012:function(e,t){function n(e,t,n){var r,a,o,i,l;function s(){var u=Date.now()-i;u<t&&u>=0?r=setTimeout(s,t-u):(r=null,n||(l=e.apply(o,a),o=a=null))}null==t&&(t=100);var u=function(){o=this,a=arguments,i=Date.now();var u=n&&!r;return r||(r=setTimeout(s,t)),u&&(l=e.apply(o,a),o=a=null),l};return u.clear=function(){r&&(clearTimeout(r),r=null)},u.flush=function(){r&&(l=e.apply(o,a),o=a=null,clearTimeout(r),r=null)},u}n.debounce=n,e.exports=n},b0120:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){var e={x:0,y:0},t=document.getElementsByClassName("text-editor")[0].getBoundingClientRect(),n=158.5;return t&&(e.x+=.5*t.width-n/2,e.y+=.5*t.height),e},a=r;t.default=a},b041:function(e,t,n){"use strict";var r=n("00ee"),a=n("f5df");e.exports=r?{}.toString:function(){return"[object "+a(this)+"]"}},b047:function(e,t){function n(e){return function(t){return e(t)}}e.exports=n},b047c:function(e,t,n){var r=n("1a8c"),a=n("408c"),o=n("b4b0"),i="Expected a function",l=Math.max,s=Math.min;function u(e,t,n){var u,c,f,p,d,h,v=0,m=!1,y=!1,g=!0;if("function"!=typeof e)throw new TypeError(i);function b(t){var n=u,r=c;return u=c=void 0,v=t,p=e.apply(r,n),p}function x(e){return v=e,d=setTimeout(k,t),m?b(e):p}function _(e){var n=e-h,r=e-v,a=t-n;return y?s(a,f-r):a}function w(e){var n=e-h,r=e-v;return void 0===h||n>=t||n<0||y&&r>=f}function k(){var e=a();if(w(e))return T(e);d=setTimeout(k,_(e))}function T(e){return d=void 0,g&&u?b(e):(u=c=void 0,p)}function E(){void 0!==d&&clearTimeout(d),v=0,u=h=c=d=void 0}function O(){return void 0===d?p:T(a())}function M(){var e=a(),n=w(e);if(u=arguments,c=this,h=e,n){if(void 0===d)return x(h);if(y)return clearTimeout(d),d=setTimeout(k,t),b(h)}return void 0===d&&(d=setTimeout(k,t)),p}return t=o(t)||0,r(n)&&(m=!!n.leading,y="maxWait"in n,f=y?l(o(n.maxWait)||0,t):f,g="trailing"in n?!!n.trailing:g),M.cancel=E,M.flush=O,M}e.exports=u},b05c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M29.313 0H2.688A2.668 2.668 0 0 0 0 2.688v26.625c0 1.5 1.188 2.688 2.688 2.688h26.625c1.5 0 2.688-1.188 2.688-2.688V2.688c0-1.5-1.188-2.688-2.688-2.688zM18.125 2.938c.125.125.25.125.438.125h.375c0 .125 0 .125-.125.25h-.125l-.125.125s0 .188-.188.188h.313v-.313-.125c-.125-.125-.125-.125-.313 0-.125.125-.125.125-.25 0 0 0 0-.125-.125-.125 0-.125-.125-.125-.125-.125l-.25-.125-.188-.125h-.125H18c.125.125.125.125.125.25zm-.812.125v.375l-.125.188c-.125.125-.125 0-.125-.188v-.25h-.25-.125s-.125.125 0 .125.125.125.125.313h-1.376v-.188h.188c.25 0 .375 0 .5-.125.125-.375-.125-.375-.25-.375s-.125 0-.25-.125l-.188-.125h1.75c0 .125.125.25.125.375zm-4.375 0c.125 0 .125.125.25.125 0 0 0 .25-.125.125s-.375-.125-.5-.125c-.188-.125-.313-.125-.438-.125h-.688c-.125 0-.125.125-.25.125v-.25h-.125s-.125 0-.125.125c-.125-.125-.25-.125-.375-.125h-.938s0 .125-.188.125c0 .125-.125.25-.25 0h-.625c-.188 0-.438-.125-.563-.25-.25 0-.563.125-.813.125-.125 0-.25-.125-.5-.125h-.813-.125c-.125 0-.125-.125-.313-.125h6c.313.125.438.125.563.25.125 0 .375 0 .563-.125v-.125h.125zM12 8c-.125 0-.125-.125-.125-.25s-.125-.125-.25-.125h-.188v-.188l.188.188c.125 0 .25 0 .375.125V8zM2.688 2.688h2.75s0 .125-.125.125-.25.125-.375.125-.25.125-.563.125H4s-.125.125-.125.25.125.313.25.313.25 0 .438.125c.125 0 .25.125.25.25.125 0 .125.125 0 .125-.25-.125-.438-.125-.563-.25l-.125-.125L4 3.876c-.25 0-.375.125-.563.125 0 .125.188.25.313.25.125.125.25.125.375.125h.563s0 .313-.313.313c-.125 0-.375 0-.5.125 0 .125-.125.125-.125.25.125.125.25.375.25.563 0 .125.125 0 .25 0 0 0 .125 0 .125-.188 0-.125.313-.125.188.188 0 .125 0 .25.125.25 0-.125.125-.25.125-.25l.25.25s.125-.125.125 0 0 0-.125.125-.375.125-.5.25h-.188c-.125 0-.125.125-.25.125s-.125.313 0 .313c.25 0 .563-.125.813-.313.125 0 .125.188.375 0l.125-.125c.188-.125.313-.125.313-.25.125.125.125.125.25.125h.125c.125 0 .125-.125.25-.125v-.125h-.25c.125 0 .125-.125.25-.25v-.188c0-.125.188-.125.188-.125.125 0 .125 0 0 .313-.188.25.125-.188.25-.188h.375c0-.125 0-.125.125-.125 0-.125 0-.125.125-.25.188.125.313.125.438.125s.25 0 .375.125c.125 0 .688.125.813.125.25 0 .375.188.375.438s.188.25.188.25c.125 0 .25.125.375.25 0 .188 0 .438.125.563s.25.125.438.25v-.125c0-.125 0-.125-.188-.125v-.125c0-.125.188-.125.188 0 0-.125.125 0 .25.125s.125.25.125.25 0 .438.125.438.25.125.375.25c0 0 .188.125.188.25s.125.25.125.438v.75c0 .313.125.563.25.813 0 .25 0 .563.125.688s.25.125.563.125c.125 0 .25.125.375.375 0 .438.125.563.25.813.125 0 .313.125.125.25-.125.188-.125.313 0 .313.188 0 .188-.125.313.125.125.125.125.25.25.375 0 .125.125.125.125.125.125 0 .125.313.438.313v-.188c-.188-.125-.188-.125-.313-.25 0-.125-.125-.25-.125-.25 0-.125-.125-.25-.125-.25h-.125c-.125-.125-.125-.313-.25-.438l-.188-.125s-.125-.125 0-.25c.188-.125.188.125.313.25.125.25.375.563.5.688.125.25.313.375.563.625.125.188.25.188.25.313s.125.25.125.25c0 .125 0 .25.125.375a.77.77 0 0 1 .688.438c0 .125.125.375.25.375h.438s.125.125.25 0c0-.125.125-.125.25-.125s.25.125.25.25c.188.125.313.313.438.313s.25.125.25.125c.125 0 .125 0 .25.125.188.125.313.25.188.375 0 .125.125.313.25.313.125.125.25.125.25.25.125 0 .25.125.25.125s.125.125.313.125l.125-.125v-.125h.25c.125.125.125.25.125.375.125.125.125.438.125.563s0 .25-.125.375-.25.125-.25.25c-.125.188-.25.313-.25.438v.5c-.188.125-.188.313-.188.563s.438.25.438.375.25.688.25.813c.125.25.125.375.125.688.125.25.313.375.563.375.125 0 .25.125.25.25.125.188.25.188.25.313s.125.25 0 .375c0 0 0 .688-.125.938v.813c-.125.125-.25.125-.125.25s.375.25.375.25c0 .125.188.313 0 .563 0 .125-.125.25-.125.375-.125.125-.125.313-.125.438s-.125.125-.125.25.125.125.125.25-.125.25-.125.438c0 .125 0 .25.125.375 0 .125-.125.25-.125.375-.125.188-.125.313-.125.313 0 .125.125.125.125.25 0 0 0 .125-.125.25H2.696zm26.625 26.625h-6.625v-.125-.25h-.313v-.125l.188-.125.125-.125c.125-.188.125-.313.25-.313 0 0 .125-.125.125-.25s0 0-.125 0-.125-.125-.125-.25c.125 0 .25 0 .375.125h.125v-.25-.188-.125h.688c.125 0 .125-.125.125-.25l.125-.125s.125-.125 0-.25h-.25l-.125-.125v-.188c0-.125 0-.25.125-.375 0 .25 0 .375.25.563.125.125.438 0 .563-.188l.125-.125c.125-.125.25-.25.25-.375v-.25s0-.188.125-.188l.125-.125c0-.125.188-.125.313-.25v-.25-.25l.125-.188.25-.125c.125 0 .125-.125.25-.125.188 0 .313 0 .438-.125 0-.125.125-.25.125-.375l.125-.188.125-.125c.125-.125.125-.25.125-.25v-.25c0-.125 0-.25.125-.25v-.313c0-.125 0-.25.188-.25l.625-.813c.125-.125.125-.25.313-.375l.125-.25c0-.188.125-.313.125-.438s0-.125-.125-.25c0-.125-.125-.125-.313-.25-.125 0-.25 0-.25-.188 0 0-.125 0-.125-.125l-.125-.125c-.125-.125-.25-.125-.25-.125h-.438l-.375-.25c-.125-.125-.25-.125-.438-.125-.125 0-.125-.125-.25.125 0 .125-.125.125-.125.25h-.25-.125l.125-.125v-.25-.313c0 .188-.125.188-.313.313-.25 0-.25-.125-.125-.125s.313-.188.438-.188.125-.125.125-.125c0-.125 0-.125-.125-.25s-.125-.25-.313-.375l-.25-.438c-.125-.125-.25-.25-.5-.25-.125 0-.313.25-.438 0v-.125l-.25-.25h-.25s-.313 0-.125-.188v-.125-.25-.125c0 .125-.188.125-.313.25l-.25-.25h-.25s-.125 0-.125.125v.125s0-.125-.125-.125c-.188-.125-.313-.125-.438 0 0 0-.125 0-.125-.125s-.125-.125-.125-.25h-.125c-.125 0-.125.125-.125.25s-.188.25-.188.375v-.125-.25c0-.125.188-.25 0-.25h-.125l.125.375h-.125c-.125.125-.25.125-.25.25s-.125.313-.25.313h-.125c0-.188-.125-.188-.125-.188h-.313-.125l-.25.188c-.125.125-.25 0-.438 0 0-.188-.125-.188-.125-.313v-.125-.25-.438c0-.125 0-.125-.125-.25 0-.125-.125-.125-.25-.125s-.25.125-.25.125h-.313c-.125 0 0 0 0-.125v-.125-.25c0-.125 0-.125.188-.313.125-.125.125-.25.125-.375 0 0 0-.125-.125-.125h-.563a.269.269 0 0 0-.25.25v.125c0 .125 0 .313-.125.313-.188-.188-.313-.188-.313 0 0 .125 0 0-.25-.188h-.125c-.125-.125-.25-.25-.25-.375v-.125-.438-.25-.375s0-.125.125-.125l.125-.313c.125 0 .125-.125.25-.25h.438c.125 0 .25 0 .375.125h.25v-.125s.125-.125.313-.125c.125 0 .375-.125.5-.125 0 0 .125.25.25.25.125-.125.125-.25.125 0s.188.438.313.688c0 .125.125.25.25.25.125-.125.125-.125.125-.25v-.25c0-.188-.125-.313-.125-.438 0 0 0-.125-.125-.125v-.125c0-.125.125-.25.125-.25.125-.188.125-.188.25-.313s.125-.25.313-.25c.125-.125.375-.125.25-.25s-.125-.25-.125-.563c0-.125.125-.125.125 0s.25-.125.125-.25v-.125h.125v-.125c0-.125.125-.125.25-.125h.563v-.188c0-.125-.125-.125-.125-.25v-.125c0-.125.125-.25.25-.25h.25l.125-.125h.188s0 .375.125.375.25-.125.25-.125l.375-.125c.125 0 .313 0 .438-.125v-.313s0-.125-.125-.125c0 0-.188 0-.188.125h-.125c0-.125 0-.25-.125-.25l-.125.125-.125-.125c.125 0 .125-.125 0-.25h-.25s-.125.125-.313.125c-.125 0-.125 0-.25.125C22 7.99 22 7.865 22 7.865c0-.125 0-.125.125-.125s.438-.125.563-.125c.125 0 .25 0 .25.125v.375s.375-.125.25-.125 0 0 0-.125l.125-.125h.438l.125-.125c.125 0 .125.125 0 .25s-.125.25-.25.5c-.188.188 0 .188.125.188h.375c.125 0 .125 0 .25.125h.563v-.125l-.125-.313v-.5-.125h-.125v-.188c-.125 0-.125.188-.125 0 .125-.125.125-.125.125-.25s.125-.125.125-.25v-.125a.269.269 0 0 1-.25-.25c0-.188-.188-.188-.313-.313h-.5c0-.125 0-.125-.125-.25 0 0 0-.125-.188-.125l-.125-.125-.25-.438v-.125s-.125 0-.25.25l-.125.188h-.125c-.188 0-.313-.188-.438-.313v-.125l.125-.125c-.125-.125-.25-.125-.375-.125-.125-.125-.25-.125-.563-.25h-.625c-.125.125-.125.25-.125.25v.25h-.188v.125c.188.125.313.313.313.438s0 .125-.125.25c-.188.25-.313.25-.438.25h-.125c.125.125.125.125.125.313v.5h-.25c-.125 0-.125-.125-.125-.125v-.25l-.125.125v-.25-.188c0-.125-.188-.25-.313-.25 0-.125-.125-.125-.25-.125h-.5c-.188 0-.313-.125-.438-.25h-.25-.25c0-.125 0-.125-.188-.313-.125 0 0-.125-.125-.25v-.25l.313-.125.25-.125c0-.125.125-.313.25-.313.25 0 .438.188.438.188v-.188-.25c0 .125.25.125.125.25-.125.188 0 .188 0 .188.125 0 .25-.188.25-.188s.25-.125.25 0c0 .188 0 .313.125.313s.313-.125.125-.313c-.125-.125-.25-.125-.25-.25l.25-.125h-.125-.125-.125s0-.125.125-.125h.563c.125 0 .125 0 .25-.125l.125-.125c0-.188-.125-.188-.125-.188l.125-.125h.438v-.125c.125 0 0 .25.125.125h.25c0 .125 0 .313-.125.313h-.125s-.125.125 0 .125h.25c0-.125.125-.125.125-.313h.125s.25.188.125.188l-.125.125c-.125 0-.125.125-.125.125v.125h-.25-.125-.125v.375s.125 0 .25-.125h.5c.125 0 .313.125.313.125.125 0 .125.188.25.188H22c.125 0 .125.125.125.125h.25v-.125h.188c.125.125.125.125.25.125v-.125c0-.188 0-.188-.125-.313s-.313-.125-.438-.25v-.125c.125 0 .313 0 .438.125s.25.125.25.125l.125-.125h.125l.438-.25h-.188c-.125 0-.25 0-.25-.125-.125-.188-.25-.188-.375-.313 0 0-.25.125-.25 0v-.25c0-.125 0-.125-.188-.25l-.625-.125h7.563zM19.875 8.375c0-.125-.125.313 0 .438 0 .125 0 .125-.125.25h-.125s-.188-.125-.188-.25v-.125c0-.125 0-.313-.125-.313h-.125c-.125 0-.125.188-.25.313v.625c-.125 0-.25-.125-.25-.375v-.125-.438c.125-.125.25-.125.375-.25.125 0 .375.125.375.125h.438c.125.125.25.313.25.438-.125 0-.25-.125-.25-.313zm.375.438c.313-.125.438-.125.563-.125.125.125-.125.125-.125.25-.125 0-.125.125-.313.125l-.25.125H20v.125c-.125.125-.25.125-.25.125l.25-.125v-.125zM19.063 8h-.375s-.125 0-.125-.125c-.188 0-.313 0-.313.125H18v-.125l.25-.125c.125-.125.313-.313.563-.313.125.188.25.313.375.313 0 0 0 .25-.125.25z"}))};t.default=u},b07b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GraphCreatePanel",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"GraphTransformsPanel",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"StyleLayoutPanel",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"StyleAxesPanel",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"StyleMapsPanel",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"StyleLegendPanel",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"StyleNotesPanel",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"StyleShapesPanel",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"StyleSlidersPanel",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"StyleImagesPanel",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"StyleTracesPanel",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"StyleColorbarsPanel",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"StyleUpdateMenusPanel",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"GraphSubplotsPanel",{enumerable:!0,get:function(){return m.default}});var r=y(n("57a4")),a=y(n("8d19")),o=y(n("e8b50")),i=y(n("5295")),l=y(n("0bea")),s=y(n("f6dc")),u=y(n("cb42")),c=y(n("61ba")),f=y(n("1359")),p=y(n("40dd")),d=y(n("6d5b")),h=y(n("e750")),v=y(n("306b")),m=y(n("54b1"));function y(e){return e&&e.__esModule?e:{default:e}}},b092:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=p(n("ab5b")),a=c(n("d7bc")),o=n("4578"),i=c(n("5174")),l=c(n("e518")),s=n("7515"),u=c(n("76fe"));function c(e){return e&&e.__esModule?e:{default:e}}function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==y(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(){return d=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},d.apply(this,arguments)}function h(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e){return y="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},y(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 x(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}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&&w(e,t)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function k(e){var t=O();return function(){var n,r=M(e);if(t){var a=M(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==y(t)&&"function"!==typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(){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}}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var S=(0,o.connectToContainer)(s.UnconnectedDropdown,{modifyPlotProps:function(e,t,n){if(!n.fullValue)return n.isVisible=!0,void(n.fullValue=n.container.locationmode)}}),C=function(e){_(n,e);var t=k(n);function n(){return g(this,n),t.apply(this,arguments)}return x(n,[{key:"render",value:function(){var e=this.context.localize;return r.default.createElement(r.default.Fragment,null,r.default.createElement(u.default,{label:e("Locations"),attr:"locations"}),r.default.createElement(S,{label:e("Location Format"),attr:"locationmode",clearable:!1,options:[{label:e("GeoJSON feature"),value:"geojson-id"},{label:e("Country Names"),value:"country names"},{label:e("Country Abbreviations (ISO-3)"),value:"ISO-3"},{label:e("USA State Abbreviations (e.g. NY)"),value:"USA-states"}]}))}}]),n}(r.Component);C.propTypes=v({attr:a.default.string},i.default.propTypes),C.contextTypes={localize:a.default.func,updateContainer:a.default.func};var A=(0,o.connectToContainer)(C),P=function(e){_(n,e);var t=k(n);function n(e,r){var a;return g(this,n),a=t.call(this,e,r),a.state={mode:e.container.locations?"location":"latlon"},a.setMode=a.setMode.bind(E(a)),a}return x(n,[{key:"componentWillMount",value:function(){this.setState({mode:this.props.container.locations?"location":"latlon"})}},{key:"setMode",value:function(e){this.setState({mode:e}),this.props.updateContainer("latlon"===e?{locations:null,locationmode:null,locationssrc:null,locationmodesrc:null}:{lat:null,lon:null,latsrc:null,lonsrc:null})}},{key:"render",value:function(){var e=this.state.mode,t=this.context,n=t.localize,a=t.container.type;return"scattergeo"===a?r.default.createElement(r.default.Fragment,null,r.default.createElement(i.default,d({},this.props,{attr:this.props.attr}),r.default.createElement(l.default,{options:[{value:"latlon",label:n("Lat/Lon")},{value:"location",label:n("Location")}],fullValue:e,updatePlot:this.setMode,attr:this.props.attr})),"latlon"===e?r.default.createElement(r.default.Fragment,null,r.default.createElement(u.default,{label:n("Latitude"),attr:"lat"}),r.default.createElement(u.default,{label:n("Longitude"),attr:"lon"})):r.default.createElement(A,{attr:"type"})):"choropleth"===a?r.default.createElement(A,{attr:"type"}):"choroplethmapbox"===a?r.default.createElement(u.default,{label:n("Locations"),attr:"locations"}):r.default.createElement(r.default.Fragment,null,r.default.createElement(u.default,{label:n("Latitude"),attr:"lat"}),r.default.createElement(u.default,{label:n("Longitude"),attr:"lon"}))}}]),n}(r.Component);P.propTypes=v({fullValue:a.default.any,updatePlot:a.default.func,attr:a.default.string},i.default.propTypes),P.contextTypes={container:a.default.object,localize:a.default.func,updateContainer:a.default.func};var L=(0,o.connectToContainer)(P);t.default=L},b0c0:function(e,t,n){var r=n("83ab"),a=n("9bf2").f,o=Function.prototype,i=o.toString,l=/^\s*function ([^ (]*)/,s="name";r&&!(s in o)&&a(o,s,{configurable:!0,get:function(){try{return i.call(this).match(l)[1]}catch(e){return""}}})},b158:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPointerCircle=void 0;var r=n("ab5b"),a=l(r),o=n("fc55"),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.PhotoshopPointerCircle=function(){var e=(0,i.default)({default:{triangle:{width:0,height:0,borderStyle:"solid",borderWidth:"4px 0 4px 6px",borderColor:"transparent transparent transparent #fff",position:"absolute",top:"1px",left:"1px"},triangleBorder:{width:0,height:0,borderStyle:"solid",borderWidth:"5px 0 5px 8px",borderColor:"transparent transparent transparent #555"},left:{Extend:"triangleBorder",transform:"translate(-13px, -4px)"},leftInside:{Extend:"triangle",transform:"translate(-8px, -5px)"},right:{Extend:"triangleBorder",transform:"translate(20px, -14px) rotate(180deg)"},rightInside:{Extend:"triangle",transform:"translate(-8px, -5px)"}}});return a.default.createElement("div",{style:e.pointer},a.default.createElement("div",{style:e.left},a.default.createElement("div",{style:e.leftInside})),a.default.createElement("div",{style:e.right},a.default.createElement("div",{style:e.rightInside})))};t.default=s},b1c6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={DefaultEditor:!0,EditorControls:!0,EDITOR_ACTIONS:!0};Object.defineProperty(t,"DefaultEditor",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"EditorControls",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"EDITOR_ACTIONS",{enumerable:!0,get:function(){return l.EDITOR_ACTIONS}}),t.default=void 0;var a=f(n("303f")),o=f(n("a794")),i=f(n("8bcf")),l=n("e419"),s=n("4578");Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var u=n("c85e");Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var c=n("b07b");function f(e){return e&&e.__esModule?e:{default:e}}Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var p=a.default;t.default=p},b1db:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n("ab5b"),o=s(a),i=n("d7bc"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function f(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)}var p=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),r(t,[{key:"shouldComponentUpdate",value:function(e){return this.props!==e}},{key:"render",value:function(){for(var e=this.props,t=e.classNames,n=e.firstDayOfWeek,r=e.showWeekNumbers,a=e.weekdaysLong,i=e.weekdaysShort,l=e.locale,s=e.localeUtils,u=e.weekdayElement,c=[],f=0;f<7;f+=1){var p=(f+n)%7,d={key:f,className:t.weekday,weekday:p,weekdaysLong:a,weekdaysShort:i,localeUtils:s,locale:l},h=o.default.isValidElement(u)?o.default.cloneElement(u,d):o.default.createElement(u,d);c.push(h)}return o.default.createElement("div",{className:t.weekdays,role:"rowgroup"},o.default.createElement("div",{className:t.weekdaysRow,role:"row"},r&&o.default.createElement("div",{className:t.weekday}),c))}}]),t}(a.Component);p.propTypes={classNames:l.default.shape({weekday:l.default.string.isRequired,weekdays:l.default.string.isRequired,weekdaysRow:l.default.string.isRequired}).isRequired,firstDayOfWeek:l.default.number.isRequired,weekdaysLong:l.default.arrayOf(l.default.string),weekdaysShort:l.default.arrayOf(l.default.string),showWeekNumbers:l.default.bool,locale:l.default.string.isRequired,localeUtils:l.default.object.isRequired,weekdayElement:l.default.oneOfType([l.default.element,l.default.func,l.default.instanceOf(o.default.Component)])},t.default=p},b1e5:function(e,t,n){var r=n("a994"),a=1,o=Object.prototype,i=o.hasOwnProperty;function l(e,t,n,o,l,s){var u=n&a,c=r(e),f=c.length,p=r(t),d=p.length;if(f!=d&&!u)return!1;var h=f;while(h--){var v=c[h];if(!(u?v in t:i.call(t,v)))return!1}var m=s.get(e);if(m&&s.get(t))return m==t;var y=!0;s.set(e,t),s.set(t,e);var g=u;while(++h<f){v=c[h];var b=e[v],x=t[v];if(o)var _=u?o(x,b,v,t,e,s):o(b,x,v,e,t,s);if(!(void 0===_?b===x||l(b,x,n,o,s):_)){y=!1;break}g||(g="constructor"==v)}if(y&&!g){var w=e.constructor,k=t.constructor;w==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(y=!1)}return s["delete"](e),s["delete"](t),y}e.exports=l},b207:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M3,3H21V5H3V3M9,7H21V9H9V7M3,11H21V13H3V11M9,15H21V17H9V15M3,19H21V21H3V19Z"}))};e.exports=l},b218:function(e,t){var n=9007199254740991;function r(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}e.exports=r},b289:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 20 20"},e),o.default.createElement("path",{d:"M3.42 5.38h2.5v12.06h-2.5zM6.45 5.38H8.7v2.97H6.45zM11.93 2.57h2.16v9.69h-2.16zM9.16 8.12h2.2v4.13h-2.2zM14.67 2.57h2.35v14.86h-2.35zM5.92 5.38h.52v.22h-.52z"}),o.default.createElement("path",{d:"M8.7 8.12h.52v.22H8.7zM11.27 12.03h.78v.22h-.78zM14.09 2.57h.78v.22h-.78z"}))};t.default=u},b2bb:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.calculateChange=function(e,t,n,r){var a=r.clientWidth,o=r.clientHeight,i="number"===typeof e.pageX?e.pageX:e.touches[0].pageX,l="number"===typeof e.pageY?e.pageY:e.touches[0].pageY,s=i-(r.getBoundingClientRect().left+window.pageXOffset),u=l-(r.getBoundingClientRect().top+window.pageYOffset);if("vertical"===t){var c=void 0;if(u<0)c=359;else if(u>o)c=0;else{var f=-100*u/o+100;c=360*f/100}if(n.h!==c)return{h:c,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var p=void 0;if(s<0)p=0;else if(s>a)p=359;else{var d=100*s/a;p=360*d/100}if(n.h!==p)return{h:p,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null}},b319:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z"}))};e.exports=l},b3bc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{d:"M40.616 19.3a16.387 16.387 0 0 0-1.352-3.904 9.836 9.836 0 0 0-4.225-4.015c-6.17-3.152-13.563-4.731-20.021-1.298a23.665 23.665 0 0 0-4.74 3.47 14.357 14.357 0 0 0-3.28 3.934c-1.636 3.205-.982 6.997-.015 10.433a7.81 7.81 0 0 0 1.083 2.555 8.344 8.344 0 0 0 2.63 2.1c2.611 1.526 5.352 2.845 8.089 4.161a13.223 13.223 0 0 0 2.59 1.028 11.867 11.867 0 0 0 3.048.229 8.678 8.678 0 0 0 3.538-.623 8.95 8.95 0 0 0 2.162-1.622l6.115-5.645c2.223-2.053 4.584-4.37 4.83-7.288a10.951 10.951 0 0 0-.452-3.515zm-5.174 2.942c-.29 1.988-1.825 3.679-3.153 4.984a88.579 88.579 0 0 1-3.648 3.367 5.915 5.915 0 0 1-1.32.94 5.617 5.617 0 0 1-2.098.423 7.835 7.835 0 0 1-1.807-.076 9.038 9.038 0 0 1-1.8-.557 31.794 31.794 0 0 1-5.487-2.889 7.104 7.104 0 0 1-1.758-1.487q-.114-.146-.212-.3a5.426 5.426 0 0 1-.622-1.396 11.172 11.172 0 0 1-.476-3.496 6.775 6.775 0 0 1 .752-2.988 9.108 9.108 0 0 1 2.07-2.44 13.848 13.848 0 0 1 3.042-2.08 11.145 11.145 0 0 1 1.363-.556c3.693-1.236 7.762-.478 11.257 1.23a7.12 7.12 0 0 1 2.765 2.381 6.918 6.918 0 0 1 .995 2.566 6.94 6.94 0 0 1 .137 2.374z",fill:"#25fdfc",stroke:"#1d9bfb",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{d:"M34.31 17.302a7.12 7.12 0 0 0-2.765-2.382c-3.495-1.709-7.564-2.466-11.257-1.23a11.145 11.145 0 0 0-1.363.556 13.848 13.848 0 0 0-3.043 2.081 9.108 9.108 0 0 0-2.07 2.44 6.775 6.775 0 0 0-.75 2.987 11.172 11.172 0 0 0 .475 3.496 5.426 5.426 0 0 0 .622 1.397q.099.153.212.3a7.104 7.104 0 0 0 1.758 1.486 31.794 31.794 0 0 0 5.486 2.889 9.038 9.038 0 0 0 1.801.558 7.835 7.835 0 0 0 1.807.075 5.617 5.617 0 0 0 2.099-.423 5.915 5.915 0 0 0 1.319-.94 88.299 88.299 0 0 0 3.648-3.366c1.328-1.306 2.863-2.996 3.153-4.985a6.94 6.94 0 0 0-.137-2.373 6.918 6.918 0 0 0-.995-2.566z",fill:"#25fdfc",stroke:"#1d9bfb",opacity:".25",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{d:"M25.457 25.996c-1.787.083-3.494-1.142-4.914-2.724a2.032 2.032 0 0 1-.452-.69 2.44 2.44 0 0 1 .028-1.4 3.985 3.985 0 0 1 1.368-2.08 4.888 4.888 0 0 1 1.922-.854 6.99 6.99 0 0 1 5.948.96c1.604 1.233-.197 4.086-1.018 5.142a3.975 3.975 0 0 1-2.882 1.646z",fill:"#fff",stroke:"#1d9bfb",strokeMiterlimit:"10",strokeWidth:"2"}))};t.default=u},b3ca:function(e,t,n){"use strict";var r=n("0984"),a=n("904e"),o=r.isPlatform("Mac OS X"),i={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return o&&e.altKey},usesMacOSHeuristics:function(){return o},hasCommandModifier:function(e){return o?!!e.metaKey&&!e.altKey:i.isCtrlKeyCommand(e)},isSoftNewlineEvent:a};e.exports=i},b3f5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n("ab5b")),a=l(n("d7bc")),o=l(n("99fb")),i=n("dccc");function l(e){return e&&e.__esModule?e:{default:e}}function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return c="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},c(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var _=function(e){h(n,e);var t=m(n);function n(){return f(this,n),t.apply(this,arguments)}return d(n,[{key:"render",value:function(){var e=this.props,t=e.currentStyle,n=e.linkIsSelected,a=e.styles,l=e.onToggle,s=function(e,t){return t===i.LINK?n:"function"===typeof e.has?e.has(t):Boolean(e.value)};return r.default.createElement("div",{className:"rich-text-editor__controls"},a.map((function(e){var n=e.label,a=e.value;return r.default.createElement(o.default,{key:a,active:s(t,a),label:n,onToggle:l,value:a})})))}}]),n}(r.Component);_.propTypes={onToggle:a.default.func.isRequired,styles:a.default.arrayOf(a.default.shape({label:a.default.element.isRequired,value:a.default.string.isRequired})).isRequired,currentStyle:a.default.object,linkIsSelected:a.default.bool};var w=_;t.default=w},b4a1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 17.993999481201172 16"},e),o.default.createElement("path",{d:"M2.998 1.019V1L.006 4.008 3 7h15V1.019H2.998zm0 7.988v-.015L.006 11.994 3 15h15V9l-15.002.007z"}))};t.default=u},b4a5:function(e,t,n){"use strict";function r(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function a(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function o(){return{width:window.innerWidth||r(),height:window.innerHeight||a()}}o.withoutScrollbars=function(){return{width:r(),height:a()}},e.exports=o},b4b0:function(e,t,n){var r=n("1a8c"),a=n("ffd6"),o=NaN,i=/^\s+|\s+$/g,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;function f(e){if("number"==typeof e)return e;if(a(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):l.test(e)?o:+e}e.exports=f},b4c0:function(e,t,n){var r=n("cb5a");function a(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}e.exports=a},b4fd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cursorHasLink=l,t.getEntityByKey=s,t.getEntityKeyAt=u,t.handleKeyCommand=c,t.insertSoftNewline=f,t.toggleInlineStyle=p,t.toggleLink=d,t.toggleMutuallyExclusiveStyles=h;var r=n("bfcd"),a=n("7f23"),o=n("dccc");function i(e,t){return!t.isCollapsed()&&l(e,t)}function l(e,t){var n=s(u(e,t));return Boolean(n&&n.get("type")===o.LINK)}function s(e){return e?r.Entity.get(e):null}function u(e,t){if(!t)return null;var n=t.getStartKey(),r=t.getStartOffset(),a=e.getCurrentContent(),o=a.getBlockForKey(n);return o.getEntityAt(r)}function c(e,t){switch(t){case"split-block":return f(e);case"bold":return p(e,o.BOLD);case"italic":return p(e,o.ITALIC);default:return!1}}function f(e){var t=e,n=t.getCurrentInlineStyle();t=n.reduce((function(e,t){return r.RichUtils.toggleInlineStyle(e,t)}),t);var o=t.getSelection(),i=o.getStartOffset(),l=o.getEndOffset();if(l-i!==0){var s=(0,a.removeRange)(t.getCurrentContent(),o,"back");t=r.EditorState.push(t,s,"backspace-character")}return r.RichUtils.insertSoftNewline(t)}function p(e,t){if(t===o.LINK)return d(e);var n=h(e,t);return r.RichUtils.toggleInlineStyle(n,t)}function d(e){var t=e.getSelection();if(i(e,t))return r.RichUtils.toggleLink(e,t,null);var n=r.Entity.create(o.LINK,"MUTABLE",{url:""});return r.RichUtils.toggleLink(e,t,n)}function h(e,t){var n=e.getCurrentInlineStyle();return t===o.SUBSCRIPT&&n.includes(o.SUPERSCRIPT)?r.RichUtils.toggleInlineStyle(e,o.SUPERSCRIPT):t===o.SUPERSCRIPT&&n.includes(o.SUBSCRIPT)?r.RichUtils.toggleInlineStyle(e,o.SUBSCRIPT):e}},b50d:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M15,9H5V5H15M12,19C10.34,19 9,17.66 9,16C9,14.34 10.34,13 12,13C13.66,13 15,14.34 15,16C15,17.66 13.66,19 12,19M17,3H5C3.89,3 3,3.9 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V7L17,3Z"}))};e.exports=l},b51c:function(e,t,n){"use strict";var r,a,o=n("70e1").timeFormat,i=n("19b2"),l=n("f6a4"),s=n("7795").mod,u=n("7e6f"),c=u.BADNUM,f=u.ONEDAY,p=u.ONEHOUR,d=u.ONEMIN,h=u.ONESEC,v=u.EPOCHJD,m=n("4766"),y=n("70e1").utcFormat,g=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,x=(new Date).getFullYear()-70;function _(e){return e&&m.componentsRegistry.calendars&&"string"===typeof e&&"gregorian"!==e}function w(e,t){return String(e+Math.pow(10,t)).substr(1)}t.dateTick0=function(e,t){return _(e)?t?m.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:m.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"},t.dfltRange=function(e){return _(e)?m.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},t.isJSDate=function(e){return"object"===typeof e&&null!==e&&"function"===typeof e.getTime},t.dateTime2ms=function(e,n){if(t.isJSDate(e)){var o=e.getTimezoneOffset()*d,i=(e.getUTCMinutes()-e.getMinutes())*d+(e.getUTCSeconds()-e.getSeconds())*h+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var l=3*d;o=o-l/2+s(i-o+l/2,l)}return e=Number(e)-o,e>=r&&e<=a?e:c}if("string"!==typeof e&&"number"!==typeof e)return c;e=String(e);var u=_(n),y=e.charAt(0);!u||"G"!==y&&"g"!==y||(e=e.substr(1),n="");var w=u&&"chinese"===n.substr(0,7),k=e.match(w?b:g);if(!k)return c;var T=k[1],E=k[3]||"1",O=Number(k[5]||1),M=Number(k[7]||0),S=Number(k[9]||0),C=Number(k[11]||0);if(u){if(2===T.length)return c;var A;T=Number(T);try{var P=m.getComponentMethod("calendars","getCal")(n);if(w){var L="i"===E.charAt(E.length-1);E=parseInt(E,10),A=P.newDate(T,P.toMonthIndex(T,E,L),O)}else A=P.newDate(T,Number(E),O)}catch(j){return c}return A?(A.toJD()-v)*f+M*p+S*d+C*h:c}T=2===T.length?(Number(T)+2e3-x)%100+x:Number(T),E-=1;var D=new Date(Date.UTC(2e3,E,O,M,S));return D.setUTCFullYear(T),D.getUTCMonth()!==E||D.getUTCDate()!==O?c:D.getTime()+C*h},r=t.MIN_MS=t.dateTime2ms("-9999"),a=t.MAX_MS=t.dateTime2ms("9999-12-31 23:59:59.9999"),t.isDateTime=function(e,n){return t.dateTime2ms(e,n)!==c};var k=90*f,T=3*p,E=5*d;function O(e,t,n,r,a){if((t||n||r||a)&&(e+=" "+w(t,2)+":"+w(n,2),(r||a)&&(e+=":"+w(r,2),a))){var o=4;while(a%10===0)o-=1,a/=10;e+="."+w(a,o)}return e}t.ms2DateTime=function(e,t,n){if("number"!==typeof e||!(e>=r&&e<=a))return c;t||(t=0);var o,i,l,u,g,b,x=Math.floor(10*s(e+.05,1)),w=Math.round(e-x/10);if(_(n)){var M=Math.floor(w/f)+v,S=Math.floor(s(e,f));try{o=m.getComponentMethod("calendars","getCal")(n).fromJD(M).formatDate("yyyy-mm-dd")}catch(C){o=y("G%Y-%m-%d")(new Date(w))}if("-"===o.charAt(0))while(o.length<11)o="-0"+o.substr(1);else while(o.length<10)o="0"+o;i=t<k?Math.floor(S/p):0,l=t<k?Math.floor(S%p/d):0,u=t<T?Math.floor(S%d/h):0,g=t<E?S%h*10+x:0}else b=new Date(w),o=y("%Y-%m-%d")(b),i=t<k?b.getUTCHours():0,l=t<k?b.getUTCMinutes():0,u=t<T?b.getUTCSeconds():0,g=t<E?10*b.getUTCMilliseconds()+x:0;return O(o,i,l,u,g)},t.ms2DateTimeLocal=function(e){if(!(e>=r+f&&e<=a-f))return c;var t=Math.floor(10*s(e+.05,1)),n=new Date(Math.round(e-t/10)),i=o("%Y-%m-%d")(n),l=n.getHours(),u=n.getMinutes(),p=n.getSeconds(),d=10*n.getUTCMilliseconds()+t;return O(i,l,u,p,d)},t.cleanDate=function(e,n,r){if(e===c)return n;if(t.isJSDate(e)||"number"===typeof e&&isFinite(e)){if(_(r))return l.error("JS Dates and milliseconds are incompatible with world calendars",e),n;if(e=t.ms2DateTimeLocal(+e),!e&&void 0!==n)return n}else if(!t.isDateTime(e,r))return l.error("unrecognized date",e),n;return e};var M=/%\d?f/g;function S(e,t,n,r){e=e.replace(M,(function(e){var n=Math.min(+e.charAt(1)||6,6),r=(t/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0";return r}));var a=new Date(Math.floor(t+.05));if(_(r))try{e=m.getComponentMethod("calendars","worldCalFmt")(e,t,r)}catch(o){return"Invalid"}return n(e)(a)}var C=[59,59.9,59.99,59.999,59.9999];function A(e,t){var n=s(e+.05,f),r=w(Math.floor(n/p),2)+":"+w(s(Math.floor(n/d),60),2);if("M"!==t){i(t)||(t=0);var a=Math.min(s(e/h,60),C[t]),o=(100+a).toFixed(t).substr(1);t>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+o}return r}t.formatDate=function(e,t,n,r,a,o){if(a=_(a)&&a,!t)if("y"===n)t=o.year;else if("m"===n)t=o.month;else{if("d"!==n)return A(e,n)+"\n"+S(o.dayMonthYear,e,r,a);t=o.dayMonth+"\n"+o.year}return S(t,e,r,a)};var P=3*f;t.incrementMonth=function(e,t,n){n=_(n)&&n;var r=s(e,f);if(e=Math.round(e-r),n)try{var a=Math.round(e/f)+v,o=m.getComponentMethod("calendars","getCal")(n),i=o.fromJD(a);return t%12?o.add(i,t,"m"):o.add(i,t/12,"y"),(i.toJD()-v)*f+r}catch(c){l.error("invalid ms "+e+" in calendar "+n)}var u=new Date(e+P);return u.setUTCMonth(u.getUTCMonth()+t)+r-P},t.findExactDates=function(e,t){for(var n,r,a=0,o=0,l=0,s=0,u=_(t)&&m.getComponentMethod("calendars","getCal")(t),c=0;c<e.length;c++)if(r=e[c],i(r)){if(!(r%f))if(u)try{n=u.fromJD(r/f+v),1===n.day()?1===n.month()?a++:o++:l++}catch(d){}else n=new Date(r),1===n.getUTCDate()?0===n.getUTCMonth()?a++:o++:l++}else s++;o+=a,l+=o;var p=e.length-s;return{exactYears:a/p,exactMonths:o/p,exactDays:l/p}}},b575:function(e,t,n){var r,a,o,i,l,s,u,c,f=n("da84"),p=n("06cf").f,d=n("c6b6"),h=n("2cf4").set,v=n("1cdc"),m=f.MutationObserver||f.WebKitMutationObserver,y=f.process,g=f.Promise,b="process"==d(y),x=p(f,"queueMicrotask"),_=x&&x.value;_||(r=function(){var e,t;b&&(e=y.domain)&&e.exit();while(a){t=a.fn,a=a.next;try{t()}catch(n){throw a?i():o=void 0,n}}o=void 0,e&&e.enter()},b?i=function(){y.nextTick(r)}:m&&!v?(l=!0,s=document.createTextNode(""),new m(r).observe(s,{characterData:!0}),i=function(){s.data=l=!l}):g&&g.resolve?(u=g.resolve(void 0),c=u.then,i=function(){c.call(u,r)}):i=function(){h.call(f,r)}),e.exports=_||function(e){var t={fn:e,next:void 0};o&&(o.next=t),a||(a=t,i()),o=t}},b5a1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 16 16"},e),o.default.createElement("path",{d:"M.004 1v14h14V1h-14zM11 9H3V7h8v2z"}))};t.default=u},b5a7:function(e,t,n){var r=n("0b07"),a=n("2b3e"),o=r(a,"DataView");e.exports=o},b61a:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M8,3C6.9,3 6,3.9 6,5V9C6,10.1 5.1,11 4,11H3V13H4C5.1,13 6,13.9 6,15V19C6,20.1 6.9,21 8,21H10V19H8V14C8,12.9 7.1,12 6,12C7.1,12 8,11.1 8,10V5H10V3M16,3C17.1,3 18,3.9 18,5V9C18,10.1 18.9,11 20,11H21V13H20C18.9,13 18,13.9 18,15V19C18,20.1 17.1,21 16,21H14V19H16V14C16,12.9 16.9,12 18,12C16.9,12 16,11.1 16,10V5H14V3H16Z"}))};e.exports=l},b622:function(e,t,n){var r=n("da84"),a=n("5692"),o=n("5135"),i=n("90e3"),l=n("4930"),s=n("fdbf"),u=a("wks"),c=r.Symbol,f=s?c:c&&c.withoutSetter||i;e.exports=function(e){return o(u,e)||(l&&o(c,e)?u[e]=c[e]:u[e]=f("Symbol."+e)),u[e]}},b646:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("7515")),a=i(n("ab5b")),o=i(n("d7bc"));function i(e){return e&&e.__esModule?e:{default:e}}function l(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(){return c=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},c.apply(this,arguments)}var f=function(e,t){return a.default.createElement(r.default,c({},e,{options:t.fontOptions.map((function(e){var t=e.value,n=e.label;return{label:a.default.createElement("span",{style:{fontFamily:t}},n),value:t}}))}))};f.propTypes=s({},r.default.propTypes),f.defaultProps={clearable:!1},f.contextTypes={fontOptions:o.default.array};var p=f;t.default=p},b64b:function(e,t,n){var r=n("23e7"),a=n("7b0b"),o=n("df75"),i=n("d039"),l=i((function(){o(1)}));r({target:"Object",stat:!0,forced:l},{keys:function(e){return o(a(e))}})},b6b0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SliderPointer=void 0;var r=n("ab5b"),a=l(r),o=n("fc55"),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.SliderPointer=function(e){var t=e.direction,n=(0,i.default)({default:{picker:{width:"18px",height:"18px",borderRadius:"50%",transform:"translate(-9px, -1px)",backgroundColor:"rgb(248, 248, 248)",boxShadow:"0 1px 4px 0 rgba(0, 0, 0, 0.37)"}},vertical:{picker:{transform:"translate(-3px, -9px)"}}},{vertical:"vertical"===t});return a.default.createElement("div",{style:n.picker})};t.default=s},b6e2:function(e,t,n){"use strict";var r=n("dec3"),a=n("8cb4"),o=n("0c45"),i=n("f1df");function l(e){var t=i(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),i=t.getAnchorOffset(),l=n.getBlockForKey(r).getText()[i];return o(e,l?a.getUTF16Length(l,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}e.exports=l},b6ee:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChromePointerCircle=void 0;var r=n("ab5b"),a=l(r),o=n("fc55"),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.ChromePointerCircle=function(){var e=(0,i.default)({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return a.default.createElement("div",{style:e.picker})};t.default=s},b727:function(e,t,n){var r=n("0366"),a=n("44ad"),o=n("7b0b"),i=n("50c4"),l=n("65f0"),s=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,c=4==e,f=6==e,p=5==e||f;return function(d,h,v,m){for(var y,g,b=o(d),x=a(b),_=r(h,v,3),w=i(x.length),k=0,T=m||l,E=t?T(d,w):n?T(d,0):void 0;w>k;k++)if((p||k in x)&&(y=x[k],g=_(y,k,b),e))if(t)E[k]=g;else if(g)switch(e){case 3:return!0;case 5:return y;case 6:return k;case 2:s.call(E,y)}else if(c)return!1;return f?-1:u||c?c:E}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},b74c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedColorscalePicker=void 0;var r=f(n("eff1")),a=f(n("5174")),o=f(n("d7bc")),i=c(n("ab5b")),l=n("4578"),s=n("e419");function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return m=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},m.apply(this,arguments)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 b(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function x(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&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=E();return function(){var n,r=O(e);if(t){var a=O(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(){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}}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var M=function(e){x(n,e);var t=w(n);function n(){var e;return y(this,n),e=t.call(this),e.onUpdate=e.onUpdate.bind(T(e)),e}return b(n,[{key:"onUpdate",value:function(e,t){Array.isArray(e)&&(this.props.updatePlot(e.map((function(t,n){var r=n/(e.length-1);return 0===n&&(r=0),[r,t]})),t),this.context.onUpdate({type:s.EDITOR_ACTIONS.UPDATE_TRACES,payload:{update:{autocolorscale:!1},traceIndexes:[this.props.fullContainer.index]}}))}},{key:"render",value:function(){var e=this.props.fullValue,t=Array.isArray(e)?e.map((function(e){return e[1]})):null;return i.default.createElement(a.default,m({},this.props,{fieldContainerClassName:"field__colorscale"}),i.default.createElement(r.default,{selected:t,onColorscaleChange:this.onUpdate,initialCategory:this.props.initialCategory,disableCategorySwitch:this.props.disableCategorySwitch}))}}]),n}(i.Component);t.UnconnectedColorscalePicker=M,M.propTypes=h({labelWidth:o.default.number,fullValue:o.default.any,fullContainer:o.default.object,updatePlot:o.default.func,initialCategory:o.default.string},a.default.propTypes),M.contextTypes={container:o.default.object,graphDiv:o.default.object,onUpdate:o.default.func},M.displayName="UnconnectedColorscalePicker";var S=(0,l.connectToContainer)(M);t.default=S},b760:function(e,t,n){var r=n("872a"),a=n("9638");function o(e,t,n){(void 0!==n&&!a(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}e.exports=o},b7b8:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M9,5V9H21V5M9,19H21V15H9M9,14H21V10H9M4,9H8V5H4M4,19H8V15H4M4,14H8V10H4V14Z"}))};e.exports=l},b7ca:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Swatches=void 0;var r=n("ab5b"),a=b(r),o=n("d7bc"),i=b(o),l=n("fc55"),s=b(l),u=n("dd61"),c=b(u),f=n("4245"),p=b(f),d=n("c0c1"),h=g(d),v=n("4ccf"),m=n("11fa"),y=b(m);function g(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 b(e){return e&&e.__esModule?e:{default:e}}var x=t.Swatches=function(e){var t=e.width,n=e.height,r=e.onChange,o=e.onSwatchHover,i=e.colors,l=e.hex,u=e.styles,f=void 0===u?{}:u,d=e.className,h=void 0===d?"":d,m=(0,s.default)((0,p.default)({default:{picker:{width:t,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},f)),g=function(e,t){return r({hex:e,source:"hex"},t)};return a.default.createElement("div",{style:m.picker,className:"swatches-picker "+h},a.default.createElement(v.Raised,null,a.default.createElement("div",{style:m.overflow},a.default.createElement("div",{style:m.body},(0,c.default)(i,(function(e){return a.default.createElement(y.default,{key:e.toString(),group:e,active:l,onClick:g,onSwatchHover:o})})),a.default.createElement("div",{style:m.clear})))))};x.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),height:i.default.oneOfType([i.default.string,i.default.number]),colors:i.default.arrayOf(i.default.arrayOf(i.default.string)),styles:i.default.object},x.defaultProps={width:320,height:240,colors:[[h.red["900"],h.red["700"],h.red["500"],h.red["300"],h.red["100"]],[h.pink["900"],h.pink["700"],h.pink["500"],h.pink["300"],h.pink["100"]],[h.purple["900"],h.purple["700"],h.purple["500"],h.purple["300"],h.purple["100"]],[h.deepPurple["900"],h.deepPurple["700"],h.deepPurple["500"],h.deepPurple["300"],h.deepPurple["100"]],[h.indigo["900"],h.indigo["700"],h.indigo["500"],h.indigo["300"],h.indigo["100"]],[h.blue["900"],h.blue["700"],h.blue["500"],h.blue["300"],h.blue["100"]],[h.lightBlue["900"],h.lightBlue["700"],h.lightBlue["500"],h.lightBlue["300"],h.lightBlue["100"]],[h.cyan["900"],h.cyan["700"],h.cyan["500"],h.cyan["300"],h.cyan["100"]],[h.teal["900"],h.teal["700"],h.teal["500"],h.teal["300"],h.teal["100"]],["#194D33",h.green["700"],h.green["500"],h.green["300"],h.green["100"]],[h.lightGreen["900"],h.lightGreen["700"],h.lightGreen["500"],h.lightGreen["300"],h.lightGreen["100"]],[h.lime["900"],h.lime["700"],h.lime["500"],h.lime["300"],h.lime["100"]],[h.yellow["900"],h.yellow["700"],h.yellow["500"],h.yellow["300"],h.yellow["100"]],[h.amber["900"],h.amber["700"],h.amber["500"],h.amber["300"],h.amber["100"]],[h.orange["900"],h.orange["700"],h.orange["500"],h.orange["300"],h.orange["100"]],[h.deepOrange["900"],h.deepOrange["700"],h.deepOrange["500"],h.deepOrange["300"],h.deepOrange["100"]],[h.brown["900"],h.brown["700"],h.brown["500"],h.brown["300"],h.brown["100"]],[h.blueGrey["900"],h.blueGrey["700"],h.blueGrey["500"],h.blueGrey["300"],h.blueGrey["100"]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}},t.default=(0,v.ColorWrap)(x)},b7d6:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}))};e.exports=l},b80f:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z"}))};e.exports=l},b830:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M4,2C2.89,2 2,2.89 2,4V14H4V4H14V2H4M8,6C6.89,6 6,6.89 6,8V18H8V8H18V6H8M12,10C10.89,10 10,10.89 10,12V20C10,21.11 10.89,22 12,22H20C21.11,22 22,21.11 22,20V12C22,10.89 21.11,10 20,10H12Z"}))};e.exports=l},b835:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BlockSwatches=void 0;var r=n("ab5b"),a=c(r),o=n("fc55"),i=c(o),l=n("dd61"),s=c(l),u=n("4ccf");function c(e){return e&&e.__esModule?e:{default:e}}var f=t.BlockSwatches=function(e){var t=e.colors,n=e.onClick,r=e.onSwatchHover,o=(0,i.default)({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return a.default.createElement("div",{style:o.swatches},(0,s.default)(t,(function(e){return a.default.createElement(u.Swatch,{key:e,color:e,style:o.swatch,onClick:n,onHover:r,focusStyle:{boxShadow:"0 0 4px "+e}})})),a.default.createElement("div",{style:o.clear}))};t.default=f},b8ae:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}Object.defineProperty(t,"__esModule",{value:!0});var a=r(n("ab5b")),o=r(n("8bc8")),i=r(n("2b0e")),l="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},s=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u=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}}(),c=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},f=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},p=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)},d=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},h=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},v=function(){function e(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)if(n.push(i.value),t&&n.length===t)break}catch(s){a=!0,o=s}finally{try{!r&&l["return"]&&l["return"]()}finally{if(a)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),m="vuera-internal-component-name",y=function(e,t){return e("vuera-internal-react-wrapper",{props:{component:function(){return a.createElement("div",null,t)}}})},g=function(e){function t(e){s(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));n.currentVueComponent=e.component;var r=n.createVueInstance,a=n;return n.createVueInstance=function(e,t,n){r(e,a,t,n)},n}return p(t,e),u(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.component,n=d(e,["component"]);this.currentVueComponent!==t&&this.updateVueComponent(this.props.component,t),Object.assign(this.vueInstance.$data,n)}},{key:"componentWillUnmount",value:function(){this.vueInstance.$destroy()}},{key:"createVueInstance",value:function(e,t){var n,r=t.props,a=r.component,o=r.on,l=d(r,["component","on"]);t.vueInstance=new i(f({el:e,data:l},S.vueInstanceOptions,{render:function(e){return e(m,{props:this.$data,on:o},[y(e,this.children)])},components:(n={},c(n,m,a),c(n,"vuera-internal-react-wrapper",x),n)}))}},{key:"updateVueComponent",value:function(e,t){this.currentVueComponent=t,this.vueInstance.$options.components[m]=t,this.vueInstance.$forceUpdate()}},{key:"render",value:function(){return a.createElement("div",{ref:this.createVueInstance})}}]),t}(a.Component),b=function(e){var t,n;return n=t=function(t){function n(e){s(this,n);var t=h(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e));return t.state=f({},e),t}return p(n,t),u(n,[{key:"wrapVueChildren",value:function(e){return{render:function(t){return t("div",e)}}}},{key:"render",value:function(){var t=this.state,n=t.children,r=(t[""],d(t,["children",""])),o=this.wrapVueChildren(n);return a.createElement(e,r,n&&a.createElement(g,{component:o}))}}]),n}(a.Component),t.displayName="ReactInVue"+(e.displayName||e.name||"Component"),n},x={props:["component","passedProps"],render:function(e){return e("div",{ref:"react"})},methods:{mountReactComponent:function(e){var t=this,n=b(e),r=void 0!==this.$slots.default?{children:this.$slots.default}:{};o.render(a.createElement(n,f({},this.$props.passedProps,this.$attrs,this.$listeners,r,{ref:function(e){return t.reactComponentRef=e}})),this.$refs.react)}},mounted:function(){this.mountReactComponent(this.$props.component)},beforeDestroy:function(){o.unmountComponentAtNode(this.$refs.react)},updated:function(){void 0!==this.$slots.default?this.reactComponentRef.setState({children:this.$slots.default}):this.reactComponentRef.setState({children:null})},inheritAttrs:!1,watch:{$attrs:{handler:function(){this.reactComponentRef.setState(f({},this.$attrs))},deep:!0},"$props.component":{handler:function(e){this.mountReactComponent(e)}},$listeners:{handler:function(){this.reactComponentRef.setState(f({},this.$listeners))},deep:!0},"$props.passedProps":{handler:function(){this.reactComponentRef.setState(f({},this.$props.passedProps))},deep:!0}}};function _(e){return!("object"===("undefined"===typeof e?"undefined":l(e))&&!w(e))&&!("function"===typeof e&&e.prototype&&(e.prototype.constructor.super&&e.prototype.constructor.super.isVue||e.prototype instanceof i))}function w(e){return e.$$typeof&&"Symbol(react.forward_ref)"===e.$$typeof.toString()}function k(e){return{components:{ReactWrapper:x},props:["passedProps"],inheritAttrs:!1,render:function(t){return t("react-wrapper",{props:{component:e,passedProps:this.$props.passedProps},attrs:this.$attrs,on:this.$listeners},this.$slots.default)}}}var T={install:function(e,t){var n=e.config.optionMergeStrategies.components;e.config.optionMergeStrategies.components=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];var o=n.apply(void 0,[e].concat(r)),i=o?Object.entries(o).reduce((function(e,t){var n=v(t,2),r=n[0],a=n[1];return f({},e,c({},r,_(a)?k(a):a))}),{}):o;return Object.assign(o,i)},e.prototype.constructor.isVue=!0}};function E(e){return _(e)?e:function(t){return a.createElement(g,f({},t,{component:e}))}}function O(e,t,n){return _(e)?a.createElement(e,t,n):a.createElement(g,Object.assign({component:e},t),n)}function M(){return{vueInstanceOptions:{}}}var S=M();t.ReactWrapper=x,t.VueWrapper=g,t.__vueraReactResolver=O,t.VuePlugin=T,t.VueInReact=E,t.ReactInVue=k,t.config=S},b8ca:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,t.traceTypeToAxisType=i,t.axisIdToAxisName=l,t.getAxisTitle=u,t.getSubplotTitle=f;var r=n("e419"),a=n("4578");function o(e){var t=[];return e&&e._subplots&&Object.keys(e._subplots).filter((function(t){return"cartesian"!==t&&0!==e._subplots[t].length})).forEach((function(n){e._subplots[n].forEach((function(r){["xaxis","yaxis"].includes(n)?(r=r.length>1?r.slice(0,1)+"axis"+r.slice(1):r+"axis",e[r]._subplot=r,e[r]._axisGroup=n,t.push(e[r])):Object.keys(e[r]).filter((function(e){return e.includes("axis")})).forEach((function(a){e[r][a]._subplot=r,e[r][a]._axisGroup=n,e[r][a]._name||(e[r][a]._name=a),t.push(e[r][a])}))}))})),t}function i(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e||(e="scatter");var n=null,a=r.TRACE_TO_AXIS;return t&&(Object.assign(a,r.TRACE_TO_AXIS,{scene:r.TRACE_TO_AXIS.gl3d}),delete a.gl3d),Object.keys(a).forEach((function(t){a[t].includes(e)&&(n=t)})),n||null}function l(e){return e.charAt(0)+"axis"+e.slice(1)}function s(e){var t=e._subplot?e._subplot.split(e._axisGroup):[];return t[1]?Number(t[1]):e._name.split("axis")[1]}function u(e){var t=(0,a.capitalize)(e._name.split("axis")[0]),n=s(e)||1;return e._input&&e._input.title?(0,a.striptags)("".concat(t,": ").concat(e._input.title.text)):(0,a.striptags)("".concat(t," ").concat(n))}function c(e,t){return Number(e.split(t)[1])}function f(e,t,n){var a=(0,r.subplotName)(t,n),o=c(e,r.SUBPLOT_TO_ATTR[t].layout)||"";return"".concat(a," ").concat(o)}},b91d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("9903")),a=c(n("201b")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=(0,l.connectSliderToLayout)(r.default),k=function(e){v(n,e);var t=y(n);function n(){return p(this,n),t.apply(this,arguments)}return h(n,[{key:"render",value:function(){var e=this.context,t=e.layout.sliders,n=void 0===t?[]:t,r=e.localize,o=this.props.children,l=n.length>0&&n.map((function(e,t){return i.default.createElement(w,{key:t,sliderIndex:t,name:r("Slider")+" ".concat(t+1)},o)}));return i.default.createElement(a.default,null,l||null)}}]),n}(i.Component);k.contextTypes={layout:o.default.object,localize:o.default.func},k.propTypes={children:o.default.node};var T=k;t.default=T},b9b6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",stroke:"#dfe8f3",d:"M5.5 6H41v35.5H5.5zM5.5 11.2H41M5.5 16.4H41M5.5 21.1H41M5.5 26.3H41M5.5 31.4H41M5.5 36.6H41M10.7 41.4V6M15.8 41.5V6M20.5 41.5V6M25.7 41.5V6M30.9 41.5V6M36 41.5V6",strokeMiterlimit:"10",strokeWidth:".25"}),o.default.createElement("path",{d:"M0 0h46v46H0z",fill:"none"}),o.default.createElement("path",{d:"M31.5 28.3l-2.3 3.5-4.6 1.2-2.3-2.3h-3.5l-6.2 1.2-3.5-2.3L13 25v-3.5h5.2l4.2 3 4.5-3 9.2 6.9c0-.1-4.6-.1-4.6-.1z",fill:"#25fdfc",stroke:"#fff",strokeMiterlimit:"10"}),o.default.createElement("path",{d:"M36.1 28.3l-9.2-6.9-4.5 3-4.2-3H13l-2.9-1.7v-2.3L9 16.2l-1.2 1.2-1.2-1.2v-4.6H9l2.3-1.2h2.3l3.5 2.3h3.5l4.6-2.3 3.5 3.5-3.5 3.5H31V15h3.5v1.2l1.2 1.2 1.2-1.2 3.5 3.5v3.5h-4v5.1zm-9.8 7.4l-1.2 1.2H24l.6-4-2.3-2.3h-3.5l-6.2 1.2 7.9 4V38l3.5 2.3h2.3l1.2-1.2v-2.3z",fill:"#25fdfc",stroke:"#fff",strokeMiterlimit:"10"}),o.default.createElement("circle",{cx:"36.9",cy:"20.4",r:"1",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"22.4",cy:"20.4",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"10.9",cy:"14.4",r:"1",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"15.9",cy:"24.4",r:"1",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"13.9",cy:"28.4",r:"1",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"25.9",cy:"27.4",r:"3",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"13.9",cy:"17.4",r:"1",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"20.9",cy:"26.4",r:"1",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"23.9",cy:"14.4",r:"1.5",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"30.9",cy:"20.4",r:"1",fill:"#1d9bfb"}))};t.default=u},b9b6f:function(e,t,n){"use strict";var r=n("8bc8"),a=r.unstable_flushControlled;e.exports=a},b9c5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var r=s(n("ab5b")),a=i(n("d7bc")),o=n("4578");function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(){return c=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},c.apply(this,arguments)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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 d(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),e}function h(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&&v(e,t)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function m(e){var t=b();return function(){var n,r=x(e);if(t){var a=x(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(){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}}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function _(e){var t=function(t){h(a,t);var n=m(a);function a(e,t){var r;return f(this,a),r=n.call(this,e,t),r.updateSubplot=r.updateSubplot.bind(g(r)),r.setLocals(e,t),r}return d(a,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.xaxis,r=e.yaxis,a=e.traceIndexes,i=t.container,l=t.fullContainer,s=t.data;this.container={xaxis:i[n],yaxis:i[r]},this.fullContainer={xaxis:l[n],yaxis:l[r]};var u=a.length>0?s[a[0]]:{},c=(0,o.getFullTrace)(e,t);u&&c&&(this.icon=(0,o.renderTraceIcon)((0,o.plotlyTraceToCustomTrace)(u)),this.name=c.name)}},{key:"getChildContext",value:function(){var e=this;return{getValObject:function(t){return e.context.getValObject?e.context.getValObject(t.replace("xaxis",e.props.xaxis).replace("yaxis",e.props.yaxis)):null},updateContainer:this.updateSubplot,deleteContainer:this.deleteSubplot,container:this.container,fullContainer:this.fullContainer}}},{key:"updateSubplot",value:function(e){var t={};for(var n in e){var r=n.replace("xaxis",this.props.xaxis).replace("yaxis",this.props.yaxis);t[r]=e[n]}this.context.updateContainer(t)}},{key:"render",value:function(){return r.default.createElement(e,c({name:this.name,icon:this.icon},this.props))}}]),a}(r.Component);t.displayName="SubplotConnected".concat((0,o.getDisplayName)(e)),t.propTypes={xaxis:a.default.string.isRequired,yaxis:a.default.string.isRequired},t.contextTypes={container:a.default.object,fullContainer:a.default.object,data:a.default.array,fullData:a.default.array,onUpdate:a.default.func,updateContainer:a.default.func,getValObject:a.default.func},t.childContextTypes={updateContainer:a.default.func,deleteContainer:a.default.func,container:a.default.object,fullContainer:a.default.object,getValObject:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},b9e1:function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n("f2e4"),i=n("24be"),l=n("2e94"),s=n("4f35"),u=n("3c55"),c=(n("aae4"),n("84ca")),f=n("4e55"),p=n("6cd7"),d=n("4424"),h=n("ac96"),v=n("7301"),m=n("24f7"),y=n("d8db"),g=v("draft_tree_data_support"),b=m.List,x=m.Map,_=m.OrderedMap,w=function(e,t){var n=e.key,r=e.type,a=e.data,o=e.text,i=e.depth,l={text:o,depth:i||0,type:r||"unstyled",key:n||h(),data:x(a),characterList:k(e,t)};return l},k=function(e,t){var n=e.text,a=e.entityRanges,o=e.inlineStyleRanges,i=a||[],l=o||[];return f(d(n,l),p(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return r({},e,{key:t[e.key]})}))))},T=function(e){return r({},e,{key:e.key||h()})},E=function(e,t,n){var a=t.map((function(e){return r({},e,{parentRef:n})}));return e.concat(a.reverse())},O=function(e,t){return e.map(T).reduce((function(n,a,o){Array.isArray(a.children)||y(!1);var l=a.children.map(T),s=new i(r({},w(a,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:b(l.map((function(e){return e.key})))}));n=n.set(s.getKey(),s);var u=E([],l,s);while(u.length>0){var c=u.pop(),f=c.parentRef,p=f.getChildKeys(),d=p.indexOf(c.key),h=Array.isArray(c.children);if(!h){h||y(!1);break}var v=c.children.map(T),m=new i(r({},w(c,t),{parent:f.getKey(),children:b(v.map((function(e){return e.key}))),prevSibling:0===d?null:p.get(d-1),nextSibling:d===p.size-1?null:p.get(d+1)}));n=n.set(m.getKey(),m),u=E(u,v,m)}return n}),_())},M=function(e,t){return _(e.map((function(e){var n=new o(w(e,t));return[n.getKey(),n]})))},S=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=g&&!n?u.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!g)return M(n?u.fromRawTreeStateToRawState(e).blocks:r,t);var a=O(r,t);return a},C=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],a=r.type,o=r.mutability,i=r.data;n[e]=s.__create(a,o,i||{})})),n},A=function(e){Array.isArray(e.blocks)||y(!1);var t=C(e),n=S(e,t),r=n.isEmpty()?new c:c.createEmpty(n.first().getKey());return new l({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})};e.exports=A},ba3b:function(e,t,n){"use strict";var r=n("dec3");function a(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}e.exports=a},ba7e:function(e,t,n){"use strict";e.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.prototype}},ba9f:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M13,4.07V1L8.45,5.55L13,10V6.09C15.84,6.57 18,9.03 18,12C18,14.97 15.84,17.43 13,17.91V19.93C16.95,19.44 20,16.08 20,12C20,7.92 16.95,4.56 13,4.07M7.1,18.32C8.26,19.22 9.61,19.76 11,19.93V17.9C10.13,17.75 9.29,17.41 8.54,16.87L7.1,18.32M6.09,13H4.07C4.24,14.39 4.79,15.73 5.69,16.89L7.1,15.47C6.58,14.72 6.23,13.88 6.09,13M7.11,8.53L5.7,7.11C4.8,8.27 4.24,9.61 4.07,11H6.09C6.23,10.13 6.58,9.28 7.11,8.53Z"}))};e.exports=l},badf:function(e,t,n){var r=n("642a"),a=n("1838"),o=n("cd9d"),i=n("6747"),l=n("f9ce");function s(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?i(e)?a(e[0],e[1]):r(e):l(e)}e.exports=s},bb12:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z"}))};e.exports=l},bb2f:function(e,t,n){var r=n("d039");e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},bb68:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M14,12V19.88C14.04,20.18 13.94,20.5 13.71,20.71C13.32,21.1 12.69,21.1 12.3,20.71L10.29,18.7C10.06,18.47 9.96,18.16 10,17.87V12H9.97L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L14.03,12H14Z"}))};e.exports=l},bba6:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M22.7,19L13.6,9.9C14.5,7.6 14,4.9 12.1,3C10.1,1 7.1,0.6 4.7,1.7L9,6L6,9L1.6,4.7C0.4,7.1 0.9,10.1 2.9,12.1C4.8,14 7.5,14.5 9.8,13.6L18.9,22.7C19.3,23.1 19.9,23.1 20.3,22.7L22.6,20.4C23.1,20 23.1,19.3 22.7,19Z"}))};e.exports=l},bbc0:function(e,t,n){var r=n("6044"),a="__lodash_hash_undefined__",o=Object.prototype,i=o.hasOwnProperty;function l(e){var t=this.__data__;if(r){var n=t[e];return n===a?void 0:n}return i.call(t,e)?t[e]:void 0}e.exports=l},bbce:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M16,17V14H9V10H16V7L21,12L16,17M14,2C15.1,2 16,2.9 16,4V6H14V4H5V20H14V18H16V20C16,21.1 15.1,22 14,22H5C3.9,22 3,21.1 3,20V4C3,2.9 3.9,2 5,2H14Z"}))};e.exports=l},bbf7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedColorPicker=void 0;var r=c(n("4bc5")),a=c(n("5174")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=function(e){g(n,e);var t=x(n);function n(e,r){var a;return v(this,n),a=t.call(this,e,r),a.state={empty:!a.props.fullValue&&a.props.handleEmpty},a}return y(n,[{key:"render",value:function(){var e=this;return this.state.empty?i.default.createElement(a.default,this.props,i.default.createElement("div",{className:"js-test-info"},"This color is computed from other parts of the figure but you can"," ",i.default.createElement("a",{onClick:function(){e.setState({empty:!1}),e.props.updatePlot(e.props.defaultColor)}},"override it"),".")):i.default.createElement(a.default,this.props,i.default.createElement(r.default,{selectedColor:this.props.fullValue,onColorChange:this.props.updatePlot}))}}]),n}(i.Component);t.UnconnectedColorPicker=E,E.propTypes=d({fullValue:o.default.any,updatePlot:o.default.func,handleEmpty:o.default.bool,defaultColor:o.default.string},a.default.propTypes),E.displayName="UnconnectedColorPicker";var O=(0,l.connectToContainer)(E);t.default=O},bc62:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M16 3.875c-5.813 0-11.75 1.688-11.75 4.813 0 .75.313 1.438.875 1.938l8.188 15.813c.5 1 1.563 1.625 2.688 1.625s2.188-.625 2.688-1.625l8.188-15.813c.563-.5.875-1.188.875-1.938 0-3.125-5.938-4.813-11.75-4.813zm0 2.25c5.813 0 9 1.563 9.438 2.438L25 9.376c-1.063.813-4.125 1.938-9 1.938s-7.938-1.125-9-1.938l-.438-.813C7 7.688 10.187 6.125 16 6.125zm.688 19.313c-.125.25-.375.438-.688.438s-.563-.188-.688-.438L8.624 12.5c2.375.688 4.875 1.063 7.375 1.063s5-.375 7.375-1.063z"}))};t.default=u},bcca:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M21,11L14,4V8C7,9 4,14 3,19C5.5,15.5 9,13.9 14,13.9V18L21,11Z"}))};e.exports=l},bce9:function(e,t,n){"use strict";(function(e){var r=n("4cec"),a=n("ab5b"),o=n.n(a),i=n("1b2b"),l=n.n(i),s=n("2c23"),u=n("e944"),c=n("f6e8"),f=n("da6a"),p=n.n(f);function d(){return(d=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}).apply(this,arguments)}var h=function(e,t){for(var n=[e[0]],r=0,a=t.length;r<a;r+=1)n.push(t[r],e[r+1]);return n},v=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r["typeOf"])(e)},m=Object.freeze([]),y=Object.freeze({});function g(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function x(e){return e&&"string"==typeof e.styledComponentId}var _="undefined"!=typeof e&&(Object({NODE_ENV:"production",BASE_URL:""}).REACT_APP_SC_ATTR||Object({NODE_ENV:"production",BASE_URL:""}).SC_ATTR)||"data-styled",w="undefined"!=typeof window&&"HTMLElement"in window,k="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||"undefined"!=typeof e&&(Object({NODE_ENV:"production",BASE_URL:""}).REACT_APP_SC_DISABLE_SPEEDY||Object({NODE_ENV:"production",BASE_URL:""}).SC_DISABLE_SPEEDY)||!1,T=function(){return n.nc};function E(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var O=function(e){var t=document.head,n=e||t,r=document.createElement("style"),a=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(_))return r}}(n),o=void 0!==a?a.nextSibling:null;r.setAttribute(_,"active"),r.setAttribute("data-styled-version","5.2.0");var i=T();return i&&r.setAttribute("nonce",i),n.insertBefore(r,o),r},M=function(){function e(e){var t=this.element=O(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var a=t[n];if(a.ownerNode===e)return a}E(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),S=function(){function e(e){var t=this.element=O(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),C=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),A=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,a=r;e>=a;)(a<<=1)<0&&E(16,""+e);this.groupSizes=new Uint32Array(a),this.groupSizes.set(n),this.length=a;for(var o=r;o<a;o++)this.groupSizes[o]=0}for(var i=this.indexOfGroup(e+1),l=0,s=t.length;l<s;l++)this.tag.insertRule(i,t[l])&&(this.groupSizes[e]++,i++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var a=n;a<r;a++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),a=r+n,o=r;o<a;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),P=new Map,L=new Map,D=1,j=function(e){if(P.has(e))return P.get(e);var t=D++;return P.set(e,t),L.set(t,e),t},I=function(e){return L.get(e)},R=function(e,t){t>=D&&(D=t+1),P.set(e,t),L.set(t,e)},z="style["+_+'][data-styled-version="5.2.0"]',N=new RegExp("^"+_+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F=function(e,t,n){for(var r,a=n.split(","),o=0,i=a.length;o<i;o++)(r=a[o])&&e.registerName(t,r)},B=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),r=[],a=0,o=n.length;a<o;a++){var i=n[a].trim();if(i){var l=i.match(N);if(l){var s=0|parseInt(l[1],10),u=l[2];0!==s&&(R(u,s),F(e,u,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(i)}}},V=w,H={isServer:!w,useCSSOMInjection:!k},U=function(){function e(e,t,n){void 0===e&&(e=H),void 0===t&&(t={}),this.options=d({},H,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&w&&V&&(V=!1,function(e){for(var t=document.querySelectorAll(z),n=0,r=t.length;n<r;n++){var a=t[n];a&&"active"!==a.getAttribute(_)&&(B(e,a),a.parentNode&&a.parentNode.removeChild(a))}}(this))}e.registerId=function(e){return j(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(d({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,a=t.target,e=n?new C(a):r?new M(a):new S(a),new A(e)));var e,t,n,r,a},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(j(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(j(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(j(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",a=0;a<n;a++){var o=I(a);if(void 0!==o){var i=e.names.get(o),l=t.getGroup(a);if(void 0!==i&&0!==l.length){var s=_+".g"+a+'[id="'+o+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+l+s+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),W=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},q=function(e){return W(5381,e)},$=/^\s*\/\/.*$/gm,G=[":","[",".","#"];function Y(e){var t,n,r,a,o=void 0===e?y:e,i=o.options,l=void 0===i?y:i,u=o.plugins,c=void 0===u?m:u,f=new s["a"](l),p=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,a,o,i,l,s,u,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(a[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),h=function(e,r,o){return 0===r&&G.includes(o[n.length])||o.match(a)?e:"."+t};function v(e,o,i,l){void 0===l&&(l="&");var s=e.replace($,""),u=o&&i?i+" "+o+" { "+s+" }":s;return t=l,n=o,r=new RegExp("\\"+n+"\\b","g"),a=new RegExp("(\\"+n+"\\b){2,}"),f(i||!o?"":o,u)}return f.use([].concat(c,[function(e,t,a){2===e&&a.length&&a[0].lastIndexOf(n)>0&&(a[0]=a[0].replace(r,h))},d,function(e){if(-2===e){var t=p;return p=[],t}}])),v.hash=c.length?c.reduce((function(e,t){return t.name||E(15),W(e,t.name)}),5381).toString():"",v}var K=o.a.createContext(),X=(K.Consumer,o.a.createContext()),Z=(X.Consumer,new U),J=Y();function Q(){return Object(a["useContext"])(K)||Z}function ee(){return Object(a["useContext"])(X)||J}function te(e){var t=Object(a["useState"])(e.stylisPlugins),n=t[0],r=t[1],i=Q(),s=Object(a["useMemo"])((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=Object(a["useMemo"])((function(){return Y({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(a["useEffect"])((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.a.createElement(K.Provider,{value:s},o.a.createElement(X.Provider,{value:u},e.children))}var ne=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=J);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return E(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=J),this.name+e.hash},e}(),re=/([A-Z])/,ae=new RegExp(re,"g"),oe=/^ms-/,ie=function(e){return"-"+e.toLowerCase()};function le(e){return re.test(e)?e.replace(ae,ie).replace(oe,"-ms-"):e}var se=function(e){return null==e||!1===e||""===e};function ue(e,t,n,r){if(Array.isArray(e)){for(var a,o=[],i=0,l=e.length;i<l;i+=1)""!==(a=ue(e[i],t,n,r))&&(Array.isArray(a)?o.push.apply(o,a):o.push(a));return o}if(se(e))return"";if(x(e))return"."+e.styledComponentId;if(g(e)){if("function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t)return e;var s=e(t);return ue(s,t,n,r)}var c;return e instanceof ne?n?(e.inject(n,r),e.getName(r)):e:v(e)?function e(t,n){var r,a,o=[];for(var i in t)t.hasOwnProperty(i)&&!se(t[i])&&(v(t[i])?o.push.apply(o,e(t[i],i)):g(t[i])?o.push(le(i)+":",t[i],";"):o.push(le(i)+": "+(r=i,(null==(a=t[i])||"boolean"==typeof a||""===a?"":"number"!=typeof a||0===a||r in u["a"]?String(a).trim():a+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString()}function ce(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return g(e)||v(e)?ue(h(m,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ue(h(e,n))}var fe=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},pe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function de(e,t,n){var r=e[n];fe(t)&&fe(r)?he(r,t):e[n]=t}function he(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var a=0,o=n;a<o.length;a++){var i=o[a];if(fe(i))for(var l in i)pe(l)&&de(e,i[l],l)}return e}var ve=/(a)(d)/gi,me=function(e){return String.fromCharCode(e+(e>25?39:97))};function ye(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=me(t%52)+n;return(me(t%52)+n).replace(ve,"$1-$2")}function ge(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(g(n)&&!x(n))return!1}return!0}var be=q("5.2.0"),xe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&ge(e),this.componentId=t,this.baseHash=W(be,t),this.baseStyle=n,U.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))a.push(this.staticRulesId);else{var o=ue(this.rules,e,t,n).join(""),i=ye(W(this.baseHash,o.length)>>>0);if(!t.hasNameForId(r,i)){var l=n(o,"."+i,void 0,r);t.insertRules(r,i,l)}a.push(i),this.staticRulesId=i}else{for(var s=this.rules.length,u=W(this.baseHash,n.hash),c="",f=0;f<s;f++){var p=this.rules[f];if("string"==typeof p)c+=p;else if(p){var d=ue(p,e,t,n),h=Array.isArray(d)?d.join(""):d;u=W(u,h+f),c+=h}}if(c){var v=ye(u>>>0);if(!t.hasNameForId(r,v)){var m=n(c,"."+v,void 0,r);t.insertRules(r,v,m)}a.push(v)}}return a.join(" ")},e}(),_e=(new Set,function(e,t,n){return void 0===n&&(n=y),e.theme!==n.theme&&e.theme||t||n.theme}),we=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Te(e){return e.replace(we,"-").replace(ke,"")}function Ee(e){return"string"==typeof e&&!0}var Oe=function(e){return ye(q(e)>>>0)},Me=o.a.createContext();Me.Consumer;var Se={};function Ce(e,t,n){var r=x(e),i=!Ee(e),l=t.displayName,s=void 0===l?function(e){return Ee(e)?"styled."+e:"Styled("+b(e)+")"}(e):l,u=t.componentId,f=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Te(e);Se[n]=(Se[n]||0)+1;var r=n+"-"+Oe("5.2.0"+n+Se[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):u,h=t.attrs,v=void 0===h?m:h,_=t.displayName&&t.componentId?Te(t.displayName)+"-"+t.componentId:t.componentId||f,w=r&&e.attrs?Array.prototype.concat(e.attrs,v).filter(Boolean):v,k=t.shouldForwardProp;r&&e.shouldForwardProp&&(k=k?function(n,r){return e.shouldForwardProp(n,r)&&t.shouldForwardProp(n,r)}:e.shouldForwardProp);var T,E=new xe(n,_,r?e.componentStyle:void 0),O=function(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,l=e.foldedComponentIds,s=e.shouldForwardProp,u=e.styledComponentId,f=e.target,p=function(e,t,n){void 0===e&&(e=y);var r=d({},t,{theme:e}),a={};return n.forEach((function(e){var t,n,o,i=e;for(t in g(i)&&(i=i(r)),i)r[t]=a[t]="className"===t?(n=a[t],o=i[t],n&&o?n+" "+o:n||o):i[t]})),[r,a]}(_e(t,Object(a["useContext"])(Me),i)||y,t,r),h=p[0],v=p[1],m=function(e,t,n,r){var a=Q(),o=ee(),i=e.isStatic&&!t,l=i?e.generateAndInjectStyles(y,a,o):e.generateAndInjectStyles(n,a,o);return l}(o,r.length>0,h),b=n,x=v.$as||t.$as||v.as||t.as||f,_=Ee(x),w=v!==t?d({},t,{},v):t,k=s||_&&c["a"],T={};for(var E in w)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?T.as=w[E]:k&&!k(E,c["a"])||(T[E]=w[E]));return t.style&&v.style!==t.style&&(T.style=d({},t.style,{},v.style)),T.className=Array.prototype.concat(l,u,m!==u?m:null,t.className,v.className).filter(Boolean).join(" "),T.ref=b,Object(a["createElement"])(x,T)}(T,e,t)};return O.displayName=s,(T=o.a.forwardRef(O)).attrs=w,T.componentStyle=E,T.displayName=s,T.shouldForwardProp=k,T.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):m,T.styledComponentId=_,T.target=r?e.target:e,T.withComponent=function(e){var r=t.componentId,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["componentId"]),o=r&&r+"-"+(Ee(e)?e:Te(b(e)));return Ce(e,d({},a,{attrs:w,componentId:o}),n)},Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?he({},e.defaultProps,t):t}}),T.toString=function(){return"."+T.styledComponentId},i&&p()(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,self:!0,styledComponentId:!0,target:!0,withComponent:!0}),T}var Ae=function(e){return function e(t,n,a){if(void 0===a&&(a=y),!Object(r["isValidElementType"])(n))return E(1,String(n));var o=function(){return t(n,a,ce.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,d({},a,{},r))},o.attrs=function(r){return e(t,n,d({},a,{attrs:Array.prototype.concat(a.attrs,r).filter(Boolean)}))},o}(Ce,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Ae[e]=Ae(e)}));(function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=ge(e),U.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var a=r(ue(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,a)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&U.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}})();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=T();return"<style "+[n&&'nonce="'+n+'"',_+'="true"','data-styled-version="5.2.0"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?E(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return E(2);var n=((t={})[_]="",t["data-styled-version"]="5.2.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=T();return r&&(n.nonce=r),[o.a.createElement("style",d({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new U({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?E(2):o.a.createElement(te,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return E(3)}})();t["a"]=Ae}).call(this,n("4362"))},bd1c:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M23,11H21V9H19V11H17V13H19V15H21V13H23M8,11V13.4H12C11.8,14.4 10.8,16.4 8,16.4C5.6,16.4 3.7,14.4 3.7,12C3.7,9.6 5.6,7.6 8,7.6C9.4,7.6 10.3,8.2 10.8,8.7L12.7,6.9C11.5,5.7 9.9,5 8,5C4.1,5 1,8.1 1,12C1,15.9 4.1,19 8,19C12,19 14.7,16.2 14.7,12.2C14.7,11.7 14.7,11.4 14.6,11H8Z"}))};e.exports=l},bd2e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("ad54")),a=c(n("9903")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=function(e){v(n,e);var t=y(n);function n(){return p(this,n),t.apply(this,arguments)}return h(n,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.options;return n.length&&t?i.default.createElement(a.default,this.props,1===n.length?null:i.default.createElement(r.default,{axesOptions:n}),t):null}}]),n}(i.Component);w.propTypes={children:o.default.any,options:o.default.array},w.plotly_editor_traits={foldable:!0};var k=(0,l.connectAxesToLayout)(w);t.default=k},bd8c:function(e,t,n){"use strict";var r=n("9452");function a(e,t,n,a){var o=t,i=e.getCharacterList();while(o<n)i=i.set(o,r.applyEntity(i.get(o),a)),o++;return e.set("characterList",i)}e.exports=a},bdc3:function(e,t,n){"use strict";var r=n("485e"),a=n("dec3"),o=n("9168"),i=n("f1df");function l(e){var t=i(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return o(e,1);var a=t.getStartKey(),i=e.getCurrentContent(),l=i.getBlockForKey(a).getText().slice(0,n),s=r.getBackward(l);return o(e,s.length||1)}),"backward");return t===e.getCurrentContent()?e:a.push(e,t,"remove-range")}e.exports=l},be24:function(e,t,n){"use strict";
/** @license React v16.13.1
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n("320c"),a="function"===typeof Symbol&&Symbol.for,o=a?Symbol.for("react.element"):60103,i=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,s=a?Symbol.for("react.strict_mode"):60108,u=a?Symbol.for("react.profiler"):60114,c=a?Symbol.for("react.provider"):60109,f=a?Symbol.for("react.context"):60110,p=a?Symbol.for("react.forward_ref"):60112,d=a?Symbol.for("react.suspense"):60113,h=a?Symbol.for("react.memo"):60115,v=a?Symbol.for("react.lazy"):60116,m="function"===typeof Symbol&&Symbol.iterator;function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function x(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}function _(){}function w(e,t,n){this.props=e,this.context=t,this.refs=b,this.updater=n||g}x.prototype.isReactComponent={},x.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(y(85));this.updater.enqueueSetState(this,e,t,"setState")},x.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},_.prototype=x.prototype;var k=w.prototype=new _;k.constructor=w,r(k,x.prototype),k.isPureReactComponent=!0;var T={current:null},E=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function M(e,t,n){var r,a={},i=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&!O.hasOwnProperty(r)&&(a[r]=t[r]);var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)void 0===a[r]&&(a[r]=s[r]);return{$$typeof:o,type:e,key:i,ref:l,props:a,_owner:T.current}}function S(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===o}function A(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}var P=/\/+/g,L=[];function D(e,t,n,r){if(L.length){var a=L.pop();return a.result=e,a.keyPrefix=t,a.func=n,a.context=r,a.count=0,a}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function j(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>L.length&&L.push(e)}function I(e,t,n,r){var a=typeof e;"undefined"!==a&&"boolean"!==a||(e=null);var l=!1;if(null===e)l=!0;else switch(a){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case o:case i:l=!0}}if(l)return n(r,e,""===t?"."+z(e,0):t),1;if(l=0,t=""===t?".":t+":",Array.isArray(e))for(var s=0;s<e.length;s++){a=e[s];var u=t+z(a,s);l+=I(a,u,n,r)}else if(null===e||"object"!==typeof e?u=null:(u=m&&e[m]||e["@@iterator"],u="function"===typeof u?u:null),"function"===typeof u)for(e=u.call(e),s=0;!(a=e.next()).done;)a=a.value,u=t+z(a,s++),l+=I(a,u,n,r);else if("object"===a)throw n=""+e,Error(y(31,"[object Object]"===n?"object with keys {"+Object.keys(e).join(", ")+"}":n,""));return l}function R(e,t,n){return null==e?0:I(e,"",t,n)}function z(e,t){return"object"===typeof e&&null!==e&&null!=e.key?A(e.key):t.toString(36)}function N(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,a=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?B(e,r,n,(function(e){return e})):null!=e&&(C(e)&&(e=S(e,a+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(P,"$&/")+"/")+n)),r.push(e))}function B(e,t,n,r,a){var o="";null!=n&&(o=(""+n).replace(P,"$&/")+"/"),t=D(t,o,r,a),R(e,F,t),j(t)}var V={current:null};function H(){var e=V.current;if(null===e)throw Error(y(321));return e}var U={ReactCurrentDispatcher:V,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:T,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return B(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=D(null,null,t,n),R(e,N,t),j(t)},count:function(e){return R(e,(function(){return null}),null)},toArray:function(e){var t=[];return B(e,t,null,(function(e){return e})),t},only:function(e){if(!C(e))throw Error(y(143));return e}},t.Component=x,t.Fragment=l,t.Profiler=u,t.PureComponent=w,t.StrictMode=s,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=U,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(y(267,e));var a=r({},e.props),i=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=T.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)E.call(t,c)&&!O.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];a.children=u}return{$$typeof:o,type:e.type,key:i,ref:l,props:a,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=M,t.createFactory=function(e){var t=M.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:p,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:h,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return H().useCallback(e,t)},t.useContext=function(e,t){return H().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return H().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return H().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return H().useLayoutEffect(e,t)},t.useMemo=function(e,t){return H().useMemo(e,t)},t.useReducer=function(e,t,n){return H().useReducer(e,t,n)},t.useRef=function(e){return H().useRef(e)},t.useState=function(e){return H().useState(e)},t.version="16.13.1"},be45:function(e,t,n){"use strict";e.exports=function(){}},be62:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=v(n("9903")),a=v(n("201b")),o=v(n("e78b")),i=v(n("d7bc")),l=h(n("ab5b")),s=n("e419"),u=n("4578"),c=n("1935"),f=n("3366"),p=n("a36d");function d(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!==typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function v(e){return e&&e.__esModule?e:{default:e}}function m(e){return m="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},m(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 b(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function x(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&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=E();return function(){var n,r=O(e);if(t){var a=O(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==m(t)&&"function"!==typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(){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}}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var M=(0,u.connectTraceToPlot)(r.default),S=function(e){x(n,e);var t=w(n);function n(e,r){var a;return y(this,n),a=t.call(this,e,r),a.setLocals(e,r),a}return b(n,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=this,r=e.canGroup?t.fullData:t.data,a=this.props.traceFilterCondition||function(){return!0};this.filteredTracesDataIndexes=[],this.filteredTraces=[],r&&r.length&&t.fullData.length&&(this.filteredTraces=r.filter((function(r,o){var i=e.canGroup?r:t.fullData.filter((function(e){return e.index===o}))[0];if(i){var l=t.data[i.index];if(a(l,i))return n.filteredTracesDataIndexes.push(i.index),!0}return!1})))}},{key:"renderGroupedTraceFolds",value:function(){var e=this;if(!this.filteredTraces.length||this.filteredTraces.length<=1)return null;var t=this.context.localize,n={},r={};return this.filteredTraces.forEach((function(e){var t=(0,u.plotlyTraceToCustomTrace)(e);n[t]||(n[t]=[]),r[t]||(r[t]=[]),n[t].push(e.index),r[t].push(e._expandedIndex)})),Object.keys(r).map((function(a,o){return l.default.createElement(M,{key:o,traceIndexes:n[a],name:(0,f.traceTypes)(t).find((function(e){return e.value===a})).label,fullDataArrayPosition:r[a]},e.props.children)}))}},{key:"renderUngroupedTraceFolds",value:function(){var e=this;return this.filteredTraces.length?this.filteredTraces.map((function(t,n){return l.default.createElement(M,{key:n,traceIndexes:[t.index],canDelete:e.props.canAdd,fullDataArrayPosition:[t._expandedIndex]},e.props.children)})):null}},{key:"renderTraceFolds",value:function(){var e=this;return this.filteredTraces.length?this.filteredTraces.map((function(t,n){return l.default.createElement(M,{key:n,traceIndexes:[e.filteredTracesDataIndexes[n]],canDelete:e.props.canAdd},e.props.children)})):null}},{key:"renderTracePanelHelp",value:function(){var e=this.context.localize;return l.default.createElement(p.PanelMessage,{heading:e("Trace your data.")},l.default.createElement("p",null,e("Traces of various types like bar and line are the building blocks of your figure.")),l.default.createElement("p",null,e("You can add as many as you like, mixing and matching types and arranging them into subplots.")),l.default.createElement("p",null,e("Click on the + button above to add a trace.")))}},{key:"render",value:function(){var e=this.props,t=e.canAdd,n=e.canGroup,r=e.canReorder,i=this.context.localize;if(t){var u={label:i("Trace"),handler:function(e){var t=e.onUpdate;t&&t({type:s.EDITOR_ACTIONS.ADD_TRACE})}},f=this.renderTraceFolds();return l.default.createElement(o.default,{addAction:u,canReorder:r},f||this.renderTracePanelHelp())}if(n){if(1===this.filteredTraces.length)return l.default.createElement(a.default,null,this.renderUngroupedTraceFolds());if(this.filteredTraces.length>1)return l.default.createElement(a.default,{noPadding:!0},l.default.createElement(c.Tabs,null,l.default.createElement(c.TabList,null,l.default.createElement(c.Tab,null,i("Individually")),l.default.createElement(c.Tab,null,i("By Type"))),l.default.createElement(c.TabPanel,null,l.default.createElement(o.default,null,this.renderUngroupedTraceFolds())),l.default.createElement(c.TabPanel,null,l.default.createElement(o.default,null,this.renderGroupedTraceFolds()))))}return l.default.createElement(a.default,null,this.renderTraceFolds())}}]),n}(l.Component);S.contextTypes={fullData:i.default.array,data:i.default.array,localize:i.default.func},S.propTypes={canAdd:i.default.bool,canGroup:i.default.bool,canReorder:i.default.bool,children:i.default.node,traceFilterCondition:i.default.func};var C=S;t.default=C},be77:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z"}))};e.exports=l},be7d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("eff1")),a=c(n("5174")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(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 p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e){return h="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},h(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=function(e){g(n,e);var t=x(n);function n(e){var r;return v(this,n),r=t.call(this,e),r.onUpdate=r.onUpdate.bind(w(r)),r}return y(n,[{key:"onUpdate",value:function(e,t){if(Array.isArray(e)){var n=this.context.graphDiv.calcdata[0].length+1,r=(0,l.adjustColorscale)(e,n,t,{repeat:!0});this.props.updatePlot(r)}}},{key:"render",value:function(){var e=this.props.fullValue,t=Array.isArray(e)?e:null;return i.default.createElement(a.default,this.props,i.default.createElement(r.default,{selected:t,onColorscaleChange:this.onUpdate,initialCategory:"categorical"}))}}]),n}(i.Component);E.propTypes=p({fullValue:o.default.any,updatePlot:o.default.func},a.default.propTypes),E.contextTypes={container:o.default.object,graphDiv:o.default.object},E.displayName="UnconnectedPieColorscalePicker";var O=(0,l.connectToContainer)(E,{modifyPlotProps:function(e,t,n){t&&t.container&&t.graphDiv&&(!n.fullValue||Array.isArray(n.fullValue)&&!n.fullValue.length)&&t.graphDiv.calcdata&&(n.fullValue=t.graphDiv.calcdata[0].map((function(e){return e.color}))),t.traceIndexes.length>1&&(n.isVisible=!1)}});t.default=O},bfc4:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z"}))};e.exports=l},bfcd:function(e,t,n){"use strict";var r=n("7f24"),a=n("61e5"),o=n("9452"),i=n("f389"),l=n("f2e4"),s=n("2e94"),u=n("ac05"),c=n("d134"),f=n("eadc"),p=n("0ed8"),d=n("4f35"),h=n("7f23"),v=n("aa79"),m=n("dec3"),y=n("b3ca"),g=n("ecfb"),b=n("371e"),x=n("84ca"),_=n("ff2f"),w=n("b9e1"),k=n("ac96"),T=n("0320"),E=n("cf13"),O=n("d6aa"),M={Editor:f,EditorBlock:p,EditorState:m,CompositeDecorator:i,Entity:d,EntityInstance:v,BlockMapBuilder:a,CharacterMetadata:o,ContentBlock:l,ContentState:s,RawDraftContentState:g,SelectionState:x,AtomicBlockUtils:r,KeyBindingUtil:y,Modifier:h,RichUtils:b,DefaultDraftBlockRenderMap:u,DefaultDraftInlineStyle:c,convertFromHTML:O,convertFromRaw:w,convertToRaw:_,genKey:k,getDefaultKeyBinding:T,getVisibleSelectionRect:E};e.exports=M},c04e:function(e,t,n){var r=n("861d");e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},c05f:function(e,t,n){var r=n("7b97"),a=n("1310");function o(e,t,n,i,l){return e===t||(null==e||null==t||!a(e)&&!a(t)?e!==e&&t!==t:r(e,t,n,i,o,l))}e.exports=o},c08e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("defs",null,o.default.createElement("linearGradient",{id:"a",x1:"23.445",y1:"12.605",x2:"23.445",y2:"28.002",gradientUnits:"userSpaceOnUse"},o.default.createElement("stop",{offset:"0",stopColor:"#1d9cfc"}),o.default.createElement("stop",{offset:"1",stopColor:"#25fdfc"}))),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"#25fdfc",stroke:"#1d9bfb",d:"M23.511 23.571l.005-15.302L37 14.295v15.75l-13.489-6.474z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{fill:"#25fdfc",stroke:"#1d9bfb",d:"M23.511 23.571L9.516 30.045l13.929 6.319L37 30.045l-13.489-6.474z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{fill:"#25fdfc",stroke:"#1d9bfb",d:"M9.516 30.045v-15.75l13.999-6.026-.004 15.302-13.995 6.474z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{d:"M16.565 29.746c1.795-.942 3.07-4.294 3.07-9.292a3.81 3.81 0 1 1 7.62 0c0 4.998 1.275 8.35 3.07 9.292",stroke:"#1d9bfb",fill:"url(#a)",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}))};t.default=u},c098:function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function a(e,t){var a=typeof e;return t=null==t?n:t,!!t&&("number"==a||"symbol"!=a&&r.test(e))&&e>-1&&e%1==0&&e<t}e.exports=a},c0a6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M0 25.25v6.125h32v-10.25h-1.813L20.124 25l-7.313-6.688zm0-8.312v4.5l12.813-6.813 7.25 6.813 9.938-3.813h2v-16l-9.813 10.688-8.313-8.875z"}))};t.default=u},c0c1:function(e,t,n){"use strict";n.r(t),n.d(t,"red",(function(){return r})),n.d(t,"pink",(function(){return a})),n.d(t,"purple",(function(){return o})),n.d(t,"deepPurple",(function(){return i})),n.d(t,"indigo",(function(){return l})),n.d(t,"blue",(function(){return s})),n.d(t,"lightBlue",(function(){return u})),n.d(t,"cyan",(function(){return c})),n.d(t,"teal",(function(){return f})),n.d(t,"green",(function(){return p})),n.d(t,"lightGreen",(function(){return d})),n.d(t,"lime",(function(){return h})),n.d(t,"yellow",(function(){return v})),n.d(t,"amber",(function(){return m})),n.d(t,"orange",(function(){return y})),n.d(t,"deepOrange",(function(){return g})),n.d(t,"brown",(function(){return b})),n.d(t,"grey",(function(){return x})),n.d(t,"blueGrey",(function(){return _})),n.d(t,"darkText",(function(){return w})),n.d(t,"lightText",(function(){return k})),n.d(t,"darkIcons",(function(){return T})),n.d(t,"lightIcons",(function(){return E})),n.d(t,"white",(function(){return O})),n.d(t,"black",(function(){return M}));var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",a100:"#ff8a80",a200:"#ff5252",a400:"#ff1744",a700:"#d50000"},a={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",a100:"#ff80ab",a200:"#ff4081",a400:"#f50057",a700:"#c51162"},o={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",a100:"#ea80fc",a200:"#e040fb",a400:"#d500f9",a700:"#aa00ff"},i={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",a100:"#b388ff",a200:"#7c4dff",a400:"#651fff",a700:"#6200ea"},l={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",a100:"#8c9eff",a200:"#536dfe",a400:"#3d5afe",a700:"#304ffe"},s={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",a100:"#82b1ff",a200:"#448aff",a400:"#2979ff",a700:"#2962ff"},u={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",a100:"#80d8ff",a200:"#40c4ff",a400:"#00b0ff",a700:"#0091ea"},c={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",a100:"#84ffff",a200:"#18ffff",a400:"#00e5ff",a700:"#00b8d4"},f={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",a100:"#a7ffeb",a200:"#64ffda",a400:"#1de9b6",a700:"#00bfa5"},p={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",a100:"#b9f6ca",a200:"#69f0ae",a400:"#00e676",a700:"#00c853"},d={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",a100:"#ccff90",a200:"#b2ff59",a400:"#76ff03",a700:"#64dd17"},h={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",a100:"#f4ff81",a200:"#eeff41",a400:"#c6ff00",a700:"#aeea00"},v={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",a100:"#ffff8d",a200:"#ffff00",a400:"#ffea00",a700:"#ffd600"},m={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",a100:"#ffe57f",a200:"#ffd740",a400:"#ffc400",a700:"#ffab00"},y={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",a100:"#ffd180",a200:"#ffab40",a400:"#ff9100",a700:"#ff6d00"},g={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",a100:"#ff9e80",a200:"#ff6e40",a400:"#ff3d00",a700:"#dd2c00"},b={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723"},x={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121"},_={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238"},w={primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",dividers:"rgba(0, 0, 0, 0.12)"},k={primary:"rgba(255, 255, 255, 1)",secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",dividers:"rgba(255, 255, 255, 0.12)"},T={active:"rgba(0, 0, 0, 0.54)",inactive:"rgba(0, 0, 0, 0.38)"},E={active:"rgba(255, 255, 255, 1)",inactive:"rgba(255, 255, 255, 0.5)"},O="#ffffff",M="#000000";t["default"]={red:r,pink:a,purple:o,deepPurple:i,indigo:l,blue:s,lightBlue:u,cyan:c,teal:f,green:p,lightGreen:d,lime:h,yellow:v,amber:m,orange:y,deepOrange:g,brown:b,grey:x,blueGrey:_,darkText:w,lightText:k,darkIcons:T,lightIcons:E,white:O,black:M}},c1c9:function(e,t,n){var r=n("a454"),a=n("f3c1"),o=a(r);e.exports=o},c1e1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n("9903")),a=n("ca44"),o=n("a36d"),i=f(n("d7bc")),l=c(n("ab5b")),s=n("4578");function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 m(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function y(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&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function b(e){var t=w();return function(){var n,r=k(e);if(t){var a=k(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){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}}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var T=(0,s.connectAnnotationToLayout)(r.default),E=function(e){y(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this.context,t=e.layout,n=t.annotations,r=void 0===n?[]:n,i=t.meta,u=void 0===i?[]:i,c=e.localize,f=this.props,p=f.canAdd,h=f.children,v=f.canReorder,m=r.length&&r.map((function(e,t){return l.default.createElement(T,{key:t,annotationIndex:t,name:(0,s.getParsedTemplateString)(e.text,{meta:u}),canDelete:p},h)})),y={label:c("Annotation"),handler:function(e){var t,n=e.layout,r=e.updateContainer;t=Array.isArray(n.annotations)?n.annotations.length:0;var a="annotations[".concat(t,"]"),o={text:c("new text")};r&&r(d({},a,o))}};return l.default.createElement(a.LayoutPanel,{addAction:p?y:null,canReorder:v},m||l.default.createElement(o.PanelMessage,{heading:c("Call out your data.")},l.default.createElement("p",null,c("Annotations are text and arrows you can use to point out specific parts of your figure.")),l.default.createElement("p",null,c("Click on the + button above to add an annotation."))))}}]),n}(l.Component);E.contextTypes={layout:i.default.object,localize:i.default.func},E.propTypes={children:i.default.node,canAdd:i.default.bool,canReorder:i.default.bool};var O=E;t.default=O},c24c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.HuePicker=void 0;var r=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},a=n("ab5b"),o=v(a),i=n("d7bc"),l=v(i),s=n("fc55"),u=v(s),c=n("4245"),f=v(c),p=n("4ccf"),d=n("b6b0"),h=v(d);function v(e){return e&&e.__esModule?e:{default:e}}var m=t.HuePicker=function(e){var t=e.width,n=e.height,a=e.onChange,i=e.hsl,l=e.direction,s=e.pointer,c=e.styles,d=void 0===c?{}:c,h=e.className,v=void 0===h?"":h,m=(0,u.default)((0,f.default)({default:{picker:{position:"relative",width:t,height:n},hue:{radius:"2px"}}},d)),y=function(e){return a({a:1,h:e.h,l:.5,s:1})};return o.default.createElement("div",{style:m.picker,className:"hue-picker "+v},o.default.createElement(p.Hue,r({},m.hue,{hsl:i,pointer:s,onChange:y,direction:l})))};m.propTypes={styles:l.default.object},m.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:h.default,styles:{}},t.default=(0,p.ColorWrap)(m)},c2b6:function(e,t,n){var r=n("f8af"),a=n("5d89"),o=n("6f6c"),i=n("a2db"),l=n("c8fe"),s="[object Boolean]",u="[object Date]",c="[object Map]",f="[object Number]",p="[object RegExp]",d="[object Set]",h="[object String]",v="[object Symbol]",m="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",_="[object Int16Array]",w="[object Int32Array]",k="[object Uint8Array]",T="[object Uint8ClampedArray]",E="[object Uint16Array]",O="[object Uint32Array]";function M(e,t,n){var M=e.constructor;switch(t){case m:return r(e);case s:case u:return new M(+e);case y:return a(e,n);case g:case b:case x:case _:case w:case k:case T:case E:case O:return l(e,n);case c:return new M;case f:case h:return new M(e);case p:return o(e);case d:return new M;case v:return i(e)}}e.exports=M},c30c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M32.375 7.625c-.125 0-.125.125-.25 0v-.313h-.25c0-.375-.25-.625-.25-1.063-.188 0-.313 0-.313-.125l-.25.25c-.125 0 0-.125-.125-.125-.25.438-.375.938-.25 1.375-.125.125-.125.375-.125.5h-.313c0 .125 0 .25-.125.25-.375.188-.813.313-1.188.313-.125 0-.375 0-.563.125-.125.125-.25.375-.375.5s-.25.125-.25.313c.125.125.125.25.125.375-.438.688-1.063.375-1.625.688 0 .125.125.25.125.375-.5.688-1.188 1.063-1.813 1.5-.188 0-.438-.188-.563-.313 0-.25.25-.5.375-.625 0-.438-.125-.813-.375-1.063l-.375.375c-.188 0-.188-.125-.188-.25.438-.125.188-.813.313-.938-.125 0-.125-.125-.125-.125-.438 0-.688-.438-.938 0 0 .125.125 0 .125.125-.125 0-.125 0-.25.125 0 .25.125.375-.188.375 0-.125.188-.25 0-.375-.25.375-.375.938-.375 1.438.375.438.25 1.063-.125 1.5l-.125.125c-.813-.688-.313-2.125-.125-2.938-.188.25-.313.375-.563.563.25-.563.375-.938.563-1.25.25 0 .625-.125.938-.25h.75c-.125 0-.25-.125-.125-.375h-.375v-.313c-.438.188-.938.313-1.375.313 0-.313-.25-.313-.5-.313h-.125c.125-.25.125-.375.375-.5-.25 0-.5.125-.625.375-.313.125-.563.313-.813.438 0-.125-.313 0-.313-.125 0 0 .188-.188.188-.313-.313.125-.438.125-.688.125.25-.25.375-.375.688-.625.25-.125.5-.313.625-.438-.25 0-.5 0-.625-.125-.188.125-.438.125-.563 0l-.125-.125c-.25-.125-.563-.125-.938-.125-.125-.125-.25-.125-.563-.125-.125-.125 0-.563-.25-.563-.125 0 0 .313-.125.313-4.813 0-9.625-.563-14.25-1.875.125.625.125.938.125 1.188-.125 0-.25-.125-.125-.25-.125 0-.125 0-.25.125-.313-.125-.563-.313-.813-.438-.125.438 0 .813.125 1.25h-.125s0 .125.125.125c-.125.125-.25.25 0 .375-.125 0-.125.125-.125.125-.438.813-.688 1.625-1.188 2.25 0 .188 0 .438-.188.563 0 .563-.125 1.063-.375 1.438.375.313 0 .813.125 1.125.125.125.25.375.25.625 0 .125 0 .438.188.438-.188.25 0 .625.25.75 0 .188-.125.188-.125.313 0 .5.5.75.5 1.313v.563c.438.125.813.375 1.188.625v.125c.438.125.688.563.563 1.063.375.188.938.313 1.438.313 0 .125-.125 0-.125.125.563.25 1.063.625 1.625 1.063.813.375 1.563.5 2.5.688 0-.188 0-.313.188-.438.375.125.75.125 1.063.125.25.438.5.688.75.938.313.125.438.438.438.688.25.375.5.688.938.813.125-.313.375-.563.625-.688.688 0 1.375.688 1.375 1.313.25.125.25.563.5.688-.125.938.938 1.188 1.5 1.313-.125-.5-.125-1.063 0-1.438.625-.438 1.313-.813 1.875-1.188.625-.313 1.313-.313 2-.125 0-.313-.313 0-.313-.188.313-.25.438.188.688.188v.125c.125.125.25.125.375.125.188-.125.188-.125.313-.125.125.125-.125.125 0 .125.125-.125.25-.25.25-.438 0 .188.5.438.5.188-.125 0-.25-.188-.5-.313.125 0 .25-.25.125-.375-.125.125-.125.125-.25.125.125-.375.5-.375 1.063-.375 0 0 0-.313.125-.313s.125.313 0 .313c.563-.438 1.313-.313 1.875.25.25 0 .5-.125.688-.438.625 0 .5.563 1.063.563.25.25 0 .938.25 1.188v-.25h.125c0 .125-.125.25-.125.25.125.25.375.563.5.688l.188-.125c.125.125.125.25.125.375.25 0 .5.25.5.563.125-.125.25-.125.563-.125 0 .25-.438.25-.438.5.313-.125.438-.375.563-.688-.125 0 0 .188-.125.188.125-.813-.125-1.625-.563-2.313 0 0 .125 0 .125-.125-.625-.5-1.063-1.563-.75-2.5.125-.188.25-.438.25-.563.25-.125.5-.375.625-.688 0-.375.188-.625.563-.625h.125c0-.813.938-.563.938-1.063-.125.125-.25.125-.375 0 .125.125.25-.125.125-.313.125.188.375 0 .5-.125v-.125h-.25c.125 0 .25 0 .25-.125-.125-.25-.25-.563-.375-.813h-.25c.125-.125-.125-.25-.125-.375h.125a.657.657 0 0 0-.313-.563c.188 0 0-.125.188-.125-.313-.125-.313-.813 0-.938-.188.125.125.25-.188.563.188 0 0 0 .188.25.125.125.25.125.25.25v-.25c.375.125 0 .688.25.938.25-.563.25-.938.25-1.5-.25-.125-.375-.25-.375-.5.125.25.25.375.375.375v.125c.438-.375.563-.75.438-1.313h-.125c.125 0 0-.125.125-.125v-.125c.375-.438.938-.688 1.438-.938 0-.125 0-.125.125-.25 0 .125 0 .125-.125.25.125-.125.25-.25.563-.25 0-.125 0-.313-.313-.313.188.188.188.188.188.313-.313.25-.438-.438-.688-.313 0-.375 0-.75.125-1.188.25 0 .375-.125.563-.25v-.375s.125 0 .125.125-.125 0-.125.125c.25-.125.375-.25.375-.438 0 .188 0 .188.125.188s-.125-.188-.125-.313c.25.125.813-.375.375-.625zM5.313 13.313h2.688v2.688H5.313zm0-4h2.688v2.688H5.313zm-4 0h2.688v2.688H1.313zm0 4h2.688v2.688H1.313zm12 4h2.688v2.688h-2.688zm4-8h2.688v2.688h-2.688zm0 4h2.688v2.688h-2.688zm0 4h2.688v2.688h-2.688zm-4-8h2.688v2.688h-2.688zm0 4h2.688v2.688h-2.688zm8 0h2.688v2.688h-2.688zm0 4h2.688v2.688h-2.688zm4-4h2.688v2.688h-2.688zm-16-4h2.688v2.688H9.313zm0 4h2.688v2.688H9.313zm0 4h2.688v2.688H9.313z"}))};t.default=u},c342:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18C2,19.1 2.9,20 4,20H20C21.1,20 22,19.1 22,18V6C22,4.89 21.1,4 20,4Z"}))};e.exports=l},c3fc:function(e,t,n){var r=n("42a2"),a=n("1310"),o="[object Set]";function i(e){return a(e)&&r(e)==o}e.exports=i},c430:function(e,t){e.exports=!1},c436:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M18,15H16V17H18M18,11H16V13H18M20,19H12V17H14V15H12V13H14V11H12V9H20M10,7H8V5H10M10,11H8V9H10M10,15H8V13H10M10,19H8V17H10M6,7H4V5H6M6,11H4V9H6M6,15H4V13H6M6,19H4V17H6M12,7V3H2V21H22V7H12Z"}))};e.exports=l},c449:function(e,t,n){(function(t){for(var r=n("6d08"),a="undefined"===typeof window?t:window,o=["moz","webkit"],i="AnimationFrame",l=a["request"+i],s=a["cancel"+i]||a["cancelRequest"+i],u=0;!l&&u<o.length;u++)l=a[o[u]+"Request"+i],s=a[o[u]+"Cancel"+i]||a[o[u]+"CancelRequest"+i];if(!l||!s){var c=0,f=0,p=[],d=1e3/60;l=function(e){if(0===p.length){var t=r(),n=Math.max(0,d-(t-c));c=n+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return l.call(a,e)},e.exports.cancel=function(){s.apply(a,arguments)},e.exports.polyfill=function(e){e||(e=a),e.requestAnimationFrame=l,e.cancelAnimationFrame=s}}).call(this,n("c8ba"))},c584:function(e,t){function n(e,t){return e.has(t)}e.exports=n},c5b8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CircleSwatch=void 0;var r=n("ab5b"),a=s(r),o=n("fc55"),i=s(o),l=n("4ccf");function s(e){return e&&e.__esModule?e:{default:e}}var u=t.CircleSwatch=function(e){var t=e.color,n=e.onClick,r=e.onSwatchHover,o=e.hover,s=e.active,u=e.circleSize,c=e.circleSpacing,f=(0,i.default)({default:{swatch:{width:u,height:u,marginRight:c,marginBottom:c,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(u/2+1)+"px "+t,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+t}}},{hover:o,active:s});return a.default.createElement("div",{style:f.swatch},a.default.createElement(l.Swatch,{style:f.Swatch,color:t,onClick:n,onHover:r,focusStyle:{boxShadow:f.Swatch.boxShadow+", 0 0 5px "+t}}))};u.defaultProps={circleSize:28,circleSpacing:14},t.default=(0,o.handleHover)(u)},c5fc:function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0;r(n("d7bc"));function r(e){return e&&e.__esModule?e:{default:e}}var a=null;t.timeoutsShape=a;var o=null;t.classNamesShape=o},c612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=T;var r=c(n("ab5b")),a=s(n("d7bc")),o=s(n("10b4")),i=n("976e"),l=n("4578");function s(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return f="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},f(e)}function p(){return p=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},p.apply(this,arguments)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function m(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&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function g(e){var t=_();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function k(e,t,n){var r=n.localize,a=e;t.axisFilter&&(a=e.filter(t.axisFilter));for(var o=[],i=0;i<a.length;i++){var s=a[i],u=(0,l.capitalize)(s._name.split("axis")[0]),c=(!s._subplot||s._subplot.includes("xaxis")||s._subplot.includes("yaxis")?s._subplot:s._subplot+"."+s._name).trim();o[i]={label:u,value:c,axisGroup:s._axisGroup,title:(0,l.getAxisTitle)(s)}}return o.length>1?[{label:r("All"),value:"allaxes"}].concat(o):o}function T(e){var t=function(t){m(a,t);var n=g(a);function a(e,t){var r;d(this,a),r=n.call(this,e,t),r.axes=(0,l.getAllAxes)(t.fullContainer),r.axesOptions=k(r.axes,e,t);var o=null;return 1===r.axesOptions.length&&(o=r.axesOptions[0].value),r.axesOptions.length>1&&(o=r.axesOptions[1].value),r.state={axesTarget:o},r.axesTargetHandler=r.axesTargetHandler.bind(x(r)),r.updateContainer=r.updateContainer.bind(x(r)),r.setLocals(e,r.state,t),r}return v(a,[{key:"componentWillUpdate",value:function(e,t,n){this.axes=(0,l.getAllAxes)(n.fullContainer),this.axesOptions=k(this.axes,e,n),this.setLocals(e,t,n)}},{key:"setLocals",value:function(e,t,n){var r=n.container,a=n.fullContainer,l=t.axesTarget;if("allaxes"===l){var s=(0,i.deepCopyPublic)(this.axes[0]);this.axes.slice(1).forEach((function(e){return Object.keys(e).forEach((function(t){return(0,i.setMultiValuedContainer)(s,(0,i.deepCopyPublic)(e),t,{searchArrays:!0})}))})),this.fullContainer=s,this.defaultContainer=this.axes[0],this.container={}}else l&&(this.fullContainer=(0,o.default)(a,l).get(),this.container=this.container=(0,o.default)(r,l).get()||{})}},{key:"getChildContext",value:function(){var e=this;return{getValObject:function(t){return e.context.getValObject?e.context.getValObject("".concat(e.state.axesTarget,".").concat(t)):null},axesOptions:this.axesOptions,axesTarget:this.state.axesTarget,axesTargetHandler:this.axesTargetHandler,container:this.container,defaultContainer:this.defaultContainer,fullContainer:this.fullContainer,updateContainer:this.updateContainer}}},{key:"axesTargetHandler",value:function(e){this.setState({axesTarget:e})}},{key:"updateContainer",value:function(e){var t={},n=this.state.axesTarget,r=this.axes;"allaxes"!==n&&(r=[this.fullContainer]);for(var a=Object.keys(e),o=0;o<a.length;o++)for(var i=0;i<r.length;i++){var l=r[i]._subplot,s=r[i]._name;!l||l.includes("xaxis")||l.includes("yaxis")||(s="".concat(l,".").concat(s));var u="".concat(s,".").concat(a[o]);t[u]=e[a[o]]}this.context.updateContainer(t)}},{key:"render",value:function(){return r.default.createElement(e,p({},this.props,{options:this.axesOptions}))}}]),a}(r.Component);t.displayName="AxesConnected".concat((0,l.getDisplayName)(e)),t.contextTypes={container:a.default.object.isRequired,fullContainer:a.default.object.isRequired,updateContainer:a.default.func,localize:a.default.func,getValObject:a.default.func},t.childContextTypes={axesOptions:a.default.array,axesTarget:a.default.string,axesTargetHandler:a.default.func,container:a.default.object,defaultContainer:a.default.object,fullContainer:a.default.object,updateContainer:a.default.func,getValObject:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},c641:function(e,t,n){e.exports=n("6cd4")},c642:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))};e.exports=l},c687:function(e,t,n){"use strict";var r=n("0984"),a=n("d8db"),o=r.isBrowser("IE <= 9");function i(e){var t,n=null;return!o&&document.implementation&&document.implementation.createHTMLDocument&&(t=document.implementation.createHTMLDocument("foo"),t.documentElement||a(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}e.exports=i},c6a9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M7.313 12.063c-.688-.688-1.25-1.25-1.25-2.375V5.813c0-.375-.25-.688-.625-.688s-.625.313-.625.688v3.875c0 1.125-.625 1.688-1.375 2.375-.813.75-1.813 1.688-1.813 3.688 0 2.188 1 3.188 1.875 3.938.688.688 1.313 1.188 1.313 2.438v3.813c0 .375.25.688.625.688s.625-.313.625-.688v-3.813c0-1.25.563-1.75 1.25-2.438.875-.813 1.813-1.813 1.813-3.938 0-2-1-2.938-1.813-3.688zm-2.125 5.5c-.875 0-1.563-.688-1.563-1.5 0-.875.75-1.563 1.563-1.563s1.563.688 1.563 1.563c0 .813-.688 1.5-1.563 1.5zm12.687.375c-.75-.688-1.25-1.063-1.25-1.875v-3.25c0-.375-.25-.688-.625-.688s-.625.313-.625.688v3.25c0 .813-.438 1.188-1.25 1.875-.875.625-1.875 1.5-1.875 3.188 0 1.938 1 2.75 1.875 3.438.688.563 1.188 1 1.188 1.938v3.188c0 .375.25.688.625.688.438 0 .688-.313.688-.688v-3.188c0-.938.5-1.375 1.25-1.938.813-.688 1.875-1.5 1.875-3.438 0-1.75-1-2.563-1.875-3.188zm-1.687 4.812a1.548 1.548 0 0 1-1.563-1.563c0-.813.75-1.5 1.563-1.5.875 0 1.563.688 1.563 1.5 0 .875-.688 1.563-1.563 1.563zM28.563 9.688c-.75-.813-1.375-1.438-1.375-2.813V2.312c0-.375-.25-.688-.625-.688s-.625.313-.625.688v4.563c0 1.375-.563 2-1.313 2.813-.813.938-1.75 1.938-1.75 4.188 0 2.438.938 3.563 1.813 4.438.75.813 1.25 1.438 1.25 2.938v4.5c0 .375.25.688.625.688.438 0 .688-.313.688-.688v-4.5c0-1.5.625-2.125 1.375-2.938.813-.938 1.75-2 1.75-4.438 0-2.25-.938-3.313-1.813-4.188zM26.875 15.5c-.875 0-1.563-.688-1.563-1.5 0-.875.688-1.563 1.563-1.563.813 0 1.5.688 1.5 1.563 0 .813-.688 1.5-1.5 1.5z"}))};t.default=u},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n("da84"),a=n("ce4e"),o="__core-js_shared__",i=r[o]||a(o,{});e.exports=i},c740:function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").findIndex,o=n("44d2"),i=n("ae40"),l="findIndex",s=!0,u=i(l);l in[]&&Array(1)[l]((function(){s=!1})),r({target:"Array",proto:!0,forced:s||!u},{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o(l)},c751:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M12,17C13.1,17 14,16.1 14,15C14,13.89 13.1,13 12,13C10.9,13 10,13.9 10,15C10,16.1 10.9,17 12,17M18,8C19.1,8 20,8.9 20,10V20C20,21.1 19.1,22 18,22H6C4.9,22 4,21.1 4,20V10C4,8.89 4.9,8 6,8H7V6C7,3.24 9.24,1 12,1C14.76,1 17,3.24 17,6V8H18M12,3C10.34,3 9,4.34 9,6V8H15V6C15,4.34 13.66,3 12,3Z"}))};e.exports=l},c799:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M16,10H14V7H10V10H8L12,14M19,15H15C15,16.66 13.66,18 12,18C10.34,18 9,16.66 9,15H5V5H19M19,3H5C3.89,3 3,3.9 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.9 20.1,3 19,3Z"}))};e.exports=l},c7db:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedDualNumericFraction=void 0;var r=f(n("5174")),a=f(n("d8d0")),o=f(n("d7bc")),i=c(n("ab5b")),l=n("4578"),s=f(n("10b4"));function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(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 h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 g(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}function b(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&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function _(e){var t=T();return function(){var n,r=E(e);if(t){var a=E(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?k(e):t}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(){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}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var O=function(e){b(n,e);var t=_(n);function n(e,r){var a;return m(this,n),a=t.call(this,e,r),a.updatePlot=a.updatePlot.bind(k(a)),a.updatePlot2=a.updatePlot2.bind(k(a)),a}return g(n,[{key:"updatePlot",value:function(e){this.props.updatePlot(this.props.percentage?e/100:e)}},{key:"updatePlot2",value:function(e){this.props.updateContainer(v({},this.props.attr2,this.props.percentage?e/100:e))}},{key:"render",value:function(){var e,t,n=this.props,o=n.percentage,l=n.multiValued,u=n.attr2,c=n.step,f=n.min,p=n.max,d=o?Math.round(100*this.props.fullValue):this.props.fullValue,h=(0,s.default)(this.context.fullContainer,u).get();return o&&(h=Math.round(100*h)),l&&(e=d,t=h,d="",h=""),i.default.createElement(r.default,this.props,i.default.createElement("div",{className:"numeric-input__wrapper"},i.default.createElement(a.default,{value:d,defaultValue:this.props.defaultValue,placeholder:e,step:c,min:f,max:p,onChange:this.updatePlot,onUpdate:this.updatePlot,showArrows:!this.props.hideArrows,showSlider:!1}),i.default.createElement(a.default,{value:h,defaultValue:this.props.defaultValue,placeholder:t,step:c,min:f,max:p,onChange:this.updatePlot2,onUpdate:this.updatePlot2,showArrows:!this.props.hideArrows,showSlider:!1})))}}]),n}(i.Component);t.UnconnectedDualNumericFraction=O,O.propTypes=h({defaultValue:o.default.any,fullValue:o.default.any,min:o.default.number,max:o.default.number,multiValued:o.default.bool,hideArrows:o.default.bool,showSlider:o.default.bool,step:o.default.number,updatePlot:o.default.func,attr2:o.default.any,percentage:o.default.bool},r.default.propTypes),O.contextTypes={fullContainer:o.default.object},O.displayName="UnconnectedDualNumericFraction";var M=(0,l.connectToContainer)(O);t.default=M},c83e:function(e,t,n){"use strict";function r(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}t.__esModule=!0,t.default=r,e.exports=t["default"]},c85e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r={Button:!0,PanelMenuWrapper:!0};Object.defineProperty(t,"Button",{enumerable:!0,get:function(){return a.Button}}),Object.defineProperty(t,"PanelMenuWrapper",{enumerable:!0,get:function(){return o.default}});var a=n("562c"),o=s(n("95e6")),i=n("39f0");Object.keys(i).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}}))}));var l=n("4ded");function s(e){return e&&e.__esModule?e:{default:e}}Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}))},c869:function(e,t,n){var r=n("0b07"),a=n("2b3e"),o=r(a,"Set");e.exports=o},c87c:function(e,t){var n=Object.prototype,r=n.hasOwnProperty;function a(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&r.call(e,"index")&&(n.index=e.index,n.input=e.input),n}e.exports=a},c8ba:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},c8e6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Alpha=void 0;var r=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},a=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}}(),o=n("ab5b"),i=h(o),l=n("fc55"),s=h(l),u=n("4c72"),c=d(u),f=n("36ad"),p=h(f);function d(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 h(e){return e&&e.__esModule?e:{default:e}}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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}function y(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)}var g=t.Alpha=function(e){function t(){var e,n,r,a;v(this,t);for(var o=arguments.length,i=Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=m(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),n=r,r.handleChange=function(e){var t=c.calculateChange(e,r.props.hsl,r.props.direction,r.props.a,r.container);t&&"function"===typeof r.props.onChange&&r.props.onChange(t,e)},r.handleMouseDown=function(e){r.handleChange(e),window.addEventListener("mousemove",r.handleChange),window.addEventListener("mouseup",r.handleMouseUp)},r.handleMouseUp=function(){r.unbindEventListeners()},r.unbindEventListeners=function(){window.removeEventListener("mousemove",r.handleChange),window.removeEventListener("mouseup",r.handleMouseUp)},a=n,m(r,a)}return y(t,e),a(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var e=this,t=this.props.rgb,n=(0,s.default)({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:100*t.a+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+t.r+","+t.g+","+t.b+", 0) 0%,\n rgba("+t.r+","+t.g+","+t.b+", 1) 100%)"},pointer:{left:0,top:100*t.a+"%"}},overwrite:r({},this.props.style)},{vertical:"vertical"===this.props.direction,overwrite:!0});return i.default.createElement("div",{style:n.alpha},i.default.createElement("div",{style:n.checkboard},i.default.createElement(p.default,{renderers:this.props.renderers})),i.default.createElement("div",{style:n.gradient}),i.default.createElement("div",{style:n.container,ref:function(t){return e.container=t},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.default.createElement("div",{style:n.pointer},this.props.pointer?i.default.createElement(this.props.pointer,this.props):i.default.createElement("div",{style:n.slider}))))}}]),t}(o.PureComponent||o.Component);t.default=g},c8fe:function(e,t,n){var r=n("f8af");function a(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}e.exports=a},c95a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=function(){function e(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)if(n.push(i.value),t&&n.length===t)break}catch(s){a=!0,o=s}finally{try{!r&&l["return"]&&l["return"]()}finally{if(a)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){if(null==e)return t;var n=a(t,2),i=n[0],l=n[1],s=r({},i),u=[].concat(o(l)),c=!0,f=!1,p=void 0;try{for(var d,h=Object.keys(e)[Symbol.iterator]();!(c=(d=h.next()).done);c=!0){var v=d.value;if(i.hasOwnProperty(v)){var m=i[v];s[v]=r({},m,e[v])}else s[v]=e[v],u.push(v)}}catch(y){f=!0,p=y}finally{try{!c&&h.return&&h.return()}finally{if(f)throw p}}return[s,u]}t.default=i},c975:function(e,t,n){"use strict";var r=n("23e7"),a=n("4d64").indexOf,o=n("a640"),i=n("ae40"),l=[].indexOf,s=!!l&&1/[1].indexOf(1,-0)<0,u=o("indexOf"),c=i("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:s||!u||!c},{indexOf:function(e){return s?l.apply(this,arguments)||0:a(this,e,arguments.length>1?arguments[1]:void 0)}})},c983:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("ab5b")),a=i(n("d7bc")),o=i(n("8014"));function i(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){d(n,e);var t=v(n);function n(e){var r,a;return c(this,n),r=t.call(this,e),a=null!==e.activeOption?e.activeOption:"",r.state={activeOption:r.parseFlags(a)},r.handleChange=r.handleChange.bind(y(r)),r}return p(n,[{key:"parseFlags",value:function(e){var t;return t="all"===e?this.props.options.map((function(e){return e.value})).join("+"):"none"===e?"":e,t}},{key:"componentWillReceiveProps",value:function(e){this.setState({activeOption:this.parseFlags(e.activeOption)})}},{key:"handleChange",value:function(e){var t="";e.map((function(e){!0===e.checked&&(t+=e.value+"+")})),t=t.slice(0,-1),0===t.length&&(t="none"),this.setState({activeOption:t}),this.props.onChange(t)}},{key:"renderCheckedOption",value:function(){var e="string"===typeof this.state.activeOption?this.state.activeOption.split("+"):[this.state.activeOption],t=this.props.options,n=[];return t.map((function(t){var r;r=e.indexOf(t.value)>-1,n.push({label:t.label,value:t.value,checked:r})})),n}},{key:"render",value:function(){return r.default.createElement(o.default,{options:this.renderCheckedOption(),onChange:this.handleChange,className:this.props.className,orientation:this.props.orientation})}}]),n}(r.Component);x.propTypes={options:a.default.arrayOf(a.default.shape({value:a.default.any.isRequired,label:a.default.string.isRequired})).isRequired,activeOption:a.default.any,onChange:a.default.func,className:a.default.string,orientation:a.default.string};var _=x;t.default=_},c9c1:function(e,t,n){"use strict";var r=n("4ea4");t.__esModule=!0,t.default=o;var a=r(n("c83e"));function o(e,t){e.classList?e.classList.add(t):(0,a.default)(e,t)||("string"===typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}e.exports=t["default"]},ca44:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TraceTypeSection=t.LayoutSection=t.LayoutPanel=void 0;var r=s(n("ab5b")),a=s(n("e78b")),o=s(n("691e")),i=s(n("d7bc")),l=n("4578");function s(e){return e&&e.__esModule?e:{default:e}}var u=(0,l.connectLayoutToPlot)(a.default);t.LayoutPanel=u;var c=(0,l.connectLayoutToPlot)(o.default);t.LayoutSection=c;var f=function(e,t){var n=t.fullContainer,a=t.fullData,i=e.mode,l=e.traceTypes,s="trace"===i&&n&&l.includes(n.type),u="layout"===i&&a&&a.some((function(e){return l.includes(e.type)}));return s||u?r.default.createElement(o.default,e):null};t.TraceTypeSection=f,f.contextTypes=l.containerConnectedContextTypes,f.propTypes={children:i.default.node,name:i.default.string,traceTypes:i.default.array,mode:i.default.string},f.defaultProps={traceTypes:[],mode:"layout"}},ca5d:function(e,t,n){"use strict";
/** @license React v16.13.1
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n("ab5b"),a=n("320c"),o=n("4029");function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));function l(e,t,n,r,a,o,i,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var s=!1,u=null,c=!1,f=null,p={onError:function(e){s=!0,u=e}};function d(e,t,n,r,a,o,i,c,f){s=!1,u=null,l.apply(p,arguments)}function h(e,t,n,r,a,o,l,p,h){if(d.apply(this,arguments),s){if(!s)throw Error(i(198));var v=u;s=!1,u=null,c||(c=!0,f=v)}}var v=null,m=null,y=null;function g(e,t,n){var r=e.type||"unknown-event";e.currentTarget=y(n),h(r,t,void 0,e),e.currentTarget=null}var b=null,x={};function _(){if(b)for(var e in x){var t=x[e],n=b.indexOf(e);if(!(-1<n))throw Error(i(96,e));if(!k[n]){if(!t.extractEvents)throw Error(i(97,e));for(var r in k[n]=t,n=t.eventTypes,n){var a=void 0,o=n[r],l=t,s=r;if(T.hasOwnProperty(s))throw Error(i(99,s));T[s]=o;var u=o.phasedRegistrationNames;if(u){for(a in u)u.hasOwnProperty(a)&&w(u[a],l,s);a=!0}else o.registrationName?(w(o.registrationName,l,s),a=!0):a=!1;if(!a)throw Error(i(98,r,e))}}}}function w(e,t,n){if(E[e])throw Error(i(100,e));E[e]=t,O[e]=t.eventTypes[n].dependencies}var k=[],T={},E={},O={};function M(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!x.hasOwnProperty(t)||x[t]!==r){if(x[t])throw Error(i(102,t));x[t]=r,n=!0}}n&&_()}var S=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),C=null,A=null,P=null;function L(e){if(e=m(e)){if("function"!==typeof C)throw Error(i(280));var t=e.stateNode;t&&(t=v(t),C(e.stateNode,e.type,t))}}function D(e){A?P?P.push(e):P=[e]:A=e}function j(){if(A){var e=A,t=P;if(P=A=null,L(e),t)for(e=0;e<t.length;e++)L(t[e])}}function I(e,t){return e(t)}function R(e,t,n,r,a){return e(t,n,r,a)}function z(){}var N=I,F=!1,B=!1;function V(){null===A&&null===P||(z(),j())}function H(e,t,n){if(B)return e(t,n);B=!0;try{return N(e,t,n)}finally{B=!1,V()}}var U=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,W=Object.prototype.hasOwnProperty,q={},$={};function G(e){return!!W.call($,e)||!W.call(q,e)&&(U.test(e)?$[e]=!0:(q[e]=!0,!1))}function Y(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),"data-"!==e&&"aria-"!==e));default:return!1}}function K(e,t,n,r){if(null===t||"undefined"===typeof t||Y(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function X(e,t,n,r,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o}var Z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Z[e]=new X(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Z[t]=new X(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Z[e]=new X(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Z[e]=new X(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Z[e]=new X(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Z[e]=new X(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Z[e]=new X(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Z[e]=new X(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Z[e]=new X(e,5,!1,e.toLowerCase(),null,!1)}));var J=/[\-:]([a-z])/g;function Q(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(J,Q);Z[t]=new X(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(J,Q);Z[t]=new X(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(J,Q);Z[t]=new X(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Z[e]=new X(e,1,!1,e.toLowerCase(),null,!1)})),Z.xlinkHref=new X("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Z[e]=new X(e,1,!1,e.toLowerCase(),null,!0)}));var ee=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function te(e,t,n,r){var a=Z.hasOwnProperty(t)?Z[t]:null,o=null!==a?0===a.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]));o||(K(t,n,a,r)&&(n=null),r||null===a?G(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(a=a.type,n=3===a||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}ee.hasOwnProperty("ReactCurrentDispatcher")||(ee.ReactCurrentDispatcher={current:null}),ee.hasOwnProperty("ReactCurrentBatchConfig")||(ee.ReactCurrentBatchConfig={suspense:null});var ne=/^(.*)[\\\/]/,re="function"===typeof Symbol&&Symbol.for,ae=re?Symbol.for("react.element"):60103,oe=re?Symbol.for("react.portal"):60106,ie=re?Symbol.for("react.fragment"):60107,le=re?Symbol.for("react.strict_mode"):60108,se=re?Symbol.for("react.profiler"):60114,ue=re?Symbol.for("react.provider"):60109,ce=re?Symbol.for("react.context"):60110,fe=re?Symbol.for("react.concurrent_mode"):60111,pe=re?Symbol.for("react.forward_ref"):60112,de=re?Symbol.for("react.suspense"):60113,he=re?Symbol.for("react.suspense_list"):60120,ve=re?Symbol.for("react.memo"):60115,me=re?Symbol.for("react.lazy"):60116,ye=re?Symbol.for("react.block"):60121,ge="function"===typeof Symbol&&Symbol.iterator;function be(e){return null===e||"object"!==typeof e?null:(e=ge&&e[ge]||e["@@iterator"],"function"===typeof e?e:null)}function xe(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}function _e(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ie:return"Fragment";case oe:return"Portal";case se:return"Profiler";case le:return"StrictMode";case de:return"Suspense";case he:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ce:return"Context.Consumer";case ue:return"Context.Provider";case pe:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case ve:return _e(e.type);case ye:return _e(e.render);case me:if(e=1===e._status?e._result:null)return _e(e)}return null}function we(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,a=e._debugSource,o=_e(e.type);n=null,r&&(n=_e(r.type)),r=o,o="",a?o=" (at "+a.fileName.replace(ne,"")+":"+a.lineNumber+")":n&&(o=" (created by "+n+")"),n="\n in "+(r||"Unknown")+o}t+=n,e=e.return}while(e);return t}function ke(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Te(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ee(e){var t=Te(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Oe(e){e._valueTracker||(e._valueTracker=Ee(e))}function Me(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Te(e)?e.checked?"true":"false":e.value),e=r,e!==n&&(t.setValue(e),!0)}function Se(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ce(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ke(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ae(e,t){t=t.checked,null!=t&&te(e,"checked",t,!1)}function Pe(e,t){Ae(e,t);var n=ke(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?De(e,t.type,n):t.hasOwnProperty("defaultValue")&&De(e,t.type,ke(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Le(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,""!==n&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function De(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function je(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}function Ie(e,t){return e=a({children:void 0},t),(t=je(t.children))&&(e.children=t),e}function Re(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ke(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function ze(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ne(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ke(n)}}function Fe(e,t){var n=ke(t.value),r=ke(t.defaultValue);null!=n&&(n=""+n,n!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Be(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ve={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function He(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?He(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var We,qe=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,a){MSApp.execUnsafeLocalFunction((function(){return e(t,n,r,a)}))}:e}((function(e,t){if(e.namespaceURI!==Ve.svg||"innerHTML"in e)e.innerHTML=t;else{for(We=We||document.createElement("div"),We.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=We.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function $e(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function Ge(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ye={animationend:Ge("Animation","AnimationEnd"),animationiteration:Ge("Animation","AnimationIteration"),animationstart:Ge("Animation","AnimationStart"),transitionend:Ge("Transition","TransitionEnd")},Ke={},Xe={};function Ze(e){if(Ke[e])return Ke[e];if(!Ye[e])return e;var t,n=Ye[e];for(t in n)if(n.hasOwnProperty(t)&&t in Xe)return Ke[e]=n[t];return e}S&&(Xe=document.createElement("div").style,"AnimationEvent"in window||(delete Ye.animationend.animation,delete Ye.animationiteration.animation,delete Ye.animationstart.animation),"TransitionEvent"in window||delete Ye.transitionend.transition);var Je=Ze("animationend"),Qe=Ze("animationiteration"),et=Ze("animationstart"),tt=Ze("transitionend"),nt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),rt=new("function"===typeof WeakMap?WeakMap:Map);function at(e){var t=rt.get(e);return void 0===t&&(t=new Map,rt.set(e,t)),t}function ot(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{t=e,0!==(1026&t.effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function it(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(e=e.alternate,null!==e&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function lt(e){if(ot(e)!==e)throw Error(i(188))}function st(e){var t=e.alternate;if(!t){if(t=ot(e),null===t)throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(r=a.return,null!==r){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return lt(a),e;if(o===r)return lt(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var l=!1,s=a.child;s;){if(s===n){l=!0,n=a,r=o;break}if(s===r){l=!0,r=a,n=o;break}s=s.sibling}if(!l){for(s=o.child;s;){if(s===n){l=!0,n=o,r=a;break}if(s===r){l=!0,r=o,n=a;break}s=s.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}function ut(e){if(e=st(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function ct(e,t){if(null==t)throw Error(i(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ft(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var pt=null;function dt(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)g(e,t[r],n[r]);else t&&g(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ht(e){if(null!==e&&(pt=ct(pt,e)),e=pt,pt=null,e){if(ft(e,dt),pt)throw Error(i(95));if(c)throw e=f,c=!1,f=null,e}}function vt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function mt(e){if(!S)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t="function"===typeof t[e]),t}var yt=[];function gt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>yt.length&&yt.push(e)}function bt(e,t,n,r){if(yt.length){var a=yt.pop();return a.topLevelType=e,a.eventSystemFlags=r,a.nativeEvent=t,a.targetInst=n,a}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function xt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;t=n.tag,5!==t&&6!==t||e.ancestors.push(n),n=Vn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var a=vt(e.nativeEvent);r=e.topLevelType;var o=e.nativeEvent,i=e.eventSystemFlags;0===n&&(i|=64);for(var l=null,s=0;s<k.length;s++){var u=k[s];u&&(u=u.extractEvents(r,t,o,a,i))&&(l=ct(l,u))}ht(l)}}function _t(e,t,n){if(!n.has(e)){switch(e){case"scroll":rn(t,"scroll",!0);break;case"focus":case"blur":rn(t,"focus",!0),rn(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":mt(e)&&rn(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===nt.indexOf(e)&&nn(e,t)}n.set(e,null)}}var wt,kt,Tt,Et=!1,Ot=[],Mt=null,St=null,Ct=null,At=new Map,Pt=new Map,Lt=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),jt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function It(e,t){var n=at(t);Dt.forEach((function(e){_t(e,t,n)})),jt.forEach((function(e){_t(e,t,n)}))}function Rt(e,t,n,r,a){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:a,container:r}}function zt(e,t){switch(e){case"focus":case"blur":Mt=null;break;case"dragenter":case"dragleave":St=null;break;case"mouseover":case"mouseout":Ct=null;break;case"pointerover":case"pointerout":At.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pt.delete(t.pointerId)}}function Nt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e=Rt(t,n,r,a,o),null!==t&&(t=Hn(t),null!==t&&kt(t)),e):(e.eventSystemFlags|=r,e)}function Ft(e,t,n,r,a){switch(t){case"focus":return Mt=Nt(Mt,e,t,n,r,a),!0;case"dragenter":return St=Nt(St,e,t,n,r,a),!0;case"mouseover":return Ct=Nt(Ct,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return At.set(o,Nt(At.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Pt.set(o,Nt(Pt.get(o)||null,e,t,n,r,a)),!0}return!1}function Bt(e){var t=Vn(e.target);if(null!==t){var n=ot(t);if(null!==n)if(t=n.tag,13===t){if(t=it(n),null!==t)return e.blockedOn=t,void o.unstable_runWithPriority(e.priority,(function(){Tt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Vt(e){if(null!==e.blockedOn)return!1;var t=sn(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Hn(t);return null!==n&&kt(n),e.blockedOn=t,!1}return!0}function Ht(e,t,n){Vt(e)&&n.delete(t)}function Ut(){for(Et=!1;0<Ot.length;){var e=Ot[0];if(null!==e.blockedOn){e=Hn(e.blockedOn),null!==e&&wt(e);break}var t=sn(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:Ot.shift()}null!==Mt&&Vt(Mt)&&(Mt=null),null!==St&&Vt(St)&&(St=null),null!==Ct&&Vt(Ct)&&(Ct=null),At.forEach(Ht),Pt.forEach(Ht)}function Wt(e,t){e.blockedOn===t&&(e.blockedOn=null,Et||(Et=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ut)))}function qt(e){function t(t){return Wt(t,e)}if(0<Ot.length){Wt(Ot[0],e);for(var n=1;n<Ot.length;n++){var r=Ot[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Mt&&Wt(Mt,e),null!==St&&Wt(St,e),null!==Ct&&Wt(Ct,e),At.forEach(t),Pt.forEach(t),n=0;n<Lt.length;n++)r=Lt[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Lt.length&&(n=Lt[0],null===n.blockedOn);)Bt(n),null===n.blockedOn&&Lt.shift()}var $t={},Gt=new Map,Yt=new Map,Kt=["abort","abort",Je,"animationEnd",Qe,"animationIteration",et,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",tt,"transitionEnd","waiting","waiting"];function Xt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],a=e[n+1],o="on"+(a[0].toUpperCase()+a.slice(1));o={phasedRegistrationNames:{bubbled:o,captured:o+"Capture"},dependencies:[r],eventPriority:t},Yt.set(r,t),Gt.set(r,o),$t[a]=o}}Xt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Xt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Xt(Kt,2);for(var Zt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Jt=0;Jt<Zt.length;Jt++)Yt.set(Zt[Jt],0);var Qt=o.unstable_UserBlockingPriority,en=o.unstable_runWithPriority,tn=!0;function nn(e,t){rn(t,e,!1)}function rn(e,t,n){var r=Yt.get(t);switch(void 0===r?2:r){case 0:r=an.bind(null,t,1,e);break;case 1:r=on.bind(null,t,1,e);break;default:r=ln.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function an(e,t,n,r){F||z();var a=ln,o=F;F=!0;try{R(a,e,t,n,r)}finally{(F=o)||V()}}function on(e,t,n,r){en(Qt,ln.bind(null,e,t,n,r))}function ln(e,t,n,r){if(tn)if(0<Ot.length&&-1<Dt.indexOf(e))e=Rt(null,e,t,n,r),Ot.push(e);else{var a=sn(e,t,n,r);if(null===a)zt(e,r);else if(-1<Dt.indexOf(e))e=Rt(a,e,t,n,r),Ot.push(e);else if(!Ft(a,e,t,n,r)){zt(e,r),e=bt(e,r,null,t);try{H(xt,e)}finally{gt(e)}}}}function sn(e,t,n,r){if(n=vt(r),n=Vn(n),null!==n){var a=ot(n);if(null===a)n=null;else{var o=a.tag;if(13===o){if(n=it(a),null!==n)return n;n=null}else if(3===o){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}e=bt(e,r,n,t);try{H(xt,e)}finally{gt(e)}return null}var un={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},cn=["Webkit","ms","Moz","O"];function fn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||un.hasOwnProperty(e)&&un[e]?(""+t).trim():t+"px"}function pn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=fn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(un).forEach((function(e){cn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),un[t]=un[e]}))}));var dn=a({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function hn(e,t){if(t){if(dn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62,""))}}function vn(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var mn=Ve.html;function yn(e,t){e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument;var n=at(e);t=O[t];for(var r=0;r<t.length;r++)_t(t[r],e,n)}function gn(){}function bn(e){if(e=e||("undefined"!==typeof document?document:void 0),"undefined"===typeof e)return null;try{return e.activeElement||e.body}catch(t){return e.body}}function xn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function _n(e,t){var n,r=xn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=xn(r)}}function wn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?wn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function kn(){for(var e=window,t=bn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;e=t.contentWindow,t=bn(e.document)}return t}function Tn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var En="$",On="/$",Mn="$?",Sn="$!",Cn=null,An=null;function Pn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Ln(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Dn="function"===typeof setTimeout?setTimeout:void 0,jn="function"===typeof clearTimeout?clearTimeout:void 0;function In(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Rn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if(n===En||n===Sn||n===Mn){if(0===t)return e;t--}else n===On&&t++}e=e.previousSibling}return null}var zn=Math.random().toString(36).slice(2),Nn="__reactInternalInstance$"+zn,Fn="__reactEventHandlers$"+zn,Bn="__reactContainere$"+zn;function Vn(e){var t=e[Nn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bn]||n[Nn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Rn(e);null!==e;){if(n=e[Nn])return n;e=Rn(e)}return t}e=n,n=e.parentNode}return null}function Hn(e){return e=e[Nn]||e[Bn],!e||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Un(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Wn(e){return e[Fn]||null}function qn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function $n(e,t){var n=e.stateNode;if(!n)return null;var r=v(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!("button"===e||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}function Gn(e,t,n){(t=$n(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=ct(n._dispatchListeners,t),n._dispatchInstances=ct(n._dispatchInstances,e))}function Yn(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=qn(t);for(t=n.length;0<t--;)Gn(n[t],"captured",e);for(t=0;t<n.length;t++)Gn(n[t],"bubbled",e)}}function Kn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=$n(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ct(n._dispatchListeners,t),n._dispatchInstances=ct(n._dispatchInstances,e))}function Xn(e){e&&e.dispatchConfig.registrationName&&Kn(e._targetInst,null,e)}function Zn(e){ft(e,Yn)}var Jn=null,Qn=null,er=null;function tr(){if(er)return er;var e,t,n=Qn,r=n.length,a="value"in Jn?Jn.value:Jn.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return er=a.slice(e,1<t?1-t:void 0)}function nr(){return!0}function rr(){return!1}function ar(e,t,n,r){for(var a in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface,e)e.hasOwnProperty(a)&&((t=e[a])?this[a]=t(n):"target"===a?this.target=r:this[a]=n[a]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?nr:rr,this.isPropagationStopped=rr,this}function or(e,t,n,r){if(this.eventPool.length){var a=this.eventPool.pop();return this.call(a,e,t,n,r),a}return new this(e,t,n,r)}function ir(e){if(!(e instanceof this))throw Error(i(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function lr(e){e.eventPool=[],e.getPooled=or,e.release=ir}a(ar.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nr)},persist:function(){this.isPersistent=nr},isPersistent:rr,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=rr,this._dispatchInstances=this._dispatchListeners=null}}),ar.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ar.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return a(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,lr(n),n},lr(ar);var sr=ar.extend({data:null}),ur=ar.extend({data:null}),cr=[9,13,27,32],fr=S&&"CompositionEvent"in window,pr=null;S&&"documentMode"in document&&(pr=document.documentMode);var dr=S&&"TextEvent"in window&&!pr,hr=S&&(!fr||pr&&8<pr&&11>=pr),vr=String.fromCharCode(32),mr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},yr=!1;function gr(e,t){switch(e){case"keyup":return-1!==cr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function br(e){return e=e.detail,"object"===typeof e&&"data"in e?e.data:null}var xr=!1;function _r(e,t){switch(e){case"compositionend":return br(t);case"keypress":return 32!==t.which?null:(yr=!0,vr);case"textInput":return e=t.data,e===vr&&yr?null:e;default:return null}}function wr(e,t){if(xr)return"compositionend"===e||!fr&&gr(e,t)?(e=tr(),er=Qn=Jn=null,xr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return hr&&"ko"!==t.locale?null:t.data;default:return null}}var kr={eventTypes:mr,extractEvents:function(e,t,n,r){var a;if(fr)e:{switch(e){case"compositionstart":var o=mr.compositionStart;break e;case"compositionend":o=mr.compositionEnd;break e;case"compositionupdate":o=mr.compositionUpdate;break e}o=void 0}else xr?gr(e,n)&&(o=mr.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=mr.compositionStart);return o?(hr&&"ko"!==n.locale&&(xr||o!==mr.compositionStart?o===mr.compositionEnd&&xr&&(a=tr()):(Jn=r,Qn="value"in Jn?Jn.value:Jn.textContent,xr=!0)),o=sr.getPooled(o,t,n,r),a?o.data=a:(a=br(n),null!==a&&(o.data=a)),Zn(o),a=o):a=null,(e=dr?_r(e,n):wr(e,n))?(t=ur.getPooled(mr.beforeInput,t,n,r),t.data=e,Zn(t)):t=null,null===a?t:null===t?a:[a,t]}},Tr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Er(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Tr[e.type]:"textarea"===t}var Or={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Mr(e,t,n){return e=ar.getPooled(Or.change,e,t,n),e.type="change",D(n),Zn(e),e}var Sr=null,Cr=null;function Ar(e){ht(e)}function Pr(e){var t=Un(e);if(Me(t))return e}function Lr(e,t){if("change"===e)return t}var Dr=!1;function jr(){Sr&&(Sr.detachEvent("onpropertychange",Ir),Cr=Sr=null)}function Ir(e){if("value"===e.propertyName&&Pr(Cr))if(e=Mr(Cr,e,vt(e)),F)ht(e);else{F=!0;try{I(Ar,e)}finally{F=!1,V()}}}function Rr(e,t,n){"focus"===e?(jr(),Sr=t,Cr=n,Sr.attachEvent("onpropertychange",Ir)):"blur"===e&&jr()}function zr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Pr(Cr)}function Nr(e,t){if("click"===e)return Pr(t)}function Fr(e,t){if("input"===e||"change"===e)return Pr(t)}S&&(Dr=mt("input")&&(!document.documentMode||9<document.documentMode));var Br={eventTypes:Or,_isInputEventSupported:Dr,extractEvents:function(e,t,n,r){var a=t?Un(t):window,o=a.nodeName&&a.nodeName.toLowerCase();if("select"===o||"input"===o&&"file"===a.type)var i=Lr;else if(Er(a))if(Dr)i=Fr;else{i=zr;var l=Rr}else(o=a.nodeName)&&"input"===o.toLowerCase()&&("checkbox"===a.type||"radio"===a.type)&&(i=Nr);if(i&&(i=i(e,t)))return Mr(i,n,r);l&&l(e,a,t),"blur"===e&&(e=a._wrapperState)&&e.controlled&&"number"===a.type&&De(a,"number",a.value)}},Vr=ar.extend({view:null,detail:null}),Hr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ur(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Hr[e])&&!!t[e]}function Wr(){return Ur}var qr=0,$r=0,Gr=!1,Yr=!1,Kr=Vr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Wr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=qr;return qr=e.screenX,Gr?"mousemove"===e.type?e.screenX-t:0:(Gr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=$r;return $r=e.screenY,Yr?"mousemove"===e.type?e.screenY-t:0:(Yr=!0,0)}}),Xr=Kr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Zr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Jr={eventTypes:Zr,extractEvents:function(e,t,n,r,a){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&0===(32&a)&&(n.relatedTarget||n.fromElement)||!i&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,i){if(i=t,t=(t=n.relatedTarget||n.toElement)?Vn(t):null,null!==t){var l=ot(t);(t!==l||5!==t.tag&&6!==t.tag)&&(t=null)}}else i=null;if(i===t)return null;if("mouseout"===e||"mouseover"===e)var s=Kr,u=Zr.mouseLeave,c=Zr.mouseEnter,f="mouse";else"pointerout"!==e&&"pointerover"!==e||(s=Xr,u=Zr.pointerLeave,c=Zr.pointerEnter,f="pointer");if(e=null==i?o:Un(i),o=null==t?o:Un(t),u=s.getPooled(u,i,n,r),u.type=f+"leave",u.target=e,u.relatedTarget=o,n=s.getPooled(c,t,n,r),n.type=f+"enter",n.target=o,n.relatedTarget=e,r=i,f=t,r&&f)e:{for(s=r,c=f,i=0,e=s;e;e=qn(e))i++;for(e=0,t=c;t;t=qn(t))e++;for(;0<i-e;)s=qn(s),i--;for(;0<e-i;)c=qn(c),e--;for(;i--;){if(s===c||s===c.alternate)break e;s=qn(s),c=qn(c)}s=null}else s=null;for(c=s,s=[];r&&r!==c;){if(i=r.alternate,null!==i&&i===c)break;s.push(r),r=qn(r)}for(r=[];f&&f!==c;){if(i=f.alternate,null!==i&&i===c)break;r.push(f),f=qn(f)}for(f=0;f<s.length;f++)Kn(s[f],"bubbled",u);for(f=r.length;0<f--;)Kn(r[f],"captured",n);return 0===(64&a)?[u]:[u,n]}};function Qr(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t}var ea="function"===typeof Object.is?Object.is:Qr,ta=Object.prototype.hasOwnProperty;function na(e,t){if(ea(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!ta.call(t,n[r])||!ea(e[n[r]],t[n[r]]))return!1;return!0}var ra=S&&"documentMode"in document&&11>=document.documentMode,aa={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},oa=null,ia=null,la=null,sa=!1;function ua(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return sa||null==oa||oa!==bn(n)?null:(n=oa,"selectionStart"in n&&Tn(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),la&&na(la,n)?null:(la=n,e=ar.getPooled(aa.select,ia,e,t),e.type="select",e.target=oa,Zn(e),e))}var ca={eventTypes:aa,extractEvents:function(e,t,n,r,a,o){if(a=o||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument),!(o=!a)){e:{a=at(a),o=O.onSelect;for(var i=0;i<o.length;i++)if(!a.has(o[i])){a=!1;break e}a=!0}o=!a}if(o)return null;switch(a=t?Un(t):window,e){case"focus":(Er(a)||"true"===a.contentEditable)&&(oa=a,ia=t,la=null);break;case"blur":la=ia=oa=null;break;case"mousedown":sa=!0;break;case"contextmenu":case"mouseup":case"dragend":return sa=!1,ua(n,r);case"selectionchange":if(ra)break;case"keydown":case"keyup":return ua(n,r)}return null}},fa=ar.extend({animationName:null,elapsedTime:null,pseudoElement:null}),pa=ar.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),da=Vr.extend({relatedTarget:null});function ha(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,0===e&&13===t&&(e=13)):e=t,10===e&&(e=13),32<=e||13===e?e:0}var va={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ma={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ya=Vr.extend({key:function(e){if(e.key){var t=va[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?(e=ha(e),13===e?"Enter":String.fromCharCode(e)):"keydown"===e.type||"keyup"===e.type?ma[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Wr,charCode:function(e){return"keypress"===e.type?ha(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ha(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ga=Kr.extend({dataTransfer:null}),ba=Vr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Wr}),xa=ar.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),_a=Kr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),wa={eventTypes:$t,extractEvents:function(e,t,n,r){var a=Gt.get(e);if(!a)return null;switch(e){case"keypress":if(0===ha(n))return null;case"keydown":case"keyup":e=ya;break;case"blur":case"focus":e=da;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Kr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ga;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ba;break;case Je:case Qe:case et:e=fa;break;case tt:e=xa;break;case"scroll":e=Vr;break;case"wheel":e=_a;break;case"copy":case"cut":case"paste":e=pa;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Xr;break;default:e=ar}return t=e.getPooled(a,t,n,r),Zn(t),t}};if(b)throw Error(i(101));b=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),_();var ka=Hn;v=Wn,m=ka,y=Un,M({SimpleEventPlugin:wa,EnterLeaveEventPlugin:Jr,ChangeEventPlugin:Br,SelectEventPlugin:ca,BeforeInputEventPlugin:kr});var Ta=[],Ea=-1;function Oa(e){0>Ea||(e.current=Ta[Ea],Ta[Ea]=null,Ea--)}function Ma(e,t){Ea++,Ta[Ea]=e.current,e.current=t}var Sa={},Ca={current:Sa},Aa={current:!1},Pa=Sa;function La(e,t){var n=e.type.contextTypes;if(!n)return Sa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Da(e){return e=e.childContextTypes,null!==e&&void 0!==e}function ja(){Oa(Aa),Oa(Ca)}function Ia(e,t,n){if(Ca.current!==Sa)throw Error(i(168));Ma(Ca,t),Ma(Aa,n)}function Ra(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var o in r=r.getChildContext(),r)if(!(o in e))throw Error(i(108,_e(t)||"Unknown",o));return a({},n,{},r)}function za(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sa,Pa=Ca.current,Ma(Ca,e),Ma(Aa,Aa.current),!0}function Na(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=Ra(e,t,Pa),r.__reactInternalMemoizedMergedChildContext=e,Oa(Aa),Oa(Ca),Ma(Ca,e)):Oa(Aa),Ma(Aa,n)}var Fa=o.unstable_runWithPriority,Ba=o.unstable_scheduleCallback,Va=o.unstable_cancelCallback,Ha=o.unstable_requestPaint,Ua=o.unstable_now,Wa=o.unstable_getCurrentPriorityLevel,qa=o.unstable_ImmediatePriority,$a=o.unstable_UserBlockingPriority,Ga=o.unstable_NormalPriority,Ya=o.unstable_LowPriority,Ka=o.unstable_IdlePriority,Xa={},Za=o.unstable_shouldYield,Ja=void 0!==Ha?Ha:function(){},Qa=null,eo=null,to=!1,no=Ua(),ro=1e4>no?Ua:function(){return Ua()-no};function ao(){switch(Wa()){case qa:return 99;case $a:return 98;case Ga:return 97;case Ya:return 96;case Ka:return 95;default:throw Error(i(332))}}function oo(e){switch(e){case 99:return qa;case 98:return $a;case 97:return Ga;case 96:return Ya;case 95:return Ka;default:throw Error(i(332))}}function io(e,t){return e=oo(e),Fa(e,t)}function lo(e,t,n){return e=oo(e),Ba(e,t,n)}function so(e){return null===Qa?(Qa=[e],eo=Ba(qa,co)):Qa.push(e),Xa}function uo(){if(null!==eo){var e=eo;eo=null,Va(e)}co()}function co(){if(!to&&null!==Qa){to=!0;var e=0;try{var t=Qa;io(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Qa=null}catch(n){throw null!==Qa&&(Qa=Qa.slice(e+1)),Ba(qa,uo),n}finally{to=!1}}}function fo(e,t,n){return n/=10,1073741821-(1+((1073741821-e+t/10)/n|0))*n}function po(e,t){if(e&&e.defaultProps)for(var n in t=a({},t),e=e.defaultProps,e)void 0===t[n]&&(t[n]=e[n]);return t}var ho={current:null},vo=null,mo=null,yo=null;function go(){yo=mo=vo=null}function bo(e){var t=ho.current;Oa(ho),e.type._context._currentValue=t}function xo(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function _o(e,t){vo=e,yo=mo=null,e=e.dependencies,null!==e&&null!==e.firstContext&&(e.expirationTime>=t&&(Yi=!0),e.firstContext=null)}function wo(e,t){if(yo!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(yo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===mo){if(null===vo)throw Error(i(308));mo=t,vo.dependencies={expirationTime:0,firstContext:t,responders:null}}else mo=mo.next=t;return e._currentValue}var ko=!1;function To(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function Eo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function Oo(e,t){return e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null},e.next=e}function Mo(e,t){if(e=e.updateQueue,null!==e){e=e.shared;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function So(e,t){var n=e.alternate;null!==n&&Eo(n,e),e=e.updateQueue,n=e.baseQueue,null===n?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function Co(e,t,n,r){var o=e.updateQueue;ko=!1;var i=o.baseQueue,l=o.shared.pending;if(null!==l){if(null!==i){var s=i.next;i.next=l.next,l.next=s}i=l,o.shared.pending=null,s=e.alternate,null!==s&&(s=s.updateQueue,null!==s&&(s.baseQueue=l))}if(null!==i){s=i.next;var u=o.baseState,c=0,f=null,p=null,d=null;if(null!==s){var h=s;do{if(l=h.expirationTime,l<r){var v={expirationTime:h.expirationTime,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null};null===d?(p=d=v,f=u):d=d.next=v,l>c&&(c=l)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:h.suspenseConfig,tag:h.tag,payload:h.payload,callback:h.callback,next:null}),Rs(l,h.suspenseConfig);e:{var m=e,y=h;switch(l=t,v=n,y.tag){case 1:if(m=y.payload,"function"===typeof m){u=m.call(v,u,l);break e}u=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(m=y.payload,l="function"===typeof m?m.call(v,u,l):m,null===l||void 0===l)break e;u=a({},u,l);break e;case 2:ko=!0}}null!==h.callback&&(e.effectTag|=32,l=o.effects,null===l?o.effects=[h]:l.push(h))}if(h=h.next,null===h||h===s){if(l=o.shared.pending,null===l)break;h=i.next=l.next,l.next=s,o.baseQueue=i=l,o.shared.pending=null}}while(1)}null===d?f=u:d.next=p,o.baseState=f,o.baseQueue=d,zs(c),e.expirationTime=c,e.memoizedState=u}}function Ao(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=a,a=n,"function"!==typeof r)throw Error(i(191,r));r.call(a)}}}var Po=ee.ReactCurrentBatchConfig,Lo=(new r.Component).refs;function Do(e,t,n,r){t=e.memoizedState,n=n(r,t),n=null===n||void 0===n?t:a({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var jo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&ot(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ws(),a=Po.suspense;r=ks(r,e,a),a=Oo(r,a),a.payload=t,void 0!==n&&null!==n&&(a.callback=n),Mo(e,a),Ts(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ws(),a=Po.suspense;r=ks(r,e,a),a=Oo(r,a),a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),Mo(e,a),Ts(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ws(),r=Po.suspense;n=ks(n,e,r),r=Oo(n,r),r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Mo(e,r),Ts(e,n)}};function Io(e,t,n,r,a,o,i){return e=e.stateNode,"function"===typeof e.shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!na(n,r)||!na(a,o))}function Ro(e,t,n){var r=!1,a=Sa,o=t.contextType;return"object"===typeof o&&null!==o?o=wo(o):(a=Da(t)?Pa:Ca.current,r=t.contextTypes,o=(r=null!==r&&void 0!==r)?La(e,a):Sa),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=jo,e.stateNode=t,t._reactInternalFiber=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function zo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&jo.enqueueReplaceState(t,t.state,null)}function No(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Lo,To(e);var o=t.contextType;"object"===typeof o&&null!==o?a.context=wo(o):(o=Da(t)?Pa:Ca.current,a.context=La(e,o)),Co(e,n,a,r),a.state=e.memoizedState,o=t.getDerivedStateFromProps,"function"===typeof o&&(Do(e,t,o,n),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&jo.enqueueReplaceState(a,a.state,null),Co(e,n,a,r),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.effectTag|=4)}var Fo=Array.isArray;function Bo(e,t,n){if(e=n.ref,null!==e&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner,n){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=r.refs;t===Lo&&(t=r.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Vo(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Ho(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return e=ou(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,null!==r?(r=r.index,r<n?(t.effectTag=2,n):r):(t.effectTag=2,n)):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,r){return null===t||6!==t.tag?(t=su(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function u(e,t,n,r){return null!==t&&t.elementType===n.type?(r=a(t,n.props),r.ref=Bo(e,t,n),r.return=e,r):(r=iu(n.type,n.key,n.props,null,e.mode,r),r.ref=Bo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=uu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?(t=lu(n,e.mode,r,o),t.return=e,t):(t=a(t,n),t.return=e,t)}function p(e,t,n){if("string"===typeof t||"number"===typeof t)return t=su(""+t,e.mode,n),t.return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ae:return n=iu(t.type,t.key,t.props,null,e.mode,n),n.ref=Bo(e,null,t),n.return=e,n;case oe:return t=uu(t,e.mode,n),t.return=e,t}if(Fo(t)||be(t))return t=lu(t,e.mode,n,null),t.return=e,t;Vo(e,t)}return null}function d(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==a?null:s(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ae:return n.key===a?n.type===ie?f(e,t,n.props.children,r,a):u(e,t,n,r):null;case oe:return n.key===a?c(e,t,n,r):null}if(Fo(n)||be(n))return null!==a?null:f(e,t,n,r,null);Vo(e,n)}return null}function h(e,t,n,r,a){if("string"===typeof r||"number"===typeof r)return e=e.get(n)||null,s(t,e,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ae:return e=e.get(null===r.key?n:r.key)||null,r.type===ie?f(t,e,r.props.children,a,r.key):u(t,e,r,a);case oe:return e=e.get(null===r.key?n:r.key)||null,c(t,e,r,a)}if(Fo(r)||be(r))return e=e.get(n)||null,f(t,e,r,a,null);Vo(t,r)}return null}function v(a,i,l,s){for(var u=null,c=null,f=i,v=i=0,m=null;null!==f&&v<l.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var y=d(a,f,l[v],s);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(a,f),i=o(y,i,v),null===c?u=y:c.sibling=y,c=y,f=m}if(v===l.length)return n(a,f),u;if(null===f){for(;v<l.length;v++)f=p(a,l[v],s),null!==f&&(i=o(f,i,v),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(a,f);v<l.length;v++)m=h(f,a,v,l[v],s),null!==m&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),i=o(m,i,v),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(a,e)})),u}function m(a,l,s,u){var c=be(s);if("function"!==typeof c)throw Error(i(150));if(s=c.call(s),null==s)throw Error(i(151));for(var f=c=null,v=l,m=l=0,y=null,g=s.next();null!==v&&!g.done;m++,g=s.next()){v.index>m?(y=v,v=null):y=v.sibling;var b=d(a,v,g.value,u);if(null===b){null===v&&(v=y);break}e&&v&&null===b.alternate&&t(a,v),l=o(b,l,m),null===f?c=b:f.sibling=b,f=b,v=y}if(g.done)return n(a,v),c;if(null===v){for(;!g.done;m++,g=s.next())g=p(a,g.value,u),null!==g&&(l=o(g,l,m),null===f?c=g:f.sibling=g,f=g);return c}for(v=r(a,v);!g.done;m++,g=s.next())g=h(v,a,m,g.value,u),null!==g&&(e&&null!==g.alternate&&v.delete(null===g.key?m:g.key),l=o(g,l,m),null===f?c=g:f.sibling=g,f=g);return e&&v.forEach((function(e){return t(a,e)})),c}return function(e,r,o,s){var u="object"===typeof o&&null!==o&&o.type===ie&&null===o.key;u&&(o=o.props.children);var c="object"===typeof o&&null!==o;if(c)switch(o.$$typeof){case ae:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){switch(u.tag){case 7:if(o.type===ie){n(e,u.sibling),r=a(u,o.props.children),r.return=e,e=r;break e}break;default:if(u.elementType===o.type){n(e,u.sibling),r=a(u,o.props),r.ref=Bo(e,u,o),r.return=e,e=r;break e}}n(e,u);break}t(e,u),u=u.sibling}o.type===ie?(r=lu(o.props.children,e.mode,s,o.key),r.return=e,e=r):(s=iu(o.type,o.key,o.props,null,e.mode,s),s.ref=Bo(e,r,o),s.return=e,e=s)}return l(e);case oe:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),r=a(r,o.children||[]),r.return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}r=uu(o,e.mode,s),r.return=e,e=r}return l(e)}if("string"===typeof o||"number"===typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),r=a(r,o),r.return=e,e=r):(n(e,r),r=su(o,e.mode,s),r.return=e,e=r),l(e);if(Fo(o))return v(e,r,o,s);if(be(o))return m(e,r,o,s);if(c&&Vo(e,o),"undefined"===typeof o&&!u)switch(e.tag){case 1:case 0:throw e=e.type,Error(i(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Uo=Ho(!0),Wo=Ho(!1),qo={},$o={current:qo},Go={current:qo},Yo={current:qo};function Ko(e){if(e===qo)throw Error(i(174));return e}function Xo(e,t){switch(Ma(Yo,t),Ma(Go,e),Ma($o,qo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ue(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ue(t,e)}Oa($o),Ma($o,t)}function Zo(){Oa($o),Oa(Go),Oa(Yo)}function Jo(e){Ko(Yo.current);var t=Ko($o.current),n=Ue(t,e.type);t!==n&&(Ma(Go,e),Ma($o,n))}function Qo(e){Go.current===e&&(Oa($o),Oa(Go))}var ei={current:0};function ti(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(n=n.dehydrated,null===n||n.data===Mn||n.data===Sn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ni(e,t){return{responder:e,props:t}}var ri=ee.ReactCurrentDispatcher,ai=ee.ReactCurrentBatchConfig,oi=0,ii=null,li=null,si=null,ui=!1;function ci(){throw Error(i(321))}function fi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ea(e[n],t[n]))return!1;return!0}function pi(e,t,n,r,a,o){if(oi=o,ii=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,ri.current=null===e||null===e.memoizedState?Ii:Ri,e=n(r,a),t.expirationTime===oi){o=0;do{if(t.expirationTime=0,!(25>o))throw Error(i(301));o+=1,si=li=null,t.updateQueue=null,ri.current=zi,e=n(r,a)}while(t.expirationTime===oi)}if(ri.current=ji,t=null!==li&&null!==li.next,oi=0,si=li=ii=null,ui=!1,t)throw Error(i(300));return e}function di(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===si?ii.memoizedState=si=e:si=si.next=e,si}function hi(){if(null===li){var e=ii.alternate;e=null!==e?e.memoizedState:null}else e=li.next;var t=null===si?ii.memoizedState:si.next;if(null!==t)si=t,li=e;else{if(null===e)throw Error(i(310));li=e,e={memoizedState:li.memoizedState,baseState:li.baseState,baseQueue:li.baseQueue,queue:li.queue,next:null},null===si?ii.memoizedState=si=e:si=si.next=e}return si}function vi(e,t){return"function"===typeof t?t(e):t}function mi(e){var t=hi(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=li,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var l=a.next;a.next=o.next,o.next=l}r.baseQueue=a=o,n.pending=null}if(null!==a){a=a.next,r=r.baseState;var s=l=o=null,u=a;do{var c=u.expirationTime;if(c<oi){var f={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=f,o=r):s=s.next=f,c>ii.expirationTime&&(ii.expirationTime=c,zs(c))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),Rs(c,u.suspenseConfig),r=u.eagerReducer===e?u.eagerState:e(r,u.action);u=u.next}while(null!==u&&u!==a);null===s?o=r:s.next=l,ea(r,t.memoizedState)||(Yi=!0),t.memoizedState=r,t.baseState=o,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function yi(e){var t=hi(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var l=a=a.next;do{o=e(o,l.action),l=l.next}while(l!==a);ea(o,t.memoizedState)||(Yi=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function gi(e){var t=di();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:vi,lastRenderedState:e},e=e.dispatch=Di.bind(null,ii,e),[t.memoizedState,e]}function bi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ii.updateQueue,null===t?(t={lastEffect:null},ii.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,null===n?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function xi(){return hi().memoizedState}function _i(e,t,n,r){var a=di();ii.effectTag|=e,a.memoizedState=bi(1|t,n,void 0,void 0===r?null:r)}function wi(e,t,n,r){var a=hi();r=void 0===r?null:r;var o=void 0;if(null!==li){var i=li.memoizedState;if(o=i.destroy,null!==r&&fi(r,i.deps))return void bi(t,n,o,r)}ii.effectTag|=e,a.memoizedState=bi(1|t,n,o,r)}function ki(e,t){return _i(516,4,e,t)}function Ti(e,t){return wi(516,4,e,t)}function Ei(e,t){return wi(4,2,e,t)}function Oi(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Mi(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,wi(4,2,Oi.bind(null,t,e),n)}function Si(){}function Ci(e,t){return di().memoizedState=[e,void 0===t?null:t],e}function Ai(e,t){var n=hi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Pi(e,t){var n=hi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Li(e,t,n){var r=ao();io(98>r?98:r,(function(){e(!0)})),io(97<r?97:r,(function(){var r=ai.suspense;ai.suspense=void 0===t?null:t;try{e(!1),n()}finally{ai.suspense=r}}))}function Di(e,t,n){var r=ws(),a=Po.suspense;r=ks(r,e,a),a={expirationTime:r,suspenseConfig:a,action:n,eagerReducer:null,eagerState:null,next:null};var o=t.pending;if(null===o?a.next=a:(a.next=o.next,o.next=a),t.pending=a,o=e.alternate,e===ii||null!==o&&o===ii)ui=!0,a.expirationTime=oi,ii.expirationTime=oi;else{if(0===e.expirationTime&&(null===o||0===o.expirationTime)&&(o=t.lastRenderedReducer,null!==o))try{var i=t.lastRenderedState,l=o(i,n);if(a.eagerReducer=o,a.eagerState=l,ea(l,i))return}catch(s){}Ts(e,r)}}var ji={readContext:wo,useCallback:ci,useContext:ci,useEffect:ci,useImperativeHandle:ci,useLayoutEffect:ci,useMemo:ci,useReducer:ci,useRef:ci,useState:ci,useDebugValue:ci,useResponder:ci,useDeferredValue:ci,useTransition:ci},Ii={readContext:wo,useCallback:Ci,useContext:wo,useEffect:ki,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,_i(4,2,Oi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _i(4,2,e,t)},useMemo:function(e,t){var n=di();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=di();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=Di.bind(null,ii,e),[r.memoizedState,e]},useRef:function(e){var t=di();return e={current:e},t.memoizedState=e},useState:gi,useDebugValue:Si,useResponder:ni,useDeferredValue:function(e,t){var n=gi(e),r=n[0],a=n[1];return ki((function(){var n=ai.suspense;ai.suspense=void 0===t?null:t;try{a(e)}finally{ai.suspense=n}}),[e,t]),r},useTransition:function(e){var t=gi(!1),n=t[0];return t=t[1],[Ci(Li.bind(null,t,e),[t,e]),n]}},Ri={readContext:wo,useCallback:Ai,useContext:wo,useEffect:Ti,useImperativeHandle:Mi,useLayoutEffect:Ei,useMemo:Pi,useReducer:mi,useRef:xi,useState:function(){return mi(vi)},useDebugValue:Si,useResponder:ni,useDeferredValue:function(e,t){var n=mi(vi),r=n[0],a=n[1];return Ti((function(){var n=ai.suspense;ai.suspense=void 0===t?null:t;try{a(e)}finally{ai.suspense=n}}),[e,t]),r},useTransition:function(e){var t=mi(vi),n=t[0];return t=t[1],[Ai(Li.bind(null,t,e),[t,e]),n]}},zi={readContext:wo,useCallback:Ai,useContext:wo,useEffect:Ti,useImperativeHandle:Mi,useLayoutEffect:Ei,useMemo:Pi,useReducer:yi,useRef:xi,useState:function(){return yi(vi)},useDebugValue:Si,useResponder:ni,useDeferredValue:function(e,t){var n=yi(vi),r=n[0],a=n[1];return Ti((function(){var n=ai.suspense;ai.suspense=void 0===t?null:t;try{a(e)}finally{ai.suspense=n}}),[e,t]),r},useTransition:function(e){var t=yi(vi),n=t[0];return t=t[1],[Ai(Li.bind(null,t,e),[t,e]),n]}},Ni=null,Fi=null,Bi=!1;function Vi(e,t){var n=nu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Hi(e,t){switch(e.tag){case 5:var n=e.type;return t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,null!==t&&(e.stateNode=t,!0);case 6:return t=""===e.pendingProps||3!==t.nodeType?null:t,null!==t&&(e.stateNode=t,!0);case 13:return!1;default:return!1}}function Ui(e){if(Bi){var t=Fi;if(t){var n=t;if(!Hi(e,t)){if(t=In(n.nextSibling),!t||!Hi(e,t))return e.effectTag=-1025&e.effectTag|2,Bi=!1,void(Ni=e);Vi(Ni,n)}Ni=e,Fi=In(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Bi=!1,Ni=e}}function Wi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ni=e}function qi(e){if(e!==Ni)return!1;if(!Bi)return Wi(e),Bi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Ln(t,e.memoizedProps))for(t=Fi;t;)Vi(e,t),t=In(t.nextSibling);if(Wi(e),13===e.tag){if(e=e.memoizedState,e=null!==e?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if(n===On){if(0===t){Fi=In(e.nextSibling);break e}t--}else n!==En&&n!==Sn&&n!==Mn||t++}e=e.nextSibling}Fi=null}}else Fi=Ni?In(e.stateNode.nextSibling):null;return!0}function $i(){Fi=Ni=null,Bi=!1}var Gi=ee.ReactCurrentOwner,Yi=!1;function Ki(e,t,n,r){t.child=null===e?Wo(t,null,n,r):Uo(t,e.child,n,r)}function Xi(e,t,n,r,a){n=n.render;var o=t.ref;return _o(t,a),r=pi(e,t,n,r,o,a),null===e||Yi?(t.effectTag|=1,Ki(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),dl(e,t,a))}function Zi(e,t,n,r,a,o){if(null===e){var i=n.type;return"function"!==typeof i||ru(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?(e=iu(n.type,null,r,null,t.mode,o),e.ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ji(e,t,i,r,a,o))}return i=e.child,a<o&&(a=i.memoizedProps,n=n.compare,n=null!==n?n:na,n(a,r)&&e.ref===t.ref)?dl(e,t,o):(t.effectTag|=1,e=ou(i,r),e.ref=t.ref,e.return=t,t.child=e)}function Ji(e,t,n,r,a,o){return null!==e&&na(e.memoizedProps,r)&&e.ref===t.ref&&(Yi=!1,a<o)?(t.expirationTime=e.expirationTime,dl(e,t,o)):el(e,t,n,r,o)}function Qi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function el(e,t,n,r,a){var o=Da(n)?Pa:Ca.current;return o=La(t,o),_o(t,a),n=pi(e,t,n,r,o,a),null===e||Yi?(t.effectTag|=1,Ki(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=a&&(e.expirationTime=0),dl(e,t,a))}function tl(e,t,n,r,a){if(Da(n)){var o=!0;za(t)}else o=!1;if(_o(t,a),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Ro(t,n,r),No(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var s=i.context,u=n.contextType;"object"===typeof u&&null!==u?u=wo(u):(u=Da(n)?Pa:Ca.current,u=La(t,u));var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof i.getSnapshotBeforeUpdate;f||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(l!==r||s!==u)&&zo(t,i,r,u),ko=!1;var p=t.memoizedState;i.state=p,Co(t,r,i,a),s=t.memoizedState,l!==r||p!==s||Aa.current||ko?("function"===typeof c&&(Do(t,n,c,r),s=t.memoizedState),(l=ko||Io(t,n,l,r,p,s,u))?(f||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.effectTag|=4)):("function"===typeof i.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=s),i.props=r,i.state=s,i.context=u,r=l):("function"===typeof i.componentDidMount&&(t.effectTag|=4),r=!1)}else i=t.stateNode,Eo(e,t),l=t.memoizedProps,i.props=t.type===t.elementType?l:po(t.type,l),s=i.context,u=n.contextType,"object"===typeof u&&null!==u?u=wo(u):(u=Da(n)?Pa:Ca.current,u=La(t,u)),c=n.getDerivedStateFromProps,(f="function"===typeof c||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(l!==r||s!==u)&&zo(t,i,r,u),ko=!1,s=t.memoizedState,i.state=s,Co(t,r,i,a),p=t.memoizedState,l!==r||s!==p||Aa.current||ko?("function"===typeof c&&(Do(t,n,c,r),p=t.memoizedState),(c=ko||Io(t,n,l,r,s,p,u))?(f||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,u),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,u)),"function"===typeof i.componentDidUpdate&&(t.effectTag|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof i.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!==typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=u,r=c):("function"!==typeof i.componentDidUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!==typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),r=!1);return nl(e,t,n,r,o,a)}function nl(e,t,n,r,a,o){Qi(e,t);var i=0!==(64&t.effectTag);if(!r&&!i)return a&&Na(t,n,!1),dl(e,t,o);r=t.stateNode,Gi.current=t;var l=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&i?(t.child=Uo(t,e.child,null,o),t.child=Uo(t,null,l,o)):Ki(e,t,l,o),t.memoizedState=r.state,a&&Na(t,n,!0),t.child}function rl(e){var t=e.stateNode;t.pendingContext?Ia(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ia(e,t.context,!1),Xo(e,t.containerInfo)}var al,ol,il,ll,sl={dehydrated:null,retryTime:0};function ul(e,t,n){var r,a=t.mode,o=t.pendingProps,i=ei.current,l=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&i)&&(null===e||null!==e.memoizedState)),r?(l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),Ma(ei,1&i),null===e){if(void 0!==o.fallback&&Ui(t),l){if(l=o.fallback,o=lu(null,a,0,null),o.return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return n=lu(l,a,n,null),n.return=t,o.sibling=n,t.memoizedState=sl,t.child=o,n}return a=o.children,t.memoizedState=null,t.child=Wo(t,null,a,n)}if(null!==e.memoizedState){if(e=e.child,a=e.sibling,l){if(o=o.fallback,n=ou(e,e.pendingProps),n.return=t,0===(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child,l!==e.child))for(n.child=l;null!==l;)l.return=n,l=l.sibling;return a=ou(a,o),a.return=t,n.sibling=a,n.childExpirationTime=0,t.memoizedState=sl,t.child=n,a}return n=Uo(t,e.child,o.children,n),t.memoizedState=null,t.child=n}if(e=e.child,l){if(l=o.fallback,o=lu(null,a,0,null),o.return=t,o.child=e,null!==e&&(e.return=o),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,o.child=e;null!==e;)e.return=o,e=e.sibling;return n=lu(l,a,n,null),n.return=t,o.sibling=n,n.effectTag|=2,o.childExpirationTime=0,t.memoizedState=sl,t.child=o,n}return t.memoizedState=null,t.child=Uo(t,e,o.children,n)}function cl(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),xo(e.return,t)}function fl(e,t,n,r,a,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:a,lastEffect:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailExpiration=0,i.tailMode=a,i.lastEffect=o)}function pl(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(Ki(e,t,r.children,n),r=ei.current,0!==(2&r))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&cl(e,n);else if(19===e.tag)cl(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Ma(ei,r),0===(2&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)e=n.alternate,null!==e&&null===ti(e)&&(a=n),n=n.sibling;n=a,null===n?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),fl(t,!1,a,n,o,t.lastEffect);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(e=a.alternate,null!==e&&null===ti(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}fl(t,!0,n,null,o,t.lastEffect);break;case"together":fl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function dl(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&zs(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(e=t.child,n=ou(e,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,n=n.sibling=ou(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function hl(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function vl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Da(t.type)&&ja(),null;case 3:return Zo(),Oa(Aa),Oa(Ca),n=t.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!qi(t)||(t.effectTag|=4),ol(t),null;case 5:Qo(t),n=Ko(Yo.current);var o=t.type;if(null!==e&&null!=t.stateNode)il(e,t,o,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(i(166));return null}if(e=Ko($o.current),qi(t)){r=t.stateNode,o=t.type;var l=t.memoizedProps;switch(r[Nn]=t,r[Fn]=l,o){case"iframe":case"object":case"embed":nn("load",r);break;case"video":case"audio":for(e=0;e<nt.length;e++)nn(nt[e],r);break;case"source":nn("error",r);break;case"img":case"image":case"link":nn("error",r),nn("load",r);break;case"form":nn("reset",r),nn("submit",r);break;case"details":nn("toggle",r);break;case"input":Ce(r,l),nn("invalid",r),yn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!l.multiple},nn("invalid",r),yn(n,"onChange");break;case"textarea":Ne(r,l),nn("invalid",r),yn(n,"onChange")}for(var s in hn(o,l),e=null,l)if(l.hasOwnProperty(s)){var u=l[s];"children"===s?"string"===typeof u?r.textContent!==u&&(e=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(e=["children",""+u]):E.hasOwnProperty(s)&&null!=u&&yn(n,s)}switch(o){case"input":Oe(r),Le(r,l,!0);break;case"textarea":Oe(r),Be(r);break;case"select":case"option":break;default:"function"===typeof l.onClick&&(r.onclick=gn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(s=9===n.nodeType?n:n.ownerDocument,e===mn&&(e=He(o)),e===mn?"script"===o?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=s.createElement(o,{is:r.is}):(e=s.createElement(o),"select"===o&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,o),e[Nn]=t,e[Fn]=r,al(e,t,!1,!1),t.stateNode=e,s=vn(o,r),o){case"iframe":case"object":case"embed":nn("load",e),u=r;break;case"video":case"audio":for(u=0;u<nt.length;u++)nn(nt[u],e);u=r;break;case"source":nn("error",e),u=r;break;case"img":case"image":case"link":nn("error",e),nn("load",e),u=r;break;case"form":nn("reset",e),nn("submit",e),u=r;break;case"details":nn("toggle",e),u=r;break;case"input":Ce(e,r),u=Se(e,r),nn("invalid",e),yn(n,"onChange");break;case"option":u=Ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},u=a({},r,{value:void 0}),nn("invalid",e),yn(n,"onChange");break;case"textarea":Ne(e,r),u=ze(e,r),nn("invalid",e),yn(n,"onChange");break;default:u=r}hn(o,u);var c=u;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?pn(e,f):"dangerouslySetInnerHTML"===l?(f=f?f.__html:void 0,null!=f&&qe(e,f)):"children"===l?"string"===typeof f?("textarea"!==o||""!==f)&&$e(e,f):"number"===typeof f&&$e(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(E.hasOwnProperty(l)?null!=f&&yn(n,l):null!=f&&te(e,l,f,s))}switch(o){case"input":Oe(e),Le(e,r,!1);break;case"textarea":Oe(e),Be(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ke(r.value));break;case"select":e.multiple=!!r.multiple,n=r.value,null!=n?Re(e,!!r.multiple,n,!1):null!=r.defaultValue&&Re(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof u.onClick&&(e.onclick=gn)}Pn(o,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)ll(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));n=Ko(Yo.current),Ko($o.current),qi(t)?(n=t.stateNode,r=t.memoizedProps,n[Nn]=t,n.nodeValue!==r&&(t.effectTag|=4)):(n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r),n[Nn]=t,t.stateNode=n)}return null;case 13:return Oa(ei),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&qi(t):(o=e.memoizedState,r=null!==o,n||null===o||(o=e.child.sibling,null!==o&&(l=t.firstEffect,null!==l?(t.firstEffect=o,o.nextEffect=l):(t.firstEffect=t.lastEffect=o,o.nextEffect=null),o.effectTag=8))),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&ei.current)?ns===$l&&(ns=Kl):(ns!==$l&&ns!==Kl||(ns=Xl),0!==ls&&null!==Ql&&(pu(Ql,ts),du(Ql,ls)))),(n||r)&&(t.effectTag|=4),null);case 4:return Zo(),ol(t),null;case 10:return bo(t),null;case 17:return Da(t.type)&&ja(),null;case 19:if(Oa(ei),r=t.memoizedState,null===r)return null;if(o=0!==(64&t.effectTag),l=r.rendering,null===l){if(o)hl(r,!1);else if(ns!==$l||null!==e&&0!==(64&e.effectTag))for(l=t.child;null!==l;){if(e=ti(l),null!==e){for(t.effectTag|=64,hl(r,!1),o=e.updateQueue,null!==o&&(t.updateQueue=o,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)o=r,l=n,o.effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,e=o.alternate,null===e?(o.childExpirationTime=0,o.expirationTime=l,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=e.childExpirationTime,o.expirationTime=e.expirationTime,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,l=e.dependencies,o.dependencies=null===l?null:{expirationTime:l.expirationTime,firstContext:l.firstContext,responders:l.responders}),r=r.sibling;return Ma(ei,1&ei.current|2),t.child}l=l.sibling}}else{if(!o)if(e=ti(l),null!==e){if(t.effectTag|=64,o=!0,n=e.updateQueue,null!==n&&(t.updateQueue=n,t.effectTag|=4),hl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate)return t=t.lastEffect=r.lastEffect,null!==t&&(t.nextEffect=null),null}else 2*ro()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,o=!0,hl(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(l.sibling=t.child,t.child=l):(n=r.last,null!==n?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=ro()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ro(),n.sibling=null,t=ei.current,Ma(ei,o?1&t|2:1&t),n):null}throw Error(i(156,t.tag))}function ml(e){switch(e.tag){case 1:Da(e.type)&&ja();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Zo(),Oa(Aa),Oa(Ca),t=e.effectTag,0!==(64&t))throw Error(i(285));return e.effectTag=-4097&t|64,e;case 5:return Qo(e),null;case 13:return Oa(ei),t=e.effectTag,4096&t?(e.effectTag=-4097&t|64,e):null;case 19:return Oa(ei),null;case 4:return Zo(),null;case 10:return bo(e),null;default:return null}}function yl(e,t){return{value:e,source:t,stack:we(t)}}al=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},ol=function(){},il=function(e,t,n,r,o){var i=e.memoizedProps;if(i!==r){var l,s,u=t.stateNode;switch(Ko($o.current),e=null,n){case"input":i=Se(u,i),r=Se(u,r),e=[];break;case"option":i=Ie(u,i),r=Ie(u,r),e=[];break;case"select":i=a({},i,{value:void 0}),r=a({},r,{value:void 0}),e=[];break;case"textarea":i=ze(u,i),r=ze(u,r),e=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(u.onclick=gn)}for(l in hn(n,r),n=null,i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if("style"===l)for(s in u=i[l],u)u.hasOwnProperty(s)&&(n||(n={}),n[s]="");else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(E.hasOwnProperty(l)?e||(e=[]):(e=e||[]).push(l,null));for(l in r){var c=r[l];if(u=null!=i?i[l]:void 0,r.hasOwnProperty(l)&&c!==u&&(null!=c||null!=u))if("style"===l)if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(e||(e=[]),e.push(l,n)),n=c;else"dangerouslySetInnerHTML"===l?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(l,c)):"children"===l?u===c||"string"!==typeof c&&"number"!==typeof c||(e=e||[]).push(l,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(E.hasOwnProperty(l)?(null!=c&&yn(o,l),e||u===c||(e=[])):(e=e||[]).push(l,c))}n&&(e=e||[]).push("style",n),o=e,(t.updateQueue=o)&&(t.effectTag|=4)}},ll=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var gl="function"===typeof WeakSet?WeakSet:Set;function bl(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=we(n)),null!==n&&_e(n.type),t=t.value,null!==e&&1===e.tag&&_e(e.type);try{console.error(t)}catch(a){setTimeout((function(){throw a}))}}function xl(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){Ks(e,n)}}function _l(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Ks(e,n)}else t.current=null}function wl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:po(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(i(163))}function kl(e,t){if(t=t.updateQueue,t=null!==t?t.lastEffect:null,null!==t){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function Tl(e,t){if(t=t.updateQueue,t=null!==t?t.lastEffect:null,null!==t){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function El(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void Tl(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:po(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return t=n.updateQueue,void(null!==t&&Ao(n,t,e));case 3:if(t=n.updateQueue,null!==t){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Ao(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&Pn(n.type,n.memoizedProps)&&e.focus());case 6:return;case 4:return;case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&qt(n)))));case 19:case 17:case 20:case 21:return}throw Error(i(163))}function Ol(e,t,n){switch("function"===typeof Qs&&Qs(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,null!==e&&(e=e.lastEffect,null!==e)){var r=e.next;io(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var a=t;try{n()}catch(o){Ks(a,o)}}e=e.next}while(e!==r)}))}break;case 1:_l(t),n=t.stateNode,"function"===typeof n.componentWillUnmount&&xl(t,n);break;case 5:_l(t);break;case 4:Ll(e,t,n)}}function Ml(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&Ml(t)}function Sl(e){return 5===e.tag||3===e.tag||4===e.tag}function Cl(e){e:{for(var t=e.return;null!==t;){if(Sl(t)){var n=t;break e}t=t.return}throw Error(i(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.effectTag&&($e(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Sl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?Al(e,n,t):Pl(e,n,t)}function Al(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,null!==n&&void 0!==n||null!==t.onclick||(t.onclick=gn));else if(4!==r&&(e=e.child,null!==e))for(Al(e,t,n),e=e.sibling;null!==e;)Al(e,t,n),e=e.sibling}function Pl(e,t,n){var r=e.tag,a=5===r||6===r;if(a)e=a?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(e=e.child,null!==e))for(Pl(e,t,n),e=e.sibling;null!==e;)Pl(e,t,n),e=e.sibling}function Ll(e,t,n){for(var r,a,o=t,l=!1;;){if(!l){l=o.return;e:for(;;){if(null===l)throw Error(i(160));switch(r=l.stateNode,l.tag){case 5:a=!1;break e;case 3:r=r.containerInfo,a=!0;break e;case 4:r=r.containerInfo,a=!0;break e}l=l.return}l=!0}if(5===o.tag||6===o.tag){e:for(var s=e,u=o,c=n,f=u;;)if(Ol(s,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===u)break e;for(;null===f.sibling;){if(null===f.return||f.return===u)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a?(s=r,u=o.stateNode,8===s.nodeType?s.parentNode.removeChild(u):s.removeChild(u)):r.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,a=!0,o.child.return=o,o=o.child;continue}}else if(Ol(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return,4===o.tag&&(l=!1)}o.sibling.return=o.return,o=o.sibling}}function Dl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void kl(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,a=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for(n[Fn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ae(n,r),vn(e,a),t=vn(e,r),a=0;a<o.length;a+=2){var l=o[a],s=o[a+1];"style"===l?pn(n,s):"dangerouslySetInnerHTML"===l?qe(n,s):"children"===l?$e(n,s):te(n,l,s,t)}switch(e){case"input":Pe(n,r);break;case"textarea":Fe(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,e=r.value,null!=e?Re(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Re(n,!!r.multiple,r.defaultValue,!0):Re(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return t=t.stateNode,void(t.hydrate&&(t.hydrate=!1,qt(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,us=ro()),null!==n)e:for(e=n;;){if(5===e.tag)o=e.stateNode,r?(o=o.style,"function"===typeof o.setProperty?o.setProperty("display","none","important"):o.display="none"):(o=e.stateNode,a=e.memoizedProps.style,a=void 0!==a&&null!==a&&a.hasOwnProperty("display")?a.display:null,o.style.display=fn("display",a));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){o=e.child.sibling,o.return=e,e=o;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void jl(t);case 19:return void jl(t);case 17:return}throw Error(i(163))}function jl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new gl),t.forEach((function(t){var r=Zs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var Il="function"===typeof WeakMap?WeakMap:Map;function Rl(e,t,n){n=Oo(n,null),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ps||(ps=!0,ds=r),bl(e,t)},n}function zl(e,t,n){n=Oo(n,null),n.tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return bl(e,t),r(a)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===hs?hs=new Set([this]):hs.add(this),bl(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Nl,Fl=Math.ceil,Bl=ee.ReactCurrentDispatcher,Vl=ee.ReactCurrentOwner,Hl=0,Ul=8,Wl=16,ql=32,$l=0,Gl=1,Yl=2,Kl=3,Xl=4,Zl=5,Jl=Hl,Ql=null,es=null,ts=0,ns=$l,rs=null,as=1073741823,os=1073741823,is=null,ls=0,ss=!1,us=0,cs=500,fs=null,ps=!1,ds=null,hs=null,vs=!1,ms=null,ys=90,gs=null,bs=0,xs=null,_s=0;function ws(){return(Jl&(Wl|ql))!==Hl?1073741821-(ro()/10|0):0!==_s?_s:_s=1073741821-(ro()/10|0)}function ks(e,t,n){if(t=t.mode,0===(2&t))return 1073741823;var r=ao();if(0===(4&t))return 99===r?1073741823:1073741822;if((Jl&Wl)!==Hl)return ts;if(null!==n)e=fo(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=fo(e,150,100);break;case 97:case 96:e=fo(e,5e3,250);break;case 95:e=2;break;default:throw Error(i(326))}return null!==Ql&&e===ts&&--e,e}function Ts(e,t){if(50<bs)throw bs=0,xs=null,Error(i(185));if(e=Es(e,t),null!==e){var n=ao();1073741823===t?(Jl&Ul)!==Hl&&(Jl&(Wl|ql))===Hl?Cs(e):(Ms(e),Jl===Hl&&uo()):Ms(e),(4&Jl)===Hl||98!==n&&99!==n||(null===gs?gs=new Map([[e,t]]):(n=gs.get(e),(void 0===n||n>t)&&gs.set(e,t)))}}function Es(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,a=null;if(null===r&&3===e.tag)a=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){a=r.stateNode;break}r=r.return}return null!==a&&(Ql===a&&(zs(t),ns===Xl&&pu(a,ts)),du(a,t)),a}function Os(e){var t=e.lastExpiredTime;if(0!==t)return t;if(t=e.firstPendingTime,!fu(e,t))return t;var n=e.lastPingedTime;return e=e.nextKnownPendingLevel,e=n>e?n:e,2>=e&&t!==e?0:e}function Ms(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=so(Cs.bind(null,e));else{var t=Os(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=ws();if(1073741823===t?r=99:1===t||2===t?r=95:(r=10*(1073741821-t)-10*(1073741821-r),r=0>=r?99:250>=r?98:5250>=r?97:95),null!==n){var a=e.callbackPriority;if(e.callbackExpirationTime===t&&a>=r)return;n!==Xa&&Va(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?so(Cs.bind(null,e)):lo(r,Ss.bind(null,e),{timeout:10*(1073741821-t)-ro()}),e.callbackNode=t}}}function Ss(e,t){if(_s=0,t)return t=ws(),hu(e,t),Ms(e),null;var n=Os(e);if(0!==n){if(t=e.callbackNode,(Jl&(Wl|ql))!==Hl)throw Error(i(327));if($s(),e===Ql&&n===ts||Ds(e,n),null!==es){var r=Jl;Jl|=Wl;var a=Is();do{try{Fs();break}catch(s){js(e,s)}}while(1);if(go(),Jl=r,Bl.current=a,ns===Gl)throw t=rs,Ds(e,n),pu(e,n),Ms(e),t;if(null===es)switch(a=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=ns,Ql=null,r){case $l:case Gl:throw Error(i(345));case Yl:hu(e,2<n?2:n);break;case Kl:if(pu(e,n),r=e.lastSuspendedTime,n===r&&(e.nextKnownPendingLevel=Hs(a)),1073741823===as&&(a=us+cs-ro(),10<a)){if(ss){var o=e.lastPingedTime;if(0===o||o>=n){e.lastPingedTime=n,Ds(e,n);break}}if(o=Os(e),0!==o&&o!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Dn(Us.bind(null,e),a);break}Us(e);break;case Xl:if(pu(e,n),r=e.lastSuspendedTime,n===r&&(e.nextKnownPendingLevel=Hs(a)),ss&&(a=e.lastPingedTime,0===a||a>=n)){e.lastPingedTime=n,Ds(e,n);break}if(a=Os(e),0!==a&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==os?r=10*(1073741821-os)-ro():1073741823===as?r=0:(r=10*(1073741821-as)-5e3,a=ro(),n=10*(1073741821-n)-a,r=a-r,0>r&&(r=0),r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Fl(r/1960))-r,n<r&&(r=n)),10<r){e.timeoutHandle=Dn(Us.bind(null,e),r);break}Us(e);break;case Zl:if(1073741823!==as&&null!==is){o=as;var l=is;if(r=0|l.busyMinDurationMs,0>=r?r=0:(a=0|l.busyDelayMs,o=ro()-(10*(1073741821-o)-(0|l.timeoutMs||5e3)),r=o<=a?0:a+r-o),10<r){pu(e,n),e.timeoutHandle=Dn(Us.bind(null,e),r);break}}Us(e);break;default:throw Error(i(329))}if(Ms(e),e.callbackNode===t)return Ss.bind(null,e)}}return null}function Cs(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,(Jl&(Wl|ql))!==Hl)throw Error(i(327));if($s(),e===Ql&&t===ts||Ds(e,t),null!==es){var n=Jl;Jl|=Wl;var r=Is();do{try{Ns();break}catch(a){js(e,a)}}while(1);if(go(),Jl=n,Bl.current=r,ns===Gl)throw n=rs,Ds(e,t),pu(e,t),Ms(e),n;if(null!==es)throw Error(i(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Ql=null,Us(e),Ms(e)}return null}function As(){if(null!==gs){var e=gs;gs=null,e.forEach((function(e,t){hu(t,e),Ms(t)})),uo()}}function Ps(e,t){var n=Jl;Jl|=1;try{return e(t)}finally{Jl=n,Jl===Hl&&uo()}}function Ls(e,t){var n=Jl;Jl&=-2,Jl|=Ul;try{return e(t)}finally{Jl=n,Jl===Hl&&uo()}}function Ds(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,jn(n)),null!==es)for(n=es.return;null!==n;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,null!==r&&void 0!==r&&ja();break;case 3:Zo(),Oa(Aa),Oa(Ca);break;case 5:Qo(r);break;case 4:Zo();break;case 13:Oa(ei);break;case 19:Oa(ei);break;case 10:bo(r)}n=n.return}Ql=e,es=ou(e.current,null),ts=t,ns=$l,rs=null,os=as=1073741823,is=null,ls=0,ss=!1}function js(e,t){do{try{if(go(),ri.current=ji,ui)for(var n=ii.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(oi=0,si=li=ii=null,ui=!1,null===es||null===es.return)return ns=Gl,rs=t,es=null;e:{var a=e,o=es.return,i=es,l=t;if(t=ts,i.effectTag|=2048,i.firstEffect=i.lastEffect=null,null!==l&&"object"===typeof l&&"function"===typeof l.then){var s=l;if(0===(2&i.mode)){var u=i.alternate;u?(i.updateQueue=u.updateQueue,i.memoizedState=u.memoizedState,i.expirationTime=u.expirationTime):(i.updateQueue=null,i.memoizedState=null)}var c=0!==(1&ei.current),f=o;do{var p;if(p=13===f.tag){var d=f.memoizedState;if(null!==d)p=null!==d.dehydrated;else{var h=f.memoizedProps;p=void 0!==h.fallback&&(!0!==h.unstable_avoidThisFallback||!c)}}if(p){var v=f.updateQueue;if(null===v){var m=new Set;m.add(s),f.updateQueue=m}else v.add(s);if(0===(2&f.mode)){if(f.effectTag|=64,i.effectTag&=-2981,1===i.tag)if(null===i.alternate)i.tag=17;else{var y=Oo(1073741823,null);y.tag=2,Mo(i,y)}i.expirationTime=1073741823;break e}l=void 0,i=t;var g=a.pingCache;if(null===g?(g=a.pingCache=new Il,l=new Set,g.set(s,l)):(l=g.get(s),void 0===l&&(l=new Set,g.set(s,l))),!l.has(i)){l.add(i);var b=Xs.bind(null,a,s,i);s.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);l=Error((_e(i.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+we(i))}ns!==Zl&&(ns=Yl),l=yl(l,i),f=o;do{switch(f.tag){case 3:s=l,f.effectTag|=4096,f.expirationTime=t;var x=Rl(f,s,t);So(f,x);break e;case 1:s=l;var _=f.type,w=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof _.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===hs||!hs.has(w)))){f.effectTag|=4096,f.expirationTime=t;var k=zl(f,s,t);So(f,k);break e}}f=f.return}while(null!==f)}es=Vs(es)}catch(T){t=T;continue}break}while(1)}function Is(){var e=Bl.current;return Bl.current=ji,null===e?ji:e}function Rs(e,t){e<as&&2<e&&(as=e),null!==t&&e<os&&2<e&&(os=e,is=t)}function zs(e){e>ls&&(ls=e)}function Ns(){for(;null!==es;)es=Bs(es)}function Fs(){for(;null!==es&&!Za();)es=Bs(es)}function Bs(e){var t=Nl(e.alternate,e,ts);return e.memoizedProps=e.pendingProps,null===t&&(t=Vs(e)),Vl.current=null,t}function Vs(e){es=e;do{var t=es.alternate;if(e=es.return,0===(2048&es.effectTag)){if(t=vl(t,es,ts),1===ts||1!==es.childExpirationTime){for(var n=0,r=es.child;null!==r;){var a=r.expirationTime,o=r.childExpirationTime;a>n&&(n=a),o>n&&(n=o),r=r.sibling}es.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=es.firstEffect),null!==es.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=es.firstEffect),e.lastEffect=es.lastEffect),1<es.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=es:e.firstEffect=es,e.lastEffect=es))}else{if(t=ml(es),null!==t)return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(t=es.sibling,null!==t)return t;es=e}while(null!==es);return ns===$l&&(ns=Zl),null}function Hs(e){var t=e.expirationTime;return e=e.childExpirationTime,t>e?t:e}function Us(e){var t=ao();return io(99,Ws.bind(null,e,t)),null}function Ws(e,t){do{$s()}while(null!==ms);if((Jl&(Wl|ql))!==Hl)throw Error(i(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var a=Hs(n);if(e.firstPendingTime=a,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Ql&&(es=Ql=null,ts=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,a=n.firstEffect):a=n:a=n.firstEffect,null!==a){var o=Jl;Jl|=ql,Vl.current=null,Cn=tn;var l=kn();if(Tn(l)){if("selectionStart"in l)var s={start:l.selectionStart,end:l.selectionEnd};else e:{s=(s=l.ownerDocument)&&s.defaultView||window;var u=s.getSelection&&s.getSelection();if(u&&0!==u.rangeCount){s=u.anchorNode;var c=u.anchorOffset,f=u.focusNode;u=u.focusOffset;try{s.nodeType,f.nodeType}catch(O){s=null;break e}var p=0,d=-1,h=-1,v=0,m=0,y=l,g=null;t:for(;;){for(var b;;){if(y!==s||0!==c&&3!==y.nodeType||(d=p+c),y!==f||0!==u&&3!==y.nodeType||(h=p+u),3===y.nodeType&&(p+=y.nodeValue.length),null===(b=y.firstChild))break;g=y,y=b}for(;;){if(y===l)break t;if(g===s&&++v===c&&(d=p),g===f&&++m===u&&(h=p),null!==(b=y.nextSibling))break;y=g,g=y.parentNode}y=b}s=-1===d||-1===h?null:{start:d,end:h}}else s=null}s=s||{start:0,end:0}}else s=null;An={activeElementDetached:null,focusedElem:l,selectionRange:s},tn=!1,fs=a;do{try{qs()}catch(O){if(null===fs)throw Error(i(330));Ks(fs,O),fs=fs.nextEffect}}while(null!==fs);fs=a;do{try{for(l=e,s=t;null!==fs;){var x=fs.effectTag;if(16&x&&$e(fs.stateNode,""),128&x){var _=fs.alternate;if(null!==_){var w=_.ref;null!==w&&("function"===typeof w?w(null):w.current=null)}}switch(1038&x){case 2:Cl(fs),fs.effectTag&=-3;break;case 6:Cl(fs),fs.effectTag&=-3,Dl(fs.alternate,fs);break;case 1024:fs.effectTag&=-1025;break;case 1028:fs.effectTag&=-1025,Dl(fs.alternate,fs);break;case 4:Dl(fs.alternate,fs);break;case 8:c=fs,Ll(l,c,s),Ml(c)}fs=fs.nextEffect}}catch(O){if(null===fs)throw Error(i(330));Ks(fs,O),fs=fs.nextEffect}}while(null!==fs);if(w=An,_=kn(),x=w.focusedElem,s=w.selectionRange,_!==x&&x&&x.ownerDocument&&wn(x.ownerDocument.documentElement,x)){null!==s&&Tn(x)&&(_=s.start,w=s.end,void 0===w&&(w=_),"selectionStart"in x?(x.selectionStart=_,x.selectionEnd=Math.min(w,x.value.length)):(w=(_=x.ownerDocument||document)&&_.defaultView||window,w.getSelection&&(w=w.getSelection(),c=x.textContent.length,l=Math.min(s.start,c),s=void 0===s.end?l:Math.min(s.end,c),!w.extend&&l>s&&(c=s,s=l,l=c),c=_n(x,l),f=_n(x,s),c&&f&&(1!==w.rangeCount||w.anchorNode!==c.node||w.anchorOffset!==c.offset||w.focusNode!==f.node||w.focusOffset!==f.offset)&&(_=_.createRange(),_.setStart(c.node,c.offset),w.removeAllRanges(),l>s?(w.addRange(_),w.extend(f.node,f.offset)):(_.setEnd(f.node,f.offset),w.addRange(_)))))),_=[];for(w=x;w=w.parentNode;)1===w.nodeType&&_.push({element:w,left:w.scrollLeft,top:w.scrollTop});for("function"===typeof x.focus&&x.focus(),x=0;x<_.length;x++)w=_[x],w.element.scrollLeft=w.left,w.element.scrollTop=w.top}tn=!!Cn,An=Cn=null,e.current=n,fs=a;do{try{for(x=e;null!==fs;){var k=fs.effectTag;if(36&k&&El(x,fs.alternate,fs),128&k){_=void 0;var T=fs.ref;if(null!==T){var E=fs.stateNode;switch(fs.tag){case 5:_=E;break;default:_=E}"function"===typeof T?T(_):T.current=_}}fs=fs.nextEffect}}catch(O){if(null===fs)throw Error(i(330));Ks(fs,O),fs=fs.nextEffect}}while(null!==fs);fs=null,Ja(),Jl=o}else e.current=n;if(vs)vs=!1,ms=e,ys=t;else for(fs=a;null!==fs;)t=fs.nextEffect,fs.nextEffect=null,fs=t;if(t=e.firstPendingTime,0===t&&(hs=null),1073741823===t?e===xs?bs++:(bs=0,xs=e):bs=0,"function"===typeof Js&&Js(n.stateNode,r),Ms(e),ps)throw ps=!1,e=ds,ds=null,e;return(Jl&Ul)!==Hl||uo(),null}function qs(){for(;null!==fs;){var e=fs.effectTag;0!==(256&e)&&wl(fs.alternate,fs),0===(512&e)||vs||(vs=!0,lo(97,(function(){return $s(),null}))),fs=fs.nextEffect}}function $s(){if(90!==ys){var e=97<ys?97:ys;return ys=90,io(e,Gs)}}function Gs(){if(null===ms)return!1;var e=ms;if(ms=null,(Jl&(Wl|ql))!==Hl)throw Error(i(331));var t=Jl;for(Jl|=ql,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:kl(5,n),Tl(5,n)}}catch(r){if(null===e)throw Error(i(330));Ks(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return Jl=t,uo(),!0}function Ys(e,t,n){t=yl(n,t),t=Rl(e,t,1073741823),Mo(e,t),e=Es(e,1073741823),null!==e&&Ms(e)}function Ks(e,t){if(3===e.tag)Ys(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Ys(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===hs||!hs.has(r))){e=yl(t,e),e=zl(n,e,1073741823),Mo(n,e),n=Es(n,1073741823),null!==n&&Ms(n);break}}n=n.return}}function Xs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Ql===e&&ts===n?ns===Xl||ns===Kl&&1073741823===as&&ro()-us<cs?Ds(e,ts):ss=!0:fu(e,n)&&(t=e.lastPingedTime,0!==t&&t<n||(e.lastPingedTime=n,Ms(e)))}function Zs(e,t){var n=e.stateNode;null!==n&&n.delete(t),t=0,0===t&&(t=ws(),t=ks(t,e,null)),e=Es(e,t),null!==e&&Ms(e)}Nl=function(e,t,n){var r=t.expirationTime;if(null!==e){var a=t.pendingProps;if(e.memoizedProps!==a||Aa.current)Yi=!0;else{if(r<n){switch(Yi=!1,t.tag){case 3:rl(t),$i();break;case 5:if(Jo(t),4&t.mode&&1!==n&&a.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Da(t.type)&&za(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,a=t.type._context,Ma(ho,a._currentValue),a._currentValue=r;break;case 13:if(null!==t.memoizedState)return r=t.child.childExpirationTime,0!==r&&r>=n?ul(e,t,n):(Ma(ei,1&ei.current),t=dl(e,t,n),null!==t?t.sibling:null);Ma(ei,1&ei.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return pl(e,t,n);t.effectTag|=64}if(a=t.memoizedState,null!==a&&(a.rendering=null,a.tail=null),Ma(ei,ei.current),!r)return null}return dl(e,t,n)}Yi=!1}}else Yi=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,a=La(t,Ca.current),_o(t,n),a=pi(null,t,r,e,a,n),t.effectTag|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Da(r)){var o=!0;za(t)}else o=!1;t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,To(t);var l=r.getDerivedStateFromProps;"function"===typeof l&&Do(t,r,l,e),a.updater=jo,t.stateNode=a,a._reactInternalFiber=t,No(t,r,e,n),t=nl(null,t,r,!0,o,n)}else t.tag=0,Ki(null,t,a,n),t=t.child;return t;case 16:e:{if(a=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,xe(a),1!==a._status)throw a._result;switch(a=a._result,t.type=a,o=t.tag=au(a),e=po(a,e),o){case 0:t=el(null,t,a,e,n);break e;case 1:t=tl(null,t,a,e,n);break e;case 11:t=Xi(null,t,a,e,n);break e;case 14:t=Zi(null,t,a,po(a.type,e),r,n);break e}throw Error(i(306,a,""))}return t;case 0:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:po(r,a),el(e,t,r,a,n);case 1:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:po(r,a),tl(e,t,r,a,n);case 3:if(rl(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,a=t.memoizedState,a=null!==a?a.element:null,Eo(e,t),Co(t,r,null,n),r=t.memoizedState.element,r===a)$i(),t=dl(e,t,n);else{if((a=t.stateNode.hydrate)&&(Fi=In(t.stateNode.containerInfo.firstChild),Ni=t,a=Bi=!0),a)for(n=Wo(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Ki(e,t,r,n),$i();t=t.child}return t;case 5:return Jo(t),null===e&&Ui(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,l=a.children,Ln(r,a)?l=null:null!==o&&Ln(r,o)&&(t.effectTag|=16),Qi(e,t),4&t.mode&&1!==n&&a.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Ki(e,t,l,n),t=t.child),t;case 6:return null===e&&Ui(t),null;case 13:return ul(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Uo(t,null,r,n):Ki(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:po(r,a),Xi(e,t,r,a,n);case 7:return Ki(e,t,t.pendingProps,n),t.child;case 8:return Ki(e,t,t.pendingProps.children,n),t.child;case 12:return Ki(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,a=t.pendingProps,l=t.memoizedProps,o=a.value;var s=t.type._context;if(Ma(ho,s._currentValue),s._currentValue=o,null!==l)if(s=l.value,o=ea(s,o)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823),0===o){if(l.children===a.children&&!Aa.current){t=dl(e,t,n);break e}}else for(s=t.child,null!==s&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!==(c.observedBits&o)){1===s.tag&&(c=Oo(n,null),c.tag=2,Mo(s,c)),s.expirationTime<n&&(s.expirationTime=n),c=s.alternate,null!==c&&c.expirationTime<n&&(c.expirationTime=n),xo(s.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(s=l.sibling,null!==s){s.return=l.return,l=s;break}l=l.return}s=l}Ki(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,o=t.pendingProps,r=o.children,_o(t,n),a=wo(a,o.unstable_observedBits),r=r(a),t.effectTag|=1,Ki(e,t,r,n),t.child;case 14:return a=t.type,o=po(a,t.pendingProps),o=po(a.type,o),Zi(e,t,a,o,r,n);case 15:return Ji(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:po(r,a),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Da(r)?(e=!0,za(t)):e=!1,_o(t,n),Ro(t,r,a),No(t,r,a,n),nl(null,t,r,!0,e,n);case 19:return pl(e,t,n)}throw Error(i(156,t.tag))};var Js=null,Qs=null;function eu(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Js=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},Qs=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}return!0}function tu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function nu(e,t,n,r){return new tu(e,t,n,r)}function ru(e){return e=e.prototype,!(!e||!e.isReactComponent)}function au(e){if("function"===typeof e)return ru(e)?1:0;if(void 0!==e&&null!==e){if(e=e.$$typeof,e===pe)return 11;if(e===ve)return 14}return 2}function ou(e,t){var n=e.alternate;return null===n?(n=nu(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function iu(e,t,n,r,a,o){var l=2;if(r=e,"function"===typeof e)ru(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case ie:return lu(n.children,a,o,t);case fe:l=8,a|=7;break;case le:l=8,a|=1;break;case se:return e=nu(12,n,t,8|a),e.elementType=se,e.type=se,e.expirationTime=o,e;case de:return e=nu(13,n,t,a),e.type=de,e.elementType=de,e.expirationTime=o,e;case he:return e=nu(19,n,t,a),e.elementType=he,e.expirationTime=o,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case ue:l=10;break e;case ce:l=9;break e;case pe:l=11;break e;case ve:l=14;break e;case me:l=16,r=null;break e;case ye:l=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return t=nu(l,n,t,a),t.elementType=e,t.type=r,t.expirationTime=o,t}function lu(e,t,n,r){return e=nu(7,e,r,t),e.expirationTime=n,e}function su(e,t,n){return e=nu(6,e,null,t),e.expirationTime=n,e}function uu(e,t,n){return t=nu(4,null!==e.children?e.children:[],e.key,t),t.expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function cu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function fu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function pu(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function du(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function hu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function vu(e,t,n,r){var a=t.current,o=ws(),l=Po.suspense;o=ks(o,a,l);e:if(n){n=n._reactInternalFiber;t:{if(ot(n)!==n||1!==n.tag)throw Error(i(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Da(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(i(171))}if(1===n.tag){var u=n.type;if(Da(u)){n=Ra(n,u,s);break e}}n=s}else n=Sa;return null===t.context?t.context=n:t.pendingContext=n,t=Oo(o,l),t.payload={element:e},r=void 0===r?null:r,null!==r&&(t.callback=r),Mo(a,t),Ts(a,o),o}function mu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function yu(e,t){e=e.memoizedState,null!==e&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function gu(e,t){yu(e,t),(e=e.alternate)&&yu(e,t)}function bu(e,t,n){n=null!=n&&!0===n.hydrate;var r=new cu(e,t,n),a=nu(3,null,null,2===t?7:1===t?3:0);r.current=a,a.stateNode=r,To(a),e[Bn]=r.current,n&&0!==t&&It(e,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function xu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function _u(e,t){if(t||(t=e?9===e.nodeType?e.documentElement:e.firstChild:null,t=!(!t||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new bu(e,0,t?{hydrate:!0}:void 0)}function wu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o._internalRoot;if("function"===typeof a){var l=a;a=function(){var e=mu(i);l.call(e)}}vu(t,i,e,a)}else{if(o=n._reactRootContainer=_u(n,r),i=o._internalRoot,"function"===typeof a){var s=a;a=function(){var e=mu(i);s.call(e)}}Ls((function(){vu(t,i,e,a)}))}return mu(i)}function ku(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:oe,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Tu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!xu(t))throw Error(i(200));return ku(e,t,null,n)}bu.prototype.render=function(e){vu(e,this._internalRoot,null,null)},bu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;vu(null,e,null,(function(){t[Bn]=null}))},wt=function(e){if(13===e.tag){var t=fo(ws(),150,100);Ts(e,t),gu(e,t)}},kt=function(e){13===e.tag&&(Ts(e,3),gu(e,3))},Tt=function(e){if(13===e.tag){var t=ws();t=ks(t,e,null),Ts(e,t),gu(e,t)}},C=function(e,t,n){switch(t){case"input":if(Pe(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Wn(r);if(!a)throw Error(i(90));Me(r),Pe(r,a)}}}break;case"textarea":Fe(e,n);break;case"select":t=n.value,null!=t&&Re(e,!!n.multiple,t,!1)}},I=Ps,R=function(e,t,n,r,a){var o=Jl;Jl|=4;try{return io(98,e.bind(null,t,n,r,a))}finally{Jl=o,Jl===Hl&&uo()}},z=function(){(Jl&(1|Wl|ql))===Hl&&(As(),$s())},N=function(e,t){var n=Jl;Jl|=2;try{return e(t)}finally{Jl=n,Jl===Hl&&uo()}};var Eu={Events:[Hn,Un,Wn,M,T,Zn,function(e){ft(e,Xn)},D,j,ln,ht,$s,{current:!1}]};(function(e){var t=e.findFiberByHostInstance;eu(a({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ee.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ut(e),null===e?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:Vn,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Eu,t.createPortal=Tu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw Error(i(268,Object.keys(e)))}return e=ut(t),e=null===e?null:e.stateNode,e},t.flushSync=function(e,t){if((Jl&(Wl|ql))!==Hl)throw Error(i(187));var n=Jl;Jl|=1;try{return io(99,e.bind(null,t))}finally{Jl=n,uo()}},t.hydrate=function(e,t,n){if(!xu(t))throw Error(i(200));return wu(null,e,t,!0,n)},t.render=function(e,t,n){if(!xu(t))throw Error(i(200));return wu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!xu(e))throw Error(i(40));return!!e._reactRootContainer&&(Ls((function(){wu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Bn]=null}))})),!0)},t.unstable_batchedUpdates=Ps,t.unstable_createPortal=function(e,t){return Tu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!xu(n))throw Error(i(200));if(null==e||void 0===e._reactInternalFiber)throw Error(i(38));return wu(e,t,n,!1,r)},t.version="16.13.1"},ca84:function(e,t,n){var r=n("5135"),a=n("fc6a"),o=n("4d64").indexOf,i=n("d012");e.exports=function(e,t){var n,l=a(e),s=0,u=[];for(n in l)!r(i,n)&&r(l,n)&&u.push(n);while(t.length>s)r(l,n=t[s++])&&(~o(u,n)||u.push(n));return u}},caad:function(e,t,n){"use strict";var r=n("23e7"),a=n("4d64").includes,o=n("44d2"),i=n("ae40"),l=i("indexOf",{ACCESSORS:!0,1:0});r({target:"Array",proto:!0,forced:!l},{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),o("includes")},cae0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M27.625 32H5.812a.722.722 0 0 1-.75-.75V.75c0-.438.313-.75.75-.75h21.813c.438 0 .75.313.75.75v30.5c0 .438-.313.75-.75.75zM6.563 30.563h20.375V1.438H6.563zm.687-24.75H4.375c-.438 0-.75-.313-.75-.75s.313-.688.75-.688H7.25c.438 0 .75.25.75.688s-.313.75-.75.75zm0 4.375H4.375c-.438 0-.75-.313-.75-.75s.313-.688.75-.688H7.25c.438 0 .75.25.75.688s-.313.75-.75.75zm0 4.375H4.375c-.438 0-.75-.313-.75-.75s.313-.75.75-.75H7.25c.438 0 .75.313.75.75s-.313.75-.75.75zm0 4.375H4.375c-.438 0-.75-.313-.75-.75s.313-.75.75-.75H7.25c.438 0 .75.313.75.75s-.313.75-.75.75zm0 4.312H4.375c-.438 0-.75-.25-.75-.688s.313-.75.75-.75H7.25c.438 0 .75.313.75.75s-.313.688-.75.688zm0 4.375H4.375c-.438 0-.75-.25-.75-.688s.313-.75.75-.75H7.25c.438 0 .75.313.75.75s-.313.688-.75.688zm5.813-6.125v-11h2.188l2.625 7.813c.313.75.438 1.313.625 1.625.125-.438.25-1 .563-1.75l2.625-7.688h1.875v11h-1.438v-9.313l-3.188 9.188H17.75l-3.188-9.313V21.5zm-3.625-2h2.063v2H9.438z"}))};t.default=u},cb1c:function(e,t,n){"use strict";var r=n("8cb4"),a=n("4da8"),o=function(e,t){return e===t},i=function(e){return!!e},l=[];function s(e,t,n){var l=[],s=t.map((function(e){return e.has(n)})).toList();return a(s,o,i,(function(t,a){var o=e.getText();l.push({offset:r.strlen(o.slice(0,t)),length:r.strlen(o.slice(t,a)),style:n})})),l}function u(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return s(e,t,n)}));return Array.prototype.concat.apply(l,n.toJS())}e.exports=u},cb36:function(e,t,n){"use strict";n.r(t),n.d(t,"useDropzone",(function(){return ne}));var r=n("ab5b"),a=n.n(r),o=n("d7bc"),i=n.n(o);function l(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,o){function i(e){try{s(r.next(e))}catch(t){o(t)}}function l(e){try{s(r["throw"](e))}catch(t){o(t)}}function s(e){e.done?n(e.value):a(e.value).then(i,l)}s((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return s([e,t])}}function s(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,r&&(a=2&o[0]?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(l){o=[6,l],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}Object.create;function u(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,o=n.call(e),i=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)i.push(r.value)}catch(l){a={error:l}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(a)throw a.error}}return i}function c(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}Object.create;var f=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function p(e,t){var n=d(e);if("string"!==typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof t?t:"string"===typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function d(e){var t=e.name,n=t&&-1!==t.lastIndexOf(".");if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),a=f.get(r);a&&Object.defineProperty(e,"type",{value:a,writable:!1,configurable:!1,enumerable:!0})}return e}var h=[".DS_Store","Thumbs.db"];function v(e){return l(this,void 0,void 0,(function(){return s(this,(function(t){return[2,m(e)&&e.dataTransfer?b(e.dataTransfer,e.type):y(e)]}))}))}function m(e){return!!e.dataTransfer}function y(e){var t=g(e.target)&&e.target.files?_(e.target.files):[];return t.map((function(e){return p(e)}))}function g(e){return null!==e}function b(e,t){return l(this,void 0,void 0,(function(){var n,r;return s(this,(function(a){switch(a.label){case 0:return e.items?(n=_(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(w))]):[3,2];case 1:return r=a.sent(),[2,x(k(r))];case 2:return[2,x(_(e.files).map((function(e){return p(e)})))]}}))}))}function x(e){return e.filter((function(e){return-1===h.indexOf(e.name)}))}function _(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function w(e){if("function"!==typeof e.webkitGetAsEntry)return T(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?O(t):T(e)}function k(e){return e.reduce((function(e,t){return c(e,Array.isArray(t)?k(t):[t])}),[])}function T(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=p(t);return Promise.resolve(n)}function E(e){return l(this,void 0,void 0,(function(){return s(this,(function(t){return[2,e.isDirectory?O(e):M(e)]}))}))}function O(e){var t=e.createReader();return new Promise((function(e,n){var r=[];function a(){var o=this;t.readEntries((function(t){return l(o,void 0,void 0,(function(){var o,i,l;return s(this,(function(s){switch(s.label){case 0:if(t.length)return[3,5];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return o=s.sent(),e(o),[3,4];case 3:return i=s.sent(),n(i),[3,4];case 4:return[3,6];case 5:l=Promise.all(t.map(E)),r.push(l),a(),s.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}a()}))}function M(e){return l(this,void 0,void 0,(function(){return s(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=p(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var S=n("5f50"),C=n.n(S);function A(e,t){return"application/x-moz-file"===e.type||C()(e,t)}function P(e,t,n){if(L(e.size)){if(L(t)&&L(n))return e.size>=t&&e.size<=n;if(L(t))return e.size>=t;if(L(n))return e.size<=n}return!0}function L(e){return void 0!==e&&null!==e}function D(e){var t=e.files,n=e.accept,r=e.minSize,a=e.maxSize,o=e.multiple;return!(!o&&t.length>1)&&t.every((function(e){return A(e,n)&&P(e,r,a)}))}function j(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function I(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function R(e){e.preventDefault()}function z(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}function N(e){return-1!==e.indexOf("Edge/")}function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return z(e)||N(e)}function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return t.some((function(t){return!j(e)&&t&&t.apply(void 0,[e].concat(r)),j(e)}))}}function V(e){return W(e)||U(e)||H()}function H(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function U(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function W(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function q(e,t){return Y(e)||G(e,t)||$()}function $(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function G(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)if(n.push(i.value),t&&n.length===t)break}catch(s){a=!0,o=s}finally{try{r||null==l["return"]||l["return"]()}finally{if(a)throw o}}return n}}function Y(e){if(Array.isArray(e))return e}function K(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 X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(n,!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e,t){if(null==e)return{};var n,r,a=Q(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)&&(a[n]=e[n])}return a}function Q(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var ee=Object(r["forwardRef"])((function(e,t){var n=e.children,o=J(e,["children"]),i=ne(o),l=i.open,s=J(i,["open"]);return Object(r["useImperativeHandle"])(t,(function(){return{open:l}}),[l]),a.a.createElement(r["Fragment"],null,n(X({},s,{open:l})))}));ee.displayName="Dropzone",ee.propTypes={children:i.a.func,accept:i.a.oneOfType([i.a.string,i.a.arrayOf(i.a.string)]),multiple:i.a.bool,preventDropOnDocument:i.a.bool,noClick:i.a.bool,noKeyboard:i.a.bool,noDrag:i.a.bool,noDragEventsBubbling:i.a.bool,minSize:i.a.number,maxSize:i.a.number,disabled:i.a.bool,getFilesFromEvent:i.a.func,onFileDialogCancel:i.a.func,onDragEnter:i.a.func,onDragLeave:i.a.func,onDragOver:i.a.func,onDrop:i.a.func,onDropAccepted:i.a.func,onDropRejected:i.a.func};t["default"]=ee;var te={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]};function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.accept,n=e.disabled,a=void 0!==n&&n,o=e.getFilesFromEvent,i=void 0===o?v:o,l=e.maxSize,s=void 0===l?1/0:l,u=e.minSize,c=void 0===u?0:u,f=e.multiple,p=void 0===f||f,d=e.onDragEnter,h=e.onDragLeave,m=e.onDragOver,y=e.onDrop,g=e.onDropAccepted,b=e.onDropRejected,x=e.onFileDialogCancel,_=e.preventDropOnDocument,w=void 0===_||_,k=e.noClick,T=void 0!==k&&k,E=e.noKeyboard,O=void 0!==E&&E,M=e.noDrag,S=void 0!==M&&M,C=e.noDragEventsBubbling,L=void 0!==C&&C,z=Object(r["useRef"])(null),N=Object(r["useRef"])(null),H=Object(r["useReducer"])(re,te),U=q(H,2),W=U[0],$=U[1],G=W.isFocused,Y=W.isFileDialogActive,K=W.draggedFiles,Q=Object(r["useCallback"])((function(){N.current&&($({type:"openDialog"}),N.current.value=null,N.current.click())}),[$]),ee=function(){Y&&setTimeout((function(){if(N.current){var e=N.current.files;e.length||($({type:"closeDialog"}),"function"===typeof x&&x())}}),300)};Object(r["useEffect"])((function(){return window.addEventListener("focus",ee,!1),function(){window.removeEventListener("focus",ee,!1)}}),[N,Y,x]);var ne=Object(r["useCallback"])((function(e){z.current&&z.current.isEqualNode(e.target)&&(32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),Q()))}),[z,N]),ae=Object(r["useCallback"])((function(){$({type:"focus"})}),[]),oe=Object(r["useCallback"])((function(){$({type:"blur"})}),[]),ie=Object(r["useCallback"])((function(){T||(F()?setTimeout(Q,0):Q())}),[N,T]),le=Object(r["useRef"])([]),se=function(e){z.current&&z.current.contains(e.target)||(e.preventDefault(),le.current=[])};Object(r["useEffect"])((function(){return w&&(document.addEventListener("dragover",R,!1),document.addEventListener("drop",se,!1)),function(){w&&(document.removeEventListener("dragover",R),document.removeEventListener("drop",se))}}),[z,w]);var ue=Object(r["useCallback"])((function(e){e.preventDefault(),e.persist(),me(e),-1===le.current.indexOf(e.target)&&(le.current=[].concat(V(le.current),[e.target])),I(e)&&Promise.resolve(i(e)).then((function(t){j(e)&&!L||($({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),d&&d(e))}))}),[i,d,L]),ce=Object(r["useCallback"])((function(e){if(e.preventDefault(),e.persist(),me(e),e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(t){}return I(e)&&m&&m(e),!1}),[m,L]),fe=Object(r["useCallback"])((function(e){e.preventDefault(),e.persist(),me(e);var t=le.current.filter((function(t){return t!==e.target&&z.current&&z.current.contains(t)}));le.current=t,t.length>0||($({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),I(e)&&h&&h(e))}),[z,h,L]),pe=Object(r["useCallback"])((function(e){e.preventDefault(),e.persist(),me(e),le.current=[],I(e)&&Promise.resolve(i(e)).then((function(n){if(!j(e)||L){var r=[],a=[];n.forEach((function(e){A(e,t)&&P(e,c,s)?r.push(e):a.push(e)})),!p&&r.length>1&&a.push.apply(a,V(r.splice(0))),$({acceptedFiles:r,rejectedFiles:a,type:"setFiles"}),y&&y(r,a,e),a.length>0&&b&&b(a,e),r.length>0&&g&&g(r,e)}})),$({type:"reset"})}),[p,t,c,s,i,y,g,b,L]),de=function(e){return a?null:e},he=function(e){return O?null:de(e)},ve=function(e){return S?null:de(e)},me=function(e){L&&e.stopPropagation()},ye=Object(r["useMemo"])((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.onKeyDown,o=e.onFocus,i=e.onBlur,l=e.onClick,s=e.onDragEnter,u=e.onDragOver,c=e.onDragLeave,f=e.onDrop,p=J(e,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return X(Z({onKeyDown:he(B(r,ne)),onFocus:he(B(o,ae)),onBlur:he(B(i,oe)),onClick:de(B(l,ie)),onDragEnter:ve(B(s,ue)),onDragOver:ve(B(u,ce)),onDragLeave:ve(B(c,fe)),onDrop:ve(B(f,pe))},n,z),a||O?{}:{tabIndex:0},{},p)}}),[z,ne,ae,oe,ie,ue,ce,fe,pe,O,S,a]),ge=Object(r["useCallback"])((function(e){e.stopPropagation()}),[]),be=Object(r["useMemo"])((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.refKey,r=void 0===n?"ref":n,a=e.onChange,o=e.onClick,i=J(e,["refKey","onChange","onClick"]),l=Z({accept:t,multiple:p,type:"file",style:{display:"none"},onChange:de(B(a,pe)),onClick:de(B(o,ge)),autoComplete:"off",tabIndex:-1},r,N);return X({},l,{},i)}}),[N,t,p,pe,a]),xe=K.length,_e=xe>0&&D({files:K,accept:t,minSize:c,maxSize:s,multiple:p}),we=xe>0&&!_e;return X({},W,{isDragAccept:_e,isDragReject:we,isFocused:G&&!a,getRootProps:ye,getInputProps:be,rootRef:z,inputRef:N,open:de(Q)})}function re(e,t){switch(t.type){case"focus":return X({},e,{isFocused:!0});case"blur":return X({},e,{isFocused:!1});case"openDialog":return X({},e,{isFileDialogActive:!0});case"closeDialog":return X({},e,{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return X({},e,{draggedFiles:r,isDragActive:n});case"setFiles":return X({},e,{acceptedFiles:t.acceptedFiles,rejectedFiles:t.rejectedFiles});case"reset":return X({},e,{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],rejectedFiles:[]});default:return e}}},cb42:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("ab5b")),a=i(n("d7bc")),o=n("c85e");function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var n=t.localize;return r.default.createElement(o.AnnotationAccordion,{canAdd:!0,canReorder:!0},r.default.createElement(o.PlotlySection,{name:n("Note Text"),attr:"text"},r.default.createElement(o.TextEditor,{attr:"text"}),r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:"font.family"}),r.default.createElement(o.Numeric,{label:n("Font Size"),attr:"font.size",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Font Color"),attr:"font.color"}),r.default.createElement(o.Numeric,{label:n("Angle"),attr:"textangle",units:"°"}),r.default.createElement(o.Dropdown,{label:n("Horizontal Alignment"),clearable:!1,attr:"align",options:[{label:n("Left"),value:"left"},{label:n("Center"),value:"center"},{label:n("Right"),value:"right"}]}),r.default.createElement(o.Dropdown,{label:n("Vertical Alignment"),clearable:!1,attr:"valign",options:[{label:n("Left"),value:"left"},{label:n("Center"),value:"center"},{label:n("Right"),value:"right"}]})),r.default.createElement(o.PlotlySection,{name:n("Arrow")},r.default.createElement(o.Radio,{attr:"showarrow",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.Numeric,{label:n("Line Width"),attr:"arrowwidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"arrowcolor"}),r.default.createElement(o.ArrowSelector,{label:n("Arrowhead"),attr:"arrowhead"}),r.default.createElement(o.Numeric,{label:n("Scale"),step:.1,attr:"arrowsize",units:"px"}),r.default.createElement(o.AnnotationArrowRef,{label:n("X Offset"),attr:"axref"}),r.default.createElement(o.AnnotationArrowRef,{label:n("Y Offset"),attr:"ayref"}),r.default.createElement(o.NumericOrDate,{label:n("X Vector"),attr:"ax"}),r.default.createElement(o.NumericOrDate,{label:n("Y Vector"),attr:"ay"})),r.default.createElement(o.PlotlySection,{name:n("Horizontal Positioning")},r.default.createElement(o.Dropdown,{label:n("Anchor Point"),clearable:!1,attr:"xanchor",options:[{label:n("Auto"),value:"auto"},{label:n("Left"),value:"left"},{label:n("Center"),value:"center"},{label:n("Right"),value:"right"}]}),r.default.createElement(o.PositioningNumeric,{label:n("Position"),attr:"x"}),r.default.createElement(o.AnnotationRef,{label:n("Relative To"),attr:"xref"})),r.default.createElement(o.PlotlySection,{name:n("Vertical Positioning")},r.default.createElement(o.Dropdown,{label:n("Anchor Point"),clearable:!1,attr:"yanchor",options:[{label:n("Auto"),value:"auto"},{label:n("Top"),value:"top"},{label:n("Middle"),value:"middle"},{label:n("Bottom"),value:"bottom"}]}),r.default.createElement(o.PositioningNumeric,{label:n("Position"),attr:"y"}),r.default.createElement(o.AnnotationRef,{label:n("Relative To"),attr:"yref"})))};l.contextTypes={localize:a.default.func};var s=l;t.default=s},cb49:function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=n("4031"),o=n("0895"),i=n("22af"),l=n("24f7"),s=n("ab5b"),u=n("6152"),c=(l.List,function(e){function t(){return e.apply(this,arguments)||this}r(t,e);var n=t.prototype;return n.render=function(){var e=this.props,t=e.block,n=e.contentState,r=e.customStyleFn,l=e.customStyleMap,c=e.decorator,f=e.direction,p=e.forceSelection,d=e.hasSelection,h=e.selection,v=e.tree,m=t.getKey(),y=t.getText(),g=v.size-1,b=this.props.children||v.map((function(e,u){var v=e.get("decoratorKey"),b=e.get("leaves"),x=b.size-1,_=b.map((function(e,n){var a=i.encode(m,u,n),c=e.get("start"),f=e.get("end");return s.createElement(o,{key:a,offsetKey:a,block:t,start:c,selection:d?h:null,forceSelection:p,text:y.slice(c,f),styleSet:t.getInlineStyleAt(c),customStyleMap:l,customStyleFn:r,isLast:v===g&&n===x})})).toArray();return v&&c?s.createElement(a,{block:t,children:_,contentState:n,decorator:c,decoratorKey:v,direction:f,leafSet:e,text:y,key:u}):_})).toArray();return s.createElement("div",{"data-offset-key":i.encode(m,0,0),className:u({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},t}(s.Component));e.exports=c},cb52:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M5.087 16.308L9.516 18.5l5.152-3.607 6.206 2.569 9.384-4.962 10.046 12.725",strokeMiterlimit:"10",strokeWidth:"2.348"}),o.default.createElement("path",{fill:"#1d9bfb",d:"M5 33h15v6H5zm26 0h10v6H31z"}),o.default.createElement("path",{fill:"#25fdfc",d:"M20 33h11v6H20z"}),o.default.createElement("path",{fill:"none",stroke:"#25fdfc",d:"M5 23l5 3 4-4 9 3 18-12",strokeMiterlimit:"10",strokeWidth:"2.348"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M23 42h-3V30h3m5 12h3V30h-3",strokeMiterlimit:"10",strokeWidth:"2.348"}))};t.default=u},cb5a:function(e,t,n){var r=n("9638");function a(e,t){var n=e.length;while(n--)if(r(e[n][0],t))return n;return-1}e.exports=a},cb65:function(e,t,n){"use strict";n.r(t),n.d(t,"SelectBase",(function(){return Yt})),n.d(t,"Async",(function(){return en})),n.d(t,"makeAsyncSelect",(function(){return Jt})),n.d(t,"AsyncCreatable",(function(){return cn})),n.d(t,"Creatable",(function(){return ln})),n.d(t,"makeCreatableSelect",(function(){return an})),n.d(t,"createFilter",(function(){return xe})),n.d(t,"makeAnimated",(function(){return _n})),n.d(t,"components",(function(){return It})),n.d(t,"mergeStyles",(function(){return Nt})),n.d(t,"defaultTheme",(function(){return qt}));var r=n("ab5b"),a=n.n(r);function o(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function i(e,t){var n;void 0===t&&(t=o);var r,a=[],i=!1;function l(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return i&&n===this&&t(o,a)||(r=e.apply(this,o),i=!0,n=this,a=o),r}return l}var l=i,s=n("3c07"),u=n("8bc8"),c=n("d7bc"),f=n.n(c),p=n("c449"),d=n.n(p),h=n("1540"),v=n.n(h),m=n("d70d");function y(e){return y="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},y(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 x(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w(){return w=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},w.apply(this,arguments)}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){_(e,t,n[t])}))}return e}function T(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&&O(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function M(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function S(e,t){if(null==e)return{};var n,r,a=M(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)&&(a[n]=e[n])}return a}function C(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e,t){return!t||"object"!==typeof t&&"function"!==typeof t?C(e):t}function P(e){return L(e)||D(e)||j()}function L(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function D(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function j(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var I=function(){};function R(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function z(e,t,n,r){var a=[t,r];if(n&&e)for(var o in n)n.hasOwnProperty(o)&&n[o]&&a.push("".concat(R(e,o)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var N=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===y(e)&&null!==e?[e]:[]};function F(e,t,n){if(n){var r=n(e,t);if("string"===typeof r)return r}return e}function B(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function V(e){return B(e)?window.pageYOffset:e.scrollTop}function H(e,t){B(e)?window.scrollTo(0,t):e.scrollTop=t}function U(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/,a=document.documentElement;if("fixed"===t.position)return a;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return a}function W(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function q(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I,a=V(e),o=t-a,i=10,l=0;function s(){l+=i;var t=W(l,a,o,n);H(e,t),l<n?d()(s):r(e)}s()}function $(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=t.offsetHeight/3;r.bottom+a>n.bottom?H(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):r.top-a<n.top&&H(e,Math.max(t.offsetTop-a,0))}function G(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Y(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}function K(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}function X(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,a=e.placement,o=e.shouldScroll,i=e.isFixedPosition,l=e.theme,s=l.spacing,u=U(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var f=u.getBoundingClientRect(),p=f.height,d=n.getBoundingClientRect(),h=d.bottom,v=d.height,m=d.top,y=n.offsetParent.getBoundingClientRect(),g=y.top,b=window.innerHeight,x=V(u),_=parseInt(getComputedStyle(n).marginBottom,10),w=parseInt(getComputedStyle(n).marginTop,10),k=g-w,T=b-m,E=k+x,O=p-x-m,M=h-b+x+_,S=x+m-w,C=160;switch(a){case"auto":case"bottom":if(T>=v)return{placement:"bottom",maxHeight:t};if(O>=v&&!i)return o&&q(u,M,C),{placement:"bottom",maxHeight:t};if(!i&&O>=r||i&&T>=r){o&&q(u,M,C);var A=i?T-_:O-_;return{placement:"bottom",maxHeight:A}}if("auto"===a||i){var P=t,L=i?k:E;return L>=r&&(P=Math.min(L-_-s.controlHeight,t)),{placement:"top",maxHeight:P}}if("bottom"===a)return H(u,M),{placement:"bottom",maxHeight:t};break;case"top":if(k>=v)return{placement:"top",maxHeight:t};if(E>=v&&!i)return o&&q(u,S,C),{placement:"top",maxHeight:t};if(!i&&E>=r||i&&k>=r){var D=t;return(!i&&E>=r||i&&k>=r)&&(D=i?k-w:E-w),o&&q(u,S,C),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}function Z(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var J=function(e){return"auto"===e?"bottom":e},Q=function(e){var t,n=e.placement,r=e.theme,a=r.borderRadius,o=r.spacing,i=r.colors;return t={label:"menu"},_(t,Z(n),"100%"),_(t,"backgroundColor",i.neutral0),_(t,"borderRadius",a),_(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),_(t,"marginBottom",o.menuGutter),_(t,"marginTop",o.menuGutter),_(t,"position","absolute"),_(t,"width","100%"),_(t,"zIndex",1),t},ee=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=A(this,(e=E(t)).call.apply(e,[this].concat(a))),_(C(C(n)),"state",{maxHeight:n.props.maxMenuHeight,placement:null}),_(C(C(n)),"getPlacement",(function(e){var t=n.props,r=t.minMenuHeight,a=t.maxMenuHeight,o=t.menuPlacement,i=t.menuPosition,l=t.menuShouldScrollIntoView,s=t.theme,u=n.context.getPortalPlacement;if(e){var c="fixed"===i,f=l&&!c,p=X({maxHeight:a,menuEl:e,minHeight:r,placement:o,shouldScroll:f,isFixedPosition:c,theme:s});u&&u(p),n.setState(p)}})),_(C(C(n)),"getUpdatedProps",(function(){var e=n.props.menuPlacement,t=n.state.placement||J(e);return k({},n.props,{placement:t,maxHeight:n.state.maxHeight})})),n}return T(t,e),x(t,[{key:"render",value:function(){var e=this.props.children;return e({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),t}(r["Component"]);_(ee,"contextTypes",{getPortalPlacement:f.a.func});var te=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerRef,l=e.innerProps,u=r(Object(s["a"])(o("menu",e)),{menu:!0},n);return a.a.createElement("div",w({className:u},l,{ref:i}),t)},ne=function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},re=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isMulti,l=e.innerRef;return a.a.createElement("div",{className:r(Object(s["a"])(o("menuList",e)),{"menu-list":!0,"menu-list--is-multi":i},n),ref:l},t)},ae=function(e){var t=e.theme,n=t.spacing.baseUnit,r=t.colors;return{color:r.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},oe=ae,ie=ae,le=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return a.a.createElement("div",w({className:r(Object(s["a"])(o("noOptionsMessage",e)),{"menu-notice":!0,"menu-notice--no-options":!0},n)},i),t)};le.defaultProps={children:"No options"};var se=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return a.a.createElement("div",w({className:r(Object(s["a"])(o("loadingMessage",e)),{"menu-notice":!0,"menu-notice--loading":!0},n)},i),t)};se.defaultProps={children:"Loading..."};var ue=function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},ce=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=A(this,(e=E(t)).call.apply(e,[this].concat(a))),_(C(C(n)),"state",{placement:null}),_(C(C(n)),"getPortalPlacement",(function(e){var t=e.placement,r=J(n.props.menuPlacement);t!==r&&n.setState({placement:t})})),n}return T(t,e),x(t,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,r=e.controlElement,o=e.menuPlacement,i=e.menuPosition,l=e.getStyles,c="fixed"===i;if(!t&&!c||!r)return null;var f=this.state.placement||J(o),p=G(r),d=c?0:window.pageYOffset,h=p[f]+d,v={offset:h,position:i,rect:p},m=a.a.createElement("div",{className:Object(s["a"])(l("menuPortal",v))},n);return t?Object(u["createPortal"])(m,t):m}}]),t}(r["Component"]);_(ce,"childContextTypes",{getPortalPlacement:f.a.func});var fe=Array.isArray,pe=Object.keys,de=Object.prototype.hasOwnProperty;function he(e,t){if(e===t)return!0;if(e&&t&&"object"==y(e)&&"object"==y(t)){var n,r,a,o=fe(e),i=fe(t);if(o&&i){if(r=e.length,r!=t.length)return!1;for(n=r;0!==n--;)if(!he(e[n],t[n]))return!1;return!0}if(o!=i)return!1;var l=e instanceof Date,s=t instanceof Date;if(l!=s)return!1;if(l&&s)return e.getTime()==t.getTime();var u=e instanceof RegExp,c=t instanceof RegExp;if(u!=c)return!1;if(u&&c)return e.toString()==t.toString();var f=pe(e);if(r=f.length,r!==pe(t).length)return!1;for(n=r;0!==n--;)if(!de.call(t,f[n]))return!1;for(n=r;0!==n--;)if(a=f[n],("_owner"!==a||!e.$$typeof)&&!he(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}function ve(e,t){try{return he(e,t)}catch(n){if(n.message&&n.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",n.name,n.message),!1;throw n}}var me=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],ye=function(e){for(var t=0;t<me.length;t++)e=e.replace(me[t].letters,me[t].base);return e},ge=function(e){return e.replace(/^\s+|\s+$/g,"")},be=function(e){return"".concat(e.label," ").concat(e.value)},xe=function(e){return function(t,n){var r=k({ignoreCase:!0,ignoreAccents:!0,stringify:be,trim:!0,matchFrom:"any"},e),a=r.ignoreCase,o=r.ignoreAccents,i=r.stringify,l=r.trim,s=r.matchFrom,u=l?ge(n):n,c=l?ge(i(t)):i(t);return a&&(u=u.toLowerCase(),c=c.toLowerCase()),o&&(u=ye(u),c=ye(c)),"start"===s?c.substr(0,u.length)===u:c.indexOf(u)>-1}},_e=function(e){return a.a.createElement("span",w({className:Object(s["a"])({label:"a11yText",zIndex:9999,border:0,clip:"rect(1px, 1px, 1px, 1px)",height:1,width:1,position:"absolute",overflow:"hidden",padding:0,whiteSpace:"nowrap",backgroundColor:"red",color:"blue"})},e))},we=function(e){function t(){return g(this,t),A(this,E(t).apply(this,arguments))}return T(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=(e.in,e.out,e.onExited,e.appear,e.enter,e.exit,e.innerRef),n=(e.emotion,S(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return a.a.createElement("input",w({ref:t},n,{className:Object(s["a"])({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"})}))}}]),t}(r["Component"]),ke=function(e){function t(){return g(this,t),A(this,E(t).apply(this,arguments))}return T(t,e),x(t,[{key:"componentDidMount",value:function(){this.props.innerRef(Object(u["findDOMNode"])(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),t}(r["Component"]),Te=["boxSizing","height","overflow","paddingRight","position"],Ee={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Oe(e){e.preventDefault()}function Me(e){e.stopPropagation()}function Se(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Ce(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ae=!("undefined"===typeof window||!window.document||!window.document.createElement),Pe=0,Le=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=A(this,(e=E(t)).call.apply(e,[this].concat(a))),_(C(C(n)),"originalStyles",{}),_(C(C(n)),"listenerOptions",{capture:!1,passive:!1}),n}return T(t,e),x(t,[{key:"componentDidMount",value:function(){var e=this;if(Ae){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,a=document.body,o=a&&a.style;if(n&&Te.forEach((function(t){var n=o&&o[t];e.originalStyles[t]=n})),n&&Pe<1){var i=parseInt(this.originalStyles.paddingRight,10)||0,l=document.body?document.body.clientWidth:0,s=window.innerWidth-l+i||0;Object.keys(Ee).forEach((function(e){var t=Ee[e];o&&(o[e]=t)})),o&&(o.paddingRight="".concat(s,"px"))}a&&Ce()&&(a.addEventListener("touchmove",Oe,this.listenerOptions),r&&(r.addEventListener("touchstart",Se,this.listenerOptions),r.addEventListener("touchmove",Me,this.listenerOptions))),Pe+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Ae){var t=this.props,n=t.accountForScrollbars,r=t.touchScrollTarget,a=document.body,o=a&&a.style;Pe=Math.max(Pe-1,0),n&&Pe<1&&Te.forEach((function(t){var n=e.originalStyles[t];o&&(o[t]=n)})),a&&Ce()&&(a.removeEventListener("touchmove",Oe,this.listenerOptions),r&&(r.removeEventListener("touchstart",Se,this.listenerOptions),r.removeEventListener("touchmove",Me,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),t}(r["Component"]);_(Le,"defaultProps",{accountForScrollbars:!0});var De=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=A(this,(e=E(t)).call.apply(e,[this].concat(a))),_(C(C(n)),"state",{touchScrollTarget:null}),_(C(C(n)),"getScrollTarget",(function(e){e!==n.state.touchScrollTarget&&n.setState({touchScrollTarget:e})})),_(C(C(n)),"blurSelectInput",(function(){document.activeElement&&document.activeElement.blur()})),n}return T(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,r=this.state.touchScrollTarget;return n?a.a.createElement("div",null,a.a.createElement("div",{onClick:this.blurSelectInput,className:Object(s["a"])({position:"fixed",left:0,bottom:0,right:0,top:0})}),a.a.createElement(ke,{innerRef:this.getScrollTarget},t),r?a.a.createElement(Le,{touchScrollTarget:r}):null):t}}]),t}(r["PureComponent"]),je=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=A(this,(e=E(t)).call.apply(e,[this].concat(a))),_(C(C(n)),"isBottom",!1),_(C(C(n)),"isTop",!1),_(C(C(n)),"scrollTarget",void 0),_(C(C(n)),"touchStart",void 0),_(C(C(n)),"cancelScroll",(function(e){e.preventDefault(),e.stopPropagation()})),_(C(C(n)),"handleEventDelta",(function(e,t){var r=n.props,a=r.onBottomArrive,o=r.onBottomLeave,i=r.onTopArrive,l=r.onTopLeave,s=n.scrollTarget,u=s.scrollTop,c=s.scrollHeight,f=s.clientHeight,p=n.scrollTarget,d=t>0,h=c-f-u,v=!1;h>t&&n.isBottom&&(o&&o(e),n.isBottom=!1),d&&n.isTop&&(l&&l(e),n.isTop=!1),d&&t>h?(a&&!n.isBottom&&a(e),p.scrollTop=c,v=!0,n.isBottom=!0):!d&&-t>u&&(i&&!n.isTop&&i(e),p.scrollTop=0,v=!0,n.isTop=!0),v&&n.cancelScroll(e)})),_(C(C(n)),"onWheel",(function(e){n.handleEventDelta(e,e.deltaY)})),_(C(C(n)),"onTouchStart",(function(e){n.touchStart=e.changedTouches[0].clientY})),_(C(C(n)),"onTouchMove",(function(e){var t=n.touchStart-e.changedTouches[0].clientY;n.handleEventDelta(e,t)})),_(C(C(n)),"getScrollTarget",(function(e){n.scrollTarget=e})),n}return T(t,e),x(t,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&(e.scrollHeight<=e.clientHeight||("function"===typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"===typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"===typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1)))}},{key:"stopListening",value:function(e){e.scrollHeight<=e.clientHeight||("function"===typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"===typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"===typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return a.a.createElement(ke,{innerRef:this.getScrollTarget},this.props.children)}}]),t}(r["Component"]),Ie=function(e){function t(){return g(this,t),A(this,E(t).apply(this,arguments))}return T(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=e.isEnabled,n=S(e,["isEnabled"]);return t?a.a.createElement(je,n):this.props.children}}]),t}(r["Component"]);_(Ie,"defaultProps",{isEnabled:!0});var Re=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,r=t.isMulti,a=t.label,o=t.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options".concat(o?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(a||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},ze=function(e,t){var n=t.value,r=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,r?" is disabled. Select another option.":", selected.")}},Ne=function(e){var t=e.focusedValue,n=e.getOptionLabel,r=e.selectValue;return"value ".concat(n(t)," focused, ").concat(r.indexOf(t)+1," of ").concat(r.length,".")},Fe=function(e){var t=e.focusedOption,n=e.getOptionLabel,r=e.options;return"option ".concat(n(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(r.indexOf(t)+1," of ").concat(r.length,".")},Be=function(e){var t=e.inputValue,n=e.screenReaderMessage;return"".concat(n).concat(t?" for search term "+t:"",".")},Ve=function(e){return e.label},He=function(e){return e.label},Ue=function(e){return e.value},We=function(e){return!!e.isDisabled},qe=function(e){var t=e.isDisabled,n=e.isRtl;return{label:"container",direction:n?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},$e=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps,l=e.isDisabled,u=e.isRtl;return a.a.createElement("div",w({className:r(Object(s["a"])(o("container",e)),{"--is-disabled":l,"--is-rtl":u},n)},i),t)},Ge=function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}},Ye=function(e){function t(){return g(this,t),A(this,E(t).apply(this,arguments))}return T(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.cx,o=e.isMulti,i=e.getStyles,l=e.hasValue;return a.a.createElement("div",{className:r(Object(s["a"])(i("valueContainer",this.props)),{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":l},n)},t)}}]),t}(r["Component"]),Ke=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},Xe=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles;return a.a.createElement("div",{className:r(Object(s["a"])(o("indicatorsContainer",e)),{indicators:!0},n)},t)},Ze=function(e){var t=e.size,n=S(e,["size"]);return a.a.createElement("svg",w({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",className:Object(s["a"])({display:"inline-block",fill:"currentColor",lineHeight:1,stroke:"currentColor",strokeWidth:0})},n))},Je=function(e){return a.a.createElement(Ze,w({size:20},e),a.a.createElement("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},Qe=function(e){return a.a.createElement(Ze,w({size:20},e),a.a.createElement("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},et=function(e){var t=e.isFocused,n=e.theme,r=n.spacing.baseUnit,a=n.colors;return{label:"indicatorContainer",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*r,transition:"color 150ms",":hover":{color:t?a.neutral80:a.neutral40}}},tt=et,nt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return a.a.createElement("div",w({},i,{className:r(Object(s["a"])(o("dropdownIndicator",e)),{indicator:!0,"dropdown-indicator":!0},n)}),t||a.a.createElement(Qe,null))},rt=et,at=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return a.a.createElement("div",w({},i,{className:r(Object(s["a"])(o("clearIndicator",e)),{indicator:!0,"clear-indicator":!0},n)}),t||a.a.createElement(Je,null))},ot=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing.baseUnit,a=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?a.neutral10:a.neutral20,marginBottom:2*r,marginTop:2*r,width:1}},it=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps;return a.a.createElement("span",w({},o,{className:n(Object(s["a"])(r("indicatorSeparator",e)),{"indicator-separator":!0},t)}))},lt="react-select-loading-indicator",st=!1,ut=function(e){var t=e.isFocused,n=e.size,r=e.theme,a=r.colors,o=r.spacing.baseUnit;return{label:"loadingIndicator",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*o,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},ct=function(e){var t=e.color,n=e.delay,r=e.offset;return a.a.createElement("span",{className:Object(s["a"])({animationDuration:"1s",animationDelay:"".concat(n,"ms"),animationIterationCount:"infinite",animationName:lt,animationTimingFunction:"ease-in-out",backgroundColor:t,borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":null,height:"1em",verticalAlign:"top",width:"1em"})})},ft=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerProps,i=e.isFocused,l=e.isRtl,u=e.theme.colors,c=i?u.neutral80:u.neutral20;return st||(Object(s["b"])("@keyframes ",lt,"{0%,80%,100%{opacity:0;}40%{opacity:1;}};"),st=!0),a.a.createElement("div",w({},o,{className:n(Object(s["a"])(r("loadingIndicator",e)),{indicator:!0,"loading-indicator":!0},t)}),a.a.createElement(ct,{color:c,delay:0,offset:l}),a.a.createElement(ct,{color:c,delay:160,offset:!0}),a.a.createElement(ct,{color:c,delay:320,offset:!l}))};ft.defaultProps={size:4};var pt=function(e){var t=e.isDisabled,n=e.isFocused,r=e.theme,a=r.colors,o=r.borderRadius,i=r.spacing;return{label:"control",alignItems:"center",backgroundColor:t?a.neutral5:a.neutral0,borderColor:t?a.neutral10:n?a.primary:a.neutral20,borderRadius:o,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(a.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:i.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?a.primary:a.neutral30}}},dt=function(e){var t=e.children,n=e.cx,r=e.getStyles,o=e.className,i=e.isDisabled,l=e.isFocused,u=e.innerRef,c=e.innerProps,f=e.menuIsOpen;return a.a.createElement("div",w({ref:u,className:n(Object(s["a"])(r("control",e)),{control:!0,"control--is-disabled":i,"control--is-focused":l,"control--menu-is-open":f},o)},c),t)},ht=function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},vt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.Heading,l=e.headingProps,u=e.label,c=e.theme,f=e.selectProps;return a.a.createElement("div",{className:r(Object(s["a"])(o("group",e)),{group:!0},n)},a.a.createElement(i,w({},l,{selectProps:f,theme:c,getStyles:o,cx:r}),u),a.a.createElement("div",null,t))},mt=function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},yt=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.theme,i=(e.selectProps,S(e,["className","cx","getStyles","theme","selectProps"]));return a.a.createElement("div",w({className:n(Object(s["a"])(r("groupHeading",k({theme:o},i))),{"group-heading":!0},t)},i))},gt=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,a=n.colors;return{margin:r.baseUnit/2,paddingBottom:r.baseUnit/2,paddingTop:r.baseUnit/2,visibility:t?"hidden":"visible",color:a.neutral80}},bt=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},xt=function(e){var t=e.className,n=e.cx,r=e.getStyles,o=e.innerRef,i=e.isHidden,l=e.isDisabled,u=e.theme,c=(e.selectProps,S(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return a.a.createElement("div",{className:Object(s["a"])(r("input",k({theme:u},c)))},a.a.createElement(v.a,w({className:n(null,{input:!0},t),inputRef:o,inputStyle:bt(i),disabled:l},c)))},_t=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,a=t.colors;return{label:"multiValue",backgroundColor:a.neutral10,borderRadius:r/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},wt=function(e){var t=e.theme,n=t.borderRadius,r=t.colors,a=e.cropWithEllipsis;return{borderRadius:n/2,color:r.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:a?"ellipsis":null,whiteSpace:"nowrap"}},kt=function(e){var t=e.theme,n=t.spacing,r=t.borderRadius,a=t.colors,o=e.isFocused;return{alignItems:"center",borderRadius:r/2,backgroundColor:o&&a.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}}},Tt=function(e){var t=e.children,n=e.innerProps;return a.a.createElement("div",n,t)},Et=Tt,Ot=Tt,Mt=function(e){function t(){return g(this,t),A(this,E(t).apply(this,arguments))}return T(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.innerProps;return a.a.createElement("div",n,t||a.a.createElement(Je,{size:14}))}}]),t}(r["Component"]),St=function(e){function t(){return g(this,t),A(this,E(t).apply(this,arguments))}return T(t,e),x(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.components,o=e.cx,i=e.data,l=e.getStyles,u=e.innerProps,c=e.isDisabled,f=e.removeProps,p=e.selectProps,d=r.Container,h=r.Label,v=r.Remove,m=k({className:o(Object(s["a"])(l("multiValue",this.props)),{"multi-value":!0,"multi-value--is-disabled":c},n)},u),y={className:o(Object(s["a"])(l("multiValueLabel",this.props)),{"multi-value__label":!0},n)},g=k({className:o(Object(s["a"])(l("multiValueRemove",this.props)),{"multi-value__remove":!0},n)},f);return a.a.createElement(d,{data:i,innerProps:m,selectProps:p},a.a.createElement(h,{data:i,innerProps:y,selectProps:p},t),a.a.createElement(v,{data:i,innerProps:g,selectProps:p}))}}]),t}(r["Component"]);_(St,"defaultProps",{cropWithEllipsis:!0});var Ct=function(e){var t=e.isDisabled,n=e.isFocused,r=e.isSelected,a=e.theme,o=a.spacing,i=a.colors;return{label:"option",backgroundColor:r?i.primary:n?i.primary25:"transparent",color:t?i.neutral20:r?i.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*o.baseUnit,"px ").concat(3*o.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(r?i.primary:i.primary50)}}},At=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,l=e.isFocused,u=e.isSelected,c=e.innerRef,f=e.innerProps;return a.a.createElement("div",w({ref:c,className:r(Object(s["a"])(o("option",e)),{option:!0,"option--is-disabled":i,"option--is-focused":l,"option--is-selected":u},n)},f),t)},Pt=function(e){var t=e.theme,n=t.spacing,r=t.colors;return{label:"placeholder",color:r.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},Lt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.innerProps;return a.a.createElement("div",w({className:r(Object(s["a"])(o("placeholder",e)),{placeholder:!0},n)},i),t)},Dt=function(e){var t=e.isDisabled,n=e.theme,r=n.spacing,a=n.colors;return{label:"singleValue",color:t?a.neutral40:a.neutral80,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2,maxWidth:"calc(100% - ".concat(2*r.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},jt=function(e){var t=e.children,n=e.className,r=e.cx,o=e.getStyles,i=e.isDisabled,l=e.innerProps;return a.a.createElement("div",w({className:r(Object(s["a"])(o("singleValue",e)),{"single-value":!0,"single-value--is-disabled":i},n)},l),t)},It={ClearIndicator:at,Control:dt,DropdownIndicator:nt,DownChevron:Qe,CrossIcon:Je,Group:vt,GroupHeading:yt,IndicatorsContainer:Xe,IndicatorSeparator:it,Input:xt,LoadingIndicator:ft,Menu:te,MenuList:re,MenuPortal:ce,LoadingMessage:se,NoOptionsMessage:le,MultiValue:St,MultiValueContainer:Et,MultiValueLabel:Ot,MultiValueRemove:Mt,Option:At,Placeholder:Lt,SelectContainer:$e,SingleValue:jt,ValueContainer:Ye},Rt=function(e){return k({},It,e.components)},zt={clearIndicator:rt,container:qe,control:pt,dropdownIndicator:tt,group:ht,groupHeading:mt,indicatorsContainer:Ke,indicatorSeparator:ot,input:gt,loadingIndicator:ut,loadingMessage:ie,menu:Q,menuList:ne,menuPortal:ue,multiValue:_t,multiValueLabel:wt,multiValueRemove:kt,noOptionsMessage:oe,option:Ct,placeholder:Pt,singleValue:Dt,valueContainer:Ge};function Nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=k({},e);return Object.keys(t).forEach((function(r){e[r]?n[r]=function(n,a){return t[r](e[r](n,a),a)}:n[r]=t[r]})),n}var Ft={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},Bt=4,Vt=4,Ht=38,Ut=2*Vt,Wt={baseUnit:Vt,controlHeight:Ht,menuGutter:Ut},qt={borderRadius:Bt,colors:Ft,spacing:Wt},$t={backspaceRemovesValue:!0,blurInputOnSelect:Y(),captureMenuScroll:!Y(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:xe(),formatGroupLabel:Ve,getOptionLabel:He,getOptionValue:Ue,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:We,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!K(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},Gt=1,Yt=function(e){function t(e){var n;g(this,t),n=A(this,E(t).call(this,e)),_(C(C(n)),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),_(C(C(n)),"blockOptionHover",!1),_(C(C(n)),"isComposing",!1),_(C(C(n)),"clearFocusValueOnUpdate",!1),_(C(C(n)),"commonProps",void 0),_(C(C(n)),"components",void 0),_(C(C(n)),"hasGroups",!1),_(C(C(n)),"initialTouchX",0),_(C(C(n)),"initialTouchY",0),_(C(C(n)),"inputIsHiddenAfterUpdate",void 0),_(C(C(n)),"instancePrefix",""),_(C(C(n)),"openAfterFocus",!1),_(C(C(n)),"scrollToFocusedOptionOnUpdate",!1),_(C(C(n)),"userIsDragging",void 0),_(C(C(n)),"controlRef",null),_(C(C(n)),"getControlRef",(function(e){n.controlRef=e})),_(C(C(n)),"focusedOptionRef",null),_(C(C(n)),"getFocusedOptionRef",(function(e){n.focusedOptionRef=e})),_(C(C(n)),"menuListRef",null),_(C(C(n)),"getMenuListRef",(function(e){n.menuListRef=e})),_(C(C(n)),"inputRef",null),_(C(C(n)),"getInputRef",(function(e){n.inputRef=e})),_(C(C(n)),"cacheComponents",(function(e){n.components=Rt({components:e})})),_(C(C(n)),"focus",n.focusInput),_(C(C(n)),"blur",n.blurInput),_(C(C(n)),"onChange",(function(e,t){var r=n.props,a=r.onChange,o=r.name;a(e,k({},t,{name:o}))})),_(C(C(n)),"setValue",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",r=arguments.length>2?arguments[2]:void 0,a=n.props,o=a.closeMenuOnSelect,i=a.isMulti;n.onInputChange("",{action:"set-value"}),o&&(n.inputIsHiddenAfterUpdate=!i,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:r})})),_(C(C(n)),"selectOption",(function(e){var t=n.props,r=t.blurInputOnSelect,a=t.isMulti,o=n.state.selectValue;if(a)if(n.isOptionSelected(e,o)){var i=n.getOptionValue(e);n.setValue(o.filter((function(e){return n.getOptionValue(e)!==i})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(P(o),[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,o)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));r&&n.blurInput()})),_(C(C(n)),"removeValue",(function(e){var t=n.state.selectValue,r=n.getOptionValue(e);n.onChange(t.filter((function(e){return n.getOptionValue(e)!==r})),{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()})),_(C(C(n)),"clearValue",(function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})})),_(C(C(n)),"popValue",(function(){var e=n.state.selectValue,t=e[e.length-1];n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(e.slice(0,e.length-1),{action:"pop-value",removedValue:t})})),_(C(C(n)),"getOptionLabel",(function(e){return n.props.getOptionLabel(e)})),_(C(C(n)),"getOptionValue",(function(e){return n.props.getOptionValue(e)})),_(C(C(n)),"getStyles",(function(e,t){var r=zt[e](t);r.boxSizing="border-box";var a=n.props.styles[e];return a?a(r,t):r})),_(C(C(n)),"getElementId",(function(e){return"".concat(n.instancePrefix,"-").concat(e)})),_(C(C(n)),"getActiveDescendentId",(function(){var e=n.props.menuIsOpen,t=n.state,r=t.menuOptions,a=t.focusedOption;if(a&&e){var o=r.focusable.indexOf(a),i=r.render[o];return i&&i.key}})),_(C(C(n)),"announceAriaLiveSelection",(function(e){var t=e.event,r=e.context;n.setState({ariaLiveSelection:ze(t,r)})})),_(C(C(n)),"announceAriaLiveContext",(function(e){var t=e.event,r=e.context;n.setState({ariaLiveContext:Re(t,k({},r,{label:n.props["aria-label"]}))})})),_(C(C(n)),"onMenuMouseDown",(function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())})),_(C(C(n)),"onMenuMouseMove",(function(e){n.blockOptionHover=!1})),_(C(C(n)),"onControlMouseDown",(function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&e.preventDefault()})),_(C(C(n)),"onDropdownIndicatorMouseDown",(function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!n.props.isDisabled){var t=n.props,r=t.isMulti,a=t.menuIsOpen;n.focusInput(),a?(n.inputIsHiddenAfterUpdate=!r,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}})),_(C(C(n)),"onClearIndicatorMouseDown",(function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,setTimeout((function(){return n.focusInput()})))})),_(C(C(n)),"onScroll",(function(e){"boolean"===typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&B(e.target)&&n.props.onMenuClose():"function"===typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()})),_(C(C(n)),"onCompositionStart",(function(){n.isComposing=!0})),_(C(C(n)),"onCompositionEnd",(function(){n.isComposing=!1})),_(C(C(n)),"onTouchStart",(function(e){var t=e.touches,r=t.item(0);r&&(n.initialTouchX=r.clientX,n.initialTouchY=r.clientY,n.userIsDragging=!1)})),_(C(C(n)),"onTouchMove",(function(e){var t=e.touches,r=t.item(0);if(r){var a=Math.abs(r.clientX-n.initialTouchX),o=Math.abs(r.clientY-n.initialTouchY),i=5;n.userIsDragging=a>i||o>i}})),_(C(C(n)),"onTouchEnd",(function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)})),_(C(C(n)),"onControlTouchEnd",(function(e){n.userIsDragging||n.onControlMouseDown(e)})),_(C(C(n)),"onClearIndicatorTouchEnd",(function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)})),_(C(C(n)),"onDropdownIndicatorTouchEnd",(function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)})),_(C(C(n)),"handleInputChange",(function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()})),_(C(C(n)),"onInputFocus",(function(e){var t=n.props,r=t.isSearchable,a=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:a}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1})),_(C(C(n)),"onInputBlur",(function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))})),_(C(C(n)),"onOptionHover",(function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})})),_(C(C(n)),"shouldHideSelectedOptions",(function(){var e=n.props,t=e.hideSelectedOptions,r=e.isMulti;return void 0===t?r:t})),_(C(C(n)),"onKeyDown",(function(e){var t=n.props,r=t.isMulti,a=t.backspaceRemovesValue,o=t.escapeClearsValue,i=t.inputValue,l=t.isClearable,s=t.isDisabled,u=t.menuIsOpen,c=t.onKeyDown,f=t.tabSelectsValue,p=t.openMenuOnFocus,d=n.state,h=d.focusedOption,v=d.focusedValue,m=d.selectValue;if(!s&&("function"!==typeof c||(c(e),!e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;n.focusValue("previous");break;case"ArrowRight":if(!r||i)return;n.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(v)n.removeValue(v);else{if(!a)return;r?n.popValue():l&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!u||!f||!h||p&&n.isOptionSelected(h,m))return;n.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(n.isComposing)return;n.selectOption(h);break}return;case"Escape":u?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):l&&o&&n.clearValue();break;case" ":if(i)return;if(!u){n.openMenu("first");break}if(!h)return;n.selectOption(h);break;case"ArrowUp":u?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":u?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!u)return;n.focusOption("pageup");break;case"PageDown":if(!u)return;n.focusOption("pagedown");break;case"Home":if(!u)return;n.focusOption("first");break;case"End":if(!u)return;n.focusOption("last");break;default:return}e.preventDefault()}}));var r=e.value;n.cacheComponents=l(n.cacheComponents,ve).bind(C(C(n))),n.cacheComponents(e.components),n.instancePrefix="react-select-"+(n.props.instanceId||++Gt);var a=N(r),o=n.buildMenuOptions(e,a);return n.state.menuOptions=o,n.state.selectValue=a,n}return T(t,e),x(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,r=t.value,a=t.inputValue;if(this.cacheComponents(e.components),e.value!==r||e.options!==n||e.inputValue!==a){var o=N(e.value),i=this.buildMenuOptions(e,o),l=this.getNextFocusedValue(o),s=this.getNextFocusedOption(i.focusable);this.setState({menuOptions:i,selectValue:o,focusedOption:s,focusedValue:l})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,a=this.state.isFocused;(a&&!n&&e.isDisabled||a&&r&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&$(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this.state,n=t.menuOptions,r=t.selectValue,a=t.isFocused,o=this.props.isMulti,i="first"===e?0:n.focusable.length-1;if(!o){var l=n.focusable.indexOf(r[0]);l>-1&&(i=l)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[i]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,r=t.isSearchable,a=this.state,o=a.selectValue,i=a.focusedValue;if(n){this.setState({focusedOption:null});var l=o.indexOf(i);i||(l=-1,this.announceAriaLiveContext({event:"value"}));var s=o.length-1,u=-1;if(o.length){switch(e){case"previous":u=0===l?0:-1===l?s:l-1;break;case"next":l>-1&&l<s&&(u=l+1);break}-1===u&&this.announceAriaLiveContext({event:"input",context:{isSearchable:r,isMulti:n}}),this.setState({inputIsHidden:-1!==u,focusedValue:o[u]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,r=n.focusedOption,a=n.menuOptions,o=a.focusable;if(o.length){var i=0,l=o.indexOf(r);r||(l=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?i=l>0?l-1:o.length-1:"down"===e?i=(l+1)%o.length:"pageup"===e?(i=l-t,i<0&&(i=0)):"pagedown"===e?(i=l+t,i>o.length-1&&(i=o.length-1)):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:We(o[i])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(qt):k({},qt,this.props.theme):qt}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,r=this.selectOption,a=this.props,o=a.classNamePrefix,i=a.isMulti,l=a.isRtl,s=a.options,u=this.state.selectValue,c=this.hasValue(),f=function(){return u},p=z.bind(null,o);return{cx:p,clearValue:e,getStyles:t,getValue:f,hasValue:c,isMulti:i,isRtl:l,options:s,selectOption:r,setValue:n,selectProps:a,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,r=t.selectValue,a=r.indexOf(n);if(a>-1){var o=e.indexOf(n);if(o>-1)return n;if(a<e.length)return e[a]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){var e=this.state.selectValue;return e.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"===typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"===typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var r=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===r}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(e,t){var n=this,r=e.inputValue,a=void 0===r?"":r,o=e.options,i=function(e,r){var o=n.isOptionDisabled(e,t),i=n.isOptionSelected(e,t),l=n.getOptionLabel(e),s=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&i||!n.filterOption({label:l,value:s,data:e},a))){var u=o?void 0:function(){return n.onOptionHover(e)},c=o?void 0:function(){return n.selectOption(e)},f="".concat(n.getElementId("option"),"-").concat(r);return{innerProps:{id:f,onClick:c,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:o,isSelected:i,key:f,label:l,type:"option",value:s}}};return o.reduce((function(e,t,r){if(t.options){n.hasGroups||(n.hasGroups=!0);var a=t.options,o=a.map((function(t,n){var a=i(t,"".concat(r,"-").concat(n));return a&&e.focusable.push(t),a})).filter(Boolean);if(o.length){var l="".concat(n.getElementId("group"),"-").concat(r);e.render.push({type:"group",key:l,data:t,options:o})}}else{var s=i(t,"".concat(r));s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,r=e.focusedValue,a=e.focusedOption,o=this.props,i=o.options,l=o.menuIsOpen,s=o.inputValue,u=o.screenReaderStatus,c=r?Ne({focusedValue:r,getOptionLabel:this.getOptionLabel,selectValue:n}):"",f=a&&l?Fe({focusedOption:a,getOptionLabel:this.getOptionLabel,options:i}):"",p=Be({inputValue:s,screenReaderMessage:u({count:this.countOptions()})});return"".concat(c," ").concat(f," ").concat(p," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,r=e.inputId,o=e.inputValue,i=e.tabIndex,l=this.components.Input,s=this.state.inputIsHidden,u=r||this.getElementId("input");if(!n)return a.a.createElement(we,{id:u,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:I,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:i,value:""});var c={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},f=this.commonProps,p=f.cx,d=f.theme,h=f.selectProps;return a.a.createElement(l,w({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:u,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:h,spellCheck:"false",tabIndex:i,theme:d,type:"text",value:o},c))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,r=t.MultiValueContainer,o=t.MultiValueLabel,i=t.MultiValueRemove,l=t.SingleValue,s=t.Placeholder,u=this.commonProps,c=this.props,f=c.controlShouldRenderValue,p=c.isDisabled,d=c.isMulti,h=c.inputValue,v=c.placeholder,m=this.state,y=m.selectValue,g=m.focusedValue,b=m.isFocused;if(!this.hasValue()||!f)return h?null:a.a.createElement(s,w({},u,{key:"placeholder",isDisabled:p,isFocused:b}),v);if(d){var x=y.map((function(t){var l=t===g;return a.a.createElement(n,w({},u,{components:{Container:r,Label:o,Remove:i},isFocused:l,isDisabled:p,key:e.getOptionValue(t),removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));return x}if(h)return null;var _=y[0];return a.a.createElement(l,w({},u,{data:_,isDisabled:p}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!this.isClearable()||!e||r||!this.hasValue()||o)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return a.a.createElement(e,w({},t,{innerProps:l,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,r=n.isDisabled,o=n.isLoading,i=this.state.isFocused;if(!e||!o)return null;var l={"aria-hidden":"true"};return a.a.createElement(e,w({},t,{innerProps:l,isDisabled:r,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var r=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return a.a.createElement(n,w({},r,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,r=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return a.a.createElement(e,w({},t,{innerProps:o,isDisabled:n,isFocused:r}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,r=t.GroupHeading,o=t.Menu,i=t.MenuList,l=t.MenuPortal,s=t.LoadingMessage,u=t.NoOptionsMessage,c=t.Option,f=this.commonProps,p=this.state,d=p.focusedOption,h=p.menuOptions,v=this.props,m=v.captureMenuScroll,y=v.inputValue,g=v.isLoading,b=v.loadingMessage,x=v.minMenuHeight,_=v.maxMenuHeight,k=v.menuIsOpen,T=v.menuPlacement,E=v.menuPosition,O=v.menuPortalTarget,M=v.menuShouldBlockScroll,C=v.menuShouldScrollIntoView,A=v.noOptionsMessage,P=v.onMenuScrollToTop,L=v.onMenuScrollToBottom;if(!k)return null;var D,j=function(t){var n=d===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,a.a.createElement(c,w({},f,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())D=h.render.map((function(t){if("group"===t.type){t.type;var o=S(t,["type"]),i="".concat(t.key,"-heading");return a.a.createElement(n,w({},f,o,{Heading:r,headingProps:{id:i},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return j(e)})))}if("option"===t.type)return j(t)}));else if(g){var I=b({inputValue:y});if(null===I)return null;D=a.a.createElement(s,f,I)}else{var R=A({inputValue:y});if(null===R)return null;D=a.a.createElement(u,f,R)}var z={minMenuHeight:x,maxMenuHeight:_,menuPlacement:T,menuPosition:E,menuShouldScrollIntoView:C},N=a.a.createElement(ee,w({},f,z),(function(t){var n=t.ref,r=t.placerProps,l=r.placement,s=r.maxHeight;return a.a.createElement(o,w({},f,z,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:g,placement:l}),a.a.createElement(Ie,{isEnabled:m,onTopArrive:P,onBottomArrive:L},a.a.createElement(De,{isEnabled:M},a.a.createElement(i,w({},f,{innerRef:e.getMenuListRef,isLoading:g,maxHeight:s}),D))))}));return O||"fixed"===E?a.a.createElement(l,w({},f,{appendTo:O,controlElement:this.controlRef,menuPlacement:T,menuPosition:E}),N):N}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,o=t.isMulti,i=t.name,l=this.state.selectValue;if(i&&!r){if(o){if(n){var s=l.map((function(t){return e.getOptionValue(t)})).join(n);return a.a.createElement("input",{name:i,type:"hidden",value:s})}var u=l.length>0?l.map((function(t,n){return a.a.createElement("input",{key:"i-".concat(n),name:i,type:"hidden",value:e.getOptionValue(t)})})):a.a.createElement("input",{name:i,type:"hidden"});return a.a.createElement("div",null,u)}var c=l[0]?this.getOptionValue(l[0]):"";return a.a.createElement("input",{name:i,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?a.a.createElement(_e,{"aria-live":"assertive"},a.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),a.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,r=e.SelectContainer,o=e.ValueContainer,i=this.props,l=i.className,s=i.id,u=i.isDisabled,c=i.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return a.a.createElement(r,w({},p,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:f}),this.renderLiveRegion(),a.a.createElement(t,w({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:f,menuIsOpen:c}),a.a.createElement(o,w({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),a.a.createElement(n,w({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),t}(r["Component"]);_(Yt,"defaultProps",$t);var Kt={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},Xt=function(e){var t,n;return n=t=function(t){function n(){var e,t;g(this,n);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return t=A(this,(e=E(n)).call.apply(e,[this].concat(a))),_(C(C(t)),"select",void 0),_(C(C(t)),"state",{inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue}),_(C(C(t)),"onChange",(function(e,n){t.callProp("onChange",e,n),t.setState({value:e})})),_(C(C(t)),"onInputChange",(function(e,n){var r=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==r?r:e})})),_(C(C(t)),"onMenuOpen",(function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})})),_(C(C(t)),"onMenuClose",(function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})})),t}return T(n,t),x(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"===typeof this.props[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return(t=this.props)[e].apply(t,r)}}},{key:"render",value:function(){var t=this,n=this.props,r=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,S(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return a.a.createElement(e,w({},r,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(r["Component"]),_(t,"defaultProps",Kt),n},Zt={cacheOptions:!1,defaultOptions:!1,filterOption:null},Jt=function(e){var t,n;return n=t=function(t){function n(e){var t;return g(this,n),t=A(this,E(n).call(this)),_(C(C(t)),"select",void 0),_(C(C(t)),"lastRequest",void 0),_(C(C(t)),"mounted",!1),_(C(C(t)),"optionsCache",{}),_(C(C(t)),"handleInputChange",(function(e,n){var r=t.props,a=r.cacheOptions,o=r.onInputChange,i=F(e,n,o);if(!i)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(a&&t.optionsCache[i])t.setState({inputValue:i,loadedInputValue:i,loadedOptions:t.optionsCache[i],isLoading:!1,passEmptyOptions:!1});else{var l=t.lastRequest={};t.setState({inputValue:i,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(i,(function(e){t.mounted&&(e&&(t.optionsCache[i]=e),l===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:i,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return i})),t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:"undefined"!==typeof e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return T(n,t),x(n,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var r=n(e,t);r&&"function"===typeof r.then&&r.then(t,(function(){return t()}))}},{key:"render",value:function(){var t=this,n=this.props,r=(n.loadOptions,S(n,["loadOptions"])),o=this.state,i=o.defaultOptions,l=o.inputValue,s=o.isLoading,u=o.loadedInputValue,c=o.loadedOptions,f=o.passEmptyOptions,p=f?[]:l&&u?c:i||[];return a.a.createElement(e,w({},r,{ref:function(e){t.select=e},options:p,isLoading:s,onInputChange:this.handleInputChange}))}}]),n}(r["Component"]),_(t,"defaultProps",Zt),n},Qt=Xt(Yt),en=Jt(Qt),tn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=String(e).toLowerCase(),r=String(t.value).toLowerCase(),a=String(t.label).toLowerCase();return r===n||a===n},nn={formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n){return!(!e||t.some((function(t){return tn(e,t)}))||n.some((function(t){return tn(e,t)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}},rn=k({allowCreateWhileLoading:!1,createOptionPosition:"last"},nn),an=function(e){var t,n;return n=t=function(t){function n(e){var t;g(this,n),t=A(this,E(n).call(this,e)),_(C(C(t)),"select",void 0),_(C(C(t)),"onChange",(function(e,n){var r=t.props,a=r.getNewOptionData,o=r.inputValue,i=r.isMulti,l=r.onChange,s=r.onCreateOption,u=r.value;if("select-option"!==n.action)return l(e,n);var c=t.state.newOption,f=Array.isArray(e)?e:[e];if(f[f.length-1]!==c)l(e,n);else if(s)s(o);else{var p=a(o,o),d={action:"create-option"};l(i?[].concat(P(N(u)),[p]):p,d)}}));var r=e.options||[];return t.state={newOption:void 0,options:r},t}return T(n,t),x(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.allowCreateWhileLoading,n=e.createOptionPosition,r=e.formatCreateLabel,a=e.getNewOptionData,o=e.inputValue,i=e.isLoading,l=e.isValidNewOption,s=e.value,u=e.options||[],c=this.state.newOption;c=l(o,N(s),u)?a(o,r(o)):void 0,this.setState({newOption:c,options:!t&&i||!c?u:"first"===n?[c].concat(P(u)):[].concat(P(u),[c])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,n=w({},this.props),r=this.state.options;return a.a.createElement(e,w({},n,{ref:function(e){t.select=e},options:r,onChange:this.onChange}))}}]),n}(r["Component"]),_(t,"defaultProps",rn),n},on=an(Yt),ln=Xt(on),sn=an(Yt),un=Xt(sn),cn=Jt(un),fn=function(e){return function(t){t.in,t.onExited,t.appear,t.enter,t.exit;var n=S(t,["in","onExited","appear","enter","exit"]);return a.a.createElement(e,n)}},pn=function(e){var t=e.component,n=e.duration,r=void 0===n?1:n,o=e.in,i=(e.onExited,S(e,["component","duration","in","onExited"])),l={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(r,"ms")},exiting:{opacity:0},exited:{opacity:0}};return a.a.createElement(m["Transition"],{mountOnEnter:!0,unmountOnExit:!0,in:o,timeout:r},(function(e){var n={style:k({},l[e])};return a.a.createElement(t,w({innerProps:n},i))}))},dn=260,hn=function(e){function t(){var e,n;g(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return n=A(this,(e=E(t)).call.apply(e,[this].concat(a))),_(C(C(n)),"duration",dn),_(C(C(n)),"rafID",void 0),_(C(C(n)),"state",{width:"auto"}),_(C(C(n)),"transition",{exiting:{width:0,transition:"width ".concat(n.duration,"ms ease-out")},exited:{width:0}}),_(C(C(n)),"getWidth",(function(e){e&&isNaN(n.state.width)&&(n.rafID=window.requestAnimationFrame((function(){var t=e.getBoundingClientRect(),r=t.width;n.setState({width:r})})))})),_(C(C(n)),"getStyle",(function(e){return{overflow:"hidden",whiteSpace:"nowrap",width:e}})),_(C(C(n)),"getTransition",(function(e){return n.transition[e]})),n}return T(t,e),x(t,[{key:"componentWillUnmount",value:function(){this.rafID&&window.cancelAnimationFrame(this.rafID)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.in,o=this.state.width;return a.a.createElement(m["Transition"],{enter:!1,mountOnEnter:!0,unmountOnExit:!0,in:r,timeout:this.duration},(function(t){var r=k({},e.getStyle(o),e.getTransition(t));return a.a.createElement("div",{ref:e.getWidth,style:r},n)}))}}]),t}(r["Component"]),vn=function(e){return function(t){var n=t.in,r=t.onExited,o=S(t,["in","onExited"]);return a.a.createElement(hn,{in:n,onExited:r},a.a.createElement(e,w({cropWithEllipsis:n},o)))}},mn=function(e){return function(t){return a.a.createElement(pn,w({component:e,duration:t.isMulti?dn:1},t))}},yn=function(e){return function(t){return a.a.createElement(pn,w({component:e},t))}},gn=function(e){return function(t){return a.a.createElement(m["TransitionGroup"],w({component:e},t))}},bn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Rt({components:e}),n=t.Input,r=t.MultiValue,a=t.Placeholder,o=t.SingleValue,i=t.ValueContainer,l=S(t,["Input","MultiValue","Placeholder","SingleValue","ValueContainer"]);return k({Input:fn(n),MultiValue:vn(r),Placeholder:mn(a),SingleValue:yn(o),ValueContainer:gn(i)},l)},xn=bn(),_n=(xn.Input,xn.MultiValue,xn.Placeholder,xn.SingleValue,xn.ValueContainer,l(bn,ve)),wn=Xt(Yt);t["default"]=wn},cb83:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("circle",{cx:"23",cy:"31",r:"3",fill:"#1d9bfb"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M23 23v16m4 0h-8m8-16h-8",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("circle",{cx:"11",cy:"23",r:"3",fill:"#1d9bfb"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M11 11v24m4 0H7m8-24H7",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("circle",{cx:"35",cy:"21",r:"3",fill:"#1d9bfb"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M35 9v24m4 0h-8m8-24h-8",strokeMiterlimit:"10",strokeWidth:"2"}))};t.default=u},cb8a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n("ab5b")),a=p(n("7515")),o=p(n("88e7")),i=p(n("d7bc")),l=n("e419"),s=p(n("ad9c")),u=n("8704"),c=n("4578"),f=n("c85e");function p(e){return e&&e.__esModule?e:{default:e}}function d(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return d=function(){return e},e}function h(e){if(e&&e.__esModule)return e;if(null===e||"object"!==v(e)&&"function"!==typeof e)return{default:e};var t=d();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function v(e){return v="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},v(e)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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 b(e,t,n){return t&&g(e.prototype,t),n&&g(e,n),e}function x(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&&_(e,t)}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function w(e){var t=E();return function(){var n,r=O(e);if(t){var a=O(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==v(t)&&"function"!==typeof t?T(e):t}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(){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}}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var M=function(e){x(n,e);var t=w(n);function n(){return y(this,n),t.apply(this,arguments)}return b(n,[{key:"canAddSubplot",value:function(){var e=this,t=this.props.fullContainer[this.props.attr],n=this.props.fullContainer.index;return this.context.fullData.some((function(r){return r.index!==n&&r[e.props.attr]===t}))}},{key:"addAndUpdateSubplot",value:function(){var e=this.props,t=e.attr,n=e.layoutAttr,r=e.updateContainer,a=this.context.fullLayout._subplots,o=Number(a[n][a[n].length-1].split(l.SUBPLOT_TO_ATTR[n].layout)[1])||1;r(m({},t,l.SUBPLOT_TO_ATTR[n].layout+(o+1)))}},{key:"updateSubplot",value:function(e){var t=this,n=this.props.fullContainer[l.SUBPLOT_TO_ATTR[this.props.layoutAttr].data],r=null;n===e||this.context.fullData.some((function(e){return e[l.SUBPLOT_TO_ATTR[t.props.layoutAttr].data]===n&&e.index!==t.props.fullContainer.index}))||(r=n),this.context.onUpdate({type:l.EDITOR_ACTIONS.UPDATE_TRACES,payload:{subplotToBeGarbageCollected:r,update:m({},this.props.attr,e),traceIndexes:[this.props.fullContainer.index]}})}},{key:"render",value:function(){var e=this,t=r.default.createElement(u.PlusIcon,null),n=this.canAddSubplot()?r.default.createElement(s.default,{variant:"no-text",icon:t,onClick:function(){return e.addAndUpdateSubplot()}}):r.default.createElement(s.default,{variant:"no-text--disabled",icon:t,onClick:function(){}});return r.default.createElement(a.default,{label:this.props.label,attr:this.props.attr,clearable:!1,options:this.props.options,updatePlot:function(t){return e.updateSubplot(t)},extraComponent:n})}}]),n}(r.Component);M.propTypes={attr:i.default.string,layoutAttr:i.default.string,label:i.default.string,options:i.default.array,container:i.default.object,fullContainer:i.default.object,updateContainer:i.default.func},M.contextTypes={fullLayout:i.default.object,data:i.default.array,fullData:i.default.array,onUpdate:i.default.func};var S=(0,c.connectToContainer)(M),C=function(e){x(n,e);var t=w(n);function n(){return y(this,n),t.apply(this,arguments)}return b(n,[{key:"render",value:function(){var e=this,t=(0,c.traceTypeToAxisType)(this.props.container.type);if(!["geo","mapbox","polar","gl3d","ternary"].some((function(e){return e===t})))return null;var n=1===this.context.data.filter((function(e){return(0,c.traceTypeToAxisType)(e.type)===t})).length;if(n)return null;var a=this.context,i=a.fullLayout,s=a.localize;function u(e){return i._subplots[e].map((function(t){return{label:(0,c.getSubplotTitle)(t,e,s),value:t}}))}return r.default.createElement(f.PlotlySection,{name:s("Subplots to Use")},r.default.createElement(S,{attr:l.SUBPLOT_TO_ATTR[t].data,layoutAttr:t,label:(0,l.subplotName)(l.SUBPLOT_TO_ATTR[t].layout,s),options:u(t)}),r.default.createElement(o.default,null,s("You can style and position your subplots in the "),r.default.createElement("a",{onClick:function(){return e.context.setPanel("Structure","Subplots")}},s("Subplots")),s(" panel.")))}}]),n}(r.Component);C.propTypes={container:i.default.object,fullContainer:i.default.object},C.contextTypes={data:i.default.array,fullData:i.default.array,fullLayout:i.default.object,localize:i.default.func,setPanel:i.default.func};var A=(0,c.connectToContainer)(C,{modifyPlotProps:function(e,t,n){var r=t.data,a=n.fullContainer;n.isVisible=r.length>1&&r[a.index]&&["geo","mapbox","polar","gl3d","ternary"].some((function(e){return e===(0,c.traceTypeToAxisType)(r[a.index].type)}))}});t.default=A},cbb3:function(e,t,n){"use strict";var r={};function a(e){e&&null!==e.timer&&(clearTimeout(e.timer),e.timer=null)}t.throttle=function(e,t,n){var o=r[e],i=Date.now();if(!o){for(var l in r)r[l].ts<i-6e4&&delete r[l];o=r[e]={ts:0,timer:null}}function s(){n(),o.ts=Date.now(),o.onDone&&(o.onDone(),o.onDone=null)}a(o),i>o.ts+t?s():o.timer=setTimeout((function(){s(),o.timer=null}),t)},t.done=function(e){var t=r[e];return t&&t.timer?new Promise((function(e){var n=t.onDone;t.onDone=function(){n&&n(),e(),t.onDone=null}})):Promise.resolve()},t.clear=function(e){if(e)a(r[e]),delete r[e];else for(var n in r)t.clear(n)}},cc0c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M32.375 7.625c-.125 0-.125.125-.25 0v-.313h-.25c0-.375-.25-.625-.25-1.063-.188 0-.313 0-.313-.125l-.25.25c-.125 0 0-.125-.125-.125-.25.438-.375.938-.25 1.375-.125.125-.125.375-.125.5h-.313c0 .125 0 .25-.125.25-.375.188-.813.313-1.188.313-.125 0-.375 0-.563.125-.125.125-.25.375-.375.5s-.25.125-.25.313c.125.125.125.25.125.375-.438.688-1.063.375-1.625.688 0 .125.125.25.125.375-.5.688-1.188 1.063-1.813 1.5-.188 0-.438-.188-.563-.313 0-.25.25-.5.375-.625 0-.438-.125-.813-.375-1.063l-.375.375c-.188 0-.188-.125-.188-.25.438-.125.188-.813.313-.938-.125 0-.125-.125-.125-.125-.438 0-.688-.438-.938 0 0 .125.125 0 .125.125-.125 0-.125 0-.25.125 0 .25.125.375-.188.375 0-.125.188-.25 0-.375-.25.375-.375.938-.375 1.438.375.438.25 1.063-.125 1.5l-.125.125c-.813-.688-.313-2.125-.125-2.938-.188.25-.313.375-.563.563.25-.563.375-.938.563-1.25.25 0 .625-.125.938-.25h.75c-.125 0-.25-.125-.125-.375h-.375v-.313c-.438.188-.938.313-1.375.313 0-.313-.25-.313-.5-.313h-.125c.125-.25.125-.375.375-.5-.25 0-.5.125-.625.375-.313.125-.563.313-.813.438 0-.125-.313 0-.313-.125 0 0 .188-.188.188-.313-.313.125-.438.125-.688.125.25-.25.375-.375.688-.625.25-.125.5-.313.625-.438-.25 0-.5 0-.625-.125-.188.125-.438.125-.563 0l-.125-.125c-.25-.125-.563-.125-.938-.125-.125-.125-.25-.125-.563-.125-.125-.125 0-.563-.25-.563-.125 0 0 .313-.125.313-4.813 0-9.625-.563-14.25-1.875.125.625.125.938.125 1.188-.125 0-.25-.125-.125-.25-.125 0-.125 0-.25.125-.313-.125-.563-.313-.813-.438-.125.438 0 .813.125 1.25h-.125s0 .125.125.125c-.125.125-.25.25 0 .375-.125 0-.125.125-.125.125-.438.813-.688 1.625-1.188 2.25 0 .188 0 .438-.188.563 0 .563-.125 1.063-.375 1.438.375.313 0 .813.125 1.125.125.125.25.375.25.625 0 .125 0 .438.188.438-.188.25 0 .625.25.75 0 .188-.125.188-.125.313 0 .5.5.75.5 1.313v.563c.438.125.813.375 1.188.625v.125c.438.125.688.563.563 1.063.375.188.938.313 1.438.313 0 .125-.125 0-.125.125.563.25 1.063.625 1.625 1.063.813.375 1.563.5 2.5.688 0-.188 0-.313.188-.438.375.125.75.125 1.063.125.25.438.5.688.75.938.313.125.438.438.438.688.25.375.5.688.938.813.125-.313.375-.563.625-.688.688 0 1.375.688 1.375 1.313.25.125.25.563.5.688-.125.938.938 1.188 1.5 1.313-.125-.5-.125-1.063 0-1.438.625-.438 1.313-.813 1.875-1.188.625-.313 1.313-.313 2-.125 0-.313-.313 0-.313-.188.313-.25.438.188.688.188v.125c.125.125.25.125.375.125.188-.125.188-.125.313-.125.125.125-.125.125 0 .125.125-.125.25-.25.25-.438 0 .188.5.438.5.188-.125 0-.25-.188-.5-.313.125 0 .25-.25.125-.375-.125.125-.125.125-.25.125.125-.375.5-.375 1.063-.375 0 0 0-.313.125-.313s.125.313 0 .313c.563-.438 1.313-.313 1.875.25.25 0 .5-.125.688-.438.625 0 .5.563 1.063.563.25.25 0 .938.25 1.188v-.25h.125c0 .125-.125.25-.125.25.125.25.375.563.5.688l.188-.125c.125.125.125.25.125.375.25 0 .5.25.5.563.125-.125.25-.125.563-.125 0 .25-.438.25-.438.5.313-.125.438-.375.563-.688-.125 0 0 .188-.125.188.125-.813-.125-1.625-.563-2.313 0 0 .125 0 .125-.125-.625-.5-1.063-1.563-.75-2.5.125-.188.25-.438.25-.563.25-.125.5-.375.625-.688 0-.375.188-.625.563-.625h.125c0-.813.938-.563.938-1.063-.125.125-.25.125-.375 0 .125.125.25-.125.125-.313.125.188.375 0 .5-.125v-.125h-.25c.125 0 .25 0 .25-.125-.125-.25-.25-.563-.375-.813h-.25c.125-.125-.125-.25-.125-.375h.125a.657.657 0 0 0-.313-.563c.188 0 0-.125.188-.125-.313-.125-.313-.813 0-.938-.188.125.125.25-.188.563.188 0 0 0 .188.25.125.125.25.125.25.25v-.25c.375.125 0 .688.25.938.25-.563.25-.938.25-1.5-.25-.125-.375-.25-.375-.5.125.25.25.375.375.375v.125c.438-.375.563-.75.438-1.313h-.125c.125 0 0-.125.125-.125v-.125c.375-.438.938-.688 1.438-.938 0-.125 0-.125.125-.25 0 .125 0 .125-.125.25.125-.125.25-.25.563-.25 0-.125 0-.313-.313-.313.188.188.188.188.188.313-.313.25-.438-.438-.688-.313 0-.375 0-.75.125-1.188.25 0 .375-.125.563-.25v-.375s.125 0 .125.125-.125 0-.125.125c.25-.125.375-.25.375-.438 0 .188 0 .188.125.188s-.125-.188-.125-.313c.25.125.813-.375.375-.625zM5.313 13.313h2.688v2.688H5.313zm0-4h2.688v2.688H5.313zm-4 0h2.688v2.688H1.313zm0 4h2.688v2.688H1.313zm12 4h2.688v2.688h-2.688zm4-8h2.688v2.688h-2.688zm0 4h2.688v2.688h-2.688zm0 4h2.688v2.688h-2.688zm-4-8h2.688v2.688h-2.688zm0 4h2.688v2.688h-2.688zm8 0h2.688v2.688h-2.688zm0 4h2.688v2.688h-2.688zm4-4h2.688v2.688h-2.688zm-16-4h2.688v2.688H9.313zm0 4h2.688v2.688H9.313zm0 4h2.688v2.688H9.313z"}))};t.default=u},cc12:function(e,t,n){var r=n("da84"),a=n("861d"),o=r.document,i=a(o)&&a(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},cc1a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 1360 1360"},e),o.default.createElement("path",{fill:"currentColor",d:"M225.789 819.922l222.98-96.366-104.28-115.568zM560.889 447.017L773.026 328.73l-115.36-104.498zM652.143 812.807l232.156-71.453-91.035-126.252zM925.186 966.93l238.652-45.326-76.505-135.553zM294.912 1135.768l233.006-68.614-89.48-127.343zM928.172 538.308l236.041-57.275-83.24-131.544z"}))};t.default=u},cc1a8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=g(n("5174")),a=g(n("d7bc")),o=y(n("ab5b")),i=n("4578"),l=g(n("37cc")),s=g(n("fe58")),u=g(n("b74c")),c=g(n("134d")),f=g(n("e518")),p=g(n("88e7")),d=g(n("76fe")),h=g(n("6bd2")),v=n("e419");function m(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return m=function(){return e},e}function y(e){if(e&&e.__esModule)return e;if(null===e||"object"!==_(e)&&"function"!==typeof e)return{default:e};var t=m();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function g(e){return e&&e.__esModule?e:{default:e}}function b(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 x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e){return _="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)}function w(){return w=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},w.apply(this,arguments)}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a 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)}}function O(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),e}function M(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&&S(e,t)}function S(e,t){return S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},S(e,t)}function C(e){var t=L();return function(){var n,r=D(e);if(t){var a=D(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return A(this,n)}}function A(e,t){return!t||"object"!==_(t)&&"function"!==typeof t?P(e):t}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(){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}}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}var j=function(e){M(n,e);var t=C(n);function n(e,r){var a;T(this,n),a=t.call(this,e,r);var o=null;return!e.container.marker||e.container.marker&&!e.container.marker.colorsrc?o="constant":e.container.marker&&Array.isArray(e.container.marker.color)&&e.fullContainer.marker&&Array.isArray(e.fullContainer.marker.color)&&(o="variable"),a.state={type:o,value:{constant:"constant"===o?e.fullValue:v.COLORS.mutedBlue,variable:"variable"===o?e.fullValue:null},selectedConstantColorOption:"constant"===o&&e.multiValued?"multiple":"single"},a.setType=a.setType.bind(P(a)),a.setColor=a.setColor.bind(P(a)),a.setColorScale=a.setColorScale.bind(P(a)),a.onConstantColorOptionChange=a.onConstantColorOptionChange.bind(P(a)),a}return O(n,[{key:"setType",value:function(e){var t,n;this.state.type!==e&&(this.setState({type:e}),this.props.updatePlot(this.state.value[e]),"constant"===e?(this.context.updateContainer((t={},k(t,"marker.colorsrc",null),k(t,"marker.colorscale",null),k(t,"marker.showscale",null),t)),this.setState({colorscale:null})):this.context.updateContainer((n={},k(n,"marker.color",null),k(n,"marker.colorsrc",null),k(n,"marker.colorscale",null),n)))}},{key:"setColor",value:function(e){var t=this.state.type;this.setState("constant"===t?{value:{constant:e}}:{value:{variable:e}}),this.props.updatePlot(e)}},{key:"setColorScale",value:function(e){this.setState({colorscale:e}),this.context.updateContainer(k({},"marker.colorscale",e))}},{key:"isMultiValued",value:function(){return this.props.multiValued||Array.isArray(this.props.fullValue)&&this.props.fullValue.includes(v.MULTI_VALUED)||this.props.container.marker&&this.props.container.marker.colorscale&&this.props.container.marker.colorscale===v.MULTI_VALUED||this.props.container.marker&&this.props.container.marker.colorsrc&&this.props.container.marker.colorsrc===v.MULTI_VALUED||this.props.container.marker&&this.props.container.marker.color&&Array.isArray(this.props.container.marker.color)&&this.props.container.marker.color.includes(v.MULTI_VALUED)}},{key:"onConstantColorOptionChange",value:function(e){this.setState({selectedConstantColorOption:e})}},{key:"renderConstantControls",value:function(){var e=this.context.localize;return o.default.createElement(s.default,{attr:"marker.color",multiColorMessage:e("Each trace will be colored according to the selected colorscale."),singleColorMessage:e("All traces will be colored in the the same color."),setColor:this.setColor,setColorScale:this.setColorScale,onConstantColorOptionChange:this.onConstantColorOptionChange,parentSelectedConstantColorOption:this.state.selectedConstantColorOption})}},{key:"renderVariableControls",value:function(){var e=this.props.container&&this.props.container.marker&&(this.props.container.marker.colorscale&&this.props.container.marker.colorscale===v.MULTI_VALUED||this.props.container.marker.colorsrc&&this.props.container.marker.colorsrc===v.MULTI_VALUED);return o.default.createElement(r.default,{multiValued:e},o.default.createElement(d.default,{suppressMultiValuedMessage:!0,attr:"marker.color"}),this.props.container.marker&&this.props.container.marker.colorscale===v.MULTI_VALUED?null:o.default.createElement(u.default,{suppressMultiValuedMessage:!0,attr:"marker.colorscale",updatePlot:this.setColorScale,colorscale:this.state.colorscale}))}},{key:"render",value:function(){var e=this.props.attr,t=this.context,n=t.localize,a=t.container,i=a&&(!a.transforms||!a.transforms.filter((function(e){return"groupby"===e.type})).length);if(i){var s=this.state.type,u=[{label:n("Constant"),value:"constant"},{label:n("Variable"),value:"variable"}];return o.default.createElement(o.default.Fragment,null,o.default.createElement(r.default,w({},this.props,{attr:e}),o.default.createElement(r.default,{multiValued:this.isMultiValued()&&!this.state.type},o.default.createElement(l.default,{options:u,activeOption:s,onOptionChange:this.setType}),s?o.default.createElement(p.default,null,n("constant"===s?"All points in a trace are colored in the same color.":"Each point in a trace is colored according to data.")):null),s?"constant"===s?this.renderConstantControls():this.renderVariableControls():null),"constant"===s?null:o.default.createElement(o.default.Fragment,null,o.default.createElement(f.default,{label:n("Colorscale Direction"),attr:"marker.reversescale",options:[{label:n("Normal"),value:!1},{label:n("Reversed"),value:!0}]}),o.default.createElement(f.default,{label:n("Color Bar"),attr:"marker.showscale",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),o.default.createElement(h.default,{label:n("Colorscale Range"),attr:"marker.cauto",options:[{label:n("Auto"),value:!0},{label:n("Custom"),value:!1}],showOn:!1,defaultOpt:!0},o.default.createElement(c.default,{label:n("Min"),attr:"marker.cmin"}),o.default.createElement(c.default,{label:n("Max"),attr:"marker.cmax"}))))}return o.default.createElement(r.default,w({},this.props,{attr:e}),this.renderConstantControls())}}]),n}(o.Component);j.propTypes=x({fullValue:a.default.any,updatePlot:a.default.func},r.default.propTypes),j.contextTypes={localize:a.default.func,updateContainer:a.default.func,traceIndexes:a.default.array,container:a.default.object},j.displayName="UnconnectedMarkerColor";var I=(0,i.connectToContainer)(j);t.default=I},cc45:function(e,t,n){var r=n("1a2d"),a=n("b047"),o=n("99d3"),i=o&&o.isMap,l=i?a(i):r;e.exports=l},cca6:function(e,t,n){var r=n("23e7"),a=n("60da");r({target:"Object",stat:!0,forced:Object.assign!==a},{assign:a})},cce4:function(e,t,n){"use strict";var r=n("1b23");function a(e){if(r(e)){var t=e,n=t.getAttribute("data-offset-key");if(n)return n;for(var o=0;o<t.childNodes.length;o++){var i=a(t.childNodes[o]);if(i)return i}}return null}e.exports=a},cce7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 1360 1360"},e),o.default.createElement("path",{fill:"#119DFF",d:"M1228.136 100.738H142.678c-13.995 0-25.34 11.345-25.34 25.34v353.428c-.406 1.799-.638 3.666-.638 5.587s.232 3.788.638 5.587v358.063a25.342 25.342 0 0 0-.638 5.588c0 1.921.232 3.787.638 5.587v351.618c0 13.995 11.345 25.34 25.34 25.34h1085.458c13.995 0 25.34-11.345 25.34-25.34V126.078c0-13.995-11.345-25.34-25.34-25.34zM522.775 828.992V510.434h318.557v318.559H522.775zm318.557 50.68v306.525H522.775V879.672h318.557zM168.018 510.434h304.078v318.558H168.018V510.434zm354.757-50.68V151.418h318.557v308.336H522.775zm369.237 50.68h310.784v318.559H892.012V510.434zm310.784-50.68H892.012V151.418h310.784v308.336zM472.095 151.418v308.336H168.018V151.418h304.077zM168.018 879.672h304.078v306.525H168.018V879.672zm723.994 306.525V879.672h310.784v306.525H892.012z"}),o.default.createElement("path",{fill:"#09FFFF",d:"M208.282 1104.347c13.151-13.15 34.473-13.15 47.622 0 13.153 13.15 13.153 34.473 0 47.623-13.149 13.151-34.471 13.151-47.622 0-13.153-13.151-13.153-34.473 0-47.623zM325.674 931.91c28.12-28.129 73.727-28.129 101.854 0 28.12 28.12 28.12 73.725 0 101.847-28.127 28.129-73.734 28.129-101.854 0-28.126-28.122-28.126-73.727 0-101.847zM387.282 1104.347c13.147-13.15 34.471-13.15 47.622 0 13.151 13.15 13.151 34.475 0 47.623-13.15 13.151-34.475 13.151-47.622 0-13.151-13.149-13.151-34.473 0-47.623z"}),o.default.createElement("path",{fill:"#119DFF",d:"M208.281 925.345c13.149-13.148 34.473-13.148 47.624 0 13.151 13.151 13.151 34.475 0 47.626-13.151 13.148-34.475 13.148-47.624 0-13.149-13.152-13.149-34.475 0-47.626z"}),o.default.createElement("circle",{fill:"#119DFF",cx:"595.908",cy:"949.158",r:"33.675"}),o.default.createElement("circle",{fill:"#09FFFF",cx:"595.907",cy:"1128.158",r:"33.675"}),o.default.createElement("path",{fill:"#119DFF",d:"M798.722 1073.902c21.554 21.555 21.554 56.511 0 78.067-21.56 21.558-56.513 21.558-78.069 0-21.557-21.557-21.557-56.513 0-78.067 21.556-21.553 56.509-21.553 78.069 0z"}),o.default.createElement("circle",{fill:"#119DFF",cx:"231.272",cy:"582.929",r:"33.674"}),o.default.createElement("path",{fill:"#09FFFF",d:"M364.205 630.639c23.534 23.53 23.534 61.688 0 85.224-23.529 23.53-61.691 23.53-85.221 0-23.534-23.536-23.534-61.694 0-85.224 23.529-23.534 61.691-23.534 85.221 0z"}),o.default.createElement("circle",{fill:"#119DFF",cx:"231.272",cy:"761.929",r:"33.675"}),o.default.createElement("circle",{fill:"#119DFF",cx:"410.273",cy:"761.929",r:"33.676"}),o.default.createElement("path",{fill:"#09FFFF",d:"M1160.494 244.144c-13.15 13.151-34.473 13.151-47.621 0-13.152-13.15-13.152-34.473 0-47.623 13.148-13.151 34.471-13.151 47.621 0 13.153 13.15 13.153 34.472 0 47.623z"}),o.default.createElement("circle",{fill:"#119DFF",cx:"957.683",cy:"220.332",r:"33.675"}),o.default.createElement("path",{fill:"#09FFFF",d:"M981.495 423.146c-13.149 13.148-34.473 13.148-47.624 0-13.15-13.151-13.15-34.475 0-47.625 13.151-13.149 34.475-13.149 47.624 0 13.149 13.15 13.149 34.474 0 47.625z"}),o.default.createElement("path",{fill:"#119DFF",d:"M1076.321 338.152c-16.09 16.091-42.185 16.091-58.28 0-16.092-16.094-16.092-42.189 0-58.283 16.096-16.091 42.19-16.091 58.28 0 16.092 16.094 16.092 42.189 0 58.283z"}),o.default.createElement("circle",{fill:"#119DFF",cx:"772.868",cy:"399.333",r:"33.674"}),o.default.createElement("path",{fill:"#119DFF",d:"M686.262 304.905c-28.111-28.106-28.111-73.687 0-101.797 28.109-28.106 73.691-28.106 101.796 0 28.113 28.11 28.113 73.691 0 101.797-28.105 28.106-73.687 28.106-101.796 0zM570.055 244.144c-13.148-13.149-13.148-34.473 0-47.624 13.151-13.151 34.475-13.151 47.626 0 13.148 13.15 13.148 34.475 0 47.624-13.151 13.149-34.474 13.149-47.626 0z"}),o.default.createElement("path",{fill:"#09FFFF",d:"M1113.691 789.371c-13.15-13.15-13.15-34.471 0-47.621s34.475-13.15 47.623 0c13.151 13.15 13.151 34.471 0 47.621-13.148 13.154-34.472 13.154-47.623 0z"}),o.default.createElement("circle",{fill:"#119DFF",cx:"1047.183",cy:"675.24",r:"23.151"}),o.default.createElement("path",{fill:"#119DFF",d:"M1082.674 641.393c-21.72-21.716-21.72-56.928 0-78.644 21.713-21.711 56.927-21.711 78.639 0 21.721 21.716 21.721 56.928 0 78.644-21.712 21.711-56.926 21.711-78.639 0z"}),o.default.createElement("path",{fill:"#09FFFF",d:"M934.689 610.374c-13.146-13.151-13.146-34.475 0-47.625 13.152-13.151 34.475-13.151 47.626 0 13.148 13.151 13.148 34.475 0 47.625-13.151 13.147-34.473 13.147-47.626 0z"}),o.default.createElement("circle",{fill:"#09FFFF",cx:"593.867",cy:"309.011",r:"15.942"}),o.default.createElement("circle",{fill:"#119DFF",cx:"958.503",cy:"309.012",r:"20.059"}),o.default.createElement("circle",{fill:"#119DFF",cx:"1137.502",cy:"399.333",r:"20.059"}),o.default.createElement("circle",{fill:"#09FFFF",cx:"1047.182",cy:"220.332",r:"20.326"}),o.default.createElement("circle",{fill:"#119DFF",cx:"321.593",cy:"1128.156",r:"21.759"}),o.default.createElement("circle",{fill:"#119DFF",cx:"686.228",cy:"1037.833",r:"21.278"}),o.default.createElement("path",{fill:"#119DFF",d:"M607.18 1026.563c6.225 6.223 6.225 16.319 0 22.545-6.226 6.226-16.32 6.226-22.546 0s-6.226-16.322 0-22.545c6.226-6.225 16.321-6.225 22.546 0z"}))};t.default=u},cd9d:function(e,t){function n(e){return e}e.exports=n},cdc4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n("9903")),a=f(n("e78b")),o=f(n("d7bc")),i=c(n("ab5b")),l=n("4578"),s=n("a36d");function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 m(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function y(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&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function b(e){var t=w();return function(){var n,r=k(e);if(t){var a=k(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){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}}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var T=(0,l.connectTransformToTrace)(r.default),E=function(e){y(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this.context,t=e.fullContainer.transforms,n=void 0===t?[]:t,r=e.localize,o=e.container,l=e.dataSourceOptions,u=this.props.children,c=[{label:r("Filter"),type:"filter"},{label:r("Split"),type:"groupby"},{label:r("Aggregate"),type:"aggregate"},{label:r("Sort"),type:"sort"}],f=o.transforms&&o.transforms.map((function(e){var t="";if(e.groupssrc){var n=l&&l.find((function(t){return t.value===e.groupssrc}));t=": ".concat(n&&n.label?n.label:e.groupssrc)}else if(e.targetsrc){var r=l&&l.find((function(t){return t.value===e.targetsrc}));t=": ".concat(r&&r.label?r.label:e.targetsrc)}return t})),p=n.filter((function(e){var t=e.type;return Boolean(t)})),h=p.length&&p.map((function(e,t){return i.default.createElement(T,{key:t,transformIndex:t,name:"".concat(c.filter((function(t){var n=t.type;return n===e.type}))[0].label).concat(f&&f[t]),canDelete:!0},u)})),v=o.transforms&&o.transforms.some((function(e){return"groupby"===e.type}))?c.filter((function(e){return"groupby"!==e.type})):c,m={label:r("Transform"),handler:v.map((function(e){var t=e.label,n=e.type;return{label:t,handler:function(e){var t=e.fullContainer,r=e.updateContainer;if(r){var a=Array.isArray(t.transforms)?t.transforms.length:0,o="transforms[".concat(a,"]"),i={type:n};"filter"===n?(i.target=[],i.targetsrc=null):"sort"!==n&&(i.groupssrc=null,i.groups=null),"groupby"===n&&(i.styles=[]),r(d({},o,i))}}}}))};return i.default.createElement(a.default,{addAction:m},h||i.default.createElement(s.PanelMessage,{icon:null},i.default.createElement("div",{style:{textAlign:"left"}},i.default.createElement("p",null,i.default.createElement("strong",null,r("Filter"))," ",r(" transforms allow you to filter data out from a trace.")),i.default.createElement("p",null,i.default.createElement("strong",null,r("Split"))," ",r(" transforms allow you to create multiple traces from one source trace, so as to style them differently.")),i.default.createElement("p",null,i.default.createElement("strong",null,r("Aggregate"))," ",r(' transforms allow you to summarize a trace using an aggregate function like "average" or "minimum".')),i.default.createElement("p",null,i.default.createElement("strong",null,r("Sort"))," ",r(" transforms allow you to sort a trace, so as to control marker overlay or line connection order."))),i.default.createElement("p",null,r("Click on the + button above to add a transform."))))}}]),n}(i.Component);E.contextTypes={fullContainer:o.default.object,localize:o.default.func,container:o.default.object,dataSourceOptions:o.default.array},E.propTypes={children:o.default.node};var O=E;t.default=O},cdf9:function(e,t,n){var r=n("825a"),a=n("861d"),o=n("f069");e.exports=function(e,t){if(r(e),a(t)&&t.constructor===e)return t;var n=o.f(e),i=n.resolve;return i(t),n.promise}},ce4e:function(e,t,n){var r=n("da84"),a=n("9112");e.exports=function(e,t){try{a(r,e,t)}catch(n){r[e]=t}return t}},ce56:function(e,t,n){"use strict";var r=n("d79f");function a(e){var t=r(e),n=0,a=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var l=t[1];n=l.top,a=l.right,o=l.bottom,i=l.left}else{var s=t[0];n=s.top,a=s.right,o=s.bottom,i=s.left}for(var u=1;u<t.length;u++){var c=t[u];0!==c.height&&0!==c.width&&(n=Math.min(n,c.top),a=Math.max(a,c.right),o=Math.max(o,c.bottom),i=Math.min(i,c.left))}}return{top:n,right:a,bottom:o,left:i,width:a-i,height:o-n}}e.exports=a},ce86:function(e,t,n){var r=n("9e69"),a=n("7948"),o=n("6747"),i=n("ffd6"),l=1/0,s=r?r.prototype:void 0,u=s?s.toString:void 0;function c(e){if("string"==typeof e)return e;if(o(e))return a(e,c)+"";if(i(e))return u?u.call(e):"";var t=e+"";return"0"==t&&1/e==-l?"-0":t}e.exports=c},cf13:function(e,t,n){"use strict";var r=n("ce56");function a(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),a=r(n),o=a.top,i=a.right,l=a.bottom,s=a.left;return 0===o&&0===i&&0===l&&0===s?null:a}e.exports=a},d001:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 16 16"},e),o.default.createElement("path",{d:"M16 14l-4-4.017A6.456 6.456 0 0 0 13 6.5a6.501 6.501 0 0 0-13 0C0 10.089 2.923 13 6.512 13a6.45 6.45 0 0 0 3.495-1L14 15.993 16 14zM3 10V3h7v7H3zm1-6h5v5H4V4z"}))};t.default=u},d012:function(e,t){e.exports={}},d02c:function(e,t,n){var r=n("5e2e"),a=n("79bc"),o=n("7b83"),i=200;function l(e,t){var n=this.__data__;if(n instanceof r){var l=n.__data__;if(!a||l.length<i-1)return l.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(l)}return n.set(e,t),this.size=n.size,this}e.exports=l},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},d066:function(e,t,n){var r=n("428f"),a=n("da84"),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(a[e]):r[e]&&r[e][t]||a[e]&&a[e][t]}},d068:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"#1d9bfb",stroke:"#1d9bfb",d:"M23.511 23.571L9.516 30.045l13.929 6.319L37 30.045l-13.489-6.474z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("circle",{cx:"11",cy:"23",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"16",cy:"28",r:"2",fill:"#25fdfc"}),o.default.createElement("circle",{cx:"16",cy:"15",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"26",cy:"32",r:"2",fill:"#25fdfc"}),o.default.createElement("circle",{cx:"26",cy:"26",r:"2",fill:"#25fdfc"}),o.default.createElement("circle",{cx:"26",cy:"18",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"26",cy:"10",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"36",cy:"25",r:"2",fill:"#1d9bfb"}),o.default.createElement("circle",{cx:"36",cy:"19",r:"2",fill:"#1d9bfb"}))};t.default=u},d073:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZoomboxIcon=t.ZoomPlusIcon=t.ZoomMinusIcon=t.TraceTypeWaterfallIcon=t.TraceTypeViolinIcon=t.TraceTypeTreemapIcon=t.TraceTypeTimeSeriesIcon=t.TraceTypeTableIcon=t.TraceTypeSurfaceIcon=t.TraceTypeSunburstIcon=t.TraceTypeStreamtubeIcon=t.TraceTypeSplomIcon=t.TraceTypeScatterternaryIcon=t.TraceTypeScatterpolarIcon=t.TraceTypeScattermapboxIcon=t.TraceTypeScattergeoIcon=t.TraceTypeScatterIcon=t.TraceTypeScatter3dIcon=t.TraceTypeSankeyIcon=t.TraceTypeRangeSliderIcon=t.TraceTypePieIcon=t.TraceTypeParcoordsIcon=t.TraceTypeOhlcIcon=t.TraceTypeMesh3dIcon=t.TraceTypeLineIcon=t.TraceTypeLine3dIcon=t.TraceTypeHistogramIcon=t.TraceTypeHistogram2dcontourIcon=t.TraceTypeHistogram2dIcon=void 0,t.TraceTypeHeatmapIcon=t.TraceTypeFunnelareaIcon=t.TraceTypeFunnelIcon=t.TraceTypeErrorBarsIcon=t.TraceTypeDensitymapboxIcon=t.TraceTypeContourIcon=t.TraceTypeConeIcon=t.TraceTypeChoroplethmapboxIcon=t.TraceTypeChoroplethIcon=t.TraceTypeCarpetIcon=t.TraceTypeCandlestickIcon=t.TraceTypeBoxIcon=t.TraceTypeBarpolarIcon=t.TraceTypeBarIcon=t.TraceTypeAreaIcon=t.TraceTypeAnimationIcon=t.TooltipCompareIcon=t.TooltipBasicIcon=t.ThemeNoBrushIcon=t.ThemeBrushIcon=t.TemplateSingleIcon=t.TemplateDoubleIcon=t.TemplateBoldIcon=t.SpikelineIcon=t.ScriptIcon=t.PlotWaterfallIcon=t.PlotVolume3dIcon=t.PlotViolinIcon=t.PlotTube3dIcon=t.PlotTreemapIcon=t.PlotTimeSeriesIcon=t.PlotTernaryContourIcon=t.PlotSurfaceIcon=t.PlotSunburstIcon=t.PlotStreamtubeIcon=t.PlotStackedAreaIcon=t.PlotSplomIcon=t.PlotScatterternaryIcon=t.PlotScatterpolarIcon=t.PlotScattermapboxIcon=t.PlotScattergeoIcon=t.PlotScatterMatrixIcon=t.PlotScatterIcon=t.PlotScatterChartIcon=t.PlotScatterAxesIcon=t.PlotScatter3dIcon=t.PlotSankeyIcon=t.PlotRadarIcon=t.PlotPolarFilledIcon=t.PlotPieShadedIcon=t.PlotPieIcon=t.PlotParcoordsIcon=t.PlotOhlcIcon=t.PlotMesh3dIcon=t.PlotMapLineIcon=t.PlotLineMarkersIcon=t.PlotLineIcon=t.PlotLine3dIcon=t.PlotIsosurface3dIcon=t.PlotIcon=t.PlotHistogramIcon=t.PlotHistogram2dcontourIcon=t.PlotHistogram2dIcon=t.PlotHistogram2dBricksIcon=t.PlotHeatmapIcon=t.PlotFunnelareaIcon=t.PlotFunnelIcon=t.PlotFitIcon=t.PlotErrorBarsIcon=t.PlotDonutIcon=t.PlotDensitymapboxIcon=t.PlotContourIcon=t.PlotConeIcon=t.PlotCone3dIcon=t.PlotChoroplethmapboxIcon=t.PlotChoroplethIcon=t.PlotCarpetIcon=t.PlotCandlestickIcon=t.PlotCandlestickAltIcon=t.PlotBubblesIcon=t.PlotBoxIcon=t.PlotBarpolarIcon=t.PlotBarIcon=t.PlotBarAxesIcon=t.PlotAreaStackedIcon=t.PlotAreaIcon=t.PanIcon=t.NotebookRIcon=t.NotebookMIconIcon=t.NotebookIpIcon=t.LogoVisaIcon=t.LogoStripeIcon=t.LogoMastercardIcon=t.LogoAmexIcon=t.GearsSettingIcon=t.ForkIcon=t.ForkEditIcon=t.FilingCabinetIcon=t.EmbedIconIcon=t.AutoscaleIcon=void 0;var r=n("7bb3"),a=$r(r),o=n("ad2e"),i=$r(o),l=n("39ab"),s=$r(l),u=n("8d6a"),c=$r(u),f=n("9840"),p=$r(f),d=n("d3c2"),h=$r(d),v=n("e23d"),m=$r(v),y=n("1155"),g=$r(y),b=n("ffda1"),x=$r(b),_=n("65ee"),w=$r(_),k=n("8d6a1"),T=$r(k),E=n("cae0"),O=$r(E),M=n("2344"),S=$r(M),C=n("89af"),A=$r(C),P=n("7cbf"),L=$r(P),D=n("c0a6"),j=$r(D),I=n("8766"),R=$r(I),z=n("7db6"),N=$r(z),F=n("d4ae"),B=$r(F),V=n("18e7"),H=$r(V),U=n("4633"),W=$r(U),q=n("1ed1"),$=$r(q),G=n("e319"),Y=$r(G),K=n("110c"),X=$r(K),Z=n("e9e9"),J=$r(Z),Q=n("b05c"),ee=$r(Q),te=n("bc62"),ne=$r(te),re=n("cc1a"),ae=$r(re),oe=n("29ae"),ie=$r(oe),le=n("6a4d"),se=$r(le),ue=n("f05f"),ce=$r(ue),fe=n("8685"),pe=$r(fe),de=n("38d4"),he=$r(de),ve=n("1ea7"),me=$r(ve),ye=n("1f4a"),ge=$r(ye),be=n("91dc"),xe=$r(be),_e=n("00d6"),we=$r(_e),ke=n("7bb1"),Te=$r(ke),Ee=n("f49e"),Oe=$r(Ee),Me=n("d0f6"),Se=$r(Me),Ce=n("f44f"),Ae=$r(Ce),Pe=n("15c2"),Le=$r(Pe),De=n("a687"),je=$r(De),Ie=n("dbb1"),Re=$r(Ie),ze=n("d496"),Ne=$r(ze),Fe=n("807a"),Be=$r(Fe),Ve=n("6a30"),He=$r(Ve),Ue=n("3252"),We=$r(Ue),qe=n("217a"),$e=$r(qe),Ge=n("d325"),Ye=$r(Ge),Ke=n("048b"),Xe=$r(Ke),Ze=n("dd6d"),Je=$r(Ze),Qe=n("8bd3"),et=$r(Qe),tt=n("9b3d"),nt=$r(tt),rt=n("08f4"),at=$r(rt),ot=n("971d"),it=$r(ot),lt=n("c30c"),st=$r(lt),ut=n("e299"),ct=$r(ut),ft=n("d337"),pt=$r(ft),dt=n("cc0c"),ht=$r(dt),vt=n("8256"),mt=$r(vt),yt=n("1529"),gt=$r(yt),bt=n("a1e2"),xt=$r(bt),_t=n("d109"),wt=$r(_t),kt=n("683f"),Tt=$r(kt),Et=n("7b6c"),Ot=$r(Et),Mt=n("262e"),St=$r(Mt),Ct=n("dcc5"),At=$r(Ct),Pt=n("6d74"),Lt=$r(Pt),Dt=n("18c9"),jt=$r(Dt),It=n("0052"),Rt=$r(It),zt=n("8550"),Nt=$r(zt),Ft=n("c6a9"),Bt=$r(Ft),Vt=n("a3fb"),Ht=$r(Vt),Ut=n("b289"),Wt=$r(Ut),qt=n("9b04"),$t=$r(qt),Gt=n("95ee"),Yt=$r(Gt),Kt=n("8b21"),Xt=$r(Kt),Zt=n("f31a"),Jt=$r(Zt),Qt=n("3118"),en=$r(Qt),tn=n("fd4a"),nn=$r(tn),rn=n("ebc4"),an=$r(rn),on=n("fe46"),ln=$r(on),sn=n("b4a1"),un=$r(sn),cn=n("f9a3"),fn=$r(cn),pn=n("8fff"),dn=$r(pn),hn=n("83c2"),vn=$r(hn),mn=n("1964"),yn=$r(mn),gn=n("3932"),bn=$r(gn),xn=n("26b8"),_n=$r(xn),wn=n("db95"),kn=$r(wn),Tn=n("dd06"),En=$r(Tn),On=n("9308"),Mn=$r(On),Sn=n("6aa6"),Cn=$r(Sn),An=n("f8ff"),Pn=$r(An),Ln=n("7e43"),Dn=$r(Ln),jn=n("cb83"),In=$r(jn),Rn=n("d87d"),zn=$r(Rn),Nn=n("1063"),Fn=$r(Nn),Bn=n("9fc2"),Vn=$r(Bn),Hn=n("2661"),Un=$r(Hn),Wn=n("b3bc"),qn=$r(Wn),$n=n("685e"),Gn=$r($n),Yn=n("84a3"),Kn=$r(Yn),Xn=n("0359"),Zn=$r(Xn),Jn=n("7c50"),Qn=$r(Jn),er=n("3b8f"),tr=$r(er),nr=n("e180"),rr=$r(nr),ar=n("8b6c"),or=$r(ar),ir=n("cb52"),lr=$r(ir),sr=n("8a56"),ur=$r(sr),cr=n("d068"),fr=$r(cr),pr=n("859e"),dr=$r(pr),hr=n("290b"),vr=$r(hr),mr=n("b9b6"),yr=$r(mr),gr=n("f517"),br=$r(gr),xr=n("8621"),_r=$r(xr),wr=n("cce7"),kr=$r(wr),Tr=n("a26e"),Er=$r(Tr),Or=n("af23"),Mr=$r(Or),Sr=n("c08e"),Cr=$r(Sr),Ar=n("4e92"),Pr=$r(Ar),Lr=n("7621"),Dr=$r(Lr),jr=n("762a"),Ir=$r(jr),Rr=n("4276"),zr=$r(Rr),Nr=n("1039"),Fr=$r(Nr),Br=n("b5a1"),Vr=$r(Br),Hr=n("f8b5"),Ur=$r(Hr),Wr=n("d001"),qr=$r(Wr);function $r(e){return e&&e.__esModule?e:{default:e}}t.AutoscaleIcon=a.default,t.EmbedIconIcon=i.default,t.FilingCabinetIcon=s.default,t.ForkEditIcon=c.default,t.ForkIcon=p.default,t.GearsSettingIcon=h.default,t.LogoAmexIcon=m.default,t.LogoMastercardIcon=g.default,t.LogoStripeIcon=x.default,t.LogoVisaIcon=w.default,t.NotebookIpIcon=T.default,t.NotebookMIconIcon=O.default,t.NotebookRIcon=S.default,t.PanIcon=A.default,t.PlotAreaIcon=L.default,t.PlotAreaStackedIcon=j.default,t.PlotBarAxesIcon=R.default,t.PlotBarIcon=N.default,t.PlotBarpolarIcon=B.default,t.PlotBoxIcon=H.default,t.PlotBubblesIcon=W.default,t.PlotCandlestickAltIcon=$.default,t.PlotCandlestickIcon=Y.default,t.PlotCarpetIcon=X.default,t.PlotChoroplethIcon=J.default,t.PlotChoroplethmapboxIcon=ee.default,t.PlotCone3dIcon=ne.default,t.PlotConeIcon=ae.default,t.PlotContourIcon=ie.default,t.PlotDensitymapboxIcon=se.default,t.PlotDonutIcon=ce.default,t.PlotErrorBarsIcon=pe.default,t.PlotFitIcon=he.default,t.PlotFunnelIcon=me.default,t.PlotFunnelareaIcon=ge.default,t.PlotHeatmapIcon=xe.default,t.PlotHistogram2dBricksIcon=we.default,t.PlotHistogram2dIcon=Te.default,t.PlotHistogram2dcontourIcon=Oe.default,t.PlotHistogramIcon=Se.default,t.PlotIcon=Ae.default,t.PlotIsosurface3dIcon=Le.default,t.PlotLine3dIcon=je.default,t.PlotLineIcon=Re.default,t.PlotLineMarkersIcon=Ne.default,t.PlotMapLineIcon=Be.default,t.PlotMesh3dIcon=He.default,t.PlotOhlcIcon=We.default,t.PlotParcoordsIcon=$e.default,t.PlotPieIcon=Ye.default,t.PlotPieShadedIcon=Xe.default,t.PlotPolarFilledIcon=Je.default,t.PlotRadarIcon=et.default,t.PlotSankeyIcon=nt.default,t.PlotScatter3dIcon=at.default,t.PlotScatterAxesIcon=it.default,t.PlotScatterChartIcon=st.default,t.PlotScatterIcon=ct.default,t.PlotScatterMatrixIcon=pt.default,t.PlotScattergeoIcon=ht.default,t.PlotScattermapboxIcon=mt.default,t.PlotScatterpolarIcon=gt.default,t.PlotScatterternaryIcon=xt.default,t.PlotSplomIcon=wt.default,t.PlotStackedAreaIcon=Tt.default,t.PlotStreamtubeIcon=Ot.default,t.PlotSunburstIcon=St.default,t.PlotSurfaceIcon=At.default,t.PlotTernaryContourIcon=Lt.default,t.PlotTimeSeriesIcon=jt.default,t.PlotTreemapIcon=Rt.default,t.PlotTube3dIcon=Nt.default,t.PlotViolinIcon=Bt.default,t.PlotVolume3dIcon=Ht.default,t.PlotWaterfallIcon=Wt.default,t.ScriptIcon=$t.default,t.SpikelineIcon=Yt.default,t.TemplateBoldIcon=Xt.default,t.TemplateDoubleIcon=Jt.default,t.TemplateSingleIcon=en.default,t.ThemeBrushIcon=nn.default,t.ThemeNoBrushIcon=an.default,t.TooltipBasicIcon=ln.default,t.TooltipCompareIcon=un.default,t.TraceTypeAnimationIcon=fn.default,t.TraceTypeAreaIcon=dn.default,t.TraceTypeBarIcon=vn.default,t.TraceTypeBarpolarIcon=yn.default,t.TraceTypeBoxIcon=bn.default,t.TraceTypeCandlestickIcon=_n.default,t.TraceTypeCarpetIcon=kn.default,t.TraceTypeChoroplethIcon=En.default,t.TraceTypeChoroplethmapboxIcon=Mn.default,t.TraceTypeConeIcon=Cn.default,t.TraceTypeContourIcon=Pn.default,t.TraceTypeDensitymapboxIcon=Dn.default,t.TraceTypeErrorBarsIcon=In.default,t.TraceTypeFunnelIcon=zn.default,t.TraceTypeFunnelareaIcon=Fn.default,t.TraceTypeHeatmapIcon=Vn.default,t.TraceTypeHistogram2dIcon=Un.default,t.TraceTypeHistogram2dcontourIcon=qn.default,t.TraceTypeHistogramIcon=Gn.default,t.TraceTypeLine3dIcon=Kn.default,t.TraceTypeLineIcon=Zn.default,t.TraceTypeMesh3dIcon=Qn.default,t.TraceTypeOhlcIcon=tr.default,t.TraceTypeParcoordsIcon=rr.default,t.TraceTypePieIcon=or.default,t.TraceTypeRangeSliderIcon=lr.default,t.TraceTypeSankeyIcon=ur.default,t.TraceTypeScatter3dIcon=fr.default,t.TraceTypeScatterIcon=dr.default,t.TraceTypeScattergeoIcon=vr.default,t.TraceTypeScattermapboxIcon=yr.default,t.TraceTypeScatterpolarIcon=br.default,t.TraceTypeScatterternaryIcon=_r.default,t.TraceTypeSplomIcon=kr.default,t.TraceTypeStreamtubeIcon=Er.default,t.TraceTypeSunburstIcon=Mr.default,t.TraceTypeSurfaceIcon=Cr.default,t.TraceTypeTableIcon=Pr.default,t.TraceTypeTimeSeriesIcon=Dr.default,t.TraceTypeTreemapIcon=Ir.default,t.TraceTypeViolinIcon=zr.default,t.TraceTypeWaterfallIcon=Fr.default,t.ZoomMinusIcon=Vr.default,t.ZoomPlusIcon=Ur.default,t.ZoomboxIcon=qr.default},d082:function(e,t,n){"use strict";var r=n("d8db"),a=n("38bc");function o(e){var t=e.editorContainer;t||r(!1),a(t.firstChild)||r(!1);var n=t.firstChild;return n}e.exports=o},d0f6:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 24 16"},e),o.default.createElement("path",{d:"M0 11.015h4.003V16H0zm5-6h4.003V16H5zM10 0h4.011v16H10zm5 5.014h4.004V16H15zm4.996 6.001H24V16h-4.004z"}))};t.default=u},d109:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 1360 1360"},e),o.default.createElement("path",{fill:"currentColor",d:"M1174.5 162.716H186.081c-12.743 0-23.074 10.331-23.074 23.074v321.832a23.061 23.061 0 0 0-.581 5.088c0 1.749.211 3.449.581 5.088V843.85c-.37 1.639-.581 3.338-.581 5.088s.211 3.449.581 5.088v320.184c0 12.744 10.331 23.074 23.074 23.074H1174.5c12.744 0 23.074-10.33 23.074-23.074V185.79c0-12.743-10.33-23.074-23.074-23.074zM532.198 825.863V535.784h290.078v290.079H532.198zm290.078 46.149v279.123H532.198V872.012h290.078zm-613.12-336.228h276.893v290.079H209.156V535.784zm323.042-46.148V208.865h290.078v280.771H532.198zm336.228 46.148h283v290.079h-283V535.784zm283-46.148h-283V208.865h283v280.771zM486.049 208.865v280.771H209.156V208.865h276.893zM209.156 872.012h276.893v279.123H209.156V872.012zm659.27 279.123V872.012h283v279.123h-283z"}),o.default.createElement("circle",{fill:"currentColor",cx:"267.502",cy:"1098.284",r:"30.664"}),o.default.createElement("path",{fill:"currentColor",d:"M352.718 919.58c25.607-25.614 67.135-25.614 92.748 0 25.607 25.606 25.607 67.135 0 92.742-25.613 25.614-67.141 25.614-92.748 0-25.612-25.607-25.612-67.135 0-92.742z"}),o.default.createElement("circle",{fill:"currentColor",cx:"430.5",cy:"1098.284",r:"30.664"}),o.default.createElement("circle",{fill:"currentColor",cx:"267.502",cy:"935.286",r:"30.665"}),o.default.createElement("circle",{fill:"currentColor",cx:"598.792",cy:"935.287",r:"30.664"}),o.default.createElement("circle",{fill:"currentColor",cx:"598.792",cy:"1098.284",r:"30.664"}),o.default.createElement("path",{fill:"currentColor",d:"M783.476 1048.879c19.627 19.628 19.627 51.458 0 71.088-19.632 19.631-51.461 19.631-71.092 0-19.627-19.63-19.627-51.46 0-71.088 19.631-19.627 51.46-19.627 71.092 0z"}),o.default.createElement("circle",{fill:"currentColor",cx:"266.756",cy:"601.798",r:"30.664"}),o.default.createElement("path",{fill:"currentColor",d:"M387.803 645.243c21.43 21.426 21.43 56.173 0 77.605-21.426 21.427-56.176 21.427-77.602 0-21.43-21.433-21.43-56.18 0-77.605 21.426-21.43 56.176-21.43 77.602 0z"}),o.default.createElement("circle",{fill:"currentColor",cx:"266.755",cy:"764.796",r:"30.664"}),o.default.createElement("circle",{fill:"currentColor",cx:"429.754",cy:"764.796",r:"30.665"}),o.default.createElement("circle",{fill:"currentColor",cx:"1091.224",cy:"271.618",r:"30.664"}),o.default.createElement("circle",{fill:"currentColor",cx:"928.226",cy:"271.618",r:"30.665"}),o.default.createElement("circle",{fill:"currentColor",cx:"928.226",cy:"434.615",r:"30.665"}),o.default.createElement("path",{fill:"currentColor",d:"M1036.258 378.904c-14.652 14.652-38.414 14.652-53.07 0-14.653-14.655-14.653-38.417 0-53.072 14.656-14.652 38.418-14.652 53.07 0 14.653 14.655 14.653 38.418 0 53.072z"}),o.default.createElement("circle",{fill:"currentColor",cx:"759.933",cy:"434.616",r:"30.664"}),o.default.createElement("path",{fill:"currentColor",d:"M681.069 348.629c-25.599-25.593-25.599-67.099 0-92.697 25.596-25.593 67.103-25.593 92.695 0 25.601 25.598 25.601 67.104 0 92.697-25.592 25.594-67.099 25.594-92.695 0z"}),o.default.createElement("circle",{fill:"currentColor",cx:"596.936",cy:"271.618",r:"30.665"}),o.default.createElement("path",{fill:"currentColor",d:"M1070.287 789.785c-11.976-11.975-11.976-31.39 0-43.364 11.975-11.976 31.393-11.976 43.365 0 11.976 11.975 11.976 31.39 0 43.364-11.972 11.979-31.39 11.979-43.365 0zM994.818 700.765c-8.232-8.234-8.232-21.581 0-29.815 8.231-8.231 21.579-8.231 29.812 0 8.231 8.234 8.231 21.581 0 29.815-8.233 8.23-21.58 8.23-29.812 0zM1042.042 655.035c-19.777-19.774-19.777-51.838 0-71.613 19.772-19.77 51.837-19.77 71.609 0 19.777 19.775 19.777 51.839 0 71.613-19.772 19.771-51.837 19.771-71.609 0zM907.288 626.789c-11.972-11.975-11.972-31.393 0-43.367 11.977-11.975 31.393-11.975 43.367 0 11.974 11.975 11.974 31.393 0 43.367-11.974 11.973-31.39 11.973-43.367 0z"}),o.default.createElement("circle",{fill:"currentColor",cx:"596.935",cy:"352.369",r:"14.516"}),o.default.createElement("circle",{fill:"currentColor",cx:"928.973",cy:"352.369",r:"18.266"}),o.default.createElement("circle",{fill:"currentColor",cx:"1091.969",cy:"434.615",r:"18.266"}),o.default.createElement("circle",{fill:"currentColor",cx:"1009.724",cy:"271.617",r:"18.509"}),o.default.createElement("circle",{fill:"currentColor",cx:"349.002",cy:"1098.283",r:"19.813"}),o.default.createElement("circle",{fill:"currentColor",cx:"681.039",cy:"1016.035",r:"19.376"}),o.default.createElement("circle",{fill:"currentColor",cx:"598.792",cy:"1016.036",r:"14.516"}))};t.default=u},d114:function(e,t,n){"use strict";var r=n("dec3");function a(e){var t=e.getSelection(),n=t.getEndKey(),a=e.getCurrentContent(),o=a.getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}e.exports=a},d134:function(e,t,n){"use strict";e.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},d1bf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedTextEditor=void 0;var r=h(n("5174")),a=d(n("ab5b")),o=h(n("d7bc")),i=n("4578"),l=h(n("10b4")),s=h(n("5f11")),u=h(n("0452")),c=h(n("d72e")),f=h(n("d654"));function p(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!==v(e)&&"function"!==typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function h(e){return e&&e.__esModule?e:{default:e}}function v(e){return v="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},v(e)}function m(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 y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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 _(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function w(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&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function T(e){var t=M();return function(){var n,r=S(e);if(t){var a=S(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==v(t)&&"function"!==typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(){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}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var C=/%{([^\s%{}:]*)(:[^}]*)?}/g,A=/%{(meta(\[(\d+)]))}/,P=function(e){w(n,e);var t=T(n);function n(){return b(this,n),t.apply(this,arguments)}return _(n,[{key:"hasTemplateStrings",value:function(e){return!!e&&e.match(C)}},{key:"updatePlot",value:function(e){var t=this.props.updatePlot,n=this.hasTemplateStrings(e),r=e;n&&(r=r.replace(C,(function(e){var t=A.exec(e);if(t){var n=parseInt(t[3],10)-1;if(!isNaN(n))return"%{meta[".concat(n<0?0:n,"]}")}return e}))),t(r)}},{key:"getAdjustedFullValue",value:function(e){var t=this.hasTemplateStrings(e);return t?e.replace(C,(function(e){var t=A.exec(e);if(t){var n=parseInt(t[3],10)+1;return isNaN(n)?e:"%{meta[".concat(n,"]}")}return e})):e}},{key:"render",value:function(){var e,t=this.props,n=t.attr,o=t.container,i=t.htmlOnly,p=t.latexOnly,d=t.multiValued,h=t.richTextOnly,v=this.context.localize,m=this.getAdjustedFullValue(this.props.fullValue),y=this.props.placeholder;return!d&&(!m||o&&(0,l.default)(o,n))||(y=m,m=""),p?(y=v("Enter LaTeX formatted text"),e=a.default.createElement(s.default,{value:m,placeholder:y,onChange:this.updatePlot.bind(this)})):h?e=a.default.createElement(u.default,{value:m,placeholder:y,onChange:this.updatePlot.bind(this)}):i?(y=v("Enter html formatted text"),e=a.default.createElement(f.default,{value:m,placeholder:y,onChange:this.updatePlot.bind(this)})):e=a.default.createElement(c.default,{value:m,placeholder:y,onChange:this.updatePlot.bind(this)}),a.default.createElement(r.default,this.props,a.default.createElement("div",{className:"text-editor"},e))}}]),n}(a.Component);t.UnconnectedTextEditor=P,P.propTypes=y(y({},r.default.propTypes),{},{fullValue:o.default.any,htmlOnly:o.default.bool,latexOnly:o.default.bool,richTextOnly:o.default.bool,updatePlot:o.default.func,placeholder:o.default.string}),P.contextTypes={localize:o.default.func,fullLayout:o.default.object},P.displayName="UnconnectedTextEditor";var L=(0,i.connectToContainer)(P,{modifyPlotProps:function(e,t,n){n.isVisible&&n.multiValued&&(n.isVisible=!1),t.fullLayout&&t.fullLayout._dfltTitle&&Object.values(t.fullLayout._dfltTitle).includes(n.fullValue)&&(n.placeholder=n.fullValue,n.fullValue="")}});t.default=L},d1e7:function(e,t,n){"use strict";var r={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,o=a&&!r.call({1:2},1);t.f=o?function(e){var t=a(this,e);return!!t&&t.enumerable}:r},d28b:function(e,t,n){var r=n("746f");r("iterator")},d2bb:function(e,t,n){var r=n("825a"),a=n("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,e.call(n,[]),t=n instanceof Array}catch(o){}return function(n,o){return r(n),a(o),t?e.call(n,o):n.__proto__=o,n}}():void 0)},d325:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M14.438 2.5C6.438 2.563 0 9.063 0 17c0 8.063 6.5 14.563 14.5 14.563 3.5 0 6.625-1.188 9.125-3.188l-9.188-10.813zm16.875 13.063V15c0-8.063-6.5-14.563-14.563-14.563h-.063v15.125zM32 17.75H17.437l9.125 10.813C29.75 26 31.875 22.125 32 17.75z"}))};t.default=u},d327:function(e,t){function n(){return[]}e.exports=n},d337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M14.938 0h2v32h-2zM0 14.938h32v2H0zm2.563-1.5l-2-.125c.125-1.563.75-4.125 2.875-4.125 1.25 0 2 .688 2.688 1.188.813.688 1.063.813 1.5.688.625-.25 1.563-2.5 2.125-4.125.375-1.188.813-2.375 1.313-3.313 1.5-2.813 3.063-3.063 3.313-3.25l.313 2s-.938.313-2 2.188c-.313.75-.688 1.813-1.063 3.063-.938 2.5-1.75 4.75-3.375 5.313-1.438.5-2.5-.375-3.313-.938-.563-.375-.938-.813-1.5-.813-.5 0-.875 1.5-.875 2.25zM22 7.313c-.813 0-1.313-.5-1.313-1.313s.5-1.313 1.313-1.313 1.313.5 1.313 1.313-.5 1.313-1.313 1.313zm0-2v.688zm5.313 2C26.563 7.313 26 6.813 26 6s.563-1.313 1.313-1.313c.813 0 1.375.5 1.375 1.313s-.563 1.313-1.375 1.313zm0-2v.688zm.687-2c-.813 0-1.313-.5-1.313-1.313S27.187.687 28 .687s1.313.5 1.313 1.313-.5 1.313-1.313 1.313zm0-2v.688zM19.313 14c-.75 0-1.313-.563-1.313-1.313 0-.813.563-1.375 1.313-1.375.813 0 1.375.563 1.375 1.375 0 .75-.563 1.313-1.375 1.313zm0-2v.688zM28 12c-.813 0-1.313-.563-1.313-1.313 0-.813.5-1.375 1.313-1.375s1.313.563 1.313 1.375c0 .75-.5 1.313-1.313 1.313zm0-2v.688zm-4.687 2.688c-.75 0-1.313-.563-1.313-1.375 0-.75.563-1.313 1.313-1.313.813 0 1.375.563 1.375 1.313 0 .813-.563 1.375-1.375 1.375zm0-2v.625zm-16 14c-.75 0-1.313-.563-1.313-1.375C6 22.563 6.563 22 7.313 22c.813 0 1.375.563 1.375 1.313 0 .813-.563 1.375-1.375 1.375zm0-2v.625zm5.375 2.625c-.813 0-1.375-.5-1.375-1.313s.563-1.313 1.375-1.313c.75 0 1.313.5 1.313 1.313s-.563 1.313-1.313 1.313zm0-2v.688zm0-2.625c-.813 0-1.375-.563-1.375-1.375 0-.75.563-1.313 1.375-1.313.75 0 1.313.563 1.313 1.313 0 .813-.563 1.375-1.313 1.375zm0-2v.625zM4.688 30c-.813 0-1.375-.563-1.375-1.313 0-.813.563-1.375 1.375-1.375.75 0 1.313.563 1.313 1.375 0 .75-.563 1.313-1.313 1.313zm0-2v.688zm6.625 2c-.75 0-1.313-.563-1.313-1.313 0-.813.563-1.375 1.313-1.375.813 0 1.375.563 1.375 1.375 0 .75-.563 1.313-1.375 1.313zm0-2v.688zm18.437 2.938c-.813-2.375-2.563-6.563-3.75-7.625-.375 0-1.063 1.063-1.438 1.625-.813 1.188-1.75 2.375-3.125 2.688-.25 0-.75 0-1.313-.438-1.75-1.313-2.25-6.938-2.5-8.5l2-.125c.25 3.188 1.063 6.375 1.563 7.063.438-.313 1.188-1.25 1.625-1.875.938-1.188 1.75-2.313 2.813-2.438.375 0 .938 0 1.563.563 2 1.75 4 7.75 4.25 8.375z"}))};t.default=u},d370:function(e,t,n){var r=n("253c"),a=n("1310"),o=Object.prototype,i=o.hasOwnProperty,l=o.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return a(e)&&i.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},d3b7:function(e,t,n){var r=n("00ee"),a=n("6eeb"),o=n("b041");r||a(Object.prototype,"toString",o,{unsafe:!0})},d3c2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M14.938 16c0-1.188-.438-2.188-1.25-3-.813-.875-1.813-1.25-3-1.25S8.5 12.125 7.625 13c-.813.813-1.25 1.813-1.25 3s.438 2.188 1.25 3c.875.875 1.875 1.25 3.063 1.25s2.188-.375 3-1.25c.813-.813 1.25-1.813 1.25-3zm12.812 8.563a2.07 2.07 0 0 0-.625-1.5c-.438-.438-.938-.688-1.5-.688a1.9 1.9 0 0 0-1.5.688 1.9 1.9 0 0 0-.688 1.5c0 .563.25 1.063.625 1.5.438.375.938.625 1.563.625.563 0 1.063-.25 1.5-.625.375-.438.625-.938.625-1.5zm0-17.125c0-.563-.25-1.063-.625-1.5-.438-.375-.938-.625-1.5-.625a2.07 2.07 0 0 0-1.5.625c-.438.438-.688.938-.688 1.5 0 .625.25 1.125.625 1.563.438.375.938.625 1.563.625.563 0 1.063-.25 1.5-.625.375-.438.625-.938.625-1.563zM21.313 14.5v3.063c0 .125 0 .25-.125.313-.063.125-.125.188-.25.188l-2.563.375c-.125.438-.313.813-.563 1.313.375.5.875 1.125 1.5 1.875.125.125.125.25.125.375s0 .25-.125.313c-.25.313-.688.813-1.375 1.5-.625.625-1.063 1-1.313 1-.125 0-.188-.063-.313-.125l-1.938-1.5a7.424 7.424 0 0 1-1.25.5c-.125 1.188-.25 2.063-.438 2.563-.063.313-.188.438-.5.438H9.122a.482.482 0 0 1-.313-.125c-.125-.125-.188-.188-.188-.313l-.375-2.563c-.375-.125-.813-.25-1.25-.5l-2 1.5c-.063.063-.188.125-.313.125s-.25-.063-.375-.188c-1.563-1.438-2.375-2.313-2.375-2.625 0-.125.063-.25.125-.313.125-.188.313-.5.688-.875.313-.438.563-.813.75-1.063-.25-.5-.438-.938-.563-1.375L.37 18.001c-.063 0-.188-.063-.25-.188a.477.477 0 0 1-.125-.313v-3.063c0-.125.063-.25.125-.313.063-.125.188-.188.25-.188l2.563-.375c.125-.438.313-.813.563-1.313-.375-.5-.875-1.125-1.5-1.875-.063-.125-.125-.25-.125-.375s.063-.25.125-.313c.25-.313.688-.813 1.375-1.5.688-.625 1.125-1 1.313-1 .125 0 .25.063.375.125l1.875 1.5a6.37 6.37 0 0 1 1.313-.5c.125-1.188.25-2.063.375-2.563.063-.313.25-.438.5-.438h3.063c.125 0 .25.063.375.125.063.125.125.188.125.313l.438 2.563c.375.125.75.25 1.25.5l1.938-1.5c.063-.063.188-.125.313-.125s.25.063.375.188c1.625 1.438 2.375 2.313 2.375 2.625 0 .125 0 .25-.063.313-.188.188-.375.5-.75.938-.313.375-.563.75-.75 1 .25.5.438 1 .563 1.375l2.563.375c.125 0 .188.063.25.188.125.063.125.188.125.313zM32 23.375v2.313c0 .188-.813.375-2.5.5a3.993 3.993 0 0 1-.5.875c.563 1.25.875 2.063.875 2.313 0 .063 0 .063-.063.125a76.824 76.824 0 0 1-2.063 1.188c-.125 0-.375-.25-.813-.813-.375-.5-.688-.875-.813-1.125-.25.063-.438.063-.5.063-.125 0-.313 0-.5-.063-.188.25-.5.625-.875 1.125-.438.563-.688.813-.813.813 0 0-.688-.375-2.063-1.188 0-.063-.063-.063-.063-.125 0-.25.313-1.063.875-2.313a3.976 3.976 0 0 1-.5-.875c-1.688-.125-2.5-.313-2.5-.5v-2.313c0-.188.813-.375 2.5-.5.125-.375.313-.625.5-.875-.563-1.25-.875-2.063-.875-2.313 0-.063.063-.063.063-.125.063 0 .25-.125.625-.313l.938-.563c.313-.188.5-.313.5-.313.125 0 .375.313.813.813.375.5.688.875.875 1.125.188-.063.375-.063.5-.063.063 0 .25 0 .5.063.563-.813 1.063-1.438 1.5-1.875l.125-.063s.688.438 2.063 1.188c.063.063.063.063.063.125 0 .25-.313 1.063-.875 2.313.188.25.375.5.5.875 1.688.125 2.5.313 2.5.5zm0-17.062v2.313c0 .188-.813.375-2.5.5a3.993 3.993 0 0 1-.5.875c.563 1.25.875 2.063.875 2.313 0 .063 0 .063-.063.125a76.824 76.824 0 0 1-2.063 1.188c-.125 0-.375-.25-.813-.813-.375-.5-.688-.875-.813-1.125-.25.063-.438.063-.5.063-.125 0-.313 0-.5-.063-.188.25-.5.625-.875 1.125-.438.563-.688.813-.813.813 0 0-.688-.375-2.063-1.188 0-.063-.063-.063-.063-.125 0-.25.313-1.063.875-2.313a3.976 3.976 0 0 1-.5-.875c-1.688-.125-2.5-.313-2.5-.5V6.313c0-.188.813-.375 2.5-.5.125-.375.313-.625.5-.875-.563-1.25-.875-2.063-.875-2.313 0-.063.063-.063.063-.125.063 0 .25-.125.625-.313.313-.25.625-.438.938-.563.313-.188.5-.313.5-.313.125 0 .375.25.813.813.375.5.688.875.875 1.125.188-.063.375-.063.5-.063.063 0 .25 0 .5.063.563-.813 1.063-1.438 1.5-1.875l.125-.063s.688.438 2.063 1.188c.063.063.063.063.063.125 0 .25-.313 1.063-.875 2.313.188.25.375.5.5.875 1.688.125 2.5.313 2.5.5z"}))};t.default=u},d3e8:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M5,4H19C20.1,4 21,4.9 21,6V18C21,19.1 20.1,20 19,20H5C3.9,20 3,19.1 3,18V6C3,4.9 3.9,4 5,4M5,8V12H11V8H5M13,8V12H19V8H13M5,14V18H11V14H5M13,14V18H19V14H13Z"}))};e.exports=l},d44e:function(e,t,n){var r=n("9bf2").f,a=n("5135"),o=n("b622"),i=o("toStringTag");e.exports=function(e,t,n){e&&!a(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},d496:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M28.313 6.375c-1.5 0-2.75-1.188-2.688-2.75 0-1.5 1.188-2.75 2.75-2.688 1.5 0 2.75 1.188 2.688 2.75 0 1.5-1.188 2.75-2.75 2.688zm0-3.812c-.563 0-1.063.5-1.063 1.125 0 .563.5 1.063 1.063 1.063.625 0 1.063-.5 1.063-1.063 0-.625-.438-1.125-1.063-1.125zm-24.625 28.5c-1.563.063-2.75-1.188-2.75-2.688-.063-1.563 1.188-2.75 2.688-2.75 1.563-.063 2.75 1.188 2.75 2.688.063 1.563-1.188 2.75-2.688 2.75zm0-3.813c-.625 0-1.063.5-1.063 1.125 0 .563.438 1.063 1.063 1.063.563 0 1.063-.5 1.063-1.063 0-.625-.5-1.125-1.063-1.125zm1.375.188l-1.5-.75 5.063-9.375 3.25 6.125 8.188-17 3.25 6.125 3.625-8 1.563.75-5 11.063-3.375-6.25-8.188 17-3.375-6.25z"}))};t.default=u},d496f:function(e,t,n){"use strict";var r=n("0984"),a=n("87fd"),o=n("248f"),i=n("8c7e"),l=n("6033"),s=n("7bf3"),u=n("7264"),c=n("63f9"),f=n("a60e"),p=n("8f20"),d=n("0bd1"),h=n("9039"),v=n("5893"),m=r.isBrowser("Chrome"),y=r.isBrowser("Firefox"),g=m||y?v:function(e){},b={onBeforeInput:a,onBlur:o,onCompositionStart:i,onCopy:l,onCut:s,onDragOver:u,onDragStart:c,onFocus:f,onInput:p,onKeyDown:d,onPaste:h,onSelect:v,onMouseUp:g,onKeyUp:g};e.exports=b},d4ae:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 1360 1360"},e),o.default.createElement("path",{fill:"currentColor",d:"M436.395 296.519c-.035.024-132.838 63.18-168.071 176.888l113.017 77.533c27.173-50.264 66.14-95.117 116.285-129.927 3.922-2.722 7.916-5.272 11.899-7.825M907.083 618.819C954.8 702.082 943.541 805.4 882.72 876.277l248.645 147.556c34.558-50.135 71.658-119.84 87.054-203.214 32.22-174.515-44.787-317.497-44.787-317.497l.016-.008M833.271 726.291c0 67.024-54.335 121.356-121.359 121.356-67.021 0-121.353-54.332-121.353-121.356 0-67.021 54.331-121.353 121.353-121.353 67.024 0 121.359 54.332 121.359 121.353zM710.058 216.76a517.2 517.2 0 0 1 95.797 8.937l17.614-92.353c-122.54-22.829-251.963-8.079-369.683 47.472l36.725 85.027c66.594-31.461 141.009-49.083 219.547-49.083zM195.443 731.377c0-40.25 4.629-79.417 13.37-117.007l-88.215-20.637c-33.906 147.212-12.908 306.442 68.628 444.549l77.852-44.906c-45.492-76.747-71.635-166.313-71.635-261.999zM775.236 514.777c46.584 13.589 89.045 42.3 119.402 84.678l125.302-85.87c-10.704-14.181-81.113-103.261-186.458-139.721M751.772 509.24l28.458-149.199c-77.99-14.327-160.442-4.134-234.861 32.799l60.376 139.786c45.855-24.786 97.368-32.092 146.027-23.386zM520.673 847.101c-31.415-51.376-39.778-111.009-27.389-166.175L345.361 646.32c-20.933 91.694-7.544 190.861 43.773 276.665M669.68 950.522c-46.869-9.056-90.873-32.971-124.379-70.373l-95.508 109.614c47.968 83.938 189.86 109.751 189.945 109.767l29.942-149.008zM799.638 1236.97c86.811-12.874 206.11-90.075 259.565-127.28.373-.339 1.169-1.073 2.691-2.531L859.103 899.941a226.526 226.526 0 0 1-18.856 14.63c-34.726 24.105-73.889 37.037-113.209 39.593"}))};t.default=u},d546:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M17.65,6.35C16.2,4.9 14.21,4 12,4C7.58,4 4,7.58 4,12C4,16.42 7.58,20 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18C8.69,18 6,15.31 6,12C6,8.69 8.69,6 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z"}))};e.exports=l},d560:function(e,t,n){"use strict";var r=Array.isArray,a="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},o="undefined"===typeof DataView?function(){}:DataView;function i(e){return a.isView(e)&&!(e instanceof o)}function l(e){return r(e)||i(e)}function s(e){return!l(e[0])}function u(e,t,n){if(l(e)){if(l(e[0])){for(var r=n,a=0;a<e.length;a++)r=t(r,e[a].length);return r}return e.length}return 0}t.isTypedArray=i,t.isArrayOrTypedArray=l,t.isArray1D=s,t.ensureArray=function(e,t){return r(e)||(e=[]),e.length=t,e},t.concat=function(){var e,t,n,a,o,i,l,s,u=[],c=!0,f=0;for(n=0;n<arguments.length;n++)a=arguments[n],i=a.length,i&&(t?u.push(a):(t=a,o=i),r(a)?e=!1:(c=!1,f?e!==a.constructor&&(e=!1):e=a.constructor),f+=i);if(!f)return[];if(!u.length)return t;if(c)return t.concat.apply(t,u);if(e){for(l=new e(f),l.set(t),n=0;n<u.length;n++)a=u[n],l.set(a,o),o+=a.length;return l}for(l=new Array(f),s=0;s<t.length;s++)l[s]=t[s];for(n=0;n<u.length;n++){for(a=u[n],s=0;s<a.length;s++)l[o+s]=a[s];o+=s}return l},t.maxRowLength=function(e){return u(e,Math.max,0)},t.minRowLength=function(e){return u(e,Math.min,1/0)}},d58a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("4d3e");function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"stateToHTML",{enumerable:!0,get:function(){return a(r).default}})},d5db:function(e,t,n){},d612:function(e,t,n){var r=n("7b83"),a=n("7ed2"),o=n("dc0f");function i(e){var t=-1,n=null==e?0:e.length;this.__data__=new r;while(++t<n)this.add(e[t])}i.prototype.add=i.prototype.push=a,i.prototype.has=o,e.exports=i},d618:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("691e")),a=l(n("ab5b")),o=s(n("d7bc"));function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==u(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function s(e){return e&&e.__esModule?e:{default:e}}function u(e){return 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},u(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(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 p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),e}function d(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&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function v(e){var t=g();return function(){var n,r=b(e);if(t){var a=b(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==u(t)&&"function"!==typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(){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}}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var x=function(e){d(n,e);var t=v(n);function n(e,r){var a;return c(this,n),a=t.call(this,e,r),a.setLocals(r),a}return p(n,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(t)}},{key:"setLocals",value:function(e){var t=this.context.localize,n=e.fullContainer.type;["bar","histogram","funnel","waterfall"].includes(n)?this.name=t("Bars"):["funnelarea","pie","sunburst","treemap"].includes(n)?this.name=t("Segments"):this.name=t("Points")}},{key:"render",value:function(){return a.default.createElement(r.default,{name:this.name},this.props.children)}}]),n}(a.Component);x.propTypes={children:o.default.node,name:o.default.string},x.contextTypes={fullContainer:o.default.object,localize:o.default.func};var _=x;t.default=_},d654:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("ab5b")),a=i(n("d7bc")),o=i(n("e874"));function i(e){return e&&e.__esModule?e:{default:e}}function l(e){return l="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},l(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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 c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(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&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){var t=m();return function(){var n,r=y(e);if(t){var a=y(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==l(t)&&"function"!==typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(){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}}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var g=function(e){f(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return c(n,[{key:"render",value:function(){var e=this.props.className,t=e||"text-editor__html";return r.default.createElement("textarea",{value:this.state.value,placeholder:this.props.placeholder,onChange:this.onChange,className:t})}}]),n}(o.default);g.propTypes={className:a.default.string},g.defaultProps={placeholder:""};var b=g;t.default=b},d6aa:function(e,t,n){"use strict";var r;function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n("9452"),l=n("f2e4"),s=n("24be"),u=n("ac05"),c=n("4f35"),f=n("67db"),p=n("6152"),d=n("ac96"),h=n("c687"),v=n("7301"),m=n("24f7"),y=m.List,g=m.Map,b=m.OrderedSet,x=n("effd"),_=n("681d"),w=n("38bc"),k=n("18c2"),T=v("draft_tree_data_support"),E="&nbsp;",O=" ",M=new RegExp("\r","g"),S=new RegExp("\n","g"),C=new RegExp("^\n","g"),A=new RegExp(E,"g"),P=new RegExp("&#13;?","g"),L=new RegExp("&#8203;?","g"),D=["bold","bolder","500","600","700","800","900"],j=["light","lighter","normal","100","200","300","400"],I=["className","href","rel","target","title"],R=["alt","className","height","src","width"],z=(r={},o(r,p("public/DraftStyleDefault/depth0"),0),o(r,p("public/DraftStyleDefault/depth1"),1),o(r,p("public/DraftStyleDefault/depth2"),2),o(r,p("public/DraftStyleDefault/depth3"),3),o(r,p("public/DraftStyleDefault/depth4"),4),r),N=g({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),F=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"===typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),g(t)},B=function(e){if(w(e)){var t=e;if(t.style.fontFamily.includes("monospace"))return"CODE"}return null},V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(z).some((function(n){e.classList.contains(n)&&(t=z[n])})),t},H=function(e){if(!x(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new f(t.href);return!0}catch(n){return!1}},U=function(e){if(!k(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},W=function(e,t){if(!w(e))return t;var n=e,r=n.style.fontWeight,a=n.style.fontStyle,o=n.style.textDecoration;return t.withMutations((function(e){D.indexOf(r)>=0?e.add("BOLD"):j.indexOf(r)>=0&&e.remove("BOLD"),"italic"===a?e.add("ITALIC"):"normal"===a&&e.remove("ITALIC"),"underline"===o&&e.add("UNDERLINE"),"line-through"===o&&e.add("STRIKETHROUGH"),"none"===o&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},q=function(e){return"ul"===e||"ol"===e},$=function(){function e(e,t){o(this,"characterList",y()),o(this,"currentBlockType","unstyled"),o(this,"currentDepth",0),o(this,"currentEntity",null),o(this,"currentText",""),o(this,"wrapper",null),o(this,"blockConfigs",[]),o(this,"contentBlocks",[]),o(this,"entityMap",c),o(this,"blockTypeMap",void 0),o(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=y(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=c,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],b())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(T?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key||d(),n=a({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:y(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=y(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r],o=a.nodeName.toLowerCase();if("body"===o||q(o)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var i=this.currentDepth,l=this.wrapper;q(o)&&(this.wrapper=o,q(l)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(a.childNodes),t)),this.currentDepth=i,this.wrapper=l}else{var s=this.blockTypeMap.get(o);if(void 0===s)if("#text"!==o)if("br"!==o)if(U(a))this._addImgNode(a,t);else if(H(a))this._addAnchorNode(a,n,t);else{var u=t;N.has(o)&&(u=u.add(N.get(o))),u=W(a,u);var c=B(a);null!=c&&(u=u.add(c)),n.push.apply(n,this._toBlockConfigs(Array.from(a.childNodes),u))}else this._addBreakNode(a,t);else this._addTextNode(a,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,p=this.wrapper;if(this.wrapper="pre"===o?"pre":this.wrapper,"string"!==typeof s&&(s=this.disambiguate(o,this.wrapper)||s[0]||"unstyled"),!T&&w(a)&&("unordered-list-item"===s||"ordered-list-item"===s)){var h=a;this.currentDepth=V(h,this.currentDepth)}var v=d(),m=this._toBlockConfigs(Array.from(a.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:v,childConfigs:m,type:s})),this.currentDepth=f,this.wrapper=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=i.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));t=void 0!==r?Math.min(t,r[0]):t,r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})),n=void 0!==r?Math.max(n,e-r[0]):n,t>n?(this.currentText="",this.characterList=y()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent,r=n.trim();""===r&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=n.replace(C,""),n=n.replace(S,O)),this._appendText(n,t)},t._addBreakNode=function(e,t){_(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(k(e)){var n=e,r={};R.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),v("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(x(e)){var r=e,a={};I.forEach((function(e){var t=r.getAttribute(e);t&&(a[e]=t)})),a.url=new f(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",a||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=y(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new s(a({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this,n=y(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}));return n},t._toFlatContentBlocks=function(e){var t=this,n=this._hoistContainersInBlockConfigs(e);n.forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new l(a({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=y(),a=0;a<=t;a++){var o=e[a];n+=o.text,r=r.concat(o.characterList),""!==n&&"unstyled"!==o.type&&(n+="\n",r=r.push(r.last()));var i=this._extractTextFromBlockConfigs(o.childConfigs);n+=i.text,r=r.concat(i.characterList)}return{text:n,characterList:r}},e}(),G=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;e=e.trim().replace(M,"").replace(A,O).replace(P,"").replace(L,"");var r=t(e);if(!r)return null;var a=F(n),o=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new $(a,o).addDOMNode(r).getContentBlocks()};e.exports=G},d70d:function(e,t,n){"use strict";var r=l(n("4a2f")),a=l(n("3c01")),o=l(n("5275")),i=l(n("4b75"));function l(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:i.default,TransitionGroup:o.default,ReplaceTransition:a.default,CSSTransition:r.default}},d72e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n("d654")),a=d(n("5f11")),o=p(n("ab5b")),i=d(n("d7bc")),l=d(n("0452")),s=n("0bab"),u=d(n("4d26")),c=d(n("ad9c"));function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="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},h(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=function(e){g(n,e);var t=x(n);function n(e,o){var i;v(this,n),i=t.call(this,e,o);var u=o.localize,c=[{key:"RICH_TEXT",label:u("Rich Text"),component:l.default},{key:"LATEX",label:u("LaTeX"),component:a.default},{key:"HTML",label:u("Edit in HTML"),component:r.default}],f=(0,s.isLaTeXExpr)(e.value)?"LATEX":"RICH_TEXT";return i.state={nextTab:null,currentTab:f,messages:[]},i.onModeChange=i.onModeChange.bind(w(i)),i.editors=c,i}return y(n,[{key:"convertValue",value:function(e,t){var n=this.state.currentTab;return"RICH_TEXT"===n&&"LATEX"===t?(0,s.htmlToLaTeX)(e):"LATEX"===n&&"RICH_TEXT"===t?(0,s.laTeXToHTML)(e):"HTML"===n&&"LATEX"===t?(0,s.htmlToLaTeX)(e):e}},{key:"onModeChange",value:function(e){var t,n=this.context.localize,r=this.props,a=r.defaultValuePattern,o=r.value,i=r.onChange,l=this.state.currentTab,u=o.trim(),c=u.length,f=this.convertValue(u,e),p=(0,s.isLaTeXExpr)(u)?a.test(f):a.test(u),d="RICH_TEXT"===l&&"HTML"===e||"HTML"===l&&"RICH_TEXT"===e;if(!p&&c>0&&!d)return t=(0,s.isLaTeXExpr)(o)?(0,s.hasTextExpression)(o)?[n("Rich text is incompatible with LaTeX."),n("Continuing will convert your LaTeX expression into raw text.")]:[n("Rich text is incompatible with LaTeX."),n("Continuing will remove your expression.")]:[n("LaTeX is a math typesetting language that doesn't work with rich text."),n("Continuing will convert your note to LaTeX-style text.")],void this.setState({nextTab:e,messages:t});this.setState({currentTab:e}),i(f)}},{key:"renderConfirmationPanel",value:function(e){var t=this;if(!e)return null;var n=this.context.localize,r=this.state.messages,a=function(){t.setState({nextTab:null})},i=function(){var e=t.state.nextTab,n=t.props,r=n.onChange,a=n.value;t.setState({currentTab:e,nextTab:null});var o=t.convertValue(a,e);r(o)};return o.default.createElement("div",{className:"multi-format-editor__confirmation-panel"},o.default.createElement("div",{className:"multi-format-editor__confirmation-panel__content"},o.default.createElement("h3",{className:"multi-format-editor__confirmation-panel__header"},n("Heads up!")),o.default.createElement("div",{className:"multi-format-editor__confirmation-panel__message"},o.default.createElement("p",{className:"multi-format-editor__confirmation-panel__message-primary"},r[0]),o.default.createElement("p",{className:"multi-format-editor__confirmation-panel__message-secondary"},r[1]))),o.default.createElement("div",{className:"multi-format-editor__confirmation-panel__actions"},o.default.createElement(c.default,{variant:"default",className:"multi-format-editor__confirmation-panel__cancel-button",onClick:a},n("Go back")),o.default.createElement(c.default,{variant:"primary",className:"multi-format-editor__confirmation-panel__continue-button",onClick:i},n("Continue"))))}},{key:"renderEditor",value:function(e){var t=this;if(!e)return null;var n=this.context.localize,r=this.props,a=r.onChange,i=r.placeholder,l=r.value,s=this.state.currentTab,c=(0,u.default)("multi-format-editor__tab","top-tab","left",{selected:"RICH_TEXT"===s}),f=(0,u.default)("multi-format-editor__tab","top-tab","right",{selected:"LATEX"===s}),p=(0,u.default)("multi-format-editor__tab","bottom-tab"),d=this.editors.filter((function(e){return e.key===s}))[0].component,h=this.editors.map((function(e){return e.label})),v="HTML"===s||"RICH_TEXT"===s,m="HTML"===s?o.default.createElement("div",{className:p,onClick:function(){return t.onModeChange("RICH_TEXT")}},n("Edit in Rich Text")):o.default.createElement("div",{className:p,onClick:function(){return t.onModeChange("HTML")}},n("Edit in HTML"));return o.default.createElement("div",{className:"multi-format-editor__root__wrapper"},o.default.createElement("div",{className:"multi-format-editor__tabs"},o.default.createElement("div",{className:c,onClick:function(){return t.onModeChange("RICH_TEXT")}},h[0]),o.default.createElement("div",{className:f,onClick:function(){return t.onModeChange("LATEX")}},h[1])),o.default.createElement("div",{className:"multi-format-editor__content__wrapper__".concat(s.toLowerCase())},o.default.createElement(d,{className:"multi-format-editor__".concat(s.toLowerCase()),onChange:a,placeholder:i,value:l})),v?m:null)}},{key:"render",value:function(){var e=this.state.nextTab,t=this.renderConfirmationPanel(null!==e)||this.renderEditor(null===e);return o.default.createElement("div",{className:"multi-format-editor__root"},t)}}]),n}(o.Component);E.propTypes={defaultValuePattern:i.default.instanceOf(RegExp),onChange:i.default.func.isRequired,placeholder:i.default.string,value:i.default.string},E.defaultProps={defaultValuePattern:/^$/,placeholder:"",value:""},E.contextTypes={localize:i.default.func};var O=E;t.default=O},d784:function(e,t,n){"use strict";n("ac1f");var r=n("6eeb"),a=n("d039"),o=n("b622"),i=n("9263"),l=n("9112"),s=o("species"),u=!a((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),c=function(){return"$0"==="a".replace(/./,"$0")}(),f=o("replace"),p=function(){return!!/./[f]&&""===/./[f]("a","$0")}(),d=!a((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}));e.exports=function(e,t,n,f){var h=o(e),v=!a((function(){var t={};return t[h]=function(){return 7},7!=""[e](t)})),m=v&&!a((function(){var t=!1,n=/a/;return"split"===e&&(n={},n.constructor={},n.constructor[s]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return t=!0,null},n[h](""),!t}));if(!v||!m||"replace"===e&&(!u||!c||p)||"split"===e&&!d){var y=/./[h],g=n(h,""[e],(function(e,t,n,r,a){return t.exec===i?v&&!a?{done:!0,value:y.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:p}),b=g[0],x=g[1];r(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return x.call(e,this,t)}:function(e){return x.call(e,this)})}f&&l(RegExp.prototype[h],"sham",!0)}},d79f:function(e,t,n){"use strict";var r=n("0984"),a=n("d8db"),o=r.isBrowser("Chrome");function i(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,l=Array.from(t.getClientRects());if(n.push(l),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}a(!1)}var l=o?i:function(e){return Array.from(e.getClientRects())};e.exports=l},d7a0:function(e,t,n){"use strict";var r=n("59b0");function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}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,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},d7bc:function(e,t,n){e.exports=n("d7a0")()},d7ee:function(e,t,n){var r=n("c3fc"),a=n("b047"),o=n("99d3"),i=o&&o.isSet,l=i?a(i):r;e.exports=l},d81d:function(e,t,n){"use strict";var r=n("23e7"),a=n("b727").map,o=n("1dde"),i=n("ae40"),l=o("map"),s=i("map");r({target:"Array",proto:!0,forced:!l||!s},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},d837:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),a=n("4d26"),o=d(a),i=n("ab5b"),l=d(i),s=n("d7bc"),u=d(s),c=n("6dd8"),f=d(c),p=n("fbf9");function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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}function y(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)}var g={orientation:{horizontal:{dimension:"width",direction:"left",reverseDirection:"right",coordinate:"x"},vertical:{dimension:"height",direction:"top",reverseDirection:"bottom",coordinate:"y"}}},b=function(e){function t(e,n){v(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.handleFormat=function(e){var t=r.props.format;return t?t(e):e},r.handleUpdate=function(){if(r.slider){var e=r.props.orientation,t=(0,p.capitalize)(g.orientation[e].dimension),n=r.slider["offset"+t],a=r.handle["offset"+t];r.setState({limit:n-a,grab:a/2})}},r.handleStart=function(e){var t=r.props.onChangeStart;document.addEventListener("mousemove",r.handleDrag),document.addEventListener("mouseup",r.handleEnd),r.setState({active:!0},(function(){t&&t(e)}))},r.handleDrag=function(e){e.stopPropagation();var t=r.props.onChange,n=e.target,a=n.className,o=n.classList,i=n.dataset;if(t&&"rangeslider__labels"!==a){var l=r.position(e);o&&o.contains("rangeslider__label-item")&&i.value&&(l=parseFloat(i.value)),t&&t(l,e)}},r.handleEnd=function(e){var t=r.props.onChangeComplete;r.setState({active:!1},(function(){t&&t(e)})),document.removeEventListener("mousemove",r.handleDrag),document.removeEventListener("mouseup",r.handleEnd)},r.handleKeyDown=function(e){e.preventDefault();var t=e.keyCode,n=r.props,a=n.value,o=n.min,i=n.max,l=n.step,s=n.onChange,u=void 0;switch(t){case 38:case 39:u=a+l>i?i:a+l,s&&s(u,e);break;case 37:case 40:u=a-l<o?o:a-l,s&&s(u,e);break}},r.getPositionFromValue=function(e){var t=r.state.limit,n=r.props,a=n.min,o=n.max,i=o-a,l=e-a,s=l/i,u=Math.round(s*t);return u},r.getValueFromPosition=function(e){var t=r.state.limit,n=r.props,a=n.orientation,o=n.min,i=n.max,l=n.step,s=(0,p.clamp)(e,0,t)/(t||1),u=l*Math.round(s*(i-o)/l),c="horizontal"===a?u+o:i-u;return(0,p.clamp)(c,o,i)},r.position=function(e){var t=r.state.grab,n=r.props,a=n.orientation,o=n.reverse,i=r.slider,l=g.orientation[a].coordinate,s=o?g.orientation[a].reverseDirection:g.orientation[a].direction,u="client"+(0,p.capitalize)(l),c=e.touches?e.touches[0][u]:e[u],f=i.getBoundingClientRect()[s],d=o?f-c-t:c-f-t,h=r.getValueFromPosition(d);return h},r.coordinates=function(e){var t=r.state,n=t.limit,a=t.grab,o=r.props.orientation,i=r.getValueFromPosition(e),l=r.getPositionFromValue(i),s="horizontal"===o?l+a:l,u="horizontal"===o?s:n-s;return{fill:u,handle:s,label:s}},r.renderLabels=function(e){return l.default.createElement("ul",{ref:function(e){r.labels=e},className:(0,o.default)("rangeslider__labels")},e)},r.state={active:!1,limit:0,grab:0},r}return y(t,e),r(t,[{key:"componentDidMount",value:function(){this.handleUpdate();var e=new f.default(this.handleUpdate);e.observe(this.slider)}},{key:"render",value:function(){var e=this,t=this.props,n=t.value,r=t.orientation,a=t.className,i=t.tooltip,s=t.reverse,u=t.labels,c=t.min,f=t.max,p=t.handleLabel,d=this.state.active,v=g.orientation[r].dimension,m=s?g.orientation[r].reverseDirection:g.orientation[r].direction,y=this.getPositionFromValue(n),b=this.coordinates(y),x=h({},v,b.fill+"px"),_=h({},m,b.handle+"px"),w=i&&d,k=[],T=Object.keys(u);if(T.length>0){T=T.sort((function(e,t){return s?e-t:t-e}));var E=!0,O=!1,M=void 0;try{for(var S,C=T[Symbol.iterator]();!(E=(S=C.next()).done);E=!0){var A=S.value,P=this.getPositionFromValue(A),L=this.coordinates(P),D=h({},m,L.label+"px");k.push(l.default.createElement("li",{key:A,className:(0,o.default)("rangeslider__label-item"),"data-value":A,onMouseDown:this.handleDrag,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,style:D},this.props.labels[A]))}}catch(j){O=!0,M=j}finally{try{!E&&C.return&&C.return()}finally{if(O)throw M}}}return l.default.createElement("div",{ref:function(t){e.slider=t},className:(0,o.default)("rangeslider","rangeslider-"+r,{"rangeslider-reverse":s},a),onMouseDown:this.handleDrag,onMouseUp:this.handleEnd,onTouchStart:this.handleStart,onTouchEnd:this.handleEnd,"aria-valuemin":c,"aria-valuemax":f,"aria-valuenow":n,"aria-orientation":r},l.default.createElement("div",{className:"rangeslider__fill",style:x}),l.default.createElement("div",{ref:function(t){e.handle=t},className:"rangeslider__handle",onMouseDown:this.handleStart,onTouchMove:this.handleDrag,onTouchEnd:this.handleEnd,onKeyDown:this.handleKeyDown,style:_,tabIndex:0},w?l.default.createElement("div",{ref:function(t){e.tooltip=t},className:"rangeslider__handle-tooltip"},l.default.createElement("span",null,this.handleFormat(n))):null,l.default.createElement("div",{className:"rangeslider__handle-label"},p)),u?this.renderLabels(k):null)}}]),t}(i.Component);b.propTypes={min:u.default.number,max:u.default.number,step:u.default.number,value:u.default.number,orientation:u.default.string,tooltip:u.default.bool,reverse:u.default.bool,labels:u.default.object,handleLabel:u.default.string,format:u.default.func,onChangeStart:u.default.func,onChange:u.default.func,onChangeComplete:u.default.func},b.defaultProps={min:0,max:100,step:1,value:0,orientation:"horizontal",tooltip:!0,reverse:!1,labels:{},handleLabel:""},t.default=b},d87d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 60 60"},e),o.default.createElement("path",{fill:"#119dff",d:"M8.8 12h42.4v8.3H8.8z"}),o.default.createElement("path",{fill:"#09ffff",d:"M8.8 20.3l7.2 2.2h28.6l6.6-2.2H8.8z"}),o.default.createElement("path",{fill:"#119dff",d:"M16 22.5h28.2v8.3H16z"}),o.default.createElement("path",{fill:"#09ffff",d:"M16 30.9l3.3 2.2H41l3.3-2.2H16z"}),o.default.createElement("path",{fill:"#119dff",d:"M19.3 33.1h21.6v8.1H19.3z"}),o.default.createElement("path",{fill:"#09ffff",d:"M19.3 41.1l3.9 2.5h13.9l3.9-2.5H19.3z"}),o.default.createElement("path",{fill:"#119dff",d:"M23.2 43.6H37V50H23.2z"}))};t.default=u},d8a3:function(e,t,n){"use strict";var r=n("9e8e").dash,a=n("5940").extendFlat;e.exports={newshape:{line:{color:{valType:"color",editType:"none",role:"info",description:["Sets the line color.","By default uses either dark grey or white","to increase contrast with background color."].join(" ")},width:{valType:"number",min:0,dflt:4,role:"info",editType:"none",description:"Sets the line width (in px)."},dash:a({},r,{dflt:"solid",editType:"none"}),role:"info",editType:"none"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",role:"info",editType:"none",description:["Sets the color filling new shapes' interior.","Please note that if using a fillcolor with alpha greater than half,","drag inside the active shape starts moving the shape underneath,","otherwise a new shape could be started over."].join(" ")},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",role:"info",editType:"none",description:["Determines the path's interior.","For more info please visit https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/fill-rule"].join(" ")},opacity:{valType:"number",min:0,max:1,dflt:1,role:"info",editType:"none",description:"Sets the opacity of new shapes."},layer:{valType:"enumerated",values:["below","above"],dflt:"above",role:"info",editType:"none",description:"Specifies whether new shapes are drawn below or above traces."},drawdirection:{valType:"enumerated",role:"info",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",editType:"none",description:["When `dragmode` is set to *drawrect*, *drawline* or *drawcircle*","this limits the drag to be horizontal, vertical or diagonal.","Using *diagonal* there is no limit e.g. in drawing lines in any direction.","*ortho* limits the draw to be either horizontal or vertical.","*horizontal* allows horizontal extend.","*vertical* allows vertical extend."].join(" ")},editType:"none"},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",role:"style",editType:"none",description:"Sets the color filling the active shape' interior."},opacity:{valType:"number",min:0,max:1,dflt:.5,role:"info",editType:"none",description:"Sets the opacity of the active shape."},editType:"none"}}},d8ab:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shamefullyAdjustAxisDirection=t.shamefullyAdjustSizeref=t.shamefullyDeleteRelatedAnalysisTransforms=t.shamefullyCreateSplitStyleProps=t.shamefullyAdjustSplitStyleTargetContainers=t.shamefullyAddTableColumns=t.shamefullyAdjustMapbox=t.shamefullyAdjustGeo=t.shamefullyAdjustAxisRef=t.shamefullyClearAxisTypes=void 0;var r=n("796d"),a=o(n("10b4"));function o(e){return e&&e.__esModule?e:{default:e}}var i=function(e,t){var n=t.traceIndexes,r=t.update;if(Array.isArray(e._fullData)){var a=!1;for(var o in r)"src"===o.substr(o.length-3)&&(a=!0);a&&s(e,n)}};t.shamefullyClearAxisTypes=i;var l=["x","y","z"];function s(e,t){for(var n=0;n<t.length;n++)for(var o=e._fullData[n],i=0;i<3;i++){var s=l[i],u=(0,r.getFromId)(e,o[s+"axis"]||s);if(u&&"log"!==u.type){var c=u._name,f=c+".type";(0,a.default)(e.layout,f).set(null)}}}var u=function(e,t){t.axesToBeGarbageCollected&&t.axesToBeGarbageCollected.forEach((function(t){var n=t.charAt(0),r=Number(t.slice(1));(0,a.default)(e.layout,"".concat(n,"axis").concat(r||"")).set(null),Object.keys(e.layout).filter((function(e){return e.startsWith(n+"axis")})).forEach((function(n){(0,a.default)(e.layout,"".concat(n,".overlaying")).get()===t&&(0,a.default)(e.layout,"".concat(n,".overlaying")).set(null)}))})),t.subplotToBeGarbageCollected&&(0,a.default)(e.layout,t.subplotToBeGarbageCollected).set(null)};t.shamefullyAdjustAxisRef=u;var c=/^(geo\d*)\./,f=function(e,t){var n=e.layout,r=t.update;Object.keys(r).forEach((function(e){var t=c.exec(e);if(t){var a=t[1];r[a+".scope"]&&(r[a+".projection"]={},r[a+".center"]={}),r[a+".projection.type"]&&("albers usa"===r[a+".projection.type"]||n[a]&&"usa"===n[a].scope)&&(r[a+".scope"]={},r[a+".center"]={})}}))};t.shamefullyAdjustGeo=f;var p=function(e){e.layout&&e.layout.mapbox&&e.layout.mapbox.style||(0,a.default)(e.layout,"mapbox.style").set("open-street-map")};t.shamefullyAdjustMapbox=p;var d=function(e,t){var n=t.traceIndexes,r=t.update;!r["cells.values"]||e.data[n[0]].header&&e.data[n[0]].header.valuessrc?null===r["header.values"]?r["header.values"]=e.data[n[0]].cells.valuessrc||null:null!==r["cells.values"]||e.data[n[0]].header.valuessrc||(r["header.values"]=null):r["header.values"]=r["cells.valuessrc"]};t.shamefullyAddTableColumns=d;var h=function(e,t){var n=t.traceIndexes,r=t.update;for(var a in r)if(a&&a.startsWith("transforms")&&a.endsWith("groups")){var o=parseInt(a.split("[")[1],10),i=e.data[n[0]].transforms[o];i&&"groupby"===i.type&&i.styles&&(!i.styles.length&&r[a]&&Array.isArray(r[a])&&function(){var e=[];r[a].forEach((function(t){e.includes(t)||e.push(t)}));var t=e.map((function(e){return{target:e,value:{}}}));r["transforms[".concat(o,"].styles")]=t}(),i.styles.length&&!r[a]&&(r["transforms[".concat(o,"].styles")]=[]))}};t.shamefullyAdjustSplitStyleTargetContainers=h;var v=function(e,t,n,r){Array.isArray(r)||(r=[r]);var o=null;function i(r){var i=null;e.data[n].transforms[o].styles.forEach((function(e,t){e.target.toString()===r&&(i=t)}));var l=e.data[n].transforms[o].styles[i].value;return t.split(".").forEach((function(e){l[e]||(l[e]={}),l=l[e]})),(0,a.default)(e.data[n].transforms[o].styles[i].value,t)}return e.data[n].transforms.forEach((function(e,t){"groupby"===e.type&&(o=t)})),r.map((function(e){return i(e)}))};t.shamefullyCreateSplitStyleProps=v;var m=function(e,t){var n=t.traceIndexes[0],r=e.data[n].uid;if(r){var a=[];e.data.forEach((function(e,t){e.transforms&&e.transforms.some((function(e){return["moving-average","fit"].includes(e.type)&&e.inputUid===r}))&&a.push(t)})),a.length&&a.forEach((function(t){e.data.splice(t,1)}))}};t.shamefullyDeleteRelatedAnalysisTransforms=m;var y=function(e,t){var n=t.update,r=n["marker.size"],a=void 0===r?null:r,o=n["marker.sizesrc"],i=void 0===o?null:o;if(a&&i){var l=45,s=l*l;n["marker.sizeref"]=a.reduce((function(e,t){return Math.max(e,t)}))/s,n["marker.sizemode"]="area"}};t.shamefullyAdjustSizeref=y;var g=function(e,t){var n=t.update;"funnel"===n.type&&1===e.data.length&&(e.layout.yaxis.autorange="reversed")};t.shamefullyAdjustAxisDirection=g},d8d0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.DOWN_ARROW=t.UP_ARROW=void 0;var r=f(n("43fa")),a=c(n("ab5b")),o=f(n("d7bc")),i=f(n("19b2")),l=f(n("9398")),s=n("8704");function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function m(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&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function g(e){var t=_();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=38;t.UP_ARROW=k;var T=40;t.DOWN_ARROW=T;var E=function(e){m(n,e);var t=g(n);function n(e){var r;return d(this,n),r=t.call(this,e),r.state={value:e.value,numericInputClassName:r.getNumericInputClassName(e.value)},r.onChange=r.onChange.bind(x(r)),r.updateValue=r.updateValue.bind(x(r)),r.onKeyDown=r.onKeyDown.bind(x(r)),r.onWheel=r.onWheel.bind(x(r)),r}return v(n,[{key:"getNumericInputClassName",value:function(e){return(0,i.default)(e)||""===e?"numeric-input__number ".concat(this.props.editableClassName?this.props.editableClassName:""):"numeric-input__number +error ".concat(this.props.editableClassName?this.props.editableClassName:"")}},{key:"componentWillReceiveProps",value:function(e){e.value!==this.state.value&&this.setState({value:e.value})}},{key:"onKeyDown",value:function(e){switch(e.keyCode){case k:this.incrementValue("increase");break;case T:this.incrementValue("decrease");break;default:break}}},{key:"onWheel",value:function(e){e.stopPropagation(),e.preventDefault(),e.deltaY>0?this.incrementValue("increase"):this.incrementValue("decrease")}},{key:"onChange",value:function(e){this.setState({value:e,numericInputClassName:this.getNumericInputClassName(e)})}},{key:"updateValue",value:function(e){var t=this.props,n=t.max,r=t.min,a=t.integerOnly,o=e;""!==o?(0,i.default)(o)?(o=Number(o),a&&(o=Math.floor(o)),(0,i.default)(r)&&(o=Math.max(r,o)),(0,i.default)(n)&&(o=Math.min(n,o)),this.props.onUpdate(o)):this.setState({value:o,numericInputClassName:this.getNumericInputClassName(o)}):this.setState({value:this.props.value,numericInputClassName:this.getNumericInputClassName(this.props.value)})}},{key:"incrementValue",value:function(e){var t,n=this.props,r=n.defaultValue,a=n.min,o=n.step,l=void 0===o?1:o,s=n.stepmode,u=void 0===s?"absolute":s,c=this.state.value;if((0,i.default)(c)){var f=parseFloat(c),p="absolute"===u;t="increase"===e?p?f+l:f*(1+l):p?f-l:f/(1+l)}else t=(0,i.default)(r)?r:a||0;this.updateValue(t)}},{key:"renderArrows",value:function(){return!this.props.showArrows||this.props.showSlider?null:a.default.createElement("div",{className:"numeric-input__caret-box"},a.default.createElement("div",{className:"numeric-input__caret js-numeric-increase",onClick:this.incrementValue.bind(this,"increase")},a.default.createElement(s.CarretUpIcon,{className:"numeric-top-caret-modifier"})),a.default.createElement("div",{className:"numeric-input__caret js-numeric-decrease",onClick:this.incrementValue.bind(this,"decrease")},a.default.createElement(s.CarretDownIcon,{className:"numeric-bottom-caret-modifier"})))}},{key:"renderSlider",value:function(){return this.props.showSlider?a.default.createElement(l.default,{min:this.props.min,max:this.props.max,step:this.props.step,value:parseFloat(this.state.value),onChange:this.updateValue,tooltip:!1}):null}},{key:"render",value:function(){return a.default.createElement("div",{className:"numeric-input__wrapper"},a.default.createElement(r.default,{className:this.state.numericInputClassName,placeholder:this.props.placeholder,text:this.state.value,type:"text",onChange:this.onChange,onUpdate:this.updateValue,onKeyDown:this.onKeyDown,onWheel:this.onWheel}),this.renderArrows(),this.renderSlider(),this.props.units?this.props.units:null)}}]),n}(a.Component);t.default=E,E.propTypes={defaultValue:o.default.any,editableClassName:o.default.string,integerOnly:o.default.bool,max:o.default.number,min:o.default.number,onUpdate:o.default.func.isRequired,placeholder:o.default.oneOfType([o.default.string,o.default.number]),showArrows:o.default.bool,showSlider:o.default.bool,step:o.default.number,stepmode:o.default.string,value:o.default.any,units:o.default.string},E.defaultProps={showArrows:!0}},d8db:function(e,t,n){"use strict";var r=function(e){};function a(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o];if(r(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=0;i=new Error(t.replace(/%s/g,(function(){return String(a[l++])}))),i.name="Invariant Violation"}throw i.framesToPop=1,i}}e.exports=a},d8dc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=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}}(),o=n("ab5b"),i=d(o),l=n("d7bc"),s=d(l),u=n("4ea5"),c=n("db0b"),f=n("d973"),p=d(f);function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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}function m(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)}function y(e,t,n){if(e)return function(r){r.persist(),e(t,n,r)}}var g=function(e){function t(){return h(this,t),v(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return m(t,e),a(t,[{key:"shouldComponentUpdate",value:function(e){var t=this,n=Object.keys(this.props),r=Object.keys(e);return n.length!==r.length||n.some((function(n){if("modifiers"===n||"modifiersStyles"===n||"classNames"===n){var r=t.props[n],a=e[n],o=Object.keys(r),i=Object.keys(a);return o.length!==i.length||o.some((function(e){return!(0,c.hasOwnProp)(a,e)||r[e]!==a[e]}))}return"day"===n?!(0,u.isSameDay)(t.props[n],e[n]):!(0,c.hasOwnProp)(e,n)||t.props[n]!==e[n]}))}},{key:"render",value:function(){var e=this.props,t=e.classNames,n=e.modifiersStyles,a=e.day,o=e.tabIndex,l=e.empty,s=e.modifiers,u=e.onMouseEnter,c=e.onMouseLeave,f=e.onMouseUp,d=e.onMouseDown,h=e.onClick,v=e.onKeyDown,m=e.onTouchStart,g=e.onTouchEnd,b=e.onFocus,x=e.ariaLabel,_=e.ariaDisabled,w=e.ariaSelected,k=e.children,T=t.day;t!==p.default?T+=" "+Object.keys(s).join(" "):T+=Object.keys(s).map((function(e){return" "+T+"--"+e})).join("");var E=void 0;return n&&Object.keys(s).filter((function(e){return!!n[e]})).forEach((function(e){E=r({},E,n[e])})),l?i.default.createElement("div",{"aria-disabled":!0,className:T,style:E}):i.default.createElement("div",{className:T,tabIndex:o,style:E,role:"gridcell","aria-label":x,"aria-disabled":_,"aria-selected":w,onClick:y(h,a,s),onKeyDown:y(v,a,s),onMouseEnter:y(u,a,s),onMouseLeave:y(c,a,s),onMouseUp:y(f,a,s),onMouseDown:y(d,a,s),onTouchEnd:y(g,a,s),onTouchStart:y(m,a,s),onFocus:y(b,a,s)},k)}}]),t}(o.Component);g.propTypes={classNames:s.default.shape({day:s.default.string.isRequired}).isRequired,day:s.default.instanceOf(Date).isRequired,children:s.default.node.isRequired,ariaDisabled:s.default.bool,ariaLabel:s.default.string,ariaSelected:s.default.bool,empty:s.default.bool,modifiers:s.default.object,modifiersStyles:s.default.object,onClick:s.default.func,onKeyDown:s.default.func,onMouseEnter:s.default.func,onMouseLeave:s.default.func,onMouseDown:s.default.func,onMouseUp:s.default.func,onTouchEnd:s.default.func,onTouchStart:s.default.func,onFocus:s.default.func,tabIndex:s.default.number},g.defaultProps={tabIndex:-1},g.defaultProps={modifiers:{},modifiersStyles:{},empty:!1},t.default=g},d973:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={container:"DayPicker",wrapper:"DayPicker-wrapper",interactionDisabled:"DayPicker--interactionDisabled",months:"DayPicker-Months",month:"DayPicker-Month",navBar:"DayPicker-NavBar",navButtonPrev:"DayPicker-NavButton DayPicker-NavButton--prev",navButtonNext:"DayPicker-NavButton DayPicker-NavButton--next",navButtonInteractionDisabled:"DayPicker-NavButton--interactionDisabled",caption:"DayPicker-Caption",weekdays:"DayPicker-Weekdays",weekdaysRow:"DayPicker-WeekdaysRow",weekday:"DayPicker-Weekday",body:"DayPicker-Body",week:"DayPicker-Week",weekNumber:"DayPicker-WeekNumber",day:"DayPicker-Day",footer:"DayPicker-Footer",todayButton:"DayPicker-TodayButton",today:"today",selected:"selected",disabled:"disabled",outside:"outside"}},d98d:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8C19.66,8 21,6.66 21,5C21,3.34 19.66,2 18,2C16.34,2 15,3.34 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9C4.34,9 3,10.34 3,12C3,13.66 4.34,15 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19C20.92,17.39 19.61,16.08 18,16.08Z"}))};e.exports=l},da03:function(e,t,n){var r=n("2b3e"),a=r["__core-js_shared__"];e.exports=a},da67:function(e,t,n){"use strict";var r=n("a211");var a=r;e.exports=a},da68:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n("d7bc")),a=i(n("ab5b"));function o(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function i(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!==typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=r?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function l(e){return e&&e.__esModule?e:{default:e}}function s(e){return 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},s(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function p(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&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=y();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){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}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var b=function(e){p(n,e);var t=h(n);function n(){return u(this,n),t.apply(this,arguments)}return f(n,[{key:"render",value:function(){return a.default.createElement("img",{className:"sidebar__logo",src:this.props.src})}}]),n}(a.Component);t.default=b,b.plotly_editor_traits={sidebar_element:!0},b.propTypes={src:r.default.string}},da6a:function(e,t,n){"use strict";var r=n("4cec"),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?l:s[e["$$typeof"]]||a}s[r.ForwardRef]=i,s[r.Memo]=l;var c=Object.defineProperty,f=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,v=Object.prototype;function m(e,t,n){if("string"!==typeof t){if(v){var r=h(t);r&&r!==v&&m(e,r,n)}var a=f(t);p&&(a=a.concat(p(t)));for(var i=u(e),l=u(t),s=0;s<a.length;++s){var y=a[s];if(!o[y]&&(!n||!n[y])&&(!l||!l[y])&&(!i||!i[y])){var g=d(t,y);try{c(e,y,g)}catch(b){}}}}return e}e.exports=m},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||Function("return this")()}).call(this,n("c8ba"))},db0b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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};t.cancelEvent=u,t.getFirstDayOfMonth=c,t.getDaysInMonth=f,t.getModifiersFromProps=p,t.getFirstDayOfWeekFromProps=d,t.isRangeOfDates=h,t.getMonthsDiff=v,t.getWeekArray=m,t.startOfMonth=y,t.getDayNodes=g,t.nodeListToArray=b,t.hasOwnProp=x;var a=n("4ea5"),o=n("a6a7"),i=n("d973"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}function u(e){e.preventDefault(),e.stopPropagation()}function c(e){return new Date(e.getFullYear(),e.getMonth(),1,12)}function f(e){var t=c(e);return t.setMonth(t.getMonth()+1),t.setDate(t.getDate()-1),t.getDate()}function p(e){var t=r({},e.modifiers);return e.selectedDays&&(t[e.classNames.selected]=e.selectedDays),e.disabledDays&&(t[e.classNames.disabled]=e.disabledDays),t}function d(e){var t=e.firstDayOfWeek,n=e.locale,r=void 0===n?"en":n,a=e.localeUtils,o=void 0===a?{}:a;return isNaN(t)?o.getFirstDayOfWeek?o.getFirstDayOfWeek(r):0:t}function h(e){return!!(e&&e.from&&e.to)}function v(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}function m(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(0,o.getFirstDayOfWeek)(),n=arguments[2],r=f(e),i=[],l=[],s=[],u=1;u<=r;u+=1)i.push(new Date(e.getFullYear(),e.getMonth(),u,12));i.forEach((function(e){l.length>0&&e.getDay()===t&&(s.push(l),l=[]),l.push(e),i.indexOf(e)===i.length-1&&s.push(l)}));for(var c=s[0],p=7-c.length;p>0;p-=1){var d=(0,a.clone)(c[0]);d.setDate(c[0].getDate()-1),c.unshift(d)}for(var h=s[s.length-1],v=h.length;v<7;v+=1){var m=(0,a.clone)(h[h.length-1]);m.setDate(h[h.length-1].getDate()+1),h.push(m)}if(n&&s.length<6)for(var y=void 0,g=s.length;g<6;g+=1){y=s[s.length-1];for(var b=y[y.length-1],x=[],_=0;_<7;_+=1){var w=(0,a.clone)(b);w.setDate(b.getDate()+_+1),x.push(w)}s.push(x)}return s}function y(e){var t=(0,a.clone)(e);return t.setDate(1),t.setHours(12,0,0,0),t}function g(e,t){var n=void 0;n=t===l.default?t.day+"--"+t.outside:""+t.outside;var r=t.day.replace(/ /g,"."),a=n.replace(/ /g,"."),o="."+r+":not(."+a+")";return e.querySelectorAll(o)}function b(e){return Array.prototype.slice.call(e,0)}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},db3a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPreviews=void 0;var r=n("ab5b"),a=l(r),o=n("fc55"),i=l(o);function l(e){return e&&e.__esModule?e:{default:e}}var s=t.PhotoshopPreviews=function(e){var t=e.rgb,n=e.currentColor,r=(0,i.default)({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+t.r+","+t.g+", "+t.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return a.default.createElement("div",null,a.default.createElement("div",{style:r.label},"new"),a.default.createElement("div",{style:r.swatches},a.default.createElement("div",{style:r.new}),a.default.createElement("div",{style:r.current})),a.default.createElement("div",{style:r.label},"current"))};t.default=s},db95:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("g",{fill:"none"},o.default.createElement("path",{d:"M0 0h46v46H0z"}),o.default.createElement("path",{stroke:"#1d9bfb",d:"M41.5 16.469l-8.745 8.887-4.71 7.858-4.709 3.418-8.745-5.468L4.5 29.796l5.382-4.101 4.036-7.176 9.418-8.887 8.073 4.786L41.5 16.469z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{stroke:"#1d9bfb",d:"M28.045 33.214l-9.418-5.468-8.745-2.051m22.873-.339l-9.419-3.419-9.418-3.418",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{stroke:"#1d9bfb",d:"M14.591 31.164l4.036-3.418 4.709-5.809 8.073-7.519",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})))};t.default=u},dbb1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M32 5.313l-9.375 14.688L6.687 5.313-.001 18.688v7.938l8-14.625 16 14.625 8-13.313z"}))};t.default=u},dbb4:function(e,t,n){var r=n("23e7"),a=n("83ab"),o=n("56ef"),i=n("fc6a"),l=n("06cf"),s=n("8418");r({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(e){var t,n,r=i(e),a=l.f,u=o(r),c={},f=0;while(u.length>f)n=a(r,t=u[f++]),void 0!==n&&s(c,t,n);return c}})},dc0f:function(e,t){function n(e){return this.__data__.has(e)}e.exports=n},dc1a:function(e,t,n){"use strict";var r=n("dec3"),a=n("8cb4"),o=n("9168"),i=n("f1df");function l(e){var t=i(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),i=t.getAnchorOffset(),l=n.getBlockForKey(r).getText()[i-1];return o(e,l?a.getUTF16Length(l,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}e.exports=l},dc1f:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M10,2H14C15.1,2 16,2.9 16,4V6H20C21.1,6 22,6.9 22,8V19C22,20.1 21.1,21 20,21H4C2.89,21 2,20.1 2,19V8C2,6.89 2.89,6 4,6H8V4C8,2.89 8.89,2 10,2M14,6V4H10V6H14Z"}))};e.exports=l},dc57:function(e,t){var n=Function.prototype,r=n.toString;function a(e){if(null!=e){try{return r.call(e)}catch(t){}try{return e+""}catch(t){}}return""}e.exports=a},dcbe:function(e,t,n){var r=n("30c9"),a=n("1310");function o(e){return a(e)&&r(e)}e.exports=o},dcc5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M23.375 15.75c-1.813-.563-2.813-3-2.813-3-.063-.25-.563-1.313-.563-1.563a93.2 93.2 0 0 1-.688-2.125l-.375-.813c-.25-.5-.688-1.375-1.25-2.063l-.313-.313-.25-.188c-.375-.25-.688-.375-1.063-.375s-1.063.188-1.563.688l-.5.688a5.836 5.836 0 0 1-.313.5c-.125.25-.313.563-.438.875l.125-.25-.375.75s-.438 1.063-.563 1.563c0 0-.25.75-.313 1.125 0-.125.063-.313.063-.438l-.313 1.063c-.25.438-.5 1.125-.5 1.125-.5.688-.875 2-3.188 2.875l-2.938 1-5.25 1.813 16 8 16-8zm-11.312-4.312c0 .063-.063.125-.125.188.063-.063.063-.125.125-.188z"}))};t.default=u},dccc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.INLINE_STYLES=t.STYLE_MAP=t.STYLES_TO_HTML_TAGS=t.ITALIC=t.BOLD=t.LINK=t.SUBSCRIPT=t.SUPERSCRIPT=void 0;var r,a,o=u(n("ab5b")),i=n("f825"),l=n("8704"),s=n("e419");function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var f="SUPERSCRIPT";t.SUPERSCRIPT=f;var p="SUBSCRIPT";t.SUBSCRIPT=p;var d="LINK";t.LINK=d;var h=i.INLINE_STYLE.BOLD,v=i.INLINE_STYLE.ITALIC;t.ITALIC=v,t.BOLD=h;var m=(r={},c(r,h,{element:"b"}),c(r,v,{element:"i"}),c(r,f,{element:"sup"}),c(r,p,{element:"sub"}),c(r,d,{element:"a"}),r);t.STYLES_TO_HTML_TAGS=m;var y=(a={},c(a,h,{fontWeight:"bolder"}),c(a,v,{fontStyle:"italic"}),c(a,p,{lineHeight:0,fontSize:"65%",position:"relative",bottom:"-3px"}),c(a,f,{lineHeight:0,fontSize:"65%",position:"relative",top:"-5px"}),c(a,d,{color:s.COLORS.editorLink,linkDecoration:"none",cursor:"pointer"}),a);t.STYLE_MAP=y;var g=[{label:o.default.createElement("span",{style:y[h]},"B"),value:h},{label:o.default.createElement("span",{style:y[v]},"I"),value:v},{label:o.default.createElement("span",null,"x",o.default.createElement("span",{style:y[p]},"2")),value:p},{label:o.default.createElement("span",null,"x",o.default.createElement("span",{style:y[f]},"2")),value:f},{label:o.default.createElement("span",null,o.default.createElement(l.LinkIcon,{className:"icon-link"})),value:d}];t.INLINE_STYLES=g},dd06:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"#27d1f0",stroke:"#fff",d:"M32.05 26.375l-2.3 3.45-4.6 1.15-2.3-2.3H19.4l-6.15 1.15-3.45-2.3 3.85-4.6v-3.45h5.163l4.187 3 4.45-3 9.2 6.9h-4.6z",strokeLinecap:"round",strokeLinejoin:"round"}),o.default.createElement("path",{fill:"#1d9bfb",stroke:"#fff",d:"M36.65 26.375l-9.2-6.9-4.45 3-4.187-3H13.65l-2.875-1.725v-2.3l-1.15-1.15-1.15 1.15-1.15-1.15V9.7h2.3l2.3-1.15h2.3l3.45 2.3h3.45l4.6-2.3 3.45 3.45-3.45 3.45h5.75v-2.3h3.45v1.15l1.15 1.15 1.15-1.15 3.45 3.45v3.45H36.65v5.175zm-9.775 7.475L25.725 35h-1.15l.575-4.025-2.3-2.3H19.4l-6.15 1.15 7.875 4.025v2.3l3.45 2.3h2.3l1.15-1.15V35l-1.15-1.15z",strokeLinecap:"round",strokeLinejoin:"round"}))};t.default=u},dd61:function(e,t,n){var r=n("7948"),a=n("badf"),o=n("97d3"),i=n("6747");function l(e,t){var n=i(e)?r:o;return n(e,a(t,3))}e.exports=l},dd6d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M19.188 7.375c2.25.125 4.5 1.063 6.25 2.563l-6.25 6.313zm1.062 9.563h6.063c-.125-1.25-.75-3.125-1.75-4.313zm5.625 7c1.375-1.625 2.25-3.438 2.375-5.688h-8zM19.188 29a10.928 10.928 0 0 0 6.813-2.813l-6.813-6.813zm-1.25 1.438V19.375l-7.813 7.813a13.045 13.045 0 0 0 7.813 3.25zM4.875 18.25C5.063 21.438 6.313 24.563 8.5 27l8.625-8.75zm2.75-10.875c-2.375 2.688-3.75 6.375-3.875 9.563h13.375zm10.313-5.75c-3.563.188-7.438 1.688-10.25 4.313l10.25 10.313z"}))};t.default=u},ddb0:function(e,t,n){var r=n("da84"),a=n("fdbc"),o=n("e260"),i=n("9112"),l=n("b622"),s=l("iterator"),u=l("toStringTag"),c=o.values;for(var f in a){var p=r[f],d=p&&p.prototype;if(d){if(d[s]!==c)try{i(d,s,c)}catch(v){d[s]=c}if(d[u]||i(d,u,f),a[f])for(var h in o)if(d[h]!==o[h])try{i(d,h,o[h])}catch(v){d[h]=o[h]}}}},ddc9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("9903")),a=c(n("201b")),o=c(n("d7bc")),i=u(n("ab5b")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=(0,l.connectUpdateMenuToLayout)(r.default),k=function(e){v(n,e);var t=y(n);function n(){return p(this,n),t.apply(this,arguments)}return h(n,[{key:"render",value:function(){var e=this.context,t=e.fullLayout.updatemenus,n=void 0===t?[]:t,r=e.localize,o=this.props.children,l=n.length>0&&n.map((function(e,t){var n={dropdown:r("Dropdown"),buttons:r("Buttons")},a=n[e.type]||n.dropdown,l=e.buttons.filter((function(t){return t._index===e.active}))[0],s=a+(l?": "+l.label:"");return i.default.createElement(w,{key:t,updateMenuIndex:t,name:s},o)}));return i.default.createElement(a.default,null,l||null)}}]),n}(i.Component);k.contextTypes={fullLayout:o.default.object,localize:o.default.func},k.propTypes={children:o.default.node};var T=k;t.default=T},de4c:function(e,t,n){"use strict";var r=n("69d1"),a=n("374e"),o=n("4500"),i=n("d8a3"),l=n("f8b54"),s=n("5940").extendFlat,u=r({editType:"calc",description:["Sets the global font.","Note that fonts used in traces and other","layout components inherit from the global font."].join(" ")});u.family.dflt='"Open Sans", verdana, arial, sans-serif',u.size.dflt=12,u.color.dflt=o.defaultLine,e.exports={font:u,title:{text:{valType:"string",role:"info",editType:"layoutstyle",description:["Sets the plot's title.","Note that before the existence of `title.text`, the title's","contents used to be defined as the `title` attribute itself.","This behavior has been deprecated."].join(" ")},font:r({editType:"layoutstyle",description:["Sets the title font.","Note that the title's font used to be customized","by the now deprecated `titlefont` attribute."].join(" ")}),xref:{valType:"enumerated",dflt:"container",values:["container","paper"],role:"info",editType:"layoutstyle",description:["Sets the container `x` refers to.","*container* spans the entire `width` of the plot.","*paper* refers to the width of the plotting area only."].join(" ")},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],role:"info",editType:"layoutstyle",description:["Sets the container `y` refers to.","*container* spans the entire `height` of the plot.","*paper* refers to the height of the plotting area only."].join(" ")},x:{valType:"number",min:0,max:1,dflt:.5,role:"style",editType:"layoutstyle",description:["Sets the x position with respect to `xref` in normalized","coordinates from *0* (left) to *1* (right)."].join(" ")},y:{valType:"number",min:0,max:1,dflt:"auto",role:"style",editType:"layoutstyle",description:["Sets the y position with respect to `yref` in normalized","coordinates from *0* (bottom) to *1* (top).","*auto* places the baseline of the title onto the","vertical center of the top margin."].join(" ")},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],role:"info",editType:"layoutstyle",description:["Sets the title's horizontal alignment with respect to its x position.","*left* means that the title starts at x,","*right* means that the title ends at x","and *center* means that the title's center is at x.","*auto* divides `xref` by three and calculates the `xanchor`","value automatically based on the value of `x`."].join(" ")},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],role:"info",editType:"layoutstyle",description:["Sets the title's vertical alignment with respect to its y position.","*top* means that the title's cap line is at y,","*bottom* means that the title's baseline is at y","and *middle* means that the title's midline is at y.","*auto* divides `yref` by three and calculates the `yanchor`","value automatically based on the value of `y`."].join(" ")},pad:s(l({editType:"layoutstyle"}),{description:["Sets the padding of the title.","Each padding value only applies when the corresponding","`xanchor`/`yanchor` value is set accordingly. E.g. for left","padding to take effect, `xanchor` must be set to *left*.","The same rule applies if `xanchor`/`yanchor` is determined automatically.","Padding is muted if the respective anchor value is *middle*/*center*."].join(" ")}),editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,role:"info",editType:"plot",description:["Determines how the font size for various text","elements are uniformed between each trace type.","If the computed text sizes were smaller than","the minimum size defined by `uniformtext.minsize`","using *hide* option hides the text; and","using *show* option shows the text without further downscaling.","Please note that if the size defined by `minsize` is greater than","the font size defined by trace, then the `minsize` is used."].join(" ")},minsize:{valType:"number",min:0,dflt:0,role:"info",editType:"plot",description:["Sets the minimum text size between traces of the same type."].join(" ")},editType:"plot"},autosize:{valType:"boolean",role:"info",dflt:!1,editType:"none",description:["Determines whether or not a layout width or height","that has been left undefined by the user","is initialized on each relayout.","Note that, regardless of this attribute,","an undefined layout width or height","is always initialized on the first call to plot."].join(" ")},width:{valType:"number",role:"info",min:10,dflt:700,editType:"plot",description:["Sets the plot's width (in px)."].join(" ")},height:{valType:"number",role:"info",min:10,dflt:450,editType:"plot",description:["Sets the plot's height (in px)."].join(" ")},margin:{l:{valType:"number",role:"info",min:0,dflt:80,editType:"plot",description:"Sets the left margin (in px)."},r:{valType:"number",role:"info",min:0,dflt:80,editType:"plot",description:"Sets the right margin (in px)."},t:{valType:"number",role:"info",min:0,dflt:100,editType:"plot",description:"Sets the top margin (in px)."},b:{valType:"number",role:"info",min:0,dflt:80,editType:"plot",description:"Sets the bottom margin (in px)."},pad:{valType:"number",role:"info",min:0,dflt:0,editType:"plot",description:["Sets the amount of padding (in px)","between the plotting area and the axis lines"].join(" ")},autoexpand:{valType:"boolean",role:"info",dflt:!0,editType:"plot",description:["Turns on/off margin expansion computations.","Legends, colorbars, updatemenus, sliders, axis rangeselector and rangeslider","are allowed to push the margins by defaults."].join(" ")},editType:"plot"},paper_bgcolor:{valType:"color",role:"style",dflt:o.background,editType:"plot",description:"Sets the background color of the paper where the graph is drawn."},plot_bgcolor:{valType:"color",role:"style",dflt:o.background,editType:"layoutstyle",description:["Sets the background color of the plotting area in-between x and y axes."].join(" ")},separators:{valType:"string",role:"style",editType:"plot",description:["Sets the decimal and thousand separators.","For example, *. * puts a '.' before decimals and a space","between thousands. In English locales, dflt is *.,* but","other locales may alter this default."].join(" ")},hidesources:{valType:"boolean",role:"info",dflt:!1,editType:"plot",description:["Determines whether or not a text link citing the data source is","placed at the bottom-right cored of the figure.","Has only an effect only on graphs that have been generated via","forked graphs from the Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise)."].join(" ")},showlegend:{valType:"boolean",role:"info",editType:"legend",description:["Determines whether or not a legend is drawn.","Default is `true` if there is a trace to show and any of these:","a) Two or more traces would by default be shown in the legend.","b) One pie trace is shown in the legend.","c) One trace is explicitly given with `showlegend: true`."].join(" ")},colorway:{valType:"colorlist",dflt:o.defaults,role:"style",editType:"calc",description:"Sets the default trace colors."},datarevision:{valType:"any",role:"info",editType:"calc",description:["If provided, a changed value tells `Plotly.react` that","one or more data arrays has changed. This way you can modify","arrays in-place rather than making a complete new copy for an","incremental change.","If NOT provided, `Plotly.react` assumes that data arrays are","being treated as immutable, thus any data array with a","different identity from its predecessor contains new data."].join(" ")},uirevision:{valType:"any",role:"info",editType:"none",description:["Used to allow user interactions with the plot to persist after","`Plotly.react` calls that are unaware of these interactions.","If `uirevision` is omitted, or if it is given and it changed from","the previous `Plotly.react` call, the exact new figure is used.","If `uirevision` is truthy and did NOT change, any attribute","that has been affected by user interactions and did not receive a","different value in the new figure will keep the interaction value.","`layout.uirevision` attribute serves as the default for","`uirevision` attributes in various sub-containers. For finer","control you can set these sub-attributes directly. For example,","if your app separately controls the data on the x and y axes you","might set `xaxis.uirevision=*time*` and `yaxis.uirevision=*cost*`.","Then if only the y data is changed, you can update","`yaxis.uirevision=*quantity*` and the y axis range will reset but","the x axis range will retain any user-driven zoom."].join(" ")},editrevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes in `editable: true`","configuration, other than trace names and axis titles.","Defaults to `layout.uirevision`."].join(" ")},selectionrevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes in selected points","from all traces."].join(" ")},template:{valType:"any",role:"info",editType:"calc",description:["Default attributes to be applied to the plot. Templates can be","created from existing plots using `Plotly.makeTemplate`, or","created manually. They should be objects with format:","`{layout: layoutTemplate, data: {[type]: [traceTemplate, ...]}, ...}`","`layoutTemplate` and `traceTemplate` are objects matching the","attribute structure of `layout` and a data trace. ","Trace templates are applied cyclically to traces of each type.","Container arrays (eg `annotations`) have special handling:","An object ending in `defaults` (eg `annotationdefaults`) is applied","to each array item. But if an item has a `templateitemname` key","we look in the template array for an item with matching `name` and","apply that instead. If no matching `name` is found we mark the item","invisible. Any named template item not referenced is appended to","the end of the array, so you can use this for a watermark annotation","or a logo image, for example. To omit one of these items on the plot,","make an item with matching `templateitemname` and `visible: false`."].join(" ")},modebar:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",role:"info",editType:"modebar",description:"Sets the orientation of the modebar."},bgcolor:{valType:"color",role:"style",editType:"modebar",description:"Sets the background color of the modebar."},color:{valType:"color",role:"style",editType:"modebar",description:"Sets the color of the icons in the modebar."},activecolor:{valType:"color",role:"style",editType:"modebar",description:"Sets the color of the active or hovered on icons in the modebar."},uirevision:{valType:"any",role:"info",editType:"none",description:["Controls persistence of user-driven changes related to the modebar,","including `hovermode`, `dragmode`, and `showspikes` at both the","root level and inside subplots. Defaults to `layout.uirevision`."].join(" ")},editType:"modebar"},newshape:i.newshape,activeshape:i.activeshape,meta:{valType:"any",arrayOk:!0,role:"info",editType:"plot",description:["Assigns extra meta information that can be used in various `text` attributes.","Attributes such as the graph, axis and colorbar `title.text`, annotation `text`","`trace.name` in legend items, `rangeselector`, `updatemenus` and `sliders` `label` text","all support `meta`. One can access `meta` fields using template strings:","`%{meta[i]}` where `i` is the index of the `meta`","item in question.","`meta` can also be an object for example `{key: value}` which can be accessed","%{meta[key]}."].join(" ")},transition:s({},a.transition,{description:["Sets transition options used during Plotly.react updates."].join(" "),editType:"none"}),_deprecated:{title:{valType:"string",role:"info",editType:"layoutstyle",description:["Value of `title` is no longer a simple *string* but a set of sub-attributes.","To set the contents of the title, please use `title.text` now."].join(" ")},titlefont:r({editType:"layoutstyle",description:["Former `titlefont` is now the sub-attribute `font` of `title`.","To customize title font properties, please use `title.font` now."].join(" ")})}}},dec3:function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n("2f4a"),i=n("2e94"),l=n("5529"),s=n("84ca"),u=n("24f7"),c=u.OrderedSet,f=u.Record,p=u.Stack,d=u.OrderedMap,h=u.List,v={allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:p(),selection:null,treeMap:null,undoStack:p()},m=f(v),y=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(i.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:p(),redoStack:p(),decorator:n||null,selection:s.createEmpty(r)})},t.create=function(e){var n=e.currentContent,a=e.decorator,o=r({},e,{treeMap:b(n,a),directionMap:l.getDirectionMap(n)});return new t(new m(o))},t.fromJS=function(e){return new t(new m(r({},e,{directionMap:null!=e.directionMap?d(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?c(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?i.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?p(e.redoStack.map((function(e){return i.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new s(e.selection):e.selection,treeMap:null!=e.treeMap?d(e.treeMap).map((function(e){return h(e).map((function(e){return o.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?p(e.undoStack.map((function(e){return i.fromJS(e)}))):e.undoStack,currentContent:i.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),a=r;null===n.decorator?a=null:n.decorator&&(a=n.decorator);var o=n.currentContent||e.getCurrentContent();if(a!==r){var i,l=t.get("treeMap");return i=a&&r?_(o,o.getBlockMap(),l,a,r):b(o,a),void t.merge({decorator:a,treeMap:i,nativelyRenderedContent:null})}var s=e.getCurrentContent();o!==s&&t.set("treeMap",x(e,o.getBlockMap(),o.getEntityMap(),a)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){a(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?k(t,n):T(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent(),t=e.getBlockMap(),n=t.last(),r=n.getLength();return this.getSelection().hasEdgeWithin(n.getKey(),r,r)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return g(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),g(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent(),r=n.getLastBlock(),a=r.getKey(),o=r.getLength();return t.acceptSelection(e,new s({anchorKey:a,anchorOffset:o,focusKey:a,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var o=l.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:o,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:a,inlineStyleOverride:null});var i=e.getSelection(),s=e.getCurrentContent(),u=e.getUndoStack(),c=n;i!==s.getSelectionAfter()||w(e,r)?(u=u.push(s),c=c.set("selectionBefore",i)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",s.getSelectionBefore()));var f=e.getInlineStyleOverride(),d=["adjust-depth","change-block-type","split-block"];-1===d.indexOf(r)&&(f=null);var h={currentContent:c,directionMap:o,undoStack:u,redoStack:p(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:a,inlineStyleOverride:f};return t.set(e,h)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var a=e.getCurrentContent(),o=l.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:n.shift(),redoStack:e.getRedoStack().push(a),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:a.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var a=e.getCurrentContent(),o=l.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:o,undoStack:e.getUndoStack().push(a),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function g(e,t,n){return y.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function b(e,t){return e.getBlockMap().map((function(n){return o.generate(e,n,t)})).toOrderedMap()}function x(e,t,n,r){var a=e.getCurrentContent().set("entityMap",n),i=a.getBlockMap(),l=e.getImmutable().get("treeMap");return l.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return o.generate(a,e,r)})))}function _(e,t,n,r,a){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==a.getDecorations(t,e)})).map((function(t){return o.generate(e,t,r)})))}function w(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function k(e,t){var n=t.getStartKey(),r=t.getStartOffset(),a=e.getBlockForKey(n);return r>0?a.getInlineStyleAt(r-1):a.getLength()?a.getInlineStyleAt(0):E(e,n)}function T(e,t){var n=t.getStartKey(),r=t.getStartOffset(),a=e.getBlockForKey(n);return r<a.getLength()?a.getInlineStyleAt(r):r>0?a.getInlineStyleAt(r-1):E(e,n)}function E(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):c()}e.exports=y},df26:function(e,t,n){"use strict";function r(e,t,n){var r=e.text,o=e.characterMeta,i=t.length,l=n.length,s=[],u=o.slice(0,0),c=0,f=r.indexOf(t);while(-1!==f)s.push(r.slice(c,f)+n),u=u.concat(o.slice(c,f),a(o.slice(f,f+1),l)),c=f+i,f=r.indexOf(t,c);return s.push(r.slice(c)),u=u.concat(o.slice(c)),{text:s.join(""),characterMeta:u}}function a(e,t){var n=e.slice(0,0);while(t-- >0)n=n.concat(e);return n}n.r(t),n.d(t,"stateFromHTML",(function(){return G}));var o=n("bfcd"),i=n("24f7"),l=n("f825");var s=1,u=3;var c={a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,var:1,video:1,wbr:1,acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1},f={area:1,base:1,br:1,col:1,colgroup:1,command:1,dl:1,embed:1,head:1,hgroup:1,hr:1,iframe:1,img:1,input:1,keygen:1,link:1,meta:1,ol:1,optgroup:1,option:1,param:1,script:1,select:1,source:1,style:1,table:1,tbody:1,textarea:1,tfoot:1,thead:1,title:1,tr:1,track:1,ul:1,wbr:1,basefont:1,dialog:1,dir:1,isindex:1},p={img:1};function d(e){return d="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},d(e)}function h(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 g(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=/^data:/i,_=Object(i["OrderedSet"])(),w=null,k=new o["ContentBlock"]({key:Object(o["genKey"])(),text:"",type:l["BLOCK_TYPE"].UNSTYLED,characterList:Object(i["List"])(),depth:0}),T=/(\r\n|\r|\n)/g,E="\r",O="",M=/^data-([a-z0-9-]+)$/,S={a:{href:"url",rel:"rel",target:"target",title:"title"},img:{src:"src",alt:"alt",width:"width",height:"height"}},C=function(e,t){var n={};if(S.hasOwnProperty(e))for(var r=S[e],a=0;a<t.attributes.length;a++){var o=t.attributes[a],i=o.name,l=o.value;if("string"===typeof l){var s=l;if(r.hasOwnProperty(i)){var u=r[i];n[u]=s}else M.test(i)&&(n[i]=s)}}return n},A={a:function(e,t,n){var r=C(t,n);if(V(r.url))return e.createEntity(l["ENTITY_TYPE"].LINK,r)},img:function(e,t,n){var r=C(t,n);if(null!=r.src)return e.createEntity(l["ENTITY_TYPE"].IMAGE,r)}},P=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this,e),b(this,"contentStateForEntities",void 0),b(this,"blockStack",void 0),b(this,"blockList",void 0),b(this,"depth",void 0),b(this,"options",void 0),b(this,"inlineCreators",{Style:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e){return{type:"STYLE",style:e}})),Entity:function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MUTABLE";return{type:"ENTITY",entityKey:t.createEntity(e,B(n),r)}}}),this.options=n,this.contentStateForEntities=o["ContentState"].createFromBlockArray([]),this.blockStack=[],this.blockList=[],this.depth=0}return g(e,[{key:"process",value:function(e){this.processBlockElement(e);var t=[];return this.blockList.forEach((function(e){var n=z(e.textFragments),r=n.text,a=n.characterMeta,l=!1;if(r===E&&(l=!0,r=""),"pre"===e.tagName){var s=L(r,a);r=s.text,a=s.characterMeta}else{var u=I(r,a);r=u.text,a=u.characterMeta}r=r.split(E).join("\n"),(r.length||l)&&t.push(new o["ContentBlock"]({key:Object(o["genKey"])(),text:r,type:e.type,characterList:a.toList(),depth:e.depth,data:e.data?Object(i["Map"])(e.data):Object(i["Map"])()}))})),t.length||(t=[k]),o["ContentState"].createFromBlockArray(t,this.contentStateForEntities.getEntityMap())}},{key:"getBlockTypeFromTagName",value:function(e){var t=this.options.blockTypes;if(t&&t[e])return t[e];switch(e){case"li":var n=this.blockStack.slice(-1)[0];return"ol"===n.tagName?l["BLOCK_TYPE"].ORDERED_LIST_ITEM:l["BLOCK_TYPE"].UNORDERED_LIST_ITEM;case"blockquote":return l["BLOCK_TYPE"].BLOCKQUOTE;case"h1":return l["BLOCK_TYPE"].HEADER_ONE;case"h2":return l["BLOCK_TYPE"].HEADER_TWO;case"h3":return l["BLOCK_TYPE"].HEADER_THREE;case"h4":return l["BLOCK_TYPE"].HEADER_FOUR;case"h5":return l["BLOCK_TYPE"].HEADER_FIVE;case"h6":return l["BLOCK_TYPE"].HEADER_SIX;case"pre":return l["BLOCK_TYPE"].CODE;case"figure":return l["BLOCK_TYPE"].ATOMIC;default:return l["BLOCK_TYPE"].UNSTYLED}}},{key:"processBlockElement",value:function(e){if(e){var t,n,r=this.options.customBlockFn,a=e.nodeName.toLowerCase();if(r){var o=r(e);null!=o&&(t=o.type,n=o.data)}var i=!0;if(null==t&&(i=!1,t=this.getBlockTypeFromTagName(a)),t===l["BLOCK_TYPE"].CODE){var s=e.getAttribute("data-language");s&&(n=v({},n,{language:s}))}var u=R(t),c=!f.hasOwnProperty(a);if(!i&&!F(t)){var p=this.blockStack.slice(-1)[0];p&&(t=p.type)}var d={tagName:a,textFragments:[],type:t,styleStack:[_],entityStack:[w],depth:u?this.depth:0,data:n};c&&(this.blockList.push(d),u&&(this.depth+=1)),this.blockStack.push(d),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),this.blockStack.pop(),c&&u&&(this.depth-=1)}}},{key:"processInlineElement",value:function(e){var t=e.nodeName.toLowerCase();if("br"!==t){var n=this.blockStack.slice(-1)[0],r=n.styleStack.slice(-1)[0],a=n.entityStack.slice(-1)[0],o=this.options.customInlineFn,i=o?o(e,this.inlineCreators):null;if(null!=i)switch(i.type){case"STYLE":r=r.add(i.style);break;case"ENTITY":a=i.entityKey;break}else r=N(r,t,this.options.elementStyles),A.hasOwnProperty(t)&&(a=A[t](this,t,e)||a);n.styleStack.push(r),n.entityStack.push(a),null!=e.childNodes&&Array.from(e.childNodes).forEach(this.processNode,this),p.hasOwnProperty(t)&&this.processText(" "),n.entityStack.pop(),n.styleStack.pop()}else this.processText(E)}},{key:"processTextNode",value:function(e){var t=e.nodeValue;t=t.replace(T,"\n"),t=t.split(O).join(E),this.processText(t)}},{key:"processText",value:function(e){var t=this.blockStack.slice(-1)[0],n=t.styleStack.slice(-1)[0],r=t.entityStack.slice(-1)[0],a=o["CharacterMetadata"].create({style:n,entity:r}),l=Object(i["Repeat"])(a,e.length);t.textFragments.push({text:e,characterMeta:l})}},{key:"processNode",value:function(e){if(e.nodeType===s){var t=e,n=t.nodeName.toLowerCase();c.hasOwnProperty(n)?this.processInlineElement(t):this.processBlockElement(t)}else e.nodeType===u&&this.processTextNode(e)}},{key:"createEntity",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"MUTABLE";return this.contentStateForEntities=this.contentStateForEntities.createEntity(e,n,t),this.contentStateForEntities.getLastCreatedEntityKey()}}]),e}();function L(e,t){return"\n"===e.charAt(0)&&(e=e.slice(1),t=t.slice(1)),{text:e,characterMeta:t}}function D(e,t){while(" "===e.charAt(0))e=e.slice(1),t=t.slice(1);return{text:e,characterMeta:t}}function j(e,t){while(" "===e.slice(-1))e=e.slice(0,-1),t=t.slice(0,-1);return{text:e,characterMeta:t}}function I(e,t){e=e.replace(/[ \t\n]/g," ");var n=D(e,t);e=n.text,t=n.characterMeta;var a=j(e,t);e=a.text,t=a.characterMeta;var o=e.length;while(o--)" "===e.charAt(o)&&" "===e.charAt(o-1)&&(e=e.slice(0,o)+e.slice(o+1),t=t.slice(0,o).concat(t.slice(o+1)));var i=r({text:e,characterMeta:t},E+" ",E);e=i.text,t=i.characterMeta;var l=r({text:e,characterMeta:t}," "+E,E);return e=l.text,t=l.characterMeta,{text:e,characterMeta:t}}function R(e){switch(e){case l["BLOCK_TYPE"].UNORDERED_LIST_ITEM:case l["BLOCK_TYPE"].ORDERED_LIST_ITEM:return!0;default:return!1}}function z(e){var t="",n=Object(i["Seq"])();return e.forEach((function(e){t+=e.text,n=n.concat(e.characterMeta)})),{text:t,characterMeta:n}}function N(e,t,n){switch(t){case"b":case"strong":return e.add(l["INLINE_STYLE"].BOLD);case"i":case"em":return e.add(l["INLINE_STYLE"].ITALIC);case"u":case"ins":return e.add(l["INLINE_STYLE"].UNDERLINE);case"code":return e.add(l["INLINE_STYLE"].CODE);case"s":case"del":return e.add(l["INLINE_STYLE"].STRIKETHROUGH);default:return n&&n[t]?e.add(n[t]):e}}function F(e){return e!==l["BLOCK_TYPE"].UNSTYLED}function B(e){var t={};if(null!==e&&"object"===d(e)&&!Array.isArray(e))for(var n=e,r=0,a=Object.keys(n);r<a.length;r++){var o=a[r],i=n[o];"string"===typeof i&&(t[o]=i)}return t}function V(e){return null!=e&&!e.match(x)}function H(e,t){return new P(t).process(e)}function U(e){var t;if("undefined"!==typeof DOMParser){var n=new DOMParser;t=n.parseFromString(e,"text/html")}else t=document.implementation.createHTMLDocument(""),t.documentElement&&(t.documentElement.innerHTML=e);return t.body||t.createElement("body")}function W(e,t){if(null==e)return{};var n,r,a=q(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)&&(a[n]=e[n])}return a}function q(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var $={};function G(e,t){var n=t||$,r=n.parser,a=W(n,["parser"]);null==r&&(r=U);var o=r(e);return H(o,a)}},df75:function(e,t,n){var r=n("ca84"),a=n("7839");e.exports=Object.keys||function(e){return r(e,a)}},df77:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M12.6,2.86C15.27,4.1 18,5.39 20.66,6.63C20.81,6.7 21,6.75 21,6.95C21,7.15 20.81,7.19 20.66,7.26C18,8.5 15.3,9.77 12.62,11C12.21,11.21 11.79,11.21 11.38,11C8.69,9.76 6,8.5 3.32,7.25C3.18,7.19 3,7.14 3,6.94C3,6.76 3.18,6.71 3.31,6.65C6,5.39 8.74,4.1 11.44,2.85C11.73,2.72 12.3,2.73 12.6,2.86M12,21.15C11.8,21.15 11.66,21.07 11.38,20.97C8.69,19.73 6,18.47 3.33,17.22C3.19,17.15 3,17.11 3,16.9C3,16.7 3.19,16.66 3.34,16.59C3.78,16.38 4.23,16.17 4.67,15.96C5.12,15.76 5.56,15.76 6,15.97C7.79,16.8 9.57,17.63 11.35,18.46C11.79,18.67 12.23,18.66 12.67,18.46C14.45,17.62 16.23,16.79 18,15.96C18.44,15.76 18.87,15.75 19.29,15.95C19.77,16.16 20.24,16.39 20.71,16.61C20.78,16.64 20.85,16.68 20.91,16.73C21.04,16.83 21.04,17 20.91,17.08C20.83,17.14 20.74,17.19 20.65,17.23C18,18.5 15.33,19.72 12.66,20.95C12.46,21.05 12.19,21.15 12,21.15M12,16.17C11.9,16.17 11.55,16.07 11.36,16C8.68,14.74 6,13.5 3.34,12.24C3.2,12.18 3,12.13 3,11.93C3,11.72 3.2,11.68 3.35,11.61C3.8,11.39 4.25,11.18 4.7,10.97C5.13,10.78 5.56,10.78 6,11C7.78,11.82 9.58,12.66 11.38,13.5C11.79,13.69 12.21,13.69 12.63,13.5C14.43,12.65 16.23,11.81 18.04,10.97C18.45,10.78 18.87,10.78 19.29,10.97C19.76,11.19 20.24,11.41 20.71,11.63C20.77,11.66 20.84,11.69 20.9,11.74C21.04,11.85 21.04,12 20.89,12.12C20.84,12.16 20.77,12.19 20.71,12.22C18,13.5 15.31,14.75 12.61,16C12.42,16.09 12.08,16.17 12,16.17Z"}))};e.exports=l},df7c:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var a=e[r];"."===a?e.splice(r,1):".."===a?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,a=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!a){n=t+1;break}}else-1===r&&(a=!1,r=t+1);return-1===r?"":e.slice(n,r)}function a(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var i=o>=0?arguments[o]:e.cwd();if("string"!==typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,r="/"===i.charAt(0))}return t=n(a(t.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===o(e,-1);return e=n(a(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(a(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var a=r(e.split("/")),o=r(n.split("/")),i=Math.min(a.length,o.length),l=i,s=0;s<i;s++)if(a[s]!==o[s]){l=s;break}var u=[];for(s=l;s<a.length;s++)u.push("..");return u=u.concat(o.slice(l)),u.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,a=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!a){r=o;break}}else a=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,a=!0,o=0,i=e.length-1;i>=0;--i){var l=e.charCodeAt(i);if(47!==l)-1===r&&(a=!1,r=i+1),46===l?-1===t?t=i:1!==o&&(o=1):-1!==t&&(o=-1);else if(!a){n=i+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("4362"))},df88:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=d(n("5174")),a=d(n("d7bc")),o=p(n("ab5b")),i=n("4578"),l=d(n("37cc")),s=d(n("76fe")),u=d(n("fe58")),c=n("e419");function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==m(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(e){return e&&e.__esModule?e:{default:e}}function h(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 v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e){return m="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},m(e)}function y(){return y=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},y.apply(this,arguments)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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 _(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),e}function w(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&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function T(e){var t=M();return function(){var n,r=S(e);if(t){var a=S(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==m(t)&&"function"!==typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(){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}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var C=function(e){w(n,e);var t=T(n);function n(e,r){var a;b(this,n),a=t.call(this,e,r);var o=e.fullContainer;a.rootAttr=e.attr.split(".")[0];var i=null;return!o[a.rootAttr]||o[a.rootAttr]&&!Array.isArray(o[a.rootAttr].color)?i="constant":o[a.rootAttr]&&Array.isArray(o[a.rootAttr].color)&&(i="variable"),a.state={type:i,value:{constant:"constant"===i?e.fullValue:c.COLORS.mutedBlue,variable:"variable"===i?e.fullValue:null},selectedConstantColorOption:"constant"===i&&e.multiValued?"multiple":"single"},a.setType=a.setType.bind(O(a)),a.setValue=a.setValue.bind(O(a)),a.setColor=a.setColor.bind(O(a)),a.setColorScale=a.setColorScale.bind(O(a)),a.onConstantColorOptionChange=a.onConstantColorOptionChange.bind(O(a)),a}return _(n,[{key:"setType",value:function(e){var t,n;this.setState({type:e}),this.context.updateContainer("constant"===e?(t={},g(t,this.rootAttr+".color",this.state.value[e]),g(t,this.rootAttr+".colorsrc",null),t):(n={},g(n,this.rootAttr+".color",this.state.value[e]),g(n,this.rootAttr+".colorsrc",null),n))}},{key:"setValue",value:function(e){var t=this.state.type;this.setState("constant"===t?{value:{constant:e,variable:this.state.value[t]}}:{value:{variable:e,constant:this.state.value[t]}}),this.props.updatePlot(e)}},{key:"setColor",value:function(e){var t=this.state.type;this.setState("constant"===t?{value:{constant:e,variable:this.state.value.variable}}:{value:{variable:e,constant:this.state.value.constant}}),this.props.updatePlot(e)}},{key:"setColorScale",value:function(e){this.setState({colorscale:e}),this.context.updateContainer(g({},this.rootAttr+".colorscale",e))}},{key:"onConstantColorOptionChange",value:function(e){this.setState({selectedConstantColorOption:e})}},{key:"render",value:function(){var e=this.props,t=e.attr,n=e.fullValue,a=this.context.localize,i=this.state.type,f=[{label:a("Constant"),value:"constant"},{label:a("Variable"),value:"variable"}],p=this.props.multiValued||Array.isArray(n)&&n.includes(c.MULTI_VALUED);return o.default.createElement(r.default,y({},this.props,{multiValued:p,attr:t}),o.default.createElement(l.default,{options:f,activeOption:i,onOptionChange:this.setType}),"constant"===i?o.default.createElement(u.default,{attr:this.rootAttr+".color",multiColorMessage:a("Each trace will be colored according to the selected colorscale."),singleColorMessage:a("All traces will be colored in the the same color."),setColor:this.setColor,setColorScale:this.setColorScale,onConstantColorOptionChange:this.onConstantColorOptionChange,parentSelectedConstantColorOption:this.state.selectedConstantColorOption}):p?null:o.default.createElement(s.default,{suppressMultiValuedMessage:!0,attr:this.rootAttr+".color",updatePlot:this.setValue}))}}]),n}(o.Component);C.propTypes=v({fullValue:a.default.any,updatePlot:a.default.func},r.default.propTypes),C.contextTypes={localize:a.default.func,updateContainer:a.default.func},C.displayName="UnconnectedColorArrayPicker";var A=(0,i.connectToContainer)(C);t.default=A},e01a:function(e,t,n){"use strict";var r=n("23e7"),a=n("83ab"),o=n("da84"),i=n("5135"),l=n("861d"),s=n("9bf2").f,u=n("e893"),c=o.Symbol;if(a&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var f={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof p?new c(e):void 0===e?c():c(e);return""===e&&(f[t]=!0),t};u(p,c);var d=p.prototype=c.prototype;d.constructor=p;var h=d.toString,v="Symbol(test)"==String(c("test")),m=/^Symbol\((.*)\)[^)]+$/;s(d,"description",{configurable:!0,get:function(){var e=l(this)?this.valueOf():this,t=h.call(e);if(i(f,e))return"";var n=v?t.slice(7,-1):t.replace(m,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:p})}},e163:function(e,t,n){var r=n("5135"),a=n("7b0b"),o=n("f772"),i=n("e177"),l=o("IE_PROTO"),s=Object.prototype;e.exports=i?Object.getPrototypeOf:function(e){return e=a(e),r(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},e177:function(e,t,n){var r=n("d039");e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},e17a:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n("0984"),o=n("91cf"),i=n("59a1"),l=n("24f7"),s=n("d8db"),u=n("8164"),c=l.Map,f={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},p=a.isBrowser("IE <= 11"),d=function(){function e(e){var t=this;r(this,"observer",void 0),r(this,"container",void 0),r(this,"mutations",void 0),r(this,"onCharData",void 0),this.container=e,this.mutations=c();var n=i(e);n.MutationObserver&&!p?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||s(!1),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,f):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=c(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return p?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=u(o(e.target));this.mutations=this.mutations.set(n,t)}},e}();e.exports=d},e180:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("g",{fill:"none"},o.default.createElement("path",{d:"M0 0h46v46H0z"}),o.default.createElement("path",{stroke:"#25fdfc",d:"M9 8v30m9-30v30M28 8v30m9-30v30",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{stroke:"#1d9bfb",d:"M9 28.429L18 29l10-4.714L37 31M9 23.074L18 23l10-11.92L37 20",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{stroke:"#1d9bfb",d:"M9 17l9 6 10 1 9-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})))};t.default=u},e1bd:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));let r=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));while(e--){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t}},e1c7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedTextPosition=void 0;var r=d(n("7515")),a=d(n("37cc")),o=d(n("5174")),i=d(n("d7bc")),l=p(n("ab5b")),s=n("4578"),u=d(n("88e7")),c=d(n("76fe"));function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="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},h(e)}function v(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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 x(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}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&&w(e,t)}function w(e,t){return w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},w(e,t)}function k(e){var t=O();return function(){var n,r=M(e);if(t){var a=M(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(){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}}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var S=function(e){_(n,e);var t=k(n);function n(e){var r;return g(this,n),r=t.call(this,e),r.state={posType:"string"===typeof e.fullValue?"simple":"custom"},r}return x(n,[{key:"render",value:function(){var e=this,t=this.context.localize,n=[{label:t("All"),value:"simple"},{label:t("Custom"),value:"custom"}],i="simple"===this.state.posType?l.default.createElement(l.default.Fragment,null,l.default.createElement(u.default,null,t("This will position all text values on the plot according to the selected position.")),l.default.createElement(r.default,{options:this.props.options,attr:"textposition",clearable:!1})):l.default.createElement(l.default.Fragment,null,l.default.createElement(u.default,null,l.default.createElement("div",null,t("This will position text values individually, according to the provided data positions array. "))),l.default.createElement(c.default,{attr:"textposition"}),l.default.createElement(u.default,null,l.default.createElement("div",null,t('("Top", "Middle", "Bottom") + ("Left", "Center", "Right")'))));return l.default.createElement(o.default,this.props,l.default.createElement(a.default,{options:n,activeOption:this.state.posType,onOptionChange:function(t){e.setState({posType:t}),"simple"===t?e.props.updatePlot("middle center"):e.props.updateContainer({textpositionsrc:null})}}),i)}}]),n}(l.Component);t.UnconnectedTextPosition=S,S.propTypes=m(m({},o.default.propTypes),{},{options:i.default.array,fullValue:i.default.oneOfType([i.default.array,i.default.string])}),S.contextTypes={localize:i.default.func},S.displayName="UnconnectedTextPosition";var C=(0,s.connectToContainer)(S,{modifyPlotProps:function(e,t,n){var r=t.localize,a=[{label:r("Top Left"),value:"top left"},{label:r("Top Center"),value:"top center"},{label:r("Top Right"),value:"top right"},{label:r("Middle Left"),value:"middle left"},{label:r("Middle Center"),value:"middle center"},{label:r("Middle Right"),value:"middle right"},{label:r("Bottom Left"),value:"bottom left"},{label:r("Bottom Center"),value:"bottom center"},{label:r("Bottom Right"),value:"bottom right"}];["pie","bar","funnel","waterfall"].includes(t.container.type)&&(a=[{label:r("Inside"),value:"inside"},{label:r("Outside"),value:"outside"},{label:r("Auto"),value:"auto"},{label:r("None"),value:"none"}]),["funnelarea"].includes(t.container.type)&&(a=[{label:r("Inside"),value:"inside"},{label:r("None"),value:"none"}]),n.options=a,n.clearable=!1}});t.default=C},e209:function(e,t,n){"use strict";function r(e,t,n){return n.indexOf(e)===t}function a(e,t){var n=e.props.group===t.props.group?0:e.props.group<t.props.group?-1:1,r=e.props.name===t.props.name?0:e.props.name<t.props.name?-1:1;return n||r}function o(e,t){if(!t)return e;for(var n=null,o=null,i=0;i<e.length;i++)if(e[i].props.group&&e[i].props.name&&!n){n=i;break}for(var l=n;l<e.length;l++){if(!(e[l].props.group||e[l].props.name||o)){o=l-1;break}l===e.length-1&&(o=l)}var s=0===n?[]:e.slice(0,n),u=n!==o?e.slice(n,o+1):[],c=o===e.length?[]:e.slice(o+1);t=t.filter((function(e){return u.some((function(t){return t.props.name===e.name&&t.props.group===e.group}))}));var f=t.map((function(e){return e.group})).filter(r);return u.sort((function(e,n){var o=f.includes(e.props.group),i=f.includes(n.props.group);if(o&&!i)return-1;if(!o&&i)return 1;if(!o&&!i)return a(e,n);if(o&&i){var l=f.indexOf(e.props.group),s=f.indexOf(n.props.group);if(l<s)return-1;if(l>s)return 1;if(l===s){var u=t.filter((function(t){return t.group===e.props.group})).map((function(e){return e.name})).filter(r),c=u.includes(e.props.name),p=u.includes(n.props.name);if(!c||!p){if(c&&!p)return-1;if(!c&&p)return 1;if(!c&&!p)return a(e,n)}if(c&&p)return u.indexOf(e.props.name)-u.indexOf(n.props.name)}}return 0})),s.concat(u).concat(c)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=o},e23d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M1.438 24v-8.563h1.438l.313-.75h.688l.313.75h2.75v-.563l.25.563h1.438l.25-.563v.563h6.813v-1.25h.125c.125 0 .125.063.125.188v1.063h3.5v-.313c.813.438 1.938.313 2.813.313l.313-.75h.75l.313.75h2.813v-.75l.438.75h2.313v-4.75h-2.25v.563l-.313-.563h-2.375v.563l-.25-.563h-3.188c-.438 0-.938.063-1.375.25v-.25h-2.125v.25c-.25-.188-.625-.25-.938-.25H8.442l-.563 1.188-.5-1.188h-2.5v.563l-.313-.563H2.441l-1 2.25V8h29.125v8.563h-1.563c-.313 0-.688.063-1 .25v-.25h-2.25c-.313 0-.75.063-.938.25v-.25h-4v.25c-.313-.188-.75-.25-1.125-.25h-2.625v.25c-.25-.25-.813-.25-1.125-.25h-3l-.688.75-.625-.75H7.252v4.75h4.313l.688-.75.688.75h2.625v-1.125h.313c.375 0 .75 0 1.125-.125v1.25h2.188v-1.25h.125c.125 0 .125 0 .125.188v1.063h6.688c.375 0 .813-.063 1.125-.313v.313h2.125c.375 0 .813 0 1.188-.188v2.875zm8.812-9.25h-.813v-2.688L8.249 14.75h-.688l-1.188-2.688v2.688H4.685L4.372 14H2.684l-.313.75h-.938l1.5-3.438h1.188l1.438 3.25v-3.25h1.313l1.063 2.375 1-2.375h1.313zm-6.187-1.437L3.5 11.938l-.563 1.375zM14.875 19.5v1.188H13.25l-1-1.188-1.063 1.188H7.999V17.25h3.25l1 1.125 1.063-1.125h2.625c.75 0 1.375.25 1.375 1.125 0 1.375-1.5 1.125-2.438 1.125zm-3.125-.562l-.875-1H8.812v.625h1.75v.688h-1.75v.688h2l.938-1zm1.875-4.188h-2.75v-3.438h2.75v.75h-1.938v.625h1.875v.688h-1.875v.688h1.938zm.438 5.563v-2.688l-1.25 1.313zm2.812-7.125c.5.188.563.438.563.875v.688h-.813c0-.75.188-1.25-.75-1.25H15v1.25h-.813v-3.438l1.938.063c.688 0 1.375.063 1.375.875 0 .375-.25.813-.625.938zm-.937 4.75h-1.063v.875h1.063c.25 0 .5-.125.5-.438s-.25-.438-.5-.438zm.125-5.875H15v.75h1c.313 0 .563-.063.563-.375s-.25-.375-.5-.375zm4.312 7c.5.188.563.5.563.938v.688h-.813v-.625c0-.563-.188-.625-.75-.625H18.5v1.25h-.813v-3.438h1.938c.625 0 1.375.125 1.375.938a.94.94 0 0 1-.625.875zM18.75 14.75h-.813v-3.438h.813zm.813 3.188H18.5v.75h1.063c.25 0 .5-.063.5-.375s-.25-.375-.5-.375zm8.875-3.188h-1.125l-1.563-2.563v2.563h-1.688l-.313-.75h-1.688l-.313.75h-.938c-1.125 0-1.625-.563-1.625-1.688s.5-1.75 1.688-1.75h.813v.75c-.875 0-1.688-.188-1.688 1 0 .563.125 1 .813 1h.375l1.125-2.688h1.25l1.375 3.188v-3.188h1.25l1.438 2.375v-2.375h.813v3.375zm-4.25 5.938h-2.75V17.25h2.75v.688H22.25v.625h1.875v.688H22.25v.688h1.938zm-.688-7.375l-.563-1.375-.563 1.375zm2.75 7.375h-1.625v-.75h1.625c.188 0 .438-.063.438-.313 0-.75-2.125.25-2.125-1.375 0-.688.5-1 1.188-1h1.625v.688h-1.5c-.25 0-.438.063-.438.313 0 .75 2.063-.313 2.063 1.313 0 .813-.5 1.125-1.25 1.125zm4.313-.5c-.25.375-.75.5-1.125.5h-1.563v-.75h1.563c.188 0 .438-.063.438-.313 0-.75-2.125.25-2.125-1.375 0-.688.563-1 1.188-1h1.625v.688h-1.5c-.25 0-.438.063-.438.313 0 .625 1.375 0 1.938.688v1.25z"}))};t.default=u},e24b:function(e,t,n){var r=n("49f4"),a=n("1efc"),o=n("bbc0"),i=n("7a48"),l=n("2524");function s(e){var t=-1,n=null==e?0:e.length;this.clear();while(++t<n){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype["delete"]=a,s.prototype.get=o,s.prototype.has=i,s.prototype.set=l,e.exports=s},e260:function(e,t,n){"use strict";var r=n("fc6a"),a=n("44d2"),o=n("3f8c"),i=n("69f3"),l=n("7dd0"),s="Array Iterator",u=i.set,c=i.getterFor(s);e.exports=l(Array,"Array",(function(e,t){u(this,{type:s,target:r(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,a("keys"),a("values"),a("entries")},e299:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M0 8c0 1.5 1.188 2.688 2.688 2.688C4.126 10.688 5.313 9.5 5.313 8S4.125 5.312 2.688 5.312A2.668 2.668 0 0 0 0 8zm10.688 8c0 1.5 1.188 2.688 2.625 2.688 1.5 0 2.688-1.188 2.688-2.688s-1.188-2.688-2.688-2.688c-1.438 0-2.625 1.188-2.625 2.688zM16 9.313c0 1.5 1.188 2.688 2.688 2.688 1.438 0 2.625-1.188 2.625-2.688a2.64 2.64 0 0 0-2.625-2.625c-1.5 0-2.688 1.188-2.688 2.625zM5.313 24c0 1.5 1.188 2.688 2.688 2.688S10.689 25.5 10.689 24c0-1.5-1.188-2.688-2.688-2.688S5.313 22.5 5.313 24zm16-4c0 1.5 1.188 2.688 2.688 2.688S26.689 21.5 26.689 20c0-1.5-1.188-2.688-2.688-2.688S21.313 18.5 21.313 20zm5.375-8c0 1.5 1.188 2.688 2.625 2.688 1.5 0 2.688-1.188 2.688-2.688s-1.188-2.688-2.688-2.688c-1.438 0-2.625 1.188-2.625 2.688z"}))};t.default=u},e2a0:function(e,t,n){var r=n("3729"),a=n("6747"),o=n("1310"),i="[object String]";function l(e){return"string"==typeof e||!a(e)&&o(e)&&r(e)==i}e.exports=l},e2c0:function(e,t,n){var r=n("e2e4"),a=n("d370"),o=n("6747"),i=n("c098"),l=n("b218"),s=n("f4d6");function u(e,t,n){t=r(t,e);var u=-1,c=t.length,f=!1;while(++u<c){var p=s(t[u]);if(!(f=null!=e&&n(e,p)))break;e=e[p]}return f||++u!=c?f:(c=null==e?0:e.length,!!c&&l(c)&&i(p,c)&&(o(e)||a(e)))}e.exports=u},e2cc:function(e,t,n){var r=n("6eeb");e.exports=function(e,t,n){for(var a in t)r(e,a,t[a],n);return e}},e2e4:function(e,t,n){var r=n("6747"),a=n("f608"),o=n("18d8"),i=n("76dd");function l(e,t){return r(e)?e:a(e,t)?[e]:o(i(e))}e.exports=l},e319:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M11.563 4.688h-2.25v-4c.063-.188 0-.313-.125-.438C9.125.125 8.938 0 8.813 0H7.438a.71.71 0 0 0-.5.188.568.568 0 0 0-.25.5v4h-2c-.938 0-2-.438-2 1.313v20a2.26 2.26 0 0 0 2 2h2v3.313c0 .188.063.375.25.5a.71.71 0 0 0 .5.188h1.375c.125 0 .313-.125.375-.25.125-.125.188-.25.125-.438v-3.313h2.25c1-.125 1.75-1 1.75-2v-20c0-.938-.875-1.313-1.75-1.313zM11.313 26H4.688V6.687h6.625zm16.25-17.312h-2.25v-8c.063-.188 0-.313-.125-.438-.063-.125-.25-.25-.375-.25h-1.375a.71.71 0 0 0-.5.188.568.568 0 0 0-.25.5v8h-2c-.938 0-2-.438-2 1.313v12a2.26 2.26 0 0 0 2 2h2v7.313c0 .188.063.375.25.5a.71.71 0 0 0 .5.188h1.375c.125 0 .313-.125.375-.25.125-.125.188-.25.125-.438v-7.313h2.25c1-.125 1.75-1 1.75-2v-12c0-.938-.875-1.313-1.75-1.313z"}))};t.default=u},e380:function(e,t,n){var r=n("7b83"),a="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(a);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var i=e.apply(this,r);return n.cache=o.set(a,i)||o,i};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},e3e3:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M10,4H4C2.89,4 2,4.89 2,6V18C2,19.1 2.9,20 4,20H20C21.1,20 22,19.1 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z"}))};e.exports=l},e3f8:function(e,t,n){var r=n("656b");function a(e){return function(t){return r(t,e)}}e.exports=a},e419:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_COLORS=t.COLORS=t.TRACES_WITH_GL=t.TRANSFORMABLE_TRACES=t.TRANSFORMS_LIST=t.subplotName=t.SUBPLOT_TO_ATTR=t.TRACE_TO_AXIS=t.CONTROL_KEY=t.COMMAND_KEY=t.ESCAPE_KEY=t.RETURN_KEY=t.DEFAULT_FONTS=t.EDITOR_ACTIONS=t.getMultiValueText=t.MULTI_VALUED_PLACEHOLDER=t.MULTI_VALUED=t.baseClass=void 0;var r="plotly-editor";t.baseClass=r;var a="MIXED_VALUES";t.MULTI_VALUED=a;var o="---";t.MULTI_VALUED_PLACEHOLDER=o;var i=function(e,t){var n={title:t("Multiple Values"),text:t("This input has multiple values associated with it. Changing this setting will override these custom inputs."),subText:t("Common Case: An 'All' tab might display this message because the X and Y tabs contain different settings.")};return n[e]};t.getMultiValueText=i;var l={UPDATE_TRACES:"plotly-editor-update-traces",ADD_TRACE:"plotly-editor-add-trace",DELETE_TRACE:"plotly-editor-delete-trace",UPDATE_LAYOUT:"plotly-editor-update-layout",DELETE_ANNOTATION:"plotly-editor-delete-annotation",DELETE_SHAPE:"plotly-editor-delete-shape",DELETE_IMAGE:"plotly-editor-delete-image",DELETE_RANGESELECTOR:"plotly-editor-delete-rangeselector",DELETE_TRANSFORM:"plotly-editor-delete-transform",MOVE_TO:"plotly-editor-move-to"};t.EDITOR_ACTIONS=l;var s=[{label:"Sans Serif",value:"sans-serif"},{label:"Serif",value:"serif"},{label:"Monospaced",value:"monospace"}];t.DEFAULT_FONTS=s;var u="Enter";t.RETURN_KEY=u;var c="Escape";t.ESCAPE_KEY=c;var f="Meta";t.COMMAND_KEY=f;var p="Control";t.CONTROL_KEY=p;var d={cartesian:["scatter","scattergl","box","violin","bar","heatmap","heatmapgl","contour","ohlc","candlestick","histogram","histogram2d","histogram2dcontour","carpet","scattercarpet","contourcarpet","waterfall","funnel"],ternary:["scatterternary"],gl3d:["scatter3d","surface","mesh3d","cone","streamtube"],geo:["scattergeo","choropleth"],mapbox:["scattermapbox","choroplethmapbox","densitymapbox"],polar:["scatterpolar","scatterpolargl","barpolar"]};t.TRACE_TO_AXIS=d;var h={cartesian:{data:["xaxis","yaxis"],layout:["x","y"]},xaxis:{data:"xaxis",layout:"x"},yaxis:{data:"yaxis",layout:"y"},x:{data:"xaxis",layout:"x"},y:{data:"yaxis",layout:"y"},ternary:{data:"subplot",layout:"ternary"},gl3d:{data:"scene",layout:"scene"},scene:{data:"scene",layout:"scene"},geo:{data:"geo",layout:"geo"},mapbox:{data:"subplot",layout:"mapbox"},polar:{data:"subplot",layout:"polar"}};t.SUBPLOT_TO_ATTR=h;var v=function(e,t){return{x:t("X"),y:t("Y"),ternary:t("Ternary"),gl3d:t("Scene"),scene:t("Scene"),geo:t("Map"),mapbox:t("Tile Map"),polar:t("Polar")}[e]};t.subplotName=v;var m=["filter","groupby","aggregate","sort"];t.TRANSFORMS_LIST=m;var y=["scatter","scattergl","box","violin","bar","ohlc","candlestick","histogram","histogram2d","waterfall"];t.TRANSFORMABLE_TRACES=y;var g=["scatter","scatterpolar","scattergl","scatterpolargl"];t.TRACES_WITH_GL=g;var b={charcoal:"#444444",white:"#ffffff",mutedBlue:"#1f77b4",safetyOrange:"#ff7f0e",cookedAsparagusGreen:"#2ca02c",brickRed:"#d62728",mutedPurple:"#9467bd",chestnutBrown:"#8c564b",raspberryYogurtPink:"#e377c2",middleGray:"#7f7f7f",curryYellowGreen:"#bcbd22",blueTeal:"#17becf",editorLink:"#447bdc",black:"#000000"};t.COLORS=b;var x=Object.values(b);t.DEFAULT_COLORS=x},e41b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=T;var r=f(n("ab5b")),a=u(n("d7bc")),o=u(n("10b4")),i=n("4578"),l=n("976e"),s=n("e419");function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function p(e){return p="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},p(e)}function d(){return d=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},d.apply(this,arguments)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 m(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function y(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&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function b(e){var t=w();return function(){var n,r=k(e);if(t){var a=k(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){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}}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function T(e){var t=function(t){y(a,t);var n=b(a);function a(e,t){var r;return h(this,a),r=n.call(this,e,t),r.deleteTrace=r.deleteTrace.bind(_(r)),r.updateTrace=r.updateTrace.bind(_(r)),r.moveTrace=r.moveTrace.bind(_(r)),r.setLocals(e,t),r}return m(a,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=e.traceIndexes,r=t.data,a=t.fullData,s=t.plotly,u=r[n[0]],c=(0,i.getFullTrace)(e,t);if(this.childContext={getValObject:function(e){return s?s.PlotSchema.getTraceValObject(c,(0,o.default)({},e).parts):null},updateContainer:this.updateTrace,deleteContainer:this.deleteTrace,moveContainer:this.moveTrace,container:u,fullContainer:c,traceIndexes:this.props.traceIndexes},n.length>1){var f=(0,l.deepCopyPublic)(c);a.forEach((function(e){return Object.keys(e).forEach((function(t){return(0,l.setMultiValuedContainer)(f,(0,l.deepCopyPublic)(e),t,{searchArrays:!0})}))}));var p=(0,l.deepCopyPublic)(u);r.forEach((function(e){return Object.keys(e).forEach((function(t){return(0,l.setMultiValuedContainer)(p,(0,l.deepCopyPublic)(e),t,{searchArrays:!0})}))})),this.childContext.fullContainer=f,this.childContext.defaultContainer=c,this.childContext.container=p}u&&c&&(this.icon=(0,i.renderTraceIcon)((0,i.plotlyTraceToCustomTrace)(u)),this.name=(0,i.getParsedTemplateString)(c.name,{meta:c.meta}))}},{key:"getChildContext",value:function(){return this.childContext}},{key:"updateTrace",value:function(e){var t=this;if(this.context.onUpdate){var n=this.props.fullDataArrayPosition?this.props.fullDataArrayPosition.map((function(e){return t.context.fullData[e]._group})):null,r=Object.keys(e).filter((function(e){return e.endsWith("src")})).length>0;Array.isArray(e)?e.forEach((function(e,r){t.context.onUpdate({type:s.EDITOR_ACTIONS.UPDATE_TRACES,payload:{update:e,traceIndexes:[t.props.traceIndexes[r]],splitTraceGroup:n?n[r]:null}})})):n&&!r?this.props.traceIndexes.forEach((function(r,a){t.context.onUpdate({type:s.EDITOR_ACTIONS.UPDATE_TRACES,payload:{update:e,traceIndexes:[t.props.traceIndexes[a]],splitTraceGroup:n?n[a]:null}})})):this.context.onUpdate({type:s.EDITOR_ACTIONS.UPDATE_TRACES,payload:{update:e,traceIndexes:this.props.traceIndexes}})}}},{key:"deleteTrace",value:function(){var e=this,t=this.context.fullData[this.props.traceIndexes[0]];if(t||!this.context.onUpdate){var n=[],r=null,a=(0,i.traceTypeToAxisType)(t.type);if(a){var o="cartesian"===a?[t.xaxis||"xaxis",t.yaxis||"yaxis"]:t[s.SUBPLOT_TO_ATTR[a].data]||s.SUBPLOT_TO_ATTR[a].data,l=function(t,n){return e.context.fullData.some((function(r){return(r[s.SUBPLOT_TO_ATTR[t].data]===n||""===(("xaxis"===t||"yaxis"===t)&&n.charAt(1))||""===n.split(t)[1]&&null===r[s.SUBPLOT_TO_ATTR[t].data])&&r.index!==e.props.traceIndexes[0]}))};"cartesian"===a?(l("xaxis",o[0])||n.push(o[0]),l("yaxis",o[1])||n.push(o[1])):l(a,o)||(r=o)}this.context.onUpdate&&this.context.onUpdate({type:s.EDITOR_ACTIONS.DELETE_TRACE,payload:{axesToBeGarbageCollected:n,subplotToBeGarbageCollected:r,traceIndexes:this.props.traceIndexes}})}else this.context.onUpdate({type:s.EDITOR_ACTIONS.DELETE_TRACE,payload:{traceIndexes:this.props.traceIndexes}})}},{key:"moveTrace",value:function(e){var t=this.props.traceIndexes[0],n="up"===e?t-1:t+1;this.context.onUpdate({type:s.EDITOR_ACTIONS.MOVE_TO,payload:{fromIndex:t,toIndex:n,path:"data"}})}},{key:"render",value:function(){return r.default.createElement(e,d({name:this.name,icon:this.icon},this.props))}}]),a}(r.Component);t.displayName="TraceConnected".concat((0,i.getDisplayName)(e)),t.propTypes={traceIndexes:a.default.arrayOf(a.default.number).isRequired,fullDataArrayPosition:a.default.arrayOf(a.default.number)},t.contextTypes={fullData:a.default.array,data:a.default.array,plotly:a.default.object,onUpdate:a.default.func,layout:a.default.object},t.childContextTypes={getValObject:a.default.func,updateContainer:a.default.func,deleteContainer:a.default.func,defaultContainer:a.default.object,container:a.default.object,fullContainer:a.default.object,traceIndexes:a.default.array,moveContainer:a.default.func};var n=e.plotly_editor_traits;return t.plotly_editor_traits=n,t}},e433:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("50d4");var r=n("8704"),a=n("b51c"),o=d(n("47d8")),i=d(n("d7bc")),l=p(n("ab5b")),s=d(n("0956")),u=d(n("f51b")),c=n("e419");function f(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return f=function(){return e},e}function p(e){if(e&&e.__esModule)return e;if(null===e||"object"!==h(e)&&"function"!==typeof e)return{default:e};var t=f();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function d(e){return e&&e.__esModule?e:{default:e}}function h(e){return h="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},h(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==h(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E="2000-01-01",O="00:00",M="yyyy-mm-dd",S="hh:mm:ss.xxx",C=function(e){g(n,e);var t=x(n);function n(e,r){var o;v(this,n),o=t.call(this,e,r);var i=o.parsePlotlyJSDateTime(e.value),l=i.time,s=i.date,u=(0,a.isDateTime)(E+" "+l)||["",S,c.MULTI_VALUED_PLACEHOLDER].includes(l),f=(0,a.isDateTime)(s+" "+O)||["",M,c.MULTI_VALUED_PLACEHOLDER].includes(s);return o.state={calendarOpen:!1,dateInputClassName:f?"datetimepicker-container-date-input":"datetimepicker-container-date-input +error",timeInputClassName:u?"datetimepicker-container-time-input":"datetimepicker-container-time-input +error",timeValue:l,dateValue:s,AMPM:o.getAMPM(s,l,r.localize)},o.toPlotlyJSDate=o.toPlotlyJSDate.bind(w(o)),o.onMonthChange=o.onMonthChange.bind(w(o)),o.onYearChange=o.onYearChange.bind(w(o)),o.onTimeChange=o.onTimeChange.bind(w(o)),o.onDateChange=o.onDateChange.bind(w(o)),o.onTimeUpdate=o.onTimeUpdate.bind(w(o)),o.onDateUpdate=o.onDateUpdate.bind(w(o)),o}return y(n,[{key:"toPlotlyJSDate",value:function(e){var t=(0,a.dateTime2ms)(e);return(0,a.ms2DateTime)(t)}},{key:"getYearOptions",value:function(e){var t=5,n=parseInt(e,10),r=new Array(t).fill(0).map((function(e,r){var a=n-(t-r);return{label:a,value:a}})),a=new Array(t).fill(0).map((function(e,t){var r=n+(t+1);return{label:r,value:r}}));return r.concat([{label:e,value:e}]).concat(a)}},{key:"getMonthOptions",value:function(){var e=this.context.localize;return[{label:e("January"),value:0},{label:e("February"),value:1},{label:e("March"),value:2},{label:e("April"),value:3},{label:e("May"),value:4},{label:e("June"),value:5},{label:e("July"),value:6},{label:e("August"),value:7},{label:e("September"),value:8},{label:e("October"),value:9},{label:e("November"),value:10},{label:e("December"),value:11}]}},{key:"onMonthChange",value:function(e){var t=new Date(this.getAdjustedPlotlyJSDateTime(this.props.value));t.setMonth(e);var n=this.toPlotlyJSDate(t);(0,a.isDateTime)(n)&&this.props.onChange(n);var r=this.parsePlotlyJSDateTime(n),o=r.time,i=r.date;this.setState({timeValue:o,dateValue:i})}},{key:"onYearChange",value:function(e){var t=new Date(this.getAdjustedPlotlyJSDateTime(this.props.value));t.setFullYear(e);var n=this.toPlotlyJSDate(t);(0,a.isDateTime)(n)&&this.props.onChange(n);var r=this.parsePlotlyJSDateTime(n),o=r.time,i=r.date;this.setState({timeValue:o,dateValue:i})}},{key:"parsePlotlyJSDateTime",value:function(e){var t=e.split(" ");return{date:t[0],time:t[1]?t[1]:""}}},{key:"getAMPM",value:function(e,t,n){var r=e+" "+t,o=(0,a.isDateTime)(r),i=new Date(this.getAdjustedPlotlyJSDateTime(r)),l=i.toLocaleTimeString("en-US").split(" "),s=t.split(":").reduce((function(e,t){var n=t.split(".");return e.concat(n)}),[]),u="12"===s[0]&&s.slice(1).every((function(e){return 0===parseInt(e,10)}));return o&&""!==t&&"Invalid Date"!==i.toDateString()?"PM"===l[1]?u?n("noon"):"PM":"AM":""}},{key:"adjustedTime",value:function(e){return e.toString().length<=2?e+":00":e}},{key:"onTimeChange",value:function(e){var t=this.parsePlotlyJSDateTime(this.props.value),n=t.date,r=(0,a.isDateTime)(E+" "+e);this.setState({timeInputClassName:r||""===e?"datetimepicker-container-time-input":"datetimepicker-container-time-input +error",timeValue:e,AMPM:this.getAMPM(n,e,this.context.localize)})}},{key:"onDateChange",value:function(e){var t=(0,a.isDateTime)(e+" "+O);this.setState({dateInputClassName:t||""===e?"datetimepicker-container-date-input":"datetimepicker-container-date-input +error",dateValue:e})}},{key:"onTimeUpdate",value:function(e){var t=this.parsePlotlyJSDateTime(this.props.value),n=t.time,r=t.date,o=(0,a.isDateTime)(E+" "+e);""!==e?o&&this.props.onChange(r+" "+e):this.setState({timeInputClassName:"datetimepicker-container-time-input",timeValue:n,AMPM:this.getAMPM(r,n,this.context.localize)})}},{key:"onDateUpdate",value:function(e){var t=this.parsePlotlyJSDateTime(this.props.value),n=t.date,r=t.time,o=(0,a.isDateTime)(e+" "+O);o?this.props.onChange(e+" "+r):""!==e||this.setState({dateValue:n,dateInputClassName:"datetimepicker-container-date-input"})}},{key:"getAdjustedPlotlyJSDateTime",value:function(e){var t=this.parsePlotlyJSDateTime(e),n=t.date,r=t.time;return n+" "+this.adjustedTime(r)}},{key:"render",value:function(){var e=this,t=new Date(this.getAdjustedPlotlyJSDateTime(this.state.dateValue+" "+O)),n="Invalid Date"!==t.toDateString(),a=n?t.getFullYear():(new Date).getFullYear(),i=n?t.getMonth():(new Date).getMonth();return l.default.createElement("div",{className:"datetimepicker-container"},l.default.createElement(s.default,{value:this.state.dateValue,editableClassName:this.state.dateInputClassName,onChange:this.onDateChange,onUpdate:this.onDateUpdate,placeholder:M}),l.default.createElement("div",{className:"datetimepicker-container-icons"},l.default.createElement(r.CalendarMultiselectIcon,{onClick:function(){return e.setState({calendarOpen:!e.state.calendarOpen})},className:this.state.calendarOpen?"datetimepicker-date-icon--selected":"datetimepicker-date-icon"})),this.state.calendarOpen?l.default.createElement("div",{className:"datetimepicker-container__content"},this.state.calendarOpen?l.default.createElement("div",{className:"datetimepicker-datepicker-container"},l.default.createElement("div",{className:"datetimepicker-datepicker-navbar"},l.default.createElement(u.default,{options:this.getMonthOptions(),value:i,className:"datimepicker-monthpicker",clearable:!1,onChange:this.onMonthChange}),l.default.createElement(u.default,{options:this.getYearOptions(a),value:a,className:"datimepicker-yearpicker",clearable:!1,onChange:this.onYearChange})),l.default.createElement(o.default,{className:"datepicker-container-rce",modifiers:{highlighted:n?t:""},month:n?t:new Date,onDayClick:function(t){var n=e.toPlotlyJSDate(t).split(" ")[0];e.onDateChange(n),e.onDateUpdate(n)}})):null):null,l.default.createElement("div",{className:"datetimepicker-container-time"},l.default.createElement(s.default,{value:this.state.timeValue,onChange:this.onTimeChange,onUpdate:this.onTimeUpdate,placeholder:S,editableClassName:this.state.timeInputClassName}),l.default.createElement("span",{className:"datetimepicker-date-units"},this.state.AMPM)))}}]),n}(l.Component);t.default=C,C.propTypes={value:i.default.string.isRequired,onChange:i.default.func.isRequired},C.contextTypes={localize:i.default.func}},e439:function(e,t,n){var r=n("23e7"),a=n("d039"),o=n("fc6a"),i=n("06cf").f,l=n("83ab"),s=a((function(){i(1)})),u=!l||s;r({target:"Object",stat:!0,forced:u,sham:!l},{getOwnPropertyDescriptor:function(e,t){return i(o(e),t)}})},e514:function(e,t,n){"use strict";var r=n("22af"),a=n("8164");function o(e,t,n,o,i){var l=a(e.getSelection());if(!t||!o)return l;var s=r.decode(t),u=s.blockKey,c=e.getBlockTree(u),f=c&&c.getIn([s.decoratorKey,"leaves",s.leafKey]),p=r.decode(o),d=p.blockKey,h=e.getBlockTree(d),v=h&&h.getIn([p.decoratorKey,"leaves",p.leafKey]);if(!f||!v)return l;var m=f.get("start"),y=v.get("start"),g=f?m+n:null,b=v?y+i:null,x=l.getAnchorKey()===u&&l.getAnchorOffset()===g&&l.getFocusKey()===d&&l.getFocusOffset()===b;if(x)return l;var _=!1;if(u===d){var w=f.get("end"),k=v.get("end");_=y===m&&k===w?i<n:y<m}else{var T=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===u||e===d})).first();_=T===d}return l.merge({anchorKey:u,anchorOffset:g,focusKey:d,focusOffset:b,isBackward:_})}e.exports=o},e518:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.UnconnectedRadio=void 0;var r=c(n("d7bc")),a=u(n("ab5b")),o=c(n("37cc")),i=c(n("5174")),l=n("4578");function s(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return s=function(){return e},e}function u(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=s();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function c(e){return e&&e.__esModule?e:{default:e}}function f(e){return f="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},f(e)}function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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 y(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),e}function g(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&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},b(e,t)}function x(e){var t=k();return function(){var n,r=T(e);if(t){var a=T(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?w(e):t}function w(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(){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}}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}var E=function(e){g(n,e);var t=x(n);function n(){return v(this,n),t.apply(this,arguments)}return y(n,[{key:"render",value:function(){return a.default.createElement(i.default,this.props,a.default.createElement(o.default,{options:this.props.options,activeOption:this.props.fullValue,onOptionChange:this.props.updatePlot}))}}]),n}(a.Component);t.UnconnectedRadio=E,E.propTypes=d({center:r.default.bool,fullValue:r.default.any,options:r.default.array.isRequired,updatePlot:r.default.func},i.default.propTypes),E.defaultProps={center:!0},E.displayName="UnconnectedRadio";var O=(0,l.connectToContainer)(E);t.default=O},e538:function(e,t,n){var r=n("b622");t.f=r},e5383:function(e,t,n){(function(e){var r=n("2b3e"),a=t&&!t.nodeType&&t,o=a&&"object"==typeof e&&e&&!e.nodeType&&e,i=o&&o.exports===a,l=i?r.Buffer:void 0,s=l?l.allocUnsafe:void 0;function u(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}e.exports=u}).call(this,n("62e4")(e))},e61d:function(e,t,n){"use strict";e.exports=function(e,t){if(!t)return e;var n=1/Math.abs(t),r=n>1?(n*e+n*t)/n:e+t,a=String(r).length;if(a>16){var o=String(t).length,i=String(e).length;if(a>=i+o){var l=parseFloat(r).toPrecision(12);-1===l.indexOf("e+")&&(r=+l)}}return r}},e667:function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},e688:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LevelRendered=t.HoverColor=t.HovermodeDropdown=t.HoveronDropdown=t.MapboxStyleDropdown=t.MapboxSourceArray=t.FillDropdown=t.HoverInfo=t.HoverTemplateText=t.HoverTemplateSwitch=t.TextInfo=t.PositioningNumeric=t.PositioningRef=t.AnnotationRef=t.AnnotationArrowRef=t.NumericReciprocal=t.NumericFractionInverse=t.NumericFractionDomain=t.NumericFraction=t.DTicksInterval=t.DTicks=t.NTicks=t.AxesRange=t.Histogram2d=t.HistogramInfoHorizontal=t.HistogramInfoVertical=t.ShowInLegend=t.TickFormat=t.BinningDropdown=t.ContourNumeric=t.AxisSide=t.RangesliderVisible=t.AxisOverlayDropdown=t.AxisAnchorDropdown=void 0;var r=b(n("19b2")),a=n("7515"),o=n("1fb3"),i=n("7d2f"),l=n("134d"),s=n("7592"),u=n("7916"),c=n("e518"),f=n("79e5"),p=b(n("88e7")),d=n("bbf7"),h=n("d1bf"),v=n("6bd2"),m=n("4578"),y=b(n("d7bc")),g=b(n("090e"));function b(e){return e&&e.__esModule?e:{default:e}}function x(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){return M(e)||O(e)||E(e)||T()}function T(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function E(e,t){if(e){if("string"===typeof e)return S(e,t);var n=Object.prototype.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)?S(e,t):void 0}}function O(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function M(e){if(Array.isArray(e))return S(e)}function S(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 C(e){return C="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},C(e)}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(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&&L(e,t)}function L(e,t){return L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},L(e,t)}function D(e){var t=R();return function(){var n,r=z(e);if(t){var a=z(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==C(t)&&"function"!==typeof t?I(e):t}function I(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R(){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}}function z(e){return z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},z(e)}var N=(0,m.connectToContainer)(a.UnconnectedDropdown,{modifyPlotProps:function(e,t,n){var r=t.localize,a=[];e.attr.startsWith("xaxis")?a=t.fullLayout._subplots.yaxis.map((function(e){return{label:(0,m.getAxisTitle)(t.fullLayout[(0,m.axisIdToAxisName)(e)]),value:e}})):e.attr.startsWith("yaxis")&&(a=t.fullLayout._subplots.xaxis.map((function(e){return{label:(0,m.getAxisTitle)(t.fullLayout[(0,m.axisIdToAxisName)(e)]),value:e}}))),a.push({label:r("Free"),value:"free"}),n.options=a}});t.AxisAnchorDropdown=N;var F=(0,m.connectToContainer)(a.UnconnectedDropdown,{modifyPlotProps:function(e,t,n){var r=t.localize,a=[];e.attr.startsWith("xaxis")?a=t.fullLayout._subplots.xaxis.map((function(e){return{label:(0,m.getAxisTitle)(t.fullLayout[(0,m.axisIdToAxisName)(e)]),value:e}})):e.attr.startsWith("yaxis")&&(a=t.fullLayout._subplots.yaxis.map((function(e){return{label:(0,m.getAxisTitle)(t.fullLayout[(0,m.axisIdToAxisName)(e)]),value:e}}))),a.unshift({label:r("None"),value:!1}),n.options=a.filter((function(e){return t.fullContainer&&t.fullContainer.xaxis&&t.fullContainer.yaxis&&t.fullContainer.xaxis._id!==e.value&&t.fullContainer.yaxis._id!==e.value})),n.clearable=!1}});t.AxisOverlayDropdown=F;var B=(0,m.connectToContainer)(c.UnconnectedRadio,{modifyPlotProps:function(e,t,n){if(!n.fullValue)return n.fullValue=!1,n.visible=!1,void(n.isVisible=!0)}});t.RangesliderVisible=B;var V=(0,m.connectToContainer)(c.UnconnectedRadio,{modifyPlotProps:function(e,t,n){var r=t.localize;"left"!==n.fullValue&&"right"!==n.fullValue?"top"!==n.fullValue&&"bottom"!==n.fullValue?"clockwise"!==n.fullValue&&"counterclockwise"!==n.fullValue?n.isVisible=!1:n.options=[{label:r("Clockwise"),value:"clockwise"},{label:r("Counterclockwise"),value:"counterclockwise"}]:n.options=[{label:r("Top"),value:"top"},{label:r("Bottom"),value:"bottom"}]:n.options=[{label:r("Left"),value:"left"},{label:r("Right"),value:"right"}]}});t.AxisSide=V;var H=(0,m.connectToContainer)(l.UnconnectedNumeric,{modifyPlotProps:function(e,t,n){var r=n.fullContainer;n.isVisible&&r&&r.autocontour&&(n.isVisible=!1)}});t.ContourNumeric=H;var U=(0,m.connectToContainer)(a.UnconnectedDropdown,{modifyPlotProps:function(e,t,n){var r=t.localize,a="histogram2d"===n.fullContainer.type?"Z":"v"===n.fullContainer.orientation?"Y":"X";n.options=[{label:r("Count ")+a,value:"count"},{label:r("Sum ")+a,value:"sum"},{label:r("Average ")+a,value:"avg"},{label:r("Minimum ")+a,value:"min"},{label:r("Maximum ")+a,value:"max"}]}});t.BinningDropdown=U;var W=(0,m.connectToContainer)(o.UnconnectedDropdownCustom,{modifyPlotProps:function(e,t,n){var r=t.localize;"date"===n.fullContainer.type?(n.options=[{label:r("Default"),value:""},{label:r("Advanced (d3-time-format)"),value:"%x"}],n.customOpt="%x"):(n.options=[{label:r("Simple"),value:""},{label:r("Advanced (d3-format)"),value:"s"}],n.customOpt="s")}});t.TickFormat=W;var q=(0,m.connectToContainer)(v.UnconnectedVisibilitySelect,{modifyPlotProps:function(e,t,n){return t.container.type&&"sunburst"!==t.container.type&&"treemap"!==t.container.type&&(n.isVisible=t.fullLayout.showlegend),n}});t.ShowInLegend=q;var $=(0,m.connectToContainer)(p.default,{modifyPlotProps:function(e,t,n){return n.isVisible="histogram"===t.fullContainer.type&&"v"===t.fullContainer.orientation,n}});t.HistogramInfoVertical=$;var G=(0,m.connectToContainer)(p.default,{modifyPlotProps:function(e,t,n){return n.isVisible="histogram"===t.fullContainer.type&&"h"===t.fullContainer.orientation,n}});t.HistogramInfoHorizontal=G;var Y=(0,m.connectToContainer)(p.default,{modifyPlotProps:function(e,t,n){return n.isVisible="histogram2d"===t.fullContainer.type,n}});t.Histogram2d=Y;var K=(0,m.connectToContainer)(u.UnconnectedAxisRangeValue,{modifyPlotProps:function(e,t,n){var r=n.fullContainer;return n.isVisible&&r&&r.autorange&&(n.isVisible=!1),n}});t.AxesRange=K;var X=(0,m.connectToContainer)(l.UnconnectedNumeric,{modifyPlotProps:function(e,t,n){var r=n.fullContainer;return n.isVisible&&r&&"auto"!==r.tickmode&&(n.isVisible=!1),n}});t.NTicks=X;var Z=(0,m.connectToContainer)(u.UnconnectedAxisRangeValue,{modifyPlotProps:function(e,t,n){var r=n.fullContainer;return r&&r._name&&(r._name.startsWith("lat")||r._name.startsWith("lon"))||n.isVisible&&r&&"linear"!==r.tickmode&&(n.isVisible=!1),n}});t.DTicks=Z;var J=(0,m.connectToContainer)(f.UnconnectedAxisInterval,{modifyPlotProps:function(e,t,n){var r=n.fullContainer;return r&&r._name&&(r._name.startsWith("lat")||r._name.startsWith("lon"))||n.isVisible&&r&&"linear"!==r.tickmode&&(n.isVisible=!1),n}});t.DTicksInterval=J;var Q=function(e){P(n,e);var t=D(n);function n(){return A(this,n),t.apply(this,arguments)}return n}(l.UnconnectedNumeric);Q.propTypes=l.UnconnectedNumeric.propTypes,Q.defaultProps={units:"%",showSlider:!0},Q.displayName="UnconnectedNumericFraction";var ee=function(e,t,n){var a=n.attrMeta,o=n.fullValue,i=n.updatePlot,l=a&&a.min||0,s=a&&a.max||1;(0,r.default)(o)&&(n.fullValue=Math.round(100*(o-l)/(s-l))),n.updatePlot=function(e){(0,r.default)(e)?i(e/100*(s-l)+l):i(e)},n.max=100,n.min=0},te=(0,m.connectToContainer)(Q,{modifyPlotProps:ee});t.NumericFraction=te;var ne=(0,m.connectToContainer)(Q,{modifyPlotProps:function(e,t,n){ee(e,t,n),t.container&&t.container.overlaying&&(n.isVisible=null)}});t.NumericFractionDomain=ne;var re=(0,m.connectToContainer)(Q,{modifyPlotProps:function(e,t,n){var a=n.attrMeta,o=n.fullValue,i=n.updatePlot;(0,r.default)(o)&&(n.fullValue=Math.round(100*(1-o))),n.updatePlot=function(e){(0,r.default)(e)?i(1-e/100):i(e)},a&&((0,r.default)(a.min)&&(n.max=100*(1-a.min)),(0,r.default)(a.max)&&(n.min=100*(1-a.max)))}});t.NumericFractionInverse=re;var ae=(0,m.connectToContainer)(l.UnconnectedNumeric,{modifyPlotProps:function(e,t,n){var a=n.fullValue,o=n.updatePlot;(0,r.default)(a)&&(n.fullValue=1/a),n.updatePlot=function(e){(0,r.default)(e)?o(1/e):o(e)},n.min=0}});t.NumericReciprocal=ae;var oe=(0,m.connectToContainer)(a.UnconnectedDropdown,{modifyPlotProps:function(e,t,n){var r=t.localize;if(t.fullContainer){var a,o=t.fullContainer,i=o.xref,l=o.yref;if("axref"===e.attr)a=i;else{if("ayref"!==e.attr)throw new Error(r('AnnotationArrowRef must be given either "axref" or "ayref" as attrs. Instead was given')+e.attr);a=l}if("paper"===a){var s=(0,m.getAllAxes)(t.fullLayout).filter((function(e){return e._id}));s.length>0?n.options=[{label:r("in pixels"),value:"pixel"}].concat(k(ue(s,e.attr))):n.isVisible=!1}else n.options=[{label:r("in pixels"),value:"pixel"},{label:r("according to axis"),value:a}];n.clearable=!1}}});t.AnnotationArrowRef=oe;var ie=(0,m.connectToContainer)(a.UnconnectedDropdown,{modifyPlotProps:function(e,t,n){if(t.fullContainer){var r,a=t.fullContainer,o=a.axref,i=a.ayref,l=t.localize;if("xref"===e.attr)r=o;else{if("yref"!==e.attr)throw new Error(l('AnnotationRef must be given either "xref" or "yref" as attrs. Instead was given')+e.attr+".");r=i}var s=(0,m.getAllAxes)(t.fullLayout).filter((function(e){return e._id}));s.length>0?n.options=[{label:l("Canvas"),value:"paper"}].concat(k(ue(s,e.attr))):n.isVisible=!1,"pixel"!==r&&(n.updatePlot=function(t){if(n.updateContainer){var r=w({},e.attr,t);"paper"!==t&&(r["a".concat(e.attr)]=t),n.updateContainer(r)}}),n.clearable=!1}}});t.AnnotationRef=ie;var le=(0,m.connectToContainer)(a.UnconnectedDropdown,{modifyPlotProps:function(e,t,n){var r=(0,m.getAllAxes)(t.fullLayout).filter((function(e){return e._id}));r.length>0?(n.options=[{label:"Canvas",value:"paper"}].concat(k(ue(r,e.attr))),n.clearable=!1):n.isVisible=!1}});t.PositioningRef=le;var se=(0,m.connectToContainer)(s.UnconnectedNumericOrDate,{modifyPlotProps:function(e,t,n){var a=n.fullContainer,o=n.fullValue,i=n.updatePlot;!a||"paper"!==a[e.attr[0]+"ref"]&&"paper"!==a[e.attr[e.attr.length-1]+"ref"]||(n.units="%",n.showSlider=!0,n.max=100,n.min=0,n.step=1,(0,r.default)(o)&&(n.fullValue=Math.round(100*o)),n.updatePlot=function(e){(0,r.default)(e)?i(e/100):i(e)})}});function ue(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r];if(a._id.charAt(0)===t.charAt(0)||a._id.charAt(0)===t.charAt(1)){var o=(0,m.getAxisTitle)(a);n.push({label:o,value:a._id})}}return n}t.PositioningNumeric=se;var ce=(0,m.connectToContainer)(i.UnconnectedFlaglist,{modifyPlotProps:function(e,t,n){var r=t.localize,a=t.container,o=[{label:r("Label"),value:"label"},{label:r("Value"),value:"value"},{label:r("%"),value:"percent"}];"funnel"===a.type&&(o=[{label:r("Label"),value:"label"},{label:r("Value"),value:"value"},{label:r("% initial"),value:"percent initial"},{label:r("% previous"),value:"percent previous"},{label:r("% total"),value:"percent total"}]),a.text&&o.push({label:r("Text"),value:"text"}),n.options=o}});t.TextInfo=ce;var fe=(0,m.connectToContainer)(c.UnconnectedRadio,{modifyPlotProps:function(e,t,n){var r=t.localize;return n.options=[{label:r("Values"),value:""},{label:r("Template"),value:n.fullValue||" "}],n}});t.HoverTemplateSwitch=fe;var pe=(0,m.connectToContainer)(h.UnconnectedTextEditor,{modifyPlotProps:function(e,t,n){return n.isVisible&&""===n.fullValue&&(n.isVisible=!1),n}});t.HoverTemplateText=pe;var de=(0,m.connectToContainer)(i.UnconnectedFlaglist,{modifyPlotProps:function(e,t,n){var r=t.localize,a=t.container,o=[{label:r("X"),value:"x"},{label:r("Y"),value:"y"}];["heatmap","heatmapgl","histogram2d","histogram2dcontour","contour","contourcarpet","scatter3d","surface","mesh3d"].includes(a.type)?o.push({label:r("Z"),value:"z"}):"choropleth"===a.type?o=[{label:r("Location"),value:"location"},{label:r("Values"),value:"z"}]:"scattergeo"===a.type?a.locations?o=[{label:r("Location"),value:"location"}]:(a.lat||a.lon)&&(o=[{label:r("Longitude"),value:"lon"},{label:r("Latitude"),value:"lat"}]):"scattermapbox"===a.type?o=[{label:r("Longitude"),value:"lon"},{label:r("Latitude"),value:"lat"}]:"densitymapbox"===a.type?o=[{label:r("Longitude"),value:"lon"},{label:r("Latitude"),value:"lat"},{label:r("Z"),value:"z"}]:"scatterternary"===a.type?o=[{label:r("A"),value:"a"},{label:r("B"),value:"b"},{label:r("C"),value:"c"}]:["scatterpolar","scatterpolargl","barpolar"].includes(a.type)?o=[{label:r("R"),value:"r"},{label:r("Theta"),value:"theta"}]:"pie"===a.type?o=[{label:r("Percent"),value:"percent"}]:"table"===a.type?n.isVisible=!1:["cone","streamtube"].includes(a.type)?o=[{label:r("X"),value:"x"},{label:r("Y"),value:"y"},{label:r("Z"),value:"z"},{label:r("U"),value:"u"},{label:r("V"),value:"v"},{label:r("W"),value:"w"},{label:r("Norm"),value:"norm"},{label:r("Divergence"),value:"divergence"}]:"sunburst"!==a.type&&"treemap"!==a.type||(o=[]),a.labels&&["pie","sunburst","treemap","funnelarea"].includes(a.type)&&o.push({label:r("Label"),value:"label"}),a.values&&["pie","sunburst","treemap","funnelarea"].includes(a.type)&&o.push({label:r("Value"),value:"value"}),a.text&&o.push({label:r("Text"),value:"text"}),o.push({label:r("Trace name"),value:"name"}),n.options=o}});t.HoverInfo=de;var he=(0,m.connectToContainer)(a.UnconnectedDropdown,{modifyPlotProps:function(e,t,n){var r=t.localize,a=[{label:r("None"),value:"none"},{label:r("Y = 0"),value:"tozeroy"},{label:r("X = 0"),value:"tozerox"},{label:r("Previous Y"),value:"tonexty"},{label:r("Previous X"),value:"tonextx"}];"scatterternary"===t.container.type||"scattercarpet"===t.container.type||"scatterpolar"===t.container.type?a=[{label:r("None"),value:"none"},{label:r("To Self"),value:"toself"},{label:r("To Next"),value:"tonext"}]:"scattergeo"!==t.container.type&&"scattermapbox"!==t.container.type||(a=[{label:r("None"),value:"none"},{label:r("To Self"),value:"toself"}]),n.options=a,n.clearable=!1}});t.FillDropdown=he;var ve=(0,m.connectToContainer)(g.default,{modifyPlotProps:function(e,t,n){var r=n.fullValue,a=n.updatePlot;n.fullValue&&n.fullValue.length>0&&(n.fullValue=r[0]),n.updatePlot=function(e){e.length?a([e]):a([])}}});t.MapboxSourceArray=ve;var me=(0,m.connectToContainer)(a.UnconnectedDropdown,{modifyPlotProps:function(e,t,n){var r=t.mapBoxAccess,a=t.localize;n.options=(r?[{label:a("Mapbox Basic"),value:"basic"},{label:a("Mapbox Outdoors"),value:"outdoors"},{label:a("Mapbox Light"),value:"light"},{label:a("Mapbox Dark"),value:"dark"},{label:a("Mapbox Satellite"),value:"satellite"},{label:a("Mapbox Satellite with Streets"),value:"satellite-streets"}]:[]).concat([{label:a("No tiles (white background)"),value:"white-bg"},{label:a("Open Street Map"),value:"open-street-map"},{label:a("Carto Positron"),value:"carto-positron"},{label:a("Carto Dark Matter"),value:"carto-darkmatter"},{label:a("Stamen Terrain"),value:"stamen-terrain"},{label:a("Stamen Toner"),value:"stamen-toner"},{label:a("Stamen Watercolor"),value:"stamen-watercolor"}]),n.clearable=!1}});t.MapboxStyleDropdown=me,me.contextTypes=_({mapBoxAccess:y.default.bool},me.contextTypes);var ye=(0,m.connectToContainer)(a.UnconnectedDropdown,{modifyPlotProps:function(e,t,n){var r,a=t.localize;r="box"===t.container.type?[{label:a("Boxes"),value:"boxes"},{label:a("Points"),value:"points"},{label:a("Boxes and Points"),value:"boxes+points"}]:"violin"===t.container.type?[{label:a("Violins"),value:"violins"},{label:a("Points"),value:"points"},{label:a("KDE"),value:"kde"},{label:a("Violins and Points"),value:"violins+points"},{label:a("Violins, Points and KDE"),value:"violins+points+kde"}]:[{label:a("Points"),value:"points"},{label:a("Fills"),value:"fills"},{label:a("Points and Fills"),value:"points+fills"}],n.options=r,n.clearable=!1}});t.HoveronDropdown=ye;var ge=(0,m.connectToContainer)(v.UnconnectedVisibilitySelect,{modifyPlotProps:function(e,t,n){var r=t.localize;n.options=t.container.xaxis&&Object.keys(t.container.xaxis).length>0?[{label:r("Closest"),value:"closest"},{label:r("X Axis"),value:"x"},{label:r("Y Axis"),value:"y"},{label:r("Disable"),value:!1}]:[{label:r("Closest"),value:"closest"},{label:r("Disable"),value:!1}],n.clearable=!1,n.dropdown=!0,n.showOn=["closest","x","y"]}});t.HovermodeDropdown=ge;var be=(0,m.connectToContainer)(d.UnconnectedColorPicker,{modifyPlotProps:function(e,t,n){return n.isVisible=Boolean(t.fullLayout.hovermode),n}});t.HoverColor=be;var xe=(0,m.connectToContainer)(a.UnconnectedDropdown,{modifyPlotProps:function(e,t,n){var r=t.localize;t.container.ids&&t.container.ids.length&&(n.isVisible=!0,n.options=[{label:r("Root"),value:""}].concat(t.container.ids.map((function(e){return{label:e,value:e}}))))}});t.LevelRendered=xe},e6cf:function(e,t,n){"use strict";var r,a,o,i,l=n("23e7"),s=n("c430"),u=n("da84"),c=n("d066"),f=n("fea9"),p=n("6eeb"),d=n("e2cc"),h=n("d44e"),v=n("2626"),m=n("861d"),y=n("1c0b"),g=n("19aa"),b=n("c6b6"),x=n("8925"),_=n("2266"),w=n("1c7e"),k=n("4840"),T=n("2cf4").set,E=n("b575"),O=n("cdf9"),M=n("44de"),S=n("f069"),C=n("e667"),A=n("69f3"),P=n("94ca"),L=n("b622"),D=n("2d00"),j=L("species"),I="Promise",R=A.get,z=A.set,N=A.getterFor(I),F=f,B=u.TypeError,V=u.document,H=u.process,U=c("fetch"),W=S.f,q=W,$="process"==b(H),G=!!(V&&V.createEvent&&u.dispatchEvent),Y="unhandledrejection",K="rejectionhandled",X=0,Z=1,J=2,Q=1,ee=2,te=P(I,(function(){var e=x(F)!==String(F);if(!e){if(66===D)return!0;if(!$&&"function"!=typeof PromiseRejectionEvent)return!0}if(s&&!F.prototype["finally"])return!0;if(D>=51&&/native code/.test(F))return!1;var t=F.resolve(1),n=function(e){e((function(){}),(function(){}))},r=t.constructor={};return r[j]=n,!(t.then((function(){}))instanceof n)})),ne=te||!w((function(e){F.all(e)["catch"]((function(){}))})),re=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},ae=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;E((function(){var a=t.value,o=t.state==Z,i=0;while(r.length>i){var l,s,u,c=r[i++],f=o?c.ok:c.fail,p=c.resolve,d=c.reject,h=c.domain;try{f?(o||(t.rejection===ee&&se(e,t),t.rejection=Q),!0===f?l=a:(h&&h.enter(),l=f(a),h&&(h.exit(),u=!0)),l===c.promise?d(B("Promise-chain cycle")):(s=re(l))?s.call(l,p,d):p(l)):d(a)}catch(v){h&&!u&&h.exit(),d(v)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ie(e,t)}))}},oe=function(e,t,n){var r,a;G?(r=V.createEvent("Event"),r.promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},(a=u["on"+e])?a(r):e===Y&&M("Unhandled promise rejection",n)},ie=function(e,t){T.call(u,(function(){var n,r=t.value,a=le(t);if(a&&(n=C((function(){$?H.emit("unhandledRejection",r,e):oe(Y,e,r)})),t.rejection=$||le(t)?ee:Q,n.error))throw n.value}))},le=function(e){return e.rejection!==Q&&!e.parent},se=function(e,t){T.call(u,(function(){$?H.emit("rejectionHandled",e):oe(K,e,t.value)}))},ue=function(e,t,n,r){return function(a){e(t,n,a,r)}},ce=function(e,t,n,r){t.done||(t.done=!0,r&&(t=r),t.value=n,t.state=J,ae(e,t,!0))},fe=function(e,t,n,r){if(!t.done){t.done=!0,r&&(t=r);try{if(e===n)throw B("Promise can't be resolved itself");var a=re(n);a?E((function(){var r={done:!1};try{a.call(n,ue(fe,e,r,t),ue(ce,e,r,t))}catch(o){ce(e,r,o,t)}})):(t.value=n,t.state=Z,ae(e,t,!1))}catch(o){ce(e,{done:!1},o,t)}}};te&&(F=function(e){g(this,F,I),y(e),r.call(this);var t=R(this);try{e(ue(fe,this,t),ue(ce,this,t))}catch(n){ce(this,t,n)}},r=function(e){z(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:X,value:void 0})},r.prototype=d(F.prototype,{then:function(e,t){var n=N(this),r=W(k(this,F));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=$?H.domain:void 0,n.parent=!0,n.reactions.push(r),n.state!=X&&ae(this,n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r,t=R(e);this.promise=e,this.resolve=ue(fe,e,t),this.reject=ue(ce,e,t)},S.f=W=function(e){return e===F||e===o?new a(e):q(e)},s||"function"!=typeof f||(i=f.prototype.then,p(f.prototype,"then",(function(e,t){var n=this;return new F((function(e,t){i.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof U&&l({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return O(F,U.apply(u,arguments))}}))),l({global:!0,wrap:!0,forced:te},{Promise:F}),h(F,I,!1,!0),v(I),o=c(I),l({target:I,stat:!0,forced:te},{reject:function(e){var t=W(this);return t.reject.call(void 0,e),t.promise}}),l({target:I,stat:!0,forced:s||te},{resolve:function(e){return O(s&&this===o?F:this,e)}}),l({target:I,stat:!0,forced:ne},{all:function(e){var t=this,n=W(t),r=n.resolve,a=n.reject,o=C((function(){var n=y(t.resolve),o=[],i=0,l=1;_(e,(function(e){var s=i++,u=!1;o.push(void 0),l++,n.call(t,e).then((function(e){u||(u=!0,o[s]=e,--l||r(o))}),a)})),--l||r(o)}));return o.error&&a(o.value),n.promise},race:function(e){var t=this,n=W(t),r=n.reject,a=C((function(){var a=y(t.resolve);_(e,(function(e){a.call(t,e).then(n.resolve,r)}))}));return a.error&&r(a.value),n.promise}})},e750:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.traceHasColorbar=void 0;var r=i(n("ab5b")),a=i(n("d7bc")),o=n("c85e");function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){return t.marker&&void 0!==t.marker.showscale||void 0!==t.showscale};t.traceHasColorbar=l;var s=function(e,t){var n=t.localize;return r.default.createElement(o.TraceAccordion,{traceFilterCondition:l},["","marker."].map((function(e){return r.default.createElement(o.VisibilitySelect,{attr:e+"showscale",key:"x"+e,options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}],showOn:!0},r.default.createElement(o.PlotlyPanel,{key:e+" panel"},r.default.createElement(o.PlotlyFold,{name:n("Title")},r.default.createElement(o.TextEditor,{attr:e+"colorbar.title.text"}),r.default.createElement(o.Dropdown,{label:n("Location"),attr:e+"colorbar.title.side",options:[{label:n("Top"),value:"top"},{label:n("Right"),value:"right"},{label:n("Bottom"),value:"bottom"}]}),r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:e+"colorbar.title.font.family"}),r.default.createElement(o.Numeric,{label:n("Font Size"),attr:e+"colorbar.title.font.size",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Font Color"),attr:e+"colorbar.title.font.color"})),r.default.createElement(o.PlotlyFold,{name:n("Size and Positioning")},r.default.createElement(o.PlotlySection,{name:n("Size"),attr:e+"colorbar.len"},r.default.createElement(o.Numeric,{label:n("Height"),attr:e+"colorbar.len"}),r.default.createElement(o.Radio,{attr:e+"colorbar.lenmode",options:[{label:n("Fraction of Plot"),value:"fraction"},{label:n("Pixels"),value:"pixels"}]}),r.default.createElement(o.Numeric,{label:n("Width"),attr:e+"colorbar.thickness"}),r.default.createElement(o.Radio,{attr:e+"colorbar.thicknessmode",options:[{label:n("Fraction of Plot"),value:"fraction"},{label:n("Pixels"),value:"pixels"}]})),r.default.createElement(o.PlotlySection,{name:n("Horizontal Positioning"),attr:e+"colorbar.x"},r.default.createElement(o.Numeric,{label:n("Position"),attr:e+"colorbar.x",showSlider:!0,step:.02}),r.default.createElement(o.Dropdown,{label:n("Anchor"),attr:e+"colorbar.xanchor",options:[{label:n("Left"),value:"left"},{label:n("Center"),value:"center"},{label:n("Right"),value:"right"}]})),r.default.createElement(o.PlotlySection,{name:n("Vertical Positioning"),attr:e+"colorbar.y"},r.default.createElement(o.Numeric,{label:n("Position"),attr:e+"colorbar.y",showSlider:!0,step:.02}),r.default.createElement(o.Dropdown,{label:n("Anchor"),attr:e+"colorbar.yanchor",options:[{label:n("Top"),value:"top"},{label:n("Middle"),value:"middle"},{label:n("Bottom"),value:"bottom"}]})),r.default.createElement(o.PlotlySection,{name:n("Padding"),attr:e+"colorbar.xpad"},r.default.createElement(o.Numeric,{label:n("Vertical"),attr:e+"colorbar.ypad",units:"px"}),r.default.createElement(o.Numeric,{label:n("Horizontal"),attr:e+"colorbar.xpad",units:"px"}))),r.default.createElement(o.PlotlyFold,{name:n("Labels")},r.default.createElement(o.VisibilitySelect,{attr:e+"colorbar.showticklabels",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}],showOn:!0,defaultOpt:!0},r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:e+"colorbar.tickfont.family"}),r.default.createElement(o.Numeric,{label:n("Font Size"),attr:e+"colorbar.tickfont.size",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Font Color"),attr:e+"colorbar.tickfont.color"}),r.default.createElement(o.Dropdown,{label:n("Angle"),attr:e+"colorbar.tickangle",clearable:!1,options:[{label:n("Auto"),value:"auto"},{label:n("45"),value:45},{label:n("90"),value:90},{label:n("135"),value:135},{label:n("180"),value:180}]}),r.default.createElement(o.Dropdown,{label:n("Exponents"),attr:e+"colorbar.exponentformat",clearable:!1,options:[{label:n("None"),value:"000"},{label:n("e+6"),value:"e"},{label:n("E+6"),value:"E"},{label:n("x10^6"),value:"power"},{label:n("k/M/G"),value:"SI"},{label:n("k/M/B"),value:"B"}]}),r.default.createElement(o.DropdownCustom,{label:n("Label Prefix"),attr:e+"colorbar.tickprefix",options:[{label:n("None"),value:""},{label:n("x"),value:"x"},{label:n("$"),value:"$"},{label:n("#"),value:"#"},{label:n("@"),value:"@"},{label:n("Custom"),value:"custom"}],customOpt:"custom",dafaultOpt:"",clearable:!1}),r.default.createElement(o.Dropdown,{label:n("Show Prefix"),attr:e+"colorbar.showtickprefix",options:[{label:n("Every label"),value:"all"},{label:n("First label"),value:"first"},{label:n("Last label"),value:"last"},{label:n("None label"),value:"none"}]}),r.default.createElement(o.DropdownCustom,{label:n("Label Suffix"),attr:e+"colorbar.ticksuffix",options:[{label:n("None"),value:""},{label:n("C"),value:"C"},{label:n("%"),value:"%"},{label:n("^"),value:"^"},{label:n("Custom"),value:"custom"}],customOpt:"custom",dafaultOpt:"",clearable:!1}),r.default.createElement(o.Dropdown,{label:n("Show Suffix"),attr:e+"colorbar.showticksuffix",options:[{label:n("Every label"),value:"all"},{label:n("First label"),value:"first"},{label:n("Last label"),value:"last"},{label:n("None label"),value:"none"}]}),r.default.createElement(o.Radio,{attr:e+"colorbar.tickmode",options:[{label:n("Auto"),value:"auto"},{label:n("Custom"),value:"linear"}],label:n("Tick spacing")}),r.default.createElement(o.NumericOrDate,{label:n("Step Offset"),attr:e+"colorbar.tick0"}),r.default.createElement(o.AxisInterval,{label:n("Step Size"),attr:e+"colorbar.dtick"}),r.default.createElement(o.Numeric,{label:n("Max Number of Labels"),attr:e+"colorbar.nticks"}))),r.default.createElement(o.PlotlyFold,{name:n("Ticks")},r.default.createElement(o.VisibilitySelect,{attr:e+"colorbar.ticks",options:[{label:n("Inside"),value:"inside"},{label:n("Outside"),value:"outside"},{label:n("Hide"),value:""}],showOn:["inside","outside"],defaultOpt:""},r.default.createElement(o.Numeric,{label:n("Length"),attr:e+"colorbar.ticklen",units:"px"}),r.default.createElement(o.Numeric,{label:n("Width"),attr:e+"colorbar.tickwidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:e+"colorbar.tickcolor"}),r.default.createElement(o.Radio,{attr:e+"colorbar.tickmode",options:[{label:n("Auto"),value:"auto"},{label:n("Custom"),value:"linear"}],label:n("Tick spacing")}),r.default.createElement(o.NumericOrDate,{label:n("Step Offset"),attr:e+"colorbar.tick0"}),r.default.createElement(o.AxisInterval,{label:n("Step Size"),attr:e+"colorbar.dtick"}),r.default.createElement(o.Numeric,{label:n("Max Number of Labels"),attr:e+"colorbar.nticks"}))),r.default.createElement(o.PlotlyFold,{name:n("Borders and Background")},r.default.createElement(o.PlotlySection,{name:n("Color Bar"),attr:e+"colorbar.outlinewidth"},r.default.createElement(o.Numeric,{label:n("Border Width"),attr:e+"colorbar.outlinewidth"}),r.default.createElement(o.ColorPicker,{label:n("Border Color"),attr:e+"colorbar.outlinecolor"})),r.default.createElement(o.PlotlySection,{name:n("Color Bar Container"),attr:e+"colorbar.bgcolor"},r.default.createElement(o.ColorPicker,{label:n("Background Color"),attr:e+"colorbar.bgcolor"}),r.default.createElement(o.Numeric,{label:n("Border Width"),attr:e+"colorbar.borderwidth"}),r.default.createElement(o.ColorPicker,{label:n("Border Color"),attr:e+"colorbar.bordercolor"})))))})))};s.contextTypes={localize:a.default.func};var u=s;t.default=u},e762:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M18,18H6V6H18M18,4H6C4.9,4 4,4.9 4,6V18C4,19.1 4.9,20 6,20H18C19.1,20 20,19.1 20,18V6C20,4.89 19.1,4 18,4Z"}))};e.exports=l},e78b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Panel=void 0;var r=p(n("a30a")),a=p(n("a36d")),o=p(n("d7bc")),i=f(n("ab5b")),l=p(n("46c3")),s=n("4578"),u=n("8704");function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function f(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function p(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="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},d(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(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 m(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function y(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&&g(e,t)}function g(e,t){return g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},g(e,t)}function b(e){var t=w();return function(){var n,r=k(e);if(t){var a=k(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?_(e):t}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){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}}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var T=function(e){y(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return m(n,[{key:"render",value:function(){var e=this.context.localize;return i.default.createElement(a.default,{icon:u.EmbedIconIcon,heading:e("Well this is embarrassing.")},i.default.createElement("p",null,e("This panel could not be displayed due to an error.")))}}]),n}(i.Component);T.contextTypes={localize:o.default.func};var E=T,O=function(e){y(n,e);var t=b(n);function n(e){var r;return h(this,n),r=t.call(this,e),r.state={individualFoldStates:[],hasError:!1},r.toggleFolds=r.toggleFolds.bind(_(r)),r.toggleFold=r.toggleFold.bind(_(r)),r}return m(n,[{key:"getChildContext",value:function(){return{deleteContainer:this.props.deleteAction?this.props.deleteAction:null}}},{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"toggleFolds",value:function(){var e=this.state.individualFoldStates,t=e.length>0&&e.some((function(e){return!0!==e}));this.setState({individualFoldStates:e.map((function(){return t}))})}},{key:"toggleFold",value:function(e){this.setState((0,l.default)(this.state,{individualFoldStates:{$toggle:[e]}}))}},{key:"calculateFolds",value:function(){var e=0;if(i.default.Children.forEach(this.props.children,(function(t){(t&&t.type&&t.type.plotly_editor_traits||{}).foldable&&e++})),this.state.individualFoldStates.length!==e){var t=new Array(e).fill(!1);this.setState({individualFoldStates:this.props.addAction?t.map((function(t,n){return n!==e-1})):t})}}},{key:"componentDidUpdate",value:function(){this.calculateFolds()}},{key:"componentDidMount",value:function(){this.calculateFolds()}},{key:"render",value:function(){var e=this,t=this.state,n=t.individualFoldStates,a=t.hasError,o=this.props.canReorder;if(a)return i.default.createElement(E,null);var l=i.default.Children.map(this.props.children,(function(t,r){return(t&&t.type&&t.type.plotly_editor_traits||{}).foldable?(0,i.cloneElement)(t,{key:r,folded:n[r]||!1,toggleFold:function(){return e.toggleFold(r)},canMoveUp:o&&n.length>1&&r>0,canMoveDown:o&&n.length>1&&r!==n.length-1}):t}));return i.default.createElement("div",{className:"panel".concat(this.props.noPadding?" panel--no-padding":"")},i.default.createElement(r.default,{addAction:this.props.addAction,allowCollapse:this.props.showExpandCollapse&&n.length>1,toggleFolds:this.toggleFolds,hasOpen:n.some((function(e){return!1===e}))}),i.default.createElement("div",{className:(0,s.bem)("panel","content")},l))}}]),n}(i.Component);t.Panel=O,O.propTypes={addAction:o.default.object,children:o.default.node,deleteAction:o.default.func,noPadding:o.default.bool,showExpandCollapse:o.default.bool,canReorder:o.default.bool},O.defaultProps={showExpandCollapse:!0},O.contextTypes={localize:o.default.func},O.childContextTypes={deleteContainer:o.default.func};var M=function(e){y(n,e);var t=b(n);function n(){return h(this,n),t.apply(this,arguments)}return n}(O);M.plotly_editor_traits={no_visibility_forcing:!0};var S=M;t.default=S},e874:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=l(n("ab5b")),a=o(n("d7bc"));function o(e){return e&&e.__esModule?e:{default:e}}function i(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return i=function(){return e},e}function l(e){if(e&&e.__esModule)return e;if(null===e||"object"!==s(e)&&"function"!==typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function s(e){return 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},s(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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 f(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),e}function p(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&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=y();return function(){var n,r=g(e);if(t){var a=g(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){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}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var b=function(e){p(n,e);var t=h(n);function n(e){var r;return u(this,n),r=t.call(this,e),r.state={value:r.props.value},r.onChange=r.onChange.bind(m(r)),r}return f(n,[{key:"componentWillReceiveProps",value:function(e){e.value!==this.state.value&&this.setState({value:e.value})}},{key:"onChange",value:function(e){var t=e.target.value;this.setState({value:t}),this.props.onChange(t)}},{key:"render",value:function(){return r.default.createElement("span",null,r.default.createElement("textarea",{value:this.state.value,rows:this.props.visibleRows,cols:this.props.areaWidth,placeholder:this.props.placeholder,onChange:this.onChange,className:this.props.textareaClass}))}}]),n}(r.Component);t.default=b,b.propTypes={value:a.default.string.isRequired,onChange:a.default.func.isRequired,placeholder:a.default.string.isRequired,visibleRows:a.default.number,areaWidth:a.default.number,textareaClass:a.default.string},b.defaultProps={visibleRows:10,areaWidth:30}},e893:function(e,t,n){var r=n("5135"),a=n("56ef"),o=n("06cf"),i=n("9bf2");e.exports=function(e,t){for(var n=a(t),l=i.f,s=o.f,u=0;u<n.length;u++){var c=n[u];r(e,c)||l(e,c,s(t,c))}}},e8b5:function(e,t,n){var r=n("c6b6");e.exports=Array.isArray||function(e){return"Array"==r(e)}},e8b50:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=s(n("ab5b")),a=s(n("d7bc")),o=n("c85e"),i=n("e688"),l=s(n("76fe"));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e,t){var n=t.localize;return r.default.createElement(o.LayoutPanel,null,r.default.createElement(o.PlotlyFold,{name:n("Defaults")},r.default.createElement(o.ColorPicker,{label:n("Plot Background"),attr:"plot_bgcolor"}),r.default.createElement(o.ColorPicker,{label:n("Margin Color"),attr:"paper_bgcolor"}),r.default.createElement(o.PlotlySection,{name:n("Colorscales"),attr:"colorway"},r.default.createElement(o.ColorwayPicker,{label:n("Categorical"),attr:"colorway",disableCategorySwitch:!0,labelWidth:80}),r.default.createElement(o.ColorscalePicker,{label:n("Sequential"),attr:"colorscale.sequential",disableCategorySwitch:!0,labelWidth:80}),r.default.createElement(o.ColorscalePicker,{label:n("Diverging"),attr:"colorscale.diverging",initialCategory:"divergent",disableCategorySwitch:!0,labelWidth:80}),r.default.createElement(o.ColorscalePicker,{label:n("Negative Sequential"),attr:"colorscale.sequentialminus",disableCategorySwitch:!0,labelWidth:80})),r.default.createElement(o.PlotlySection,{name:n("Text"),attr:"font.family"},r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:"font.family",clearable:!1}),r.default.createElement(o.Numeric,{label:n("Base Font Size"),attr:"font.size",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Font Color"),attr:"font.color"}),r.default.createElement(o.Dropdown,{label:n("Number format"),attr:"separators",options:[{label:n("1,234.56"),value:".,"},{label:n("1 234.56"),value:", "},{label:n("1 234,56"),value:", "},{label:n("1.234,56"),value:",."}],clearable:!1}),r.default.createElement(o.Dropdown,{label:n("Uniform Text Mode"),attr:"uniformtext.mode",options:[{label:n("Off"),value:!1},{label:n("Show"),value:"show"},{label:n("Hide"),value:"hide"}],clearable:!1}),r.default.createElement(o.Numeric,{label:n("Uniform Text Size Minimum"),attr:"uniformtext.minsize",units:"px"}))),r.default.createElement(o.PlotlyFold,{name:n("Title")},r.default.createElement(o.TextEditor,{attr:"title.text"}),r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:"title.font.family",clearable:!1}),r.default.createElement(o.Numeric,{label:n("Font Size"),attr:"title.font.size",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Font Color"),attr:"title.font.color"}),r.default.createElement(o.Numeric,{label:n("Horizontal Position"),showSlider:!0,step:.02,attr:"title.x"})),r.default.createElement(o.PlotlyFold,{name:n("Modebar")},r.default.createElement(o.Radio,{label:n("Orientation"),attr:"modebar.orientation",options:[{label:n("Horizontal"),value:"h"},{label:n("Vertical"),value:"v"}]}),r.default.createElement(o.ColorPicker,{label:n("Icon Color"),attr:"modebar.color"}),r.default.createElement(o.ColorPicker,{label:n("Active Icon Color"),attr:"modebar.activecolor"}),r.default.createElement(o.ColorPicker,{label:n("Background Color"),attr:"modebar.bgcolor"})),r.default.createElement(o.PlotlyFold,{name:n("Size and Margins")},r.default.createElement(o.VisibilitySelect,{attr:"autosize",label:n("Size"),options:[{label:n("Auto"),value:!0},{label:n("Custom"),value:!1}],showOn:!1,defaultOpt:!0},r.default.createElement(o.Numeric,{label:n("Fixed Width"),attr:"width",units:"px"}),r.default.createElement(o.Numeric,{label:n("Fixed height"),attr:"height",units:"px"})),r.default.createElement(o.Numeric,{label:n("Top"),attr:"margin.t",units:"px"}),r.default.createElement(o.Numeric,{label:n("Bottom"),attr:"margin.b",units:"px"}),r.default.createElement(o.Numeric,{label:n("Left"),attr:"margin.l",units:"px"}),r.default.createElement(o.Numeric,{label:n("Right"),attr:"margin.r",units:"px"}),r.default.createElement(o.Numeric,{label:n("Padding"),attr:"margin.pad",units:"px"})),r.default.createElement(o.PlotlyFold,{name:n("Interactions")},r.default.createElement(o.PlotlySection,{name:n("Drag"),attr:"dragmode"},r.default.createElement(o.Dropdown,{label:n("Mode"),attr:"dragmode",options:[{label:n("Zoom"),value:"zoom"},{label:n("Select"),value:"select"},{label:n("Pan"),value:"pan"},{label:n("Lasso"),value:"lasso"},{label:n("Orbit"),value:"orbit"},{label:n("Turntable"),value:"turntable"}],clearable:!1}),r.default.createElement(o.Dropdown,{label:n("Select Direction"),attr:"selectdirection",options:[{label:n("Any"),value:"any"},{label:n("Horizontal"),value:"h"},{label:n("Vertical"),value:"v"},{label:n("Diagonal"),value:"d"}],clearable:!1})),r.default.createElement(o.PlotlySection,{name:n("Click"),attr:"clickmode"},r.default.createElement(o.Flaglist,{label:n("Mode"),attr:"clickmode",options:[{label:n("Click Event"),value:"event"},{label:n("Select Data Point"),value:"select"}]})),r.default.createElement(o.PlotlySection,{name:n("Hover")},r.default.createElement(o.HovermodeDropdown,{label:n("Mode"),attr:"hovermode"},r.default.createElement(o.Dropdown,{label:n("Text Alignment"),attr:"hoverlabel.align",options:[{label:n("Auto"),value:"auto"},{label:n("Left"),value:"left"},{label:n("Right"),value:"right"}],clearable:!1}),r.default.createElement(i.HoverColor,{label:n("Background Color"),attr:"hoverlabel.bgcolor",defaultColor:"#FFF",handleEmpty:!0}),r.default.createElement(i.HoverColor,{label:n("Border Color"),attr:"hoverlabel.bordercolor",defaultColor:"#000",handleEmpty:!0}),r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:"hoverlabel.font.family",clearable:!0}),r.default.createElement(o.Numeric,{label:n("Font Size"),attr:"hoverlabel.font.size"}),r.default.createElement(i.HoverColor,{label:n("Font Color"),attr:"hoverlabel.font.color",defaultColor:"#000",handleEmpty:!0})))),r.default.createElement(o.PlotlyFold,{name:n("Meta Text")},r.default.createElement(l.default,{label:n("Custom Data"),attr:"meta"}),r.default.createElement(o.Info,null,r.default.createElement("p",null,n("You can refer to the items in this column in any text fields of the editor like so: ")),r.default.createElement("p",null,n("Ex: "),r.default.createElement("span",{style:{letterSpacing:"1px",fontStyle:"italic",userSelect:"text"}},n("My custom title %{meta[1]}"))))))};u.contextTypes={localize:a.default.func};var c=u;t.default=c},e944:function(e,t,n){"use strict";var r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};t["a"]=r},e957:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=n("e419");function a(e,t,n){var a,o,i=[];if(!e)return r.baseClass;if(Array.isArray(e))throw new Error("bem error: Argument `block` cannot be an array");Array.isArray(t)&&(n=t,t=null);var l=e;if(t&&t.length&&(l+="__"+t),i.push(l),n)for(a=0;a<n.length;a++)o=n[a],o&&o.length&&i.push(l+"--"+o);return i.join(" ")}},e95a:function(e,t,n){var r=n("b622"),a=n("3f8c"),o=r("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(a.Array===e||i[o]===e)}},e97a:function(e,t,n){"use strict";var r=n("4b96");function a(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:r,getScrollParent:function(e){if(!e)return null;var t=e.ownerDocument;while(e&&e!==t.body){if(a(e,"overflow")||a(e,"overflowY")||a(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},e9b4:function(e,t,n){"use strict";e.exports=function(e){for(var t,n=e.length,r=0;r<n;r++)if(t=e.charCodeAt(r),(t<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},e9e9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M29.313 0H2.688A2.668 2.668 0 0 0 0 2.688v26.625c0 1.5 1.188 2.688 2.688 2.688h26.625c1.5 0 2.688-1.188 2.688-2.688V2.688c0-1.5-1.188-2.688-2.688-2.688zM18.125 2.938c.125.125.25.125.438.125h.375c0 .125 0 .125-.125.25h-.125l-.125.125s0 .188-.188.188h.313v-.313-.125c-.125-.125-.125-.125-.313 0-.125.125-.125.125-.25 0 0 0 0-.125-.125-.125 0-.125-.125-.125-.125-.125l-.25-.125-.188-.125h-.125H18c.125.125.125.125.125.25zm-.812.125v.375l-.125.188c-.125.125-.125 0-.125-.188v-.25h-.25-.125s-.125.125 0 .125.125.125.125.313h-1.376v-.188h.188c.25 0 .375 0 .5-.125.125-.375-.125-.375-.25-.375s-.125 0-.25-.125l-.188-.125h1.75c0 .125.125.25.125.375zm-4.375 0c.125 0 .125.125.25.125 0 0 0 .25-.125.125s-.375-.125-.5-.125c-.188-.125-.313-.125-.438-.125h-.688c-.125 0-.125.125-.25.125v-.25h-.125s-.125 0-.125.125c-.125-.125-.25-.125-.375-.125h-.938s0 .125-.188.125c0 .125-.125.25-.25 0h-.625c-.188 0-.438-.125-.563-.25-.25 0-.563.125-.813.125-.125 0-.25-.125-.5-.125h-.813-.125c-.125 0-.125-.125-.313-.125h6c.313.125.438.125.563.25.125 0 .375 0 .563-.125v-.125h.125zM12 8c-.125 0-.125-.125-.125-.25s-.125-.125-.25-.125h-.188v-.188l.188.188c.125 0 .25 0 .375.125V8zM2.688 2.688h2.75s0 .125-.125.125-.25.125-.375.125-.25.125-.563.125H4s-.125.125-.125.25.125.313.25.313.25 0 .438.125c.125 0 .25.125.25.25.125 0 .125.125 0 .125-.25-.125-.438-.125-.563-.25l-.125-.125L4 3.876c-.25 0-.375.125-.563.125 0 .125.188.25.313.25.125.125.25.125.375.125h.563s0 .313-.313.313c-.125 0-.375 0-.5.125 0 .125-.125.125-.125.25.125.125.25.375.25.563 0 .125.125 0 .25 0 0 0 .125 0 .125-.188 0-.125.313-.125.188.188 0 .125 0 .25.125.25 0-.125.125-.25.125-.25l.25.25s.125-.125.125 0 0 0-.125.125-.375.125-.5.25h-.188c-.125 0-.125.125-.25.125s-.125.313 0 .313c.25 0 .563-.125.813-.313.125 0 .125.188.375 0l.125-.125c.188-.125.313-.125.313-.25.125.125.125.125.25.125h.125c.125 0 .125-.125.25-.125v-.125h-.25c.125 0 .125-.125.25-.25v-.188c0-.125.188-.125.188-.125.125 0 .125 0 0 .313-.188.25.125-.188.25-.188h.375c0-.125 0-.125.125-.125 0-.125 0-.125.125-.25.188.125.313.125.438.125s.25 0 .375.125c.125 0 .688.125.813.125.25 0 .375.188.375.438s.188.25.188.25c.125 0 .25.125.375.25 0 .188 0 .438.125.563s.25.125.438.25v-.125c0-.125 0-.125-.188-.125v-.125c0-.125.188-.125.188 0 0-.125.125 0 .25.125s.125.25.125.25 0 .438.125.438.25.125.375.25c0 0 .188.125.188.25s.125.25.125.438v.75c0 .313.125.563.25.813 0 .25 0 .563.125.688s.25.125.563.125c.125 0 .25.125.375.375 0 .438.125.563.25.813.125 0 .313.125.125.25-.125.188-.125.313 0 .313.188 0 .188-.125.313.125.125.125.125.25.25.375 0 .125.125.125.125.125.125 0 .125.313.438.313v-.188c-.188-.125-.188-.125-.313-.25 0-.125-.125-.25-.125-.25 0-.125-.125-.25-.125-.25h-.125c-.125-.125-.125-.313-.25-.438l-.188-.125s-.125-.125 0-.25c.188-.125.188.125.313.25.125.25.375.563.5.688.125.25.313.375.563.625.125.188.25.188.25.313s.125.25.125.25c0 .125 0 .25.125.375a.77.77 0 0 1 .688.438c0 .125.125.375.25.375h.438s.125.125.25 0c0-.125.125-.125.25-.125s.25.125.25.25c.188.125.313.313.438.313s.25.125.25.125c.125 0 .125 0 .25.125.188.125.313.25.188.375 0 .125.125.313.25.313.125.125.25.125.25.25.125 0 .25.125.25.125s.125.125.313.125l.125-.125v-.125h.25c.125.125.125.25.125.375.125.125.125.438.125.563s0 .25-.125.375-.25.125-.25.25c-.125.188-.25.313-.25.438v.5c-.188.125-.188.313-.188.563s.438.25.438.375.25.688.25.813c.125.25.125.375.125.688.125.25.313.375.563.375.125 0 .25.125.25.25.125.188.25.188.25.313s.125.25 0 .375c0 0 0 .688-.125.938v.813c-.125.125-.25.125-.125.25s.375.25.375.25c0 .125.188.313 0 .563 0 .125-.125.25-.125.375-.125.125-.125.313-.125.438s-.125.125-.125.25.125.125.125.25-.125.25-.125.438c0 .125 0 .25.125.375 0 .125-.125.25-.125.375-.125.188-.125.313-.125.313 0 .125.125.125.125.25 0 0 0 .125-.125.25H2.696zm26.625 26.625h-6.625v-.125-.25h-.313v-.125l.188-.125.125-.125c.125-.188.125-.313.25-.313 0 0 .125-.125.125-.25s0 0-.125 0-.125-.125-.125-.25c.125 0 .25 0 .375.125h.125v-.25-.188-.125h.688c.125 0 .125-.125.125-.25l.125-.125s.125-.125 0-.25h-.25l-.125-.125v-.188c0-.125 0-.25.125-.375 0 .25 0 .375.25.563.125.125.438 0 .563-.188l.125-.125c.125-.125.25-.25.25-.375v-.25s0-.188.125-.188l.125-.125c0-.125.188-.125.313-.25v-.25-.25l.125-.188.25-.125c.125 0 .125-.125.25-.125.188 0 .313 0 .438-.125 0-.125.125-.25.125-.375l.125-.188.125-.125c.125-.125.125-.25.125-.25v-.25c0-.125 0-.25.125-.25v-.313c0-.125 0-.25.188-.25l.625-.813c.125-.125.125-.25.313-.375l.125-.25c0-.188.125-.313.125-.438s0-.125-.125-.25c0-.125-.125-.125-.313-.25-.125 0-.25 0-.25-.188 0 0-.125 0-.125-.125l-.125-.125c-.125-.125-.25-.125-.25-.125h-.438l-.375-.25c-.125-.125-.25-.125-.438-.125-.125 0-.125-.125-.25.125 0 .125-.125.125-.125.25h-.25-.125l.125-.125v-.25-.313c0 .188-.125.188-.313.313-.25 0-.25-.125-.125-.125s.313-.188.438-.188.125-.125.125-.125c0-.125 0-.125-.125-.25s-.125-.25-.313-.375l-.25-.438c-.125-.125-.25-.25-.5-.25-.125 0-.313.25-.438 0v-.125l-.25-.25h-.25s-.313 0-.125-.188v-.125-.25-.125c0 .125-.188.125-.313.25l-.25-.25h-.25s-.125 0-.125.125v.125s0-.125-.125-.125c-.188-.125-.313-.125-.438 0 0 0-.125 0-.125-.125s-.125-.125-.125-.25h-.125c-.125 0-.125.125-.125.25s-.188.25-.188.375v-.125-.25c0-.125.188-.25 0-.25h-.125l.125.375h-.125c-.125.125-.25.125-.25.25s-.125.313-.25.313h-.125c0-.188-.125-.188-.125-.188h-.313-.125l-.25.188c-.125.125-.25 0-.438 0 0-.188-.125-.188-.125-.313v-.125-.25-.438c0-.125 0-.125-.125-.25 0-.125-.125-.125-.25-.125s-.25.125-.25.125h-.313c-.125 0 0 0 0-.125v-.125-.25c0-.125 0-.125.188-.313.125-.125.125-.25.125-.375 0 0 0-.125-.125-.125h-.563a.269.269 0 0 0-.25.25v.125c0 .125 0 .313-.125.313-.188-.188-.313-.188-.313 0 0 .125 0 0-.25-.188h-.125c-.125-.125-.25-.25-.25-.375v-.125-.438-.25-.375s0-.125.125-.125l.125-.313c.125 0 .125-.125.25-.25h.438c.125 0 .25 0 .375.125h.25v-.125s.125-.125.313-.125c.125 0 .375-.125.5-.125 0 0 .125.25.25.25.125-.125.125-.25.125 0s.188.438.313.688c0 .125.125.25.25.25.125-.125.125-.125.125-.25v-.25c0-.188-.125-.313-.125-.438 0 0 0-.125-.125-.125v-.125c0-.125.125-.25.125-.25.125-.188.125-.188.25-.313s.125-.25.313-.25c.125-.125.375-.125.25-.25s-.125-.25-.125-.563c0-.125.125-.125.125 0s.25-.125.125-.25v-.125h.125v-.125c0-.125.125-.125.25-.125h.563v-.188c0-.125-.125-.125-.125-.25v-.125c0-.125.125-.25.25-.25h.25l.125-.125h.188s0 .375.125.375.25-.125.25-.125l.375-.125c.125 0 .313 0 .438-.125v-.313s0-.125-.125-.125c0 0-.188 0-.188.125h-.125c0-.125 0-.25-.125-.25l-.125.125-.125-.125c.125 0 .125-.125 0-.25h-.25s-.125.125-.313.125c-.125 0-.125 0-.25.125C22 7.99 22 7.865 22 7.865c0-.125 0-.125.125-.125s.438-.125.563-.125c.125 0 .25 0 .25.125v.375s.375-.125.25-.125 0 0 0-.125l.125-.125h.438l.125-.125c.125 0 .125.125 0 .25s-.125.25-.25.5c-.188.188 0 .188.125.188h.375c.125 0 .125 0 .25.125h.563v-.125l-.125-.313v-.5-.125h-.125v-.188c-.125 0-.125.188-.125 0 .125-.125.125-.125.125-.25s.125-.125.125-.25v-.125a.269.269 0 0 1-.25-.25c0-.188-.188-.188-.313-.313h-.5c0-.125 0-.125-.125-.25 0 0 0-.125-.188-.125l-.125-.125-.25-.438v-.125s-.125 0-.25.25l-.125.188h-.125c-.188 0-.313-.188-.438-.313v-.125l.125-.125c-.125-.125-.25-.125-.375-.125-.125-.125-.25-.125-.563-.25h-.625c-.125.125-.125.25-.125.25v.25h-.188v.125c.188.125.313.313.313.438s0 .125-.125.25c-.188.25-.313.25-.438.25h-.125c.125.125.125.125.125.313v.5h-.25c-.125 0-.125-.125-.125-.125v-.25l-.125.125v-.25-.188c0-.125-.188-.25-.313-.25 0-.125-.125-.125-.25-.125h-.5c-.188 0-.313-.125-.438-.25h-.25-.25c0-.125 0-.125-.188-.313-.125 0 0-.125-.125-.25v-.25l.313-.125.25-.125c0-.125.125-.313.25-.313.25 0 .438.188.438.188v-.188-.25c0 .125.25.125.125.25-.125.188 0 .188 0 .188.125 0 .25-.188.25-.188s.25-.125.25 0c0 .188 0 .313.125.313s.313-.125.125-.313c-.125-.125-.25-.125-.25-.25l.25-.125h-.125-.125-.125s0-.125.125-.125h.563c.125 0 .125 0 .25-.125l.125-.125c0-.188-.125-.188-.125-.188l.125-.125h.438v-.125c.125 0 0 .25.125.125h.25c0 .125 0 .313-.125.313h-.125s-.125.125 0 .125h.25c0-.125.125-.125.125-.313h.125s.25.188.125.188l-.125.125c-.125 0-.125.125-.125.125v.125h-.25-.125-.125v.375s.125 0 .25-.125h.5c.125 0 .313.125.313.125.125 0 .125.188.25.188H22c.125 0 .125.125.125.125h.25v-.125h.188c.125.125.125.125.25.125v-.125c0-.188 0-.188-.125-.313s-.313-.125-.438-.25v-.125c.125 0 .313 0 .438.125s.25.125.25.125l.125-.125h.125l.438-.25h-.188c-.125 0-.25 0-.25-.125-.125-.188-.25-.188-.375-.313 0 0-.25.125-.25 0v-.25c0-.125 0-.125-.188-.25l-.625-.125h7.563zM19.875 8.375c0-.125-.125.313 0 .438 0 .125 0 .125-.125.25h-.125s-.188-.125-.188-.25v-.125c0-.125 0-.313-.125-.313h-.125c-.125 0-.125.188-.25.313v.625c-.125 0-.25-.125-.25-.375v-.125-.438c.125-.125.25-.125.375-.25.125 0 .375.125.375.125h.438c.125.125.25.313.25.438-.125 0-.25-.125-.25-.313zm.375.438c.313-.125.438-.125.563-.125.125.125-.125.125-.125.25-.125 0-.125.125-.313.125l-.25.125H20v.125c-.125.125-.25.125-.25.125l.25-.125v-.125zM19.063 8h-.375s-.125 0-.125-.125c-.188 0-.313 0-.313.125H18v-.125l.25-.125c.125-.125.313-.313.563-.313.125.188.25.313.375.313 0 0 0 .25-.125.25z"}))};t.default=u},e9ef:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M3,1C1.89,1 1,1.89 1,3V14C1,15.11 1.89,16 3,16H5V14H3V3H14V5H16V3C16,1.89 15.11,1 14,1H3M9,7C7.89,7 7,7.89 7,9V11H9V9H11V7H9M13,7V9H14V10H16V7H13M18,7V9H20V20H9V18H7V20C7,21.11 7.89,22 9,22H20C21.11,22 22,21.11 22,20V9C22,7.89 21.11,7 20,7H18M14,12V14H12V16H14C15.11,16 16,15.11 16,14V12H14M7,13V16H10V14H9V13H7Z"}))};e.exports=l},eac5:function(e,t){var n=Object.prototype;function r(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||n;return e===r}e.exports=r},eadc:function(e,t,n){"use strict";(function(t){var r=n("320c");function a(){return a=r||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},a.apply(this,arguments)}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}function i(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var u=n("ac05"),c=n("d134"),f=n("8e5d5"),p=n("21db"),d=n("2124"),h=n("d496f"),v=n("b9b6f"),m=n("1dd9"),y=n("9bbe"),g=n("dec3"),b=n("ab5b"),x=n("a6b3"),_=n("e97a"),w=n("0984"),k=n("6152"),T=n("ac96"),E=n("0320"),O=n("0de2"),M=n("7301"),S=n("d8db"),C=n("38bc"),A=n("8164"),P=w.isBrowser("IE"),L=!P,D={edit:h,composite:f,drag:d,cut:null,render:null},j=!1,I=function(e){function t(){return e.apply(this,arguments)||this}s(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(b.Component),R=function(e){function n(t){var n;return n=e.call(this,t)||this,l(i(n),"_blockSelectEvents",void 0),l(i(n),"_clipboard",void 0),l(i(n),"_handler",void 0),l(i(n),"_dragCount",void 0),l(i(n),"_internalDrag",void 0),l(i(n),"_editorKey",void 0),l(i(n),"_placeholderAccessibilityID",void 0),l(i(n),"_latestEditorState",void 0),l(i(n),"_latestCommittedEditorState",void 0),l(i(n),"_pendingStateFromBeforeInput",void 0),l(i(n),"_onBeforeInput",void 0),l(i(n),"_onBlur",void 0),l(i(n),"_onCharacterData",void 0),l(i(n),"_onCompositionEnd",void 0),l(i(n),"_onCompositionStart",void 0),l(i(n),"_onCopy",void 0),l(i(n),"_onCut",void 0),l(i(n),"_onDragEnd",void 0),l(i(n),"_onDragOver",void 0),l(i(n),"_onDragStart",void 0),l(i(n),"_onDrop",void 0),l(i(n),"_onInput",void 0),l(i(n),"_onFocus",void 0),l(i(n),"_onKeyDown",void 0),l(i(n),"_onKeyPress",void 0),l(i(n),"_onKeyUp",void 0),l(i(n),"_onMouseDown",void 0),l(i(n),"_onMouseUp",void 0),l(i(n),"_onPaste",void 0),l(i(n),"_onSelect",void 0),l(i(n),"editor",void 0),l(i(n),"editorContainer",void 0),l(i(n),"focus",void 0),l(i(n),"blur",void 0),l(i(n),"setMode",void 0),l(i(n),"exitCurrentMode",void 0),l(i(n),"restoreEditorDOM",void 0),l(i(n),"setClipboard",void 0),l(i(n),"getClipboard",void 0),l(i(n),"getEditorKey",void 0),l(i(n),"update",void 0),l(i(n),"onDragEnter",void 0),l(i(n),"onDragLeave",void 0),l(i(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),l(i(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),a=n.editor;if(a){var o=_.getScrollParent(a),i=e||O(o),l=i.x,s=i.y;C(a)||S(!1),a.focus(),o===window?window.scrollTo(l,s):x.setTop(o,s),r||n.update(g.forceSelection(t,t.getSelection()))}})),l(i(n),"blur",(function(){var e=n.editor;e&&(C(e)||S(!1),e.blur())})),l(i(n),"setMode",(function(e){var t=n.props,r=t.onPaste,a=t.onCut,i=t.onCopy,l=o({},D.edit);r&&(l.onPaste=r),a&&(l.onCut=a),i&&(l.onCopy=i);var s=o({},D,{edit:l});n._handler=s[e]})),l(i(n),"exitCurrentMode",(function(){n.setMode("edit")})),l(i(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),l(i(n),"setClipboard",(function(e){n._clipboard=e})),l(i(n),"getClipboard",(function(){return n._clipboard})),l(i(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),l(i(n),"onDragEnter",(function(){n._dragCount++})),l(i(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||T(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},n.state={contentsKey:0},n}s(n,e);var r=n.prototype;return r._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(v?v((function(){return r(t,n)})):r(t,n))}}},r._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},r._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:A(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return b.createElement(m,e)}return null},r._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},r.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,i=e.customStyleFn,l=e.customStyleMap,s=e.editorState,u=e.preventScroll,f=e.readOnly,d=e.textAlignment,h=e.textDirectionality,v=k({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===d,"DraftEditor/alignRight":"right"===d,"DraftEditor/alignCenter":"center"===d}),m={outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},y=this.props.role||"textbox",g="combobox"===y?!!this.props.ariaExpanded:null,x={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:o({},c,l),customStyleFn:i,editorKey:this._editorKey,editorState:s,preventScroll:u,textDirectionality:h};return b.createElement("div",{className:v},this._renderPlaceholder(),b.createElement("div",{className:k("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},b.createElement("div",{"aria-activedescendant":f?null:this.props.ariaActiveDescendantID,"aria-autocomplete":f?null:this.props.ariaAutoComplete,"aria-controls":f?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":f?null:g,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":f?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:k({notranslate:!f,"public/DraftEditor/content":!0}),contentEditable:!f,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:f?null:y,spellCheck:L&&this.props.spellCheck,style:m,suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},b.createElement(I,{editor:this,editorState:s}),b.createElement(p,a({},x,{key:"contents"+this.state.contentsKey})))))},r.componentDidMount=function(){this._blockSelectEvents=!1,!j&&M("draft_ods_enabled")&&(j=!0,y.initODS()),this.setMode("edit"),P&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):t.execCommand("AutoUrlDetect",!1,!1))},r.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},n}(b.Component);l(R,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:u,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:E,readOnly:!1,spellCheck:!1,stripPastedStyles:!1}),e.exports=R}).call(this,n("c8ba"))},eae8:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LineDashSelector=t.LineShapeSelector=void 0;var r=f(n("7515")),a=f(n("d7bc")),o=c(n("ab5b")),i=f(n("10b4")),l=n("4578"),s=n("e419");function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==v(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(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 d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return v="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},v(e)}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 g(e,t,n){return t&&y(e.prototype,t),n&&y(e,n),e}function b(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&&x(e,t)}function x(e,t){return x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},x(e,t)}function _(e){var t=T();return function(){var n,r=E(e);if(t){var a=E(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==v(t)&&"function"!==typeof t?k(e):t}function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(){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}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function O(){return O=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},O.apply(this,arguments)}var M=[{value:"solid",strokeDasharray:""},{value:"dot",strokeDasharray:"3px, 3px"},{value:"dash",strokeDasharray:"9px, 9px"},{value:"longdash",strokeDasharray:"15px, 15px"},{value:"dashdot",strokeDasharray:"9px, 3px, 3px, 3px"},{value:"longdashdot",strokeDasharray:"15px, 6px, 3px, 6px"}],S=[{d:"M2,14L14,2",value:"linear"},{d:"M2,14C4,4 16,16 18,2",value:"spline"},{d:"M2,14H14V2",value:"hv"},{d:"M2,14V2H14",value:"vh"},{d:"M2,14H8V2H14",value:"hvh"},{d:"M2,14V8H14V2",value:"vhv"}],C=function(e,t){return e.map((function(e){var n=e.value,r=e.strokeDasharray,a=e.d,i=void 0===a?"M0,8h100":a;return{label:o.default.createElement("svg",{width:"100",height:"16"},o.default.createElement("g",null,o.default.createElement("path",{d:i,style:{fill:"none",strokeWidth:"4px",stroke:t&&t!==s.MULTI_VALUED?t:s.COLORS.mutedBlue,strokeDasharray:r}}))),value:n}}))},A=function(e){return o.default.createElement(L,O({},e,{computeOptions:C.bind(null,S)}))};t.LineShapeSelector=A;var P=function(e){return o.default.createElement(L,O({},e,{computeOptions:function(e){return C(M,e).concat([{label:"",value:null}])}}))};t.LineDashSelector=P;var L=function(e){b(n,e);var t=_(n);function n(e,r){var a;return m(this,n),a=t.call(this,e,r),a.setLocals(e,r),a}return g(n,[{key:"componentWillReceiveProps",value:function(e,t){this.setLocals(e,t)}},{key:"setLocals",value:function(e,t){var n=t.fullContainer,r=(0,i.default)(n,"line.color").get();this.options&&this.lineColor===r||(this.options=this.props.computeOptions(r),this.lineColor=r)}},{key:"render",value:function(){return o.default.createElement(r.default,O({},this.props,{options:this.options,backgroundDark:(0,l.tooLight)(this.lineColor)}))}}]),n}(o.Component);L.propTypes=d({computeOptions:a.default.func},r.default.propTypes),L.defaultProps={clearable:!1},L.contextTypes={fullContainer:a.default.object}},ebc4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 10.78 10.78"},e),o.default.createElement("path",{class:"cls-1",d:"M5.39 0a5.39 5.39 0 0 0 0 10.78.92.92 0 0 0 .9-.9.77.77 0 0 0-.24-.6 1.07 1.07 0 0 1-.24-.6.92.92 0 0 1 .9-.9h1.07a3 3 0 0 0 3-3C10.78 2.16 8.38 0 5.39 0zM2.1 5.39a.92.92 0 0 1-.9-.9.92.92 0 0 1 .9-.9.9.9 0 0 1 0 1.8zM3.89 3A.92.92 0 0 1 3 2.1a.92.92 0 0 1 .9-.9.92.92 0 0 1 .9.9.92.92 0 0 1-.91.9zm3 0A.92.92 0 0 1 6 2.1a.9.9 0 1 1 1.79 0 .92.92 0 0 1-.9.9zm1.79 2.4a.92.92 0 0 1-.9-.9.9.9 0 1 1 1.8 0 .92.92 0 0 1-.9.89z"}))};t.default=u},ec69:function(e,t,n){var r=n("6fcd"),a=n("03dd"),o=n("30c9");function i(e){return o(e)?r(e):a(e)}e.exports=i},ec8c:function(e,t){function n(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}e.exports=n},ecfb:function(e,t,n){},edd5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;var r=n("ab5b"),a=b(r),o=n("d7bc"),i=b(o),l=n("fc55"),s=b(l),u=n("dd61"),c=b(u),f=n("4245"),p=b(f),d=n("c0c1"),h=g(d),v=n("4ccf"),m=n("c5b8"),y=b(m);function g(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 b(e){return e&&e.__esModule?e:{default:e}}var x=t.Circle=function(e){var t=e.width,n=e.onChange,r=e.onSwatchHover,o=e.colors,i=e.hex,l=e.circleSize,u=e.styles,f=void 0===u?{}:u,d=e.circleSpacing,h=e.className,v=void 0===h?"":h,m=(0,s.default)((0,p.default)({default:{card:{width:t,display:"flex",flexWrap:"wrap",marginRight:-d,marginBottom:-d}}},f)),g=function(e,t){return n({hex:e,source:"hex"},t)};return a.default.createElement("div",{style:m.card,className:"circle-picker "+v},(0,c.default)(o,(function(e){return a.default.createElement(y.default,{key:e,color:e,onClick:g,onSwatchHover:r,active:i===e.toLowerCase(),circleSize:l,circleSpacing:d})})))};x.propTypes={width:i.default.oneOfType([i.default.string,i.default.number]),circleSize:i.default.number,circleSpacing:i.default.number,styles:i.default.object},x.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[h.red["500"],h.pink["500"],h.purple["500"],h.deepPurple["500"],h.indigo["500"],h.blue["500"],h.lightBlue["500"],h.cyan["500"],h.teal["500"],h.green["500"],h.lightGreen["500"],h.lime["500"],h.yellow["500"],h.amber["500"],h.orange["500"],h.deepOrange["500"],h.brown["500"],h.blueGrey["500"]],styles:{}},t.default=(0,v.ColorWrap)(x)},edfa:function(e,t){function n(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}e.exports=n},ef00:function(e,t,n){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},ef5d:function(e,t){function n(e){return function(t){return null==t?void 0:t[e]}}e.exports=n},efb6:function(e,t,n){var r=n("5e2e");function a(){this.__data__=new r,this.size=0}e.exports=a},eff1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=c(n("14e0")),a=s(n("f51b")),o=s(n("88e7")),i=s(n("d7bc")),l=c(n("ab5b"));function s(e){return e&&e.__esModule?e:{default:e}}function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return f="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},f(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=240,k=function(e){v(n,e);var t=y(n);function n(e){var r;return p(this,n),r=t.call(this,e),r.state={selectedColorscaleType:e.initialCategory||"sequential",showColorscalePicker:!1},r.onChange=r.onChange.bind(b(r)),r.onClick=r.onClick.bind(b(r)),r}return h(n,[{key:"onClick",value:function(){this.setState({showColorscalePicker:!this.state.showColorscalePicker})}},{key:"onChange",value:function(e){this.setState({selectedColorscaleType:e})}},{key:"render",value:function(){var e=this.props,t=e.onColorscaleChange,n=e.selected,i=e.disableCategorySwitch,s=this.state,u=s.selectedColorscaleType,c=s.showColorscalePicker,f=r.COLOR_PICKER_CONSTANTS.COLORSCALE_DESCRIPTIONS[u],p=r.COLOR_PICKER_CONSTANTS.COLORSCALE_TYPES.filter((function(e){return"custom"!==e})).map((function(e){return{label:e+" scales",value:e}})),d=this.context.localize;return l.default.createElement("div",{className:"customPickerContainer"},l.default.createElement("div",{className:"customPickerContainer__clickable"},l.default.createElement(r.Colorscale,{colorscale:n,onClick:this.onClick})),c?l.default.createElement("div",{className:"customPickerContainer__expanded-content"},i?null:l.default.createElement(a.default,{options:p,value:u,onChange:this.onChange,clearable:!1,searchable:!1,placeholder:d("Select a Colorscale Type"),className:"customPickerContainer__category-dropdown"}),f?l.default.createElement("div",{className:"customPickerContainer__palettes"},l.default.createElement(r.default,{onChange:t,colorscale:n,width:w,colorscaleType:this.state.selectedColorscaleType,onColorscaleTypeChange:this.onColorscaleTypeChange,disableSwatchControls:!0,scaleLength:7}),l.default.createElement(o.default,{className:"customPickerContainer__info"},f)):null):null)}}]),n}(l.Component);k.propTypes={onColorscaleChange:i.default.func,selected:i.default.array,label:i.default.string,initialCategory:i.default.string,disableCategorySwitch:i.default.bool},k.contextTypes={localize:i.default.func};var T=k;t.default=T},effd:function(e,t,n){"use strict";var r=n("1b23");function a(e){return!(!e||!e.ownerDocument)&&(r(e)&&"A"===e.nodeName)}e.exports=a},f05f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M26 5.625l-3.875 4.5A8.43 8.43 0 0 1 24.5 16a8.93 8.93 0 0 1-.188 1.813L30 19.501c.25-1.125.375-2.313.375-3.5A14.49 14.49 0 0 0 26 5.626zM12 8.5a8.622 8.622 0 0 1 4-1c1.75 0 3.313.5 4.688 1.438l3.813-4.563c-2.375-1.75-5.313-2.75-8.5-2.75-2.625 0-5.063.688-7.188 1.875zm11.625 11.125c-1.25 2.625-3.813 4.563-7 4.813v5.938a14.51 14.51 0 0 0 12.688-9.063zm-8.875 4.813c-4.188-.563-7.313-4.125-7.313-8.438 0-2.563 1.188-4.875 2.938-6.438l-3.188-5C3.749 7.25 1.499 11.375 1.499 16c0 7.563 5.875 13.75 13.25 14.375z"}))};t.default=u},f069:function(e,t,n){"use strict";var r=n("1c0b"),a=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new a(e)}},f09f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompactFields=void 0;var r=n("ab5b"),a=s(r),o=n("fc55"),i=s(o),l=n("4ccf");function s(e){return e&&e.__esModule?e:{default:e}}var u=t.CompactFields=function(e){var t=e.hex,n=e.rgb,r=e.onChange,o=(0,i.default)({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:t},HEXwrap:{flex:"6",position:"relative"},HEXinput:{width:"80%",padding:"0px",paddingLeft:"20%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},HEXlabel:{display:"none"},RGBwrap:{flex:"3",position:"relative"},RGBinput:{width:"70%",padding:"0px",paddingLeft:"30%",border:"none",outline:"none",background:"none",fontSize:"12px",color:"#333",height:"16px"},RGBlabel:{position:"absolute",top:"3px",left:"0px",lineHeight:"16px",textTransform:"uppercase",fontSize:"12px",color:"#999"}}}),s=function(e,t){e.r||e.g||e.b?r({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},t):r({hex:e.hex,source:"hex"},t)};return a.default.createElement("div",{style:o.fields,className:"flexbox-fix"},a.default.createElement("div",{style:o.active}),a.default.createElement(l.EditableInput,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"hex",value:t,onChange:s}),a.default.createElement(l.EditableInput,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),a.default.createElement(l.EditableInput,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),a.default.createElement(l.EditableInput,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}))};t.default=u},f0f7:function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=a,t.mergeChildMappings=o,t.getInitialChildMapping=l,t.getNextChildMapping=s;var r=n("ab5b");function a(e,t){var n=function(e){return t&&(0,r.isValidElement)(e)?t(e):e},a=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){a[e.key]=n(e)})),a}function o(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,a=Object.create(null),o=[];for(var i in e)i in t?o.length&&(a[i]=o,o=[]):o.push(i);var l={};for(var s in t){if(a[s])for(r=0;r<a[s].length;r++){var u=a[s][r];l[a[s][r]]=n(u)}l[s]=n(s)}for(r=0;r<o.length;r++)l[o[r]]=n(o[r]);return l}function i(e,t,n){return null!=n[t]?n[t]:e.props[t]}function l(e,t){return a(e.children,(function(n){return(0,r.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:i(n,"appear",e),enter:i(n,"enter",e),exit:i(n,"exit",e)})}))}function s(e,t,n){var l=a(e.children),s=o(t,l);return Object.keys(s).forEach((function(a){var o=s[a];if((0,r.isValidElement)(o)){var u=a in t,c=a in l,f=t[a],p=(0,r.isValidElement)(f)&&!f.props.in;!c||u&&!p?c||!u||p?c&&u&&(0,r.isValidElement)(f)&&(s[a]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:f.props.in,exit:i(o,"exit",e),enter:i(o,"enter",e)})):s[a]=(0,r.cloneElement)(o,{in:!1}):s[a]=(0,r.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:i(o,"exit",e),enter:i(o,"enter",e)})}})),s}},f183:function(e,t,n){var r=n("d012"),a=n("861d"),o=n("5135"),i=n("9bf2").f,l=n("90e3"),s=n("bb2f"),u=l("meta"),c=0,f=Object.isExtensible||function(){return!0},p=function(e){i(e,u,{value:{objectID:"O"+ ++c,weakData:{}}})},d=function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,u)){if(!f(e))return"F";if(!t)return"E";p(e)}return e[u].objectID},h=function(e,t){if(!o(e,u)){if(!f(e))return!0;if(!t)return!1;p(e)}return e[u].weakData},v=function(e){return s&&m.REQUIRED&&f(e)&&!o(e,u)&&p(e),e},m=e.exports={REQUIRED:!1,fastKey:d,getWeakData:h,onFreeze:v};r[u]=!0},f1df:function(e,t,n){"use strict";var r=n("7f23"),a=n("7301"),o=a("draft_tree_data_support");function i(e,t,n){var a=e.getSelection(),i=e.getCurrentContent(),l=a,s=a.getAnchorKey(),u=a.getFocusKey(),c=i.getBlockForKey(s);if(o&&"forward"===n&&s!==u)return i;if(a.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return i;if(o){var f=a.getAnchorOffset()===i.getBlockForKey(s).getLength();if(f){var p=i.getBlockForKey(c.nextSibling);if(!p||0===p.getLength())return i}}}else if(e.isSelectionAtStartOfContent())return i;if(l=t(e),l===a)return i}return r.removeRange(i,l,n)}e.exports=i},f26d:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4C10,2.9 10.9,2 12,2C13.1,2 14,2.9 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21C14,22.1 13.1,23 12,23C10.9,23 10,22.1 10,21"}))};e.exports=l},f2e4:function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var a=n("9452"),o=n("4da8"),i=n("24f7"),l=i.List,s=i.Map,u=i.OrderedSet,c=i.Record,f=i.Repeat,p=u(),d={key:"",type:"unstyled",text:"",characterList:l(),depth:0,data:s()},h=c(d),v=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=l(f(a.EMPTY,n.length))),e},m=function(e){function t(t){return e.call(this,v(t))||this}r(t,e);var n=t.prototype;return n.getKey=function(){return this.get("key")},n.getType=function(){return this.get("type")},n.getText=function(){return this.get("text")},n.getCharacterList=function(){return this.get("characterList")},n.getLength=function(){return this.getText().length},n.getDepth=function(){return this.get("depth")},n.getData=function(){return this.get("data")},n.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():p},n.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},n.findStyleRanges=function(e,t){o(this.getCharacterList(),y,e,t)},n.findEntityRanges=function(e,t){o(this.getCharacterList(),g,e,t)},t}(h);function y(e,t){return e.getStyle()===t.getStyle()}function g(e,t){return e.getEntity()===t.getEntity()}e.exports=m},f31a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 26.3 21.6"},e),o.default.createElement("path",{class:"st0",d:"M21.8 2.1h-20C.9 2.1.1 2.7 0 3.7v16.4c.1.9.9 1.6 1.8 1.5h19.9c.9.1 1.7-.6 1.8-1.5V3.7c0-1-.8-1.7-1.7-1.6zm1.1 18c0 .6-.5 1-1.1.9h-20c-.5.1-1-.3-1.1-.9V3.7c0-.6.5-1 1.1-.9h19.9c.5-.1 1 .3 1.1.9v16.4z"}),o.default.createElement("path",{class:"st0",d:"M2.6 4c-.4 0-.7.3-.7.7v1.5h.7V4.7h1.8V4H2.6zM19.5 5.8H4.1c-.2 0-.4.2-.4.4v4.4c0 .2.1.4.3.4h15.5c.2 0 .4-.2.4-.3V6.2c0-.2-.1-.4-.4-.4.1 0 0 0 0 0zm-.3 4.4H4.4V6.6h14.8v3.6zM9.6 12.1H4c-.2 0-.3.1-.3.3V18c0 .2.1.3.3.4h5.6c.2 0 .4-.1.4-.3v-5.6c0-.2-.1-.4-.4-.4.1 0 0 0 0 0zm-5.2 5.6v-4.4l4.4 4.4H4.4zm4.9-.5l-4.4-4.4h4.4v4.4zM11.1 12.8h8.8v.7h-8.8zM12.5 14.5H20v.9h-7.5zM11.5 16.9h1v1h-1zM13.5 16.9h1v1h-1zM5.5.8L5.2.5c.1-.1.3-.2.5-.3l.2.5c-.2 0-.3 0-.4.1zM25.8 17.9l-.4-.4c.2-.2.3-.4.3-.7h.5c0 .5-.2.8-.4 1.1zm.4-2h-.5v-1h.5v1zm0-2h-.5v-1h.5v1zm0-2h-.5v-1h.5v1zm0-1.9h-.5V9h.5v1zm0-2h-.5V7h.5v1zm0-1.9h-.5v-1h.5v1zm0-2h-.5v-1h.5v1zm0-2h-.5v-.4c0-.1 0-.3-.1-.4l.5-.2c.1.2.1.4.1.6v.4zm-1-1.4c-.2-.1-.4-.2-.6-.2h-.3V0h.3c.3 0 .6.1.8.2l-.2.5zM23.4.5h-1V0h1v.5zm-2 0h-1V0h1v.5zm-1.9 0h-1V0h1v.5zm-2 0h-1V0h1v.5zm-2 0h-1V0h1v.5zm-1.9 0h-1V0h1v.5zm-2 0h-1V0h1v.5zm-2 0h-1V0h1v.5zM7.7.5h-1V0h1v.5zM24.2 17.8h.5v.5h-.5z"}))};t.default=u},f352:function(e,t,n){"use strict";var r=n("24f7"),a=n("65ff"),o=n("d8db"),i=r.Repeat;function l(e,t,n,r){t.isCollapsed()||o(!1);var l=null;if(null!=n&&(l=n.length),null==l||0===l)return e;var s=e.getBlockMap(),u=t.getStartKey(),c=t.getStartOffset(),f=s.get(u),p=f.getText(),d=f.merge({text:p.slice(0,c)+n+p.slice(c,f.getLength()),characterList:a(f.getCharacterList(),i(r,l).toList(),c)}),h=c+l;return e.merge({blockMap:s.set(u,d),selectionAfter:t.merge({anchorOffset:h,focusOffset:h})})}e.exports=l},f356:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PhotoshopPicker=void 0;var r=n("ab5b"),a=c(r),o=n("fc55"),i=c(o),l=n("a7cc"),s=c(l),u=n("4ccf");function c(e){return e&&e.__esModule?e:{default:e}}var f=t.PhotoshopPicker=function(e){var t=e.onChange,n=e.rgb,r=e.hsv,o=e.hex,l=(0,i.default)({default:{fields:{paddingTop:"5px",paddingBottom:"9px",width:"80px",position:"relative"},divider:{height:"5px"},RGBwrap:{position:"relative"},RGBinput:{marginLeft:"40%",width:"40%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"5px",fontSize:"13px",paddingLeft:"3px",marginRight:"10px"},RGBlabel:{left:"0px",width:"34px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px",position:"absolute"},HEXwrap:{position:"relative"},HEXinput:{marginLeft:"20%",width:"80%",height:"18px",border:"1px solid #888888",boxShadow:"inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",marginBottom:"6px",fontSize:"13px",paddingLeft:"3px"},HEXlabel:{position:"absolute",top:"0px",left:"0px",width:"14px",textTransform:"uppercase",fontSize:"13px",height:"18px",lineHeight:"22px"},fieldSymbols:{position:"absolute",top:"5px",right:"-7px",fontSize:"13px"},symbol:{height:"20px",lineHeight:"22px",paddingBottom:"7px"}}}),c=function(e,a){e["#"]?s.default.isValidHex(e["#"])&&t({hex:e["#"],source:"hex"},a):e.r||e.g||e.b?t({r:e.r||n.r,g:e.g||n.g,b:e.b||n.b,source:"rgb"},a):(e.h||e.s||e.v)&&t({h:e.h||r.h,s:e.s||r.s,v:e.v||r.v,source:"hsv"},a)};return a.default.createElement("div",{style:l.fields},a.default.createElement(u.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"h",value:Math.round(r.h),onChange:c}),a.default.createElement(u.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"s",value:Math.round(100*r.s),onChange:c}),a.default.createElement(u.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"v",value:Math.round(100*r.v),onChange:c}),a.default.createElement("div",{style:l.divider}),a.default.createElement(u.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"r",value:n.r,onChange:c}),a.default.createElement(u.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"g",value:n.g,onChange:c}),a.default.createElement(u.EditableInput,{style:{wrap:l.RGBwrap,input:l.RGBinput,label:l.RGBlabel},label:"b",value:n.b,onChange:c}),a.default.createElement("div",{style:l.divider}),a.default.createElement(u.EditableInput,{style:{wrap:l.HEXwrap,input:l.HEXinput,label:l.HEXlabel},label:"#",value:o.replace("#",""),onChange:c}),a.default.createElement("div",{style:l.fieldSymbols},a.default.createElement("div",{style:l.symbol},"°"),a.default.createElement("div",{style:l.symbol},"%"),a.default.createElement("div",{style:l.symbol},"%")))};t.default=f},f372:function(e,t,n){"use strict";var r="undefined"!==typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;function a(e){return e=e||document,e.scrollingElement?e.scrollingElement:r||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}e.exports=a},f389:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n("24f7"),o=a.List,i=".",l=function(){function e(e){r(this,"_decorators",void 0),this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,a){var o=0,l=r.strategy,c=function(e,t){s(n,e,t)&&(u(n,e,t,a+i+o),o++)};l(e,c,t)})),o(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(i)[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(i)[0],10);return this._decorators[t].props},e}();function s(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0}function u(e,t,n,r){for(var a=t;a<n;a++)e[a]=r}e.exports=l},f3c1:function(e,t){var n=800,r=16,a=Date.now;function o(e){var t=0,o=0;return function(){var i=a(),l=r-(i-o);if(o=i,l>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}e.exports=o},f44f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M31.875 4.063L20.937 15.001l-7-6.938-9.938 9.938v6l9.938-10 7 7 10.938-11zM4 27.938V.063H0v31.875h32v-4z"}))};t.default=u},f45d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=i(a);function i(e){return e&&e.__esModule?e:{default:e}}function l(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}var s=24;t.default=function(e){var t=e.fill,n=void 0===t?"currentColor":t,a=e.width,i=void 0===a?s:a,u=e.height,c=void 0===u?s:u,f=e.style,p=void 0===f?{}:f,d=l(e,["fill","width","height","style"]);return o.default.createElement("svg",r({viewBox:"0 0 "+s+" "+s,style:r({fill:n,width:i,height:c},p)},d),o.default.createElement("path",{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}))}},f49e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32.25 29.47"},e),o.default.createElement("path",{d:"M2.84 21.31S-9-4.93 17.14 1.43c0 0 15.29 1.65 14.37 17.55 0 0-3.62 13.33-21.24 9.2z"}),o.default.createElement("path",{fill:"currentColor",d:"M11 1.43c5.37 0 11.63 1.77 14.22 4.08a15.43 15.43 0 0 1 5.51 10.75 9.29 9.29 0 0 1-2.45 7.21 19 19 0 0 1-12.66 4.7A11.68 11.68 0 0 1 7.14 25C.88 18.71-.14 7.21 3.6 3.47c1.36-1.29 4-2 7.42-2M11 0C7.55 0 4.35.68 2.58 2.45c-4.49 4.35-3 16.81 3.54 23.34a12.91 12.91 0 0 0 9.52 3.67 20.68 20.68 0 0 0 13.68-5.1c4.49-4.49 4.08-14.09-3.06-20.14C23.4 1.7 16.66 0 11 0zm1.9 6.94c4.22 0 7.83 1.16 8.85 2.18a8.15 8.15 0 0 1 2.58 6.12 6.92 6.92 0 0 1-2 5.51 6.79 6.79 0 0 1-5 1.7 9.45 9.45 0 0 1-6.53-2.72c-4-4.08-5.8-9.46-3.87-11.5a11.31 11.31 0 0 1 6-1.29m2.18 3.61a3.15 3.15 0 0 1 1.56.61c2 2 3.07 4.9 2.79 5.37a2.16 2.16 0 0 1-1.9 1.16 6.8 6.8 0 0 1-3.2-1.43c-2.45-2-2.59-3.33-2.45-4.22a.87.87 0 0 1 .09-.34 4.7 4.7 0 0 1 3.06-1.15m-2.18-5c-2.93 0-5.51.55-6.8 1.7-2.89 2.89-.44 9.28 3.92 13.5A10.61 10.61 0 0 0 17.55 24a8.64 8.64 0 0 0 6-2.31 10 10 0 0 0-.75-13.81c-1.57-1.3-5.92-2.32-9.87-2.32zm2.22 3.57c-2 0-4.36 1.15-4.63 2.31-.75 2.18.68 4.08 2.86 5.85A7.72 7.72 0 0 0 17.55 19a3.46 3.46 0 0 0 3.06-1.56c1-1.63-.89-5.24-2.93-7.28a3.24 3.24 0 0 0-2.58-1"}))};t.default=u},f4d6:function(e,t,n){var r=n("ffd6"),a=1/0;function o(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-a?"-0":t}e.exports=o},f517:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("path",{fill:"#25fdfc",stroke:"#1d9bfb",d:"M38.985 32.246l-16 9.221L7 32.221l.015-18.467 16-9.221L39 13.779l-.015 18.467z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M33.99 29.357l-11 6.339L12 29.339l.01-12.696 11-6.339L34 16.661l-.01 12.696z",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),o.default.createElement("path",{fill:"none",stroke:"#1d9bfb",d:"M28.994 26.467l-6 3.458L17 26.458l.006-6.925 6-3.458L29 19.542l-.006 6.925zM39 32L7 14m0 18l32-18M23 5v36.185",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}))};t.default=u},f51b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(n("d7bc")),a=s(n("ab5b")),o=u(n("cb65")),i=u(n("4d26"));function l(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function s(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!==typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function u(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="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},c(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(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 h(e,t,n){return t&&d(e.prototype,t),n&&d(e,n),e}function v(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&&m(e,t)}function m(e,t){return m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},m(e,t)}function y(e){var t=x();return function(){var n,r=_(e);if(t){var a=_(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==c(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(){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}}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var w=function(e){v(n,e);var t=y(n);function n(e){var r;return p(this,n),r=t.call(this,e),r.onChange=r.onChange.bind(b(r)),r}return h(n,[{key:"onChange",value:function(e){var t=this.props,n=t.multi,r=t.onChange,a=t.valueKey;return r(e?n?e.map((function(e){return e[a]})):e[a]:null)}},{key:"render",value:function(){var e=this.props,t=e.minWidth,n=e.placeholder,r=e.clearable,l=e.value,s=e.options,u=e.searchable,c=e.multi,p=e.noResultsText,d=e.valueKey,h=e.disabled,v=e.className,m=e.width,y=this.context.localize,g={minWidth:t};m&&(g.width=m);var b=s.map((function(e){return"string"===typeof e?f({label:e},d,e):e})),x=(0,i.default)("dropdown-container",f({"dropdown--dark":this.props.backgroundDark},v,v));return a.default.createElement("div",{className:x,style:g},a.default.createElement(o.default,{placeholder:n||y("Select an Option"),isClearable:r,value:b.filter((function(e){return Array.isArray(l)?l.includes(e[d]):l===e[d]})),options:b,isSearchable:u,onChange:this.onChange,isMulti:c,noOptionsMessage:function(){return p||y("No Results")},getOptionValue:function(e){return e[d]},getOptionLabel:function(e){return e.label},isDisabled:h,className:x,classNamePrefix:"Select",components:this.props.components}))}}]),n}(a.Component);w.defaultProps={clearable:!0,multi:!1,searchable:!1,minWidth:"120px",valueKey:"value",disabled:!1},w.propTypes={backgroundDark:r.default.bool,clearable:r.default.bool,onChange:r.default.func.isRequired,options:r.default.array.isRequired,placeholder:r.default.oneOfType([r.default.string,r.default.object]),searchable:r.default.bool,minWidth:r.default.oneOfType([r.default.string,r.default.number]),valueKey:r.default.string,value:r.default.any,multi:r.default.bool,components:r.default.object,noResultsText:r.default.string,disabled:r.default.bool,className:r.default.string,width:r.default.oneOfType([r.default.string,r.default.number])},w.contextTypes={localize:r.default.func};var k=w;t.default=k},f5df:function(e,t,n){var r=n("00ee"),a=n("c6b6"),o=n("b622"),i=o("toStringTag"),l="Arguments"==a(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(n){}};e.exports=r?a:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),i))?n:l?a(t):"Object"==(r=a(t))&&"function"==typeof t.callee?"Arguments":r}},f608:function(e,t,n){var r=n("6747"),a=n("ffd6"),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function l(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(i.test(e)||!o.test(e)||null!=t&&e in Object(t))}e.exports=l},f60e:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M4,4H20C21.1,4 22,4.9 22,6V18C22,19.1 21.1,20 20,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4M12,11L20,6H4L12,11M4,18H20V8.37L12,13.36L4,8.37V18Z"}))};e.exports=l},f6a4:function(e,t,n){"use strict";var r=n("58b2").dfltConfig,a=n("9da7"),o=e.exports={};function i(e,t){if(e&&e.apply)try{return void e.apply(console,t)}catch(r){}for(var n=0;n<t.length;n++)try{e(t[n])}catch(r){console.log(t[n])}}o.log=function(){var e;if(r.logging>1){var t=["LOG:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);i(console.trace||console.log,t)}if(r.notifyOnLogging>1){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);a(n.join("<br>"),"long")}},o.warn=function(){var e;if(r.logging>0){var t=["WARN:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);i(console.trace||console.log,t)}if(r.notifyOnLogging>0){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);a(n.join("<br>"),"stick")}},o.error=function(){var e;if(r.logging>0){var t=["ERROR:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);i(console.error,t)}if(r.notifyOnLogging>0){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);a(n.join("<br>"),"stick")}}},f6ae:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19C6,20.1 6.9,21 8,21H16C17.1,21 18,20.1 18,19V7H6V19Z"}))};e.exports=l},f6b6:function(e,t,n){},f6da:function(e,t,n){"use strict";var r=n("d560").isArrayOrTypedArray,a=n("ba7e");e.exports=function e(t,n){for(var o in n){var i=n[o],l=t[o];if(l!==i)if("_"===o.charAt(0)||"function"===typeof i){if(o in t)continue;t[o]=i}else if(r(i)&&r(l)&&a(i[0])){if("customdata"===o||"ids"===o)continue;for(var s=Math.min(i.length,l.length),u=0;u<s;u++)l[u]!==i[u]&&a(i[u])&&a(l[u])&&e(l[u],i[u])}else a(i)&&a(l)&&(e(l,i),Object.keys(l).length||delete t[o])}}},f6dc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n("ab5b")),a=i(n("d7bc")),o=n("c85e");function i(e){return e&&e.__esModule?e:{default:e}}var l=function(e,t){var n=t.localize;return r.default.createElement(o.TraceRequiredPanel,null,r.default.createElement(o.PlotlyFold,{name:n("Legend")},r.default.createElement(o.Radio,{attr:"showlegend",options:[{label:n("Show"),value:!0},{label:n("Hide"),value:!1}]}),r.default.createElement(o.PlotlySection,{name:n("Legend Title")},r.default.createElement(o.TextEditor,{label:n("Text"),attr:"legend.title.text",richTextOnly:!0}),r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:"legend.title.font.family"}),r.default.createElement(o.Numeric,{label:n("Size"),attr:"legend.title.font.size",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"legend.title.font.color"})),r.default.createElement(o.PlotlySection,{name:n("Text")},r.default.createElement(o.FontSelector,{label:n("Typeface"),attr:"legend.font.family"}),r.default.createElement(o.Numeric,{label:n("Size"),attr:"legend.font.size",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Color"),attr:"legend.font.color"})),r.default.createElement(o.PlotlySection,{name:n("Legend Box")},r.default.createElement(o.Numeric,{label:n("Border Width"),attr:"legend.borderwidth",units:"px"}),r.default.createElement(o.ColorPicker,{label:n("Border Color"),attr:"legend.bordercolor"}),r.default.createElement(o.ColorPicker,{label:n("Background Color"),attr:"legend.bgcolor"})),r.default.createElement(o.PlotlySection,{name:n("Horizontal Positioning")},r.default.createElement(o.Dropdown,{label:n("Anchor Point"),clearable:!1,attr:"legend.xanchor",options:[{label:n("Auto"),value:"auto"},{label:n("Left"),value:"left"},{label:n("Center"),value:"center"},{label:n("Right"),value:"right"}]}),r.default.createElement(o.Numeric,{label:n("Position"),showSlider:!0,step:.02,attr:"legend.x"})),r.default.createElement(o.PlotlySection,{name:n("Vertical Positioning")},r.default.createElement(o.Dropdown,{label:n("Anchor Point"),clearable:!1,attr:"legend.yanchor",options:[{label:n("Auto"),value:"auto"},{label:n("Top"),value:"top"},{label:n("Middle"),value:"middle"},{label:n("Bottom"),value:"bottom"}]}),r.default.createElement(o.Numeric,{label:n("Position"),showSlider:!0,step:.02,attr:"legend.y"}),r.default.createElement(o.Dropdown,{label:n("Text Alignment"),clearable:!1,attr:"legend.valign",options:[{label:n("Top"),value:"top"},{label:n("Middle"),value:"middle"},{label:n("Bottom"),value:"bottom"}]})),r.default.createElement(o.PlotlySection,{name:n("Orientation")},r.default.createElement(o.Radio,{attr:"legend.orientation",options:[{label:n("Vertical"),value:"v"},{label:n("Horizontal"),value:"h"}]})),r.default.createElement(o.PlotlySection,{name:n("Traces")},r.default.createElement(o.Dropdown,{label:n("Trace Order"),attr:"legend.traceorder",options:[{label:n("Normal"),value:"normal"},{label:n("Reversed"),value:"reversed"},{label:n("Grouped"),value:"grouped"},{label:n("Reversed and Grouped"),value:"reversed+grouped"}]}),r.default.createElement(o.Dropdown,{label:n("Item Sizing"),attr:"legend.itemsizing",options:[{label:n("Trace"),value:"trace"},{label:n("Constant"),value:"constant"}]}),r.default.createElement(o.Numeric,{label:n("Gap Between Groups"),attr:"legend.tracegroupgap",units:"px"}))))};l.contextTypes={localize:a.default.func};var s=l;t.default=s},f6e8:function(e,t,n){"use strict";function r(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var a=r,o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=a((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t["a"]=i},f772:function(e,t,n){var r=n("5692"),a=n("90e3"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=a(e))}},f786:function(e,t,n){"use strict";function r(e){var t=e?e.ownerDocument||e:document,n=t.defaultView||window;return!(!e||!("function"===typeof n.Node?e instanceof n.Node:"object"===typeof e&&"number"===typeof e.nodeType&&"string"===typeof e.nodeName))}e.exports=r},f78b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=f(n("9903")),a=f(n("201b")),o=f(n("d7bc")),i=c(n("ab5b")),l=n("4578"),s=n("e419");function u(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return u=function(){return e},e}function c(e){if(e&&e.__esModule)return e;if(null===e||"object"!==p(e)&&"function"!==typeof e)return{default:e};var t=u();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return p="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},p(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(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 v(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function m(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&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},y(e,t)}function g(e){var t=_();return function(){var n,r=w(e);if(t){var a=w(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!==typeof t?x(e):t}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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}}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=(0,l.connectTraceToPlot)(r.default),T=(0,l.connectNonCartesianSubplotToLayout)(r.default),E=(0,l.connectCartesianSubplotToLayout)(r.default),O=function(e){m(n,e);var t=g(n);function n(){return d(this,n),t.apply(this,arguments)}return v(n,[{key:"render",value:function(){var e=this.context,t=e.data,n=void 0===t?[]:t,r=e.layout,o=void 0===r?{}:r,u=e.localize,c=this.props.children,f=[],p=n.reduce((function(e,t,n){if(s.TRACE_TO_AXIS.cartesian.some((function(e){return e===t.type}))){var r="xaxis"+(t.xaxis?t.xaxis.substring(1):""),a="yaxis"+(t.yaxis?t.yaxis.substring(1):""),o=e.findIndex((function(e){return e.xaxis===r&&e.yaxis===a}));-1===o?e.push({xaxis:r,yaxis:a,xaxisName:t.xaxis?(0,l.getSubplotTitle)(t.xaxis,"x",u):"X 1",yaxisName:t.yaxis?(0,l.getSubplotTitle)(t.yaxis,"y",u):"Y 1",index:[n]}):e[o].index.push(n)}return e}),[]);p.forEach((function(e){return f[e.index[0]]=i.default.createElement(E,{key:e.index[0],traceIndexes:e.index,canDelete:!1,xaxis:e.xaxis,yaxis:e.yaxis,name:"".concat(e.xaxisName," | ").concat(e.yaxisName)},c)})),Object.keys(o).forEach((function(e){var t,r=[];["geo","mapbox","polar","gl3d","ternary"].some((function(a){t=(0,l.getSubplotTitle)(e,a,u);var o=s.SUBPLOT_TO_ATTR[a].layout===e?n.findIndex((function(e){return s.TRACE_TO_AXIS[a].some((function(t){return t===e.type}))})):n.findIndex((function(t){return t[s.SUBPLOT_TO_ATTR[a].data]===e}));return-1!==o&&r.push(o),e.startsWith(s.SUBPLOT_TO_ATTR[a].layout)}))&&(f[r[0]]=i.default.createElement(T,{key:e,traceIndexes:r,canDelete:!1,subplot:e,name:t},c))}));var d={pie:0,table:0,sunburst:0,treemap:0,sankey:0,parcoords:0,parcats:0};return n.forEach((function(e,t){if("pie"===e.type&&e.values||["pie","table","sunburst","treemap","sankey","parcoords","parcats","funnelarea"].includes(e.type)){d[e.type]++;var n=d[e.type];f[t]=i.default.createElement(k,{key:t,traceIndexes:[t],canDelete:!1,name:(0,l.capitalize)(e.type)+(n>1?" "+n:"")},c)}})),i.default.createElement(a.default,null,f)}}]),n}(i.Component);O.contextTypes={fullData:o.default.array,data:o.default.array,layout:o.default.object,localize:o.default.func},O.propTypes={children:o.default.node};var M=O;t.default=M},f794:function(e,t,n){(function(t){var n;(function(t){e.exports=t()})((function(){var e;return function(){function e(t,r,a){function o(l,s){if(!r[l]){if(!t[l]){var u="function"==typeof n&&n;if(!s&&u)return n(l,!0);if(i)return i(l,!0);var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var f=r[l]={exports:{}};t[l][0].call(f.exports,(function(e){var n=t[l][1][e];return o(n||e)}),f,f.exports,e,t,r,a)}return r[l].exports}for(var i="function"==typeof n&&n,l=0;l<a.length;l++)o(a[l]);return o}return e}()({1:[function(e,t,n){"use strict";var r=e("../src/lib"),a={"X,X div":"direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;","X input,X button":"font-family:'Open Sans', verdana, arial, sans-serif;","X input:focus,X button:focus":"outline:none;","X a":"text-decoration:none;","X a:hover":"text-decoration:none;","X .crisp":"shape-rendering:crispEdges;","X .user-select-none":"-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;","X svg":"overflow:hidden;","X svg a":"fill:#447adb;","X svg a:hover":"fill:#3c6dc5;","X .main-svg":"position:absolute;top:0;left:0;pointer-events:none;","X .main-svg .draglayer":"pointer-events:all;","X .cursor-default":"cursor:default;","X .cursor-pointer":"cursor:pointer;","X .cursor-crosshair":"cursor:crosshair;","X .cursor-move":"cursor:move;","X .cursor-col-resize":"cursor:col-resize;","X .cursor-row-resize":"cursor:row-resize;","X .cursor-ns-resize":"cursor:ns-resize;","X .cursor-ew-resize":"cursor:ew-resize;","X .cursor-sw-resize":"cursor:sw-resize;","X .cursor-s-resize":"cursor:s-resize;","X .cursor-se-resize":"cursor:se-resize;","X .cursor-w-resize":"cursor:w-resize;","X .cursor-e-resize":"cursor:e-resize;","X .cursor-nw-resize":"cursor:nw-resize;","X .cursor-n-resize":"cursor:n-resize;","X .cursor-ne-resize":"cursor:ne-resize;","X .cursor-grab":"cursor:-webkit-grab;cursor:grab;","X .modebar":"position:absolute;top:2px;right:2px;","X .ease-bg":"-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;","X .modebar--hover>:not(.watermark)":"opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;","X:hover .modebar--hover .modebar-group":"opacity:1;","X .modebar-group":"float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;","X .modebar-btn":"position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;","X .modebar-btn svg":"position:relative;top:2px;","X .modebar.vertical":"display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;","X .modebar.vertical svg":"top:-1px;","X .modebar.vertical .modebar-group":"display:block;float:none;padding-left:0px;padding-bottom:8px;","X .modebar.vertical .modebar-group .modebar-btn":"display:block;text-align:center;","X [data-title]:before,X [data-title]:after":"position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;","X [data-title]:hover:before,X [data-title]:hover:after":"display:block;opacity:1;","X [data-title]:before":"content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;","X [data-title]:after":"content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;","X .vertical [data-title]:before,X .vertical [data-title]:after":"top:0%;right:200%;","X .vertical [data-title]:before":"border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;","X .select-outline":"fill:none;stroke-width:1;shape-rendering:crispEdges;","X .select-outline-1":"stroke:white;","X .select-outline-2":"stroke:black;stroke-dasharray:2px 2px;",Y:"font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;","Y p":"margin:0;","Y .notifier-note":"min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;","Y .notifier-close":"color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;","Y .notifier-close:hover":"color:#444;text-decoration:none;cursor:pointer;"};for(var o in a){var i=o.replace(/^,/," ,").replace(/X/g,".js-plotly-plot .plotly").replace(/Y/g,".plotly-notifier");r.addStyleRule(i,a[o])}},{"../src/lib":750}],2:[function(e,t,n){"use strict";t.exports=e("../src/transforms/aggregate")},{"../src/transforms/aggregate":1336}],3:[function(e,t,n){"use strict";t.exports=e("../src/traces/bar")},{"../src/traces/bar":900}],4:[function(e,t,n){"use strict";t.exports=e("../src/traces/barpolar")},{"../src/traces/barpolar":913}],5:[function(e,t,n){"use strict";t.exports=e("../src/traces/box")},{"../src/traces/box":923}],6:[function(e,t,n){"use strict";t.exports=e("../src/components/calendars")},{"../src/components/calendars":613}],7:[function(e,t,n){"use strict";t.exports=e("../src/traces/candlestick")},{"../src/traces/candlestick":932}],8:[function(e,t,n){"use strict";t.exports=e("../src/traces/carpet")},{"../src/traces/carpet":951}],9:[function(e,t,n){"use strict";t.exports=e("../src/traces/choropleth")},{"../src/traces/choropleth":965}],10:[function(e,t,n){"use strict";t.exports=e("../src/traces/choroplethmapbox")},{"../src/traces/choroplethmapbox":972}],11:[function(e,t,n){"use strict";t.exports=e("../src/traces/cone")},{"../src/traces/cone":978}],12:[function(e,t,n){"use strict";t.exports=e("../src/traces/contour")},{"../src/traces/contour":993}],13:[function(e,t,n){"use strict";t.exports=e("../src/traces/contourcarpet")},{"../src/traces/contourcarpet":1004}],14:[function(e,t,n){"use strict";t.exports=e("../src/core")},{"../src/core":727}],15:[function(e,t,n){"use strict";t.exports=e("../src/traces/densitymapbox")},{"../src/traces/densitymapbox":1012}],16:[function(e,t,n){"use strict";t.exports=e("../src/transforms/filter")},{"../src/transforms/filter":1337}],17:[function(e,t,n){"use strict";t.exports=e("../src/traces/funnel")},{"../src/traces/funnel":1022}],18:[function(e,t,n){"use strict";t.exports=e("../src/traces/funnelarea")},{"../src/traces/funnelarea":1031}],19:[function(e,t,n){"use strict";t.exports=e("../src/transforms/groupby")},{"../src/transforms/groupby":1338}],20:[function(e,t,n){"use strict";t.exports=e("../src/traces/heatmap")},{"../src/traces/heatmap":1044}],21:[function(e,t,n){"use strict";t.exports=e("../src/traces/heatmapgl")},{"../src/traces/heatmapgl":1054}],22:[function(e,t,n){"use strict";t.exports=e("../src/traces/histogram")},{"../src/traces/histogram":1066}],23:[function(e,t,n){"use strict";t.exports=e("../src/traces/histogram2d")},{"../src/traces/histogram2d":1072}],24:[function(e,t,n){"use strict";t.exports=e("../src/traces/histogram2dcontour")},{"../src/traces/histogram2dcontour":1076}],25:[function(e,t,n){"use strict";t.exports=e("../src/traces/image")},{"../src/traces/image":1084}],26:[function(e,t,n){"use strict";var r=e("./core");r.register([e("./bar"),e("./box"),e("./heatmap"),e("./histogram"),e("./histogram2d"),e("./histogram2dcontour"),e("./contour"),e("./scatterternary"),e("./violin"),e("./funnel"),e("./waterfall"),e("./image"),e("./pie"),e("./sunburst"),e("./treemap"),e("./funnelarea"),e("./scatter3d"),e("./surface"),e("./isosurface"),e("./volume"),e("./mesh3d"),e("./cone"),e("./streamtube"),e("./scattergeo"),e("./choropleth"),e("./scattergl"),e("./splom"),e("./pointcloud"),e("./heatmapgl"),e("./parcoords"),e("./parcats"),e("./scattermapbox"),e("./choroplethmapbox"),e("./densitymapbox"),e("./sankey"),e("./indicator"),e("./table"),e("./carpet"),e("./scattercarpet"),e("./contourcarpet"),e("./ohlc"),e("./candlestick"),e("./scatterpolar"),e("./scatterpolargl"),e("./barpolar")]),r.register([e("./aggregate"),e("./filter"),e("./groupby"),e("./sort")]),r.register([e("./calendars")]),t.exports=r},{"./aggregate":2,"./bar":3,"./barpolar":4,"./box":5,"./calendars":6,"./candlestick":7,"./carpet":8,"./choropleth":9,"./choroplethmapbox":10,"./cone":11,"./contour":12,"./contourcarpet":13,"./core":14,"./densitymapbox":15,"./filter":16,"./funnel":17,"./funnelarea":18,"./groupby":19,"./heatmap":20,"./heatmapgl":21,"./histogram":22,"./histogram2d":23,"./histogram2dcontour":24,"./image":25,"./indicator":27,"./isosurface":28,"./mesh3d":29,"./ohlc":30,"./parcats":31,"./parcoords":32,"./pie":33,"./pointcloud":34,"./sankey":35,"./scatter3d":36,"./scattercarpet":37,"./scattergeo":38,"./scattergl":39,"./scattermapbox":40,"./scatterpolar":41,"./scatterpolargl":42,"./scatterternary":43,"./sort":44,"./splom":45,"./streamtube":46,"./sunburst":47,"./surface":48,"./table":49,"./treemap":50,"./violin":51,"./volume":52,"./waterfall":53}],27:[function(e,t,n){"use strict";t.exports=e("../src/traces/indicator")},{"../src/traces/indicator":1092}],28:[function(e,t,n){"use strict";t.exports=e("../src/traces/isosurface")},{"../src/traces/isosurface":1098}],29:[function(e,t,n){"use strict";t.exports=e("../src/traces/mesh3d")},{"../src/traces/mesh3d":1103}],30:[function(e,t,n){"use strict";t.exports=e("../src/traces/ohlc")},{"../src/traces/ohlc":1108}],31:[function(e,t,n){"use strict";t.exports=e("../src/traces/parcats")},{"../src/traces/parcats":1117}],32:[function(e,t,n){"use strict";t.exports=e("../src/traces/parcoords")},{"../src/traces/parcoords":1127}],33:[function(e,t,n){"use strict";t.exports=e("../src/traces/pie")},{"../src/traces/pie":1138}],34:[function(e,t,n){"use strict";t.exports=e("../src/traces/pointcloud")},{"../src/traces/pointcloud":1147}],35:[function(e,t,n){"use strict";t.exports=e("../src/traces/sankey")},{"../src/traces/sankey":1153}],36:[function(e,t,n){"use strict";t.exports=e("../src/traces/scatter3d")},{"../src/traces/scatter3d":1191}],37:[function(e,t,n){"use strict";t.exports=e("../src/traces/scattercarpet")},{"../src/traces/scattercarpet":1198}],38:[function(e,t,n){"use strict";t.exports=e("../src/traces/scattergeo")},{"../src/traces/scattergeo":1206}],39:[function(e,t,n){"use strict";t.exports=e("../src/traces/scattergl")},{"../src/traces/scattergl":1219}],40:[function(e,t,n){"use strict";t.exports=e("../src/traces/scattermapbox")},{"../src/traces/scattermapbox":1229}],41:[function(e,t,n){"use strict";t.exports=e("../src/traces/scatterpolar")},{"../src/traces/scatterpolar":1237}],42:[function(e,t,n){"use strict";t.exports=e("../src/traces/scatterpolargl")},{"../src/traces/scatterpolargl":1244}],43:[function(e,t,n){"use strict";t.exports=e("../src/traces/scatterternary")},{"../src/traces/scatterternary":1252}],44:[function(e,t,n){"use strict";t.exports=e("../src/transforms/sort")},{"../src/transforms/sort":1340}],45:[function(e,t,n){"use strict";t.exports=e("../src/traces/splom")},{"../src/traces/splom":1261}],46:[function(e,t,n){"use strict";t.exports=e("../src/traces/streamtube")},{"../src/traces/streamtube":1269}],47:[function(e,t,n){"use strict";t.exports=e("../src/traces/sunburst")},{"../src/traces/sunburst":1277}],48:[function(e,t,n){"use strict";t.exports=e("../src/traces/surface")},{"../src/traces/surface":1286}],49:[function(e,t,n){"use strict";t.exports=e("../src/traces/table")},{"../src/traces/table":1294}],50:[function(e,t,n){"use strict";t.exports=e("../src/traces/treemap")},{"../src/traces/treemap":1303}],51:[function(e,t,n){"use strict";t.exports=e("../src/traces/violin")},{"../src/traces/violin":1315}],52:[function(e,t,n){"use strict";t.exports=e("../src/traces/volume")},{"../src/traces/volume":1323}],53:[function(e,t,n){"use strict";t.exports=e("../src/traces/waterfall")},{"../src/traces/waterfall":1331}],54:[function(e,t,n){"use strict";t.exports=u;var r=e("turntable-camera-controller"),a=e("orbit-camera-controller"),o=e("matrix-camera-controller");function i(e,t){this._controllerNames=Object.keys(e),this._controllerList=this._controllerNames.map((function(t){return e[t]})),this._mode=t,this._active=e[t],this._active||(this._mode="turntable",this._active=e.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var l=i.prototype,s=[["flush",1],["idle",1],["lookAt",4],["rotate",4],["pan",4],["translate",4],["setMatrix",2],["setDistanceLimits",2],["setDistance",2]];function u(e){e=e||{};var t=e.eye||[0,0,1],n=e.center||[0,0,0],l=e.up||[0,1,0],s=e.distanceLimits||[0,1/0],u=e.mode||"turntable",c=r(),f=a(),p=o();return c.setDistanceLimits(s[0],s[1]),c.lookAt(0,t,n,l),f.setDistanceLimits(s[0],s[1]),f.lookAt(0,t,n,l),p.setDistanceLimits(s[0],s[1]),p.lookAt(0,t,n,l),new i({turntable:c,orbit:f,matrix:p},u)}s.forEach((function(e){for(var t=e[0],n=[],r=0;r<e[1];++r)n.push("a"+r);var a="var cc=this._controllerList;for(var i=0;i<cc.length;++i){cc[i]."+e[0]+"("+n.join()+")}";l[t]=Function.apply(null,n.concat(a))})),l.recalcMatrix=function(e){this._active.recalcMatrix(e)},l.getDistance=function(e){return this._active.getDistance(e)},l.getDistanceLimits=function(e){return this._active.getDistanceLimits(e)},l.lastT=function(){return this._active.lastT()},l.setMode=function(e){if(e!==this._mode){var t=this._controllerNames.indexOf(e);if(!(t<0)){var n=this._active,r=this._controllerList[t],a=Math.max(n.lastT(),r.lastT());n.recalcMatrix(a),r.setMatrix(a,n.computedMatrix),this._active=r,this._mode=e,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},l.getMode=function(){return this._mode}},{"matrix-camera-controller":454,"orbit-camera-controller":475,"turntable-camera-controller":553}],55:[function(t,n,r){(function(a,o){"object"===typeof r&&"undefined"!==typeof n?o(r,t("d3-array"),t("d3-collection"),t("d3-shape"),t("elementary-circuits-directed-graph")):"function"===typeof e&&e.amd?e(["exports","d3-array","d3-collection","d3-shape","elementary-circuits-directed-graph"],o):o(a.d3=a.d3||{},a.d3,a.d3,a.d3,null)})(this,(function(e,t,n,r,a){"use strict";function o(e){return e.target.depth}function i(e){return e.depth}function l(e,t){return t-1-e.height}function s(e,t){return e.sourceLinks.length?e.depth:t-1}function u(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?t.min(e.sourceLinks,o)-1:0}function c(e){return function(){return e}}a=a&&a.hasOwnProperty("default")?a["default"]:a;var f="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 p(e,t){return h(e.source,t.source)||e.index-t.index}function d(e,t){return h(e.target,t.target)||e.index-t.index}function h(e,t){return e.partOfCycle===t.partOfCycle?e.y0-t.y0:"top"===e.circularLinkType||"bottom"===t.circularLinkType?-1:1}function v(e){return e.value}function m(e){return(e.y0+e.y1)/2}function y(e){return m(e.source)}function g(e){return m(e.target)}function b(e){return e.index}function x(e){return e.nodes}function _(e){return e.links}function w(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function k(e,t){return t(e)}var T=25,E=10,O=.3;function M(){var e,r,a=0,o=0,i=1,l=1,u=24,k=b,M=s,A=x,P=_,D=32,j=2,R=null;function z(){var e={nodes:A.apply(null,arguments),links:P.apply(null,arguments)};N(e),S(e,k,R),F(e),H(e),C(e,k),U(e,D,k),W(e);for(var t=4,n=0;n<t;n++)K(e,l,k),X(e,l,k),$(e,o,l,k),K(e,l,k),X(e,l,k);return ee(e,o,l),I(e,j,l,k),e}function N(e){e.nodes.forEach((function(e,t){e.index=t,e.sourceLinks=[],e.targetLinks=[]}));var t=n.map(e.nodes,k);return e.links.forEach((function(e,n){e.index=n;var r=e.source,a=e.target;"object"!==("undefined"===typeof r?"undefined":f(r))&&(r=e.source=w(t,r)),"object"!==("undefined"===typeof a?"undefined":f(a))&&(a=e.target=w(t,a)),r.sourceLinks.push(e),a.targetLinks.push(e)})),e}function F(e){e.nodes.forEach((function(e){e.partOfCycle=!1,e.value=Math.max(t.sum(e.sourceLinks,v),t.sum(e.targetLinks,v)),e.sourceLinks.forEach((function(t){t.circular&&(e.partOfCycle=!0,e.circularLinkType=t.circularLinkType)})),e.targetLinks.forEach((function(t){t.circular&&(e.partOfCycle=!0,e.circularLinkType=t.circularLinkType)}))}))}function B(e){var n=0,r=0,a=0,o=0,i=t.max(e.nodes,(function(e){return e.column}));return e.links.forEach((function(e){e.circular&&("top"==e.circularLinkType?n+=e.width:r+=e.width,0==e.target.column&&(o+=e.width),e.source.column==i&&(a+=e.width))})),n=n>0?n+T+E:n,r=r>0?r+T+E:r,a=a>0?a+T+E:a,o=o>0?o+T+E:o,{top:n,bottom:r,left:o,right:a}}function V(e,n){var r=t.max(e.nodes,(function(e){return e.column})),s=i-a,c=l-o,f=s+n.right+n.left,p=c+n.top+n.bottom,d=s/f,h=c/p;return a=a*d+n.left,i=0==n.right?i:i*d,o=o*h+n.top,l*=h,e.nodes.forEach((function(e){e.x0=a+e.column*((i-a-u)/r),e.x1=e.x0+u})),h}function H(e){var t,n,r;for(t=e.nodes,n=[],r=0;t.length;++r,t=n,n=[])t.forEach((function(e){e.depth=r,e.sourceLinks.forEach((function(e){n.indexOf(e.target)<0&&!e.circular&&n.push(e.target)}))}));for(t=e.nodes,n=[],r=0;t.length;++r,t=n,n=[])t.forEach((function(e){e.height=r,e.targetLinks.forEach((function(e){n.indexOf(e.source)<0&&!e.circular&&n.push(e.source)}))}));e.nodes.forEach((function(e){e.column=Math.floor(M.call(null,e,r))}))}function U(a,i,s){var u=n.nest().key((function(e){return e.column})).sortKeys(t.ascending).entries(a.nodes).map((function(e){return e.values}));p(s),b();for(var c=1,f=i;f>0;--f)d(c*=.99,s),b();function p(n){if(r){var i=1/0;u.forEach((function(e){var t=l*r/(e.length+1);i=t<i?t:i})),e=i}var s=t.min(u,(function(n){return(l-o-(n.length-1)*e)/t.sum(n,v)}));s*=O,a.links.forEach((function(e){e.width=e.value*s}));var c=B(a),f=V(a,c);s*=f,a.links.forEach((function(e){e.width=e.value*s})),u.forEach((function(e){var t=e.length;e.forEach((function(e,r){e.depth==u.length-1&&1==t||0==e.depth&&1==t?(e.y0=l/2-e.value*s,e.y1=e.y0+e.value*s):e.partOfCycle?0==L(e,n)?(e.y0=l/2+r,e.y1=e.y0+e.value*s):"top"==e.circularLinkType?(e.y0=o+r,e.y1=e.y0+e.value*s):(e.y0=l-e.value*s-r,e.y1=e.y0+e.value*s):0==c.top||0==c.bottom?(e.y0=(l-o)/t*r,e.y1=e.y0+e.value*s):(e.y0=(l-o)/2-t/2+r,e.y1=e.y0+e.value*s)}))}))}function d(e,n){var r=u.length;u.forEach((function(a){var o=a.length,i=a[0].depth;a.forEach((function(a){var s;if(a.sourceLinks.length||a.targetLinks.length)if(a.partOfCycle&&L(a,n)>0);else if(0==i&&1==o)s=a.y1-a.y0,a.y0=l/2-s/2,a.y1=l/2+s/2;else if(i==r-1&&1==o)s=a.y1-a.y0,a.y0=l/2-s/2,a.y1=l/2+s/2;else{var u=0,c=t.mean(a.sourceLinks,g),f=t.mean(a.targetLinks,y);u=c&&f?(c+f)/2:c||f;var p=(u-m(a))*e;a.y0+=p,a.y1+=p}}))}))}function b(){u.forEach((function(t){var n,r,a,i=o,s=t.length;for(t.sort(h),a=0;a<s;++a)n=t[a],r=i-n.y0,r>0&&(n.y0+=r,n.y1+=r),i=n.y1+e;if(r=i-e-l,r>0)for(i=n.y0-=r,n.y1-=r,a=s-2;a>=0;--a)n=t[a],r=n.y1+e-i,r>0&&(n.y0-=r,n.y1-=r),i=n.y0}))}}function W(e){e.nodes.forEach((function(e){e.sourceLinks.sort(d),e.targetLinks.sort(p)})),e.nodes.forEach((function(e){var t=e.y0,n=t,r=e.y1,a=r;e.sourceLinks.forEach((function(e){e.circular?(e.y0=r-e.width/2,r-=e.width):(e.y0=t+e.width/2,t+=e.width)})),e.targetLinks.forEach((function(e){e.circular?(e.y1=a-e.width/2,a-=e.width):(e.y1=n+e.width/2,n+=e.width)}))}))}return z.nodeId=function(e){return arguments.length?(k="function"===typeof e?e:c(e),z):k},z.nodeAlign=function(e){return arguments.length?(M="function"===typeof e?e:c(e),z):M},z.nodeWidth=function(e){return arguments.length?(u=+e,z):u},z.nodePadding=function(t){return arguments.length?(e=+t,z):e},z.nodes=function(e){return arguments.length?(A="function"===typeof e?e:c(e),z):A},z.links=function(e){return arguments.length?(P="function"===typeof e?e:c(e),z):P},z.size=function(e){return arguments.length?(a=o=0,i=+e[0],l=+e[1],z):[i-a,l-o]},z.extent=function(e){return arguments.length?(a=+e[0][0],i=+e[1][0],o=+e[0][1],l=+e[1][1],z):[[a,o],[i,l]]},z.iterations=function(e){return arguments.length?(D=+e,z):D},z.circularLinkGap=function(e){return arguments.length?(j=+e,z):j},z.nodePaddingRatio=function(e){return arguments.length?(r=+e,z):r},z.sortNodes=function(e){return arguments.length?(R=e,z):R},z.update=function(e){return C(e,k),W(e),e.links.forEach((function(e){e.circular&&(e.circularLinkType=e.y0+e.y1<l?"top":"bottom",e.source.circularLinkType=e.circularLinkType,e.target.circularLinkType=e.circularLinkType)})),K(e,l,k,!1),X(e,l,k),I(e,j,l,k),e},z}function S(e,t,n){var r=0;if(null===n){for(var o=[],i=0;i<e.links.length;i++){var l=e.links[i],s=l.source.index,u=l.target.index;o[s]||(o[s]=[]),o[u]||(o[u]=[]),-1===o[s].indexOf(u)&&o[s].push(u)}var c=a(o);c.sort((function(e,t){return e.length-t.length}));var f={};for(i=0;i<c.length;i++){var p=c[i],d=p.slice(-2);f[d[0]]||(f[d[0]]={}),f[d[0]][d[1]]=!0}e.links.forEach((function(e){var t=e.target.index,n=e.source.index;t===n||f[n]&&f[n][t]?(e.circular=!0,e.circularLinkID=r,r+=1):e.circular=!1}))}else e.links.forEach((function(e){e.source[n]<e.target[n]?e.circular=!1:(e.circular=!0,e.circularLinkID=r,r+=1)}))}function C(e,t){var n=0,r=0;e.links.forEach((function(a){a.circular&&(a.source.circularLinkType||a.target.circularLinkType?a.circularLinkType=a.source.circularLinkType?a.source.circularLinkType:a.target.circularLinkType:a.circularLinkType=n<r?"top":"bottom","top"==a.circularLinkType?n+=1:r+=1,e.nodes.forEach((function(e){k(e,t)!=k(a.source,t)&&k(e,t)!=k(a.target,t)||(e.circularLinkType=a.circularLinkType)})))})),e.links.forEach((function(e){e.circular&&(e.source.circularLinkType==e.target.circularLinkType&&(e.circularLinkType=e.source.circularLinkType),Q(e,t)&&(e.circularLinkType=e.source.circularLinkType))}))}function A(e){var t=Math.abs(e.y1-e.y0),n=Math.abs(e.target.x0-e.source.x1);return Math.atan(n/t)}function P(e,t){return!(e.source.column<t.target.column)&&!(e.target.column>t.source.column)}function L(e,t){var n=0;e.sourceLinks.forEach((function(e){n=e.circular&&!Q(e,t)?n+1:n}));var r=0;return e.targetLinks.forEach((function(e){r=e.circular&&!Q(e,t)?r+1:r})),n+r}function D(e){var t=e.source.sourceLinks,n=0;t.forEach((function(e){n=e.circular?n+1:n}));var r=e.target.targetLinks,a=0;return r.forEach((function(e){a=e.circular?a+1:a})),!(n>1||a>1)}function j(e,t,n){return e.sort(z),e.forEach((function(r,a){var o=0;if(Q(r,n)&&D(r))r.circularPathData.verticalBuffer=o+r.width/2;else{var i=0;for(i;i<a;i++)if(P(e[a],e[i])){var l=e[i].circularPathData.verticalBuffer+e[i].width/2+t;o=l>o?l:o}r.circularPathData.verticalBuffer=o+r.width/2}})),e}function I(e,n,a,o){var i=5,l=t.min(e.links,(function(e){return e.source.y0}));e.links.forEach((function(e){e.circular&&(e.circularPathData={})}));var s=e.links.filter((function(e){return"top"==e.circularLinkType}));j(s,n,o);var u=e.links.filter((function(e){return"bottom"==e.circularLinkType}));j(u,n,o),e.links.forEach((function(t){if(t.circular){if(t.circularPathData.arcRadius=t.width+E,t.circularPathData.leftNodeBuffer=i,t.circularPathData.rightNodeBuffer=i,t.circularPathData.sourceWidth=t.source.x1-t.source.x0,t.circularPathData.sourceX=t.source.x0+t.circularPathData.sourceWidth,t.circularPathData.targetX=t.target.x0,t.circularPathData.sourceY=t.y0,t.circularPathData.targetY=t.y1,Q(t,o)&&D(t))t.circularPathData.leftSmallArcRadius=E+t.width/2,t.circularPathData.leftLargeArcRadius=E+t.width/2,t.circularPathData.rightSmallArcRadius=E+t.width/2,t.circularPathData.rightLargeArcRadius=E+t.width/2,"bottom"==t.circularLinkType?(t.circularPathData.verticalFullExtent=t.source.y1+T+t.circularPathData.verticalBuffer,t.circularPathData.verticalLeftInnerExtent=t.circularPathData.verticalFullExtent-t.circularPathData.leftLargeArcRadius,t.circularPathData.verticalRightInnerExtent=t.circularPathData.verticalFullExtent-t.circularPathData.rightLargeArcRadius):(t.circularPathData.verticalFullExtent=t.source.y0-T-t.circularPathData.verticalBuffer,t.circularPathData.verticalLeftInnerExtent=t.circularPathData.verticalFullExtent+t.circularPathData.leftLargeArcRadius,t.circularPathData.verticalRightInnerExtent=t.circularPathData.verticalFullExtent+t.circularPathData.rightLargeArcRadius);else{var s=t.source.column,u=t.circularLinkType,c=e.links.filter((function(e){return e.source.column==s&&e.circularLinkType==u}));"bottom"==t.circularLinkType?c.sort(F):c.sort(N);var f=0;c.forEach((function(e,r){e.circularLinkID==t.circularLinkID&&(t.circularPathData.leftSmallArcRadius=E+t.width/2+f,t.circularPathData.leftLargeArcRadius=E+t.width/2+r*n+f),f+=e.width})),s=t.target.column,c=e.links.filter((function(e){return e.target.column==s&&e.circularLinkType==u})),"bottom"==t.circularLinkType?c.sort(V):c.sort(B),f=0,c.forEach((function(e,r){e.circularLinkID==t.circularLinkID&&(t.circularPathData.rightSmallArcRadius=E+t.width/2+f,t.circularPathData.rightLargeArcRadius=E+t.width/2+r*n+f),f+=e.width})),"bottom"==t.circularLinkType?(t.circularPathData.verticalFullExtent=Math.max(a,t.source.y1,t.target.y1)+T+t.circularPathData.verticalBuffer,t.circularPathData.verticalLeftInnerExtent=t.circularPathData.verticalFullExtent-t.circularPathData.leftLargeArcRadius,t.circularPathData.verticalRightInnerExtent=t.circularPathData.verticalFullExtent-t.circularPathData.rightLargeArcRadius):(t.circularPathData.verticalFullExtent=l-T-t.circularPathData.verticalBuffer,t.circularPathData.verticalLeftInnerExtent=t.circularPathData.verticalFullExtent+t.circularPathData.leftLargeArcRadius,t.circularPathData.verticalRightInnerExtent=t.circularPathData.verticalFullExtent+t.circularPathData.rightLargeArcRadius)}t.circularPathData.leftInnerExtent=t.circularPathData.sourceX+t.circularPathData.leftNodeBuffer,t.circularPathData.rightInnerExtent=t.circularPathData.targetX-t.circularPathData.rightNodeBuffer,t.circularPathData.leftFullExtent=t.circularPathData.sourceX+t.circularPathData.leftLargeArcRadius+t.circularPathData.leftNodeBuffer,t.circularPathData.rightFullExtent=t.circularPathData.targetX-t.circularPathData.rightLargeArcRadius-t.circularPathData.rightNodeBuffer}if(t.circular)t.path=R(t);else{var p=r.linkHorizontal().source((function(e){var t=e.source.x0+(e.source.x1-e.source.x0),n=e.y0;return[t,n]})).target((function(e){var t=e.target.x0,n=e.y1;return[t,n]}));t.path=p(t)}}))}function R(e){var t="";return t="top"==e.circularLinkType?"M"+e.circularPathData.sourceX+" "+e.circularPathData.sourceY+" L"+e.circularPathData.leftInnerExtent+" "+e.circularPathData.sourceY+" A"+e.circularPathData.leftLargeArcRadius+" "+e.circularPathData.leftSmallArcRadius+" 0 0 0 "+e.circularPathData.leftFullExtent+" "+(e.circularPathData.sourceY-e.circularPathData.leftSmallArcRadius)+" L"+e.circularPathData.leftFullExtent+" "+e.circularPathData.verticalLeftInnerExtent+" A"+e.circularPathData.leftLargeArcRadius+" "+e.circularPathData.leftLargeArcRadius+" 0 0 0 "+e.circularPathData.leftInnerExtent+" "+e.circularPathData.verticalFullExtent+" L"+e.circularPathData.rightInnerExtent+" "+e.circularPathData.verticalFullExtent+" A"+e.circularPathData.rightLargeArcRadius+" "+e.circularPathData.rightLargeArcRadius+" 0 0 0 "+e.circularPathData.rightFullExtent+" "+e.circularPathData.verticalRightInnerExtent+" L"+e.circularPathData.rightFullExtent+" "+(e.circularPathData.targetY-e.circularPathData.rightSmallArcRadius)+" A"+e.circularPathData.rightLargeArcRadius+" "+e.circularPathData.rightSmallArcRadius+" 0 0 0 "+e.circularPathData.rightInnerExtent+" "+e.circularPathData.targetY+" L"+e.circularPathData.targetX+" "+e.circularPathData.targetY:"M"+e.circularPathData.sourceX+" "+e.circularPathData.sourceY+" L"+e.circularPathData.leftInnerExtent+" "+e.circularPathData.sourceY+" A"+e.circularPathData.leftLargeArcRadius+" "+e.circularPathData.leftSmallArcRadius+" 0 0 1 "+e.circularPathData.leftFullExtent+" "+(e.circularPathData.sourceY+e.circularPathData.leftSmallArcRadius)+" L"+e.circularPathData.leftFullExtent+" "+e.circularPathData.verticalLeftInnerExtent+" A"+e.circularPathData.leftLargeArcRadius+" "+e.circularPathData.leftLargeArcRadius+" 0 0 1 "+e.circularPathData.leftInnerExtent+" "+e.circularPathData.verticalFullExtent+" L"+e.circularPathData.rightInnerExtent+" "+e.circularPathData.verticalFullExtent+" A"+e.circularPathData.rightLargeArcRadius+" "+e.circularPathData.rightLargeArcRadius+" 0 0 1 "+e.circularPathData.rightFullExtent+" "+e.circularPathData.verticalRightInnerExtent+" L"+e.circularPathData.rightFullExtent+" "+(e.circularPathData.targetY+e.circularPathData.rightSmallArcRadius)+" A"+e.circularPathData.rightLargeArcRadius+" "+e.circularPathData.rightSmallArcRadius+" 0 0 1 "+e.circularPathData.rightInnerExtent+" "+e.circularPathData.targetY+" L"+e.circularPathData.targetX+" "+e.circularPathData.targetY,t}function z(e,t){return H(e)==H(t)?"bottom"==e.circularLinkType?F(e,t):N(e,t):H(t)-H(e)}function N(e,t){return e.y0-t.y0}function F(e,t){return t.y0-e.y0}function B(e,t){return e.y1-t.y1}function V(e,t){return t.y1-e.y1}function H(e){return e.target.column-e.source.column}function U(e){return e.target.x0-e.source.x1}function W(e,t){var n=A(e),r=U(t)/Math.tan(n),a="up"==J(e)?e.y1+r:e.y1-r;return a}function q(e,t){var n=A(e),r=U(t)/Math.tan(n),a="up"==J(e)?e.y1-r:e.y1+r;return a}function $(e,t,n,r){e.links.forEach((function(a){if(!a.circular&&a.target.column-a.source.column>1){var o=a.source.column+1,i=a.target.column-1,l=1,s=i-o+1;for(l=1;o<=i;o++,l++)e.nodes.forEach((function(i){if(i.column==o){var u,c=l/(s+1),f=Math.pow(1-c,3),p=3*c*Math.pow(1-c,2),d=3*Math.pow(c,2)*(1-c),h=Math.pow(c,3),v=f*a.y0+p*a.y0+d*a.y1+h*a.y1,m=v-a.width/2,y=v+a.width/2;m>i.y0&&m<i.y1?(u=i.y1-m+10,u="bottom"==i.circularLinkType?u:-u,i=Y(i,u,t,n),e.nodes.forEach((function(e){k(e,r)!=k(i,r)&&e.column==i.column&&G(i,e)&&Y(e,u,t,n)}))):(y>i.y0&&y<i.y1||m<i.y0&&y>i.y1)&&(u=y-i.y0+10,i=Y(i,u,t,n),e.nodes.forEach((function(e){k(e,r)!=k(i,r)&&e.column==i.column&&e.y0<i.y1&&e.y1>i.y1&&Y(e,u,t,n)})))}}))}}))}function G(e,t){return e.y0>t.y0&&e.y0<t.y1||(e.y1>t.y0&&e.y1<t.y1||e.y0<t.y0&&e.y1>t.y1)}function Y(e,t,n,r){return e.y0+t>=n&&e.y1+t<=r&&(e.y0=e.y0+t,e.y1=e.y1+t,e.targetLinks.forEach((function(e){e.y1=e.y1+t})),e.sourceLinks.forEach((function(e){e.y0=e.y0+t}))),e}function K(e,t,n,r){e.nodes.forEach((function(a){r&&a.y+(a.y1-a.y0)>t&&(a.y=a.y-(a.y+(a.y1-a.y0)-t));var o=e.links.filter((function(e){return k(e.source,n)==k(a,n)})),i=o.length;i>1&&o.sort((function(e,t){if(!e.circular&&!t.circular){if(e.target.column==t.target.column)return e.y1-t.y1;if(!Z(e,t))return e.y1-t.y1;if(e.target.column>t.target.column){var n=q(t,e);return e.y1-n}if(t.target.column>e.target.column){var r=q(e,t);return r-t.y1}}return e.circular&&!t.circular?"top"==e.circularLinkType?-1:1:t.circular&&!e.circular?"top"==t.circularLinkType?1:-1:e.circular&&t.circular?e.circularLinkType===t.circularLinkType&&"top"==e.circularLinkType?e.target.column===t.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:e.circularLinkType===t.circularLinkType&&"bottom"==e.circularLinkType?e.target.column===t.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:"top"==e.circularLinkType?-1:1:void 0}));var l=a.y0;o.forEach((function(e){e.y0=l+e.width/2,l+=e.width})),o.forEach((function(e,t){if("bottom"==e.circularLinkType){var n=t+1,r=0;for(n;n<i;n++)r+=o[n].width;e.y0=a.y1-r-e.width/2}}))}))}function X(e,t,n){e.nodes.forEach((function(t){var r=e.links.filter((function(e){return k(e.target,n)==k(t,n)})),a=r.length;a>1&&r.sort((function(e,t){if(!e.circular&&!t.circular){if(e.source.column==t.source.column)return e.y0-t.y0;if(!Z(e,t))return e.y0-t.y0;if(t.source.column<e.source.column){var n=W(t,e);return e.y0-n}if(e.source.column<t.source.column){var r=W(e,t);return r-t.y0}}return e.circular&&!t.circular?"top"==e.circularLinkType?-1:1:t.circular&&!e.circular?"top"==t.circularLinkType?1:-1:e.circular&&t.circular?e.circularLinkType===t.circularLinkType&&"top"==e.circularLinkType?e.source.column===t.source.column?e.source.y1-t.source.y1:e.source.column-t.source.column:e.circularLinkType===t.circularLinkType&&"bottom"==e.circularLinkType?e.source.column===t.source.column?e.source.y1-t.source.y1:t.source.column-e.source.column:"top"==e.circularLinkType?-1:1:void 0}));var o=t.y0;r.forEach((function(e){e.y1=o+e.width/2,o+=e.width})),r.forEach((function(e,n){if("bottom"==e.circularLinkType){var o=n+1,i=0;for(o;o<a;o++)i+=r[o].width;e.y1=t.y1-i-e.width/2}}))}))}function Z(e,t){return J(e)==J(t)}function J(e){return e.y0-e.y1>0?"up":"down"}function Q(e,t){return k(e.source,t)==k(e.target,t)}function ee(e,n,r){var a=e.nodes,o=e.links,i=!1,l=!1;if(o.forEach((function(e){"top"==e.circularLinkType?i=!0:"bottom"==e.circularLinkType&&(l=!0)})),0==i||0==l){var s=t.min(a,(function(e){return e.y0})),u=t.max(a,(function(e){return e.y1})),c=u-s,f=r-n,p=f/c;a.forEach((function(e){var t=(e.y1-e.y0)*p;e.y0=(e.y0-s)*p,e.y1=e.y0+t})),o.forEach((function(e){e.y0=(e.y0-s)*p,e.y1=(e.y1-s)*p,e.width=e.width*p}))}}e.sankeyCircular=M,e.sankeyCenter=u,e.sankeyLeft=i,e.sankeyRight=l,e.sankeyJustify=s,Object.defineProperty(e,"__esModule",{value:!0})}))},{"d3-array":156,"d3-collection":157,"d3-shape":165,"elementary-circuits-directed-graph":179}],56:[function(t,n,r){(function(a,o){"object"===typeof r&&"undefined"!==typeof n?o(r,t("d3-array"),t("d3-collection"),t("d3-shape")):"function"===typeof e&&e.amd?e(["exports","d3-array","d3-collection","d3-shape"],o):o(a.d3=a.d3||{},a.d3,a.d3,a.d3)})(this,(function(e,t,n,r){"use strict";function a(e){return e.target.depth}function o(e){return e.depth}function i(e,t){return t-1-e.height}function l(e,t){return e.sourceLinks.length?e.depth:t-1}function s(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?t.min(e.sourceLinks,a)-1:0}function u(e){return function(){return e}}function c(e,t){return p(e.source,t.source)||e.index-t.index}function f(e,t){return p(e.target,t.target)||e.index-t.index}function p(e,t){return e.y0-t.y0}function d(e){return e.value}function h(e){return(e.y0+e.y1)/2}function v(e){return h(e.source)*e.value}function m(e){return h(e.target)*e.value}function y(e){return e.index}function g(e){return e.nodes}function b(e){return e.links}function x(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}var _=function(){var e=0,r=0,a=1,o=1,i=24,s=8,_=y,w=l,k=g,T=b,E=32,O=2/3;function M(){var e={nodes:k.apply(null,arguments),links:T.apply(null,arguments)};return S(e),C(e),A(e),P(e,E),L(e),e}function S(e){e.nodes.forEach((function(e,t){e.index=t,e.sourceLinks=[],e.targetLinks=[]}));var t=n.map(e.nodes,_);e.links.forEach((function(e,n){e.index=n;var r=e.source,a=e.target;"object"!==typeof r&&(r=e.source=x(t,r)),"object"!==typeof a&&(a=e.target=x(t,a)),r.sourceLinks.push(e),a.targetLinks.push(e)}))}function C(e){e.nodes.forEach((function(e){e.value=Math.max(t.sum(e.sourceLinks,d),t.sum(e.targetLinks,d))}))}function A(t){var n,r,o;for(n=t.nodes,r=[],o=0;n.length;++o,n=r,r=[])n.forEach((function(e){e.depth=o,e.sourceLinks.forEach((function(e){r.indexOf(e.target)<0&&r.push(e.target)}))}));for(n=t.nodes,r=[],o=0;n.length;++o,n=r,r=[])n.forEach((function(e){e.height=o,e.targetLinks.forEach((function(e){r.indexOf(e.source)<0&&r.push(e.source)}))}));var l=(a-e-i)/(o-1);t.nodes.forEach((function(t){t.x1=(t.x0=e+Math.max(0,Math.min(o-1,Math.floor(w.call(null,t,o))))*l)+i}))}function P(e){var a=n.nest().key((function(e){return e.x0})).sortKeys(t.ascending).entries(e.nodes).map((function(e){return e.values}));u(),y();for(var i=1,l=E;l>0;--l)f(i*=.99),y(),c(i),y();function u(){var n=t.max(a,(function(e){return e.length})),i=O*(o-r)/(n-1);s>i&&(s=i);var l=t.min(a,(function(e){return(o-r-(e.length-1)*s)/t.sum(e,d)}));a.forEach((function(e){e.forEach((function(e,t){e.y1=(e.y0=t)+e.value*l}))})),e.links.forEach((function(e){e.width=e.value*l}))}function c(e){a.forEach((function(n){n.forEach((function(n){if(n.targetLinks.length){var r=(t.sum(n.targetLinks,v)/t.sum(n.targetLinks,d)-h(n))*e;n.y0+=r,n.y1+=r}}))}))}function f(e){a.slice().reverse().forEach((function(n){n.forEach((function(n){if(n.sourceLinks.length){var r=(t.sum(n.sourceLinks,m)/t.sum(n.sourceLinks,d)-h(n))*e;n.y0+=r,n.y1+=r}}))}))}function y(){a.forEach((function(e){var t,n,a,i=r,l=e.length;for(e.sort(p),a=0;a<l;++a)t=e[a],n=i-t.y0,n>0&&(t.y0+=n,t.y1+=n),i=t.y1+s;if(n=i-s-o,n>0)for(i=t.y0-=n,t.y1-=n,a=l-2;a>=0;--a)t=e[a],n=t.y1+s-i,n>0&&(t.y0-=n,t.y1-=n),i=t.y0}))}}function L(e){e.nodes.forEach((function(e){e.sourceLinks.sort(f),e.targetLinks.sort(c)})),e.nodes.forEach((function(e){var t=e.y0,n=t;e.sourceLinks.forEach((function(e){e.y0=t+e.width/2,t+=e.width})),e.targetLinks.forEach((function(e){e.y1=n+e.width/2,n+=e.width}))}))}return M.update=function(e){return L(e),e},M.nodeId=function(e){return arguments.length?(_="function"===typeof e?e:u(e),M):_},M.nodeAlign=function(e){return arguments.length?(w="function"===typeof e?e:u(e),M):w},M.nodeWidth=function(e){return arguments.length?(i=+e,M):i},M.nodePadding=function(e){return arguments.length?(s=+e,M):s},M.nodes=function(e){return arguments.length?(k="function"===typeof e?e:u(e),M):k},M.links=function(e){return arguments.length?(T="function"===typeof e?e:u(e),M):T},M.size=function(t){return arguments.length?(e=r=0,a=+t[0],o=+t[1],M):[a-e,o-r]},M.extent=function(t){return arguments.length?(e=+t[0][0],a=+t[1][0],r=+t[0][1],o=+t[1][1],M):[[e,r],[a,o]]},M.iterations=function(e){return arguments.length?(E=+e,M):E},M};function w(e){return[e.source.x1,e.y0]}function k(e){return[e.target.x0,e.y1]}var T=function(){return r.linkHorizontal().source(w).target(k)};e.sankey=_,e.sankeyCenter=s,e.sankeyLeft=o,e.sankeyRight=i,e.sankeyJustify=l,e.sankeyLinkHorizontal=T,Object.defineProperty(e,"__esModule",{value:!0})}))},{"d3-array":156,"d3-collection":157,"d3-shape":165}],57:[function(e,t,n){"use strict";t.exports=e("./quad")},{"./quad":58}],58:[function(e,t,n){"use strict";var r=e("binary-search-bounds"),a=e("clamp"),o=e("parse-rect"),i=e("array-bounds"),l=e("pick-by-alias"),s=e("defined"),u=e("flatten-vertex-data"),c=e("is-obj"),f=e("dtype"),p=e("math-log2"),d=1073741824;function h(e,t){for(var n=t[0],r=t[1],o=t[2],i=t[3],l=1/(o-n),s=1/(i-r),u=new Array(e.length),c=0,f=e.length/2;c<f;c++)u[2*c]=a((e[2*c]-n)*l,0,1),u[2*c+1]=a((e[2*c+1]-r)*s,0,1);return u}t.exports=function(e,t){t||(t={}),e=u(e,"float64"),t=l(t,{bounds:"range bounds dataBox databox",maxDepth:"depth maxDepth maxdepth level maxLevel maxlevel levels",dtype:"type dtype format out dst output destination"});var n=s(t.maxDepth,255),a=s(t.bounds,i(e,2));a[0]===a[2]&&a[2]++,a[1]===a[3]&&a[3]++;var v,m=h(e,a),y=e.length>>>1;t.dtype||(t.dtype="array"),"string"===typeof t.dtype?v=new(f(t.dtype))(y):t.dtype&&(v=t.dtype,Array.isArray(v)&&(v.length=y));for(var g=0;g<y;++g)v[g]=g;var b=[],x=[],_=[],w=[];C(0,0,1,v,0,1);for(var k=0,T=0;T<b.length;T++){var E=b[T];if(v.set)v.set(E,k);else for(var O=0,M=E.length;O<M;O++)v[O+k]=E[O];var S=k+b[T].length;w[T]=[k,S],k=S}return v.range=A,v;function C(e,t,r,a,o,i){if(!a.length)return null;var l=b[o]||(b[o]=[]),s=_[o]||(_[o]=[]),u=x[o]||(x[o]=[]),c=l.length;if(o++,o>n||i>d){for(var f=0;f<a.length;f++)l.push(a[f]),s.push(i),u.push(null,null,null,null);return c}if(l.push(a[0]),s.push(i),a.length<=1)return u.push(null,null,null,null),c;for(var p=.5*r,h=e+p,v=t+p,y=[],g=[],w=[],k=[],T=1,E=a.length;T<E;T++){var O=a[T],M=m[2*O],S=m[2*O+1];M<h?S<v?y.push(O):g.push(O):S<v?w.push(O):k.push(O)}return i<<=2,u.push(C(e,t,p,y,o,i),C(e,v,p,g,o,i+1),C(h,t,p,w,o,i+2),C(h,v,p,k,o,i+3)),c}function A(){var t,n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(c(n[n.length-1])){var i=n.pop();n.length||null==i.x&&null==i.l&&null==i.left||(n=[i],t={}),t=l(i,{level:"level maxLevel",d:"d diam diameter r radius px pxSize pixel pixelSize maxD size minSize",lod:"lod details ranges offsets"})}else t={};n.length||(n=a);var u,f=o.apply(void 0,n),d=[Math.min(f.x,f.x+f.width),Math.min(f.y,f.y+f.height),Math.max(f.x,f.x+f.width),Math.max(f.y,f.y+f.height)],v=d[0],m=d[1],y=d[2],g=d[3],_=h([v,m,y,g],a),w=_[0],k=_[1],T=_[2],E=_[3],O=s(t.level,b.length);null!=t.d&&("number"===typeof t.d?u=[t.d,t.d]:t.d.length&&(u=t.d),O=Math.min(Math.max(Math.ceil(-p(Math.abs(u[0])/(a[2]-a[0]))),Math.ceil(-p(Math.abs(u[1])/(a[3]-a[1])))),O));if(O=Math.min(O,b.length),t.lod)return P(w,k,T,E,O);var M=[];function S(t,n,r,a,o,i){if(null!==o&&null!==i){var l=t+r,s=n+r;if(!(w>l||k>s||T<t||E<n)&&!(a>=O)&&o!==i){var u=b[a];void 0===i&&(i=u.length);for(var c=o;c<i;c++){var f=u[c],p=e[2*f],d=e[2*f+1];p>=v&&p<=y&&d>=m&&d<=g&&M.push(f)}var h=x[a],_=h[4*o+0],A=h[4*o+1],P=h[4*o+2],L=h[4*o+3],D=C(h,o+1),j=.5*r,I=a+1;S(t,n,j,I,_,A||P||L||D),S(t,n+j,j,I,A,P||L||D),S(t+j,n,j,I,P,L||D),S(t+j,n+j,j,I,L,D)}}}function C(e,t){var n=null,r=0;while(null===n)if(n=e[4*t+r],r++,r>e.length)return null;return n}return S(0,0,1,0,0,1),M}function P(e,t,n,a,o){for(var i=[],l=0;l<o;l++){var s=_[l],u=w[l][0],c=L(e,t,l),f=L(n,a,l),p=r.ge(s,c),d=r.gt(s,f,p,s.length-1);i[l]=[p+u,d+u]}return i}function L(e,t,n){for(var r=1,a=.5,o=.5,i=.5,l=0;l<n;l++)r<<=2,r+=e<a?t<o?0:1:t<o?2:3,i*=.5,a+=e<a?-i:i,o+=t<o?-i:i;return r}}},{"array-bounds":70,"binary-search-bounds":96,clamp:120,defined:170,dtype:175,"flatten-vertex-data":244,"is-obj":442,"math-log2":453,"parse-rect":478,"pick-by-alias":485}],59:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("@turf/meta"),a=6378137;function o(e){return r.geomReduce(e,(function(e,t){return e+i(t)}),0)}function i(e){var t,n=0;switch(e.type){case"Polygon":return l(e.coordinates);case"MultiPolygon":for(t=0;t<e.coordinates.length;t++)n+=l(e.coordinates[t]);return n;case"Point":case"MultiPoint":case"LineString":case"MultiLineString":return 0}return 0}function l(e){var t=0;if(e&&e.length>0){t+=Math.abs(s(e[0]));for(var n=1;n<e.length;n++)t-=Math.abs(s(e[n]))}return t}function s(e){var t,n,r,o,i,l,s,c=0,f=e.length;if(f>2){for(s=0;s<f;s++)s===f-2?(o=f-2,i=f-1,l=0):s===f-1?(o=f-1,i=0,l=1):(o=s,i=s+1,l=s+2),t=e[o],n=e[i],r=e[l],c+=(u(r[0])-u(t[0]))*Math.sin(u(n[1]));c=c*a*a/2}return c}function u(e){return e*Math.PI/180}n.default=o},{"@turf/meta":63}],60:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("@turf/meta");function a(e){var t=[1/0,1/0,-1/0,-1/0];return r.coordEach(e,(function(e){t[0]>e[0]&&(t[0]=e[0]),t[1]>e[1]&&(t[1]=e[1]),t[2]<e[0]&&(t[2]=e[0]),t[3]<e[1]&&(t[3]=e[1])})),t}n.default=a},{"@turf/meta":63}],61:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("@turf/meta"),a=e("@turf/helpers");function o(e,t){void 0===t&&(t={});var n=0,o=0,i=0;return r.coordEach(e,(function(e){n+=e[0],o+=e[1],i++})),a.point([n/i,o/i],t.properties)}n.default=o},{"@turf/helpers":62,"@turf/meta":63}],62:[function(e,t,n){"use strict";function r(e,t,n){void 0===n&&(n={});var r={type:"Feature"};return(0===n.id||n.id)&&(r.id=n.id),n.bbox&&(r.bbox=n.bbox),r.properties=t||{},r.geometry=e,r}function a(e,t,n){switch(void 0===n&&(n={}),e){case"Point":return o(t).geometry;case"LineString":return u(t).geometry;case"Polygon":return l(t).geometry;case"MultiPoint":return d(t).geometry;case"MultiLineString":return p(t).geometry;case"MultiPolygon":return h(t).geometry;default:throw new Error(e+" is invalid")}}function o(e,t,n){void 0===n&&(n={});var a={type:"Point",coordinates:e};return r(a,t,n)}function i(e,t,n){return void 0===n&&(n={}),f(e.map((function(e){return o(e,t)})),n)}function l(e,t,n){void 0===n&&(n={});for(var a=0,o=e;a<o.length;a++){var i=o[a];if(i.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var l=0;l<i[i.length-1].length;l++)if(i[i.length-1][l]!==i[0][l])throw new Error("First and last Position are not equivalent.")}var s={type:"Polygon",coordinates:e};return r(s,t,n)}function s(e,t,n){return void 0===n&&(n={}),f(e.map((function(e){return l(e,t)})),n)}function u(e,t,n){if(void 0===n&&(n={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var a={type:"LineString",coordinates:e};return r(a,t,n)}function c(e,t,n){return void 0===n&&(n={}),f(e.map((function(e){return u(e,t)})),n)}function f(e,t){void 0===t&&(t={});var n={type:"FeatureCollection"};return t.id&&(n.id=t.id),t.bbox&&(n.bbox=t.bbox),n.features=e,n}function p(e,t,n){void 0===n&&(n={});var a={type:"MultiLineString",coordinates:e};return r(a,t,n)}function d(e,t,n){void 0===n&&(n={});var a={type:"MultiPoint",coordinates:e};return r(a,t,n)}function h(e,t,n){void 0===n&&(n={});var a={type:"MultiPolygon",coordinates:e};return r(a,t,n)}function v(e,t,n){void 0===n&&(n={});var a={type:"GeometryCollection",geometries:e};return r(a,t,n)}function m(e,t){if(void 0===t&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var n=Math.pow(10,t||0);return Math.round(e*n)/n}function y(e,t){void 0===t&&(t="kilometers");var r=n.factors[t];if(!r)throw new Error(t+" units is invalid");return e*r}function g(e,t){void 0===t&&(t="kilometers");var r=n.factors[t];if(!r)throw new Error(t+" units is invalid");return e/r}function b(e,t){return _(g(e,t))}function x(e){var t=e%360;return t<0&&(t+=360),t}function _(e){var t=e%(2*Math.PI);return 180*t/Math.PI}function w(e){var t=e%360;return t*Math.PI/180}function k(e,t,n){if(void 0===t&&(t="kilometers"),void 0===n&&(n="kilometers"),!(e>=0))throw new Error("length must be a positive number");return y(g(e,t),n)}function T(e,t,r){if(void 0===t&&(t="meters"),void 0===r&&(r="kilometers"),!(e>=0))throw new Error("area must be a positive number");var a=n.areaFactors[t];if(!a)throw new Error("invalid original units");var o=n.areaFactors[r];if(!o)throw new Error("invalid final units");return e/a*o}function E(e){return!isNaN(e)&&null!==e&&!Array.isArray(e)&&!/^\s*$/.test(e)}function O(e){return!!e&&e.constructor===Object}function M(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(4!==e.length&&6!==e.length)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach((function(e){if(!E(e))throw new Error("bbox must only contain numbers")}))}function S(e){if(!e)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof e))throw new Error("id must be a number or a string")}function C(){throw new Error("method has been renamed to `radiansToDegrees`")}function A(){throw new Error("method has been renamed to `degreesToRadians`")}function P(){throw new Error("method has been renamed to `lengthToDegrees`")}function L(){throw new Error("method has been renamed to `lengthToRadians`")}function D(){throw new Error("method has been renamed to `radiansToLength`")}function j(){throw new Error("method has been renamed to `bearingToAzimuth`")}function I(){throw new Error("method has been renamed to `convertLength`")}Object.defineProperty(n,"__esModule",{value:!0}),n.earthRadius=6371008.8,n.factors={centimeters:100*n.earthRadius,centimetres:100*n.earthRadius,degrees:n.earthRadius/111325,feet:3.28084*n.earthRadius,inches:39.37*n.earthRadius,kilometers:n.earthRadius/1e3,kilometres:n.earthRadius/1e3,meters:n.earthRadius,metres:n.earthRadius,miles:n.earthRadius/1609.344,millimeters:1e3*n.earthRadius,millimetres:1e3*n.earthRadius,nauticalmiles:n.earthRadius/1852,radians:1,yards:n.earthRadius/1.0936},n.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/n.earthRadius,yards:1/1.0936},n.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},n.feature=r,n.geometry=a,n.point=o,n.points=i,n.polygon=l,n.polygons=s,n.lineString=u,n.lineStrings=c,n.featureCollection=f,n.multiLineString=p,n.multiPoint=d,n.multiPolygon=h,n.geometryCollection=v,n.round=m,n.radiansToLength=y,n.lengthToRadians=g,n.lengthToDegrees=b,n.bearingToAzimuth=x,n.radiansToDegrees=_,n.degreesToRadians=w,n.convertLength=k,n.convertArea=T,n.isNumber=E,n.isObject=O,n.validateBBox=M,n.validateId=S,n.radians2degrees=C,n.degrees2radians=A,n.distanceToDegrees=P,n.distanceToRadians=L,n.radiansToDistance=D,n.bearingToAngle=j,n.convertDistance=I},{}],63:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=e("@turf/helpers");function a(e,t,n){if(null!==e)for(var r,o,i,l,s,u,c,f,p=0,d=0,h=e.type,v="FeatureCollection"===h,m="Feature"===h,y=v?e.features.length:1,g=0;g<y;g++){c=v?e.features[g].geometry:m?e.geometry:e,f=!!c&&"GeometryCollection"===c.type,s=f?c.geometries.length:1;for(var b=0;b<s;b++){var x=0,_=0;if(l=f?c.geometries[b]:c,null!==l){u=l.coordinates;var w=l.type;switch(p=!n||"Polygon"!==w&&"MultiPolygon"!==w?0:1,w){case null:break;case"Point":if(!1===t(u,d,g,x,_))return!1;d++,x++;break;case"LineString":case"MultiPoint":for(r=0;r<u.length;r++){if(!1===t(u[r],d,g,x,_))return!1;d++,"MultiPoint"===w&&x++}"LineString"===w&&x++;break;case"Polygon":case"MultiLineString":for(r=0;r<u.length;r++){for(o=0;o<u[r].length-p;o++){if(!1===t(u[r][o],d,g,x,_))return!1;d++}"MultiLineString"===w&&x++,"Polygon"===w&&_++}"Polygon"===w&&x++;break;case"MultiPolygon":for(r=0;r<u.length;r++){for(_=0,o=0;o<u[r].length;o++){for(i=0;i<u[r][o].length-p;i++){if(!1===t(u[r][o][i],d,g,x,_))return!1;d++}_++}x++}break;case"GeometryCollection":for(r=0;r<l.geometries.length;r++)if(!1===a(l.geometries[r],t,n))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function o(e,t,n,r){var o=n;return a(e,(function(e,r,a,i,l){o=0===r&&void 0===n?e:t(o,e,r,a,i,l)}),r),o}function i(e,t){var n;switch(e.type){case"FeatureCollection":for(n=0;n<e.features.length;n++)if(!1===t(e.features[n].properties,n))break;break;case"Feature":t(e.properties,0);break}}function l(e,t,n){var r=n;return i(e,(function(e,a){r=0===a&&void 0===n?e:t(r,e,a)})),r}function s(e,t){if("Feature"===e.type)t(e,0);else if("FeatureCollection"===e.type)for(var n=0;n<e.features.length;n++)if(!1===t(e.features[n],n))break}function u(e,t,n){var r=n;return s(e,(function(e,a){r=0===a&&void 0===n?e:t(r,e,a)})),r}function c(e){var t=[];return a(e,(function(e){t.push(e)})),t}function f(e,t){var n,r,a,o,i,l,s,u,c,f,p=0,d="FeatureCollection"===e.type,h="Feature"===e.type,v=d?e.features.length:1;for(n=0;n<v;n++){for(l=d?e.features[n].geometry:h?e.geometry:e,u=d?e.features[n].properties:h?e.properties:{},c=d?e.features[n].bbox:h?e.bbox:void 0,f=d?e.features[n].id:h?e.id:void 0,s=!!l&&"GeometryCollection"===l.type,i=s?l.geometries.length:1,a=0;a<i;a++)if(o=s?l.geometries[a]:l,null!==o)switch(o.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":if(!1===t(o,p,u,c,f))return!1;break;case"GeometryCollection":for(r=0;r<o.geometries.length;r++)if(!1===t(o.geometries[r],p,u,c,f))return!1;break;default:throw new Error("Unknown Geometry Type")}else if(!1===t(null,p,u,c,f))return!1;p++}}function p(e,t,n){var r=n;return f(e,(function(e,a,o,i,l){r=0===a&&void 0===n?e:t(r,e,a,o,i,l)})),r}function d(e,t){f(e,(function(e,n,a,o,i){var l,s=null===e?null:e.type;switch(s){case null:case"Point":case"LineString":case"Polygon":return!1!==t(r.feature(e,a,{bbox:o,id:i}),n,0)&&void 0}switch(s){case"MultiPoint":l="Point";break;case"MultiLineString":l="LineString";break;case"MultiPolygon":l="Polygon";break}for(var u=0;u<e.coordinates.length;u++){var c=e.coordinates[u],f={type:l,coordinates:c};if(!1===t(r.feature(f,a),n,u))return!1}}))}function h(e,t,n){var r=n;return d(e,(function(e,a,o){r=0===a&&0===o&&void 0===n?e:t(r,e,a,o)})),r}function v(e,t){d(e,(function(e,n,o){var i=0;if(e.geometry){var l=e.geometry.type;if("Point"!==l&&"MultiPoint"!==l){var s,u=0,c=0,f=0;return!1!==a(e,(function(a,l,p,d,h){if(void 0===s||n>u||d>c||h>f)return s=a,u=n,c=d,f=h,void(i=0);var v=r.lineString([s,a],e.properties);if(!1===t(v,n,o,h,i))return!1;i++,s=a}))&&void 0}}}))}function m(e,t,n){var r=n,a=!1;return v(e,(function(e,o,i,l,s){r=!1===a&&void 0===n?e:t(r,e,o,i,l,s),a=!0})),r}function y(e,t){if(!e)throw new Error("geojson is required");d(e,(function(e,n,a){if(null!==e.geometry){var o=e.geometry.type,i=e.geometry.coordinates;switch(o){case"LineString":if(!1===t(e,n,a,0,0))return!1;break;case"Polygon":for(var l=0;l<i.length;l++)if(!1===t(r.lineString(i[l],e.properties),n,a,l))return!1;break}}}))}function g(e,t,n){var r=n;return y(e,(function(e,a,o,i){r=0===a&&void 0===n?e:t(r,e,a,o,i)})),r}function b(e,t){if(t=t||{},!r.isObject(t))throw new Error("options is invalid");var n,a=t.featureIndex||0,o=t.multiFeatureIndex||0,i=t.geometryIndex||0,l=t.segmentIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":a<0&&(a=e.features.length+a),s=s||e.features[a].properties,n=e.features[a].geometry;break;case"Feature":s=s||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var u=n.coordinates;switch(n.type){case"Point":case"MultiPoint":return null;case"LineString":return l<0&&(l=u.length+l-1),r.lineString([u[l],u[l+1]],s,t);case"Polygon":return i<0&&(i=u.length+i),l<0&&(l=u[i].length+l-1),r.lineString([u[i][l],u[i][l+1]],s,t);case"MultiLineString":return o<0&&(o=u.length+o),l<0&&(l=u[o].length+l-1),r.lineString([u[o][l],u[o][l+1]],s,t);case"MultiPolygon":return o<0&&(o=u.length+o),i<0&&(i=u[o].length+i),l<0&&(l=u[o][i].length-l-1),r.lineString([u[o][i][l],u[o][i][l+1]],s,t)}throw new Error("geojson is invalid")}function x(e,t){if(t=t||{},!r.isObject(t))throw new Error("options is invalid");var n,a=t.featureIndex||0,o=t.multiFeatureIndex||0,i=t.geometryIndex||0,l=t.coordIndex||0,s=t.properties;switch(e.type){case"FeatureCollection":a<0&&(a=e.features.length+a),s=s||e.features[a].properties,n=e.features[a].geometry;break;case"Feature":s=s||e.properties,n=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":n=e;break;default:throw new Error("geojson is invalid")}if(null===n)return null;var u=n.coordinates;switch(n.type){case"Point":return r.point(u,s,t);case"MultiPoint":return o<0&&(o=u.length+o),r.point(u[o],s,t);case"LineString":return l<0&&(l=u.length+l),r.point(u[l],s,t);case"Polygon":return i<0&&(i=u.length+i),l<0&&(l=u[i].length+l),r.point(u[i][l],s,t);case"MultiLineString":return o<0&&(o=u.length+o),l<0&&(l=u[o].length+l),r.point(u[o][l],s,t);case"MultiPolygon":return o<0&&(o=u.length+o),i<0&&(i=u[o].length+i),l<0&&(l=u[o][i].length-l),r.point(u[o][i][l],s,t)}throw new Error("geojson is invalid")}n.coordEach=a,n.coordReduce=o,n.propEach=i,n.propReduce=l,n.featureEach=s,n.featureReduce=u,n.coordAll=c,n.geomEach=f,n.geomReduce=p,n.flattenEach=d,n.flattenReduce=h,n.segmentEach=v,n.segmentReduce=m,n.lineEach=y,n.lineReduce=g,n.findSegment=b,n.findPoint=x},{"@turf/helpers":62}],64:[function(e,t,n){"use strict";var r="undefined"===typeof WeakMap?e("weak-map"):WeakMap,a=e("gl-buffer"),o=e("gl-vao"),i=new r;function l(e){var t=i.get(e),n=t&&(t._triangleBuffer.handle||t._triangleBuffer.buffer);if(!n||!e.isBuffer(n)){var r=a(e,new Float32Array([-1,-1,-1,4,4,-1]));t=o(e,[{buffer:r,type:e.FLOAT,size:2}]),t._triangleBuffer=r,i.set(e,t)}t.bind(),e.drawArrays(e.TRIANGLES,0,3),t.unbind()}t.exports=l},{"gl-buffer":258,"gl-vao":332,"weak-map":574}],65:[function(e,t,n){function r(e){var t=0,n=0,r=0,a=0;return e.map((function(e){e=e.slice();var o=e[0],i=o.toUpperCase();if(o!=i)switch(e[0]=i,o){case"a":e[6]+=r,e[7]+=a;break;case"v":e[1]+=a;break;case"h":e[1]+=r;break;default:for(var l=1;l<e.length;)e[l++]+=r,e[l++]+=a}switch(i){case"Z":r=t,a=n;break;case"H":r=e[1];break;case"V":a=e[1];break;case"M":r=t=e[1],a=n=e[2];break;default:r=e[e.length-2],a=e[e.length-1]}return e}))}t.exports=r},{}],66:[function(e,t,n){var r=e("pad-left");function a(e,t,n){t="number"===typeof t?t:1,n=n||": ";var a=e.split(/\r?\n/),o=String(a.length+t-1).length;return a.map((function(e,a){var i=a+t,l=String(i).length,s=r(i,o-l);return s+n+e})).join("\n")}t.exports=a},{"pad-left":476}],67:[function(e,t,n){"use strict";t.exports=o;var r=e("robust-orientation");function a(e,t){for(var n=new Array(t+1),a=0;a<e.length;++a)n[a]=e[a];for(a=0;a<=e.length;++a){for(var o=e.length;o<=t;++o){for(var i=new Array(t),l=0;l<t;++l)i[l]=Math.pow(o+1-a,l);n[o]=i}var s=r.apply(void 0,n);if(s)return!0}return!1}function o(e){var t=e.length;if(0===t)return[];if(1===t)return[0];for(var n=e[0].length,r=[e[0]],o=[0],i=1;i<t;++i)if(r.push(e[i]),a(r,n)){if(o.push(i),o.length===n+1)return o}else r.pop();return o}},{"robust-orientation":520}],68:[function(e,t,n){"use strict";t.exports=o;var r=e("delaunay-triangulate"),a=e("circumradius");function o(e,t){return r(t).filter((function(n){for(var r=new Array(n.length),o=0;o<n.length;++o)r[o]=t[n[o]];return a(r)*e<1}))}},{circumradius:119,"delaunay-triangulate":171}],69:[function(e,t,n){t.exports=o;var r=e("alpha-complex"),a=e("simplicial-complex-boundary");function o(e,t){return a(r(e,t))}},{"alpha-complex":68,"simplicial-complex-boundary":527}],70:[function(e,t,n){"use strict";function r(e,t){if(!e||null==e.length)throw Error("Argument should be an array");t=null==t?1:Math.floor(t);for(var n=Array(2*t),r=0;r<t;r++){for(var a=-1/0,o=1/0,i=r,l=e.length;i<l;i+=t)e[i]>a&&(a=e[i]),e[i]<o&&(o=e[i]);n[r]=o,n[t+r]=a}return n}t.exports=r},{}],71:[function(e,t,n){"use strict";var r=e("array-bounds");function a(e,t,n){if(!e||null==e.length)throw Error("Argument should be an array");null==t&&(t=1),null==n&&(n=r(e,t));for(var a=0;a<t;a++){var o=n[t+a],i=n[a],l=a,s=e.length;if(o===1/0&&i===-1/0)for(l=a;l<s;l+=t)e[l]=e[l]===o?1:e[l]===i?0:.5;else if(o===1/0)for(l=a;l<s;l+=t)e[l]=e[l]===o?1:0;else if(i===-1/0)for(l=a;l<s;l+=t)e[l]=e[l]===i?0:1;else{var u=o-i;for(l=a;l<s;l+=t)isNaN(e[l])||(e[l]=0===u?.5:(e[l]-i)/u)}}return e}t.exports=a},{"array-bounds":70}],72:[function(e,t,n){t.exports=function(e,t){var n="number"===typeof e,r="number"===typeof t;n&&!r?(t=e,e=0):n||r||(e=0,t=0),e|=0,t|=0;var a=t-e;if(a<0)throw new Error("array length must be positive");for(var o=new Array(a),i=0,l=e;i<a;i++,l++)o[i]=l;return o}},{}],73:[function(e,n,r){(function(t){"use strict";var r=e("object-assign");
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/function a(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,a=0,o=Math.min(n,r);a<o;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0}function o(e){return t.Buffer&&"function"===typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var i=e("util/"),l=Object.prototype.hasOwnProperty,s=Array.prototype.slice,u=function(){return"foo"===function(){}.name}();function c(e){return Object.prototype.toString.call(e)}function f(e){return!o(e)&&("function"===typeof t.ArrayBuffer&&("function"===typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var p=n.exports=b,d=/\s*function\s+([^\(\s]*)\s*/;function h(e){if(i.isFunction(e)){if(u)return e.name;var t=e.toString(),n=t.match(d);return n&&n[1]}}function v(e,t){return"string"===typeof e?e.length<t?e:e.slice(0,t):e}function m(e){if(u||!i.isFunction(e))return i.inspect(e);var t=h(e),n=t?": "+t:"";return"[Function"+n+"]"}function y(e){return v(m(e.actual),128)+" "+e.operator+" "+v(m(e.expected),128)}function g(e,t,n,r,a){throw new p.AssertionError({message:n,actual:e,expected:t,operator:r,stackStartFunction:a})}function b(e,t){e||g(e,!0,t,"==",p.ok)}function x(e,t,n,r){if(e===t)return!0;if(o(e)&&o(t))return 0===a(e,t);if(i.isDate(e)&&i.isDate(t))return e.getTime()===t.getTime();if(i.isRegExp(e)&&i.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"===typeof e||null!==t&&"object"===typeof t){if(f(e)&&f(t)&&c(e)===c(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===a(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(o(e)!==o(t))return!1;r=r||{actual:[],expected:[]};var l=r.actual.indexOf(e);return-1!==l&&l===r.expected.indexOf(t)||(r.actual.push(e),r.expected.push(t),w(e,t,n,r))}return n?e===t:e==t}function _(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t,n,r){if(null===e||void 0===e||null===t||void 0===t)return!1;if(i.isPrimitive(e)||i.isPrimitive(t))return e===t;if(n&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var a=_(e),o=_(t);if(a&&!o||!a&&o)return!1;if(a)return e=s.call(e),t=s.call(t),x(e,t,n);var l,u,c=S(e),f=S(t);if(c.length!==f.length)return!1;for(c.sort(),f.sort(),u=c.length-1;u>=0;u--)if(c[u]!==f[u])return!1;for(u=c.length-1;u>=0;u--)if(l=c[u],!x(e[l],t[l],n,r))return!1;return!0}function k(e,t,n){x(e,t,!0)&&g(e,t,n,"notDeepStrictEqual",k)}function T(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(n){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function E(e){var t;try{e()}catch(n){t=n}return t}function O(e,t,n,r){var a;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),a=E(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!a&&g(a,n,"Missing expected exception"+r);var o="string"===typeof r,l=!e&&i.isError(a),s=!e&&a&&!n;if((l&&o&&T(a,n)||s)&&g(a,n,"Got unwanted exception"+r),e&&a&&n&&!T(a,n)||!e&&a)throw a}function M(e,t){e||g(e,!0,t,"==",M)}p.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=y(this),this.generatedMessage=!0);var t=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,a=h(t),o=r.indexOf("\n"+a);if(o>=0){var i=r.indexOf("\n",o+1);r=r.substring(i+1)}this.stack=r}}},i.inherits(p.AssertionError,Error),p.fail=g,p.ok=b,p.equal=function(e,t,n){e!=t&&g(e,t,n,"==",p.equal)},p.notEqual=function(e,t,n){e==t&&g(e,t,n,"!=",p.notEqual)},p.deepEqual=function(e,t,n){x(e,t,!1)||g(e,t,n,"deepEqual",p.deepEqual)},p.deepStrictEqual=function(e,t,n){x(e,t,!0)||g(e,t,n,"deepStrictEqual",p.deepStrictEqual)},p.notDeepEqual=function(e,t,n){x(e,t,!1)&&g(e,t,n,"notDeepEqual",p.notDeepEqual)},p.notDeepStrictEqual=k,p.strictEqual=function(e,t,n){e!==t&&g(e,t,n,"===",p.strictEqual)},p.notStrictEqual=function(e,t,n){e===t&&g(e,t,n,"!==",p.notStrictEqual)},p.throws=function(e,t,n){O(!0,e,t,n)},p.doesNotThrow=function(e,t,n){O(!1,e,t,n)},p.ifError=function(e){if(e)throw e},p.strict=r(M,p,{equal:p.strictEqual,deepEqual:p.deepStrictEqual,notEqual:p.notStrictEqual,notDeepEqual:p.notDeepStrictEqual}),p.strict.strict=p.strict;var S=Object.keys||function(e){var t=[];for(var n in e)l.call(e,n)&&t.push(n);return t}}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"object-assign":473,"util/":76}],74:[function(e,t,n){"function"===typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},{}],75:[function(e,t,n){t.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},{}],76:[function(e,n,r){(function(t,n){var a=/%[sdj%]/g;r.format=function(e){if(!w(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(l(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(a,(function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),s=r[n];n<o;s=r[++n])b(s)||!O(s)?i+=" "+s:i+=" "+l(s);return i},r.deprecate=function(e,a){if(T(n.process))return function(){return r.deprecate(e,a).apply(this,arguments)};if(!0===t.noDeprecation)return e;var o=!1;function i(){if(!o){if(t.throwDeprecation)throw new Error(a);t.traceDeprecation?console.trace(a):console.error(a),o=!0}return e.apply(this,arguments)}return i};var o,i={};function l(e,t){var n={seen:[],stylize:u};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),g(t)?n.showHidden=t:t&&r._extend(n,t),T(n.showHidden)&&(n.showHidden=!1),T(n.depth)&&(n.depth=2),T(n.colors)&&(n.colors=!1),T(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=s),f(n,e,n.depth)}function s(e,t){var n=l.styles[t];return n?"["+l.colors[n][0]+"m"+e+"["+l.colors[n][1]+"m":e}function u(e,t){return e}function c(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}function f(e,t,n){if(e.customInspect&&t&&C(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var a=t.inspect(n,e);return w(a)||(a=f(e,a,n)),a}var o=p(e,t);if(o)return o;var i=Object.keys(t),l=c(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),S(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return d(t);if(0===i.length){if(C(t)){var s=t.name?": "+t.name:"";return e.stylize("[Function"+s+"]","special")}if(E(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(M(t))return e.stylize(Date.prototype.toString.call(t),"date");if(S(t))return d(t)}var u,g="",b=!1,x=["{","}"];if(y(t)&&(b=!0,x=["[","]"]),C(t)){var _=t.name?": "+t.name:"";g=" [Function"+_+"]"}return E(t)&&(g=" "+RegExp.prototype.toString.call(t)),M(t)&&(g=" "+Date.prototype.toUTCString.call(t)),S(t)&&(g=" "+d(t)),0!==i.length||b&&0!=t.length?n<0?E(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),u=b?h(e,t,n,l,i):i.map((function(r){return v(e,t,n,l,r,b)})),e.seen.pop(),m(u,g,x)):x[0]+g+x[1]}function p(e,t){if(T(t))return e.stylize("undefined","undefined");if(w(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return _(t)?e.stylize(""+t,"number"):g(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,a){for(var o=[],i=0,l=t.length;i<l;++i)I(t,String(i))?o.push(v(e,t,n,r,String(i),!0)):o.push("");return a.forEach((function(a){a.match(/^\d+$/)||o.push(v(e,t,n,r,a,!0))})),o}function v(e,t,n,r,a,o){var i,l,s;if(s=Object.getOwnPropertyDescriptor(t,a)||{value:t[a]},s.get?l=s.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):s.set&&(l=e.stylize("[Setter]","special")),I(r,a)||(i="["+a+"]"),l||(e.seen.indexOf(s.value)<0?(l=b(n)?f(e,s.value,null):f(e,s.value,n-1),l.indexOf("\n")>-1&&(l=o?l.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+l.split("\n").map((function(e){return" "+e})).join("\n"))):l=e.stylize("[Circular]","special")),T(i)){if(o&&a.match(/^\d+$/))return l;i=JSON.stringify(""+a),i.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(i=i.substr(1,i.length-2),i=e.stylize(i,"name")):(i=i.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),i=e.stylize(i,"string"))}return i+": "+l}function m(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function y(e){return Array.isArray(e)}function g(e){return"boolean"===typeof e}function b(e){return null===e}function x(e){return null==e}function _(e){return"number"===typeof e}function w(e){return"string"===typeof e}function k(e){return"symbol"===typeof e}function T(e){return void 0===e}function E(e){return O(e)&&"[object RegExp]"===P(e)}function O(e){return"object"===typeof e&&null!==e}function M(e){return O(e)&&"[object Date]"===P(e)}function S(e){return O(e)&&("[object Error]"===P(e)||e instanceof Error)}function C(e){return"function"===typeof e}function A(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function P(e){return Object.prototype.toString.call(e)}function L(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(T(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!i[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=t.pid;i[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else i[e]=function(){};return i[e]},r.inspect=l,l.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},l.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=y,r.isBoolean=g,r.isNull=b,r.isNullOrUndefined=x,r.isNumber=_,r.isString=w,r.isSymbol=k,r.isUndefined=T,r.isRegExp=E,r.isObject=O,r.isDate=M,r.isError=S,r.isFunction=C,r.isPrimitive=A,r.isBuffer=e("./support/isBuffer");var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function j(){var e=new Date,t=[L(e.getHours()),L(e.getMinutes()),L(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],t].join(" ")}function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){console.log("%s - %s",j(),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!O(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e}}).call(this,e("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./support/isBuffer":75,_process:500,inherits:74}],77:[function(e,t,n){t.exports=function(e){return atob(e)}},{}],78:[function(e,t,n){"use strict";t.exports=o;var r=e("robust-linear-solve");function a(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return t}function o(e,t){for(var n=t.length,o=new Array(n+1),i=0;i<n;++i){for(var l=new Array(n+1),s=0;s<=n;++s)l[s]=e[s][i];o[i]=l}o[n]=new Array(n+1);for(i=0;i<=n;++i)o[n][i]=1;var u=new Array(n+1);for(i=0;i<n;++i)u[i]=t[i];u[n]=1;var c=r(o,u),f=a(c[n+1]);0===f&&(f=1);var p=new Array(n+1);for(i=0;i<=n;++i)p[i]=a(c[i])/f;return p}},{"robust-linear-solve":519}],79:[function(e,t,n){"use strict";n.byteLength=c,n.toByteArray=p,n.fromByteArray=v;for(var r=[],a=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=i.length;l<s;++l)r[l]=i[l],a[i.charCodeAt(l)]=l;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function f(e,t,n){return 3*(t+n)/4-n}function p(e){var t,n,r=u(e),i=r[0],l=r[1],s=new o(f(e,i,l)),c=0,p=l>0?i-4:i;for(n=0;n<p;n+=4)t=a[e.charCodeAt(n)]<<18|a[e.charCodeAt(n+1)]<<12|a[e.charCodeAt(n+2)]<<6|a[e.charCodeAt(n+3)],s[c++]=t>>16&255,s[c++]=t>>8&255,s[c++]=255&t;return 2===l&&(t=a[e.charCodeAt(n)]<<2|a[e.charCodeAt(n+1)]>>4,s[c++]=255&t),1===l&&(t=a[e.charCodeAt(n)]<<10|a[e.charCodeAt(n+1)]<<4|a[e.charCodeAt(n+2)]>>2,s[c++]=t>>8&255,s[c++]=255&t),s}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function h(e,t,n){for(var r,a=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(d(r));return a.join("")}function v(e){for(var t,n=e.length,a=n%3,o=[],i=16383,l=0,s=n-a;l<s;l+=i)o.push(h(e,l,l+i>s?s:l+i));return 1===a?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===a&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],80:[function(e,t,n){"use strict";var r=e("./lib/rationalize");function a(e,t){return r(e[0].mul(t[1]).add(t[0].mul(e[1])),e[1].mul(t[1]))}t.exports=a},{"./lib/rationalize":90}],81:[function(e,t,n){"use strict";function r(e,t){return e[0].mul(t[1]).cmp(t[0].mul(e[1]))}t.exports=r},{}],82:[function(e,t,n){"use strict";var r=e("./lib/rationalize");function a(e,t){return r(e[0].mul(t[1]),e[1].mul(t[0]))}t.exports=a},{"./lib/rationalize":90}],83:[function(e,t,n){"use strict";var r=e("./is-rat"),a=e("./lib/is-bn"),o=e("./lib/num-to-bn"),i=e("./lib/str-to-bn"),l=e("./lib/rationalize"),s=e("./div");function u(e,t){if(r(e))return t?s(e,u(t)):[e[0].clone(),e[1].clone()];var n,c,f=0;if(a(e))n=e.clone();else if("string"===typeof e)n=i(e);else{if(0===e)return[o(0),o(1)];if(e===Math.floor(e))n=o(e);else{while(e!==Math.floor(e))e*=Math.pow(2,256),f-=256;n=o(e)}}if(r(t))n.mul(t[1]),c=t[0].clone();else if(a(t))c=t.clone();else if("string"===typeof t)c=i(t);else if(t)if(t===Math.floor(t))c=o(t);else{while(t!==Math.floor(t))t*=Math.pow(2,256),f+=256;c=o(t)}else c=o(1);return f>0?n=n.ushln(f):f<0&&(c=c.ushln(-f)),l(n,c)}t.exports=u},{"./div":82,"./is-rat":84,"./lib/is-bn":88,"./lib/num-to-bn":89,"./lib/rationalize":90,"./lib/str-to-bn":91}],84:[function(e,t,n){"use strict";var r=e("./lib/is-bn");function a(e){return Array.isArray(e)&&2===e.length&&r(e[0])&&r(e[1])}t.exports=a},{"./lib/is-bn":88}],85:[function(e,t,n){"use strict";var r=e("bn.js");function a(e){return e.cmp(new r(0))}t.exports=a},{"bn.js":99}],86:[function(e,t,n){"use strict";var r=e("./bn-sign");function a(e){var t=e.length,n=e.words,a=0;if(1===t)a=n[0];else if(2===t)a=n[0]+67108864*n[1];else for(var o=0;o<t;o++){var i=n[o];a+=i*Math.pow(67108864,o)}return r(e)*a}t.exports=a},{"./bn-sign":85}],87:[function(e,t,n){"use strict";var r=e("double-bits"),a=e("bit-twiddle").countTrailingZeros;function o(e){var t=a(r.lo(e));if(t<32)return t;var n=a(r.hi(e));return n>20?52:n+32}t.exports=o},{"bit-twiddle":97,"double-bits":173}],88:[function(e,t,n){"use strict";e("bn.js");function r(e){return e&&"object"===typeof e&&Boolean(e.words)}t.exports=r},{"bn.js":99}],89:[function(e,t,n){"use strict";var r=e("bn.js"),a=e("double-bits");function o(e){var t=a.exponent(e);return t<52?new r(e):new r(e*Math.pow(2,52-t)).ushln(t-52)}t.exports=o},{"bn.js":99,"double-bits":173}],90:[function(e,t,n){"use strict";var r=e("./num-to-bn"),a=e("./bn-sign");function o(e,t){var n=a(e),o=a(t);if(0===n)return[r(0),r(1)];if(0===o)return[r(0),r(0)];o<0&&(e=e.neg(),t=t.neg());var i=e.gcd(t);return i.cmpn(1)?[e.div(i),t.div(i)]:[e,t]}t.exports=o},{"./bn-sign":85,"./num-to-bn":89}],91:[function(e,t,n){"use strict";var r=e("bn.js");function a(e){return new r(e)}t.exports=a},{"bn.js":99}],92:[function(e,t,n){"use strict";var r=e("./lib/rationalize");function a(e,t){return r(e[0].mul(t[0]),e[1].mul(t[1]))}t.exports=a},{"./lib/rationalize":90}],93:[function(e,t,n){"use strict";var r=e("./lib/bn-sign");function a(e){return r(e[0])*r(e[1])}t.exports=a},{"./lib/bn-sign":85}],94:[function(e,t,n){"use strict";var r=e("./lib/rationalize");function a(e,t){return r(e[0].mul(t[1]).sub(e[1].mul(t[0])),e[1].mul(t[1]))}t.exports=a},{"./lib/rationalize":90}],95:[function(e,t,n){"use strict";var r=e("./lib/bn-to-num"),a=e("./lib/ctz");function o(e){var t=e[0],n=e[1];if(0===t.cmpn(0))return 0;var o=t.abs().divmod(n.abs()),i=o.div,l=r(i),s=o.mod,u=t.negative!==n.negative?-1:1;if(0===s.cmpn(0))return u*l;if(l){var c=a(l)+4,f=r(s.ushln(c).divRound(n));return u*(l+f*Math.pow(2,-c))}var p=n.bitLength()-s.bitLength()+53;f=r(s.ushln(p).divRound(n));return p<1023?u*f*Math.pow(2,-p):(f*=Math.pow(2,-1023),u*f*Math.pow(2,1023-p))}t.exports=o},{"./lib/bn-to-num":86,"./lib/ctz":87}],96:[function(e,t,n){"use strict";function r(e,t,n,r,a){var o=["function ",e,"(a,l,h,",r.join(","),"){",a?"":"var i=",n?"l-1":"h+1",";while(l<=h){var m=(l+h)>>>1,x=a[m]"];return a?t.indexOf("c")<0?o.push(";if(x===y){return m}else if(x<=y){"):o.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):o.push(";if(",t,"){i=m;"),n?o.push("l=m+1}else{h=m-1}"):o.push("h=m-1}else{l=m+1}"),o.push("}"),a?o.push("return -1};"):o.push("return i};"),o.join("")}function a(e,t,n,a){var o=new Function([r("A","x"+e+"y",t,["y"],a),r("P","c(x,y)"+e+"0",t,["y","c"],a),"function dispatchBsearch",n,"(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch",n].join(""));return o()}t.exports={ge:a(">=",!1,"GE"),gt:a(">",!1,"GT"),lt:a("<",!0,"LT"),le:a("<=",!0,"LE"),eq:a("-",!0,"EQ",!0)}},{}],97:[function(e,t,n){"use strict";var r=32;function a(e){var t=32;return e&=-e,e&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}n.INT_BITS=r,n.INT_MAX=2147483647,n.INT_MIN=-1<<r-1,n.sign=function(e){return(e>0)-(e<0)},n.abs=function(e){var t=e>>r-1;return(e^t)-t},n.min=function(e,t){return t^(e^t)&-(e<t)},n.max=function(e,t){return e^(e^t)&-(e<t)},n.isPow2=function(e){return!(e&e-1)&&!!e},n.log2=function(e){var t,n;return t=(e>65535)<<4,e>>>=t,n=(e>255)<<3,e>>>=n,t|=n,n=(e>15)<<2,e>>>=n,t|=n,n=(e>3)<<1,e>>>=n,t|=n,t|e>>1},n.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},n.popCount=function(e){return e-=e>>>1&1431655765,e=(858993459&e)+(e>>>2&858993459),16843009*(e+(e>>>4)&252645135)>>>24},n.countTrailingZeros=a,n.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1},n.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e-(e>>>1)},n.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,e&=15,27030>>>e&1};var o=new Array(256);(function(e){for(var t=0;t<256;++t){var n=t,r=t,a=7;for(n>>>=1;n;n>>>=1)r<<=1,r|=1&n,--a;e[t]=r<<a&255}})(o),n.reverse=function(e){return o[255&e]<<24|o[e>>>8&255]<<16|o[e>>>16&255]<<8|o[e>>>24&255]},n.interleave2=function(e,t){return e&=65535,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t&=65535,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e|t<<1},n.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=858993459&(e|e>>>1),e=252645135&(e|e>>>2),e=16711935&(e|e>>>4),e=65535&(e|e>>>16),e<<16>>16},n.interleave3=function(e,t,n){return e&=1023,e=4278190335&(e|e<<16),e=251719695&(e|e<<8),e=3272356035&(e|e<<4),e=1227133513&(e|e<<2),t&=1023,t=4278190335&(t|t<<16),t=251719695&(t|t<<8),t=3272356035&(t|t<<4),t=1227133513&(t|t<<2),e|=t<<1,n&=1023,n=4278190335&(n|n<<16),n=251719695&(n|n<<8),n=3272356035&(n|n<<4),n=1227133513&(n|n<<2),e|n<<2},n.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=3272356035&(e|e>>>2),e=251719695&(e|e>>>4),e=4278190335&(e|e>>>8),e=1023&(e|e>>>16),e<<22>>22},n.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>a(e)+1}},{}],98:[function(e,t,n){"use strict";var r=e("clamp");t.exports=o;var a=1e20;function o(e,t){t||(t={});var n,o,l,s,u,c,f,p,d,h,v,m=null==t.cutoff?.25:t.cutoff,y=null==t.radius?8:t.radius,g=t.channel||0;if(ArrayBuffer.isView(e)||Array.isArray(e)){if(!t.width||!t.height)throw Error("For raw data width and height should be provided by options");n=t.width,o=t.height,s=e,c=t.stride?t.stride:Math.floor(e.length/n/o)}else window.HTMLCanvasElement&&e instanceof window.HTMLCanvasElement?(p=e,f=p.getContext("2d"),n=p.width,o=p.height,d=f.getImageData(0,0,n,o),s=d.data,c=4):window.CanvasRenderingContext2D&&e instanceof window.CanvasRenderingContext2D?(p=e.canvas,f=e,n=p.width,o=p.height,d=f.getImageData(0,0,n,o),s=d.data,c=4):window.ImageData&&e instanceof window.ImageData&&(d=e,n=e.width,o=e.height,s=d.data,c=4);if(l=Math.max(n,o),window.Uint8ClampedArray&&s instanceof window.Uint8ClampedArray||window.Uint8Array&&s instanceof window.Uint8Array)for(u=s,s=Array(n*o),h=0,v=u.length;h<v;h++)s[h]=u[h*c+g]/255;else if(1!==c)throw Error("Raw data can have only 1 value per pixel");var b=Array(n*o),x=Array(n*o),_=Array(l),w=Array(l),k=Array(l+1),T=Array(l);for(h=0,v=n*o;h<v;h++){var E=s[h];b[h]=1===E?0:0===E?a:Math.pow(Math.max(0,.5-E),2),x[h]=1===E?a:0===E?0:Math.pow(Math.max(0,E-.5),2)}i(b,n,o,_,w,T,k),i(x,n,o,_,w,T,k);var O=window.Float32Array?new Float32Array(n*o):new Array(n*o);for(h=0,v=n*o;h<v;h++)O[h]=r(1-((b[h]-x[h])/y+m),0,1);return O}function i(e,t,n,r,a,o,i){for(var s=0;s<t;s++){for(var u=0;u<n;u++)r[u]=e[u*t+s];for(l(r,a,o,i,n),u=0;u<n;u++)e[u*t+s]=a[u]}for(u=0;u<n;u++){for(s=0;s<t;s++)r[s]=e[u*t+s];for(l(r,a,o,i,t),s=0;s<t;s++)e[u*t+s]=Math.sqrt(a[s])}}function l(e,t,n,r,o){n[0]=0,r[0]=-a,r[1]=+a;for(var i=1,l=0;i<o;i++){var s=(e[i]+i*i-(e[n[l]]+n[l]*n[l]))/(2*i-2*n[l]);while(s<=r[l])l--,s=(e[i]+i*i-(e[n[l]]+n[l]*n[l]))/(2*i-2*n[l]);l++,n[l]=i,r[l]=s,r[l+1]=+a}for(i=0,l=0;i<o;i++){while(r[l+1]<i)l++;t[i]=(i-n[l])*(i-n[l])+e[n[l]]}}},{clamp:120}],99:[function(e,t,n){(function(t,n){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function a(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var i;"object"===typeof t?t.exports=o:n.BN=o,o.BN=o,o.wordSize=26;try{i=e("buffer").Buffer}catch(O){}function l(e,t,n){for(var r=0,a=Math.min(e.length,n),o=t;o<a;o++){var i=e.charCodeAt(o)-48;r<<=4,r|=i>=49&&i<=54?i-49+10:i>=17&&i<=22?i-17+10:15&i}return r}function s(e,t,n,r){for(var a=0,o=Math.min(e.length,n),i=t;i<o;i++){var l=e.charCodeAt(i)-48;a*=r,a+=l>=49?l-49+10:l>=17?l-17+10:l}return a}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var a=0;"-"===e[0]&&a++,16===t?this._parseHex(e,a):this._parseBase(e,t,a),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var o,i,l=0;if("be"===n)for(a=e.length-1,o=0;a>=0;a-=3)i=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[o]|=i<<l&67108863,this.words[o+1]=i>>>26-l&67108863,l+=24,l>=26&&(l-=26,o++);else if("le"===n)for(a=0,o=0;a<e.length;a+=3)i=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[o]|=i<<l&67108863,this.words[o+1]=i>>>26-l&67108863,l+=24,l>=26&&(l-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var r,a,o=0;for(n=e.length-6,r=0;n>=t;n-=6)a=l(e,n,n+6),this.words[r]|=a<<o&67108863,this.words[r+1]|=a>>>26-o&4194303,o+=24,o>=26&&(o-=26,r++);n+6!==t&&(a=l(e,t,n+6),this.words[r]|=a<<o&67108863,this.words[r+1]|=a>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=t)r++;r--,a=a/t|0;for(var o=e.length-n,i=o%r,l=Math.min(o,o-i)+n,u=0,c=n;c<l;c+=r)u=s(e,c,c+r,t),this.imuln(a),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==i){var f=1;for(u=s(e,c,e.length,t),c=0;c<i;c++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){while(this.length<e)this.words[this.length++]=0;return this},o.prototype.strip=function(){while(this.length>1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,a=n%26;t[n]=(e.words[r]&1<<a)>>>a}return t}function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var a=0|e.words[0],o=0|t.words[0],i=a*o,l=67108863&i,s=i/67108864|0;n.words[0]=l;for(var u=1;u<r;u++){for(var c=s>>>26,f=67108863&s,p=Math.min(u,t.length-1),d=Math.max(0,u-e.length+1);d<=p;d++){var h=u-d|0;a=0|e.words[h],o=0|t.words[d],i=a*o+f,c+=i/67108864|0,f=67108863&i}n.words[u]=0|f,s=0|c}return 0!==s?n.words[u]=0|s:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(e=e||10,t=0|t||1,16===e||"hex"===e){n="";for(var a=0,o=0,i=0;i<this.length;i++){var l=this.words[i],s=(16777215&(l<<a|o)).toString(16);o=l>>>24-a&16777215,n=0!==o||i!==this.length-1?u[6-s.length]+s+n:s+n,a+=2,a>=26&&(a-=26,i--)}0!==o&&(n=o.toString(16)+n);while(n.length%t!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var p=c[e],d=f[e];n="";var h=this.clone();h.negative=0;while(!h.isZero()){var v=h.modn(d).toString(e);h=h.idivn(d),n=h.isZero()?v+n:u[p-v.length]+v+n}this.isZero()&&(n="0"+n);while(n.length%t!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r("undefined"!==typeof i),this.toArrayLike(i,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var a=this.byteLength(),o=n||Math.max(1,a);r(a<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var i,l,s="le"===t,u=new e(o),c=this.clone();if(s){for(l=0;!c.isZero();l++)i=c.andln(255),c.iushrn(8),u[l]=i;for(;l<o;l++)u[l]=0}else{for(l=0;l<o-a;l++)u[l]=0;for(l=0;!c.isZero();l++)i=c.andln(255),c.iushrn(8),u[o-l-1]=i}return u},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){while(this.length<e.length)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return r(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return r(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return r(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var a=0;a<t;a++)this.words[a]=67108863&~this.words[a];return n>0&&(this.words[a]=~this.words[a]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,a=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<a:this.words[n]&~(1<<a),this.strip()},o.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var a=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+a,this.words[o]=67108863&t,a=t>>>26;for(;0!==a&&o<n.length;o++)t=(0|n.words[o])+a,this.words[o]=67108863&t,a=t>>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,a=this.cmp(e);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=e):(n=e,r=this);for(var o=0,i=0;i<r.length;i++)t=(0|n.words[i])-(0|r.words[i])+o,o=t>>26,this.words[i]=67108863&t;for(;0!==o&&i<n.length;i++)t=(0|n.words[i])+o,o=t>>26,this.words[i]=67108863&t;if(0===o&&i<n.length&&n!==this)for(;i<n.length;i++)this.words[i]=n.words[i];return this.length=Math.max(this.length,i),n!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var h=function(e,t,n){var r,a,o,i=e.words,l=t.words,s=n.words,u=0,c=0|i[0],f=8191&c,p=c>>>13,d=0|i[1],h=8191&d,v=d>>>13,m=0|i[2],y=8191&m,g=m>>>13,b=0|i[3],x=8191&b,_=b>>>13,w=0|i[4],k=8191&w,T=w>>>13,E=0|i[5],O=8191&E,M=E>>>13,S=0|i[6],C=8191&S,A=S>>>13,P=0|i[7],L=8191&P,D=P>>>13,j=0|i[8],I=8191&j,R=j>>>13,z=0|i[9],N=8191&z,F=z>>>13,B=0|l[0],V=8191&B,H=B>>>13,U=0|l[1],W=8191&U,q=U>>>13,$=0|l[2],G=8191&$,Y=$>>>13,K=0|l[3],X=8191&K,Z=K>>>13,J=0|l[4],Q=8191&J,ee=J>>>13,te=0|l[5],ne=8191&te,re=te>>>13,ae=0|l[6],oe=8191&ae,ie=ae>>>13,le=0|l[7],se=8191&le,ue=le>>>13,ce=0|l[8],fe=8191&ce,pe=ce>>>13,de=0|l[9],he=8191&de,ve=de>>>13;n.negative=e.negative^t.negative,n.length=19,r=Math.imul(f,V),a=Math.imul(f,H),a=a+Math.imul(p,V)|0,o=Math.imul(p,H);var me=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(h,V),a=Math.imul(h,H),a=a+Math.imul(v,V)|0,o=Math.imul(v,H),r=r+Math.imul(f,W)|0,a=a+Math.imul(f,q)|0,a=a+Math.imul(p,W)|0,o=o+Math.imul(p,q)|0;var ye=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(y,V),a=Math.imul(y,H),a=a+Math.imul(g,V)|0,o=Math.imul(g,H),r=r+Math.imul(h,W)|0,a=a+Math.imul(h,q)|0,a=a+Math.imul(v,W)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(f,G)|0,a=a+Math.imul(f,Y)|0,a=a+Math.imul(p,G)|0,o=o+Math.imul(p,Y)|0;var ge=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(x,V),a=Math.imul(x,H),a=a+Math.imul(_,V)|0,o=Math.imul(_,H),r=r+Math.imul(y,W)|0,a=a+Math.imul(y,q)|0,a=a+Math.imul(g,W)|0,o=o+Math.imul(g,q)|0,r=r+Math.imul(h,G)|0,a=a+Math.imul(h,Y)|0,a=a+Math.imul(v,G)|0,o=o+Math.imul(v,Y)|0,r=r+Math.imul(f,X)|0,a=a+Math.imul(f,Z)|0,a=a+Math.imul(p,X)|0,o=o+Math.imul(p,Z)|0;var be=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(k,V),a=Math.imul(k,H),a=a+Math.imul(T,V)|0,o=Math.imul(T,H),r=r+Math.imul(x,W)|0,a=a+Math.imul(x,q)|0,a=a+Math.imul(_,W)|0,o=o+Math.imul(_,q)|0,r=r+Math.imul(y,G)|0,a=a+Math.imul(y,Y)|0,a=a+Math.imul(g,G)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(h,X)|0,a=a+Math.imul(h,Z)|0,a=a+Math.imul(v,X)|0,o=o+Math.imul(v,Z)|0,r=r+Math.imul(f,Q)|0,a=a+Math.imul(f,ee)|0,a=a+Math.imul(p,Q)|0,o=o+Math.imul(p,ee)|0;var xe=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(O,V),a=Math.imul(O,H),a=a+Math.imul(M,V)|0,o=Math.imul(M,H),r=r+Math.imul(k,W)|0,a=a+Math.imul(k,q)|0,a=a+Math.imul(T,W)|0,o=o+Math.imul(T,q)|0,r=r+Math.imul(x,G)|0,a=a+Math.imul(x,Y)|0,a=a+Math.imul(_,G)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(y,X)|0,a=a+Math.imul(y,Z)|0,a=a+Math.imul(g,X)|0,o=o+Math.imul(g,Z)|0,r=r+Math.imul(h,Q)|0,a=a+Math.imul(h,ee)|0,a=a+Math.imul(v,Q)|0,o=o+Math.imul(v,ee)|0,r=r+Math.imul(f,ne)|0,a=a+Math.imul(f,re)|0,a=a+Math.imul(p,ne)|0,o=o+Math.imul(p,re)|0;var _e=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(C,V),a=Math.imul(C,H),a=a+Math.imul(A,V)|0,o=Math.imul(A,H),r=r+Math.imul(O,W)|0,a=a+Math.imul(O,q)|0,a=a+Math.imul(M,W)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(k,G)|0,a=a+Math.imul(k,Y)|0,a=a+Math.imul(T,G)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(x,X)|0,a=a+Math.imul(x,Z)|0,a=a+Math.imul(_,X)|0,o=o+Math.imul(_,Z)|0,r=r+Math.imul(y,Q)|0,a=a+Math.imul(y,ee)|0,a=a+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,a=a+Math.imul(h,re)|0,a=a+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0,r=r+Math.imul(f,oe)|0,a=a+Math.imul(f,ie)|0,a=a+Math.imul(p,oe)|0,o=o+Math.imul(p,ie)|0;var we=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(L,V),a=Math.imul(L,H),a=a+Math.imul(D,V)|0,o=Math.imul(D,H),r=r+Math.imul(C,W)|0,a=a+Math.imul(C,q)|0,a=a+Math.imul(A,W)|0,o=o+Math.imul(A,q)|0,r=r+Math.imul(O,G)|0,a=a+Math.imul(O,Y)|0,a=a+Math.imul(M,G)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(k,X)|0,a=a+Math.imul(k,Z)|0,a=a+Math.imul(T,X)|0,o=o+Math.imul(T,Z)|0,r=r+Math.imul(x,Q)|0,a=a+Math.imul(x,ee)|0,a=a+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(y,ne)|0,a=a+Math.imul(y,re)|0,a=a+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0,r=r+Math.imul(h,oe)|0,a=a+Math.imul(h,ie)|0,a=a+Math.imul(v,oe)|0,o=o+Math.imul(v,ie)|0,r=r+Math.imul(f,se)|0,a=a+Math.imul(f,ue)|0,a=a+Math.imul(p,se)|0,o=o+Math.imul(p,ue)|0;var ke=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(I,V),a=Math.imul(I,H),a=a+Math.imul(R,V)|0,o=Math.imul(R,H),r=r+Math.imul(L,W)|0,a=a+Math.imul(L,q)|0,a=a+Math.imul(D,W)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(C,G)|0,a=a+Math.imul(C,Y)|0,a=a+Math.imul(A,G)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(O,X)|0,a=a+Math.imul(O,Z)|0,a=a+Math.imul(M,X)|0,o=o+Math.imul(M,Z)|0,r=r+Math.imul(k,Q)|0,a=a+Math.imul(k,ee)|0,a=a+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,ne)|0,a=a+Math.imul(x,re)|0,a=a+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(y,oe)|0,a=a+Math.imul(y,ie)|0,a=a+Math.imul(g,oe)|0,o=o+Math.imul(g,ie)|0,r=r+Math.imul(h,se)|0,a=a+Math.imul(h,ue)|0,a=a+Math.imul(v,se)|0,o=o+Math.imul(v,ue)|0,r=r+Math.imul(f,fe)|0,a=a+Math.imul(f,pe)|0,a=a+Math.imul(p,fe)|0,o=o+Math.imul(p,pe)|0;var Te=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(N,V),a=Math.imul(N,H),a=a+Math.imul(F,V)|0,o=Math.imul(F,H),r=r+Math.imul(I,W)|0,a=a+Math.imul(I,q)|0,a=a+Math.imul(R,W)|0,o=o+Math.imul(R,q)|0,r=r+Math.imul(L,G)|0,a=a+Math.imul(L,Y)|0,a=a+Math.imul(D,G)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(C,X)|0,a=a+Math.imul(C,Z)|0,a=a+Math.imul(A,X)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(O,Q)|0,a=a+Math.imul(O,ee)|0,a=a+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(k,ne)|0,a=a+Math.imul(k,re)|0,a=a+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,a=a+Math.imul(x,ie)|0,a=a+Math.imul(_,oe)|0,o=o+Math.imul(_,ie)|0,r=r+Math.imul(y,se)|0,a=a+Math.imul(y,ue)|0,a=a+Math.imul(g,se)|0,o=o+Math.imul(g,ue)|0,r=r+Math.imul(h,fe)|0,a=a+Math.imul(h,pe)|0,a=a+Math.imul(v,fe)|0,o=o+Math.imul(v,pe)|0,r=r+Math.imul(f,he)|0,a=a+Math.imul(f,ve)|0,a=a+Math.imul(p,he)|0,o=o+Math.imul(p,ve)|0;var Ee=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(N,W),a=Math.imul(N,q),a=a+Math.imul(F,W)|0,o=Math.imul(F,q),r=r+Math.imul(I,G)|0,a=a+Math.imul(I,Y)|0,a=a+Math.imul(R,G)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(L,X)|0,a=a+Math.imul(L,Z)|0,a=a+Math.imul(D,X)|0,o=o+Math.imul(D,Z)|0,r=r+Math.imul(C,Q)|0,a=a+Math.imul(C,ee)|0,a=a+Math.imul(A,Q)|0,o=o+Math.imul(A,ee)|0,r=r+Math.imul(O,ne)|0,a=a+Math.imul(O,re)|0,a=a+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(k,oe)|0,a=a+Math.imul(k,ie)|0,a=a+Math.imul(T,oe)|0,o=o+Math.imul(T,ie)|0,r=r+Math.imul(x,se)|0,a=a+Math.imul(x,ue)|0,a=a+Math.imul(_,se)|0,o=o+Math.imul(_,ue)|0,r=r+Math.imul(y,fe)|0,a=a+Math.imul(y,pe)|0,a=a+Math.imul(g,fe)|0,o=o+Math.imul(g,pe)|0,r=r+Math.imul(h,he)|0,a=a+Math.imul(h,ve)|0,a=a+Math.imul(v,he)|0,o=o+Math.imul(v,ve)|0;var Oe=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(N,G),a=Math.imul(N,Y),a=a+Math.imul(F,G)|0,o=Math.imul(F,Y),r=r+Math.imul(I,X)|0,a=a+Math.imul(I,Z)|0,a=a+Math.imul(R,X)|0,o=o+Math.imul(R,Z)|0,r=r+Math.imul(L,Q)|0,a=a+Math.imul(L,ee)|0,a=a+Math.imul(D,Q)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(C,ne)|0,a=a+Math.imul(C,re)|0,a=a+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0,r=r+Math.imul(O,oe)|0,a=a+Math.imul(O,ie)|0,a=a+Math.imul(M,oe)|0,o=o+Math.imul(M,ie)|0,r=r+Math.imul(k,se)|0,a=a+Math.imul(k,ue)|0,a=a+Math.imul(T,se)|0,o=o+Math.imul(T,ue)|0,r=r+Math.imul(x,fe)|0,a=a+Math.imul(x,pe)|0,a=a+Math.imul(_,fe)|0,o=o+Math.imul(_,pe)|0,r=r+Math.imul(y,he)|0,a=a+Math.imul(y,ve)|0,a=a+Math.imul(g,he)|0,o=o+Math.imul(g,ve)|0;var Me=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(N,X),a=Math.imul(N,Z),a=a+Math.imul(F,X)|0,o=Math.imul(F,Z),r=r+Math.imul(I,Q)|0,a=a+Math.imul(I,ee)|0,a=a+Math.imul(R,Q)|0,o=o+Math.imul(R,ee)|0,r=r+Math.imul(L,ne)|0,a=a+Math.imul(L,re)|0,a=a+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(C,oe)|0,a=a+Math.imul(C,ie)|0,a=a+Math.imul(A,oe)|0,o=o+Math.imul(A,ie)|0,r=r+Math.imul(O,se)|0,a=a+Math.imul(O,ue)|0,a=a+Math.imul(M,se)|0,o=o+Math.imul(M,ue)|0,r=r+Math.imul(k,fe)|0,a=a+Math.imul(k,pe)|0,a=a+Math.imul(T,fe)|0,o=o+Math.imul(T,pe)|0,r=r+Math.imul(x,he)|0,a=a+Math.imul(x,ve)|0,a=a+Math.imul(_,he)|0,o=o+Math.imul(_,ve)|0;var Se=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(N,Q),a=Math.imul(N,ee),a=a+Math.imul(F,Q)|0,o=Math.imul(F,ee),r=r+Math.imul(I,ne)|0,a=a+Math.imul(I,re)|0,a=a+Math.imul(R,ne)|0,o=o+Math.imul(R,re)|0,r=r+Math.imul(L,oe)|0,a=a+Math.imul(L,ie)|0,a=a+Math.imul(D,oe)|0,o=o+Math.imul(D,ie)|0,r=r+Math.imul(C,se)|0,a=a+Math.imul(C,ue)|0,a=a+Math.imul(A,se)|0,o=o+Math.imul(A,ue)|0,r=r+Math.imul(O,fe)|0,a=a+Math.imul(O,pe)|0,a=a+Math.imul(M,fe)|0,o=o+Math.imul(M,pe)|0,r=r+Math.imul(k,he)|0,a=a+Math.imul(k,ve)|0,a=a+Math.imul(T,he)|0,o=o+Math.imul(T,ve)|0;var Ce=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(N,ne),a=Math.imul(N,re),a=a+Math.imul(F,ne)|0,o=Math.imul(F,re),r=r+Math.imul(I,oe)|0,a=a+Math.imul(I,ie)|0,a=a+Math.imul(R,oe)|0,o=o+Math.imul(R,ie)|0,r=r+Math.imul(L,se)|0,a=a+Math.imul(L,ue)|0,a=a+Math.imul(D,se)|0,o=o+Math.imul(D,ue)|0,r=r+Math.imul(C,fe)|0,a=a+Math.imul(C,pe)|0,a=a+Math.imul(A,fe)|0,o=o+Math.imul(A,pe)|0,r=r+Math.imul(O,he)|0,a=a+Math.imul(O,ve)|0,a=a+Math.imul(M,he)|0,o=o+Math.imul(M,ve)|0;var Ae=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(N,oe),a=Math.imul(N,ie),a=a+Math.imul(F,oe)|0,o=Math.imul(F,ie),r=r+Math.imul(I,se)|0,a=a+Math.imul(I,ue)|0,a=a+Math.imul(R,se)|0,o=o+Math.imul(R,ue)|0,r=r+Math.imul(L,fe)|0,a=a+Math.imul(L,pe)|0,a=a+Math.imul(D,fe)|0,o=o+Math.imul(D,pe)|0,r=r+Math.imul(C,he)|0,a=a+Math.imul(C,ve)|0,a=a+Math.imul(A,he)|0,o=o+Math.imul(A,ve)|0;var Pe=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(N,se),a=Math.imul(N,ue),a=a+Math.imul(F,se)|0,o=Math.imul(F,ue),r=r+Math.imul(I,fe)|0,a=a+Math.imul(I,pe)|0,a=a+Math.imul(R,fe)|0,o=o+Math.imul(R,pe)|0,r=r+Math.imul(L,he)|0,a=a+Math.imul(L,ve)|0,a=a+Math.imul(D,he)|0,o=o+Math.imul(D,ve)|0;var Le=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(Le>>>26)|0,Le&=67108863,r=Math.imul(N,fe),a=Math.imul(N,pe),a=a+Math.imul(F,fe)|0,o=Math.imul(F,pe),r=r+Math.imul(I,he)|0,a=a+Math.imul(I,ve)|0,a=a+Math.imul(R,he)|0,o=o+Math.imul(R,ve)|0;var De=(u+r|0)+((8191&a)<<13)|0;u=(o+(a>>>13)|0)+(De>>>26)|0,De&=67108863,r=Math.imul(N,he),a=Math.imul(N,ve),a=a+Math.imul(F,he)|0,o=Math.imul(F,ve);var je=(u+r|0)+((8191&a)<<13)|0;return u=(o+(a>>>13)|0)+(je>>>26)|0,je&=67108863,s[0]=me,s[1]=ye,s[2]=ge,s[3]=be,s[4]=xe,s[5]=_e,s[6]=we,s[7]=ke,s[8]=Te,s[9]=Ee,s[10]=Oe,s[11]=Me,s[12]=Se,s[13]=Ce,s[14]=Ae,s[15]=Pe,s[16]=Le,s[17]=De,s[18]=je,0!==u&&(s[19]=u,n.length++),n};function v(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,a=0,o=0;o<n.length-1;o++){var i=a;a=0;for(var l=67108863&r,s=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=s;u++){var c=o-u,f=0|e.words[c],p=0|t.words[u],d=f*p,h=67108863&d;i=i+(d/67108864|0)|0,h=h+l|0,l=67108863&h,i=i+(h>>>26)|0,a+=i>>>26,i&=67108863}n.words[o]=l,r=i,i=a}return 0!==r?n.words[o]=r:n.length--,n.strip()}function m(e,t,n){var r=new y;return r.mulp(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(h=d),o.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?h(this,e,t):r<63?d(this,e,t):r<1024?v(this,e,t):m(this,e,t),n},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},y.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,a=0;a<t;a++)r|=(1&e)<<t-a-1,e>>=1;return r},y.prototype.permute=function(e,t,n,r,a,o){for(var i=0;i<o;i++)r[i]=t[e[i]],a[i]=n[e[i]]},y.prototype.transform=function(e,t,n,r,a,o){this.permute(o,e,t,n,r,a);for(var i=1;i<a;i<<=1)for(var l=i<<1,s=Math.cos(2*Math.PI/l),u=Math.sin(2*Math.PI/l),c=0;c<a;c+=l)for(var f=s,p=u,d=0;d<i;d++){var h=n[c+d],v=r[c+d],m=n[c+d+i],y=r[c+d+i],g=f*m-p*y;y=f*y+p*m,m=g,n[c+d]=h+m,r[c+d]=v+y,n[c+d+i]=h-m,r[c+d+i]=v-y,d!==l&&(g=s*f-u*p,p=s*p+u*f,f=g)}},y.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,a=0;for(n=n/2|0;n;n>>>=1)a++;return 1<<a+1+r},y.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var a=e[r];e[r]=e[n-r-1],e[n-r-1]=a,a=t[r],t[r]=-t[n-r-1],t[n-r-1]=-a}},y.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var a=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&a,n=a<67108864?0:a/67108864|0}return e},y.prototype.convert13b=function(e,t,n,a){for(var o=0,i=0;i<t;i++)o+=0|e[i],n[2*i]=8191&o,o>>>=13,n[2*i+1]=8191&o,o>>>=13;for(i=2*t;i<a;++i)n[i]=0;r(0===o),r(0===(-8192&o))},y.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},y.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),a=this.makeRBT(r),o=this.stub(r),i=new Array(r),l=new Array(r),s=new Array(r),u=new Array(r),c=new Array(r),f=new Array(r),p=n.words;p.length=r,this.convert13b(e.words,e.length,i,r),this.convert13b(t.words,t.length,u,r),this.transform(i,o,l,s,r,a),this.transform(u,o,c,f,r,a);for(var d=0;d<r;d++){var h=l[d]*c[d]-s[d]*f[d];s[d]=l[d]*f[d]+s[d]*c[d],l[d]=h}return this.conjugate(l,s,r),this.transform(l,s,p,o,r,a),this.conjugate(p,o,r),this.normalize13b(p,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),m(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){r("number"===typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var a=(0|this.words[n])*e,o=(67108863&a)+(67108863&t);t>>=26,t+=a/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=p(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length;r++,n=n.sqr())if(0!==t[r])break;if(++r<t.length)for(var a=n.sqr();r<t.length;r++,a=a.sqr())0!==t[r]&&(n=n.mul(a));return n},o.prototype.iushln=function(e){r("number"===typeof e&&e>=0);var t,n=e%26,a=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var i=0;for(t=0;t<this.length;t++){var l=this.words[t]&o,s=(0|this.words[t])-l<<n;this.words[t]=s|i,i=l>>>26-n}i&&(this.words[t]=i,this.length++)}if(0!==a){for(t=this.length-1;t>=0;t--)this.words[t+a]=this.words[t];for(t=0;t<a;t++)this.words[t]=0;this.length+=a}return this.strip()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var a;r("number"===typeof e&&e>=0),a=t?(t-t%26)/26:0;var o=e%26,i=Math.min((e-o)/26,this.length),l=67108863^67108863>>>o<<o,s=n;if(a-=i,a=Math.max(0,a),s){for(var u=0;u<i;u++)s.words[u]=this.words[u];s.length=i}if(0===i);else if(this.length>i)for(this.length-=i,u=0;u<this.length;u++)this.words[u]=this.words[u+i];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=a);u--){var f=0|this.words[u];this.words[u]=c<<26-o|f>>>o,c=f&l}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,a=1<<t;if(this.length<=n)return!1;var o=this.words[n];return!!(o&a)},o.prototype.imaskn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var a=67108863^67108863>>>t<<t;this.words[this.length-1]&=a}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"===typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var a,o,i=e.length+n;this._expand(i);var l=0;for(a=0;a<e.length;a++){o=(0|this.words[a+n])+l;var s=(0|e.words[a])*t;o-=67108863&s,l=(o>>26)-(s/67108864|0),this.words[a+n]=67108863&o}for(;a<this.length-n;a++)o=(0|this.words[a+n])+l,l=o>>26,this.words[a+n]=67108863&o;if(0===l)return this.strip();for(r(-1===l),l=0,a=0;a<this.length;a++)o=-(0|this.words[a])+l,l=o>>26,this.words[a]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=this.length-e.length,r=this.clone(),a=e,i=0|a.words[a.length-1],l=this._countBits(i);n=26-l,0!==n&&(a=a.ushln(n),r.iushln(n),i=0|a.words[a.length-1]);var s,u=r.length-a.length;if("mod"!==t){s=new o(null),s.length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var f=r.clone()._ishlnsubmul(a,1,u);0===f.negative&&(r=f,s&&(s.words[u]=1));for(var p=u-1;p>=0;p--){var d=67108864*(0|r.words[a.length+p])+(0|r.words[a.length+p-1]);d=Math.min(d/i|0,67108863),r._ishlnsubmul(a,d,p);while(0!==r.negative)d--,r.negative=0,r._ishlnsubmul(a,1,p),r.isZero()||(r.negative^=1);s&&(s.words[p]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(l=this.neg().divmod(e,t),"mod"!==t&&(a=l.div.neg()),"div"!==t&&(i=l.mod.neg(),n&&0!==i.negative&&i.iadd(e)),{div:a,mod:i}):0===this.negative&&0!==e.negative?(l=this.divmod(e.neg(),t),"mod"!==t&&(a=l.div.neg()),{div:a,mod:l.mod}):0!==(this.negative&e.negative)?(l=this.neg().divmod(e.neg(),t),"div"!==t&&(i=l.mod.neg(),n&&0!==i.negative&&i.isub(e)),{div:l.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var a,i,l},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),a=e.andln(1),o=n.cmp(r);return o<0||1===a&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,a=this.length-1;a>=0;a--)n=(t*n+(0|this.words[a]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var a=(0|this.words[n])+67108864*t;this.words[n]=a/e|0,t=a%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();var a=new o(1),i=new o(0),l=new o(0),s=new o(1),u=0;while(t.isEven()&&n.isEven())t.iushrn(1),n.iushrn(1),++u;var c=n.clone(),f=t.clone();while(!t.isZero()){for(var p=0,d=1;0===(t.words[0]&d)&&p<26;++p,d<<=1);if(p>0){t.iushrn(p);while(p-- >0)(a.isOdd()||i.isOdd())&&(a.iadd(c),i.isub(f)),a.iushrn(1),i.iushrn(1)}for(var h=0,v=1;0===(n.words[0]&v)&&h<26;++h,v<<=1);if(h>0){n.iushrn(h);while(h-- >0)(l.isOdd()||s.isOdd())&&(l.iadd(c),s.isub(f)),l.iushrn(1),s.iushrn(1)}t.cmp(n)>=0?(t.isub(n),a.isub(l),i.isub(s)):(n.isub(t),l.isub(a),s.isub(i))}return{a:l,b:s,gcd:n.iushln(u)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();var a,i=new o(1),l=new o(0),s=n.clone();while(t.cmpn(1)>0&&n.cmpn(1)>0){for(var u=0,c=1;0===(t.words[0]&c)&&u<26;++u,c<<=1);if(u>0){t.iushrn(u);while(u-- >0)i.isOdd()&&i.iadd(s),i.iushrn(1)}for(var f=0,p=1;0===(n.words[0]&p)&&f<26;++f,p<<=1);if(f>0){n.iushrn(f);while(f-- >0)l.isOdd()&&l.iadd(s),l.iushrn(1)}t.cmp(n)>=0?(t.isub(n),i.isub(l)):(n.isub(t),l.isub(i))}return a=0===t.cmpn(1)?i:l,a.cmpn(0)<0&&a.iadd(e),a},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);do{while(t.isEven())t.iushrn(1);while(n.isEven())n.iushrn(1);var a=t.cmp(n);if(a<0){var o=t;t=n,n=o}else if(0===a||0===n.cmpn(1))break;t.isub(n)}while(1);return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,a=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=a,this;for(var o=a,i=n;0!==o&&i<this.length;i++){var l=0|this.words[i];l+=o,o=l>>>26,l&=67108863,this.words[i]=l}return 0!==o&&(this.words[i]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var a=0|this.words[0];t=a===e?0:a<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],a=0|e.words[n];if(r!==a){r<a?t=-1:r>a&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new T(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function k(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){T.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),t=n.bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):n.strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},a(x,b),x.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),a=0;a<r;a++)t.words[a]=e.words[a];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&n,a=10;a<e.length;a++){var i=0|e.words[a];e.words[a-10]=(i&n)<<4|o>>>22,o=i}o>>>=22,e.words[a-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},x.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},a(_,b),a(w,b),a(k,b),k.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,a=67108863&r;r>>>=26,e.words[n]=a,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new x;else if("p224"===e)t=new _;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new k}return g[e]=t,t},T.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},T.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},T.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},T.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},T.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},T.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},T.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},T.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},T.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},T.prototype.isqr=function(e){return this.imul(e,e.clone())},T.prototype.sqr=function(e){return this.mul(e,e)},T.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}var a=this.m.subn(1),i=0;while(!a.isZero()&&0===a.andln(1))i++,a.iushrn(1);r(!a.isZero());var l=new o(1).toRed(this),s=l.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,u).cmp(s))c.redIAdd(s);var f=this.pow(c,a),p=this.pow(e,a.addn(1).iushrn(1)),d=this.pow(e,a),h=i;while(0!==d.cmp(l)){for(var v=d,m=0;0!==v.cmp(l);m++)v=v.redSqr();r(m<h);var y=this.pow(f,new o(1).iushln(h-m-1));p=p.redMul(y),f=y.redSqr(),d=d.redMul(f),h=m}return p},T.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},T.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=4,r=new Array(1<<n);r[0]=new o(1).toRed(this),r[1]=e;for(var a=2;a<r.length;a++)r[a]=this.mul(r[a-1],e);var i=r[0],l=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),a=t.length-1;a>=0;a--){for(var c=t.words[a],f=u-1;f>=0;f--){var p=c>>f&1;i!==r[0]&&(i=this.sqr(i)),0!==p||0!==l?(l<<=1,l|=p,s++,(s===n||0===a&&0===f)&&(i=this.mul(i,r[l]),s=0,l=0)):s=0}u=26}return i},T.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},T.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},a(E,T),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),o=a;return a.cmp(this.m)>=0?o=a.isub(this.m):a.cmpn(0)<0&&(o=a.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},E.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})("undefined"===typeof t||t,this)},{buffer:108}],100:[function(e,t,n){"use strict";function r(e){var t,n,r,a=e.length,o=0;for(t=0;t<a;++t)o+=e[t].length;var i=new Array(o),l=0;for(t=0;t<a;++t){var s=e[t],u=s.length;for(n=0;n<u;++n){var c=i[l++]=new Array(u-1),f=0;for(r=0;r<u;++r)r!==n&&(c[f++]=s[r]);if(1&n){var p=c[1];c[1]=c[0],c[0]=p}}}return i}t.exports=r},{}],101:[function(e,t,n){"use strict";t.exports=d;var r,a=e("typedarray-pool"),o=e("./lib/sweep"),i=e("./lib/intersect");function l(e,t){for(var n=0;n<e;++n)if(!(t[n]<=t[n+e]))return!0;return!1}function s(e,t,n,r){for(var a=0,o=0,i=0,s=e.length;i<s;++i){var u=e[i];if(!l(t,u)){for(var c=0;c<2*t;++c)n[a++]=u[c];r[o++]=i}}return o}function u(e,t,n,r){var l=e.length,u=t.length;if(!(l<=0||u<=0)){var c=e[0].length>>>1;if(!(c<=0)){var f,p=a.mallocDouble(2*c*l),d=a.mallocInt32(l);if(l=s(e,c,p,d),l>0){if(1===c&&r)o.init(l),f=o.sweepComplete(c,n,0,l,p,d,0,l,p,d);else{var h=a.mallocDouble(2*c*u),v=a.mallocInt32(u);u=s(t,c,h,v),u>0&&(o.init(l+u),f=1===c?o.sweepBipartite(c,n,0,l,p,d,0,u,h,v):i(c,n,r,l,p,d,u,h,v),a.free(h),a.free(v))}a.free(p),a.free(d)}return f}}}function c(e,t){r.push([e,t])}function f(e){return r=[],u(e,e,c,!0),r}function p(e,t){return r=[],u(e,t,c,!1),r}function d(e,t,n){switch(arguments.length){case 1:return f(e);case 2:return"function"===typeof t?u(e,e,t,!0):p(e,t);case 3:return u(e,t,n,!1);default:throw new Error("box-intersect: Invalid arguments")}}},{"./lib/intersect":103,"./lib/sweep":107,"typedarray-pool":567}],102:[function(e,t,n){"use strict";var r="d",a="ax",o="vv",i="fp",l="es",s="rs",u="re",c="rb",f="ri",p="rp",d="bs",h="be",v="bb",m="bi",y="bp",g="rv",b="Q",x=[r,a,o,s,u,c,f,d,h,v,m];function _(e,t,n){var i="bruteForce"+(e?"Red":"Blue")+(t?"Flip":"")+(n?"Full":""),_=["function ",i,"(",x.join(),"){","var ",l,"=2*",r,";"],w="for(var i="+s+","+p+"="+l+"*"+s+";i<"+u+";++i,"+p+"+="+l+"){var x0="+c+"["+a+"+"+p+"],x1="+c+"["+a+"+"+p+"+"+r+"],xi="+f+"[i];",k="for(var j="+d+","+y+"="+l+"*"+d+";j<"+h+";++j,"+y+"+="+l+"){var y0="+v+"["+a+"+"+y+"],"+(n?"y1="+v+"["+a+"+"+y+"+"+r+"],":"")+"yi="+m+"[j];";return e?_.push(w,b,":",k):_.push(k,b,":",w),n?_.push("if(y1<x0||x1<y0)continue;"):t?_.push("if(y0<=x0||x1<y0)continue;"):_.push("if(y0<x0||x1<y0)continue;"),_.push("for(var k="+a+"+1;k<"+r+";++k){var r0="+c+"[k+"+p+"],r1="+c+"[k+"+r+"+"+p+"],b0="+v+"[k+"+y+"],b1="+v+"[k+"+r+"+"+y+"];if(r1<b0||b1<r0)continue "+b+";}var "+g+"="+o+"("),t?_.push("yi,xi"):_.push("xi,yi"),_.push(");if("+g+"!==void 0)return "+g+";}}}"),{name:i,code:_.join("")}}function w(e){var t="bruteForce"+(e?"Full":"Partial"),n=[],r=x.slice();e||r.splice(3,0,i);var a=["function "+t+"("+r.join()+"){"];function o(t,r){var o=_(t,r,e);n.push(o.code),a.push("return "+o.name+"("+x.join()+");")}a.push("if("+u+"-"+s+">"+h+"-"+d+"){"),e?(o(!0,!1),a.push("}else{"),o(!1,!1)):(a.push("if("+i+"){"),o(!0,!0),a.push("}else{"),o(!0,!1),a.push("}}else{if("+i+"){"),o(!1,!0),a.push("}else{"),o(!1,!1),a.push("}")),a.push("}}return "+t);var l=n.join("")+a.join(""),c=new Function(l);return c()}n.partial=w(!1),n.full=w(!0)},{}],103:[function(e,t,n){"use strict";t.exports=C;var r=e("typedarray-pool"),a=e("bit-twiddle"),o=e("./brute"),i=o.partial,l=o.full,s=e("./sweep"),u=e("./median"),c=e("./partition"),f=128,p=1<<22,d=1<<22,h=c("!(lo>=p0)&&!(p1>=hi)",["p0","p1"]),v=c("lo===p0",["p0"]),m=c("lo<p0",["p0"]),y=c("hi<=p0",["p0"]),g=c("lo<=p0&&p0<=hi",["p0"]),b=c("lo<p0&&p0<=hi",["p0"]),x=6,_=2,w=1024,k=r.mallocInt32(w),T=r.mallocDouble(w);function E(e,t){var n=8*a.log2(t+1)*(e+1)|0,o=a.nextPow2(x*n);k.length<o&&(r.free(k),k=r.mallocInt32(o));var i=a.nextPow2(_*n);T.length<i&&(r.free(T),T=r.mallocDouble(i))}function O(e,t,n,r,a,o,i,l,s){var u=x*e;k[u]=t,k[u+1]=n,k[u+2]=r,k[u+3]=a,k[u+4]=o,k[u+5]=i;var c=_*e;T[c]=l,T[c+1]=s}function M(e,t,n,r,a,o,i,l,s,u,c){var f=2*e,p=s*f,d=u[p+t];e:for(var h=a,v=a*f;h<o;++h,v+=f){var m=i[v+t],y=i[v+t+e];if(!(d<m||y<d)&&(!r||d!==m)){for(var g,b=l[h],x=t+1;x<e;++x){m=i[v+x],y=i[v+x+e];var _=u[p+x],w=u[p+x+e];if(y<_||w<m)continue e}if(g=r?n(c,b):n(b,c),void 0!==g)return g}}}function S(e,t,n,r,a,o,i,l,s,u){var c=2*e,f=l*c,p=s[f+t];e:for(var d=r,h=r*c;d<a;++d,h+=c){var v=i[d];if(v!==u){var m=o[h+t],y=o[h+t+e];if(!(p<m||y<p)){for(var g=t+1;g<e;++g){m=o[h+g],y=o[h+g+e];var b=s[f+g],x=s[f+g+e];if(y<b||x<m)continue e}var _=n(v,u);if(void 0!==_)return _}}}}function C(e,t,n,r,a,o,c,w,C){E(e,r+c);var A,P=0,L=2*e;O(P++,0,0,r,0,c,n?16:0,-1/0,1/0),n||O(P++,0,0,c,0,r,1,-1/0,1/0);while(P>0){P-=1;var D=P*x,j=k[D],I=k[D+1],R=k[D+2],z=k[D+3],N=k[D+4],F=k[D+5],B=P*_,V=T[B],H=T[B+1],U=1&F,W=!!(16&F),q=a,$=o,G=w,Y=C;if(U&&(q=w,$=C,G=a,Y=o),!(2&F&&(R=m(e,j,I,R,q,$,H),I>=R))&&!(4&F&&(I=y(e,j,I,R,q,$,V),I>=R))){var K=R-I,X=N-z;if(W){if(e*K*(K+X)<d){if(A=s.scanComplete(e,j,t,I,R,q,$,z,N,G,Y),void 0!==A)return A;continue}}else{if(e*Math.min(K,X)<f){if(A=i(e,j,t,U,I,R,q,$,z,N,G,Y),void 0!==A)return A;continue}if(e*K*X<p){if(A=s.scanBipartite(e,j,t,U,I,R,q,$,z,N,G,Y),void 0!==A)return A;continue}}var Z=h(e,j,I,R,q,$,V,H);if(I<Z)if(e*(Z-I)<f){if(A=l(e,j+1,t,I,Z,q,$,z,N,G,Y),void 0!==A)return A}else if(j===e-2){if(A=U?s.sweepBipartite(e,t,z,N,G,Y,I,Z,q,$):s.sweepBipartite(e,t,I,Z,q,$,z,N,G,Y),void 0!==A)return A}else O(P++,j+1,I,Z,z,N,U,-1/0,1/0),O(P++,j+1,z,N,I,Z,1^U,-1/0,1/0);if(Z<R){var J=u(e,j,z,N,G,Y),Q=G[L*J+j],ee=v(e,j,J,N,G,Y,Q);if(ee<N&&O(P++,j,Z,R,ee,N,(4|U)+(W?16:0),Q,H),z<J&&O(P++,j,Z,R,z,J,(2|U)+(W?16:0),V,Q),J+1===ee){if(A=W?S(e,j,t,Z,R,q,$,J,G,Y[J]):M(e,j,t,U,Z,R,q,$,J,G,Y[J]),void 0!==A)return A}else if(J<ee){var te;if(W){if(te=g(e,j,Z,R,q,$,Q),Z<te){var ne=v(e,j,Z,te,q,$,Q);if(j===e-2){if(Z<ne&&(A=s.sweepComplete(e,t,Z,ne,q,$,J,ee,G,Y),void 0!==A))return A;if(ne<te&&(A=s.sweepBipartite(e,t,ne,te,q,$,J,ee,G,Y),void 0!==A))return A}else Z<ne&&O(P++,j+1,Z,ne,J,ee,16,-1/0,1/0),ne<te&&(O(P++,j+1,ne,te,J,ee,0,-1/0,1/0),O(P++,j+1,J,ee,ne,te,1,-1/0,1/0))}}else te=U?b(e,j,Z,R,q,$,Q):g(e,j,Z,R,q,$,Q),Z<te&&(j===e-2?A=U?s.sweepBipartite(e,t,J,ee,G,Y,Z,te,q,$):s.sweepBipartite(e,t,Z,te,q,$,J,ee,G,Y):(O(P++,j+1,Z,te,J,ee,U,-1/0,1/0),O(P++,j+1,J,ee,Z,te,1^U,-1/0,1/0)))}}}}}},{"./brute":102,"./median":104,"./partition":105,"./sweep":107,"bit-twiddle":97,"typedarray-pool":567}],104:[function(e,t,n){"use strict";t.exports=l;var r=e("./partition"),a=r("lo<p0",["p0"]),o=8;function i(e,t,n,r,a,o){for(var i=2*e,l=i*(n+1)+t,s=n+1;s<r;++s,l+=i)for(var u=a[l],c=s,f=i*(s-1);c>n&&a[f+t]>u;--c,f-=i){for(var p=f,d=f+i,h=0;h<i;++h,++p,++d){var v=a[p];a[p]=a[d],a[d]=v}var m=o[c];o[c]=o[c-1],o[c-1]=m}}function l(e,t,n,r,l,s){if(r<=n+1)return n;var u=n,c=r,f=r+n>>>1,p=2*e,d=f,h=l[p*f+t];while(u<c){if(c-u<o){i(e,t,u,c,l,s),h=l[p*f+t];break}var v=c-u,m=Math.random()*v+u|0,y=l[p*m+t],g=Math.random()*v+u|0,b=l[p*g+t],x=Math.random()*v+u|0,_=l[p*x+t];y<=b?_>=b?(d=g,h=b):y>=_?(d=m,h=y):(d=x,h=_):b>=_?(d=g,h=b):_>=y?(d=m,h=y):(d=x,h=_);for(var w=p*(c-1),k=p*d,T=0;T<p;++T,++w,++k){var E=l[w];l[w]=l[k],l[k]=E}var O=s[c-1];s[c-1]=s[d],s[d]=O,d=a(e,t,u,c-1,l,s,h);for(w=p*(c-1),k=p*d,T=0;T<p;++T,++w,++k){E=l[w];l[w]=l[k],l[k]=E}O=s[c-1];if(s[c-1]=s[d],s[d]=O,f<d){c=d-1;while(u<c&&l[p*(c-1)+t]===h)c-=1;c+=1}else{if(!(d<f))break;u=d+1;while(u<c&&l[p*u+t]===h)u+=1}}return a(e,t,n,f,l,s,l[p*f+t])}},{"./partition":105}],105:[function(e,t,n){"use strict";t.exports=a;var r="for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d>p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j>s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m";function a(e,t){var n="abcdef".split("").concat(t),a=[];return e.indexOf("lo")>=0&&a.push("lo=e[k+n]"),e.indexOf("hi")>=0&&a.push("hi=e[k+o]"),n.push(r.replace("_",a.join()).replace("$",e)),Function.apply(void 0,n)}},{}],106:[function(e,t,n){"use strict";t.exports=a;var r=32;function a(e,t){t<=4*r?o(0,t-1,e):p(0,t-1,e)}function o(e,t,n){for(var r=2*(e+1),a=e+1;a<=t;++a){var o=n[r++],i=n[r++],l=a,s=r-2;while(l-- >e){var u=n[s-2],c=n[s-1];if(u<o)break;if(u===o&&c<i)break;n[s]=u,n[s+1]=c,s-=2}n[s]=o,n[s+1]=i}}function i(e,t,n){e*=2,t*=2;var r=n[e],a=n[e+1];n[e]=n[t],n[e+1]=n[t+1],n[t]=r,n[t+1]=a}function l(e,t,n){e*=2,t*=2,n[e]=n[t],n[e+1]=n[t+1]}function s(e,t,n,r){e*=2,t*=2,n*=2;var a=r[e],o=r[e+1];r[e]=r[t],r[e+1]=r[t+1],r[t]=r[n],r[t+1]=r[n+1],r[n]=a,r[n+1]=o}function u(e,t,n,r,a){e*=2,t*=2,a[e]=a[t],a[t]=n,a[e+1]=a[t+1],a[t+1]=r}function c(e,t,n){e*=2,t*=2;var r=n[e],a=n[t];return!(r<a)&&(r!==a||n[e+1]>n[t+1])}function f(e,t,n,r){e*=2;var a=r[e];return a<t||a===t&&r[e+1]<n}function p(e,t,n){var a=(t-e+1)/6|0,d=e+a,h=t-a,v=e+t>>1,m=v-a,y=v+a,g=d,b=m,x=v,_=y,w=h,k=e+1,T=t-1,E=0;c(g,b,n)&&(E=g,g=b,b=E),c(_,w,n)&&(E=_,_=w,w=E),c(g,x,n)&&(E=g,g=x,x=E),c(b,x,n)&&(E=b,b=x,x=E),c(g,_,n)&&(E=g,g=_,_=E),c(x,_,n)&&(E=x,x=_,_=E),c(b,w,n)&&(E=b,b=w,w=E),c(b,x,n)&&(E=b,b=x,x=E),c(_,w,n)&&(E=_,_=w,w=E);for(var O=n[2*b],M=n[2*b+1],S=n[2*_],C=n[2*_+1],A=2*g,P=2*x,L=2*w,D=2*d,j=2*v,I=2*h,R=0;R<2;++R){var z=n[A+R],N=n[P+R],F=n[L+R];n[D+R]=z,n[j+R]=N,n[I+R]=F}l(m,e,n),l(y,t,n);for(var B=k;B<=T;++B)if(f(B,O,M,n))B!==k&&i(B,k,n),++k;else if(!f(B,S,C,n))while(1){if(f(T,S,C,n)){f(T,O,M,n)?(s(B,k,T,n),++k,--T):(i(B,T,n),--T);break}if(--T<B)break}u(e,k-1,O,M,n),u(t,T+1,S,C,n),k-2-e<=r?o(e,k-2,n):p(e,k-2,n),t-(T+2)<=r?o(T+2,t,n):p(T+2,t,n),T-k<=r?o(k,T,n):p(k,T,n)}},{}],107:[function(e,t,n){"use strict";t.exports={init:v,sweepBipartite:g,sweepComplete:b,scanBipartite:x,scanComplete:_};var r=e("typedarray-pool"),a=e("bit-twiddle"),o=e("./sort"),i=1<<28,l=1024,s=r.mallocInt32(l),u=r.mallocInt32(l),c=r.mallocInt32(l),f=r.mallocInt32(l),p=r.mallocInt32(l),d=r.mallocInt32(l),h=r.mallocDouble(8*l);function v(e){var t=a.nextPow2(e);s.length<t&&(r.free(s),s=r.mallocInt32(t)),u.length<t&&(r.free(u),u=r.mallocInt32(t)),c.length<t&&(r.free(c),c=r.mallocInt32(t)),f.length<t&&(r.free(f),f=r.mallocInt32(t)),p.length<t&&(r.free(p),p=r.mallocInt32(t)),d.length<t&&(r.free(d),d=r.mallocInt32(t));var n=8*t;h.length<n&&(r.free(h),h=r.mallocDouble(n))}function m(e,t,n,r){var a=t[r],o=e[n-1];e[a]=o,t[o]=a}function y(e,t,n,r){e[n]=r,t[r]=n}function g(e,t,n,r,a,l,p,d,v,g){for(var b=0,x=2*e,_=e-1,w=x-1,k=n;k<r;++k){var T=l[k],E=x*k;h[b++]=a[E+_],h[b++]=-(T+1),h[b++]=a[E+w],h[b++]=T}for(k=p;k<d;++k){T=g[k]+i;var O=x*k;h[b++]=v[O+_],h[b++]=-T,h[b++]=v[O+w],h[b++]=T}var M=b>>>1;o(h,M);var S=0,C=0;for(k=0;k<M;++k){var A=0|h[2*k+1];if(A>=i)A=A-i|0,m(c,f,C--,A);else if(A>=0)m(s,u,S--,A);else if(A<=-i){A=-A-i|0;for(var P=0;P<S;++P){var L=t(s[P],A);if(void 0!==L)return L}y(c,f,C++,A)}else{A=-A-1|0;for(P=0;P<C;++P){L=t(A,c[P]);if(void 0!==L)return L}y(s,u,S++,A)}}}function b(e,t,n,r,a,i,l,v,g,b){for(var x=0,_=2*e,w=e-1,k=_-1,T=n;T<r;++T){var E=i[T]+1<<1,O=_*T;h[x++]=a[O+w],h[x++]=-E,h[x++]=a[O+k],h[x++]=E}for(T=l;T<v;++T){E=b[T]+1<<1;var M=_*T;h[x++]=g[M+w],h[x++]=1|-E,h[x++]=g[M+k],h[x++]=1|E}var S=x>>>1;o(h,S);var C=0,A=0,P=0;for(T=0;T<S;++T){var L=0|h[2*T+1],D=1&L;if(T<S-1&&L>>1===h[2*T+3]>>1&&(D=2,T+=1),L<0){for(var j=-(L>>1)-1,I=0;I<P;++I){var R=t(p[I],j);if(void 0!==R)return R}if(0!==D)for(I=0;I<C;++I){R=t(s[I],j);if(void 0!==R)return R}if(1!==D)for(I=0;I<A;++I){R=t(c[I],j);if(void 0!==R)return R}0===D?y(s,u,C++,j):1===D?y(c,f,A++,j):2===D&&y(p,d,P++,j)}else{j=(L>>1)-1;0===D?m(s,u,C--,j):1===D?m(c,f,A--,j):2===D&&m(p,d,P--,j)}}}function x(e,t,n,r,a,l,c,f,p,d,v,g){var b=0,x=2*e,_=t,w=t+e,k=1,T=1;r?T=i:k=i;for(var E=a;E<l;++E){var O=E+k,M=x*E;h[b++]=c[M+_],h[b++]=-O,h[b++]=c[M+w],h[b++]=O}for(E=p;E<d;++E){O=E+T;var S=x*E;h[b++]=v[S+_],h[b++]=-O}var C=b>>>1;o(h,C);var A=0;for(E=0;E<C;++E){var P=0|h[2*E+1];if(P<0){O=-P;var L=!1;if(O>=i?(L=!r,O-=i):(L=!!r,O-=1),L)y(s,u,A++,O);else{var D=g[O],j=x*O,I=v[j+t+1],R=v[j+t+1+e];e:for(var z=0;z<A;++z){var N=s[z],F=x*N;if(!(R<c[F+t+1]||c[F+t+1+e]<I)){for(var B=t+2;B<e;++B)if(v[j+B+e]<c[F+B]||c[F+B+e]<v[j+B])continue e;var V,H=f[N];if(V=r?n(D,H):n(H,D),void 0!==V)return V}}}}else m(s,u,A--,P-k)}}function _(e,t,n,r,a,l,u,c,f,p,d){for(var v=0,m=2*e,y=t,g=t+e,b=r;b<a;++b){var x=b+i,_=m*b;h[v++]=l[_+y],h[v++]=-x,h[v++]=l[_+g],h[v++]=x}for(b=c;b<f;++b){x=b+1;var w=m*b;h[v++]=p[w+y],h[v++]=-x}var k=v>>>1;o(h,k);var T=0;for(b=0;b<k;++b){var E=0|h[2*b+1];if(E<0){x=-E;if(x>=i)s[T++]=x-i;else{x-=1;var O=d[x],M=m*x,S=p[M+t+1],C=p[M+t+1+e];e:for(var A=0;A<T;++A){var P=s[A],L=u[P];if(L===O)break;var D=m*P;if(!(C<l[D+t+1]||l[D+t+1+e]<S)){for(var j=t+2;j<e;++j)if(p[M+j+e]<l[D+j]||l[D+j+e]<p[M+j])continue e;var I=n(L,O);if(void 0!==I)return I}}}}else{for(x=E-i,A=T-1;A>=0;--A)if(s[A]===x){for(j=A+1;j<T;++j)s[j-1]=s[j];break}--T}}}},{"./sort":106,"bit-twiddle":97,"typedarray-pool":567}],108:[function(e,t,n){},{}],109:[function(e,t,n){arguments[4][108][0].apply(n,arguments)},{dup:108}],110:[function(e,t,n){var r=Object.create||T,a=Object.keys||E,o=Function.prototype.bind||O;function i(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=i,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._maxListeners=void 0;var l,s=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),l=0===u.x}catch(M){l=!1}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function f(e,t,n){if(t)e.call(n);else for(var r=e.length,a=w(e,r),o=0;o<r;++o)a[o].call(n)}function p(e,t,n,r){if(t)e.call(n,r);else for(var a=e.length,o=w(e,a),i=0;i<a;++i)o[i].call(n,r)}function d(e,t,n,r,a){if(t)e.call(n,r,a);else for(var o=e.length,i=w(e,o),l=0;l<o;++l)i[l].call(n,r,a)}function h(e,t,n,r,a,o){if(t)e.call(n,r,a,o);else for(var i=e.length,l=w(e,i),s=0;s<i;++s)l[s].call(n,r,a,o)}function v(e,t,n,r){if(t)e.apply(n,r);else for(var a=e.length,o=w(e,a),i=0;i<a;++i)o[i].apply(n,r)}function m(e,t,n,a){var o,i,l;if("function"!==typeof n)throw new TypeError('"listener" argument must be a function');if(i=e._events,i?(i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),l=i[t]):(i=e._events=r(null),e._eventsCount=0),l){if("function"===typeof l?l=i[t]=a?[n,l]:[l,n]:a?l.unshift(n):l.push(n),!l.warned&&(o=c(e),o&&o>0&&l.length>o)){l.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+l.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=l.length,"object"===typeof console&&console.warn&&console.warn("%s: %s",s.name,s.message)}}else l=i[t]=n,++e._eventsCount;return e}function y(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t<e.length;++t)e[t]=arguments[t];this.listener.apply(this.target,e)}}function g(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=o.call(y,r);return a.listener=n,r.wrapFn=a,a}function b(e,t,n){var r=e._events;if(!r)return[];var a=r[t];return a?"function"===typeof a?n?[a.listener||a]:[a]:n?k(a):w(a,a.length):[]}function x(e){var t=this._events;if(t){var n=t[e];if("function"===typeof n)return 1;if(n)return n.length}return 0}function _(e,t){for(var n=t,r=n+1,a=e.length;r<a;n+=1,r+=1)e[n]=e[r];e.pop()}function w(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function k(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function T(e){var t=function(){};return t.prototype=e,new t}function E(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return n}function O(e){var t=this;return function(){return t.apply(e,arguments)}}l?Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(e){if("number"!==typeof e||e<0||e!==e)throw new TypeError('"defaultMaxListeners" must be a positive number');s=e}}):i.defaultMaxListeners=s,i.prototype.setMaxListeners=function(e){if("number"!==typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){var t,n,r,a,o,i,l="error"===e;if(i=this._events,i)l=l&&null==i.error;else if(!l)return!1;if(l){if(arguments.length>1&&(t=arguments[1]),t instanceof Error)throw t;var s=new Error('Unhandled "error" event. ('+t+")");throw s.context=t,s}if(n=i[e],!n)return!1;var u="function"===typeof n;switch(r=arguments.length,r){case 1:f(n,u,this);break;case 2:p(n,u,this,arguments[1]);break;case 3:d(n,u,this,arguments[1],arguments[2]);break;case 4:h(n,u,this,arguments[1],arguments[2],arguments[3]);break;default:for(a=new Array(r-1),o=1;o<r;o++)a[o-1]=arguments[o];v(n,u,this,a)}return!0},i.prototype.addListener=function(e,t){return m(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return m(this,e,t,!0)},i.prototype.once=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.on(e,g(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');return this.prependListener(e,g(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,a,o,i,l;if("function"!==typeof t)throw new TypeError('"listener" argument must be a function');if(a=this._events,!a)return this;if(n=a[e],!n)return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=r(null):(delete a[e],a.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!==typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){l=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():_(n,o),1===n.length&&(a[e]=n[0]),a.removeListener&&this.emit("removeListener",e,l||t)}return this},i.prototype.removeAllListeners=function(e){var t,n,o;if(n=this._events,!n)return this;if(!n.removeListener)return 0===arguments.length?(this._events=r(null),this._eventsCount=0):n[e]&&(0===--this._eventsCount?this._events=r(null):delete n[e]),this;if(0===arguments.length){var i,l=a(n);for(o=0;o<l.length;++o)i=l[o],"removeListener"!==i&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=r(null),this._eventsCount=0,this}if(t=n[e],"function"===typeof t)this.removeListener(e,t);else if(t)for(o=t.length-1;o>=0;o--)this.removeListener(e,t[o]);return this},i.prototype.listeners=function(e){return b(this,e,!0)},i.prototype.rawListeners=function(e){return b(this,e,!1)},i.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):x.call(e,t)},i.prototype.listenerCount=x,i.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],111:[function(e,t,n){(function(t){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
"use strict";var r=e("base64-js"),a=e("ieee754");n.Buffer=t,n.SlowBuffer=y,n.INSPECT_MAX_BYTES=50;var o=2147483647;function i(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}function l(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');var n=new Uint8Array(e);return n.__proto__=t.prototype,n}function t(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return s(e,t,n)}function s(e,n,r){if("string"===typeof e)return p(e,n);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(X(e,ArrayBuffer)||e&&X(e.buffer,ArrayBuffer))return h(e,n,r);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var a=e.valueOf&&e.valueOf();if(null!=a&&a!==e)return t.from(a,n,r);var o=v(e);if(o)return o;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return t.from(e[Symbol.toPrimitive]("string"),n,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e,t,n){return u(e),e<=0?l(e):void 0!==t?"string"===typeof n?l(e).fill(t,n):l(e).fill(t):l(e)}function f(e){return u(e),l(e<0?0:0|m(e))}function p(e,n){if("string"===typeof n&&""!==n||(n="utf8"),!t.isEncoding(n))throw new TypeError("Unknown encoding: "+n);var r=0|g(e,n),a=l(r),o=a.write(e,n);return o!==r&&(a=a.slice(0,o)),a}function d(e){for(var t=e.length<0?0:0|m(e.length),n=l(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,n,r){if(n<0||e.byteLength<n)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<n+(r||0))throw new RangeError('"length" is outside of buffer bounds');var a;return a=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),a.__proto__=t.prototype,a}function v(e){if(t.isBuffer(e)){var n=0|m(e.length),r=l(n);return 0===r.length||e.copy(r,0,0,n),r}return void 0!==e.length?"number"!==typeof e.length||Z(e.length)?l(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}function m(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function y(e){return+e!=e&&(e=0),t.alloc(+e)}function g(e,n){if(t.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||X(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,a=arguments.length>2&&!0===arguments[2];if(!a&&0===r)return 0;for(var o=!1;;)switch(n){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(e).length;default:if(o)return a?-1:q(e).length;n=(""+n).toLowerCase(),o=!0}}function b(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function x(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function _(e,n,r,a,o){if(0===e.length)return-1;if("string"===typeof r?(a=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Z(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"===typeof n&&(n=t.from(n,a)),t.isBuffer(n))return 0===n.length?-1:w(e,n,r,a,o);if("number"===typeof n)return n&=255,"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,n,r):Uint8Array.prototype.lastIndexOf.call(e,n,r):w(e,[n],r,a,o);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,a){var o,i=1,l=e.length,s=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;i=2,l/=2,s/=2,n/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(a){var c=-1;for(o=n;o<l;o++)if(u(e,o)===u(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===s)return c*i}else-1!==c&&(o-=o-c),c=-1}else for(n+s>l&&(n=l-s),o=n;o>=0;o--){for(var f=!0,p=0;p<s;p++)if(u(e,o+p)!==u(t,p)){f=!1;break}if(f)return o}return-1}function k(e,t,n,r){n=Number(n)||0;var a=e.length-n;r?(r=Number(r),r>a&&(r=a)):r=a;var o=t.length;r>o/2&&(r=o/2);for(var i=0;i<r;++i){var l=parseInt(t.substr(2*i,2),16);if(Z(l))return i;e[n+i]=l}return i}function T(e,t,n,r){return K(q(t,e.length-n),e,n,r)}function E(e,t,n,r){return K($(t),e,n,r)}function O(e,t,n,r){return E(e,t,n,r)}function M(e,t,n,r){return K(Y(t),e,n,r)}function S(e,t,n,r){return K(G(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);var r=[],a=t;while(a<n){var o,i,l,s,u=e[a],c=null,f=u>239?4:u>223?3:u>191?2:1;if(a+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:o=e[a+1],128===(192&o)&&(s=(31&u)<<6|63&o,s>127&&(c=s));break;case 3:o=e[a+1],i=e[a+2],128===(192&o)&&128===(192&i)&&(s=(15&u)<<12|(63&o)<<6|63&i,s>2047&&(s<55296||s>57343)&&(c=s));break;case 4:o=e[a+1],i=e[a+2],l=e[a+3],128===(192&o)&&128===(192&i)&&128===(192&l)&&(s=(15&u)<<18|(63&o)<<12|(63&i)<<6|63&l,s>65535&&s<1114112&&(c=s))}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),a+=f}return L(r)}n.kMaxLength=o,t.TYPED_ARRAY_SUPPORT=i(),t.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(t.prototype,"parent",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.buffer}}),Object.defineProperty(t.prototype,"offset",{enumerable:!0,get:function(){if(t.isBuffer(this))return this.byteOffset}}),"undefined"!==typeof Symbol&&null!=Symbol.species&&t[Symbol.species]===t&&Object.defineProperty(t,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),t.poolSize=8192,t.from=function(e,t,n){return s(e,t,n)},t.prototype.__proto__=Uint8Array.prototype,t.__proto__=Uint8Array,t.alloc=function(e,t,n){return c(e,t,n)},t.allocUnsafe=function(e){return f(e)},t.allocUnsafeSlow=function(e){return f(e)},t.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==t.prototype},t.compare=function(e,n){if(X(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),X(n,Uint8Array)&&(n=t.from(n,n.offset,n.byteLength)),!t.isBuffer(e)||!t.isBuffer(n))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===n)return 0;for(var r=e.length,a=n.length,o=0,i=Math.min(r,a);o<i;++o)if(e[o]!==n[o]){r=e[o],a=n[o];break}return r<a?-1:a<r?1:0},t.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},t.concat=function(e,n){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return t.alloc(0);var r;if(void 0===n)for(n=0,r=0;r<e.length;++r)n+=e[r].length;var a=t.allocUnsafe(n),o=0;for(r=0;r<e.length;++r){var i=e[r];if(X(i,Uint8Array)&&(i=t.from(i)),!t.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(a,o),o+=i.length}return a},t.byteLength=g,t.prototype._isBuffer=!0,t.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)x(this,t,t+1);return this},t.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},t.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},t.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):b.apply(this,arguments)},t.prototype.toLocaleString=t.prototype.toString,t.prototype.equals=function(e){if(!t.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===t.compare(this,e)},t.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"},t.prototype.compare=function(e,n,r,a,o){if(X(e,Uint8Array)&&(e=t.from(e,e.offset,e.byteLength)),!t.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===n&&(n=0),void 0===r&&(r=e?e.length:0),void 0===a&&(a=0),void 0===o&&(o=this.length),n<0||r>e.length||a<0||o>this.length)throw new RangeError("out of range index");if(a>=o&&n>=r)return 0;if(a>=o)return-1;if(n>=r)return 1;if(n>>>=0,r>>>=0,a>>>=0,o>>>=0,this===e)return 0;for(var i=o-a,l=r-n,s=Math.min(i,l),u=this.slice(a,o),c=e.slice(n,r),f=0;f<s;++f)if(u[f]!==c[f]){i=u[f],l=c[f];break}return i<l?-1:l<i?1:0},t.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},t.prototype.indexOf=function(e,t,n){return _(this,e,t,n,!0)},t.prototype.lastIndexOf=function(e,t,n){return _(this,e,t,n,!1)},t.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return k(this,e,t,n);case"utf8":case"utf-8":return T(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return O(this,e,t,n);case"base64":return M(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},t.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var P=4096;function L(e){var t=e.length;if(t<=P)return String.fromCharCode.apply(String,e);var n="",r=0;while(r<t)n+=String.fromCharCode.apply(String,e.slice(r,r+=P));return n}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function j(e,t,n){var r="";n=Math.min(e.length,n);for(var a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function I(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var a="",o=t;o<n;++o)a+=W(e[o]);return a}function R(e,t,n){for(var r=e.slice(t,n),a="",o=0;o<r.length;o+=2)a+=String.fromCharCode(r[o]+256*r[o+1]);return a}function z(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,n,r,a,o,i){if(!t.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||n<i)throw new RangeError('"value" argument is out of bounds');if(r+a>e.length)throw new RangeError("Index out of range")}function F(e,t,n,r,a,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,o){return t=+t,n>>>=0,o||F(e,t,n,4,34028234663852886e22,-34028234663852886e22),a.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,o){return t=+t,n>>>=0,o||F(e,t,n,8,17976931348623157e292,-17976931348623157e292),a.write(e,t,n,r,52,8),n+8}t.prototype.slice=function(e,n){var r=this.length;e=~~e,n=void 0===n?r:~~n,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),n<0?(n+=r,n<0&&(n=0)):n>r&&(n=r),n<e&&(n=e);var a=this.subarray(e,n);return a.__proto__=t.prototype,a},t.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);var r=this[e],a=1,o=0;while(++o<t&&(a*=256))r+=this[e+o]*a;return r},t.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);var r=this[e+--t],a=1;while(t>0&&(a*=256))r+=this[e+--t]*a;return r},t.prototype.readUInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),this[e]},t.prototype.readUInt16LE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]|this[e+1]<<8},t.prototype.readUInt16BE=function(e,t){return e>>>=0,t||z(e,2,this.length),this[e]<<8|this[e+1]},t.prototype.readUInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},t.prototype.readUInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},t.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);var r=this[e],a=1,o=0;while(++o<t&&(a*=256))r+=this[e+o]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*t)),r},t.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||z(e,t,this.length);var r=t,a=1,o=this[e+--r];while(r>0&&(a*=256))o+=this[e+--r]*a;return a*=128,o>=a&&(o-=Math.pow(2,8*t)),o},t.prototype.readInt8=function(e,t){return e>>>=0,t||z(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},t.prototype.readInt16LE=function(e,t){e>>>=0,t||z(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt16BE=function(e,t){e>>>=0,t||z(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},t.prototype.readInt32LE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},t.prototype.readInt32BE=function(e,t){return e>>>=0,t||z(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},t.prototype.readFloatLE=function(e,t){return e>>>=0,t||z(e,4,this.length),a.read(this,e,!0,23,4)},t.prototype.readFloatBE=function(e,t){return e>>>=0,t||z(e,4,this.length),a.read(this,e,!1,23,4)},t.prototype.readDoubleLE=function(e,t){return e>>>=0,t||z(e,8,this.length),a.read(this,e,!0,52,8)},t.prototype.readDoubleBE=function(e,t){return e>>>=0,t||z(e,8,this.length),a.read(this,e,!1,52,8)},t.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var a=Math.pow(2,8*n)-1;N(this,e,t,n,a,0)}var o=1,i=0;this[t]=255&e;while(++i<n&&(o*=256))this[t+i]=e/o&255;return t+n},t.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){var a=Math.pow(2,8*n)-1;N(this,e,t,n,a,0)}var o=n-1,i=1;this[t+o]=255&e;while(--o>=0&&(i*=256))this[t+o]=e/i&255;return t+n},t.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},t.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},t.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);N(this,e,t,n,a-1,-a)}var o=0,i=1,l=0;this[t]=255&e;while(++o<n&&(i*=256))e<0&&0===l&&0!==this[t+o-1]&&(l=1),this[t+o]=(e/i>>0)-l&255;return t+n},t.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var a=Math.pow(2,8*n-1);N(this,e,t,n,a-1,-a)}var o=n-1,i=1,l=0;this[t+o]=255&e;while(--o>=0&&(i*=256))e<0&&0===l&&0!==this[t+o+1]&&(l=1),this[t+o]=(e/i>>0)-l&255;return t+n},t.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},t.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},t.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},t.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},t.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},t.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},t.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},t.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},t.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},t.prototype.copy=function(e,n,r,a){if(!t.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),a||0===a||(a=this.length),n>=e.length&&(n=e.length),n||(n=0),a>0&&a<r&&(a=r),a===r)return 0;if(0===e.length||0===this.length)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-n<a-r&&(a=e.length-n+r);var o=a-r;if(this===e&&"function"===typeof Uint8Array.prototype.copyWithin)this.copyWithin(n,r,a);else if(this===e&&r<n&&n<a)for(var i=o-1;i>=0;--i)e[i+n]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,a),n);return o},t.prototype.fill=function(e,n,r,a){if("string"===typeof e){if("string"===typeof n?(a=n,n=0,r=this.length):"string"===typeof r&&(a=r,r=this.length),void 0!==a&&"string"!==typeof a)throw new TypeError("encoding must be a string");if("string"===typeof a&&!t.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(1===e.length){var o=e.charCodeAt(0);("utf8"===a&&o<128||"latin1"===a)&&(e=o)}}else"number"===typeof e&&(e&=255);if(n<0||this.length<n||this.length<r)throw new RangeError("Out of range index");if(r<=n)return this;var i;if(n>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(i=n;i<r;++i)this[i]=e;else{var l=t.isBuffer(e)?e:t.from(e,a),s=l.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-n;++i)this[i+n]=l[i%s]}return this};var H=/[^+/0-9A-Za-z-_]/g;function U(e){if(e=e.split("=")[0],e=e.trim().replace(H,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}function W(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var n;t=t||1/0;for(var r=e.length,a=null,o=[],i=0;i<r;++i){if(n=e.charCodeAt(i),n>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(i+1===r){(t-=3)>-1&&o.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&o.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function G(e,t){for(var n,r,a,o=[],i=0;i<e.length;++i){if((t-=2)<0)break;n=e.charCodeAt(i),r=n>>8,a=n%256,o.push(a),o.push(r)}return o}function Y(e){return r.toByteArray(U(e))}function K(e,t,n,r){for(var a=0;a<r;++a){if(a+n>=t.length||a>=e.length)break;t[a+n]=e[a]}return a}function X(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Z(e){return e!==e}}).call(this,e("buffer").Buffer)},{"base64-js":79,buffer:111,ieee754:416}],112:[function(e,t,n){"use strict";var r=e("./lib/monotone"),a=e("./lib/triangulation"),o=e("./lib/delaunay"),i=e("./lib/filter");function l(e){return[Math.min(e[0],e[1]),Math.max(e[0],e[1])]}function s(e,t){return e[0]-t[0]||e[1]-t[1]}function u(e){return e.map(l).sort(s)}function c(e,t,n){return t in e?e[t]:n}function f(e,t,n){Array.isArray(t)?(n=n||{},t=t||[]):(n=t||{},t=[]);var l=!!c(n,"delaunay",!0),s=!!c(n,"interior",!0),f=!!c(n,"exterior",!0),p=!!c(n,"infinity",!1);if(!s&&!f||0===e.length)return[];var d=r(e,t);if(l||s!==f||p){for(var h=a(e.length,u(t)),v=0;v<d.length;++v){var m=d[v];h.addTriangle(m[0],m[1],m[2])}return l&&o(e,h),f?s?p?i(h,0,p):h.cells():i(h,1,p):i(h,-1)}return d}t.exports=f},{"./lib/delaunay":113,"./lib/filter":114,"./lib/monotone":115,"./lib/triangulation":116}],113:[function(e,t,n){"use strict";var r=e("robust-in-sphere")[4];e("binary-search-bounds");function a(e,t,n,a,o,i){var l=t.opposite(a,o);if(!(l<0)){if(o<a){var s=a;a=o,o=s,s=i,i=l,l=s}t.isConstraint(a,o)||r(e[a],e[o],e[i],e[l])<0&&n.push(a,o)}}function o(e,t){for(var n=[],o=e.length,i=t.stars,l=0;l<o;++l)for(var s=i[l],u=1;u<s.length;u+=2){var c=s[u];if(!(c<l)&&!t.isConstraint(l,c)){for(var f=s[u-1],p=-1,d=1;d<s.length;d+=2)if(s[d-1]===c){p=s[d];break}p<0||r(e[l],e[c],e[f],e[p])<0&&n.push(l,c)}}while(n.length>0){c=n.pop(),l=n.pop(),f=-1,p=-1,s=i[l];for(var h=1;h<s.length;h+=2){var v=s[h-1],m=s[h];v===c?p=m:m===c&&(f=v)}f<0||p<0||(r(e[l],e[c],e[f],e[p])>=0||(t.flip(l,c),a(e,t,n,f,l,p),a(e,t,n,l,p,f),a(e,t,n,p,c,f),a(e,t,n,c,f,p)))}}t.exports=o},{"binary-search-bounds":96,"robust-in-sphere":518}],114:[function(e,t,n){"use strict";var r=e("binary-search-bounds");function a(e,t,n,r,a,o,i){this.cells=e,this.neighbor=t,this.flags=r,this.constraint=n,this.active=a,this.next=o,this.boundary=i}t.exports=u;var o=a.prototype;function i(e,t){return e[0]-t[0]||e[1]-t[1]||e[2]-t[2]}function l(e,t){for(var n=e.cells(),r=n.length,o=0;o<r;++o){var l=n[o],s=l[0],u=l[1],c=l[2];u<c?u<s&&(l[0]=u,l[1]=c,l[2]=s):c<s&&(l[0]=c,l[1]=s,l[2]=u)}n.sort(i);var f=new Array(r);for(o=0;o<f.length;++o)f[o]=0;var p=[],d=[],h=new Array(3*r),v=new Array(3*r),m=null;t&&(m=[]);var y=new a(n,h,v,f,p,d,m);for(o=0;o<r;++o){l=n[o];for(var g=0;g<3;++g){s=l[g],u=l[(g+1)%3];var b=h[3*o+g]=y.locate(u,s,e.opposite(u,s)),x=v[3*o+g]=e.isConstraint(s,u);b<0&&(x?d.push(o):(p.push(o),f[o]=1),t&&m.push([u,s,-1]))}}return y}function s(e,t,n){for(var r=0,a=0;a<e.length;++a)t[a]===n&&(e[r++]=e[a]);return e.length=r,e}function u(e,t,n){var r=l(e,n);if(0===t)return n?r.cells.concat(r.boundary):r.cells;var a=1,o=r.active,i=r.next,u=r.flags,c=r.cells,f=r.constraint,p=r.neighbor;while(o.length>0||i.length>0){while(o.length>0){var d=o.pop();if(u[d]!==-a){u[d]=a;c[d];for(var h=0;h<3;++h){var v=p[3*d+h];v>=0&&0===u[v]&&(f[3*d+h]?i.push(v):(o.push(v),u[v]=a))}}}var m=i;i=o,o=m,i.length=0,a=-a}var y=s(c,u,t);return n?y.concat(r.boundary):y}o.locate=function(){var e=[0,0,0];return function(t,n,a){var o=t,l=n,s=a;return n<a?n<t&&(o=n,l=a,s=t):a<t&&(o=a,l=t,s=n),o<0?-1:(e[0]=o,e[1]=l,e[2]=s,r.eq(this.cells,e,i))}}()},{"binary-search-bounds":96}],115:[function(e,t,n){"use strict";var r=e("binary-search-bounds"),a=e("robust-orientation")[3],o=0,i=1,l=2;function s(e,t,n,r,a){this.a=e,this.b=t,this.idx=n,this.lowerIds=r,this.upperIds=a}function u(e,t,n,r){this.a=e,this.b=t,this.type=n,this.idx=r}function c(e,t){var n=e.a[0]-t.a[0]||e.a[1]-t.a[1]||e.type-t.type;return n||(e.type!==o&&(n=a(e.a,e.b,t.b),n)?n:e.idx-t.idx)}function f(e,t){return a(e.a,e.b,t)}function p(e,t,n,o,i){for(var l=r.lt(t,o,f),s=r.gt(t,o,f),u=l;u<s;++u){var c=t[u],p=c.lowerIds,d=p.length;while(d>1&&a(n[p[d-2]],n[p[d-1]],o)>0)e.push([p[d-1],p[d-2],i]),d-=1;p.length=d,p.push(i);var h=c.upperIds;d=h.length;while(d>1&&a(n[h[d-2]],n[h[d-1]],o)<0)e.push([h[d-2],h[d-1],i]),d-=1;h.length=d,h.push(i)}}function d(e,t){var n;return n=e.a[0]<t.a[0]?a(e.a,e.b,t.a):a(t.b,t.a,e.a),n||(n=t.b[0]<e.b[0]?a(e.a,e.b,t.b):a(t.b,t.a,e.b),n||e.idx-t.idx)}function h(e,t,n){var a=r.le(e,n,d),o=e[a],i=o.upperIds,l=i[i.length-1];o.upperIds=[l],e.splice(a+1,0,new s(n.a,n.b,n.idx,[l],i))}function v(e,t,n){var a=n.a;n.a=n.b,n.b=a;var o=r.eq(e,n,d),i=e[o],l=e[o-1];l.upperIds=i.upperIds,e.splice(o,1)}function m(e,t){for(var n=e.length,r=t.length,a=[],f=0;f<n;++f)a.push(new u(e[f],null,o,f));for(f=0;f<r;++f){var d=t[f],m=e[d[0]],y=e[d[1]];m[0]<y[0]?a.push(new u(m,y,l,f),new u(y,m,i,f)):m[0]>y[0]&&a.push(new u(y,m,l,f),new u(m,y,i,f))}a.sort(c);for(var g=a[0].a[0]-(1+Math.abs(a[0].a[0]))*Math.pow(2,-52),b=[new s([g,1],[g,0],-1,[],[],[],[])],x=[],_=(f=0,a.length);f<_;++f){var w=a[f],k=w.type;k===o?p(x,b,e,w.a,w.idx):k===l?h(b,e,w):v(b,e,w)}return x}t.exports=m},{"binary-search-bounds":96,"robust-orientation":520}],116:[function(e,t,n){"use strict";var r=e("binary-search-bounds");function a(e,t){this.stars=e,this.edges=t}t.exports=l;var o=a.prototype;function i(e,t,n){for(var r=1,a=e.length;r<a;r+=2)if(e[r-1]===t&&e[r]===n)return e[r-1]=e[a-2],e[r]=e[a-1],void(e.length=a-2)}function l(e,t){for(var n=new Array(e),r=0;r<e;++r)n[r]=[];return new a(n,t)}o.isConstraint=function(){var e=[0,0];function t(e,t){return e[0]-t[0]||e[1]-t[1]}return function(n,a){return e[0]=Math.min(n,a),e[1]=Math.max(n,a),r.eq(this.edges,e,t)>=0}}(),o.removeTriangle=function(e,t,n){var r=this.stars;i(r[e],t,n),i(r[t],n,e),i(r[n],e,t)},o.addTriangle=function(e,t,n){var r=this.stars;r[e].push(t,n),r[t].push(n,e),r[n].push(e,t)},o.opposite=function(e,t){for(var n=this.stars[t],r=1,a=n.length;r<a;r+=2)if(n[r]===e)return n[r-1];return-1},o.flip=function(e,t){var n=this.opposite(e,t),r=this.opposite(t,e);this.removeTriangle(e,t,n),this.removeTriangle(t,e,r),this.addTriangle(e,r,n),this.addTriangle(t,n,r)},o.edges=function(){for(var e=this.stars,t=[],n=0,r=e.length;n<r;++n)for(var a=e[n],o=0,i=a.length;o<i;o+=2)t.push([a[o],a[o+1]]);return t},o.cells=function(){for(var e=this.stars,t=[],n=0,r=e.length;n<r;++n)for(var a=e[n],o=0,i=a.length;o<i;o+=2){var l=a[o],s=a[o+1];n<Math.min(l,s)&&t.push([n,l,s])}return t}},{"binary-search-bounds":96}],117:[function(e,t,n){"use strict";function r(e){for(var t=1,n=1;n<e.length;++n)for(var r=0;r<n;++r)if(e[n]<e[r])t=-t;else if(e[r]===e[n])return 0;return t}t.exports=r},{}],118:[function(e,t,n){"use strict";var r=e("dup"),a=e("robust-linear-solve");function o(e,t){for(var n=0,r=e.length,a=0;a<r;++a)n+=e[a]*t[a];return n}function i(e){var t=e.length;if(0===t)return[];e[0].length;var n=r([e.length+1,e.length+1],1),i=r([e.length+1],1);n[t][t]=0;for(var l=0;l<t;++l){for(var s=0;s<=l;++s)n[s][l]=n[l][s]=2*o(e[l],e[s]);i[l]=o(e[l],e[l])}var u=a(n,i),c=0,f=u[t+1];for(l=0;l<f.length;++l)c+=f[l];var p=new Array(t);for(l=0;l<t;++l){f=u[l];var d=0;for(s=0;s<f.length;++s)d+=f[s];p[l]=d/c}return p}function l(e){if(0===e.length)return[];for(var t=e[0].length,n=r([t]),a=i(e),o=0;o<e.length;++o)for(var l=0;l<t;++l)n[l]+=e[o][l]*a[o];return n}l.barycenetric=i,t.exports=l},{dup:176,"robust-linear-solve":519}],119:[function(e,t,n){t.exports=a;var r=e("circumcenter");function a(e){for(var t=r(e),n=0,a=0;a<e.length;++a)for(var o=e[a],i=0;i<t.length;++i)n+=Math.pow(o[i]-t[i],2);return Math.sqrt(n/e.length)}},{circumcenter:118}],120:[function(e,t,n){function r(e,t,n){return t<n?e<t?t:e>n?n:e:e<n?n:e>t?t:e}t.exports=r},{}],121:[function(e,t,n){"use strict";t.exports=T;var r=e("union-find"),a=e("box-intersect"),o=e("robust-segment-intersect"),i=e("big-rat"),l=e("big-rat/cmp"),s=e("big-rat/to-float"),u=e("rat-vec"),c=e("nextafter"),f=e("./lib/rat-seg-intersect");function p(e){var t=s(e);return[c(t,-1/0),c(t,1/0)]}function d(e,t){for(var n=new Array(t.length),r=0;r<t.length;++r){var a=t[r],o=e[a[0]],i=e[a[1]];n[r]=[c(Math.min(o[0],i[0]),-1/0),c(Math.min(o[1],i[1]),-1/0),c(Math.max(o[0],i[0]),1/0),c(Math.max(o[1],i[1]),1/0)]}return n}function h(e){for(var t=new Array(e.length),n=0;n<e.length;++n){var r=e[n];t[n]=[c(r[0],-1/0),c(r[1],-1/0),c(r[0],1/0),c(r[1],1/0)]}return t}function v(e,t,n){var r=[];return a(n,(function(n,a){var i=t[n],l=t[a];if(i[0]!==l[0]&&i[0]!==l[1]&&i[1]!==l[0]&&i[1]!==l[1]){var s=e[i[0]],u=e[i[1]],c=e[l[0]],f=e[l[1]];o(s,u,c,f)&&r.push([n,a])}})),r}function m(e,t,n,r){var i=[];return a(n,r,(function(n,r){var a=t[n];if(a[0]!==r&&a[1]!==r){var l=e[r],s=e[a[0]],u=e[a[1]];o(s,u,l,l)&&i.push([n,r])}})),i}function y(e,t,n,r,a){var o,c,p=e.map((function(e){return[i(e[0]),i(e[1])]}));for(o=0;o<n.length;++o){var d=n[o];c=d[0];var h=d[1],v=t[c],m=t[h],y=f(u(e[v[0]]),u(e[v[1]]),u(e[m[0]]),u(e[m[1]]));if(y){var g=e.length;e.push([s(y[0]),s(y[1])]),p.push(y),r.push([c,g],[h,g])}}for(r.sort((function(e,t){if(e[0]!==t[0])return e[0]-t[0];var n=p[e[1]],r=p[t[1]];return l(n[0],r[0])||l(n[1],r[1])})),o=r.length-1;o>=0;--o){var b=r[o];c=b[0];var x=t[c],_=x[0],w=x[1],k=e[_],T=e[w];if((k[0]-T[0]||k[1]-T[1])<0){var E=_;_=w,w=E}x[0]=_;var O,M=x[1]=b[1];a&&(O=x[2]);while(o>0&&r[o-1][0]===c){b=r[--o];var S=b[1];a?t.push([M,S,O]):t.push([M,S]),M=S}a?t.push([M,w,O]):t.push([M,w])}return p}function g(e,t,n){for(var o=t.length,i=new r(o),l=[],s=0;s<t.length;++s){var u=t[s],f=p(u[0]),d=p(u[1]);l.push([c(f[0],-1/0),c(d[0],-1/0),c(f[1],1/0),c(d[1],1/0)])}a(l,(function(e,t){i.link(e,t)}));var h=!0,v=new Array(o);for(s=0;s<o;++s){var m=i.find(s);m!==s&&(h=!1,e[m]=[Math.min(e[s][0],e[m][0]),Math.min(e[s][1],e[m][1])])}if(h)return null;var y=0;for(s=0;s<o;++s){m=i.find(s);m===s?(v[s]=y,e[y++]=e[s]):v[s]=-1}e.length=y;for(s=0;s<o;++s)v[s]<0&&(v[s]=v[i.find(s)]);return v}function b(e,t){return e[0]-t[0]||e[1]-t[1]}function x(e,t){var n=e[0]-t[0]||e[1]-t[1];return n||(e[2]<t[2]?-1:e[2]>t[2]?1:0)}function _(e,t,n){if(0!==e.length){if(t)for(var r=0;r<e.length;++r){var a=e[r],o=t[a[0]],i=t[a[1]];a[0]=Math.min(o,i),a[1]=Math.max(o,i)}else for(r=0;r<e.length;++r){a=e[r],o=a[0],i=a[1];a[0]=Math.min(o,i),a[1]=Math.max(o,i)}n?e.sort(x):e.sort(b);var l=1;for(r=1;r<e.length;++r){var s=e[r-1],u=e[r];(u[0]!==s[0]||u[1]!==s[1]||n&&u[2]!==s[2])&&(e[l++]=u)}e.length=l}}function w(e,t,n){var r=g(e,[],h(e));return _(t,r,n),!!r}function k(e,t,n){var r=d(e,t),a=v(e,t,r),o=h(e),i=m(e,t,r,o),l=y(e,t,a,i,n),s=g(e,l,o);return _(t,s,n),!!s||(a.length>0||i.length>0)}function T(e,t,n){var r;if(n){r=t;for(var a=new Array(t.length),o=0;o<t.length;++o){var i=t[o];a[o]=[i[0],i[1],n[o]]}t=a}var l=w(e,t,!!n);while(k(e,t,!!n))l=!0;if(n&&l){r.length=0,n.length=0;for(o=0;o<t.length;++o){i=t[o];r.push([i[0],i[1]]),n.push(i[2])}}return l}},{"./lib/rat-seg-intersect":122,"big-rat":83,"big-rat/cmp":81,"big-rat/to-float":95,"box-intersect":101,nextafter:470,"rat-vec":504,"robust-segment-intersect":523,"union-find":568}],122:[function(e,t,n){"use strict";t.exports=f;var r=e("big-rat/mul"),a=e("big-rat/div"),o=e("big-rat/sub"),i=e("big-rat/sign"),l=e("rat-vec/sub"),s=e("rat-vec/add"),u=e("rat-vec/muls");function c(e,t){return o(r(e[0],t[1]),r(e[1],t[0]))}function f(e,t,n,r){var o=l(t,e),f=l(r,n),p=c(o,f);if(0===i(p))return null;var d=l(e,n),h=c(f,d),v=a(h,p),m=u(o,v),y=s(e,m);return y}},{"big-rat/div":82,"big-rat/mul":92,"big-rat/sign":93,"big-rat/sub":94,"rat-vec/add":503,"rat-vec/muls":505,"rat-vec/sub":506}],123:[function(e,t,n){"use strict";var r=e("clamp");function a(e,t){null==t&&(t=!0);var n=e[0],a=e[1],o=e[2],i=e[3];null==i&&(i=t?1:255),t&&(n*=255,a*=255,o*=255,i*=255),n=255&r(n,0,255),a=255&r(a,0,255),o=255&r(o,0,255),i=255&r(i,0,255);var l=16777216*n+(a<<16)+(o<<8)+i;return l}function o(e,t){e=+e;var n=e>>>24,r=(16711680&e)>>>16,a=(65280&e)>>>8,o=255&e;return!1===t?[n,r,a,o]:[n/255,r/255,a/255,o/255]}t.exports=a,t.exports.to=a,t.exports.from=o},{clamp:120}],124:[function(e,t,n){"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],125:[function(e,t,n){"use strict";var r=e("color-rgba"),a=e("clamp"),o=e("dtype");function i(e){return e instanceof Uint8Array||e instanceof Uint8ClampedArray||!!(Array.isArray(e)&&(e[0]>1||0===e[0])&&(e[1]>1||0===e[1])&&(e[2]>1||0===e[2])&&(!e[3]||e[3]>1))}t.exports=function(e,t){"float"!==t&&t||(t="array"),"uint"===t&&(t="uint8"),"uint_clamped"===t&&(t="uint8_clamped");var n=o(t),l=new n(4),s="uint8"!==t&&"uint8_clamped"!==t;return e.length&&"string"!==typeof e||(e=r(e),e[0]/=255,e[1]/=255,e[2]/=255),i(e)?(l[0]=e[0],l[1]=e[1],l[2]=e[2],l[3]=null!=e[3]?e[3]:255,s&&(l[0]/=255,l[1]/=255,l[2]/=255,l[3]/=255),l):(s?(l[0]=e[0],l[1]=e[1],l[2]=e[2],l[3]=null!=e[3]?e[3]:1):(l[0]=a(Math.floor(255*e[0]),0,255),l[1]=a(Math.floor(255*e[1]),0,255),l[2]=a(Math.floor(255*e[2]),0,255),l[3]=null==e[3]?255:a(Math.floor(255*e[3]),0,255)),l)}},{clamp:120,"color-rgba":127,dtype:175}],126:[function(e,n,r){(function(t){"use strict";var r=e("color-name"),a=e("is-plain-obj"),o=e("defined");n.exports=l;var i={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function l(e){var n,l,s=[],u=1;if("string"===typeof e)if(r[e])s=r[e].slice(),l="rgb";else if("transparent"===e)u=0,l="rgb",s=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var c=e.slice(1),f=c.length,p=f<=4;u=1,p?(s=[parseInt(c[0]+c[0],16),parseInt(c[1]+c[1],16),parseInt(c[2]+c[2],16)],4===f&&(u=parseInt(c[3]+c[3],16)/255)):(s=[parseInt(c[0]+c[1],16),parseInt(c[2]+c[3],16),parseInt(c[4]+c[5],16)],8===f&&(u=parseInt(c[6]+c[7],16)/255)),s[0]||(s[0]=0),s[1]||(s[1]=0),s[2]||(s[2]=0),l="rgb"}else if(n=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var d=n[1],h="rgb"===d;c=d.replace(/a$/,"");l=c;f="cmyk"===c?4:"gray"===c?1:3;s=n[2].trim().split(/\s*,\s*/).map((function(e,t){if(/%$/.test(e))return t===f?parseFloat(e)/100:"rgb"===c?255*parseFloat(e)/100:parseFloat(e);if("h"===c[t]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==i[e])return i[e]}return parseFloat(e)})),d===c&&s.push(1),u=h||void 0===s[f]?1:s[f],s=s.slice(0,f)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(s=e.match(/([0-9]+)/g).map((function(e){return parseFloat(e)})),l=e.match(/([a-z])/gi).join("").toLowerCase());else if(isNaN(e))if(a(e)){var v=o(e.r,e.red,e.R,null);null!==v?(l="rgb",s=[v,o(e.g,e.green,e.G),o(e.b,e.blue,e.B)]):(l="hsl",s=[o(e.h,e.hue,e.H),o(e.s,e.saturation,e.S),o(e.l,e.lightness,e.L,e.b,e.brightness)]),u=o(e.a,e.alpha,e.opacity,1),null!=e.opacity&&(u/=100)}else(Array.isArray(e)||t.ArrayBuffer&&ArrayBuffer.isView&&ArrayBuffer.isView(e))&&(s=[e[0],e[1],e[2]],l="rgb",u=4===e.length?e[3]:1);else l="rgb",s=[e>>>16,(65280&e)>>>8,255&e];return{space:l,values:s,alpha:u}}}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"color-name":124,defined:170,"is-plain-obj":443}],127:[function(e,t,n){"use strict";var r=e("color-parse"),a=e("color-space/hsl"),o=e("clamp");t.exports=function(e){var t,n=r(e);return n.space?(t=Array(3),t[0]=o(n.values[0],0,255),t[1]=o(n.values[1],0,255),t[2]=o(n.values[2],0,255),"h"===n.space[0]&&(t=a.rgb(t)),t.push(o(n.alpha,0,1)),t):[]}},{clamp:120,"color-parse":126,"color-space/hsl":128}],128:[function(e,t,n){"use strict";var r=e("./rgb");t.exports={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,n,r,a,o,i=e[0]/360,l=e[1]/100,s=e[2]/100;if(0===l)return o=255*s,[o,o,o];n=s<.5?s*(1+l):s+l-s*l,t=2*s-n,a=[0,0,0];for(var u=0;u<3;u++)r=i+1/3*-(u-1),r<0?r++:r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,a[u]=255*o;return a}},r.hsl=function(e){var t,n,r,a=e[0]/255,o=e[1]/255,i=e[2]/255,l=Math.min(a,o,i),s=Math.max(a,o,i),u=s-l;return s===l?t=0:a===s?t=(o-i)/u:o===s?t=2+(i-a)/u:i===s&&(t=4+(a-o)/u),t=Math.min(60*t,360),t<0&&(t+=360),r=(l+s)/2,n=s===l?0:r<=.5?u/(s+l):u/(2-s-l),[t,100*n,100*r]}},{"./rgb":129}],129:[function(e,t,n){"use strict";t.exports={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]}},{}],130:[function(e,t,n){t.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],cool:[{index:0,rgb:[0,255,255]},{index:1,rgb:[255,0,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],"rainbow-soft":[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],"freesurface-blue":[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],"freesurface-red":[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],"velocity-blue":[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],"velocity-green":[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],131:[function(e,t,n){"use strict";var r=e("./colorScale"),a=e("lerp");function o(e){var t,n,o,u,c,f,p,d,h,v;if(e||(e={}),d=(e.nshades||72)-1,p=e.format||"hex",f=e.colormap,f||(f="jet"),"string"===typeof f){if(f=f.toLowerCase(),!r[f])throw Error(f+" not a supported colorscale");c=r[f]}else{if(!Array.isArray(f))throw Error("unsupported colormap option",f);c=f.slice()}if(c.length>d+1)throw new Error(f+" map requires nshades to be at least size "+c.length);h=Array.isArray(e.alpha)?2!==e.alpha.length?[1,1]:e.alpha.slice():"number"===typeof e.alpha?[e.alpha,e.alpha]:[1,1],t=c.map((function(e){return Math.round(e.index*d)})),h[0]=Math.min(Math.max(h[0],0),1),h[1]=Math.min(Math.max(h[1],0),1);var m=c.map((function(e,t){var n=c[t].index,r=c[t].rgb.slice();return 4===r.length&&r[3]>=0&&r[3]<=1||(r[3]=h[0]+(h[1]-h[0])*n),r})),y=[];for(v=0;v<t.length-1;++v){u=t[v+1]-t[v],n=m[v],o=m[v+1];for(var g=0;g<u;g++){var b=g/u;y.push([Math.round(a(n[0],o[0],b)),Math.round(a(n[1],o[1],b)),Math.round(a(n[2],o[2],b)),a(n[3],o[3],b)])}}return y.push(c[c.length-1].rgb.concat(h[1])),"hex"===p?y=y.map(l):"rgbaString"===p?y=y.map(s):"float"===p&&(y=y.map(i)),y}function i(e){return[e[0]/255,e[1]/255,e[2]/255,e[3]]}function l(e){for(var t,n="#",r=0;r<3;++r)t=e[r],t=t.toString(16),n+=("00"+t).substr(t.length);return n}function s(e){return"rgba("+e.join(",")+")"}t.exports=o},{"./colorScale":130,lerp:446}],132:[function(e,t,n){"use strict";t.exports=u;var r=e("robust-orientation"),a=e("signum"),o=e("two-sum"),i=e("robust-product"),l=e("robust-sum");function s(e,t,n){var r=o(e[0],-t[0]),a=o(e[1],-t[1]),s=o(n[0],-t[0]),u=o(n[1],-t[1]),c=l(i(r,s),i(a,u));return c[c.length-1]>=0}function u(e,t,n,o){var i=r(t,n,o);if(0===i){var l=a(r(e,t,n)),u=a(r(e,t,o));if(l===u){if(0===l){var c=s(e,t,n),f=s(e,t,o);return c===f?0:c?1:-1}return 0}return 0===u?l>0||s(e,t,o)?-1:1:0===l?u>0||s(e,t,n)?1:-1:a(u-l)}var p=r(e,t,n);if(p>0)return i>0&&r(e,t,o)>0?1:-1;if(p<0)return i>0||r(e,t,o)>0?1:-1;var d=r(e,t,o);return d>0||s(e,t,n)?1:-1}},{"robust-orientation":520,"robust-product":521,"robust-sum":525,signum:526,"two-sum":555}],133:[function(e,t,n){t.exports=o;var r=Math.min;function a(e,t){return e-t}function o(e,t){var n=e.length,o=e.length-t.length;if(o)return o;switch(n){case 0:return 0;case 1:return e[0]-t[0];case 2:return e[0]+e[1]-t[0]-t[1]||r(e[0],e[1])-r(t[0],t[1]);case 3:var i=e[0]+e[1],l=t[0]+t[1];if(o=i+e[2]-(l+t[2]),o)return o;var s=r(e[0],e[1]),u=r(t[0],t[1]);return r(s,e[2])-r(u,t[2])||r(s+e[2],i)-r(u+t[2],l);case 4:var c=e[0],f=e[1],p=e[2],d=e[3],h=t[0],v=t[1],m=t[2],y=t[3];return c+f+p+d-(h+v+m+y)||r(c,f,p,d)-r(h,v,m,y,h)||r(c+f,c+p,c+d,f+p,f+d,p+d)-r(h+v,h+m,h+y,v+m,v+y,m+y)||r(c+f+p,c+f+d,c+p+d,f+p+d)-r(h+v+m,h+v+y,h+m+y,v+m+y);default:for(var g=e.slice().sort(a),b=t.slice().sort(a),x=0;x<n;++x)if(o=g[x]-b[x],o)return o;return 0}}},{}],134:[function(e,t,n){"use strict";var r=e("compare-cell"),a=e("cell-orientation");function o(e,t){return r(e,t)||a(e)-a(t)}t.exports=o},{"cell-orientation":117,"compare-cell":133}],135:[function(e,t,n){"use strict";var r=e("./lib/ch1d"),a=e("./lib/ch2d"),o=e("./lib/chnd");function i(e){var t=e.length;if(0===t)return[];if(1===t)return[[0]];var n=e[0].length;return 0===n?[]:1===n?r(e):2===n?a(e):o(e,n)}t.exports=i},{"./lib/ch1d":136,"./lib/ch2d":137,"./lib/chnd":138}],136:[function(e,t,n){"use strict";function r(e){for(var t=0,n=0,r=1;r<e.length;++r)e[r][0]<e[t][0]&&(t=r),e[r][0]>e[n][0]&&(n=r);return t<n?[[t],[n]]:t>n?[[n],[t]]:[[t]]}t.exports=r},{}],137:[function(e,t,n){"use strict";t.exports=a;var r=e("monotone-convex-hull-2d");function a(e){var t=r(e),n=t.length;if(n<=2)return[];for(var a=new Array(n),o=t[n-1],i=0;i<n;++i){var l=t[i];a[i]=[o,l],o=l}return a}},{"monotone-convex-hull-2d":456}],138:[function(e,t,n){"use strict";t.exports=l;var r=e("incremental-convex-hull"),a=e("affine-hull");function o(e,t){for(var n=e.length,r=new Array(n),a=0;a<t.length;++a)r[a]=e[t[a]];var o=t.length;for(a=0;a<n;++a)t.indexOf(a)<0&&(r[o++]=e[a]);return r}function i(e,t){for(var n=e.length,r=t.length,a=0;a<n;++a)for(var o=e[a],i=0;i<o.length;++i){var l=o[i];if(l<r)o[i]=t[l];else{l-=r;for(var s=0;s<r;++s)l>=t[s]&&(l+=1);o[i]=l}}return e}function l(e,t){try{return r(e,!0)}catch(u){var n=a(e);if(n.length<=t)return[];var l=o(e,n),s=r(l,!0);return i(s,n)}}},{"affine-hull":67,"incremental-convex-hull":433}],139:[function(e,t,n){t.exports={AFG:"afghan",ALA:"\\b\\wland",ALB:"albania",DZA:"algeria",ASM:"^(?=.*americ).*samoa",AND:"andorra",AGO:"angola",AIA:"anguill?a",ATA:"antarctica",ATG:"antigua",ARG:"argentin",ARM:"armenia",ABW:"^(?!.*bonaire).*\\baruba",AUS:"australia",AUT:"^(?!.*hungary).*austria|\\baustri.*\\bemp",AZE:"azerbaijan",BHS:"bahamas",BHR:"bahrain",BGD:"bangladesh|^(?=.*east).*paki?stan",BRB:"barbados",BLR:"belarus|byelo",BEL:"^(?!.*luxem).*belgium",BLZ:"belize|^(?=.*british).*honduras",BEN:"benin|dahome",BMU:"bermuda",BTN:"bhutan",BOL:"bolivia",BES:"^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands",BIH:"herzegovina|bosnia",BWA:"botswana|bechuana",BVT:"bouvet",BRA:"brazil",IOT:"british.?indian.?ocean",BRN:"brunei",BGR:"bulgaria",BFA:"burkina|\\bfaso|upper.?volta",BDI:"burundi",CPV:"verde",KHM:"cambodia|kampuchea|khmer",CMR:"cameroon",CAN:"canada",CYM:"cayman",CAF:"\\bcentral.african.republic",TCD:"\\bchad",CHL:"\\bchile",CHN:"^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china",CXR:"christmas",CCK:"\\bcocos|keeling",COL:"colombia",COM:"comoro",COG:"^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo",COK:"\\bcook",CRI:"costa.?rica",CIV:"ivoire|ivory",HRV:"croatia",CUB:"\\bcuba",CUW:"^(?!.*bonaire).*\\bcura(c|ç)ao",CYP:"cyprus",CSK:"czechoslovakia",CZE:"^(?=.*rep).*czech|czechia|bohemia",COD:"\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc",DNK:"denmark",DJI:"djibouti",DMA:"dominica(?!n)",DOM:"dominican.rep",ECU:"ecuador",EGY:"egypt",SLV:"el.?salvador",GNQ:"guine.*eq|eq.*guine|^(?=.*span).*guinea",ERI:"eritrea",EST:"estonia",ETH:"ethiopia|abyssinia",FLK:"falkland|malvinas",FRO:"faroe|faeroe",FJI:"fiji",FIN:"finland",FRA:"^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul",GUF:"^(?=.*french).*guiana",PYF:"french.?polynesia|tahiti",ATF:"french.?southern",GAB:"gabon",GMB:"gambia",GEO:"^(?!.*south).*georgia",DDR:"german.?democratic.?republic|democratic.?republic.*germany|east.germany",DEU:"^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german",GHA:"ghana|gold.?coast",GIB:"gibraltar",GRC:"greece|hellenic|hellas",GRL:"greenland",GRD:"grenada",GLP:"guadeloupe",GUM:"\\bguam",GTM:"guatemala",GGY:"guernsey",GIN:"^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea",GNB:"bissau|^(?=.*portu).*guinea",GUY:"guyana|british.?guiana",HTI:"haiti",HMD:"heard.*mcdonald",VAT:"holy.?see|vatican|papal.?st",HND:"^(?!.*brit).*honduras",HKG:"hong.?kong",HUN:"^(?!.*austr).*hungary",ISL:"iceland",IND:"india(?!.*ocea)",IDN:"indonesia",IRN:"\\biran|persia",IRQ:"\\biraq|mesopotamia",IRL:"(^ireland)|(^republic.*ireland)",IMN:"^(?=.*isle).*\\bman",ISR:"israel",ITA:"italy",JAM:"jamaica",JPN:"japan",JEY:"jersey",JOR:"jordan",KAZ:"kazak",KEN:"kenya|british.?east.?africa|east.?africa.?prot",KIR:"kiribati",PRK:"^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)",KWT:"kuwait",KGZ:"kyrgyz|kirghiz",LAO:"\\blaos?\\b",LVA:"latvia",LBN:"lebanon",LSO:"lesotho|basuto",LBR:"liberia",LBY:"libya",LIE:"liechtenstein",LTU:"lithuania",LUX:"^(?!.*belg).*luxem",MAC:"maca(o|u)",MDG:"madagascar|malagasy",MWI:"malawi|nyasa",MYS:"malaysia",MDV:"maldive",MLI:"\\bmali\\b",MLT:"\\bmalta",MHL:"marshall",MTQ:"martinique",MRT:"mauritania",MUS:"mauritius",MYT:"\\bmayotte",MEX:"\\bmexic",FSM:"fed.*micronesia|micronesia.*fed",MCO:"monaco",MNG:"mongolia",MNE:"^(?!.*serbia).*montenegro",MSR:"montserrat",MAR:"morocco|\\bmaroc",MOZ:"mozambique",MMR:"myanmar|burma",NAM:"namibia",NRU:"nauru",NPL:"nepal",NLD:"^(?!.*\\bant)(?!.*\\bcarib).*netherlands",ANT:"^(?=.*\\bant).*(nether|dutch)",NCL:"new.?caledonia",NZL:"new.?zealand",NIC:"nicaragua",NER:"\\bniger(?!ia)",NGA:"nigeria",NIU:"niue",NFK:"norfolk",MNP:"mariana",NOR:"norway",OMN:"\\boman|trucial",PAK:"^(?!.*east).*paki?stan",PLW:"palau",PSE:"palestin|\\bgaza|west.?bank",PAN:"panama",PNG:"papua|new.?guinea",PRY:"paraguay",PER:"peru",PHL:"philippines",PCN:"pitcairn",POL:"poland",PRT:"portugal",PRI:"puerto.?rico",QAT:"qatar",KOR:"^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)",MDA:"moldov|b(a|e)ssarabia",REU:"r(e|é)union",ROU:"r(o|u|ou)mania",RUS:"\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics",RWA:"rwanda",BLM:"barth(e|é)lemy",SHN:"helena",KNA:"kitts|\\bnevis",LCA:"\\blucia",MAF:"^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)",SPM:"miquelon",VCT:"vincent",WSM:"^(?!.*amer).*samoa",SMR:"san.?marino",STP:"\\bs(a|ã)o.?tom(e|é)",SAU:"\\bsa\\w*.?arabia",SEN:"senegal",SRB:"^(?!.*monte).*serbia",SYC:"seychell",SLE:"sierra",SGP:"singapore",SXM:"^(?!.*martin)(?!.*saba).*maarten",SVK:"^(?!.*cze).*slovak",SVN:"slovenia",SLB:"solomon",SOM:"somali",ZAF:"south.africa|s\\\\..?africa",SGS:"south.?georgia|sandwich",SSD:"\\bs\\w*.?sudan",ESP:"spain",LKA:"sri.?lanka|ceylon",SDN:"^(?!.*\\bs(?!u)).*sudan",SUR:"surinam|dutch.?guiana",SJM:"svalbard",SWZ:"swaziland",SWE:"sweden",CHE:"switz|swiss",SYR:"syria",TWN:"taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china",TJK:"tajik",THA:"thailand|\\bsiam",MKD:"macedonia|fyrom",TLS:"^(?=.*leste).*timor|^(?=.*east).*timor",TGO:"togo",TKL:"tokelau",TON:"tonga",TTO:"trinidad|tobago",TUN:"tunisia",TUR:"turkey",TKM:"turkmen",TCA:"turks",TUV:"tuvalu",UGA:"uganda",UKR:"ukrain",ARE:"emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em",GBR:"united.?kingdom|britain|^u\\.?k\\.?$",TZA:"tanzania",USA:"united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)",UMI:"minor.?outlying.?is",URY:"uruguay",UZB:"uzbek",VUT:"vanuatu|new.?hebrides",VEN:"venezuela",VNM:"^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam",VGB:"^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin",VIR:"^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin",WLF:"futuna|wallis",ESH:"western.sahara",YEM:"^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen",YMD:"^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen",YUG:"yugoslavia",ZMB:"zambia|northern.?rhodesia",EAZ:"zanzibar",ZWE:"zimbabwe|^(?!.*northern).*rhodesia"}},{}],140:[function(e,t,n){t.exports=["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]},{}],141:[function(e,t,n){t.exports=["normal","condensed","semi-condensed","extra-condensed","ultra-condensed","expanded","semi-expanded","extra-expanded","ultra-expanded"]},{}],142:[function(e,t,n){t.exports=["normal","italic","oblique"]},{}],143:[function(e,t,n){t.exports=["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"]},{}],144:[function(e,t,n){"use strict";t.exports={parse:e("./parse"),stringify:e("./stringify")}},{"./parse":146,"./stringify":147}],145:[function(e,t,n){"use strict";var r=e("css-font-size-keywords");t.exports={isSize:function(e){return/^[\d\.]/.test(e)||-1!==e.indexOf("/")||-1!==r.indexOf(e)}}},{"css-font-size-keywords":140}],146:[function(e,t,n){"use strict";var r=e("unquote"),a=e("css-global-keywords"),o=e("css-system-font-keywords"),i=e("css-font-weight-keywords"),l=e("css-font-style-keywords"),s=e("css-font-stretch-keywords"),u=e("string-split-by"),c=e("./lib/util").isSize;t.exports=p;var f=p.cache={};function p(e){if("string"!==typeof e)throw new Error("Font argument must be a string.");if(f[e])return f[e];if(""===e)throw new Error("Cannot parse an empty string.");if(-1!==o.indexOf(e))return f[e]={system:e};var t,n={style:"normal",variant:"normal",weight:"normal",stretch:"normal",lineHeight:"normal",size:"1rem",family:["serif"]},p=u(e,/\s+/);while(t=p.shift()){if(-1!==a.indexOf(t))return["style","variant","weight","stretch"].forEach((function(e){n[e]=t})),f[e]=n;if(-1===l.indexOf(t))if("normal"!==t&&"small-caps"!==t)if(-1===s.indexOf(t)){if(-1===i.indexOf(t)){if(c(t)){var h=u(t,"/");if(n.size=h[0],null!=h[1]?n.lineHeight=d(h[1]):"/"===p[0]&&(p.shift(),n.lineHeight=d(p.shift())),!p.length)throw new Error("Missing required font-family.");return n.family=u(p.join(" "),/\s*,\s*/).map(r),f[e]=n}throw new Error("Unknown or unsupported font token: "+t)}n.weight=t}else n.stretch=t;else n.variant=t;else n.style=t}throw new Error("Missing required font-size.")}function d(e){var t=parseFloat(e);return t.toString()===e?t:e}},{"./lib/util":145,"css-font-stretch-keywords":141,"css-font-style-keywords":142,"css-font-weight-keywords":143,"css-global-keywords":148,"css-system-font-keywords":149,"string-split-by":540,unquote:570}],147:[function(e,t,n){"use strict";var r=e("pick-by-alias"),a=e("./lib/util").isSize,o=h(e("css-global-keywords")),i=h(e("css-system-font-keywords")),l=h(e("css-font-weight-keywords")),s=h(e("css-font-style-keywords")),u=h(e("css-font-stretch-keywords")),c={normal:1,"small-caps":1},f={serif:1,"sans-serif":1,monospace:1,cursive:1,fantasy:1,"system-ui":1},p={style:"normal",variant:"normal",weight:"normal",stretch:"normal",size:"1rem",lineHeight:"normal",family:"serif"};function d(e,t){if(e&&!t[e]&&!o[e])throw Error("Unknown keyword `"+e+"`");return e}function h(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=1;return t}t.exports=function(e){if(e=r(e,{style:"style fontstyle fontStyle font-style slope distinction",variant:"variant font-variant fontVariant fontvariant var capitalization",weight:"weight w font-weight fontWeight fontweight",stretch:"stretch font-stretch fontStretch fontstretch width",size:"size s font-size fontSize fontsize height em emSize",lineHeight:"lh line-height lineHeight lineheight leading",family:"font family fontFamily font-family fontfamily type typeface face",system:"system reserved default global"}),e.system)return e.system&&d(e.system,i),e.system;if(d(e.style,s),d(e.variant,c),d(e.weight,l),d(e.stretch,u),null==e.size&&(e.size=p.size),"number"===typeof e.size&&(e.size+="px"),!a)throw Error("Bad size value `"+e.size+"`");e.family||(e.family=p.family),Array.isArray(e.family)&&(e.family.length||(e.family=[p.family]),e.family=e.family.map((function(e){return f[e]?e:'"'+e+'"'})).join(", "));var t=[];return t.push(e.style),e.variant!==e.style&&t.push(e.variant),e.weight!==e.variant&&e.weight!==e.style&&t.push(e.weight),e.stretch!==e.weight&&e.stretch!==e.variant&&e.stretch!==e.style&&t.push(e.stretch),t.push(e.size+(null==e.lineHeight||"normal"===e.lineHeight||e.lineHeight+""==="1"?"":"/"+e.lineHeight)),t.push(e.family),t.filter(Boolean).join(" ")}},{"./lib/util":145,"css-font-stretch-keywords":141,"css-font-style-keywords":142,"css-font-weight-keywords":143,"css-global-keywords":148,"css-system-font-keywords":149,"pick-by-alias":485}],148:[function(e,t,n){t.exports=["inherit","initial","unset"]},{}],149:[function(e,t,n){t.exports=["caption","icon","menu","message-box","small-caption","status-bar"]},{}],150:[function(e,t,n){"use strict";function r(e,t,n,r,a,o){var i=6*a*a-6*a,l=3*a*a-4*a+1,s=-6*a*a+6*a,u=3*a*a-2*a;if(e.length){o||(o=new Array(e.length));for(var c=e.length-1;c>=0;--c)o[c]=i*e[c]+l*t[c]+s*n[c]+u*r[c];return o}return i*e+l*t+s*n[c]+u*r}function a(e,t,n,r,a,o){var i=a-1,l=a*a,s=i*i,u=(1+2*a)*s,c=a*s,f=l*(3-2*a),p=l*i;if(e.length){o||(o=new Array(e.length));for(var d=e.length-1;d>=0;--d)o[d]=u*e[d]+c*t[d]+f*n[d]+p*r[d];return o}return u*e+c*t+f*n+p*r}t.exports=a,t.exports.derivative=r},{}],151:[function(e,t,n){"use strict";var r=e("./lib/thunk.js");function a(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName="",this.pre=null,this.body=null,this.post=null,this.debug=!1}function o(e){var t=new a;t.pre=e.pre,t.body=e.body,t.post=e.post;var n=e.args.slice(0);t.argTypes=n;for(var o=0;o<n.length;++o){var i=n[o];if("array"===i||"object"===typeof i&&i.blockIndices){if(t.argTypes[o]="array",t.arrayArgs.push(o),t.arrayBlockIndices.push(i.blockIndices?i.blockIndices:0),t.shimArgs.push("array"+o),o<t.pre.args.length&&t.pre.args[o].count>0)throw new Error("cwise: pre() block may not reference array args");if(o<t.post.args.length&&t.post.args[o].count>0)throw new Error("cwise: post() block may not reference array args")}else if("scalar"===i)t.scalarArgs.push(o),t.shimArgs.push("scalar"+o);else if("index"===i){if(t.indexArgs.push(o),o<t.pre.args.length&&t.pre.args[o].count>0)throw new Error("cwise: pre() block may not reference array index");if(o<t.body.args.length&&t.body.args[o].lvalue)throw new Error("cwise: body() block may not write to array index");if(o<t.post.args.length&&t.post.args[o].count>0)throw new Error("cwise: post() block may not reference array index")}else if("shape"===i){if(t.shapeArgs.push(o),o<t.pre.args.length&&t.pre.args[o].lvalue)throw new Error("cwise: pre() block may not write to array shape");if(o<t.body.args.length&&t.body.args[o].lvalue)throw new Error("cwise: body() block may not write to array shape");if(o<t.post.args.length&&t.post.args[o].lvalue)throw new Error("cwise: post() block may not write to array shape")}else{if("object"!==typeof i||!i.offset)throw new Error("cwise: Unknown argument type "+n[o]);t.argTypes[o]="offset",t.offsetArgs.push({array:i.array,offset:i.offset}),t.offsetArgIndex.push(o)}}if(t.arrayArgs.length<=0)throw new Error("cwise: No array arguments specified");if(t.pre.args.length>n.length)throw new Error("cwise: Too many arguments in pre() block");if(t.body.args.length>n.length)throw new Error("cwise: Too many arguments in body() block");if(t.post.args.length>n.length)throw new Error("cwise: Too many arguments in post() block");return t.debug=!!e.printCode||!!e.debug,t.funcName=e.funcName||"cwise",t.blockSize=e.blockSize||64,r(t)}t.exports=o},{"./lib/thunk.js":153}],152:[function(e,t,n){"use strict";var r=e("uniq");function a(e,t,n){var r,a,o=e.length,i=t.arrayArgs.length,l=t.indexArgs.length>0,s=[],u=[],c=0,f=0;for(r=0;r<o;++r)u.push(["i",r,"=0"].join(""));for(a=0;a<i;++a)for(r=0;r<o;++r)f=c,c=e[r],0===r?u.push(["d",a,"s",r,"=t",a,"p",c].join("")):u.push(["d",a,"s",r,"=(t",a,"p",c,"-s",f,"*t",a,"p",f,")"].join(""));for(u.length>0&&s.push("var "+u.join(",")),r=o-1;r>=0;--r)c=e[r],s.push(["for(i",r,"=0;i",r,"<s",c,";++i",r,"){"].join(""));for(s.push(n),r=0;r<o;++r){for(f=c,c=e[r],a=0;a<i;++a)s.push(["p",a,"+=d",a,"s",r].join(""));l&&(r>0&&s.push(["index[",f,"]-=s",f].join("")),s.push(["++index[",c,"]"].join(""))),s.push("}")}return s.join("\n")}function o(e,t,n,r){for(var o=t.length,i=n.arrayArgs.length,l=n.blockSize,s=n.indexArgs.length>0,u=[],c=0;c<i;++c)u.push(["var offset",c,"=p",c].join(""));for(c=e;c<o;++c)u.push(["for(var j"+c+"=SS[",t[c],"]|0;j",c,">0;){"].join("")),u.push(["if(j",c,"<",l,"){"].join("")),u.push(["s",t[c],"=j",c].join("")),u.push(["j",c,"=0"].join("")),u.push(["}else{s",t[c],"=",l].join("")),u.push(["j",c,"-=",l,"}"].join("")),s&&u.push(["index[",t[c],"]=j",c].join(""));for(c=0;c<i;++c){for(var f=["offset"+c],p=e;p<o;++p)f.push(["j",p,"*t",c,"p",t[p]].join(""));u.push(["p",c,"=(",f.join("+"),")"].join(""))}u.push(a(t,n,r));for(c=e;c<o;++c)u.push("}");return u.join("\n")}function i(e){var t=0,n=e[0].length;while(t<n){for(var r=1;r<e.length;++r)if(e[r][t]!==e[0][t])return t;++t}return t}function l(e,t,n){for(var r=e.body,a=[],o=[],i=0;i<e.args.length;++i){var l=e.args[i];if(!(l.count<=0)){var s=new RegExp(l.name,"g"),u="",c=t.arrayArgs.indexOf(i);switch(t.argTypes[i]){case"offset":var f=t.offsetArgIndex.indexOf(i),p=t.offsetArgs[f];c=p.array,u="+q"+f;case"array":u="p"+c+u;var d="l"+i,h="a"+c;if(0===t.arrayBlockIndices[c])1===l.count?"generic"===n[c]?l.lvalue?(a.push(["var ",d,"=",h,".get(",u,")"].join("")),r=r.replace(s,d),o.push([h,".set(",u,",",d,")"].join(""))):r=r.replace(s,[h,".get(",u,")"].join("")):r=r.replace(s,[h,"[",u,"]"].join("")):"generic"===n[c]?(a.push(["var ",d,"=",h,".get(",u,")"].join("")),r=r.replace(s,d),l.lvalue&&o.push([h,".set(",u,",",d,")"].join(""))):(a.push(["var ",d,"=",h,"[",u,"]"].join("")),r=r.replace(s,d),l.lvalue&&o.push([h,"[",u,"]=",d].join("")));else{for(var v=[l.name],m=[u],y=0;y<Math.abs(t.arrayBlockIndices[c]);y++)v.push("\\s*\\[([^\\]]+)\\]"),m.push("$"+(y+1)+"*t"+c+"b"+y);if(s=new RegExp(v.join(""),"g"),u=m.join("+"),"generic"===n[c])throw new Error("cwise: Generic arrays not supported in combination with blocks!");r=r.replace(s,[h,"[",u,"]"].join(""))}break;case"scalar":r=r.replace(s,"Y"+t.scalarArgs.indexOf(i));break;case"index":r=r.replace(s,"index");break;case"shape":r=r.replace(s,"shape");break}}}return[a.join("\n"),r,o.join("\n")].join("\n").trim()}function s(e){for(var t=new Array(e.length),n=!0,r=0;r<e.length;++r){var a=e[r],o=a.match(/\d+/);o=o?o[0]:"",0===a.charAt(0)?t[r]="u"+a.charAt(1)+o:t[r]=a.charAt(0)+o,r>0&&(n=n&&t[r]===t[r-1])}return n?t[0]:t.join("")}function u(e,t){for(var n=t[1].length-Math.abs(e.arrayBlockIndices[0])|0,u=new Array(e.arrayArgs.length),c=new Array(e.arrayArgs.length),f=0;f<e.arrayArgs.length;++f)c[f]=t[2*f],u[f]=t[2*f+1];var p=[],d=[],h=[],v=[],m=[];for(f=0;f<e.arrayArgs.length;++f){e.arrayBlockIndices[f]<0?(h.push(0),v.push(n),p.push(n),d.push(n+e.arrayBlockIndices[f])):(h.push(e.arrayBlockIndices[f]),v.push(e.arrayBlockIndices[f]+n),p.push(0),d.push(e.arrayBlockIndices[f]));for(var y=[],g=0;g<u[f].length;g++)h[f]<=u[f][g]&&u[f][g]<v[f]&&y.push(u[f][g]-h[f]);m.push(y)}var b=["SS"],x=["'use strict'"],_=[];for(g=0;g<n;++g)_.push(["s",g,"=SS[",g,"]"].join(""));for(f=0;f<e.arrayArgs.length;++f){b.push("a"+f),b.push("t"+f),b.push("p"+f);for(g=0;g<n;++g)_.push(["t",f,"p",g,"=t",f,"[",h[f]+g,"]"].join(""));for(g=0;g<Math.abs(e.arrayBlockIndices[f]);++g)_.push(["t",f,"b",g,"=t",f,"[",p[f]+g,"]"].join(""))}for(f=0;f<e.scalarArgs.length;++f)b.push("Y"+f);if(e.shapeArgs.length>0&&_.push("shape=SS.slice(0)"),e.indexArgs.length>0){var w=new Array(n);for(f=0;f<n;++f)w[f]="0";_.push(["index=[",w.join(","),"]"].join(""))}for(f=0;f<e.offsetArgs.length;++f){var k=e.offsetArgs[f],T=[];for(g=0;g<k.offset.length;++g)0!==k.offset[g]&&(1===k.offset[g]?T.push(["t",k.array,"p",g].join("")):T.push([k.offset[g],"*t",k.array,"p",g].join("")));0===T.length?_.push("q"+f+"=0"):_.push(["q",f,"=",T.join("+")].join(""))}var E=r([].concat(e.pre.thisVars).concat(e.body.thisVars).concat(e.post.thisVars));_=_.concat(E),_.length>0&&x.push("var "+_.join(","));for(f=0;f<e.arrayArgs.length;++f)x.push("p"+f+"|=0");e.pre.body.length>3&&x.push(l(e.pre,e,c));var O=l(e.body,e,c),M=i(m);M<n?x.push(o(M,m[0],e,O)):x.push(a(m[0],e,O)),e.post.body.length>3&&x.push(l(e.post,e,c)),e.debug&&console.log("-----Generated cwise routine for ",t,":\n"+x.join("\n")+"\n----------");var S=[e.funcName||"unnamed","_cwise_loop_",u[0].join("s"),"m",M,s(c)].join(""),C=new Function(["function ",S,"(",b.join(","),"){",x.join("\n"),"} return ",S].join(""));return C()}t.exports=u},{uniq:569}],153:[function(e,t,n){"use strict";var r=e("./compile.js");function a(e){var t=["'use strict'","var CACHED={}"],n=[],a=e.funcName+"_cwise_thunk";t.push(["return function ",a,"(",e.shimArgs.join(","),"){"].join(""));for(var o=[],i=[],l=[["array",e.arrayArgs[0],".shape.slice(",Math.max(0,e.arrayBlockIndices[0]),e.arrayBlockIndices[0]<0?","+e.arrayBlockIndices[0]+")":")"].join("")],s=[],u=[],c=0;c<e.arrayArgs.length;++c){var f=e.arrayArgs[c];n.push(["t",f,"=array",f,".dtype,","r",f,"=array",f,".order"].join("")),o.push("t"+f),o.push("r"+f),i.push("t"+f),i.push("r"+f+".join()"),l.push("array"+f+".data"),l.push("array"+f+".stride"),l.push("array"+f+".offset|0"),c>0&&(s.push("array"+e.arrayArgs[0]+".shape.length===array"+f+".shape.length+"+(Math.abs(e.arrayBlockIndices[0])-Math.abs(e.arrayBlockIndices[c]))),u.push("array"+e.arrayArgs[0]+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[0])+"]===array"+f+".shape[shapeIndex+"+Math.max(0,e.arrayBlockIndices[c])+"]"))}e.arrayArgs.length>1&&(t.push("if (!("+s.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same dimensionality!')"),t.push("for(var shapeIndex=array"+e.arrayArgs[0]+".shape.length-"+Math.abs(e.arrayBlockIndices[0])+"; shapeIndex--\x3e0;) {"),t.push("if (!("+u.join(" && ")+")) throw new Error('cwise: Arrays do not all have the same shape!')"),t.push("}"));for(c=0;c<e.scalarArgs.length;++c)l.push("scalar"+e.scalarArgs[c]);n.push(["type=[",i.join(","),"].join()"].join("")),n.push("proc=CACHED[type]"),t.push("var "+n.join(",")),t.push(["if(!proc){","CACHED[type]=proc=compile([",o.join(","),"])}","return proc(",l.join(","),")}"].join("")),e.debug&&console.log("-----Generated thunk:\n"+t.join("\n")+"\n----------");var p=new Function("compile",t.join("\n"));return p(r.bind(void 0,e))}t.exports=a},{"./compile.js":152}],154:[function(e,t,n){"use strict";var r,a=e("type/value/is"),o=e("type/value/ensure"),i=e("type/plain-function/ensure"),l=e("es5-ext/object/copy"),s=e("es5-ext/object/normalize-options"),u=e("es5-ext/object/map"),c=Function.prototype.bind,f=Object.defineProperty,p=Object.prototype.hasOwnProperty;r=function(e,t,n){var r,a=o(t)&&i(t.value);return r=l(t),delete r.writable,delete r.value,r.get=function(){return!n.overwriteDefinition&&p.call(this,e)?a:(t.value=c.call(a,n.resolveContext?n.resolveContext(this):this),f(this,e,t),this[e])},r},t.exports=function(e){var t=s(arguments[1]);return a(t.resolveContext)&&i(t.resolveContext),u(e,(function(e,n){return r(n,e,t)}))}},{"es5-ext/object/copy":196,"es5-ext/object/map":204,"es5-ext/object/normalize-options":205,"type/plain-function/ensure":561,"type/value/ensure":565,"type/value/is":566}],155:[function(e,t,n){"use strict";var r=e("type/value/is"),a=e("type/plain-function/is"),o=e("es5-ext/object/assign"),i=e("es5-ext/object/normalize-options"),l=e("es5-ext/string/#/contains"),s=t.exports=function(e,t){var n,a,s,u,c;return arguments.length<2||"string"!==typeof e?(u=t,t=e,e=null):u=arguments[2],r(e)?(n=l.call(e,"c"),a=l.call(e,"e"),s=l.call(e,"w")):(n=s=!0,a=!1),c={value:t,configurable:n,enumerable:a,writable:s},u?o(i(u),c):c};s.gs=function(e,t,n){var s,u,c,f;return"string"!==typeof e?(c=n,n=t,t=e,e=null):c=arguments[3],r(t)?a(t)?r(n)?a(n)||(c=n,n=void 0):n=void 0:(c=t,t=n=void 0):t=void 0,r(e)?(s=l.call(e,"c"),u=l.call(e,"e")):(s=!0,u=!1),f={get:t,set:n,configurable:s,enumerable:u},c?o(i(c),f):f}},{"es5-ext/object/assign":193,"es5-ext/object/normalize-options":205,"es5-ext/string/#/contains":212,"type/plain-function/is":562,"type/value/is":566}],156:[function(t,n,r){(function(t,a){"object"===typeof r&&"undefined"!==typeof n?a(r):"function"===typeof e&&e.amd?e(["exports"],a):a(t.d3=t.d3||{})})(this,(function(e){"use strict";function t(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function n(e){return 1===e.length&&(e=r(e)),{left:function(t,n,r,a){null==r&&(r=0),null==a&&(a=t.length);while(r<a){var o=r+a>>>1;e(t[o],n)<0?r=o+1:a=o}return r},right:function(t,n,r,a){null==r&&(r=0),null==a&&(a=t.length);while(r<a){var o=r+a>>>1;e(t[o],n)>0?a=o:r=o+1}return r}}}function r(e){return function(n,r){return t(e(n),r)}}var a=n(t),o=a.right,i=a.left;function l(e,t){null==t&&(t=s);var n=0,r=e.length-1,a=e[0],o=new Array(r<0?0:r);while(n<r)o[n]=t(a,a=e[++n]);return o}function s(e,t){return[e,t]}function u(e,t,n){var r,a,o,i,l=e.length,u=t.length,c=new Array(l*u);for(null==n&&(n=s),r=o=0;r<l;++r)for(i=e[r],a=0;a<u;++a,++o)c[o]=n(i,t[a]);return c}function c(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function f(e){return null===e?NaN:+e}function p(e,t){var n,r,a=e.length,o=0,i=-1,l=0,s=0;if(null==t)while(++i<a)isNaN(n=f(e[i]))||(r=n-l,l+=r/++o,s+=r*(n-l));else while(++i<a)isNaN(n=f(t(e[i],i,e)))||(r=n-l,l+=r/++o,s+=r*(n-l));if(o>1)return s/(o-1)}function d(e,t){var n=p(e,t);return n?Math.sqrt(n):n}function h(e,t){var n,r,a,o=e.length,i=-1;if(null==t){while(++i<o)if(null!=(n=e[i])&&n>=n){r=a=n;while(++i<o)null!=(n=e[i])&&(r>n&&(r=n),a<n&&(a=n))}}else while(++i<o)if(null!=(n=t(e[i],i,e))&&n>=n){r=a=n;while(++i<o)null!=(n=t(e[i],i,e))&&(r>n&&(r=n),a<n&&(a=n))}return[r,a]}var v=Array.prototype,m=v.slice,y=v.map;function g(e){return function(){return e}}function b(e){return e}function x(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;var r=-1,a=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(a);while(++r<a)o[r]=e+r*n;return o}var _=Math.sqrt(50),w=Math.sqrt(10),k=Math.sqrt(2);function T(e,t,n){var r,a,o,i,l=-1;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(a=e,e=t,t=a),0===(i=E(e,t,n))||!isFinite(i))return[];if(i>0){e=Math.ceil(e/i),t=Math.floor(t/i),o=new Array(a=Math.ceil(t-e+1));while(++l<a)o[l]=(e+l)*i}else{e=Math.floor(e*i),t=Math.ceil(t*i),o=new Array(a=Math.ceil(e-t+1));while(++l<a)o[l]=(e-l)/i}return r&&o.reverse(),o}function E(e,t,n){var r=(t-e)/Math.max(0,n),a=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,a);return a>=0?(o>=_?10:o>=w?5:o>=k?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(o>=_?10:o>=w?5:o>=k?2:1)}function O(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/a;return o>=_?a*=10:o>=w?a*=5:o>=k&&(a*=2),t<e?-a:a}function M(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}function S(){var e=b,t=h,n=M;function r(r){var a,i,l=r.length,s=new Array(l);for(a=0;a<l;++a)s[a]=e(r[a],a,r);var u=t(s),c=u[0],f=u[1],p=n(s,c,f);Array.isArray(p)||(p=O(c,f,p),p=x(Math.ceil(c/p)*p,f,p));var d=p.length;while(p[0]<=c)p.shift(),--d;while(p[d-1]>f)p.pop(),--d;var h,v=new Array(d+1);for(a=0;a<=d;++a)h=v[a]=[],h.x0=a>0?p[a-1]:c,h.x1=a<d?p[a]:f;for(a=0;a<l;++a)i=s[a],c<=i&&i<=f&&v[o(p,i,0,d)].push(r[a]);return v}return r.value=function(t){return arguments.length?(e="function"===typeof t?t:g(t),r):e},r.domain=function(e){return arguments.length?(t="function"===typeof e?e:g([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"===typeof e?e:Array.isArray(e)?g(m.call(e)):g(e),r):n},r}function C(e,t,n){if(null==n&&(n=f),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,o=Math.floor(a),i=+n(e[o],o,e),l=+n(e[o+1],o+1,e);return i+(l-i)*(a-o)}}function A(e,n,r){return e=y.call(e,f).sort(t),Math.ceil((r-n)/(2*(C(e,.75)-C(e,.25))*Math.pow(e.length,-1/3)))}function P(e,t,n){return Math.ceil((n-t)/(3.5*d(e)*Math.pow(e.length,-1/3)))}function L(e,t){var n,r,a=e.length,o=-1;if(null==t){while(++o<a)if(null!=(n=e[o])&&n>=n){r=n;while(++o<a)null!=(n=e[o])&&n>r&&(r=n)}}else while(++o<a)if(null!=(n=t(e[o],o,e))&&n>=n){r=n;while(++o<a)null!=(n=t(e[o],o,e))&&n>r&&(r=n)}return r}function D(e,t){var n,r=e.length,a=r,o=-1,i=0;if(null==t)while(++o<r)isNaN(n=f(e[o]))?--a:i+=n;else while(++o<r)isNaN(n=f(t(e[o],o,e)))?--a:i+=n;if(a)return i/a}function j(e,n){var r,a=e.length,o=-1,i=[];if(null==n)while(++o<a)isNaN(r=f(e[o]))||i.push(r);else while(++o<a)isNaN(r=f(n(e[o],o,e)))||i.push(r);return C(i.sort(t),.5)}function I(e){var t,n,r,a=e.length,o=-1,i=0;while(++o<a)i+=e[o].length;n=new Array(i);while(--a>=0){r=e[a],t=r.length;while(--t>=0)n[--i]=r[t]}return n}function R(e,t){var n,r,a=e.length,o=-1;if(null==t){while(++o<a)if(null!=(n=e[o])&&n>=n){r=n;while(++o<a)null!=(n=e[o])&&r>n&&(r=n)}}else while(++o<a)if(null!=(n=t(e[o],o,e))&&n>=n){r=n;while(++o<a)null!=(n=t(e[o],o,e))&&r>n&&(r=n)}return r}function z(e,t){var n=t.length,r=new Array(n);while(n--)r[n]=e[t[n]];return r}function N(e,n){if(r=e.length){var r,a,o=0,i=0,l=e[i];null==n&&(n=t);while(++o<r)(n(a=e[o],l)<0||0!==n(l,l))&&(l=a,i=o);return 0===n(l,l)?i:void 0}}function F(e,t,n){var r,a,o=(null==n?e.length:n)-(t=null==t?0:+t);while(o)a=Math.random()*o--|0,r=e[o+t],e[o+t]=e[a+t],e[a+t]=r;return e}function B(e,t){var n,r=e.length,a=-1,o=0;if(null==t)while(++a<r)(n=+e[a])&&(o+=n);else while(++a<r)(n=+t(e[a],a,e))&&(o+=n);return o}function V(e){if(!(a=e.length))return[];for(var t=-1,n=R(e,H),r=new Array(n);++t<n;)for(var a,o=-1,i=r[t]=new Array(a);++o<a;)i[o]=e[o][t];return r}function H(e){return e.length}function U(){return V(arguments)}e.bisect=o,e.bisectRight=o,e.bisectLeft=i,e.ascending=t,e.bisector=n,e.cross=u,e.descending=c,e.deviation=d,e.extent=h,e.histogram=S,e.thresholdFreedmanDiaconis=A,e.thresholdScott=P,e.thresholdSturges=M,e.max=L,e.mean=D,e.median=j,e.merge=I,e.min=R,e.pairs=l,e.permute=z,e.quantile=C,e.range=x,e.scan=N,e.shuffle=F,e.sum=B,e.ticks=T,e.tickIncrement=E,e.tickStep=O,e.transpose=V,e.variance=p,e.zip=U,Object.defineProperty(e,"__esModule",{value:!0})}))},{}],157:[function(t,n,r){(function(t,a){"object"===typeof r&&"undefined"!==typeof n?a(r):"function"===typeof e&&e.amd?e(["exports"],a):a(t.d3=t.d3||{})})(this,(function(e){"use strict";var t="$";function n(){}function r(e,t){var r=new n;if(e instanceof n)e.each((function(e,t){r.set(t,e)}));else if(Array.isArray(e)){var a,o=-1,i=e.length;if(null==t)while(++o<i)r.set(o,e[o]);else while(++o<i)r.set(t(a=e[o],o,e),a)}else if(e)for(var l in e)r.set(l,e[l]);return r}function a(){var e,t,n,a=[],u=[];function c(n,o,i,l){if(o>=a.length)return null!=e&&n.sort(e),null!=t?t(n):n;var s,u,f,p=-1,d=n.length,h=a[o++],v=r(),m=i();while(++p<d)(f=v.get(s=h(u=n[p])+""))?f.push(u):v.set(s,[u]);return v.each((function(e,t){l(m,t,c(e,o,i,l))})),m}function f(e,n){if(++n>a.length)return e;var r,o=u[n-1];return null!=t&&n>=a.length?r=e.entries():(r=[],e.each((function(e,t){r.push({key:t,values:f(e,n)})}))),null!=o?r.sort((function(e,t){return o(e.key,t.key)})):r}return n={object:function(e){return c(e,0,o,i)},map:function(e){return c(e,0,l,s)},entries:function(e){return f(c(e,0,l,s),0)},key:function(e){return a.push(e),n},sortKeys:function(e){return u[a.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}}function o(){return{}}function i(e,t,n){e[t]=n}function l(){return r()}function s(e,t,n){e.set(t,n)}function u(){}n.prototype=r.prototype={constructor:n,has:function(e){return t+e in this},get:function(e){return this[t+e]},set:function(e,n){return this[t+e]=n,this},remove:function(e){var n=t+e;return n in this&&delete this[n]},clear:function(){for(var e in this)e[0]===t&&delete this[e]},keys:function(){var e=[];for(var n in this)n[0]===t&&e.push(n.slice(1));return e},values:function(){var e=[];for(var n in this)n[0]===t&&e.push(this[n]);return e},entries:function(){var e=[];for(var n in this)n[0]===t&&e.push({key:n.slice(1),value:this[n]});return e},size:function(){var e=0;for(var n in this)n[0]===t&&++e;return e},empty:function(){for(var e in this)if(e[0]===t)return!1;return!0},each:function(e){for(var n in this)n[0]===t&&e(this[n],n.slice(1),this)}};var c=r.prototype;function f(e,t){var n=new u;if(e instanceof u)e.each((function(e){n.add(e)}));else if(e){var r=-1,a=e.length;if(null==t)while(++r<a)n.add(e[r]);else while(++r<a)n.add(t(e[r],r,e))}return n}function p(e){var t=[];for(var n in e)t.push(n);return t}function d(e){var t=[];for(var n in e)t.push(e[n]);return t}function h(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t}u.prototype=f.prototype={constructor:u,has:c.has,add:function(e){return e+="",this[t+e]=e,this},remove:c.remove,clear:c.clear,values:c.keys,size:c.size,empty:c.empty,each:c.each},e.nest=a,e.set=f,e.map=r,e.keys=p,e.values=d,e.entries=h,Object.defineProperty(e,"__esModule",{value:!0})}))},{}],158:[function(t,n,r){(function(t,a){"object"===typeof r&&"undefined"!==typeof n?a(r):"function"===typeof e&&e.amd?e(["exports"],a):(t=t||self,a(t.d3=t.d3||{}))})(this,(function(e){"use strict";function t(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function n(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function r(){}var a=.7,o=1/a,i="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",u=/^#([0-9a-f]{3,8})$/,c=new RegExp("^rgb\\("+[i,i,i]+"\\)$"),f=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),p=new RegExp("^rgba\\("+[i,i,i,l]+"\\)$"),d=new RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),h=new RegExp("^hsl\\("+[l,s,s]+"\\)$"),v=new RegExp("^hsla\\("+[l,s,s,l]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function g(){return A(this).formatHsl()}function b(){return this.rgb().formatRgb()}function x(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=u.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?_(t):3===n?new E(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?w(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?w(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=c.exec(e))?new E(t[1],t[2],t[3],1):(t=f.exec(e))?new E(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=p.exec(e))?w(t[1],t[2],t[3],t[4]):(t=d.exec(e))?w(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=h.exec(e))?C(t[1],t[2]/100,t[3]/100,1):(t=v.exec(e))?C(t[1],t[2]/100,t[3]/100,t[4]):m.hasOwnProperty(e)?_(m[e]):"transparent"===e?new E(NaN,NaN,NaN,0):null}function _(e){return new E(e>>16&255,e>>8&255,255&e,1)}function w(e,t,n,r){return r<=0&&(e=t=n=NaN),new E(e,t,n,r)}function k(e){return e instanceof r||(e=x(e)),e?(e=e.rgb(),new E(e.r,e.g,e.b,e.opacity)):new E}function T(e,t,n,r){return 1===arguments.length?k(e):new E(e,t,n,null==r?1:r)}function E(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function O(){return"#"+S(this.r)+S(this.g)+S(this.b)}function M(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(1===e?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function S(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function C(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new L(e,t,n,r)}function A(e){if(e instanceof L)return new L(e.h,e.s,e.l,e.opacity);if(e instanceof r||(e=x(e)),!e)return new L;if(e instanceof L)return e;e=e.rgb();var t=e.r/255,n=e.g/255,a=e.b/255,o=Math.min(t,n,a),i=Math.max(t,n,a),l=NaN,s=i-o,u=(i+o)/2;return s?(l=t===i?(n-a)/s+6*(n<a):n===i?(a-t)/s+2:(t-n)/s+4,s/=u<.5?i+o:2-i-o,l*=60):s=u>0&&u<1?0:l,new L(l,s,u,e.opacity)}function P(e,t,n,r){return 1===arguments.length?A(e):new L(e,t,n,null==r?1:r)}function L(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function D(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}t(r,x,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:g,formatRgb:b,toString:b}),t(E,T,n(r,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new E(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:O,formatHex:O,formatRgb:M,toString:M})),t(L,P,n(r,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new L(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new L(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new E(D(e>=240?e-240:e+120,a,r),D(e,a,r),D(e<120?e+240:e-120,a,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(1===e?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));var j=Math.PI/180,I=180/Math.PI,R=18,z=.96422,N=1,F=.82521,B=4/29,V=6/29,H=3*V*V,U=V*V*V;function W(e){if(e instanceof G)return new G(e.l,e.a,e.b,e.opacity);if(e instanceof te)return ne(e);e instanceof E||(e=k(e));var t,n,r=Z(e.r),a=Z(e.g),o=Z(e.b),i=Y((.2225045*r+.7168786*a+.0606169*o)/N);return r===a&&a===o?t=n=i:(t=Y((.4360747*r+.3850649*a+.1430804*o)/z),n=Y((.0139322*r+.0971045*a+.7141733*o)/F)),new G(116*i-16,500*(t-i),200*(i-n),e.opacity)}function q(e,t){return new G(e,0,0,null==t?1:t)}function $(e,t,n,r){return 1===arguments.length?W(e):new G(e,t,n,null==r?1:r)}function G(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Y(e){return e>U?Math.pow(e,1/3):e/H+B}function K(e){return e>V?e*e*e:H*(e-B)}function X(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Z(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function J(e){if(e instanceof te)return new te(e.h,e.c,e.l,e.opacity);if(e instanceof G||(e=W(e)),0===e.a&&0===e.b)return new te(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*I;return new te(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Q(e,t,n,r){return 1===arguments.length?J(e):new te(n,t,e,null==r?1:r)}function ee(e,t,n,r){return 1===arguments.length?J(e):new te(e,t,n,null==r?1:r)}function te(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ne(e){if(isNaN(e.h))return new G(e.l,0,0,e.opacity);var t=e.h*j;return new G(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}t(G,$,n(r,{brighter:function(e){return new G(this.l+R*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new G(this.l-R*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=z*K(t),e=N*K(e),n=F*K(n),new E(X(3.1338561*t-1.6168667*e-.4906146*n),X(-.9787684*t+1.9161415*e+.033454*n),X(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),t(te,ee,n(r,{brighter:function(e){return new te(this.h,this.c,this.l+R*(null==e?1:e),this.opacity)},darker:function(e){return new te(this.h,this.c,this.l-R*(null==e?1:e),this.opacity)},rgb:function(){return ne(this).rgb()}}));var re=-.14861,ae=1.78277,oe=-.29227,ie=-.90649,le=1.97294,se=le*ie,ue=le*ae,ce=ae*oe-ie*re;function fe(e){if(e instanceof de)return new de(e.h,e.s,e.l,e.opacity);e instanceof E||(e=k(e));var t=e.r/255,n=e.g/255,r=e.b/255,a=(ce*r+se*t-ue*n)/(ce+se-ue),o=r-a,i=(le*(n-a)-oe*o)/ie,l=Math.sqrt(i*i+o*o)/(le*a*(1-a)),s=l?Math.atan2(i,o)*I-120:NaN;return new de(s<0?s+360:s,l,a,e.opacity)}function pe(e,t,n,r){return 1===arguments.length?fe(e):new de(e,t,n,null==r?1:r)}function de(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}t(de,pe,n(r,{brighter:function(e){return e=null==e?o:Math.pow(o,e),new de(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?a:Math.pow(a,e),new de(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*j,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),a=Math.sin(e);return new E(255*(t+n*(re*r+ae*a)),255*(t+n*(oe*r+ie*a)),255*(t+n*(le*r)),this.opacity)}})),e.color=x,e.cubehelix=pe,e.gray=q,e.hcl=ee,e.hsl=P,e.lab=$,e.lch=Q,e.rgb=T,Object.defineProperty(e,"__esModule",{value:!0})}))},{}],159:[function(t,n,r){(function(t,a){"object"===typeof r&&"undefined"!==typeof n?a(r):"function"===typeof e&&e.amd?e(["exports"],a):(t=t||self,a(t.d3=t.d3||{}))})(this,(function(e){"use strict";var t={value:function(){}};function n(){for(var e,t=0,n=arguments.length,a={};t<n;++t){if(!(e=arguments[t]+"")||e in a||/[\s.]/.test(e))throw new Error("illegal type: "+e);a[e]=[]}return new r(a)}function r(e){this._=e}function a(e,t){return e.trim().split(/^|\s+/).map((function(e){var n="",r=e.indexOf(".");if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}}))}function o(e,t){for(var n,r=0,a=e.length;r<a;++r)if((n=e[r]).name===t)return n.value}function i(e,n,r){for(var a=0,o=e.length;a<o;++a)if(e[a].name===n){e[a]=t,e=e.slice(0,a).concat(e.slice(a+1));break}return null!=r&&e.push({name:n,value:r}),e}r.prototype=n.prototype={constructor:r,on:function(e,t){var n,r=this._,l=a(e+"",r),s=-1,u=l.length;if(!(arguments.length<2)){if(null!=t&&"function"!==typeof t)throw new Error("invalid callback: "+t);while(++s<u)if(n=(e=l[s]).type)r[n]=i(r[n],e.name,t);else if(null==t)for(n in r)r[n]=i(r[n],e.name,null);return this}while(++s<u)if((n=(e=l[s]).type)&&(n=o(r[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new r(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,a=new Array(n),o=0;o<n;++o)a[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(r=this._[e],o=0,n=r.length;o<n;++o)r[o].value.apply(t,a)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],a=0,o=r.length;a<o;++a)r[a].value.apply(t,n)}},e.dispatch=n,Object.defineProperty(e,"__esModule",{value:!0})}))},{}],160:[function(t,n,r){(function(a,o){"object"===typeof r&&"undefined"!==typeof n?o(r,t("d3-quadtree"),t("d3-collection"),t("d3-dispatch"),t("d3-timer")):"function"===typeof e&&e.amd?e(["exports","d3-quadtree","d3-collection","d3-dispatch","d3-timer"],o):o(a.d3=a.d3||{},a.d3,a.d3,a.d3,a.d3)})(this,(function(e,t,n,r,a){"use strict";function o(e,t){var n;function r(){var r,a,o=n.length,i=0,l=0;for(r=0;r<o;++r)a=n[r],i+=a.x,l+=a.y;for(i=i/o-e,l=l/o-t,r=0;r<o;++r)a=n[r],a.x-=i,a.y-=l}return null==e&&(e=0),null==t&&(t=0),r.initialize=function(e){n=e},r.x=function(t){return arguments.length?(e=+t,r):e},r.y=function(e){return arguments.length?(t=+e,r):t},r}function i(e){return function(){return e}}function l(){return 1e-6*(Math.random()-.5)}function s(e){return e.x+e.vx}function u(e){return e.y+e.vy}function c(e){var n,r,a=1,o=1;function c(){for(var e,i,c,p,d,h,v,m=n.length,y=0;y<o;++y)for(i=t.quadtree(n,s,u).visitAfter(f),e=0;e<m;++e)c=n[e],h=r[c.index],v=h*h,p=c.x+c.vx,d=c.y+c.vy,i.visit(g);function g(e,t,n,r,o){var i=e.data,s=e.r,u=h+s;if(!i)return t>p+u||r<p-u||n>d+u||o<d-u;if(i.index>c.index){var f=p-i.x-i.vx,m=d-i.y-i.vy,y=f*f+m*m;y<u*u&&(0===f&&(f=l(),y+=f*f),0===m&&(m=l(),y+=m*m),y=(u-(y=Math.sqrt(y)))/y*a,c.vx+=(f*=y)*(u=(s*=s)/(v+s)),c.vy+=(m*=y)*u,i.vx-=f*(u=1-u),i.vy-=m*u)}}}function f(e){if(e.data)return e.r=r[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function p(){if(n){var t,a,o=n.length;for(r=new Array(o),t=0;t<o;++t)a=n[t],r[a.index]=+e(a,t,n)}}return"function"!==typeof e&&(e=i(null==e?1:+e)),c.initialize=function(e){n=e,p()},c.iterations=function(e){return arguments.length?(o=+e,c):o},c.strength=function(e){return arguments.length?(a=+e,c):a},c.radius=function(t){return arguments.length?(e="function"===typeof t?t:i(+t),p(),c):e},c}function f(e){return e.index}function p(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function d(e){var t,r,a,o,s,u=f,c=v,d=i(30),h=1;function v(e){return 1/Math.min(o[e.source.index],o[e.target.index])}function m(n){for(var a=0,o=e.length;a<h;++a)for(var i,u,c,f,p,d,v,m=0;m<o;++m)i=e[m],u=i.source,c=i.target,f=c.x+c.vx-u.x-u.vx||l(),p=c.y+c.vy-u.y-u.vy||l(),d=Math.sqrt(f*f+p*p),d=(d-r[m])/d*n*t[m],f*=d,p*=d,c.vx-=f*(v=s[m]),c.vy-=p*v,u.vx+=f*(v=1-v),u.vy+=p*v}function y(){if(a){var i,l,c=a.length,f=e.length,d=n.map(a,u);for(i=0,o=new Array(c);i<f;++i)l=e[i],l.index=i,"object"!==typeof l.source&&(l.source=p(d,l.source)),"object"!==typeof l.target&&(l.target=p(d,l.target)),o[l.source.index]=(o[l.source.index]||0)+1,o[l.target.index]=(o[l.target.index]||0)+1;for(i=0,s=new Array(f);i<f;++i)l=e[i],s[i]=o[l.source.index]/(o[l.source.index]+o[l.target.index]);t=new Array(f),g(),r=new Array(f),b()}}function g(){if(a)for(var n=0,r=e.length;n<r;++n)t[n]=+c(e[n],n,e)}function b(){if(a)for(var t=0,n=e.length;t<n;++t)r[t]=+d(e[t],t,e)}return null==e&&(e=[]),m.initialize=function(e){a=e,y()},m.links=function(t){return arguments.length?(e=t,y(),m):e},m.id=function(e){return arguments.length?(u=e,m):u},m.iterations=function(e){return arguments.length?(h=+e,m):h},m.strength=function(e){return arguments.length?(c="function"===typeof e?e:i(+e),g(),m):c},m.distance=function(e){return arguments.length?(d="function"===typeof e?e:i(+e),b(),m):d},m}function h(e){return e.x}function v(e){return e.y}var m=10,y=Math.PI*(3-Math.sqrt(5));function g(e){var t,o=1,i=.001,l=1-Math.pow(i,1/300),s=0,u=.6,c=n.map(),f=a.timer(d),p=r.dispatch("tick","end");function d(){h(),p.call("tick",t),o<i&&(f.stop(),p.call("end",t))}function h(n){var r,a,i=e.length;void 0===n&&(n=1);for(var f=0;f<n;++f)for(o+=(s-o)*l,c.each((function(e){e(o)})),r=0;r<i;++r)a=e[r],null==a.fx?a.x+=a.vx*=u:(a.x=a.fx,a.vx=0),null==a.fy?a.y+=a.vy*=u:(a.y=a.fy,a.vy=0);return t}function v(){for(var t,n=0,r=e.length;n<r;++n){if(t=e[n],t.index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var a=m*Math.sqrt(n),o=n*y;t.x=a*Math.cos(o),t.y=a*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function g(t){return t.initialize&&t.initialize(e),t}return null==e&&(e=[]),v(),t={tick:h,restart:function(){return f.restart(d),t},stop:function(){return f.stop(),t},nodes:function(n){return arguments.length?(e=n,v(),c.each(g),t):e},alpha:function(e){return arguments.length?(o=+e,t):o},alphaMin:function(e){return arguments.length?(i=+e,t):i},alphaDecay:function(e){return arguments.length?(l=+e,t):+l},alphaTarget:function(e){return arguments.length?(s=+e,t):s},velocityDecay:function(e){return arguments.length?(u=1-e,t):1-u},force:function(e,n){return arguments.length>1?(null==n?c.remove(e):c.set(e,g(n)),t):c.get(e)},find:function(t,n,r){var a,o,i,l,s,u=0,c=e.length;for(null==r?r=1/0:r*=r,u=0;u<c;++u)l=e[u],a=t-l.x,o=n-l.y,i=a*a+o*o,i<r&&(s=l,r=i);return s},on:function(e,n){return arguments.length>1?(p.on(e,n),t):p.on(e)}}}function b(){var e,n,r,a,o=i(-30),s=1,u=1/0,c=.81;function f(a){var o,i=e.length,l=t.quadtree(e,h,v).visitAfter(d);for(r=a,o=0;o<i;++o)n=e[o],l.visit(m)}function p(){if(e){var t,n,r=e.length;for(a=new Array(r),t=0;t<r;++t)n=e[t],a[n.index]=+o(n,t,e)}}function d(e){var t,n,r,o,i,l=0,s=0;if(e.length){for(r=o=i=0;i<4;++i)(t=e[i])&&(n=Math.abs(t.value))&&(l+=t.value,s+=n,r+=n*t.x,o+=n*t.y);e.x=r/s,e.y=o/s}else{t=e,t.x=t.data.x,t.y=t.data.y;do{l+=a[t.data.index]}while(t=t.next)}e.value=l}function m(e,t,o,i){if(!e.value)return!0;var f=e.x-n.x,p=e.y-n.y,d=i-t,h=f*f+p*p;if(d*d/c<h)return h<u&&(0===f&&(f=l(),h+=f*f),0===p&&(p=l(),h+=p*p),h<s&&(h=Math.sqrt(s*h)),n.vx+=f*e.value*r/h,n.vy+=p*e.value*r/h),!0;if(!(e.length||h>=u)){(e.data!==n||e.next)&&(0===f&&(f=l(),h+=f*f),0===p&&(p=l(),h+=p*p),h<s&&(h=Math.sqrt(s*h)));do{e.data!==n&&(d=a[e.data.index]*r/h,n.vx+=f*d,n.vy+=p*d)}while(e=e.next)}}return f.initialize=function(t){e=t,p()},f.strength=function(e){return arguments.length?(o="function"===typeof e?e:i(+e),p(),f):o},f.distanceMin=function(e){return arguments.length?(s=e*e,f):Math.sqrt(s)},f.distanceMax=function(e){return arguments.length?(u=e*e,f):Math.sqrt(u)},f.theta=function(e){return arguments.length?(c=e*e,f):Math.sqrt(c)},f}function x(e,t,n){var r,a,o,l=i(.1);function s(e){for(var i=0,l=r.length;i<l;++i){var s=r[i],u=s.x-t||1e-6,c=s.y-n||1e-6,f=Math.sqrt(u*u+c*c),p=(o[i]-f)*a[i]*e/f;s.vx+=u*p,s.vy+=c*p}}function u(){if(r){var t,n=r.length;for(a=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(r[t],t,r),a[t]=isNaN(o[t])?0:+l(r[t],t,r)}}return"function"!==typeof e&&(e=i(+e)),null==t&&(t=0),null==n&&(n=0),s.initialize=function(e){r=e,u()},s.strength=function(e){return arguments.length?(l="function"===typeof e?e:i(+e),u(),s):l},s.radius=function(t){return arguments.length?(e="function"===typeof t?t:i(+t),u(),s):e},s.x=function(e){return arguments.length?(t=+e,s):t},s.y=function(e){return arguments.length?(n=+e,s):n},s}function _(e){var t,n,r,a=i(.1);function o(e){for(var a,o=0,i=t.length;o<i;++o)a=t[o],a.vx+=(r[o]-a.x)*n[o]*e}function l(){if(t){var o,i=t.length;for(n=new Array(i),r=new Array(i),o=0;o<i;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+a(t[o],o,t)}}return"function"!==typeof e&&(e=i(null==e?0:+e)),o.initialize=function(e){t=e,l()},o.strength=function(e){return arguments.length?(a="function"===typeof e?e:i(+e),l(),o):a},o.x=function(t){return arguments.length?(e="function"===typeof t?t:i(+t),l(),o):e},o}function w(e){var t,n,r,a=i(.1);function o(e){for(var a,o=0,i=t.length;o<i;++o)a=t[o],a.vy+=(r[o]-a.y)*n[o]*e}function l(){if(t){var o,i=t.length;for(n=new Array(i),r=new Array(i),o=0;o<i;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+a(t[o],o,t)}}return"function"!==typeof e&&(e=i(null==e?0:+e)),o.initialize=function(e){t=e,l()},o.strength=function(e){return arguments.length?(a="function"===typeof e?e:i(+e),l(),o):a},o.y=function(t){return arguments.length?(e="function"===typeof t?t:i(+t),l(),o):e},o}e.forceCenter=o,e.forceCollide=c,e.forceLink=d,e.forceManyBody=b,e.forceRadial=x,e.forceSimulation=g,e.forceX=_,e.forceY=w,Object.defineProperty(e,"__esModule",{value:!0})}))},{"d3-collection":157,"d3-dispatch":159,"d3-quadtree":164,"d3-timer":168}],161:[function(t,n,r){(function(t,a){"object"===typeof r&&"undefined"!==typeof n?a(r):"function"===typeof e&&e.amd?e(["exports"],a):(t=t||self,a(t.d3=t.d3||{}))})(this,(function(e){"use strict";function t(e,t){return e.parent===t.parent?1:2}function n(e){return e.reduce(r,0)/e.length}function r(e,t){return e+t.x}function a(e){return 1+e.reduce(o,0)}function o(e,t){return Math.max(e,t.y)}function i(e){var t;while(t=e.children)e=t[0];return e}function l(e){var t;while(t=e.children)e=t[t.length-1];return e}function s(){var e=t,r=1,o=1,s=!1;function u(t){var u,c=0;t.eachAfter((function(t){var r=t.children;r?(t.x=n(r),t.y=a(r)):(t.x=u?c+=e(t,u):0,t.y=0,u=t)}));var f=i(t),p=l(t),d=f.x-e(f,p)/2,h=p.x+e(p,f)/2;return t.eachAfter(s?function(e){e.x=(e.x-t.x)*r,e.y=(t.y-e.y)*o}:function(e){e.x=(e.x-d)/(h-d)*r,e.y=(1-(t.y?e.y/t.y:1))*o})}return u.separation=function(t){return arguments.length?(e=t,u):e},u.size=function(e){return arguments.length?(s=!1,r=+e[0],o=+e[1],u):s?null:[r,o]},u.nodeSize=function(e){return arguments.length?(s=!0,r=+e[0],o=+e[1],u):s?[r,o]:null},u}function u(e){var t=0,n=e.children,r=n&&n.length;if(r)while(--r>=0)t+=n[r].value;else t=1;e.value=t}function c(){return this.eachAfter(u)}function f(e){var t,n,r,a,o=this,i=[o];do{t=i.reverse(),i=[];while(o=t.pop())if(e(o),n=o.children,n)for(r=0,a=n.length;r<a;++r)i.push(n[r])}while(i.length);return this}function p(e){var t,n,r=this,a=[r];while(r=a.pop())if(e(r),t=r.children,t)for(n=t.length-1;n>=0;--n)a.push(t[n]);return this}function d(e){var t,n,r,a=this,o=[a],i=[];while(a=o.pop())if(i.push(a),t=a.children,t)for(n=0,r=t.length;n<r;++n)o.push(t[n]);while(a=i.pop())e(a);return this}function h(e){return this.eachAfter((function(t){var n=+e(t.data)||0,r=t.children,a=r&&r.length;while(--a>=0)n+=r[a].value;t.value=n}))}function v(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))}function m(e){var t=this,n=y(t,e),r=[t];while(t!==n)t=t.parent,r.push(t);var a=r.length;while(e!==n)r.splice(a,0,e),e=e.parent;return r}function y(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),a=null;e=n.pop(),t=r.pop();while(e===t)a=e,e=n.pop(),t=r.pop();return a}function g(){var e=this,t=[e];while(e=e.parent)t.push(e);return t}function b(){var e=[];return this.each((function(t){e.push(t)})),e}function x(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e}function _(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n})})),t}function w(e,t){var n,r,a,o,i,l=new M(e),s=+e.value&&(l.value=e.value),u=[l];null==t&&(t=T);while(n=u.pop())if(s&&(n.value=+n.data.value),(a=t(n.data))&&(i=a.length))for(n.children=new Array(i),o=i-1;o>=0;--o)u.push(r=n.children[o]=new M(a[o])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(O)}function k(){return w(this).eachBefore(E)}function T(e){return e.children}function E(e){e.data=e.data.data}function O(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function M(e){this.data=e,this.depth=this.height=0,this.parent=null}M.prototype=w.prototype={constructor:M,count:c,each:f,eachAfter:d,eachBefore:p,sum:h,sort:v,path:m,ancestors:g,descendants:b,leaves:x,links:_,copy:k};var S=Array.prototype.slice;function C(e){var t,n,r=e.length;while(r)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}function A(e){var t,n,r=0,a=(e=C(S.call(e))).length,o=[];while(r<a)t=e[r],n&&D(n,t)?++r:(n=I(o=P(o,t)),r=0);return n}function P(e,t){var n,r;if(j(t,e))return[t];for(n=0;n<e.length;++n)if(L(t,e[n])&&j(z(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(L(z(e[n],e[r]),t)&&L(z(e[n],t),e[r])&&L(z(e[r],t),e[n])&&j(N(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function L(e,t){var n=e.r-t.r,r=t.x-e.x,a=t.y-e.y;return n<0||n*n<r*r+a*a}function D(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,a=t.y-e.y;return n>0&&n*n>r*r+a*a}function j(e,t){for(var n=0;n<t.length;++n)if(!D(e,t[n]))return!1;return!0}function I(e){switch(e.length){case 1:return R(e[0]);case 2:return z(e[0],e[1]);case 3:return N(e[0],e[1],e[2])}}function R(e){return{x:e.x,y:e.y,r:e.r}}function z(e,t){var n=e.x,r=e.y,a=e.r,o=t.x,i=t.y,l=t.r,s=o-n,u=i-r,c=l-a,f=Math.sqrt(s*s+u*u);return{x:(n+o+s/f*c)/2,y:(r+i+u/f*c)/2,r:(f+a+l)/2}}function N(e,t,n){var r=e.x,a=e.y,o=e.r,i=t.x,l=t.y,s=t.r,u=n.x,c=n.y,f=n.r,p=r-i,d=r-u,h=a-l,v=a-c,m=s-o,y=f-o,g=r*r+a*a-o*o,b=g-i*i-l*l+s*s,x=g-u*u-c*c+f*f,_=d*h-p*v,w=(h*x-v*b)/(2*_)-r,k=(v*m-h*y)/_,T=(d*b-p*x)/(2*_)-a,E=(p*y-d*m)/_,O=k*k+E*E-1,M=2*(o+w*k+T*E),S=w*w+T*T-o*o,C=-(O?(M+Math.sqrt(M*M-4*O*S))/(2*O):S/M);return{x:r+w+k*C,y:a+T+E*C,r:C}}function F(e,t,n){var r,a,o,i,l=e.x-t.x,s=e.y-t.y,u=l*l+s*s;u?(a=t.r+n.r,a*=a,i=e.r+n.r,i*=i,a>i?(r=(u+i-a)/(2*u),o=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x-r*l-o*s,n.y=e.y-r*s+o*l):(r=(u+a-i)/(2*u),o=Math.sqrt(Math.max(0,a/u-r*r)),n.x=t.x+r*l-o*s,n.y=t.y+r*s+o*l)):(n.x=t.x+n.r,n.y=t.y)}function B(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,a=t.y-e.y;return n>0&&n*n>r*r+a*a}function V(e){var t=e._,n=e.next._,r=t.r+n.r,a=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return a*a+o*o}function H(e){this._=e,this.next=null,this.previous=null}function U(e){if(!(a=e.length))return 0;var t,n,r,a,o,i,l,s,u,c,f;if(t=e[0],t.x=0,t.y=0,!(a>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(a>2))return t.r+n.r;F(n,t,r=e[2]),t=new H(t),n=new H(n),r=new H(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(l=3;l<a;++l){F(t._,n._,r=e[l]),r=new H(r),s=n.next,u=t.previous,c=n._.r,f=t._.r;do{if(c<=f){if(B(s._,r._)){n=s,t.next=n,n.previous=t,--l;continue e}c+=s._.r,s=s.next}else{if(B(u._,r._)){t=u,t.next=n,n.previous=t,--l;continue e}f+=u._.r,u=u.previous}}while(s!==u.next);r.previous=t,r.next=n,t.next=n.previous=n=r,o=V(t);while((r=r.next)!==n)(i=V(r))<o&&(t=r,o=i);n=t.next}t=[n._],r=n;while((r=r.next)!==n)t.push(r._);for(r=A(t),l=0;l<a;++l)t=e[l],t.x-=r.x,t.y-=r.y;return r.r}function W(e){return U(e),e}function q(e){return null==e?null:$(e)}function $(e){if("function"!==typeof e)throw new Error;return e}function G(){return 0}function Y(e){return function(){return e}}function K(e){return Math.sqrt(e.value)}function X(){var e=null,t=1,n=1,r=G;function a(a){return a.x=t/2,a.y=n/2,e?a.eachBefore(Z(e)).eachAfter(J(r,.5)).eachBefore(Q(1)):a.eachBefore(Z(K)).eachAfter(J(G,1)).eachAfter(J(r,a.r/Math.min(t,n))).eachBefore(Q(Math.min(t,n)/(2*a.r))),a}return a.radius=function(t){return arguments.length?(e=q(t),a):e},a.size=function(e){return arguments.length?(t=+e[0],n=+e[1],a):[t,n]},a.padding=function(e){return arguments.length?(r="function"===typeof e?e:Y(+e),a):r},a}function Z(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function J(e,t){return function(n){if(r=n.children){var r,a,o,i=r.length,l=e(n)*t||0;if(l)for(a=0;a<i;++a)r[a].r+=l;if(o=U(r),l)for(a=0;a<i;++a)r[a].r-=l;n.r=o+l}}}function Q(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function ee(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function te(e,t,n,r,a){var o,i=e.children,l=-1,s=i.length,u=e.value&&(r-t)/e.value;while(++l<s)o=i[l],o.y0=n,o.y1=a,o.x0=t,o.x1=t+=o.value*u}function ne(){var e=1,t=1,n=0,r=!1;function a(a){var i=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/i,a.eachBefore(o(t,i)),r&&a.eachBefore(ee),a}function o(e,t){return function(r){r.children&&te(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var a=r.x0,o=r.y0,i=r.x1-n,l=r.y1-n;i<a&&(a=i=(a+i)/2),l<o&&(o=l=(o+l)/2),r.x0=a,r.y0=o,r.x1=i,r.y1=l}}return a.round=function(e){return arguments.length?(r=!!e,a):r},a.size=function(n){return arguments.length?(e=+n[0],t=+n[1],a):[e,t]},a.padding=function(e){return arguments.length?(n=+e,a):n},a}var re="$",ae={depth:-1},oe={};function ie(e){return e.id}function le(e){return e.parentId}function se(){var e=ie,t=le;function n(n){var r,a,o,i,l,s,u,c=n.length,f=new Array(c),p={};for(a=0;a<c;++a)r=n[a],l=f[a]=new M(r),null!=(s=e(r,a,n))&&(s+="")&&(u=re+(l.id=s),p[u]=u in p?oe:l);for(a=0;a<c;++a)if(l=f[a],s=t(n[a],a,n),null!=s&&(s+="")){if(i=p[re+s],!i)throw new Error("missing: "+s);if(i===oe)throw new Error("ambiguous: "+s);i.children?i.children.push(l):i.children=[l],l.parent=i}else{if(o)throw new Error("multiple roots");o=l}if(!o)throw new Error("no root");if(o.parent=ae,o.eachBefore((function(e){e.depth=e.parent.depth+1,--c})).eachBefore(O),o.parent=null,c>0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=$(t),n):e},n.parentId=function(e){return arguments.length?(t=$(e),n):t},n}function ue(e,t){return e.parent===t.parent?1:2}function ce(e){var t=e.children;return t?t[0]:e.t}function fe(e){var t=e.children;return t?t[t.length-1]:e.t}function pe(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function de(e){var t,n=0,r=0,a=e.children,o=a.length;while(--o>=0)t=a[o],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function he(e,t,n){return e.a.parent===t.parent?e.a:n}function ve(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function me(e){var t,n,r,a,o,i=new ve(e,0),l=[i];while(t=l.pop())if(r=t._.children)for(t.children=new Array(o=r.length),a=o-1;a>=0;--a)l.push(n=t.children[a]=new ve(r[a],a)),n.parent=t;return(i.parent=new ve(null,0)).children=[i],i}function ye(){var e=ue,t=1,n=1,r=null;function a(a){var l=me(a);if(l.eachAfter(o),l.parent.m=-l.z,l.eachBefore(i),r)a.eachBefore(s);else{var u=a,c=a,f=a;a.eachBefore((function(e){e.x<u.x&&(u=e),e.x>c.x&&(c=e),e.depth>f.depth&&(f=e)}));var p=u===c?1:e(u,c)/2,d=p-u.x,h=t/(c.x+p+d),v=n/(f.depth||1);a.eachBefore((function(e){e.x=(e.x+d)*h,e.y=e.depth*v}))}return a}function o(t){var n=t.children,r=t.parent.children,a=t.i?r[t.i-1]:null;if(n){de(t);var o=(n[0].z+n[n.length-1].z)/2;a?(t.z=a.z+e(t._,a._),t.m=t.z-o):t.z=o}else a&&(t.z=a.z+e(t._,a._));t.parent.A=l(t,a,t.parent.A||r[0])}function i(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function l(t,n,r){if(n){var a,o=t,i=t,l=n,s=o.parent.children[0],u=o.m,c=i.m,f=l.m,p=s.m;while(l=fe(l),o=ce(o),l&&o)s=ce(s),i=fe(i),i.a=t,a=l.z+f-o.z-u+e(l._,o._),a>0&&(pe(he(l,t,r),t,a),u+=a,c+=a),f+=l.m,u+=o.m,p+=s.m,c+=i.m;l&&!fe(i)&&(i.t=l,i.m+=f-c),o&&!ce(s)&&(s.t=o,s.m+=u-p,r=t)}return r}function s(e){e.x*=t,e.y=e.depth*n}return a.separation=function(t){return arguments.length?(e=t,a):e},a.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],a):r?null:[t,n]},a.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],a):r?[t,n]:null},a}function ge(e,t,n,r,a){var o,i=e.children,l=-1,s=i.length,u=e.value&&(a-n)/e.value;while(++l<s)o=i[l],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*u}ve.prototype=Object.create(M.prototype);var be=(1+Math.sqrt(5))/2;function xe(e,t,n,r,a,o){var i,l,s,u,c,f,p,d,h,v,m,y=[],g=t.children,b=0,x=0,_=g.length,w=t.value;while(b<_){s=a-n,u=o-r;do{c=g[x++].value}while(!c&&x<_);for(f=p=c,v=Math.max(u/s,s/u)/(w*e),m=c*c*v,h=Math.max(p/m,m/f);x<_;++x){if(c+=l=g[x].value,l<f&&(f=l),l>p&&(p=l),m=c*c*v,d=Math.max(p/m,m/f),d>h){c-=l;break}h=d}y.push(i={value:c,dice:s<u,children:g.slice(b,x)}),i.dice?te(i,n,r,a,w?r+=u*c/w:o):ge(i,n,r,w?n+=s*c/w:a,o),w-=c,b=x}return y}var _e=function e(t){function n(e,n,r,a,o){xe(t,e,n,r,a,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(be);function we(){var e=_e,t=!1,n=1,r=1,a=[0],o=G,i=G,l=G,s=G,u=G;function c(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),a=[0],t&&e.eachBefore(ee),e}function f(t){var n=a[t.depth],r=t.x0+n,c=t.y0+n,f=t.x1-n,p=t.y1-n;f<r&&(r=f=(r+f)/2),p<c&&(c=p=(c+p)/2),t.x0=r,t.y0=c,t.x1=f,t.y1=p,t.children&&(n=a[t.depth+1]=o(t)/2,r+=u(t)-n,c+=i(t)-n,f-=l(t)-n,p-=s(t)-n,f<r&&(r=f=(r+f)/2),p<c&&(c=p=(c+p)/2),e(t,r,c,f,p))}return c.round=function(e){return arguments.length?(t=!!e,c):t},c.size=function(e){return arguments.length?(n=+e[0],r=+e[1],c):[n,r]},c.tile=function(t){return arguments.length?(e=$(t),c):e},c.padding=function(e){return arguments.length?c.paddingInner(e).paddingOuter(e):c.paddingInner()},c.paddingInner=function(e){return arguments.length?(o="function"===typeof e?e:Y(+e),c):o},c.paddingOuter=function(e){return arguments.length?c.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):c.paddingTop()},c.paddingTop=function(e){return arguments.length?(i="function"===typeof e?e:Y(+e),c):i},c.paddingRight=function(e){return arguments.length?(l="function"===typeof e?e:Y(+e),c):l},c.paddingBottom=function(e){return arguments.length?(s="function"===typeof e?e:Y(+e),c):s},c.paddingLeft=function(e){return arguments.length?(u="function"===typeof e?e:Y(+e),c):u},c}function ke(e,t,n,r,a){var o,i,l=e.children,s=l.length,u=new Array(s+1);for(u[0]=i=o=0;o<s;++o)u[o+1]=i+=l[o].value;function c(e,t,n,r,a,o,i){if(e>=t-1){var s=l[e];return s.x0=r,s.y0=a,s.x1=o,void(s.y1=i)}var f=u[e],p=n/2+f,d=e+1,h=t-1;while(d<h){var v=d+h>>>1;u[v]<p?d=v+1:h=v}p-u[d-1]<u[d]-p&&e+1<d&&--d;var m=u[d]-f,y=n-m;if(o-r>i-a){var g=(r*y+o*m)/n;c(e,d,m,r,a,g,i),c(d,t,y,g,a,o,i)}else{var b=(a*y+i*m)/n;c(e,d,m,r,a,o,b),c(d,t,y,r,b,o,i)}}c(0,s,e.value,t,n,r,a)}function Te(e,t,n,r,a){(1&e.depth?ge:te)(e,t,n,r,a)}var Ee=function e(t){function n(e,n,r,a,o){if((i=e._squarify)&&i.ratio===t){var i,l,s,u,c,f=-1,p=i.length,d=e.value;while(++f<p){for(l=i[f],s=l.children,u=l.value=0,c=s.length;u<c;++u)l.value+=s[u].value;l.dice?te(l,n,r,a,r+=(o-r)*l.value/d):ge(l,n,r,n+=(a-n)*l.value/d,o),d-=l.value}}else e._squarify=i=xe(t,e,n,r,a,o),i.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(be);e.cluster=s,e.hierarchy=w,e.pack=X,e.packEnclose=A,e.packSiblings=W,e.partition=ne,e.stratify=se,e.tree=ye,e.treemap=we,e.treemapBinary=ke,e.treemapDice=te,e.treemapResquarify=Ee,e.treemapSlice=ge,e.treemapSliceDice=Te,e.treemapSquarify=_e,Object.defineProperty(e,"__esModule",{value:!0})}))},{}],162:[function(t,n,r){(function(a,o){"object"===typeof r&&"undefined"!==typeof n?o(r,t("d3-color")):"function"===typeof e&&e.amd?e(["exports","d3-color"],o):(a=a||self,o(a.d3=a.d3||{},a.d3))})(this,(function(e,t){"use strict";function n(e,t,n,r,a){var o=e*e,i=o*e;return((1-3*e+3*o-i)*t+(4-6*o+3*i)*n+(1+3*e+3*o-3*i)*r+i*a)/6}function r(e){var t=e.length-1;return function(r){var a=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[a],i=e[a+1],l=a>0?e[a-1]:2*o-i,s=a<t-1?e[a+2]:2*i-o;return n((r-a/t)*t,l,o,i,s)}}function a(e){var t=e.length;return function(r){var a=Math.floor(((r%=1)<0?++r:r)*t),o=e[(a+t-1)%t],i=e[a%t],l=e[(a+1)%t],s=e[(a+2)%t];return n((r-a/t)*t,o,i,l,s)}}function o(e){return function(){return e}}function i(e,t){return function(n){return e+n*t}}function l(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function s(e,t){var n=t-e;return n?i(e,n>180||n<-180?n-360*Math.round(n/360):n):o(isNaN(e)?t:e)}function u(e){return 1===(e=+e)?c:function(t,n){return n-t?l(t,n,e):o(isNaN(t)?n:t)}}function c(e,t){var n=t-e;return n?i(e,n):o(isNaN(e)?t:e)}var f=function e(n){var r=u(n);function a(e,n){var a=r((e=t.rgb(e)).r,(n=t.rgb(n)).r),o=r(e.g,n.g),i=r(e.b,n.b),l=c(e.opacity,n.opacity);return function(t){return e.r=a(t),e.g=o(t),e.b=i(t),e.opacity=l(t),e+""}}return a.gamma=e,a}(1);function p(e){return function(n){var r,a,o=n.length,i=new Array(o),l=new Array(o),s=new Array(o);for(r=0;r<o;++r)a=t.rgb(n[r]),i[r]=a.r||0,l[r]=a.g||0,s[r]=a.b||0;return i=e(i),l=e(l),s=e(s),a.opacity=1,function(e){return a.r=i(e),a.g=l(e),a.b=s(e),a+""}}}var d=p(r),h=p(a);function v(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,a=t.slice();return function(o){for(n=0;n<r;++n)a[n]=e[n]*(1-o)+t[n]*o;return a}}function m(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function y(e,t){return(m(t)?v:g)(e,t)}function g(e,t){var n,r=t?t.length:0,a=e?Math.min(r,e.length):0,o=new Array(a),i=new Array(r);for(n=0;n<a;++n)o[n]=M(e[n],t[n]);for(;n<r;++n)i[n]=t[n];return function(e){for(n=0;n<a;++n)i[n]=o[n](e);return i}}function b(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function x(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function _(e,t){var n,r={},a={};for(n in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)n in e?r[n]=M(e[n],t[n]):a[n]=t[n];return function(e){for(n in r)a[n]=r[n](e);return a}}var w=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,k=new RegExp(w.source,"g");function T(e){return function(){return e}}function E(e){return function(t){return e(t)+""}}function O(e,t){var n,r,a,o=w.lastIndex=k.lastIndex=0,i=-1,l=[],s=[];e+="",t+="";while((n=w.exec(e))&&(r=k.exec(t)))(a=r.index)>o&&(a=t.slice(o,a),l[i]?l[i]+=a:l[++i]=a),(n=n[0])===(r=r[0])?l[i]?l[i]+=r:l[++i]=r:(l[++i]=null,s.push({i:i,x:x(n,r)})),o=k.lastIndex;return o<t.length&&(a=t.slice(o),l[i]?l[i]+=a:l[++i]=a),l.length<2?s[0]?E(s[0].x):T(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}function M(e,n){var r,a=typeof n;return null==n||"boolean"===a?o(n):("number"===a?x:"string"===a?(r=t.color(n))?(n=r,f):O:n instanceof t.color?f:n instanceof Date?b:m(n)?v:Array.isArray(n)?g:"function"!==typeof n.valueOf&&"function"!==typeof n.toString||isNaN(n)?_:x)(e,n)}function S(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function C(e,t){var n=s(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}}function A(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var P,L,D,j,I=180/Math.PI,R={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function z(e,t,n,r,a,o){var i,l,s;return(i=Math.sqrt(e*e+t*t))&&(e/=i,t/=i),(s=e*n+t*r)&&(n-=e*s,r-=t*s),(l=Math.sqrt(n*n+r*r))&&(n/=l,r/=l,s/=l),e*r<t*n&&(e=-e,t=-t,s=-s,i=-i),{translateX:a,translateY:o,rotate:Math.atan2(t,e)*I,skewX:Math.atan(s)*I,scaleX:i,scaleY:l}}function N(e){return"none"===e?R:(P||(P=document.createElement("DIV"),L=document.documentElement,D=document.defaultView),P.style.transform=e,e=D.getComputedStyle(L.appendChild(P),null).getPropertyValue("transform"),L.removeChild(P),e=e.slice(7,-1).split(","),z(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function F(e){return null==e?R:(j||(j=document.createElementNS("http://www.w3.org/2000/svg","g")),j.setAttribute("transform",e),(e=j.transform.baseVal.consolidate())?(e=e.matrix,z(e.a,e.b,e.c,e.d,e.e,e.f)):R)}function B(e,t,n,r){function a(e){return e.length?e.pop()+" ":""}function o(e,r,a,o,i,l){if(e!==a||r!==o){var s=i.push("translate(",null,t,null,n);l.push({i:s-4,x:x(e,a)},{i:s-2,x:x(r,o)})}else(a||o)&&i.push("translate("+a+t+o+n)}function i(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(a(n)+"rotate(",null,r)-2,x:x(e,t)})):t&&n.push(a(n)+"rotate("+t+r)}function l(e,t,n,o){e!==t?o.push({i:n.push(a(n)+"skewX(",null,r)-2,x:x(e,t)}):t&&n.push(a(n)+"skewX("+t+r)}function s(e,t,n,r,o,i){if(e!==n||t!==r){var l=o.push(a(o)+"scale(",null,",",null,")");i.push({i:l-4,x:x(e,n)},{i:l-2,x:x(t,r)})}else 1===n&&1===r||o.push(a(o)+"scale("+n+","+r+")")}return function(t,n){var r=[],a=[];return t=e(t),n=e(n),o(t.translateX,t.translateY,n.translateX,n.translateY,r,a),i(t.rotate,n.rotate,r,a),l(t.skewX,n.skewX,r,a),s(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,a),t=n=null,function(e){var t,n=-1,o=a.length;while(++n<o)r[(t=a[n]).i]=t.x(e);return r.join("")}}}var V=B(N,"px, ","px)","deg)"),H=B(F,", ",")",")"),U=Math.SQRT2,W=2,q=4,$=1e-12;function G(e){return((e=Math.exp(e))+1/e)/2}function Y(e){return((e=Math.exp(e))-1/e)/2}function K(e){return((e=Math.exp(2*e))-1)/(e+1)}function X(e,t){var n,r,a=e[0],o=e[1],i=e[2],l=t[0],s=t[1],u=t[2],c=l-a,f=s-o,p=c*c+f*f;if(p<$)r=Math.log(u/i)/U,n=function(e){return[a+e*c,o+e*f,i*Math.exp(U*e*r)]};else{var d=Math.sqrt(p),h=(u*u-i*i+q*p)/(2*i*W*d),v=(u*u-i*i-q*p)/(2*u*W*d),m=Math.log(Math.sqrt(h*h+1)-h),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-m)/U,n=function(e){var t=e*r,n=G(m),l=i/(W*d)*(n*K(U*t+m)-Y(m));return[a+l*c,o+l*f,i*n/G(U*t+m)]}}return n.duration=1e3*r,n}function Z(e){return function(n,r){var a=e((n=t.hsl(n)).h,(r=t.hsl(r)).h),o=c(n.s,r.s),i=c(n.l,r.l),l=c(n.opacity,r.opacity);return function(e){return n.h=a(e),n.s=o(e),n.l=i(e),n.opacity=l(e),n+""}}}var J=Z(s),Q=Z(c);function ee(e,n){var r=c((e=t.lab(e)).l,(n=t.lab(n)).l),a=c(e.a,n.a),o=c(e.b,n.b),i=c(e.opacity,n.opacity);return function(t){return e.l=r(t),e.a=a(t),e.b=o(t),e.opacity=i(t),e+""}}function te(e){return function(n,r){var a=e((n=t.hcl(n)).h,(r=t.hcl(r)).h),o=c(n.c,r.c),i=c(n.l,r.l),l=c(n.opacity,r.opacity);return function(e){return n.h=a(e),n.c=o(e),n.l=i(e),n.opacity=l(e),n+""}}}var ne=te(s),re=te(c);function ae(e){return function n(r){function a(n,a){var o=e((n=t.cubehelix(n)).h,(a=t.cubehelix(a)).h),i=c(n.s,a.s),l=c(n.l,a.l),s=c(n.opacity,a.opacity);return function(e){return n.h=o(e),n.s=i(e),n.l=l(Math.pow(e,r)),n.opacity=s(e),n+""}}return r=+r,a.gamma=n,a}(1)}var oe=ae(s),ie=ae(c);function le(e,t){var n=0,r=t.length-1,a=t[0],o=new Array(r<0?0:r);while(n<r)o[n]=e(a,a=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}function se(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}e.interpolate=M,e.interpolateArray=y,e.interpolateBasis=r,e.interpolateBasisClosed=a,e.interpolateCubehelix=oe,e.interpolateCubehelixLong=ie,e.interpolateDate=b,e.interpolateDiscrete=S,e.interpolateHcl=ne,e.interpolateHclLong=re,e.interpolateHsl=J,e.interpolateHslLong=Q,e.interpolateHue=C,e.interpolateLab=ee,e.interpolateNumber=x,e.interpolateNumberArray=v,e.interpolateObject=_,e.interpolateRgb=f,e.interpolateRgbBasis=d,e.interpolateRgbBasisClosed=h,e.interpolateRound=A,e.interpolateString=O,e.interpolateTransformCss=V,e.interpolateTransformSvg=H,e.interpolateZoom=X,e.piecewise=le,e.quantize=se,Object.defineProperty(e,"__esModule",{value:!0})}))},{"d3-color":158}],163:[function(t,n,r){(function(t,a){"object"===typeof r&&"undefined"!==typeof n?a(r):"function"===typeof e&&e.amd?e(["exports"],a):(t=t||self,a(t.d3=t.d3||{}))})(this,(function(e){"use strict";var t=Math.PI,n=2*t,r=1e-6,a=n-r;function o(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function i(){return new o}o.prototype=i.prototype={constructor:o,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,a,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function(e,n,a,o,i){e=+e,n=+n,a=+a,o=+o,i=+i;var l=this._x1,s=this._y1,u=a-e,c=o-n,f=l-e,p=s-n,d=f*f+p*p;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=n);else if(d>r)if(Math.abs(p*u-c*f)>r&&i){var h=a-l,v=o-s,m=u*u+c*c,y=h*h+v*v,g=Math.sqrt(m),b=Math.sqrt(d),x=i*Math.tan((t-Math.acos((m+d-y)/(2*g*b)))/2),_=x/b,w=x/g;Math.abs(_-1)>r&&(this._+="L"+(e+_*f)+","+(n+_*p)),this._+="A"+i+","+i+",0,0,"+ +(p*h>f*v)+","+(this._x1=e+w*u)+","+(this._y1=n+w*c)}else this._+="L"+(this._x1=e)+","+(this._y1=n);else;},arc:function(e,o,i,l,s,u){e=+e,o=+o,i=+i,u=!!u;var c=i*Math.cos(l),f=i*Math.sin(l),p=e+c,d=o+f,h=1^u,v=u?l-s:s-l;if(i<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+p+","+d:(Math.abs(this._x1-p)>r||Math.abs(this._y1-d)>r)&&(this._+="L"+p+","+d),i&&(v<0&&(v=v%n+n),v>a?this._+="A"+i+","+i+",0,1,"+h+","+(e-c)+","+(o-f)+"A"+i+","+i+",0,1,"+h+","+(this._x1=p)+","+(this._y1=d):v>r&&(this._+="A"+i+","+i+",0,"+ +(v>=t)+","+h+","+(this._x1=e+i*Math.cos(s))+","+(this._y1=o+i*Math.sin(s))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}},e.path=i,Object.defineProperty(e,"__esModule",{value:!0})}))},{}],164:[function(t,n,r){(function(t,a){"object"===typeof r&&"undefined"!==typeof n?a(r):"function"===typeof e&&e.amd?e(["exports"],a):(t=t||self,a(t.d3=t.d3||{}))})(this,(function(e){"use strict";function t(e){var t=+this._x.call(null,e),r=+this._y.call(null,e);return n(this.cover(t,r),t,r,e)}function n(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var a,o,i,l,s,u,c,f,p,d=e._root,h={data:r},v=e._x0,m=e._y0,y=e._x1,g=e._y1;if(!d)return e._root=h,e;while(d.length)if((u=t>=(o=(v+y)/2))?v=o:y=o,(c=n>=(i=(m+g)/2))?m=i:g=i,a=d,!(d=d[f=c<<1|u]))return a[f]=h,e;if(l=+e._x.call(null,d.data),s=+e._y.call(null,d.data),t===l&&n===s)return h.next=d,a?a[f]=h:e._root=h,e;do{a=a?a[f]=new Array(4):e._root=new Array(4),(u=t>=(o=(v+y)/2))?v=o:y=o,(c=n>=(i=(m+g)/2))?m=i:g=i}while((f=c<<1|u)===(p=(s>=i)<<1|l>=o));return a[p]=d,a[f]=h,e}function r(e){var t,r,a,o,i=e.length,l=new Array(i),s=new Array(i),u=1/0,c=1/0,f=-1/0,p=-1/0;for(r=0;r<i;++r)isNaN(a=+this._x.call(null,t=e[r]))||isNaN(o=+this._y.call(null,t))||(l[r]=a,s[r]=o,a<u&&(u=a),a>f&&(f=a),o<c&&(c=o),o>p&&(p=o));if(u>f||c>p)return this;for(this.cover(u,c).cover(f,p),r=0;r<i;++r)n(this,l[r],s[r],e[r]);return this}function a(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,a=this._x1,o=this._y1;if(isNaN(n))a=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{var i,l,s=a-n,u=this._root;while(n>e||e>=a||r>t||t>=o)switch(l=(t<r)<<1|e<n,i=new Array(4),i[l]=u,u=i,s*=2,l){case 0:a=n+s,o=r+s;break;case 1:n=a-s,o=r+s;break;case 2:a=n+s,r=o-s;break;case 3:n=a-s,r=o-s;break}this._root&&this._root.length&&(this._root=u)}return this._x0=n,this._y0=r,this._x1=a,this._y1=o,this}function o(){var e=[];return this.visit((function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)})),e}function i(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function l(e,t,n,r,a){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=a}function s(e,t,n){var r,a,o,i,s,u,c,f=this._x0,p=this._y0,d=this._x1,h=this._y1,v=[],m=this._root;m&&v.push(new l(m,f,p,d,h)),null==n?n=1/0:(f=e-n,p=t-n,d=e+n,h=t+n,n*=n);while(u=v.pop())if(!(!(m=u.node)||(a=u.x0)>d||(o=u.y0)>h||(i=u.x1)<f||(s=u.y1)<p))if(m.length){var y=(a+i)/2,g=(o+s)/2;v.push(new l(m[3],y,g,i,s),new l(m[2],a,g,y,s),new l(m[1],y,o,i,g),new l(m[0],a,o,y,g)),(c=(t>=g)<<1|e>=y)&&(u=v[v.length-1],v[v.length-1]=v[v.length-1-c],v[v.length-1-c]=u)}else{var b=e-+this._x.call(null,m.data),x=t-+this._y.call(null,m.data),_=b*b+x*x;if(_<n){var w=Math.sqrt(n=_);f=e-w,p=t-w,d=e+w,h=t+w,r=m.data}}return r}function u(e){if(isNaN(o=+this._x.call(null,e))||isNaN(i=+this._y.call(null,e)))return this;var t,n,r,a,o,i,l,s,u,c,f,p,d=this._root,h=this._x0,v=this._y0,m=this._x1,y=this._y1;if(!d)return this;if(d.length)while(1){if((u=o>=(l=(h+m)/2))?h=l:m=l,(c=i>=(s=(v+y)/2))?v=s:y=s,t=d,!(d=d[f=c<<1|u]))return this;if(!d.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,p=f)}while(d.data!==e)if(r=d,!(d=d.next))return this;return(a=d.next)&&delete d.next,r?(a?r.next=a:delete r.next,this):t?(a?t[f]=a:delete t[f],(d=t[0]||t[1]||t[2]||t[3])&&d===(t[3]||t[2]||t[1]||t[0])&&!d.length&&(n?n[p]=d:this._root=d),this):(this._root=a,this)}function c(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function f(){return this._root}function p(){var e=0;return this.visit((function(t){if(!t.length)do{++e}while(t=t.next)})),e}function d(e){var t,n,r,a,o,i,s=[],u=this._root;u&&s.push(new l(u,this._x0,this._y0,this._x1,this._y1));while(t=s.pop())if(!e(u=t.node,r=t.x0,a=t.y0,o=t.x1,i=t.y1)&&u.length){var c=(r+o)/2,f=(a+i)/2;(n=u[3])&&s.push(new l(n,c,f,o,i)),(n=u[2])&&s.push(new l(n,r,f,c,i)),(n=u[1])&&s.push(new l(n,c,a,o,f)),(n=u[0])&&s.push(new l(n,r,a,c,f))}return this}function h(e){var t,n=[],r=[];this._root&&n.push(new l(this._root,this._x0,this._y0,this._x1,this._y1));while(t=n.pop()){var a=t.node;if(a.length){var o,i=t.x0,s=t.y0,u=t.x1,c=t.y1,f=(i+u)/2,p=(s+c)/2;(o=a[0])&&n.push(new l(o,i,s,f,p)),(o=a[1])&&n.push(new l(o,f,s,u,p)),(o=a[2])&&n.push(new l(o,i,p,f,c)),(o=a[3])&&n.push(new l(o,f,p,u,c))}r.push(t)}while(t=r.pop())e(t.node,t.x0,t.y0,t.x1,t.y1);return this}function v(e){return e[0]}function m(e){return arguments.length?(this._x=e,this):this._x}function y(e){return e[1]}function g(e){return arguments.length?(this._y=e,this):this._y}function b(e,t,n){var r=new x(null==t?v:t,null==n?y:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function x(e,t,n,r,a,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=a,this._y1=o,this._root=void 0}function _(e){var t={data:e.data},n=t;while(e=e.next)n=n.next={data:e.data};return t}var w=b.prototype=x.prototype;w.copy=function(){var e,t,n=new x(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=_(r),n;e=[{source:r,target:n._root=new Array(4)}];while(r=e.pop())for(var a=0;a<4;++a)(t=r.source[a])&&(t.length?e.push({source:t,target:r.target[a]=new Array(4)}):r.target[a]=_(t));return n},w.add=t,w.addAll=r,w.cover=a,w.data=o,w.extent=i,w.find=s,w.remove=u,w.removeAll=c,w.root=f,w.size=p,w.visit=d,w.visitAfter=h,w.x=m,w.y=g,e.quadtree=b,Object.defineProperty(e,"__esModule",{value:!0})}))},{}],165:[function(t,n,r){(function(a,o){"object"===typeof r&&"undefined"!==typeof n?o(r,t("d3-path")):"function"===typeof e&&e.amd?e(["exports","d3-path"],o):(a=a||self,o(a.d3=a.d3||{},a.d3))})(this,(function(e,t){"use strict";function n(e){return function(){return e}}var r=Math.abs,a=Math.atan2,o=Math.cos,i=Math.max,l=Math.min,s=Math.sin,u=Math.sqrt,c=1e-12,f=Math.PI,p=f/2,d=2*f;function h(e){return e>1?0:e<-1?f:Math.acos(e)}function v(e){return e>=1?p:e<=-1?-p:Math.asin(e)}function m(e){return e.innerRadius}function y(e){return e.outerRadius}function g(e){return e.startAngle}function b(e){return e.endAngle}function x(e){return e&&e.padAngle}function _(e,t,n,r,a,o,i,l){var s=n-e,u=r-t,f=i-a,p=l-o,d=p*s-f*u;if(!(d*d<c))return d=(f*(t-o)-p*(e-a))/d,[e+d*s,t+d*u]}function w(e,t,n,r,a,o,l){var s=e-n,c=t-r,f=(l?o:-o)/u(s*s+c*c),p=f*c,d=-f*s,h=e+p,v=t+d,m=n+p,y=r+d,g=(h+m)/2,b=(v+y)/2,x=m-h,_=y-v,w=x*x+_*_,k=a-o,T=h*y-m*v,E=(_<0?-1:1)*u(i(0,k*k*w-T*T)),O=(T*_-x*E)/w,M=(-T*x-_*E)/w,S=(T*_+x*E)/w,C=(-T*x+_*E)/w,A=O-g,P=M-b,L=S-g,D=C-b;return A*A+P*P>L*L+D*D&&(O=S,M=C),{cx:O,cy:M,x01:-p,y01:-d,x11:O*(a/k-1),y11:M*(a/k-1)}}function k(){var e=m,i=y,k=n(0),T=null,E=g,O=b,M=x,S=null;function C(){var n,m,y=+e.apply(this,arguments),g=+i.apply(this,arguments),b=E.apply(this,arguments)-p,x=O.apply(this,arguments)-p,C=r(x-b),A=x>b;if(S||(S=n=t.path()),g<y&&(m=g,g=y,y=m),g>c)if(C>d-c)S.moveTo(g*o(b),g*s(b)),S.arc(0,0,g,b,x,!A),y>c&&(S.moveTo(y*o(x),y*s(x)),S.arc(0,0,y,x,b,A));else{var P,L,D=b,j=x,I=b,R=x,z=C,N=C,F=M.apply(this,arguments)/2,B=F>c&&(T?+T.apply(this,arguments):u(y*y+g*g)),V=l(r(g-y)/2,+k.apply(this,arguments)),H=V,U=V;if(B>c){var W=v(B/y*s(F)),q=v(B/g*s(F));(z-=2*W)>c?(W*=A?1:-1,I+=W,R-=W):(z=0,I=R=(b+x)/2),(N-=2*q)>c?(q*=A?1:-1,D+=q,j-=q):(N=0,D=j=(b+x)/2)}var $=g*o(D),G=g*s(D),Y=y*o(R),K=y*s(R);if(V>c){var X,Z=g*o(j),J=g*s(j),Q=y*o(I),ee=y*s(I);if(C<f&&(X=_($,G,Q,ee,Z,J,Y,K))){var te=$-X[0],ne=G-X[1],re=Z-X[0],ae=J-X[1],oe=1/s(h((te*re+ne*ae)/(u(te*te+ne*ne)*u(re*re+ae*ae)))/2),ie=u(X[0]*X[0]+X[1]*X[1]);H=l(V,(y-ie)/(oe-1)),U=l(V,(g-ie)/(oe+1))}}N>c?U>c?(P=w(Q,ee,$,G,g,U,A),L=w(Z,J,Y,K,g,U,A),S.moveTo(P.cx+P.x01,P.cy+P.y01),U<V?S.arc(P.cx,P.cy,U,a(P.y01,P.x01),a(L.y01,L.x01),!A):(S.arc(P.cx,P.cy,U,a(P.y01,P.x01),a(P.y11,P.x11),!A),S.arc(0,0,g,a(P.cy+P.y11,P.cx+P.x11),a(L.cy+L.y11,L.cx+L.x11),!A),S.arc(L.cx,L.cy,U,a(L.y11,L.x11),a(L.y01,L.x01),!A))):(S.moveTo($,G),S.arc(0,0,g,D,j,!A)):S.moveTo($,G),y>c&&z>c?H>c?(P=w(Y,K,Z,J,y,-H,A),L=w($,G,Q,ee,y,-H,A),S.lineTo(P.cx+P.x01,P.cy+P.y01),H<V?S.arc(P.cx,P.cy,H,a(P.y01,P.x01),a(L.y01,L.x01),!A):(S.arc(P.cx,P.cy,H,a(P.y01,P.x01),a(P.y11,P.x11),!A),S.arc(0,0,y,a(P.cy+P.y11,P.cx+P.x11),a(L.cy+L.y11,L.cx+L.x11),A),S.arc(L.cx,L.cy,H,a(L.y11,L.x11),a(L.y01,L.x01),!A))):S.arc(0,0,y,R,I,A):S.lineTo(Y,K)}else S.moveTo(0,0);if(S.closePath(),n)return S=null,n+""||null}return C.centroid=function(){var t=(+e.apply(this,arguments)+ +i.apply(this,arguments))/2,n=(+E.apply(this,arguments)+ +O.apply(this,arguments))/2-f/2;return[o(n)*t,s(n)*t]},C.innerRadius=function(t){return arguments.length?(e="function"===typeof t?t:n(+t),C):e},C.outerRadius=function(e){return arguments.length?(i="function"===typeof e?e:n(+e),C):i},C.cornerRadius=function(e){return arguments.length?(k="function"===typeof e?e:n(+e),C):k},C.padRadius=function(e){return arguments.length?(T=null==e?null:"function"===typeof e?e:n(+e),C):T},C.startAngle=function(e){return arguments.length?(E="function"===typeof e?e:n(+e),C):E},C.endAngle=function(e){return arguments.length?(O="function"===typeof e?e:n(+e),C):O},C.padAngle=function(e){return arguments.length?(M="function"===typeof e?e:n(+e),C):M},C.context=function(e){return arguments.length?(S=null==e?null:e,C):S},C}function T(e){this._context=e}function E(e){return new T(e)}function O(e){return e[0]}function M(e){return e[1]}function S(){var e=O,r=M,a=n(!0),o=null,i=E,l=null;function s(n){var s,u,c,f=n.length,p=!1;for(null==o&&(l=i(c=t.path())),s=0;s<=f;++s)!(s<f&&a(u=n[s],s,n))===p&&((p=!p)?l.lineStart():l.lineEnd()),p&&l.point(+e(u,s,n),+r(u,s,n));if(c)return l=null,c+""||null}return s.x=function(t){return arguments.length?(e="function"===typeof t?t:n(+t),s):e},s.y=function(e){return arguments.length?(r="function"===typeof e?e:n(+e),s):r},s.defined=function(e){return arguments.length?(a="function"===typeof e?e:n(!!e),s):a},s.curve=function(e){return arguments.length?(i=e,null!=o&&(l=i(o)),s):i},s.context=function(e){return arguments.length?(null==e?o=l=null:l=i(o=e),s):o},s}function C(){var e=O,r=null,a=n(0),o=M,i=n(!0),l=null,s=E,u=null;function c(n){var c,f,p,d,h,v=n.length,m=!1,y=new Array(v),g=new Array(v);for(null==l&&(u=s(h=t.path())),c=0;c<=v;++c){if(!(c<v&&i(d=n[c],c,n))===m)if(m=!m)f=c,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),p=c-1;p>=f;--p)u.point(y[p],g[p]);u.lineEnd(),u.areaEnd()}m&&(y[c]=+e(d,c,n),g[c]=+a(d,c,n),u.point(r?+r(d,c,n):y[c],o?+o(d,c,n):g[c]))}if(h)return u=null,h+""||null}function f(){return S().defined(i).curve(s).context(l)}return c.x=function(t){return arguments.length?(e="function"===typeof t?t:n(+t),r=null,c):e},c.x0=function(t){return arguments.length?(e="function"===typeof t?t:n(+t),c):e},c.x1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:n(+e),c):r},c.y=function(e){return arguments.length?(a="function"===typeof e?e:n(+e),o=null,c):a},c.y0=function(e){return arguments.length?(a="function"===typeof e?e:n(+e),c):a},c.y1=function(e){return arguments.length?(o=null==e?null:"function"===typeof e?e:n(+e),c):o},c.lineX0=c.lineY0=function(){return f().x(e).y(a)},c.lineY1=function(){return f().x(e).y(o)},c.lineX1=function(){return f().x(r).y(a)},c.defined=function(e){return arguments.length?(i="function"===typeof e?e:n(!!e),c):i},c.curve=function(e){return arguments.length?(s=e,null!=l&&(u=s(l)),c):s},c.context=function(e){return arguments.length?(null==e?l=u=null:u=s(l=e),c):l},c}function A(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function P(e){return e}function L(){var e=P,t=A,r=null,a=n(0),o=n(d),i=n(0);function l(n){var l,s,u,c,f,p=n.length,h=0,v=new Array(p),m=new Array(p),y=+a.apply(this,arguments),g=Math.min(d,Math.max(-d,o.apply(this,arguments)-y)),b=Math.min(Math.abs(g)/p,i.apply(this,arguments)),x=b*(g<0?-1:1);for(l=0;l<p;++l)(f=m[v[l]=l]=+e(n[l],l,n))>0&&(h+=f);for(null!=t?v.sort((function(e,n){return t(m[e],m[n])})):null!=r&&v.sort((function(e,t){return r(n[e],n[t])})),l=0,u=h?(g-p*x)/h:0;l<p;++l,y=c)s=v[l],f=m[s],c=y+(f>0?f*u:0)+x,m[s]={data:n[s],index:l,value:f,startAngle:y,endAngle:c,padAngle:b};return m}return l.value=function(t){return arguments.length?(e="function"===typeof t?t:n(+t),l):e},l.sortValues=function(e){return arguments.length?(t=e,r=null,l):t},l.sort=function(e){return arguments.length?(r=e,t=null,l):r},l.startAngle=function(e){return arguments.length?(a="function"===typeof e?e:n(+e),l):a},l.endAngle=function(e){return arguments.length?(o="function"===typeof e?e:n(+e),l):o},l.padAngle=function(e){return arguments.length?(i="function"===typeof e?e:n(+e),l):i},l}T.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};var D=I(E);function j(e){this._curve=e}function I(e){function t(t){return new j(e(t))}return t._curve=e,t}function R(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(I(e)):t()._curve},e}function z(){return R(S().curve(D))}function N(){var e=C().curve(D),t=e.curve,n=e.lineX0,r=e.lineX1,a=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return R(n())},delete e.lineX0,e.lineEndAngle=function(){return R(r())},delete e.lineX1,e.lineInnerRadius=function(){return R(a())},delete e.lineY0,e.lineOuterRadius=function(){return R(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(I(e)):t()._curve},e}function F(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}j.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var B=Array.prototype.slice;function V(e){return e.source}function H(e){return e.target}function U(e){var r=V,a=H,o=O,i=M,l=null;function s(){var n,s=B.call(arguments),u=r.apply(this,s),c=a.apply(this,s);if(l||(l=n=t.path()),e(l,+o.apply(this,(s[0]=u,s)),+i.apply(this,s),+o.apply(this,(s[0]=c,s)),+i.apply(this,s)),n)return l=null,n+""||null}return s.source=function(e){return arguments.length?(r=e,s):r},s.target=function(e){return arguments.length?(a=e,s):a},s.x=function(e){return arguments.length?(o="function"===typeof e?e:n(+e),s):o},s.y=function(e){return arguments.length?(i="function"===typeof e?e:n(+e),s):i},s.context=function(e){return arguments.length?(l=null==e?null:e,s):l},s}function W(e,t,n,r,a){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,a,r,a)}function q(e,t,n,r,a){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+a)/2,r,n,r,a)}function $(e,t,n,r,a){var o=F(t,n),i=F(t,n=(n+a)/2),l=F(r,n),s=F(r,a);e.moveTo(o[0],o[1]),e.bezierCurveTo(i[0],i[1],l[0],l[1],s[0],s[1])}function G(){return U(W)}function Y(){return U(q)}function K(){var e=U($);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var X={draw:function(e,t){var n=Math.sqrt(t/f);e.moveTo(n,0),e.arc(0,0,n,0,d)}},Z={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},J=Math.sqrt(1/3),Q=2*J,ee={draw:function(e,t){var n=Math.sqrt(t/Q),r=n*J;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},te=.8908130915292852,ne=Math.sin(f/10)/Math.sin(7*f/10),re=Math.sin(d/10)*ne,ae=-Math.cos(d/10)*ne,oe={draw:function(e,t){var n=Math.sqrt(t*te),r=re*n,a=ae*n;e.moveTo(0,-n),e.lineTo(r,a);for(var o=1;o<5;++o){var i=d*o/5,l=Math.cos(i),s=Math.sin(i);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*a,s*r+l*a)}e.closePath()}},ie={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},le=Math.sqrt(3),se={draw:function(e,t){var n=-Math.sqrt(t/(3*le));e.moveTo(0,2*n),e.lineTo(-le*n,-n),e.lineTo(le*n,-n),e.closePath()}},ue=-.5,ce=Math.sqrt(3)/2,fe=1/Math.sqrt(12),pe=3*(fe/2+1),de={draw:function(e,t){var n=Math.sqrt(t/pe),r=n/2,a=n*fe,o=r,i=n*fe+n,l=-o,s=i;e.moveTo(r,a),e.lineTo(o,i),e.lineTo(l,s),e.lineTo(ue*r-ce*a,ce*r+ue*a),e.lineTo(ue*o-ce*i,ce*o+ue*i),e.lineTo(ue*l-ce*s,ce*l+ue*s),e.lineTo(ue*r+ce*a,ue*a-ce*r),e.lineTo(ue*o+ce*i,ue*i-ce*o),e.lineTo(ue*l+ce*s,ue*s-ce*l),e.closePath()}},he=[X,Z,ee,ie,oe,se,de];function ve(){var e=n(X),r=n(64),a=null;function o(){var n;if(a||(a=n=t.path()),e.apply(this,arguments).draw(a,+r.apply(this,arguments)),n)return a=null,n+""||null}return o.type=function(t){return arguments.length?(e="function"===typeof t?t:n(t),o):e},o.size=function(e){return arguments.length?(r="function"===typeof e?e:n(+e),o):r},o.context=function(e){return arguments.length?(a=null==e?null:e,o):a},o}function me(){}function ye(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ge(e){this._context=e}function be(e){return new ge(e)}function xe(e){this._context=e}function _e(e){return new xe(e)}function we(e){this._context=e}function ke(e){return new we(e)}function Te(e,t){this._basis=new ge(e),this._beta=t}ge.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ye(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ye(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},xe.prototype={areaStart:me,areaEnd:me,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ye(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},we.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ye(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},Te.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0){var r,a=e[0],o=t[0],i=e[n]-a,l=t[n]-o,s=-1;while(++s<=n)r=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(a+r*i),this._beta*t[s]+(1-this._beta)*(o+r*l))}this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Ee=function e(t){function n(e){return 1===t?new ge(e):new Te(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function Oe(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Me(e,t){this._context=e,this._k=(1-t)/6}Me.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Oe(this,this._x1,this._y1);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Oe(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Se=function e(t){function n(e){return new Me(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Ce(e,t){this._context=e,this._k=(1-t)/6}Ce.prototype={areaStart:me,areaEnd:me,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Oe(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ae=function e(t){function n(e){return new Ce(e,t)}return n.tension=function(t){return e(+t)},n}(0);function Pe(e,t){this._context=e,this._k=(1-t)/6}Pe.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Oe(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Le=function e(t){function n(e){return new Pe(e,t)}return n.tension=function(t){return e(+t)},n}(0);function De(e,t,n){var r=e._x1,a=e._y1,o=e._x2,i=e._y2;if(e._l01_a>c){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>c){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,f=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*u+e._x1*e._l23_2a-t*e._l12_2a)/f,i=(i*u+e._y1*e._l23_2a-n*e._l12_2a)/f}e._context.bezierCurveTo(r,a,o,i,e._x2,e._y2)}function je(e,t){this._context=e,this._alpha=t}je.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:De(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Ie=function e(t){function n(e){return t?new je(e,t):new Me(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Re(e,t){this._context=e,this._alpha=t}Re.prototype={areaStart:me,areaEnd:me,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:De(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ze=function e(t){function n(e){return t?new Re(e,t):new Ce(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Ne(e,t){this._context=e,this._alpha=t}Ne.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:De(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Fe=function e(t){function n(e){return t?new Ne(e,t):new Pe(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function Be(e){this._context=e}function Ve(e){return new Be(e)}function He(e){return e<0?-1:1}function Ue(e,t,n){var r=e._x1-e._x0,a=t-e._x1,o=(e._y1-e._y0)/(r||a<0&&-0),i=(n-e._y1)/(a||r<0&&-0),l=(o*a+i*r)/(r+a);return(He(o)+He(i))*Math.min(Math.abs(o),Math.abs(i),.5*Math.abs(l))||0}function We(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function qe(e,t,n){var r=e._x0,a=e._y0,o=e._x1,i=e._y1,l=(o-r)/3;e._context.bezierCurveTo(r+l,a+l*t,o-l,i-l*n,o,i)}function $e(e){this._context=e}function Ge(e){this._context=new Ye(e)}function Ye(e){this._context=e}function Ke(e){return new $e(e)}function Xe(e){return new Ge(e)}function Ze(e){this._context=e}function Je(e){var t,n,r=e.length-1,a=new Array(r),o=new Array(r),i=new Array(r);for(a[0]=0,o[0]=2,i[0]=e[0]+2*e[1],t=1;t<r-1;++t)a[t]=1,o[t]=4,i[t]=4*e[t]+2*e[t+1];for(a[r-1]=2,o[r-1]=7,i[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=a[t]/o[t-1],o[t]-=n,i[t]-=n*i[t-1];for(a[r-1]=i[r-1]/o[r-1],t=r-2;t>=0;--t)a[t]=(i[t]-a[t+1])/o[t];for(o[r-1]=(e[r]+a[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-a[t+1];return[a,o]}function Qe(e){return new Ze(e)}function et(e,t){this._context=e,this._t=t}function tt(e){return new et(e,.5)}function nt(e){return new et(e,0)}function rt(e){return new et(e,1)}function at(e,t){if((a=e.length)>1)for(var n,r,a,o=1,i=e[t[0]],l=i.length;o<a;++o)for(r=i,i=e[t[o]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]}function ot(e){var t=e.length,n=new Array(t);while(--t>=0)n[t]=t;return n}function it(e,t){return e[t]}function lt(){var e=n([]),t=ot,r=at,a=it;function o(n){var o,i,l=e.apply(this,arguments),s=n.length,u=l.length,c=new Array(u);for(o=0;o<u;++o){for(var f,p=l[o],d=c[o]=new Array(s),h=0;h<s;++h)d[h]=f=[0,+a(n[h],p,h,n)],f.data=n[h];d.key=p}for(o=0,i=t(c);o<u;++o)c[i[o]].index=o;return r(c,i),c}return o.keys=function(t){return arguments.length?(e="function"===typeof t?t:n(B.call(t)),o):e},o.value=function(e){return arguments.length?(a="function"===typeof e?e:n(+e),o):a},o.order=function(e){return arguments.length?(t=null==e?ot:"function"===typeof e?e:n(B.call(e)),o):t},o.offset=function(e){return arguments.length?(r=null==e?at:e,o):r},o}function st(e,t){if((r=e.length)>0){for(var n,r,a,o=0,i=e[0].length;o<i;++o){for(a=n=0;n<r;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<r;++n)e[n][o][1]/=a}at(e,t)}}function ut(e,t){if((l=e.length)>0)for(var n,r,a,o,i,l,s=0,u=e[t[0]].length;s<u;++s)for(o=i=0,n=0;n<l;++n)(a=(r=e[t[n]][s])[1]-r[0])>0?(r[0]=o,r[1]=o+=a):a<0?(r[1]=i,r[0]=i+=a):(r[0]=0,r[1]=a)}function ct(e,t){if((n=e.length)>0){for(var n,r=0,a=e[t[0]],o=a.length;r<o;++r){for(var i=0,l=0;i<n;++i)l+=e[i][r][1]||0;a[r][1]+=a[r][0]=-l/2}at(e,t)}}function ft(e,t){if((a=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,a,o=0,i=1;i<r;++i){for(var l=0,s=0,u=0;l<a;++l){for(var c=e[t[l]],f=c[i][1]||0,p=c[i-1][1]||0,d=(f-p)/2,h=0;h<l;++h){var v=e[t[h]],m=v[i][1]||0,y=v[i-1][1]||0;d+=m-y}s+=f,u+=d*f}n[i-1][1]+=n[i-1][0]=o,s&&(o-=u/s)}n[i-1][1]+=n[i-1][0]=o,at(e,t)}}function pt(e){var t=e.map(dt);return ot(e).sort((function(e,n){return t[e]-t[n]}))}function dt(e){var t,n=-1,r=0,a=e.length,o=-1/0;while(++n<a)(t=+e[n][1])>o&&(o=t,r=n);return r}function ht(e){var t=e.map(vt);return ot(e).sort((function(e,n){return t[e]-t[n]}))}function vt(e){var t,n=0,r=-1,a=e.length;while(++r<a)(t=+e[r][1])&&(n+=t);return n}function mt(e){return ht(e).reverse()}function yt(e){var t,n,r=e.length,a=e.map(vt),o=pt(e),i=0,l=0,s=[],u=[];for(t=0;t<r;++t)n=o[t],i<l?(i+=a[n],s.push(n)):(l+=a[n],u.push(n));return u.reverse().concat(s)}function gt(e){return ot(e).reverse()}Be.prototype={areaStart:me,areaEnd:me,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},$e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:qe(this,this._t0,We(this,this._t0));break}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,qe(this,We(this,n=Ue(this,e,t)),n);break;default:qe(this,this._t0,n=Ue(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(Ge.prototype=Object.create($e.prototype)).point=function(e,t){$e.prototype.point.call(this,t,e)},Ye.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,o){this._context.bezierCurveTo(t,e,r,n,o,a)}},Ze.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=Je(e),a=Je(t),o=0,i=1;i<n;++o,++i)this._context.bezierCurveTo(r[0][o],a[0][o],r[1][o],a[1][o],e[i],t[i]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},et.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}},e.arc=k,e.area=C,e.areaRadial=N,e.curveBasis=be,e.curveBasisClosed=_e,e.curveBasisOpen=ke,e.curveBundle=Ee,e.curveCardinal=Se,e.curveCardinalClosed=Ae,e.curveCardinalOpen=Le,e.curveCatmullRom=Ie,e.curveCatmullRomClosed=ze,e.curveCatmullRomOpen=Fe,e.curveLinear=E,e.curveLinearClosed=Ve,e.curveMonotoneX=Ke,e.curveMonotoneY=Xe,e.curveNatural=Qe,e.curveStep=tt,e.curveStepAfter=rt,e.curveStepBefore=nt,e.line=S,e.lineRadial=z,e.linkHorizontal=G,e.linkRadial=K,e.linkVertical=Y,e.pie=L,e.pointRadial=F,e.radialArea=N,e.radialLine=z,e.stack=lt,e.stackOffsetDiverging=ut,e.stackOffsetExpand=st,e.stackOffsetNone=at,e.stackOffsetSilhouette=ct,e.stackOffsetWiggle=ft,e.stackOrderAppearance=pt,e.stackOrderAscending=ht,e.stackOrderDescending=mt,e.stackOrderInsideOut=yt,e.stackOrderNone=ot,e.stackOrderReverse=gt,e.symbol=ve,e.symbolCircle=X,e.symbolCross=Z,e.symbolDiamond=ee,e.symbolSquare=ie,e.symbolStar=oe,e.symbolTriangle=se,e.symbolWye=de,e.symbols=he,Object.defineProperty(e,"__esModule",{value:!0})}))},{"d3-path":163}],166:[function(t,n,r){(function(a,o){"object"===typeof r&&"undefined"!==typeof n?o(r,t("d3-time")):"function"===typeof e&&e.amd?e(["exports","d3-time"],o):(a=a||self,o(a.d3=a.d3||{},a.d3))})(this,(function(e,t){"use strict";function n(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function r(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function a(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function o(e){var o=e.dateTime,i=e.date,s=e.time,u=e.periods,c=e.days,f=e.shortDays,p=e.months,ge=e.shortMonths,be=d(u),xe=h(u),_e=d(c),we=h(c),ke=d(f),Te=h(f),Ee=d(p),Oe=h(p),Me=d(ge),Se=h(ge),Ce={a:Ue,A:We,b:qe,B:$e,c:null,d:I,e:I,f:B,H:R,I:z,j:N,L:F,m:V,M:H,p:Ge,q:Ye,Q:me,s:ye,S:U,u:W,U:q,V:$,w:G,W:Y,x:null,X:null,y:K,Y:X,Z:Z,"%":ve},Ae={a:Ke,A:Xe,b:Ze,B:Je,c:null,d:J,e:J,f:re,H:Q,I:ee,j:te,L:ne,m:ae,M:oe,p:Qe,q:et,Q:me,s:ye,S:ie,u:le,U:se,V:ue,w:ce,W:fe,x:null,X:null,y:pe,Y:de,Z:he,"%":ve},Pe={a:Re,A:ze,b:Ne,B:Fe,c:Be,d:E,e:E,f:P,H:M,I:M,j:O,L:A,m:T,M:S,p:Ie,q:k,Q:D,s:j,S:C,u:m,U:y,V:g,w:v,W:b,x:Ve,X:He,y:_,Y:x,Z:w,"%":L};function Le(e,t){return function(n){var r,a,o,i=[],s=-1,u=0,c=e.length;n instanceof Date||(n=new Date(+n));while(++s<c)37===e.charCodeAt(s)&&(i.push(e.slice(u,s)),null!=(a=l[r=e.charAt(++s)])?r=e.charAt(++s):a="e"===r?" ":"0",(o=t[r])&&(r=o(n,a)),i.push(r),u=s+1);return i.push(e.slice(u,s)),i.join("")}}function De(e,o){return function(i){var l,s,u=a(1900,void 0,1),c=je(u,e,i+="",0);if(c!=i.length)return null;if("Q"in u)return new Date(u.Q);if("s"in u)return new Date(1e3*u.s+("L"in u?u.L:0));if(o&&!("Z"in u)&&(u.Z=0),"p"in u&&(u.H=u.H%12+12*u.p),void 0===u.m&&(u.m="q"in u?u.q:0),"V"in u){if(u.V<1||u.V>53)return null;"w"in u||(u.w=1),"Z"in u?(l=r(a(u.y,0,1)),s=l.getUTCDay(),l=s>4||0===s?t.utcMonday.ceil(l):t.utcMonday(l),l=t.utcDay.offset(l,7*(u.V-1)),u.y=l.getUTCFullYear(),u.m=l.getUTCMonth(),u.d=l.getUTCDate()+(u.w+6)%7):(l=n(a(u.y,0,1)),s=l.getDay(),l=s>4||0===s?t.timeMonday.ceil(l):t.timeMonday(l),l=t.timeDay.offset(l,7*(u.V-1)),u.y=l.getFullYear(),u.m=l.getMonth(),u.d=l.getDate()+(u.w+6)%7)}else("W"in u||"U"in u)&&("w"in u||(u.w="u"in u?u.u%7:"W"in u?1:0),s="Z"in u?r(a(u.y,0,1)).getUTCDay():n(a(u.y,0,1)).getDay(),u.m=0,u.d="W"in u?(u.w+6)%7+7*u.W-(s+5)%7:u.w+7*u.U-(s+6)%7);return"Z"in u?(u.H+=u.Z/100|0,u.M+=u.Z%100,r(u)):n(u)}}function je(e,t,n,r){var a,o,i=0,s=t.length,u=n.length;while(i<s){if(r>=u)return-1;if(a=t.charCodeAt(i++),37===a){if(a=t.charAt(i++),o=Pe[a in l?t.charAt(i++):a],!o||(r=o(e,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}function Ie(e,t,n){var r=be.exec(t.slice(n));return r?(e.p=xe[r[0].toLowerCase()],n+r[0].length):-1}function Re(e,t,n){var r=ke.exec(t.slice(n));return r?(e.w=Te[r[0].toLowerCase()],n+r[0].length):-1}function ze(e,t,n){var r=_e.exec(t.slice(n));return r?(e.w=we[r[0].toLowerCase()],n+r[0].length):-1}function Ne(e,t,n){var r=Me.exec(t.slice(n));return r?(e.m=Se[r[0].toLowerCase()],n+r[0].length):-1}function Fe(e,t,n){var r=Ee.exec(t.slice(n));return r?(e.m=Oe[r[0].toLowerCase()],n+r[0].length):-1}function Be(e,t,n){return je(e,o,t,n)}function Ve(e,t,n){return je(e,i,t,n)}function He(e,t,n){return je(e,s,t,n)}function Ue(e){return f[e.getDay()]}function We(e){return c[e.getDay()]}function qe(e){return ge[e.getMonth()]}function $e(e){return p[e.getMonth()]}function Ge(e){return u[+(e.getHours()>=12)]}function Ye(e){return 1+~~(e.getMonth()/3)}function Ke(e){return f[e.getUTCDay()]}function Xe(e){return c[e.getUTCDay()]}function Ze(e){return ge[e.getUTCMonth()]}function Je(e){return p[e.getUTCMonth()]}function Qe(e){return u[+(e.getUTCHours()>=12)]}function et(e){return 1+~~(e.getUTCMonth()/3)}return Ce.x=Le(i,Ce),Ce.X=Le(s,Ce),Ce.c=Le(o,Ce),Ae.x=Le(i,Ae),Ae.X=Le(s,Ae),Ae.c=Le(o,Ae),{format:function(e){var t=Le(e+="",Ce);return t.toString=function(){return e},t},parse:function(e){var t=De(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=Le(e+="",Ae);return t.toString=function(){return e},t},utcParse:function(e){var t=De(e+="",!0);return t.toString=function(){return e},t}}}var i,l={"-":"",_:" ",0:"0"},s=/^\s*\d+/,u=/^%/,c=/[\\^$*+?|[\]().{}]/g;function f(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function p(e){return e.replace(c,"\\$&")}function d(e){return new RegExp("^(?:"+e.map(p).join("|")+")","i")}function h(e){var t={},n=-1,r=e.length;while(++n<r)t[e[n].toLowerCase()]=n;return t}function v(e,t,n){var r=s.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function m(e,t,n){var r=s.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function y(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function g(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function b(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function x(e,t,n){var r=s.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function w(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function k(e,t,n){var r=s.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function T(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function E(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function O(e,t,n){var r=s.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function M(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function S(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function C(e,t,n){var r=s.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function A(e,t,n){var r=s.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function P(e,t,n){var r=s.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function L(e,t,n){var r=u.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function D(e,t,n){var r=s.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function j(e,t,n){var r=s.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function I(e,t){return f(e.getDate(),t,2)}function R(e,t){return f(e.getHours(),t,2)}function z(e,t){return f(e.getHours()%12||12,t,2)}function N(e,n){return f(1+t.timeDay.count(t.timeYear(e),e),n,3)}function F(e,t){return f(e.getMilliseconds(),t,3)}function B(e,t){return F(e,t)+"000"}function V(e,t){return f(e.getMonth()+1,t,2)}function H(e,t){return f(e.getMinutes(),t,2)}function U(e,t){return f(e.getSeconds(),t,2)}function W(e){var t=e.getDay();return 0===t?7:t}function q(e,n){return f(t.timeSunday.count(t.timeYear(e)-1,e),n,2)}function $(e,n){var r=e.getDay();return e=r>=4||0===r?t.timeThursday(e):t.timeThursday.ceil(e),f(t.timeThursday.count(t.timeYear(e),e)+(4===t.timeYear(e).getDay()),n,2)}function G(e){return e.getDay()}function Y(e,n){return f(t.timeMonday.count(t.timeYear(e)-1,e),n,2)}function K(e,t){return f(e.getFullYear()%100,t,2)}function X(e,t){return f(e.getFullYear()%1e4,t,4)}function Z(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+f(t/60|0,"0",2)+f(t%60,"0",2)}function J(e,t){return f(e.getUTCDate(),t,2)}function Q(e,t){return f(e.getUTCHours(),t,2)}function ee(e,t){return f(e.getUTCHours()%12||12,t,2)}function te(e,n){return f(1+t.utcDay.count(t.utcYear(e),e),n,3)}function ne(e,t){return f(e.getUTCMilliseconds(),t,3)}function re(e,t){return ne(e,t)+"000"}function ae(e,t){return f(e.getUTCMonth()+1,t,2)}function oe(e,t){return f(e.getUTCMinutes(),t,2)}function ie(e,t){return f(e.getUTCSeconds(),t,2)}function le(e){var t=e.getUTCDay();return 0===t?7:t}function se(e,n){return f(t.utcSunday.count(t.utcYear(e)-1,e),n,2)}function ue(e,n){var r=e.getUTCDay();return e=r>=4||0===r?t.utcThursday(e):t.utcThursday.ceil(e),f(t.utcThursday.count(t.utcYear(e),e)+(4===t.utcYear(e).getUTCDay()),n,2)}function ce(e){return e.getUTCDay()}function fe(e,n){return f(t.utcMonday.count(t.utcYear(e)-1,e),n,2)}function pe(e,t){return f(e.getUTCFullYear()%100,t,2)}function de(e,t){return f(e.getUTCFullYear()%1e4,t,4)}function he(){return"+0000"}function ve(){return"%"}function me(e){return+e}function ye(e){return Math.floor(+e/1e3)}function ge(t){return i=o(t),e.timeFormat=i.format,e.timeParse=i.parse,e.utcFormat=i.utcFormat,e.utcParse=i.utcParse,i}ge({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var be="%Y-%m-%dT%H:%M:%S.%LZ";function xe(e){return e.toISOString()}var _e=Date.prototype.toISOString?xe:e.utcFormat(be);function we(e){var t=new Date(e);return isNaN(t)?null:t}var ke=+new Date("2000-01-01T00:00:00.000Z")?we:e.utcParse(be);e.isoFormat=_e,e.isoParse=ke,e.timeFormatDefaultLocale=ge,e.timeFormatLocale=o,Object.defineProperty(e,"__esModule",{value:!0})}))},{"d3-time":167}],167:[function(t,n,r){(function(t,a){"object"===typeof r&&"undefined"!==typeof n?a(r):"function"===typeof e&&e.amd?e(["exports"],a):(t=t||self,a(t.d3=t.d3||{}))})(this,(function(e){"use strict";var t=new Date,n=new Date;function r(e,a,o,i){function l(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return l.floor=function(t){return e(t=new Date(+t)),t},l.ceil=function(t){return e(t=new Date(t-1)),a(t,1),e(t),t},l.round=function(e){var t=l(e),n=l.ceil(e);return e-t<n-e?t:n},l.offset=function(e,t){return a(e=new Date(+e),null==t?1:Math.floor(t)),e},l.range=function(t,n,r){var o,i=[];if(t=l.ceil(t),r=null==r?1:Math.floor(r),!(t<n)||!(r>0))return i;do{i.push(o=new Date(+t)),a(t,r),e(t)}while(o<t&&t<n);return i},l.filter=function(t){return r((function(n){if(n>=n)while(e(n),!t(n))n.setTime(n-1)}),(function(e,n){if(e>=e)if(n<0)while(++n<=0)while(a(e,-1),!t(e));else while(--n>=0)while(a(e,1),!t(e));}))},o&&(l.count=function(r,a){return t.setTime(+r),n.setTime(+a),e(t),e(n),Math.floor(o(t,n))},l.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?l.filter(i?function(t){return i(t)%e===0}:function(t){return l.count(0,t)%e===0}):l:null}),l}var a=r((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));a.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?r((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):a:null};var o=a.range,i=1e3,l=6e4,s=36e5,u=864e5,c=6048e5,f=r((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+t*i)}),(function(e,t){return(t-e)/i}),(function(e){return e.getUTCSeconds()})),p=f.range,d=r((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i)}),(function(e,t){e.setTime(+e+t*l)}),(function(e,t){return(t-e)/l}),(function(e){return e.getMinutes()})),h=d.range,v=r((function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*i-e.getMinutes()*l)}),(function(e,t){e.setTime(+e+t*s)}),(function(e,t){return(t-e)/s}),(function(e){return e.getHours()})),m=v.range,y=r((function(e){e.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*l)/u}),(function(e){return e.getDate()-1})),g=y.range;function b(e){return r((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*l)/c}))}var x=b(0),_=b(1),w=b(2),k=b(3),T=b(4),E=b(5),O=b(6),M=x.range,S=_.range,C=w.range,A=k.range,P=T.range,L=E.range,D=O.range,j=r((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()})),I=j.range,R=r((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));R.every=function(e){return isFinite(e=Math.floor(e))&&e>0?r((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null};var z=R.range,N=r((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+t*l)}),(function(e,t){return(t-e)/l}),(function(e){return e.getUTCMinutes()})),F=N.range,B=r((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+t*s)}),(function(e,t){return(t-e)/s}),(function(e){return e.getUTCHours()})),V=B.range,H=r((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/u}),(function(e){return e.getUTCDate()-1})),U=H.range;function W(e){return r((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/c}))}var q=W(0),$=W(1),G=W(2),Y=W(3),K=W(4),X=W(5),Z=W(6),J=q.range,Q=$.range,ee=G.range,te=Y.range,ne=K.range,re=X.range,ae=Z.range,oe=r((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()})),ie=oe.range,le=r((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));le.every=function(e){return isFinite(e=Math.floor(e))&&e>0?r((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null};var se=le.range;e.timeDay=y,e.timeDays=g,e.timeFriday=E,e.timeFridays=L,e.timeHour=v,e.timeHours=m,e.timeInterval=r,e.timeMillisecond=a,e.timeMilliseconds=o,e.timeMinute=d,e.timeMinutes=h,e.timeMonday=_,e.timeMondays=S,e.timeMonth=j,e.timeMonths=I,e.timeSaturday=O,e.timeSaturdays=D,e.timeSecond=f,e.timeSeconds=p,e.timeSunday=x,e.timeSundays=M,e.timeThursday=T,e.timeThursdays=P,e.timeTuesday=w,e.timeTuesdays=C,e.timeWednesday=k,e.timeWednesdays=A,e.timeWeek=x,e.timeWeeks=M,e.timeYear=R,e.timeYears=z,e.utcDay=H,e.utcDays=U,e.utcFriday=X,e.utcFridays=re,e.utcHour=B,e.utcHours=V,e.utcMillisecond=a,e.utcMilliseconds=o,e.utcMinute=N,e.utcMinutes=F,e.utcMonday=$,e.utcMondays=Q,e.utcMonth=oe,e.utcMonths=ie,e.utcSaturday=Z,e.utcSaturdays=ae,e.utcSecond=f,e.utcSeconds=p,e.utcSunday=q,e.utcSundays=J,e.utcThursday=K,e.utcThursdays=ne,e.utcTuesday=G,e.utcTuesdays=ee,e.utcWednesday=Y,e.utcWednesdays=te,e.utcWeek=q,e.utcWeeks=J,e.utcYear=le,e.utcYears=se,Object.defineProperty(e,"__esModule",{value:!0})}))},{}],168:[function(t,n,r){(function(t,a){"object"===typeof r&&"undefined"!==typeof n?a(r):"function"===typeof e&&e.amd?e(["exports"],a):(t=t||self,a(t.d3=t.d3||{}))})(this,(function(e){"use strict";var t,n,r=0,a=0,o=0,i=1e3,l=0,s=0,u=0,c="object"===typeof performance&&performance.now?performance:Date,f="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function p(){return s||(f(d),s=c.now()+u)}function d(){s=0}function h(){this._call=this._time=this._next=null}function v(e,t,n){var r=new h;return r.restart(e,t,n),r}function m(){p(),++r;var e,n=t;while(n)(e=s-n._time)>=0&&n._call.call(null,e),n=n._next;--r}function y(){s=(l=c.now())+u,r=a=0;try{m()}finally{r=0,b(),s=0}}function g(){var e=c.now(),t=e-l;t>i&&(u-=t,l=e)}function b(){var e,r,a=t,o=1/0;while(a)a._call?(o>a._time&&(o=a._time),e=a,a=a._next):(r=a._next,a._next=null,a=e?e._next=r:t=r);n=e,x(o)}function x(e){if(!r){a&&(a=clearTimeout(a));var t=e-s;t>24?(e<1/0&&(a=setTimeout(y,e-c.now()-u)),o&&(o=clearInterval(o))):(o||(l=c.now(),o=setInterval(g,i)),r=1,f(y))}}function _(e,t,n){var r=new h;return t=null==t?0:+t,r.restart((function(n){r.stop(),e(n+t)}),t,n),r}function w(e,t,n){var r=new h,a=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?p():+n,r.restart((function o(i){i+=a,r.restart(o,a+=t,n),e(i)}),t,n),r)}h.prototype=v.prototype={constructor:h,restart:function(e,r,a){if("function"!==typeof e)throw new TypeError("callback is not a function");a=(null==a?p():+a)+(null==r?0:+r),this._next||n===this||(n?n._next=this:t=this,n=this),this._call=e,this._time=a,x()},stop:function(){this._call&&(this._call=null,this._time=1/0,x())}},e.interval=w,e.now=p,e.timeout=_,e.timer=v,e.timerFlush=m,Object.defineProperty(e,"__esModule",{value:!0})}))},{}],169:[function(t,n,r){!function(){var t={version:"3.5.17"},r=[].slice,a=function(e){return r.call(e)},o=this.document;function i(e){return e&&(e.ownerDocument||e.document||e).documentElement}function l(e){return e&&(e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView)}if(o)try{a(o.documentElement.childNodes)[0].nodeType}catch(au){a=function(e){var t=e.length,n=new Array(t);while(t--)n[t]=e[t];return n}}if(Date.now||(Date.now=function(){return+new Date}),o)try{o.createElement("DIV").style.setProperty("opacity",0,"")}catch(ou){var s=this.Element.prototype,u=s.setAttribute,c=s.setAttributeNS,f=this.CSSStyleDeclaration.prototype,p=f.setProperty;s.setAttribute=function(e,t){u.call(this,e,t+"")},s.setAttributeNS=function(e,t,n){c.call(this,e,t,n+"")},f.setProperty=function(e,t,n){p.call(this,e,t+"",n)}}function d(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function h(e){return null===e?NaN:+e}function v(e){return!isNaN(e)}function m(e){return{left:function(t,n,r,a){arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);while(r<a){var o=r+a>>>1;e(t[o],n)<0?r=o+1:a=o}return r},right:function(t,n,r,a){arguments.length<3&&(r=0),arguments.length<4&&(a=t.length);while(r<a){var o=r+a>>>1;e(t[o],n)>0?a=o:r=o+1}return r}}}t.ascending=d,t.descending=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},t.min=function(e,t){var n,r,a=-1,o=e.length;if(1===arguments.length){while(++a<o)if(null!=(r=e[a])&&r>=r){n=r;break}while(++a<o)null!=(r=e[a])&&n>r&&(n=r)}else{while(++a<o)if(null!=(r=t.call(e,e[a],a))&&r>=r){n=r;break}while(++a<o)null!=(r=t.call(e,e[a],a))&&n>r&&(n=r)}return n},t.max=function(e,t){var n,r,a=-1,o=e.length;if(1===arguments.length){while(++a<o)if(null!=(r=e[a])&&r>=r){n=r;break}while(++a<o)null!=(r=e[a])&&r>n&&(n=r)}else{while(++a<o)if(null!=(r=t.call(e,e[a],a))&&r>=r){n=r;break}while(++a<o)null!=(r=t.call(e,e[a],a))&&r>n&&(n=r)}return n},t.extent=function(e,t){var n,r,a,o=-1,i=e.length;if(1===arguments.length){while(++o<i)if(null!=(r=e[o])&&r>=r){n=a=r;break}while(++o<i)null!=(r=e[o])&&(n>r&&(n=r),a<r&&(a=r))}else{while(++o<i)if(null!=(r=t.call(e,e[o],o))&&r>=r){n=a=r;break}while(++o<i)null!=(r=t.call(e,e[o],o))&&(n>r&&(n=r),a<r&&(a=r))}return[n,a]},t.sum=function(e,t){var n,r=0,a=e.length,o=-1;if(1===arguments.length)while(++o<a)v(n=+e[o])&&(r+=n);else while(++o<a)v(n=+t.call(e,e[o],o))&&(r+=n);return r},t.mean=function(e,t){var n,r=0,a=e.length,o=-1,i=a;if(1===arguments.length)while(++o<a)v(n=h(e[o]))?r+=n:--i;else while(++o<a)v(n=h(t.call(e,e[o],o)))?r+=n:--i;if(i)return r/i},t.quantile=function(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),a=+e[r-1],o=n-r;return o?a+o*(e[r]-a):a},t.median=function(e,n){var r,a=[],o=e.length,i=-1;if(1===arguments.length)while(++i<o)v(r=h(e[i]))&&a.push(r);else while(++i<o)v(r=h(n.call(e,e[i],i)))&&a.push(r);if(a.length)return t.quantile(a.sort(d),.5)},t.variance=function(e,t){var n,r,a=e.length,o=0,i=0,l=-1,s=0;if(1===arguments.length)while(++l<a)v(n=h(e[l]))&&(r=n-o,o+=r/++s,i+=r*(n-o));else while(++l<a)v(n=h(t.call(e,e[l],l)))&&(r=n-o,o+=r/++s,i+=r*(n-o));if(s>1)return i/(s-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var y=m(d);function g(e){return e.length}t.bisectLeft=y.left,t.bisect=t.bisectRight=y.right,t.bisector=function(e){return m(1===e.length?function(t,n){return d(e(t),n)}:e)},t.shuffle=function(e,t,n){(o=arguments.length)<3&&(n=e.length,o<2&&(t=0));var r,a,o=n-t;while(o)a=Math.random()*o--|0,r=e[o+t],e[o+t]=e[a+t],e[a+t]=r;return e},t.permute=function(e,t){var n=t.length,r=new Array(n);while(n--)r[n]=e[t[n]];return r},t.pairs=function(e){var t=0,n=e.length-1,r=e[0],a=new Array(n<0?0:n);while(t<n)a[t]=[r,r=e[++t]];return a},t.transpose=function(e){if(!(o=e.length))return[];for(var n=-1,r=t.min(e,g),a=new Array(r);++n<r;)for(var o,i=-1,l=a[n]=new Array(o);++i<o;)l[i]=e[i][n];return a},t.zip=function(){return t.transpose(arguments)},t.keys=function(e){var t=[];for(var n in e)t.push(n);return t},t.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},t.entries=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},t.merge=function(e){var t,n,r,a=e.length,o=-1,i=0;while(++o<a)i+=e[o].length;n=new Array(i);while(--a>=0){r=e[a],t=r.length;while(--t>=0)n[--i]=r[t]}return n};var b=Math.abs;function x(e){var t=1;while(e*t%1)t*=10;return t}function _(e,t){for(var n in t)Object.defineProperty(e.prototype,n,{value:t[n],enumerable:!1})}function w(){this._=Object.create(null)}t.range=function(e,t,n){if(arguments.length<3&&(n=1,arguments.length<2&&(t=e,e=0)),(t-e)/n===1/0)throw new Error("infinite range");var r,a=[],o=x(b(n)),i=-1;if(e*=o,t*=o,n*=o,n<0)while((r=e+n*++i)>t)a.push(r/o);else while((r=e+n*++i)<t)a.push(r/o);return a},t.map=function(e,t){var n=new w;if(e instanceof w)e.forEach((function(e,t){n.set(e,t)}));else if(Array.isArray(e)){var r,a=-1,o=e.length;if(1===arguments.length)while(++a<o)n.set(a,e[a]);else while(++a<o)n.set(t.call(e,r=e[a],a),r)}else for(var i in e)n.set(i,e[i]);return n};var k="__proto__",T="\0";function E(e){return(e+="")===k||e[0]===T?T+e:e}function O(e){return(e+="")[0]===T?e.slice(1):e}function M(e){return E(e)in this._}function S(e){return(e=E(e))in this._&&delete this._[e]}function C(){var e=[];for(var t in this._)e.push(O(t));return e}function A(){var e=0;for(var t in this._)++e;return e}function P(){for(var e in this._)return!1;return!0}function L(){this._=Object.create(null)}function D(e){return e}function j(e,t,n){return function(){var r=n.apply(t,arguments);return r===t?e:r}}function I(e,t){if(t in e)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var n=0,r=R.length;n<r;++n){var a=R[n]+t;if(a in e)return a}}_(w,{has:M,get:function(e){return this._[E(e)]},set:function(e,t){return this._[E(e)]=t},remove:S,keys:C,values:function(){var e=[];for(var t in this._)e.push(this._[t]);return e},entries:function(){var e=[];for(var t in this._)e.push({key:O(t),value:this._[t]});return e},size:A,empty:P,forEach:function(e){for(var t in this._)e.call(this,O(t),this._[t])}}),t.nest=function(){var e,n,r={},a=[],o=[];function i(t,o,l){if(l>=a.length)return n?n.call(r,o):e?o.sort(e):o;var s,u,c,f,p=-1,d=o.length,h=a[l++],v=new w;while(++p<d)(f=v.get(s=h(u=o[p])))?f.push(u):v.set(s,[u]);return t?(u=t(),c=function(e,n){u.set(e,i(t,n,l))}):(u={},c=function(e,n){u[e]=i(t,n,l)}),v.forEach(c),u}function l(e,t){if(t>=a.length)return e;var n=[],r=o[t++];return e.forEach((function(e,r){n.push({key:e,values:l(r,t)})})),r?n.sort((function(e,t){return r(e.key,t.key)})):n}return r.map=function(e,t){return i(t,e,0)},r.entries=function(e){return l(i(t.map,e,0),0)},r.key=function(e){return a.push(e),r},r.sortKeys=function(e){return o[a.length-1]=e,r},r.sortValues=function(t){return e=t,r},r.rollup=function(e){return n=e,r},r},t.set=function(e){var t=new L;if(e)for(var n=0,r=e.length;n<r;++n)t.add(e[n]);return t},_(L,{has:M,add:function(e){return this._[E(e+="")]=!0,e},remove:S,values:C,size:A,empty:P,forEach:function(e){for(var t in this._)e.call(this,O(t))}}),t.behavior={},t.rebind=function(e,t){var n,r=1,a=arguments.length;while(++r<a)e[n=arguments[r]]=j(e,t,t[n]);return e};var R=["webkit","ms","moz","Moz","o","O"];function z(){}function N(){}function F(e){var t=[],n=new w;function r(){var n,r=t,a=-1,o=r.length;while(++a<o)(n=r[a].on)&&n.apply(this,arguments);return e}return r.on=function(r,a){var o,i=n.get(r);return arguments.length<2?i&&i.on:(i&&(i.on=null,t=t.slice(0,o=t.indexOf(i)).concat(t.slice(o+1)),n.remove(r)),a&&t.push(n.set(r,{on:a})),e)},r}function B(){t.event.preventDefault()}function V(){var e,n=t.event;while(e=n.sourceEvent)n=e;return n}function H(e){var n=new N,r=0,a=arguments.length;while(++r<a)n[arguments[r]]=F(n);return n.of=function(r,a){return function(o){try{var i=o.sourceEvent=t.event;o.target=e,t.event=o,n[o.type].apply(r,a)}finally{t.event=i}}},n}t.dispatch=function(){var e=new N,t=-1,n=arguments.length;while(++t<n)e[arguments[t]]=F(e);return e},N.prototype.on=function(e,t){var n=e.indexOf("."),r="";if(n>=0&&(r=e.slice(n+1),e=e.slice(0,n)),e)return arguments.length<2?this[e].on(r):this[e].on(r,t);if(2===arguments.length){if(null==t)for(e in this)this.hasOwnProperty(e)&&this[e].on(r,null);return this}},t.event=null,t.requote=function(e){return e.replace(U,"\\$&")};var U=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,W={}.__proto__?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)e[n]=t[n]};function q(e){return W(e,K),e}var $=function(e,t){return t.querySelector(e)},G=function(e,t){return t.querySelectorAll(e)},Y=function(e,t){var n=e.matches||e[I(e,"matchesSelector")];return Y=function(e,t){return n.call(e,t)},Y(e,t)};"function"===typeof Sizzle&&($=function(e,t){return Sizzle(e,t)[0]||null},G=Sizzle,Y=Sizzle.matchesSelector),t.selection=function(){return t.select(o.documentElement)};var K=t.selection.prototype=[];function X(e){return"function"===typeof e?e:function(){return $(e,this)}}function Z(e){return"function"===typeof e?e:function(){return G(e,this)}}K.select=function(e){var t,n,r,a,o=[];e=X(e);for(var i=-1,l=this.length;++i<l;){o.push(t=[]),t.parentNode=(r=this[i]).parentNode;for(var s=-1,u=r.length;++s<u;)(a=r[s])?(t.push(n=e.call(a,a.__data__,s,i)),n&&"__data__"in a&&(n.__data__=a.__data__)):t.push(null)}return q(o)},K.selectAll=function(e){var t,n,r=[];e=Z(e);for(var o=-1,i=this.length;++o<i;)for(var l=this[o],s=-1,u=l.length;++s<u;)(n=l[s])&&(r.push(t=a(e.call(n,n.__data__,s,o))),t.parentNode=n);return q(r)};var J="http://www.w3.org/1999/xhtml",Q={svg:"http://www.w3.org/2000/svg",xhtml:J,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ee(e,n){function r(){this.removeAttribute(e)}function a(){this.removeAttributeNS(e.space,e.local)}function o(){this.setAttribute(e,n)}function i(){this.setAttributeNS(e.space,e.local,n)}function l(){var t=n.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}function s(){var t=n.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}return e=t.ns.qualify(e),null==n?e.local?a:r:"function"===typeof n?e.local?s:l:e.local?i:o}function te(e){return e.trim().replace(/\s+/g," ")}function ne(e){return new RegExp("(?:^|\\s+)"+t.requote(e)+"(?:\\s+|$)","g")}function re(e){return(e+"").trim().split(/^|\s+/)}function ae(e,t){e=re(e).map(oe);var n=e.length;function r(){var r=-1;while(++r<n)e[r](this,t)}function a(){var r=-1,a=t.apply(this,arguments);while(++r<n)e[r](this,a)}return"function"===typeof t?a:r}function oe(e){var t=ne(e);return function(n,r){if(a=n.classList)return r?a.add(e):a.remove(e);var a=n.getAttribute("class")||"";r?(t.lastIndex=0,t.test(a)||n.setAttribute("class",te(a+" "+e))):n.setAttribute("class",te(a.replace(t," ")))}}function ie(e,t,n){function r(){this.style.removeProperty(e)}function a(){this.style.setProperty(e,t,n)}function o(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}return null==t?r:"function"===typeof t?o:a}function le(e,t){function n(){delete this[e]}function r(){this[e]=t}function a(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}return null==t?n:"function"===typeof t?a:r}function se(e){function n(){var t=this.ownerDocument,n=this.namespaceURI;return n===J&&t.documentElement.namespaceURI===J?t.createElement(e):t.createElementNS(n,e)}function r(){return this.ownerDocument.createElementNS(e.space,e.local)}return"function"===typeof e?e:(e=t.ns.qualify(e)).local?r:n}function ue(){var e=this.parentNode;e&&e.removeChild(this)}function ce(e){return{__data__:e}}function fe(e){return function(){return Y(this,e)}}function pe(e){return arguments.length||(e=d),function(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}}function de(e,t){for(var n=0,r=e.length;n<r;n++)for(var a,o=e[n],i=0,l=o.length;i<l;i++)(a=o[i])&&t(a,i,n);return e}function he(e){return W(e,ve),e}t.ns={prefix:Q,qualify:function(e){var t=e.indexOf(":"),n=e;return t>=0&&"xmlns"!==(n=e.slice(0,t))&&(e=e.slice(t+1)),Q.hasOwnProperty(n)?{space:Q[n],local:e}:e}},K.attr=function(e,n){if(arguments.length<2){if("string"===typeof e){var r=this.node();return e=t.ns.qualify(e),e.local?r.getAttributeNS(e.space,e.local):r.getAttribute(e)}for(n in e)this.each(ee(n,e[n]));return this}return this.each(ee(e,n))},K.classed=function(e,t){if(arguments.length<2){if("string"===typeof e){var n=this.node(),r=(e=re(e)).length,a=-1;if(t=n.classList){while(++a<r)if(!t.contains(e[a]))return!1}else{t=n.getAttribute("class");while(++a<r)if(!ne(e[a]).test(t))return!1}return!0}for(t in e)this.each(ae(t,e[t]));return this}return this.each(ae(e,t))},K.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!==typeof e){for(n in r<2&&(t=""),e)this.each(ie(n,e[n],t));return this}if(r<2){var a=this.node();return l(a).getComputedStyle(a,null).getPropertyValue(e)}n=""}return this.each(ie(e,t,n))},K.property=function(e,t){if(arguments.length<2){if("string"===typeof e)return this.node()[e];for(t in e)this.each(le(t,e[t]));return this}return this.each(le(e,t))},K.text=function(e){return arguments.length?this.each("function"===typeof e?function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}:null==e?function(){this.textContent=""}:function(){this.textContent=e}):this.node().textContent},K.html=function(e){return arguments.length?this.each("function"===typeof e?function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}:null==e?function(){this.innerHTML=""}:function(){this.innerHTML=e}):this.node().innerHTML},K.append=function(e){return e=se(e),this.select((function(){return this.appendChild(e.apply(this,arguments))}))},K.insert=function(e,t){return e=se(e),t=X(t),this.select((function(){return this.insertBefore(e.apply(this,arguments),t.apply(this,arguments)||null)}))},K.remove=function(){return this.each(ue)},K.data=function(e,t){var n,r,a=-1,o=this.length;if(!arguments.length){e=new Array(o=(n=this[0]).length);while(++a<o)(r=n[a])&&(e[a]=r.__data__);return e}function i(e,n){var r,a,o,i=e.length,c=n.length,f=Math.min(i,c),p=new Array(c),d=new Array(c),h=new Array(i);if(t){var v,m=new w,y=new Array(i);for(r=-1;++r<i;)(a=e[r])&&(m.has(v=t.call(a,a.__data__,r))?h[r]=a:m.set(v,a),y[r]=v);for(r=-1;++r<c;)(a=m.get(v=t.call(n,o=n[r],r)))?!0!==a&&(p[r]=a,a.__data__=o):d[r]=ce(o),m.set(v,!0);for(r=-1;++r<i;)r in y&&!0!==m.get(y[r])&&(h[r]=e[r])}else{for(r=-1;++r<f;)a=e[r],o=n[r],a?(a.__data__=o,p[r]=a):d[r]=ce(o);for(;r<c;++r)d[r]=ce(n[r]);for(;r<i;++r)h[r]=e[r]}d.update=p,d.parentNode=p.parentNode=h.parentNode=e.parentNode,l.push(d),s.push(p),u.push(h)}var l=he([]),s=q([]),u=q([]);if("function"===typeof e)while(++a<o)i(n=this[a],e.call(n,n.parentNode.__data__,a));else while(++a<o)i(n=this[a],e);return s.enter=function(){return l},s.exit=function(){return u},s},K.datum=function(e){return arguments.length?this.property("__data__",e):this.property("__data__")},K.filter=function(e){var t,n,r,a=[];"function"!==typeof e&&(e=fe(e));for(var o=0,i=this.length;o<i;o++){a.push(t=[]),t.parentNode=(n=this[o]).parentNode;for(var l=0,s=n.length;l<s;l++)(r=n[l])&&e.call(r,r.__data__,l,o)&&t.push(r)}return q(a)},K.order=function(){for(var e=-1,t=this.length;++e<t;)for(var n,r=this[e],a=r.length-1,o=r[a];--a>=0;)(n=r[a])&&(o&&o!==n.nextSibling&&o.parentNode.insertBefore(n,o),o=n);return this},K.sort=function(e){e=pe.apply(this,arguments);for(var t=-1,n=this.length;++t<n;)this[t].sort(e);return this.order()},K.each=function(e){return de(this,(function(t,n,r){e.call(t,t.__data__,n,r)}))},K.call=function(e){var t=a(arguments);return e.apply(t[0]=this,t),this},K.empty=function(){return!this.node()},K.node=function(){for(var e=0,t=this.length;e<t;e++)for(var n=this[e],r=0,a=n.length;r<a;r++){var o=n[r];if(o)return o}return null},K.size=function(){var e=0;return de(this,(function(){++e})),e};var ve=[];function me(e){var t,n;return function(r,a,o){var i,l=e[o].update,s=l.length;o!=n&&(n=o,t=0),a>=t&&(t=a+1);while(!(i=l[t])&&++t<s);return i}}function ye(e,n,r){var o="__on"+e,i=e.indexOf("."),l=be;i>0&&(e=e.slice(0,i));var s=ge.get(e);function u(){var t=this[o];t&&(this.removeEventListener(e,t,t.$),delete this[o])}function c(){var t=l(n,a(arguments));u.call(this),this.addEventListener(e,this[o]=t,t.$=r),t._=n}function f(){var n,r=new RegExp("^__on([^.]+)"+t.requote(e)+"$");for(var a in this)if(n=a.match(r)){var o=this[a];this.removeEventListener(n[1],o,o.$),delete this[a]}}return s&&(e=s,l=xe),i?n?c:u:n?z:f}t.selection.enter=he,t.selection.enter.prototype=ve,ve.append=K.append,ve.empty=K.empty,ve.node=K.node,ve.call=K.call,ve.size=K.size,ve.select=function(e){for(var t,n,r,a,o,i=[],l=-1,s=this.length;++l<s;){r=(a=this[l]).update,i.push(t=[]),t.parentNode=a.parentNode;for(var u=-1,c=a.length;++u<c;)(o=a[u])?(t.push(r[u]=n=e.call(a.parentNode,o.__data__,u,l)),n.__data__=o.__data__):t.push(null)}return q(i)},ve.insert=function(e,t){return arguments.length<2&&(t=me(this)),K.insert.call(this,e,t)},t.select=function(e){var t;return"string"===typeof e?(t=[$(e,o)],t.parentNode=o.documentElement):(t=[e],t.parentNode=i(e)),q([t])},t.selectAll=function(e){var t;return"string"===typeof e?(t=a(G(e,o)),t.parentNode=o.documentElement):(t=a(e),t.parentNode=null),q([t])},K.on=function(e,t,n){var r=arguments.length;if(r<3){if("string"!==typeof e){for(n in r<2&&(t=!1),e)this.each(ye(n,e[n],t));return this}if(r<2)return(r=this.node()["__on"+e])&&r._;n=!1}return this.each(ye(e,t,n))};var ge=t.map({mouseenter:"mouseover",mouseleave:"mouseout"});function be(e,n){return function(r){var a=t.event;t.event=r,n[0]=this.__data__;try{e.apply(this,n)}finally{t.event=a}}}function xe(e,t){var n=be(e,t);return function(e){var t=this,r=e.relatedTarget;r&&(r===t||8&r.compareDocumentPosition(t))||n.call(t,e)}}o&&ge.forEach((function(e){"on"+e in o&&ge.remove(e)}));var _e,we=0;function ke(e){var n=".dragsuppress-"+ ++we,r="click"+n,a=t.select(l(e)).on("touchmove"+n,B).on("dragstart"+n,B).on("selectstart"+n,B);if(null==_e&&(_e=!("onselectstart"in e)&&I(e.style,"userSelect")),_e){var o=i(e).style,s=o[_e];o[_e]="none"}return function(e){if(a.on(n,null),_e&&(o[_e]=s),e){var t=function(){a.on(r,null)};a.on(r,(function(){B(),t()}),!0),setTimeout(t,0)}}}t.mouse=function(e){return Ee(e,V())};var Te=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;function Ee(e,n){n.changedTouches&&(n=n.changedTouches[0]);var r=e.ownerSVGElement||e;if(r.createSVGPoint){var a=r.createSVGPoint();if(Te<0){var o=l(e);if(o.scrollX||o.scrollY){r=t.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=r[0][0].getScreenCTM();Te=!(i.f||i.e),r.remove()}}return Te?(a.x=n.pageX,a.y=n.pageY):(a.x=n.clientX,a.y=n.clientY),a=a.matrixTransform(e.getScreenCTM().inverse()),[a.x,a.y]}var s=e.getBoundingClientRect();return[n.clientX-s.left-e.clientLeft,n.clientY-s.top-e.clientTop]}function Oe(){return t.event.changedTouches[0].identifier}t.touch=function(e,t,n){if(arguments.length<3&&(n=t,t=V().changedTouches),t)for(var r,a=0,o=t.length;a<o;++a)if((r=t[a]).identifier===n)return Ee(e,r)},t.behavior.drag=function(){var e=H(o,"drag","dragstart","dragend"),n=null,r=i(z,t.mouse,l,"mousemove","mouseup"),a=i(Oe,t.touch,D,"touchmove","touchend");function o(){this.on("mousedown.drag",r).on("touchstart.drag",a)}function i(r,a,o,i,l){return function(){var s,u=this,c=t.event.target.correspondingElement||t.event.target,f=u.parentNode,p=e.of(u,arguments),d=0,h=r(),v=".drag"+(null==h?"":"-"+h),m=t.select(o(c)).on(i+v,b).on(l+v,x),y=ke(c),g=a(f,h);function b(){var e,t,n=a(f,h);n&&(e=n[0]-g[0],t=n[1]-g[1],d|=e|t,g=n,p({type:"drag",x:n[0]+s[0],y:n[1]+s[1],dx:e,dy:t}))}function x(){a(f,h)&&(m.on(i+v,null).on(l+v,null),y(d),p({type:"dragend"}))}n?(s=n.apply(u,arguments),s=[s.x-g[0],s.y-g[1]]):s=[0,0],p({type:"dragstart"})}}return o.origin=function(e){return arguments.length?(n=e,o):n},t.rebind(o,e,"on")},t.touches=function(e,t){return arguments.length<2&&(t=V().touches),t?a(t).map((function(t){var n=Ee(e,t);return n.identifier=t.identifier,n})):[]};var Me=1e-6,Se=Me*Me,Ce=Math.PI,Ae=2*Ce,Pe=Ae-Me,Le=Ce/2,De=Ce/180,je=180/Ce;function Ie(e){return e>0?1:e<0?-1:0}function Re(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])}function ze(e){return e>1?0:e<-1?Ce:Math.acos(e)}function Ne(e){return e>1?Le:e<-1?-Le:Math.asin(e)}function Fe(e){return((e=Math.exp(e))-1/e)/2}function Be(e){return((e=Math.exp(e))+1/e)/2}function Ve(e){return((e=Math.exp(2*e))-1)/(e+1)}function He(e){return(e=Math.sin(e/2))*e}var Ue=Math.SQRT2,We=2,qe=4;t.interpolateZoom=function(e,t){var n,r,a=e[0],o=e[1],i=e[2],l=t[0],s=t[1],u=t[2],c=l-a,f=s-o,p=c*c+f*f;if(p<Se)r=Math.log(u/i)/Ue,n=function(e){return[a+e*c,o+e*f,i*Math.exp(Ue*e*r)]};else{var d=Math.sqrt(p),h=(u*u-i*i+qe*p)/(2*i*We*d),v=(u*u-i*i-qe*p)/(2*u*We*d),m=Math.log(Math.sqrt(h*h+1)-h),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-m)/Ue,n=function(e){var t=e*r,n=Be(m),l=i/(We*d)*(n*Ve(Ue*t+m)-Fe(m));return[a+l*c,o+l*f,i*n/Be(Ue*t+m)]}}return n.duration=1e3*r,n},t.behavior.zoom=function(){var e,n,r,a,i,s,u,c,f,p={x:0,y:0,k:1},d=[960,500],h=Ye,v=250,m=0,y="mousedown.zoom",g="mousemove.zoom",b="mouseup.zoom",x="touchstart.zoom",_=H(w,"zoomstart","zoom","zoomend");function w(e){e.on(y,L).on(Ge+".zoom",j).on("dblclick.zoom",I).on(x,D)}function k(e){return[(e[0]-p.x)/p.k,(e[1]-p.y)/p.k]}function T(e){return[e[0]*p.k+p.x,e[1]*p.k+p.y]}function E(e){p.k=Math.max(h[0],Math.min(h[1],e))}function O(e,t){t=T(t),p.x+=e[0]-t[0],p.y+=e[1]-t[1]}function M(e,r,a,o){e.__chart__={x:p.x,y:p.y,k:p.k},E(Math.pow(2,o)),O(n=r,a),e=t.select(e),v>0&&(e=e.transition().duration(v)),e.call(w.event)}function S(){u&&u.domain(s.range().map((function(e){return(e-p.x)/p.k})).map(s.invert)),f&&f.domain(c.range().map((function(e){return(e-p.y)/p.k})).map(c.invert))}function C(e){m++||e({type:"zoomstart"})}function A(e){S(),e({type:"zoom",scale:p.k,translate:[p.x,p.y]})}function P(e){--m||(e({type:"zoomend"}),n=null)}function L(){var e=this,n=_.of(e,arguments),r=0,a=t.select(l(e)).on(g,s).on(b,u),o=k(t.mouse(e)),i=ke(e);function s(){r=1,O(t.mouse(e),o),A(n)}function u(){a.on(g,null).on(b,null),i(r),P(n)}Ms.call(e),C(n)}function D(){var e,n=this,r=_.of(n,arguments),a={},o=0,l=".zoom-"+t.event.changedTouches[0].identifier,s="touchmove"+l,u="touchend"+l,c=[],f=t.select(n),d=ke(n);function h(){var r=t.touches(n);return e=p.k,r.forEach((function(e){e.identifier in a&&(a[e.identifier]=k(e))})),r}function v(){var e=t.event.target;t.select(e).on(s,m).on(u,g),c.push(e);for(var r=t.event.changedTouches,l=0,f=r.length;l<f;++l)a[r[l].identifier]=null;var d=h(),v=Date.now();if(1===d.length){if(v-i<500){var y=d[0];M(n,y,a[y.identifier],Math.floor(Math.log(p.k)/Math.LN2)+1),B()}i=v}else if(d.length>1){y=d[0];var b=d[1],x=y[0]-b[0],_=y[1]-b[1];o=x*x+_*_}}function m(){var l,s,u,c,f=t.touches(n);Ms.call(n);for(var p=0,d=f.length;p<d;++p,c=null)if(u=f[p],c=a[u.identifier]){if(s)break;l=u,s=c}if(c){var h=(h=u[0]-l[0])*h+(h=u[1]-l[1])*h,v=o&&Math.sqrt(h/o);l=[(l[0]+u[0])/2,(l[1]+u[1])/2],s=[(s[0]+c[0])/2,(s[1]+c[1])/2],E(v*e)}i=null,O(l,s),A(r)}function g(){if(t.event.touches.length){for(var e=t.event.changedTouches,n=0,o=e.length;n<o;++n)delete a[e[n].identifier];for(var i in a)return void h()}t.selectAll(c).on(l,null),f.on(y,L).on(x,D),d(),P(r)}v(),C(r),f.on(y,null).on(x,v)}function j(){var o=_.of(this,arguments);a?clearTimeout(a):(Ms.call(this),e=k(n=r||t.mouse(this)),C(o)),a=setTimeout((function(){a=null,P(o)}),50),B(),E(Math.pow(2,.002*$e())*p.k),O(n,e),A(o)}function I(){var e=t.mouse(this),n=Math.log(p.k)/Math.LN2;M(this,e,k(e),t.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}return Ge||(Ge="onwheel"in o?($e=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},"wheel"):"onmousewheel"in o?($e=function(){return t.event.wheelDelta},"mousewheel"):($e=function(){return-t.event.detail},"MozMousePixelScroll")),w.event=function(e){e.each((function(){var e=_.of(this,arguments),r=p;As?t.select(this).transition().each("start.zoom",(function(){p=this.__chart__||{x:0,y:0,k:1},C(e)})).tween("zoom:zoom",(function(){var a=d[0],o=d[1],i=n?n[0]:a/2,l=n?n[1]:o/2,s=t.interpolateZoom([(i-p.x)/p.k,(l-p.y)/p.k,a/p.k],[(i-r.x)/r.k,(l-r.y)/r.k,a/r.k]);return function(t){var n=s(t),r=a/n[2];this.__chart__=p={x:i-n[0]*r,y:l-n[1]*r,k:r},A(e)}})).each("interrupt.zoom",(function(){P(e)})).each("end.zoom",(function(){P(e)})):(this.__chart__=p,C(e),A(e),P(e))}))},w.translate=function(e){return arguments.length?(p={x:+e[0],y:+e[1],k:p.k},S(),w):[p.x,p.y]},w.scale=function(e){return arguments.length?(p={x:p.x,y:p.y,k:null},E(+e),S(),w):p.k},w.scaleExtent=function(e){return arguments.length?(h=null==e?Ye:[+e[0],+e[1]],w):h},w.center=function(e){return arguments.length?(r=e&&[+e[0],+e[1]],w):r},w.size=function(e){return arguments.length?(d=e&&[+e[0],+e[1]],w):d},w.duration=function(e){return arguments.length?(v=+e,w):v},w.x=function(e){return arguments.length?(u=e,s=e.copy(),p={x:0,y:0,k:1},w):u},w.y=function(e){return arguments.length?(f=e,c=e.copy(),p={x:0,y:0,k:1},w):f},t.rebind(w,_,"on")};var $e,Ge,Ye=[0,1/0];function Ke(){}function Xe(e,t,n){return this instanceof Xe?(this.h=+e,this.s=+t,void(this.l=+n)):arguments.length<2?e instanceof Xe?new Xe(e.h,e.s,e.l):gt(""+e,bt,Xe):new Xe(e,t,n)}t.color=Ke,Ke.prototype.toString=function(){return this.rgb()+""},t.hsl=Xe;var Ze=Xe.prototype=new Ke;function Je(e,t,n){var r,a;function o(e){return e>360?e-=360:e<0&&(e+=360),e<60?r+(a-r)*e/60:e<180?a:e<240?r+(a-r)*(240-e)/60:r}function i(e){return Math.round(255*o(e))}return e=isNaN(e)?0:(e%=360)<0?e+360:e,t=isNaN(t)||t<0?0:t>1?1:t,n=n<0?0:n>1?1:n,a=n<=.5?n*(1+t):n+t-n*t,r=2*n-a,new dt(i(e+120),i(e),i(e-120))}function Qe(e,n,r){return this instanceof Qe?(this.h=+e,this.c=+n,void(this.l=+r)):arguments.length<2?e instanceof Qe?new Qe(e.h,e.c,e.l):ut(e instanceof nt?e.l:(e=xt((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Qe(e,n,r)}Ze.brighter=function(e){return e=Math.pow(.7,arguments.length?e:1),new Xe(this.h,this.s,this.l/e)},Ze.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new Xe(this.h,this.s,e*this.l)},Ze.rgb=function(){return Je(this.h,this.s,this.l)},t.hcl=Qe;var et=Qe.prototype=new Ke;function tt(e,t,n){return isNaN(e)&&(e=0),isNaN(t)&&(t=0),new nt(n,Math.cos(e*=De)*t,Math.sin(e)*t)}function nt(e,t,n){return this instanceof nt?(this.l=+e,this.a=+t,void(this.b=+n)):arguments.length<2?e instanceof nt?new nt(e.l,e.a,e.b):e instanceof Qe?tt(e.h,e.c,e.l):xt((e=dt(e)).r,e.g,e.b):new nt(e,t,n)}et.brighter=function(e){return new Qe(this.h,this.c,Math.min(100,this.l+rt*(arguments.length?e:1)))},et.darker=function(e){return new Qe(this.h,this.c,Math.max(0,this.l-rt*(arguments.length?e:1)))},et.rgb=function(){return tt(this.h,this.c,this.l).rgb()},t.lab=nt;var rt=18,at=.95047,ot=1,it=1.08883,lt=nt.prototype=new Ke;function st(e,t,n){var r=(e+16)/116,a=r+t/500,o=r-n/200;return a=ct(a)*at,r=ct(r)*ot,o=ct(o)*it,new dt(pt(3.2404542*a-1.5371385*r-.4985314*o),pt(-.969266*a+1.8760108*r+.041556*o),pt(.0556434*a-.2040259*r+1.0572252*o))}function ut(e,t,n){return e>0?new Qe(Math.atan2(n,t)*je,Math.sqrt(t*t+n*n),e):new Qe(NaN,NaN,e)}function ct(e){return e>.206893034?e*e*e:(e-4/29)/7.787037}function ft(e){return e>.008856?Math.pow(e,1/3):7.787037*e+4/29}function pt(e){return Math.round(255*(e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055))}function dt(e,t,n){return this instanceof dt?(this.r=~~e,this.g=~~t,void(this.b=~~n)):arguments.length<2?e instanceof dt?new dt(e.r,e.g,e.b):gt(""+e,dt,Je):new dt(e,t,n)}function ht(e){return new dt(e>>16,e>>8&255,255&e)}function vt(e){return ht(e)+""}lt.brighter=function(e){return new nt(Math.min(100,this.l+rt*(arguments.length?e:1)),this.a,this.b)},lt.darker=function(e){return new nt(Math.max(0,this.l-rt*(arguments.length?e:1)),this.a,this.b)},lt.rgb=function(){return st(this.l,this.a,this.b)},t.rgb=dt;var mt=dt.prototype=new Ke;function yt(e){return e<16?"0"+Math.max(0,e).toString(16):Math.min(255,e).toString(16)}function gt(e,t,n){var r,a,o,i=0,l=0,s=0;if(r=/([a-z]+)\((.*)\)/.exec(e=e.toLowerCase()),r)switch(a=r[2].split(","),r[1]){case"hsl":return n(parseFloat(a[0]),parseFloat(a[1])/100,parseFloat(a[2])/100);case"rgb":return t(wt(a[0]),wt(a[1]),wt(a[2]))}return(o=kt.get(e))?t(o.r,o.g,o.b):(null==e||"#"!==e.charAt(0)||isNaN(o=parseInt(e.slice(1),16))||(4===e.length?(i=(3840&o)>>4,i|=i>>4,l=240&o,l|=l>>4,s=15&o,s|=s<<4):7===e.length&&(i=(16711680&o)>>16,l=(65280&o)>>8,s=255&o)),t(i,l,s))}function bt(e,t,n){var r,a,o=Math.min(e/=255,t/=255,n/=255),i=Math.max(e,t,n),l=i-o,s=(i+o)/2;return l?(a=s<.5?l/(i+o):l/(2-i-o),r=e==i?(t-n)/l+(t<n?6:0):t==i?(n-e)/l+2:(e-t)/l+4,r*=60):(r=NaN,a=s>0&&s<1?0:r),new Xe(r,a,s)}function xt(e,t,n){e=_t(e),t=_t(t),n=_t(n);var r=ft((.4124564*e+.3575761*t+.1804375*n)/at),a=ft((.2126729*e+.7151522*t+.072175*n)/ot),o=ft((.0193339*e+.119192*t+.9503041*n)/it);return nt(116*a-16,500*(r-a),200*(a-o))}function _t(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function wt(e){var t=parseFloat(e);return"%"===e.charAt(e.length-1)?Math.round(2.55*t):t}mt.brighter=function(e){e=Math.pow(.7,arguments.length?e:1);var t=this.r,n=this.g,r=this.b,a=30;return t||n||r?(t&&t<a&&(t=a),n&&n<a&&(n=a),r&&r<a&&(r=a),new dt(Math.min(255,t/e),Math.min(255,n/e),Math.min(255,r/e))):new dt(a,a,a)},mt.darker=function(e){return e=Math.pow(.7,arguments.length?e:1),new dt(e*this.r,e*this.g,e*this.b)},mt.hsl=function(){return bt(this.r,this.g,this.b)},mt.toString=function(){return"#"+yt(this.r)+yt(this.g)+yt(this.b)};var kt=t.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});function Tt(e){return"function"===typeof e?e:function(){return e}}function Et(e){return function(t,n,r){return 2===arguments.length&&"function"===typeof n&&(r=n,n=null),Ot(t,n,e,r)}}function Ot(e,n,r,o){var i={},l=t.dispatch("beforesend","progress","load","error"),s={},u=new XMLHttpRequest,c=null;function f(){var e,t=u.status;if(!t&&St(u)||t>=200&&t<300||304===t){try{e=r.call(i,u)}catch(au){return void l.error.call(i,au)}l.load.call(i,e)}else l.error.call(i,u)}return this.XDomainRequest&&!("withCredentials"in u)&&/^(http(s)?:)?\/\//.test(e)&&(u=new XDomainRequest),"onload"in u?u.onload=u.onerror=f:u.onreadystatechange=function(){u.readyState>3&&f()},u.onprogress=function(e){var n=t.event;t.event=e;try{l.progress.call(i,u)}finally{t.event=n}},i.header=function(e,t){return e=(e+"").toLowerCase(),arguments.length<2?s[e]:(null==t?delete s[e]:s[e]=t+"",i)},i.mimeType=function(e){return arguments.length?(n=null==e?null:e+"",i):n},i.responseType=function(e){return arguments.length?(c=e,i):c},i.response=function(e){return r=e,i},["get","post"].forEach((function(e){i[e]=function(){return i.send.apply(i,[e].concat(a(arguments)))}})),i.send=function(t,r,a){if(2===arguments.length&&"function"===typeof r&&(a=r,r=null),u.open(t,e,!0),null==n||"accept"in s||(s["accept"]=n+",*/*"),u.setRequestHeader)for(var o in s)u.setRequestHeader(o,s[o]);return null!=n&&u.overrideMimeType&&u.overrideMimeType(n),null!=c&&(u.responseType=c),null!=a&&i.on("error",a).on("load",(function(e){a(null,e)})),l.beforesend.call(i,u),u.send(null==r?null:r),i},i.abort=function(){return u.abort(),i},t.rebind(i,l,"on"),null==o?i:i.get(Mt(o))}function Mt(e){return 1===e.length?function(t,n){e(null==t?n:null)}:e}function St(e){var t=e.responseType;return t&&"text"!==t?e.response:e.responseText}kt.forEach((function(e,t){kt.set(e,ht(t))})),t.functor=Tt,t.xhr=Et(D),t.dsv=function(e,t){var n=new RegExp('["'+e+"\n]"),r=e.charCodeAt(0);function a(e,n,r){arguments.length<3&&(r=n,n=null);var a=Ot(e,t,null==n?o:i(n),r);return a.row=function(e){return arguments.length?a.response(null==(n=e)?o:i(e)):n},a}function o(e){return a.parse(e.responseText)}function i(e){return function(t){return a.parse(t.responseText,e)}}function l(t){return t.map(s).join(e)}function s(e){return n.test(e)?'"'+e.replace(/\"/g,'""')+'"':e}return a.parse=function(e,t){var n;return a.parseRows(e,(function(e,r){if(n)return n(e,r-1);var a=new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+"]"})).join(",")+"}");n=t?function(e,n){return t(a(e),n)}:a}))},a.parseRows=function(e,t){var n,a,o={},i={},l=[],s=e.length,u=0,c=0;function f(){if(u>=s)return i;if(a)return a=!1,o;var t=u;if(34===e.charCodeAt(t)){var n=t;while(n++<s)if(34===e.charCodeAt(n)){if(34!==e.charCodeAt(n+1))break;++n}u=n+2;var l=e.charCodeAt(n+1);return 13===l?(a=!0,10===e.charCodeAt(n+2)&&++u):10===l&&(a=!0),e.slice(t+1,n).replace(/""/g,'"')}while(u<s){l=e.charCodeAt(u++);var c=1;if(10===l)a=!0;else if(13===l)a=!0,10===e.charCodeAt(u)&&(++u,++c);else if(l!==r)continue;return e.slice(t,u-c)}return e.slice(t)}while((n=f())!==i){var p=[];while(n!==o&&n!==i)p.push(n),n=f();t&&null==(p=t(p,c++))||l.push(p)}return l},a.format=function(t){if(Array.isArray(t[0]))return a.formatRows(t);var n=new L,r=[];return t.forEach((function(e){for(var t in e)n.has(t)||r.push(n.add(t))})),[r.map(s).join(e)].concat(t.map((function(t){return r.map((function(e){return s(t[e])})).join(e)}))).join("\n")},a.formatRows=function(e){return e.map(l).join("\n")},a},t.csv=t.dsv(",","text/csv"),t.tsv=t.dsv("\t","text/tab-separated-values");var Ct,At,Pt,Lt,Dt=this[I(this,"requestAnimationFrame")]||function(e){setTimeout(e,17)};function jt(e,t,n){var r=arguments.length;r<2&&(t=0),r<3&&(n=Date.now());var a=n+t,o={c:e,t:a,n:null};return At?At.n=o:Ct=o,At=o,Pt||(Lt=clearTimeout(Lt),Pt=1,Dt(It)),o}function It(){var e=Rt(),t=zt()-e;t>24?(isFinite(t)&&(clearTimeout(Lt),Lt=setTimeout(It,t)),Pt=0):(Pt=1,Dt(It))}function Rt(){var e=Date.now(),t=Ct;while(t)e>=t.t&&t.c(e-t.t)&&(t.c=null),t=t.n;return e}function zt(){var e,t=Ct,n=1/0;while(t)t.c?(t.t<n&&(n=t.t),t=(e=t).n):t=e?e.n=t.n:Ct=t.n;return At=e,n}function Nt(e,t){return t-(e?Math.ceil(Math.log(e)/Math.LN10):1)}t.timer=function(){jt.apply(this,arguments)},t.timer.flush=function(){Rt(),zt()},t.round=function(e,t){return t?Math.round(e*(t=Math.pow(10,t)))/t:Math.round(e)};var Ft=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(Bt);function Bt(e,t){var n=Math.pow(10,3*b(8-t));return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}function Vt(e){var n=e.decimal,r=e.thousands,a=e.grouping,o=e.currency,i=a&&r?function(e,t){var n=e.length,o=[],i=0,l=a[0],s=0;while(n>0&&l>0){if(s+l+1>t&&(l=Math.max(1,t-s)),o.push(e.substring(n-=l,n+l)),(s+=l+1)>t)break;l=a[i=(i+1)%a.length]}return o.reverse().join(r)}:D;return function(e){var r=Ht.exec(e),a=r[1]||" ",l=r[2]||">",s=r[3]||"-",u=r[4]||"",c=r[5],f=+r[6],p=r[7],d=r[8],h=r[9],v=1,m="",y="",g=!1,b=!0;switch(d&&(d=+d.substring(1)),(c||"0"===a&&"="===l)&&(c=a="0",l="="),h){case"n":p=!0,h="g";break;case"%":v=100,y="%",h="f";break;case"p":v=100,y="%",h="r";break;case"b":case"o":case"x":case"X":"#"===u&&(m="0"+h.toLowerCase());case"c":b=!1;case"d":g=!0,d=0;break;case"s":v=-1,h="r";break}"$"===u&&(m=o[0],y=o[1]),"r"!=h||d||(h="g"),null!=d&&("g"==h?d=Math.max(1,Math.min(21,d)):"e"!=h&&"f"!=h||(d=Math.max(0,Math.min(20,d)))),h=Ut.get(h)||Wt;var x=c&&p;return function(e){var r=y;if(g&&e%1)return"";var o=e<0||0===e&&1/e<0?(e=-e,"-"):"-"===s?"":s;if(v<0){var u=t.formatPrefix(e,d);e=u.scale(e),r=u.symbol+y}else e*=v;e=h(e,d);var _,w,k=e.lastIndexOf(".");if(k<0){var T=b?e.lastIndexOf("e"):-1;T<0?(_=e,w=""):(_=e.substring(0,T),w=e.substring(T))}else _=e.substring(0,k),w=n+e.substring(k+1);!c&&p&&(_=i(_,1/0));var E=m.length+_.length+w.length+(x?0:o.length),O=E<f?new Array(E=f-E+1).join(a):"";return x&&(_=i(O+_,O.length?f-w.length:1/0)),o+=m,e=_+w,("<"===l?o+e+O:">"===l?O+o+e:"^"===l?O.substring(0,E>>=1)+o+e+O.substring(E):o+(x?e:O+e))+r}}}t.formatPrefix=function(e,n){var r=0;return(e=+e)&&(e<0&&(e*=-1),n&&(e=t.round(e,Nt(e,n))),r=1+Math.floor(1e-12+Math.log(e)/Math.LN10),r=Math.max(-24,Math.min(24,3*Math.floor((r-1)/3)))),Ft[8+r/3]};var Ht=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Ut=t.map({b:function(e){return e.toString(2)},c:function(e){return String.fromCharCode(e)},o:function(e){return e.toString(8)},x:function(e){return e.toString(16)},X:function(e){return e.toString(16).toUpperCase()},g:function(e,t){return e.toPrecision(t)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},r:function(e,n){return(e=t.round(e,Nt(e,n))).toFixed(Math.max(0,Math.min(20,Nt(e*(1+1e-15),n))))}});function Wt(e){return e+""}var qt=t.time={},$t=Date;function Gt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}Gt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){Yt.setUTCDate.apply(this._,arguments)},setDay:function(){Yt.setUTCDay.apply(this._,arguments)},setFullYear:function(){Yt.setUTCFullYear.apply(this._,arguments)},setHours:function(){Yt.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){Yt.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){Yt.setUTCMinutes.apply(this._,arguments)},setMonth:function(){Yt.setUTCMonth.apply(this._,arguments)},setSeconds:function(){Yt.setUTCSeconds.apply(this._,arguments)},setTime:function(){Yt.setTime.apply(this._,arguments)}};var Yt=Date.prototype;function Kt(e,t,n){function r(t){var n=e(t),r=o(n,1);return t-n<r-t?n:r}function a(n){return t(n=e(new $t(n-1)),1),n}function o(e,n){return t(e=new $t(+e),n),e}function i(e,r,o){var i=a(e),l=[];if(o>1)while(i<r)n(i)%o||l.push(new Date(+i)),t(i,1);else while(i<r)l.push(new Date(+i)),t(i,1);return l}function l(e,t,n){try{$t=Gt;var r=new Gt;return r._=e,i(r,t,n)}finally{$t=Date}}e.floor=e,e.round=r,e.ceil=a,e.offset=o,e.range=i;var s=e.utc=Xt(e);return s.floor=s,s.round=Xt(r),s.ceil=Xt(a),s.offset=Xt(o),s.range=l,e}function Xt(e){return function(t,n){try{$t=Gt;var r=new Gt;return r._=t,e(r,n)._}finally{$t=Date}}}function Zt(e){var n=e.dateTime,r=e.date,a=e.time,o=e.periods,i=e.days,l=e.shortDays,s=e.months,u=e.shortMonths;function c(e){var t=e.length;function n(n){var r,a,o,i=[],l=-1,s=0;while(++l<t)37===e.charCodeAt(l)&&(i.push(e.slice(s,l)),null!=(a=Jt[r=e.charAt(++l)])&&(r=e.charAt(++l)),(o=_[r])&&(r=o(n,null==a?"e"===r?" ":"0":a)),i.push(r),s=l+1);return i.push(e.slice(s,l)),i.join("")}return n.parse=function(t){var n={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},r=f(n,e,t,0);if(r!=t.length)return null;"p"in n&&(n.H=n.H%12+12*n.p);var a=null!=n.Z&&$t!==Gt,o=new(a?Gt:$t);return"j"in n?o.setFullYear(n.y,0,n.j):"W"in n||"U"in n?("w"in n||(n.w="W"in n?1:0),o.setFullYear(n.y,0,1),o.setFullYear(n.y,0,"W"in n?(n.w+6)%7+7*n.W-(o.getDay()+5)%7:n.w+7*n.U-(o.getDay()+6)%7)):o.setFullYear(n.y,n.m,n.d),o.setHours(n.H+(n.Z/100|0),n.M+n.Z%100,n.S,n.L),a?o._:o},n.toString=function(){return e},n}function f(e,t,n,r){var a,o,i,l=0,s=t.length,u=n.length;while(l<s){if(r>=u)return-1;if(a=t.charCodeAt(l++),37===a){if(i=t.charAt(l++),o=w[i in Jt?t.charAt(l++):i],!o||(r=o(e,n,r))<0)return-1}else if(a!=n.charCodeAt(r++))return-1}return r}c.utc=function(e){var t=c(e);function n(e){try{$t=Gt;var n=new $t;return n._=e,t(n)}finally{$t=Date}}return n.parse=function(e){try{$t=Gt;var n=t.parse(e);return n&&n._}finally{$t=Date}},n.toString=t.toString,n},c.multi=c.utc.multi=_n;var p=t.map(),d=nn(i),h=rn(i),v=nn(l),m=rn(l),y=nn(s),g=rn(s),b=nn(u),x=rn(u);o.forEach((function(e,t){p.set(e.toLowerCase(),t)}));var _={a:function(e){return l[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:c(n),d:function(e,t){return tn(e.getDate(),t,2)},e:function(e,t){return tn(e.getDate(),t,2)},H:function(e,t){return tn(e.getHours(),t,2)},I:function(e,t){return tn(e.getHours()%12||12,t,2)},j:function(e,t){return tn(1+qt.dayOfYear(e),t,3)},L:function(e,t){return tn(e.getMilliseconds(),t,3)},m:function(e,t){return tn(e.getMonth()+1,t,2)},M:function(e,t){return tn(e.getMinutes(),t,2)},p:function(e){return o[+(e.getHours()>=12)]},S:function(e,t){return tn(e.getSeconds(),t,2)},U:function(e,t){return tn(qt.sundayOfYear(e),t,2)},w:function(e){return e.getDay()},W:function(e,t){return tn(qt.mondayOfYear(e),t,2)},x:c(r),X:c(a),y:function(e,t){return tn(e.getFullYear()%100,t,2)},Y:function(e,t){return tn(e.getFullYear()%1e4,t,4)},Z:bn,"%":function(){return"%"}},w={a:k,A:T,b:E,B:O,c:M,d:dn,e:dn,H:vn,I:vn,j:hn,L:gn,m:pn,M:mn,p:A,S:yn,U:on,w:an,W:ln,x:S,X:C,y:un,Y:sn,Z:cn,"%":xn};function k(e,t,n){v.lastIndex=0;var r=v.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function T(e,t,n){d.lastIndex=0;var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){b.lastIndex=0;var r=b.exec(t.slice(n));return r?(e.m=x.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){y.lastIndex=0;var r=y.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function M(e,t,n){return f(e,_.c.toString(),t,n)}function S(e,t,n){return f(e,_.x.toString(),t,n)}function C(e,t,n){return f(e,_.X.toString(),t,n)}function A(e,t,n){var r=p.get(t.slice(n,n+=2).toLowerCase());return null==r?-1:(e.p=r,n)}return c}qt.year=Kt((function(e){return e=qt.day(e),e.setMonth(0,1),e}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e){return e.getFullYear()})),qt.years=qt.year.range,qt.years.utc=qt.year.utc.range,qt.day=Kt((function(e){var t=new $t(2e3,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t}),(function(e,t){e.setDate(e.getDate()+t)}),(function(e){return e.getDate()-1})),qt.days=qt.day.range,qt.days.utc=qt.day.utc.range,qt.dayOfYear=function(e){var t=qt.year(e);return Math.floor((e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((function(e,t){t=7-t;var n=qt[e]=Kt((function(e){return(e=qt.day(e)).setDate(e.getDate()-(e.getDay()+t)%7),e}),(function(e,t){e.setDate(e.getDate()+7*Math.floor(t))}),(function(e){var n=qt.year(e).getDay();return Math.floor((qt.dayOfYear(e)+(n+t)%7)/7)-(n!==t)}));qt[e+"s"]=n.range,qt[e+"s"].utc=n.utc.range,qt[e+"OfYear"]=function(e){var n=qt.year(e).getDay();return Math.floor((qt.dayOfYear(e)+(n+t)%7)/7)}})),qt.week=qt.sunday,qt.weeks=qt.sunday.range,qt.weeks.utc=qt.sunday.utc.range,qt.weekOfYear=qt.sundayOfYear;var Jt={"-":"",_:" ",0:"0"},Qt=/^\s*\d+/,en=/^%/;function tn(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",o=a.length;return r+(o<n?new Array(n-o+1).join(t)+a:a)}function nn(e){return new RegExp("^(?:"+e.map(t.requote).join("|")+")","i")}function rn(e){var t=new w,n=-1,r=e.length;while(++n<r)t.set(e[n].toLowerCase(),n);return t}function an(e,t,n){Qt.lastIndex=0;var r=Qt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function on(e,t,n){Qt.lastIndex=0;var r=Qt.exec(t.slice(n));return r?(e.U=+r[0],n+r[0].length):-1}function ln(e,t,n){Qt.lastIndex=0;var r=Qt.exec(t.slice(n));return r?(e.W=+r[0],n+r[0].length):-1}function sn(e,t,n){Qt.lastIndex=0;var r=Qt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function un(e,t,n){Qt.lastIndex=0;var r=Qt.exec(t.slice(n,n+2));return r?(e.y=fn(+r[0]),n+r[0].length):-1}function cn(e,t,n){return/^[+-]\d{4}$/.test(t=t.slice(n,n+5))?(e.Z=-t,n+5):-1}function fn(e){return e+(e>68?1900:2e3)}function pn(e,t,n){Qt.lastIndex=0;var r=Qt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function dn(e,t,n){Qt.lastIndex=0;var r=Qt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function hn(e,t,n){Qt.lastIndex=0;var r=Qt.exec(t.slice(n,n+3));return r?(e.j=+r[0],n+r[0].length):-1}function vn(e,t,n){Qt.lastIndex=0;var r=Qt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function mn(e,t,n){Qt.lastIndex=0;var r=Qt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function yn(e,t,n){Qt.lastIndex=0;var r=Qt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function gn(e,t,n){Qt.lastIndex=0;var r=Qt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function bn(e){var t=e.getTimezoneOffset(),n=t>0?"-":"+",r=b(t)/60|0,a=b(t)%60;return n+tn(r,"0",2)+tn(a,"0",2)}function xn(e,t,n){en.lastIndex=0;var r=en.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function _n(e){var t=e.length,n=-1;while(++n<t)e[n][0]=this(e[n][0]);return function(t){var n=0,r=e[n];while(!r[1](t))r=e[++n];return r[0](t)}}t.locale=function(e){return{numberFormat:Vt(e),timeFormat:Zt(e)}};var wn=t.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function kn(){}t.format=wn.numberFormat,t.geo={},kn.prototype={s:0,t:0,add:function(e){En(e,this.t,Tn),En(Tn.s,this.s,this),this.s?this.t+=Tn.t:this.s=Tn.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Tn=new kn;function En(e,t,n){var r=n.s=e+t,a=r-e,o=r-a;n.t=e-o+(t-a)}function On(e,t){e&&Sn.hasOwnProperty(e.type)&&Sn[e.type](e,t)}t.geo.stream=function(e,t){e&&Mn.hasOwnProperty(e.type)?Mn[e.type](e,t):On(e,t)};var Mn={Feature:function(e,t){On(e.geometry,t)},FeatureCollection:function(e,t){var n=e.features,r=-1,a=n.length;while(++r<a)On(n[r].geometry,t)}},Sn={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){var n=e.coordinates,r=-1,a=n.length;while(++r<a)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){Cn(e.coordinates,t,0)},MultiLineString:function(e,t){var n=e.coordinates,r=-1,a=n.length;while(++r<a)Cn(n[r],t,0)},Polygon:function(e,t){An(e.coordinates,t)},MultiPolygon:function(e,t){var n=e.coordinates,r=-1,a=n.length;while(++r<a)An(n[r],t)},GeometryCollection:function(e,t){var n=e.geometries,r=-1,a=n.length;while(++r<a)On(n[r],t)}};function Cn(e,t,n){var r,a=-1,o=e.length-n;t.lineStart();while(++a<o)r=e[a],t.point(r[0],r[1],r[2]);t.lineEnd()}function An(e,t){var n=-1,r=e.length;t.polygonStart();while(++n<r)Cn(e[n],t,1);t.polygonEnd()}t.geo.area=function(e){return Pn=0,t.geo.stream(e,Wn),Pn};var Pn,Ln,Dn,jn,In,Rn,zn,Nn,Fn,Bn,Vn,Hn,Un=new kn,Wn={sphere:function(){Pn+=4*Ce},point:z,lineStart:z,lineEnd:z,polygonStart:function(){Un.reset(),Wn.lineStart=qn},polygonEnd:function(){var e=2*Un;Pn+=e<0?4*Ce+e:e,Wn.lineStart=Wn.lineEnd=Wn.point=z}};function qn(){var e,t,n,r,a;function o(e,t){e*=De,t=t*De/2+Ce/4;var o=e-n,i=o>=0?1:-1,l=i*o,s=Math.cos(t),u=Math.sin(t),c=a*u,f=r*s+c*Math.cos(l),p=c*i*Math.sin(l);Un.add(Math.atan2(p,f)),n=e,r=s,a=u}Wn.point=function(i,l){Wn.point=o,n=(e=i)*De,r=Math.cos(l=(t=l)*De/2+Ce/4),a=Math.sin(l)},Wn.lineEnd=function(){o(e,t)}}function $n(e){var t=e[0],n=e[1],r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function Gn(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Yn(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Kn(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Xn(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Zn(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Jn(e){return[Math.atan2(e[1],e[0]),Ne(e[2])]}function Qn(e,t){return b(e[0]-t[0])<Me&&b(e[1]-t[1])<Me}t.geo.bounds=function(){var e,n,r,a,o,i,l,s,u,c,f,p={point:d,lineStart:v,lineEnd:m,polygonStart:function(){p.point=y,p.lineStart=g,p.lineEnd=x,u=0,Wn.polygonStart()},polygonEnd:function(){Wn.polygonEnd(),p.point=d,p.lineStart=v,p.lineEnd=m,Un<0?(e=-(r=180),n=-(a=90)):u>Me?a=90:u<-Me&&(n=-90),f[0]=e,f[1]=r}};function d(t,o){c.push(f=[e=t,r=t]),o<n&&(n=o),o>a&&(a=o)}function h(t,i){var l=$n([t*De,i*De]);if(s){var u=Yn(s,l),c=[u[1],-u[0],0],f=Yn(c,u);Zn(f),f=Jn(f);var p=t-o,h=p>0?1:-1,v=f[0]*je*h,m=b(p)>180;if(m^(h*o<v&&v<h*t)){var y=f[1]*je;y>a&&(a=y)}else if(v=(v+360)%360-180,m^(h*o<v&&v<h*t)){y=-f[1]*je;y<n&&(n=y)}else i<n&&(n=i),i>a&&(a=i);m?t<o?_(e,t)>_(e,r)&&(r=t):_(t,r)>_(e,r)&&(e=t):r>=e?(t<e&&(e=t),t>r&&(r=t)):t>o?_(e,t)>_(e,r)&&(r=t):_(t,r)>_(e,r)&&(e=t)}else d(t,i);s=l,o=t}function v(){p.point=h}function m(){f[0]=e,f[1]=r,p.point=d,s=null}function y(e,t){if(s){var n=e-o;u+=b(n)>180?n+(n>0?360:-360):n}else i=e,l=t;Wn.point(e,t),h(e,t)}function g(){Wn.lineStart()}function x(){y(i,l),Wn.lineEnd(),b(u)>Me&&(e=-(r=180)),f[0]=e,f[1]=r,s=null}function _(e,t){return(t-=e)<0?t+360:t}function w(e,t){return e[0]-t[0]}function k(e,t){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}return function(o){a=r=-(e=n=1/0),c=[],t.geo.stream(o,p);var i=c.length;if(i){c.sort(w);for(var l=1,s=c[0],u=[s];l<i;++l)h=c[l],k(h[0],s)||k(h[1],s)?(_(s[0],h[1])>_(s[0],s[1])&&(s[1]=h[1]),_(h[0],s[1])>_(s[0],s[1])&&(s[0]=h[0])):u.push(s=h);var d,h,v=-1/0;for(i=u.length-1,l=0,s=u[i];l<=i;s=h,++l)h=u[l],(d=_(s[1],h[0]))>v&&(v=d,e=h[0],r=s[1])}return c=f=null,e===1/0||n===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,n],[r,a]]}}(),t.geo.centroid=function(e){Ln=Dn=jn=In=Rn=zn=Nn=Fn=Bn=Vn=Hn=0,t.geo.stream(e,er);var n=Bn,r=Vn,a=Hn,o=n*n+r*r+a*a;return o<Se&&(n=zn,r=Nn,a=Fn,Dn<Me&&(n=jn,r=In,a=Rn),o=n*n+r*r+a*a,o<Se)?[NaN,NaN]:[Math.atan2(r,n)*je,Ne(a/Math.sqrt(o))*je]};var er={sphere:z,point:tr,lineStart:rr,lineEnd:ar,polygonStart:function(){er.lineStart=or},polygonEnd:function(){er.lineStart=rr}};function tr(e,t){e*=De;var n=Math.cos(t*=De);nr(n*Math.cos(e),n*Math.sin(e),Math.sin(t))}function nr(e,t,n){++Ln,jn+=(e-jn)/Ln,In+=(t-In)/Ln,Rn+=(n-Rn)/Ln}function rr(){var e,t,n;function r(r,a){r*=De;var o=Math.cos(a*=De),i=o*Math.cos(r),l=o*Math.sin(r),s=Math.sin(a),u=Math.atan2(Math.sqrt((u=t*s-n*l)*u+(u=n*i-e*s)*u+(u=e*l-t*i)*u),e*i+t*l+n*s);Dn+=u,zn+=u*(e+(e=i)),Nn+=u*(t+(t=l)),Fn+=u*(n+(n=s)),nr(e,t,n)}er.point=function(a,o){a*=De;var i=Math.cos(o*=De);e=i*Math.cos(a),t=i*Math.sin(a),n=Math.sin(o),er.point=r,nr(e,t,n)}}function ar(){er.point=tr}function or(){var e,t,n,r,a;function o(e,t){e*=De;var o=Math.cos(t*=De),i=o*Math.cos(e),l=o*Math.sin(e),s=Math.sin(t),u=r*s-a*l,c=a*i-n*s,f=n*l-r*i,p=Math.sqrt(u*u+c*c+f*f),d=n*i+r*l+a*s,h=p&&-ze(d)/p,v=Math.atan2(p,d);Bn+=h*u,Vn+=h*c,Hn+=h*f,Dn+=v,zn+=v*(n+(n=i)),Nn+=v*(r+(r=l)),Fn+=v*(a+(a=s)),nr(n,r,a)}er.point=function(i,l){e=i,t=l,er.point=o,i*=De;var s=Math.cos(l*=De);n=s*Math.cos(i),r=s*Math.sin(i),a=Math.sin(l),nr(n,r,a)},er.lineEnd=function(){o(e,t),er.lineEnd=ar,er.point=tr}}function ir(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return n=t.invert(n,r),n&&e.invert(n[0],n[1])}),n}function lr(){return!0}function sr(e,t,n,r,a){var o=[],i=[];if(e.forEach((function(e){if(!((t=e.length-1)<=0)){var t,n=e[0],r=e[t];if(Qn(n,r)){a.lineStart();for(var l=0;l<t;++l)a.point((n=e[l])[0],n[1]);a.lineEnd()}else{var s=new cr(n,e,null,!0),u=new cr(n,null,s,!1);s.o=u,o.push(s),i.push(u),s=new cr(r,e,null,!1),u=new cr(r,null,s,!0),s.o=u,o.push(s),i.push(u)}}})),i.sort(t),ur(o),ur(i),o.length){for(var l=0,s=n,u=i.length;l<u;++l)i[l].e=s=!s;var c,f,p=o[0];while(1){var d=p,h=!0;while(d.v)if((d=d.n)===p)return;c=d.z,a.lineStart();do{if(d.v=d.o.v=!0,d.e){if(h)for(l=0,u=c.length;l<u;++l)a.point((f=c[l])[0],f[1]);else r(d.x,d.n.x,1,a);d=d.n}else{if(h){c=d.p.z;for(l=c.length-1;l>=0;--l)a.point((f=c[l])[0],f[1])}else r(d.x,d.p.x,-1,a);d=d.p}d=d.o,c=d.z,h=!h}while(!d.v);a.lineEnd()}}}function ur(e){if(t=e.length){var t,n,r=0,a=e[0];while(++r<t)a.n=n=e[r],n.p=a,a=n;a.n=n=e[0],n.p=a}}function cr(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function fr(e,n,r,a){return function(o,i){var l,s=n(i),u=o.invert(a[0],a[1]),c={point:f,lineStart:d,lineEnd:h,polygonStart:function(){c.point=x,c.lineStart=_,c.lineEnd=w,l=[],v=[]},polygonEnd:function(){c.point=f,c.lineStart=d,c.lineEnd=h,l=t.merge(l);var e=br(u,v);l.length?(b||(i.polygonStart(),b=!0),sr(l,hr,e,r,i)):e&&(b||(i.polygonStart(),b=!0),i.lineStart(),r(null,null,1,i),i.lineEnd()),b&&(i.polygonEnd(),b=!1),l=v=null},sphere:function(){i.polygonStart(),i.lineStart(),r(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(t,n){var r=o(t,n);e(t=r[0],n=r[1])&&i.point(t,n)}function p(e,t){var n=o(e,t);s.point(n[0],n[1])}function d(){c.point=p,s.lineStart()}function h(){c.point=f,s.lineEnd()}var v,m,y=dr(),g=n(y),b=!1;function x(e,t){m.push([e,t]);var n=o(e,t);g.point(n[0],n[1])}function _(){g.lineStart(),m=[]}function w(){x(m[0][0],m[0][1]),g.lineEnd();var e,t=g.clean(),n=y.buffer(),r=n.length;if(m.pop(),v.push(m),m=null,r)if(1&t){e=n[0];r=e.length-1;var a,o=-1;if(r>0){b||(i.polygonStart(),b=!0),i.lineStart();while(++o<r)i.point((a=e[o])[0],a[1]);i.lineEnd()}}else r>1&&2&t&&n.push(n.pop().concat(n.shift())),l.push(n.filter(pr))}return c}}function pr(e){return e.length>1}function dr(){var e,t=[];return{lineStart:function(){t.push(e=[])},point:function(t,n){e.push([t,n])},lineEnd:z,buffer:function(){var n=t;return t=[],e=null,n},rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))}}}function hr(e,t){return((e=e.x)[0]<0?e[1]-Le-Me:Le-e[1])-((t=t.x)[0]<0?t[1]-Le-Me:Le-t[1])}var vr=fr(lr,mr,gr,[-Ce,-Ce/2]);function mr(e){var t,n=NaN,r=NaN,a=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,i){var l=o>0?Ce:-Ce,s=b(o-n);b(s-Ce)<Me?(e.point(n,r=(r+i)/2>0?Le:-Le),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(l,r),e.point(o,r),t=0):a!==l&&s>=Ce&&(b(n-a)<Me&&(n-=a*Me),b(o-l)<Me&&(o-=l*Me),r=yr(n,r,o,i),e.point(a,r),e.lineEnd(),e.lineStart(),e.point(l,r),t=0),e.point(n=o,r=i),a=l},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}}function yr(e,t,n,r){var a,o,i=Math.sin(e-n);return b(i)>Me?Math.atan((Math.sin(t)*(o=Math.cos(r))*Math.sin(n)-Math.sin(r)*(a=Math.cos(t))*Math.sin(e))/(a*o*i)):(t+r)/2}function gr(e,t,n,r){var a;if(null==e)a=n*Le,r.point(-Ce,a),r.point(0,a),r.point(Ce,a),r.point(Ce,0),r.point(Ce,-a),r.point(0,-a),r.point(-Ce,-a),r.point(-Ce,0),r.point(-Ce,a);else if(b(e[0]-t[0])>Me){var o=e[0]<t[0]?Ce:-Ce;a=n*o/2,r.point(-o,a),r.point(0,a),r.point(o,a)}else r.point(t[0],t[1])}function br(e,t){var n=e[0],r=e[1],a=[Math.sin(n),-Math.cos(n),0],o=0,i=0;Un.reset();for(var l=0,s=t.length;l<s;++l){var u=t[l],c=u.length;if(c){var f=u[0],p=f[0],d=f[1]/2+Ce/4,h=Math.sin(d),v=Math.cos(d),m=1;while(1){m===c&&(m=0),e=u[m];var y=e[0],g=e[1]/2+Ce/4,b=Math.sin(g),x=Math.cos(g),_=y-p,w=_>=0?1:-1,k=w*_,T=k>Ce,E=h*b;if(Un.add(Math.atan2(E*w*Math.sin(k),v*x+E*Math.cos(k))),o+=T?_+w*Ae:_,T^p>=n^y>=n){var O=Yn($n(f),$n(e));Zn(O);var M=Yn(a,O);Zn(M);var S=(T^_>=0?-1:1)*Ne(M[2]);(r>S||r===S&&(O[0]||O[1]))&&(i+=T^_>=0?1:-1)}if(!m++)break;p=y,h=b,v=x,f=e}}}return(o<-Me||o<Me&&Un<-Me)^1&i}function xr(e){var t=Math.cos(e),n=t>0,r=b(t)>Me,a=aa(e,6*De);return fr(o,i,a,n?[0,-e]:[-Ce,e-Ce]);function o(e,n){return Math.cos(e)*Math.cos(n)>t}function i(e){var t,a,i,u,c;return{lineStart:function(){u=i=!1,c=1},point:function(f,p){var d,h=[f,p],v=o(f,p),m=n?v?0:s(f,p):v?s(f+(f<0?Ce:-Ce),p):0;if(!t&&(u=i=v)&&e.lineStart(),v!==i&&(d=l(t,h),(Qn(t,d)||Qn(h,d))&&(h[0]+=Me,h[1]+=Me,v=o(h[0],h[1]))),v!==i)c=0,v?(e.lineStart(),d=l(h,t),e.point(d[0],d[1])):(d=l(t,h),e.point(d[0],d[1]),e.lineEnd()),t=d;else if(r&&t&&n^v){var y;m&a||!(y=l(h,t,!0))||(c=0,n?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!v||t&&Qn(t,h)||e.point(h[0],h[1]),t=h,i=v,a=m},lineEnd:function(){i&&e.lineEnd(),t=null},clean:function(){return c|(u&&i)<<1}}}function l(e,n,r){var a=$n(e),o=$n(n),i=[1,0,0],l=Yn(a,o),s=Gn(l,l),u=l[0],c=s-u*u;if(!c)return!r&&e;var f=t*s/c,p=-t*u/c,d=Yn(i,l),h=Xn(i,f),v=Xn(l,p);Kn(h,v);var m=d,y=Gn(h,m),g=Gn(m,m),x=y*y-g*(Gn(h,h)-1);if(!(x<0)){var _=Math.sqrt(x),w=Xn(m,(-y-_)/g);if(Kn(w,h),w=Jn(w),!r)return w;var k,T=e[0],E=n[0],O=e[1],M=n[1];E<T&&(k=T,T=E,E=k);var S=E-T,C=b(S-Ce)<Me,A=C||S<Me;if(!C&&M<O&&(k=O,O=M,M=k),A?C?O+M>0^w[1]<(b(w[0]-T)<Me?O:M):O<=w[1]&&w[1]<=M:S>Ce^(T<=w[0]&&w[0]<=E)){var P=Xn(m,(-y+_)/g);return Kn(P,h),[w,Jn(P)]}}}function s(t,r){var a=n?e:Ce-e,o=0;return t<-a?o|=1:t>a&&(o|=2),r<-a?o|=4:r>a&&(o|=8),o}}function _r(e,t,n,r){return function(a){var o,i=a.a,l=a.b,s=i.x,u=i.y,c=l.x,f=l.y,p=0,d=1,h=c-s,v=f-u;if(o=e-s,h||!(o>0)){if(o/=h,h<0){if(o<p)return;o<d&&(d=o)}else if(h>0){if(o>d)return;o>p&&(p=o)}if(o=n-s,h||!(o<0)){if(o/=h,h<0){if(o>d)return;o>p&&(p=o)}else if(h>0){if(o<p)return;o<d&&(d=o)}if(o=t-u,v||!(o>0)){if(o/=v,v<0){if(o<p)return;o<d&&(d=o)}else if(v>0){if(o>d)return;o>p&&(p=o)}if(o=r-u,v||!(o<0)){if(o/=v,v<0){if(o>d)return;o>p&&(p=o)}else if(v>0){if(o<p)return;o<d&&(d=o)}return p>0&&(a.a={x:s+p*h,y:u+p*v}),d<1&&(a.b={x:s+d*h,y:u+d*v}),a}}}}}}var wr=1e9;function kr(e,n,r,a){return function(s){var u,c,f,p,d,h,v,m,y,g,b,x=s,_=dr(),w=_r(e,n,r,a),k={point:M,lineStart:S,lineEnd:C,polygonStart:function(){s=_,u=[],c=[],b=!0},polygonEnd:function(){s=x,u=t.merge(u);var n=T([e,a]),r=b&&n,o=u.length;(r||o)&&(s.polygonStart(),r&&(s.lineStart(),E(null,null,1,s),s.lineEnd()),o&&sr(u,i,n,E,s),s.polygonEnd()),u=c=f=null}};function T(e){for(var t=0,n=c.length,r=e[1],a=0;a<n;++a)for(var o,i=1,l=c[a],s=l.length,u=l[0];i<s;++i)o=l[i],u[1]<=r?o[1]>r&&Re(u,o,e)>0&&++t:o[1]<=r&&Re(u,o,e)<0&&--t,u=o;return 0!==t}function E(t,i,s,u){var c=0,f=0;if(null==t||(c=o(t,s))!==(f=o(i,s))||l(t,i)<0^s>0)do{u.point(0===c||3===c?e:r,c>1?a:n)}while((c=(c+s+4)%4)!==f);else u.point(i[0],i[1])}function O(t,o){return e<=t&&t<=r&&n<=o&&o<=a}function M(e,t){O(e,t)&&s.point(e,t)}function S(){k.point=A,c&&c.push(f=[]),g=!0,y=!1,v=m=NaN}function C(){u&&(A(p,d),h&&y&&_.rejoin(),u.push(_.buffer())),k.point=M,y&&s.lineEnd()}function A(e,t){e=Math.max(-wr,Math.min(wr,e)),t=Math.max(-wr,Math.min(wr,t));var n=O(e,t);if(c&&f.push([e,t]),g)p=e,d=t,h=n,g=!1,n&&(s.lineStart(),s.point(e,t));else if(n&&y)s.point(e,t);else{var r={a:{x:v,y:m},b:{x:e,y:t}};w(r)?(y||(s.lineStart(),s.point(r.a.x,r.a.y)),s.point(r.b.x,r.b.y),n||s.lineEnd(),b=!1):n&&(s.lineStart(),s.point(e,t),b=!1)}v=e,m=t,y=n}return k};function o(t,a){return b(t[0]-e)<Me?a>0?0:3:b(t[0]-r)<Me?a>0?2:1:b(t[1]-n)<Me?a>0?1:0:a>0?3:2}function i(e,t){return l(e.x,t.x)}function l(e,t){var n=o(e,1),r=o(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}}function Tr(e){var t=0,n=Ce/3,r=Xr(e),a=r(t,n);return a.parallels=function(e){return arguments.length?r(t=e[0]*Ce/180,n=e[1]*Ce/180):[t/Ce*180,n/Ce*180]},a}function Er(e,t){var n=Math.sin(e),r=(n+Math.sin(t))/2,a=1+n*(2*r-n),o=Math.sqrt(a)/r;function i(e,t){var n=Math.sqrt(a-2*r*Math.sin(t))/r;return[n*Math.sin(e*=r),o-n*Math.cos(e)]}return i.invert=function(e,t){var n=o-t;return[Math.atan2(e,n)/r,Ne((a-(e*e+n*n)*r*r)/(2*r))]},i}t.geo.clipExtent=function(){var e,t,n,r,a,o,i={stream:function(e){return a&&(a.valid=!1),a=o(e),a.valid=!0,a},extent:function(l){return arguments.length?(o=kr(e=+l[0][0],t=+l[0][1],n=+l[1][0],r=+l[1][1]),a&&(a.valid=!1,a=null),i):[[e,t],[n,r]]}};return i.extent([[0,0],[960,500]])},(t.geo.conicEqualArea=function(){return Tr(Er)}).raw=Er,t.geo.albers=function(){return t.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},t.geo.albersUsa=function(){var e,n,r,a,o=t.geo.albers(),i=t.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),l=t.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s={point:function(t,n){e=[t,n]}};function u(t){var o=t[0],i=t[1];return e=null,n(o,i),e||(r(o,i),e)||a(o,i),e}return u.invert=function(e){var t=o.scale(),n=o.translate(),r=(e[0]-n[0])/t,a=(e[1]-n[1])/t;return(a>=.12&&a<.234&&r>=-.425&&r<-.214?i:a>=.166&&a<.234&&r>=-.214&&r<-.115?l:o).invert(e)},u.stream=function(e){var t=o.stream(e),n=i.stream(e),r=l.stream(e);return{point:function(e,a){t.point(e,a),n.point(e,a),r.point(e,a)},sphere:function(){t.sphere(),n.sphere(),r.sphere()},lineStart:function(){t.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){t.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},u.precision=function(e){return arguments.length?(o.precision(e),i.precision(e),l.precision(e),u):o.precision()},u.scale=function(e){return arguments.length?(o.scale(e),i.scale(.35*e),l.scale(e),u.translate(o.translate())):o.scale()},u.translate=function(e){if(!arguments.length)return o.translate();var t=o.scale(),c=+e[0],f=+e[1];return n=o.translate(e).clipExtent([[c-.455*t,f-.238*t],[c+.455*t,f+.238*t]]).stream(s).point,r=i.translate([c-.307*t,f+.201*t]).clipExtent([[c-.425*t+Me,f+.12*t+Me],[c-.214*t-Me,f+.234*t-Me]]).stream(s).point,a=l.translate([c-.205*t,f+.212*t]).clipExtent([[c-.214*t+Me,f+.166*t+Me],[c-.115*t-Me,f+.234*t-Me]]).stream(s).point,u},u.scale(1070)};var Or,Mr,Sr,Cr,Ar,Pr,Lr={point:z,lineStart:z,lineEnd:z,polygonStart:function(){Mr=0,Lr.lineStart=Dr},polygonEnd:function(){Lr.lineStart=Lr.lineEnd=Lr.point=z,Or+=b(Mr/2)}};function Dr(){var e,t,n,r;function a(e,t){Mr+=r*e-n*t,n=e,r=t}Lr.point=function(o,i){Lr.point=a,e=n=o,t=r=i},Lr.lineEnd=function(){a(e,t)}}var jr={point:Ir,lineStart:z,lineEnd:z,polygonStart:z,polygonEnd:z};function Ir(e,t){e<Sr&&(Sr=e),e>Ar&&(Ar=e),t<Cr&&(Cr=t),t>Pr&&(Pr=t)}function Rr(){var e=zr(4.5),t=[],n={point:r,lineStart:function(){n.point=a},lineEnd:i,polygonStart:function(){n.lineEnd=l},polygonEnd:function(){n.lineEnd=i,n.point=r},pointRadius:function(t){return e=zr(t),n},result:function(){if(t.length){var e=t.join("");return t=[],e}}};function r(n,r){t.push("M",n,",",r,e)}function a(e,r){t.push("M",e,",",r),n.point=o}function o(e,n){t.push("L",e,",",n)}function i(){n.point=r}function l(){t.push("Z")}return n}function zr(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}var Nr,Fr={point:Br,lineStart:Vr,lineEnd:Hr,polygonStart:function(){Fr.lineStart=Ur},polygonEnd:function(){Fr.point=Br,Fr.lineStart=Vr,Fr.lineEnd=Hr}};function Br(e,t){jn+=e,In+=t,++Rn}function Vr(){var e,t;function n(n,r){var a=n-e,o=r-t,i=Math.sqrt(a*a+o*o);zn+=i*(e+n)/2,Nn+=i*(t+r)/2,Fn+=i,Br(e=n,t=r)}Fr.point=function(r,a){Fr.point=n,Br(e=r,t=a)}}function Hr(){Fr.point=Br}function Ur(){var e,t,n,r;function a(e,t){var a=e-n,o=t-r,i=Math.sqrt(a*a+o*o);zn+=i*(n+e)/2,Nn+=i*(r+t)/2,Fn+=i,i=r*e-n*t,Bn+=i*(n+e),Vn+=i*(r+t),Hn+=3*i,Br(n=e,r=t)}Fr.point=function(o,i){Fr.point=a,Br(e=n=o,t=r=i)},Fr.lineEnd=function(){a(e,t)}}function Wr(e){var t=4.5,n={point:r,lineStart:function(){n.point=a},lineEnd:i,polygonStart:function(){n.lineEnd=l},polygonEnd:function(){n.lineEnd=i,n.point=r},pointRadius:function(e){return t=e,n},result:z};function r(n,r){e.moveTo(n+t,r),e.arc(n,r,t,0,Ae)}function a(t,r){e.moveTo(t,r),n.point=o}function o(t,n){e.lineTo(t,n)}function i(){n.point=r}function l(){e.closePath()}return n}function qr(e){var t=.5,n=Math.cos(30*De),r=16;function a(e){return(r?i:o)(e)}function o(t){return Yr(t,(function(n,r){n=e(n,r),t.point(n[0],n[1])}))}function i(t){var n,a,o,i,s,u,c,f,p,d,h,v,m={point:y,lineStart:g,lineEnd:x,polygonStart:function(){t.polygonStart(),m.lineStart=_},polygonEnd:function(){t.polygonEnd(),m.lineStart=g}};function y(n,r){n=e(n,r),t.point(n[0],n[1])}function g(){f=NaN,m.point=b,t.lineStart()}function b(n,a){var o=$n([n,a]),i=e(n,a);l(f,p,c,d,h,v,f=i[0],p=i[1],c=n,d=o[0],h=o[1],v=o[2],r,t),t.point(f,p)}function x(){m.point=y,t.lineEnd()}function _(){g(),m.point=w,m.lineEnd=k}function w(e,t){b(n=e,t),a=f,o=p,i=d,s=h,u=v,m.point=b}function k(){l(f,p,c,d,h,v,a,o,n,i,s,u,r,t),m.lineEnd=x,x()}return m}function l(r,a,o,i,s,u,c,f,p,d,h,v,m,y){var g=c-r,x=f-a,_=g*g+x*x;if(_>4*t&&m--){var w=i+d,k=s+h,T=u+v,E=Math.sqrt(w*w+k*k+T*T),O=Math.asin(T/=E),M=b(b(T)-1)<Me||b(o-p)<Me?(o+p)/2:Math.atan2(k,w),S=e(M,O),C=S[0],A=S[1],P=C-r,L=A-a,D=x*P-g*L;(D*D/_>t||b((g*P+x*L)/_-.5)>.3||i*d+s*h+u*v<n)&&(l(r,a,o,i,s,u,C,A,M,w/=E,k/=E,T,m,y),y.point(C,A),l(C,A,M,w,k,T,c,f,p,d,h,v,m,y))}}return a.precision=function(e){return arguments.length?(r=(t=e*e)>0&&16,a):Math.sqrt(t)},a}function $r(e){var t=qr((function(t,n){return e([t*je,n*je])}));return function(e){return Zr(t(e))}}function Gr(e){this.stream=e}function Yr(e,t){return{point:t,sphere:function(){e.sphere()},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}}}function Kr(e){return Xr((function(){return e}))()}function Xr(e){var n,r,a,o,i,l,s=qr((function(e,t){return e=n(e,t),[e[0]*u+o,i-e[1]*u]})),u=150,c=480,f=250,p=0,d=0,h=0,v=0,m=0,y=vr,g=D,b=null,x=null;function _(e){return e=a(e[0]*De,e[1]*De),[e[0]*u+o,i-e[1]*u]}function w(e){return e=a.invert((e[0]-o)/u,(i-e[1])/u),e&&[e[0]*je,e[1]*je]}function k(){a=ir(r=ea(h,v,m),n);var e=n(p,d);return o=c-e[0]*u,i=f+e[1]*u,T()}function T(){return l&&(l.valid=!1,l=null),_}return _.stream=function(e){return l&&(l.valid=!1),l=Zr(y(r,s(g(e)))),l.valid=!0,l},_.clipAngle=function(e){return arguments.length?(y=null==e?(b=e,vr):xr((b=+e)*De),T()):b},_.clipExtent=function(e){return arguments.length?(x=e,g=e?kr(e[0][0],e[0][1],e[1][0],e[1][1]):D,T()):x},_.scale=function(e){return arguments.length?(u=+e,k()):u},_.translate=function(e){return arguments.length?(c=+e[0],f=+e[1],k()):[c,f]},_.center=function(e){return arguments.length?(p=e[0]%360*De,d=e[1]%360*De,k()):[p*je,d*je]},_.rotate=function(e){return arguments.length?(h=e[0]%360*De,v=e[1]%360*De,m=e.length>2?e[2]%360*De:0,k()):[h*je,v*je,m*je]},t.rebind(_,s,"precision"),function(){return n=e.apply(this,arguments),_.invert=n.invert&&w,k()}}function Zr(e){return Yr(e,(function(t,n){e.point(t*De,n*De)}))}function Jr(e,t){return[e,t]}function Qr(e,t){return[e>Ce?e-Ae:e<-Ce?e+Ae:e,t]}function ea(e,t,n){return e?t||n?ir(na(e),ra(t,n)):na(e):t||n?ra(t,n):Qr}function ta(e){return function(t,n){return t+=e,[t>Ce?t-Ae:t<-Ce?t+Ae:t,n]}}function na(e){var t=ta(e);return t.invert=ta(-e),t}function ra(e,t){var n=Math.cos(e),r=Math.sin(e),a=Math.cos(t),o=Math.sin(t);function i(e,t){var i=Math.cos(t),l=Math.cos(e)*i,s=Math.sin(e)*i,u=Math.sin(t),c=u*n+l*r;return[Math.atan2(s*a-c*o,l*n-u*r),Ne(c*a+s*o)]}return i.invert=function(e,t){var i=Math.cos(t),l=Math.cos(e)*i,s=Math.sin(e)*i,u=Math.sin(t),c=u*a-s*o;return[Math.atan2(s*a+u*o,l*n+c*r),Ne(c*n-l*r)]},i}function aa(e,t){var n=Math.cos(e),r=Math.sin(e);return function(a,o,i,l){var s=i*t;null!=a?(a=oa(n,a),o=oa(n,o),(i>0?a<o:a>o)&&(a+=i*Ae)):(a=e+i*Ae,o=e-.5*s);for(var u,c=a;i>0?c>o:c<o;c-=s)l.point((u=Jn([n,-r*Math.cos(c),-r*Math.sin(c)]))[0],u[1])}}function oa(e,t){var n=$n(t);n[0]-=e,Zn(n);var r=ze(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Me)%(2*Math.PI)}function ia(e,n,r){var a=t.range(e,n-Me,r).concat(n);return function(e){return a.map((function(t){return[e,t]}))}}function la(e,n,r){var a=t.range(e,n-Me,r).concat(n);return function(e){return a.map((function(t){return[t,e]}))}}function sa(e){return e.source}function ua(e){return e.target}function ca(e,t,n,r){var a=Math.cos(t),o=Math.sin(t),i=Math.cos(r),l=Math.sin(r),s=a*Math.cos(e),u=a*Math.sin(e),c=i*Math.cos(n),f=i*Math.sin(n),p=2*Math.asin(Math.sqrt(He(r-t)+a*i*He(n-e))),d=1/Math.sin(p),h=p?function(e){var t=Math.sin(e*=p)*d,n=Math.sin(p-e)*d,r=n*s+t*c,a=n*u+t*f,i=n*o+t*l;return[Math.atan2(a,r)*je,Math.atan2(i,Math.sqrt(r*r+a*a))*je]}:function(){return[e*je,t*je]};return h.distance=p,h}t.geo.path=function(){var e,n,r,a,o,i=4.5;function l(e){return e&&("function"===typeof i&&a.pointRadius(+i.apply(this,arguments)),o&&o.valid||(o=r(a)),t.geo.stream(e,o)),a.result()}function s(){return o=null,l}return l.area=function(e){return Or=0,t.geo.stream(e,r(Lr)),Or},l.centroid=function(e){return jn=In=Rn=zn=Nn=Fn=Bn=Vn=Hn=0,t.geo.stream(e,r(Fr)),Hn?[Bn/Hn,Vn/Hn]:Fn?[zn/Fn,Nn/Fn]:Rn?[jn/Rn,In/Rn]:[NaN,NaN]},l.bounds=function(e){return Ar=Pr=-(Sr=Cr=1/0),t.geo.stream(e,r(jr)),[[Sr,Cr],[Ar,Pr]]},l.projection=function(t){return arguments.length?(r=(e=t)?t.stream||$r(t):D,s()):e},l.context=function(e){return arguments.length?(a=null==(n=e)?new Rr:new Wr(e),"function"!==typeof i&&a.pointRadius(i),s()):n},l.pointRadius=function(e){return arguments.length?(i="function"===typeof e?e:(a.pointRadius(+e),+e),l):i},l.projection(t.geo.albersUsa()).context(null)},t.geo.transform=function(e){return{stream:function(t){var n=new Gr(t);for(var r in e)n[r]=e[r];return n}}},Gr.prototype={point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},t.geo.projection=Kr,t.geo.projectionMutator=Xr,(t.geo.equirectangular=function(){return Kr(Jr)}).raw=Jr.invert=Jr,t.geo.rotation=function(e){function t(t){return t=e(t[0]*De,t[1]*De),t[0]*=je,t[1]*=je,t}return e=ea(e[0]%360*De,e[1]*De,e.length>2?e[2]*De:0),t.invert=function(t){return t=e.invert(t[0]*De,t[1]*De),t[0]*=je,t[1]*=je,t},t},Qr.invert=Jr,t.geo.circle=function(){var e,t,n=[0,0],r=6;function a(){var e="function"===typeof n?n.apply(this,arguments):n,r=ea(-e[0]*De,-e[1]*De,0).invert,a=[];return t(null,null,1,{point:function(e,t){a.push(e=r(e,t)),e[0]*=je,e[1]*=je}}),{type:"Polygon",coordinates:[a]}}return a.origin=function(e){return arguments.length?(n=e,a):n},a.angle=function(n){return arguments.length?(t=aa((e=+n)*De,r*De),a):e},a.precision=function(n){return arguments.length?(t=aa(e*De,(r=+n)*De),a):r},a.angle(90)},t.geo.distance=function(e,t){var n,r=(t[0]-e[0])*De,a=e[1]*De,o=t[1]*De,i=Math.sin(r),l=Math.cos(r),s=Math.sin(a),u=Math.cos(a),c=Math.sin(o),f=Math.cos(o);return Math.atan2(Math.sqrt((n=f*i)*n+(n=u*c-s*f*l)*n),s*c+u*f*l)},t.geo.graticule=function(){var e,n,r,a,o,i,l,s,u,c,f,p,d=10,h=d,v=90,m=360,y=2.5;function g(){return{type:"MultiLineString",coordinates:x()}}function x(){return t.range(Math.ceil(a/v)*v,r,v).map(f).concat(t.range(Math.ceil(s/m)*m,l,m).map(p)).concat(t.range(Math.ceil(n/d)*d,e,d).filter((function(e){return b(e%v)>Me})).map(u)).concat(t.range(Math.ceil(i/h)*h,o,h).filter((function(e){return b(e%m)>Me})).map(c))}return g.lines=function(){return x().map((function(e){return{type:"LineString",coordinates:e}}))},g.outline=function(){return{type:"Polygon",coordinates:[f(a).concat(p(l).slice(1),f(r).reverse().slice(1),p(s).reverse().slice(1))]}},g.extent=function(e){return arguments.length?g.majorExtent(e).minorExtent(e):g.minorExtent()},g.majorExtent=function(e){return arguments.length?(a=+e[0][0],r=+e[1][0],s=+e[0][1],l=+e[1][1],a>r&&(e=a,a=r,r=e),s>l&&(e=s,s=l,l=e),g.precision(y)):[[a,s],[r,l]]},g.minorExtent=function(t){return arguments.length?(n=+t[0][0],e=+t[1][0],i=+t[0][1],o=+t[1][1],n>e&&(t=n,n=e,e=t),i>o&&(t=i,i=o,o=t),g.precision(y)):[[n,i],[e,o]]},g.step=function(e){return arguments.length?g.majorStep(e).minorStep(e):g.minorStep()},g.majorStep=function(e){return arguments.length?(v=+e[0],m=+e[1],g):[v,m]},g.minorStep=function(e){return arguments.length?(d=+e[0],h=+e[1],g):[d,h]},g.precision=function(t){return arguments.length?(y=+t,u=ia(i,o,90),c=la(n,e,y),f=ia(s,l,90),p=la(a,r,y),g):y},g.majorExtent([[-180,-90+Me],[180,90-Me]]).minorExtent([[-180,-80-Me],[180,80+Me]])},t.geo.greatArc=function(){var e,n,r=sa,a=ua;function o(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||a.apply(this,arguments)]}}return o.distance=function(){return t.geo.distance(e||r.apply(this,arguments),n||a.apply(this,arguments))},o.source=function(t){return arguments.length?(r=t,e="function"===typeof t?null:t,o):r},o.target=function(e){return arguments.length?(a=e,n="function"===typeof e?null:e,o):a},o.precision=function(){return arguments.length?o:0},o},t.geo.interpolate=function(e,t){return ca(e[0]*De,e[1]*De,t[0]*De,t[1]*De)},t.geo.length=function(e){return Nr=0,t.geo.stream(e,fa),Nr};var fa={sphere:z,point:z,lineStart:pa,lineEnd:z,polygonStart:z,polygonEnd:z};function pa(){var e,t,n;function r(r,a){var o=Math.sin(a*=De),i=Math.cos(a),l=b((r*=De)-e),s=Math.cos(l);Nr+=Math.atan2(Math.sqrt((l=i*Math.sin(l))*l+(l=n*o-t*i*s)*l),t*o+n*i*s),e=r,t=o,n=i}fa.point=function(a,o){e=a*De,t=Math.sin(o*=De),n=Math.cos(o),fa.point=r},fa.lineEnd=function(){fa.point=fa.lineEnd=z}}function da(e,t){function n(t,n){var r=Math.cos(t),a=Math.cos(n),o=e(r*a);return[o*a*Math.sin(t),o*Math.sin(n)]}return n.invert=function(e,n){var r=Math.sqrt(e*e+n*n),a=t(r),o=Math.sin(a),i=Math.cos(a);return[Math.atan2(e*o,r*i),Math.asin(r&&n*o/r)]},n}var ha=da((function(e){return Math.sqrt(2/(1+e))}),(function(e){return 2*Math.asin(e/2)}));(t.geo.azimuthalEqualArea=function(){return Kr(ha)}).raw=ha;var va=da((function(e){var t=Math.acos(e);return t&&t/Math.sin(t)}),D);function ma(e,t){var n=Math.cos(e),r=function(e){return Math.tan(Ce/4+e/2)},a=e===t?Math.sin(e):Math.log(n/Math.cos(t))/Math.log(r(t)/r(e)),o=n*Math.pow(r(e),a)/a;if(!a)return ba;function i(e,t){o>0?t<-Le+Me&&(t=-Le+Me):t>Le-Me&&(t=Le-Me);var n=o/Math.pow(r(t),a);return[n*Math.sin(a*e),o-n*Math.cos(a*e)]}return i.invert=function(e,t){var n=o-t,r=Ie(a)*Math.sqrt(e*e+n*n);return[Math.atan2(e,n)/a,2*Math.atan(Math.pow(o/r,1/a))-Le]},i}function ya(e,t){var n=Math.cos(e),r=e===t?Math.sin(e):(n-Math.cos(t))/(t-e),a=n/r+e;if(b(r)<Me)return Jr;function o(e,t){var n=a-t;return[n*Math.sin(r*e),a-n*Math.cos(r*e)]}return o.invert=function(e,t){var n=a-t;return[Math.atan2(e,n)/r,a-Ie(r)*Math.sqrt(e*e+n*n)]},o}(t.geo.azimuthalEquidistant=function(){return Kr(va)}).raw=va,(t.geo.conicConformal=function(){return Tr(ma)}).raw=ma,(t.geo.conicEquidistant=function(){return Tr(ya)}).raw=ya;var ga=da((function(e){return 1/e}),Math.atan);function ba(e,t){return[e,Math.log(Math.tan(Ce/4+t/2))]}function xa(e){var t,n=Kr(e),r=n.scale,a=n.translate,o=n.clipExtent;return n.scale=function(){var e=r.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.translate=function(){var e=a.apply(n,arguments);return e===n?t?n.clipExtent(null):n:e},n.clipExtent=function(e){var i=o.apply(n,arguments);if(i===n){if(t=null==e){var l=Ce*r(),s=a();o([[s[0]-l,s[1]-l],[s[0]+l,s[1]+l]])}}else t&&(i=null);return i},n.clipExtent(null)}(t.geo.gnomonic=function(){return Kr(ga)}).raw=ga,ba.invert=function(e,t){return[e,2*Math.atan(Math.exp(t))-Le]},(t.geo.mercator=function(){return xa(ba)}).raw=ba;var _a=da((function(){return 1}),Math.asin);(t.geo.orthographic=function(){return Kr(_a)}).raw=_a;var wa=da((function(e){return 1/(1+e)}),(function(e){return 2*Math.atan(e)}));function ka(e,t){return[Math.log(Math.tan(Ce/4+t/2)),-e]}function Ta(e){return e[0]}function Ea(e){return e[1]}function Oa(e){for(var t=e.length,n=[0,1],r=2,a=2;a<t;a++){while(r>1&&Re(e[n[r-2]],e[n[r-1]],e[a])<=0)--r;n[r++]=a}return n.slice(0,r)}function Ma(e,t){return e[0]-t[0]||e[1]-t[1]}(t.geo.stereographic=function(){return Kr(wa)}).raw=wa,ka.invert=function(e,t){return[-t,2*Math.atan(Math.exp(e))-Le]},(t.geo.transverseMercator=function(){var e=xa(ka),t=e.center,n=e.rotate;return e.center=function(e){return e?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return e?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90])}).raw=ka,t.geom={},t.geom.hull=function(e){var t=Ta,n=Ea;if(arguments.length)return r(e);function r(e){if(e.length<3)return[];var r,a=Tt(t),o=Tt(n),i=e.length,l=[],s=[];for(r=0;r<i;r++)l.push([+a.call(this,e[r],r),+o.call(this,e[r],r),r]);for(l.sort(Ma),r=0;r<i;r++)s.push([l[r][0],-l[r][1]]);var u=Oa(l),c=Oa(s),f=c[0]===u[0],p=c[c.length-1]===u[u.length-1],d=[];for(r=u.length-1;r>=0;--r)d.push(e[l[u[r]][2]]);for(r=+f;r<c.length-p;++r)d.push(e[l[c[r]][2]]);return d}return r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(e){return arguments.length?(n=e,r):n},r},t.geom.polygon=function(e){return W(e,Sa),e};var Sa=t.geom.polygon.prototype=[];function Ca(e,t,n){return(n[0]-t[0])*(e[1]-t[1])<(n[1]-t[1])*(e[0]-t[0])}function Aa(e,t,n,r){var a=e[0],o=n[0],i=t[0]-a,l=r[0]-o,s=e[1],u=n[1],c=t[1]-s,f=r[1]-u,p=(l*(s-u)-f*(a-o))/(f*i-l*c);return[a+p*i,s+p*c]}function Pa(e){var t=e[0],n=e[e.length-1];return!(t[0]-n[0]||t[1]-n[1])}Sa.area=function(){var e,t=-1,n=this.length,r=this[n-1],a=0;while(++t<n)e=r,r=this[t],a+=e[1]*r[0]-e[0]*r[1];return.5*a},Sa.centroid=function(e){var t,n,r=-1,a=this.length,o=0,i=0,l=this[a-1];arguments.length||(e=-1/(6*this.area()));while(++r<a)t=l,l=this[r],n=t[0]*l[1]-l[0]*t[1],o+=(t[0]+l[0])*n,i+=(t[1]+l[1])*n;return[o*e,i*e]},Sa.clip=function(e){var t,n,r,a,o,i,l=Pa(e),s=-1,u=this.length-Pa(this),c=this[u-1];while(++s<u){t=e.slice(),e.length=0,a=this[s],o=t[(r=t.length-l)-1],n=-1;while(++n<r)i=t[n],Ca(i,c,a)?(Ca(o,c,a)||e.push(Aa(o,i,c,a)),e.push(i)):Ca(o,c,a)&&e.push(Aa(o,i,c,a)),o=i;l&&e.push(e[0]),c=a}return e};var La,Da,ja,Ia,Ra,za=[],Na=[];function Fa(){io(this),this.edge=this.site=this.circle=null}function Ba(e){var t=za.pop()||new Fa;return t.site=e,t}function Va(e){Za(e),ja.remove(e),za.push(e),io(e)}function Ha(e){var t=e.circle,n=t.x,r=t.cy,a={x:n,y:r},o=e.P,i=e.N,l=[e];Va(e);var s=o;while(s.circle&&b(n-s.circle.x)<Me&&b(r-s.circle.cy)<Me)o=s.P,l.unshift(s),Va(s),s=o;l.unshift(s),Za(s);var u=i;while(u.circle&&b(n-u.circle.x)<Me&&b(r-u.circle.cy)<Me)i=u.N,l.push(u),Va(u),u=i;l.push(u),Za(u);var c,f=l.length;for(c=1;c<f;++c)u=l[c],s=l[c-1],ro(u.edge,s.site,u.site,a);s=l[0],u=l[f-1],u.edge=to(s.site,u.site,null,a),Xa(s),Xa(u)}function Ua(e){var t,n,r,a,o=e.x,i=e.y,l=ja._;while(l)if(r=Wa(l,i)-o,r>Me)l=l.L;else{if(a=o-qa(l,i),!(a>Me)){r>-Me?(t=l.P,n=l):a>-Me?(t=l,n=l.N):t=n=l;break}if(!l.R){t=l;break}l=l.R}var s=Ba(e);if(ja.insert(t,s),t||n){if(t===n)return Za(t),n=Ba(t.site),ja.insert(s,n),s.edge=n.edge=to(t.site,s.site),Xa(t),void Xa(n);if(n){Za(t),Za(n);var u=t.site,c=u.x,f=u.y,p=e.x-c,d=e.y-f,h=n.site,v=h.x-c,m=h.y-f,y=2*(p*m-d*v),g=p*p+d*d,b=v*v+m*m,x={x:(m*g-d*b)/y+c,y:(p*b-v*g)/y+f};ro(n.edge,u,h,x),s.edge=to(u,e,null,x),n.edge=to(e,h,null,x),Xa(t),Xa(n)}else s.edge=to(t.site,s.site)}}function Wa(e,t){var n=e.site,r=n.x,a=n.y,o=a-t;if(!o)return r;var i=e.P;if(!i)return-1/0;n=i.site;var l=n.x,s=n.y,u=s-t;if(!u)return l;var c=l-r,f=1/o-1/u,p=c/u;return f?(-p+Math.sqrt(p*p-2*f*(c*c/(-2*u)-s+u/2+a-o/2)))/f+r:(r+l)/2}function qa(e,t){var n=e.N;if(n)return Wa(n,t);var r=e.site;return r.y===t?r.x:1/0}function $a(e){this.site=e,this.edges=[]}function Ga(e){var t,n,r,a,o,i,l,s,u,c,f=e[0][0],p=e[1][0],d=e[0][1],h=e[1][1],v=Da,m=v.length;while(m--)if(o=v[m],o&&o.prepare()){l=o.edges,s=l.length,i=0;while(i<s)c=l[i].end(),r=c.x,a=c.y,u=l[++i%s].start(),t=u.x,n=u.y,(b(r-t)>Me||b(a-n)>Me)&&(l.splice(i,0,new ao(no(o.site,c,b(r-f)<Me&&h-a>Me?{x:f,y:b(t-f)<Me?n:h}:b(a-h)<Me&&p-r>Me?{x:b(n-h)<Me?t:p,y:h}:b(r-p)<Me&&a-d>Me?{x:p,y:b(t-p)<Me?n:d}:b(a-d)<Me&&r-f>Me?{x:b(n-d)<Me?t:f,y:d}:null),o.site,null)),++s)}}function Ya(e,t){return t.angle-e.angle}function Ka(){io(this),this.x=this.y=this.arc=this.site=this.cy=null}function Xa(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,a=e.site,o=n.site;if(r!==o){var i=a.x,l=a.y,s=r.x-i,u=r.y-l,c=o.x-i,f=o.y-l,p=2*(s*f-u*c);if(!(p>=-Se)){var d=s*s+u*u,h=c*c+f*f,v=(f*d-u*h)/p,m=(s*h-c*d)/p,y=(f=m+l,Na.pop()||new Ka);y.arc=e,y.site=a,y.x=v+i,y.y=f+Math.sqrt(v*v+m*m),y.cy=f,e.circle=y;var g=null,b=Ra._;while(b)if(y.y<b.y||y.y===b.y&&y.x<=b.x){if(!b.L){g=b.P;break}b=b.L}else{if(!b.R){g=b;break}b=b.R}Ra.insert(g,y),g||(Ia=y)}}}}function Za(e){var t=e.circle;t&&(t.P||(Ia=t.N),Ra.remove(t),Na.push(t),io(t),e.circle=null)}function Ja(e){var t,n=La,r=_r(e[0][0],e[0][1],e[1][0],e[1][1]),a=n.length;while(a--)t=n[a],(!Qa(t,e)||!r(t)||b(t.a.x-t.b.x)<Me&&b(t.a.y-t.b.y)<Me)&&(t.a=t.b=null,n.splice(a,1))}function Qa(e,t){var n=e.b;if(n)return!0;var r,a,o=e.a,i=t[0][0],l=t[1][0],s=t[0][1],u=t[1][1],c=e.l,f=e.r,p=c.x,d=c.y,h=f.x,v=f.y,m=(p+h)/2,y=(d+v)/2;if(v===d){if(m<i||m>=l)return;if(p>h){if(o){if(o.y>=u)return}else o={x:m,y:s};n={x:m,y:u}}else{if(o){if(o.y<s)return}else o={x:m,y:u};n={x:m,y:s}}}else if(r=(p-h)/(v-d),a=y-r*m,r<-1||r>1)if(p>h){if(o){if(o.y>=u)return}else o={x:(s-a)/r,y:s};n={x:(u-a)/r,y:u}}else{if(o){if(o.y<s)return}else o={x:(u-a)/r,y:u};n={x:(s-a)/r,y:s}}else if(d<v){if(o){if(o.x>=l)return}else o={x:i,y:r*i+a};n={x:l,y:r*l+a}}else{if(o){if(o.x<i)return}else o={x:l,y:r*l+a};n={x:i,y:r*i+a}}return e.a=o,e.b=n,!0}function eo(e,t){this.l=e,this.r=t,this.a=this.b=null}function to(e,t,n,r){var a=new eo(e,t);return La.push(a),n&&ro(a,e,t,n),r&&ro(a,t,e,r),Da[e.i].edges.push(new ao(a,e,t)),Da[t.i].edges.push(new ao(a,t,e)),a}function no(e,t,n){var r=new eo(e,null);return r.a=t,r.b=n,La.push(r),r}function ro(e,t,n,r){e.a||e.b?e.l===n?e.b=r:e.a=r:(e.a=r,e.l=t,e.r=n)}function ao(e,t,n){var r=e.a,a=e.b;this.edge=e,this.site=t,this.angle=n?Math.atan2(n.y-t.y,n.x-t.x):e.l===t?Math.atan2(a.x-r.x,r.y-a.y):Math.atan2(r.x-a.x,a.y-r.y)}function oo(){this._=null}function io(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function lo(e,t){var n=t,r=t.R,a=n.U;a?a.L===n?a.L=r:a.R=r:e._=r,r.U=a,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function so(e,t){var n=t,r=t.L,a=n.U;a?a.L===n?a.L=r:a.R=r:e._=r,r.U=a,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function uo(e){while(e.L)e=e.L;return e}function co(e,t){var n,r,a,o=e.sort(fo).pop();La=[],Da=new Array(e.length),ja=new oo,Ra=new oo;while(1)if(a=Ia,o&&(!a||o.y<a.y||o.y===a.y&&o.x<a.x))o.x===n&&o.y===r||(Da[o.i]=new $a(o),Ua(o),n=o.x,r=o.y),o=e.pop();else{if(!a)break;Ha(a.arc)}t&&(Ja(t),Ga(t));var i={cells:Da,edges:La};return ja=Ra=La=Da=null,i}function fo(e,t){return t.y-e.y||t.x-e.x}$a.prototype.prepare=function(){var e,t=this.edges,n=t.length;while(n--)e=t[n].edge,e.b&&e.a||t.splice(n,1);return t.sort(Ya),t.length},ao.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},oo.prototype={insert:function(e,t){var n,r,a;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){e=e.R;while(e.L)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=uo(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);t.L=t.R=null,t.U=n,t.C=!0,e=t;while(n&&n.C)r=n.U,n===r.L?(a=r.R,a&&a.C?(n.C=a.C=!1,r.C=!0,e=r):(e===n.R&&(lo(this,n),e=n,n=e.U),n.C=!1,r.C=!0,so(this,r))):(a=r.L,a&&a.C?(n.C=a.C=!1,r.C=!0,e=r):(e===n.L&&(so(this,n),e=n,n=e.U),n.C=!1,r.C=!0,lo(this,r))),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,a=e.U,o=e.L,i=e.R;if(n=o?i?uo(i):o:i,a?a.L===e?a.L=n:a.R=n:this._=n,o&&i?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==i?(a=n.U,n.U=e.U,e=n.R,a.L=e,n.R=i,i.U=n):(n.U=a,a=n,e=n.R)):(r=e.C,e=n),e&&(e.U=a),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===a.L){if(t=a.R,t.C&&(t.C=!1,a.C=!0,lo(this,a),t=a.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,so(this,t),t=a.R),t.C=a.C,a.C=t.R.C=!1,lo(this,a),e=this._;break}}else if(t=a.L,t.C&&(t.C=!1,a.C=!0,so(this,a),t=a.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,lo(this,t),t=a.L),t.C=a.C,a.C=t.L.C=!1,so(this,a),e=this._;break}t.C=!0,e=a,a=a.U}while(!e.C);e&&(e.C=!1)}}},t.geom.voronoi=function(e){var t=Ta,n=Ea,r=t,a=n,o=po;if(e)return i(e);function i(e){var t=new Array(e.length),n=o[0][0],r=o[0][1],a=o[1][0],i=o[1][1];return co(l(e),o).cells.forEach((function(o,l){var s=o.edges,u=o.site,c=t[l]=s.length?s.map((function(e){var t=e.start();return[t.x,t.y]})):u.x>=n&&u.x<=a&&u.y>=r&&u.y<=i?[[n,i],[a,i],[a,r],[n,r]]:[];c.point=e[l]})),t}function l(e){return e.map((function(e,t){return{x:Math.round(r(e,t)/Me)*Me,y:Math.round(a(e,t)/Me)*Me,i:t}}))}return i.links=function(e){return co(l(e)).edges.filter((function(e){return e.l&&e.r})).map((function(t){return{source:e[t.l.i],target:e[t.r.i]}}))},i.triangles=function(e){var t=[];return co(l(e)).cells.forEach((function(n,r){var a,o=n.site,i=n.edges.sort(Ya),l=-1,s=i.length,u=i[s-1].edge,c=u.l===o?u.r:u.l;while(++l<s)u,a=c,u=i[l].edge,c=u.l===o?u.r:u.l,r<a.i&&r<c.i&&ho(o,a,c)<0&&t.push([e[r],e[a.i],e[c.i]])})),t},i.x=function(e){return arguments.length?(r=Tt(t=e),i):t},i.y=function(e){return arguments.length?(a=Tt(n=e),i):n},i.clipExtent=function(e){return arguments.length?(o=null==e?po:e,i):o===po?null:o},i.size=function(e){return arguments.length?i.clipExtent(e&&[[0,0],e]):o===po?null:o&&o[1]},i};var po=[[-1e6,-1e6],[1e6,1e6]];function ho(e,t,n){return(e.x-n.x)*(t.y-e.y)-(e.x-t.x)*(n.y-e.y)}function vo(e){return e.x}function mo(e){return e.y}function yo(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function go(e,t,n,r,a,o){if(!e(t,n,r,a,o)){var i=.5*(n+a),l=.5*(r+o),s=t.nodes;s[0]&&go(e,s[0],n,r,i,l),s[1]&&go(e,s[1],i,r,a,l),s[2]&&go(e,s[2],n,l,i,o),s[3]&&go(e,s[3],i,l,a,o)}}function bo(e,t,n,r,a,o,i){var l,s=1/0;return function e(u,c,f,p,d){if(!(c>o||f>i||p<r||d<a)){if(h=u.point){var h,v=t-u.x,m=n-u.y,y=v*v+m*m;if(y<s){var g=Math.sqrt(s=y);r=t-g,a=n-g,o=t+g,i=n+g,l=h}}for(var b=u.nodes,x=.5*(c+p),_=.5*(f+d),w=t>=x,k=n>=_,T=k<<1|w,E=T+4;T<E;++T)if(u=b[3&T])switch(3&T){case 0:e(u,c,f,x,_);break;case 1:e(u,x,f,p,_);break;case 2:e(u,c,_,x,d);break;case 3:e(u,x,_,p,d);break}}}(e,r,a,o,i),l}function xo(e,n){e=t.rgb(e),n=t.rgb(n);var r=e.r,a=e.g,o=e.b,i=n.r-r,l=n.g-a,s=n.b-o;return function(e){return"#"+yt(Math.round(r+i*e))+yt(Math.round(a+l*e))+yt(Math.round(o+s*e))}}function _o(e,t){var n,r={},a={};for(n in e)n in t?r[n]=Oo(e[n],t[n]):a[n]=e[n];for(n in t)n in e||(a[n]=t[n]);return function(e){for(n in r)a[n]=r[n](e);return a}}function wo(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function ko(e,t){var n,r,a,o=To.lastIndex=Eo.lastIndex=0,i=-1,l=[],s=[];e+="",t+="";while((n=To.exec(e))&&(r=Eo.exec(t)))(a=r.index)>o&&(a=t.slice(o,a),l[i]?l[i]+=a:l[++i]=a),(n=n[0])===(r=r[0])?l[i]?l[i]+=r:l[++i]=r:(l[++i]=null,s.push({i:i,x:wo(n,r)})),o=Eo.lastIndex;return o<t.length&&(a=t.slice(o),l[i]?l[i]+=a:l[++i]=a),l.length<2?s[0]?(t=s[0].x,function(e){return t(e)+""}):function(){return t}:(t=s.length,function(e){for(var n,r=0;r<t;++r)l[(n=s[r]).i]=n.x(e);return l.join("")})}t.geom.delaunay=function(e){return t.geom.voronoi().triangles(e)},t.geom.quadtree=function(e,t,n,r,a){var o,i=Ta,l=Ea;if(o=arguments.length)return i=vo,l=mo,3===o&&(a=n,r=t,n=t=0),s(e);function s(e){var s,u,c,f,p,d,h,v,m,y=Tt(i),g=Tt(l);if(null!=t)d=t,h=n,v=r,m=a;else if(v=m=-(d=h=1/0),u=[],c=[],p=e.length,o)for(f=0;f<p;++f)s=e[f],s.x<d&&(d=s.x),s.y<h&&(h=s.y),s.x>v&&(v=s.x),s.y>m&&(m=s.y),u.push(s.x),c.push(s.y);else for(f=0;f<p;++f){var x=+y(s=e[f],f),_=+g(s,f);x<d&&(d=x),_<h&&(h=_),x>v&&(v=x),_>m&&(m=_),u.push(x),c.push(_)}var w=v-d,k=m-h;function T(e,t,n,r,a,o,i,l){if(!isNaN(n)&&!isNaN(r))if(e.leaf){var s=e.x,u=e.y;if(null!=s)if(b(s-n)+b(u-r)<.01)E(e,t,n,r,a,o,i,l);else{var c=e.point;e.x=e.y=e.point=null,E(e,c,s,u,a,o,i,l),E(e,t,n,r,a,o,i,l)}else e.x=n,e.y=r,e.point=t}else E(e,t,n,r,a,o,i,l)}function E(e,t,n,r,a,o,i,l){var s=.5*(a+i),u=.5*(o+l),c=n>=s,f=r>=u,p=f<<1|c;e.leaf=!1,e=e.nodes[p]||(e.nodes[p]=yo()),c?a=s:i=s,f?o=u:l=u,T(e,t,n,r,a,o,i,l)}w>k?m=h+w:v=d+k;var O=yo();if(O.add=function(e){T(O,e,+y(e,++f),+g(e,f),d,h,v,m)},O.visit=function(e){go(e,O,d,h,v,m)},O.find=function(e){return bo(O,e[0],e[1],d,h,v,m)},f=-1,null==t){while(++f<p)T(O,e[f],u[f],c[f],d,h,v,m);--f}else e.forEach(O.add);return u=c=e=s=null,O}return s.x=function(e){return arguments.length?(i=e,s):i},s.y=function(e){return arguments.length?(l=e,s):l},s.extent=function(e){return arguments.length?(null==e?t=n=r=a=null:(t=+e[0][0],n=+e[0][1],r=+e[1][0],a=+e[1][1]),s):null==t?null:[[t,n],[r,a]]},s.size=function(e){return arguments.length?(null==e?t=n=r=a=null:(t=n=0,r=+e[0],a=+e[1]),s):null==t?null:[r-t,a-n]},s},t.interpolateRgb=xo,t.interpolateObject=_o,t.interpolateNumber=wo,t.interpolateString=ko;var To=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Eo=new RegExp(To.source,"g");function Oo(e,n){var r,a=t.interpolators.length;while(--a>=0&&!(r=t.interpolators[a](e,n)));return r}function Mo(e,t){var n,r=[],a=[],o=e.length,i=t.length,l=Math.min(e.length,t.length);for(n=0;n<l;++n)r.push(Oo(e[n],t[n]));for(;n<o;++n)a[n]=e[n];for(;n<i;++n)a[n]=t[n];return function(e){for(n=0;n<l;++n)a[n]=r[n](e);return a}}t.interpolate=Oo,t.interpolators=[function(e,t){var n=typeof t;return("string"===n?kt.has(t.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(t)?xo:ko:t instanceof Ke?xo:Array.isArray(t)?Mo:"object"===n&&isNaN(t)?_o:wo)(e,t)}],t.interpolateArray=Mo;var So=function(){return D},Co=t.map({linear:So,poly:zo,quad:function(){return jo},cubic:function(){return Io},sin:function(){return No},exp:function(){return Fo},circle:function(){return Bo},elastic:Vo,back:Ho,bounce:function(){return Uo}}),Ao=t.map({in:D,out:Lo,"in-out":Do,"out-in":function(e){return Do(Lo(e))}});function Po(e){return function(t){return t<=0?0:t>=1?1:e(t)}}function Lo(e){return function(t){return 1-e(1-t)}}function Do(e){return function(t){return.5*(t<.5?e(2*t):2-e(2-2*t))}}function jo(e){return e*e}function Io(e){return e*e*e}function Ro(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}function zo(e){return function(t){return Math.pow(t,e)}}function No(e){return 1-Math.cos(e*Le)}function Fo(e){return Math.pow(2,10*(e-1))}function Bo(e){return 1-Math.sqrt(1-e*e)}function Vo(e,t){var n;return arguments.length<2&&(t=.45),arguments.length?n=t/Ae*Math.asin(1/e):(e=1,n=t/4),function(r){return 1+e*Math.pow(2,-10*r)*Math.sin((r-n)*Ae/t)}}function Ho(e){return e||(e=1.70158),function(t){return t*t*((e+1)*t-e)}}function Uo(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}function Wo(e,n){e=t.hcl(e),n=t.hcl(n);var r=e.h,a=e.c,o=e.l,i=n.h-r,l=n.c-a,s=n.l-o;return isNaN(l)&&(l=0,a=isNaN(a)?n.c:a),isNaN(i)?(i=0,r=isNaN(r)?n.h:r):i>180?i-=360:i<-180&&(i+=360),function(e){return tt(r+i*e,a+l*e,o+s*e)+""}}function qo(e,n){e=t.hsl(e),n=t.hsl(n);var r=e.h,a=e.s,o=e.l,i=n.h-r,l=n.s-a,s=n.l-o;return isNaN(l)&&(l=0,a=isNaN(a)?n.s:a),isNaN(i)?(i=0,r=isNaN(r)?n.h:r):i>180?i-=360:i<-180&&(i+=360),function(e){return Je(r+i*e,a+l*e,o+s*e)+""}}function $o(e,n){e=t.lab(e),n=t.lab(n);var r=e.l,a=e.a,o=e.b,i=n.l-r,l=n.a-a,s=n.b-o;return function(e){return st(r+i*e,a+l*e,o+s*e)+""}}function Go(e,t){return t-=e,function(n){return Math.round(e+t*n)}}function Yo(e){var t=[e.a,e.b],n=[e.c,e.d],r=Xo(t),a=Ko(t,n),o=Xo(Zo(n,t,-a))||0;t[0]*n[1]<n[0]*t[1]&&(t[0]*=-1,t[1]*=-1,r*=-1,a*=-1),this.rotate=(r?Math.atan2(t[1],t[0]):Math.atan2(-n[0],n[1]))*je,this.translate=[e.e,e.f],this.scale=[r,o],this.skew=o?Math.atan2(a,o)*je:0}function Ko(e,t){return e[0]*t[0]+e[1]*t[1]}function Xo(e){var t=Math.sqrt(Ko(e,e));return t&&(e[0]/=t,e[1]/=t),t}function Zo(e,t,n){return e[0]+=n*t[0],e[1]+=n*t[1],e}t.ease=function(e){var t=e.indexOf("-"),n=t>=0?e.slice(0,t):e,a=t>=0?e.slice(t+1):"in";return n=Co.get(n)||So,a=Ao.get(a)||D,Po(a(n.apply(null,r.call(arguments,1))))},t.interpolateHcl=Wo,t.interpolateHsl=qo,t.interpolateLab=$o,t.interpolateRound=Go,t.transform=function(e){var n=o.createElementNS(t.ns.prefix.svg,"g");return(t.transform=function(e){if(null!=e){n.setAttribute("transform",e);var t=n.transform.baseVal.consolidate()}return new Yo(t?t.matrix:Jo)})(e)},Yo.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var Jo={a:1,b:0,c:0,d:1,e:0,f:0};function Qo(e){return e.length?e.pop()+",":""}function ei(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push("translate(",null,",",null,")");r.push({i:a-4,x:wo(e[0],t[0])},{i:a-2,x:wo(e[1],t[1])})}else(t[0]||t[1])&&n.push("translate("+t+")")}function ti(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(Qo(n)+"rotate(",null,")")-2,x:wo(e,t)})):t&&n.push(Qo(n)+"rotate("+t+")")}function ni(e,t,n,r){e!==t?r.push({i:n.push(Qo(n)+"skewX(",null,")")-2,x:wo(e,t)}):t&&n.push(Qo(n)+"skewX("+t+")")}function ri(e,t,n,r){if(e[0]!==t[0]||e[1]!==t[1]){var a=n.push(Qo(n)+"scale(",null,",",null,")");r.push({i:a-4,x:wo(e[0],t[0])},{i:a-2,x:wo(e[1],t[1])})}else 1===t[0]&&1===t[1]||n.push(Qo(n)+"scale("+t+")")}function ai(e,n){var r=[],a=[];return e=t.transform(e),n=t.transform(n),ei(e.translate,n.translate,r,a),ti(e.rotate,n.rotate,r,a),ni(e.skew,n.skew,r,a),ri(e.scale,n.scale,r,a),e=n=null,function(e){var t,n=-1,o=a.length;while(++n<o)r[(t=a[n]).i]=t.x(e);return r.join("")}}function oi(e,t){return t=(t-=e=+e)||1/t,function(n){return(n-e)/t}}function ii(e,t){return t=(t-=e=+e)||1/t,function(n){return Math.max(0,Math.min(1,(n-e)/t))}}function li(e){var t=e.source,n=e.target,r=ui(t,n),a=[t];while(t!==r)t=t.parent,a.push(t);var o=a.length;while(n!==r)a.splice(o,0,n),n=n.parent;return a}function si(e){var t=[],n=e.parent;while(null!=n)t.push(e),e=n,n=n.parent;return t.push(e),t}function ui(e,t){if(e===t)return e;var n=si(e),r=si(t),a=n.pop(),o=r.pop(),i=null;while(a===o)i=a,a=n.pop(),o=r.pop();return i}function ci(e){e.fixed|=2}function fi(e){e.fixed&=-7}function pi(e){e.fixed|=4,e.px=e.x,e.py=e.y}function di(e){e.fixed&=-5}function hi(e,t,n){var r=0,a=0;if(e.charge=0,!e.leaf){var o,i=e.nodes,l=i.length,s=-1;while(++s<l)o=i[s],null!=o&&(hi(o,t,n),e.charge+=o.charge,r+=o.charge*o.cx,a+=o.charge*o.cy)}if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=t*n[e.point.index];e.charge+=e.pointCharge=u,r+=u*e.point.x,a+=u*e.point.y}e.cx=r/e.charge,e.cy=a/e.charge}t.interpolateTransform=ai,t.layout={},t.layout.bundle=function(){return function(e){var t=[],n=-1,r=e.length;while(++n<r)t.push(li(e[n]));return t}},t.layout.chord=function(){var e,n,r,a,o,i,l,s={},u=0;function c(){var s,c,p,d,h,v={},m=[],y=t.range(a),g=[];e=[],n=[],s=0,d=-1;while(++d<a){c=0,h=-1;while(++h<a)c+=r[d][h];m.push(c),g.push(t.range(a)),s+=c}o&&y.sort((function(e,t){return o(m[e],m[t])})),i&&g.forEach((function(e,t){e.sort((function(e,n){return i(r[t][e],r[t][n])}))})),s=(Ae-u*a)/s,c=0,d=-1;while(++d<a){p=c,h=-1;while(++h<a){var b=y[d],x=g[b][h],_=r[b][x],w=c,k=c+=_*s;v[b+"-"+x]={index:b,subindex:x,startAngle:w,endAngle:k,value:_}}n[b]={index:b,startAngle:p,endAngle:c,value:m[b]},c+=u}d=-1;while(++d<a){h=d-1;while(++h<a){var T=v[d+"-"+h],E=v[h+"-"+d];(T.value||E.value)&&e.push(T.value<E.value?{source:E,target:T}:{source:T,target:E})}}l&&f()}function f(){e.sort((function(e,t){return l((e.source.value+e.target.value)/2,(t.source.value+t.target.value)/2)}))}return s.matrix=function(t){return arguments.length?(a=(r=t)&&r.length,e=n=null,s):r},s.padding=function(t){return arguments.length?(u=t,e=n=null,s):u},s.sortGroups=function(t){return arguments.length?(o=t,e=n=null,s):o},s.sortSubgroups=function(t){return arguments.length?(i=t,e=null,s):i},s.sortChords=function(t){return arguments.length?(l=t,e&&f(),s):l},s.chords=function(){return e||c(),e},s.groups=function(){return n||c(),n},s},t.layout.force=function(){var e,n,r,a,o,i,l={},s=t.dispatch("start","tick","end"),u=[1,1],c=.9,f=vi,p=mi,d=-30,h=yi,v=.1,m=.64,y=[],g=[];function b(e){return function(t,n,r,a){if(t.point!==e){var o=t.cx-e.x,i=t.cy-e.y,l=a-n,s=o*o+i*i;if(l*l/m<s){if(s<h){var u=t.charge/s;e.px-=o*u,e.py-=i*u}return!0}if(t.point&&s&&s<h){u=t.pointCharge/s;e.px-=o*u,e.py-=i*u}}return!t.charge}}function x(e){e.px=t.event.x,e.py=t.event.y,l.resume()}return l.tick=function(){if((r*=.99)<.005)return e=null,s.end({type:"end",alpha:r=0}),!0;var n,l,f,p,h,m,x,_,w,k=y.length,T=g.length;for(l=0;l<T;++l)f=g[l],p=f.source,h=f.target,_=h.x-p.x,w=h.y-p.y,(m=_*_+w*w)&&(m=r*o[l]*((m=Math.sqrt(m))-a[l])/m,_*=m,w*=m,h.x-=_*(x=p.weight+h.weight?p.weight/(p.weight+h.weight):.5),h.y-=w*x,p.x+=_*(x=1-x),p.y+=w*x);if((x=r*v)&&(_=u[0]/2,w=u[1]/2,l=-1,x))while(++l<k)f=y[l],f.x+=(_-f.x)*x,f.y+=(w-f.y)*x;if(d){hi(n=t.geom.quadtree(y),r,i),l=-1;while(++l<k)(f=y[l]).fixed||n.visit(b(f))}l=-1;while(++l<k)f=y[l],f.fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*c,f.y-=(f.py-(f.py=f.y))*c);s.tick({type:"tick",alpha:r})},l.nodes=function(e){return arguments.length?(y=e,l):y},l.links=function(e){return arguments.length?(g=e,l):g},l.size=function(e){return arguments.length?(u=e,l):u},l.linkDistance=function(e){return arguments.length?(f="function"===typeof e?e:+e,l):f},l.distance=l.linkDistance,l.linkStrength=function(e){return arguments.length?(p="function"===typeof e?e:+e,l):p},l.friction=function(e){return arguments.length?(c=+e,l):c},l.charge=function(e){return arguments.length?(d="function"===typeof e?e:+e,l):d},l.chargeDistance=function(e){return arguments.length?(h=e*e,l):Math.sqrt(h)},l.gravity=function(e){return arguments.length?(v=+e,l):v},l.theta=function(e){return arguments.length?(m=e*e,l):Math.sqrt(m)},l.alpha=function(t){return arguments.length?(t=+t,r?t>0?r=t:(e.c=null,e.t=NaN,e=null,s.end({type:"end",alpha:r=0})):t>0&&(s.start({type:"start",alpha:r=t}),e=jt(l.tick)),l):r},l.start=function(){var e,t,n,r=y.length,s=g.length,c=u[0],h=u[1];for(e=0;e<r;++e)(n=y[e]).index=e,n.weight=0;for(e=0;e<s;++e)n=g[e],"number"==typeof n.source&&(n.source=y[n.source]),"number"==typeof n.target&&(n.target=y[n.target]),++n.source.weight,++n.target.weight;for(e=0;e<r;++e)n=y[e],isNaN(n.x)&&(n.x=v("x",c)),isNaN(n.y)&&(n.y=v("y",h)),isNaN(n.px)&&(n.px=n.x),isNaN(n.py)&&(n.py=n.y);if(a=[],"function"===typeof f)for(e=0;e<s;++e)a[e]=+f.call(this,g[e],e);else for(e=0;e<s;++e)a[e]=f;if(o=[],"function"===typeof p)for(e=0;e<s;++e)o[e]=+p.call(this,g[e],e);else for(e=0;e<s;++e)o[e]=p;if(i=[],"function"===typeof d)for(e=0;e<r;++e)i[e]=+d.call(this,y[e],e);else for(e=0;e<r;++e)i[e]=d;function v(n,a){if(!t){for(t=new Array(r),u=0;u<r;++u)t[u]=[];for(u=0;u<s;++u){var o=g[u];t[o.source.index].push(o.target),t[o.target.index].push(o.source)}}var i,l=t[e],u=-1,c=l.length;while(++u<c)if(!isNaN(i=l[u][n]))return i;return Math.random()*a}return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){if(n||(n=t.behavior.drag().origin(D).on("dragstart.force",ci).on("drag.force",x).on("dragend.force",fi)),!arguments.length)return n;this.on("mouseover.force",pi).on("mouseout.force",di).call(n)},t.rebind(l,s,"on")};var vi=20,mi=1,yi=1/0;function gi(e,n){return t.rebind(e,n,"sort","children","value"),e.nodes=e,e.links=Ti,e}function bi(e,t){var n=[e];while(null!=(e=n.pop())){var r,a;if(t(e),(a=e.children)&&(r=a.length))while(--r>=0)n.push(a[r])}}function xi(e,t){var n=[e],r=[];while(null!=(e=n.pop()))if(r.push(e),(o=e.children)&&(a=o.length)){var a,o,i=-1;while(++i<a)n.push(o[i])}while(null!=(e=r.pop()))t(e)}function _i(e){return e.children}function wi(e){return e.value}function ki(e,t){return t.value-e.value}function Ti(e){return t.merge(e.map((function(e){return(e.children||[]).map((function(t){return{source:e,target:t}}))})))}t.layout.hierarchy=function(){var e=ki,t=_i,n=wi;function r(a){var o,i=[a],l=[];a.depth=0;while(null!=(o=i.pop()))if(l.push(o),(u=t.call(r,o,o.depth))&&(s=u.length)){var s,u,c;while(--s>=0)i.push(c=u[s]),c.parent=o,c.depth=o.depth+1;n&&(o.value=0),o.children=u}else n&&(o.value=+n.call(r,o,o.depth)||0),delete o.children;return xi(a,(function(t){var r,a;e&&(r=t.children)&&r.sort(e),n&&(a=t.parent)&&(a.value+=t.value)})),l}return r.sort=function(t){return arguments.length?(e=t,r):e},r.children=function(e){return arguments.length?(t=e,r):t},r.value=function(e){return arguments.length?(n=e,r):n},r.revalue=function(e){return n&&(bi(e,(function(e){e.children&&(e.value=0)})),xi(e,(function(e){var t;e.children||(e.value=+n.call(r,e,e.depth)||0),(t=e.parent)&&(t.value+=e.value)}))),e},r},t.layout.partition=function(){var e=t.layout.hierarchy(),n=[1,1];function r(e,t,n,a){var o=e.children;if(e.x=t,e.y=e.depth*a,e.dx=n,e.dy=a,o&&(i=o.length)){var i,l,s,u=-1;n=e.value?n/e.value:0;while(++u<i)r(l=o[u],t,s=l.value*n,a),t+=s}}function a(e){var t=e.children,n=0;if(t&&(r=t.length)){var r,o=-1;while(++o<r)n=Math.max(n,a(t[o]))}return 1+n}function o(t,o){var i=e.call(this,t,o);return r(i[0],0,n[0],n[1]/a(i[0])),i}return o.size=function(e){return arguments.length?(n=e,o):n},gi(o,e)},t.layout.pie=function(){var e=Number,n=Ei,r=0,a=Ae,o=0;function i(l){var s,u=l.length,c=l.map((function(t,n){return+e.call(i,t,n)})),f=+("function"===typeof r?r.apply(this,arguments):r),p=("function"===typeof a?a.apply(this,arguments):a)-f,d=Math.min(Math.abs(p)/u,+("function"===typeof o?o.apply(this,arguments):o)),h=d*(p<0?-1:1),v=t.sum(c),m=v?(p-u*h)/v:0,y=t.range(u),g=[];return null!=n&&y.sort(n===Ei?function(e,t){return c[t]-c[e]}:function(e,t){return n(l[e],l[t])}),y.forEach((function(e){g[e]={data:l[e],value:s=c[e],startAngle:f,endAngle:f+=s*m+h,padAngle:d}})),g}return i.value=function(t){return arguments.length?(e=t,i):e},i.sort=function(e){return arguments.length?(n=e,i):n},i.startAngle=function(e){return arguments.length?(r=e,i):r},i.endAngle=function(e){return arguments.length?(a=e,i):a},i.padAngle=function(e){return arguments.length?(o=e,i):o},i};var Ei={};function Oi(e){return e.x}function Mi(e){return e.y}function Si(e,t,n){e.y0=t,e.y=n}t.layout.stack=function(){var e=D,n=Pi,r=Li,a=Si,o=Oi,i=Mi;function l(s,u){if(!(d=s.length))return s;var c=s.map((function(t,n){return e.call(l,t,n)})),f=c.map((function(e){return e.map((function(e,t){return[o.call(l,e,t),i.call(l,e,t)]}))})),p=n.call(l,f,u);c=t.permute(c,p),f=t.permute(f,p);var d,h,v,m,y=r.call(l,f,u),g=c[0].length;for(v=0;v<g;++v)for(a.call(l,c[0][v],m=y[v],f[0][v][1]),h=1;h<d;++h)a.call(l,c[h][v],m+=f[h-1][v][1],f[h][v][1]);return s}return l.values=function(t){return arguments.length?(e=t,l):e},l.order=function(e){return arguments.length?(n="function"===typeof e?e:Ci.get(e)||Pi,l):n},l.offset=function(e){return arguments.length?(r="function"===typeof e?e:Ai.get(e)||Li,l):r},l.x=function(e){return arguments.length?(o=e,l):o},l.y=function(e){return arguments.length?(i=e,l):i},l.out=function(e){return arguments.length?(a=e,l):a},l};var Ci=t.map({"inside-out":function(e){var n,r,a=e.length,o=e.map(Di),i=e.map(ji),l=t.range(a).sort((function(e,t){return o[e]-o[t]})),s=0,u=0,c=[],f=[];for(n=0;n<a;++n)r=l[n],s<u?(s+=i[r],c.push(r)):(u+=i[r],f.push(r));return f.reverse().concat(c)},reverse:function(e){return t.range(e.length).reverse()},default:Pi}),Ai=t.map({silhouette:function(e){var t,n,r,a=e.length,o=e[0].length,i=[],l=0,s=[];for(n=0;n<o;++n){for(t=0,r=0;t<a;t++)r+=e[t][n][1];r>l&&(l=r),i.push(r)}for(n=0;n<o;++n)s[n]=(l-i[n])/2;return s},wiggle:function(e){var t,n,r,a,o,i,l,s,u,c=e.length,f=e[0],p=f.length,d=[];for(d[0]=s=u=0,n=1;n<p;++n){for(t=0,a=0;t<c;++t)a+=e[t][n][1];for(t=0,o=0,l=f[n][0]-f[n-1][0];t<c;++t){for(r=0,i=(e[t][n][1]-e[t][n-1][1])/(2*l);r<t;++r)i+=(e[r][n][1]-e[r][n-1][1])/l;o+=i*e[t][n][1]}d[n]=s-=a?o/a*l:0,s<u&&(u=s)}for(n=0;n<p;++n)d[n]-=u;return d},expand:function(e){var t,n,r,a=e.length,o=e[0].length,i=1/a,l=[];for(n=0;n<o;++n){for(t=0,r=0;t<a;t++)r+=e[t][n][1];if(r)for(t=0;t<a;t++)e[t][n][1]/=r;else for(t=0;t<a;t++)e[t][n][1]=i}for(n=0;n<o;++n)l[n]=0;return l},zero:Li});function Pi(e){return t.range(e.length)}function Li(e){var t=-1,n=e[0].length,r=[];while(++t<n)r[t]=0;return r}function Di(e){for(var t,n=1,r=0,a=e[0][1],o=e.length;n<o;++n)(t=e[n][1])>a&&(r=n,a=t);return r}function ji(e){return e.reduce(Ii,0)}function Ii(e,t){return e+t[1]}function Ri(e,t){return zi(e,Math.ceil(Math.log(t.length)/Math.LN2+1))}function zi(e,t){var n=-1,r=+e[0],a=(e[1]-r)/t,o=[];while(++n<=t)o[n]=a*n+r;return o}function Ni(e){return[t.min(e),t.max(e)]}function Fi(e,t){return e.value-t.value}function Bi(e,t){var n=e._pack_next;e._pack_next=t,t._pack_prev=e,t._pack_next=n,n._pack_prev=t}function Vi(e,t){e._pack_next=t,t._pack_prev=e}function Hi(e,t){var n=t.x-e.x,r=t.y-e.y,a=e.r+t.r;return.999*a*a>n*n+r*r}function Ui(e){if((t=e.children)&&(s=t.length)){var t,n,r,a,o,i,l,s,u=1/0,c=-1/0,f=1/0,p=-1/0;if(t.forEach(Wi),n=t[0],n.x=-n.r,n.y=0,b(n),s>1&&(r=t[1],r.x=r.r,r.y=0,b(r),s>2))for(a=t[2],Gi(n,r,a),b(a),Bi(n,a),n._pack_prev=a,Bi(a,r),r=n._pack_next,o=3;o<s;o++){Gi(n,r,a=t[o]);var d=0,h=1,v=1;for(i=r._pack_next;i!==r;i=i._pack_next,h++)if(Hi(i,a)){d=1;break}if(1==d)for(l=n._pack_prev;l!==i._pack_prev;l=l._pack_prev,v++)if(Hi(l,a))break;d?(h<v||h==v&&r.r<n.r?Vi(n,r=i):Vi(n=l,r),o--):(Bi(n,a),r=a,b(a))}var m=(u+c)/2,y=(f+p)/2,g=0;for(o=0;o<s;o++)a=t[o],a.x-=m,a.y-=y,g=Math.max(g,a.r+Math.sqrt(a.x*a.x+a.y*a.y));e.r=g,t.forEach(qi)}function b(e){u=Math.min(e.x-e.r,u),c=Math.max(e.x+e.r,c),f=Math.min(e.y-e.r,f),p=Math.max(e.y+e.r,p)}}function Wi(e){e._pack_next=e._pack_prev=e}function qi(e){delete e._pack_next,delete e._pack_prev}function $i(e,t,n,r){var a=e.children;if(e.x=t+=r*e.x,e.y=n+=r*e.y,e.r*=r,a){var o=-1,i=a.length;while(++o<i)$i(a[o],t,n,r)}}function Gi(e,t,n){var r=e.r+n.r,a=t.x-e.x,o=t.y-e.y;if(r&&(a||o)){var i=t.r+n.r,l=a*a+o*o;i*=i,r*=r;var s=.5+(r-i)/(2*l),u=Math.sqrt(Math.max(0,2*i*(r+l)-(r-=l)*r-i*i))/(2*l);n.x=e.x+s*a+u*o,n.y=e.y+s*o-u*a}else n.x=e.x+r,n.y=e.y}function Yi(e,t){return e.parent==t.parent?1:2}function Ki(e){var t=e.children;return t.length?t[0]:e.t}function Xi(e){var t,n=e.children;return(t=n.length)?n[t-1]:e.t}function Zi(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Ji(e){var t,n=0,r=0,a=e.children,o=a.length;while(--o>=0)t=a[o],t.z+=n,t.m+=n,n+=t.s+(r+=t.c)}function Qi(e,t,n){return e.a.parent===t.parent?e.a:n}function el(e){return 1+t.max(e,(function(e){return e.y}))}function tl(e){return e.reduce((function(e,t){return e+t.x}),0)/e.length}function nl(e){var t=e.children;return t&&t.length?nl(t[0]):e}function rl(e){var t,n=e.children;return n&&(t=n.length)?rl(n[t-1]):e}function al(e){return{x:e.x,y:e.y,dx:e.dx,dy:e.dy}}function ol(e,t){var n=e.x+t[3],r=e.y+t[0],a=e.dx-t[1]-t[3],o=e.dy-t[0]-t[2];return a<0&&(n+=a/2,a=0),o<0&&(r+=o/2,o=0),{x:n,y:r,dx:a,dy:o}}function il(e){var t=e[0],n=e[e.length-1];return t<n?[t,n]:[n,t]}function ll(e){return e.rangeExtent?e.rangeExtent():il(e.range())}function sl(e,t,n,r){var a=n(e[0],e[1]),o=r(t[0],t[1]);return function(e){return o(a(e))}}function ul(e,t){var n,r=0,a=e.length-1,o=e[r],i=e[a];return i<o&&(n=r,r=a,a=n,n=o,o=i,i=n),e[r]=t.floor(o),e[a]=t.ceil(i),e}function cl(e){return e?{floor:function(t){return Math.floor(t/e)*e},ceil:function(t){return Math.ceil(t/e)*e}}:fl}t.layout.histogram=function(){var e=!0,n=Number,r=Ni,a=Ri;function o(o,i){var l,s,u=[],c=o.map(n,this),f=r.call(this,c,i),p=a.call(this,f,c,i),d=(i=-1,c.length),h=p.length-1,v=e?1:1/d;while(++i<h)l=u[i]=[],l.dx=p[i+1]-(l.x=p[i]),l.y=0;if(h>0){i=-1;while(++i<d)s=c[i],s>=f[0]&&s<=f[1]&&(l=u[t.bisect(p,s,1,h)-1],l.y+=v,l.push(o[i]))}return u}return o.value=function(e){return arguments.length?(n=e,o):n},o.range=function(e){return arguments.length?(r=Tt(e),o):r},o.bins=function(e){return arguments.length?(a="number"===typeof e?function(t){return zi(t,e)}:Tt(e),o):a},o.frequency=function(t){return arguments.length?(e=!!t,o):e},o},t.layout.pack=function(){var e,n=t.layout.hierarchy().sort(Fi),r=0,a=[1,1];function o(t,o){var i=n.call(this,t,o),l=i[0],s=a[0],u=a[1],c=null==e?Math.sqrt:"function"===typeof e?e:function(){return e};if(l.x=l.y=0,xi(l,(function(e){e.r=+c(e.value)})),xi(l,Ui),r){var f=r*(e?1:Math.max(2*l.r/s,2*l.r/u))/2;xi(l,(function(e){e.r+=f})),xi(l,Ui),xi(l,(function(e){e.r-=f}))}return $i(l,s/2,u/2,e?1:1/Math.max(2*l.r/s,2*l.r/u)),i}return o.size=function(e){return arguments.length?(a=e,o):a},o.radius=function(t){return arguments.length?(e=null==t||"function"===typeof t?t:+t,o):e},o.padding=function(e){return arguments.length?(r=+e,o):r},gi(o,n)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),n=Yi,r=[1,1],a=null;function o(t,o){var u=e.call(this,t,o),f=u[0],p=i(f);if(xi(p,l),p.parent.m=-p.z,bi(p,s),a)bi(f,c);else{var d=f,h=f,v=f;bi(f,(function(e){e.x<d.x&&(d=e),e.x>h.x&&(h=e),e.depth>v.depth&&(v=e)}));var m=n(d,h)/2-d.x,y=r[0]/(h.x+n(h,d)/2+m),g=r[1]/(v.depth||1);bi(f,(function(e){e.x=(e.x+m)*y,e.y=e.depth*g}))}return u}function i(e){var t,n={A:null,children:[e]},r=[n];while(null!=(t=r.pop()))for(var a,o=t.children,i=0,l=o.length;i<l;++i)r.push((o[i]=a={_:o[i],parent:t,children:(a=o[i].children)&&a.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:i}).a=a);return n.children[0]}function l(e){var t=e.children,r=e.parent.children,a=e.i?r[e.i-1]:null;if(t.length){Ji(e);var o=(t[0].z+t[t.length-1].z)/2;a?(e.z=a.z+n(e._,a._),e.m=e.z-o):e.z=o}else a&&(e.z=a.z+n(e._,a._));e.parent.A=u(e,a,e.parent.A||r[0])}function s(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function u(e,t,r){if(t){var a,o=e,i=e,l=t,s=o.parent.children[0],u=o.m,c=i.m,f=l.m,p=s.m;while(l=Xi(l),o=Ki(o),l&&o)s=Ki(s),i=Xi(i),i.a=e,a=l.z+f-o.z-u+n(l._,o._),a>0&&(Zi(Qi(l,e,r),e,a),u+=a,c+=a),f+=l.m,u+=o.m,p+=s.m,c+=i.m;l&&!Xi(i)&&(i.t=l,i.m+=f-c),o&&!Ki(s)&&(s.t=o,s.m+=u-p,r=e)}return r}function c(e){e.x*=r[0],e.y=e.depth*r[1]}return o.separation=function(e){return arguments.length?(n=e,o):n},o.size=function(e){return arguments.length?(a=null==(r=e)?c:null,o):a?null:r},o.nodeSize=function(e){return arguments.length?(a=null==(r=e)?null:c,o):a?r:null},gi(o,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),n=Yi,r=[1,1],a=!1;function o(t,o){var i,l=e.call(this,t,o),s=l[0],u=0;xi(s,(function(e){var t=e.children;t&&t.length?(e.x=tl(t),e.y=el(t)):(e.x=i?u+=n(e,i):0,e.y=0,i=e)}));var c=nl(s),f=rl(s),p=c.x-n(c,f)/2,d=f.x+n(f,c)/2;return xi(s,a?function(e){e.x=(e.x-s.x)*r[0],e.y=(s.y-e.y)*r[1]}:function(e){e.x=(e.x-p)/(d-p)*r[0],e.y=(1-(s.y?e.y/s.y:1))*r[1]}),l}return o.separation=function(e){return arguments.length?(n=e,o):n},o.size=function(e){return arguments.length?(a=null==(r=e),o):a?null:r},o.nodeSize=function(e){return arguments.length?(a=null!=(r=e),o):a?r:null},gi(o,e)},t.layout.treemap=function(){var e,n=t.layout.hierarchy(),r=Math.round,a=[1,1],o=null,i=al,l=!1,s="squarify",u=.5*(1+Math.sqrt(5));function c(e,t){var n,r,a=-1,o=e.length;while(++a<o)r=(n=e[a]).value*(t<0?0:t),n.area=isNaN(r)||r<=0?0:r}function f(e){var t=e.children;if(t&&t.length){var n,r,a,o=i(e),l=[],u=t.slice(),p=1/0,v="slice"===s?o.dx:"dice"===s?o.dy:"slice-dice"===s?1&e.depth?o.dy:o.dx:Math.min(o.dx,o.dy);c(u,o.dx*o.dy/e.value),l.area=0;while((a=u.length)>0)l.push(n=u[a-1]),l.area+=n.area,"squarify"!==s||(r=d(l,v))<=p?(u.pop(),p=r):(l.area-=l.pop().area,h(l,v,o,!1),v=Math.min(o.dx,o.dy),l.length=l.area=0,p=1/0);l.length&&(h(l,v,o,!0),l.length=l.area=0),t.forEach(f)}}function p(e){var t=e.children;if(t&&t.length){var n,r=i(e),a=t.slice(),o=[];c(a,r.dx*r.dy/e.value),o.area=0;while(n=a.pop())o.push(n),o.area+=n.area,null!=n.z&&(h(o,n.z?r.dx:r.dy,r,!a.length),o.length=o.area=0);t.forEach(p)}}function d(e,t){var n,r=e.area,a=0,o=1/0,i=-1,l=e.length;while(++i<l)(n=e[i].area)&&(n<o&&(o=n),n>a&&(a=n));return r*=r,t*=t,r?Math.max(t*a*u/r,r/(t*o*u)):1/0}function h(e,t,n,a){var o,i=-1,l=e.length,s=n.x,u=n.y,c=t?r(e.area/t):0;if(t==n.dx){(a||c>n.dy)&&(c=n.dy);while(++i<l)o=e[i],o.x=s,o.y=u,o.dy=c,s+=o.dx=Math.min(n.x+n.dx-s,c?r(o.area/c):0);o.z=!0,o.dx+=n.x+n.dx-s,n.y+=c,n.dy-=c}else{(a||c>n.dx)&&(c=n.dx);while(++i<l)o=e[i],o.x=s,o.y=u,o.dx=c,u+=o.dy=Math.min(n.y+n.dy-u,c?r(o.area/c):0);o.z=!1,o.dy+=n.y+n.dy-u,n.x+=c,n.dx-=c}}function v(t){var r=e||n(t),o=r[0];return o.x=o.y=0,o.value?(o.dx=a[0],o.dy=a[1]):o.dx=o.dy=0,e&&n.revalue(o),c([o],o.dx*o.dy/o.value),(e?p:f)(o),l&&(e=r),r}return v.size=function(e){return arguments.length?(a=e,v):a},v.padding=function(e){if(!arguments.length)return o;function t(t){var n=e.call(v,t,t.depth);return null==n?al(t):ol(t,"number"===typeof n?[n,n,n,n]:n)}function n(t){return ol(t,e)}var r;return i=null==(o=e)?al:"function"===(r=typeof e)?t:"number"===r?(e=[e,e,e,e],n):n,v},v.round=function(e){return arguments.length?(r=e?Math.round:Number,v):r!=Number},v.sticky=function(t){return arguments.length?(l=t,e=null,v):l},v.ratio=function(e){return arguments.length?(u=e,v):u},v.mode=function(e){return arguments.length?(s=e+"",v):s},gi(v,n)},t.random={normal:function(e,t){var n=arguments.length;return n<2&&(t=1),n<1&&(e=0),function(){var n,r,a;do{n=2*Math.random()-1,r=2*Math.random()-1,a=n*n+r*r}while(!a||a>1);return e+t*n*Math.sqrt(-2*Math.log(a)/a)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var n=t.random.irwinHall(e);return function(){return n()/e}},irwinHall:function(e){return function(){for(var t=0,n=0;n<e;n++)t+=Math.random();return t}}},t.scale={};var fl={floor:D,ceil:D};function pl(e,n,r,a){var o=[],i=[],l=0,s=Math.min(e.length,n.length)-1;e[s]<e[0]&&(e=e.slice().reverse(),n=n.slice().reverse());while(++l<=s)o.push(r(e[l-1],e[l])),i.push(a(n[l-1],n[l]));return function(n){var r=t.bisect(e,n,1,s)-1;return i[r](o[r](n))}}function dl(e,t,n,r){var a,o;function i(){var i=Math.min(e.length,t.length)>2?pl:sl,s=r?ii:oi;return a=i(e,t,s,n),o=i(t,e,s,Oo),l}function l(e){return a(e)}return l.invert=function(e){return o(e)},l.domain=function(t){return arguments.length?(e=t.map(Number),i()):e},l.range=function(e){return arguments.length?(t=e,i()):t},l.rangeRound=function(e){return l.range(e).interpolate(Go)},l.clamp=function(e){return arguments.length?(r=e,i()):r},l.interpolate=function(e){return arguments.length?(n=e,i()):n},l.ticks=function(t){return yl(e,t)},l.tickFormat=function(t,n){return gl(e,t,n)},l.nice=function(t){return vl(e,t),i()},l.copy=function(){return dl(e,t,n,r)},i()}function hl(e,n){return t.rebind(e,n,"range","rangeRound","interpolate","clamp")}function vl(e,t){return ul(e,cl(ml(e,t)[2])),ul(e,cl(ml(e,t)[2])),e}function ml(e,t){null==t&&(t=10);var n=il(e),r=n[1]-n[0],a=Math.pow(10,Math.floor(Math.log(r/t)/Math.LN10)),o=t/r*a;return o<=.15?a*=10:o<=.35?a*=5:o<=.75&&(a*=2),n[0]=Math.ceil(n[0]/a)*a,n[1]=Math.floor(n[1]/a)*a+.5*a,n[2]=a,n}function yl(e,n){return t.range.apply(t,ml(e,n))}function gl(e,n,r){var a=ml(e,n);if(r){var o=Ht.exec(r);if(o.shift(),"s"===o[8]){var i=t.formatPrefix(Math.max(b(a[0]),b(a[1])));return o[7]||(o[7]="."+xl(i.scale(a[2]))),o[8]="f",r=t.format(o.join("")),function(e){return r(i.scale(e))+i.symbol}}o[7]||(o[7]="."+_l(o[8],a)),r=o.join("")}else r=",."+xl(a[2])+"f";return t.format(r)}t.scale.linear=function(){return dl([0,1],[0,1],Oo,!1)};var bl={s:1,g:1,p:1,r:1,e:1};function xl(e){return-Math.floor(Math.log(e)/Math.LN10+.01)}function _l(e,t){var n=xl(t[2]);return e in bl?Math.abs(n-xl(Math.max(b(t[0]),b(t[1]))))+ +("e"!==e):n-2*("%"===e)}function wl(e,n,r,a){function o(e){return(r?Math.log(e<0?0:e):-Math.log(e>0?0:-e))/Math.log(n)}function i(e){return r?Math.pow(n,e):-Math.pow(n,-e)}function l(t){return e(o(t))}return l.invert=function(t){return i(e.invert(t))},l.domain=function(t){return arguments.length?(r=t[0]>=0,e.domain((a=t.map(Number)).map(o)),l):a},l.base=function(t){return arguments.length?(n=+t,e.domain(a.map(o)),l):n},l.nice=function(){var t=ul(a.map(o),r?Math:Tl);return e.domain(t),a=t.map(i),l},l.ticks=function(){var e=il(a),t=[],l=e[0],s=e[1],u=Math.floor(o(l)),c=Math.ceil(o(s)),f=n%1?2:n;if(isFinite(c-u)){if(r){for(;u<c;u++)for(var p=1;p<f;p++)t.push(i(u)*p);t.push(i(u))}else for(t.push(i(u));u++<c;)for(p=f-1;p>0;p--)t.push(i(u)*p);for(u=0;t[u]<l;u++);for(c=t.length;t[c-1]>s;c--);t=t.slice(u,c)}return t},l.tickFormat=function(e,r){if(!arguments.length)return kl;arguments.length<2?r=kl:"function"!==typeof r&&(r=t.format(r));var a=Math.max(1,n*e/l.ticks().length);return function(e){var t=e/i(Math.round(o(e)));return t*n<n-.5&&(t*=n),t<=a?r(e):""}},l.copy=function(){return wl(e.copy(),n,r,a)},hl(l,e)}t.scale.log=function(){return wl(t.scale.linear().domain([0,1]),10,!0,[1,10])};var kl=t.format(".0e"),Tl={floor:function(e){return-Math.ceil(-e)},ceil:function(e){return-Math.floor(-e)}};function El(e,t,n){var r=Ol(t),a=Ol(1/t);function o(t){return e(r(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(r)),o):n},o.ticks=function(e){return yl(n,e)},o.tickFormat=function(e,t){return gl(n,e,t)},o.nice=function(e){return o.domain(vl(n,e))},o.exponent=function(i){return arguments.length?(r=Ol(t=i),a=Ol(1/t),e.domain(n.map(r)),o):t},o.copy=function(){return El(e.copy(),t,n)},hl(o,e)}function Ol(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Ml(e,n){var r,a,o;function i(t){return a[((r.get(t)||("range"===n.t?r.set(t,e.push(t)):NaN))-1)%a.length]}function l(n,r){return t.range(e.length).map((function(e){return n+r*e}))}return i.domain=function(t){if(!arguments.length)return e;e=[],r=new w;var a,o=-1,l=t.length;while(++o<l)r.has(a=t[o])||r.set(a,e.push(a));return i[n.t].apply(i,n.a)},i.range=function(e){return arguments.length?(a=e,o=0,n={t:"range",a:arguments},i):a},i.rangePoints=function(t,r){arguments.length<2&&(r=0);var s=t[0],u=t[1],c=e.length<2?(s=(s+u)/2,0):(u-s)/(e.length-1+r);return a=l(s+c*r/2,c),o=0,n={t:"rangePoints",a:arguments},i},i.rangeRoundPoints=function(t,r){arguments.length<2&&(r=0);var s=t[0],u=t[1],c=e.length<2?(s=u=Math.round((s+u)/2),0):(u-s)/(e.length-1+r)|0;return a=l(s+Math.round(c*r/2+(u-s-(e.length-1+r)*c)/2),c),o=0,n={t:"rangeRoundPoints",a:arguments},i},i.rangeBands=function(t,r,s){arguments.length<2&&(r=0),arguments.length<3&&(s=r);var u=t[1]<t[0],c=t[u-0],f=t[1-u],p=(f-c)/(e.length-r+2*s);return a=l(c+p*s,p),u&&a.reverse(),o=p*(1-r),n={t:"rangeBands",a:arguments},i},i.rangeRoundBands=function(t,r,s){arguments.length<2&&(r=0),arguments.length<3&&(s=r);var u=t[1]<t[0],c=t[u-0],f=t[1-u],p=Math.floor((f-c)/(e.length-r+2*s));return a=l(c+Math.round((f-c-(e.length-r)*p)/2),p),u&&a.reverse(),o=Math.round(p*(1-r)),n={t:"rangeRoundBands",a:arguments},i},i.rangeBand=function(){return o},i.rangeExtent=function(){return il(n.a[0])},i.copy=function(){return Ml(e,n)},i.domain(e)}t.scale.pow=function(){return El(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return Ml([],{t:"range",a:[[]]})},t.scale.category10=function(){return t.scale.ordinal().range(Sl)},t.scale.category20=function(){return t.scale.ordinal().range(Cl)},t.scale.category20b=function(){return t.scale.ordinal().range(Al)},t.scale.category20c=function(){return t.scale.ordinal().range(Pl)};var Sl=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(vt),Cl=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(vt),Al=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(vt),Pl=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(vt);function Ll(e,n){var r;function a(){var a=0,i=n.length;r=[];while(++a<i)r[a-1]=t.quantile(e,a/i);return o}function o(e){if(!isNaN(e=+e))return n[t.bisect(r,e)]}return o.domain=function(t){return arguments.length?(e=t.map(h).filter(v).sort(d),a()):e},o.range=function(e){return arguments.length?(n=e,a()):n},o.quantiles=function(){return r},o.invertExtent=function(t){return t=n.indexOf(t),t<0?[NaN,NaN]:[t>0?r[t-1]:e[0],t<r.length?r[t]:e[e.length-1]]},o.copy=function(){return Ll(e,n)},a()}function Dl(e,t,n){var r,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(r*(t-e))))]}function i(){return r=n.length/(t-e),a=n.length-1,o}return o.domain=function(n){return arguments.length?(e=+n[0],t=+n[n.length-1],i()):[e,t]},o.range=function(e){return arguments.length?(n=e,i()):n},o.invertExtent=function(t){return t=n.indexOf(t),t=t<0?NaN:t/r+e,[t,t+1/r]},o.copy=function(){return Dl(e,t,n)},i()}function jl(e,n){function r(r){if(r<=r)return n[t.bisect(e,r)]}return r.domain=function(t){return arguments.length?(e=t,r):e},r.range=function(e){return arguments.length?(n=e,r):n},r.invertExtent=function(t){return t=n.indexOf(t),[e[t-1],e[t]]},r.copy=function(){return jl(e,n)},r}function Il(e){function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=n.map(t),t):e},t.ticks=function(t){return yl(e,t)},t.tickFormat=function(t,n){return gl(e,t,n)},t.copy=function(){return Il(e)},t}function Rl(){return 0}t.scale.quantile=function(){return Ll([],[])},t.scale.quantize=function(){return Dl(0,1,[0,1])},t.scale.threshold=function(){return jl([.5],[0,1])},t.scale.identity=function(){return Il([0,1])},t.svg={},t.svg.arc=function(){var e=Nl,t=Fl,n=Rl,r=zl,a=Bl,o=Vl,i=Hl;function l(){var l=Math.max(0,+e.apply(this,arguments)),u=Math.max(0,+t.apply(this,arguments)),c=a.apply(this,arguments)-Le,f=o.apply(this,arguments)-Le,p=Math.abs(f-c),d=c>f?0:1;if(u<l&&(h=u,u=l,l=h),p>=Pe)return s(u,d)+(l?s(l,1-d):"")+"Z";var h,v,m,y,g,b,x,_,w,k,T,E,O=0,M=0,S=[];if((y=(+i.apply(this,arguments)||0)/2)&&(m=r===zl?Math.sqrt(l*l+u*u):+r.apply(this,arguments),d||(M*=-1),u&&(M=Ne(m/u*Math.sin(y))),l&&(O=Ne(m/l*Math.sin(y)))),u){g=u*Math.cos(c+M),b=u*Math.sin(c+M),x=u*Math.cos(f-M),_=u*Math.sin(f-M);var C=Math.abs(f-c-2*M)<=Ce?0:1;if(M&&Ul(g,b,x,_)===d^C){var A=(c+f)/2;g=u*Math.cos(A),b=u*Math.sin(A),x=_=null}}else g=b=0;if(l){w=l*Math.cos(f-O),k=l*Math.sin(f-O),T=l*Math.cos(c+O),E=l*Math.sin(c+O);var P=Math.abs(c-f+2*O)<=Ce?0:1;if(O&&Ul(w,k,T,E)===1-d^P){var L=(c+f)/2;w=l*Math.cos(L),k=l*Math.sin(L),T=E=null}}else w=k=0;if(p>Me&&(h=Math.min(Math.abs(u-l)/2,+n.apply(this,arguments)))>.001){v=l<u^d?0:1;var D=h,j=h;if(p<Ce){var I=null==T?[w,k]:null==x?[g,b]:Aa([g,b],[T,E],[x,_],[w,k]),R=g-I[0],z=b-I[1],N=x-I[0],F=_-I[1],B=1/Math.sin(Math.acos((R*N+z*F)/(Math.sqrt(R*R+z*z)*Math.sqrt(N*N+F*F)))/2),V=Math.sqrt(I[0]*I[0]+I[1]*I[1]);j=Math.min(h,(l-V)/(B-1)),D=Math.min(h,(u-V)/(B+1))}if(null!=x){var H=Wl(null==T?[w,k]:[T,E],[g,b],u,D,d),U=Wl([x,_],[w,k],u,D,d);h===D?S.push("M",H[0],"A",D,",",D," 0 0,",v," ",H[1],"A",u,",",u," 0 ",1-d^Ul(H[1][0],H[1][1],U[1][0],U[1][1]),",",d," ",U[1],"A",D,",",D," 0 0,",v," ",U[0]):S.push("M",H[0],"A",D,",",D," 0 1,",v," ",U[0])}else S.push("M",g,",",b);if(null!=T){var W=Wl([g,b],[T,E],l,-j,d),q=Wl([w,k],null==x?[g,b]:[x,_],l,-j,d);h===j?S.push("L",q[0],"A",j,",",j," 0 0,",v," ",q[1],"A",l,",",l," 0 ",d^Ul(q[1][0],q[1][1],W[1][0],W[1][1]),",",1-d," ",W[1],"A",j,",",j," 0 0,",v," ",W[0]):S.push("L",q[0],"A",j,",",j," 0 0,",v," ",W[0])}else S.push("L",w,",",k)}else S.push("M",g,",",b),null!=x&&S.push("A",u,",",u," 0 ",C,",",d," ",x,",",_),S.push("L",w,",",k),null!=T&&S.push("A",l,",",l," 0 ",P,",",1-d," ",T,",",E);return S.push("Z"),S.join("")}function s(e,t){return"M0,"+e+"A"+e+","+e+" 0 1,"+t+" 0,"+-e+"A"+e+","+e+" 0 1,"+t+" 0,"+e}return l.innerRadius=function(t){return arguments.length?(e=Tt(t),l):e},l.outerRadius=function(e){return arguments.length?(t=Tt(e),l):t},l.cornerRadius=function(e){return arguments.length?(n=Tt(e),l):n},l.padRadius=function(e){return arguments.length?(r=e==zl?zl:Tt(e),l):r},l.startAngle=function(e){return arguments.length?(a=Tt(e),l):a},l.endAngle=function(e){return arguments.length?(o=Tt(e),l):o},l.padAngle=function(e){return arguments.length?(i=Tt(e),l):i},l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+a.apply(this,arguments)+ +o.apply(this,arguments))/2-Le;return[Math.cos(r)*n,Math.sin(r)*n]},l};var zl="auto";function Nl(e){return e.innerRadius}function Fl(e){return e.outerRadius}function Bl(e){return e.startAngle}function Vl(e){return e.endAngle}function Hl(e){return e&&e.padAngle}function Ul(e,t,n,r){return(e-n)*t-(t-r)*e>0?0:1}function Wl(e,t,n,r,a){var o=e[0]-t[0],i=e[1]-t[1],l=(a?r:-r)/Math.sqrt(o*o+i*i),s=l*i,u=-l*o,c=e[0]+s,f=e[1]+u,p=t[0]+s,d=t[1]+u,h=(c+p)/2,v=(f+d)/2,m=p-c,y=d-f,g=m*m+y*y,b=n-r,x=c*d-p*f,_=(y<0?-1:1)*Math.sqrt(Math.max(0,b*b*g-x*x)),w=(x*y-m*_)/g,k=(-x*m-y*_)/g,T=(x*y+m*_)/g,E=(-x*m+y*_)/g,O=w-h,M=k-v,S=T-h,C=E-v;return O*O+M*M>S*S+C*C&&(w=T,k=E),[[w-s,k-u],[w*n/b,k*n/b]]}function ql(e){var t=Ta,n=Ea,r=lr,a=Gl,o=a.key,i=.7;function l(o){var l,s=[],u=[],c=-1,f=o.length,p=Tt(t),d=Tt(n);function h(){s.push("M",a(e(u),i))}while(++c<f)r.call(this,l=o[c],c)?u.push([+p.call(this,l,c),+d.call(this,l,c)]):u.length&&(h(),u=[]);return u.length&&h(),s.length?s.join(""):null}return l.x=function(e){return arguments.length?(t=e,l):t},l.y=function(e){return arguments.length?(n=e,l):n},l.defined=function(e){return arguments.length?(r=e,l):r},l.interpolate=function(e){return arguments.length?(o="function"===typeof e?a=e:(a=$l.get(e)||Gl).key,l):o},l.tension=function(e){return arguments.length?(i=e,l):i},l}t.svg.line=function(){return ql(D)};var $l=t.map({linear:Gl,"linear-closed":Yl,step:Kl,"step-before":Xl,"step-after":Zl,basis:rs,"basis-open":as,"basis-closed":os,bundle:is,cardinal:es,"cardinal-open":Jl,"cardinal-closed":Ql,monotone:vs});function Gl(e){return e.length>1?e.join("L"):e+"Z"}function Yl(e){return e.join("L")+"Z"}function Kl(e){var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];while(++t<n)a.push("H",(r[0]+(r=e[t])[0])/2,"V",r[1]);return n>1&&a.push("H",r[0]),a.join("")}function Xl(e){var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];while(++t<n)a.push("V",(r=e[t])[1],"H",r[0]);return a.join("")}function Zl(e){var t=0,n=e.length,r=e[0],a=[r[0],",",r[1]];while(++t<n)a.push("H",(r=e[t])[0],"V",r[1]);return a.join("")}function Jl(e,t){return e.length<4?Gl(e):e[1]+ts(e.slice(1,-1),ns(e,t))}function Ql(e,t){return e.length<3?Yl(e):e[0]+ts((e.push(e[0]),e),ns([e[e.length-2]].concat(e,[e[1]]),t))}function es(e,t){return e.length<3?Gl(e):e[0]+ts(e,ns(e,t))}function ts(e,t){if(t.length<1||e.length!=t.length&&e.length!=t.length+2)return Gl(e);var n=e.length!=t.length,r="",a=e[0],o=e[1],i=t[0],l=i,s=1;if(n&&(r+="Q"+(o[0]-2*i[0]/3)+","+(o[1]-2*i[1]/3)+","+o[0]+","+o[1],a=e[1],s=2),t.length>1){l=t[1],o=e[s],s++,r+="C"+(a[0]+i[0])+","+(a[1]+i[1])+","+(o[0]-l[0])+","+(o[1]-l[1])+","+o[0]+","+o[1];for(var u=2;u<t.length;u++,s++)o=e[s],l=t[u],r+="S"+(o[0]-l[0])+","+(o[1]-l[1])+","+o[0]+","+o[1]}if(n){var c=e[s];r+="Q"+(o[0]+2*l[0]/3)+","+(o[1]+2*l[1]/3)+","+c[0]+","+c[1]}return r}function ns(e,t){var n,r=[],a=(1-t)/2,o=e[0],i=e[1],l=1,s=e.length;while(++l<s)n=o,o=i,i=e[l],r.push([a*(i[0]-n[0]),a*(i[1]-n[1])]);return r}function rs(e){if(e.length<3)return Gl(e);var t=1,n=e.length,r=e[0],a=r[0],o=r[1],i=[a,a,a,(r=e[1])[0]],l=[o,o,o,r[1]],s=[a,",",o,"L",ls(cs,i),",",ls(cs,l)];e.push(e[n-1]);while(++t<=n)r=e[t],i.shift(),i.push(r[0]),l.shift(),l.push(r[1]),fs(s,i,l);return e.pop(),s.push("L",r),s.join("")}function as(e){if(e.length<4)return Gl(e);var t,n=[],r=-1,a=e.length,o=[0],i=[0];while(++r<3)t=e[r],o.push(t[0]),i.push(t[1]);n.push(ls(cs,o)+","+ls(cs,i)),--r;while(++r<a)t=e[r],o.shift(),o.push(t[0]),i.shift(),i.push(t[1]),fs(n,o,i);return n.join("")}function os(e){var t,n,r=-1,a=e.length,o=a+4,i=[],l=[];while(++r<4)n=e[r%a],i.push(n[0]),l.push(n[1]);t=[ls(cs,i),",",ls(cs,l)],--r;while(++r<o)n=e[r%a],i.shift(),i.push(n[0]),l.shift(),l.push(n[1]),fs(t,i,l);return t.join("")}function is(e,t){var n=e.length-1;if(n){var r,a,o=e[0][0],i=e[0][1],l=e[n][0]-o,s=e[n][1]-i,u=-1;while(++u<=n)r=e[u],a=u/n,r[0]=t*r[0]+(1-t)*(o+a*l),r[1]=t*r[1]+(1-t)*(i+a*s)}return rs(e)}function ls(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}$l.forEach((function(e,t){t.key=e,t.closed=/-closed$/.test(e)}));var ss=[0,2/3,1/3,0],us=[0,1/3,2/3,0],cs=[0,1/6,2/3,1/6];function fs(e,t,n){e.push("C",ls(ss,t),",",ls(ss,n),",",ls(us,t),",",ls(us,n),",",ls(cs,t),",",ls(cs,n))}function ps(e,t){return(t[1]-e[1])/(t[0]-e[0])}function ds(e){var t=0,n=e.length-1,r=[],a=e[0],o=e[1],i=r[0]=ps(a,o);while(++t<n)r[t]=(i+(i=ps(a=o,o=e[t+1])))/2;return r[t]=i,r}function hs(e){var t,n,r,a,o=[],i=ds(e),l=-1,s=e.length-1;while(++l<s)t=ps(e[l],e[l+1]),b(t)<Me?i[l]=i[l+1]=0:(n=i[l]/t,r=i[l+1]/t,a=n*n+r*r,a>9&&(a=3*t/Math.sqrt(a),i[l]=a*n,i[l+1]=a*r));l=-1;while(++l<=s)a=(e[Math.min(s,l+1)][0]-e[Math.max(0,l-1)][0])/(6*(1+i[l]*i[l])),o.push([a||0,i[l]*a||0]);return o}function vs(e){return e.length<3?Gl(e):e[0]+ts(e,hs(e))}function ms(e){var t,n,r,a=-1,o=e.length;while(++a<o)t=e[a],n=t[0],r=t[1]-Le,t[0]=n*Math.cos(r),t[1]=n*Math.sin(r);return e}function ys(e){var t=Ta,n=Ta,r=0,a=Ea,o=lr,i=Gl,l=i.key,s=i,u="L",c=.7;function f(l){var f,p,d,h=[],v=[],m=[],y=-1,g=l.length,b=Tt(t),x=Tt(r),_=t===n?function(){return p}:Tt(n),w=r===a?function(){return d}:Tt(a);function k(){h.push("M",i(e(m),c),u,s(e(v.reverse()),c),"Z")}while(++y<g)o.call(this,f=l[y],y)?(v.push([p=+b.call(this,f,y),d=+x.call(this,f,y)]),m.push([+_.call(this,f,y),+w.call(this,f,y)])):v.length&&(k(),v=[],m=[]);return v.length&&k(),h.length?h.join(""):null}return f.x=function(e){return arguments.length?(t=n=e,f):n},f.x0=function(e){return arguments.length?(t=e,f):t},f.x1=function(e){return arguments.length?(n=e,f):n},f.y=function(e){return arguments.length?(r=a=e,f):a},f.y0=function(e){return arguments.length?(r=e,f):r},f.y1=function(e){return arguments.length?(a=e,f):a},f.defined=function(e){return arguments.length?(o=e,f):o},f.interpolate=function(e){return arguments.length?(l="function"===typeof e?i=e:(i=$l.get(e)||Gl).key,s=i.reverse||i,u=i.closed?"M":"L",f):l},f.tension=function(e){return arguments.length?(c=e,f):c},f}function gs(e){return e.radius}function bs(e){return[e.x,e.y]}function xs(e){return function(){var t=e.apply(this,arguments),n=t[0],r=t[1]-Le;return[n*Math.cos(r),n*Math.sin(r)]}}function _s(){return 64}function ws(){return"circle"}function ks(e){var t=Math.sqrt(e/Ce);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}t.svg.line.radial=function(){var e=ql(ms);return e.radius=e.x,delete e.x,e.angle=e.y,delete e.y,e},Xl.reverse=Zl,Zl.reverse=Xl,t.svg.area=function(){return ys(D)},t.svg.area.radial=function(){var e=ys(ms);return e.radius=e.x,delete e.x,e.innerRadius=e.x0,delete e.x0,e.outerRadius=e.x1,delete e.x1,e.angle=e.y,delete e.y,e.startAngle=e.y0,delete e.y0,e.endAngle=e.y1,delete e.y1,e},t.svg.chord=function(){var e=sa,t=ua,n=gs,r=Bl,a=Vl;function o(n,r){var a=i(this,e,n,r),o=i(this,t,n,r);return"M"+a.p0+s(a.r,a.p1,a.a1-a.a0)+(l(a,o)?u(a.r,a.p1,a.r,a.p0):u(a.r,a.p1,o.r,o.p0)+s(o.r,o.p1,o.a1-o.a0)+u(o.r,o.p1,a.r,a.p0))+"Z"}function i(e,t,o,i){var l=t.call(e,o,i),s=n.call(e,l,i),u=r.call(e,l,i)-Le,c=a.call(e,l,i)-Le;return{r:s,a0:u,a1:c,p0:[s*Math.cos(u),s*Math.sin(u)],p1:[s*Math.cos(c),s*Math.sin(c)]}}function l(e,t){return e.a0==t.a0&&e.a1==t.a1}function s(e,t,n){return"A"+e+","+e+" 0 "+ +(n>Ce)+",1 "+t}function u(e,t,n,r){return"Q 0,0 "+r}return o.radius=function(e){return arguments.length?(n=Tt(e),o):n},o.source=function(t){return arguments.length?(e=Tt(t),o):e},o.target=function(e){return arguments.length?(t=Tt(e),o):t},o.startAngle=function(e){return arguments.length?(r=Tt(e),o):r},o.endAngle=function(e){return arguments.length?(a=Tt(e),o):a},o},t.svg.diagonal=function(){var e=sa,t=ua,n=bs;function r(r,a){var o=e.call(this,r,a),i=t.call(this,r,a),l=(o.y+i.y)/2,s=[o,{x:o.x,y:l},{x:i.x,y:l},i];return s=s.map(n),"M"+s[0]+"C"+s[1]+" "+s[2]+" "+s[3]}return r.source=function(t){return arguments.length?(e=Tt(t),r):e},r.target=function(e){return arguments.length?(t=Tt(e),r):t},r.projection=function(e){return arguments.length?(n=e,r):n},r},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),n=bs,r=e.projection;return e.projection=function(e){return arguments.length?r(xs(n=e)):n},e},t.svg.symbol=function(){var e=ws,t=_s;function n(n,r){return(Ts.get(e.call(this,n,r))||ks)(t.call(this,n,r))}return n.type=function(t){return arguments.length?(e=Tt(t),n):e},n.size=function(e){return arguments.length?(t=Tt(e),n):t},n};var Ts=t.map({circle:ks,cross:function(e){var t=Math.sqrt(e/5)/2;return"M"+-3*t+","+-t+"H"+-t+"V"+-3*t+"H"+t+"V"+-t+"H"+3*t+"V"+t+"H"+t+"V"+3*t+"H"+-t+"V"+t+"H"+-3*t+"Z"},diamond:function(e){var t=Math.sqrt(e/(2*Os)),n=t*Os;return"M0,"+-t+"L"+n+",0 0,"+t+" "+-n+",0Z"},square:function(e){var t=Math.sqrt(e)/2;return"M"+-t+","+-t+"L"+t+","+-t+" "+t+","+t+" "+-t+","+t+"Z"},"triangle-down":function(e){var t=Math.sqrt(e/Es),n=t*Es/2;return"M0,"+n+"L"+t+","+-n+" "+-t+","+-n+"Z"},"triangle-up":function(e){var t=Math.sqrt(e/Es),n=t*Es/2;return"M0,"+-n+"L"+t+","+n+" "+-t+","+n+"Z"}});t.svg.symbolTypes=Ts.keys();var Es=Math.sqrt(3),Os=Math.tan(30*De);K.transition=function(e){for(var t,n,r=As||++Ds,a=Rs(e),o=[],i=Ps||{time:Date.now(),ease:Ro,delay:0,duration:250},l=-1,s=this.length;++l<s;){o.push(t=[]);for(var u=this[l],c=-1,f=u.length;++c<f;)(n=u[c])&&zs(n,c,a,r,i),t.push(n)}return Cs(o,a,r)},K.interrupt=function(e){return this.each(null==e?Ms:Ss(Rs(e)))};var Ms=Ss(Rs());function Ss(e){return function(){var t,n,r;(t=this[e])&&(r=t[n=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[n]:delete this[e],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Cs(e,t,n){return W(e,Ls),e.namespace=t,e.id=n,e}var As,Ps,Ls=[],Ds=0;function js(e,t,n,r){var a=e.id,o=e.namespace;return de(e,"function"===typeof n?function(e,i,l){e[o][a].tween.set(t,r(n.call(e,e.__data__,i,l)))}:(n=r(n),function(e){e[o][a].tween.set(t,n)}))}function Is(e){return null==e&&(e=""),function(){this.textContent=e}}function Rs(e){return null==e?"__transition__":"__transition_"+e+"__"}function zs(e,t,n,r,a){var o,i,l,s,u,c=e[n]||(e[n]={active:0,count:0}),f=c[r];function p(e){var t=f.delay;if(i.t=t+o,t<=e)return d(e-t);i.c=d}function d(n){var a=c.active,p=c[a];for(var d in p&&(p.timer.c=null,p.timer.t=NaN,--c.count,delete c[a],p.event&&p.event.interrupt.call(e,e.__data__,p.index)),c)if(+d<r){var v=c[d];v.timer.c=null,v.timer.t=NaN,--c.count,delete c[d]}i.c=h,jt((function(){return i.c&&h(n||1)&&(i.c=null,i.t=NaN),1}),0,o),c.active=r,f.event&&f.event.start.call(e,e.__data__,t),u=[],f.tween.forEach((function(n,r){(r=r.call(e,e.__data__,t))&&u.push(r)})),s=f.ease,l=f.duration}function h(a){var o=a/l,i=s(o),p=u.length;while(p>0)u[--p].call(e,i);if(o>=1)return f.event&&f.event.end.call(e,e.__data__,t),--c.count?delete c[r]:delete e[n],1}f||(o=a.time,i=jt(p,0,o),f=c[r]={tween:new w,time:o,timer:i,delay:a.delay,duration:a.duration,ease:a.ease,index:t},a=null,++c.count)}Ls.call=K.call,Ls.empty=K.empty,Ls.node=K.node,Ls.size=K.size,t.transition=function(e,n){return e&&e.transition?As?e.transition(n):e:t.selection().transition(e)},t.transition.prototype=Ls,Ls.select=function(e){var t,n,r,a=this.id,o=this.namespace,i=[];e=X(e);for(var l=-1,s=this.length;++l<s;){i.push(t=[]);for(var u=this[l],c=-1,f=u.length;++c<f;)(r=u[c])&&(n=e.call(r,r.__data__,c,l))?("__data__"in r&&(n.__data__=r.__data__),zs(n,c,o,a,r[o][a]),t.push(n)):t.push(null)}return Cs(i,o,a)},Ls.selectAll=function(e){var t,n,r,a,o,i=this.id,l=this.namespace,s=[];e=Z(e);for(var u=-1,c=this.length;++u<c;)for(var f=this[u],p=-1,d=f.length;++p<d;)if(r=f[p]){o=r[l][i],n=e.call(r,r.__data__,p,u),s.push(t=[]);for(var h=-1,v=n.length;++h<v;)(a=n[h])&&zs(a,h,l,i,o),t.push(a)}return Cs(s,l,i)},Ls.filter=function(e){var t,n,r=[];"function"!==typeof e&&(e=fe(e));for(var a=0,o=this.length;a<o;a++){r.push(t=[]);for(var i=this[a],l=0,s=i.length;l<s;l++)(n=i[l])&&e.call(n,n.__data__,l,a)&&t.push(n)}return Cs(r,this.namespace,this.id)},Ls.tween=function(e,t){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(e):de(this,null==t?function(t){t[r][n].tween.remove(e)}:function(a){a[r][n].tween.set(e,t)})},Ls.attr=function(e,n){if(arguments.length<2){for(n in e)this.attr(n,e[n]);return this}var r="transform"==e?ai:Oo,a=t.ns.qualify(e);function o(){this.removeAttribute(a)}function i(){this.removeAttributeNS(a.space,a.local)}function l(e){return null==e?o:(e+="",function(){var t,n=this.getAttribute(a);return n!==e&&(t=r(n,e),function(e){this.setAttribute(a,t(e))})})}function s(e){return null==e?i:(e+="",function(){var t,n=this.getAttributeNS(a.space,a.local);return n!==e&&(t=r(n,e),function(e){this.setAttributeNS(a.space,a.local,t(e))})})}return js(this,"attr."+e,n,a.local?s:l)},Ls.attrTween=function(e,n){var r=t.ns.qualify(e);function a(e,t){var a=n.call(this,e,t,this.getAttribute(r));return a&&function(e){this.setAttribute(r,a(e))}}function o(e,t){var a=n.call(this,e,t,this.getAttributeNS(r.space,r.local));return a&&function(e){this.setAttributeNS(r.space,r.local,a(e))}}return this.tween("attr."+e,r.local?o:a)},Ls.style=function(e,t,n){var r=arguments.length;if(r<3){if("string"!==typeof e){for(n in r<2&&(t=""),e)this.style(n,e[n],t);return this}n=""}function a(){this.style.removeProperty(e)}function o(t){return null==t?a:(t+="",function(){var r,a=l(this).getComputedStyle(this,null).getPropertyValue(e);return a!==t&&(r=Oo(a,t),function(t){this.style.setProperty(e,r(t),n)})})}return js(this,"style."+e,t,o)},Ls.styleTween=function(e,t,n){function r(r,a){var o=t.call(this,r,a,l(this).getComputedStyle(this,null).getPropertyValue(e));return o&&function(t){this.style.setProperty(e,o(t),n)}}return arguments.length<3&&(n=""),this.tween("style."+e,r)},Ls.text=function(e){return js(this,"text",e,Is)},Ls.remove=function(){var e=this.namespace;return this.each("end.transition",(function(){var t;this[e].count<2&&(t=this.parentNode)&&t.removeChild(this)}))},Ls.ease=function(e){var n=this.id,r=this.namespace;return arguments.length<1?this.node()[r][n].ease:("function"!==typeof e&&(e=t.ease.apply(t,arguments)),de(this,(function(t){t[r][n].ease=e})))},Ls.delay=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].delay:de(this,"function"===typeof e?function(r,a,o){r[n][t].delay=+e.call(r,r.__data__,a,o)}:(e=+e,function(r){r[n][t].delay=e}))},Ls.duration=function(e){var t=this.id,n=this.namespace;return arguments.length<1?this.node()[n][t].duration:de(this,"function"===typeof e?function(r,a,o){r[n][t].duration=Math.max(1,e.call(r,r.__data__,a,o))}:(e=Math.max(1,e),function(r){r[n][t].duration=e}))},Ls.each=function(e,n){var r=this.id,a=this.namespace;if(arguments.length<2){var o=Ps,i=As;try{As=r,de(this,(function(t,n,o){Ps=t[a][r],e.call(t,t.__data__,n,o)}))}finally{Ps=o,As=i}}else de(this,(function(o){var i=o[a][r];(i.event||(i.event=t.dispatch("start","end","interrupt"))).on(e,n)}));return this},Ls.transition=function(){for(var e,t,n,r=this.id,a=++Ds,o=this.namespace,i=[],l=0,s=this.length;l<s;l++){i.push(e=[]);for(var u=this[l],c=0,f=u.length;c<f;c++)(t=u[c])&&(n=t[o][r],zs(t,c,o,a,{time:n.time,ease:n.ease,delay:n.delay+n.duration,duration:n.duration})),e.push(t)}return Cs(i,o,a)},t.svg.axis=function(){var e,n=t.scale.linear(),r=Ns,o=6,i=6,l=3,s=[10],u=null;function c(a){a.each((function(){var a,c=t.select(this),f=this.__chart__||n,p=this.__chart__=n.copy(),d=null==u?p.ticks?p.ticks.apply(p,s):p.domain():u,h=null==e?p.tickFormat?p.tickFormat.apply(p,s):D:e,v=c.selectAll(".tick").data(d,p),m=v.enter().insert("g",".domain").attr("class","tick").style("opacity",Me),y=t.transition(v.exit()).style("opacity",Me).remove(),g=t.transition(v.order()).style("opacity",1),b=Math.max(o,0)+l,x=ll(p),_=c.selectAll(".domain").data([0]),w=(_.enter().append("path").attr("class","domain"),t.transition(_));m.append("line"),m.append("text");var k,T,E,O,M=m.select("line"),S=g.select("line"),C=v.select("text").text(h),A=m.select("text"),P=g.select("text"),L="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(a=Bs,k="x",E="y",T="x2",O="y2",C.attr("dy",L<0?"0em":".71em").style("text-anchor","middle"),w.attr("d","M"+x[0]+","+L*i+"V0H"+x[1]+"V"+L*i)):(a=Vs,k="y",E="x",T="y2",O="x2",C.attr("dy",".32em").style("text-anchor",L<0?"end":"start"),w.attr("d","M"+L*i+","+x[0]+"H0V"+x[1]+"H"+L*i)),M.attr(O,L*o),A.attr(E,L*b),S.attr(T,0).attr(O,L*o),P.attr(k,0).attr(E,L*b),p.rangeBand){var j=p,I=j.rangeBand()/2;f=p=function(e){return j(e)+I}}else f.rangeBand?f=p:y.call(a,p,f);m.call(a,f,p),g.call(a,p,p)}))}return c.scale=function(e){return arguments.length?(n=e,c):n},c.orient=function(e){return arguments.length?(r=e in Fs?e+"":Ns,c):r},c.ticks=function(){return arguments.length?(s=a(arguments),c):s},c.tickValues=function(e){return arguments.length?(u=e,c):u},c.tickFormat=function(t){return arguments.length?(e=t,c):e},c.tickSize=function(e){var t=arguments.length;return t?(o=+e,i=+arguments[t-1],c):o},c.innerTickSize=function(e){return arguments.length?(o=+e,c):o},c.outerTickSize=function(e){return arguments.length?(i=+e,c):i},c.tickPadding=function(e){return arguments.length?(l=+e,c):l},c.tickSubdivide=function(){return arguments.length&&c},c};var Ns="bottom",Fs={top:1,right:1,bottom:1,left:1};function Bs(e,t,n){e.attr("transform",(function(e){var r=t(e);return"translate("+(isFinite(r)?r:n(e))+",0)"}))}function Vs(e,t,n){e.attr("transform",(function(e){var r=t(e);return"translate(0,"+(isFinite(r)?r:n(e))+")"}))}t.svg.brush=function(){var e,n,r=H(p,"brushstart","brush","brushend"),a=null,o=null,i=[0,0],s=[0,0],u=!0,c=!0,f=Us[0];function p(e){e.each((function(){var e=t.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",m).on("touchstart.brush",m),n=e.selectAll(".background").data([0]);n.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),e.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var r=e.selectAll(".resize").data(f,D);r.exit().remove(),r.enter().append("g").attr("class",(function(e){return"resize "+e})).style("cursor",(function(e){return Hs[e]})).append("rect").attr("x",(function(e){return/[ew]$/.test(e)?-3:null})).attr("y",(function(e){return/^[ns]/.test(e)?-3:null})).attr("width",6).attr("height",6).style("visibility","hidden"),r.style("display",p.empty()?"none":null);var i,l=t.transition(e),s=t.transition(n);a&&(i=ll(a),s.attr("x",i[0]).attr("width",i[1]-i[0]),h(l)),o&&(i=ll(o),s.attr("y",i[0]).attr("height",i[1]-i[0]),v(l)),d(l)}))}function d(e){e.selectAll(".resize").attr("transform",(function(e){return"translate("+i[+/e$/.test(e)]+","+s[+/^s/.test(e)]+")"}))}function h(e){e.select(".extent").attr("x",i[0]),e.selectAll(".extent,.n>rect,.s>rect").attr("width",i[1]-i[0])}function v(e){e.select(".extent").attr("y",s[0]),e.selectAll(".extent,.e>rect,.w>rect").attr("height",s[1]-s[0])}function m(){var f,m,y=this,g=t.select(t.event.target),b=r.of(y,arguments),x=t.select(y),_=g.datum(),w=!/^(n|s)$/.test(_)&&a,k=!/^(e|w)$/.test(_)&&o,T=g.classed("extent"),E=ke(y),O=t.mouse(y),M=t.select(l(y)).on("keydown.brush",A).on("keyup.brush",P);if(t.event.changedTouches?M.on("touchmove.brush",L).on("touchend.brush",j):M.on("mousemove.brush",L).on("mouseup.brush",j),x.interrupt().selectAll("*").interrupt(),T)O[0]=i[0]-O[0],O[1]=s[0]-O[1];else if(_){var S=+/w$/.test(_),C=+/^n/.test(_);m=[i[1-S]-O[0],s[1-C]-O[1]],O[0]=i[S],O[1]=s[C]}else t.event.altKey&&(f=O.slice());function A(){32==t.event.keyCode&&(T||(f=null,O[0]-=i[1],O[1]-=s[1],T=2),B())}function P(){32==t.event.keyCode&&2==T&&(O[0]+=i[1],O[1]+=s[1],T=0,B())}function L(){var e=t.mouse(y),n=!1;m&&(e[0]+=m[0],e[1]+=m[1]),T||(t.event.altKey?(f||(f=[(i[0]+i[1])/2,(s[0]+s[1])/2]),O[0]=i[+(e[0]<f[0])],O[1]=s[+(e[1]<f[1])]):f=null),w&&D(e,a,0)&&(h(x),n=!0),k&&D(e,o,1)&&(v(x),n=!0),n&&(d(x),b({type:"brush",mode:T?"move":"resize"}))}function D(t,r,a){var o,l,p=ll(r),d=p[0],h=p[1],v=O[a],m=a?s:i,y=m[1]-m[0];if(T&&(d-=v,h-=y+v),o=(a?c:u)?Math.max(d,Math.min(h,t[a])):t[a],T?l=(o+=v)+y:(f&&(v=Math.max(d,Math.min(h,2*f[a]-o))),v<o?(l=o,o=v):l=v),m[0]!=o||m[1]!=l)return a?n=null:e=null,m[0]=o,m[1]=l,!0}function j(){L(),x.style("pointer-events","all").selectAll(".resize").style("display",p.empty()?"none":null),t.select("body").style("cursor",null),M.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),E(),b({type:"brushend"})}x.style("pointer-events","none").selectAll(".resize").style("display",null),t.select("body").style("cursor",g.style("cursor")),b({type:"brushstart"}),L()}return p.event=function(a){a.each((function(){var a=r.of(this,arguments),o={x:i,y:s,i:e,j:n},l=this.__chart__||o;this.__chart__=o,As?t.select(this).transition().each("start.brush",(function(){e=l.i,n=l.j,i=l.x,s=l.y,a({type:"brushstart"})})).tween("brush:brush",(function(){var t=Mo(i,o.x),r=Mo(s,o.y);return e=n=null,function(e){i=o.x=t(e),s=o.y=r(e),a({type:"brush",mode:"resize"})}})).each("end.brush",(function(){e=o.i,n=o.j,a({type:"brush",mode:"resize"}),a({type:"brushend"})})):(a({type:"brushstart"}),a({type:"brush",mode:"resize"}),a({type:"brushend"}))}))},p.x=function(e){return arguments.length?(a=e,f=Us[!a<<1|!o],p):a},p.y=function(e){return arguments.length?(o=e,f=Us[!a<<1|!o],p):o},p.clamp=function(e){return arguments.length?(a&&o?(u=!!e[0],c=!!e[1]):a?u=!!e:o&&(c=!!e),p):a&&o?[u,c]:a?u:o?c:null},p.extent=function(t){var r,l,u,c,f;return arguments.length?(a&&(r=t[0],l=t[1],o&&(r=r[0],l=l[0]),e=[r,l],a.invert&&(r=a(r),l=a(l)),l<r&&(f=r,r=l,l=f),r==i[0]&&l==i[1]||(i=[r,l])),o&&(u=t[0],c=t[1],a&&(u=u[1],c=c[1]),n=[u,c],o.invert&&(u=o(u),c=o(c)),c<u&&(f=u,u=c,c=f),u==s[0]&&c==s[1]||(s=[u,c])),p):(a&&(e?(r=e[0],l=e[1]):(r=i[0],l=i[1],a.invert&&(r=a.invert(r),l=a.invert(l)),l<r&&(f=r,r=l,l=f))),o&&(n?(u=n[0],c=n[1]):(u=s[0],c=s[1],o.invert&&(u=o.invert(u),c=o.invert(c)),c<u&&(f=u,u=c,c=f))),a&&o?[[r,u],[l,c]]:a?[r,l]:o&&[u,c])},p.clear=function(){return p.empty()||(i=[0,0],s=[0,0],e=n=null),p},p.empty=function(){return!!a&&i[0]==i[1]||!!o&&s[0]==s[1]},t.rebind(p,r,"on")};var Hs={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Us=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Ws=qt.format=wn.timeFormat,qs=Ws.utc,$s=qs("%Y-%m-%dT%H:%M:%S.%LZ");function Gs(e){return e.toISOString()}function Ys(e,n,r){function a(t){return e(t)}function o(e,r){var a=e[1]-e[0],o=a/r,i=t.bisect(Xs,o);return i==Xs.length?[n.year,ml(e.map((function(e){return e/31536e6})),r)[2]]:i?n[o/Xs[i-1]<Xs[i]/o?i-1:i]:[Qs,ml(e,r)[2]]}return a.invert=function(t){return Ks(e.invert(t))},a.domain=function(t){return arguments.length?(e.domain(t),a):e.domain().map(Ks)},a.nice=function(e,t){var n=a.domain(),r=il(n),i=null==e?o(r,10):"number"===typeof e&&o(r,e);function l(n){return!isNaN(n)&&!e.range(n,Ks(+n+1),t).length}return i&&(e=i[0],t=i[1]),a.domain(ul(n,t>1?{floor:function(t){while(l(t=e.floor(t)))t=Ks(t-1);return t},ceil:function(t){while(l(t=e.ceil(t)))t=Ks(+t+1);return t}}:e))},a.ticks=function(e,t){var n=il(a.domain()),r=null==e?o(n,10):"number"===typeof e?o(n,e):!e.range&&[{range:e},t];return r&&(e=r[0],t=r[1]),e.range(n[0],Ks(+n[1]+1),t<1?1:t)},a.tickFormat=function(){return r},a.copy=function(){return Ys(e.copy(),n,r)},hl(a,e)}function Ks(e){return new Date(e)}Ws.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?Gs:$s,Gs.parse=function(e){var t=new Date(e);return isNaN(t)?null:t},Gs.toString=$s.toString,qt.second=Kt((function(e){return new $t(1e3*Math.floor(e/1e3))}),(function(e,t){e.setTime(e.getTime()+1e3*Math.floor(t))}),(function(e){return e.getSeconds()})),qt.seconds=qt.second.range,qt.seconds.utc=qt.second.utc.range,qt.minute=Kt((function(e){return new $t(6e4*Math.floor(e/6e4))}),(function(e,t){e.setTime(e.getTime()+6e4*Math.floor(t))}),(function(e){return e.getMinutes()})),qt.minutes=qt.minute.range,qt.minutes.utc=qt.minute.utc.range,qt.hour=Kt((function(e){var t=e.getTimezoneOffset()/60;return new $t(36e5*(Math.floor(e/36e5-t)+t))}),(function(e,t){e.setTime(e.getTime()+36e5*Math.floor(t))}),(function(e){return e.getHours()})),qt.hours=qt.hour.range,qt.hours.utc=qt.hour.utc.range,qt.month=Kt((function(e){return e=qt.day(e),e.setDate(1),e}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e){return e.getMonth()})),qt.months=qt.month.range,qt.months.utc=qt.month.utc.range;var Xs=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Zs=[[qt.second,1],[qt.second,5],[qt.second,15],[qt.second,30],[qt.minute,1],[qt.minute,5],[qt.minute,15],[qt.minute,30],[qt.hour,1],[qt.hour,3],[qt.hour,6],[qt.hour,12],[qt.day,1],[qt.day,2],[qt.week,1],[qt.month,1],[qt.month,3],[qt.year,1]],Js=Ws.multi([[".%L",function(e){return e.getMilliseconds()}],[":%S",function(e){return e.getSeconds()}],["%I:%M",function(e){return e.getMinutes()}],["%I %p",function(e){return e.getHours()}],["%a %d",function(e){return e.getDay()&&1!=e.getDate()}],["%b %d",function(e){return 1!=e.getDate()}],["%B",function(e){return e.getMonth()}],["%Y",lr]]),Qs={range:function(e,n,r){return t.range(Math.ceil(e/r)*r,+n,r).map(Ks)},floor:D,ceil:D};Zs.year=qt.year,qt.scale=function(){return Ys(t.scale.linear(),Zs,Js)};var eu=Zs.map((function(e){return[e[0].utc,e[1]]})),tu=qs.multi([[".%L",function(e){return e.getUTCMilliseconds()}],[":%S",function(e){return e.getUTCSeconds()}],["%I:%M",function(e){return e.getUTCMinutes()}],["%I %p",function(e){return e.getUTCHours()}],["%a %d",function(e){return e.getUTCDay()&&1!=e.getUTCDate()}],["%b %d",function(e){return 1!=e.getUTCDate()}],["%B",function(e){return e.getUTCMonth()}],["%Y",lr]]);function nu(e){return JSON.parse(e.responseText)}function ru(e){var t=o.createRange();return t.selectNode(o.body),t.createContextualFragment(e.responseText)}eu.year=qt.year.utc,qt.scale.utc=function(){return Ys(t.scale.linear(),eu,tu)},t.text=Et((function(e){return e.responseText})),t.json=function(e,t){return Ot(e,"application/json",nu,t)},t.html=function(e,t){return Ot(e,"text/html",ru,t)},t.xml=Et((function(e){return e.responseXML})),"function"===typeof e&&e.amd?(this.d3=t,e(t)):"object"===typeof n&&n.exports?n.exports=t:this.d3=t}()},{}],170:[function(e,t,n){t.exports=function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]}},{}],171:[function(e,t,n){"use strict";var r=e("incremental-convex-hull"),a=e("uniq");function o(e,t){this.point=e,this.index=t}function i(e,t){for(var n=e.point,r=t.point,a=n.length,o=0;o<a;++o){var i=r[o]-n[o];if(i)return i}return 0}function l(e,t,n){if(1===e)return n?[[-1,0]]:[];var r=t.map((function(e,t){return[e[0],t]}));r.sort((function(e,t){return e[0]-t[0]}));for(var a=new Array(e-1),o=1;o<e;++o){var i=r[o-1],l=r[o];a[o-1]=[i[1],l[1]]}return n&&a.push([-1,a[0][1]],[a[e-1][1],-1]),a}function s(e,t){var n=e.length;if(0===n)return[];var s=e[0].length;if(s<1)return[];if(1===s)return l(n,e,t);for(var u=new Array(n),c=1,f=0;f<n;++f){for(var p=e[f],d=new Array(s+1),h=0,v=0;v<s;++v){var m=p[v];d[v]=m,h+=m*m}d[s]=h,u[f]=new o(d,f),c=Math.max(h,c)}a(u,i),n=u.length;var y=new Array(n+s+1),g=new Array(n+s+1),b=(s+1)*(s+1)*c,x=new Array(s+1);for(f=0;f<=s;++f)x[f]=0;x[s]=b,y[0]=x.slice(),g[0]=-1;for(f=0;f<=s;++f){d=x.slice();d[f]=1,y[f+1]=d,g[f+1]=-1}for(f=0;f<n;++f){var _=u[f];y[f+s+1]=_.point,g[f+s+1]=_.index}var w=r(y,!1);if(w=t?w.filter((function(e){for(var t=0,n=0;n<=s;++n){var r=g[e[n]];if(r<0&&++t>=2)return!1;e[n]=r}return!0})):w.filter((function(e){for(var t=0;t<=s;++t){var n=g[e[t]];if(n<0)return!1;e[t]=n}return!0})),1&s)for(f=0;f<w.length;++f){_=w[f],d=_[0];_[0]=_[1],_[1]=d}return w}t.exports=s},{"incremental-convex-hull":433,uniq:569}],172:[function(e,t,n){"use strict";t.exports=i;var r=i.canvas=document.createElement("canvas"),a=r.getContext("2d"),o=l([32,126]);function i(e,t){Array.isArray(e)&&(e=e.join(", "));var n,r={},i=16,s=.05;t&&(2===t.length&&"number"===typeof t[0]?n=l(t):Array.isArray(t)?n=t:(t.o?n=l(t.o):t.pairs&&(n=t.pairs),t.fontSize&&(i=t.fontSize),null!=t.threshold&&(s=t.threshold))),n||(n=o),a.font=i+"px "+e;for(var u=0;u<n.length;u++){var c=n[u],f=a.measureText(c[0]).width+a.measureText(c[1]).width,p=a.measureText(c).width;if(Math.abs(f-p)>i*s){var d=(p-f)/i;r[c]=1e3*d}}return r}function l(e){for(var t=[],n=e[0];n<=e[1];n++)for(var r=String.fromCharCode(n),a=e[0];a<e[1];a++){var o=String.fromCharCode(a),i=r+o;t.push(i)}return t}i.createPairs=l,i.ascii=o},{}],173:[function(e,t,n){(function(e){var n=!1;if("undefined"!==typeof Float64Array){var r=new Float64Array(1),a=new Uint32Array(r.buffer);if(r[0]=1,n=!0,1072693248===a[1]){function o(e,t){return a[0]=e,a[1]=t,r[0]}function i(e){return r[0]=e,a[0]}function l(e){return r[0]=e,a[1]}t.exports=function(e){return r[0]=e,[a[0],a[1]]},t.exports.pack=o,t.exports.lo=i,t.exports.hi=l}else if(1072693248===a[0]){function s(e,t){return a[1]=e,a[0]=t,r[0]}function u(e){return r[0]=e,a[1]}function c(e){return r[0]=e,a[0]}t.exports=function(e){return r[0]=e,[a[1],a[0]]},t.exports.pack=s,t.exports.lo=u,t.exports.hi=c}else n=!1}if(!n){var f=new e(8);function p(e,t){return f.writeUInt32LE(e,0,!0),f.writeUInt32LE(t,4,!0),f.readDoubleLE(0,!0)}function d(e){return f.writeDoubleLE(e,0,!0),f.readUInt32LE(0,!0)}function h(e){return f.writeDoubleLE(e,0,!0),f.readUInt32LE(4,!0)}t.exports=function(e){return f.writeDoubleLE(e,0,!0),[f.readUInt32LE(0,!0),f.readUInt32LE(4,!0)]},t.exports.pack=p,t.exports.lo=d,t.exports.hi=h}t.exports.sign=function(e){return t.exports.hi(e)>>>31},t.exports.exponent=function(e){var n=t.exports.hi(e);return(n<<1>>>21)-1023},t.exports.fraction=function(e){var n=t.exports.lo(e),r=t.exports.hi(e),a=1048575&r;return 2146435072&r&&(a+=1<<20),[n,a]},t.exports.denormalized=function(e){var n=t.exports.hi(e);return!(2146435072&n)}}).call(this,e("buffer").Buffer)},{buffer:111}],174:[function(e,t,n){var r=e("abs-svg-path"),a=e("normalize-svg-path"),o={M:"moveTo",C:"bezierCurveTo"};t.exports=function(e,t){e.beginPath(),a(r(t)).forEach((function(t){var n=t[0],r=t.slice(1);e[o[n]].apply(e,r)})),e.closePath()}},{"abs-svg-path":65,"normalize-svg-path":471}],175:[function(e,t,n){t.exports=function(e){switch(e){case"int8":return Int8Array;case"int16":return Int16Array;case"int32":return Int32Array;case"uint8":return Uint8Array;case"uint16":return Uint16Array;case"uint32":return Uint32Array;case"float32":return Float32Array;case"float64":return Float64Array;case"array":return Array;case"uint8_clamped":return Uint8ClampedArray}}},{}],176:[function(e,t,n){"use strict";function r(e,t,n){var a=0|e[n];if(a<=0)return[];var o,i=new Array(a);if(n===e.length-1)for(o=0;o<a;++o)i[o]=t;else for(o=0;o<a;++o)i[o]=r(e,t,n+1);return i}function a(e,t){var n,r;for(n=new Array(e),r=0;r<e;++r)n[r]=t;return n}function o(e,t){switch("undefined"===typeof t&&(t=0),typeof e){case"number":if(e>0)return a(0|e,t);break;case"object":if("number"===typeof e.length)return r(e,t,0);break}return[]}t.exports=o},{}],177:[function(e,t,n){"use strict";function r(e,t,n){n=n||2;var r,o,l,s,u,c,p,d=t&&t.length,h=d?t[0]*n:e.length,v=a(e,0,h,n,!0),m=[];if(!v||v.next===v.prev)return m;if(d&&(v=f(e,t,v,n)),e.length>80*n){r=l=e[0],o=s=e[1];for(var y=n;y<h;y+=n)u=e[y],c=e[y+1],u<r&&(r=u),c<o&&(o=c),u>l&&(l=u),c>s&&(s=c);p=Math.max(l-r,s-o),p=0!==p?1/p:0}return i(v,m,n,r,o,p),m}function a(e,t,n,r,a){var o,i;if(a===j(e,t,n,r)>0)for(o=t;o<n;o+=r)i=P(o,e[o],e[o+1],i);else for(o=n-r;o>=t;o-=r)i=P(o,e[o],e[o+1],i);return i&&k(i,i.next)&&(L(i),i=i.next),i}function o(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!k(r,r.next)&&0!==w(r.prev,r,r.next))r=r.next;else{if(L(r),r=t=r.prev,r===r.next)break;n=!0}}while(n||r!==t);return t}function i(e,t,n,r,a,f,p){if(e){!p&&f&&m(e,r,a,f);var d,h,v=e;while(e.prev!==e.next)if(d=e.prev,h=e.next,f?s(e,r,a,f):l(e))t.push(d.i/n),t.push(e.i/n),t.push(h.i/n),L(e),e=h.next,v=h.next;else if(e=h,e===v){p?1===p?(e=u(o(e),t,n),i(e,t,n,r,a,f,2)):2===p&&c(e,t,n,r,a,f):i(o(e),t,n,r,a,f,1);break}}}function l(e){var t=e.prev,n=e,r=e.next;if(w(t,n,r)>=0)return!1;var a=e.next.next;while(a!==e.prev){if(x(t.x,t.y,n.x,n.y,r.x,r.y,a.x,a.y)&&w(a.prev,a,a.next)>=0)return!1;a=a.next}return!0}function s(e,t,n,r){var a=e.prev,o=e,i=e.next;if(w(a,o,i)>=0)return!1;var l=a.x<o.x?a.x<i.x?a.x:i.x:o.x<i.x?o.x:i.x,s=a.y<o.y?a.y<i.y?a.y:i.y:o.y<i.y?o.y:i.y,u=a.x>o.x?a.x>i.x?a.x:i.x:o.x>i.x?o.x:i.x,c=a.y>o.y?a.y>i.y?a.y:i.y:o.y>i.y?o.y:i.y,f=g(l,s,t,n,r),p=g(u,c,t,n,r),d=e.prevZ,h=e.nextZ;while(d&&d.z>=f&&h&&h.z<=p){if(d!==e.prev&&d!==e.next&&x(a.x,a.y,o.x,o.y,i.x,i.y,d.x,d.y)&&w(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,h!==e.prev&&h!==e.next&&x(a.x,a.y,o.x,o.y,i.x,i.y,h.x,h.y)&&w(h.prev,h,h.next)>=0)return!1;h=h.nextZ}while(d&&d.z>=f){if(d!==e.prev&&d!==e.next&&x(a.x,a.y,o.x,o.y,i.x,i.y,d.x,d.y)&&w(d.prev,d,d.next)>=0)return!1;d=d.prevZ}while(h&&h.z<=p){if(h!==e.prev&&h!==e.next&&x(a.x,a.y,o.x,o.y,i.x,i.y,h.x,h.y)&&w(h.prev,h,h.next)>=0)return!1;h=h.nextZ}return!0}function u(e,t,n){var r=e;do{var a=r.prev,i=r.next.next;!k(a,i)&&T(a,r,r.next,i)&&S(a,i)&&S(i,a)&&(t.push(a.i/n),t.push(r.i/n),t.push(i.i/n),L(r),L(r.next),r=e=i),r=r.next}while(r!==e);return o(r)}function c(e,t,n,r,a,l){var s=e;do{var u=s.next.next;while(u!==s.prev){if(s.i!==u.i&&_(s,u)){var c=A(s,u);return s=o(s,s.next),c=o(c,c.next),i(s,t,n,r,a,l),void i(c,t,n,r,a,l)}u=u.next}s=s.next}while(s!==e)}function f(e,t,n,r){var i,l,s,u,c,f=[];for(i=0,l=t.length;i<l;i++)s=t[i]*r,u=i<l-1?t[i+1]*r:e.length,c=a(e,s,u,r,!1),c===c.next&&(c.steiner=!0),f.push(b(c));for(f.sort(p),i=0;i<f.length;i++)d(f[i],n),n=o(n,n.next);return n}function p(e,t){return e.x-t.x}function d(e,t){if(t=h(e,t),t){var n=A(t,e);o(t,t.next),o(n,n.next)}}function h(e,t){var n,r=t,a=e.x,o=e.y,i=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var l=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=a&&l>i){if(i=l,l===a){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(a===i)return n;var s,u=n,c=n.x,f=n.y,p=1/0;r=n;do{a>=r.x&&r.x>=c&&a!==r.x&&x(o<f?a:i,o,c,f,o<f?i:a,o,r.x,r.y)&&(s=Math.abs(o-r.y)/(a-r.x),S(r,e)&&(s<p||s===p&&(r.x>n.x||r.x===n.x&&v(n,r)))&&(n=r,p=s)),r=r.next}while(r!==u);return n}function v(e,t){return w(e.prev,e,t.prev)<0&&w(t.next,e,e.next)<0}function m(e,t,n,r){var a=e;do{null===a.z&&(a.z=g(a.x,a.y,t,n,r)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next}while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,y(a)}function y(e){var t,n,r,a,o,i,l,s,u=1;do{n=e,e=null,o=null,i=0;while(n){for(i++,r=n,l=0,t=0;t<u;t++)if(l++,r=r.nextZ,!r)break;s=u;while(l>0||s>0&&r)0!==l&&(0===s||!r||n.z<=r.z)?(a=n,n=n.nextZ,l--):(a=r,r=r.nextZ,s--),o?o.nextZ=a:e=a,a.prevZ=o,o=a;n=r}o.nextZ=null,u*=2}while(i>1);return e}function g(e,t,n,r,a){return e=32767*(e-n)*a,t=32767*(t-r)*a,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e|t<<1}function b(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function x(e,t,n,r,a,o,i,l){return(a-i)*(t-l)-(e-i)*(o-l)>=0&&(e-i)*(r-l)-(n-i)*(t-l)>=0&&(n-i)*(o-l)-(a-i)*(r-l)>=0}function _(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!M(e,t)&&(S(e,t)&&S(t,e)&&C(e,t)&&(w(e.prev,e,t.prev)||w(e,t.prev,t))||k(e,t)&&w(e.prev,e,e.next)>0&&w(t.prev,t,t.next)>0)}function w(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function k(e,t){return e.x===t.x&&e.y===t.y}function T(e,t,n,r){var a=O(w(e,t,n)),o=O(w(e,t,r)),i=O(w(n,r,e)),l=O(w(n,r,t));return a!==o&&i!==l||(!(0!==a||!E(e,n,t))||(!(0!==o||!E(e,r,t))||(!(0!==i||!E(n,e,r))||!(0!==l||!E(n,t,r)))))}function E(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function O(e){return e>0?1:e<0?-1:0}function M(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&T(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function S(e,t){return w(e.prev,e,e.next)<0?w(e,t,e.next)>=0&&w(e,e.prev,t)>=0:w(e,t,e.prev)<0||w(e,e.next,t)<0}function C(e,t){var n=e,r=!1,a=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!==n.next.y>o&&n.next.y!==n.y&&a<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}function A(e,t){var n=new D(e.i,e.x,e.y),r=new D(t.i,t.x,t.y),a=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=a,a.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function P(e,t,n,r){var a=new D(e,t,n);return r?(a.next=r.next,a.prev=r,r.next.prev=a,r.next=a):(a.prev=a,a.next=a),a}function L(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function D(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function j(e,t,n,r){for(var a=0,o=t,i=n-r;o<n;o+=r)a+=(e[i]-e[o])*(e[o+1]+e[i+1]),i=o;return a}t.exports=r,t.exports.default=r,r.deviation=function(e,t,n,r){var a=t&&t.length,o=a?t[0]*n:e.length,i=Math.abs(j(e,0,o,n));if(a)for(var l=0,s=t.length;l<s;l++){var u=t[l]*n,c=l<s-1?t[l+1]*n:e.length;i-=Math.abs(j(e,u,c,n))}var f=0;for(l=0;l<r.length;l+=3){var p=r[l]*n,d=r[l+1]*n,h=r[l+2]*n;f+=Math.abs((e[p]-e[h])*(e[d+1]-e[p+1])-(e[p]-e[d])*(e[h+1]-e[p+1]))}return 0===i&&0===f?0:Math.abs((f-i)/i)},r.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,a=0;a<e.length;a++){for(var o=0;o<e[a].length;o++)for(var i=0;i<t;i++)n.vertices.push(e[a][o][i]);a>0&&(r+=e[a-1].length,n.holes.push(r))}return n}},{}],178:[function(e,t,n){"use strict";t.exports=a;var r=e("uniq");function a(e,t){var n=e.length;if("number"!==typeof t){t=0;for(var a=0;a<n;++a){var o=e[a];t=Math.max(t,o[0],o[1])}t=1+(0|t)}t|=0;var i=new Array(t);for(a=0;a<t;++a)i[a]=[];for(a=0;a<n;++a){o=e[a];i[o[0]].push(o[1]),i[o[1]].push(o[0])}for(var l=0;l<t;++l)r(i[l],(function(e,t){return e-t}));return i}},{uniq:569}],179:[function(e,t,n){var r=e("strongly-connected-components");t.exports=function(e,t){var n,a=[],o=[],i=[],l={},s=[];function u(e){i[e]=!1,l.hasOwnProperty(e)&&Object.keys(l[e]).forEach((function(t){delete l[e][t],i[t]&&u(t)}))}function c(e){var t,r,a=!1;for(o.push(e),i[e]=!0,t=0;t<s[e].length;t++)r=s[e][t],r===n?(f(n,o),a=!0):i[r]||(a=c(r));if(a)u(e);else for(t=0;t<s[e].length;t++){r=s[e][t];var p=l[r];p||(p={},l[r]=p),p[r]=!0}return o.pop(),a}function f(e,n){var r=[].concat(n).concat(e);t?t(c):a.push(r)}function p(t){for(var n=0;n<e.length;n++)n<t&&(e[n]=[]),e[n]=e[n].filter((function(e){return e>=t}))}function d(t){p(t);for(var n,a=e,o=r(a),i=o.components.filter((function(e){return e.length>1})),l=1/0,s=0;s<i.length;s++)for(var u=0;u<i[s].length;u++)i[s][u]<l&&(l=i[s][u],n=s);var c=i[n];if(!c)return!1;var f=e.map((function(e,t){return-1===c.indexOf(t)?[]:e.filter((function(e){return-1!==c.indexOf(e)}))}));return{leastVertex:l,adjList:f}}n=0;var h=e.length;while(n<h){var v=d(n);if(n=v.leastVertex,s=v.adjList,s){for(var m=0;m<s.length;m++)for(var y=0;y<s[m].length;y++){var g=s[m][y];i[+g]=!1,l[g]={}}c(n),n+=1}else n=h}return t?void 0:a}},{"strongly-connected-components":541}],180:[function(e,t,n){"use strict";var r=e("../../object/valid-value");t.exports=function(){return r(this).length=0,this}},{"../../object/valid-value":211}],181:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?Array.from:e("./shim")},{"./is-implemented":182,"./shim":183}],182:[function(e,t,n){"use strict";t.exports=function(){var e,t,n=Array.from;return"function"===typeof n&&(e=["raz","dwa"],t=n(e),Boolean(t&&t!==e&&"dwa"===t[1]))}},{}],183:[function(e,t,n){"use strict";var r=e("es6-symbol").iterator,a=e("../../function/is-arguments"),o=e("../../function/is-function"),i=e("../../number/to-pos-integer"),l=e("../../object/valid-callable"),s=e("../../object/valid-value"),u=e("../../object/is-value"),c=e("../../string/is-string"),f=Array.isArray,p=Function.prototype.call,d={configurable:!0,enumerable:!0,writable:!0,value:null},h=Object.defineProperty;t.exports=function(e){var t,n,v,m,y,g,b,x,_,w,k=arguments[1],T=arguments[2];if(e=Object(s(e)),u(k)&&l(k),this&&this!==Array&&o(this))t=this;else{if(!k){if(a(e))return y=e.length,1!==y?Array.apply(null,e):(m=new Array(1),m[0]=e[0],m);if(f(e)){for(m=new Array(y=e.length),n=0;n<y;++n)m[n]=e[n];return m}}m=[]}if(!f(e))if(void 0!==(_=e[r])){b=l(_).call(e),t&&(m=new t),x=b.next(),n=0;while(!x.done)w=k?p.call(k,T,x.value,n):x.value,t?(d.value=w,h(m,n,d)):m[n]=w,x=b.next(),++n;y=n}else if(c(e)){for(y=e.length,t&&(m=new t),n=0,v=0;n<y;++n)w=e[n],n+1<y&&(g=w.charCodeAt(0),g>=55296&&g<=56319&&(w+=e[++n])),w=k?p.call(k,T,w,v):w,t?(d.value=w,h(m,v,d)):m[v]=w,++v;y=v}if(void 0===y)for(y=i(e.length),t&&(m=new t(y)),n=0;n<y;++n)w=k?p.call(k,T,e[n],n):e[n],t?(d.value=w,h(m,n,d)):m[n]=w;return t&&(d.value=null,m.length=y),m}},{"../../function/is-arguments":184,"../../function/is-function":185,"../../number/to-pos-integer":191,"../../object/is-value":200,"../../object/valid-callable":209,"../../object/valid-value":211,"../../string/is-string":215,"es6-symbol":225}],184:[function(e,t,n){"use strict";var r=Object.prototype.toString,a=r.call(function(){return arguments}());t.exports=function(e){return r.call(e)===a}},{}],185:[function(e,t,n){"use strict";var r=Object.prototype.toString,a=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);t.exports=function(e){return"function"===typeof e&&a(r.call(e))}},{}],186:[function(e,t,n){"use strict";t.exports=function(){}},{}],187:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?Math.sign:e("./shim")},{"./is-implemented":188,"./shim":189}],188:[function(e,t,n){"use strict";t.exports=function(){var e=Math.sign;return"function"===typeof e&&(1===e(10)&&-1===e(-20))}},{}],189:[function(e,t,n){"use strict";t.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:e>0?1:-1}},{}],190:[function(e,t,n){"use strict";var r=e("../math/sign"),a=Math.abs,o=Math.floor;t.exports=function(e){return isNaN(e)?0:(e=Number(e),0!==e&&isFinite(e)?r(e)*o(a(e)):e)}},{"../math/sign":187}],191:[function(e,t,n){"use strict";var r=e("./to-integer"),a=Math.max;t.exports=function(e){return a(0,r(e))}},{"./to-integer":190}],192:[function(e,t,n){"use strict";var r=e("./valid-callable"),a=e("./valid-value"),o=Function.prototype.bind,i=Function.prototype.call,l=Object.keys,s=Object.prototype.propertyIsEnumerable;t.exports=function(e,t){return function(n,u){var c,f=arguments[2],p=arguments[3];return n=Object(a(n)),r(u),c=l(n),p&&c.sort("function"===typeof p?o.call(p,n):void 0),"function"!==typeof e&&(e=c[e]),i.call(e,c,(function(e,r){return s.call(n,e)?i.call(u,f,n[e],e,n,r):t}))}}},{"./valid-callable":209,"./valid-value":211}],193:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?Object.assign:e("./shim")},{"./is-implemented":194,"./shim":195}],194:[function(e,t,n){"use strict";t.exports=function(){var e,t=Object.assign;return"function"===typeof t&&(e={foo:"raz"},t(e,{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},{}],195:[function(e,t,n){"use strict";var r=e("../keys"),a=e("../valid-value"),o=Math.max;t.exports=function(e,t){var n,i,l,s=o(arguments.length,2);for(e=Object(a(e)),l=function(r){try{e[r]=t[r]}catch(a){n||(n=a)}},i=1;i<s;++i)t=arguments[i],r(t).forEach(l);if(void 0!==n)throw n;return e}},{"../keys":201,"../valid-value":211}],196:[function(e,t,n){"use strict";var r=e("../array/from"),a=e("./assign"),o=e("./valid-value");t.exports=function(e){var t=Object(o(e)),n=arguments[1],i=Object(arguments[2]);if(t!==e&&!n)return t;var l={};return n?r(n,(function(t){(i.ensure||t in e)&&(l[t]=e[t])})):a(l,e),l}},{"../array/from":181,"./assign":193,"./valid-value":211}],197:[function(e,t,n){"use strict";var r,a=Object.create;e("./set-prototype-of/is-implemented")()||(r=e("./set-prototype-of/shim")),t.exports=function(){var e,t,n;return r?1!==r.level?a:(e={},t={},n={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(e){t[e]="__proto__"!==e?n:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(e,t),Object.defineProperty(r,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:e}),function(t,n){return a(null===t?e:t,n)}):a}()},{"./set-prototype-of/is-implemented":207,"./set-prototype-of/shim":208}],198:[function(e,t,n){"use strict";t.exports=e("./_iterate")("forEach")},{"./_iterate":192}],199:[function(e,t,n){"use strict";var r=e("./is-value"),a={function:!0,object:!0};t.exports=function(e){return r(e)&&a[typeof e]||!1}},{"./is-value":200}],200:[function(e,t,n){"use strict";var r=e("../function/noop")();t.exports=function(e){return e!==r&&null!==e}},{"../function/noop":186}],201:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?Object.keys:e("./shim")},{"./is-implemented":202,"./shim":203}],202:[function(e,t,n){"use strict";t.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},{}],203:[function(e,t,n){"use strict";var r=e("../is-value"),a=Object.keys;t.exports=function(e){return a(r(e)?Object(e):e)}},{"../is-value":200}],204:[function(e,t,n){"use strict";var r=e("./valid-callable"),a=e("./for-each"),o=Function.prototype.call;t.exports=function(e,t){var n={},i=arguments[2];return r(t),a(e,(function(e,r,a,l){n[r]=o.call(t,i,e,r,a,l)})),n}},{"./for-each":198,"./valid-callable":209}],205:[function(e,t,n){"use strict";var r=e("./is-value"),a=Array.prototype.forEach,o=Object.create,i=function(e,t){var n;for(n in e)t[n]=e[n]};t.exports=function(e){var t=o(null);return a.call(arguments,(function(e){r(e)&&i(Object(e),t)})),t}},{"./is-value":200}],206:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?Object.setPrototypeOf:e("./shim")},{"./is-implemented":207,"./shim":208}],207:[function(e,t,n){"use strict";var r=Object.create,a=Object.getPrototypeOf,o={};t.exports=function(){var e=Object.setPrototypeOf,t=arguments[0]||r;return"function"===typeof e&&a(e(t(null),o))===o}},{}],208:[function(e,t,n){"use strict";var r,a=e("../is-object"),o=e("../valid-value"),i=Object.prototype.isPrototypeOf,l=Object.defineProperty,s={configurable:!0,enumerable:!1,writable:!0,value:void 0};r=function(e,t){if(o(e),null===t||a(t))return e;throw new TypeError("Prototype must be null or an object")},t.exports=function(e){var t,n;return e?(2===e.level?e.set?(n=e.set,t=function(e,t){return n.call(r(e,t),t),e}):t=function(e,t){return r(e,t).__proto__=t,e}:t=function e(t,n){var a;return r(t,n),a=i.call(e.nullPolyfill,t),a&&delete e.nullPolyfill.__proto__,null===n&&(n=e.nullPolyfill),t.__proto__=n,a&&l(e.nullPolyfill,"__proto__",s),t},Object.defineProperty(t,"level",{configurable:!1,enumerable:!1,writable:!1,value:e.level})):null}(function(){var e,t=Object.create(null),n={},r=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(r){try{e=r.set,e.call(t,n)}catch(a){}if(Object.getPrototypeOf(t)===n)return{set:e,level:2}}return t.__proto__=n,Object.getPrototypeOf(t)===n?{level:2}:(t={},t.__proto__=n,Object.getPrototypeOf(t)===n&&{level:1})}()),e("../create")},{"../create":197,"../is-object":199,"../valid-value":211}],209:[function(e,t,n){"use strict";t.exports=function(e){if("function"!==typeof e)throw new TypeError(e+" is not a function");return e}},{}],210:[function(e,t,n){"use strict";var r=e("./is-object");t.exports=function(e){if(!r(e))throw new TypeError(e+" is not an Object");return e}},{"./is-object":199}],211:[function(e,t,n){"use strict";var r=e("./is-value");t.exports=function(e){if(!r(e))throw new TypeError("Cannot use null or undefined");return e}},{"./is-value":200}],212:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?String.prototype.contains:e("./shim")},{"./is-implemented":213,"./shim":214}],213:[function(e,t,n){"use strict";var r="razdwatrzy";t.exports=function(){return"function"===typeof r.contains&&(!0===r.contains("dwa")&&!1===r.contains("foo"))}},{}],214:[function(e,t,n){"use strict";var r=String.prototype.indexOf;t.exports=function(e){return r.call(this,e,arguments[1])>-1}},{}],215:[function(e,t,n){"use strict";var r=Object.prototype.toString,a=r.call("");t.exports=function(e){return"string"===typeof e||e&&"object"===typeof e&&(e instanceof String||r.call(e)===a)||!1}},{}],216:[function(e,t,n){"use strict";var r=Object.create(null),a=Math.random;t.exports=function(){var e;do{e=a().toString(36).slice(2)}while(r[e]);return e}},{}],217:[function(e,t,n){"use strict";var r,a=e("es5-ext/object/set-prototype-of"),o=e("es5-ext/string/#/contains"),i=e("d"),l=e("es6-symbol"),s=e("./"),u=Object.defineProperty;r=t.exports=function(e,t){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");s.call(this,e),t=t?o.call(t,"key+value")?"key+value":o.call(t,"key")?"key":"value":"value",u(this,"__kind__",i("",t))},a&&a(r,s),delete r.prototype.constructor,r.prototype=Object.create(s.prototype,{_resolve:i((function(e){return"value"===this.__kind__?this.__list__[e]:"key+value"===this.__kind__?[e,this.__list__[e]]:e}))}),u(r.prototype,l.toStringTag,i("c","Array Iterator"))},{"./":220,d:155,"es5-ext/object/set-prototype-of":206,"es5-ext/string/#/contains":212,"es6-symbol":225}],218:[function(e,t,n){"use strict";var r=e("es5-ext/function/is-arguments"),a=e("es5-ext/object/valid-callable"),o=e("es5-ext/string/is-string"),i=e("./get"),l=Array.isArray,s=Function.prototype.call,u=Array.prototype.some;t.exports=function(e,t){var n,c,f,p,d,h,v,m,y=arguments[2];if(l(e)||r(e)?n="array":o(e)?n="string":e=i(e),a(t),f=function(){p=!0},"array"!==n){if("string"!==n){c=e.next();while(!c.done){if(s.call(t,y,c.value,f),p)return;c=e.next()}}else for(h=e.length,d=0;d<h;++d)if(v=e[d],d+1<h&&(m=v.charCodeAt(0),m>=55296&&m<=56319&&(v+=e[++d])),s.call(t,y,v,f),p)break}else u.call(e,(function(e){return s.call(t,y,e,f),p}))}},{"./get":219,"es5-ext/function/is-arguments":184,"es5-ext/object/valid-callable":209,"es5-ext/string/is-string":215}],219:[function(e,t,n){"use strict";var r=e("es5-ext/function/is-arguments"),a=e("es5-ext/string/is-string"),o=e("./array"),i=e("./string"),l=e("./valid-iterable"),s=e("es6-symbol").iterator;t.exports=function(e){return"function"===typeof l(e)[s]?e[s]():r(e)?new o(e):a(e)?new i(e):new o(e)}},{"./array":217,"./string":222,"./valid-iterable":223,"es5-ext/function/is-arguments":184,"es5-ext/string/is-string":215,"es6-symbol":225}],220:[function(e,t,n){"use strict";var r,a=e("es5-ext/array/#/clear"),o=e("es5-ext/object/assign"),i=e("es5-ext/object/valid-callable"),l=e("es5-ext/object/valid-value"),s=e("d"),u=e("d/auto-bind"),c=e("es6-symbol"),f=Object.defineProperty,p=Object.defineProperties;t.exports=r=function(e,t){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");p(this,{__list__:s("w",l(e)),__context__:s("w",t),__nextIndex__:s("w",0)}),t&&(i(t.on),t.on("_add",this._onAdd),t.on("_delete",this._onDelete),t.on("_clear",this._onClear))},delete r.prototype.constructor,p(r.prototype,o({_next:s((function(){var e;if(this.__list__)return this.__redo__&&(e=this.__redo__.shift(),void 0!==e)?e:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:s((function(){return this._createResult(this._next())})),_createResult:s((function(e){return void 0===e?{done:!0,value:void 0}:{done:!1,value:this._resolve(e)}})),_resolve:s((function(e){return this.__list__[e]})),_unBind:s((function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)})),toString:s((function(){return"[object "+(this[c.toStringTag]||"Object")+"]"}))},u({_onAdd:s((function(e){e>=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(t,n){t>=e&&(this.__redo__[n]=++t)}),this),this.__redo__.push(e)):f(this,"__redo__",s("c",[e])))})),_onDelete:s((function(e){var t;e>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(t=this.__redo__.indexOf(e),-1!==t&&this.__redo__.splice(t,1),this.__redo__.forEach((function(t,n){t>e&&(this.__redo__[n]=--t)}),this)))})),_onClear:s((function(){this.__redo__&&a.call(this.__redo__),this.__nextIndex__=0}))}))),f(r.prototype,c.iterator,s((function(){return this})))},{d:155,"d/auto-bind":154,"es5-ext/array/#/clear":180,"es5-ext/object/assign":193,"es5-ext/object/valid-callable":209,"es5-ext/object/valid-value":211,"es6-symbol":225}],221:[function(e,t,n){"use strict";var r=e("es5-ext/function/is-arguments"),a=e("es5-ext/object/is-value"),o=e("es5-ext/string/is-string"),i=e("es6-symbol").iterator,l=Array.isArray;t.exports=function(e){return!!a(e)&&(!!l(e)||(!!o(e)||(!!r(e)||"function"===typeof e[i])))}},{"es5-ext/function/is-arguments":184,"es5-ext/object/is-value":200,"es5-ext/string/is-string":215,"es6-symbol":225}],222:[function(e,t,n){"use strict";var r,a=e("es5-ext/object/set-prototype-of"),o=e("d"),i=e("es6-symbol"),l=e("./"),s=Object.defineProperty;r=t.exports=function(e){if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");e=String(e),l.call(this,e),s(this,"__length__",o("",e.length))},a&&a(r,l),delete r.prototype.constructor,r.prototype=Object.create(l.prototype,{_next:o((function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:o((function(e){var t,n=this.__list__[e];return this.__nextIndex__===this.__length__?n:(t=n.charCodeAt(0),t>=55296&&t<=56319?n+this.__list__[this.__nextIndex__++]:n)}))}),s(r.prototype,i.toStringTag,o("c","String Iterator"))},{"./":220,d:155,"es5-ext/object/set-prototype-of":206,"es6-symbol":225}],223:[function(e,t,n){"use strict";var r=e("./is-iterable");t.exports=function(e){if(!r(e))throw new TypeError(e+" is not iterable");return e}},{"./is-iterable":221}],224:[function(n,r,a){(function(t,o){
/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
* @version v4.2.8+1e68dce6
*/
(function(t,n){"object"===typeof a&&"undefined"!==typeof r?r.exports=n():"function"===typeof e&&e.amd?e(n):t.ES6Promise=n()})(this,(function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function r(e){return"function"===typeof e}var a=void 0;a=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var i=a,l=0,s=void 0,u=void 0,c=function(e,t){k[l]=e,k[l+1]=t,l+=2,2===l&&(u?u(T):O())};function f(e){u=e}function p(e){c=e}var d="undefined"!==typeof window?window:void 0,h=d||{},v=h.MutationObserver||h.WebKitMutationObserver,m="undefined"===typeof self&&"undefined"!==typeof t&&"[object process]"==={}.toString.call(t),y="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function g(){return function(){return t.nextTick(T)}}function b(){return"undefined"!==typeof s?function(){s(T)}:w()}function x(){var e=0,t=new v(T),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}function _(){var e=new MessageChannel;return e.port1.onmessage=T,function(){return e.port2.postMessage(0)}}function w(){var e=setTimeout;return function(){return e(T,1)}}var k=new Array(1e3);function T(){for(var e=0;e<l;e+=2){var t=k[e],n=k[e+1];t(n),k[e]=void 0,k[e+1]=void 0}l=0}function E(){try{var e=Function("return this")().require("vertx");return s=e.runOnLoop||e.runOnContext,b()}catch(t){return w()}}var O=void 0;function M(e,t){var n=this,r=new this.constructor(A);void 0===r[C]&&X(r);var a=n._state;if(a){var o=arguments[a-1];c((function(){return $(a,r,o,n._result)}))}else W(n,r,e,t);return r}function S(e){var t=this;if(e&&"object"===typeof e&&e.constructor===t)return e;var n=new t(A);return B(n,e),n}O=m?g():v?x():y?_():void 0===d&&"function"===typeof n?E():w();var C=Math.random().toString(36).substring(2);function A(){}var P=void 0,L=1,D=2;function j(){return new TypeError("You cannot resolve a promise with itself")}function I(){return new TypeError("A promises callback cannot return that same promise.")}function R(e,t,n,r){try{e.call(t,n,r)}catch(a){return a}}function z(e,t,n){c((function(e){var r=!1,a=R(n,t,(function(n){r||(r=!0,t!==n?B(e,n):H(e,n))}),(function(t){r||(r=!0,U(e,t))}),"Settle: "+(e._label||" unknown promise"));!r&&a&&(r=!0,U(e,a))}),e)}function N(e,t){t._state===L?H(e,t._result):t._state===D?U(e,t._result):W(t,void 0,(function(t){return B(e,t)}),(function(t){return U(e,t)}))}function F(e,t,n){t.constructor===e.constructor&&n===M&&t.constructor.resolve===S?N(e,t):void 0===n?H(e,t):r(n)?z(e,t,n):H(e,t)}function B(t,n){if(t===n)U(t,j());else if(e(n)){var r=void 0;try{r=n.then}catch(a){return void U(t,a)}F(t,n,r)}else H(t,n)}function V(e){e._onerror&&e._onerror(e._result),q(e)}function H(e,t){e._state===P&&(e._result=t,e._state=L,0!==e._subscribers.length&&c(q,e))}function U(e,t){e._state===P&&(e._state=D,e._result=t,c(V,e))}function W(e,t,n,r){var a=e._subscribers,o=a.length;e._onerror=null,a[o]=t,a[o+L]=n,a[o+D]=r,0===o&&e._state&&c(q,e)}function q(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,a=void 0,o=e._result,i=0;i<t.length;i+=3)r=t[i],a=t[i+n],r?$(n,r,a,o):a(o);e._subscribers.length=0}}function $(e,t,n,a){var o=r(n),i=void 0,l=void 0,s=!0;if(o){try{i=n(a)}catch(u){s=!1,l=u}if(t===i)return void U(t,I())}else i=a;t._state!==P||(o&&s?B(t,i):!1===s?U(t,l):e===L?H(t,i):e===D&&U(t,i))}function G(e,t){try{t((function(t){B(e,t)}),(function(t){U(e,t)}))}catch(n){U(e,n)}}var Y=0;function K(){return Y++}function X(e){e[C]=Y++,e._state=void 0,e._result=void 0,e._subscribers=[]}function Z(){return new Error("Array Methods must be provided an Array")}var J=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(A),this.promise[C]||X(this.promise),i(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?H(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&H(this.promise,this._result))):U(this.promise,Z())}return e.prototype._enumerate=function(e){for(var t=0;this._state===P&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===S){var a=void 0,o=void 0,i=!1;try{a=e.then}catch(s){i=!0,o=s}if(a===M&&e._state!==P)this._settledAt(e._state,t,e._result);else if("function"!==typeof a)this._remaining--,this._result[t]=e;else if(n===ae){var l=new n(A);i?U(l,o):F(l,e,a),this._willSettleAt(l,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===P&&(this._remaining--,e===D?U(r,n):this._result[t]=n),0===this._remaining&&H(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;W(e,void 0,(function(e){return n._settledAt(L,t,e)}),(function(e){return n._settledAt(D,t,e)}))},e}();function Q(e){return new J(this,e).promise}function ee(e){var t=this;return i(e)?new t((function(n,r){for(var a=e.length,o=0;o<a;o++)t.resolve(e[o]).then(n,r)})):new t((function(e,t){return t(new TypeError("You must pass an array to race."))}))}function te(e){var t=this,n=new t(A);return U(n,e),n}function ne(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function re(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ae=function(){function e(t){this[C]=K(),this._result=this._state=void 0,this._subscribers=[],A!==t&&("function"!==typeof t&&ne(),this instanceof e?G(this,t):re())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var t=this,n=t.constructor;return r(e)?t.then((function(t){return n.resolve(e()).then((function(){return t}))}),(function(t){return n.resolve(e()).then((function(){throw t}))})):t.then(e,e)},e}();function oe(){var e=void 0;if("undefined"!==typeof o)e=o;else if("undefined"!==typeof self)e=self;else try{e=Function("return this")()}catch(r){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(r){}if("[object Promise]"===n&&!t.cast)return}e.Promise=ae}return ae.prototype.then=M,ae.all=Q,ae.race=ee,ae.resolve=S,ae.reject=te,ae._setScheduler=f,ae._setAsap=p,ae._asap=c,ae.polyfill=oe,ae.Promise=ae,ae}))}).call(this,n("_process"),"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{_process:500}],225:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?e("ext/global-this").Symbol:e("./polyfill")},{"./is-implemented":226,"./polyfill":231,"ext/global-this":238}],226:[function(e,t,n){"use strict";var r=e("ext/global-this"),a={object:!0,symbol:!0};t.exports=function(){var e,t=r.Symbol;if("function"!==typeof t)return!1;e=t("test symbol");try{String(e)}catch(n){return!1}return!!a[typeof t.iterator]&&(!!a[typeof t.toPrimitive]&&!!a[typeof t.toStringTag])}},{"ext/global-this":238}],227:[function(e,t,n){"use strict";t.exports=function(e){return!!e&&("symbol"===typeof e||!!e.constructor&&("Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag]))}},{}],228:[function(e,t,n){"use strict";var r=e("d"),a=Object.create,o=Object.defineProperty,i=Object.prototype,l=a(null);t.exports=function(e){var t,n,a=0;while(l[e+(a||"")])++a;return e+=a||"",l[e]=!0,t="@@"+e,o(i,t,r.gs(null,(function(e){n||(n=!0,o(this,t,r(e)),n=!1)}))),t}},{d:155}],229:[function(e,t,n){"use strict";var r=e("d"),a=e("ext/global-this").Symbol;t.exports=function(e){return Object.defineProperties(e,{hasInstance:r("",a&&a.hasInstance||e("hasInstance")),isConcatSpreadable:r("",a&&a.isConcatSpreadable||e("isConcatSpreadable")),iterator:r("",a&&a.iterator||e("iterator")),match:r("",a&&a.match||e("match")),replace:r("",a&&a.replace||e("replace")),search:r("",a&&a.search||e("search")),species:r("",a&&a.species||e("species")),split:r("",a&&a.split||e("split")),toPrimitive:r("",a&&a.toPrimitive||e("toPrimitive")),toStringTag:r("",a&&a.toStringTag||e("toStringTag")),unscopables:r("",a&&a.unscopables||e("unscopables"))})}},{d:155,"ext/global-this":238}],230:[function(e,t,n){"use strict";var r=e("d"),a=e("../../../validate-symbol"),o=Object.create(null);t.exports=function(e){return Object.defineProperties(e,{for:r((function(t){return o[t]?o[t]:o[t]=e(String(t))})),keyFor:r((function(e){var t;for(t in a(e),o)if(o[t]===e)return t}))})}},{"../../../validate-symbol":232,d:155}],231:[function(e,t,n){"use strict";var r,a,o,i=e("d"),l=e("./validate-symbol"),s=e("ext/global-this").Symbol,u=e("./lib/private/generate-name"),c=e("./lib/private/setup/standard-symbols"),f=e("./lib/private/setup/symbol-registry"),p=Object.create,d=Object.defineProperties,h=Object.defineProperty;if("function"===typeof s)try{String(s()),o=!0}catch(v){}else s=null;a=function(e){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return r(e)},t.exports=r=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return o?s(t):(n=p(a.prototype),t=void 0===t?"":String(t),d(n,{__description__:i("",t),__name__:i("",u(t))}))},c(r),f(r),d(a.prototype,{constructor:i(r),toString:i("",(function(){return this.__name__}))}),d(r.prototype,{toString:i((function(){return"Symbol ("+l(this).__description__+")"})),valueOf:i((function(){return l(this)}))}),h(r.prototype,r.toPrimitive,i("",(function(){var e=l(this);return"symbol"===typeof e?e:e.toString()}))),h(r.prototype,r.toStringTag,i("c","Symbol")),h(a.prototype,r.toStringTag,i("c",r.prototype[r.toStringTag])),h(a.prototype,r.toPrimitive,i("c",r.prototype[r.toPrimitive]))},{"./lib/private/generate-name":228,"./lib/private/setup/standard-symbols":229,"./lib/private/setup/symbol-registry":230,"./validate-symbol":232,d:155,"ext/global-this":238}],232:[function(e,t,n){"use strict";var r=e("./is-symbol");t.exports=function(e){if(!r(e))throw new TypeError(e+" is not a symbol");return e}},{"./is-symbol":227}],233:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?WeakMap:e("./polyfill")},{"./is-implemented":234,"./polyfill":236}],234:[function(e,t,n){"use strict";t.exports=function(){var e,t;if("function"!==typeof WeakMap)return!1;try{e=new WeakMap([[t={},"one"],[{},"two"],[{},"three"]])}catch(n){return!1}return"[object WeakMap]"===String(e)&&("function"===typeof e.set&&(e.set({},1)===e&&("function"===typeof e.delete&&("function"===typeof e.has&&"one"===e.get(t)))))}},{}],235:[function(e,t,n){"use strict";t.exports=function(){return"function"===typeof WeakMap&&"[object WeakMap]"===Object.prototype.toString.call(new WeakMap)}()},{}],236:[function(e,t,n){"use strict";var r,a=e("es5-ext/object/is-value"),o=e("es5-ext/object/set-prototype-of"),i=e("es5-ext/object/valid-object"),l=e("es5-ext/object/valid-value"),s=e("es5-ext/string/random-uniq"),u=e("d"),c=e("es6-iterator/get"),f=e("es6-iterator/for-of"),p=e("es6-symbol").toStringTag,d=e("./is-native-implemented"),h=Array.isArray,v=Object.defineProperty,m=Object.prototype.hasOwnProperty,y=Object.getPrototypeOf;t.exports=r=function(){var e,t=arguments[0];if(!(this instanceof r))throw new TypeError("Constructor requires 'new'");return e=d&&o&&WeakMap!==r?o(new WeakMap,y(this)):this,a(t)&&(h(t)||(t=c(t))),v(e,"__weakMapData__",u("c","$weakMap$"+s())),t?(f(t,(function(t){l(t),e.set(t[0],t[1])})),e):e},d&&(o&&o(r,WeakMap),r.prototype=Object.create(WeakMap.prototype,{constructor:u(r)})),Object.defineProperties(r.prototype,{delete:u((function(e){return!!m.call(i(e),this.__weakMapData__)&&(delete e[this.__weakMapData__],!0)})),get:u((function(e){if(m.call(i(e),this.__weakMapData__))return e[this.__weakMapData__]})),has:u((function(e){return m.call(i(e),this.__weakMapData__)})),set:u((function(e,t){return v(i(e),this.__weakMapData__,u("c",t)),this})),toString:u((function(){return"[object WeakMap]"}))}),v(r.prototype,p,u("c","WeakMap"))},{"./is-native-implemented":235,d:155,"es5-ext/object/is-value":200,"es5-ext/object/set-prototype-of":206,"es5-ext/object/valid-object":210,"es5-ext/object/valid-value":211,"es5-ext/string/random-uniq":216,"es6-iterator/for-of":218,"es6-iterator/get":219,"es6-symbol":225}],237:[function(e,t,n){var r=function(){if("object"===typeof self&&self)return self;if("object"===typeof window&&window)return window;throw new Error("Unable to resolve global `this`")};t.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return r()}try{return __global__||r()}finally{delete Object.prototype.__global__}}()},{}],238:[function(e,t,n){"use strict";t.exports=e("./is-implemented")()?globalThis:e("./implementation")},{"./implementation":237,"./is-implemented":239}],239:[function(e,t,n){"use strict";t.exports=function(){return"object"===typeof globalThis&&(!!globalThis&&globalThis.Array===Array)}},{}],240:[function(e,t,n){"use strict";function r(e,t,n){var r=t||0,a=n||1;return[[e[12]+e[0],e[13]+e[1],e[14]+e[2],e[15]+e[3]],[e[12]-e[0],e[13]-e[1],e[14]-e[2],e[15]-e[3]],[e[12]+e[4],e[13]+e[5],e[14]+e[6],e[15]+e[7]],[e[12]-e[4],e[13]-e[5],e[14]-e[6],e[15]-e[7]],[r*e[12]+e[8],r*e[13]+e[9],r*e[14]+e[10],r*e[15]+e[11]],[a*e[12]-e[8],a*e[13]-e[9],a*e[14]-e[10],a*e[15]-e[11]]]}t.exports=r},{}],241:[function(e,t,n){"use strict";var r=e("is-string-blank");t.exports=function(e){var t=typeof e;if("string"===t){var n=e;if(e=+e,0===e&&r(n))return!1}else if("number"!==t)return!1;return e-e<1}},{"is-string-blank":444}],242:[function(e,t,n){"use strict";t.exports=u;var r=e("cubic-hermite"),a=e("binary-search-bounds");function o(e,t,n){return Math.min(t,Math.max(e,n))}function i(e,t,n){this.dimension=e.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var r=0;r<this.dimension;++r)this.bounds[0][r]=-1/0,this.bounds[1][r]=1/0;this._state=e.slice().reverse(),this._velocity=t.slice().reverse(),this._time=[n],this._scratch=[e.slice(),e.slice(),e.slice(),e.slice(),e.slice()]}var l=i.prototype;function s(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=0;return t}function u(e,t,n){switch(arguments.length){case 0:return new i([0],[0],0);case 1:if("number"===typeof e){var r=s(e);return new i(r,r,0)}return new i(e,s(e.length),0);case 2:if("number"===typeof t){r=s(e.length);return new i(e,r,+t)}n=0;case 3:if(e.length!==t.length)throw new Error("state and velocity lengths must match");return new i(e,t,n)}}l.flush=function(e){var t=a.gt(this._time,e)-1;t<=0||(this._time.splice(0,t),this._state.splice(0,t*this.dimension),this._velocity.splice(0,t*this.dimension))},l.curve=function(e){var t=this._time,n=t.length,i=a.le(t,e),l=this._scratch[0],s=this._state,u=this._velocity,c=this.dimension,f=this.bounds;if(i<0)for(var p=c-1,d=0;d<c;++d,--p)l[d]=s[p];else if(i>=n-1){p=s.length-1;var h=e-t[n-1];for(d=0;d<c;++d,--p)l[d]=s[p]+h*u[p]}else{p=c*(i+1)-1;var v=t[i],m=t[i+1],y=m-v||1,g=this._scratch[1],b=this._scratch[2],x=this._scratch[3],_=this._scratch[4],w=!0;for(d=0;d<c;++d,--p)g[d]=s[p],x[d]=u[p]*y,b[d]=s[p+c],_[d]=u[p+c]*y,w=w&&g[d]===b[d]&&x[d]===_[d]&&0===x[d];if(w)for(d=0;d<c;++d)l[d]=g[d];else r(g,x,b,_,(e-v)/y,l)}var k=f[0],T=f[1];for(d=0;d<c;++d)l[d]=o(k[d],T[d],l[d]);return l},l.dcurve=function(e){var t=this._time,n=t.length,o=a.le(t,e),i=this._scratch[0],l=this._state,s=this._velocity,u=this.dimension;if(o>=n-1)for(var c=l.length-1,f=(t[n-1],0);f<u;++f,--c)i[f]=s[c];else{c=u*(o+1)-1;var p=t[o],d=t[o+1],h=d-p||1,v=this._scratch[1],m=this._scratch[2],y=this._scratch[3],g=this._scratch[4],b=!0;for(f=0;f<u;++f,--c)v[f]=l[c],y[f]=s[c]*h,m[f]=l[c+u],g[f]=s[c+u]*h,b=b&&v[f]===m[f]&&y[f]===g[f]&&0===y[f];if(b)for(f=0;f<u;++f)i[f]=0;else{r.derivative(v,y,m,g,(e-p)/h,i);for(f=0;f<u;++f)i[f]/=h}}return i},l.lastT=function(){var e=this._time;return e[e.length-1]},l.stable=function(){for(var e=this._velocity,t=e.length,n=this.dimension-1;n>=0;--n)if(e[--t])return!1;return!0},l.jump=function(e){var t=this.lastT(),n=this.dimension;if(!(e<t||arguments.length!==n+1)){var r=this._state,a=this._velocity,i=r.length-this.dimension,l=this.bounds,s=l[0],u=l[1];this._time.push(t,e);for(var c=0;c<2;++c)for(var f=0;f<n;++f)r.push(r[i++]),a.push(0);this._time.push(e);for(f=n;f>0;--f)r.push(o(s[f-1],u[f-1],arguments[f])),a.push(0)}},l.push=function(e){var t=this.lastT(),n=this.dimension;if(!(e<t||arguments.length!==n+1)){var r=this._state,a=this._velocity,i=r.length-this.dimension,l=e-t,s=this.bounds,u=s[0],c=s[1],f=l>1e-6?1/l:0;this._time.push(e);for(var p=n;p>0;--p){var d=o(u[p-1],c[p-1],arguments[p]);r.push(d),a.push((d-r[i++])*f)}}},l.set=function(e){var t=this.dimension;if(!(e<this.lastT()||arguments.length!==t+1)){var n=this._state,r=this._velocity,a=this.bounds,i=a[0],l=a[1];this._time.push(e);for(var s=t;s>0;--s)n.push(o(i[s-1],l[s-1],arguments[s])),r.push(0)}},l.move=function(e){var t=this.lastT(),n=this.dimension;if(!(e<=t||arguments.length!==n+1)){var r=this._state,a=this._velocity,i=r.length-this.dimension,l=this.bounds,s=l[0],u=l[1],c=e-t,f=c>1e-6?1/c:0;this._time.push(e);for(var p=n;p>0;--p){var d=arguments[p];r.push(o(s[p-1],u[p-1],r[i++]+d)),a.push(d*f)}}},l.idle=function(e){var t=this.lastT();if(!(e<t)){var n=this.dimension,r=this._state,a=this._velocity,i=r.length-n,l=this.bounds,s=l[0],u=l[1],c=e-t;this._time.push(e);for(var f=n-1;f>=0;--f)r.push(o(s[f],u[f],r[i]+c*a[i])),a.push(0),i+=1}}},{"binary-search-bounds":243,"cubic-hermite":150}],243:[function(e,t,n){"use strict";function r(e,t,n,r,a,o){var i=["function ",e,"(a,l,h,",r.join(","),"){",o?"":"var i=",n?"l-1":"h+1",";while(l<=h){var m=(l+h)>>>1,x=a",a?".get(m)":"[m]"];return o?t.indexOf("c")<0?i.push(";if(x===y){return m}else if(x<=y){"):i.push(";var p=c(x,y);if(p===0){return m}else if(p<=0){"):i.push(";if(",t,"){i=m;"),n?i.push("l=m+1}else{h=m-1}"):i.push("h=m-1}else{l=m+1}"),i.push("}"),o?i.push("return -1};"):i.push("return i};"),i.join("")}function a(e,t,n,a){var o=new Function([r("A","x"+e+"y",t,["y"],!1,a),r("B","x"+e+"y",t,["y"],!0,a),r("P","c(x,y)"+e+"0",t,["y","c"],!1,a),r("Q","c(x,y)"+e+"0",t,["y","c"],!0,a),"function dispatchBsearch",n,"(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch",n].join(""));return o()}t.exports={ge:a(">=",!1,"GE"),gt:a(">",!1,"GT"),lt:a("<",!0,"LT"),le:a("<=",!0,"LE"),eq:a("-",!0,"EQ",!0)}},{}],244:[function(e,t,n){var r=e("dtype");function a(e,t,n){if(!e)throw new TypeError("must specify data as first parameter");if(n=0|+(n||0),Array.isArray(e)&&e[0]&&"number"===typeof e[0][0]){var a,o,i,l,s=e[0].length,u=e.length*s;t&&"string"!==typeof t||(t=new(r(t||"float32"))(u+n));var c=t.length-n;if(u!==c)throw new Error("source length "+u+" ("+s+"x"+e.length+") does not match destination length "+c);for(a=0,i=n;a<e.length;a++)for(o=0;o<s;o++)t[i++]=null===e[a][o]?NaN:e[a][o]}else if(t&&"string"!==typeof t)t.set(e,n);else{var f=r(t||"float32");if(Array.isArray(e)||"array"===t)for(t=new f(e.length+n),a=0,i=n,l=t.length;i<l;i++,a++)t[i]=null===e[a]?NaN:e[a];else 0===n?t=new f(e):(t=new f(e.length+n),t.set(e,n))}return t}t.exports=a},{dtype:175}],245:[function(e,t,n){"use strict";var r=e("css-font/stringify"),a=[32,126];function o(e){e=e||{};var t=e.shape?e.shape:e.canvas?[e.canvas.width,e.canvas.height]:[512,512],n=e.canvas||document.createElement("canvas"),o=e.font,i="number"===typeof e.step?[e.step,e.step]:e.step||[32,32],l=e.chars||a;if(o&&"string"!==typeof o&&(o=r(o)),Array.isArray(l)){if(2===l.length&&"number"===typeof l[0]&&"number"===typeof l[1]){for(var s=[],u=l[0],c=0;u<=l[1];u++)s[c++]=String.fromCharCode(u);l=s}}else l=String(l).split("");t=t.slice(),n.width=t[0],n.height=t[1];var f=n.getContext("2d");f.fillStyle="#000",f.fillRect(0,0,n.width,n.height),f.font=o,f.textAlign="center",f.textBaseline="middle",f.fillStyle="#fff";var p=i[0]/2,d=i[1]/2;for(u=0;u<l.length;u++)f.fillText(l[u],p,d),(p+=i[0])>t[0]-i[0]/2&&(p=i[0]/2,d+=i[1]);return n}t.exports=o},{"css-font/stringify":147}],246:[function(e,t,n){"use strict";function r(e,t){t||(t={}),("string"===typeof e||Array.isArray(e))&&(t.family=e);var n=Array.isArray(t.family)?t.family.join(", "):t.family;if(!n)throw Error("`family` must be defined");var l=t.size||t.fontSize||t.em||48,s=t.weight||t.fontWeight||"",u=t.style||t.fontStyle||"",c=(e=[u,s,l].join(" ")+"px "+n,t.origin||"top");if(r.cache[n]&&l<=r.cache[n].em)return a(r.cache[n],c);var f=t.canvas||r.canvas,p=f.getContext("2d"),d={upper:void 0!==t.upper?t.upper:"H",lower:void 0!==t.lower?t.lower:"x",descent:void 0!==t.descent?t.descent:"p",ascent:void 0!==t.ascent?t.ascent:"h",tittle:void 0!==t.tittle?t.tittle:"i",overshoot:void 0!==t.overshoot?t.overshoot:"O"},h=Math.ceil(1.5*l);f.height=h,f.width=.5*h,p.font=e;var v="H",m={top:0};p.clearRect(0,0,h,h),p.textBaseline="top",p.fillStyle="black",p.fillText(v,0,0);var y=o(p.getImageData(0,0,h,h));p.clearRect(0,0,h,h),p.textBaseline="bottom",p.fillText(v,0,h);var g=o(p.getImageData(0,0,h,h));m.lineHeight=m.bottom=h-g+y,p.clearRect(0,0,h,h),p.textBaseline="alphabetic",p.fillText(v,0,h);var b=o(p.getImageData(0,0,h,h)),x=h-b-1+y;m.baseline=m.alphabetic=x,p.clearRect(0,0,h,h),p.textBaseline="middle",p.fillText(v,0,.5*h);var _=o(p.getImageData(0,0,h,h));m.median=m.middle=h-_-1+y-.5*h,p.clearRect(0,0,h,h),p.textBaseline="hanging",p.fillText(v,0,.5*h);var w=o(p.getImageData(0,0,h,h));m.hanging=h-w-1+y-.5*h,p.clearRect(0,0,h,h),p.textBaseline="ideographic",p.fillText(v,0,h);var k=o(p.getImageData(0,0,h,h));if(m.ideographic=h-k-1+y,d.upper&&(p.clearRect(0,0,h,h),p.textBaseline="top",p.fillText(d.upper,0,0),m.upper=o(p.getImageData(0,0,h,h)),m.capHeight=m.baseline-m.upper),d.lower&&(p.clearRect(0,0,h,h),p.textBaseline="top",p.fillText(d.lower,0,0),m.lower=o(p.getImageData(0,0,h,h)),m.xHeight=m.baseline-m.lower),d.tittle&&(p.clearRect(0,0,h,h),p.textBaseline="top",p.fillText(d.tittle,0,0),m.tittle=o(p.getImageData(0,0,h,h))),d.ascent&&(p.clearRect(0,0,h,h),p.textBaseline="top",p.fillText(d.ascent,0,0),m.ascent=o(p.getImageData(0,0,h,h))),d.descent&&(p.clearRect(0,0,h,h),p.textBaseline="top",p.fillText(d.descent,0,0),m.descent=i(p.getImageData(0,0,h,h))),d.overshoot){p.clearRect(0,0,h,h),p.textBaseline="top",p.fillText(d.overshoot,0,0);var T=i(p.getImageData(0,0,h,h));m.overshoot=T-x}for(var E in m)m[E]/=l;return m.em=l,r.cache[n]=m,a(m,c)}function a(e,t){var n={};for(var r in"string"===typeof t&&(t=e[t]),e)"em"!==r&&(n[r]=e[r]-t);return n}function o(e){for(var t=e.height,n=e.data,r=3;r<n.length;r+=4)if(0!==n[r])return Math.floor(.25*(r-3)/t)}function i(e){for(var t=e.height,n=e.data,r=n.length-1;r>0;r-=4)if(0!==n[r])return Math.floor(.25*(r-3)/t)}t.exports=r,r.canvas=document.createElement("canvas"),r.cache={}},{}],247:[function(e,t,n){"use strict";t.exports=b;var r=0,a=1;function o(e,t,n,r,a,o){this._color=e,this.key=t,this.value=n,this.left=r,this.right=a,this._count=o}function i(e){return new o(e._color,e.key,e.value,e.left,e.right,e._count)}function l(e,t){return new o(e,t.key,t.value,t.left,t.right,t._count)}function s(e){e._count=1+(e.left?e.left._count:0)+(e.right?e.right._count:0)}function u(e,t){this._compare=e,this.root=t}var c=u.prototype;function f(e,t){if(t.left){var n=f(e,t.left);if(n)return n}n=e(t.key,t.value);return n||(t.right?f(e,t.right):void 0)}function p(e,t,n,r){var a=t(e,r.key);if(a<=0){if(r.left){var o=p(e,t,n,r.left);if(o)return o}o=n(r.key,r.value);if(o)return o}if(r.right)return p(e,t,n,r.right)}function d(e,t,n,r,a){var o,i=n(e,a.key),l=n(t,a.key);if(i<=0){if(a.left&&(o=d(e,t,n,r,a.left),o))return o;if(l>0&&(o=r(a.key,a.value),o))return o}if(l>0&&a.right)return d(e,t,n,r,a.right)}function h(e,t){this.tree=e,this._stack=t}Object.defineProperty(c,"keys",{get:function(){var e=[];return this.forEach((function(t,n){e.push(t)})),e}}),Object.defineProperty(c,"values",{get:function(){var e=[];return this.forEach((function(t,n){e.push(n)})),e}}),Object.defineProperty(c,"length",{get:function(){return this.root?this.root._count:0}}),c.insert=function(e,t){var n=this._compare,i=this.root,c=[],f=[];while(i){var p=n(e,i.key);c.push(i),f.push(p),i=p<=0?i.left:i.right}c.push(new o(r,e,t,null,null,1));for(var d=c.length-2;d>=0;--d){i=c[d];f[d]<=0?c[d]=new o(i._color,i.key,i.value,c[d+1],i.right,i._count+1):c[d]=new o(i._color,i.key,i.value,i.left,c[d+1],i._count+1)}for(d=c.length-1;d>1;--d){var h=c[d-1];i=c[d];if(h._color===a||i._color===a)break;var v=c[d-2];if(v.left===h)if(h.left===i){var m=v.right;if(!m||m._color!==r){if(v._color=r,v.left=h.right,h._color=a,h.right=v,c[d-2]=h,c[d-1]=i,s(v),s(h),d>=3){var y=c[d-3];y.left===v?y.left=h:y.right=h}break}h._color=a,v.right=l(a,m),v._color=r,d-=1}else{m=v.right;if(!m||m._color!==r){if(h.right=i.left,v._color=r,v.left=i.right,i._color=a,i.left=h,i.right=v,c[d-2]=i,c[d-1]=h,s(v),s(h),s(i),d>=3){y=c[d-3];y.left===v?y.left=i:y.right=i}break}h._color=a,v.right=l(a,m),v._color=r,d-=1}else if(h.right===i){m=v.left;if(!m||m._color!==r){if(v._color=r,v.right=h.left,h._color=a,h.left=v,c[d-2]=h,c[d-1]=i,s(v),s(h),d>=3){y=c[d-3];y.right===v?y.right=h:y.left=h}break}h._color=a,v.left=l(a,m),v._color=r,d-=1}else{m=v.left;if(!m||m._color!==r){if(h.left=i.right,v._color=r,v.right=i.left,i._color=a,i.right=h,i.left=v,c[d-2]=i,c[d-1]=h,s(v),s(h),s(i),d>=3){y=c[d-3];y.right===v?y.right=i:y.left=i}break}h._color=a,v.left=l(a,m),v._color=r,d-=1}}return c[0]._color=a,new u(n,c[0])},c.forEach=function(e,t,n){if(this.root)switch(arguments.length){case 1:return f(e,this.root);case 2:return p(t,this._compare,e,this.root);case 3:if(this._compare(t,n)>=0)return;return d(t,n,this._compare,e,this.root)}},Object.defineProperty(c,"begin",{get:function(){var e=[],t=this.root;while(t)e.push(t),t=t.left;return new h(this,e)}}),Object.defineProperty(c,"end",{get:function(){var e=[],t=this.root;while(t)e.push(t),t=t.right;return new h(this,e)}}),c.at=function(e){if(e<0)return new h(this,[]);var t=this.root,n=[];while(1){if(n.push(t),t.left){if(e<t.left._count){t=t.left;continue}e-=t.left._count}if(!e)return new h(this,n);if(e-=1,!t.right)break;if(e>=t.right._count)break;t=t.right}return new h(this,[])},c.ge=function(e){var t=this._compare,n=this.root,r=[],a=0;while(n){var o=t(e,n.key);r.push(n),o<=0&&(a=r.length),n=o<=0?n.left:n.right}return r.length=a,new h(this,r)},c.gt=function(e){var t=this._compare,n=this.root,r=[],a=0;while(n){var o=t(e,n.key);r.push(n),o<0&&(a=r.length),n=o<0?n.left:n.right}return r.length=a,new h(this,r)},c.lt=function(e){var t=this._compare,n=this.root,r=[],a=0;while(n){var o=t(e,n.key);r.push(n),o>0&&(a=r.length),n=o<=0?n.left:n.right}return r.length=a,new h(this,r)},c.le=function(e){var t=this._compare,n=this.root,r=[],a=0;while(n){var o=t(e,n.key);r.push(n),o>=0&&(a=r.length),n=o<0?n.left:n.right}return r.length=a,new h(this,r)},c.find=function(e){var t=this._compare,n=this.root,r=[];while(n){var a=t(e,n.key);if(r.push(n),0===a)return new h(this,r);n=a<=0?n.left:n.right}return new h(this,[])},c.remove=function(e){var t=this.find(e);return t?t.remove():this},c.get=function(e){var t=this._compare,n=this.root;while(n){var r=t(e,n.key);if(0===r)return n.value;n=r<=0?n.left:n.right}};var v=h.prototype;function m(e,t){e.key=t.key,e.value=t.value,e.left=t.left,e.right=t.right,e._color=t._color,e._count=t._count}function y(e){for(var t,n,o,u,c=e.length-1;c>=0;--c){if(t=e[c],0===c)return void(t._color=a);if(n=e[c-1],n.left===t){if(o=n.right,o.right&&o.right._color===r){if(o=n.right=i(o),u=o.right=i(o.right),n.right=o.left,o.left=n,o.right=u,o._color=n._color,t._color=a,n._color=a,u._color=a,s(n),s(o),c>1){var f=e[c-2];f.left===n?f.left=o:f.right=o}return void(e[c-1]=o)}if(o.left&&o.left._color===r){if(o=n.right=i(o),u=o.left=i(o.left),n.right=u.left,o.left=u.right,u.left=n,u.right=o,u._color=n._color,n._color=a,o._color=a,t._color=a,s(n),s(o),s(u),c>1){f=e[c-2];f.left===n?f.left=u:f.right=u}return void(e[c-1]=u)}if(o._color===a){if(n._color===r)return n._color=a,void(n.right=l(r,o));n.right=l(r,o);continue}if(o=i(o),n.right=o.left,o.left=n,o._color=n._color,n._color=r,s(n),s(o),c>1){f=e[c-2];f.left===n?f.left=o:f.right=o}e[c-1]=o,e[c]=n,c+1<e.length?e[c+1]=t:e.push(t),c+=2}else{if(o=n.left,o.left&&o.left._color===r){if(o=n.left=i(o),u=o.left=i(o.left),n.left=o.right,o.right=n,o.left=u,o._color=n._color,t._color=a,n._color=a,u._color=a,s(n),s(o),c>1){f=e[c-2];f.right===n?f.right=o:f.left=o}return void(e[c-1]=o)}if(o.right&&o.right._color===r){if(o=n.left=i(o),u=o.right=i(o.right),n.left=u.right,o.right=u.left,u.right=n,u.left=o,u._color=n._color,n._color=a,o._color=a,t._color=a,s(n),s(o),s(u),c>1){f=e[c-2];f.right===n?f.right=u:f.left=u}return void(e[c-1]=u)}if(o._color===a){if(n._color===r)return n._color=a,void(n.left=l(r,o));n.left=l(r,o);continue}if(o=i(o),n.left=o.right,o.right=n,o._color=n._color,n._color=r,s(n),s(o),c>1){f=e[c-2];f.right===n?f.right=o:f.left=o}e[c-1]=o,e[c]=n,c+1<e.length?e[c+1]=t:e.push(t),c+=2}}}function g(e,t){return e<t?-1:e>t?1:0}function b(e){return new u(e||g,null)}Object.defineProperty(v,"valid",{get:function(){return this._stack.length>0}}),Object.defineProperty(v,"node",{get:function(){return this._stack.length>0?this._stack[this._stack.length-1]:null},enumerable:!0}),v.clone=function(){return new h(this.tree,this._stack.slice())},v.remove=function(){var e=this._stack;if(0===e.length)return this.tree;var t=new Array(e.length),n=e[e.length-1];t[t.length-1]=new o(n._color,n.key,n.value,n.left,n.right,n._count);for(var i=e.length-2;i>=0;--i){n=e[i];n.left===e[i+1]?t[i]=new o(n._color,n.key,n.value,t[i+1],n.right,n._count):t[i]=new o(n._color,n.key,n.value,n.left,t[i+1],n._count)}if(n=t[t.length-1],n.left&&n.right){var l=t.length;n=n.left;while(n.right)t.push(n),n=n.right;var s=t[l-1];t.push(new o(n._color,s.key,s.value,n.left,n.right,n._count)),t[l-1].key=n.key,t[l-1].value=n.value;for(i=t.length-2;i>=l;--i)n=t[i],t[i]=new o(n._color,n.key,n.value,n.left,t[i+1],n._count);t[l-1].left=t[l]}if(n=t[t.length-1],n._color===r){var c=t[t.length-2];c.left===n?c.left=null:c.right===n&&(c.right=null),t.pop();for(i=0;i<t.length;++i)t[i]._count--;return new u(this.tree._compare,t[0])}if(n.left||n.right){n.left?m(n,n.left):n.right&&m(n,n.right),n._color=a;for(i=0;i<t.length-1;++i)t[i]._count--;return new u(this.tree._compare,t[0])}if(1===t.length)return new u(this.tree._compare,null);for(i=0;i<t.length;++i)t[i]._count--;var f=t[t.length-2];return y(t),f.left===n?f.left=null:f.right=null,new u(this.tree._compare,t[0])},Object.defineProperty(v,"key",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(v,"value",{get:function(){if(this._stack.length>0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(v,"index",{get:function(){var e=0,t=this._stack;if(0===t.length){var n=this.tree.root;return n?n._count:0}t[t.length-1].left&&(e=t[t.length-1].left._count);for(var r=t.length-2;r>=0;--r)t[r+1]===t[r].right&&(++e,t[r].left&&(e+=t[r].left._count));return e},enumerable:!0}),v.next=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.right){t=t.right;while(t)e.push(t),t=t.left}else{e.pop();while(e.length>0&&e[e.length-1].right===t)t=e[e.length-1],e.pop()}}},Object.defineProperty(v,"hasNext",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].right)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].left===e[t])return!0;return!1}}),v.update=function(e){var t=this._stack;if(0===t.length)throw new Error("Can't update empty node!");var n=new Array(t.length),r=t[t.length-1];n[n.length-1]=new o(r._color,r.key,e,r.left,r.right,r._count);for(var a=t.length-2;a>=0;--a)r=t[a],r.left===t[a+1]?n[a]=new o(r._color,r.key,r.value,n[a+1],r.right,r._count):n[a]=new o(r._color,r.key,r.value,r.left,n[a+1],r._count);return new u(this.tree._compare,n[0])},v.prev=function(){var e=this._stack;if(0!==e.length){var t=e[e.length-1];if(t.left){t=t.left;while(t)e.push(t),t=t.right}else{e.pop();while(e.length>0&&e[e.length-1].left===t)t=e[e.length-1],e.pop()}}},Object.defineProperty(v,"hasPrev",{get:function(){var e=this._stack;if(0===e.length)return!1;if(e[e.length-1].left)return!0;for(var t=e.length-1;t>0;--t)if(e[t-1].right===e[t])return!0;return!1}})},{}],248:[function(e,t,n){var r=7,a=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],o=607/128,i=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function l(e){if(e<0)return Number("0/0");for(var t=i[0],n=i.length-1;n>0;--n)t+=i[n]/(e+n);var r=e+o+.5;return.5*Math.log(2*Math.PI)+(e+.5)*Math.log(r)-r+Math.log(t)-Math.log(e)}t.exports=function e(t){if(t<.5)return Math.PI/(Math.sin(Math.PI*t)*e(1-t));if(t>100)return Math.exp(l(t));t-=1;for(var n=a[0],o=1;o<r+2;o++)n+=a[o]/(t+o);var i=t+r+.5;return Math.sqrt(2*Math.PI)*Math.pow(i,t+.5)*Math.exp(-i)*n},t.exports.log=l},{}],249:[function(e,t,n){function r(e,t){if("string"!==typeof e)throw new TypeError("must specify type string");if(t=t||{},"undefined"===typeof document&&!t.canvas)return null;var n=t.canvas||document.createElement("canvas");"number"===typeof t.width&&(n.width=t.width),"number"===typeof t.height&&(n.height=t.height);var r,a=t;try{var o=[e];0===e.indexOf("webgl")&&o.push("experimental-"+e);for(var i=0;i<o.length;i++)if(r=n.getContext(o[i],a),r)return r}catch(l){r=null}return r||null}t.exports=r},{}],250:[function(e,t,n){"use strict";t.exports=_;var r=e("./lib/text.js"),a=e("./lib/lines.js"),o=e("./lib/background.js"),i=e("./lib/cube.js"),l=e("./lib/ticks.js"),s=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function u(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function c(e){this.gl=e,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=["auto","auto","auto"],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont="sans-serif",this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=["auto","auto","auto"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=o(e)}var f=c.prototype;function p(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(e){function t(t,n,r){if(r in e){var a,o=e[r],i=this[r];(t?Array.isArray(o)&&Array.isArray(o[0]):Array.isArray(o))?this[r]=a=[n(o[0]),n(o[1]),n(o[2])]:this[r]=a=[n(o),n(o),n(o)];for(var l=0;l<3;++l)if(a[l]!==i[l])return!0}return!1}e=e||{};var n,o=t.bind(this,!1,Number),i=t.bind(this,!1,Boolean),s=t.bind(this,!1,String),u=t.bind(this,!0,(function(e){if(Array.isArray(e)){if(3===e.length)return[+e[0],+e[1],+e[2],1];if(4===e.length)return[+e[0],+e[1],+e[2],+e[3]]}return[0,0,0,1]})),c=!1,f=!1;if("bounds"in e)for(var p=e.bounds,d=0;d<2;++d)for(var h=0;h<3;++h)p[d][h]!==this.bounds[d][h]&&(f=!0),this.bounds[d][h]=p[d][h];if("ticks"in e){n=e.ticks,c=!0,this.autoTicks=!1;for(d=0;d<3;++d)this.tickSpacing[d]=0}else o("tickSpacing")&&(this.autoTicks=!0,f=!0);if(this._firstInit&&("ticks"in e||"tickSpacing"in e||(this.autoTicks=!0),f=!0,c=!0,this._firstInit=!1),f&&this.autoTicks&&(n=l.create(this.bounds,this.tickSpacing),c=!0),c){for(d=0;d<3;++d)n[d].sort((function(e,t){return e.x-t.x}));l.equal(n,this.ticks)?c=!1:this.ticks=n}i("tickEnable"),s("tickFont")&&(c=!0),o("tickSize"),o("tickAngle"),o("tickPad"),u("tickColor");var v=s("labels");s("labelFont")&&(v=!0),i("labelEnable"),o("labelSize"),o("labelPad"),u("labelColor"),i("lineEnable"),i("lineMirror"),o("lineWidth"),u("lineColor"),i("lineTickEnable"),i("lineTickMirror"),o("lineTickLength"),o("lineTickWidth"),u("lineTickColor"),i("gridEnable"),o("gridWidth"),u("gridColor"),i("zeroEnable"),u("zeroLineColor"),o("zeroLineWidth"),i("backgroundEnable"),u("backgroundColor"),this._text?this._text&&(v||c)&&this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=r(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&&c&&(this._lines.dispose(),this._lines=null),this._lines||(this._lines=a(this.gl,this.bounds,this.ticks))};var d=[new p,new p,new p];function h(e,t,n,r,a){for(var o=e.primalOffset,i=e.primalMinor,l=e.mirrorOffset,s=e.mirrorMinor,u=r[t],c=0;c<3;++c)if(t!==c){var f=o,p=l,d=i,h=s;u&1<<c&&(f=l,p=o,d=s,h=i),f[c]=n[0][c],p[c]=n[1][c],a[c]>0?(d[c]=-1,h[c]=0):(d[c]=0,h[c]=1)}}var v=[0,0,0],m={model:s,view:s,projection:s,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(e){};var y=0,g=[0,0,0],b=[0,0,0],x=[0,0,0];function _(e,t){var n=new c(e);return n.update(t),n}f.draw=function(e){e=e||m;for(var t=this.gl,n=e.model||s,r=e.view||s,a=e.projection||s,o=this.bounds,l=e._ortho||!1,c=i(n,r,a,o,l),f=c.cubeEdges,p=c.axis,_=r[12],w=r[13],k=r[14],T=r[15],E=l?2:1,O=E*this.pixelRatio*(a[3]*_+a[7]*w+a[11]*k+a[15]*T)/t.drawingBufferHeight,M=0;M<3;++M)this.lastCubeProps.cubeEdges[M]=f[M],this.lastCubeProps.axis[M]=p[M];var S=d;for(M=0;M<3;++M)h(d[M],M,this.bounds,f,p);t=this.gl;var C,A=v;for(M=0;M<3;++M)this.backgroundEnable[M]?A[M]=p[M]:A[M]=0;this._background.draw(n,r,a,o,A,this.backgroundColor),this._lines.bind(n,r,a,this);for(M=0;M<3;++M){var P=[0,0,0];p[M]>0?P[M]=o[1][M]:P[M]=o[0][M];for(var L=0;L<2;++L){var D=(M+1+L)%3,j=(M+1+(1^L))%3;this.gridEnable[D]&&this._lines.drawGrid(D,j,this.bounds,P,this.gridColor[D],this.gridWidth[D]*this.pixelRatio)}for(L=0;L<2;++L){D=(M+1+L)%3,j=(M+1+(1^L))%3;this.zeroEnable[j]&&Math.min(o[0][j],o[1][j])<=0&&Math.max(o[0][j],o[1][j])>=0&&this._lines.drawZero(D,j,this.bounds,P,this.zeroLineColor[j],this.zeroLineWidth[j]*this.pixelRatio)}}for(M=0;M<3;++M){this.lineEnable[M]&&this._lines.drawAxisLine(M,this.bounds,S[M].primalOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio),this.lineMirror[M]&&this._lines.drawAxisLine(M,this.bounds,S[M].mirrorOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio);var I=u(g,S[M].primalMinor),R=u(b,S[M].mirrorMinor),z=this.lineTickLength;for(L=0;L<3;++L){var N=O/n[5*L];I[L]*=z[L]*N,R[L]*=z[L]*N}this.lineTickEnable[M]&&this._lines.drawAxisTicks(M,S[M].primalOffset,I,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio),this.lineTickMirror[M]&&this._lines.drawAxisTicks(M,S[M].mirrorOffset,R,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio)}this._lines.unbind(),this._text.bind(n,r,a,this.pixelRatio);var F,B,V=.5;function H(e){B=[0,0,0],B[e]=1}function U(e,t,n){var r=(e+1)%3,a=(e+2)%3,o=t[r],i=t[a],l=n[r],s=n[a];o>0&&s>0||o>0&&s<0||o<0&&s>0||o<0&&s<0?H(r):(i>0&&l>0||i>0&&l<0||i<0&&l>0||i<0&&l<0)&&H(a)}for(M=0;M<3;++M){var W=S[M].primalMinor,q=S[M].mirrorMinor,$=u(x,S[M].primalOffset);for(L=0;L<3;++L)this.lineTickEnable[M]&&($[L]+=O*W[L]*Math.max(this.lineTickLength[L],0)/n[5*L]);var G=[0,0,0];if(G[M]=1,this.tickEnable[M]){-3600===this.tickAngle[M]?(this.tickAngle[M]=0,this.tickAlign[M]="auto"):this.tickAlign[M]=-1,F=1,C=[this.tickAlign[M],V,F],"auto"===C[0]?C[0]=y:C[0]=parseInt(""+C[0]),B=[0,0,0],U(M,W,q);for(L=0;L<3;++L)$[L]+=O*W[L]*this.tickPad[L]/n[5*L];this._text.drawTicks(M,this.tickSize[M],this.tickAngle[M],$,this.tickColor[M],G,B,C)}if(this.labelEnable[M]){F=0,B=[0,0,0],this.labels[M].length>4&&(H(M),F=1),C=[this.labelAlign[M],V,F],"auto"===C[0]?C[0]=y:C[0]=parseInt(""+C[0]);for(L=0;L<3;++L)$[L]+=O*W[L]*this.labelPad[L]/n[5*L];$[M]+=.5*(o[0][M]+o[1][M]),this._text.drawLabel(M,this.labelSize[M],this.labelAngle[M],$,this.labelColor[M],[0,0,0],B,C)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{"./lib/background.js":251,"./lib/cube.js":252,"./lib/lines.js":253,"./lib/text.js":255,"./lib/ticks.js":256}],251:[function(e,t,n){"use strict";t.exports=s;var r=e("gl-buffer"),a=e("gl-vao"),o=e("./shaders").bg;function i(e,t,n,r){this.gl=e,this.buffer=t,this.vao=n,this.shader=r}var l=i.prototype;function s(e){for(var t=[],n=[],l=0,s=0;s<3;++s)for(var u=(s+1)%3,c=(s+2)%3,f=[0,0,0],p=[0,0,0],d=-1;d<=1;d+=2){n.push(l,l+2,l+1,l+1,l+2,l+3),f[s]=d,p[s]=d;for(var h=-1;h<=1;h+=2){f[u]=h;for(var v=-1;v<=1;v+=2)f[c]=v,t.push(f[0],f[1],f[2],p[0],p[1],p[2]),l+=1}var m=u;u=c,c=m}var y=r(e,new Float32Array(t)),g=r(e,new Uint16Array(n),e.ELEMENT_ARRAY_BUFFER),b=a(e,[{buffer:y,type:e.FLOAT,size:3,offset:0,stride:24},{buffer:y,type:e.FLOAT,size:3,offset:12,stride:24}],g),x=o(e);return x.attributes.position.location=0,x.attributes.normal.location=1,new i(e,y,b,x)}l.draw=function(e,t,n,r,a,o){for(var i=!1,l=0;l<3;++l)i=i||a[l];if(i){var s=this.gl;s.enable(s.POLYGON_OFFSET_FILL),s.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:e,view:t,projection:n,bounds:r,enable:a,colors:o},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),s.disable(s.POLYGON_OFFSET_FILL)}},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{"./shaders":254,"gl-buffer":258,"gl-vao":332}],252:[function(e,t,n){"use strict";t.exports=g;var r=e("bit-twiddle"),a=e("gl-mat4/multiply"),o=e("split-polygon"),i=e("robust-orientation"),l=new Array(16),s=new Array(8),u=new Array(8),c=new Array(3),f=[0,0,0];function p(e,t,n){for(var r=0;r<4;++r){e[r]=n[12+r];for(var a=0;a<3;++a)e[r]+=t[a]*n[4*a+r]}}(function(){for(var e=0;e<8;++e)s[e]=[1,1,1,1],u[e]=[1,1,1]})();var d=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function h(e){for(var t=0;t<d.length;++t)if(e=o.positive(e,d[t]),e.length<3)return 0;var n=e[0],r=n[0]/n[3],a=n[1]/n[3],i=0;for(t=1;t+1<e.length;++t){var l=e[t],s=e[t+1],u=l[0]/l[3],c=l[1]/l[3],f=s[0]/s[3],p=s[1]/s[3],h=u-r,v=c-a,m=f-r,y=p-a;i+=Math.abs(h*y-v*m)}return i}var v=[1,1,1],m=[0,0,0],y={cubeEdges:v,axis:m};function g(e,t,n,o,d){a(l,t,e),a(l,n,l);for(var g=0,b=0;b<2;++b){c[2]=o[b][2];for(var x=0;x<2;++x){c[1]=o[x][1];for(var _=0;_<2;++_)c[0]=o[_][0],p(s[g],c,l),g+=1}}var w=-1;for(b=0;b<8;++b){for(var k=s[b][3],T=0;T<3;++T)u[b][T]=s[b][T]/k;d&&(u[b][2]*=-1),k<0&&(w<0||u[b][2]<u[w][2])&&(w=b)}if(w<0){w=0;for(var E=0;E<3;++E){for(var O=(E+2)%3,M=(E+1)%3,S=-1,C=-1,A=0;A<2;++A){var P=A<<E,L=P+(A<<O)+(1-A<<M),D=P+(1-A<<O)+(A<<M);i(u[P],u[L],u[D],f)<0||(A?S=1:C=1)}if(S<0||C<0)C>S&&(w|=1<<E);else{for(A=0;A<2;++A){P=A<<E,L=P+(A<<O)+(1-A<<M),D=P+(1-A<<O)+(A<<M);var j=h([s[P],s[L],s[D],s[P+(1<<O)+(1<<M)]]);A?S=j:C=j}C>S&&(w|=1<<E)}}}var I=7^w,R=-1;for(b=0;b<8;++b)b!==w&&b!==I&&(R<0||u[R][1]>u[b][1])&&(R=b);var z=-1;for(b=0;b<3;++b){var N=R^1<<b;if(N!==w&&N!==I){z<0&&(z=N);M=u[N];M[0]<u[z][0]&&(z=N)}}var F=-1;for(b=0;b<3;++b){N=R^1<<b;if(N!==w&&N!==I&&N!==z){F<0&&(F=N);M=u[N];M[0]>u[F][0]&&(F=N)}}var B=v;B[0]=B[1]=B[2]=0,B[r.log2(z^R)]=R&z,B[r.log2(R^F)]=R&F;var V=7^F;V===w||V===I?(V=7^z,B[r.log2(F^V)]=V&F):B[r.log2(z^V)]=V&z;var H=m,U=w;for(E=0;E<3;++E)H[E]=U&1<<E?-1:1;return y}},{"bit-twiddle":97,"gl-mat4/multiply":280,"robust-orientation":520,"split-polygon":538}],253:[function(e,t,n){"use strict";t.exports=v;var r=e("gl-buffer"),a=e("gl-vao"),o=e("./shaders").line,i=[0,0,0],l=[0,0,0],s=[0,0,0],u=[0,0,0],c=[1,1];function f(e){return e[0]=e[1]=e[2]=0,e}function p(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function d(e,t,n,r,a,o,i,l){this.gl=e,this.vertBuffer=t,this.vao=n,this.shader=r,this.tickCount=a,this.tickOffset=o,this.gridCount=i,this.gridOffset=l}var h=d.prototype;function v(e,t,n){var i=[],l=[0,0,0],s=[0,0,0],u=[0,0,0],c=[0,0,0];i.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f<3;++f){for(var p=i.length/3|0,h=0;h<n[f].length;++h){var v=+n[f][h].x;i.push(v,0,1,v,1,1,v,0,-1,v,0,-1,v,1,1,v,1,-1)}var m=i.length/3|0;l[f]=p,s[f]=m-p;p=i.length/3|0;for(var y=0;y<n[f].length;++y){v=+n[f][y].x;i.push(v,0,1,v,1,1,v,0,-1,v,0,-1,v,1,1,v,1,-1)}m=i.length/3|0;u[f]=p,c[f]=m-p}var g=r(e,new Float32Array(i)),b=a(e,[{buffer:g,type:e.FLOAT,size:3,stride:0,offset:0}]),x=o(e);return x.attributes.position.location=0,new d(e,g,b,x,s,l,c,u)}h.bind=function(e,t,n){this.shader.bind(),this.shader.uniforms.model=e,this.shader.uniforms.view=t,this.shader.uniforms.projection=n,c[0]=this.gl.drawingBufferWidth,c[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=c,this.vao.bind()},h.unbind=function(){this.vao.unbind()},h.drawAxisLine=function(e,t,n,r,a){var o=f(l);this.shader.uniforms.majorAxis=l,o[e]=t[1][e]-t[0][e],this.shader.uniforms.minorAxis=o;var i=p(u,n);i[e]+=t[0][e],this.shader.uniforms.offset=i,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=r;var c=f(s);c[(e+2)%3]=1,this.shader.uniforms.screenAxis=c,this.vao.draw(this.gl.TRIANGLES,6);c=f(s);c[(e+1)%3]=1,this.shader.uniforms.screenAxis=c,this.vao.draw(this.gl.TRIANGLES,6)},h.drawAxisTicks=function(e,t,n,r,a){if(this.tickCount[e]){var o=f(i);o[e]=1,this.shader.uniforms.majorAxis=o,this.shader.uniforms.offset=t,this.shader.uniforms.minorAxis=n,this.shader.uniforms.color=r,this.shader.uniforms.lineWidth=a;var l=f(s);l[e]=1,this.shader.uniforms.screenAxis=l,this.vao.draw(this.gl.TRIANGLES,this.tickCount[e],this.tickOffset[e])}},h.drawGrid=function(e,t,n,r,a,o){if(this.gridCount[e]){var c=f(l);c[t]=n[1][t]-n[0][t],this.shader.uniforms.minorAxis=c;var d=p(u,r);d[t]+=n[0][t],this.shader.uniforms.offset=d;var h=f(i);h[e]=1,this.shader.uniforms.majorAxis=h;var v=f(s);v[e]=1,this.shader.uniforms.screenAxis=v,this.shader.uniforms.lineWidth=o,this.shader.uniforms.color=a,this.vao.draw(this.gl.TRIANGLES,this.gridCount[e],this.gridOffset[e])}},h.drawZero=function(e,t,n,r,a,o){var i=f(l);this.shader.uniforms.majorAxis=i,i[e]=n[1][e]-n[0][e],this.shader.uniforms.minorAxis=i;var c=p(u,r);c[e]+=n[0][e],this.shader.uniforms.offset=c;var d=f(s);d[t]=1,this.shader.uniforms.screenAxis=d,this.shader.uniforms.lineWidth=o,this.shader.uniforms.color=a,this.vao.draw(this.gl.TRIANGLES,6)},h.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{"./shaders":254,"gl-buffer":258,"gl-vao":332}],254:[function(e,t,n){"use strict";var r=e("glslify"),a=e("gl-shader"),o=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\nuniform float lineWidth;\nuniform vec2 screenShape;\n\nvec3 project(vec3 p) {\n vec4 pp = projection * view * model * vec4(p, 1.0);\n return pp.xyz / max(pp.w, 0.0001);\n}\n\nvoid main() {\n vec3 major = position.x * majorAxis;\n vec3 minor = position.y * minorAxis;\n\n vec3 vPosition = major + minor + offset;\n vec3 pPosition = project(vPosition);\n vec3 offset = project(vPosition + screenAxis * position.z);\n\n vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\n\n gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\n}\n"]),i=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n gl_FragColor = color;\n}"]);n.line=function(e){return a(e,o,i,null,[{name:"position",type:"vec3"}])};var l=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, axis, alignDir, alignOpt;\nuniform float scale, angle, pixelScale;\nuniform vec2 resolution;\n\nvec3 project(vec3 p) {\n vec4 pp = projection * view * model * vec4(p, 1.0);\n return pp.xyz / max(pp.w, 0.0001);\n}\n\nfloat computeViewAngle(vec3 a, vec3 b) {\n vec3 A = project(a);\n vec3 B = project(b);\n\n return atan(\n (B.y - A.y) * resolution.y,\n (B.x - A.x) * resolution.x\n );\n}\n\nconst float PI = 3.141592;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst float ONE_AND_HALF_PI = 1.5 * PI;\n\nint option = int(floor(alignOpt.x + 0.001));\nfloat hv_ratio = alignOpt.y;\nbool enableAlign = (alignOpt.z != 0.0);\n\nfloat mod_angle(float a) {\n return mod(a, PI);\n}\n\nfloat positive_angle(float a) {\n return mod_angle((a < 0.0) ?\n a + TWO_PI :\n a\n );\n}\n\nfloat look_upwards(float a) {\n float b = positive_angle(a);\n return ((b > HALF_PI) && (b <= ONE_AND_HALF_PI)) ?\n b - PI :\n b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n // ratio controls the ratio between being horizontal to (vertical + horizontal)\n // if ratio is set to 0.5 then it is 50%, 50%.\n // when using a higher ratio e.g. 0.75 the result would\n // likely be more horizontal than vertical.\n\n float b = positive_angle(a);\n\n return\n (b < ( ratio) * HALF_PI) ? 0.0 :\n (b < (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n (b < (2.0 + ratio) * HALF_PI) ? 0.0 :\n (b < (4.0 - ratio) * HALF_PI) ? HALF_PI :\n 0.0;\n}\n\nfloat roundTo(float a, float b) {\n return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n float b = positive_angle(a);\n float div = TWO_PI / float(n);\n float c = roundTo(b, div);\n return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n return\n (option > 2) ? look_round_n_directions(rawAngle + delta, option) : // option 3-n: round to n directions\n (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n (option == 1) ? rawAngle + delta : // use free angle, and flip to align with one direction of the axis\n (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n (option ==-1) ? 0.0 : // useful for backward compatibility, all texts remains horizontal\n rawAngle; // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &&\n (axis.y == 0.0) &&\n (axis.z == 0.0);\n\nvoid main() {\n //Compute world offset\n float axisDistance = position.z;\n vec3 dataPosition = axisDistance * axis + offset;\n\n float beta = angle; // i.e. user defined attributes for each tick\n\n float axisAngle;\n float clipAngle;\n float flip;\n\n if (enableAlign) {\n axisAngle = (isAxisTitle) ? HALF_PI :\n computeViewAngle(dataPosition, dataPosition + axis);\n clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n axisAngle += (sin(axisAngle) < 0.0) ? PI : 0.0;\n clipAngle += (sin(clipAngle) < 0.0) ? PI : 0.0;\n\n flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n vec2(sin(clipAngle),-cos(clipAngle))) > 0.0) ? 1.0 : 0.0;\n\n beta += applyAlignOption(clipAngle, flip * PI);\n }\n\n //Compute plane offset\n vec2 planeCoord = position.xy * pixelScale;\n\n mat2 planeXform = scale * mat2(\n cos(beta), sin(beta),\n -sin(beta), cos(beta)\n );\n\n vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n //Compute clip position\n vec3 clipPosition = project(dataPosition);\n\n //Apply text offset in clip coordinates\n clipPosition += vec3(viewOffset, 0.0);\n\n //Done\n gl_Position = vec4(clipPosition, 1.0);\n}"]),s=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n gl_FragColor = color;\n}"]);n.text=function(e){return a(e,l,s,null,[{name:"position",type:"vec3"}])};var u=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n vec3 realNormal = signAxis * normal;\n\n if(dot(realNormal, enable) > 0.0) {\n vec3 minRange = min(bounds[0], bounds[1]);\n vec3 maxRange = max(bounds[0], bounds[1]);\n vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n gl_Position = projection * view * model * vec4(nPosition, 1.0);\n } else {\n gl_Position = vec4(0,0,0,0);\n }\n\n colorChannel = abs(realNormal);\n}"]),c=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n gl_FragColor = colorChannel.x * colors[0] +\n colorChannel.y * colors[1] +\n colorChannel.z * colors[2];\n}"]);n.bg=function(e){return a(e,u,c,null,[{name:"position",type:"vec3"},{name:"normal",type:"vec3"}])}},{"gl-shader":312,glslify:413}],255:[function(e,t,n){(function(n){"use strict";t.exports=h;var r=e("gl-buffer"),a=e("gl-vao"),o=e("vectorize-text"),i=e("./shaders").text,l=window||n.global||{},s=l.__TEXT_CACHE||{};l.__TEXT_CACHE={};var u=3;function c(e,t,n,r){this.gl=e,this.shader=t,this.buffer=n,this.vao=r,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var f=c.prototype,p=[0,0];function d(e,t){try{return o(e,t)}catch(n){return console.warn('error vectorizing text:"'+e+'" error:',n),{cells:[],positions:[]}}}function h(e,t,n,o,l,s){var u=r(e),f=a(e,[{buffer:u,size:3}]),p=i(e);p.attributes.position.location=0;var d=new c(e,p,u,f);return d.update(t,n,o,l,s),d}f.bind=function(e,t,n,r){this.vao.bind(),this.shader.bind();var a=this.shader.uniforms;a.model=e,a.view=t,a.projection=n,a.pixelScale=r,p[0]=this.gl.drawingBufferWidth,p[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=p},f.unbind=function(){this.vao.unbind()},f.update=function(e,t,n,r,a){var o=[];function i(e,t,n,r,a,i){var l=s[n];l||(l=s[n]={});var u=l[t];u||(u=l[t]=d(t,{triangles:!0,font:n,textAlign:"center",textBaseline:"middle",lineSpacing:a,styletags:i}));for(var c=(r||12)/12,f=u.positions,p=u.cells,h=0,v=p.length;h<v;++h)for(var m=p[h],y=2;y>=0;--y){var g=f[m[y]];o.push(c*g[0],-c*g[1],e)}}for(var l=[0,0,0],c=[0,0,0],f=[0,0,0],p=[0,0,0],h=1.25,v={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},m=0;m<3;++m){f[m]=o.length/u|0,i(.5*(e[0][m]+e[1][m]),t[m],n[m],12,h,v),p[m]=(o.length/u|0)-f[m],l[m]=o.length/u|0;for(var y=0;y<r[m].length;++y)r[m][y].text&&i(r[m][y].x,r[m][y].text,r[m][y].font||a,r[m][y].fontSize||12,h,v);c[m]=(o.length/u|0)-l[m]}this.buffer.update(o),this.tickOffset=l,this.tickCount=c,this.labelOffset=f,this.labelCount=p},f.drawTicks=function(e,t,n,r,a,o,i,l){this.tickCount[e]&&(this.shader.uniforms.axis=o,this.shader.uniforms.color=a,this.shader.uniforms.angle=n,this.shader.uniforms.scale=t,this.shader.uniforms.offset=r,this.shader.uniforms.alignDir=i,this.shader.uniforms.alignOpt=l,this.vao.draw(this.gl.TRIANGLES,this.tickCount[e],this.tickOffset[e]))},f.drawLabel=function(e,t,n,r,a,o,i,l){this.labelCount[e]&&(this.shader.uniforms.axis=o,this.shader.uniforms.color=a,this.shader.uniforms.angle=n,this.shader.uniforms.scale=t,this.shader.uniforms.offset=r,this.shader.uniforms.alignDir=i,this.shader.uniforms.alignOpt=l,this.vao.draw(this.gl.TRIANGLES,this.labelCount[e],this.labelOffset[e]))},f.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this,e("_process"))},{"./shaders":254,_process:500,"gl-buffer":258,"gl-vao":332,"vectorize-text":572}],256:[function(e,t,n){"use strict";function r(e,t){var n=e+"",r=n.indexOf("."),a=0;r>=0&&(a=n.length-r-1);var o=Math.pow(10,a),i=Math.round(e*t*o),l=i+"";if(l.indexOf("e")>=0)return l;var s=i/o,u=i%o;i<0?(s=0|-Math.ceil(s),u=0|-u):(s=0|Math.floor(s),u|=0);var c=""+s;if(i<0&&(c="-"+c),a){var f=""+u;while(f.length<a)f="0"+f;return c+"."+f}return c}function a(e,t){for(var n=[],a=0;a<3;++a){for(var o=[],i=(e[0][a],e[1][a],0);i*t[a]<=e[1][a];++i)o.push({x:i*t[a],text:r(t[a],i)});for(i=-1;i*t[a]>=e[0][a];--i)o.push({x:i*t[a],text:r(t[a],i)});n.push(o)}return n}function o(e,t){for(var n=0;n<3;++n){if(e[n].length!==t[n].length)return!1;for(var r=0;r<e[n].length;++r){var a=e[n][r],o=t[n][r];if(a.x!==o.x||a.text!==o.text||a.font!==o.font||a.fontColor!==o.fontColor||a.fontSize!==o.fontSize||a.dx!==o.dx||a.dy!==o.dy)return!1}}return!0}n.create=a,n.equal=o},{}],257:[function(e,t,n){"use strict";t.exports=y;var r=e("extract-frustum-planes"),a=e("split-polygon"),o=e("./lib/cube.js"),i=e("gl-mat4/multiply"),l=e("gl-mat4/transpose"),s=e("gl-vec4/transformMat4"),u=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),c=new Float32Array(16);function f(e,t,n){this.lo=e,this.hi=t,this.pixelsPerDataUnit=n}var p=[0,0,0,1],d=[0,0,0,1];function h(e,t,n,r,a){for(var o=0;o<3;++o){for(var i=p,l=d,u=0;u<3;++u)l[u]=i[u]=n[u];l[3]=i[3]=1,l[o]+=1,s(l,l,t),l[3]<0&&(e[o]=1/0),i[o]-=1,s(i,i,t),i[3]<0&&(e[o]=1/0);var c=(i[0]/i[3]-l[0]/l[3])*r,f=(i[1]/i[3]-l[1]/l[3])*a;e[o]=.25*Math.sqrt(c*c+f*f)}return e}var v=[new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0)],m=[0,0,0];function y(e,t,n,s,f){var p=t.model||u,d=t.view||u,y=t.projection||u,g=t._ortho||!1,b=e.bounds,x=(f=f||o(p,d,y,b,g),f.axis);i(c,d,p),i(c,y,c);for(var _=v,w=0;w<3;++w)_[w].lo=1/0,_[w].hi=-1/0,_[w].pixelsPerDataUnit=1/0;var k=r(l(c,c));l(c,c);for(var T=0;T<3;++T){var E=(T+1)%3,O=(T+2)%3,M=m;e:for(w=0;w<2;++w){var S=[];if(x[T]<0!==!!w){M[T]=b[w][T];for(var C=0;C<2;++C){M[E]=b[C^w][E];for(var A=0;A<2;++A)M[O]=b[A^C^w][O],S.push(M.slice())}var P=g?5:4;for(C=P;C===P;++C){if(0===S.length)continue e;S=a.positive(S,k[C])}for(C=0;C<S.length;++C){O=S[C];var L=h(m,c,O,n,s);for(A=0;A<3;++A)_[A].lo=Math.min(_[A].lo,O[A]),_[A].hi=Math.max(_[A].hi,O[A]),A!==T&&(_[A].pixelsPerDataUnit=Math.min(_[A].pixelsPerDataUnit,Math.abs(L[A])))}}}}return _}},{"./lib/cube.js":252,"extract-frustum-planes":240,"gl-mat4/multiply":280,"gl-mat4/transpose":289,"gl-vec4/transformMat4":403,"split-polygon":538}],258:[function(e,t,n){"use strict";var r=e("typedarray-pool"),a=e("ndarray-ops"),o=e("ndarray"),i=["uint8","uint8_clamped","uint16","uint32","int8","int16","int32","float32"];function l(e,t,n,r,a){this.gl=e,this.type=t,this.handle=n,this.length=r,this.usage=a}var s=l.prototype;function u(e,t,n,r,a,o){var i=a.length*a.BYTES_PER_ELEMENT;if(o<0)return e.bufferData(t,a,r),i;if(i+o>n)throw new Error("gl-buffer: If resizing buffer, must not specify offset");return e.bufferSubData(t,o,a),n}function c(e,t){for(var n=r.malloc(e.length,t),a=e.length,o=0;o<a;++o)n[o]=e[o];return n}function f(e,t){for(var n=1,r=t.length-1;r>=0;--r){if(t[r]!==n)return!1;n*=e[r]}return!0}function p(e,t,n,r){if(n=n||e.ARRAY_BUFFER,r=r||e.DYNAMIC_DRAW,n!==e.ARRAY_BUFFER&&n!==e.ELEMENT_ARRAY_BUFFER)throw new Error("gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER");if(r!==e.DYNAMIC_DRAW&&r!==e.STATIC_DRAW&&r!==e.STREAM_DRAW)throw new Error("gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW");var a=e.createBuffer(),o=new l(e,n,a,0,r);return o.update(t),o}s.bind=function(){this.gl.bindBuffer(this.type,this.handle)},s.unbind=function(){this.gl.bindBuffer(this.type,null)},s.dispose=function(){this.gl.deleteBuffer(this.handle)},s.update=function(e,t){if("number"!==typeof t&&(t=-1),this.bind(),"object"===typeof e&&"undefined"!==typeof e.shape){var n=e.dtype;if(i.indexOf(n)<0&&(n="float32"),this.type===this.gl.ELEMENT_ARRAY_BUFFER){var l=gl.getExtension("OES_element_index_uint");n=l&&"uint16"!==n?"uint32":"uint16"}if(n===e.dtype&&f(e.shape,e.stride))0===e.offset&&e.data.length===e.shape[0]?this.length=u(this.gl,this.type,this.length,this.usage,e.data,t):this.length=u(this.gl,this.type,this.length,this.usage,e.data.subarray(e.offset,e.shape[0]),t);else{var s=r.malloc(e.size,n),p=o(s,e.shape);a.assign(p,e),this.length=u(this.gl,this.type,this.length,this.usage,t<0?s:s.subarray(0,e.size),t),r.free(s)}}else if(Array.isArray(e)){var d;d=this.type===this.gl.ELEMENT_ARRAY_BUFFER?c(e,"uint16"):c(e,"float32"),this.length=u(this.gl,this.type,this.length,this.usage,t<0?d:d.subarray(0,e.length),t),r.free(d)}else if("object"===typeof e&&"number"===typeof e.length)this.length=u(this.gl,this.type,this.length,this.usage,e,t);else{if("number"!==typeof e&&void 0!==e)throw new Error("gl-buffer: Invalid data type");if(t>=0)throw new Error("gl-buffer: Cannot specify offset when resizing buffer");e|=0,e<=0&&(e=1),this.gl.bufferData(this.type,0|e,this.usage),this.length=e}},t.exports=p},{ndarray:469,"ndarray-ops":464,"typedarray-pool":567}],259:[function(e,t,n){"use strict";var r=e("gl-vec3");t.exports=function(e,t){var n=e.positions,a=e.vectors,o={positions:[],vertexIntensity:[],vertexIntensityBounds:e.vertexIntensityBounds,vectors:[],cells:[],coneOffset:e.coneOffset,colormap:e.colormap};if(0===e.positions.length)return t&&(t[0]=[0,0,0],t[1]=[0,0,0]),o;for(var i=0,l=1/0,s=-1/0,u=1/0,c=-1/0,f=1/0,p=-1/0,d=null,h=null,v=[],m=1/0,y=!1,g=0;g<n.length;g++){var b=n[g];l=Math.min(b[0],l),s=Math.max(b[0],s),u=Math.min(b[1],u),c=Math.max(b[1],c),f=Math.min(b[2],f),p=Math.max(b[2],p);var x=a[g];if(r.length(x)>i&&(i=r.length(x)),g){var _=2*r.distance(d,b)/(r.length(h)+r.length(x));_?(m=Math.min(m,_),y=!1):y=!0}y||(d=b,h=x),v.push(x)}var w=[l,u,f],k=[s,c,p];t&&(t[0]=w,t[1]=k),0===i&&(i=1);var T=1/i;isFinite(m)||(m=1),o.vectorScale=m;var E=e.coneSize||.5;e.absoluteConeSize&&(E=e.absoluteConeSize*T),o.coneScale=E;g=0;for(var O=0;g<n.length;g++){b=n[g];for(var M=b[0],S=b[1],C=b[2],A=v[g],P=r.length(A)*T,L=0,D=8;L<D;L++){o.positions.push([M,S,C,O++]),o.positions.push([M,S,C,O++]),o.positions.push([M,S,C,O++]),o.positions.push([M,S,C,O++]),o.positions.push([M,S,C,O++]),o.positions.push([M,S,C,O++]),o.vectors.push(A),o.vectors.push(A),o.vectors.push(A),o.vectors.push(A),o.vectors.push(A),o.vectors.push(A),o.vertexIntensity.push(P,P,P),o.vertexIntensity.push(P,P,P);var j=o.positions.length;o.cells.push([j-6,j-5,j-4],[j-3,j-2,j-1])}}return o};var a=e("./lib/shaders");t.exports.createMesh=e("./create_mesh"),t.exports.createConeMesh=function(e,n){return t.exports.createMesh(e,n,{shaders:a,traceType:"cone"})}},{"./create_mesh":260,"./lib/shaders":261,"gl-vec3":351}],260:[function(e,t,n){"use strict";var r=e("gl-shader"),a=e("gl-buffer"),o=e("gl-vao"),i=e("gl-texture2d"),l=e("gl-mat4/multiply"),s=e("gl-mat4/invert"),u=e("ndarray"),c=e("colormap"),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function p(e,t,n,r,a,o,i,l,s,u,c){this.gl=e,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=t,this.dirty=!0,this.triShader=n,this.pickShader=r,this.trianglePositions=a,this.triangleVectors=o,this.triangleColors=l,this.triangleUVs=s,this.triangleIds=i,this.triangleVAO=u,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=c,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=f,this._view=f,this._projection=f,this._resolution=[1,1]}var d=p.prototype;function h(e){for(var t=c({colormap:e,nshades:256,format:"rgba"}),n=new Uint8Array(1024),r=0;r<256;++r){for(var a=t[r],o=0;o<3;++o)n[4*r+o]=a[o];n[4*r+3]=255*a[3]}return u(n,[256,256,4],[4,0,1])}function v(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e[r][2];return n}function m(e,t){var n=r(e,t.meshShader.vertex,t.meshShader.fragment,null,t.meshShader.attributes);return n.attributes.position.location=0,n.attributes.color.location=2,n.attributes.uv.location=3,n.attributes.vector.location=4,n}function y(e,t){var n=r(e,t.pickShader.vertex,t.pickShader.fragment,null,t.pickShader.attributes);return n.attributes.position.location=0,n.attributes.id.location=1,n.attributes.vector.location=4,n}function g(e,t,n){var r=n.shaders;1===arguments.length&&(t=e,e=t.gl);var l=m(e,r),s=y(e,r),c=i(e,u(new Uint8Array([255,255,255,255]),[1,1,4]));c.generateMipmap(),c.minFilter=e.LINEAR_MIPMAP_LINEAR,c.magFilter=e.LINEAR;var f=a(e),d=a(e),h=a(e),v=a(e),g=a(e),b=o(e,[{buffer:f,type:e.FLOAT,size:4},{buffer:g,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:h,type:e.FLOAT,size:4},{buffer:v,type:e.FLOAT,size:2},{buffer:d,type:e.FLOAT,size:4}]),x=new p(e,c,l,s,f,d,g,h,v,b,n.traceType||"cone");return x.update(t),x}d.isOpaque=function(){return this.opacity>=1},d.isTransparent=function(){return this.opacity<1},d.pickSlots=1,d.setPickBase=function(e){this.pickId=e},d.update=function(e){e=e||{};var t=this.gl;this.dirty=!0,"lightPosition"in e&&(this.lightPosition=e.lightPosition),"opacity"in e&&(this.opacity=e.opacity),"ambient"in e&&(this.ambientLight=e.ambient),"diffuse"in e&&(this.diffuseLight=e.diffuse),"specular"in e&&(this.specularLight=e.specular),"roughness"in e&&(this.roughness=e.roughness),"fresnel"in e&&(this.fresnel=e.fresnel),void 0!==e.tubeScale&&(this.tubeScale=e.tubeScale),void 0!==e.vectorScale&&(this.vectorScale=e.vectorScale),void 0!==e.coneScale&&(this.coneScale=e.coneScale),void 0!==e.coneOffset&&(this.coneOffset=e.coneOffset),e.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=t.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=t.LINEAR,this.texture.setPixels(h(e.colormap)),this.texture.generateMipmap());var n=e.cells,r=e.positions,a=e.vectors;if(r&&n&&a){var o=[],i=[],l=[],s=[],u=[];this.cells=n,this.positions=r,this.vectors=a;var c=e.meshColor||[1,1,1,1],f=e.vertexIntensity,p=1/0,d=-1/0;if(f)if(e.vertexIntensityBounds)p=+e.vertexIntensityBounds[0],d=+e.vertexIntensityBounds[1];else for(var m=0;m<f.length;++m){var y=f[m];p=Math.min(p,y),d=Math.max(d,y)}else for(m=0;m<r.length;++m){y=r[m][2];p=Math.min(p,y),d=Math.max(d,y)}this.intensity=f||v(r),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(m=0;m<r.length;++m)for(var g=r[m],b=0;b<3;++b)!isNaN(g[b])&&isFinite(g[b])&&(this.bounds[0][b]=Math.min(this.bounds[0][b],g[b]),this.bounds[1][b]=Math.max(this.bounds[1][b],g[b]));var x=0;e:for(m=0;m<n.length;++m){var _=n[m];switch(_.length){case 3:for(b=0;b<3;++b)for(var w=_[b],k=(g=r[w],0);k<3;++k)if(isNaN(g[k])||!isFinite(g[k]))continue e;for(b=0;b<3;++b){w=_[2-b],g=r[w];o.push(g[0],g[1],g[2],g[3]);var T=a[w];i.push(T[0],T[1],T[2],T[3]||0);var E,O=c;3===O.length?l.push(O[0],O[1],O[2],1):l.push(O[0],O[1],O[2],O[3]),E=f?[(f[w]-p)/(d-p),0]:[(g[2]-p)/(d-p),0],s.push(E[0],E[1]),u.push(m)}x+=1;break;default:break}}this.triangleCount=x,this.trianglePositions.update(o),this.triangleVectors.update(i),this.triangleColors.update(l),this.triangleUVs.update(s),this.triangleIds.update(new Uint32Array(u))}},d.drawTransparent=d.draw=function(e){e=e||{};for(var t=this.gl,n=e.model||f,r=e.view||f,a=e.projection||f,o=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],i=0;i<3;++i)o[0][i]=Math.max(o[0][i],this.clipBounds[0][i]),o[1][i]=Math.min(o[1][i],this.clipBounds[1][i]);var u={model:n,view:r,projection:a,inverseModel:f.slice(),clipBounds:o,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};u.inverseModel=s(u.inverseModel,u.model),t.disable(t.CULL_FACE),this.texture.bind(0);var c=new Array(16);l(c,u.view,u.model),l(c,u.projection,c),s(c,c);for(i=0;i<3;++i)u.eyePosition[i]=c[12+i]/c[15];var p=c[15];for(i=0;i<3;++i)p+=this.lightPosition[i]*c[4*i+3];for(i=0;i<3;++i){for(var d=c[12+i],h=0;h<3;++h)d+=c[4*h+i]*this.lightPosition[h];u.lightPosition[i]=d/p}if(this.triangleCount>0){var v=this.triShader;v.bind(),v.uniforms=u,this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},d.drawPick=function(e){e=e||{};for(var t=this.gl,n=e.model||f,r=e.view||f,a=e.projection||f,o=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],i=0;i<3;++i)o[0][i]=Math.max(o[0][i],this.clipBounds[0][i]),o[1][i]=Math.min(o[1][i],this.clipBounds[1][i]);this._model=[].slice.call(n),this._view=[].slice.call(r),this._projection=[].slice.call(a),this._resolution=[t.drawingBufferWidth,t.drawingBufferHeight];var l={model:n,view:r,projection:a,clipBounds:o,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},s=this.pickShader;s.bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},d.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;var t=e.value[0]+256*e.value[1]+65536*e.value[2],n=this.cells[t],r=this.positions[n[1]].slice(0,3),a={position:r,dataCoordinate:r,index:Math.floor(n[1]/48)};return"cone"===this.traceType?a.index=Math.floor(n[1]/48):"streamtube"===this.traceType&&(a.intensity=this.intensity[n[1]],a.velocity=this.vectors[n[1]].slice(0,3),a.divergence=this.vectors[n[1]][3],a.index=t),a},d.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},t.exports=g},{colormap:131,"gl-buffer":258,"gl-mat4/invert":278,"gl-mat4/multiply":280,"gl-shader":312,"gl-texture2d":327,"gl-vao":332,ndarray:469}],261:[function(e,t,n){var r=e("glslify"),a=r(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * conePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(conePosition, 1.0);\n vec4 t_position = view * conePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = conePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),o=r(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),i=r(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n// segment + 0 top vertex\n// segment + 1 perimeter vertex a+1\n// segment + 2 perimeter vertex a\n// segment + 3 center base vertex\n// segment + 4 perimeter vertex a\n// segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n const float segmentCount = 8.0;\n\n float index = rawIndex - floor(rawIndex /\n (segmentCount * 6.0)) *\n (segmentCount * 6.0);\n\n float segment = floor(0.001 + index/6.0);\n float segmentIndex = index - (segment*6.0);\n\n normal = -normalize(d);\n\n if (segmentIndex > 2.99 && segmentIndex < 3.01) {\n return mix(vec3(0.0), -d, coneOffset);\n }\n\n float nextAngle = (\n (segmentIndex > 0.99 && segmentIndex < 1.01) ||\n (segmentIndex > 4.99 && segmentIndex < 5.01)\n ) ? 1.0 : 0.0;\n float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n vec3 v1 = mix(d, vec3(0.0), coneOffset);\n vec3 v2 = v1 - d;\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d)*0.25;\n vec3 y = v * sin(angle) * length(d)*0.25;\n vec3 v3 = v2 + x + y;\n if (segmentIndex < 3.0) {\n vec3 tx = u * sin(angle);\n vec3 ty = v * -cos(angle);\n vec3 tangent = tx + ty;\n normal = normalize(cross(v3 - v1, tangent));\n }\n\n if (segmentIndex == 0.0) {\n return mix(d, vec3(0.0), coneOffset);\n }\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n gl_Position = projection * view * conePosition;\n f_id = id;\n f_position = position.xyz;\n}\n"]),l=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);n.meshShader={vertex:a,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec3"}]},n.pickShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec3"}]}},{glslify:413}],262:[function(e,t,n){t.exports={0:"NONE",1:"ONE",2:"LINE_LOOP",3:"LINE_STRIP",4:"TRIANGLES",5:"TRIANGLE_STRIP",6:"TRIANGLE_FAN",256:"DEPTH_BUFFER_BIT",512:"NEVER",513:"LESS",514:"EQUAL",515:"LEQUAL",516:"GREATER",517:"NOTEQUAL",518:"GEQUAL",519:"ALWAYS",768:"SRC_COLOR",769:"ONE_MINUS_SRC_COLOR",770:"SRC_ALPHA",771:"ONE_MINUS_SRC_ALPHA",772:"DST_ALPHA",773:"ONE_MINUS_DST_ALPHA",774:"DST_COLOR",775:"ONE_MINUS_DST_COLOR",776:"SRC_ALPHA_SATURATE",1024:"STENCIL_BUFFER_BIT",1028:"FRONT",1029:"BACK",1032:"FRONT_AND_BACK",1280:"INVALID_ENUM",1281:"INVALID_VALUE",1282:"INVALID_OPERATION",1285:"OUT_OF_MEMORY",1286:"INVALID_FRAMEBUFFER_OPERATION",2304:"CW",2305:"CCW",2849:"LINE_WIDTH",2884:"CULL_FACE",2885:"CULL_FACE_MODE",2886:"FRONT_FACE",2928:"DEPTH_RANGE",2929:"DEPTH_TEST",2930:"DEPTH_WRITEMASK",2931:"DEPTH_CLEAR_VALUE",2932:"DEPTH_FUNC",2960:"STENCIL_TEST",2961:"STENCIL_CLEAR_VALUE",2962:"STENCIL_FUNC",2963:"STENCIL_VALUE_MASK",2964:"STENCIL_FAIL",2965:"STENCIL_PASS_DEPTH_FAIL",2966:"STENCIL_PASS_DEPTH_PASS",2967:"STENCIL_REF",2968:"STENCIL_WRITEMASK",2978:"VIEWPORT",3024:"DITHER",3042:"BLEND",3088:"SCISSOR_BOX",3089:"SCISSOR_TEST",3106:"COLOR_CLEAR_VALUE",3107:"COLOR_WRITEMASK",3317:"UNPACK_ALIGNMENT",3333:"PACK_ALIGNMENT",3379:"MAX_TEXTURE_SIZE",3386:"MAX_VIEWPORT_DIMS",3408:"SUBPIXEL_BITS",3410:"RED_BITS",3411:"GREEN_BITS",3412:"BLUE_BITS",3413:"ALPHA_BITS",3414:"DEPTH_BITS",3415:"STENCIL_BITS",3553:"TEXTURE_2D",4352:"DONT_CARE",4353:"FASTEST",4354:"NICEST",5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5124:"INT",5125:"UNSIGNED_INT",5126:"FLOAT",5386:"INVERT",5890:"TEXTURE",6401:"STENCIL_INDEX",6402:"DEPTH_COMPONENT",6406:"ALPHA",6407:"RGB",6408:"RGBA",6409:"LUMINANCE",6410:"LUMINANCE_ALPHA",7680:"KEEP",7681:"REPLACE",7682:"INCR",7683:"DECR",7936:"VENDOR",7937:"RENDERER",7938:"VERSION",9728:"NEAREST",9729:"LINEAR",9984:"NEAREST_MIPMAP_NEAREST",9985:"LINEAR_MIPMAP_NEAREST",9986:"NEAREST_MIPMAP_LINEAR",9987:"LINEAR_MIPMAP_LINEAR",10240:"TEXTURE_MAG_FILTER",10241:"TEXTURE_MIN_FILTER",10242:"TEXTURE_WRAP_S",10243:"TEXTURE_WRAP_T",10497:"REPEAT",10752:"POLYGON_OFFSET_UNITS",16384:"COLOR_BUFFER_BIT",32769:"CONSTANT_COLOR",32770:"ONE_MINUS_CONSTANT_COLOR",32771:"CONSTANT_ALPHA",32772:"ONE_MINUS_CONSTANT_ALPHA",32773:"BLEND_COLOR",32774:"FUNC_ADD",32777:"BLEND_EQUATION_RGB",32778:"FUNC_SUBTRACT",32779:"FUNC_REVERSE_SUBTRACT",32819:"UNSIGNED_SHORT_4_4_4_4",32820:"UNSIGNED_SHORT_5_5_5_1",32823:"POLYGON_OFFSET_FILL",32824:"POLYGON_OFFSET_FACTOR",32854:"RGBA4",32855:"RGB5_A1",32873:"TEXTURE_BINDING_2D",32926:"SAMPLE_ALPHA_TO_COVERAGE",32928:"SAMPLE_COVERAGE",32936:"SAMPLE_BUFFERS",32937:"SAMPLES",32938:"SAMPLE_COVERAGE_VALUE",32939:"SAMPLE_COVERAGE_INVERT",32968:"BLEND_DST_RGB",32969:"BLEND_SRC_RGB",32970:"BLEND_DST_ALPHA",32971:"BLEND_SRC_ALPHA",33071:"CLAMP_TO_EDGE",33170:"GENERATE_MIPMAP_HINT",33189:"DEPTH_COMPONENT16",33306:"DEPTH_STENCIL_ATTACHMENT",33635:"UNSIGNED_SHORT_5_6_5",33648:"MIRRORED_REPEAT",33901:"ALIASED_POINT_SIZE_RANGE",33902:"ALIASED_LINE_WIDTH_RANGE",33984:"TEXTURE0",33985:"TEXTURE1",33986:"TEXTURE2",33987:"TEXTURE3",33988:"TEXTURE4",33989:"TEXTURE5",33990:"TEXTURE6",33991:"TEXTURE7",33992:"TEXTURE8",33993:"TEXTURE9",33994:"TEXTURE10",33995:"TEXTURE11",33996:"TEXTURE12",33997:"TEXTURE13",33998:"TEXTURE14",33999:"TEXTURE15",34e3:"TEXTURE16",34001:"TEXTURE17",34002:"TEXTURE18",34003:"TEXTURE19",34004:"TEXTURE20",34005:"TEXTURE21",34006:"TEXTURE22",34007:"TEXTURE23",34008:"TEXTURE24",34009:"TEXTURE25",34010:"TEXTURE26",34011:"TEXTURE27",34012:"TEXTURE28",34013:"TEXTURE29",34014:"TEXTURE30",34015:"TEXTURE31",34016:"ACTIVE_TEXTURE",34024:"MAX_RENDERBUFFER_SIZE",34041:"DEPTH_STENCIL",34055:"INCR_WRAP",34056:"DECR_WRAP",34067:"TEXTURE_CUBE_MAP",34068:"TEXTURE_BINDING_CUBE_MAP",34069:"TEXTURE_CUBE_MAP_POSITIVE_X",34070:"TEXTURE_CUBE_MAP_NEGATIVE_X",34071:"TEXTURE_CUBE_MAP_POSITIVE_Y",34072:"TEXTURE_CUBE_MAP_NEGATIVE_Y",34073:"TEXTURE_CUBE_MAP_POSITIVE_Z",34074:"TEXTURE_CUBE_MAP_NEGATIVE_Z",34076:"MAX_CUBE_MAP_TEXTURE_SIZE",34338:"VERTEX_ATTRIB_ARRAY_ENABLED",34339:"VERTEX_ATTRIB_ARRAY_SIZE",34340:"VERTEX_ATTRIB_ARRAY_STRIDE",34341:"VERTEX_ATTRIB_ARRAY_TYPE",34342:"CURRENT_VERTEX_ATTRIB",34373:"VERTEX_ATTRIB_ARRAY_POINTER",34466:"NUM_COMPRESSED_TEXTURE_FORMATS",34467:"COMPRESSED_TEXTURE_FORMATS",34660:"BUFFER_SIZE",34661:"BUFFER_USAGE",34816:"STENCIL_BACK_FUNC",34817:"STENCIL_BACK_FAIL",34818:"STENCIL_BACK_PASS_DEPTH_FAIL",34819:"STENCIL_BACK_PASS_DEPTH_PASS",34877:"BLEND_EQUATION_ALPHA",34921:"MAX_VERTEX_ATTRIBS",34922:"VERTEX_ATTRIB_ARRAY_NORMALIZED",34930:"MAX_TEXTURE_IMAGE_UNITS",34962:"ARRAY_BUFFER",34963:"ELEMENT_ARRAY_BUFFER",34964:"ARRAY_BUFFER_BINDING",34965:"ELEMENT_ARRAY_BUFFER_BINDING",34975:"VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",35040:"STREAM_DRAW",35044:"STATIC_DRAW",35048:"DYNAMIC_DRAW",35632:"FRAGMENT_SHADER",35633:"VERTEX_SHADER",35660:"MAX_VERTEX_TEXTURE_IMAGE_UNITS",35661:"MAX_COMBINED_TEXTURE_IMAGE_UNITS",35663:"SHADER_TYPE",35664:"FLOAT_VEC2",35665:"FLOAT_VEC3",35666:"FLOAT_VEC4",35667:"INT_VEC2",35668:"INT_VEC3",35669:"INT_VEC4",35670:"BOOL",35671:"BOOL_VEC2",35672:"BOOL_VEC3",35673:"BOOL_VEC4",35674:"FLOAT_MAT2",35675:"FLOAT_MAT3",35676:"FLOAT_MAT4",35678:"SAMPLER_2D",35680:"SAMPLER_CUBE",35712:"DELETE_STATUS",35713:"COMPILE_STATUS",35714:"LINK_STATUS",35715:"VALIDATE_STATUS",35716:"INFO_LOG_LENGTH",35717:"ATTACHED_SHADERS",35718:"ACTIVE_UNIFORMS",35719:"ACTIVE_UNIFORM_MAX_LENGTH",35720:"SHADER_SOURCE_LENGTH",35721:"ACTIVE_ATTRIBUTES",35722:"ACTIVE_ATTRIBUTE_MAX_LENGTH",35724:"SHADING_LANGUAGE_VERSION",35725:"CURRENT_PROGRAM",36003:"STENCIL_BACK_REF",36004:"STENCIL_BACK_VALUE_MASK",36005:"STENCIL_BACK_WRITEMASK",36006:"FRAMEBUFFER_BINDING",36007:"RENDERBUFFER_BINDING",36048:"FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",36049:"FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",36050:"FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",36051:"FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",36053:"FRAMEBUFFER_COMPLETE",36054:"FRAMEBUFFER_INCOMPLETE_ATTACHMENT",36055:"FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",36057:"FRAMEBUFFER_INCOMPLETE_DIMENSIONS",36061:"FRAMEBUFFER_UNSUPPORTED",36064:"COLOR_ATTACHMENT0",36096:"DEPTH_ATTACHMENT",36128:"STENCIL_ATTACHMENT",36160:"FRAMEBUFFER",36161:"RENDERBUFFER",36162:"RENDERBUFFER_WIDTH",36163:"RENDERBUFFER_HEIGHT",36164:"RENDERBUFFER_INTERNAL_FORMAT",36168:"STENCIL_INDEX8",36176:"RENDERBUFFER_RED_SIZE",36177:"RENDERBUFFER_GREEN_SIZE",36178:"RENDERBUFFER_BLUE_SIZE",36179:"RENDERBUFFER_ALPHA_SIZE",36180:"RENDERBUFFER_DEPTH_SIZE",36181:"RENDERBUFFER_STENCIL_SIZE",36194:"RGB565",36336:"LOW_FLOAT",36337:"MEDIUM_FLOAT",36338:"HIGH_FLOAT",36339:"LOW_INT",36340:"MEDIUM_INT",36341:"HIGH_INT",36346:"SHADER_COMPILER",36347:"MAX_VERTEX_UNIFORM_VECTORS",36348:"MAX_VARYING_VECTORS",36349:"MAX_FRAGMENT_UNIFORM_VECTORS",37440:"UNPACK_FLIP_Y_WEBGL",37441:"UNPACK_PREMULTIPLY_ALPHA_WEBGL",37442:"CONTEXT_LOST_WEBGL",37443:"UNPACK_COLORSPACE_CONVERSION_WEBGL",37444:"BROWSER_DEFAULT_WEBGL"}},{}],263:[function(e,t,n){var r=e("./1.0/numbers");t.exports=function(e){return r[e]}},{"./1.0/numbers":262}],264:[function(e,t,n){"use strict";t.exports=p;var r=e("gl-buffer"),a=e("gl-vao"),o=e("./shaders/index"),i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function l(e,t,n,r){this.gl=e,this.shader=r,this.buffer=t,this.vao=n,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var s=l.prototype;function u(e,t){for(var n=0;n<3;++n)e[0][n]=Math.min(e[0][n],t[n]),e[1][n]=Math.max(e[1][n],t[n])}s.isOpaque=function(){return!this.hasAlpha},s.isTransparent=function(){return this.hasAlpha},s.drawTransparent=s.draw=function(e){var t=this.gl,n=this.shader.uniforms;this.shader.bind();var r=n.view=e.view||i,a=n.projection=e.projection||i;n.model=e.model||i,n.clipBounds=this.clipBounds,n.opacity=this.opacity;var o=r[12],l=r[13],s=r[14],u=r[15],c=e._ortho||!1,f=c?2:1,p=f*this.pixelRatio*(a[3]*o+a[7]*l+a[11]*s+a[15]*u)/t.drawingBufferHeight;this.vao.bind();for(var d=0;d<3;++d)t.lineWidth(this.lineWidth[d]*this.pixelRatio),n.capSize=this.capSize[d]*p,this.lineCount[d]&&t.drawArrays(t.LINES,this.lineOffset[d],this.lineCount[d]);this.vao.unbind()};var c=function(){for(var e=new Array(3),t=0;t<3;++t){for(var n=[],r=1;r<=2;++r)for(var a=-1;a<=1;a+=2){var o=(r+t)%3,i=[0,0,0];i[o]=a,n.push(i)}e[t]=n}return e}();function f(e,t,n,r){for(var a=c[r],o=0;o<a.length;++o){var i=a[o];e.push(t[0],t[1],t[2],n[0],n[1],n[2],n[3],i[0],i[1],i[2])}return a.length}function p(e){var t=e.gl,n=r(t),i=a(t,[{buffer:n,type:t.FLOAT,size:3,offset:0,stride:40},{buffer:n,type:t.FLOAT,size:4,offset:12,stride:40},{buffer:n,type:t.FLOAT,size:3,offset:28,stride:40}]),s=o(t);s.attributes.position.location=0,s.attributes.color.location=1,s.attributes.offset.location=2;var u=new l(t,n,i,s);return u.update(e),u}s.update=function(e){e=e||{},"lineWidth"in e&&(this.lineWidth=e.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),"capSize"in e&&(this.capSize=e.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,"opacity"in e&&(this.opacity=+e.opacity,this.opacity<1&&(this.hasAlpha=!0));var t=e.color||[[0,0,0],[0,0,0],[0,0,0]],n=e.position,r=e.error;if(Array.isArray(t[0])||(t=[t,t,t]),n&&r){var a=[],o=n.length,i=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var l=0;l<3;++l){this.lineOffset[l]=i;e:for(var s=0;s<o;++s){for(var c=n[s],p=0;p<3;++p)if(isNaN(c[p])||!isFinite(c[p]))continue e;var d=r[s],h=t[l];if(Array.isArray(h[0])&&(h=t[s]),3===h.length?h=[h[0],h[1],h[2],1]:4===h.length&&(h=[h[0],h[1],h[2],h[3]],!this.hasAlpha&&h[3]<1&&(this.hasAlpha=!0)),!isNaN(d[0][l])&&!isNaN(d[1][l])){if(d[0][l]<0){var v=c.slice();v[l]+=d[0][l],a.push(c[0],c[1],c[2],h[0],h[1],h[2],h[3],0,0,0,v[0],v[1],v[2],h[0],h[1],h[2],h[3],0,0,0),u(this.bounds,v),i+=2+f(a,v,h,l)}if(d[1][l]>0){v=c.slice();v[l]+=d[1][l],a.push(c[0],c[1],c[2],h[0],h[1],h[2],h[3],0,0,0,v[0],v[1],v[2],h[0],h[1],h[2],h[3],0,0,0),u(this.bounds,v),i+=2+f(a,v,h,l)}}}this.lineCount[l]=i-this.lineOffset[l]}this.buffer.update(a)}},s.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{"./shaders/index":265,"gl-buffer":258,"gl-vao":332}],265:[function(e,t,n){"use strict";var r=e("glslify"),a=e("gl-shader"),o=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n vec4 worldPosition = model * vec4(position, 1.0);\n worldPosition = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n gl_Position = projection * view * worldPosition;\n fragColor = color;\n fragPosition = position;\n}"]),i=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n gl_FragColor = opacity * fragColor;\n}"]);t.exports=function(e){return a(e,o,i,null,[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"offset",type:"vec3"}])}},{"gl-shader":312,glslify:413}],266:[function(e,t,n){"use strict";var r=e("gl-texture2d");t.exports=b;var a,o,i,l,s=null;function u(e){var t=e.getParameter(e.FRAMEBUFFER_BINDING),n=e.getParameter(e.RENDERBUFFER_BINDING),r=e.getParameter(e.TEXTURE_BINDING_2D);return[t,n,r]}function c(e,t){e.bindFramebuffer(e.FRAMEBUFFER,t[0]),e.bindRenderbuffer(e.RENDERBUFFER,t[1]),e.bindTexture(e.TEXTURE_2D,t[2])}function f(e,t){var n=e.getParameter(t.MAX_COLOR_ATTACHMENTS_WEBGL);s=new Array(n+1);for(var r=0;r<=n;++r){for(var a=new Array(n),o=0;o<r;++o)a[o]=e.COLOR_ATTACHMENT0+o;for(o=r;o<n;++o)a[o]=e.NONE;s[r]=a}}function p(e){switch(e){case a:throw new Error("gl-fbo: Framebuffer unsupported");case o:throw new Error("gl-fbo: Framebuffer incomplete attachment");case i:throw new Error("gl-fbo: Framebuffer incomplete dimensions");case l:throw new Error("gl-fbo: Framebuffer incomplete missing attachment");default:throw new Error("gl-fbo: Framebuffer failed for unspecified reason")}}function d(e,t,n,a,o,i){if(!a)return null;var l=r(e,t,n,o,a);return l.magFilter=e.NEAREST,l.minFilter=e.NEAREST,l.mipSamples=1,l.bind(),e.framebufferTexture2D(e.FRAMEBUFFER,i,e.TEXTURE_2D,l.handle,0),l}function h(e,t,n,r,a){var o=e.createRenderbuffer();return e.bindRenderbuffer(e.RENDERBUFFER,o),e.renderbufferStorage(e.RENDERBUFFER,r,t,n),e.framebufferRenderbuffer(e.FRAMEBUFFER,a,e.RENDERBUFFER,o),o}function v(e){var t=u(e.gl),n=e.gl,r=e.handle=n.createFramebuffer(),a=e._shape[0],o=e._shape[1],i=e.color.length,l=e._ext,f=e._useStencil,v=e._useDepth,m=e._colorType;n.bindFramebuffer(n.FRAMEBUFFER,r);for(var y=0;y<i;++y)e.color[y]=d(n,a,o,m,n.RGBA,n.COLOR_ATTACHMENT0+y);0===i?(e._color_rb=h(n,a,o,n.RGBA4,n.COLOR_ATTACHMENT0),l&&l.drawBuffersWEBGL(s[0])):i>1&&l.drawBuffersWEBGL(s[i]);var g=n.getExtension("WEBGL_depth_texture");g?f?e.depth=d(n,a,o,g.UNSIGNED_INT_24_8_WEBGL,n.DEPTH_STENCIL,n.DEPTH_STENCIL_ATTACHMENT):v&&(e.depth=d(n,a,o,n.UNSIGNED_SHORT,n.DEPTH_COMPONENT,n.DEPTH_ATTACHMENT)):v&&f?e._depth_rb=h(n,a,o,n.DEPTH_STENCIL,n.DEPTH_STENCIL_ATTACHMENT):v?e._depth_rb=h(n,a,o,n.DEPTH_COMPONENT16,n.DEPTH_ATTACHMENT):f&&(e._depth_rb=h(n,a,o,n.STENCIL_INDEX,n.STENCIL_ATTACHMENT));var b=n.checkFramebufferStatus(n.FRAMEBUFFER);if(b!==n.FRAMEBUFFER_COMPLETE){e._destroyed=!0,n.bindFramebuffer(n.FRAMEBUFFER,null),n.deleteFramebuffer(e.handle),e.handle=null,e.depth&&(e.depth.dispose(),e.depth=null),e._depth_rb&&(n.deleteRenderbuffer(e._depth_rb),e._depth_rb=null);for(y=0;y<e.color.length;++y)e.color[y].dispose(),e.color[y]=null;e._color_rb&&(n.deleteRenderbuffer(e._color_rb),e._color_rb=null),c(n,t),p(b)}c(n,t)}function m(e,t,n,r,a,o,i,l){this.gl=e,this._shape=[0|t,0|n],this._destroyed=!1,this._ext=l,this.color=new Array(a);for(var s=0;s<a;++s)this.color[s]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=r,this._useDepth=o,this._useStencil=i;var u=this,c=[0|t,0|n];Object.defineProperties(c,{0:{get:function(){return u._shape[0]},set:function(e){return u.width=e}},1:{get:function(){return u._shape[1]},set:function(e){return u.height=e}}}),this._shapeVector=c,v(this)}var y=m.prototype;function g(e,t,n){if(e._destroyed)throw new Error("gl-fbo: Can't resize destroyed FBO");if(e._shape[0]!==t||e._shape[1]!==n){var r=e.gl,a=r.getParameter(r.MAX_RENDERBUFFER_SIZE);if(t<0||t>a||n<0||n>a)throw new Error("gl-fbo: Can't resize FBO, invalid dimensions");e._shape[0]=t,e._shape[1]=n;for(var o=u(r),i=0;i<e.color.length;++i)e.color[i].shape=e._shape;e._color_rb&&(r.bindRenderbuffer(r.RENDERBUFFER,e._color_rb),r.renderbufferStorage(r.RENDERBUFFER,r.RGBA4,e._shape[0],e._shape[1])),e.depth&&(e.depth.shape=e._shape),e._depth_rb&&(r.bindRenderbuffer(r.RENDERBUFFER,e._depth_rb),e._useDepth&&e._useStencil?r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,e._shape[0],e._shape[1]):e._useDepth?r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_COMPONENT16,e._shape[0],e._shape[1]):e._useStencil&&r.renderbufferStorage(r.RENDERBUFFER,r.STENCIL_INDEX,e._shape[0],e._shape[1])),r.bindFramebuffer(r.FRAMEBUFFER,e.handle);var l=r.checkFramebufferStatus(r.FRAMEBUFFER);l!==r.FRAMEBUFFER_COMPLETE&&(e.dispose(),c(r,o),p(l)),c(r,o)}}function b(e,t,n,r){a||(a=e.FRAMEBUFFER_UNSUPPORTED,o=e.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,i=e.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,l=e.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var u=e.getExtension("WEBGL_draw_buffers");if(!s&&u&&f(e,u),Array.isArray(t)&&(r=n,n=0|t[1],t=0|t[0]),"number"!==typeof t)throw new Error("gl-fbo: Missing shape parameter");var c=e.getParameter(e.MAX_RENDERBUFFER_SIZE);if(t<0||t>c||n<0||n>c)throw new Error("gl-fbo: Parameters are too large for FBO");r=r||{};var p=1;if("color"in r){if(p=Math.max(0|r.color,0),p<0)throw new Error("gl-fbo: Must specify a nonnegative number of colors");if(p>1){if(!u)throw new Error("gl-fbo: Multiple draw buffer extension not supported");if(p>e.getParameter(u.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error("gl-fbo: Context does not support "+p+" draw buffers")}}var d=e.UNSIGNED_BYTE,h=e.getExtension("OES_texture_float");if(r.float&&p>0){if(!h)throw new Error("gl-fbo: Context does not support floating point textures");d=e.FLOAT}else r.preferFloat&&p>0&&h&&(d=e.FLOAT);var v=!0;"depth"in r&&(v=!!r.depth);var y=!1;return"stencil"in r&&(y=!!r.stencil),new m(e,t,n,d,p,v,y,u)}Object.defineProperties(y,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(e){if(Array.isArray(e)||(e=[0|e,0|e]),2!==e.length)throw new Error("gl-fbo: Shape vector must be length 2");var t=0|e[0],n=0|e[1];return g(this,t,n),[t,n]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(e){return e|=0,g(this,e,this._shape[1]),e},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(e){return e|=0,g(this,this._shape[0],e),e},enumerable:!1}}),y.bind=function(){if(!this._destroyed){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,this.handle),e.viewport(0,0,this._shape[0],this._shape[1])}},y.dispose=function(){if(!this._destroyed){this._destroyed=!0;var e=this.gl;e.deleteFramebuffer(this.handle),this.handle=null,this.depth&&(this.depth.dispose(),this.depth=null),this._depth_rb&&(e.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var t=0;t<this.color.length;++t)this.color[t].dispose(),this.color[t]=null;this._color_rb&&(e.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{"gl-texture2d":327}],267:[function(e,t,n){var r=e("sprintf-js").sprintf,a=e("gl-constants/lookup"),o=e("glsl-shader-name"),i=e("add-line-numbers");function l(e,t,n){"use strict";var l=o(t)||"of unknown name (see npm glsl-shader-name)",s="unknown type";void 0!==n&&(s=n===a.FRAGMENT_SHADER?"fragment":"vertex");for(var u=r("Error compiling %s shader %s:\n",s,l),c=r("%s%s",u,e),f=e.split("\n"),p={},d=0;d<f.length;d++){var h=f[d];if(""!==h&&"\0"!==h){var v=parseInt(h.split(":")[2]);if(isNaN(v))throw new Error(r("Could not parse error: %s",h));p[v]=h}}var m=i(t).split("\n");for(d=0;d<m.length;d++)if(p[d+3]||p[d+2]||p[d+1]){var y=m[d];if(u+=y+"\n",p[d+1]){var g=p[d+1];g=g.substr(g.split(":",3).join(":").length+1).trim(),u+=r("^^^ %s\n\n",g)}}return{long:u.trim(),short:c.trim()}}t.exports=l},{"add-line-numbers":66,"gl-constants/lookup":263,"glsl-shader-name":405,"sprintf-js":539}],268:[function(e,t,n){"use strict";t.exports=p;var r=e("binary-search-bounds"),a=e("iota-array"),o=e("typedarray-pool"),i=e("gl-shader"),l=e("gl-buffer"),s=e("./lib/shaders");function u(e,t,n,r,a,o,i){this.plot=e,this.shader=t,this.pickShader=n,this.positionBuffer=r,this.weightBuffer=a,this.colorBuffer=o,this.idBuffer=i,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var c=u.prototype,f=[0,0,1,0,0,1,1,0,1,1,0,1];function p(e,t){var n=e.gl,r=i(n,s.vertex,s.fragment),a=i(n,s.pickVertex,s.pickFragment),o=l(n),c=l(n),f=l(n),p=l(n),d=new u(e,r,a,o,c,f,p);return d.update(t),e.addObject(d),d}c.draw=function(){var e=[1,0,0,0,1,0,0,0,1];return function(){var t=this.plot,n=this.shader,r=this.bounds,a=this.numVertices;if(!(a<=0)){var o=t.gl,i=t.dataBox,l=r[2]-r[0],s=r[3]-r[1],u=i[2]-i[0],c=i[3]-i[1];e[0]=2*l/u,e[4]=2*s/c,e[6]=2*(r[0]-i[0])/u-1,e[7]=2*(r[1]-i[1])/c-1,n.bind();var f=n.uniforms;f.viewTransform=e,f.shape=this.shape;var p=n.attributes;this.positionBuffer.bind(),p.position.pointer(),this.weightBuffer.bind(),p.weight.pointer(o.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),p.color.pointer(o.UNSIGNED_BYTE,!0),o.drawArrays(o.TRIANGLES,0,a)}}}(),c.drawPick=function(){var e=[1,0,0,0,1,0,0,0,1],t=[0,0,0,0];return function(n){var r=this.plot,a=this.pickShader,o=this.bounds,i=this.numVertices;if(!(i<=0)){var l=r.gl,s=r.dataBox,u=o[2]-o[0],c=o[3]-o[1],f=s[2]-s[0],p=s[3]-s[1];e[0]=2*u/f,e[4]=2*c/p,e[6]=2*(o[0]-s[0])/f-1,e[7]=2*(o[1]-s[1])/p-1;for(var d=0;d<4;++d)t[d]=n>>8*d&255;this.pickOffset=n,a.bind();var h=a.uniforms;h.viewTransform=e,h.pickOffset=t,h.shape=this.shape;var v=a.attributes;return this.positionBuffer.bind(),v.position.pointer(),this.weightBuffer.bind(),v.weight.pointer(l.UNSIGNED_BYTE,!1),this.idBuffer.bind(),v.pickId.pointer(l.UNSIGNED_BYTE,!1),l.drawArrays(l.TRIANGLES,0,i),n+this.shape[0]*this.shape[1]}}}(),c.pick=function(e,t,n){var r=this.pickOffset,a=this.shape[0]*this.shape[1];if(n<r||n>=r+a)return null;var o=n-r,i=this.xData,l=this.yData;return{object:this,pointId:o,dataCoord:[i[o%this.shape[0]],l[o/this.shape[0]|0]]}},c.update=function(e){e=e||{};var t=e.shape||[0,0],n=e.x||a(t[0]),i=e.y||a(t[1]),l=e.z||new Float32Array(t[0]*t[1]),s=!1!==e.zsmooth;this.xData=n,this.yData=i;var u,c,p,d,h=e.colorLevels||[0],v=e.colorValues||[0,0,0,1],m=h.length,y=this.bounds;s?(u=y[0]=n[0],c=y[1]=i[0],p=y[2]=n[n.length-1],d=y[3]=i[i.length-1]):(u=y[0]=n[0]+(n[1]-n[0])/2,c=y[1]=i[0]+(i[1]-i[0])/2,p=y[2]=n[n.length-1]+(n[n.length-1]-n[n.length-2])/2,d=y[3]=i[i.length-1]+(i[i.length-1]-i[i.length-2])/2);var g=1/(p-u),b=1/(d-c),x=t[0],_=t[1];this.shape=[x,_];var w=(s?(x-1)*(_-1):x*_)*(f.length>>>1);this.numVertices=w;for(var k=o.mallocUint8(4*w),T=o.mallocFloat32(2*w),E=o.mallocUint8(2*w),O=o.mallocUint32(w),M=0,S=s?x-1:x,C=s?_-1:_,A=0;A<C;++A){var P,L;s?(P=b*(i[A]-c),L=b*(i[A+1]-c)):(P=A<_-1?b*(i[A]-(i[A+1]-i[A])/2-c):b*(i[A]-(i[A]-i[A-1])/2-c),L=A<_-1?b*(i[A]+(i[A+1]-i[A])/2-c):b*(i[A]+(i[A]-i[A-1])/2-c));for(var D=0;D<S;++D){var j,I;s?(j=g*(n[D]-u),I=g*(n[D+1]-u)):(j=D<x-1?g*(n[D]-(n[D+1]-n[D])/2-u):g*(n[D]-(n[D]-n[D-1])/2-u),I=D<x-1?g*(n[D]+(n[D+1]-n[D])/2-u):g*(n[D]+(n[D]-n[D-1])/2-u));for(var R=0;R<f.length;R+=2){var z,N,F,B,V=f[R],H=f[R+1],U=s?(A+H)*x+(D+V):A*x+D,W=l[U],q=r.le(h,W);if(q<0)z=v[0],N=v[1],F=v[2],B=v[3];else if(q===m-1)z=v[4*m-4],N=v[4*m-3],F=v[4*m-2],B=v[4*m-1];else{var $=(W-h[q])/(h[q+1]-h[q]),G=1-$,Y=4*q,K=4*(q+1);z=G*v[Y]+$*v[K],N=G*v[Y+1]+$*v[K+1],F=G*v[Y+2]+$*v[K+2],B=G*v[Y+3]+$*v[K+3]}k[4*M]=255*z,k[4*M+1]=255*N,k[4*M+2]=255*F,k[4*M+3]=255*B,T[2*M]=.5*j+.5*I,T[2*M+1]=.5*P+.5*L,E[2*M]=V,E[2*M+1]=H,O[M]=A*x+D,M+=1}}}this.positionBuffer.update(T),this.weightBuffer.update(E),this.colorBuffer.update(k),this.idBuffer.update(O),o.free(T),o.free(k),o.free(E),o.free(O)},c.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{"./lib/shaders":269,"binary-search-bounds":96,"gl-buffer":258,"gl-shader":312,"iota-array":437,"typedarray-pool":567}],269:[function(e,t,n){"use strict";var r=e("glslify");t.exports={fragment:r(["precision lowp float;\n#define GLSLIFY 1\nvarying vec4 fragColor;\nvoid main() {\n gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\n}\n"]),vertex:r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 color;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragColor;\n\nvoid main() {\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n fragColor = color;\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n"]),pickFragment:r(["precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nuniform vec2 shape;\nuniform vec4 pickOffset;\n\nvoid main() {\n vec2 d = step(.5, vWeight);\n vec4 id = fragId + pickOffset;\n id.x += d.x + d.y*shape.x;\n\n id.y += floor(id.x / 256.0);\n id.x -= floor(id.x / 256.0) * 256.0;\n\n id.z += floor(id.y / 256.0);\n id.y -= floor(id.y / 256.0) * 256.0;\n\n id.w += floor(id.z / 256.0);\n id.z -= floor(id.z / 256.0) * 256.0;\n\n gl_FragColor = id/255.;\n}\n"]),pickVertex:r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nvoid main() {\n vWeight = weight;\n\n fragId = pickId;\n\n vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n"])}},{glslify:413}],270:[function(e,t,n){var r=e("glslify"),a=e("gl-shader"),o=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n vec4 startPoint = project(position);\n vec4 endPoint = project(nextPosition);\n\n vec2 A = startPoint.xy / startPoint.w;\n vec2 B = endPoint.xy / endPoint.w;\n\n float clipAngle = atan(\n (B.y - A.y) * screenShape.y,\n (B.x - A.x) * screenShape.x\n );\n\n vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n sin(clipAngle),\n -cos(clipAngle)\n ) / screenShape;\n\n gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n worldPosition = position;\n pixelArcLength = arcLength;\n fragColor = color;\n}\n"]),i=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float dashScale;\nuniform float opacity;\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (\n outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n fragColor.a * opacity == 0.\n ) discard;\n\n float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n if(dashWeight < 0.5) {\n discard;\n }\n gl_FragColor = fragColor * opacity;\n}\n"]),l=r(["precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX 1.70141184e38\n#define FLOAT_MIN 1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n float av = abs(v);\n\n //Handle special cases\n if(av < FLOAT_MIN) {\n return vec4(0.0, 0.0, 0.0, 0.0);\n } else if(v > FLOAT_MAX) {\n return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n } else if(v < -FLOAT_MAX) {\n return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n }\n\n vec4 c = vec4(0,0,0,0);\n\n //Compute exponent and mantissa\n float e = floor(log2(av));\n float m = av * pow(2.0, -e) - 1.0;\n\n //Unpack mantissa\n c[1] = floor(128.0 * m);\n m -= c[1] / 128.0;\n c[2] = floor(32768.0 * m);\n m -= c[2] / 32768.0;\n c[3] = floor(8388608.0 * m);\n\n //Unpack exponent\n float ebias = e + 127.0;\n c[0] = floor(ebias / 2.0);\n ebias -= c[0] * 2.0;\n c[1] += floor(ebias) * 128.0;\n\n //Unpack sign bit\n c[0] += 128.0 * step(0.0, -v);\n\n //Scale back to range\n return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}"]),s=[{name:"position",type:"vec3"},{name:"nextPosition",type:"vec3"},{name:"arcLength",type:"float"},{name:"lineWidth",type:"float"},{name:"color",type:"vec4"}];n.createShader=function(e){return a(e,o,i,null,s)},n.createPickShader=function(e){return a(e,o,l,null,s)}},{"gl-shader":312,glslify:413}],271:[function(e,t,n){"use strict";t.exports=x;var r=e("gl-buffer"),a=e("gl-vao"),o=e("gl-texture2d"),i=new Uint8Array(4),l=new Float32Array(i.buffer);function s(e,t,n,r){return i[0]=r,i[1]=n,i[2]=t,i[3]=e,l[0]}var u=e("binary-search-bounds"),c=e("ndarray"),f=e("./lib/shaders"),p=f.createShader,d=f.createPickShader,h=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function v(e,t){for(var n=0,r=0;r<3;++r){var a=e[r]-t[r];n+=a*a}return Math.sqrt(n)}function m(e){for(var t=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],n=0;n<3;++n)t[0][n]=Math.max(e[0][n],t[0][n]),t[1][n]=Math.min(e[1][n],t[1][n]);return t}function y(e,t,n,r){this.arcLength=e,this.position=t,this.index=n,this.dataCoordinate=r}function g(e,t,n,r,a,o){this.gl=e,this.shader=t,this.pickShader=n,this.buffer=r,this.vao=a,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=o,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var b=g.prototype;function x(e){var t=e.gl||e.scene&&e.scene.gl,n=p(t);n.attributes.position.location=0,n.attributes.nextPosition.location=1,n.attributes.arcLength.location=2,n.attributes.lineWidth.location=3,n.attributes.color.location=4;var i=d(t);i.attributes.position.location=0,i.attributes.nextPosition.location=1,i.attributes.arcLength.location=2,i.attributes.lineWidth.location=3,i.attributes.color.location=4;for(var l=r(t),s=a(t,[{buffer:l,size:3,offset:0,stride:48},{buffer:l,size:3,offset:12,stride:48},{buffer:l,size:1,offset:24,stride:48},{buffer:l,size:1,offset:28,stride:48},{buffer:l,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),f=0;f<1024;++f)u.data[f]=255;var h=o(t,u);h.wrap=t.REPEAT;var v=new g(t,n,i,l,s,h);return v.update(e),v}b.isTransparent=function(){return this.hasAlpha},b.isOpaque=function(){return!this.hasAlpha},b.pickSlots=1,b.setPickBase=function(e){this.pickId=e},b.drawTransparent=b.draw=function(e){if(this.vertexCount){var t=this.gl,n=this.shader,r=this.vao;n.bind(),n.uniforms={model:e.model||h,view:e.view||h,projection:e.projection||h,clipBounds:m(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[t.drawingBufferWidth,t.drawingBufferHeight],pixelRatio:this.pixelRatio},r.bind(),r.draw(t.TRIANGLE_STRIP,this.vertexCount),r.unbind()}},b.drawPick=function(e){if(this.vertexCount){var t=this.gl,n=this.pickShader,r=this.vao;n.bind(),n.uniforms={model:e.model||h,view:e.view||h,projection:e.projection||h,pickId:this.pickId,clipBounds:m(this.clipBounds),screenShape:[t.drawingBufferWidth,t.drawingBufferHeight],pixelRatio:this.pixelRatio},r.bind(),r.draw(t.TRIANGLE_STRIP,this.vertexCount),r.unbind()}},b.update=function(e){var t,n;this.dirty=!0;var r=!!e.connectGaps;"dashScale"in e&&(this.dashScale=e.dashScale),this.hasAlpha=!1,"opacity"in e&&(this.opacity=+e.opacity,this.opacity<1&&(this.hasAlpha=!0));var a=[],o=[],i=[],l=0,s=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],p=e.position||e.positions;if(p){var d=e.color||e.colors||[0,0,0,1],h=e.lineWidth||1,m=!1;e:for(t=1;t<p.length;++t){var y,g,b,x=p[t-1],_=p[t];for(o.push(l),i.push(x.slice()),n=0;n<3;++n){if(isNaN(x[n])||isNaN(_[n])||!isFinite(x[n])||!isFinite(_[n])){if(!r&&a.length>0){for(var w=0;w<24;++w)a.push(a[a.length-12]);s+=2,m=!0}continue e}f[0][n]=Math.min(f[0][n],x[n],_[n]),f[1][n]=Math.max(f[1][n],x[n],_[n])}Array.isArray(d[0])?(y=d.length>t-1?d[t-1]:d.length>0?d[d.length-1]:[0,0,0,1],g=d.length>t?d[t]:d.length>0?d[d.length-1]:[0,0,0,1]):y=g=d,3===y.length&&(y=[y[0],y[1],y[2],1]),3===g.length&&(g=[g[0],g[1],g[2],1]),!this.hasAlpha&&y[3]<1&&(this.hasAlpha=!0),b=Array.isArray(h)?h.length>t-1?h[t-1]:h.length>0?h[h.length-1]:[0,0,0,1]:h;var k=l;if(l+=v(x,_),m){for(n=0;n<2;++n)a.push(x[0],x[1],x[2],_[0],_[1],_[2],k,b,y[0],y[1],y[2],y[3]);s+=2,m=!1}a.push(x[0],x[1],x[2],_[0],_[1],_[2],k,b,y[0],y[1],y[2],y[3],x[0],x[1],x[2],_[0],_[1],_[2],k,-b,y[0],y[1],y[2],y[3],_[0],_[1],_[2],x[0],x[1],x[2],l,-b,g[0],g[1],g[2],g[3],_[0],_[1],_[2],x[0],x[1],x[2],l,b,g[0],g[1],g[2],g[3]),s+=4}}if(this.buffer.update(a),o.push(l),i.push(p[p.length-1].slice()),this.bounds=f,this.vertexCount=s,this.points=i,this.arcLength=o,"dashes"in e){var T=e.dashes,E=T.slice();for(E.unshift(0),t=1;t<E.length;++t)E[t]=E[t-1]+E[t];var O=c(new Array(1024),[256,1,4]);for(t=0;t<256;++t){for(n=0;n<4;++n)O.set(t,0,n,0);1&u.le(E,E[E.length-1]*t/255)?O.set(t,0,0,0):O.set(t,0,0,255)}this.texture.setPixels(O)}},b.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},b.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;var t=s(e.value[0],e.value[1],e.value[2],0),n=u.le(this.arcLength,t);if(n<0)return null;if(n===this.arcLength.length-1)return new y(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),n);for(var r=this.points[n],a=this.points[Math.min(n+1,this.points.length-1)],o=(t-this.arcLength[n])/(this.arcLength[n+1]-this.arcLength[n]),i=1-o,l=[0,0,0],c=0;c<3;++c)l[c]=i*r[c]+o*a[c];var f=Math.min(o<.5?n:n+1,this.points.length-1);return new y(t,l,f,this.points[f])}},{"./lib/shaders":270,"binary-search-bounds":96,"gl-buffer":258,"gl-texture2d":327,"gl-vao":332,ndarray:469}],272:[function(e,t,n){function r(e){var t=new Float32Array(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}t.exports=r},{}],273:[function(e,t,n){function r(){var e=new Float32Array(16);return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}t.exports=r},{}],274:[function(e,t,n){function r(e){var t=e[0],n=e[1],r=e[2],a=e[3],o=e[4],i=e[5],l=e[6],s=e[7],u=e[8],c=e[9],f=e[10],p=e[11],d=e[12],h=e[13],v=e[14],m=e[15],y=t*i-n*o,g=t*l-r*o,b=t*s-a*o,x=n*l-r*i,_=n*s-a*i,w=r*s-a*l,k=u*h-c*d,T=u*v-f*d,E=u*m-p*d,O=c*v-f*h,M=c*m-p*h,S=f*m-p*v;return y*S-g*M+b*O+x*E-_*T+w*k}t.exports=r},{}],275:[function(e,t,n){function r(e,t){var n=t[0],r=t[1],a=t[2],o=t[3],i=n+n,l=r+r,s=a+a,u=n*i,c=r*i,f=r*l,p=a*i,d=a*l,h=a*s,v=o*i,m=o*l,y=o*s;return e[0]=1-f-h,e[1]=c+y,e[2]=p-m,e[3]=0,e[4]=c-y,e[5]=1-u-h,e[6]=d+v,e[7]=0,e[8]=p+m,e[9]=d-v,e[10]=1-u-f,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}t.exports=r},{}],276:[function(e,t,n){function r(e,t,n){var r=t[0],a=t[1],o=t[2],i=t[3],l=r+r,s=a+a,u=o+o,c=r*l,f=r*s,p=r*u,d=a*s,h=a*u,v=o*u,m=i*l,y=i*s,g=i*u;return e[0]=1-(d+v),e[1]=f+g,e[2]=p-y,e[3]=0,e[4]=f-g,e[5]=1-(c+v),e[6]=h+m,e[7]=0,e[8]=p+y,e[9]=h-m,e[10]=1-(c+d),e[11]=0,e[12]=n[0],e[13]=n[1],e[14]=n[2],e[15]=1,e}t.exports=r},{}],277:[function(e,t,n){function r(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}t.exports=r},{}],278:[function(e,t,n){function r(e,t){var n=t[0],r=t[1],a=t[2],o=t[3],i=t[4],l=t[5],s=t[6],u=t[7],c=t[8],f=t[9],p=t[10],d=t[11],h=t[12],v=t[13],m=t[14],y=t[15],g=n*l-r*i,b=n*s-a*i,x=n*u-o*i,_=r*s-a*l,w=r*u-o*l,k=a*u-o*s,T=c*v-f*h,E=c*m-p*h,O=c*y-d*h,M=f*m-p*v,S=f*y-d*v,C=p*y-d*m,A=g*C-b*S+x*M+_*O-w*E+k*T;return A?(A=1/A,e[0]=(l*C-s*S+u*M)*A,e[1]=(a*S-r*C-o*M)*A,e[2]=(v*k-m*w+y*_)*A,e[3]=(p*w-f*k-d*_)*A,e[4]=(s*O-i*C-u*E)*A,e[5]=(n*C-a*O+o*E)*A,e[6]=(m*x-h*k-y*b)*A,e[7]=(c*k-p*x+d*b)*A,e[8]=(i*S-l*O+u*T)*A,e[9]=(r*O-n*S-o*T)*A,e[10]=(h*w-v*x+y*g)*A,e[11]=(f*x-c*w-d*g)*A,e[12]=(l*E-i*M-s*T)*A,e[13]=(n*M-r*E+a*T)*A,e[14]=(v*b-h*_-m*g)*A,e[15]=(c*_-f*b+p*g)*A,e):null}t.exports=r},{}],279:[function(e,t,n){var r=e("./identity");function a(e,t,n,a){var o,i,l,s,u,c,f,p,d,h,v=t[0],m=t[1],y=t[2],g=a[0],b=a[1],x=a[2],_=n[0],w=n[1],k=n[2];return Math.abs(v-_)<1e-6&&Math.abs(m-w)<1e-6&&Math.abs(y-k)<1e-6?r(e):(f=v-_,p=m-w,d=y-k,h=1/Math.sqrt(f*f+p*p+d*d),f*=h,p*=h,d*=h,o=b*d-x*p,i=x*f-g*d,l=g*p-b*f,h=Math.sqrt(o*o+i*i+l*l),h?(h=1/h,o*=h,i*=h,l*=h):(o=0,i=0,l=0),s=p*l-d*i,u=d*o-f*l,c=f*i-p*o,h=Math.sqrt(s*s+u*u+c*c),h?(h=1/h,s*=h,u*=h,c*=h):(s=0,u=0,c=0),e[0]=o,e[1]=s,e[2]=f,e[3]=0,e[4]=i,e[5]=u,e[6]=p,e[7]=0,e[8]=l,e[9]=c,e[10]=d,e[11]=0,e[12]=-(o*v+i*m+l*y),e[13]=-(s*v+u*m+c*y),e[14]=-(f*v+p*m+d*y),e[15]=1,e)}t.exports=a},{"./identity":277}],280:[function(e,t,n){function r(e,t,n){var r=t[0],a=t[1],o=t[2],i=t[3],l=t[4],s=t[5],u=t[6],c=t[7],f=t[8],p=t[9],d=t[10],h=t[11],v=t[12],m=t[13],y=t[14],g=t[15],b=n[0],x=n[1],_=n[2],w=n[3];return e[0]=b*r+x*l+_*f+w*v,e[1]=b*a+x*s+_*p+w*m,e[2]=b*o+x*u+_*d+w*y,e[3]=b*i+x*c+_*h+w*g,b=n[4],x=n[5],_=n[6],w=n[7],e[4]=b*r+x*l+_*f+w*v,e[5]=b*a+x*s+_*p+w*m,e[6]=b*o+x*u+_*d+w*y,e[7]=b*i+x*c+_*h+w*g,b=n[8],x=n[9],_=n[10],w=n[11],e[8]=b*r+x*l+_*f+w*v,e[9]=b*a+x*s+_*p+w*m,e[10]=b*o+x*u+_*d+w*y,e[11]=b*i+x*c+_*h+w*g,b=n[12],x=n[13],_=n[14],w=n[15],e[12]=b*r+x*l+_*f+w*v,e[13]=b*a+x*s+_*p+w*m,e[14]=b*o+x*u+_*d+w*y,e[15]=b*i+x*c+_*h+w*g,e}t.exports=r},{}],281:[function(e,t,n){function r(e,t,n,r,a,o,i){var l=1/(t-n),s=1/(r-a),u=1/(o-i);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+n)*l,e[13]=(a+r)*s,e[14]=(i+o)*u,e[15]=1,e}t.exports=r},{}],282:[function(e,t,n){function r(e,t,n,r,a){var o=1/Math.tan(t/2),i=1/(r-a);return e[0]=o/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=o,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=(a+r)*i,e[11]=-1,e[12]=0,e[13]=0,e[14]=2*a*r*i,e[15]=0,e}t.exports=r},{}],283:[function(e,t,n){function r(e,t,n,r){var a,o,i,l,s,u,c,f,p,d,h,v,m,y,g,b,x,_,w,k,T,E,O,M,S=r[0],C=r[1],A=r[2],P=Math.sqrt(S*S+C*C+A*A);return Math.abs(P)<1e-6?null:(P=1/P,S*=P,C*=P,A*=P,a=Math.sin(n),o=Math.cos(n),i=1-o,l=t[0],s=t[1],u=t[2],c=t[3],f=t[4],p=t[5],d=t[6],h=t[7],v=t[8],m=t[9],y=t[10],g=t[11],b=S*S*i+o,x=C*S*i+A*a,_=A*S*i-C*a,w=S*C*i-A*a,k=C*C*i+o,T=A*C*i+S*a,E=S*A*i+C*a,O=C*A*i-S*a,M=A*A*i+o,e[0]=l*b+f*x+v*_,e[1]=s*b+p*x+m*_,e[2]=u*b+d*x+y*_,e[3]=c*b+h*x+g*_,e[4]=l*w+f*k+v*T,e[5]=s*w+p*k+m*T,e[6]=u*w+d*k+y*T,e[7]=c*w+h*k+g*T,e[8]=l*E+f*O+v*M,e[9]=s*E+p*O+m*M,e[10]=u*E+d*O+y*M,e[11]=c*E+h*O+g*M,t!==e&&(e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e)}t.exports=r},{}],284:[function(e,t,n){function r(e,t,n){var r=Math.sin(n),a=Math.cos(n),o=t[4],i=t[5],l=t[6],s=t[7],u=t[8],c=t[9],f=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*a+u*r,e[5]=i*a+c*r,e[6]=l*a+f*r,e[7]=s*a+p*r,e[8]=u*a-o*r,e[9]=c*a-i*r,e[10]=f*a-l*r,e[11]=p*a-s*r,e}t.exports=r},{}],285:[function(e,t,n){function r(e,t,n){var r=Math.sin(n),a=Math.cos(n),o=t[0],i=t[1],l=t[2],s=t[3],u=t[8],c=t[9],f=t[10],p=t[11];return t!==e&&(e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*a-u*r,e[1]=i*a-c*r,e[2]=l*a-f*r,e[3]=s*a-p*r,e[8]=o*r+u*a,e[9]=i*r+c*a,e[10]=l*r+f*a,e[11]=s*r+p*a,e}t.exports=r},{}],286:[function(e,t,n){function r(e,t,n){var r=Math.sin(n),a=Math.cos(n),o=t[0],i=t[1],l=t[2],s=t[3],u=t[4],c=t[5],f=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*a+u*r,e[1]=i*a+c*r,e[2]=l*a+f*r,e[3]=s*a+p*r,e[4]=u*a-o*r,e[5]=c*a-i*r,e[6]=f*a-l*r,e[7]=p*a-s*r,e}t.exports=r},{}],287:[function(e,t,n){function r(e,t,n){var r=n[0],a=n[1],o=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}t.exports=r},{}],288:[function(e,t,n){function r(e,t,n){var r,a,o,i,l,s,u,c,f,p,d,h,v=n[0],m=n[1],y=n[2];return t===e?(e[12]=t[0]*v+t[4]*m+t[8]*y+t[12],e[13]=t[1]*v+t[5]*m+t[9]*y+t[13],e[14]=t[2]*v+t[6]*m+t[10]*y+t[14],e[15]=t[3]*v+t[7]*m+t[11]*y+t[15]):(r=t[0],a=t[1],o=t[2],i=t[3],l=t[4],s=t[5],u=t[6],c=t[7],f=t[8],p=t[9],d=t[10],h=t[11],e[0]=r,e[1]=a,e[2]=o,e[3]=i,e[4]=l,e[5]=s,e[6]=u,e[7]=c,e[8]=f,e[9]=p,e[10]=d,e[11]=h,e[12]=r*v+l*m+f*y+t[12],e[13]=a*v+s*m+p*y+t[13],e[14]=o*v+u*m+d*y+t[14],e[15]=i*v+c*m+h*y+t[15]),e}t.exports=r},{}],289:[function(e,t,n){function r(e,t){if(e===t){var n=t[1],r=t[2],a=t[3],o=t[6],i=t[7],l=t[11];e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=n,e[6]=t[9],e[7]=t[13],e[8]=r,e[9]=o,e[11]=t[14],e[12]=a,e[13]=i,e[14]=l}else e[0]=t[0],e[1]=t[4],e[2]=t[8],e[3]=t[12],e[4]=t[1],e[5]=t[5],e[6]=t[9],e[7]=t[13],e[8]=t[2],e[9]=t[6],e[10]=t[10],e[11]=t[14],e[12]=t[3],e[13]=t[7],e[14]=t[11],e[15]=t[15];return e}t.exports=r},{}],290:[function(e,t,n){"use strict";var r=e("barycentric"),a=e("polytope-closest-point/lib/closest_point_2d.js");function o(e,t){for(var n=[0,0,0,0],r=0;r<4;++r)for(var a=0;a<4;++a)n[a]+=e[4*r+a]*t[r];return n}function i(e,t,n,r,a){for(var i=o(r,o(n,o(t,[e[0],e[1],e[2],1]))),l=0;l<3;++l)i[l]/=i[3];return[.5*a[0]*(1+i[0]),.5*a[1]*(1-i[1])]}function l(e,t){if(2===e.length){for(var n=0,o=0,i=0;i<2;++i)n+=Math.pow(t[i]-e[0][i],2),o+=Math.pow(t[i]-e[1][i],2);return n=Math.sqrt(n),o=Math.sqrt(o),n+o<1e-6?[1,0]:[o/(n+o),n/(o+n)]}if(3===e.length){var l=[0,0];return a(e[0],e[1],e[2],t,l),r(e,l)}return[]}function s(e,t){for(var n=[0,0,0],r=0;r<e.length;++r)for(var a=e[r],o=t[r],i=0;i<3;++i)n[i]+=o*a[i];return n}function u(e,t,n,r,a,o){if(1===e.length)return[0,e[0].slice()];for(var u=new Array(e.length),c=0;c<e.length;++c)u[c]=i(e[c],n,r,a,o);var f=0,p=1/0;for(c=0;c<u.length;++c){for(var d=0,h=0;h<2;++h)d+=Math.pow(u[c][h]-t[h],2);d<p&&(p=d,f=c)}var v=l(u,t),m=0;for(c=0;c<3;++c){if(v[c]<-.001||v[c]>1.0001)return null;m+=v[c]}return Math.abs(m-1)>.001?null:[f,s(e,v),v]}t.exports=u},{barycentric:78,"polytope-closest-point/lib/closest_point_2d.js":499}],291:[function(e,t,n){var r=e("glslify"),a=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n , view\n , projection\n , inverseModel;\nuniform vec3 eyePosition\n , lightPosition;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n gl_Position = project(position);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * vec4(position , 1.0);\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n f_color = color;\n f_data = position;\n f_uv = uv;\n}\n"]),o=r(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n , fresnel\n , kambient\n , kdiffuse\n , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n , f_lightDirection\n , f_eyeDirection\n , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (f_color.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], f_data)\n ) discard;\n\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * f_color.a;\n}\n"]),i=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n gl_Position = projection * view * model * vec4(position, 1.0);\n f_color = color;\n f_data = position;\n f_uv = uv;\n}"]),l=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}"]),s=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n } else {\n gl_Position = projection * view * model * vec4(position, 1.0);\n }\n gl_PointSize = pointSize;\n f_color = color;\n f_uv = uv;\n}"]),u=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n if(dot(pointR, pointR) > 0.25) {\n discard;\n }\n gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}"]),c=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n gl_Position = projection * view * model * vec4(position, 1.0);\n f_id = id;\n f_position = position;\n}"]),f=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]),p=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute float pointSize;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n } else {\n gl_Position = projection * view * model * vec4(position, 1.0);\n gl_PointSize = pointSize;\n }\n f_id = id;\n f_position = position;\n}"]),d=r(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n gl_Position = projection * view * model * vec4(position, 1.0);\n}"]),h=r(["precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n gl_FragColor = vec4(contourColor, 1.0);\n}\n"]);n.meshShader={vertex:a,fragment:o,attributes:[{name:"position",type:"vec3"},{name:"normal",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},n.wireShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"}]},n.pointShader={vertex:s,fragment:u,attributes:[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"pointSize",type:"float"}]},n.pickShader={vertex:c,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"id",type:"vec4"}]},n.pointPickShader={vertex:p,fragment:f,attributes:[{name:"position",type:"vec3"},{name:"pointSize",type:"float"},{name:"id",type:"vec4"}]},n.contourShader={vertex:d,fragment:h,attributes:[{name:"position",type:"vec3"}]}},{glslify:413}],292:[function(e,t,n){"use strict";var r=1e-6,a=1e-6,o=e("gl-shader"),i=e("gl-buffer"),l=e("gl-vao"),s=e("gl-texture2d"),u=e("normals"),c=e("gl-mat4/multiply"),f=e("gl-mat4/invert"),p=e("ndarray"),d=e("colormap"),h=e("simplicial-complex-contour"),v=e("typedarray-pool"),m=e("./lib/shaders"),y=e("./lib/closest-point"),g=m.meshShader,b=m.wireShader,x=m.pointShader,_=m.pickShader,w=m.pointPickShader,k=m.contourShader,T=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function E(e,t,n,r,a,o,i,l,s,u,c,f,p,d,h,v,m,y,g,b,x,_,w,k,E,O,M){this.gl=e,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=t,this.dirty=!0,this.triShader=n,this.lineShader=r,this.pointShader=a,this.pickShader=o,this.pointPickShader=i,this.contourShader=l,this.trianglePositions=s,this.triangleColors=c,this.triangleNormals=p,this.triangleUVs=f,this.triangleIds=u,this.triangleVAO=d,this.triangleCount=0,this.lineWidth=1,this.edgePositions=h,this.edgeColors=m,this.edgeUVs=y,this.edgeIds=v,this.edgeVAO=g,this.edgeCount=0,this.pointPositions=b,this.pointColors=_,this.pointUVs=w,this.pointSizes=k,this.pointIds=x,this.pointVAO=E,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=O,this.contourVAO=M,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=T,this._view=T,this._projection=T,this._resolution=[1,1]}var O=E.prototype;function M(e,t){if(!t)return 1;if(!t.length)return 1;for(var n=0;n<t.length;++n){if(t.length<2)return 1;if(t[n][0]===e)return t[n][1];if(t[n][0]>e&&n>0){var r=(t[n][0]-e)/(t[n][0]-t[n-1][0]);return t[n][1]*(1-r)+r*t[n-1][1]}}return 1}function S(e,t){for(var n=d({colormap:e,nshades:256,format:"rgba"}),r=new Uint8Array(1024),a=0;a<256;++a){for(var o=n[a],i=0;i<3;++i)r[4*a+i]=o[i];r[4*a+3]=t?255*M(a/255,t):255*o[3]}return p(r,[256,256,4],[4,0,1])}function C(e){for(var t=e.length,n=new Array(t),r=0;r<t;++r)n[r]=e[r][2];return n}function A(e){var t=o(e,g.vertex,g.fragment);return t.attributes.position.location=0,t.attributes.color.location=2,t.attributes.uv.location=3,t.attributes.normal.location=4,t}function P(e){var t=o(e,b.vertex,b.fragment);return t.attributes.position.location=0,t.attributes.color.location=2,t.attributes.uv.location=3,t}function L(e){var t=o(e,x.vertex,x.fragment);return t.attributes.position.location=0,t.attributes.color.location=2,t.attributes.uv.location=3,t.attributes.pointSize.location=4,t}function D(e){var t=o(e,_.vertex,_.fragment);return t.attributes.position.location=0,t.attributes.id.location=1,t}function j(e){var t=o(e,w.vertex,w.fragment);return t.attributes.position.location=0,t.attributes.id.location=1,t.attributes.pointSize.location=4,t}function I(e){var t=o(e,k.vertex,k.fragment);return t.attributes.position.location=0,t}function R(e,t){1===arguments.length&&(t=e,e=t.gl);var n=e.getExtension("OES_standard_derivatives")||e.getExtension("MOZ_OES_standard_derivatives")||e.getExtension("WEBKIT_OES_standard_derivatives");if(!n)throw new Error("derivatives not supported");var r=A(e),a=P(e),o=L(e),u=D(e),c=j(e),f=I(e),d=s(e,p(new Uint8Array([255,255,255,255]),[1,1,4]));d.generateMipmap(),d.minFilter=e.LINEAR_MIPMAP_LINEAR,d.magFilter=e.LINEAR;var h=i(e),v=i(e),m=i(e),y=i(e),g=i(e),b=l(e,[{buffer:h,type:e.FLOAT,size:3},{buffer:g,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:v,type:e.FLOAT,size:4},{buffer:m,type:e.FLOAT,size:2},{buffer:y,type:e.FLOAT,size:3}]),x=i(e),_=i(e),w=i(e),k=i(e),T=l(e,[{buffer:x,type:e.FLOAT,size:3},{buffer:k,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:e.FLOAT,size:4},{buffer:w,type:e.FLOAT,size:2}]),O=i(e),M=i(e),S=i(e),C=i(e),R=i(e),z=l(e,[{buffer:O,type:e.FLOAT,size:3},{buffer:R,type:e.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:M,type:e.FLOAT,size:4},{buffer:S,type:e.FLOAT,size:2},{buffer:C,type:e.FLOAT,size:1}]),N=i(e),F=l(e,[{buffer:N,type:e.FLOAT,size:3}]),B=new E(e,d,r,a,o,u,c,f,h,g,v,m,y,b,x,k,_,w,T,O,R,M,S,C,z,N,F);return B.update(t),B}O.isOpaque=function(){return!this.hasAlpha},O.isTransparent=function(){return this.hasAlpha},O.pickSlots=1,O.setPickBase=function(e){this.pickId=e},O.highlight=function(e){if(e&&this.contourEnable){for(var t=h(this.cells,this.intensity,e.intensity),n=t.cells,r=t.vertexIds,a=t.vertexWeights,o=n.length,i=v.mallocFloat32(6*o),l=0,s=0;s<o;++s)for(var u=n[s],c=0;c<2;++c){var f=u[0];2===u.length&&(f=u[c]);for(var p=r[f][0],d=r[f][1],m=a[f],y=1-m,g=this.positions[p],b=this.positions[d],x=0;x<3;++x)i[l++]=m*g[x]+y*b[x]}this.contourCount=l/3|0,this.contourPositions.update(i.subarray(0,l)),v.free(i)}else this.contourCount=0},O.update=function(e){e=e||{};var t=this.gl;this.dirty=!0,"contourEnable"in e&&(this.contourEnable=e.contourEnable),"contourColor"in e&&(this.contourColor=e.contourColor),"lineWidth"in e&&(this.lineWidth=e.lineWidth),"lightPosition"in e&&(this.lightPosition=e.lightPosition),this.hasAlpha=!1,"opacity"in e&&(this.opacity=e.opacity,this.opacity<1&&(this.hasAlpha=!0)),"opacityscale"in e&&(this.opacityscale=e.opacityscale,this.hasAlpha=!0),"ambient"in e&&(this.ambientLight=e.ambient),"diffuse"in e&&(this.diffuseLight=e.diffuse),"specular"in e&&(this.specularLight=e.specular),"roughness"in e&&(this.roughness=e.roughness),"fresnel"in e&&(this.fresnel=e.fresnel),e.texture?(this.texture.dispose(),this.texture=s(t,e.texture)):e.colormap&&(this.texture.shape=[256,256],this.texture.minFilter=t.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=t.LINEAR,this.texture.setPixels(S(e.colormap,this.opacityscale)),this.texture.generateMipmap());var n=e.cells,o=e.positions;if(o&&n){var i=[],l=[],c=[],f=[],p=[],d=[],h=[],v=[],m=[],y=[],g=[],b=[],x=[],_=[];this.cells=n,this.positions=o;var w=e.vertexNormals,k=e.cellNormals,T=void 0===e.vertexNormalsEpsilon?r:e.vertexNormalsEpsilon,E=void 0===e.faceNormalsEpsilon?a:e.faceNormalsEpsilon;e.useFacetNormals&&!k&&(k=u.faceNormals(n,o,E)),k||w||(w=u.vertexNormals(n,o,T));var O=e.vertexColors,A=e.cellColors,P=e.meshColor||[1,1,1,1],L=e.vertexUVs,D=e.vertexIntensity,j=e.cellUVs,I=e.cellIntensity,R=1/0,z=-1/0;if(!L&&!j)if(D)if(e.vertexIntensityBounds)R=+e.vertexIntensityBounds[0],z=+e.vertexIntensityBounds[1];else for(var N=0;N<D.length;++N){var F=D[N];R=Math.min(R,F),z=Math.max(z,F)}else if(I)if(e.cellIntensityBounds)R=+e.cellIntensityBounds[0],z=+e.cellIntensityBounds[1];else for(N=0;N<I.length;++N){F=I[N];R=Math.min(R,F),z=Math.max(z,F)}else for(N=0;N<o.length;++N){F=o[N][2];R=Math.min(R,F),z=Math.max(z,F)}this.intensity=D||(I||C(o)),this.pickVertex=!(I||A);var B=e.pointSizes,V=e.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(N=0;N<o.length;++N)for(var H=o[N],U=0;U<3;++U)!isNaN(H[U])&&isFinite(H[U])&&(this.bounds[0][U]=Math.min(this.bounds[0][U],H[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],H[U]));var W=0,q=0,$=0;e:for(N=0;N<n.length;++N){var G=n[N];switch(G.length){case 1:var Y=G[0];for(H=o[Y],U=0;U<3;++U)if(isNaN(H[U])||!isFinite(H[U]))continue e;y.push(H[0],H[1],H[2]),X=O?O[Y]:A?A[N]:P,this.opacityscale&&D?l.push(X[0],X[1],X[2],this.opacity*M((D[Y]-R)/(z-R),this.opacityscale)):3===X.length?g.push(X[0],X[1],X[2],this.opacity):(g.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]<1&&(this.hasAlpha=!0)),Z=L?L[Y]:D?[(D[Y]-R)/(z-R),0]:j?j[N]:I?[(I[N]-R)/(z-R),0]:[(H[2]-R)/(z-R),0],b.push(Z[0],Z[1]),B?x.push(B[Y]):x.push(V),_.push(N),$+=1;break;case 2:for(U=0;U<2;++U){Y=G[U],H=o[Y];for(var K=0;K<3;++K)if(isNaN(H[K])||!isFinite(H[K]))continue e}for(U=0;U<2;++U){Y=G[U],H=o[Y];d.push(H[0],H[1],H[2]),X=O?O[Y]:A?A[N]:P,this.opacityscale&&D?l.push(X[0],X[1],X[2],this.opacity*M((D[Y]-R)/(z-R),this.opacityscale)):3===X.length?h.push(X[0],X[1],X[2],this.opacity):(h.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]<1&&(this.hasAlpha=!0)),Z=L?L[Y]:D?[(D[Y]-R)/(z-R),0]:j?j[N]:I?[(I[N]-R)/(z-R),0]:[(H[2]-R)/(z-R),0],v.push(Z[0],Z[1]),m.push(N)}q+=1;break;case 3:for(U=0;U<3;++U)for(Y=G[U],H=o[Y],K=0;K<3;++K)if(isNaN(H[K])||!isFinite(H[K]))continue e;for(U=0;U<3;++U){var X,Z,J;Y=G[2-U],H=o[Y];i.push(H[0],H[1],H[2]),X=O?O[Y]:A?A[N]:P,X?this.opacityscale&&D?l.push(X[0],X[1],X[2],this.opacity*M((D[Y]-R)/(z-R),this.opacityscale)):3===X.length?l.push(X[0],X[1],X[2],this.opacity):(l.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]<1&&(this.hasAlpha=!0)):l.push(.5,.5,.5,1),Z=L?L[Y]:D?[(D[Y]-R)/(z-R),0]:j?j[N]:I?[(I[N]-R)/(z-R),0]:[(H[2]-R)/(z-R),0],f.push(Z[0],Z[1]),J=w?w[Y]:k[N],c.push(J[0],J[1],J[2]),p.push(N)}W+=1;break;default:break}}this.pointCount=$,this.edgeCount=q,this.triangleCount=W,this.pointPositions.update(y),this.pointColors.update(g),this.pointUVs.update(b),this.pointSizes.update(x),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(d),this.edgeColors.update(h),this.edgeUVs.update(v),this.edgeIds.update(new Uint32Array(m)),this.trianglePositions.update(i),this.triangleColors.update(l),this.triangleUVs.update(f),this.triangleNormals.update(c),this.triangleIds.update(new Uint32Array(p))}},O.drawTransparent=O.draw=function(e){e=e||{};for(var t=this.gl,n=e.model||T,r=e.view||T,a=e.projection||T,o=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],i=0;i<3;++i)o[0][i]=Math.max(o[0][i],this.clipBounds[0][i]),o[1][i]=Math.min(o[1][i],this.clipBounds[1][i]);var l={model:n,view:r,projection:a,inverseModel:T.slice(),clipBounds:o,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};l.inverseModel=f(l.inverseModel,l.model),t.disable(t.CULL_FACE),this.texture.bind(0);var s=new Array(16);c(s,l.view,l.model),c(s,l.projection,s),f(s,s);for(i=0;i<3;++i)l.eyePosition[i]=s[12+i]/s[15];var u=s[15];for(i=0;i<3;++i)u+=this.lightPosition[i]*s[4*i+3];for(i=0;i<3;++i){for(var p=s[12+i],d=0;d<3;++d)p+=s[4*d+i]*this.lightPosition[d];l.lightPosition[i]=p/u}if(this.triangleCount>0){var h=this.triShader;h.bind(),h.uniforms=l,this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}if(this.edgeCount>0&&this.lineWidth>0){h=this.lineShader;h.bind(),h.uniforms=l,this.edgeVAO.bind(),t.lineWidth(this.lineWidth*this.pixelRatio),t.drawArrays(t.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()}if(this.pointCount>0){h=this.pointShader;h.bind(),h.uniforms=l,this.pointVAO.bind(),t.drawArrays(t.POINTS,0,this.pointCount),this.pointVAO.unbind()}if(this.contourEnable&&this.contourCount>0&&this.contourLineWidth>0){h=this.contourShader;h.bind(),h.uniforms=l,this.contourVAO.bind(),t.drawArrays(t.LINES,0,this.contourCount),this.contourVAO.unbind()}},O.drawPick=function(e){e=e||{};for(var t=this.gl,n=e.model||T,r=e.view||T,a=e.projection||T,o=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],i=0;i<3;++i)o[0][i]=Math.max(o[0][i],this.clipBounds[0][i]),o[1][i]=Math.min(o[1][i],this.clipBounds[1][i]);this._model=[].slice.call(n),this._view=[].slice.call(r),this._projection=[].slice.call(a),this._resolution=[t.drawingBufferWidth,t.drawingBufferHeight];var l={model:n,view:r,projection:a,clipBounds:o,pickId:this.pickId/255},s=this.pickShader;if(s.bind(),s.uniforms=l,this.triangleCount>0&&(this.triangleVAO.bind(),t.drawArrays(t.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount>0&&(this.edgeVAO.bind(),t.lineWidth(this.lineWidth*this.pixelRatio),t.drawArrays(t.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount>0){s=this.pointPickShader;s.bind(),s.uniforms=l,this.pointVAO.bind(),t.drawArrays(t.POINTS,0,this.pointCount),this.pointVAO.unbind()}},O.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;for(var t=e.value[0]+256*e.value[1]+65536*e.value[2],n=this.cells[t],r=this.positions,a=new Array(n.length),o=0;o<n.length;++o)a[o]=r[n[o]];var i=e.coord[0],l=e.coord[1];if(!this.pickVertex){var s=this.positions[n[0]],u=this.positions[n[1]],c=this.positions[n[2]],f=[(s[0]+u[0]+c[0])/3,(s[1]+u[1]+c[1])/3,(s[2]+u[2]+c[2])/3];return{_cellCenter:!0,position:[i,l],index:t,cell:n,cellId:t,intensity:this.intensity[t],dataCoordinate:f}}var p=y(a,[i*this.pixelRatio,this._resolution[1]-l*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!p)return null;var d=p[2],h=0;for(o=0;o<n.length;++o)h+=d[o]*this.intensity[n[o]];return{position:p[1],index:n[p[0]],cell:n,cellId:t,intensity:h,dataCoordinate:this.positions[n[p[0]]]}},O.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},t.exports=R},{"./lib/closest-point":290,"./lib/shaders":291,colormap:131,"gl-buffer":258,"gl-mat4/invert":278,"gl-mat4/multiply":280,"gl-shader":312,"gl-texture2d":327,"gl-vao":332,ndarray:469,normals:472,"simplicial-complex-contour":528,"typedarray-pool":567}],293:[function(e,t,n){"use strict";t.exports=s;var r=e("gl-buffer"),a=e("gl-shader"),o=e("./shaders");function i(e,t,n){this.plot=e,this.vbo=t,this.shader=n}var l=i.prototype;function s(e){var t=e.gl,n=r(t,[0,0,0,1,1,0,1,1]),l=a(t,o.boxVert,o.lineFrag);return new i(e,n,l)}l.bind=function(){var e=this.shader;this.vbo.bind(),this.shader.bind(),e.attributes.coord.pointer(),e.uniforms.screenBox=this.plot.screenBox},l.drawBox=function(){var e=[0,0],t=[0,0];return function(n,r,a,o,i){var l=this.plot,s=this.shader,u=l.gl;e[0]=n,e[1]=r,t[0]=a,t[1]=o,s.uniforms.lo=e,s.uniforms.hi=t,s.uniforms.color=i,u.drawArrays(u.TRIANGLE_STRIP,0,4)}}(),l.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{"./shaders":296,"gl-buffer":258,"gl-shader":312}],294:[function(e,t,n){"use strict";t.exports=c;var r=e("gl-buffer"),a=e("gl-shader"),o=e("binary-search-bounds"),i=e("./shaders");function l(e,t,n,r){this.plot=e,this.vbo=t,this.shader=n,this.tickShader=r,this.ticks=[[],[]]}function s(e,t){return e-t}var u=l.prototype;function c(e){var t=e.gl,n=r(t),o=a(t,i.gridVert,i.gridFrag),s=a(t,i.tickVert,i.gridFrag),u=new l(e,n,o,s);return u}u.draw=function(){var e=[0,0],t=[0,0],n=[0,0];return function(){for(var r=this.plot,a=this.vbo,o=this.shader,i=this.ticks,l=r.gl,s=r._tickBounds,u=r.dataBox,c=r.viewBox,f=r.gridLineWidth,p=r.gridLineColor,d=r.gridLineEnable,h=r.pixelRatio,v=0;v<2;++v){var m=s[v],y=s[v+2],g=y-m,b=.5*(u[v+2]+u[v]),x=u[v+2]-u[v];t[v]=2*g/x,e[v]=2*(m-b)/x}o.bind(),a.bind(),o.attributes.dataCoord.pointer(),o.uniforms.dataShift=e,o.uniforms.dataScale=t;var _=0;for(v=0;v<2;++v){n[0]=n[1]=0,n[v]=1,o.uniforms.dataAxis=n,o.uniforms.lineWidth=f[v]/(c[v+2]-c[v])*h,o.uniforms.color=p[v];var w=6*i[v].length;d[v]&&w&&l.drawArrays(l.TRIANGLES,_,w),_+=w}}}(),u.drawTickMarks=function(){var e=[0,0],t=[0,0],n=[1,0],r=[0,1],a=[0,0],i=[0,0];return function(){for(var l=this.plot,u=this.vbo,c=this.tickShader,f=this.ticks,p=l.gl,d=l._tickBounds,h=l.dataBox,v=l.viewBox,m=l.pixelRatio,y=l.screenBox,g=y[2]-y[0],b=y[3]-y[1],x=v[2]-v[0],_=v[3]-v[1],w=0;w<2;++w){var k=d[w],T=d[w+2],E=T-k,O=.5*(h[w+2]+h[w]),M=h[w+2]-h[w];t[w]=2*E/M,e[w]=2*(k-O)/M}t[0]*=x/g,e[0]*=x/g,t[1]*=_/b,e[1]*=_/b,c.bind(),u.bind(),c.attributes.dataCoord.pointer();var S=c.uniforms;S.dataShift=e,S.dataScale=t;var C=l.tickMarkLength,A=l.tickMarkWidth,P=l.tickMarkColor,L=0,D=6*f[0].length,j=Math.min(o.ge(f[0],(h[0]-d[0])/(d[2]-d[0]),s),f[0].length),I=Math.min(o.gt(f[0],(h[2]-d[0])/(d[2]-d[0]),s),f[0].length),R=L+6*j,z=6*Math.max(0,I-j),N=Math.min(o.ge(f[1],(h[1]-d[1])/(d[3]-d[1]),s),f[1].length),F=Math.min(o.gt(f[1],(h[3]-d[1])/(d[3]-d[1]),s),f[1].length),B=D+6*N,V=6*Math.max(0,F-N);a[0]=2*(v[0]-C[1])/g-1,a[1]=(v[3]+v[1])/b-1,i[0]=C[1]*m/g,i[1]=A[1]*m/b,V&&(S.color=P[1],S.tickScale=i,S.dataAxis=r,S.screenOffset=a,p.drawArrays(p.TRIANGLES,B,V)),a[0]=(v[2]+v[0])/g-1,a[1]=2*(v[1]-C[0])/b-1,i[0]=A[0]*m/g,i[1]=C[0]*m/b,z&&(S.color=P[0],S.tickScale=i,S.dataAxis=n,S.screenOffset=a,p.drawArrays(p.TRIANGLES,R,z)),a[0]=2*(v[2]+C[3])/g-1,a[1]=(v[3]+v[1])/b-1,i[0]=C[3]*m/g,i[1]=A[3]*m/b,V&&(S.color=P[3],S.tickScale=i,S.dataAxis=r,S.screenOffset=a,p.drawArrays(p.TRIANGLES,B,V)),a[0]=(v[2]+v[0])/g-1,a[1]=2*(v[3]+C[2])/b-1,i[0]=A[2]*m/g,i[1]=C[2]*m/b,z&&(S.color=P[2],S.tickScale=i,S.dataAxis=n,S.screenOffset=a,p.drawArrays(p.TRIANGLES,R,z))}}(),u.update=function(){var e=[1,1,-1,-1,1,-1],t=[1,-1,1,1,-1,-1];return function(n){for(var r=n.ticks,a=n.bounds,o=new Float32Array(18*(r[0].length+r[1].length)),i=(this.plot.zeroLineEnable,0),l=[[],[]],s=0;s<2;++s)for(var u=l[s],c=r[s],f=a[s],p=a[s+2],d=0;d<c.length;++d){var h=(c[d].x-f)/(p-f);u.push(h);for(var v=0;v<6;++v)o[i++]=h,o[i++]=e[v],o[i++]=t[v]}this.ticks=l,this.vbo.update(o)}}(),u.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{"./shaders":296,"binary-search-bounds":96,"gl-buffer":258,"gl-shader":312}],295:[function(e,t,n){"use strict";t.exports=s;var r=e("gl-buffer"),a=e("gl-shader"),o=e("./shaders");function i(e,t,n){this.plot=e,this.vbo=t,this.shader=n}var l=i.prototype;function s(e){var t=e.gl,n=r(t,[-1,-1,-1,1,1,-1,1,1]),l=a(t,o.lineVert,o.lineFrag),s=new i(e,n,l);return s}l.bind=function(){var e=this.shader;this.vbo.bind(),this.shader.bind(),e.attributes.coord.pointer(),e.uniforms.screenBox=this.plot.screenBox},l.drawLine=function(){var e=[0,0],t=[0,0];return function(n,r,a,o,i,l){var s=this.plot,u=this.shader,c=s.gl;e[0]=n,e[1]=r,t[0]=a,t[1]=o,u.uniforms.start=e,u.uniforms.end=t,u.uniforms.width=i*s.pixelRatio,u.uniforms.color=l,c.drawArrays(c.TRIANGLE_STRIP,0,4)}}(),l.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{"./shaders":296,"gl-buffer":258,"gl-shader":312}],296:[function(e,t,n){"use strict";var r=e("glslify"),a=r(["precision lowp float;\n#define GLSLIFY 1\nuniform vec4 color;\nvoid main() {\n gl_FragColor = vec4(color.xyz * color.w, color.w);\n}\n"]);t.exports={lineVert:r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 start, end;\nuniform float width;\n\nvec2 perp(vec2 v) {\n return vec2(v.y, -v.x);\n}\n\nvec2 screen(vec2 v) {\n return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n vec2 delta = normalize(perp(start - end));\n vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\n gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\n}\n"]),lineFrag:a,textVert:r(["#define GLSLIFY 1\nattribute vec3 textCoordinate;\n\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\nuniform float angle;\n\nvoid main() {\n float dataOffset = textCoordinate.z;\n vec2 glyphOffset = textCoordinate.xy;\n mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\n glyphMatrix * glyphOffset * textScale + screenOffset;\n gl_Position = vec4(screenCoordinate, 0, 1);\n}\n"]),textFrag:a,gridVert:r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale;\nuniform float lineWidth;\n\nvoid main() {\n vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\n gl_Position = vec4(pos, 0, 1);\n}\n"]),gridFrag:a,boxVert:r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 lo, hi;\n\nvec2 screen(vec2 v) {\n return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\n}\n"]),tickVert:r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\n\nvoid main() {\n vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\n}\n"])}},{glslify:413}],297:[function(e,t,n){"use strict";t.exports=c;var r=e("gl-buffer"),a=e("gl-shader"),o=e("text-cache"),i=e("binary-search-bounds"),l=e("./shaders");function s(e,t,n){this.plot=e,this.vbo=t,this.shader=n,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var u=s.prototype;function c(e){var t=e.gl,n=r(t),o=a(t,l.textVert,l.textFrag),i=new s(e,n,o);return i}u.drawTicks=function(){var e=[0,0],t=[0,0],n=[0,0];return function(r){var a=this.plot,o=this.shader,l=this.tickX[r],s=this.tickOffset[r],u=a.gl,c=a.viewBox,f=a.dataBox,p=a.screenBox,d=a.pixelRatio,h=a.tickEnable,v=a.tickPad,m=a.tickColor,y=a.tickAngle,g=a.labelEnable,b=a.labelPad,x=a.labelColor,_=a.labelAngle,w=this.labelOffset[r],k=this.labelCount[r],T=i.lt(l,f[r]),E=i.le(l,f[r+2]);e[0]=e[1]=0,e[r]=1,t[r]=(c[2+r]+c[r])/(p[2+r]-p[r])-1;var O=2/p[2+(1^r)]-p[1^r];t[1^r]=O*c[1^r]-1,h[r]&&(t[1^r]-=O*d*v[r],T<E&&s[E]>s[T]&&(o.uniforms.dataAxis=e,o.uniforms.screenOffset=t,o.uniforms.color=m[r],o.uniforms.angle=y[r],u.drawArrays(u.TRIANGLES,s[T],s[E]-s[T]))),g[r]&&k&&(t[1^r]-=O*d*b[r],o.uniforms.dataAxis=n,o.uniforms.screenOffset=t,o.uniforms.color=x[r],o.uniforms.angle=_[r],u.drawArrays(u.TRIANGLES,w,k)),t[1^r]=O*c[2+(1^r)]-1,h[r+2]&&(t[1^r]+=O*d*v[r+2],T<E&&s[E]>s[T]&&(o.uniforms.dataAxis=e,o.uniforms.screenOffset=t,o.uniforms.color=m[r+2],o.uniforms.angle=y[r+2],u.drawArrays(u.TRIANGLES,s[T],s[E]-s[T]))),g[r+2]&&k&&(t[1^r]+=O*d*b[r+2],o.uniforms.dataAxis=n,o.uniforms.screenOffset=t,o.uniforms.color=x[r+2],o.uniforms.angle=_[r+2],u.drawArrays(u.TRIANGLES,w,k))}}(),u.drawTitle=function(){var e=[0,0],t=[0,0];return function(){var n=this.plot,r=this.shader,a=n.gl,o=n.screenBox,i=n.titleCenter,l=n.titleAngle,s=n.titleColor,u=n.pixelRatio;if(this.titleCount){for(var c=0;c<2;++c)t[c]=2*(i[c]*u-o[c])/(o[2+c]-o[c])-1;r.bind(),r.uniforms.dataAxis=e,r.uniforms.screenOffset=t,r.uniforms.angle=l,r.uniforms.color=s,a.drawArrays(a.TRIANGLES,this.titleOffset,this.titleCount)}}}(),u.bind=function(){var e=[0,0],t=[0,0],n=[0,0];return function(){var r=this.plot,a=this.shader,o=r._tickBounds,i=r.dataBox,l=r.screenBox,s=r.viewBox;a.bind();for(var u=0;u<2;++u){var c=o[u],f=o[u+2],p=f-c,d=.5*(i[u+2]+i[u]),h=i[u+2]-i[u],v=s[u],m=s[u+2],y=m-v,g=l[u],b=l[u+2],x=b-g;t[u]=2*p/h*y/x,e[u]=2*(c-d)/h*y/x}n[1]=2*r.pixelRatio/(l[3]-l[1]),n[0]=n[1]*(l[3]-l[1])/(l[2]-l[0]),a.uniforms.dataScale=t,a.uniforms.dataShift=e,a.uniforms.textScale=n,this.vbo.bind(),a.attributes.textCoordinate.pointer()}}(),u.update=function(e){var t,n,r,a,i,l=[],s=e.ticks,u=e.bounds;for(i=0;i<2;++i){var c=[Math.floor(l.length/3)],f=[-1/0],p=s[i];for(t=0;t<p.length;++t){var d=p[t],h=d.x,v=d.text,m=d.font||"sans-serif";a=d.fontSize||12;for(var y=1/(u[i+2]-u[i]),g=u[i],b=v.split("\n"),x=0;x<b.length;x++)for(r=o(m,b[x]).data,n=0;n<r.length;n+=2)l.push(r[n]*a,-r[n+1]*a-x*a*1.2,(h-g)*y);c.push(Math.floor(l.length/3)),f.push(h)}this.tickOffset[i]=c,this.tickX[i]=f}for(i=0;i<2;++i){for(this.labelOffset[i]=Math.floor(l.length/3),r=o(e.labelFont[i],e.labels[i],{textAlign:"center"}).data,a=e.labelSize[i],t=0;t<r.length;t+=2)l.push(r[t]*a,-r[t+1]*a,0);this.labelCount[i]=Math.floor(l.length/3)-this.labelOffset[i]}for(this.titleOffset=Math.floor(l.length/3),r=o(e.titleFont,e.title).data,a=e.titleSize,t=0;t<r.length;t+=2)l.push(r[t]*a,-r[t+1]*a,0);this.titleCount=Math.floor(l.length/3)-this.titleOffset,this.vbo.update(l)},u.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{"./shaders":296,"binary-search-bounds":96,"gl-buffer":258,"gl-shader":312,"text-cache":547}],298:[function(e,t,n){"use strict";t.exports=p;var r=e("gl-select-static"),a=e("./lib/grid"),o=e("./lib/text"),i=e("./lib/line"),l=e("./lib/box");function s(e,t){this.gl=e,this.pickBuffer=t,this.screenBox=[0,0,e.drawingBufferWidth,e.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var u=s.prototype;function c(e){for(var t=e.slice(),n=0;n<t.length;++n)t[n]=t[n].slice();return t}function f(e,t){return e.x-t.x}function p(e){var t=e.gl,n=r(t,[t.drawingBufferWidth,t.drawingBufferHeight]),u=new s(t,n);return u.grid=a(u),u.text=o(u),u.line=i(u),u.box=l(u),u.update(e),u}u.setDirty=function(){this.dirty=this.pickDirty=!0},u.setOverlayDirty=function(){this.dirty=!0},u.nextDepthValue=function(){return this._depthCounter++/65536},u.draw=function(){return function(){var e=this.gl,t=this.screenBox,n=this.viewBox,r=this.dataBox,a=this.pixelRatio,o=this.grid,i=this.line,l=this.text,s=this.objects;if(this._depthCounter=0,this.pickDirty&&(this._pickTimeout&&clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,e.bindFramebuffer(e.FRAMEBUFFER,null),e.enable(e.SCISSOR_TEST),e.disable(e.DEPTH_TEST),e.depthFunc(e.LESS),e.depthMask(!1),e.enable(e.BLEND),e.blendEquation(e.FUNC_ADD,e.FUNC_ADD),e.blendFunc(e.ONE,e.ONE_MINUS_SRC_ALPHA),this.borderColor){e.scissor(t[0],t[1],t[2]-t[0],t[3]-t[1]);var u=this.borderColor;e.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT)}e.scissor(n[0],n[1],n[2]-n[0],n[3]-n[1]),e.viewport(n[0],n[1],n[2]-n[0],n[3]-n[1]);var c=this.backgroundColor;e.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),e.clear(e.COLOR_BUFFER_BIT),o.draw();var f=this.zeroLineEnable,p=this.zeroLineColor,d=this.zeroLineWidth;if(f[0]||f[1]){i.bind();for(var h=0;h<2;++h)if(f[h]&&r[h]<=0&&r[h+2]>=0){var v=t[h]-r[h]*(t[h+2]-t[h])/(r[h+2]-r[h]);0===h?i.drawLine(v,t[1],v,t[3],d[h],p[h]):i.drawLine(t[0],v,t[2],v,d[h],p[h])}}for(h=0;h<s.length;++h)s[h].draw();e.viewport(t[0],t[1],t[2]-t[0],t[3]-t[1]),e.scissor(t[0],t[1],t[2]-t[0],t[3]-t[1]),this.grid.drawTickMarks(),i.bind();var m=this.borderLineEnable,y=this.borderLineWidth,g=this.borderLineColor;m[1]&&i.drawLine(n[0],n[1]-.5*y[1]*a,n[0],n[3]+.5*y[3]*a,y[1],g[1]),m[0]&&i.drawLine(n[0]-.5*y[0]*a,n[1],n[2]+.5*y[2]*a,n[1],y[0],g[0]),m[3]&&i.drawLine(n[2],n[1]-.5*y[1]*a,n[2],n[3]+.5*y[3]*a,y[3],g[3]),m[2]&&i.drawLine(n[0]-.5*y[0]*a,n[3],n[2]+.5*y[2]*a,n[3],y[2],g[2]),l.bind();for(h=0;h<2;++h)l.drawTicks(h);this.titleEnable&&l.drawTitle();var b=this.overlays;for(h=0;h<b.length;++h)b[h].draw();e.disable(e.SCISSOR_TEST),e.disable(e.BLEND),e.depthMask(!0)}}}(),u.drawPick=function(){return function(){if(!this.static){var e=this.pickBuffer;this.gl;this._pickTimeout=null,e.begin();for(var t=1,n=this.objects,r=0;r<n.length;++r)t=n[r].drawPick(t);e.end()}}}(),u.pick=function(){return function(e,t){if(!this.static){var n=this.pixelRatio,r=this.pickPixelRatio,a=this.viewBox,o=0|Math.round((e-a[0]/n)*r),i=0|Math.round((t-a[1]/n)*r),l=this.pickBuffer.query(o,i,this.pickRadius);if(!l)return null;for(var s=l.id+(l.value[0]<<8)+(l.value[1]<<16)+(l.value[2]<<24),u=this.objects,c=0;c<u.length;++c){var f=u[c].pick(o,i,s);if(f)return f}return null}}}(),u.setScreenBox=function(e){var t=this.screenBox,n=this.pixelRatio;t[0]=0|Math.round(e[0]*n),t[1]=0|Math.round(e[1]*n),t[2]=0|Math.round(e[2]*n),t[3]=0|Math.round(e[3]*n),this.setDirty()},u.setDataBox=function(e){var t=this.dataBox,n=t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3];n&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],this.setDirty())},u.setViewBox=function(e){var t=this.pixelRatio,n=this.viewBox;n[0]=0|Math.round(e[0]*t),n[1]=0|Math.round(e[1]*t),n[2]=0|Math.round(e[2]*t),n[3]=0|Math.round(e[3]*t);var r=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((e[2]-e[0])*r),0|Math.round((e[3]-e[1])*r)],this.setDirty()},u.update=function(e){e=e||{};var t=this.gl;this.pixelRatio=e.pixelRatio||1;var n=this.pixelRatio;this.pickPixelRatio=Math.max(n,1),this.setScreenBox(e.screenBox||[0,0,t.drawingBufferWidth/n,t.drawingBufferHeight/n]);this.screenBox;this.setViewBox(e.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/n,.125*(this.screenBox[3]-this.screenBox[1])/n,.875*(this.screenBox[2]-this.screenBox[0])/n,.875*(this.screenBox[3]-this.screenBox[1])/n]);var r=this.viewBox,a=(r[2]-r[0])/(r[3]-r[1]);this.setDataBox(e.dataBox||[-10,-10/a,10,10/a]),this.borderColor=!1!==e.borderColor&&(e.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(e.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(e.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(e.gridLineWidth||[1,1]).slice(),this.gridLineColor=c(e.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(e.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(e.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=c(e.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(e.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(e.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=c(e.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(e.titleCenter||[.5*(r[0]+r[2])/n,(r[3]+120)/n]).slice(),this.titleEnable=!("titleEnable"in e)||!!e.titleEnable,this.titleAngle=e.titleAngle||0,this.titleColor=(e.titleColor||[0,0,0,1]).slice(),this.labelPad=(e.labelPad||[15,15,15,15]).slice(),this.labelAngle=(e.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(e.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=c(e.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(e.tickPad||[15,15,15,15]).slice(),this.tickAngle=(e.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(e.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=c(e.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(e.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(e.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=c(e.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var o=e.ticks||[[],[]],i=this._tickBounds;i[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var l=0;l<2;++l){var s=o[l].slice(0);0!==s.length&&(s.sort(f),i[l]=Math.min(i[l],s[0].x),i[l+2]=Math.max(i[l+2],s[s.length-1].x))}this.grid.update({bounds:i,ticks:o}),this.text.update({bounds:i,ticks:o,labels:e.labels||["x","y"],labelSize:e.labelSize||[12,12],labelFont:e.labelFont||["sans-serif","sans-serif"],title:e.title||"",titleSize:e.titleSize||18,titleFont:e.titleFont||"sans-serif"}),this.static=!!e.static,this.setDirty()},u.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var e=this.objects.length-1;e>=0;--e)this.objects[e].dispose();this.objects.length=0;for(e=this.overlays.length-1;e>=0;--e)this.overlays[e].dispose();this.overlays.length=0,this.gl=null},u.addObject=function(e){this.objects.indexOf(e)<0&&(this.objects.push(e),this.setDirty())},u.removeObject=function(e){for(var t=this.objects,n=0;n<t.length;++n)if(t[n]===e){t.splice(n,1),this.setDirty();break}},u.addOverlay=function(e){this.overlays.indexOf(e)<0&&(this.overlays.push(e),this.setOverlayDirty())},u.removeOverlay=function(e){for(var t=this.overlays,n=0;n<t.length;++n)if(t[n]===e){t.splice(n,1),this.setOverlayDirty();break}}},{"./lib/box":293,"./lib/grid":294,"./lib/line":295,"./lib/text":297,"gl-select-static":311}],299:[function(e,t,n){"use strict";t.exports=u;var r=e("right-now"),a=e("3d-view"),o=e("mouse-change"),i=e("mouse-wheel"),l=e("mouse-event-offset"),s=e("has-passive-events");function u(e,t){e=e||document.body,t=t||{};var n=[.01,1/0];"distanceLimits"in t&&(n[0]=t.distanceLimits[0],n[1]=t.distanceLimits[1]),"zoomMin"in t&&(n[0]=t.zoomMin),"zoomMax"in t&&(n[1]=t.zoomMax);var u=a({center:t.center||[0,0,0],up:t.up||[0,1,0],eye:t.eye||[0,0,10],mode:t.mode||"orbit",distanceLimits:n}),c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,p=e.clientWidth,d=e.clientHeight,h={keyBindingMode:"rotate",enableWheel:!0,view:u,element:e,delay:t.delay||16,rotateSpeed:t.rotateSpeed||1,zoomSpeed:t.zoomSpeed||1,translateSpeed:t.translateSpeed||1,flipX:!!t.flipX,flipY:!!t.flipY,modes:u.modes,_ortho:t._ortho||t.projection&&"orthographic"===t.projection.type||!1,tick:function(){var t=r(),n=this.delay,a=t-2*n;u.idle(t-n),u.recalcMatrix(a),u.flush(t-(100+2*n));for(var o=!0,i=u.computedMatrix,l=0;l<16;++l)o=o&&c[l]===i[l],c[l]=i[l];var s=e.clientWidth===p&&e.clientHeight===d;return p=e.clientWidth,d=e.clientHeight,o?!s:(f=Math.exp(u.computedRadius[0]),!0)},lookAt:function(e,t,n){u.lookAt(u.lastT(),e,t,n)},rotate:function(e,t,n){u.rotate(u.lastT(),e,t,n)},pan:function(e,t,n){u.pan(u.lastT(),e,t,n)},translate:function(e,t,n){u.translate(u.lastT(),e,t,n)}};return Object.defineProperties(h,{matrix:{get:function(){return u.computedMatrix},set:function(e){return u.setMatrix(u.lastT(),e),u.computedMatrix},enumerable:!0},mode:{get:function(){return u.getMode()},set:function(e){var t=u.computedUp.slice(),n=u.computedEye.slice(),a=u.computedCenter.slice();if(u.setMode(e),"turntable"===e){var o=r();u._active.lookAt(o,n,a,t),u._active.lookAt(o+500,n,a,[0,0,1]),u._active.flush(o)}return u.getMode()},enumerable:!0},center:{get:function(){return u.computedCenter},set:function(e){return u.lookAt(u.lastT(),null,e),u.computedCenter},enumerable:!0},eye:{get:function(){return u.computedEye},set:function(e){return u.lookAt(u.lastT(),e),u.computedEye},enumerable:!0},up:{get:function(){return u.computedUp},set:function(e){return u.lookAt(u.lastT(),null,null,e),u.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(e){return u.setDistance(u.lastT(),e),e},enumerable:!0},distanceLimits:{get:function(){return u.getDistanceLimits(n)},set:function(e){return u.setDistanceLimits(e),e},enumerable:!0}}),e.addEventListener("contextmenu",(function(e){return e.preventDefault(),!1})),h._lastX=-1,h._lastY=-1,h._lastMods={shift:!1,control:!1,alt:!1,meta:!1},h.enableMouseListeners=function(){function t(t,n,a,o){var i=h.keyBindingMode;if(!1!==i){var l="rotate"===i,s="pan"===i,c="zoom"===i,p=!!o.control,d=!!o.alt,v=!!o.shift,m=!!(1&t),y=!!(2&t),g=!!(4&t),b=1/e.clientHeight,x=b*(n-h._lastX),_=b*(a-h._lastY),w=h.flipX?1:-1,k=h.flipY?1:-1,T=Math.PI*h.rotateSpeed,E=r();if(-1!==h._lastX&&-1!==h._lastY&&((l&&m&&!p&&!d&&!v||m&&!p&&!d&&v)&&u.rotate(E,w*T*x,-k*T*_,0),(s&&m&&!p&&!d&&!v||y||m&&p&&!d&&!v)&&u.pan(E,-h.translateSpeed*x*f,h.translateSpeed*_*f,0),c&&m&&!p&&!d&&!v||g||m&&!p&&d&&!v)){var O=-h.zoomSpeed*_/window.innerHeight*(E-u.lastT())*100;u.pan(E,0,0,f*(Math.exp(O)-1))}return h._lastX=n,h._lastY=a,h._lastMods=o,!0}}h.mouseListener=o(e,t),e.addEventListener("touchstart",(function(n){var r=l(n.changedTouches[0],e);t(0,r[0],r[1],h._lastMods),t(1,r[0],r[1],h._lastMods),n.preventDefault()}),!!s&&{passive:!1}),e.addEventListener("touchmove",(function(n){var r=l(n.changedTouches[0],e);t(1,r[0],r[1],h._lastMods),n.preventDefault()}),!!s&&{passive:!1}),e.addEventListener("touchend",(function(e){t(0,h._lastX,h._lastY,h._lastMods),e.preventDefault()}),!!s&&{passive:!1}),h.wheelListener=i(e,(function(e,t){if(!1!==h.keyBindingMode&&h.enableWheel){var n=h.flipX?1:-1,a=h.flipY?1:-1,o=r();if(Math.abs(e)>Math.abs(t))u.rotate(o,0,0,-e*n*Math.PI*h.rotateSpeed/window.innerWidth);else if(!h._ortho){var i=-h.zoomSpeed*a*t/window.innerHeight*(o-u.lastT())/20;u.pan(o,0,0,f*(Math.exp(i)-1))}}}),!0)},h.enableMouseListeners(),h}},{"3d-view":54,"has-passive-events":415,"mouse-change":457,"mouse-event-offset":458,"mouse-wheel":460,"right-now":514}],300:[function(e,t,n){var r=e("glslify"),a=e("gl-shader"),o=r(["precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n uv = position;\n gl_Position = vec4(position, 0, 1);\n}"]),i=r(["precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n gl_FragColor = min(vec4(1,1,1,1), accum);\n}"]);t.exports=function(e){return a(e,o,i,null,[{name:"position",type:"vec2"}])}},{"gl-shader":312,glslify:413}],301:[function(e,t,n){"use strict";var r=e("./camera.js"),a=e("gl-axes3d"),o=e("gl-axes3d/properties"),i=e("gl-spikes3d"),l=e("gl-select-static"),s=e("gl-fbo"),u=e("a-big-triangle"),c=e("mouse-change"),f=e("gl-mat4/perspective"),p=e("gl-mat4/ortho"),d=e("./lib/shader"),h=e("is-mobile")({tablet:!0,featureDetect:!0});function v(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function m(e,t){var n=null;try{n=e.getContext("webgl",t),n||(n=e.getContext("experimental-webgl",t))}catch(r){return null}return n}function y(e){var t=Math.round(Math.log(Math.abs(e))/Math.log(10));if(t<0){var n=Math.round(Math.pow(10,-t));return Math.ceil(e*n)/n}if(t>0){n=Math.round(Math.pow(10,t));return Math.ceil(e/n)*n}return Math.ceil(e)}function g(e){return"boolean"!==typeof e||e}function b(e){e=e||{},e.camera=e.camera||{};var t=e.canvas;if(!t)if(t=document.createElement("canvas"),e.container){var n=e.container;n.appendChild(t)}else document.body.appendChild(t);var f=e.gl;if(f||(e.glOptions&&(h=!!e.glOptions.preserveDrawingBuffer),f=m(t,e.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:h})),!f)throw new Error("webgl not supported");var p=e.bounds||[[-10,-10,-10],[10,10,10]],b=new v,_=s(f,f.drawingBufferWidth,f.drawingBufferHeight,{preferFloat:!h}),w=d(f),k=e.cameraObject&&!0===e.cameraObject._ortho||e.camera.projection&&"orthographic"===e.camera.projection.type||!1,T={eye:e.camera.eye||[2,0,0],center:e.camera.center||[0,0,0],up:e.camera.up||[0,1,0],zoomMin:e.camera.zoomMax||.1,zoomMax:e.camera.zoomMin||100,mode:e.camera.mode||"turntable",_ortho:k},E=e.axes||{},O=a(f,E);O.enable=!E.disable;var M=e.spikes||{},S=i(f,M),C=[],A=[],P=[],L=[],D=!0,j=!0,I=new Array(16),R=new Array(16),z={view:null,projection:I,model:R,_ortho:!1},N=(j=!0,[f.drawingBufferWidth,f.drawingBufferHeight]),F=e.cameraObject||r(t,T),B={gl:f,contextLost:!1,pixelRatio:e.pixelRatio||1,canvas:t,selection:b,camera:F,axes:O,axesPixels:null,spikes:S,bounds:p,objects:C,shape:N,aspect:e.aspectRatio||[1,1,1],pickRadius:e.pickRadius||10,zNear:e.zNear||.01,zFar:e.zFar||1e3,fovy:e.fovy||Math.PI/4,clearColor:e.clearColor||[0,0,0,0],autoResize:g(e.autoResize),autoBounds:g(e.autoBounds),autoScale:!!e.autoScale,autoCenter:g(e.autoCenter),clipToBounds:g(e.clipToBounds),snapToData:!!e.snapToData,onselect:e.onselect||null,onrender:e.onrender||null,onclick:e.onclick||null,cameraParams:z,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(e){this.aspect[0]=e.x,this.aspect[1]=e.y,this.aspect[2]=e.z,j=!0},setBounds:function(e,t){this.bounds[0][e]=t.min,this.bounds[1][e]=t.max},setClearColor:function(e){this.clearColor=e},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},V=[f.drawingBufferWidth/B.pixelRatio|0,f.drawingBufferHeight/B.pixelRatio|0];function H(){if(!B._stopped&&B.autoResize){var e=t.parentNode,n=1,r=1;e&&e!==document.body?(n=e.clientWidth,r=e.clientHeight):(n=window.innerWidth,r=window.innerHeight);var a=0|Math.ceil(n*B.pixelRatio),o=0|Math.ceil(r*B.pixelRatio);if(a!==t.width||o!==t.height){t.width=a,t.height=o;var i=t.style;i.position=i.position||"absolute",i.left="0px",i.top="0px",i.width=n+"px",i.height=r+"px",D=!0}}}function U(){for(var e=C.length,t=L.length,n=0;n<t;++n)P[n]=0;e:for(n=0;n<e;++n){var r=C[n],a=r.pickSlots;if(a){for(var o=0;o<t;++o)if(P[o]+a<255){A[n]=o,r.setPickBase(P[o]+1),P[o]+=a;continue e}var i=l(f,N);A[n]=t,L.push(i),P.push(a),r.setPickBase(1),t+=1}else A[n]=-1}while(t>0&&0===P[t-1])P.pop(),L.pop().dispose()}function W(){if(B.contextLost)return!0;f.isContextLost()&&(B.contextLost=!0,B.mouseListener.enabled=!1,B.selection.object=null,B.oncontextloss&&B.oncontextloss())}function q(){if(!W()){f.colorMask(!0,!0,!0,!0),f.depthMask(!0),f.disable(f.BLEND),f.enable(f.DEPTH_TEST),f.depthFunc(f.LEQUAL);for(var e=C.length,t=L.length,n=0;n<t;++n){var r=L[n];r.shape=V,r.begin();for(var a=0;a<e;++a)if(A[a]===n){var o=C[a];o.drawPick&&(o.pixelRatio=1,o.drawPick(z))}r.end()}}}B.autoResize&&H(),window.addEventListener("resize",H),B.update=function(e){B._stopped||(e=e||{},D=!0,j=!0)},B.add=function(e){B._stopped||(e.axes=O,C.push(e),A.push(-1),D=!0,j=!0,U())},B.remove=function(e){if(!B._stopped){var t=C.indexOf(e);t<0||(C.splice(t,1),A.pop(),D=!0,j=!0,U())}},B.dispose=function(){if(!B._stopped&&(B._stopped=!0,window.removeEventListener("resize",H),t.removeEventListener("webglcontextlost",W),B.mouseListener.enabled=!1,!B.contextLost)){O.dispose(),S.dispose();for(var e=0;e<C.length;++e)C[e].dispose();_.dispose();for(e=0;e<L.length;++e)L[e].dispose();w.dispose(),f=null,O=null,S=null,C=[]}},B._mouseRotating=!1,B._prevButtons=0,B.enableMouseListeners=function(){B.mouseListener=c(t,(function(e,t,n){if(!B._stopped){var r=L.length,a=C.length,o=b.object;b.distance=1/0,b.mouse[0]=t,b.mouse[1]=n,b.object=null,b.screen=null,b.dataCoordinate=b.dataPosition=null;var i=!1;if(e&&B._prevButtons)B._mouseRotating=!0;else{B._mouseRotating&&(j=!0),B._mouseRotating=!1;for(var l=0;l<r;++l){var s=L[l].query(t,V[1]-n-1,B.pickRadius);if(s){if(s.distance>b.distance)continue;for(var u=0;u<a;++u){var c=C[u];if(A[u]===l){var f=c.pick(s);f&&(b.buttons=e,b.screen=s.coord,b.distance=s.distance,b.object=c,b.index=f.distance,b.dataPosition=f.position,b.dataCoordinate=f.dataCoordinate,b.data=f,i=!0)}}}}}o&&o!==b.object&&(o.highlight&&o.highlight(null),D=!0),b.object&&(b.object.highlight&&b.object.highlight(b.data),D=!0),i=i||b.object!==o,i&&B.onselect&&B.onselect(b),1&e&&!(1&B._prevButtons)&&B.onclick&&B.onclick(b),B._prevButtons=e}}))},t.addEventListener("webglcontextlost",W);var $=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],G=[$[0].slice(),$[1].slice()];function Y(){if(!W()){H();var e=B.camera.tick();z.view=B.camera.matrix,D=D||e,j=j||e,O.pixelRatio=B.pixelRatio,S.pixelRatio=B.pixelRatio;var t=C.length,n=$[0],r=$[1];n[0]=n[1]=n[2]=1/0,r[0]=r[1]=r[2]=-1/0;for(var a=0;a<t;++a){var i=C[a];i.pixelRatio=B.pixelRatio,i.axes=B.axes,D=D||!!i.dirty,j=j||!!i.dirty;var l=i.bounds;if(l)for(var s=l[0],c=l[1],p=0;p<3;++p)n[p]=Math.min(n[p],s[p]),r[p]=Math.max(r[p],c[p])}var d=B.bounds;if(B.autoBounds)for(p=0;p<3;++p){if(r[p]<n[p])n[p]=-1,r[p]=1;else{n[p]===r[p]&&(n[p]-=1,r[p]+=1);var h=.05*(r[p]-n[p]);n[p]=n[p]-h,r[p]=r[p]+h}d[0][p]=n[p],d[1][p]=r[p]}var v=!1;for(p=0;p<3;++p)v=v||G[0][p]!==d[0][p]||G[1][p]!==d[1][p],G[0][p]=d[0][p],G[1][p]=d[1][p];if(j=j||v,D=D||v,D){if(v){var m=[0,0,0];for(a=0;a<3;++a)m[a]=y((d[1][a]-d[0][a])/10);O.autoTicks?O.update({bounds:d,tickSpacing:m}):O.update({bounds:d})}var g=f.drawingBufferWidth,T=f.drawingBufferHeight;N[0]=g,N[1]=T,V[0]=0|Math.max(g/B.pixelRatio,1),V[1]=0|Math.max(T/B.pixelRatio,1),x(B,k);for(a=0;a<t;++a){i=C[a];i.axesBounds=d,B.clipToBounds&&(i.clipBounds=d)}b.object&&(B.snapToData?S.position=b.dataCoordinate:S.position=b.dataPosition,S.bounds=d),j&&(j=!1,q()),B.axesPixels=o(B.axes,z,g,T),B.onrender&&B.onrender(),f.bindFramebuffer(f.FRAMEBUFFER,null),f.viewport(0,0,g,T),B.clearRGBA(),f.depthMask(!0),f.colorMask(!0,!0,!0,!0),f.enable(f.DEPTH_TEST),f.depthFunc(f.LEQUAL),f.disable(f.BLEND),f.disable(f.CULL_FACE);var E=!1;O.enable&&(E=E||O.isTransparent(),O.draw(z)),S.axes=O,b.object&&S.draw(z),f.disable(f.CULL_FACE);for(a=0;a<t;++a){i=C[a];i.axes=O,i.pixelRatio=B.pixelRatio,i.isOpaque&&i.isOpaque()&&i.draw(z),i.isTransparent&&i.isTransparent()&&(E=!0)}if(E){_.shape=N,_.bind(),f.clear(f.DEPTH_BUFFER_BIT),f.colorMask(!1,!1,!1,!1),f.depthMask(!0),f.depthFunc(f.LESS),O.enable&&O.isTransparent()&&O.drawTransparent(z);for(a=0;a<t;++a){i=C[a];i.isOpaque&&i.isOpaque()&&i.draw(z)}f.enable(f.BLEND),f.blendEquation(f.FUNC_ADD),f.blendFunc(f.ONE,f.ONE_MINUS_SRC_ALPHA),f.colorMask(!0,!0,!0,!0),f.depthMask(!1),f.clearColor(0,0,0,0),f.clear(f.COLOR_BUFFER_BIT),O.isTransparent()&&O.drawTransparent(z);for(a=0;a<t;++a){i=C[a];i.isTransparent&&i.isTransparent()&&i.drawTransparent(z)}f.bindFramebuffer(f.FRAMEBUFFER,null),f.blendFunc(f.ONE,f.ONE_MINUS_SRC_ALPHA),f.disable(f.DEPTH_TEST),w.bind(),_.color[0].bind(0),w.uniforms.accumBuffer=0,u(f),f.disable(f.BLEND)}D=!1;for(a=0;a<t;++a)C[a].dirty=!1}}}function K(){B._stopped||B.contextLost||(Y(),requestAnimationFrame(K))}return B.enableMouseListeners(),K(),B.redraw=function(){B._stopped||(D=!0,Y())},B}function x(e,t){var n=e.bounds,r=e.cameraParams,a=r.projection,o=r.model,i=e.gl.drawingBufferWidth,l=e.gl.drawingBufferHeight,s=e.zNear,u=e.zFar,c=e.fovy,d=i/l;t?(p(a,-d,d,-1,1,s,u),r._ortho=!0):(f(a,c,d,s,u),r._ortho=!1);for(var h=0;h<16;++h)o[h]=0;o[15]=1;var v=0;for(h=0;h<3;++h)v=Math.max(v,n[1][h]-n[0][h]);for(h=0;h<3;++h)e.autoScale?o[5*h]=e.aspect[h]/(n[1][h]-n[0][h]):o[5*h]=1/v,e.autoCenter&&(o[12+h]=.5*-o[5*h]*(n[0][h]+n[1][h]))}t.exports={createScene:b,createCamera:r}},{"./camera.js":299,"./lib/shader":300,"a-big-triangle":64,"gl-axes3d":250,"gl-axes3d/properties":257,"gl-fbo":266,"gl-mat4/ortho":281,"gl-mat4/perspective":282,"gl-select-static":311,"gl-spikes3d":321,"is-mobile":441,"mouse-change":457}],302:[function(e,t,n){var r=e("glslify");n.pointVertex=r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n highp float a = 12.9898;\n highp float b = 78.233;\n highp float c = 43758.5453;\n highp float d = dot(co.xy, vec2(a, b));\n highp float e = mod(d, 3.14);\n return fract(sin(e) * c);\n}\n\nvoid main() {\n vec3 hgPosition = matrix * vec3(position, 1);\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\n // if we don't jitter the point size a bit, overall point cloud\n // saturation 'jumps' on zooming, which is disturbing and confusing\n gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n if(pointCloud != 0.0) { // pointCloud is truthy\n // get the same square surface as circle would be\n gl_PointSize *= 0.886;\n }\n}"]),n.pointFragment=r(["precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n float radius;\n vec4 baseColor;\n if(pointCloud != 0.0) { // pointCloud is truthy\n if(centerFraction == 1.0) {\n gl_FragColor = color;\n } else {\n gl_FragColor = mix(borderColor, color, centerFraction);\n }\n } else {\n radius = length(2.0 * gl_PointCoord.xy - 1.0);\n if(radius > 1.0) {\n discard;\n }\n baseColor = mix(borderColor, color, step(radius, centerFraction));\n gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n }\n}\n"]),n.pickVertex=r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n vec3 hgPosition = matrix * vec3(position, 1);\n gl_Position = vec4(hgPosition.xy, 0, hgPosition.z);\n gl_PointSize = pointSize;\n\n vec4 id = pickId + pickOffset;\n id.y += floor(id.x / 256.0);\n id.x -= floor(id.x / 256.0) * 256.0;\n\n id.z += floor(id.y / 256.0);\n id.y -= floor(id.y / 256.0) * 256.0;\n\n id.w += floor(id.z / 256.0);\n id.z -= floor(id.z / 256.0) * 256.0;\n\n fragId = id;\n}\n"]),n.pickFragment=r(["precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n if(radius > 1.0) {\n discard;\n }\n gl_FragColor = fragId / 255.0;\n}\n"])},{glslify:413}],303:[function(e,t,n){"use strict";var r=e("gl-shader"),a=e("gl-buffer"),o=e("typedarray-pool"),i=e("./lib/shader");function l(e,t,n,r,a){this.plot=e,this.offsetBuffer=t,this.pickBuffer=n,this.shader=r,this.pickShader=a,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}t.exports=c;var s=l.prototype;function u(e,t){var n,r=0,a=e.length>>>1;for(n=0;n<a;n++){var o=e[2*n],i=e[2*n+1];o>=t[0]&&o<=t[2]&&i>=t[1]&&i<=t[3]&&r++}return r}function c(e,t){var n=e.gl,o=a(n),s=a(n),u=r(n,i.pointVertex,i.pointFragment),c=r(n,i.pickVertex,i.pickFragment),f=new l(e,o,s,u,c);return f.update(t),e.addObject(f),f}s.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},s.update=function(e){var t;function n(t,n){return t in e?e[t]:n}e=e||{},this.sizeMin=n("sizeMin",.5),this.sizeMax=n("sizeMax",20),this.color=n("color",[1,0,0,1]).slice(),this.areaRatio=n("areaRatio",1),this.borderColor=n("borderColor",[0,0,0,1]).slice(),this.blend=n("blend",!1);var r=e.positions.length>>>1,a=e.positions instanceof Float32Array,i=e.idToIndex instanceof Int32Array&&e.idToIndex.length>=r,l=e.positions,s=a?l:o.mallocFloat32(l.length),u=i?e.idToIndex:o.mallocInt32(r);if(a||s.set(l),!i)for(s.set(l),t=0;t<r;t++)u[t]=t;this.points=l,this.offsetBuffer.update(s),this.pickBuffer.update(u),a||o.free(s),i||o.free(u),this.pointCount=r,this.pickOffset=0},s.unifiedDraw=function(){var e=[1,0,0,0,1,0,0,0,1],t=[0,0,0,0];return function(n){var r=void 0!==n,a=r?this.pickShader:this.shader,o=this.plot.gl,i=this.plot.dataBox;if(0===this.pointCount)return n;var l=i[2]-i[0],s=i[3]-i[1],c=u(this.points,i),f=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(c,.33333)));e[0]=2/l,e[4]=2/s,e[6]=-2*i[0]/l-1,e[7]=-2*i[1]/s-1,this.offsetBuffer.bind(),a.bind(),a.attributes.position.pointer(),a.uniforms.matrix=e,a.uniforms.color=this.color,a.uniforms.borderColor=this.borderColor,a.uniforms.pointCloud=f<5,a.uniforms.pointSize=f,a.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),r&&(t[0]=255&n,t[1]=n>>8&255,t[2]=n>>16&255,t[3]=n>>24&255,this.pickBuffer.bind(),a.attributes.pickId.pointer(o.UNSIGNED_BYTE),a.uniforms.pickOffset=t,this.pickOffset=n);var p=o.getParameter(o.BLEND),d=o.getParameter(o.DITHER);return p&&!this.blend&&o.disable(o.BLEND),d&&o.disable(o.DITHER),o.drawArrays(o.POINTS,0,this.pointCount),p&&!this.blend&&o.enable(o.BLEND),d&&o.enable(o.DITHER),n+this.pointCount}}(),s.draw=s.unifiedDraw,s.drawPick=s.unifiedDraw,s.pick=function(e,t,n){var r=this.pickOffset,a=this.pointCount;if(n<r||n>=r+a)return null;var o=n-r,i=this.points;return{object:this,pointId:o,dataCoord:[i[2*o],i[2*o+1]]}}},{"./lib/shader":302,"gl-buffer":258,"gl-shader":312,"typedarray-pool":567}],304:[function(e,t,n){function r(e,t,n,r){var a,o,i,l,s,u=t[0],c=t[1],f=t[2],p=t[3],d=n[0],h=n[1],v=n[2],m=n[3];return o=u*d+c*h+f*v+p*m,o<0&&(o=-o,d=-d,h=-h,v=-v,m=-m),1-o>1e-6?(a=Math.acos(o),i=Math.sin(a),l=Math.sin((1-r)*a)/i,s=Math.sin(r*a)/i):(l=1-r,s=r),e[0]=l*u+s*d,e[1]=l*c+s*h,e[2]=l*f+s*v,e[3]=l*p+s*m,e}t.exports=r},{}],305:[function(e,t,n){"use strict";t.exports=function(e){return e||0===e?e.toString():""}},{}],306:[function(e,t,n){"use strict";var r=e("vectorize-text");t.exports=o;var a={};function o(e,t,n){var o=a[t];if(o||(o=a[t]={}),e in o)return o[e];var i={textAlign:"center",textBaseline:"middle",lineHeight:1,font:t,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},l=r(e,i);i.triangles=!1;var s,u,c=r(e,i);if(n&&1!==n){for(s=0;s<l.positions.length;++s)for(u=0;u<l.positions[s].length;++u)l.positions[s][u]/=n;for(s=0;s<c.positions.length;++s)for(u=0;u<c.positions[s].length;++u)c.positions[s][u]/=n}var f=[[1/0,1/0],[-1/0,-1/0]],p=c.positions.length;for(s=0;s<p;++s){var d=c.positions[s];for(u=0;u<2;++u)f[0][u]=Math.min(f[0][u],d[u]),f[1][u]=Math.max(f[1][u],d[u])}return o[e]=[l,c,f]}},{"vectorize-text":572}],307:[function(e,t,n){var r=e("gl-shader"),a=e("glslify"),o=a(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = 1.0;\n if(distance(highlightId, id) < 0.0001) {\n scale = highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1);\n vec4 viewPosition = view * worldPosition;\n viewPosition = viewPosition / viewPosition.w;\n vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]),i=a(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float scale = pixelRatio;\n if(distance(highlightId.bgr, id.bgr) < 0.001) {\n scale *= highlightScale;\n }\n\n vec4 worldPosition = model * vec4(position, 1.0);\n vec4 viewPosition = view * worldPosition;\n vec4 clipPosition = projection * viewPosition;\n clipPosition /= clipPosition.w;\n\n gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n interpColor = color;\n pickId = id;\n dataCoordinate = position;\n }\n}"]),l=a(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n gl_Position = vec4(0,0,0,0);\n } else {\n float lscale = pixelRatio * scale;\n if(distance(highlightId, id) < 0.0001) {\n lscale *= highlightScale;\n }\n\n vec4 clipCenter = projection * view * model * vec4(position, 1);\n vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\n\n gl_Position = clipPosition;\n interpColor = color;\n pickId = id;\n dataCoordinate = dataPosition;\n }\n}\n"]),s=a(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (\n outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n interpColor.a * opacity == 0.\n ) discard;\n gl_FragColor = interpColor * opacity;\n}\n"]),u=a(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n gl_FragColor = vec4(pickGroup, pickId.bgr);\n}"]),c=[{name:"position",type:"vec3"},{name:"color",type:"vec4"},{name:"glyph",type:"vec2"},{name:"id",type:"vec4"}],f={vertex:o,fragment:s,attributes:c},p={vertex:i,fragment:s,attributes:c},d={vertex:l,fragment:s,attributes:c},h={vertex:o,fragment:u,attributes:c},v={vertex:i,fragment:u,attributes:c},m={vertex:l,fragment:u,attributes:c};function y(e,t){var n=r(e,t),a=n.attributes;return a.position.location=0,a.color.location=1,a.glyph.location=2,a.id.location=3,n}n.createPerspective=function(e){return y(e,f)},n.createOrtho=function(e){return y(e,p)},n.createProject=function(e){return y(e,d)},n.createPickPerspective=function(e){return y(e,h)},n.createPickOrtho=function(e){return y(e,v)},n.createPickProject=function(e){return y(e,m)}},{"gl-shader":312,glslify:413}],308:[function(e,t,n){"use strict";var r=e("is-string-blank"),a=e("gl-buffer"),o=e("gl-vao"),i=e("typedarray-pool"),l=e("gl-mat4/multiply"),s=e("./lib/shaders"),u=e("./lib/glyphs"),c=e("./lib/get-simple-string"),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function p(e,t){var n=e[0],r=e[1],a=e[2],o=e[3];return e[0]=t[0]*n+t[4]*r+t[8]*a+t[12]*o,e[1]=t[1]*n+t[5]*r+t[9]*a+t[13]*o,e[2]=t[2]*n+t[6]*r+t[10]*a+t[14]*o,e[3]=t[3]*n+t[7]*r+t[11]*a+t[15]*o,e}function d(e,t,n,r){return p(r,r,n),p(r,r,t),p(r,r,e)}function h(e,t){this.index=e,this.dataCoordinate=this.position=t}function v(e){return!0===e||e>1?1:e}function m(e,t,n,r,a,o,i,l,s,u,c,f){this.gl=e,this.pixelRatio=1,this.shader=t,this.orthoShader=n,this.projectShader=r,this.pointBuffer=a,this.colorBuffer=o,this.glyphBuffer=i,this.idBuffer=l,this.vao=s,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=u,this.pickOrthoShader=c,this.pickProjectShader=f,this.points=[],this._selectResult=new h(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}t.exports=R;var y=m.prototype;y.pickSlots=1,y.setPickBase=function(e){this.pickId=e},y.isTransparent=function(){if(this.hasAlpha)return!0;for(var e=0;e<3;++e)if(this.axesProject[e]&&this.projectHasAlpha)return!0;return!1},y.isOpaque=function(){if(!this.hasAlpha)return!0;for(var e=0;e<3;++e)if(this.axesProject[e]&&!this.projectHasAlpha)return!0;return!1};var g=[0,0],b=[0,0,0],x=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],k=f.slice(),T=[0,0,0],E=[[0,0,0],[0,0,0]];function O(e){return e[0]=e[1]=e[2]=0,e}function M(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=1,e}function S(e,t,n,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[n]=r,e}function C(e){for(var t=E,n=0;n<2;++n)for(var r=0;r<3;++r)t[n][r]=Math.max(Math.min(e[n][r],1e8),-1e8);return t}function A(e,t,n,r){var a,o=t.axesProject,i=t.gl,s=e.uniforms,u=n.model||f,c=n.view||f,p=n.projection||f,h=t.axesBounds,v=C(t.clipBounds);a=t.axes&&t.axes.lastCubeProps?t.axes.lastCubeProps.axis:[1,1,1],g[0]=2/i.drawingBufferWidth,g[1]=2/i.drawingBufferHeight,e.bind(),s.view=c,s.projection=p,s.screenSize=g,s.highlightId=t.highlightId,s.highlightScale=t.highlightScale,s.clipBounds=v,s.pickGroup=t.pickId/255,s.pixelRatio=r;for(var m=0;m<3;++m)if(o[m]){s.scale=t.projectScale[m],s.opacity=t.projectOpacity[m];for(var y=k,E=0;E<16;++E)y[E]=0;for(E=0;E<4;++E)y[5*E]=1;y[5*m]=0,a[m]<0?y[12+m]=h[0][m]:y[12+m]=h[1][m],l(y,u,y),s.model=y;var A=(m+1)%3,P=(m+2)%3,L=O(b),D=O(x);L[A]=1,D[P]=1;var j=d(p,c,u,M(_,L)),I=d(p,c,u,M(w,D));if(Math.abs(j[1])>Math.abs(I[1])){var R=j;j=I,I=R,R=L,L=D,D=R;var z=A;A=P,P=z}j[0]<0&&(L[A]=-1),I[1]>0&&(D[P]=-1);var N=0,F=0;for(E=0;E<4;++E)N+=Math.pow(u[4*A+E],2),F+=Math.pow(u[4*P+E],2);L[A]/=Math.sqrt(N),D[P]/=Math.sqrt(F),s.axes[0]=L,s.axes[1]=D,s.fragClipBounds[0]=S(T,v[0],m,-1e8),s.fragClipBounds[1]=S(T,v[1],m,1e8),t.vao.bind(),t.vao.draw(i.TRIANGLES,t.vertexCount),t.lineWidth>0&&(i.lineWidth(t.lineWidth*r),t.vao.draw(i.LINES,t.lineVertexCount,t.vertexCount)),t.vao.unbind()}}var P=[-1e8,-1e8,-1e8],L=[1e8,1e8,1e8],D=[P,L];function j(e,t,n,r,a,o,i){var l=n.gl;if((o===n.projectHasAlpha||i)&&A(t,n,r,a),o===n.hasAlpha||i){e.bind();var s=e.uniforms;s.model=r.model||f,s.view=r.view||f,s.projection=r.projection||f,g[0]=2/l.drawingBufferWidth,g[1]=2/l.drawingBufferHeight,s.screenSize=g,s.highlightId=n.highlightId,s.highlightScale=n.highlightScale,s.fragClipBounds=D,s.clipBounds=n.axes.bounds,s.opacity=n.opacity,s.pickGroup=n.pickId/255,s.pixelRatio=a,n.vao.bind(),n.vao.draw(l.TRIANGLES,n.vertexCount),n.lineWidth>0&&(l.lineWidth(n.lineWidth*a),n.vao.draw(l.LINES,n.lineVertexCount,n.vertexCount)),n.vao.unbind()}}function I(e,t,n,a){var o;o=Array.isArray(e)?t<e.length?e[t]:void 0:e,o=c(o);var i=!0;r(o)&&(o="▼",i=!1);var l=u(o,n,a);return{mesh:l[0],lines:l[1],bounds:l[2],visible:i}}function R(e){var t=e.gl,n=s.createPerspective(t),r=s.createOrtho(t),i=s.createProject(t),l=s.createPickPerspective(t),u=s.createPickOrtho(t),c=s.createPickProject(t),f=a(t),p=a(t),d=a(t),h=a(t),v=o(t,[{buffer:f,size:3,type:t.FLOAT},{buffer:p,size:4,type:t.FLOAT},{buffer:d,size:2,type:t.FLOAT},{buffer:h,size:4,type:t.UNSIGNED_BYTE,normalized:!0}]),y=new m(t,n,r,i,f,p,d,h,v,l,u,c);return y.update(e),y}y.draw=function(e){var t=this.useOrtho?this.orthoShader:this.shader;j(t,this.projectShader,this,e,this.pixelRatio,!1,!1)},y.drawTransparent=function(e){var t=this.useOrtho?this.orthoShader:this.shader;j(t,this.projectShader,this,e,this.pixelRatio,!0,!1)},y.drawPick=function(e){var t=this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader;j(t,this.pickProjectShader,this,e,1,!0,!0)},y.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;var t=e.value[2]+(e.value[1]<<8)+(e.value[0]<<16);if(t>=this.pointCount||t<0)return null;var n=this.points[t],r=this._selectResult;r.index=t;for(var a=0;a<3;++a)r.position[a]=r.dataCoordinate[a]=n[a];return r},y.highlight=function(e){if(e){var t=e.index,n=255&t,r=t>>8&255,a=t>>16&255;this.highlightId=[n/255,r/255,a/255,0]}else this.highlightId=[1,1,1,1]},y.update=function(e){if(e=e||{},"perspective"in e&&(this.useOrtho=!e.perspective),"orthographic"in e&&(this.useOrtho=!!e.orthographic),"lineWidth"in e&&(this.lineWidth=e.lineWidth),"project"in e)if(Array.isArray(e.project))this.axesProject=e.project;else{var t=!!e.project;this.axesProject=[t,t,t]}if("projectScale"in e)if(Array.isArray(e.projectScale))this.projectScale=e.projectScale.slice();else{var n=+e.projectScale;this.projectScale=[n,n,n]}if(this.projectHasAlpha=!1,"projectOpacity"in e){if(Array.isArray(e.projectOpacity))this.projectOpacity=e.projectOpacity.slice();else{n=+e.projectOpacity;this.projectOpacity=[n,n,n]}for(var r=0;r<3;++r)this.projectOpacity[r]=v(this.projectOpacity[r]),this.projectOpacity[r]<1&&(this.projectHasAlpha=!0)}this.hasAlpha=!1,"opacity"in e&&(this.opacity=v(e.opacity),this.opacity<1&&(this.hasAlpha=!0)),this.dirty=!0;var a,o,l=e.position,s=e.font||"normal",u=e.alignment||[0,0];if(2===u.length)a=u[0],o=u[1];else{a=[],o=[];for(r=0;r<u.length;++r)a[r]=u[r][0],o[r]=u[r][1]}var c=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0],p=e.glyph,d=e.color,h=e.size,m=e.angle,y=e.lineColor,g=-1,b=0,x=0,_=0;if(l.length){_=l.length;e:for(r=0;r<_;++r){for(var w=l[r],k=0;k<3;++k)if(isNaN(w[k])||!isFinite(w[k]))continue e;var T=I(p,r,s,this.pixelRatio),E=T.mesh,O=T.lines,M=T.bounds;b+=3*E.cells.length,x+=2*O.edges.length}}var S=b+x,C=i.mallocFloat(3*S),A=i.mallocFloat(4*S),P=i.mallocFloat(2*S),L=i.mallocUint32(S);if(S>0){var D=0,j=b,R=[0,0,0,1],z=[0,0,0,1],N=Array.isArray(d)&&Array.isArray(d[0]),F=Array.isArray(y)&&Array.isArray(y[0]);e:for(r=0;r<_;++r){g+=1;for(w=l[r],k=0;k<3;++k){if(isNaN(w[k])||!isFinite(w[k]))continue e;f[k]=Math.max(f[k],w[k]),c[k]=Math.min(c[k],w[k])}T=I(p,r,s,this.pixelRatio),E=T.mesh,O=T.lines,M=T.bounds;var B=T.visible;if(B)if(Array.isArray(d)){if(V=N?r<d.length?d[r]:[0,0,0,0]:d,3===V.length){for(k=0;k<3;++k)R[k]=V[k];R[3]=1}else if(4===V.length){for(k=0;k<4;++k)R[k]=V[k];!this.hasAlpha&&V[3]<1&&(this.hasAlpha=!0)}}else R[0]=R[1]=R[2]=0,R[3]=1;else R=[1,1,1,0];if(B)if(Array.isArray(y)){var V;if(V=F?r<y.length?y[r]:[0,0,0,0]:y,3===V.length){for(k=0;k<3;++k)z[k]=V[k];z[k]=1}else if(4===V.length){for(k=0;k<4;++k)z[k]=V[k];!this.hasAlpha&&V[3]<1&&(this.hasAlpha=!0)}}else z[0]=z[1]=z[2]=0,z[3]=1;else z=[1,1,1,0];var H=.5;B?Array.isArray(h)?H=r<h.length?+h[r]:12:h?H=+h:this.useOrtho&&(H=12):H=0;var U=0;Array.isArray(m)?U=r<m.length?+m[r]:0:m&&(U=+m);var W=Math.cos(U),q=Math.sin(U);for(w=l[r],k=0;k<3;++k)f[k]=Math.max(f[k],w[k]),c[k]=Math.min(c[k],w[k]);var $=a,G=o;$=0;Array.isArray(a)?$=r<a.length?a[r]:0:a&&($=a);G=0;Array.isArray(o)?G=r<o.length?o[r]:0:o&&(G=o),$*=$>0?1-M[0][0]:$<0?1+M[1][0]:1,G*=G>0?1-M[0][1]:G<0?1+M[1][1]:1;var Y=[$,G],K=E.cells||[],X=E.positions||[];for(k=0;k<K.length;++k)for(var Z=K[k],J=0;J<3;++J){for(var Q=0;Q<3;++Q)C[3*D+Q]=w[Q];for(Q=0;Q<4;++Q)A[4*D+Q]=R[Q];L[D]=g;var ee=X[Z[J]];P[2*D]=H*(W*ee[0]-q*ee[1]+Y[0]),P[2*D+1]=H*(q*ee[0]+W*ee[1]+Y[1]),D+=1}for(K=O.edges,X=O.positions,k=0;k<K.length;++k)for(Z=K[k],J=0;J<2;++J){for(Q=0;Q<3;++Q)C[3*j+Q]=w[Q];for(Q=0;Q<4;++Q)A[4*j+Q]=z[Q];L[j]=g;ee=X[Z[J]];P[2*j]=H*(W*ee[0]-q*ee[1]+Y[0]),P[2*j+1]=H*(q*ee[0]+W*ee[1]+Y[1]),j+=1}}}this.bounds=[c,f],this.points=l,this.pointCount=l.length,this.vertexCount=b,this.lineVertexCount=x,this.pointBuffer.update(C),this.colorBuffer.update(A),this.glyphBuffer.update(P),this.idBuffer.update(L),i.free(C),i.free(A),i.free(P),i.free(L)},y.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{"./lib/get-simple-string":305,"./lib/glyphs":306,"./lib/shaders":307,"gl-buffer":258,"gl-mat4/multiply":280,"gl-vao":332,"is-string-blank":444,"typedarray-pool":567}],309:[function(e,t,n){"use strict";var r=e("glslify");n.boxVertex=r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 vertex;\n\nuniform vec2 cornerA, cornerB;\n\nvoid main() {\n gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\n}\n"]),n.boxFragment=r(["precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color;\n\nvoid main() {\n gl_FragColor = color;\n}\n"])},{glslify:413}],310:[function(e,t,n){"use strict";var r=e("gl-shader"),a=e("gl-buffer"),o=e("./lib/shaders");function i(e,t,n){this.plot=e,this.boxBuffer=t,this.boxShader=n,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}t.exports=s;var l=i.prototype;function s(e,t){var n=e.gl,l=a(n,[0,0,0,1,1,0,1,1]),s=r(n,o.boxVertex,o.boxFragment),u=new i(e,l,s);return u.update(t),e.addOverlay(u),u}l.draw=function(){if(this.enabled){var e=this.plot,t=this.selectBox,n=this.borderWidth,r=(this.innerFill,this.innerColor),a=(this.outerFill,this.outerColor),o=this.borderColor,i=e.box,l=e.screenBox,s=e.dataBox,u=e.viewBox,c=e.pixelRatio,f=(t[0]-s[0])*(u[2]-u[0])/(s[2]-s[0])+u[0],p=(t[1]-s[1])*(u[3]-u[1])/(s[3]-s[1])+u[1],d=(t[2]-s[0])*(u[2]-u[0])/(s[2]-s[0])+u[0],h=(t[3]-s[1])*(u[3]-u[1])/(s[3]-s[1])+u[1];if(f=Math.max(f,u[0]),p=Math.max(p,u[1]),d=Math.min(d,u[2]),h=Math.min(h,u[3]),!(d<f||h<p)){i.bind();var v=l[2]-l[0],m=l[3]-l[1];if(this.outerFill&&(i.drawBox(0,0,v,p,a),i.drawBox(0,p,f,h,a),i.drawBox(0,h,v,m,a),i.drawBox(d,p,v,h,a)),this.innerFill&&i.drawBox(f,p,d,h,r),n>0){var y=n*c;i.drawBox(f-y,p-y,d+y,p+y,o),i.drawBox(f-y,h-y,d+y,h+y,o),i.drawBox(f-y,p-y,f+y,h+y,o),i.drawBox(d-y,p-y,d+y,h+y,o)}}}},l.update=function(e){e=e||{},this.innerFill=!!e.innerFill,this.outerFill=!!e.outerFill,this.innerColor=(e.innerColor||[0,0,0,.5]).slice(),this.outerColor=(e.outerColor||[0,0,0,.5]).slice(),this.borderColor=(e.borderColor||[0,0,0,1]).slice(),this.borderWidth=e.borderWidth||0,this.selectBox=(e.selectBox||this.selectBox).slice()},l.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{"./lib/shaders":309,"gl-buffer":258,"gl-shader":312}],311:[function(e,t,n){"use strict";t.exports=f;var r=e("gl-fbo"),a=e("typedarray-pool"),o=e("ndarray"),i=e("bit-twiddle").nextPow2,l=function(e,t,n){for(var r=1e8,a=-1,o=-1,i=e.shape[0],l=e.shape[1],s=0;s<i;s++)for(var u=0;u<l;u++){var c=e.get(s,u,0),f=e.get(s,u,1),p=e.get(s,u,2),d=e.get(s,u,3);if(c<255||f<255||p<255||d<255){var h=t-s,v=n-u,m=h*h+v*v;m<r&&(r=m,a=s,o=u)}}return[a,o,r]};function s(e,t,n,r,a){this.coord=[e,t],this.id=n,this.value=r,this.distance=a}function u(e,t,n){this.gl=e,this.fbo=t,this.buffer=n,this._readTimeout=null;var r=this;this._readCallback=function(){r.gl&&(t.bind(),e.readPixels(0,0,t.shape[0],t.shape[1],e.RGBA,e.UNSIGNED_BYTE,r.buffer),r._readTimeout=null)}}var c=u.prototype;function f(e,t){var n=t[0],o=t[1],i={},l=r(e,n,o,i),s=a.mallocUint8(n*o*4);return new u(e,l,s)}Object.defineProperty(c,"shape",{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(e){if(this.gl){this.fbo.shape=e;var t=this.fbo.shape[0],n=this.fbo.shape[1];if(n*t*4>this.buffer.length){a.free(this.buffer);for(var r=this.buffer=a.mallocUint8(i(n*t*4)),o=0;o<n*t*4;++o)r[o]=255}return e}}}),c.begin=function(){var e=this.gl;this.shape;e&&(this.fbo.bind(),e.clearColor(1,1,1,1),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT))},c.end=function(){var e=this.gl;e&&(e.bindFramebuffer(e.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},c.query=function(e,t,n){if(!this.gl)return null;var r=this.fbo.shape.slice();e|=0,t|=0,"number"!==typeof n&&(n=1);var a=0|Math.min(Math.max(e-n,0),r[0]),i=0|Math.min(Math.max(e+n,0),r[0]),u=0|Math.min(Math.max(t-n,0),r[1]),c=0|Math.min(Math.max(t+n,0),r[1]);if(i<=a||c<=u)return null;var f=[i-a,c-u],p=o(this.buffer,[f[0],f[1],4],[4,4*r[0],1],4*(a+r[0]*u)),d=l(p.hi(f[0],f[1],1),n,n),h=d[0],v=d[1];if(h<0||Math.pow(this.radius,2)<d[2])return null;var m=p.get(h,v,0),y=p.get(h,v,1),g=p.get(h,v,2),b=p.get(h,v,3);return new s(h+a|0,v+u|0,m,[y,g,b],Math.sqrt(d[2]))},c.dispose=function(){this.gl&&(this.fbo.dispose(),a.free(this.buffer),this.gl=null,this._readTimeout&&clearTimeout(this._readTimeout))}},{"bit-twiddle":97,"gl-fbo":266,ndarray:469,"typedarray-pool":567}],312:[function(e,t,n){"use strict";var r=e("./lib/create-uniforms"),a=e("./lib/create-attributes"),o=e("./lib/reflect"),i=e("./lib/shader-cache"),l=e("./lib/runtime-reflect"),s=e("./lib/GLError");function u(e){this.gl=e,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var c=u.prototype;function f(e,t){return e.name<t.name?-1:1}function p(e,t,n,r,a){var o=new u(e);return o.update(t,n,r,a),o}c.bind=function(){var e;this.program||this._relink();var t=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),n=this.gl.lastAttribCount;if(t>n)for(e=n;e<t;e++)this.gl.enableVertexAttribArray(e);else if(n>t)for(e=t;e<n;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=t,this.gl.useProgram(this.program)},c.dispose=function(){for(var e=this.gl.lastAttribCount,t=0;t<e;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=0,this._fref&&this._fref.dispose(),this._vref&&this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},c.update=function(e,t,n,u){if(!t||1===arguments.length){var c=e;e=c.vertex,t=c.fragment,n=c.uniforms,u=c.attributes}var p=this,d=p.gl,h=p._vref;p._vref=i.shader(d,d.VERTEX_SHADER,e),h&&h.dispose(),p.vertShader=p._vref.shader;var v=this._fref;if(p._fref=i.shader(d,d.FRAGMENT_SHADER,t),v&&v.dispose(),p.fragShader=p._fref.shader,!n||!u){var m=d.createProgram();if(d.attachShader(m,p.fragShader),d.attachShader(m,p.vertShader),d.linkProgram(m),!d.getProgramParameter(m,d.LINK_STATUS)){var y=d.getProgramInfoLog(m);throw new s(y,"Error linking program:"+y)}n=n||l.uniforms(d,m),u=u||l.attributes(d,m),d.deleteProgram(m)}u=u.slice(),u.sort(f);var g,b=[],x=[],_=[];for(g=0;g<u.length;++g){var w=u[g];if(w.type.indexOf("mat")>=0){for(var k=0|w.type.charAt(w.type.length-1),T=new Array(k),E=0;E<k;++E)T[E]=_.length,x.push(w.name+"["+E+"]"),"number"===typeof w.location?_.push(w.location+E):Array.isArray(w.location)&&w.location.length===k&&"number"===typeof w.location[E]?_.push(0|w.location[E]):_.push(-1);b.push({name:w.name,type:w.type,locations:T})}else b.push({name:w.name,type:w.type,locations:[_.length]}),x.push(w.name),"number"===typeof w.location?_.push(0|w.location):_.push(-1)}var O=0;for(g=0;g<_.length;++g)if(_[g]<0){while(_.indexOf(O)>=0)O+=1;_[g]=O}var M=new Array(n.length);function S(){p.program=i.program(d,p._vref,p._fref,x,_);for(var e=0;e<n.length;++e)M[e]=d.getUniformLocation(p.program,n[e].name)}S(),p._relink=S,p.types={uniforms:o(n),attributes:o(u)},p.attributes=a(d,p,b,_),Object.defineProperty(p,"uniforms",r(d,p,n,M))},t.exports=p},{"./lib/GLError":313,"./lib/create-attributes":314,"./lib/create-uniforms":315,"./lib/reflect":316,"./lib/runtime-reflect":317,"./lib/shader-cache":318}],313:[function(e,t,n){function r(e,t,n){this.shortMessage=t||"",this.longMessage=n||"",this.rawError=e||"",this.message="gl-shader: "+(t||e||"")+(n?"\n"+n:""),this.stack=(new Error).stack}r.prototype=new Error,r.prototype.name="GLError",r.prototype.constructor=r,t.exports=r},{}],314:[function(e,t,n){"use strict";t.exports=s;var r=e("./GLError");function a(e,t,n,r,a,o){this._gl=e,this._wrapper=t,this._index=n,this._locations=r,this._dimension=a,this._constFunc=o}var o=a.prototype;function i(e,t,n,r,o,i,l){for(var s=["gl","v"],u=[],c=0;c<o;++c)s.push("x"+c),u.push("x"+c);s.push("if(x0.length===void 0){return gl.vertexAttrib"+o+"f(v,"+u.join()+")}else{return gl.vertexAttrib"+o+"fv(v,x0)}");var f=Function.apply(null,s),p=new a(e,t,n,r,o,f);Object.defineProperty(i,l,{set:function(t){return e.disableVertexAttribArray(r[n]),f(e,r[n],t),t},get:function(){return p},enumerable:!0})}function l(e,t,n,r,a,o,l){for(var s=new Array(a),u=new Array(a),c=0;c<a;++c)i(e,t,n[c],r,a,s,c),u[c]=s[c];Object.defineProperty(s,"location",{set:function(e){if(Array.isArray(e))for(var t=0;t<a;++t)u[t].location=e[t];else for(t=0;t<a;++t)u[t].location=e+t;return e},get:function(){for(var e=new Array(a),t=0;t<a;++t)e[t]=r[n[t]];return e},enumerable:!0}),s.pointer=function(t,o,i,l){t=t||e.FLOAT,o=!!o,i=i||a*a,l=l||0;for(var s=0;s<a;++s){var u=r[n[s]];e.vertexAttribPointer(u,a,t,o,i,l+s*a),e.enableVertexAttribArray(u)}};var f=new Array(a),p=e["vertexAttrib"+a+"fv"];Object.defineProperty(o,l,{set:function(t){for(var o=0;o<a;++o){var i=r[n[o]];if(e.disableVertexAttribArray(i),Array.isArray(t[0]))p.call(e,i,t[o]);else{for(var l=0;l<a;++l)f[l]=t[a*o+l];p.call(e,i,f)}}return t},get:function(){return s},enumerable:!0})}function s(e,t,n,a){for(var o={},s=0,u=n.length;s<u;++s){var c=n[s],f=c.name,p=c.type,d=c.locations;switch(p){case"bool":case"int":case"float":i(e,t,d[0],a,1,o,f);break;default:if(p.indexOf("vec")>=0){var h=p.charCodeAt(p.length-1)-48;if(h<2||h>4)throw new r("","Invalid data type for attribute "+f+": "+p);i(e,t,d[0],a,h,o,f)}else{if(!(p.indexOf("mat")>=0))throw new r("","Unknown data type for attribute "+f+": "+p);h=p.charCodeAt(p.length-1)-48;if(h<2||h>4)throw new r("","Invalid data type for attribute "+f+": "+p);l(e,t,d,a,h,o,f)}break}}return o}o.pointer=function(e,t,n,r){var a=this,o=a._gl,i=a._locations[a._index];o.vertexAttribPointer(i,a._dimension,e||o.FLOAT,!!t,n||0,r||0),o.enableVertexAttribArray(i)},o.set=function(e,t,n,r){return this._constFunc(this._locations[this._index],e,t,n,r)},Object.defineProperty(o,"location",{get:function(){return this._locations[this._index]},set:function(e){return e!==this._locations[this._index]&&(this._locations[this._index]=0|e,this._wrapper.program=null),0|e}})},{"./GLError":313}],315:[function(e,t,n){"use strict";var r=e("./reflect"),a=e("./GLError");function o(e){var t=new Function("y","return function(){return y}");return t(e)}function i(e,t){for(var n=new Array(e),r=0;r<e;++r)n[r]=t;return n}function l(e,t,n,l){function s(n){var r=new Function("gl","wrapper","locations","return function(){return gl.getUniform(wrapper.program,locations["+n+"])}");return r(e,t,l)}function u(e,t,n){switch(n){case"bool":case"int":case"sampler2D":case"samplerCube":return"gl.uniform1i(locations["+t+"],obj"+e+")";case"float":return"gl.uniform1f(locations["+t+"],obj"+e+")";default:var r=n.indexOf("vec");if(!(0<=r&&r<=1&&n.length===4+r)){if(0===n.indexOf("mat")&&4===n.length){o=n.charCodeAt(n.length-1)-48;if(o<2||o>4)throw new a("","Invalid uniform dimension type for matrix "+name+": "+n);return"gl.uniformMatrix"+o+"fv(locations["+t+"],false,obj"+e+")"}throw new a("","Unknown uniform data type for "+name+": "+n)}var o=n.charCodeAt(n.length-1)-48;if(o<2||o>4)throw new a("","Invalid data type");switch(n.charAt(0)){case"b":case"i":return"gl.uniform"+o+"iv(locations["+t+"],obj"+e+")";case"v":return"gl.uniform"+o+"fv(locations["+t+"],obj"+e+")";default:throw new a("","Unrecognized data type for vector "+name+": "+n)}break}}function c(e,t){if("object"!==typeof t)return[[e,t]];var n=[];for(var r in t){var a=t[r],o=e;parseInt(r)+""===r?o+="["+r+"]":o+="."+r,"object"===typeof a?n.push.apply(n,c(o,a)):n.push([o,a])}return n}function f(t){for(var r=["return function updateProperty(obj){"],a=c("",t),o=0;o<a.length;++o){var i=a[o],s=i[0],f=i[1];l[f]&&r.push(u(s,f,n[f].type))}r.push("return obj}");var p=new Function("gl","locations",r.join("\n"));return p(e,l)}function p(e){switch(e){case"bool":return!1;case"int":case"sampler2D":case"samplerCube":return 0;case"float":return 0;default:var t=e.indexOf("vec");if(0<=t&&t<=1&&e.length===4+t){var n=e.charCodeAt(e.length-1)-48;if(n<2||n>4)throw new a("","Invalid data type");return"b"===e.charAt(0)?i(n,!1):i(n,0)}if(0===e.indexOf("mat")&&4===e.length){n=e.charCodeAt(e.length-1)-48;if(n<2||n>4)throw new a("","Invalid uniform dimension type for matrix "+name+": "+e);return i(n*n,0)}throw new a("","Unknown uniform data type for "+name+": "+e)}}function d(e,t,r){if("object"===typeof r){var a=h(r);Object.defineProperty(e,t,{get:o(a),set:f(r),enumerable:!0,configurable:!1})}else l[r]?Object.defineProperty(e,t,{get:s(r),set:f(r),enumerable:!0,configurable:!1}):e[t]=p(n[r].type)}function h(e){var t;if(Array.isArray(e)){t=new Array(e.length);for(var n=0;n<e.length;++n)d(t,n,e[n])}else for(var r in t={},e)d(t,r,e[r]);return t}var v=r(n,!0);return{get:o(h(v)),set:f(v),enumerable:!0,configurable:!0}}t.exports=l},{"./GLError":313,"./reflect":316}],316:[function(e,t,n){"use strict";function r(e,t){for(var n={},r=0;r<e.length;++r)for(var a=e[r].name,o=a.split("."),i=n,l=0;l<o.length;++l){var s=o[l].split("[");if(s.length>1){s[0]in i||(i[s[0]]=[]),i=i[s[0]];for(var u=1;u<s.length;++u){var c=parseInt(s[u]);u<s.length-1||l<o.length-1?(c in i||(u<s.length-1?i[c]=[]:i[c]={}),i=i[c]):i[c]=t?r:e[r].type}}else l<o.length-1?(s[0]in i||(i[s[0]]={}),i=i[s[0]]):i[s[0]]=t?r:e[r].type}return n}t.exports=r},{}],317:[function(e,t,n){"use strict";n.uniforms=i,n.attributes=l;var r={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube"},a=null;function o(e,t){if(!a){var n=Object.keys(r);a={};for(var o=0;o<n.length;++o){var i=n[o];a[e[i]]=r[i]}}return a[t]}function i(e,t){for(var n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),r=[],a=0;a<n;++a){var i=e.getActiveUniform(t,a);if(i){var l=o(e,i.type);if(i.size>1)for(var s=0;s<i.size;++s)r.push({name:i.name.replace("[0]","["+s+"]"),type:l});else r.push({name:i.name,type:l})}}return r}function l(e,t){for(var n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),r=[],a=0;a<n;++a){var i=e.getActiveAttrib(t,a);i&&r.push({name:i.name,type:o(e,i.type)})}return r}},{}],318:[function(e,t,n){"use strict";n.shader=h,n.program=v;var r=e("./GLError"),a=e("gl-format-compiler-error"),o="undefined"===typeof WeakMap?e("weakmap-shim"):WeakMap,i=new o,l=0;function s(e,t,n,r,a,o,i){this.id=e,this.src=t,this.type=n,this.shader=r,this.count=o,this.programs=[],this.cache=i}function u(e){this.gl=e,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0===--this.count){for(var e=this.cache,t=e.gl,n=this.programs,r=0,a=n.length;r<a;++r){var o=e.programs[n[r]];o&&(delete e.programs[r],t.deleteProgram(o))}t.deleteShader(this.shader),delete e.shaders[this.type===t.FRAGMENT_SHADER|0][this.src]}};var c=u.prototype;function f(e,t,n){var o=e.createShader(t);if(e.shaderSource(o,n),e.compileShader(o),!e.getShaderParameter(o,e.COMPILE_STATUS)){var i=e.getShaderInfoLog(o);try{var l=a(i,n,t)}catch(s){throw console.warn("Failed to format compiler error: "+s),new r(i,"Error compiling shader:\n"+i)}throw new r(i,l.short,l.long)}return o}function p(e,t,n,a,o){var i=e.createProgram();e.attachShader(i,t),e.attachShader(i,n);for(var l=0;l<a.length;++l)e.bindAttribLocation(i,o[l],a[l]);if(e.linkProgram(i),!e.getProgramParameter(i,e.LINK_STATUS)){var s=e.getProgramInfoLog(i);throw new r(s,"Error linking program: "+s)}return i}function d(e){var t=i.get(e);return t||(t=new u(e),i.set(e,t)),t}function h(e,t,n){return d(e).getShaderReference(t,n)}function v(e,t,n,r,a){return d(e).getProgram(t,n,r,a)}c.getShaderReference=function(e,t){var n=this.gl,r=this.shaders[e===n.FRAGMENT_SHADER|0],a=r[t];if(a&&n.isShader(a.shader))a.count+=1;else{var o=f(n,e,t);a=r[t]=new s(l++,t,e,o,[],1,this)}return a},c.getProgram=function(e,t,n,r){var a=[e.id,t.id,n.join(":"),r.join(":")].join("@"),o=this.programs[a];return o&&this.gl.isProgram(o)||(this.programs[a]=o=p(this.gl,e.shader,t.shader,n,r),e.programs.push(a),t.programs.push(a)),o}},{"./GLError":313,"gl-format-compiler-error":267,"weakmap-shim":577}],319:[function(e,t,n){"use strict";function r(e){this.plot=e,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}t.exports=o;var a=r.prototype;function o(e,t){var n=new r(e);return n.update(t),e.addOverlay(n),n}a.update=function(e){e=e||{},this.enable=(e.enable||[!0,!0,!1,!1]).slice(),this.width=(e.width||[1,1,1,1]).slice(),this.color=(e.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map((function(e){return e.slice()})),this.center=(e.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},a.draw=function(){var e=this.enable,t=this.width,n=this.color,r=this.center,a=this.plot,o=a.line,i=a.dataBox,l=a.viewBox;if(o.bind(),i[0]<=r[0]&&r[0]<=i[2]&&i[1]<=r[1]&&r[1]<=i[3]){var s=l[0]+(r[0]-i[0])/(i[2]-i[0])*(l[2]-l[0]),u=l[1]+(r[1]-i[1])/(i[3]-i[1])*(l[3]-l[1]);e[0]&&o.drawLine(s,u,l[0],u,t[0],n[0]),e[1]&&o.drawLine(s,u,s,l[1],t[1],n[1]),e[2]&&o.drawLine(s,u,l[2],u,t[2],n[2]),e[3]&&o.drawLine(s,u,s,l[3],t[3],n[3])}},a.dispose=function(){this.plot.removeOverlay(this)}},{}],320:[function(e,t,n){"use strict";var r=e("glslify"),a=e("gl-shader"),o=r(["precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, color;\nattribute float weight;\n\nuniform mat4 model, view, projection;\nuniform vec3 coordinates[3];\nuniform vec4 colors[3];\nuniform vec2 screenShape;\nuniform float lineWidth;\n\nvarying vec4 fragColor;\n\nvoid main() {\n vec3 vertexPosition = mix(coordinates[0],\n mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\n\n vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\n vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\n vec2 delta = weight * clipOffset * screenShape;\n vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\n\n gl_Position = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\n fragColor = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\n}\n"]),i=r(["precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n gl_FragColor = fragColor;\n}"]);t.exports=function(e){return a(e,o,i,null,[{name:"position",type:"vec3"},{name:"color",type:"vec3"},{name:"weight",type:"float"}])}},{"gl-shader":312,glslify:413}],321:[function(e,t,n){"use strict";var r=e("gl-buffer"),a=e("gl-vao"),o=e("./shaders/index");t.exports=p;var i=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function l(e,t,n,r){this.gl=e,this.buffer=t,this.vao=n,this.shader=r,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var s=l.prototype,u=[0,0,0],c=[0,0,0],f=[0,0];function p(e,t){var n=[];function i(e,t,r,a,o,i){var l=[e,t,r,0,0,0,1];l[a+3]=1,l[a]=o,n.push.apply(n,l),l[6]=-1,n.push.apply(n,l),l[a]=i,n.push.apply(n,l),n.push.apply(n,l),l[6]=1,n.push.apply(n,l),l[a]=o,n.push.apply(n,l)}i(0,0,0,0,0,1),i(0,0,0,1,0,1),i(0,0,0,2,0,1),i(1,0,0,1,-1,1),i(1,0,0,2,-1,1),i(0,1,0,0,-1,1),i(0,1,0,2,-1,1),i(0,0,1,0,-1,1),i(0,0,1,1,-1,1);var s=r(e,n),u=a(e,[{type:e.FLOAT,buffer:s,size:3,offset:0,stride:28},{type:e.FLOAT,buffer:s,size:3,offset:12,stride:28},{type:e.FLOAT,buffer:s,size:1,offset:24,stride:28}]),c=o(e);c.attributes.position.location=0,c.attributes.color.location=1,c.attributes.weight.location=2;var f=new l(e,s,u,c);return f.update(t),f}s.isTransparent=function(){return!1},s.drawTransparent=function(e){},s.draw=function(e){var t=this.gl,n=this.vao,r=this.shader;n.bind(),r.bind();var a,o=e.model||i,l=e.view||i,s=e.projection||i;this.axes&&(a=this.axes.lastCubeProps.axis);for(var p=u,d=c,h=0;h<3;++h)a&&a[h]<0?(p[h]=this.bounds[0][h],d[h]=this.bounds[1][h]):(p[h]=this.bounds[1][h],d[h]=this.bounds[0][h]);f[0]=t.drawingBufferWidth,f[1]=t.drawingBufferHeight,r.uniforms.model=o,r.uniforms.view=l,r.uniforms.projection=s,r.uniforms.coordinates=[this.position,p,d],r.uniforms.colors=this.colors,r.uniforms.screenShape=f;for(h=0;h<3;++h)r.uniforms.lineWidth=this.lineWidth[h]*this.pixelRatio,this.enabled[h]&&(n.draw(t.TRIANGLES,6,6*h),this.drawSides[h]&&n.draw(t.TRIANGLES,12,18+12*h));n.unbind()},s.update=function(e){e&&("bounds"in e&&(this.bounds=e.bounds),"position"in e&&(this.position=e.position),"lineWidth"in e&&(this.lineWidth=e.lineWidth),"colors"in e&&(this.colors=e.colors),"enabled"in e&&(this.enabled=e.enabled),"drawSides"in e&&(this.drawSides=e.drawSides))},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{"./shaders/index":320,"gl-buffer":258,"gl-vao":332}],322:[function(e,t,n){var r=e("glslify"),a=r(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n // Scale the vector magnitude to stay constant with\n // model & view changes.\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * tubePosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n f_lightDirection = lightPosition - cameraCoordinate.xyz;\n f_eyeDirection = eyePosition - cameraCoordinate.xyz;\n f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n // vec4 m_position = model * vec4(tubePosition, 1.0);\n vec4 t_position = view * tubePosition;\n gl_Position = projection * t_position;\n\n f_color = color;\n f_data = tubePosition.xyz;\n f_position = position.xyz;\n f_uv = uv;\n}\n"]),o=r(["#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness,\n float fresnel) {\n\n float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n //Half angle vector\n vec3 H = normalize(lightDirection + viewDirection);\n\n //Geometric term\n float NdotH = max(dot(surfaceNormal, H), 0.0);\n float VdotH = max(dot(viewDirection, H), 0.000001);\n float LdotH = max(dot(lightDirection, H), 0.000001);\n float G1 = (2.0 * NdotH * VdotN) / VdotH;\n float G2 = (2.0 * NdotH * LdotN) / LdotH;\n float G = min(1.0, min(G1, G2));\n \n //Distribution term\n float D = beckmannDistribution(NdotH, roughness);\n\n //Fresnel term\n float F = pow(1.0 - VdotN, fresnel);\n\n //Multiply terms and done\n return G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n vec3 N = normalize(f_normal);\n vec3 L = normalize(f_lightDirection);\n vec3 V = normalize(f_eyeDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = litColor * opacity;\n}\n"]),i=r(["precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n // Return up-vector for only-z vector.\n // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n // From the above if-statement we have ||a|| > 0 U ||b|| > 0.\n // Assign z = 0, x = -b, y = a:\n // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n if (v.x*v.x > v.z*v.z || v.y*v.y > v.z*v.z) {\n return normalize(vec3(-v.y, v.x, 0.0));\n } else {\n return normalize(vec3(0.0, v.z, -v.y));\n }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n float segmentCount = 8.0;\n\n float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n vec3 u = getOrthogonalVector(d);\n vec3 v = normalize(cross(u, d));\n\n vec3 x = u * cos(angle) * length(d);\n vec3 y = v * sin(angle) * length(d);\n vec3 v3 = x + y;\n\n normal = normalize(v3);\n\n return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n vec3 normal;\n vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n gl_Position = projection * view * tubePosition;\n f_id = id;\n f_position = position.xyz;\n}\n"]),l=r(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n gl_FragColor = vec4(pickId, f_id.xyz);\n}"]);n.meshShader={vertex:a,fragment:o,attributes:[{name:"position",type:"vec4"},{name:"color",type:"vec4"},{name:"uv",type:"vec2"},{name:"vector",type:"vec4"}]},n.pickShader={vertex:i,fragment:l,attributes:[{name:"position",type:"vec4"},{name:"id",type:"vec4"},{name:"vector",type:"vec4"}]}},{glslify:413}],323:[function(e,t,n){"use strict";var r=e("gl-vec3"),a=e("gl-vec4"),o=["xyz","xzy","yxz","yzx","zxy","zyx"],i=function(e,t,n,o){for(var i=e.points,l=e.velocities,s=e.divergences,u=[],c=[],f=[],p=[],d=[],h=[],v=0,m=0,y=a.create(),g=a.create(),b=8,x=0;x<i.length;x++){var _=i[x],w=l[x],k=s[x];0===t&&(k=.05*n),m=r.length(w)/o,y=a.create(),r.copy(y,w),y[3]=k;for(var T=0;T<b;T++)d[T]=[_[0],_[1],_[2],T];if(p.length>0)for(T=0;T<b;T++){var E=(T+1)%b;u.push(p[T],d[T],d[E],d[E],p[E],p[T]),f.push(g,y,y,y,g,g),h.push(v,m,m,m,v,v);var O=u.length;c.push([O-6,O-5,O-4],[O-3,O-2,O-1])}var M=p;p=d,d=M;var S=g;g=y,y=S;var C=v;v=m,m=C}return{positions:u,cells:c,vectors:f,vertexIntensity:h}},l=function(e,t,n,a){for(var o=0,l=0;l<e.length;l++)for(var s=e[l].velocities,u=0;u<s.length;u++)o=Math.max(o,r.length(s[u]));var c=e.map((function(e){return i(e,n,a,o)})),f=[],p=[],d=[],h=[];for(l=0;l<c.length;l++){var v=c[l],m=f.length;f=f.concat(v.positions),d=d.concat(v.vectors),h=h.concat(v.vertexIntensity);for(u=0;u<v.cells.length;u++){var y=v.cells[u],g=[];p.push(g);for(var b=0;b<y.length;b++)g.push(y[b]+m)}}return{positions:f,cells:p,vectors:d,vertexIntensity:h,colormap:t}},s=function(e,t){var n,r=e.length;for(n=0;n<r;n++){var a=e[n];if(a===t)return n;if(a>t)return n-1}return n},u=function(e,t,n){return e<t?t:e>n?n:e},c=function(e,t,n){var a=t.vectors,o=t.meshgrid,i=e[0],l=e[1],c=e[2],f=o[0].length,p=o[1].length,d=o[2].length,h=s(o[0],i),v=s(o[1],l),m=s(o[2],c),y=h+1,g=v+1,b=m+1;if(h=u(h,0,f-1),y=u(y,0,f-1),v=u(v,0,p-1),g=u(g,0,p-1),m=u(m,0,d-1),b=u(b,0,d-1),h<0||v<0||m<0||y>f-1||g>p-1||b>d-1)return r.create();var x,_,w,k,T,E,O=o[0][h],M=o[0][y],S=o[1][v],C=o[1][g],A=o[2][m],P=o[2][b],L=(i-O)/(M-O),D=(l-S)/(C-S),j=(c-A)/(P-A);switch(isFinite(L)||(L=.5),isFinite(D)||(D=.5),isFinite(j)||(j=.5),n.reversedX&&(h=f-1-h,y=f-1-y),n.reversedY&&(v=p-1-v,g=p-1-g),n.reversedZ&&(m=d-1-m,b=d-1-b),n.filled){case 5:T=m,E=b,w=v*d,k=g*d,x=h*d*p,_=y*d*p;break;case 4:T=m,E=b,x=h*d,_=y*d,w=v*d*f,k=g*d*f;break;case 3:w=v,k=g,T=m*p,E=b*p,x=h*p*d,_=y*p*d;break;case 2:w=v,k=g,x=h*p,_=y*p,T=m*p*f,E=b*p*f;break;case 1:x=h,_=y,T=m*f,E=b*f,w=v*f*d,k=g*f*d;break;default:x=h,_=y,w=v*f,k=g*f,T=m*f*p,E=b*f*p;break}var I=a[x+w+T],R=a[x+w+E],z=a[x+k+T],N=a[x+k+E],F=a[_+w+T],B=a[_+w+E],V=a[_+k+T],H=a[_+k+E],U=r.create(),W=r.create(),q=r.create(),$=r.create();r.lerp(U,I,F,L),r.lerp(W,R,B,L),r.lerp(q,z,V,L),r.lerp($,N,H,L);var G=r.create(),Y=r.create();r.lerp(G,U,q,D),r.lerp(Y,W,$,D);var K=r.create();return r.lerp(K,G,Y,j),K},f=function(e){var t=1/0;e.sort((function(e,t){return e-t}));for(var n=e.length,r=1;r<n;r++){var a=Math.abs(e[r]-e[r-1]);a<t&&(t=a)}return t},p=function(e){for(var t=[],n=[],r=[],a={},o={},i={},l=e.length,s=0;s<l;s++){var u=e[s],c=u[0],p=u[1],d=u[2];a[c]||(t.push(c),a[c]=!0),o[p]||(n.push(p),o[p]=!0),i[d]||(r.push(d),i[d]=!0)}var h=f(t),v=f(n),m=f(r),y=Math.min(h,v,m);return isFinite(y)?y:1};t.exports=function(e,t){var n=e.startingPositions,a=e.maxLength||1e3,i=e.tubeSize||1,s=e.absoluteTubeSize,u=e.gridFill||"+x+y+z",f={};-1!==u.indexOf("-x")&&(f.reversedX=!0),-1!==u.indexOf("-y")&&(f.reversedY=!0),-1!==u.indexOf("-z")&&(f.reversedZ=!0),f.filled=o.indexOf(u.replace(/-/g,"").replace(/\+/g,""));var d=e.getVelocity||function(t){return c(t,e,f)},h=e.getDivergence||function(e,t){var n=r.create(),a=1e-4;r.add(n,e,[a,0,0]);var o=d(n);r.subtract(o,o,t),r.scale(o,o,1/a),r.add(n,e,[0,a,0]);var i=d(n);r.subtract(i,i,t),r.scale(i,i,1/a),r.add(n,e,[0,0,a]);var l=d(n);return r.subtract(l,l,t),r.scale(l,l,1/a),r.add(n,o,i),r.add(n,n,l),n},v=[],m=t[0][0],y=t[0][1],g=t[0][2],b=t[1][0],x=t[1][1],_=t[1][2],w=function(e){var t=e[0],n=e[1],r=e[2];return!(t<m||t>b||n<y||n>x||r<g||r>_)},k=r.distance(t[0],t[1]),T=10*k/a,E=T*T,O=1,M=0,S=n.length;S>1&&(O=p(n));for(var C=0;C<S;C++){var A=r.create();r.copy(A,n[C]);var P=[A],L=[],D=d(A),j=A;L.push(D);var I=[],R=h(A,D),z=r.length(R);isFinite(z)&&z>M&&(M=z),I.push(z),v.push({points:P,velocities:L,divergences:I});var N=0;while(N<100*a&&P.length<a&&w(A)){N++;var F=r.clone(D),B=r.squaredLength(F);if(0===B)break;if(B>E&&r.scale(F,F,T/Math.sqrt(B)),r.add(F,F,A),D=d(F),r.squaredDistance(j,F)-E>-1e-4*E){P.push(F),j=F,L.push(D);R=h(F,D),z=r.length(R);isFinite(z)&&z>M&&(M=z),I.push(z)}A=F}}var V=l(v,e.colormap,M,O);return s?V.tubeScale=s:(0===M&&(M=1),V.tubeScale=.5*i*O/M),V};var d=e("./lib/shaders"),h=e("gl-cone3d").createMesh;t.exports.createTubeMesh=function(e,t){return h(e,t,{shaders:d,traceType:"streamtube"})}},{"./lib/shaders":322,"gl-cone3d":259,"gl-vec3":351,"gl-vec4":387}],324:[function(e,t,n){var r=e("gl-shader"),a=e("glslify"),o=a(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 localCoordinate = vec3(uv.zw, f.x);\n worldCoordinate = objectOffset + localCoordinate;\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n vec4 clipPosition = projection * view * worldPosition;\n gl_Position = clipPosition;\n kill = f.y;\n value = f.z;\n planeCoordinate = uv.xy;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Lighting geometry parameters\n vec4 cameraCoordinate = view * worldPosition;\n cameraCoordinate.xyz /= cameraCoordinate.w;\n lightDirection = lightPosition - cameraCoordinate.xyz;\n eyeDirection = eyePosition - cameraCoordinate.xyz;\n surfaceNormal = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n"]),i=a(["precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n float NdotH = max(x, 0.0001);\n float cos2Alpha = NdotH * NdotH;\n float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n float roughness2 = roughness * roughness;\n float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n vec3 lightDirection,\n vec3 viewDirection,\n vec3 surfaceNormal,\n float roughness) {\n return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n if (\n kill > 0.0 ||\n vColor.a == 0.0 ||\n outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n ) discard;\n\n vec3 N = normalize(surfaceNormal);\n vec3 V = normalize(eyeDirection);\n vec3 L = normalize(lightDirection);\n\n if(gl_FrontFacing) {\n N = -N;\n }\n\n float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n float diffuse = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n //decide how to interpolate color — in vertex or in fragment\n vec4 surfaceColor =\n step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n step(.5, vertexColor) * vColor;\n\n vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular, 1.0);\n\n gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n"]),l=a(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n worldCoordinate = objectOffset + dataCoordinate;\n vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n\n vec4 clipPosition = projection * view * worldPosition;\n clipPosition.z += zOffset;\n\n gl_Position = clipPosition;\n value = f + objectOffset.z;\n kill = -1.0;\n planeCoordinate = uv.zw;\n\n vColor = texture2D(colormap, vec2(value, value));\n\n //Don't do lighting for contours\n surfaceNormal = vec3(1,0,0);\n eyeDirection = vec3(0,1,0);\n lightDirection = vec3(0,0,1);\n}\n"]),s=a(["precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n return ((p > max(a, b)) || \n (p < min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n return (outOfRange(a.x, b.x, p.x) ||\n outOfRange(a.y, b.y, p.y) ||\n outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n float vh = 255.0 * v;\n float upper = floor(vh);\n float lower = fract(vh);\n return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n if ((kill > 0.0) ||\n (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n"]);n.createShader=function(e){var t=r(e,o,i,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t.attributes.normal.location=2,t},n.createPickShader=function(e){var t=r(e,o,s,null,[{name:"uv",type:"vec4"},{name:"f",type:"vec3"},{name:"normal",type:"vec3"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t.attributes.normal.location=2,t},n.createContourShader=function(e){var t=r(e,l,i,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t},n.createPickContourShader=function(e){var t=r(e,l,s,null,[{name:"uv",type:"vec4"},{name:"f",type:"float"}]);return t.attributes.uv.location=0,t.attributes.f.location=1,t}},{"gl-shader":312,glslify:413}],325:[function(e,t,n){"use strict";t.exports=H;var r=e("bit-twiddle"),a=e("gl-buffer"),o=e("gl-vao"),i=e("gl-texture2d"),l=e("typedarray-pool"),s=e("colormap"),u=e("ndarray-ops"),c=e("ndarray-pack"),f=e("ndarray"),p=e("surface-nets"),d=e("gl-mat4/multiply"),h=e("gl-mat4/invert"),v=e("binary-search-bounds"),m=e("ndarray-gradient"),y=e("./lib/shaders"),g=y.createShader,b=y.createContourShader,x=y.createPickShader,_=y.createPickContourShader,w=40,k=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],E=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function O(e,t,n,r,a){this.position=e,this.index=t,this.uv=n,this.level=r,this.dataCoordinate=a}(function(){for(var e=0;e<3;++e){var t=E[e],n=(e+1)%3,r=(e+2)%3;t[n+0]=1,t[r+3]=1,t[e+6]=1}})();var M=256;function S(e,t,n,r,a,o,i,s,u,c,p,d,h,v,m){this.gl=e,this.shape=t,this.bounds=n,this.objectOffset=m,this.intensityBounds=[],this._shader=r,this._pickShader=a,this._coordinateBuffer=o,this._vao=i,this._colorMap=s,this._contourShader=u,this._contourPickShader=c,this._contourBuffer=p,this._contourVAO=d,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new O([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=h,this._dynamicVAO=v,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(l.mallocFloat(1024),[0,0]),f(l.mallocFloat(1024),[0,0]),f(l.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var C=S.prototype;function A(e,t){if(!t)return 1;if(!t.length)return 1;for(var n=0;n<t.length;++n){if(t.length<2)return 1;if(t[n][0]===e)return t[n][1];if(t[n][0]>e&&n>0){var r=(t[n][0]-e)/(t[n][0]-t[n-1][0]);return t[n][1]*(1-r)+r*t[n-1][1]}}return 1}C.genColormap=function(e,t){var n=!1,r=c([s({colormap:e,nshades:M,format:"rgba"}).map((function(e,r){var a=t?A(r/255,t):e[3];return a<1&&(n=!0),[e[0],e[1],e[2],255*a]}))]);return u.divseq(r,255),this.hasAlphaScale=n,r},C.isTransparent=function(){return this.opacity<1||this.hasAlphaScale},C.isOpaque=function(){return!this.isTransparent()},C.pickSlots=1,C.setPickBase=function(e){this.pickId=e};var P=[0,0,0],L={showSurface:!1,showContour:!1,projections:[k.slice(),k.slice(),k.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function D(e,t){var n,r,a,o=t.axes&&t.axes.lastCubeProps.axis||P,i=t.showSurface,l=t.showContour;for(n=0;n<3;++n)for(i=i||t.surfaceProject[n],r=0;r<3;++r)l=l||t.contourProject[n][r];for(n=0;n<3;++n){var s=L.projections[n];for(r=0;r<16;++r)s[r]=0;for(r=0;r<4;++r)s[5*r]=1;s[5*n]=0,s[12+n]=t.axesBounds[+(o[n]>0)][n],d(s,e.model,s);var u=L.clipBounds[n];for(a=0;a<2;++a)for(r=0;r<3;++r)u[a][r]=e.clipBounds[a][r];u[0][n]=-1e8,u[1][n]=1e8}return L.showSurface=i,L.showContour=l,L}var j={model:k,view:k,projection:k,inverseModel:k.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},I=k.slice(),R=[1,0,0,0,1,0,0,0,1];function z(e,t){e=e||{};var n=this.gl;n.disable(n.CULL_FACE),this._colorMap.bind(0);var r=j;r.model=e.model||k,r.view=e.view||k,r.projection=e.projection||k,r.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],r.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],r.objectOffset=this.objectOffset,r.contourColor=this.contourColor[0],r.inverseModel=h(r.inverseModel,r.model);for(var a=0;a<2;++a)for(var o=r.clipBounds[a],i=0;i<3;++i)o[i]=Math.min(Math.max(this.clipBounds[a][i],-1e8),1e8);r.kambient=this.ambientLight,r.kdiffuse=this.diffuseLight,r.kspecular=this.specularLight,r.roughness=this.roughness,r.fresnel=this.fresnel,r.opacity=this.opacity,r.height=0,r.permutation=R,r.vertexColor=this.vertexColor;var l=I;for(d(l,r.view,r.model),d(l,r.projection,l),h(l,l),a=0;a<3;++a)r.eyePosition[a]=l[12+a]/l[15];var s=l[15];for(a=0;a<3;++a)s+=this.lightPosition[a]*l[4*a+3];for(a=0;a<3;++a){var u=l[12+a];for(i=0;i<3;++i)u+=l[4*i+a]*this.lightPosition[i];r.lightPosition[a]=u/s}var c=D(r,this);if(c.showSurface){for(this._shader.bind(),this._shader.uniforms=r,this._vao.bind(),this.showSurface&&this._vertexCount&&this._vao.draw(n.TRIANGLES,this._vertexCount),a=0;a<3;++a)this.surfaceProject[a]&&this.vertexCount&&(this._shader.uniforms.model=c.projections[a],this._shader.uniforms.clipBounds=c.clipBounds[a],this._vao.draw(n.TRIANGLES,this._vertexCount));this._vao.unbind()}if(c.showContour){var f=this._contourShader;r.kambient=1,r.kdiffuse=0,r.kspecular=0,r.opacity=1,f.bind(),f.uniforms=r;var p=this._contourVAO;for(p.bind(),a=0;a<3;++a)for(f.uniforms.permutation=E[a],n.lineWidth(this.contourWidth[a]*this.pixelRatio),i=0;i<this.contourLevels[a].length;++i)i===this.highlightLevel[a]?(f.uniforms.contourColor=this.highlightColor[a],f.uniforms.contourTint=this.highlightTint[a]):0!==i&&i-1!==this.highlightLevel[a]||(f.uniforms.contourColor=this.contourColor[a],f.uniforms.contourTint=this.contourTint[a]),this._contourCounts[a][i]&&(f.uniforms.height=this.contourLevels[a][i],p.draw(n.LINES,this._contourCounts[a][i],this._contourOffsets[a][i]));for(a=0;a<3;++a)for(f.uniforms.model=c.projections[a],f.uniforms.clipBounds=c.clipBounds[a],i=0;i<3;++i)if(this.contourProject[a][i]){f.uniforms.permutation=E[i],n.lineWidth(this.contourWidth[i]*this.pixelRatio);for(var v=0;v<this.contourLevels[i].length;++v)v===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==v&&v-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),this._contourCounts[i][v]&&(f.uniforms.height=this.contourLevels[i][v],p.draw(n.LINES,this._contourCounts[i][v],this._contourOffsets[i][v]))}for(p.unbind(),p=this._dynamicVAO,p.bind(),a=0;a<3;++a)if(0!==this._dynamicCounts[a])for(f.uniforms.model=r.model,f.uniforms.clipBounds=r.clipBounds,f.uniforms.permutation=E[a],n.lineWidth(this.dynamicWidth[a]*this.pixelRatio),f.uniforms.contourColor=this.dynamicColor[a],f.uniforms.contourTint=this.dynamicTint[a],f.uniforms.height=this.dynamicLevel[a],p.draw(n.LINES,this._dynamicCounts[a],this._dynamicOffsets[a]),i=0;i<3;++i)this.contourProject[i][a]&&(f.uniforms.model=c.projections[i],f.uniforms.clipBounds=c.clipBounds[i],p.draw(n.LINES,this._dynamicCounts[a],this._dynamicOffsets[a]));p.unbind()}}C.draw=function(e){return z.call(this,e,!1)},C.drawTransparent=function(e){return z.call(this,e,!0)};var N={model:k,view:k,projection:k,inverseModel:k,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function F(e,t){return Array.isArray(e)?[t(e[0]),t(e[1]),t(e[2])]:[t(e),t(e),t(e)]}function B(e){return Array.isArray(e)?3===e.length?[e[0],e[1],e[2],1]:[e[0],e[1],e[2],e[3]]:[0,0,0,1]}function V(e){if(Array.isArray(e)){if(Array.isArray(e))return[B(e[0]),B(e[1]),B(e[2])];var t=B(e);return[t.slice(),t.slice(),t.slice()]}}function H(e){var t=e.gl,n=g(t),r=x(t),l=b(t),s=_(t),u=a(t),c=o(t,[{buffer:u,size:4,stride:w,offset:0},{buffer:u,size:3,stride:w,offset:16},{buffer:u,size:3,stride:w,offset:28}]),f=a(t),p=o(t,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),d=a(t),h=o(t,[{buffer:d,size:2,type:t.FLOAT}]),v=i(t,1,M,t.RGBA,t.UNSIGNED_BYTE);v.minFilter=t.LINEAR,v.magFilter=t.LINEAR;var m=new S(t,[0,0],[[0,0,0],[0,0,0]],n,r,u,c,v,l,s,f,p,d,h,[0,0,0]),y={levels:[[],[],[]]};for(var k in e)y[k]=e[k];return y.colormap=y.colormap||"jet",m.update(y),m}C.drawPick=function(e){e=e||{};var t=this.gl;t.disable(t.CULL_FACE);var n=N;n.model=e.model||k,n.view=e.view||k,n.projection=e.projection||k,n.shape=this._field[2].shape,n.pickId=this.pickId/255,n.lowerBound=this.bounds[0],n.upperBound=this.bounds[1],n.objectOffset=this.objectOffset,n.permutation=R;for(var r=0;r<2;++r)for(var a=n.clipBounds[r],o=0;o<3;++o)a[o]=Math.min(Math.max(this.clipBounds[r][o],-1e8),1e8);var i=D(n,this);if(i.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=n,this._vao.bind(),this._vao.draw(t.TRIANGLES,this._vertexCount),r=0;r<3;++r)this.surfaceProject[r]&&(this._pickShader.uniforms.model=i.projections[r],this._pickShader.uniforms.clipBounds=i.clipBounds[r],this._vao.draw(t.TRIANGLES,this._vertexCount));this._vao.unbind()}if(i.showContour){var l=this._contourPickShader;l.bind(),l.uniforms=n;var s=this._contourVAO;for(s.bind(),o=0;o<3;++o)for(t.lineWidth(this.contourWidth[o]*this.pixelRatio),l.uniforms.permutation=E[o],r=0;r<this.contourLevels[o].length;++r)this._contourCounts[o][r]&&(l.uniforms.height=this.contourLevels[o][r],s.draw(t.LINES,this._contourCounts[o][r],this._contourOffsets[o][r]));for(r=0;r<3;++r)for(l.uniforms.model=i.projections[r],l.uniforms.clipBounds=i.clipBounds[r],o=0;o<3;++o)if(this.contourProject[r][o]){l.uniforms.permutation=E[o],t.lineWidth(this.contourWidth[o]*this.pixelRatio);for(var u=0;u<this.contourLevels[o].length;++u)this._contourCounts[o][u]&&(l.uniforms.height=this.contourLevels[o][u],s.draw(t.LINES,this._contourCounts[o][u],this._contourOffsets[o][u]))}s.unbind()}},C.pick=function(e){if(!e)return null;if(e.id!==this.pickId)return null;var t=this._field[2].shape,n=this._pickResult,r=t[0]*(e.value[0]+(e.value[2]>>4)/16)/255,a=Math.floor(r),o=r-a,i=t[1]*(e.value[1]+(15&e.value[2])/16)/255,l=Math.floor(i),s=i-l;a+=1,l+=1;var u=n.position;u[0]=u[1]=u[2]=0;for(var c=0;c<2;++c)for(var f=c?o:1-o,p=0;p<2;++p)for(var d=p?s:1-s,h=a+c,m=l+p,y=f*d,g=0;g<3;++g)u[g]+=this._field[g].get(h,m)*y;for(var b=this._pickResult.level,x=0;x<3;++x)if(b[x]=v.le(this.contourLevels[x],u[x]),b[x]<0)this.contourLevels[x].length>0&&(b[x]=0);else if(b[x]<this.contourLevels[x].length-1){var _=this.contourLevels[x][b[x]],w=this.contourLevels[x][b[x]+1];Math.abs(_-u[x])>Math.abs(w-u[x])&&(b[x]+=1)}for(n.index[0]=o<.5?a:a+1,n.index[1]=s<.5?l:l+1,n.uv[0]=r/t[0],n.uv[1]=i/t[1],g=0;g<3;++g)n.dataCoordinate[g]=this._field[g].get(n.index[0],n.index[1]);return n},C.padField=function(e,t){var n=t.shape.slice(),r=e.shape.slice();u.assign(e.lo(1,1).hi(n[0],n[1]),t),u.assign(e.lo(1).hi(n[0],1),t.hi(n[0],1)),u.assign(e.lo(1,r[1]-1).hi(n[0],1),t.lo(0,n[1]-1).hi(n[0],1)),u.assign(e.lo(0,1).hi(1,n[1]),t.hi(1)),u.assign(e.lo(r[0]-1,1).hi(1,n[1]),t.lo(n[0]-1)),e.set(0,0,t.get(0,0)),e.set(0,r[1]-1,t.get(0,n[1]-1)),e.set(r[0]-1,0,t.get(n[0]-1,0)),e.set(r[0]-1,r[1]-1,t.get(n[0]-1,n[1]-1))},C.update=function(e){e=e||{},this.objectOffset=e.objectOffset||this.objectOffset,this.dirty=!0,"contourWidth"in e&&(this.contourWidth=F(e.contourWidth,Number)),"showContour"in e&&(this.showContour=F(e.showContour,Boolean)),"showSurface"in e&&(this.showSurface=!!e.showSurface),"contourTint"in e&&(this.contourTint=F(e.contourTint,Boolean)),"contourColor"in e&&(this.contourColor=V(e.contourColor)),"contourProject"in e&&(this.contourProject=F(e.contourProject,(function(e){return F(e,Boolean)}))),"surfaceProject"in e&&(this.surfaceProject=e.surfaceProject),"dynamicColor"in e&&(this.dynamicColor=V(e.dynamicColor)),"dynamicTint"in e&&(this.dynamicTint=F(e.dynamicTint,Number)),"dynamicWidth"in e&&(this.dynamicWidth=F(e.dynamicWidth,Number)),"opacity"in e&&(this.opacity=e.opacity),"opacityscale"in e&&(this.opacityscale=e.opacityscale),"colorBounds"in e&&(this.colorBounds=e.colorBounds),"vertexColor"in e&&(this.vertexColor=e.vertexColor?1:0),"colormap"in e&&this._colorMap.setPixels(this.genColormap(e.colormap,this.opacityscale));var t=e.field||e.coords&&e.coords[2]||null,n=!1;if(t||(t=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),"field"in e||"coords"in e){var a=(t.shape[0]+2)*(t.shape[1]+2);a>this._field[2].data.length&&(l.freeFloat(this._field[2].data),this._field[2].data=l.mallocFloat(r.nextPow2(a))),this._field[2]=f(this._field[2].data,[t.shape[0]+2,t.shape[1]+2]),this.padField(this._field[2],t),this.shape=t.shape.slice();for(var o=this.shape,i=0;i<2;++i)this._field[2].size>this._field[i].data.length&&(l.freeFloat(this._field[i].data),this._field[i].data=l.mallocFloat(this._field[2].size)),this._field[i]=f(this._field[i].data,[o[0]+2,o[1]+2]);if(e.coords){var s=e.coords;if(!Array.isArray(s)||3!==s.length)throw new Error("gl-surface: invalid coordinates for x/y");for(i=0;i<2;++i){var u=s[i];for(y=0;y<2;++y)if(u.shape[y]!==o[y])throw new Error("gl-surface: coords have incorrect shape");this.padField(this._field[i],u)}}else if(e.ticks){var c=e.ticks;if(!Array.isArray(c)||2!==c.length)throw new Error("gl-surface: invalid ticks");for(i=0;i<2;++i){var d=c[i];if((Array.isArray(d)||d.length)&&(d=f(d)),d.shape[0]!==o[i])throw new Error("gl-surface: invalid tick length");var h=f(d.data,o);h.stride[i]=d.stride[0],h.stride[1^i]=0,this.padField(this._field[i],h)}}else{for(i=0;i<2;++i){var v=[0,0];v[i]=1,this._field[i]=f(this._field[i].data,[o[0]+2,o[1]+2],v,0)}this._field[0].set(0,0,0);for(var y=0;y<o[0];++y)this._field[0].set(y+1,0,y);for(this._field[0].set(o[0]+1,0,o[0]-1),this._field[1].set(0,0,0),y=0;y<o[1];++y)this._field[1].set(0,y+1,y);this._field[1].set(0,o[1]+1,o[1]-1)}var g=this._field,b=f(l.mallocFloat(3*g[2].size*2),[3,o[0]+2,o[1]+2,2]);for(i=0;i<3;++i)m(b.pick(i),g[i],"mirror");var x=f(l.mallocFloat(3*g[2].size),[o[0]+2,o[1]+2,3]);for(i=0;i<o[0]+2;++i)for(y=0;y<o[1]+2;++y){var _=b.get(0,i,y,0),w=b.get(0,i,y,1),k=b.get(1,i,y,0),E=b.get(1,i,y,1),O=b.get(2,i,y,0),M=b.get(2,i,y,1),S=k*M-E*O,C=O*w-M*_,A=_*E-w*k,P=Math.sqrt(S*S+C*C+A*A);P<1e-8?(P=Math.max(Math.abs(S),Math.abs(C),Math.abs(A)),P<1e-8?(A=1,C=S=0,P=1):P=1/P):P=1/Math.sqrt(P),x.set(i,y,0,S*P),x.set(i,y,1,C*P),x.set(i,y,2,A*P)}l.free(b.data);var L=[1/0,1/0,1/0],D=[-1/0,-1/0,-1/0],j=1/0,I=-1/0,R=(o[0]-1)*(o[1]-1)*6,z=l.mallocFloat(r.nextPow2(10*R)),N=0,B=0;for(i=0;i<o[0]-1;++i)e:for(y=0;y<o[1]-1;++y){for(var H=0;H<2;++H)for(var U=0;U<2;++U)for(var W=0;W<3;++W){var q=this._field[W].get(1+i+H,1+y+U);if(isNaN(q)||!isFinite(q))continue e}for(W=0;W<6;++W){var $=i+T[W][0],G=y+T[W][1],Y=this._field[0].get($+1,G+1),K=this._field[1].get($+1,G+1);q=this._field[2].get($+1,G+1),S=x.get($+1,G+1,0),C=x.get($+1,G+1,1),A=x.get($+1,G+1,2),e.intensity&&(X=e.intensity.get($,G));var X=e.intensity?e.intensity.get($,G):q+this.objectOffset[2];z[N++]=$,z[N++]=G,z[N++]=Y,z[N++]=K,z[N++]=q,z[N++]=0,z[N++]=X,z[N++]=S,z[N++]=C,z[N++]=A,L[0]=Math.min(L[0],Y+this.objectOffset[0]),L[1]=Math.min(L[1],K+this.objectOffset[1]),L[2]=Math.min(L[2],q+this.objectOffset[2]),j=Math.min(j,X),D[0]=Math.max(D[0],Y+this.objectOffset[0]),D[1]=Math.max(D[1],K+this.objectOffset[1]),D[2]=Math.max(D[2],q+this.objectOffset[2]),I=Math.max(I,X),B+=1}}for(e.intensityBounds&&(j=+e.intensityBounds[0],I=+e.intensityBounds[1]),i=6;i<N;i+=10)z[i]=(z[i]-j)/(I-j);this._vertexCount=B,this._coordinateBuffer.update(z.subarray(0,N)),l.freeFloat(z),l.free(x.data),this.bounds=[L,D],this.intensity=e.intensity||this._field[2],this.intensityBounds[0]===j&&this.intensityBounds[1]===I||(n=!0),this.intensityBounds=[j,I]}if("levels"in e){var Z=e.levels;for(Z=Array.isArray(Z[0])?Z.slice():[[],[],Z],i=0;i<3;++i)Z[i]=Z[i].slice(),Z[i].sort((function(e,t){return e-t}));for(i=0;i<3;++i)for(y=0;y<Z[i].length;++y)Z[i][y]-=this.objectOffset[i];e:for(i=0;i<3;++i){if(Z[i].length!==this.contourLevels[i].length){n=!0;break}for(y=0;y<Z[i].length;++y)if(Z[i][y]!==this.contourLevels[i][y]){n=!0;break e}}this.contourLevels=Z}if(n){g=this._field,o=this.shape;for(var J=[],Q=0;Q<3;++Q){var ee=this.contourLevels[Q],te=[],ne=[],re=[0,0,0];for(i=0;i<ee.length;++i){var ae=p(this._field[Q],ee[i]);te.push(J.length/5|0),B=0;e:for(y=0;y<ae.cells.length;++y){var oe=ae.cells[y];for(W=0;W<2;++W){var ie=ae.positions[oe[W]],le=ie[0],se=0|Math.floor(le),ue=le-se,ce=ie[1],fe=0|Math.floor(ce),pe=ce-fe,de=!1;t:for(var he=0;he<3;++he){re[he]=0;var ve=(Q+he+1)%3;for(H=0;H<2;++H){var me=H?ue:1-ue;for($=0|Math.min(Math.max(se+H,0),o[0]),U=0;U<2;++U){var ye=U?pe:1-pe;if(G=0|Math.min(Math.max(fe+U,0),o[1]),q=he<2?this._field[ve].get($,G):(this.intensity.get($,G)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(q)||isNaN(q)){de=!0;break t}var ge=me*ye;re[he]+=ge*q}}}if(de){if(W>0){for(var be=0;be<5;++be)J.pop();B-=1}continue e}J.push(re[0],re[1],ie[0],ie[1],re[2]),B+=1}}ne.push(B)}this._contourOffsets[Q]=te,this._contourCounts[Q]=ne}var xe=l.mallocFloat(J.length);for(i=0;i<J.length;++i)xe[i]=J[i];this._contourBuffer.update(xe),l.freeFloat(xe)}},C.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var e=0;e<3;++e)l.freeFloat(this._field[e].data)},C.highlight=function(e){var t,n;if(!e)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(t=0;t<3;++t)this.enableHighlight[t]?this.highlightLevel[t]=e.level[t]:this.highlightLevel[t]=-1;for(n=this.snapToData?e.dataCoordinate:e.position,t=0;t<3;++t)n[t]-=this.objectOffset[t];if(this.enableDynamic[0]&&n[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&&n[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&&n[2]!==this.dynamicLevel[2]){for(var r=0,a=this.shape,o=l.mallocFloat(12*a[0]*a[1]),i=0;i<3;++i)if(this.enableDynamic[i]){this.dynamicLevel[i]=n[i];var s=(i+1)%3,u=(i+2)%3,c=this._field[i],f=this._field[s],d=this._field[u],h=p(c,n[i]),v=h.cells,m=h.positions;for(this._dynamicOffsets[i]=r,t=0;t<v.length;++t)for(var y=v[t],g=0;g<2;++g){var b=m[y[g]],x=+b[0],_=0|x,w=0|Math.min(_+1,a[0]),k=x-_,T=1-k,E=+b[1],O=0|E,M=0|Math.min(O+1,a[1]),S=E-O,C=1-S,A=T*C,P=T*S,L=k*C,D=k*S,j=A*f.get(_,O)+P*f.get(_,M)+L*f.get(w,O)+D*f.get(w,M),I=A*d.get(_,O)+P*d.get(_,M)+L*d.get(w,O)+D*d.get(w,M);if(isNaN(j)||isNaN(I)){g&&(r-=1);break}o[2*r+0]=j,o[2*r+1]=I,r+=1}this._dynamicCounts[i]=r-this._dynamicOffsets[i]}else this.dynamicLevel[i]=NaN,this._dynamicCounts[i]=0;this._dynamicBuffer.update(o.subarray(0,2*r)),l.freeFloat(o)}}},{"./lib/shaders":324,"binary-search-bounds":96,"bit-twiddle":97,colormap:131,"gl-buffer":258,"gl-mat4/invert":278,"gl-mat4/multiply":280,"gl-texture2d":327,"gl-vao":332,ndarray:469,"ndarray-gradient":462,"ndarray-ops":464,"ndarray-pack":465,"surface-nets":542,"typedarray-pool":567}],326:[function(e,t,n){"use strict";var r=e("css-font"),a=e("pick-by-alias"),o=e("regl"),i=e("gl-util/context"),l=e("es6-weak-map"),s=e("color-normalize"),u=e("font-atlas"),c=e("typedarray-pool"),f=e("parse-rect"),p=e("is-plain-obj"),d=e("parse-unit"),h=e("to-px"),v=e("detect-kerning"),m=e("object-assign"),y=e("font-measure"),g=e("flatten-vertex-data"),b=e("bit-twiddle"),x=b.nextPow2,_=new l,w=!1;if(document.body){var k=document.body.appendChild(document.createElement("div"));k.style.font="italic small-caps bold condensed 16px/2 cursive",getComputedStyle(k).fontStretch&&(w=!0),document.body.removeChild(k)}var T=function(e){E(e)?(e={regl:e},this.gl=e.regl._gl):this.gl=i(e),this.shader=_.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=e.regl||o({gl:this.gl}),this.charBuffer=this.regl.buffer({type:"uint8",usage:"stream"}),this.sizeBuffer=this.regl.buffer({type:"float",usage:"stream"}),this.shader||(this.shader=this.createShader(),_.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(p(e)?e:{})};function E(e){return"function"===typeof e&&e._gl&&e.prop&&e.texture&&e.buffer}T.prototype.createShader=function(){var e=this.regl,t=e({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},stencil:{enable:!1},depth:{enable:!1},count:e.prop("count"),offset:e.prop("offset"),attributes:{charOffset:{offset:4,stride:8,buffer:e.this("sizeBuffer")},width:{offset:0,stride:8,buffer:e.this("sizeBuffer")},char:e.this("charBuffer"),position:e.this("position")},uniforms:{atlasSize:function(e,t){return[t.atlas.width,t.atlas.height]},atlasDim:function(e,t){return[t.atlas.cols,t.atlas.rows]},atlas:function(e,t){return t.atlas.texture},charStep:function(e,t){return t.atlas.step},em:function(e,t){return t.atlas.em},color:e.prop("color"),opacity:e.prop("opacity"),viewport:e.this("viewportArray"),scale:e.this("scale"),align:e.prop("align"),baseline:e.prop("baseline"),translate:e.this("translate"),positionOffset:e.prop("positionOffset")},primitive:"points",viewport:e.this("viewport"),vert:"\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\t"+(T.normalViewport?"":"vec2 positionOffset = vec2(positionOffset.x,- positionOffset.y);")+"\n\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ positionOffset))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\t"+(T.normalViewport?"position.y = 1. - position.y;":"")+"\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}",frag:"\n\t\t\tprecision highp float;\n\t\t\tuniform sampler2D atlas;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) > halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) < halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}"}),n={};return{regl:e,draw:t,atlas:n}},T.prototype.update=function(e){var t=this;if("string"===typeof e)e={text:e};else if(!e)return;e=a(e,{position:"position positions coord coords coordinates",font:"font fontFace fontface typeface cssFont css-font family fontFamily",fontSize:"fontSize fontsize size font-size",text:"text texts chars characters value values symbols",align:"align alignment textAlign textbaseline",baseline:"baseline textBaseline textbaseline",direction:"dir direction textDirection",color:"color colour fill fill-color fillColor textColor textcolor",kerning:"kerning kern",range:"range dataBox",viewport:"vp viewport viewBox viewbox viewPort",opacity:"opacity alpha transparency visible visibility opaque",offset:"offset positionOffset padding shift indent indentation"},!0),null!=e.opacity&&(Array.isArray(e.opacity)?this.opacity=e.opacity.map((function(e){return parseFloat(e)})):this.opacity=parseFloat(e.opacity)),null!=e.viewport&&(this.viewport=f(e.viewport),T.normalViewport&&(this.viewport.y=this.canvas.height-this.viewport.y-this.viewport.height),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&&(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=e.kerning&&(this.kerning=e.kerning),null!=e.offset&&("number"===typeof e.offset&&(e.offset=[e.offset,0]),this.positionOffset=g(e.offset)),e.direction&&(this.direction=e.direction),e.range&&(this.range=e.range,this.scale=[1/(e.range[2]-e.range[0]),1/(e.range[3]-e.range[1])],this.translate=[-e.range[0],-e.range[1]]),e.scale&&(this.scale=e.scale),e.translate&&(this.translate=e.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||e.font||(e.font=T.baseFontSize+"px sans-serif");var n,o=!1,i=!1;if(e.font&&(Array.isArray(e.font)?e.font:[e.font]).forEach((function(e,n){if("string"===typeof e)try{e=r.parse(e)}catch(f){e=r.parse(T.baseFontSize+"px "+e)}else e=r.parse(r.stringify(e));var a=r.stringify({size:T.baseFontSize,family:e.family,stretch:w?e.stretch:void 0,variant:e.variant,weight:e.weight,style:e.style}),l=d(e.size),s=Math.round(l[0]*h(l[1]));if(s!==t.fontSize[n]&&(i=!0,t.fontSize[n]=s),(!t.font[n]||a!=t.font[n].baseString)&&(o=!0,t.font[n]=T.fonts[a],!t.font[n])){var u=e.family.join(", "),c=[e.style];e.style!=e.variant&&c.push(e.variant),e.variant!=e.weight&&c.push(e.weight),w&&e.weight!=e.stretch&&c.push(e.stretch),t.font[n]={baseString:a,family:u,weight:e.weight,stretch:e.stretch,style:e.style,variant:e.variant,width:{},kerning:{},metrics:y(u,{origin:"top",fontSize:T.baseFontSize,fontStyle:c.join(" ")})},T.fonts[a]=t.font[n]}})),(o||i)&&this.font.forEach((function(n,a){var o=r.stringify({size:t.fontSize[a],family:n.family,stretch:w?n.stretch:void 0,variant:n.variant,weight:n.weight,style:n.style});if(t.fontAtlas[a]=t.shader.atlas[o],!t.fontAtlas[a]){var i=n.metrics;t.shader.atlas[o]=t.fontAtlas[a]={fontString:o,step:2*Math.ceil(t.fontSize[a]*i.bottom*.5),em:t.fontSize[a],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:t.regl.texture()}}null==e.text&&(e.text=t.text)})),"string"===typeof e.text&&e.position&&e.position.length>2){for(var l=Array(.5*e.position.length),p=0;p<l.length;p++)l[p]=e.text;e.text=l}if(null!=e.text||o){if(this.textOffsets=[0],Array.isArray(e.text)){this.count=e.text[0].length,this.counts=[this.count];for(var b=1;b<e.text.length;b++)this.textOffsets[b]=this.textOffsets[b-1]+e.text[b-1].length,this.count+=e.text[b].length,this.counts.push(e.text[b].length);this.text=e.text.join("")}else this.text=e.text,this.count=this.text.length,this.counts=[this.count];n=[],this.font.forEach((function(e,r){T.atlasContext.font=e.baseString;for(var a=t.fontAtlas[r],o=0;o<t.text.length;o++){var i=t.text.charAt(o);if(null==a.ids[i]&&(a.ids[i]=a.chars.length,a.chars.push(i),n.push(i)),null==e.width[i]&&(e.width[i]=T.atlasContext.measureText(i).width/T.baseFontSize,t.kerning)){var l=[];for(var s in e.width)l.push(s+i,i+s);m(e.kerning,v(e.family,{pairs:l}))}}}))}if(e.position)if(e.position.length>2){for(var _=!e.position[0].length,k=c.mallocFloat(2*this.count),E=0,O=0;E<this.counts.length;E++){var M=this.counts[E];if(_)for(var S=0;S<M;S++)k[O++]=e.position[2*E],k[O++]=e.position[2*E+1];else for(var C=0;C<M;C++)k[O++]=e.position[E][0],k[O++]=e.position[E][1]}this.position.call?this.position({type:"float",data:k}):this.position=this.regl.buffer({type:"float",data:k}),c.freeFloat(k)}else this.position.destroy&&this.position.destroy(),this.position={constant:e.position};if(e.text||o){var A=c.mallocUint8(this.count),P=c.mallocFloat(2*this.count);this.textWidth=[];for(var L=0,D=0;L<this.counts.length;L++){for(var j=this.counts[L],I=this.font[L]||this.font[0],R=this.fontAtlas[L]||this.fontAtlas[0],z=0;z<j;z++){var N=this.text.charAt(D),F=this.text.charAt(D-1);if(A[D]=R.ids[N],P[2*D]=I.width[N],z){var B=P[2*D-2],V=P[2*D],H=P[2*D-1],U=H+.5*B+.5*V;if(this.kerning){var W=I.kerning[F+N];W&&(U+=.001*W)}P[2*D+1]=U}else P[2*D+1]=.5*P[2*D];D++}this.textWidth.push(P.length?.5*P[2*D-2]+P[2*D-1]:0)}e.align||(e.align=this.align),this.charBuffer({data:A,type:"uint8",usage:"stream"}),this.sizeBuffer({data:P,type:"float",usage:"stream"}),c.freeUint8(A),c.freeFloat(P),n.length&&this.font.forEach((function(e,n){var r=t.fontAtlas[n],a=r.step,o=Math.floor(T.maxAtlasSize/a),i=Math.min(o,r.chars.length),l=Math.ceil(r.chars.length/i),s=x(i*a),c=x(l*a);r.width=s,r.height=c,r.rows=l,r.cols=i,r.em&&r.texture({data:u({canvas:T.atlasCanvas,font:r.fontString,chars:r.chars,shape:[s,c],step:[a,a]})})}))}if(e.align&&(this.align=e.align,this.alignOffset=this.textWidth.map((function(e,n){var r=Array.isArray(t.align)?t.align.length>1?t.align[n]:t.align[0]:t.align;if("number"===typeof r)return r;switch(r){case"right":case"end":return-e;case"center":case"centre":case"middle":return.5*-e}return 0}))),null==this.baseline&&null==e.baseline&&(e.baseline=0),null!=e.baseline&&(this.baseline=e.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(e,n){var r=(t.font[n]||t.font[0]).metrics,a=0;return a+=.5*r.bottom,a+="number"===typeof e?e-r.baseline:-r[e],T.normalViewport||(a*=-1),a}))),null!=e.color)if(e.color||(e.color="transparent"),"string"!==typeof e.color&&isNaN(e.color)){var q;if("number"===typeof e.color[0]&&e.color.length>this.counts.length){var $=e.color.length;q=c.mallocUint8($);for(var G=(e.color.subarray||e.color.slice).bind(e.color),Y=0;Y<$;Y+=4)q.set(s(G(Y,Y+4),"uint8"),Y)}else{var K=e.color.length;q=c.mallocUint8(4*K);for(var X=0;X<K;X++)q.set(s(e.color[X]||0,"uint8"),4*X)}this.color=q}else this.color=s(e.color,"uint8");if(e.position||e.text||e.color||e.baseline||e.align||e.font||e.offset||e.opacity){var Z=this.color.length>4||this.baselineOffset.length>1||this.align&&this.align.length>1||this.fontAtlas.length>1||this.positionOffset.length>2;if(Z){var J=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(J);for(var Q=0;Q<this.batch.length;Q++)this.batch[Q]={count:this.counts.length>1?this.counts[Q]:this.counts[0],offset:this.textOffsets.length>1?this.textOffsets[Q]:this.textOffsets[0],color:this.color?this.color.length<=4?this.color:this.color.subarray(4*Q,4*Q+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[Q]:this.opacity,baseline:null!=this.baselineOffset[Q]?this.baselineOffset[Q]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[Q]?this.alignOffset[Q]:this.alignOffset[0]:0,atlas:this.fontAtlas[Q]||this.fontAtlas[0],positionOffset:this.positionOffset.length>2?this.positionOffset.subarray(2*Q,2*Q+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]}},T.prototype.destroy=function(){},T.prototype.kerning=!0,T.prototype.position={constant:new Float32Array(2)},T.prototype.translate=null,T.prototype.scale=null,T.prototype.font=null,T.prototype.text="",T.prototype.positionOffset=[0,0],T.prototype.opacity=1,T.prototype.color=new Uint8Array([0,0,0,255]),T.prototype.alignOffset=[0,0],T.normalViewport=!1,T.maxAtlasSize=1024,T.atlasCanvas=document.createElement("canvas"),T.atlasContext=T.atlasCanvas.getContext("2d",{alpha:!1}),T.baseFontSize=64,T.fonts={},t.exports=T},{"bit-twiddle":97,"color-normalize":125,"css-font":144,"detect-kerning":172,"es6-weak-map":233,"flatten-vertex-data":244,"font-atlas":245,"font-measure":246,"gl-util/context":328,"is-plain-obj":443,"object-assign":473,"parse-rect":478,"parse-unit":480,"pick-by-alias":485,regl:512,"to-px":550,"typedarray-pool":567}],327:[function(e,t,n){"use strict";var r=e("ndarray"),a=e("ndarray-ops"),o=e("typedarray-pool");t.exports=_;var i=null,l=null,s=null;function u(e){i=[e.LINEAR,e.NEAREST_MIPMAP_LINEAR,e.LINEAR_MIPMAP_NEAREST,e.LINEAR_MIPMAP_NEAREST],l=[e.NEAREST,e.LINEAR,e.NEAREST_MIPMAP_NEAREST,e.NEAREST_MIPMAP_LINEAR,e.LINEAR_MIPMAP_NEAREST,e.LINEAR_MIPMAP_LINEAR],s=[e.REPEAT,e.CLAMP_TO_EDGE,e.MIRRORED_REPEAT]}function c(e){return"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement||"undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement||"undefined"!=typeof HTMLVideoElement&&e instanceof HTMLVideoElement||"undefined"!=typeof ImageData&&e instanceof ImageData}var f=function(e,t){a.muls(e,t,255)};function p(e,t,n){var r=e.gl,a=r.getParameter(r.MAX_TEXTURE_SIZE);if(t<0||t>a||n<0||n>a)throw new Error("gl-texture2d: Invalid texture size");return e._shape=[t,n],e.bind(),r.texImage2D(r.TEXTURE_2D,0,e.format,t,n,0,e.format,e.type,null),e._mipLevels=[0],e}function d(e,t,n,r,a,o){this.gl=e,this.handle=t,this.format=a,this.type=o,this._shape=[n,r],this._mipLevels=[0],this._magFilter=e.NEAREST,this._minFilter=e.NEAREST,this._wrapS=e.CLAMP_TO_EDGE,this._wrapT=e.CLAMP_TO_EDGE,this._anisoSamples=1;var i=this,l=[this._wrapS,this._wrapT];Object.defineProperties(l,[{get:function(){return i._wrapS},set:function(e){return i.wrapS=e}},{get:function(){return i._wrapT},set:function(e){return i.wrapT=e}}]),this._wrapVector=l;var s=[this._shape[0],this._shape[1]];Object.defineProperties(s,[{get:function(){return i._shape[0]},set:function(e){return i.width=e}},{get:function(){return i._shape[1]},set:function(e){return i.height=e}}]),this._shapeVector=s}var h=d.prototype;function v(e,t){return 3===e.length?1===t[2]&&t[1]===e[0]*e[2]&&t[0]===e[2]:1===t[0]&&t[1]===e[0]}function m(e,t,n,i,l,s,u,c){var p=c.dtype,d=c.shape.slice();if(d.length<2||d.length>3)throw new Error("gl-texture2d: Invalid ndarray, must be 2d or 3d");var h=0,m=0,y=v(d,c.stride.slice());"float32"===p?h=e.FLOAT:"float64"===p?(h=e.FLOAT,y=!1,p="float32"):"uint8"===p?h=e.UNSIGNED_BYTE:(h=e.UNSIGNED_BYTE,y=!1,p="uint8");if(2===d.length)m=e.LUMINANCE,d=[d[0],d[1],1],c=r(c.data,d,[c.stride[0],c.stride[1],1],c.offset);else{if(3!==d.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===d[2])m=e.ALPHA;else if(2===d[2])m=e.LUMINANCE_ALPHA;else if(3===d[2])m=e.RGB;else{if(4!==d[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");m=e.RGBA}d[2]}if(m!==e.LUMINANCE&&m!==e.ALPHA||l!==e.LUMINANCE&&l!==e.ALPHA||(m=l),m!==l)throw new Error("gl-texture2d: Incompatible texture format for setPixels");var g=c.size,b=u.indexOf(i)<0;if(b&&u.push(i),h===s&&y)0===c.offset&&c.data.length===g?b?e.texImage2D(e.TEXTURE_2D,i,l,d[0],d[1],0,l,s,c.data):e.texSubImage2D(e.TEXTURE_2D,i,t,n,d[0],d[1],l,s,c.data):b?e.texImage2D(e.TEXTURE_2D,i,l,d[0],d[1],0,l,s,c.data.subarray(c.offset,c.offset+g)):e.texSubImage2D(e.TEXTURE_2D,i,t,n,d[0],d[1],l,s,c.data.subarray(c.offset,c.offset+g));else{var x;x=s===e.FLOAT?o.mallocFloat32(g):o.mallocUint8(g);var _=r(x,d,[d[2],d[2]*d[0],1]);h===e.FLOAT&&s===e.UNSIGNED_BYTE?f(_,c):a.assign(_,c),b?e.texImage2D(e.TEXTURE_2D,i,l,d[0],d[1],0,l,s,x.subarray(0,g)):e.texSubImage2D(e.TEXTURE_2D,i,t,n,d[0],d[1],l,s,x.subarray(0,g)),s===e.FLOAT?o.freeFloat32(x):o.freeUint8(x)}}function y(e){var t=e.createTexture();return e.bindTexture(e.TEXTURE_2D,t),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE),t}function g(e,t,n,r,a){var o=e.getParameter(e.MAX_TEXTURE_SIZE);if(t<0||t>o||n<0||n>o)throw new Error("gl-texture2d: Invalid texture shape");if(a===e.FLOAT&&!e.getExtension("OES_texture_float"))throw new Error("gl-texture2d: Floating point textures not supported on this platform");var i=y(e);return e.texImage2D(e.TEXTURE_2D,0,r,t,n,0,r,a,null),new d(e,i,t,n,r,a)}function b(e,t,n,r,a,o){var i=y(e);return e.texImage2D(e.TEXTURE_2D,0,a,a,o,t),new d(e,i,n,r,a,o)}function x(e,t){var n=t.dtype,i=t.shape.slice(),l=e.getParameter(e.MAX_TEXTURE_SIZE);if(i[0]<0||i[0]>l||i[1]<0||i[1]>l)throw new Error("gl-texture2d: Invalid texture size");var s=v(i,t.stride.slice()),u=0;"float32"===n?u=e.FLOAT:"float64"===n?(u=e.FLOAT,s=!1,n="float32"):"uint8"===n?u=e.UNSIGNED_BYTE:(u=e.UNSIGNED_BYTE,s=!1,n="uint8");var c,p,h=0;if(2===i.length)h=e.LUMINANCE,i=[i[0],i[1],1],t=r(t.data,i,[t.stride[0],t.stride[1],1],t.offset);else{if(3!==i.length)throw new Error("gl-texture2d: Invalid shape for texture");if(1===i[2])h=e.ALPHA;else if(2===i[2])h=e.LUMINANCE_ALPHA;else if(3===i[2])h=e.RGB;else{if(4!==i[2])throw new Error("gl-texture2d: Invalid shape for pixel coords");h=e.RGBA}}u!==e.FLOAT||e.getExtension("OES_texture_float")||(u=e.UNSIGNED_BYTE,s=!1);var m=t.size;if(s)c=0===t.offset&&t.data.length===m?t.data:t.data.subarray(t.offset,t.offset+m);else{var g=[i[2],i[2]*i[0],1];p=o.malloc(m,n);var b=r(p,i,g,0);"float32"!==n&&"float64"!==n||u!==e.UNSIGNED_BYTE?a.assign(b,t):f(b,t),c=p.subarray(0,m)}var x=y(e);return e.texImage2D(e.TEXTURE_2D,0,h,i[0],i[1],0,h,u,c),s||o.free(p),new d(e,x,i[0],i[1],h,u)}function _(e){if(arguments.length<=1)throw new Error("gl-texture2d: Missing arguments for texture2d constructor");if(i||u(e),"number"===typeof arguments[1])return g(e,arguments[1],arguments[2],arguments[3]||e.RGBA,arguments[4]||e.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return g(e,0|arguments[1][0],0|arguments[1][1],arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if("object"===typeof arguments[1]){var t=arguments[1],n=c(t)?t:t.raw;if(n)return b(e,n,0|t.width,0|t.height,arguments[2]||e.RGBA,arguments[3]||e.UNSIGNED_BYTE);if(t.shape&&t.data&&t.stride)return x(e,t)}throw new Error("gl-texture2d: Invalid arguments for texture2d constructor")}Object.defineProperties(h,{minFilter:{get:function(){return this._minFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&i.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),l.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e),this._minFilter=e}},magFilter:{get:function(){return this._magFilter},set:function(e){this.bind();var t=this.gl;if(this.type===t.FLOAT&&i.indexOf(e)>=0&&(t.getExtension("OES_texture_float_linear")||(e=t.NEAREST)),l.indexOf(e)<0)throw new Error("gl-texture2d: Unknown filter mode "+e);return t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e),this._magFilter=e}},mipSamples:{get:function(){return this._anisoSamples},set:function(e){var t=this._anisoSamples;if(this._anisoSamples=0|Math.max(e,1),t!==this._anisoSamples){var n=this.gl.getExtension("EXT_texture_filter_anisotropic");n&&this.gl.texParameterf(this.gl.TEXTURE_2D,n.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(e){if(this.bind(),s.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,e),this._wrapS=e}},wrapT:{get:function(){return this._wrapT},set:function(e){if(this.bind(),s.indexOf(e)<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,e),this._wrapT=e}},wrap:{get:function(){return this._wrapVector},set:function(e){if(Array.isArray(e)||(e=[e,e]),2!==e.length)throw new Error("gl-texture2d: Must specify wrap mode for rows and columns");for(var t=0;t<2;++t)if(s.indexOf(e[t])<0)throw new Error("gl-texture2d: Unknown wrap mode "+e);this._wrapS=e[0],this._wrapT=e[1];var n=this.gl;return this.bind(),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,this._wrapS),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,this._wrapT),e}},shape:{get:function(){return this._shapeVector},set:function(e){if(Array.isArray(e)){if(2!==e.length)throw new Error("gl-texture2d: Invalid texture shape")}else e=[0|e,0|e];return p(this,0|e[0],0|e[1]),[0|e[0],0|e[1]]}},width:{get:function(){return this._shape[0]},set:function(e){return e|=0,p(this,e,this._shape[1]),e}},height:{get:function(){return this._shape[1]},set:function(e){return e|=0,p(this,this._shape[0],e),e}}}),h.bind=function(e){var t=this.gl;return void 0!==e&&t.activeTexture(t.TEXTURE0+(0|e)),t.bindTexture(t.TEXTURE_2D,this.handle),void 0!==e?0|e:t.getParameter(t.ACTIVE_TEXTURE)-t.TEXTURE0},h.dispose=function(){this.gl.deleteTexture(this.handle)},h.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var e=Math.min(this._shape[0],this._shape[1]),t=0;e>0;++t,e>>>=1)this._mipLevels.indexOf(t)<0&&this._mipLevels.push(t)},h.setPixels=function(e,t,n,r){var a=this.gl;this.bind(),Array.isArray(t)?(r=n,n=0|t[1],t=0|t[0]):(t=t||0,n=n||0),r=r||0;var o=c(e)?e:e.raw;if(o){var i=this._mipLevels.indexOf(r)<0;i?(a.texImage2D(a.TEXTURE_2D,0,this.format,this.format,this.type,o),this._mipLevels.push(r)):a.texSubImage2D(a.TEXTURE_2D,r,t,n,this.format,this.type,o)}else{if(!(e.shape&&e.stride&&e.data))throw new Error("gl-texture2d: Unsupported data type");if(e.shape.length<2||t+e.shape[1]>this._shape[1]>>>r||n+e.shape[0]>this._shape[0]>>>r||t<0||n<0)throw new Error("gl-texture2d: Texture dimensions are out of bounds");m(a,t,n,r,this.format,this.type,this._mipLevels,e)}}},{ndarray:469,"ndarray-ops":464,"typedarray-pool":567}],328:[function(e,n,r){(function(t){"use strict";var r=e("pick-by-alias");function a(e){if(e.container)if(e.container==document.body)document.body.style.width||(e.canvas.width=e.width||e.pixelRatio*t.innerWidth),document.body.style.height||(e.canvas.height=e.height||e.pixelRatio*t.innerHeight);else{var n=e.container.getBoundingClientRect();e.canvas.width=e.width||n.right-n.left,e.canvas.height=e.height||n.bottom-n.top}}function o(e){return"function"===typeof e.getContext&&"width"in e&&"height"in e}function i(e){return"string"===typeof e.nodeName&&"function"===typeof e.appendChild&&"function"===typeof e.getBoundingClientRect}function l(e){return"function"===typeof e.drawArrays||"function"===typeof e.drawElements}function s(){var e=document.createElement("canvas");return e.style.position="absolute",e.style.top=0,e.style.left=0,e}n.exports=function(e){if(e?"string"===typeof e&&(e={container:e}):e={},e=o(e)||i(e)?{container:e}:l(e)?{gl:e}:r(e,{container:"container target element el canvas holder parent parentNode wrapper use ref root node",gl:"gl context webgl glContext",attrs:"attributes attrs contextAttributes",pixelRatio:"pixelRatio pxRatio px ratio pxratio pixelratio",width:"w width",height:"h height"},!0),e.pixelRatio||(e.pixelRatio=t.pixelRatio||1),e.gl)return e.gl;if(e.canvas&&(e.container=e.canvas.parentNode),e.container){if("string"===typeof e.container){var n=document.querySelector(e.container);if(!n)throw Error("Element "+e.container+" is not found");e.container=n}o(e.container)?(e.canvas=e.container,e.container=e.canvas.parentNode):e.canvas||(e.canvas=s(),e.container.appendChild(e.canvas),a(e))}else if(!e.canvas){if("undefined"===typeof document)throw Error("Not DOM environment. Use headless-gl.");e.container=document.body||document.documentElement,e.canvas=s(),e.container.appendChild(e.canvas),a(e)}if(!e.gl)try{e.gl=e.canvas.getContext("webgl",e.attrs)}catch(u){try{e.gl=e.canvas.getContext("experimental-webgl",e.attrs)}catch(u){e.gl=e.canvas.getContext("webgl-experimental",e.attrs)}}return e.gl}}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"pick-by-alias":485}],329:[function(e,t,n){"use strict";function r(e,t,n){t?t.bind():e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,null);var r=0|e.getParameter(e.MAX_VERTEX_ATTRIBS);if(n){if(n.length>r)throw new Error("gl-vao: Too many vertex attributes");for(var a=0;a<n.length;++a){var o=n[a];if(o.buffer){var i=o.buffer,l=o.size||4,s=o.type||e.FLOAT,u=!!o.normalized,c=o.stride||0,f=o.offset||0;i.bind(),e.enableVertexAttribArray(a),e.vertexAttribPointer(a,l,s,u,c,f)}else{if("number"===typeof o)e.vertexAttrib1f(a,o);else if(1===o.length)e.vertexAttrib1f(a,o[0]);else if(2===o.length)e.vertexAttrib2f(a,o[0],o[1]);else if(3===o.length)e.vertexAttrib3f(a,o[0],o[1],o[2]);else{if(4!==o.length)throw new Error("gl-vao: Invalid vertex attribute");e.vertexAttrib4f(a,o[0],o[1],o[2],o[3])}e.disableVertexAttribArray(a)}}for(;a<r;++a)e.disableVertexAttribArray(a)}else{e.bindBuffer(e.ARRAY_BUFFER,null);for(a=0;a<r;++a)e.disableVertexAttribArray(a)}}t.exports=r},{}],330:[function(e,t,n){"use strict";var r=e("./do-bind.js");function a(e){this.gl=e,this._elements=null,this._attributes=null,this._elementsType=e.UNSIGNED_SHORT}function o(e){return new a(e)}a.prototype.bind=function(){r(this.gl,this._elements,this._attributes)},a.prototype.update=function(e,t,n){this._elements=t,this._attributes=e,this._elementsType=n||this.gl.UNSIGNED_SHORT},a.prototype.dispose=function(){},a.prototype.unbind=function(){},a.prototype.draw=function(e,t,n){n=n||0;var r=this.gl;this._elements?r.drawElements(e,t,this._elementsType,n):r.drawArrays(e,n,t)},t.exports=o},{"./do-bind.js":329}],331:[function(e,t,n){"use strict";var r=e("./do-bind.js");function a(e,t,n,r,a,o){this.location=e,this.dimension=t,this.a=n,this.b=r,this.c=a,this.d=o}function o(e,t,n){this.gl=e,this._ext=t,this.handle=n,this._attribs=[],this._useElements=!1,this._elementsType=e.UNSIGNED_SHORT}function i(e,t){return new o(e,t,t.createVertexArrayOES())}a.prototype.bind=function(e){switch(this.dimension){case 1:e.vertexAttrib1f(this.location,this.a);break;case 2:e.vertexAttrib2f(this.location,this.a,this.b);break;case 3:e.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:e.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d);break}},o.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var e=0;e<this._attribs.length;++e)this._attribs[e].bind(this.gl)},o.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},o.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},o.prototype.update=function(e,t,n){if(this.bind(),r(this.gl,t,e),this.unbind(),this._attribs.length=0,e)for(var o=0;o<e.length;++o){var i=e[o];"number"===typeof i?this._attribs.push(new a(o,1,i)):Array.isArray(i)&&this._attribs.push(new a(o,i.length,i[0],i[1],i[2],i[3]))}this._useElements=!!t,this._elementsType=n||this.gl.UNSIGNED_SHORT},o.prototype.draw=function(e,t,n){n=n||0;var r=this.gl;this._useElements?r.drawElements(e,t,this._elementsType,n):r.drawArrays(e,n,t)},t.exports=i},{"./do-bind.js":329}],332:[function(e,t,n){"use strict";var r=e("./lib/vao-native.js"),a=e("./lib/vao-emulated.js");function o(e){this.bindVertexArrayOES=e.bindVertexArray.bind(e),this.createVertexArrayOES=e.createVertexArray.bind(e),this.deleteVertexArrayOES=e.deleteVertexArray.bind(e)}function i(e,t,n,i){var l,s=e.createVertexArray?new o(e):e.getExtension("OES_vertex_array_object");return l=s?r(e,s):a(e),l.update(t,n,i),l}t.exports=i},{"./lib/vao-emulated.js":330,"./lib/vao-native.js":331}],333:[function(e,t,n){function r(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e}t.exports=r},{}],334:[function(e,t,n){t.exports=i;var r=e("./fromValues"),a=e("./normalize"),o=e("./dot");function i(e,t){var n=r(e[0],e[1],e[2]),i=r(t[0],t[1],t[2]);a(n,n),a(i,i);var l=o(n,i);return l>1?0:Math.acos(l)}},{"./dot":344,"./fromValues":350,"./normalize":361}],335:[function(e,t,n){function r(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e}t.exports=r},{}],336:[function(e,t,n){function r(e){var t=new Float32Array(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}t.exports=r},{}],337:[function(e,t,n){function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}t.exports=r},{}],338:[function(e,t,n){function r(){var e=new Float32Array(3);return e[0]=0,e[1]=0,e[2]=0,e}t.exports=r},{}],339:[function(e,t,n){function r(e,t,n){var r=t[0],a=t[1],o=t[2],i=n[0],l=n[1],s=n[2];return e[0]=a*s-o*l,e[1]=o*i-r*s,e[2]=r*l-a*i,e}t.exports=r},{}],340:[function(e,t,n){t.exports=e("./distance")},{"./distance":341}],341:[function(e,t,n){function r(e,t){var n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2];return Math.sqrt(n*n+r*r+a*a)}t.exports=r},{}],342:[function(e,t,n){t.exports=e("./divide")},{"./divide":343}],343:[function(e,t,n){function r(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e}t.exports=r},{}],344:[function(e,t,n){function r(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}t.exports=r},{}],345:[function(e,t,n){t.exports=1e-6},{}],346:[function(e,t,n){t.exports=a;var r=e("./epsilon");function a(e,t){var n=e[0],a=e[1],o=e[2],i=t[0],l=t[1],s=t[2];return Math.abs(n-i)<=r*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(a-l)<=r*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(o-s)<=r*Math.max(1,Math.abs(o),Math.abs(s))}},{"./epsilon":345}],347:[function(e,t,n){function r(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}t.exports=r},{}],348:[function(e,t,n){function r(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e}t.exports=r},{}],349:[function(e,t,n){t.exports=a;var r=e("./create")();function a(e,t,n,a,o,i){var l,s;for(t||(t=3),n||(n=0),s=a?Math.min(a*t+n,e.length):e.length,l=n;l<s;l+=t)r[0]=e[l],r[1]=e[l+1],r[2]=e[l+2],o(r,r,i),e[l]=r[0],e[l+1]=r[1],e[l+2]=r[2];return e}},{"./create":338}],350:[function(e,t,n){function r(e,t,n){var r=new Float32Array(3);return r[0]=e,r[1]=t,r[2]=n,r}t.exports=r},{}],351:[function(e,t,n){t.exports={EPSILON:e("./epsilon"),create:e("./create"),clone:e("./clone"),angle:e("./angle"),fromValues:e("./fromValues"),copy:e("./copy"),set:e("./set"),equals:e("./equals"),exactEquals:e("./exactEquals"),add:e("./add"),subtract:e("./subtract"),sub:e("./sub"),multiply:e("./multiply"),mul:e("./mul"),divide:e("./divide"),div:e("./div"),min:e("./min"),max:e("./max"),floor:e("./floor"),ceil:e("./ceil"),round:e("./round"),scale:e("./scale"),scaleAndAdd:e("./scaleAndAdd"),distance:e("./distance"),dist:e("./dist"),squaredDistance:e("./squaredDistance"),sqrDist:e("./sqrDist"),length:e("./length"),len:e("./len"),squaredLength:e("./squaredLength"),sqrLen:e("./sqrLen"),negate:e("./negate"),inverse:e("./inverse"),normalize:e("./normalize"),dot:e("./dot"),cross:e("./cross"),lerp:e("./lerp"),random:e("./random"),transformMat4:e("./transformMat4"),transformMat3:e("./transformMat3"),transformQuat:e("./transformQuat"),rotateX:e("./rotateX"),rotateY:e("./rotateY"),rotateZ:e("./rotateZ"),forEach:e("./forEach")}},{"./add":333,"./angle":334,"./ceil":335,"./clone":336,"./copy":337,"./create":338,"./cross":339,"./dist":340,"./distance":341,"./div":342,"./divide":343,"./dot":344,"./epsilon":345,"./equals":346,"./exactEquals":347,"./floor":348,"./forEach":349,"./fromValues":350,"./inverse":352,"./len":353,"./length":354,"./lerp":355,"./max":356,"./min":357,"./mul":358,"./multiply":359,"./negate":360,"./normalize":361,"./random":362,"./rotateX":363,"./rotateY":364,"./rotateZ":365,"./round":366,"./scale":367,"./scaleAndAdd":368,"./set":369,"./sqrDist":370,"./sqrLen":371,"./squaredDistance":372,"./squaredLength":373,"./sub":374,"./subtract":375,"./transformMat3":376,"./transformMat4":377,"./transformQuat":378}],352:[function(e,t,n){function r(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}t.exports=r},{}],353:[function(e,t,n){t.exports=e("./length")},{"./length":354}],354:[function(e,t,n){function r(e){var t=e[0],n=e[1],r=e[2];return Math.sqrt(t*t+n*n+r*r)}t.exports=r},{}],355:[function(e,t,n){function r(e,t,n,r){var a=t[0],o=t[1],i=t[2];return e[0]=a+r*(n[0]-a),e[1]=o+r*(n[1]-o),e[2]=i+r*(n[2]-i),e}t.exports=r},{}],356:[function(e,t,n){function r(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e}t.exports=r},{}],357:[function(e,t,n){function r(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e}t.exports=r},{}],358:[function(e,t,n){t.exports=e("./multiply")},{"./multiply":359}],359:[function(e,t,n){function r(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e}t.exports=r},{}],360:[function(e,t,n){function r(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}t.exports=r},{}],361:[function(e,t,n){function r(e,t){var n=t[0],r=t[1],a=t[2],o=n*n+r*r+a*a;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}t.exports=r},{}],362:[function(e,t,n){function r(e,t){t=t||1;var n=2*Math.random()*Math.PI,r=2*Math.random()-1,a=Math.sqrt(1-r*r)*t;return e[0]=Math.cos(n)*a,e[1]=Math.sin(n)*a,e[2]=r*t,e}t.exports=r},{}],363:[function(e,t,n){function r(e,t,n,r){var a=n[1],o=n[2],i=t[1]-a,l=t[2]-o,s=Math.sin(r),u=Math.cos(r);return e[0]=t[0],e[1]=a+i*u-l*s,e[2]=o+i*s+l*u,e}t.exports=r},{}],364:[function(e,t,n){function r(e,t,n,r){var a=n[0],o=n[2],i=t[0]-a,l=t[2]-o,s=Math.sin(r),u=Math.cos(r);return e[0]=a+l*s+i*u,e[1]=t[1],e[2]=o+l*u-i*s,e}t.exports=r},{}],365:[function(e,t,n){function r(e,t,n,r){var a=n[0],o=n[1],i=t[0]-a,l=t[1]-o,s=Math.sin(r),u=Math.cos(r);return e[0]=a+i*u-l*s,e[1]=o+i*s+l*u,e[2]=t[2],e}t.exports=r},{}],366:[function(e,t,n){function r(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e}t.exports=r},{}],367:[function(e,t,n){function r(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e}t.exports=r},{}],368:[function(e,t,n){function r(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e}t.exports=r},{}],369:[function(e,t,n){function r(e,t,n,r){return e[0]=t,e[1]=n,e[2]=r,e}t.exports=r},{}],370:[function(e,t,n){t.exports=e("./squaredDistance")},{"./squaredDistance":372}],371:[function(e,t,n){t.exports=e("./squaredLength")},{"./squaredLength":373}],372:[function(e,t,n){function r(e,t){var n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2];return n*n+r*r+a*a}t.exports=r},{}],373:[function(e,t,n){function r(e){var t=e[0],n=e[1],r=e[2];return t*t+n*n+r*r}t.exports=r},{}],374:[function(e,t,n){t.exports=e("./subtract")},{"./subtract":375}],375:[function(e,t,n){function r(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e}t.exports=r},{}],376:[function(e,t,n){function r(e,t,n){var r=t[0],a=t[1],o=t[2];return e[0]=r*n[0]+a*n[3]+o*n[6],e[1]=r*n[1]+a*n[4]+o*n[7],e[2]=r*n[2]+a*n[5]+o*n[8],e}t.exports=r},{}],377:[function(e,t,n){function r(e,t,n){var r=t[0],a=t[1],o=t[2],i=n[3]*r+n[7]*a+n[11]*o+n[15];return i=i||1,e[0]=(n[0]*r+n[4]*a+n[8]*o+n[12])/i,e[1]=(n[1]*r+n[5]*a+n[9]*o+n[13])/i,e[2]=(n[2]*r+n[6]*a+n[10]*o+n[14])/i,e}t.exports=r},{}],378:[function(e,t,n){function r(e,t,n){var r=t[0],a=t[1],o=t[2],i=n[0],l=n[1],s=n[2],u=n[3],c=u*r+l*o-s*a,f=u*a+s*r-i*o,p=u*o+i*a-l*r,d=-i*r-l*a-s*o;return e[0]=c*u+d*-i+f*-s-p*-l,e[1]=f*u+d*-l+p*-i-c*-s,e[2]=p*u+d*-s+c*-l-f*-i,e}t.exports=r},{}],379:[function(e,t,n){function r(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e[3]=t[3]+n[3],e}t.exports=r},{}],380:[function(e,t,n){function r(e){var t=new Float32Array(4);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}t.exports=r},{}],381:[function(e,t,n){function r(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}t.exports=r},{}],382:[function(e,t,n){function r(){var e=new Float32Array(4);return e[0]=0,e[1]=0,e[2]=0,e[3]=0,e}t.exports=r},{}],383:[function(e,t,n){function r(e,t){var n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2],o=t[3]-e[3];return Math.sqrt(n*n+r*r+a*a+o*o)}t.exports=r},{}],384:[function(e,t,n){function r(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e[2]=t[2]/n[2],e[3]=t[3]/n[3],e}t.exports=r},{}],385:[function(e,t,n){function r(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]}t.exports=r},{}],386:[function(e,t,n){function r(e,t,n,r){var a=new Float32Array(4);return a[0]=e,a[1]=t,a[2]=n,a[3]=r,a}t.exports=r},{}],387:[function(e,t,n){t.exports={create:e("./create"),clone:e("./clone"),fromValues:e("./fromValues"),copy:e("./copy"),set:e("./set"),add:e("./add"),subtract:e("./subtract"),multiply:e("./multiply"),divide:e("./divide"),min:e("./min"),max:e("./max"),scale:e("./scale"),scaleAndAdd:e("./scaleAndAdd"),distance:e("./distance"),squaredDistance:e("./squaredDistance"),length:e("./length"),squaredLength:e("./squaredLength"),negate:e("./negate"),inverse:e("./inverse"),normalize:e("./normalize"),dot:e("./dot"),lerp:e("./lerp"),random:e("./random"),transformMat4:e("./transformMat4"),transformQuat:e("./transformQuat")}},{"./add":379,"./clone":380,"./copy":381,"./create":382,"./distance":383,"./divide":384,"./dot":385,"./fromValues":386,"./inverse":388,"./length":389,"./lerp":390,"./max":391,"./min":392,"./multiply":393,"./negate":394,"./normalize":395,"./random":396,"./scale":397,"./scaleAndAdd":398,"./set":399,"./squaredDistance":400,"./squaredLength":401,"./subtract":402,"./transformMat4":403,"./transformQuat":404}],388:[function(e,t,n){function r(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e[3]=1/t[3],e}t.exports=r},{}],389:[function(e,t,n){function r(e){var t=e[0],n=e[1],r=e[2],a=e[3];return Math.sqrt(t*t+n*n+r*r+a*a)}t.exports=r},{}],390:[function(e,t,n){function r(e,t,n,r){var a=t[0],o=t[1],i=t[2],l=t[3];return e[0]=a+r*(n[0]-a),e[1]=o+r*(n[1]-o),e[2]=i+r*(n[2]-i),e[3]=l+r*(n[3]-l),e}t.exports=r},{}],391:[function(e,t,n){function r(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e[2]=Math.max(t[2],n[2]),e[3]=Math.max(t[3],n[3]),e}t.exports=r},{}],392:[function(e,t,n){function r(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e[2]=Math.min(t[2],n[2]),e[3]=Math.min(t[3],n[3]),e}t.exports=r},{}],393:[function(e,t,n){function r(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e[2]=t[2]*n[2],e[3]=t[3]*n[3],e}t.exports=r},{}],394:[function(e,t,n){function r(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e[3]=-t[3],e}t.exports=r},{}],395:[function(e,t,n){function r(e,t){var n=t[0],r=t[1],a=t[2],o=t[3],i=n*n+r*r+a*a+o*o;return i>0&&(i=1/Math.sqrt(i),e[0]=n*i,e[1]=r*i,e[2]=a*i,e[3]=o*i),e}t.exports=r},{}],396:[function(e,t,n){var r=e("./normalize"),a=e("./scale");function o(e,t){return t=t||1,e[0]=Math.random(),e[1]=Math.random(),e[2]=Math.random(),e[3]=Math.random(),r(e,e),a(e,e,t),e}t.exports=o},{"./normalize":395,"./scale":397}],397:[function(e,t,n){function r(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e}t.exports=r},{}],398:[function(e,t,n){function r(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e[2]=t[2]+n[2]*r,e[3]=t[3]+n[3]*r,e}t.exports=r},{}],399:[function(e,t,n){function r(e,t,n,r,a){return e[0]=t,e[1]=n,e[2]=r,e[3]=a,e}t.exports=r},{}],400:[function(e,t,n){function r(e,t){var n=t[0]-e[0],r=t[1]-e[1],a=t[2]-e[2],o=t[3]-e[3];return n*n+r*r+a*a+o*o}t.exports=r},{}],401:[function(e,t,n){function r(e){var t=e[0],n=e[1],r=e[2],a=e[3];return t*t+n*n+r*r+a*a}t.exports=r},{}],402:[function(e,t,n){function r(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e[3]=t[3]-n[3],e}t.exports=r},{}],403:[function(e,t,n){function r(e,t,n){var r=t[0],a=t[1],o=t[2],i=t[3];return e[0]=n[0]*r+n[4]*a+n[8]*o+n[12]*i,e[1]=n[1]*r+n[5]*a+n[9]*o+n[13]*i,e[2]=n[2]*r+n[6]*a+n[10]*o+n[14]*i,e[3]=n[3]*r+n[7]*a+n[11]*o+n[15]*i,e}t.exports=r},{}],404:[function(e,t,n){function r(e,t,n){var r=t[0],a=t[1],o=t[2],i=n[0],l=n[1],s=n[2],u=n[3],c=u*r+l*o-s*a,f=u*a+s*r-i*o,p=u*o+i*a-l*r,d=-i*r-l*a-s*o;return e[0]=c*u+d*-i+f*-s-p*-l,e[1]=f*u+d*-l+p*-i-c*-s,e[2]=p*u+d*-s+c*-l-f*-i,e[3]=t[3],e}t.exports=r},{}],405:[function(e,t,n){var r=e("glsl-tokenizer"),a=e("atob-lite");function o(e){for(var t=Array.isArray(e)?e:r(e),n=0;n<t.length;n++){var o=t[n];if("preprocessor"===o.type){var i=o.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(i&&i[2]){var l=i[1],s=i[2];return(l?a(s):s).trim()}}}}t.exports=o},{"atob-lite":77,"glsl-tokenizer":412}],406:[function(e,t,n){t.exports=k;var r=e("./lib/literals"),a=e("./lib/operators"),o=e("./lib/builtins"),i=e("./lib/literals-300es"),l=e("./lib/builtins-300es"),s=999,u=9999,c=0,f=1,p=2,d=3,h=4,v=5,m=6,y=7,g=8,b=9,x=10,_=11,w=["block-comment","line-comment","preprocessor","operator","integer","float","ident","builtin","keyword","whitespace","eof","integer"];function k(e){var t,n,k,T=0,E=0,O=s,M=[],S=[],C=1,A=0,P=0,L=!1,D=!1,j="";e=e||{};var I=o,R=r;"300 es"===e.version&&(I=l,R=i);var z={},N={};for(T=0;T<I.length;T++)z[I[T]]=!0;for(T=0;T<R.length;T++)N[R[T]]=!0;return function(e){return S=[],null!==e?B(e):V()};function F(e){e.length&&S.push({type:w[O],data:e,position:P,line:C,column:A})}function B(e){var n;T=0,e.toString&&(e=e.toString()),j+=e.replace(/\r\n/g,"\n"),k=j.length;while(t=j[T],T<k){switch(n=T,O){case c:T=$();break;case f:T=q();break;case p:T=W();break;case d:T=G();break;case h:T=X();break;case _:T=K();break;case v:T=Z();break;case u:T=J();break;case b:T=U();break;case s:T=H();break}if(n!==T)switch(j[n]){case"\n":A=0,++C;break;default:++A;break}}return E+=T,j=j.slice(T),S}function V(e){return M.length&&F(M.join("")),O=x,F("(eof)"),S}function H(){return M=M.length?[]:M,"/"===n&&"*"===t?(P=E+T-1,O=c,n=t,T+1):"/"===n&&"/"===t?(P=E+T-1,O=f,n=t,T+1):"#"===t?(O=p,P=E+T,T):/\s/.test(t)?(O=b,P=E+T,T):(L=/\d/.test(t),D=/[^\w_]/.test(t),P=E+T,O=L?h:D?d:u,T)}function U(){return/[^\s]/g.test(t)?(F(M.join("")),O=s,T):(M.push(t),n=t,T+1)}function W(){return"\r"!==t&&"\n"!==t||"\\"===n?(M.push(t),n=t,T+1):(F(M.join("")),O=s,T)}function q(){return W()}function $(){return"/"===t&&"*"===n?(M.push(t),F(M.join("")),O=s,T+1):(M.push(t),n=t,T+1)}function G(){if("."===n&&/\d/.test(t))return O=v,T;if("/"===n&&"*"===t)return O=c,T;if("/"===n&&"/"===t)return O=f,T;if("."===t&&M.length){while(Y(M));return O=v,T}if(";"===t||")"===t||"("===t){if(M.length)while(Y(M));return F(t),O=s,T+1}var e=2===M.length&&"="!==t;if(/[\w_\d\s]/.test(t)||e){while(Y(M));return O=s,T}return M.push(t),n=t,T+1}function Y(e){var t,n,r=0;do{if(t=a.indexOf(e.slice(0,e.length+r).join("")),n=a[t],-1===t){if(r--+e.length>0)continue;n=e.slice(0,1).join("")}return F(n),P+=n.length,M=M.slice(n.length),M.length}while(1)}function K(){return/[^a-fA-F0-9]/.test(t)?(F(M.join("")),O=s,T):(M.push(t),n=t,T+1)}function X(){return"."===t||/[eE]/.test(t)?(M.push(t),O=v,n=t,T+1):"x"===t&&1===M.length&&"0"===M[0]?(O=_,M.push(t),n=t,T+1):/[^\d]/.test(t)?(F(M.join("")),O=s,T):(M.push(t),n=t,T+1)}function Z(){return"f"===t&&(M.push(t),n=t,T+=1),/[eE]/.test(t)?(M.push(t),n=t,T+1):("-"!==t&&"+"!==t||!/[eE]/.test(n))&&/[^\d]/.test(t)?(F(M.join("")),O=s,T):(M.push(t),n=t,T+1)}function J(){if(/[^\d\w_]/.test(t)){var e=M.join("");return O=N[e]?g:z[e]?y:m,F(M.join("")),O=s,T}return M.push(t),n=t,T+1}}},{"./lib/builtins":408,"./lib/builtins-300es":407,"./lib/literals":410,"./lib/literals-300es":409,"./lib/operators":411}],407:[function(e,t,n){var r=e("./builtins");r=r.slice().filter((function(e){return!/^(gl\_|texture)/.test(e)})),t.exports=r.concat(["gl_VertexID","gl_InstanceID","gl_Position","gl_PointSize","gl_FragCoord","gl_FrontFacing","gl_FragDepth","gl_PointCoord","gl_MaxVertexAttribs","gl_MaxVertexUniformVectors","gl_MaxVertexOutputVectors","gl_MaxFragmentInputVectors","gl_MaxVertexTextureImageUnits","gl_MaxCombinedTextureImageUnits","gl_MaxTextureImageUnits","gl_MaxFragmentUniformVectors","gl_MaxDrawBuffers","gl_MinProgramTexelOffset","gl_MaxProgramTexelOffset","gl_DepthRangeParameters","gl_DepthRange","trunc","round","roundEven","isnan","isinf","floatBitsToInt","floatBitsToUint","intBitsToFloat","uintBitsToFloat","packSnorm2x16","unpackSnorm2x16","packUnorm2x16","unpackUnorm2x16","packHalf2x16","unpackHalf2x16","outerProduct","transpose","determinant","inverse","texture","textureSize","textureProj","textureLod","textureOffset","texelFetch","texelFetchOffset","textureProjOffset","textureLodOffset","textureProjLod","textureProjLodOffset","textureGrad","textureGradOffset","textureProjGrad","textureProjGradOffset"])},{"./builtins":408}],408:[function(e,t,n){t.exports=["abs","acos","all","any","asin","atan","ceil","clamp","cos","cross","dFdx","dFdy","degrees","distance","dot","equal","exp","exp2","faceforward","floor","fract","gl_BackColor","gl_BackLightModelProduct","gl_BackLightProduct","gl_BackMaterial","gl_BackSecondaryColor","gl_ClipPlane","gl_ClipVertex","gl_Color","gl_DepthRange","gl_DepthRangeParameters","gl_EyePlaneQ","gl_EyePlaneR","gl_EyePlaneS","gl_EyePlaneT","gl_Fog","gl_FogCoord","gl_FogFragCoord","gl_FogParameters","gl_FragColor","gl_FragCoord","gl_FragData","gl_FragDepth","gl_FragDepthEXT","gl_FrontColor","gl_FrontFacing","gl_FrontLightModelProduct","gl_FrontLightProduct","gl_FrontMaterial","gl_FrontSecondaryColor","gl_LightModel","gl_LightModelParameters","gl_LightModelProducts","gl_LightProducts","gl_LightSource","gl_LightSourceParameters","gl_MaterialParameters","gl_MaxClipPlanes","gl_MaxCombinedTextureImageUnits","gl_MaxDrawBuffers","gl_MaxFragmentUniformComponents","gl_MaxLights","gl_MaxTextureCoords","gl_MaxTextureImageUnits","gl_MaxTextureUnits","gl_MaxVaryingFloats","gl_MaxVertexAttribs","gl_MaxVertexTextureImageUnits","gl_MaxVertexUniformComponents","gl_ModelViewMatrix","gl_ModelViewMatrixInverse","gl_ModelViewMatrixInverseTranspose","gl_ModelViewMatrixTranspose","gl_ModelViewProjectionMatrix","gl_ModelViewProjectionMatrixInverse","gl_ModelViewProjectionMatrixInverseTranspose","gl_ModelViewProjectionMatrixTranspose","gl_MultiTexCoord0","gl_MultiTexCoord1","gl_MultiTexCoord2","gl_MultiTexCoord3","gl_MultiTexCoord4","gl_MultiTexCoord5","gl_MultiTexCoord6","gl_MultiTexCoord7","gl_Normal","gl_NormalMatrix","gl_NormalScale","gl_ObjectPlaneQ","gl_ObjectPlaneR","gl_ObjectPlaneS","gl_ObjectPlaneT","gl_Point","gl_PointCoord","gl_PointParameters","gl_PointSize","gl_Position","gl_ProjectionMatrix","gl_ProjectionMatrixInverse","gl_ProjectionMatrixInverseTranspose","gl_ProjectionMatrixTranspose","gl_SecondaryColor","gl_TexCoord","gl_TextureEnvColor","gl_TextureMatrix","gl_TextureMatrixInverse","gl_TextureMatrixInverseTranspose","gl_TextureMatrixTranspose","gl_Vertex","greaterThan","greaterThanEqual","inversesqrt","length","lessThan","lessThanEqual","log","log2","matrixCompMult","max","min","mix","mod","normalize","not","notEqual","pow","radians","reflect","refract","sign","sin","smoothstep","sqrt","step","tan","texture2D","texture2DLod","texture2DProj","texture2DProjLod","textureCube","textureCubeLod","texture2DLodEXT","texture2DProjLodEXT","textureCubeLodEXT","texture2DGradEXT","texture2DProjGradEXT","textureCubeGradEXT"]},{}],409:[function(e,t,n){var r=e("./literals");t.exports=r.slice().concat(["layout","centroid","smooth","case","mat2x2","mat2x3","mat2x4","mat3x2","mat3x3","mat3x4","mat4x2","mat4x3","mat4x4","uvec2","uvec3","uvec4","samplerCubeShadow","sampler2DArray","sampler2DArrayShadow","isampler2D","isampler3D","isamplerCube","isampler2DArray","usampler2D","usampler3D","usamplerCube","usampler2DArray","coherent","restrict","readonly","writeonly","resource","atomic_uint","noperspective","patch","sample","subroutine","common","partition","active","filter","image1D","image2D","image3D","imageCube","iimage1D","iimage2D","iimage3D","iimageCube","uimage1D","uimage2D","uimage3D","uimageCube","image1DArray","image2DArray","iimage1DArray","iimage2DArray","uimage1DArray","uimage2DArray","image1DShadow","image2DShadow","image1DArrayShadow","image2DArrayShadow","imageBuffer","iimageBuffer","uimageBuffer","sampler1DArray","sampler1DArrayShadow","isampler1D","isampler1DArray","usampler1D","usampler1DArray","isampler2DRect","usampler2DRect","samplerBuffer","isamplerBuffer","usamplerBuffer","sampler2DMS","isampler2DMS","usampler2DMS","sampler2DMSArray","isampler2DMSArray","usampler2DMSArray"])},{"./literals":410}],410:[function(e,t,n){t.exports=["precision","highp","mediump","lowp","attribute","const","uniform","varying","break","continue","do","for","while","if","else","in","out","inout","float","int","uint","void","bool","true","false","discard","return","mat2","mat3","mat4","vec2","vec3","vec4","ivec2","ivec3","ivec4","bvec2","bvec3","bvec4","sampler1D","sampler2D","sampler3D","samplerCube","sampler1DShadow","sampler2DShadow","struct","asm","class","union","enum","typedef","template","this","packed","goto","switch","default","inline","noinline","volatile","public","static","extern","external","interface","long","short","double","half","fixed","unsigned","input","output","hvec2","hvec3","hvec4","dvec2","dvec3","dvec4","fvec2","fvec3","fvec4","sampler2DRect","sampler3DRect","sampler2DRectShadow","sizeof","cast","namespace","using"]},{}],411:[function(e,t,n){t.exports=["<<=",">>=","++","--","<<",">>","<=",">=","==","!=","&&","||","+=","-=","*=","/=","%=","&=","^^","^=","|=","(",")","[","]",".","!","~","*","/","%","+","-","<",">","&","^","|","?",":","=",",",";","{","}"]},{}],412:[function(e,t,n){var r=e("./index");function a(e,t){var n=r(t),a=[];return a=a.concat(n(e)),a=a.concat(n(null)),a}t.exports=a},{"./index":406}],413:[function(e,t,n){t.exports=function(e){"string"===typeof e&&(e=[e]);for(var t=[].slice.call(arguments,1),n=[],r=0;r<e.length-1;r++)n.push(e[r],t[r]||"");return n.push(e[r]),n.join("")}},{}],414:[function(e,n,r){(function(t){"use strict";var r,a=e("is-browser");r="function"===typeof t.matchMedia?!t.matchMedia("(hover: none)").matches:a,n.exports=r}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"is-browser":438}],415:[function(e,t,n){"use strict";var r=e("is-browser");function a(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(n){e=!1}return e}t.exports=r&&a()},{"is-browser":438}],416:[function(e,t,n){n.read=function(e,t,n,r,a){var o,i,l=8*a-r-1,s=(1<<l)-1,u=s>>1,c=-7,f=n?a-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-c)-1,d>>=-c,c+=l;c>0;o=256*o+e[t+f],f+=p,c-=8);for(i=o&(1<<-c)-1,o>>=-c,c+=r;c>0;i=256*i+e[t+f],f+=p,c-=8);if(0===o)o=1-u;else{if(o===s)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,r),o-=u}return(d?-1:1)*i*Math.pow(2,o-r)},n.write=function(e,t,n,r,a,o){var i,l,s,u=8*o-a-1,c=(1<<u)-1,f=c>>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),t+=i+f>=1?p/s:p*Math.pow(2,1-f),t*s>=2&&(i++,s/=2),i+f>=c?(l=0,i=c):i+f>=1?(l=(t*s-1)*Math.pow(2,a),i+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,a),i=0));a>=8;e[n+d]=255&l,d+=h,l/=256,a-=8);for(i=i<<a|l,u+=a;u>0;e[n+d]=255&i,d+=h,i/=256,u-=8);e[n+d-h]|=128*v}},{}],417:[function(e,t,n){"use strict";var r=e("./types");t.exports=function(e,t){var n,a;for(n in r)if(a=r[n].detect(e,t),a)return n}},{"./types":420}],418:[function(e,t,n){(function(n){"use strict";var r=e("fs"),a=e("path"),o=e("./types"),i=e("./detector"),l=524288;function s(e,t){var n=i(e,t);if(n in o){var r=o[n].calculate(e,t);if(!1!==r)return r.type=n,r}throw new TypeError("unsupported file type: "+n+" (file: "+t+")")}function u(e,t){r.open(e,"r",(function(a,o){if(a)return t(a);r.fstat(o,(function(a,i){if(a)return t(a);var s=i.size;if(s<=0)return t(new Error("File size is not greater than 0 —— "+e));var u=Math.min(s,l),c=n.alloc(u);r.read(o,c,0,u,0,(function(e){if(e)return t(e);r.close(o,(function(e){t(e,c)}))}))}))}))}function c(e){var t=r.openSync(e,"r"),a=r.fstatSync(t).size,o=Math.min(a,l),i=n.alloc(o);return r.readSync(t,i,0,o,0),r.closeSync(t),i}t.exports=function(e,t){if(n.isBuffer(e))return s(e);if("string"!==typeof e)throw new TypeError("invalid invocation");var r=a.resolve(e);if("function"!==typeof t){var o=c(r);return s(o,r)}u(r,(function(e,n){if(e)return t(e);var a;try{a=s(n,r)}catch(o){e=o}t(e,a)}))},t.exports.types=Object.keys(o)}).call(this,e("buffer").Buffer)},{"./detector":417,"./types":420,buffer:111,fs:109,path:481}],419:[function(e,t,n){"use strict";function r(e,t,n,r){n=n||0;var a=r?"BE":"LE",o=e["readUInt"+t+a];return o.call(e,n)}t.exports=r},{}],420:[function(e,t,n){"use strict";var r={bmp:e("./types/bmp"),cur:e("./types/cur"),dds:e("./types/dds"),gif:e("./types/gif"),icns:e("./types/icns"),ico:e("./types/ico"),jpg:e("./types/jpg"),png:e("./types/png"),psd:e("./types/psd"),svg:e("./types/svg"),tiff:e("./types/tiff"),webp:e("./types/webp")};t.exports=r},{"./types/bmp":421,"./types/cur":422,"./types/dds":423,"./types/gif":424,"./types/icns":425,"./types/ico":426,"./types/jpg":427,"./types/png":428,"./types/psd":429,"./types/svg":430,"./types/tiff":431,"./types/webp":432}],421:[function(e,t,n){"use strict";function r(e){return"BM"===e.toString("ascii",0,2)}function a(e){return{width:e.readUInt32LE(18),height:Math.abs(e.readInt32LE(22))}}t.exports={detect:r,calculate:a}},{}],422:[function(e,t,n){"use strict";var r=2;function a(e){var t;return 0===e.readUInt16LE(0)&&(t=e.readUInt16LE(2),t===r)}t.exports={detect:a,calculate:e("./ico").calculate}},{"./ico":426}],423:[function(e,t,n){"use strict";function r(e){return 542327876===e.readUInt32LE(0)}function a(e){return{height:e.readUInt32LE(12),width:e.readUInt32LE(16)}}t.exports={detect:r,calculate:a}},{}],424:[function(e,t,n){"use strict";var r=/^GIF8[79]a/;function a(e){var t=e.toString("ascii",0,6);return r.test(t)}function o(e){return{width:e.readUInt16LE(6),height:e.readUInt16LE(8)}}t.exports={detect:a,calculate:o}},{}],425:[function(e,t,n){"use strict";var r=8,a=4,o=4;function i(e){return"icns"===e.toString("ascii",0,4)}var l={ICON:32,"ICN#":32,"icm#":16,icm4:16,icm8:16,"ics#":16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function s(e,t){var n=t+o;return[e.toString("ascii",t,n),e.readUInt32BE(n)]}function u(e){var t=l[e];return{width:t,height:t,type:e}}function c(e){var t,n,o,i=e.length,l=r,c=e.readUInt32BE(a);if(t=s(e,l),n=u(t[0]),l+=t[1],l===c)return n;o={width:n.width,height:n.height,images:[n]};while(l<c&&l<i)t=s(e,l),n=u(t[0]),l+=t[1],o.images.push(n);return o}t.exports={detect:i,calculate:c}},{}],426:[function(e,t,n){"use strict";var r=1,a=6,o=16;function i(e){var t;return 0===e.readUInt16LE(0)&&(t=e.readUInt16LE(2),t===r)}function l(e,t){var n=e.readUInt8(t);return 0===n?256:n}function s(e,t){var n=a+t*o;return{width:l(e,n),height:l(e,n+1)}}function u(e){var t,n=e.readUInt16LE(4),r=s(e,0);if(1===n)return r;for(r.images=[{width:r.width,height:r.height}],t=1;t<n;t+=1)r.images.push(s(e,t));return r}t.exports={detect:i,calculate:u}},{}],427:[function(e,t,n){"use strict";var r=e("../readUInt");function a(e){var t=e.toString("hex",0,2);return"ffd8"===t}function o(e){var t=e.toString("hex",2,6);return"45786966"===t}function i(e,t){return{height:e.readUInt16BE(t),width:e.readUInt16BE(t+2)}}var l=2,s=6,u=2,c="4d4d",f="4949",p=12,d=2;function h(e,t){var n=e.slice(l,t),r=n.toString("hex",s,s+u),a=r===c,o=r===f;if(a||o)return v(n,a)}function v(e,t){for(var n,a,o=8,i=s+o,l=r(e,16,i,t),u=0;u<l;u++){if(n=i+d+u*p,a=n+p,n>e.length)return;var c=e.slice(n,a),f=r(c,16,0,t);if(274===f){var h=r(c,16,2,t);if(3!==h)return;var v=r(c,32,4,t);if(1!==v)return;return r(c,16,8,t)}}}function m(e,t){if(t>e.length)throw new TypeError("Corrupt JPG, exceeded buffer limits");if(255!==e[t])throw new TypeError("Invalid JPG, marker table corrupted")}function y(e){var t,n,r;e=e.slice(4);while(e.length){if(n=e.readUInt16BE(0),o(e)&&(t=h(e,n)),m(e,n),r=e[n+1],192===r||193===r||194===r){var a=i(e,n+5);return t?{width:a.width,height:a.height,orientation:t}:a}e=e.slice(n+2)}throw new TypeError("Invalid JPG, no size found")}t.exports={detect:a,calculate:y}},{"../readUInt":419}],428:[function(e,t,n){"use strict";var r="PNG\r\n\n",a="IHDR",o="CgBI";function i(e){if(r===e.toString("ascii",1,8)){var t=e.toString("ascii",12,16);if(t===o&&(t=e.toString("ascii",28,32)),t!==a)throw new TypeError("invalid png");return!0}}function l(e){return e.toString("ascii",12,16)===o?{width:e.readUInt32BE(32),height:e.readUInt32BE(36)}:{width:e.readUInt32BE(16),height:e.readUInt32BE(20)}}t.exports={detect:i,calculate:l}},{}],429:[function(e,t,n){"use strict";function r(e){return"8BPS"===e.toString("ascii",0,4)}function a(e){return{width:e.readUInt32BE(18),height:e.readUInt32BE(14)}}t.exports={detect:r,calculate:a}},{}],430:[function(e,t,n){"use strict";var r=/<svg\s([^>"']|"[^"]*"|'[^']*')*>/;function a(e){return r.test(e)}var o={root:r,width:/\swidth=(['"])([^%]+?)\1/,height:/\sheight=(['"])([^%]+?)\1/,viewbox:/\sviewBox=(['"])(.+?)\1/},i={cm:96/2.54,mm:96/2.54/10,m:96/2.54*100,pt:96/72,pc:96/72/12,em:16,ex:8};function l(e){var t=/([0-9.]+)([a-z]*)/.exec(e);if(t)return Math.round(parseFloat(t[1])*(i[t[2]]||1))}function s(e){var t=e.split(" ");return{width:l(t[2]),height:l(t[3])}}function u(e){var t=e.match(o.width),n=e.match(o.height),r=e.match(o.viewbox);return{width:t&&l(t[2]),height:n&&l(n[2]),viewbox:r&&s(r[2])}}function c(e){return{width:e.width,height:e.height}}function f(e){var t=e.viewbox.width/e.viewbox.height;return e.width?{width:e.width,height:Math.floor(e.width/t)}:e.height?{width:Math.floor(e.height*t),height:e.height}:{width:e.viewbox.width,height:e.viewbox.height}}function p(e){var t=e.toString("utf8").match(o.root);if(t){var n=u(t[0]);if(n.width&&n.height)return c(n);if(n.viewbox)return f(n)}throw new TypeError("invalid svg")}t.exports={detect:a,calculate:p}},{}],431:[function(e,t,n){(function(n){"use strict";var r=e("fs"),a=e("../readUInt");function o(e){var t=e.toString("hex",0,4);return"49492a00"===t||"4d4d002a"===t}function i(e,t,o){var i=a(e,32,4,o),l=1024,s=r.statSync(t).size;i+l>s&&(l=s-i-10);var u=n.alloc(l),c=r.openSync(t,"r");r.readSync(c,u,0,l,i);var f=u.slice(2);return f}function l(e,t){var n=a(e,16,8,t),r=a(e,16,10,t);return(r<<16)+n}function s(e){if(e.length>24)return e.slice(12)}function u(e,t){var n,r,o,i={};while(e&&e.length){if(n=a(e,16,0,t),r=a(e,16,2,t),o=a(e,32,4,t),0===n)break;1!==o||3!==r&&4!==r||(i[n]=l(e,t)),e=s(e)}return i}function c(e){var t=e.toString("ascii",0,2);return"II"===t?"LE":"MM"===t?"BE":void 0}function f(e,t){if(!t)throw new TypeError("Tiff doesn't support buffer");var n="BE"===c(e),r=i(e,t,n),a=u(r,n),o=a[256],l=a[257];if(!o||!l)throw new TypeError("Invalid Tiff, missing tags");return{width:o,height:l}}t.exports={detect:o,calculate:f}}).call(this,e("buffer").Buffer)},{"../readUInt":419,buffer:111,fs:109}],432:[function(e,t,n){"use strict";function r(e){var t="RIFF"===e.toString("ascii",0,4),n="WEBP"===e.toString("ascii",8,12),r="VP8"===e.toString("ascii",12,15);return t&&n&&r}function a(e){var t=e.toString("ascii",12,16);if(e=e.slice(20,30),"VP8X"===t){var n=e[0],r=0===(192&n),a=0===(1&n);return!(!r||!a)&&o(e)}if("VP8 "===t&&47!==e[0])return l(e);var s=e.toString("hex",3,6);return"VP8L"===t&&"9d012a"!==s&&i(e)}function o(e){return{width:1+e.readUIntLE(4,3),height:1+e.readUIntLE(7,3)}}function i(e){return{width:1+((63&e[2])<<8|e[1]),height:1+((15&e[4])<<10|e[3]<<2|(192&e[2])>>6)}}function l(e){return{width:16383&e.readInt16LE(6),height:16383&e.readInt16LE(8)}}t.exports={detect:r,calculate:a}},{}],433:[function(e,t,n){"use strict";t.exports=p;var r=e("robust-orientation"),a=e("simplicial-complex").compareCells;function o(e,t,n){this.vertices=e,this.adjacent=t,this.boundary=n,this.lastVisited=-1}function i(e,t,n){this.vertices=e,this.cell=t,this.index=n}function l(e,t){return a(e.vertices,t.vertices)}function s(e){for(var t=["function orient(){var tuple=this.tuple;return test("],n=0;n<=e;++n)n>0&&t.push(","),t.push("tuple[",n,"]");t.push(")}return orient");var a=new Function("test",t.join("")),o=r[e+1];return o||(o=r),a(o)}o.prototype.flip=function(){var e=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=e;var t=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=t};var u=[];function c(e,t,n){this.dimension=e,this.vertices=t,this.simplices=n,this.interior=n.filter((function(e){return!e.boundary})),this.tuple=new Array(e+1);for(var r=0;r<=e;++r)this.tuple[r]=this.vertices[r];var a=u[e];a||(a=u[e]=s(e)),this.orient=a}var f=c.prototype;function p(e,t){var n=e.length;if(0===n)throw new Error("Must have at least d+1 points");var a=e[0].length;if(n<=a)throw new Error("Must input at least d+1 points");var i=e.slice(0,a+1),l=r.apply(void 0,i);if(0===l)throw new Error("Input not in general position");for(var s=new Array(a+1),u=0;u<=a;++u)s[u]=u;l<0&&(s[0]=1,s[1]=0);var f=new o(s,new Array(a+1),!1),p=f.adjacent,d=new Array(a+2);for(u=0;u<=a;++u){for(var h=s.slice(),v=0;v<=a;++v)v===u&&(h[v]=-1);var m=h[0];h[0]=h[1],h[1]=m;var y=new o(h,new Array(a+1),!0);p[u]=y,d[u]=y}d[a+1]=f;for(u=0;u<=a;++u){h=p[u].vertices;var g=p[u].adjacent;for(v=0;v<=a;++v){var b=h[v];if(b<0)g[v]=f;else for(var x=0;x<=a;++x)p[x].vertices.indexOf(b)<0&&(g[v]=p[x])}}var _=new c(a,i,d),w=!!t;for(u=a+1;u<n;++u)_.insert(e[u],w);return _.boundary()}f.handleBoundaryDegeneracy=function(e,t){var n=this.dimension,r=this.vertices.length-1,a=this.tuple,o=this.vertices,i=[e];e.lastVisited=-r;while(i.length>0){e=i.pop();e.vertices;for(var l=e.adjacent,s=0;s<=n;++s){var u=l[s];if(u.boundary&&!(u.lastVisited<=-r)){for(var c=u.vertices,f=0;f<=n;++f){var p=c[f];a[f]=p<0?t:o[p]}var d=this.orient();if(d>0)return u;u.lastVisited=-r,0===d&&i.push(u)}}}return null},f.walk=function(e,t){var n=this.vertices.length-1,r=this.dimension,a=this.vertices,o=this.tuple,i=t?this.interior.length*Math.random()|0:this.interior.length-1,l=this.interior[i];e:while(!l.boundary){for(var s=l.vertices,u=l.adjacent,c=0;c<=r;++c)o[c]=a[s[c]];l.lastVisited=n;for(c=0;c<=r;++c){var f=u[c];if(!(f.lastVisited>=n)){var p=o[c];o[c]=e;var d=this.orient();if(o[c]=p,d<0){l=f;continue e}f.boundary?f.lastVisited=-n:f.lastVisited=n}}return}return l},f.addPeaks=function(e,t){var n=this.vertices.length-1,r=this.dimension,a=this.vertices,s=this.tuple,u=this.interior,c=this.simplices,f=[t];t.lastVisited=n,t.vertices[t.vertices.indexOf(-1)]=n,t.boundary=!1,u.push(t);var p=[];while(f.length>0){t=f.pop();var d=t.vertices,h=t.adjacent,v=d.indexOf(n);if(!(v<0))for(var m=0;m<=r;++m)if(m!==v){var y=h[m];if(y.boundary&&!(y.lastVisited>=n)){var g=y.vertices;if(y.lastVisited!==-n){for(var b=0,x=0;x<=r;++x)g[x]<0?(b=x,s[x]=e):s[x]=a[g[x]];var _=this.orient();if(_>0){g[b]=n,y.boundary=!1,u.push(y),f.push(y),y.lastVisited=n;continue}y.lastVisited=-n}var w=y.adjacent,k=d.slice(),T=h.slice(),E=new o(k,T,!0);c.push(E);var O=w.indexOf(t);if(!(O<0)){w[O]=E,T[v]=y,k[m]=-1,T[m]=t,h[m]=E,E.flip();for(x=0;x<=r;++x){var M=k[x];if(!(M<0||M===n)){for(var S=new Array(r-1),C=0,A=0;A<=r;++A){var P=k[A];P<0||A===x||(S[C++]=P)}p.push(new i(S,E,x))}}}}}}p.sort(l);for(m=0;m+1<p.length;m+=2){var L=p[m],D=p[m+1],j=L.index,I=D.index;j<0||I<0||(L.cell.adjacent[L.index]=D.cell,D.cell.adjacent[D.index]=L.cell)}},f.insert=function(e,t){var n=this.vertices;n.push(e);var r=this.walk(e,t);if(r){for(var a=this.dimension,o=this.tuple,i=0;i<=a;++i){var l=r.vertices[i];o[i]=l<0?e:n[l]}var s=this.orient(o);s<0||(0!==s||(r=this.handleBoundaryDegeneracy(r,e),r))&&this.addPeaks(e,r)}},f.boundary=function(){for(var e=this.dimension,t=[],n=this.simplices,r=n.length,a=0;a<r;++a){var o=n[a];if(o.boundary){for(var i=new Array(e),l=o.vertices,s=0,u=0,c=0;c<=e;++c)l[c]>=0?i[s++]=l[c]:u=1&c;if(u===(1&e)){var f=i[0];i[0]=i[1],i[1]=f}t.push(i)}}return t}},{"robust-orientation":520,"simplicial-complex":530}],434:[function(e,t,n){"use strict";var r=e("binary-search-bounds"),a=0,o=1,i=2;function l(e,t,n,r,a){this.mid=e,this.left=t,this.right=n,this.leftPoints=r,this.rightPoints=a,this.count=(t?t.count:0)+(n?n.count:0)+r.length}t.exports=w;var s=l.prototype;function u(e,t){e.mid=t.mid,e.left=t.left,e.right=t.right,e.leftPoints=t.leftPoints,e.rightPoints=t.rightPoints,e.count=t.count}function c(e,t){var n=b(t);e.mid=n.mid,e.left=n.left,e.right=n.right,e.leftPoints=n.leftPoints,e.rightPoints=n.rightPoints,e.count=n.count}function f(e,t){var n=e.intervals([]);n.push(t),c(e,n)}function p(e,t){var n=e.intervals([]),r=n.indexOf(t);return r<0?a:(n.splice(r,1),c(e,n),o)}function d(e,t,n){for(var r=0;r<e.length&&e[r][0]<=t;++r){var a=n(e[r]);if(a)return a}}function h(e,t,n){for(var r=e.length-1;r>=0&&e[r][1]>=t;--r){var a=n(e[r]);if(a)return a}}function v(e,t){for(var n=0;n<e.length;++n){var r=t(e[n]);if(r)return r}}function m(e,t){return e-t}function y(e,t){var n=e[0]-t[0];return n||e[1]-t[1]}function g(e,t){var n=e[1]-t[1];return n||e[0]-t[0]}function b(e){if(0===e.length)return null;for(var t=[],n=0;n<e.length;++n)t.push(e[n][0],e[n][1]);t.sort(m);var r=t[t.length>>1],a=[],o=[],i=[];for(n=0;n<e.length;++n){var s=e[n];s[1]<r?a.push(s):r<s[0]?o.push(s):i.push(s)}var u=i,c=i.slice();return u.sort(y),c.sort(g),new l(r,b(a),b(o),u,c)}function x(e){this.root=e}s.intervals=function(e){return e.push.apply(e,this.leftPoints),this.left&&this.left.intervals(e),this.right&&this.right.intervals(e),e},s.insert=function(e){var t=this.count-this.leftPoints.length;if(this.count+=1,e[1]<this.mid)this.left?4*(this.left.count+1)>3*(t+1)?f(this,e):this.left.insert(e):this.left=b([e]);else if(e[0]>this.mid)this.right?4*(this.right.count+1)>3*(t+1)?f(this,e):this.right.insert(e):this.right=b([e]);else{var n=r.ge(this.leftPoints,e,y),a=r.ge(this.rightPoints,e,g);this.leftPoints.splice(n,0,e),this.rightPoints.splice(a,0,e)}},s.remove=function(e){var t=this.count-this.leftPoints;if(e[1]<this.mid){if(!this.left)return a;var n=this.right?this.right.count:0;if(4*n>3*(t-1))return p(this,e);var l=this.left.remove(e);return l===i?(this.left=null,this.count-=1,o):(l===o&&(this.count-=1),l)}if(e[0]>this.mid){if(!this.right)return a;var s=this.left?this.left.count:0;if(4*s>3*(t-1))return p(this,e);l=this.right.remove(e);return l===i?(this.right=null,this.count-=1,o):(l===o&&(this.count-=1),l)}if(1===this.count)return this.leftPoints[0]===e?i:a;if(1===this.leftPoints.length&&this.leftPoints[0]===e){if(this.left&&this.right){var c=this,f=this.left;while(f.right)c=f,f=f.right;if(c===this)f.right=this.right;else{var d=this.left;l=this.right;c.count-=f.count,c.right=f.left,f.left=d,f.right=l}u(this,f),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?u(this,this.left):u(this,this.right);return o}for(d=r.ge(this.leftPoints,e,y);d<this.leftPoints.length;++d){if(this.leftPoints[d][0]!==e[0])break;if(this.leftPoints[d]===e){this.count-=1,this.leftPoints.splice(d,1);for(l=r.ge(this.rightPoints,e,g);l<this.rightPoints.length;++l){if(this.rightPoints[l][1]!==e[1])break;if(this.rightPoints[l]===e)return this.rightPoints.splice(l,1),o}}}return a},s.queryPoint=function(e,t){if(e<this.mid){if(this.left){var n=this.left.queryPoint(e,t);if(n)return n}return d(this.leftPoints,e,t)}if(e>this.mid){if(this.right){n=this.right.queryPoint(e,t);if(n)return n}return h(this.rightPoints,e,t)}return v(this.leftPoints,t)},s.queryInterval=function(e,t,n){if(e<this.mid&&this.left){var r=this.left.queryInterval(e,t,n);if(r)return r}if(t>this.mid&&this.right){r=this.right.queryInterval(e,t,n);if(r)return r}return t<this.mid?d(this.leftPoints,t,n):e>this.mid?h(this.rightPoints,e,n):v(this.leftPoints,n)};var _=x.prototype;function w(e){return e&&0!==e.length?new x(b(e)):new x(null)}_.insert=function(e){this.root?this.root.insert(e):this.root=new l(e[0],null,null,[e],[e])},_.remove=function(e){if(this.root){var t=this.root.remove(e);return t===i&&(this.root=null),t!==a}return!1},_.queryPoint=function(e,t){if(this.root)return this.root.queryPoint(e,t)},_.queryInterval=function(e,t,n){if(e<=t&&this.root)return this.root.queryInterval(e,t,n)},Object.defineProperty(_,"count",{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(_,"intervals",{get:function(){return this.root?this.root.intervals([]):[]}})},{"binary-search-bounds":435}],435:[function(e,t,n){arguments[4][243][0].apply(n,arguments)},{dup:243}],436:[function(e,t,n){"use strict";function r(e,t){t=t||new Array(e.length);for(var n=0;n<e.length;++n)t[e[n]]=n;return t}t.exports=r},{}],437:[function(e,t,n){"use strict";function r(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=n;return t}t.exports=r},{}],438:[function(e,t,n){t.exports=!0},{}],439:[function(e,t,n){function r(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function a(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&r(e.slice(0,0))}
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
t.exports=function(e){return null!=e&&(r(e)||a(e)||!!e._isBuffer)}},{}],440:[function(e,t,n){"use strict";t.exports="undefined"!==typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},{}],441:[function(e,t,n){"use strict";t.exports=o,t.exports.isMobile=o,t.exports.default=o;var r=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,a=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function o(e){e||(e={});var t=e.ua;if(t||"undefined"===typeof navigator||(t=navigator.userAgent),t&&t.headers&&"string"===typeof t.headers["user-agent"]&&(t=t.headers["user-agent"]),"string"!==typeof t)return!1;var n=e.tablet?a.test(t):r.test(t);return!n&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==t.indexOf("Macintosh")&&-1!==t.indexOf("Safari")&&(n=!0),n}},{}],442:[function(e,t,n){"use strict";t.exports=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}},{}],443:[function(e,t,n){"use strict";var r=Object.prototype.toString;t.exports=function(e){var t;return"[object Object]"===r.call(e)&&(t=Object.getPrototypeOf(e),null===t||t===Object.getPrototypeOf({}))}},{}],444:[function(e,t,n){"use strict";t.exports=function(e){for(var t,n=e.length,r=0;r<n;r++)if(t=e.charCodeAt(r),(t<9||t>13)&&32!==t&&133!==t&&160!==t&&5760!==t&&6158!==t&&(t<8192||t>8205)&&8232!==t&&8233!==t&&8239!==t&&8287!==t&&8288!==t&&12288!==t&&65279!==t)return!1;return!0}},{}],445:[function(e,t,n){"use strict";t.exports=function(e){return"string"===typeof e&&(e=e.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(e)&&/[\dz]$/i.test(e)&&e.length>4))}},{}],446:[function(e,t,n){function r(e,t,n){return e*(1-n)+t*n}t.exports=r},{}],447:[function(t,n,r){(function(t,a){"object"===typeof r&&"undefined"!==typeof n?n.exports=a():"function"===typeof e&&e.amd?e(a):(t=t||self,t.mapboxgl=a())})(this,(function(){"use strict";var e,t,n;function r(r,a){if(e)if(t){var o="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",i={};e(i),n=a(i),n.workerUrl=window.URL.createObjectURL(new Blob([o],{type:"text/javascript"}))}else t=a;else e=a}return r(["exports"],(function(e){function t(e,t){return e(t={exports:{}},t.exports),t.exports}var n=r;function r(e,t,n,r){this.cx=3*e,this.bx=3*(n-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=r,this.p2x=n,this.p2y=r}r.prototype.sampleCurveX=function(e){return((this.ax*e+this.bx)*e+this.cx)*e},r.prototype.sampleCurveY=function(e){return((this.ay*e+this.by)*e+this.cy)*e},r.prototype.sampleCurveDerivativeX=function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},r.prototype.solveCurveX=function(e,t){var n,r,a,o,i;for(void 0===t&&(t=1e-6),a=e,i=0;i<8;i++){if(o=this.sampleCurveX(a)-e,Math.abs(o)<t)return a;var l=this.sampleCurveDerivativeX(a);if(Math.abs(l)<1e-6)break;a-=o/l}if((a=e)<(n=0))return n;if(a>(r=1))return r;for(;n<r;){if(o=this.sampleCurveX(a),Math.abs(o-e)<t)return a;e>o?n=a:r=a,a=.5*(r-n)+n}return a},r.prototype.solve=function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))};var a=o;function o(e,t){this.x=e,this.y=t}function i(e,t,r,a){var o=new n(e,t,r,a);return function(e){return o.solve(e)}}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,n=e.y-this.y;return t*t+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),n=Math.sin(e),r=n*this.x+t*this.y;return this.x=t*this.x-n*this.y,this.y=r,this},_rotateAround:function(e,t){var n=Math.cos(e),r=Math.sin(e),a=t.y+r*(this.x-t.x)+n*(this.y-t.y);return this.x=t.x+n*(this.x-t.x)-r*(this.y-t.y),this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(e){return e instanceof o?e:Array.isArray(e)?new o(e[0],e[1]):e};var l=i(.25,.1,.25,1);function s(e,t,n){return Math.min(n,Math.max(t,e))}function u(e,t,n){var r=n-t,a=((e-t)%r+r)%r+t;return a===t?n:a}function c(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,a=t;r<a.length;r+=1){var o=a[r];for(var i in o)e[i]=o[i]}return e}var f=1;function p(){return f++}function d(){return function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,e)}()}function h(e){return!!e&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)}function v(e,t){e.forEach((function(e){t[e]&&(t[e]=t[e].bind(t))}))}function m(e,t){return-1!==e.indexOf(t,e.length-t.length)}function y(e,t,n){var r={};for(var a in e)r[a]=t.call(n||this,e[a],a,e);return r}function g(e,t,n){var r={};for(var a in e)t.call(n||this,e[a],a,e)&&(r[a]=e[a]);return r}function b(e){return Array.isArray(e)?e.map(b):"object"==typeof e&&e?y(e,b):e}var x={};function _(e){x[e]||("undefined"!=typeof console&&console.warn(e),x[e]=!0)}function w(e,t,n){return(n.y-e.y)*(t.x-e.x)>(t.y-e.y)*(n.x-e.x)}function k(e){for(var t=0,n=0,r=e.length,a=r-1,o=void 0,i=void 0;n<r;a=n++)t+=((i=e[a]).x-(o=e[n]).x)*(o.y+i.y);return t}function T(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}function E(e){var t={};if(e.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(e,n,r,a){var o=r||a;return t[n]=!o||o.toLowerCase(),""})),t["max-age"]){var n=parseInt(t["max-age"],10);isNaN(n)?delete t["max-age"]:t["max-age"]=n}return t}var O=null;function M(e){if(null==O){var t=e.navigator?e.navigator.userAgent:null;O=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return O}function S(e){try{var t=self[e];return t.setItem("_mapbox_test_",1),t.removeItem("_mapbox_test_"),!0}catch(e){return!1}}var C,A,P,L,D=self.performance&&self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),j=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,I=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,R={now:D,frame:function(e){var t=j(e);return{cancel:function(){return I(t)}}},getImageData:function(e,t){void 0===t&&(t=0);var n=self.document.createElement("canvas"),r=n.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return n.width=e.width,n.height=e.height,r.drawImage(e,0,0,e.width,e.height),r.getImageData(-t,-t,e.width+2*t,e.height+2*t)},resolveURL:function(e){return C||(C=self.document.createElement("a")),C.href=e,C.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&&(null==A&&(A=self.matchMedia("(prefers-reduced-motion: reduce)")),A.matches)}},z={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},N={supported:!1,testSupport:function(e){!F&&L&&(B?V(e):P=e)}},F=!1,B=!1;function V(e){var t=e.createTexture();e.bindTexture(e.TEXTURE_2D,t);try{if(e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,L),e.isContextLost())return;N.supported=!0}catch(e){}e.deleteTexture(t),F=!0}self.document&&((L=self.document.createElement("img")).onload=function(){P&&V(P),P=null,B=!0},L.onerror=function(){F=!0,P=null},L.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var H="01",U=function(e,t){this._transformRequestFn=e,this._customAccessToken=t,this._createSkuToken()};function W(e){return 0===e.indexOf("mapbox:")}U.prototype._createSkuToken=function(){var e=function(){for(var e="",t=0;t<10;t++)e+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",H,e].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=e.token,this._skuTokenExpiresAt=e.tokenExpiresAt},U.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},U.prototype.transformRequest=function(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}},U.prototype.normalizeStyleURL=function(e,t){if(!W(e))return e;var n=Y(e);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},U.prototype.normalizeGlyphsURL=function(e,t){if(!W(e))return e;var n=Y(e);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||t)},U.prototype.normalizeSourceURL=function(e,t){if(!W(e))return e;var n=Y(e);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||t)},U.prototype.normalizeSpriteURL=function(e,t,n,r){var a=Y(e);return W(e)?(a.path="/styles/v1"+a.path+"/sprite"+t+n,this._makeAPIURL(a,this._customAccessToken||r)):(a.path+=""+t+n,K(a))},U.prototype.normalizeTileURL=function(e,t){if(this._isSkuTokenExpired()&&this._createSkuToken(),e&&!W(e))return e;var n=Y(e);n.path=n.path.replace(/(\.(png|jpg)\d*)(?=$)/,(R.devicePixelRatio>=2||512===t?"@2x":"")+(N.supported?".webp":"$1")),n.path=n.path.replace(/^.+\/v4\//,"/"),n.path="/v4"+n.path;var r=this._customAccessToken||function(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t].match(/^access_token=(.*)$/);if(r)return r[1]}return null}(n.params)||z.ACCESS_TOKEN;return z.REQUIRE_ACCESS_TOKEN&&r&&this._skuToken&&n.params.push("sku="+this._skuToken),this._makeAPIURL(n,r)},U.prototype.canonicalizeTileURL=function(e,t){var n=Y(e);if(!n.path.match(/(^\/v4\/)/)||!n.path.match(/\.[\w]+$/))return e;var r="mapbox://tiles/";r+=n.path.replace("/v4/","");var a=n.params;return t&&(a=a.filter((function(e){return!e.match(/^access_token=/)}))),a.length&&(r+="?"+a.join("&")),r},U.prototype.canonicalizeTileset=function(e,t){for(var n=!!t&&W(t),r=[],a=0,o=e.tiles||[];a<o.length;a+=1){var i=o[a];$(i)?r.push(this.canonicalizeTileURL(i,n)):r.push(i)}return r},U.prototype._makeAPIURL=function(e,t){var n="See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes",r=Y(z.API_URL);if(e.protocol=r.protocol,e.authority=r.authority,"/"!==r.path&&(e.path=""+r.path+e.path),!z.REQUIRE_ACCESS_TOKEN)return K(e);if(!(t=t||z.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===t[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n);return e.params=e.params.filter((function(e){return-1===e.indexOf("access_token")})),e.params.push("access_token="+t),K(e)};var q=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function $(e){return q.test(e)}var G=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Y(e){var t=e.match(G);if(!t)throw new Error("Unable to parse URL object");return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}function K(e){var t=e.params.length?"?"+e.params.join("&"):"";return e.protocol+"://"+e.authority+e.path+t}function X(e){if(!e)return null;var t=e.split(".");if(!t||3!==t.length)return null;try{return JSON.parse(decodeURIComponent(self.atob(t[1]).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(e){return null}}var Z=function(e){this.type=e,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};Z.prototype.getStorageKey=function(e){var t,n=X(z.ACCESS_TOKEN);return t=n&&n.u?self.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(Number("0x"+t))}))):z.ACCESS_TOKEN||"",e?"mapbox.eventData."+e+":"+t:"mapbox.eventData:"+t},Z.prototype.fetchEventData=function(){var e=S("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{var r=self.localStorage.getItem(t);r&&(this.eventData=JSON.parse(r));var a=self.localStorage.getItem(n);a&&(this.anonId=a)}catch(e){_("Unable to read from LocalStorage")}},Z.prototype.saveEventData=function(){var e=S("localStorage"),t=this.getStorageKey(),n=this.getStorageKey("uuid");if(e)try{self.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&self.localStorage.setItem(t,JSON.stringify(this.eventData))}catch(e){_("Unable to write to LocalStorage")}},Z.prototype.processRequests=function(e){},Z.prototype.postEvent=function(e,t,n,r){var a=this;if(z.EVENTS_URL){var o=Y(z.EVENTS_URL);o.params.push("access_token="+(r||z.ACCESS_TOKEN||""));var i={event:this.type,created:new Date(e).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.10.1",skuId:H,userId:this.anonId},l=t?c(i,t):i,s={url:K(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([l])};this.pendingRequest=be(s,(function(e){a.pendingRequest=null,n(e),a.saveEventData(),a.processRequests(r)}))}},Z.prototype.queueRequest=function(e,t){this.queue.push(e),this.processRequests(t)};var J,Q,ee=function(e){function t(){e.call(this,"map.load"),this.success={},this.skuToken=""}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.postMapLoadEvent=function(e,t,n,r){this.skuToken=n,(z.EVENTS_URL&&r||z.ACCESS_TOKEN&&Array.isArray(e)&&e.some((function(e){return W(e)||$(e)})))&&this.queueRequest({id:t,timestamp:Date.now()},r)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){var n=this.queue.shift(),r=n.id,a=n.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),h(this.anonId)||(this.anonId=d()),this.postEvent(a,{skuToken:this.skuToken},(function(e){e||r&&(t.success[r]=!0)}),e))}},t}(Z),te=new(function(e){function t(t){e.call(this,"appUserTurnstile"),this._customAccessToken=t}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.postTurnstileEvent=function(e,t){z.EVENTS_URL&&z.ACCESS_TOKEN&&Array.isArray(e)&&e.some((function(e){return W(e)||$(e)}))&&this.queueRequest(Date.now(),t)},t.prototype.processRequests=function(e){var t=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var n=X(z.ACCESS_TOKEN),r=n?n.u:z.ACCESS_TOKEN,a=r!==this.eventData.tokenU;h(this.anonId)||(this.anonId=d(),a=!0);var o=this.queue.shift();if(this.eventData.lastSuccess){var i=new Date(this.eventData.lastSuccess),l=new Date(o),s=(o-this.eventData.lastSuccess)/864e5;a=a||s>=1||s<-1||i.getDate()!==l.getDate()}else a=!0;if(!a)return this.processRequests();this.postEvent(o,{"enabled.telemetry":!1},(function(e){e||(t.eventData.lastSuccess=o,t.eventData.tokenU=r)}),e)}},t}(Z)),ne=te.postTurnstileEvent.bind(te),re=new ee,ae=re.postMapLoadEvent.bind(re),oe=500,ie=50;function le(){self.caches&&!J&&(J=self.caches.open("mapbox-tiles"))}function se(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}var ue,ce=1/0;function fe(){return null==ue&&(ue=self.OffscreenCanvas&&new self.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof self.createImageBitmap),ue}var pe={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(pe);var de,he,ve=function(e){function t(t,n,r){401===n&&$(r)&&(t+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),e.call(this,t),this.status=n,this.url=r,this.name=this.constructor.name,this.message=t}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},t}(Error),me=T()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===self.location.protocol?self.parent:self).location.href},ye=function(e,t){if(!(/^file:/.test(n=e.url)||/^file:/.test(me())&&!/^\w+:/.test(n))){if(self.fetch&&self.Request&&self.AbortController&&self.Request.prototype.hasOwnProperty("signal"))return function(e,t){var n,r=new self.AbortController,a=new self.Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,referrer:me(),signal:r.signal}),o=!1,i=!1,l=(n=a.url).indexOf("sku=")>0&&$(n);"json"===e.type&&a.headers.set("Accept","application/json");var s=function(n,r,o){if(!i){if(n&&"SecurityError"!==n.message&&_(n),r&&o)return u(r);var s=Date.now();self.fetch(a).then((function(n){if(n.ok){var r=l?n.clone():null;return u(n,r,s)}return t(new ve(n.statusText,n.status,e.url))})).catch((function(e){20!==e.code&&t(new Error(e.message))}))}},u=function(n,r,l){("arrayBuffer"===e.type?n.arrayBuffer():"json"===e.type?n.json():n.text()).then((function(e){i||(r&&l&&function(e,t,n){if(le(),J){var r={status:t.status,statusText:t.statusText,headers:new self.Headers};t.headers.forEach((function(e,t){return r.headers.set(t,e)}));var a=E(t.headers.get("Cache-Control")||"");a["no-store"]||(a["max-age"]&&r.headers.set("Expires",new Date(n+1e3*a["max-age"]).toUTCString()),new Date(r.headers.get("Expires")).getTime()-n<42e4||function(e,t){if(void 0===Q)try{new Response(new ReadableStream),Q=!0}catch(e){Q=!1}Q?t(e.body):e.blob().then(t)}(t,(function(t){var n=new self.Response(t,r);le(),J&&J.then((function(t){return t.put(se(e.url),n)})).catch((function(e){return _(e.message)}))})))}}(a,r,l),o=!0,t(null,e,n.headers.get("Cache-Control"),n.headers.get("Expires")))})).catch((function(e){i||t(new Error(e.message))}))};return l?function(e,t){if(le(),!J)return t(null);var n=se(e.url);J.then((function(e){e.match(n).then((function(r){var a=function(e){if(!e)return!1;var t=new Date(e.headers.get("Expires")||0),n=E(e.headers.get("Cache-Control")||"");return t>Date.now()&&!n["no-cache"]}(r);e.delete(n),a&&e.put(n,r.clone()),t(null,r,a)})).catch(t)})).catch(t)}(a,s):s(null,null),{cancel:function(){i=!0,o||r.abort()}}}(e,t);if(T()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}var n;return function(e,t){var n=new self.XMLHttpRequest;for(var r in n.open(e.method||"GET",e.url,!0),"arrayBuffer"===e.type&&(n.responseType="arraybuffer"),e.headers)n.setRequestHeader(r,e.headers[r]);return"json"===e.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===e.credentials,n.onerror=function(){t(new Error(n.statusText))},n.onload=function(){if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){var r=n.response;if("json"===e.type)try{r=JSON.parse(n.response)}catch(e){return t(e)}t(null,r,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else t(new ve(n.statusText,n.status,e.url))},n.send(e.body),{cancel:function(){return n.abort()}}}(e,t)},ge=function(e,t){return ye(c(e,{type:"arrayBuffer"}),t)},be=function(e,t){return ye(c(e,{method:"POST"}),t)};de=[],he=0;var xe=function(e,t){if(N.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*"),he>=z.MAX_PARALLEL_IMAGE_REQUESTS){var n={requestParameters:e,callback:t,cancelled:!1,cancel:function(){this.cancelled=!0}};return de.push(n),n}he++;var r=!1,a=function(){if(!r)for(r=!0,he--;de.length&&he<z.MAX_PARALLEL_IMAGE_REQUESTS;){var e=de.shift();e.cancelled||(e.cancel=xe(e.requestParameters,e.callback).cancel)}},o=ge(e,(function(e,n,r,o){a(),e?t(e):n&&(fe()?function(e,t){var n=new self.Blob([new Uint8Array(e)],{type:"image/png"});self.createImageBitmap(n).then((function(e){t(null,e)})).catch((function(e){t(new Error("Could not load image because of "+e.message+". Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))}))}(n,t):function(e,t,n,r){var a=new self.Image,o=self.URL;a.onload=function(){t(null,a),o.revokeObjectURL(a.src)},a.onerror=function(){return t(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."))};var i=new self.Blob([new Uint8Array(e)],{type:"image/png"});a.cacheControl=n,a.expires=r,a.src=e.byteLength?o.createObjectURL(i):"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII="}(n,t,r,o))}));return{cancel:function(){o.cancel(),a()}}};function _e(e,t,n){n[e]&&-1!==n[e].indexOf(t)||(n[e]=n[e]||[],n[e].push(t))}function we(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}var ke=function(e,t){void 0===t&&(t={}),c(this,t),this.type=e},Te=function(e){function t(t,n){void 0===n&&(n={}),e.call(this,"error",c({error:t},n))}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(ke),Ee=function(){};Ee.prototype.on=function(e,t){return this._listeners=this._listeners||{},_e(e,t,this._listeners),this},Ee.prototype.off=function(e,t){return we(e,t,this._listeners),we(e,t,this._oneTimeListeners),this},Ee.prototype.once=function(e,t){return this._oneTimeListeners=this._oneTimeListeners||{},_e(e,t,this._oneTimeListeners),this},Ee.prototype.fire=function(e,t){"string"==typeof e&&(e=new ke(e,t||{}));var n=e.type;if(this.listens(n)){e.target=this;for(var r=0,a=this._listeners&&this._listeners[n]?this._listeners[n].slice():[];r<a.length;r+=1)a[r].call(this,e);for(var o=0,i=this._oneTimeListeners&&this._oneTimeListeners[n]?this._oneTimeListeners[n].slice():[];o<i.length;o+=1){var l=i[o];we(n,l,this._oneTimeListeners),l.call(this,e)}var s=this._eventedParent;s&&(c(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),s.fire(e))}else e instanceof Te&&console.error(e.error);return this},Ee.prototype.listens=function(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)},Ee.prototype.setEventedParent=function(e,t){return this._eventedParent=e,this._eventedParentData=t,this};var Oe={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},expression_name:{type:"enum",values:{let:{group:"Variable binding"},var:{group:"Variable binding"},literal:{group:"Types"},array:{group:"Types"},at:{group:"Lookup"},in:{group:"Lookup"},"index-of":{group:"Lookup"},slice:{group:"Lookup"},case:{group:"Decision"},match:{group:"Decision"},coalesce:{group:"Decision"},step:{group:"Ramps, scales, curves"},interpolate:{group:"Ramps, scales, curves"},"interpolate-hcl":{group:"Ramps, scales, curves"},"interpolate-lab":{group:"Ramps, scales, curves"},ln2:{group:"Math"},pi:{group:"Math"},e:{group:"Math"},typeof:{group:"Types"},string:{group:"Types"},number:{group:"Types"},boolean:{group:"Types"},object:{group:"Types"},collator:{group:"Types"},format:{group:"Types"},image:{group:"Types"},"number-format":{group:"Types"},"to-string":{group:"Types"},"to-number":{group:"Types"},"to-boolean":{group:"Types"},"to-rgba":{group:"Color"},"to-color":{group:"Types"},rgb:{group:"Color"},rgba:{group:"Color"},get:{group:"Lookup"},has:{group:"Lookup"},length:{group:"Lookup"},properties:{group:"Feature data"},"feature-state":{group:"Feature data"},"geometry-type":{group:"Feature data"},id:{group:"Feature data"},zoom:{group:"Zoom"},"heatmap-density":{group:"Heatmap"},"line-progress":{group:"Feature data"},accumulated:{group:"Feature data"},"+":{group:"Math"},"*":{group:"Math"},"-":{group:"Math"},"/":{group:"Math"},"%":{group:"Math"},"^":{group:"Math"},sqrt:{group:"Math"},log10:{group:"Math"},ln:{group:"Math"},log2:{group:"Math"},sin:{group:"Math"},cos:{group:"Math"},tan:{group:"Math"},asin:{group:"Math"},acos:{group:"Math"},atan:{group:"Math"},min:{group:"Math"},max:{group:"Math"},round:{group:"Math"},abs:{group:"Math"},ceil:{group:"Math"},floor:{group:"Math"},distance:{group:"Math"},"==":{group:"Decision"},"!=":{group:"Decision"},">":{group:"Decision"},"<":{group:"Decision"},">=":{group:"Decision"},"<=":{group:"Decision"},all:{group:"Decision"},any:{group:"Decision"},"!":{group:"Decision"},within:{group:"Decision"},"is-supported-script":{group:"String"},upcase:{group:"String"},downcase:{group:"String"},concat:{group:"String"},"resolved-locale":{group:"String"}}},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},Me=function(e,t,n,r){this.message=(e?e+": ":"")+n,r&&(this.identifier=r),null!=t&&t.__line__&&(this.line=t.__line__)};function Se(e){var t=e.value;return t?[new Me(e.key,t,"constants have been deprecated as of v8")]:[]}function Ce(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];for(var r=0,a=t;r<a.length;r+=1){var o=a[r];for(var i in o)e[i]=o[i]}return e}function Ae(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function Pe(e){if(Array.isArray(e))return e.map(Pe);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){var t={};for(var n in e)t[n]=Pe(e[n]);return t}return Ae(e)}var Le=function(e){function t(t,n){e.call(this,n),this.message=n,this.key=t}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(Error),De=function(e,t){void 0===t&&(t=[]),this.parent=e,this.bindings={};for(var n=0,r=t;n<r.length;n+=1){var a=r[n];this.bindings[a[0]]=a[1]}};De.prototype.concat=function(e){return new De(this,e)},De.prototype.get=function(e){if(this.bindings[e])return this.bindings[e];if(this.parent)return this.parent.get(e);throw new Error(e+" not found in scope.")},De.prototype.has=function(e){return!!this.bindings[e]||!!this.parent&&this.parent.has(e)};var je={kind:"null"},Ie={kind:"number"},Re={kind:"string"},ze={kind:"boolean"},Ne={kind:"color"},Fe={kind:"object"},Be={kind:"value"},Ve={kind:"collator"},He={kind:"formatted"},Ue={kind:"resolvedImage"};function We(e,t){return{kind:"array",itemType:e,N:t}}function qe(e){if("array"===e.kind){var t=qe(e.itemType);return"number"==typeof e.N?"array<"+t+", "+e.N+">":"value"===e.itemType.kind?"array":"array<"+t+">"}return e.kind}var $e=[je,Ie,Re,ze,Ne,He,Fe,We(Be),Ue];function Ge(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!Ge(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind)for(var n=0,r=$e;n<r.length;n+=1)if(!Ge(r[n],t))return null}return"Expected "+qe(e)+" but found "+qe(t)+" instead."}function Ye(e,t){return t.some((function(t){return t.kind===e.kind}))}function Ke(e,t){return t.some((function(t){return"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e}))}var Xe=t((function(e,t){var n={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function r(e){return(e=Math.round(e))<0?0:e>255?255:e}function a(e){return r("%"===e[e.length-1]?parseFloat(e)/100*255:parseInt(e))}function o(e){return(t="%"===e[e.length-1]?parseFloat(e)/100:parseFloat(e))<0?0:t>1?1:t;var t}function i(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}try{t.parseCSSColor=function(e){var t,l=e.replace(/ /g,"").toLowerCase();if(l in n)return n[l].slice();if("#"===l[0])return 4===l.length?(t=parseInt(l.substr(1),16))>=0&&t<=4095?[(3840&t)>>4|(3840&t)>>8,240&t|(240&t)>>4,15&t|(15&t)<<4,1]:null:7===l.length&&(t=parseInt(l.substr(1),16))>=0&&t<=16777215?[(16711680&t)>>16,(65280&t)>>8,255&t,1]:null;var s=l.indexOf("("),u=l.indexOf(")");if(-1!==s&&u+1===l.length){var c=l.substr(0,s),f=l.substr(s+1,u-(s+1)).split(","),p=1;switch(c){case"rgba":if(4!==f.length)return null;p=o(f.pop());case"rgb":return 3!==f.length?null:[a(f[0]),a(f[1]),a(f[2]),p];case"hsla":if(4!==f.length)return null;p=o(f.pop());case"hsl":if(3!==f.length)return null;var d=(parseFloat(f[0])%360+360)%360/360,h=o(f[1]),v=o(f[2]),m=v<=.5?v*(h+1):v+h-v*h,y=2*v-m;return[r(255*i(y,m,d+1/3)),r(255*i(y,m,d)),r(255*i(y,m,d-1/3)),p];default:return null}}return null}}catch(e){}})).parseCSSColor,Ze=function(e,t,n,r){void 0===r&&(r=1),this.r=e,this.g=t,this.b=n,this.a=r};Ze.parse=function(e){if(e){if(e instanceof Ze)return e;if("string"==typeof e){var t=Xe(e);if(t)return new Ze(t[0]/255*t[3],t[1]/255*t[3],t[2]/255*t[3],t[3])}}},Ze.prototype.toString=function(){var e=this.toArray(),t=e[1],n=e[2],r=e[3];return"rgba("+Math.round(e[0])+","+Math.round(t)+","+Math.round(n)+","+r+")"},Ze.prototype.toArray=function(){var e=this.a;return 0===e?[0,0,0,0]:[255*this.r/e,255*this.g/e,255*this.b/e,e]},Ze.black=new Ze(0,0,0,1),Ze.white=new Ze(1,1,1,1),Ze.transparent=new Ze(0,0,0,0),Ze.red=new Ze(1,0,0,1);var Je=function(e,t,n){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};Je.prototype.compare=function(e,t){return this.collator.compare(e,t)},Je.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var Qe=function(e,t,n,r,a){this.text=e,this.image=t,this.scale=n,this.fontStack=r,this.textColor=a},et=function(e){this.sections=e};et.fromString=function(e){return new et([new Qe(e,null,null,null,null)])},et.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(e){return 0!==e.text.length||e.image&&0!==e.image.name.length}))},et.factory=function(e){return e instanceof et?e:et.fromString(e)},et.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(e){return e.text})).join("")},et.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t<n.length;t+=1){var r=n[t];if(r.image)e.push(["image",r.image.name]);else{e.push(r.text);var a={};r.fontStack&&(a["text-font"]=["literal",r.fontStack.split(",")]),r.scale&&(a["font-scale"]=r.scale),r.textColor&&(a["text-color"]=["rgba"].concat(r.textColor.toArray())),e.push(a)}}return e};var tt=function(e){this.name=e.name,this.available=e.available};function nt(e,t,n,r){return"number"==typeof e&&e>=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[e,t,n,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[e,t,n,r]:[e,t,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function rt(e){if(null===e)return!0;if("string"==typeof e)return!0;if("boolean"==typeof e)return!0;if("number"==typeof e)return!0;if(e instanceof Ze)return!0;if(e instanceof Je)return!0;if(e instanceof et)return!0;if(e instanceof tt)return!0;if(Array.isArray(e)){for(var t=0,n=e;t<n.length;t+=1)if(!rt(n[t]))return!1;return!0}if("object"==typeof e){for(var r in e)if(!rt(e[r]))return!1;return!0}return!1}function at(e){if(null===e)return je;if("string"==typeof e)return Re;if("boolean"==typeof e)return ze;if("number"==typeof e)return Ie;if(e instanceof Ze)return Ne;if(e instanceof Je)return Ve;if(e instanceof et)return He;if(e instanceof tt)return Ue;if(Array.isArray(e)){for(var t,n=e.length,r=0,a=e;r<a.length;r+=1){var o=at(a[r]);if(t){if(t===o)continue;t=Be;break}t=o}return We(t||Be,n)}return Fe}function ot(e){var t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof Ze||e instanceof et||e instanceof tt?e.toString():JSON.stringify(e)}tt.prototype.toString=function(){return this.name},tt.fromString=function(e){return e?new tt({name:e,available:!1}):null},tt.prototype.serialize=function(){return["image",this.name]};var it=function(e,t){this.type=e,this.value=t};it.parse=function(e,t){if(2!==e.length)return t.error("'literal' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(!rt(e[1]))return t.error("invalid value");var n=e[1],r=at(n),a=t.expectedType;return"array"!==r.kind||0!==r.N||!a||"array"!==a.kind||"number"==typeof a.N&&0!==a.N||(r=a),new it(r,n)},it.prototype.evaluate=function(){return this.value},it.prototype.eachChild=function(){},it.prototype.outputDefined=function(){return!0},it.prototype.serialize=function(){return"array"===this.type.kind||"object"===this.type.kind?["literal",this.value]:this.value instanceof Ze?["rgba"].concat(this.value.toArray()):this.value instanceof et?this.value.serialize():this.value};var lt=function(e){this.name="ExpressionEvaluationError",this.message=e};lt.prototype.toJSON=function(){return this.message};var st={string:Re,number:Ie,boolean:ze,object:Fe},ut=function(e,t){this.type=e,this.args=t};ut.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n,r=1,a=e[0];if("array"===a){var o,i;if(e.length>2){var l=e[1];if("string"!=typeof l||!(l in st)||"object"===l)return t.error('The item type argument of "array" must be one of string, number, boolean',1);o=st[l],r++}else o=Be;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);i=e[2],r++}n=We(o,i)}else n=st[a];for(var s=[];r<e.length;r++){var u=t.parse(e[r],r,Be);if(!u)return null;s.push(u)}return new ut(n,s)},ut.prototype.evaluate=function(e){for(var t=0;t<this.args.length;t++){var n=this.args[t].evaluate(e);if(!Ge(this.type,at(n)))return n;if(t===this.args.length-1)throw new lt("Expected value to be of type "+qe(this.type)+", but found "+qe(at(n))+" instead.")}return null},ut.prototype.eachChild=function(e){this.args.forEach(e)},ut.prototype.outputDefined=function(){return this.args.every((function(e){return e.outputDefined()}))},ut.prototype.serialize=function(){var e=this.type,t=[e.kind];if("array"===e.kind){var n=e.itemType;if("string"===n.kind||"number"===n.kind||"boolean"===n.kind){t.push(n.kind);var r=e.N;("number"==typeof r||this.args.length>1)&&t.push(r)}}return t.concat(this.args.map((function(e){return e.serialize()})))};var ct=function(e){this.type=He,this.sections=e};ct.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n=e[1];if(!Array.isArray(n)&&"object"==typeof n)return t.error("First argument must be an image or text section.");for(var r=[],a=!1,o=1;o<=e.length-1;++o){var i=e[o];if(a&&"object"==typeof i&&!Array.isArray(i)){a=!1;var l=null;if(i["font-scale"]&&!(l=t.parse(i["font-scale"],1,Ie)))return null;var s=null;if(i["text-font"]&&!(s=t.parse(i["text-font"],1,We(Re))))return null;var u=null;if(i["text-color"]&&!(u=t.parse(i["text-color"],1,Ne)))return null;var c=r[r.length-1];c.scale=l,c.font=s,c.textColor=u}else{var f=t.parse(e[o],1,Be);if(!f)return null;var p=f.type.kind;if("string"!==p&&"value"!==p&&"null"!==p&&"resolvedImage"!==p)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,r.push({content:f,scale:null,font:null,textColor:null})}}return new ct(r)},ct.prototype.evaluate=function(e){return new et(this.sections.map((function(t){var n=t.content.evaluate(e);return at(n)===Ue?new Qe("",n,null,null,null):new Qe(ot(n),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)})))},ct.prototype.eachChild=function(e){for(var t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e(r.content),r.scale&&e(r.scale),r.font&&e(r.font),r.textColor&&e(r.textColor)}},ct.prototype.outputDefined=function(){return!1},ct.prototype.serialize=function(){for(var e=["format"],t=0,n=this.sections;t<n.length;t+=1){var r=n[t];e.push(r.content.serialize());var a={};r.scale&&(a["font-scale"]=r.scale.serialize()),r.font&&(a["text-font"]=r.font.serialize()),r.textColor&&(a["text-color"]=r.textColor.serialize()),e.push(a)}return e};var ft=function(e){this.type=Ue,this.input=e};ft.parse=function(e,t){if(2!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,Re);return n?new ft(n):t.error("No image name provided.")},ft.prototype.evaluate=function(e){var t=this.input.evaluate(e),n=tt.fromString(t);return n&&e.availableImages&&(n.available=e.availableImages.indexOf(t)>-1),n},ft.prototype.eachChild=function(e){e(this.input)},ft.prototype.outputDefined=function(){return!1},ft.prototype.serialize=function(){return["image",this.input.serialize()]};var pt={"to-boolean":ze,"to-color":Ne,"to-number":Ie,"to-string":Re},dt=function(e,t){this.type=e,this.args=t};dt.parse=function(e,t){if(e.length<2)return t.error("Expected at least one argument.");var n=e[0];if(("to-boolean"===n||"to-string"===n)&&2!==e.length)return t.error("Expected one argument.");for(var r=pt[n],a=[],o=1;o<e.length;o++){var i=t.parse(e[o],o,Be);if(!i)return null;a.push(i)}return new dt(r,a)},dt.prototype.evaluate=function(e){if("boolean"===this.type.kind)return Boolean(this.args[0].evaluate(e));if("color"===this.type.kind){for(var t,n,r=0,a=this.args;r<a.length;r+=1){if(n=null,(t=a[r].evaluate(e))instanceof Ze)return t;if("string"==typeof t){var o=e.parseColor(t);if(o)return o}else if(Array.isArray(t)&&!(n=t.length<3||t.length>4?"Invalid rbga value "+JSON.stringify(t)+": expected an array containing either three or four numeric values.":nt(t[0],t[1],t[2],t[3])))return new Ze(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new lt(n||"Could not parse color from value '"+("string"==typeof t?t:String(JSON.stringify(t)))+"'")}if("number"===this.type.kind){for(var i=null,l=0,s=this.args;l<s.length;l+=1){if(null===(i=s[l].evaluate(e)))return 0;var u=Number(i);if(!isNaN(u))return u}throw new lt("Could not convert "+JSON.stringify(i)+" to number.")}return"formatted"===this.type.kind?et.fromString(ot(this.args[0].evaluate(e))):"resolvedImage"===this.type.kind?tt.fromString(ot(this.args[0].evaluate(e))):ot(this.args[0].evaluate(e))},dt.prototype.eachChild=function(e){this.args.forEach(e)},dt.prototype.outputDefined=function(){return this.args.every((function(e){return e.outputDefined()}))},dt.prototype.serialize=function(){if("formatted"===this.type.kind)return new ct([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if("resolvedImage"===this.type.kind)return new ft(this.args[0]).serialize();var e=["to-"+this.type.kind];return this.eachChild((function(t){e.push(t.serialize())})),e};var ht=["Unknown","Point","LineString","Polygon"],vt=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};vt.prototype.id=function(){return this.feature&&"id"in this.feature?this.feature.id:null},vt.prototype.geometryType=function(){return this.feature?"number"==typeof this.feature.type?ht[this.feature.type]:this.feature.type:null},vt.prototype.geometry=function(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null},vt.prototype.canonicalID=function(){return this.canonical},vt.prototype.properties=function(){return this.feature&&this.feature.properties||{}},vt.prototype.parseColor=function(e){var t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=Ze.parse(e)),t};var mt=function(e,t,n,r){this.name=e,this.type=t,this._evaluate=n,this.args=r};mt.prototype.evaluate=function(e){return this._evaluate(e,this.args)},mt.prototype.eachChild=function(e){this.args.forEach(e)},mt.prototype.outputDefined=function(){return!1},mt.prototype.serialize=function(){return[this.name].concat(this.args.map((function(e){return e.serialize()})))},mt.parse=function(e,t){var n,r=e[0],a=mt.definitions[r];if(!a)return t.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0);for(var o=Array.isArray(a)?a[0]:a.type,i=Array.isArray(a)?[[a[1],a[2]]]:a.overloads,l=i.filter((function(t){var n=t[0];return!Array.isArray(n)||n.length===e.length-1})),s=null,u=0,c=l;u<c.length;u+=1){var f=c[u],p=f[0],d=f[1];s=new Nt(t.registry,t.path,null,t.scope);for(var h=[],v=!1,m=1;m<e.length;m++){var y=e[m],g=Array.isArray(p)?p[m-1]:p.type,b=s.parse(y,1+h.length,g);if(!b){v=!0;break}h.push(b)}if(!v)if(Array.isArray(p)&&p.length!==h.length)s.error("Expected "+p.length+" arguments, but found "+h.length+" instead.");else{for(var x=0;x<h.length;x++){var _=Array.isArray(p)?p[x]:p.type,w=h[x];s.concat(x+1).checkSubtype(_,w.type)}if(0===s.errors.length)return new mt(r,o,d,h)}}if(1===l.length)(n=t.errors).push.apply(n,s.errors);else{for(var k=(l.length?l:i).map((function(e){var t;return t=e[0],Array.isArray(t)?"("+t.map(qe).join(", ")+")":"("+qe(t.type)+"...)"})).join(" | "),T=[],E=1;E<e.length;E++){var O=t.parse(e[E],1+T.length);if(!O)return null;T.push(qe(O.type))}t.error("Expected arguments of type "+k+", but found ("+T.join(", ")+") instead.")}return null},mt.register=function(e,t){for(var n in mt.definitions=t,t)e[n]=mt};var yt=function(e,t,n){this.type=Ve,this.locale=n,this.caseSensitive=e,this.diacriticSensitive=t};function gt(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function bt(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function xt(e,t){var n=(180+e[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e[1]*Math.PI/360)))/360,a=Math.pow(2,t.z);return[Math.round(n*a*8192),Math.round(r*a*8192)]}function _t(e,t,n){return t[1]>e[1]!=n[1]>e[1]&&e[0]<(n[0]-t[0])*(e[1]-t[1])/(n[1]-t[1])+t[0]}function wt(e,t){for(var n,r,a,o,i,l,s,u=!1,c=0,f=t.length;c<f;c++)for(var p=t[c],d=0,h=p.length;d<h-1;d++){if((o=(n=e)[0]-(r=p[d])[0])*(s=n[1]-(a=p[d+1])[1])-(l=n[0]-a[0])*(i=n[1]-r[1])==0&&o*l<=0&&i*s<=0)return!1;_t(e,p[d],p[d+1])&&(u=!u)}return u}function kt(e,t){for(var n=0;n<t.length;n++)if(wt(e,t[n]))return!0;return!1}function Tt(e,t,n,r){var a=r[0]-n[0],o=r[1]-n[1],i=(e[0]-n[0])*o-a*(e[1]-n[1]),l=(t[0]-n[0])*o-a*(t[1]-n[1]);return i>0&&l<0||i<0&&l>0}function Et(e,t,n){for(var r=0,a=n;r<a.length;r+=1)for(var o=a[r],i=0;i<o.length-1;++i)if(0!=(f=[(c=o[i+1])[0]-(u=o[i])[0],c[1]-u[1]])[0]*(p=[(s=t)[0]-(l=e)[0],s[1]-l[1]])[1]-f[1]*p[0]&&Tt(l,s,u,c)&&Tt(u,c,l,s))return!0;var l,s,u,c,f,p;return!1}function Ot(e,t){for(var n=0;n<e.length;++n)if(!wt(e[n],t))return!1;for(var r=0;r<e.length-1;++r)if(Et(e[r],e[r+1],t))return!1;return!0}function Mt(e,t){for(var n=0;n<t.length;n++)if(Ot(e,t[n]))return!0;return!1}function St(e,t,n){for(var r=[],a=0;a<e.length;a++){for(var o=[],i=0;i<e[a].length;i++){var l=xt(e[a][i],n);gt(t,l),o.push(l)}r.push(o)}return r}function Ct(e,t,n){for(var r=[],a=0;a<e.length;a++){var o=St(e[a],t,n);r.push(o)}return r}function At(e,t,n,r){if(e[0]<n[0]||e[0]>n[2]){var a=.5*r,o=e[0]-n[0]>a?-r:n[0]-e[0]>a?r:0;0===o&&(o=e[0]-n[2]>a?-r:n[2]-e[0]>a?r:0),e[0]+=o}gt(t,e)}function Pt(e,t,n,r){for(var a=8192*Math.pow(2,r.z),o=[8192*r.x,8192*r.y],i=[],l=0,s=e;l<s.length;l+=1)for(var u=0,c=s[l];u<c.length;u+=1){var f=c[u],p=[f.x+o[0],f.y+o[1]];At(p,t,n,a),i.push(p)}return i}function Lt(e,t,n,r){for(var a,o=8192*Math.pow(2,r.z),i=[8192*r.x,8192*r.y],l=[],s=0,u=e;s<u.length;s+=1){for(var c=[],f=0,p=u[s];f<p.length;f+=1){var d=p[f],h=[d.x+i[0],d.y+i[1]];gt(t,h),c.push(h)}l.push(c)}if(t[2]-t[0]<=o/2){(a=t)[0]=a[1]=1/0,a[2]=a[3]=-1/0;for(var v=0,m=l;v<m.length;v+=1)for(var y=0,g=m[v];y<g.length;y+=1)At(g[y],t,n,o)}return l}yt.parse=function(e,t){if(2!==e.length)return t.error("Expected one argument.");var n=e[1];if("object"!=typeof n||Array.isArray(n))return t.error("Collator options argument must be an object.");var r=t.parse(void 0!==n["case-sensitive"]&&n["case-sensitive"],1,ze);if(!r)return null;var a=t.parse(void 0!==n["diacritic-sensitive"]&&n["diacritic-sensitive"],1,ze);if(!a)return null;var o=null;return n.locale&&!(o=t.parse(n.locale,1,Re))?null:new yt(r,a,o)},yt.prototype.evaluate=function(e){return new Je(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)},yt.prototype.eachChild=function(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)},yt.prototype.outputDefined=function(){return!1},yt.prototype.serialize=function(){var e={};return e["case-sensitive"]=this.caseSensitive.serialize(),e["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(e.locale=this.locale.serialize()),["collator",e]};var Dt=function(e,t){this.type=ze,this.geojson=e,this.geometries=t};function jt(e){if(e instanceof mt){if("get"===e.name&&1===e.args.length)return!1;if("feature-state"===e.name)return!1;if("has"===e.name&&1===e.args.length)return!1;if("properties"===e.name||"geometry-type"===e.name||"id"===e.name)return!1;if(/^filter-/.test(e.name))return!1}if(e instanceof Dt)return!1;var t=!0;return e.eachChild((function(e){t&&!jt(e)&&(t=!1)})),t}function It(e){if(e instanceof mt&&"feature-state"===e.name)return!1;var t=!0;return e.eachChild((function(e){t&&!It(e)&&(t=!1)})),t}function Rt(e,t){if(e instanceof mt&&t.indexOf(e.name)>=0)return!1;var n=!0;return e.eachChild((function(e){n&&!Rt(e,t)&&(n=!1)})),n}Dt.parse=function(e,t){if(2!==e.length)return t.error("'within' expression requires exactly one argument, but found "+(e.length-1)+" instead.");if(rt(e[1])){var n=e[1];if("FeatureCollection"===n.type)for(var r=0;r<n.features.length;++r){var a=n.features[r].geometry.type;if("Polygon"===a||"MultiPolygon"===a)return new Dt(n,n.features[r].geometry)}else if("Feature"===n.type){var o=n.geometry.type;if("Polygon"===o||"MultiPolygon"===o)return new Dt(n,n.geometry)}else if("Polygon"===n.type||"MultiPolygon"===n.type)return new Dt(n,n)}return t.error("'within' expression requires valid geojson object that contains polygon geometry type.")},Dt.prototype.evaluate=function(e){if(null!=e.geometry()&&null!=e.canonicalID()){if("Point"===e.geometryType())return function(e,t){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],a=e.canonicalID();if("Polygon"===t.type){var o=St(t.coordinates,r,a),i=Pt(e.geometry(),n,r,a);if(!bt(n,r))return!1;for(var l=0,s=i;l<s.length;l+=1)if(!wt(s[l],o))return!1}if("MultiPolygon"===t.type){var u=Ct(t.coordinates,r,a),c=Pt(e.geometry(),n,r,a);if(!bt(n,r))return!1;for(var f=0,p=c;f<p.length;f+=1)if(!kt(p[f],u))return!1}return!0}(e,this.geometries);if("LineString"===e.geometryType())return function(e,t){var n=[1/0,1/0,-1/0,-1/0],r=[1/0,1/0,-1/0,-1/0],a=e.canonicalID();if("Polygon"===t.type){var o=St(t.coordinates,r,a),i=Lt(e.geometry(),n,r,a);if(!bt(n,r))return!1;for(var l=0,s=i;l<s.length;l+=1)if(!Ot(s[l],o))return!1}if("MultiPolygon"===t.type){var u=Ct(t.coordinates,r,a),c=Lt(e.geometry(),n,r,a);if(!bt(n,r))return!1;for(var f=0,p=c;f<p.length;f+=1)if(!Mt(p[f],u))return!1}return!0}(e,this.geometries)}return!1},Dt.prototype.eachChild=function(){},Dt.prototype.outputDefined=function(){return!0},Dt.prototype.serialize=function(){return["within",this.geojson]};var zt=function(e,t){this.type=t.type,this.name=e,this.boundExpression=t};zt.parse=function(e,t){if(2!==e.length||"string"!=typeof e[1])return t.error("'var' expression requires exactly one string literal argument.");var n=e[1];return t.scope.has(n)?new zt(n,t.scope.get(n)):t.error('Unknown variable "'+n+'". Make sure "'+n+'" has been bound in an enclosing "let" expression before using it.',1)},zt.prototype.evaluate=function(e){return this.boundExpression.evaluate(e)},zt.prototype.eachChild=function(){},zt.prototype.outputDefined=function(){return!1},zt.prototype.serialize=function(){return["var",this.name]};var Nt=function(e,t,n,r,a){void 0===t&&(t=[]),void 0===r&&(r=new De),void 0===a&&(a=[]),this.registry=e,this.path=t,this.key=t.map((function(e){return"["+e+"]"})).join(""),this.scope=r,this.errors=a,this.expectedType=n};function Ft(e,t){for(var n,r=e.length-1,a=0,o=r,i=0;a<=o;)if((n=e[i=Math.floor((a+o)/2)])<=t){if(i===r||t<e[i+1])return i;a=i+1}else{if(!(n>t))throw new lt("Input is not a number.");o=i-1}return 0}Nt.prototype.parse=function(e,t,n,r,a){return void 0===a&&(a={}),t?this.concat(t,n,r)._parse(e,a):this._parse(e,a)},Nt.prototype._parse=function(e,t){function n(e,t,n){return"assert"===n?new ut(t,[e]):"coerce"===n?new dt(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var r=e[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var a=this.registry[r];if(a){var o=a.parse(e,this);if(!o)return null;if(this.expectedType){var i=this.expectedType,l=o.type;if("string"!==i.kind&&"number"!==i.kind&&"boolean"!==i.kind&&"object"!==i.kind&&"array"!==i.kind||"value"!==l.kind)if("color"!==i.kind&&"formatted"!==i.kind&&"resolvedImage"!==i.kind||"value"!==l.kind&&"string"!==l.kind){if(this.checkSubtype(i,l))return null}else o=n(o,i,t.typeAnnotation||"coerce");else o=n(o,i,t.typeAnnotation||"assert")}if(!(o instanceof it)&&"resolvedImage"!==o.type.kind&&function e(t){if(t instanceof zt)return e(t.boundExpression);if(t instanceof mt&&"error"===t.name)return!1;if(t instanceof yt)return!1;if(t instanceof Dt)return!1;var n=t instanceof dt||t instanceof ut,r=!0;return t.eachChild((function(t){r=n?r&&e(t):r&&t instanceof it})),!!r&&jt(t)&&Rt(t,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(o)){var s=new vt;try{o=new it(o.type,o.evaluate(s))}catch(e){return this.error(e.message),null}}return o}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof e+" instead.")},Nt.prototype.concat=function(e,t,n){var r="number"==typeof e?this.path.concat(e):this.path,a=n?this.scope.concat(n):this.scope;return new Nt(this.registry,r,t||null,a,this.errors)},Nt.prototype.error=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=""+this.key+t.map((function(e){return"["+e+"]"})).join("");this.errors.push(new Le(r,e))},Nt.prototype.checkSubtype=function(e,t){var n=Ge(e,t);return n&&this.error(n),n};var Bt=function(e,t,n){this.type=e,this.input=t,this.labels=[],this.outputs=[];for(var r=0,a=n;r<a.length;r+=1){var o=a[r],i=o[1];this.labels.push(o[0]),this.outputs.push(i)}};function Vt(e,t,n){return e*(1-n)+t*n}Bt.parse=function(e,t){if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");var n=t.parse(e[1],1,Ie);if(!n)return null;var r=[],a=null;t.expectedType&&"value"!==t.expectedType.kind&&(a=t.expectedType);for(var o=1;o<e.length;o+=2){var i=1===o?-1/0:e[o],l=e[o+1],s=o,u=o+1;if("number"!=typeof i)return t.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',s);if(r.length&&r[r.length-1][0]>=i)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',s);var c=t.parse(l,u,a);if(!c)return null;a=a||c.type,r.push([i,c])}return new Bt(a,n,r)},Bt.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var a=t.length;return r>=t[a-1]?n[a-1].evaluate(e):n[Ft(t,r)].evaluate(e)},Bt.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},Bt.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))},Bt.prototype.serialize=function(){for(var e=["step",this.input.serialize()],t=0;t<this.labels.length;t++)t>0&&e.push(this.labels[t]),e.push(this.outputs[t].serialize());return e};var Ht=Object.freeze({__proto__:null,number:Vt,color:function(e,t,n){return new Ze(Vt(e.r,t.r,n),Vt(e.g,t.g,n),Vt(e.b,t.b,n),Vt(e.a,t.a,n))},array:function(e,t,n){return e.map((function(e,r){return Vt(e,t[r],n)}))}}),Ut=6/29*3*(6/29),Wt=Math.PI/180,qt=180/Math.PI;function $t(e){return e>.008856451679035631?Math.pow(e,1/3):e/Ut+4/29}function Gt(e){return e>6/29?e*e*e:Ut*(e-4/29)}function Yt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Kt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Xt(e){var t=Kt(e.r),n=Kt(e.g),r=Kt(e.b),a=$t((.4124564*t+.3575761*n+.1804375*r)/.95047),o=$t((.2126729*t+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(a-o),b:200*(o-$t((.0193339*t+.119192*n+.9503041*r)/1.08883)),alpha:e.a}}function Zt(e){var t=(e.l+16)/116,n=isNaN(e.a)?t:t+e.a/500,r=isNaN(e.b)?t:t-e.b/200;return t=1*Gt(t),n=.95047*Gt(n),r=1.08883*Gt(r),new Ze(Yt(3.2404542*n-1.5371385*t-.4985314*r),Yt(-.969266*n+1.8760108*t+.041556*r),Yt(.0556434*n-.2040259*t+1.0572252*r),e.alpha)}function Jt(e,t,n){var r=t-e;return e+n*(r>180||r<-180?r-360*Math.round(r/360):r)}var Qt={forward:Xt,reverse:Zt,interpolate:function(e,t,n){return{l:Vt(e.l,t.l,n),a:Vt(e.a,t.a,n),b:Vt(e.b,t.b,n),alpha:Vt(e.alpha,t.alpha,n)}}},en={forward:function(e){var t=Xt(e),n=t.l,r=t.a,a=t.b,o=Math.atan2(a,r)*qt;return{h:o<0?o+360:o,c:Math.sqrt(r*r+a*a),l:n,alpha:e.a}},reverse:function(e){var t=e.h*Wt,n=e.c;return Zt({l:e.l,a:Math.cos(t)*n,b:Math.sin(t)*n,alpha:e.alpha})},interpolate:function(e,t,n){return{h:Jt(e.h,t.h,n),c:Vt(e.c,t.c,n),l:Vt(e.l,t.l,n),alpha:Vt(e.alpha,t.alpha,n)}}},tn=Object.freeze({__proto__:null,lab:Qt,hcl:en}),nn=function(e,t,n,r,a){this.type=e,this.operator=t,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var o=0,i=a;o<i.length;o+=1){var l=i[o],s=l[1];this.labels.push(l[0]),this.outputs.push(s)}};function rn(e,t,n,r){var a=r-n,o=e-n;return 0===a?0:1===t?o/a:(Math.pow(t,o)-1)/(Math.pow(t,a)-1)}nn.interpolationFactor=function(e,t,r,a){var o=0;if("exponential"===e.name)o=rn(t,e.base,r,a);else if("linear"===e.name)o=rn(t,1,r,a);else if("cubic-bezier"===e.name){var i=e.controlPoints;o=new n(i[0],i[1],i[2],i[3]).solve(rn(t,1,r,a))}return o},nn.parse=function(e,t){var n=e[0],r=e[1],a=e[2],o=e.slice(3);if(!Array.isArray(r)||0===r.length)return t.error("Expected an interpolation type expression.",1);if("linear"===r[0])r={name:"linear"};else if("exponential"===r[0]){var i=r[1];if("number"!=typeof i)return t.error("Exponential interpolation requires a numeric base.",1,1);r={name:"exponential",base:i}}else{if("cubic-bezier"!==r[0])return t.error("Unknown interpolation type "+String(r[0]),1,0);var l=r.slice(1);if(4!==l.length||l.some((function(e){return"number"!=typeof e||e<0||e>1})))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:l}}if(e.length-1<4)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(!(a=t.parse(a,2,Ie)))return null;var s=[],u=null;"interpolate-hcl"===n||"interpolate-lab"===n?u=Ne:t.expectedType&&"value"!==t.expectedType.kind&&(u=t.expectedType);for(var c=0;c<o.length;c+=2){var f=o[c],p=o[c+1],d=c+3,h=c+4;if("number"!=typeof f)return t.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',d);if(s.length&&s[s.length-1][0]>=f)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',d);var v=t.parse(p,h,u);if(!v)return null;u=u||v.type,s.push([f,v])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new nn(u,n,r,a,s):t.error("Type "+qe(u)+" is not interpolatable.")},nn.prototype.evaluate=function(e){var t=this.labels,n=this.outputs;if(1===t.length)return n[0].evaluate(e);var r=this.input.evaluate(e);if(r<=t[0])return n[0].evaluate(e);var a=t.length;if(r>=t[a-1])return n[a-1].evaluate(e);var o=Ft(t,r),i=nn.interpolationFactor(this.interpolation,r,t[o],t[o+1]),l=n[o].evaluate(e),s=n[o+1].evaluate(e);return"interpolate"===this.operator?Ht[this.type.kind.toLowerCase()](l,s,i):"interpolate-hcl"===this.operator?en.reverse(en.interpolate(en.forward(l),en.forward(s),i)):Qt.reverse(Qt.interpolate(Qt.forward(l),Qt.forward(s),i))},nn.prototype.eachChild=function(e){e(this.input);for(var t=0,n=this.outputs;t<n.length;t+=1)e(n[t])},nn.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))},nn.prototype.serialize=function(){var e;e="linear"===this.interpolation.name?["linear"]:"exponential"===this.interpolation.name?1===this.interpolation.base?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);for(var t=[this.operator,e,this.input.serialize()],n=0;n<this.labels.length;n++)t.push(this.labels[n],this.outputs[n].serialize());return t};var an=function(e,t){this.type=e,this.args=t};an.parse=function(e,t){if(e.length<2)return t.error("Expectected at least one argument.");var n=null,r=t.expectedType;r&&"value"!==r.kind&&(n=r);for(var a=[],o=0,i=e.slice(1);o<i.length;o+=1){var l=t.parse(i[o],1+a.length,n,void 0,{typeAnnotation:"omit"});if(!l)return null;n=n||l.type,a.push(l)}var s=r&&a.some((function(e){return Ge(r,e.type)}));return new an(s?Be:n,a)},an.prototype.evaluate=function(e){for(var t,n=null,r=0,a=0,o=this.args;a<o.length&&(r++,(n=o[a].evaluate(e))&&n instanceof tt&&!n.available&&(t||(t=n.name),n=null,r===this.args.length&&(n=t)),null===n);a+=1);return n},an.prototype.eachChild=function(e){this.args.forEach(e)},an.prototype.outputDefined=function(){return this.args.every((function(e){return e.outputDefined()}))},an.prototype.serialize=function(){var e=["coalesce"];return this.eachChild((function(t){e.push(t.serialize())})),e};var on=function(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t};on.prototype.evaluate=function(e){return this.result.evaluate(e)},on.prototype.eachChild=function(e){for(var t=0,n=this.bindings;t<n.length;t+=1)e(n[t][1]);e(this.result)},on.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found "+(e.length-1)+" instead.");for(var n=[],r=1;r<e.length-1;r+=2){var a=e[r];if("string"!=typeof a)return t.error("Expected string, but found "+typeof a+" instead.",r);if(/[^a-zA-Z0-9_]/.test(a))return t.error("Variable names must contain only alphanumeric characters or '_'.",r);var o=t.parse(e[r+1],r+1);if(!o)return null;n.push([a,o])}var i=t.parse(e[e.length-1],e.length-1,t.expectedType,n);return i?new on(n,i):null},on.prototype.outputDefined=function(){return this.result.outputDefined()},on.prototype.serialize=function(){for(var e=["let"],t=0,n=this.bindings;t<n.length;t+=1){var r=n[t];e.push(r[0],r[1].serialize())}return e.push(this.result.serialize()),e};var ln=function(e,t,n){this.type=e,this.index=t,this.input=n};ln.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Ie),r=t.parse(e[2],2,We(t.expectedType||Be));return n&&r?new ln(r.type.itemType,n,r):null},ln.prototype.evaluate=function(e){var t=this.index.evaluate(e),n=this.input.evaluate(e);if(t<0)throw new lt("Array index out of bounds: "+t+" < 0.");if(t>=n.length)throw new lt("Array index out of bounds: "+t+" > "+(n.length-1)+".");if(t!==Math.floor(t))throw new lt("Array index must be an integer, but found "+t+" instead.");return n[t]},ln.prototype.eachChild=function(e){e(this.index),e(this.input)},ln.prototype.outputDefined=function(){return!1},ln.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var sn=function(e,t){this.type=ze,this.needle=e,this.haystack=t};sn.parse=function(e,t){if(3!==e.length)return t.error("Expected 2 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Be),r=t.parse(e[2],2,Be);return n&&r?Ye(n.type,[ze,Re,Ie,je,Be])?new sn(n,r):t.error("Expected first argument to be of type boolean, string, number or null, but found "+qe(n.type)+" instead"):null},sn.prototype.evaluate=function(e){var t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!n)return!1;if(!Ke(t,["boolean","string","number","null"]))throw new lt("Expected first argument to be of type boolean, string, number or null, but found "+qe(at(t))+" instead.");if(!Ke(n,["string","array"]))throw new lt("Expected second argument to be of type array or string, but found "+qe(at(n))+" instead.");return n.indexOf(t)>=0},sn.prototype.eachChild=function(e){e(this.needle),e(this.haystack)},sn.prototype.outputDefined=function(){return!0},sn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var un=function(e,t,n){this.type=Ie,this.needle=e,this.haystack=t,this.fromIndex=n};un.parse=function(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Be),r=t.parse(e[2],2,Be);if(!n||!r)return null;if(!Ye(n.type,[ze,Re,Ie,je,Be]))return t.error("Expected first argument to be of type boolean, string, number or null, but found "+qe(n.type)+" instead");if(4===e.length){var a=t.parse(e[3],3,Ie);return a?new un(n,r,a):null}return new un(n,r)},un.prototype.evaluate=function(e){var t=this.needle.evaluate(e),n=this.haystack.evaluate(e);if(!Ke(t,["boolean","string","number","null"]))throw new lt("Expected first argument to be of type boolean, string, number or null, but found "+qe(at(t))+" instead.");if(!Ke(n,["string","array"]))throw new lt("Expected second argument to be of type array or string, but found "+qe(at(n))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(e);return n.indexOf(t,r)}return n.indexOf(t)},un.prototype.eachChild=function(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)},un.prototype.outputDefined=function(){return!1},un.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var e=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),e]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var cn=function(e,t,n,r,a,o){this.inputType=e,this.type=t,this.input=n,this.cases=r,this.outputs=a,this.otherwise=o};cn.parse=function(e,t){if(e.length<5)return t.error("Expected at least 4 arguments, but found only "+(e.length-1)+".");if(e.length%2!=1)return t.error("Expected an even number of arguments.");var n,r;t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);for(var a={},o=[],i=2;i<e.length-1;i+=2){var l=e[i],s=e[i+1];Array.isArray(l)||(l=[l]);var u=t.concat(i);if(0===l.length)return u.error("Expected at least one branch label.");for(var c=0,f=l;c<f.length;c+=1){var p=f[c];if("number"!=typeof p&&"string"!=typeof p)return u.error("Branch labels must be numbers or strings.");if("number"==typeof p&&Math.abs(p)>Number.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof p&&Math.floor(p)!==p)return u.error("Numeric branch labels must be integer values.");if(n){if(u.checkSubtype(n,at(p)))return null}else n=at(p);if(void 0!==a[String(p)])return u.error("Branch labels must be unique.");a[String(p)]=o.length}var d=t.parse(s,i,r);if(!d)return null;r=r||d.type,o.push(d)}var h=t.parse(e[1],1,Be);if(!h)return null;var v=t.parse(e[e.length-1],e.length-1,r);return v?"value"!==h.type.kind&&t.concat(1).checkSubtype(n,h.type)?null:new cn(n,r,h,a,o,v):null},cn.prototype.evaluate=function(e){var t=this.input.evaluate(e);return(at(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)},cn.prototype.eachChild=function(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)},cn.prototype.outputDefined=function(){return this.outputs.every((function(e){return e.outputDefined()}))&&this.otherwise.outputDefined()},cn.prototype.serialize=function(){for(var e=this,t=["match",this.input.serialize()],n=[],r={},a=0,o=Object.keys(this.cases).sort();a<o.length;a+=1){var i=o[a];void 0===(f=r[this.cases[i]])?(r[this.cases[i]]=n.length,n.push([this.cases[i],[i]])):n[f][1].push(i)}for(var l=function(t){return"number"===e.inputType.kind?Number(t):t},s=0,u=n;s<u.length;s+=1){var c=u[s],f=c[0],p=c[1];t.push(1===p.length?l(p[0]):p.map(l)),t.push(this.outputs[outputIndex$1].serialize())}return t.push(this.otherwise.serialize()),t};var fn=function(e,t,n){this.type=e,this.branches=t,this.otherwise=n};fn.parse=function(e,t){if(e.length<4)return t.error("Expected at least 3 arguments, but found only "+(e.length-1)+".");if(e.length%2!=0)return t.error("Expected an odd number of arguments.");var n;t.expectedType&&"value"!==t.expectedType.kind&&(n=t.expectedType);for(var r=[],a=1;a<e.length-1;a+=2){var o=t.parse(e[a],a,ze);if(!o)return null;var i=t.parse(e[a+1],a+1,n);if(!i)return null;r.push([o,i]),n=n||i.type}var l=t.parse(e[e.length-1],e.length-1,n);return l?new fn(n,r,l):null},fn.prototype.evaluate=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],a=r[1];if(r[0].evaluate(e))return a.evaluate(e)}return this.otherwise.evaluate(e)},fn.prototype.eachChild=function(e){for(var t=0,n=this.branches;t<n.length;t+=1){var r=n[t],a=r[1];e(r[0]),e(a)}e(this.otherwise)},fn.prototype.outputDefined=function(){return this.branches.every((function(e){return e[1].outputDefined()}))&&this.otherwise.outputDefined()},fn.prototype.serialize=function(){var e=["case"];return this.eachChild((function(t){e.push(t.serialize())})),e};var pn=function(e,t,n,r){this.type=e,this.input=t,this.beginIndex=n,this.endIndex=r};function dn(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function hn(e,t,n,r){return 0===r.compare(t,n)}function vn(e,t,n){var r="=="!==e&&"!="!==e;return function(){function a(e,t,n){this.type=ze,this.lhs=e,this.rhs=t,this.collator=n,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}return a.parse=function(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");var n=e[0],o=t.parse(e[1],1,Be);if(!o)return null;if(!dn(n,o.type))return t.concat(1).error('"'+n+"\" comparisons are not supported for type '"+qe(o.type)+"'.");var i=t.parse(e[2],2,Be);if(!i)return null;if(!dn(n,i.type))return t.concat(2).error('"'+n+"\" comparisons are not supported for type '"+qe(i.type)+"'.");if(o.type.kind!==i.type.kind&&"value"!==o.type.kind&&"value"!==i.type.kind)return t.error("Cannot compare types '"+qe(o.type)+"' and '"+qe(i.type)+"'.");r&&("value"===o.type.kind&&"value"!==i.type.kind?o=new ut(i.type,[o]):"value"!==o.type.kind&&"value"===i.type.kind&&(i=new ut(o.type,[i])));var l=null;if(4===e.length){if("string"!==o.type.kind&&"string"!==i.type.kind&&"value"!==o.type.kind&&"value"!==i.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(l=t.parse(e[3],3,Ve)))return null}return new a(o,i,l)},a.prototype.evaluate=function(a){var o=this.lhs.evaluate(a),i=this.rhs.evaluate(a);if(r&&this.hasUntypedArgument){var l=at(o),s=at(i);if(l.kind!==s.kind||"string"!==l.kind&&"number"!==l.kind)throw new lt('Expected arguments for "'+e+'" to be (string, string) or (number, number), but found ('+l.kind+", "+s.kind+") instead.")}if(this.collator&&!r&&this.hasUntypedArgument){var u=at(o),c=at(i);if("string"!==u.kind||"string"!==c.kind)return t(a,o,i)}return this.collator?n(a,o,i,this.collator.evaluate(a)):t(a,o,i)},a.prototype.eachChild=function(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)},a.prototype.outputDefined=function(){return!0},a.prototype.serialize=function(){var t=[e];return this.eachChild((function(e){t.push(e.serialize())})),t},a}()}pn.parse=function(e,t){if(e.length<=2||e.length>=5)return t.error("Expected 3 or 4 arguments, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1,Be),r=t.parse(e[2],2,Ie);if(!n||!r)return null;if(!Ye(n.type,[We(Be),Re,Be]))return t.error("Expected first argument to be of type array or string, but found "+qe(n.type)+" instead");if(4===e.length){var a=t.parse(e[3],3,Ie);return a?new pn(n.type,n,r,a):null}return new pn(n.type,n,r)},pn.prototype.evaluate=function(e){var t=this.input.evaluate(e),n=this.beginIndex.evaluate(e);if(!Ke(t,["string","array"]))throw new lt("Expected first argument to be of type array or string, but found "+qe(at(t))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(e);return t.slice(n,r)}return t.slice(n)},pn.prototype.eachChild=function(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)},pn.prototype.outputDefined=function(){return!1},pn.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var e=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),e]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var mn=vn("==",(function(e,t,n){return t===n}),hn),yn=vn("!=",(function(e,t,n){return t!==n}),(function(e,t,n,r){return!hn(0,t,n,r)})),gn=vn("<",(function(e,t,n){return t<n}),(function(e,t,n,r){return r.compare(t,n)<0})),bn=vn(">",(function(e,t,n){return t>n}),(function(e,t,n,r){return r.compare(t,n)>0})),xn=vn("<=",(function(e,t,n){return t<=n}),(function(e,t,n,r){return r.compare(t,n)<=0})),_n=vn(">=",(function(e,t,n){return t>=n}),(function(e,t,n,r){return r.compare(t,n)>=0})),wn=function(e,t,n,r,a){this.type=Re,this.number=e,this.locale=t,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=a};wn.parse=function(e,t){if(3!==e.length)return t.error("Expected two arguments.");var n=t.parse(e[1],1,Ie);if(!n)return null;var r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");var a=null;if(r.locale&&!(a=t.parse(r.locale,1,Re)))return null;var o=null;if(r.currency&&!(o=t.parse(r.currency,1,Re)))return null;var i=null;if(r["min-fraction-digits"]&&!(i=t.parse(r["min-fraction-digits"],1,Ie)))return null;var l=null;return r["max-fraction-digits"]&&!(l=t.parse(r["max-fraction-digits"],1,Ie))?null:new wn(n,a,o,i,l)},wn.prototype.evaluate=function(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))},wn.prototype.eachChild=function(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)},wn.prototype.outputDefined=function(){return!1},wn.prototype.serialize=function(){var e={};return this.locale&&(e.locale=this.locale.serialize()),this.currency&&(e.currency=this.currency.serialize()),this.minFractionDigits&&(e["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(e["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),e]};var kn=function(e){this.type=Ie,this.input=e};kn.parse=function(e,t){if(2!==e.length)return t.error("Expected 1 argument, but found "+(e.length-1)+" instead.");var n=t.parse(e[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?t.error("Expected argument of type string or array, but found "+qe(n.type)+" instead."):new kn(n):null},kn.prototype.evaluate=function(e){var t=this.input.evaluate(e);if("string"==typeof t)return t.length;if(Array.isArray(t))return t.length;throw new lt("Expected value to be of type string or array, but found "+qe(at(t))+" instead.")},kn.prototype.eachChild=function(e){e(this.input)},kn.prototype.outputDefined=function(){return!1},kn.prototype.serialize=function(){var e=["length"];return this.eachChild((function(t){e.push(t.serialize())})),e};var Tn={"==":mn,"!=":yn,">":bn,"<":gn,">=":_n,"<=":xn,array:ut,at:ln,boolean:ut,case:fn,coalesce:an,collator:yt,format:ct,image:ft,in:sn,"index-of":un,interpolate:nn,"interpolate-hcl":nn,"interpolate-lab":nn,length:kn,let:on,literal:it,match:cn,number:ut,"number-format":wn,object:ut,slice:pn,step:Bt,string:ut,"to-boolean":dt,"to-color":dt,"to-number":dt,"to-string":dt,var:zt,within:Dt};function En(e,t){var n=t[0],r=t[1],a=t[2],o=t[3];n=n.evaluate(e),r=r.evaluate(e),a=a.evaluate(e);var i=o?o.evaluate(e):1,l=nt(n,r,a,i);if(l)throw new lt(l);return new Ze(n/255*i,r/255*i,a/255*i,i)}function On(e,t){return e in t}function Mn(e,t){var n=t[e];return void 0===n?null:n}function Sn(e){return{type:e}}function Cn(e){return{result:"success",value:e}}function An(e){return{result:"error",value:e}}function Pn(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function Ln(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function Dn(e){return!!e.expression&&e.expression.interpolated}function jn(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function In(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function Rn(e){return e}function zn(e,t,n){return void 0!==e?e:void 0!==t?t:void 0!==n?n:void 0}function Nn(e,t,n,r,a){return zn(typeof n===a?r[n]:void 0,e.default,t.default)}function Fn(e,t,n){if("number"!==jn(n))return zn(e.default,t.default);var r=e.stops.length;if(1===r)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[r-1][0])return e.stops[r-1][1];var a=Ft(e.stops.map((function(e){return e[0]})),n);return e.stops[a][1]}function Bn(e,t,n){var r=void 0!==e.base?e.base:1;if("number"!==jn(n))return zn(e.default,t.default);var a=e.stops.length;if(1===a)return e.stops[0][1];if(n<=e.stops[0][0])return e.stops[0][1];if(n>=e.stops[a-1][0])return e.stops[a-1][1];var o=Ft(e.stops.map((function(e){return e[0]})),n),i=function(e,t,n,r){var a=r-n,o=e-n;return 0===a?0:1===t?o/a:(Math.pow(t,o)-1)/(Math.pow(t,a)-1)}(n,r,e.stops[o][0],e.stops[o+1][0]),l=e.stops[o][1],s=e.stops[o+1][1],u=Ht[t.type]||Rn;if(e.colorSpace&&"rgb"!==e.colorSpace){var c=tn[e.colorSpace];u=function(e,t){return c.reverse(c.interpolate(c.forward(e),c.forward(t),i))}}return"function"==typeof l.evaluate?{evaluate:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=l.evaluate.apply(void 0,e),r=s.evaluate.apply(void 0,e);if(void 0!==n&&void 0!==r)return u(n,r,i)}}:u(l,s,i)}function Vn(e,t,n){return"color"===t.type?n=Ze.parse(n):"formatted"===t.type?n=et.fromString(n.toString()):"resolvedImage"===t.type?n=tt.fromString(n.toString()):jn(n)===t.type||"enum"===t.type&&t.values[n]||(n=void 0),zn(n,e.default,t.default)}mt.register(Tn,{error:[{kind:"error"},[Re],function(e,t){throw new lt(t[0].evaluate(e))}],typeof:[Re,[Be],function(e,t){return qe(at(t[0].evaluate(e)))}],"to-rgba":[We(Ie,4),[Ne],function(e,t){return t[0].evaluate(e).toArray()}],rgb:[Ne,[Ie,Ie,Ie],En],rgba:[Ne,[Ie,Ie,Ie,Ie],En],has:{type:ze,overloads:[[[Re],function(e,t){return On(t[0].evaluate(e),e.properties())}],[[Re,Fe],function(e,t){var n=t[1];return On(t[0].evaluate(e),n.evaluate(e))}]]},get:{type:Be,overloads:[[[Re],function(e,t){return Mn(t[0].evaluate(e),e.properties())}],[[Re,Fe],function(e,t){var n=t[1];return Mn(t[0].evaluate(e),n.evaluate(e))}]]},"feature-state":[Be,[Re],function(e,t){return Mn(t[0].evaluate(e),e.featureState||{})}],properties:[Fe,[],function(e){return e.properties()}],"geometry-type":[Re,[],function(e){return e.geometryType()}],id:[Be,[],function(e){return e.id()}],zoom:[Ie,[],function(e){return e.globals.zoom}],"heatmap-density":[Ie,[],function(e){return e.globals.heatmapDensity||0}],"line-progress":[Ie,[],function(e){return e.globals.lineProgress||0}],accumulated:[Be,[],function(e){return void 0===e.globals.accumulated?null:e.globals.accumulated}],"+":[Ie,Sn(Ie),function(e,t){for(var n=0,r=0,a=t;r<a.length;r+=1)n+=a[r].evaluate(e);return n}],"*":[Ie,Sn(Ie),function(e,t){for(var n=1,r=0,a=t;r<a.length;r+=1)n*=a[r].evaluate(e);return n}],"-":{type:Ie,overloads:[[[Ie,Ie],function(e,t){var n=t[1];return t[0].evaluate(e)-n.evaluate(e)}],[[Ie],function(e,t){return-t[0].evaluate(e)}]]},"/":[Ie,[Ie,Ie],function(e,t){var n=t[1];return t[0].evaluate(e)/n.evaluate(e)}],"%":[Ie,[Ie,Ie],function(e,t){var n=t[1];return t[0].evaluate(e)%n.evaluate(e)}],ln2:[Ie,[],function(){return Math.LN2}],pi:[Ie,[],function(){return Math.PI}],e:[Ie,[],function(){return Math.E}],"^":[Ie,[Ie,Ie],function(e,t){var n=t[1];return Math.pow(t[0].evaluate(e),n.evaluate(e))}],sqrt:[Ie,[Ie],function(e,t){return Math.sqrt(t[0].evaluate(e))}],log10:[Ie,[Ie],function(e,t){return Math.log(t[0].evaluate(e))/Math.LN10}],ln:[Ie,[Ie],function(e,t){return Math.log(t[0].evaluate(e))}],log2:[Ie,[Ie],function(e,t){return Math.log(t[0].evaluate(e))/Math.LN2}],sin:[Ie,[Ie],function(e,t){return Math.sin(t[0].evaluate(e))}],cos:[Ie,[Ie],function(e,t){return Math.cos(t[0].evaluate(e))}],tan:[Ie,[Ie],function(e,t){return Math.tan(t[0].evaluate(e))}],asin:[Ie,[Ie],function(e,t){return Math.asin(t[0].evaluate(e))}],acos:[Ie,[Ie],function(e,t){return Math.acos(t[0].evaluate(e))}],atan:[Ie,[Ie],function(e,t){return Math.atan(t[0].evaluate(e))}],min:[Ie,Sn(Ie),function(e,t){return Math.min.apply(Math,t.map((function(t){return t.evaluate(e)})))}],max:[Ie,Sn(Ie),function(e,t){return Math.max.apply(Math,t.map((function(t){return t.evaluate(e)})))}],abs:[Ie,[Ie],function(e,t){return Math.abs(t[0].evaluate(e))}],round:[Ie,[Ie],function(e,t){var n=t[0].evaluate(e);return n<0?-Math.round(-n):Math.round(n)}],floor:[Ie,[Ie],function(e,t){return Math.floor(t[0].evaluate(e))}],ceil:[Ie,[Ie],function(e,t){return Math.ceil(t[0].evaluate(e))}],"filter-==":[ze,[Re,Be],function(e,t){var n=t[0],r=t[1];return e.properties()[n.value]===r.value}],"filter-id-==":[ze,[Be],function(e,t){var n=t[0];return e.id()===n.value}],"filter-type-==":[ze,[Re],function(e,t){var n=t[0];return e.geometryType()===n.value}],"filter-<":[ze,[Re,Be],function(e,t){var n=t[0],r=t[1],a=e.properties()[n.value],o=r.value;return typeof a==typeof o&&a<o}],"filter-id-<":[ze,[Be],function(e,t){var n=t[0],r=e.id(),a=n.value;return typeof r==typeof a&&r<a}],"filter->":[ze,[Re,Be],function(e,t){var n=t[0],r=t[1],a=e.properties()[n.value],o=r.value;return typeof a==typeof o&&a>o}],"filter-id->":[ze,[Be],function(e,t){var n=t[0],r=e.id(),a=n.value;return typeof r==typeof a&&r>a}],"filter-<=":[ze,[Re,Be],function(e,t){var n=t[0],r=t[1],a=e.properties()[n.value],o=r.value;return typeof a==typeof o&&a<=o}],"filter-id-<=":[ze,[Be],function(e,t){var n=t[0],r=e.id(),a=n.value;return typeof r==typeof a&&r<=a}],"filter->=":[ze,[Re,Be],function(e,t){var n=t[0],r=t[1],a=e.properties()[n.value],o=r.value;return typeof a==typeof o&&a>=o}],"filter-id->=":[ze,[Be],function(e,t){var n=t[0],r=e.id(),a=n.value;return typeof r==typeof a&&r>=a}],"filter-has":[ze,[Be],function(e,t){return t[0].value in e.properties()}],"filter-has-id":[ze,[],function(e){return null!==e.id()&&void 0!==e.id()}],"filter-type-in":[ze,[We(Re)],function(e,t){return t[0].value.indexOf(e.geometryType())>=0}],"filter-id-in":[ze,[We(Be)],function(e,t){return t[0].value.indexOf(e.id())>=0}],"filter-in-small":[ze,[Re,We(Be)],function(e,t){var n=t[0];return t[1].value.indexOf(e.properties()[n.value])>=0}],"filter-in-large":[ze,[Re,We(Be)],function(e,t){var n=t[0],r=t[1];return function(e,t,n,r){for(;n<=r;){var a=n+r>>1;if(t[a]===e)return!0;t[a]>e?r=a-1:n=a+1}return!1}(e.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:ze,overloads:[[[ze,ze],function(e,t){var n=t[1];return t[0].evaluate(e)&&n.evaluate(e)}],[Sn(ze),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(!r[n].evaluate(e))return!1;return!0}]]},any:{type:ze,overloads:[[[ze,ze],function(e,t){var n=t[1];return t[0].evaluate(e)||n.evaluate(e)}],[Sn(ze),function(e,t){for(var n=0,r=t;n<r.length;n+=1)if(r[n].evaluate(e))return!0;return!1}]]},"!":[ze,[ze],function(e,t){return!t[0].evaluate(e)}],"is-supported-script":[ze,[Re],function(e,t){var n=e.globals&&e.globals.isSupportedScript;return!n||n(t[0].evaluate(e))}],upcase:[Re,[Re],function(e,t){return t[0].evaluate(e).toUpperCase()}],downcase:[Re,[Re],function(e,t){return t[0].evaluate(e).toLowerCase()}],concat:[Re,Sn(Be),function(e,t){return t.map((function(t){return ot(t.evaluate(e))})).join("")}],"resolved-locale":[Re,[Ve],function(e,t){return t[0].evaluate(e).resolvedLocale()}]});var Hn=function(e,t){this.expression=e,this._warningHistory={},this._evaluator=new vt,this._defaultValue=t?function(e){return"color"===e.type&&In(e.default)?new Ze(0,0,0,0):"color"===e.type?Ze.parse(e.default)||null:void 0===e.default?null:e.default}(t):null,this._enumValues=t&&"enum"===t.type?t.values:null};function Un(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in Tn}function Wn(e,t){var n=new Nt(Tn,[],t?function(e){var t={color:Ne,string:Re,number:Ie,enum:Re,boolean:ze,formatted:He,resolvedImage:Ue};return"array"===e.type?We(t[e.value]||Be,e.length):t[e.type]}(t):void 0),r=n.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?Cn(new Hn(r,t)):An(n.errors)}Hn.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,a,o){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)},Hn.prototype.evaluate=function(e,t,n,r,a,o){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=o||null;try{var i=this.expression.evaluate(this._evaluator);if(null==i||"number"==typeof i&&i!=i)return this._defaultValue;if(this._enumValues&&!(i in this._enumValues))throw new lt("Expected value to be one of "+Object.keys(this._enumValues).map((function(e){return JSON.stringify(e)})).join(", ")+", but found "+JSON.stringify(i)+" instead.");return i}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}};var qn=function(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!It(t.expression)};qn.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,a,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,a,o)},qn.prototype.evaluate=function(e,t,n,r,a,o){return this._styleExpression.evaluate(e,t,n,r,a,o)};var $n=function(e,t,n,r){this.kind=e,this.zoomStops=n,this._styleExpression=t,this.isStateDependent="camera"!==e&&!It(t.expression),this.interpolationType=r};function Gn(e,t){if("error"===(e=Wn(e,t)).result)return e;var n=e.value.expression,r=jt(n);if(!r&&!Pn(t))return An([new Le("","data expressions not supported")]);var a=Rt(n,["zoom"]);if(!a&&!Ln(t))return An([new Le("","zoom expressions not supported")]);var o=function e(t){var n=null;if(t instanceof on)n=e(t.result);else if(t instanceof an)for(var r=0,a=t.args;r<a.length&&!(n=e(a[r]));r+=1);else(t instanceof Bt||t instanceof nn)&&t.input instanceof mt&&"zoom"===t.input.name&&(n=t);return n instanceof Le||t.eachChild((function(t){var r=e(t);r instanceof Le?n=r:!n&&r?n=new Le("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&r&&n!==r&&(n=new Le("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))})),n}(n);return o||a?o instanceof Le?An([o]):o instanceof nn&&!Dn(t)?An([new Le("",'"interpolate" expressions cannot be used with this property')]):Cn(o?new $n(r?"camera":"composite",e.value,o.labels,o instanceof nn?o.interpolation:void 0):new qn(r?"constant":"source",e.value)):An([new Le("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}$n.prototype.evaluateWithoutErrorHandling=function(e,t,n,r,a,o){return this._styleExpression.evaluateWithoutErrorHandling(e,t,n,r,a,o)},$n.prototype.evaluate=function(e,t,n,r,a,o){return this._styleExpression.evaluate(e,t,n,r,a,o)},$n.prototype.interpolationFactor=function(e,t,n){return this.interpolationType?nn.interpolationFactor(this.interpolationType,e,t,n):0};var Yn=function(e,t){this._parameters=e,this._specification=t,Ce(this,function e(t,n){var r,a,o,i="color"===n.type,l=t.stops&&"object"==typeof t.stops[0][0],s=l||!(l||void 0!==t.property),u=t.type||(Dn(n)?"exponential":"interval");if(i&&((t=Ce({},t)).stops&&(t.stops=t.stops.map((function(e){return[e[0],Ze.parse(e[1])]}))),t.default=Ze.parse(t.default?t.default:n.default)),t.colorSpace&&"rgb"!==t.colorSpace&&!tn[t.colorSpace])throw new Error("Unknown color space: "+t.colorSpace);if("exponential"===u)r=Bn;else if("interval"===u)r=Fn;else if("categorical"===u){r=Nn,a=Object.create(null);for(var c=0,f=t.stops;c<f.length;c+=1){var p=f[c];a[p[0]]=p[1]}o=typeof t.stops[0][0]}else{if("identity"!==u)throw new Error('Unknown function type "'+u+'"');r=Vn}if(l){for(var d={},h=[],v=0;v<t.stops.length;v++){var m=t.stops[v],y=m[0].zoom;void 0===d[y]&&(d[y]={zoom:y,type:t.type,property:t.property,default:t.default,stops:[]},h.push(y)),d[y].stops.push([m[0].value,m[1]])}for(var g=[],b=0,x=h;b<x.length;b+=1){var _=x[b];g.push([d[_].zoom,e(d[_],n)])}var w={name:"linear"};return{kind:"composite",interpolationType:w,interpolationFactor:nn.interpolationFactor.bind(void 0,w),zoomStops:g.map((function(e){return e[0]})),evaluate:function(e,r){var a=e.zoom;return Bn({stops:g,base:t.base},n,a).evaluate(a,r)}}}if(s){var k="exponential"===u?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:k,interpolationFactor:nn.interpolationFactor.bind(void 0,k),zoomStops:t.stops.map((function(e){return e[0]})),evaluate:function(e){return r(t,n,e.zoom,a,o)}}}return{kind:"source",evaluate:function(e,i){var l=i&&i.properties?i.properties[t.property]:void 0;return void 0===l?zn(t.default,n.default):r(t,n,l,a,o)}}}(this._parameters,this._specification))};function Kn(e){var t=e.key,n=e.value,r=e.valueSpec||{},a=e.objectElementValidators||{},o=e.style,i=e.styleSpec,l=[],s=jn(n);if("object"!==s)return[new Me(t,n,"object expected, "+s+" found")];for(var u in n){var c=u.split(".")[0],f=r[c]||r["*"],p=void 0;if(a[c])p=a[c];else if(r[c])p=xr;else if(a["*"])p=a["*"];else{if(!r["*"]){l.push(new Me(t,n[u],'unknown property "'+u+'"'));continue}p=xr}l=l.concat(p({key:(t?t+".":t)+u,value:n[u],valueSpec:f,style:o,styleSpec:i,object:n,objectKey:u},n))}for(var d in r)a[d]||r[d].required&&void 0===r[d].default&&void 0===n[d]&&l.push(new Me(t,n,'missing required property "'+d+'"'));return l}function Xn(e){var t=e.value,n=e.valueSpec,r=e.style,a=e.styleSpec,o=e.key,i=e.arrayElementValidator||xr;if("array"!==jn(t))return[new Me(o,t,"array expected, "+jn(t)+" found")];if(n.length&&t.length!==n.length)return[new Me(o,t,"array length "+n.length+" expected, length "+t.length+" found")];if(n["min-length"]&&t.length<n["min-length"])return[new Me(o,t,"array length at least "+n["min-length"]+" expected, length "+t.length+" found")];var l={type:n.value,values:n.values};a.$version<7&&(l.function=n.function),"object"===jn(n.value)&&(l=n.value);for(var s=[],u=0;u<t.length;u++)s=s.concat(i({array:t,arrayIndex:u,value:t[u],valueSpec:l,style:r,styleSpec:a,key:o+"["+u+"]"}));return s}function Zn(e){var t=e.key,n=e.value,r=e.valueSpec,a=jn(n);return"number"===a&&n!=n&&(a="NaN"),"number"!==a?[new Me(t,n,"number expected, "+a+" found")]:"minimum"in r&&n<r.minimum?[new Me(t,n,n+" is less than the minimum value "+r.minimum)]:"maximum"in r&&n>r.maximum?[new Me(t,n,n+" is greater than the maximum value "+r.maximum)]:[]}function Jn(e){var t,n,r,a=e.valueSpec,o=Ae(e.value.type),i={},l="categorical"!==o&&void 0===e.value.property,s=!l,u="array"===jn(e.value.stops)&&"array"===jn(e.value.stops[0])&&"object"===jn(e.value.stops[0][0]),c=Kn({key:e.key,value:e.value,valueSpec:e.styleSpec.function,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===o)return[new Me(e.key,e.value,'identity function may not have a "stops" property')];var t=[],n=e.value;return t=t.concat(Xn({key:e.key,value:n,valueSpec:e.valueSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:f})),"array"===jn(n)&&0===n.length&&t.push(new Me(e.key,n,"array must have at least one stop")),t},default:function(e){return xr({key:e.key,value:e.value,valueSpec:a,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===o&&l&&c.push(new Me(e.key,e.value,'missing required property "property"')),"identity"===o||e.value.stops||c.push(new Me(e.key,e.value,'missing required property "stops"')),"exponential"===o&&e.valueSpec.expression&&!Dn(e.valueSpec)&&c.push(new Me(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(s&&!Pn(e.valueSpec)?c.push(new Me(e.key,e.value,"property functions not supported")):l&&!Ln(e.valueSpec)&&c.push(new Me(e.key,e.value,"zoom functions not supported"))),"categorical"!==o&&!u||void 0!==e.value.property||c.push(new Me(e.key,e.value,'"property" property is required')),c;function f(e){var t=[],o=e.value,l=e.key;if("array"!==jn(o))return[new Me(l,o,"array expected, "+jn(o)+" found")];if(2!==o.length)return[new Me(l,o,"array length 2 expected, length "+o.length+" found")];if(u){if("object"!==jn(o[0]))return[new Me(l,o,"object expected, "+jn(o[0])+" found")];if(void 0===o[0].zoom)return[new Me(l,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new Me(l,o,"object stop key must have value")];if(r&&r>Ae(o[0].zoom))return[new Me(l,o[0].zoom,"stop zoom values must appear in ascending order")];Ae(o[0].zoom)!==r&&(r=Ae(o[0].zoom),n=void 0,i={}),t=t.concat(Kn({key:l+"[0]",value:o[0],valueSpec:{zoom:{}},style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:Zn,value:p}}))}else t=t.concat(p({key:l+"[0]",value:o[0],valueSpec:{},style:e.style,styleSpec:e.styleSpec},o));return Un(Pe(o[1]))?t.concat([new Me(l+"[1]",o[1],"expressions are not allowed in function stops.")]):t.concat(xr({key:l+"[1]",value:o[1],valueSpec:a,style:e.style,styleSpec:e.styleSpec}))}function p(e,r){var l=jn(e.value),s=Ae(e.value),u=null!==e.value?e.value:r;if(t){if(l!==t)return[new Me(e.key,u,l+" stop domain type must match previous stop domain type "+t)]}else t=l;if("number"!==l&&"string"!==l&&"boolean"!==l)return[new Me(e.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==l&&"categorical"!==o){var c="number expected, "+l+" found";return Pn(a)&&void 0===o&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Me(e.key,u,c)]}return"categorical"!==o||"number"!==l||isFinite(s)&&Math.floor(s)===s?"categorical"!==o&&"number"===l&&void 0!==n&&s<n?[new Me(e.key,u,"stop domain values must appear in ascending order")]:(n=s,"categorical"===o&&s in i?[new Me(e.key,u,"stop domain values must be unique")]:(i[s]=!0,[])):[new Me(e.key,u,"integer expected, found "+s)]}}function Qn(e){var t=("property"===e.expressionContext?Gn:Wn)(Pe(e.value),e.valueSpec);if("error"===t.result)return t.value.map((function(t){return new Me(""+e.key+t.key,e.value,t.message)}));var n=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!n.outputDefined())return[new Me(e.key,e.value,'Invalid data expression for "'+e.propertyKey+'". Output values must be contained as literals within the expression.')];if("property"===e.expressionContext&&"layout"===e.propertyType&&!It(n))return[new Me(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!It(n))return[new Me(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!Rt(n,["zoom","feature-state"]))return[new Me(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!jt(n))return[new Me(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function er(e){var t=e.key,n=e.value,r=e.valueSpec,a=[];return Array.isArray(r.values)?-1===r.values.indexOf(Ae(n))&&a.push(new Me(t,n,"expected one of ["+r.values.join(", ")+"], "+JSON.stringify(n)+" found")):-1===Object.keys(r.values).indexOf(Ae(n))&&a.push(new Me(t,n,"expected one of ["+Object.keys(r.values).join(", ")+"], "+JSON.stringify(n)+" found")),a}function tr(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(var t=0,n=e.slice(1);t<n.length;t+=1){var r=n[t];if(!tr(r)&&"boolean"!=typeof r)return!1}return!0;default:return!0}}Yn.deserialize=function(e){return new Yn(e._parameters,e._specification)},Yn.serialize=function(e){return{_parameters:e._parameters,_specification:e._specification}};var nr={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function rr(e){if(null==e)return{filter:function(){return!0},needGeometry:!1};tr(e)||(e=or(e));var t=Wn(e,nr);if("error"===t.result)throw new Error(t.value.map((function(e){return e.key+": "+e.message})).join(", "));return{filter:function(e,n,r){return t.value.evaluate(e,n,{},r)},needGeometry:function e(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(var n=1;n<t.length;n++)if(e(t[n]))return!0;return!1}(e)}}function ar(e,t){return e<t?-1:e>t?1:0}function or(e){if(!e)return!0;var t,n=e[0];return e.length<=1?"any"!==n:"=="===n?ir(e[1],e[2],"=="):"!="===n?ur(ir(e[1],e[2],"==")):"<"===n||">"===n||"<="===n||">="===n?ir(e[1],e[2],n):"any"===n?(t=e.slice(1),["any"].concat(t.map(or))):"all"===n?["all"].concat(e.slice(1).map(or)):"none"===n?["all"].concat(e.slice(1).map(or).map(ur)):"in"===n?lr(e[1],e.slice(2)):"!in"===n?ur(lr(e[1],e.slice(2))):"has"===n?sr(e[1]):"!has"===n?ur(sr(e[1])):"within"!==n||e}function ir(e,t,n){switch(e){case"$type":return["filter-type-"+n,t];case"$id":return["filter-id-"+n,t];default:return["filter-"+n,e,t]}}function lr(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some((function(e){return typeof e!=typeof t[0]}))?["filter-in-large",e,["literal",t.sort(ar)]]:["filter-in-small",e,["literal",t]]}}function sr(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function ur(e){return["!",e]}function cr(e){return tr(Pe(e.value))?Qn(Ce({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function e(t){var n=t.value,r=t.key;if("array"!==jn(n))return[new Me(r,n,"array expected, "+jn(n)+" found")];var a,o=t.styleSpec,i=[];if(n.length<1)return[new Me(r,n,"filter array must have at least 1 element")];switch(i=i.concat(er({key:r+"[0]",value:n[0],valueSpec:o.filter_operator,style:t.style,styleSpec:t.styleSpec})),Ae(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===Ae(n[1])&&i.push(new Me(r,n,'"$type" cannot be use with operator "'+n[0]+'"'));case"==":case"!=":3!==n.length&&i.push(new Me(r,n,'filter array for operator "'+n[0]+'" must have 3 elements'));case"in":case"!in":n.length>=2&&"string"!==(a=jn(n[1]))&&i.push(new Me(r+"[1]",n[1],"string expected, "+a+" found"));for(var l=2;l<n.length;l++)a=jn(n[l]),"$type"===Ae(n[1])?i=i.concat(er({key:r+"["+l+"]",value:n[l],valueSpec:o.geometry_type,style:t.style,styleSpec:t.styleSpec})):"string"!==a&&"number"!==a&&"boolean"!==a&&i.push(new Me(r+"["+l+"]",n[l],"string, number, or boolean expected, "+a+" found"));break;case"any":case"all":case"none":for(var s=1;s<n.length;s++)i=i.concat(e({key:r+"["+s+"]",value:n[s],style:t.style,styleSpec:t.styleSpec}));break;case"has":case"!has":a=jn(n[1]),2!==n.length?i.push(new Me(r,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"string"!==a&&i.push(new Me(r+"[1]",n[1],"string expected, "+a+" found"));break;case"within":a=jn(n[1]),2!==n.length?i.push(new Me(r,n,'filter array for "'+n[0]+'" operator must have 2 elements')):"object"!==a&&i.push(new Me(r+"[1]",n[1],"object expected, "+a+" found"))}return i}(e)}function fr(e,t){var n=e.key,r=e.style,a=e.styleSpec,o=e.value,i=e.objectKey,l=a[t+"_"+e.layerType];if(!l)return[];var s=i.match(/^(.*)-transition$/);if("paint"===t&&s&&l[s[1]]&&l[s[1]].transition)return xr({key:n,value:o,valueSpec:a.transition,style:r,styleSpec:a});var u,c=e.valueSpec||l[i];if(!c)return[new Me(n,o,'unknown property "'+i+'"')];if("string"===jn(o)&&Pn(c)&&!c.tokens&&(u=/^{([^}]+)}$/.exec(o)))return[new Me(n,o,'"'+i+'" does not support interpolation syntax\nUse an identity property function instead: `{ "type": "identity", "property": '+JSON.stringify(u[1])+" }`.")];var f=[];return"symbol"===e.layerType&&("text-field"===i&&r&&!r.glyphs&&f.push(new Me(n,o,'use of "text-field" requires a style "glyphs" property')),"text-font"===i&&In(Pe(o))&&"identity"===Ae(o.type)&&f.push(new Me(n,o,'"text-font" does not support identity functions'))),f.concat(xr({key:e.key,value:o,valueSpec:c,style:r,styleSpec:a,expressionContext:"property",propertyType:t,propertyKey:i}))}function pr(e){return fr(e,"paint")}function dr(e){return fr(e,"layout")}function hr(e){var t=[],n=e.value,r=e.key,a=e.style,o=e.styleSpec;n.type||n.ref||t.push(new Me(r,n,'either "type" or "ref" is required'));var i,l=Ae(n.type),s=Ae(n.ref);if(n.id)for(var u=Ae(n.id),c=0;c<e.arrayIndex;c++){var f=a.layers[c];Ae(f.id)===u&&t.push(new Me(r,n.id,'duplicate layer id "'+n.id+'", previously used at line '+f.id.__line__))}if("ref"in n)["type","source","source-layer","filter","layout"].forEach((function(e){e in n&&t.push(new Me(r,n[e],'"'+e+'" is prohibited for ref layers'))})),a.layers.forEach((function(e){Ae(e.id)===s&&(i=e)})),i?i.ref?t.push(new Me(r,n.ref,"ref cannot reference another ref layer")):l=Ae(i.type):t.push(new Me(r,n.ref,'ref layer "'+s+'" not found'));else if("background"!==l)if(n.source){var p=a.sources&&a.sources[n.source],d=p&&Ae(p.type);p?"vector"===d&&"raster"===l?t.push(new Me(r,n.source,'layer "'+n.id+'" requires a raster source')):"raster"===d&&"raster"!==l?t.push(new Me(r,n.source,'layer "'+n.id+'" requires a vector source')):"vector"!==d||n["source-layer"]?"raster-dem"===d&&"hillshade"!==l?t.push(new Me(r,n.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"!==l||!n.paint||!n.paint["line-gradient"]||"geojson"===d&&p.lineMetrics||t.push(new Me(r,n,'layer "'+n.id+'" specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):t.push(new Me(r,n,'layer "'+n.id+'" must specify a "source-layer"')):t.push(new Me(r,n.source,'source "'+n.source+'" not found'))}else t.push(new Me(r,n,'missing required property "source"'));return t=t.concat(Kn({key:r,value:n,valueSpec:o.layer,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(){return[]},type:function(){return xr({key:r+".type",value:n.type,valueSpec:o.layer.type,style:e.style,styleSpec:e.styleSpec,object:n,objectKey:"type"})},filter:cr,layout:function(e){return Kn({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return dr(Ce({layerType:l},e))}}})},paint:function(e){return Kn({layer:n,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{"*":function(e){return pr(Ce({layerType:l},e))}}})}}}))}function vr(e){var t=e.value,n=e.key,r=jn(t);return"string"!==r?[new Me(n,t,"string expected, "+r+" found")]:[]}var mr={promoteId:function(e){var t=e.key,n=e.value;if("string"===jn(n))return vr({key:t,value:n});var r=[];for(var a in n)r.push.apply(r,vr({key:t+"."+a,value:n[a]}));return r}};function yr(e){var t=e.value,n=e.key,r=e.styleSpec,a=e.style;if(!t.type)return[new Me(n,t,'"type" is required')];var o,i=Ae(t.type);switch(i){case"vector":case"raster":case"raster-dem":return Kn({key:n,value:t,valueSpec:r["source_"+i.replace("-","_")],style:e.style,styleSpec:r,objectElementValidators:mr});case"geojson":if(o=Kn({key:n,value:t,valueSpec:r.source_geojson,style:a,styleSpec:r,objectElementValidators:mr}),t.cluster)for(var l in t.clusterProperties){var s=t.clusterProperties[l],u=s[0],c="string"==typeof u?[u,["accumulated"],["get",l]]:u;o.push.apply(o,Qn({key:n+"."+l+".map",value:s[1],expressionContext:"cluster-map"})),o.push.apply(o,Qn({key:n+"."+l+".reduce",value:c,expressionContext:"cluster-reduce"}))}return o;case"video":return Kn({key:n,value:t,valueSpec:r.source_video,style:a,styleSpec:r});case"image":return Kn({key:n,value:t,valueSpec:r.source_image,style:a,styleSpec:r});case"canvas":return[new Me(n,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return er({key:n+".type",value:t.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:a,styleSpec:r})}}function gr(e){var t=e.value,n=e.styleSpec,r=n.light,a=e.style,o=[],i=jn(t);if(void 0===t)return o;if("object"!==i)return o.concat([new Me("light",t,"object expected, "+i+" found")]);for(var l in t){var s=l.match(/^(.*)-transition$/);o=o.concat(s&&r[s[1]]&&r[s[1]].transition?xr({key:l,value:t[l],valueSpec:n.transition,style:a,styleSpec:n}):r[l]?xr({key:l,value:t[l],valueSpec:r[l],style:a,styleSpec:n}):[new Me(l,t[l],'unknown property "'+l+'"')])}return o}var br={"*":function(){return[]},array:Xn,boolean:function(e){var t=e.value,n=e.key,r=jn(t);return"boolean"!==r?[new Me(n,t,"boolean expected, "+r+" found")]:[]},number:Zn,color:function(e){var t=e.key,n=e.value,r=jn(n);return"string"!==r?[new Me(t,n,"color expected, "+r+" found")]:null===Xe(n)?[new Me(t,n,'color expected, "'+n+'" found')]:[]},constants:Se,enum:er,filter:cr,function:Jn,layer:hr,object:Kn,source:yr,light:gr,string:vr,formatted:function(e){return 0===vr(e).length?[]:Qn(e)},resolvedImage:function(e){return 0===vr(e).length?[]:Qn(e)}};function xr(e){var t=e.value,n=e.valueSpec,r=e.styleSpec;return n.expression&&In(Ae(t))?Jn(e):n.expression&&Un(Pe(t))?Qn(e):n.type&&br[n.type]?br[n.type](e):Kn(Ce({},e,{valueSpec:n.type?r[n.type]:n}))}function _r(e){var t=e.value,n=e.key,r=vr(e);return r.length||(-1===t.indexOf("{fontstack}")&&r.push(new Me(n,t,'"glyphs" url must include a "{fontstack}" token')),-1===t.indexOf("{range}")&&r.push(new Me(n,t,'"glyphs" url must include a "{range}" token'))),r}function wr(e,t){void 0===t&&(t=Oe);var n=[];return n=n.concat(xr({key:"",value:e,valueSpec:t.$root,styleSpec:t,style:e,objectElementValidators:{glyphs:_r,"*":function(){return[]}}})),e.constants&&(n=n.concat(Se({key:"constants",value:e.constants,style:e,styleSpec:t}))),kr(n)}function kr(e){return[].concat(e).sort((function(e,t){return e.line-t.line}))}function Tr(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return kr(e.apply(this,t))}}wr.source=Tr(yr),wr.light=Tr(gr),wr.layer=Tr(hr),wr.filter=Tr(cr),wr.paintProperty=Tr(pr),wr.layoutProperty=Tr(dr);var Er=wr,Or=Er.light,Mr=Er.paintProperty,Sr=Er.layoutProperty;function Cr(e,t){var n=!1;if(t&&t.length)for(var r=0,a=t;r<a.length;r+=1)e.fire(new Te(new Error(a[r].message))),n=!0;return n}var Ar=Pr;function Pr(e,t,n){var r=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;var a=new Int32Array(this.arrayBuffer);e=a[0],this.d=(t=a[1])+2*(n=a[2]);for(var o=0;o<this.d*this.d;o++){var i=a[3+o],l=a[3+o+1];r.push(i===l?null:a.subarray(i,l))}var s=a[3+r.length+1];this.keys=a.subarray(a[3+r.length],s),this.bboxes=a.subarray(s),this.insert=this._insertReadonly}else{this.d=t+2*n;for(var u=0;u<this.d*this.d;u++)r.push([]);this.keys=[],this.bboxes=[]}this.n=t,this.extent=e,this.padding=n,this.scale=t/e,this.uid=0;var c=n/t*e;this.min=-c,this.max=e+c}Pr.prototype.insert=function(e,t,n,r,a){this._forEachCell(t,n,r,a,this._insertCell,this.uid++),this.keys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(a)},Pr.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Pr.prototype._insertCell=function(e,t,n,r,a,o){this.cells[a].push(o)},Pr.prototype.query=function(e,t,n,r,a){var o=this.min,i=this.max;if(e<=o&&t<=o&&i<=n&&i<=r&&!a)return Array.prototype.slice.call(this.keys);var l=[];return this._forEachCell(e,t,n,r,this._queryCell,l,{},a),l},Pr.prototype._queryCell=function(e,t,n,r,a,o,i,l){var s=this.cells[a];if(null!==s)for(var u=this.keys,c=this.bboxes,f=0;f<s.length;f++){var p=s[f];if(void 0===i[p]){var d=4*p;(l?l(c[d+0],c[d+1],c[d+2],c[d+3]):e<=c[d+2]&&t<=c[d+3]&&n>=c[d+0]&&r>=c[d+1])?(i[p]=!0,o.push(u[p])):i[p]=!1}}},Pr.prototype._forEachCell=function(e,t,n,r,a,o,i,l){for(var s=this._convertToCellCoord(e),u=this._convertToCellCoord(t),c=this._convertToCellCoord(n),f=this._convertToCellCoord(r),p=s;p<=c;p++)for(var d=u;d<=f;d++){var h=this.d*d+p;if((!l||l(this._convertFromCellCoord(p),this._convertFromCellCoord(d),this._convertFromCellCoord(p+1),this._convertFromCellCoord(d+1)))&&a.call(this,e,t,n,r,h,o,i,l))return}},Pr.prototype._convertFromCellCoord=function(e){return(e-this.padding)/this.scale},Pr.prototype._convertToCellCoord=function(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))},Pr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var e=this.cells,t=3+this.cells.length+1+1,n=0,r=0;r<this.cells.length;r++)n+=this.cells[r].length;var a=new Int32Array(t+n+this.keys.length+this.bboxes.length);a[0]=this.extent,a[1]=this.n,a[2]=this.padding;for(var o=t,i=0;i<e.length;i++){var l=e[i];a[3+i]=o,a.set(l,o),o+=l.length}return a[3+e.length]=o,a.set(this.keys,o),a[3+e.length+1]=o+=this.keys.length,a.set(this.bboxes,o),o+=this.bboxes.length,a.buffer};var Lr=self.ImageData,Dr=self.ImageBitmap,jr={};function Ir(e,t,n){void 0===n&&(n={}),Object.defineProperty(t,"_classRegistryKey",{value:e,writeable:!1}),jr[e]={klass:t,omit:n.omit||[],shallow:n.shallow||[]}}for(var Rr in Ir("Object",Object),Ar.serialize=function(e,t){var n=e.toArrayBuffer();return t&&t.push(n),{buffer:n}},Ar.deserialize=function(e){return new Ar(e.buffer)},Ir("Grid",Ar),Ir("Color",Ze),Ir("Error",Error),Ir("ResolvedImage",tt),Ir("StylePropertyFunction",Yn),Ir("StyleExpression",Hn,{omit:["_evaluator"]}),Ir("ZoomDependentExpression",$n),Ir("ZoomConstantExpression",qn),Ir("CompoundExpression",mt,{omit:["_evaluate"]}),Tn)Tn[Rr]._classRegistryKey||Ir("Expression_"+Rr,Tn[Rr]);function zr(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function Nr(e){return Dr&&e instanceof Dr}function Fr(e,t){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp)return e;if(zr(e)||Nr(e))return t&&t.push(e),e;if(ArrayBuffer.isView(e)){var n=e;return t&&t.push(n.buffer),n}if(e instanceof Lr)return t&&t.push(e.data.buffer),e;if(Array.isArray(e)){for(var r=[],a=0,o=e;a<o.length;a+=1)r.push(Fr(o[a],t));return r}if("object"==typeof e){var i=e.constructor,l=i._classRegistryKey;if(!l)throw new Error("can't serialize object of unregistered class");var s=i.serialize?i.serialize(e,t):{};if(!i.serialize){for(var u in e)if(e.hasOwnProperty(u)&&!(jr[l].omit.indexOf(u)>=0)){var c=e[u];s[u]=jr[l].shallow.indexOf(u)>=0?c:Fr(c,t)}e instanceof Error&&(s.message=e.message)}if(s.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==l&&(s.$name=l),s}throw new Error("can't serialize object of type "+typeof e)}function Br(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||zr(e)||Nr(e)||ArrayBuffer.isView(e)||e instanceof Lr)return e;if(Array.isArray(e))return e.map(Br);if("object"==typeof e){var t=e.$name||"Object",n=jr[t].klass;if(!n)throw new Error("can't deserialize unregistered class "+t);if(n.deserialize)return n.deserialize(e);for(var r=Object.create(n.prototype),a=0,o=Object.keys(e);a<o.length;a+=1){var i=o[a];if("$name"!==i){var l=e[i];r[i]=jr[t].shallow.indexOf(i)>=0?l:Br(l)}}return r}throw new Error("can't deserialize object of type "+typeof e)}var Vr=function(){this.first=!0};Vr.prototype.update=function(e,t){var n=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=t):this.lastFloorZoom<n&&(this.lastIntegerZoom=n,this.lastIntegerZoomTime=t),e!==this.lastZoom&&(this.lastZoom=e,this.lastFloorZoom=n,!0))};var Hr={"Latin-1 Supplement":function(e){return e>=128&&e<=255},Arabic:function(e){return e>=1536&&e<=1791},"Arabic Supplement":function(e){return e>=1872&&e<=1919},"Arabic Extended-A":function(e){return e>=2208&&e<=2303},"Hangul Jamo":function(e){return e>=4352&&e<=4607},"Unified Canadian Aboriginal Syllabics":function(e){return e>=5120&&e<=5759},Khmer:function(e){return e>=6016&&e<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(e){return e>=6320&&e<=6399},"General Punctuation":function(e){return e>=8192&&e<=8303},"Letterlike Symbols":function(e){return e>=8448&&e<=8527},"Number Forms":function(e){return e>=8528&&e<=8591},"Miscellaneous Technical":function(e){return e>=8960&&e<=9215},"Control Pictures":function(e){return e>=9216&&e<=9279},"Optical Character Recognition":function(e){return e>=9280&&e<=9311},"Enclosed Alphanumerics":function(e){return e>=9312&&e<=9471},"Geometric Shapes":function(e){return e>=9632&&e<=9727},"Miscellaneous Symbols":function(e){return e>=9728&&e<=9983},"Miscellaneous Symbols and Arrows":function(e){return e>=11008&&e<=11263},"CJK Radicals Supplement":function(e){return e>=11904&&e<=12031},"Kangxi Radicals":function(e){return e>=12032&&e<=12255},"Ideographic Description Characters":function(e){return e>=12272&&e<=12287},"CJK Symbols and Punctuation":function(e){return e>=12288&&e<=12351},Hiragana:function(e){return e>=12352&&e<=12447},Katakana:function(e){return e>=12448&&e<=12543},Bopomofo:function(e){return e>=12544&&e<=12591},"Hangul Compatibility Jamo":function(e){return e>=12592&&e<=12687},Kanbun:function(e){return e>=12688&&e<=12703},"Bopomofo Extended":function(e){return e>=12704&&e<=12735},"CJK Strokes":function(e){return e>=12736&&e<=12783},"Katakana Phonetic Extensions":function(e){return e>=12784&&e<=12799},"Enclosed CJK Letters and Months":function(e){return e>=12800&&e<=13055},"CJK Compatibility":function(e){return e>=13056&&e<=13311},"CJK Unified Ideographs Extension A":function(e){return e>=13312&&e<=19903},"Yijing Hexagram Symbols":function(e){return e>=19904&&e<=19967},"CJK Unified Ideographs":function(e){return e>=19968&&e<=40959},"Yi Syllables":function(e){return e>=40960&&e<=42127},"Yi Radicals":function(e){return e>=42128&&e<=42191},"Hangul Jamo Extended-A":function(e){return e>=43360&&e<=43391},"Hangul Syllables":function(e){return e>=44032&&e<=55215},"Hangul Jamo Extended-B":function(e){return e>=55216&&e<=55295},"Private Use Area":function(e){return e>=57344&&e<=63743},"CJK Compatibility Ideographs":function(e){return e>=63744&&e<=64255},"Arabic Presentation Forms-A":function(e){return e>=64336&&e<=65023},"Vertical Forms":function(e){return e>=65040&&e<=65055},"CJK Compatibility Forms":function(e){return e>=65072&&e<=65103},"Small Form Variants":function(e){return e>=65104&&e<=65135},"Arabic Presentation Forms-B":function(e){return e>=65136&&e<=65279},"Halfwidth and Fullwidth Forms":function(e){return e>=65280&&e<=65519}};function Ur(e){for(var t=0,n=e;t<n.length;t+=1)if(Wr(n[t].charCodeAt(0)))return!0;return!1}function Wr(e){return!(746!==e&&747!==e&&(e<4352||!(Hr["Bopomofo Extended"](e)||Hr.Bopomofo(e)||Hr["CJK Compatibility Forms"](e)&&!(e>=65097&&e<=65103)||Hr["CJK Compatibility Ideographs"](e)||Hr["CJK Compatibility"](e)||Hr["CJK Radicals Supplement"](e)||Hr["CJK Strokes"](e)||!(!Hr["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||Hr["CJK Unified Ideographs Extension A"](e)||Hr["CJK Unified Ideographs"](e)||Hr["Enclosed CJK Letters and Months"](e)||Hr["Hangul Compatibility Jamo"](e)||Hr["Hangul Jamo Extended-A"](e)||Hr["Hangul Jamo Extended-B"](e)||Hr["Hangul Jamo"](e)||Hr["Hangul Syllables"](e)||Hr.Hiragana(e)||Hr["Ideographic Description Characters"](e)||Hr.Kanbun(e)||Hr["Kangxi Radicals"](e)||Hr["Katakana Phonetic Extensions"](e)||Hr.Katakana(e)&&12540!==e||!(!Hr["Halfwidth and Fullwidth Forms"](e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!Hr["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||Hr["Unified Canadian Aboriginal Syllabics"](e)||Hr["Unified Canadian Aboriginal Syllabics Extended"](e)||Hr["Vertical Forms"](e)||Hr["Yijing Hexagram Symbols"](e)||Hr["Yi Syllables"](e)||Hr["Yi Radicals"](e))))}function qr(e){return!(Wr(e)||function(e){return!!(Hr["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||Hr["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||Hr["Letterlike Symbols"](e)||Hr["Number Forms"](e)||Hr["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||Hr["Control Pictures"](e)&&9251!==e||Hr["Optical Character Recognition"](e)||Hr["Enclosed Alphanumerics"](e)||Hr["Geometric Shapes"](e)||Hr["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||Hr["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||Hr["CJK Symbols and Punctuation"](e)||Hr.Katakana(e)||Hr["Private Use Area"](e)||Hr["CJK Compatibility Forms"](e)||Hr["Small Form Variants"](e)||Hr["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}(e))}function $r(e){return e>=1424&&e<=2303||Hr["Arabic Presentation Forms-A"](e)||Hr["Arabic Presentation Forms-B"](e)}function Gr(e,t){return!(!t&&$r(e)||e>=2304&&e<=3583||e>=3840&&e<=4255||Hr.Khmer(e))}function Yr(e){for(var t=0,n=e;t<n.length;t+=1)if($r(n[t].charCodeAt(0)))return!0;return!1}var Kr=null,Xr="unavailable",Zr=null,Jr=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(Xr="error"),Kr&&Kr(e)};function Qr(){ea.fire(new ke("pluginStateChange",{pluginStatus:Xr,pluginURL:Zr}))}var ea=new Ee,ta=function(){return Xr},na=function(){if("deferred"!==Xr||!Zr)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Xr="loading",Qr(),Zr&&ge({url:Zr},(function(e){e?Jr(e):(Xr="loaded",Qr())}))},ra={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return"loaded"===Xr||null!=ra.applyArabicShaping},isLoading:function(){return"loading"===Xr},setState:function(e){Xr=e.pluginStatus,Zr=e.pluginURL},isParsed:function(){return null!=ra.applyArabicShaping&&null!=ra.processBidirectionalText&&null!=ra.processStyledBidirectionalText},getPluginURL:function(){return Zr}},aa=function(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Vr,this.transition={})};aa.prototype.isSupportedScript=function(e){return function(e,t){for(var n=0,r=e;n<r.length;n+=1)if(!Gr(r[n].charCodeAt(0),t))return!1;return!0}(e,ra.isLoaded())},aa.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},aa.prototype.getCrossfadeParameters=function(){var e=this.zoom,t=e-Math.floor(e),n=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*t}};var oa=function(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(In(e))return new Yn(e,t);if(Un(e)){var n=Gn(e,t);if("error"===n.result)throw new Error(n.value.map((function(e){return e.key+": "+e.message})).join(", "));return n.value}var r=e;return"string"==typeof e&&"color"===t.type&&(r=Ze.parse(e)),{kind:"constant",evaluate:function(){return r}}}(void 0===t?e.specification.default:t,e.specification)};oa.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},oa.prototype.possiblyEvaluate=function(e,t,n){return this.property.possiblyEvaluate(this,e,t,n)};var ia=function(e){this.property=e,this.value=new oa(e,void 0)};ia.prototype.transitioned=function(e,t){return new sa(this.property,this.value,t,c({},e.transition,this.transition),e.now)},ia.prototype.untransitioned=function(){return new sa(this.property,this.value,null,{},0)};var la=function(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)};la.prototype.getValue=function(e){return b(this._values[e].value.value)},la.prototype.setValue=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new ia(this._values[e].property)),this._values[e].value=new oa(this._values[e].property,null===t?void 0:b(t))},la.prototype.getTransition=function(e){return b(this._values[e].transition)},la.prototype.setTransition=function(e,t){this._values.hasOwnProperty(e)||(this._values[e]=new ia(this._values[e].property)),this._values[e].transition=b(t)||void 0},la.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t],a=this.getValue(r);void 0!==a&&(e[r]=a);var o=this.getTransition(r);void 0!==o&&(e[r+"-transition"]=o)}return e},la.prototype.transitioned=function(e,t){for(var n=new ua(this._properties),r=0,a=Object.keys(this._values);r<a.length;r+=1){var o=a[r];n._values[o]=this._values[o].transitioned(e,t._values[o])}return n},la.prototype.untransitioned=function(){for(var e=new ua(this._properties),t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t];e._values[r]=this._values[r].untransitioned()}return e};var sa=function(e,t,n,r,a){this.property=e,this.value=t,this.begin=a+r.delay||0,this.end=this.begin+r.duration||0,e.specification.transition&&(r.delay||r.duration)&&(this.prior=n)};sa.prototype.possiblyEvaluate=function(e,t,n){var r=e.now||0,a=this.value.possiblyEvaluate(e,t,n),o=this.prior;if(o){if(r>this.end)return this.prior=null,a;if(this.value.isDataDriven())return this.prior=null,a;if(r<this.begin)return o.possiblyEvaluate(e,t,n);var i=(r-this.begin)/(this.end-this.begin);return this.property.interpolate(o.possiblyEvaluate(e,t,n),a,function(e){if(e<=0)return 0;if(e>=1)return 1;var t=e*e,n=t*e;return 4*(e<.5?n:3*(e-t)+n-.75)}(i))}return a};var ua=function(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)};ua.prototype.possiblyEvaluate=function(e,t,n){for(var r=new pa(this._properties),a=0,o=Object.keys(this._values);a<o.length;a+=1){var i=o[a];r._values[i]=this._values[i].possiblyEvaluate(e,t,n)}return r},ua.prototype.hasTransition=function(){for(var e=0,t=Object.keys(this._values);e<t.length;e+=1)if(this._values[t[e]].prior)return!0;return!1};var ca=function(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)};ca.prototype.getValue=function(e){return b(this._values[e].value)},ca.prototype.setValue=function(e,t){this._values[e]=new oa(this._values[e].property,null===t?void 0:b(t))},ca.prototype.serialize=function(){for(var e={},t=0,n=Object.keys(this._values);t<n.length;t+=1){var r=n[t],a=this.getValue(r);void 0!==a&&(e[r]=a)}return e},ca.prototype.possiblyEvaluate=function(e,t,n){for(var r=new pa(this._properties),a=0,o=Object.keys(this._values);a<o.length;a+=1){var i=o[a];r._values[i]=this._values[i].possiblyEvaluate(e,t,n)}return r};var fa=function(e,t,n){this.property=e,this.value=t,this.parameters=n};fa.prototype.isConstant=function(){return"constant"===this.value.kind},fa.prototype.constantOr=function(e){return"constant"===this.value.kind?this.value.value:e},fa.prototype.evaluate=function(e,t,n,r){return this.property.evaluate(this.value,this.parameters,e,t,n,r)};var pa=function(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)};pa.prototype.get=function(e){return this._values[e]};var da=function(e){this.specification=e};da.prototype.possiblyEvaluate=function(e,t){return e.expression.evaluate(t)},da.prototype.interpolate=function(e,t,n){var r=Ht[this.specification.type];return r?r(e,t,n):e};var ha=function(e,t){this.specification=e,this.overrides=t};ha.prototype.possiblyEvaluate=function(e,t,n,r){return new fa(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},n,r)}:e.expression,t)},ha.prototype.interpolate=function(e,t,n){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new fa(this,{kind:"constant",value:void 0},e.parameters);var r=Ht[this.specification.type];return r?new fa(this,{kind:"constant",value:r(e.value.value,t.value.value,n)},e.parameters):e},ha.prototype.evaluate=function(e,t,n,r,a,o){return"constant"===e.kind?e.value:e.evaluate(t,n,r,a,o)};var va=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.possiblyEvaluate=function(e,t,n,r){if(void 0===e.value)return new fa(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){var a=e.expression.evaluate(t,null,{},n,r),o="resolvedImage"===e.property.specification.type&&"string"!=typeof a?a.name:a,i=this._calculate(o,o,o,t);return new fa(this,{kind:"constant",value:i},t)}if("camera"===e.expression.kind){var l=this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t);return new fa(this,{kind:"constant",value:l},t)}return new fa(this,e.expression,t)},t.prototype.evaluate=function(e,t,n,r,a,o){if("source"===e.kind){var i=e.evaluate(t,n,r,a,o);return this._calculate(i,i,i,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},n,r),e.evaluate({zoom:Math.floor(t.zoom)},n,r),e.evaluate({zoom:Math.floor(t.zoom)+1},n,r),t):e.value},t.prototype._calculate=function(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},t.prototype.interpolate=function(e){return e},t}(ha),ma=function(e){this.specification=e};ma.prototype.possiblyEvaluate=function(e,t,n,r){if(void 0!==e.value){if("constant"===e.expression.kind){var a=e.expression.evaluate(t,null,{},n,r);return this._calculate(a,a,a,t)}return this._calculate(e.expression.evaluate(new aa(Math.floor(t.zoom-1),t)),e.expression.evaluate(new aa(Math.floor(t.zoom),t)),e.expression.evaluate(new aa(Math.floor(t.zoom+1),t)),t)}},ma.prototype._calculate=function(e,t,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:n,to:t}},ma.prototype.interpolate=function(e){return e};var ya=function(e){this.specification=e};ya.prototype.possiblyEvaluate=function(e,t,n,r){return!!e.expression.evaluate(t,null,{},n,r)},ya.prototype.interpolate=function(){return!1};var ga=function(e){for(var t in this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],e){var n=e[t];n.specification.overridable&&this.overridableProperties.push(t);var r=this.defaultPropertyValues[t]=new oa(n,void 0),a=this.defaultTransitionablePropertyValues[t]=new ia(n);this.defaultTransitioningPropertyValues[t]=a.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=r.possiblyEvaluate({})}};Ir("DataDrivenProperty",ha),Ir("DataConstantProperty",da),Ir("CrossFadedDataDrivenProperty",va),Ir("CrossFadedProperty",ma),Ir("ColorRampProperty",ya);var ba=function(e){function t(t,n){if(e.call(this),this.id=t.id,this.type=t.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==t.type&&(this.metadata=(t=t).metadata,this.minzoom=t.minzoom,this.maxzoom=t.maxzoom,"background"!==t.type&&(this.source=t.source,this.sourceLayer=t["source-layer"],this.filter=t.filter),n.layout&&(this._unevaluatedLayout=new ca(n.layout)),n.paint)){for(var r in this._transitionablePaint=new la(n.paint),t.paint)this.setPaintProperty(r,t.paint[r],{validate:!1});for(var a in t.layout)this.setLayoutProperty(a,t.layout[a],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new pa(n.paint)}}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},t.prototype.getLayoutProperty=function(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)},t.prototype.setLayoutProperty=function(e,t,n){void 0===n&&(n={}),null!=t&&this._validate(Sr,"layers."+this.id+".layout."+e,e,t,n)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)},t.prototype.getPaintProperty=function(e){return m(e,"-transition")?this._transitionablePaint.getTransition(e.slice(0,-"-transition".length)):this._transitionablePaint.getValue(e)},t.prototype.setPaintProperty=function(e,t,n){if(void 0===n&&(n={}),null!=t&&this._validate(Mr,"layers."+this.id+".paint."+e,e,t,n))return!1;if(m(e,"-transition"))return this._transitionablePaint.setTransition(e.slice(0,-"-transition".length),t||void 0),!1;var r=this._transitionablePaint._values[e],a="cross-faded-data-driven"===r.property.specification["property-type"],o=r.value.isDataDriven(),i=r.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);var l=this._transitionablePaint._values[e].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(e,i,l)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){},t.prototype._handleOverridablePaintPropertyUpdate=function(e,t,n){return!1},t.prototype.isHidden=function(e){return!!(this.minzoom&&e<this.minzoom)||!!(this.maxzoom&&e>=this.maxzoom)||"none"===this.visibility},t.prototype.updateTransitions=function(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)},t.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},t.prototype.recalculate=function(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)},t.prototype.serialize=function(){var e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),g(e,(function(e,t){return!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length)}))},t.prototype._validate=function(e,t,n,r,a){return void 0===a&&(a={}),(!a||!1!==a.validate)&&Cr(this,e.call(Er,{key:t,layerType:this.type,objectKey:n,value:r,styleSpec:Oe,style:{glyphs:!0,sprite:!0}}))},t.prototype.is3D=function(){return!1},t.prototype.isTileClipped=function(){return!1},t.prototype.hasOffscreenPass=function(){return!1},t.prototype.resize=function(){},t.prototype.isStateDependent=function(){for(var e in this.paint._values){var t=this.paint.get(e);if(t instanceof fa&&Pn(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1},t}(Ee),xa={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},_a=function(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wa=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function ka(e,t){void 0===t&&(t=1);var n=0,r=0;return{members:e.map((function(e){var a=xa[e.type].BYTES_PER_ELEMENT,o=n=Ta(n,Math.max(t,a)),i=e.components||1;return r=Math.max(r,a),n+=a*i,{name:e.name,type:e.type,components:i,offset:o}})),size:Ta(n,Math.max(r,t)),alignment:t}}function Ta(e,t){return Math.ceil(e/t)*t}wa.serialize=function(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}},wa.deserialize=function(e){var t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t},wa.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},wa.prototype.clear=function(){this.length=0},wa.prototype.resize=function(e){this.reserve(e),this.length=e},wa.prototype.reserve=function(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}},wa.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Ea=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.int16[r+0]=t,this.int16[r+1]=n,e},t}(wa);Ea.prototype.bytesPerElement=4,Ir("StructArrayLayout2i4",Ea);var Oa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,a){var o=4*e;return this.int16[o+0]=t,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=a,e},t}(wa);Oa.prototype.bytesPerElement=8,Ir("StructArrayLayout4i8",Oa);var Ma=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,o){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r,a,o)},t.prototype.emplace=function(e,t,n,r,a,o,i){var l=6*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.int16[l+2]=r,this.int16[l+3]=a,this.int16[l+4]=o,this.int16[l+5]=i,e},t}(wa);Ma.prototype.bytesPerElement=12,Ir("StructArrayLayout2i4i12",Ma);var Sa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,o){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r,a,o)},t.prototype.emplace=function(e,t,n,r,a,o,i){var l=4*e,s=8*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.uint8[s+4]=r,this.uint8[s+5]=a,this.uint8[s+6]=o,this.uint8[s+7]=i,e},t}(wa);Sa.prototype.bytesPerElement=8,Ir("StructArrayLayout2i4ub8",Sa);var Ca=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,o,i,l,s,u){var c=this.length;return this.resize(c+1),this.emplace(c,e,t,n,r,a,o,i,l,s,u)},t.prototype.emplace=function(e,t,n,r,a,o,i,l,s,u,c){var f=9*e,p=18*e;return this.uint16[f+0]=t,this.uint16[f+1]=n,this.uint16[f+2]=r,this.uint16[f+3]=a,this.uint16[f+4]=o,this.uint16[f+5]=i,this.uint16[f+6]=l,this.uint16[f+7]=s,this.uint8[p+16]=u,this.uint8[p+17]=c,e},t}(wa);Ca.prototype.bytesPerElement=18,Ir("StructArrayLayout8ui2ub18",Ca);var Aa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,o,i,l,s,u,c,f){var p=this.length;return this.resize(p+1),this.emplace(p,e,t,n,r,a,o,i,l,s,u,c,f)},t.prototype.emplace=function(e,t,n,r,a,o,i,l,s,u,c,f,p){var d=12*e;return this.int16[d+0]=t,this.int16[d+1]=n,this.int16[d+2]=r,this.int16[d+3]=a,this.uint16[d+4]=o,this.uint16[d+5]=i,this.uint16[d+6]=l,this.uint16[d+7]=s,this.int16[d+8]=u,this.int16[d+9]=c,this.int16[d+10]=f,this.int16[d+11]=p,e},t}(wa);Aa.prototype.bytesPerElement=24,Ir("StructArrayLayout4i4ui4i24",Aa);var Pa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var a=3*e;return this.float32[a+0]=t,this.float32[a+1]=n,this.float32[a+2]=r,e},t}(wa);Pa.prototype.bytesPerElement=12,Ir("StructArrayLayout3f12",Pa);var La=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){return this.uint32[1*e+0]=t,e},t}(wa);La.prototype.bytesPerElement=4,Ir("StructArrayLayout1ul4",La);var Da=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,o,i,l,s){var u=this.length;return this.resize(u+1),this.emplace(u,e,t,n,r,a,o,i,l,s)},t.prototype.emplace=function(e,t,n,r,a,o,i,l,s,u){var c=10*e,f=5*e;return this.int16[c+0]=t,this.int16[c+1]=n,this.int16[c+2]=r,this.int16[c+3]=a,this.int16[c+4]=o,this.int16[c+5]=i,this.uint32[f+3]=l,this.uint16[c+8]=s,this.uint16[c+9]=u,e},t}(wa);Da.prototype.bytesPerElement=20,Ir("StructArrayLayout6i1ul2ui20",Da);var ja=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,o){var i=this.length;return this.resize(i+1),this.emplace(i,e,t,n,r,a,o)},t.prototype.emplace=function(e,t,n,r,a,o,i){var l=6*e;return this.int16[l+0]=t,this.int16[l+1]=n,this.int16[l+2]=r,this.int16[l+3]=a,this.int16[l+4]=o,this.int16[l+5]=i,e},t}(wa);ja.prototype.bytesPerElement=12,Ir("StructArrayLayout2i2i2i12",ja);var Ia=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a){var o=this.length;return this.resize(o+1),this.emplace(o,e,t,n,r,a)},t.prototype.emplace=function(e,t,n,r,a,o){var i=4*e,l=8*e;return this.float32[i+0]=t,this.float32[i+1]=n,this.float32[i+2]=r,this.int16[l+6]=a,this.int16[l+7]=o,e},t}(wa);Ia.prototype.bytesPerElement=16,Ir("StructArrayLayout2f1f2i16",Ia);var Ra=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,a){var o=12*e,i=3*e;return this.uint8[o+0]=t,this.uint8[o+1]=n,this.float32[i+1]=r,this.float32[i+2]=a,e},t}(wa);Ra.prototype.bytesPerElement=12,Ir("StructArrayLayout2ub2f12",Ra);var za=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var a=3*e;return this.uint16[a+0]=t,this.uint16[a+1]=n,this.uint16[a+2]=r,e},t}(wa);za.prototype.bytesPerElement=6,Ir("StructArrayLayout3ui6",za);var Na=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,o,i,l,s,u,c,f,p,d,h,v,m){var y=this.length;return this.resize(y+1),this.emplace(y,e,t,n,r,a,o,i,l,s,u,c,f,p,d,h,v,m)},t.prototype.emplace=function(e,t,n,r,a,o,i,l,s,u,c,f,p,d,h,v,m,y){var g=24*e,b=12*e,x=48*e;return this.int16[g+0]=t,this.int16[g+1]=n,this.uint16[g+2]=r,this.uint16[g+3]=a,this.uint32[b+2]=o,this.uint32[b+3]=i,this.uint32[b+4]=l,this.uint16[g+10]=s,this.uint16[g+11]=u,this.uint16[g+12]=c,this.float32[b+7]=f,this.float32[b+8]=p,this.uint8[x+36]=d,this.uint8[x+37]=h,this.uint8[x+38]=v,this.uint32[b+10]=m,this.int16[g+22]=y,e},t}(wa);Na.prototype.bytesPerElement=48,Ir("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Na);var Fa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r,a,o,i,l,s,u,c,f,p,d,h,v,m,y,g,b,x,_,w,k,T,E,O,M){var S=this.length;return this.resize(S+1),this.emplace(S,e,t,n,r,a,o,i,l,s,u,c,f,p,d,h,v,m,y,g,b,x,_,w,k,T,E,O,M)},t.prototype.emplace=function(e,t,n,r,a,o,i,l,s,u,c,f,p,d,h,v,m,y,g,b,x,_,w,k,T,E,O,M,S){var C=34*e,A=17*e;return this.int16[C+0]=t,this.int16[C+1]=n,this.int16[C+2]=r,this.int16[C+3]=a,this.int16[C+4]=o,this.int16[C+5]=i,this.int16[C+6]=l,this.int16[C+7]=s,this.uint16[C+8]=u,this.uint16[C+9]=c,this.uint16[C+10]=f,this.uint16[C+11]=p,this.uint16[C+12]=d,this.uint16[C+13]=h,this.uint16[C+14]=v,this.uint16[C+15]=m,this.uint16[C+16]=y,this.uint16[C+17]=g,this.uint16[C+18]=b,this.uint16[C+19]=x,this.uint16[C+20]=_,this.uint16[C+21]=w,this.uint16[C+22]=k,this.uint32[A+12]=T,this.float32[A+13]=E,this.float32[A+14]=O,this.float32[A+15]=M,this.float32[A+16]=S,e},t}(wa);Fa.prototype.bytesPerElement=68,Ir("StructArrayLayout8i15ui1ul4f68",Fa);var Ba=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){return this.float32[1*e+0]=t,e},t}(wa);Ba.prototype.bytesPerElement=4,Ir("StructArrayLayout1f4",Ba);var Va=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var a=3*e;return this.int16[a+0]=t,this.int16[a+1]=n,this.int16[a+2]=r,e},t}(wa);Va.prototype.bytesPerElement=6,Ir("StructArrayLayout3i6",Va);var Ha=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n){var r=this.length;return this.resize(r+1),this.emplace(r,e,t,n)},t.prototype.emplace=function(e,t,n,r){var a=4*e;return this.uint32[2*e+0]=t,this.uint16[a+2]=n,this.uint16[a+3]=r,e},t}(wa);Ha.prototype.bytesPerElement=8,Ir("StructArrayLayout1ul2ui8",Ha);var Ua=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=n,e},t}(wa);Ua.prototype.bytesPerElement=4,Ir("StructArrayLayout2ui4",Ua);var Wa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e){var t=this.length;return this.resize(t+1),this.emplace(t,e)},t.prototype.emplace=function(e,t){return this.uint16[1*e+0]=t,e},t}(wa);Wa.prototype.bytesPerElement=2,Ir("StructArrayLayout1ui2",Wa);var qa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t){var n=this.length;return this.resize(n+1),this.emplace(n,e,t)},t.prototype.emplace=function(e,t,n){var r=2*e;return this.float32[r+0]=t,this.float32[r+1]=n,e},t}(wa);qa.prototype.bytesPerElement=8,Ir("StructArrayLayout2f8",qa);var $a=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},t.prototype.emplaceBack=function(e,t,n,r){var a=this.length;return this.resize(a+1),this.emplace(a,e,t,n,r)},t.prototype.emplace=function(e,t,n,r,a){var o=4*e;return this.float32[o+0]=t,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=a,e},t}(wa);$a.prototype.bytesPerElement=16,Ir("StructArrayLayout4f16",$a);var Ga=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return n.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},n.x1.get=function(){return this._structArray.int16[this._pos2+2]},n.y1.get=function(){return this._structArray.int16[this._pos2+3]},n.x2.get=function(){return this._structArray.int16[this._pos2+4]},n.y2.get=function(){return this._structArray.int16[this._pos2+5]},n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.anchorPoint.get=function(){return new a(this.anchorPointX,this.anchorPointY)},Object.defineProperties(t.prototype,n),t}(_a);Ga.prototype.size=20;var Ya=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.get=function(e){return new Ga(this,e)},t}(Da);Ir("CollisionBoxArray",Ya);var Ka=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},n.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},n.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},n.segment.get=function(){return this._structArray.uint16[this._pos2+10]},n.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},n.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},n.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},n.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},n.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},n.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},n.placedOrientation.set=function(e){this._structArray.uint8[this._pos1+37]=e},n.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},n.hidden.set=function(e){this._structArray.uint8[this._pos1+38]=e},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},n.crossTileID.set=function(e){this._structArray.uint32[this._pos4+10]=e},n.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(t.prototype,n),t}(_a);Ka.prototype.size=48;var Xa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.get=function(e){return new Ka(this,e)},t}(Na);Ir("PlacedSymbolArray",Xa);var Za=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},n.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},n.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},n.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},n.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},n.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},n.key.get=function(){return this._structArray.uint16[this._pos2+8]},n.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},n.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},n.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},n.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},n.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},n.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},n.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},n.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},n.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},n.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},n.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},n.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},n.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},n.crossTileID.set=function(e){this._structArray.uint32[this._pos4+12]=e},n.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},n.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},n.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},n.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(t.prototype,n),t}(_a);Za.prototype.size=68;var Ja=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.get=function(e){return new Za(this,e)},t}(Fa);Ir("SymbolInstanceArray",Ja);var Qa=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getoffsetX=function(e){return this.float32[1*e+0]},t}(Ba);Ir("GlyphOffsetArray",Qa);var eo=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getx=function(e){return this.int16[3*e+0]},t.prototype.gety=function(e){return this.int16[3*e+1]},t.prototype.gettileUnitDistanceFromAnchor=function(e){return this.int16[3*e+2]},t}(Va);Ir("SymbolLineVertexArray",eo);var to=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(t.prototype,n),t}(_a);to.prototype.size=8;var no=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.get=function(e){return new to(this,e)},t}(Ha);Ir("FeatureIndexArray",no);var ro=ka([{name:"a_pos",components:2,type:"Int16"}],4).members,ao=function(e){void 0===e&&(e=[]),this.segments=e};function oo(e,t){return 256*(e=s(Math.floor(e),0,255))+s(Math.floor(t),0,255)}ao.prototype.prepareSegment=function(e,t,n,r){var a=this.segments[this.segments.length-1];return e>ao.MAX_VERTEX_ARRAY_LENGTH&&_("Max vertices per segment is "+ao.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+e),(!a||a.vertexLength+e>ao.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==r)&&(a={vertexOffset:t.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(a.sortKey=r),this.segments.push(a)),a},ao.prototype.get=function(){return this.segments},ao.prototype.destroy=function(){for(var e=0,t=this.segments;e<t.length;e+=1){var n=t[e];for(var r in n.vaos)n.vaos[r].destroy()}},ao.simpleSegment=function(e,t,n,r){return new ao([{vertexOffset:e,primitiveOffset:t,vertexLength:n,primitiveLength:r,vaos:{},sortKey:0}])},ao.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Ir("SegmentVector",ao);var io=ka([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint8"},{name:"a_pixel_ratio_to",components:1,type:"Uint8"}]),lo=t((function(e){e.exports=function(e,t){var n,r,a,o,i,l,s,u;for(r=e.length-(n=3&e.length),a=t,i=3432918353,l=461845907,u=0;u<r;)s=255&e.charCodeAt(u)|(255&e.charCodeAt(++u))<<8|(255&e.charCodeAt(++u))<<16|(255&e.charCodeAt(++u))<<24,++u,a=27492+(65535&(o=5*(65535&(a=(a^=s=(65535&(s=(s=(65535&s)*i+(((s>>>16)*i&65535)<<16)&4294967295)<<15|s>>>17))*l+(((s>>>16)*l&65535)<<16)&4294967295)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(s=0,n){case 3:s^=(255&e.charCodeAt(u+2))<<16;case 2:s^=(255&e.charCodeAt(u+1))<<8;case 1:a^=s=(65535&(s=(s=(65535&(s^=255&e.charCodeAt(u)))*i+(((s>>>16)*i&65535)<<16)&4294967295)<<15|s>>>17))*l+(((s>>>16)*l&65535)<<16)&4294967295}return a^=e.length,a=2246822507*(65535&(a^=a>>>16))+((2246822507*(a>>>16)&65535)<<16)&4294967295,a=3266489909*(65535&(a^=a>>>13))+((3266489909*(a>>>16)&65535)<<16)&4294967295,(a^=a>>>16)>>>0}})),so=t((function(e){e.exports=function(e,t){for(var n,r=e.length,a=t^r,o=0;r>=4;)n=1540483477*(65535&(n=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:a^=(255&e.charCodeAt(o+2))<<16;case 2:a^=(255&e.charCodeAt(o+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(o)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),(a^=a>>>15)>>>0}})),uo=lo,co=so;uo.murmur3=lo,uo.murmur2=co;var fo=function(){this.ids=[],this.positions=[],this.indexed=!1};fo.prototype.add=function(e,t,n,r){this.ids.push(ho(e)),this.positions.push(t,n,r)},fo.prototype.getPositions=function(e){for(var t=ho(e),n=0,r=this.ids.length-1;n<r;){var a=n+r>>1;this.ids[a]>=t?r=a:n=a+1}for(var o=[];this.ids[n]===t;)o.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return o},fo.serialize=function(e,t){var n=new Float64Array(e.ids),r=new Uint32Array(e.positions);return function e(t,n,r,a){for(;r<a;){for(var o=t[r+a>>1],i=r-1,l=a+1;;){do{i++}while(t[i]<o);do{l--}while(t[l]>o);if(i>=l)break;vo(t,i,l),vo(n,3*i,3*l),vo(n,3*i+1,3*l+1),vo(n,3*i+2,3*l+2)}l-r<a-l?(e(t,n,r,l),r=l+1):(e(t,n,l+1,a),a=l)}}(n,r,0,n.length-1),t&&t.push(n.buffer,r.buffer),{ids:n,positions:r}},fo.deserialize=function(e){var t=new fo;return t.ids=e.ids,t.positions=e.positions,t.indexed=!0,t};var po=Math.pow(2,53)-1;function ho(e){var t=+e;return!isNaN(t)&&t<=po?t:uo(String(e))}function vo(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}Ir("FeaturePositionMap",fo);var mo=function(e,t){this.gl=e.gl,this.location=t},yo=function(e){function t(t,n){e.call(this,t,n),this.current=0}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){this.current!==e&&(this.current=e,this.gl.uniform1i(this.location,e))},t}(mo),go=function(e){function t(t,n){e.call(this,t,n),this.current=0}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){this.current!==e&&(this.current=e,this.gl.uniform1f(this.location,e))},t}(mo),bo=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0]}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){e[0]===this.current[0]&&e[1]===this.current[1]||(this.current=e,this.gl.uniform2f(this.location,e[0],e[1]))},t}(mo),xo=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0,0]}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]||(this.current=e,this.gl.uniform3f(this.location,e[0],e[1],e[2]))},t}(mo),_o=function(e){function t(t,n){e.call(this,t,n),this.current=[0,0,0,0]}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){e[0]===this.current[0]&&e[1]===this.current[1]&&e[2]===this.current[2]&&e[3]===this.current[3]||(this.current=e,this.gl.uniform4f(this.location,e[0],e[1],e[2],e[3]))},t}(mo),wo=function(e){function t(t,n){e.call(this,t,n),this.current=Ze.transparent}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){e.r===this.current.r&&e.g===this.current.g&&e.b===this.current.b&&e.a===this.current.a||(this.current=e,this.gl.uniform4f(this.location,e.r,e.g,e.b,e.a))},t}(mo),ko=new Float32Array(16),To=function(e){function t(t,n){e.call(this,t,n),this.current=ko}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){if(e[12]!==this.current[12]||e[0]!==this.current[0])return this.current=e,void this.gl.uniformMatrix4fv(this.location,!1,e);for(var t=1;t<16;t++)if(e[t]!==this.current[t]){this.current=e,this.gl.uniformMatrix4fv(this.location,!1,e);break}},t}(mo);function Eo(e){return[oo(255*e.r,255*e.g),oo(255*e.b,255*e.a)]}var Oo=function(e,t,n){this.value=e,this.uniformNames=t.map((function(e){return"u_"+e})),this.type=n};Oo.prototype.setUniform=function(e,t,n){e.set(n.constantOr(this.value))},Oo.prototype.getBinding=function(e,t,n){return"color"===this.type?new wo(e,t):new go(e,t)};var Mo=function(e,t){this.uniformNames=t.map((function(e){return"u_"+e})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Mo.prototype.setConstantPatternPositions=function(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr},Mo.prototype.setUniform=function(e,t,n,r){var a="u_pattern_to"===r?this.patternTo:"u_pattern_from"===r?this.patternFrom:"u_pixel_ratio_to"===r?this.pixelRatioTo:"u_pixel_ratio_from"===r?this.pixelRatioFrom:null;a&&e.set(a)},Mo.prototype.getBinding=function(e,t,n){return"u_pattern"===n.substr(0,9)?new _o(e,t):new go(e,t)};var So=function(e,t,n,r){this.expression=e,this.type=n,this.maxValue=0,this.paintVertexAttributes=t.map((function(e){return{name:"a_"+e,type:"Float32",components:"color"===n?2:1,offset:0}})),this.paintVertexArray=new r};So.prototype.populatePaintArray=function(e,t,n,r,a){var o=this.paintVertexArray.length,i=this.expression.evaluate(new aa(0),t,{},r,[],a);this.paintVertexArray.resize(e),this._setPaintValue(o,e,i)},So.prototype.updatePaintArray=function(e,t,n,r){var a=this.expression.evaluate({zoom:0},n,r);this._setPaintValue(e,t,a)},So.prototype._setPaintValue=function(e,t,n){if("color"===this.type)for(var r=Eo(n),a=e;a<t;a++)this.paintVertexArray.emplace(a,r[0],r[1]);else{for(var o=e;o<t;o++)this.paintVertexArray.emplace(o,n);this.maxValue=Math.max(this.maxValue,Math.abs(n))}},So.prototype.upload=function(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},So.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()};var Co=function(e,t,n,r,a,o){this.expression=e,this.uniformNames=t.map((function(e){return"u_"+e+"_t"})),this.type=n,this.useIntegerZoom=r,this.zoom=a,this.maxValue=0,this.paintVertexAttributes=t.map((function(e){return{name:"a_"+e,type:"Float32",components:"color"===n?4:2,offset:0}})),this.paintVertexArray=new o};Co.prototype.populatePaintArray=function(e,t,n,r,a){var o=this.expression.evaluate(new aa(this.zoom),t,{},r,[],a),i=this.expression.evaluate(new aa(this.zoom+1),t,{},r,[],a),l=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(l,e,o,i)},Co.prototype.updatePaintArray=function(e,t,n,r){var a=this.expression.evaluate({zoom:this.zoom},n,r),o=this.expression.evaluate({zoom:this.zoom+1},n,r);this._setPaintValue(e,t,a,o)},Co.prototype._setPaintValue=function(e,t,n,r){if("color"===this.type)for(var a=Eo(n),o=Eo(r),i=e;i<t;i++)this.paintVertexArray.emplace(i,a[0],a[1],o[0],o[1]);else{for(var l=e;l<t;l++)this.paintVertexArray.emplace(l,n,r);this.maxValue=Math.max(this.maxValue,Math.abs(n),Math.abs(r))}},Co.prototype.upload=function(e){this.paintVertexArray&&this.paintVertexArray.arrayBuffer&&(this.paintVertexBuffer&&this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=e.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Co.prototype.destroy=function(){this.paintVertexBuffer&&this.paintVertexBuffer.destroy()},Co.prototype.setUniform=function(e,t){var n=this.useIntegerZoom?Math.floor(t.zoom):t.zoom,r=s(this.expression.interpolationFactor(n,this.zoom,this.zoom+1),0,1);e.set(r)},Co.prototype.getBinding=function(e,t,n){return new go(e,t)};var Ao=function(e,t,n,r,a,o){this.expression=e,this.type=t,this.useIntegerZoom=n,this.zoom=r,this.layerId=o,this.zoomInPaintVertexArray=new a,this.zoomOutPaintVertexArray=new a};Ao.prototype.populatePaintArray=function(e,t,n){var r=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(e),this.zoomOutPaintVertexArray.resize(e),this._setPaintValues(r,e,t.patterns&&t.patterns[this.layerId],n)},Ao.prototype.updatePaintArray=function(e,t,n,r,a){this._setPaintValues(e,t,n.patterns&&n.patterns[this.layerId],a)},Ao.prototype._setPaintValues=function(e,t,n,r){if(r&&n){var a=r[n.min],o=r[n.mid],i=r[n.max];if(a&&o&&i)for(var l=e;l<t;l++)this.zoomInPaintVertexArray.emplace(l,o.tl[0],o.tl[1],o.br[0],o.br[1],a.tl[0],a.tl[1],a.br[0],a.br[1],o.pixelRatio,a.pixelRatio),this.zoomOutPaintVertexArray.emplace(l,o.tl[0],o.tl[1],o.br[0],o.br[1],i.tl[0],i.tl[1],i.br[0],i.br[1],o.pixelRatio,i.pixelRatio)}},Ao.prototype.upload=function(e){this.zoomInPaintVertexArray&&this.zoomInPaintVertexArray.arrayBuffer&&this.zoomOutPaintVertexArray&&this.zoomOutPaintVertexArray.arrayBuffer&&(this.zoomInPaintVertexBuffer=e.createVertexBuffer(this.zoomInPaintVertexArray,io.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=e.createVertexBuffer(this.zoomOutPaintVertexArray,io.members,this.expression.isStateDependent))},Ao.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&&this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&&this.zoomInPaintVertexBuffer.destroy()};var Po=function(e,t,n,r){this.binders={},this.layoutAttributes=r,this._buffers=[];var a=[];for(var o in e.paint._values)if(n(o)){var i=e.paint.get(o);if(i instanceof fa&&Pn(i.property.specification)){var l=Do(o,e.type),s=i.value,u=i.property.specification.type,c=i.property.useIntegerZoom,f=i.property.specification["property-type"],p="cross-faded"===f||"cross-faded-data-driven"===f;if("constant"===s.kind)this.binders[o]=p?new Mo(s.value,l):new Oo(s.value,l,u),a.push("/u_"+o);else if("source"===s.kind||p){var d=jo(o,u,"source");this.binders[o]=p?new Ao(s,u,c,t,d,e.id):new So(s,l,u,d),a.push("/a_"+o)}else{var h=jo(o,u,"composite");this.binders[o]=new Co(s,l,u,c,t,h),a.push("/z_"+o)}}}this.cacheKey=a.sort().join("")};Po.prototype.getMaxValue=function(e){var t=this.binders[e];return t instanceof So||t instanceof Co?t.maxValue:0},Po.prototype.populatePaintArrays=function(e,t,n,r,a){for(var o in this.binders){var i=this.binders[o];(i instanceof So||i instanceof Co||i instanceof Ao)&&i.populatePaintArray(e,t,n,r,a)}},Po.prototype.setConstantPatternPositions=function(e,t){for(var n in this.binders){var r=this.binders[n];r instanceof Mo&&r.setConstantPatternPositions(e,t)}},Po.prototype.updatePaintArrays=function(e,t,n,r,a){var o=!1;for(var i in e)for(var l=0,s=t.getPositions(i);l<s.length;l+=1){var u=s[l],c=n.feature(u.index);for(var f in this.binders){var p=this.binders[f];if((p instanceof So||p instanceof Co||p instanceof Ao)&&!0===p.expression.isStateDependent){var d=r.paint.get(f);p.expression=d.value,p.updatePaintArray(u.start,u.end,c,e[i],a),o=!0}}}return o},Po.prototype.defines=function(){var e=[];for(var t in this.binders){var n=this.binders[t];(n instanceof Oo||n instanceof Mo)&&e.push.apply(e,n.uniformNames.map((function(e){return"#define HAS_UNIFORM_"+e})))}return e},Po.prototype.getPaintVertexBuffers=function(){return this._buffers},Po.prototype.getUniforms=function(e,t){var n=[];for(var r in this.binders){var a=this.binders[r];if(a instanceof Oo||a instanceof Mo||a instanceof Co)for(var o=0,i=a.uniformNames;o<i.length;o+=1){var l=i[o];if(t[l]){var s=a.getBinding(e,t[l],l);n.push({name:l,property:r,binding:s})}}}return n},Po.prototype.setUniforms=function(e,t,n,r){for(var a=0,o=t;a<o.length;a+=1){var i=o[a],l=i.name,s=i.property;this.binders[s].setUniform(i.binding,r,n.get(s),l)}},Po.prototype.updatePaintBuffers=function(e){for(var t in this._buffers=[],this.binders){var n=this.binders[t];if(e&&n instanceof Ao){var r=2===e.fromScale?n.zoomInPaintVertexBuffer:n.zoomOutPaintVertexBuffer;r&&this._buffers.push(r)}else(n instanceof So||n instanceof Co)&&n.paintVertexBuffer&&this._buffers.push(n.paintVertexBuffer)}},Po.prototype.upload=function(e){for(var t in this.binders){var n=this.binders[t];(n instanceof So||n instanceof Co||n instanceof Ao)&&n.upload(e)}this.updatePaintBuffers()},Po.prototype.destroy=function(){for(var e in this.binders){var t=this.binders[e];(t instanceof So||t instanceof Co||t instanceof Ao)&&t.destroy()}};var Lo=function(e,t,n,r){void 0===r&&(r=function(){return!0}),this.programConfigurations={};for(var a=0,o=t;a<o.length;a+=1){var i=o[a];this.programConfigurations[i.id]=new Po(i,n,r,e)}this.needsUpload=!1,this._featureMap=new fo,this._bufferOffset=0};function Do(e,t){return{"text-opacity":["opacity"],"icon-opacity":["opacity"],"text-color":["fill_color"],"icon-color":["fill_color"],"text-halo-color":["halo_color"],"icon-halo-color":["halo_color"],"text-halo-blur":["halo_blur"],"icon-halo-blur":["halo_blur"],"text-halo-width":["halo_width"],"icon-halo-width":["halo_width"],"line-gap-width":["gapwidth"],"line-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"],"fill-extrusion-pattern":["pattern_to","pattern_from","pixel_ratio_to","pixel_ratio_from"]}[e]||[e.replace(t+"-","").replace(/-/g,"_")]}function jo(e,t,n){var r={color:{source:qa,composite:$a},number:{source:Ba,composite:qa}},a=function(e){return{"line-pattern":{source:Ca,composite:Ca},"fill-pattern":{source:Ca,composite:Ca},"fill-extrusion-pattern":{source:Ca,composite:Ca}}[e]}(e);return a&&a[n]||r[t][n]}Lo.prototype.populatePaintArrays=function(e,t,n,r,a,o){for(var i in this.programConfigurations)this.programConfigurations[i].populatePaintArrays(e,t,r,a,o);void 0!==t.id&&this._featureMap.add(t.id,n,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0},Lo.prototype.updatePaintArrays=function(e,t,n,r){for(var a=0,o=n;a<o.length;a+=1){var i=o[a];this.needsUpload=this.programConfigurations[i.id].updatePaintArrays(e,this._featureMap,t,i,r)||this.needsUpload}},Lo.prototype.get=function(e){return this.programConfigurations[e]},Lo.prototype.upload=function(e){if(this.needsUpload){for(var t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}},Lo.prototype.destroy=function(){for(var e in this.programConfigurations)this.programConfigurations[e].destroy()},Ir("ConstantBinder",Oo),Ir("CrossFadedConstantBinder",Mo),Ir("SourceExpressionBinder",So),Ir("CrossFadedCompositeBinder",Ao),Ir("CompositeExpressionBinder",Co),Ir("ProgramConfiguration",Po,{omit:["_buffers"]}),Ir("ProgramConfigurationSet",Lo);var Io={min:-1*Math.pow(2,14),max:Math.pow(2,14)-1};function Ro(e){for(var t=8192/e.extent,n=e.loadGeometry(),r=0;r<n.length;r++)for(var a=n[r],o=0;o<a.length;o++){var i=a[o];i.x=Math.round(i.x*t),i.y=Math.round(i.y*t),(i.x<Io.min||i.x>Io.max||i.y<Io.min||i.y>Io.max)&&(_("Geometry exceeds allowed extent, reduce your vector tile buffer size"),i.x=s(i.x,Io.min,Io.max),i.y=s(i.y,Io.min,Io.max))}return n}function zo(e,t,n,r,a){e.emplaceBack(2*t+(r+1)/2,2*n+(a+1)/2)}var No=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new Ea,this.indexArray=new za,this.segments=new ao,this.programConfigurations=new Lo(ro,e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};function Fo(e,t){for(var n=0;n<e.length;n++)if(Yo(t,e[n]))return!0;for(var r=0;r<t.length;r++)if(Yo(e,t[r]))return!0;return!!Uo(e,t)}function Bo(e,t,n){return!!Yo(e,t)||!!qo(t,e,n)}function Vo(e,t){if(1===e.length)return Go(t,e[0]);for(var n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;a++)if(Yo(e,r[a]))return!0;for(var o=0;o<e.length;o++)if(Go(t,e[o]))return!0;for(var i=0;i<t.length;i++)if(Uo(e,t[i]))return!0;return!1}function Ho(e,t,n){if(e.length>1){if(Uo(e,t))return!0;for(var r=0;r<t.length;r++)if(qo(t[r],e,n))return!0}for(var a=0;a<e.length;a++)if(qo(e[a],t,n))return!0;return!1}function Uo(e,t){if(0===e.length||0===t.length)return!1;for(var n=0;n<e.length-1;n++)for(var r=e[n],a=e[n+1],o=0;o<t.length-1;o++)if(Wo(r,a,t[o],t[o+1]))return!0;return!1}function Wo(e,t,n,r){return w(e,n,r)!==w(t,n,r)&&w(e,t,n)!==w(e,t,r)}function qo(e,t,n){var r=n*n;if(1===t.length)return e.distSqr(t[0])<r;for(var a=1;a<t.length;a++)if($o(e,t[a-1],t[a])<r)return!0;return!1}function $o(e,t,n){var r=t.distSqr(n);if(0===r)return e.distSqr(t);var a=((e.x-t.x)*(n.x-t.x)+(e.y-t.y)*(n.y-t.y))/r;return e.distSqr(a<0?t:a>1?n:n.sub(t)._mult(a)._add(t))}function Go(e,t){for(var n,r,a,o=!1,i=0;i<e.length;i++)for(var l=0,s=(n=e[i]).length-1;l<n.length;s=l++)(r=n[l]).y>t.y!=(a=n[s]).y>t.y&&t.x<(a.x-r.x)*(t.y-r.y)/(a.y-r.y)+r.x&&(o=!o);return o}function Yo(e,t){for(var n=!1,r=0,a=e.length-1;r<e.length;a=r++){var o=e[r],i=e[a];o.y>t.y!=i.y>t.y&&t.x<(i.x-o.x)*(t.y-o.y)/(i.y-o.y)+o.x&&(n=!n)}return n}function Ko(e,t,n){var r=n[0],a=n[2];if(e.x<r.x&&t.x<r.x||e.x>a.x&&t.x>a.x||e.y<r.y&&t.y<r.y||e.y>a.y&&t.y>a.y)return!1;var o=w(e,t,n[0]);return o!==w(e,t,n[1])||o!==w(e,t,n[2])||o!==w(e,t,n[3])}function Xo(e,t,n){var r=t.paint.get(e).value;return"constant"===r.kind?r.value:n.programConfigurations.get(t.id).getMaxValue(e)}function Zo(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Jo(e,t,n,r,o){if(!t[0]&&!t[1])return e;var i=a.convert(t)._mult(o);"viewport"===n&&i._rotate(-r);for(var l=[],s=0;s<e.length;s++)l.push(e[s].sub(i));return l}No.prototype.populate=function(e,t,n){var r=this.layers[0],a=[],o=null;"circle"===r.type&&(o=r.layout.get("circle-sort-key"));for(var i=0,l=e;i<l.length;i+=1){var s=l[i],u=s.feature,c=s.id,f=s.index,p=s.sourceLayerIndex,d=this.layers[0]._featureFilter.needGeometry,h={type:u.type,id:c,properties:u.properties,geometry:d?Ro(u):[]};if(this.layers[0]._featureFilter.filter(new aa(this.zoom),h,n)){d||(h.geometry=Ro(u));var v=o?o.evaluate(h,{},n):void 0;a.push({id:c,properties:u.properties,type:u.type,sourceLayerIndex:p,index:f,geometry:h.geometry,patterns:{},sortKey:v})}}o&&a.sort((function(e,t){return e.sortKey-t.sortKey}));for(var m=0,y=a;m<y.length;m+=1){var g=y[m],b=g.geometry,x=g.index,_=g.sourceLayerIndex,w=e[x].feature;this.addFeature(g,b,x,n),t.featureIndex.insert(w,b,x,_,this.index)}},No.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},No.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},No.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},No.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,ro),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},No.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},No.prototype.addFeature=function(e,t,n,r){for(var a=0,o=t;a<o.length;a+=1)for(var i=0,l=o[a];i<l.length;i+=1){var s=l[i],u=s.x,c=s.y;if(!(u<0||u>=8192||c<0||c>=8192)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),p=f.vertexLength;zo(this.layoutVertexArray,u,c,-1,-1),zo(this.layoutVertexArray,u,c,1,-1),zo(this.layoutVertexArray,u,c,1,1),zo(this.layoutVertexArray,u,c,-1,1),this.indexArray.emplaceBack(p,p+1,p+2),this.indexArray.emplaceBack(p,p+3,p+2),f.vertexLength+=4,f.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,{},r)},Ir("CircleBucket",No,{omit:["layers"]});var Qo=new ga({"circle-sort-key":new ha(Oe.layout_circle["circle-sort-key"])}),ei={paint:new ga({"circle-radius":new ha(Oe.paint_circle["circle-radius"]),"circle-color":new ha(Oe.paint_circle["circle-color"]),"circle-blur":new ha(Oe.paint_circle["circle-blur"]),"circle-opacity":new ha(Oe.paint_circle["circle-opacity"]),"circle-translate":new da(Oe.paint_circle["circle-translate"]),"circle-translate-anchor":new da(Oe.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new da(Oe.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new da(Oe.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new ha(Oe.paint_circle["circle-stroke-width"]),"circle-stroke-color":new ha(Oe.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new ha(Oe.paint_circle["circle-stroke-opacity"])}),layout:Qo},ti="undefined"!=typeof Float32Array?Float32Array:Array;function ni(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function ri(e,t,n){var r=t[0],a=t[1],o=t[2],i=t[3],l=t[4],s=t[5],u=t[6],c=t[7],f=t[8],p=t[9],d=t[10],h=t[11],v=t[12],m=t[13],y=t[14],g=t[15],b=n[0],x=n[1],_=n[2],w=n[3];return e[0]=b*r+x*l+_*f+w*v,e[1]=b*a+x*s+_*p+w*m,e[2]=b*o+x*u+_*d+w*y,e[3]=b*i+x*c+_*h+w*g,e[4]=(b=n[4])*r+(x=n[5])*l+(_=n[6])*f+(w=n[7])*v,e[5]=b*a+x*s+_*p+w*m,e[6]=b*o+x*u+_*d+w*y,e[7]=b*i+x*c+_*h+w*g,e[8]=(b=n[8])*r+(x=n[9])*l+(_=n[10])*f+(w=n[11])*v,e[9]=b*a+x*s+_*p+w*m,e[10]=b*o+x*u+_*d+w*y,e[11]=b*i+x*c+_*h+w*g,e[12]=(b=n[12])*r+(x=n[13])*l+(_=n[14])*f+(w=n[15])*v,e[13]=b*a+x*s+_*p+w*m,e[14]=b*o+x*u+_*d+w*y,e[15]=b*i+x*c+_*h+w*g,e}Math.hypot||(Math.hypot=function(){for(var e=arguments,t=0,n=arguments.length;n--;)t+=e[n]*e[n];return Math.sqrt(t)});var ai,oi=ri;function ii(e,t,n){var r=t[0],a=t[1],o=t[2],i=t[3];return e[0]=n[0]*r+n[4]*a+n[8]*o+n[12]*i,e[1]=n[1]*r+n[5]*a+n[9]*o+n[13]*i,e[2]=n[2]*r+n[6]*a+n[10]*o+n[14]*i,e[3]=n[3]*r+n[7]*a+n[11]*o+n[15]*i,e}ai=new ti(3),ti!=Float32Array&&(ai[0]=0,ai[1]=0,ai[2]=0),function(){var e=new ti(4);ti!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0,e[3]=0)}();var li=(function(){var e=new ti(2);ti!=Float32Array&&(e[0]=0,e[1]=0)}(),function(e){function t(t){e.call(this,t,ei)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.createBucket=function(e){return new No(e)},t.prototype.queryRadius=function(e){var t=e;return Xo("circle-radius",this,t)+Xo("circle-stroke-width",this,t)+Zo(this.paint.get("circle-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,a,o,i,l){for(var s=Jo(e,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,i),u=this.paint.get("circle-radius").evaluate(t,n)+this.paint.get("circle-stroke-width").evaluate(t,n),c="map"===this.paint.get("circle-pitch-alignment"),f=c?s:function(e,t){return e.map((function(e){return si(e,t)}))}(s,l),p=c?u*i:u,d=0,h=r;d<h.length;d+=1)for(var v=0,m=h[d];v<m.length;v+=1){var y=m[v],g=c?y:si(y,l),b=p,x=ii([],[y.x,y.y,0,1],l);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?b*=x[3]/o.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(b*=o.cameraToCenterDistance/x[3]),Bo(f,g,b))return!0}return!1},t}(ba));function si(e,t){var n=ii([],[e.x,e.y,0,1],t);return new a(n[0]/n[3],n[1]/n[3])}var ui=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(No);function ci(e,t,n,r){var a=t.width,o=t.height;if(r){if(r instanceof Uint8ClampedArray)r=new Uint8Array(r.buffer);else if(r.length!==a*o*n)throw new RangeError("mismatched image size")}else r=new Uint8Array(a*o*n);return e.width=a,e.height=o,e.data=r,e}function fi(e,t,n){var r=t.width,a=t.height;if(r!==e.width||a!==e.height){var o=ci({},{width:r,height:a},n);pi(e,o,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,r),height:Math.min(e.height,a)},n),e.width=r,e.height=a,e.data=o.data}}function pi(e,t,n,r,a,o){if(0===a.width||0===a.height)return t;if(a.width>e.width||a.height>e.height||n.x>e.width-a.width||n.y>e.height-a.height)throw new RangeError("out of range source coordinates for image copy");if(a.width>t.width||a.height>t.height||r.x>t.width-a.width||r.y>t.height-a.height)throw new RangeError("out of range destination coordinates for image copy");for(var i=e.data,l=t.data,s=0;s<a.height;s++)for(var u=((n.y+s)*e.width+n.x)*o,c=((r.y+s)*t.width+r.x)*o,f=0;f<a.width*o;f++)l[c+f]=i[u+f];return t}Ir("HeatmapBucket",ui,{omit:["layers"]});var di=function(e,t){ci(this,e,1,t)};di.prototype.resize=function(e){fi(this,e,1)},di.prototype.clone=function(){return new di({width:this.width,height:this.height},new Uint8Array(this.data))},di.copy=function(e,t,n,r,a){pi(e,t,n,r,a,1)};var hi=function(e,t){ci(this,e,4,t)};hi.prototype.resize=function(e){fi(this,e,4)},hi.prototype.replace=function(e,t){t?this.data.set(e):this.data=e instanceof Uint8ClampedArray?new Uint8Array(e.buffer):e},hi.prototype.clone=function(){return new hi({width:this.width,height:this.height},new Uint8Array(this.data))},hi.copy=function(e,t,n,r,a){pi(e,t,n,r,a,4)},Ir("AlphaImage",di),Ir("RGBAImage",hi);var vi={paint:new ga({"heatmap-radius":new ha(Oe.paint_heatmap["heatmap-radius"]),"heatmap-weight":new ha(Oe.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new da(Oe.paint_heatmap["heatmap-intensity"]),"heatmap-color":new ya(Oe.paint_heatmap["heatmap-color"]),"heatmap-opacity":new da(Oe.paint_heatmap["heatmap-opacity"])})};function mi(e,t){for(var n=new Uint8Array(1024),r={},a=0,o=0;a<256;a++,o+=4){r[t]=a/255;var i=e.evaluate(r);n[o+0]=Math.floor(255*i.r/i.a),n[o+1]=Math.floor(255*i.g/i.a),n[o+2]=Math.floor(255*i.b/i.a),n[o+3]=Math.floor(255*i.a)}return new hi({width:256,height:1},n)}var yi=function(e){function t(t){e.call(this,t,vi),this._updateColorRamp()}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.createBucket=function(e){return new ui(e)},t.prototype._handleSpecialPaintPropertyUpdate=function(e){"heatmap-color"===e&&this._updateColorRamp()},t.prototype._updateColorRamp=function(){this.colorRamp=mi(this._transitionablePaint._values["heatmap-color"].value.expression,"heatmapDensity"),this.colorRampTexture=null},t.prototype.resize=function(){this.heatmapFbo&&(this.heatmapFbo.destroy(),this.heatmapFbo=null)},t.prototype.queryRadius=function(){return 0},t.prototype.queryIntersectsFeature=function(){return!1},t.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("heatmap-opacity")&&"none"!==this.visibility},t}(ba),gi={paint:new ga({"hillshade-illumination-direction":new da(Oe.paint_hillshade["hillshade-illumination-direction"]),"hillshade-illumination-anchor":new da(Oe.paint_hillshade["hillshade-illumination-anchor"]),"hillshade-exaggeration":new da(Oe.paint_hillshade["hillshade-exaggeration"]),"hillshade-shadow-color":new da(Oe.paint_hillshade["hillshade-shadow-color"]),"hillshade-highlight-color":new da(Oe.paint_hillshade["hillshade-highlight-color"]),"hillshade-accent-color":new da(Oe.paint_hillshade["hillshade-accent-color"])})},bi=function(e){function t(t){e.call(this,t,gi)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.hasOffscreenPass=function(){return 0!==this.paint.get("hillshade-exaggeration")&&"none"!==this.visibility},t}(ba),xi=ka([{name:"a_pos",components:2,type:"Int16"}],4).members,_i=ki,wi=ki;function ki(e,t,n){n=n||2;var r,a,o,i,l,s,u,c=t&&t.length,f=c?t[0]*n:e.length,p=Ti(e,0,f,n,!0),d=[];if(!p||p.next===p.prev)return d;if(c&&(p=function(e,t,n,r){var a,o,i,l=[];for(a=0,o=t.length;a<o;a++)(i=Ti(e,t[a]*r,a<o-1?t[a+1]*r:e.length,r,!1))===i.next&&(i.steiner=!0),l.push(Ii(i));for(l.sort(Pi),a=0;a<l.length;a++)Li(l[a],n),n=Ei(n,n.next);return n}(e,t,p,n)),e.length>80*n){r=o=e[0],a=i=e[1];for(var h=n;h<f;h+=n)(l=e[h])<r&&(r=l),(s=e[h+1])<a&&(a=s),l>o&&(o=l),s>i&&(i=s);u=0!==(u=Math.max(o-r,i-a))?1/u:0}return Oi(p,d,n,r,a,u),d}function Ti(e,t,n,r,a){var o,i;if(a===Yi(e,t,n,r)>0)for(o=t;o<n;o+=r)i=qi(o,e[o],e[o+1],i);else for(o=n-r;o>=t;o-=r)i=qi(o,e[o],e[o+1],i);return i&&Fi(i,i.next)&&($i(i),i=i.next),i}function Ei(e,t){if(!e)return e;t||(t=e);var n,r=e;do{if(n=!1,r.steiner||!Fi(r,r.next)&&0!==Ni(r.prev,r,r.next))r=r.next;else{if($i(r),(r=t=r.prev)===r.next)break;n=!0}}while(n||r!==t);return t}function Oi(e,t,n,r,a,o,i){if(e){!i&&o&&function(e,t,n,r){var a=e;do{null===a.z&&(a.z=ji(a.x,a.y,t,n,r)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next}while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,function(e){var t,n,r,a,o,i,l,s,u=1;do{for(n=e,e=null,o=null,i=0;n;){for(i++,r=n,l=0,t=0;t<u&&(l++,r=r.nextZ);t++);for(s=u;l>0||s>0&&r;)0!==l&&(0===s||!r||n.z<=r.z)?(a=n,n=n.nextZ,l--):(a=r,r=r.nextZ,s--),o?o.nextZ=a:e=a,a.prevZ=o,o=a;n=r}o.nextZ=null,u*=2}while(i>1)}(a)}(e,r,a,o);for(var l,s,u=e;e.prev!==e.next;)if(l=e.prev,s=e.next,o?Si(e,r,a,o):Mi(e))t.push(l.i/n),t.push(e.i/n),t.push(s.i/n),$i(e),e=s.next,u=s.next;else if((e=s)===u){i?1===i?Oi(e=Ci(Ei(e),t,n),t,n,r,a,o,2):2===i&&Ai(e,t,n,r,a,o):Oi(Ei(e),t,n,r,a,o,1);break}}}function Mi(e){var t=e.prev,n=e,r=e.next;if(Ni(t,n,r)>=0)return!1;for(var a=e.next.next;a!==e.prev;){if(Ri(t.x,t.y,n.x,n.y,r.x,r.y,a.x,a.y)&&Ni(a.prev,a,a.next)>=0)return!1;a=a.next}return!0}function Si(e,t,n,r){var a=e.prev,o=e,i=e.next;if(Ni(a,o,i)>=0)return!1;for(var l=a.x>o.x?a.x>i.x?a.x:i.x:o.x>i.x?o.x:i.x,s=a.y>o.y?a.y>i.y?a.y:i.y:o.y>i.y?o.y:i.y,u=ji(a.x<o.x?a.x<i.x?a.x:i.x:o.x<i.x?o.x:i.x,a.y<o.y?a.y<i.y?a.y:i.y:o.y<i.y?o.y:i.y,t,n,r),c=ji(l,s,t,n,r),f=e.prevZ,p=e.nextZ;f&&f.z>=u&&p&&p.z<=c;){if(f!==e.prev&&f!==e.next&&Ri(a.x,a.y,o.x,o.y,i.x,i.y,f.x,f.y)&&Ni(f.prev,f,f.next)>=0)return!1;if(f=f.prevZ,p!==e.prev&&p!==e.next&&Ri(a.x,a.y,o.x,o.y,i.x,i.y,p.x,p.y)&&Ni(p.prev,p,p.next)>=0)return!1;p=p.nextZ}for(;f&&f.z>=u;){if(f!==e.prev&&f!==e.next&&Ri(a.x,a.y,o.x,o.y,i.x,i.y,f.x,f.y)&&Ni(f.prev,f,f.next)>=0)return!1;f=f.prevZ}for(;p&&p.z<=c;){if(p!==e.prev&&p!==e.next&&Ri(a.x,a.y,o.x,o.y,i.x,i.y,p.x,p.y)&&Ni(p.prev,p,p.next)>=0)return!1;p=p.nextZ}return!0}function Ci(e,t,n){var r=e;do{var a=r.prev,o=r.next.next;!Fi(a,o)&&Bi(a,r,r.next,o)&&Ui(a,o)&&Ui(o,a)&&(t.push(a.i/n),t.push(r.i/n),t.push(o.i/n),$i(r),$i(r.next),r=e=o),r=r.next}while(r!==e);return Ei(r)}function Ai(e,t,n,r,a,o){var i=e;do{for(var l=i.next.next;l!==i.prev;){if(i.i!==l.i&&zi(i,l)){var s=Wi(i,l);return i=Ei(i,i.next),s=Ei(s,s.next),Oi(i,t,n,r,a,o),void Oi(s,t,n,r,a,o)}l=l.next}i=i.next}while(i!==e)}function Pi(e,t){return e.x-t.x}function Li(e,t){if(t=function(e,t){var n,r=t,a=e.x,o=e.y,i=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var l=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(l<=a&&l>i){if(i=l,l===a){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==t);if(!n)return null;if(a===i)return n;var s,u=n,c=n.x,f=n.y,p=1/0;r=n;do{a>=r.x&&r.x>=c&&a!==r.x&&Ri(o<f?a:i,o,c,f,o<f?i:a,o,r.x,r.y)&&(s=Math.abs(o-r.y)/(a-r.x),Ui(r,e)&&(s<p||s===p&&(r.x>n.x||r.x===n.x&&Di(n,r)))&&(n=r,p=s)),r=r.next}while(r!==u);return n}(e,t)){var n=Wi(t,e);Ei(t,t.next),Ei(n,n.next)}}function Di(e,t){return Ni(e.prev,e,t.prev)<0&&Ni(t.next,e,e.next)<0}function ji(e,t,n,r,a){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*a)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*a)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function Ii(e){var t=e,n=e;do{(t.x<n.x||t.x===n.x&&t.y<n.y)&&(n=t),t=t.next}while(t!==e);return n}function Ri(e,t,n,r,a,o,i,l){return(a-i)*(t-l)-(e-i)*(o-l)>=0&&(e-i)*(r-l)-(n-i)*(t-l)>=0&&(n-i)*(o-l)-(a-i)*(r-l)>=0}function zi(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!function(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Bi(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}(e,t)&&(Ui(e,t)&&Ui(t,e)&&function(e,t){var n=e,r=!1,a=(e.x+t.x)/2,o=(e.y+t.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&a<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==e);return r}(e,t)&&(Ni(e.prev,e,t.prev)||Ni(e,t.prev,t))||Fi(e,t)&&Ni(e.prev,e,e.next)>0&&Ni(t.prev,t,t.next)>0)}function Ni(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function Fi(e,t){return e.x===t.x&&e.y===t.y}function Bi(e,t,n,r){var a=Hi(Ni(e,t,n)),o=Hi(Ni(e,t,r)),i=Hi(Ni(n,r,e)),l=Hi(Ni(n,r,t));return a!==o&&i!==l||!(0!==a||!Vi(e,n,t))||!(0!==o||!Vi(e,r,t))||!(0!==i||!Vi(n,e,r))||!(0!==l||!Vi(n,t,r))}function Vi(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function Hi(e){return e>0?1:e<0?-1:0}function Ui(e,t){return Ni(e.prev,e,e.next)<0?Ni(e,t,e.next)>=0&&Ni(e,e.prev,t)>=0:Ni(e,t,e.prev)<0||Ni(e,e.next,t)<0}function Wi(e,t){var n=new Gi(e.i,e.x,e.y),r=new Gi(t.i,t.x,t.y),a=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=a,a.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function qi(e,t,n,r){var a=new Gi(e,t,n);return r?(a.next=r.next,a.prev=r,r.next.prev=a,r.next=a):(a.prev=a,a.next=a),a}function $i(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function Gi(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Yi(e,t,n,r){for(var a=0,o=t,i=n-r;o<n;o+=r)a+=(e[i]-e[o])*(e[o+1]+e[i+1]),i=o;return a}function Ki(e,t,n,r,a){!function e(t,n,r,a,o){for(;a>r;){if(a-r>600){var i=a-r+1,l=n-r+1,s=Math.log(i),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(i-u)/i)*(l-i/2<0?-1:1);e(t,n,Math.max(r,Math.floor(n-l*u/i+c)),Math.min(a,Math.floor(n+(i-l)*u/i+c)),o)}var f=t[n],p=r,d=a;for(Xi(t,r,n),o(t[a],f)>0&&Xi(t,r,a);p<d;){for(Xi(t,p,d),p++,d--;o(t[p],f)<0;)p++;for(;o(t[d],f)>0;)d--}0===o(t[r],f)?Xi(t,r,d):Xi(t,++d,a),d<=n&&(r=d+1),n<=d&&(a=d-1)}}(e,t,n||0,r||e.length-1,a||Zi)}function Xi(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Zi(e,t){return e<t?-1:e>t?1:0}function Ji(e,t){var n=e.length;if(n<=1)return[e];for(var r,a,o=[],i=0;i<n;i++){var l=k(e[i]);0!==l&&(e[i].area=Math.abs(l),void 0===a&&(a=l<0),a===l<0?(r&&o.push(r),r=[e[i]]):r.push(e[i]))}if(r&&o.push(r),t>1)for(var s=0;s<o.length;s++)o[s].length<=t||(Ki(o[s],t,1,o[s].length-1,Qi),o[s]=o[s].slice(0,t));return o}function Qi(e,t){return t.area-e.area}function el(e,t,n){for(var r=n.patternDependencies,a=!1,o=0,i=t;o<i.length;o+=1){var l=i[o].paint.get(e+"-pattern");l.isConstant()||(a=!0);var s=l.constantOr(null);s&&(a=!0,r[s.to]=!0,r[s.from]=!0)}return a}function tl(e,t,n,r,a){for(var o=a.patternDependencies,i=0,l=t;i<l.length;i+=1){var s=l[i],u=s.paint.get(e+"-pattern").value;if("constant"!==u.kind){var c=u.evaluate({zoom:r-1},n,{},a.availableImages),f=u.evaluate({zoom:r},n,{},a.availableImages),p=u.evaluate({zoom:r+1},n,{},a.availableImages);f=f&&f.name?f.name:f,p=p&&p.name?p.name:p,o[c=c&&c.name?c.name:c]=!0,o[f]=!0,o[p]=!0,n.patterns[s.id]={min:c,mid:f,max:p}}}return n}ki.deviation=function(e,t,n,r){var a=t&&t.length,o=Math.abs(Yi(e,0,a?t[0]*n:e.length,n));if(a)for(var i=0,l=t.length;i<l;i++)o-=Math.abs(Yi(e,t[i]*n,i<l-1?t[i+1]*n:e.length,n));var s=0;for(i=0;i<r.length;i+=3){var u=r[i]*n,c=r[i+1]*n,f=r[i+2]*n;s+=Math.abs((e[u]-e[f])*(e[c+1]-e[u+1])-(e[u]-e[c])*(e[f+1]-e[u+1]))}return 0===o&&0===s?0:Math.abs((s-o)/o)},ki.flatten=function(e){for(var t=e[0][0].length,n={vertices:[],holes:[],dimensions:t},r=0,a=0;a<e.length;a++){for(var o=0;o<e[a].length;o++)for(var i=0;i<t;i++)n.vertices.push(e[a][o][i]);a>0&&n.holes.push(r+=e[a-1].length)}return n},_i.default=wi;var nl=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ea,this.indexArray=new za,this.indexArray2=new Ua,this.programConfigurations=new Lo(xi,e.layers,e.zoom),this.segments=new ao,this.segments2=new ao,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};nl.prototype.populate=function(e,t,n){this.hasPattern=el("fill",this.layers,t);for(var r=this.layers[0].layout.get("fill-sort-key"),a=[],o=0,i=e;o<i.length;o+=1){var l=i[o],s=l.feature,u=l.id,c=l.index,f=l.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:s.type,id:u,properties:s.properties,geometry:p?Ro(s):[]};if(this.layers[0]._featureFilter.filter(new aa(this.zoom),d,n)){p||(d.geometry=Ro(s));var h=r?r.evaluate(d,{},n,t.availableImages):void 0;a.push({id:u,properties:s.properties,type:s.type,sourceLayerIndex:f,index:c,geometry:d.geometry,patterns:{},sortKey:h})}}r&&a.sort((function(e,t){return e.sortKey-t.sortKey}));for(var v=0,m=a;v<m.length;v+=1){var y=m[v],g=y.geometry,b=y.index,x=y.sourceLayerIndex;if(this.hasPattern){var _=tl("fill",this.layers,y,this.zoom,t);this.patternFeatures.push(_)}else this.addFeature(y,g,b,n,{});t.featureIndex.insert(e[b].feature,g,b,x,this.index)}},nl.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},nl.prototype.addFeatures=function(e,t,n){for(var r=0,a=this.patternFeatures;r<a.length;r+=1){var o=a[r];this.addFeature(o,o.geometry,o.index,t,n)}},nl.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},nl.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},nl.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,xi),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0},nl.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},nl.prototype.addFeature=function(e,t,n,r,a){for(var o=0,i=Ji(t,500);o<i.length;o+=1){for(var l=i[o],s=0,u=0,c=l;u<c.length;u+=1)s+=c[u].length;for(var f=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray),p=f.vertexLength,d=[],h=[],v=0,m=l;v<m.length;v+=1){var y=m[v];if(0!==y.length){y!==l[0]&&h.push(d.length/2);var g=this.segments2.prepareSegment(y.length,this.layoutVertexArray,this.indexArray2),b=g.vertexLength;this.layoutVertexArray.emplaceBack(y[0].x,y[0].y),this.indexArray2.emplaceBack(b+y.length-1,b),d.push(y[0].x),d.push(y[0].y);for(var x=1;x<y.length;x++)this.layoutVertexArray.emplaceBack(y[x].x,y[x].y),this.indexArray2.emplaceBack(b+x-1,b+x),d.push(y[x].x),d.push(y[x].y);g.vertexLength+=y.length,g.primitiveLength+=y.length}}for(var _=_i(d,h),w=0;w<_.length;w+=3)this.indexArray.emplaceBack(p+_[w],p+_[w+1],p+_[w+2]);f.vertexLength+=s,f.primitiveLength+=_.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,a,r)},Ir("FillBucket",nl,{omit:["layers","patternFeatures"]});var rl=new ga({"fill-sort-key":new ha(Oe.layout_fill["fill-sort-key"])}),al={paint:new ga({"fill-antialias":new da(Oe.paint_fill["fill-antialias"]),"fill-opacity":new ha(Oe.paint_fill["fill-opacity"]),"fill-color":new ha(Oe.paint_fill["fill-color"]),"fill-outline-color":new ha(Oe.paint_fill["fill-outline-color"]),"fill-translate":new da(Oe.paint_fill["fill-translate"]),"fill-translate-anchor":new da(Oe.paint_fill["fill-translate-anchor"]),"fill-pattern":new va(Oe.paint_fill["fill-pattern"])}),layout:rl},ol=function(e){function t(t){e.call(this,t,al)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.recalculate=function(t,n){e.prototype.recalculate.call(this,t,n);var r=this.paint._values["fill-outline-color"];"constant"===r.value.kind&&void 0===r.value.value&&(this.paint._values["fill-outline-color"]=this.paint._values["fill-color"])},t.prototype.createBucket=function(e){return new nl(e)},t.prototype.queryRadius=function(){return Zo(this.paint.get("fill-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,a,o,i){return Vo(Jo(e,this.paint.get("fill-translate"),this.paint.get("fill-translate-anchor"),o.angle,i),r)},t.prototype.isTileClipped=function(){return!0},t}(ba),il=ka([{name:"a_pos",components:2,type:"Int16"},{name:"a_normal_ed",components:4,type:"Int16"}],4).members,ll=sl;function sl(e,t,n,r,a){this.properties={},this.extent=n,this.type=0,this._pbf=e,this._geometry=-1,this._keys=r,this._values=a,e.readFields(ul,this,t)}function ul(e,t,n){1==e?t.id=n.readVarint():2==e?function(e,t){for(var n=e.readVarint()+e.pos;e.pos<n;){var r=t._keys[e.readVarint()],a=t._values[e.readVarint()];t.properties[r]=a}}(n,t):3==e?t.type=n.readVarint():4==e&&(t._geometry=n.pos)}function cl(e){for(var t,n,r=0,a=0,o=e.length,i=o-1;a<o;i=a++)r+=((n=e[i]).x-(t=e[a]).x)*(t.y+n.y);return r}sl.types=["Unknown","Point","LineString","Polygon"],sl.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,n=e.readVarint()+e.pos,r=1,o=0,i=0,l=0,s=[];e.pos<n;){if(o<=0){var u=e.readVarint();r=7&u,o=u>>3}if(o--,1===r||2===r)i+=e.readSVarint(),l+=e.readSVarint(),1===r&&(t&&s.push(t),t=[]),t.push(new a(i,l));else{if(7!==r)throw new Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&s.push(t),s},sl.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,n=1,r=0,a=0,o=0,i=1/0,l=-1/0,s=1/0,u=-1/0;e.pos<t;){if(r<=0){var c=e.readVarint();n=7&c,r=c>>3}if(r--,1===n||2===n)(a+=e.readSVarint())<i&&(i=a),a>l&&(l=a),(o+=e.readSVarint())<s&&(s=o),o>u&&(u=o);else if(7!==n)throw new Error("unknown command "+n)}return[i,s,l,u]},sl.prototype.toGeoJSON=function(e,t,n){var r,a,o=this.extent*Math.pow(2,n),i=this.extent*e,l=this.extent*t,s=this.loadGeometry(),u=sl.types[this.type];function c(e){for(var t=0;t<e.length;t++){var n=e[t];e[t]=[360*(n.x+i)/o-180,360/Math.PI*Math.atan(Math.exp((180-360*(n.y+l)/o)*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(r=0;r<s.length;r++)f[r]=s[r][0];c(s=f);break;case 2:for(r=0;r<s.length;r++)c(s[r]);break;case 3:for(s=function(e){var t=e.length;if(t<=1)return[e];for(var n,r,a=[],o=0;o<t;o++){var i=cl(e[o]);0!==i&&(void 0===r&&(r=i<0),r===i<0?(n&&a.push(n),n=[e[o]]):n.push(e[o]))}return n&&a.push(n),a}(s),r=0;r<s.length;r++)for(a=0;a<s[r].length;a++)c(s[r][a])}1===s.length?s=s[0]:u="Multi"+u;var p={type:"Feature",geometry:{type:u,coordinates:s},properties:this.properties};return"id"in this&&(p.id=this.id),p};var fl=pl;function pl(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(dl,this,t),this.length=this._features.length}function dl(e,t,n){15===e?t.version=n.readVarint():1===e?t.name=n.readString():5===e?t.extent=n.readVarint():2===e?t._features.push(n.pos):3===e?t._keys.push(n.readString()):4===e&&t._values.push(function(e){for(var t=null,n=e.readVarint()+e.pos;e.pos<n;){var r=e.readVarint()>>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(n))}function hl(e,t,n){if(3===e){var r=new fl(n,n.readVarint()+n.pos);r.length&&(t[r.name]=r)}}pl.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new ll(this._pbf,t,this.extent,this._keys,this._values)};var vl={VectorTile:function(e,t){this.layers=e.readFields(hl,{},t)},VectorTileFeature:ll,VectorTileLayer:fl},ml=vl.VectorTileFeature.types,yl=Math.pow(2,13);function gl(e,t,n,r,a,o,i,l){e.emplaceBack(t,n,2*Math.floor(r*yl)+i,a*yl*2,o*yl*2,Math.round(l))}var bl=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new Ma,this.indexArray=new za,this.programConfigurations=new Lo(il,e.layers,e.zoom),this.segments=new ao,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};function xl(e,t){return e.x===t.x&&(e.x<0||e.x>8192)||e.y===t.y&&(e.y<0||e.y>8192)}bl.prototype.populate=function(e,t,n){this.features=[],this.hasPattern=el("fill-extrusion",this.layers,t);for(var r=0,a=e;r<a.length;r+=1){var o=a[r],i=o.feature,l=o.id,s=o.index,u=o.sourceLayerIndex,c=this.layers[0]._featureFilter.needGeometry,f={type:i.type,id:l,properties:i.properties,geometry:c?Ro(i):[]};if(this.layers[0]._featureFilter.filter(new aa(this.zoom),f,n)){var p={id:l,sourceLayerIndex:u,index:s,geometry:c?f.geometry:Ro(i),properties:i.properties,type:i.type,patterns:{}};void 0!==i.id&&(p.id=i.id),this.hasPattern?this.features.push(tl("fill-extrusion",this.layers,p,this.zoom,t)):this.addFeature(p,p.geometry,s,n,{}),t.featureIndex.insert(i,p.geometry,s,u,this.index,!0)}}},bl.prototype.addFeatures=function(e,t,n){for(var r=0,a=this.features;r<a.length;r+=1){var o=a[r];this.addFeature(o,o.geometry,o.index,t,n)}},bl.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},bl.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},bl.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},bl.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,il),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},bl.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},bl.prototype.addFeature=function(e,t,n,r,a){for(var o=0,i=Ji(t,500);o<i.length;o+=1){for(var l=i[o],s=0,u=0,c=l;u<c.length;u+=1)s+=c[u].length;for(var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),p=0,d=l;p<d.length;p+=1){var h=d[p];if(0!==h.length&&!((L=h).every((function(e){return e.x<0}))||L.every((function(e){return e.x>8192}))||L.every((function(e){return e.y<0}))||L.every((function(e){return e.y>8192}))))for(var v=0,m=0;m<h.length;m++){var y=h[m];if(m>=1){var g=h[m-1];if(!xl(y,g)){f.vertexLength+4>ao.MAX_VERTEX_ARRAY_LENGTH&&(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var b=y.sub(g)._perp()._unit(),x=g.dist(y);v+x>32768&&(v=0),gl(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,0,v),gl(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,1,v),gl(this.layoutVertexArray,g.x,g.y,b.x,b.y,0,0,v+=x),gl(this.layoutVertexArray,g.x,g.y,b.x,b.y,0,1,v);var _=f.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+s>ao.MAX_VERTEX_ARRAY_LENGTH&&(f=this.segments.prepareSegment(s,this.layoutVertexArray,this.indexArray)),"Polygon"===ml[e.type]){for(var w=[],k=[],T=f.vertexLength,E=0,O=l;E<O.length;E+=1){var M=O[E];if(0!==M.length){M!==l[0]&&k.push(w.length/2);for(var S=0;S<M.length;S++){var C=M[S];gl(this.layoutVertexArray,C.x,C.y,0,0,1,1,0),w.push(C.x),w.push(C.y)}}}for(var A=_i(w,k),P=0;P<A.length;P+=3)this.indexArray.emplaceBack(T+A[P],T+A[P+2],T+A[P+1]);f.primitiveLength+=A.length/3,f.vertexLength+=s}}var L;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,a,r)},Ir("FillExtrusionBucket",bl,{omit:["layers","features"]});var _l={paint:new ga({"fill-extrusion-opacity":new da(Oe["paint_fill-extrusion"]["fill-extrusion-opacity"]),"fill-extrusion-color":new ha(Oe["paint_fill-extrusion"]["fill-extrusion-color"]),"fill-extrusion-translate":new da(Oe["paint_fill-extrusion"]["fill-extrusion-translate"]),"fill-extrusion-translate-anchor":new da(Oe["paint_fill-extrusion"]["fill-extrusion-translate-anchor"]),"fill-extrusion-pattern":new va(Oe["paint_fill-extrusion"]["fill-extrusion-pattern"]),"fill-extrusion-height":new ha(Oe["paint_fill-extrusion"]["fill-extrusion-height"]),"fill-extrusion-base":new ha(Oe["paint_fill-extrusion"]["fill-extrusion-base"]),"fill-extrusion-vertical-gradient":new da(Oe["paint_fill-extrusion"]["fill-extrusion-vertical-gradient"])})},wl=function(e){function t(t){e.call(this,t,_l)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.createBucket=function(e){return new bl(e)},t.prototype.queryRadius=function(){return Zo(this.paint.get("fill-extrusion-translate"))},t.prototype.is3D=function(){return!0},t.prototype.queryIntersectsFeature=function(e,t,n,r,o,i,l,s){var u=Jo(e,this.paint.get("fill-extrusion-translate"),this.paint.get("fill-extrusion-translate-anchor"),i.angle,l),c=this.paint.get("fill-extrusion-height").evaluate(t,n),f=this.paint.get("fill-extrusion-base").evaluate(t,n),p=function(e,t,n,r){for(var o=[],i=0,l=e;i<l.length;i+=1){var s=l[i],u=[s.x,s.y,0,1];ii(u,u,t),o.push(new a(u[0]/u[3],u[1]/u[3]))}return o}(u,s),d=function(e,t,n,r){for(var o=[],i=[],l=r[8]*t,s=r[9]*t,u=r[10]*t,c=r[11]*t,f=r[8]*n,p=r[9]*n,d=r[10]*n,h=r[11]*n,v=0,m=e;v<m.length;v+=1){for(var y=[],g=[],b=0,x=m[v];b<x.length;b+=1){var _=x[b],w=_.x,k=_.y,T=r[0]*w+r[4]*k+r[12],E=r[1]*w+r[5]*k+r[13],O=r[2]*w+r[6]*k+r[14],M=r[3]*w+r[7]*k+r[15],S=O+u,C=M+c,A=T+f,P=E+p,L=O+d,D=M+h,j=new a((T+l)/C,(E+s)/C);j.z=S/C,y.push(j);var I=new a(A/D,P/D);I.z=L/D,g.push(I)}o.push(y),i.push(g)}return[o,i]}(r,f,c,s);return function(e,t,n){var r=1/0;Vo(n,t)&&(r=Tl(n,t[0]));for(var a=0;a<t.length;a++)for(var o=t[a],i=e[a],l=0;l<o.length-1;l++){var s=o[l],u=[s,o[l+1],i[l+1],i[l],s];Fo(n,u)&&(r=Math.min(r,Tl(n,u)))}return r!==1/0&&r}(d[0],d[1],p)},t}(ba);function kl(e,t){return e.x*t.x+e.y*t.y}function Tl(e,t){if(1===e.length){for(var n,r=0,a=t[r++];!n||a.equals(n);)if(!(n=t[r++]))return 1/0;for(;r<t.length;r++){var o=t[r],i=e[0],l=n.sub(a),s=o.sub(a),u=i.sub(a),c=kl(l,l),f=kl(l,s),p=kl(s,s),d=kl(u,l),h=kl(u,s),v=c*p-f*f,m=(p*d-f*h)/v,y=(c*h-f*d)/v,g=a.z*(1-m-y)+n.z*m+o.z*y;if(isFinite(g))return g}return 1/0}for(var b=1/0,x=0,_=t;x<_.length;x+=1)b=Math.min(b,_[x].z);return b}var El=ka([{name:"a_pos_normal",components:2,type:"Int16"},{name:"a_data",components:4,type:"Uint8"}],4).members,Ol=vl.VectorTileFeature.types,Ml=Math.cos(Math.PI/180*37.5),Sl=Math.pow(2,14)/.5,Cl=function(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Sa,this.indexArray=new za,this.programConfigurations=new Lo(El,e.layers,e.zoom),this.segments=new ao,this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id}))};Cl.prototype.populate=function(e,t,n){this.hasPattern=el("line",this.layers,t);for(var r=this.layers[0].layout.get("line-sort-key"),a=[],o=0,i=e;o<i.length;o+=1){var l=i[o],s=l.feature,u=l.id,c=l.index,f=l.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:s.type,id:u,properties:s.properties,geometry:p?Ro(s):[]};if(this.layers[0]._featureFilter.filter(new aa(this.zoom),d,n)){p||(d.geometry=Ro(s));var h=r?r.evaluate(d,{},n):void 0;a.push({id:u,properties:s.properties,type:s.type,sourceLayerIndex:f,index:c,geometry:d.geometry,patterns:{},sortKey:h})}}r&&a.sort((function(e,t){return e.sortKey-t.sortKey}));for(var v=0,m=a;v<m.length;v+=1){var y=m[v],g=y.geometry,b=y.index,x=y.sourceLayerIndex;if(this.hasPattern){var _=tl("line",this.layers,y,this.zoom,t);this.patternFeatures.push(_)}else this.addFeature(y,g,b,n,{});t.featureIndex.insert(e[b].feature,g,b,x,this.index)}},Cl.prototype.update=function(e,t,n){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,n)},Cl.prototype.addFeatures=function(e,t,n){for(var r=0,a=this.patternFeatures;r<a.length;r+=1){var o=a[r];this.addFeature(o,o.geometry,o.index,t,n)}},Cl.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Cl.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Cl.prototype.upload=function(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,El),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0},Cl.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Cl.prototype.addFeature=function(e,t,n,r,a){for(var o=this.layers[0].layout,i=o.get("line-join").evaluate(e,{}),l=o.get("line-cap"),s=o.get("line-miter-limit"),u=o.get("line-round-limit"),c=0,f=t;c<f.length;c+=1)this.addLine(f[c],e,i,l,s,u);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,n,a,r)},Cl.prototype.addLine=function(e,t,n,r,a,o){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,t.properties&&t.properties.hasOwnProperty("mapbox_clip_start")&&t.properties.hasOwnProperty("mapbox_clip_end")){this.clipStart=+t.properties.mapbox_clip_start,this.clipEnd=+t.properties.mapbox_clip_end;for(var i=0;i<e.length-1;i++)this.totalDistance+=e[i].dist(e[i+1]);this.updateScaledDistance()}for(var l="Polygon"===Ol[t.type],s=e.length;s>=2&&e[s-1].equals(e[s-2]);)s--;for(var u=0;u<s-1&&e[u].equals(e[u+1]);)u++;if(!(s<(l?3:2))){"bevel"===n&&(a=1.05);var c,f=this.overscaling<=16?122880/(512*this.overscaling):0,p=this.segments.prepareSegment(10*s,this.layoutVertexArray,this.indexArray),d=void 0,h=void 0,v=void 0,m=void 0;this.e1=this.e2=-1,l&&(m=e[u].sub(c=e[s-2])._unit()._perp());for(var y=u;y<s;y++)if(!(h=y===s-1?l?e[u+1]:void 0:e[y+1])||!e[y].equals(h)){m&&(v=m),c&&(d=c),c=e[y],m=h?h.sub(c)._unit()._perp():v;var g=(v=v||m).add(m);0===g.x&&0===g.y||g._unit();var b=v.x*m.x+v.y*m.y,x=g.x*m.x+g.y*m.y,_=0!==x?1/x:1/0,w=2*Math.sqrt(2-2*x),k=x<Ml&&d&&h,T=v.x*m.y-v.y*m.x>0;if(k&&y>u){var E=c.dist(d);if(E>2*f){var O=c.sub(c.sub(d)._mult(f/E)._round());this.updateDistance(d,O),this.addCurrentVertex(O,v,0,0,p),d=O}}var M=d&&h,S=M?n:l?"butt":r;if(M&&"round"===S&&(_<o?S="miter":_<=2&&(S="fakeround")),"miter"===S&&_>a&&(S="bevel"),"bevel"===S&&(_>2&&(S="flipbevel"),_<a&&(S="miter")),d&&this.updateDistance(d,c),"miter"===S)g._mult(_),this.addCurrentVertex(c,g,0,0,p);else if("flipbevel"===S){if(_>100)g=m.mult(-1);else{var C=_*v.add(m).mag()/v.sub(m).mag();g._perp()._mult(C*(T?-1:1))}this.addCurrentVertex(c,g,0,0,p),this.addCurrentVertex(c,g.mult(-1),0,0,p)}else if("bevel"===S||"fakeround"===S){var A=-Math.sqrt(_*_-1),P=T?A:0,L=T?0:A;if(d&&this.addCurrentVertex(c,v,P,L,p),"fakeround"===S)for(var D=Math.round(180*w/Math.PI/20),j=1;j<D;j++){var I=j/D;if(.5!==I){var R=I-.5;I+=I*R*(I-1)*((1.0904+b*(b*(3.55645-1.43519*b)-3.2452))*R*R+(.848013+b*(.215638*b-1.06021)))}var z=m.sub(v)._mult(I)._add(v)._unit()._mult(T?-1:1);this.addHalfVertex(c,z.x,z.y,!1,T,0,p)}h&&this.addCurrentVertex(c,m,-P,-L,p)}else if("butt"===S)this.addCurrentVertex(c,g,0,0,p);else if("square"===S){var N=d?1:-1;this.addCurrentVertex(c,g,N,N,p)}else"round"===S&&(d&&(this.addCurrentVertex(c,v,0,0,p),this.addCurrentVertex(c,v,1,1,p,!0)),h&&(this.addCurrentVertex(c,m,-1,-1,p,!0),this.addCurrentVertex(c,m,0,0,p)));if(k&&y<s-1){var F=c.dist(h);if(F>2*f){var B=c.add(h.sub(c)._mult(f/F)._round());this.updateDistance(c,B),this.addCurrentVertex(B,m,0,0,p),c=B}}}}},Cl.prototype.addCurrentVertex=function(e,t,n,r,a,o){void 0===o&&(o=!1);var i=t.y*r-t.x,l=-t.y-t.x*r;this.addHalfVertex(e,t.x+t.y*n,t.y-t.x*n,o,!1,n,a),this.addHalfVertex(e,i,l,o,!0,-r,a),this.distance>Sl/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(e,t,n,r,a,o))},Cl.prototype.addHalfVertex=function(e,t,n,r,a,o,i){var l=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((e.x<<1)+(r?1:0),(e.y<<1)+(a?1:0),Math.round(63*t)+128,Math.round(63*n)+128,1+(0===o?0:o<0?-1:1)|(63&l)<<2,l>>6);var s=i.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,s),i.primitiveLength++),a?this.e2=s:this.e1=s},Cl.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance>0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Sl-1):this.distance},Cl.prototype.updateDistance=function(e,t){this.distance+=e.dist(t),this.updateScaledDistance()},Ir("LineBucket",Cl,{omit:["layers","patternFeatures"]});var Al=new ga({"line-cap":new da(Oe.layout_line["line-cap"]),"line-join":new ha(Oe.layout_line["line-join"]),"line-miter-limit":new da(Oe.layout_line["line-miter-limit"]),"line-round-limit":new da(Oe.layout_line["line-round-limit"]),"line-sort-key":new ha(Oe.layout_line["line-sort-key"])}),Pl={paint:new ga({"line-opacity":new ha(Oe.paint_line["line-opacity"]),"line-color":new ha(Oe.paint_line["line-color"]),"line-translate":new da(Oe.paint_line["line-translate"]),"line-translate-anchor":new da(Oe.paint_line["line-translate-anchor"]),"line-width":new ha(Oe.paint_line["line-width"]),"line-gap-width":new ha(Oe.paint_line["line-gap-width"]),"line-offset":new ha(Oe.paint_line["line-offset"]),"line-blur":new ha(Oe.paint_line["line-blur"]),"line-dasharray":new ma(Oe.paint_line["line-dasharray"]),"line-pattern":new va(Oe.paint_line["line-pattern"]),"line-gradient":new ya(Oe.paint_line["line-gradient"])}),layout:Al},Ll=new(function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.possiblyEvaluate=function(t,n){return n=new aa(Math.floor(n.zoom),{now:n.now,fadeDuration:n.fadeDuration,zoomHistory:n.zoomHistory,transition:n.transition}),e.prototype.possiblyEvaluate.call(this,t,n)},t.prototype.evaluate=function(t,n,r,a){return n=c({},n,{zoom:Math.floor(n.zoom)}),e.prototype.evaluate.call(this,t,n,r,a)},t}(ha))(Pl.paint.properties["line-width"].specification);Ll.useIntegerZoom=!0;var Dl=function(e){function t(t){e.call(this,t,Pl)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._handleSpecialPaintPropertyUpdate=function(e){"line-gradient"===e&&this._updateGradient()},t.prototype._updateGradient=function(){this.gradient=mi(this._transitionablePaint._values["line-gradient"].value.expression,"lineProgress"),this.gradientTexture=null},t.prototype.recalculate=function(t,n){e.prototype.recalculate.call(this,t,n),this.paint._values["line-floorwidth"]=Ll.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,t)},t.prototype.createBucket=function(e){return new Cl(e)},t.prototype.queryRadius=function(e){var t=e,n=jl(Xo("line-width",this,t),Xo("line-gap-width",this,t)),r=Xo("line-offset",this,t);return n/2+Math.abs(r)+Zo(this.paint.get("line-translate"))},t.prototype.queryIntersectsFeature=function(e,t,n,r,o,i,l){var s=Jo(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),i.angle,l),u=l/2*jl(this.paint.get("line-width").evaluate(t,n),this.paint.get("line-gap-width").evaluate(t,n)),c=this.paint.get("line-offset").evaluate(t,n);return c&&(r=function(e,t){for(var n=[],r=new a(0,0),o=0;o<e.length;o++){for(var i=e[o],l=[],s=0;s<i.length;s++){var u=i[s],c=i[s+1],f=0===s?r:u.sub(i[s-1])._unit()._perp(),p=s===i.length-1?r:c.sub(u)._unit()._perp(),d=f._add(p)._unit();d._mult(1/(d.x*p.x+d.y*p.y)),l.push(d._mult(t)._add(u))}n.push(l)}return n}(r,c*l)),function(e,t,n){for(var r=0;r<t.length;r++){var a=t[r];if(e.length>=3)for(var o=0;o<a.length;o++)if(Yo(e,a[o]))return!0;if(Ho(e,a,n))return!0}return!1}(s,r,u)},t.prototype.isTileClipped=function(){return!0},t}(ba);function jl(e,t){return t>0?t+2*e:e}var Il=ka([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Rl=ka([{name:"a_projected_pos",components:3,type:"Float32"}],4),zl=(ka([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),ka([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Nl=(ka([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),ka([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Fl=ka([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Bl(e,t,n){return e.sections.forEach((function(e){e.text=function(e,t,n){var r=t.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),ra.applyArabicShaping&&(e=ra.applyArabicShaping(e)),e}(e.text,t,n)})),e}ka([{name:"triangle",components:3,type:"Uint16"}]),ka([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),ka([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),ka([{type:"Float32",name:"offsetX"}]),ka([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var Vl={"!":"︕","#":"",$:"","%":"","&":"","(":"︵",")":"︶","*":"","+":"",",":"︐","-":"︲",".":"・","/":"",":":"︓",";":"︔","<":"︿","=":"",">":"﹀","?":"︖","@":"","[":"﹇","\\":"","]":"﹈","^":"",_:"︳","`":"","{":"︷","|":"―","}":"︸","~":"","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","":"︲","—":"︱","":"﹃","":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","":"︹","":"︺","〖":"︗","〗":"︘","":"︕","":"︵","":"︶","":"︐","":"︲","":"・","":"︓","":"︔","":"︿","":"﹀","":"︖","":"﹇","":"﹈","_":"︳","":"︷","":"―","":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Hl=function(e,t,n,r,a){var o,i,l=8*a-r-1,s=(1<<l)-1,u=s>>1,c=-7,f=n?a-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-c)-1,d>>=-c,c+=l;c>0;o=256*o+e[t+f],f+=p,c-=8);for(i=o&(1<<-c)-1,o>>=-c,c+=r;c>0;i=256*i+e[t+f],f+=p,c-=8);if(0===o)o=1-u;else{if(o===s)return i?NaN:1/0*(d?-1:1);i+=Math.pow(2,r),o-=u}return(d?-1:1)*i*Math.pow(2,o-r)},Ul=function(e,t,n,r,a,o){var i,l,s,u=8*o-a-1,c=(1<<u)-1,f=c>>1,p=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(l=isNaN(t)?1:0,i=c):(i=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-i))<1&&(i--,s*=2),(t+=i+f>=1?p/s:p*Math.pow(2,1-f))*s>=2&&(i++,s/=2),i+f>=c?(l=0,i=c):i+f>=1?(l=(t*s-1)*Math.pow(2,a),i+=f):(l=t*Math.pow(2,f-1)*Math.pow(2,a),i=0));a>=8;e[n+d]=255&l,d+=h,l/=256,a-=8);for(i=i<<a|l,u+=a;u>0;e[n+d]=255&i,d+=h,i/=256,u-=8);e[n+d-h]|=128*v},Wl=ql;function ql(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}ql.Varint=0,ql.Fixed64=1,ql.Bytes=2,ql.Fixed32=5;var $l="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Gl(e){return e.type===ql.Bytes?e.readVarint()+e.pos:e.pos+1}function Yl(e,t,n){return n?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function Kl(e,t,n){var r=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.floor(Math.log(t)/(7*Math.LN2));n.realloc(r);for(var a=n.pos-1;a>=e;a--)n.buf[a+r]=n.buf[a]}function Xl(e,t){for(var n=0;n<e.length;n++)t.writeVarint(e[n])}function Zl(e,t){for(var n=0;n<e.length;n++)t.writeSVarint(e[n])}function Jl(e,t){for(var n=0;n<e.length;n++)t.writeFloat(e[n])}function Ql(e,t){for(var n=0;n<e.length;n++)t.writeDouble(e[n])}function es(e,t){for(var n=0;n<e.length;n++)t.writeBoolean(e[n])}function ts(e,t){for(var n=0;n<e.length;n++)t.writeFixed32(e[n])}function ns(e,t){for(var n=0;n<e.length;n++)t.writeSFixed32(e[n])}function rs(e,t){for(var n=0;n<e.length;n++)t.writeFixed64(e[n])}function as(e,t){for(var n=0;n<e.length;n++)t.writeSFixed64(e[n])}function os(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function is(e,t,n){e[n]=t,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24}function ls(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}function ss(e,t,n){1===e&&n.readMessage(us,t)}function us(e,t,n){if(3===e){var r=n.readMessage(cs,{}),a=r.width,o=r.height,i=r.left,l=r.top,s=r.advance;t.push({id:r.id,bitmap:new di({width:a+6,height:o+6},r.bitmap),metrics:{width:a,height:o,left:i,top:l,advance:s}})}}function cs(e,t,n){1===e?t.id=n.readVarint():2===e?t.bitmap=n.readBytes():3===e?t.width=n.readVarint():4===e?t.height=n.readVarint():5===e?t.left=n.readSVarint():6===e?t.top=n.readSVarint():7===e&&(t.advance=n.readVarint())}function fs(e){for(var t=0,n=0,r=0,a=e;r<a.length;r+=1){var o=a[r];t+=o.w*o.h,n=Math.max(n,o.w)}e.sort((function(e,t){return t.h-e.h}));for(var i=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),n),h:1/0}],l=0,s=0,u=0,c=e;u<c.length;u+=1)for(var f=c[u],p=i.length-1;p>=0;p--){var d=i[p];if(!(f.w>d.w||f.h>d.h)){if(f.x=d.x,f.y=d.y,s=Math.max(s,f.y+f.h),l=Math.max(l,f.x+f.w),f.w===d.w&&f.h===d.h){var h=i.pop();p<i.length&&(i[p]=h)}else f.h===d.h?(d.x+=f.w,d.w-=f.w):f.w===d.w?(d.y+=f.h,d.h-=f.h):(i.push({x:d.x+f.w,y:d.y,w:d.w-f.w,h:f.h}),d.y+=f.h,d.h-=f.h);break}}return{w:l,h:s,fill:t/(l*s)||0}}ql.prototype={destroy:function(){this.buf=null},readFields:function(e,t,n){for(n=n||this.length;this.pos<n;){var r=this.readVarint(),a=r>>3,o=this.pos;this.type=7&r,e(a,t,this),this.pos===o&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=os(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=ls(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=os(this.buf,this.pos)+4294967296*os(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=os(this.buf,this.pos)+4294967296*ls(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var e=Hl(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=Hl(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,n,r=this.buf;return t=127&(n=r[this.pos++]),n<128?t:(t|=(127&(n=r[this.pos++]))<<7,n<128?t:(t|=(127&(n=r[this.pos++]))<<14,n<128?t:(t|=(127&(n=r[this.pos++]))<<21,n<128?t:function(e,t,n){var r,a,o=n.buf;if(r=(112&(a=o[n.pos++]))>>4,a<128)return Yl(e,r,t);if(r|=(127&(a=o[n.pos++]))<<3,a<128)return Yl(e,r,t);if(r|=(127&(a=o[n.pos++]))<<10,a<128)return Yl(e,r,t);if(r|=(127&(a=o[n.pos++]))<<17,a<128)return Yl(e,r,t);if(r|=(127&(a=o[n.pos++]))<<24,a<128)return Yl(e,r,t);if(r|=(1&(a=o[n.pos++]))<<31,a<128)return Yl(e,r,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(n=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=this.pos;return this.pos=e,e-t>=12&&$l?function(e,t,n){return $l.decode(e.subarray(t,n))}(this.buf,t,e):function(e,t,n){for(var r="",a=t;a<n;){var o,i,l,s=e[a],u=null,c=s>239?4:s>223?3:s>191?2:1;if(a+c>n)break;1===c?s<128&&(u=s):2===c?128==(192&(o=e[a+1]))&&(u=(31&s)<<6|63&o)<=127&&(u=null):3===c?(i=e[a+2],128==(192&(o=e[a+1]))&&128==(192&i)&&((u=(15&s)<<12|(63&o)<<6|63&i)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(i=e[a+2],l=e[a+3],128==(192&(o=e[a+1]))&&128==(192&i)&&128==(192&l)&&((u=(15&s)<<18|(63&o)<<12|(63&i)<<6|63&l)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,r+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),r+=String.fromCharCode(u),a+=c}return r}(this.buf,t,e)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==ql.Bytes)return e.push(this.readVarint(t));var n=Gl(this);for(e=e||[];this.pos<n;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){if(this.type!==ql.Bytes)return e.push(this.readSVarint());var t=Gl(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){if(this.type!==ql.Bytes)return e.push(this.readBoolean());var t=Gl(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){if(this.type!==ql.Bytes)return e.push(this.readFloat());var t=Gl(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){if(this.type!==ql.Bytes)return e.push(this.readDouble());var t=Gl(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){if(this.type!==ql.Bytes)return e.push(this.readFixed32());var t=Gl(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){if(this.type!==ql.Bytes)return e.push(this.readSFixed32());var t=Gl(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){if(this.type!==ql.Bytes)return e.push(this.readFixed64());var t=Gl(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){if(this.type!==ql.Bytes)return e.push(this.readSFixed64());var t=Gl(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===ql.Varint)for(;this.buf[this.pos++]>127;);else if(t===ql.Bytes)this.pos=this.readVarint()+this.pos;else if(t===ql.Fixed32)this.pos+=4;else{if(t!==ql.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var n=new Uint8Array(t);n.set(this.buf),this.buf=n,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),is(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),is(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),is(this.buf,-1&e,this.pos),is(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),is(this.buf,-1&e,this.pos),is(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var n,r;if(e>=0?(n=e%4294967296|0,r=e/4294967296|0):(r=~(-e/4294967296),4294967295^(n=~(-e%4294967296))?n=n+1|0:(n=0,r=r+1|0)),e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,n){n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,e>>>=7,n.buf[n.pos++]=127&e|128,n.buf[n.pos]=127&(e>>>=7)}(n,0,t),function(e,t){var n=(7&e)<<4;t.buf[t.pos++]|=n|((e>>>=3)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),e&&(t.buf[t.pos++]=127&e)))))}(r,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,n){for(var r,a,o=0;o<t.length;o++){if((r=t.charCodeAt(o))>55295&&r<57344){if(!a){r>56319||o+1===t.length?(e[n++]=239,e[n++]=191,e[n++]=189):a=r;continue}if(r<56320){e[n++]=239,e[n++]=191,e[n++]=189,a=r;continue}r=a-55296<<10|r-56320|65536,a=null}else a&&(e[n++]=239,e[n++]=191,e[n++]=189,a=null);r<128?e[n++]=r:(r<2048?e[n++]=r>>6|192:(r<65536?e[n++]=r>>12|224:(e[n++]=r>>18|240,e[n++]=r>>12&63|128),e[n++]=r>>6&63|128),e[n++]=63&r|128)}return n}(this.buf,e,this.pos);var n=this.pos-t;n>=128&&Kl(t,n,this),this.pos=t-1,this.writeVarint(n),this.pos+=n},writeFloat:function(e){this.realloc(4),Ul(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),Ul(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var n=0;n<t;n++)this.buf[this.pos++]=e[n]},writeRawMessage:function(e,t){this.pos++;var n=this.pos;e(t,this);var r=this.pos-n;r>=128&&Kl(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,n){this.writeTag(e,ql.Bytes),this.writeRawMessage(t,n)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,Xl,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,Zl,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,es,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,Jl,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,Ql,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,ts,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,ns,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,rs,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,as,t)},writeBytesField:function(e,t){this.writeTag(e,ql.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,ql.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,ql.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,ql.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,ql.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,ql.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,ql.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,ql.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,ql.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,ql.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}};var ps=function(e,t){var n=t.pixelRatio,r=t.version,a=t.stretchX,o=t.stretchY,i=t.content;this.paddedRect=e,this.pixelRatio=n,this.stretchX=a,this.stretchY=o,this.content=i,this.version=r},ds={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};ds.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},ds.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},ds.tlbr.get=function(){return this.tl.concat(this.br)},ds.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(ps.prototype,ds);var hs=function(e,t){var n={},r={};this.haveRenderCallbacks=[];var a=[];this.addImages(e,n,a),this.addImages(t,r,a);var o=fs(a),i=new hi({width:o.w||1,height:o.h||1});for(var l in e){var s=e[l],u=n[l].paddedRect;hi.copy(s.data,i,{x:0,y:0},{x:u.x+1,y:u.y+1},s.data)}for(var c in t){var f=t[c],p=r[c].paddedRect,d=p.x+1,h=p.y+1,v=f.data.width,m=f.data.height;hi.copy(f.data,i,{x:0,y:0},{x:d,y:h},f.data),hi.copy(f.data,i,{x:0,y:m-1},{x:d,y:h-1},{width:v,height:1}),hi.copy(f.data,i,{x:0,y:0},{x:d,y:h+m},{width:v,height:1}),hi.copy(f.data,i,{x:v-1,y:0},{x:d-1,y:h},{width:1,height:m}),hi.copy(f.data,i,{x:0,y:0},{x:d+v,y:h},{width:1,height:m})}this.image=i,this.iconPositions=n,this.patternPositions=r};hs.prototype.addImages=function(e,t,n){for(var r in e){var a=e[r],o={x:0,y:0,w:a.data.width+2,h:a.data.height+2};n.push(o),t[r]=new ps(o,a),a.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},hs.prototype.patchUpdatedImages=function(e,t){for(var n in e.dispatchRenderCallbacks(this.haveRenderCallbacks),e.updatedImages)this.patchUpdatedImage(this.iconPositions[n],e.getImage(n),t),this.patchUpdatedImage(this.patternPositions[n],e.getImage(n),t)},hs.prototype.patchUpdatedImage=function(e,t,n){if(e&&t&&e.version!==t.version){e.version=t.version;var r=e.tl;n.update(t.data,void 0,{x:r[0],y:r[1]})}},Ir("ImagePosition",ps),Ir("ImageAtlas",hs);var vs={horizontal:1,vertical:2,horizontalOnly:3},ms=function(){this.scale=1,this.fontStack="",this.imageName=null};ms.forText=function(e,t){var n=new ms;return n.scale=e||1,n.fontStack=t,n},ms.forImage=function(e){var t=new ms;return t.imageName=e,t};var ys=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function gs(e,t,n,r,a,o,i,l,s,u,c,f,p,d,h,v){var m,y=ys.fromFeature(e,a);f===vs.vertical&&y.verticalizePunctuation();var g=ra.processBidirectionalText,b=ra.processStyledBidirectionalText;if(g&&1===y.sections.length){m=[];for(var x=0,_=g(y.toString(),Es(y,u,o,t,r,d,h));x<_.length;x+=1){var w=_[x],k=new ys;k.text=w,k.sections=y.sections;for(var T=0;T<w.length;T++)k.sectionIndex.push(0);m.push(k)}}else if(b){m=[];for(var E=0,O=b(y.text,y.sectionIndex,Es(y,u,o,t,r,d,h));E<O.length;E+=1){var M=O[E],S=new ys;S.text=M[0],S.sectionIndex=M[1],S.sections=y.sections,m.push(S)}}else m=function(e,t){for(var n=[],r=e.text,a=0,o=0,i=t;o<i.length;o+=1){var l=i[o];n.push(e.substring(a,l)),a=l}return a<r.length&&n.push(e.substring(a,r.length)),n}(y,Es(y,u,o,t,r,d,h));var C=[],A={positionedLines:C,text:y.toString(),top:c[1],bottom:c[1],left:c[0],right:c[0],writingMode:f,iconsInText:!1,verticalizable:!1};return function(e,t,n,r,a,o,i,l,s,u,c,f){for(var p=0,d=-17,h=0,v=0,m="right"===l?1:"left"===l?0:.5,y=0,g=0,b=a;g<b.length;g+=1){var x=b[g];x.trim();var _=x.getMaxScale(),w=24*(_-1),k={positionedGlyphs:[],lineOffset:0};e.positionedLines[y]=k;var T=k.positionedGlyphs,E=0;if(x.length()){for(var O=0;O<x.length();O++){var M=x.getSection(O),S=x.getSectionIndex(O),C=x.getCharCode(O),A=0,P=null,L=null,D=null,j=24,I=!(s===vs.horizontal||!c&&!Wr(C)||c&&(bs[C]||(W=C,Hr.Arabic(W)||Hr["Arabic Supplement"](W)||Hr["Arabic Extended-A"](W)||Hr["Arabic Presentation Forms-A"](W)||Hr["Arabic Presentation Forms-B"](W))));if(M.imageName){var R=r[M.imageName];if(!R)continue;D=M.imageName,e.iconsInText=e.iconsInText||!0,L=R.paddedRect;var z=R.displaySize;M.scale=24*M.scale/f,A=w+(24-z[1]*M.scale),j=(P={width:z[0],height:z[1],left:1,top:-3,advance:I?z[1]:z[0]}).advance;var N=I?z[0]*M.scale-24*_:z[1]*M.scale-24*_;N>0&&N>E&&(E=N)}else{var F=n[M.fontStack],B=F&&F[C];if(B&&B.rect)L=B.rect,P=B.metrics;else{var V=t[M.fontStack],H=V&&V[C];if(!H)continue;P=H.metrics}A=24*(_-M.scale)}I?(e.verticalizable=!0,T.push({glyph:C,imageName:D,x:p,y:d+A,vertical:I,scale:M.scale,fontStack:M.fontStack,sectionIndex:S,metrics:P,rect:L}),p+=j*M.scale+u):(T.push({glyph:C,imageName:D,x:p,y:d+A,vertical:I,scale:M.scale,fontStack:M.fontStack,sectionIndex:S,metrics:P,rect:L}),p+=P.advance*M.scale+u)}0!==T.length&&(h=Math.max(p-u,h),Ms(T,0,T.length-1,m,E)),p=0;var U=o*_+E;k.lineOffset=Math.max(E,w),d+=U,v=Math.max(U,v),++y}else d+=o,++y}var W,q=d- -17,$=Os(i),G=$.horizontalAlign,Y=$.verticalAlign;(function(e,t,n,r,a,o,i,l,s){var u,c=(t-n)*a;u=o!==i?-l*r- -17:(-r*s+.5)*i;for(var f=0,p=e;f<p.length;f+=1)for(var d=0,h=p[f].positionedGlyphs;d<h.length;d+=1){var v=h[d];v.x+=c,v.y+=u}})(e.positionedLines,m,G,Y,h,v,o,q,a.length),e.top+=-Y*q,e.bottom=e.top+q,e.left+=-G*h,e.right=e.left+h}(A,t,n,r,m,i,l,s,f,u,p,v),!function(e){for(var t=0,n=e;t<n.length;t+=1)if(0!==n[t].positionedGlyphs.length)return!1;return!0}(C)&&A}ys.fromFeature=function(e,t){for(var n=new ys,r=0;r<e.sections.length;r++){var a=e.sections[r];a.image?n.addImageSection(a):n.addTextSection(a,t)}return n},ys.prototype.length=function(){return this.text.length},ys.prototype.getSection=function(e){return this.sections[this.sectionIndex[e]]},ys.prototype.getSectionIndex=function(e){return this.sectionIndex[e]},ys.prototype.getCharCode=function(e){return this.text.charCodeAt(e)},ys.prototype.verticalizePunctuation=function(){this.text=function(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n+1)||null,a=e.charCodeAt(n-1)||null;t+=r&&qr(r)&&!Vl[e[n+1]]||a&&qr(a)&&!Vl[e[n-1]]||!Vl[e[n]]?e[n]:Vl[e[n]]}return t}(this.text)},ys.prototype.trim=function(){for(var e=0,t=0;t<this.text.length&&bs[this.text.charCodeAt(t)];t++)e++;for(var n=this.text.length,r=this.text.length-1;r>=0&&r>=e&&bs[this.text.charCodeAt(r)];r--)n--;this.text=this.text.substring(e,n),this.sectionIndex=this.sectionIndex.slice(e,n)},ys.prototype.substring=function(e,t){var n=new ys;return n.text=this.text.substring(e,t),n.sectionIndex=this.sectionIndex.slice(e,t),n.sections=this.sections,n},ys.prototype.toString=function(){return this.text},ys.prototype.getMaxScale=function(){var e=this;return this.sectionIndex.reduce((function(t,n){return Math.max(t,e.sections[n].scale)}),0)},ys.prototype.addTextSection=function(e,t){this.text+=e.text,this.sections.push(ms.forText(e.scale,e.fontStack||t));for(var n=this.sections.length-1,r=0;r<e.text.length;++r)this.sectionIndex.push(n)},ys.prototype.addImageSection=function(e){var t=e.image?e.image.name:"";if(0!==t.length){var n=this.getNextImageSectionCharCode();n?(this.text+=String.fromCharCode(n),this.sections.push(ms.forImage(t)),this.sectionIndex.push(this.sections.length-1)):_("Reached maximum number of images 6401")}else _("Can't add FormattedSection with an empty image.")},ys.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID>=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var bs={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},xs={};function _s(e,t,n,r,a,o){if(t.imageName){var i=r[t.imageName];return i?i.displaySize[0]*t.scale*24/o+a:0}var l=n[t.fontStack],s=l&&l[e];return s?s.metrics.advance*t.scale+a:0}function ws(e,t,n,r){var a=Math.pow(e-t,2);return r?e<t?a/2:2*a:a+Math.abs(n)*n}function ks(e,t,n){var r=0;return 10===e&&(r-=1e4),n&&(r+=150),40!==e&&65288!==e||(r+=50),41!==t&&65289!==t||(r+=50),r}function Ts(e,t,n,r,a,o){for(var i=null,l=ws(t,n,a,o),s=0,u=r;s<u.length;s+=1){var c=u[s],f=ws(t-c.x,n,a,o)+c.badness;f<=l&&(i=c,l=f)}return{index:e,x:t,priorBreak:i,badness:l}}function Es(e,t,n,r,a,o,i){if("point"!==o)return[];if(!e)return[];for(var l,s=[],u=function(e,t,n,r,a,o){for(var i=0,l=0;l<e.length();l++){var s=e.getSection(l);i+=_s(e.getCharCode(l),s,r,a,t,o)}return i/Math.max(1,Math.ceil(i/n))}(e,t,n,r,a,i),c=e.text.indexOf("")>=0,f=0,p=0;p<e.length();p++){var d=e.getSection(p),h=e.getCharCode(p);if(bs[h]||(f+=_s(h,d,r,a,t,i)),p<e.length()-1){var v=!((l=h)<11904||!(Hr["Bopomofo Extended"](l)||Hr.Bopomofo(l)||Hr["CJK Compatibility Forms"](l)||Hr["CJK Compatibility Ideographs"](l)||Hr["CJK Compatibility"](l)||Hr["CJK Radicals Supplement"](l)||Hr["CJK Strokes"](l)||Hr["CJK Symbols and Punctuation"](l)||Hr["CJK Unified Ideographs Extension A"](l)||Hr["CJK Unified Ideographs"](l)||Hr["Enclosed CJK Letters and Months"](l)||Hr["Halfwidth and Fullwidth Forms"](l)||Hr.Hiragana(l)||Hr["Ideographic Description Characters"](l)||Hr["Kangxi Radicals"](l)||Hr["Katakana Phonetic Extensions"](l)||Hr.Katakana(l)||Hr["Vertical Forms"](l)||Hr["Yi Radicals"](l)||Hr["Yi Syllables"](l)));(xs[h]||v||d.imageName)&&s.push(Ts(p+1,f,u,s,ks(h,e.getCharCode(p+1),v&&c),!1))}}return function e(t){return t?e(t.priorBreak).concat(t.index):[]}(Ts(e.length(),f,u,s,0,!0))}function Os(e){var t=.5,n=.5;switch(e){case"right":case"top-right":case"bottom-right":t=1;break;case"left":case"top-left":case"bottom-left":t=0}switch(e){case"bottom":case"bottom-right":case"bottom-left":n=1;break;case"top":case"top-right":case"top-left":n=0}return{horizontalAlign:t,verticalAlign:n}}function Ms(e,t,n,r,a){if(r||a)for(var o=e[n],i=(e[n].x+o.metrics.advance*o.scale)*r,l=t;l<=n;l++)e[l].x-=i,e[l].y+=a}function Ss(e,t,n,r,a,o){var i,l=e.image;if(l.content){var s=l.content,u=l.pixelRatio||1;i=[s[0]/u,s[1]/u,l.displaySize[0]-s[2]/u,l.displaySize[1]-s[3]/u]}var c,f,p,d,h=t.left*o,v=t.right*o;"width"===n||"both"===n?(d=a[0]+h-r[3],f=a[0]+v+r[1]):f=(d=a[0]+(h+v-l.displaySize[0])/2)+l.displaySize[0];var m=t.top*o,y=t.bottom*o;return"height"===n||"both"===n?(c=a[1]+m-r[0],p=a[1]+y+r[2]):p=(c=a[1]+(m+y-l.displaySize[1])/2)+l.displaySize[1],{image:l,top:c,right:f,bottom:p,left:d,collisionPadding:i}}xs[10]=!0,xs[32]=!0,xs[38]=!0,xs[40]=!0,xs[41]=!0,xs[43]=!0,xs[45]=!0,xs[47]=!0,xs[173]=!0,xs[183]=!0,xs[8203]=!0,xs[8208]=!0,xs[8211]=!0,xs[8231]=!0;var Cs=function(e){function t(t,n,r,a){e.call(this,t,n),this.angle=r,void 0!==a&&(this.segment=a)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.clone=function(){return new t(this.x,this.y,this.angle,this.segment)},t}(a);function As(e,t){var n=t.expression;if("constant"===n.kind)return{kind:"constant",layoutSize:n.evaluate(new aa(e+1))};if("source"===n.kind)return{kind:"source"};for(var r=n.zoomStops,a=n.interpolationType,o=0;o<r.length&&r[o]<=e;)o++;for(var i=o=Math.max(0,o-1);i<r.length&&r[i]<e+1;)i++;i=Math.min(r.length-1,i);var l=r[o],s=r[i];return"composite"===n.kind?{kind:"composite",minZoom:l,maxZoom:s,interpolationType:a}:{kind:"camera",minZoom:l,maxZoom:s,minSize:n.evaluate(new aa(l)),maxSize:n.evaluate(new aa(s)),interpolationType:a}}function Ps(e,t,n){var r=t.uSize,a=n.lowerSize;return"source"===e.kind?a/128:"composite"===e.kind?Vt(a/128,n.upperSize/128,t.uSizeT):r}function Ls(e,t){var n=0,r=0;if("constant"===e.kind)r=e.layoutSize;else if("source"!==e.kind){var a=e.interpolationType,o=a?s(nn.interpolationFactor(a,t,e.minZoom,e.maxZoom),0,1):0;"camera"===e.kind?r=Vt(e.minSize,e.maxSize,o):n=o}return{uSizeT:n,uSize:r}}Ir("Anchor",Cs);var Ds=Object.freeze({__proto__:null,getSizeData:As,evaluateSizeForFeature:Ps,evaluateSizeForZoom:Ls,SIZE_PACK_FACTOR:128});function js(e,t,n,r,a){if(void 0===t.segment)return!0;for(var o=t,i=t.segment+1,l=0;l>-n/2;){if(--i<0)return!1;l-=e[i].dist(o),o=e[i]}l+=e[i].dist(e[i+1]),i++;for(var s=[],u=0;l<n/2;){var c=e[i],f=e[i+1];if(!f)return!1;var p=e[i-1].angleTo(c)-c.angleTo(f);for(p=Math.abs((p+3*Math.PI)%(2*Math.PI)-Math.PI),s.push({distance:l,angleDelta:p}),u+=p;l-s[0].distance>r;)u-=s.shift().angleDelta;if(u>a)return!1;i++,l+=c.dist(f)}return!0}function Is(e){for(var t=0,n=0;n<e.length-1;n++)t+=e[n].dist(e[n+1]);return t}function Rs(e,t,n){return e?.6*t*n:0}function zs(e,t){return Math.max(e?e.right-e.left:0,t?t.right-t.left:0)}function Ns(e,t,n,r,a,o){for(var i=Rs(n,a,o),l=zs(n,r)*o,s=0,u=Is(e)/2,c=0;c<e.length-1;c++){var f=e[c],p=e[c+1],d=f.dist(p);if(s+d>u){var h=(u-s)/d,v=Vt(f.x,p.x,h),m=Vt(f.y,p.y,h),y=new Cs(v,m,p.angleTo(f),c);return y._round(),!i||js(e,y,l,i,t)?y:void 0}s+=d}}function Fs(e,t,n,r,a,o,i,l,s){var u=Rs(r,o,i),c=zs(r,a),f=c*i,p=0===e[0].x||e[0].x===s||0===e[0].y||e[0].y===s;return t-f<t/4&&(t=f+t/4),function e(t,n,r,a,o,i,l,s,u){for(var c=i/2,f=Is(t),p=0,d=n-r,h=[],v=0;v<t.length-1;v++){for(var m=t[v],y=t[v+1],g=m.dist(y),b=y.angleTo(m);d+r<p+g;){var x=((d+=r)-p)/g,_=Vt(m.x,y.x,x),w=Vt(m.y,y.y,x);if(_>=0&&_<u&&w>=0&&w<u&&d-c>=0&&d+c<=f){var k=new Cs(_,w,b,v);k._round(),a&&!js(t,k,i,a,o)||h.push(k)}}p+=g}return s||h.length||l||(h=e(t,p/2,r,a,o,i,l,!0,u)),h}(e,p?t/2*l%t:(c/2+2*o)*i*l%t,t,u,n,f,p,!1,s)}function Bs(e,t,n,r,o){for(var i=[],l=0;l<e.length;l++)for(var s=e[l],u=void 0,c=0;c<s.length-1;c++){var f=s[c],p=s[c+1];f.x<t&&p.x<t||(f.x<t?f=new a(t,f.y+(t-f.x)/(p.x-f.x)*(p.y-f.y))._round():p.x<t&&(p=new a(t,f.y+(t-f.x)/(p.x-f.x)*(p.y-f.y))._round()),f.y<n&&p.y<n||(f.y<n?f=new a(f.x+(n-f.y)/(p.y-f.y)*(p.x-f.x),n)._round():p.y<n&&(p=new a(f.x+(n-f.y)/(p.y-f.y)*(p.x-f.x),n)._round()),f.x>=r&&p.x>=r||(f.x>=r?f=new a(r,f.y+(r-f.x)/(p.x-f.x)*(p.y-f.y))._round():p.x>=r&&(p=new a(r,f.y+(r-f.x)/(p.x-f.x)*(p.y-f.y))._round()),f.y>=o&&p.y>=o||(f.y>=o?f=new a(f.x+(o-f.y)/(p.y-f.y)*(p.x-f.x),o)._round():p.y>=o&&(p=new a(f.x+(o-f.y)/(p.y-f.y)*(p.x-f.x),o)._round()),u&&f.equals(u[u.length-1])||i.push(u=[f]),u.push(p)))))}return i}function Vs(e,t,n,r){var o=[],i=e.image,l=i.pixelRatio,s=i.paddedRect.w-2,u=i.paddedRect.h-2,c=e.right-e.left,f=e.bottom-e.top,p=i.stretchX||[[0,s]],d=i.stretchY||[[0,u]],h=function(e,t){return e+t[1]-t[0]},v=p.reduce(h,0),m=d.reduce(h,0),y=s-v,g=u-m,b=0,x=v,_=0,w=m,k=0,T=y,E=0,O=g;if(i.content&&r){var M=i.content;b=Hs(p,0,M[0]),_=Hs(d,0,M[1]),x=Hs(p,M[0],M[2]),w=Hs(d,M[1],M[3]),k=M[0]-b,E=M[1]-_,T=M[2]-M[0]-x,O=M[3]-M[1]-w}var S=function(r,o,s,u){var p=Ws(r.stretch-b,x,c,e.left),d=qs(r.fixed-k,T,r.stretch,v),h=Ws(o.stretch-_,w,f,e.top),y=qs(o.fixed-E,O,o.stretch,m),g=Ws(s.stretch-b,x,c,e.left),M=qs(s.fixed-k,T,s.stretch,v),S=Ws(u.stretch-_,w,f,e.top),C=qs(u.fixed-E,O,u.stretch,m),A=new a(p,h),P=new a(g,h),L=new a(g,S),D=new a(p,S),j=new a(d/l,y/l),I=new a(M/l,C/l),R=t*Math.PI/180;if(R){var z=Math.sin(R),N=Math.cos(R),F=[N,-z,z,N];A._matMult(F),P._matMult(F),D._matMult(F),L._matMult(F)}var B=r.stretch+r.fixed,V=o.stretch+o.fixed;return{tl:A,tr:P,bl:D,br:L,tex:{x:i.paddedRect.x+1+B,y:i.paddedRect.y+1+V,w:s.stretch+s.fixed-B,h:u.stretch+u.fixed-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:j,pixelOffsetBR:I,minFontScaleX:T/l/c,minFontScaleY:O/l/f,isSDF:n}};if(r&&(i.stretchX||i.stretchY))for(var C=Us(p,y,v),A=Us(d,g,m),P=0;P<C.length-1;P++)for(var L=C[P],D=C[P+1],j=0;j<A.length-1;j++)o.push(S(L,A[j],D,A[j+1]));else o.push(S({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:s+1},{fixed:0,stretch:u+1}));return o}function Hs(e,t,n){for(var r=0,a=0,o=e;a<o.length;a+=1){var i=o[a];r+=Math.max(t,Math.min(n,i[1]))-Math.max(t,Math.min(n,i[0]))}return r}function Us(e,t,n){for(var r=[{fixed:-1,stretch:0}],a=0,o=e;a<o.length;a+=1){var i=o[a],l=i[0],s=i[1],u=r[r.length-1];r.push({fixed:l-u.stretch,stretch:u.stretch}),r.push({fixed:l-u.stretch,stretch:u.stretch+(s-l)})}return r.push({fixed:t+1,stretch:n}),r}function Ws(e,t,n,r){return e/t*n+r}function qs(e,t,n,r){return e-t*n/r}var $s=function(e,t,n,r,o,i,l,s,u,c){if(this.boxStartIndex=e.length,u){var f=i.top,p=i.bottom,d=i.collisionPadding;d&&(f-=d[1],p+=d[3]);var h=p-f;h>0&&(h=Math.max(10,h),this.circleDiameter=h)}else{var v=i.top*l-s,m=i.bottom*l+s,y=i.left*l-s,g=i.right*l+s,b=i.collisionPadding;if(b&&(y-=b[0]*l,v-=b[1]*l,g+=b[2]*l,m+=b[3]*l),c){var x=new a(y,v),_=new a(g,v),w=new a(y,m),k=new a(g,m),T=c*Math.PI/180;x._rotate(T),_._rotate(T),w._rotate(T),k._rotate(T),y=Math.min(x.x,_.x,w.x,k.x),g=Math.max(x.x,_.x,w.x,k.x),v=Math.min(x.y,_.y,w.y,k.y),m=Math.max(x.y,_.y,w.y,k.y)}e.emplaceBack(t.x,t.y,y,v,g,m,n,r,o)}this.boxEndIndex=e.length},Gs=function(e,t){if(void 0===e&&(e=[]),void 0===t&&(t=Ys),this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)};function Ys(e,t){return e<t?-1:e>t?1:0}function Ks(e,t,n){void 0===t&&(t=1),void 0===n&&(n=!1);for(var r=1/0,o=1/0,i=-1/0,l=-1/0,s=e[0],u=0;u<s.length;u++){var c=s[u];(!u||c.x<r)&&(r=c.x),(!u||c.y<o)&&(o=c.y),(!u||c.x>i)&&(i=c.x),(!u||c.y>l)&&(l=c.y)}var f=Math.min(i-r,l-o),p=f/2,d=new Gs([],Xs);if(0===f)return new a(r,o);for(var h=r;h<i;h+=f)for(var v=o;v<l;v+=f)d.push(new Zs(h+p,v+p,p,e));for(var m=function(e){for(var t=0,n=0,r=0,a=e[0],o=0,i=a.length,l=i-1;o<i;l=o++){var s=a[o],u=a[l],c=s.x*u.y-u.x*s.y;n+=(s.x+u.x)*c,r+=(s.y+u.y)*c,t+=3*c}return new Zs(n/t,r/t,0,e)}(e),y=d.length;d.length;){var g=d.pop();(g.d>m.d||!m.d)&&(m=g,n&&console.log("found best %d after %d probes",Math.round(1e4*g.d)/1e4,y)),g.max-m.d<=t||(d.push(new Zs(g.p.x-(p=g.h/2),g.p.y-p,p,e)),d.push(new Zs(g.p.x+p,g.p.y-p,p,e)),d.push(new Zs(g.p.x-p,g.p.y+p,p,e)),d.push(new Zs(g.p.x+p,g.p.y+p,p,e)),y+=4)}return n&&(console.log("num probes: "+y),console.log("best distance: "+m.d)),m.p}function Xs(e,t){return t.max-e.max}function Zs(e,t,n,r){this.p=new a(e,t),this.h=n,this.d=function(e,t){for(var n=!1,r=1/0,a=0;a<t.length;a++)for(var o=t[a],i=0,l=o.length,s=l-1;i<l;s=i++){var u=o[i],c=o[s];u.y>e.y!=c.y>e.y&&e.x<(c.x-u.x)*(e.y-u.y)/(c.y-u.y)+u.x&&(n=!n),r=Math.min(r,$o(e,u,c))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}Gs.prototype.push=function(e){this.data.push(e),this.length++,this._up(this.length-1)},Gs.prototype.pop=function(){if(0!==this.length){var e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}},Gs.prototype.peek=function(){return this.data[0]},Gs.prototype._up=function(e){for(var t=this.data,n=this.compare,r=t[e];e>0;){var a=e-1>>1,o=t[a];if(n(r,o)>=0)break;t[e]=o,e=a}t[e]=r},Gs.prototype._down=function(e){for(var t=this.data,n=this.compare,r=this.length>>1,a=t[e];e<r;){var o=1+(e<<1),i=t[o],l=o+1;if(l<this.length&&n(t[l],i)<0&&(o=l,i=t[l]),n(i,a)>=0)break;t[e]=i,e=o}t[e]=a};var Js=Number.POSITIVE_INFINITY;function Qs(e,t){return t[1]!==Js?function(e,t,n){var r=0,a=0;switch(t=Math.abs(t),n=Math.abs(n),e){case"top-right":case"top-left":case"top":a=n-7;break;case"bottom-right":case"bottom-left":case"bottom":a=7-n}switch(e){case"top-right":case"bottom-right":case"right":r=-t;break;case"top-left":case"bottom-left":case"left":r=t}return[r,a]}(e,t[0],t[1]):function(e,t){var n=0,r=0;t<0&&(t=0);var a=t/Math.sqrt(2);switch(e){case"top-right":case"top-left":r=a-7;break;case"bottom-right":case"bottom-left":r=7-a;break;case"bottom":r=7-t;break;case"top":r=t-7}switch(e){case"top-right":case"bottom-right":n=-a;break;case"top-left":case"bottom-left":n=a;break;case"left":n=t;break;case"right":n=-t}return[n,r]}(e,t[0])}function eu(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function tu(e,t,n,r,o,i,l,s,u,c,f,p,d,h,v){var m=function(e,t,n,r,o,i,l,s){for(var u=r.layout.get("text-rotate").evaluate(i,{})*Math.PI/180,c=[],f=0,p=t.positionedLines;f<p.length;f+=1)for(var d=p[f],h=0,v=d.positionedGlyphs;h<v.length;h+=1){var m=v[h];if(m.rect){var y=m.rect||{},g=4,b=!0,x=1,_=0,w=(o||s)&&m.vertical,k=m.metrics.advance*m.scale/2;if(s&&t.verticalizable&&(_=d.lineOffset/2-(m.imageName?-(24-m.metrics.width*m.scale)/2:24*(m.scale-1))),m.imageName){var T=l[m.imageName];b=T.sdf,g=1/(x=T.pixelRatio)}var E=o?[m.x+k,m.y]:[0,0],O=o?[0,0]:[m.x+k+n[0],m.y+n[1]-_],M=[0,0];w&&(M=O,O=[0,0]);var S=(m.metrics.left-g)*m.scale-k+O[0],C=(-m.metrics.top-g)*m.scale+O[1],A=S+y.w*m.scale/x,P=C+y.h*m.scale/x,L=new a(S,C),D=new a(A,C),j=new a(S,P),I=new a(A,P);if(w){var R=new a(-k,k- -17),z=-Math.PI/2,N=12-k,F=new a(22-N,-(m.imageName?N:0)),B=new(Function.prototype.bind.apply(a,[null].concat(M)));L._rotateAround(z,R)._add(F)._add(B),D._rotateAround(z,R)._add(F)._add(B),j._rotateAround(z,R)._add(F)._add(B),I._rotateAround(z,R)._add(F)._add(B)}if(u){var V=Math.sin(u),H=Math.cos(u),U=[H,-V,V,H];L._matMult(U),D._matMult(U),j._matMult(U),I._matMult(U)}var W=new a(0,0),q=new a(0,0);c.push({tl:L,tr:D,bl:j,br:I,tex:y,writingMode:t.writingMode,glyphOffset:E,sectionIndex:m.sectionIndex,isSDF:b,pixelOffsetTL:W,pixelOffsetBR:q,minFontScaleX:0,minFontScaleY:0})}}return c}(0,n,s,o,i,l,r,e.allowVerticalPlacement),y=e.textSizeData,g=null;"source"===y.kind?(g=[128*o.layout.get("text-size").evaluate(l,{})])[0]>32640&&_(e.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):"composite"===y.kind&&((g=[128*h.compositeTextSizes[0].evaluate(l,{},v),128*h.compositeTextSizes[1].evaluate(l,{},v)])[0]>32640||g[1]>32640)&&_(e.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),e.addSymbols(e.text,m,g,s,i,l,c,t,u.lineStartIndex,u.lineLength,d,v);for(var b=0,x=f;b<x.length;b+=1)p[x[b]]=e.text.placedSymbolArray.length-1;return 4*m.length}function nu(e){for(var t in e)return e[t];return null}function ru(e,t,n,r){var a=e.compareText;if(t in a){for(var o=a[t],i=o.length-1;i>=0;i--)if(r.dist(o[i])<n)return!0}else a[t]=[];return a[t].push(r),!1}var au=vl.VectorTileFeature.types,ou=[{name:"a_fade_opacity",components:1,type:"Uint8",offset:0}];function iu(e,t,n,r,a,o,i,l,s,u,c,f,p){var d=l?Math.min(32640,Math.round(l[0])):0,h=l?Math.min(32640,Math.round(l[1])):0;e.emplaceBack(t,n,Math.round(32*r),Math.round(32*a),o,i,(d<<1)+(s?1:0),h,16*u,16*c,256*f,256*p)}function lu(e,t,n){e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n),e.emplaceBack(t.x,t.y,n)}function su(e){for(var t=0,n=e.sections;t<n.length;t+=1)if(Yr(n[t].text))return!0;return!1}var uu=function(e){this.layoutVertexArray=new Aa,this.indexArray=new za,this.programConfigurations=e,this.segments=new ao,this.dynamicLayoutVertexArray=new Pa,this.opacityVertexArray=new La,this.placedSymbolArray=new Xa};uu.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&&0===this.indexArray.length&&0===this.dynamicLayoutVertexArray.length&&0===this.opacityVertexArray.length},uu.prototype.upload=function(e,t,n,r){this.isEmpty()||(n&&(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,Il.members),this.indexBuffer=e.createIndexBuffer(this.indexArray,t),this.dynamicLayoutVertexBuffer=e.createVertexBuffer(this.dynamicLayoutVertexArray,Rl.members,!0),this.opacityVertexBuffer=e.createVertexBuffer(this.opacityVertexArray,ou,!0),this.opacityVertexBuffer.itemSize=1),(n||r)&&this.programConfigurations.upload(e))},uu.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Ir("SymbolBuffers",uu);var cu=function(e,t,n){this.layoutVertexArray=new e,this.layoutAttributes=t,this.indexArray=new n,this.segments=new ao,this.collisionVertexArray=new Ra};cu.prototype.upload=function(e){this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=e.createVertexBuffer(this.collisionVertexArray,zl.members,!0)},cu.prototype.destroy=function(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Ir("CollisionBuffers",cu);var fu=function(e){this.collisionBoxArray=e.collisionBoxArray,this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map((function(e){return e.id})),this.index=e.index,this.pixelRatio=e.pixelRatio,this.sourceLayerIndex=e.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=ni([]),this.placementViewportMatrix=ni([]);var t=this.layers[0]._unevaluatedLayout._values;this.textSizeData=As(this.zoom,t["text-size"]),this.iconSizeData=As(this.zoom,t["icon-size"]);var n=this.layers[0].layout,r=n.get("symbol-sort-key"),a=n.get("symbol-z-order");this.sortFeaturesByKey="viewport-y"!==a&&void 0!==r.constantOr(1),this.sortFeaturesByY=("viewport-y"===a||"auto"===a&&!this.sortFeaturesByKey)&&(n.get("text-allow-overlap")||n.get("icon-allow-overlap")||n.get("text-ignore-placement")||n.get("icon-ignore-placement")),"point"===n.get("symbol-placement")&&(this.writingModes=n.get("text-writing-mode").map((function(e){return vs[e]}))),this.stateDependentLayerIds=this.layers.filter((function(e){return e.isStateDependent()})).map((function(e){return e.id})),this.sourceID=e.sourceID};fu.prototype.createArrays=function(){this.text=new uu(new Lo(Il.members,this.layers,this.zoom,(function(e){return/^text/.test(e)}))),this.icon=new uu(new Lo(Il.members,this.layers,this.zoom,(function(e){return/^icon/.test(e)}))),this.glyphOffsetArray=new Qa,this.lineVertexArray=new eo,this.symbolInstances=new Ja},fu.prototype.calculateGlyphDependencies=function(e,t,n,r,a){for(var o=0;o<e.length;o++)if(t[e.charCodeAt(o)]=!0,(n||r)&&a){var i=Vl[e.charAt(o)];i&&(t[i.charCodeAt(0)]=!0)}},fu.prototype.populate=function(e,t,n){var r=this.layers[0],a=r.layout,o=a.get("text-font"),i=a.get("text-field"),l=a.get("icon-image"),s=("constant"!==i.value.kind||i.value.value instanceof et&&!i.value.value.isEmpty()||i.value.value.toString().length>0)&&("constant"!==o.value.kind||o.value.value.length>0),u="constant"!==l.value.kind||!!l.value.value||Object.keys(l.parameters).length>0,c=a.get("symbol-sort-key");if(this.features=[],s||u){for(var f=t.iconDependencies,p=t.glyphDependencies,d=t.availableImages,h=new aa(this.zoom),v=0,m=e;v<m.length;v+=1){var y=m[v],g=y.feature,b=y.id,x=y.index,_=y.sourceLayerIndex,w=r._featureFilter.needGeometry,k={type:g.type,id:b,properties:g.properties,geometry:w?Ro(g):[]};if(r._featureFilter.filter(h,k,n)){w||(k.geometry=Ro(g));var T=void 0;if(s){var E=r.getValueAndResolveTokens("text-field",k,n,d),O=et.factory(E);su(O)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===ta()||this.hasRTLText&&ra.isParsed())&&(T=Bl(O,r,k))}var M=void 0;if(u){var S=r.getValueAndResolveTokens("icon-image",k,n,d);M=S instanceof tt?S:tt.fromString(S)}if(T||M){var C=this.sortFeaturesByKey?c.evaluate(k,{},n):void 0,A={id:b,text:T,icon:M,index:x,sourceLayerIndex:_,geometry:Ro(g),properties:g.properties,type:au[g.type],sortKey:C};if(this.features.push(A),M&&(f[M.name]=!0),T){var P=o.evaluate(k,{},n).join(","),L="map"===a.get("text-rotation-alignment")&&"point"!==a.get("symbol-placement");this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(vs.vertical)>=0;for(var D=0,j=T.sections;D<j.length;D+=1){var I=j[D];if(I.image)f[I.image.name]=!0;else{var R=Ur(T.toString()),z=I.fontStack||P,N=p[z]=p[z]||{};this.calculateGlyphDependencies(I.text,N,L,this.allowVerticalPlacement,R)}}}}}}"line"===a.get("symbol-placement")&&(this.features=function(e){var t={},n={},r=[],a=0;function o(t){r.push(e[t]),a++}function i(e,t,a){var o=n[e];return delete n[e],n[t]=o,r[o].geometry[0].pop(),r[o].geometry[0]=r[o].geometry[0].concat(a[0]),o}function l(e,n,a){var o=t[n];return delete t[n],t[e]=o,r[o].geometry[0].shift(),r[o].geometry[0]=a[0].concat(r[o].geometry[0]),o}function s(e,t,n){var r=n?t[0][t[0].length-1]:t[0][0];return e+":"+r.x+":"+r.y}for(var u=0;u<e.length;u++){var c=e[u],f=c.geometry,p=c.text?c.text.toString():null;if(p){var d=s(p,f),h=s(p,f,!0);if(d in n&&h in t&&n[d]!==t[h]){var v=l(d,h,f),m=i(d,h,r[v].geometry);delete t[d],delete n[h],n[s(p,r[m].geometry,!0)]=m,r[v].geometry=null}else d in n?i(d,h,f):h in t?l(d,h,f):(o(u),t[d]=a-1,n[h]=a-1)}else o(u)}return r.filter((function(e){return e.geometry}))}(this.features)),this.sortFeaturesByKey&&this.features.sort((function(e,t){return e.sortKey-t.sortKey}))}},fu.prototype.update=function(e,t,n){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,n),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,n))},fu.prototype.isEmpty=function(){return 0===this.symbolInstances.length&&!this.hasRTLText},fu.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},fu.prototype.upload=function(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},fu.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},fu.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()},fu.prototype.addToLineVertexArray=function(e,t){var n=this.lineVertexArray.length;if(void 0!==e.segment){for(var r=e.dist(t[e.segment+1]),a=e.dist(t[e.segment]),o={},i=e.segment+1;i<t.length;i++)o[i]={x:t[i].x,y:t[i].y,tileUnitDistanceFromAnchor:r},i<t.length-1&&(r+=t[i+1].dist(t[i]));for(var l=e.segment||0;l>=0;l--)o[l]={x:t[l].x,y:t[l].y,tileUnitDistanceFromAnchor:a},l>0&&(a+=t[l-1].dist(t[l]));for(var s=0;s<t.length;s++){var u=o[s];this.lineVertexArray.emplaceBack(u.x,u.y,u.tileUnitDistanceFromAnchor)}}return{lineStartIndex:n,lineLength:this.lineVertexArray.length-n}},fu.prototype.addSymbols=function(e,t,n,r,a,o,i,l,s,u,c,f){for(var p=e.indexArray,d=e.layoutVertexArray,h=e.segments.prepareSegment(4*t.length,d,p,o.sortKey),v=this.glyphOffsetArray.length,m=h.vertexLength,y=this.allowVerticalPlacement&&i===vs.vertical?Math.PI/2:0,g=o.text&&o.text.sections,b=0;b<t.length;b++){var x=t[b],_=x.tl,w=x.tr,k=x.bl,T=x.br,E=x.tex,O=x.pixelOffsetTL,M=x.pixelOffsetBR,S=x.minFontScaleX,C=x.minFontScaleY,A=x.glyphOffset,P=x.isSDF,L=x.sectionIndex,D=h.vertexLength,j=A[1];iu(d,l.x,l.y,_.x,j+_.y,E.x,E.y,n,P,O.x,O.y,S,C),iu(d,l.x,l.y,w.x,j+w.y,E.x+E.w,E.y,n,P,M.x,O.y,S,C),iu(d,l.x,l.y,k.x,j+k.y,E.x,E.y+E.h,n,P,O.x,M.y,S,C),iu(d,l.x,l.y,T.x,j+T.y,E.x+E.w,E.y+E.h,n,P,M.x,M.y,S,C),lu(e.dynamicLayoutVertexArray,l,y),p.emplaceBack(D,D+1,D+2),p.emplaceBack(D+1,D+2,D+3),h.vertexLength+=4,h.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(A[0]),b!==t.length-1&&L===t[b+1].sectionIndex||e.programConfigurations.populatePaintArrays(d.length,o,o.index,{},f,g&&g[L])}e.placedSymbolArray.emplaceBack(l.x,l.y,v,this.glyphOffsetArray.length-v,m,s,u,l.segment,n?n[0]:0,n?n[1]:0,r[0],r[1],i,0,!1,0,c)},fu.prototype._addCollisionDebugVertex=function(e,t,n,r,a,o){return t.emplaceBack(0,0),e.emplaceBack(n.x,n.y,r,a,Math.round(o.x),Math.round(o.y))},fu.prototype.addCollisionDebugVertices=function(e,t,n,r,o,i,l){var s=o.segments.prepareSegment(4,o.layoutVertexArray,o.indexArray),u=s.vertexLength,c=o.layoutVertexArray,f=o.collisionVertexArray,p=l.anchorX,d=l.anchorY;this._addCollisionDebugVertex(c,f,i,p,d,new a(e,t)),this._addCollisionDebugVertex(c,f,i,p,d,new a(n,t)),this._addCollisionDebugVertex(c,f,i,p,d,new a(n,r)),this._addCollisionDebugVertex(c,f,i,p,d,new a(e,r)),s.vertexLength+=4;var h=o.indexArray;h.emplaceBack(u,u+1),h.emplaceBack(u+1,u+2),h.emplaceBack(u+2,u+3),h.emplaceBack(u+3,u),s.primitiveLength+=4},fu.prototype.addDebugCollisionBoxes=function(e,t,n,r){for(var a=e;a<t;a++){var o=this.collisionBoxArray.get(a);this.addCollisionDebugVertices(o.x1,o.y1,o.x2,o.y2,r?this.textCollisionBox:this.iconCollisionBox,o.anchorPoint,n)}},fu.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&&this.destroyDebugData(),this.textCollisionBox=new cu(ja,Nl.members,Ua),this.iconCollisionBox=new cu(ja,Nl.members,Ua);for(var e=0;e<this.symbolInstances.length;e++){var t=this.symbolInstances.get(e);this.addDebugCollisionBoxes(t.textBoxStartIndex,t.textBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.verticalTextBoxStartIndex,t.verticalTextBoxEndIndex,t,!0),this.addDebugCollisionBoxes(t.iconBoxStartIndex,t.iconBoxEndIndex,t,!1),this.addDebugCollisionBoxes(t.verticalIconBoxStartIndex,t.verticalIconBoxEndIndex,t,!1)}},fu.prototype._deserializeCollisionBoxesForSymbol=function(e,t,n,r,a,o,i,l,s){for(var u={},c=t;c<n;c++){var f=e.get(c);u.textBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},u.textFeatureIndex=f.featureIndex;break}for(var p=r;p<a;p++){var d=e.get(p);u.verticalTextBox={x1:d.x1,y1:d.y1,x2:d.x2,y2:d.y2,anchorPointX:d.anchorPointX,anchorPointY:d.anchorPointY},u.verticalTextFeatureIndex=d.featureIndex;break}for(var h=o;h<i;h++){var v=e.get(h);u.iconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},u.iconFeatureIndex=v.featureIndex;break}for(var m=l;m<s;m++){var y=e.get(m);u.verticalIconBox={x1:y.x1,y1:y.y1,x2:y.x2,y2:y.y2,anchorPointX:y.anchorPointX,anchorPointY:y.anchorPointY},u.verticalIconFeatureIndex=y.featureIndex;break}return u},fu.prototype.deserializeCollisionBoxes=function(e){this.collisionArrays=[];for(var t=0;t<this.symbolInstances.length;t++){var n=this.symbolInstances.get(t);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(e,n.textBoxStartIndex,n.textBoxEndIndex,n.verticalTextBoxStartIndex,n.verticalTextBoxEndIndex,n.iconBoxStartIndex,n.iconBoxEndIndex,n.verticalIconBoxStartIndex,n.verticalIconBoxEndIndex))}},fu.prototype.hasTextData=function(){return this.text.segments.get().length>0},fu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},fu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},fu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},fu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},fu.prototype.addIndicesForPlacedSymbol=function(e,t){for(var n=e.placedSymbolArray.get(t),r=n.vertexStartIndex+4*n.numGlyphs,a=n.vertexStartIndex;a<r;a+=4)e.indexArray.emplaceBack(a,a+1,a+2),e.indexArray.emplaceBack(a+1,a+2,a+3)},fu.prototype.getSortedSymbolIndexes=function(e){if(this.sortedAngle===e&&void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var t=Math.sin(e),n=Math.cos(e),r=[],a=[],o=[],i=0;i<this.symbolInstances.length;++i){o.push(i);var l=this.symbolInstances.get(i);r.push(0|Math.round(t*l.anchorX+n*l.anchorY)),a.push(l.featureIndex)}return o.sort((function(e,t){return r[e]-r[t]||a[t]-a[e]})),o},fu.prototype.addToSortKeyRanges=function(e,t){var n=this.sortKeyRanges[this.sortKeyRanges.length-1];n&&n.sortKey===t?n.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})},fu.prototype.sortFeatures=function(e){var t=this;if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var n=0,r=this.symbolInstanceIndexes;n<r.length;n+=1){var a=this.symbolInstances.get(r[n]);this.featureSortOrder.push(a.featureIndex),[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(e,n,r){e>=0&&r.indexOf(e)===n&&t.addIndicesForPlacedSymbol(t.text,e)})),a.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,a.verticalPlacedTextSymbolIndex),a.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.placedIconSymbolIndex),a.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,a.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Ir("SymbolBucket",fu,{omit:["layers","collisionBoxArray","features","compareText"]}),fu.MAX_GLYPHS=65535,fu.addDynamicAttributes=lu;var pu=new ga({"symbol-placement":new da(Oe.layout_symbol["symbol-placement"]),"symbol-spacing":new da(Oe.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new da(Oe.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new ha(Oe.layout_symbol["symbol-sort-key"]),"symbol-z-order":new da(Oe.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new da(Oe.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new da(Oe.layout_symbol["icon-ignore-placement"]),"icon-optional":new da(Oe.layout_symbol["icon-optional"]),"icon-rotation-alignment":new da(Oe.layout_symbol["icon-rotation-alignment"]),"icon-size":new ha(Oe.layout_symbol["icon-size"]),"icon-text-fit":new da(Oe.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new da(Oe.layout_symbol["icon-text-fit-padding"]),"icon-image":new ha(Oe.layout_symbol["icon-image"]),"icon-rotate":new ha(Oe.layout_symbol["icon-rotate"]),"icon-padding":new da(Oe.layout_symbol["icon-padding"]),"icon-keep-upright":new da(Oe.layout_symbol["icon-keep-upright"]),"icon-offset":new ha(Oe.layout_symbol["icon-offset"]),"icon-anchor":new ha(Oe.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new da(Oe.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new da(Oe.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new da(Oe.layout_symbol["text-rotation-alignment"]),"text-field":new ha(Oe.layout_symbol["text-field"]),"text-font":new ha(Oe.layout_symbol["text-font"]),"text-size":new ha(Oe.layout_symbol["text-size"]),"text-max-width":new ha(Oe.layout_symbol["text-max-width"]),"text-line-height":new da(Oe.layout_symbol["text-line-height"]),"text-letter-spacing":new ha(Oe.layout_symbol["text-letter-spacing"]),"text-justify":new ha(Oe.layout_symbol["text-justify"]),"text-radial-offset":new ha(Oe.layout_symbol["text-radial-offset"]),"text-variable-anchor":new da(Oe.layout_symbol["text-variable-anchor"]),"text-anchor":new ha(Oe.layout_symbol["text-anchor"]),"text-max-angle":new da(Oe.layout_symbol["text-max-angle"]),"text-writing-mode":new da(Oe.layout_symbol["text-writing-mode"]),"text-rotate":new ha(Oe.layout_symbol["text-rotate"]),"text-padding":new da(Oe.layout_symbol["text-padding"]),"text-keep-upright":new da(Oe.layout_symbol["text-keep-upright"]),"text-transform":new ha(Oe.layout_symbol["text-transform"]),"text-offset":new ha(Oe.layout_symbol["text-offset"]),"text-allow-overlap":new da(Oe.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new da(Oe.layout_symbol["text-ignore-placement"]),"text-optional":new da(Oe.layout_symbol["text-optional"])}),du={paint:new ga({"icon-opacity":new ha(Oe.paint_symbol["icon-opacity"]),"icon-color":new ha(Oe.paint_symbol["icon-color"]),"icon-halo-color":new ha(Oe.paint_symbol["icon-halo-color"]),"icon-halo-width":new ha(Oe.paint_symbol["icon-halo-width"]),"icon-halo-blur":new ha(Oe.paint_symbol["icon-halo-blur"]),"icon-translate":new da(Oe.paint_symbol["icon-translate"]),"icon-translate-anchor":new da(Oe.paint_symbol["icon-translate-anchor"]),"text-opacity":new ha(Oe.paint_symbol["text-opacity"]),"text-color":new ha(Oe.paint_symbol["text-color"],{runtimeType:Ne,getOverride:function(e){return e.textColor},hasOverride:function(e){return!!e.textColor}}),"text-halo-color":new ha(Oe.paint_symbol["text-halo-color"]),"text-halo-width":new ha(Oe.paint_symbol["text-halo-width"]),"text-halo-blur":new ha(Oe.paint_symbol["text-halo-blur"]),"text-translate":new da(Oe.paint_symbol["text-translate"]),"text-translate-anchor":new da(Oe.paint_symbol["text-translate-anchor"])}),layout:pu},hu=function(e){this.type=e.property.overrides?e.property.overrides.runtimeType:je,this.defaultValue=e};hu.prototype.evaluate=function(e){if(e.formattedSection){var t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default},hu.prototype.eachChild=function(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)},hu.prototype.outputDefined=function(){return!1},hu.prototype.serialize=function(){return null},Ir("FormatSectionOverride",hu,{omit:["defaultValue"]});var vu=function(e){function t(t){e.call(this,t,du)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.recalculate=function(t,n){if(e.prototype.recalculate.call(this,t,n),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var r=this.layout.get("text-writing-mode");if(r){for(var a=[],o=0,i=r;o<i.length;o+=1){var l=i[o];a.indexOf(l)<0&&a.push(l)}this.layout._values["text-writing-mode"]=a}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()},t.prototype.getValueAndResolveTokens=function(e,t,n,r){var a=this.layout.get(e).evaluate(t,{},n,r),o=this._unevaluatedLayout._values[e];return o.isDataDriven()||Un(o.value)||!a?a:function(e,t){return t.replace(/{([^{}]+)}/g,(function(t,n){return n in e?String(e[n]):""}))}(t.properties,a)},t.prototype.createBucket=function(e){return new fu(e)},t.prototype.queryRadius=function(){return 0},t.prototype.queryIntersectsFeature=function(){return!1},t.prototype._setPaintOverrides=function(){for(var e=0,n=du.paint.overridableProperties;e<n.length;e+=1){var r=n[e];if(t.hasPaintOverride(this.layout,r)){var a,o=this.paint.get(r),i=new hu(o),l=new Hn(i,o.property.specification);a="constant"===o.value.kind||"source"===o.value.kind?new qn("source",l):new $n("composite",l,o.value.zoomStops,o.value._interpolationType),this.paint._values[r]=new fa(o.property,a,o.parameters)}}},t.prototype._handleOverridablePaintPropertyUpdate=function(e,n,r){return!(!this.layout||n.isDataDriven()||r.isDataDriven())&&t.hasPaintOverride(this.layout,e)},t.hasPaintOverride=function(e,t){var n=e.get("text-field"),r=du.paint.properties[t],a=!1,o=function(e){for(var t=0,n=e;t<n.length;t+=1)if(r.overrides&&r.overrides.hasOverride(n[t]))return void(a=!0)};if("constant"===n.value.kind&&n.value.value instanceof et)o(n.value.value.sections);else if("source"===n.value.kind){var i=function(e){a||(e instanceof it&&at(e.value)===He?o(e.value.sections):e instanceof ct?o(e.sections):e.eachChild(i))},l=n.value;l._styleExpression&&i(l._styleExpression.expression)}return a},t}(ba),mu={paint:new ga({"background-color":new da(Oe.paint_background["background-color"]),"background-pattern":new ma(Oe.paint_background["background-pattern"]),"background-opacity":new da(Oe.paint_background["background-opacity"])})},yu=function(e){function t(t){e.call(this,t,mu)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(ba),gu={paint:new ga({"raster-opacity":new da(Oe.paint_raster["raster-opacity"]),"raster-hue-rotate":new da(Oe.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new da(Oe.paint_raster["raster-brightness-min"]),"raster-brightness-max":new da(Oe.paint_raster["raster-brightness-max"]),"raster-saturation":new da(Oe.paint_raster["raster-saturation"]),"raster-contrast":new da(Oe.paint_raster["raster-contrast"]),"raster-resampling":new da(Oe.paint_raster["raster-resampling"]),"raster-fade-duration":new da(Oe.paint_raster["raster-fade-duration"])})},bu=function(e){function t(t){e.call(this,t,gu)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(ba),xu=function(e){function t(t){e.call(this,t,{}),this.implementation=t}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.is3D=function(){return"3d"===this.implementation.renderingMode},t.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},t.prototype.recalculate=function(){},t.prototype.updateTransitions=function(){},t.prototype.hasTransition=function(){},t.prototype.serialize=function(){},t.prototype.onAdd=function(e){this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)},t.prototype.onRemove=function(e){this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)},t}(ba),_u={circle:li,heatmap:yi,hillshade:bi,fill:ol,"fill-extrusion":wl,line:Dl,symbol:vu,background:yu,raster:bu},wu=self.HTMLImageElement,ku=self.HTMLCanvasElement,Tu=self.HTMLVideoElement,Eu=self.ImageData,Ou=self.ImageBitmap,Mu=function(e,t,n,r){this.context=e,this.format=n,this.texture=e.gl.createTexture(),this.update(t,r)};Mu.prototype.update=function(e,t,n){var r=e.width,a=e.height,o=!(this.size&&this.size[0]===r&&this.size[1]===a||n),i=this.context,l=i.gl;if(this.useMipmap=Boolean(t&&t.useMipmap),l.bindTexture(l.TEXTURE_2D,this.texture),i.pixelStoreUnpackFlipY.set(!1),i.pixelStoreUnpack.set(1),i.pixelStoreUnpackPremultiplyAlpha.set(this.format===l.RGBA&&(!t||!1!==t.premultiply)),o)this.size=[r,a],e instanceof wu||e instanceof ku||e instanceof Tu||e instanceof Eu||Ou&&e instanceof Ou?l.texImage2D(l.TEXTURE_2D,0,this.format,this.format,l.UNSIGNED_BYTE,e):l.texImage2D(l.TEXTURE_2D,0,this.format,r,a,0,this.format,l.UNSIGNED_BYTE,e.data);else{var s=n||{x:0,y:0},u=s.x,c=s.y;e instanceof wu||e instanceof ku||e instanceof Tu||e instanceof Eu||Ou&&e instanceof Ou?l.texSubImage2D(l.TEXTURE_2D,0,u,c,l.RGBA,l.UNSIGNED_BYTE,e):l.texSubImage2D(l.TEXTURE_2D,0,u,c,r,a,l.RGBA,l.UNSIGNED_BYTE,e.data)}this.useMipmap&&this.isSizePowerOfTwo()&&l.generateMipmap(l.TEXTURE_2D)},Mu.prototype.bind=function(e,t,n){var r=this.context.gl;r.bindTexture(r.TEXTURE_2D,this.texture),n!==r.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(n=r.LINEAR),e!==this.filter&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,e),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,n||e),this.filter=e),t!==this.wrap&&(r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,t),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,t),this.wrap=t)},Mu.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0},Mu.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Su=function(e){var t=this;this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){t._triggered=!1,t._callback()})};Su.prototype.trigger=function(){var e=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){e._triggered=!1,e._callback()}),0))},Su.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Cu=function(e,t,n){this.target=e,this.parent=t,this.mapId=n,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},v(["receive","process"],this),this.invoker=new Su(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=T()?e:self};function Au(e,t,n){var r=2*Math.PI*6378137/256/Math.pow(2,n);return[e*r-2*Math.PI*6378137/2,t*r-2*Math.PI*6378137/2]}Cu.prototype.send=function(e,t,n,r,a){var o=this;void 0===a&&(a=!1);var i=Math.round(1e18*Math.random()).toString(36).substring(0,10);n&&(this.callbacks[i]=n);var l=M(this.globalScope)?void 0:[];return this.target.postMessage({id:i,type:e,hasCallback:!!n,targetMapId:r,mustQueue:a,sourceMapId:this.mapId,data:Fr(t,l)},l),{cancel:function(){n&&delete o.callbacks[i],o.target.postMessage({id:i,type:"<cancel>",targetMapId:r,sourceMapId:o.mapId})}}},Cu.prototype.receive=function(e){var t=e.data,n=t.id;if(n&&(!t.targetMapId||this.mapId===t.targetMapId))if("<cancel>"===t.type){delete this.tasks[n];var r=this.cancelCallbacks[n];delete this.cancelCallbacks[n],r&&r()}else T()||t.mustQueue?(this.tasks[n]=t,this.taskQueue.push(n),this.invoker.trigger()):this.processTask(n,t)},Cu.prototype.process=function(){if(this.taskQueue.length){var e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),t&&this.processTask(e,t)}},Cu.prototype.processTask=function(e,t){var n=this;if("<response>"===t.type){var r=this.callbacks[e];delete this.callbacks[e],r&&(t.error?r(Br(t.error)):r(null,Br(t.data)))}else{var a=!1,o=M(this.globalScope)?void 0:[],i=t.hasCallback?function(t,r){a=!0,delete n.cancelCallbacks[e],n.target.postMessage({id:e,type:"<response>",sourceMapId:n.mapId,error:t?Fr(t):null,data:Fr(r,o)},o)}:function(e){a=!0},l=null,s=Br(t.data);if(this.parent[t.type])l=this.parent[t.type](t.sourceMapId,s,i);else if(this.parent.getWorkerSource){var u=t.type.split(".");l=this.parent.getWorkerSource(t.sourceMapId,u[0],s.source)[u[1]](s,i)}else i(new Error("Could not find function "+t.type));!a&&l&&l.cancel&&(this.cancelCallbacks[e]=l.cancel)}},Cu.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Pu=function(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1]))};Pu.prototype.setNorthEast=function(e){return this._ne=e instanceof Lu?new Lu(e.lng,e.lat):Lu.convert(e),this},Pu.prototype.setSouthWest=function(e){return this._sw=e instanceof Lu?new Lu(e.lng,e.lat):Lu.convert(e),this},Pu.prototype.extend=function(e){var t,n,r=this._sw,a=this._ne;if(e instanceof Lu)t=e,n=e;else{if(!(e instanceof Pu))return Array.isArray(e)?4===e.length||e.every(Array.isArray)?this.extend(Pu.convert(e)):this.extend(Lu.convert(e)):this;if(n=e._ne,!(t=e._sw)||!n)return this}return r||a?(r.lng=Math.min(t.lng,r.lng),r.lat=Math.min(t.lat,r.lat),a.lng=Math.max(n.lng,a.lng),a.lat=Math.max(n.lat,a.lat)):(this._sw=new Lu(t.lng,t.lat),this._ne=new Lu(n.lng,n.lat)),this},Pu.prototype.getCenter=function(){return new Lu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Pu.prototype.getSouthWest=function(){return this._sw},Pu.prototype.getNorthEast=function(){return this._ne},Pu.prototype.getNorthWest=function(){return new Lu(this.getWest(),this.getNorth())},Pu.prototype.getSouthEast=function(){return new Lu(this.getEast(),this.getSouth())},Pu.prototype.getWest=function(){return this._sw.lng},Pu.prototype.getSouth=function(){return this._sw.lat},Pu.prototype.getEast=function(){return this._ne.lng},Pu.prototype.getNorth=function(){return this._ne.lat},Pu.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Pu.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Pu.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Pu.prototype.contains=function(e){var t=Lu.convert(e),n=t.lng,r=t.lat,a=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&a},Pu.convert=function(e){return!e||e instanceof Pu?e:new Pu(e)};var Lu=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid LngLat object: ("+e+", "+t+")");if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Lu.prototype.wrap=function(){return new Lu(u(this.lng,-180,180),this.lat)},Lu.prototype.toArray=function(){return[this.lng,this.lat]},Lu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Lu.prototype.distanceTo=function(e){var t=Math.PI/180,n=this.lat*t,r=e.lat*t,a=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((e.lng-this.lng)*t);return 6371008.8*Math.acos(Math.min(a,1))},Lu.prototype.toBounds=function(e){void 0===e&&(e=0);var t=360*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return new Pu(new Lu(this.lng-n,this.lat-t),new Lu(this.lng+n,this.lat+t))},Lu.convert=function(e){if(e instanceof Lu)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new Lu(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new Lu(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: <lng>, lat: <lat>}, an object {lon: <lng>, lat: <lat>}, or an array of [<lng>, <lat>]")};var Du=2*Math.PI*6371008.8;function ju(e){return Du*Math.cos(e*Math.PI/180)}function Iu(e){return(180+e)/360}function Ru(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function zu(e,t){return e/ju(t)}function Nu(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}var Fu=function(e,t,n){void 0===n&&(n=0),this.x=+e,this.y=+t,this.z=+n};Fu.fromLngLat=function(e,t){void 0===t&&(t=0);var n=Lu.convert(e);return new Fu(Iu(n.lng),Ru(n.lat),zu(t,n.lat))},Fu.prototype.toLngLat=function(){return new Lu(360*this.x-180,Nu(this.y))},Fu.prototype.toAltitude=function(){return this.z*ju(Nu(this.y))},Fu.prototype.meterInMercatorCoordinateUnits=function(){return 1/Du*(e=Nu(this.y),1/Math.cos(e*Math.PI/180));var e};var Bu=function(e,t,n){this.z=e,this.x=t,this.y=n,this.key=Uu(0,e,e,t,n)};Bu.prototype.equals=function(e){return this.z===e.z&&this.x===e.x&&this.y===e.y},Bu.prototype.url=function(e,t){var n,r,a,o,i,l=(r=this.y,a=this.z,o=Au(256*(n=this.x),256*(r=Math.pow(2,a)-r-1),a),i=Au(256*(n+1),256*(r+1),a),o[0]+","+o[1]+","+i[0]+","+i[1]),s=function(e,t,n){for(var r,a="",o=e;o>0;o--)a+=(t&(r=1<<o-1)?1:0)+(n&r?2:0);return a}(this.z,this.x,this.y);return e[(this.x+this.y)%e.length].replace("{prefix}",(this.x%16).toString(16)+(this.y%16).toString(16)).replace("{z}",String(this.z)).replace("{x}",String(this.x)).replace("{y}",String("tms"===t?Math.pow(2,this.z)-this.y-1:this.y)).replace("{quadkey}",s).replace("{bbox-epsg-3857}",l)},Bu.prototype.getTilePoint=function(e){var t=Math.pow(2,this.z);return new a(8192*(e.x*t-this.x),8192*(e.y*t-this.y))},Bu.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y};var Vu=function(e,t){this.wrap=e,this.canonical=t,this.key=Uu(e,t.z,t.z,t.x,t.y)},Hu=function(e,t,n,r,a){this.overscaledZ=e,this.wrap=t,this.canonical=new Bu(n,+r,+a),this.key=Uu(t,e,n,r,a)};function Uu(e,t,n,r,a){(e*=2)<0&&(e=-1*e-1);var o=1<<n;return(o*o*e+o*a+r).toString(36)+n.toString(36)+t.toString(36)}Hu.prototype.equals=function(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)},Hu.prototype.scaledTo=function(e){var t=this.canonical.z-e;return e>this.canonical.z?new Hu(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Hu(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)},Hu.prototype.calculateScaledKey=function(e,t){var n=this.canonical.z-e;return e>this.canonical.z?Uu(this.wrap*+t,e,this.canonical.z,this.canonical.x,this.canonical.y):Uu(this.wrap*+t,e,e,this.canonical.x>>n,this.canonical.y>>n)},Hu.prototype.isChildOf=function(e){if(e.wrap!==this.wrap)return!1;var t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ<this.overscaledZ&&e.canonical.x===this.canonical.x>>t&&e.canonical.y===this.canonical.y>>t},Hu.prototype.children=function(e){if(this.overscaledZ>=e)return[new Hu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var t=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new Hu(t,this.wrap,t,n,r),new Hu(t,this.wrap,t,n+1,r),new Hu(t,this.wrap,t,n,r+1),new Hu(t,this.wrap,t,n+1,r+1)]},Hu.prototype.isLessThan=function(e){return this.wrap<e.wrap||!(this.wrap>e.wrap)&&(this.overscaledZ<e.overscaledZ||!(this.overscaledZ>e.overscaledZ)&&(this.canonical.x<e.canonical.x||!(this.canonical.x>e.canonical.x)&&this.canonical.y<e.canonical.y))},Hu.prototype.wrapped=function(){return new Hu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Hu.prototype.unwrapTo=function(e){return new Hu(this.overscaledZ,e,this.canonical.z,this.canonical.x,this.canonical.y)},Hu.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Hu.prototype.toUnwrapped=function(){return new Vu(this.wrap,this.canonical)},Hu.prototype.toString=function(){return this.overscaledZ+"/"+this.canonical.x+"/"+this.canonical.y},Hu.prototype.getTilePoint=function(e){return this.canonical.getTilePoint(new Fu(e.x-this.wrap,e.y))},Ir("CanonicalTileID",Bu),Ir("OverscaledTileID",Hu,{omit:["posMatrix"]});var Wu=function(e,t,n){if(this.uid=e,t.height!==t.width)throw new RangeError("DEM tiles must be square");if(n&&"mapbox"!==n&&"terrarium"!==n)return _('"'+n+'" is not a valid encoding type. Valid types include "mapbox" and "terrarium".');this.stride=t.height;var r=this.dim=t.height-2;this.data=new Uint32Array(t.data.buffer),this.encoding=n||"mapbox";for(var a=0;a<r;a++)this.data[this._idx(-1,a)]=this.data[this._idx(0,a)],this.data[this._idx(r,a)]=this.data[this._idx(r-1,a)],this.data[this._idx(a,-1)]=this.data[this._idx(a,0)],this.data[this._idx(a,r)]=this.data[this._idx(a,r-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(r,-1)]=this.data[this._idx(r-1,0)],this.data[this._idx(-1,r)]=this.data[this._idx(0,r-1)],this.data[this._idx(r,r)]=this.data[this._idx(r-1,r-1)]};Wu.prototype.get=function(e,t){var n=new Uint8Array(this.data.buffer),r=4*this._idx(e,t);return("terrarium"===this.encoding?this._unpackTerrarium:this._unpackMapbox)(n[r],n[r+1],n[r+2])},Wu.prototype.getUnpackVector=function(){return"terrarium"===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Wu.prototype._idx=function(e,t){if(e<-1||e>=this.dim+1||t<-1||t>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)},Wu.prototype._unpackMapbox=function(e,t,n){return(256*e*256+256*t+n)/10-1e4},Wu.prototype._unpackTerrarium=function(e,t,n){return 256*e+t+n/256-32768},Wu.prototype.getPixels=function(){return new hi({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Wu.prototype.backfillBorder=function(e,t,n){if(this.dim!==e.dim)throw new Error("dem dimension mismatch");var r=t*this.dim,a=t*this.dim+this.dim,o=n*this.dim,i=n*this.dim+this.dim;switch(t){case-1:r=a-1;break;case 1:a=r+1}switch(n){case-1:o=i-1;break;case 1:i=o+1}for(var l=-t*this.dim,s=-n*this.dim,u=o;u<i;u++)for(var c=r;c<a;c++)this.data[this._idx(c,u)]=e.data[this._idx(c+l,u+s)]},Ir("DEMData",Wu);var qu=function(e){this._stringToNumber={},this._numberToString=[];for(var t=0;t<e.length;t++){var n=e[t];this._stringToNumber[n]=t,this._numberToString[t]=n}};qu.prototype.encode=function(e){return this._stringToNumber[e]},qu.prototype.decode=function(e){return this._numberToString[e]};var $u=function(e,t,n,r,a){this.type="Feature",this._vectorTileFeature=e,e._z=t,e._x=n,e._y=r,this.properties=e.properties,this.id=a},Gu={geometry:{configurable:!0}};Gu.geometry.get=function(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Gu.geometry.set=function(e){this._geometry=e},$u.prototype.toJSON=function(){var e={geometry:this.geometry};for(var t in this)"_geometry"!==t&&"_vectorTileFeature"!==t&&(e[t]=this[t]);return e},Object.defineProperties($u.prototype,Gu);var Yu=function(){this.state={},this.stateChanges={},this.deletedStates={}};Yu.prototype.updateState=function(e,t,n){var r=String(t);if(this.stateChanges[e]=this.stateChanges[e]||{},this.stateChanges[e][r]=this.stateChanges[e][r]||{},c(this.stateChanges[e][r],n),null===this.deletedStates[e])for(var a in this.deletedStates[e]={},this.state[e])a!==r&&(this.deletedStates[e][a]=null);else if(this.deletedStates[e]&&null===this.deletedStates[e][r])for(var o in this.deletedStates[e][r]={},this.state[e][r])n[o]||(this.deletedStates[e][r][o]=null);else for(var i in n)this.deletedStates[e]&&this.deletedStates[e][r]&&null===this.deletedStates[e][r][i]&&delete this.deletedStates[e][r][i]},Yu.prototype.removeFeatureState=function(e,t,n){if(null!==this.deletedStates[e]){var r=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},n&&void 0!==t)null!==this.deletedStates[e][r]&&(this.deletedStates[e][r]=this.deletedStates[e][r]||{},this.deletedStates[e][r][n]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][r])for(n in this.deletedStates[e][r]={},this.stateChanges[e][r])this.deletedStates[e][r][n]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}},Yu.prototype.getState=function(e,t){var n=String(t),r=c({},(this.state[e]||{})[n],(this.stateChanges[e]||{})[n]);if(null===this.deletedStates[e])return{};if(this.deletedStates[e]){var a=this.deletedStates[e][t];if(null===a)return{};for(var o in a)delete r[o]}return r},Yu.prototype.initializeTileState=function(e,t){e.setFeatureState(this.state,t)},Yu.prototype.coalesceChanges=function(e,t){var n={};for(var r in this.stateChanges){this.state[r]=this.state[r]||{};var a={};for(var o in this.stateChanges[r])this.state[r][o]||(this.state[r][o]={}),c(this.state[r][o],this.stateChanges[r][o]),a[o]=this.state[r][o];n[r]=a}for(var i in this.deletedStates){this.state[i]=this.state[i]||{};var l={};if(null===this.deletedStates[i])for(var s in this.state[i])l[s]={},this.state[i][s]={};else for(var u in this.deletedStates[i]){if(null===this.deletedStates[i][u])this.state[i][u]={};else for(var f=0,p=Object.keys(this.deletedStates[i][u]);f<p.length;f+=1)delete this.state[i][u][p[f]];l[u]=this.state[i][u]}n[i]=n[i]||{},c(n[i],l)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(n).length)for(var d in e)e[d].setFeatureState(n,t)};var Ku=function(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new Ar(8192,16,0),this.grid3D=new Ar(8192,16,0),this.featureIndexArray=new no,this.promoteId=t};function Xu(e,t,n,r,a){return y(e,(function(e,o){var i=t instanceof pa?t.get(o):null;return i&&i.evaluate?i.evaluate(n,r,a):i}))}function Zu(e){for(var t=1/0,n=1/0,r=-1/0,a=-1/0,o=0,i=e;o<i.length;o+=1){var l=i[o];t=Math.min(t,l.x),n=Math.min(n,l.y),r=Math.max(r,l.x),a=Math.max(a,l.y)}return{minX:t,minY:n,maxX:r,maxY:a}}function Ju(e,t){return t-e}Ku.prototype.insert=function(e,t,n,r,a,o){var i=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(n,r,a);for(var l=o?this.grid3D:this.grid,s=0;s<t.length;s++){for(var u=t[s],c=[1/0,1/0,-1/0,-1/0],f=0;f<u.length;f++){var p=u[f];c[0]=Math.min(c[0],p.x),c[1]=Math.min(c[1],p.y),c[2]=Math.max(c[2],p.x),c[3]=Math.max(c[3],p.y)}c[0]<8192&&c[1]<8192&&c[2]>=0&&c[3]>=0&&l.insert(i,c[0],c[1],c[2],c[3])}},Ku.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new vl.VectorTile(new Wl(this.rawTileData)).layers,this.sourceLayerCoder=new qu(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},Ku.prototype.query=function(e,t,n,r){var o=this;this.loadVTLayers();for(var i=e.params||{},l=8192/e.tileSize/e.scale,s=rr(i.filter),u=e.queryGeometry,c=e.queryPadding*l,f=Zu(u),p=this.grid.query(f.minX-c,f.minY-c,f.maxX+c,f.maxY+c),d=Zu(e.cameraQueryGeometry),h=this.grid3D.query(d.minX-c,d.minY-c,d.maxX+c,d.maxY+c,(function(t,n,r,o){return function(e,t,n,r,o){for(var i=0,l=e;i<l.length;i+=1){var s=l[i];if(t<=s.x&&n<=s.y&&r>=s.x&&o>=s.y)return!0}var u=[new a(t,n),new a(t,o),new a(r,o),new a(r,n)];if(e.length>2)for(var c=0,f=u;c<f.length;c+=1)if(Yo(e,f[c]))return!0;for(var p=0;p<e.length-1;p++)if(Ko(e[p],e[p+1],u))return!0;return!1}(e.cameraQueryGeometry,t-c,n-c,r+c,o+c)})),v=0,m=h;v<m.length;v+=1)p.push(m[v]);p.sort(Ju);for(var y,g={},b=function(a){var c=p[a];if(c!==y){y=c;var f=o.featureIndexArray.get(c),d=null;o.loadMatchingFeature(g,f.bucketIndex,f.sourceLayerIndex,f.featureIndex,s,i.layers,i.availableImages,t,n,r,(function(t,n,r){return d||(d=Ro(t)),n.queryIntersectsFeature(u,t,r,d,o.z,e.transform,l,e.pixelPosMatrix)}))}},x=0;x<p.length;x++)b(x);return g},Ku.prototype.loadMatchingFeature=function(e,t,n,r,a,o,i,l,s,u,c){var f=this.bucketLayerIDs[t];if(!o||function(e,t){for(var n=0;n<e.length;n++)if(t.indexOf(e[n])>=0)return!0;return!1}(o,f)){var p=this.sourceLayerCoder.decode(n),d=this.vtLayers[p].feature(r);if(a.filter(new aa(this.tileID.overscaledZ),d))for(var h=this.getId(d,p),v=0;v<f.length;v++){var m=f[v];if(!(o&&o.indexOf(m)<0)){var y=l[m];if(y){var g={};void 0!==h&&u&&(g=u.getState(y.sourceLayer||"_geojsonTileLayer",h));var b=s[m];b.paint=Xu(b.paint,y.paint,d,g,i),b.layout=Xu(b.layout,y.layout,d,g,i);var x=!c||c(d,y,g);if(x){var _=new $u(d,this.z,this.x,this.y,h);_.layer=b;var w=e[m];void 0===w&&(w=e[m]=[]),w.push({featureIndex:r,feature:_,intersectionZ:x})}}}}}},Ku.prototype.lookupSymbolFeatures=function(e,t,n,r,a,o,i,l){var s={};this.loadVTLayers();for(var u=rr(a),c=0,f=e;c<f.length;c+=1)this.loadMatchingFeature(s,n,r,f[c],u,o,i,l,t);return s},Ku.prototype.hasLayer=function(e){for(var t=0,n=this.bucketLayerIDs;t<n.length;t+=1)for(var r=0,a=n[t];r<a.length;r+=1)if(e===a[r])return!0;return!1},Ku.prototype.getId=function(e,t){var n=e.id;return this.promoteId&&"boolean"==typeof(n=e.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[t]])&&(n=Number(n)),n},Ir("FeatureIndex",Ku,{omit:["rawTileData","sourceLayerCoder"]});var Qu=function(e,t){this.tileID=e,this.uid=p(),this.uses=0,this.tileSize=t,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state="loading"};Qu.prototype.registerFadeDuration=function(e){var t=e+this.timeAdded;t<R.now()||this.fadeEndTime&&t<this.fadeEndTime||(this.fadeEndTime=t)},Qu.prototype.wasRequested=function(){return"errored"===this.state||"loaded"===this.state||"reloading"===this.state},Qu.prototype.loadVectorData=function(e,t,n){if(this.hasData()&&this.unloadVectorData(),this.state="loaded",e){for(var r in e.featureIndex&&(this.latestFeatureIndex=e.featureIndex,e.rawTileData?(this.latestRawTileData=e.rawTileData,this.latestFeatureIndex.rawTileData=e.rawTileData):this.latestRawTileData&&(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=e.collisionBoxArray,this.buckets=function(e,t){var n={};if(!t)return n;for(var r=function(){var e=o[a],r=e.layerIds.map((function(e){return t.getLayer(e)})).filter(Boolean);if(0!==r.length){e.layers=r,e.stateDependentLayerIds&&(e.stateDependentLayers=e.stateDependentLayerIds.map((function(e){return r.filter((function(t){return t.id===e}))[0]})));for(var i=0,l=r;i<l.length;i+=1)n[l[i].id]=e}},a=0,o=e;a<o.length;a+=1)r();return n}(e.buckets,t.style),this.hasSymbolBuckets=!1,this.buckets){var a=this.buckets[r];if(a instanceof fu){if(this.hasSymbolBuckets=!0,!n)break;a.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var o in this.buckets){var i=this.buckets[o];if(i instanceof fu&&i.hasRTLText){this.hasRTLText=!0,ra.isLoading()||ra.isLoaded()||"deferred"!==ta()||na();break}}for(var l in this.queryPadding=0,this.buckets){var s=this.buckets[l];this.queryPadding=Math.max(this.queryPadding,t.style.getLayer(l).queryRadius(s))}e.imageAtlas&&(this.imageAtlas=e.imageAtlas),e.glyphAtlasImage&&(this.glyphAtlasImage=e.glyphAtlasImage)}else this.collisionBoxArray=new Ya},Qu.prototype.unloadVectorData=function(){for(var e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"},Qu.prototype.getBucket=function(e){return this.buckets[e.id]},Qu.prototype.upload=function(e){for(var t in this.buckets){var n=this.buckets[t];n.uploadPending()&&n.upload(e)}var r=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new Mu(e,this.imageAtlas.image,r.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new Mu(e,this.glyphAtlasImage,r.ALPHA),this.glyphAtlasImage=null)},Qu.prototype.prepare=function(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)},Qu.prototype.queryRenderedFeatures=function(e,t,n,r,a,o,i,l,s,u){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:a,scale:o,tileSize:this.tileSize,pixelPosMatrix:u,transform:l,params:i,queryPadding:this.queryPadding*s},e,t,n):{}},Qu.prototype.querySourceFeatures=function(e,t){var n=this.latestFeatureIndex;if(n&&n.rawTileData){var r=n.loadVTLayers(),a=t?t.sourceLayer:"",o=r._geojsonTileLayer||r[a];if(o)for(var i=rr(t&&t.filter),l=this.tileID.canonical,s=l.z,u=l.x,c=l.y,f={z:s,x:u,y:c},p=0;p<o.length;p++){var d=o.feature(p);if(i.filter(new aa(this.tileID.overscaledZ),d)){var h=n.getId(d,a),v=new $u(d,s,u,c,h);v.tile=f,e.push(v)}}}},Qu.prototype.hasData=function(){return"loaded"===this.state||"reloading"===this.state||"expired"===this.state},Qu.prototype.patternsLoaded=function(){return this.imageAtlas&&!!Object.keys(this.imageAtlas.patternPositions).length},Qu.prototype.setExpiryData=function(e){var t=this.expirationTime;if(e.cacheControl){var n=E(e.cacheControl);n["max-age"]&&(this.expirationTime=Date.now()+1e3*n["max-age"])}else e.expires&&(this.expirationTime=new Date(e.expires).getTime());if(this.expirationTime){var r=Date.now(),a=!1;if(this.expirationTime>r)a=!1;else if(t)if(this.expirationTime<t)a=!0;else{var o=this.expirationTime-t;o?this.expirationTime=r+Math.max(o,3e4):a=!0}else a=!0;a?(this.expiredRequestCount++,this.state="expired"):this.expiredRequestCount=0}},Qu.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1<<Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},Qu.prototype.setFeatureState=function(e,t){if(this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData&&0!==Object.keys(e).length){var n=this.latestFeatureIndex.loadVTLayers();for(var r in this.buckets)if(t.style.hasLayer(r)){var a=this.buckets[r],o=a.layers[0].sourceLayer||"_geojsonTileLayer",i=n[o],l=e[o];if(i&&l&&0!==Object.keys(l).length){a.update(l,i,this.imageAtlas&&this.imageAtlas.patternPositions||{});var s=t&&t.style&&t.style.getLayer(r);s&&(this.queryPadding=Math.max(this.queryPadding,s.queryRadius(a)))}}}},Qu.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},Qu.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil<R.now()},Qu.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},Qu.prototype.setHoldDuration=function(e){this.symbolFadeHoldUntil=R.now()+e},Qu.prototype.setDependencies=function(e,t){for(var n={},r=0,a=t;r<a.length;r+=1)n[a[r]]=!0;this.dependencies[e]=n},Qu.prototype.hasDependency=function(e,t){for(var n=0,r=e;n<r.length;n+=1){var a=this.dependencies[r[n]];if(a)for(var o=0,i=t;o<i.length;o+=1)if(a[i[o]])return!0}return!1};var ec=self.performance,tc=function(e){this._marks={start:[e.url,"start"].join("#"),end:[e.url,"end"].join("#"),measure:e.url.toString()},ec.mark(this._marks.start)};tc.prototype.finish=function(){ec.mark(this._marks.end);var e=ec.getEntriesByName(this._marks.measure);return 0===e.length&&(ec.measure(this._marks.measure,this._marks.start,this._marks.end),e=ec.getEntriesByName(this._marks.measure),ec.clearMarks(this._marks.start),ec.clearMarks(this._marks.end),ec.clearMeasures(this._marks.measure)),e},e.Actor=Cu,e.AlphaImage=di,e.CanonicalTileID=Bu,e.CollisionBoxArray=Ya,e.Color=Ze,e.DEMData=Wu,e.DataConstantProperty=da,e.DictionaryCoder=qu,e.EXTENT=8192,e.ErrorEvent=Te,e.EvaluationParameters=aa,e.Event=ke,e.Evented=Ee,e.FeatureIndex=Ku,e.FillBucket=nl,e.FillExtrusionBucket=bl,e.ImageAtlas=hs,e.ImagePosition=ps,e.LineBucket=Cl,e.LngLat=Lu,e.LngLatBounds=Pu,e.MercatorCoordinate=Fu,e.ONE_EM=24,e.OverscaledTileID=Hu,e.Point=a,e.Point$1=a,e.Properties=ga,e.Protobuf=Wl,e.RGBAImage=hi,e.RequestManager=U,e.RequestPerformance=tc,e.ResourceType=pe,e.SegmentVector=ao,e.SourceFeatureState=Yu,e.StructArrayLayout1ui2=Wa,e.StructArrayLayout2f1f2i16=Ia,e.StructArrayLayout2i4=Ea,e.StructArrayLayout3ui6=za,e.StructArrayLayout4i8=Oa,e.SymbolBucket=fu,e.Texture=Mu,e.Tile=Qu,e.Transitionable=la,e.Uniform1f=go,e.Uniform1i=yo,e.Uniform2f=bo,e.Uniform3f=xo,e.Uniform4f=_o,e.UniformColor=wo,e.UniformMatrix4f=To,e.UnwrappedTileID=Vu,e.ValidationError=Me,e.WritingMode=vs,e.ZoomHistory=Vr,e.add=function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e[2]=t[2]+n[2],e},e.addDynamicAttributes=lu,e.asyncAll=function(e,t,n){if(!e.length)return n(null,[]);var r=e.length,a=new Array(e.length),o=null;e.forEach((function(e,i){t(e,(function(e,t){e&&(o=e),a[i]=t,0==--r&&n(o,a)}))}))},e.bezier=i,e.bindAll=v,e.browser=R,e.cacheEntryPossiblyAdded=function(e){++ce>ie&&(e.getActor().send("enforceCacheSizeLimit",oe),ce=0)},e.clamp=s,e.clearTileCache=function(e){var t=self.caches.delete("mapbox-tiles");e&&t.catch(e).then((function(){return e()}))},e.clipLine=Bs,e.clone=function(e){var t=new ti(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.clone$1=b,e.clone$2=function(e){var t=new ti(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.collisionCircleLayout=Fl,e.config=z,e.create=function(){var e=new ti(16);return ti!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e.create$1=function(){var e=new ti(9);return ti!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e},e.create$2=function(){var e=new ti(4);return ti!=Float32Array&&(e[1]=0,e[2]=0),e[0]=1,e[3]=1,e},e.createCommonjsModule=t,e.createExpression=Wn,e.createLayout=ka,e.createStyleLayer=function(e){return"custom"===e.type?new xu(e):new _u[e.type](e)},e.cross=function(e,t,n){var r=t[0],a=t[1],o=t[2],i=n[0],l=n[1],s=n[2];return e[0]=a*s-o*l,e[1]=o*i-r*s,e[2]=r*l-a*i,e},e.deepEqual=function e(t,n){if(Array.isArray(t)){if(!Array.isArray(n)||t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(!e(t[r],n[r]))return!1;return!0}if("object"==typeof t&&null!==t&&null!==n){if("object"!=typeof n)return!1;if(Object.keys(t).length!==Object.keys(n).length)return!1;for(var a in t)if(!e(t[a],n[a]))return!1;return!0}return t===n},e.dot=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},e.dot$1=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},e.ease=l,e.emitValidationErrors=Cr,e.endsWith=m,e.enforceCacheSizeLimit=function(e){le(),J&&J.then((function(t){t.keys().then((function(n){for(var r=0;r<n.length-e;r++)t.delete(n[r])}))}))},e.evaluateSizeForFeature=Ps,e.evaluateSizeForZoom=Ls,e.evaluateVariableOffset=Qs,e.evented=ea,e.extend=c,e.featureFilter=rr,e.filterObject=g,e.fromRotation=function(e,t){var n=Math.sin(t),r=Math.cos(t);return e[0]=r,e[1]=n,e[2]=0,e[3]=-n,e[4]=r,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e},e.getAnchorAlignment=Os,e.getAnchorJustification=eu,e.getArrayBuffer=ge,e.getImage=xe,e.getJSON=function(e,t){return ye(c(e,{type:"json"}),t)},e.getRTLTextPluginStatus=ta,e.getReferrer=me,e.getVideo=function(e,t){var n,r,a=self.document.createElement("video");a.muted=!0,a.onloadstart=function(){t(null,a)};for(var o=0;o<e.length;o++){var i=self.document.createElement("source");n=e[o],r=void 0,(r=self.document.createElement("a")).href=n,(r.protocol!==self.document.location.protocol||r.host!==self.document.location.host)&&(a.crossOrigin="Anonymous"),i.src=e[o],a.appendChild(i)}return{cancel:function(){}}},e.identity=ni,e.invert=function(e,t){var n=t[0],r=t[1],a=t[2],o=t[3],i=t[4],l=t[5],s=t[6],u=t[7],c=t[8],f=t[9],p=t[10],d=t[11],h=t[12],v=t[13],m=t[14],y=t[15],g=n*l-r*i,b=n*s-a*i,x=n*u-o*i,_=r*s-a*l,w=r*u-o*l,k=a*u-o*s,T=c*v-f*h,E=c*m-p*h,O=c*y-d*h,M=f*m-p*v,S=f*y-d*v,C=p*y-d*m,A=g*C-b*S+x*M+_*O-w*E+k*T;return A?(e[0]=(l*C-s*S+u*M)*(A=1/A),e[1]=(a*S-r*C-o*M)*A,e[2]=(v*k-m*w+y*_)*A,e[3]=(p*w-f*k-d*_)*A,e[4]=(s*O-i*C-u*E)*A,e[5]=(n*C-a*O+o*E)*A,e[6]=(m*x-h*k-y*b)*A,e[7]=(c*k-p*x+d*b)*A,e[8]=(i*S-l*O+u*T)*A,e[9]=(r*O-n*S-o*T)*A,e[10]=(h*w-v*x+y*g)*A,e[11]=(f*x-c*w-d*g)*A,e[12]=(l*E-i*M-s*T)*A,e[13]=(n*M-r*E+a*T)*A,e[14]=(v*b-h*_-m*g)*A,e[15]=(c*_-f*b+p*g)*A,e):null},e.isChar=Hr,e.isMapboxURL=W,e.keysDifference=function(e,t){var n=[];for(var r in e)r in t||n.push(r);return n},e.makeRequest=ye,e.mapObject=y,e.mercatorXfromLng=Iu,e.mercatorYfromLat=Ru,e.mercatorZfromAltitude=zu,e.mul=oi,e.multiply=ri,e.mvt=vl,e.normalize=function(e,t){var n=t[0],r=t[1],a=t[2],o=n*n+r*r+a*a;return o>0&&(o=1/Math.sqrt(o)),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o,e},e.number=Vt,e.offscreenCanvasSupported=fe,e.ortho=function(e,t,n,r,a,o,i){var l=1/(t-n),s=1/(r-a),u=1/(o-i);return e[0]=-2*l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*s,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+n)*l,e[13]=(a+r)*s,e[14]=(i+o)*u,e[15]=1,e},e.parseGlyphPBF=function(e){return new Wl(e).readFields(ss,[])},e.pbf=Wl,e.performSymbolLayout=function(e,t,n,r,a,o,i){e.createArrays(),e.tilePixelRatio=8192/(512*e.overscaling),e.compareText={},e.iconsNeedLinear=!1;var l=e.layers[0].layout,s=e.layers[0]._unevaluatedLayout._values,u={};if("composite"===e.textSizeData.kind){var c=e.textSizeData,f=c.maxZoom;u.compositeTextSizes=[s["text-size"].possiblyEvaluate(new aa(c.minZoom),i),s["text-size"].possiblyEvaluate(new aa(f),i)]}if("composite"===e.iconSizeData.kind){var p=e.iconSizeData,d=p.maxZoom;u.compositeIconSizes=[s["icon-size"].possiblyEvaluate(new aa(p.minZoom),i),s["icon-size"].possiblyEvaluate(new aa(d),i)]}u.layoutTextSize=s["text-size"].possiblyEvaluate(new aa(e.zoom+1),i),u.layoutIconSize=s["icon-size"].possiblyEvaluate(new aa(e.zoom+1),i),u.textMaxSize=s["text-size"].possiblyEvaluate(new aa(18));for(var h=24*l.get("text-line-height"),v="map"===l.get("text-rotation-alignment")&&"point"!==l.get("symbol-placement"),m=l.get("text-keep-upright"),y=l.get("text-size"),g=function(){var o=x[b],s=l.get("text-font").evaluate(o,{},i).join(","),c=y.evaluate(o,{},i),f=u.layoutTextSize.evaluate(o,{},i),p=u.layoutIconSize.evaluate(o,{},i),d={horizontal:{},vertical:void 0},g=o.text,w=[0,0];if(g){var k=g.toString(),T=24*l.get("text-letter-spacing").evaluate(o,{},i),E=function(e){for(var t=0,n=e;t<n.length;t+=1)if(r=n[t].charCodeAt(0),Hr.Arabic(r)||Hr["Arabic Supplement"](r)||Hr["Arabic Extended-A"](r)||Hr["Arabic Presentation Forms-A"](r)||Hr["Arabic Presentation Forms-B"](r))return!1;var r;return!0}(k)?T:0,O=l.get("text-anchor").evaluate(o,{},i),M=l.get("text-variable-anchor");if(!M){var S=l.get("text-radial-offset").evaluate(o,{},i);w=S?Qs(O,[24*S,Js]):l.get("text-offset").evaluate(o,{},i).map((function(e){return 24*e}))}var C=v?"center":l.get("text-justify").evaluate(o,{},i),A=l.get("symbol-placement"),P="point"===A?24*l.get("text-max-width").evaluate(o,{},i):0,L=function(){e.allowVerticalPlacement&&Ur(k)&&(d.vertical=gs(g,t,n,a,s,P,h,O,"left",E,w,vs.vertical,!0,A,f,c))};if(!v&&M){for(var D="auto"===C?M.map((function(e){return eu(e)})):[C],j=!1,I=0;I<D.length;I++){var R=D[I];if(!d.horizontal[R])if(j)d.horizontal[R]=d.horizontal[0];else{var z=gs(g,t,n,a,s,P,h,"center",R,E,w,vs.horizontal,!1,A,f,c);z&&(d.horizontal[R]=z,j=1===z.positionedLines.length)}}L()}else{"auto"===C&&(C=eu(O));var N=gs(g,t,n,a,s,P,h,O,C,E,w,vs.horizontal,!1,A,f,c);N&&(d.horizontal[C]=N),L(),Ur(k)&&v&&m&&(d.vertical=gs(g,t,n,a,s,P,h,O,C,E,w,vs.vertical,!1,A,f,c))}}var F=void 0,B=!1;if(o.icon&&o.icon.name){var V=r[o.icon.name];V&&(F=function(e,t,n){var r=Os(n),a=t[0]-e.displaySize[0]*r.horizontalAlign,o=t[1]-e.displaySize[1]*r.verticalAlign;return{image:e,top:o,bottom:o+e.displaySize[1],left:a,right:a+e.displaySize[0]}}(a[o.icon.name],l.get("icon-offset").evaluate(o,{},i),l.get("icon-anchor").evaluate(o,{},i)),B=V.sdf,void 0===e.sdfIcons?e.sdfIcons=V.sdf:e.sdfIcons!==V.sdf&&_("Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer"),(V.pixelRatio!==e.pixelRatio||0!==l.get("icon-rotate").constantOr(1))&&(e.iconsNeedLinear=!0))}var H=nu(d.horizontal)||d.vertical;e.iconsInText=!!H&&H.iconsInText,(H||F)&&function(e,t,n,r,a,o,i,l,s,u,c){var f=o.textMaxSize.evaluate(t,{});void 0===f&&(f=i);var p,d=e.layers[0].layout,h=d.get("icon-offset").evaluate(t,{},c),v=nu(n.horizontal),m=i/24,y=e.tilePixelRatio*m,g=e.tilePixelRatio*f/24,b=e.tilePixelRatio*l,x=e.tilePixelRatio*d.get("symbol-spacing"),w=d.get("text-padding")*e.tilePixelRatio,k=d.get("icon-padding")*e.tilePixelRatio,T=d.get("text-max-angle")/180*Math.PI,E="map"===d.get("text-rotation-alignment")&&"point"!==d.get("symbol-placement"),O="map"===d.get("icon-rotation-alignment")&&"point"!==d.get("symbol-placement"),M=d.get("symbol-placement"),S=x/2,C=d.get("icon-text-fit");r&&"none"!==C&&(e.allowVerticalPlacement&&n.vertical&&(p=Ss(r,n.vertical,C,d.get("icon-text-fit-padding"),h,m)),v&&(r=Ss(r,v,C,d.get("icon-text-fit-padding"),h,m)));var A=function(l,f){f.x<0||f.x>=8192||f.y<0||f.y>=8192||function(e,t,n,r,a,o,i,l,s,u,c,f,p,d,h,v,m,y,g,b,x,w,k,T,E){var O,M,S,C,A,P=e.addToLineVertexArray(t,n),L=0,D=0,j=0,I=0,R=-1,z=-1,N={},F=uo(""),B=0,V=0;if(void 0===l._unevaluatedLayout.getValue("text-radial-offset")?(B=(O=l.layout.get("text-offset").evaluate(x,{},T).map((function(e){return 24*e})))[0],V=O[1]):(B=24*l.layout.get("text-radial-offset").evaluate(x,{},T),V=Js),e.allowVerticalPlacement&&r.vertical){var H=l.layout.get("text-rotate").evaluate(x,{},T)+90;C=new $s(s,t,u,c,f,r.vertical,p,d,h,H),i&&(A=new $s(s,t,u,c,f,i,m,y,h,H))}if(a){var U=l.layout.get("icon-rotate").evaluate(x,{}),W="none"!==l.layout.get("icon-text-fit"),q=Vs(a,U,k,W),$=i?Vs(i,U,k,W):void 0;S=new $s(s,t,u,c,f,a,m,y,!1,U),L=4*q.length;var G=e.iconSizeData,Y=null;"source"===G.kind?(Y=[128*l.layout.get("icon-size").evaluate(x,{})])[0]>32640&&_(e.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):"composite"===G.kind&&((Y=[128*w.compositeIconSizes[0].evaluate(x,{},T),128*w.compositeIconSizes[1].evaluate(x,{},T)])[0]>32640||Y[1]>32640)&&_(e.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),e.addSymbols(e.icon,q,Y,b,g,x,!1,t,P.lineStartIndex,P.lineLength,-1,T),R=e.icon.placedSymbolArray.length-1,$&&(D=4*$.length,e.addSymbols(e.icon,$,Y,b,g,x,vs.vertical,t,P.lineStartIndex,P.lineLength,-1,T),z=e.icon.placedSymbolArray.length-1)}for(var K in r.horizontal){var X=r.horizontal[K];if(!M){F=uo(X.text);var Z=l.layout.get("text-rotate").evaluate(x,{},T);M=new $s(s,t,u,c,f,X,p,d,h,Z)}var J=1===X.positionedLines.length;if(j+=tu(e,t,X,o,l,h,x,v,P,r.vertical?vs.horizontal:vs.horizontalOnly,J?Object.keys(r.horizontal):[K],N,R,w,T),J)break}r.vertical&&(I+=tu(e,t,r.vertical,o,l,h,x,v,P,vs.vertical,["vertical"],N,z,w,T));var Q=M?M.boxStartIndex:e.collisionBoxArray.length,ee=M?M.boxEndIndex:e.collisionBoxArray.length,te=C?C.boxStartIndex:e.collisionBoxArray.length,ne=C?C.boxEndIndex:e.collisionBoxArray.length,re=S?S.boxStartIndex:e.collisionBoxArray.length,ae=S?S.boxEndIndex:e.collisionBoxArray.length,oe=A?A.boxStartIndex:e.collisionBoxArray.length,ie=A?A.boxEndIndex:e.collisionBoxArray.length,le=-1,se=function(e,t){return e&&e.circleDiameter?Math.max(e.circleDiameter,t):t};le=se(M,le),le=se(C,le),le=se(S,le);var ue=(le=se(A,le))>-1?1:0;ue&&(le*=E/24),e.glyphOffsetArray.length>=fu.MAX_GLYPHS&&_("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==x.sortKey&&e.addToSortKeyRanges(e.symbolInstances.length,x.sortKey),e.symbolInstances.emplaceBack(t.x,t.y,N.right>=0?N.right:-1,N.center>=0?N.center:-1,N.left>=0?N.left:-1,N.vertical||-1,R,z,F,Q,ee,te,ne,re,ae,oe,ie,u,j,I,L,D,ue,0,p,B,V,le)}(e,f,l,n,r,a,p,e.layers[0],e.collisionBoxArray,t.index,t.sourceLayerIndex,e.index,y,w,E,s,b,k,O,h,t,o,u,c,i)};if("line"===M)for(var P=0,L=Bs(t.geometry,0,0,8192,8192);P<L.length;P+=1)for(var D=L[P],j=0,I=Fs(D,x,T,n.vertical||v,r,24,g,e.overscaling,8192);j<I.length;j+=1){var R=I[j];v&&ru(e,v.text,S,R)||A(D,R)}else if("line-center"===M)for(var z=0,N=t.geometry;z<N.length;z+=1){var F=N[z];if(F.length>1){var B=Ns(F,T,n.vertical||v,r,24,g);B&&A(F,B)}}else if("Polygon"===t.type)for(var V=0,H=Ji(t.geometry,0);V<H.length;V+=1){var U=H[V],W=Ks(U,16);A(U[0],new Cs(W.x,W.y,0))}else if("LineString"===t.type)for(var q=0,$=t.geometry;q<$.length;q+=1){var G=$[q];A(G,new Cs(G[0].x,G[0].y,0))}else if("Point"===t.type)for(var Y=0,K=t.geometry;Y<K.length;Y+=1)for(var X=0,Z=K[Y];X<Z.length;X+=1){var J=Z[X];A([J],new Cs(J.x,J.y,0))}}(e,o,d,F,r,u,f,p,w,B,i)},b=0,x=e.features;b<x.length;b+=1)g();o&&e.generateCollisionDebugBuffers()},e.perspective=function(e,t,n,r,a){var o,i=1/Math.tan(t/2);return e[0]=i/n,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=i,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=a&&a!==1/0?(e[10]=(a+r)*(o=1/(r-a)),e[14]=2*a*r*o):(e[10]=-1,e[14]=-2*r),e},e.pick=function(e,t){for(var n={},r=0;r<t.length;r++){var a=t[r];a in e&&(n[a]=e[a])}return n},e.plugin=ra,e.polygonIntersectsPolygon=Fo,e.postMapLoadEvent=ae,e.postTurnstileEvent=ne,e.potpack=fs,e.refProperties=["type","source","source-layer","minzoom","maxzoom","filter","layout"],e.register=Ir,e.registerForPluginStateChange=function(e){return e({pluginStatus:Xr,pluginURL:Zr}),ea.on("pluginStateChange",e),e},e.rotate=function(e,t,n){var r=t[0],a=t[1],o=t[2],i=t[3],l=Math.sin(n),s=Math.cos(n);return e[0]=r*s+o*l,e[1]=a*s+i*l,e[2]=r*-l+o*s,e[3]=a*-l+i*s,e},e.rotateX=function(e,t,n){var r=Math.sin(n),a=Math.cos(n),o=t[4],i=t[5],l=t[6],s=t[7],u=t[8],c=t[9],f=t[10],p=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=o*a+u*r,e[5]=i*a+c*r,e[6]=l*a+f*r,e[7]=s*a+p*r,e[8]=u*a-o*r,e[9]=c*a-i*r,e[10]=f*a-l*r,e[11]=p*a-s*r,e},e.rotateZ=function(e,t,n){var r=Math.sin(n),a=Math.cos(n),o=t[0],i=t[1],l=t[2],s=t[3],u=t[4],c=t[5],f=t[6],p=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=o*a+u*r,e[1]=i*a+c*r,e[2]=l*a+f*r,e[3]=s*a+p*r,e[4]=u*a-o*r,e[5]=c*a-i*r,e[6]=f*a-l*r,e[7]=p*a-s*r,e},e.scale=function(e,t,n){var r=n[0],a=n[1],o=n[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*o,e[9]=t[9]*o,e[10]=t[10]*o,e[11]=t[11]*o,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.scale$1=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e[3]=t[3]*n,e},e.scale$2=function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e[2]=t[2]*n,e},e.setCacheLimits=function(e,t){oe=e,ie=t},e.setRTLTextPlugin=function(e,t,n){if(void 0===n&&(n=!1),"deferred"===Xr||"loading"===Xr||"loaded"===Xr)throw new Error("setRTLTextPlugin cannot be called multiple times.");Zr=R.resolveURL(e),Xr="deferred",Kr=t,Qr(),n||na()},e.sphericalToCartesian=function(e){var t=e[0],n=e[1],r=e[2];return n+=90,n*=Math.PI/180,r*=Math.PI/180,{x:t*Math.cos(n)*Math.sin(r),y:t*Math.sin(n)*Math.sin(r),z:t*Math.cos(r)}},e.sqrLen=function(e){var t=e[0],n=e[1];return t*t+n*n},e.styleSpec=Oe,e.sub=function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e[2]=t[2]-n[2],e},e.symbolSize=Ds,e.transformMat3=function(e,t,n){var r=t[0],a=t[1],o=t[2];return e[0]=r*n[0]+a*n[3]+o*n[6],e[1]=r*n[1]+a*n[4]+o*n[7],e[2]=r*n[2]+a*n[5]+o*n[8],e},e.transformMat4=ii,e.translate=function(e,t,n){var r,a,o,i,l,s,u,c,f,p,d,h,v=n[0],m=n[1],y=n[2];return t===e?(e[12]=t[0]*v+t[4]*m+t[8]*y+t[12],e[13]=t[1]*v+t[5]*m+t[9]*y+t[13],e[14]=t[2]*v+t[6]*m+t[10]*y+t[14],e[15]=t[3]*v+t[7]*m+t[11]*y+t[15]):(a=t[1],o=t[2],i=t[3],l=t[4],s=t[5],u=t[6],c=t[7],f=t[8],p=t[9],d=t[10],h=t[11],e[0]=r=t[0],e[1]=a,e[2]=o,e[3]=i,e[4]=l,e[5]=s,e[6]=u,e[7]=c,e[8]=f,e[9]=p,e[10]=d,e[11]=h,e[12]=r*v+l*m+f*y+t[12],e[13]=a*v+s*m+p*y+t[13],e[14]=o*v+u*m+d*y+t[14],e[15]=i*v+c*m+h*y+t[15]),e},e.triggerPluginCompletionEvent=Jr,e.uniqueId=p,e.validateCustomStyleLayer=function(e){var t=[],n=e.id;return void 0===n&&t.push({message:"layers."+n+': missing required property "id"'}),void 0===e.render&&t.push({message:"layers."+n+': missing required method "render"'}),e.renderingMode&&"2d"!==e.renderingMode&&"3d"!==e.renderingMode&&t.push({message:"layers."+n+': property "renderingMode" must be either "2d" or "3d"'}),t},e.validateLight=Or,e.validateStyle=Er,e.values=function(e){var t=[];for(var n in e)t.push(e[n]);return t},e.vectorTile=vl,e.version="1.10.1",e.warnOnce=_,e.webpSupported=N,e.window=self,e.wrap=u})),r(["./shared"],(function(e){function t(e){var n=typeof e;if("number"===n||"boolean"===n||"string"===n||null==e)return JSON.stringify(e);if(Array.isArray(e)){for(var r="[",a=0,o=e;a<o.length;a+=1)r+=t(o[a])+",";return r+"]"}for(var i=Object.keys(e).sort(),l="{",s=0;s<i.length;s++)l+=JSON.stringify(i[s])+":"+t(e[i[s]])+",";return l+"}"}function n(n){for(var r="",a=0,o=e.refProperties;a<o.length;a+=1)r+="/"+t(n[o[a]]);return r}var r=function(e){this.keyCache={},e&&this.replace(e)};r.prototype.replace=function(e){this._layerConfigs={},this._layers={},this.update(e,[])},r.prototype.update=function(t,r){for(var a=this,o=0,i=t;o<i.length;o+=1){var l=i[o];this._layerConfigs[l.id]=l;var s=this._layers[l.id]=e.createStyleLayer(l);s._featureFilter=e.featureFilter(s.filter),this.keyCache[l.id]&&delete this.keyCache[l.id]}for(var u=0,c=r;u<c.length;u+=1){var f=c[u];delete this.keyCache[f],delete this._layerConfigs[f],delete this._layers[f]}this.familiesBySource={};for(var p=0,d=function(e,t){for(var r={},a=0;a<e.length;a++){var o=t&&t[e[a].id]||n(e[a]);t&&(t[e[a].id]=o);var i=r[o];i||(i=r[o]=[]),i.push(e[a])}var l=[];for(var s in r)l.push(r[s]);return l}(e.values(this._layerConfigs),this.keyCache);p<d.length;p+=1){var h=d[p].map((function(e){return a._layers[e.id]})),v=h[0];if("none"!==v.visibility){var m=v.source||"",y=this.familiesBySource[m];y||(y=this.familiesBySource[m]={});var g=v.sourceLayer||"_geojsonTileLayer",b=y[g];b||(b=y[g]=[]),b.push(h)}}};var a=function(t){var n={},r=[];for(var a in t){var o=t[a],i=n[a]={};for(var l in o){var s=o[+l];if(s&&0!==s.bitmap.width&&0!==s.bitmap.height){var u={x:0,y:0,w:s.bitmap.width+2,h:s.bitmap.height+2};r.push(u),i[l]={rect:u,metrics:s.metrics}}}}var c=e.potpack(r),f=new e.AlphaImage({width:c.w||1,height:c.h||1});for(var p in t){var d=t[p];for(var h in d){var v=d[+h];if(v&&0!==v.bitmap.width&&0!==v.bitmap.height){var m=n[p][h].rect;e.AlphaImage.copy(v.bitmap,f,{x:0,y:0},{x:m.x+1,y:m.y+1},v.bitmap)}}}this.image=f,this.positions=n};e.register("GlyphAtlas",a);var o=function(t){this.tileID=new e.OverscaledTileID(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId};function i(t,n,r){for(var a=new e.EvaluationParameters(n),o=0,i=t;o<i.length;o+=1)i[o].recalculate(a,r)}function l(t,n){var r=e.getArrayBuffer(t.request,(function(t,r,a,o){t?n(t):r&&n(null,{vectorTile:new e.vectorTile.VectorTile(new e.pbf(r)),rawData:r,cacheControl:a,expires:o})}));return function(){r.cancel(),n()}}o.prototype.parse=function(t,n,r,o,l){var s=this;this.status="parsing",this.data=t,this.collisionBoxArray=new e.CollisionBoxArray;var u=new e.DictionaryCoder(Object.keys(t.layers).sort()),c=new e.FeatureIndex(this.tileID,this.promoteId);c.bucketLayerIDs=[];var f,p,d,h,v={},m={featureIndex:c,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:r},y=n.familiesBySource[this.source];for(var g in y){var b=t.layers[g];if(b){1===b.version&&e.warnOnce('Vector tile source "'+this.source+'" layer "'+g+'" does not use vector tile spec v2 and therefore may have some rendering errors.');for(var x=u.encode(g),_=[],w=0;w<b.length;w++){var k=b.feature(w),T=c.getId(k,g);_.push({feature:k,id:T,index:w,sourceLayerIndex:x})}for(var E=0,O=y[g];E<O.length;E+=1){var M=O[E],S=M[0];S.minzoom&&this.zoom<Math.floor(S.minzoom)||S.maxzoom&&this.zoom>=S.maxzoom||"none"!==S.visibility&&(i(M,this.zoom,r),(v[S.id]=S.createBucket({index:c.bucketLayerIDs.length,layers:M,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:x,sourceID:this.source})).populate(_,m,this.tileID.canonical),c.bucketLayerIDs.push(M.map((function(e){return e.id}))))}}}var C=e.mapObject(m.glyphDependencies,(function(e){return Object.keys(e).map(Number)}));Object.keys(C).length?o.send("getGlyphs",{uid:this.uid,stacks:C},(function(e,t){f||(f=e,p=t,L.call(s))})):p={};var A=Object.keys(m.iconDependencies);A.length?o.send("getImages",{icons:A,source:this.source,tileID:this.tileID,type:"icons"},(function(e,t){f||(f=e,d=t,L.call(s))})):d={};var P=Object.keys(m.patternDependencies);function L(){if(f)return l(f);if(p&&d&&h){var t=new a(p),n=new e.ImageAtlas(d,h);for(var o in v){var s=v[o];s instanceof e.SymbolBucket?(i(s.layers,this.zoom,r),e.performSymbolLayout(s,p,t.positions,d,n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):s.hasPattern&&(s instanceof e.LineBucket||s instanceof e.FillBucket||s instanceof e.FillExtrusionBucket)&&(i(s.layers,this.zoom,r),s.addFeatures(m,this.tileID.canonical,n.patternPositions))}this.status="done",l(null,{buckets:e.values(v).filter((function(e){return!e.isEmpty()})),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:n,glyphMap:this.returnDependencies?p:null,iconMap:this.returnDependencies?d:null,glyphPositions:this.returnDependencies?t.positions:null})}}P.length?o.send("getImages",{icons:P,source:this.source,tileID:this.tileID,type:"patterns"},(function(e,t){f||(f=e,h=t,L.call(s))})):h={},L.call(this)};var s=function(e,t,n,r){this.actor=e,this.layerIndex=t,this.availableImages=n,this.loadVectorData=r||l,this.loading={},this.loaded={}};s.prototype.loadTile=function(t,n){var r=this,a=t.uid;this.loading||(this.loading={});var i=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.RequestPerformance(t.request),l=this.loading[a]=new o(t);l.abort=this.loadVectorData(t,(function(t,o){if(delete r.loading[a],t||!o)return l.status="done",r.loaded[a]=l,n(t);var s=o.rawData,u={};o.expires&&(u.expires=o.expires),o.cacheControl&&(u.cacheControl=o.cacheControl);var c={};if(i){var f=i.finish();f&&(c.resourceTiming=JSON.parse(JSON.stringify(f)))}l.vectorTile=o.vectorTile,l.parse(o.vectorTile,r.layerIndex,r.availableImages,r.actor,(function(t,r){if(t||!r)return n(t);n(null,e.extend({rawTileData:s.slice(0)},r,u,c))})),r.loaded=r.loaded||{},r.loaded[a]=l}))},s.prototype.reloadTile=function(e,t){var n=this,r=this.loaded,a=e.uid,o=this;if(r&&r[a]){var i=r[a];i.showCollisionBoxes=e.showCollisionBoxes;var l=function(e,r){var a=i.reloadCallback;a&&(delete i.reloadCallback,i.parse(i.vectorTile,o.layerIndex,n.availableImages,o.actor,a)),t(e,r)};"parsing"===i.status?i.reloadCallback=l:"done"===i.status&&(i.vectorTile?i.parse(i.vectorTile,this.layerIndex,this.availableImages,this.actor,l):l())}},s.prototype.abortTile=function(e,t){var n=this.loading,r=e.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),t()},s.prototype.removeTile=function(e,t){var n=this.loaded,r=e.uid;n&&n[r]&&delete n[r],t()};var u=e.window.ImageBitmap,c=function(){this.loaded={}};function f(e,t){if(0!==e.length){p(e[0],t);for(var n=1;n<e.length;n++)p(e[n],!t)}}function p(e,t){for(var n=0,r=0,a=e.length,o=a-1;r<a;o=r++)n+=(e[r][0]-e[o][0])*(e[o][1]+e[r][1]);n>=0!=!!t&&e.reverse()}c.prototype.loadTile=function(t,n){var r=t.uid,a=t.encoding,o=t.rawImageData,i=u&&o instanceof u?this.getImageData(o):o,l=new e.DEMData(r,i,a);this.loaded=this.loaded||{},this.loaded[r]=l,n(null,l)},c.prototype.getImageData=function(t){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(t.width,t.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=t.width,this.offscreenCanvas.height=t.height,this.offscreenCanvasContext.drawImage(t,0,0,t.width,t.height);var n=this.offscreenCanvasContext.getImageData(-1,-1,t.width+2,t.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new e.RGBAImage({width:n.width,height:n.height},n.data)},c.prototype.removeTile=function(e){var t=this.loaded,n=e.uid;t&&t[n]&&delete t[n]};var d=e.vectorTile.VectorTileFeature.prototype.toGeoJSON,h=function(t){this._feature=t,this.extent=e.EXTENT,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))};h.prototype.loadGeometry=function(){if(1===this._feature.type){for(var t=[],n=0,r=this._feature.geometry;n<r.length;n+=1){var a=r[n];t.push([new e.Point$1(a[0],a[1])])}return t}for(var o=[],i=0,l=this._feature.geometry;i<l.length;i+=1){for(var s=[],u=0,c=l[i];u<c.length;u+=1){var f=c[u];s.push(new e.Point$1(f[0],f[1]))}o.push(s)}return o},h.prototype.toGeoJSON=function(e,t,n){return d.call(this,e,t,n)};var v=function(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.EXTENT,this.length=t.length,this._features=t};v.prototype.feature=function(e){return new h(this._features[e])};var m=e.vectorTile.VectorTileFeature,y=g;function g(e,t){this.options=t||{},this.features=e,this.length=e.length}function b(e,t){this.id="number"==typeof e.id?e.id:void 0,this.type=e.type,this.rawGeometry=1===e.type?[e.geometry]:e.geometry,this.properties=e.tags,this.extent=t||4096}g.prototype.feature=function(e){return new b(this.features[e],this.options.extent)},b.prototype.loadGeometry=function(){var t=this.rawGeometry;this.geometry=[];for(var n=0;n<t.length;n++){for(var r=t[n],a=[],o=0;o<r.length;o++)a.push(new e.Point$1(r[o][0],r[o][1]));this.geometry.push(a)}return this.geometry},b.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var e=this.geometry,t=1/0,n=-1/0,r=1/0,a=-1/0,o=0;o<e.length;o++)for(var i=e[o],l=0;l<i.length;l++){var s=i[l];t=Math.min(t,s.x),n=Math.max(n,s.x),r=Math.min(r,s.y),a=Math.max(a,s.y)}return[t,r,n,a]},b.prototype.toGeoJSON=m.prototype.toGeoJSON;var x=w,_=y;function w(t){var n=new e.pbf;return function(e,t){for(var n in e.layers)t.writeMessage(3,k,e.layers[n])}(t,n),n.finish()}function k(e,t){var n;t.writeVarintField(15,e.version||1),t.writeStringField(1,e.name||""),t.writeVarintField(5,e.extent||4096);var r={keys:[],values:[],keycache:{},valuecache:{}};for(n=0;n<e.length;n++)r.feature=e.feature(n),t.writeMessage(2,T,r);var a=r.keys;for(n=0;n<a.length;n++)t.writeStringField(3,a[n]);var o=r.values;for(n=0;n<o.length;n++)t.writeMessage(4,C,o[n])}function T(e,t){var n=e.feature;void 0!==n.id&&t.writeVarintField(1,n.id),t.writeMessage(2,E,e),t.writeVarintField(3,n.type),t.writeMessage(4,S,n)}function E(e,t){var n=e.feature,r=e.keys,a=e.values,o=e.keycache,i=e.valuecache;for(var l in n.properties){var s=o[l];void 0===s&&(r.push(l),o[l]=s=r.length-1),t.writeVarint(s);var u=n.properties[l],c=typeof u;"string"!==c&&"boolean"!==c&&"number"!==c&&(u=JSON.stringify(u));var f=c+":"+u,p=i[f];void 0===p&&(a.push(u),i[f]=p=a.length-1),t.writeVarint(p)}}function O(e,t){return(t<<3)+(7&e)}function M(e){return e<<1^e>>31}function S(e,t){for(var n=e.loadGeometry(),r=e.type,a=0,o=0,i=n.length,l=0;l<i;l++){var s=n[l],u=1;1===r&&(u=s.length),t.writeVarint(O(1,u));for(var c=3===r?s.length-1:s.length,f=0;f<c;f++){1===f&&1!==r&&t.writeVarint(O(2,c-1));var p=s[f].x-a,d=s[f].y-o;t.writeVarint(M(p)),t.writeVarint(M(d)),a+=p,o+=d}3===r&&t.writeVarint(O(7,1))}}function C(e,t){var n=typeof e;"string"===n?t.writeStringField(1,e):"boolean"===n?t.writeBooleanField(7,e):"number"===n&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}function A(e,t,n,r){P(e,n,r),P(t,2*n,2*r),P(t,2*n+1,2*r+1)}function P(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function L(e,t,n,r){var a=e-n,o=t-r;return a*a+o*o}x.fromVectorTileJs=w,x.fromGeojsonVt=function(e,t){t=t||{};var n={};for(var r in e)n[r]=new y(e[r].features,t),n[r].name=r,n[r].version=t.version,n[r].extent=t.extent;return w({layers:n})},x.GeoJSONWrapper=_;var D=function(e){return e[0]},j=function(e){return e[1]},I=function(e,t,n,r,a){void 0===t&&(t=D),void 0===n&&(n=j),void 0===r&&(r=64),void 0===a&&(a=Float64Array),this.nodeSize=r,this.points=e;for(var o=e.length<65536?Uint16Array:Uint32Array,i=this.ids=new o(e.length),l=this.coords=new a(2*e.length),s=0;s<e.length;s++)i[s]=s,l[2*s]=t(e[s]),l[2*s+1]=n(e[s]);!function e(t,n,r,a,o,i){if(!(o-a<=r)){var l=a+o>>1;!function e(t,n,r,a,o,i){for(;o>a;){if(o-a>600){var l=o-a+1,s=r-a+1,u=Math.log(l),c=.5*Math.exp(2*u/3),f=.5*Math.sqrt(u*c*(l-c)/l)*(s-l/2<0?-1:1);e(t,n,r,Math.max(a,Math.floor(r-s*c/l+f)),Math.min(o,Math.floor(r+(l-s)*c/l+f)),i)}var p=n[2*r+i],d=a,h=o;for(A(t,n,a,r),n[2*o+i]>p&&A(t,n,a,o);d<h;){for(A(t,n,d,h),d++,h--;n[2*d+i]<p;)d++;for(;n[2*h+i]>p;)h--}n[2*a+i]===p?A(t,n,a,h):A(t,n,++h,o),h<=r&&(a=h+1),r<=h&&(o=h-1)}}(t,n,l,a,o,i%2),e(t,n,r,a,l-1,i+1),e(t,n,r,l+1,o,i+1)}}(i,l,r,0,i.length-1,0)};I.prototype.range=function(e,t,n,r){return function(e,t,n,r,a,o,i){for(var l,s,u=[0,e.length-1,0],c=[];u.length;){var f=u.pop(),p=u.pop(),d=u.pop();if(p-d<=i)for(var h=d;h<=p;h++)s=t[2*h+1],(l=t[2*h])>=n&&l<=a&&s>=r&&s<=o&&c.push(e[h]);else{var v=Math.floor((d+p)/2);s=t[2*v+1],(l=t[2*v])>=n&&l<=a&&s>=r&&s<=o&&c.push(e[v]);var m=(f+1)%2;(0===f?n<=l:r<=s)&&(u.push(d),u.push(v-1),u.push(m)),(0===f?a>=l:o>=s)&&(u.push(v+1),u.push(p),u.push(m))}}return c}(this.ids,this.coords,e,t,n,r,this.nodeSize)},I.prototype.within=function(e,t,n){return function(e,t,n,r,a,o){for(var i=[0,e.length-1,0],l=[],s=a*a;i.length;){var u=i.pop(),c=i.pop(),f=i.pop();if(c-f<=o)for(var p=f;p<=c;p++)L(t[2*p],t[2*p+1],n,r)<=s&&l.push(e[p]);else{var d=Math.floor((f+c)/2),h=t[2*d],v=t[2*d+1];L(h,v,n,r)<=s&&l.push(e[d]);var m=(u+1)%2;(0===u?n-a<=h:r-a<=v)&&(i.push(f),i.push(d-1),i.push(m)),(0===u?n+a>=h:r+a>=v)&&(i.push(d+1),i.push(c),i.push(m))}}return l}(this.ids,this.coords,e,t,n,this.nodeSize)};var R={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(e){return e}},z=function(e){this.options=W(Object.create(R),e),this.trees=new Array(this.options.maxZoom+1)};function N(e,t,n,r,a){return{x:e,y:t,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:a}}function F(e,t){var n=e.geometry.coordinates,r=n[1];return{x:H(n[0]),y:U(r),zoom:1/0,index:t,parentId:-1}}function B(e){return{type:"Feature",id:e.id,properties:V(e),geometry:{type:"Point",coordinates:[(r=e.x,360*(r-.5)),(t=e.y,n=(180-360*t)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var t,n,r}function V(e){var t=e.numPoints,n=t>=1e4?Math.round(t/1e3)+"k":t>=1e3?Math.round(t/100)/10+"k":t;return W(W({},e.properties),{cluster:!0,cluster_id:e.id,point_count:t,point_count_abbreviated:n})}function H(e){return e/360+.5}function U(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function W(e,t){for(var n in t)e[n]=t[n];return e}function q(e){return e.x}function $(e){return e.y}function G(e,t,n,r,a,o){var i=a-n,l=o-r;if(0!==i||0!==l){var s=((e-n)*i+(t-r)*l)/(i*i+l*l);s>1?(n=a,r=o):s>0&&(n+=i*s,r+=l*s)}return(i=e-n)*i+(l=t-r)*l}function Y(e,t,n,r){var a={id:void 0===e?null:e,type:t,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,n=e.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)K(e,t);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r<t.length;r++)K(e,t[r]);else if("MultiPolygon"===n)for(r=0;r<t.length;r++)for(var a=0;a<t[r].length;a++)K(e,t[r][a])}(a),a}function K(e,t){for(var n=0;n<t.length;n+=3)e.minX=Math.min(e.minX,t[n]),e.minY=Math.min(e.minY,t[n+1]),e.maxX=Math.max(e.maxX,t[n]),e.maxY=Math.max(e.maxY,t[n+1])}function X(e,t,n,r){if(t.geometry){var a=t.geometry.coordinates,o=t.geometry.type,i=Math.pow(n.tolerance/((1<<n.maxZoom)*n.extent),2),l=[],s=t.id;if(n.promoteId?s=t.properties[n.promoteId]:n.generateId&&(s=r||0),"Point"===o)Z(a,l);else if("MultiPoint"===o)for(var u=0;u<a.length;u++)Z(a[u],l);else if("LineString"===o)J(a,l,i,!1);else if("MultiLineString"===o){if(n.lineMetrics){for(u=0;u<a.length;u++)J(a[u],l=[],i,!1),e.push(Y(s,"LineString",l,t.properties));return}Q(a,l,i,!1)}else if("Polygon"===o)Q(a,l,i,!0);else{if("MultiPolygon"!==o){if("GeometryCollection"===o){for(u=0;u<t.geometry.geometries.length;u++)X(e,{id:s,geometry:t.geometry.geometries[u],properties:t.properties},n,r);return}throw new Error("Input data is not a valid GeoJSON object.")}for(u=0;u<a.length;u++){var c=[];Q(a[u],c,i,!0),l.push(c)}}e.push(Y(s,o,l,t.properties))}}function Z(e,t){t.push(ee(e[0])),t.push(te(e[1])),t.push(0)}function J(e,t,n,r){for(var a,o,i=0,l=0;l<e.length;l++){var s=ee(e[l][0]),u=te(e[l][1]);t.push(s),t.push(u),t.push(0),l>0&&(i+=r?(a*u-s*o)/2:Math.sqrt(Math.pow(s-a,2)+Math.pow(u-o,2))),a=s,o=u}var c=t.length-3;t[2]=1,function e(t,n,r,a){for(var o,i=a,l=r-n>>1,s=r-n,u=t[n],c=t[n+1],f=t[r],p=t[r+1],d=n+3;d<r;d+=3){var h=G(t[d],t[d+1],u,c,f,p);if(h>i)o=d,i=h;else if(h===i){var v=Math.abs(d-l);v<s&&(o=d,s=v)}}i>a&&(o-n>3&&e(t,n,o,a),t[o+2]=i,r-o>3&&e(t,o,r,a))}(t,0,c,n),t[c+2]=1,t.size=Math.abs(i),t.start=0,t.end=t.size}function Q(e,t,n,r){for(var a=0;a<e.length;a++){var o=[];J(e[a],o,n,r),t.push(o)}}function ee(e){return e/360+.5}function te(e){var t=Math.sin(e*Math.PI/180),n=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return n<0?0:n>1?1:n}function ne(e,t,n,r,a,o,i,l){if(r/=t,o>=(n/=t)&&i<r)return e;if(i<n||o>=r)return null;for(var s=[],u=0;u<e.length;u++){var c=e[u],f=c.geometry,p=c.type,d=0===a?c.minX:c.minY,h=0===a?c.maxX:c.maxY;if(d>=n&&h<r)s.push(c);else if(!(h<n||d>=r)){var v=[];if("Point"===p||"MultiPoint"===p)re(f,v,n,r,a);else if("LineString"===p)ae(f,v,n,r,a,!1,l.lineMetrics);else if("MultiLineString"===p)ie(f,v,n,r,a,!1);else if("Polygon"===p)ie(f,v,n,r,a,!0);else if("MultiPolygon"===p)for(var m=0;m<f.length;m++){var y=[];ie(f[m],y,n,r,a,!0),y.length&&v.push(y)}if(v.length){if(l.lineMetrics&&"LineString"===p){for(m=0;m<v.length;m++)s.push(Y(c.id,p,v[m],c.tags));continue}"LineString"!==p&&"MultiLineString"!==p||(1===v.length?(p="LineString",v=v[0]):p="MultiLineString"),"Point"!==p&&"MultiPoint"!==p||(p=3===v.length?"Point":"MultiPoint"),s.push(Y(c.id,p,v,c.tags))}}}return s.length?s:null}function re(e,t,n,r,a){for(var o=0;o<e.length;o+=3){var i=e[o+a];i>=n&&i<=r&&(t.push(e[o]),t.push(e[o+1]),t.push(e[o+2]))}}function ae(e,t,n,r,a,o,i){for(var l,s,u=oe(e),c=0===a?se:ue,f=e.start,p=0;p<e.length-3;p+=3){var d=e[p],h=e[p+1],v=e[p+2],m=e[p+3],y=e[p+4],g=0===a?d:h,b=0===a?m:y,x=!1;i&&(l=Math.sqrt(Math.pow(d-m,2)+Math.pow(h-y,2))),g<n?b>n&&(s=c(u,d,h,m,y,n),i&&(u.start=f+l*s)):g>r?b<r&&(s=c(u,d,h,m,y,r),i&&(u.start=f+l*s)):le(u,d,h,v),b<n&&g>=n&&(s=c(u,d,h,m,y,n),x=!0),b>r&&g<=r&&(s=c(u,d,h,m,y,r),x=!0),!o&&x&&(i&&(u.end=f+l*s),t.push(u),u=oe(e)),i&&(f+=l)}var _=e.length-3;d=e[_],h=e[_+1],v=e[_+2],(g=0===a?d:h)>=n&&g<=r&&le(u,d,h,v),_=u.length-3,o&&_>=3&&(u[_]!==u[0]||u[_+1]!==u[1])&&le(u,u[0],u[1],u[2]),u.length&&t.push(u)}function oe(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function ie(e,t,n,r,a,o){for(var i=0;i<e.length;i++)ae(e[i],t,n,r,a,o,!1)}function le(e,t,n,r){e.push(t),e.push(n),e.push(r)}function se(e,t,n,r,a,o){var i=(o-t)/(r-t);return e.push(o),e.push(n+(a-n)*i),e.push(1),i}function ue(e,t,n,r,a,o){var i=(o-n)/(a-n);return e.push(t+(r-t)*i),e.push(o),e.push(1),i}function ce(e,t){for(var n=[],r=0;r<e.length;r++){var a,o=e[r],i=o.type;if("Point"===i||"MultiPoint"===i||"LineString"===i)a=fe(o.geometry,t);else if("MultiLineString"===i||"Polygon"===i){a=[];for(var l=0;l<o.geometry.length;l++)a.push(fe(o.geometry[l],t))}else if("MultiPolygon"===i)for(a=[],l=0;l<o.geometry.length;l++){for(var s=[],u=0;u<o.geometry[l].length;u++)s.push(fe(o.geometry[l][u],t));a.push(s)}n.push(Y(o.id,i,a,o.tags))}return n}function fe(e,t){var n=[];n.size=e.size,void 0!==e.start&&(n.start=e.start,n.end=e.end);for(var r=0;r<e.length;r+=3)n.push(e[r]+t,e[r+1],e[r+2]);return n}function pe(e,t){if(e.transformed)return e;var n,r,a,o=1<<e.z,i=e.x,l=e.y;for(n=0;n<e.features.length;n++){var s=e.features[n],u=s.geometry,c=s.type;if(s.geometry=[],1===c)for(r=0;r<u.length;r+=2)s.geometry.push(de(u[r],u[r+1],t,o,i,l));else for(r=0;r<u.length;r++){var f=[];for(a=0;a<u[r].length;a+=2)f.push(de(u[r][a],u[r][a+1],t,o,i,l));s.geometry.push(f)}}return e.transformed=!0,e}function de(e,t,n,r,a,o){return[Math.round(n*(e*r-a)),Math.round(n*(t*r-o))]}function he(e,t,n,r,a){for(var o=t===a.maxZoom?0:a.tolerance/((1<<t)*a.extent),i={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:n,y:r,z:t,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},l=0;l<e.length;l++){i.numFeatures++,ve(i,e[l],o,a);var s=e[l].minX,u=e[l].minY,c=e[l].maxX,f=e[l].maxY;s<i.minX&&(i.minX=s),u<i.minY&&(i.minY=u),c>i.maxX&&(i.maxX=c),f>i.maxY&&(i.maxY=f)}return i}function ve(e,t,n,r){var a=t.geometry,o=t.type,i=[];if("Point"===o||"MultiPoint"===o)for(var l=0;l<a.length;l+=3)i.push(a[l]),i.push(a[l+1]),e.numPoints++,e.numSimplified++;else if("LineString"===o)me(i,a,e,n,!1,!1);else if("MultiLineString"===o||"Polygon"===o)for(l=0;l<a.length;l++)me(i,a[l],e,n,"Polygon"===o,0===l);else if("MultiPolygon"===o)for(var s=0;s<a.length;s++){var u=a[s];for(l=0;l<u.length;l++)me(i,u[l],e,n,!0,0===l)}if(i.length){var c=t.tags||null;if("LineString"===o&&r.lineMetrics){for(var f in c={},t.tags)c[f]=t.tags[f];c.mapbox_clip_start=a.start/a.size,c.mapbox_clip_end=a.end/a.size}var p={geometry:i,type:"Polygon"===o||"MultiPolygon"===o?3:"LineString"===o||"MultiLineString"===o?2:1,tags:c};null!==t.id&&(p.id=t.id),e.features.push(p)}}function me(e,t,n,r,a,o){var i=r*r;if(r>0&&t.size<(a?i:r))n.numPoints+=t.length/3;else{for(var l=[],s=0;s<t.length;s+=3)(0===r||t[s+2]>i)&&(n.numSimplified++,l.push(t[s]),l.push(t[s+1])),n.numPoints++;a&&function(e,t){for(var n=0,r=0,a=e.length,o=a-2;r<a;o=r,r+=2)n+=(e[r]-e[o])*(e[r+1]+e[o+1]);if(n>0===t)for(r=0,a=e.length;r<a/2;r+=2){var i=e[r],l=e[r+1];e[r]=e[a-2-r],e[r+1]=e[a-1-r],e[a-2-r]=i,e[a-1-r]=l}}(l,o),e.push(l)}}function ye(e,t){var n=(t=this.options=function(e,t){for(var n in t)e[n]=t[n];return e}(Object.create(this.options),t)).debug;if(n&&console.time("preprocess data"),t.maxZoom<0||t.maxZoom>24)throw new Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(e,t){var n=[];if("FeatureCollection"===e.type)for(var r=0;r<e.features.length;r++)X(n,e.features[r],t,r);else X(n,"Feature"===e.type?e:{geometry:e},t);return n}(e,t);this.tiles={},this.tileCoords=[],n&&(console.timeEnd("preprocess data"),console.log("index: maxZoom: %d, maxPoints: %d",t.indexMaxZoom,t.indexMaxPoints),console.time("generate tiles"),this.stats={},this.total=0),(r=function(e,t){var n=t.buffer/t.extent,r=e,a=ne(e,1,-1-n,n,0,-1,2,t),o=ne(e,1,1-n,2+n,0,-1,2,t);return(a||o)&&(r=ne(e,1,-n,1+n,0,-1,2,t)||[],a&&(r=ce(a,1).concat(r)),o&&(r=r.concat(ce(o,-1)))),r}(r,t)).length&&this.splitTile(r,0,0,0),n&&(r.length&&console.log("features: %d, points: %d",this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd("generate tiles"),console.log("tiles generated:",this.total,JSON.stringify(this.stats)))}function ge(e,t,n){return 32*((1<<e)*n+t)+e}function be(e,t){var n=e.tileID.canonical;if(!this._geoJSONIndex)return t(null,null);var r=this._geoJSONIndex.getTile(n.z,n.x,n.y);if(!r)return t(null,null);var a=new v(r.features),o=x(a);0===o.byteOffset&&o.byteLength===o.buffer.byteLength||(o=new Uint8Array(o)),t(null,{vectorTile:a,rawData:o.buffer})}z.prototype.load=function(e){var t=this.options,n=t.log,r=t.minZoom,a=t.maxZoom,o=t.nodeSize;n&&console.time("total time");var i="prepare "+e.length+" points";n&&console.time(i),this.points=e;for(var l=[],s=0;s<e.length;s++)e[s].geometry&&l.push(F(e[s],s));this.trees[a+1]=new I(l,q,$,o,Float32Array),n&&console.timeEnd(i);for(var u=a;u>=r;u--){var c=+Date.now();l=this._cluster(l,u),this.trees[u]=new I(l,q,$,o,Float32Array),n&&console.log("z%d: %d clusters in %dms",u,l.length,+Date.now()-c)}return n&&console.timeEnd("total time"),this},z.prototype.getClusters=function(e,t){var n=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),a=180===e[2]?180:((e[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)n=-180,a=180;else if(n>a){var i=this.getClusters([n,r,180,o],t),l=this.getClusters([-180,r,a,o],t);return i.concat(l)}for(var s=this.trees[this._limitZoom(t)],u=[],c=0,f=s.range(H(n),U(o),H(a),U(r));c<f.length;c+=1){var p=s.points[f[c]];u.push(p.numPoints?B(p):this.points[p.index])}return u},z.prototype.getChildren=function(e){var t=this._getOriginId(e),n=this._getOriginZoom(e),r="No cluster with the specified id.",a=this.trees[n];if(!a)throw new Error(r);var o=a.points[t];if(!o)throw new Error(r);for(var i=this.options.radius/(this.options.extent*Math.pow(2,n-1)),l=[],s=0,u=a.within(o.x,o.y,i);s<u.length;s+=1){var c=a.points[u[s]];c.parentId===e&&l.push(c.numPoints?B(c):this.points[c.index])}if(0===l.length)throw new Error(r);return l},z.prototype.getLeaves=function(e,t,n){var r=[];return this._appendLeaves(r,e,t=t||10,n=n||0,0),r},z.prototype.getTile=function(e,t,n){var r=this.trees[this._limitZoom(e)],a=Math.pow(2,e),o=this.options,i=o.radius/o.extent,l=(n-i)/a,s=(n+1+i)/a,u={features:[]};return this._addTileFeatures(r.range((t-i)/a,l,(t+1+i)/a,s),r.points,t,n,a,u),0===t&&this._addTileFeatures(r.range(1-i/a,l,1,s),r.points,a,n,a,u),t===a-1&&this._addTileFeatures(r.range(0,l,i/a,s),r.points,-1,n,a,u),u.features.length?u:null},z.prototype.getClusterExpansionZoom=function(e){for(var t=this._getOriginZoom(e)-1;t<=this.options.maxZoom;){var n=this.getChildren(e);if(t++,1!==n.length)break;e=n[0].properties.cluster_id}return t},z.prototype._appendLeaves=function(e,t,n,r,a){for(var o=0,i=this.getChildren(t);o<i.length;o+=1){var l=i[o],s=l.properties;if(s&&s.cluster?a+s.point_count<=r?a+=s.point_count:a=this._appendLeaves(e,s.cluster_id,n,r,a):a<r?a++:e.push(l),e.length===n)break}return a},z.prototype._addTileFeatures=function(e,t,n,r,a,o){for(var i=0,l=e;i<l.length;i+=1){var s=t[l[i]],u=s.numPoints,c={type:1,geometry:[[Math.round(this.options.extent*(s.x*a-n)),Math.round(this.options.extent*(s.y*a-r))]],tags:u?V(s):this.points[s.index].properties},f=void 0;u?f=s.id:this.options.generateId?f=s.index:this.points[s.index].id&&(f=this.points[s.index].id),void 0!==f&&(c.id=f),o.features.push(c)}},z.prototype._limitZoom=function(e){return Math.max(this.options.minZoom,Math.min(e,this.options.maxZoom+1))},z.prototype._cluster=function(e,t){for(var n=[],r=this.options,a=r.reduce,o=r.radius/(r.extent*Math.pow(2,t)),i=0;i<e.length;i++){var l=e[i];if(!(l.zoom<=t)){l.zoom=t;for(var s=this.trees[t+1],u=s.within(l.x,l.y,o),c=l.numPoints||1,f=l.x*c,p=l.y*c,d=a&&c>1?this._map(l,!0):null,h=(i<<5)+(t+1)+this.points.length,v=0,m=u;v<m.length;v+=1){var y=s.points[m[v]];if(!(y.zoom<=t)){y.zoom=t;var g=y.numPoints||1;f+=y.x*g,p+=y.y*g,c+=g,y.parentId=h,a&&(d||(d=this._map(l,!0)),a(d,this._map(y)))}}1===c?n.push(l):(l.parentId=h,n.push(N(f/c,p/c,h,c,d)))}}return n},z.prototype._getOriginId=function(e){return e-this.points.length>>5},z.prototype._getOriginZoom=function(e){return(e-this.points.length)%32},z.prototype._map=function(e,t){if(e.numPoints)return t?W({},e.properties):e.properties;var n=this.points[e.index].properties,r=this.options.map(n);return t&&r===n?W({},r):r},ye.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},ye.prototype.splitTile=function(e,t,n,r,a,o,i){for(var l=[e,t,n,r],s=this.options,u=s.debug;l.length;){r=l.pop(),n=l.pop(),t=l.pop(),e=l.pop();var c=1<<t,f=ge(t,n,r),p=this.tiles[f];if(!p&&(u>1&&console.time("creation"),p=this.tiles[f]=he(e,t,n,r,s),this.tileCoords.push({z:t,x:n,y:r}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,n,r,p.numFeatures,p.numPoints,p.numSimplified),console.timeEnd("creation"));var d="z"+t;this.stats[d]=(this.stats[d]||0)+1,this.total++}if(p.source=e,a){if(t===s.maxZoom||t===a)continue;var h=1<<a-t;if(n!==Math.floor(o/h)||r!==Math.floor(i/h))continue}else if(t===s.indexMaxZoom||p.numPoints<=s.indexMaxPoints)continue;if(p.source=null,0!==e.length){u>1&&console.time("clipping");var v,m,y,g,b,x,_=.5*s.buffer/s.extent,w=.5-_,k=.5+_,T=1+_;v=m=y=g=null,b=ne(e,c,n-_,n+k,0,p.minX,p.maxX,s),x=ne(e,c,n+w,n+T,0,p.minX,p.maxX,s),e=null,b&&(v=ne(b,c,r-_,r+k,1,p.minY,p.maxY,s),m=ne(b,c,r+w,r+T,1,p.minY,p.maxY,s),b=null),x&&(y=ne(x,c,r-_,r+k,1,p.minY,p.maxY,s),g=ne(x,c,r+w,r+T,1,p.minY,p.maxY,s),x=null),u>1&&console.timeEnd("clipping"),l.push(v||[],t+1,2*n,2*r),l.push(m||[],t+1,2*n,2*r+1),l.push(y||[],t+1,2*n+1,2*r),l.push(g||[],t+1,2*n+1,2*r+1)}}},ye.prototype.getTile=function(e,t,n){var r=this.options,a=r.extent,o=r.debug;if(e<0||e>24)return null;var i=1<<e,l=ge(e,t=(t%i+i)%i,n);if(this.tiles[l])return pe(this.tiles[l],a);o>1&&console.log("drilling down to z%d-%d-%d",e,t,n);for(var s,u=e,c=t,f=n;!s&&u>0;)u--,c=Math.floor(c/2),f=Math.floor(f/2),s=this.tiles[ge(u,c,f)];return s&&s.source?(o>1&&console.log("found parent tile z%d-%d-%d",u,c,f),o>1&&console.time("drilling down"),this.splitTile(s.source,u,c,f,e,t,n),o>1&&console.timeEnd("drilling down"),this.tiles[l]?pe(this.tiles[l],a):null):null};var xe=function(t){function n(e,n,r,a){t.call(this,e,n,r,be),a&&(this.loadGeoJSON=a)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.loadData=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=t,this._pendingLoadDataParams=e,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},n.prototype._loadData=function(){var t=this;if(this._pendingCallback&&this._pendingLoadDataParams){var n=this._pendingCallback,r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var a=!!(r&&r.request&&r.request.collectResourceTiming)&&new e.RequestPerformance(r.request);this.loadGeoJSON(r,(function(o,i){if(o||!i)return n(o);if("object"!=typeof i)return n(new Error("Input data given to '"+r.source+"' is not a valid GeoJSON object."));!function e(t,n){var r,a=t&&t.type;if("FeatureCollection"===a)for(r=0;r<t.features.length;r++)e(t.features[r],n);else if("GeometryCollection"===a)for(r=0;r<t.geometries.length;r++)e(t.geometries[r],n);else if("Feature"===a)e(t.geometry,n);else if("Polygon"===a)f(t.coordinates,n);else if("MultiPolygon"===a)for(r=0;r<t.coordinates.length;r++)f(t.coordinates[r],n);return t}(i,!0);try{t._geoJSONIndex=r.cluster?new z(function(t){var n=t.superclusterOptions,r=t.clusterProperties;if(!r||!n)return n;for(var a={},o={},i={accumulated:null,zoom:0},l={properties:null},s=Object.keys(r),u=0,c=s;u<c.length;u+=1){var f=c[u],p=r[f],d=p[0],h=e.createExpression(p[1]),v=e.createExpression("string"==typeof d?[d,["accumulated"],["get",f]]:d);a[f]=h.value,o[f]=v.value}return n.map=function(e){l.properties=e;for(var t={},n=0,r=s;n<r.length;n+=1){var o=r[n];t[o]=a[o].evaluate(i,l)}return t},n.reduce=function(e,t){l.properties=t;for(var n=0,r=s;n<r.length;n+=1){var a=r[n];i.accumulated=e[a],e[a]=o[a].evaluate(i,l)}},n}(r)).load(i.features):function(e,t){return new ye(e,t)}(i,r.geojsonVtOptions)}catch(o){return n(o)}t.loaded={};var l={};if(a){var s=a.finish();s&&(l.resourceTiming={},l.resourceTiming[r.source]=JSON.parse(JSON.stringify(s)))}n(null,l)}))}},n.prototype.coalesce=function(){"Coalescing"===this._state?this._state="Idle":"NeedsLoadData"===this._state&&(this._state="Coalescing",this._loadData())},n.prototype.reloadTile=function(e,n){var r=this.loaded;return r&&r[e.uid]?t.prototype.reloadTile.call(this,e,n):this.loadTile(e,n)},n.prototype.loadGeoJSON=function(t,n){if(t.request)e.getJSON(t.request,n);else{if("string"!=typeof t.data)return n(new Error("Input data given to '"+t.source+"' is not a valid GeoJSON object."));try{return n(null,JSON.parse(t.data))}catch(e){return n(new Error("Input data given to '"+t.source+"' is not a valid GeoJSON object."))}}},n.prototype.removeSource=function(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),t()},n.prototype.getClusterExpansionZoom=function(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}},n.prototype.getClusterChildren=function(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}},n.prototype.getClusterLeaves=function(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}},n}(s),_e=function(t){var n=this;this.self=t,this.actor=new e.Actor(t,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:s,geojson:xe},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(e,t){if(n.workerSourceTypes[e])throw new Error('Worker source with name "'+e+'" already registered.');n.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=function(t){if(e.plugin.isParsed())throw new Error("RTL text plugin already registered.");e.plugin.applyArabicShaping=t.applyArabicShaping,e.plugin.processBidirectionalText=t.processBidirectionalText,e.plugin.processStyledBidirectionalText=t.processStyledBidirectionalText}};return _e.prototype.setReferrer=function(e,t){this.referrer=t},_e.prototype.setImages=function(e,t,n){for(var r in this.availableImages[e]=t,this.workerSources[e]){var a=this.workerSources[e][r];for(var o in a)a[o].availableImages=t}n()},_e.prototype.setLayers=function(e,t,n){this.getLayerIndex(e).replace(t),n()},_e.prototype.updateLayers=function(e,t,n){this.getLayerIndex(e).update(t.layers,t.removedIds),n()},_e.prototype.loadTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).loadTile(t,n)},_e.prototype.loadDEMTile=function(e,t,n){this.getDEMWorkerSource(e,t.source).loadTile(t,n)},_e.prototype.reloadTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).reloadTile(t,n)},_e.prototype.abortTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).abortTile(t,n)},_e.prototype.removeTile=function(e,t,n){this.getWorkerSource(e,t.type,t.source).removeTile(t,n)},_e.prototype.removeDEMTile=function(e,t){this.getDEMWorkerSource(e,t.source).removeTile(t)},_e.prototype.removeSource=function(e,t,n){if(this.workerSources[e]&&this.workerSources[e][t.type]&&this.workerSources[e][t.type][t.source]){var r=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==r.removeSource?r.removeSource(t,n):n()}},_e.prototype.loadWorkerSource=function(e,t,n){try{this.self.importScripts(t.url),n()}catch(e){n(e.toString())}},_e.prototype.syncRTLPluginState=function(t,n,r){try{e.plugin.setState(n);var a=e.plugin.getPluginURL();if(e.plugin.isLoaded()&&!e.plugin.isParsed()&&null!=a){this.self.importScripts(a);var o=e.plugin.isParsed();r(o?void 0:new Error("RTL Text Plugin failed to import scripts from "+a),o)}}catch(e){r(e.toString())}},_e.prototype.getAvailableImages=function(e){var t=this.availableImages[e];return t||(t=[]),t},_e.prototype.getLayerIndex=function(e){var t=this.layerIndexes[e];return t||(t=this.layerIndexes[e]=new r),t},_e.prototype.getWorkerSource=function(e,t,n){var r=this;return this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),this.workerSources[e][t][n]||(this.workerSources[e][t][n]=new this.workerSourceTypes[t]({send:function(t,n,a){r.actor.send(t,n,a,e)}},this.getLayerIndex(e),this.getAvailableImages(e))),this.workerSources[e][t][n]},_e.prototype.getDEMWorkerSource=function(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new c),this.demWorkerSources[e][t]},_e.prototype.enforceCacheSizeLimit=function(t,n){e.enforceCacheSizeLimit(n)},"undefined"!=typeof WorkerGlobalScope&&void 0!==e.window&&e.window instanceof WorkerGlobalScope&&(e.window.worker=new _e(e.window)),_e})),r(["./shared"],(function(e){var t=e.createCommonjsModule((function(e){function t(e){return!n(e)}function n(e){return"undefined"==typeof window||"undefined"==typeof document?"not a browser":Array.prototype&&Array.prototype.every&&Array.prototype.filter&&Array.prototype.forEach&&Array.prototype.indexOf&&Array.prototype.lastIndexOf&&Array.prototype.map&&Array.prototype.some&&Array.prototype.reduce&&Array.prototype.reduceRight&&Array.isArray?Function.prototype&&Function.prototype.bind?Object.keys&&Object.create&&Object.getPrototypeOf&&Object.getOwnPropertyNames&&Object.isSealed&&Object.isFrozen&&Object.isExtensible&&Object.getOwnPropertyDescriptor&&Object.defineProperty&&Object.defineProperties&&Object.seal&&Object.freeze&&Object.preventExtensions?"JSON"in window&&"parse"in JSON&&"stringify"in JSON?function(){if(!("Worker"in window&&"Blob"in window&&"URL"in window))return!1;var e,t,n=new Blob([""],{type:"text/javascript"}),r=URL.createObjectURL(n);try{t=new Worker(r),e=!0}catch(t){e=!1}return t&&t.terminate(),URL.revokeObjectURL(r),e}()?"Uint8ClampedArray"in window?ArrayBuffer.isView?function(){var e=document.createElement("canvas");e.width=e.height=1;var t=e.getContext("2d");if(!t)return!1;var n=t.getImageData(0,0,1,1);return n&&n.width===e.width}()?(void 0===r[n=e&&e.failIfMajorPerformanceCaveat]&&(r[n]=function(e){var n=function(e){var n=document.createElement("canvas"),r=Object.create(t.webGLContextAttributes);return r.failIfMajorPerformanceCaveat=e,n.probablySupportsContext?n.probablySupportsContext("webgl",r)||n.probablySupportsContext("experimental-webgl",r):n.supportsContext?n.supportsContext("webgl",r)||n.supportsContext("experimental-webgl",r):n.getContext("webgl",r)||n.getContext("experimental-webgl",r)}(e);if(!n)return!1;var r=n.createShader(n.VERTEX_SHADER);return!(!r||n.isContextLost())&&(n.shaderSource(r,"void main() {}"),n.compileShader(r),!0===n.getShaderParameter(r,n.COMPILE_STATUS))}(n)),r[n]?void 0:"insufficient WebGL support"):"insufficient Canvas/getImageData support":"insufficient ArrayBuffer support":"insufficient Uint8ClampedArray support":"insufficient worker support":"insufficient JSON support":"insufficient Object support":"insufficient Function support":"insufficent Array support";var n}e.exports?e.exports=t:window&&(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=t,window.mapboxgl.notSupportedReason=n);var r={};t.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),n={create:function(t,n,r){var a=e.window.document.createElement(t);return void 0!==n&&(a.className=n),r&&r.appendChild(a),a},createNS:function(t,n){return e.window.document.createElementNS(t,n)}},r=e.window.document.documentElement.style;function a(e){if(!r)return e[0];for(var t=0;t<e.length;t++)if(e[t]in r)return e[t];return e[0]}var o,i=a(["userSelect","MozUserSelect","WebkitUserSelect","msUserSelect"]);n.disableDrag=function(){r&&i&&(o=r[i],r[i]="none")},n.enableDrag=function(){r&&i&&(r[i]=o)};var l=a(["transform","WebkitTransform"]);n.setTransform=function(e,t){e.style[l]=t};var s=!1;try{var u=Object.defineProperty({},"passive",{get:function(){s=!0}});e.window.addEventListener("test",u,u),e.window.removeEventListener("test",u,u)}catch(e){s=!1}n.addEventListener=function(e,t,n,r){void 0===r&&(r={}),e.addEventListener(t,n,"passive"in r&&s?r:r.capture)},n.removeEventListener=function(e,t,n,r){void 0===r&&(r={}),e.removeEventListener(t,n,"passive"in r&&s?r:r.capture)};var c=function(t){t.preventDefault(),t.stopPropagation(),e.window.removeEventListener("click",c,!0)};function f(e){var t=e.userImage;return!!(t&&t.render&&t.render())&&(e.data.replace(new Uint8Array(t.data.buffer)),!0)}n.suppressClick=function(){e.window.addEventListener("click",c,!0),e.window.setTimeout((function(){e.window.removeEventListener("click",c,!0)}),0)},n.mousePos=function(t,n){var r=t.getBoundingClientRect();return new e.Point(n.clientX-r.left-t.clientLeft,n.clientY-r.top-t.clientTop)},n.touchPos=function(t,n){for(var r=t.getBoundingClientRect(),a=[],o=0;o<n.length;o++)a.push(new e.Point(n[o].clientX-r.left-t.clientLeft,n[o].clientY-r.top-t.clientTop));return a},n.mouseButton=function(t){return void 0!==e.window.InstallTrigger&&2===t.button&&t.ctrlKey&&e.window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button},n.remove=function(e){e.parentNode&&e.parentNode.removeChild(e)};var p=function(t){function n(){t.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.RGBAImage({width:1,height:1}),this.dirty=!0}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.isLoaded=function(){return this.loaded},n.prototype.setLoaded=function(e){if(this.loaded!==e&&(this.loaded=e,e)){for(var t=0,n=this.requestors;t<n.length;t+=1){var r=n[t];this._notify(r.ids,r.callback)}this.requestors=[]}},n.prototype.getImage=function(e){return this.images[e]},n.prototype.addImage=function(e,t){this._validate(e,t)&&(this.images[e]=t)},n.prototype._validate=function(t,n){var r=!0;return this._validateStretch(n.stretchX,n.data&&n.data.width)||(this.fire(new e.ErrorEvent(new Error('Image "'+t+'" has invalid "stretchX" value'))),r=!1),this._validateStretch(n.stretchY,n.data&&n.data.height)||(this.fire(new e.ErrorEvent(new Error('Image "'+t+'" has invalid "stretchY" value'))),r=!1),this._validateContent(n.content,n)||(this.fire(new e.ErrorEvent(new Error('Image "'+t+'" has invalid "content" value'))),r=!1),r},n.prototype._validateStretch=function(e,t){if(!e)return!0;for(var n=0,r=0,a=e;r<a.length;r+=1){var o=a[r];if(o[0]<n||o[1]<o[0]||t<o[1])return!1;n=o[1]}return!0},n.prototype._validateContent=function(e,t){return!(e&&(4!==e.length||e[0]<0||t.data.width<e[0]||e[1]<0||t.data.height<e[1]||e[2]<0||t.data.width<e[2]||e[3]<0||t.data.height<e[3]||e[2]<e[0]||e[3]<e[1]))},n.prototype.updateImage=function(e,t){t.version=this.images[e].version+1,this.images[e]=t,this.updatedImages[e]=!0},n.prototype.removeImage=function(e){var t=this.images[e];delete this.images[e],delete this.patterns[e],t.userImage&&t.userImage.onRemove&&t.userImage.onRemove()},n.prototype.listImages=function(){return Object.keys(this.images)},n.prototype.getImages=function(e,t){var n=!0;if(!this.isLoaded())for(var r=0,a=e;r<a.length;r+=1)this.images[a[r]]||(n=!1);this.isLoaded()||n?this._notify(e,t):this.requestors.push({ids:e,callback:t})},n.prototype._notify=function(t,n){for(var r={},a=0,o=t;a<o.length;a+=1){var i=o[a];this.images[i]||this.fire(new e.Event("styleimagemissing",{id:i}));var l=this.images[i];l?r[i]={data:l.data.clone(),pixelRatio:l.pixelRatio,sdf:l.sdf,version:l.version,stretchX:l.stretchX,stretchY:l.stretchY,content:l.content,hasRenderCallback:Boolean(l.userImage&&l.userImage.render)}:e.warnOnce('Image "'+i+'" could not be loaded. Please make sure you have added the image with map.addImage() or a "sprite" property in your style. You can provide missing images by listening for the "styleimagemissing" map event.')}n(null,r)},n.prototype.getPixelSize=function(){var e=this.atlasImage;return{width:e.width,height:e.height}},n.prototype.getPattern=function(t){var n=this.patterns[t],r=this.getImage(t);if(!r)return null;if(n&&n.position.version===r.version)return n.position;if(n)n.position.version=r.version;else{var a={w:r.data.width+2,h:r.data.height+2,x:0,y:0},o=new e.ImagePosition(a,r);this.patterns[t]={bin:a,position:o}}return this._updatePatternAtlas(),this.patterns[t].position},n.prototype.bind=function(t){var n=t.gl;this.atlasTexture?this.dirty&&(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new e.Texture(t,this.atlasImage,n.RGBA),this.atlasTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)},n.prototype._updatePatternAtlas=function(){var t=[];for(var n in this.patterns)t.push(this.patterns[n].bin);var r=e.potpack(t),a=r.w,o=r.h,i=this.atlasImage;for(var l in i.resize({width:a||1,height:o||1}),this.patterns){var s=this.patterns[l].bin,u=s.x+1,c=s.y+1,f=this.images[l].data,p=f.width,d=f.height;e.RGBAImage.copy(f,i,{x:0,y:0},{x:u,y:c},{width:p,height:d}),e.RGBAImage.copy(f,i,{x:0,y:d-1},{x:u,y:c-1},{width:p,height:1}),e.RGBAImage.copy(f,i,{x:0,y:0},{x:u,y:c+d},{width:p,height:1}),e.RGBAImage.copy(f,i,{x:p-1,y:0},{x:u-1,y:c},{width:1,height:d}),e.RGBAImage.copy(f,i,{x:0,y:0},{x:u+p,y:c},{width:1,height:d})}this.dirty=!0},n.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},n.prototype.dispatchRenderCallbacks=function(e){for(var t=0,n=e;t<n.length;t+=1){var r=n[t];if(!this.callbackDispatchedThisFrame[r]){this.callbackDispatchedThisFrame[r]=!0;var a=this.images[r];f(a)&&this.updateImage(r,a)}}},n}(e.Evented),d=m,h=m,v=1e20;function m(e,t,n,r,a,o){this.fontSize=e||24,this.buffer=void 0===t?3:t,this.cutoff=r||.25,this.fontFamily=a||"sans-serif",this.fontWeight=o||"normal",this.radius=n||8;var i=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=i,this.ctx=this.canvas.getContext("2d"),this.ctx.font=this.fontWeight+" "+this.fontSize+"px "+this.fontFamily,this.ctx.textBaseline="middle",this.ctx.fillStyle="black",this.gridOuter=new Float64Array(i*i),this.gridInner=new Float64Array(i*i),this.f=new Float64Array(i),this.d=new Float64Array(i),this.z=new Float64Array(i+1),this.v=new Int16Array(i),this.middle=Math.round(i/2*(navigator.userAgent.indexOf("Gecko/")>=0?1.2:1))}function y(e,t,n,r,a,o,i){for(var l=0;l<t;l++){for(var s=0;s<n;s++)r[s]=e[s*t+l];for(g(r,a,o,i,n),s=0;s<n;s++)e[s*t+l]=a[s]}for(s=0;s<n;s++){for(l=0;l<t;l++)r[l]=e[s*t+l];for(g(r,a,o,i,t),l=0;l<t;l++)e[s*t+l]=Math.sqrt(a[l])}}function g(e,t,n,r,a){n[0]=0,r[0]=-v,r[1]=+v;for(var o=1,i=0;o<a;o++){for(var l=(e[o]+o*o-(e[n[i]]+n[i]*n[i]))/(2*o-2*n[i]);l<=r[i];)i--,l=(e[o]+o*o-(e[n[i]]+n[i]*n[i]))/(2*o-2*n[i]);n[++i]=o,r[i]=l,r[i+1]=+v}for(o=0,i=0;o<a;o++){for(;r[i+1]<o;)i++;t[o]=(o-n[i])*(o-n[i])+e[n[i]]}}m.prototype.draw=function(e){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(e,this.buffer,this.middle);for(var t=this.ctx.getImageData(0,0,this.size,this.size),n=new Uint8ClampedArray(this.size*this.size),r=0;r<this.size*this.size;r++){var a=t.data[4*r+3]/255;this.gridOuter[r]=1===a?0:0===a?v:Math.pow(Math.max(0,.5-a),2),this.gridInner[r]=1===a?v:0===a?0:Math.pow(Math.max(0,a-.5),2)}for(y(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),y(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),r=0;r<this.size*this.size;r++)n[r]=Math.max(0,Math.min(255,Math.round(255-255*((this.gridOuter[r]-this.gridInner[r])/this.radius+this.cutoff))));return n},d.default=h;var b=function(e,t){this.requestManager=e,this.localIdeographFontFamily=t,this.entries={}};b.prototype.setURL=function(e){this.url=e},b.prototype.getGlyphs=function(t,n){var r=this,a=[];for(var o in t)for(var i=0,l=t[o];i<l.length;i+=1)a.push({stack:o,id:l[i]});e.asyncAll(a,(function(e,t){var n=e.stack,a=e.id,o=r.entries[n];o||(o=r.entries[n]={glyphs:{},requests:{},ranges:{}});var i=o.glyphs[a];if(void 0===i){if(i=r._tinySDF(o,n,a))return o.glyphs[a]=i,void t(null,{stack:n,id:a,glyph:i});var l=Math.floor(a/256);if(256*l>65535)t(new Error("glyphs > 65535 not supported"));else if(o.ranges[l])t(null,{stack:n,id:a,glyph:i});else{var s=o.requests[l];s||(s=o.requests[l]=[],b.loadGlyphRange(n,l,r.url,r.requestManager,(function(e,t){if(t){for(var n in t)r._doesCharSupportLocalGlyph(+n)||(o.glyphs[+n]=t[+n]);o.ranges[l]=!0}for(var a=0,i=s;a<i.length;a+=1)(0,i[a])(e,t);delete o.requests[l]}))),s.push((function(e,r){e?t(e):r&&t(null,{stack:n,id:a,glyph:r[a]||null})}))}}else t(null,{stack:n,id:a,glyph:i})}),(function(e,t){if(e)n(e);else if(t){for(var r={},a=0,o=t;a<o.length;a+=1){var i=o[a],l=i.stack,s=i.id,u=i.glyph;(r[l]||(r[l]={}))[s]=u&&{id:u.id,bitmap:u.bitmap.clone(),metrics:u.metrics}}n(null,r)}}))},b.prototype._doesCharSupportLocalGlyph=function(t){return!!this.localIdeographFontFamily&&(e.isChar["CJK Unified Ideographs"](t)||e.isChar["Hangul Syllables"](t)||e.isChar.Hiragana(t)||e.isChar.Katakana(t))},b.prototype._tinySDF=function(t,n,r){var a=this.localIdeographFontFamily;if(a&&this._doesCharSupportLocalGlyph(r)){var o=t.tinySDF;if(!o){var i="400";/bold/i.test(n)?i="900":/medium/i.test(n)?i="500":/light/i.test(n)&&(i="200"),o=t.tinySDF=new b.TinySDF(24,3,8,.25,a,i)}return{id:r,bitmap:new e.AlphaImage({width:30,height:30},o.draw(String.fromCharCode(r))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},b.loadGlyphRange=function(t,n,r,a,o){var i=256*n,l=i+255,s=a.transformRequest(a.normalizeGlyphsURL(r).replace("{fontstack}",t).replace("{range}",i+"-"+l),e.ResourceType.Glyphs);e.getArrayBuffer(s,(function(t,n){if(t)o(t);else if(n){for(var r={},a=0,i=e.parseGlyphPBF(n);a<i.length;a+=1){var l=i[a];r[l.id]=l}o(null,r)}}))},b.TinySDF=d;var x=function(){this.specification=e.styleSpec.light.position};x.prototype.possiblyEvaluate=function(t,n){return e.sphericalToCartesian(t.expression.evaluate(n))},x.prototype.interpolate=function(t,n,r){return{x:e.number(t.x,n.x,r),y:e.number(t.y,n.y,r),z:e.number(t.z,n.z,r)}};var _=new e.Properties({anchor:new e.DataConstantProperty(e.styleSpec.light.anchor),position:new x,color:new e.DataConstantProperty(e.styleSpec.light.color),intensity:new e.DataConstantProperty(e.styleSpec.light.intensity)}),w=function(t){function n(n){t.call(this),this._transitionable=new e.Transitionable(_),this.setLight(n),this._transitioning=this._transitionable.untransitioned()}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.getLight=function(){return this._transitionable.serialize()},n.prototype.setLight=function(t,n){if(void 0===n&&(n={}),!this._validate(e.validateLight,t,n))for(var r in t){var a=t[r];e.endsWith(r,"-transition")?this._transitionable.setTransition(r.slice(0,-"-transition".length),a):this._transitionable.setValue(r,a)}},n.prototype.updateTransitions=function(e){this._transitioning=this._transitionable.transitioned(e,this._transitioning)},n.prototype.hasTransition=function(){return this._transitioning.hasTransition()},n.prototype.recalculate=function(e){this.properties=this._transitioning.possiblyEvaluate(e)},n.prototype._validate=function(t,n,r){return(!r||!1!==r.validate)&&e.emitValidationErrors(this,t.call(e.validateStyle,e.extend({value:n,style:{glyphs:!0,sprite:!0},styleSpec:e.styleSpec})))},n}(e.Evented),k=function(e,t){this.width=e,this.height=t,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};k.prototype.getDash=function(e,t){var n=e.join(",")+String(t);return this.dashEntry[n]||(this.dashEntry[n]=this.addDash(e,t)),this.dashEntry[n]},k.prototype.getDashRanges=function(e,t,n){var r=[],a=e.length%2==1?-e[e.length-1]*n:0,o=e[0]*n,i=!0;r.push({left:a,right:o,isDash:i,zeroLength:0===e[0]});for(var l=e[0],s=1;s<e.length;s++){var u=e[s];r.push({left:a=l*n,right:o=(l+=u)*n,isDash:i=!i,zeroLength:0===u})}return r},k.prototype.addRoundDash=function(e,t,n){for(var r=t/2,a=-n;a<=n;a++)for(var o=this.width*(this.nextRow+n+a),i=0,l=e[i],s=0;s<this.width;s++){s/l.right>1&&(l=e[++i]);var u=Math.abs(s-l.left),c=Math.abs(s-l.right),f=Math.min(u,c),p=void 0,d=a/n*(r+1);if(l.isDash){var h=r-Math.abs(d);p=Math.sqrt(f*f+h*h)}else p=r-Math.sqrt(f*f+d*d);this.data[o+s]=Math.max(0,Math.min(255,p+128))}},k.prototype.addRegularDash=function(e){for(var t=e.length-1;t>=0;--t){var n=e[t],r=e[t+1];n.zeroLength?e.splice(t,1):r&&r.isDash===n.isDash&&(r.left=n.left,e.splice(t,1))}var a=e[0],o=e[e.length-1];a.isDash===o.isDash&&(a.left=o.left-this.width,o.right=a.right+this.width);for(var i=this.width*this.nextRow,l=0,s=e[l],u=0;u<this.width;u++){u/s.right>1&&(s=e[++l]);var c=Math.abs(u-s.left),f=Math.abs(u-s.right),p=Math.min(c,f);this.data[i+u]=Math.max(0,Math.min(255,(s.isDash?p:-p)+128))}},k.prototype.addDash=function(t,n){var r=n?7:0,a=2*r+1;if(this.nextRow+a>this.height)return e.warnOnce("LineAtlas out of space"),null;for(var o=0,i=0;i<t.length;i++)o+=t[i];if(0!==o){var l=this.width/o,s=this.getDashRanges(t,this.width,l);n?this.addRoundDash(s,l,r):this.addRegularDash(s)}var u={y:(this.nextRow+r+.5)/this.height,height:2*r/this.height,width:o};return this.nextRow+=a,this.dirty=!0,u},k.prototype.bind=function(e){var t=e.gl;this.texture?(t.bindTexture(t.TEXTURE_2D,this.texture),this.dirty&&(this.dirty=!1,t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.width,this.height,t.ALPHA,t.UNSIGNED_BYTE,this.data))):(this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texImage2D(t.TEXTURE_2D,0,t.ALPHA,this.width,this.height,0,t.ALPHA,t.UNSIGNED_BYTE,this.data))};var T=function t(n,r){this.workerPool=n,this.actors=[],this.currentActor=0,this.id=e.uniqueId();for(var a=this.workerPool.acquire(this.id),o=0;o<a.length;o++){var i=new t.Actor(a[o],r,this.id);i.name="Worker "+o,this.actors.push(i)}};function E(t,n,r){var a=function(a,o){if(a)return r(a);if(o){var i=e.pick(e.extend(o,t),["tiles","minzoom","maxzoom","attribution","mapbox_logo","bounds","scheme","tileSize","encoding"]);o.vector_layers&&(i.vectorLayers=o.vector_layers,i.vectorLayerIds=i.vectorLayers.map((function(e){return e.id}))),i.tiles=n.canonicalizeTileset(i,t.url),r(null,i)}};return t.url?e.getJSON(n.transformRequest(n.normalizeSourceURL(t.url),e.ResourceType.Source),a):e.browser.frame((function(){return a(null,t)}))}T.prototype.broadcast=function(t,n,r){e.asyncAll(this.actors,(function(e,r){e.send(t,n,r)}),r=r||function(){})},T.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},T.prototype.remove=function(){this.actors.forEach((function(e){e.remove()})),this.actors=[],this.workerPool.release(this.id)},T.Actor=e.Actor;var O=function(t,n,r){this.bounds=e.LngLatBounds.convert(this.validateBounds(t)),this.minzoom=n||0,this.maxzoom=r||24};O.prototype.validateBounds=function(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]},O.prototype.contains=function(t){var n=Math.pow(2,t.z),r=Math.floor(e.mercatorXfromLng(this.bounds.getWest())*n),a=Math.floor(e.mercatorYfromLat(this.bounds.getNorth())*n),o=Math.ceil(e.mercatorXfromLng(this.bounds.getEast())*n),i=Math.ceil(e.mercatorYfromLat(this.bounds.getSouth())*n);return t.x>=r&&t.x<o&&t.y>=a&&t.y<i};var M=function(t){function n(n,r,a,o){if(t.call(this),this.id=n,this.dispatcher=a,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.extend(this,e.pick(r,["url","scheme","tileSize","promoteId"])),this._options=e.extend({type:"vector"},r),this._collectResourceTiming=r.collectResourceTiming,512!==this.tileSize)throw new Error("vector tile sources must have a tileSize of 512");this.setEventedParent(o)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=E(this._options,this.map._requestManager,(function(n,r){t._tileJSONRequest=null,t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(e.extend(t,r),r.bounds&&(t.tileBounds=new O(r.bounds,t.minzoom,t.maxzoom)),e.postTurnstileEvent(r.tiles,t.map._requestManager._customAccessToken),e.postMapLoadEvent(r.tiles,t.map._getMapId(),t.map._requestManager._skuToken,t.map._requestManager._customAccessToken),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.hasTile=function(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return e.extend({},this._options)},n.prototype.loadTile=function(t,n){var r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme)),a={request:this.map._requestManager.transformRequest(r,e.ResourceType.Tile),uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,tileSize:this.tileSize*t.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function o(r,a){return delete t.request,t.aborted?n(null):r&&404!==r.status?n(r):(a&&a.resourceTiming&&(t.resourceTiming=a.resourceTiming),this.map._refreshExpiredTiles&&a&&t.setExpiryData(a),t.loadVectorData(a,this.map.painter),e.cacheEntryPossiblyAdded(this.dispatcher),n(null),void(t.reloadCallback&&(this.loadTile(t,t.reloadCallback),t.reloadCallback=null)))}a.request.collectResourceTiming=this._collectResourceTiming,t.actor&&"expired"!==t.state?"loading"===t.state?t.reloadCallback=n:t.request=t.actor.send("reloadTile",a,o.bind(this)):(t.actor=this.dispatcher.getActor(),t.request=t.actor.send("loadTile",a,o.bind(this)))},n.prototype.abortTile=function(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id},void 0)},n.prototype.unloadTile=function(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id},void 0)},n.prototype.hasTransition=function(){return!1},n}(e.Evented),S=function(t){function n(n,r,a,o){t.call(this),this.id=n,this.dispatcher=a,this.setEventedParent(o),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.extend({type:"raster"},r),e.extend(this,e.pick(r,["url","scheme","tileSize"]))}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this._tileJSONRequest=E(this._options,this.map._requestManager,(function(n,r){t._tileJSONRequest=null,t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(e.extend(t,r),r.bounds&&(t.tileBounds=new O(r.bounds,t.minzoom,t.maxzoom)),e.postTurnstileEvent(r.tiles),e.postMapLoadEvent(r.tiles,t.map._getMapId(),t.map._requestManager._skuToken),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})),t.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.onRemove=function(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},n.prototype.serialize=function(){return e.extend({},this._options)},n.prototype.hasTile=function(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)},n.prototype.loadTile=function(t,n){var r=this,a=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);t.request=e.getImage(this.map._requestManager.transformRequest(a,e.ResourceType.Tile),(function(a,o){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(a)t.state="errored",n(a);else if(o){r.map._refreshExpiredTiles&&t.setExpiryData(o),delete o.cacheControl,delete o.expires;var i=r.map.painter.context,l=i.gl;t.texture=r.map.painter.getTileTexture(o.width),t.texture?t.texture.update(o,{useMipmap:!0}):(t.texture=new e.Texture(i,o,l.RGBA,{useMipmap:!0}),t.texture.bind(l.LINEAR,l.CLAMP_TO_EDGE,l.LINEAR_MIPMAP_NEAREST),i.extTextureFilterAnisotropic&&l.texParameterf(l.TEXTURE_2D,i.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,i.extTextureFilterAnisotropicMax)),t.state="loaded",e.cacheEntryPossiblyAdded(r.dispatcher),n(null)}}))},n.prototype.abortTile=function(e,t){e.request&&(e.request.cancel(),delete e.request),t()},n.prototype.unloadTile=function(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()},n.prototype.hasTransition=function(){return!1},n}(e.Evented),C=function(t){function n(n,r,a,o){t.call(this,n,r,a,o),this.type="raster-dem",this.maxzoom=22,this._options=e.extend({type:"raster-dem"},r),this.encoding=r.encoding||"mapbox"}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.serialize=function(){return{type:"raster-dem",url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},n.prototype.loadTile=function(t,n){var r=this.map._requestManager.normalizeTileURL(t.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function a(e,r){e&&(t.state="errored",n(e)),r&&(t.dem=r,t.needsHillshadePrepare=!0,t.state="loaded",n(null))}t.request=e.getImage(this.map._requestManager.transformRequest(r,e.ResourceType.Tile),function(r,o){if(delete t.request,t.aborted)t.state="unloaded",n(null);else if(r)t.state="errored",n(r);else if(o){this.map._refreshExpiredTiles&&t.setExpiryData(o),delete o.cacheControl,delete o.expires;var i=e.window.ImageBitmap&&o instanceof e.window.ImageBitmap&&e.offscreenCanvasSupported()?o:e.browser.getImageData(o,1),l={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:i,encoding:this.encoding};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",l,a.bind(this)))}}.bind(this)),t.neighboringTiles=this._getNeighboringTiles(t.tileID)},n.prototype._getNeighboringTiles=function(t){var n=t.canonical,r=Math.pow(2,n.z),a=(n.x-1+r)%r,o=0===n.x?t.wrap-1:t.wrap,i=(n.x+1+r)%r,l=n.x+1===r?t.wrap+1:t.wrap,s={};return s[new e.OverscaledTileID(t.overscaledZ,o,n.z,a,n.y).key]={backfilled:!1},s[new e.OverscaledTileID(t.overscaledZ,l,n.z,i,n.y).key]={backfilled:!1},n.y>0&&(s[new e.OverscaledTileID(t.overscaledZ,o,n.z,a,n.y-1).key]={backfilled:!1},s[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},s[new e.OverscaledTileID(t.overscaledZ,l,n.z,i,n.y-1).key]={backfilled:!1}),n.y+1<r&&(s[new e.OverscaledTileID(t.overscaledZ,o,n.z,a,n.y+1).key]={backfilled:!1},s[new e.OverscaledTileID(t.overscaledZ,t.wrap,n.z,n.x,n.y+1).key]={backfilled:!1},s[new e.OverscaledTileID(t.overscaledZ,l,n.z,i,n.y+1).key]={backfilled:!1}),s},n.prototype.unloadTile=function(e){e.demTexture&&this.map.painter.saveTileTexture(e.demTexture),e.fbo&&(e.fbo.destroy(),delete e.fbo),e.dem&&delete e.dem,delete e.neighboringTiles,e.state="unloaded",e.actor&&e.actor.send("removeDEMTile",{uid:e.uid,source:this.id})},n}(S),A=function(t){function n(n,r,a,o){t.call(this),this.id=n,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=a.getActor(),this.setEventedParent(o),this._data=r.data,this._options=e.extend({},r),this._collectResourceTiming=r.collectResourceTiming,this._resourceTiming=[],void 0!==r.maxzoom&&(this.maxzoom=r.maxzoom),r.type&&(this.type=r.type),r.attribution&&(this.attribution=r.attribution),this.promoteId=r.promoteId;var i=e.EXTENT/this.tileSize;this.workerOptions=e.extend({source:this.id,cluster:r.cluster||!1,geojsonVtOptions:{buffer:(void 0!==r.buffer?r.buffer:128)*i,tolerance:(void 0!==r.tolerance?r.tolerance:.375)*i,extent:e.EXTENT,maxZoom:this.maxzoom,lineMetrics:r.lineMetrics||!1,generateId:r.generateId||!1},superclusterOptions:{maxZoom:void 0!==r.clusterMaxZoom?Math.min(r.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:e.EXTENT,radius:(r.clusterRadius||50)*i,log:!1,generateId:r.generateId||!1},clusterProperties:r.clusterProperties},r.workerOptions)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(){var t=this;this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(n){if(n)t.fire(new e.ErrorEvent(n));else{var r={dataType:"source",sourceDataType:"metadata"};t._collectResourceTiming&&t._resourceTiming&&t._resourceTiming.length>0&&(r.resourceTiming=t._resourceTiming,t._resourceTiming=[]),t.fire(new e.Event("data",r))}}))},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setData=function(t){var n=this;return this._data=t,this.fire(new e.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(t){if(t)n.fire(new e.ErrorEvent(t));else{var r={dataType:"source",sourceDataType:"content"};n._collectResourceTiming&&n._resourceTiming&&n._resourceTiming.length>0&&(r.resourceTiming=n._resourceTiming,n._resourceTiming=[]),n.fire(new e.Event("data",r))}})),this},n.prototype.getClusterExpansionZoom=function(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this},n.prototype.getClusterChildren=function(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this},n.prototype.getClusterLeaves=function(e,t,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:n},r),this},n.prototype._updateWorkerData=function(t){var n=this;this._loaded=!1;var r=e.extend({},this.workerOptions),a=this._data;"string"==typeof a?(r.request=this.map._requestManager.transformRequest(e.browser.resolveURL(a),e.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(a),this.actor.send(this.type+".loadData",r,(function(e,a){n._removed||a&&a.abandoned||(n._loaded=!0,a&&a.resourceTiming&&a.resourceTiming[n.id]&&(n._resourceTiming=a.resourceTiming[n.id].slice(0)),n.actor.send(n.type+".coalesce",{source:r.source},null),t(e))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.loadTile=function(t,n){var r=this,a=t.actor?"reloadTile":"loadTile";t.actor=this.actor,t.request=this.actor.send(a,{type:this.type,uid:t.uid,tileID:t.tileID,zoom:t.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:e.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(e,o){return delete t.request,t.unloadVectorData(),t.aborted?n(null):e?n(e):(t.loadVectorData(o,r.map.painter,"reloadTile"===a),n(null))}))},n.prototype.abortTile=function(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0},n.prototype.unloadTile=function(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})},n.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},n.prototype.serialize=function(){return e.extend({},this._options,{type:this.type,data:this._data})},n.prototype.hasTransition=function(){return!1},n}(e.Evented),P=e.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),L=function(t){function n(e,n,r,a){t.call(this),this.id=e,this.dispatcher=r,this.coordinates=n.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(a),this.options=n}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(t,n){var r=this;this._loaded=!1,this.fire(new e.Event("dataloading",{dataType:"source"})),this.url=this.options.url,e.getImage(this.map._requestManager.transformRequest(this.url,e.ResourceType.Image),(function(a,o){r._loaded=!0,a?r.fire(new e.ErrorEvent(a)):o&&(r.image=o,t&&(r.coordinates=t),n&&n(),r._finishLoading())}))},n.prototype.loaded=function(){return this._loaded},n.prototype.updateImage=function(e){var t=this;return this.image&&e.url?(this.options.url=e.url,this.load(e.coordinates,(function(){t.texture=null})),this):this},n.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"metadata"})))},n.prototype.onAdd=function(e){this.map=e,this.load()},n.prototype.setCoordinates=function(t){var n=this;this.coordinates=t;var r=t.map(e.MercatorCoordinate.fromLngLat);this.tileID=function(t){for(var n=1/0,r=1/0,a=-1/0,o=-1/0,i=0,l=t;i<l.length;i+=1){var s=l[i];n=Math.min(n,s.x),r=Math.min(r,s.y),a=Math.max(a,s.x),o=Math.max(o,s.y)}var u=Math.max(a-n,o-r),c=Math.max(0,Math.floor(-Math.log(u)/Math.LN2)),f=Math.pow(2,c);return new e.CanonicalTileID(c,Math.floor((n+a)/2*f),Math.floor((r+o)/2*f))}(r),this.minzoom=this.maxzoom=this.tileID.z;var a=r.map((function(e){return n.tileID.getTilePoint(e)._round()}));return this._boundsArray=new e.StructArrayLayout4i8,this._boundsArray.emplaceBack(a[0].x,a[0].y,0,0),this._boundsArray.emplaceBack(a[1].x,a[1].y,e.EXTENT,0),this._boundsArray.emplaceBack(a[3].x,a[3].y,0,e.EXTENT),this._boundsArray.emplaceBack(a[2].x,a[2].y,e.EXTENT,e.EXTENT),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.Event("data",{dataType:"source",sourceDataType:"content"})),this},n.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&&this.image){var t=this.map.painter.context,n=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new e.Texture(t,this.image,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var a=this.tiles[r];"loaded"!==a.state&&(a.state="loaded",a.texture=this.texture)}}},n.prototype.loadTile=function(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={},t(null)):(e.state="errored",t(null))},n.prototype.serialize=function(){return{type:"image",url:this.options.url,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return!1},n}(e.Evented),D=function(t){function n(e,n,r,a){t.call(this,e,n,r,a),this.roundZoom=!0,this.type="video",this.options=n}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(){var t=this;this._loaded=!1;var n=this.options;this.urls=[];for(var r=0,a=n.urls;r<a.length;r+=1)this.urls.push(this.map._requestManager.transformRequest(a[r],e.ResourceType.Source).url);e.getVideo(this.urls,(function(n,r){t._loaded=!0,n?t.fire(new e.ErrorEvent(n)):r&&(t.video=r,t.video.loop=!0,t.video.addEventListener("playing",(function(){t.map.triggerRepaint()})),t.map&&t.video.play(),t._finishLoading())}))},n.prototype.pause=function(){this.video&&this.video.pause()},n.prototype.play=function(){this.video&&this.video.play()},n.prototype.seek=function(t){if(this.video){var n=this.video.seekable;t<n.start(0)||t>n.end(0)?this.fire(new e.ErrorEvent(new e.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+n.start(0)+" and "+n.end(0)+"-second mark."))):this.video.currentTime=t}},n.prototype.getVideo=function(){return this.video},n.prototype.onAdd=function(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},n.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var t=this.map.painter.context,n=t.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new e.Texture(t,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var a=this.tiles[r];"loaded"!==a.state&&(a.state="loaded",a.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this.video&&!this.video.paused},n}(L),j=function(t){function n(n,r,a,o){t.call(this,n,r,a,o),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some((function(e){return!Array.isArray(e)||2!==e.length||e.some((function(e){return"number"!=typeof e}))}))||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof e.window.HTMLCanvasElement||this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.ErrorEvent(new e.ValidationError("sources."+n,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof e.window.HTMLCanvasElement?this.options.canvas:e.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},n.prototype.getCanvas=function(){return this.canvas},n.prototype.onAdd=function(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()},n.prototype.onRemove=function(){this.pause()},n.prototype.prepare=function(){var t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var n=this.map.painter.context,r=n.gl;for(var a in this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=e.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new e.Texture(n,this.canvas,r.RGBA,{premultiply:!0}),this.tiles){var o=this.tiles[a];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this._playing},n.prototype._hasInvalidDimensions=function(){for(var e=0,t=[this.canvas.width,this.canvas.height];e<t.length;e+=1){var n=t[e];if(isNaN(n)||n<=0)return!0}return!1},n}(L),I={vector:M,raster:S,"raster-dem":C,geojson:A,video:D,image:L,canvas:j};function R(t,n){var r=e.identity([]);return e.translate(r,r,[1,1,0]),e.scale(r,r,[.5*t.width,.5*t.height,1]),e.multiply(r,r,t.calculatePosMatrix(n.toUnwrapped()))}function z(e,t,n,r,a,o){var i=function(e,t,n){if(e)for(var r=0,a=e;r<a.length;r+=1){var o=t[a[r]];if(o&&o.source===n&&"fill-extrusion"===o.type)return!0}else for(var i in t){var l=t[i];if(l.source===n&&"fill-extrusion"===l.type)return!0}return!1}(a&&a.layers,t,e.id),l=o.maxPitchScaleFactor(),s=e.tilesIn(r,l,i);s.sort(N);for(var u=[],c=0,f=s;c<f.length;c+=1){var p=f[c];u.push({wrappedTileID:p.tileID.wrapped().key,queryResults:p.tile.queryRenderedFeatures(t,n,e._state,p.queryGeometry,p.cameraQueryGeometry,p.scale,a,o,l,R(e.transform,p.tileID))})}var d=function(e){for(var t={},n={},r=0,a=e;r<a.length;r+=1){var o=a[r],i=o.queryResults,l=o.wrappedTileID,s=n[l]=n[l]||{};for(var u in i)for(var c=i[u],f=s[u]=s[u]||{},p=t[u]=t[u]||[],d=0,h=c;d<h.length;d+=1){var v=h[d];f[v.featureIndex]||(f[v.featureIndex]=!0,p.push(v))}}return t}(u);for(var h in d)d[h].forEach((function(t){var n=t.feature,r=e.getFeatureState(n.layer["source-layer"],n.id);n.source=n.layer.source,n.layer["source-layer"]&&(n.sourceLayer=n.layer["source-layer"]),n.state=r}));return d}function N(e,t){var n=e.tileID,r=t.tileID;return n.overscaledZ-r.overscaledZ||n.canonical.y-r.canonical.y||n.wrap-r.wrap||n.canonical.x-r.canonical.x}var F=function(e,t){this.max=e,this.onRemove=t,this.reset()};F.prototype.reset=function(){for(var e in this.data)for(var t=0,n=this.data[e];t<n.length;t+=1){var r=n[t];r.timeout&&clearTimeout(r.timeout),this.onRemove(r.value)}return this.data={},this.order=[],this},F.prototype.add=function(e,t,n){var r=this,a=e.wrapped().key;void 0===this.data[a]&&(this.data[a]=[]);var o={value:t,timeout:void 0};if(void 0!==n&&(o.timeout=setTimeout((function(){r.remove(e,o)}),n)),this.data[a].push(o),this.order.push(a),this.order.length>this.max){var i=this._getAndRemoveByKey(this.order[0]);i&&this.onRemove(i)}return this},F.prototype.has=function(e){return e.wrapped().key in this.data},F.prototype.getAndRemove=function(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null},F.prototype._getAndRemoveByKey=function(e){var t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value},F.prototype.getByKey=function(e){var t=this.data[e];return t?t[0].value:null},F.prototype.get=function(e){return this.has(e)?this.data[e.wrapped().key][0].value:null},F.prototype.remove=function(e,t){if(!this.has(e))return this;var n=e.wrapped().key,r=void 0===t?0:this.data[n].indexOf(t),a=this.data[n][r];return this.data[n].splice(r,1),a.timeout&&clearTimeout(a.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(a.value),this.order.splice(this.order.indexOf(n),1),this},F.prototype.setMaxSize=function(e){for(this.max=e;this.order.length>this.max;){var t=this._getAndRemoveByKey(this.order[0]);t&&this.onRemove(t)}return this},F.prototype.filter=function(e){var t=[];for(var n in this.data)for(var r=0,a=this.data[n];r<a.length;r+=1){var o=a[r];e(o.value)||t.push(o)}for(var i=0,l=t;i<l.length;i+=1){var s=l[i];this.remove(s.value.tileID,s)}};var B=function(e,t,n){this.context=e;var r=e.gl;this.buffer=r.createBuffer(),this.dynamicDraw=Boolean(n),this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer};B.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},B.prototype.updateData=function(e){var t=this.context.gl;this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)},B.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var V={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"},H=function(e,t,n,r){this.length=t.length,this.attributes=n,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.context=e;var a=e.gl;this.buffer=a.createBuffer(),e.bindVertexBuffer.set(this.buffer),a.bufferData(a.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?a.DYNAMIC_DRAW:a.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer};H.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},H.prototype.updateData=function(e){var t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)},H.prototype.enableAttributes=function(e,t){for(var n=0;n<this.attributes.length;n++){var r=t.attributes[this.attributes[n].name];void 0!==r&&e.enableVertexAttribArray(r)}},H.prototype.setVertexAttribPointers=function(e,t,n){for(var r=0;r<this.attributes.length;r++){var a=this.attributes[r],o=t.attributes[a.name];void 0!==o&&e.vertexAttribPointer(o,a.components,e[V[a.type]],!1,this.itemSize,a.offset+this.itemSize*(n||0))}},H.prototype.destroy=function(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var U=function(e){this.gl=e.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};U.prototype.get=function(){return this.current},U.prototype.set=function(e){},U.prototype.getDefault=function(){return this.default},U.prototype.setDefault=function(){this.set(this.default)};var W=function(t){function n(){t.apply(this,arguments)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.getDefault=function(){return e.Color.transparent},n.prototype.set=function(e){var t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.clearColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)},n}(U),q=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return 1},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.clearDepth(e),this.current=e,this.dirty=!1)},t}(U),$=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return 0},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.clearStencil(e),this.current=e,this.dirty=!1)},t}(U),G=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return[!0,!0,!0,!0]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.colorMask(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)},t}(U),Y=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!0},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.depthMask(e),this.current=e,this.dirty=!1)},t}(U),K=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return 255},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.stencilMask(e),this.current=e,this.dirty=!1)},t}(U),X=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},t.prototype.set=function(e){var t=this.current;(e.func!==t.func||e.ref!==t.ref||e.mask!==t.mask||this.dirty)&&(this.gl.stencilFunc(e.func,e.ref,e.mask),this.current=e,this.dirty=!1)},t}(U),Z=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[e.KEEP,e.KEEP,e.KEEP]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||this.dirty)&&(this.gl.stencilOp(e[0],e[1],e[2]),this.current=e,this.dirty=!1)},t}(U),J=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.STENCIL_TEST):t.disable(t.STENCIL_TEST),this.current=e,this.dirty=!1}},t}(U),Q=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return[0,1]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.depthRange(e[0],e[1]),this.current=e,this.dirty=!1)},t}(U),ee=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.DEPTH_TEST):t.disable(t.DEPTH_TEST),this.current=e,this.dirty=!1}},t}(U),te=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return this.gl.LESS},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.depthFunc(e),this.current=e,this.dirty=!1)},t}(U),ne=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.BLEND):t.disable(t.BLEND),this.current=e,this.dirty=!1}},t}(U),re=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[e.ONE,e.ZERO]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||this.dirty)&&(this.gl.blendFunc(e[0],e[1]),this.current=e,this.dirty=!1)},t}(U),ae=function(t){function n(){t.apply(this,arguments)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.getDefault=function(){return e.Color.transparent},n.prototype.set=function(e){var t=this.current;(e.r!==t.r||e.g!==t.g||e.b!==t.b||e.a!==t.a||this.dirty)&&(this.gl.blendColor(e.r,e.g,e.b,e.a),this.current=e,this.dirty=!1)},n}(U),oe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return this.gl.FUNC_ADD},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.blendEquation(e),this.current=e,this.dirty=!1)},t}(U),ie=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;e?t.enable(t.CULL_FACE):t.disable(t.CULL_FACE),this.current=e,this.dirty=!1}},t}(U),le=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return this.gl.BACK},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.cullFace(e),this.current=e,this.dirty=!1)},t}(U),se=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return this.gl.CCW},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.frontFace(e),this.current=e,this.dirty=!1)},t}(U),ue=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.useProgram(e),this.current=e,this.dirty=!1)},t}(U),ce=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return this.gl.TEXTURE0},t.prototype.set=function(e){(e!==this.current||this.dirty)&&(this.gl.activeTexture(e),this.current=e,this.dirty=!1)},t}(U),fe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){var e=this.gl;return[0,0,e.drawingBufferWidth,e.drawingBufferHeight]},t.prototype.set=function(e){var t=this.current;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||this.dirty)&&(this.gl.viewport(e[0],e[1],e[2],e[3]),this.current=e,this.dirty=!1)},t}(U),pe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,e),this.current=e,this.dirty=!1}},t}(U),de=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindRenderbuffer(t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},t}(U),he=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindTexture(t.TEXTURE_2D,e),this.current=e,this.dirty=!1}},t}(U),ve=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,e),this.current=e,this.dirty=!1}},t}(U),me=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){var t=this.gl;t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,e),this.current=e,this.dirty=!1},t}(U),ye=function(e){function t(t){e.call(this,t),this.vao=t.extVertexArrayObject}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t.prototype.set=function(e){this.vao&&(e!==this.current||this.dirty)&&(this.vao.bindVertexArrayOES(e),this.current=e,this.dirty=!1)},t}(U),ge=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return 4},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_ALIGNMENT,e),this.current=e,this.dirty=!1}},t}(U),be=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e),this.current=e,this.dirty=!1}},t}(U),xe=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return!1},t.prototype.set=function(e){if(e!==this.current||this.dirty){var t=this.gl;t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e),this.current=e,this.dirty=!1}},t}(U),_e=function(e){function t(t,n){e.call(this,t),this.context=t,this.parent=n}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.getDefault=function(){return null},t}(U),we=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.setDirty=function(){this.dirty=!0},t.prototype.set=function(e){if(e!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var t=this.gl;t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,e,0),this.current=e,this.dirty=!1}},t}(_e),ke=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.set=function(e){if(e!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var t=this.gl;t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e),this.current=e,this.dirty=!1}},t}(_e),Te=function(e,t,n,r){this.context=e,this.width=t,this.height=n;var a=this.framebuffer=e.gl.createFramebuffer();this.colorAttachment=new we(e,a),r&&(this.depthAttachment=new ke(e,a))};Te.prototype.destroy=function(){var e=this.context.gl,t=this.colorAttachment.get();if(t&&e.deleteTexture(t),this.depthAttachment){var n=this.depthAttachment.get();n&&e.deleteRenderbuffer(n)}e.deleteFramebuffer(this.framebuffer)};var Ee=function(e,t,n){this.func=e,this.mask=t,this.range=n};Ee.ReadOnly=!1,Ee.ReadWrite=!0,Ee.disabled=new Ee(519,Ee.ReadOnly,[0,1]);var Oe=function(e,t,n,r,a,o){this.test=e,this.ref=t,this.mask=n,this.fail=r,this.depthFail=a,this.pass=o};Oe.disabled=new Oe({func:519,mask:0},0,0,7680,7680,7680);var Me=function(e,t,n){this.blendFunction=e,this.blendColor=t,this.mask=n};Me.disabled=new Me(Me.Replace=[1,0],e.Color.transparent,[!1,!1,!1,!1]),Me.unblended=new Me(Me.Replace,e.Color.transparent,[!0,!0,!0,!0]),Me.alphaBlended=new Me([1,771],e.Color.transparent,[!0,!0,!0,!0]);var Se=function(e,t,n){this.enable=e,this.mode=t,this.frontFace=n};Se.disabled=new Se(!1,1029,2305),Se.backCCW=new Se(!0,1029,2305);var Ce=function(e){this.gl=e,this.extVertexArrayObject=this.gl.getExtension("OES_vertex_array_object"),this.clearColor=new W(this),this.clearDepth=new q(this),this.clearStencil=new $(this),this.colorMask=new G(this),this.depthMask=new Y(this),this.stencilMask=new K(this),this.stencilFunc=new X(this),this.stencilOp=new Z(this),this.stencilTest=new J(this),this.depthRange=new Q(this),this.depthTest=new ee(this),this.depthFunc=new te(this),this.blend=new ne(this),this.blendFunc=new re(this),this.blendColor=new ae(this),this.blendEquation=new oe(this),this.cullFace=new ie(this),this.cullFaceSide=new le(this),this.frontFace=new se(this),this.program=new ue(this),this.activeTexture=new ce(this),this.viewport=new fe(this),this.bindFramebuffer=new pe(this),this.bindRenderbuffer=new de(this),this.bindTexture=new he(this),this.bindVertexBuffer=new ve(this),this.bindElementBuffer=new me(this),this.bindVertexArrayOES=this.extVertexArrayObject&&new ye(this),this.pixelStoreUnpack=new ge(this),this.pixelStoreUnpackPremultiplyAlpha=new be(this),this.pixelStoreUnpackFlipY=new xe(this),this.extTextureFilterAnisotropic=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic"),this.extTextureFilterAnisotropic&&(this.extTextureFilterAnisotropicMax=e.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=e.getExtension("OES_texture_half_float"),this.extTextureHalfFloat&&(e.getExtension("OES_texture_half_float_linear"),this.extRenderToTextureHalfFloat=e.getExtension("EXT_color_buffer_half_float")),this.extTimerQuery=e.getExtension("EXT_disjoint_timer_query")};Ce.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Ce.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&&(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Ce.prototype.createIndexBuffer=function(e,t){return new B(this,e,t)},Ce.prototype.createVertexBuffer=function(e,t,n){return new H(this,e,t,n)},Ce.prototype.createRenderbuffer=function(e,t,n){var r=this.gl,a=r.createRenderbuffer();return this.bindRenderbuffer.set(a),r.renderbufferStorage(r.RENDERBUFFER,e,t,n),this.bindRenderbuffer.set(null),a},Ce.prototype.createFramebuffer=function(e,t,n){return new Te(this,e,t,n)},Ce.prototype.clear=function(e){var t=e.color,n=e.depth,r=this.gl,a=0;t&&(a|=r.COLOR_BUFFER_BIT,this.clearColor.set(t),this.colorMask.set([!0,!0,!0,!0])),void 0!==n&&(a|=r.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(n),this.depthMask.set(!0)),r.clear(a)},Ce.prototype.setCullFace=function(e){!1===e.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(e.mode),this.frontFace.set(e.frontFace))},Ce.prototype.setDepthMode=function(e){e.func!==this.gl.ALWAYS||e.mask?(this.depthTest.set(!0),this.depthFunc.set(e.func),this.depthMask.set(e.mask),this.depthRange.set(e.range)):this.depthTest.set(!1)},Ce.prototype.setStencilMode=function(e){e.test.func!==this.gl.ALWAYS||e.mask?(this.stencilTest.set(!0),this.stencilMask.set(e.mask),this.stencilOp.set([e.fail,e.depthFail,e.pass]),this.stencilFunc.set({func:e.test.func,ref:e.ref,mask:e.test.mask})):this.stencilTest.set(!1)},Ce.prototype.setColorMode=function(t){e.deepEqual(t.blendFunction,Me.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(t.blendFunction),this.blendColor.set(t.blendColor)),this.colorMask.set(t.mask)},Ce.prototype.unbindVAO=function(){this.extVertexArrayObject&&this.bindVertexArrayOES.set(null)};var Ae=function(t){function n(n,r,a){var o=this;t.call(this),this.id=n,this.dispatcher=a,this.on("data",(function(e){"source"===e.dataType&&"metadata"===e.sourceDataType&&(o._sourceLoaded=!0),o._sourceLoaded&&!o._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(o.reload(),o.transform&&o.update(o.transform))})),this.on("error",(function(){o._sourceErrored=!0})),this._source=function(t,n,r,a){var o=new I[n.type](t,n,r,a);if(o.id!==t)throw new Error("Expected Source id to be "+t+" instead of "+o.id);return e.bindAll(["load","abort","unload","serialize","prepare"],o),o}(n,r,a,this),this._tiles={},this._cache=new F(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new e.SourceFeatureState}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.onAdd=function(e){this.map=e,this._maxTileCacheSize=e?e._maxTileCacheSize:null,this._source&&this._source.onAdd&&this._source.onAdd(e)},n.prototype.onRemove=function(e){this._source&&this._source.onRemove&&this._source.onRemove(e)},n.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var e in this._tiles){var t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0},n.prototype.getSource=function(){return this._source},n.prototype.pause=function(){this._paused=!0},n.prototype.resume=function(){if(this._paused){var e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform)}},n.prototype._loadTile=function(e,t){return this._source.loadTile(e,t)},n.prototype._unloadTile=function(e){if(this._source.unloadTile)return this._source.unloadTile(e,(function(){}))},n.prototype._abortTile=function(e){if(this._source.abortTile)return this._source.abortTile(e,(function(){}))},n.prototype.serialize=function(){return this._source.serialize()},n.prototype.prepare=function(e){for(var t in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var n=this._tiles[t];n.upload(e),n.prepare(this.map.style.imageManager)}},n.prototype.getIds=function(){return e.values(this._tiles).map((function(e){return e.tileID})).sort(Pe).map((function(e){return e.key}))},n.prototype.getRenderableIds=function(t){var n=this,r=[];for(var a in this._tiles)this._isIdRenderable(a,t)&&r.push(this._tiles[a]);return t?r.sort((function(t,r){var a=t.tileID,o=r.tileID,i=new e.Point(a.canonical.x,a.canonical.y)._rotate(n.transform.angle),l=new e.Point(o.canonical.x,o.canonical.y)._rotate(n.transform.angle);return a.overscaledZ-o.overscaledZ||l.y-i.y||l.x-i.x})).map((function(e){return e.tileID.key})):r.map((function(e){return e.tileID})).sort(Pe).map((function(e){return e.key}))},n.prototype.hasRenderableParent=function(e){var t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)},n.prototype._isIdRenderable=function(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())},n.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var e in this._cache.reset(),this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(e,"reloading")},n.prototype._reloadTile=function(e,t){var n=this._tiles[e];n&&("loading"!==n.state&&(n.state=t),this._loadTile(n,this._tileLoaded.bind(this,n,e,t)))},n.prototype._tileLoaded=function(t,n,r,a){if(a)return t.state="errored",void(404!==a.status?this._source.fire(new e.ErrorEvent(a,{tile:t})):this.update(this.transform));t.timeAdded=e.browser.now(),"expired"===r&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(n,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),this._source.fire(new e.Event("data",{dataType:"source",tile:t,coord:t.tileID}))},n.prototype._backfillDEM=function(e){for(var t=this.getRenderableIds(),n=0;n<t.length;n++){var r=t[n];if(e.neighboringTiles&&e.neighboringTiles[r]){var a=this.getTileByID(r);o(e,a),o(a,e)}}function o(e,t){e.needsHillshadePrepare=!0;var n=t.tileID.canonical.x-e.tileID.canonical.x,r=t.tileID.canonical.y-e.tileID.canonical.y,a=Math.pow(2,e.tileID.canonical.z),o=t.tileID.key;0===n&&0===r||Math.abs(r)>1||(Math.abs(n)>1&&(1===Math.abs(n+a)?n+=a:1===Math.abs(n-a)&&(n-=a)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,n,r),e.neighboringTiles&&e.neighboringTiles[o]&&(e.neighboringTiles[o].backfilled=!0)))}},n.prototype.getTile=function(e){return this.getTileByID(e.key)},n.prototype.getTileByID=function(e){return this._tiles[e]},n.prototype._retainLoadedChildren=function(e,t,n,r){for(var a in this._tiles){var o=this._tiles[a];if(!(r[a]||!o.hasData()||o.tileID.overscaledZ<=t||o.tileID.overscaledZ>n)){for(var i=o.tileID;o&&o.tileID.overscaledZ>t+1;){var l=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[l.key])&&o.hasData()&&(i=l)}for(var s=i;s.overscaledZ>t;)if(e[(s=s.scaledTo(s.overscaledZ-1)).key]){r[i.key]=i;break}}}},n.prototype.findLoadedParent=function(e,t){if(e.key in this._loadedParentTiles){var n=this._loadedParentTiles[e.key];return n&&n.tileID.overscaledZ>=t?n:null}for(var r=e.overscaledZ-1;r>=t;r--){var a=e.scaledTo(r),o=this._getLoadedTile(a);if(o)return o}},n.prototype._getLoadedTile=function(e){var t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(e.wrapped().key)},n.prototype.updateCacheSize=function(e){var t=Math.ceil(e.width/this._source.tileSize)+1,n=Math.ceil(e.height/this._source.tileSize)+1,r=Math.floor(t*n*5),a="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(a)},n.prototype.handleWrapJump=function(e){var t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){var n={};for(var r in this._tiles){var a=this._tiles[r];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+t),n[a.tileID.key]=a}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var i in this._tiles)this._setTileReloadTimer(i,this._tiles[i])}},n.prototype.update=function(t){var r=this;if(this.transform=t,this._sourceLoaded&&!this._paused){var a;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?a=t.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(t){return new e.OverscaledTileID(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)})):(a=t.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(a=a.filter((function(e){return r._source.hasTile(e)})))):a=[];var o=t.coveringZoomLevel(this._source),i=Math.max(o-n.maxOverzooming,this._source.minzoom),l=Math.max(o+n.maxUnderzooming,this._source.minzoom),s=this._updateRetainedTiles(a,o);if(Le(this._source.type)){for(var u={},c={},f=0,p=Object.keys(s);f<p.length;f+=1){var d=p[f],h=s[d],v=this._tiles[d];if(v&&!(v.fadeEndTime&&v.fadeEndTime<=e.browser.now())){var m=this.findLoadedParent(h,i);m&&(this._addTile(m.tileID),u[m.tileID.key]=m.tileID),c[d]=h}}for(var y in this._retainLoadedChildren(c,o,l,s),u)s[y]||(this._coveredTiles[y]=!0,s[y]=u[y])}for(var g in s)this._tiles[g].clearFadeHold();for(var b=0,x=e.keysDifference(this._tiles,s);b<x.length;b+=1){var _=x[b],w=this._tiles[_];w.hasSymbolBuckets&&!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&&!w.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},n.prototype.releaseSymbolFadeTiles=function(){for(var e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(e)},n.prototype._updateRetainedTiles=function(e,t){for(var r={},a={},o=Math.max(t-n.maxOverzooming,this._source.minzoom),i=Math.max(t+n.maxUnderzooming,this._source.minzoom),l={},s=0,u=e;s<u.length;s+=1){var c=u[s],f=this._addTile(c);r[c.key]=c,f.hasData()||t<this._source.maxzoom&&(l[c.key]=c)}this._retainLoadedChildren(l,t,i,r);for(var p=0,d=e;p<d.length;p+=1){var h=d[p],v=this._tiles[h.key];if(!v.hasData()){if(t+1>this._source.maxzoom){var m=h.children(this._source.maxzoom)[0],y=this.getTile(m);if(y&&y.hasData()){r[m.key]=m;continue}}else{var g=h.children(this._source.maxzoom);if(r[g[0].key]&&r[g[1].key]&&r[g[2].key]&&r[g[3].key])continue}for(var b=v.wasRequested(),x=h.overscaledZ-1;x>=o;--x){var _=h.scaledTo(x);if(a[_.key])break;if(a[_.key]=!0,!(v=this.getTile(_))&&b&&(v=this._addTile(_)),v&&(r[_.key]=_,b=v.wasRequested(),v.hasData()))break}}}return r},n.prototype._updateLoadedParentTileCache=function(){for(var e in this._loadedParentTiles={},this._tiles){for(var t=[],n=void 0,r=this._tiles[e].tileID;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){n=this._loadedParentTiles[r.key];break}t.push(r.key);var a=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(a))break;r=a}for(var o=0,i=t;o<i.length;o+=1)this._loadedParentTiles[i[o]]=n}},n.prototype._addTile=function(t){var n=this._tiles[t.key];if(n)return n;(n=this._cache.getAndRemove(t))&&(this._setTileReloadTimer(t.key,n),n.tileID=t,this._state.initializeTileState(n,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,n)));var r=Boolean(n);return r||(n=new e.Tile(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(n,this._tileLoaded.bind(this,n,t.key,n.state))),n?(n.uses++,this._tiles[t.key]=n,r||this._source.fire(new e.Event("dataloading",{tile:n,coord:n.tileID,dataType:"source"})),n):null},n.prototype._setTileReloadTimer=function(e,t){var n=this;e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);var r=t.getExpiryTimeout();r&&(this._timers[e]=setTimeout((function(){n._reloadTile(e,"expired"),delete n._timers[e]}),r))},n.prototype._removeTile=function(e){var t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))},n.prototype.clearTiles=function(){for(var e in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(e);this._cache.reset()},n.prototype.tilesIn=function(t,n,r){var a=this,o=[],i=this.transform;if(!i)return o;for(var l=r?i.getCameraQueryGeometry(t):t,s=t.map((function(e){return i.pointCoordinate(e)})),u=l.map((function(e){return i.pointCoordinate(e)})),c=this.getIds(),f=1/0,p=1/0,d=-1/0,h=-1/0,v=0,m=u;v<m.length;v+=1){var y=m[v];f=Math.min(f,y.x),p=Math.min(p,y.y),d=Math.max(d,y.x),h=Math.max(h,y.y)}for(var g=function(t){var r=a._tiles[c[t]];if(!r.holdingForFade()){var l=r.tileID,v=Math.pow(2,i.zoom-r.tileID.overscaledZ),m=n*r.queryPadding*e.EXTENT/r.tileSize/v,y=[l.getTilePoint(new e.MercatorCoordinate(f,p)),l.getTilePoint(new e.MercatorCoordinate(d,h))];if(y[0].x-m<e.EXTENT&&y[0].y-m<e.EXTENT&&y[1].x+m>=0&&y[1].y+m>=0){var g=s.map((function(e){return l.getTilePoint(e)})),b=u.map((function(e){return l.getTilePoint(e)}));o.push({tile:r,tileID:l,queryGeometry:g,cameraQueryGeometry:b,scale:v})}}},b=0;b<c.length;b++)g(b);return o},n.prototype.getVisibleCoordinates=function(e){for(var t=this,n=this.getRenderableIds(e).map((function(e){return t._tiles[e].tileID})),r=0,a=n;r<a.length;r+=1){var o=a[r];o.posMatrix=this.transform.calculatePosMatrix(o.toUnwrapped())}return n},n.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Le(this._source.type))for(var t in this._tiles){var n=this._tiles[t];if(void 0!==n.fadeEndTime&&n.fadeEndTime>=e.browser.now())return!0}return!1},n.prototype.setFeatureState=function(e,t,n){this._state.updateState(e=e||"_geojsonTileLayer",t,n)},n.prototype.removeFeatureState=function(e,t,n){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,n)},n.prototype.getFeatureState=function(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)},n.prototype.setDependencies=function(e,t,n){var r=this._tiles[e];r&&r.setDependencies(t,n)},n.prototype.reloadTilesForDependencies=function(e,t){for(var n in this._tiles)this._tiles[n].hasDependency(e,t)&&this._reloadTile(n,"reloading");this._cache.filter((function(n){return!n.hasDependency(e,t)}))},n}(e.Evented);function Pe(e,t){var n=Math.abs(2*e.wrap)-+(e.wrap<0),r=Math.abs(2*t.wrap)-+(t.wrap<0);return e.overscaledZ-t.overscaledZ||r-n||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function Le(e){return"raster"===e||"image"===e||"video"===e}function De(){return new e.window.Worker($a.workerUrl)}Ae.maxOverzooming=10,Ae.maxUnderzooming=3;var je="mapboxgl_preloaded_worker_pool",Ie=function(){this.active={}};Ie.prototype.acquire=function(e){if(!this.workers)for(this.workers=[];this.workers.length<Ie.workerCount;)this.workers.push(new De);return this.active[e]=!0,this.workers.slice()},Ie.prototype.release=function(e){delete this.active[e],0===this.numActive()&&(this.workers.forEach((function(e){e.terminate()})),this.workers=null)},Ie.prototype.isPreloaded=function(){return!!this.active[je]},Ie.prototype.numActive=function(){return Object.keys(this.active).length};var Re,ze=Math.floor(e.browser.hardwareConcurrency/2);function Ne(){return Re||(Re=new Ie),Re}function Fe(t,n){var r={};for(var a in t)"ref"!==a&&(r[a]=t[a]);return e.refProperties.forEach((function(e){e in n&&(r[e]=n[e])})),r}function Be(e){e=e.slice();for(var t=Object.create(null),n=0;n<e.length;n++)t[e[n].id]=e[n];for(var r=0;r<e.length;r++)"ref"in e[r]&&(e[r]=Fe(e[r],t[e[r].ref]));return e}Ie.workerCount=Math.max(Math.min(ze,6),1);var Ve={setStyle:"setStyle",addLayer:"addLayer",removeLayer:"removeLayer",setPaintProperty:"setPaintProperty",setLayoutProperty:"setLayoutProperty",setFilter:"setFilter",addSource:"addSource",removeSource:"removeSource",setGeoJSONSourceData:"setGeoJSONSourceData",setLayerZoomRange:"setLayerZoomRange",setLayerProperty:"setLayerProperty",setCenter:"setCenter",setZoom:"setZoom",setBearing:"setBearing",setPitch:"setPitch",setSprite:"setSprite",setGlyphs:"setGlyphs",setTransition:"setTransition",setLight:"setLight"};function He(e,t,n){n.push({command:Ve.addSource,args:[e,t[e]]})}function Ue(e,t,n){t.push({command:Ve.removeSource,args:[e]}),n[e]=!0}function We(e,t,n,r){Ue(e,n,r),He(e,t,n)}function qe(t,n,r){var a;for(a in t[r])if(t[r].hasOwnProperty(a)&&"data"!==a&&!e.deepEqual(t[r][a],n[r][a]))return!1;for(a in n[r])if(n[r].hasOwnProperty(a)&&"data"!==a&&!e.deepEqual(t[r][a],n[r][a]))return!1;return!0}function $e(t,n,r,a,o,i){var l;for(l in n=n||{},t=t||{})t.hasOwnProperty(l)&&(e.deepEqual(t[l],n[l])||r.push({command:i,args:[a,l,n[l],o]}));for(l in n)n.hasOwnProperty(l)&&!t.hasOwnProperty(l)&&(e.deepEqual(t[l],n[l])||r.push({command:i,args:[a,l,n[l],o]}))}function Ge(e){return e.id}function Ye(e,t){return e[t.id]=t,e}var Ke=function(e,t){this.reset(e,t)};Ke.prototype.reset=function(e,t){this.points=e||[],this._distances=[0];for(var n=1;n<this.points.length;n++)this._distances[n]=this._distances[n-1]+this.points[n].dist(this.points[n-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(t||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Ke.prototype.lerp=function(t){if(1===this.points.length)return this.points[0];t=e.clamp(t,0,1);for(var n=1,r=this._distances[n],a=t*this.paddedLength+this.padding;r<a&&n<this._distances.length;)r=this._distances[++n];var o=n-1,i=this._distances[o],l=r-i,s=l>0?(a-i)/l:0;return this.points[o].mult(1-s).add(this.points[n].mult(s))};var Xe=function(e,t,n){var r=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(e/n),this.yCellCount=Math.ceil(t/n);for(var o=0;o<this.xCellCount*this.yCellCount;o++)r.push([]),a.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=e,this.height=t,this.xScale=this.xCellCount/e,this.yScale=this.yCellCount/t,this.boxUid=0,this.circleUid=0};function Ze(t,n,r,a,o){var i=e.create();return n?(e.scale(i,i,[1/o,1/o,1]),r||e.rotateZ(i,i,a.angle)):e.multiply(i,a.labelPlaneMatrix,t),i}function Je(t,n,r,a,o){if(n){var i=e.clone(t);return e.scale(i,i,[o,o,1]),r||e.rotateZ(i,i,-a.angle),i}return a.glCoordMatrix}function Qe(t,n){var r=[t.x,t.y,0,1];ct(r,r,n);var a=r[3];return{point:new e.Point(r[0]/a,r[1]/a),signedDistanceFromCamera:a}}function et(e,t){return.5+e/t*.5}function tt(e,t){var n=e[0]/e[3],r=e[1]/e[3];return n>=-t[0]&&n<=t[0]&&r>=-t[1]&&r<=t[1]}function nt(t,n,r,a,o,i,l,s){var u=a?t.textSizeData:t.iconSizeData,c=e.evaluateSizeForZoom(u,r.transform.zoom),f=[256/r.width*2+1,256/r.height*2+1],p=a?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;p.clear();for(var d=t.lineVertexArray,h=a?t.text.placedSymbolArray:t.icon.placedSymbolArray,v=r.transform.width/r.transform.height,m=!1,y=0;y<h.length;y++){var g=h.get(y);if(g.hidden||g.writingMode===e.WritingMode.vertical&&!m)ut(g.numGlyphs,p);else{m=!1;var b=[g.anchorX,g.anchorY,0,1];if(e.transformMat4(b,b,n),tt(b,f)){var x=et(r.transform.cameraToCenterDistance,b[3]),_=e.evaluateSizeForFeature(u,c,g),w=l?_/x:_*x,k=new e.Point(g.anchorX,g.anchorY),T=Qe(k,o).point,E={},O=ot(g,w,!1,s,n,o,i,t.glyphOffsetArray,d,p,T,k,E,v);m=O.useVertical,(O.notEnoughRoom||m||O.needsFlipping&&ot(g,w,!0,s,n,o,i,t.glyphOffsetArray,d,p,T,k,E,v).notEnoughRoom)&&ut(g.numGlyphs,p)}else ut(g.numGlyphs,p)}}a?t.text.dynamicLayoutVertexBuffer.updateData(p):t.icon.dynamicLayoutVertexBuffer.updateData(p)}function rt(e,t,n,r,a,o,i,l,s,u,c){var f=l.glyphStartIndex+l.numGlyphs,p=l.lineStartIndex,d=l.lineStartIndex+l.lineLength,h=t.getoffsetX(l.glyphStartIndex),v=t.getoffsetX(f-1),m=lt(e*h,n,r,a,o,i,l.segment,p,d,s,u,c);if(!m)return null;var y=lt(e*v,n,r,a,o,i,l.segment,p,d,s,u,c);return y?{first:m,last:y}:null}function at(t,n,r,a){return t===e.WritingMode.horizontal&&Math.abs(r.y-n.y)>Math.abs(r.x-n.x)*a?{useVertical:!0}:(t===e.WritingMode.vertical?n.y<r.y:n.x>r.x)?{needsFlipping:!0}:null}function ot(t,n,r,a,o,i,l,s,u,c,f,p,d,h){var v,m=n/24,y=t.lineOffsetX*m,g=t.lineOffsetY*m;if(t.numGlyphs>1){var b=t.glyphStartIndex+t.numGlyphs,x=t.lineStartIndex,_=t.lineStartIndex+t.lineLength,w=rt(m,s,y,g,r,f,p,t,u,i,d);if(!w)return{notEnoughRoom:!0};var k=Qe(w.first.point,l).point,T=Qe(w.last.point,l).point;if(a&&!r){var E=at(t.writingMode,k,T,h);if(E)return E}v=[w.first];for(var O=t.glyphStartIndex+1;O<b-1;O++)v.push(lt(m*s.getoffsetX(O),y,g,r,f,p,t.segment,x,_,u,i,d));v.push(w.last)}else{if(a&&!r){var M=Qe(p,o).point,S=t.lineStartIndex+t.segment+1,C=new e.Point(u.getx(S),u.gety(S)),A=Qe(C,o),P=A.signedDistanceFromCamera>0?A.point:it(p,C,M,1,o),L=at(t.writingMode,M,P,h);if(L)return L}var D=lt(m*s.getoffsetX(t.glyphStartIndex),y,g,r,f,p,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,u,i,d);if(!D)return{notEnoughRoom:!0};v=[D]}for(var j=0,I=v;j<I.length;j+=1){var R=I[j];e.addDynamicAttributes(c,R.point,R.angle)}return{}}function it(e,t,n,r,a){var o=Qe(e.add(e.sub(t)._unit()),a).point,i=n.sub(o);return n.add(i._mult(r/i.mag()))}function lt(t,n,r,a,o,i,l,s,u,c,f,p){var d=a?t-n:t+n,h=d>0?1:-1,v=0;a&&(h*=-1,v=Math.PI),h<0&&(v+=Math.PI);for(var m=h>0?s+l:s+l+1,y=o,g=o,b=0,x=0,_=Math.abs(d),w=[];b+x<=_;){if((m+=h)<s||m>=u)return null;if(g=y,w.push(y),void 0===(y=p[m])){var k=new e.Point(c.getx(m),c.gety(m)),T=Qe(k,f);if(T.signedDistanceFromCamera>0)y=p[m]=T.point;else{var E=m-h;y=it(0===b?i:new e.Point(c.getx(E),c.gety(E)),k,g,_-b+1,f)}}b+=x,x=g.dist(y)}var O=(_-b)/x,M=y.sub(g),S=M.mult(O)._add(g);S._add(M._unit()._perp()._mult(r*h));var C=v+Math.atan2(y.y-g.y,y.x-g.x);return w.push(S),{point:S,angle:C,path:w}}Xe.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Xe.prototype.insert=function(e,t,n,r,a){this._forEachCell(t,n,r,a,this._insertBoxCell,this.boxUid++),this.boxKeys.push(e),this.bboxes.push(t),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(a)},Xe.prototype.insertCircle=function(e,t,n,r){this._forEachCell(t-r,n-r,t+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(e),this.circles.push(t),this.circles.push(n),this.circles.push(r)},Xe.prototype._insertBoxCell=function(e,t,n,r,a,o){this.boxCells[a].push(o)},Xe.prototype._insertCircleCell=function(e,t,n,r,a,o){this.circleCells[a].push(o)},Xe.prototype._query=function(e,t,n,r,a,o){if(n<0||e>this.width||r<0||t>this.height)return!a&&[];var i=[];if(e<=0&&t<=0&&this.width<=n&&this.height<=r){if(a)return!0;for(var l=0;l<this.boxKeys.length;l++)i.push({key:this.boxKeys[l],x1:this.bboxes[4*l],y1:this.bboxes[4*l+1],x2:this.bboxes[4*l+2],y2:this.bboxes[4*l+3]});for(var s=0;s<this.circleKeys.length;s++){var u=this.circles[3*s],c=this.circles[3*s+1],f=this.circles[3*s+2];i.push({key:this.circleKeys[s],x1:u-f,y1:c-f,x2:u+f,y2:c+f})}return o?i.filter(o):i}return this._forEachCell(e,t,n,r,this._queryCell,i,{hitTest:a,seenUids:{box:{},circle:{}}},o),a?i.length>0:i},Xe.prototype._queryCircle=function(e,t,n,r,a){var o=e-n,i=e+n,l=t-n,s=t+n;if(i<0||o>this.width||s<0||l>this.height)return!r&&[];var u=[];return this._forEachCell(o,l,i,s,this._queryCellCircle,u,{hitTest:r,circle:{x:e,y:t,radius:n},seenUids:{box:{},circle:{}}},a),r?u.length>0:u},Xe.prototype.query=function(e,t,n,r,a){return this._query(e,t,n,r,!1,a)},Xe.prototype.hitTest=function(e,t,n,r,a){return this._query(e,t,n,r,!0,a)},Xe.prototype.hitTestCircle=function(e,t,n,r){return this._queryCircle(e,t,n,!0,r)},Xe.prototype._queryCell=function(e,t,n,r,a,o,i,l){var s=i.seenUids,u=this.boxCells[a];if(null!==u)for(var c=this.bboxes,f=0,p=u;f<p.length;f+=1){var d=p[f];if(!s.box[d]){s.box[d]=!0;var h=4*d;if(e<=c[h+2]&&t<=c[h+3]&&n>=c[h+0]&&r>=c[h+1]&&(!l||l(this.boxKeys[d]))){if(i.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[d],x1:c[h],y1:c[h+1],x2:c[h+2],y2:c[h+3]})}}}var v=this.circleCells[a];if(null!==v)for(var m=this.circles,y=0,g=v;y<g.length;y+=1){var b=g[y];if(!s.circle[b]){s.circle[b]=!0;var x=3*b;if(this._circleAndRectCollide(m[x],m[x+1],m[x+2],e,t,n,r)&&(!l||l(this.circleKeys[b]))){if(i.hitTest)return o.push(!0),!0;var _=m[x],w=m[x+1],k=m[x+2];o.push({key:this.circleKeys[b],x1:_-k,y1:w-k,x2:_+k,y2:w+k})}}}},Xe.prototype._queryCellCircle=function(e,t,n,r,a,o,i,l){var s=i.circle,u=i.seenUids,c=this.boxCells[a];if(null!==c)for(var f=this.bboxes,p=0,d=c;p<d.length;p+=1){var h=d[p];if(!u.box[h]){u.box[h]=!0;var v=4*h;if(this._circleAndRectCollide(s.x,s.y,s.radius,f[v+0],f[v+1],f[v+2],f[v+3])&&(!l||l(this.boxKeys[h])))return o.push(!0),!0}}var m=this.circleCells[a];if(null!==m)for(var y=this.circles,g=0,b=m;g<b.length;g+=1){var x=b[g];if(!u.circle[x]){u.circle[x]=!0;var _=3*x;if(this._circlesCollide(y[_],y[_+1],y[_+2],s.x,s.y,s.radius)&&(!l||l(this.circleKeys[x])))return o.push(!0),!0}}},Xe.prototype._forEachCell=function(e,t,n,r,a,o,i,l){for(var s=this._convertToXCellCoord(e),u=this._convertToYCellCoord(t),c=this._convertToXCellCoord(n),f=this._convertToYCellCoord(r),p=s;p<=c;p++)for(var d=u;d<=f;d++)if(a.call(this,e,t,n,r,this.xCellCount*d+p,o,i,l))return},Xe.prototype._convertToXCellCoord=function(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))},Xe.prototype._convertToYCellCoord=function(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))},Xe.prototype._circlesCollide=function(e,t,n,r,a,o){var i=r-e,l=a-t,s=n+o;return s*s>i*i+l*l},Xe.prototype._circleAndRectCollide=function(e,t,n,r,a,o,i){var l=(o-r)/2,s=Math.abs(e-(r+l));if(s>l+n)return!1;var u=(i-a)/2,c=Math.abs(t-(a+u));if(c>u+n)return!1;if(s<=l||c<=u)return!0;var f=s-l,p=c-u;return f*f+p*p<=n*n};var st=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ut(e,t){for(var n=0;n<e;n++){var r=t.length;t.resize(r+4),t.float32.set(st,3*r)}}function ct(e,t,n){var r=t[0],a=t[1];return e[0]=n[0]*r+n[4]*a+n[12],e[1]=n[1]*r+n[5]*a+n[13],e[3]=n[3]*r+n[7]*a+n[15],e}var ft=function(e,t,n){void 0===t&&(t=new Xe(e.width+200,e.height+200,25)),void 0===n&&(n=new Xe(e.width+200,e.height+200,25)),this.transform=e,this.grid=t,this.ignoredGrid=n,this.pitchfactor=Math.cos(e._pitch)*e.cameraToCenterDistance,this.screenRightBoundary=e.width+100,this.screenBottomBoundary=e.height+100,this.gridRightBoundary=e.width+200,this.gridBottomBoundary=e.height+200};function pt(t,n,r){return n*(e.EXTENT/(t.tileSize*Math.pow(2,r-t.tileID.overscaledZ)))}ft.prototype.placeCollisionBox=function(e,t,n,r,a){var o=this.projectAndGetPerspectiveRatio(r,e.anchorPointX,e.anchorPointY),i=n*o.perspectiveRatio,l=e.x1*i+o.point.x,s=e.y1*i+o.point.y,u=e.x2*i+o.point.x,c=e.y2*i+o.point.y;return!this.isInsideGrid(l,s,u,c)||!t&&this.grid.hitTest(l,s,u,c,a)?{box:[],offscreen:!1}:{box:[l,s,u,c],offscreen:this.isOffscreen(l,s,u,c)}},ft.prototype.placeCollisionCircles=function(t,n,r,a,o,i,l,s,u,c,f,p,d){var h=[],v=new e.Point(n.anchorX,n.anchorY),m=Qe(v,i),y=et(this.transform.cameraToCenterDistance,m.signedDistanceFromCamera),g=(c?o/y:o*y)/e.ONE_EM,b=Qe(v,l).point,x=rt(g,a,n.lineOffsetX*g,n.lineOffsetY*g,!1,b,v,n,r,l,{}),_=!1,w=!1,k=!0;if(x){for(var T=.5*p*y+d,E=new e.Point(-100,-100),O=new e.Point(this.screenRightBoundary,this.screenBottomBoundary),M=new Ke,S=x.first,C=x.last,A=[],P=S.path.length-1;P>=1;P--)A.push(S.path[P]);for(var L=1;L<C.path.length;L++)A.push(C.path[L]);var D=2.5*T;if(s){var j=A.map((function(e){return Qe(e,s)}));A=j.some((function(e){return e.signedDistanceFromCamera<=0}))?[]:j.map((function(e){return e.point}))}var I=[];if(A.length>0){for(var R=A[0].clone(),z=A[0].clone(),N=1;N<A.length;N++)R.x=Math.min(R.x,A[N].x),R.y=Math.min(R.y,A[N].y),z.x=Math.max(z.x,A[N].x),z.y=Math.max(z.y,A[N].y);I=R.x>=E.x&&z.x<=O.x&&R.y>=E.y&&z.y<=O.y?[A]:z.x<E.x||R.x>O.x||z.y<E.y||R.y>O.y?[]:e.clipLine([A],E.x,E.y,O.x,O.y)}for(var F=0,B=I;F<B.length;F+=1){var V;M.reset(B[F],.25*T),V=M.length<=.5*T?1:Math.ceil(M.paddedLength/D)+1;for(var H=0;H<V;H++){var U=H/Math.max(V-1,1),W=M.lerp(U),q=W.x+100,$=W.y+100;h.push(q,$,T,0);var G=q-T,Y=$-T,K=q+T,X=$+T;if(k=k&&this.isOffscreen(G,Y,K,X),w=w||this.isInsideGrid(G,Y,K,X),!t&&this.grid.hitTestCircle(q,$,T,f)&&(_=!0,!u))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!u&&_||!w?[]:h,offscreen:k,collisionDetected:_}},ft.prototype.queryRenderedSymbols=function(t){if(0===t.length||0===this.grid.keysLength()&&0===this.ignoredGrid.keysLength())return{};for(var n=[],r=1/0,a=1/0,o=-1/0,i=-1/0,l=0,s=t;l<s.length;l+=1){var u=s[l],c=new e.Point(u.x+100,u.y+100);r=Math.min(r,c.x),a=Math.min(a,c.y),o=Math.max(o,c.x),i=Math.max(i,c.y),n.push(c)}for(var f={},p={},d=0,h=this.grid.query(r,a,o,i).concat(this.ignoredGrid.query(r,a,o,i));d<h.length;d+=1){var v=h[d],m=v.key;if(void 0===f[m.bucketInstanceId]&&(f[m.bucketInstanceId]={}),!f[m.bucketInstanceId][m.featureIndex]){var y=[new e.Point(v.x1,v.y1),new e.Point(v.x2,v.y1),new e.Point(v.x2,v.y2),new e.Point(v.x1,v.y2)];e.polygonIntersectsPolygon(n,y)&&(f[m.bucketInstanceId][m.featureIndex]=!0,void 0===p[m.bucketInstanceId]&&(p[m.bucketInstanceId]=[]),p[m.bucketInstanceId].push(m.featureIndex))}}return p},ft.prototype.insertCollisionBox=function(e,t,n,r,a){(t?this.ignoredGrid:this.grid).insert({bucketInstanceId:n,featureIndex:r,collisionGroupID:a},e[0],e[1],e[2],e[3])},ft.prototype.insertCollisionCircles=function(e,t,n,r,a){for(var o=t?this.ignoredGrid:this.grid,i={bucketInstanceId:n,featureIndex:r,collisionGroupID:a},l=0;l<e.length;l+=4)o.insertCircle(i,e[l],e[l+1],e[l+2])},ft.prototype.projectAndGetPerspectiveRatio=function(t,n,r){var a=[n,r,0,1];return ct(a,a,t),{point:new e.Point((a[0]/a[3]+1)/2*this.transform.width+100,(-a[1]/a[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/a[3]*.5}},ft.prototype.isOffscreen=function(e,t,n,r){return n<100||e>=this.screenRightBoundary||r<100||t>this.screenBottomBoundary},ft.prototype.isInsideGrid=function(e,t,n,r){return n>=0&&e<this.gridRightBoundary&&r>=0&&t<this.gridBottomBoundary},ft.prototype.getViewportMatrix=function(){var t=e.identity([]);return e.translate(t,t,[-100,-100,0]),t};var dt=function(e,t,n,r){this.opacity=e?Math.max(0,Math.min(1,e.opacity+(e.placed?t:-t))):r&&n?1:0,this.placed=n};dt.prototype.isHidden=function(){return 0===this.opacity&&!this.placed};var ht=function(e,t,n,r,a){this.text=new dt(e?e.text:null,t,n,a),this.icon=new dt(e?e.icon:null,t,r,a)};ht.prototype.isHidden=function(){return this.text.isHidden()&&this.icon.isHidden()};var vt=function(e,t,n){this.text=e,this.icon=t,this.skipFade=n},mt=function(){this.invProjMatrix=e.create(),this.viewportMatrix=e.create(),this.circles=[]},yt=function(e,t,n,r,a){this.bucketInstanceId=e,this.featureIndex=t,this.sourceLayerIndex=n,this.bucketIndex=r,this.tileID=a},gt=function(e){this.crossSourceCollisions=e,this.maxGroupID=0,this.collisionGroups={}};function bt(t,n,r,a,o){var i=e.getAnchorAlignment(t),l=-(i.horizontalAlign-.5)*n,s=-(i.verticalAlign-.5)*r,u=e.evaluateVariableOffset(t,a);return new e.Point(l+u[0]*o,s+u[1]*o)}function xt(t,n,r,a,o,i){var l=t.x1,s=t.x2,u=t.y1,c=t.y2,f=t.anchorPointX,p=t.anchorPointY,d=new e.Point(n,r);return a&&d._rotate(o?i:-i),{x1:l+d.x,y1:u+d.y,x2:s+d.x,y2:c+d.y,anchorPointX:f,anchorPointY:p}}gt.prototype.get=function(e){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[e]){var t=++this.maxGroupID;this.collisionGroups[e]={ID:t,predicate:function(e){return e.collisionGroupID===t}}}return this.collisionGroups[e]};var _t=function(e,t,n,r){this.transform=e.clone(),this.collisionIndex=new ft(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=t,this.retainedQueryData={},this.collisionGroups=new gt(n),this.collisionCircleArrays={},this.prevPlacement=r,r&&(r.prevPlacement=void 0),this.placedOrientations={}};function wt(e,t,n,r,a){e.emplaceBack(t?1:0,n?1:0,r||0,a||0),e.emplaceBack(t?1:0,n?1:0,r||0,a||0),e.emplaceBack(t?1:0,n?1:0,r||0,a||0),e.emplaceBack(t?1:0,n?1:0,r||0,a||0)}_t.prototype.getBucketParts=function(t,n,r,a){var o=r.getBucket(n),i=r.latestFeatureIndex;if(o&&i&&n.id===o.layerIds[0]){var l=r.collisionBoxArray,s=o.layers[0].layout,u=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),c=r.tileSize/e.EXTENT,f=this.transform.calculatePosMatrix(r.tileID.toUnwrapped()),p="map"===s.get("text-pitch-alignment"),d="map"===s.get("text-rotation-alignment"),h=pt(r,1,this.transform.zoom),v=Ze(f,p,d,this.transform,h),m=null;if(p){var y=Je(f,p,d,this.transform,h);m=e.multiply([],this.transform.labelPlaneMatrix,y)}this.retainedQueryData[o.bucketInstanceId]=new yt(o.bucketInstanceId,i,o.sourceLayerIndex,o.index,r.tileID);var g={bucket:o,layout:s,posMatrix:f,textLabelPlaneMatrix:v,labelToScreenMatrix:m,scale:u,textPixelRatio:c,holdingForFade:r.holdingForFade(),collisionBoxArray:l,partiallyEvaluatedTextSize:e.evaluateSizeForZoom(o.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(o.sourceID)};if(a)for(var b=0,x=o.sortKeyRanges;b<x.length;b+=1){var _=x[b];t.push({sortKey:_.sortKey,symbolInstanceStart:_.symbolInstanceStart,symbolInstanceEnd:_.symbolInstanceEnd,parameters:g})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:o.symbolInstances.length,parameters:g})}},_t.prototype.attemptAnchorPlacement=function(e,t,n,r,a,o,i,l,s,u,c,f,p,d,h){var v,m=[f.textOffset0,f.textOffset1],y=bt(e,n,r,m,a),g=this.collisionIndex.placeCollisionBox(xt(t,y.x,y.y,o,i,this.transform.angle),c,l,s,u.predicate);if(!h||0!==this.collisionIndex.placeCollisionBox(xt(h,y.x,y.y,o,i,this.transform.angle),c,l,s,u.predicate).box.length)return g.box.length>0?(this.prevPlacement&&this.prevPlacement.variableOffsets[f.crossTileID]&&this.prevPlacement.placements[f.crossTileID]&&this.prevPlacement.placements[f.crossTileID].text&&(v=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:m,width:n,height:r,anchor:e,textBoxScale:a,prevAnchor:v},this.markUsedJustification(p,e,f,d),p.allowVerticalPlacement&&(this.markUsedOrientation(p,d,f),this.placedOrientations[f.crossTileID]=d),{shift:y,placedGlyphBoxes:g}):void 0},_t.prototype.placeLayerBucketPart=function(t,n,r){var a=this,o=t.parameters,i=o.bucket,l=o.layout,s=o.posMatrix,u=o.textLabelPlaneMatrix,c=o.labelToScreenMatrix,f=o.textPixelRatio,p=o.holdingForFade,d=o.collisionBoxArray,h=o.partiallyEvaluatedTextSize,v=o.collisionGroup,m=l.get("text-optional"),y=l.get("icon-optional"),g=l.get("text-allow-overlap"),b=l.get("icon-allow-overlap"),x="map"===l.get("text-rotation-alignment"),_="map"===l.get("text-pitch-alignment"),w="none"!==l.get("icon-text-fit"),k="viewport-y"===l.get("symbol-z-order"),T=g&&(b||!i.hasIconData()||y),E=b&&(g||!i.hasTextData()||m);!i.collisionArrays&&d&&i.deserializeCollisionBoxes(d);var O=function(t,o){if(!n[t.crossTileID])if(p)a.placements[t.crossTileID]=new vt(!1,!1,!1);else{var d,k=!1,O=!1,M=!0,S=null,C={box:null,offscreen:null},A={box:null,offscreen:null},P=null,L=null,D=0,j=0,I=0;o.textFeatureIndex?D=o.textFeatureIndex:t.useRuntimeCollisionCircles&&(D=t.featureIndex),o.verticalTextFeatureIndex&&(j=o.verticalTextFeatureIndex);var R=o.textBox;if(R){var z=function(n){var r=e.WritingMode.horizontal;if(i.allowVerticalPlacement&&!n&&a.prevPlacement){var o=a.prevPlacement.placedOrientations[t.crossTileID];o&&(a.placedOrientations[t.crossTileID]=o,a.markUsedOrientation(i,r=o,t))}return r},N=function(n,r){if(i.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&o.verticalTextBox)for(var a=0,l=i.writingModes;a<l.length&&(l[a]===e.WritingMode.vertical?(C=r(),A=C):C=n(),!(C&&C.box&&C.box.length));a+=1);else C=n()};if(l.get("text-variable-anchor")){var F=l.get("text-variable-anchor");if(a.prevPlacement&&a.prevPlacement.variableOffsets[t.crossTileID]){var B=a.prevPlacement.variableOffsets[t.crossTileID];F.indexOf(B.anchor)>0&&(F=F.filter((function(e){return e!==B.anchor}))).unshift(B.anchor)}var V=function(e,n,r){for(var o=e.x2-e.x1,l=e.y2-e.y1,u=t.textBoxScale,c=w&&!b?n:null,p={box:[],offscreen:!1},d=g?2*F.length:F.length,h=0;h<d;++h){var m=a.attemptAnchorPlacement(F[h%F.length],e,o,l,u,x,_,f,s,v,h>=F.length,t,i,r,c);if(m&&(p=m.placedGlyphBoxes)&&p.box&&p.box.length){k=!0,S=m.shift;break}}return p};N((function(){return V(R,o.iconBox,e.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return i.allowVerticalPlacement&&!(C&&C.box&&C.box.length)&&t.numVerticalGlyphVertices>0&&n?V(n,o.verticalIconBox,e.WritingMode.vertical):{box:null,offscreen:null}})),C&&(k=C.box,M=C.offscreen);var H=z(C&&C.box);if(!k&&a.prevPlacement){var U=a.prevPlacement.variableOffsets[t.crossTileID];U&&(a.variableOffsets[t.crossTileID]=U,a.markUsedJustification(i,U.anchor,t,H))}}else{var W=function(e,n){var r=a.collisionIndex.placeCollisionBox(e,g,f,s,v.predicate);return r&&r.box&&r.box.length&&(a.markUsedOrientation(i,n,t),a.placedOrientations[t.crossTileID]=n),r};N((function(){return W(R,e.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return i.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&n?W(n,e.WritingMode.vertical):{box:null,offscreen:null}})),z(C&&C.box&&C.box.length)}}if(k=(d=C)&&d.box&&d.box.length>0,M=d&&d.offscreen,t.useRuntimeCollisionCircles){var q=i.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),$=e.evaluateSizeForFeature(i.textSizeData,h,q),G=l.get("text-padding");P=a.collisionIndex.placeCollisionCircles(g,q,i.lineVertexArray,i.glyphOffsetArray,$,s,u,c,r,_,v.predicate,t.collisionCircleDiameter,G),k=g||P.circles.length>0&&!P.collisionDetected,M=M&&P.offscreen}if(o.iconFeatureIndex&&(I=o.iconFeatureIndex),o.iconBox){var Y=function(e){var t=w&&S?xt(e,S.x,S.y,x,_,a.transform.angle):e;return a.collisionIndex.placeCollisionBox(t,b,f,s,v.predicate)};O=A&&A.box&&A.box.length&&o.verticalIconBox?(L=Y(o.verticalIconBox)).box.length>0:(L=Y(o.iconBox)).box.length>0,M=M&&L.offscreen}var K=m||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,X=y||0===t.numIconVertices;if(K||X?X?K||(O=O&&k):k=O&&k:O=k=O&&k,k&&d&&d.box&&a.collisionIndex.insertCollisionBox(d.box,l.get("text-ignore-placement"),i.bucketInstanceId,A&&A.box&&j?j:D,v.ID),O&&L&&a.collisionIndex.insertCollisionBox(L.box,l.get("icon-ignore-placement"),i.bucketInstanceId,I,v.ID),P&&(k&&a.collisionIndex.insertCollisionCircles(P.circles,l.get("text-ignore-placement"),i.bucketInstanceId,D,v.ID),r)){var Z=i.bucketInstanceId,J=a.collisionCircleArrays[Z];void 0===J&&(J=a.collisionCircleArrays[Z]=new mt);for(var Q=0;Q<P.circles.length;Q+=4)J.circles.push(P.circles[Q+0]),J.circles.push(P.circles[Q+1]),J.circles.push(P.circles[Q+2]),J.circles.push(P.collisionDetected?1:0)}a.placements[t.crossTileID]=new vt(k||T,O||E,M||i.justReloaded),n[t.crossTileID]=!0}};if(k)for(var M=i.getSortedSymbolIndexes(this.transform.angle),S=M.length-1;S>=0;--S){var C=M[S];O(i.symbolInstances.get(C),i.collisionArrays[C])}else for(var A=t.symbolInstanceStart;A<t.symbolInstanceEnd;A++)O(i.symbolInstances.get(A),i.collisionArrays[A]);if(r&&i.bucketInstanceId in this.collisionCircleArrays){var P=this.collisionCircleArrays[i.bucketInstanceId];e.invert(P.invProjMatrix,s),P.viewportMatrix=this.collisionIndex.getViewportMatrix()}i.justReloaded=!1},_t.prototype.markUsedJustification=function(t,n,r,a){var o;o=a===e.WritingMode.vertical?r.verticalPlacedTextSymbolIndex:{left:r.leftJustifiedTextSymbolIndex,center:r.centerJustifiedTextSymbolIndex,right:r.rightJustifiedTextSymbolIndex}[e.getAnchorJustification(n)];for(var i=0,l=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex,r.verticalPlacedTextSymbolIndex];i<l.length;i+=1){var s=l[i];s>=0&&(t.text.placedSymbolArray.get(s).crossTileID=o>=0&&s!==o?0:r.crossTileID)}},_t.prototype.markUsedOrientation=function(t,n,r){for(var a=n===e.WritingMode.horizontal||n===e.WritingMode.horizontalOnly?n:0,o=n===e.WritingMode.vertical?n:0,i=0,l=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];i<l.length;i+=1)t.text.placedSymbolArray.get(l[i]).placedOrientation=a;r.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=o)},_t.prototype.commit=function(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;var t=this.prevPlacement,n=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;var r=t?t.symbolFadeChange(e):1,a=t?t.opacities:{},o=t?t.variableOffsets:{},i=t?t.placedOrientations:{};for(var l in this.placements){var s=this.placements[l],u=a[l];u?(this.opacities[l]=new ht(u,r,s.text,s.icon),n=n||s.text!==u.text.placed||s.icon!==u.icon.placed):(this.opacities[l]=new ht(null,r,s.text,s.icon,s.skipFade),n=n||s.text||s.icon)}for(var c in a){var f=a[c];if(!this.opacities[c]){var p=new ht(f,r,!1,!1);p.isHidden()||(this.opacities[c]=p,n=n||f.text.placed||f.icon.placed)}}for(var d in o)this.variableOffsets[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.variableOffsets[d]=o[d]);for(var h in i)this.placedOrientations[h]||!this.opacities[h]||this.opacities[h].isHidden()||(this.placedOrientations[h]=i[h]);n?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)},_t.prototype.updateLayerOpacities=function(e,t){for(var n={},r=0,a=t;r<a.length;r+=1){var o=a[r],i=o.getBucket(e);i&&o.latestFeatureIndex&&e.id===i.layerIds[0]&&this.updateBucketOpacities(i,n,o.collisionBoxArray)}},_t.prototype.updateBucketOpacities=function(t,n,r){var a=this;t.hasTextData()&&t.text.opacityVertexArray.clear(),t.hasIconData()&&t.icon.opacityVertexArray.clear(),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();var o=t.layers[0].layout,i=new ht(null,0,!1,!1,!0),l=o.get("text-allow-overlap"),s=o.get("icon-allow-overlap"),u=o.get("text-variable-anchor"),c="map"===o.get("text-rotation-alignment"),f="map"===o.get("text-pitch-alignment"),p="none"!==o.get("icon-text-fit"),d=new ht(null,0,l&&(s||!t.hasIconData()||o.get("icon-optional")),s&&(l||!t.hasTextData()||o.get("text-optional")),!0);!t.collisionArrays&&r&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(r);for(var h=function(e,t,n){for(var r=0;r<t/4;r++)e.opacityVertexArray.emplaceBack(n)},v=function(r){var o=t.symbolInstances.get(r),l=o.numHorizontalGlyphVertices,s=o.numVerticalGlyphVertices,v=o.crossTileID,m=a.opacities[v];n[v]?m=i:m||(a.opacities[v]=m=d),n[v]=!0;var y=o.numIconVertices>0,g=a.placedOrientations[o.crossTileID],b=g===e.WritingMode.vertical,x=g===e.WritingMode.horizontal||g===e.WritingMode.horizontalOnly;if(l>0||s>0){var _=At(m.text);h(t.text,l,b?Pt:_),h(t.text,s,x?Pt:_);var w=m.text.isHidden();[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex].forEach((function(e){e>=0&&(t.text.placedSymbolArray.get(e).hidden=w||b?1:0)})),o.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(o.verticalPlacedTextSymbolIndex).hidden=w||x?1:0);var k=a.variableOffsets[o.crossTileID];k&&a.markUsedJustification(t,k.anchor,o,g);var T=a.placedOrientations[o.crossTileID];T&&(a.markUsedJustification(t,"left",o,T),a.markUsedOrientation(t,T,o))}if(y){var E=At(m.icon),O=!(p&&o.verticalPlacedIconSymbolIndex&&b);o.placedIconSymbolIndex>=0&&(h(t.icon,o.numIconVertices,O?E:Pt),t.icon.placedSymbolArray.get(o.placedIconSymbolIndex).hidden=m.icon.isHidden()),o.verticalPlacedIconSymbolIndex>=0&&(h(t.icon,o.numVerticalIconVertices,O?Pt:E),t.icon.placedSymbolArray.get(o.verticalPlacedIconSymbolIndex).hidden=m.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){var M=t.collisionArrays[r];if(M){var S=new e.Point(0,0);if(M.textBox||M.verticalTextBox){var C=!0;if(u){var A=a.variableOffsets[v];A?(S=bt(A.anchor,A.width,A.height,A.textOffset,A.textBoxScale),c&&S._rotate(f?a.transform.angle:-a.transform.angle)):C=!1}M.textBox&&wt(t.textCollisionBox.collisionVertexArray,m.text.placed,!C||b,S.x,S.y),M.verticalTextBox&&wt(t.textCollisionBox.collisionVertexArray,m.text.placed,!C||x,S.x,S.y)}var P=Boolean(!x&&M.verticalIconBox);M.iconBox&&wt(t.iconCollisionBox.collisionVertexArray,m.icon.placed,P,p?S.x:0,p?S.y:0),M.verticalIconBox&&wt(t.iconCollisionBox.collisionVertexArray,m.icon.placed,!P,p?S.x:0,p?S.y:0)}}},m=0;m<t.symbolInstances.length;m++)v(m);if(t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.bucketInstanceId in this.collisionCircleArrays){var y=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=y.invProjMatrix,t.placementViewportMatrix=y.viewportMatrix,t.collisionCircleArray=y.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}},_t.prototype.symbolFadeChange=function(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},_t.prototype.zoomAdjustment=function(e){return Math.max(0,(this.transform.zoom-e)/1.5)},_t.prototype.hasTransitions=function(e){return this.stale||e-this.lastPlacementChangeTime<this.fadeDuration},_t.prototype.stillRecent=function(e,t){var n=this.zoomAtLastRecencyCheck===t?1-this.zoomAdjustment(t):1;return this.zoomAtLastRecencyCheck=t,this.commitTime+this.fadeDuration*n>e},_t.prototype.setStale=function(){this.stale=!0};var kt=Math.pow(2,25),Tt=Math.pow(2,24),Et=Math.pow(2,17),Ot=Math.pow(2,16),Mt=Math.pow(2,9),St=Math.pow(2,8),Ct=Math.pow(2,1);function At(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 4294967295;var t=e.placed?1:0,n=Math.floor(127*e.opacity);return n*kt+t*Tt+n*Et+t*Ot+n*Mt+t*St+n*Ct+t}var Pt=0,Lt=function(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&void 0!==e.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Lt.prototype.continuePlacement=function(e,t,n,r,a){for(var o=this._bucketParts;this._currentTileIndex<e.length;)if(t.getBucketParts(o,r,e[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,a())return!0;for(this._sortAcrossTiles&&(this._sortAcrossTiles=!1,o.sort((function(e,t){return e.sortKey-t.sortKey})));this._currentPartIndex<o.length;)if(t.placeLayerBucketPart(o[this._currentPartIndex],this._seenCrossTileIDs,n),this._currentPartIndex++,a())return!0;return!1};var Dt=function(e,t,n,r,a,o,i){this.placement=new _t(e,a,o,i),this._currentPlacementIndex=t.length-1,this._forceFullPlacement=n,this._showCollisionBoxes=r,this._done=!1};Dt.prototype.isDone=function(){return this._done},Dt.prototype.continuePlacement=function(t,n,r){for(var a=this,o=e.browser.now(),i=function(){var t=e.browser.now()-o;return!a._forceFullPlacement&&t>2};this._currentPlacementIndex>=0;){var l=n[t[this._currentPlacementIndex]],s=this.placement.collisionIndex.transform.zoom;if("symbol"===l.type&&(!l.minzoom||l.minzoom<=s)&&(!l.maxzoom||l.maxzoom>s)){if(this._inProgressLayer||(this._inProgressLayer=new Lt(l)),this._inProgressLayer.continuePlacement(r[l.source],this.placement,this._showCollisionBoxes,l,i))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Dt.prototype.commit=function(e){return this.placement.commit(e),this.placement};var jt=512/e.EXTENT/2,It=function(e,t,n){this.tileID=e,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(var r=0;r<t.length;r++){var a=t.get(r),o=a.key;this.indexedSymbolInstances[o]||(this.indexedSymbolInstances[o]=[]),this.indexedSymbolInstances[o].push({crossTileID:a.crossTileID,coord:this.getScaledCoordinates(a,e)})}};It.prototype.getScaledCoordinates=function(t,n){var r=jt/Math.pow(2,n.canonical.z-this.tileID.canonical.z);return{x:Math.floor((n.canonical.x*e.EXTENT+t.anchorX)*r),y:Math.floor((n.canonical.y*e.EXTENT+t.anchorY)*r)}},It.prototype.findMatches=function(e,t,n){for(var r=this.tileID.canonical.z<t.canonical.z?1:Math.pow(2,this.tileID.canonical.z-t.canonical.z),a=0;a<e.length;a++){var o=e.get(a);if(!o.crossTileID){var i=this.indexedSymbolInstances[o.key];if(i)for(var l=this.getScaledCoordinates(o,t),s=0,u=i;s<u.length;s+=1){var c=u[s];if(Math.abs(c.coord.x-l.x)<=r&&Math.abs(c.coord.y-l.y)<=r&&!n[c.crossTileID]){n[c.crossTileID]=!0,o.crossTileID=c.crossTileID;break}}}}};var Rt=function(){this.maxCrossTileID=0};Rt.prototype.generate=function(){return++this.maxCrossTileID};var zt=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};zt.prototype.handleWrapJump=function(e){var t=Math.round((e-this.lng)/360);if(0!==t)for(var n in this.indexes){var r=this.indexes[n],a={};for(var o in r){var i=r[o];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+t),a[i.tileID.key]=i}this.indexes[n]=a}this.lng=e},zt.prototype.addBucket=function(e,t,n){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(var r=0;r<t.symbolInstances.length;r++)t.symbolInstances.get(r).crossTileID=0;this.usedCrossTileIDs[e.overscaledZ]||(this.usedCrossTileIDs[e.overscaledZ]={});var a=this.usedCrossTileIDs[e.overscaledZ];for(var o in this.indexes){var i=this.indexes[o];if(Number(o)>e.overscaledZ)for(var l in i){var s=i[l];s.tileID.isChildOf(e)&&s.findMatches(t.symbolInstances,e,a)}else{var u=i[e.scaledTo(Number(o)).key];u&&u.findMatches(t.symbolInstances,e,a)}}for(var c=0;c<t.symbolInstances.length;c++){var f=t.symbolInstances.get(c);f.crossTileID||(f.crossTileID=n.generate(),a[f.crossTileID]=!0)}return void 0===this.indexes[e.overscaledZ]&&(this.indexes[e.overscaledZ]={}),this.indexes[e.overscaledZ][e.key]=new It(e,t.symbolInstances,t.bucketInstanceId),!0},zt.prototype.removeBucketCrossTileIDs=function(e,t){for(var n in t.indexedSymbolInstances)for(var r=0,a=t.indexedSymbolInstances[n];r<a.length;r+=1)delete this.usedCrossTileIDs[e][a[r].crossTileID]},zt.prototype.removeStaleBuckets=function(e){var t=!1;for(var n in this.indexes){var r=this.indexes[n];for(var a in r)e[r[a].bucketInstanceId]||(this.removeBucketCrossTileIDs(n,r[a]),delete r[a],t=!0)}return t};var Nt=function(){this.layerIndexes={},this.crossTileIDs=new Rt,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Nt.prototype.addLayer=function(e,t,n){var r=this.layerIndexes[e.id];void 0===r&&(r=this.layerIndexes[e.id]=new zt);var a=!1,o={};r.handleWrapJump(n);for(var i=0,l=t;i<l.length;i+=1){var s=l[i],u=s.getBucket(e);u&&e.id===u.layerIds[0]&&(u.bucketInstanceId||(u.bucketInstanceId=++this.maxBucketInstanceId),r.addBucket(s.tileID,u,this.crossTileIDs)&&(a=!0),o[u.bucketInstanceId]=!0)}return r.removeStaleBuckets(o)&&(a=!0),a},Nt.prototype.pruneUnusedLayers=function(e){var t={};for(var n in e.forEach((function(e){t[e]=!0})),this.layerIndexes)t[n]||delete this.layerIndexes[n]};var Ft=function(t,n){return e.emitValidationErrors(t,n&&n.filter((function(e){return"source.canvas"!==e.identifier})))},Bt=e.pick(Ve,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData"]),Vt=e.pick(Ve,["setCenter","setZoom","setBearing","setPitch"]),Ht=function(){var t={},n=e.styleSpec.$version;for(var r in e.styleSpec.$root){var a,o=e.styleSpec.$root[r];o.required&&null!=(a="version"===r?n:"array"===o.type?[]:{})&&(t[r]=a)}return t}(),Ut=function(t){function n(r,a){var o=this;void 0===a&&(a={}),t.call(this),this.map=r,this.dispatcher=new T(Ne(),this),this.imageManager=new p,this.imageManager.setEventedParent(this),this.glyphManager=new b(r._requestManager,a.localIdeographFontFamily),this.lineAtlas=new k(256,512),this.crossTileSymbolIndex=new Nt,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new e.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.getReferrer());var i=this;this._rtlTextPluginCallback=n.registerForPluginStateChange((function(t){i.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},(function(t,n){if(e.triggerPluginCompletionEvent(t),n&&n.every((function(e){return e})))for(var r in i.sourceCaches)i.sourceCaches[r].reload()}))})),this.on("data",(function(e){if("source"===e.dataType&&"metadata"===e.sourceDataType){var t=o.sourceCaches[e.sourceId];if(t){var n=t.getSource();if(n&&n.vectorLayerIds)for(var r in o._layers){var a=o._layers[r];a.source===n.id&&o._validateLayer(a)}}}}))}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.loadURL=function(t,n){var r=this;void 0===n&&(n={}),this.fire(new e.Event("dataloading",{dataType:"style"}));var a="boolean"==typeof n.validate?n.validate:!e.isMapboxURL(t);t=this.map._requestManager.normalizeStyleURL(t,n.accessToken);var o=this.map._requestManager.transformRequest(t,e.ResourceType.Style);this._request=e.getJSON(o,(function(t,n){r._request=null,t?r.fire(new e.ErrorEvent(t)):n&&r._load(n,a)}))},n.prototype.loadJSON=function(t,n){var r=this;void 0===n&&(n={}),this.fire(new e.Event("dataloading",{dataType:"style"})),this._request=e.browser.frame((function(){r._request=null,r._load(t,!1!==n.validate)}))},n.prototype.loadEmpty=function(){this.fire(new e.Event("dataloading",{dataType:"style"})),this._load(Ht,!1)},n.prototype._load=function(t,n){if(!n||!Ft(this,e.validateStyle(t))){for(var r in this._loaded=!0,this.stylesheet=t,t.sources)this.addSource(r,t.sources[r],{validate:!1});t.sprite?this._loadSprite(t.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(t.glyphs);var a=Be(this.stylesheet.layers);this._order=a.map((function(e){return e.id})),this._layers={},this._serializedLayers={};for(var o=0,i=a;o<i.length;o+=1){var l=i[o];(l=e.createStyleLayer(l)).setEventedParent(this,{layer:{id:l.id}}),this._layers[l.id]=l,this._serializedLayers[l.id]=l.serialize()}this.dispatcher.broadcast("setLayers",this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new e.Event("data",{dataType:"style"})),this.fire(new e.Event("style.load"))}},n.prototype._loadSprite=function(t){var n=this;this._spriteRequest=function(t,n,r){var a,o,i,l=e.browser.devicePixelRatio>1?"@2x":"",s=e.getJSON(n.transformRequest(n.normalizeSpriteURL(t,l,".json"),e.ResourceType.SpriteJSON),(function(e,t){s=null,i||(i=e,a=t,c())})),u=e.getImage(n.transformRequest(n.normalizeSpriteURL(t,l,".png"),e.ResourceType.SpriteImage),(function(e,t){u=null,i||(i=e,o=t,c())}));function c(){if(i)r(i);else if(a&&o){var t=e.browser.getImageData(o),n={};for(var l in a){var s=a[l],u=s.width,c=s.height,f=s.x,p=s.y,d=s.sdf,h=s.pixelRatio,v=s.stretchX,m=s.stretchY,y=s.content,g=new e.RGBAImage({width:u,height:c});e.RGBAImage.copy(t,g,{x:f,y:p},{x:0,y:0},{width:u,height:c}),n[l]={data:g,pixelRatio:h,sdf:d,stretchX:v,stretchY:m,content:y}}r(null,n)}}return{cancel:function(){s&&(s.cancel(),s=null),u&&(u.cancel(),u=null)}}}(t,this.map._requestManager,(function(t,r){if(n._spriteRequest=null,t)n.fire(new e.ErrorEvent(t));else if(r)for(var a in r)n.imageManager.addImage(a,r[a]);n.imageManager.setLoaded(!0),n._availableImages=n.imageManager.listImages(),n.dispatcher.broadcast("setImages",n._availableImages),n.fire(new e.Event("data",{dataType:"style"}))}))},n.prototype._validateLayer=function(t){var n=this.sourceCaches[t.source];if(n){var r=t.sourceLayer;if(r){var a=n.getSource();("geojson"===a.type||a.vectorLayerIds&&-1===a.vectorLayerIds.indexOf(r))&&this.fire(new e.ErrorEvent(new Error('Source layer "'+r+'" does not exist on source "'+a.id+'" as specified by style layer "'+t.id+'"')))}}},n.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var e in this.sourceCaches)if(!this.sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()},n.prototype._serializeLayers=function(e){for(var t=[],n=0,r=e;n<r.length;n+=1){var a=this._layers[r[n]];"custom"!==a.type&&t.push(a.serialize())}return t},n.prototype.hasTransitions=function(){if(this.light&&this.light.hasTransition())return!0;for(var e in this.sourceCaches)if(this.sourceCaches[e].hasTransition())return!0;for(var t in this._layers)if(this._layers[t].hasTransition())return!0;return!1},n.prototype._checkLoaded=function(){if(!this._loaded)throw new Error("Style is not done loading")},n.prototype.update=function(t){if(this._loaded){var n=this._changed;if(this._changed){var r=Object.keys(this._updatedLayers),a=Object.keys(this._removedLayers);for(var o in(r.length||a.length)&&this._updateWorkerLayers(r,a),this._updatedSources){var i=this._updatedSources[o];"reload"===i?this._reloadSource(o):"clear"===i&&this._clearSource(o)}for(var l in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[l].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}for(var s in this.sourceCaches)this.sourceCaches[s].used=!1;for(var u=0,c=this._order;u<c.length;u+=1){var f=this._layers[c[u]];f.recalculate(t,this._availableImages),!f.isHidden(t.zoom)&&f.source&&(this.sourceCaches[f.source].used=!0)}this.light.recalculate(t),this.z=t.zoom,n&&this.fire(new e.Event("data",{dataType:"style"}))}},n.prototype._updateTilesForChangedImages=function(){var e=Object.keys(this._changedImages);if(e.length){for(var t in this.sourceCaches)this.sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}},n.prototype._updateWorkerLayers=function(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeLayers(e),removedIds:t})},n.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},n.prototype.setState=function(t){var n=this;if(this._checkLoaded(),Ft(this,e.validateStyle(t)))return!1;(t=e.clone$1(t)).layers=Be(t.layers);var r=function(t,n){if(!t)return[{command:Ve.setStyle,args:[n]}];var r=[];try{if(!e.deepEqual(t.version,n.version))return[{command:Ve.setStyle,args:[n]}];e.deepEqual(t.center,n.center)||r.push({command:Ve.setCenter,args:[n.center]}),e.deepEqual(t.zoom,n.zoom)||r.push({command:Ve.setZoom,args:[n.zoom]}),e.deepEqual(t.bearing,n.bearing)||r.push({command:Ve.setBearing,args:[n.bearing]}),e.deepEqual(t.pitch,n.pitch)||r.push({command:Ve.setPitch,args:[n.pitch]}),e.deepEqual(t.sprite,n.sprite)||r.push({command:Ve.setSprite,args:[n.sprite]}),e.deepEqual(t.glyphs,n.glyphs)||r.push({command:Ve.setGlyphs,args:[n.glyphs]}),e.deepEqual(t.transition,n.transition)||r.push({command:Ve.setTransition,args:[n.transition]}),e.deepEqual(t.light,n.light)||r.push({command:Ve.setLight,args:[n.light]});var a={},o=[];!function(t,n,r,a){var o;for(o in n=n||{},t=t||{})t.hasOwnProperty(o)&&(n.hasOwnProperty(o)||Ue(o,r,a));for(o in n)n.hasOwnProperty(o)&&(t.hasOwnProperty(o)?e.deepEqual(t[o],n[o])||("geojson"===t[o].type&&"geojson"===n[o].type&&qe(t,n,o)?r.push({command:Ve.setGeoJSONSourceData,args:[o,n[o].data]}):We(o,n,r,a)):He(o,n,r))}(t.sources,n.sources,o,a);var i=[];t.layers&&t.layers.forEach((function(e){a[e.source]?r.push({command:Ve.removeLayer,args:[e.id]}):i.push(e)})),r=r.concat(o),function(t,n,r){n=n||[];var a,o,i,l,s,u,c,f=(t=t||[]).map(Ge),p=n.map(Ge),d=t.reduce(Ye,{}),h=n.reduce(Ye,{}),v=f.slice(),m=Object.create(null);for(a=0,o=0;a<f.length;a++)h.hasOwnProperty(i=f[a])?o++:(r.push({command:Ve.removeLayer,args:[i]}),v.splice(v.indexOf(i,o),1));for(a=0,o=0;a<p.length;a++)v[v.length-1-a]!==(i=p[p.length-1-a])&&(d.hasOwnProperty(i)?(r.push({command:Ve.removeLayer,args:[i]}),v.splice(v.lastIndexOf(i,v.length-o),1)):o++,r.push({command:Ve.addLayer,args:[h[i],u=v[v.length-a]]}),v.splice(v.length-a,0,i),m[i]=!0);for(a=0;a<p.length;a++)if(l=d[i=p[a]],s=h[i],!m[i]&&!e.deepEqual(l,s))if(e.deepEqual(l.source,s.source)&&e.deepEqual(l["source-layer"],s["source-layer"])&&e.deepEqual(l.type,s.type)){for(c in $e(l.layout,s.layout,r,i,null,Ve.setLayoutProperty),$e(l.paint,s.paint,r,i,null,Ve.setPaintProperty),e.deepEqual(l.filter,s.filter)||r.push({command:Ve.setFilter,args:[i,s.filter]}),e.deepEqual(l.minzoom,s.minzoom)&&e.deepEqual(l.maxzoom,s.maxzoom)||r.push({command:Ve.setLayerZoomRange,args:[i,s.minzoom,s.maxzoom]}),l)l.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?$e(l[c],s[c],r,i,c.slice(6),Ve.setPaintProperty):e.deepEqual(l[c],s[c])||r.push({command:Ve.setLayerProperty,args:[i,c,s[c]]}));for(c in s)s.hasOwnProperty(c)&&!l.hasOwnProperty(c)&&"layout"!==c&&"paint"!==c&&"filter"!==c&&"metadata"!==c&&"minzoom"!==c&&"maxzoom"!==c&&(0===c.indexOf("paint.")?$e(l[c],s[c],r,i,c.slice(6),Ve.setPaintProperty):e.deepEqual(l[c],s[c])||r.push({command:Ve.setLayerProperty,args:[i,c,s[c]]}))}else r.push({command:Ve.removeLayer,args:[i]}),u=v[v.lastIndexOf(i)+1],r.push({command:Ve.addLayer,args:[s,u]})}(i,n.layers,r)}catch(e){console.warn("Unable to compute style diff:",e),r=[{command:Ve.setStyle,args:[n]}]}return r}(this.serialize(),t).filter((function(e){return!(e.command in Vt)}));if(0===r.length)return!1;var a=r.filter((function(e){return!(e.command in Bt)}));if(a.length>0)throw new Error("Unimplemented: "+a.map((function(e){return e.command})).join(", ")+".");return r.forEach((function(e){"setTransition"!==e.command&&n[e.command].apply(n,e.args)})),this.stylesheet=t,!0},n.prototype.addImage=function(t,n){if(this.getImage(t))return this.fire(new e.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(t,n),this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.fire(new e.Event("data",{dataType:"style"}))},n.prototype.updateImage=function(e,t){this.imageManager.updateImage(e,t)},n.prototype.getImage=function(e){return this.imageManager.getImage(e)},n.prototype.removeImage=function(t){if(!this.getImage(t))return this.fire(new e.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(t),this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.fire(new e.Event("data",{dataType:"style"}))},n.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},n.prototype.addSource=function(t,n,r){var a=this;if(void 0===r&&(r={}),this._checkLoaded(),void 0!==this.sourceCaches[t])throw new Error("There is already a source with this ID");if(!n.type)throw new Error("The type property must be defined, but the only the following properties were given: "+Object.keys(n).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(e.validateStyle.source,"sources."+t,n,null,r))){this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);var o=this.sourceCaches[t]=new Ae(t,n,this.dispatcher);o.style=this,o.setEventedParent(this,(function(){return{isSourceLoaded:a.loaded(),source:o.serialize(),sourceId:t}})),o.onAdd(this.map),this._changed=!0}},n.prototype.removeSource=function(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw new Error("There is no source with this ID");for(var n in this._layers)if(this._layers[n].source===t)return this.fire(new e.ErrorEvent(new Error('Source "'+t+'" cannot be removed while layer "'+n+'" is using it.')));var r=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],r.fire(new e.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),r.setEventedParent(null),r.clearTiles(),r.onRemove&&r.onRemove(this.map),this._changed=!0},n.prototype.setGeoJSONSourceData=function(e,t){this._checkLoaded(),this.sourceCaches[e].getSource().setData(t),this._changed=!0},n.prototype.getSource=function(e){return this.sourceCaches[e]&&this.sourceCaches[e].getSource()},n.prototype.addLayer=function(t,n,r){void 0===r&&(r={}),this._checkLoaded();var a=t.id;if(this.getLayer(a))this.fire(new e.ErrorEvent(new Error('Layer with id "'+a+'" already exists on this map')));else{var o;if("custom"===t.type){if(Ft(this,e.validateCustomStyleLayer(t)))return;o=e.createStyleLayer(t)}else{if("object"==typeof t.source&&(this.addSource(a,t.source),t=e.clone$1(t),t=e.extend(t,{source:a})),this._validate(e.validateStyle.layer,"layers."+a,t,{arrayIndex:-1},r))return;o=e.createStyleLayer(t),this._validateLayer(o),o.setEventedParent(this,{layer:{id:a}}),this._serializedLayers[o.id]=o.serialize()}var i=n?this._order.indexOf(n):this._order.length;if(n&&-1===i)this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.')));else{if(this._order.splice(i,0,a),this._layerOrderChanged=!0,this._layers[a]=o,this._removedLayers[a]&&o.source&&"custom"!==o.type){var l=this._removedLayers[a];delete this._removedLayers[a],l.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",this.sourceCaches[o.source].pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map)}}},n.prototype.moveLayer=function(t,n){if(this._checkLoaded(),this._changed=!0,this._layers[t]){if(t!==n){var r=this._order.indexOf(t);this._order.splice(r,1);var a=n?this._order.indexOf(n):this._order.length;n&&-1===a?this.fire(new e.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.'))):(this._order.splice(a,0,t),this._layerOrderChanged=!0)}}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be moved.")))},n.prototype.removeLayer=function(t){this._checkLoaded();var n=this._layers[t];if(n){n.setEventedParent(null);var r=this._order.indexOf(t);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=n,delete this._layers[t],delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],n.onRemove&&n.onRemove(this.map)}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be removed.")))},n.prototype.getLayer=function(e){return this._layers[e]},n.prototype.hasLayer=function(e){return e in this._layers},n.prototype.setLayerZoomRange=function(t,n,r){this._checkLoaded();var a=this.getLayer(t);a?a.minzoom===n&&a.maxzoom===r||(null!=n&&(a.minzoom=n),null!=r&&(a.maxzoom=r),this._updateLayer(a)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot have zoom extent.")))},n.prototype.setFilter=function(t,n,r){void 0===r&&(r={}),this._checkLoaded();var a=this.getLayer(t);if(a){if(!e.deepEqual(a.filter,n))return null==n?(a.filter=void 0,void this._updateLayer(a)):void(this._validate(e.validateStyle.filter,"layers."+a.id+".filter",n,null,r)||(a.filter=e.clone$1(n),this._updateLayer(a)))}else this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be filtered.")))},n.prototype.getFilter=function(t){return e.clone$1(this.getLayer(t).filter)},n.prototype.setLayoutProperty=function(t,n,r,a){void 0===a&&(a={}),this._checkLoaded();var o=this.getLayer(t);o?e.deepEqual(o.getLayoutProperty(n),r)||(o.setLayoutProperty(n,r,a),this._updateLayer(o)):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getLayoutProperty=function(t,n){var r=this.getLayer(t);if(r)return r.getLayoutProperty(n);this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style.")))},n.prototype.setPaintProperty=function(t,n,r,a){void 0===a&&(a={}),this._checkLoaded();var o=this.getLayer(t);o?e.deepEqual(o.getPaintProperty(n),r)||(o.setPaintProperty(n,r,a)&&this._updateLayer(o),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new e.ErrorEvent(new Error("The layer '"+t+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getPaintProperty=function(e,t){return this.getLayer(e).getPaintProperty(t)},n.prototype.setFeatureState=function(t,n){this._checkLoaded();var r=t.source,a=t.sourceLayer,o=this.sourceCaches[r];if(void 0!==o){var i=o.getSource().type;"geojson"===i&&a?this.fire(new e.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==i||a?(void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),o.setFeatureState(a,t.id,n)):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.removeFeatureState=function(t,n){this._checkLoaded();var r=t.source,a=this.sourceCaches[r];if(void 0!==a){var o=a.getSource().type,i="vector"===o?t.sourceLayer:void 0;"vector"!==o||i?n&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new e.ErrorEvent(new Error("A feature id is requred to remove its specific state property."))):a.removeFeatureState(i,t.id,n):this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.getFeatureState=function(t){this._checkLoaded();var n=t.source,r=t.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){if("vector"!==a.getSource().type||r)return void 0===t.id&&this.fire(new e.ErrorEvent(new Error("The feature id parameter must be provided."))),a.getFeatureState(r,t.id);this.fire(new e.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new e.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},n.prototype.getTransition=function(){return e.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},n.prototype.serialize=function(){return e.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:e.mapObject(this.sourceCaches,(function(e){return e.serialize()})),layers:this._serializeLayers(this._order)},(function(e){return void 0!==e}))},n.prototype._updateLayer=function(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&"raster"!==this.sourceCaches[e.source].getSource().type&&(this._updatedSources[e.source]="reload",this.sourceCaches[e.source].pause()),this._changed=!0},n.prototype._flattenAndSortRenderedFeatures=function(e){for(var t=this,n=function(e){return"fill-extrusion"===t._layers[e].type},r={},a=[],o=this._order.length-1;o>=0;o--){var i=this._order[o];if(n(i)){r[i]=o;for(var l=0,s=e;l<s.length;l+=1){var u=s[l][i];if(u)for(var c=0,f=u;c<f.length;c+=1)a.push(f[c])}}}a.sort((function(e,t){return t.intersectionZ-e.intersectionZ}));for(var p=[],d=this._order.length-1;d>=0;d--){var h=this._order[d];if(n(h))for(var v=a.length-1;v>=0;v--){var m=a[v].feature;if(r[m.layer.id]<d)break;p.push(m),a.pop()}else for(var y=0,g=e;y<g.length;y+=1){var b=g[y][h];if(b)for(var x=0,_=b;x<_.length;x+=1)p.push(_[x].feature)}}return p},n.prototype.queryRenderedFeatures=function(t,n,r){n&&n.filter&&this._validate(e.validateStyle.filter,"queryRenderedFeatures.filter",n.filter,null,n);var a={};if(n&&n.layers){if(!Array.isArray(n.layers))return this.fire(new e.ErrorEvent(new Error("parameters.layers must be an Array."))),[];for(var o=0,i=n.layers;o<i.length;o+=1){var l=i[o],s=this._layers[l];if(!s)return this.fire(new e.ErrorEvent(new Error("The layer '"+l+"' does not exist in the map's style and cannot be queried for features."))),[];a[s.source]=!0}}var u=[];for(var c in n.availableImages=this._availableImages,this.sourceCaches)n.layers&&!a[c]||u.push(z(this.sourceCaches[c],this._layers,this._serializedLayers,t,n,r));return this.placement&&u.push(function(e,t,n,r,a,o,i){for(var l={},s=o.queryRenderedSymbols(r),u=[],c=0,f=Object.keys(s).map(Number);c<f.length;c+=1)u.push(i[f[c]]);u.sort(N);for(var p=function(){var n=h[d],r=n.featureIndex.lookupSymbolFeatures(s[n.bucketInstanceId],t,n.bucketIndex,n.sourceLayerIndex,a.filter,a.layers,a.availableImages,e);for(var o in r){var i=l[o]=l[o]||[],u=r[o];u.sort((function(e,t){var r=n.featureSortOrder;if(r){var a=r.indexOf(e.featureIndex);return r.indexOf(t.featureIndex)-a}return t.featureIndex-e.featureIndex}));for(var c=0,f=u;c<f.length;c+=1)i.push(f[c])}},d=0,h=u;d<h.length;d+=1)p();var v=function(t){l[t].forEach((function(r){var a=r.feature,o=n[e[t].source].getFeatureState(a.layer["source-layer"],a.id);a.source=a.layer.source,a.layer["source-layer"]&&(a.sourceLayer=a.layer["source-layer"]),a.state=o}))};for(var m in l)v(m);return l}(this._layers,this._serializedLayers,this.sourceCaches,t,n,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(u)},n.prototype.querySourceFeatures=function(t,n){n&&n.filter&&this._validate(e.validateStyle.filter,"querySourceFeatures.filter",n.filter,null,n);var r=this.sourceCaches[t];return r?function(e,t){for(var n=e.getRenderableIds().map((function(t){return e.getTileByID(t)})),r=[],a={},o=0;o<n.length;o++){var i=n[o],l=i.tileID.canonical.key;a[l]||(a[l]=!0,i.querySourceFeatures(r,t))}return r}(r,n):[]},n.prototype.addSourceType=function(e,t,r){return n.getSourceType(e)?r(new Error('A source type called "'+e+'" already exists.')):(n.setSourceType(e,t),t.workerSourceURL?void this.dispatcher.broadcast("loadWorkerSource",{name:e,url:t.workerSourceURL},r):r(null,null))},n.prototype.getLight=function(){return this.light.getLight()},n.prototype.setLight=function(t,n){void 0===n&&(n={}),this._checkLoaded();var r=this.light.getLight(),a=!1;for(var o in t)if(!e.deepEqual(t[o],r[o])){a=!0;break}if(a){var i={now:e.browser.now(),transition:e.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(t,n),this.light.updateTransitions(i)}},n.prototype._validate=function(t,n,r,a,o){return void 0===o&&(o={}),(!o||!1!==o.validate)&&Ft(this,t.call(e.validateStyle,e.extend({key:n,style:this.serialize(),value:r,styleSpec:e.styleSpec},a)))},n.prototype._remove=function(){for(var t in this._request&&(this._request.cancel(),this._request=null),this._spriteRequest&&(this._spriteRequest.cancel(),this._spriteRequest=null),e.evented.off("pluginStateChange",this._rtlTextPluginCallback),this._layers)this._layers[t].setEventedParent(null);for(var n in this.sourceCaches)this.sourceCaches[n].clearTiles(),this.sourceCaches[n].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},n.prototype._clearSource=function(e){this.sourceCaches[e].clearTiles()},n.prototype._reloadSource=function(e){this.sourceCaches[e].resume(),this.sourceCaches[e].reload()},n.prototype._updateSources=function(e){for(var t in this.sourceCaches)this.sourceCaches[t].update(e)},n.prototype._generateCollisionBoxes=function(){for(var e in this.sourceCaches)this._reloadSource(e)},n.prototype._updatePlacement=function(t,n,r,a,o){void 0===o&&(o=!1);for(var i=!1,l=!1,s={},u=0,c=this._order;u<c.length;u+=1){var f=this._layers[c[u]];if("symbol"===f.type){if(!s[f.source]){var p=this.sourceCaches[f.source];s[f.source]=p.getRenderableIds(!0).map((function(e){return p.getTileByID(e)})).sort((function(e,t){return t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1)}))}var d=this.crossTileSymbolIndex.addLayer(f,s[f.source],t.center.lng);i=i||d}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((o=o||this._layerOrderChanged||0===r)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.browser.now(),t.zoom))&&(this.pauseablePlacement=new Dt(t,this._order,o,n,r,a,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,s),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.browser.now()),l=!0),i&&this.pauseablePlacement.placement.setStale()),l||i)for(var h=0,v=this._order;h<v.length;h+=1){var m=this._layers[v[h]];"symbol"===m.type&&this.placement.updateLayerOpacities(m,s[m.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.browser.now())},n.prototype._releaseSymbolFadeTiles=function(){for(var e in this.sourceCaches)this.sourceCaches[e].releaseSymbolFadeTiles()},n.prototype.getImages=function(e,t,n){this.imageManager.getImages(t.icons,n),this._updateTilesForChangedImages();var r=this.sourceCaches[t.source];r&&r.setDependencies(t.tileID.key,t.type,t.icons)},n.prototype.getGlyphs=function(e,t,n){this.glyphManager.getGlyphs(t.stacks,n)},n.prototype.getResource=function(t,n,r){return e.makeRequest(n,r)},n}(e.Evented);Ut.getSourceType=function(e){return I[e]},Ut.setSourceType=function(e,t){I[e]=t},Ut.registerForPluginStateChange=e.registerForPluginStateChange;var Wt=e.createLayout([{name:"a_pos",type:"Int16",components:2}]),qt=gn("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}"),$t=gn("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Gt=gn("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),Yt=gn("varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),Kt=gn("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),Xt=gn("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),Zt=gn("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),Jt=gn("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Qt=gn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),en=gn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),tn=gn("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),nn=gn("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),rn=gn("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),an=gn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),on=gn("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),ln=gn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),sn=gn("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),un=gn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),cn=gn("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),fn=gn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),pn=gn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),dn=gn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),hn=gn("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),vn=gn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),mn=gn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),yn=gn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function gn(e,t){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r={};return{fragmentSource:e=e.replace(n,(function(e,t,n,a,o){return r[o]=!0,"define"===t?"\n#ifndef HAS_UNIFORM_u_"+o+"\nvarying "+n+" "+a+" "+o+";\n#else\nuniform "+n+" "+a+" u_"+o+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+o+"\n "+n+" "+a+" "+o+" = u_"+o+";\n#endif\n"})),vertexSource:t=t.replace(n,(function(e,t,n,a,o){var i="float"===a?"vec2":"vec4",l=o.match(/color/)?"color":i;return r[o]?"define"===t?"\n#ifndef HAS_UNIFORM_u_"+o+"\nuniform lowp float u_"+o+"_t;\nattribute "+n+" "+i+" a_"+o+";\nvarying "+n+" "+a+" "+o+";\n#else\nuniform "+n+" "+a+" u_"+o+";\n#endif\n":"vec4"===l?"\n#ifndef HAS_UNIFORM_u_"+o+"\n "+o+" = a_"+o+";\n#else\n "+n+" "+a+" "+o+" = u_"+o+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+o+"\n "+o+" = unpack_mix_"+l+"(a_"+o+", u_"+o+"_t);\n#else\n "+n+" "+a+" "+o+" = u_"+o+";\n#endif\n":"define"===t?"\n#ifndef HAS_UNIFORM_u_"+o+"\nuniform lowp float u_"+o+"_t;\nattribute "+n+" "+i+" a_"+o+";\n#else\nuniform "+n+" "+a+" u_"+o+";\n#endif\n":"vec4"===l?"\n#ifndef HAS_UNIFORM_u_"+o+"\n "+n+" "+a+" "+o+" = a_"+o+";\n#else\n "+n+" "+a+" "+o+" = u_"+o+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+o+"\n "+n+" "+a+" "+o+" = unpack_mix_"+l+"(a_"+o+", u_"+o+"_t);\n#else\n "+n+" "+a+" "+o+" = u_"+o+";\n#endif\n"}))}}var bn=Object.freeze({__proto__:null,prelude:qt,background:$t,backgroundPattern:Gt,circle:Yt,clippingMask:Kt,heatmap:Xt,heatmapTexture:Zt,collisionBox:Jt,collisionCircle:Qt,debug:en,fill:tn,fillOutline:nn,fillOutlinePattern:rn,fillPattern:an,fillExtrusion:on,fillExtrusionPattern:ln,hillshadePrepare:sn,hillshade:un,line:cn,lineGradient:fn,linePattern:pn,lineSDF:dn,raster:hn,symbolIcon:vn,symbolSDF:mn,symbolTextAndIcon:yn}),xn=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};xn.prototype.bind=function(e,t,n,r,a,o,i,l){this.context=e;for(var s=this.boundPaintVertexBuffers.length!==r.length,u=0;!s&&u<r.length;u++)this.boundPaintVertexBuffers[u]!==r[u]&&(s=!0);e.extVertexArrayObject&&this.vao&&this.boundProgram===t&&this.boundLayoutVertexBuffer===n&&!s&&this.boundIndexBuffer===a&&this.boundVertexOffset===o&&this.boundDynamicVertexBuffer===i&&this.boundDynamicVertexBuffer2===l?(e.bindVertexArrayOES.set(this.vao),i&&i.bind(),a&&a.dynamicDraw&&a.bind(),l&&l.bind()):this.freshBind(t,n,r,a,o,i,l)},xn.prototype.freshBind=function(e,t,n,r,a,o,i){var l,s=e.numAttributes,u=this.context,c=u.gl;if(u.extVertexArrayObject)this.vao&&this.destroy(),this.vao=u.extVertexArrayObject.createVertexArrayOES(),u.bindVertexArrayOES.set(this.vao),l=0,this.boundProgram=e,this.boundLayoutVertexBuffer=t,this.boundPaintVertexBuffers=n,this.boundIndexBuffer=r,this.boundVertexOffset=a,this.boundDynamicVertexBuffer=o,this.boundDynamicVertexBuffer2=i;else{l=u.currentNumAttributes||0;for(var f=s;f<l;f++)c.disableVertexAttribArray(f)}t.enableAttributes(c,e);for(var p=0,d=n;p<d.length;p+=1)d[p].enableAttributes(c,e);o&&o.enableAttributes(c,e),i&&i.enableAttributes(c,e),t.bind(),t.setVertexAttribPointers(c,e,a);for(var h=0,v=n;h<v.length;h+=1){var m=v[h];m.bind(),m.setVertexAttribPointers(c,e,a)}o&&(o.bind(),o.setVertexAttribPointers(c,e,a)),r&&r.bind(),i&&(i.bind(),i.setVertexAttribPointers(c,e,a)),u.currentNumAttributes=s},xn.prototype.destroy=function(){this.vao&&(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var _n=function(e,t,n,r,a){var o=e.gl;this.program=o.createProgram();var i=n?n.defines():[];a&&i.push("#define OVERDRAW_INSPECTOR;");var l=i.concat(qt.fragmentSource,t.fragmentSource).join("\n"),s=i.concat(qt.vertexSource,t.vertexSource).join("\n"),u=o.createShader(o.FRAGMENT_SHADER);if(o.isContextLost())this.failedToCreate=!0;else{o.shaderSource(u,l),o.compileShader(u),o.attachShader(this.program,u);var c=o.createShader(o.VERTEX_SHADER);if(o.isContextLost())this.failedToCreate=!0;else{o.shaderSource(c,s),o.compileShader(c),o.attachShader(this.program,c);for(var f=n?n.layoutAttributes:[],p=0;p<f.length;p++)o.bindAttribLocation(this.program,p,f[p].name);o.linkProgram(this.program),o.deleteShader(c),o.deleteShader(u),this.numAttributes=o.getProgramParameter(this.program,o.ACTIVE_ATTRIBUTES),this.attributes={};for(var d={},h=0;h<this.numAttributes;h++){var v=o.getActiveAttrib(this.program,h);v&&(this.attributes[v.name]=o.getAttribLocation(this.program,v.name))}for(var m=o.getProgramParameter(this.program,o.ACTIVE_UNIFORMS),y=0;y<m;y++){var g=o.getActiveUniform(this.program,y);g&&(d[g.name]=o.getUniformLocation(this.program,g.name))}this.fixedUniforms=r(e,d),this.binderUniforms=n?n.getUniforms(e,d):[]}}};function wn(e,t,n){var r=1/pt(n,1,t.transform.tileZoom),a=Math.pow(2,n.tileID.overscaledZ),o=n.tileSize*Math.pow(2,t.transform.tileZoom)/a,i=o*(n.tileID.canonical.x+n.tileID.wrap*a),l=o*n.tileID.canonical.y;return{u_image:0,u_texsize:n.imageAtlasTexture.size,u_scale:[r,e.fromScale,e.toScale],u_fade:e.t,u_pixel_coord_upper:[i>>16,l>>16],u_pixel_coord_lower:[65535&i,65535&l]}}_n.prototype.draw=function(e,t,n,r,a,o,i,l,s,u,c,f,p,d,h,v){var m,y=e.gl;if(!this.failedToCreate){for(var g in e.program.set(this.program),e.setDepthMode(n),e.setStencilMode(r),e.setColorMode(a),e.setCullFace(o),this.fixedUniforms)this.fixedUniforms[g].set(i[g]);d&&d.setUniforms(e,this.binderUniforms,f,{zoom:p});for(var b=(m={},m[y.LINES]=2,m[y.TRIANGLES]=3,m[y.LINE_STRIP]=1,m)[t],x=0,_=c.get();x<_.length;x+=1){var w=_[x],k=w.vaos||(w.vaos={});(k[l]||(k[l]=new xn)).bind(e,this,s,d?d.getPaintVertexBuffers():[],u,w.vertexOffset,h,v),y.drawElements(t,w.primitiveLength*b,y.UNSIGNED_SHORT,w.primitiveOffset*b*2)}}};var kn=function(t,n,r,a){var o=n.style.light,i=o.properties.get("position"),l=[i.x,i.y,i.z],s=e.create$1();"viewport"===o.properties.get("anchor")&&e.fromRotation(s,-n.transform.angle),e.transformMat3(l,l,s);var u=o.properties.get("color");return{u_matrix:t,u_lightpos:l,u_lightintensity:o.properties.get("intensity"),u_lightcolor:[u.r,u.g,u.b],u_vertical_gradient:+r,u_opacity:a}},Tn=function(t,n,r,a,o,i,l){return e.extend(kn(t,n,r,a),wn(i,n,l),{u_height_factor:-Math.pow(2,o.overscaledZ)/l.tileSize/8})},En=function(e){return{u_matrix:e}},On=function(t,n,r,a){return e.extend(En(t),wn(r,n,a))},Mn=function(e,t){return{u_matrix:e,u_world:t}},Sn=function(t,n,r,a,o){return e.extend(On(t,n,r,a),{u_world:o})},Cn=function(t,n,r,a){var o,i,l=t.transform;if("map"===a.paint.get("circle-pitch-alignment")){var s=pt(r,1,l.zoom);o=!0,i=[s,s]}else o=!1,i=l.pixelsToGLUnits;return{u_camera_to_center_distance:l.cameraToCenterDistance,u_scale_with_map:+("map"===a.paint.get("circle-pitch-scale")),u_matrix:t.translatePosMatrix(n.posMatrix,r,a.paint.get("circle-translate"),a.paint.get("circle-translate-anchor")),u_pitch_with_map:+o,u_device_pixel_ratio:e.browser.devicePixelRatio,u_extrude_scale:i}},An=function(e,t,n){var r=pt(n,1,t.zoom),a=Math.pow(2,t.zoom-n.tileID.overscaledZ),o=n.tileID.overscaleFactor();return{u_matrix:e,u_camera_to_center_distance:t.cameraToCenterDistance,u_pixels_to_tile_units:r,u_extrude_scale:[t.pixelsToGLUnits[0]/(r*a),t.pixelsToGLUnits[1]/(r*a)],u_overscale_factor:o}},Pn=function(e,t,n){return{u_matrix:e,u_inv_matrix:t,u_camera_to_center_distance:n.cameraToCenterDistance,u_viewport_size:[n.width,n.height]}},Ln=function(e,t,n){return void 0===n&&(n=1),{u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:n}},Dn=function(e){return{u_matrix:e}},jn=function(e,t,n,r){return{u_matrix:e,u_extrude_scale:pt(t,1,n),u_intensity:r}},In=function(t,n,r){var a=t.transform;return{u_matrix:Bn(t,n,r),u_ratio:1/pt(n,1,a.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Rn=function(t,n,r){return e.extend(In(t,n,r),{u_image:0})},zn=function(t,n,r,a){var o=t.transform,i=Fn(n,o);return{u_matrix:Bn(t,n,r),u_texsize:n.imageAtlasTexture.size,u_ratio:1/pt(n,1,o.zoom),u_device_pixel_ratio:e.browser.devicePixelRatio,u_image:0,u_scale:[i,a.fromScale,a.toScale],u_fade:a.t,u_units_to_pixels:[1/o.pixelsToGLUnits[0],1/o.pixelsToGLUnits[1]]}},Nn=function(t,n,r,a,o){var i=t.lineAtlas,l=Fn(n,t.transform),s="round"===r.layout.get("line-cap"),u=i.getDash(a.from,s),c=i.getDash(a.to,s),f=u.width*o.fromScale,p=c.width*o.toScale;return e.extend(In(t,n,r),{u_patternscale_a:[l/f,-u.height/2],u_patternscale_b:[l/p,-c.height/2],u_sdfgamma:i.width/(256*Math.min(f,p)*e.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:c.y,u_mix:o.t})};function Fn(e,t){return 1/pt(e,1,t.tileZoom)}function Bn(e,t,n){return e.translatePosMatrix(t.tileID.posMatrix,t,n.paint.get("line-translate"),n.paint.get("line-translate-anchor"))}var Vn=function(e,t,n,r,a){return{u_matrix:e,u_tl_parent:t,u_scale_parent:n,u_buffer_scale:1,u_fade_t:r.mix,u_opacity:r.opacity*a.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:a.paint.get("raster-brightness-min"),u_brightness_high:a.paint.get("raster-brightness-max"),u_saturation_factor:(i=a.paint.get("raster-saturation"),i>0?1-1/(1.001-i):-i),u_contrast_factor:(o=a.paint.get("raster-contrast"),o>0?1/(1-o):1+o),u_spin_weights:Hn(a.paint.get("raster-hue-rotate"))};var o,i};function Hn(e){e*=Math.PI/180;var t=Math.sin(e),n=Math.cos(e);return[(2*n+1)/3,(-Math.sqrt(3)*t-n+1)/3,(Math.sqrt(3)*t-n+1)/3]}var Un,Wn=function(e,t,n,r,a,o,i,l,s,u){var c=a.transform;return{u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:c.width/c.height,u_fade_change:a.options.fadeDuration?a.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:i,u_coord_matrix:l,u_is_text:+s,u_pitch_with_map:+r,u_texsize:u,u_texture:0}},qn=function(t,n,r,a,o,i,l,s,u,c,f){var p=o.transform;return e.extend(Wn(t,n,r,a,o,i,l,s,u,c),{u_gamma_scale:a?Math.cos(p._pitch)*p.cameraToCenterDistance:1,u_device_pixel_ratio:e.browser.devicePixelRatio,u_is_halo:+f})},$n=function(t,n,r,a,o,i,l,s,u,c){return e.extend(qn(t,n,r,a,o,i,l,s,!0,u,!0),{u_texsize_icon:c,u_texture_icon:1})},Gn=function(e,t,n){return{u_matrix:e,u_opacity:t,u_color:n}},Yn=function(t,n,r,a,o,i){return e.extend(function(e,t,n,r){var a=n.imageManager.getPattern(e.from.toString()),o=n.imageManager.getPattern(e.to.toString()),i=n.imageManager.getPixelSize(),l=i.width,s=i.height,u=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/u,f=c*(r.tileID.canonical.x+r.tileID.wrap*u),p=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:a.tl,u_pattern_br_a:a.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[l,s],u_mix:t.t,u_pattern_size_a:a.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/pt(r,1,n.transform.tileZoom),u_pixel_coord_upper:[f>>16,p>>16],u_pixel_coord_lower:[65535&f,65535&p]}}(a,i,r,o),{u_matrix:t,u_opacity:n})},Kn={fillExtrusion:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_opacity:new e.Uniform1f(t,n.u_opacity)}},fillExtrusionPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_lightpos:new e.Uniform3f(t,n.u_lightpos),u_lightintensity:new e.Uniform1f(t,n.u_lightintensity),u_lightcolor:new e.Uniform3f(t,n.u_lightcolor),u_vertical_gradient:new e.Uniform1f(t,n.u_vertical_gradient),u_height_factor:new e.Uniform1f(t,n.u_height_factor),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade),u_opacity:new e.Uniform1f(t,n.u_opacity)}},fill:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},fillPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},fillOutline:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world)}},fillOutlinePattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_texsize:new e.Uniform2f(t,n.u_texsize),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},circle:function(t,n){return{u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_scale_with_map:new e.Uniform1i(t,n.u_scale_with_map),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},collisionBox:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pixels_to_tile_units:new e.Uniform1f(t,n.u_pixels_to_tile_units),u_extrude_scale:new e.Uniform2f(t,n.u_extrude_scale),u_overscale_factor:new e.Uniform1f(t,n.u_overscale_factor)}},collisionCircle:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_inv_matrix:new e.UniformMatrix4f(t,n.u_inv_matrix),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_viewport_size:new e.Uniform2f(t,n.u_viewport_size)}},debug:function(t,n){return{u_color:new e.UniformColor(t,n.u_color),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_overlay:new e.Uniform1i(t,n.u_overlay),u_overlay_scale:new e.Uniform1f(t,n.u_overlay_scale)}},clippingMask:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},heatmap:function(t,n){return{u_extrude_scale:new e.Uniform1f(t,n.u_extrude_scale),u_intensity:new e.Uniform1f(t,n.u_intensity),u_matrix:new e.UniformMatrix4f(t,n.u_matrix)}},heatmapTexture:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_world:new e.Uniform2f(t,n.u_world),u_image:new e.Uniform1i(t,n.u_image),u_color_ramp:new e.Uniform1i(t,n.u_color_ramp),u_opacity:new e.Uniform1f(t,n.u_opacity)}},hillshade:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_latrange:new e.Uniform2f(t,n.u_latrange),u_light:new e.Uniform2f(t,n.u_light),u_shadow:new e.UniformColor(t,n.u_shadow),u_highlight:new e.UniformColor(t,n.u_highlight),u_accent:new e.UniformColor(t,n.u_accent)}},hillshadePrepare:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_image:new e.Uniform1i(t,n.u_image),u_dimension:new e.Uniform2f(t,n.u_dimension),u_zoom:new e.Uniform1f(t,n.u_zoom),u_maxzoom:new e.Uniform1f(t,n.u_maxzoom),u_unpack:new e.Uniform4f(t,n.u_unpack)}},line:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels)}},lineGradient:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_image:new e.Uniform1i(t,n.u_image)}},linePattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_texsize:new e.Uniform2f(t,n.u_texsize),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_image:new e.Uniform1i(t,n.u_image),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_scale:new e.Uniform3f(t,n.u_scale),u_fade:new e.Uniform1f(t,n.u_fade)}},lineSDF:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_ratio:new e.Uniform1f(t,n.u_ratio),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_units_to_pixels:new e.Uniform2f(t,n.u_units_to_pixels),u_patternscale_a:new e.Uniform2f(t,n.u_patternscale_a),u_patternscale_b:new e.Uniform2f(t,n.u_patternscale_b),u_sdfgamma:new e.Uniform1f(t,n.u_sdfgamma),u_image:new e.Uniform1i(t,n.u_image),u_tex_y_a:new e.Uniform1f(t,n.u_tex_y_a),u_tex_y_b:new e.Uniform1f(t,n.u_tex_y_b),u_mix:new e.Uniform1f(t,n.u_mix)}},raster:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_tl_parent:new e.Uniform2f(t,n.u_tl_parent),u_scale_parent:new e.Uniform1f(t,n.u_scale_parent),u_buffer_scale:new e.Uniform1f(t,n.u_buffer_scale),u_fade_t:new e.Uniform1f(t,n.u_fade_t),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image0:new e.Uniform1i(t,n.u_image0),u_image1:new e.Uniform1i(t,n.u_image1),u_brightness_low:new e.Uniform1f(t,n.u_brightness_low),u_brightness_high:new e.Uniform1f(t,n.u_brightness_high),u_saturation_factor:new e.Uniform1f(t,n.u_saturation_factor),u_contrast_factor:new e.Uniform1f(t,n.u_contrast_factor),u_spin_weights:new e.Uniform3f(t,n.u_spin_weights)}},symbolIcon:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture)}},symbolSDF:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texture:new e.Uniform1i(t,n.u_texture),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,n.u_is_halo)}},symbolTextAndIcon:function(t,n){return{u_is_size_zoom_constant:new e.Uniform1i(t,n.u_is_size_zoom_constant),u_is_size_feature_constant:new e.Uniform1i(t,n.u_is_size_feature_constant),u_size_t:new e.Uniform1f(t,n.u_size_t),u_size:new e.Uniform1f(t,n.u_size),u_camera_to_center_distance:new e.Uniform1f(t,n.u_camera_to_center_distance),u_pitch:new e.Uniform1f(t,n.u_pitch),u_rotate_symbol:new e.Uniform1i(t,n.u_rotate_symbol),u_aspect_ratio:new e.Uniform1f(t,n.u_aspect_ratio),u_fade_change:new e.Uniform1f(t,n.u_fade_change),u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_label_plane_matrix:new e.UniformMatrix4f(t,n.u_label_plane_matrix),u_coord_matrix:new e.UniformMatrix4f(t,n.u_coord_matrix),u_is_text:new e.Uniform1i(t,n.u_is_text),u_pitch_with_map:new e.Uniform1i(t,n.u_pitch_with_map),u_texsize:new e.Uniform2f(t,n.u_texsize),u_texsize_icon:new e.Uniform2f(t,n.u_texsize_icon),u_texture:new e.Uniform1i(t,n.u_texture),u_texture_icon:new e.Uniform1i(t,n.u_texture_icon),u_gamma_scale:new e.Uniform1f(t,n.u_gamma_scale),u_device_pixel_ratio:new e.Uniform1f(t,n.u_device_pixel_ratio),u_is_halo:new e.Uniform1i(t,n.u_is_halo)}},background:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_color:new e.UniformColor(t,n.u_color)}},backgroundPattern:function(t,n){return{u_matrix:new e.UniformMatrix4f(t,n.u_matrix),u_opacity:new e.Uniform1f(t,n.u_opacity),u_image:new e.Uniform1i(t,n.u_image),u_pattern_tl_a:new e.Uniform2f(t,n.u_pattern_tl_a),u_pattern_br_a:new e.Uniform2f(t,n.u_pattern_br_a),u_pattern_tl_b:new e.Uniform2f(t,n.u_pattern_tl_b),u_pattern_br_b:new e.Uniform2f(t,n.u_pattern_br_b),u_texsize:new e.Uniform2f(t,n.u_texsize),u_mix:new e.Uniform1f(t,n.u_mix),u_pattern_size_a:new e.Uniform2f(t,n.u_pattern_size_a),u_pattern_size_b:new e.Uniform2f(t,n.u_pattern_size_b),u_scale_a:new e.Uniform1f(t,n.u_scale_a),u_scale_b:new e.Uniform1f(t,n.u_scale_b),u_pixel_coord_upper:new e.Uniform2f(t,n.u_pixel_coord_upper),u_pixel_coord_lower:new e.Uniform2f(t,n.u_pixel_coord_lower),u_tile_units_to_pixels:new e.Uniform1f(t,n.u_tile_units_to_pixels)}}};function Xn(t,n,r,a,o,i,l){for(var s=t.context,u=s.gl,c=t.useProgram("collisionBox"),f=[],p=0,d=0,h=0;h<a.length;h++){var v=a[h],m=n.getTile(v),y=m.getBucket(r);if(y){var g=v.posMatrix;0===o[0]&&0===o[1]||(g=t.translatePosMatrix(v.posMatrix,m,o,i));var b=l?y.textCollisionBox:y.iconCollisionBox,x=y.collisionCircleArray;if(x.length>0){var _=e.create(),w=g;e.mul(_,y.placementInvProjMatrix,t.transform.glCoordMatrix),e.mul(_,_,y.placementViewportMatrix),f.push({circleArray:x,circleOffset:d,transform:w,invTransform:_}),d=p+=x.length/4}b&&c.draw(s,u.LINES,Ee.disabled,Oe.disabled,t.colorModeForRenderPass(),Se.disabled,An(g,t.transform,m),r.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,t.transform.zoom,null,null,b.collisionVertexBuffer)}}if(l&&f.length){var k=t.useProgram("collisionCircle"),T=new e.StructArrayLayout2f1f2i16;T.resize(4*p),T._trim();for(var E=0,O=0,M=f;O<M.length;O+=1)for(var S=M[O],C=0;C<S.circleArray.length/4;C++){var A=4*C,P=S.circleArray[A+0],L=S.circleArray[A+1],D=S.circleArray[A+2],j=S.circleArray[A+3];T.emplace(E++,P,L,D,j,0),T.emplace(E++,P,L,D,j,1),T.emplace(E++,P,L,D,j,2),T.emplace(E++,P,L,D,j,3)}(!Un||Un.length<2*p)&&(Un=function(t){var n=2*t,r=new e.StructArrayLayout3ui6;r.resize(n),r._trim();for(var a=0;a<n;a++){var o=6*a;r.uint16[o+0]=4*a+0,r.uint16[o+1]=4*a+1,r.uint16[o+2]=4*a+2,r.uint16[o+3]=4*a+2,r.uint16[o+4]=4*a+3,r.uint16[o+5]=4*a+0}return r}(p));for(var I=s.createIndexBuffer(Un,!0),R=s.createVertexBuffer(T,e.collisionCircleLayout.members,!0),z=0,N=f;z<N.length;z+=1){var F=N[z],B=Pn(F.transform,F.invTransform,t.transform);k.draw(s,u.TRIANGLES,Ee.disabled,Oe.disabled,t.colorModeForRenderPass(),Se.disabled,B,r.id,R,I,e.SegmentVector.simpleSegment(0,2*F.circleOffset,F.circleArray.length,F.circleArray.length/2),null,t.transform.zoom,null,null,null)}R.destroy(),I.destroy()}}var Zn=e.identity(new Float32Array(16));function Jn(t,n,r,a,o,i){var l=e.getAnchorAlignment(t),s=-(l.horizontalAlign-.5)*n,u=-(l.verticalAlign-.5)*r,c=e.evaluateVariableOffset(t,a);return new e.Point((s/o+c[0])*i,(u/o+c[1])*i)}function Qn(t,n,r,a,o,i,l,s,u,c,f){var p=t.text.placedSymbolArray,d=t.text.dynamicLayoutVertexArray,h=t.icon.dynamicLayoutVertexArray,v={};d.clear();for(var m=0;m<p.length;m++){var y=p.get(m),g=y.hidden||!y.crossTileID||t.allowVerticalPlacement&&!y.placedOrientation?null:a[y.crossTileID];if(g){var b=new e.Point(y.anchorX,y.anchorY),x=Qe(b,r?s:l),_=et(i.cameraToCenterDistance,x.signedDistanceFromCamera),w=o.evaluateSizeForFeature(t.textSizeData,c,y)*_/e.ONE_EM;r&&(w*=t.tilePixelRatio/u);for(var k=Jn(g.anchor,g.width,g.height,g.textOffset,g.textBoxScale,w),T=r?Qe(b.add(k),l).point:x.point.add(n?k.rotate(-i.angle):k),E=t.allowVerticalPlacement&&y.placedOrientation===e.WritingMode.vertical?Math.PI/2:0,O=0;O<y.numGlyphs;O++)e.addDynamicAttributes(d,T,E);f&&y.associatedIconIndex>=0&&(v[y.associatedIconIndex]={shiftedAnchor:T,angle:E})}else ut(y.numGlyphs,d)}if(f){h.clear();for(var M=t.icon.placedSymbolArray,S=0;S<M.length;S++){var C=M.get(S);if(C.hidden)ut(C.numGlyphs,h);else{var A=v[S];if(A)for(var P=0;P<C.numGlyphs;P++)e.addDynamicAttributes(h,A.shiftedAnchor,A.angle);else ut(C.numGlyphs,h)}}t.icon.dynamicLayoutVertexBuffer.updateData(h)}t.text.dynamicLayoutVertexBuffer.updateData(d)}function er(e,t,n){return n.iconsInText&&t?"symbolTextAndIcon":e?"symbolSDF":"symbolIcon"}function tr(t,n,r,a,o,i,l,s,u,c,f,p){for(var d=t.context,h=d.gl,v=t.transform,m="map"===s,y="map"===u,g=m&&"point"!==r.layout.get("symbol-placement"),b=m&&!y&&!g,x=void 0!==r.layout.get("symbol-sort-key").constantOr(1),_=t.depthModeForSublayer(0,Ee.ReadOnly),w=r.layout.get("text-variable-anchor"),k=[],T=0,E=a;T<E.length;T+=1){var O=E[T],M=n.getTile(O),S=M.getBucket(r);if(S){var C=o?S.text:S.icon;if(C&&C.segments.get().length){var A=C.programConfigurations.get(r.id),P=o||S.sdfIcons,L=o?S.textSizeData:S.iconSizeData,D=y||0!==v.pitch,j=t.useProgram(er(P,o,S),A),I=e.evaluateSizeForZoom(L,v.zoom),R=void 0,z=[0,0],N=void 0,F=void 0,B=null,V=void 0;if(o)N=M.glyphAtlasTexture,F=h.LINEAR,R=M.glyphAtlasTexture.size,S.iconsInText&&(z=M.imageAtlasTexture.size,B=M.imageAtlasTexture,V=D||t.options.rotating||t.options.zooming||"composite"===L.kind||"camera"===L.kind?h.LINEAR:h.NEAREST);else{var H=1!==r.layout.get("icon-size").constantOr(0)||S.iconsNeedLinear;N=M.imageAtlasTexture,F=P||t.options.rotating||t.options.zooming||H||D?h.LINEAR:h.NEAREST,R=M.imageAtlasTexture.size}var U=pt(M,1,t.transform.zoom),W=Ze(O.posMatrix,y,m,t.transform,U),q=Je(O.posMatrix,y,m,t.transform,U),$=w&&S.hasTextData(),G="none"!==r.layout.get("icon-text-fit")&&$&&S.hasIconData();g&&nt(S,O.posMatrix,t,o,W,q,y,c);var Y=t.translatePosMatrix(O.posMatrix,M,i,l),K=g||o&&w||G?Zn:W,X=t.translatePosMatrix(q,M,i,l,!0),Z=P&&0!==r.paint.get(o?"text-halo-width":"icon-halo-width").constantOr(1),J={program:j,buffers:C,uniformValues:P?S.iconsInText?$n(L.kind,I,b,y,t,Y,K,X,R,z):qn(L.kind,I,b,y,t,Y,K,X,o,R,!0):Wn(L.kind,I,b,y,t,Y,K,X,o,R),atlasTexture:N,atlasTextureIcon:B,atlasInterpolation:F,atlasInterpolationIcon:V,isSDF:P,hasHalo:Z};if(x)for(var Q=0,ee=C.segments.get();Q<ee.length;Q+=1){var te=ee[Q];k.push({segments:new e.SegmentVector([te]),sortKey:te.sortKey,state:J})}else k.push({segments:C.segments,sortKey:0,state:J})}}}x&&k.sort((function(e,t){return e.sortKey-t.sortKey}));for(var ne=0,re=k;ne<re.length;ne+=1){var ae=re[ne],oe=ae.state;if(d.activeTexture.set(h.TEXTURE0),oe.atlasTexture.bind(oe.atlasInterpolation,h.CLAMP_TO_EDGE),oe.atlasTextureIcon&&(d.activeTexture.set(h.TEXTURE1),oe.atlasTextureIcon&&oe.atlasTextureIcon.bind(oe.atlasInterpolationIcon,h.CLAMP_TO_EDGE)),oe.isSDF){var ie=oe.uniformValues;oe.hasHalo&&(ie.u_is_halo=1,nr(oe.buffers,ae.segments,r,t,oe.program,_,f,p,ie)),ie.u_is_halo=0}nr(oe.buffers,ae.segments,r,t,oe.program,_,f,p,oe.uniformValues)}}function nr(e,t,n,r,a,o,i,l,s){var u=r.context;a.draw(u,u.gl.TRIANGLES,o,i,l,Se.disabled,s,n.id,e.layoutVertexBuffer,e.indexBuffer,t,n.paint,r.transform.zoom,e.programConfigurations.get(n.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function rr(e,t,n,r,a,o,i){var l,s,u,c,f,p=e.context.gl,d=n.paint.get("fill-pattern"),h=d&&d.constantOr(1),v=n.getCrossfadeParameters();i?(s=h&&!n.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",l=p.LINES):(s=h?"fillPattern":"fill",l=p.TRIANGLES);for(var m=0,y=r;m<y.length;m+=1){var g=y[m],b=t.getTile(g);if(!h||b.patternsLoaded()){var x=b.getBucket(n);if(x){var _=x.programConfigurations.get(n.id),w=e.useProgram(s,_);h&&(e.context.activeTexture.set(p.TEXTURE0),b.imageAtlasTexture.bind(p.LINEAR,p.CLAMP_TO_EDGE),_.updatePaintBuffers(v));var k=d.constantOr(null);if(k&&b.imageAtlas){var T=b.imageAtlas,E=T.patternPositions[k.to.toString()],O=T.patternPositions[k.from.toString()];E&&O&&_.setConstantPatternPositions(E,O)}var M=e.translatePosMatrix(g.posMatrix,b,n.paint.get("fill-translate"),n.paint.get("fill-translate-anchor"));if(i){c=x.indexBuffer2,f=x.segments2;var S=[p.drawingBufferWidth,p.drawingBufferHeight];u="fillOutlinePattern"===s&&h?Sn(M,e,v,b,S):Mn(M,S)}else c=x.indexBuffer,f=x.segments,u=h?On(M,e,v,b):En(M);w.draw(e.context,l,a,e.stencilModeForClipping(g),o,Se.disabled,u,n.id,x.layoutVertexBuffer,c,f,n.paint,e.transform.zoom,_)}}}}function ar(e,t,n,r,a,o,i){for(var l=e.context,s=l.gl,u=n.paint.get("fill-extrusion-pattern"),c=u.constantOr(1),f=n.getCrossfadeParameters(),p=n.paint.get("fill-extrusion-opacity"),d=0,h=r;d<h.length;d+=1){var v=h[d],m=t.getTile(v),y=m.getBucket(n);if(y){var g=y.programConfigurations.get(n.id),b=e.useProgram(c?"fillExtrusionPattern":"fillExtrusion",g);c&&(e.context.activeTexture.set(s.TEXTURE0),m.imageAtlasTexture.bind(s.LINEAR,s.CLAMP_TO_EDGE),g.updatePaintBuffers(f));var x=u.constantOr(null);if(x&&m.imageAtlas){var _=m.imageAtlas,w=_.patternPositions[x.to.toString()],k=_.patternPositions[x.from.toString()];w&&k&&g.setConstantPatternPositions(w,k)}var T=e.translatePosMatrix(v.posMatrix,m,n.paint.get("fill-extrusion-translate"),n.paint.get("fill-extrusion-translate-anchor")),E=n.paint.get("fill-extrusion-vertical-gradient"),O=c?Tn(T,e,E,p,v,f,m):kn(T,e,E,p);b.draw(l,l.gl.TRIANGLES,a,o,i,Se.backCCW,O,n.id,y.layoutVertexBuffer,y.indexBuffer,y.segments,n.paint,e.transform.zoom,g)}}}function or(t,n,r,a,o,i){var l=t.context,s=l.gl,u=n.fbo;if(u){var c=t.useProgram("hillshade");l.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,u.colorAttachment.get());var f=function(t,n,r){var a=r.paint.get("hillshade-shadow-color"),o=r.paint.get("hillshade-highlight-color"),i=r.paint.get("hillshade-accent-color"),l=r.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===r.paint.get("hillshade-illumination-anchor")&&(l-=t.transform.angle);var s,u,c,f=!t.options.moving;return{u_matrix:t.transform.calculatePosMatrix(n.tileID.toUnwrapped(),f),u_image:0,u_latrange:(s=n.tileID,u=Math.pow(2,s.canonical.z),c=s.canonical.y,[new e.MercatorCoordinate(0,c/u).toLngLat().lat,new e.MercatorCoordinate(0,(c+1)/u).toLngLat().lat]),u_light:[r.paint.get("hillshade-exaggeration"),l],u_shadow:a,u_highlight:o,u_accent:i}}(t,n,r);c.draw(l,s.TRIANGLES,a,o,i,Se.disabled,f,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}function ir(t,n,r,a,o,i,l){var s=t.context,u=s.gl,c=n.dem;if(c&&c.data){var f=c.dim,p=c.stride,d=c.getPixels();if(s.activeTexture.set(u.TEXTURE1),s.pixelStoreUnpackPremultiplyAlpha.set(!1),n.demTexture=n.demTexture||t.getTileTexture(p),n.demTexture){var h=n.demTexture;h.update(d,{premultiply:!1}),h.bind(u.NEAREST,u.CLAMP_TO_EDGE)}else n.demTexture=new e.Texture(s,d,u.RGBA,{premultiply:!1}),n.demTexture.bind(u.NEAREST,u.CLAMP_TO_EDGE);s.activeTexture.set(u.TEXTURE0);var v=n.fbo;if(!v){var m=new e.Texture(s,{width:f,height:f,data:null},u.RGBA);m.bind(u.LINEAR,u.CLAMP_TO_EDGE),(v=n.fbo=s.createFramebuffer(f,f,!0)).colorAttachment.set(m.texture)}s.bindFramebuffer.set(v.framebuffer),s.viewport.set([0,0,f,f]),t.useProgram("hillshadePrepare").draw(s,u.TRIANGLES,o,i,l,Se.disabled,function(t,n,r){var a=n.stride,o=e.create();return e.ortho(o,0,e.EXTENT,-e.EXTENT,0,0,1),e.translate(o,o,[0,-e.EXTENT,0]),{u_matrix:o,u_image:1,u_dimension:[a,a],u_zoom:t.overscaledZ,u_maxzoom:r,u_unpack:n.getUnpackVector()}}(n.tileID,c,a),r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),n.needsHillshadePrepare=!1}}function lr(t,n,r,a,o){var i=a.paint.get("raster-fade-duration");if(i>0){var l=e.browser.now(),s=(l-t.timeAdded)/i,u=n?(l-n.timeAdded)/i:-1,c=r.getSource(),f=o.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),p=!n||Math.abs(n.tileID.overscaledZ-f)>Math.abs(t.tileID.overscaledZ-f),d=p&&t.refreshedUponExpiration?1:e.clamp(p?s:1-u,0,1);return t.refreshedUponExpiration&&s>=1&&(t.refreshedUponExpiration=!1),n?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}var sr=new e.Color(1,0,0,1),ur=new e.Color(0,1,0,1),cr=new e.Color(0,0,1,1),fr=new e.Color(1,0,1,1),pr=new e.Color(0,1,1,1);function dr(e,t,n,r){vr(e,0,t+n/2,e.transform.width,n,r)}function hr(e,t,n,r){vr(e,t-n/2,0,n,e.transform.height,r)}function vr(t,n,r,a,o,i){var l=t.context,s=l.gl;s.enable(s.SCISSOR_TEST),s.scissor(n*e.browser.devicePixelRatio,r*e.browser.devicePixelRatio,a*e.browser.devicePixelRatio,o*e.browser.devicePixelRatio),l.clear({color:i}),s.disable(s.SCISSOR_TEST)}function mr(t,n,r){var a=t.context,o=a.gl,i=r.posMatrix,l=t.useProgram("debug"),s=Ee.disabled,u=Oe.disabled,c=t.colorModeForRenderPass();a.activeTexture.set(o.TEXTURE0),t.emptyTexture.bind(o.LINEAR,o.CLAMP_TO_EDGE),l.draw(a,o.LINE_STRIP,s,u,c,Se.disabled,Ln(i,e.Color.red),"$debug",t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments);var f=n.getTileByID(r.key).latestRawTileData,p=Math.floor((f&&f.byteLength||0)/1024),d=n.getTile(r).tileSize,h=512/Math.min(d,512)*(r.overscaledZ/t.transform.zoom)*.5,v=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(v+=" => "+r.overscaledZ),function(e,t){e.initDebugOverlayCanvas();var n=e.debugOverlayCanvas,r=e.context.gl,a=e.debugOverlayCanvas.getContext("2d");a.clearRect(0,0,n.width,n.height),a.shadowColor="white",a.shadowBlur=2,a.lineWidth=1.5,a.strokeStyle="white",a.textBaseline="top",a.font="bold 36px Open Sans, sans-serif",a.fillText(t,5,5),a.strokeText(t,5,5),e.debugOverlayTexture.update(n),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(t,v+" "+p+"kb"),l.draw(a,o.TRIANGLES,s,u,Me.alphaBlended,Se.disabled,Ln(i,e.Color.transparent,h),"$debug",t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments)}var yr={symbol:function(t,n,r,a,o){if("translucent"===t.renderPass){var i=Oe.disabled,l=t.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(t,n,r,a,o,i,l){for(var s=n.transform,u="map"===o,c="map"===i,f=0,p=t;f<p.length;f+=1){var d=p[f],h=a.getTile(d),v=h.getBucket(r);if(v&&v.text&&v.text.segments.get().length){var m=e.evaluateSizeForZoom(v.textSizeData,s.zoom),y=pt(h,1,n.transform.zoom),g=Ze(d.posMatrix,c,u,n.transform,y),b="none"!==r.layout.get("icon-text-fit")&&v.hasIconData();if(m){var x=Math.pow(2,s.zoom-h.tileID.overscaledZ);Qn(v,u,c,l,e.symbolSize,s,g,d.posMatrix,x,m,b)}}}}(a,t,r,n,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),o),0!==r.paint.get("icon-opacity").constantOr(1)&&tr(t,n,r,a,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),i,l),0!==r.paint.get("text-opacity").constantOr(1)&&tr(t,n,r,a,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),i,l),n.map.showCollisionBoxes&&(Xn(t,n,r,a,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),Xn(t,n,r,a,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))}},circle:function(t,n,r,a){if("translucent"===t.renderPass){var o=r.paint.get("circle-opacity"),i=r.paint.get("circle-stroke-width"),l=r.paint.get("circle-stroke-opacity"),s=void 0!==r.layout.get("circle-sort-key").constantOr(1);if(0!==o.constantOr(1)||0!==i.constantOr(1)&&0!==l.constantOr(1)){for(var u=t.context,c=u.gl,f=t.depthModeForSublayer(0,Ee.ReadOnly),p=Oe.disabled,d=t.colorModeForRenderPass(),h=[],v=0;v<a.length;v++){var m=a[v],y=n.getTile(m),g=y.getBucket(r);if(g){var b=g.programConfigurations.get(r.id),x={programConfiguration:b,program:t.useProgram("circle",b),layoutVertexBuffer:g.layoutVertexBuffer,indexBuffer:g.indexBuffer,uniformValues:Cn(t,m,y,r)};if(s)for(var _=0,w=g.segments.get();_<w.length;_+=1){var k=w[_];h.push({segments:new e.SegmentVector([k]),sortKey:k.sortKey,state:x})}else h.push({segments:g.segments,sortKey:0,state:x})}}s&&h.sort((function(e,t){return e.sortKey-t.sortKey}));for(var T=0,E=h;T<E.length;T+=1){var O=E[T],M=O.state;M.program.draw(u,c.TRIANGLES,f,p,d,Se.disabled,M.uniformValues,r.id,M.layoutVertexBuffer,M.indexBuffer,O.segments,r.paint,t.transform.zoom,M.programConfiguration)}}}},heatmap:function(t,n,r,a){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){var o=t.context,i=o.gl,l=Oe.disabled,s=new Me([i.ONE,i.ONE],e.Color.transparent,[!0,!0,!0,!0]);!function(e,t,n){var r=e.gl;e.activeTexture.set(r.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);var a=n.heatmapFbo;if(a)r.bindTexture(r.TEXTURE_2D,a.colorAttachment.get()),e.bindFramebuffer.set(a.framebuffer);else{var o=r.createTexture();r.bindTexture(r.TEXTURE_2D,o),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),a=n.heatmapFbo=e.createFramebuffer(t.width/4,t.height/4,!1),function(e,t,n,r){var a=e.gl;a.texImage2D(a.TEXTURE_2D,0,a.RGBA,t.width/4,t.height/4,0,a.RGBA,e.extRenderToTextureHalfFloat?e.extTextureHalfFloat.HALF_FLOAT_OES:a.UNSIGNED_BYTE,null),r.colorAttachment.set(n)}(e,t,o,a)}}(o,t,r),o.clear({color:e.Color.transparent});for(var u=0;u<a.length;u++){var c=a[u];if(!n.hasRenderableParent(c)){var f=n.getTile(c),p=f.getBucket(r);if(p){var d=p.programConfigurations.get(r.id);t.useProgram("heatmap",d).draw(o,i.TRIANGLES,Ee.disabled,l,s,Se.disabled,jn(c.posMatrix,f,t.transform.zoom,r.paint.get("heatmap-intensity")),r.id,p.layoutVertexBuffer,p.indexBuffer,p.segments,r.paint,t.transform.zoom,d)}}}o.viewport.set([0,0,t.width,t.height])}else"translucent"===t.renderPass&&(t.context.setColorMode(t.colorModeForRenderPass()),function(t,n){var r=t.context,a=r.gl,o=n.heatmapFbo;if(o){r.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,o.colorAttachment.get()),r.activeTexture.set(a.TEXTURE1);var i=n.colorRampTexture;i||(i=n.colorRampTexture=new e.Texture(r,n.colorRamp,a.RGBA)),i.bind(a.LINEAR,a.CLAMP_TO_EDGE),t.useProgram("heatmapTexture").draw(r,a.TRIANGLES,Ee.disabled,Oe.disabled,t.colorModeForRenderPass(),Se.disabled,function(t,n,r,a){var o=e.create();e.ortho(o,0,t.width,t.height,0,0,1);var i=t.context.gl;return{u_matrix:o,u_world:[i.drawingBufferWidth,i.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:n.paint.get("heatmap-opacity")}}(t,n),n.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,n.paint,t.transform.zoom)}}(t,r))},line:function(t,n,r,a){if("translucent"===t.renderPass){var o=r.paint.get("line-opacity"),i=r.paint.get("line-width");if(0!==o.constantOr(1)&&0!==i.constantOr(1)){var l=t.depthModeForSublayer(0,Ee.ReadOnly),s=t.colorModeForRenderPass(),u=r.paint.get("line-dasharray"),c=r.paint.get("line-pattern"),f=c.constantOr(1),p=r.paint.get("line-gradient"),d=r.getCrossfadeParameters(),h=f?"linePattern":u?"lineSDF":p?"lineGradient":"line",v=t.context,m=v.gl,y=!0;if(p){v.activeTexture.set(m.TEXTURE0);var g=r.gradientTexture;if(!r.gradient)return;g||(g=r.gradientTexture=new e.Texture(v,r.gradient,m.RGBA)),g.bind(m.LINEAR,m.CLAMP_TO_EDGE)}for(var b=0,x=a;b<x.length;b+=1){var _=x[b],w=n.getTile(_);if(!f||w.patternsLoaded()){var k=w.getBucket(r);if(k){var T=k.programConfigurations.get(r.id),E=t.context.program.get(),O=t.useProgram(h,T),M=y||O.program!==E,S=c.constantOr(null);if(S&&w.imageAtlas){var C=w.imageAtlas,A=C.patternPositions[S.to.toString()],P=C.patternPositions[S.from.toString()];A&&P&&T.setConstantPatternPositions(A,P)}var L=f?zn(t,w,r,d):u?Nn(t,w,r,u,d):p?Rn(t,w,r):In(t,w,r);f?(v.activeTexture.set(m.TEXTURE0),w.imageAtlasTexture.bind(m.LINEAR,m.CLAMP_TO_EDGE),T.updatePaintBuffers(d)):u&&(M||t.lineAtlas.dirty)&&(v.activeTexture.set(m.TEXTURE0),t.lineAtlas.bind(v)),O.draw(v,m.TRIANGLES,l,t.stencilModeForClipping(_),s,Se.disabled,L,r.id,k.layoutVertexBuffer,k.indexBuffer,k.segments,r.paint,t.transform.zoom,T),y=!1}}}}}},fill:function(t,n,r,a){var o=r.paint.get("fill-color"),i=r.paint.get("fill-opacity");if(0!==i.constantOr(1)){var l=t.colorModeForRenderPass(),s=r.paint.get("fill-pattern"),u=t.opaquePassEnabledForLayer()&&!s.constantOr(1)&&1===o.constantOr(e.Color.transparent).a&&1===i.constantOr(0)?"opaque":"translucent";if(t.renderPass===u){var c=t.depthModeForSublayer(1,"opaque"===t.renderPass?Ee.ReadWrite:Ee.ReadOnly);rr(t,n,r,a,c,l,!1)}if("translucent"===t.renderPass&&r.paint.get("fill-antialias")){var f=t.depthModeForSublayer(r.getPaintProperty("fill-outline-color")?2:0,Ee.ReadOnly);rr(t,n,r,a,f,l,!0)}}},"fill-extrusion":function(e,t,n,r){var a=n.paint.get("fill-extrusion-opacity");if(0!==a&&"translucent"===e.renderPass){var o=new Ee(e.context.gl.LEQUAL,Ee.ReadWrite,e.depthRangeFor3D);if(1!==a||n.paint.get("fill-extrusion-pattern").constantOr(1))ar(e,t,n,r,o,Oe.disabled,Me.disabled),ar(e,t,n,r,o,e.stencilModeFor3D(),e.colorModeForRenderPass());else{var i=e.colorModeForRenderPass();ar(e,t,n,r,o,Oe.disabled,i)}}},hillshade:function(e,t,n,r){if("offscreen"===e.renderPass||"translucent"===e.renderPass){for(var a=e.context,o=t.getSource().maxzoom,i=e.depthModeForSublayer(0,Ee.ReadOnly),l=e.colorModeForRenderPass(),s="translucent"===e.renderPass?e.stencilConfigForOverlap(r):[{},r],u=s[0],c=0,f=s[1];c<f.length;c+=1){var p=f[c],d=t.getTile(p);d.needsHillshadePrepare&&"offscreen"===e.renderPass?ir(e,d,n,o,i,Oe.disabled,l):"translucent"===e.renderPass&&or(e,d,n,i,u[p.overscaledZ],l)}a.viewport.set([0,0,e.width,e.height])}},raster:function(e,t,n,r){if("translucent"===e.renderPass&&0!==n.paint.get("raster-opacity")&&r.length)for(var a=e.context,o=a.gl,i=t.getSource(),l=e.useProgram("raster"),s=e.colorModeForRenderPass(),u=i instanceof L?[{},r]:e.stencilConfigForOverlap(r),c=u[0],f=u[1],p=f[f.length-1].overscaledZ,d=!e.options.moving,h=0,v=f;h<v.length;h+=1){var m=v[h],y=e.depthModeForSublayer(m.overscaledZ-p,1===n.paint.get("raster-opacity")?Ee.ReadWrite:Ee.ReadOnly,o.LESS),g=t.getTile(m),b=e.transform.calculatePosMatrix(m.toUnwrapped(),d);g.registerFadeDuration(n.paint.get("raster-fade-duration"));var x=t.findLoadedParent(m,0),_=lr(g,x,t,n,e.transform),w=void 0,k=void 0,T="nearest"===n.paint.get("raster-resampling")?o.NEAREST:o.LINEAR;a.activeTexture.set(o.TEXTURE0),g.texture.bind(T,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),a.activeTexture.set(o.TEXTURE1),x?(x.texture.bind(T,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,x.tileID.overscaledZ-g.tileID.overscaledZ),k=[g.tileID.canonical.x*w%1,g.tileID.canonical.y*w%1]):g.texture.bind(T,o.CLAMP_TO_EDGE,o.LINEAR_MIPMAP_NEAREST);var E=Vn(b,k||[0,0],w||1,_,n);i instanceof L?l.draw(a,o.TRIANGLES,y,Oe.disabled,s,Se.disabled,E,n.id,i.boundsBuffer,e.quadTriangleIndexBuffer,i.boundsSegments):l.draw(a,o.TRIANGLES,y,c[m.overscaledZ],s,Se.disabled,E,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}},background:function(e,t,n){var r=n.paint.get("background-color"),a=n.paint.get("background-opacity");if(0!==a){var o=e.context,i=o.gl,l=e.transform,s=l.tileSize,u=n.paint.get("background-pattern");if(!e.isPatternMissing(u)){var c=!u&&1===r.a&&1===a&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass===c){var f=Oe.disabled,p=e.depthModeForSublayer(0,"opaque"===c?Ee.ReadWrite:Ee.ReadOnly),d=e.colorModeForRenderPass(),h=e.useProgram(u?"backgroundPattern":"background"),v=l.coveringTiles({tileSize:s});u&&(o.activeTexture.set(i.TEXTURE0),e.imageManager.bind(e.context));for(var m=n.getCrossfadeParameters(),y=0,g=v;y<g.length;y+=1){var b=g[y],x=e.transform.calculatePosMatrix(b.toUnwrapped()),_=u?Yn(x,a,e,u,{tileID:b,tileSize:s},m):Gn(x,a,r);h.draw(o,i.TRIANGLES,p,f,d,Se.disabled,_,n.id,e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments)}}}}},debug:function(e,t,n){for(var r=0;r<n.length;r++)mr(e,t,n[r])},custom:function(e,t,n){var r=e.context,a=n.implementation;if("offscreen"===e.renderPass){var o=a.prerender;o&&(e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),o.call(a,r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState())}else if("translucent"===e.renderPass){e.setCustomLayerDefaults(),r.setColorMode(e.colorModeForRenderPass()),r.setStencilMode(Oe.disabled);var i="3d"===a.renderingMode?new Ee(e.context.gl.LEQUAL,Ee.ReadWrite,e.depthRangeFor3D):e.depthModeForSublayer(0,Ee.ReadOnly);r.setDepthMode(i),a.render(r.gl,e.transform.customLayerMatrix()),r.setDirty(),e.setBaseState(),r.bindFramebuffer.set(null)}}},gr=function(e,t){this.context=new Ce(e),this.transform=t,this._tileTextures={},this.setup(),this.numSublayers=Ae.maxUnderzooming+Ae.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Nt,this.gpuTimers={}};gr.prototype.resize=function(t,n){if(this.width=t*e.browser.devicePixelRatio,this.height=n*e.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var r=0,a=this.style._order;r<a.length;r+=1)this.style._layers[a[r]].resize()},gr.prototype.setup=function(){var t=this.context,n=new e.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(e.EXTENT,0),n.emplaceBack(0,e.EXTENT),n.emplaceBack(e.EXTENT,e.EXTENT),this.tileExtentBuffer=t.createVertexBuffer(n,Wt.members),this.tileExtentSegments=e.SegmentVector.simpleSegment(0,0,4,2);var r=new e.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(e.EXTENT,0),r.emplaceBack(0,e.EXTENT),r.emplaceBack(e.EXTENT,e.EXTENT),this.debugBuffer=t.createVertexBuffer(r,Wt.members),this.debugSegments=e.SegmentVector.simpleSegment(0,0,4,5);var a=new e.StructArrayLayout4i8;a.emplaceBack(0,0,0,0),a.emplaceBack(e.EXTENT,0,e.EXTENT,0),a.emplaceBack(0,e.EXTENT,0,e.EXTENT),a.emplaceBack(e.EXTENT,e.EXTENT,e.EXTENT,e.EXTENT),this.rasterBoundsBuffer=t.createVertexBuffer(a,P.members),this.rasterBoundsSegments=e.SegmentVector.simpleSegment(0,0,4,2);var o=new e.StructArrayLayout2i4;o.emplaceBack(0,0),o.emplaceBack(1,0),o.emplaceBack(0,1),o.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(o,Wt.members),this.viewportSegments=e.SegmentVector.simpleSegment(0,0,4,2);var i=new e.StructArrayLayout1ui2;i.emplaceBack(0),i.emplaceBack(1),i.emplaceBack(3),i.emplaceBack(2),i.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(i);var l=new e.StructArrayLayout3ui6;l.emplaceBack(0,1,2),l.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(l),this.emptyTexture=new e.Texture(t,{width:1,height:1,data:new Uint8Array([0,0,0,0])},t.gl.RGBA);var s=this.context.gl;this.stencilClearMode=new Oe({func:s.ALWAYS,mask:0},0,255,s.ZERO,s.ZERO,s.ZERO)},gr.prototype.clearStencil=function(){var t=this.context,n=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var r=e.create();e.ortho(r,0,this.width,this.height,0,0,1),e.scale(r,r,[n.drawingBufferWidth,n.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,n.TRIANGLES,Ee.disabled,this.stencilClearMode,Me.disabled,Se.disabled,Dn(r),"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},gr.prototype._renderTileClippingMasks=function(e,t){if(this.currentStencilSource!==e.source&&e.isTileClipped()&&t&&t.length){this.currentStencilSource=e.source;var n=this.context,r=n.gl;this.nextStencilID+t.length>256&&this.clearStencil(),n.setColorMode(Me.disabled),n.setDepthMode(Ee.disabled);var a=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var o=0,i=t;o<i.length;o+=1){var l=i[o],s=this._tileClippingMaskIDs[l.key]=this.nextStencilID++;a.draw(n,r.TRIANGLES,Ee.disabled,new Oe({func:r.ALWAYS,mask:0},s,255,r.KEEP,r.KEEP,r.REPLACE),Me.disabled,Se.disabled,Dn(l.posMatrix),"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},gr.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();var e=this.nextStencilID++,t=this.context.gl;return new Oe({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)},gr.prototype.stencilModeForClipping=function(e){var t=this.context.gl;return new Oe({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)},gr.prototype.stencilConfigForOverlap=function(e){var t,n=this.context.gl,r=e.sort((function(e,t){return t.overscaledZ-e.overscaledZ})),a=r[r.length-1].overscaledZ,o=r[0].overscaledZ-a+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();for(var i={},l=0;l<o;l++)i[l+a]=new Oe({func:n.GEQUAL,mask:255},l+this.nextStencilID,255,n.KEEP,n.KEEP,n.REPLACE);return this.nextStencilID+=o,[i,r]}return[(t={},t[a]=Oe.disabled,t),r]},gr.prototype.colorModeForRenderPass=function(){var t=this.context.gl;return this._showOverdrawInspector?new Me([t.CONSTANT_COLOR,t.ONE],new e.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):"opaque"===this.renderPass?Me.unblended:Me.alphaBlended},gr.prototype.depthModeForSublayer=function(e,t,n){if(!this.opaquePassEnabledForLayer())return Ee.disabled;var r=1-((1+this.currentLayer)*this.numSublayers+e)*this.depthEpsilon;return new Ee(n||this.context.gl.LEQUAL,t,[r,r])},gr.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer<this.opaquePassCutoff},gr.prototype.render=function(t,n){var r=this;this.style=t,this.options=n,this.lineAtlas=t.lineAtlas,this.imageManager=t.imageManager,this.glyphManager=t.glyphManager,this.symbolFadeChange=t.placement.symbolFadeChange(e.browser.now()),this.imageManager.beginFrame();var a=this.style._order,o=this.style.sourceCaches;for(var i in o){var l=o[i];l.used&&l.prepare(this.context)}var s,u,c={},f={},p={};for(var d in o){var h=o[d];c[d]=h.getVisibleCoordinates(),f[d]=c[d].slice().reverse(),p[d]=h.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var v=0;v<a.length;v++)if(this.style._layers[a[v]].is3D()){this.opaquePassCutoff=v;break}this.renderPass="offscreen";for(var m=0,y=a;m<y.length;m+=1){var g=this.style._layers[y[m]];if(g.hasOffscreenPass()&&!g.isHidden(this.transform.zoom)){var b=f[g.source];("custom"===g.type||b.length)&&this.renderLayer(this,o[g.source],g,b)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:n.showOverdrawInspector?e.Color.black:e.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=n.showOverdrawInspector,this.depthRangeFor3D=[0,1-(t._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass="opaque",this.currentLayer=a.length-1;this.currentLayer>=0;this.currentLayer--){var x=this.style._layers[a[this.currentLayer]],_=o[x.source],w=c[x.source];this._renderTileClippingMasks(x,w),this.renderLayer(this,_,x,w)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer<a.length;this.currentLayer++){var k=this.style._layers[a[this.currentLayer]],T=o[k.source],E=("symbol"===k.type?p:f)[k.source];this._renderTileClippingMasks(k,c[k.source]),this.renderLayer(this,T,k,E)}this.options.showTileBoundaries&&(e.values(this.style._layers).forEach((function(e){e.source&&!e.isHidden(r.transform.zoom)&&(e.source!==(u&&u.id)&&(u=r.style.sourceCaches[e.source]),(!s||s.getSource().maxzoom<u.getSource().maxzoom)&&(s=u))})),s&&yr.debug(this,s,s.getVisibleCoordinates())),this.options.showPadding&&function(e){var t=e.transform.padding;dr(e,e.transform.height-(t.top||0),3,sr),dr(e,t.bottom||0,3,ur),hr(e,t.left||0,3,cr),hr(e,e.transform.width-(t.right||0),3,fr);var n=e.transform.centerPoint;!function(e,t,n,r){vr(e,t-1,n-10,2,20,r),vr(e,t-10,n-1,20,2,r)}(e,n.x,e.transform.height-n.y,pr)}(this),this.context.setDefault()},gr.prototype.renderLayer=function(e,t,n,r){n.isHidden(this.transform.zoom)||("background"===n.type||"custom"===n.type||r.length)&&(this.id=n.id,this.gpuTimingStart(n),yr[n.type](e,t,n,r,this.style.placement.variableOffsets),this.gpuTimingEnd())},gr.prototype.gpuTimingStart=function(e){if(this.options.gpuTiming){var t=this.context.extTimerQuery,n=this.gpuTimers[e.id];n||(n=this.gpuTimers[e.id]={calls:0,cpuTime:0,query:t.createQueryEXT()}),n.calls++,t.beginQueryEXT(t.TIME_ELAPSED_EXT,n.query)}},gr.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var e=this.context.extTimerQuery;e.endQueryEXT(e.TIME_ELAPSED_EXT)}},gr.prototype.collectGpuTimers=function(){var e=this.gpuTimers;return this.gpuTimers={},e},gr.prototype.queryGpuTimers=function(e){var t={};for(var n in e){var r=e[n],a=this.context.extTimerQuery,o=a.getQueryObjectEXT(r.query,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(r.query),t[n]=o}return t},gr.prototype.translatePosMatrix=function(t,n,r,a,o){if(!r[0]&&!r[1])return t;var i=o?"map"===a?this.transform.angle:0:"viewport"===a?-this.transform.angle:0;if(i){var l=Math.sin(i),s=Math.cos(i);r=[r[0]*s-r[1]*l,r[0]*l+r[1]*s]}var u=[o?r[0]:pt(n,r[0],this.transform.zoom),o?r[1]:pt(n,r[1],this.transform.zoom),0],c=new Float32Array(16);return e.translate(c,t,u),c},gr.prototype.saveTileTexture=function(e){var t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]},gr.prototype.getTileTexture=function(e){var t=this._tileTextures[e];return t&&t.length>0?t.pop():null},gr.prototype.isPatternMissing=function(e){if(!e)return!1;if(!e.from||!e.to)return!0;var t=this.imageManager.getPattern(e.from.toString()),n=this.imageManager.getPattern(e.to.toString());return!t||!n},gr.prototype.useProgram=function(e,t){this.cache=this.cache||{};var n=""+e+(t?t.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[n]||(this.cache[n]=new _n(this.context,bn[e],t,Kn[e],this._showOverdrawInspector)),this.cache[n]},gr.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},gr.prototype.setBaseState=function(){var e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)},gr.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=e.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new e.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},gr.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var br=function(e,t){this.points=e,this.planes=t};br.fromInvProjectionMatrix=function(t,n,r){var a=Math.pow(2,r),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(n){return e.transformMat4([],n,t)})).map((function(t){return e.scale$1([],t,1/t[3]/n*a)})),i=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(t){var n=e.sub([],o[t[0]],o[t[1]]),r=e.sub([],o[t[2]],o[t[1]]),a=e.normalize([],e.cross([],n,r)),i=-e.dot(a,o[t[1]]);return a.concat(i)}));return new br(o,i)};var xr=function(t,n){this.min=t,this.max=n,this.center=e.scale$2([],e.add([],this.min,this.max),.5)};xr.prototype.quadrant=function(t){for(var n=[t%2==0,t<2],r=e.clone$2(this.min),a=e.clone$2(this.max),o=0;o<n.length;o++)r[o]=n[o]?this.min[o]:this.center[o],a[o]=n[o]?this.center[o]:this.max[o];return a[2]=this.max[2],new xr(r,a)},xr.prototype.distanceX=function(e){return Math.max(Math.min(this.max[0],e[0]),this.min[0])-e[0]},xr.prototype.distanceY=function(e){return Math.max(Math.min(this.max[1],e[1]),this.min[1])-e[1]},xr.prototype.intersects=function(t){for(var n=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],r=!0,a=0;a<t.planes.length;a++){for(var o=t.planes[a],i=0,l=0;l<n.length;l++)i+=e.dot$1(o,n[l])>=0;if(0===i)return 0;i!==n.length&&(r=!1)}if(r)return 2;for(var s=0;s<3;s++){for(var u=Number.MAX_VALUE,c=-Number.MAX_VALUE,f=0;f<t.points.length;f++){var p=t.points[f][s]-this.min[s];u=Math.min(u,p),c=Math.max(c,p)}if(c<0||u>this.max[s]-this.min[s])return 0}return 1};var _r=function(e,t,n,r){if(void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===r&&(r=0),isNaN(e)||e<0||isNaN(t)||t<0||isNaN(n)||n<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=n,this.right=r};_r.prototype.interpolate=function(t,n,r){return null!=n.top&&null!=t.top&&(this.top=e.number(t.top,n.top,r)),null!=n.bottom&&null!=t.bottom&&(this.bottom=e.number(t.bottom,n.bottom,r)),null!=n.left&&null!=t.left&&(this.left=e.number(t.left,n.left,r)),null!=n.right&&null!=t.right&&(this.right=e.number(t.right,n.right,r)),this},_r.prototype.getCenter=function(t,n){var r=e.clamp((this.left+t-this.right)/2,0,t),a=e.clamp((this.top+n-this.bottom)/2,0,n);return new e.Point(r,a)},_r.prototype.equals=function(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right},_r.prototype.clone=function(){return new _r(this.top,this.bottom,this.left,this.right)},_r.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wr=function(t,n,r,a,o){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===o||o,this._minZoom=t||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==a?60:a,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _r,this._posMatrixCache={},this._alignedPosMatrixCache={}},kr={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wr.prototype.clone=function(){var e=new wr(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return e.tileSize=this.tileSize,e.latRange=this.latRange,e.width=this.width,e.height=this.height,e._center=this._center,e.zoom=this.zoom,e.angle=this.angle,e._fov=this._fov,e._pitch=this._pitch,e._unmodified=this._unmodified,e._edgeInsets=this._edgeInsets.clone(),e._calcMatrices(),e},kr.minZoom.get=function(){return this._minZoom},kr.minZoom.set=function(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))},kr.maxZoom.get=function(){return this._maxZoom},kr.maxZoom.set=function(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))},kr.minPitch.get=function(){return this._minPitch},kr.minPitch.set=function(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))},kr.maxPitch.get=function(){return this._maxPitch},kr.maxPitch.set=function(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))},kr.renderWorldCopies.get=function(){return this._renderWorldCopies},kr.renderWorldCopies.set=function(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e},kr.worldSize.get=function(){return this.tileSize*this.scale},kr.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},kr.size.get=function(){return new e.Point(this.width,this.height)},kr.bearing.get=function(){return-this.angle/Math.PI*180},kr.bearing.set=function(t){var n=-e.wrap(t,-180,180)*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=e.create$2(),e.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},kr.pitch.get=function(){return this._pitch/Math.PI*180},kr.pitch.set=function(t){var n=e.clamp(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())},kr.fov.get=function(){return this._fov/Math.PI*180},kr.fov.set=function(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())},kr.zoom.get=function(){return this._zoom},kr.zoom.set=function(e){var t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this.scale=this.zoomScale(t),this.tileZoom=Math.floor(t),this.zoomFraction=t-this.tileZoom,this._constrain(),this._calcMatrices())},kr.center.get=function(){return this._center},kr.center.set=function(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())},kr.padding.get=function(){return this._edgeInsets.toJSON()},kr.padding.set=function(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())},kr.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wr.prototype.isPaddingEqual=function(e){return this._edgeInsets.equals(e)},wr.prototype.interpolatePadding=function(e,t,n){this._unmodified=!1,this._edgeInsets.interpolate(e,t,n),this._constrain(),this._calcMatrices()},wr.prototype.coveringZoomLevel=function(e){var t=(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize));return Math.max(0,t)},wr.prototype.getVisibleUnwrappedCoordinates=function(t){var n=[new e.UnwrappedTileID(0,t)];if(this._renderWorldCopies)for(var r=this.pointCoordinate(new e.Point(0,0)),a=this.pointCoordinate(new e.Point(this.width,0)),o=this.pointCoordinate(new e.Point(this.width,this.height)),i=this.pointCoordinate(new e.Point(0,this.height)),l=Math.floor(Math.min(r.x,a.x,o.x,i.x)),s=Math.floor(Math.max(r.x,a.x,o.x,i.x)),u=l-1;u<=s+1;u++)0!==u&&n.push(new e.UnwrappedTileID(u,t));return n},wr.prototype.coveringTiles=function(t){var n=this.coveringZoomLevel(t),r=n;if(void 0!==t.minzoom&&n<t.minzoom)return[];void 0!==t.maxzoom&&n>t.maxzoom&&(n=t.maxzoom);var a=e.MercatorCoordinate.fromLngLat(this.center),o=Math.pow(2,n),i=[o*a.x,o*a.y,0],l=br.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n),s=t.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(s=n);var u=function(e){return{aabb:new xr([e*o,0,0],[(e+1)*o,o,0]),zoom:0,x:0,y:0,wrap:e,fullyVisible:!1}},c=[],f=[],p=n,d=t.reparseOverscaled?r:n;if(this._renderWorldCopies)for(var h=1;h<=3;h++)c.push(u(-h)),c.push(u(h));for(c.push(u(0));c.length>0;){var v=c.pop(),m=v.x,y=v.y,g=v.fullyVisible;if(!g){var b=v.aabb.intersects(l);if(0===b)continue;g=2===b}var x=v.aabb.distanceX(i),_=v.aabb.distanceY(i),w=Math.max(Math.abs(x),Math.abs(_));if(v.zoom===p||w>3+(1<<p-v.zoom)-2&&v.zoom>=s)f.push({tileID:new e.OverscaledTileID(v.zoom===p?d:v.zoom,v.wrap,v.zoom,m,y),distanceSq:e.sqrLen([i[0]-.5-m,i[1]-.5-y])});else for(var k=0;k<4;k++){var T=(m<<1)+k%2,E=(y<<1)+(k>>1);c.push({aabb:v.aabb.quadrant(k),zoom:v.zoom+1,x:T,y:E,wrap:v.wrap,fullyVisible:g})}}return f.sort((function(e,t){return e.distanceSq-t.distanceSq})).map((function(e){return e.tileID}))},wr.prototype.resize=function(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()},kr.unmodified.get=function(){return this._unmodified},wr.prototype.zoomScale=function(e){return Math.pow(2,e)},wr.prototype.scaleZoom=function(e){return Math.log(e)/Math.LN2},wr.prototype.project=function(t){var n=e.clamp(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.Point(e.mercatorXfromLng(t.lng)*this.worldSize,e.mercatorYfromLat(n)*this.worldSize)},wr.prototype.unproject=function(t){return new e.MercatorCoordinate(t.x/this.worldSize,t.y/this.worldSize).toLngLat()},kr.point.get=function(){return this.project(this.center)},wr.prototype.setLocationAtPoint=function(t,n){var r=this.pointCoordinate(n),a=this.pointCoordinate(this.centerPoint),o=this.locationCoordinate(t),i=new e.MercatorCoordinate(o.x-(r.x-a.x),o.y-(r.y-a.y));this.center=this.coordinateLocation(i),this._renderWorldCopies&&(this.center=this.center.wrap())},wr.prototype.locationPoint=function(e){return this.coordinatePoint(this.locationCoordinate(e))},wr.prototype.pointLocation=function(e){return this.coordinateLocation(this.pointCoordinate(e))},wr.prototype.locationCoordinate=function(t){return e.MercatorCoordinate.fromLngLat(t)},wr.prototype.coordinateLocation=function(e){return e.toLngLat()},wr.prototype.pointCoordinate=function(t){var n=[t.x,t.y,0,1],r=[t.x,t.y,1,1];e.transformMat4(n,n,this.pixelMatrixInverse),e.transformMat4(r,r,this.pixelMatrixInverse);var a=n[3],o=r[3],i=n[1]/a,l=r[1]/o,s=n[2]/a,u=r[2]/o,c=s===u?0:(0-s)/(u-s);return new e.MercatorCoordinate(e.number(n[0]/a,r[0]/o,c)/this.worldSize,e.number(i,l,c)/this.worldSize)},wr.prototype.coordinatePoint=function(t){var n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix),new e.Point(n[0]/n[3],n[1]/n[3])},wr.prototype.getBounds=function(){return(new e.LngLatBounds).extend(this.pointLocation(new e.Point(0,0))).extend(this.pointLocation(new e.Point(this.width,0))).extend(this.pointLocation(new e.Point(this.width,this.height))).extend(this.pointLocation(new e.Point(0,this.height)))},wr.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new e.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},wr.prototype.setMaxBounds=function(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wr.prototype.calculatePosMatrix=function(t,n){void 0===n&&(n=!1);var r=t.key,a=n?this._alignedPosMatrixCache:this._posMatrixCache;if(a[r])return a[r];var o=t.canonical,i=this.worldSize/this.zoomScale(o.z),l=o.x+Math.pow(2,o.z)*t.wrap,s=e.identity(new Float64Array(16));return e.translate(s,s,[l*i,o.y*i,0]),e.scale(s,s,[i/e.EXTENT,i/e.EXTENT,1]),e.multiply(s,n?this.alignedProjMatrix:this.projMatrix,s),a[r]=new Float32Array(s),a[r]},wr.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wr.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var t,n,r,a,o=-90,i=90,l=-180,s=180,u=this.size,c=this._unmodified;if(this.latRange){var f=this.latRange;o=e.mercatorYfromLat(f[1])*this.worldSize,t=(i=e.mercatorYfromLat(f[0])*this.worldSize)-o<u.y?u.y/(i-o):0}if(this.lngRange){var p=this.lngRange;l=e.mercatorXfromLng(p[0])*this.worldSize,n=(s=e.mercatorXfromLng(p[1])*this.worldSize)-l<u.x?u.x/(s-l):0}var d=this.point,h=Math.max(n||0,t||0);if(h)return this.center=this.unproject(new e.Point(n?(s+l)/2:d.x,t?(i+o)/2:d.y)),this.zoom+=this.scaleZoom(h),this._unmodified=c,void(this._constraining=!1);if(this.latRange){var v=d.y,m=u.y/2;v-m<o&&(a=o+m),v+m>i&&(a=i-m)}if(this.lngRange){var y=d.x,g=u.x/2;y-g<l&&(r=l+g),y+g>s&&(r=s-g)}void 0===r&&void 0===a||(this.center=this.unproject(new e.Point(void 0!==r?r:d.x,void 0!==a?a:d.y))),this._unmodified=c,this._constraining=!1}},wr.prototype._calcMatrices=function(){if(this.height){var t=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var n=Math.PI/2+this._pitch,r=this._fov*(.5+t.y/this.height),a=Math.sin(r)*this.cameraToCenterDistance/Math.sin(e.clamp(Math.PI-n-r,.01,Math.PI-.01)),o=this.point,i=o.x,l=o.y,s=1.01*(Math.cos(Math.PI/2-this._pitch)*a+this.cameraToCenterDistance),u=this.height/50,c=new Float64Array(16);e.perspective(c,this._fov,this.width/this.height,u,s),c[8]=2*-t.x/this.width,c[9]=2*t.y/this.height,e.scale(c,c,[1,-1,1]),e.translate(c,c,[0,0,-this.cameraToCenterDistance]),e.rotateX(c,c,this._pitch),e.rotateZ(c,c,this.angle),e.translate(c,c,[-i,-l,0]),this.mercatorMatrix=e.scale([],c,[this.worldSize,this.worldSize,this.worldSize]),e.scale(c,c,[1,1,e.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=c,this.invProjMatrix=e.invert([],this.projMatrix);var f=this.width%2/2,p=this.height%2/2,d=Math.cos(this.angle),h=Math.sin(this.angle),v=i-Math.round(i)+d*f+h*p,m=l-Math.round(l)+d*p+h*f,y=new Float64Array(c);if(e.translate(y,y,[v>.5?v-1:v,m>.5?m-1:m,0]),this.alignedProjMatrix=y,c=e.create(),e.scale(c,c,[this.width/2,-this.height/2,1]),e.translate(c,c,[1,-1,0]),this.labelPlaneMatrix=c,c=e.create(),e.scale(c,c,[1,-1,1]),e.translate(c,c,[-1,-1,0]),e.scale(c,c,[2/this.width,2/this.height,1]),this.glCoordMatrix=c,this.pixelMatrix=e.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(c=e.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=c,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wr.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var t=this.pointCoordinate(new e.Point(0,0)),n=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance},wr.prototype.getCameraPoint=function(){var t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.Point(0,t))},wr.prototype.getCameraQueryGeometry=function(t){var n=this.getCameraPoint();if(1===t.length)return[t[0],n];for(var r=n.x,a=n.y,o=n.x,i=n.y,l=0,s=t;l<s.length;l+=1){var u=s[l];r=Math.min(r,u.x),a=Math.min(a,u.y),o=Math.max(o,u.x),i=Math.max(i,u.y)}return[new e.Point(r,a),new e.Point(o,a),new e.Point(o,i),new e.Point(r,i),new e.Point(r,a)]},Object.defineProperties(wr.prototype,kr);var Tr=function(t){var n,r,a,o;this._hashName=t&&encodeURIComponent(t),e.bindAll(["_getCurrentHash","_onHashChange","_updateHash"],this),this._updateHash=(n=this._updateHashUnthrottled.bind(this),r=!1,a=null,o=function(){a=null,r&&(n(),a=setTimeout(o,300),r=!1)},function(){return r=!0,a||o(),a})};Tr.prototype.addTo=function(t){return this._map=t,e.window.addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this},Tr.prototype.remove=function(){return e.window.removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},Tr.prototype.getHashString=function(t){var n=this._map.getCenter(),r=Math.round(100*this._map.getZoom())/100,a=Math.ceil((r*Math.LN2+Math.log(512/360/.5))/Math.LN10),o=Math.pow(10,a),i=Math.round(n.lng*o)/o,l=Math.round(n.lat*o)/o,s=this._map.getBearing(),u=this._map.getPitch(),c="";if(c+=t?"/"+i+"/"+l+"/"+r:r+"/"+l+"/"+i,(s||u)&&(c+="/"+Math.round(10*s)/10),u&&(c+="/"+Math.round(u)),this._hashName){var f=this._hashName,p=!1,d=e.window.location.hash.slice(1).split("&").map((function(e){var t=e.split("=")[0];return t===f?(p=!0,t+"="+c):e})).filter((function(e){return e}));return p||d.push(f+"="+c),"#"+d.join("&")}return"#"+c},Tr.prototype._getCurrentHash=function(){var t,n=this,r=e.window.location.hash.replace("#","");return this._hashName?(r.split("&").map((function(e){return e.split("=")})).forEach((function(e){e[0]===n._hashName&&(t=e)})),(t&&t[1]||"").split("/")):r.split("/")},Tr.prototype._onHashChange=function(){var e=this._getCurrentHash();if(e.length>=3&&!e.some((function(e){return isNaN(e)}))){var t=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(e[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:t,pitch:+(e[4]||0)}),!0}return!1},Tr.prototype._updateHashUnthrottled=function(){var t=this.getHashString();try{e.window.history.replaceState(e.window.history.state,"",t)}catch(e){}};var Er={linearity:.3,easing:e.bezier(0,0,.3,1)},Or=e.extend({deceleration:2500,maxSpeed:1400},Er),Mr=e.extend({deceleration:20,maxSpeed:1400},Er),Sr=e.extend({deceleration:1e3,maxSpeed:360},Er),Cr=e.extend({deceleration:1e3,maxSpeed:90},Er),Ar=function(e){this._map=e,this.clear()};function Pr(e,t){(!e.duration||e.duration<t.duration)&&(e.duration=t.duration,e.easing=t.easing)}function Lr(t,n,r){var a=r.maxSpeed,o=r.linearity,i=r.deceleration,l=e.clamp(t*o/(n/1e3),-a,a),s=Math.abs(l)/(i*o);return{easing:r.easing,duration:1e3*s,amount:l*(s/2)}}Ar.prototype.clear=function(){this._inertiaBuffer=[]},Ar.prototype.record=function(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.browser.now(),settings:t})},Ar.prototype._drainInertiaBuffer=function(){for(var t=this._inertiaBuffer,n=e.browser.now();t.length>0&&n-t[0].time>160;)t.shift()},Ar.prototype._onMoveEnd=function(t){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var n={zoom:0,bearing:0,pitch:0,pan:new e.Point(0,0),pinchAround:void 0,around:void 0},r=0,a=this._inertiaBuffer;r<a.length;r+=1){var o=a[r].settings;n.zoom+=o.zoomDelta||0,n.bearing+=o.bearingDelta||0,n.pitch+=o.pitchDelta||0,o.panDelta&&n.pan._add(o.panDelta),o.around&&(n.around=o.around),o.pinchAround&&(n.pinchAround=o.pinchAround)}var i=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,l={};if(n.pan.mag()){var s=Lr(n.pan.mag(),i,e.extend({},Or,t||{}));l.offset=n.pan.mult(s.amount/n.pan.mag()),l.center=this._map.transform.center,Pr(l,s)}if(n.zoom){var u=Lr(n.zoom,i,Mr);l.zoom=this._map.transform.zoom+u.amount,Pr(l,u)}if(n.bearing){var c=Lr(n.bearing,i,Sr);l.bearing=this._map.transform.bearing+e.clamp(c.amount,-179,179),Pr(l,c)}if(n.pitch){var f=Lr(n.pitch,i,Cr);l.pitch=this._map.transform.pitch+f.amount,Pr(l,f)}if(l.zoom||l.bearing){var p=void 0===n.pinchAround?n.around:n.pinchAround;l.around=p?this._map.unproject(p):this._map.getCenter()}return this.clear(),e.extend(l,{noMoveStart:!0})}};var Dr=function(t){function r(r,a,o,i){void 0===i&&(i={});var l=n.mousePos(a.getCanvasContainer(),o),s=a.unproject(l);t.call(this,r,e.extend({point:l,lngLat:s,originalEvent:o},i)),this._defaultPrevented=!1,this.target=a}t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r;var a={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},a.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,a),r}(e.Event),jr=function(t){function r(r,a,o){var i="touchend"===r?o.changedTouches:o.touches,l=n.touchPos(a.getCanvasContainer(),i),s=l.map((function(e){return a.unproject(e)})),u=l.reduce((function(e,t,n,r){return e.add(t.div(r.length))}),new e.Point(0,0)),c=a.unproject(u);t.call(this,r,{points:l,point:u,lngLats:s,lngLat:c,originalEvent:o}),this._defaultPrevented=!1}t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r;var a={defaultPrevented:{configurable:!0}};return r.prototype.preventDefault=function(){this._defaultPrevented=!0},a.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(r.prototype,a),r}(e.Event),Ir=function(e){function t(t,n,r){e.call(this,t,{originalEvent:r}),this._defaultPrevented=!1}e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t;var n={defaultPrevented:{configurable:!0}};return t.prototype.preventDefault=function(){this._defaultPrevented=!0},n.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(t.prototype,n),t}(e.Event),Rr=function(e,t){this._map=e,this._clickTolerance=t.clickTolerance};Rr.prototype.reset=function(){delete this._mousedownPos},Rr.prototype.wheel=function(e){return this._firePreventable(new Ir(e.type,this._map,e))},Rr.prototype.mousedown=function(e,t){return this._mousedownPos=t,this._firePreventable(new Dr(e.type,this._map,e))},Rr.prototype.mouseup=function(e){this._map.fire(new Dr(e.type,this._map,e))},Rr.prototype.click=function(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new Dr(e.type,this._map,e))},Rr.prototype.dblclick=function(e){return this._firePreventable(new Dr(e.type,this._map,e))},Rr.prototype.mouseover=function(e){this._map.fire(new Dr(e.type,this._map,e))},Rr.prototype.mouseout=function(e){this._map.fire(new Dr(e.type,this._map,e))},Rr.prototype.touchstart=function(e){return this._firePreventable(new jr(e.type,this._map,e))},Rr.prototype.touchmove=function(e){this._map.fire(new jr(e.type,this._map,e))},Rr.prototype.touchend=function(e){this._map.fire(new jr(e.type,this._map,e))},Rr.prototype.touchcancel=function(e){this._map.fire(new jr(e.type,this._map,e))},Rr.prototype._firePreventable=function(e){if(this._map.fire(e),e.defaultPrevented)return{}},Rr.prototype.isEnabled=function(){return!0},Rr.prototype.isActive=function(){return!1},Rr.prototype.enable=function(){},Rr.prototype.disable=function(){};var zr=function(e){this._map=e};zr.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},zr.prototype.mousemove=function(e){this._map.fire(new Dr(e.type,this._map,e))},zr.prototype.mousedown=function(){this._delayContextMenu=!0},zr.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Dr("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},zr.prototype.contextmenu=function(e){this._delayContextMenu?this._contextMenuEvent=e:this._map.fire(new Dr(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()},zr.prototype.isEnabled=function(){return!0},zr.prototype.isActive=function(){return!1},zr.prototype.enable=function(){},zr.prototype.disable=function(){};var Nr=function(e,t){this._map=e,this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1};function Fr(e,t){for(var n={},r=0;r<e.length;r++)n[e[r].identifier]=t[r];return n}Nr.prototype.isEnabled=function(){return!!this._enabled},Nr.prototype.isActive=function(){return!!this._active},Nr.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Nr.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},Nr.prototype.mousedown=function(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(n.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)},Nr.prototype.mousemoveWindow=function(e,t){if(this._active){var r=t;if(!(this._lastPos.equals(r)||!this._box&&r.dist(this._startPos)<this._clickTolerance)){var a=this._startPos;this._lastPos=r,this._box||(this._box=n.create("div","mapboxgl-boxzoom",this._container),this._container.classList.add("mapboxgl-crosshair"),this._fireEvent("boxzoomstart",e));var o=Math.min(a.x,r.x),i=Math.max(a.x,r.x),l=Math.min(a.y,r.y),s=Math.max(a.y,r.y);n.setTransform(this._box,"translate("+o+"px,"+l+"px)"),this._box.style.width=i-o+"px",this._box.style.height=s-l+"px"}}},Nr.prototype.mouseupWindow=function(t,r){var a=this;if(this._active&&0===t.button){var o=this._startPos,i=r;if(this.reset(),n.suppressClick(),o.x!==i.x||o.y!==i.y)return this._map.fire(new e.Event("boxzoomend",{originalEvent:t})),{cameraAnimation:function(e){return e.fitScreenCoordinates(o,i,a._map.getBearing(),{linear:!0})}};this._fireEvent("boxzoomcancel",t)}},Nr.prototype.keydown=function(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))},Nr.prototype.reset=function(){this._active=!1,this._container.classList.remove("mapboxgl-crosshair"),this._box&&(n.remove(this._box),this._box=null),n.enableDrag(),delete this._startPos,delete this._lastPos},Nr.prototype._fireEvent=function(t,n){return this._map.fire(new e.Event(t,{originalEvent:n}))};var Br=function(e){this.reset(),this.numTouches=e.numTouches};Br.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},Br.prototype.touchstart=function(t,n,r){(this.centroid||r.length>this.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=function(t){for(var n=new e.Point(0,0),r=0,a=t;r<a.length;r+=1)n._add(a[r]);return n.div(t.length)}(n),this.touches=Fr(r,n)))},Br.prototype.touchmove=function(e,t,n){if(!this.aborted&&this.centroid){var r=Fr(n,t);for(var a in this.touches){var o=r[a];(!o||o.dist(this.touches[a])>30)&&(this.aborted=!0)}}},Br.prototype.touchend=function(e,t,n){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}};var Vr=function(e){this.singleTap=new Br(e),this.numTaps=e.numTaps,this.reset()};Vr.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Vr.prototype.touchstart=function(e,t,n){this.singleTap.touchstart(e,t,n)},Vr.prototype.touchmove=function(e,t,n){this.singleTap.touchmove(e,t,n)},Vr.prototype.touchend=function(e,t,n){var r=this.singleTap.touchend(e,t,n);if(r){var a=e.timeStamp-this.lastTime<500,o=!this.lastTap||this.lastTap.dist(r)<30;if(a&&o||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}};var Hr=function(){this._zoomIn=new Vr({numTouches:1,numTaps:2}),this._zoomOut=new Vr({numTouches:2,numTaps:1}),this.reset()};Hr.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Hr.prototype.touchstart=function(e,t,n){this._zoomIn.touchstart(e,t,n),this._zoomOut.touchstart(e,t,n)},Hr.prototype.touchmove=function(e,t,n){this._zoomIn.touchmove(e,t,n),this._zoomOut.touchmove(e,t,n)},Hr.prototype.touchend=function(e,t,n){var r=this,a=this._zoomIn.touchend(e,t,n),o=this._zoomOut.touchend(e,t,n);return a?(this._active=!0,e.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()+1,around:t.unproject(a)},{originalEvent:e})}}):o?(this._active=!0,e.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(t){return t.easeTo({duration:300,zoom:t.getZoom()-1,around:t.unproject(o)},{originalEvent:e})}}):void 0},Hr.prototype.touchcancel=function(){this.reset()},Hr.prototype.enable=function(){this._enabled=!0},Hr.prototype.disable=function(){this._enabled=!1,this.reset()},Hr.prototype.isEnabled=function(){return this._enabled},Hr.prototype.isActive=function(){return this._active};var Ur=function(e){this.reset(),this._clickTolerance=e.clickTolerance||1};Ur.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Ur.prototype._correctButton=function(e,t){return!1},Ur.prototype._move=function(e,t){return{}},Ur.prototype.mousedown=function(e,t){if(!this._lastPoint){var r=n.mouseButton(e);this._correctButton(e,r)&&(this._lastPoint=t,this._eventButton=r)}},Ur.prototype.mousemoveWindow=function(e,t){var n=this._lastPoint;if(n&&(e.preventDefault(),this._moved||!(t.dist(n)<this._clickTolerance)))return this._moved=!0,this._lastPoint=t,this._move(n,t)},Ur.prototype.mouseupWindow=function(e){n.mouseButton(e)===this._eventButton&&(this._moved&&n.suppressClick(),this.reset())},Ur.prototype.enable=function(){this._enabled=!0},Ur.prototype.disable=function(){this._enabled=!1,this.reset()},Ur.prototype.isEnabled=function(){return this._enabled},Ur.prototype.isActive=function(){return this._active};var Wr=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.mousedown=function(t,n){e.prototype.mousedown.call(this,t,n),this._lastPoint&&(this._active=!0)},t.prototype._correctButton=function(e,t){return 0===t&&!e.ctrlKey},t.prototype._move=function(e,t){return{around:t,panDelta:t.sub(e)}},t}(Ur),qr=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._correctButton=function(e,t){return 0===t&&e.ctrlKey||2===t},t.prototype._move=function(e,t){var n=.8*(t.x-e.x);if(n)return this._active=!0,{bearingDelta:n}},t.prototype.contextmenu=function(e){e.preventDefault()},t}(Ur),$r=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype._correctButton=function(e,t){return 0===t&&e.ctrlKey||2===t},t.prototype._move=function(e,t){var n=-.5*(t.y-e.y);if(n)return this._active=!0,{pitchDelta:n}},t.prototype.contextmenu=function(e){e.preventDefault()},t}(Ur),Gr=function(e){this._minTouches=1,this._clickTolerance=e.clickTolerance||1,this.reset()};Gr.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new e.Point(0,0)},Gr.prototype.touchstart=function(e,t,n){return this._calculateTransform(e,t,n)},Gr.prototype.touchmove=function(e,t,n){if(this._active)return e.preventDefault(),this._calculateTransform(e,t,n)},Gr.prototype.touchend=function(e,t,n){this._calculateTransform(e,t,n),this._active&&n.length<this._minTouches&&this.reset()},Gr.prototype.touchcancel=function(){this.reset()},Gr.prototype._calculateTransform=function(t,n,r){r.length>0&&(this._active=!0);var a=Fr(r,n),o=new e.Point(0,0),i=new e.Point(0,0),l=0;for(var s in a){var u=a[s],c=this._touches[s];c&&(o._add(u),i._add(u.sub(c)),l++,a[s]=u)}if(this._touches=a,!(l<this._minTouches)&&i.mag()){var f=i.div(l);if(this._sum._add(f),!(this._sum.mag()<this._clickTolerance))return{around:o.div(l),panDelta:f}}},Gr.prototype.enable=function(){this._enabled=!0},Gr.prototype.disable=function(){this._enabled=!1,this.reset()},Gr.prototype.isEnabled=function(){return this._enabled},Gr.prototype.isActive=function(){return this._active};var Yr=function(){this.reset()};function Kr(e,t,n){for(var r=0;r<e.length;r++)if(e[r].identifier===n)return t[r]}function Xr(e,t){return Math.log(e/t)/Math.LN2}Yr.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Yr.prototype._start=function(e){},Yr.prototype._move=function(e,t,n){return{}},Yr.prototype.touchstart=function(e,t,n){this._firstTwoTouches||n.length<2||(this._firstTwoTouches=[n[0].identifier,n[1].identifier],this._start([t[0],t[1]]))},Yr.prototype.touchmove=function(e,t,n){if(this._firstTwoTouches){e.preventDefault();var r=this._firstTwoTouches,a=r[1],o=Kr(n,t,r[0]),i=Kr(n,t,a);if(o&&i){var l=this._aroundCenter?null:o.add(i).div(2);return this._move([o,i],l,e)}}},Yr.prototype.touchend=function(e,t,r){if(this._firstTwoTouches){var a=this._firstTwoTouches,o=a[1],i=Kr(r,t,a[0]),l=Kr(r,t,o);i&&l||(this._active&&n.suppressClick(),this.reset())}},Yr.prototype.touchcancel=function(){this.reset()},Yr.prototype.enable=function(e){this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around},Yr.prototype.disable=function(){this._enabled=!1,this.reset()},Yr.prototype.isEnabled=function(){return this._enabled},Yr.prototype.isActive=function(){return this._active};var Zr=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.reset=function(){e.prototype.reset.call(this),delete this._distance,delete this._startDistance},t.prototype._start=function(e){this._startDistance=this._distance=e[0].dist(e[1])},t.prototype._move=function(e,t){var n=this._distance;if(this._distance=e[0].dist(e[1]),this._active||!(Math.abs(Xr(this._distance,this._startDistance))<.1))return this._active=!0,{zoomDelta:Xr(this._distance,n),pinchAround:t}},t}(Yr);function Jr(e,t){return 180*e.angleWith(t)/Math.PI}var Qr=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.reset=function(){e.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},t.prototype._start=function(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])},t.prototype._move=function(e,t){var n=this._vector;if(this._vector=e[0].sub(e[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Jr(this._vector,n),pinchAround:t}},t.prototype._isBelowThreshold=function(e){this._minDiameter=Math.min(this._minDiameter,e.mag());var t=25/(Math.PI*this._minDiameter)*360,n=Jr(e,this._startVector);return Math.abs(n)<t},t}(Yr);function ea(e){return Math.abs(e.y)>Math.abs(e.x)}var ta=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t.prototype.reset=function(){e.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},t.prototype._start=function(e){this._lastPoints=e,ea(e[0].sub(e[1]))&&(this._valid=!1)},t.prototype._move=function(e,t,n){var r=e[0].sub(this._lastPoints[0]),a=e[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(r,a,n.timeStamp),this._valid)return this._lastPoints=e,this._active=!0,{pitchDelta:(r.y+a.y)/2*-.5}},t.prototype.gestureBeginsVertically=function(e,t,n){if(void 0!==this._valid)return this._valid;var r=e.mag()>=2,a=t.mag()>=2;if(r||a){if(!r||!a)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;var o=e.y>0==t.y>0;return ea(e)&&ea(t)&&o}},t}(Yr),na={panStep:100,bearingStep:15,pitchStep:10},ra=function(){var e=na;this._panStep=e.panStep,this._bearingStep=e.bearingStep,this._pitchStep=e.pitchStep};function aa(e){return e*(2-e)}ra.prototype.reset=function(){this._active=!1},ra.prototype.keydown=function(e){var t=this;if(!(e.altKey||e.ctrlKey||e.metaKey)){var n=0,r=0,a=0,o=0,i=0;switch(e.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:e.shiftKey?r=-1:(e.preventDefault(),o=-1);break;case 39:e.shiftKey?r=1:(e.preventDefault(),o=1);break;case 38:e.shiftKey?a=1:(e.preventDefault(),i=-1);break;case 40:e.shiftKey?a=-1:(e.preventDefault(),i=1);break;default:return}return{cameraAnimation:function(l){var s=l.getZoom();l.easeTo({duration:300,easeId:"keyboardHandler",easing:aa,zoom:n?Math.round(s)+n*(e.shiftKey?2:1):s,bearing:l.getBearing()+r*t._bearingStep,pitch:l.getPitch()+a*t._pitchStep,offset:[-o*t._panStep,-i*t._panStep],center:l.getCenter()},{originalEvent:e})}}}},ra.prototype.enable=function(){this._enabled=!0},ra.prototype.disable=function(){this._enabled=!1,this.reset()},ra.prototype.isEnabled=function(){return this._enabled},ra.prototype.isActive=function(){return this._active};var oa=function(t,n){this._map=t,this._el=t.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,e.bindAll(["_onWheel","_onTimeout","_onScrollFrame","_onScrollFinished"],this)};oa.prototype.setZoomRate=function(e){this._defaultZoomRate=e},oa.prototype.setWheelZoomRate=function(e){this._wheelZoomRate=e},oa.prototype.isEnabled=function(){return!!this._enabled},oa.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},oa.prototype.isZooming=function(){return!!this._zooming},oa.prototype.enable=function(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=e&&"center"===e.around)},oa.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},oa.prototype.wheel=function(t){if(this.isEnabled()){var n=t.deltaMode===e.window.WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,r=e.browser.now(),a=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%4.000244140625==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":a>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=Math.abs(a*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),t.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=t,this._delta-=n,this._active||this._start(t)),t.preventDefault()}},oa.prototype._onTimeout=function(e){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)},oa.prototype._start=function(t){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var r=n.mousePos(this._el,t);this._around=e.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(r)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},oa.prototype.renderFrame=function(){return this._onScrollFrame()},oa.prototype._onScrollFrame=function(){var t=this;if(this._frameId&&(this._frameId=null,this.isActive())){var n=this._map.transform;if(0!==this._delta){var r="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,a=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==a&&(a=1/a);var o="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):n.scale;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(o*a))),"wheel"===this._type&&(this._startZoom=n.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var i,l="number"==typeof this._targetZoom?this._targetZoom:n.zoom,s=this._startZoom,u=this._easing,c=!1;if("wheel"===this._type&&s&&u){var f=Math.min((e.browser.now()-this._lastWheelEventTime)/200,1),p=u(f);i=e.number(s,l,p),f<1?this._frameId||(this._frameId=!0):c=!0}else i=l,c=!0;return this._active=!0,c&&(this._active=!1,this._finishTimeout=setTimeout((function(){t._zooming=!1,t._handler._triggerRenderFrame(),delete t._targetZoom,delete t._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!c,zoomDelta:i-n.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},oa.prototype._smoothOutEasing=function(t){var n=e.ease;if(this._prevEase){var r=this._prevEase,a=(e.browser.now()-r.start)/r.duration,o=r.easing(a+.01)-r.easing(a),i=.27/Math.sqrt(o*o+1e-4)*.01,l=Math.sqrt(.0729-i*i);n=e.bezier(i,l,.25,1)}return this._prevEase={start:e.browser.now(),duration:t,easing:n},n},oa.prototype.reset=function(){this._active=!1};var ia=function(e,t){this._clickZoom=e,this._tapZoom=t};ia.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ia.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ia.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},ia.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var la=function(){this.reset()};la.prototype.reset=function(){this._active=!1},la.prototype.dblclick=function(e,t){return e.preventDefault(),{cameraAnimation:function(n){n.easeTo({duration:300,zoom:n.getZoom()+(e.shiftKey?-1:1),around:n.unproject(t)},{originalEvent:e})}}},la.prototype.enable=function(){this._enabled=!0},la.prototype.disable=function(){this._enabled=!1,this.reset()},la.prototype.isEnabled=function(){return this._enabled},la.prototype.isActive=function(){return this._active};var sa=function(){this._tap=new Vr({numTouches:1,numTaps:1}),this.reset()};sa.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},sa.prototype.touchstart=function(e,t,n){this._swipePoint||(this._tapTime&&e.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=t[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(e,t,n))},sa.prototype.touchmove=function(e,t,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;var r=t[0],a=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:a/128}}}else this._tap.touchmove(e,t,n)},sa.prototype.touchend=function(e,t,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(e,t,n)&&(this._tapTime=e.timeStamp)},sa.prototype.touchcancel=function(){this.reset()},sa.prototype.enable=function(){this._enabled=!0},sa.prototype.disable=function(){this._enabled=!1,this.reset()},sa.prototype.isEnabled=function(){return this._enabled},sa.prototype.isActive=function(){return this._active};var ua=function(e,t,n){this._el=e,this._mousePan=t,this._touchPan=n};ua.prototype.enable=function(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},ua.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},ua.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},ua.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var ca=function(e,t,n){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=n};ca.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},ca.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},ca.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},ca.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var fa=function(e,t,n,r){this._el=e,this._touchZoom=t,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0};fa.prototype.enable=function(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},fa.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},fa.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},fa.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},fa.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},fa.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var pa=function(e){return e.zoom||e.drag||e.pitch||e.rotate},da=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t,t}(e.Event);function ha(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}var va=function(t,r){this._map=t,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ar(t),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r),e.bindAll(["handleEvent","handleWindowEvent"],this);var a=this._el;this._listeners=[[a,"touchstart",{passive:!1}],[a,"touchmove",{passive:!1}],[a,"touchend",void 0],[a,"touchcancel",void 0],[a,"mousedown",void 0],[a,"mousemove",void 0],[a,"mouseup",void 0],[e.window.document,"mousemove",{capture:!0}],[e.window.document,"mouseup",void 0],[a,"mouseover",void 0],[a,"mouseout",void 0],[a,"dblclick",void 0],[a,"click",void 0],[a,"keydown",{capture:!1}],[a,"keyup",void 0],[a,"wheel",{passive:!1}],[a,"contextmenu",void 0],[e.window,"blur",void 0]];for(var o=0,i=this._listeners;o<i.length;o+=1){var l=i[o],s=l[0];n.addEventListener(s,l[1],s===e.window.document?this.handleWindowEvent:this.handleEvent,l[2])}};va.prototype.destroy=function(){for(var t=0,r=this._listeners;t<r.length;t+=1){var a=r[t],o=a[0];n.removeEventListener(o,a[1],o===e.window.document?this.handleWindowEvent:this.handleEvent,a[2])}},va.prototype._addDefaultHandlers=function(e){var t=this._map,n=t.getCanvasContainer();this._add("mapEvent",new Rr(t,e));var r=t.boxZoom=new Nr(t,e);this._add("boxZoom",r);var a=new Hr,o=new la;t.doubleClickZoom=new ia(o,a),this._add("tapZoom",a),this._add("clickZoom",o);var i=new sa;this._add("tapDragZoom",i);var l=t.touchPitch=new ta;this._add("touchPitch",l);var s=new qr(e),u=new $r(e);t.dragRotate=new ca(e,s,u),this._add("mouseRotate",s,["mousePitch"]),this._add("mousePitch",u,["mouseRotate"]);var c=new Wr(e),f=new Gr(e);t.dragPan=new ua(n,c,f),this._add("mousePan",c),this._add("touchPan",f,["touchZoom","touchRotate"]);var p=new Qr,d=new Zr;t.touchZoomRotate=new fa(n,d,p,i),this._add("touchRotate",p,["touchPan","touchZoom"]),this._add("touchZoom",d,["touchPan","touchRotate"]);var h=t.scrollZoom=new oa(t,this);this._add("scrollZoom",h,["mousePan"]);var v=t.keyboard=new ra;this._add("keyboard",v),this._add("blockableMapEvent",new zr(t));for(var m=0,y=["boxZoom","doubleClickZoom","tapDragZoom","touchPitch","dragRotate","dragPan","touchZoomRotate","scrollZoom","keyboard"];m<y.length;m+=1){var g=y[m];e.interactive&&e[g]&&t[g].enable(e[g])}},va.prototype._add=function(e,t,n){this._handlers.push({handlerName:e,handler:t,allowed:n}),this._handlersById[e]=t},va.prototype.stop=function(){if(!this._updatingCamera){for(var e=0,t=this._handlers;e<t.length;e+=1)t[e].handler.reset();this._inertia.clear(),this._fireEvents({},{}),this._changes=[]}},va.prototype.isActive=function(){for(var e=0,t=this._handlers;e<t.length;e+=1)if(t[e].handler.isActive())return!0;return!1},va.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},va.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},va.prototype.isMoving=function(){return Boolean(pa(this._eventsInProgress))||this.isZooming()},va.prototype._blockedByActive=function(e,t,n){for(var r in e)if(r!==n&&(!t||t.indexOf(r)<0))return!0;return!1},va.prototype.handleWindowEvent=function(e){this.handleEvent(e,e.type+"Window")},va.prototype._getMapTouches=function(e){for(var t=[],n=0,r=e;n<r.length;n+=1){var a=r[n];this._el.contains(a.target)&&t.push(a)}return t},va.prototype.handleEvent=function(e,t){if("blur"!==e.type){this._updatingCamera=!0;for(var r="renderFrame"===e.type?void 0:e,a={needsRenderFrame:!1},o={},i={},l=e.touches?this._getMapTouches(e.touches):void 0,s=l?n.touchPos(this._el,l):n.mousePos(this._el,e),u=0,c=this._handlers;u<c.length;u+=1){var f=c[u],p=f.handlerName,d=f.handler,h=f.allowed;if(d.isEnabled()){var v=void 0;this._blockedByActive(i,h,p)?d.reset():d[t||e.type]&&(v=d[t||e.type](e,s,l),this.mergeHandlerResult(a,o,v,p,r),v&&v.needsRenderFrame&&this._triggerRenderFrame()),(v||d.isActive())&&(i[p]=d)}}var m={};for(var y in this._previousActiveHandlers)i[y]||(m[y]=r);this._previousActiveHandlers=i,(Object.keys(m).length||ha(a))&&(this._changes.push([a,o,m]),this._triggerRenderFrame()),(Object.keys(i).length||ha(a))&&this._map._stop(!0),this._updatingCamera=!1;var g=a.cameraAnimation;g&&(this._inertia.clear(),this._fireEvents({},{}),this._changes=[],g(this._map))}else this.stop()},va.prototype.mergeHandlerResult=function(t,n,r,a,o){if(r){e.extend(t,r);var i={handlerName:a,originalEvent:r.originalEvent||o};void 0!==r.zoomDelta&&(n.zoom=i),void 0!==r.panDelta&&(n.drag=i),void 0!==r.pitchDelta&&(n.pitch=i),void 0!==r.bearingDelta&&(n.rotate=i)}},va.prototype._applyChanges=function(){for(var t={},n={},r={},a=0,o=this._changes;a<o.length;a+=1){var i=o[a],l=i[0],s=i[1],u=i[2];l.panDelta&&(t.panDelta=(t.panDelta||new e.Point(0,0))._add(l.panDelta)),l.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+l.zoomDelta),l.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+l.bearingDelta),l.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+l.pitchDelta),void 0!==l.around&&(t.around=l.around),void 0!==l.pinchAround&&(t.pinchAround=l.pinchAround),l.noInertia&&(t.noInertia=l.noInertia),e.extend(n,s),e.extend(r,u)}this._updateMapTransform(t,n,r),this._changes=[]},va.prototype._updateMapTransform=function(e,t,n){var r=this._map,a=r.transform;if(!ha(e))return this._fireEvents(t,n);var o=e.panDelta,i=e.zoomDelta,l=e.bearingDelta,s=e.pitchDelta,u=e.around,c=e.pinchAround;void 0!==c&&(u=c),r._stop(!0),u=u||r.transform.centerPoint;var f=a.pointLocation(o?u.sub(o):u);l&&(a.bearing+=l),s&&(a.pitch+=s),i&&(a.zoom+=i),a.setLocationAtPoint(f,u),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,n)},va.prototype._fireEvents=function(t,n){var r=this,a=pa(this._eventsInProgress),o=pa(t),i={};for(var l in t)this._eventsInProgress[l]||(i[l+"start"]=t[l].originalEvent),this._eventsInProgress[l]=t[l];for(var s in!a&&o&&this._fireEvent("movestart",o.originalEvent),i)this._fireEvent(s,i[s]);for(var u in t.rotate&&(this._bearingChanged=!0),o&&this._fireEvent("move",o.originalEvent),t)this._fireEvent(u,t[u].originalEvent);var c,f={};for(var p in this._eventsInProgress){var d=this._eventsInProgress[p],h=d.handlerName,v=d.originalEvent;this._handlersById[h].isActive()||(delete this._eventsInProgress[p],f[p+"end"]=c=n[h]||v)}for(var m in f)this._fireEvent(m,f[m]);var y=pa(this._eventsInProgress);if((a||o)&&!y){this._updatingCamera=!0;var g=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),b=function(e){return 0!==e&&-r._bearingSnap<e&&e<r._bearingSnap};g?(b(g.bearing||this._map.getBearing())&&(g.bearing=0),this._map.easeTo(g,{originalEvent:c})):(this._map.fire(new e.Event("moveend",{originalEvent:c})),b(this._map.getBearing())&&this._map.resetNorth()),this._bearingChanged=!1,this._updatingCamera=!1}},va.prototype._fireEvent=function(t,n){this._map.fire(new e.Event(t,n?{originalEvent:n}:{}))},va.prototype._triggerRenderFrame=function(){var e=this;void 0===this._frameId&&(this._frameId=this._map._requestRenderFrame((function(t){delete e._frameId,e.handleEvent(new da("renderFrame",{timeStamp:t})),e._applyChanges()})))};var ma=function(t){function n(n,r){t.call(this),this._moving=!1,this._zooming=!1,this.transform=n,this._bearingSnap=r.bearingSnap,e.bindAll(["_renderFrameCallback"],this)}return t&&(n.__proto__=t),(n.prototype=Object.create(t&&t.prototype)).constructor=n,n.prototype.getCenter=function(){return new e.LngLat(this.transform.center.lng,this.transform.center.lat)},n.prototype.setCenter=function(e,t){return this.jumpTo({center:e},t)},n.prototype.panBy=function(t,n,r){return t=e.Point.convert(t).mult(-1),this.panTo(this.transform.center,e.extend({offset:t},n),r)},n.prototype.panTo=function(t,n,r){return this.easeTo(e.extend({center:t},n),r)},n.prototype.getZoom=function(){return this.transform.zoom},n.prototype.setZoom=function(e,t){return this.jumpTo({zoom:e},t),this},n.prototype.zoomTo=function(t,n,r){return this.easeTo(e.extend({zoom:t},n),r)},n.prototype.zoomIn=function(e,t){return this.zoomTo(this.getZoom()+1,e,t),this},n.prototype.zoomOut=function(e,t){return this.zoomTo(this.getZoom()-1,e,t),this},n.prototype.getBearing=function(){return this.transform.bearing},n.prototype.setBearing=function(e,t){return this.jumpTo({bearing:e},t),this},n.prototype.getPadding=function(){return this.transform.padding},n.prototype.setPadding=function(e,t){return this.jumpTo({padding:e},t),this},n.prototype.rotateTo=function(t,n,r){return this.easeTo(e.extend({bearing:t},n),r)},n.prototype.resetNorth=function(t,n){return this.rotateTo(0,e.extend({duration:1e3},t),n),this},n.prototype.resetNorthPitch=function(t,n){return this.easeTo(e.extend({bearing:0,pitch:0,duration:1e3},t),n),this},n.prototype.snapToNorth=function(e,t){return Math.abs(this.getBearing())<this._bearingSnap?this.resetNorth(e,t):this},n.prototype.getPitch=function(){return this.transform.pitch},n.prototype.setPitch=function(e,t){return this.jumpTo({pitch:e},t),this},n.prototype.cameraForBounds=function(t,n){return t=e.LngLatBounds.convert(t),this._cameraForBoxAndBearing(t.getNorthWest(),t.getSouthEast(),0,n)},n.prototype._cameraForBoxAndBearing=function(t,n,r,a){var o={top:0,bottom:0,right:0,left:0};if("number"==typeof(a=e.extend({padding:o,offset:[0,0],maxZoom:this.transform.maxZoom},a)).padding){var i=a.padding;a.padding={top:i,bottom:i,right:i,left:i}}a.padding=e.extend(o,a.padding);var l=this.transform,s=l.padding,u=l.project(e.LngLat.convert(t)),c=l.project(e.LngLat.convert(n)),f=u.rotate(-r*Math.PI/180),p=c.rotate(-r*Math.PI/180),d=new e.Point(Math.max(f.x,p.x),Math.max(f.y,p.y)),h=new e.Point(Math.min(f.x,p.x),Math.min(f.y,p.y)),v=d.sub(h),m=(l.width-(s.left+s.right+a.padding.left+a.padding.right))/v.x,y=(l.height-(s.top+s.bottom+a.padding.top+a.padding.bottom))/v.y;if(!(y<0||m<0)){var g=Math.min(l.scaleZoom(l.scale*Math.min(m,y)),a.maxZoom),b=e.Point.convert(a.offset),x=new e.Point(b.x+(a.padding.left-a.padding.right)/2,b.y+(a.padding.top-a.padding.bottom)/2).mult(l.scale/l.zoomScale(g));return{center:l.unproject(u.add(c).div(2).sub(x)),zoom:g,bearing:r}}e.warnOnce("Map cannot fit within canvas with the given bounds, padding, and/or offset.")},n.prototype.fitBounds=function(e,t,n){return this._fitInternal(this.cameraForBounds(e,t),t,n)},n.prototype.fitScreenCoordinates=function(t,n,r,a,o){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(e.Point.convert(t)),this.transform.pointLocation(e.Point.convert(n)),r,a),a,o)},n.prototype._fitInternal=function(t,n,r){return t?(delete(n=e.extend(t,n)).padding,n.linear?this.easeTo(n,r):this.flyTo(n,r)):this},n.prototype.jumpTo=function(t,n){this.stop();var r=this.transform,a=!1,o=!1,i=!1;return"zoom"in t&&r.zoom!==+t.zoom&&(a=!0,r.zoom=+t.zoom),void 0!==t.center&&(r.center=e.LngLat.convert(t.center)),"bearing"in t&&r.bearing!==+t.bearing&&(o=!0,r.bearing=+t.bearing),"pitch"in t&&r.pitch!==+t.pitch&&(i=!0,r.pitch=+t.pitch),null==t.padding||r.isPaddingEqual(t.padding)||(r.padding=t.padding),this.fire(new e.Event("movestart",n)).fire(new e.Event("move",n)),a&&this.fire(new e.Event("zoomstart",n)).fire(new e.Event("zoom",n)).fire(new e.Event("zoomend",n)),o&&this.fire(new e.Event("rotatestart",n)).fire(new e.Event("rotate",n)).fire(new e.Event("rotateend",n)),i&&this.fire(new e.Event("pitchstart",n)).fire(new e.Event("pitch",n)).fire(new e.Event("pitchend",n)),this.fire(new e.Event("moveend",n))},n.prototype.easeTo=function(t,n){var r=this;this._stop(!1,t.easeId),(!1===(t=e.extend({offset:[0,0],duration:500,easing:e.ease},t)).animate||!t.essential&&e.browser.prefersReducedMotion)&&(t.duration=0);var a=this.transform,o=this.getZoom(),i=this.getBearing(),l=this.getPitch(),s=this.getPadding(),u="zoom"in t?+t.zoom:o,c="bearing"in t?this._normalizeBearing(t.bearing,i):i,f="pitch"in t?+t.pitch:l,p="padding"in t?t.padding:a.padding,d=e.Point.convert(t.offset),h=a.centerPoint.add(d),v=a.pointLocation(h),m=e.LngLat.convert(t.center||v);this._normalizeCenter(m);var y,g,b=a.project(v),x=a.project(m).sub(b),_=a.zoomScale(u-o);t.around&&(y=e.LngLat.convert(t.around),g=a.locationPoint(y));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||u!==o,this._rotating=this._rotating||i!==c,this._pitching=this._pitching||f!==l,this._padding=!a.isPaddingEqual(p),this._easeId=t.easeId,this._prepareEase(n,t.noMoveStart,w),clearTimeout(this._easeEndTimeoutID),this._ease((function(t){if(r._zooming&&(a.zoom=e.number(o,u,t)),r._rotating&&(a.bearing=e.number(i,c,t)),r._pitching&&(a.pitch=e.number(l,f,t)),r._padding&&(a.interpolatePadding(s,p,t),h=a.centerPoint.add(d)),y)a.setLocationAtPoint(y,g);else{var v=a.zoomScale(a.zoom-o),m=u>o?Math.min(2,_):Math.max(.5,_),w=Math.pow(m,1-t),k=a.unproject(b.add(x.mult(t*w)).mult(v));a.setLocationAtPoint(a.renderWorldCopies?k.wrap():k,h)}r._fireMoveEvents(n)}),(function(e){r._afterEase(n,e)}),t),this},n.prototype._prepareEase=function(t,n,r){void 0===r&&(r={}),this._moving=!0,n||r.moving||this.fire(new e.Event("movestart",t)),this._zooming&&!r.zooming&&this.fire(new e.Event("zoomstart",t)),this._rotating&&!r.rotating&&this.fire(new e.Event("rotatestart",t)),this._pitching&&!r.pitching&&this.fire(new e.Event("pitchstart",t))},n.prototype._fireMoveEvents=function(t){this.fire(new e.Event("move",t)),this._zooming&&this.fire(new e.Event("zoom",t)),this._rotating&&this.fire(new e.Event("rotate",t)),this._pitching&&this.fire(new e.Event("pitch",t))},n.prototype._afterEase=function(t,n){if(!this._easeId||!n||this._easeId!==n){delete this._easeId;var r=this._zooming,a=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new e.Event("zoomend",t)),a&&this.fire(new e.Event("rotateend",t)),o&&this.fire(new e.Event("pitchend",t)),this.fire(new e.Event("moveend",t))}},n.prototype.flyTo=function(t,n){var r=this;if(!t.essential&&e.browser.prefersReducedMotion){var a=e.pick(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(a,n)}this.stop(),t=e.extend({offset:[0,0],speed:1.2,curve:1.42,easing:e.ease},t);var o=this.transform,i=this.getZoom(),l=this.getBearing(),s=this.getPitch(),u=this.getPadding(),c="zoom"in t?e.clamp(+t.zoom,o.minZoom,o.maxZoom):i,f="bearing"in t?this._normalizeBearing(t.bearing,l):l,p="pitch"in t?+t.pitch:s,d="padding"in t?t.padding:o.padding,h=o.zoomScale(c-i),v=e.Point.convert(t.offset),m=o.centerPoint.add(v),y=o.pointLocation(m),g=e.LngLat.convert(t.center||y);this._normalizeCenter(g);var b=o.project(y),x=o.project(g).sub(b),_=t.curve,w=Math.max(o.width,o.height),k=w/h,T=x.mag();if("minZoom"in t){var E=e.clamp(Math.min(t.minZoom,i,c),o.minZoom,o.maxZoom),O=w/o.zoomScale(E-i);_=Math.sqrt(O/T*2)}var M=_*_;function S(e){var t=(k*k-w*w+(e?-1:1)*M*M*T*T)/(2*(e?k:w)*M*T);return Math.log(Math.sqrt(t*t+1)-t)}function C(e){return(Math.exp(e)-Math.exp(-e))/2}function A(e){return(Math.exp(e)+Math.exp(-e))/2}var P=S(0),L=function(e){return A(P)/A(P+_*e)},D=function(e){return w*((A(P)*(C(t=P+_*e)/A(t))-C(P))/M)/T;var t},j=(S(1)-P)/_;if(Math.abs(T)<1e-6||!isFinite(j)){if(Math.abs(w-k)<1e-6)return this.easeTo(t,n);var I=k<w?-1:1;j=Math.abs(Math.log(k/w))/_,D=function(){return 0},L=function(e){return Math.exp(I*_*e)}}return t.duration="duration"in t?+t.duration:1e3*j/("screenSpeed"in t?+t.screenSpeed/_:+t.speed),t.maxDuration&&t.duration>t.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=l!==f,this._pitching=p!==s,this._padding=!o.isPaddingEqual(d),this._prepareEase(n,!1),this._ease((function(t){var a=t*j,h=1/L(a);o.zoom=1===t?c:i+o.scaleZoom(h),r._rotating&&(o.bearing=e.number(l,f,t)),r._pitching&&(o.pitch=e.number(s,p,t)),r._padding&&(o.interpolatePadding(u,d,t),m=o.centerPoint.add(v));var y=1===t?g:o.unproject(b.add(x.mult(D(a))).mult(h));o.setLocationAtPoint(o.renderWorldCopies?y.wrap():y,m),r._fireMoveEvents(n)}),(function(){return r._afterEase(n)}),t),this},n.prototype.isEasing=function(){return!!this._easeFrameId},n.prototype.stop=function(){return this._stop()},n.prototype._stop=function(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var n=this._onEaseEnd;delete this._onEaseEnd,n.call(this,t)}if(!e){var r=this.handlers;r&&r.stop()}return this},n.prototype._ease=function(t,n,r){!1===r.animate||0===r.duration?(t(1),n()):(this._easeStart=e.browser.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},n.prototype._renderFrameCallback=function(){var t=Math.min((e.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},n.prototype._normalizeBearing=function(t,n){t=e.wrap(t,-180,180);var r=Math.abs(t-n);return Math.abs(t-360-n)<r&&(t-=360),Math.abs(t+360-n)<r&&(t+=360),t},n.prototype._normalizeCenter=function(e){var t=this.transform;if(t.renderWorldCopies&&!t.lngRange){var n=e.lng-t.center.lng;e.lng+=n>180?-360:n<-180?360:0}},n}(e.Evented),ya=function(t){void 0===t&&(t={}),this.options=t,e.bindAll(["_updateEditLink","_updateData","_updateCompact"],this)};ya.prototype.getDefaultPosition=function(){return"bottom-right"},ya.prototype.onAdd=function(e){var t=this.options&&this.options.compact;return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._innerContainer=n.create("div","mapboxgl-ctrl-attrib-inner",this._container),t&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===t&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},ya.prototype.onRemove=function(){n.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},ya.prototype._updateEditLink=function(){var t=this._editLink;t||(t=this._editLink=this._container.querySelector(".mapbox-improve-map"));var n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||e.config.ACCESS_TOKEN}];if(t){var r=n.reduce((function(e,t,r){return t.value&&(e+=t.key+"="+t.value+(r<n.length-1?"&":"")),e}),"?");t.href=e.config.FEEDBACK_URL+"/"+r+(this._map._hash?this._map._hash.getHashString(!0):""),t.rel="noopener nofollow"}},ya.prototype._updateData=function(e){!e||"metadata"!==e.sourceDataType&&"style"!==e.dataType||(this._updateAttributions(),this._updateEditLink())},ya.prototype._updateAttributions=function(){if(this._map.style){var e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map((function(e){return"string"!=typeof e?"":e}))):"string"==typeof this.options.customAttribution&&e.push(this.options.customAttribution)),this._map.style.stylesheet){var t=this._map.style.stylesheet;this.styleOwner=t.owner,this.styleId=t.id}var n=this._map.style.sourceCaches;for(var r in n){var a=n[r];if(a.used){var o=a.getSource();o.attribution&&e.indexOf(o.attribution)<0&&e.push(o.attribution)}}e.sort((function(e,t){return e.length-t.length}));var i=(e=e.filter((function(t,n){for(var r=n+1;r<e.length;r++)if(e[r].indexOf(t)>=0)return!1;return!0}))).join(" | ");i!==this._attribHTML&&(this._attribHTML=i,e.length?(this._innerContainer.innerHTML=i,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},ya.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact")};var ga=function(){e.bindAll(["_updateLogo"],this),e.bindAll(["_updateCompact"],this)};ga.prototype.onAdd=function(e){this._map=e,this._container=n.create("div","mapboxgl-ctrl");var t=n.create("a","mapboxgl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://www.mapbox.com/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},ga.prototype.onRemove=function(){n.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},ga.prototype.getDefaultPosition=function(){return"bottom-left"},ga.prototype._updateLogo=function(e){e&&"metadata"!==e.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},ga.prototype._logoRequired=function(){if(this._map.style){var e=this._map.style.sourceCaches;for(var t in e)if(e[t].getSource().mapbox_logo)return!0;return!1}},ga.prototype._updateCompact=function(){var e=this._container.children;if(e.length){var t=e[0];this._map.getCanvasContainer().offsetWidth<250?t.classList.add("mapboxgl-compact"):t.classList.remove("mapboxgl-compact")}};var ba=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};ba.prototype.add=function(e){var t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t},ba.prototype.remove=function(e){for(var t=this._currentlyRunning,n=0,r=t?this._queue.concat(t):this._queue;n<r.length;n+=1){var a=r[n];if(a.id===e)return void(a.cancelled=!0)}},ba.prototype.run=function(e){void 0===e&&(e=0);var t=this._currentlyRunning=this._queue;this._queue=[];for(var n=0,r=t;n<r.length;n+=1){var a=r[n];if(!a.cancelled&&(a.callback(e),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},ba.prototype.clear=function(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]};var xa={"FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm"},_a=e.window.HTMLImageElement,wa=e.window.HTMLElement,ka=e.window.ImageBitmap,Ta={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Ea=function(r){function a(t){var n=this;if(null!=(t=e.extend({},Ta,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var a=new wr(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies);if(r.call(this,a,t),this._interactive=t.interactive,this._maxTileCacheSize=t.maxTileCacheSize,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._renderTaskQueue=new ba,this._controls=[],this._mapId=e.uniqueId(),this._locale=e.extend({},xa,t.locale),this._requestManager=new e.RequestManager(t.transformRequest,t.accessToken),"string"==typeof t.container){if(this._container=e.window.document.getElementById(t.container),!this._container)throw new Error("Container '"+t.container+"' not found.")}else{if(!(t.container instanceof wa))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(t.maxBounds&&this.setMaxBounds(t.maxBounds),e.bindAll(["_onWindowOnline","_onWindowResize","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return n._update(!1)})),this.on("moveend",(function(){return n._update(!1)})),this.on("zoom",(function(){return n._update(!0)})),void 0!==e.window&&(e.window.addEventListener("online",this._onWindowOnline,!1),e.window.addEventListener("resize",this._onWindowResize,!1)),this.handlers=new va(this,t),this._hash=t.hash&&new Tr("string"==typeof t.hash&&t.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.extend({},t.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=t.localIdeographFontFamily,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new ya({customAttribution:t.customAttribution})),this.addControl(new ga,t.logoPosition),this.on("style.load",(function(){n.transform.unmodified&&n.jumpTo(n.style.stylesheet)})),this.on("data",(function(t){n._update("style"===t.dataType),n.fire(new e.Event(t.dataType+"data",t))})),this.on("dataloading",(function(t){n.fire(new e.Event(t.dataType+"dataloading",t))}))}r&&(a.__proto__=r),(a.prototype=Object.create(r&&r.prototype)).constructor=a;var o={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return a.prototype._getMapId=function(){return this._mapId},a.prototype.addControl=function(t,n){if(void 0===n&&t.getDefaultPosition&&(n=t.getDefaultPosition()),void 0===n&&(n="top-right"),!t||!t.onAdd)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var r=t.onAdd(this);this._controls.push(t);var a=this._controlPositions[n];return-1!==n.indexOf("bottom")?a.insertBefore(r,a.firstChild):a.appendChild(r),this},a.prototype.removeControl=function(t){if(!t||!t.onRemove)return this.fire(new e.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var n=this._controls.indexOf(t);return n>-1&&this._controls.splice(n,1),t.onRemove(this),this},a.prototype.resize=function(t){var n=this._containerDimensions(),r=n[0],a=n[1];this._resizeCanvas(r,a),this.transform.resize(r,a),this.painter.resize(r,a);var o=!this._moving;return o&&(this.stop(),this.fire(new e.Event("movestart",t)).fire(new e.Event("move",t))),this.fire(new e.Event("resize",t)),o&&this.fire(new e.Event("moveend",t)),this},a.prototype.getBounds=function(){return this.transform.getBounds()},a.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},a.prototype.setMaxBounds=function(t){return this.transform.setMaxBounds(e.LngLatBounds.convert(t)),this._update()},a.prototype.setMinZoom=function(e){if((e=null==e?-2:e)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()<e&&this.setZoom(e),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")},a.prototype.getMinZoom=function(){return this.transform.minZoom},a.prototype.setMaxZoom=function(e){if((e=null==e?22:e)>=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e&&this.setZoom(e),this;throw new Error("maxZoom must be greater than the current minZoom")},a.prototype.getMaxZoom=function(){return this.transform.maxZoom},a.prototype.setMinPitch=function(e){if((e=null==e?0:e)<0)throw new Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this._update(),this.getPitch()<e&&this.setPitch(e),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")},a.prototype.getMinPitch=function(){return this.transform.minPitch},a.prototype.setMaxPitch=function(e){if((e=null==e?60:e)>60)throw new Error("maxPitch must be less than or equal to 60");if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e&&this.setPitch(e),this;throw new Error("maxPitch must be greater than the current minPitch")},a.prototype.getMaxPitch=function(){return this.transform.maxPitch},a.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},a.prototype.setRenderWorldCopies=function(e){return this.transform.renderWorldCopies=e,this._update()},a.prototype.project=function(t){return this.transform.locationPoint(e.LngLat.convert(t))},a.prototype.unproject=function(t){return this.transform.pointLocation(e.Point.convert(t))},a.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},a.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},a.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},a.prototype._createDelegatedListener=function(e,t,n){var r,a=this;if("mouseenter"===e||"mouseover"===e){var o=!1;return{layer:t,listener:n,delegates:{mousemove:function(r){var i=a.getLayer(t)?a.queryRenderedFeatures(r.point,{layers:[t]}):[];i.length?o||(o=!0,n.call(a,new Dr(e,a,r.originalEvent,{features:i}))):o=!1},mouseout:function(){o=!1}}}}if("mouseleave"===e||"mouseout"===e){var i=!1;return{layer:t,listener:n,delegates:{mousemove:function(r){(a.getLayer(t)?a.queryRenderedFeatures(r.point,{layers:[t]}):[]).length?i=!0:i&&(i=!1,n.call(a,new Dr(e,a,r.originalEvent)))},mouseout:function(t){i&&(i=!1,n.call(a,new Dr(e,a,t.originalEvent)))}}}}return{layer:t,listener:n,delegates:(r={},r[e]=function(e){var r=a.getLayer(t)?a.queryRenderedFeatures(e.point,{layers:[t]}):[];r.length&&(e.features=r,n.call(a,e),delete e.features)},r)}},a.prototype.on=function(e,t,n){if(void 0===n)return r.prototype.on.call(this,e,t);var a=this._createDelegatedListener(e,t,n);for(var o in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(a),a.delegates)this.on(o,a.delegates[o]);return this},a.prototype.once=function(e,t,n){if(void 0===n)return r.prototype.once.call(this,e,t);var a=this._createDelegatedListener(e,t,n);for(var o in a.delegates)this.once(o,a.delegates[o]);return this},a.prototype.off=function(e,t,n){var a=this;return void 0===n?r.prototype.off.call(this,e,t):(this._delegatedListeners&&this._delegatedListeners[e]&&function(r){for(var o=r[e],i=0;i<o.length;i++){var l=o[i];if(l.layer===t&&l.listener===n){for(var s in l.delegates)a.off(s,l.delegates[s]);return o.splice(i,1),a}}}(this._delegatedListeners),this)},a.prototype.queryRenderedFeatures=function(t,n){if(!this.style)return[];var r;if(void 0!==n||void 0===t||t instanceof e.Point||Array.isArray(t)||(n=t,t=void 0),n=n||{},(t=t||[[0,0],[this.transform.width,this.transform.height]])instanceof e.Point||"number"==typeof t[0])r=[e.Point.convert(t)];else{var a=e.Point.convert(t[0]),o=e.Point.convert(t[1]);r=[a,new e.Point(o.x,a.y),o,new e.Point(a.x,o.y),a]}return this.style.queryRenderedFeatures(r,n,this.transform)},a.prototype.querySourceFeatures=function(e,t){return this.style.querySourceFeatures(e,t)},a.prototype.setStyle=function(t,n){return!1!==(n=e.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},n)).diff&&n.localIdeographFontFamily===this._localIdeographFontFamily&&this.style&&t?(this._diffStyle(t,n),this):(this._localIdeographFontFamily=n.localIdeographFontFamily,this._updateStyle(t,n))},a.prototype._getUIString=function(e){var t=this._locale[e];if(null==t)throw new Error("Missing UI string '"+e+"'");return t},a.prototype._updateStyle=function(e,t){return this.style&&(this.style.setEventedParent(null),this.style._remove()),e?(this.style=new Ut(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e):this.style.loadJSON(e),this):(delete this.style,this)},a.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new Ut(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},a.prototype._diffStyle=function(t,n){var r=this;if("string"==typeof t){var a=this._requestManager.normalizeStyleURL(t),o=this._requestManager.transformRequest(a,e.ResourceType.Style);e.getJSON(o,(function(t,a){t?r.fire(new e.ErrorEvent(t)):a&&r._updateDiff(a,n)}))}else"object"==typeof t&&this._updateDiff(t,n)},a.prototype._updateDiff=function(t,n){try{this.style.setState(t)&&this._update(!0)}catch(r){e.warnOnce("Unable to perform style diff: "+(r.message||r.error||r)+". Rebuilding the style from scratch."),this._updateStyle(t,n)}},a.prototype.getStyle=function(){if(this.style)return this.style.serialize()},a.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():e.warnOnce("There is no style added to the map.")},a.prototype.addSource=function(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)},a.prototype.isSourceLoaded=function(t){var n=this.style&&this.style.sourceCaches[t];if(void 0!==n)return n.loaded();this.fire(new e.ErrorEvent(new Error("There is no source with ID '"+t+"'")))},a.prototype.areTilesLoaded=function(){var e=this.style&&this.style.sourceCaches;for(var t in e){var n=e[t]._tiles;for(var r in n){var a=n[r];if("loaded"!==a.state&&"errored"!==a.state)return!1}}return!0},a.prototype.addSourceType=function(e,t,n){return this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,n)},a.prototype.removeSource=function(e){return this.style.removeSource(e),this._update(!0)},a.prototype.getSource=function(e){return this.style.getSource(e)},a.prototype.addImage=function(t,n,r){void 0===r&&(r={});var a=r.pixelRatio;void 0===a&&(a=1);var o=r.sdf;void 0===o&&(o=!1);var i=r.stretchX,l=r.stretchY,s=r.content;if(this._lazyInitEmptyStyle(),n instanceof _a||ka&&n instanceof ka){var u=e.browser.getImageData(n);this.style.addImage(t,{data:new e.RGBAImage({width:u.width,height:u.height},u.data),pixelRatio:a,stretchX:i,stretchY:l,content:s,sdf:o,version:0})}else{if(void 0===n.width||void 0===n.height)return this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));var c=n;this.style.addImage(t,{data:new e.RGBAImage({width:n.width,height:n.height},new Uint8Array(n.data)),pixelRatio:a,stretchX:i,stretchY:l,content:s,sdf:o,version:0,userImage:c}),c.onAdd&&c.onAdd(this,t)}},a.prototype.updateImage=function(t,n){var r=this.style.getImage(t);if(!r)return this.fire(new e.ErrorEvent(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));var a=n instanceof _a||ka&&n instanceof ka?e.browser.getImageData(n):n,o=a.width,i=a.height,l=a.data;return void 0===o||void 0===i?this.fire(new e.ErrorEvent(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`"))):o!==r.data.width||i!==r.data.height?this.fire(new e.ErrorEvent(new Error("The width and height of the updated image must be that same as the previous version of the image"))):(r.data.replace(l,!(n instanceof _a||ka&&n instanceof ka)),void this.style.updateImage(t,r))},a.prototype.hasImage=function(t){return t?!!this.style.getImage(t):(this.fire(new e.ErrorEvent(new Error("Missing required image id"))),!1)},a.prototype.removeImage=function(e){this.style.removeImage(e)},a.prototype.loadImage=function(t,n){e.getImage(this._requestManager.transformRequest(t,e.ResourceType.Image),n)},a.prototype.listImages=function(){return this.style.listImages()},a.prototype.addLayer=function(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)},a.prototype.moveLayer=function(e,t){return this.style.moveLayer(e,t),this._update(!0)},a.prototype.removeLayer=function(e){return this.style.removeLayer(e),this._update(!0)},a.prototype.getLayer=function(e){return this.style.getLayer(e)},a.prototype.setLayerZoomRange=function(e,t,n){return this.style.setLayerZoomRange(e,t,n),this._update(!0)},a.prototype.setFilter=function(e,t,n){return void 0===n&&(n={}),this.style.setFilter(e,t,n),this._update(!0)},a.prototype.getFilter=function(e){return this.style.getFilter(e)},a.prototype.setPaintProperty=function(e,t,n,r){return void 0===r&&(r={}),this.style.setPaintProperty(e,t,n,r),this._update(!0)},a.prototype.getPaintProperty=function(e,t){return this.style.getPaintProperty(e,t)},a.prototype.setLayoutProperty=function(e,t,n,r){return void 0===r&&(r={}),this.style.setLayoutProperty(e,t,n,r),this._update(!0)},a.prototype.getLayoutProperty=function(e,t){return this.style.getLayoutProperty(e,t)},a.prototype.setLight=function(e,t){return void 0===t&&(t={}),this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)},a.prototype.getLight=function(){return this.style.getLight()},a.prototype.setFeatureState=function(e,t){return this.style.setFeatureState(e,t),this._update()},a.prototype.removeFeatureState=function(e,t){return this.style.removeFeatureState(e,t),this._update()},a.prototype.getFeatureState=function(e){return this.style.getFeatureState(e)},a.prototype.getContainer=function(){return this._container},a.prototype.getCanvasContainer=function(){return this._canvasContainer},a.prototype.getCanvas=function(){return this._canvas},a.prototype._containerDimensions=function(){var e=0,t=0;return this._container&&(e=this._container.clientWidth||400,t=this._container.clientHeight||300),[e,t]},a.prototype._detectMissingCSS=function(){"rgb(250, 128, 114)"!==e.window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")&&e.warnOnce("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")},a.prototype._setupContainer=function(){var e=this._container;e.classList.add("mapboxgl-map"),(this._missingCSSCanary=n.create("div","mapboxgl-canary",e)).style.visibility="hidden",this._detectMissingCSS();var t=this._canvasContainer=n.create("div","mapboxgl-canvas-container",e);this._interactive&&t.classList.add("mapboxgl-interactive"),this._canvas=n.create("canvas","mapboxgl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map");var r=this._containerDimensions();this._resizeCanvas(r[0],r[1]);var a=this._controlContainer=n.create("div","mapboxgl-control-container",e),o=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach((function(e){o[e]=n.create("div","mapboxgl-ctrl-"+e,a)}))},a.prototype._resizeCanvas=function(t,n){var r=e.browser.devicePixelRatio||1;this._canvas.width=r*t,this._canvas.height=r*n,this._canvas.style.width=t+"px",this._canvas.style.height=n+"px"},a.prototype._setupPainter=function(){var n=e.extend({},t.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),r=this._canvas.getContext("webgl",n)||this._canvas.getContext("experimental-webgl",n);r?(this.painter=new gr(r,this.transform),e.webpSupported.testSupport(r)):this.fire(new e.ErrorEvent(new Error("Failed to initialize WebGL")))},a.prototype._contextLost=function(t){t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.Event("webglcontextlost",{originalEvent:t}))},a.prototype._contextRestored=function(t){this._setupPainter(),this.resize(),this._update(),this.fire(new e.Event("webglcontextrestored",{originalEvent:t}))},a.prototype.loaded=function(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()},a.prototype._update=function(e){return this.style?(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint(),this):this},a.prototype._requestRenderFrame=function(e){return this._update(),this._renderTaskQueue.add(e)},a.prototype._cancelRenderFrame=function(e){this._renderTaskQueue.remove(e)},a.prototype._render=function(t){var n,r=this,a=0,o=this.painter.context.extTimerQuery;if(this.listens("gpu-timing-frame")&&(n=o.createQueryEXT(),o.beginQueryEXT(o.TIME_ELAPSED_EXT,n),a=e.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),!this._removed){var i=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;var l=this.transform.zoom,s=e.browser.now();this.style.zoomHistory.update(l,s);var u=new e.EvaluationParameters(l,{now:s,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),c=u.crossFadingFactor();1===c&&c===this._crossFadingFactor||(i=!0,this._crossFadingFactor=c),this.style.update(u)}if(this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer")}),this.fire(new e.Event("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,this.fire(new e.Event("load"))),this.style&&(this.style.hasTransitions()||i)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),this.listens("gpu-timing-frame")){var f=e.browser.now()-a;o.endQueryEXT(o.TIME_ELAPSED_EXT,n),setTimeout((function(){var t=o.getQueryObjectEXT(n,o.QUERY_RESULT_EXT)/1e6;o.deleteQueryEXT(n),r.fire(new e.Event("gpu-timing-frame",{cpuTime:f,gpuTime:t}))}),50)}if(this.listens("gpu-timing-layer")){var p=this.painter.collectGpuTimers();setTimeout((function(){var t=r.painter.queryGpuTimers(p);r.fire(new e.Event("gpu-timing-layer",{layerTimes:t}))}),50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new e.Event("idle"))),this}},a.prototype.remove=function(){this._hash&&this._hash.remove();for(var t=0,n=this._controls;t<n.length;t+=1)n[t].onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==e.window&&(e.window.removeEventListener("resize",this._onWindowResize,!1),e.window.removeEventListener("online",this._onWindowOnline,!1));var r=this.painter.context.gl.getExtension("WEBGL_lose_context");r&&r.loseContext(),Oa(this._canvasContainer),Oa(this._controlContainer),Oa(this._missingCSSCanary),this._container.classList.remove("mapboxgl-map"),this._removed=!0,this.fire(new e.Event("remove"))},a.prototype.triggerRepaint=function(){var t=this;this.style&&!this._frame&&(this._frame=e.browser.frame((function(e){t._frame=null,t._render(e)})))},a.prototype._onWindowOnline=function(){this._update()},a.prototype._onWindowResize=function(e){this._trackResize&&this.resize({originalEvent:e})._update()},o.showTileBoundaries.get=function(){return!!this._showTileBoundaries},o.showTileBoundaries.set=function(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())},o.showPadding.get=function(){return!!this._showPadding},o.showPadding.set=function(e){this._showPadding!==e&&(this._showPadding=e,this._update())},o.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},o.showCollisionBoxes.set=function(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())},o.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},o.showOverdrawInspector.set=function(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())},o.repaint.get=function(){return!!this._repaint},o.repaint.set=function(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())},o.vertices.get=function(){return!!this._vertices},o.vertices.set=function(e){this._vertices=e,this._update()},a.prototype._setCacheLimits=function(t,n){e.setCacheLimits(t,n)},o.version.get=function(){return e.version},Object.defineProperties(a.prototype,o),a}(ma);function Oa(e){e.parentNode&&e.parentNode.removeChild(e)}var Ma={showCompass:!0,showZoom:!0,visualizePitch:!1},Sa=function(t){var r=this;this.options=e.extend({},Ma,t),this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",(function(e){return e.preventDefault()})),this.options.showZoom&&(e.bindAll(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",(function(e){return r._map.zoomIn({},{originalEvent:e})})),n.create("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden",!0),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",(function(e){return r._map.zoomOut({},{originalEvent:e})})),n.create("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden",!0)),this.options.showCompass&&(e.bindAll(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",(function(e){r.options.visualizePitch?r._map.resetNorthPitch({},{originalEvent:e}):r._map.resetNorth({},{originalEvent:e})})),this._compassIcon=n.create("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden",!0))};Sa.prototype._updateZoomButtons=function(){var e=this._map.getZoom();this._zoomInButton.disabled=e===this._map.getMaxZoom(),this._zoomOutButton.disabled=e===this._map.getMinZoom()},Sa.prototype._rotateCompassArrow=function(){var e=this.options.visualizePitch?"scale("+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+") rotateX("+this._map.transform.pitch+"deg) rotateZ("+this._map.transform.angle*(180/Math.PI)+"deg)":"rotate("+this._map.transform.angle*(180/Math.PI)+"deg)";this._compassIcon.style.transform=e},Sa.prototype.onAdd=function(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ca(this._map,this._compass,this.options.visualizePitch)),this._container},Sa.prototype.onRemove=function(){n.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Sa.prototype._createButton=function(e,t){var r=n.create("button",e,this._container);return r.type="button",r.addEventListener("click",t),r},Sa.prototype._setButtonTitle=function(e,t){var n=this._map._getUIString("NavigationControl."+t);e.title=n,e.setAttribute("aria-label",n)};var Ca=function(t,r,a){void 0===a&&(a=!1),this._clickTolerance=10,this.element=r,this.mouseRotate=new qr({clickTolerance:t.dragRotate._mouseRotate._clickTolerance}),this.map=t,a&&(this.mousePitch=new $r({clickTolerance:t.dragRotate._mousePitch._clickTolerance})),e.bindAll(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),n.addEventListener(r,"mousedown",this.mousedown),n.addEventListener(r,"touchstart",this.touchstart,{passive:!1}),n.addEventListener(r,"touchmove",this.touchmove),n.addEventListener(r,"touchend",this.touchend),n.addEventListener(r,"touchcancel",this.reset)};function Aa(t,n,r){if(t=new e.LngLat(t.lng,t.lat),n){var a=new e.LngLat(t.lng-360,t.lat),o=new e.LngLat(t.lng+360,t.lat),i=r.locationPoint(t).distSqr(n);r.locationPoint(a).distSqr(n)<i?t=a:r.locationPoint(o).distSqr(n)<i&&(t=o)}for(;Math.abs(t.lng-r.center.lng)>180;){var l=r.locationPoint(t);if(l.x>=0&&l.y>=0&&l.x<=r.width&&l.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}Ca.prototype.down=function(e,t){this.mouseRotate.mousedown(e,t),this.mousePitch&&this.mousePitch.mousedown(e,t),n.disableDrag()},Ca.prototype.move=function(e,t){var n=this.map,r=this.mouseRotate.mousemoveWindow(e,t);if(r&&r.bearingDelta&&n.setBearing(n.getBearing()+r.bearingDelta),this.mousePitch){var a=this.mousePitch.mousemoveWindow(e,t);a&&a.pitchDelta&&n.setPitch(n.getPitch()+a.pitchDelta)}},Ca.prototype.off=function(){var e=this.element;n.removeEventListener(e,"mousedown",this.mousedown),n.removeEventListener(e,"touchstart",this.touchstart,{passive:!1}),n.removeEventListener(e,"touchmove",this.touchmove),n.removeEventListener(e,"touchend",this.touchend),n.removeEventListener(e,"touchcancel",this.reset),this.offTemp()},Ca.prototype.offTemp=function(){n.enableDrag(),n.removeEventListener(e.window,"mousemove",this.mousemove),n.removeEventListener(e.window,"mouseup",this.mouseup)},Ca.prototype.mousedown=function(t){this.down(e.extend({},t,{ctrlKey:!0,preventDefault:function(){return t.preventDefault()}}),n.mousePos(this.element,t)),n.addEventListener(e.window,"mousemove",this.mousemove),n.addEventListener(e.window,"mouseup",this.mouseup)},Ca.prototype.mousemove=function(e){this.move(e,n.mousePos(this.element,e))},Ca.prototype.mouseup=function(e){this.mouseRotate.mouseupWindow(e),this.mousePitch&&this.mousePitch.mouseupWindow(e),this.offTemp()},Ca.prototype.touchstart=function(e){1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=n.touchPos(this.element,e.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return e.preventDefault()}},this._startPos))},Ca.prototype.touchmove=function(e){1!==e.targetTouches.length?this.reset():(this._lastPos=n.touchPos(this.element,e.targetTouches)[0],this.move({preventDefault:function(){return e.preventDefault()}},this._lastPos))},Ca.prototype.touchend=function(e){0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()},Ca.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var Pa={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function La(e,t,n){var r=e.classList;for(var a in Pa)r.remove("mapboxgl-"+n+"-anchor-"+a);r.add("mapboxgl-"+n+"-anchor-"+t)}var Da,ja=function(t){function r(r,a){var o=this;if(t.call(this),(r instanceof e.window.HTMLElement||a)&&(r=e.extend({element:r},a)),e.bindAll(["_update","_onMove","_onUp","_addDragHandler","_onMapClick","_onKeyPress"],this),this._anchor=r&&r.anchor||"center",this._color=r&&r.color||"#3FB1CE",this._draggable=r&&r.draggable||!1,this._state="inactive",this._rotation=r&&r.rotation||0,this._rotationAlignment=r&&r.rotationAlignment||"auto",this._pitchAlignment=r&&r.pitchAlignment&&"auto"!==r.pitchAlignment?r.pitchAlignment:this._rotationAlignment,r&&r.element)this._element=r.element,this._offset=e.Point.convert(r&&r.offset||[0,0]);else{this._defaultMarker=!0,this._element=n.create("div"),this._element.setAttribute("aria-label","Map marker");var i=n.createNS("http://www.w3.org/2000/svg","svg");i.setAttributeNS(null,"display","block"),i.setAttributeNS(null,"height","41px"),i.setAttributeNS(null,"width","27px"),i.setAttributeNS(null,"viewBox","0 0 27 41");var l=n.createNS("http://www.w3.org/2000/svg","g");l.setAttributeNS(null,"stroke","none"),l.setAttributeNS(null,"stroke-width","1"),l.setAttributeNS(null,"fill","none"),l.setAttributeNS(null,"fill-rule","evenodd");var s=n.createNS("http://www.w3.org/2000/svg","g");s.setAttributeNS(null,"fill-rule","nonzero");var u=n.createNS("http://www.w3.org/2000/svg","g");u.setAttributeNS(null,"transform","translate(3.0, 29.0)"),u.setAttributeNS(null,"fill","#000000");for(var c=0,f=[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}];c<f.length;c+=1){var p=f[c],d=n.createNS("http://www.w3.org/2000/svg","ellipse");d.setAttributeNS(null,"opacity","0.04"),d.setAttributeNS(null,"cx","10.5"),d.setAttributeNS(null,"cy","5.80029008"),d.setAttributeNS(null,"rx",p.rx),d.setAttributeNS(null,"ry",p.ry),u.appendChild(d)}var h=n.createNS("http://www.w3.org/2000/svg","g");h.setAttributeNS(null,"fill",this._color);var v=n.createNS("http://www.w3.org/2000/svg","path");v.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),h.appendChild(v);var m=n.createNS("http://www.w3.org/2000/svg","g");m.setAttributeNS(null,"opacity","0.25"),m.setAttributeNS(null,"fill","#000000");var y=n.createNS("http://www.w3.org/2000/svg","path");y.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),m.appendChild(y);var g=n.createNS("http://www.w3.org/2000/svg","g");g.setAttributeNS(null,"transform","translate(6.0, 7.0)"),g.setAttributeNS(null,"fill","#FFFFFF");var b=n.createNS("http://www.w3.org/2000/svg","g");b.setAttributeNS(null,"transform","translate(8.0, 8.0)");var x=n.createNS("http://www.w3.org/2000/svg","circle");x.setAttributeNS(null,"fill","#000000"),x.setAttributeNS(null,"opacity","0.25"),x.setAttributeNS(null,"cx","5.5"),x.setAttributeNS(null,"cy","5.5"),x.setAttributeNS(null,"r","5.4999962");var _=n.createNS("http://www.w3.org/2000/svg","circle");_.setAttributeNS(null,"fill","#FFFFFF"),_.setAttributeNS(null,"cx","5.5"),_.setAttributeNS(null,"cy","5.5"),_.setAttributeNS(null,"r","5.4999962"),b.appendChild(x),b.appendChild(_),s.appendChild(u),s.appendChild(h),s.appendChild(m),s.appendChild(g),s.appendChild(b),i.appendChild(s),this._element.appendChild(i),this._offset=e.Point.convert(r&&r.offset||[0,-14])}this._element.classList.add("mapboxgl-marker"),this._element.addEventListener("dragstart",(function(e){e.preventDefault()})),this._element.addEventListener("mousedown",(function(e){e.preventDefault()})),this._element.addEventListener("focus",(function(){var e=o._map.getContainer();e.scrollTop=0,e.scrollLeft=0})),La(this._element,this._anchor,"marker"),this._popup=null}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.addTo=function(e){return this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this},r.prototype.remove=function(){return this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),n.remove(this._element),this._popup&&this._popup.remove(),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this},r.prototype.getElement=function(){return this._element},r.prototype.setPopup=function(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){var t=Math.sqrt(Math.pow(13.5,2)/2);e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[t,-1*(24.6+t)],"bottom-right":[-t,-1*(24.6+t)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this},r.prototype._onKeyPress=function(e){var t=e.code,n=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==n&&13!==n||this.togglePopup()},r.prototype._onMapClick=function(e){var t=e.originalEvent.target,n=this._element;this._popup&&(t===n||n.contains(t))&&this.togglePopup()},r.prototype.getPopup=function(){return this._popup},r.prototype.togglePopup=function(){var e=this._popup;return e?(e.isOpen()?e.remove():e.addTo(this._map),this):this},r.prototype._update=function(e){if(this._map){this._map.transform.renderWorldCopies&&(this._lngLat=Aa(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var t="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?t="rotateZ("+this._rotation+"deg)":"map"===this._rotationAlignment&&(t="rotateZ("+(this._rotation-this._map.getBearing())+"deg)");var r="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?r="rotateX(0deg)":"map"===this._pitchAlignment&&(r="rotateX("+this._map.getPitch()+"deg)"),e&&"moveend"!==e.type||(this._pos=this._pos.round()),n.setTransform(this._element,Pa[this._anchor]+" translate("+this._pos.x+"px, "+this._pos.y+"px) "+r+" "+t)}},r.prototype.getOffset=function(){return this._offset},r.prototype.setOffset=function(t){return this._offset=e.Point.convert(t),this._update(),this},r.prototype._onMove=function(t){this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.Event("dragstart"))),this.fire(new e.Event("drag"))},r.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new e.Event("dragend")),this._state="inactive"},r.prototype._addDragHandler=function(e){this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos).add(this._offset),this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},r.prototype.setDraggable=function(e){return this._draggable=!!e,this._map&&(e?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},r.prototype.isDraggable=function(){return this._draggable},r.prototype.setRotation=function(e){return this._rotation=e||0,this._update(),this},r.prototype.getRotation=function(){return this._rotation},r.prototype.setRotationAlignment=function(e){return this._rotationAlignment=e||"auto",this._update(),this},r.prototype.getRotationAlignment=function(){return this._rotationAlignment},r.prototype.setPitchAlignment=function(e){return this._pitchAlignment=e&&"auto"!==e?e:this._rotationAlignment,this._update(),this},r.prototype.getPitchAlignment=function(){return this._pitchAlignment},r}(e.Evented),Ia={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ra=0,za=!1,Na=function(t){function r(n){t.call(this),this.options=e.extend({},Ia,n),e.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.onAdd=function(t){var r;return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),r=this._setupUI,void 0!==Da?r(Da):void 0!==e.window.navigator.permissions?e.window.navigator.permissions.query({name:"geolocation"}).then((function(e){r(Da="denied"!==e.state)})):r(Da=!!e.window.navigator.geolocation),this._container},r.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),n.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Ra=0,za=!1},r.prototype._isOutOfMapMaxBounds=function(e){var t=this._map.getMaxBounds(),n=e.coords;return t&&(n.longitude<t.getWest()||n.longitude>t.getEast()||n.latitude<t.getSouth()||n.latitude>t.getNorth())},r.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},r.prototype._onSuccess=function(t){if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.Event("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("geolocate",t)),this._finish()}},r.prototype._updateCamera=function(t){var n=new e.LngLat(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,a=this._map.getBearing(),o=e.extend({bearing:a},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),o,{geolocateSource:!0})},r.prototype._updateMarker=function(t){if(t){var n=new e.LngLat(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},r.prototype._updateCircleRadius=function(){var e=this._map._container.clientHeight/2,t=this._map.unproject([0,e]),n=this._map.unproject([1,e]),r=t.distanceTo(n),a=Math.ceil(2*this._accuracy/r);this._circleElement.style.width=a+"px",this._circleElement.style.height=a+"px"},r.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},r.prototype._onError=function(t){if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&za)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new e.Event("error",t)),this._finish()}},r.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},r.prototype._setupUI=function(t){var r=this;if(this._container.addEventListener("contextmenu",(function(e){return e.preventDefault()})),this._geolocateButton=n.create("button","mapboxgl-ctrl-geolocate",this._container),n.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===t){e.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var a=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=a,this._geolocateButton.setAttribute("aria-label",a)}else{var o=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=o,this._geolocateButton.setAttribute("aria-label",o)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=n.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new ja(this._dotElement),this._circleElement=n.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new ja({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(t){t.geolocateSource||"ACTIVE_LOCK"!==r._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(r._watchState="BACKGROUND",r._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),r._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),r.fire(new e.Event("trackuserlocationend")))}))},r.prototype.trigger=function(){if(!this._setup)return e.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Ra--,za=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new e.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var t;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Ra>1?(t={maximumAge:6e5,timeout:0},za=!0):(t=this.options.positionOptions,za=!1),this._geolocationWatchID=e.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,t)}}else e.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},r.prototype._clearWatch=function(){e.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},r}(e.Evented),Fa={maxWidth:100,unit:"metric"},Ba=function(t){this.options=e.extend({},Fa,t),e.bindAll(["_onMove","setUnit"],this)};function Va(e,t,n){var r=n&&n.maxWidth||100,a=e._container.clientHeight/2,o=e.unproject([0,a]),i=e.unproject([r,a]),l=o.distanceTo(i);if(n&&"imperial"===n.unit){var s=3.2808*l;s>5280?Ha(t,r,s/5280,e._getUIString("ScaleControl.Miles")):Ha(t,r,s,e._getUIString("ScaleControl.Feet"))}else n&&"nautical"===n.unit?Ha(t,r,l/1852,e._getUIString("ScaleControl.NauticalMiles")):l>=1e3?Ha(t,r,l/1e3,e._getUIString("ScaleControl.Kilometers")):Ha(t,r,l,e._getUIString("ScaleControl.Meters"))}function Ha(e,t,n,r){var a,o,i,l=(a=n,(o=Math.pow(10,(""+Math.floor(a)).length-1))*(i=(i=a/o)>=10?10:i>=5?5:i>=3?3:i>=2?2:i>=1?1:function(e){var t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(i)));e.style.width=t*(l/n)+"px",e.innerHTML=l+"&nbsp;"+r}Ba.prototype.getDefaultPosition=function(){return"bottom-left"},Ba.prototype._onMove=function(){Va(this._map,this._container,this.options)},Ba.prototype.onAdd=function(e){return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ba.prototype.onRemove=function(){n.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ba.prototype.setUnit=function(e){this.options.unit=e,Va(this._map,this._container,this.options)};var Ua=function(t){this._fullscreen=!1,t&&t.container&&(t.container instanceof e.window.HTMLElement?this._container=t.container:e.warnOnce("Full screen control 'container' must be a DOM element.")),e.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in e.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in e.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in e.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in e.window.document&&(this._fullscreenchange="MSFullscreenChange")};Ua.prototype.onAdd=function(t){return this._map=t,this._container||(this._container=this._map.getContainer()),this._controlContainer=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",e.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Ua.prototype.onRemove=function(){n.remove(this._controlContainer),this._map=null,e.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Ua.prototype._checkFullscreenSupport=function(){return!!(e.window.document.fullscreenEnabled||e.window.document.mozFullScreenEnabled||e.window.document.msFullscreenEnabled||e.window.document.webkitFullscreenEnabled)},Ua.prototype._setupUI=function(){var t=this._fullscreenButton=n.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);n.create("span","mapboxgl-ctrl-icon",t).setAttribute("aria-hidden",!0),t.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),e.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Ua.prototype._updateTitle=function(){var e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e},Ua.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Ua.prototype._isFullscreen=function(){return this._fullscreen},Ua.prototype._changeIcon=function(){(e.window.document.fullscreenElement||e.window.document.mozFullScreenElement||e.window.document.webkitFullscreenElement||e.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Ua.prototype._onClickFullscreen=function(){this._isFullscreen()?e.window.document.exitFullscreen?e.window.document.exitFullscreen():e.window.document.mozCancelFullScreen?e.window.document.mozCancelFullScreen():e.window.document.msExitFullscreen?e.window.document.msExitFullscreen():e.window.document.webkitCancelFullScreen&&e.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Wa={closeButton:!0,closeOnClick:!0,className:"",maxWidth:"240px"},qa=function(t){function r(n){t.call(this),this.options=e.extend(Object.create(Wa),n),e.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return t&&(r.__proto__=t),(r.prototype=Object.create(t&&t.prototype)).constructor=r,r.prototype.addTo=function(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new e.Event("open")),this},r.prototype.isOpen=function(){return!!this._map},r.prototype.remove=function(){return this._content&&n.remove(this._content),this._container&&(n.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new e.Event("close")),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(t){return this._lngLat=e.LngLat.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},r.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},r.prototype.getElement=function(){return this._container},r.prototype.setText=function(t){return this.setDOMContent(e.window.document.createTextNode(t))},r.prototype.setHTML=function(t){var n,r=e.window.document.createDocumentFragment(),a=e.window.document.createElement("body");for(a.innerHTML=t;n=a.firstChild;)r.appendChild(n);return this.setDOMContent(r)},r.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},r.prototype.setMaxWidth=function(e){return this.options.maxWidth=e,this._update(),this},r.prototype.setDOMContent=function(e){return this._createContent(),this._content.appendChild(e),this._update(),this},r.prototype.addClassName=function(e){this._container&&this._container.classList.add(e)},r.prototype.removeClassName=function(e){this._container&&this._container.classList.remove(e)},r.prototype.toggleClassName=function(e){if(this._container)return this._container.classList.toggle(e)},r.prototype._createContent=function(){this._content&&n.remove(this._content),this._content=n.create("div","mapboxgl-popup-content",this._container),this.options.closeButton&&(this._closeButton=n.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="&#215;",this._closeButton.addEventListener("click",this._onClose))},r.prototype._onMouseUp=function(e){this._update(e.point)},r.prototype._onMouseMove=function(e){this._update(e.point)},r.prototype._onDrag=function(e){this._update(e.point)},r.prototype._update=function(t){var r=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=n.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=n.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(e){return r._container.classList.add(e)})),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Aa(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||t)){var a=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat),o=this.options.anchor,i=function t(n){if(n){if("number"==typeof n){var r=Math.round(Math.sqrt(.5*Math.pow(n,2)));return{center:new e.Point(0,0),top:new e.Point(0,n),"top-left":new e.Point(r,r),"top-right":new e.Point(-r,r),bottom:new e.Point(0,-n),"bottom-left":new e.Point(r,-r),"bottom-right":new e.Point(-r,-r),left:new e.Point(n,0),right:new e.Point(-n,0)}}if(n instanceof e.Point||Array.isArray(n)){var a=e.Point.convert(n);return{center:a,top:a,"top-left":a,"top-right":a,bottom:a,"bottom-left":a,"bottom-right":a,left:a,right:a}}return{center:e.Point.convert(n.center||[0,0]),top:e.Point.convert(n.top||[0,0]),"top-left":e.Point.convert(n["top-left"]||[0,0]),"top-right":e.Point.convert(n["top-right"]||[0,0]),bottom:e.Point.convert(n.bottom||[0,0]),"bottom-left":e.Point.convert(n["bottom-left"]||[0,0]),"bottom-right":e.Point.convert(n["bottom-right"]||[0,0]),left:e.Point.convert(n.left||[0,0]),right:e.Point.convert(n.right||[0,0])}}return t(new e.Point(0,0))}(this.options.offset);if(!o){var l,s=this._container.offsetWidth,u=this._container.offsetHeight;l=a.y+i.bottom.y<u?["top"]:a.y>this._map.transform.height-u?["bottom"]:[],a.x<s/2?l.push("left"):a.x>this._map.transform.width-s/2&&l.push("right"),o=0===l.length?"bottom":l.join("-")}var c=a.add(i[o]).round();n.setTransform(this._container,Pa[o]+" translate("+c.x+"px,"+c.y+"px)"),La(this._container,o,"popup")}},r.prototype._onClose=function(){this.remove()},r}(e.Evented),$a={version:e.version,supported:t,setRTLTextPlugin:e.setRTLTextPlugin,getRTLTextPluginStatus:e.getRTLTextPluginStatus,Map:Ea,NavigationControl:Sa,GeolocateControl:Na,AttributionControl:ya,ScaleControl:Ba,FullscreenControl:Ua,Popup:qa,Marker:ja,Style:Ut,LngLat:e.LngLat,LngLatBounds:e.LngLatBounds,Point:e.Point,MercatorCoordinate:e.MercatorCoordinate,Evented:e.Evented,config:e.config,prewarm:function(){Ne().acquire(je)},clearPrewarmedResources:function(){var e=Re;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(je),Re=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return e.config.ACCESS_TOKEN},set accessToken(t){e.config.ACCESS_TOKEN=t},get baseApiUrl(){return e.config.API_URL},set baseApiUrl(t){e.config.API_URL=t},get workerCount(){return Ie.workerCount},set workerCount(e){Ie.workerCount=e},get maxParallelImageRequests(){return e.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(t){e.config.MAX_PARALLEL_IMAGE_REQUESTS=t},clearStorage:function(t){e.clearTileCache(t)},workerUrl:""};return $a})),n}))},{}],448:[function(e,t,n){"use strict";t.exports=i;var r=e("convex-hull");function a(e,t,n){for(var r=new Array(e),a=0;a<e;++a)r[a]=0,a===t&&(r[a]+=.5),a===n&&(r[a]+=.5);return r}function o(e,t){if(0===t||t===(1<<e+1)-1)return[];for(var n=[],o=[],i=0;i<=e;++i)if(t&1<<i){n.push(a(e,i-1,i-1)),o.push(null);for(var l=0;l<=e;++l)~t&1<<l&&(n.push(a(e,i-1,l-1)),o.push([i,l]))}var s=r(n),u=[];e:for(i=0;i<s.length;++i){var c=s[i],f=[];for(l=0;l<c.length;++l){if(!o[c[l]])continue e;f.push(o[c[l]].slice())}u.push(f)}return u}function i(e){for(var t=1<<e+1,n=new Array(t),r=0;r<t;++r)n[r]=o(e,r);return n}},{"convex-hull":135}],449:[function(e,t,n){var r=e("./normalize"),a=e("gl-mat4/create"),o=e("gl-mat4/clone"),i=e("gl-mat4/determinant"),l=e("gl-mat4/invert"),s=e("gl-mat4/transpose"),u={length:e("gl-vec3/length"),normalize:e("gl-vec3/normalize"),dot:e("gl-vec3/dot"),cross:e("gl-vec3/cross")},c=a(),f=a(),p=[0,0,0,0],d=[[0,0,0],[0,0,0],[0,0,0]],h=[0,0,0];function v(e,t,n){var r=t[0],a=t[1],o=t[2],i=t[3];return e[0]=n[0]*r+n[4]*a+n[8]*o+n[12]*i,e[1]=n[1]*r+n[5]*a+n[9]*o+n[13]*i,e[2]=n[2]*r+n[6]*a+n[10]*o+n[14]*i,e[3]=n[3]*r+n[7]*a+n[11]*o+n[15]*i,e}function m(e,t){e[0][0]=t[0],e[0][1]=t[1],e[0][2]=t[2],e[1][0]=t[4],e[1][1]=t[5],e[1][2]=t[6],e[2][0]=t[8],e[2][1]=t[9],e[2][2]=t[10]}function y(e,t,n,r,a){e[0]=t[0]*r+n[0]*a,e[1]=t[1]*r+n[1]*a,e[2]=t[2]*r+n[2]*a}t.exports=function(e,t,n,a,g,b){if(t||(t=[0,0,0]),n||(n=[0,0,0]),a||(a=[0,0,0]),g||(g=[0,0,0,1]),b||(b=[0,0,0,1]),!r(c,e))return!1;if(o(f,c),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(i(f)<1e-8))return!1;var x=c[3],_=c[7],w=c[11],k=c[12],T=c[13],E=c[14],O=c[15];if(0!==x||0!==_||0!==w){p[0]=x,p[1]=_,p[2]=w,p[3]=O;var M=l(f,f);if(!M)return!1;s(f,f),v(g,p,f)}else g[0]=g[1]=g[2]=0,g[3]=1;if(t[0]=k,t[1]=T,t[2]=E,m(d,c),n[0]=u.length(d[0]),u.normalize(d[0],d[0]),a[0]=u.dot(d[0],d[1]),y(d[1],d[1],d[0],1,-a[0]),n[1]=u.length(d[1]),u.normalize(d[1],d[1]),a[0]/=n[1],a[1]=u.dot(d[0],d[2]),y(d[2],d[2],d[0],1,-a[1]),a[2]=u.dot(d[1],d[2]),y(d[2],d[2],d[1],1,-a[2]),n[2]=u.length(d[2]),u.normalize(d[2],d[2]),a[1]/=n[2],a[2]/=n[2],u.cross(h,d[1],d[2]),u.dot(d[0],h)<0)for(var S=0;S<3;S++)n[S]*=-1,d[S][0]*=-1,d[S][1]*=-1,d[S][2]*=-1;return b[0]=.5*Math.sqrt(Math.max(1+d[0][0]-d[1][1]-d[2][2],0)),b[1]=.5*Math.sqrt(Math.max(1-d[0][0]+d[1][1]-d[2][2],0)),b[2]=.5*Math.sqrt(Math.max(1-d[0][0]-d[1][1]+d[2][2],0)),b[3]=.5*Math.sqrt(Math.max(1+d[0][0]+d[1][1]+d[2][2],0)),d[2][1]>d[1][2]&&(b[0]=-b[0]),d[0][2]>d[2][0]&&(b[1]=-b[1]),d[1][0]>d[0][1]&&(b[2]=-b[2]),!0}},{"./normalize":450,"gl-mat4/clone":272,"gl-mat4/create":273,"gl-mat4/determinant":274,"gl-mat4/invert":278,"gl-mat4/transpose":289,"gl-vec3/cross":339,"gl-vec3/dot":344,"gl-vec3/length":354,"gl-vec3/normalize":361}],450:[function(e,t,n){t.exports=function(e,t){var n=t[15];if(0===n)return!1;for(var r=1/n,a=0;a<16;a++)e[a]=t[a]*r;return!0}},{}],451:[function(e,t,n){var r=e("gl-vec3/lerp"),a=e("mat4-recompose"),o=e("mat4-decompose"),i=e("gl-mat4/determinant"),l=e("quat-slerp"),s=p(),u=p(),c=p();function f(e,t,n,f){if(0===i(t)||0===i(n))return!1;var p=o(t,s.translate,s.scale,s.skew,s.perspective,s.quaternion),d=o(n,u.translate,u.scale,u.skew,u.perspective,u.quaternion);return!(!p||!d)&&(r(c.translate,s.translate,u.translate,f),r(c.skew,s.skew,u.skew,f),r(c.scale,s.scale,u.scale,f),r(c.perspective,s.perspective,u.perspective,f),l(c.quaternion,s.quaternion,u.quaternion,f),a(e,c.translate,c.scale,c.skew,c.perspective,c.quaternion),!0)}function p(){return{translate:d(),scale:d(1),skew:d(),perspective:h(),quaternion:h()}}function d(e){return[e||0,e||0,e||0]}function h(){return[0,0,0,1]}t.exports=f},{"gl-mat4/determinant":274,"gl-vec3/lerp":355,"mat4-decompose":449,"mat4-recompose":452,"quat-slerp":501}],452:[function(e,t,n){var r={identity:e("gl-mat4/identity"),translate:e("gl-mat4/translate"),multiply:e("gl-mat4/multiply"),create:e("gl-mat4/create"),scale:e("gl-mat4/scale"),fromRotationTranslation:e("gl-mat4/fromRotationTranslation")},a=(r.create(),r.create());t.exports=function(e,t,n,o,i,l){return r.identity(e),r.fromRotationTranslation(e,l,t),e[3]=i[0],e[7]=i[1],e[11]=i[2],e[15]=i[3],r.identity(a),0!==o[2]&&(a[9]=o[2],r.multiply(e,e,a)),0!==o[1]&&(a[9]=0,a[8]=o[1],r.multiply(e,e,a)),0!==o[0]&&(a[8]=0,a[4]=o[0],r.multiply(e,e,a)),r.scale(e,e,n),e}},{"gl-mat4/create":273,"gl-mat4/fromRotationTranslation":276,"gl-mat4/identity":277,"gl-mat4/multiply":280,"gl-mat4/scale":287,"gl-mat4/translate":288}],453:[function(e,t,n){"use strict";t.exports=Math.log2||function(e){return Math.log(e)*Math.LOG2E}},{}],454:[function(e,t,n){"use strict";var r=e("binary-search-bounds"),a=e("mat4-interpolate"),o=e("gl-mat4/invert"),i=e("gl-mat4/rotateX"),l=e("gl-mat4/rotateY"),s=e("gl-mat4/rotateZ"),u=e("gl-mat4/lookAt"),c=e("gl-mat4/translate"),f=(e("gl-mat4/scale"),e("gl-vec3/normalize")),p=[0,0,0];function d(e){this._components=e.slice(),this._time=[0],this.prevMatrix=e.slice(),this.nextMatrix=e.slice(),this.computedMatrix=e.slice(),this.computedInverse=e.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}t.exports=m;var h=d.prototype;h.recalcMatrix=function(e){var t=this._time,n=r.le(t,e),i=this.computedMatrix;if(!(n<0)){var l=this._components;if(n===t.length-1)for(var s=16*n,u=0;u<16;++u)i[u]=l[s++];else{var c=t[n+1]-t[n],p=(s=16*n,this.prevMatrix),d=!0;for(u=0;u<16;++u)p[u]=l[s++];var h=this.nextMatrix;for(u=0;u<16;++u)h[u]=l[s++],d=d&&p[u]===h[u];if(c<1e-6||d)for(u=0;u<16;++u)i[u]=p[u];else a(i,p,h,(e-t[n])/c)}var v=this.computedUp;v[0]=i[1],v[1]=i[5],v[2]=i[9],f(v,v);var m=this.computedInverse;o(m,i);var y=this.computedEye,g=m[15];y[0]=m[12]/g,y[1]=m[13]/g,y[2]=m[14]/g;var b=this.computedCenter,x=Math.exp(this.computedRadius[0]);for(u=0;u<3;++u)b[u]=y[u]-i[2+4*u]*x}},h.idle=function(e){if(!(e<this.lastT())){for(var t=this._components,n=t.length-16,r=0;r<16;++r)t.push(t[n++]);this._time.push(e)}},h.flush=function(e){var t=r.gt(this._time,e)-2;t<0||(this._time.splice(0,t),this._components.splice(0,16*t))},h.lastT=function(){return this._time[this._time.length-1]},h.lookAt=function(e,t,n,r){this.recalcMatrix(e),t=t||this.computedEye,n=n||p,r=r||this.computedUp,this.setMatrix(e,u(this.computedMatrix,t,n,r));for(var a=0,o=0;o<3;++o)a+=Math.pow(n[o]-t[o],2);a=Math.log(Math.sqrt(a)),this.computedRadius[0]=a},h.rotate=function(e,t,n,r){this.recalcMatrix(e);var a=this.computedInverse;t&&l(a,a,t),n&&i(a,a,n),r&&s(a,a,r),this.setMatrix(e,o(this.computedMatrix,a))};var v=[0,0,0];function m(e){e=e||{};var t=e.matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return new d(t)}h.pan=function(e,t,n,r){v[0]=-(t||0),v[1]=-(n||0),v[2]=-(r||0),this.recalcMatrix(e);var a=this.computedInverse;c(a,a,v),this.setMatrix(e,o(a,a))},h.translate=function(e,t,n,r){v[0]=t||0,v[1]=n||0,v[2]=r||0,this.recalcMatrix(e);var a=this.computedMatrix;c(a,a,v),this.setMatrix(e,a)},h.setMatrix=function(e,t){if(!(e<this.lastT())){this._time.push(e);for(var n=0;n<16;++n)this._components.push(t[n])}},h.setDistance=function(e,t){this.computedRadius[0]=t},h.setDistanceLimits=function(e,t){var n=this._limits;n[0]=e,n[1]=t},h.getDistanceLimits=function(e){var t=this._limits;return e?(e[0]=t[0],e[1]=t[1],e):t}},{"binary-search-bounds":455,"gl-mat4/invert":278,"gl-mat4/lookAt":279,"gl-mat4/rotateX":284,"gl-mat4/rotateY":285,"gl-mat4/rotateZ":286,"gl-mat4/scale":287,"gl-mat4/translate":288,"gl-vec3/normalize":361,"mat4-interpolate":451}],455:[function(e,t,n){arguments[4][243][0].apply(n,arguments)},{dup:243}],456:[function(e,t,n){"use strict";t.exports=a;var r=e("robust-orientation")[3];function a(e){var t=e.length;if(t<3){for(var n=new Array(t),a=0;a<t;++a)n[a]=a;return 2===t&&e[0][0]===e[1][0]&&e[0][1]===e[1][1]?[0]:n}var o=new Array(t);for(a=0;a<t;++a)o[a]=a;o.sort((function(t,n){var r=e[t][0]-e[n][0];return r||e[t][1]-e[n][1]}));var i=[o[0],o[1]],l=[o[0],o[1]];for(a=2;a<t;++a){var s=o[a],u=e[s],c=i.length;while(c>1&&r(e[i[c-2]],e[i[c-1]],u)<=0)c-=1,i.pop();i.push(s),c=l.length;while(c>1&&r(e[l[c-2]],e[l[c-1]],u)>=0)c-=1,l.pop();l.push(s)}n=new Array(l.length+i.length-2);for(var f=0,p=(a=0,i.length);a<p;++a)n[f++]=i[a];for(var d=l.length-2;d>0;--d)n[f++]=l[d];return n}},{"robust-orientation":520}],457:[function(e,t,n){"use strict";t.exports=a;var r=e("mouse-event");function a(e,t){t||(t=e,e=window);var n=0,a=0,o=0,i={shift:!1,alt:!1,control:!1,meta:!1},l=!1;function s(e){var t=!1;return"altKey"in e&&(t=t||e.altKey!==i.alt,i.alt=!!e.altKey),"shiftKey"in e&&(t=t||e.shiftKey!==i.shift,i.shift=!!e.shiftKey),"ctrlKey"in e&&(t=t||e.ctrlKey!==i.control,i.control=!!e.ctrlKey),"metaKey"in e&&(t=t||e.metaKey!==i.meta,i.meta=!!e.metaKey),t}function u(e,l){var u=r.x(l),c=r.y(l);"buttons"in l&&(e=0|l.buttons),(e!==n||u!==a||c!==o||s(l))&&(n=0|e,a=u||0,o=c||0,t&&t(n,a,o,i))}function c(e){u(0,e)}function f(){(n||a||o||i.shift||i.alt||i.meta||i.control)&&(a=o=0,n=0,i.shift=i.alt=i.control=i.meta=!1,t&&t(0,0,0,i))}function p(e){s(e)&&t&&t(n,a,o,i)}function d(e){0===r.buttons(e)?u(0,e):u(n,e)}function h(e){u(n|r.buttons(e),e)}function v(e){u(n&~r.buttons(e),e)}function m(){l||(l=!0,e.addEventListener("mousemove",d),e.addEventListener("mousedown",h),e.addEventListener("mouseup",v),e.addEventListener("mouseleave",c),e.addEventListener("mouseenter",c),e.addEventListener("mouseout",c),e.addEventListener("mouseover",c),e.addEventListener("blur",f),e.addEventListener("keyup",p),e.addEventListener("keydown",p),e.addEventListener("keypress",p),e!==window&&(window.addEventListener("blur",f),window.addEventListener("keyup",p),window.addEventListener("keydown",p),window.addEventListener("keypress",p)))}function y(){l&&(l=!1,e.removeEventListener("mousemove",d),e.removeEventListener("mousedown",h),e.removeEventListener("mouseup",v),e.removeEventListener("mouseleave",c),e.removeEventListener("mouseenter",c),e.removeEventListener("mouseout",c),e.removeEventListener("mouseover",c),e.removeEventListener("blur",f),e.removeEventListener("keyup",p),e.removeEventListener("keydown",p),e.removeEventListener("keypress",p),e!==window&&(window.removeEventListener("blur",f),window.removeEventListener("keyup",p),window.removeEventListener("keydown",p),window.removeEventListener("keypress",p)))}m();var g={element:e};return Object.defineProperties(g,{enabled:{get:function(){return l},set:function(e){e?m():y()},enumerable:!0},buttons:{get:function(){return n},enumerable:!0},x:{get:function(){return a},enumerable:!0},y:{get:function(){return o},enumerable:!0},mods:{get:function(){return i},enumerable:!0}}),g}},{"mouse-event":459}],458:[function(e,t,n){var r={left:0,top:0};function a(e,t,n){t=t||e.currentTarget||e.srcElement,Array.isArray(n)||(n=[0,0]);var r=e.clientX||0,a=e.clientY||0,i=o(t);return n[0]=r-i.left,n[1]=a-i.top,n}function o(e){return e===window||e===document||e===document.body?r:e.getBoundingClientRect()}t.exports=a},{}],459:[function(e,t,n){"use strict";function r(e){if("object"===typeof e){if("buttons"in e)return e.buttons;if("which"in e){var t=e.which;if(2===t)return 4;if(3===t)return 2;if(t>0)return 1<<t-1}else if("button"in e){t=e.button;if(1===t)return 4;if(2===t)return 2;if(t>=0)return 1<<t}}return 0}function a(e){return e.target||e.srcElement||window}function o(e){if("object"===typeof e){if("offsetX"in e)return e.offsetX;var t=a(e),n=t.getBoundingClientRect();return e.clientX-n.left}return 0}function i(e){if("object"===typeof e){if("offsetY"in e)return e.offsetY;var t=a(e),n=t.getBoundingClientRect();return e.clientY-n.top}return 0}n.buttons=r,n.element=a,n.x=o,n.y=i},{}],460:[function(e,t,n){"use strict";var r=e("to-px");function a(e,t,n){"function"===typeof e&&(n=!!t,t=e,e=window);var a=r("ex",e),o=function(e){n&&e.preventDefault();var r=e.deltaX||0,o=e.deltaY||0,i=e.deltaZ||0,l=e.deltaMode,s=1;switch(l){case 1:s=a;break;case 2:s=window.innerHeight;break}if(r*=s,o*=s,i*=s,r||o||i)return t(r,o,i,e)};return e.addEventListener("wheel",o),o}t.exports=a},{"to-px":550}],461:[function(e,t,n){"use strict";var r=e("typedarray-pool");function a(e){return"a"+e}function o(e){return"d"+e}function i(e,t){return"c"+e+"_"+t}function l(e){return"s"+e}function s(e,t){return"t"+e+"_"+t}function u(e){return"o"+e}function c(e){return"x"+e}function f(e){return"p"+e}function p(e,t){return"d"+e+"_"+t}function d(e){return"i"+e}function h(e,t){return"u"+e+"_"+t}function v(e){return"b"+e}function m(e){return"y"+e}function y(e){return"e"+e}function g(e){return"v"+e}t.exports=M;var b="V",x="P",_="N",w="Q",k="X",T="T";function E(e,t,n){for(var r=0,a=0;a<e;++a)t&1<<a&&(r|=1<<n[a]);return r}function O(e,t,n,O,M,S){var C=S.length,A=M.length;if(A<2)throw new Error("ndarray-extract-contour: Dimension must be at least 2");for(var P="extractContour"+M.join("_"),L=[],D=[],j=[],I=0;I<C;++I)j.push(a(I));for(I=0;I<O;++I)j.push(c(I));for(I=0;I<A;++I)D.push(l(I)+"="+a(0)+".shape["+I+"]|0");for(I=0;I<C;++I){D.push(o(I)+"="+a(I)+".data",u(I)+"="+a(I)+".offset|0");for(var R=0;R<A;++R)D.push(s(I,R)+"="+a(I)+".stride["+R+"]|0")}for(I=0;I<C;++I){D.push(f(I)+"="+u(I)),D.push(i(I,0));for(R=1;R<1<<A;++R){for(var z=[],N=0;N<A;++N)R&1<<N&&z.push("-"+s(I,N));D.push(p(I,R)+"=("+z.join("")+")|0"),D.push(i(I,R)+"=0")}}for(I=0;I<C;++I)for(R=0;R<A;++R){var F=[s(I,M[R])];R>0&&F.push(s(I,M[R-1])+"*"+l(M[R-1])),D.push(h(I,M[R])+"=("+F.join("-")+")|0")}for(I=0;I<A;++I)D.push(d(I)+"=0");D.push(_+"=0");var B=["2"];for(I=A-2;I>=0;--I)B.push(l(M[I]));D.push(w+"=("+B.join("*")+")|0",x+"=mallocUint32("+w+")",b+"=mallocUint32("+w+")",k+"=0"),D.push(v(0)+"=0");for(R=1;R<1<<A;++R){var V=[],H=[];for(N=0;N<A;++N)R&1<<N&&(0===H.length?V.push("1"):V.unshift(H.join("*"))),H.push(l(M[N]));var U="";V[0].indexOf(l(M[A-2]))<0&&(U="-");var W=E(A,R,M);D.push(y(W)+"=(-"+V.join("-")+")|0",m(W)+"=("+U+V.join("-")+")|0",v(W)+"=0")}function q(e,t){L.push("for(",d(M[e]),"=",t,";",d(M[e]),"<",l(M[e]),";","++",d(M[e]),"){")}function $(e){for(var t=0;t<C;++t)L.push(f(t),"+=",h(t,M[e]),";");L.push("}")}function G(e){for(var t=e-1;t>=0;--t)q(t,0);var n=[];for(t=0;t<C;++t)S[t]?n.push(o(t)+".get("+f(t)+")"):n.push(o(t)+"["+f(t)+"]");for(t=0;t<O;++t)n.push(c(t));L.push(x,"[",k,"++]=phase(",n.join(),");");for(t=0;t<e;++t)$(t);for(var r=0;r<C;++r)L.push(f(r),"+=",h(r,M[e]),";")}function Y(e){for(var t=0;t<C;++t)S[t]?L.push(i(t,0),"=",o(t),".get(",f(t),");"):L.push(i(t,0),"=",o(t),"[",f(t),"];");var n=[];for(t=0;t<C;++t)n.push(i(t,0));for(t=0;t<O;++t)n.push(c(t));L.push(v(0),"=",x,"[",k,"]=phase(",n.join(),");");for(var r=1;r<1<<A;++r)L.push(v(r),"=",x,"[",k,"+",y(r),"];");var a=[];for(r=1;r<1<<A;++r)a.push("("+v(0)+"!=="+v(r)+")");L.push("if(",a.join("||"),"){");var l=[];for(t=0;t<A;++t)l.push(d(t));for(t=0;t<C;++t){l.push(i(t,0));for(r=1;r<1<<A;++r)S[t]?L.push(i(t,r),"=",o(t),".get(",f(t),"+",p(t,r),");"):L.push(i(t,r),"=",o(t),"[",f(t),"+",p(t,r),"];"),l.push(i(t,r))}for(t=0;t<1<<A;++t)l.push(v(t));for(t=0;t<O;++t)l.push(c(t));L.push("vertex(",l.join(),");",g(0),"=",b,"[",k,"]=",_,"++;");var s=(1<<A)-1,u=v(s);for(r=0;r<A;++r)if(0===(e&~(1<<r))){for(var h=s^1<<r,m=v(h),w=[],T=h;T>0;T=T-1&h)w.push(b+"["+k+"+"+y(T)+"]");w.push(g(0));for(T=0;T<C;++T)1&r?w.push(i(T,s),i(T,h)):w.push(i(T,h),i(T,s));1&r?w.push(u,m):w.push(m,u);for(T=0;T<O;++T)w.push(c(T));L.push("if(",u,"!==",m,"){","face(",w.join(),")}")}L.push("}",k,"+=1;")}function K(){for(var e=1;e<1<<A;++e)L.push(T,"=",y(e),";",y(e),"=",m(e),";",m(e),"=",T,";")}function X(e,t){if(e<0)Y(t);else{G(e),L.push("if(",l(M[e]),">0){",d(M[e]),"=1;"),X(e-1,t|1<<M[e]);for(var n=0;n<C;++n)L.push(f(n),"+=",h(n,M[e]),";");e===A-1&&(L.push(k,"=0;"),K()),q(e,2),X(e-1,t),e===A-1&&(L.push("if(",d(M[A-1]),"&1){",k,"=0;}"),K()),$(e),L.push("}")}}D.push(g(0)+"=0",T+"=0"),X(A-1,0),L.push("freeUint32(",b,");freeUint32(",x,");");var Z=["'use strict';","function ",P,"(",j.join(),"){","var ",D.join(),";",L.join(""),"}","return ",P].join(""),J=new Function("vertex","face","phase","mallocUint32","freeUint32",Z);return J(e,t,n,r.mallocUint32,r.freeUint32)}function M(e){function t(e){throw new Error("ndarray-extract-contour: "+e)}"object"!==typeof e&&t("Must specify arguments");var n=e.order;Array.isArray(n)||t("Must specify order");var r=e.arrayArguments||1;r<1&&t("Must have at least one array argument");var a=e.scalarArguments||0;a<0&&t("Scalar arg count must be > 0"),"function"!==typeof e.vertex&&t("Must specify vertex creation function"),"function"!==typeof e.cell&&t("Must specify cell creation function"),"function"!==typeof e.phase&&t("Must specify phase function");for(var o=e.getters||[],i=new Array(r),l=0;l<r;++l)o.indexOf(l)>=0?i[l]=!0:i[l]=!1;return O(e.vertex,e.cell,e.phase,a,n,i)}},{"typedarray-pool":567}],462:[function(e,t,n){"use strict";t.exports=p;var r=e("dup"),a=e("cwise-compiler"),o={},i={},l={body:"",args:[],thisVars:[],localVars:[]},s=a({args:["array","array","array"],pre:l,post:l,body:{args:[{name:"out",lvalue:!0,rvalue:!1,count:1},{name:"left",lvalue:!1,rvalue:!0,count:1},{name:"right",lvalue:!1,rvalue:!0,count:1}],body:"out=0.5*(left-right)",thisVars:[],localVars:[]},funcName:"cdiff"}),u=a({args:["array"],pre:l,post:l,body:{args:[{name:"out",lvalue:!0,rvalue:!1,count:1}],body:"out=0",thisVars:[],localVars:[]},funcName:"zero"});function c(e){if(e in o)return o[e];for(var t=[],n=0;n<e;++n)t.push("out",n,"s=0.5*(inp",n,"l-inp",n,"r);");var i=["array"],s=["junk"];for(n=0;n<e;++n){i.push("array"),s.push("out"+n+"s");var u=r(e);u[n]=-1,i.push({array:0,offset:u.slice()}),u[n]=1,i.push({array:0,offset:u.slice()}),s.push("inp"+n+"l","inp"+n+"r")}return o[e]=a({args:i,pre:l,post:l,body:{body:t.join(""),args:s.map((function(e){return{name:e,lvalue:0===e.indexOf("out"),rvalue:0===e.indexOf("inp"),count:"junk"!==e|0}})),thisVars:[],localVars:[]},funcName:"fdTemplate"+e})}function f(e){var t=e.join(),n=i[t];if(n)return n;var r=e.length,a=["function gradient(dst,src){var s=src.shape.slice();"];function l(t){for(var n=r-t.length,o=[],i=[],l=[],s=0;s<r;++s)t.indexOf(s+1)>=0?l.push("0"):t.indexOf(-(s+1))>=0?l.push("s["+s+"]-1"):(l.push("-1"),o.push("1"),i.push("s["+s+"]-2"));var u=".lo("+o.join()+").hi("+i.join()+")";if(0===o.length&&(u=""),n>0){a.push("if(1");for(s=0;s<r;++s)t.indexOf(s+1)>=0||t.indexOf(-(s+1))>=0||a.push("&&s[",s,"]>2");a.push("){grad",n,"(src.pick(",l.join(),")",u);for(s=0;s<r;++s)t.indexOf(s+1)>=0||t.indexOf(-(s+1))>=0||a.push(",dst.pick(",l.join(),",",s,")",u);a.push(");")}for(s=0;s<t.length;++s){var c=Math.abs(t[s])-1,f="dst.pick("+l.join()+","+c+")"+u;switch(e[c]){case"clamp":var p=l.slice(),d=l.slice();t[s]<0?p[c]="s["+c+"]-2":d[c]="1",0===n?a.push("if(s[",c,"]>1){dst.set(",l.join(),",",c,",0.5*(src.get(",p.join(),")-src.get(",d.join(),")))}else{dst.set(",l.join(),",",c,",0)};"):a.push("if(s[",c,"]>1){diff(",f,",src.pick(",p.join(),")",u,",src.pick(",d.join(),")",u,");}else{zero(",f,");};");break;case"mirror":0===n?a.push("dst.set(",l.join(),",",c,",0);"):a.push("zero(",f,");");break;case"wrap":var h=l.slice(),v=l.slice();t[s]<0?(h[c]="s["+c+"]-2",v[c]="0"):(h[c]="s["+c+"]-1",v[c]="1"),0===n?a.push("if(s[",c,"]>2){dst.set(",l.join(),",",c,",0.5*(src.get(",h.join(),")-src.get(",v.join(),")))}else{dst.set(",l.join(),",",c,",0)};"):a.push("if(s[",c,"]>2){diff(",f,",src.pick(",h.join(),")",u,",src.pick(",v.join(),")",u,");}else{zero(",f,");};");break;default:throw new Error("ndarray-gradient: Invalid boundary condition")}}n>0&&a.push("};")}for(var f=0;f<1<<r;++f){for(var p=[],d=0;d<r;++d)f&1<<d&&p.push(d+1);for(var h=0;h<1<<p.length;++h){var v=p.slice();for(d=0;d<p.length;++d)h&1<<d&&(v[d]=-v[d]);l(v)}}a.push("return dst;};return gradient");var m=["diff","zero"],y=[s,u];for(f=1;f<=r;++f)m.push("grad"+f),y.push(c(f));m.push(a.join(""));var g=Function.apply(void 0,m);n=g.apply(void 0,y);return o[t]=n,n}function p(e,t,n){if(Array.isArray(n)){if(n.length!==t.dimension)throw new Error("ndarray-gradient: invalid boundary conditions")}else n=r(t.dimension,"string"===typeof n?n:"clamp");if(e.dimension!==t.dimension+1)throw new Error("ndarray-gradient: output dimension must be +1 input dimension");if(e.shape[t.dimension]!==t.dimension)throw new Error("ndarray-gradient: output shape must match input shape");for(var a=0;a<t.dimension;++a)if(e.shape[a]!==t.shape[a])throw new Error("ndarray-gradient: shape mismatch");if(0===t.size)return e;if(t.dimension<=0)return e.set(0),e;var o=f(n);return o(e,t)}},{"cwise-compiler":151,dup:176}],463:[function(e,t,n){"use strict";function r(e,t){var n=Math.floor(t),r=t-n,a=0<=n&&n<e.shape[0],o=0<=n+1&&n+1<e.shape[0],i=a?+e.get(n):0,l=o?+e.get(n+1):0;return(1-r)*i+r*l}function a(e,t,n){var r=Math.floor(t),a=t-r,o=0<=r&&r<e.shape[0],i=0<=r+1&&r+1<e.shape[0],l=Math.floor(n),s=n-l,u=0<=l&&l<e.shape[1],c=0<=l+1&&l+1<e.shape[1],f=o&&u?e.get(r,l):0,p=o&&c?e.get(r,l+1):0,d=i&&u?e.get(r+1,l):0,h=i&&c?e.get(r+1,l+1):0;return(1-s)*((1-a)*f+a*d)+s*((1-a)*p+a*h)}function o(e,t,n,r){var a=Math.floor(t),o=t-a,i=0<=a&&a<e.shape[0],l=0<=a+1&&a+1<e.shape[0],s=Math.floor(n),u=n-s,c=0<=s&&s<e.shape[1],f=0<=s+1&&s+1<e.shape[1],p=Math.floor(r),d=r-p,h=0<=p&&p<e.shape[2],v=0<=p+1&&p+1<e.shape[2],m=i&&c&&h?e.get(a,s,p):0,y=i&&f&&h?e.get(a,s+1,p):0,g=l&&c&&h?e.get(a+1,s,p):0,b=l&&f&&h?e.get(a+1,s+1,p):0,x=i&&c&&v?e.get(a,s,p+1):0,_=i&&f&&v?e.get(a,s+1,p+1):0,w=l&&c&&v?e.get(a+1,s,p+1):0,k=l&&f&&v?e.get(a+1,s+1,p+1):0;return(1-d)*((1-u)*((1-o)*m+o*g)+u*((1-o)*y+o*b))+d*((1-u)*((1-o)*x+o*w)+u*((1-o)*_+o*k))}function i(e){var t,n,r=0|e.shape.length,a=new Array(r),o=new Array(r),i=new Array(r),l=new Array(r);for(t=0;t<r;++t)n=+arguments[t+1],a[t]=Math.floor(n),o[t]=n-a[t],i[t]=0<=a[t]&&a[t]<e.shape[t],l[t]=0<=a[t]+1&&a[t]+1<e.shape[t];var s,u,c,f=0;e:for(t=0;t<1<<r;++t){for(u=1,c=e.offset,s=0;s<r;++s)if(t&1<<s){if(!l[s])continue e;u*=o[s],c+=e.stride[s]*(a[s]+1)}else{if(!i[s])continue e;u*=1-o[s],c+=e.stride[s]*a[s]}f+=u*e.data[c]}return f}function l(e,t,n,l){switch(e.shape.length){case 0:return 0;case 1:return r(e,t);case 2:return a(e,t,n);case 3:return o(e,t,n,l);default:return i.apply(void 0,arguments)}}t.exports=l,t.exports.d1=r,t.exports.d2=a,t.exports.d3=o},{}],464:[function(e,t,n){"use strict";var r=e("cwise-compiler"),a={body:"",args:[],thisVars:[],localVars:[]};function o(e){if(!e)return a;for(var t=0;t<e.args.length;++t){var n=e.args[t];e.args[t]=0===t?{name:n,lvalue:!0,rvalue:!!e.rvalue,count:e.count||1}:{name:n,lvalue:!1,rvalue:!0,count:1}}return e.thisVars||(e.thisVars=[]),e.localVars||(e.localVars=[]),e}function i(e){return r({args:e.args,pre:o(e.pre),body:o(e.body),post:o(e.proc),funcName:e.funcName})}function l(e){for(var t=[],n=0;n<e.args.length;++n)t.push("a"+n);var r=new Function("P",["return function ",e.funcName,"_ndarrayops(",t.join(","),") {P(",t.join(","),");return a0}"].join(""));return r(i(e))}var s={add:"+",sub:"-",mul:"*",div:"/",mod:"%",band:"&",bor:"|",bxor:"^",lshift:"<<",rshift:">>",rrshift:">>>"};(function(){for(var e in s){var t=s[e];n[e]=l({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+t+"c"},funcName:e}),n[e+"eq"]=l({args:["array","array"],body:{args:["a","b"],body:"a"+t+"=b"},rvalue:!0,funcName:e+"eq"}),n[e+"s"]=l({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+t+"s"},funcName:e+"s"}),n[e+"seq"]=l({args:["array","scalar"],body:{args:["a","s"],body:"a"+t+"=s"},rvalue:!0,funcName:e+"seq"})}})();var u={not:"!",bnot:"~",neg:"-",recip:"1.0/"};(function(){for(var e in u){var t=u[e];n[e]=l({args:["array","array"],body:{args:["a","b"],body:"a="+t+"b"},funcName:e}),n[e+"eq"]=l({args:["array"],body:{args:["a"],body:"a="+t+"a"},rvalue:!0,count:2,funcName:e+"eq"})}})();var c={and:"&&",or:"||",eq:"===",neq:"!==",lt:"<",gt:">",leq:"<=",geq:">="};(function(){for(var e in c){var t=c[e];n[e]=l({args:["array","array","array"],body:{args:["a","b","c"],body:"a=b"+t+"c"},funcName:e}),n[e+"s"]=l({args:["array","array","scalar"],body:{args:["a","b","s"],body:"a=b"+t+"s"},funcName:e+"s"}),n[e+"eq"]=l({args:["array","array"],body:{args:["a","b"],body:"a=a"+t+"b"},rvalue:!0,count:2,funcName:e+"eq"}),n[e+"seq"]=l({args:["array","scalar"],body:{args:["a","s"],body:"a=a"+t+"s"},rvalue:!0,count:2,funcName:e+"seq"})}})();var f=["abs","acos","asin","atan","ceil","cos","exp","floor","log","round","sin","sqrt","tan"];(function(){for(var e=0;e<f.length;++e){var t=f[e];n[t]=l({args:["array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b)",thisVars:["this_f"]},funcName:t}),n[t+"eq"]=l({args:["array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a"],body:"a=this_f(a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"eq"})}})();var p=["max","min","atan2","pow"];(function(){for(var e=0;e<p.length;++e){var t=p[e];n[t]=l({args:["array","array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(b,c)",thisVars:["this_f"]},funcName:t}),n[t+"s"]=l({args:["array","array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(b,c)",thisVars:["this_f"]},funcName:t+"s"}),n[t+"eq"]=l({args:["array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(a,b)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"eq"}),n[t+"seq"]=l({args:["array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(a,b)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"seq"})}})();var d=["atan2","pow"];(function(){for(var e=0;e<d.length;++e){var t=d[e];n[t+"op"]=l({args:["array","array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(c,b)",thisVars:["this_f"]},funcName:t+"op"}),n[t+"ops"]=l({args:["array","array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b","c"],body:"a=this_f(c,b)",thisVars:["this_f"]},funcName:t+"ops"}),n[t+"opeq"]=l({args:["array","array"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b,a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"opeq"}),n[t+"opseq"]=l({args:["array","scalar"],pre:{args:[],body:"this_f=Math."+t,thisVars:["this_f"]},body:{args:["a","b"],body:"a=this_f(b,a)",thisVars:["this_f"]},rvalue:!0,count:2,funcName:t+"opseq"})}})(),n.any=r({args:["array"],pre:a,body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"if(a){return true}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return false"},funcName:"any"}),n.all=r({args:["array"],pre:a,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1}],body:"if(!x){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"all"}),n.sum=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"this_s+=a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"sum"}),n.prod=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=1"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:1}],body:"this_s*=a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"prod"}),n.norm2squared=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:2}],body:"this_s+=a*a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm2squared"}),n.norm2=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:2}],body:"this_s+=a*a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return Math.sqrt(this_s)"},funcName:"norm2"}),n.norminf=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:4}],body:"if(-a>this_s){this_s=-a}else if(a>this_s){this_s=a}",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norminf"}),n.norm1=r({args:["array"],pre:{args:[],localVars:[],thisVars:["this_s"],body:"this_s=0"},body:{args:[{name:"a",lvalue:!1,rvalue:!0,count:3}],body:"this_s+=a<0?-a:a",localVars:[],thisVars:["this_s"]},post:{args:[],localVars:[],thisVars:["this_s"],body:"return this_s"},funcName:"norm1"}),n.sup=r({args:["array"],pre:{body:"this_h=-Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_>this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),n.inf=r({args:["array"],pre:{body:"this_h=Infinity",args:[],thisVars:["this_h"],localVars:[]},body:{body:"if(_inline_1_arg0_<this_h)this_h=_inline_1_arg0_",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_h"],localVars:[]},post:{body:"return this_h",args:[],thisVars:["this_h"],localVars:[]}}),n.argmin=r({args:["index","array","shape"],pre:{body:"{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_i","this_v"],localVars:[]},body:{body:"{if(_inline_1_arg1_<this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),n.argmax=r({args:["index","array","shape"],pre:{body:"{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}",args:[{name:"_inline_0_arg0_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg1_",lvalue:!1,rvalue:!1,count:0},{name:"_inline_0_arg2_",lvalue:!1,rvalue:!0,count:1}],thisVars:["this_i","this_v"],localVars:[]},body:{body:"{if(_inline_1_arg1_>this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k<_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:2}],thisVars:["this_i","this_v"],localVars:["_inline_1_k"]},post:{body:"{return this_i}",args:[],thisVars:["this_i"],localVars:[]}}),n.random=l({args:["array"],pre:{args:[],body:"this_f=Math.random",thisVars:["this_f"]},body:{args:["a"],body:"a=this_f()",thisVars:["this_f"]},funcName:"random"}),n.assign=l({args:["array","array"],body:{args:["a","b"],body:"a=b"},funcName:"assign"}),n.assigns=l({args:["array","scalar"],body:{args:["a","b"],body:"a=b"},funcName:"assigns"}),n.equals=r({args:["array","array"],pre:a,body:{args:[{name:"x",lvalue:!1,rvalue:!0,count:1},{name:"y",lvalue:!1,rvalue:!0,count:1}],body:"if(x!==y){return false}",localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:"return true"},funcName:"equals"})},{"cwise-compiler":151}],465:[function(e,t,n){"use strict";var r=e("ndarray"),a=e("./doConvert.js");t.exports=function(e,t){var n=[],o=e,i=1;while(Array.isArray(o))n.push(o.length),i*=o.length,o=o[0];return 0===n.length?r():(t||(t=r(new Float64Array(i),n)),a(t,e),t)}},{"./doConvert.js":466,ndarray:469}],466:[function(e,t,n){t.exports=e("cwise-compiler")({args:["array","scalar","index"],pre:{body:"{}",args:[],thisVars:[],localVars:[]},body:{body:"{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i<_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}",args:[{name:"_inline_1_arg0_",lvalue:!0,rvalue:!1,count:1},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg2_",lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:["_inline_1_i","_inline_1_v"]},post:{body:"{}",args:[],thisVars:[],localVars:[]},funcName:"convert",blockSize:64})},{"cwise-compiler":151}],467:[function(e,t,n){"use strict";var r=e("typedarray-pool"),a=32;function o(e){switch(e){case"uint8":return[r.mallocUint8,r.freeUint8];case"uint16":return[r.mallocUint16,r.freeUint16];case"uint32":return[r.mallocUint32,r.freeUint32];case"int8":return[r.mallocInt8,r.freeInt8];case"int16":return[r.mallocInt16,r.freeInt16];case"int32":return[r.mallocInt32,r.freeInt32];case"float32":return[r.mallocFloat,r.freeFloat];case"float64":return[r.mallocDouble,r.freeDouble];default:return null}}function i(e){for(var t=[],n=0;n<e;++n)t.push("s"+n);for(n=0;n<e;++n)t.push("n"+n);for(n=1;n<e;++n)t.push("d"+n);for(n=1;n<e;++n)t.push("e"+n);for(n=1;n<e;++n)t.push("f"+n);return t}function l(e,t){var n=["'use strict'"],r=["ndarrayInsertionSort",e.join("d"),t].join(""),a=["left","right","data","offset"].concat(i(e.length)),l=o(t),s=["i,j,cptr,ptr=left*s0+offset"];if(e.length>1){for(var u=[],c=1;c<e.length;++c)s.push("i"+c),u.push("n"+c);l?s.push("scratch=malloc("+u.join("*")+")"):s.push("scratch=new Array("+u.join("*")+")"),s.push("dptr","sptr","a","b")}else s.push("scratch");function f(e){return"generic"===t?["data.get(",e,")"].join(""):["data[",e,"]"].join("")}function p(e,n){return"generic"===t?["data.set(",e,",",n,")"].join(""):["data[",e,"]=",n].join("")}if(n.push(["function ",r,"(",a.join(","),"){var ",s.join(",")].join(""),"for(i=left+1;i<=right;++i){","j=i;ptr+=s0","cptr=ptr"),e.length>1){n.push("dptr=0;sptr=ptr");for(c=e.length-1;c>=0;--c){var d=e[c];0!==d&&n.push(["for(i",d,"=0;i",d,"<n",d,";++i",d,"){"].join(""))}n.push("scratch[dptr++]=",f("sptr"));for(c=0;c<e.length;++c){d=e[c];0!==d&&n.push("sptr+=d"+d,"}")}n.push("__g:while(j--\x3eleft){","dptr=0","sptr=cptr-s0");for(c=1;c<e.length;++c)1===c&&n.push("__l:"),n.push(["for(i",c,"=0;i",c,"<n",c,";++i",c,"){"].join(""));n.push(["a=",f("sptr"),"\nb=scratch[dptr]\nif(a<b){break __g}\nif(a>b){break __l}"].join(""));for(c=e.length-1;c>=1;--c)n.push("sptr+=e"+c,"dptr+=f"+c,"}");n.push("dptr=cptr;sptr=cptr-s0");for(c=e.length-1;c>=0;--c){d=e[c];0!==d&&n.push(["for(i",d,"=0;i",d,"<n",d,";++i",d,"){"].join(""))}n.push(p("dptr",f("sptr")));for(c=0;c<e.length;++c){d=e[c];0!==d&&n.push(["dptr+=d",d,";sptr+=d",d].join(""),"}")}n.push("cptr-=s0\n}"),n.push("dptr=cptr;sptr=0");for(c=e.length-1;c>=0;--c){d=e[c];0!==d&&n.push(["for(i",d,"=0;i",d,"<n",d,";++i",d,"){"].join(""))}n.push(p("dptr","scratch[sptr++]"));for(c=0;c<e.length;++c){d=e[c];0!==d&&n.push("dptr+=d"+d,"}")}}else n.push("scratch="+f("ptr"),"while((j--\x3eleft)&&("+f("cptr-s0")+">scratch)){",p("cptr",f("cptr-s0")),"cptr-=s0","}",p("cptr","scratch"));if(n.push("}"),e.length>1&&l&&n.push("free(scratch)"),n.push("} return "+r),l){var h=new Function("malloc","free",n.join("\n"));return h(l[0],l[1])}h=new Function(n.join("\n"));return h()}function s(e,t,n){var r=["'use strict'"],l=["ndarrayQuickSort",e.join("d"),t].join(""),s=["left","right","data","offset"].concat(i(e.length)),u=o(t),c=0;r.push(["function ",l,"(",s.join(","),"){"].join(""));var f=["sixth=((right-left+1)/6)|0","index1=left+sixth","index5=right-sixth","index3=(left+right)>>1","index2=index3-sixth","index4=index3+sixth","el1=index1","el2=index2","el3=index3","el4=index4","el5=index5","less=left+1","great=right-1","pivots_are_equal=true","tmp","tmp0","x","y","z","k","ptr0","ptr1","ptr2","comp_pivot1=0","comp_pivot2=0","comp=0"];if(e.length>1){for(var p=[],d=1;d<e.length;++d)p.push("n"+d),f.push("i"+d);for(d=0;d<8;++d)f.push("b_ptr"+d);f.push("ptr3","ptr4","ptr5","ptr6","ptr7","pivot_ptr","ptr_shift","elementSize="+p.join("*")),u?f.push("pivot1=malloc(elementSize)","pivot2=malloc(elementSize)"):f.push("pivot1=new Array(elementSize),pivot2=new Array(elementSize)")}else f.push("pivot1","pivot2");function h(e){return["(offset+",e,"*s0)"].join("")}function v(e){return"generic"===t?["data.get(",e,")"].join(""):["data[",e,"]"].join("")}function m(e,n){return"generic"===t?["data.set(",e,",",n,")"].join(""):["data[",e,"]=",n].join("")}function y(t,n,a){if(1===t.length)r.push("ptr0="+h(t[0]));else for(var o=0;o<t.length;++o)r.push(["b_ptr",o,"=s0*",t[o]].join(""));n&&r.push("pivot_ptr=0"),r.push("ptr_shift=offset");for(o=e.length-1;o>=0;--o){var i=e[o];0!==i&&r.push(["for(i",i,"=0;i",i,"<n",i,";++i",i,"){"].join(""))}if(t.length>1)for(o=0;o<t.length;++o)r.push(["ptr",o,"=b_ptr",o,"+ptr_shift"].join(""));r.push(a),n&&r.push("++pivot_ptr");for(o=0;o<e.length;++o){i=e[o];0!==i&&(t.length>1?r.push("ptr_shift+=d"+i):r.push("ptr0+=d"+i),r.push("}"))}}function g(t,n,a,o){if(1===n.length)r.push("ptr0="+h(n[0]));else{for(var i=0;i<n.length;++i)r.push(["b_ptr",i,"=s0*",n[i]].join(""));r.push("ptr_shift=offset")}a&&r.push("pivot_ptr=0"),t&&r.push(t+":");for(i=1;i<e.length;++i)r.push(["for(i",i,"=0;i",i,"<n",i,";++i",i,"){"].join(""));if(n.length>1)for(i=0;i<n.length;++i)r.push(["ptr",i,"=b_ptr",i,"+ptr_shift"].join(""));r.push(o);for(i=e.length-1;i>=1;--i)a&&r.push("pivot_ptr+=f"+i),n.length>1?r.push("ptr_shift+=e"+i):r.push("ptr0+=e"+i),r.push("}")}function b(){e.length>1&&u&&r.push("free(pivot1)","free(pivot2)")}function x(t,n){var a="el"+t,o="el"+n;if(e.length>1){var i="__l"+ ++c;g(i,[a,o],!1,["comp=",v("ptr0"),"-",v("ptr1"),"\n","if(comp>0){tmp0=",a,";",a,"=",o,";",o,"=tmp0;break ",i,"}\n","if(comp<0){break ",i,"}"].join(""))}else r.push(["if(",v(h(a)),">",v(h(o)),"){tmp0=",a,";",a,"=",o,";",o,"=tmp0}"].join(""))}function _(t,n){e.length>1?y([t,n],!1,m("ptr0",v("ptr1"))):r.push(m(h(t),v(h(n))))}function w(t,n,a){if(e.length>1){var o="__l"+ ++c;g(o,[n],!0,[t,"=",v("ptr0"),"-pivot",a,"[pivot_ptr]\n","if(",t,"!==0){break ",o,"}"].join(""))}else r.push([t,"=",v(h(n)),"-pivot",a].join(""))}function k(t,n){e.length>1?y([t,n],!1,["tmp=",v("ptr0"),"\n",m("ptr0",v("ptr1")),"\n",m("ptr1","tmp")].join("")):r.push(["ptr0=",h(t),"\n","ptr1=",h(n),"\n","tmp=",v("ptr0"),"\n",m("ptr0",v("ptr1")),"\n",m("ptr1","tmp")].join(""))}function T(t,n,a){e.length>1?(y([t,n,a],!1,["tmp=",v("ptr0"),"\n",m("ptr0",v("ptr1")),"\n",m("ptr1",v("ptr2")),"\n",m("ptr2","tmp")].join("")),r.push("++"+n,"--"+a)):r.push(["ptr0=",h(t),"\n","ptr1=",h(n),"\n","ptr2=",h(a),"\n","++",n,"\n","--",a,"\n","tmp=",v("ptr0"),"\n",m("ptr0",v("ptr1")),"\n",m("ptr1",v("ptr2")),"\n",m("ptr2","tmp")].join(""))}function E(e,t){k(e,t),r.push("--"+t)}function O(t,n,a){e.length>1?y([t,n],!0,[m("ptr0",v("ptr1")),"\n",m("ptr1",["pivot",a,"[pivot_ptr]"].join(""))].join("")):r.push(m(h(t),v(h(n))),m(h(n),"pivot"+a))}function M(t,n){r.push(["if((",n,"-",t,")<=",a,"){\n","insertionSort(",t,",",n,",data,offset,",i(e.length).join(","),")\n","}else{\n",l,"(",t,",",n,",data,offset,",i(e.length).join(","),")\n","}"].join(""))}function S(t,n,a){e.length>1?(r.push(["__l",++c,":while(true){"].join("")),y([t],!0,["if(",v("ptr0"),"!==pivot",n,"[pivot_ptr]){break __l",c,"}"].join("")),r.push(a,"}")):r.push(["while(",v(h(t)),"===pivot",n,"){",a,"}"].join(""))}if(r.push("var "+f.join(",")),x(1,2),x(4,5),x(1,3),x(2,3),x(1,4),x(3,4),x(2,5),x(2,3),x(4,5),e.length>1?y(["el1","el2","el3","el4","el5","index1","index3","index5"],!0,["pivot1[pivot_ptr]=",v("ptr1"),"\n","pivot2[pivot_ptr]=",v("ptr3"),"\n","pivots_are_equal=pivots_are_equal&&(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n","x=",v("ptr0"),"\n","y=",v("ptr2"),"\n","z=",v("ptr4"),"\n",m("ptr5","x"),"\n",m("ptr6","y"),"\n",m("ptr7","z")].join("")):r.push(["pivot1=",v(h("el2")),"\n","pivot2=",v(h("el4")),"\n","pivots_are_equal=pivot1===pivot2\n","x=",v(h("el1")),"\n","y=",v(h("el3")),"\n","z=",v(h("el5")),"\n",m(h("index1"),"x"),"\n",m(h("index3"),"y"),"\n",m(h("index5"),"z")].join("")),_("index2","left"),_("index4","right"),r.push("if(pivots_are_equal){"),r.push("for(k=less;k<=great;++k){"),w("comp","k",1),r.push("if(comp===0){continue}"),r.push("if(comp<0){"),r.push("if(k!==less){"),k("k","less"),r.push("}"),r.push("++less"),r.push("}else{"),r.push("while(true){"),w("comp","great",1),r.push("if(comp>0){"),r.push("great--"),r.push("}else if(comp<0){"),T("k","less","great"),r.push("break"),r.push("}else{"),E("k","great"),r.push("break"),r.push("}"),r.push("}"),r.push("}"),r.push("}"),r.push("}else{"),r.push("for(k=less;k<=great;++k){"),w("comp_pivot1","k",1),r.push("if(comp_pivot1<0){"),r.push("if(k!==less){"),k("k","less"),r.push("}"),r.push("++less"),r.push("}else{"),w("comp_pivot2","k",2),r.push("if(comp_pivot2>0){"),r.push("while(true){"),w("comp","great",2),r.push("if(comp>0){"),r.push("if(--great<k){break}"),r.push("continue"),r.push("}else{"),w("comp","great",1),r.push("if(comp<0){"),T("k","less","great"),r.push("}else{"),E("k","great"),r.push("}"),r.push("break"),r.push("}"),r.push("}"),r.push("}"),r.push("}"),r.push("}"),r.push("}"),O("left","(less-1)",1),O("right","(great+1)",2),M("left","(less-2)"),M("(great+2)","right"),r.push("if(pivots_are_equal){"),b(),r.push("return"),r.push("}"),r.push("if(less<index1&&great>index5){"),S("less",1,"++less"),S("great",2,"--great"),r.push("for(k=less;k<=great;++k){"),w("comp_pivot1","k",1),r.push("if(comp_pivot1===0){"),r.push("if(k!==less){"),k("k","less"),r.push("}"),r.push("++less"),r.push("}else{"),w("comp_pivot2","k",2),r.push("if(comp_pivot2===0){"),r.push("while(true){"),w("comp","great",2),r.push("if(comp===0){"),r.push("if(--great<k){break}"),r.push("continue"),r.push("}else{"),w("comp","great",1),r.push("if(comp<0){"),T("k","less","great"),r.push("}else{"),E("k","great"),r.push("}"),r.push("break"),r.push("}"),r.push("}"),r.push("}"),r.push("}"),r.push("}"),r.push("}"),b(),M("less","great"),r.push("}return "+l),e.length>1&&u){var C=new Function("insertionSort","malloc","free",r.join("\n"));return C(n,u[0],u[1])}C=new Function("insertionSort",r.join("\n"));return C(n)}function u(e,t){var n=["'use strict'"],r=["ndarraySortWrapper",e.join("d"),t].join(""),o=["array"];n.push(["function ",r,"(",o.join(","),"){"].join(""));for(var u=["data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride"],c=0;c<e.length;++c)u.push(["s",c,"=stride[",c,"]|0,n",c,"=shape[",c,"]|0"].join(""));var f=new Array(e.length),p=[];for(c=0;c<e.length;++c){var d=e[c];0!==d&&(0===p.length?f[d]="1":f[d]=p.join("*"),p.push("n"+d))}var h=-1,v=-1;for(c=0;c<e.length;++c){var m=e[c];0!==m&&(h>0?u.push(["d",m,"=s",m,"-d",h,"*n",h].join("")):u.push(["d",m,"=s",m].join("")),h=m);d=e.length-1-c;0!==d&&(v>0?u.push(["e",d,"=s",d,"-e",v,"*n",v,",f",d,"=",f[d],"-f",v,"*n",v].join("")):u.push(["e",d,"=s",d,",f",d,"=",f[d]].join("")),v=d)}n.push("var "+u.join(","));var y=["0","n0-1","data","offset"].concat(i(e.length));n.push(["if(n0<=",a,"){","insertionSort(",y.join(","),")}else{","quickSort(",y.join(","),")}"].join("")),n.push("}return "+r);var g=new Function("insertionSort","quickSort",n.join("\n")),b=l(e,t),x=s(e,t,b);return g(b,x)}t.exports=u},{"typedarray-pool":567}],468:[function(e,t,n){"use strict";var r=e("./lib/compile_sort.js"),a={};function o(e){var t=e.order,n=e.dtype,o=[t,n],i=o.join(":"),l=a[i];return l||(a[i]=l=r(t,n)),l(e),e}t.exports=o},{"./lib/compile_sort.js":467}],469:[function(e,t,n){var r=e("iota-array"),a=e("is-buffer"),o="undefined"!==typeof Float64Array;function i(e,t){return e[0]-t[0]}function l(){var e,t=this.stride,n=new Array(t.length);for(e=0;e<n.length;++e)n[e]=[Math.abs(t[e]),e];n.sort(i);var r=new Array(n.length);for(e=0;e<r.length;++e)r[e]=n[e][1];return r}function s(e,t){var n=["View",t,"d",e].join("");t<0&&(n="View_Nil"+e);var a="generic"===e;if(-1===t){var o="function "+n+"(a){this.data=a;};var proto="+n+".prototype;proto.dtype='"+e+"';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new "+n+"(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_"+n+"(a){return new "+n+"(a);}",i=new Function(o);return i()}if(0===t){o="function "+n+"(a,d) {this.data = a;this.offset = d};var proto="+n+".prototype;proto.dtype='"+e+"';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function "+n+"_copy() {return new "+n+"(this.data,this.offset)};proto.pick=function "+n+"_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function "+n+"_get(){return "+(a?"this.data.get(this.offset)":"this.data[this.offset]")+"};proto.set=function "+n+"_set(v){return "+(a?"this.data.set(this.offset,v)":"this.data[this.offset]=v")+"};return function construct_"+n+"(a,b,c,d){return new "+n+"(a,d)}",i=new Function("TrivialArray",o);return i(c[e][0])}o=["'use strict'"];var s=r(t),u=s.map((function(e){return"i"+e})),f="this.offset+"+s.map((function(e){return"this.stride["+e+"]*i"+e})).join("+"),p=s.map((function(e){return"b"+e})).join(","),d=s.map((function(e){return"c"+e})).join(",");o.push("function "+n+"(a,"+p+","+d+",d){this.data=a","this.shape=["+p+"]","this.stride=["+d+"]","this.offset=d|0}","var proto="+n+".prototype","proto.dtype='"+e+"'","proto.dimension="+t),o.push("Object.defineProperty(proto,'size',{get:function "+n+"_size(){return "+s.map((function(e){return"this.shape["+e+"]"})).join("*"),"}})"),1===t?o.push("proto.order=[0]"):(o.push("Object.defineProperty(proto,'order',{get:"),t<4?(o.push("function "+n+"_order(){"),2===t?o.push("return (Math.abs(this.stride[0])>Math.abs(this.stride[1]))?[1,0]:[0,1]}})"):3===t&&o.push("var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0>s1){if(s1>s2){return [2,1,0];}else if(s0>s2){return [1,2,0];}else{return [1,0,2];}}else if(s0>s2){return [2,0,1];}else if(s2>s1){return [0,1,2];}else{return [0,2,1];}}})")):o.push("ORDER})")),o.push("proto.set=function "+n+"_set("+u.join(",")+",v){"),a?o.push("return this.data.set("+f+",v)}"):o.push("return this.data["+f+"]=v}"),o.push("proto.get=function "+n+"_get("+u.join(",")+"){"),a?o.push("return this.data.get("+f+")}"):o.push("return this.data["+f+"]}"),o.push("proto.index=function "+n+"_index(",u.join(),"){return "+f+"}"),o.push("proto.hi=function "+n+"_hi("+u.join(",")+"){return new "+n+"(this.data,"+s.map((function(e){return["(typeof i",e,"!=='number'||i",e,"<0)?this.shape[",e,"]:i",e,"|0"].join("")})).join(",")+","+s.map((function(e){return"this.stride["+e+"]"})).join(",")+",this.offset)}");var h=s.map((function(e){return"a"+e+"=this.shape["+e+"]"})),v=s.map((function(e){return"c"+e+"=this.stride["+e+"]"}));o.push("proto.lo=function "+n+"_lo("+u.join(",")+"){var b=this.offset,d=0,"+h.join(",")+","+v.join(","));for(var m=0;m<t;++m)o.push("if(typeof i"+m+"==='number'&&i"+m+">=0){d=i"+m+"|0;b+=c"+m+"*d;a"+m+"-=d}");o.push("return new "+n+"(this.data,"+s.map((function(e){return"a"+e})).join(",")+","+s.map((function(e){return"c"+e})).join(",")+",b)}"),o.push("proto.step=function "+n+"_step("+u.join(",")+"){var "+s.map((function(e){return"a"+e+"=this.shape["+e+"]"})).join(",")+","+s.map((function(e){return"b"+e+"=this.stride["+e+"]"})).join(",")+",c=this.offset,d=0,ceil=Math.ceil");for(m=0;m<t;++m)o.push("if(typeof i"+m+"==='number'){d=i"+m+"|0;if(d<0){c+=b"+m+"*(a"+m+"-1);a"+m+"=ceil(-a"+m+"/d)}else{a"+m+"=ceil(a"+m+"/d)}b"+m+"*=d}");o.push("return new "+n+"(this.data,"+s.map((function(e){return"a"+e})).join(",")+","+s.map((function(e){return"b"+e})).join(",")+",c)}");var y=new Array(t),g=new Array(t);for(m=0;m<t;++m)y[m]="a[i"+m+"]",g[m]="b[i"+m+"]";o.push("proto.transpose=function "+n+"_transpose("+u+"){"+u.map((function(e,t){return e+"=("+e+"===undefined?"+t+":"+e+"|0)"})).join(";"),"var a=this.shape,b=this.stride;return new "+n+"(this.data,"+y.join(",")+","+g.join(",")+",this.offset)}"),o.push("proto.pick=function "+n+"_pick("+u+"){var a=[],b=[],c=this.offset");for(m=0;m<t;++m)o.push("if(typeof i"+m+"==='number'&&i"+m+">=0){c=(c+this.stride["+m+"]*i"+m+")|0}else{a.push(this.shape["+m+"]);b.push(this.stride["+m+"])}");o.push("var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}"),o.push("return function construct_"+n+"(data,shape,stride,offset){return new "+n+"(data,"+s.map((function(e){return"shape["+e+"]"})).join(",")+","+s.map((function(e){return"stride["+e+"]"})).join(",")+",offset)}");i=new Function("CTOR_LIST","ORDER",o.join("\n"));return i(c[e],l)}function u(e){if(a(e))return"buffer";if(o)switch(Object.prototype.toString.call(e)){case"[object Float64Array]":return"float64";case"[object Float32Array]":return"float32";case"[object Int8Array]":return"int8";case"[object Int16Array]":return"int16";case"[object Int32Array]":return"int32";case"[object Uint8Array]":return"uint8";case"[object Uint16Array]":return"uint16";case"[object Uint32Array]":return"uint32";case"[object Uint8ClampedArray]":return"uint8_clamped";case"[object BigInt64Array]":return"bigint64";case"[object BigUint64Array]":return"biguint64"}return Array.isArray(e)?"array":"generic"}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],bigint64:[],biguint64:[],buffer:[],generic:[]};function f(e,t,n,r){if(void 0===e){var a=c.array[0];return a([])}"number"===typeof e&&(e=[e]),void 0===t&&(t=[e.length]);var o=t.length;if(void 0===n){n=new Array(o);for(var i=o-1,l=1;i>=0;--i)n[i]=l,l*=t[i]}if(void 0===r){r=0;for(i=0;i<o;++i)n[i]<0&&(r-=(t[i]-1)*n[i])}var f=u(e),p=c[f];while(p.length<=o+1)p.push(s(f,p.length-1));a=p[o+1];return a(e,t,n,r)}t.exports=f},{"iota-array":437,"is-buffer":439}],470:[function(e,t,n){"use strict";var r=e("double-bits"),a=Math.pow(2,-1074),o=-1>>>0;function i(e,t){if(isNaN(e)||isNaN(t))return NaN;if(e===t)return e;if(0===e)return t<0?-a:a;var n=r.hi(e),i=r.lo(e);return t>e===e>0?i===o?(n+=1,i=0):i+=1:0===i?(i=o,n-=1):i-=1,r.pack(i,n)}t.exports=i},{"double-bits":173}],471:[function(e,t,n){var r=Math.PI,a=c(120);function o(e){for(var t,n=[],r=0,a=0,o=0,u=0,f=null,p=null,d=0,h=0,v=0,m=e.length;v<m;v++){var y=e[v],g=y[0];switch(g){case"M":o=y[1],u=y[2];break;case"A":y=s(d,h,y[1],y[2],c(y[3]),y[4],y[5],y[6],y[7]),y.unshift("C"),y.length>7&&(n.push(y.splice(0,7)),y.unshift("C"));break;case"S":var b=d,x=h;"C"!=t&&"S"!=t||(b+=b-r,x+=x-a),y=["C",b,x,y[1],y[2],y[3],y[4]];break;case"T":"Q"==t||"T"==t?(f=2*d-f,p=2*h-p):(f=d,p=h),y=l(d,h,f,p,y[1],y[2]);break;case"Q":f=y[1],p=y[2],y=l(d,h,y[1],y[2],y[3],y[4]);break;case"L":y=i(d,h,y[1],y[2]);break;case"H":y=i(d,h,y[1],h);break;case"V":y=i(d,h,d,y[1]);break;case"Z":y=i(d,h,o,u);break}t=g,d=y[y.length-2],h=y[y.length-1],y.length>4?(r=y[y.length-4],a=y[y.length-3]):(r=d,a=h),n.push(y)}return n}function i(e,t,n,r){return["C",e,t,n,r,n,r]}function l(e,t,n,r,a,o){return["C",e/3+2/3*n,t/3+2/3*r,a/3+2/3*n,o/3+2/3*r,a,o]}function s(e,t,n,o,i,l,c,f,p,d){if(d)k=d[0],T=d[1],_=d[2],w=d[3];else{var h=u(e,t,-i);e=h.x,t=h.y,h=u(f,p,-i),f=h.x,p=h.y;var v=(e-f)/2,m=(t-p)/2,y=v*v/(n*n)+m*m/(o*o);y>1&&(y=Math.sqrt(y),n*=y,o*=y);var g=n*n,b=o*o,x=(l==c?-1:1)*Math.sqrt(Math.abs((g*b-g*m*m-b*v*v)/(g*m*m+b*v*v)));x==1/0&&(x=1);var _=x*n*m/o+(e+f)/2,w=x*-o*v/n+(t+p)/2,k=Math.asin(((t-w)/o).toFixed(9)),T=Math.asin(((p-w)/o).toFixed(9));k=e<_?r-k:k,T=f<_?r-T:T,k<0&&(k=2*r+k),T<0&&(T=2*r+T),c&&k>T&&(k-=2*r),!c&&T>k&&(T-=2*r)}if(Math.abs(T-k)>a){var E=T,O=f,M=p;T=k+a*(c&&T>k?1:-1),f=_+n*Math.cos(T),p=w+o*Math.sin(T);var S=s(f,p,n,o,i,0,c,O,M,[T,E,_,w])}var C=Math.tan((T-k)/4),A=4/3*n*C,P=4/3*o*C,L=[2*e-(e+A*Math.sin(k)),2*t-(t-P*Math.cos(k)),f+A*Math.sin(T),p-P*Math.cos(T),f,p];if(d)return L;S&&(L=L.concat(S));for(var D=0;D<L.length;){var j=u(L[D],L[D+1],i);L[D++]=j.x,L[D++]=j.y}return L}function u(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}}function c(e){return e*(r/180)}t.exports=o},{}],472:[function(e,t,n){var r=1e-6,a=1e-6;n.vertexNormals=function(e,t,n){for(var a=t.length,o=new Array(a),i=void 0===n?r:n,l=0;l<a;++l)o[l]=[0,0,0];for(l=0;l<e.length;++l)for(var s=e[l],u=0,c=s[s.length-1],f=s[0],p=0;p<s.length;++p){u=c,c=f,f=s[(p+1)%s.length];for(var d=t[u],h=t[c],v=t[f],m=new Array(3),y=0,g=new Array(3),b=0,x=0;x<3;++x)m[x]=d[x]-h[x],y+=m[x]*m[x],g[x]=v[x]-h[x],b+=g[x]*g[x];if(y*b>i){var _=o[c],w=1/Math.sqrt(y*b);for(x=0;x<3;++x){var k=(x+1)%3,T=(x+2)%3;_[x]+=w*(g[k]*m[T]-g[T]*m[k])}}}for(l=0;l<a;++l){_=o[l];var E=0;for(x=0;x<3;++x)E+=_[x]*_[x];if(E>i)for(w=1/Math.sqrt(E),x=0;x<3;++x)_[x]*=w;else for(x=0;x<3;++x)_[x]=0}return o},n.faceNormals=function(e,t,n){for(var r=e.length,o=new Array(r),i=void 0===n?a:n,l=0;l<r;++l){for(var s=e[l],u=new Array(3),c=0;c<3;++c)u[c]=t[s[c]];var f=new Array(3),p=new Array(3);for(c=0;c<3;++c)f[c]=u[1][c]-u[0][c],p[c]=u[2][c]-u[0][c];var d=new Array(3),h=0;for(c=0;c<3;++c){var v=(c+1)%3,m=(c+2)%3;d[c]=f[v]*p[m]-f[m]*p[v],h+=d[c]*d[c]}h=h>i?1/Math.sqrt(h):0;for(c=0;c<3;++c)d[c]*=h;o[l]=d}return o}},{}],473:[function(e,t,n){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
"use strict";var r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function l(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(o){return!1}}t.exports=l()?Object.assign:function(e,t){for(var n,l,s=i(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]),n)a.call(n,c)&&(s[c]=n[c]);if(r){l=r(n);for(var f=0;f<l.length;f++)o.call(n,l[f])&&(s[l[f]]=n[l[f]])}}return s}},{}],474:[function(e,t,n){"use strict";function r(e,t,n,r,a,o,i,l,s,u){var c=t+o+u;if(f>0){var f=Math.sqrt(c+1);e[0]=.5*(i-s)/f,e[1]=.5*(l-r)/f,e[2]=.5*(n-o)/f,e[3]=.5*f}else{var p=Math.max(t,o,u);f=Math.sqrt(2*p-c+1);t>=p?(e[0]=.5*f,e[1]=.5*(a+n)/f,e[2]=.5*(l+r)/f,e[3]=.5*(i-s)/f):o>=p?(e[0]=.5*(n+a)/f,e[1]=.5*f,e[2]=.5*(s+i)/f,e[3]=.5*(l-r)/f):(e[0]=.5*(r+l)/f,e[1]=.5*(i+s)/f,e[2]=.5*f,e[3]=.5*(n-a)/f)}return e}t.exports=r},{}],475:[function(e,t,n){"use strict";t.exports=d;var r=e("filtered-vector"),a=e("gl-mat4/lookAt"),o=e("gl-mat4/fromQuat"),i=e("gl-mat4/invert"),l=e("./lib/quatFromFrame");function s(e,t,n){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(n,2))}function u(e,t,n,r){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(n,2)+Math.pow(r,2))}function c(e,t){var n=t[0],r=t[1],a=t[2],o=t[3],i=u(n,r,a,o);i>1e-6?(e[0]=n/i,e[1]=r/i,e[2]=a/i,e[3]=o/i):(e[0]=e[1]=e[2]=0,e[3]=1)}function f(e,t,n){this.radius=r([n]),this.center=r(t),this.rotation=r(e),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var p=f.prototype;function d(e){e=e||{};var t=e.center||[0,0,0],n=e.rotation||[0,0,0,1],r=e.radius||1;t=[].slice.call(t,0,3),n=[].slice.call(n,0,4),c(n,n);var a=new f(n,t,Math.log(r));return a.setDistanceLimits(e.zoomMin,e.zoomMax),("eye"in e||"up"in e)&&a.lookAt(0,e.eye,e.center,e.up),a}p.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},p.recalcMatrix=function(e){this.radius.curve(e),this.center.curve(e),this.rotation.curve(e);var t=this.computedRotation;c(t,t);var n=this.computedMatrix;o(n,t);var r=this.computedCenter,a=this.computedEye,i=this.computedUp,l=Math.exp(this.computedRadius[0]);a[0]=r[0]+l*n[2],a[1]=r[1]+l*n[6],a[2]=r[2]+l*n[10],i[0]=n[1],i[1]=n[5],i[2]=n[9];for(var s=0;s<3;++s){for(var u=0,f=0;f<3;++f)u+=n[s+4*f]*a[f];n[12+s]=-u}},p.getMatrix=function(e,t){this.recalcMatrix(e);var n=this.computedMatrix;if(t){for(var r=0;r<16;++r)t[r]=n[r];return t}return n},p.idle=function(e){this.center.idle(e),this.radius.idle(e),this.rotation.idle(e)},p.flush=function(e){this.center.flush(e),this.radius.flush(e),this.rotation.flush(e)},p.pan=function(e,t,n,r){t=t||0,n=n||0,r=r||0,this.recalcMatrix(e);var a=this.computedMatrix,o=a[1],i=a[5],l=a[9],u=s(o,i,l);o/=u,i/=u,l/=u;var c=a[0],f=a[4],p=a[8],d=c*o+f*i+p*l;c-=o*d,f-=i*d,p-=l*d;var h=s(c,f,p);c/=h,f/=h,p/=h;var v=a[2],m=a[6],y=a[10],g=v*o+m*i+y*l,b=v*c+m*f+y*p;v-=g*o+b*c,m-=g*i+b*f,y-=g*l+b*p;var x=s(v,m,y);v/=x,m/=x,y/=x;var _=c*t+o*n,w=f*t+i*n,k=p*t+l*n;this.center.move(e,_,w,k);var T=Math.exp(this.computedRadius[0]);T=Math.max(1e-4,T+r),this.radius.set(e,Math.log(T))},p.rotate=function(e,t,n,r){this.recalcMatrix(e),t=t||0,n=n||0;var a=this.computedMatrix,o=a[0],i=a[4],l=a[8],c=a[1],f=a[5],p=a[9],d=a[2],h=a[6],v=a[10],m=t*o+n*c,y=t*i+n*f,g=t*l+n*p,b=-(h*g-v*y),x=-(v*m-d*g),_=-(d*y-h*m),w=Math.sqrt(Math.max(0,1-Math.pow(b,2)-Math.pow(x,2)-Math.pow(_,2))),k=u(b,x,_,w);k>1e-6?(b/=k,x/=k,_/=k,w/=k):(b=x=_=0,w=1);var T=this.computedRotation,E=T[0],O=T[1],M=T[2],S=T[3],C=E*w+S*b+O*_-M*x,A=O*w+S*x+M*b-E*_,P=M*w+S*_+E*x-O*b,L=S*w-E*b-O*x-M*_;if(r){b=d,x=h,_=v;var D=Math.sin(r)/s(b,x,_);b*=D,x*=D,_*=D,w=Math.cos(t),C=C*w+L*b+A*_-P*x,A=A*w+L*x+P*b-C*_,P=P*w+L*_+C*x-A*b,L=L*w-C*b-A*x-P*_}var j=u(C,A,P,L);j>1e-6?(C/=j,A/=j,P/=j,L/=j):(C=A=P=0,L=1),this.rotation.set(e,C,A,P,L)},p.lookAt=function(e,t,n,r){this.recalcMatrix(e),n=n||this.computedCenter,t=t||this.computedEye,r=r||this.computedUp;var o=this.computedMatrix;a(o,t,n,r);var i=this.computedRotation;l(i,o[0],o[1],o[2],o[4],o[5],o[6],o[8],o[9],o[10]),c(i,i),this.rotation.set(e,i[0],i[1],i[2],i[3]);for(var s=0,u=0;u<3;++u)s+=Math.pow(n[u]-t[u],2);this.radius.set(e,.5*Math.log(Math.max(s,1e-6))),this.center.set(e,n[0],n[1],n[2])},p.translate=function(e,t,n,r){this.center.move(e,t||0,n||0,r||0)},p.setMatrix=function(e,t){var n=this.computedRotation;l(n,t[0],t[1],t[2],t[4],t[5],t[6],t[8],t[9],t[10]),c(n,n),this.rotation.set(e,n[0],n[1],n[2],n[3]);var r=this.computedMatrix;i(r,t);var a=r[15];if(Math.abs(a)>1e-6){var o=r[12]/a,s=r[13]/a,u=r[14]/a;this.recalcMatrix(e);var f=Math.exp(this.computedRadius[0]);this.center.set(e,o-r[2]*f,s-r[6]*f,u-r[10]*f),this.radius.idle(e)}else this.center.idle(e),this.radius.idle(e)},p.setDistance=function(e,t){t>0&&this.radius.set(e,Math.log(t))},p.setDistanceLimits=function(e,t){e=e>0?Math.log(e):-1/0,t=t>0?Math.log(t):1/0,t=Math.max(t,e),this.radius.bounds[0][0]=e,this.radius.bounds[1][0]=t},p.getDistanceLimits=function(e){var t=this.radius.bounds;return e?(e[0]=Math.exp(t[0][0]),e[1]=Math.exp(t[1][0]),e):[Math.exp(t[0][0]),Math.exp(t[1][0])]},p.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},p.fromJSON=function(e){var t=this.lastT(),n=e.center;n&&this.center.set(t,n[0],n[1],n[2]);var r=e.rotation;r&&this.rotation.set(t,r[0],r[1],r[2],r[3]);var a=e.distance;a&&a>0&&this.radius.set(t,Math.log(a)),this.setDistanceLimits(e.zoomMin,e.zoomMax)}},{"./lib/quatFromFrame":474,"filtered-vector":242,"gl-mat4/fromQuat":275,"gl-mat4/invert":278,"gl-mat4/lookAt":279}],476:[function(e,t,n){
/*!
* pad-left <https://github.com/jonschlinkert/pad-left>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT license.
*/
"use strict";var r=e("repeat-string");t.exports=function(e,t,n){return n="undefined"!==typeof n?n+"":" ",r(n,t)+e}},{"repeat-string":513}],477:[function(e,t,n){"use strict";function r(e,t){if("string"!==typeof e)return[e];var n=[e];"string"===typeof t||Array.isArray(t)?t={brackets:t}:t||(t={});var r=t.brackets?Array.isArray(t.brackets)?t.brackets:[t.brackets]:["{}","[]","()"],a=t.escape||"___",o=!!t.flat;r.forEach((function(e){var t=new RegExp(["\\",e[0],"[^\\",e[0],"\\",e[1],"]*\\",e[1]].join("")),r=[];function o(t,o,i){var l=n.push(t.slice(e[0].length,-e[1].length))-1;return r.push(l),a+l+a}n.forEach((function(e,r){var a,i=0;while(e!=a)if(a=e,e=e.replace(t,o),i++>1e4)throw Error("References have circular dependency. Please, check them.");n[r]=e})),r=r.reverse(),n=n.map((function(t){return r.forEach((function(n){t=t.replace(new RegExp("(\\"+a+n+"\\"+a+")","g"),e[0]+"$1"+e[1])})),t}))}));var i=new RegExp("\\"+a+"([0-9]+)\\"+a);function l(e,t,n){var r,a=[],o=0;while(r=i.exec(e)){if(o++>1e4)throw Error("Circular references in parenthesis");a.push(e.slice(0,r.index)),a.push(l(t[r[1]],t)),e=e.slice(r.index+r[0].length)}return a.push(e),a}return o?n:l(n[0],n)}function a(e,t){if(t&&t.flat){var n,r=t&&t.escape||"___",a=e[0];if(!a)return"";var o=new RegExp("\\"+r+"([0-9]+)\\"+r),i=0;while(a!=n){if(i++>1e4)throw Error("Circular references in "+e);n=a,a=a.replace(o,l)}return a}return e.reduce((function e(t,n){return Array.isArray(n)&&(n=n.reduce(e,"")),t+n}),"");function l(t,n){if(null==e[n])throw Error("Reference "+n+"is undefined");return e[n]}}function o(e,t){return Array.isArray(e)?a(e,t):r(e,t)}o.parse=r,o.stringify=a,t.exports=o},{}],478:[function(e,t,n){"use strict";var r=e("pick-by-alias");function a(e){var t;return arguments.length>1&&(e=arguments),"string"===typeof e?e=e.split(/\s/).map(parseFloat):"number"===typeof e&&(e=[e]),e.length&&"number"===typeof e[0]?t=1===e.length?{width:e[0],height:e[0],x:0,y:0}:2===e.length?{width:e[0],height:e[1],x:0,y:0}:{x:e[0],y:e[1],width:e[2]-e[0]||0,height:e[3]-e[1]||0}:e&&(e=r(e,{left:"x l left Left",top:"y t top Top",width:"w width W Width",height:"h height W Width",bottom:"b bottom Bottom",right:"r right Right"}),t={x:e.left||0,y:e.top||0},null==e.width?e.right?t.width=e.right-t.x:t.width=0:t.width=e.width,null==e.height?e.bottom?t.height=e.bottom-t.y:t.height=0:t.height=e.height),t}t.exports=a},{"pick-by-alias":485}],479:[function(e,t,n){t.exports=o;var r={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},a=/([astvzqmhlc])([^astvzqmhlc]*)/gi;function o(e){var t=[];return e.replace(a,(function(e,n,a){var o=n.toLowerCase();a=l(a),"m"==o&&a.length>2&&(t.push([n].concat(a.splice(0,2))),o="l",n="m"==n?"l":"L");while(1){if(a.length==r[o])return a.unshift(n),t.push(a);if(a.length<r[o])throw new Error("malformed path data");t.push([n].concat(a.splice(0,r[o])))}})),t}var i=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function l(e){var t=e.match(i);return t?t.map(Number):[]}},{}],480:[function(e,t,n){t.exports=function(e,t){t||(t=[0,""]),e=String(e);var n=parseFloat(e,10);return t[0]=n,t[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",t}},{}],481:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var a=e[r];"."===a?e.splice(r,1):".."===a?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,a=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!a){n=t+1;break}}else-1===r&&(a=!1,r=t+1);return-1===r?"":e.slice(n,r)}function a(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var i=o>=0?arguments[o]:e.cwd();if("string"!==typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(n=i+"/"+n,r="/"===i.charAt(0))}return n=t(a(n.split("/"),(function(e){return!!e})),!r).join("/"),(r?"/":"")+n||"."},n.normalize=function(e){var r=n.isAbsolute(e),i="/"===o(e,-1);return e=t(a(e.split("/"),(function(e){return!!e})),!r).join("/"),e||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(a(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var n=e.length-1;n>=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var a=r(e.split("/")),o=r(t.split("/")),i=Math.min(a.length,o.length),l=i,s=0;s<i;s++)if(a[s]!==o[s]){l=s;break}var u=[];for(s=l;s<a.length;s++)u.push("..");return u=u.concat(o.slice(l)),u.join("/")},n.sep="/",n.delimiter=":",n.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,a=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),47===t){if(!a){r=o;break}}else a=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},n.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,a=!0,o=0,i=e.length-1;i>=0;--i){var l=e.charCodeAt(i);if(47!==l)-1===r&&(a=!1,r=i+1),46===l?-1===t?t=i:1!==o&&(o=1):-1!==t&&(o=-1);else if(!a){n=i+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:500}],482:[function(e,t,n){(function(e){(function(){var n,r,a,o,i,l;"undefined"!==typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!==typeof e&&null!==e&&e.hrtime?(t.exports=function(){return(n()-i)/1e6},r=e.hrtime,n=function(){var e;return e=r(),1e9*e[0]+e[1]},o=n(),l=1e9*e.uptime(),i=o-l):Date.now?(t.exports=function(){return Date.now()-a},a=Date.now()):(t.exports=function(){return(new Date).getTime()-a},a=(new Date).getTime())}).call(this)}).call(this,e("_process"))},{_process:500}],483:[function(e,t,n){"use strict";t.exports=o;var r=32,a=e("typedarray-pool");function o(e){var t=e.length;if(t<r){for(var n=1,o=0;o<t;++o)for(var i=0;i<o;++i)if(e[o]<e[i])n=-n;else if(e[o]===e[i])return 0;return n}var l=a.mallocUint8(t);for(o=0;o<t;++o)l[o]=0;for(n=1,o=0;o<t;++o)if(!l[o]){var s=1;l[o]=1;for(i=e[o];i!==o;i=e[i]){if(l[i])return a.freeUint8(l),0;s+=1,l[i]=1}1&s||(n=-n)}return a.freeUint8(l),n}},{"typedarray-pool":567}],484:[function(e,t,n){"use strict";var r=e("typedarray-pool"),a=e("invert-permutation");function o(e){var t=e.length;switch(t){case 0:case 1:return 0;case 2:return e[1];default:break}var n,o,i,l=r.mallocUint32(t),s=r.mallocUint32(t),u=0;for(a(e,s),i=0;i<t;++i)l[i]=e[i];for(i=t-1;i>0;--i)o=s[i],n=l[i],l[i]=l[o],l[o]=n,s[i]=s[n],s[n]=o,u=(u+n)*i;return r.freeUint32(s),r.freeUint32(l),u}function i(e,t,n){switch(e){case 0:return n||[];case 1:return n?(n[0]=0,n):[0];case 2:return n?(t?(n[0]=0,n[1]=1):(n[0]=1,n[1]=0),n):t?[0,1]:[1,0];default:break}n=n||new Array(e);var r,a,o,i=1;for(n[0]=0,o=1;o<e;++o)n[o]=o,i=i*o|0;for(o=e-1;o>0;--o)r=t/i|0,t=t-r*i|0,i=i/o|0,a=0|n[o],n[o]=0|n[r],n[r]=0|a;return n}n.rank=o,n.unrank=i},{"invert-permutation":436,"typedarray-pool":567}],485:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r,o,i={};if("string"===typeof t&&(t=a(t)),Array.isArray(t)){var l={};for(o=0;o<t.length;o++)l[t[o]]=!0;t=l}for(r in t)t[r]=a(t[r]);var s={};for(r in t){var u=t[r];if(Array.isArray(u))for(o=0;o<u.length;o++){var c=u[o];if(n&&(s[c]=!0),c in e){if(i[r]=e[c],n)for(var f=o;f<u.length;f++)s[u[f]]=!0;break}}else r in e&&(t[r]&&(i[r]=e[r]),n&&(s[r]=!0))}if(n)for(r in e)s[r]||(i[r]=e[r]);return i};var r={};function a(e){return r[e]?r[e]:("string"===typeof e&&(e=r[e]=e.split(/\s*,\s*|\s+/)),e)}},{}],486:[function(e,t,n){"use strict";t.exports=a;var r=e("compare-angle");function a(e,t){for(var n=0|t.length,a=e.length,o=[new Array(n),new Array(n)],i=0;i<n;++i)o[0][i]=[],o[1][i]=[];for(i=0;i<a;++i){var l=e[i];o[0][l[0]].push(l),o[1][l[1]].push(l)}var s=[];for(i=0;i<n;++i)o[0][i].length+o[1][i].length===0&&s.push([i]);function u(e,t){var n=o[t][e[t]];n.splice(n.indexOf(e),1)}function c(e,n,a){for(var i,l,s,c=0;c<2;++c)if(o[c][n].length>0){i=o[c][n][0],s=c;break}l=i[1^s];for(var f=0;f<2;++f)for(var p=o[f][n],d=0;d<p.length;++d){var h=p[d],v=h[1^f],m=r(t[e],t[n],t[l],t[v]);m>0&&(i=h,l=v,s=f)}return a||i&&u(i,s),l}function f(e,n){var a=o[n][e][0],i=[e];u(a,n);var l=a[1^n];while(1){while(l!==e)i.push(l),l=c(i[i.length-2],l,!1);if(o[0][e].length+o[1][e].length===0)break;var s=i[i.length-1],f=e,p=i[1],d=c(s,f,!0);if(r(t[s],t[f],t[p],t[d])<0)break;i.push(e),l=c(s,f)}return i}function p(e,t){return t[1]===t[t.length-1]}for(i=0;i<n;++i)for(var d=0;d<2;++d){var h=[];while(o[d][i].length>0){o[0][i].length;var v=f(i,d);p(h,v)?h.push.apply(h,v):(h.length>0&&s.push(h),h=v)}h.length>0&&s.push(h)}return s}},{"compare-angle":132}],487:[function(e,t,n){"use strict";t.exports=a;var r=e("edges-to-adjacency-list");function a(e,t){for(var n=r(e,t.length),a=new Array(t.length),o=new Array(t.length),i=[],l=0;l<t.length;++l){var s=n[l].length;o[l]=s,a[l]=!0,s<=1&&i.push(l)}while(i.length>0){var u=i.pop();a[u]=!1;var c=n[u];for(l=0;l<c.length;++l){var f=c[l];0===--o[f]&&i.push(f)}}var p=new Array(t.length),d=[];for(l=0;l<t.length;++l)if(a[l]){u=d.length;p[l]=u,d.push(t[l])}else p[l]=-1;var h=[];for(l=0;l<e.length;++l){var v=e[l];a[v[0]]&&a[v[1]]&&h.push([p[v[0]],p[v[1]]])}return[h,d]}},{"edges-to-adjacency-list":178}],488:[function(e,t,n){"use strict";t.exports=p;var r=e("edges-to-adjacency-list"),a=e("planar-dual"),o=e("point-in-big-polygon"),i=e("two-product"),l=e("robust-sum"),s=e("uniq"),u=e("./lib/trim-leaves");function c(e,t){for(var n=new Array(e),r=0;r<e;++r)n[r]=t;return n}function f(e){for(var t=new Array(e),n=0;n<e;++n)t[n]=[];return t}function p(e,t){var n=u(e,t);e=n[0],t=n[1];for(var p=t.length,d=(e.length,r(e,t.length)),h=0;h<p;++h)if(d[h].length%2===1)throw new Error("planar-graph-to-polyline: graph must be manifold");var v=a(e,t);function m(e){for(var n=e.length,r=[0],a=0;a<n;++a){var o=t[e[a]],s=t[e[(a+1)%n]],u=i(-o[0],o[1]),c=i(-o[0],s[1]),f=i(s[0],o[1]),p=i(s[0],s[1]);r=l(r,l(l(u,c),l(f,p)))}return r[r.length-1]>0}v=v.filter(m);var y=v.length,g=new Array(y),b=new Array(y);for(h=0;h<y;++h){g[h]=h;var x=new Array(y),_=v[h].map((function(e){return t[e]})),w=o([_]),k=0;e:for(var T=0;T<y;++T)if(x[T]=0,h!==T){for(var E=v[T],O=E.length,M=0;M<O;++M){var S=w(t[E[M]]);if(0!==S){S<0&&(x[T]=1,k+=1);continue e}}x[T]=1,k+=1}b[h]=[k,h,x]}b.sort((function(e,t){return t[0]-e[0]}));for(h=0;h<y;++h){x=b[h];var C=x[1],A=x[2];for(T=0;T<y;++T)A[T]&&(g[T]=C)}var P=f(y);for(h=0;h<y;++h)P[h].push(g[h]),P[g[h]].push(h);var L={},D=c(p,!1);for(h=0;h<y;++h)for(E=v[h],O=E.length,T=0;T<O;++T){var j=E[T],I=E[(T+1)%O],R=Math.min(j,I)+":"+Math.max(j,I);if(R in L){var z=L[R];P[z].push(h),P[h].push(z),D[j]=D[I]=!0}else L[R]=h}function N(e){for(var t=e.length,n=0;n<t;++n)if(!D[e[n]])return!1;return!0}var F=[],B=c(y,-1);for(h=0;h<y;++h)g[h]!==h||N(v[h])?B[h]=-1:(F.push(h),B[h]=0);n=[];while(F.length>0){var V=F.pop(),H=P[V];s(H,(function(e,t){return e-t}));var U,W=H.length,q=B[V];if(0===q){E=v[V];U=[E]}for(h=0;h<W;++h){var $=H[h];if(!(B[$]>=0)&&(B[$]=1^q,F.push($),0===q)){E=v[$];N(E)||(E.reverse(),U.push(E))}}0===q&&n.push(U)}return n}},{"./lib/trim-leaves":487,"edges-to-adjacency-list":178,"planar-dual":486,"point-in-big-polygon":490,"robust-sum":525,"two-product":554,uniq:569}],489:[function(e,t,n){arguments[4][243][0].apply(n,arguments)},{dup:243}],490:[function(e,t,n){t.exports=h;var r=e("robust-orientation")[3],a=e("slab-decomposition"),o=e("interval-tree-1d"),i=e("binary-search-bounds");function l(){return!0}function s(e){return function(t,n){var r=e[t];return!!r&&!!r.queryPoint(n,l)}}function u(e){for(var t={},n=0;n<e.length;++n){var r=e[n],a=r[0][0],i=r[0][1],l=r[1][1],u=[Math.min(i,l),Math.max(i,l)];a in t?t[a].push(u):t[a]=[u]}var c={},f=Object.keys(t);for(n=0;n<f.length;++n){var p=t[f[n]];c[f[n]]=o(p)}return s(c)}function c(e,t){return function(n){var a=i.le(t,n[0]);if(a<0)return 1;var o=e[a];if(!o){if(!(a>0&&t[a]===n[0]))return 1;o=e[a-1]}var l=1;while(o){var s=o.key,u=r(n,s[0],s[1]);if(s[0][0]<s[1][0])if(u<0)o=o.left;else{if(!(u>0))return 0;l=-1,o=o.right}else if(u>0)o=o.left;else{if(!(u<0))return 0;l=1,o=o.right}}return l}}function f(e){return 1}function p(e){return function(t){return e(t[0],t[1])?0:1}}function d(e,t){return function(n){return e(n[0],n[1])?0:t(n)}}function h(e){for(var t=e.length,n=[],r=[],o=0;o<t;++o)for(var i=e[o],l=i.length,s=l-1,h=0;h<l;s=h++){var v=i[s],m=i[h];v[0]===m[0]?r.push([v,m]):n.push([v,m])}if(0===n.length)return 0===r.length?f:p(u(r));var y=a(n),g=c(y.slabs,y.coordinates);return 0===r.length?g:d(u(r),g)}},{"binary-search-bounds":489,"interval-tree-1d":434,"robust-orientation":520,"slab-decomposition":537}],491:[function(e,t,n){
/*
* @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
* @license MIT
* @preserve Project Home: https://github.com/voidqk/polybooljs
*/
var r,a=e("./lib/build-log"),o=e("./lib/epsilon"),i=e("./lib/intersecter"),l=e("./lib/segment-chainer"),s=e("./lib/segment-selector"),u=e("./lib/geojson"),c=!1,f=o();function p(e,t,n){var a=r.segments(e),o=r.segments(t),i=r.combine(a,o),l=n(i);return r.polygon(l)}r={buildLog:function(e){return!0===e?c=a():!1===e&&(c=!1),!1!==c&&c.list},epsilon:function(e){return f.epsilon(e)},segments:function(e){var t=i(!0,f,c);return e.regions.forEach(t.addRegion),{segments:t.calculate(e.inverted),inverted:e.inverted}},combine:function(e,t){var n=i(!1,f,c);return{combined:n.calculate(e.segments,e.inverted,t.segments,t.inverted),inverted1:e.inverted,inverted2:t.inverted}},selectUnion:function(e){return{segments:s.union(e.combined,c),inverted:e.inverted1||e.inverted2}},selectIntersect:function(e){return{segments:s.intersect(e.combined,c),inverted:e.inverted1&&e.inverted2}},selectDifference:function(e){return{segments:s.difference(e.combined,c),inverted:e.inverted1&&!e.inverted2}},selectDifferenceRev:function(e){return{segments:s.differenceRev(e.combined,c),inverted:!e.inverted1&&e.inverted2}},selectXor:function(e){return{segments:s.xor(e.combined,c),inverted:e.inverted1!==e.inverted2}},polygon:function(e){return{regions:l(e.segments,f,c),inverted:e.inverted}},polygonFromGeoJSON:function(e){return u.toPolygon(r,e)},polygonToGeoJSON:function(e){return u.fromPolygon(r,f,e)},union:function(e,t){return p(e,t,r.selectUnion)},intersect:function(e,t){return p(e,t,r.selectIntersect)},difference:function(e,t){return p(e,t,r.selectDifference)},differenceRev:function(e,t){return p(e,t,r.selectDifferenceRev)},xor:function(e,t){return p(e,t,r.selectXor)}},"object"===typeof window&&(window.PolyBool=r),t.exports=r},{"./lib/build-log":492,"./lib/epsilon":493,"./lib/geojson":494,"./lib/intersecter":495,"./lib/segment-chainer":497,"./lib/segment-selector":498}],492:[function(e,t,n){function r(){var e,t=0,n=!1;function r(t,n){return e.list.push({type:t,data:n?JSON.parse(JSON.stringify(n)):void 0}),e}return e={list:[],segmentId:function(){return t++},checkIntersection:function(e,t){return r("check",{seg1:e,seg2:t})},segmentChop:function(e,t){return r("div_seg",{seg:e,pt:t}),r("chop",{seg:e,pt:t})},statusRemove:function(e){return r("pop_seg",{seg:e})},segmentUpdate:function(e){return r("seg_update",{seg:e})},segmentNew:function(e,t){return r("new_seg",{seg:e,primary:t})},segmentRemove:function(e){return r("rem_seg",{seg:e})},tempStatus:function(e,t,n){return r("temp_status",{seg:e,above:t,below:n})},rewind:function(e){return r("rewind",{seg:e})},status:function(e,t,n){return r("status",{seg:e,above:t,below:n})},vert:function(t){return t===n?e:(n=t,r("vert",{x:t}))},log:function(e){return"string"!==typeof e&&(e=JSON.stringify(e,!1," ")),r("log",{txt:e})},reset:function(){return r("reset")},selected:function(e){return r("selected",{segs:e})},chainStart:function(e){return r("chain_start",{seg:e})},chainRemoveHead:function(e,t){return r("chain_rem_head",{index:e,pt:t})},chainRemoveTail:function(e,t){return r("chain_rem_tail",{index:e,pt:t})},chainNew:function(e,t){return r("chain_new",{pt1:e,pt2:t})},chainMatch:function(e){return r("chain_match",{index:e})},chainClose:function(e){return r("chain_close",{index:e})},chainAddHead:function(e,t){return r("chain_add_head",{index:e,pt:t})},chainAddTail:function(e,t){return r("chain_add_tail",{index:e,pt:t})},chainConnect:function(e,t){return r("chain_con",{index1:e,index2:t})},chainReverse:function(e){return r("chain_rev",{index:e})},chainJoin:function(e,t){return r("chain_join",{index1:e,index2:t})},done:function(){return r("done")}},e}t.exports=r},{}],493:[function(e,t,n){function r(e){"number"!==typeof e&&(e=1e-10);var t={epsilon:function(t){return"number"===typeof t&&(e=t),e},pointAboveOrOnLine:function(t,n,r){var a=n[0],o=n[1],i=r[0],l=r[1],s=t[0],u=t[1];return(i-a)*(u-o)-(l-o)*(s-a)>=-e},pointBetween:function(t,n,r){var a=t[1]-n[1],o=r[0]-n[0],i=t[0]-n[0],l=r[1]-n[1],s=i*o+a*l;if(s<e)return!1;var u=o*o+l*l;return!(s-u>-e)},pointsSameX:function(t,n){return Math.abs(t[0]-n[0])<e},pointsSameY:function(t,n){return Math.abs(t[1]-n[1])<e},pointsSame:function(e,n){return t.pointsSameX(e,n)&&t.pointsSameY(e,n)},pointsCompare:function(e,n){return t.pointsSameX(e,n)?t.pointsSameY(e,n)?0:e[1]<n[1]?-1:1:e[0]<n[0]?-1:1},pointsCollinear:function(t,n,r){var a=t[0]-n[0],o=t[1]-n[1],i=n[0]-r[0],l=n[1]-r[1];return Math.abs(a*l-i*o)<e},linesIntersect:function(t,n,r,a){var o=n[0]-t[0],i=n[1]-t[1],l=a[0]-r[0],s=a[1]-r[1],u=o*s-i*l;if(Math.abs(u)<e)return!1;var c=t[0]-r[0],f=t[1]-r[1],p=(l*f-s*c)/u,d=(o*f-i*c)/u,h={alongA:0,alongB:0,pt:[t[0]+p*o,t[1]+p*i]};return h.alongA=p<=-e?-2:p<e?-1:p-1<=-e?0:p-1<e?1:2,h.alongB=d<=-e?-2:d<e?-1:d-1<=-e?0:d-1<e?1:2,h},pointInsideRegion:function(t,n){for(var r=t[0],a=t[1],o=n[n.length-1][0],i=n[n.length-1][1],l=!1,s=0;s<n.length;s++){var u=n[s][0],c=n[s][1];c-a>e!=i-a>e&&(o-u)*(a-c)/(i-c)+u-r>e&&(l=!l),o=u,i=c}return l}};return t}t.exports=r},{}],494:[function(e,t,n){var r={toPolygon:function(e,t){function n(t){if(t.length<=0)return e.segments({inverted:!1,regions:[]});function n(t){var n=t.slice(0,t.length-1);return e.segments({inverted:!1,regions:[n]})}for(var r=n(t[0]),a=1;a<t.length;a++)r=e.selectDifference(e.combine(r,n(t[a])));return r}if("Polygon"===t.type)return e.polygon(n(t.coordinates));if("MultiPolygon"===t.type){for(var r=e.segments({inverted:!1,regions:[]}),a=0;a<t.coordinates.length;a++)r=e.selectUnion(e.combine(r,n(t.coordinates[a])));return e.polygon(r)}throw new Error("PolyBool: Cannot convert GeoJSON object to PolyBool polygon")},fromPolygon:function(e,t,n){function r(e,n){return t.pointInsideRegion([.5*(e[0][0]+e[1][0]),.5*(e[0][1]+e[1][1])],n)}function a(e){return{region:e,children:[]}}n=e.polygon(e.segments(n));var o=a(null);function i(e,t){for(var n=0;n<e.children.length;n++){var o=e.children[n];if(r(t,o.region))return void i(o,t)}var l=a(t);for(n=0;n<e.children.length;n++){o=e.children[n];r(o.region,t)&&(l.children.push(o),e.children.splice(n,1),n--)}e.children.push(l)}for(var l=0;l<n.regions.length;l++){var s=n.regions[l];s.length<3||i(o,s)}function u(e,t){for(var n=0,r=e[e.length-1][0],a=e[e.length-1][1],o=[],i=0;i<e.length;i++){var l=e[i][0],s=e[i][1];o.push([l,s]),n+=s*r-l*a,r=l,a=s}var u=n<0;return u!==t&&o.reverse(),o.push([o[0][0],o[0][1]]),o}var c=[];function f(e){var t=[u(e.region,!1)];c.push(t);for(var n=0;n<e.children.length;n++)t.push(p(e.children[n]))}function p(e){for(var t=0;t<e.children.length;t++)f(e.children[t]);return u(e.region,!0)}for(l=0;l<o.children.length;l++)f(o.children[l]);return c.length<=0?{type:"Polygon",coordinates:[]}:1==c.length?{type:"Polygon",coordinates:c[0]}:{type:"MultiPolygon",coordinates:c}}};t.exports=r},{}],495:[function(e,t,n){var r=e("./linked-list");function a(e,t,n){function a(e,t){return{id:n?n.segmentId():-1,start:e,end:t,myFill:{above:null,below:null},otherFill:null}}function o(e,t,r){return{id:n?n.segmentId():-1,start:e,end:t,myFill:{above:r.myFill.above,below:r.myFill.below},otherFill:null}}var i=r.create();function l(e,n,r,a,o,i){var l=t.pointsCompare(n,o);return 0!==l?l:t.pointsSame(r,i)?0:e!==a?e?1:-1:t.pointAboveOrOnLine(r,a?o:i,a?i:o)?1:-1}function s(e,t){i.insertBefore(e,(function(n){var r=l(e.isStart,e.pt,t,n.isStart,n.pt,n.other.pt);return r<0}))}function u(e,t){var n=r.node({isStart:!0,pt:e.start,seg:e,primary:t,other:null,status:null});return s(n,e.end),n}function c(e,t,n){var a=r.node({isStart:!1,pt:t.end,seg:t,primary:n,other:e,status:null});e.other=a,s(a,e.pt)}function f(e,t){var n=u(e,t);return c(n,e,t),n}function p(e,t){n&&n.segmentChop(e.seg,t),e.other.remove(),e.seg.end=t,e.other.pt=t,s(e.other,e.pt)}function d(e,t){var n=o(t,e.seg.end,e.seg);return p(e,t),f(n,e.primary)}function h(a,o){var l=r.create();function s(e,n){var r=e.seg.start,a=e.seg.end,o=n.seg.start,i=n.seg.end;return t.pointsCollinear(r,o,i)?t.pointsCollinear(a,o,i)||t.pointAboveOrOnLine(a,o,i)?1:-1:t.pointAboveOrOnLine(r,o,i)?1:-1}function u(e){return l.findTransition((function(t){var n=s(e,t.ev);return n>0}))}function c(e,r){var a=e.seg,o=r.seg,i=a.start,l=a.end,s=o.start,u=o.end;n&&n.checkIntersection(a,o);var c=t.linesIntersect(i,l,s,u);if(!1===c){if(!t.pointsCollinear(i,l,s))return!1;if(t.pointsSame(i,u)||t.pointsSame(l,s))return!1;var f=t.pointsSame(i,s),p=t.pointsSame(l,u);if(f&&p)return r;var h=!f&&t.pointBetween(i,s,u),v=!p&&t.pointBetween(l,s,u);if(f)return v?d(r,l):d(e,u),r;h&&(p||(v?d(r,l):d(e,u)),d(r,i))}else 0===c.alongA&&(-1===c.alongB?d(e,s):0===c.alongB?d(e,c.pt):1===c.alongB&&d(e,u)),0===c.alongB&&(-1===c.alongA?d(r,i):0===c.alongA?d(r,c.pt):1===c.alongA&&d(r,l));return!1}var f=[];while(!i.isEmpty()){var p=i.getHead();if(n&&n.vert(p.pt[0]),p.isStart){n&&n.segmentNew(p.seg,p.primary);var h=u(p),v=h.before?h.before.ev:null,m=h.after?h.after.ev:null;function y(){if(v){var e=c(p,v);if(e)return e}return!!m&&c(p,m)}n&&n.tempStatus(p.seg,!!v&&v.seg,!!m&&m.seg);var g,b=y();if(b){var x;if(e)x=null===p.seg.myFill.below||p.seg.myFill.above!==p.seg.myFill.below,x&&(b.seg.myFill.above=!b.seg.myFill.above);else b.seg.otherFill=p.seg.myFill;n&&n.segmentUpdate(b.seg),p.other.remove(),p.remove()}if(i.getHead()!==p){n&&n.rewind(p.seg);continue}if(e)x=null===p.seg.myFill.below||p.seg.myFill.above!==p.seg.myFill.below,p.seg.myFill.below=m?m.seg.myFill.above:a,p.seg.myFill.above=x?!p.seg.myFill.below:p.seg.myFill.below;else if(null===p.seg.otherFill)g=m?p.primary===m.primary?m.seg.otherFill.above:m.seg.myFill.above:p.primary?o:a,p.seg.otherFill={above:g,below:g};n&&n.status(p.seg,!!v&&v.seg,!!m&&m.seg),p.other.status=h.insert(r.node({ev:p}))}else{var _=p.status;if(null===_)throw new Error("PolyBool: Zero-length segment detected; your epsilon is probably too small or too large");if(l.exists(_.prev)&&l.exists(_.next)&&c(_.prev.ev,_.next.ev),n&&n.statusRemove(_.ev.seg),_.remove(),!p.primary){var w=p.seg.myFill;p.seg.myFill=p.seg.otherFill,p.seg.otherFill=w}f.push(p.seg)}i.getHead().remove()}return n&&n.done(),f}return e?{addRegion:function(e){for(var n,r=e[e.length-1],o=0;o<e.length;o++){n=r,r=e[o];var i=t.pointsCompare(n,r);0!==i&&f(a(i<0?n:r,i<0?r:n),!0)}},calculate:function(e){return h(e,!1)}}:{calculate:function(e,t,n,r){return e.forEach((function(e){f(o(e.start,e.end,e),!0)})),n.forEach((function(e){f(o(e.start,e.end,e),!1)})),h(t,r)}}}t.exports=a},{"./linked-list":496}],496:[function(e,t,n){var r={create:function(){var e={root:{root:!0,next:null},exists:function(t){return null!==t&&t!==e.root},isEmpty:function(){return null===e.root.next},getHead:function(){return e.root.next},insertBefore:function(t,n){var r=e.root,a=e.root.next;while(null!==a){if(n(a))return t.prev=a.prev,t.next=a,a.prev.next=t,void(a.prev=t);r=a,a=a.next}r.next=t,t.prev=r,t.next=null},findTransition:function(t){var n=e.root,r=e.root.next;while(null!==r){if(t(r))break;n=r,r=r.next}return{before:n===e.root?null:n,after:r,insert:function(e){return e.prev=n,e.next=r,n.next=e,null!==r&&(r.prev=e),e}}}};return e},node:function(e){return e.prev=null,e.next=null,e.remove=function(){e.prev.next=e.next,e.next&&(e.next.prev=e.prev),e.prev=null,e.next=null},e}};t.exports=r},{}],497:[function(e,t,n){function r(e,t,n){var r=[],a=[];return e.forEach((function(e){var o=e.start,i=e.end;if(t.pointsSame(o,i))console.warn("PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large");else{n&&n.chainStart(e);for(var l={index:0,matches_head:!1,matches_pt1:!1},s={index:0,matches_head:!1,matches_pt1:!1},u=l,c=0;c<r.length;c++){var f=r[c],p=f[0],d=(f[1],f[f.length-1]);f[f.length-2];if(t.pointsSame(p,o)){if(T(c,!0,!0))break}else if(t.pointsSame(p,i)){if(T(c,!0,!1))break}else if(t.pointsSame(d,o)){if(T(c,!1,!0))break}else if(t.pointsSame(d,i)&&T(c,!1,!1))break}if(u===l)return r.push([o,i]),void(n&&n.chainNew(o,i));if(u===s){n&&n.chainMatch(l.index);var h=l.index,v=l.matches_pt1?i:o,m=l.matches_head,y=(f=r[h],m?f[0]:f[f.length-1]),g=m?f[1]:f[f.length-2],b=m?f[f.length-1]:f[0],x=m?f[f.length-2]:f[1];return t.pointsCollinear(g,y,v)&&(m?(n&&n.chainRemoveHead(l.index,v),f.shift()):(n&&n.chainRemoveTail(l.index,v),f.pop()),y=g),t.pointsSame(b,v)?(r.splice(h,1),t.pointsCollinear(x,b,y)&&(m?(n&&n.chainRemoveTail(l.index,y),f.pop()):(n&&n.chainRemoveHead(l.index,y),f.shift())),n&&n.chainClose(l.index),void a.push(f)):void(m?(n&&n.chainAddHead(l.index,v),f.unshift(v)):(n&&n.chainAddTail(l.index,v),f.push(v)))}var _=l.index,w=s.index;n&&n.chainConnect(_,w);var k=r[_].length<r[w].length;l.matches_head?s.matches_head?k?(E(_),O(_,w)):(E(w),O(w,_)):O(w,_):s.matches_head?O(_,w):k?(E(_),O(w,_)):(E(w),O(_,w))}function T(e,t,n){return u.index=e,u.matches_head=t,u.matches_pt1=n,u===l?(u=s,!1):(u=null,!0)}function E(e){n&&n.chainReverse(e),r[e].reverse()}function O(e,a){var o=r[e],i=r[a],l=o[o.length-1],s=o[o.length-2],u=i[0],c=i[1];t.pointsCollinear(s,l,u)&&(n&&n.chainRemoveTail(e,l),o.pop(),l=s),t.pointsCollinear(l,u,c)&&(n&&n.chainRemoveHead(a,u),i.shift()),n&&n.chainJoin(e,a),r[e]=o.concat(i),r.splice(a,1)}})),a}t.exports=r},{}],498:[function(e,t,n){function r(e,t,n){var r=[];return e.forEach((function(e){var a=(e.myFill.above?8:0)+(e.myFill.below?4:0)+(e.otherFill&&e.otherFill.above?2:0)+(e.otherFill&&e.otherFill.below?1:0);0!==t[a]&&r.push({id:n?n.segmentId():-1,start:e.start,end:e.end,myFill:{above:1===t[a],below:2===t[a]},otherFill:null})})),n&&n.selected(r),r}var a={union:function(e,t){return r(e,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],t)},intersect:function(e,t){return r(e,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],t)},difference:function(e,t){return r(e,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],t)},differenceRev:function(e,t){return r(e,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],t)},xor:function(e,t){return r(e,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],t)}};t.exports=a},{}],499:[function(e,t,n){"use strict";var r=new Float64Array(4),a=new Float64Array(4),o=new Float64Array(4);function i(e,t,n,i,l){r.length<i.length&&(r=new Float64Array(i.length),a=new Float64Array(i.length),o=new Float64Array(i.length));for(var s=0;s<i.length;++s)r[s]=e[s]-i[s],a[s]=t[s]-e[s],o[s]=n[s]-e[s];var u=0,c=0,f=0,p=0,d=0,h=0;for(s=0;s<i.length;++s){var v=a[s],m=o[s],y=r[s];u+=v*v,c+=v*m,f+=m*m,p+=y*v,d+=y*m,h+=y*y}var g,b,x,_,w,k=Math.abs(u*f-c*c),T=c*d-f*p,E=c*p-u*d;if(T+E<=k)if(T<0)E<0&&p<0?(E=0,-p>=u?(T=1,g=u+2*p+h):(T=-p/u,g=p*T+h)):(T=0,d>=0?(E=0,g=h):-d>=f?(E=1,g=f+2*d+h):(E=-d/f,g=d*E+h));else if(E<0)E=0,p>=0?(T=0,g=h):-p>=u?(T=1,g=u+2*p+h):(T=-p/u,g=p*T+h);else{var O=1/k;T*=O,E*=O,g=T*(u*T+c*E+2*p)+E*(c*T+f*E+2*d)+h}else T<0?(b=c+p,x=f+d,x>b?(_=x-b,w=u-2*c+f,_>=w?(T=1,E=0,g=u+2*p+h):(T=_/w,E=1-T,g=T*(u*T+c*E+2*p)+E*(c*T+f*E+2*d)+h)):(T=0,x<=0?(E=1,g=f+2*d+h):d>=0?(E=0,g=h):(E=-d/f,g=d*E+h))):E<0?(b=c+d,x=u+p,x>b?(_=x-b,w=u-2*c+f,_>=w?(E=1,T=0,g=f+2*d+h):(E=_/w,T=1-E,g=T*(u*T+c*E+2*p)+E*(c*T+f*E+2*d)+h)):(E=0,x<=0?(T=1,g=u+2*p+h):p>=0?(T=0,g=h):(T=-p/u,g=p*T+h))):(_=f+d-c-p,_<=0?(T=0,E=1,g=f+2*d+h):(w=u-2*c+f,_>=w?(T=1,E=0,g=u+2*p+h):(T=_/w,E=1-T,g=T*(u*T+c*E+2*p)+E*(c*T+f*E+2*d)+h)));var M=1-T-E;for(s=0;s<i.length;++s)l[s]=M*e[s]+T*t[s]+E*n[s];return g<0?0:g}t.exports=i},{}],500:[function(e,t,n){var r,a,o=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function s(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function u(e){if(a===clearTimeout)return clearTimeout(e);if((a===l||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{return a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(function(){try{r="function"===typeof setTimeout?setTimeout:i}catch(e){r=i}try{a="function"===typeof clearTimeout?clearTimeout:l}catch(e){a=l}})();var c,f=[],p=!1,d=-1;function h(){p&&c&&(p=!1,c.length?f=c.concat(f):d=-1,f.length&&v())}function v(){if(!p){var e=s(h);p=!0;var t=f.length;while(t){c=f,f=[];while(++d<t)c&&c[d].run();d=-1,t=f.length}c=null,p=!1,u(e)}}function m(e,t){this.fun=e,this.array=t}function y(){}o.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];f.push(new m(e,t)),1!==f.length||p||s(v)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=y,o.addListener=y,o.once=y,o.off=y,o.removeListener=y,o.removeAllListeners=y,o.emit=y,o.prependListener=y,o.prependOnceListener=y,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],501:[function(e,t,n){t.exports=e("gl-quat/slerp")},{"gl-quat/slerp":304}],502:[function(e,n,r){(function(t){for(var r=e("performance-now"),a="undefined"===typeof window?t:window,o=["moz","webkit"],i="AnimationFrame",l=a["request"+i],s=a["cancel"+i]||a["cancelRequest"+i],u=0;!l&&u<o.length;u++)l=a[o[u]+"Request"+i],s=a[o[u]+"Cancel"+i]||a[o[u]+"CancelRequest"+i];if(!l||!s){var c=0,f=0,p=[],d=1e3/60;l=function(e){if(0===p.length){var t=r(),n=Math.max(0,d-(t-c));c=n+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(c)}catch(n){setTimeout((function(){throw n}),0)}}),Math.round(n))}return p.push({handle:++f,callback:e,cancelled:!1}),f},s=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}n.exports=function(e){return l.call(a,e)},n.exports.cancel=function(){s.apply(a,arguments)},n.exports.polyfill=function(e){e||(e=a),e.requestAnimationFrame=l,e.cancelAnimationFrame=s}}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"performance-now":482}],503:[function(e,t,n){"use strict";var r=e("big-rat/add");function a(e,t){for(var n=e.length,a=new Array(n),o=0;o<n;++o)a[o]=r(e[o],t[o]);return a}t.exports=a},{"big-rat/add":80}],504:[function(e,t,n){"use strict";t.exports=a;var r=e("big-rat");function a(e){for(var t=new Array(e.length),n=0;n<e.length;++n)t[n]=r(e[n]);return t}},{"big-rat":83}],505:[function(e,t,n){"use strict";var r=e("big-rat"),a=e("big-rat/mul");function o(e,t){for(var n=r(t),o=e.length,i=new Array(o),l=0;l<o;++l)i[l]=a(e[l],n);return i}t.exports=o},{"big-rat":83,"big-rat/mul":92}],506:[function(e,t,n){"use strict";var r=e("big-rat/sub");function a(e,t){for(var n=e.length,a=new Array(n),o=0;o<n;++o)a[o]=r(e[o],t[o]);return a}t.exports=a},{"big-rat/sub":94}],507:[function(e,t,n){"use strict";var r=e("compare-cell"),a=e("compare-oriented-cell"),o=e("cell-orientation");function i(e){e.sort(a);for(var t=e.length,n=0,i=0;i<t;++i){var l=e[i],s=o(l);if(0!==s){if(n>0){var u=e[n-1];if(0===r(l,u)&&o(u)!==s){n-=1;continue}}e[n++]=l}}return e.length=n,e}t.exports=i},{"cell-orientation":117,"compare-cell":133,"compare-oriented-cell":134}],508:[function(e,t,n){"use strict";var r=e("array-bounds"),a=e("color-normalize"),o=e("update-diff"),i=e("pick-by-alias"),l=e("object-assign"),s=e("flatten-vertex-data"),u=e("to-float32"),c=u.float32,f=u.fract32;t.exports=d;var p=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]];function d(e,t){if("function"===typeof e?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");var n,u,d,h,v,m,y=e._gl,g={color:"black",capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},b=[];return h=e.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array(0)}),u=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),d=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),v=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)}),m=e.buffer({usage:"static",type:"float",data:p}),k(t),n=e({vert:"\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t",frag:"\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t",uniforms:{range:e.prop("range"),lineWidth:e.prop("lineWidth"),capSize:e.prop("capSize"),opacity:e.prop("opacity"),scale:e.prop("scale"),translate:e.prop("translate"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),viewport:function(e,t){return[t.viewport.x,t.viewport.y,e.viewportWidth,e.viewportHeight]}},attributes:{color:{buffer:h,offset:function(e,t){return 4*t.offset},divisor:1},position:{buffer:u,offset:function(e,t){return 8*t.offset},divisor:1},positionFract:{buffer:d,offset:function(e,t){return 8*t.offset},divisor:1},error:{buffer:v,offset:function(e,t){return 16*t.offset},divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,stride:24,offset:16}},primitive:"triangles",blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:!1,instances:e.prop("count"),count:p.length}),l(x,{update:k,draw:_,destroy:T,regl:e,gl:y,canvas:y.canvas,groups:b}),x;function x(e){e?k(e):null===e&&T(),_()}function _(t){if("number"===typeof t)return w(t);t&&!Array.isArray(t)&&(t=[t]),e._refresh(),b.forEach((function(e,n){e&&(t&&(t[n]?e.draw=!0:e.draw=!1),e.draw?w(n):e.draw=!0)}))}function w(e){"number"===typeof e&&(e=b[e]),null!=e&&e&&e.count&&e.color&&e.opacity&&e.positions&&e.positions.length>1&&(e.scaleRatio=[e.scale[0]*e.viewport.width,e.scale[1]*e.viewport.height],n(e),e.after&&e.after(e))}function k(e){if(e){null!=e.length?"number"===typeof e[0]&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);var t=0,n=0;if(x.groups=b=e.map((function(e,u){var c=b[u];return e?("function"===typeof e?e={after:e}:"number"===typeof e[0]&&(e={positions:e}),e=i(e,{color:"color colors fill",capSize:"capSize cap capsize cap-size",lineWidth:"lineWidth line-width width line thickness",opacity:"opacity alpha",range:"range dataBox",viewport:"viewport viewBox",errors:"errors error",positions:"positions position data points"}),c||(b[u]=c={id:u,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},e=l({},g,e)),o(c,e,[{lineWidth:function(e){return.5*+e},capSize:function(e){return.5*+e},opacity:parseFloat,errors:function(e){return e=s(e),n+=e.length,e},positions:function(e,n){return e=s(e,"float64"),n.count=Math.floor(e.length/2),n.bounds=r(e,2),n.offset=t,t+=n.count,e}},{color:function(e,t){var n=t.count;if(e||(e="transparent"),!Array.isArray(e)||"number"===typeof e[0]){var r=e;e=Array(n);for(var o=0;o<n;o++)e[o]=r}if(e.length<n)throw Error("Not enough colors");for(var i=new Uint8Array(4*n),l=0;l<n;l++){var s=a(e[l],"uint8");i.set(s,4*l)}return i},range:function(e,t,n){var r=t.bounds;return e||(e=r),t.scale=[1/(e[2]-e[0]),1/(e[3]-e[1])],t.translate=[-e[0],-e[1]],t.scaleFract=f(t.scale),t.translateFract=f(t.translate),e},viewport:function(e){var t;return Array.isArray(e)?t={x:e[0],y:e[1],width:e[2]-e[0],height:e[3]-e[1]}:e?(t={x:e.x||e.left||0,y:e.y||e.top||0},e.right?t.width=e.right-t.x:t.width=e.w||e.width||0,e.bottom?t.height=e.bottom-t.y:t.height=e.h||e.height||0):t={x:0,y:0,width:y.drawingBufferWidth,height:y.drawingBufferHeight},t}}]),c):c})),t||n){var p=b.reduce((function(e,t,n){return e+(t?t.count:0)}),0),m=new Float64Array(2*p),_=new Uint8Array(4*p),w=new Float32Array(4*p);b.forEach((function(e,t){if(e){var n=e.positions,r=e.count,a=e.offset,o=e.color,i=e.errors;r&&(_.set(o,4*a),w.set(i,4*a),m.set(n,2*a))}})),u(c(m)),d(f(m)),h(_),v(w)}}}function T(){u.destroy(),d.destroy(),h.destroy(),v.destroy(),m.destroy()}}},{"array-bounds":70,"color-normalize":125,"flatten-vertex-data":244,"object-assign":473,"pick-by-alias":485,"to-float32":549,"update-diff":571}],509:[function(e,t,n){"use strict";var r=e("color-normalize"),a=e("array-bounds"),o=e("object-assign"),i=e("glslify"),l=e("pick-by-alias"),s=e("flatten-vertex-data"),u=e("earcut"),c=e("array-normalize"),f=e("to-float32"),p=f.float32,d=f.fract32,h=e("es6-weak-map"),v=e("parse-rect");function m(e,t){if(!(this instanceof m))return new m(e,t);if("function"===typeof e?(t||(t={}),t.regl=e):t=e,t.length&&(t.positions=t),e=t.regl,!e.hasExtension("ANGLE_instanced_arrays"))throw Error("regl-error2d: `ANGLE_instanced_arrays` extension should be enabled");this.gl=e._gl,this.regl=e,this.passes=[],this.shaders=m.shaders.has(e)?m.shaders.get(e):m.shaders.set(e,m.createShaders(e)).get(e),this.update(t)}t.exports=m,m.dashMult=2,m.maxPatternLength=256,m.precisionThreshold=3e6,m.maxPoints=1e4,m.maxLines=2048,m.shaders=new h,m.createShaders=function(e){var t,n=e.buffer({usage:"static",type:"float",data:[0,1,0,0,1,1,1,0]}),r={primitive:"triangle strip",instances:e.prop("count"),count:4,offset:0,uniforms:{miterMode:function(e,t){return"round"===t.join?2:1},miterLimit:e.prop("miterLimit"),scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),thickness:e.prop("thickness"),dashPattern:e.prop("dashTexture"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),dashSize:e.prop("dashLength"),viewport:function(e,t){return[t.viewport.x,t.viewport.y,e.viewportWidth,e.viewportHeight]},depth:e.prop("depth")},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:"add",alpha:"add"},func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},depth:{enable:function(e,t){return!t.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport")},a=e(o({vert:i(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n + positionFract * scale + translateFract\n + position * scaleFract\n + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n"]),frag:i(["precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\n\nuniform float dashSize, pixelRatio, thickness, opacity, id;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n"]),attributes:{lineEnd:{buffer:n,divisor:0,stride:8,offset:0},lineTop:{buffer:n,divisor:0,stride:8,offset:4},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},aCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8,divisor:1},bCoordFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:16,divisor:1},color:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1}}},r));try{t=e(o({cull:{enable:!0,face:"back"},vert:i(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n return ( val < 0.0 || 0.0 < val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n vec2 adjustedScale;\n adjustedScale.x = (abs(scale.x) < MIN_DIFF) ? MIN_DIFF : scale.x;\n adjustedScale.y = (abs(scale.y) < MIN_DIFF) ? MIN_DIFF : scale.y;\n\n vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) < MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) < MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) < length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) <= REVERSE_THRESHOLD && abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) < length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse && baClipping > 0. && baClipping < length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse && abClipping > 0. && abClipping < length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x) / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n"]),frag:i(["precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd < 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius > cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n"]),attributes:{lineEnd:{buffer:n,divisor:0,stride:8,offset:0},lineTop:{buffer:n,divisor:0,stride:8,offset:4},aColor:{buffer:e.prop("colorBuffer"),stride:4,offset:0,divisor:1},bColor:{buffer:e.prop("colorBuffer"),stride:4,offset:4,divisor:1},prevCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:0,divisor:1},aCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:8,divisor:1},bCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:16,divisor:1},nextCoord:{buffer:e.prop("positionBuffer"),stride:8,offset:24,divisor:1}}},r))}catch(s){t=a}var l=e({primitive:"triangle",elements:function(e,t){return t.triangles},offset:0,vert:i(["precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n + positionFract * scale + translateFract\n + position * scaleFract\n + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n"]),frag:i(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n"]),uniforms:{scale:e.prop("scale"),color:e.prop("fill"),scaleFract:e.prop("scaleFract"),translateFract:e.prop("translateFract"),translate:e.prop("translate"),opacity:e.prop("opacity"),pixelRatio:e.context("pixelRatio"),id:e.prop("id"),viewport:function(e,t){return[t.viewport.x,t.viewport.y,e.viewportWidth,e.viewportHeight]}},attributes:{position:{buffer:e.prop("positionBuffer"),stride:8,offset:8},positionFract:{buffer:e.prop("positionFractBuffer"),stride:8,offset:8}},blend:r.blend,depth:{enable:!1},scissor:r.scissor,stencil:r.stencil,viewport:r.viewport});return{fill:l,rect:a,miter:t}},m.defaults={dashes:null,join:"miter",miterLimit:1,thickness:10,cap:"square",color:"black",opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},m.prototype.render=function(){var e,t=[],n=arguments.length;while(n--)t[n]=arguments[n];t.length&&(e=this).update.apply(e,t),this.draw()},m.prototype.draw=function(){var e=this,t=[],n=arguments.length;while(n--)t[n]=arguments[n];return(t.length?t:this.passes).forEach((function(t,n){var r;if(t&&Array.isArray(t))return(r=e).draw.apply(r,t);"number"===typeof t&&(t=e.passes[t]),t&&t.count>1&&t.opacity&&(e.regl._refresh(),t.fill&&t.triangles&&t.triangles.length>2&&e.shaders.fill(t),t.thickness&&(t.scale[0]*t.viewport.width>m.precisionThreshold||t.scale[1]*t.viewport.height>m.precisionThreshold||"rect"===t.join||!t.join&&(t.thickness<=2||t.count>=m.maxPoints)?e.shaders.rect(t):e.shaders.miter(t)))})),this},m.prototype.update=function(e){var t=this;if(e){null!=e.length?"number"===typeof e[0]&&(e=[{positions:e}]):Array.isArray(e)||(e=[e]);var n=this,i=n.regl,f=n.gl;if(e.forEach((function(e,n){var h=t.passes[n];if(void 0!==e)if(null!==e){if("number"===typeof e[0]&&(e={positions:e}),e=l(e,{positions:"positions points data coords",thickness:"thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth",join:"lineJoin linejoin join type mode",miterLimit:"miterlimit miterLimit",dashes:"dash dashes dasharray dash-array dashArray",color:"color colour stroke colors colours stroke-color strokeColor",fill:"fill fill-color fillColor",opacity:"alpha opacity",overlay:"overlay crease overlap intersect",close:"closed close closed-path closePath",range:"range dataBox",viewport:"viewport viewBox",hole:"holes hole hollow"}),h||(t.passes[n]=h={id:n,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:i.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:"linear",min:"linear"}),colorBuffer:i.buffer({usage:"dynamic",type:"uint8",data:new Uint8Array}),positionBuffer:i.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),positionFractBuffer:i.buffer({usage:"dynamic",type:"float",data:new Uint8Array})},e=o({},m.defaults,e)),null!=e.thickness&&(h.thickness=parseFloat(e.thickness)),null!=e.opacity&&(h.opacity=parseFloat(e.opacity)),null!=e.miterLimit&&(h.miterLimit=parseFloat(e.miterLimit)),null!=e.overlay&&(h.overlay=!!e.overlay,n<m.maxLines&&(h.depth=2*(m.maxLines-1-n%m.maxLines)/m.maxLines-1)),null!=e.join&&(h.join=e.join),null!=e.hole&&(h.hole=e.hole),null!=e.fill&&(h.fill=e.fill?r(e.fill,"uint8"):null),null!=e.viewport&&(h.viewport=v(e.viewport)),h.viewport||(h.viewport=v([f.drawingBufferWidth,f.drawingBufferHeight])),null!=e.close&&(h.close=e.close),null===e.positions&&(e.positions=[]),e.positions){var y,g;if(e.positions.x&&e.positions.y){var b=e.positions.x,x=e.positions.y;g=h.count=Math.max(b.length,x.length),y=new Float64Array(2*g);for(var _=0;_<g;_++)y[2*_]=b[_],y[2*_+1]=x[_]}else y=s(e.positions,"float64"),g=h.count=Math.floor(y.length/2);var w=h.bounds=a(y,2);if(h.fill){for(var k=[],T={},E=0,O=0,M=0,S=h.count;O<S;O++){var C=y[2*O],A=y[2*O+1];isNaN(C)||isNaN(A)||null==C||null==A?(C=y[2*E],A=y[2*E+1],T[O]=E):E=O,k[M++]=C,k[M++]=A}for(var P=u(k,h.hole||[]),L=0,D=P.length;L<D;L++)null!=T[P[L]]&&(P[L]=T[P[L]]);h.triangles=P}var j=new Float64Array(y);c(j,2,w);var I=new Float64Array(2*g+6);h.close?y[0]===y[2*g-2]&&y[1]===y[2*g-1]?(I[0]=j[2*g-4],I[1]=j[2*g-3]):(I[0]=j[2*g-2],I[1]=j[2*g-1]):(I[0]=j[0],I[1]=j[1]),I.set(j,2),h.close?y[0]===y[2*g-2]&&y[1]===y[2*g-1]?(I[2*g+2]=j[2],I[2*g+3]=j[3],h.count-=1):(I[2*g+2]=j[0],I[2*g+3]=j[1],I[2*g+4]=j[2],I[2*g+5]=j[3]):(I[2*g+2]=j[2*g-2],I[2*g+3]=j[2*g-1],I[2*g+4]=j[2*g-2],I[2*g+5]=j[2*g-1]),h.positionBuffer(p(I)),h.positionFractBuffer(d(I))}if(e.range?h.range=e.range:h.range||(h.range=h.bounds),(e.range||e.positions)&&h.count){var R=h.bounds,z=R[2]-R[0],N=R[3]-R[1],F=h.range[2]-h.range[0],B=h.range[3]-h.range[1];h.scale=[z/F,N/B],h.translate=[-h.range[0]/F+R[0]/F||0,-h.range[1]/B+R[1]/B||0],h.scaleFract=d(h.scale),h.translateFract=d(h.translate)}if(e.dashes){var V,H=0;if(!e.dashes||e.dashes.length<2)H=1,V=new Uint8Array([255,255,255,255,255,255,255,255]);else{H=0;for(var U=0;U<e.dashes.length;++U)H+=e.dashes[U];V=new Uint8Array(H*m.dashMult);for(var W=0,q=255,$=0;$<2;$++)for(var G=0;G<e.dashes.length;++G){for(var Y=0,K=e.dashes[G]*m.dashMult*.5;Y<K;++Y)V[W++]=q;q^=255}}h.dashLength=H,h.dashTexture({channels:1,data:V,width:V.length,height:1,mag:"linear",min:"linear"},0,0)}if(e.color){var X=h.count,Z=e.color;Z||(Z="transparent");var J=new Uint8Array(4*X+4);if(Array.isArray(Z)&&"number"!==typeof Z[0]){for(var Q=0;Q<X;Q++){var ee=r(Z[Q],"uint8");J.set(ee,4*Q)}J.set(r(Z[0],"uint8"),4*X)}else for(var te=r(Z,"uint8"),ne=0;ne<X+1;ne++)J.set(te,4*ne);h.colorBuffer({usage:"dynamic",type:"uint8",data:J})}}else t.passes[n]=null})),e.length<this.passes.length){for(var h=e.length;h<this.passes.length;h++){var y=this.passes[h];y&&(y.colorBuffer.destroy(),y.positionBuffer.destroy(),y.dashTexture.destroy())}this.passes.length=e.length}for(var g=[],b=0;b<this.passes.length;b++)null!==this.passes[b]&&g.push(this.passes[b]);return this.passes=g,this}},m.prototype.destroy=function(){return this.passes.forEach((function(e){e.colorBuffer.destroy(),e.positionBuffer.destroy(),e.dashTexture.destroy()})),this.passes.length=0,this}},{"array-bounds":70,"array-normalize":71,"color-normalize":125,earcut:177,"es6-weak-map":233,"flatten-vertex-data":244,glslify:413,"object-assign":473,"parse-rect":478,"pick-by-alias":485,"to-float32":549}],510:[function(e,t,n){"use strict";function r(e,t){return i(e)||s(e,t)||u(e,t)||p()}function a(e){return o(e)||l(e)||u(e)||f()}function o(e){if(Array.isArray(e))return c(e)}function i(e){if(Array.isArray(e))return e}function l(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function s(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)if(n.push(i.value),t&&n.length===t)break}catch(s){a=!0,o=s}finally{try{r||null==l["return"]||l["return"]()}finally{if(a)throw o}}return n}}function u(e,t){if(e){if("string"===typeof e)return c(e,t);var n=Object.prototype.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)?c(e,t):void 0}}function c(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 f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var d=e("color-normalize"),h=e("array-bounds"),v=e("color-id"),m=e("@plotly/point-cluster"),y=e("object-assign"),g=e("glslify"),b=e("pick-by-alias"),x=e("update-diff"),_=e("flatten-vertex-data"),w=e("is-iexplorer"),k=e("to-float32"),T=e("parse-rect"),E=O;function O(e,t){var n=this;if(!(this instanceof O))return new O(e,t);"function"===typeof e?(t||(t={}),t.regl=e):(t=e,e=null),t&&t.length&&(t.positions=t),e=t.regl;var r,a=e._gl,o=[],i={},l=[],s=[null],u=[null],c=255,f=100;this.tooManyColors=w,r=e.texture({data:new Uint8Array(4*c),width:c,height:1,type:"uint8",format:"rgba",wrapS:"clamp",wrapT:"clamp",mag:"nearest",min:"nearest"}),y(this,{regl:e,gl:a,groups:l,markerCache:u,markerTextures:s,palette:o,paletteIds:i,paletteTexture:r,maxColors:c,maxSize:f,canvas:a.canvas}),this.update(t);var p={uniforms:{constPointSize:!!t.constPointSize,pixelRatio:e.context("pixelRatio"),palette:r,paletteSize:function(e,t){return[n.tooManyColors?0:c,r.height]},scale:e.prop("scale"),scaleFract:e.prop("scaleFract"),translate:e.prop("translate"),translateFract:e.prop("translateFract"),opacity:e.prop("opacity"),marker:e.prop("markerTexture")},attributes:{x:function(e,t){return t.xAttr||{buffer:t.positionBuffer,stride:8,offset:0}},y:function(e,t){return t.yAttr||{buffer:t.positionBuffer,stride:8,offset:4}},xFract:function(e,t){return t.xAttr?{constant:[0,0]}:{buffer:t.positionFractBuffer,stride:8,offset:0}},yFract:function(e,t){return t.yAttr?{constant:[0,0]}:{buffer:t.positionFractBuffer,stride:8,offset:4}},size:function(e,t){return t.size.length?{buffer:t.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*t.size/n.maxSize)]}},borderSize:function(e,t){return t.borderSize.length?{buffer:t.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*t.borderSize/n.maxSize)]}},colorId:function(e,t){return t.color.length?{buffer:t.colorBuffer,stride:n.tooManyColors?8:4,offset:0}:{constant:n.tooManyColors?o.slice(4*t.color,4*t.color+4):[t.color]}},borderColorId:function(e,t){return t.borderColor.length?{buffer:t.colorBuffer,stride:n.tooManyColors?8:4,offset:n.tooManyColors?4:2}:{constant:n.tooManyColors?o.slice(4*t.borderColor,4*t.borderColor+4):[t.borderColor]}},isActive:function(e,t){return!0===t.activation?{constant:[1]}:t.activation?t.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:"one minus dst alpha",dstAlpha:"one"}},scissor:{enable:!0,box:e.prop("viewport")},viewport:e.prop("viewport"),stencil:{enable:!1},depth:{enable:!1},elements:e.prop("elements"),count:e.prop("count"),offset:e.prop("offset"),primitive:"points"},d=y({},p);d.frag=g(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nuniform sampler2D marker;\nuniform float opacity;\n\nfloat smoothStep(float x, float y) {\n return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n float dist = texture2D(marker, gl_PointCoord).r, delta = fragWidth;\n\n // max-distance alpha\n if (dist < 0.003) discard;\n\n // null-border case\n if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n }\n else {\n float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n vec4 color = fragBorderColor;\n color.a *= borderColorAmt;\n color = mix(color, fragColor, colorAmt);\n color.a *= opacity;\n\n gl_FragColor = color;\n }\n\n}\n"]),d.vert=g(["precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x < 1.);\n\nvec4 getColor(vec4 id) {\n return isDirect ? id / 255. : texture2D(palette,\n vec2(\n (id.x + .5) / paletteSize.x,\n (id.y + .5) / paletteSize.y\n )\n );\n}\n\nvoid main() {\n // ignore inactive points\n if (isActive == 0.) return;\n\n vec2 position = vec2(x, y);\n vec2 positionFract = vec2(xFract, yFract);\n\n vec4 color = getColor(colorId);\n vec4 borderColor = getColor(borderColorId);\n\n float size = size * maxSize / 255.;\n float borderSize = borderSize * maxSize / 255.;\n\n gl_PointSize = 2. * size * pointSizeScale;\n fragPointSize = size * pixelRatio;\n\n vec2 pos = (position + translate) * scale\n + (positionFract + translateFract) * scale\n + (position + translate) * scaleFract\n + (positionFract + translateFract) * scaleFract;\n\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n fragColor = color;\n fragBorderColor = borderColor;\n fragWidth = 1. / gl_PointSize;\n\n fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}"]),this.drawMarker=e(d);var h=y({},p);h.frag=g(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\n\nuniform float opacity;\nvarying float fragBorderRadius, fragWidth;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius > 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n"]),h.vert=g(["precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\nuniform vec2 paletteSize;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x < 1.);\n\nvec4 getColor(vec4 id) {\n return isDirect ? id / 255. : texture2D(palette,\n vec2(\n (id.x + .5) / paletteSize.x,\n (id.y + .5) / paletteSize.y\n )\n );\n}\n\nvoid main() {\n // ignore inactive points\n if (isActive == 0.) return;\n\n vec2 position = vec2(x, y);\n vec2 positionFract = vec2(xFract, yFract);\n\n vec4 color = getColor(colorId);\n vec4 borderColor = getColor(borderColorId);\n\n float size = size * maxSize / 255.;\n float borderSize = borderSize * maxSize / 255.;\n\n gl_PointSize = (size + borderSize) * pointSizeScale;\n\n vec2 pos = (position + translate) * scale\n + (positionFract + translateFract) * scale\n + (position + translate) * scaleFract\n + (positionFract + translateFract) * scaleFract;\n\n gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n fragColor = color;\n fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n fragWidth = 1. / gl_PointSize;\n}\n"]),w&&(h.frag=h.frag.replace("smoothstep","smoothStep"),d.frag=d.frag.replace("smoothstep","smoothStep")),this.drawCircle=e(h)}O.defaults={color:"black",borderColor:"transparent",borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},O.prototype.render=function(){return arguments.length&&this.update.apply(this,arguments),this.draw(),this},O.prototype.draw=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=this.groups;if(1===n.length&&Array.isArray(n[0])&&(null===n[0][0]||Array.isArray(n[0][0]))&&(n=n[0]),this.regl._refresh(),n.length)for(var o=0;o<n.length;o++)this.drawItem(o,n[o]);else a.forEach((function(t,n){e.drawItem(n)}));return this},O.prototype.drawItem=function(e,t){var n=this.groups,r=n[e];if("number"===typeof t&&(e=t,r=n[t],t=null),r&&r.count&&r.opacity){r.activation[0]&&this.drawCircle(this.getMarkerDrawOptions(0,r,t));for(var o=[],i=1;i<r.activation.length;i++)r.activation[i]&&(!0===r.activation[i]||r.activation[i].data.length)&&o.push.apply(o,a(this.getMarkerDrawOptions(i,r,t)));o.length&&this.drawMarker(o)}},O.prototype.getMarkerDrawOptions=function(e,t,n){var a=t.range,o=t.tree,i=t.viewport,l=t.activation,s=t.selectionBuffer,u=t.count;this.regl;if(!o)return n?[y({},t,{markerTexture:this.markerTextures[e],activation:l[e],count:n.length,elements:n,offset:0})]:[y({},t,{markerTexture:this.markerTextures[e],activation:l[e],offset:0})];var c=[],f=o.range(a,{lod:!0,px:[(a[2]-a[0])/i.width,(a[3]-a[1])/i.height]});if(n){for(var p=l[e],d=p.data,h=new Uint8Array(u),v=0;v<n.length;v++){var m=n[v];h[m]=d?d[m]:1}s.subdata(h)}for(var g=f.length;g--;){var b=r(f[g],2),x=b[0],_=b[1];c.push(y({},t,{markerTexture:this.markerTextures[e],activation:n?s:l[e],offset:x,count:_-x}))}return c},O.prototype.update=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length){1===n.length&&Array.isArray(n[0])&&(n=n[0]);var a=this.groups,o=this.gl,i=this.regl,l=this.maxSize,s=this.maxColors,u=this.palette;this.groups=a=n.map((function(t,n){var r=a[n];if(void 0===t)return r;null===t?t={positions:null}:"function"===typeof t?t={ondraw:t}:"number"===typeof t[0]&&(t={positions:t}),t=b(t,{positions:"positions data points",snap:"snap cluster lod tree",size:"sizes size radius",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",color:"colors color fill fill-color fillColor",borderColor:"borderColors borderColor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range dataBox databox",viewport:"viewport viewPort viewBox viewbox",opacity:"opacity alpha transparency",bounds:"bound bounds boundaries limits",tooManyColors:"tooManyColors palette paletteMode optimizePalette enablePalette"}),null===t.positions&&(t.positions=[]),null!=t.tooManyColors&&(e.tooManyColors=t.tooManyColors),r||(a[n]=r={id:n,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:i.buffer({data:new Uint8Array(0),usage:"stream",type:"uint8"}),sizeBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),colorBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"uint8"}),positionBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"}),positionFractBuffer:i.buffer({data:new Uint8Array(0),usage:"dynamic",type:"float"})},t=y({},O.defaults,t)),t.positions&&!("marker"in t)&&(t.marker=r.marker,delete r.marker),t.marker&&!("positions"in t)&&(t.positions=r.positions,delete r.positions);var c=0,f=0;if(x(r,t,[{snap:!0,size:function(e,t){return null==e&&(e=O.defaults.size),c+=e&&e.length?1:0,e},borderSize:function(e,t){return null==e&&(e=O.defaults.borderSize),c+=e&&e.length?1:0,e},opacity:parseFloat,color:function(t,n){return null==t&&(t=O.defaults.color),t=e.updateColor(t),f++,t},borderColor:function(t,n){return null==t&&(t=O.defaults.borderColor),t=e.updateColor(t),f++,t},bounds:function(e,t,n){return"range"in n||(n.range=null),e},positions:function(e,t,n){var r=t.snap,a=t.positionBuffer,o=t.positionFractBuffer,l=t.selectionBuffer;if(e.x||e.y)return e.x.length?t.xAttr={buffer:i.buffer(e.x),offset:0,stride:4,count:e.x.length}:t.xAttr={buffer:e.x.buffer,offset:4*e.x.offset||0,stride:4*(e.x.stride||1),count:e.x.count},e.y.length?t.yAttr={buffer:i.buffer(e.y),offset:0,stride:4,count:e.y.length}:t.yAttr={buffer:e.y.buffer,offset:4*e.y.offset||0,stride:4*(e.y.stride||1),count:e.y.count},t.count=Math.max(t.xAttr.count,t.yAttr.count),e;e=_(e,"float64");var s=t.count=Math.floor(e.length/2),u=t.bounds=s?h(e,2):null;if(n.range||t.range||(delete t.range,n.range=u),n.marker||t.marker||(delete t.marker,n.marker=null),r&&(!0===r||s>r)?t.tree=m(e,{bounds:u}):r&&r.length&&(t.tree=r),t.tree){var c={primitive:"points",usage:"static",data:t.tree,type:"uint32"};t.elements?t.elements(c):t.elements=i.elements(c)}return a({data:k.float(e),usage:"dynamic"}),o({data:k.fract(e),usage:"dynamic"}),l({data:new Uint8Array(s),type:"uint8",usage:"stream"}),e}},{marker:function(t,n,r){var a=n.activation;if(a.forEach((function(e){return e&&e.destroy&&e.destroy()})),a.length=0,t&&"number"!==typeof t[0]){for(var o=[],l=0,s=Math.min(t.length,n.count);l<s;l++){var u=e.addMarker(t[l]);o[u]||(o[u]=new Uint8Array(n.count)),o[u][l]=1}for(var c=0;c<o.length;c++)if(o[c]){var f={data:o[c],type:"uint8",usage:"static"};a[c]?a[c](f):a[c]=i.buffer(f),a[c].data=o[c]}}else{var p=e.addMarker(t);a[p]=!0}return t},range:function(e,t,n){var r=t.bounds;if(r)return e||(e=r),t.scale=[1/(e[2]-e[0]),1/(e[3]-e[1])],t.translate=[-e[0],-e[1]],t.scaleFract=k.fract(t.scale),t.translateFract=k.fract(t.translate),e},viewport:function(e){var t=T(e||[o.drawingBufferWidth,o.drawingBufferHeight]);return t}}]),c){var p=r,d=p.count,v=p.size,g=p.borderSize,w=p.sizeBuffer,E=new Uint8Array(2*d);if(v.length||g.length)for(var M=0;M<d;M++)E[2*M]=Math.round(255*(null==v[M]?v:v[M])/l),E[2*M+1]=Math.round(255*(null==g[M]?g:g[M])/l);w({data:E,usage:"dynamic"})}if(f){var S,C=r,A=C.count,P=C.color,L=C.borderColor,D=C.colorBuffer;if(e.tooManyColors){if(P.length||L.length){S=new Uint8Array(8*A);for(var j=0;j<A;j++){var I=P[j];S[8*j]=u[4*I],S[8*j+1]=u[4*I+1],S[8*j+2]=u[4*I+2],S[8*j+3]=u[4*I+3];var R=L[j];S[8*j+4]=u[4*R],S[8*j+5]=u[4*R+1],S[8*j+6]=u[4*R+2],S[8*j+7]=u[4*R+3]}}}else if(P.length||L.length){S=new Uint8Array(4*A+2);for(var z=0;z<A;z++)null!=P[z]&&(S[4*z]=P[z]%s,S[4*z+1]=Math.floor(P[z]/s)),null!=L[z]&&(S[4*z+2]=L[z]%s,S[4*z+3]=Math.floor(L[z]/s))}D({data:S||new Uint8Array(0),type:"uint8",usage:"dynamic"})}return r}))}},O.prototype.addMarker=function(e){var t,n=this.markerTextures,r=this.regl,a=this.markerCache,o=null==e?0:a.indexOf(e);if(o>=0)return o;if(e instanceof Uint8Array||e instanceof Uint8ClampedArray)t=e;else{t=new Uint8Array(e.length);for(var i=0,l=e.length;i<l;i++)t[i]=255*e[i]}var s=Math.floor(Math.sqrt(t.length));return o=n.length,a.push(e),n.push(r.texture({channels:1,data:t,radius:s,mag:"linear",min:"linear"})),o},O.prototype.updateColor=function(e){var t=this.paletteIds,n=this.palette,r=this.maxColors;Array.isArray(e)||(e=[e]);var a=[];if("number"===typeof e[0]){var o=[];if(Array.isArray(e))for(var i=0;i<e.length;i+=4)o.push(e.slice(i,i+4));else for(var l=0;l<e.length;l+=4)o.push(e.subarray(l,l+4));e=o}for(var s=0;s<e.length;s++){var u=e[s];u=d(u,"uint8");var c=v(u,!1);if(null==t[c]){var f=n.length;t[c]=Math.floor(f/4),n[f]=u[0],n[f+1]=u[1],n[f+2]=u[2],n[f+3]=u[3]}a[s]=t[c]}return!this.tooManyColors&&n.length>4*r&&(this.tooManyColors=!0),this.updatePalette(n),1===a.length?a[0]:a},O.prototype.updatePalette=function(e){if(!this.tooManyColors){var t=this.maxColors,n=this.paletteTexture,r=Math.ceil(.25*e.length/t);if(r>1){e=e.slice();for(var a=.25*e.length%t;a<r*t;a++)e.push(0,0,0,0)}n.height<r&&n.resize(t,r),n.subimage({width:Math.min(.25*e.length,t),height:r,data:e},0,0)}},O.prototype.destroy=function(){return this.groups.forEach((function(e){e.sizeBuffer.destroy(),e.positionBuffer.destroy(),e.positionFractBuffer.destroy(),e.colorBuffer.destroy(),e.activation.forEach((function(e){return e&&e.destroy&&e.destroy()})),e.selectionBuffer.destroy(),e.elements&&e.elements.destroy()})),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach((function(e){return e&&e.destroy&&e.destroy()})),this};var M=e("object-assign"),S=function(e,t){var n=new E(e,t),r=n.render.bind(n);return M(r,{render:r,update:n.update.bind(n),draw:n.draw.bind(n),destroy:n.destroy.bind(n),regl:n.regl,gl:n.gl,canvas:n.gl.canvas,groups:n.groups,markers:n.markerCache,palette:n.palette}),r};t.exports=S},{"@plotly/point-cluster":57,"array-bounds":70,"color-id":123,"color-normalize":125,"flatten-vertex-data":244,glslify:413,"is-iexplorer":440,"object-assign":473,"parse-rect":478,"pick-by-alias":485,"to-float32":549,"update-diff":571}],511:[function(e,t,n){"use strict";var r=e("regl-scatter2d"),a=e("pick-by-alias"),o=e("array-bounds"),i=e("raf"),l=e("array-range"),s=e("parse-rect"),u=e("flatten-vertex-data");function c(e,t){if(!(this instanceof c))return new c(e,t);this.traces=[],this.passes={},this.regl=e,this.scatter=r(e),this.canvas=this.scatter.canvas}function f(e,t,n){var r=null!=e.id?e.id:e,a=t,o=n,i=r<<16|(255&a)<<8|255&o;return i}function p(e,t,n){var r,a,o,i,l=e[t],s=e[n];return l.length>2?(l[0],l[2],r=l[1],a=l[3]):l.length?(r=l[0],a=l[1]):(l.x,r=l.y,l.x+l.width,a=l.y+l.height),s.length>2?(o=s[0],i=s[2],s[1],s[3]):s.length?(o=s[0],i=s[1]):(o=s.x,s.y,i=s.x+s.width,s.y+s.height),[o,r,i,a]}function d(e){if("number"===typeof e)return[e,e,e,e];if(2===e.length)return[e[0],e[1],e[0],e[1]];var t=s(e);return[t.x,t.y,t.x+t.width,t.y+t.height]}t.exports=c,c.prototype.render=function(){var e,t=this,n=[],r=arguments.length;while(r--)n[r]=arguments[r];return n.length&&(e=this).update.apply(e,n),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&&(this.planned=i((function(){t.draw(),t.dirty=!0,t.planned=null}))):(this.draw(),this.dirty=!0,i((function(){t.dirty=!1}))),this)},c.prototype.update=function(){var e,t=[],n=arguments.length;while(n--)t[n]=arguments[n];if(t.length){for(var r=0;r<t.length;r++)this.updateItem(r,t[r]);this.traces=this.traces.filter(Boolean);for(var a=[],o=0,i=0;i<this.traces.length;i++){for(var l=this.traces[i],s=this.traces[i].passes,u=0;u<s.length;u++)a.push(this.passes[s[u]]);l.passOffset=o,o+=l.passes.length}return(e=this.scatter).update.apply(e,a),this}},c.prototype.updateItem=function(e,t){var n=this,r=n.regl;if(null===t)return this.traces[e]=null,this;if(!t)return this;var i,l=a(t,{data:"data items columns rows values dimensions samples x",snap:"snap cluster",size:"sizes size radius",color:"colors color fill fill-color fillColor",opacity:"opacity alpha transparency opaque",borderSize:"borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline",borderColor:"borderColors borderColor bordercolor stroke stroke-color strokeColor",marker:"markers marker shape",range:"range ranges databox dataBox",viewport:"viewport viewBox viewbox",domain:"domain domains area areas",padding:"pad padding paddings pads margin margins",transpose:"transpose transposed",diagonal:"diagonal diag showDiagonal",upper:"upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf",lower:"lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower"}),c=this.traces[e]||(this.traces[e]={id:e,buffer:r.buffer({usage:"dynamic",type:"float",data:new Uint8Array}),color:"black",marker:null,size:12,borderColor:"transparent",borderSize:1,viewport:s([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=l.color&&(c.color=l.color),null!=l.size&&(c.size=l.size),null!=l.marker&&(c.marker=l.marker),null!=l.borderColor&&(c.borderColor=l.borderColor),null!=l.borderSize&&(c.borderSize=l.borderSize),null!=l.opacity&&(c.opacity=l.opacity),l.viewport&&(c.viewport=s(l.viewport)),null!=l.diagonal&&(c.diagonal=l.diagonal),null!=l.upper&&(c.upper=l.upper),null!=l.lower&&(c.lower=l.lower),l.data){c.buffer(u(l.data)),c.columns=l.data.length,c.count=l.data[0].length,c.bounds=[];for(var h=0;h<c.columns;h++)c.bounds[h]=o(l.data[h],1)}l.range&&(c.range=l.range,i=c.range&&"number"!==typeof c.range[0]),l.domain&&(c.domain=l.domain);var v=!1;null!=l.padding&&(Array.isArray(l.padding)&&l.padding.length===c.columns&&"number"===typeof l.padding[l.padding.length-1]?(c.padding=l.padding.map(d),v=!0):c.padding=d(l.padding));var m=c.columns,y=c.count,g=c.viewport.width,b=c.viewport.height,x=c.viewport.x,_=c.viewport.y,w=g/m,k=b/m;c.passes=[];for(var T=0;T<m;T++)for(var E=0;E<m;E++)if((c.diagonal||E!==T)&&(c.upper||!(T>E))&&(c.lower||!(T<E))){var O=f(c.id,T,E),M=this.passes[O]||(this.passes[O]={});if(l.data&&(l.transpose?M.positions={x:{buffer:c.buffer,offset:E,count:y,stride:m},y:{buffer:c.buffer,offset:T,count:y,stride:m}}:M.positions={x:{buffer:c.buffer,offset:E*y,count:y},y:{buffer:c.buffer,offset:T*y,count:y}},M.bounds=p(c.bounds,T,E)),l.domain||l.viewport||l.data){var S=v?p(c.padding,T,E):c.padding;if(c.domain){var C=p(c.domain,T,E),A=C[0],P=C[1],L=C[2],D=C[3];M.viewport=[x+A*g+S[0],_+P*b+S[1],x+L*g-S[2],_+D*b-S[3]]}else M.viewport=[x+E*w+w*S[0],_+T*k+k*S[1],x+(E+1)*w-w*S[2],_+(T+1)*k-k*S[3]]}l.color&&(M.color=c.color),l.size&&(M.size=c.size),l.marker&&(M.marker=c.marker),l.borderSize&&(M.borderSize=c.borderSize),l.borderColor&&(M.borderColor=c.borderColor),l.opacity&&(M.opacity=c.opacity),l.range&&(M.range=i?p(c.range,T,E):c.range||M.bounds),c.passes.push(O)}return this},c.prototype.draw=function(){var e,t=[],n=arguments.length;while(n--)t[n]=arguments[n];if(t.length){for(var r=[],a=0;a<t.length;a++)if("number"===typeof t[a]){var o=this.traces[t[a]],i=o.passes,s=o.passOffset;r.push.apply(r,l(s,s+i.length))}else if(t[a].length){var u=t[a],c=this.traces[a],f=c.passes,p=c.passOffset;f=f.map((function(e,t){r[p+t]=u}))}(e=this.scatter).draw.apply(e,r)}else this.scatter.draw();return this},c.prototype.destroy=function(){return this.traces.forEach((function(e){e.buffer&&e.buffer.destroy&&e.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{"array-bounds":70,"array-range":72,"flatten-vertex-data":244,"parse-rect":478,"pick-by-alias":485,raf:502,"regl-scatter2d":510}],512:[function(t,n,r){(function(t,a){"object"===typeof r&&"undefined"!==typeof n?n.exports=a():"function"===typeof e&&e.amd?e(a):t.createREGL=a()})(this,(function(){function e(e,t){this.id=Y++,this.type=e,this.data=t}function t(e){if(0===e.length)return[];var n=e.charAt(0),r=e.charAt(e.length-1);if(1<e.length&&n===r&&('"'===n||"'"===n))return['"'+e.substr(1,e.length-2).replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'];if(n=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(e))return t(e.substr(0,n.index)).concat(t(n[1])).concat(t(e.substr(n.index+n[0].length)));if(n=e.split("."),1===n.length)return['"'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'];for(e=[],r=0;r<n.length;++r)e=e.concat(t(n[r]));return e}function n(e){return"["+t(e).join("][")+"]"}function r(){var e={"":0},t=[""];return{id:function(n){var r=e[n];return r||(r=e[n]=t.length,t.push(n),r)},str:function(e){return t[e]}}}function a(e,t,n){function r(){var t=window.innerWidth,r=window.innerHeight;e!==document.body&&(r=e.getBoundingClientRect(),t=r.right-r.left,r=r.bottom-r.top),o.width=n*t,o.height=n*r,G(o.style,{width:t+"px",height:r+"px"})}var a,o=document.createElement("canvas");return G(o.style,{border:0,margin:0,padding:0,top:0,left:0}),e.appendChild(o),e===document.body&&(o.style.position="absolute",G(e.style,{margin:0,padding:0})),e!==document.body&&"function"===typeof ResizeObserver?(a=new ResizeObserver((function(){setTimeout(r)})),a.observe(e)):window.addEventListener("resize",r,!1),r(),{canvas:o,onDestroy:function(){a?a.disconnect():window.removeEventListener("resize",r),e.removeChild(o)}}}function o(e,t){function n(n){try{return e.getContext(n,t)}catch(r){return null}}return n("webgl")||n("experimental-webgl")||n("webgl-experimental")}function i(e){return"string"===typeof e?e.split():e}function l(e){return"string"===typeof e?document.querySelector(e):e}function s(e){var t,n,r,s,u=e||{};e={};var c=[],f=[],p="undefined"===typeof window?1:window.devicePixelRatio,d=!1,h=function(e){},v=function(){};if("string"===typeof u?t=document.querySelector(u):"object"===typeof u&&("string"===typeof u.nodeName&&"function"===typeof u.appendChild&&"function"===typeof u.getBoundingClientRect?t=u:"function"===typeof u.drawArrays||"function"===typeof u.drawElements?(s=u,r=s.canvas):("gl"in u?s=u.gl:"canvas"in u?r=l(u.canvas):"container"in u&&(n=l(u.container)),"attributes"in u&&(e=u.attributes),"extensions"in u&&(c=i(u.extensions)),"optionalExtensions"in u&&(f=i(u.optionalExtensions)),"onDone"in u&&(h=u.onDone),"profile"in u&&(d=!!u.profile),"pixelRatio"in u&&(p=+u.pixelRatio))),t&&("canvas"===t.nodeName.toLowerCase()?r=t:n=t),!s){if(!r){if(t=a(n||document.body,h,p),!t)return null;r=t.canvas,v=t.onDestroy}void 0===e.premultipliedAlpha&&(e.premultipliedAlpha=!0),s=o(r,e)}return s?{gl:s,canvas:r,container:n,extensions:c,optionalExtensions:f,pixelRatio:p,profile:d,onDone:h,onDestroy:v}:(v(),h("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function u(e,t){function n(t){var n;t=t.toLowerCase();try{n=r[t]=e.getExtension(t)}catch(a){}return!!n}for(var r={},a=0;a<t.extensions.length;++a){var o=t.extensions[a];if(!n(o))return t.onDestroy(),t.onDone('"'+o+'" extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return t.optionalExtensions.forEach(n),{extensions:r,restore:function(){Object.keys(r).forEach((function(e){if(r[e]&&!n(e))throw Error("(regl): error restoring extension "+e)}))}}}function c(e,t){for(var n=Array(e),r=0;r<e;++r)n[r]=t(r);return n}function f(e){var t,n;return t=(65535<e)<<4,e>>>=t,n=(255<e)<<3,e>>>=n,t|=n,n=(15<e)<<2,e>>>=n,t|=n,n=(3<e)<<1,t|n|e>>>n>>1}function p(){function e(e){e:{for(var t=16;268435456>=t;t*=16)if(e<=t){e=t;break e}e=0}return t=n[f(e)>>2],0<t.length?t.pop():new ArrayBuffer(e)}function t(e){n[f(e.byteLength)>>2].push(e)}var n=c(8,(function(){return[]}));return{alloc:e,free:t,allocType:function(t,n){var r=null;switch(t){case 5120:r=new Int8Array(e(n),0,n);break;case 5121:r=new Uint8Array(e(n),0,n);break;case 5122:r=new Int16Array(e(2*n),0,n);break;case 5123:r=new Uint16Array(e(2*n),0,n);break;case 5124:r=new Int32Array(e(4*n),0,n);break;case 5125:r=new Uint32Array(e(4*n),0,n);break;case 5126:r=new Float32Array(e(4*n),0,n);break;default:return null}return r.length!==n?r.subarray(0,n):r},freeType:function(e){t(e.buffer)}}}function d(e){return!!e&&"object"===typeof e&&Array.isArray(e.shape)&&Array.isArray(e.stride)&&"number"===typeof e.offset&&e.shape.length===e.stride.length&&(Array.isArray(e.data)||ee(e.data))}function h(e,t,n,r,a,o){for(var i=0;i<t;++i)for(var l=e[i],s=0;s<n;++s)for(var u=l[s],c=0;c<r;++c)a[o++]=u[c]}function v(e,t,n,r,a){for(var o=1,i=n+1;i<t.length;++i)o*=t[i];var l=t[n];if(4===t.length-n){var s=t[n+1],u=t[n+2];for(t=t[n+3],i=0;i<l;++i)h(e[i],s,u,t,r,a),a+=o}else for(i=0;i<l;++i)v(e[i],t,n+1,r,a),a+=o}function m(e){return 0|re[Object.prototype.toString.call(e)]}function y(e,t){for(var n=0;n<t.length;++n)e[n]=t[n]}function g(e,t,n,r,a,o,i){for(var l=0,s=0;s<n;++s)for(var u=0;u<r;++u)e[l++]=t[a*s+o*u+i]}function b(e,t,n,r){function a(t){this.id=s++,this.buffer=e.createBuffer(),this.type=t,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,n.profile&&(this.stats={size:0})}function o(t,n,r){t.byteLength=n.byteLength,e.bufferData(t.type,n,r)}function i(e,t,n,r,a,i){if(e.usage=n,Array.isArray(t)){if(e.dtype=r||5126,0<t.length)if(Array.isArray(t[0])){a=le(t);for(var l=r=1;l<a.length;++l)r*=a[l];e.dimension=r,t=ie(t,a,e.dtype),o(e,t,n),i?e.persistentData=t:J.freeType(t)}else"number"===typeof t[0]?(e.dimension=a,a=J.allocType(e.dtype,t.length),y(a,t),o(e,a,n),i?e.persistentData=a:J.freeType(a)):ee(t[0])&&(e.dimension=t[0].length,e.dtype=r||m(t[0])||5126,t=ie(t,[t.length,t[0].length],e.dtype),o(e,t,n),i?e.persistentData=t:J.freeType(t))}else if(ee(t))e.dtype=r||m(t),e.dimension=a,o(e,t,n),i&&(e.persistentData=new Uint8Array(new Uint8Array(t.buffer)));else if(d(t)){a=t.shape;var s=t.stride,u=(l=t.offset,0),c=0,f=0,p=0;1===a.length?(u=a[0],c=1,f=s[0],p=0):2===a.length&&(u=a[0],c=a[1],f=s[0],p=s[1]),e.dtype=r||m(t.data)||5126,e.dimension=c,a=J.allocType(e.dtype,u*c),g(a,t.data,u,c,f,p,l),o(e,a,n),i?e.persistentData=a:J.freeType(a)}else t instanceof ArrayBuffer&&(e.dtype=5121,e.dimension=a,o(e,t,n),i&&(e.persistentData=new Uint8Array(new Uint8Array(t))))}function l(n){t.bufferCount--,r(n),e.deleteBuffer(n.buffer),n.buffer=null,delete u[n.id]}var s=0,u={};a.prototype.bind=function(){e.bindBuffer(this.type,this.buffer)},a.prototype.destroy=function(){l(this)};var c=[];return n.profile&&(t.getTotalBufferSize=function(){var e=0;return Object.keys(u).forEach((function(t){e+=u[t].stats.size})),e}),{create:function(r,o,s,c){function f(t){var r=35044,a=null,o=0,l=0,s=1;return Array.isArray(t)||ee(t)||d(t)||t instanceof ArrayBuffer?a=t:"number"===typeof t?o=0|t:t&&("data"in t&&(a=t.data),"usage"in t&&(r=oe[t.usage]),"type"in t&&(l=ae[t.type]),"dimension"in t&&(s=0|t.dimension),"length"in t&&(o=0|t.length)),p.bind(),a?i(p,a,r,l,s,c):(o&&e.bufferData(p.type,o,r),p.dtype=l||5121,p.usage=r,p.dimension=s,p.byteLength=o),n.profile&&(p.stats.size=p.byteLength*se[p.dtype]),f}t.bufferCount++;var p=new a(o);return u[p.id]=p,s||f(r),f._reglType="buffer",f._buffer=p,f.subdata=function(t,n){var r,a=0|(n||0);if(p.bind(),ee(t)||t instanceof ArrayBuffer)e.bufferSubData(p.type,a,t);else if(Array.isArray(t)){if(0<t.length)if("number"===typeof t[0]){var o=J.allocType(p.dtype,t.length);y(o,t),e.bufferSubData(p.type,a,o),J.freeType(o)}else(Array.isArray(t[0])||ee(t[0]))&&(r=le(t),o=ie(t,r,p.dtype),e.bufferSubData(p.type,a,o),J.freeType(o))}else if(d(t)){r=t.shape;var i=t.stride,l=o=0,s=0,u=0;1===r.length?(o=r[0],l=1,s=i[0],u=0):2===r.length&&(o=r[0],l=r[1],s=i[0],u=i[1]),r=Array.isArray(t.data)?p.dtype:m(t.data),r=J.allocType(r,o*l),g(r,t.data,o,l,s,u,t.offset),e.bufferSubData(p.type,a,r),J.freeType(r)}return f},n.profile&&(f.stats=p.stats),f.destroy=function(){l(p)},f},createStream:function(e,t){var n=c.pop();return n||(n=new a(e)),n.bind(),i(n,t,35040,0,1,!1),n},destroyStream:function(e){c.push(e)},clear:function(){te(u).forEach(l),c.forEach(l)},getBuffer:function(e){return e&&e._buffer instanceof a?e._buffer:null},restore:function(){te(u).forEach((function(t){t.buffer=e.createBuffer(),e.bindBuffer(t.type,t.buffer),e.bufferData(t.type,t.persistentData||t.byteLength,t.usage)}))},_initBuffer:i}}function x(e,t,n,r){function a(e){this.id=s++,l[this.id]=this,this.buffer=e,this.primType=4,this.type=this.vertCount=0}function o(r,a,o,i,l,s,u){var c;if(r.buffer.bind(),a?((c=u)||ee(a)&&(!d(a)||ee(a.data))||(c=t.oes_element_index_uint?5125:5123),n._initBuffer(r.buffer,a,o,c,3)):(e.bufferData(34963,s,o),r.buffer.dtype=c||5121,r.buffer.usage=o,r.buffer.dimension=3,r.buffer.byteLength=s),c=u,!u){switch(r.buffer.dtype){case 5121:case 5120:c=5121;break;case 5123:case 5122:c=5123;break;case 5125:case 5124:c=5125}r.buffer.dtype=c}r.type=c,a=l,0>a&&(a=r.buffer.byteLength,5123===c?a>>=1:5125===c&&(a>>=2)),r.vertCount=a,a=i,0>i&&(a=4,i=r.buffer.dimension,1===i&&(a=0),2===i&&(a=1),3===i&&(a=4)),r.primType=a}function i(e){r.elementsCount--,delete l[e.id],e.buffer.destroy(),e.buffer=null}var l={},s=0,u={uint8:5121,uint16:5123};t.oes_element_index_uint&&(u.uint32=5125),a.prototype.bind=function(){this.buffer.bind()};var c=[];return{create:function(e,t){function l(e){if(e)if("number"===typeof e)s(e),c.primType=4,c.vertCount=0|e,c.type=5121;else{var t=null,n=35044,r=-1,a=-1,i=0,f=0;Array.isArray(e)||ee(e)||d(e)?t=e:("data"in e&&(t=e.data),"usage"in e&&(n=oe[e.usage]),"primitive"in e&&(r=ue[e.primitive]),"count"in e&&(a=0|e.count),"type"in e&&(f=u[e.type]),"length"in e?i=0|e.length:(i=a,5123===f||5122===f?i*=2:5125!==f&&5124!==f||(i*=4))),o(c,t,n,r,a,i,f)}else s(),c.primType=4,c.vertCount=0,c.type=5121;return l}var s=n.create(null,34963,!0),c=new a(s._buffer);return r.elementsCount++,l(e),l._reglType="elements",l._elements=c,l.subdata=function(e,t){return s.subdata(e,t),l},l.destroy=function(){i(c)},l},createStream:function(e){var t=c.pop();return t||(t=new a(n.create(null,34963,!0,!1)._buffer)),o(t,e,35040,-1,-1,0,0),t},destroyStream:function(e){c.push(e)},getElements:function(e){return"function"===typeof e&&e._elements instanceof a?e._elements:null},clear:function(){te(l).forEach(i)}}}function _(e){for(var t=J.allocType(5123,e.length),n=0;n<e.length;++n)if(isNaN(e[n]))t[n]=65535;else if(1/0===e[n])t[n]=31744;else if(-1/0===e[n])t[n]=64512;else{ce[0]=e[n];var r=fe[0],a=r>>>31<<15,o=(r<<1>>>24)-127;r=r>>13&1023;t[n]=-24>o?a:-14>o?a+(r+1024>>-14-o):15<o?a+31744:a+(o+15<<10)+r}return t}function w(e){return Array.isArray(e)||ee(e)}function k(e){return"[object "+e+"]"}function T(e){return Array.isArray(e)&&(0===e.length||"number"===typeof e[0])}function E(e){return!(!Array.isArray(e)||0===e.length||!w(e[0]))}function O(e){return Object.prototype.toString.call(e)}function M(e){if(!e)return!1;var t=O(e);return 0<=_e.indexOf(t)||(T(e)||E(e)||d(e))}function S(e,t){36193===e.type?(e.data=_(t),J.freeType(t)):e.data=t}function C(e,t,n,r,a,o){if(e="undefined"!==typeof ke[e]?ke[e]:he[e]*we[t],o&&(e*=6),a){for(r=0;1<=n;)r+=e*n*n,n/=2;return r}return e*n*r}function A(e,t,n,r,a,o,i){function l(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function s(e,t){e.internalformat=t.internalformat,e.format=t.format,e.type=t.type,e.compressed=t.compressed,e.premultiplyAlpha=t.premultiplyAlpha,e.flipY=t.flipY,e.unpackAlignment=t.unpackAlignment,e.colorSpace=t.colorSpace,e.width=t.width,e.height=t.height,e.channels=t.channels}function u(e,t){if("object"===typeof t&&t){"premultiplyAlpha"in t&&(e.premultiplyAlpha=t.premultiplyAlpha),"flipY"in t&&(e.flipY=t.flipY),"alignment"in t&&(e.unpackAlignment=t.alignment),"colorSpace"in t&&(e.colorSpace=H[t.colorSpace]),"type"in t&&(e.type=U[t.type]);var n=e.width,r=e.height,a=e.channels,o=!1;"shape"in t?(n=t.shape[0],r=t.shape[1],3===t.shape.length&&(a=t.shape[2],o=!0)):("radius"in t&&(n=r=t.radius),"width"in t&&(n=t.width),"height"in t&&(r=t.height),"channels"in t&&(a=t.channels,o=!0)),e.width=0|n,e.height=0|r,e.channels=0|a,n=!1,"format"in t&&(n=t.format,r=e.internalformat=W[n],e.format=oe[r],n in U&&!("type"in t)&&(e.type=U[n]),n in q&&(e.compressed=!0),n=!0),!o&&n?e.channels=he[e.format]:o&&!n&&e.channels!==de[e.format]&&(e.format=e.internalformat=de[e.channels])}}function c(t){e.pixelStorei(37440,t.flipY),e.pixelStorei(37441,t.premultiplyAlpha),e.pixelStorei(37443,t.colorSpace),e.pixelStorei(3317,t.unpackAlignment)}function f(){l.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(e,t){var n=null;if(M(t)?n=t:t&&(u(e,t),"x"in t&&(e.xOffset=0|t.x),"y"in t&&(e.yOffset=0|t.y),M(t.data)&&(n=t.data)),t.copy){var r=a.viewportWidth,o=a.viewportHeight;e.width=e.width||r-e.xOffset,e.height=e.height||o-e.yOffset,e.needsCopy=!0}else if(n){if(ee(n))e.channels=e.channels||4,e.data=n,"type"in t||5121!==e.type||(e.type=0|re[Object.prototype.toString.call(n)]);else if(T(n)){switch(e.channels=e.channels||4,r=n,o=r.length,e.type){case 5121:case 5123:case 5125:case 5126:o=J.allocType(e.type,o),o.set(r),e.data=o;break;case 36193:e.data=_(r)}e.alignment=1,e.needsFree=!0}else if(d(n)){r=n.data,Array.isArray(r)||5121!==e.type||(e.type=0|re[Object.prototype.toString.call(r)]);o=n.shape;var i,l,s,c,f=n.stride;3===o.length?(s=o[2],c=f[2]):c=s=1,i=o[0],l=o[1],o=f[0],f=f[1],e.alignment=1,e.width=i,e.height=l,e.channels=s,e.format=e.internalformat=de[s],e.needsFree=!0,i=c,n=n.offset,s=e.width,c=e.height,l=e.channels;for(var p=J.allocType(36193===e.type?5126:e.type,s*c*l),h=0,v=0;v<c;++v)for(var m=0;m<s;++m)for(var y=0;y<l;++y)p[h++]=r[o*m+f*v+i*y+n];S(e,p)}else if(O(n)===ve||O(n)===me||O(n)===ye)O(n)===ve||O(n)===me?e.element=n:e.element=n.canvas,e.width=e.element.width,e.height=e.element.height,e.channels=4;else if(O(n)===ge)e.element=n,e.width=n.width,e.height=n.height,e.channels=4;else if(O(n)===be)e.element=n,e.width=n.naturalWidth,e.height=n.naturalHeight,e.channels=4;else if(O(n)===xe)e.element=n,e.width=n.videoWidth,e.height=n.videoHeight,e.channels=4;else if(E(n)){for(r=e.width||n[0].length,o=e.height||n.length,f=e.channels,f=w(n[0][0])?f||n[0][0].length:f||1,i=ne.shape(n),s=1,c=0;c<i.length;++c)s*=i[c];s=J.allocType(36193===e.type?5126:e.type,s),ne.flatten(n,i,"",s),S(e,s),e.alignment=1,e.width=r,e.height=o,e.channels=f,e.format=e.internalformat=de[f],e.needsFree=!0}}else e.width=e.width||1,e.height=e.height||1,e.channels=e.channels||4}function h(t,n,a,o,i){var l=t.element,s=t.data,u=t.internalformat,f=t.format,p=t.type,d=t.width,h=t.height;c(t),l?e.texSubImage2D(n,i,a,o,f,p,l):t.compressed?e.compressedTexSubImage2D(n,i,a,o,u,d,h,s):t.needsCopy?(r(),e.copyTexSubImage2D(n,i,a,o,t.xOffset,t.yOffset,d,h)):e.texSubImage2D(n,i,a,o,d,h,f,p,s)}function v(){return ie.pop()||new f}function m(e){e.needsFree&&J.freeType(e.data),f.call(e),ie.push(e)}function y(){l.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function g(e,t,n){var r=e.images[0]=v();e.mipmask=1,r.width=e.width=t,r.height=e.height=n,r.channels=e.channels=4}function b(e,t){var n=null;if(M(t))n=e.images[0]=v(),s(n,e),p(n,t),e.mipmask=1;else if(u(e,t),Array.isArray(t.mipmap))for(var r=t.mipmap,a=0;a<r.length;++a)n=e.images[a]=v(),s(n,e),n.width>>=a,n.height>>=a,p(n,r[a]),e.mipmask|=1<<a;else n=e.images[0]=v(),s(n,e),p(n,t),e.mipmask=1;s(e,e.images[0])}function x(t,n){for(var a=t.images,o=0;o<a.length&&a[o];++o){var i=a[o],l=n,s=o,u=i.element,f=i.data,p=i.internalformat,d=i.format,h=i.type,v=i.width,m=i.height;c(i),u?e.texImage2D(l,s,d,d,h,u):i.compressed?e.compressedTexImage2D(l,s,p,v,m,0,f):i.needsCopy?(r(),e.copyTexImage2D(l,s,d,i.xOffset,i.yOffset,v,m,0)):e.texImage2D(l,s,d,v,m,0,d,h,f||null)}}function k(){var e=le.pop()||new y;l.call(e);for(var t=e.mipmask=0;16>t;++t)e.images[t]=null;return e}function A(e){for(var t=e.images,n=0;n<t.length;++n)t[n]&&m(t[n]),t[n]=null;le.push(e)}function P(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function L(e,t){"min"in t&&(e.minFilter=V[t.min],0<=pe.indexOf(e.minFilter)&&!("faces"in t)&&(e.genMipmaps=!0)),"mag"in t&&(e.magFilter=B[t.mag]);var n=e.wrapS,r=e.wrapT;if("wrap"in t){var a=t.wrap;"string"===typeof a?n=r=F[a]:Array.isArray(a)&&(n=F[a[0]],r=F[a[1]])}else"wrapS"in t&&(n=F[t.wrapS]),"wrapT"in t&&(r=F[t.wrapT]);if(e.wrapS=n,e.wrapT=r,"anisotropic"in t&&(e.anisotropic=t.anisotropic),"mipmap"in t){switch(n=!1,typeof t.mipmap){case"string":e.mipmapHint=N[t.mipmap],n=e.genMipmaps=!0;break;case"boolean":n=e.genMipmaps=t.mipmap;break;case"object":e.genMipmaps=!1,n=!0}!n||"min"in t||(e.minFilter=9984)}}function D(n,r){e.texParameteri(r,10241,n.minFilter),e.texParameteri(r,10240,n.magFilter),e.texParameteri(r,10242,n.wrapS),e.texParameteri(r,10243,n.wrapT),t.ext_texture_filter_anisotropic&&e.texParameteri(r,34046,n.anisotropic),n.genMipmaps&&(e.hint(33170,n.mipmapHint),e.generateMipmap(r))}function j(t){l.call(this),this.mipmask=0,this.internalformat=6408,this.id=se++,this.refCount=1,this.target=t,this.texture=e.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new P,i.profile&&(this.stats={size:0})}function I(t){e.activeTexture(33984),e.bindTexture(t.target,t.texture)}function R(){var t=fe[0];t?e.bindTexture(t.target,t.texture):e.bindTexture(3553,null)}function z(t){var n=t.texture,r=t.unit,a=t.target;0<=r&&(e.activeTexture(33984+r),e.bindTexture(a,null),fe[r]=null),e.deleteTexture(n),t.texture=null,t.params=null,t.pixels=null,t.refCount=0,delete ue[t.id],o.textureCount--}var N={"don't care":4352,"dont care":4352,nice:4354,fast:4353},F={repeat:10497,clamp:33071,mirror:33648},B={nearest:9728,linear:9729},V=G({mipmap:9987,"nearest mipmap nearest":9984,"linear mipmap nearest":9985,"nearest mipmap linear":9986,"linear mipmap linear":9987},B),H={none:0,browser:37444},U={uint8:5121,rgba4:32819,rgb565:33635,"rgb5 a1":32820},W={alpha:6406,luminance:6409,"luminance alpha":6410,rgb:6407,rgba:6408,rgba4:32854,"rgb5 a1":32855,rgb565:36194},q={};t.ext_srgb&&(W.srgb=35904,W.srgba=35906),t.oes_texture_float&&(U.float32=U["float"]=5126),t.oes_texture_half_float&&(U.float16=U["half float"]=36193),t.webgl_depth_texture&&(G(W,{depth:6402,"depth stencil":34041}),G(U,{uint16:5123,uint32:5125,"depth stencil":34042})),t.webgl_compressed_texture_s3tc&&G(q,{"rgb s3tc dxt1":33776,"rgba s3tc dxt1":33777,"rgba s3tc dxt3":33778,"rgba s3tc dxt5":33779}),t.webgl_compressed_texture_atc&&G(q,{"rgb atc":35986,"rgba atc explicit alpha":35987,"rgba atc interpolated alpha":34798}),t.webgl_compressed_texture_pvrtc&&G(q,{"rgb pvrtc 4bppv1":35840,"rgb pvrtc 2bppv1":35841,"rgba pvrtc 4bppv1":35842,"rgba pvrtc 2bppv1":35843}),t.webgl_compressed_texture_etc1&&(q["rgb etc1"]=36196);var $=Array.prototype.slice.call(e.getParameter(34467));Object.keys(q).forEach((function(e){var t=q[e];0<=$.indexOf(t)&&(W[e]=t)}));var Y=Object.keys(W);n.textureFormats=Y;var K=[];Object.keys(W).forEach((function(e){K[W[e]]=e}));var X=[];Object.keys(U).forEach((function(e){X[U[e]]=e}));var Z=[];Object.keys(B).forEach((function(e){Z[B[e]]=e}));var Q=[];Object.keys(V).forEach((function(e){Q[V[e]]=e}));var ae=[];Object.keys(F).forEach((function(e){ae[F[e]]=e}));var oe=Y.reduce((function(e,n){var r=W[n];return 6409===r||6406===r||6409===r||6410===r||6402===r||34041===r||t.ext_srgb&&(35904===r||35906===r)?e[r]=r:32855===r||0<=n.indexOf("rgba")?e[r]=6408:e[r]=6407,e}),{}),ie=[],le=[],se=0,ue={},ce=n.maxTextureUnits,fe=Array(ce).map((function(){return null}));return G(j.prototype,{bind:function(){this.bindCount+=1;var t=this.unit;if(0>t){for(var n=0;n<ce;++n){var r=fe[n];if(r){if(0<r.bindCount)continue;r.unit=-1}fe[n]=this,t=n;break}i.profile&&o.maxTextureUnits<t+1&&(o.maxTextureUnits=t+1),this.unit=t,e.activeTexture(33984+t),e.bindTexture(this.target,this.texture)}return t},unbind:function(){--this.bindCount},decRef:function(){0>=--this.refCount&&z(this)}}),i.profile&&(o.getTotalTextureSize=function(){var e=0;return Object.keys(ue).forEach((function(t){e+=ue[t].stats.size})),e}),{create2D:function(t,n){function r(e,t){var n=a.texInfo;P.call(n);var o=k();return"number"===typeof e?g(o,0|e,"number"===typeof t?0|t:0|e):e?(L(n,e),b(o,e)):g(o,1,1),n.genMipmaps&&(o.mipmask=(o.width<<1)-1),a.mipmask=o.mipmask,s(a,o),a.internalformat=o.internalformat,r.width=o.width,r.height=o.height,I(a),x(o,3553),D(n,3553),R(),A(o),i.profile&&(a.stats.size=C(a.internalformat,a.type,o.width,o.height,n.genMipmaps,!1)),r.format=K[a.internalformat],r.type=X[a.type],r.mag=Z[n.magFilter],r.min=Q[n.minFilter],r.wrapS=ae[n.wrapS],r.wrapT=ae[n.wrapT],r}var a=new j(3553);return ue[a.id]=a,o.textureCount++,r(t,n),r.subimage=function(e,t,n,o){t|=0,n|=0,o|=0;var i=v();return s(i,a),i.width=0,i.height=0,p(i,e),i.width=i.width||(a.width>>o)-t,i.height=i.height||(a.height>>o)-n,I(a),h(i,3553,t,n,o),R(),m(i),r},r.resize=function(t,n){var o=0|t,l=0|n||o;if(o===a.width&&l===a.height)return r;r.width=a.width=o,r.height=a.height=l,I(a);for(var s=0;a.mipmask>>s;++s){var u=o>>s,c=l>>s;if(!u||!c)break;e.texImage2D(3553,s,a.format,u,c,0,a.format,a.type,null)}return R(),i.profile&&(a.stats.size=C(a.internalformat,a.type,o,l,!1,!1)),r},r._reglType="texture2d",r._texture=a,i.profile&&(r.stats=a.stats),r.destroy=function(){a.decRef()},r},createCube:function(t,n,r,a,l,c){function f(e,t,n,r,a,o){var l,c=d.texInfo;for(P.call(c),l=0;6>l;++l)y[l]=k();if("number"!==typeof e&&e){if("object"===typeof e)if(t)b(y[0],e),b(y[1],t),b(y[2],n),b(y[3],r),b(y[4],a),b(y[5],o);else if(L(c,e),u(d,e),"faces"in e)for(e=e.faces,l=0;6>l;++l)s(y[l],d),b(y[l],e[l]);else for(l=0;6>l;++l)b(y[l],e)}else for(e=0|e||1,l=0;6>l;++l)g(y[l],e,e);for(s(d,y[0]),d.mipmask=c.genMipmaps?(y[0].width<<1)-1:y[0].mipmask,d.internalformat=y[0].internalformat,f.width=y[0].width,f.height=y[0].height,I(d),l=0;6>l;++l)x(y[l],34069+l);for(D(c,34067),R(),i.profile&&(d.stats.size=C(d.internalformat,d.type,f.width,f.height,c.genMipmaps,!0)),f.format=K[d.internalformat],f.type=X[d.type],f.mag=Z[c.magFilter],f.min=Q[c.minFilter],f.wrapS=ae[c.wrapS],f.wrapT=ae[c.wrapT],l=0;6>l;++l)A(y[l]);return f}var d=new j(34067);ue[d.id]=d,o.cubeCount++;var y=Array(6);return f(t,n,r,a,l,c),f.subimage=function(e,t,n,r,a){n|=0,r|=0,a|=0;var o=v();return s(o,d),o.width=0,o.height=0,p(o,t),o.width=o.width||(d.width>>a)-n,o.height=o.height||(d.height>>a)-r,I(d),h(o,34069+e,n,r,a),R(),m(o),f},f.resize=function(t){if(t|=0,t!==d.width){f.width=d.width=t,f.height=d.height=t,I(d);for(var n=0;6>n;++n)for(var r=0;d.mipmask>>r;++r)e.texImage2D(34069+n,r,d.format,t>>r,t>>r,0,d.format,d.type,null);return R(),i.profile&&(d.stats.size=C(d.internalformat,d.type,f.width,f.height,!1,!0)),f}},f._reglType="textureCube",f._texture=d,i.profile&&(f.stats=d.stats),f.destroy=function(){d.decRef()},f},clear:function(){for(var t=0;t<ce;++t)e.activeTexture(33984+t),e.bindTexture(3553,null),fe[t]=null;te(ue).forEach(z),o.cubeCount=0,o.textureCount=0},getTexture:function(e){return null},restore:function(){for(var t=0;t<ce;++t){var n=fe[t];n&&(n.bindCount=0,n.unit=-1,fe[t]=null)}te(ue).forEach((function(t){t.texture=e.createTexture(),e.bindTexture(t.target,t.texture);for(var n=0;32>n;++n)if(0!==(t.mipmask&1<<n))if(3553===t.target)e.texImage2D(3553,n,t.internalformat,t.width>>n,t.height>>n,0,t.internalformat,t.type,null);else for(var r=0;6>r;++r)e.texImage2D(34069+r,n,t.internalformat,t.width>>n,t.height>>n,0,t.internalformat,t.type,null);D(t.texInfo,t.target)}))}}}function P(e,t,n,r,a,o){function i(e,t,n){this.target=e,this.texture=t,this.renderbuffer=n;var r=e=0;t?(e=t.width,r=t.height):n&&(e=n.width,r=n.height),this.width=e,this.height=r}function l(e){e&&(e.texture&&e.texture._texture.decRef(),e.renderbuffer&&e.renderbuffer._renderbuffer.decRef())}function s(e,t,n){e&&(e.texture?e.texture._texture.refCount+=1:e.renderbuffer._renderbuffer.refCount+=1)}function u(t,n){n&&(n.texture?e.framebufferTexture2D(36160,t,n.target,n.texture._texture.texture,0):e.framebufferRenderbuffer(36160,t,36161,n.renderbuffer._renderbuffer.renderbuffer))}function c(e){var t=3553,n=null,r=null,a=e;return"object"===typeof e&&(a=e.data,"target"in e&&(t=0|e.target)),e=a._reglType,"texture2d"===e||"textureCube"===e?n=a:"renderbuffer"===e&&(r=a,t=36161),new i(t,n,r)}function f(e,t,n,o,l){return n?(e=r.create2D({width:e,height:t,format:o,type:l}),e._texture.refCount=0,new i(3553,e,null)):(e=a.create({width:e,height:t,format:o}),e._renderbuffer.refCount=0,new i(36161,null,e))}function p(e){return e&&(e.texture||e.renderbuffer)}function d(e,t,n){e&&(e.texture?e.texture.resize(t,n):e.renderbuffer&&e.renderbuffer.resize(t,n),e.width=t,e.height=n)}function h(){this.id=k++,T[this.id]=this,this.framebuffer=e.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function v(e){e.colorAttachments.forEach(l),l(e.depthAttachment),l(e.stencilAttachment),l(e.depthStencilAttachment)}function m(t){e.deleteFramebuffer(t.framebuffer),t.framebuffer=null,o.framebufferCount--,delete T[t.id]}function y(t){var r;e.bindFramebuffer(36160,t.framebuffer);var a=t.colorAttachments;for(r=0;r<a.length;++r)u(36064+r,a[r]);for(r=a.length;r<n.maxColorAttachments;++r)e.framebufferTexture2D(36160,36064+r,3553,null,0);e.framebufferTexture2D(36160,33306,3553,null,0),e.framebufferTexture2D(36160,36096,3553,null,0),e.framebufferTexture2D(36160,36128,3553,null,0),u(36096,t.depthAttachment),u(36128,t.stencilAttachment),u(33306,t.depthStencilAttachment),e.checkFramebufferStatus(36160),e.isContextLost(),e.bindFramebuffer(36160,b.next?b.next.framebuffer:null),b.cur=b.next,e.getError()}function g(e,t){function n(e,t){var a,o=0,i=0,l=!0,u=!0;a=null;var d=!0,h="rgba",m="uint8",g=1,b=null,w=null,k=null,T=!1;"number"===typeof e?(o=0|e,i=0|t||o):e?("shape"in e?(i=e.shape,o=i[0],i=i[1]):("radius"in e&&(o=i=e.radius),"width"in e&&(o=e.width),"height"in e&&(i=e.height)),("color"in e||"colors"in e)&&(a=e.color||e.colors,Array.isArray(a)),a||("colorCount"in e&&(g=0|e.colorCount),"colorTexture"in e&&(d=!!e.colorTexture,h="rgba4"),"colorType"in e&&(m=e.colorType,!d)&&("half float"===m||"float16"===m?h="rgba16f":"float"!==m&&"float32"!==m||(h="rgba32f")),"colorFormat"in e&&(h=e.colorFormat,0<=x.indexOf(h)?d=!0:0<=_.indexOf(h)&&(d=!1))),("depthTexture"in e||"depthStencilTexture"in e)&&(T=!(!e.depthTexture&&!e.depthStencilTexture)),"depth"in e&&("boolean"===typeof e.depth?l=e.depth:(b=e.depth,u=!1)),"stencil"in e&&("boolean"===typeof e.stencil?u=e.stencil:(w=e.stencil,l=!1)),"depthStencil"in e&&("boolean"===typeof e.depthStencil?l=u=e.depthStencil:(k=e.depthStencil,u=l=!1))):o=i=1;var E=null,O=null,M=null,S=null;if(Array.isArray(a))E=a.map(c);else if(a)E=[c(a)];else for(E=Array(g),a=0;a<g;++a)E[a]=f(o,i,d,h,m);for(o=o||E[0].width,i=i||E[0].height,b?O=c(b):l&&!u&&(O=f(o,i,T,"depth","uint32")),w?M=c(w):u&&!l&&(M=f(o,i,!1,"stencil","uint8")),k?S=c(k):!b&&!w&&u&&l&&(S=f(o,i,T,"depth stencil","depth stencil")),l=null,a=0;a<E.length;++a)s(E[a],o,i),E[a]&&E[a].texture&&(u=Oe[E[a].texture._texture.format]*Me[E[a].texture._texture.type],null===l&&(l=u));return s(O,o,i),s(M,o,i),s(S,o,i),v(r),r.width=o,r.height=i,r.colorAttachments=E,r.depthAttachment=O,r.stencilAttachment=M,r.depthStencilAttachment=S,n.color=E.map(p),n.depth=p(O),n.stencil=p(M),n.depthStencil=p(S),n.width=r.width,n.height=r.height,y(r),n}var r=new h;return o.framebufferCount++,n(e,t),G(n,{resize:function(e,t){var a=Math.max(0|e,1),o=Math.max(0|t||a,1);if(a===r.width&&o===r.height)return n;for(var i=r.colorAttachments,l=0;l<i.length;++l)d(i[l],a,o);return d(r.depthAttachment,a,o),d(r.stencilAttachment,a,o),d(r.depthStencilAttachment,a,o),r.width=n.width=a,r.height=n.height=o,y(r),n},_reglType:"framebuffer",_framebuffer:r,destroy:function(){m(r),v(r)},use:function(e){b.setFBO({framebuffer:n},e)}})}var b={cur:null,next:null,dirty:!1,setFBO:null},x=["rgba"],_=["rgba4","rgb565","rgb5 a1"];t.ext_srgb&&_.push("srgba"),t.ext_color_buffer_half_float&&_.push("rgba16f","rgb16f"),t.webgl_color_buffer_float&&_.push("rgba32f");var w=["uint8"];t.oes_texture_half_float&&w.push("half float","float16"),t.oes_texture_float&&w.push("float","float32");var k=0,T={};return G(b,{getFramebuffer:function(e){return"function"===typeof e&&"framebuffer"===e._reglType&&(e=e._framebuffer,e instanceof h)?e:null},create:g,createCube:function(e){function t(e){var a,o={color:null},i=0,l=null;a="rgba";var s="uint8",u=1;if("number"===typeof e?i=0|e:e?("shape"in e?i=e.shape[0]:("radius"in e&&(i=0|e.radius),"width"in e?i=0|e.width:"height"in e&&(i=0|e.height)),("color"in e||"colors"in e)&&(l=e.color||e.colors,Array.isArray(l)),l||("colorCount"in e&&(u=0|e.colorCount),"colorType"in e&&(s=e.colorType),"colorFormat"in e&&(a=e.colorFormat)),"depth"in e&&(o.depth=e.depth),"stencil"in e&&(o.stencil=e.stencil),"depthStencil"in e&&(o.depthStencil=e.depthStencil)):i=1,l)if(Array.isArray(l))for(e=[],a=0;a<l.length;++a)e[a]=l[a];else e=[l];else for(e=Array(u),l={radius:i,format:a,type:s},a=0;a<u;++a)e[a]=r.createCube(l);for(o.color=Array(e.length),a=0;a<e.length;++a)u=e[a],i=i||u.width,o.color[a]={target:34069,data:e[a]};for(a=0;6>a;++a){for(u=0;u<e.length;++u)o.color[u].target=34069+a;0<a&&(o.depth=n[0].depth,o.stencil=n[0].stencil,o.depthStencil=n[0].depthStencil),n[a]?n[a](o):n[a]=g(o)}return G(t,{width:i,height:i,color:e})}var n=Array(6);return t(e),G(t,{faces:n,resize:function(e){var r=0|e;if(r===t.width)return t;var a=t.color;for(e=0;e<a.length;++e)a[e].resize(r);for(e=0;6>e;++e)n[e].resize(r);return t.width=t.height=r,t},_reglType:"framebufferCube",destroy:function(){n.forEach((function(e){e.destroy()}))}})},clear:function(){te(T).forEach(m)},restore:function(){b.cur=null,b.next=null,b.dirty=!0,te(T).forEach((function(t){t.framebuffer=e.createFramebuffer(),y(t)}))}})}function L(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function D(e,t,n,r,a){function o(e){if(e!==v.currentVAO){var n=t.oes_vertex_array_object;e?n.bindVertexArrayOES(e.vao):n.bindVertexArrayOES(null),v.currentVAO=e}}function i(n){if(n!==v.currentVAO){if(n)n.bindAttrs();else for(var r=t.angle_instanced_arrays,a=0;a<f.length;++a){var o=f[a];o.buffer?(e.enableVertexAttribArray(a),e.vertexAttribPointer(a,o.size,o.type,o.normalized,o.stride,o.offfset),r&&r.vertexAttribDivisorANGLE(a,o.divisor)):(e.disableVertexAttribArray(a),e.vertexAttrib4f(a,o.x,o.y,o.z,o.w))}v.currentVAO=n}}function l(){te(h).forEach((function(e){e.destroy()}))}function s(){this.id=++p,this.attributes=[];var e=t.oes_vertex_array_object;this.vao=e?e.createVertexArrayOES():null,h[this.id]=this,this.buffers=[]}function u(){t.oes_vertex_array_object&&te(h).forEach((function(e){e.refresh()}))}var c=n.maxAttributes,f=Array(c);for(n=0;n<c;++n)f[n]=new L;var p=0,h={},v={Record:L,scope:{},state:f,currentVAO:null,targetVAO:null,restore:t.oes_vertex_array_object?u:function(){},createVAO:function(e){function t(e){for(var r=0;r<n.buffers.length;++r)n.buffers[r].destroy();n.buffers.length=0,r=n.attributes,r.length=e.length;for(var o=0;o<e.length;++o){var i=e[o],l=r[o]=new L;Array.isArray(i)||ee(i)||d(i)?(i=a.create(i,34962,!1,!0),l.buffer=a.getBuffer(i),l.size=0|l.buffer.dimension,l.normalized=!1,l.type=l.buffer.dtype,l.offset=0,l.stride=0,l.divisor=0,l.state=1,n.buffers.push(i)):a.getBuffer(i)?(l.buffer=a.getBuffer(i),l.size=0|l.buffer.dimension,l.normalized=!1,l.type=l.buffer.dtype,l.offset=0,l.stride=0,l.divisor=0,l.state=1):a.getBuffer(i.buffer)?(l.buffer=a.getBuffer(i.buffer),l.size=0|(+i.size||l.buffer.dimension),l.normalized=!!i.normalized||!1,l.type="type"in i?ae[i.type]:l.buffer.dtype,l.offset=0|(i.offset||0),l.stride=0|(i.stride||0),l.divisor=0|(i.divisor||0),l.state=1):"x"in i&&(l.x=+i.x||0,l.y=+i.y||0,l.z=+i.z||0,l.w=+i.w||0,l.state=2)}return n.refresh(),t}var n=new s;return r.vaoCount+=1,t.destroy=function(){n.destroy()},t._vao=n,t._reglType="vao",t(e)},getVAO:function(e){return"function"===typeof e&&e._vao?e._vao:null},destroyBuffer:function(t){for(var n=0;n<f.length;++n){var r=f[n];r.buffer===t&&(e.disableVertexAttribArray(n),r.buffer=null)}},setVAO:t.oes_vertex_array_object?o:i,clear:t.oes_vertex_array_object?l:function(){}};return s.prototype.bindAttrs=function(){for(var n=t.angle_instanced_arrays,r=this.attributes,a=0;a<r.length;++a){var o=r[a];o.buffer?(e.enableVertexAttribArray(a),e.bindBuffer(34962,o.buffer.buffer),e.vertexAttribPointer(a,o.size,o.type,o.normalized,o.stride,o.offset),n&&n.vertexAttribDivisorANGLE(a,o.divisor)):(e.disableVertexAttribArray(a),e.vertexAttrib4f(a,o.x,o.y,o.z,o.w))}for(n=r.length;n<c;++n)e.disableVertexAttribArray(n)},s.prototype.refresh=function(){var e=t.oes_vertex_array_object;e&&(e.bindVertexArrayOES(this.vao),this.bindAttrs(),v.currentVAO=this)},s.prototype.destroy=function(){if(this.vao){var e=t.oes_vertex_array_object;this===v.currentVAO&&(v.currentVAO=null,e.bindVertexArrayOES(null)),e.deleteVertexArrayOES(this.vao),this.vao=null}h[this.id]&&(delete h[this.id],--r.vaoCount)},v}function j(e,t,n,r){function a(e,t,n,r){this.name=e,this.id=t,this.location=n,this.info=r}function o(e,t){for(var n=0;n<e.length;++n)if(e[n].id===t.id)return void(e[n].location=t.location);e.push(t)}function i(n,r,a){a=35632===n?u:c;var o=a[r];if(!o){var i=t.str(r);o=e.createShader(n);e.shaderSource(o,i),e.compileShader(o),a[r]=o}return o}function l(e,t){this.id=d++,this.fragId=e,this.vertId=t,this.program=null,this.uniforms=[],this.attributes=[],r.profile&&(this.stats={uniformsCount:0,attributesCount:0})}function s(n,l,s){var u;u=i(35632,n.fragId);var c=i(35633,n.vertId);if(l=n.program=e.createProgram(),e.attachShader(l,u),e.attachShader(l,c),s)for(u=0;u<s.length;++u)c=s[u],e.bindAttribLocation(l,c[0],c[1]);e.linkProgram(l),c=e.getProgramParameter(l,35718),r.profile&&(n.stats.uniformsCount=c);var f=n.uniforms;for(u=0;u<c;++u)if(s=e.getActiveUniform(l,u))if(1<s.size)for(var p=0;p<s.size;++p){var d=s.name.replace("[0]","["+p+"]");o(f,new a(d,t.id(d),e.getUniformLocation(l,d),s))}else o(f,new a(s.name,t.id(s.name),e.getUniformLocation(l,s.name),s));for(c=e.getProgramParameter(l,35721),r.profile&&(n.stats.attributesCount=c),n=n.attributes,u=0;u<c;++u)(s=e.getActiveAttrib(l,u))&&o(n,new a(s.name,t.id(s.name),e.getAttribLocation(l,s.name),s))}var u={},c={},f={},p=[],d=0;return r.profile&&(n.getMaxUniformsCount=function(){var e=0;return p.forEach((function(t){t.stats.uniformsCount>e&&(e=t.stats.uniformsCount)})),e},n.getMaxAttributesCount=function(){var e=0;return p.forEach((function(t){t.stats.attributesCount>e&&(e=t.stats.attributesCount)})),e}),{clear:function(){var t=e.deleteShader.bind(e);te(u).forEach(t),u={},te(c).forEach(t),c={},p.forEach((function(t){e.deleteProgram(t.program)})),p.length=0,f={},n.shaderCount=0},program:function(e,t,r,a){var o=f[t];o||(o=f[t]={});var i=o[e];return i&&!a?i:(t=new l(t,e),n.shaderCount++,s(t,r,a),i||(o[e]=t),p.push(t),t)},restore:function(){u={},c={};for(var e=0;e<p.length;++e)s(p[e],null,p[e].attributes.map((function(e){return[e.location,e.name]})))},shader:i,frag:-1,vert:-1}}function I(e,t,n,r,a,o,i){function l(a){var o;o=null===t.next?5121:t.next.colorAttachments[0].texture._texture.type;var i=0,l=0,s=r.framebufferWidth,u=r.framebufferHeight,c=null;return ee(a)?c=a:a&&(i=0|a.x,l=0|a.y,s=0|(a.width||r.framebufferWidth-i),u=0|(a.height||r.framebufferHeight-l),c=a.data||null),n(),a=s*u*4,c||(5121===o?c=new Uint8Array(a):5126===o&&(c=c||new Float32Array(a))),e.pixelStorei(3333,4),e.readPixels(i,l,s,u,6408,o,c),c}function s(e){var n;return t.setFBO({framebuffer:e.framebuffer},(function(){n=l(e)})),n}return function(e){return e&&"framebuffer"in e?s(e):l(e)}}function R(e){return Array.prototype.slice.call(e)}function z(e){return R(e).join("")}function N(){function e(){var e=[],t=[];return G((function(){e.push.apply(e,R(arguments))}),{def:function(){var r="v"+n++;return t.push(r),0<arguments.length&&(e.push(r,"="),e.push.apply(e,R(arguments)),e.push(";")),r},toString:function(){return z([0<t.length?"var "+t.join(",")+";":"",z(e)])}})}function t(){function t(e,t){r(e,t,"=",n.def(e,t),";")}var n=e(),r=e(),a=n.toString,o=r.toString;return G((function(){n.apply(n,R(arguments))}),{def:n.def,entry:n,exit:r,save:t,set:function(e,r,a){t(e,r),n(e,r,"=",a,";")},toString:function(){return a()+o()}})}var n=0,r=[],a=[],o=e(),i={};return{global:o,link:function(e){for(var t=0;t<a.length;++t)if(a[t]===e)return r[t];return t="g"+n++,r.push(t),a.push(e),t},block:e,proc:function(e,n){function r(){var e="a"+a.length;return a.push(e),e}var a=[];n=n||0;for(var o=0;o<n;++o)r();o=t();var l=o.toString;return i[e]=G(o,{arg:r,toString:function(){return z(["function(",a.join(),"){",l(),"}"])}})},scope:t,cond:function(){var e=z(arguments),n=t(),r=t(),a=n.toString,o=r.toString;return G(n,{then:function(){return n.apply(n,R(arguments)),this},else:function(){return r.apply(r,R(arguments)),this},toString:function(){var t=o();return t&&(t="else{"+t+"}"),z(["if(",e,"){",a(),"}",t])}})},compile:function(){var e=['"use strict";',o,"return {"];Object.keys(i).forEach((function(t){e.push('"',t,'":',i[t].toString(),",")})),e.push("}");var t=z(e).replace(/;/g,";\n").replace(/}/g,"}\n").replace(/{/g,"{\n");return Function.apply(null,r.concat(t)).apply(null,a)}}}function F(e){return Array.isArray(e)||ee(e)||d(e)}function B(e){return e.sort((function(e,t){return"viewport"===e?-1:"viewport"===t?1:e<t?-1:1}))}function V(e,t,n,r){this.thisDep=e,this.contextDep=t,this.propDep=n,this.append=r}function H(e){return e&&!(e.thisDep||e.contextDep||e.propDep)}function U(e){return new V(!1,!1,!1,e)}function W(e,t){var n=e.type;return 0===n?(n=e.data.length,new V(!0,1<=n,2<=n,t)):4===n?(n=e.data,new V(n.thisDep,n.contextDep,n.propDep,t)):new V(3===n,2===n,1===n,t)}function q(e,t,n,r,a,o,i,l,s,u,f,p,d,h,v){function m(e){return e.replace(".","_")}function y(e,t,n){var r=m(e);de.push(e),pe[r]=fe[r]=!!n,he[r]=t}function g(e,t,n){var r=m(e);de.push(e),Array.isArray(n)?(fe[r]=n.slice(),pe[r]=n.slice()):fe[r]=pe[r]=n,ve[r]=t}function b(){var e=N(),n=e.link,r=e.global;e.id=ge++,e.batchId="0";var a=n(me),o=e.shared={props:"a0"};Object.keys(me).forEach((function(e){o[e]=r.def(a,".",e)}));var i=e.next={},l=e.current={};Object.keys(ve).forEach((function(e){Array.isArray(fe[e])&&(i[e]=r.def(o.next,".",e),l[e]=r.def(o.current,".",e))}));var s=e.constants={};Object.keys(ye).forEach((function(e){s[e]=r.def(JSON.stringify(ye[e]))})),e.invoke=function(t,r){switch(r.type){case 0:var a=["this",o.context,o.props,e.batchId];return t.def(n(r.data),".call(",a.slice(0,Math.max(r.data.length+1,4)),")");case 1:return t.def(o.props,r.data);case 2:return t.def(o.context,r.data);case 3:return t.def("this",r.data);case 4:return r.data.append(e,t),r.data.ref}},e.attribCache={};var c={};return e.scopeAttrib=function(e){if(e=t.id(e),e in c)return c[e];var r=u.scope[e];return r||(r=u.scope[e]=new ie),c[e]=n(r)},e}function x(e){var t,n=e["static"];if(e=e.dynamic,"profile"in n){var r=!!n.profile;t=U((function(e,t){return r})),t.enable=r}else if("profile"in e){var a=e.profile;t=W(a,(function(e,t){return e.invoke(t,a)}))}return t}function _(e,t){var n=e["static"],r=e.dynamic;if("framebuffer"in n){var a=n.framebuffer;return a?(a=l.getFramebuffer(a),U((function(e,t){var n=e.link(a),r=e.shared;return t.set(r.framebuffer,".next",n),r=r.context,t.set(r,".framebufferWidth",n+".width"),t.set(r,".framebufferHeight",n+".height"),n}))):U((function(e,t){var n=e.shared;return t.set(n.framebuffer,".next","null"),n=n.context,t.set(n,".framebufferWidth",n+".drawingBufferWidth"),t.set(n,".framebufferHeight",n+".drawingBufferHeight"),"null"}))}if("framebuffer"in r){var o=r.framebuffer;return W(o,(function(e,t){var n=e.invoke(t,o),r=e.shared,a=r.framebuffer;n=t.def(a,".getFramebuffer(",n,")");return t.set(a,".next",n),r=r.context,t.set(r,".framebufferWidth",n+"?"+n+".width:"+r+".drawingBufferWidth"),t.set(r,".framebufferHeight",n+"?"+n+".height:"+r+".drawingBufferHeight"),n}))}return null}function k(e,t,n){function r(e){if(e in a){var n=a[e];e=!0;var r,i,l=0|n.x,s=0|n.y;return"width"in n?r=0|n.width:e=!1,"height"in n?i=0|n.height:e=!1,new V(!e&&t&&t.thisDep,!e&&t&&t.contextDep,!e&&t&&t.propDep,(function(e,t){var a=e.shared.context,o=r;"width"in n||(o=t.def(a,".","framebufferWidth","-",l));var u=i;return"height"in n||(u=t.def(a,".","framebufferHeight","-",s)),[l,s,o,u]}))}if(e in o){var u=o[e];return e=W(u,(function(e,t){var n=e.invoke(t,u),r=e.shared.context,a=t.def(n,".x|0"),o=t.def(n,".y|0"),i=t.def('"width" in ',n,"?",n,".width|0:","(",r,".","framebufferWidth","-",a,")");n=t.def('"height" in ',n,"?",n,".height|0:","(",r,".","framebufferHeight","-",o,")");return[a,o,i,n]})),t&&(e.thisDep=e.thisDep||t.thisDep,e.contextDep=e.contextDep||t.contextDep,e.propDep=e.propDep||t.propDep),e}return t?new V(t.thisDep,t.contextDep,t.propDep,(function(e,t){var n=e.shared.context;return[0,0,t.def(n,".","framebufferWidth"),t.def(n,".","framebufferHeight")]})):null}var a=e["static"],o=e.dynamic;if(e=r("viewport")){var i=e;e=new V(e.thisDep,e.contextDep,e.propDep,(function(e,t){var n=i.append(e,t),r=e.shared.context;return t.set(r,".viewportWidth",n[2]),t.set(r,".viewportHeight",n[3]),n}))}return{viewport:e,scissor_box:r("scissor.box")}}function T(e,t){var n=e["static"];if("string"===typeof n.frag&&"string"===typeof n.vert){if(0<Object.keys(t.dynamic).length)return null;n=t["static"];var r=Object.keys(n);if(0<r.length&&"number"===typeof n[r[0]]){for(var a=[],o=0;o<r.length;++o)a.push([0|n[r[o]],r[o]]);return a}}return null}function E(e,n,r){function a(e){if(e in o){var n=t.id(o[e]);return e=U((function(){return n})),e.id=n,e}if(e in i){var r=i[e];return W(r,(function(e,t){var n=e.invoke(t,r);return t.def(e.shared.strings,".id(",n,")")}))}return null}var o=e["static"],i=e.dynamic,l=a("frag"),s=a("vert"),u=null;return H(l)&&H(s)?(u=f.program(s.id,l.id,null,r),e=U((function(e,t){return e.link(u)}))):e=new V(l&&l.thisDep||s&&s.thisDep,l&&l.contextDep||s&&s.contextDep,l&&l.propDep||s&&s.propDep,(function(e,t){var n,r,a=e.shared.shader;return n=l?l.append(e,t):t.def(a,".","frag"),r=s?s.append(e,t):t.def(a,".","vert"),t.def(a+".program("+r+","+n+")")})),{frag:l,vert:s,progVar:e,program:u}}function O(e,t){function n(e,t){if(e in r){var n=0|r[e];return U((function(e,r){return t&&(e.OFFSET=n),n}))}if(e in a){var o=a[e];return W(o,(function(e,n){var r=e.invoke(n,o);return t&&(e.OFFSET=r),r}))}return t&&i?U((function(e,t){return e.OFFSET="0",0})):null}var r=e["static"],a=e.dynamic,i=function(){if("elements"in r){var e=r.elements;F(e)?e=o.getElements(o.create(e,!0)):e&&(e=o.getElements(e));var t=U((function(t,n){if(e){var r=t.link(e);return t.ELEMENTS=r}return t.ELEMENTS=null}));return t.value=e,t}if("elements"in a){var n=a.elements;return W(n,(function(e,t){var r=e.shared,a=r.isBufferArgs,o=(r=r.elements,e.invoke(t,n)),i=t.def("null");a=t.def(a,"(",o,")"),o=e.cond(a).then(i,"=",r,".createStream(",o,");")["else"](i,"=",r,".getElements(",o,");");return t.entry(o),t.exit(e.cond(a).then(r,".destroyStream(",i,");")),e.ELEMENTS=i}))}return null}(),l=n("offset",!0);return{elements:i,primitive:function(){if("primitive"in r){var e=r.primitive;return U((function(t,n){return ue[e]}))}if("primitive"in a){var t=a.primitive;return W(t,(function(e,n){var r=e.constants.primTypes,a=e.invoke(n,t);return n.def(r,"[",a,"]")}))}return i?H(i)?i.value?U((function(e,t){return t.def(e.ELEMENTS,".primType")})):U((function(){return 4})):new V(i.thisDep,i.contextDep,i.propDep,(function(e,t){var n=e.ELEMENTS;return t.def(n,"?",n,".primType:",4)})):null}(),count:function(){if("count"in r){var e=0|r.count;return U((function(){return e}))}if("count"in a){var t=a.count;return W(t,(function(e,n){return e.invoke(n,t)}))}return i?H(i)?i?l?new V(l.thisDep,l.contextDep,l.propDep,(function(e,t){return t.def(e.ELEMENTS,".vertCount-",e.OFFSET)})):U((function(e,t){return t.def(e.ELEMENTS,".vertCount")})):U((function(){return-1})):new V(i.thisDep||l.thisDep,i.contextDep||l.contextDep,i.propDep||l.propDep,(function(e,t){var n=e.ELEMENTS;return e.OFFSET?t.def(n,"?",n,".vertCount-",e.OFFSET,":-1"):t.def(n,"?",n,".vertCount:-1")})):null}(),instances:n("instances",!1),offset:l}}function M(e,t){var n=e["static"],r=e.dynamic,a={};return de.forEach((function(e){function t(t,i){if(e in n){var l=t(n[e]);a[o]=U((function(){return l}))}else if(e in r){var s=r[e];a[o]=W(s,(function(e,t){return i(e,t,e.invoke(t,s))}))}}var o=m(e);switch(e){case"cull.enable":case"blend.enable":case"dither":case"stencil.enable":case"depth.enable":case"scissor.enable":case"polygonOffset.enable":case"sample.alpha":case"sample.enable":case"depth.mask":return t((function(e){return e}),(function(e,t,n){return n}));case"depth.func":return t((function(e){return Pe[e]}),(function(e,t,n){return t.def(e.constants.compareFuncs,"[",n,"]")}));case"depth.range":return t((function(e){return e}),(function(e,t,n){return e=t.def("+",n,"[0]"),t=t.def("+",n,"[1]"),[e,t]}));case"blend.func":return t((function(e){return[Ae["srcRGB"in e?e.srcRGB:e.src],Ae["dstRGB"in e?e.dstRGB:e.dst],Ae["srcAlpha"in e?e.srcAlpha:e.src],Ae["dstAlpha"in e?e.dstAlpha:e.dst]]}),(function(e,t,n){function r(e,r){return t.def('"',e,r,'" in ',n,"?",n,".",e,r,":",n,".",e)}e=e.constants.blendFuncs;var a=r("src","RGB"),o=r("dst","RGB"),i=(a=t.def(e,"[",a,"]"),t.def(e,"[",r("src","Alpha"),"]"));o=t.def(e,"[",o,"]");return e=t.def(e,"[",r("dst","Alpha"),"]"),[a,o,i,e]}));case"blend.equation":return t((function(e){return"string"===typeof e?[le[e],le[e]]:"object"===typeof e?[le[e.rgb],le[e.alpha]]:void 0}),(function(e,t,n){var r=e.constants.blendEquations,a=t.def(),o=t.def();return e=e.cond("typeof ",n,'==="string"'),e.then(a,"=",o,"=",r,"[",n,"];"),e["else"](a,"=",r,"[",n,".rgb];",o,"=",r,"[",n,".alpha];"),t(e),[a,o]}));case"blend.color":return t((function(e){return c(4,(function(t){return+e[t]}))}),(function(e,t,n){return c(4,(function(e){return t.def("+",n,"[",e,"]")}))}));case"stencil.mask":return t((function(e){return 0|e}),(function(e,t,n){return t.def(n,"|0")}));case"stencil.func":return t((function(e){return[Pe[e.cmp||"keep"],e.ref||0,"mask"in e?e.mask:-1]}),(function(e,t,n){e=t.def('"cmp" in ',n,"?",e.constants.compareFuncs,"[",n,".cmp]",":",7680);var r=t.def(n,".ref|0");return t=t.def('"mask" in ',n,"?",n,".mask|0:-1"),[e,r,t]}));case"stencil.opFront":case"stencil.opBack":return t((function(t){return["stencil.opBack"===e?1029:1028,Le[t.fail||"keep"],Le[t.zfail||"keep"],Le[t.zpass||"keep"]]}),(function(t,n,r){function a(e){return n.def('"',e,'" in ',r,"?",o,"[",r,".",e,"]:",7680)}var o=t.constants.stencilOps;return["stencil.opBack"===e?1029:1028,a("fail"),a("zfail"),a("zpass")]}));case"polygonOffset.offset":return t((function(e){return[0|e.factor,0|e.units]}),(function(e,t,n){return e=t.def(n,".factor|0"),t=t.def(n,".units|0"),[e,t]}));case"cull.face":return t((function(e){var t=0;return"front"===e?t=1028:"back"===e&&(t=1029),t}),(function(e,t,n){return t.def(n,'==="front"?',1028,":",1029)}));case"lineWidth":return t((function(e){return e}),(function(e,t,n){return n}));case"frontFace":return t((function(e){return De[e]}),(function(e,t,n){return t.def(n+'==="cw"?2304:2305')}));case"colorMask":return t((function(e){return e.map((function(e){return!!e}))}),(function(e,t,n){return c(4,(function(e){return"!!"+n+"["+e+"]"}))}));case"sample.coverage":return t((function(e){return["value"in e?e.value:1,!!e.invert]}),(function(e,t,n){return e=t.def('"value" in ',n,"?+",n,".value:1"),t=t.def("!!",n,".invert"),[e,t]}))}})),a}function S(e,t){var n=e["static"],r=e.dynamic,a={};return Object.keys(n).forEach((function(e){var t,r=n[e];if("number"===typeof r||"boolean"===typeof r)t=U((function(){return r}));else if("function"===typeof r){var o=r._reglType;"texture2d"===o||"textureCube"===o?t=U((function(e){return e.link(r)})):"framebuffer"!==o&&"framebufferCube"!==o||(t=U((function(e){return e.link(r.color[0])})))}else w(r)&&(t=U((function(e){return e.global.def("[",c(r.length,(function(e){return r[e]})),"]")})));t.value=r,a[e]=t})),Object.keys(r).forEach((function(e){var t=r[e];a[e]=W(t,(function(e,n){return e.invoke(n,t)}))})),a}function C(e,n){var r=e["static"],o=e.dynamic,i={};return Object.keys(r).forEach((function(e){var n=r[e],o=t.id(e),l=new ie;if(F(n))l.state=1,l.buffer=a.getBuffer(a.create(n,34962,!1,!0)),l.type=0;else{var s=a.getBuffer(n);if(s)l.state=1,l.buffer=s,l.type=0;else if("constant"in n){var u=n.constant;l.buffer="null",l.state=2,"number"===typeof u?l.x=u:Se.forEach((function(e,t){t<u.length&&(l[e]=u[t])}))}else{s=F(n.buffer)?a.getBuffer(a.create(n.buffer,34962,!1,!0)):a.getBuffer(n.buffer);var c=0|n.offset,f=0|n.stride,p=0|n.size,d=!!n.normalized,h=0;"type"in n&&(h=ae[n.type]),n=0|n.divisor,l.buffer=s,l.state=1,l.size=p,l.normalized=d,l.type=h||s.dtype,l.offset=c,l.stride=f,l.divisor=n}}i[e]=U((function(e,t){var n=e.attribCache;if(o in n)return n[o];var r={isStream:!1};return Object.keys(l).forEach((function(e){r[e]=l[e]})),l.buffer&&(r.buffer=e.link(l.buffer),r.type=r.type||r.buffer+".dtype"),n[o]=r}))})),Object.keys(o).forEach((function(e){var t=o[e];i[e]=W(t,(function(e,n){function r(e){n(s[e],"=",a,".",e,"|0;")}var a=e.invoke(n,t),o=e.shared,i=e.constants,l=o.isBufferArgs,s=(o=o.buffer,{isStream:n.def(!1)}),u=new ie;u.state=1,Object.keys(u).forEach((function(e){s[e]=n.def(""+u[e])}));var c=s.buffer,f=s.type;return n("if(",l,"(",a,")){",s.isStream,"=true;",c,"=",o,".createStream(",34962,",",a,");",f,"=",c,".dtype;","}else{",c,"=",o,".getBuffer(",a,");","if(",c,"){",f,"=",c,".dtype;",'}else if("constant" in ',a,"){",s.state,"=",2,";","if(typeof "+a+'.constant === "number"){',s[Se[0]],"=",a,".constant;",Se.slice(1).map((function(e){return s[e]})).join("="),"=0;","}else{",Se.map((function(e,t){return s[e]+"="+a+".constant.length>"+t+"?"+a+".constant["+t+"]:0;"})).join(""),"}}else{","if(",l,"(",a,".buffer)){",c,"=",o,".createStream(",34962,",",a,".buffer);","}else{",c,"=",o,".getBuffer(",a,".buffer);","}",f,'="type" in ',a,"?",i.glTypes,"[",a,".type]:",c,".dtype;",s.normalized,"=!!",a,".normalized;"),r("size"),r("offset"),r("stride"),r("divisor"),n("}}"),n.exit("if(",s.isStream,"){",o,".destroyStream(",c,");","}"),s}))})),i}function A(e,t){var n=e["static"],r=e.dynamic;if("vao"in n){var a=n.vao;return null!==a&&null===u.getVAO(a)&&(a=u.createVAO(a)),U((function(e){return e.link(u.getVAO(a))}))}if("vao"in r){var o=r.vao;return W(o,(function(e,t){var n=e.invoke(t,o);return t.def(e.shared.vao+".getVAO("+n+")")}))}return null}function P(e){var t=e["static"],n=e.dynamic,r={};return Object.keys(t).forEach((function(e){var n=t[e];r[e]=U((function(e,t){return"number"===typeof n||"boolean"===typeof n?""+n:e.link(n)}))})),Object.keys(n).forEach((function(e){var t=n[e];r[e]=W(t,(function(e,n){return e.invoke(n,t)}))})),r}function L(e,t,r,a,o){function i(e){var t=c[e];t&&(p[e]=t)}var l=T(e,t),s=_(e,o),c=k(e,s,o),f=O(e,o),p=M(e,o),d=E(e,o,l);i("viewport"),i(m("scissor.box"));var h=0<Object.keys(p).length;s={framebuffer:s,draw:f,shader:d,state:p,dirty:h,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(s.profile=x(e,o),s.uniforms=S(r,o),s.drawVAO=s.scopeVAO=A(e,o),!s.drawVAO&&d.program&&!l&&n.angle_instanced_arrays){var v=!0;if(e=d.program.attributes.map((function(e){return e=t["static"][e],v=v&&!!e,e})),v&&0<e.length){var y=u.getVAO(u.createVAO(e));s.drawVAO=new V(null,null,null,(function(e,t){return e.link(y)})),s.useVAO=!0}}return l?s.useVAO=!0:s.attributes=C(t,o),s.context=P(a,o),s}function D(e,t,n){var r=e.shared.context,a=e.scope();Object.keys(n).forEach((function(o){t.save(r,"."+o),a(r,".",o,"=",n[o].append(e,t),";")})),t(a)}function j(e,t,n,r){var a,o=e.shared,i=o.gl,l=o.framebuffer;ce&&(a=t.def(o.extensions,".webgl_draw_buffers"));var s=e.constants;o=s.drawBuffer,s=s.backBuffer;e=n?n.append(e,t):t.def(l,".next"),r||t("if(",e,"!==",l,".cur){"),t("if(",e,"){",i,".bindFramebuffer(",36160,",",e,".framebuffer);"),ce&&t(a,".drawBuffersWEBGL(",o,"[",e,".colorAttachments.length]);"),t("}else{",i,".bindFramebuffer(",36160,",null);"),ce&&t(a,".drawBuffersWEBGL(",s,");"),t("}",l,".cur=",e,";"),r||t("}")}function I(e,t,n){var r=e.shared,a=r.gl,o=e.current,i=e.next,l=r.current,s=r.next,u=e.cond(l,".dirty");de.forEach((function(t){var r,f;if(t=m(t),!(t in n.state))if(t in i){r=i[t],f=o[t];var p=c(fe[t].length,(function(e){return u.def(r,"[",e,"]")}));u(e.cond(p.map((function(e,t){return e+"!=="+f+"["+t+"]"})).join("||")).then(a,".",ve[t],"(",p,");",p.map((function(e,t){return f+"["+t+"]="+e})).join(";"),";"))}else r=u.def(s,".",t),p=e.cond(r,"!==",l,".",t),u(p),t in he?p(e.cond(r).then(a,".enable(",he[t],");")["else"](a,".disable(",he[t],");"),l,".",t,"=",r,";"):p(a,".",ve[t],"(",r,");",l,".",t,"=",r,";")})),0===Object.keys(n.state).length&&u(l,".dirty=false;"),t(u)}function R(e,t,n,r){var a=e.shared,o=e.current,i=a.current,l=a.gl;B(Object.keys(n)).forEach((function(a){var s=n[a];if(!r||r(s)){var u=s.append(e,t);if(he[a]){var c=he[a];H(s)?t(l,u?".enable(":".disable(",c,");"):t(e.cond(u).then(l,".enable(",c,");")["else"](l,".disable(",c,");")),t(i,".",a,"=",u,";")}else if(w(u)){var f=o[a];t(l,".",ve[a],"(",u,");",u.map((function(e,t){return f+"["+t+"]="+e})).join(";"),";")}else t(l,".",ve[a],"(",u,");",i,".",a,"=",u,";")}}))}function z(e,t){se&&(e.instancing=t.def(e.shared.extensions,".angle_instanced_arrays"))}function q(e,t,n,r,a){function o(){return"undefined"===typeof performance?"Date.now()":"performance.now()"}function i(e){u=t.def(),e(u,"=",o(),";"),"string"===typeof a?e(p,".count+=",a,";"):e(p,".count++;"),h&&(r?(c=t.def(),e(c,"=",v,".getNumPendingQueries();")):e(v,".beginQuery(",p,");"))}function l(e){e(p,".cpuTime+=",o(),"-",u,";"),h&&(r?e(v,".pushScopeStats(",c,",",v,".getNumPendingQueries(),",p,");"):e(v,".endQuery();"))}function s(e){var n=t.def(d,".profile");t(d,".profile=",e,";"),t.exit(d,".profile=",n,";")}var u,c,f=e.shared,p=e.stats,d=f.current,v=f.timer;if(n=n.profile,n){if(H(n))return void(n.enable?(i(t),l(t.exit),s("true")):s("false"));n=n.append(e,t),s(n)}else n=t.def(d,".profile");f=e.block(),i(f),t("if(",n,"){",f,"}"),e=e.block(),l(e),t.exit("if(",n,"){",e,"}")}function $(e,t,n,r,a){function o(e){switch(e){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}function i(n,r,a){function o(){t("if(!",c,".buffer){",s,".enableVertexAttribArray(",u,");}");var n,o=a.type;n=a.size?t.def(a.size,"||",r):r,t("if(",c,".type!==",o,"||",c,".size!==",n,"||",d.map((function(e){return c+"."+e+"!=="+a[e]})).join("||"),"){",s,".bindBuffer(",34962,",",f,".buffer);",s,".vertexAttribPointer(",[u,n,o,a.normalized,a.stride,a.offset],");",c,".type=",o,";",c,".size=",n,";",d.map((function(e){return c+"."+e+"="+a[e]+";"})).join(""),"}"),se&&(o=a.divisor,t("if(",c,".divisor!==",o,"){",e.instancing,".vertexAttribDivisorANGLE(",[u,o],");",c,".divisor=",o,";}"))}function i(){t("if(",c,".buffer){",s,".disableVertexAttribArray(",u,");",c,".buffer=null;","}if(",Se.map((function(e,t){return c+"."+e+"!=="+p[t]})).join("||"),"){",s,".vertexAttrib4f(",u,",",p,");",Se.map((function(e,t){return c+"."+e+"="+p[t]+";"})).join(""),"}")}var s=l.gl,u=t.def(n,".location"),c=t.def(l.attributes,"[",u,"]");n=a.state;var f=a.buffer,p=[a.x,a.y,a.z,a.w],d=["buffer","normalized","offset","stride"];1===n?o():2===n?i():(t("if(",n,"===",1,"){"),o(),t("}else{"),i(),t("}"))}var l=e.shared;r.forEach((function(r){var l,s=r.name,u=n.attributes[s];if(u){if(!a(u))return;l=u.append(e,t)}else{if(!a(je))return;var c=e.scopeAttrib(s);l={},Object.keys(new ie).forEach((function(e){l[e]=t.def(c,".",e)}))}i(e.link(r),o(r.info.type),l)}))}function G(e,n,r,a,o){for(var i,l=e.shared,s=l.gl,u=0;u<a.length;++u){var f,p=a[u],d=p.name,h=p.info.type,v=r.uniforms[d];p=e.link(p)+".location";if(v){if(!o(v))continue;if(H(v)){if(d=v.value,35678===h||35680===h)h=e.link(d._texture||d.color[0]._texture),n(s,".uniform1i(",p,",",h+".bind());"),n.exit(h,".unbind();");else if(35674===h||35675===h||35676===h)d=e.global.def("new Float32Array(["+Array.prototype.slice.call(d)+"])"),v=2,35675===h?v=3:35676===h&&(v=4),n(s,".uniformMatrix",v,"fv(",p,",false,",d,");");else{switch(h){case 5126:i="1f";break;case 35664:i="2f";break;case 35665:i="3f";break;case 35666:i="4f";break;case 35670:i="1i";break;case 5124:i="1i";break;case 35671:i="2i";break;case 35667:i="2i";break;case 35672:i="3i";break;case 35668:i="3i";break;case 35673:i="4i";break;case 35669:i="4i"}n(s,".uniform",i,"(",p,",",w(d)?Array.prototype.slice.call(d):d,");")}continue}f=v.append(e,n)}else{if(!o(je))continue;f=n.def(l.uniforms,"[",t.id(d),"]")}switch(35678===h?n("if(",f,"&&",f,'._reglType==="framebuffer"){',f,"=",f,".color[0];","}"):35680===h&&n("if(",f,"&&",f,'._reglType==="framebufferCube"){',f,"=",f,".color[0];","}"),d=1,h){case 35678:case 35680:h=n.def(f,"._texture"),n(s,".uniform1i(",p,",",h,".bind());"),n.exit(h,".unbind();");continue;case 5124:case 35670:i="1i";break;case 35667:case 35671:i="2i",d=2;break;case 35668:case 35672:i="3i",d=3;break;case 35669:case 35673:i="4i",d=4;break;case 5126:i="1f";break;case 35664:i="2f",d=2;break;case 35665:i="3f",d=3;break;case 35666:i="4f",d=4;break;case 35674:i="Matrix2fv";break;case 35675:i="Matrix3fv";break;case 35676:i="Matrix4fv"}if(n(s,".uniform",i,"(",p,","),"M"===i.charAt(0)){p=Math.pow(h-35674+2,2);var m=e.global.def("new Float32Array(",p,")");n("false,(Array.isArray(",f,")||",f," instanceof Float32Array)?",f,":(",c(p,(function(e){return m+"["+e+"]="+f+"["+e+"]"})),",",m,")")}else n(1<d?c(d,(function(e){return f+"["+e+"]"})):f);n(");")}}function Y(e,t,n,r){function a(a){var o=p[a];return o?o.contextDep&&r.contextDynamic||o.propDep?o.append(e,n):o.append(e,t):t.def(f,".",a)}function o(){function e(){n(s,".drawElementsInstancedANGLE(",[h,m,y,v+"<<(("+y+"-5121)>>1)",l],");")}function t(){n(s,".drawArraysInstancedANGLE(",[h,v,m,l],");")}d?g?e():(n("if(",d,"){"),e(),n("}else{"),t(),n("}")):t()}function i(){function e(){n(c+".drawElements("+[h,m,y,v+"<<(("+y+"-5121)>>1)"]+");")}function t(){n(c+".drawArrays("+[h,v,m]+");")}d?g?e():(n("if(",d,"){"),e(),n("}else{"),t(),n("}")):t()}var l,s,u=e.shared,c=u.gl,f=u.draw,p=r.draw,d=function(){var a=p.elements,o=t;return a?((a.contextDep&&r.contextDynamic||a.propDep)&&(o=n),a=a.append(e,o)):a=o.def(f,".","elements"),a&&o("if("+a+")"+c+".bindBuffer(34963,"+a+".buffer.buffer);"),a}(),h=a("primitive"),v=a("offset"),m=function(){var a=p.count,o=t;return a?((a.contextDep&&r.contextDynamic||a.propDep)&&(o=n),a=a.append(e,o)):a=o.def(f,".","count"),a}();if("number"===typeof m){if(0===m)return}else n("if(",m,"){"),n.exit("}");se&&(l=a("instances"),s=e.instancing);var y=d+".type",g=p.elements&&H(p.elements);se&&("number"!==typeof l||0<=l)?"string"===typeof l?(n("if(",l,">0){"),o(),n("}else if(",l,"<0){"),i(),n("}")):o():i()}function X(e,t,n,r,a){return t=b(),a=t.proc("body",a),se&&(t.instancing=a.def(t.shared.extensions,".angle_instanced_arrays")),e(t,a,n,r),t.compile().body}function Z(e,t,n,r){z(e,t),n.useVAO?n.drawVAO?t(e.shared.vao,".setVAO(",n.drawVAO.append(e,t),");"):t(e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"):(t(e.shared.vao,".setVAO(null);"),$(e,t,n,r.attributes,(function(){return!0}))),G(e,t,n,r.uniforms,(function(){return!0})),Y(e,t,t,n)}function J(e,t){var n=e.proc("draw",1);z(e,n),D(e,n,t.context),j(e,n,t.framebuffer),I(e,n,t),R(e,n,t.state),q(e,n,t,!1,!0);var r=t.shader.progVar.append(e,n);if(n(e.shared.gl,".useProgram(",r,".program);"),t.shader.program)Z(e,n,t,t.shader.program);else{n(e.shared.vao,".setVAO(null);");var a=e.global.def("{}"),o=n.def(r,".id"),i=n.def(a,"[",o,"]");n(e.cond(i).then(i,".call(this,a0);")["else"](i,"=",a,"[",o,"]=",e.link((function(n){return X(Z,e,t,n,1)})),"(",r,");",i,".call(this,a0);"))}0<Object.keys(t.state).length&&n(e.shared.current,".dirty=true;")}function Q(e,t,n,r){function a(){return!0}e.batchId="a1",z(e,t),$(e,t,n,r.attributes,a),G(e,t,n,r.uniforms,a),Y(e,t,t,n)}function ee(e,t,n,r){function a(e){return e.contextDep&&i||e.propDep}function o(e){return!a(e)}z(e,t);var i=n.contextDep,l=t.def(),s=t.def();e.shared.props=s,e.batchId=l;var u=e.scope(),c=e.scope();t(u.entry,"for(",l,"=0;",l,"<","a1",";++",l,"){",s,"=","a0","[",l,"];",c,"}",u.exit),n.needsContext&&D(e,c,n.context),n.needsFramebuffer&&j(e,c,n.framebuffer),R(e,c,n.state,a),n.profile&&a(n.profile)&&q(e,c,n,!1,!0),r?(n.useVAO?n.drawVAO?a(n.drawVAO)?c(e.shared.vao,".setVAO(",n.drawVAO.append(e,c),");"):u(e.shared.vao,".setVAO(",n.drawVAO.append(e,u),");"):u(e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"):(u(e.shared.vao,".setVAO(null);"),$(e,u,n,r.attributes,o),$(e,c,n,r.attributes,a)),G(e,u,n,r.uniforms,o),G(e,c,n,r.uniforms,a),Y(e,u,c,n)):(t=e.global.def("{}"),r=n.shader.progVar.append(e,c),s=c.def(r,".id"),u=c.def(t,"[",s,"]"),c(e.shared.gl,".useProgram(",r,".program);","if(!",u,"){",u,"=",t,"[",s,"]=",e.link((function(t){return X(Q,e,n,t,2)})),"(",r,");}",u,".call(this,a0[",l,"],",l,");"))}function te(e,t){function n(e){return e.contextDep&&a||e.propDep}var r=e.proc("batch",2);e.batchId="0",z(e,r);var a=!1,o=!0;Object.keys(t.context).forEach((function(e){a=a||t.context[e].propDep})),a||(D(e,r,t.context),o=!1);var i=t.framebuffer,l=!1;if(i?(i.propDep?a=l=!0:i.contextDep&&a&&(l=!0),l||j(e,r,i)):j(e,r,null),t.state.viewport&&t.state.viewport.propDep&&(a=!0),I(e,r,t),R(e,r,t.state,(function(e){return!n(e)})),t.profile&&n(t.profile)||q(e,r,t,!1,"a1"),t.contextDep=a,t.needsContext=o,t.needsFramebuffer=l,o=t.shader.progVar,o.contextDep&&a||o.propDep)ee(e,r,t,null);else if(o=o.append(e,r),r(e.shared.gl,".useProgram(",o,".program);"),t.shader.program)ee(e,r,t,t.shader.program);else{r(e.shared.vao,".setVAO(null);");i=e.global.def("{}"),l=r.def(o,".id");var s=r.def(i,"[",l,"]");r(e.cond(s).then(s,".call(this,a0,a1);")["else"](s,"=",i,"[",l,"]=",e.link((function(n){return X(ee,e,t,n,2)})),"(",o,");",s,".call(this,a0,a1);"))}0<Object.keys(t.state).length&&r(e.shared.current,".dirty=true;")}function ne(e,n){function r(t){var r=n.shader[t];r&&a.set(o.shader,"."+t,r.append(e,a))}var a=e.proc("scope",3);e.batchId="a2";var o=e.shared,i=o.current;D(e,a,n.context),n.framebuffer&&n.framebuffer.append(e,a),B(Object.keys(n.state)).forEach((function(t){var r=n.state[t].append(e,a);w(r)?r.forEach((function(n,r){a.set(e.next[t],"["+r+"]",n)})):a.set(o.next,"."+t,r)})),q(e,a,n,!0,!0),["elements","offset","count","instances","primitive"].forEach((function(t){var r=n.draw[t];r&&a.set(o.draw,"."+t,""+r.append(e,a))})),Object.keys(n.uniforms).forEach((function(r){a.set(o.uniforms,"["+t.id(r)+"]",n.uniforms[r].append(e,a))})),Object.keys(n.attributes).forEach((function(t){var r=n.attributes[t].append(e,a),o=e.scopeAttrib(t);Object.keys(new ie).forEach((function(e){a.set(o,"."+e,r[e])}))})),n.scopeVAO&&a.set(o.vao,".targetVAO",n.scopeVAO.append(e,a)),r("vert"),r("frag"),0<Object.keys(n.state).length&&(a(i,".dirty=true;"),a.exit(i,".dirty=true;")),a("a1(",e.shared.context,",a0,",e.batchId,");")}function re(e){if("object"===typeof e&&!w(e)){for(var t=Object.keys(e),n=0;n<t.length;++n)if(K.isDynamic(e[t[n]]))return!0;return!1}}function oe(e,t,n){function r(e,t){i.forEach((function(n){var r=a[n];K.isDynamic(r)&&(r=e.invoke(t,r),t(c,".",n,"=",r,";"))}))}var a=t["static"][n];if(a&&re(a)){var o=e.global,i=Object.keys(a),l=!1,s=!1,u=!1,c=e.global.def("{}");i.forEach((function(t){var n=a[t];if(K.isDynamic(n))"function"===typeof n&&(n=a[t]=K.unbox(n)),t=W(n,null),l=l||t.thisDep,u=u||t.propDep,s=s||t.contextDep;else{switch(o(c,".",t,"="),typeof n){case"number":o(n);break;case"string":o('"',n,'"');break;case"object":Array.isArray(n)&&o("[",n.join(),"]");break;default:o(e.link(n))}o(";")}})),t.dynamic[n]=new K.DynamicVariable(4,{thisDep:l,contextDep:s,propDep:u,ref:c,append:r}),delete t["static"][n]}}var ie=u.Record,le={add:32774,subtract:32778,"reverse subtract":32779};n.ext_blend_minmax&&(le.min=32775,le.max=32776);var se=n.angle_instanced_arrays,ce=n.webgl_draw_buffers,fe={dirty:!0,profile:v.profile},pe={},de=[],he={},ve={};y("dither",3024),y("blend.enable",3042),g("blend.color","blendColor",[0,0,0,0]),g("blend.equation","blendEquationSeparate",[32774,32774]),g("blend.func","blendFuncSeparate",[1,0,1,0]),y("depth.enable",2929,!0),g("depth.func","depthFunc",513),g("depth.range","depthRange",[0,1]),g("depth.mask","depthMask",!0),g("colorMask","colorMask",[!0,!0,!0,!0]),y("cull.enable",2884),g("cull.face","cullFace",1029),g("frontFace","frontFace",2305),g("lineWidth","lineWidth",1),y("polygonOffset.enable",32823),g("polygonOffset.offset","polygonOffset",[0,0]),y("sample.alpha",32926),y("sample.enable",32928),g("sample.coverage","sampleCoverage",[1,!1]),y("stencil.enable",2960),g("stencil.mask","stencilMask",-1),g("stencil.func","stencilFunc",[519,0,-1]),g("stencil.opFront","stencilOpSeparate",[1028,7680,7680,7680]),g("stencil.opBack","stencilOpSeparate",[1029,7680,7680,7680]),y("scissor.enable",3089),g("scissor.box","scissor",[0,0,e.drawingBufferWidth,e.drawingBufferHeight]),g("viewport","viewport",[0,0,e.drawingBufferWidth,e.drawingBufferHeight]);var me={gl:e,context:d,strings:t,next:pe,current:fe,draw:p,elements:o,buffer:a,shader:f,attributes:u.state,vao:u,uniforms:s,framebuffer:l,extensions:n,timer:h,isBufferArgs:F},ye={primTypes:ue,compareFuncs:Pe,blendFuncs:Ae,blendEquations:le,stencilOps:Le,glTypes:ae,orientationType:De};ce&&(ye.backBuffer=[1029],ye.drawBuffer=c(r.maxDrawbuffers,(function(e){return 0===e?[0]:c(e,(function(e){return 36064+e}))})));var ge=0;return{next:pe,current:fe,procs:function(){var e=b(),t=e.proc("poll"),a=e.proc("refresh"),o=e.block();t(o),a(o);var i,l=e.shared,s=l.gl,u=l.next,f=l.current;o(f,".dirty=false;"),j(e,t),j(e,a,null,!0),se&&(i=e.link(se)),n.oes_vertex_array_object&&a(e.link(n.oes_vertex_array_object),".bindVertexArrayOES(null);");for(var p=0;p<r.maxAttributes;++p){var d=a.def(l.attributes,"[",p,"]"),h=e.cond(d,".buffer");h.then(s,".enableVertexAttribArray(",p,");",s,".bindBuffer(",34962,",",d,".buffer.buffer);",s,".vertexAttribPointer(",p,",",d,".size,",d,".type,",d,".normalized,",d,".stride,",d,".offset);")["else"](s,".disableVertexAttribArray(",p,");",s,".vertexAttrib4f(",p,",",d,".x,",d,".y,",d,".z,",d,".w);",d,".buffer=null;"),a(h),se&&a(i,".vertexAttribDivisorANGLE(",p,",",d,".divisor);")}return a(e.shared.vao,".currentVAO=null;",e.shared.vao,".setVAO(",e.shared.vao,".targetVAO);"),Object.keys(he).forEach((function(n){var r=he[n],i=o.def(u,".",n),l=e.block();l("if(",i,"){",s,".enable(",r,")}else{",s,".disable(",r,")}",f,".",n,"=",i,";"),a(l),t("if(",i,"!==",f,".",n,"){",l,"}")})),Object.keys(ve).forEach((function(n){var r,i,l=ve[n],p=fe[n],d=e.block();d(s,".",l,"("),w(p)?(l=p.length,r=e.global.def(u,".",n),i=e.global.def(f,".",n),d(c(l,(function(e){return r+"["+e+"]"})),");",c(l,(function(e){return i+"["+e+"]="+r+"["+e+"];"})).join("")),t("if(",c(l,(function(e){return r+"["+e+"]!=="+i+"["+e+"]"})).join("||"),"){",d,"}")):(r=o.def(u,".",n),i=o.def(f,".",n),d(r,");",f,".",n,"=",r,";"),t("if(",r,"!==",i,"){",d,"}")),a(d)})),e.compile()}(),compile:function(e,t,n,r,a){var o=b();return o.stats=o.link(a),Object.keys(t["static"]).forEach((function(e){oe(o,t,e)})),Ce.forEach((function(t){oe(o,e,t)})),n=L(e,t,n,r,o),J(o,n),ne(o,n),te(o,n),o.compile()}}}function $(e,t){for(var n=0;n<e.length;++n)if(e[n]===t)return n;return-1}var G=function(e,t){for(var n=Object.keys(t),r=0;r<n.length;++r)e[n[r]]=t[n[r]];return e},Y=0,K={DynamicVariable:e,define:function(t,r){return new e(t,n(r+""))},isDynamic:function(t){return"function"===typeof t&&!t._reglType||t instanceof e},unbox:function(t,n){return"function"===typeof t?new e(0,t):t},accessor:n},X={next:"function"===typeof requestAnimationFrame?function(e){return requestAnimationFrame(e)}:function(e){return setTimeout(e,16)},cancel:"function"===typeof cancelAnimationFrame?function(e){return cancelAnimationFrame(e)}:clearTimeout},Z="undefined"!==typeof performance&&performance.now?function(){return performance.now()}:function(){return+new Date},J=p();J.zero=p();var Q=function(e,t){var n=1;t.ext_texture_filter_anisotropic&&(n=e.getParameter(34047));var r=1,a=1;t.webgl_draw_buffers&&(r=e.getParameter(34852),a=e.getParameter(36063));var o=!!t.oes_texture_float;if(o){o=e.createTexture(),e.bindTexture(3553,o),e.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var i=e.createFramebuffer();if(e.bindFramebuffer(36160,i),e.framebufferTexture2D(36160,36064,3553,o,0),e.bindTexture(3553,null),36053!==e.checkFramebufferStatus(36160))o=!1;else{e.viewport(0,0,1,1),e.clearColor(1,0,0,1),e.clear(16384);var l=J.allocType(5126,4);e.readPixels(0,0,1,1,6408,5126,l),e.getError()?o=!1:(e.deleteFramebuffer(i),e.deleteTexture(o),o=1===l[0]),J.freeType(l)}}return l=!0,"undefined"!==typeof navigator&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))||(l=e.createTexture(),i=J.allocType(5121,36),e.activeTexture(33984),e.bindTexture(34067,l),e.texImage2D(34069,0,6408,3,3,0,6408,5121,i),J.freeType(i),e.bindTexture(34067,null),e.deleteTexture(l),l=!e.getError()),{colorBits:[e.getParameter(3410),e.getParameter(3411),e.getParameter(3412),e.getParameter(3413)],depthBits:e.getParameter(3414),stencilBits:e.getParameter(3415),subpixelBits:e.getParameter(3408),extensions:Object.keys(t).filter((function(e){return!!t[e]})),maxAnisotropic:n,maxDrawbuffers:r,maxColorAttachments:a,pointSizeDims:e.getParameter(33901),lineWidthDims:e.getParameter(33902),maxViewportDims:e.getParameter(3386),maxCombinedTextureUnits:e.getParameter(35661),maxCubeMapSize:e.getParameter(34076),maxRenderbufferSize:e.getParameter(34024),maxTextureUnits:e.getParameter(34930),maxTextureSize:e.getParameter(3379),maxAttributes:e.getParameter(34921),maxVertexUniforms:e.getParameter(36347),maxVertexTextureUnits:e.getParameter(35660),maxVaryingVectors:e.getParameter(36348),maxFragmentUniforms:e.getParameter(36349),glsl:e.getParameter(35724),renderer:e.getParameter(7937),vendor:e.getParameter(7936),version:e.getParameter(7938),readFloat:o,npotTextureCube:l}},ee=function(e){return e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Float32Array||e instanceof Float64Array||e instanceof Uint8ClampedArray},te=function(e){return Object.keys(e).map((function(t){return e[t]}))},ne={shape:function(e){for(var t=[];e.length;e=e[0])t.push(e.length);return t},flatten:function(e,t,n,r){var a=1;if(t.length)for(var o=0;o<t.length;++o)a*=t[o];else a=0;switch(n=r||J.allocType(n,a),t.length){case 0:break;case 1:for(r=t[0],t=0;t<r;++t)n[t]=e[t];break;case 2:for(r=t[0],t=t[1],o=a=0;o<r;++o)for(var i=e[o],l=0;l<t;++l)n[a++]=i[l];break;case 3:h(e,t[0],t[1],t[2],n,0);break;default:v(e,t,0,n,0)}return n}},re={"[object Int8Array]":5120,"[object Int16Array]":5122,"[object Int32Array]":5124,"[object Uint8Array]":5121,"[object Uint8ClampedArray]":5121,"[object Uint16Array]":5123,"[object Uint32Array]":5125,"[object Float32Array]":5126,"[object Float64Array]":5121,"[object ArrayBuffer]":5121},ae={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},oe={dynamic:35048,stream:35040,static:35044},ie=ne.flatten,le=ne.shape,se=[];se[5120]=1,se[5122]=2,se[5124]=4,se[5121]=1,se[5123]=2,se[5125]=4,se[5126]=4;var ue={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},ce=new Float32Array(1),fe=new Uint32Array(ce.buffer),pe=[9984,9986,9985,9987],de=[0,6409,6410,6407,6408],he={};he[6409]=he[6406]=he[6402]=1,he[34041]=he[6410]=2,he[6407]=he[35904]=3,he[6408]=he[35906]=4;var ve=k("HTMLCanvasElement"),me=k("OffscreenCanvas"),ye=k("CanvasRenderingContext2D"),ge=k("ImageBitmap"),be=k("HTMLImageElement"),xe=k("HTMLVideoElement"),_e=Object.keys(re).concat([ve,me,ye,ge,be,xe]),we=[];we[5121]=1,we[5126]=4,we[36193]=2,we[5123]=2,we[5125]=4;var ke=[];ke[32854]=2,ke[32855]=2,ke[36194]=2,ke[34041]=4,ke[33776]=.5,ke[33777]=.5,ke[33778]=1,ke[33779]=1,ke[35986]=.5,ke[35987]=1,ke[34798]=1,ke[35840]=.5,ke[35841]=.25,ke[35842]=.5,ke[35843]=.25,ke[36196]=.5;var Te=[];Te[32854]=2,Te[32855]=2,Te[36194]=2,Te[33189]=2,Te[36168]=1,Te[34041]=4,Te[35907]=4,Te[34836]=16,Te[34842]=8,Te[34843]=6;var Ee=function(e,t,n,r,a){function o(e){this.id=u++,this.refCount=1,this.renderbuffer=e,this.format=32854,this.height=this.width=0,a.profile&&(this.stats={size:0})}function i(t){var n=t.renderbuffer;e.bindRenderbuffer(36161,null),e.deleteRenderbuffer(n),t.renderbuffer=null,t.refCount=0,delete c[t.id],r.renderbufferCount--}var l={rgba4:32854,rgb565:36194,"rgb5 a1":32855,depth:33189,stencil:36168,"depth stencil":34041};t.ext_srgb&&(l.srgba=35907),t.ext_color_buffer_half_float&&(l.rgba16f=34842,l.rgb16f=34843),t.webgl_color_buffer_float&&(l.rgba32f=34836);var s=[];Object.keys(l).forEach((function(e){s[l[e]]=e}));var u=0,c={};return o.prototype.decRef=function(){0>=--this.refCount&&i(this)},a.profile&&(r.getTotalRenderbufferSize=function(){var e=0;return Object.keys(c).forEach((function(t){e+=c[t].stats.size})),e}),{create:function(t,n){function i(t,n){var r=0,o=0,c=32854;if("object"===typeof t&&t?("shape"in t?(o=t.shape,r=0|o[0],o=0|o[1]):("radius"in t&&(r=o=0|t.radius),"width"in t&&(r=0|t.width),"height"in t&&(o=0|t.height)),"format"in t&&(c=l[t.format])):"number"===typeof t?(r=0|t,o="number"===typeof n?0|n:r):t||(r=o=1),r!==u.width||o!==u.height||c!==u.format)return i.width=u.width=r,i.height=u.height=o,u.format=c,e.bindRenderbuffer(36161,u.renderbuffer),e.renderbufferStorage(36161,c,r,o),a.profile&&(u.stats.size=Te[u.format]*u.width*u.height),i.format=s[u.format],i}var u=new o(e.createRenderbuffer());return c[u.id]=u,r.renderbufferCount++,i(t,n),i.resize=function(t,n){var r=0|t,o=0|n||r;return r===u.width&&o===u.height||(i.width=u.width=r,i.height=u.height=o,e.bindRenderbuffer(36161,u.renderbuffer),e.renderbufferStorage(36161,u.format,r,o),a.profile&&(u.stats.size=Te[u.format]*u.width*u.height)),i},i._reglType="renderbuffer",i._renderbuffer=u,a.profile&&(i.stats=u.stats),i.destroy=function(){u.decRef()},i},clear:function(){te(c).forEach(i)},restore:function(){te(c).forEach((function(t){t.renderbuffer=e.createRenderbuffer(),e.bindRenderbuffer(36161,t.renderbuffer),e.renderbufferStorage(36161,t.format,t.width,t.height)})),e.bindRenderbuffer(36161,null)}}},Oe=[];Oe[6408]=4,Oe[6407]=3;var Me=[];Me[5121]=1,Me[5126]=4,Me[36193]=2;var Se=["x","y","z","w"],Ce="blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset".split(" "),Ae={0:0,1:1,zero:0,one:1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776},Pe={never:512,less:513,"<":513,equal:514,"=":514,"==":514,"===":514,lequal:515,"<=":515,greater:516,">":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Le={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},De={cw:2304,ccw:2305},je=new V(!1,!1,!1,(function(){})),Ie=function(e,t){function n(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function r(e,t,r){var a=i.pop()||new n;a.startQueryIndex=e,a.endQueryIndex=t,a.sum=0,a.stats=r,l.push(a)}if(!t.ext_disjoint_timer_query)return null;var a=[],o=[],i=[],l=[],s=[],u=[];return{beginQuery:function(e){var n=a.pop()||t.ext_disjoint_timer_query.createQueryEXT();t.ext_disjoint_timer_query.beginQueryEXT(35007,n),o.push(n),r(o.length-1,o.length,e)},endQuery:function(){t.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:r,update:function(){var e,n;if(e=o.length,0!==e){u.length=Math.max(u.length,e+1),s.length=Math.max(s.length,e+1),s[0]=0;var r=u[0]=0;for(n=e=0;n<o.length;++n){var c=o[n];t.ext_disjoint_timer_query.getQueryObjectEXT(c,34919)?(r+=t.ext_disjoint_timer_query.getQueryObjectEXT(c,34918),a.push(c)):o[e++]=c,s[n+1]=r,u[n+1]=e}for(o.length=e,n=e=0;n<l.length;++n){r=l[n];var f=r.startQueryIndex;c=r.endQueryIndex;r.sum+=s[c]-s[f],f=u[f],c=u[c],c===f?(r.stats.gpuTime+=r.sum/1e6,i.push(r)):(r.startQueryIndex=f,r.endQueryIndex=c,l[e++]=r)}l.length=e}},getNumPendingQueries:function(){return o.length},clear:function(){a.push.apply(a,o);for(var e=0;e<a.length;e++)t.ext_disjoint_timer_query.deleteQueryEXT(a[e]);o.length=0,a.length=0},restore:function(){o.length=0,a.length=0}}};return function(e){function t(){if(0===Y.length)T&&T.update(),ne=null;else{ne=X.next(t),d();for(var e=Y.length-1;0<=e;--e){var n=Y[e];n&&n(S,null,0)}m.flush(),T&&T.update()}}function n(){!ne&&0<Y.length&&(ne=X.next(t))}function a(){ne&&(X.cancel(t),ne=null)}function o(e){e.preventDefault(),a(),J.forEach((function(e){e()}))}function i(e){m.getError(),g.restore(),N.restore(),L.restore(),F.restore(),B.restore(),V.restore(),R.restore(),T&&T.restore(),H.procs.refresh(),n(),ee.forEach((function(e){e()}))}function l(e){function t(e){var t={},n={};return Object.keys(e).forEach((function(r){var a=e[r];K.isDynamic(a)?n[r]=K.unbox(a,r):t[r]=a})),{dynamic:n,static:t}}function n(e){for(;c.length<e;)c.push(null);return c}var r=t(e.context||{}),a=t(e.uniforms||{}),o=t(e.attributes||{}),i=t(function(e){function t(e){if(e in n){var t=n[e];delete n[e],Object.keys(t).forEach((function(r){n[e+"."+r]=t[r]}))}}var n=G({},e);return delete n.uniforms,delete n.attributes,delete n.context,delete n.vao,"stencil"in n&&n.stencil.op&&(n.stencil.opBack=n.stencil.opFront=n.stencil.op,delete n.stencil.op),t("blend"),t("depth"),t("cull"),t("stencil"),t("polygonOffset"),t("scissor"),t("sample"),"vao"in e&&(n.vao=e.vao),n}(e));e={gpuTime:0,cpuTime:0,count:0};r=H.compile(i,o,a,r,e);var l=r.draw,s=r.batch,u=r.scope,c=[];return G((function(e,t){var r;if("function"===typeof e)return u.call(this,null,e,0);if("function"===typeof t)if("number"===typeof e)for(r=0;r<e;++r)u.call(this,null,t,r);else{if(!Array.isArray(e))return u.call(this,e,t,0);for(r=0;r<e.length;++r)u.call(this,e[r],t,r)}else if("number"===typeof e){if(0<e)return s.call(this,n(0|e),0|e)}else{if(!Array.isArray(e))return l.call(this,e);if(e.length)return s.call(this,e,e.length)}}),{stats:e})}function c(e,t){var n=0;H.procs.poll();var r=t.color;r&&(m.clearColor(+r[0]||0,+r[1]||0,+r[2]||0,+r[3]||0),n|=16384),"depth"in t&&(m.clearDepth(+t.depth),n|=256),"stencil"in t&&(m.clearStencil(0|t.stencil),n|=1024),m.clear(n)}function f(e){return Y.push(e),n(),{cancel:function(){function t(){var e=$(Y,t);Y[e]=Y[Y.length-1],--Y.length,0>=Y.length&&a()}var n=$(Y,e);Y[n]=t}}}function p(){var e=U.viewport,t=U.scissor_box;e[0]=e[1]=t[0]=t[1]=0,S.viewportWidth=S.framebufferWidth=S.drawingBufferWidth=e[2]=t[2]=m.drawingBufferWidth,S.viewportHeight=S.framebufferHeight=S.drawingBufferHeight=e[3]=t[3]=m.drawingBufferHeight}function d(){S.tick+=1,S.time=v(),p(),H.procs.poll()}function h(){p(),H.procs.refresh(),T&&T.update()}function v(){return(Z()-E)/1e3}if(e=s(e),!e)return null;var m=e.gl,y=m.getContextAttributes();m.isContextLost();var g=u(m,e);if(!g)return null;var _=r(),w={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},k=g.extensions,T=Ie(m,k),E=Z(),O=m.drawingBufferWidth,M=m.drawingBufferHeight,S={tick:0,time:0,viewportWidth:O,viewportHeight:M,framebufferWidth:O,framebufferHeight:M,drawingBufferWidth:O,drawingBufferHeight:M,pixelRatio:e.pixelRatio},C=Q(m,k),L=b(m,w,e,(function(e){return R.destroyBuffer(e)})),R=D(m,k,C,w,L),z=x(m,k,L,w),N=j(m,_,w,e),F=A(m,k,C,(function(){H.procs.poll()}),S,w,e),B=Ee(m,k,C,w,e),V=P(m,k,C,F,B,w),H=q(m,_,k,C,L,z,F,V,{},R,N,{elements:null,primitive:4,count:-1,offset:0,instances:-1},S,T,e),U=(_=I(m,V,H.procs.poll,S,y,k,C),H.next),W=m.canvas,Y=[],J=[],ee=[],te=[e.onDestroy],ne=null;W&&(W.addEventListener("webglcontextlost",o,!1),W.addEventListener("webglcontextrestored",i,!1));var re=V.setFBO=l({framebuffer:K.define.call(null,1,"framebuffer")});return h(),y=G(l,{clear:function(e){if("framebuffer"in e)if(e.framebuffer&&"framebufferCube"===e.framebuffer_reglType)for(var t=0;6>t;++t)re(G({framebuffer:e.framebuffer.faces[t]},e),c);else re(e,c);else c(null,e)},prop:K.define.bind(null,1),context:K.define.bind(null,2),this:K.define.bind(null,3),draw:l({}),buffer:function(e){return L.create(e,34962,!1,!1)},elements:function(e){return z.create(e,!1)},texture:F.create2D,cube:F.createCube,renderbuffer:B.create,framebuffer:V.create,framebufferCube:V.createCube,vao:R.createVAO,attributes:y,frame:f,on:function(e,t){var n;switch(e){case"frame":return f(t);case"lost":n=J;break;case"restore":n=ee;break;case"destroy":n=te}return n.push(t),{cancel:function(){for(var e=0;e<n.length;++e)if(n[e]===t){n[e]=n[n.length-1],n.pop();break}}}},limits:C,hasExtension:function(e){return 0<=C.extensions.indexOf(e.toLowerCase())},read:_,destroy:function(){Y.length=0,a(),W&&(W.removeEventListener("webglcontextlost",o),W.removeEventListener("webglcontextrestored",i)),N.clear(),V.clear(),B.clear(),F.clear(),z.clear(),L.clear(),R.clear(),T&&T.clear(),te.forEach((function(e){e()}))},_gl:m,_refresh:h,poll:function(){d(),T&&T.update()},now:v,stats:w}),e.onDone(null,y),y}}))},{}],513:[function(e,t,n){
/*!
* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/
"use strict";var r,a="";function o(e,t){if("string"!==typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||"undefined"===typeof r)r=e,a="";else if(a.length>=n)return a.substr(0,n);while(n>a.length&&t>1)1&t&&(a+=e),t>>=1,e+=e;return a+=e,a=a.substr(0,n),a}t.exports=o},{}],514:[function(e,n,r){(function(e){n.exports=e.performance&&e.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],515:[function(e,t,n){"use strict";function r(e){for(var t=e.length,n=e[e.length-1],r=t,a=t-2;a>=0;--a){var o=n,i=e[a];n=o+i;var l=n-o,s=i-l;s&&(e[--r]=n,n=s)}var u=0;for(a=r;a<t;++a){o=e[a],i=n;n=o+i;l=n-o,s=i-l;s&&(e[u++]=s)}return e[u++]=n,e.length=u,e}t.exports=r},{}],516:[function(e,t,n){"use strict";var r=e("two-product"),a=e("robust-sum"),o=e("robust-scale"),i=e("robust-compress"),l=6;function s(e,t){for(var n=new Array(e.length-1),r=1;r<e.length;++r)for(var a=n[r-1]=new Array(e.length-1),o=0,i=0;o<e.length;++o)o!==t&&(a[i++]=e[r][o]);return n}function u(e){for(var t=new Array(e),n=0;n<e;++n){t[n]=new Array(e);for(var r=0;r<e;++r)t[n][r]=["m[",n,"][",r,"]"].join("")}return t}function c(e){return 1&e?"-":""}function f(e){if(1===e.length)return e[0];if(2===e.length)return["sum(",e[0],",",e[1],")"].join("");var t=e.length>>1;return["sum(",f(e.slice(0,t)),",",f(e.slice(t)),")"].join("")}function p(e){if(2===e.length)return["sum(prod(",e[0][0],",",e[1][1],"),prod(-",e[0][1],",",e[1][0],"))"].join("");for(var t=[],n=0;n<e.length;++n)t.push(["scale(",p(s(e,n)),",",c(n),e[0][n],")"].join(""));return f(t)}function d(e){var t=new Function("sum","scale","prod","compress",["function robustDeterminant",e,"(m){return compress(",p(u(e)),")};return robustDeterminant",e].join(""));return t(a,o,r,i)}var h=[function(){return[0]},function(e){return[e[0][0]]}];function v(){while(h.length<l)h.push(d(h.length));for(var e=[],n=["function robustDeterminant(m){switch(m.length){"],r=0;r<l;++r)e.push("det"+r),n.push("case ",r,":return det",r,"(m);");n.push("}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant"),e.push("CACHE","gen",n.join(""));var a=Function.apply(void 0,e);t.exports=a.apply(void 0,h.concat([h,d]));for(r=0;r<h.length;++r)t.exports[r]=h[r]}v()},{"robust-compress":515,"robust-scale":522,"robust-sum":525,"two-product":554}],517:[function(e,t,n){"use strict";var r=e("two-product"),a=e("robust-sum");function o(e,t){for(var n=r(e[0],t[0]),o=1;o<e.length;++o)n=a(n,r(e[o],t[o]));return n}t.exports=o},{"robust-sum":525,"two-product":554}],518:[function(e,t,n){"use strict";var r=e("two-product"),a=e("robust-sum"),o=e("robust-subtract"),i=e("robust-scale"),l=6;function s(e,t){for(var n=new Array(e.length-1),r=1;r<e.length;++r)for(var a=n[r-1]=new Array(e.length-1),o=0,i=0;o<e.length;++o)o!==t&&(a[i++]=e[r][o]);return n}function u(e){for(var t=new Array(e),n=0;n<e;++n){t[n]=new Array(e);for(var r=0;r<e;++r)t[n][r]=["m",r,"[",e-n-2,"]"].join("")}return t}function c(e){if(1===e.length)return e[0];if(2===e.length)return["sum(",e[0],",",e[1],")"].join("");var t=e.length>>1;return["sum(",c(e.slice(0,t)),",",c(e.slice(t)),")"].join("")}function f(e,t){if("m"===e.charAt(0)){if("w"===t.charAt(0)){var n=e.split("[");return["w",t.substr(1),"m",n[0].substr(1)].join("")}return["prod(",e,",",t,")"].join("")}return f(t,e)}function p(e){return!0&e?"-":""}function d(e){if(2===e.length)return[["diff(",f(e[0][0],e[1][1]),",",f(e[1][0],e[0][1]),")"].join("")];for(var t=[],n=0;n<e.length;++n)t.push(["scale(",c(d(s(e,n))),",",p(n),e[0][n],")"].join(""));return t}function h(e,t){for(var n=[],r=0;r<t-2;++r)n.push(["prod(m",e,"[",r,"],m",e,"[",r,"])"].join(""));return c(n)}function v(e){for(var t=[],n=[],l=u(e),f=0;f<e;++f)l[0][f]="1",l[e-1][f]="w"+f;for(f=0;f<e;++f)0===(1&f)?t.push.apply(t,d(s(l,f))):n.push.apply(n,d(s(l,f)));var p=c(t),v=c(n),m="exactInSphere"+e,y=[];for(f=0;f<e;++f)y.push("m"+f);var g=["function ",m,"(",y.join(),"){"];for(f=0;f<e;++f){g.push("var w",f,"=",h(f,e),";");for(var b=0;b<e;++b)b!==f&&g.push("var w",f,"m",b,"=scale(w",f,",m",b,"[0]);")}g.push("var p=",p,",n=",v,",d=diff(p,n);return d[d.length-1];}return ",m);var x=new Function("sum","diff","prod","scale",g.join(""));return x(a,o,r,i)}function m(){return 0}function y(){return 0}function g(){return 0}var b=[m,y,g];function x(e){var t=b[e.length];return t||(t=b[e.length]=v(e.length)),t.apply(void 0,e)}function _(){while(b.length<=l)b.push(v(b.length));for(var e=[],n=["slow"],r=0;r<=l;++r)e.push("a"+r),n.push("o"+r);var a=["function testInSphere(",e.join(),"){switch(arguments.length){case 0:case 1:return 0;"];for(r=2;r<=l;++r)a.push("case ",r,":return o",r,"(",e.slice(0,r).join(),");");a.push("}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere"),n.push(a.join(""));var o=Function.apply(void 0,n);t.exports=o.apply(void 0,[x].concat(b));for(r=0;r<=l;++r)t.exports[r]=b[r]}_()},{"robust-scale":522,"robust-subtract":524,"robust-sum":525,"two-product":554}],519:[function(e,t,n){"use strict";var r=e("robust-determinant"),a=6;function o(e){for(var t="robustLinearSolve"+e+"d",n=["function ",t,"(A,b){return ["],a=0;a<e;++a){n.push("det([");for(var o=0;o<e;++o){o>0&&n.push(","),n.push("[");for(var i=0;i<e;++i)i>0&&n.push(","),i===a?n.push("+b[",o,"]"):n.push("+A[",o,"][",i,"]");n.push("]")}n.push("]),")}n.push("det(A)]}return ",t);var l=new Function("det",n.join(""));return l(e<6?r[e]:r)}function i(){return[0]}function l(e,t){return[[t[0]],[e[0][0]]]}var s=[i,l];function u(){while(s.length<a)s.push(o(s.length));for(var e=[],n=["function dispatchLinearSolve(A,b){switch(A.length){"],r=0;r<a;++r)e.push("s"+r),n.push("case ",r,":return s",r,"(A,b);");n.push("}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve"),e.push("CACHE","g",n.join(""));var i=Function.apply(void 0,e);t.exports=i.apply(void 0,s.concat([s,o]));for(r=0;r<a;++r)t.exports[r]=s[r]}u()},{"robust-determinant":516}],520:[function(e,t,n){"use strict";var r=e("two-product"),a=e("robust-sum"),o=e("robust-scale"),i=e("robust-subtract"),l=5,s=11102230246251565e-32,u=(3+16*s)*s,c=(7+56*s)*s;function f(e,t){for(var n=new Array(e.length-1),r=1;r<e.length;++r)for(var a=n[r-1]=new Array(e.length-1),o=0,i=0;o<e.length;++o)o!==t&&(a[i++]=e[r][o]);return n}function p(e){for(var t=new Array(e),n=0;n<e;++n){t[n]=new Array(e);for(var r=0;r<e;++r)t[n][r]=["m",r,"[",e-n-1,"]"].join("")}return t}function d(e){return 1&e?"-":""}function h(e){if(1===e.length)return e[0];if(2===e.length)return["sum(",e[0],",",e[1],")"].join("");var t=e.length>>1;return["sum(",h(e.slice(0,t)),",",h(e.slice(t)),")"].join("")}function v(e){if(2===e.length)return[["sum(prod(",e[0][0],",",e[1][1],"),prod(-",e[0][1],",",e[1][0],"))"].join("")];for(var t=[],n=0;n<e.length;++n)t.push(["scale(",h(v(f(e,n))),",",d(n),e[0][n],")"].join(""));return t}function m(e){for(var t=[],n=[],l=p(e),s=[],u=0;u<e;++u)0===(1&u)?t.push.apply(t,v(f(l,u))):n.push.apply(n,v(f(l,u))),s.push("m"+u);var c=h(t),d=h(n),m="orientation"+e+"Exact",y=["function ",m,"(",s.join(),"){var p=",c,",n=",d,",d=sub(p,n);return d[d.length-1];};return ",m].join(""),g=new Function("sum","prod","scale","sub",y);return g(a,r,o,i)}var y=m(3),g=m(4),b=[function(){return 0},function(){return 0},function(e,t){return t[0]-e[0]},function(e,t,n){var r,a=(e[1]-n[1])*(t[0]-n[0]),o=(e[0]-n[0])*(t[1]-n[1]),i=a-o;if(a>0){if(o<=0)return i;r=a+o}else{if(!(a<0))return i;if(o>=0)return i;r=-(a+o)}var l=u*r;return i>=l||i<=-l?i:y(e,t,n)},function(e,t,n,r){var a=e[0]-r[0],o=t[0]-r[0],i=n[0]-r[0],l=e[1]-r[1],s=t[1]-r[1],u=n[1]-r[1],f=e[2]-r[2],p=t[2]-r[2],d=n[2]-r[2],h=o*u,v=i*s,m=i*l,y=a*u,b=a*s,x=o*l,_=f*(h-v)+p*(m-y)+d*(b-x),w=(Math.abs(h)+Math.abs(v))*Math.abs(f)+(Math.abs(m)+Math.abs(y))*Math.abs(p)+(Math.abs(b)+Math.abs(x))*Math.abs(d),k=c*w;return _>k||-_>k?_:g(e,t,n,r)}];function x(e){var t=b[e.length];return t||(t=b[e.length]=m(e.length)),t.apply(void 0,e)}function _(){while(b.length<=l)b.push(m(b.length));for(var e=[],n=["slow"],r=0;r<=l;++r)e.push("a"+r),n.push("o"+r);var a=["function getOrientation(",e.join(),"){switch(arguments.length){case 0:case 1:return 0;"];for(r=2;r<=l;++r)a.push("case ",r,":return o",r,"(",e.slice(0,r).join(),");");a.push("}var s=new Array(arguments.length);for(var i=0;i<arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation"),n.push(a.join(""));var o=Function.apply(void 0,n);t.exports=o.apply(void 0,[x].concat(b));for(r=0;r<=l;++r)t.exports[r]=b[r]}_()},{"robust-scale":522,"robust-subtract":524,"robust-sum":525,"two-product":554}],521:[function(e,t,n){"use strict";var r=e("robust-sum"),a=e("robust-scale");function o(e,t){if(1===e.length)return a(t,e[0]);if(1===t.length)return a(e,t[0]);if(0===e.length||0===t.length)return[0];var n=[0];if(e.length<t.length)for(var o=0;o<e.length;++o)n=r(n,a(t,e[o]));else for(o=0;o<t.length;++o)n=r(n,a(e,t[o]));return n}t.exports=o},{"robust-scale":522,"robust-sum":525}],522:[function(e,t,n){"use strict";var r=e("two-product"),a=e("two-sum");function o(e,t){var n=e.length;if(1===n){var o=r(e[0],t);return o[0]?o:[o[1]]}var i=new Array(2*n),l=[.1,.1],s=[.1,.1],u=0;r(e[0],t,l),l[0]&&(i[u++]=l[0]);for(var c=1;c<n;++c){r(e[c],t,s);var f=l[1];a(f,s[0],l),l[0]&&(i[u++]=l[0]);var p=s[1],d=l[1],h=p+d,v=h-p,m=d-v;l[1]=h,m&&(i[u++]=m)}return l[1]&&(i[u++]=l[1]),0===u&&(i[u++]=0),i.length=u,i}t.exports=o},{"two-product":554,"two-sum":555}],523:[function(e,t,n){"use strict";t.exports=o;var r=e("robust-orientation")[3];function a(e,t,n,r){for(var a=0;a<2;++a){var o=e[a],i=t[a],l=Math.min(o,i),s=Math.max(o,i),u=n[a],c=r[a],f=Math.min(u,c),p=Math.max(u,c);if(p<l||s<f)return!1}return!0}function o(e,t,n,o){var i=r(e,n,o),l=r(t,n,o);if(i>0&&l>0||i<0&&l<0)return!1;var s=r(n,e,t),u=r(o,e,t);return!(s>0&&u>0||s<0&&u<0)&&(0!==i||0!==l||0!==s||0!==u||a(e,t,n,o))}},{"robust-orientation":520}],524:[function(e,t,n){"use strict";function r(e,t){var n=e+t,r=n-e,a=n-r,o=t-r,i=e-a,l=i+o;return l?[l,n]:[n]}function a(e,t){var n=0|e.length,a=0|t.length;if(1===n&&1===a)return r(e[0],-t[0]);var o,i,l=n+a,s=new Array(l),u=0,c=0,f=0,p=Math.abs,d=e[c],h=p(d),v=-t[f],m=p(v);h<m?(i=d,c+=1,c<n&&(d=e[c],h=p(d))):(i=v,f+=1,f<a&&(v=-t[f],m=p(v))),c<n&&h<m||f>=a?(o=d,c+=1,c<n&&(d=e[c],h=p(d))):(o=v,f+=1,f<a&&(v=-t[f],m=p(v)));var y,g,b,x,_,w=o+i,k=w-o,T=i-k,E=T,O=w;while(c<n&&f<a)h<m?(o=d,c+=1,c<n&&(d=e[c],h=p(d))):(o=v,f+=1,f<a&&(v=-t[f],m=p(v))),i=E,w=o+i,k=w-o,T=i-k,T&&(s[u++]=T),y=O+w,g=y-O,b=y-g,x=w-g,_=O-b,E=_+x,O=y;while(c<n)o=d,i=E,w=o+i,k=w-o,T=i-k,T&&(s[u++]=T),y=O+w,g=y-O,b=y-g,x=w-g,_=O-b,E=_+x,O=y,c+=1,c<n&&(d=e[c]);while(f<a)o=v,i=E,w=o+i,k=w-o,T=i-k,T&&(s[u++]=T),y=O+w,g=y-O,b=y-g,x=w-g,_=O-b,E=_+x,O=y,f+=1,f<a&&(v=-t[f]);return E&&(s[u++]=E),O&&(s[u++]=O),u||(s[u++]=0),s.length=u,s}t.exports=a},{}],525:[function(e,t,n){"use strict";function r(e,t){var n=e+t,r=n-e,a=n-r,o=t-r,i=e-a,l=i+o;return l?[l,n]:[n]}function a(e,t){var n=0|e.length,a=0|t.length;if(1===n&&1===a)return r(e[0],t[0]);var o,i,l=n+a,s=new Array(l),u=0,c=0,f=0,p=Math.abs,d=e[c],h=p(d),v=t[f],m=p(v);h<m?(i=d,c+=1,c<n&&(d=e[c],h=p(d))):(i=v,f+=1,f<a&&(v=t[f],m=p(v))),c<n&&h<m||f>=a?(o=d,c+=1,c<n&&(d=e[c],h=p(d))):(o=v,f+=1,f<a&&(v=t[f],m=p(v)));var y,g,b,x,_,w=o+i,k=w-o,T=i-k,E=T,O=w;while(c<n&&f<a)h<m?(o=d,c+=1,c<n&&(d=e[c],h=p(d))):(o=v,f+=1,f<a&&(v=t[f],m=p(v))),i=E,w=o+i,k=w-o,T=i-k,T&&(s[u++]=T),y=O+w,g=y-O,b=y-g,x=w-g,_=O-b,E=_+x,O=y;while(c<n)o=d,i=E,w=o+i,k=w-o,T=i-k,T&&(s[u++]=T),y=O+w,g=y-O,b=y-g,x=w-g,_=O-b,E=_+x,O=y,c+=1,c<n&&(d=e[c]);while(f<a)o=v,i=E,w=o+i,k=w-o,T=i-k,T&&(s[u++]=T),y=O+w,g=y-O,b=y-g,x=w-g,_=O-b,E=_+x,O=y,f+=1,f<a&&(v=t[f]);return E&&(s[u++]=E),O&&(s[u++]=O),u||(s[u++]=0),s.length=u,s}t.exports=a},{}],526:[function(e,t,n){"use strict";t.exports=function(e){return e<0?-1:e>0?1:0}},{}],527:[function(e,t,n){"use strict";t.exports=o;var r=e("boundary-cells"),a=e("reduce-simplicial-complex");function o(e){return a(r(e))}},{"boundary-cells":100,"reduce-simplicial-complex":507}],528:[function(e,t,n){"use strict";t.exports=d;var r=e("ndarray"),a=e("typedarray-pool"),o=e("ndarray-sort"),i=e("./lib/codegen");function l(e){for(var t=e.length,n=0,r=0;r<t;++r)n=0|Math.max(n,e[r].length);return n-1}function s(e,t){for(var n=e.length,r=a.mallocUint8(n),o=0;o<n;++o)r[o]=e[o]<t|0;return r}function u(e,t){for(var n=e.length,i=t*(t+1)/2*n|0,l=a.mallocUint32(2*i),s=0,u=0;u<n;++u)for(var c=e[u],f=(t=c.length,0);f<t;++f)for(var p=0;p<f;++p){var d=c[p],h=c[f];l[s++]=0|Math.min(d,h),l[s++]=0|Math.max(d,h)}var v=s/2|0;o(r(l,[v,2]));var m=2;for(u=2;u<s;u+=2)l[u-2]===l[u]&&l[u-1]===l[u+1]||(l[m++]=l[u],l[m++]=l[u+1]);return r(l,[m/2|0,2])}function c(e,t,n,o){for(var i=e.data,l=e.shape[0],s=a.mallocDouble(l),u=0,c=0;c<l;++c){var f=i[2*c],p=i[2*c+1];if(n[f]!==n[p]){var d=t[f],h=t[p];i[2*u]=f,i[2*u+1]=p,s[u++]=(h-o)/(h-d)}}return e.shape[0]=u,r(s,[u])}function f(e,t){var n=a.mallocInt32(2*t),r=e.shape[0],o=e.data;n[0]=0;for(var i=0,l=0;l<r;++l){var s=o[2*l];if(s!==i){n[2*i+1]=l;while(++i<s)n[2*i]=l,n[2*i+1]=l;n[2*i]=l}}n[2*i+1]=r;while(++i<t)n[2*i]=n[2*i+1]=r;return n}function p(e){for(var t=0|e.shape[0],n=e.data,r=new Array(t),a=0;a<t;++a)r[a]=[n[2*a],n[2*a+1]];return r}function d(e,t,n,r){n=n||0,"undefined"===typeof r&&(r=l(e));var o=e.length;if(0===o||r<1)return{cells:[],vertexIds:[],vertexWeights:[]};var d=s(t,+n),h=u(e,r),v=c(h,t,d,+n),m=f(h,0|t.length),y=i(r)(e,h.data,m,d),g=p(h),b=[].slice.call(v.data,0,v.shape[0]);return a.free(d),a.free(h.data),a.free(v.data),a.free(m),{cells:y,vertexIds:g,vertexWeights:b}}},{"./lib/codegen":529,ndarray:469,"ndarray-sort":468,"typedarray-pool":567}],529:[function(e,t,n){"use strict";t.exports=l;var r=e("typedarray-pool"),a=e("marching-simplex-table"),o={};function i(e){var t=0,n=new Array(e+1);n[0]=[[]];for(var o=1;o<=e;++o)for(var i=n[o]=a(o),l=0;l<i.length;++l)t=Math.max(t,i[o].length);var s=["function B(C,E,i,j){","var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];","while(l<h){","var m=(l+h)>>1,v=E[2*m+1];","if(v===b){return m}","if(b<v){h=m}else{l=m+1}","}","return l;","};","function getContour",e,"d(F,E,C,S){","var n=F.length,R=[];","for(var i=0;i<n;++i){var c=F[i],l=c.length;"];function u(e){if(!(e.length<=0)){s.push("R.push(");for(var t=0;t<e.length;++t){var n=e[t];t>0&&s.push(","),s.push("[");for(var r=0;r<n.length;++r){var a=n[r];r>0&&s.push(","),s.push("B(C,E,c[",a[0],"],c[",a[1],"])")}s.push("]")}s.push(");")}}for(o=e+1;o>1;--o){o<e+1&&s.push("else "),s.push("if(l===",o,"){");var c=[];for(l=0;l<o;++l)c.push("(S[c["+l+"]]<<"+l+")");s.push("var M=",c.join("+"),";if(M===0||M===",(1<<o)-1,"){continue}switch(M){");for(i=n[o-1],l=0;l<i.length;++l)s.push("case ",l,":"),u(i[l]),s.push("break;");s.push("}}")}s.push("}return R;};return getContour",e,"d");var f=new Function("pool",s.join(""));return f(r)}function l(e){var t=o[e];return t||(t=o[e]=i(e)),t}},{"marching-simplex-table":448,"typedarray-pool":567}],530:[function(e,t,n){"use strict";var r=e("bit-twiddle"),a=e("union-find");function o(e){for(var t=0,n=Math.max,r=0,a=e.length;r<a;++r)t=n(t,e[r].length);return t-1}function i(e){for(var t=-1,n=Math.max,r=0,a=e.length;r<a;++r)for(var o=e[r],i=0,l=o.length;i<l;++i)t=n(t,o[i]);return t+1}function l(e){for(var t=new Array(e.length),n=0,r=e.length;n<r;++n)t[n]=e[n].slice(0);return t}function s(e,t){var n=e.length,r=e.length-t.length,a=Math.min;if(r)return r;switch(n){case 0:return 0;case 1:return e[0]-t[0];case 2:var o=e[0]+e[1]-t[0]-t[1];return o||a(e[0],e[1])-a(t[0],t[1]);case 3:var i=e[0]+e[1],l=t[0]+t[1];if(o=i+e[2]-(l+t[2]),o)return o;var s=a(e[0],e[1]),u=a(t[0],t[1]);o=a(s,e[2])-a(u,t[2]);return o||a(s+e[2],i)-a(u+t[2],l);default:var c=e.slice(0);c.sort();var f=t.slice(0);f.sort();for(var p=0;p<n;++p)if(r=c[p]-f[p],r)return r;return 0}}function u(e,t){return s(e[0],t[0])}function c(e,t){if(t){for(var n=e.length,r=new Array(n),a=0;a<n;++a)r[a]=[e[a],t[a]];r.sort(u);for(a=0;a<n;++a)e[a]=r[a][0],t[a]=r[a][1];return e}return e.sort(s),e}function f(e){if(0===e.length)return[];for(var t=1,n=e.length,r=1;r<n;++r){var a=e[r];if(s(a,e[r-1])){if(r===t){t++;continue}e[t++]=a}}return e.length=t,e}function p(e,t){var n=0,r=e.length-1,a=-1;while(n<=r){var o=n+r>>1,i=s(e[o],t);i<=0?(0===i&&(a=o),n=o+1):i>0&&(r=o-1)}return a}function d(e,t){for(var n=new Array(e.length),a=0,o=n.length;a<o;++a)n[a]=[];for(var i=[],l=(a=0,t.length);a<l;++a)for(var u=t[a],c=u.length,f=1,d=1<<c;f<d;++f){i.length=r.popCount(f);for(var h=0,v=0;v<c;++v)f&1<<v&&(i[h++]=u[v]);var m=p(e,i);if(!(m<0))while(1)if(n[m++].push(a),m>=e.length||0!==s(e[m],i))break}return n}function h(e,t){if(!t)return d(f(m(e,0)),e,0);for(var n=new Array(t),r=0;r<t;++r)n[r]=[];r=0;for(var a=e.length;r<a;++r)for(var o=e[r],i=0,l=o.length;i<l;++i)n[o[i]].push(r);return n}function v(e){for(var t=[],n=0,r=e.length;n<r;++n)for(var a=e[n],o=0|a.length,i=1,l=1<<o;i<l;++i){for(var s=[],u=0;u<o;++u)i>>>u&1&&s.push(a[u]);t.push(s)}return c(t)}function m(e,t){if(t<0)return[];for(var n=[],a=(1<<t+1)-1,o=0;o<e.length;++o)for(var i=e[o],l=a;l<1<<i.length;l=r.nextCombination(l)){for(var s=new Array(t+1),u=0,f=0;f<i.length;++f)l&1<<f&&(s[u++]=i[f]);n.push(s)}return c(n)}function y(e){for(var t=[],n=0,r=e.length;n<r;++n)for(var a=e[n],o=0,i=a.length;o<i;++o){for(var l=new Array(a.length-1),s=0,u=0;s<i;++s)s!==o&&(l[u++]=a[s]);t.push(l)}return c(t)}function g(e,t){for(var n=new a(t),r=0;r<e.length;++r)for(var o=e[r],i=0;i<o.length;++i)for(var l=i+1;l<o.length;++l)n.link(o[i],o[l]);var s=[],u=n.ranks;for(r=0;r<u.length;++r)u[r]=-1;for(r=0;r<e.length;++r){var c=n.find(e[r][0]);u[c]<0?(u[c]=s.length,s.push([e[r].slice(0)])):s[u[c]].push(e[r].slice(0))}return s}function b(e){for(var t=f(c(m(e,0))),n=new a(t.length),r=0;r<e.length;++r)for(var o=e[r],i=0;i<o.length;++i)for(var l=p(t,[o[i]]),s=i+1;s<o.length;++s)n.link(l,p(t,[o[s]]));var u=[],d=n.ranks;for(r=0;r<d.length;++r)d[r]=-1;for(r=0;r<e.length;++r){var h=n.find(p(t,[e[r][0]]));d[h]<0?(d[h]=u.length,u.push([e[r].slice(0)])):u[d[h]].push(e[r].slice(0))}return u}function x(e,t){return t?g(e,t):b(e)}n.dimension=o,n.countVertices=i,n.cloneCells=l,n.compareCells=s,n.normalize=c,n.unique=f,n.findCell=p,n.incidence=d,n.dual=h,n.explode=v,n.skeleton=m,n.boundary=y,n.connectedComponents=x},{"bit-twiddle":97,"union-find":568}],531:[function(e,t,n){arguments[4][97][0].apply(n,arguments)},{dup:97}],532:[function(e,t,n){arguments[4][530][0].apply(n,arguments)},{"bit-twiddle":531,dup:530,"union-find":533}],533:[function(e,t,n){"use strict";function r(e){this.roots=new Array(e),this.ranks=new Array(e);for(var t=0;t<e;++t)this.roots[t]=t,this.ranks[t]=0}t.exports=r,r.prototype.length=function(){return this.roots.length},r.prototype.makeSet=function(){var e=this.roots.length;return this.roots.push(e),this.ranks.push(0),e},r.prototype.find=function(e){var t=this.roots;while(t[e]!==e){var n=t[e];t[e]=t[n],e=n}return e},r.prototype.link=function(e,t){var n=this.find(e),r=this.find(t);if(n!==r){var a=this.ranks,o=this.roots,i=a[n],l=a[r];i<l?o[n]=r:l<i?o[r]=n:(o[r]=n,++a[n])}}},{}],534:[function(e,t,n){"use strict";t.exports=i;var r=e("robust-orientation"),a=e("simplicial-complex");function o(e,t,n){var a=Math.abs(r(e,t,n)),o=Math.sqrt(Math.pow(t[0]-n[0],2)+Math.pow(t[1]-n[1],2));return a/o}function i(e,t,n){for(var r=t.length,i=e.length,l=new Array(r),s=new Array(r),u=new Array(r),c=new Array(r),f=0;f<r;++f)l[f]=s[f]=-1,u[f]=1/0,c[f]=!1;for(f=0;f<i;++f){var p=e[f];if(2!==p.length)throw new Error("Input must be a graph");var d=p[1],h=p[0];-1!==s[h]?s[h]=-2:s[h]=d,-1!==l[d]?l[d]=-2:l[d]=h}function v(e){if(c[e])return 1/0;var n=l[e],r=s[e];return n<0||r<0?1/0:o(t[e],t[n],t[r])}function m(e,t){var n=T[e],r=T[t];T[e]=r,T[t]=n,E[n]=t,E[r]=e}function y(e){return u[T[e]]}function g(e){return 1&e?e-1>>1:(e>>1)-1}function b(e){var t=y(e);while(1){var n=t,r=2*e+1,a=2*(e+1),o=e;if(r<M){var i=y(r);i<n&&(o=r,n=i)}if(a<M){var l=y(a);l<n&&(o=a)}if(o===e)return e;m(e,o),e=o}}function x(e){var t=y(e);while(e>0){var n=g(e);if(n>=0){var r=y(n);if(t<r){m(e,n),e=n;continue}}return e}}function _(){if(M>0){var e=T[0];return m(0,M-1),M-=1,b(0),e}return-1}function w(e,t){var n=T[e];return u[n]===t?e:(u[n]=-1/0,x(e),_(),u[n]=t,M+=1,x(M-1))}function k(e){if(!c[e]){c[e]=!0;var t=l[e],n=s[e];l[n]>=0&&(l[n]=t),s[t]>=0&&(s[t]=n),E[t]>=0&&w(E[t],v(t)),E[n]>=0&&w(E[n],v(n))}}var T=[],E=new Array(r);for(f=0;f<r;++f){var O=u[f]=v(f);O<1/0?(E[f]=T.length,T.push(f)):E[f]=-1}var M=T.length;for(f=M>>1;f>=0;--f)b(f);while(1){var S=_();if(S<0||u[S]>n)break;k(S)}var C=[];for(f=0;f<r;++f)c[f]||(E[f]=C.length,C.push(t[f].slice()));C.length;function A(e,t){if(e[t]<0)return t;var n=t,r=t;do{var a=e[r];if(!c[r]||a<0||a===r)break;if(r=a,a=e[r],!c[r]||a<0||a===r)break;r=a,n=e[n]}while(n!==r);for(var o=t;o!==r;o=e[o])e[o]=r;return r}var P=[];return e.forEach((function(e){var t=A(l,e[0]),n=A(s,e[1]);if(t>=0&&n>=0&&t!==n){var r=E[t],a=E[n];r!==a&&P.push([r,a])}})),a.unique(a.normalize(P)),{positions:C,edges:P}}},{"robust-orientation":520,"simplicial-complex":532}],535:[function(e,t,n){"use strict";t.exports=o;var r=e("robust-orientation");function a(e,t){var n,a,o,i;if(t[0][0]<t[1][0])n=t[0],a=t[1];else{if(!(t[0][0]>t[1][0])){var l=Math.min(e[0][1],e[1][1]),s=Math.max(e[0][1],e[1][1]),u=Math.min(t[0][1],t[1][1]),c=Math.max(t[0][1],t[1][1]);return s<u?s-u:l>c?l-c:s-c}n=t[1],a=t[0]}e[0][1]<e[1][1]?(o=e[0],i=e[1]):(o=e[1],i=e[0]);var f=r(a,n,o);return f||(f=r(a,n,i),f||i-a)}function o(e,t){var n,o,i,l;if(t[0][0]<t[1][0])n=t[0],o=t[1];else{if(!(t[0][0]>t[1][0]))return a(t,e);n=t[1],o=t[0]}if(e[0][0]<e[1][0])i=e[0],l=e[1];else{if(!(e[0][0]>e[1][0]))return-a(e,t);i=e[1],l=e[0]}var s=r(n,o,l),u=r(n,o,i);if(s<0){if(u<=0)return s}else if(s>0){if(u>=0)return s}else if(u)return u;if(s=r(l,i,o),u=r(l,i,n),s<0){if(u<=0)return s}else if(s>0){if(u>=0)return s}else if(u)return u;return o[0]-l[0]}},{"robust-orientation":520}],536:[function(e,t,n){arguments[4][243][0].apply(n,arguments)},{dup:243}],537:[function(e,t,n){"use strict";t.exports=d;var r=e("binary-search-bounds"),a=e("functional-red-black-tree"),o=e("robust-orientation"),i=e("./lib/order-segments");function l(e,t,n){this.slabs=e,this.coordinates=t,this.horizontal=n}var s=l.prototype;function u(e,t){return e.y-t}function c(e,t){var n=null;while(e){var r,a,i=e.key;i[0][0]<i[1][0]?(r=i[0],a=i[1]):(r=i[1],a=i[0]);var l=o(r,a,t);if(l<0)e=e.left;else if(l>0)if(t[0]!==i[1][0])n=e,e=e.right;else{var s=c(e.right,t);if(s)return s;e=e.left}else{if(t[0]!==i[1][0])return e;s=c(e.right,t);if(s)return s;e=e.left}}return n}function f(e,t,n,r){this.y=e,this.index=t,this.start=n,this.closed=r}function p(e,t,n,r){this.x=e,this.segment=t,this.create=n,this.index=r}function d(e){for(var t=e.length,n=2*t,r=new Array(n),o=0;o<t;++o){var s=e[o],u=s[0][0]<s[1][0];r[2*o]=new p(s[0][0],s,u,o),r[2*o+1]=new p(s[1][0],s,!u,o)}r.sort((function(e,t){var n=e.x-t.x;return n||(n=e.create-t.create,n||Math.min(e.segment[0][1],e.segment[1][1])-Math.min(t.segment[0][1],t.segment[1][1]))}));var c=a(i),d=[],h=[],v=[];for(o=0;o<n;){var m=r[o].x,y=[];while(o<n){var g=r[o];if(g.x!==m)break;o+=1,g.segment[0][0]===g.x&&g.segment[1][0]===g.x?g.create&&(g.segment[0][1]<g.segment[1][1]?(y.push(new f(g.segment[0][1],g.index,!0,!0)),y.push(new f(g.segment[1][1],g.index,!1,!1))):(y.push(new f(g.segment[1][1],g.index,!0,!1)),y.push(new f(g.segment[0][1],g.index,!1,!0)))):c=g.create?c.insert(g.segment,g.index):c.remove(g.segment)}d.push(c.root),h.push(m),v.push(y)}return new l(d,h,v)}s.castUp=function(e){var t=r.le(this.coordinates,e[0]);if(t<0)return-1;this.slabs[t];var n=c(this.slabs[t],e),a=-1;if(n&&(a=n.value),this.coordinates[t]===e[0]){var l=null;if(n&&(l=n.key),t>0){var s=c(this.slabs[t-1],e);s&&(l?i(s.key,l)>0&&(l=s.key,a=s.value):(a=s.value,l=s.key))}var f=this.horizontal[t];if(f.length>0){var p=r.ge(f,e[1],u);if(p<f.length){var d=f[p];if(e[1]===d.y){if(d.closed)return d.index;while(p<f.length-1&&f[p+1].y===e[1])if(p+=1,d=f[p],d.closed)return d.index;if(d.y===e[1]&&!d.start){if(p+=1,p>=f.length)return a;d=f[p]}}if(d.start)if(l){var h=o(l[0],l[1],[e[0],d.y]);l[0][0]>l[1][0]&&(h=-h),h>0&&(a=d.index)}else a=d.index;else d.y!==e[1]&&(a=d.index)}}}return a}},{"./lib/order-segments":535,"binary-search-bounds":536,"functional-red-black-tree":247,"robust-orientation":520}],538:[function(e,t,n){"use strict";var r=e("robust-dot-product"),a=e("robust-sum");function o(e,t){var n=a(r(e,t),[t[t.length-1]]);return n[n.length-1]}function i(e,t,n,r){var a=r-t,o=-t/a;o<0?o=0:o>1&&(o=1);for(var i=1-o,l=e.length,s=new Array(l),u=0;u<l;++u)s[u]=o*e[u]+i*n[u];return s}function l(e,t){for(var n=[],r=[],a=o(e[e.length-1],t),l=e[e.length-1],s=e[0],u=0;u<e.length;++u,l=s){s=e[u];var c=o(s,t);if(a<0&&c>0||a>0&&c<0){var f=i(l,c,s,a);n.push(f),r.push(f.slice())}c<0?r.push(s.slice()):c>0?n.push(s.slice()):(n.push(s.slice()),r.push(s.slice())),a=c}return{positive:n,negative:r}}function s(e,t){for(var n=[],r=o(e[e.length-1],t),a=e[e.length-1],l=e[0],s=0;s<e.length;++s,a=l){l=e[s];var u=o(l,t);(r<0&&u>0||r>0&&u<0)&&n.push(i(a,u,l,r)),u>=0&&n.push(l.slice()),r=u}return n}function u(e,t){for(var n=[],r=o(e[e.length-1],t),a=e[e.length-1],l=e[0],s=0;s<e.length;++s,a=l){l=e[s];var u=o(l,t);(r<0&&u>0||r>0&&u<0)&&n.push(i(a,u,l,r)),u<=0&&n.push(l.slice()),r=u}return n}t.exports=l,t.exports.positive=s,t.exports.negative=u},{"robust-dot-product":517,"robust-sum":525}],539:[function(t,n,r){!function(){"use strict";var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function n(e){return o(l(e),arguments)}function a(e,t){return n.apply(null,[e].concat(t||[]))}function o(e,r){var a,o,i,l,s,u,c,f,p,d=1,h=e.length,v="";for(o=0;o<h;o++)if("string"===typeof e[o])v+=e[o];else if("object"===typeof e[o]){if(l=e[o],l.keys)for(a=r[d],i=0;i<l.keys.length;i++){if(void 0==a)throw new Error(n('[sprintf] Cannot access property "%s" of undefined value "%s"',l.keys[i],l.keys[i-1]));a=a[l.keys[i]]}else a=l.param_no?r[l.param_no]:r[d++];if(t.not_type.test(l.type)&&t.not_primitive.test(l.type)&&a instanceof Function&&(a=a()),t.numeric_arg.test(l.type)&&"number"!==typeof a&&isNaN(a))throw new TypeError(n("[sprintf] expecting number but found %T",a));switch(t.number.test(l.type)&&(f=a>=0),l.type){case"b":a=parseInt(a,10).toString(2);break;case"c":a=String.fromCharCode(parseInt(a,10));break;case"d":case"i":a=parseInt(a,10);break;case"j":a=JSON.stringify(a,null,l.width?parseInt(l.width):0);break;case"e":a=l.precision?parseFloat(a).toExponential(l.precision):parseFloat(a).toExponential();break;case"f":a=l.precision?parseFloat(a).toFixed(l.precision):parseFloat(a);break;case"g":a=l.precision?String(Number(a.toPrecision(l.precision))):parseFloat(a);break;case"o":a=(parseInt(a,10)>>>0).toString(8);break;case"s":a=String(a),a=l.precision?a.substring(0,l.precision):a;break;case"t":a=String(!!a),a=l.precision?a.substring(0,l.precision):a;break;case"T":a=Object.prototype.toString.call(a).slice(8,-1).toLowerCase(),a=l.precision?a.substring(0,l.precision):a;break;case"u":a=parseInt(a,10)>>>0;break;case"v":a=a.valueOf(),a=l.precision?a.substring(0,l.precision):a;break;case"x":a=(parseInt(a,10)>>>0).toString(16);break;case"X":a=(parseInt(a,10)>>>0).toString(16).toUpperCase();break}t.json.test(l.type)?v+=a:(!t.number.test(l.type)||f&&!l.sign?p="":(p=f?"+":"-",a=a.toString().replace(t.sign,"")),u=l.pad_char?"0"===l.pad_char?"0":l.pad_char.charAt(1):" ",c=l.width-(p+a).length,s=l.width&&c>0?u.repeat(c):"",v+=l.align?p+a+s:"0"===u?p+s+a:s+p+a)}return v}var i=Object.create(null);function l(e){if(i[e])return i[e];var n,r=e,a=[],o=0;while(r){if(null!==(n=t.text.exec(r)))a.push(n[0]);else if(null!==(n=t.modulo.exec(r)))a.push("%");else{if(null===(n=t.placeholder.exec(r)))throw new SyntaxError("[sprintf] unexpected placeholder");if(n[2]){o|=1;var l=[],s=n[2],u=[];if(null===(u=t.key.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");l.push(u[1]);while(""!==(s=s.substring(u[0].length)))if(null!==(u=t.key_access.exec(s)))l.push(u[1]);else{if(null===(u=t.index_access.exec(s)))throw new SyntaxError("[sprintf] failed to parse named argument key");l.push(u[1])}n[2]=l}else o|=2;if(3===o)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");a.push({placeholder:n[0],param_no:n[1],keys:n[2],sign:n[3],pad_char:n[4],align:n[5],width:n[6],precision:n[7],type:n[8]})}r=r.substring(n[0].length)}return i[e]=a}"undefined"!==typeof r&&(r["sprintf"]=n,r["vsprintf"]=a),"undefined"!==typeof window&&(window["sprintf"]=n,window["vsprintf"]=a,"function"===typeof e&&e["amd"]&&e((function(){return{sprintf:n,vsprintf:a}})))}()},{}],540:[function(e,t,n){"use strict";var r=e("parenthesis");t.exports=function(e,t,n){if(null==e)throw Error("First argument should be a string");if(null==t)throw Error("Separator should be a string or a RegExp");n?("string"===typeof n||Array.isArray(n))&&(n={ignore:n}):n={},null==n.escape&&(n.escape=!0),null==n.ignore?n.ignore=["[]","()","{}","<>",'""',"''","``","“”","«»"]:("string"===typeof n.ignore&&(n.ignore=[n.ignore]),n.ignore=n.ignore.map((function(e){return 1===e.length&&(e+=e),e})));var a=r.parse(e,{flat:!0,brackets:n.ignore}),o=a[0],i=o.split(t);if(n.escape){for(var l=[],s=0;s<i.length;s++){var u=i[s],c=i[s+1];"\\"===u[u.length-1]&&"\\"!==u[u.length-2]?(l.push(u+t+c),s++):l.push(u)}i=l}for(s=0;s<i.length;s++)a[0]=i[s],i[s]=r.stringify(a,{flat:!0});return i}},{parenthesis:477}],541:[function(e,t,n){"use strict";function r(e){for(var t=e.length,n=new Array(t),r=new Array(t),a=new Array(t),o=new Array(t),i=new Array(t),l=new Array(t),s=0;s<t;++s)n[s]=-1,r[s]=0,a[s]=!1,o[s]=0,i[s]=-1,l[s]=[];var u,c=0,f=[],p=[];function d(t){var s=[t],u=[t];n[t]=r[t]=c,a[t]=!0,c+=1;while(u.length>0){t=u[u.length-1];var d=e[t];if(o[t]<d.length){for(var h=o[t];h<d.length;++h){var v=d[h];if(n[v]<0){n[v]=r[v]=c,a[v]=!0,c+=1,s.push(v),u.push(v);break}a[v]&&(r[t]=0|Math.min(r[t],r[v])),i[v]>=0&&l[t].push(i[v])}o[t]=h}else{if(r[t]===n[t]){var m=[],y=[],g=0;for(h=s.length-1;h>=0;--h){var b=s[h];if(a[b]=!1,m.push(b),y.push(l[b]),g+=l[b].length,i[b]=f.length,b===t){s.length=h;break}}f.push(m);var x=new Array(g);for(h=0;h<y.length;h++)for(var _=0;_<y[h].length;_++)x[--g]=y[h][_];p.push(x)}u.pop()}}}for(s=0;s<t;++s)n[s]<0&&d(s);for(s=0;s<p.length;s++){var h=p[s];if(0!==h.length){h.sort((function(e,t){return e-t})),u=[h[0]];for(var v=1;v<h.length;v++)h[v]!==h[v-1]&&u.push(h[v]);p[s]=u}}return{components:f,adjacencyList:p}}t.exports=r},{}],542:[function(e,t,n){"use strict";t.exports=u;var r=e("ndarray-extract-contour"),a=e("triangulate-hypercube"),o=e("zero-crossings");function i(e,t){var n=e.length,o=["'use strict';"],i="surfaceNets"+e.join("_")+"d"+t;o.push("var contour=genContour({","order:[",e.join(),"],","scalarArguments: 3,","phase:function phaseFunc(p,a,b,c) { return (p > c)|0 },"),"generic"===t&&o.push("getters:[0],");for(var l=[],s=[],u=0;u<n;++u)l.push("d"+u),s.push("d"+u);for(u=0;u<1<<n;++u)l.push("v"+u),s.push("v"+u);for(u=0;u<1<<n;++u)l.push("p"+u),s.push("p"+u);l.push("a","b","c"),s.push("a","c"),o.push("vertex:function vertexFunc(",l.join(),"){");var c=[];for(u=0;u<1<<n;++u)c.push("(p"+u+"<<"+u+")");o.push("var m=(",c.join("+"),")|0;if(m===0||m===",(1<<(1<<n))-1,"){return}");var f=[],p=[];1<<(1<<n)<=128?(o.push("switch(m){"),p=o):o.push("switch(m>>>7){");for(u=0;u<1<<(1<<n);++u){if(1<<(1<<n)>128&&u%128===0){f.length>0&&p.push("}}");var d="vExtra"+f.length;o.push("case ",u>>>7,":",d,"(m&0x7f,",s.join(),");break;"),p=["function ",d,"(m,",s.join(),"){switch(m){"],f.push(p)}p.push("case ",127&u,":");for(var h=new Array(n),v=new Array(n),m=new Array(n),y=new Array(n),g=0,b=0;b<n;++b)h[b]=[],v[b]=[],m[b]=0,y[b]=0;for(b=0;b<1<<n;++b)for(var x=0;x<n;++x){var _=b^1<<x;if(!(_>b)&&!(u&1<<_)!==!(u&1<<b)){var w=1;u&1<<_?v[x].push("v"+_+"-v"+b):(v[x].push("v"+b+"-v"+_),w=-w),w<0?(h[x].push("-v"+b+"-v"+_),m[x]+=2):(h[x].push("v"+b+"+v"+_),m[x]-=2),g+=1;for(var k=0;k<n;++k)k!==x&&(_&1<<k?y[k]+=1:y[k]-=1)}}var T=[];for(x=0;x<n;++x)if(0===h[x].length)T.push("d"+x+"-0.5");else{var E="";m[x]<0?E=m[x]+"*c":m[x]>0&&(E="+"+m[x]+"*c");var O=h[x].length/g*.5,M=.5+y[x]/g*.5;T.push("d"+x+"-"+M+"-"+O+"*("+h[x].join("+")+E+")/("+v[x].join("+")+")")}p.push("a.push([",T.join(),"]);","break;")}o.push("}},"),f.length>0&&p.push("}}");var S=[];for(u=0;u<1<<n-1;++u)S.push("v"+u);S.push("c0","c1","p0","p1","a","b","c"),o.push("cell:function cellFunc(",S.join(),"){");var C=a(n-1);o.push("if(p0){b.push(",C.map((function(e){return"["+e.map((function(e){return"v"+e}))+"]"})).join(),")}else{b.push(",C.map((function(e){var t=e.slice();return t.reverse(),"["+t.map((function(e){return"v"+e}))+"]"})).join(),")}}});function ",i,"(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return ",i,";");for(u=0;u<f.length;++u)o.push(f[u].join(""));var A=new Function("genContour",o.join(""));return A(r)}function l(e,t){for(var n=o(e,t),r=n.length,a=new Array(r),i=new Array(r),l=0;l<r;++l)a[l]=[n[l]],i[l]=[l];return{positions:a,cells:i}}var s={};function u(e,t){if(e.dimension<=0)return{positions:[],cells:[]};if(1===e.dimension)return l(e,t);var n=e.order.join()+"-"+e.dtype,r=s[n];t=+t||0;return r||(r=s[n]=i(e.order,e.dtype)),r(e,t)}},{"ndarray-extract-contour":461,"triangulate-hypercube":552,"zero-crossings":596}],543:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done);r=!0)if(n.push(i.value),t&&n.length===t)break}catch(s){a=!0,o=s}finally{try{!r&&l["return"]&&l["return"]()}finally{if(a)throw o}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a=2*Math.PI,o=function(e,t,n,r,a,o,i){var l=e.x,s=e.y;l*=t,s*=n;var u=r*l-a*s,c=a*l+r*s;return{x:u+o,y:c+i}},i=function(e,t){var n=1.5707963267948966===t?.551915024494:-1.5707963267948966===t?-.551915024494:4/3*Math.tan(t/4),r=Math.cos(e),a=Math.sin(e),o=Math.cos(e+t),i=Math.sin(e+t);return[{x:r-a*n,y:a+r*n},{x:o+i*n,y:i-o*n},{x:o,y:i}]},l=function(e,t,n,r){var a=e*r-t*n<0?-1:1,o=e*n+t*r;return o>1&&(o=1),o<-1&&(o=-1),a*Math.acos(o)},s=function(e,t,n,r,o,i,s,u,c,f,p,d){var h=Math.pow(o,2),v=Math.pow(i,2),m=Math.pow(p,2),y=Math.pow(d,2),g=h*v-h*y-v*m;g<0&&(g=0),g/=h*y+v*m,g=Math.sqrt(g)*(s===u?-1:1);var b=g*o/i*d,x=g*-i/o*p,_=f*b-c*x+(e+n)/2,w=c*b+f*x+(t+r)/2,k=(p-b)/o,T=(d-x)/i,E=(-p-b)/o,O=(-d-x)/i,M=l(1,0,k,T),S=l(k,T,E,O);return 0===u&&S>0&&(S-=a),1===u&&S<0&&(S+=a),[_,w,M,S]},u=function(e){var t=e.px,n=e.py,l=e.cx,u=e.cy,c=e.rx,f=e.ry,p=e.xAxisRotation,d=void 0===p?0:p,h=e.largeArcFlag,v=void 0===h?0:h,m=e.sweepFlag,y=void 0===m?0:m,g=[];if(0===c||0===f)return[];var b=Math.sin(d*a/360),x=Math.cos(d*a/360),_=x*(t-l)/2+b*(n-u)/2,w=-b*(t-l)/2+x*(n-u)/2;if(0===_&&0===w)return[];c=Math.abs(c),f=Math.abs(f);var k=Math.pow(_,2)/Math.pow(c,2)+Math.pow(w,2)/Math.pow(f,2);k>1&&(c*=Math.sqrt(k),f*=Math.sqrt(k));var T=s(t,n,l,u,c,f,v,y,b,x,_,w),E=r(T,4),O=E[0],M=E[1],S=E[2],C=E[3],A=Math.abs(C)/(a/4);Math.abs(1-A)<1e-7&&(A=1);var P=Math.max(Math.ceil(A),1);C/=P;for(var L=0;L<P;L++)g.push(i(S,C)),S+=C;return g.map((function(e){var t=o(e[0],c,f,x,b,O,M),n=t.x,r=t.y,a=o(e[1],c,f,x,b,O,M),i=a.x,l=a.y,s=o(e[2],c,f,x,b,O,M),u=s.x,p=s.y;return{x1:n,y1:r,x2:i,y2:l,x:u,y:p}}))};n.default=u,t.exports=n.default},{}],544:[function(e,t,n){"use strict";var r=e("parse-svg-path"),a=e("abs-svg-path"),o=e("normalize-svg-path"),i=e("is-svg-path"),l=e("assert");function s(e){if(Array.isArray(e)&&1===e.length&&"string"===typeof e[0]&&(e=e[0]),"string"===typeof e&&(l(i(e),"String is not an SVG path."),e=r(e)),l(Array.isArray(e),"Argument should be a string or an array of path segments."),e=a(e),e=o(e),!e.length)return[0,0,0,0];for(var t=[1/0,1/0,-1/0,-1/0],n=0,s=e.length;n<s;n++)for(var u=e[n].slice(1),c=0;c<u.length;c+=2)u[c+0]<t[0]&&(t[0]=u[c+0]),u[c+1]<t[1]&&(t[1]=u[c+1]),u[c+0]>t[2]&&(t[2]=u[c+0]),u[c+1]>t[3]&&(t[3]=u[c+1]);return t}t.exports=s},{"abs-svg-path":65,assert:73,"is-svg-path":445,"normalize-svg-path":545,"parse-svg-path":479}],545:[function(e,t,n){"use strict";t.exports=a;var r=e("svg-arc-to-cubic-bezier");function a(e){for(var t,n=[],a=0,l=0,s=0,u=0,c=null,f=null,p=0,d=0,h=0,v=e.length;h<v;h++){var m=e[h],y=m[0];switch(y){case"M":s=m[1],u=m[2];break;case"A":var g=r({px:p,py:d,cx:m[6],cy:m[7],rx:m[1],ry:m[2],xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5]});if(!g.length)continue;for(var b,x=0;x<g.length;x++)b=g[x],m=["C",b.x1,b.y1,b.x2,b.y2,b.x,b.y],x<g.length-1&&n.push(m);break;case"S":var _=p,w=d;"C"!=t&&"S"!=t||(_+=_-a,w+=w-l),m=["C",_,w,m[1],m[2],m[3],m[4]];break;case"T":"Q"==t||"T"==t?(c=2*p-c,f=2*d-f):(c=p,f=d),m=i(p,d,c,f,m[1],m[2]);break;case"Q":c=m[1],f=m[2],m=i(p,d,m[1],m[2],m[3],m[4]);break;case"L":m=o(p,d,m[1],m[2]);break;case"H":m=o(p,d,m[1],d);break;case"V":m=o(p,d,p,m[1]);break;case"Z":m=o(p,d,s,u);break}t=y,p=m[m.length-2],d=m[m.length-1],m.length>4?(a=m[m.length-4],l=m[m.length-3]):(a=p,l=d),n.push(m)}return n}function o(e,t,n,r){return["C",e,t,n,r,n,r]}function i(e,t,n,r,a,o){return["C",e/3+2/3*n,t/3+2/3*r,a/3+2/3*n,o/3+2/3*r,a,o]}},{"svg-arc-to-cubic-bezier":543}],546:[function(e,t,n){"use strict";var r,a=e("svg-path-bounds"),o=e("parse-svg-path"),i=e("draw-svg-path"),l=e("is-svg-path"),s=e("bitmap-sdf"),u=document.createElement("canvas"),c=u.getContext("2d");function f(e,t){if(!l(e))throw Error("Argument should be valid svg path string");var n,r;t||(t={}),t.shape?(n=t.shape[0],r=t.shape[1]):(n=u.width=t.w||t.width||200,r=u.height=t.h||t.height||200);var f=Math.min(n,r),d=t.stroke||0,h=t.viewbox||t.viewBox||a(e),v=[n/(h[2]-h[0]),r/(h[3]-h[1])],m=Math.min(v[0]||0,v[1]||0)/2;if(c.fillStyle="black",c.fillRect(0,0,n,r),c.fillStyle="white",d&&("number"!=typeof d&&(d=1),c.strokeStyle=d>0?"white":"black",c.lineWidth=Math.abs(d)),c.translate(.5*n,.5*r),c.scale(m,m),p()){var y=new Path2D(e);c.fill(y),d&&c.stroke(y)}else{var g=o(e);i(c,g),c.fill(),d&&c.stroke()}c.setTransform(1,0,0,1,0,0);var b=s(c,{cutoff:null!=t.cutoff?t.cutoff:.5,radius:null!=t.radius?t.radius:.5*f});return b}function p(){if(null!=r)return r;var e=document.createElement("canvas").getContext("2d");if(e.canvas.width=e.canvas.height=1,!window.Path2D)return r=!1;var t=new Path2D("M0,0h1v1h-1v-1Z");e.fillStyle="black",e.fill(t);var n=e.getImageData(0,0,1,1);return r=n&&n.data&&255===n.data[3]}t.exports=f},{"bitmap-sdf":98,"draw-svg-path":174,"is-svg-path":445,"parse-svg-path":479,"svg-path-bounds":544}],547:[function(e,t,n){(function(n){"use strict";t.exports=l;var r=e("vectorize-text"),a=window||n.global||{},o=a.__TEXT_CACHE||{};function i(e){for(var t=e.cells,n=e.positions,r=new Float32Array(6*t.length),a=0,o=0,i=0;i<t.length;++i)for(var l=t[i],s=0;s<3;++s){var u=n[l[s]];r[a++]=u[0],r[a++]=u[1]+1.4,o=Math.max(u[0],o)}return{data:r,shape:o}}function l(e,t,n){n=n||{};var a=o[e];a||(a=o[e]={" ":{data:new Float32Array(0),shape:.2}});var s=a[t];if(!s)if(t.length<=1||!/\d/.test(t))s=a[t]=i(r(t,{triangles:!0,font:e,textAlign:n.textAlign||"left",textBaseline:"alphabetic",styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}}));else{for(var u=t.split(/(\d|\s)/),c=new Array(u.length),f=0,p=0,d=0;d<u.length;++d)c[d]=l(e,u[d]),f+=c[d].data.length,p+=c[d].shape,d>0&&(p+=.02);var h=new Float32Array(f),v=0,m=-.5*p;for(d=0;d<c.length;++d){for(var y=c[d].data,g=0;g<y.length;g+=2)h[v++]=y[g]+m,h[v++]=y[g+1];m+=c[d].shape+.02}s=a[t]={data:h,shape:p}}return s}a.__TEXT_CACHE={}}).call(this,e("_process"))},{_process:500,"vectorize-text":572}],548:[function(t,n,r){(function(t){var r=/^\s+/,a=/\s+$/,o=0,i=t.round,l=t.min,s=t.max,u=t.random;function c(e,t){if(e=e||"",t=t||{},e instanceof c)return e;if(!(this instanceof c))return new c(e,t);var n=f(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=i(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=i(this._r)),this._g<1&&(this._g=i(this._g)),this._b<1&&(this._b=i(this._b)),this._ok=n.ok,this._tc_id=o++}function f(e){var t={r:0,g:0,b:0},n=1,r=null,a=null,o=null,i=!1,u=!1;return"string"==typeof e&&(e=Y(e)),"object"==typeof e&&(G(e.r)&&G(e.g)&&G(e.b)?(t=p(e.r,e.g,e.b),i=!0,u="%"===String(e.r).substr(-1)?"prgb":"rgb"):G(e.h)&&G(e.s)&&G(e.v)?(r=U(e.s),a=U(e.v),t=m(e.h,r,a),i=!0,u="hsv"):G(e.h)&&G(e.s)&&G(e.l)&&(r=U(e.s),o=U(e.l),t=h(e.h,r,o),i=!0,u="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=R(n),{ok:i,format:e.format||u,r:l(255,s(t.r,0)),g:l(255,s(t.g,0)),b:l(255,s(t.b,0)),a:n}}function p(e,t,n){return{r:255*z(e,255),g:255*z(t,255),b:255*z(n,255)}}function d(e,t,n){e=z(e,255),t=z(t,255),n=z(n,255);var r,a,o=s(e,t,n),i=l(e,t,n),u=(o+i)/2;if(o==i)r=a=0;else{var c=o-i;switch(a=u>.5?c/(2-o-i):c/(o+i),o){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4;break}r/=6}return{h:r,s:a,l:u}}function h(e,t,n){var r,a,o;function i(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=z(e,360),t=z(t,100),n=z(n,100),0===t)r=a=o=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=i(s,l,e+1/3),a=i(s,l,e),o=i(s,l,e-1/3)}return{r:255*r,g:255*a,b:255*o}}function v(e,t,n){e=z(e,255),t=z(t,255),n=z(n,255);var r,a,o=s(e,t,n),i=l(e,t,n),u=o,c=o-i;if(a=0===o?0:c/o,o==i)r=0;else{switch(o){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4;break}r/=6}return{h:r,s:a,v:u}}function m(e,n,r){e=6*z(e,360),n=z(n,100),r=z(r,100);var a=t.floor(e),o=e-a,i=r*(1-n),l=r*(1-o*n),s=r*(1-(1-o)*n),u=a%6,c=[r,l,i,i,s,r][u],f=[s,r,r,l,i,i][u],p=[i,i,s,r,r,l][u];return{r:255*c,g:255*f,b:255*p}}function y(e,t,n,r){var a=[H(i(e).toString(16)),H(i(t).toString(16)),H(i(n).toString(16))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function g(e,t,n,r,a){var o=[H(i(e).toString(16)),H(i(t).toString(16)),H(i(n).toString(16)),H(W(r))];return a&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function b(e,t,n,r){var a=[H(W(r)),H(i(e).toString(16)),H(i(t).toString(16)),H(i(n).toString(16))];return a.join("")}function x(e,t){t=0===t?0:t||10;var n=c(e).toHsl();return n.s-=t/100,n.s=N(n.s),c(n)}function _(e,t){t=0===t?0:t||10;var n=c(e).toHsl();return n.s+=t/100,n.s=N(n.s),c(n)}function w(e){return c(e).desaturate(100)}function k(e,t){t=0===t?0:t||10;var n=c(e).toHsl();return n.l+=t/100,n.l=N(n.l),c(n)}function T(e,t){t=0===t?0:t||10;var n=c(e).toRgb();return n.r=s(0,l(255,n.r-i(-t/100*255))),n.g=s(0,l(255,n.g-i(-t/100*255))),n.b=s(0,l(255,n.b-i(-t/100*255))),c(n)}function E(e,t){t=0===t?0:t||10;var n=c(e).toHsl();return n.l-=t/100,n.l=N(n.l),c(n)}function O(e,t){var n=c(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,c(n)}function M(e){var t=c(e).toHsl();return t.h=(t.h+180)%360,c(t)}function S(e){var t=c(e).toHsl(),n=t.h;return[c(e),c({h:(n+120)%360,s:t.s,l:t.l}),c({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=c(e).toHsl(),n=t.h;return[c(e),c({h:(n+90)%360,s:t.s,l:t.l}),c({h:(n+180)%360,s:t.s,l:t.l}),c({h:(n+270)%360,s:t.s,l:t.l})]}function A(e){var t=c(e).toHsl(),n=t.h;return[c(e),c({h:(n+72)%360,s:t.s,l:t.l}),c({h:(n+216)%360,s:t.s,l:t.l})]}function P(e,t,n){t=t||6,n=n||30;var r=c(e).toHsl(),a=360/n,o=[c(e)];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,o.push(c(r));return o}function L(e,t){t=t||6;var n=c(e).toHsv(),r=n.h,a=n.s,o=n.v,i=[],l=1/t;while(t--)i.push(c({h:r,s:a,v:o})),o=(o+l)%1;return i}c.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,n,r,a,o,i,l=this.toRgb();return e=l.r/255,n=l.g/255,r=l.b/255,a=e<=.03928?e/12.92:t.pow((e+.055)/1.055,2.4),o=n<=.03928?n/12.92:t.pow((n+.055)/1.055,2.4),i=r<=.03928?r/12.92:t.pow((r+.055)/1.055,2.4),.2126*a+.7152*o+.0722*i},setAlpha:function(e){return this._a=R(e),this._roundA=i(100*this._a)/100,this},toHsv:function(){var e=v(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=v(this._r,this._g,this._b),t=i(360*e.h),n=i(100*e.s),r=i(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=i(360*e.h),n=i(100*e.s),r=i(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return y(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return g(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:i(this._r),g:i(this._g),b:i(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+i(this._r)+", "+i(this._g)+", "+i(this._b)+")":"rgba("+i(this._r)+", "+i(this._g)+", "+i(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:i(100*z(this._r,255))+"%",g:i(100*z(this._g,255))+"%",b:i(100*z(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+i(100*z(this._r,255))+"%, "+i(100*z(this._g,255))+"%, "+i(100*z(this._b,255))+"%)":"rgba("+i(100*z(this._r,255))+"%, "+i(100*z(this._g,255))+"%, "+i(100*z(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(j[y(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+b(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var a=c(e);n="#"+b(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0,a=!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return a?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return c(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(k,arguments)},brighten:function(){return this._applyModification(T,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(x,arguments)},saturate:function(){return this._applyModification(_,arguments)},greyscale:function(){return this._applyModification(w,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(S,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},c.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:U(e[r]));e=n}return c(e,t)},c.equals=function(e,t){return!(!e||!t)&&c(e).toRgbString()==c(t).toRgbString()},c.random=function(){return c.fromRatio({r:u(),g:u(),b:u()})},c.mix=function(e,t,n){n=0===n?0:n||50;var r=c(e).toRgb(),a=c(t).toRgb(),o=n/100,i={r:(a.r-r.r)*o+r.r,g:(a.g-r.g)*o+r.g,b:(a.b-r.b)*o+r.b,a:(a.a-r.a)*o+r.a};return c(i)},c.readability=function(e,n){var r=c(e),a=c(n);return(t.max(r.getLuminance(),a.getLuminance())+.05)/(t.min(r.getLuminance(),a.getLuminance())+.05)},c.isReadable=function(e,t,n){var r,a,o=c.readability(e,t);switch(a=!1,r=K(n),r.level+r.size){case"AAsmall":case"AAAlarge":a=o>=4.5;break;case"AAlarge":a=o>=3;break;case"AAAsmall":a=o>=7;break}return a},c.mostReadable=function(e,t,n){var r,a,o,i,l=null,s=0;n=n||{},a=n.includeFallbackColors,o=n.level,i=n.size;for(var u=0;u<t.length;u++)r=c.readability(e,t[u]),r>s&&(s=r,l=c(t[u]));return c.isReadable(e,l,{level:o,size:i})||!a?l:(n.includeFallbackColors=!1,c.mostReadable(e,["#fff","#000"],n))};var D=c.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},j=c.hexNames=I(D);function I(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function z(e,n){B(e)&&(e="100%");var r=V(e);return e=l(n,s(0,parseFloat(e))),r&&(e=parseInt(e*n,10)/100),t.abs(e-n)<1e-6?1:e%n/parseFloat(n)}function N(e){return l(1,s(0,e))}function F(e){return parseInt(e,16)}function B(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function V(e){return"string"===typeof e&&-1!=e.indexOf("%")}function H(e){return 1==e.length?"0"+e:""+e}function U(e){return e<=1&&(e=100*e+"%"),e}function W(e){return t.round(255*parseFloat(e)).toString(16)}function q(e){return F(e)/255}var $=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",a="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function G(e){return!!$.CSS_UNIT.exec(e)}function Y(e){e=e.replace(r,"").replace(a,"").toLowerCase();var t,n=!1;if(D[e])e=D[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=$.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=$.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=$.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=$.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=$.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=$.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=$.hex8.exec(e))?{r:F(t[1]),g:F(t[2]),b:F(t[3]),a:q(t[4]),format:n?"name":"hex8"}:(t=$.hex6.exec(e))?{r:F(t[1]),g:F(t[2]),b:F(t[3]),format:n?"name":"hex"}:(t=$.hex4.exec(e))?{r:F(t[1]+""+t[1]),g:F(t[2]+""+t[2]),b:F(t[3]+""+t[3]),a:q(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=$.hex3.exec(e))&&{r:F(t[1]+""+t[1]),g:F(t[2]+""+t[2]),b:F(t[3]+""+t[3]),format:n?"name":"hex"}}function K(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}"undefined"!==typeof n&&n.exports?n.exports=c:"function"===typeof e&&e.amd?e((function(){return c})):window.tinycolor=c})(Math)},{}],549:[function(e,t,n){"use strict";t.exports=o,t.exports.float32=t.exports.float=o,t.exports.fract32=t.exports.fract=a;var r=new Float32Array(1);function a(e){if(e.length){for(var t=o(e),n=0,r=t.length;n<r;n++)t[n]=e[n]-t[n];return t}return o(e-o(e))}function o(e){if(e.length){if(e instanceof Float32Array)return e;var t=new Float32Array(e);return t.set(e),t}return r[0]=e,r[0]}},{}],550:[function(e,t,n){"use strict";var r=e("parse-unit");t.exports=l;var a=96;function o(e,t){var n=r(getComputedStyle(e).getPropertyValue(t));return n[0]*l(n[1],e)}function i(e,t){var n=document.createElement("div");n.style["font-size"]="128"+e,t.appendChild(n);var r=o(n,"font-size")/128;return t.removeChild(n),r}function l(e,t){switch(t=t||document.body,e=(e||"px").trim().toLowerCase(),t!==window&&t!==document||(t=document.body),e){case"%":return t.clientHeight/100;case"ch":case"ex":return i(e,t);case"em":return o(t,"font-size");case"rem":return o(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return a;case"cm":return a/2.54;case"mm":return a/25.4;case"pt":return a/72;case"pc":return a/6}return 1}},{"parse-unit":480}],551:[function(t,n,r){(function(t,a){"object"===typeof r&&"undefined"!==typeof n?a(r):"function"===typeof e&&e.amd?e(["exports"],a):(t=t||self,a(t.topojson=t.topojson||{}))})(this,(function(e){"use strict";function t(e){return e}function n(e){if(null==e)return t;var n,r,a=e.scale[0],o=e.scale[1],i=e.translate[0],l=e.translate[1];return function(e,t){t||(n=r=0);var s=2,u=e.length,c=new Array(u);c[0]=(n+=e[0])*a+i,c[1]=(r+=e[1])*o+l;while(s<u)c[s]=e[s],++s;return c}}function r(e){var t,r=n(e.transform),a=1/0,o=a,i=-a,l=-a;function s(e){e=r(e),e[0]<a&&(a=e[0]),e[0]>i&&(i=e[0]),e[1]<o&&(o=e[1]),e[1]>l&&(l=e[1])}function u(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(u);break;case"Point":s(e.coordinates);break;case"MultiPoint":e.coordinates.forEach(s);break}}for(t in e.arcs.forEach((function(e){var t,n=-1,s=e.length;while(++n<s)t=r(e[n],n),t[0]<a&&(a=t[0]),t[0]>i&&(i=t[0]),t[1]<o&&(o=t[1]),t[1]>l&&(l=t[1])})),e.objects)u(e.objects[t]);return[a,o,i,l]}function a(e,t){var n,r=e.length,a=r-t;while(a<--r)n=e[a],e[a++]=e[r],e[r]=n}function o(e,t){return"string"===typeof t&&(t=e.objects[t]),"GeometryCollection"===t.type?{type:"FeatureCollection",features:t.geometries.map((function(t){return i(e,t)}))}:i(e,t)}function i(e,t){var n=t.id,r=t.bbox,a=null==t.properties?{}:t.properties,o=l(e,t);return null==n&&null==r?{type:"Feature",properties:a,geometry:o}:null==r?{type:"Feature",id:n,properties:a,geometry:o}:{type:"Feature",id:n,bbox:r,properties:a,geometry:o}}function l(e,t){var r=n(e.transform),o=e.arcs;function i(e,t){t.length&&t.pop();for(var n=o[e<0?~e:e],i=0,l=n.length;i<l;++i)t.push(r(n[i],i));e<0&&a(t,l)}function l(e){return r(e)}function s(e){for(var t=[],n=0,r=e.length;n<r;++n)i(e[n],t);return t.length<2&&t.push(t[0]),t}function u(e){var t=s(e);while(t.length<4)t.push(t[0]);return t}function c(e){return e.map(u)}function f(e){var t,n=e.type;switch(n){case"GeometryCollection":return{type:n,geometries:e.geometries.map(f)};case"Point":t=l(e.coordinates);break;case"MultiPoint":t=e.coordinates.map(l);break;case"LineString":t=s(e.arcs);break;case"MultiLineString":t=e.arcs.map(s);break;case"Polygon":t=c(e.arcs);break;case"MultiPolygon":t=e.arcs.map(c);break;default:return null}return{type:n,coordinates:t}}return f(t)}function s(e,t){var n={},r={},a={},o=[],i=-1;function l(t){var n,r=e.arcs[t<0?~t:t],a=r[0];return e.transform?(n=[0,0],r.forEach((function(e){n[0]+=e[0],n[1]+=e[1]}))):n=r[r.length-1],t<0?[n,a]:[a,n]}function s(e,t){for(var r in e){var a=e[r];delete t[a.start],delete a.start,delete a.end,a.forEach((function(e){n[e<0?~e:e]=1})),o.push(a)}}return t.forEach((function(n,r){var a,o=e.arcs[n<0?~n:n];o.length<3&&!o[1][0]&&!o[1][1]&&(a=t[++i],t[i]=n,t[r]=a)})),t.forEach((function(e){var t,n,o=l(e),i=o[0],s=o[1];if(t=a[i])if(delete a[t.end],t.push(e),t.end=s,n=r[s]){delete r[n.start];var u=n===t?t:t.concat(n);r[u.start=t.start]=a[u.end=n.end]=u}else r[t.start]=a[t.end]=t;else if(t=r[s])if(delete r[t.start],t.unshift(e),t.start=i,n=a[i]){delete a[n.end];var c=n===t?t:n.concat(t);r[c.start=n.start]=a[c.end=t.end]=c}else r[t.start]=a[t.end]=t;else t=[e],r[t.start=i]=a[t.end=s]=t})),s(a,r),s(r,a),t.forEach((function(e){n[e<0?~e:e]||o.push([e])})),o}function u(e){return l(e,c.apply(this,arguments))}function c(e,t,n){var r,a,o;if(arguments.length>1)r=f(e,t,n);else for(a=0,r=new Array(o=e.arcs.length);a<o;++a)r[a]=a;return{type:"MultiLineString",arcs:s(e,r)}}function f(e,t,n){var r,a=[],o=[];function i(e){var t=e<0?~e:e;(o[t]||(o[t]=[])).push({i:e,g:r})}function l(e){e.forEach(i)}function s(e){e.forEach(l)}function u(e){e.forEach(s)}function c(e){switch(r=e,e.type){case"GeometryCollection":e.geometries.forEach(c);break;case"LineString":l(e.arcs);break;case"MultiLineString":case"Polygon":s(e.arcs);break;case"MultiPolygon":u(e.arcs);break}}return c(t),o.forEach(null==n?function(e){a.push(e[0].i)}:function(e){n(e[0].g,e[e.length-1].g)&&a.push(e[0].i)}),a}function p(e){var t,n=-1,r=e.length,a=e[r-1],o=0;while(++n<r)t=a,a=e[n],o+=t[0]*a[1]-t[1]*a[0];return Math.abs(o)}function d(e){return l(e,h.apply(this,arguments))}function h(e,t){var n={},r=[],a=[];function o(e){switch(e.type){case"GeometryCollection":e.geometries.forEach(o);break;case"Polygon":i(e.arcs);break;case"MultiPolygon":e.arcs.forEach(i);break}}function i(e){e.forEach((function(t){t.forEach((function(t){(n[t=t<0?~t:t]||(n[t]=[])).push(e)}))})),r.push(e)}function u(t){return p(l(e,{type:"Polygon",arcs:[t]}).coordinates[0])}return t.forEach(o),r.forEach((function(e){if(!e._){var t=[],r=[e];e._=1,a.push(t);while(e=r.pop())t.push(e),e.forEach((function(e){e.forEach((function(e){n[e<0?~e:e].forEach((function(e){e._||(e._=1,r.push(e))}))}))}))}})),r.forEach((function(e){delete e._})),{type:"MultiPolygon",arcs:a.map((function(t){var r,a=[];if(t.forEach((function(e){e.forEach((function(e){e.forEach((function(e){n[e<0?~e:e].length<2&&a.push(e)}))}))})),a=s(e,a),(r=a.length)>1)for(var o,i,l=1,c=u(a[0]);l<r;++l)(o=u(a[l]))>c&&(i=a[0],a[0]=a[l],a[l]=i,c=o);return a})).filter((function(e){return e.length>0}))}}function v(e,t){var n=0,r=e.length;while(n<r){var a=n+r>>>1;e[a]<t?n=a+1:r=a}return n}function m(e){var t={},n=e.map((function(){return[]}));function r(e,n){e.forEach((function(e){e<0&&(e=~e);var r=t[e];r?r.push(n):t[e]=[n]}))}function a(e,t){e.forEach((function(e){r(e,t)}))}function o(e,t){"GeometryCollection"===e.type?e.geometries.forEach((function(e){o(e,t)})):e.type in i&&i[e.type](e.arcs,t)}var i={LineString:r,MultiLineString:a,Polygon:a,MultiPolygon:function(e,t){e.forEach((function(e){a(e,t)}))}};for(var l in e.forEach(o),t)for(var s=t[l],u=s.length,c=0;c<u;++c)for(var f=c+1;f<u;++f){var p,d=s[c],h=s[f];(p=n[d])[l=v(p,h)]!==h&&p.splice(l,0,h),(p=n[h])[l=v(p,d)]!==d&&p.splice(l,0,d)}return n}function y(e){if(null==e)return t;var n,r,a=e.scale[0],o=e.scale[1],i=e.translate[0],l=e.translate[1];return function(e,t){t||(n=r=0);var s=2,u=e.length,c=new Array(u),f=Math.round((e[0]-i)/a),p=Math.round((e[1]-l)/o);c[0]=f-n,n=f,c[1]=p-r,r=p;while(s<u)c[s]=e[s],++s;return c}}function g(e,t){if(e.transform)throw new Error("already quantized");if(t&&t.scale)s=e.bbox;else{if(!((n=Math.floor(t))>=2))throw new Error("n must be ≥2");s=e.bbox||r(e);var n,a=s[0],o=s[1],i=s[2],l=s[3];t={scale:[i-a?(i-a)/(n-1):1,l-o?(l-o)/(n-1):1],translate:[a,o]}}var s,u,c=y(t),f=e.objects,p={};function d(e){return c(e)}function h(e){var t;switch(e.type){case"GeometryCollection":t={type:"GeometryCollection",geometries:e.geometries.map(h)};break;case"Point":t={type:"Point",coordinates:d(e.coordinates)};break;case"MultiPoint":t={type:"MultiPoint",coordinates:e.coordinates.map(d)};break;default:return e}return null!=e.id&&(t.id=e.id),null!=e.bbox&&(t.bbox=e.bbox),null!=e.properties&&(t.properties=e.properties),t}function v(e){var t,n=0,r=1,a=e.length,o=new Array(a);o[0]=c(e[0],0);while(++n<a)((t=c(e[n],n))[0]||t[1])&&(o[r++]=t);return 1===r&&(o[r++]=[0,0]),o.length=r,o}for(u in f)p[u]=h(f[u]);return{type:"Topology",bbox:s,transform:t,objects:p,arcs:e.arcs.map(v)}}e.bbox=r,e.feature=o,e.merge=d,e.mergeArcs=h,e.mesh=u,e.meshArcs=c,e.neighbors=m,e.quantize=g,e.transform=n,e.untransform=y,Object.defineProperty(e,"__esModule",{value:!0})}))},{}],552:[function(e,t,n){"use strict";t.exports=i;var r=e("permutation-rank"),a=e("permutation-parity"),o=e("gamma");function i(e){if(e<0)return[];if(0===e)return[[0]];for(var t=0|Math.round(o(e+1)),n=[],i=0;i<t;++i){for(var l=r.unrank(e,i),s=[0],u=0,c=0;c<l.length;++c)u+=1<<l[c],s.push(u);a(l)<1&&(s[0]=u,s[e]=0),n.push(s)}return n}},{gamma:248,"permutation-parity":483,"permutation-rank":484}],553:[function(e,t,n){"use strict";t.exports=v;var r=e("filtered-vector"),a=e("gl-mat4/invert"),o=e("gl-mat4/rotate"),i=e("gl-vec3/cross"),l=e("gl-vec3/normalize"),s=e("gl-vec3/dot");function u(e,t,n){return Math.sqrt(Math.pow(e,2)+Math.pow(t,2)+Math.pow(n,2))}function c(e){return Math.min(1,Math.max(-1,e))}function f(e){var t=Math.abs(e[0]),n=Math.abs(e[1]),r=Math.abs(e[2]),a=[0,0,0];t>Math.max(n,r)?a[2]=1:n>Math.max(t,r)?a[0]=1:a[1]=1;for(var o=0,i=0,s=0;s<3;++s)o+=e[s]*e[s],i+=a[s]*e[s];for(s=0;s<3;++s)a[s]-=i/o*e[s];return l(a,a),a}function p(e,t,n,a,o,i,l,s){this.center=r(n),this.up=r(a),this.right=r(o),this.radius=r([i]),this.angle=r([l,s]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(e,t),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var u=0;u<16;++u)this.computedMatrix[u]=.5;this.recalcMatrix(0)}var d=p.prototype;d.setDistanceLimits=function(e,t){e=e>0?Math.log(e):-1/0,t=t>0?Math.log(t):1/0,t=Math.max(t,e),this.radius.bounds[0][0]=e,this.radius.bounds[1][0]=t},d.getDistanceLimits=function(e){var t=this.radius.bounds[0];return e?(e[0]=Math.exp(t[0][0]),e[1]=Math.exp(t[1][0]),e):[Math.exp(t[0][0]),Math.exp(t[1][0])]},d.recalcMatrix=function(e){this.center.curve(e),this.up.curve(e),this.right.curve(e),this.radius.curve(e),this.angle.curve(e);for(var t=this.computedUp,n=this.computedRight,r=0,a=0,o=0;o<3;++o)a+=t[o]*n[o],r+=t[o]*t[o];var s=Math.sqrt(r),c=0;for(o=0;o<3;++o)n[o]-=t[o]*a/r,c+=n[o]*n[o],t[o]/=s;var f=Math.sqrt(c);for(o=0;o<3;++o)n[o]/=f;var p=this.computedToward;i(p,t,n),l(p,p);var d=Math.exp(this.computedRadius[0]),h=this.computedAngle[0],v=this.computedAngle[1],m=Math.cos(h),y=Math.sin(h),g=Math.cos(v),b=Math.sin(v),x=this.computedCenter,_=m*g,w=y*g,k=b,T=-m*b,E=-y*b,O=g,M=this.computedEye,S=this.computedMatrix;for(o=0;o<3;++o){var C=_*n[o]+w*p[o]+k*t[o];S[4*o+1]=T*n[o]+E*p[o]+O*t[o],S[4*o+2]=C,S[4*o+3]=0}var A=S[1],P=S[5],L=S[9],D=S[2],j=S[6],I=S[10],R=P*I-L*j,z=L*D-A*I,N=A*j-P*D,F=u(R,z,N);R/=F,z/=F,N/=F,S[0]=R,S[4]=z,S[8]=N;for(o=0;o<3;++o)M[o]=x[o]+S[2+4*o]*d;for(o=0;o<3;++o){c=0;for(var B=0;B<3;++B)c+=S[o+4*B]*M[B];S[12+o]=-c}S[15]=1},d.getMatrix=function(e,t){this.recalcMatrix(e);var n=this.computedMatrix;if(t){for(var r=0;r<16;++r)t[r]=n[r];return t}return n};var h=[0,0,0];function v(e){e=e||{};var t=e.center||[0,0,0],n=e.up||[0,1,0],r=e.right||f(n),a=e.radius||1,o=e.theta||0,c=e.phi||0;if(t=[].slice.call(t,0,3),n=[].slice.call(n,0,3),l(n,n),r=[].slice.call(r,0,3),l(r,r),"eye"in e){var d=e.eye,h=[d[0]-t[0],d[1]-t[1],d[2]-t[2]];i(r,h,n),u(r[0],r[1],r[2])<1e-6?r=f(n):l(r,r),a=u(h[0],h[1],h[2]);var v=s(n,h)/a,m=s(r,h)/a;c=Math.acos(v),o=Math.acos(m)}return a=Math.log(a),new p(e.zoomMin,e.zoomMax,t,n,r,a,o,c)}d.rotate=function(e,t,n,r){if(this.angle.move(e,t,n),r){this.recalcMatrix(e);var a=this.computedMatrix;h[0]=a[2],h[1]=a[6],h[2]=a[10];for(var i=this.computedUp,l=this.computedRight,s=this.computedToward,u=0;u<3;++u)a[4*u]=i[u],a[4*u+1]=l[u],a[4*u+2]=s[u];o(a,a,r,h);for(u=0;u<3;++u)i[u]=a[4*u],l[u]=a[4*u+1];this.up.set(e,i[0],i[1],i[2]),this.right.set(e,l[0],l[1],l[2])}},d.pan=function(e,t,n,r){t=t||0,n=n||0,r=r||0,this.recalcMatrix(e);var a=this.computedMatrix,o=(Math.exp(this.computedRadius[0]),a[1]),i=a[5],l=a[9],s=u(o,i,l);o/=s,i/=s,l/=s;var c=a[0],f=a[4],p=a[8],d=c*o+f*i+p*l;c-=o*d,f-=i*d,p-=l*d;var h=u(c,f,p);c/=h,f/=h,p/=h;var v=c*t+o*n,m=f*t+i*n,y=p*t+l*n;this.center.move(e,v,m,y);var g=Math.exp(this.computedRadius[0]);g=Math.max(1e-4,g+r),this.radius.set(e,Math.log(g))},d.translate=function(e,t,n,r){this.center.move(e,t||0,n||0,r||0)},d.setMatrix=function(e,t,n,r){var o=1;"number"===typeof n&&(o=0|n),(o<0||o>3)&&(o=1);var i=(o+2)%3;t||(this.recalcMatrix(e),t=this.computedMatrix);var l=t[o],s=t[o+4],f=t[o+8];if(r){var p=Math.abs(l),d=Math.abs(s),h=Math.abs(f),v=Math.max(p,d,h);p===v?(l=l<0?-1:1,s=f=0):h===v?(f=f<0?-1:1,l=s=0):(s=s<0?-1:1,l=f=0)}else{var m=u(l,s,f);l/=m,s/=m,f/=m}var y=t[i],g=t[i+4],b=t[i+8],x=y*l+g*s+b*f;y-=l*x,g-=s*x,b-=f*x;var _=u(y,g,b);y/=_,g/=_,b/=_;var w,k,T=s*b-f*g,E=f*y-l*b,O=l*g-s*y,M=u(T,E,O);if(T/=M,E/=M,O/=M,this.center.jump(e,W,q,$),this.radius.idle(e),this.up.jump(e,l,s,f),this.right.jump(e,y,g,b),2===o){var S=t[1],C=t[5],A=t[9],P=S*y+C*g+A*b,L=S*T+C*E+A*O;w=R<0?-Math.PI/2:Math.PI/2,k=Math.atan2(L,P)}else{var D=t[2],j=t[6],I=t[10],R=D*l+j*s+I*f,z=D*y+j*g+I*b,N=D*T+j*E+I*O;w=Math.asin(c(R)),k=Math.atan2(N,z)}this.angle.jump(e,k,w),this.recalcMatrix(e);var F=t[2],B=t[6],V=t[10],H=this.computedMatrix;a(H,t);var U=H[15],W=H[12]/U,q=H[13]/U,$=H[14]/U,G=Math.exp(this.computedRadius[0]);this.center.jump(e,W-F*G,q-B*G,$-V*G)},d.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},d.idle=function(e){this.center.idle(e),this.up.idle(e),this.right.idle(e),this.radius.idle(e),this.angle.idle(e)},d.flush=function(e){this.center.flush(e),this.up.flush(e),this.right.flush(e),this.radius.flush(e),this.angle.flush(e)},d.setDistance=function(e,t){t>0&&this.radius.set(e,Math.log(t))},d.lookAt=function(e,t,n,r){this.recalcMatrix(e),t=t||this.computedEye,n=n||this.computedCenter,r=r||this.computedUp;var a=r[0],o=r[1],i=r[2],l=u(a,o,i);if(!(l<1e-6)){a/=l,o/=l,i/=l;var s=t[0]-n[0],f=t[1]-n[1],p=t[2]-n[2],d=u(s,f,p);if(!(d<1e-6)){s/=d,f/=d,p/=d;var h=this.computedRight,v=h[0],m=h[1],y=h[2],g=a*v+o*m+i*y;v-=g*a,m-=g*o,y-=g*i;var b=u(v,m,y);if(!(b<.01&&(v=o*p-i*f,m=i*s-a*p,y=a*f-o*s,b=u(v,m,y),b<1e-6))){v/=b,m/=b,y/=b,this.up.set(e,a,o,i),this.right.set(e,v,m,y),this.center.set(e,n[0],n[1],n[2]),this.radius.set(e,Math.log(d));var x=o*y-i*m,_=i*v-a*y,w=a*m-o*v,k=u(x,_,w);x/=k,_/=k,w/=k;var T=a*s+o*f+i*p,E=v*s+m*f+y*p,O=x*s+_*f+w*p,M=Math.asin(c(T)),S=Math.atan2(O,E),C=this.angle._state,A=C[C.length-1],P=C[C.length-2];A%=2*Math.PI;var L=Math.abs(A+2*Math.PI-S),D=Math.abs(A-S),j=Math.abs(A-2*Math.PI-S);L<D&&(A+=2*Math.PI),j<D&&(A-=2*Math.PI),this.angle.jump(this.angle.lastT(),A,P),this.angle.set(e,S,M)}}}}},{"filtered-vector":242,"gl-mat4/invert":278,"gl-mat4/rotate":283,"gl-vec3/cross":339,"gl-vec3/dot":344,"gl-vec3/normalize":361}],554:[function(e,t,n){"use strict";t.exports=a;var r=+(Math.pow(2,27)+1);function a(e,t,n){var a=e*t,o=r*e,i=o-e,l=o-i,s=e-l,u=r*t,c=u-t,f=u-c,p=t-f,d=a-l*f,h=d-s*f,v=h-l*p,m=s*p-v;return n?(n[0]=m,n[1]=a,n):[m,a]}},{}],555:[function(e,t,n){"use strict";function r(e,t,n){var r=e+t,a=r-e,o=r-a,i=t-a,l=e-o;return n?(n[0]=l+i,n[1]=r,n):[l+i,r]}t.exports=r},{}],556:[function(e,t,n){"use strict";var r=e("../prototype/is");t.exports=function(e){if("function"!==typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!==typeof e.length)return!1;if("function"!==typeof e.call)return!1;if("function"!==typeof e.apply)return!1}catch(t){return!1}return!r(e)}},{"../prototype/is":563}],557:[function(e,t,n){"use strict";var r=e("../value/is"),a=e("../object/is"),o=e("../string/coerce"),i=e("./to-short-string"),l=function(e,t){return e.replace("%v",i(t))};t.exports=function(e,t,n){if(!a(n))throw new TypeError(l(t,e));if(!r(e)){if("default"in n)return n["default"];if(n.isOptional)return null}var i=o(n.errorMessage);throw r(i)||(i=t),new TypeError(l(i,e))}},{"../object/is":560,"../string/coerce":564,"../value/is":566,"./to-short-string":559}],558:[function(e,t,n){"use strict";t.exports=function(e){try{return e.toString()}catch(t){try{return String(e)}catch(n){return null}}}},{}],559:[function(e,t,n){"use strict";var r=e("./safe-to-string"),a=/[\n\r\u2028\u2029]/g;t.exports=function(e){var t=r(e);return null===t?"<Non-coercible to string value>":(t.length>100&&(t=t.slice(0,99)+"…"),t=t.replace(a,(function(e){switch(e){case"\n":return"\\n";case"\r":return"\\r";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw new Error("Unexpected character")}})),t)}},{"./safe-to-string":558}],560:[function(e,t,n){"use strict";var r=e("../value/is"),a={object:!0,function:!0,undefined:!0};t.exports=function(e){return!!r(e)&&hasOwnProperty.call(a,typeof e)}},{"../value/is":566}],561:[function(e,t,n){"use strict";var r=e("../lib/resolve-exception"),a=e("./is");t.exports=function(e){return a(e)?e:r(e,"%v is not a plain function",arguments[1])}},{"../lib/resolve-exception":557,"./is":562}],562:[function(e,t,n){"use strict";var r=e("../function/is"),a=/^\s*class[\s{/}]/,o=Function.prototype.toString;t.exports=function(e){return!!r(e)&&!a.test(o.call(e))}},{"../function/is":556}],563:[function(e,t,n){"use strict";var r=e("../object/is");t.exports=function(e){if(!r(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(t){return!1}}},{"../object/is":560}],564:[function(e,t,n){"use strict";var r=e("../value/is"),a=e("../object/is"),o=Object.prototype.toString;t.exports=function(e){if(!r(e))return null;if(a(e)){var t=e.toString;if("function"!==typeof t)return null;if(t===o)return null}try{return""+e}catch(n){return null}}},{"../object/is":560,"../value/is":566}],565:[function(e,t,n){"use strict";var r=e("../lib/resolve-exception"),a=e("./is");t.exports=function(e){return a(e)?e:r(e,"Cannot use %v",arguments[1])}},{"../lib/resolve-exception":557,"./is":566}],566:[function(e,t,n){"use strict";var r=void 0;t.exports=function(e){return e!==r&&null!==e}},{}],567:[function(e,n,r){(function(t){"use strict";var n=e("bit-twiddle"),a=e("dup"),o=e("buffer").Buffer;t.__TYPEDARRAY_POOL||(t.__TYPEDARRAY_POOL={UINT8:a([32,0]),UINT16:a([32,0]),UINT32:a([32,0]),BIGUINT64:a([32,0]),INT8:a([32,0]),INT16:a([32,0]),INT32:a([32,0]),BIGINT64:a([32,0]),FLOAT:a([32,0]),DOUBLE:a([32,0]),DATA:a([32,0]),UINT8C:a([32,0]),BUFFER:a([32,0])});var i="undefined"!==typeof Uint8ClampedArray,l="undefined"!==typeof BigUint64Array,s="undefined"!==typeof BigInt64Array,u=t.__TYPEDARRAY_POOL;u.UINT8C||(u.UINT8C=a([32,0])),u.BIGUINT64||(u.BIGUINT64=a([32,0])),u.BIGINT64||(u.BIGINT64=a([32,0])),u.BUFFER||(u.BUFFER=a([32,0]));var c=u.DATA,f=u.BUFFER;function p(e){if(e){var t=e.length||e.byteLength,r=n.log2(t);c[r].push(e)}}function d(e){p(e.buffer)}function h(e){e=n.nextPow2(e);var t=n.log2(e),r=c[t];return r.length>0?r.pop():new ArrayBuffer(e)}function v(e){return new Uint8Array(h(e),0,e)}function m(e){return new Uint16Array(h(2*e),0,e)}function y(e){return new Uint32Array(h(4*e),0,e)}function g(e){return new Int8Array(h(e),0,e)}function b(e){return new Int16Array(h(2*e),0,e)}function x(e){return new Int32Array(h(4*e),0,e)}function _(e){return new Float32Array(h(4*e),0,e)}function w(e){return new Float64Array(h(8*e),0,e)}function k(e){return i?new Uint8ClampedArray(h(e),0,e):v(e)}function T(e){return l?new BigUint64Array(h(8*e),0,e):null}function E(e){return s?new BigInt64Array(h(8*e),0,e):null}function O(e){return new DataView(h(e),0,e)}function M(e){e=n.nextPow2(e);var t=n.log2(e),r=f[t];return r.length>0?r.pop():new o(e)}r.free=function(e){if(o.isBuffer(e))f[n.log2(e.length)].push(e);else{if("[object ArrayBuffer]"!==Object.prototype.toString.call(e)&&(e=e.buffer),!e)return;var t=e.length||e.byteLength,r=0|n.log2(t);c[r].push(e)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=d,r.freeArrayBuffer=p,r.freeBuffer=function(e){f[n.log2(e.length)].push(e)},r.malloc=function(e,t){if(void 0===t||"arraybuffer"===t)return h(e);switch(t){case"uint8":return v(e);case"uint16":return m(e);case"uint32":return y(e);case"int8":return g(e);case"int16":return b(e);case"int32":return x(e);case"float":case"float32":return _(e);case"double":case"float64":return w(e);case"uint8_clamped":return k(e);case"bigint64":return E(e);case"biguint64":return T(e);case"buffer":return M(e);case"data":case"dataview":return O(e);default:return null}return null},r.mallocArrayBuffer=h,r.mallocUint8=v,r.mallocUint16=m,r.mallocUint32=y,r.mallocInt8=g,r.mallocInt16=b,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=_,r.mallocFloat64=r.mallocDouble=w,r.mallocUint8Clamped=k,r.mallocBigUint64=T,r.mallocBigInt64=E,r.mallocDataView=O,r.mallocBuffer=M,r.clearCache=function(){for(var e=0;e<32;++e)u.UINT8[e].length=0,u.UINT16[e].length=0,u.UINT32[e].length=0,u.INT8[e].length=0,u.INT16[e].length=0,u.INT32[e].length=0,u.FLOAT[e].length=0,u.DOUBLE[e].length=0,u.BIGUINT64[e].length=0,u.BIGINT64[e].length=0,u.UINT8C[e].length=0,c[e].length=0,f[e].length=0}}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"bit-twiddle":97,buffer:111,dup:176}],568:[function(e,t,n){"use strict";function r(e){this.roots=new Array(e),this.ranks=new Array(e);for(var t=0;t<e;++t)this.roots[t]=t,this.ranks[t]=0}t.exports=r;var a=r.prototype;Object.defineProperty(a,"length",{get:function(){return this.roots.length}}),a.makeSet=function(){var e=this.roots.length;return this.roots.push(e),this.ranks.push(0),e},a.find=function(e){var t=e,n=this.roots;while(n[e]!==e)e=n[e];while(n[t]!==e){var r=n[t];n[t]=e,t=r}return e},a.link=function(e,t){var n=this.find(e),r=this.find(t);if(n!==r){var a=this.ranks,o=this.roots,i=a[n],l=a[r];i<l?o[n]=r:l<i?o[r]=n:(o[r]=n,++a[n])}}},{}],569:[function(e,t,n){"use strict";function r(e,t){for(var n=1,r=e.length,a=e[0],o=e[0],i=1;i<r;++i)if(o=a,a=e[i],t(a,o)){if(i===n){n++;continue}e[n++]=a}return e.length=n,e}function a(e){for(var t=1,n=e.length,r=e[0],a=e[0],o=1;o<n;++o,a=r)if(a=r,r=e[o],r!==a){if(o===t){t++;continue}e[t++]=r}return e.length=t,e}function o(e,t,n){return 0===e.length?e:t?(n||e.sort(t),r(e,t)):(n||e.sort(),a(e))}t.exports=o},{}],570:[function(e,t,n){var r=/[\'\"]/;t.exports=function(e){return e?(r.test(e.charAt(0))&&(e=e.substr(1)),r.test(e.charAt(e.length-1))&&(e=e.substr(0,e.length-1)),e):""}},{}],571:[function(e,t,n){"use strict";t.exports=function(e,t,n){Array.isArray(n)||(n=[].slice.call(arguments,2));for(var r=0,a=n.length;r<a;r++){var o=n[r];for(var i in o)if((void 0===t[i]||Array.isArray(t[i])||e[i]!==t[i])&&i in t){var l;if(!0===o[i])l=t[i];else{if(!1===o[i])continue;if("function"===typeof o[i]&&(l=o[i](t[i],e,t),void 0===l))continue}e[i]=l}}return e}},{}],572:[function(e,t,n){"use strict";t.exports=i;var r=e("./lib/vtext"),a=null,o=null;function i(e,t){return"object"===typeof t&&null!==t||(t={}),r(e,t.canvas||a,t.context||o,t)}"undefined"!==typeof document&&(a=document.createElement("canvas"),a.width=8192,a.height=1024,o=a.getContext("2d"))},{"./lib/vtext":573}],573:[function(e,t,n){t.exports=E,t.exports.processPixels=T;var r=e("surface-nets"),a=e("ndarray"),o=e("simplify-planar-graph"),i=e("clean-pslg"),l=e("cdt2d"),s=e("planar-graph-to-polyline"),u="b",c="b|",f="i",p="i|",d="sup",h="+",v="+1",m="sub",y="-",g="-1";function b(e,t,n,r){var a="<"+e+">",o="</"+e+">",i=a.length,l=o.length,s=t[0]===h||t[0]===y,u=0,c=-l;while(u>-1){if(u=n.indexOf(a,u),-1===u)break;if(c=n.indexOf(o,u+i),-1===c)break;if(c<=u)break;for(var f=u;f<c+l;++f)if(f<u+i||f>=c)r[f]=null,n=n.substr(0,f)+" "+n.substr(f+1);else if(null!==r[f]){var p=r[f].indexOf(t[0]);-1===p?r[f]+=t:s&&(r[f]=r[f].substr(0,p+1)+(1+parseInt(r[f][p+1]))+r[f].substr(p+2))}var d=u+i,v=n.substr(d,c-d),m=v.indexOf(a);u=-1!==m?m:c+l}return r}function x(e,t,n){for(var r=t.textAlign||"start",a=t.textBaseline||"alphabetic",o=[1<<30,1<<30],i=[0,0],l=e.length,s=0;s<l;++s)for(var u=e[s],c=0;c<2;++c)o[c]=0|Math.min(o[c],u[c]),i[c]=0|Math.max(i[c],u[c]);var f=0;switch(r){case"center":f=-.5*(o[0]+i[0]);break;case"right":case"end":f=-i[0];break;case"left":case"start":f=-o[0];break;default:throw new Error("vectorize-text: Unrecognized textAlign: '"+r+"'")}var p=0;switch(a){case"hanging":case"top":p=-o[1];break;case"middle":p=-.5*(o[1]+i[1]);break;case"alphabetic":case"ideographic":p=-3*n;break;case"bottom":p=-i[1];break;default:throw new Error("vectorize-text: Unrecoginized textBaseline: '"+a+"'")}var d=1/n;return"lineHeight"in t?d*=+t.lineHeight:"width"in t?d=t.width/(i[0]-o[0]):"height"in t&&(d=t.height/(i[1]-o[1])),e.map((function(e){return[d*(e[0]+f),d*(e[1]+p)]}))}function _(e,t,n,r,o,i){n=n.replace(/\n/g,""),n=!0===i.breaklines?n.replace(/\<br\>/g,"\n"):n.replace(/\<br\>/g," ");var l="",s=[];for(k=0;k<n.length;++k)s[k]=l;!0===i.bolds&&(s=b(u,c,n,s)),!0===i.italics&&(s=b(f,p,n,s)),!0===i.superscripts&&(s=b(d,v,n,s)),!0===i.subscripts&&(s=b(m,g,n,s));var x=[],_="";for(k=0;k<n.length;++k)null!==s[k]&&(_+=n[k],x.push(s[k]));var w,k,T,E,O,M=_.split("\n"),S=M.length,C=Math.round(o*r),A=r,P=2*r,L=0,D=S*C+P;e.height<D&&(e.height=D),t.fillStyle="#000",t.fillRect(0,0,e.width,e.height),t.fillStyle="#fff";var j=0,I="";function R(){if(""!==I){var e=t.measureText(I).width;t.fillText(I,A+T,P+E),T+=e}}function z(){return Math.round(O)+"px "}function N(e,n){var r=""+t.font;if(!0===i.subscripts){var a=e.indexOf(y),o=n.indexOf(y),l=a>-1?parseInt(e[1+a]):0,s=o>-1?parseInt(n[1+o]):0;l!==s&&(r=r.replace(z(),"?px "),O*=Math.pow(.75,s-l),r=r.replace("?px ",z())),E+=.25*C*(s-l)}if(!0===i.superscripts){var u=e.indexOf(h),f=n.indexOf(h),d=u>-1?parseInt(e[1+u]):0,v=f>-1?parseInt(n[1+f]):0;d!==v&&(r=r.replace(z(),"?px "),O*=Math.pow(.75,v-d),r=r.replace("?px ",z())),E-=.25*C*(v-d)}if(!0===i.bolds){var m=e.indexOf(c)>-1,g=n.indexOf(c)>-1;!m&&g&&(r=b?r.replace("italic ","italic bold "):"bold "+r),m&&!g&&(r=r.replace("bold ",""))}if(!0===i.italics){var b=e.indexOf(p)>-1,x=n.indexOf(p)>-1;!b&&x&&(r="italic "+r),b&&!x&&(r=r.replace("italic ",""))}t.font=r}for(w=0;w<S;++w){var F=M[w]+"\n";for(T=0,E=w*C,O=r,I="",k=0;k<F.length;++k){var B=k+j<x.length?x[k+j]:x[x.length-1];l===B?I+=F[k]:(R(),I=F[k],void 0!==B&&(N(l,B),l=B))}R(),j+=F.length;var V=0|Math.round(T+2*A);L<V&&(L=V)}var H=L,U=P+C*S,W=a(t.getImageData(0,0,H,U).data,[U,H,4]);return W.pick(-1,-1,0).transpose(1,0)}function w(e,t){var n=r(e,128);return t?o(n.cells,n.positions,.25):{edges:n.cells,positions:n.positions}}function k(e,t,n,r){var a=w(e,r),o=x(a.positions,t,n),u=a.edges,c="ccw"===t.orientation;if(i(o,u),t.polygons||t.polygon||t.polyline){for(var f=s(u,o),p=new Array(f.length),d=0;d<f.length;++d){for(var h=f[d],v=new Array(h.length),m=0;m<h.length;++m){for(var y=h[m],g=new Array(y.length),b=0;b<y.length;++b)g[b]=o[y[b]].slice();c&&g.reverse(),v[m]=g}p[d]=v}return p}return t.triangles||t.triangulate||t.triangle?{cells:l(o,u,{delaunay:!1,exterior:!1,interior:!0}),positions:o}:{edges:u,positions:o}}function T(e,t,n){try{return k(e,t,n,!0)}catch(r){}try{return k(e,t,n,!1)}catch(r){}return t.polygons||t.polyline||t.polygon?[]:t.triangles||t.triangulate||t.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}function E(e,t,n,r){var a=64,o=1.25,i={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};r&&(r.size&&r.size>0&&(a=r.size),r.lineSpacing&&r.lineSpacing>0&&(o=r.lineSpacing),r.styletags&&r.styletags.breaklines&&(i.breaklines=!!r.styletags.breaklines),r.styletags&&r.styletags.bolds&&(i.bolds=!!r.styletags.bolds),r.styletags&&r.styletags.italics&&(i.italics=!!r.styletags.italics),r.styletags&&r.styletags.subscripts&&(i.subscripts=!!r.styletags.subscripts),r.styletags&&r.styletags.superscripts&&(i.superscripts=!!r.styletags.superscripts)),n.font=[r.fontStyle,r.fontVariant,r.fontWeight,a+"px",r.font].filter((function(e){return e})).join(" "),n.textAlign="start",n.textBaseline="alphabetic",n.direction="ltr";var l=_(t,n,e,a,o,i);return T(l,r,a)}},{cdt2d:112,"clean-pslg":121,ndarray:469,"planar-graph-to-polyline":488,"simplify-planar-graph":534,"surface-nets":542}],574:[function(e,t,n){(function(){"use strict";if("undefined"===typeof ses||!ses.ok||ses.ok()){"undefined"!==typeof ses&&(ses.weakMapPermitHostObjects=m);var e=!1;if("function"===typeof WeakMap){var n=WeakMap;if("undefined"!==typeof navigator&&/Firefox/.test(navigator.userAgent));else{var r=new n,a=Object.freeze({});if(r.set(a,1),1===r.get(a))return void(t.exports=WeakMap);e=!0}}Object.prototype.hasOwnProperty;var o=Object.getOwnPropertyNames,i=Object.defineProperty,l=Object.isExtensible,s="weakmap:",u=s+"ident:"+Math.random()+"___";if("undefined"!==typeof crypto&&"function"===typeof crypto.getRandomValues&&"function"===typeof ArrayBuffer&&"function"===typeof Uint8Array){var c=new ArrayBuffer(25),f=new Uint8Array(c);crypto.getRandomValues(f),u=s+"rand:"+Array.prototype.map.call(f,(function(e){return(e%36).toString(36)})).join("")+"___"}if(i(Object,"getOwnPropertyNames",{value:function(e){return o(e).filter(y)}}),"getPropertyNames"in Object){var p=Object.getPropertyNames;i(Object,"getPropertyNames",{value:function(e){return p(e).filter(y)}})}(function(){var e=Object.freeze;i(Object,"freeze",{value:function(t){return g(t),e(t)}});var t=Object.seal;i(Object,"seal",{value:function(e){return g(e),t(e)}});var n=Object.preventExtensions;i(Object,"preventExtensions",{value:function(e){return g(e),n(e)}})})();var d=!1,h=0,v=function(){this instanceof v||x();var e=[],t=[],n=h++;function r(r,a){var o,i=g(r);return i?n in i?i[n]:a:(o=e.indexOf(r),o>=0?t[o]:a)}function a(t){var r=g(t);return r?n in r:e.indexOf(t)>=0}function o(r,a){var o,i=g(r);return i?i[n]=a:(o=e.indexOf(r),o>=0?t[o]=a:(o=e.length,t[o]=a,e[o]=r)),this}function i(r){var a,o,i=g(r);return i?n in i&&delete i[n]:(a=e.indexOf(r),!(a<0)&&(o=e.length-1,e[a]=void 0,t[a]=t[o],e[a]=e[o],e.length=o,t.length=o,!0))}return Object.create(v.prototype,{get___:{value:b(r)},has___:{value:b(a)},set___:{value:b(o)},delete___:{value:b(i)}})};v.prototype=Object.create(Object.prototype,{get:{value:function(e,t){return this.get___(e,t)},writable:!0,configurable:!0},has:{value:function(e){return this.has___(e)},writable:!0,configurable:!0},set:{value:function(e,t){return this.set___(e,t)},writable:!0,configurable:!0},delete:{value:function(e){return this.delete___(e)},writable:!0,configurable:!0}}),"function"===typeof n?function(){function r(){this instanceof v||x();var t,r=new n,a=void 0,o=!1;function i(e,t){return a?r.has(e)?r.get(e):a.get___(e,t):r.get(e,t)}function l(e){return r.has(e)||!!a&&a.has___(e)}function s(e){var t=!!r["delete"](e);return a&&a.delete___(e)||t}return t=e?function(e,t){return r.set(e,t),r.has(e)||(a||(a=new v),a.set(e,t)),this}:function(e,t){if(o)try{r.set(e,t)}catch(n){a||(a=new v),a.set___(e,t)}else r.set(e,t);return this},Object.create(v.prototype,{get___:{value:b(i)},has___:{value:b(l)},set___:{value:b(t)},delete___:{value:b(s)},permitHostObjects___:{value:b((function(e){if(e!==m)throw new Error("bogus call to permitHostObjects___");o=!0}))}})}e&&"undefined"!==typeof Proxy&&(Proxy=void 0),r.prototype=v.prototype,t.exports=r,Object.defineProperty(WeakMap.prototype,"constructor",{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():("undefined"!==typeof Proxy&&(Proxy=void 0),t.exports=v)}function m(e){e.permitHostObjects___&&e.permitHostObjects___(m)}function y(e){return!(e.substr(0,s.length)==s&&"___"===e.substr(e.length-3))}function g(e){if(e!==Object(e))throw new TypeError("Not an object: "+e);var t=e[u];if(t&&t.key===e)return t;if(l(e)){t={key:e};try{return i(e,u,{value:t,writable:!1,enumerable:!1,configurable:!1}),t}catch(n){return}}}function b(e){return e.prototype=null,Object.freeze(e)}function x(){d||"undefined"===typeof console||(d=!0,console.warn("WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future."))}})()},{}],575:[function(e,t,n){var r=e("./hidden-store.js");function a(){var e={};return function(t){if(("object"!==typeof t||null===t)&&"function"!==typeof t)throw new Error("Weakmap-shim: Key must be object");var n=t.valueOf(e);return n&&n.identity===e?n:r(t,e)}}t.exports=a},{"./hidden-store.js":576}],576:[function(e,t,n){function r(e,t){var n={identity:t},r=e.valueOf;return Object.defineProperty(e,"valueOf",{value:function(e){return e!==t?r.apply(this,arguments):n},writable:!0}),n}t.exports=r},{}],577:[function(e,t,n){var r=e("./create-store.js");function a(){var e=r();return{get:function(t,n){var r=e(t);return r.hasOwnProperty("value")?r.value:n},set:function(t,n){return e(t).value=n,this},has:function(t){return"value"in e(t)},delete:function(t){return delete e(t).value}}}t.exports=a},{"./create-store.js":575}],578:[function(e,t,n){var r=e("get-canvas-context");t.exports=function(e){return r("webgl",e)}},{"get-canvas-context":249}],579:[function(e,t,n){var r=e("../main"),a=e("object-assign"),o=r.instance();function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new r.baseCalendar,a(i.prototype,{name:"Chinese",jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{"":{name:"Chinese",epochs:["BEC","EC"],monthNumbers:function(e,t){if("string"===typeof e){var n=e.match(s);return n?n[0]:""}var r=this._validateYear(e),a=e.month(),o=""+this.toChineseMonth(r,a);return t&&o.length<2&&(o="0"+o),this.isIntercalaryMonth(r,a)&&(o+="i"),o},monthNames:function(e){if("string"===typeof e){var t=e.match(u);return t?t[0]:""}var n=this._validateYear(e),r=e.month(),a=this.toChineseMonth(n,r),o=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"][a-1];return this.isIntercalaryMonth(n,r)&&(o="闰"+o),o},monthNamesShort:function(e){if("string"===typeof e){var t=e.match(c);return t?t[0]:""}var n=this._validateYear(e),r=e.month(),a=this.toChineseMonth(n,r),o=["一","二","三","四","五","六","七","八","九","十","十一","十二"][a-1];return this.isIntercalaryMonth(n,r)&&(o="闰"+o),o},parseMonth:function(e,t){e=this._validateYear(e);var n,r=parseInt(t);if(isNaN(r))"闰"===t[0]&&(n=!0,t=t.substring(1)),"月"===t[t.length-1]&&(t=t.substring(0,t.length-1)),r=1+["一","二","三","四","五","六","七","八","九","十","十一","十二"].indexOf(t);else{var a=t[t.length-1];n="i"===a||"I"===a}var o=this.toMonthIndex(e,r,n);return o},dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},_validateYear:function(e,t){if(e.year&&(e=e.year()),"number"!==typeof e||e<1888||e>2111)throw t.replace(/\{0\}/,this.local.name);return e},toMonthIndex:function(e,t,n){var a,o=this.intercalaryMonth(e),i=n&&t!==o;if(i||t<1||t>12)throw r.local.invalidMonth.replace(/\{0\}/,this.local.name);return a=o?!n&&t<=o?t-1:t:t-1,a},toChineseMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var n,a=this.intercalaryMonth(e),o=a?12:11;if(t<0||t>o)throw r.local.invalidMonth.replace(/\{0\}/,this.local.name);return n=a?t<a?t+1:t:t+1,n},intercalaryMonth:function(e){e=this._validateYear(e);var t=f[e-f[0]],n=t>>13;return n},isIntercalaryMonth:function(e,t){e.year&&(e=e.year(),t=e.month());var n=this.intercalaryMonth(e);return!!n&&n===t},leapYear:function(e){return 0!==this.intercalaryMonth(e)},weekOfYear:function(e,t,n){var a,i=this._validateYear(e,r.local.invalidyear),l=p[i-p[0]],s=l>>9&4095,u=l>>5&15,c=31&l;a=o.newDate(s,u,c),a.add(4-(a.dayOfWeek()||7),"d");var f=this.toJD(e,t,n)-a.toJD();return 1+Math.floor(f/7)},monthsInYear:function(e){return this.leapYear(e)?13:12},daysInMonth:function(e,t){e.year&&(t=e.month(),e=e.year()),e=this._validateYear(e);var n=f[e-f[0]],a=n>>13,o=a?12:11;if(t>o)throw r.local.invalidMonth.replace(/\{0\}/,this.local.name);var i=n&1<<12-t?30:29;return i},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(e,t,n){var a=this._validate(e,l,n,r.local.invalidDate);e=this._validateYear(a.year()),t=a.month(),n=a.day();var i=this.isIntercalaryMonth(e,t),l=this.toChineseMonth(e,t),s=h(e,l,n,i);return o.toJD(s.year,s.month,s.day)},fromJD:function(e){var t=o.fromJD(e),n=d(t.year(),t.month(),t.day()),r=this.toMonthIndex(n.year,n.month,n.isIntercalary);return this.newDate(n.year,r,n.day)},fromString:function(e){var t=e.match(l),n=this._validateYear(+t[1]),r=+t[2],a=!!t[3],o=this.toMonthIndex(n,r,a),i=+t[4];return this.newDate(n,o,i)},add:function(e,t,n){var r=e.year(),a=e.month(),o=this.isIntercalaryMonth(r,a),l=this.toChineseMonth(r,a),s=Object.getPrototypeOf(i.prototype).add.call(this,e,t,n);if("y"===n){var u=s.year(),c=s.month(),f=this.isIntercalaryMonth(u,l),p=o&&f?this.toMonthIndex(u,l,!0):this.toMonthIndex(u,l,!1);p!==c&&s.month(p)}return s}});var l=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,s=/^\d?\d[iI]?/m,u=/^闰?十?[一二三四五六七八九]?月/m,c=/^闰?十?[一二三四五六七八九]?/m;r.calendars.chinese=i;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],p=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904];function d(e,t,n,r){var a,o;if("object"===typeof e)a=e,o=t||{};else{var i="number"===typeof e&&e>=1888&&e<=2111;if(!i)throw new Error("Solar year outside range 1888-2111");var l="number"===typeof t&&t>=1&&t<=12;if(!l)throw new Error("Solar month outside range 1 - 12");var s="number"===typeof n&&n>=1&&n<=31;if(!s)throw new Error("Solar day outside range 1 - 31");a={year:e,month:t,day:n},o=r||{}}var u=p[a.year-p[0]],c=a.year<<9|a.month<<5|a.day;o.year=c>=u?a.year:a.year-1,u=p[o.year-p[0]];var d,h=u>>9&4095,v=u>>5&15,m=31&u,y=new Date(h,v-1,m),g=new Date(a.year,a.month-1,a.day);d=Math.round((g-y)/864e5);var b,x=f[o.year-f[0]];for(b=0;b<13;b++){var _=x&1<<12-b?30:29;if(d<_)break;d-=_}var w=x>>13;return!w||b<w?(o.isIntercalary=!1,o.month=1+b):b===w?(o.isIntercalary=!0,o.month=b):(o.isIntercalary=!1,o.month=b),o.day=1+d,o}function h(e,t,n,r,a){var o,i,l;if("object"===typeof e)i=e,o=t||{};else{var s="number"===typeof e&&e>=1888&&e<=2111;if(!s)throw new Error("Lunar year outside range 1888-2111");var u="number"===typeof t&&t>=1&&t<=12;if(!u)throw new Error("Lunar month outside range 1 - 12");var c,d="number"===typeof n&&n>=1&&n<=30;if(!d)throw new Error("Lunar day outside range 1 - 30");"object"===typeof r?(c=!1,o=r):(c=!!r,o=a||{}),i={year:e,month:t,day:n,isIntercalary:c}}l=i.day-1;var h,v=f[i.year-f[0]],m=v>>13;h=m&&(i.month>m||i.isIntercalary)?i.month:i.month-1;for(var y=0;y<h;y++){var g=v&1<<12-y?30:29;l+=g}var b=p[i.year-p[0]],x=b>>9&4095,_=b>>5&15,w=31&b,k=new Date(x,_-1,w+l);return o.year=k.getFullYear(),o.month=1+k.getMonth(),o.day=k.getDate(),o}},{"../main":593,"object-assign":473}],580:[function(e,t,n){var r=e("../main"),a=e("object-assign");function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new r.baseCalendar,a(o.prototype,{name:"Coptic",jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Coptic",epochs:["BAM","AM"],monthNames:["Thout","Paopi","Hathor","Koiak","Tobi","Meshir","Paremhat","Paremoude","Pashons","Paoni","Epip","Mesori","Pi Kogi Enavot"],monthNamesShort:["Tho","Pao","Hath","Koi","Tob","Mesh","Pat","Pad","Pash","Pao","Epi","Meso","PiK"],dayNames:["Tkyriaka","Pesnau","Pshoment","Peftoou","Ptiou","Psoou","Psabbaton"],dayNamesShort:["Tky","Pes","Psh","Pef","Pti","Pso","Psa"],dayNamesMin:["Tk","Pes","Psh","Pef","Pt","Pso","Psa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);e=t.year()+(t.year()<0?1:0);return e%4===3||e%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,r.local.invalidYear||r.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var n=this._validate(e,t,this.minDay,r.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(13===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+30*(a.month()-1)+365*(e-1)+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,n=Math.floor((t-Math.floor((t+366)/1461))/365)+1;n<=0&&n--,t=Math.floor(e)+.5-this.newDate(n,1,1).toJD();var r=Math.floor(t/30)+1,a=t-30*(r-1)+1;return this.newDate(n,r,a)}}),r.calendars.coptic=o},{"../main":593,"object-assign":473}],581:[function(e,t,n){var r=e("../main"),a=e("object-assign");function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new r.baseCalendar,a(o.prototype,{name:"Discworld",jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Discworld",epochs:["BUC","UC"],monthNames:["Ick","Offle","February","March","April","May","June","Grune","August","Spune","Sektober","Ember","December"],monthNamesShort:["Ick","Off","Feb","Mar","Apr","May","Jun","Gru","Aug","Spu","Sek","Emb","Dec"],dayNames:["Sunday","Octeday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Oct","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Oc","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:2,isRTL:!1}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,r.local.invalidYear),!1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,r.local.invalidYear),13},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,r.local.invalidYear),400},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/8)+1},daysInMonth:function(e,t){var n=this._validate(e,t,this.minDay,r.local.invalidMonth);return this.daysPerMonth[n.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);return(a.day()+1)%8},weekDay:function(e,t,n){var r=this.dayOfWeek(e,t,n);return r>=2&&r<=6},extraInfo:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);return{century:i[Math.floor((a.year()-1)/100)+1]||""}},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);return e=a.year()+(a.year()<0?1:0),t=a.month(),n=a.day(),n+(t>1?16:0)+(t>2?32*(t-2):0)+400*(e-1)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e+.5)-Math.floor(this.jdEpoch)-1;var t=Math.floor(e/400)+1;e-=400*(t-1),e+=e>15?16:0;var n=Math.floor(e/32)+1,r=e-32*(n-1)+1;return this.newDate(t<=0?t-1:t,n,r)}});var i={20:"Fruitbat",21:"Anchovy"};r.calendars.discworld=o},{"../main":593,"object-assign":473}],582:[function(e,t,n){var r=e("../main"),a=e("object-assign");function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new r.baseCalendar,a(o.prototype,{name:"Ethiopian",jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Ethiopian",epochs:["BEE","EE"],monthNames:["Meskerem","Tikemet","Hidar","Tahesas","Tir","Yekatit","Megabit","Miazia","Genbot","Sene","Hamle","Nehase","Pagume"],monthNamesShort:["Mes","Tik","Hid","Tah","Tir","Yek","Meg","Mia","Gen","Sen","Ham","Neh","Pag"],dayNames:["Ehud","Segno","Maksegno","Irob","Hamus","Arb","Kidame"],dayNamesShort:["Ehu","Seg","Mak","Iro","Ham","Arb","Kid"],dayNamesMin:["Eh","Se","Ma","Ir","Ha","Ar","Ki"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);e=t.year()+(t.year()<0?1:0);return e%4===3||e%4===-1},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,r.local.invalidYear||r.regionalOptions[""].invalidYear),13},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var n=this._validate(e,t,this.minDay,r.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(13===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);return e=a.year(),e<0&&e++,a.day()+30*(a.month()-1)+365*(e-1)+Math.floor(e/4)+this.jdEpoch-1},fromJD:function(e){var t=Math.floor(e)+.5-this.jdEpoch,n=Math.floor((t-Math.floor((t+366)/1461))/365)+1;n<=0&&n--,t=Math.floor(e)+.5-this.newDate(n,1,1).toJD();var r=Math.floor(t/30)+1,a=t-30*(r-1)+1;return this.newDate(n,r,a)}}),r.calendars.ethiopian=o},{"../main":593,"object-assign":473}],583:[function(e,t,n){var r=e("../main"),a=e("object-assign");function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function i(e,t){return e-t*Math.floor(e/t)}o.prototype=new r.baseCalendar,a(o.prototype,{name:"Hebrew",jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{"":{name:"Hebrew",epochs:["BAM","AM"],monthNames:["Nisan","Iyar","Sivan","Tammuz","Av","Elul","Tishrei","Cheshvan","Kislev","Tevet","Shevat","Adar","Adar II"],monthNamesShort:["Nis","Iya","Siv","Tam","Av","Elu","Tis","Che","Kis","Tev","She","Ada","Ad2"],dayNames:["Yom Rishon","Yom Sheni","Yom Shlishi","Yom Revi'i","Yom Chamishi","Yom Shishi","Yom Shabbat"],dayNamesShort:["Ris","She","Shl","Rev","Cha","Shi","Sha"],dayNamesMin:["Ri","She","Shl","Re","Ch","Shi","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);return this._leapYear(t.year())},_leapYear:function(e){return e=e<0?e+1:e,i(7*e+1,19)<7},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,r.local.invalidYear),this._leapYear(e.year?e.year():e)?13:12},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);return e=t.year(),this.toJD(-1===e?1:e+1,7,1)-this.toJD(e,7,1)},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,r.local.invalidMonth),12===t&&this.leapYear(e)||8===t&&5===i(this.daysInYear(e),10)?30:9===t&&3===i(this.daysInYear(e),10)?29:this.daysPerMonth[t-1]},weekDay:function(e,t,n){return 6!==this.dayOfWeek(e,t,n)},extraInfo:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);return{yearType:(this.leapYear(a)?"embolismic":"common")+" "+["deficient","regular","complete"][this.daysInYear(a)%10-3]}},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);e=a.year(),t=a.month(),n=a.day();var o=e<=0?e+1:e,i=this.jdEpoch+this._delay1(o)+this._delay2(o)+n+1;if(t<7){for(var l=7;l<=this.monthsInYear(e);l++)i+=this.daysInMonth(e,l);for(l=1;l<t;l++)i+=this.daysInMonth(e,l)}else for(l=7;l<t;l++)i+=this.daysInMonth(e,l);return i},_delay1:function(e){var t=Math.floor((235*e-234)/19),n=12084+13753*t,r=29*t+Math.floor(n/25920);return i(3*(r+1),7)<3&&r++,r},_delay2:function(e){var t=this._delay1(e-1),n=this._delay1(e),r=this._delay1(e+1);return r-n===356?2:n-t===382?1:0},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor(98496*(e-this.jdEpoch)/35975351)-1;while(e>=this.toJD(-1===t?1:t+1,7,1))t++;var n=e<this.toJD(t,1,1)?7:1;while(e>this.toJD(t,n,this.daysInMonth(t,n)))n++;var r=e-this.toJD(t,n,1)+1;return this.newDate(t,n,r)}}),r.calendars.hebrew=o},{"../main":593,"object-assign":473}],584:[function(e,t,n){var r=e("../main"),a=e("object-assign");function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new r.baseCalendar,a(o.prototype,{name:"Islamic",jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Islamic",epochs:["BH","AH"],monthNames:["Muharram","Safar","Rabi' al-awwal","Rabi' al-thani","Jumada al-awwal","Jumada al-thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-ahad","Yawm al-ithnayn","Yawm ath-thulaathaa'","Yawm al-arbi'aa'","Yawm al-khamīs","Yawm al-jum'a","Yawm as-sabt"],dayNamesShort:["Aha","Ith","Thu","Arb","Kha","Jum","Sab"],dayNamesMin:["Ah","It","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);return(11*t.year()+14)%30<11},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(e){return this.leapYear(e)?355:354},daysInMonth:function(e,t){var n=this._validate(e,t,this.minDay,r.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(12===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(e,t,n){return 5!==this.dayOfWeek(e,t,n)},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);return e=a.year(),t=a.month(),n=a.day(),e=e<=0?e+1:e,n+Math.ceil(29.5*(t-1))+354*(e-1)+Math.floor((3+11*e)/30)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=Math.floor((30*(e-this.jdEpoch)+10646)/10631);t=t<=0?t-1:t;var n=Math.min(12,Math.ceil((e-29-this.toJD(t,1,1))/29.5)+1),r=e-this.toJD(t,n,1)+1;return this.newDate(t,n,r)}}),r.calendars.islamic=o},{"../main":593,"object-assign":473}],585:[function(e,t,n){var r=e("../main"),a=e("object-assign");function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new r.baseCalendar,a(o.prototype,{name:"Julian",jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Julian",epochs:["BC","AD"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);e=t.year()<0?t.year()+1:t.year();return e%4===0},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(4-(r.dayOfWeek()||7),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var n=this._validate(e,t,this.minDay,r.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(2===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);return e=a.year(),t=a.month(),n=a.day(),e<0&&e++,t<=2&&(e--,t+=12),Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+n-1524.5},fromJD:function(e){var t=Math.floor(e+.5),n=t+1524,r=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*r),o=Math.floor((n-a)/30.6001),i=o-Math.floor(o<14?1:13),l=r-Math.floor(i>2?4716:4715),s=n-a-Math.floor(30.6001*o);return l<=0&&l--,this.newDate(l,i,s)}}),r.calendars.julian=o},{"../main":593,"object-assign":473}],586:[function(e,t,n){var r=e("../main"),a=e("object-assign");function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function i(e,t){return e-t*Math.floor(e/t)}function l(e,t){return i(e-1,t)+1}o.prototype=new r.baseCalendar,a(o.prototype,{name:"Mayan",jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{"":{name:"Mayan",epochs:["",""],monthNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],monthNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17"],dayNames:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesShort:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],dayNamesMin:["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19"],digits:null,dateFormat:"YYYY.m.d",firstDay:0,isRTL:!1,haabMonths:["Pop","Uo","Zip","Zotz","Tzec","Xul","Yaxkin","Mol","Chen","Yax","Zac","Ceh","Mac","Kankin","Muan","Pax","Kayab","Cumku","Uayeb"],tzolkinMonths:["Imix","Ik","Akbal","Kan","Chicchan","Cimi","Manik","Lamat","Muluc","Oc","Chuen","Eb","Ben","Ix","Men","Cib","Caban","Etznab","Cauac","Ahau"]}},leapYear:function(e){return this._validate(e,this.minMonth,this.minDay,r.local.invalidYear),!1},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);e=t.year();var n=Math.floor(e/400);e%=400,e+=e<0?400:0;var a=Math.floor(e/20);return n+"."+a+"."+e%20},forYear:function(e){if(e=e.split("."),e.length<3)throw"Invalid Mayan year";for(var t=0,n=0;n<e.length;n++){var r=parseInt(e[n],10);if(Math.abs(r)>19||n>0&&r<0)throw"Invalid Mayan year";t=20*t+r}return t},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,r.local.invalidYear),18},weekOfYear:function(e,t,n){return this._validate(e,t,n,r.local.invalidDate),0},daysInYear:function(e){return this._validate(e,this.minMonth,this.minDay,r.local.invalidYear),360},daysInMonth:function(e,t){return this._validate(e,t,this.minDay,r.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);return a.day()},weekDay:function(e,t,n){return this._validate(e,t,n,r.local.invalidDate),!0},extraInfo:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate),o=a.toJD(),i=this._toHaab(o),l=this._toTzolkin(o);return{haabMonthName:this.local.haabMonths[i[0]-1],haabMonth:i[0],haabDay:i[1],tzolkinDayName:this.local.tzolkinMonths[l[0]-1],tzolkinDay:l[0],tzolkinTrecena:l[1]}},_toHaab:function(e){e-=this.jdEpoch;var t=i(e+8+340,365);return[Math.floor(t/20)+1,i(t,20)]},_toTzolkin:function(e){return e-=this.jdEpoch,[l(e+20,20),l(e+4,13)]},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);return a.day()+20*a.month()+360*a.year()+this.jdEpoch},fromJD:function(e){e=Math.floor(e)+.5-this.jdEpoch;var t=Math.floor(e/360);e%=360,e+=e<0?360:0;var n=Math.floor(e/20),r=e%20;return this.newDate(t,n,r)}}),r.calendars.mayan=o},{"../main":593,"object-assign":473}],587:[function(e,t,n){var r=e("../main"),a=e("object-assign");function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new r.baseCalendar;var i=r.instance("gregorian");a(o.prototype,{name:"Nanakshahi",jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Nanakshahi",epochs:["BN","AN"],monthNames:["Chet","Vaisakh","Jeth","Harh","Sawan","Bhadon","Assu","Katak","Maghar","Poh","Magh","Phagun"],monthNamesShort:["Che","Vai","Jet","Har","Saw","Bha","Ass","Kat","Mgr","Poh","Mgh","Pha"],dayNames:["Somvaar","Mangalvar","Budhvaar","Veervaar","Shukarvaar","Sanicharvaar","Etvaar"],dayNamesShort:["Som","Mangal","Budh","Veer","Shukar","Sanichar","Et"],dayNamesMin:["So","Ma","Bu","Ve","Sh","Sa","Et"],digits:null,dateFormat:"dd-mm-yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear||r.regionalOptions[""].invalidYear);return i.leapYear(t.year()+(t.year()<1?1:0)+1469)},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(1-(r.dayOfWeek()||7),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var n=this._validate(e,t,this.minDay,r.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(12===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidMonth);e=a.year();e<0&&e++;for(var o=a.day(),l=1;l<a.month();l++)o+=this.daysPerMonth[l-1];return o+i.toJD(e+1468,3,13)},fromJD:function(e){e=Math.floor(e+.5);var t=Math.floor((e-(this.jdEpoch-1))/366);while(e>=this.toJD(t+1,1,1))t++;var n=e-Math.floor(this.toJD(t,1,1)+.5)+1,r=1;while(n>this.daysInMonth(t,r))n-=this.daysInMonth(t,r),r++;return this.newDate(t,r,n)}}),r.calendars.nanakshahi=o},{"../main":593,"object-assign":473}],588:[function(e,t,n){var r=e("../main"),a=e("object-assign");function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new r.baseCalendar,a(o.prototype,{name:"Nepali",jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{"":{name:"Nepali",epochs:["BBS","ABS"],monthNames:["Baisakh","Jestha","Ashadh","Shrawan","Bhadra","Ashwin","Kartik","Mangsir","Paush","Mangh","Falgun","Chaitra"],monthNamesShort:["Bai","Je","As","Shra","Bha","Ash","Kar","Mang","Pau","Ma","Fal","Chai"],dayNames:["Aaitabaar","Sombaar","Manglbaar","Budhabaar","Bihibaar","Shukrabaar","Shanibaar"],dayNamesShort:["Aaita","Som","Mangl","Budha","Bihi","Shukra","Shani"],dayNamesMin:["Aai","So","Man","Bu","Bi","Shu","Sha"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:1,isRTL:!1}},leapYear:function(e){return this.daysInYear(e)!==this.daysPerYear},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);if(e=t.year(),"undefined"===typeof this.NEPALI_CALENDAR_DATA[e])return this.daysPerYear;for(var n=0,a=this.minMonth;a<=12;a++)n+=this.NEPALI_CALENDAR_DATA[e][a];return n},daysInMonth:function(e,t){return e.year&&(t=e.month(),e=e.year()),this._validate(e,t,this.minDay,r.local.invalidMonth),"undefined"===typeof this.NEPALI_CALENDAR_DATA[e]?this.daysPerMonth[t-1]:this.NEPALI_CALENDAR_DATA[e][t]},weekDay:function(e,t,n){return 6!==this.dayOfWeek(e,t,n)},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);e=a.year(),t=a.month(),n=a.day();var o=r.instance(),i=0,l=t,s=e;this._createMissingCalendarData(e);var u=e-(l>9||9===l&&n>=this.NEPALI_CALENDAR_DATA[s][0]?56:57);9!==t&&(i=n,l--);while(9!==l)l<=0&&(l=12,s--),i+=this.NEPALI_CALENDAR_DATA[s][l],l--;return 9===t?(i+=n-this.NEPALI_CALENDAR_DATA[s][0],i<0&&(i+=o.daysInYear(u))):i+=this.NEPALI_CALENDAR_DATA[s][9]-this.NEPALI_CALENDAR_DATA[s][0],o.newDate(u,1,1).add(i,"d").toJD()},fromJD:function(e){var t=r.instance(),n=t.fromJD(e),a=n.year(),o=n.dayOfYear(),i=a+56;this._createMissingCalendarData(i);var l=9,s=this.NEPALI_CALENDAR_DATA[i][0],u=this.NEPALI_CALENDAR_DATA[i][l]-s+1;while(o>u)l++,l>12&&(l=1,i++),u+=this.NEPALI_CALENDAR_DATA[i][l];var c=this.NEPALI_CALENDAR_DATA[i][l]-(u-o);return this.newDate(i,l,c)},_createMissingCalendarData:function(e){var t=this.daysPerMonth.slice(0);t.unshift(17);for(var n=e-1;n<e+2;n++)"undefined"===typeof this.NEPALI_CALENDAR_DATA[n]&&(this.NEPALI_CALENDAR_DATA[n]=t)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),r.calendars.nepali=o},{"../main":593,"object-assign":473}],589:[function(e,t,n){var r=e("../main"),a=e("object-assign");function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}function i(e,t){return e-t*Math.floor(e/t)}o.prototype=new r.baseCalendar,a(o.prototype,{name:"Persian",jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Persian",epochs:["BP","AP"],monthNames:["Farvardin","Ordibehesht","Khordad","Tir","Mordad","Shahrivar","Mehr","Aban","Azar","Day","Bahman","Esfand"],monthNamesShort:["Far","Ord","Kho","Tir","Mor","Sha","Meh","Aba","Aza","Day","Bah","Esf"],dayNames:["Yekshambe","Doshambe","Seshambe","Chæharshambe","Panjshambe","Jom'e","Shambe"],dayNamesShort:["Yek","Do","Se","Chæ","Panj","Jom","Sha"],dayNamesMin:["Ye","Do","Se","Ch","Pa","Jo","Sh"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);return 682*((t.year()-(t.year()>0?474:473))%2820+474+38)%2816<682},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-(r.dayOfWeek()+1)%7,"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var n=this._validate(e,t,this.minDay,r.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(12===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(e,t,n){return 5!==this.dayOfWeek(e,t,n)},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);e=a.year(),t=a.month(),n=a.day();var o=e-(e>=0?474:473),l=474+i(o,2820);return n+(t<=7?31*(t-1):30*(t-1)+6)+Math.floor((682*l-110)/2816)+365*(l-1)+1029983*Math.floor(o/2820)+this.jdEpoch-1},fromJD:function(e){e=Math.floor(e)+.5;var t=e-this.toJD(475,1,1),n=Math.floor(t/1029983),r=i(t,1029983),a=2820;if(1029982!==r){var o=Math.floor(r/366),l=i(r,366);a=Math.floor((2134*o+2816*l+2815)/1028522)+o+1}var s=a+2820*n+474;s=s<=0?s-1:s;var u=e-this.toJD(s,1,1)+1,c=u<=186?Math.ceil(u/31):Math.ceil((u-6)/30),f=e-this.toJD(s,c,1)+1;return this.newDate(s,c,f)}}),r.calendars.persian=o,r.calendars.jalali=o},{"../main":593,"object-assign":473}],590:[function(e,t,n){var r=e("../main"),a=e("object-assign"),o=r.instance();function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new r.baseCalendar,a(i.prototype,{name:"Taiwan",jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Taiwan",epochs:["BROC","ROC"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:1,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);e=this._t2gYear(t.year());return o.leapYear(e)},weekOfYear:function(e,t,n){var a=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);e=this._t2gYear(a.year());return o.weekOfYear(e,a.month(),a.day())},daysInMonth:function(e,t){var n=this._validate(e,t,this.minDay,r.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(2===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);e=this._t2gYear(a.year());return o.toJD(e,a.month(),a.day())},fromJD:function(e){var t=o.fromJD(e),n=this._g2tYear(t.year());return this.newDate(n,t.month(),t.day())},_t2gYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)},_g2tYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)}}),r.calendars.taiwan=i},{"../main":593,"object-assign":473}],591:[function(e,t,n){var r=e("../main"),a=e("object-assign"),o=r.instance();function i(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}i.prototype=new r.baseCalendar,a(i.prototype,{name:"Thai",jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Thai",epochs:["BBE","BE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"dd/mm/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);e=this._t2gYear(t.year());return o.leapYear(e)},weekOfYear:function(e,t,n){var a=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);e=this._t2gYear(a.year());return o.weekOfYear(e,a.month(),a.day())},daysInMonth:function(e,t){var n=this._validate(e,t,this.minDay,r.local.invalidMonth);return this.daysPerMonth[n.month()-1]+(2===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate);e=this._t2gYear(a.year());return o.toJD(e,a.month(),a.day())},fromJD:function(e){var t=o.fromJD(e),n=this._g2tYear(t.year());return this.newDate(n,t.month(),t.day())},_t2gYear:function(e){return e-this.yearsOffset-(e>=1&&e<=this.yearsOffset?1:0)},_g2tYear:function(e){return e+this.yearsOffset+(e>=-this.yearsOffset&&e<=-1?1:0)}}),r.calendars.thai=i},{"../main":593,"object-assign":473}],592:[function(e,t,n){var r=e("../main"),a=e("object-assign");function o(e){this.local=this.regionalOptions[e||""]||this.regionalOptions[""]}o.prototype=new r.baseCalendar,a(o.prototype,{name:"UmmAlQura",hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Umm al-Qura",epochs:["BH","AH"],monthNames:["Al-Muharram","Safar","Rabi' al-awwal","Rabi' Al-Thani","Jumada Al-Awwal","Jumada Al-Thani","Rajab","Sha'aban","Ramadan","Shawwal","Dhu al-Qi'dah","Dhu al-Hijjah"],monthNamesShort:["Muh","Saf","Rab1","Rab2","Jum1","Jum2","Raj","Sha'","Ram","Shaw","DhuQ","DhuH"],dayNames:["Yawm al-Ahad","Yawm al-Ithnain","Yawm al-Thalāthā","Yawm al-Arbaā","Yawm al-Khamīs","Yawm al-Juma","Yawm al-Sabt"],dayNamesMin:["Ah","Ith","Th","Ar","Kh","Ju","Sa"],digits:null,dateFormat:"yyyy/mm/dd",firstDay:6,isRTL:!0}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,r.local.invalidYear);return 355===this.daysInYear(t.year())},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(-r.dayOfWeek(),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInYear:function(e){for(var t=0,n=1;n<=12;n++)t+=this.daysInMonth(e,n);return t},daysInMonth:function(e,t){for(var n=this._validate(e,t,this.minDay,r.local.invalidMonth),a=n.toJD()-24e5+.5,o=0,l=0;l<i.length;l++){if(i[l]>a)return i[o]-i[o-1];o++}return 30},weekDay:function(e,t,n){return 5!==this.dayOfWeek(e,t,n)},toJD:function(e,t,n){var a=this._validate(e,t,n,r.local.invalidDate),o=12*(a.year()-1)+a.month()-15292,l=a.day()+i[o-1]-1;return l+24e5-.5},fromJD:function(e){for(var t=e-24e5+.5,n=0,r=0;r<i.length;r++){if(i[r]>t)break;n++}var a=n+15292,o=Math.floor((a-1)/12),l=o+1,s=a-12*o,u=t-i[n-1]+1;return this.newDate(l,s,u)},isValid:function(e,t,n){var a=r.baseCalendar.prototype.isValid.apply(this,arguments);return a&&(e=null!=e.year?e.year:e,a=e>=1276&&e<=1500),a},_validate:function(e,t,n,a){var o=r.baseCalendar.prototype._validate.apply(this,arguments);if(o.year<1276||o.year>1500)throw a.replace(/\{0\}/,this.local.name);return o}}),r.calendars.ummalqura=o;var i=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{"../main":593,"object-assign":473}],593:[function(e,t,n){var r=e("object-assign");function a(){this.regionalOptions=[],this.regionalOptions[""]={invalidCalendar:"Calendar {0} not found",invalidDate:"Invalid {0} date",invalidMonth:"Invalid {0} month",invalidYear:"Invalid {0} year",differentCalendars:"Cannot mix {0} and {1} dates"},this.local=this.regionalOptions[""],this.calendars={},this._localCals={}}function o(e,t,n,r){if(this._calendar=e,this._year=t,this._month=n,this._day=r,0===this._calendar._validateLevel&&!this._calendar.isValid(this._year,this._month,this._day))throw(u.local.invalidDate||u.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function i(e,t){return e=""+e,"000000".substring(0,t-e.length)+e}function l(){this.shortYearCutoff="+10"}function s(e){this.local=this.regionalOptions[e]||this.regionalOptions[""]}r(a.prototype,{instance:function(e,t){e=(e||"gregorian").toLowerCase(),t=t||"";var n=this._localCals[e+"-"+t];if(!n&&this.calendars[e]&&(n=new this.calendars[e](t),this._localCals[e+"-"+t]=n),!n)throw(this.local.invalidCalendar||this.regionalOptions[""].invalidCalendar).replace(/\{0\}/,e);return n},newDate:function(e,t,n,r,a){return r=(null!=e&&e.year?e.calendar():"string"===typeof r?this.instance(r,a):r)||this.instance(),r.newDate(e,t,n)},substituteDigits:function(e){return function(t){return(t+"").replace(/[0-9]/g,(function(t){return e[t]}))}},substituteChineseDigits:function(e,t){return function(n){var r="",a=0;while(n>0){var o=n%10;r=(0===o?"":e[o]+t[a])+r,a++,n=Math.floor(n/10)}return 0===r.indexOf(e[1]+t[1])&&(r=r.substr(1)),r||e[0]}}}),r(o.prototype,{newDate:function(e,t,n){return this._calendar.newDate(null==e?this:e,t,n)},year:function(e){return 0===arguments.length?this._year:this.set(e,"y")},month:function(e){return 0===arguments.length?this._month:this.set(e,"m")},day:function(e){return 0===arguments.length?this._day:this.set(e,"d")},date:function(e,t,n){if(!this._calendar.isValid(e,t,n))throw(u.local.invalidDate||u.regionalOptions[""].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=e,this._month=t,this._day=n,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(e,t){return this._calendar.add(this,e,t)},set:function(e,t){return this._calendar.set(this,e,t)},compareTo:function(e){if(this._calendar.name!==e._calendar.name)throw(u.local.differentCalendars||u.regionalOptions[""].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,e._calendar.local.name);var t=this._year!==e._year?this._year-e._year:this._month!==e._month?this.monthOfYear()-e.monthOfYear():this._day-e._day;return 0===t?0:t<0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(e){return this._calendar.fromJD(e)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(e){return this._calendar.fromJSDate(e)},toString:function(){return(this.year()<0?"-":"")+i(Math.abs(this.year()),4)+"-"+i(this.month(),2)+"-"+i(this.day(),2)}}),r(l.prototype,{_validateLevel:0,newDate:function(e,t,n){return null==e?this.today():(e.year&&(this._validate(e,t,n,u.local.invalidDate||u.regionalOptions[""].invalidDate),n=e.day(),t=e.month(),e=e.year()),new o(this,e,t,n))},today:function(){return this.fromJSDate(new Date)},epoch:function(e){var t=this._validate(e,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear);return t.year()<0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear);return(t.year()<0?"-":"")+i(Math.abs(t.year()),4)},monthsInYear:function(e){return this._validate(e,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear),12},monthOfYear:function(e,t){var n=this._validate(e,t,this.minDay,u.local.invalidMonth||u.regionalOptions[""].invalidMonth);return(n.month()+this.monthsInYear(n)-this.firstMonth)%this.monthsInYear(n)+this.minMonth},fromMonthOfYear:function(e,t){var n=(t+this.firstMonth-2*this.minMonth)%this.monthsInYear(e)+this.minMonth;return this._validate(e,n,this.minDay,u.local.invalidMonth||u.regionalOptions[""].invalidMonth),n},daysInYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear);return this.leapYear(t)?366:365},dayOfYear:function(e,t,n){var r=this._validate(e,t,n,u.local.invalidDate||u.regionalOptions[""].invalidDate);return r.toJD()-this.newDate(r.year(),this.fromMonthOfYear(r.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(e,t,n){var r=this._validate(e,t,n,u.local.invalidDate||u.regionalOptions[""].invalidDate);return(Math.floor(this.toJD(r))+2)%this.daysInWeek()},extraInfo:function(e,t,n){return this._validate(e,t,n,u.local.invalidDate||u.regionalOptions[""].invalidDate),{}},add:function(e,t,n){return this._validate(e,this.minMonth,this.minDay,u.local.invalidDate||u.regionalOptions[""].invalidDate),this._correctAdd(e,this._add(e,t,n),t,n)},_add:function(e,t,n){if(this._validateLevel++,"d"===n||"w"===n){var r=e.toJD()+t*("w"===n?this.daysInWeek():1),a=e.calendar().fromJD(r);return this._validateLevel--,[a.year(),a.month(),a.day()]}try{var o=e.year()+("y"===n?t:0),i=e.monthOfYear()+("m"===n?t:0),l=(a=e.day(),function(e){while(i<e.minMonth)o--,i+=e.monthsInYear(o);var t=e.monthsInYear(o);while(i>t-1+e.minMonth)o++,i-=t,t=e.monthsInYear(o)});"y"===n?(e.month()!==this.fromMonthOfYear(o,i)&&(i=this.newDate(o,e.month(),this.minDay).monthOfYear()),i=Math.min(i,this.monthsInYear(o)),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i)))):"m"===n&&(l(this),a=Math.min(a,this.daysInMonth(o,this.fromMonthOfYear(o,i))));var s=[o,this.fromMonthOfYear(o,i),a];return this._validateLevel--,s}catch(u){throw this._validateLevel--,u}},_correctAdd:function(e,t,n,r){if(!this.hasYearZero&&("y"===r||"m"===r)&&(0===t[0]||e.year()>0!==t[0]>0)){var a={y:[1,1,"y"],m:[1,this.monthsInYear(-1),"m"],w:[this.daysInWeek(),this.daysInYear(-1),"d"],d:[1,this.daysInYear(-1),"d"]}[r],o=n<0?-1:1;t=this._add(e,n*a[0]+o*a[1],a[2])}return e.date(t[0],t[1],t[2])},set:function(e,t,n){this._validate(e,this.minMonth,this.minDay,u.local.invalidDate||u.regionalOptions[""].invalidDate);var r="y"===n?t:e.year(),a="m"===n?t:e.month(),o="d"===n?t:e.day();return"y"!==n&&"m"!==n||(o=Math.min(o,this.daysInMonth(r,a))),e.date(r,a,o)},isValid:function(e,t,n){this._validateLevel++;var r=this.hasYearZero||0!==e;if(r){var a=this.newDate(e,t,this.minDay);r=t>=this.minMonth&&t-this.minMonth<this.monthsInYear(a)&&n>=this.minDay&&n-this.minDay<this.daysInMonth(a)}return this._validateLevel--,r},toJSDate:function(e,t,n){var r=this._validate(e,t,n,u.local.invalidDate||u.regionalOptions[""].invalidDate);return u.instance().fromJD(this.toJD(r)).toJSDate()},fromJSDate:function(e){return this.fromJD(u.instance().fromJSDate(e).toJD())},_validate:function(e,t,n,r){if(e.year){if(0===this._validateLevel&&this.name!==e.calendar().name)throw(u.local.differentCalendars||u.regionalOptions[""].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,e.calendar().local.name);return e}try{if(this._validateLevel++,1===this._validateLevel&&!this.isValid(e,t,n))throw r.replace(/\{0\}/,this.local.name);var a=this.newDate(e,t,n);return this._validateLevel--,a}catch(o){throw this._validateLevel--,o}}}),s.prototype=new l,r(s.prototype,{name:"Gregorian",jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{"":{name:"Gregorian",epochs:["BCE","CE"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],digits:null,dateFormat:"mm/dd/yyyy",firstDay:0,isRTL:!1}},leapYear:function(e){var t=this._validate(e,this.minMonth,this.minDay,u.local.invalidYear||u.regionalOptions[""].invalidYear);e=t.year()+(t.year()<0?1:0);return e%4===0&&(e%100!==0||e%400===0)},weekOfYear:function(e,t,n){var r=this.newDate(e,t,n);return r.add(4-(r.dayOfWeek()||7),"d"),Math.floor((r.dayOfYear()-1)/7)+1},daysInMonth:function(e,t){var n=this._validate(e,t,this.minDay,u.local.invalidMonth||u.regionalOptions[""].invalidMonth);return this.daysPerMonth[n.month()-1]+(2===n.month()&&this.leapYear(n.year())?1:0)},weekDay:function(e,t,n){return(this.dayOfWeek(e,t,n)||7)<6},toJD:function(e,t,n){var r=this._validate(e,t,n,u.local.invalidDate||u.regionalOptions[""].invalidDate);e=r.year(),t=r.month(),n=r.day(),e<0&&e++,t<3&&(t+=12,e--);var a=Math.floor(e/100),o=2-a+Math.floor(a/4);return Math.floor(365.25*(e+4716))+Math.floor(30.6001*(t+1))+n+o-1524.5},fromJD:function(e){var t=Math.floor(e+.5),n=Math.floor((t-1867216.25)/36524.25);n=t+1+n-Math.floor(n/4);var r=n+1524,a=Math.floor((r-122.1)/365.25),o=Math.floor(365.25*a),i=Math.floor((r-o)/30.6001),l=r-o-Math.floor(30.6001*i),s=i-(i>13.5?13:1),u=a-(s>2.5?4716:4715);return u<=0&&u--,this.newDate(u,s,l)},toJSDate:function(e,t,n){var r=this._validate(e,t,n,u.local.invalidDate||u.regionalOptions[""].invalidDate),a=new Date(r.year(),r.month()-1,r.day());return a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0),a.setHours(a.getHours()>12?a.getHours()+2:0),a},fromJSDate:function(e){return this.newDate(e.getFullYear(),e.getMonth()+1,e.getDate())}});var u=t.exports=new a;u.cdate=o,u.baseCalendar=l,u.calendars.gregorian=s},{"object-assign":473}],594:[function(e,t,n){var r=e("object-assign"),a=e("./main");r(a.regionalOptions[""],{invalidArguments:"Invalid arguments",invalidFormat:"Cannot format a date from another calendar",missingNumberAt:"Missing number at position {0}",unknownNameAt:"Unknown name at position {0}",unexpectedLiteralAt:"Unexpected literal at position {0}",unexpectedText:"Additional text found at end"}),a.local=a.regionalOptions[""],r(a.cdate.prototype,{formatDate:function(e,t){return"string"!==typeof e&&(t=e,e=""),this._calendar.formatDate(e||"",this,t)}}),r(a.baseCalendar.prototype,{UNIX_EPOCH:a.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:a.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:"yyyy-mm-dd",COOKIE:"D, dd M yyyy",FULL:"DD, MM d, yyyy",ISO_8601:"yyyy-mm-dd",JULIAN:"J",RFC_822:"D, d M yy",RFC_850:"DD, dd-M-yy",RFC_1036:"D, d M yy",RFC_1123:"D, d M yyyy",RFC_2822:"D, d M yyyy",RSS:"D, d M yy",TICKS:"!",TIMESTAMP:"@",W3C:"yyyy-mm-dd",formatDate:function(e,t,n){if("string"!==typeof e&&(n=t,t=e,e=""),!t)return"";if(t.calendar()!==this)throw a.local.invalidFormat||a.regionalOptions[""].invalidFormat;e=e||this.local.dateFormat,n=n||{};for(var r=n.dayNamesShort||this.local.dayNamesShort,o=n.dayNames||this.local.dayNames,i=n.monthNumbers||this.local.monthNumbers,l=n.monthNamesShort||this.local.monthNamesShort,s=n.monthNames||this.local.monthNames,u=(n.calculateWeek||this.local.calculateWeek,function(t,n){var r=1;while(b+r<e.length&&e.charAt(b+r)===t)r++;return b+=r-1,Math.floor(r/(n||1))>1}),c=function(e,t,n,r){var a=""+t;if(u(e,r))while(a.length<n)a="0"+a;return a},f=function(e,t,n,r){return u(e)?r[t]:n[t]},p=this,d=function(e){return"function"===typeof i?i.call(p,e,u("m")):m(c("m",e.month(),2))},h=function(e,t){return t?"function"===typeof s?s.call(p,e):s[e.month()-p.minMonth]:"function"===typeof l?l.call(p,e):l[e.month()-p.minMonth]},v=this.local.digits,m=function(e){return n.localNumbers&&v?v(e):e},y="",g=!1,b=0;b<e.length;b++)if(g)"'"!==e.charAt(b)||u("'")?y+=e.charAt(b):g=!1;else switch(e.charAt(b)){case"d":y+=m(c("d",t.day(),2));break;case"D":y+=f("D",t.dayOfWeek(),r,o);break;case"o":y+=c("o",t.dayOfYear(),3);break;case"w":y+=c("w",t.weekOfYear(),2);break;case"m":y+=d(t);break;case"M":y+=h(t,u("M"));break;case"y":y+=u("y",2)?t.year():(t.year()%100<10?"0":"")+t.year()%100;break;case"Y":u("Y",2),y+=t.formatYear();break;case"J":y+=t.toJD();break;case"@":y+=(t.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case"!":y+=(t.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case"'":u("'")?y+="'":g=!0;break;default:y+=e.charAt(b)}return y},parseDate:function(e,t,n){if(null==t)throw a.local.invalidArguments||a.regionalOptions[""].invalidArguments;if(t="object"===typeof t?t.toString():t+"",""===t)return null;e=e||this.local.dateFormat,n=n||{};var r=n.shortYearCutoff||this.shortYearCutoff;r="string"!==typeof r?r:this.today().year()%100+parseInt(r,10);for(var o=n.dayNamesShort||this.local.dayNamesShort,i=n.dayNames||this.local.dayNames,l=n.parseMonth||this.local.parseMonth,s=n.monthNumbers||this.local.monthNumbers,u=n.monthNamesShort||this.local.monthNamesShort,c=n.monthNames||this.local.monthNames,f=-1,p=-1,d=-1,h=-1,v=-1,m=!1,y=!1,g=function(t,n){var r=1;while(O+r<e.length&&e.charAt(O+r)===t)r++;return O+=r-1,Math.floor(r/(n||1))>1},b=function(e,n){var r=g(e,n),o=[2,3,r?4:2,r?4:2,10,11,20]["oyYJ@!".indexOf(e)+1],i=new RegExp("^-?\\d{1,"+o+"}"),l=t.substring(E).match(i);if(!l)throw(a.local.missingNumberAt||a.regionalOptions[""].missingNumberAt).replace(/\{0\}/,E);return E+=l[0].length,parseInt(l[0],10)},x=this,_=function(){if("function"===typeof s){g("m");var e=s.call(x,t.substring(E));return E+=e.length,e}return b("m")},w=function(e,n,r,o){for(var i=g(e,o)?r:n,l=0;l<i.length;l++)if(t.substr(E,i[l].length).toLowerCase()===i[l].toLowerCase())return E+=i[l].length,l+x.minMonth;throw(a.local.unknownNameAt||a.regionalOptions[""].unknownNameAt).replace(/\{0\}/,E)},k=function(){if("function"===typeof c){var e=g("M")?c.call(x,t.substring(E)):u.call(x,t.substring(E));return E+=e.length,e}return w("M",u,c)},T=function(){if(t.charAt(E)!==e.charAt(O))throw(a.local.unexpectedLiteralAt||a.regionalOptions[""].unexpectedLiteralAt).replace(/\{0\}/,E);E++},E=0,O=0;O<e.length;O++)if(y)"'"!==e.charAt(O)||g("'")?T():y=!1;else switch(e.charAt(O)){case"d":h=b("d");break;case"D":w("D",o,i);break;case"o":v=b("o");break;case"w":b("w");break;case"m":d=_();break;case"M":d=k();break;case"y":var M=O;m=!g("y",2),O=M,p=b("y",2);break;case"Y":p=b("Y",2);break;case"J":f=b("J")+.5,"."===t.charAt(E)&&(E++,b("J"));break;case"@":f=b("@")/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case"!":f=b("!")/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case"*":E=t.length;break;case"'":g("'")?T():y=!0;break;default:T()}if(E<t.length)throw a.local.unexpectedText||a.regionalOptions[""].unexpectedText;if(-1===p?p=this.today().year():p<100&&m&&(p+=-1===r?1900:this.today().year()-this.today().year()%100-(p<=r?0:100)),"string"===typeof d&&(d=l.call(this,p,d)),v>-1){d=1,h=v;for(var S=this.daysInMonth(p,d);h>S;S=this.daysInMonth(p,d))d++,h-=S}return f>-1?this.fromJD(f):this.newDate(p,d,h)},determineDate:function(e,t,n,r,a){n&&"object"!==typeof n&&(a=r,r=n,n=null),"string"!==typeof r&&(a=r,r="");var o=this,i=function(e){try{return o.parseDate(r,e,a)}catch(s){}e=e.toLowerCase();var t=(e.match(/^c/)&&n?n.newDate():null)||o.today(),i=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,l=i.exec(e);while(l)t.add(parseInt(l[1],10),l[2]||"d"),l=i.exec(e);return t};return t=t?t.newDate():null,e=null==e?t:"string"===typeof e?i(e):"number"===typeof e?isNaN(e)||e===1/0||e===-1/0?t:o.today().add(e,"d"):o.newDate(e),e}})},{"./main":593,"object-assign":473}],595:[function(e,t,n){t.exports=e("cwise-compiler")({args:["array",{offset:[1],array:0},"scalar","scalar","index"],pre:{body:"{}",args:[],thisVars:[],localVars:[]},post:{body:"{}",args:[],thisVars:[],localVars:[]},body:{body:"{\n var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\n var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\n if((_inline_1_da >= 0) !== (_inline_1_db >= 0)) {\n _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\n }\n }",args:[{name:"_inline_1_arg0_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg1_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg2_",lvalue:!1,rvalue:!0,count:1},{name:"_inline_1_arg3_",lvalue:!1,rvalue:!0,count:2},{name:"_inline_1_arg4_",lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:["_inline_1_da","_inline_1_db"]},funcName:"zeroCrossings"})},{"cwise-compiler":151}],596:[function(e,t,n){"use strict";t.exports=a;var r=e("./lib/zc-core");function a(e,t){var n=[];return t=+t||0,r(e.hi(e.shape[0]-1),n,t),n}},{"./lib/zc-core":595}],597:[function(e,t,n){"use strict";t.exports=[{path:"",backoff:0},{path:"M-2.4,-3V3L0.6,0Z",backoff:.6},{path:"M-3.7,-2.5V2.5L1.3,0Z",backoff:1.3},{path:"M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z",backoff:1.55},{path:"M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z",backoff:1.6},{path:"M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z",backoff:2},{path:"M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z",backoff:0,noRotate:!0},{path:"M2,2V-2H-2V2Z",backoff:0,noRotate:!0}]},{}],598:[function(e,t,n){"use strict";var r=e("./arrow_paths"),a=e("../../plots/font_attributes"),o=e("../../plots/cartesian/constants"),i=e("../../plot_api/plot_template").templatedArray;e("../../constants/axis_placeable_objects");t.exports=i("annotation",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},text:{valType:"string",editType:"calc+arraydraw"},textangle:{valType:"angle",dflt:0,editType:"calc+arraydraw"},font:a({editType:"calc+arraydraw",colorEditType:"arraydraw"}),width:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},height:{valType:"number",min:1,dflt:null,editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},align:{valType:"enumerated",values:["left","center","right"],dflt:"center",editType:"arraydraw"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"arraydraw"},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},bordercolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},borderpad:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},borderwidth:{valType:"number",min:0,dflt:1,editType:"calc+arraydraw"},showarrow:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},arrowcolor:{valType:"color",editType:"arraydraw"},arrowhead:{valType:"integer",min:0,max:r.length,dflt:1,editType:"arraydraw"},startarrowhead:{valType:"integer",min:0,max:r.length,dflt:1,editType:"arraydraw"},arrowside:{valType:"flaglist",flags:["end","start"],extras:["none"],dflt:"end",editType:"arraydraw"},arrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},startarrowsize:{valType:"number",min:.3,dflt:1,editType:"calc+arraydraw"},arrowwidth:{valType:"number",min:.1,editType:"calc+arraydraw"},standoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},startstandoff:{valType:"number",min:0,dflt:0,editType:"calc+arraydraw"},ax:{valType:"any",editType:"calc+arraydraw"},ay:{valType:"any",editType:"calc+arraydraw"},axref:{valType:"enumerated",dflt:"pixel",values:["pixel",o.idRegex.x.toString()],editType:"calc"},ayref:{valType:"enumerated",dflt:"pixel",values:["pixel",o.idRegex.y.toString()],editType:"calc"},xref:{valType:"enumerated",values:["paper",o.idRegex.x.toString()],editType:"calc"},x:{valType:"any",editType:"calc+arraydraw"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"auto",editType:"calc+arraydraw"},xshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},yref:{valType:"enumerated",values:["paper",o.idRegex.y.toString()],editType:"calc"},y:{valType:"any",editType:"calc+arraydraw"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"auto",editType:"calc+arraydraw"},yshift:{valType:"number",dflt:0,editType:"calc+arraydraw"},clicktoshow:{valType:"enumerated",values:[!1,"onoff","onout"],dflt:!1,editType:"arraydraw"},xclick:{valType:"any",editType:"arraydraw"},yclick:{valType:"any",editType:"arraydraw"},hovertext:{valType:"string",editType:"arraydraw"},hoverlabel:{bgcolor:{valType:"color",editType:"arraydraw"},bordercolor:{valType:"color",editType:"arraydraw"},font:a({editType:"arraydraw"}),editType:"arraydraw"},captureevents:{valType:"boolean",editType:"arraydraw"},editType:"calc",_deprecated:{ref:{valType:"string",editType:"calc"}}})},{"../../constants/axis_placeable_objects":718,"../../plot_api/plot_template":788,"../../plots/cartesian/constants":805,"../../plots/font_attributes":827,"./arrow_paths":597}],599:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("./draw").draw;function i(e){var t=e._fullLayout;r.filterVisible(t.annotations).forEach((function(t){var n=a.getFromId(e,t.xref),r=a.getFromId(e,t.yref),o=a.getRefType(t.xref),i=a.getRefType(t.yref);t._extremes={},"range"===o&&l(t,n),"range"===i&&l(t,r)}))}function l(e,t){var n,r=t._id,o=r.charAt(0),i=e[o],l=e["a"+o],s=e[o+"ref"],u=e["a"+o+"ref"],c=e["_"+o+"padplus"],f=e["_"+o+"padminus"],p={x:1,y:-1}[o]*e[o+"shift"],d=3*e.arrowsize*e.arrowwidth||0,h=d+p,v=d-p,m=3*e.startarrowsize*e.arrowwidth||0,y=m+p,g=m-p;if(u===s){var b=a.findExtremes(t,[t.r2c(i)],{ppadplus:h,ppadminus:v}),x=a.findExtremes(t,[t.r2c(l)],{ppadplus:Math.max(c,y),ppadminus:Math.max(f,g)});n={min:[b.min[0],x.min[0]],max:[b.max[0],x.max[0]]}}else y=l?y+l:y,g=l?g-l:g,n=a.findExtremes(t,[t.r2c(i)],{ppadplus:Math.max(c,h,y),ppadminus:Math.max(f,v,g)});e._extremes[r]=n}t.exports=function(e){var t=e._fullLayout,n=r.filterVisible(t.annotations);if(n.length&&e._fullData.length)return r.syncOrAsync([o,i],e)}},{"../../lib":750,"../../plots/cartesian/axes":799,"./draw":604}],600:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry"),o=e("../../plot_api/plot_template").arrayEditor;function i(e,t){var n=s(e,t);return n.on.length>0||n.explicitOff.length>0}function l(e,t){var n,i,l=s(e,t),u=l.on,c=l.off.concat(l.explicitOff),f={},p=e._fullLayout.annotations;if(u.length||c.length){for(n=0;n<u.length;n++)i=o(e.layout,"annotations",p[u[n]]),i.modifyItem("visible",!0),r.extendFlat(f,i.getUpdateObj());for(n=0;n<c.length;n++)i=o(e.layout,"annotations",p[c[n]]),i.modifyItem("visible",!1),r.extendFlat(f,i.getUpdateObj());return a.call("update",e,{},f)}}function s(e,t){var n,r,a,o,i,l,s,c,f=e._fullLayout.annotations,p=[],d=[],h=[],v=(t||[]).length;for(n=0;n<f.length;n++)if(a=f[n],o=a.clicktoshow,o){for(r=0;r<v;r++)if(i=t[r],l=i.xaxis,s=i.yaxis,l._id===a.xref&&s._id===a.yref&&l.d2r(i.x)===u(a._xclick,l)&&s.d2r(i.y)===u(a._yclick,s)){c=a.visible?"onout"===o?d:h:p,c.push(n);break}r===v&&a.visible&&"onout"===o&&d.push(n)}return{on:p,off:d,explicitOff:h}}function u(e,t){return"log"===t.type?t.l2r(e):t.d2r(e)}t.exports={hasClickToShow:i,onClick:l}},{"../../lib":750,"../../plot_api/plot_template":788,"../../registry":882}],601:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../color");t.exports=function(e,t,n,o){o("opacity");var i=o("bgcolor"),l=o("bordercolor"),s=a.opacity(l);o("borderpad");var u=o("borderwidth"),c=o("showarrow");o("text",c?" ":n._dfltTitle.annotation),o("textangle"),r.coerceFont(o,"font",n.font),o("width"),o("align");var f=o("height");if(f&&o("valign"),c){var p,d,h=o("arrowside");-1!==h.indexOf("end")&&(p=o("arrowhead"),d=o("arrowsize")),-1!==h.indexOf("start")&&(o("startarrowhead",p),o("startarrowsize",d)),o("arrowcolor",s?t.bordercolor:a.defaultLine),o("arrowwidth",2*(s&&u||1)),o("standoff"),o("startstandoff")}var v=o("hovertext"),m=n.hoverlabel||{};if(v){var y=o("hoverlabel.bgcolor",m.bgcolor||(a.opacity(i)?a.rgb(i):a.defaultLine)),g=o("hoverlabel.bordercolor",m.bordercolor||a.contrast(y));r.coerceFont(o,"hoverlabel.font",{family:m.font.family,size:m.font.size,color:m.font.color||g})}o("captureevents",!!v)}},{"../../lib":750,"../color":615}],602:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib/to_log_range");t.exports=function(e,t,n,o){t=t||{};var i="log"===n&&"linear"===t.type,l="linear"===n&&"log"===t.type;if(i||l)for(var s,u,c=e._fullLayout.annotations,f=t._id.charAt(0),p=0;p<c.length;p++)s=c[p],u="annotations["+p+"].",s[f+"ref"]===t._id&&d(f),s["a"+f+"ref"]===t._id&&d("a"+f);function d(e){var n=s[e],l=null;l=i?a(n,t.range):Math.pow(10,n),r(l)||(l=null),o(u+e,l)}}},{"../../lib/to_log_range":776,"fast-isnumeric":241}],603:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("../../plots/array_container_defaults"),i=e("./common_defaults"),l=e("./attributes");function s(e,t,n){function o(n,a){return r.coerce(e,t,l,n,a)}var s=o("visible"),u=o("clicktoshow");if(s||u){i(e,t,n,o);for(var c=t.showarrow,f=["x","y"],p=[-10,-30],d={_fullLayout:n},h=0;h<2;h++){var v=f[h],m=a.coerceRef(e,t,d,v,"","paper");if("paper"!==m){var y=a.getFromId(d,m);y._annIndices.push(t._index)}if(a.coercePosition(t,d,o,m,v,.5),c){var g="a"+v,b=a.coerceRef(e,t,d,g,"pixel",["pixel","paper"]);"pixel"!==b&&b!==m&&(b=t[g]="pixel");var x="pixel"===b?p[h]:.4;a.coercePosition(t,d,o,b,g,x)}o(v+"anchor"),o(v+"shift")}if(r.noneOrAll(e,t,["x","y"]),c&&r.noneOrAll(e,t,["ax","ay"]),u){var _=o("xclick"),w=o("yclick");t._xclick=void 0===_?t.x:a.cleanPosition(_,d,t.xref),t._yclick=void 0===w?t.y:a.cleanPosition(w,d,t.yref)}}}t.exports=function(e,t){o(e,t,{name:"annotations",handleItemDefaults:s})}},{"../../lib":750,"../../plots/array_container_defaults":794,"../../plots/cartesian/axes":799,"./attributes":598,"./common_defaults":601}],604:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),o=e("../../plots/plots"),i=e("../../lib"),l=e("../../plots/cartesian/axes"),s=e("../color"),u=e("../drawing"),c=e("../fx"),f=e("../../lib/svg_text_utils"),p=e("../../lib/setcursor"),d=e("../dragelement"),h=e("../../plot_api/plot_template").arrayEditor,v=e("./draw_arrow_head");function m(e){var t=e._fullLayout;t._infolayer.selectAll(".annotation").remove();for(var n=0;n<t.annotations.length;n++)t.annotations[n].visible&&y(e,n);return o.previousPromises(e)}function y(e,t){var n=e._fullLayout,r=n.annotations[t]||{},a=l.getFromId(e,r.xref),o=l.getFromId(e,r.yref);a&&a.setScale(),o&&o.setScale(),b(e,r,t,!1,a,o)}function g(e,t,n,r,a){var o=a[n],i=a[n+"ref"],s=-1!==n.indexOf("y"),u="domain"===l.getRefType(i),c=s?r.h:r.w;return e?u?o+(s?-t:t)/e._length:e.p2r(e.r2p(o)+t):o+(s?-t:t)/c}function b(e,t,n,o,m,y){var b,x,_=e._fullLayout,w=e._fullLayout._size,k=e._context.edits;o?(b="annotation-"+o,x=o+".annotations"):(b="annotation",x="annotations");var T=h(e.layout,x,t),E=T.modifyBase,O=T.modifyItem,M=T.getUpdateObj;_._infolayer.selectAll("."+b+'[data-index="'+n+'"]').remove();var S="clip"+_._uid+"_ann"+n;if(t._input&&!1!==t.visible){var C={x:{},y:{}},A=+t.textangle||0,P=_._infolayer.append("g").classed(b,!0).attr("data-index",String(n)).style("opacity",t.opacity),L=P.append("g").classed("annotation-text-g",!0),D=k[t.showarrow?"annotationTail":"annotationPosition"],j=t.captureevents||k.annotationText||D,I=L.append("g").style("pointer-events",j?"all":null).call(p,"pointer").on("click",(function(){e._dragging=!1,e.emit("plotly_clickannotation",q(r.event))}));t.hovertext&&I.on("mouseover",(function(){var n=t.hoverlabel,r=n.font,a=this.getBoundingClientRect(),o=e.getBoundingClientRect();c.loneHover({x0:a.left-o.left,x1:a.right-o.left,y:(a.top+a.bottom)/2-o.top,text:t.hovertext,color:n.bgcolor,borderColor:n.bordercolor,fontFamily:r.family,fontSize:r.size,fontColor:r.color},{container:_._hoverlayer.node(),outerContainer:_._paper.node(),gd:e})})).on("mouseout",(function(){c.loneUnhover(_._hoverlayer.node())}));var R=t.borderwidth,z=t.borderpad,N=R+z,F=I.append("rect").attr("class","bg").style("stroke-width",R+"px").call(s.stroke,t.bordercolor).call(s.fill,t.bgcolor),B=t.width||t.height,V=_._topclips.selectAll("#"+S).data(B?[0]:[]);V.enter().append("clipPath").classed("annclip",!0).attr("id",S).append("rect"),V.exit().remove();var H=t.font,U=_._meta?i.templateString(t.text,_._meta):t.text,W=I.append("text").classed("annotation-text",!0).text(U);k.annotationText?W.call(f.makeEditable,{delegate:I,gd:e}).call($).on("edit",(function(n){t.text=n,this.call($),O("text",n),m&&m.autorange&&E(m._name+".autorange",!0),y&&y.autorange&&E(y._name+".autorange",!0),a.call("_guiRelayout",e,M())})):W.call($)}else r.selectAll("#"+S).remove();function q(e){var r={index:n,annotation:t._input,fullAnnotation:t,event:e};return o&&(r.subplotId=o),r}function $(n){return n.call(u.font,H).attr({"text-anchor":{left:"start",right:"end"}[t.align]||"middle"}),f.convertToTspans(n,e,G),n}function G(){var n=W.selectAll("a");if(1===n.size()&&n.text()===W.text()){var r=I.insert("a",":first-child").attr({"xlink:xlink:href":n.attr("xlink:href"),"xlink:xlink:show":n.attr("xlink:show")}).style({cursor:"pointer"});r.node().appendChild(F.node())}var c=I.select(".annotation-text-math-group"),h=!c.empty(),b=u.bBox((h?c:W).node()),x=b.width,T=b.height,j=t.width||x,z=t.height||T,H=Math.round(j+2*N),U=Math.round(z+2*N);function $(e,t){return"auto"===t&&(t=e<1/3?"left":e>2/3?"right":"center"),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[t]}for(var G=!1,Y=["x","y"],K=0;K<Y.length;K++){var X,Z,J,Q,ee,te=Y[K],ne=t[te+"ref"]||te,re=t["a"+te+"ref"],ae={x:m,y:y}[te],oe=(A+("x"===te?0:-90))*Math.PI/180,ie=H*Math.cos(oe),le=U*Math.sin(oe),se=Math.abs(ie)+Math.abs(le),ue=t[te+"anchor"],ce=t[te+"shift"]*("x"===te?1:-1),fe=C[te],pe=l.getRefType(ne);if(ae&&"domain"!==pe){var de=ae.r2fraction(t[te]);(de<0||de>1)&&(re===ne?(de=ae.r2fraction(t["a"+te]),(de<0||de>1)&&(G=!0)):G=!0),X=ae._offset+ae.r2p(t[te]),Q=.5}else{var he="domain"===pe;"x"===te?(J=t[te],X=he?ae._offset+ae._length*J:X=w.l+w.w*J):(J=1-t[te],X=he?ae._offset+ae._length*J:X=w.t+w.h*J),Q=t.showarrow?.5:J}if(t.showarrow){fe.head=X;var ve=t["a"+te];if(ee=ie*$(.5,t.xanchor)-le*$(.5,t.yanchor),re===ne){var me=l.getRefType(re);"domain"===me?("y"===te&&(ve=1-ve),fe.tail=ae._offset+ae._length*ve):"paper"===me?"y"===te?(ve=1-ve,fe.tail=w.t+w.h*ve):fe.tail=w.l+w.w*ve:fe.tail=ae._offset+ae.r2p(ve),Z=ee}else fe.tail=X+ve,Z=ee+ve;fe.text=fe.tail+ee;var ye=_["x"===te?"width":"height"];if("paper"===ne&&(fe.head=i.constrain(fe.head,1,ye-1)),"pixel"===re){var ge=-Math.max(fe.tail-3,fe.text),be=Math.min(fe.tail+3,fe.text)-ye;ge>0?(fe.tail+=ge,fe.text+=ge):be>0&&(fe.tail-=be,fe.text-=be)}fe.tail+=ce,fe.head+=ce}else ee=se*$(Q,ue),Z=ee,fe.text=X+ee;fe.text+=ce,ee+=ce,Z+=ce,t["_"+te+"padplus"]=se/2+Z,t["_"+te+"padminus"]=se/2-Z,t["_"+te+"size"]=se,t["_"+te+"shift"]=ee}if(G)I.remove();else{var xe=0,_e=0;if("left"!==t.align&&(xe=(j-x)*("center"===t.align?.5:1)),"top"!==t.valign&&(_e=(z-T)*("middle"===t.valign?.5:1)),h)c.select("svg").attr({x:N+xe-1,y:N+_e}).call(u.setClipUrl,B?S:null,e);else{var we=N+_e-b.top,ke=N+xe-b.left;W.call(f.positionText,ke,we).call(u.setClipUrl,B?S:null,e)}V.select("rect").call(u.setRect,N,N,j,z),F.call(u.setRect,R/2,R/2,H-R,U-R),I.call(u.setTranslate,Math.round(C.x.text-H/2),Math.round(C.y.text-U/2)),L.attr({transform:"rotate("+A+","+C.x.text+","+C.y.text+")"});var Te,Ee=function(n,r){P.selectAll(".annotation-arrow-g").remove();var l=C.x.head,c=C.y.head,f=C.x.tail+n,p=C.y.tail+r,h=C.x.text+n,b=C.y.text+r,x=i.rotationXYMatrix(A,h,b),_=i.apply2DTransform(x),T=i.apply2DTransform2(x),S=+F.attr("width"),D=+F.attr("height"),j=h-.5*S,R=j+S,z=b-.5*D,N=z+D,B=[[j,z,j,N],[j,N,R,N],[R,N,R,z],[R,z,j,z]].map(T);if(!B.reduce((function(e,t){return e^!!i.segmentsIntersect(l,c,l+1e6,c+1e6,t[0],t[1],t[2],t[3])}),!1)){B.forEach((function(e){var t=i.segmentsIntersect(f,p,l,c,e[0],e[1],e[2],e[3]);t&&(f=t.x,p=t.y)}));var V=t.arrowwidth,H=t.arrowcolor,U=t.arrowside,W=P.append("g").style({opacity:s.opacity(H)}).classed("annotation-arrow-g",!0),q=W.append("path").attr("d","M"+f+","+p+"L"+l+","+c).style("stroke-width",V+"px").call(s.stroke,s.rgb(H));if(v(q,U,t),k.annotationPosition&&q.node().parentNode&&!o){var $=l,G=c;if(t.standoff){var Y=Math.sqrt(Math.pow(l-f,2)+Math.pow(c-p,2));$+=t.standoff*(f-l)/Y,G+=t.standoff*(p-c)/Y}var K,X,Z=W.append("path").classed("annotation-arrow",!0).classed("anndrag",!0).classed("cursor-move",!0).attr({d:"M3,3H-3V-3H3ZM0,0L"+(f-$)+","+(p-G),transform:"translate("+$+","+G+")"}).style("stroke-width",V+6+"px").call(s.stroke,"rgba(0,0,0,0)").call(s.fill,"rgba(0,0,0,0)");d.init({element:Z.node(),gd:e,prepFn:function(){var e=u.getTranslate(I);K=e.x,X=e.y,m&&m.autorange&&E(m._name+".autorange",!0),y&&y.autorange&&E(y._name+".autorange",!0)},moveFn:function(e,n){var r=_(K,X),a=r[0]+e,o=r[1]+n;I.call(u.setTranslate,a,o),O("x",g(m,e,"x",w,t)),O("y",g(y,n,"y",w,t)),t.axref===t.xref&&O("ax",g(m,e,"ax",w,t)),t.ayref===t.yref&&O("ay",g(y,n,"ay",w,t)),W.attr("transform","translate("+e+","+n+")"),L.attr({transform:"rotate("+A+","+a+","+o+")"})},doneFn:function(){a.call("_guiRelayout",e,M());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}};if(t.showarrow&&Ee(0,0),D)d.init({element:I.node(),gd:e,prepFn:function(){Te=L.attr("transform")},moveFn:function(e,n){var r="pointer";if(t.showarrow)t.axref===t.xref?O("ax",g(m,e,"ax",w,t)):O("ax",t.ax+e),t.ayref===t.yref?O("ay",g(y,n,"ay",w.w,t)):O("ay",t.ay+n),Ee(e,n);else{if(o)return;var a,i;if(m)a=g(m,e,"x",w,t);else{var l=t._xsize/w.w,s=t.x+(t._xshift-t.xshift)/w.w-l/2;a=d.align(s+e/w.w,l,0,1,t.xanchor)}if(y)i=g(y,n,"y",w,t);else{var u=t._ysize/w.h,c=t.y-(t._yshift+t.yshift)/w.h-u/2;i=d.align(c-n/w.h,u,0,1,t.yanchor)}O("x",a),O("y",i),m&&y||(r=d.getCursor(m?.5:a,y?.5:i,t.xanchor,t.yanchor))}L.attr({transform:"translate("+e+","+n+")"+Te}),p(I,r)},clickFn:function(n,r){t.captureevents&&e.emit("plotly_clickannotation",q(r))},doneFn:function(){p(I),a.call("_guiRelayout",e,M());var t=document.querySelector(".js-notes-box-panel");t&&t.redraw(t.selectedObj)}})}}}t.exports={draw:m,drawOne:y,drawRaw:b}},{"../../lib":750,"../../lib/setcursor":770,"../../lib/svg_text_utils":774,"../../plot_api/plot_template":788,"../../plots/cartesian/axes":799,"../../plots/plots":862,"../../registry":882,"../color":615,"../dragelement":634,"../drawing":637,"../fx":655,"./draw_arrow_head":605,d3:169}],605:[function(e,t,n){"use strict";var r=e("d3"),a=e("../color"),o=e("./arrow_paths");t.exports=function(e,t,n){var i,l,s,u,c=e.node(),f=o[n.arrowhead||0],p=o[n.startarrowhead||0],d=(n.arrowwidth||1)*(n.arrowsize||1),h=(n.arrowwidth||1)*(n.startarrowsize||1),v=t.indexOf("start")>=0,m=t.indexOf("end")>=0,y=f.backoff*d+n.standoff,g=p.backoff*h+n.startstandoff;if("line"===c.nodeName){i={x:+e.attr("x1"),y:+e.attr("y1")},l={x:+e.attr("x2"),y:+e.attr("y2")};var b=i.x-l.x,x=i.y-l.y;if(s=Math.atan2(x,b),u=s+Math.PI,y&&g&&y+g>Math.sqrt(b*b+x*x))return void L();if(y){if(y*y>b*b+x*x)return void L();var _=y*Math.cos(s),w=y*Math.sin(s);l.x+=_,l.y+=w,e.attr({x2:l.x,y2:l.y})}if(g){if(g*g>b*b+x*x)return void L();var k=g*Math.cos(s),T=g*Math.sin(s);i.x-=k,i.y-=T,e.attr({x1:i.x,y1:i.y})}}else if("path"===c.nodeName){var E=c.getTotalLength(),O="";if(E<y+g)return void L();var M=c.getPointAtLength(0),S=c.getPointAtLength(.1);s=Math.atan2(M.y-S.y,M.x-S.x),i=c.getPointAtLength(Math.min(g,E)),O="0px,"+g+"px,";var C=c.getPointAtLength(E),A=c.getPointAtLength(E-.1);u=Math.atan2(C.y-A.y,C.x-A.x),l=c.getPointAtLength(Math.max(0,E-y));var P=O?g+y:y;O+=E-P+"px,"+E+"px",e.style("stroke-dasharray",O)}function L(){e.style("stroke-dasharray","0px,100px")}function D(t,o,i,l){t.path&&(t.noRotate&&(i=0),r.select(c.parentNode).append("path").attr({class:e.attr("class"),d:t.path,transform:"translate("+o.x+","+o.y+")"+(i?"rotate("+180*i/Math.PI+")":"")+"scale("+l+")"}).style({fill:a.rgb(n.arrowcolor),"stroke-width":0}))}v&&D(p,i,s,h),m&&D(f,l,u,d)}},{"../color":615,"./arrow_paths":597,d3:169}],606:[function(e,t,n){"use strict";var r=e("./draw"),a=e("./click");t.exports={moduleType:"component",name:"annotations",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),includeBasePlot:e("../../plots/cartesian/include_components")("annotations"),calcAutorange:e("./calc_autorange"),draw:r.draw,drawOne:r.drawOne,drawRaw:r.drawRaw,hasClickToShow:a.hasClickToShow,onClick:a.onClick,convertCoords:e("./convert_coords")}},{"../../plots/cartesian/include_components":811,"./attributes":598,"./calc_autorange":599,"./click":600,"./convert_coords":602,"./defaults":603,"./draw":604}],607:[function(e,t,n){"use strict";var r=e("../annotations/attributes"),a=e("../../plot_api/edit_types").overrideAll,o=e("../../plot_api/plot_template").templatedArray;t.exports=a(o("annotation",{visible:r.visible,x:{valType:"any"},y:{valType:"any"},z:{valType:"any"},ax:{valType:"number"},ay:{valType:"number"},xanchor:r.xanchor,xshift:r.xshift,yanchor:r.yanchor,yshift:r.yshift,text:r.text,textangle:r.textangle,font:r.font,width:r.width,height:r.height,opacity:r.opacity,align:r.align,valign:r.valign,bgcolor:r.bgcolor,bordercolor:r.bordercolor,borderpad:r.borderpad,borderwidth:r.borderwidth,showarrow:r.showarrow,arrowcolor:r.arrowcolor,arrowhead:r.arrowhead,startarrowhead:r.startarrowhead,arrowside:r.arrowside,arrowsize:r.arrowsize,startarrowsize:r.startarrowsize,arrowwidth:r.arrowwidth,standoff:r.standoff,startstandoff:r.startstandoff,hovertext:r.hovertext,hoverlabel:r.hoverlabel,captureevents:r.captureevents}),"calc","from-root")},{"../../plot_api/edit_types":781,"../../plot_api/plot_template":788,"../annotations/attributes":598}],608:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes");function o(e,t){var n=t.fullSceneLayout,o=n.domain,i=t.fullLayout._size,l={pdata:null,type:"linear",autorange:!1,range:[-1/0,1/0]};e._xa={},r.extendFlat(e._xa,l),a.setConvert(e._xa),e._xa._offset=i.l+o.x[0]*i.w,e._xa.l2p=function(){return.5*(1+e._pdata[0]/e._pdata[3])*i.w*(o.x[1]-o.x[0])},e._ya={},r.extendFlat(e._ya,l),a.setConvert(e._ya),e._ya._offset=i.t+(1-o.y[1])*i.h,e._ya.l2p=function(){return.5*(1-e._pdata[1]/e._pdata[3])*i.h*(o.y[1]-o.y[0])}}t.exports=function(e){for(var t=e.fullSceneLayout,n=t.annotations,r=0;r<n.length;r++)o(n[r],e);e.fullLayout._infolayer.selectAll(".annotation-"+e.id).remove()}},{"../../lib":750,"../../plots/cartesian/axes":799}],609:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("../../plots/array_container_defaults"),i=e("../annotations/common_defaults"),l=e("./attributes");function s(e,t,n,o){function s(n,a){return r.coerce(e,t,l,n,a)}function u(e){var r=e+"axis",o={_fullLayout:{}};return o._fullLayout[r]=n[r],a.coercePosition(t,o,s,e,e,.5)}var c=s("visible");c&&(i(e,t,o.fullLayout,s),u("x"),u("y"),u("z"),r.noneOrAll(e,t,["x","y","z"]),t.xref="x",t.yref="y",t.zref="z",s("xanchor"),s("yanchor"),s("xshift"),s("yshift"),t.showarrow&&(t.axref="pixel",t.ayref="pixel",s("ax",-10),s("ay",-30),r.noneOrAll(e,t,["ax","ay"])))}t.exports=function(e,t,n){o(e,t,{name:"annotations",handleItemDefaults:s,fullLayout:n.fullLayout})}},{"../../lib":750,"../../plots/array_container_defaults":794,"../../plots/cartesian/axes":799,"../annotations/common_defaults":601,"./attributes":607}],610:[function(e,t,n){"use strict";var r=e("../annotations/draw").drawRaw,a=e("../../plots/gl3d/project"),o=["x","y","z"];t.exports=function(e){for(var t=e.fullSceneLayout,n=e.dataScale,i=t.annotations,l=0;l<i.length;l++){for(var s=i[l],u=!1,c=0;c<3;c++){var f=o[c],p=s[f],d=t[f+"axis"],h=d.r2fraction(p);if(h<0||h>1){u=!0;break}}u?e.fullLayout._infolayer.select(".annotation-"+e.id+'[data-index="'+l+'"]').remove():(s._pdata=a(e.glplot.cameraParams,[t.xaxis.r2l(s.x)*n[0],t.yaxis.r2l(s.y)*n[1],t.zaxis.r2l(s.z)*n[2]]),r(e.graphDiv,s,l,e.id,s._xa,s._ya))}}},{"../../plots/gl3d/project":850,"../annotations/draw":604}],611:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib");function o(e,t){var n=r.subplotsRegistry.gl3d;if(n)for(var o=n.attrRegex,i=Object.keys(e),l=0;l<i.length;l++){var s=i[l];o.test(s)&&(e[s].annotations||[]).length&&(a.pushUnique(t._basePlotModules,n),a.pushUnique(t._subplots.gl3d,s))}}t.exports={moduleType:"component",name:"annotations3d",schema:{subplots:{scene:{annotations:e("./attributes")}}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),includeBasePlot:o,convert:e("./convert"),draw:e("./draw")}},{"../../lib":750,"../../registry":882,"./attributes":607,"./convert":608,"./defaults":609,"./draw":610}],612:[function(e,t,n){"use strict";t.exports=e("world-calendars/dist/main"),e("world-calendars/dist/plus"),e("world-calendars/dist/calendars/chinese"),e("world-calendars/dist/calendars/coptic"),e("world-calendars/dist/calendars/discworld"),e("world-calendars/dist/calendars/ethiopian"),e("world-calendars/dist/calendars/hebrew"),e("world-calendars/dist/calendars/islamic"),e("world-calendars/dist/calendars/julian"),e("world-calendars/dist/calendars/mayan"),e("world-calendars/dist/calendars/nanakshahi"),e("world-calendars/dist/calendars/nepali"),e("world-calendars/dist/calendars/persian"),e("world-calendars/dist/calendars/taiwan"),e("world-calendars/dist/calendars/thai"),e("world-calendars/dist/calendars/ummalqura")},{"world-calendars/dist/calendars/chinese":579,"world-calendars/dist/calendars/coptic":580,"world-calendars/dist/calendars/discworld":581,"world-calendars/dist/calendars/ethiopian":582,"world-calendars/dist/calendars/hebrew":583,"world-calendars/dist/calendars/islamic":584,"world-calendars/dist/calendars/julian":585,"world-calendars/dist/calendars/mayan":586,"world-calendars/dist/calendars/nanakshahi":587,"world-calendars/dist/calendars/nepali":588,"world-calendars/dist/calendars/persian":589,"world-calendars/dist/calendars/taiwan":590,"world-calendars/dist/calendars/thai":591,"world-calendars/dist/calendars/ummalqura":592,"world-calendars/dist/main":593,"world-calendars/dist/plus":594}],613:[function(e,t,n){"use strict";var r=e("./calendars"),a=e("../../lib"),o=e("../../constants/numerical"),i=o.EPOCHJD,l=o.ONEDAY,s={valType:"enumerated",values:Object.keys(r.calendars),editType:"calc",dflt:"gregorian"},u=function(e,t,n,r){var o={};return o[n]=s,a.coerce(e,t,o,n,r)},c=function(e,t,n,r){for(var a=0;a<n.length;a++)u(e,t,n[a]+"calendar",r.calendar)},f={chinese:"2000-01-01",coptic:"2000-01-01",discworld:"2000-01-01",ethiopian:"2000-01-01",hebrew:"5000-01-01",islamic:"1000-01-01",julian:"2000-01-01",mayan:"5000-01-01",nanakshahi:"1000-01-01",nepali:"2000-01-01",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-01",thai:"2000-01-01",ummalqura:"1400-01-01"},p={chinese:"2000-01-02",coptic:"2000-01-03",discworld:"2000-01-03",ethiopian:"2000-01-05",hebrew:"5000-01-01",islamic:"1000-01-02",julian:"2000-01-03",mayan:"5000-01-01",nanakshahi:"1000-01-05",nepali:"2000-01-05",persian:"1000-01-01",jalali:"1000-01-01",taiwan:"1000-01-04",thai:"2000-01-04",ummalqura:"1400-01-06"},d={chinese:["2000-01-01","2001-01-01"],coptic:["1700-01-01","1701-01-01"],discworld:["1800-01-01","1801-01-01"],ethiopian:["2000-01-01","2001-01-01"],hebrew:["5700-01-01","5701-01-01"],islamic:["1400-01-01","1401-01-01"],julian:["2000-01-01","2001-01-01"],mayan:["5200-01-01","5201-01-01"],nanakshahi:["0500-01-01","0501-01-01"],nepali:["2000-01-01","2001-01-01"],persian:["1400-01-01","1401-01-01"],jalali:["1400-01-01","1401-01-01"],taiwan:["0100-01-01","0101-01-01"],thai:["2500-01-01","2501-01-01"],ummalqura:["1400-01-01","1401-01-01"]},h="##",v={d:{0:"dd","-":"d"},e:{0:"d","-":"d"},a:{0:"D","-":"D"},A:{0:"DD","-":"DD"},j:{0:"oo","-":"o"},W:{0:"ww","-":"w"},m:{0:"mm","-":"m"},b:{0:"M","-":"M"},B:{0:"MM","-":"MM"},y:{0:"yy","-":"yy"},Y:{0:"yyyy","-":"yyyy"},U:h,w:h,c:{0:"D M d %X yyyy","-":"D M d %X yyyy"},x:{0:"mm/dd/yyyy","-":"mm/dd/yyyy"}};function m(e,t,n){var r,a,o,s,u,c=Math.floor((t+.05)/l)+i,f=g(n).fromJD(c),p=0;while(-1!==(p=e.indexOf("%",p)))r=e.charAt(p+1),"0"===r||"-"===r||"_"===r?(o=3,a=e.charAt(p+2),"_"===r&&(r="-")):(a=r,r="0",o=2),s=v[a],s?(u=s===h?h:f.formatDate(s[r]),e=e.substr(0,p)+u+e.substr(p+o),p+=u.length):p+=o;return e}var y={};function g(e){var t=y[e];return t||(t=y[e]=r.instance(e),t)}function b(e){return a.extendFlat({},s,{description:e})}function x(e){return"Sets the calendar system to use with `"+e+"` date data."}var _={xcalendar:b(x("x"))},w=a.extendFlat({},_,{ycalendar:b(x("y"))}),k=a.extendFlat({},w,{zcalendar:b(x("z"))}),T=b(["Sets the calendar system to use for `range` and `tick0`","if this is a date axis. This does not set the calendar for","interpreting data on this axis, that's specified in the trace","or via the global `layout.calendar`"].join(" "));t.exports={moduleType:"component",name:"calendars",schema:{traces:{scatter:w,bar:w,box:w,heatmap:w,contour:w,histogram:w,histogram2d:w,histogram2dcontour:w,scatter3d:k,surface:k,mesh3d:k,scattergl:w,ohlc:_,candlestick:_},layout:{calendar:b(["Sets the default calendar system to use for interpreting and","displaying dates throughout the plot."].join(" "))},subplots:{xaxis:{calendar:T},yaxis:{calendar:T},scene:{xaxis:{calendar:T},yaxis:{calendar:T},zaxis:{calendar:T}},polar:{radialaxis:{calendar:T}}},transforms:{filter:{valuecalendar:b(["Sets the calendar system to use for `value`, if it is a date."].join(" ")),targetcalendar:b(["Sets the calendar system to use for `target`, if it is an","array of dates. If `target` is a string (eg *x*) we use the","corresponding trace attribute (eg `xcalendar`) if it exists,","even if `targetcalendar` is provided."].join(" "))}}},layoutAttributes:s,handleDefaults:u,handleTraceDefaults:c,CANONICAL_SUNDAY:p,CANONICAL_TICK:f,DFLTRANGE:d,getCal:g,worldCalFmt:m}},{"../../constants/numerical":725,"../../lib":750,"./calendars":612}],614:[function(e,t,n){"use strict";n.defaults=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],n.defaultLine="#444",n.lightLine="#eee",n.background="#fff",n.borderLine="#BEC8D9",n.lightFraction=1e3/11},{}],615:[function(e,t,n){"use strict";var r=e("tinycolor2"),a=e("fast-isnumeric"),o=t.exports={},i=e("./attributes");o.defaults=i.defaults;var l=o.defaultLine=i.defaultLine;o.lightLine=i.lightLine;var s=o.background=i.background;function u(e){if(a(e)||"string"!==typeof e)return e;var t=e.trim();if("rgb"!==t.substr(0,3))return e;var n=t.match(/^rgba?\s*\(([^()]*)\)$/);if(!n)return e;var r=n[1].trim().split(/\s*[\s,]\s*/),o="a"===t.charAt(3)&&4===r.length;if(!o&&3!==r.length)return e;for(var i=0;i<r.length;i++){if(!r[i].length)return e;if(r[i]=Number(r[i]),!(r[i]>=0))return e;if(3===i)r[i]>1&&(r[i]=1);else if(r[i]>=1)return e}var l=Math.round(255*r[0])+", "+Math.round(255*r[1])+", "+Math.round(255*r[2]);return o?"rgba("+l+", "+r[3]+")":"rgb("+l+")"}o.tinyRGB=function(e){var t=e.toRgb();return"rgb("+Math.round(t.r)+", "+Math.round(t.g)+", "+Math.round(t.b)+")"},o.rgb=function(e){return o.tinyRGB(r(e))},o.opacity=function(e){return e?r(e).getAlpha():0},o.addOpacity=function(e,t){var n=r(e).toRgb();return"rgba("+Math.round(n.r)+", "+Math.round(n.g)+", "+Math.round(n.b)+", "+t+")"},o.combine=function(e,t){var n=r(e).toRgb();if(1===n.a)return r(e).toRgbString();var a=r(t||s).toRgb(),o=1===a.a?a:{r:255*(1-a.a)+a.r*a.a,g:255*(1-a.a)+a.g*a.a,b:255*(1-a.a)+a.b*a.a},i={r:o.r*(1-n.a)+n.r*n.a,g:o.g*(1-n.a)+n.g*n.a,b:o.b*(1-n.a)+n.b*n.a};return r(i).toRgbString()},o.contrast=function(e,t,n){var a=r(e);1!==a.getAlpha()&&(a=r(o.combine(e,s)));var i=a.isDark()?t?a.lighten(t):s:n?a.darken(n):l;return i.toString()},o.stroke=function(e,t){var n=r(t);e.style({stroke:o.tinyRGB(n),"stroke-opacity":n.getAlpha()})},o.fill=function(e,t){var n=r(t);e.style({fill:o.tinyRGB(n),"fill-opacity":n.getAlpha()})},o.clean=function(e){if(e&&"object"===typeof e){var t,n,r,a,i=Object.keys(e);for(t=0;t<i.length;t++)if(r=i[t],a=e[r],"color"===r.substr(r.length-5))if(Array.isArray(a))for(n=0;n<a.length;n++)a[n]=u(a[n]);else e[r]=u(a);else if("colorscale"===r.substr(r.length-10)&&Array.isArray(a))for(n=0;n<a.length;n++)Array.isArray(a[n])&&(a[n][1]=u(a[n][1]));else if(Array.isArray(a)){var l=a[0];if(!Array.isArray(l)&&l&&"object"===typeof l)for(n=0;n<a.length;n++)o.clean(a[n])}else a&&"object"===typeof a&&o.clean(a)}}},{"./attributes":614,"fast-isnumeric":241,tinycolor2:548}],616:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/layout_attributes"),a=e("../../plots/font_attributes"),o=e("../../lib/extend").extendFlat,i=e("../../plot_api/edit_types").overrideAll;t.exports=i({thicknessmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"pixels"},thickness:{valType:"number",min:0,dflt:30},lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",dflt:1.02,min:-2,max:3},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},xpad:{valType:"number",min:0,dflt:10},y:{valType:"number",dflt:.5,min:-2,max:3},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle"},ypad:{valType:"number",min:0,dflt:10},outlinecolor:r.linecolor,outlinewidth:r.linewidth,bordercolor:r.linecolor,borderwidth:{valType:"number",min:0,dflt:0},bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)"},tickmode:r.tickmode,nticks:r.nticks,tick0:r.tick0,dtick:r.dtick,tickvals:r.tickvals,ticktext:r.ticktext,ticks:o({},r.ticks,{dflt:""}),ticklen:r.ticklen,tickwidth:r.tickwidth,tickcolor:r.tickcolor,showticklabels:r.showticklabels,tickfont:a({}),tickangle:r.tickangle,tickformat:r.tickformat,tickformatstops:r.tickformatstops,tickprefix:r.tickprefix,showtickprefix:r.showtickprefix,ticksuffix:r.ticksuffix,showticksuffix:r.showticksuffix,separatethousands:r.separatethousands,exponentformat:r.exponentformat,minexponent:r.minexponent,showexponent:r.showexponent,title:{text:{valType:"string"},font:a({}),side:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}},_deprecated:{title:{valType:"string"},titlefont:a({}),titleside:{valType:"enumerated",values:["right","top","bottom"],dflt:"top"}}},"colorbars","from-root")},{"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plots/cartesian/layout_attributes":813,"../../plots/font_attributes":827}],617:[function(e,t,n){"use strict";t.exports={cn:{colorbar:"colorbar",cbbg:"cbbg",cbfill:"cbfill",cbfills:"cbfills",cbline:"cbline",cblines:"cblines",cbaxis:"cbaxis",cbtitleunshift:"cbtitleunshift",cbtitle:"cbtitle",cboutline:"cboutline",crisp:"crisp",jsPlaceholder:"js-placeholder"}}},{}],618:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plot_api/plot_template"),o=e("../../plots/cartesian/tick_value_defaults"),i=e("../../plots/cartesian/tick_mark_defaults"),l=e("../../plots/cartesian/tick_label_defaults"),s=e("./attributes");t.exports=function(e,t,n){var u=a.newContainer(t,"colorbar"),c=e.colorbar||{};function f(e,t){return r.coerce(c,u,s,e,t)}var p=f("thicknessmode");f("thickness","fraction"===p?30/(n.width-n.margin.l-n.margin.r):30);var d=f("lenmode");f("len","fraction"===d?1:n.height-n.margin.t-n.margin.b),f("x"),f("xanchor"),f("xpad"),f("y"),f("yanchor"),f("ypad"),r.noneOrAll(c,u,["x","y"]),f("outlinecolor"),f("outlinewidth"),f("bordercolor"),f("borderwidth"),f("bgcolor"),o(c,u,f,"linear");var h={outerTicks:!1,font:n.font};l(c,u,f,"linear",h),i(c,u,f,"linear",h),f("title.text",n._dfltTitle.colorbar),r.coerceFont(f,"title.font",n.font),f("title.side")}},{"../../lib":750,"../../plot_api/plot_template":788,"../../plots/cartesian/tick_label_defaults":820,"../../plots/cartesian/tick_mark_defaults":821,"../../plots/cartesian/tick_value_defaults":822,"./attributes":616}],619:[function(e,t,n){"use strict";var r=e("d3"),a=e("tinycolor2"),o=e("../../plots/plots"),i=e("../../registry"),l=e("../../plots/cartesian/axes"),s=e("../dragelement"),u=e("../../lib"),c=e("../../lib/extend").extendFlat,f=e("../../lib/setcursor"),p=e("../drawing"),d=e("../color"),h=e("../titles"),v=e("../../lib/svg_text_utils"),m=e("../colorscale/helpers").flipScale,y=e("../../plots/cartesian/axis_defaults"),g=e("../../plots/cartesian/position_defaults"),b=e("../../plots/cartesian/layout_attributes"),x=e("../../constants/alignment"),_=x.LINE_SPACING,w=x.FROM_TL,k=x.FROM_BR,T=e("./constants").cn;function E(e){var t=e._fullLayout,n=t._infolayer.selectAll("g."+T.colorbar).data(O(e),(function(e){return e._id}));n.enter().append("g").attr("class",(function(e){return e._id})).classed(T.colorbar,!0),n.each((function(t){var n=r.select(this);u.ensureSingle(n,"rect",T.cbbg),u.ensureSingle(n,"g",T.cbfills),u.ensureSingle(n,"g",T.cblines),u.ensureSingle(n,"g",T.cbaxis,(function(e){e.classed(T.crisp,!0)})),u.ensureSingle(n,"g",T.cbtitleunshift,(function(e){e.append("g").classed(T.cbtitle,!0)})),u.ensureSingle(n,"rect",T.cboutline);var a=M(n,t,e);a&&a.then&&(e._promises||[]).push(a),e._context.edits.colorbarPosition&&S(n,t,e)})),n.exit().each((function(t){o.autoMargin(e,t._id)})).remove(),n.order()}function O(e){var t,n,r,a,o=e._fullLayout,i=e.calcdata,l=[];function s(e){return c(e,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function u(){"function"===typeof a.calc?a.calc(e,r,t):(t._fillgradient=n.reversescale?m(n.colorscale):n.colorscale,t._zrange=[n[a.min],n[a.max]])}for(var f=0;f<i.length;f++){var p=i[f];r=p[0].trace;var d=r._module.colorbar;if(!0===r.visible&&d)for(var h=Array.isArray(d),v=h?d:[d],y=0;y<v.length;y++){a=v[y];var g=a.container;n=g?r[g]:r,n&&n.showscale&&(t=s(n.colorbar),t._id="cb"+r.uid+(h&&g?"-"+g:""),t._traceIndex=r.index,t._propPrefix=(g?g+".":"")+"colorbar.",t._meta=r._meta,u(),l.push(t))}}for(var b in o._colorAxes)if(n=o[b],n.showscale){var x=o._colorAxes[b];t=s(n.colorbar),t._id="cb"+b,t._propPrefix=b+".colorbar.",t._meta=o._meta,a={min:"cmin",max:"cmax"},"heatmap"!==x[0]&&(r=x[1],a.calc=r._module.colorbar.calc),u(),l.push(t)}return l}function M(e,t,n){var i=n._fullLayout,s=i._size,f=t._fillcolor,m=t._line,y=t.title,g=y.side,b=t._zrange||r.extent(("function"===typeof f?f:m.color).domain()),x="function"===typeof m.color?m.color:function(){return m.color},E="function"===typeof f?f:function(){return f},O=t._levels,M=C(n,t,b),S=M.fill,P=M.line,L=Math.round(t.thickness*("fraction"===t.thicknessmode?s.w:1)),D=L/s.w,j=Math.round(t.len*("fraction"===t.lenmode?s.h:1)),I=j/s.h,R=t.xpad/s.w,z=(t.borderwidth+t.outlinewidth)/2,N=t.ypad/s.h,F=Math.round(t.x*s.w+t.xpad),B=t.x-D*({middle:.5,right:1}[t.xanchor]||0),V=t.y+I*(({top:-.5,bottom:.5}[t.yanchor]||0)-.5),H=Math.round(s.h*(1-V)),U=H-j;t._lenFrac=I,t._thickFrac=D,t._xLeftFrac=B,t._yBottomFrac=V;var W=t._axis=A(n,t,b);if(W.position=t.x+R+D,-1!==["top","bottom"].indexOf(g)&&(W.title.side=g,W.titlex=t.x+R,W.titley=V+("top"===y.side?I-N:N)),m.color&&"auto"===t.tickmode){W.tickmode="linear",W.tick0=O.start;var q=O.size,$=u.constrain((H-U)/50,4,15)+1,G=(b[1]-b[0])/((t.nticks||$)*q);if(G>1){var Y=Math.pow(10,Math.floor(Math.log(G)/Math.LN10));q*=Y*u.roundUp(G/Y,[2,5,10]),(Math.abs(O.start)/O.size+1e-6)%1<2e-6&&(W.tick0=0)}W.dtick=q}W.domain=[V+N,V+I-N],W.setScale(),e.attr("transform","translate("+Math.round(s.l)+","+Math.round(s.t)+")");var K,X=e.select("."+T.cbtitleunshift).attr("transform","translate(-"+Math.round(s.l)+",-"+Math.round(s.t)+")"),Z=e.select("."+T.cbaxis),J=0;function Q(r,a){var o={propContainer:W,propName:t._propPrefix+"title",traceIndex:t._traceIndex,_meta:t._meta,placeholder:i._dfltTitle.colorbar,containerGroup:e.select("."+T.cbtitle)},l="h"===r.charAt(0)?r.substr(1):"h"+r;e.selectAll("."+l+",."+l+"-math-group").remove(),h.draw(n,r,c(o,a||{}))}function ee(){if(-1!==["top","bottom"].indexOf(g)){var e,n=s.l+(t.x+R)*s.w,r=W.title.font.size;e="top"===g?(1-(V+I-N))*s.h+s.t+3+.75*r:(1-(V+N))*s.h+s.t-3-.25*r,Q(W._id+"title",{attributes:{x:n,y:e,"text-anchor":"start"}})}}function te(){if(-1===["top","bottom"].indexOf(g)){var e=W.title.font.size,t=W._offset+W._length/2,a=s.l+(W.position||0)*s.w+("right"===W.side?10+e*(W.showticklabels?1:.5):-10-e*(W.showticklabels?.5:0));Q("h"+W._id+"title",{avoid:{selection:r.select(n).selectAll("g."+W._id+"tick"),side:g,offsetLeft:s.l,offsetTop:0,maxShift:i.width},attributes:{x:a,y:t,"text-anchor":"middle"},transform:{rotate:"-90",offset:0}})}}function ne(){if(-1!==["top","bottom"].indexOf(g)){var o=e.select("."+T.cbtitle),i=o.select("text"),c=[-t.outlinewidth/2,t.outlinewidth/2],f=o.select(".h"+W._id+"title-math-group").node(),d=15.6;if(i.node()&&(d=parseInt(i.node().style.fontSize,10)*_),f?(J=p.bBox(f).height,J>d&&(c[1]-=(J-d)/2)):i.node()&&!i.classed(T.jsPlaceholder)&&(J=p.bBox(i.node()).height),J){if(J+=5,"top"===g)W.domain[1]-=J/s.h,c[1]*=-1;else{W.domain[0]+=J/s.h;var h=v.lineCount(i);c[1]+=(1-h)*d}o.attr("transform","translate("+c+")"),W.setScale()}}e.selectAll("."+T.cbfills+",."+T.cblines).attr("transform","translate(0,"+Math.round(s.h*(1-W.domain[1]))+")"),Z.attr("transform","translate(0,"+Math.round(-s.t)+")");var y=e.select("."+T.cbfills).selectAll("rect."+T.cbfill).attr("style","").data(S);y.enter().append("rect").classed(T.cbfill,!0).style("stroke","none"),y.exit().remove();var w=b.map(W.c2p).map(Math.round).sort((function(e,t){return e-t}));y.each((function(e,o){var i=[0===o?b[0]:(S[o]+S[o-1])/2,o===S.length-1?b[1]:(S[o]+S[o+1])/2].map(W.c2p).map(Math.round);i[1]=u.constrain(i[1]+(i[1]>i[0])?1:-1,w[0],w[1]);var l=r.select(this).attr({x:F,width:Math.max(L,2),y:r.min(i),height:Math.max(r.max(i)-r.min(i),2)});if(t._fillgradient)p.gradient(l,n,t._id,"vertical",t._fillgradient,"fill");else{var s=E(e).replace("e-","");l.attr("fill",a(s).toHexString())}}));var k=e.select("."+T.cblines).selectAll("path."+T.cbline).data(m.color&&m.width?P:[]);k.enter().append("path").classed(T.cbline,!0),k.exit().remove(),k.each((function(e){r.select(this).attr("d","M"+F+","+(Math.round(W.c2p(e))+m.width/2%1)+"h"+L).call(p.lineGroupStyle,m.width,x(e),m.dash)})),Z.selectAll("g."+W._id+"tick,path").remove();var O=F+L+(t.outlinewidth||0)/2-("outside"===t.ticks?1:0),M=l.calcTicks(W),C=l.makeTransFn(W),A=l.getTickSigns(W)[2];return l.drawTicks(n,W,{vals:"inside"===W.ticks?l.clipEnds(W,M):M,layer:Z,path:l.makeTickPath(W,O,A),transFn:C}),l.drawLabels(n,W,{vals:M,layer:Z,transFn:C,labelFns:l.makeLabelFns(W,O)})}function re(){var r=L+t.outlinewidth/2+p.bBox(Z.node()).width;if(K=X.select("text"),K.node()&&!K.classed(T.jsPlaceholder)){var a,i=X.select(".h"+W._id+"title-math-group").node();a=i&&-1!==["top","bottom"].indexOf(g)?p.bBox(i).width:p.bBox(X.node()).right-F-s.l,r=Math.max(r,a)}var l=2*t.xpad+r+t.borderwidth+t.outlinewidth/2,u=H-U;e.select("."+T.cbbg).attr({x:F-t.xpad-(t.borderwidth+t.outlinewidth)/2,y:U-z,width:Math.max(l,2),height:Math.max(u+2*z,2)}).call(d.fill,t.bgcolor).call(d.stroke,t.bordercolor).style("stroke-width",t.borderwidth),e.selectAll("."+T.cboutline).attr({x:F,y:U+t.ypad+("top"===g?J:0),width:Math.max(L,2),height:Math.max(u-2*t.ypad-J,2)}).call(d.stroke,t.outlinecolor).style({fill:"none","stroke-width":t.outlinewidth});var c=({center:.5,right:1}[t.xanchor]||0)*l;e.attr("transform","translate("+(s.l-c)+","+s.t+")");var f={},h=w[t.yanchor],v=k[t.yanchor];"pixels"===t.lenmode?(f.y=t.y,f.t=u*h,f.b=u*v):(f.t=f.b=0,f.yt=t.y+t.len*h,f.yb=t.y-t.len*v);var m=w[t.xanchor],y=k[t.xanchor];if("pixels"===t.thicknessmode)f.x=t.x,f.l=l*m,f.r=l*y;else{var b=l-L;f.l=b*m,f.r=b*y,f.xl=t.x-t.thickness*m,f.xr=t.x+t.thickness*y}o.autoMargin(n,t._id,f)}return u.syncOrAsync([o.previousPromises,ee,ne,te,o.previousPromises,re],n)}function S(e,t,n){var r,a,o,l=n._fullLayout,u=l._size;s.init({element:e.node(),gd:n,prepFn:function(){r=e.attr("transform"),f(e)},moveFn:function(n,i){e.attr("transform",r+" translate("+n+","+i+")"),a=s.align(t._xLeftFrac+n/u.w,t._thickFrac,0,1,t.xanchor),o=s.align(t._yBottomFrac-i/u.h,t._lenFrac,0,1,t.yanchor);var l=s.getCursor(a,o,t.xanchor,t.yanchor);f(e,l)},doneFn:function(){if(f(e),void 0!==a&&void 0!==o){var r={};r[t._propPrefix+"x"]=a,r[t._propPrefix+"y"]=o,void 0!==t._traceIndex?i.call("_guiRestyle",n,r,t._traceIndex):i.call("_guiRelayout",n,r)}}})}function C(e,t,n){var r,a,o=t._levels,i=[],l=[],s=o.end+o.size/100,u=o.size,c=1.001*n[0]-.001*n[1],f=1.001*n[1]-.001*n[0];for(a=0;a<1e5;a++){if(r=o.start+a*u,u>0?r>=s:r<=s)break;r>c&&r<f&&i.push(r)}if(t._fillgradient)l=[0];else if("function"===typeof t._fillcolor){var p=t._filllevels;if(p)for(s=p.end+p.size/100,u=p.size,a=0;a<1e5;a++){if(r=p.start+a*u,u>0?r>=s:r<=s)break;r>n[0]&&r<n[1]&&l.push(r)}else l=i.map((function(e){return e-o.size/2})),l.push(l[l.length-1]+o.size)}else t._fillcolor&&"string"===typeof t._fillcolor&&(l=[0]);return o.size<0&&(i.reverse(),l.reverse()),{line:i,fill:l}}function A(e,t,n){var r=e._fullLayout,a={type:"linear",range:n,tickmode:t.tickmode,nticks:t.nticks,tick0:t.tick0,dtick:t.dtick,tickvals:t.tickvals,ticktext:t.ticktext,ticks:t.ticks,ticklen:t.ticklen,tickwidth:t.tickwidth,tickcolor:t.tickcolor,showticklabels:t.showticklabels,tickfont:t.tickfont,tickangle:t.tickangle,tickformat:t.tickformat,exponentformat:t.exponentformat,minexponent:t.minexponent,separatethousands:t.separatethousands,showexponent:t.showexponent,showtickprefix:t.showtickprefix,tickprefix:t.tickprefix,showticksuffix:t.showticksuffix,ticksuffix:t.ticksuffix,title:t.title,showline:!0,anchor:"free",side:"right",position:1},o={type:"linear",_id:"y"+t._id},i={letter:"y",font:r.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:r.calendar};function l(e,t){return u.coerce(a,o,b,e,t)}return y(a,o,l,i,r),g(a,o,l,i),o}t.exports={draw:E}},{"../../constants/alignment":717,"../../lib":750,"../../lib/extend":740,"../../lib/setcursor":770,"../../lib/svg_text_utils":774,"../../plots/cartesian/axes":799,"../../plots/cartesian/axis_defaults":801,"../../plots/cartesian/layout_attributes":813,"../../plots/cartesian/position_defaults":816,"../../plots/plots":862,"../../registry":882,"../color":615,"../colorscale/helpers":626,"../dragelement":634,"../drawing":637,"../titles":710,"./constants":617,d3:169,tinycolor2:548}],620:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e){return r.isPlainObject(e.colorbar)}},{"../../lib":750}],621:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"colorbar",attributes:e("./attributes"),supplyDefaults:e("./defaults"),draw:e("./draw").draw,hasColorbar:e("./has_colorbar")}},{"./attributes":616,"./defaults":618,"./draw":619,"./has_colorbar":620}],622:[function(e,t,n){"use strict";var r=e("../colorbar/attributes"),a=e("../../lib/regex").counter,o=e("./scales.js").scales;Object.keys(o);function i(e){return"`"+e+"`"}t.exports=function(e,t){e=e||"",t=t||{};var n,l=t.cLetter||"c",s=("onlyIfNumerical"in t?t.onlyIfNumerical:Boolean(e),"noScale"in t?t.noScale:"marker.line"===e),u="showScaleDflt"in t?t.showScaleDflt:"z"===l,c="string"===typeof t.colorscaleDflt?o[t.colorscaleDflt]:null,f=t.editTypeOverride||"",p=e?e+".":"";"colorAttr"in t?(n=t.colorAttr,t.colorAttr):(n={z:"z",c:"color"}[l],i(p+n));var d=l+"auto",h=l+"min",v=l+"max",m=l+"mid",y=(i(p+d),i(p+h),i(p+v),{});y[h]=y[v]=void 0;var g={};g[d]=!1;var b={};return"color"===n&&(b.color={valType:"color",arrayOk:!0,editType:f||"style"},t.anim&&(b.color.anim=!0)),b[d]={valType:"boolean",dflt:!0,editType:"calc",impliedEdits:y},b[h]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:g},b[v]={valType:"number",dflt:null,editType:f||"plot",impliedEdits:g},b[m]={valType:"number",dflt:null,editType:"calc",impliedEdits:y},b.colorscale={valType:"colorscale",editType:"calc",dflt:c,impliedEdits:{autocolorscale:!1}},b.autocolorscale={valType:"boolean",dflt:!1!==t.autoColorDflt,editType:"calc",impliedEdits:{colorscale:void 0}},b.reversescale={valType:"boolean",dflt:!1,editType:"plot"},s||(b.showscale={valType:"boolean",dflt:u,editType:"calc"},b.colorbar=r),t.noColorAxis||(b.coloraxis={valType:"subplotid",regex:a("coloraxis"),dflt:null,editType:"calc"}),b}},{"../../lib/regex":766,"../colorbar/attributes":616,"./scales.js":630}],623:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("./helpers").extractOpts;t.exports=function(e,t,n){var i,l=e._fullLayout,s=n.vals,u=n.containerStr,c=u?a.nestedProperty(t,u).get():t,f=o(c),p=!1!==f.auto,d=f.min,h=f.max,v=f.mid,m=function(){return a.aggNums(Math.min,null,s)},y=function(){return a.aggNums(Math.max,null,s)};(void 0===d?d=m():p&&(d=c._colorAx&&r(d)?Math.min(d,m()):m()),void 0===h?h=y():p&&(h=c._colorAx&&r(h)?Math.max(h,y()):y()),p&&void 0!==v&&(h-v>v-d?d=v-(h-v):h-v<v-d&&(h=v+(v-d))),d===h&&(d-=.5,h+=.5),f._sync("min",d),f._sync("max",h),f.autocolorscale)&&(i=d*h<0?l.colorscale.diverging:d>=0?l.colorscale.sequential:l.colorscale.sequentialminus,f._sync("colorscale",i))}},{"../../lib":750,"./helpers":626,"fast-isnumeric":241}],624:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./helpers").hasColorscale,o=e("./helpers").extractOpts;t.exports=function(e,t){function n(e,t){var n=e["_"+t];void 0!==n&&(e[t]=n)}function i(e,a){var i=a.container?r.nestedProperty(e,a.container).get():e;if(i)if(i.coloraxis)i._colorAx=t[i.coloraxis];else{var l=o(i),s=l.auto;(s||void 0===l.min)&&n(i,a.min),(s||void 0===l.max)&&n(i,a.max),l.autocolorscale&&n(i,"colorscale")}}for(var l=0;l<e.length;l++){var s=e[l],u=s._module.colorbar;if(u)if(Array.isArray(u))for(var c=0;c<u.length;c++)i(s,u[c]);else i(s,u);a(s,"marker.line")&&i(s,{container:"marker.line",min:"cmin",max:"cmax"})}for(var f in t._colorAxes)i(t[f],{min:"cmin",max:"cmax"})}},{"../../lib":750,"./helpers":626}],625:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("../colorbar/has_colorbar"),i=e("../colorbar/defaults"),l=e("./scales").isValid,s=e("../../registry").traceIs;function u(e,t){var n=t.slice(0,t.length-1);return t?a.nestedProperty(e,n).get()||{}:e}t.exports=function e(t,n,c,f,p){var d=p.prefix,h=p.cLetter,v="_module"in n,m=u(t,d),y=u(n,d),g=u(n._template||{},d)||{},b=function(){return delete t.coloraxis,delete n.coloraxis,e(t,n,c,f,p)};if(v){var x=c._colorAxes||{},_=f(d+"coloraxis");if(_){var w=s(n,"contour")&&a.nestedProperty(n,"contours.coloring").get()||"heatmap",k=x[_];return void(k?(k[2].push(b),k[0]!==w&&(k[0]=!1,a.warn(["Ignoring coloraxis:",_,"setting","as it is linked to incompatible colorscales."].join(" ")))):x[_]=[w,n,[b]])}}var T=m[h+"min"],E=m[h+"max"],O=r(T)&&r(E)&&T<E,M=f(d+h+"auto",!O);M?f(d+h+"mid"):(f(d+h+"min"),f(d+h+"max"));var S,C=m.colorscale,A=g.colorscale;if(void 0!==C&&(S=!l(C)),void 0!==A&&(S=!l(A)),f(d+"autocolorscale",S),f(d+"colorscale"),f(d+"reversescale"),"marker.line."!==d){var P;d&&v&&(P=o(m));var L=f(d+"showscale",P);L&&(d&&g&&(y._template=g),i(m,y,c))}}},{"../../lib":750,"../../registry":882,"../colorbar/defaults":618,"../colorbar/has_colorbar":620,"./scales":630,"fast-isnumeric":241}],626:[function(e,t,n){"use strict";var r=e("d3"),a=e("tinycolor2"),o=e("fast-isnumeric"),i=e("../../lib"),l=e("../color"),s=e("./scales").isValid;function u(e,t,n){var r=t?i.nestedProperty(e,t).get()||{}:e,a=r[n||"color"],l=!1;if(i.isArrayOrTypedArray(a))for(var u=0;u<a.length;u++)if(o(a[u])){l=!0;break}return i.isPlainObject(r)&&(l||!0===r.showscale||o(r.cmin)&&o(r.cmax)||s(r.colorscale)||i.isPlainObject(r.colorbar))}var c=["showscale","autocolorscale","colorscale","reversescale","colorbar"],f=["min","max","mid","auto"];function p(e){var t,n,r,a=e._colorAx,o=a||e,i={};for(n=0;n<c.length;n++)r=c[n],i[r]=o[r];if(a)for(t="c",n=0;n<f.length;n++)r=f[n],i[r]=o["c"+r];else{var l;for(n=0;n<f.length;n++)r=f[n],l="c"+r,l in o?i[r]=o[l]:(l="z"+r,l in o&&(i[r]=o[l]));t=l.charAt(0)}return i._sync=function(e,n){var r=-1!==f.indexOf(e)?t+e:e;o[r]=o["_"+r]=n},i}function d(e){for(var t=p(e),n=t.min,r=t.max,a=t.reversescale?h(t.colorscale):t.colorscale,o=a.length,i=new Array(o),l=new Array(o),s=0;s<o;s++){var u=a[s];i[s]=n+u[0]*(r-n),l[s]=u[1]}return{domain:i,range:l}}function h(e){for(var t=e.length,n=new Array(t),r=t-1,a=0;r>=0;r--,a++){var o=e[r];n[a]=[1-o[0],o[1]]}return n}function v(e,t){t=t||{};for(var n=e.domain,i=e.range,s=i.length,u=new Array(s),c=0;c<s;c++){var f=a(i[c]).toRgb();u[c]=[f.r,f.g,f.b,f.a]}var p,d=r.scale.linear().domain(n).range(u).clamp(!0),h=t.noNumericCheck,v=t.returnArray;return p=h&&v?d:h?function(e){return y(d(e))}:v?function(e){return o(e)?d(e):a(e).isValid()?e:l.defaultLine}:function(e){return o(e)?y(d(e)):a(e).isValid()?e:l.defaultLine},p.domain=d.domain,p.range=function(){return i},p}function m(e,t){return v(d(e),t)}function y(e){var t={r:e[0],g:e[1],b:e[2],a:e[3]};return a(t).toRgbString()}t.exports={hasColorscale:u,extractOpts:p,extractScale:d,flipScale:h,makeColorScaleFunc:v,makeColorScaleFuncFromTrace:m}},{"../../lib":750,"../color":615,"./scales":630,d3:169,"fast-isnumeric":241,tinycolor2:548}],627:[function(e,t,n){"use strict";var r=e("./scales"),a=e("./helpers");t.exports={moduleType:"component",name:"colorscale",attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyLayoutDefaults:e("./layout_defaults"),handleDefaults:e("./defaults"),crossTraceDefaults:e("./cross_trace_defaults"),calc:e("./calc"),scales:r.scales,defaultScale:r.defaultScale,getScale:r.get,isValidScale:r.isValid,hasColorscale:a.hasColorscale,extractOpts:a.extractOpts,extractScale:a.extractScale,flipScale:a.flipScale,makeColorScaleFunc:a.makeColorScaleFunc,makeColorScaleFuncFromTrace:a.makeColorScaleFuncFromTrace}},{"./attributes":622,"./calc":623,"./cross_trace_defaults":624,"./defaults":625,"./helpers":626,"./layout_attributes":628,"./layout_defaults":629,"./scales":630}],628:[function(e,t,n){"use strict";var r=e("../../lib/extend").extendFlat,a=e("./attributes"),o=e("./scales").scales;t.exports={editType:"calc",colorscale:{editType:"calc",sequential:{valType:"colorscale",dflt:o.Reds,editType:"calc"},sequentialminus:{valType:"colorscale",dflt:o.Blues,editType:"calc"},diverging:{valType:"colorscale",dflt:o.RdBu,editType:"calc"}},coloraxis:r({_isSubplotObj:!0,editType:"calc"},a("",{colorAttr:"corresponding trace color array(s)",noColorAxis:!0,showScaleDflt:!0}))}},{"../../lib/extend":740,"./attributes":622,"./scales":630}],629:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plot_api/plot_template"),o=e("./layout_attributes"),i=e("./defaults");t.exports=function(e,t){function n(n,a){return r.coerce(e,t,o,n,a)}n("colorscale.sequential"),n("colorscale.sequentialminus"),n("colorscale.diverging");var l,s,u=t._colorAxes;function c(e,t){return r.coerce(l,s,o.coloraxis,e,t)}for(var f in u){var p=u[f];if(p[0])l=e[f]||{},s=a.newContainer(t,f,"coloraxis"),s._name=f,i(l,s,t,c,{prefix:"",cLetter:"c"});else{for(var d=0;d<p[2].length;d++)p[2][d]();delete t._colorAxes[f]}}}},{"../../lib":750,"../../plot_api/plot_template":788,"./defaults":625,"./layout_attributes":628}],630:[function(e,t,n){"use strict";var r=e("tinycolor2"),a={Greys:[[0,"rgb(0,0,0)"],[1,"rgb(255,255,255)"]],YlGnBu:[[0,"rgb(8,29,88)"],[.125,"rgb(37,52,148)"],[.25,"rgb(34,94,168)"],[.375,"rgb(29,145,192)"],[.5,"rgb(65,182,196)"],[.625,"rgb(127,205,187)"],[.75,"rgb(199,233,180)"],[.875,"rgb(237,248,217)"],[1,"rgb(255,255,217)"]],Greens:[[0,"rgb(0,68,27)"],[.125,"rgb(0,109,44)"],[.25,"rgb(35,139,69)"],[.375,"rgb(65,171,93)"],[.5,"rgb(116,196,118)"],[.625,"rgb(161,217,155)"],[.75,"rgb(199,233,192)"],[.875,"rgb(229,245,224)"],[1,"rgb(247,252,245)"]],YlOrRd:[[0,"rgb(128,0,38)"],[.125,"rgb(189,0,38)"],[.25,"rgb(227,26,28)"],[.375,"rgb(252,78,42)"],[.5,"rgb(253,141,60)"],[.625,"rgb(254,178,76)"],[.75,"rgb(254,217,118)"],[.875,"rgb(255,237,160)"],[1,"rgb(255,255,204)"]],Bluered:[[0,"rgb(0,0,255)"],[1,"rgb(255,0,0)"]],RdBu:[[0,"rgb(5,10,172)"],[.35,"rgb(106,137,247)"],[.5,"rgb(190,190,190)"],[.6,"rgb(220,170,132)"],[.7,"rgb(230,145,90)"],[1,"rgb(178,10,28)"]],Reds:[[0,"rgb(220,220,220)"],[.2,"rgb(245,195,157)"],[.4,"rgb(245,160,105)"],[1,"rgb(178,10,28)"]],Blues:[[0,"rgb(5,10,172)"],[.35,"rgb(40,60,190)"],[.5,"rgb(70,100,245)"],[.6,"rgb(90,120,245)"],[.7,"rgb(106,137,247)"],[1,"rgb(220,220,220)"]],Picnic:[[0,"rgb(0,0,255)"],[.1,"rgb(51,153,255)"],[.2,"rgb(102,204,255)"],[.3,"rgb(153,204,255)"],[.4,"rgb(204,204,255)"],[.5,"rgb(255,255,255)"],[.6,"rgb(255,204,255)"],[.7,"rgb(255,153,255)"],[.8,"rgb(255,102,204)"],[.9,"rgb(255,102,102)"],[1,"rgb(255,0,0)"]],Rainbow:[[0,"rgb(150,0,90)"],[.125,"rgb(0,0,200)"],[.25,"rgb(0,25,255)"],[.375,"rgb(0,152,255)"],[.5,"rgb(44,255,150)"],[.625,"rgb(151,255,0)"],[.75,"rgb(255,234,0)"],[.875,"rgb(255,111,0)"],[1,"rgb(255,0,0)"]],Portland:[[0,"rgb(12,51,131)"],[.25,"rgb(10,136,186)"],[.5,"rgb(242,211,56)"],[.75,"rgb(242,143,56)"],[1,"rgb(217,30,30)"]],Jet:[[0,"rgb(0,0,131)"],[.125,"rgb(0,60,170)"],[.375,"rgb(5,255,255)"],[.625,"rgb(255,255,0)"],[.875,"rgb(250,0,0)"],[1,"rgb(128,0,0)"]],Hot:[[0,"rgb(0,0,0)"],[.3,"rgb(230,0,0)"],[.6,"rgb(255,210,0)"],[1,"rgb(255,255,255)"]],Blackbody:[[0,"rgb(0,0,0)"],[.2,"rgb(230,0,0)"],[.4,"rgb(230,210,0)"],[.7,"rgb(255,255,255)"],[1,"rgb(160,200,255)"]],Earth:[[0,"rgb(0,0,130)"],[.1,"rgb(0,180,180)"],[.2,"rgb(40,210,40)"],[.4,"rgb(230,230,50)"],[.6,"rgb(120,70,20)"],[1,"rgb(255,255,255)"]],Electric:[[0,"rgb(0,0,0)"],[.15,"rgb(30,0,100)"],[.4,"rgb(120,0,100)"],[.6,"rgb(160,90,0)"],[.8,"rgb(230,200,0)"],[1,"rgb(255,250,220)"]],Viridis:[[0,"#440154"],[.06274509803921569,"#48186a"],[.12549019607843137,"#472d7b"],[.18823529411764706,"#424086"],[.25098039215686274,"#3b528b"],[.3137254901960784,"#33638d"],[.3764705882352941,"#2c728e"],[.4392156862745098,"#26828e"],[.5019607843137255,"#21918c"],[.5647058823529412,"#1fa088"],[.6274509803921569,"#28ae80"],[.6901960784313725,"#3fbc73"],[.7529411764705882,"#5ec962"],[.8156862745098039,"#84d44b"],[.8784313725490196,"#addc30"],[.9411764705882353,"#d8e219"],[1,"#fde725"]],Cividis:[[0,"rgb(0,32,76)"],[.058824,"rgb(0,42,102)"],[.117647,"rgb(0,52,110)"],[.176471,"rgb(39,63,108)"],[.235294,"rgb(60,74,107)"],[.294118,"rgb(76,85,107)"],[.352941,"rgb(91,95,109)"],[.411765,"rgb(104,106,112)"],[.470588,"rgb(117,117,117)"],[.529412,"rgb(131,129,120)"],[.588235,"rgb(146,140,120)"],[.647059,"rgb(161,152,118)"],[.705882,"rgb(176,165,114)"],[.764706,"rgb(192,177,109)"],[.823529,"rgb(209,191,102)"],[.882353,"rgb(225,204,92)"],[.941176,"rgb(243,219,79)"],[1,"rgb(255,233,69)"]]},o=a.RdBu;function i(e,t){if(t||(t=o),!e)return t;function n(){try{e=a[e]||JSON.parse(e)}catch(n){e=t}}return"string"===typeof e&&(n(),"string"===typeof e&&n()),l(e)?e:t}function l(e){var t=0;if(!Array.isArray(e)||e.length<2)return!1;if(!e[0]||!e[e.length-1])return!1;if(0!==+e[0][0]||1!==+e[e.length-1][0])return!1;for(var n=0;n<e.length;n++){var a=e[n];if(2!==a.length||+a[0]<t||!r(a[1]).isValid())return!1;t=+a[0]}return!0}function s(e){return void 0!==a[e]||l(e)}t.exports={scales:a,defaultScale:o,get:i,isValid:s}},{tinycolor2:548}],631:[function(e,t,n){"use strict";t.exports=function(e,t,n,r,a){var o=(e-n)/(r-n),i=o+t/(r-n),l=(o+i)/2;return"left"===a||"bottom"===a?o:"center"===a||"middle"===a?l:"right"===a||"top"===a?i:o<2/3-l?o:i>4/3-l?i:l}},{}],632:[function(e,t,n){"use strict";var r=e("../../lib"),a=[["sw-resize","s-resize","se-resize"],["w-resize","move","e-resize"],["nw-resize","n-resize","ne-resize"]];t.exports=function(e,t,n,o){return e="left"===n?0:"center"===n?1:"right"===n?2:r.constrain(Math.floor(3*e),0,2),t="bottom"===o?0:"middle"===o?1:"top"===o?2:r.constrain(Math.floor(3*t),0,2),a[t][e]}},{"../../lib":750}],633:[function(e,t,n){"use strict";n.selectMode=function(e){return"lasso"===e||"select"===e},n.drawMode=function(e){return"drawclosedpath"===e||"drawopenpath"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},n.openMode=function(e){return"drawline"===e||"drawopenpath"===e},n.rectMode=function(e){return"select"===e||"drawline"===e||"drawrect"===e||"drawcircle"===e},n.freeMode=function(e){return"lasso"===e||"drawclosedpath"===e||"drawopenpath"===e},n.selectingOrDrawing=function(e){return n.freeMode(e)||n.rectMode(e)}},{}],634:[function(e,t,n){"use strict";var r=e("mouse-event-offset"),a=e("has-hover"),o=e("has-passive-events"),i=e("../../lib").removeElement,l=e("../../plots/cartesian/constants"),s=t.exports={};s.align=e("./align"),s.getCursor=e("./cursor");var u=e("./unhover");function c(){var e=document.createElement("div");e.className="dragcover";var t=e.style;return t.position="fixed",t.left=0,t.right=0,t.top=0,t.bottom=0,t.zIndex=999999999,t.background="none",document.body.appendChild(e),e}function f(e){return r(e.changedTouches?e.changedTouches[0]:e,document.body)}s.unhover=u.wrapped,s.unhoverRaw=u.raw,s.init=function(e){var t,n,r,u,p,d,h,v,m=e.gd,y=1,g=m._context.doubleClickDelay,b=e.element;function x(e,t,n){return Math.abs(e)<n&&(e=0),Math.abs(t)<n&&(t=0),[e,t]}m._mouseDownTime||(m._mouseDownTime=0),b.style.pointerEvents="all",b.onmousedown=w,o?(b._ontouchstart&&b.removeEventListener("touchstart",b._ontouchstart),b._ontouchstart=w,b.addEventListener("touchstart",w,{passive:!1})):b.ontouchstart=w;var _=e.clampFn||x;function w(o){m._dragged=!1,m._dragging=!0;var i=f(o);t=i[0],n=i[1],h=o.target,d=o,v=2===o.buttons||o.ctrlKey,"undefined"===typeof o.clientX&&"undefined"===typeof o.clientY&&(o.clientX=t,o.clientY=n),r=(new Date).getTime(),r-m._mouseDownTime<g?y+=1:(y=1,m._mouseDownTime=r),e.prepFn&&e.prepFn(o,t,n),a&&!v?(p=c(),p.style.cursor=window.getComputedStyle(b).cursor):a||(p=document,u=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(b).cursor),document.addEventListener("mouseup",T),document.addEventListener("touchend",T),!1!==e.dragmode&&(o.preventDefault(),document.addEventListener("mousemove",k),document.addEventListener("touchmove",k,{passive:!1}))}function k(r){r.preventDefault();var a=f(r),o=e.minDrag||l.MINDRAG,i=_(a[0]-t,a[1]-n,o),u=i[0],c=i[1];(u||c)&&(m._dragged=!0,s.unhover(m)),m._dragged&&e.moveFn&&!v&&(m._dragdata={element:b,dx:u,dy:c},e.moveFn(u,c))}function T(t){if(delete m._dragdata,!1!==e.dragmode&&(t.preventDefault(),document.removeEventListener("mousemove",k),document.removeEventListener("touchmove",k)),document.removeEventListener("mouseup",T),document.removeEventListener("touchend",T),a?i(p):u&&(p.documentElement.style.cursor=u,u=null),m._dragging){if(m._dragging=!1,(new Date).getTime()-m._mouseDownTime>g&&(y=Math.max(y-1,1)),m._dragged)e.doneFn&&e.doneFn();else if(e.clickFn&&e.clickFn(y,d),!v){var n;try{n=new MouseEvent("click",t)}catch(o){var r=f(t);n=document.createEvent("MouseEvents"),n.initMouseEvent("click",t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,r[0],r[1],t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}h.dispatchEvent(n)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},s.coverSlip=c},{"../../lib":750,"../../plots/cartesian/constants":805,"./align":631,"./cursor":632,"./unhover":635,"has-hover":414,"has-passive-events":415,"mouse-event-offset":458}],635:[function(e,t,n){"use strict";var r=e("../../lib/events"),a=e("../../lib/throttle"),o=e("../../lib/dom").getGraphDiv,i=e("../fx/constants"),l=t.exports={};l.wrapped=function(e,t,n){e=o(e),e._fullLayout&&a.clear(e._fullLayout._uid+i.HOVERID),l.raw(e,t,n)},l.raw=function(e,t){var n=e._fullLayout,a=e._hoverdata;t||(t={}),t.target&&!1===r.triggerHandler(e,"plotly_beforehover",t)||(n._hoverlayer.selectAll("g").remove(),n._hoverlayer.selectAll("line").remove(),n._hoverlayer.selectAll("circle").remove(),e._hoverdata=void 0,t.target&&a&&e.emit("plotly_unhover",{event:t,points:a}))}},{"../../lib/dom":738,"../../lib/events":739,"../../lib/throttle":775,"../fx/constants":649}],636:[function(e,t,n){"use strict";n.dash={valType:"string",values:["solid","dot","dash","longdash","dashdot","longdashdot"],dflt:"solid",editType:"style"}},{}],637:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),o=e("tinycolor2"),i=e("../../registry"),l=e("../color"),s=e("../colorscale"),u=e("../../lib"),c=e("../../lib/svg_text_utils"),f=e("../../constants/xmlns_namespaces"),p=e("../../constants/alignment"),d=p.LINE_SPACING,h=e("../../constants/interactions").DESELECTDIM,v=e("../../traces/scatter/subtypes"),m=e("../../traces/scatter/make_bubble_size_func"),y=e("../../components/fx/helpers").appendArrayPointValue,g=t.exports={};g.font=function(e,t,n,r){u.isPlainObject(t)&&(r=t.color,n=t.size,t=t.family),t&&e.style("font-family",t),n+1&&e.style("font-size",n+"px"),r&&e.call(l.fill,r)},g.setPosition=function(e,t,n){e.attr("x",t).attr("y",n)},g.setSize=function(e,t,n){e.attr("width",t).attr("height",n)},g.setRect=function(e,t,n,r,a){e.call(g.setPosition,t,n).call(g.setSize,r,a)},g.translatePoint=function(e,t,n,r){var o=n.c2p(e.x),i=r.c2p(e.y);return!!(a(o)&&a(i)&&t.node())&&("text"===t.node().nodeName?t.attr("x",o).attr("y",i):t.attr("transform","translate("+o+","+i+")"),!0)},g.translatePoints=function(e,t,n){e.each((function(e){var a=r.select(this);g.translatePoint(e,a,t,n)}))},g.hideOutsideRangePoint=function(e,t,n,r,a,o){t.attr("display",n.isPtWithinRange(e,a)&&r.isPtWithinRange(e,o)?null:"none")},g.hideOutsideRangePoints=function(e,t){if(t._hasClipOnAxisFalse){var n=t.xaxis,a=t.yaxis;e.each((function(t){var o=t[0].trace,l=o.xcalendar,s=o.ycalendar,u=i.traceIs(o,"bar-like")?".bartext":".point,.textpoint";e.selectAll(u).each((function(e){g.hideOutsideRangePoint(e,r.select(this),n,a,l,s)}))}))}},g.crispRound=function(e,t,n){return t&&a(t)?e._context.staticPlot?t:t<1?1:Math.round(t):n||0},g.singleLineStyle=function(e,t,n,r,a){t.style("fill","none");var o=(((e||[])[0]||{}).trace||{}).line||{},i=n||o.width||0,s=a||o.dash||"";l.stroke(t,r||o.color),g.dashLine(t,s,i)},g.lineGroupStyle=function(e,t,n,a){e.style("fill","none").each((function(e){var o=(((e||[])[0]||{}).trace||{}).line||{},i=t||o.width||0,s=a||o.dash||"";r.select(this).call(l.stroke,n||o.color).call(g.dashLine,s,i)}))},g.dashLine=function(e,t,n){n=+n||0,t=g.dashStyle(t,n),e.style({"stroke-dasharray":t,"stroke-width":n+"px"})},g.dashStyle=function(e,t){t=+t||1;var n=Math.max(t,3);return"solid"===e?e="":"dot"===e?e=n+"px,"+n+"px":"dash"===e?e=3*n+"px,"+3*n+"px":"longdash"===e?e=5*n+"px,"+5*n+"px":"dashdot"===e?e=3*n+"px,"+n+"px,"+n+"px,"+n+"px":"longdashdot"===e&&(e=5*n+"px,"+2*n+"px,"+n+"px,"+2*n+"px"),e},g.singleFillStyle=function(e){var t=r.select(e.node()),n=t.data(),a=(((n[0]||[])[0]||{}).trace||{}).fillcolor;a&&e.call(l.fill,a)},g.fillGroupStyle=function(e){e.style("stroke-width",0).each((function(e){var t=r.select(this);e[0].trace&&t.call(l.fill,e[0].trace.fillcolor)}))};var b=e("./symbol_defs");g.symbolNames=[],g.symbolFuncs=[],g.symbolNeedLines={},g.symbolNoDot={},g.symbolNoFill={},g.symbolList=[],Object.keys(b).forEach((function(e){var t=b[e],n=t.n;g.symbolList.push(n,String(n),e,n+100,String(n+100),e+"-open"),g.symbolNames[n]=e,g.symbolFuncs[n]=t.f,t.needLine&&(g.symbolNeedLines[n]=!0),t.noDot?g.symbolNoDot[n]=!0:g.symbolList.push(n+200,String(n+200),e+"-dot",n+300,String(n+300),e+"-open-dot"),t.noFill&&(g.symbolNoFill[n]=!0)}));var x=g.symbolNames.length,_="M0,0.5L0.5,0L0,-0.5L-0.5,0Z";function w(e,t){var n=e%100;return g.symbolFuncs[n](t)+(e>=200?_:"")}g.symbolNumber=function(e){if(a(e))e=+e;else if("string"===typeof e){var t=0;e.indexOf("-open")>0&&(t=100,e=e.replace("-open","")),e.indexOf("-dot")>0&&(t+=200,e=e.replace("-dot","")),e=g.symbolNames.indexOf(e),e>=0&&(e+=t)}return e%100>=x||e>=400?0:Math.floor(Math.max(e,0))};var k={x1:1,x2:0,y1:0,y2:0},T={x1:0,x2:0,y1:1,y2:0},E=r.format("~.1f"),O={radial:{node:"radialGradient"},radialreversed:{node:"radialGradient",reversed:!0},horizontal:{node:"linearGradient",attrs:k},horizontalreversed:{node:"linearGradient",attrs:k,reversed:!0},vertical:{node:"linearGradient",attrs:T},verticalreversed:{node:"linearGradient",attrs:T,reversed:!0}};g.gradient=function(e,t,n,a,i,s){for(var c=i.length,f=O[a],p=new Array(c),d=0;d<c;d++)f.reversed?p[c-1-d]=[E(100*(1-i[d][0])),i[d][1]]:p[d]=[E(100*i[d][0]),i[d][1]];var h=t._fullLayout,v="g"+h._uid+"-"+n,m=h._defs.select(".gradients").selectAll("#"+v).data([a+p.join(";")],u.identity);m.exit().remove(),m.enter().append(f.node).each((function(){var e=r.select(this);f.attrs&&e.attr(f.attrs),e.attr("id",v);var t=e.selectAll("stop").data(p);t.exit().remove(),t.enter().append("stop"),t.each((function(e){var t=o(e[1]);r.select(this).attr({offset:e[0]+"%","stop-color":l.tinyRGB(t),"stop-opacity":t.getAlpha()})}))})),e.style(s,z(v,t)).style(s+"-opacity",null);var y=function(e){return"."+e.attr("class").replace(/\s/g,".")},g=y(r.select(e.node().parentNode))+">"+y(e);h._gradientUrlQueryParts[g]=1},g.initGradients=function(e){var t=e._fullLayout,n=u.ensureSingle(t._defs,"g","gradients");n.selectAll("linearGradient,radialGradient").remove(),t._gradientUrlQueryParts={}},g.pointStyle=function(e,t,n){if(e.size()){var a=g.makePointStyleFns(t);e.each((function(e){g.singlePointStyle(e,r.select(this),t,a,n)}))}},g.singlePointStyle=function(e,t,n,r,a){var o=n.marker,i=o.line;if(t.style("opacity",r.selectedOpacityFn?r.selectedOpacityFn(e):void 0===e.mo?o.opacity:e.mo),r.ms2mrc){var s;s="various"===e.ms||"various"===o.size?3:r.ms2mrc(e.ms),e.mrc=s,r.selectedSizeFn&&(s=e.mrc=r.selectedSizeFn(e));var c=g.symbolNumber(e.mx||o.symbol)||0;e.om=c%200>=100,t.attr("d",w(c,s))}var f,p,d,h=!1;if(e.so)d=i.outlierwidth,p=i.outliercolor,f=o.outliercolor;else{var v=(i||{}).width;d=(e.mlw+1||v+1||(e.trace?(e.trace.marker.line||{}).width:0)+1)-1||0,p="mlc"in e?e.mlcc=r.lineScale(e.mlc):u.isArrayOrTypedArray(i.color)?l.defaultLine:i.color,u.isArrayOrTypedArray(o.color)&&(f=l.defaultLine,h=!0),f="mc"in e?e.mcc=r.markerScale(e.mc):o.color||"rgba(0,0,0,0)",r.selectedColorFn&&(f=r.selectedColorFn(e))}if(e.om)t.call(l.stroke,f).style({"stroke-width":(d||1)+"px",fill:"none"});else{t.style("stroke-width",(e.isBlank?0:d)+"px");var m=o.gradient,y=e.mgt;if(y?h=!0:y=m&&m.type,Array.isArray(y)&&(y=y[0],O[y]||(y=0)),y&&"none"!==y){var b=e.mgc;b?h=!0:b=m.color;var x=n.uid;h&&(x+="-"+e.i),g.gradient(t,a,x,y,[[0,b],[1,f]],"fill")}else l.fill(t,f);d&&l.stroke(t,p)}},g.makePointStyleFns=function(e){var t={},n=e.marker;return t.markerScale=g.tryColorscale(n,""),t.lineScale=g.tryColorscale(n,"line"),i.traceIs(e,"symbols")&&(t.ms2mrc=v.isBubble(e)?m(e):function(){return(n.size||6)/2}),e.selectedpoints&&u.extendFlat(t,g.makeSelectedPointStyleFns(e)),t},g.makeSelectedPointStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},a=e.marker||{},o=n.marker||{},l=r.marker||{},s=a.opacity,c=o.opacity,f=l.opacity,p=void 0!==c,d=void 0!==f;(u.isArrayOrTypedArray(s)||p||d)&&(t.selectedOpacityFn=function(e){var t=void 0===e.mo?a.opacity:e.mo;return e.selected?p?c:t:d?f:h*t});var v=a.color,m=o.color,y=l.color;(m||y)&&(t.selectedColorFn=function(e){var t=e.mcc||v;return e.selected?m||t:y||t});var g=a.size,b=o.size,x=l.size,_=void 0!==b,w=void 0!==x;return i.traceIs(e,"symbols")&&(_||w)&&(t.selectedSizeFn=function(e){var t=e.mrc||g/2;return e.selected?_?b/2:t:w?x/2:t}),t},g.makeSelectedTextStyleFns=function(e){var t={},n=e.selected||{},r=e.unselected||{},a=e.textfont||{},o=n.textfont||{},i=r.textfont||{},s=a.color,u=o.color,c=i.color;return t.selectedTextColorFn=function(e){var t=e.tc||s;return e.selected?u||t:c||(u?t:l.addOpacity(t,h))},t},g.selectedPointStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=g.makeSelectedPointStyleFns(t),a=t.marker||{},o=[];n.selectedOpacityFn&&o.push((function(e,t){e.style("opacity",n.selectedOpacityFn(t))})),n.selectedColorFn&&o.push((function(e,t){l.fill(e,n.selectedColorFn(t))})),n.selectedSizeFn&&o.push((function(e,t){var r=t.mx||a.symbol||0,o=n.selectedSizeFn(t);e.attr("d",w(g.symbolNumber(r),o)),t.mrc2=o})),o.length&&e.each((function(e){for(var t=r.select(this),n=0;n<o.length;n++)o[n](t,e)}))}},g.tryColorscale=function(e,t){var n=t?u.nestedProperty(e,t).get():e;if(n){var r=n.color;if((n.colorscale||n._colorAx)&&u.isArrayOrTypedArray(r))return s.makeColorScaleFuncFromTrace(n)}return u.identity};var M={start:1,end:-1,middle:0,bottom:1,top:-1};function S(e,t,n,a){var o=r.select(e.node().parentNode),i=-1!==t.indexOf("top")?"top":-1!==t.indexOf("bottom")?"bottom":"middle",l=-1!==t.indexOf("left")?"end":-1!==t.indexOf("right")?"start":"middle",s=a?a/.8+1:0,u=(c.lineCount(e)-1)*d+1,f=M[l]*s,p=.75*n+M[i]*s+(M[i]-1)*u*n/2;e.attr("text-anchor",l),o.attr("transform","translate("+f+","+p+")")}function C(e,t){var n=e.ts||t.textfont.size;return a(n)&&n>0?n:0}g.textPointStyle=function(e,t,n){if(e.size()){var a;if(t.selectedpoints){var o=g.makeSelectedTextStyleFns(t);a=o.selectedTextColorFn}var i=t.texttemplate,l=n._fullLayout;e.each((function(e){var o=r.select(this),s=i?u.extractOption(e,t,"txt","texttemplate"):u.extractOption(e,t,"tx","text");if(s||0===s){if(i){var f=t._module.formatLabels?t._module.formatLabels(e,t,l):{},p={};y(p,t,e.i);var d=t._meta||{};s=u.texttemplateString(s,f,l._d3locale,p,e,d)}var h=e.tp||t.textposition,v=C(e,t),m=a?a(e):e.tc||t.textfont.color;o.call(g.font,e.tf||t.textfont.family,v,m).text(s).call(c.convertToTspans,n).call(S,h,v,e.mrc)}else o.remove()}))}},g.selectedTextStyle=function(e,t){if(e.size()&&t.selectedpoints){var n=g.makeSelectedTextStyleFns(t);e.each((function(e){var a=r.select(this),o=n.selectedTextColorFn(e),i=e.tp||t.textposition,s=C(e,t);l.fill(a,o),S(a,i,s,e.mrc2||e.mrc)}))}};var A=.5;function P(e,t,n,a){var o=e[0]-t[0],i=e[1]-t[1],l=n[0]-t[0],s=n[1]-t[1],u=Math.pow(o*o+i*i,A/2),c=Math.pow(l*l+s*s,A/2),f=(c*c*o-u*u*l)*a,p=(c*c*i-u*u*s)*a,d=3*c*(u+c),h=3*u*(u+c);return[[r.round(t[0]+(d&&f/d),2),r.round(t[1]+(d&&p/d),2)],[r.round(t[0]-(h&&f/h),2),r.round(t[1]-(h&&p/h),2)]]}g.smoothopen=function(e,t){if(e.length<3)return"M"+e.join("L");var n,r="M"+e[0],a=[];for(n=1;n<e.length-1;n++)a.push(P(e[n-1],e[n],e[n+1],t));for(r+="Q"+a[0][0]+" "+e[1],n=2;n<e.length-1;n++)r+="C"+a[n-2][1]+" "+a[n-1][0]+" "+e[n];return r+="Q"+a[e.length-3][1]+" "+e[e.length-1],r},g.smoothclosed=function(e,t){if(e.length<3)return"M"+e.join("L")+"Z";var n,r="M"+e[0],a=e.length-1,o=[P(e[a],e[0],e[1],t)];for(n=1;n<a;n++)o.push(P(e[n-1],e[n],e[n+1],t));for(o.push(P(e[a-1],e[a],e[0],t)),n=1;n<=a;n++)r+="C"+o[n-1][1]+" "+o[n][0]+" "+e[n];return r+="C"+o[a][1]+" "+o[0][0]+" "+e[0]+"Z",r};var L={hv:function(e,t){return"H"+r.round(t[0],2)+"V"+r.round(t[1],2)},vh:function(e,t){return"V"+r.round(t[1],2)+"H"+r.round(t[0],2)},hvh:function(e,t){return"H"+r.round((e[0]+t[0])/2,2)+"V"+r.round(t[1],2)+"H"+r.round(t[0],2)},vhv:function(e,t){return"V"+r.round((e[1]+t[1])/2,2)+"H"+r.round(t[0],2)+"V"+r.round(t[1],2)}},D=function(e,t){return"L"+r.round(t[0],2)+","+r.round(t[1],2)};g.steps=function(e){var t=L[e]||D;return function(e){for(var n="M"+r.round(e[0][0],2)+","+r.round(e[0][1],2),a=1;a<e.length;a++)n+=t(e[a-1],e[a]);return n}},g.makeTester=function(){var e=u.ensureSingleById(r.select("body"),"svg","js-plotly-tester",(function(e){e.attr(f.svgAttrs).style({position:"absolute",left:"-10000px",top:"-10000px",width:"9000px",height:"9000px","z-index":"1"})})),t=u.ensureSingle(e,"path","js-reference-point",(function(e){e.attr("d","M0,0H1V1H0Z").style({"stroke-width":0,fill:"black"})}));g.tester=e,g.testref=t},g.savedBBoxes={};var j=0,I=1e4;function R(e){var t=e.getAttribute("data-unformatted");if(null!==t)return t+e.getAttribute("data-math")+e.getAttribute("text-anchor")+e.getAttribute("style")}function z(e,t){if(!e)return null;var n=t._context,r=n._exportedPlot?"":n._baseUrl||"";return"url('"+r+"#"+e+"')"}g.bBox=function(e,t,n){var a,o,i;if(n||(n=R(e)),n){if(a=g.savedBBoxes[n],a)return u.extendFlat({},a)}else if(1===e.childNodes.length){var l=e.childNodes[0];if(n=R(l),n){var s=+l.getAttribute("x")||0,f=+l.getAttribute("y")||0,p=l.getAttribute("transform");if(!p){var d=g.bBox(l,!1,n);return s&&(d.left+=s,d.right+=s),f&&(d.top+=f,d.bottom+=f),d}if(n+="~"+s+"~"+f+"~"+p,a=g.savedBBoxes[n],a)return u.extendFlat({},a)}}t?o=e:(i=g.tester.node(),o=e.cloneNode(!0),i.appendChild(o)),r.select(o).attr("transform",null).call(c.positionText,0,0);var h=o.getBoundingClientRect(),v=g.testref.node().getBoundingClientRect();t||i.removeChild(o);var m={height:h.height,width:h.width,left:h.left-v.left,top:h.top-v.top,right:h.right-v.left,bottom:h.bottom-v.top};return j>=I&&(g.savedBBoxes={},j=0),n&&(g.savedBBoxes[n]=m),j++,u.extendFlat({},m)},g.setClipUrl=function(e,t,n){e.attr("clip-path",z(t,n))},g.getTranslate=function(e){var t=/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,n=e.attr?"attr":"getAttribute",r=e[n]("transform")||"",a=r.replace(t,(function(e,t,n){return[t,n].join(" ")})).split(" ");return{x:+a[0]||0,y:+a[1]||0}},g.setTranslate=function(e,t,n){var r=/(\btranslate\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return t=t||0,n=n||0,i=i.replace(r,"").trim(),i+=" translate("+t+", "+n+")",i=i.trim(),e[o]("transform",i),i},g.getScale=function(e){var t=/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,n=e.attr?"attr":"getAttribute",r=e[n]("transform")||"",a=r.replace(t,(function(e,t,n){return[t,n].join(" ")})).split(" ");return{x:+a[0]||1,y:+a[1]||1}},g.setScale=function(e,t,n){var r=/(\bscale\(.*?\);?)/,a=e.attr?"attr":"getAttribute",o=e.attr?"attr":"setAttribute",i=e[a]("transform")||"";return t=t||1,n=n||1,i=i.replace(r,"").trim(),i+=" scale("+t+", "+n+")",i=i.trim(),e[o]("transform",i),i};var N=/\s*sc.*/;g.setPointGroupScale=function(e,t,n){if(t=t||1,n=n||1,e){var r=1===t&&1===n?"":" scale("+t+","+n+")";e.each((function(){var e=(this.getAttribute("transform")||"").replace(N,"");e+=r,e=e.trim(),this.setAttribute("transform",e)}))}};var F=/translate\([^)]*\)\s*$/;g.setTextPointsScale=function(e,t,n){e&&e.each((function(){var e,a=r.select(this),o=a.select("text");if(o.node()){var i=parseFloat(o.attr("x")||0),l=parseFloat(o.attr("y")||0),s=(a.attr("transform")||"").match(F);e=1===t&&1===n?[]:["translate("+i+","+l+")","scale("+t+","+n+")","translate("+-i+","+-l+")"],s&&e.push(s),a.attr("transform",e.join(" "))}}))}},{"../../components/fx/helpers":651,"../../constants/alignment":717,"../../constants/interactions":724,"../../constants/xmlns_namespaces":726,"../../lib":750,"../../lib/svg_text_utils":774,"../../registry":882,"../../traces/scatter/make_bubble_size_func":1175,"../../traces/scatter/subtypes":1183,"../color":615,"../colorscale":627,"./symbol_defs":638,d3:169,"fast-isnumeric":241,tinycolor2:548}],638:[function(e,t,n){"use strict";var r=e("d3");t.exports={circle:{n:0,f:function(e){var t=r.round(e,2);return"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"}},square:{n:1,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"}},diamond:{n:2,f:function(e){var t=r.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"Z"}},cross:{n:3,f:function(e){var t=r.round(.4*e,2),n=r.round(1.2*e,2);return"M"+n+","+t+"H"+t+"V"+n+"H-"+t+"V"+t+"H-"+n+"V-"+t+"H-"+t+"V-"+n+"H"+t+"V-"+t+"H"+n+"Z"}},x:{n:4,f:function(e){var t=r.round(.8*e/Math.sqrt(2),2),n="l"+t+","+t,a="l"+t+",-"+t,o="l-"+t+",-"+t,i="l-"+t+","+t;return"M0,"+t+n+a+o+a+o+i+o+i+n+i+n+"Z"}},"triangle-up":{n:5,f:function(e){var t=r.round(2*e/Math.sqrt(3),2),n=r.round(e/2,2),a=r.round(e,2);return"M-"+t+","+n+"H"+t+"L0,-"+a+"Z"}},"triangle-down":{n:6,f:function(e){var t=r.round(2*e/Math.sqrt(3),2),n=r.round(e/2,2),a=r.round(e,2);return"M-"+t+",-"+n+"H"+t+"L0,"+a+"Z"}},"triangle-left":{n:7,f:function(e){var t=r.round(2*e/Math.sqrt(3),2),n=r.round(e/2,2),a=r.round(e,2);return"M"+n+",-"+t+"V"+t+"L-"+a+",0Z"}},"triangle-right":{n:8,f:function(e){var t=r.round(2*e/Math.sqrt(3),2),n=r.round(e/2,2),a=r.round(e,2);return"M-"+n+",-"+t+"V"+t+"L"+a+",0Z"}},"triangle-ne":{n:9,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M-"+n+",-"+t+"H"+t+"V"+n+"Z"}},"triangle-se":{n:10,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M"+t+",-"+n+"V"+t+"H-"+n+"Z"}},"triangle-sw":{n:11,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M"+n+","+t+"H-"+t+"V-"+n+"Z"}},"triangle-nw":{n:12,f:function(e){var t=r.round(.6*e,2),n=r.round(1.2*e,2);return"M-"+t+","+n+"V-"+t+"H"+n+"Z"}},pentagon:{n:13,f:function(e){var t=r.round(.951*e,2),n=r.round(.588*e,2),a=r.round(-e,2),o=r.round(-.309*e,2),i=r.round(.809*e,2);return"M"+t+","+o+"L"+n+","+i+"H-"+n+"L-"+t+","+o+"L0,"+a+"Z"}},hexagon:{n:14,f:function(e){var t=r.round(e,2),n=r.round(e/2,2),a=r.round(e*Math.sqrt(3)/2,2);return"M"+a+",-"+n+"V"+n+"L0,"+t+"L-"+a+","+n+"V-"+n+"L0,-"+t+"Z"}},hexagon2:{n:15,f:function(e){var t=r.round(e,2),n=r.round(e/2,2),a=r.round(e*Math.sqrt(3)/2,2);return"M-"+n+","+a+"H"+n+"L"+t+",0L"+n+",-"+a+"H-"+n+"L-"+t+",0Z"}},octagon:{n:16,f:function(e){var t=r.round(.924*e,2),n=r.round(.383*e,2);return"M-"+n+",-"+t+"H"+n+"L"+t+",-"+n+"V"+n+"L"+n+","+t+"H-"+n+"L-"+t+","+n+"V-"+n+"Z"}},star:{n:17,f:function(e){var t=1.4*e,n=r.round(.225*t,2),a=r.round(.951*t,2),o=r.round(.363*t,2),i=r.round(.588*t,2),l=r.round(-t,2),s=r.round(-.309*t,2),u=r.round(.118*t,2),c=r.round(.809*t,2),f=r.round(.382*t,2);return"M"+n+","+s+"H"+a+"L"+o+","+u+"L"+i+","+c+"L0,"+f+"L-"+i+","+c+"L-"+o+","+u+"L-"+a+","+s+"H-"+n+"L0,"+l+"Z"}},hexagram:{n:18,f:function(e){var t=r.round(.66*e,2),n=r.round(.38*e,2),a=r.round(.76*e,2);return"M-"+a+",0l-"+n+",-"+t+"h"+a+"l"+n+",-"+t+"l"+n+","+t+"h"+a+"l-"+n+","+t+"l"+n+","+t+"h-"+a+"l-"+n+","+t+"l-"+n+",-"+t+"h-"+a+"Z"}},"star-triangle-up":{n:19,f:function(e){var t=r.round(e*Math.sqrt(3)*.8,2),n=r.round(.8*e,2),a=r.round(1.6*e,2),o=r.round(4*e,2),i="A "+o+","+o+" 0 0 1 ";return"M-"+t+","+n+i+t+","+n+i+"0,-"+a+i+"-"+t+","+n+"Z"}},"star-triangle-down":{n:20,f:function(e){var t=r.round(e*Math.sqrt(3)*.8,2),n=r.round(.8*e,2),a=r.round(1.6*e,2),o=r.round(4*e,2),i="A "+o+","+o+" 0 0 1 ";return"M"+t+",-"+n+i+"-"+t+",-"+n+i+"0,"+a+i+t+",-"+n+"Z"}},"star-square":{n:21,f:function(e){var t=r.round(1.1*e,2),n=r.round(2*e,2),a="A "+n+","+n+" 0 0 1 ";return"M-"+t+",-"+t+a+"-"+t+","+t+a+t+","+t+a+t+",-"+t+a+"-"+t+",-"+t+"Z"}},"star-diamond":{n:22,f:function(e){var t=r.round(1.4*e,2),n=r.round(1.9*e,2),a="A "+n+","+n+" 0 0 1 ";return"M-"+t+",0"+a+"0,"+t+a+t+",0"+a+"0,-"+t+a+"-"+t+",0Z"}},"diamond-tall":{n:23,f:function(e){var t=r.round(.7*e,2),n=r.round(1.4*e,2);return"M0,"+n+"L"+t+",0L0,-"+n+"L-"+t+",0Z"}},"diamond-wide":{n:24,f:function(e){var t=r.round(1.4*e,2),n=r.round(.7*e,2);return"M0,"+n+"L"+t+",0L0,-"+n+"L-"+t+",0Z"}},hourglass:{n:25,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"H-"+t+"L"+t+",-"+t+"H-"+t+"Z"},noDot:!0},bowtie:{n:26,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"V-"+t+"L-"+t+","+t+"V-"+t+"Z"},noDot:!0},"circle-cross":{n:27,f:function(e){var t=r.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"circle-x":{n:28,f:function(e){var t=r.round(e,2),n=r.round(e/Math.sqrt(2),2);return"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n+"M"+t+",0A"+t+","+t+" 0 1,1 0,-"+t+"A"+t+","+t+" 0 0,1 "+t+",0Z"},needLine:!0,noDot:!0},"square-cross":{n:29,f:function(e){var t=r.round(e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"square-x":{n:30,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t+"M"+t+","+t+"H-"+t+"V-"+t+"H"+t+"Z"},needLine:!0,noDot:!0},"diamond-cross":{n:31,f:function(e){var t=r.round(1.3*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM0,-"+t+"V"+t+"M-"+t+",0H"+t},needLine:!0,noDot:!0},"diamond-x":{n:32,f:function(e){var t=r.round(1.3*e,2),n=r.round(.65*e,2);return"M"+t+",0L0,"+t+"L-"+t+",0L0,-"+t+"ZM-"+n+",-"+n+"L"+n+","+n+"M-"+n+","+n+"L"+n+",-"+n},needLine:!0,noDot:!0},"cross-thin":{n:33,f:function(e){var t=r.round(1.4*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"x-thin":{n:34,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t+"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(e){var t=r.round(1.2*e,2),n=r.round(.85*e,2);return"M0,"+t+"V-"+t+"M"+t+",0H-"+t+"M"+n+","+n+"L-"+n+",-"+n+"M"+n+",-"+n+"L-"+n+","+n},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(e){var t=r.round(e/2,2),n=r.round(e,2);return"M"+t+","+n+"V-"+n+"m-"+n+",0V"+n+"M"+n+","+t+"H-"+n+"m0,-"+n+"H"+n},needLine:!0,noFill:!0},"y-up":{n:37,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),a=r.round(.8*e,2);return"M-"+t+","+a+"L0,0M"+t+","+a+"L0,0M0,-"+n+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-down":{n:38,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),a=r.round(.8*e,2);return"M-"+t+",-"+a+"L0,0M"+t+",-"+a+"L0,0M0,"+n+"L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-left":{n:39,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),a=r.round(.8*e,2);return"M"+a+","+t+"L0,0M"+a+",-"+t+"L0,0M-"+n+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"y-right":{n:40,f:function(e){var t=r.round(1.2*e,2),n=r.round(1.6*e,2),a=r.round(.8*e,2);return"M-"+a+","+t+"L0,0M-"+a+",-"+t+"L0,0M"+n+",0L0,0"},needLine:!0,noDot:!0,noFill:!0},"line-ew":{n:41,f:function(e){var t=r.round(1.4*e,2);return"M"+t+",0H-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ns":{n:42,f:function(e){var t=r.round(1.4*e,2);return"M0,"+t+"V-"+t},needLine:!0,noDot:!0,noFill:!0},"line-ne":{n:43,f:function(e){var t=r.round(e,2);return"M"+t+",-"+t+"L-"+t+","+t},needLine:!0,noDot:!0,noFill:!0},"line-nw":{n:44,f:function(e){var t=r.round(e,2);return"M"+t+","+t+"L-"+t+",-"+t},needLine:!0,noDot:!0,noFill:!0},"arrow-up":{n:45,f:function(e){var t=r.round(e,2),n=r.round(2*e,2);return"M0,0L-"+t+","+n+"H"+t+"Z"},noDot:!0},"arrow-down":{n:46,f:function(e){var t=r.round(e,2),n=r.round(2*e,2);return"M0,0L-"+t+",-"+n+"H"+t+"Z"},noDot:!0},"arrow-left":{n:47,f:function(e){var t=r.round(2*e,2),n=r.round(e,2);return"M0,0L"+t+",-"+n+"V"+n+"Z"},noDot:!0},"arrow-right":{n:48,f:function(e){var t=r.round(2*e,2),n=r.round(e,2);return"M0,0L-"+t+",-"+n+"V"+n+"Z"},noDot:!0},"arrow-bar-up":{n:49,f:function(e){var t=r.round(e,2),n=r.round(2*e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+","+n+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-down":{n:50,f:function(e){var t=r.round(e,2),n=r.round(2*e,2);return"M-"+t+",0H"+t+"M0,0L-"+t+",-"+n+"H"+t+"Z"},needLine:!0,noDot:!0},"arrow-bar-left":{n:51,f:function(e){var t=r.round(2*e,2),n=r.round(e,2);return"M0,-"+n+"V"+n+"M0,0L"+t+",-"+n+"V"+n+"Z"},needLine:!0,noDot:!0},"arrow-bar-right":{n:52,f:function(e){var t=r.round(2*e,2),n=r.round(e,2);return"M0,-"+n+"V"+n+"M0,0L-"+t+",-"+n+"V"+n+"Z"},needLine:!0,noDot:!0}}},{d3:169}],639:[function(e,t,n){"use strict";t.exports={visible:{valType:"boolean",editType:"calc"},type:{valType:"enumerated",values:["percent","constant","sqrt","data"],editType:"calc"},symmetric:{valType:"boolean",editType:"calc"},array:{valType:"data_array",editType:"calc"},arrayminus:{valType:"data_array",editType:"calc"},value:{valType:"number",min:0,dflt:10,editType:"calc"},valueminus:{valType:"number",min:0,dflt:10,editType:"calc"},traceref:{valType:"integer",min:0,dflt:0,editType:"style"},tracerefminus:{valType:"integer",min:0,dflt:0,editType:"style"},copy_ystyle:{valType:"boolean",editType:"plot"},copy_zstyle:{valType:"boolean",editType:"style"},color:{valType:"color",editType:"style"},thickness:{valType:"number",min:0,dflt:2,editType:"style"},width:{valType:"number",min:0,editType:"plot"},editType:"calc",_deprecated:{opacity:{valType:"number",editType:"style"}}}},{}],640:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../registry"),o=e("../../plots/cartesian/axes"),i=e("../../lib"),l=e("./compute_error");function s(e,t,n,a){var s=t["error_"+a]||{},u=s.visible&&-1!==["linear","log"].indexOf(n.type),c=[];if(u){for(var f=l(s),p=0;p<e.length;p++){var d=e[p],h=d.i;if(void 0===h)h=p;else if(null===h)continue;var v=d[a];if(r(n.c2l(v))){var m=f(v,h);if(r(m[0])&&r(m[1])){var y=d[a+"s"]=v-m[0],g=d[a+"h"]=v+m[1];c.push(y,g)}}}var b=n._id,x=t._extremes[b],_=o.findExtremes(n,c,i.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(_.min),x.max=x.max.concat(_.max)}}t.exports=function(e){for(var t=e.calcdata,n=0;n<t.length;n++){var r=t[n],i=r[0].trace;if(!0===i.visible&&a.traceIs(i,"errorBarsOK")){var l=o.getFromId(e,i.xaxis),u=o.getFromId(e,i.yaxis);s(r,i,l,"x"),s(r,i,u,"y")}}}},{"../../lib":750,"../../plots/cartesian/axes":799,"../../registry":882,"./compute_error":641,"fast-isnumeric":241}],641:[function(e,t,n){"use strict";function r(e,t){return"percent"===e?function(e){return Math.abs(e*t/100)}:"constant"===e?function(){return Math.abs(t)}:"sqrt"===e?function(e){return Math.sqrt(Math.abs(e))}:void 0}t.exports=function(e){var t=e.type,n=e.symmetric;if("data"===t){var a=e.array||[];if(n)return function(e,t){var n=+a[t];return[n,n]};var o=e.arrayminus||[];return function(e,t){var n=+a[t],r=+o[t];return isNaN(n)&&isNaN(r)?[NaN,NaN]:[r||0,n||0]}}var i=r(t,e.value),l=r(t,e.valueminus);return n||void 0===e.valueminus?function(e){var t=i(e);return[t,t]}:function(e){return[l(e),i(e)]}}},{}],642:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../registry"),o=e("../../lib"),i=e("../../plot_api/plot_template"),l=e("./attributes");t.exports=function(e,t,n,s){var u="error_"+s.axis,c=i.newContainer(t,u),f=e[u]||{};function p(e,t){return o.coerce(f,c,l,e,t)}var d=void 0!==f.array||void 0!==f.value||"sqrt"===f.type,h=p("visible",d);if(!1!==h){var v=p("type","array"in f?"data":"percent"),m=!0;"sqrt"!==v&&(m=p("symmetric",!(("data"===v?"arrayminus":"valueminus")in f))),"data"===v?(p("array"),p("traceref"),m||(p("arrayminus"),p("tracerefminus"))):"percent"!==v&&"constant"!==v||(p("value"),m||p("valueminus"));var y="copy_"+s.inherit+"style";if(s.inherit){var g=t["error_"+s.inherit];(g||{}).visible&&p(y,!(f.color||r(f.thickness)||r(f.width)))}s.inherit&&c[y]||(p("color",n),p("thickness"),p("width",a.traceIs(t,"gl3d")?0:4))}}},{"../../lib":750,"../../plot_api/plot_template":788,"../../registry":882,"./attributes":639,"fast-isnumeric":241}],643:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plot_api/edit_types").overrideAll,o=e("./attributes"),i={error_x:r.extendFlat({},o),error_y:r.extendFlat({},o)};delete i.error_x.copy_zstyle,delete i.error_y.copy_zstyle,delete i.error_y.copy_ystyle;var l={error_x:r.extendFlat({},o),error_y:r.extendFlat({},o),error_z:r.extendFlat({},o)};function s(e,t,n){(t.error_y||{}).visible&&(n.yerr=e.yh-e.y,t.error_y.symmetric||(n.yerrneg=e.y-e.ys)),(t.error_x||{}).visible&&(n.xerr=e.xh-e.x,t.error_x.symmetric||(n.xerrneg=e.x-e.xs))}delete l.error_x.copy_ystyle,delete l.error_y.copy_ystyle,delete l.error_z.copy_ystyle,delete l.error_z.copy_zstyle,t.exports={moduleType:"component",name:"errorbars",schema:{traces:{scatter:i,bar:i,histogram:i,scatter3d:a(l,"calc","nested"),scattergl:a(i,"calc","nested")}},supplyDefaults:e("./defaults"),calc:e("./calc"),makeComputeError:e("./compute_error"),plot:e("./plot"),style:e("./style"),hoverInfo:s}},{"../../lib":750,"../../plot_api/edit_types":781,"./attributes":639,"./calc":640,"./compute_error":641,"./defaults":642,"./plot":644,"./style":645}],644:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),o=e("../drawing"),i=e("../../traces/scatter/subtypes");function l(e,t,n){var r={x:t.c2p(e.x),y:n.c2p(e.y)};return void 0!==e.yh&&(r.yh=n.c2p(e.yh),r.ys=n.c2p(e.ys),a(r.ys)||(r.noYS=!0,r.ys=n.c2p(e.ys,!0))),void 0!==e.xh&&(r.xh=t.c2p(e.xh),r.xs=t.c2p(e.xs),a(r.xs)||(r.noXS=!0,r.xs=t.c2p(e.xs,!0))),r}t.exports=function(e,t,n,s){var u,c=n.xaxis,f=n.yaxis,p=s&&s.duration>0;t.each((function(t){var d,h=t[0].trace,v=h.error_x||{},m=h.error_y||{};h.ids&&(d=function(e){return e.id});var y=i.hasMarkers(h)&&h.marker.maxdisplayed>0;m.visible||v.visible||(t=[]);var g=r.select(this).selectAll("g.errorbar").data(t,d);if(g.exit().remove(),t.length){v.visible||g.selectAll("path.xerror").remove(),m.visible||g.selectAll("path.yerror").remove(),g.style("opacity",1);var b=g.enter().append("g").classed("errorbar",!0);p&&b.style("opacity",0).transition().duration(s.duration).style("opacity",1),o.setClipUrl(g,n.layerClipId,e),g.each((function(e){var t=r.select(this),n=l(e,c,f);if(!y||e.vis){var o,i=t.select("path.yerror");if(m.visible&&a(n.x)&&a(n.yh)&&a(n.ys)){var d=m.width;o="M"+(n.x-d)+","+n.yh+"h"+2*d+"m-"+d+",0V"+n.ys,n.noYS||(o+="m-"+d+",0h"+2*d),u=!i.size(),u?i=t.append("path").style("vector-effect","non-scaling-stroke").classed("yerror",!0):p&&(i=i.transition().duration(s.duration).ease(s.easing)),i.attr("d",o)}else i.remove();var h=t.select("path.xerror");if(v.visible&&a(n.y)&&a(n.xh)&&a(n.xs)){var g=(v.copy_ystyle?m:v).width;o="M"+n.xh+","+(n.y-g)+"v"+2*g+"m0,-"+g+"H"+n.xs,n.noXS||(o+="m0,-"+g+"v"+2*g),u=!h.size(),u?h=t.append("path").style("vector-effect","non-scaling-stroke").classed("xerror",!0):p&&(h=h.transition().duration(s.duration).ease(s.easing)),h.attr("d",o)}else h.remove()}}))}}))}},{"../../traces/scatter/subtypes":1183,"../drawing":637,d3:169,"fast-isnumeric":241}],645:[function(e,t,n){"use strict";var r=e("d3"),a=e("../color");t.exports=function(e){e.each((function(e){var t=e[0].trace,n=t.error_y||{},o=t.error_x||{},i=r.select(this);i.selectAll("path.yerror").style("stroke-width",n.thickness+"px").call(a.stroke,n.color),o.copy_ystyle&&(o=n),i.selectAll("path.xerror").style("stroke-width",o.thickness+"px").call(a.stroke,o.color)}))}},{"../color":615,d3:169}],646:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("./layout_attributes").hoverlabel,o=e("../../lib/extend").extendFlat;t.exports={hoverlabel:{bgcolor:o({},a.bgcolor,{arrayOk:!0}),bordercolor:o({},a.bordercolor,{arrayOk:!0}),font:r({arrayOk:!0,editType:"none"}),align:o({},a.align,{arrayOk:!0}),namelength:o({},a.namelength,{arrayOk:!0}),editType:"none"}}},{"../../lib/extend":740,"../../plots/font_attributes":827,"./layout_attributes":656}],647:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry");function o(e,t,n,a){a=a||r.identity,Array.isArray(e)&&(t[0][n]=a(e))}t.exports=function(e){var t=e.calcdata,n=e._fullLayout;function i(e){return function(t){return r.coerceHoverinfo({hoverinfo:t},{_module:e._module},n)}}for(var l=0;l<t.length;l++){var s=t[l],u=s[0].trace;if(!a.traceIs(u,"pie-like")){var c=a.traceIs(u,"2dMap")?o:r.fillArray;c(u.hoverinfo,s,"hi",i(u)),u.hovertemplate&&c(u.hovertemplate,s,"ht"),u.hoverlabel&&(c(u.hoverlabel.bgcolor,s,"hbg"),c(u.hoverlabel.bordercolor,s,"hbc"),c(u.hoverlabel.font.size,s,"hts"),c(u.hoverlabel.font.color,s,"htc"),c(u.hoverlabel.font.family,s,"htf"),c(u.hoverlabel.namelength,s,"hnl"),c(u.hoverlabel.align,s,"hta"))}}}},{"../../lib":750,"../../registry":882}],648:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("./hover").hover;t.exports=function(e,t,n){var o=r.getComponentMethod("annotations","onClick")(e,e._hoverdata);function i(){e.emit("plotly_click",{points:e._hoverdata,event:t})}void 0!==n&&a(e,t,n,!0),e._hoverdata&&t&&t.target&&(o&&o.then?o.then(i):i(),t.stopImmediatePropagation&&t.stopImmediatePropagation())}},{"../../registry":882,"./hover":652}],649:[function(e,t,n){"use strict";t.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:"Arial, sans-serif",HOVERMINTIME:50,HOVERID:"-hover"}},{}],650:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),o=e("./hoverlabel_defaults");t.exports=function(e,t,n,i){function l(n,o){return r.coerce(e,t,a,n,o)}var s=r.extendFlat({},i.hoverlabel);t.hovertemplate&&(s.namelength=-1),o(e,t,l,s)}},{"../../lib":750,"./attributes":646,"./hoverlabel_defaults":653}],651:[function(e,t,n){"use strict";var r=e("../../lib");n.getSubplot=function(e){return e.subplot||e.xaxis+e.yaxis||e.geo},n.isTraceInSubplots=function(e,t){if("splom"===e.type){for(var r=e.xaxes||[],a=e.yaxes||[],o=0;o<r.length;o++)for(var i=0;i<a.length;i++)if(-1!==t.indexOf(r[o]+a[i]))return!0;return!1}return-1!==t.indexOf(n.getSubplot(e))},n.flat=function(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=t;return n},n.p2c=function(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r].p2c(t);return n},n.getDistanceFunction=function(e,t,r,a){return"closest"===e?a||n.quadrature(t,r):"x"===e.charAt(0)?t:r},n.getClosest=function(e,t,n){if(!1!==n.index)n.index>=0&&n.index<e.length?n.distance=0:n.index=!1;else for(var r=0;r<e.length;r++){var a=t(e[r]);a<=n.distance&&(n.index=r,n.distance=a)}return n},n.inbox=function(e,t,n){return e*t<0||0===e?n:1/0},n.quadrature=function(e,t){return function(n){var r=e(n),a=t(n);return Math.sqrt(r*r+a*a)}},n.makeEventData=function(e,t,r){var a="index"in e?e.index:e.pointNumber,o={data:t._input,fullData:t,curveNumber:t.index,pointNumber:a};if(t._indexToPoints){var i=t._indexToPoints[a];1===i.length?o.pointIndex=i[0]:o.pointIndices=i}else o.pointIndex=a;return t._module.eventData?o=t._module.eventData(o,e,t,r,a):("xVal"in e?o.x=e.xVal:"x"in e&&(o.x=e.x),"yVal"in e?o.y=e.yVal:"y"in e&&(o.y=e.y),e.xa&&(o.xaxis=e.xa),e.ya&&(o.yaxis=e.ya),void 0!==e.zLabelVal&&(o.z=e.zLabelVal)),n.appendArrayPointValue(o,t,a),o},n.appendArrayPointValue=function(e,t,n){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],u=o(s);if(void 0===e[u]){var c=r.nestedProperty(t,s).get(),f=i(c,n);void 0!==f&&(e[u]=f)}}},n.appendArrayMultiPointValues=function(e,t,n){var a=t._arrayAttrs;if(a)for(var l=0;l<a.length;l++){var s=a[l],u=o(s);if(void 0===e[u]){for(var c=r.nestedProperty(t,s).get(),f=new Array(n.length),p=0;p<n.length;p++)f[p]=i(c,n[p]);e[u]=f}}};var a={ids:"id",locations:"location",labels:"label",values:"value","marker.colors":"color",parents:"parent"};function o(e){return a[e]||e}function i(e,t){return Array.isArray(t)?Array.isArray(e)&&Array.isArray(e[t[0]])?e[t[0]][t[1]]:void 0:e[t]}var l={x:!0,y:!0},s={"x unified":!0,"y unified":!0};n.isUnifiedHover=function(e){return"string"===typeof e&&!!s[e]},n.isXYhover=function(e){return"string"===typeof e&&!!l[e]}},{"../../lib":750}],652:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),o=e("tinycolor2"),i=e("../../lib"),l=e("../../lib/events"),s=e("../../lib/svg_text_utils"),u=e("../../lib/override_cursor"),c=e("../drawing"),f=e("../color"),p=e("../dragelement"),d=e("../../plots/cartesian/axes"),h=e("../../registry"),v=e("./helpers"),m=e("./constants"),y=e("../legend/defaults"),g=e("../legend/draw"),b=m.YANGLE,x=Math.PI*b/180,_=1/Math.sin(x),w=Math.cos(x),k=Math.sin(x),T=m.HOVERARROWSIZE,E=m.HOVERTEXTPAD;function O(e,t,n,o){n||(n="xy");var s=Array.isArray(n)?n:[n],c=e._fullLayout,d=c._plots||[],m=d[n],y=c._has("cartesian");if(m){var g=m.overlays.map((function(e){return e.id}));s=s.concat(g)}for(var b=s.length,x=new Array(b),_=new Array(b),w=!1,k=0;k<b;k++){var T=s[k];if(d[T])w=!0,x[k]=d[T].xaxis,_[k]=d[T].yaxis;else{if(!c[T]||!c[T]._subplot)return void i.warn("Unrecognized subplot: "+T);var E=c[T]._subplot;x[k]=E.xaxis,_[k]=E.yaxis}}var O=t.hovermode||c.hovermode;if(O&&!w&&(O="closest"),-1===["x","y","closest","x unified","y unified"].indexOf(O)||!e.calcdata||e.querySelector(".zoombox")||e._dragging)return p.unhoverRaw(e,t);var S,A,z,N,F,B,V,H,U,W,q,$,G,Y=-1===c.hoverdistance?1/0:c.hoverdistance,K=-1===c.spikedistance?1/0:c.spikedistance,X=[],Z=[],J={hLinePoint:null,vLinePoint:null},Q=!1;if(Array.isArray(t))for(O="array",z=0;z<t.length;z++)F=e.calcdata[t[z].curveNumber||0],F&&(B=F[0].trace,"skip"!==F[0].trace.hoverinfo&&(Z.push(F),"h"===B.orientation&&(Q=!0)));else{for(N=0;N<e.calcdata.length;N++)F=e.calcdata[N],B=F[0].trace,"skip"!==B.hoverinfo&&v.isTraceInSubplots(B,s)&&(Z.push(F),"h"===B.orientation&&(Q=!0));var ee,te,ne=!t.target;if(ne)ee="xpx"in t?t.xpx:x[0]._length/2,te="ypx"in t?t.ypx:_[0]._length/2;else{if(!1===l.triggerHandler(e,"plotly_beforehover",t))return;var re=t.target.getBoundingClientRect();if(ee=t.clientX-re.left,te=t.clientY-re.top,ee<0||ee>x[0]._length||te<0||te>_[0]._length)return p.unhoverRaw(e,t)}if(t.pointerX=ee+x[0]._offset,t.pointerY=te+_[0]._offset,S="xval"in t?v.flat(s,t.xval):v.p2c(x,ee),A="yval"in t?v.flat(s,t.yval):v.p2c(_,te),!a(S[0])||!a(A[0]))return i.warn("Fx.hover failed",t,e),p.unhoverRaw(e,t)}var ae=1/0;function oe(e,n){for(N=0;N<Z.length;N++)if(F=Z[N],F&&F[0]&&F[0].trace&&(B=F[0].trace,!0===B.visible&&0!==B._length&&-1===["carpet","contourcarpet"].indexOf(B._module.name))){if("splom"===B.type?(H=0,V=s[H]):(V=v.getSubplot(B),H=s.indexOf(V)),U=O,v.isUnifiedHover(U)&&(U=U.charAt(0)),$={cd:F,trace:B,xa:x[H],ya:_[H],maxHoverDistance:Y,maxSpikeDistance:K,index:!1,distance:Math.min(ae,Y),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:f.defaultLine,name:B.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},c[V]&&($.subplot=c[V]._subplot),c._splomScenes&&c._splomScenes[B.uid]&&($.scene=c._splomScenes[B.uid]),G=X.length,"array"===U){var r=t[N];"pointNumber"in r?($.index=r.pointNumber,U="closest"):(U="","xval"in r&&(W=r.xval,U="x"),"yval"in r&&(q=r.yval,U=U?"closest":"y"))}else void 0!==e&&void 0!==n?(W=e,q=n):(W=S[H],q=A[H]);if(0!==Y)if(B._module&&B._module.hoverPoints){var o=B._module.hoverPoints($,W,q,U,c._hoverlayer);if(o)for(var l,u=0;u<o.length;u++)l=o[u],a(l.x0)&&a(l.y0)&&X.push(D(l,O))}else i.log("Unrecognized trace type in hover:",B);if("closest"===O&&X.length>G&&(X.splice(0,G),ae=X[0].distance),y&&0!==K&&0===X.length){$.distance=K,$.index=!1;var p=B._module.hoverPoints($,W,q,"closest",c._hoverlayer);if(p&&(p=p.filter((function(e){return e.spikeDistance<=K}))),p&&p.length){var d,h=p.filter((function(e){return e.xa.showspikes&&"hovered data"!==e.xa.spikesnap}));if(h.length){var m=h[0];a(m.x0)&&a(m.y0)&&(d=le(m),(!J.vLinePoint||J.vLinePoint.spikeDistance>d.spikeDistance)&&(J.vLinePoint=d))}var g=p.filter((function(e){return e.ya.showspikes&&"hovered data"!==e.ya.spikesnap}));if(g.length){var b=g[0];a(b.x0)&&a(b.y0)&&(d=le(b),(!J.hLinePoint||J.hLinePoint.spikeDistance>d.spikeDistance)&&(J.hLinePoint=d))}}}}}function ie(e,t){for(var n,r=null,a=1/0,o=0;o<e.length;o++)n=e[o].spikeDistance,n<=a&&n<=t&&(r=e[o],a=n);return r}function le(e){return e?{xa:e.xa,ya:e.ya,x:void 0!==e.xSpike?e.xSpike:(e.x0+e.x1)/2,y:void 0!==e.ySpike?e.ySpike:(e.y0+e.y1)/2,distance:e.distance,spikeDistance:e.spikeDistance,curveNumber:e.trace.index,color:e.color,pointNumber:e.index}:null}oe();var se={fullLayout:c,container:c._hoverlayer,outerContainer:c._paperdiv,event:t},ue=e._spikepoints,ce={vLinePoint:J.vLinePoint,hLinePoint:J.hLinePoint};if(e._spikepoints=ce,y&&0!==K&&0!==X.length){var fe=X.filter((function(e){return e.ya.showspikes})),pe=ie(fe,K);J.hLinePoint=le(pe);var de=X.filter((function(e){return e.xa.showspikes})),he=ie(de,K);J.vLinePoint=le(he)}if(0===X.length){var ve=p.unhoverRaw(e,t);return!y||null===J.hLinePoint&&null===J.vLinePoint||R(ue)&&j(e,J,se),ve}if(y&&R(ue)&&j(e,J,se),X.sort((function(e,t){return e.distance-t.distance})),v.isXYhover(U)&&0!==X[0].length&&"splom"!==X[0].trace.type){var me=X[0],ye=me.cd[me.index],ge="group"===c.boxmode||"group"===c.violinmode,be=me.xVal,xe=me.xa;"category"===xe.type&&(be=xe._categoriesMap[be]),"date"===xe.type&&(be=xe.d2c(be)),ye&&ye.t&&ye.t.posLetter===xe._id&&ge&&(be+=ye.t.dPos);var _e=me.yVal;xe=me.ya,"category"===xe.type&&(_e=xe._categoriesMap[_e]),"date"===xe.type&&(_e=xe.d2c(_e)),ye&&ye.t&&ye.t.posLetter===xe._id&&ge&&(_e+=ye.t.dPos),oe(be,_e);var we={};X=X.filter((function(e){var t=M(e);if(!we[t])return we[t]=!0,we[t]}))}var ke=e._hoverdata,Te=[];for(z=0;z<X.length;z++){var Ee=X[z],Oe=v.makeEventData(Ee,Ee.trace,Ee.cd);if(!1!==Ee.hovertemplate){var Me=!1;Ee.cd[Ee.index]&&Ee.cd[Ee.index].ht&&(Me=Ee.cd[Ee.index].ht),Ee.hovertemplate=Me||Ee.trace.hovertemplate||!1}Ee.eventData=[Oe],Te.push(Oe)}e._hoverdata=Te;var Se="y"===O&&(Z.length>1||X.length>1)||"closest"===O&&Q&&X.length>1,Ce=f.combine(c.plot_bgcolor||f.background,c.paper_bgcolor),Ae={hovermode:O,rotateLabels:Se,bgColor:Ce,container:c._hoverlayer,outerContainer:c._paperdiv,commonLabelOpts:c.hoverlabel,hoverdistance:c.hoverdistance},Pe=C(X,Ae,e);if(v.isUnifiedHover(O)||(P(Pe,Se?"xa":"ya",c),L(Pe,Se)),t.target&&t.target.tagName){var Le=h.getComponentMethod("annotations","hasClickToShow")(e,Te);u(r.select(t.target),Le?"pointer":"")}t.target&&!o&&I(e,t,ke)&&(ke&&e.emit("plotly_unhover",{event:t,points:ke}),e.emit("plotly_hover",{event:t,points:e._hoverdata,xaxes:x,yaxes:_,xvals:S,yvals:A}))}function M(e){return[e.trace.index,e.index,e.x0,e.y0,e.name,e.attr,e.xa,e.ya||""].join(",")}n.hover=function(e,t,n,r){e=i.getGraphDiv(e),i.throttle(e._fullLayout._uid+m.HOVERID,m.HOVERMINTIME,(function(){O(e,t,n,r)}))},n.loneHover=function(e,t){var n=!0;Array.isArray(e)||(n=!1,e=[e]);var a=e.map((function(e){return{color:e.color||f.defaultLine,x0:e.x0||e.x||0,x1:e.x1||e.x||0,y0:e.y0||e.y||0,y1:e.y1||e.y||0,xLabel:e.xLabel,yLabel:e.yLabel,zLabel:e.zLabel,text:e.text,name:e.name,idealAlign:e.idealAlign,borderColor:e.borderColor,fontFamily:e.fontFamily,fontSize:e.fontSize,fontColor:e.fontColor,nameLength:e.nameLength,textAlign:e.textAlign,trace:e.trace||{index:0,hoverinfo:""},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:e.hovertemplate||!1,eventData:e.eventData||!1,hovertemplateLabels:e.hovertemplateLabels||!1}})),o=r.select(t.container),i=t.outerContainer?r.select(t.outerContainer):o,l={hovermode:"closest",rotateLabels:!1,bgColor:t.bgColor||f.background,container:o,outerContainer:i},s=C(a,l,t.gd),u=5,c=0,p=0;return s.sort((function(e,t){return e.y0-t.y0})).each((function(e,n){var r=e.y0-e.by/2;e.offset=r-u<c?c-r+u:0,c=r+e.by+e.offset,n===t.anchorIndex&&(p=e.offset)})).each((function(e){e.offset-=p})),L(s,l.rotateLabels),n?s:s.node()};var S=/<extra>([\s\S]*)<\/extra>/;function C(e,t,n){var a=n._fullLayout,o=t.hovermode,l=t.rotateLabels,u=t.bgColor,p=t.container,d=t.outerContainer,h=t.commonLabelOpts||{},x=t.fontFamily||m.HOVERFONT,_=t.fontSize||m.HOVERFONTSIZE,w=e[0],k=w.xa,O=w.ya,S="y"===o.charAt(0)?"yLabel":"xLabel",C=w[S],P=(String(C)||"").split(" ")[0],L=d.node().getBoundingClientRect(),D=L.top,j=L.width,I=L.height,R=void 0!==C&&w.distance<=t.hoverdistance&&("x"===o||"y"===o);if(R){var z,N,F=!0;for(z=0;z<e.length;z++)if(F&&void 0===e[z].zLabel&&(F=!1),N=e[z].hoverinfo||e[z].trace.hoverinfo,N){var B=Array.isArray(N)?N:N.split("+");if(-1===B.indexOf("all")&&-1===B.indexOf(o)){R=!1;break}}F&&(R=!1)}var V=p.selectAll("g.axistext").data(R?[0]:[]);function H(e){return e.filter((function(e){return void 0!==e.zLabelVal||(e[S]||"").split(" ")[0]===P}))}if(V.enter().append("g").classed("axistext",!0),V.exit().remove(),V.each((function(){var t=r.select(this),l=i.ensureSingle(t,"path","",(function(e){e.style({"stroke-width":"1px"})})),u=i.ensureSingle(t,"text","",(function(e){e.attr("data-notex",1)})),p=h.bgcolor||f.defaultLine,d=h.bordercolor||f.contrast(p),v=f.contrast(p),m={family:h.font.family||x,size:h.font.size||_,color:h.font.color||v};l.style({fill:p,stroke:d}),u.text(C).call(c.font,m).call(s.positionText,0,0).call(s.convertToTspans,n),t.attr("transform","");var y,g,b=u.node().getBoundingClientRect();if("x"===o){var M="top"===k.side?"-":"";u.attr("text-anchor","middle").call(s.positionText,0,"top"===k.side?D-b.bottom-T-E:D-b.top+T+E),y=k._offset+(w.x0+w.x1)/2,g=O._offset+("top"===k.side?0:O._length);var S=b.width/2+E;y<S?(y=S,l.attr("d","M-"+(S-T)+",0L-"+(S-2*T)+","+M+T+"H"+(E+b.width/2)+"v"+M+(2*E+b.height)+"H-"+S+"V"+M+T+"Z")):y>a.width-S?(y=a.width-S,l.attr("d","M"+(S-T)+",0L"+S+","+M+T+"v"+M+(2*E+b.height)+"H-"+S+"V"+M+T+"H"+(S-2*T)+"Z")):l.attr("d","M0,0L"+T+","+M+T+"H"+(E+b.width/2)+"v"+M+(2*E+b.height)+"H-"+(E+b.width/2)+"V"+M+T+"H-"+T+"Z")}else{var A,P,L;"right"===O.side?(A="start",P=1,L="",y=k._offset+k._length):(A="end",P=-1,L="-",y=k._offset),g=O._offset+(w.y0+w.y1)/2,u.attr("text-anchor",A),l.attr("d","M0,0L"+L+T+","+T+"V"+(E+b.height/2)+"h"+L+(2*E+b.width)+"V-"+(E+b.height/2)+"H"+L+T+"V-"+T+"Z");var j,I=b.height/2,R=D-b.top-I,z="clip"+a._uid+"commonlabel"+O._id;if(y<b.width+2*E+T){j="M-"+(T+E)+"-"+I+"h-"+(b.width-E)+"V"+I+"h"+(b.width-E)+"Z";var N=b.width-y+E;s.positionText(u,N,R),"end"===A&&u.selectAll("tspan").each((function(){var e=r.select(this),t=c.tester.append("text").text(e.text()).call(c.font,m),n=t.node().getBoundingClientRect();Math.round(n.width)<Math.round(b.width)&&e.attr("x",N-n.width),t.remove()}))}else s.positionText(u,P*(E+T),R),j=null;var F=a._topclips.selectAll("#"+z).data(j?[0]:[]);F.enter().append("clipPath").attr("id",z).append("path"),F.exit().remove(),F.select("path").attr("d",j),c.setClipUrl(u,j?z:null,n)}t.attr("transform","translate("+y+","+g+")"),e=H(e)})),v.isUnifiedHover(o)){if(p.selectAll("g.hovertext").remove(),void 0!==C&&w.distance<=t.hoverdistance&&(e=H(e)),0===e.length)return;var U={showlegend:!0,legend:{title:{text:C,font:a.hoverlabel.font},font:a.hoverlabel.font,bgcolor:a.hoverlabel.bgcolor,bordercolor:a.hoverlabel.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:a.legend?a.legend.traceorder:void 0,orientation:"v"}},W={};y(U,W,n._fullData);var q=W.legend;q.entries=[];for(var $=0;$<e.length;$++){var G=A(e[$],!0,o,a,C),Y=G[0],K=G[1],X=e[$];X.name=K,X.text=""!==K?K+" : "+Y:Y;var Z=X.cd[X.index];Z&&(Z.mc&&(X.mc=Z.mc),Z.mcc&&(X.mc=Z.mcc),Z.mlc&&(X.mlc=Z.mlc),Z.mlcc&&(X.mlc=Z.mlcc),Z.mlw&&(X.mlw=Z.mlw),Z.mrc&&(X.mrc=Z.mrc),Z.dir&&(X.dir=Z.dir)),X._distinct=!0,q.entries.push([X])}q.entries.sort((function(e,t){return e[0].trace.index-t[0].trace.index})),q.layer=p,g(n,q);var J=i.mean(e.map((function(e){return(e.y0+e.y1)/2}))),Q=i.mean(e.map((function(e){return(e.x0+e.x1)/2}))),ee=p.select("g.legend"),te=ee.node().getBoundingClientRect();Q+=k._offset,J+=O._offset-te.height/2;var ne=te.width+2*E,re=Q+ne<=j,ae=Q-ne>=0;!re&&ae?Q-=ne:Q+=2*E;var oe=te.height+2*E,ie=J<=D,le=J+oe>=I,se=oe<=I;return se&&(ie?J=O._offset+2*E:le&&(J=I-oe)),ee.attr("transform","translate("+Q+","+J+")"),ee}var ue=p.selectAll("g.hovertext").data(e,(function(e){return M(e)}));return ue.enter().append("g").classed("hovertext",!0).each((function(){var e=r.select(this);e.append("rect").call(f.fill,f.addOpacity(u,.8)),e.append("text").classed("name",!0),e.append("path").style("stroke-width","1px"),e.append("text").classed("nums",!0).call(c.font,x,_)})),ue.exit().remove(),ue.each((function(e){var t=r.select(this).attr("transform",""),i=e.color;Array.isArray(i)&&(i=i[e.eventData[0].pointNumber]);var p=e.bgcolor||i,d=f.combine(f.opacity(p)?p:f.defaultLine,u),h=f.combine(f.opacity(i)?i:f.defaultLine,u),v=e.borderColor||f.contrast(d),m=A(e,R,o,a,C,t),y=m[0],g=m[1],w=t.select("text.nums").call(c.font,e.fontFamily||x,e.fontSize||_,e.fontColor||v).text(y).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,n),k=t.select("text.name"),O=0,M=0;if(g&&g!==y){k.call(c.font,e.fontFamily||x,e.fontSize||_,h).text(g).attr("data-notex",1).call(s.positionText,0,0).call(s.convertToTspans,n);var S=k.node().getBoundingClientRect();O=S.width+2*E,M=S.height+2*E}else k.remove(),t.select("rect").remove();t.select("path").style({fill:d,stroke:v});var P,L,z=w.node().getBoundingClientRect(),N=e.xa._offset+(e.x0+e.x1)/2,F=e.ya._offset+(e.y0+e.y1)/2,B=Math.abs(e.x1-e.x0),V=Math.abs(e.y1-e.y0),H=z.width+T+E+O;if(e.ty0=D-z.top,e.bx=z.width+2*E,e.by=Math.max(z.height+2*E,M),e.anchor="start",e.txwidth=z.width,e.tx2width=O,e.offset=0,l)e.pos=N,P=F+V/2+H<=I,L=F-V/2-H>=0,"top"!==e.idealAlign&&P||!L?P?(F+=V/2,e.anchor="start"):e.anchor="middle":(F-=V/2,e.anchor="end");else if(e.pos=F,P=N+B/2+H<=j,L=N-B/2-H>=0,"left"!==e.idealAlign&&P||!L)if(P)N+=B/2,e.anchor="start";else{e.anchor="middle";var U=H/2,W=N+U-j,q=N-U;W>0&&(N-=W),q<0&&(N+=-q)}else N-=B/2,e.anchor="end";w.attr("text-anchor",e.anchor),O&&k.attr("text-anchor",e.anchor),t.attr("transform","translate("+N+","+F+")"+(l?"rotate("+b+")":""))})),ue}function A(e,t,n,r,a,o){var l="",s="";void 0!==e.nameOverride&&(e.name=e.nameOverride),e.name&&(e.trace._meta&&(e.name=i.templateString(e.name,e.trace._meta)),l=z(e.name,e.nameLength)),void 0!==e.zLabel?(void 0!==e.xLabel&&(s+="x: "+e.xLabel+"<br>"),void 0!==e.yLabel&&(s+="y: "+e.yLabel+"<br>"),"choropleth"!==e.trace.type&&"choroplethmapbox"!==e.trace.type&&(s+=(s?"z: ":"")+e.zLabel)):t&&e[n.charAt(0)+"Label"]===a?s=e[("x"===n.charAt(0)?"y":"x")+"Label"]||"":void 0===e.xLabel?void 0!==e.yLabel&&"scattercarpet"!==e.trace.type&&(s=e.yLabel):s=void 0===e.yLabel?e.xLabel:"("+e.xLabel+", "+e.yLabel+")",!e.text&&0!==e.text||Array.isArray(e.text)||(s+=(s?"<br>":"")+e.text),void 0!==e.extraText&&(s+=(s?"<br>":"")+e.extraText),o&&""===s&&!e.hovertemplate&&(""===l&&o.remove(),s=l);var u=r._d3locale,c=e.hovertemplate||!1,f=e.hovertemplateLabels||e,p=e.eventData[0]||{};return c&&(s=i.hovertemplateString(c,f,u,p,e.trace._meta),s=s.replace(S,(function(t,n){return l=z(n,e.nameLength),""}))),[s,l]}function P(e,t,n){var r,a,o,i,l,s,u,c=0,f=1,p=e.size(),d=new Array(p),h=0;function v(e){var t=e[0],n=e[e.length-1];if(a=t.pmin-t.pos-t.dp+t.size,o=n.pos+n.dp+n.size-t.pmax,a>.01){for(l=e.length-1;l>=0;l--)e[l].dp+=a;r=!1}if(!(o<.01)){if(a<-.01){for(l=e.length-1;l>=0;l--)e[l].dp-=o;r=!1}if(r){var u=0;for(i=0;i<e.length;i++)s=e[i],s.pos+s.dp+s.size>t.pmax&&u++;for(i=e.length-1;i>=0;i--){if(u<=0)break;s=e[i],s.pos>t.pmax-1&&(s.del=!0,u--)}for(i=0;i<e.length;i++){if(u<=0)break;if(s=e[i],s.pos<t.pmin+1)for(s.del=!0,u--,o=2*s.size,l=e.length-1;l>=0;l--)e[l].dp-=o}for(i=e.length-1;i>=0;i--){if(u<=0)break;s=e[i],s.pos+s.dp+s.size>t.pmax&&(s.del=!0,u--)}}}}e.each((function(e){var r=e[t],a="x"===r._id.charAt(0),o=r.range;0===h&&o&&o[0]>o[1]!==a&&(f=-1),d[h++]=[{datum:e,traceIndex:e.trace.index,dp:0,pos:e.pos,posref:e.posref,size:e.by*(a?_:1)/2,pmin:0,pmax:a?n.width:n.height}]})),d.sort((function(e,t){return e[0].posref-t[0].posref||f*(t[0].traceIndex-e[0].traceIndex)}));while(!r&&c<=p){c++,r=!0,i=0;while(i<d.length-1){var m=d[i],y=d[i+1],g=m[m.length-1],b=y[0];if(a=g.pos+g.dp+g.size-b.pos-b.dp+b.size,a>.01&&g.pmin===b.pmin&&g.pmax===b.pmax){for(l=y.length-1;l>=0;l--)y[l].dp+=a;for(m.push.apply(m,y),d.splice(i+1,1),u=0,l=m.length-1;l>=0;l--)u+=m[l].dp;for(o=u/m.length,l=m.length-1;l>=0;l--)m[l].dp-=o;r=!1}else i++}d.forEach(v)}for(i=d.length-1;i>=0;i--){var x=d[i];for(l=x.length-1;l>=0;l--){var w=x[l],k=w.datum;k.offset=w.dp,k.del=w.del}}}function L(e,t){e.each((function(e){var n=r.select(this);if(e.del)return n.remove();var a=n.select("text.nums"),o=e.anchor,i="end"===o?-1:1,l={start:1,end:-1,middle:0}[o],u=l*(T+E),f=u+l*(e.txwidth+E),p=0,d=e.offset;"middle"===o&&(u-=e.tx2width/2,f+=e.txwidth/2+E),t&&(d*=-k,p=e.offset*w),n.select("path").attr("d","middle"===o?"M-"+(e.bx/2+e.tx2width/2)+","+(d-e.by/2)+"h"+e.bx+"v"+e.by+"h-"+e.bx+"Z":"M0,0L"+(i*T+p)+","+(T+d)+"v"+(e.by/2-T)+"h"+i*e.bx+"v-"+e.by+"H"+(i*T+p)+"V"+(d-T)+"Z");var h=u+p,v=d+e.ty0-e.by/2+E,m=e.textAlign||"auto";"auto"!==m&&("left"===m&&"start"!==o?(a.attr("text-anchor","start"),h="middle"===o?-e.bx/2-e.tx2width/2+E:-e.bx-E):"right"===m&&"end"!==o&&(a.attr("text-anchor","end"),h="middle"===o?e.bx/2-e.tx2width/2-E:e.bx+E)),a.call(s.positionText,h,v),e.tx2width&&(n.select("text.name").call(s.positionText,f+l*E+p,d+e.ty0-e.by/2+E),n.select("rect").call(c.setRect,f+(l-1)*e.tx2width/2+p,d-e.by/2-1,e.tx2width,e.by+2))}))}function D(e,t){var n=e.index,r=e.trace||{},o=e.cd[0],l=e.cd[n]||{};function s(e){return e||a(e)&&0===e}var u=Array.isArray(n)?function(e,t){var a=i.castOption(o,n,e);return s(a)?a:i.extractOption({},r,"",t)}:function(e,t){return i.extractOption(l,r,e,t)};function c(t,n,r){var a=u(n,r);s(a)&&(e[t]=a)}if(c("hoverinfo","hi","hoverinfo"),c("bgcolor","hbg","hoverlabel.bgcolor"),c("borderColor","hbc","hoverlabel.bordercolor"),c("fontFamily","htf","hoverlabel.font.family"),c("fontSize","hts","hoverlabel.font.size"),c("fontColor","htc","hoverlabel.font.color"),c("nameLength","hnl","hoverlabel.namelength"),c("textAlign","hta","hoverlabel.align"),e.posref="y"===t||"closest"===t&&"h"===r.orientation?e.xa._offset+(e.x0+e.x1)/2:e.ya._offset+(e.y0+e.y1)/2,e.x0=i.constrain(e.x0,0,e.xa._length),e.x1=i.constrain(e.x1,0,e.xa._length),e.y0=i.constrain(e.y0,0,e.ya._length),e.y1=i.constrain(e.y1,0,e.ya._length),void 0!==e.xLabelVal&&(e.xLabel="xLabel"in e?e.xLabel:d.hoverLabelText(e.xa,e.xLabelVal),e.xVal=e.xa.c2d(e.xLabelVal)),void 0!==e.yLabelVal&&(e.yLabel="yLabel"in e?e.yLabel:d.hoverLabelText(e.ya,e.yLabelVal),e.yVal=e.ya.c2d(e.yLabelVal)),void 0!==e.zLabelVal&&void 0===e.zLabel&&(e.zLabel=String(e.zLabelVal)),!isNaN(e.xerr)&&!("log"===e.xa.type&&e.xerr<=0)){var f=d.tickText(e.xa,e.xa.c2l(e.xerr),"hover").text;void 0!==e.xerrneg?e.xLabel+=" +"+f+" / -"+d.tickText(e.xa,e.xa.c2l(e.xerrneg),"hover").text:e.xLabel+=" ± "+f,"x"===t&&(e.distance+=1)}if(!isNaN(e.yerr)&&!("log"===e.ya.type&&e.yerr<=0)){var p=d.tickText(e.ya,e.ya.c2l(e.yerr),"hover").text;void 0!==e.yerrneg?e.yLabel+=" +"+p+" / -"+d.tickText(e.ya,e.ya.c2l(e.yerrneg),"hover").text:e.yLabel+=" ± "+p,"y"===t&&(e.distance+=1)}var h=e.hoverinfo||e.trace.hoverinfo;return h&&"all"!==h&&(h=Array.isArray(h)?h:h.split("+"),-1===h.indexOf("x")&&(e.xLabel=void 0),-1===h.indexOf("y")&&(e.yLabel=void 0),-1===h.indexOf("z")&&(e.zLabel=void 0),-1===h.indexOf("text")&&(e.text=void 0),-1===h.indexOf("name")&&(e.name=void 0)),e}function j(e,t,n){var r,a,i=n.container,l=n.fullLayout,s=l._size,u=n.event,p=!!t.hLinePoint,h=!!t.vLinePoint;if(i.selectAll(".spikeline").remove(),h||p){var v=f.combine(l.plot_bgcolor,l.paper_bgcolor);if(p){var m,y,g=t.hLinePoint;r=g&&g.xa,a=g&&g.ya;var b=a.spikesnap;"cursor"===b?(m=u.pointerX,y=u.pointerY):(m=r._offset+g.x,y=a._offset+g.y);var x,_,w=o.readability(g.color,v)<1.5?f.contrast(v):g.color,k=a.spikemode,T=a.spikethickness,E=a.spikecolor||w,O=d.getPxPosition(e,a);if(-1!==k.indexOf("toaxis")||-1!==k.indexOf("across")){if(-1!==k.indexOf("toaxis")&&(x=O,_=m),-1!==k.indexOf("across")){var M=a._counterDomainMin,S=a._counterDomainMax;"free"===a.anchor&&(M=Math.min(M,a.position),S=Math.max(S,a.position)),x=s.l+M*s.w,_=s.l+S*s.w}i.insert("line",":first-child").attr({x1:x,x2:_,y1:y,y2:y,"stroke-width":T,stroke:E,"stroke-dasharray":c.dashStyle(a.spikedash,T)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:x,x2:_,y1:y,y2:y,"stroke-width":T+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}-1!==k.indexOf("marker")&&i.insert("circle",":first-child").attr({cx:O+("right"!==a.side?T:-T),cy:y,r:T,fill:E}).classed("spikeline",!0)}if(h){var C,A,P=t.vLinePoint;r=P&&P.xa,a=P&&P.ya;var L=r.spikesnap;"cursor"===L?(C=u.pointerX,A=u.pointerY):(C=r._offset+P.x,A=a._offset+P.y);var D,j,I=o.readability(P.color,v)<1.5?f.contrast(v):P.color,R=r.spikemode,z=r.spikethickness,N=r.spikecolor||I,F=d.getPxPosition(e,r);if(-1!==R.indexOf("toaxis")||-1!==R.indexOf("across")){if(-1!==R.indexOf("toaxis")&&(D=F,j=A),-1!==R.indexOf("across")){var B=r._counterDomainMin,V=r._counterDomainMax;"free"===r.anchor&&(B=Math.min(B,r.position),V=Math.max(V,r.position)),D=s.t+(1-V)*s.h,j=s.t+(1-B)*s.h}i.insert("line",":first-child").attr({x1:C,x2:C,y1:D,y2:j,"stroke-width":z,stroke:N,"stroke-dasharray":c.dashStyle(r.spikedash,z)}).classed("spikeline",!0).classed("crisp",!0),i.insert("line",":first-child").attr({x1:C,x2:C,y1:D,y2:j,"stroke-width":z+2,stroke:v}).classed("spikeline",!0).classed("crisp",!0)}-1!==R.indexOf("marker")&&i.insert("circle",":first-child").attr({cx:C,cy:F-("top"!==r.side?z:-z),r:z,fill:N}).classed("spikeline",!0)}}}function I(e,t,n){if(!n||n.length!==e._hoverdata.length)return!0;for(var r=n.length-1;r>=0;r--){var a=n[r],o=e._hoverdata[r];if(a.curveNumber!==o.curveNumber||String(a.pointNumber)!==String(o.pointNumber)||String(a.pointNumbers)!==String(o.pointNumbers))return!0}return!1}function R(e,t){return!t||(t.vLinePoint!==e._spikepoints.vLinePoint||t.hLinePoint!==e._spikepoints.hLinePoint)}function z(e,t){return s.plainText(e||"",{len:t,allowedTags:["br","sub","sup","b","i","em"]})}},{"../../lib":750,"../../lib/events":739,"../../lib/override_cursor":761,"../../lib/svg_text_utils":774,"../../plots/cartesian/axes":799,"../../registry":882,"../color":615,"../dragelement":634,"../drawing":637,"../legend/defaults":667,"../legend/draw":668,"./constants":649,"./helpers":651,d3:169,"fast-isnumeric":241,tinycolor2:548}],653:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../color"),o=e("./helpers").isUnifiedHover;t.exports=function(e,t,n,i){function l(e){i.font[e]||(i.font[e]=t.legend?t.legend.font[e]:t.font[e])}i=i||{},t&&o(t.hovermode)&&(i.font||(i.font={}),l("size"),l("family"),l("color"),t.legend?(i.bgcolor||(i.bgcolor=a.combine(t.legend.bgcolor,t.paper_bgcolor)),i.bordercolor||(i.bordercolor=t.legend.bordercolor)):i.bgcolor||(i.bgcolor=t.paper_bgcolor)),n("hoverlabel.bgcolor",i.bgcolor),n("hoverlabel.bordercolor",i.bordercolor),n("hoverlabel.namelength",i.namelength),r.coerceFont(n,"hoverlabel.font",i.font),n("hoverlabel.align",i.align)}},{"../../lib":750,"../color":615,"./helpers":651}],654:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes");function o(e,t){for(var n=t._scatterStackOpts||{},r=0;r<e.length;r++){var a=e[r],o=a.xaxis+a.yaxis,i=n[o]||{},l=i[a.stackgroup]||{};if("h"!==a.orientation&&"h"!==l.orientation)return!1}return!0}t.exports=function(e,t,n){function i(n,o){return void 0!==t[n]?t[n]:r.coerce(e,t,a,n,o)}var l,s=i("clickmode");return t._has("cartesian")?s.indexOf("select")>-1?l="closest":(t._isHoriz=o(n,t),l=t._isHoriz?"y":"x"):l="closest",i("hovermode",l)}},{"../../lib":750,"./layout_attributes":656}],655:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../dragelement"),i=e("./helpers"),l=e("./layout_attributes"),s=e("./hover");function u(e){var t=a.isD3Selection(e)?e:r.select(e);t.selectAll("g.hovertext").remove(),t.selectAll(".spikeline").remove()}function c(e,t,n){return a.castOption(e,t,"hoverlabel."+n)}function f(e,t,n){function r(n){return a.coerceHoverinfo({hoverinfo:n},{_module:e._module},t)}return a.castOption(e,n,"hoverinfo",r)}t.exports={moduleType:"component",name:"fx",constants:e("./constants"),schema:{layout:l},attributes:e("./attributes"),layoutAttributes:l,supplyLayoutGlobalDefaults:e("./layout_global_defaults"),supplyDefaults:e("./defaults"),supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),getDistanceFunction:i.getDistanceFunction,getClosest:i.getClosest,inbox:i.inbox,quadrature:i.quadrature,appendArrayPointValue:i.appendArrayPointValue,castHoverOption:c,castHoverinfo:f,hover:s.hover,unhover:o.unhover,loneHover:s.loneHover,loneUnhover:u,click:e("./click")}},{"../../lib":750,"../dragelement":634,"./attributes":646,"./calc":647,"./click":648,"./constants":649,"./defaults":650,"./helpers":651,"./hover":652,"./layout_attributes":656,"./layout_defaults":657,"./layout_global_defaults":658,d3:169}],656:[function(e,t,n){"use strict";var r=e("./constants"),a=e("../../plots/font_attributes")({editType:"none"});a.family.dflt=r.HOVERFONT,a.size.dflt=r.HOVERFONTSIZE,t.exports={clickmode:{valType:"flaglist",flags:["event","select"],dflt:"event",editType:"plot",extras:["none"]},dragmode:{valType:"enumerated",values:["zoom","pan","select","lasso","drawclosedpath","drawopenpath","drawline","drawrect","drawcircle","orbit","turntable",!1],dflt:"zoom",editType:"modebar"},hovermode:{valType:"enumerated",values:["x","y","closest",!1,"x unified","y unified"],editType:"modebar"},hoverdistance:{valType:"integer",min:-1,dflt:20,editType:"none"},spikedistance:{valType:"integer",min:-1,dflt:20,editType:"none"},hoverlabel:{bgcolor:{valType:"color",editType:"none"},bordercolor:{valType:"color",editType:"none"},font:a,align:{valType:"enumerated",values:["left","right","auto"],dflt:"auto",editType:"none"},namelength:{valType:"integer",min:-1,dflt:15,editType:"none"},editType:"none"},selectdirection:{valType:"enumerated",values:["h","v","d","any"],dflt:"any",editType:"none"}}},{"../../plots/font_attributes":827,"./constants":649}],657:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./helpers").isUnifiedHover,o=e("./layout_attributes"),i=e("./hovermode_defaults"),l=e("./hoverlabel_defaults");t.exports=function(e,t,n){function s(n,a){return r.coerce(e,t,o,n,a)}var u=i(e,t,n);u&&(s("hoverdistance"),s("spikedistance",a(u)?-1:void 0));var c=s("dragmode");"select"===c&&s("selectdirection");var f=t._has("mapbox"),p=t._has("geo"),d=t._basePlotModules.length;"zoom"===t.dragmode&&((f||p)&&1===d||f&&p&&2===d)&&(t.dragmode="pan"),l(e,t,s)}},{"../../lib":750,"./helpers":651,"./hoverlabel_defaults":653,"./hovermode_defaults":654,"./layout_attributes":656}],658:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./hoverlabel_defaults"),o=e("./layout_attributes");t.exports=function(e,t){function n(n,a){return r.coerce(e,t,o,n,a)}a(e,t,n)}},{"../../lib":750,"./hoverlabel_defaults":653,"./layout_attributes":656}],659:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../lib/regex").counter,o=e("../../plots/domain").attributes,i=e("../../plots/cartesian/constants").idRegex,l=e("../../plot_api/plot_template"),s={rows:{valType:"integer",min:1,editType:"plot"},roworder:{valType:"enumerated",values:["top to bottom","bottom to top"],dflt:"top to bottom",editType:"plot"},columns:{valType:"integer",min:1,editType:"plot"},subplots:{valType:"info_array",freeLength:!0,dimensions:2,items:{valType:"enumerated",values:[a("xy").toString(),""],editType:"plot"},editType:"plot"},xaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[i.x.toString(),""],editType:"plot"},editType:"plot"},yaxes:{valType:"info_array",freeLength:!0,items:{valType:"enumerated",values:[i.y.toString(),""],editType:"plot"},editType:"plot"},pattern:{valType:"enumerated",values:["independent","coupled"],dflt:"coupled",editType:"plot"},xgap:{valType:"number",min:0,max:1,editType:"plot"},ygap:{valType:"number",min:0,max:1,editType:"plot"},domain:o({name:"grid",editType:"plot",noGridCell:!0},{}),xside:{valType:"enumerated",values:["bottom","bottom plot","top plot","top"],dflt:"bottom plot",editType:"plot"},yside:{valType:"enumerated",values:["left","left plot","right plot","right"],dflt:"left plot",editType:"plot"},editType:"plot"};function u(e,t,n){var r=t[n+"axes"],a=Object.keys((e._splomAxes||{})[n]||{});return Array.isArray(r)?r:a.length?a:void 0}function c(e,t){var n=e.grid||{},a=u(t,n,"x"),o=u(t,n,"y");if(e.grid||a||o){var i,c,p=Array.isArray(n.subplots)&&Array.isArray(n.subplots[0]),d=Array.isArray(a),h=Array.isArray(o),v=d&&a!==n.xaxes&&h&&o!==n.yaxes;p?(i=n.subplots.length,c=n.subplots[0].length):(h&&(i=o.length),d&&(c=a.length));var m=l.newContainer(t,"grid"),y=O("rows",i),g=O("columns",c);if(y*g>1){if(!p&&!d&&!h){var b="independent"===O("pattern");b&&(p=!0)}m._hasSubplotGrid=p;var x,_,w=O("roworder"),k="top to bottom"===w,T=p?.2:.1,E=p?.3:.1;v&&t._splomGridDflt&&(x=t._splomGridDflt.xside,_=t._splomGridDflt.yside),m._domains={x:f("x",O,T,x,g),y:f("y",O,E,_,y,k)}}else delete t.grid}function O(e,t){return r.coerce(n,m,s,e,t)}}function f(e,t,n,r,a,o){var i=t(e+"gap",n),l=t("domain."+e);t(e+"side",r);for(var s=new Array(a),u=l[0],c=(l[1]-u)/(a-i),f=c*(1-i),p=0;p<a;p++){var d=u+c*p;s[o?a-1-p:p]=[d,d+f]}return s}function p(e,t){var n=t.grid;if(n&&n._domains){var r,a,o,i,l,s,c,f=e.grid||{},p=t._subplots,h=n._hasSubplotGrid,v=n.rows,m=n.columns,y="independent"===n.pattern,g=n._axisMap={};if(h){var b=f.subplots||[];s=n.subplots=new Array(v);var x=1;for(r=0;r<v;r++){var _=s[r]=new Array(m),w=b[r]||[];for(a=0;a<m;a++)if(y?(l=1===x?"xy":"x"+x+"y"+x,x++):l=w[a],_[a]="",-1!==p.cartesian.indexOf(l)){if(c=l.indexOf("y"),o=l.slice(0,c),i=l.slice(c),void 0!==g[o]&&g[o]!==a||void 0!==g[i]&&g[i]!==r)continue;_[a]=l,g[o]=a,g[i]=r}}}else{var k=u(t,f,"x"),T=u(t,f,"y");n.xaxes=d(k,p.xaxis,m,g,"x"),n.yaxes=d(T,p.yaxis,v,g,"y")}var E=n._anchors={},O="top to bottom"===n.roworder;for(var M in g){var S,C,A,P=M.charAt(0),L=n[P+"side"];if(L.length<8)E[M]="free";else if("x"===P){if("t"===L.charAt(0)===O?(S=0,C=1,A=v):(S=v-1,C=-1,A=-1),h){var D=g[M];for(r=S;r!==A;r+=C)if(l=s[r][D],l&&(c=l.indexOf("y"),l.slice(0,c)===M)){E[M]=l.slice(c);break}}else for(r=S;r!==A;r+=C)if(i=n.yaxes[r],-1!==p.cartesian.indexOf(M+i)){E[M]=i;break}}else if("l"===L.charAt(0)?(S=0,C=1,A=m):(S=m-1,C=-1,A=-1),h){var j=g[M];for(r=S;r!==A;r+=C)if(l=s[j][r],l&&(c=l.indexOf("y"),l.slice(c)===M)){E[M]=l.slice(0,c);break}}else for(r=S;r!==A;r+=C)if(o=n.xaxes[r],-1!==p.cartesian.indexOf(o+M)){E[M]=o;break}}}}function d(e,t,n,r,a){var o,i=new Array(n);function l(e,n){-1!==t.indexOf(n)&&void 0===r[n]?(i[e]=n,r[n]=e):i[e]=""}if(Array.isArray(e))for(o=0;o<n;o++)l(o,e[o]);else for(l(0,a),o=1;o<n;o++)l(o,a+(o+1));return i}t.exports={moduleType:"component",name:"grid",schema:{layout:{grid:s}},layoutAttributes:s,sizeDefaults:c,contentDefaults:p}},{"../../lib":750,"../../lib/regex":766,"../../plot_api/plot_template":788,"../../plots/cartesian/constants":805,"../../plots/domain":826}],660:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/constants"),a=e("../../plot_api/plot_template").templatedArray;e("../../constants/axis_placeable_objects");t.exports=a("image",{visible:{valType:"boolean",dflt:!0,editType:"arraydraw"},source:{valType:"string",editType:"arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},sizex:{valType:"number",dflt:0,editType:"arraydraw"},sizey:{valType:"number",dflt:0,editType:"arraydraw"},sizing:{valType:"enumerated",values:["fill","contain","stretch"],dflt:"contain",editType:"arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},x:{valType:"any",dflt:0,editType:"arraydraw"},y:{valType:"any",dflt:0,editType:"arraydraw"},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left",editType:"arraydraw"},yanchor:{valType:"enumerated",values:["top","middle","bottom"],dflt:"top",editType:"arraydraw"},xref:{valType:"enumerated",values:["paper",r.idRegex.x.toString()],dflt:"paper",editType:"arraydraw"},yref:{valType:"enumerated",values:["paper",r.idRegex.y.toString()],dflt:"paper",editType:"arraydraw"},editType:"arraydraw"})},{"../../constants/axis_placeable_objects":718,"../../plot_api/plot_template":788,"../../plots/cartesian/constants":805}],661:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib/to_log_range");t.exports=function(e,t,n,o){t=t||{};var i="log"===n&&"linear"===t.type,l="linear"===n&&"log"===t.type;if(i||l)for(var s,u,c=e._fullLayout.images,f=t._id.charAt(0),p=0;p<c.length;p++)if(s=c[p],u="images["+p+"].",s[f+"ref"]===t._id){var d=s[f],h=s["size"+f],v=null,m=null;if(i){v=a(d,t.range);var y=h/Math.pow(10,v)/2;m=2*Math.log(y+Math.sqrt(1+y*y))/Math.LN10}else v=Math.pow(10,d),m=v*(Math.pow(10,h/2)-Math.pow(10,-h/2));r(v)?r(m)||(m=null):(v=null,m=null),o(u+f,v),o(u+"size"+f,m)}}},{"../../lib/to_log_range":776,"fast-isnumeric":241}],662:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("../../plots/array_container_defaults"),i=e("./attributes"),l="images";function s(e,t,n){function o(n,a){return r.coerce(e,t,i,n,a)}var l=o("source"),s=o("visible",!!l);if(!s)return t;o("layer"),o("xanchor"),o("yanchor"),o("sizex"),o("sizey"),o("sizing"),o("opacity");for(var u={_fullLayout:n},c=["x","y"],f=0;f<2;f++){var p=c[f],d=a.coerceRef(e,t,u,p,"paper",void 0);if("paper"!==d){var h=a.getFromId(u,d);h._imgIndices.push(t._index)}a.coercePosition(t,u,o,d,p,0)}return t}t.exports=function(e,t){var n={name:l,handleItemDefaults:s};o(e,t,n)}},{"../../lib":750,"../../plots/array_container_defaults":794,"../../plots/cartesian/axes":799,"./attributes":660}],663:[function(e,t,n){"use strict";var r=e("d3"),a=e("../drawing"),o=e("../../plots/cartesian/axes"),i=e("../../plots/cartesian/axis_ids"),l=e("../../constants/xmlns_namespaces");t.exports=function(e){var t,n,s=e._fullLayout,u=[],c={},f=[];for(n=0;n<s.images.length;n++){var p=s.images[n];if(p.visible)if("below"===p.layer&&"paper"!==p.xref&&"paper"!==p.yref){t=i.ref2id(p.xref)+i.ref2id(p.yref);var d=s._plots[t];if(!d){f.push(p);continue}d.mainplot&&(t=d.mainplot.id),c[t]||(c[t]=[]),c[t].push(p)}else"above"===p.layer?u.push(p):f.push(p)}var h={x:{left:{sizing:"xMin",offset:0},center:{sizing:"xMid",offset:-.5},right:{sizing:"xMax",offset:-1}},y:{top:{sizing:"YMin",offset:0},middle:{sizing:"YMid",offset:-.5},bottom:{sizing:"YMax",offset:-1}}};function v(t){var n=r.select(this);if(this._imgSrc!==t.source)if(n.attr("xmlns",l.svg),t.source&&"data:"===t.source.slice(0,5))n.attr("xlink:href",t.source),this._imgSrc=t.source;else{var a=new Promise(function(e){var r=new Image;function a(){n.remove(),e()}this.img=r,r.setAttribute("crossOrigin","anonymous"),r.onerror=a,r.onload=function(){var t=document.createElement("canvas");t.width=this.width,t.height=this.height;var r=t.getContext("2d");r.drawImage(this,0,0);var a=t.toDataURL("image/png");n.attr("xlink:href",a),e()},n.on("error",a),r.src=t.source,this._imgSrc=t.source}.bind(this));e._promises.push(a)}}function m(t){var n,i,l=r.select(this),u=o.getFromId(e,t.xref),c=o.getFromId(e,t.yref),f="domain"===o.getRefType(t.xref),p="domain"===o.getRefType(t.yref),d=s._size;n=void 0!==u?"string"===typeof t.xref&&f?u._length*t.sizex:Math.abs(u.l2p(t.sizex)-u.l2p(0)):t.sizex*d.w,i=void 0!==c?"string"===typeof t.yref&&p?c._length*t.sizey:Math.abs(c.l2p(t.sizey)-c.l2p(0)):t.sizey*d.h;var v,m,y=n*h.x[t.xanchor].offset,g=i*h.y[t.yanchor].offset,b=h.x[t.xanchor].sizing+h.y[t.yanchor].sizing;switch(v=void 0!==u?"string"===typeof t.xref&&f?u._length*t.x+u._offset:u.r2p(t.x)+u._offset:t.x*d.w+d.l,v+=y,m=void 0!==c?"string"===typeof t.yref&&p?c._length*(1-t.y)+c._offset:c.r2p(t.y)+c._offset:d.h-t.y*d.h+d.t,m+=g,t.sizing){case"fill":b+=" slice";break;case"stretch":b="none";break}l.attr({x:v,y:m,width:n,height:i,preserveAspectRatio:b,opacity:t.opacity});var x=u&&"domain"!==o.getRefType(t.xref)?u._id:"",_=c&&"domain"!==o.getRefType(t.yref)?c._id:"",w=x+_;a.setClipUrl(l,w?"clip"+s._uid+w:null,e)}var y=s._imageLowerLayer.selectAll("image").data(f),g=s._imageUpperLayer.selectAll("image").data(u);y.enter().append("image"),g.enter().append("image"),y.exit().remove(),g.exit().remove(),y.each((function(e){v.bind(this)(e),m.bind(this)(e)})),g.each((function(e){v.bind(this)(e),m.bind(this)(e)}));var b=Object.keys(s._plots);for(n=0;n<b.length;n++){t=b[n];var x=s._plots[t];if(x.imagelayer){var _=x.imagelayer.selectAll("image").data(c[t]||[]);_.enter().append("image"),_.exit().remove(),_.each((function(e){v.bind(this)(e),m.bind(this)(e)}))}}}},{"../../constants/xmlns_namespaces":726,"../../plots/cartesian/axes":799,"../../plots/cartesian/axis_ids":802,"../drawing":637,d3:169}],664:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"images",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),includeBasePlot:e("../../plots/cartesian/include_components")("images"),draw:e("./draw"),convertCoords:e("./convert_coords")}},{"../../plots/cartesian/include_components":811,"./attributes":660,"./convert_coords":661,"./defaults":662,"./draw":663}],665:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("../color/attributes");t.exports={bgcolor:{valType:"color",editType:"legend"},bordercolor:{valType:"color",dflt:a.defaultLine,editType:"legend"},borderwidth:{valType:"number",min:0,dflt:0,editType:"legend"},font:r({editType:"legend"}),orientation:{valType:"enumerated",values:["v","h"],dflt:"v",editType:"legend"},traceorder:{valType:"flaglist",flags:["reversed","grouped"],extras:["normal"],editType:"legend"},tracegroupgap:{valType:"number",min:0,dflt:10,editType:"legend"},itemsizing:{valType:"enumerated",values:["trace","constant"],dflt:"trace",editType:"legend"},itemclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggle",editType:"legend"},itemdoubleclick:{valType:"enumerated",values:["toggle","toggleothers",!1],dflt:"toggleothers",editType:"legend"},x:{valType:"number",min:-2,max:3,editType:"legend"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"legend"},y:{valType:"number",min:-2,max:3,editType:"legend"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],editType:"legend"},uirevision:{valType:"any",editType:"none"},valign:{valType:"enumerated",values:["top","middle","bottom"],dflt:"middle",editType:"legend"},title:{text:{valType:"string",dflt:"",editType:"legend"},font:r({editType:"legend"}),side:{valType:"enumerated",values:["top","left","top left"],editType:"legend"},editType:"legend"},editType:"legend"}},{"../../plots/font_attributes":827,"../color/attributes":614}],666:[function(e,t,n){"use strict";t.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:"#808BA4",scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,textGap:40,itemGap:5}},{}],667:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),o=e("../../plot_api/plot_template"),i=e("./attributes"),l=e("../../plots/layout_attributes"),s=e("./helpers");t.exports=function(e,t,n){for(var u=e.legend||{},c=0,f=!1,p="normal",d=0;d<n.length;d++){var h=n[d];h.visible&&((h.showlegend||h._dfltShowLegend&&!(h._module&&h._module.attributes&&h._module.attributes.showlegend&&!1===h._module.attributes.showlegend.dflt))&&(c++,h.showlegend&&(f=!0,(r.traceIs(h,"pie-like")||!0===h._input.showlegend)&&c++)),(r.traceIs(h,"bar")&&"stack"===t.barmode||-1!==["tonextx","tonexty"].indexOf(h.fill))&&(p=s.isGrouped({traceorder:p})?"grouped+reversed":"reversed"),void 0!==h.legendgroup&&""!==h.legendgroup&&(p=s.isReversed({traceorder:p})?"reversed+grouped":"grouped"))}var v=a.coerce(e,t,l,"showlegend",f&&c>1);if(!1!==v||u.uirevision){var m=o.newContainer(t,"legend");if(w("uirevision",t.uirevision),!1!==v){w("bgcolor",t.paper_bgcolor),w("bordercolor"),w("borderwidth"),a.coerceFont(w,"font",t.font);var y,g,b,x=w("orientation");"h"===x?(y=0,r.getComponentMethod("rangeslider","isVisible")(e.xaxis)?(g=1.1,b="bottom"):(g=-.1,b="top")):(y=1.02,g=1,b="auto"),w("traceorder",p),s.isGrouped(t.legend)&&w("tracegroupgap"),w("itemsizing"),w("itemclick"),w("itemdoubleclick"),w("x",y),w("xanchor"),w("y",g),w("yanchor",b),w("valign"),a.noneOrAll(u,m,["x","y"]);var _=w("title.text");_&&(w("title.side","h"===x?"left":"top"),a.coerceFont(w,"title.font",t.font))}}function w(e,t){return a.coerce(u,m,i,e,t)}}},{"../../lib":750,"../../plot_api/plot_template":788,"../../plots/layout_attributes":853,"../../registry":882,"./attributes":665,"./helpers":671}],668:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../../plots/plots"),i=e("../../registry"),l=e("../../lib/events"),s=e("../dragelement"),u=e("../drawing"),c=e("../color"),f=e("../../lib/svg_text_utils"),p=e("./handle_click"),d=e("./constants"),h=e("../../constants/alignment"),v=h.LINE_SPACING,m=h.FROM_TL,y=h.FROM_BR,g=e("./get_legend_data"),b=e("./style"),x=e("./helpers");function _(e,t,n,r,a){var o=n.data()[0][0].trace,s={event:a,node:n.node(),curveNumber:o.index,expandedIndex:o._expandedIndex,data:e.data,layout:e.layout,frames:e._transitionData._frames,config:e._context,fullData:e._fullData,fullLayout:e._fullLayout};o._group&&(s.group=o._group),i.traceIs(o,"pie-like")&&(s.label=n.datum()[0].label);var u=l.triggerHandler(e,"plotly_legendclick",s);if(!1!==u)if(1===r)t._clickTimeout=setTimeout((function(){p(n,e,r)}),e._context.doubleClickDelay);else if(2===r){t._clickTimeout&&clearTimeout(t._clickTimeout),e._legendMouseDownTime=0;var c=l.triggerHandler(e,"plotly_legenddoubleclick",s);!1!==c&&p(n,e,r)}}function w(e,t,n){var r,o=e.data()[0][0],l=o.trace,s=i.traceIs(l,"pie-like"),c=l.index,p=n._main&&t._context.edits.legendText&&!s,h=n._maxNameLength;n.entries?r=o.text:(r=s?o.label:l.name,l._meta&&(r=a.templateString(r,l._meta)));var v=a.ensureSingle(e,"text","legendtext");v.attr("text-anchor","start").call(u.font,n.font).text(p?k(r,h):r),f.positionText(v,d.textGap,0),p?v.call(f.makeEditable,{gd:t,text:r}).call(E,e,t,n).on("edit",(function(r){this.text(k(r,h)).call(E,e,t,n);var l=o.trace._fullInput||{},s={};if(i.hasTransform(l,"groupby")){var u=i.getTransformIndices(l,"groupby"),f=u[u.length-1],p=a.keyedContainer(l,"transforms["+f+"].styles","target","value.name");p.set(o.trace._group,r),s=p.constructUpdate()}else s.name=r;return i.call("_guiRestyle",t,s,c)})):E(v,e,t,n)}function k(e,t){var n=Math.max(4,t);if(e&&e.trim().length>=n/2)return e;e=e||"";for(var r=n-e.length;r>0;r--)e+=" ";return e}function T(e,t){var n,o=t._context.doubleClickDelay,i=1,l=a.ensureSingle(e,"rect","legendtoggle",(function(e){t._context.staticPlot||e.style("cursor","pointer").attr("pointer-events","all"),e.call(c.fill,"rgba(0,0,0,0)")}));t._context.staticPlot||(l.on("mousedown",(function(){n=(new Date).getTime(),n-t._legendMouseDownTime<o?i+=1:(i=1,t._legendMouseDownTime=n)})),l.on("mouseup",(function(){if(!t._dragged&&!t._editing){var n=t._fullLayout.legend;(new Date).getTime()-t._legendMouseDownTime>o&&(i=Math.max(i-1,1)),_(t,n,e,i,r.event)}})))}function E(e,t,n,r){r._main||e.attr("data-notex",!0),f.convertToTspans(e,n,(function(){O(t,n,r)}))}function O(e,t,n){var r=e.data()[0][0];if(n._main&&r&&!r.trace.showlegend)e.remove();else{var a=e.select("g[class*=math-group]"),o=a.node();n||(n=t._fullLayout.legend);var i,l,s=n.borderwidth,c=(r?n:n.title).font.size*v;if(o){var p=u.bBox(o);i=p.height,l=p.width,r?u.setTranslate(a,0,.25*i):u.setTranslate(a,s,.75*i+s)}else{var h=e.select(r?".legendtext":".legendtitletext"),m=f.lineCount(h),y=h.node();i=c*m,l=y?u.bBox(y).width:0;var g=c*((m-1)/2-.3);r?f.positionText(h,d.textGap,-g):f.positionText(h,d.titlePad+s,c+s)}r?(r.lineHeight=c,r.height=Math.max(i,16)+3,r.width=l):(n._titleWidth=l,n._titleHeight=i)}}function M(e){var t=0,n=0,r=e.title.side;return r&&(-1!==r.indexOf("left")&&(t=e._titleWidth),-1!==r.indexOf("top")&&(n=e._titleHeight)),[t,n]}function S(e,t,n,a){var o=e._fullLayout;a||(a=o.legend);var i=o._size,l=x.isVertical(a),s=x.isGrouped(a),c=a.borderwidth,f=2*c,p=d.textGap,h=d.itemGap,v=2*(c+h),m=P(a),y=a.y<0||0===a.y&&"top"===m,g=a.y>1||1===a.y&&"bottom"===m;a._maxHeight=Math.max(y||g?o.height/2:i.h,30);var b=0;a._width=0,a._height=0;var _=M(a);if(l)n.each((function(e){var t=e[0].height;u.setTranslate(this,c+_[0],c+_[1]+a._height+t/2+h),a._height+=t,a._width=Math.max(a._width,e[0].width)})),b=p+a._width,a._width+=h+p+f,a._height+=v,s&&(t.each((function(e,t){u.setTranslate(this,0,t*a.tracegroupgap)})),a._height+=(a._lgroupsLength-1)*a.tracegroupgap);else{var w=A(a),k=a.x<0||0===a.x&&"right"===w,T=a.x>1||1===a.x&&"left"===w,E=g||y,O=o.width/2;a._maxWidth=Math.max(k?E&&"left"===w?i.l+i.w:O:T?E&&"right"===w?i.r+i.w:O:i.w,2*p);var S=0,C=0;n.each((function(e){var t=e[0].width+p;S=Math.max(S,t),C+=t})),b=null;var L=0;if(s){var D=0,j=0,I=0;t.each((function(){var e=0,t=0;r.select(this).selectAll("g.traces").each((function(n){var r=n[0].height;u.setTranslate(this,_[0],_[1]+c+h+r/2+t),t+=r,e=Math.max(e,p+n[0].width)})),D=Math.max(D,t);var n=e+h;n+c+j>a._maxWidth&&(L=Math.max(L,j),j=0,I+=D+a.tracegroupgap,D=t),u.setTranslate(this,j,I),j+=n})),a._width=Math.max(L,j)+c,a._height=I+D+v}else{var R=n.size(),z=C+f+(R-1)*h<a._maxWidth,N=0,F=0,B=0,V=0;n.each((function(e){var t=e[0].height,n=p+e[0].width,r=(z?n:S)+h;r+c+F-h>=a._maxWidth&&(L=Math.max(L,V),F=0,B+=N,a._height+=N,N=0),u.setTranslate(this,_[0]+c+F,_[1]+c+B+t/2+h),V=F+n+h,F+=r,N=Math.max(N,t)})),z?(a._width=F+f,a._height=N+v):(a._width=Math.max(L,V)+f,a._height+=N+v)}}a._width=Math.ceil(Math.max(a._width+_[0],a._titleWidth+2*(c+d.titlePad))),a._height=Math.ceil(Math.max(a._height+_[1],a._titleHeight+2*(c+d.itemGap))),a._effHeight=Math.min(a._height,a._maxHeight);var H=e._context.edits,U=H.legendText||H.legendPosition;n.each((function(e){var t=r.select(this).select(".legendtoggle"),n=e[0].height,a=U?p:b||p+e[0].width;l||(a+=h/2),u.setRect(t,0,-n/2,a,n)}))}function C(e){var t=e._fullLayout,n=t.legend,r=A(n),a=P(n);return o.autoMargin(e,"legend",{x:n.x,y:n.y,l:n._width*m[r],r:n._width*y[r],b:n._effHeight*y[a],t:n._effHeight*m[a]})}function A(e){return a.isRightAnchor(e)?"right":a.isCenterAnchor(e)?"center":"left"}function P(e){return a.isBottomAnchor(e)?"bottom":a.isMiddleAnchor(e)?"middle":"top"}t.exports=function(e,t){var n,l=e._fullLayout,f="legend"+l._uid;if(t?(n=t.layer,f+="-hover"):(t=l.legend||{},t._main=!0,n=l._infolayer),n){var p;if(e._legendMouseDownTime||(e._legendMouseDownTime=0),t._main){if(!e.calcdata)return;p=l.showlegend&&g(e.calcdata,t)}else{if(!t.entries)return;p=g(t.entries,t)}var h=l.hiddenlabels||[];if(t._main&&(!l.showlegend||!p.length))return n.selectAll(".legend").remove(),l._topdefs.select("#"+f).remove(),o.autoMargin(e,"legend");var v=a.ensureSingle(n,"g","legend",(function(e){t._main&&e.attr("pointer-events","all")})),y=a.ensureSingleById(l._topdefs,"clipPath",f,(function(e){e.append("rect")})),x=a.ensureSingle(v,"rect","bg",(function(e){e.attr("shape-rendering","crispEdges")}));x.call(c.stroke,t.bordercolor).call(c.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px");var k=a.ensureSingle(v,"g","scrollbox"),O=t.title;if(t._titleWidth=0,t._titleHeight=0,O.text){var M=a.ensureSingle(k,"text","legendtitletext");M.attr("text-anchor","start").call(u.font,O.font).text(O.text),E(M,k,e,t)}else k.selectAll(".legendtitletext").remove();var L=a.ensureSingle(v,"rect","scrollbar",(function(e){e.attr(d.scrollBarEnterAttrs).call(c.fill,d.scrollBarColor)})),D=k.selectAll("g.groups").data(p);D.enter().append("g").attr("class","groups"),D.exit().remove();var j=D.selectAll("g.traces").data(a.identity);j.enter().append("g").attr("class","traces"),j.exit().remove(),j.style("opacity",(function(e){var t=e[0].trace;return i.traceIs(t,"pie-like")?-1!==h.indexOf(e[0].label)?.5:1:"legendonly"===t.visible?.5:1})).each((function(){r.select(this).call(w,e,t)})).call(b,e,t).each((function(){t._main&&r.select(this).call(T,e)})),a.syncOrAsync([o.previousPromises,function(){return S(e,D,j,t)},function(){if(!t._main||!C(e)){var o,c,p,h,g=l._size,b=t.borderwidth,w=g.l+g.w*t.x-m[A(t)]*t._width,T=g.t+g.h*(1-t.y)-m[P(t)]*t._effHeight;if(t._main&&l.margin.autoexpand){var E=w,O=T;w=a.constrain(w,0,l.width-t._width),T=a.constrain(T,0,l.height-t._effHeight),w!==E&&a.log("Constrain legend.x to make legend fit inside graph"),T!==O&&a.log("Constrain legend.y to make legend fit inside graph")}if(t._main&&u.setTranslate(v,w,T),L.on(".drag",null),v.on("wheel",null),!t._main||t._height<=t._maxHeight||e._context.staticPlot){var M=t._effHeight;t._main||(M=t._height),x.attr({width:t._width-b,height:M-b,x:b/2,y:b/2}),u.setTranslate(k,0,0),y.select("rect").attr({width:t._width-2*b,height:M-2*b,x:b,y:b}),u.setClipUrl(k,f,e),u.setRect(L,0,0,0,0),delete t._scrollY}else{var S,D,j,I=Math.max(d.scrollBarMinHeight,t._effHeight*t._effHeight/t._height),R=t._effHeight-I-2*d.scrollBarMargin,z=t._height-t._effHeight,N=R/z,F=Math.min(t._scrollY||0,z);x.attr({width:t._width-2*b+d.scrollBarWidth+d.scrollBarMargin,height:t._effHeight-b,x:b/2,y:b/2}),y.select("rect").attr({width:t._width-2*b+d.scrollBarWidth+d.scrollBarMargin,height:t._effHeight-2*b,x:b,y:b+F}),u.setClipUrl(k,f,e),W(F,I,N),v.on("wheel",(function(){F=a.constrain(t._scrollY+r.event.deltaY/R*z,0,z),W(F,I,N),0!==F&&F!==z&&r.event.preventDefault()}));var B=function(e,t,n){var r=(n-t)/N+e;return a.constrain(r,0,z)},V=function(e,t,n){var r=(t-n)/N+e;return a.constrain(r,0,z)},H=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;S="touchstart"===e.type?e.changedTouches[0].clientY:e.clientY,j=F})).on("drag",(function(){var e=r.event.sourceEvent;2===e.buttons||e.ctrlKey||(D="touchmove"===e.type?e.changedTouches[0].clientY:e.clientY,F=B(j,S,D),W(F,I,N))}));L.call(H);var U=r.behavior.drag().on("dragstart",(function(){var e=r.event.sourceEvent;"touchstart"===e.type&&(S=e.changedTouches[0].clientY,j=F)})).on("drag",(function(){var e=r.event.sourceEvent;"touchmove"===e.type&&(D=e.changedTouches[0].clientY,F=V(j,S,D),W(F,I,N))}));k.call(U)}if(e._context.edits.legendPosition)v.classed("cursor-move",!0),s.init({element:v.node(),gd:e,prepFn:function(){var e=u.getTranslate(v);p=e.x,h=e.y},moveFn:function(e,n){var r=p+e,a=h+n;u.setTranslate(v,r,a),o=s.align(r,0,g.l,g.l+g.w,t.xanchor),c=s.align(a,0,g.t+g.h,g.t,t.yanchor)},doneFn:function(){void 0!==o&&void 0!==c&&i.call("_guiRelayout",e,{"legend.x":o,"legend.y":c})},clickFn:function(t,r){var a=n.selectAll("g.traces").filter((function(){var e=this.getBoundingClientRect();return r.clientX>=e.left&&r.clientX<=e.right&&r.clientY>=e.top&&r.clientY<=e.bottom}));a.size()>0&&_(e,v,a,t,r)}})}function W(n,r,a){t._scrollY=e._fullLayout.legend._scrollY=n,u.setTranslate(k,0,-n),u.setRect(L,t._width,d.scrollBarMargin+n*a,d.scrollBarWidth,r),y.select("rect").attr("y",b+n)}}],e)}}},{"../../constants/alignment":717,"../../lib":750,"../../lib/events":739,"../../lib/svg_text_utils":774,"../../plots/plots":862,"../../registry":882,"../color":615,"../dragelement":634,"../drawing":637,"./constants":666,"./get_legend_data":669,"./handle_click":670,"./helpers":671,"./style":673,d3:169}],669:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("./helpers");t.exports=function(e,t){var n,o,i={},l=[],s=!1,u={},c=0,f=0,p=t._main;function d(e,n){if(""!==e&&a.isGrouped(t))-1===l.indexOf(e)?(l.push(e),s=!0,i[e]=[[n]]):i[e].push([n]);else{var r="~~i"+c;l.push(r),i[r]=[[n]],c++}}for(n=0;n<e.length;n++){var h=e[n],v=h[0],m=v.trace,y=m.legendgroup;if(!p||m.visible&&m.showlegend)if(r.traceIs(m,"pie-like"))for(u[y]||(u[y]={}),o=0;o<h.length;o++){var g=h[o].label;u[y][g]||(d(y,{label:g,color:h[o].color,i:h[o].i,trace:m,pts:h[o].pts}),u[y][g]=!0,f=Math.max(f,(g||"").length))}else d(y,v),f=Math.max(f,(m.name||"").length)}if(!l.length)return[];var b,x,_=l.length;if(s&&a.isGrouped(t))for(x=new Array(_),n=0;n<_;n++)b=i[l[n]],x[n]=a.isReversed(t)?b.reverse():b;else{for(x=[new Array(_)],n=0;n<_;n++)b=i[l[n]][0],x[0][a.isReversed(t)?_-n-1:n]=b;_=1}return t._lgroupsLength=_,t._maxNameLength=f,x}},{"../../registry":882,"./helpers":671}],670:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry"),o=!0;t.exports=function(e,t,n){var i=t._fullLayout;if(!t._dragged&&!t._editing){var l,s=i.legend.itemclick,u=i.legend.itemdoubleclick;if(1===n&&"toggle"===s&&"toggleothers"===u&&o&&t.data&&t._context.showTips?(r.notifier(r._(t,"Double-click on legend to isolate one trace"),"long"),o=!1):o=!1,1===n?l=s:2===n&&(l=u),l){var c,f,p,d,h,v,m=i.hiddenlabels?i.hiddenlabels.slice():[],y=e.data()[0][0],g=t._fullData,b=y.trace,x=b.legendgroup,_={},w=[],k=[],T=[];if(a.traceIs(b,"pie-like")){var E=y.label,O=m.indexOf(E);"toggle"===l?-1===O?m.push(E):m.splice(O,1):"toggleothers"===l&&(m=[],t.calcdata[0].forEach((function(e){E!==e.label&&m.push(e.label)})),t._fullLayout.hiddenlabels&&t._fullLayout.hiddenlabels.length===m.length&&-1===O&&(m=[])),a.call("_guiRelayout",t,"hiddenlabels",m)}else{var M,S=x&&x.length,C=[];if(S)for(c=0;c<g.length;c++)M=g[c],M.visible&&M.legendgroup===x&&C.push(c);if("toggle"===l){var A;switch(b.visible){case!0:A="legendonly";break;case!1:A=!1;break;case"legendonly":A=!0;break}if(S)for(c=0;c<g.length;c++)!1!==g[c].visible&&g[c].legendgroup===x&&F(g[c],A);else F(b,A)}else if("toggleothers"===l){var P,L,D,j,I=!0;for(c=0;c<g.length;c++)if(P=g[c]===b,D=!0!==g[c].showlegend,!P&&!D&&(L=S&&g[c].legendgroup===x,!L&&!0===g[c].visible&&!a.traceIs(g[c],"notLegendIsolatable"))){I=!1;break}for(c=0;c<g.length;c++)if(!1!==g[c].visible&&!a.traceIs(g[c],"notLegendIsolatable"))switch(b.visible){case"legendonly":F(g[c],!0);break;case!0:j=!!I||"legendonly",P=g[c]===b,D=!0!==g[c].showlegend&&!g[c].legendgroup,L=P||S&&g[c].legendgroup===x,F(g[c],!(!L&&!D)||j);break}}for(c=0;c<k.length;c++)if(p=k[c],p){var R=p.constructUpdate(),z=Object.keys(R);for(f=0;f<z.length;f++)d=z[f],v=_[d]=_[d]||[],v[T[c]]=R[d]}for(h=Object.keys(_),c=0;c<h.length;c++)for(d=h[c],f=0;f<w.length;f++)_[d].hasOwnProperty(f)||(_[d][f]=void 0);a.call("_guiRestyle",t,_,w)}}}function N(e,t,n){var r=w.indexOf(e),a=_[t];return a||(a=_[t]=[]),-1===w.indexOf(e)&&(w.push(e),r=w.length-1),a[r]=n,r}function F(e,t){var n=e._fullInput;if(a.hasTransform(n,"groupby")){var o=k[n.index];if(!o){var i=a.getTransformIndices(n,"groupby"),l=i[i.length-1];o=r.keyedContainer(n,"transforms["+l+"].styles","target","value.visible"),k[n.index]=o}var s=o.get(e._group);void 0===s&&(s=!0),!1!==s&&o.set(e._group,t),T[n.index]=N(n.index,"visible",!1!==n.visible)}else{var u=!1!==n.visible&&t;N(n.index,"visible",u)}}}},{"../../lib":750,"../../registry":882}],671:[function(e,t,n){"use strict";n.isGrouped=function(e){return-1!==(e.traceorder||"").indexOf("grouped")},n.isVertical=function(e){return"h"!==e.orientation},n.isReversed=function(e){return-1!==(e.traceorder||"").indexOf("reversed")}},{}],672:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"legend",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),draw:e("./draw"),style:e("./style")}},{"./attributes":665,"./defaults":667,"./draw":668,"./style":673}],673:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),o=e("../../lib"),i=e("../drawing"),l=e("../color"),s=e("../colorscale/helpers").extractOpts,u=e("../../traces/scatter/subtypes"),c=e("../../traces/pie/style_one"),f=e("../../traces/pie/helpers").castOption,p=12,d=5,h=2,v=10,m=5;function y(e,t){var n=t?"radial":"horizontal";return n+(e?"":"reversed")}t.exports=function(e,t,n){var g=t._fullLayout;n||(n=g.legend);var b="constant"===n.itemsizing,x=function(e,t,n,r){var a;if(e+1)a=e;else{if(!(t&&t.width>0))return 0;a=t.width}return b?r:Math.min(a,n)};function _(e){var n,a,l=e[0],c=l.trace,f=c.visible&&c.fill&&"none"!==c.fill,p=u.hasLines(c),h=c.contours,m=!1,g=!1,b=s(c),_=b.colorscale,w=b.reversescale,k=function(e){if(e.size()){var n="legendfill-"+c.uid;i.gradient(e,t,n,y(w),_,"fill")}},T=function(e){if(e.size()){var n="legendline-"+c.uid;i.lineGroupStyle(e),i.gradient(e,t,n,y(w),_,"stroke")}};if(h){var E=h.coloring;"lines"===E?m=!0:p="none"===E||"heatmap"===E||h.showlines,"constraint"===h.type?f="="!==h._operation:"fill"!==E&&"heatmap"!==E||(g=!0)}var O=u.hasMarkers(c)||u.hasText(c),M=f||g,S=p||m,C=O||!M?"M5,0":S?"M5,-2":"M5,-3",A=r.select(this),P=A.select(".legendfill").selectAll("path").data(f||g?[e]:[]);if(P.enter().append("path").classed("js-fill",!0),P.exit().remove(),P.attr("d",C+"h30v6h-30z").call(f?i.fillGroupStyle:k),p||m){var L=x(void 0,c.line,v,d);a=o.minExtend(c,{line:{width:L}}),n=[o.minExtend(l,{trace:a})]}var D=A.select(".legendlines").selectAll("path").data(p||m?[n]:[]);D.enter().append("path").classed("js-line",!0),D.exit().remove(),D.attr("d",C+(m?"l30,0.0001":"h30")).call(p?i.lineGroupStyle:T)}function w(e){var n,a,l=e[0],s=l.trace,c=u.hasMarkers(s),f=u.hasText(s),v=u.hasLines(s);function m(e,t,n,r){var a=o.nestedProperty(s,e).get(),i=o.isArrayOrTypedArray(a)&&t?t(a):a;if(b&&i&&void 0!==r&&(i=r),n){if(i<n[0])return n[0];if(i>n[1])return n[1]}return i}function y(e){return l._distinct&&l.index&&e[l.index]?e[l.index]:e[0]}if(c||f||v){var g={},x={};if(c){g.mc=m("marker.color",y),g.mx=m("marker.symbol",y),g.mo=m("marker.opacity",o.mean,[.2,1]),g.mlc=m("marker.line.color",y),g.mlw=m("marker.line.width",o.mean,[0,5],h),x.marker={sizeref:1,sizemin:1,sizemode:"diameter"};var _=m("marker.size",o.mean,[2,16],p);g.ms=_,x.marker.size=_}v&&(x.line={width:m("line.width",y,[0,10],d)}),f&&(g.tx="Aa",g.tp=m("textposition",y),g.ts=10,g.tc=m("textfont.color",y),g.tf=m("textfont.family",y)),n=[o.minExtend(l,g)],a=o.minExtend(s,x),a.selectedpoints=null,a.texttemplate=null}var w=r.select(this).select("g.legendpoints"),k=w.selectAll("path.scatterpts").data(c?n:[]);k.enter().insert("path",":first-child").classed("scatterpts",!0).attr("transform","translate(20,0)"),k.exit().remove(),k.call(i.pointStyle,a,t),c&&(n[0].mrc=3);var T=w.selectAll("g.pointtext").data(f?n:[]);T.enter().append("g").classed("pointtext",!0).append("text").attr("transform","translate(20,0)"),T.exit().remove(),T.selectAll("text").call(i.textPointStyle,a,t)}function k(e){var t=e[0].trace,n="waterfall"===t.type;if(e[0]._distinct&&n){var a=e[0].trace[e[0].dir].marker;return e[0].mc=a.color,e[0].mlw=a.line.width,e[0].mlc=a.line.color,O(e,this,"waterfall")}var o=[];t.visible&&n&&(o=e[0].hasTotals?[["increasing","M-6,-6V6H0Z"],["totals","M6,6H0L-6,-6H-0Z"],["decreasing","M6,6V-6H0Z"]]:[["increasing","M-6,-6V6H6Z"],["decreasing","M6,6V-6H-6Z"]]);var i=r.select(this).select("g.legendpoints").selectAll("path.legendwaterfall").data(o);i.enter().append("path").classed("legendwaterfall",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),i.exit().remove(),i.each((function(e){var n=r.select(this),a=t[e[0]].marker,o=x(void 0,a.line,m,h);n.attr("d",e[1]).style("stroke-width",o+"px").call(l.fill,a.color),o&&n.call(l.stroke,a.line.color)}))}function T(e){O(e,this)}function E(e){O(e,this,"funnel")}function O(e,t,n){var o=e[0].trace,i=o.marker||{},s=i.line||{},u=n?o.visible&&o.type===n:a.traceIs(o,"bar"),c=r.select(t).select("g.legendpoints").selectAll("path.legend"+n).data(u?[e]:[]);c.enter().append("path").classed("legend"+n,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),c.exit().remove(),c.each((function(e){var t=r.select(this),n=e[0],a=x(n.mlw,i.line,m,h);t.style("stroke-width",a+"px").call(l.fill,n.mc||i.color),a&&l.stroke(t,n.mlc||s.color)}))}function M(e){var n=e[0].trace,s=r.select(this).select("g.legendpoints").selectAll("path.legendbox").data(n.visible&&a.traceIs(n,"box-violin")?[e]:[]);s.enter().append("path").classed("legendbox",!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),s.exit().remove(),s.each((function(){var e=r.select(this);if("all"!==n.boxpoints&&"all"!==n.points||0!==l.opacity(n.fillcolor)||0!==l.opacity((n.line||{}).color)){var a=x(void 0,n.line,m,h);e.style("stroke-width",a+"px").call(l.fill,n.fillcolor),a&&l.stroke(e,n.line.color)}else{var u=o.minExtend(n,{marker:{size:b?p:o.constrain(n.marker.size,2,16),sizeref:1,sizemin:1,sizemode:"diameter"}});s.call(i.pointStyle,u,t)}}))}function S(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendcandle").data(t.visible&&"candlestick"===t.type?[e,e]:[]);n.enter().append("path").classed("legendcandle",!0).attr("d",(function(e,t){return t?"M-15,0H-8M-8,6V-6H8Z":"M15,0H8M8,-6V6H-8Z"})).attr("transform","translate(20,0)").style("stroke-miterlimit",1),n.exit().remove(),n.each((function(e,n){var a=r.select(this),o=t[n?"increasing":"decreasing"],i=x(void 0,o.line,m,h);a.style("stroke-width",i+"px").call(l.fill,o.fillcolor),i&&l.stroke(a,o.line.color)}))}function C(e){var t=e[0].trace,n=r.select(this).select("g.legendpoints").selectAll("path.legendohlc").data(t.visible&&"ohlc"===t.type?[e,e]:[]);n.enter().append("path").classed("legendohlc",!0).attr("d",(function(e,t){return t?"M-15,0H0M-8,-6V0":"M15,0H0M8,6V0"})).attr("transform","translate(20,0)").style("stroke-miterlimit",1),n.exit().remove(),n.each((function(e,n){var a=r.select(this),o=t[n?"increasing":"decreasing"],s=x(void 0,o.line,m,h);a.style("fill","none").call(i.dashLine,o.line.dash,s),s&&l.stroke(a,o.line.color)}))}function A(e){L(e,this,"pie")}function P(e){L(e,this,"funnelarea")}function L(e,t,n){var i=e[0],l=i.trace,s=n?l.visible&&l.type===n:a.traceIs(l,n),u=r.select(t).select("g.legendpoints").selectAll("path.legend"+n).data(s?[e]:[]);if(u.enter().append("path").classed("legend"+n,!0).attr("d","M6,6H-6V-6H6Z").attr("transform","translate(20,0)"),u.exit().remove(),u.size()){var p=(l.marker||{}).line,d=x(f(p.width,i.pts),p,m,h),v=o.minExtend(l,{marker:{line:{width:d}}});v.marker.line.color=p.color;var y=o.minExtend(i,{trace:v});c(u,y,v)}}function D(e){var n,a=e[0].trace,u=[];if(a.visible)switch(a.type){case"histogram2d":case"heatmap":u=[["M-15,-2V4H15V-2Z"]],n=!0;break;case"choropleth":case"choroplethmapbox":u=[["M-6,-6V6H6V-6Z"]],n=!0;break;case"densitymapbox":u=[["M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0"]],n="radial";break;case"cone":u=[["M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z"],["M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z"],["M-6,-2 A2,2 0 0,0 -6,2 L6,0Z"]],n=!1;break;case"streamtube":u=[["M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z"],["M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z"],["M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z"]],n=!1;break;case"surface":u=[["M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z"],["M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z"]],n=!0;break;case"mesh3d":u=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!1;break;case"volume":u=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6H6L0,6Z"]],n=!0;break;case"isosurface":u=[["M-6,6H0L-6,-6Z"],["M6,6H0L6,-6Z"],["M-6,-6 A12,24 0 0,0 6,-6 L0,6Z"]],n=!1;break}var c=r.select(this).select("g.legendpoints").selectAll("path.legend3dandfriends").data(u);c.enter().append("path").classed("legend3dandfriends",!0).attr("transform","translate(20,0)").style("stroke-miterlimit",1),c.exit().remove(),c.each((function(e,u){var c,f=r.select(this),p=s(a),d=p.colorscale,h=p.reversescale,v=function(e){if(e.size()){var r="legendfill-"+a.uid;i.gradient(e,t,r,y(h,"radial"===n),d,"fill")}};if(d){if(!n){var m=d.length;c=0===u?d[h?m-1:0][1]:1===u?d[h?0:m-1][1]:d[Math.floor((m-1)/2)][1]}}else{var g=a.vertexcolor||a.facecolor||a.color;c=o.isArrayOrTypedArray(g)?g[u]||g[0]:g}f.attr("d",e[0]),c?f.call(l.fill,c):f.call(v)}))}e.each((function(e){var t=r.select(this),a=o.ensureSingle(t,"g","layers");a.style("opacity",e[0].trace.opacity);var i=n.valign,l=e[0].lineHeight,s=e[0].height;if("middle"!==i&&l&&s){var u={top:1,bottom:-1}[i],c=u*(.5*(l-s+3));a.attr("transform","translate(0,"+c+")")}else a.attr("transform",null);var f=a.selectAll("g.legendfill").data([e]);f.enter().append("g").classed("legendfill",!0);var p=a.selectAll("g.legendlines").data([e]);p.enter().append("g").classed("legendlines",!0);var d=a.selectAll("g.legendsymbols").data([e]);d.enter().append("g").classed("legendsymbols",!0),d.selectAll("g.legendpoints").data([e]).enter().append("g").classed("legendpoints",!0)})).each(D).each(k).each(E).each(T).each(M).each(P).each(A).each(_).each(w).each(S).each(C)}},{"../../lib":750,"../../registry":882,"../../traces/pie/helpers":1137,"../../traces/pie/style_one":1143,"../../traces/scatter/subtypes":1183,"../color":615,"../colorscale/helpers":626,"../drawing":637,d3:169}],674:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../plots/plots"),o=e("../../plots/cartesian/axis_ids"),i=e("../../fonts/ploticon"),l=e("../shapes/draw").eraseActiveShape,s=e("../../lib"),u=s._,c=t.exports={};function f(e,t){var n,a,i=t.currentTarget,l=i.getAttribute("data-attr"),s=i.getAttribute("data-val")||!0,u=e._fullLayout,c={},f=o.list(e,null,!0),p=u._cartesianSpikesEnabled;if("zoom"===l){var d,h="in"===s?.5:2,v=(1+h)/2,m=(1-h)/2;for(a=0;a<f.length;a++)if(n=f[a],!n.fixedrange)if(d=n._name,"auto"===s)c[d+".autorange"]=!0;else if("reset"===s){if(void 0===n._rangeInitial)c[d+".autorange"]=!0;else{var y=n._rangeInitial.slice();c[d+".range[0]"]=y[0],c[d+".range[1]"]=y[1]}void 0!==n._showSpikeInitial&&(c[d+".showspikes"]=n._showSpikeInitial,"on"!==p||n._showSpikeInitial||(p="off"))}else{var g=[n.r2l(n.range[0]),n.r2l(n.range[1])],b=[v*g[0]+m*g[1],v*g[1]+m*g[0]];c[d+".range[0]"]=n.l2r(b[0]),c[d+".range[1]"]=n.l2r(b[1])}}else"hovermode"!==l||"x"!==s&&"y"!==s||(s=u._isHoriz?"y":"x",i.setAttribute("data-val",s)),c[l]=s;u._cartesianSpikesEnabled=p,r.call("_guiRelayout",e,c)}function p(e,t){for(var n=t.currentTarget,a=n.getAttribute("data-attr"),o=n.getAttribute("data-val")||!0,i=e._fullLayout._subplots.gl3d||[],l={},s=a.split("."),u=0;u<i.length;u++)l[i[u]+"."+s[1]]=o;var c="pan"===o?o:"zoom";l.dragmode=c,r.call("_guiRelayout",e,l)}function d(e,t){for(var n=t.currentTarget,a=n.getAttribute("data-attr"),o="resetLastSave"===a,i="resetDefault"===a,l=e._fullLayout,s=l._subplots.gl3d||[],u={},c=0;c<s.length;c++){var f,p=s[c],d=p+".camera",h=p+".aspectratio",v=p+".aspectmode",m=l[p]._scene;o?(u[d+".up"]=m.viewInitial.up,u[d+".eye"]=m.viewInitial.eye,u[d+".center"]=m.viewInitial.center,f=!0):i&&(u[d+".up"]=null,u[d+".eye"]=null,u[d+".center"]=null,f=!0),f&&(u[h+".x"]=m.viewInitial.aspectratio.x,u[h+".y"]=m.viewInitial.aspectratio.y,u[h+".z"]=m.viewInitial.aspectratio.z,u[v]=m.viewInitial.aspectmode)}r.call("_guiRelayout",e,u)}function h(e,t){var n=t.currentTarget,r=n._previousVal,a=e._fullLayout,o=a._subplots.gl3d||[],i=["xaxis","yaxis","zaxis"],l={},s={};if(r)s=r,n._previousVal=null;else{for(var u=0;u<o.length;u++){var c=o[u],f=a[c],p=c+".hovermode";l[p]=f.hovermode,s[p]=!1;for(var d=0;d<3;d++){var h=i[d],v=c+"."+h+".showspikes";s[v]=!1,l[v]=f[h].showspikes}}n._previousVal=l}return s}function v(e,t){var n=h(e,t);r.call("_guiRelayout",e,n)}function m(e,t){for(var n=t.currentTarget,a=n.getAttribute("data-attr"),o=n.getAttribute("data-val")||!0,i=e._fullLayout,l=i._subplots.geo||[],s=0;s<l.length;s++){var u=l[s],c=i[u];if("zoom"===a){var f=c.projection.scale,p="in"===o?2*f:.5*f;r.call("_guiRelayout",e,u+".projection.scale",p)}}"reset"===a&&_(e,"geo")}function y(e){var t=e._fullLayout;return!t.hovermode&&(t._has("cartesian")?t._isHoriz?"y":"x":"closest")}function g(e){var t=y(e);r.call("_guiRelayout",e,"hovermode",t)}function b(e){for(var t=e._fullLayout,n="on"===t._cartesianSpikesEnabled,r=o.list(e,null,!0),a={},i=0;i<r.length;i++){var l=r[i];a[l._name+".showspikes"]=!!n||l._showSpikeInitial}return a}function x(e,t){for(var n=t.currentTarget,a=n.getAttribute("data-val"),o=e._fullLayout,i=o._subplots.mapbox||[],l=1.05,s={},u=0;u<i.length;u++){var c=i[u],f=o[c].zoom,p="in"===a?l*f:f/l;s[c+".zoom"]=p}r.call("_guiRelayout",e,s)}function _(e,t){for(var n=e._fullLayout,a=n._subplots[t]||[],o={},i=0;i<a.length;i++)for(var l=a[i],s=n[l]._subplot,u=s.viewInitial,c=Object.keys(u),f=0;f<c.length;f++){var p=c[f];o[l+"."+p]=u[p]}r.call("_guiRelayout",e,o)}c.toImage={name:"toImage",title:function(e){var t=e._context.toImageButtonOptions||{},n=t.format||"png";return u(e,"png"===n?"Download plot as a png":"Download plot")},icon:i.camera,click:function(e){var t=e._context.toImageButtonOptions,n={format:t.format||"png"};s.notifier(u(e,"Taking snapshot - this may take a few seconds"),"long"),"svg"!==n.format&&s.isIE()&&(s.notifier(u(e,"IE only supports svg. Changing format to svg."),"long"),n.format="svg"),["filename","width","height","scale"].forEach((function(e){e in t&&(n[e]=t[e])})),r.call("downloadImage",e,n).then((function(t){s.notifier(u(e,"Snapshot succeeded")+" - "+t,"long")})).catch((function(){s.notifier(u(e,"Sorry, there was a problem downloading your snapshot!"),"long")}))}},c.sendDataToCloud={name:"sendDataToCloud",title:function(e){return u(e,"Edit in Chart Studio")},icon:i.disk,click:function(e){a.sendDataToCloud(e)}},c.editInChartStudio={name:"editInChartStudio",title:function(e){return u(e,"Edit in Chart Studio")},icon:i.pencil,click:function(e){a.sendDataToCloud(e)}},c.zoom2d={name:"zoom2d",title:function(e){return u(e,"Zoom")},attr:"dragmode",val:"zoom",icon:i.zoombox,click:f},c.pan2d={name:"pan2d",title:function(e){return u(e,"Pan")},attr:"dragmode",val:"pan",icon:i.pan,click:f},c.select2d={name:"select2d",title:function(e){return u(e,"Box Select")},attr:"dragmode",val:"select",icon:i.selectbox,click:f},c.lasso2d={name:"lasso2d",title:function(e){return u(e,"Lasso Select")},attr:"dragmode",val:"lasso",icon:i.lasso,click:f},c.drawclosedpath={name:"drawclosedpath",title:function(e){return u(e,"Draw closed freeform")},attr:"dragmode",val:"drawclosedpath",icon:i.drawclosedpath,click:f},c.drawopenpath={name:"drawopenpath",title:function(e){return u(e,"Draw open freeform")},attr:"dragmode",val:"drawopenpath",icon:i.drawopenpath,click:f},c.drawline={name:"drawline",title:function(e){return u(e,"Draw line")},attr:"dragmode",val:"drawline",icon:i.drawline,click:f},c.drawrect={name:"drawrect",title:function(e){return u(e,"Draw rectangle")},attr:"dragmode",val:"drawrect",icon:i.drawrect,click:f},c.drawcircle={name:"drawcircle",title:function(e){return u(e,"Draw circle")},attr:"dragmode",val:"drawcircle",icon:i.drawcircle,click:f},c.eraseshape={name:"eraseshape",title:function(e){return u(e,"Erase active shape")},icon:i.eraseshape,click:l},c.zoomIn2d={name:"zoomIn2d",title:function(e){return u(e,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:f},c.zoomOut2d={name:"zoomOut2d",title:function(e){return u(e,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:f},c.autoScale2d={name:"autoScale2d",title:function(e){return u(e,"Autoscale")},attr:"zoom",val:"auto",icon:i.autoscale,click:f},c.resetScale2d={name:"resetScale2d",title:function(e){return u(e,"Reset axes")},attr:"zoom",val:"reset",icon:i.home,click:f},c.hoverClosestCartesian={name:"hoverClosestCartesian",title:function(e){return u(e,"Show closest data on hover")},attr:"hovermode",val:"closest",icon:i.tooltip_basic,gravity:"ne",click:f},c.hoverCompareCartesian={name:"hoverCompareCartesian",title:function(e){return u(e,"Compare data on hover")},attr:"hovermode",val:function(e){return e._fullLayout._isHoriz?"y":"x"},icon:i.tooltip_compare,gravity:"ne",click:f},c.zoom3d={name:"zoom3d",title:function(e){return u(e,"Zoom")},attr:"scene.dragmode",val:"zoom",icon:i.zoombox,click:p},c.pan3d={name:"pan3d",title:function(e){return u(e,"Pan")},attr:"scene.dragmode",val:"pan",icon:i.pan,click:p},c.orbitRotation={name:"orbitRotation",title:function(e){return u(e,"Orbital rotation")},attr:"scene.dragmode",val:"orbit",icon:i["3d_rotate"],click:p},c.tableRotation={name:"tableRotation",title:function(e){return u(e,"Turntable rotation")},attr:"scene.dragmode",val:"turntable",icon:i["z-axis"],click:p},c.resetCameraDefault3d={name:"resetCameraDefault3d",title:function(e){return u(e,"Reset camera to default")},attr:"resetDefault",icon:i.home,click:d},c.resetCameraLastSave3d={name:"resetCameraLastSave3d",title:function(e){return u(e,"Reset camera to last save")},attr:"resetLastSave",icon:i.movie,click:d},c.hoverClosest3d={name:"hoverClosest3d",title:function(e){return u(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:v},c.zoomInGeo={name:"zoomInGeo",title:function(e){return u(e,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:m},c.zoomOutGeo={name:"zoomOutGeo",title:function(e){return u(e,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:m},c.resetGeo={name:"resetGeo",title:function(e){return u(e,"Reset")},attr:"reset",val:null,icon:i.autoscale,click:m},c.hoverClosestGeo={name:"hoverClosestGeo",title:function(e){return u(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:g},c.hoverClosestGl2d={name:"hoverClosestGl2d",title:function(e){return u(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:g},c.hoverClosestPie={name:"hoverClosestPie",title:function(e){return u(e,"Toggle show closest data on hover")},attr:"hovermode",val:"closest",icon:i.tooltip_basic,gravity:"ne",click:g},c.resetViewSankey={name:"resetSankeyGroup",title:function(e){return u(e,"Reset view")},icon:i.home,click:function(e){for(var t={"node.groups":[],"node.x":[],"node.y":[]},n=0;n<e._fullData.length;n++){var a=e._fullData[n]._viewInitial;t["node.groups"].push(a.node.groups.slice()),t["node.x"].push(a.node.x.slice()),t["node.y"].push(a.node.y.slice())}r.call("restyle",e,t)}},c.toggleHover={name:"toggleHover",title:function(e){return u(e,"Toggle show closest data on hover")},attr:"hovermode",val:null,toggle:!0,icon:i.tooltip_basic,gravity:"ne",click:function(e,t){var n=h(e,t);n.hovermode=y(e),r.call("_guiRelayout",e,n)}},c.resetViews={name:"resetViews",title:function(e){return u(e,"Reset views")},icon:i.home,click:function(e,t){var n=t.currentTarget;n.setAttribute("data-attr","zoom"),n.setAttribute("data-val","reset"),f(e,t),n.setAttribute("data-attr","resetLastSave"),d(e,t),_(e,"geo"),_(e,"mapbox")}},c.toggleSpikelines={name:"toggleSpikelines",title:function(e){return u(e,"Toggle Spike Lines")},icon:i.spikeline,attr:"_cartesianSpikesEnabled",val:"on",click:function(e){var t=e._fullLayout,n=t._cartesianSpikesEnabled;t._cartesianSpikesEnabled="on"===n?"off":"on",r.call("_guiRelayout",e,b(e))}},c.resetViewMapbox={name:"resetViewMapbox",title:function(e){return u(e,"Reset view")},attr:"reset",icon:i.home,click:function(e){_(e,"mapbox")}},c.zoomInMapbox={name:"zoomInMapbox",title:function(e){return u(e,"Zoom in")},attr:"zoom",val:"in",icon:i.zoom_plus,click:x},c.zoomOutMapbox={name:"zoomOutMapbox",title:function(e){return u(e,"Zoom out")},attr:"zoom",val:"out",icon:i.zoom_minus,click:x}},{"../../fonts/ploticon":729,"../../lib":750,"../../plots/cartesian/axis_ids":802,"../../plots/plots":862,"../../registry":882,"../shapes/draw":696}],675:[function(e,t,n){"use strict";n.manage=e("./manage")},{"./manage":676}],676:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axis_ids"),a=e("../../traces/scatter/subtypes"),o=e("../../registry"),i=e("../fx/helpers").isUnifiedHover,l=e("./modebar"),s=e("./buttons");t.exports=function(e){var t=e._fullLayout,n=e._context,r=t._modeBar;if(n.displayModeBar||n.watermark){if(!Array.isArray(n.modeBarButtonsToRemove))throw new Error(["*modeBarButtonsToRemove* configuration options","must be an array."].join(" "));if(!Array.isArray(n.modeBarButtonsToAdd))throw new Error(["*modeBarButtonsToAdd* configuration options","must be an array."].join(" "));var a,o=n.modeBarButtons;a=Array.isArray(o)&&o.length?v(o):!n.displayModeBar&&n.watermark?[]:c(e),r?r.update(e,a):t._modeBar=l(e,a)}else r&&(r.destroy(),delete t._modeBar)};var u=["drawline","drawopenpath","drawclosedpath","drawcircle","drawrect","eraseshape"];function c(e){var t=e._fullLayout,n=e._fullData,r=e._context,a=r.modeBarButtonsToRemove,o=r.modeBarButtonsToAdd,l=t._has("cartesian"),c=t._has("gl3d"),v=t._has("geo"),m=t._has("pie"),y=t._has("funnelarea"),g=t._has("gl2d"),b=t._has("ternary"),x=t._has("mapbox"),_=t._has("polar"),w=t._has("sankey"),k=f(t),T=i(t.hovermode),E=[];function O(e){if(e.length){for(var t=[],n=0;n<e.length;n++){var r=e[n];-1===a.indexOf(r)&&t.push(s[r])}E.push(t)}}var M=["toImage"];r.showEditInChartStudio?M.push("editInChartStudio"):r.showSendToCloud&&M.push("sendDataToCloud"),O(M);var S=[],C=[],A=[],P=[];if((l||g||m||y||b)+v+c+x+_>1?(C=["toggleHover"],A=["resetViews"]):v?(S=["zoomInGeo","zoomOutGeo"],C=["hoverClosestGeo"],A=["resetGeo"]):c?(C=["hoverClosest3d"],A=["resetCameraDefault3d","resetCameraLastSave3d"]):x?(S=["zoomInMapbox","zoomOutMapbox"],C=["toggleHover"],A=["resetViewMapbox"]):g?C=["hoverClosestGl2d"]:m?C=["hoverClosestPie"]:w?(C=["hoverClosestCartesian","hoverCompareCartesian"],A=["resetViewSankey"]):C=["toggleHover"],l&&(C=["toggleSpikelines","hoverClosestCartesian","hoverCompareCartesian"]),(d(n)||T)&&(C=[]),!l&&!g||k||(S=["zoomIn2d","zoomOut2d","autoScale2d"],"resetViews"!==A[0]&&(A=["resetScale2d"])),c?P=["zoom3d","pan3d","orbitRotation","tableRotation"]:(l||g)&&!k||b?P=["zoom2d","pan2d"]:x||v?P=["pan2d"]:_&&(P=["zoom2d"]),p(n)&&P.push("select2d","lasso2d"),Array.isArray(o)){for(var L=[],D=0;D<o.length;D++){var j=o[D];"string"===typeof j?-1!==u.indexOf(j)&&(t._has("mapbox")||t._has("cartesian"))&&P.push(j):L.push(j)}o=L}return O(P),O(S.concat(A)),O(C),h(E,o)}function f(e){for(var t=r.list({_fullLayout:e},null,!0),n=0;n<t.length;n++)if(!t[n].fixedrange)return!1;return!0}function p(e){for(var t=!1,n=0;n<e.length;n++){if(t)break;var r=e[n];r._module&&r._module.selectPoints&&(o.traceIs(r,"scatter-like")?(a.hasMarkers(r)||a.hasText(r))&&(t=!0):o.traceIs(r,"box-violin")&&"all"!==r.boxpoints&&"all"!==r.points||(t=!0))}return t}function d(e){for(var t=0;t<e.length;t++)if(!o.traceIs(e[t],"noHover"))return!1;return!0}function h(e,t){if(t.length)if(Array.isArray(t[0]))for(var n=0;n<t.length;n++)e.push(t[n]);else e.push(t);return e}function v(e){for(var t=0;t<e.length;t++)for(var n=e[t],r=0;r<n.length;r++){var a=n[r];if("string"===typeof a){if(void 0===s[a])throw new Error(["*modeBarButtons* configuration options","invalid button name"].join(" "));e[t][r]=s[a]}}return e}},{"../../plots/cartesian/axis_ids":802,"../../registry":882,"../../traces/scatter/subtypes":1183,"../fx/helpers":651,"./buttons":674,"./modebar":677}],677:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),o=e("../../lib"),i=e("../../fonts/ploticon"),l=new DOMParser;function s(e){this.container=e.container,this.element=document.createElement("div"),this.update(e.graphInfo,e.buttons),this.container.appendChild(this.element)}var u=s.prototype;function c(e,t){var n=e._fullLayout,a=new s({graphInfo:e,container:n._modebardiv.node(),buttons:t});return n._privateplot&&r.select(a.element).append("span").classed("badge-private float--left",!0).text("PRIVATE"),a}u.update=function(e,t){this.graphInfo=e;var n=this.graphInfo._context,r=this.graphInfo._fullLayout,a="modebar-"+r._uid;this.element.setAttribute("id",a),this._uid=a,this.element.className="modebar","hover"===n.displayModeBar&&(this.element.className+=" modebar--hover ease-bg"),"v"===r.modebar.orientation&&(this.element.className+=" vertical",t=t.reverse());var i=r.modebar,l="hover"===n.displayModeBar?".js-plotly-plot .plotly:hover ":"";o.deleteRelatedStyleRule(a),o.addRelatedStyleRule(a,l+"#"+a+" .modebar-group","background-color: "+i.bgcolor),o.addRelatedStyleRule(a,"#"+a+" .modebar-btn .icon path","fill: "+i.color),o.addRelatedStyleRule(a,"#"+a+" .modebar-btn:hover .icon path","fill: "+i.activecolor),o.addRelatedStyleRule(a,"#"+a+" .modebar-btn.active .icon path","fill: "+i.activecolor);var s=!this.hasButtons(t),u=this.hasLogo!==n.displaylogo,c=this.locale!==n.locale;if(this.locale=n.locale,(s||u||c)&&(this.removeAllButtons(),this.updateButtons(t),n.watermark||n.displaylogo)){var f=this.getLogo();n.watermark&&(f.className=f.className+" watermark"),"v"===r.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},u.updateButtons=function(e){var t=this;this.buttons=e,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(e){var n=t.createGroup();e.forEach((function(e){var r=e.name;if(!r)throw new Error("must provide button 'name' in button config");if(-1!==t.buttonsNames.indexOf(r))throw new Error("button name '"+r+"' is taken");t.buttonsNames.push(r);var a=t.createButton(e);t.buttonElements.push(a),n.appendChild(a)})),t.element.appendChild(n)}))},u.createGroup=function(){var e=document.createElement("div");return e.className="modebar-group",e},u.createButton=function(e){var t=this,n=document.createElement("a");n.setAttribute("rel","tooltip"),n.className="modebar-btn";var a=e.title;void 0===a?a=e.name:"function"===typeof a&&(a=a(this.graphInfo)),(a||0===a)&&n.setAttribute("data-title",a),void 0!==e.attr&&n.setAttribute("data-attr",e.attr);var o=e.val;void 0!==o&&("function"===typeof o&&(o=o(this.graphInfo)),n.setAttribute("data-val",o));var l=e.click;if("function"!==typeof l)throw new Error("must provide button 'click' function in button config");n.addEventListener("click",(function(n){e.click(t.graphInfo,n),t.updateActiveButton(n.currentTarget)})),n.setAttribute("data-toggle",e.toggle||!1),e.toggle&&r.select(n).classed("active",!0);var s=e.icon;return"function"===typeof s?n.appendChild(s()):n.appendChild(this.createIcon(s||i.question)),n.setAttribute("data-gravity",e.gravity||"n"),n},u.createIcon=function(e){var t,n=a(e.height)?Number(e.height):e.ascent-e.descent,r="http://www.w3.org/2000/svg";if(e.path){t=document.createElementNS(r,"svg"),t.setAttribute("viewBox",[0,0,e.width,n].join(" ")),t.setAttribute("class","icon");var o=document.createElementNS(r,"path");o.setAttribute("d",e.path),e.transform?o.setAttribute("transform",e.transform):void 0!==e.ascent&&o.setAttribute("transform","matrix(1 0 0 -1 0 "+e.ascent+")"),t.appendChild(o)}if(e.svg){var i=l.parseFromString(e.svg,"application/xml");t=i.childNodes[0]}return t.setAttribute("height","1em"),t.setAttribute("width","1em"),t},u.updateActiveButton=function(e){var t=this.graphInfo._fullLayout,n=void 0!==e?e.getAttribute("data-attr"):null;this.buttonElements.forEach((function(e){var a=e.getAttribute("data-val")||!0,i=e.getAttribute("data-attr"),l="true"===e.getAttribute("data-toggle"),s=r.select(e);if(l)i===n&&s.classed("active",!s.classed("active"));else{var u=null===i?i:o.nestedProperty(t,i).get();s.classed("active",u===a)}}))},u.hasButtons=function(e){var t=this.buttons;if(!t)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n){if(e[n].length!==t[n].length)return!1;for(var r=0;r<e[n].length;r++)if(e[n][r].name!==t[n][r].name)return!1}return!0},u.getLogo=function(){var e=this.createGroup(),t=document.createElement("a");return t.href="https://plotly.com/",t.target="_blank",t.setAttribute("data-title",o._(this.graphInfo,"Produced with Plotly")),t.className="modebar-btn plotlyjsicon modebar-btn--logo",t.appendChild(this.createIcon(i.newplotlylogo)),e.appendChild(t),e},u.removeAllButtons=function(){while(this.element.firstChild)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},u.destroy=function(){o.removeElement(this.container.querySelector(".modebar")),o.deleteRelatedStyleRule(this._uid)},t.exports=c},{"../../fonts/ploticon":729,"../../lib":750,d3:169,"fast-isnumeric":241}],678:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("../color/attributes"),o=e("../../plot_api/plot_template").templatedArray,i=o("button",{visible:{valType:"boolean",dflt:!0,editType:"plot"},step:{valType:"enumerated",values:["month","year","day","hour","minute","second","all"],dflt:"month",editType:"plot"},stepmode:{valType:"enumerated",values:["backward","todate"],dflt:"backward",editType:"plot"},count:{valType:"number",min:0,dflt:1,editType:"plot"},label:{valType:"string",editType:"plot"},editType:"plot"});t.exports={visible:{valType:"boolean",editType:"plot"},buttons:i,x:{valType:"number",min:-2,max:3,editType:"plot"},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left",editType:"plot"},y:{valType:"number",min:-2,max:3,editType:"plot"},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"bottom",editType:"plot"},font:r({editType:"plot"}),bgcolor:{valType:"color",dflt:a.lightLine,editType:"plot"},activecolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:a.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"}},{"../../plot_api/plot_template":788,"../../plots/font_attributes":827,"../color/attributes":614}],679:[function(e,t,n){"use strict";t.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],680:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../color"),o=e("../../plot_api/plot_template"),i=e("../../plots/array_container_defaults"),l=e("./attributes"),s=e("./constants");function u(e,t,n,a){var o=a.calendar;function i(n,a){return r.coerce(e,t,l.buttons,n,a)}var s=i("visible");if(s){var u=i("step");"all"!==u&&(!o||"gregorian"===o||"month"!==u&&"year"!==u?i("stepmode"):t.stepmode="backward",i("count")),i("label")}}function c(e,t,n){for(var r=n.filter((function(n){return t[n].anchor===e._id})),a=0,o=0;o<r.length;o++){var i=t[r[o]].domain;i&&(a=Math.max(i[1],a))}return[e.domain[0],a+s.yPad]}t.exports=function(e,t,n,f,p){var d=e.rangeselector||{},h=o.newContainer(t,"rangeselector");function v(e,t){return r.coerce(d,h,l,e,t)}var m=i(d,h,{name:"buttons",handleItemDefaults:u,calendar:p}),y=v("visible",m.length>0);if(y){var g=c(t,n,f);v("x",g[0]),v("y",g[1]),r.noneOrAll(e,t,["x","y"]),v("xanchor"),v("yanchor"),r.coerceFont(v,"font",n.font);var b=v("bgcolor");v("activecolor",a.contrast(b,s.lightAmount,s.darkAmount)),v("bordercolor"),v("borderwidth")}}},{"../../lib":750,"../../plot_api/plot_template":788,"../../plots/array_container_defaults":794,"../color":615,"./attributes":678,"./constants":679}],681:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),o=e("../../plots/plots"),i=e("../color"),l=e("../drawing"),s=e("../../lib"),u=e("../../lib/svg_text_utils"),c=e("../../plots/cartesian/axis_ids"),f=e("../../constants/alignment"),p=f.LINE_SPACING,d=f.FROM_TL,h=f.FROM_BR,v=e("./constants"),m=e("./get_update_object");function y(e){for(var t=c.list(e,"x",!0),n=[],r=0;r<t.length;r++){var a=t[r];a.rangeselector&&a.rangeselector.visible&&n.push(a)}return n}function g(e){return e._id}function b(e,t,n){if("all"===t.step)return!0===e.autorange;var r=Object.keys(n);return e.range[0]===n[r[0]]&&e.range[1]===n[r[1]]}function x(e,t,n){var r=s.ensureSingle(e,"rect","selector-rect",(function(e){e.attr("shape-rendering","crispEdges")}));r.attr({rx:v.rx,ry:v.ry}),r.call(i.stroke,t.bordercolor).call(i.fill,_(t,n)).style("stroke-width",t.borderwidth+"px")}function _(e,t){return t._isActive||t._isHovered?e.activecolor:e.bgcolor}function w(e,t,n,r){function a(e){u.convertToTspans(e,r)}var o=s.ensureSingle(e,"text","selector-text",(function(e){e.attr("text-anchor","middle")}));o.call(l.font,t.font).text(k(n,r._fullLayout._meta)).call(a)}function k(e,t){return e.label?t?s.templateString(e.label,t):e.label:"all"===e.step?"all":e.count+e.step.charAt(0)}function T(e,t,n,a,i){var c=0,f=0,m=n.borderwidth;t.each((function(){var e=r.select(this),t=e.select(".selector-text"),a=n.font.size*p,o=Math.max(a*u.lineCount(t),16)+3;f=Math.max(f,o)})),t.each((function(){var e=r.select(this),t=e.select(".selector-rect"),a=e.select(".selector-text"),o=a.node()&&l.bBox(a.node()).width,i=n.font.size*p,s=u.lineCount(a),d=Math.max(o+10,v.minButtonWidth);e.attr("transform","translate("+(m+c)+","+m+")"),t.attr({x:0,y:0,width:d,height:f}),u.positionText(a,d/2,f/2-(s-1)*i/2+3),c+=d+5}));var y=e._fullLayout._size,g=y.l+y.w*n.x,b=y.t+y.h*(1-n.y),x="left";s.isRightAnchor(n)&&(g-=c,x="right"),s.isCenterAnchor(n)&&(g-=c/2,x="center");var _="top";s.isBottomAnchor(n)&&(b-=f,_="bottom"),s.isMiddleAnchor(n)&&(b-=f/2,_="middle"),c=Math.ceil(c),f=Math.ceil(f),g=Math.round(g),b=Math.round(b),o.autoMargin(e,a+"-range-selector",{x:n.x,y:n.y,l:c*d[x],r:c*h[x],b:f*h[_],t:f*d[_]}),i.attr("transform","translate("+g+","+b+")")}t.exports=function(e){var t=e._fullLayout,n=t._infolayer.selectAll(".rangeselector").data(y(e),g);n.enter().append("g").classed("rangeselector",!0),n.exit().remove(),n.style({cursor:"pointer","pointer-events":"all"}),n.each((function(t){var n=r.select(this),o=t,i=o.rangeselector,l=n.selectAll("g.button").data(s.filterVisible(i.buttons));l.enter().append("g").classed("button",!0),l.exit().remove(),l.each((function(t){var n=r.select(this),l=m(o,t);t._isActive=b(o,t,l),n.call(x,i,t),n.call(w,i,t,e),n.on("click",(function(){e._dragged||a.call("_guiRelayout",e,l)})),n.on("mouseover",(function(){t._isHovered=!0,n.call(x,i,t)})),n.on("mouseout",(function(){t._isHovered=!1,n.call(x,i,t)}))})),T(e,l,i,o._name,n)}))}},{"../../constants/alignment":717,"../../lib":750,"../../lib/svg_text_utils":774,"../../plots/cartesian/axis_ids":802,"../../plots/plots":862,"../../registry":882,"../color":615,"../drawing":637,"./constants":679,"./get_update_object":682,d3:169}],682:[function(e,t,n){"use strict";var r=e("d3");function a(e,t){var n,a=e.range,o=new Date(e.r2l(a[1])),i=t.step,l=t.count;switch(t.stepmode){case"backward":n=e.l2r(+r.time[i].utc.offset(o,-l));break;case"todate":var s=r.time[i].utc.offset(o,-l);n=e.l2r(+r.time[i].utc.ceil(s));break}var u=a[1];return[n,u]}t.exports=function(e,t){var n=e._name,r={};if("all"===t.step)r[n+".autorange"]=!0;else{var o=a(e,t);r[n+".range[0]"]=o[0],r[n+".range[1]"]=o[1]}return r}},{d3:169}],683:[function(e,t,n){"use strict";t.exports={moduleType:"component",name:"rangeselector",schema:{subplots:{xaxis:{rangeselector:e("./attributes")}}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),draw:e("./draw")}},{"./attributes":678,"./defaults":680,"./draw":681}],684:[function(e,t,n){"use strict";var r=e("../color/attributes");t.exports={bgcolor:{valType:"color",dflt:r.background,editType:"plot"},bordercolor:{valType:"color",dflt:r.defaultLine,editType:"plot"},borderwidth:{valType:"integer",dflt:0,min:0,editType:"plot"},autorange:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},range:{valType:"info_array",items:[{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"calc",impliedEdits:{"^autorange":!1}}],editType:"calc",impliedEdits:{autorange:!1}},thickness:{valType:"number",dflt:.15,min:0,max:1,editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"}},{"../color/attributes":614}],685:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axis_ids").list,a=e("../../plots/cartesian/autorange").getAutoRange,o=e("./constants");t.exports=function(e){for(var t=r(e,"x",!0),n=0;n<t.length;n++){var i=t[n],l=i[o.name];l&&l.visible&&l.autorange&&(l._input.autorange=!0,l._input.range=l.range=a(e,i))}}},{"../../plots/cartesian/autorange":798,"../../plots/cartesian/axis_ids":802,"./constants":686}],686:[function(e,t,n){"use strict";t.exports={name:"rangeslider",containerClassName:"rangeslider-container",bgClassName:"rangeslider-bg",rangePlotClassName:"rangeslider-rangeplot",maskMinClassName:"rangeslider-mask-min",maskMaxClassName:"rangeslider-mask-max",slideBoxClassName:"rangeslider-slidebox",grabberMinClassName:"rangeslider-grabber-min",grabAreaMinClassName:"rangeslider-grabarea-min",handleMinClassName:"rangeslider-handle-min",grabberMaxClassName:"rangeslider-grabber-max",grabAreaMaxClassName:"rangeslider-grabarea-max",handleMaxClassName:"rangeslider-handle-max",maskMinOppAxisClassName:"rangeslider-mask-min-opp-axis",maskMaxOppAxisClassName:"rangeslider-mask-max-opp-axis",maskColor:"rgba(0,0,0,0.4)",maskOppAxisColor:"rgba(0,0,0,0.2)",slideBoxFill:"transparent",slideBoxCursor:"ew-resize",grabAreaFill:"transparent",grabAreaCursor:"col-resize",grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],687:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plot_api/plot_template"),o=e("../../plots/cartesian/axis_ids"),i=e("./attributes"),l=e("./oppaxis_attributes");t.exports=function(e,t,n){var s=e[n],u=t[n];if(s.rangeslider||t._requestRangeslider[u._id]){r.isPlainObject(s.rangeslider)||(s.rangeslider={});var c,f,p=s.rangeslider,d=a.newContainer(u,"rangeslider"),h=k("visible");if(h){k("bgcolor",t.plot_bgcolor),k("bordercolor"),k("borderwidth"),k("thickness"),k("autorange",!u.isValidRange(p.range)),k("range");var v=t._subplots;if(v)for(var m=v.cartesian.filter((function(e){return e.substr(0,e.indexOf("y"))===o.name2id(n)})).map((function(e){return e.substr(e.indexOf("y"),e.length)})),y=r.simpleMap(m,o.id2name),g=0;g<y.length;g++){var b=y[g];c=p[b]||{},f=a.newContainer(d,b,"yaxis");var x,_=t[b];c.range&&_.isValidRange(c.range)&&(x="fixed");var w=T("rangemode",x);"match"!==w&&T("range",_.range.slice())}d._input=p}}function k(e,t){return r.coerce(p,d,i,e,t)}function T(e,t){return r.coerce(c,f,l,e,t)}}},{"../../lib":750,"../../plot_api/plot_template":788,"../../plots/cartesian/axis_ids":802,"./attributes":684,"./oppaxis_attributes":691}],688:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),o=e("../../plots/plots"),i=e("../../lib"),l=e("../drawing"),s=e("../color"),u=e("../titles"),c=e("../../plots/cartesian"),f=e("../../plots/cartesian/axis_ids"),p=e("../dragelement"),d=e("../../lib/setcursor"),h=e("./constants");function v(e,t,n,a){if(!t._context.staticPlot){var o=e.select("rect."+h.slideBoxClassName).node(),l=e.select("rect."+h.grabAreaMinClassName).node(),s=e.select("rect."+h.grabAreaMaxClassName).node();e.on("mousedown",u),e.on("touchstart",u)}function u(){var u=r.event,c=u.target,f=u.clientX||u.touches[0].clientX,h=f-e.node().getBoundingClientRect().left,v=a.d2p(n._rl[0]),y=a.d2p(n._rl[1]),g=p.coverSlip();function b(i){var u,p,b,x=i.clientX||i.touches[0].clientX,_=+x-f;switch(c){case o:b="ew-resize",u=v+_,p=y+_;break;case l:b="col-resize",u=v+_,p=y;break;case s:b="col-resize",u=v,p=y+_;break;default:b="ew-resize",u=h,p=h+_;break}if(p<u){var w=p;p=u,u=w}a._pixelMin=u,a._pixelMax=p,d(r.select(g),b),m(e,t,n,a)}function x(){g.removeEventListener("mousemove",b),g.removeEventListener("mouseup",x),this.removeEventListener("touchmove",b),this.removeEventListener("touchend",x),i.removeElement(g)}this.addEventListener("touchmove",b),this.addEventListener("touchend",x),g.addEventListener("mousemove",b),g.addEventListener("mouseup",x)}}function m(e,t,n,r){function o(e){return n.l2r(i.constrain(e,r._rl[0],r._rl[1]))}var l=o(r.p2d(r._pixelMin)),s=o(r.p2d(r._pixelMax));window.requestAnimationFrame((function(){a.call("_guiRelayout",t,n._name+".range",[l,s])}))}function y(e,t,n,r,a,o){var l=h.handleWidth/2;function s(e){return i.constrain(e,0,r._width)}function u(e){return i.constrain(e,0,r._height)}function c(e){return i.constrain(e,-l,r._width+l)}var f=s(r.d2p(n._rl[0])),p=s(r.d2p(n._rl[1]));if(e.select("rect."+h.slideBoxClassName).attr("x",f).attr("width",p-f),e.select("rect."+h.maskMinClassName).attr("width",f),e.select("rect."+h.maskMaxClassName).attr("x",p).attr("width",r._width-p),"match"!==o.rangemode){var d=r._height-u(r.d2pOppAxis(a._rl[1])),v=r._height-u(r.d2pOppAxis(a._rl[0]));e.select("rect."+h.maskMinOppAxisClassName).attr("x",f).attr("height",d).attr("width",p-f),e.select("rect."+h.maskMaxOppAxisClassName).attr("x",f).attr("y",v).attr("height",r._height-v).attr("width",p-f),e.select("rect."+h.slideBoxClassName).attr("y",d).attr("height",v-d)}var m=.5,y=Math.round(c(f-l))-m,g=Math.round(c(p-l))+m;e.select("g."+h.grabberMinClassName).attr("transform","translate("+y+","+m+")"),e.select("g."+h.grabberMaxClassName).attr("transform","translate("+g+","+m+")")}function g(e,t,n,r){var a=i.ensureSingle(e,"rect",h.bgClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})})),o=r.borderwidth%2===0?r.borderwidth:r.borderwidth-1,s=-r._offsetShift,u=l.crispRound(t,r.borderwidth);a.attr({width:r._width+o,height:r._height+o,transform:"translate("+s+","+s+")",fill:r.bgcolor,stroke:r.bordercolor,"stroke-width":u})}function b(e,t,n,r){var a=t._fullLayout,o=i.ensureSingleById(a._topdefs,"clipPath",r._clipId,(function(e){e.append("rect").attr({x:0,y:0})}));o.select("rect").attr({width:r._width,height:r._height})}function x(e,t,n,a){var s,u=t.calcdata,p=e.selectAll("g."+h.rangePlotClassName).data(n._subplotsWith,i.identity);p.enter().append("g").attr("class",(function(e){return h.rangePlotClassName+" "+e})).call(l.setClipUrl,a._clipId,t),p.order(),p.exit().remove(),p.each((function(e,i){var l=r.select(this),p=0===i,d=f.getFromId(t,e,"y"),h=d._name,v=a[h],m={data:[],layout:{xaxis:{type:n.type,domain:[0,1],range:a.range.slice(),calendar:n.calendar},width:a._width,height:a._height,margin:{t:0,b:0,l:0,r:0}},_context:t._context};n.rangebreaks&&(m.layout.xaxis.rangebreaks=n.rangebreaks),m.layout[h]={type:d.type,domain:[0,1],range:"match"!==v.rangemode?v.range.slice():d.range.slice(),calendar:d.calendar},d.rangebreaks&&(m.layout[h].rangebreaks=d.rangebreaks),o.supplyDefaults(m);var y=m._fullLayout.xaxis,g=m._fullLayout[h];y.clearCalc(),y.setScale(),g.clearCalc(),g.setScale();var b={id:e,plotgroup:l,xaxis:y,yaxis:g,isRangePlot:!0};p?s=b:(b.mainplot="xy",b.mainplotinfo=s),c.rangePlot(t,b,_(u,e))}))}function _(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r],o=a[0].trace;o.xaxis+o.yaxis===t&&n.push(a)}return n}function w(e,t,n,r,a){var o=i.ensureSingle(e,"rect",h.maskMinClassName,(function(e){e.attr({x:0,y:0,"shape-rendering":"crispEdges"})}));o.attr("height",r._height).call(s.fill,h.maskColor);var l=i.ensureSingle(e,"rect",h.maskMaxClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})}));if(l.attr("height",r._height).call(s.fill,h.maskColor),"match"!==a.rangemode){var u=i.ensureSingle(e,"rect",h.maskMinOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})}));u.attr("width",r._width).call(s.fill,h.maskOppAxisColor);var c=i.ensureSingle(e,"rect",h.maskMaxOppAxisClassName,(function(e){e.attr({y:0,"shape-rendering":"crispEdges"})}));c.attr("width",r._width).style("border-top",h.maskOppBorder).call(s.fill,h.maskOppAxisColor)}}function k(e,t,n,r){if(!t._context.staticPlot){var a=i.ensureSingle(e,"rect",h.slideBoxClassName,(function(e){e.attr({y:0,cursor:h.slideBoxCursor,"shape-rendering":"crispEdges"})}));a.attr({height:r._height,fill:h.slideBoxFill})}}function T(e,t,n,r){var a=i.ensureSingle(e,"g",h.grabberMinClassName),o=i.ensureSingle(e,"g",h.grabberMaxClassName),l={x:0,width:h.handleWidth,rx:h.handleRadius,fill:s.background,stroke:s.defaultLine,"stroke-width":h.handleStrokeWidth,"shape-rendering":"crispEdges"},u={y:Math.round(r._height/4),height:Math.round(r._height/2)},c=i.ensureSingle(a,"rect",h.handleMinClassName,(function(e){e.attr(l)}));c.attr(u);var f=i.ensureSingle(o,"rect",h.handleMaxClassName,(function(e){e.attr(l)}));f.attr(u);var p={width:h.grabAreaWidth,x:0,y:0,fill:h.grabAreaFill,cursor:t._context.staticPlot?void 0:h.grabAreaCursor},d=i.ensureSingle(a,"rect",h.grabAreaMinClassName,(function(e){e.attr(p)}));d.attr("height",r._height);var v=i.ensureSingle(o,"rect",h.grabAreaMaxClassName,(function(e){e.attr(p)}));v.attr("height",r._height)}t.exports=function(e){for(var t=e._fullLayout,n=t._rangeSliderData,a=0;a<n.length;a++){var o=n[a][h.name];o._clipId=o._id+"-"+t._uid}function l(e){return e._name}var s=t._infolayer.selectAll("g."+h.containerClassName).data(n,l);s.exit().each((function(e){var n=e[h.name];t._topdefs.select("#"+n._clipId).remove()})).remove(),0!==n.length&&(s.enter().append("g").classed(h.containerClassName,!0).attr("pointer-events","all"),s.each((function(n){var a=r.select(this),o=n[h.name],l=t[f.id2name(n.anchor)],s=o[f.id2name(n.anchor)];if(o.range){var c,p=i.simpleMap(o.range,n.r2l),d=i.simpleMap(n.range,n.r2l);c=d[0]<d[1]?[Math.min(p[0],d[0]),Math.max(p[1],d[1])]:[Math.max(p[0],d[0]),Math.min(p[1],d[1])],o.range=o._input.range=i.simpleMap(c,n.l2r)}n.cleanRange("rangeslider.range");var m=t._size,_=n.domain;o._width=m.w*(_[1]-_[0]);var E=Math.round(m.l+m.w*_[0]),O=Math.round(m.t+m.h*(1-n._counterDomainMin)+("bottom"===n.side?n._depth:0)+o._offsetShift+h.extraPad);a.attr("transform","translate("+E+","+O+")"),o._rl=i.simpleMap(o.range,n.r2l);var M=o._rl[0],S=o._rl[1],C=S-M;if(o.p2d=function(e){return e/o._width*C+M},o.d2p=function(e){return(e-M)/C*o._width},n.rangebreaks){var A=n.locateBreaks(M,S);if(A.length){var P,L,D=0;for(P=0;P<A.length;P++)L=A[P],D+=L.max-L.min;var j=o._width/(S-M-D),I=[-j*M];for(P=0;P<A.length;P++)L=A[P],I.push(I[I.length-1]-j*(L.max-L.min));for(o.d2p=function(e){for(var t=I[0],n=0;n<A.length;n++){var r=A[n];if(e>=r.max)t=I[n+1];else if(e<r.min)break}return t+j*e},P=0;P<A.length;P++)L=A[P],L.pmin=o.d2p(L.min),L.pmax=o.d2p(L.max);o.p2d=function(e){for(var t=I[0],n=0;n<A.length;n++){var r=A[n];if(e>=r.pmax)t=I[n+1];else if(e<r.pmin)break}return(e-t)/j}}}if("match"!==s.rangemode){var R=l.r2l(s.range[0]),z=l.r2l(s.range[1]),N=z-R;o.d2pOppAxis=function(e){return(e-R)/N*o._height}}a.call(g,e,n,o).call(b,e,n,o).call(x,e,n,o).call(w,e,n,o,s).call(k,e,n,o).call(T,e,n,o),v(a,e,n,o),y(a,e,n,o,l,s),"bottom"===n.side&&u.draw(e,n._id+"title",{propContainer:n,propName:n._name+".title",placeholder:t._dfltTitle.x,attributes:{x:n._offset+n._length/2,y:O+o._height+o._offsetShift+10+1.5*n.title.font.size,"text-anchor":"middle"}})})))}},{"../../lib":750,"../../lib/setcursor":770,"../../plots/cartesian":812,"../../plots/cartesian/axis_ids":802,"../../plots/plots":862,"../../registry":882,"../color":615,"../dragelement":634,"../drawing":637,"../titles":710,"./constants":686,d3:169}],689:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axis_ids"),a=e("../../lib/svg_text_utils"),o=e("./constants"),i=e("../../constants/alignment").LINE_SPACING,l=o.name;function s(e){var t=e&&e[l];return t&&t.visible}n.isVisible=s,n.makeData=function(e){var t=r.list({_fullLayout:e},"x",!0),n=e.margin,a=[];if(!e._has("gl2d"))for(var o=0;o<t.length;o++){var i=t[o];if(s(i)){a.push(i);var u=i[l];u._id=l+i._id,u._height=(e.height-n.b-n.t)*u.thickness,u._offsetShift=Math.floor(u.borderwidth/2)}}e._rangeSliderData=a},n.autoMarginOpts=function(e,t){var n=e._fullLayout,r=t[l],s=t._id.charAt(0),u=0,c=0;if("bottom"===t.side&&(u=t._depth,t.title.text!==n._dfltTitle[s])){c=1.5*t.title.font.size+10+r._offsetShift;var f=(t.title.text.match(a.BR_TAG_ALL)||[]).length;c+=f*t.title.font.size*i}return{x:0,y:t._counterDomainMin,l:0,r:0,t:0,b:r._height+u+Math.max(n.margin.b,c),pad:o.extraPad+2*r._offsetShift}}},{"../../constants/alignment":717,"../../lib/svg_text_utils":774,"../../plots/cartesian/axis_ids":802,"./constants":686}],690:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),o=e("./oppaxis_attributes"),i=e("./helpers");t.exports={moduleType:"component",name:"rangeslider",schema:{subplots:{xaxis:{rangeslider:r.extendFlat({},a,{yaxis:o})}}},layoutAttributes:e("./attributes"),handleDefaults:e("./defaults"),calcAutorange:e("./calc_autorange"),draw:e("./draw"),isVisible:i.isVisible,makeData:i.makeData,autoMarginOpts:i.autoMarginOpts}},{"../../lib":750,"./attributes":684,"./calc_autorange":685,"./defaults":687,"./draw":688,"./helpers":689,"./oppaxis_attributes":691}],691:[function(e,t,n){"use strict";t.exports={_isSubplotObj:!0,rangemode:{valType:"enumerated",values:["auto","fixed","match"],dflt:"match",editType:"calc"},range:{valType:"info_array",items:[{valType:"any",editType:"plot"},{valType:"any",editType:"plot"}],editType:"plot"},editType:"calc"}},{}],692:[function(e,t,n){"use strict";var r=e("../annotations/attributes"),a=e("../../traces/scatter/attributes").line,o=e("../drawing/attributes").dash,i=e("../../lib/extend").extendFlat,l=e("../../plot_api/plot_template").templatedArray;e("../../constants/axis_placeable_objects");t.exports=l("shape",{visible:{valType:"boolean",dflt:!0,editType:"calc+arraydraw"},type:{valType:"enumerated",values:["circle","rect","path","line"],editType:"calc+arraydraw"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"arraydraw"},xref:i({},r.xref,{}),xsizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},xanchor:{valType:"any",editType:"calc+arraydraw"},x0:{valType:"any",editType:"calc+arraydraw"},x1:{valType:"any",editType:"calc+arraydraw"},yref:i({},r.yref,{}),ysizemode:{valType:"enumerated",values:["scaled","pixel"],dflt:"scaled",editType:"calc+arraydraw"},yanchor:{valType:"any",editType:"calc+arraydraw"},y0:{valType:"any",editType:"calc+arraydraw"},y1:{valType:"any",editType:"calc+arraydraw"},path:{valType:"string",editType:"calc+arraydraw"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"arraydraw"},line:{color:i({},a.color,{editType:"arraydraw"}),width:i({},a.width,{editType:"calc+arraydraw"}),dash:i({},o,{editType:"arraydraw"}),editType:"calc+arraydraw"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"arraydraw"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"arraydraw"},editable:{valType:"boolean",dflt:!1,editType:"calc+arraydraw"},editType:"arraydraw"})},{"../../constants/axis_placeable_objects":718,"../../lib/extend":740,"../../plot_api/plot_template":788,"../../traces/scatter/attributes":1158,"../annotations/attributes":598,"../drawing/attributes":636}],693:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("./constants"),i=e("./helpers");function l(e){return u(e.line.width,e.xsizemode,e.x0,e.x1,e.path,!1)}function s(e){return u(e.line.width,e.ysizemode,e.y0,e.y1,e.path,!0)}function u(e,t,n,a,l,s){var u=e/2,c=s;if("pixel"===t){var f=l?i.extractPathCoords(l,s?o.paramIsY:o.paramIsX):[n,a],p=r.aggNums(Math.max,null,f),d=r.aggNums(Math.min,null,f),h=d<0?Math.abs(d)+u:u,v=p>0?p+u:u;return{ppad:u,ppadplus:c?h:v,ppadminus:c?v:h}}return{ppad:u}}function c(e,t,n,r,a){var l="category"===e.type||"multicategory"===e.type?e.r2c:e.d2c;if(void 0!==t)return[l(t),l(n)];if(r){var s,u,c,f,p,d=1/0,h=-1/0,v=r.match(o.segmentRE);for("date"===e.type&&(l=i.decodeDate(l)),s=0;s<v.length;s++)u=v[s],c=a[u.charAt(0)].drawn,void 0!==c&&(f=v[s].substr(1).match(o.paramRE),!f||f.length<c||(p=l(f[c]),p<d&&(d=p),p>h&&(h=p)));return h>=d?[d,h]:void 0}}t.exports=function(e){var t=e._fullLayout,n=r.filterVisible(t.shapes);if(n.length&&e._fullData.length)for(var i=0;i<n.length;i++){var u,f,p=n[i];p._extremes={};var d=a.getRefType(p.xref),h=a.getRefType(p.yref);if("paper"!==p.xref&&"domain"!==d){var v="pixel"===p.xsizemode?p.xanchor:p.x0,m="pixel"===p.xsizemode?p.xanchor:p.x1;u=a.getFromId(e,p.xref),f=c(u,v,m,p.path,o.paramIsX),f&&(p._extremes[u._id]=a.findExtremes(u,f,l(p)))}if("paper"!==p.yref&&"domain"!==h){var y="pixel"===p.ysizemode?p.yanchor:p.y0,g="pixel"===p.ysizemode?p.yanchor:p.y1;u=a.getFromId(e,p.yref),f=c(u,y,g,p.path,o.paramIsY),f&&(p._extremes[u._id]=a.findExtremes(u,f,s(p)))}}}},{"../../lib":750,"../../plots/cartesian/axes":799,"./constants":694,"./helpers":703}],694:[function(e,t,n){"use strict";t.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],695:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("../../plots/array_container_defaults"),i=e("./attributes"),l=e("./helpers");function s(e,t,n){function o(n,a){return r.coerce(e,t,i,n,a)}var s=o("visible");if(s){var u=o("path"),c=u?"path":"rect",f=o("type",c);"path"!==t.type&&delete t.path,o("editable"),o("layer"),o("opacity"),o("fillcolor"),o("fillrule");var p=o("line.width");p&&(o("line.color"),o("line.dash"));for(var d=o("xsizemode"),h=o("ysizemode"),v=["x","y"],m=0;m<2;m++){var y,g,b,x=v[m],_=x+"anchor",w="x"===x?d:h,k={_fullLayout:n},T=a.coerceRef(e,t,k,x,void 0,"paper"),E=a.getRefType(T);if("range"===E?(y=a.getFromId(k,T),y._shapeIndices.push(t._index),b=l.rangeToShapePosition(y),g=l.shapePositionToRange(y)):g=b=r.identity,"path"!==f){var O=.25,M=.75,S=x+"0",C=x+"1",A=e[S],P=e[C];e[S]=g(e[S],!0),e[C]=g(e[C],!0),"pixel"===w?(o(S,0),o(C,10)):(a.coercePosition(t,k,o,T,S,O),a.coercePosition(t,k,o,T,C,M)),t[S]=b(t[S]),t[C]=b(t[C]),e[S]=A,e[C]=P}if("pixel"===w){var L=e[_];e[_]=g(e[_],!0),a.coercePosition(t,k,o,T,_,.25),t[_]=b(t[_]),e[_]=L}}"path"===f?o("path"):r.noneOrAll(e,t,["x0","x1","y0","y1"])}}t.exports=function(e,t){o(e,t,{name:"shapes",handleItemDefaults:s})}},{"../../lib":750,"../../plots/array_container_defaults":794,"../../plots/cartesian/axes":799,"./attributes":692,"./helpers":703}],696:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),o=e("../../plots/cartesian/axes"),i=e("./draw_newshape/helpers").readPaths,l=e("./draw_newshape/display_outlines"),s=e("../../plots/cartesian/handle_outline").clearOutlineControllers,u=e("../color"),c=e("../drawing"),f=e("../../plot_api/plot_template").arrayEditor,p=e("../dragelement"),d=e("../../lib/setcursor"),h=e("./constants"),v=e("./helpers");function m(e){var t=e._fullLayout;for(var n in t._shapeUpperLayer.selectAll("path").remove(),t._shapeLowerLayer.selectAll("path").remove(),t._plots){var r=t._plots[n].shapelayer;r&&r.selectAll("path").remove()}for(var a=0;a<t.shapes.length;a++)t.shapes[a].visible&&b(e,a)}function y(e){return!!e._fullLayout._drawing}function g(e){return!e._context.edits.shapePosition}function b(e,t){e._fullLayout._paperdiv.selectAll('.shapelayer [data-index="'+t+'"]').remove();var n=v.makeOptionsAndPlotinfo(e,t),r=n.options,a=n.plotinfo;if(r._input&&!1!==r.visible)if("below"!==r.layer)s(e._fullLayout._shapeUpperLayer);else if("paper"===r.xref||"paper"===r.yref)s(e._fullLayout._shapeLowerLayer);else if(a._hadPlotinfo){var o=a.mainplotinfo||a;s(o.shapelayer)}else s(e._fullLayout._shapeLowerLayer);function s(n){var o=w(e,r),s={"data-index":t,"fill-rule":r.fillrule,d:o},p=r.opacity,d=r.fillcolor,h=r.line.width?r.line.color:"rgba(0,0,0,0)",v=r.line.width,m=r.line.dash;v||!0!==r.editable||(v=5,m="solid");var y="Z"!==o[o.length-1],b=g(e)&&r.editable&&e._fullLayout._activeShapeIndex===t;b&&(d=y?"rgba(0,0,0,0)":e._fullLayout.activeshape.fillcolor,p=e._fullLayout.activeshape.opacity);var k,T=n.append("path").attr(s).style("opacity",p).call(u.stroke,h).call(u.fill,d).call(c.dashLine,m,v);if(x(T,e,r),(b||e._context.edits.shapePosition)&&(k=f(e.layout,"shapes",r)),b){T.style({cursor:"move"});var O={element:T.node(),plotinfo:a,gd:e,editHelpers:k,isActiveShape:!0},M=i(o,e);l(M,T,O)}else e._context.edits.shapePosition?_(e,T,r,t,n,k):!0===r.editable&&T.style("pointer-events",y||u.opacity(d)*p<=.5?"stroke":"all");T.node().addEventListener("click",(function(){return E(e,T)}))}}function x(e,t,n){var r=(n.xref+n.yref).replace(/paper/g,"").replace(/[xyz][1-9]* *domain/g,"");c.setClipUrl(e,r?"clip"+t._fullLayout._uid+r:null,t)}function _(e,t,n,i,l,s){var u,f,m,g,b,_,k,E,O,M,S,C,A,P,L,D,j=10,I=10,R="pixel"===n.xsizemode,z="pixel"===n.ysizemode,N="line"===n.type,F="path"===n.type,B=s.modifyItem,V=o.getFromId(e,n.xref),H=o.getRefType(n.xref),U=o.getFromId(e,n.yref),W=o.getRefType(n.yref),q=v.getDataToPixel(e,V,!1,H),$=v.getDataToPixel(e,U,!0,W),G=v.getPixelToData(e,V,!1,H),Y=v.getPixelToData(e,U,!0,W),K=Z(),X={element:K.node(),gd:e,prepFn:ee,doneFn:te,clickFn:ne};function Z(){return N?J():t}function J(){var e=10,r=Math.max(n.line.width,e),a=l.append("g").attr("data-index",i);a.append("path").attr("d",t.attr("d")).style({cursor:"move","stroke-width":r,"stroke-opacity":"0"});var o={"fill-opacity":"0"},s=Math.max(r/2,e);return a.append("circle").attr({"data-line-point":"start-point",cx:R?q(n.xanchor)+n.x0:q(n.x0),cy:z?$(n.yanchor)-n.y0:$(n.y0),r:s}).style(o).classed("cursor-grab",!0),a.append("circle").attr({"data-line-point":"end-point",cx:R?q(n.xanchor)+n.x1:q(n.x1),cy:z?$(n.yanchor)-n.y1:$(n.y1),r:s}).style(o).classed("cursor-grab",!0),a}function Q(n){if(y(e))D=null;else if(N)D="path"===n.target.tagName?"move":"start-point"===n.target.attributes["data-line-point"].value?"resize-over-start-point":"resize-over-end-point";else{var r=X.element.getBoundingClientRect(),a=r.right-r.left,o=r.bottom-r.top,i=n.clientX-r.left,l=n.clientY-r.top,s=!F&&a>j&&o>I&&!n.shiftKey?p.getCursor(i/a,1-l/o):"move";d(t,s),D=s.split("-")[0]}}function ee(r){y(e)||(R&&(b=q(n.xanchor)),z&&(_=$(n.yanchor)),"path"===n.type?L=n.path:(u=R?n.x0:q(n.x0),f=z?n.y0:$(n.y0),m=R?n.x1:q(n.x1),g=z?n.y1:$(n.y1)),u<m?(O=u,A="x0",M=m,P="x1"):(O=m,A="x1",M=u,P="x0"),!z&&f<g||z&&f>g?(k=f,S="y0",E=g,C="y1"):(k=g,S="y1",E=f,C="y0"),Q(r),oe(l,n),le(t,n,e),X.moveFn="move"===D?re:ae,X.altKey=r.altKey)}function te(){y(e)||(d(t),ie(l),x(t,e,n),r.call("_guiRelayout",e,s.getUpdateObj()))}function ne(){y(e)||ie(l)}function re(r,a){if("path"===n.type){var o=function(e){return e},i=o,s=o;R?B("xanchor",n.xanchor=G(b+r)):(i=function(e){return G(q(e)+r)},V&&"date"===V.type&&(i=v.encodeDate(i))),z?B("yanchor",n.yanchor=Y(_+a)):(s=function(e){return Y($(e)+a)},U&&"date"===U.type&&(s=v.encodeDate(s))),B("path",n.path=T(L,i,s))}else R?B("xanchor",n.xanchor=G(b+r)):(B("x0",n.x0=G(u+r)),B("x1",n.x1=G(m+r))),z?B("yanchor",n.yanchor=Y(_+a)):(B("y0",n.y0=Y(f+a)),B("y1",n.y1=Y(g+a)));t.attr("d",w(e,n)),oe(l,n)}function ae(r,a){if(F){var o=function(e){return e},i=o,s=o;R?B("xanchor",n.xanchor=G(b+r)):(i=function(e){return G(q(e)+r)},V&&"date"===V.type&&(i=v.encodeDate(i))),z?B("yanchor",n.yanchor=Y(_+a)):(s=function(e){return Y($(e)+a)},U&&"date"===U.type&&(s=v.encodeDate(s))),B("path",n.path=T(L,i,s))}else if(N){if("resize-over-start-point"===D){var c=u+r,p=z?f-a:f+a;B("x0",n.x0=R?c:G(c)),B("y0",n.y0=z?p:Y(p))}else if("resize-over-end-point"===D){var d=m+r,h=z?g-a:g+a;B("x1",n.x1=R?d:G(d)),B("y1",n.y1=z?h:Y(h))}}else{var y=function(e){return-1!==D.indexOf(e)},x=y("n"),H=y("s"),W=y("w"),K=y("e"),X=x?k+a:k,Z=H?E+a:E,J=W?O+r:O,Q=K?M+r:M;z&&(x&&(X=k-a),H&&(Z=E-a)),(!z&&Z-X>I||z&&X-Z>I)&&(B(S,n[S]=z?X:Y(X)),B(C,n[C]=z?Z:Y(Z))),Q-J>j&&(B(A,n[A]=R?J:G(J)),B(P,n[P]=R?Q:G(Q)))}t.attr("d",w(e,n)),oe(l,n)}function oe(e,t){function n(){var n="path"!==t.type,r=e.selectAll(".visual-cue").data([0]),o=1;r.enter().append("path").attr({fill:"#fff","fill-rule":"evenodd",stroke:"#000","stroke-width":o}).classed("visual-cue",!0);var i=q(R?t.xanchor:a.midRange(n?[t.x0,t.x1]:v.extractPathCoords(t.path,h.paramIsX))),l=$(z?t.yanchor:a.midRange(n?[t.y0,t.y1]:v.extractPathCoords(t.path,h.paramIsY)));if(i=v.roundPositionForSharpStrokeRendering(i,o),l=v.roundPositionForSharpStrokeRendering(l,o),R&&z){var s="M"+(i-1-o)+","+(l-1-o)+"h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z";r.attr("d",s)}else if(R){var u="M"+(i-1-o)+","+(l-9-o)+"v18 h2 v-18 Z";r.attr("d",u)}else{var c="M"+(i-9-o)+","+(l-1-o)+"h18 v2 h-18 Z";r.attr("d",c)}}(R||z)&&n()}function ie(e){e.selectAll(".visual-cue").remove()}function le(e,t,n){var r=t.xref,a=t.yref,i=o.getFromId(n,r),l=o.getFromId(n,a),s="";"paper"===r||i.autorange||(s+=r),"paper"===a||l.autorange||(s+=a),c.setClipUrl(e,s?"clip"+n._fullLayout._uid+s:null,n)}p.init(X),K.node().onmousemove=Q}function w(e,t){var n,r,a,i,l,s,u,c,f=t.type,p=o.getRefType(t.xref),d=o.getRefType(t.yref),h=o.getFromId(e,t.xref),m=o.getFromId(e,t.yref),y=e._fullLayout._size;if(h?"domain"===p?r=function(e){return h._offset+h._length*e}:(n=v.shapePositionToRange(h),r=function(e){return h._offset+h.r2p(n(e,!0))}):r=function(e){return y.l+y.w*e},m?"domain"===d?i=function(e){return m._offset+m._length*(1-e)}:(a=v.shapePositionToRange(m),i=function(e){return m._offset+m.r2p(a(e,!0))}):i=function(e){return y.t+y.h*(1-e)},"path"===f)return h&&"date"===h.type&&(r=v.decodeDate(r)),m&&"date"===m.type&&(i=v.decodeDate(i)),k(t,r,i);if("pixel"===t.xsizemode){var g=r(t.xanchor);l=g+t.x0,s=g+t.x1}else l=r(t.x0),s=r(t.x1);if("pixel"===t.ysizemode){var b=i(t.yanchor);u=b-t.y0,c=b-t.y1}else u=i(t.y0),c=i(t.y1);if("line"===f)return"M"+l+","+u+"L"+s+","+c;if("rect"===f)return"M"+l+","+u+"H"+s+"V"+c+"H"+l+"Z";var x=(l+s)/2,_=(u+c)/2,w=Math.abs(x-l),T=Math.abs(_-u),E="A"+w+","+T,O=x+w+","+_,M=x+","+(_-T);return"M"+O+E+" 0 1,1 "+M+E+" 0 0,1 "+O+"Z"}function k(e,t,n){var r=e.path,o=e.xsizemode,i=e.ysizemode,l=e.xanchor,s=e.yanchor;return r.replace(h.segmentRE,(function(e){var r=0,u=e.charAt(0),c=h.paramIsX[u],f=h.paramIsY[u],p=h.numParams[u],d=e.substr(1).replace(h.paramRE,(function(e){return c[r]?e="pixel"===o?t(l)+Number(e):t(e):f[r]&&(e="pixel"===i?n(s)-Number(e):n(e)),r++,r>p&&(e="X"),e}));return r>p&&(d=d.replace(/[\s,]*X.*/,""),a.log("Ignoring extra params in segment "+e)),u+d}))}function T(e,t,n){return e.replace(h.segmentRE,(function(e){var r=0,a=e.charAt(0),o=h.paramIsX[a],i=h.paramIsY[a],l=h.numParams[a],s=e.substr(1).replace(h.paramRE,(function(e){return r>=l||(o[r]?e=t(e):i[r]&&(e=n(e)),r++),e}));return a+s}))}function E(e,t){if(g(e)){var n=t.node(),r=+n.getAttribute("data-index");if(r>=0){if(r===e._fullLayout._activeShapeIndex)return void O(e);e._fullLayout._activeShapeIndex=r,e._fullLayout._deactivateShape=O,m(e)}}}function O(e){if(g(e)){var t=e._fullLayout._activeShapeIndex;t>=0&&(s(e),delete e._fullLayout._activeShapeIndex,m(e))}}function M(e){if(g(e)){s(e);var t=e._fullLayout._activeShapeIndex,n=(e.layout||{}).shapes||[];if(t<n.length){for(var a=[],o=0;o<n.length;o++)o!==t&&a.push(n[o]);delete e._fullLayout._activeShapeIndex,r.call("_guiRelayout",e,{shapes:a})}}}t.exports={draw:m,drawOne:b,eraseActiveShape:M}},{"../../lib":750,"../../lib/setcursor":770,"../../plot_api/plot_template":788,"../../plots/cartesian/axes":799,"../../plots/cartesian/handle_outline":809,"../../registry":882,"../color":615,"../dragelement":634,"../drawing":637,"./constants":694,"./draw_newshape/display_outlines":700,"./draw_newshape/helpers":701,"./helpers":703}],697:[function(e,t,n){"use strict";var r=e("../../drawing/attributes").dash,a=e("../../../lib/extend").extendFlat;t.exports={newshape:{line:{color:{valType:"color",editType:"none"},width:{valType:"number",min:0,dflt:4,editType:"none"},dash:a({},r,{dflt:"solid",editType:"none"}),editType:"none"},fillcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"none"},fillrule:{valType:"enumerated",values:["evenodd","nonzero"],dflt:"evenodd",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"none"},layer:{valType:"enumerated",values:["below","above"],dflt:"above",editType:"none"},drawdirection:{valType:"enumerated",values:["ortho","horizontal","vertical","diagonal"],dflt:"diagonal",editType:"none"},editType:"none"},activeshape:{fillcolor:{valType:"color",dflt:"rgb(255,0,255)",editType:"none"},opacity:{valType:"number",min:0,max:1,dflt:.5,editType:"none"},editType:"none"}}},{"../../../lib/extend":740,"../../drawing/attributes":636}],698:[function(e,t,n){"use strict";var r=32;t.exports={CIRCLE_SIDES:r,i000:0,i090:r/4,i180:r/2,i270:r/4*3,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],699:[function(e,t,n){"use strict";var r=e("../../color");t.exports=function(e,t,n){n("newshape.drawdirection"),n("newshape.layer"),n("newshape.fillcolor"),n("newshape.fillrule"),n("newshape.opacity");var a=n("newshape.line.width");if(a){var o=(e||{}).plot_bgcolor||"#FFF";n("newshape.line.color",r.contrast(o)),n("newshape.line.dash")}n("activeshape.fillcolor"),n("activeshape.opacity")}},{"../../color":615}],700:[function(e,t,n){"use strict";var r=e("../../dragelement"),a=e("../../dragelement/helpers"),o=a.drawMode,i=e("../../../registry"),l=e("./constants"),s=l.i000,u=l.i090,c=l.i180,f=l.i270,p=e("../../../plots/cartesian/handle_outline"),d=p.clearOutlineControllers,h=e("./helpers"),v=h.pointsShapeRectangle,m=h.pointsShapeEllipse,y=h.writePaths,g=e("./newshapes");function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];e[n]=[];for(var a=0;a<r.length;a++){e[n][a]=[];for(var o=0;o<r[a].length;o++)e[n][a][o]=r[a][o]}}return e}t.exports=function e(t,n,a,l){l||(l=0);var p=a.gd;function h(){e(t,n,a,l++),m(t[0])&&x({redrawing:!0})}function x(e){a.isActiveShape=!1;var t=g(n,a);Object.keys(t).length&&i.call((e||{}).redrawing?"relayout":"_guiRelayout",p,t)}var _,w,k,T,E,O=a.isActiveShape,M=p._fullLayout,S=M._zoomlayer,C=a.dragmode,A=o(C);if(A?p._fullLayout._drawing=!0:p._fullLayout._activeShapeIndex>=0&&d(p),n.attr("d",y(t)),O&&!l){E=b([],t);var P=S.append("g").attr("class","outline-controllers");z(P),H()}function L(e){k=+e.srcElement.getAttribute("data-i"),T=+e.srcElement.getAttribute("data-j"),_[k][T].moveFn=D}function D(e,n){if(t.length){var r=E[k][T][1],a=E[k][T][2],o=t[k],i=o.length;if(v(o)){for(var l=0;l<i;l++)if(l!==T){var s=o[l];s[1]===o[T][1]&&(s[1]=r+e),s[2]===o[T][2]&&(s[2]=a+n)}if(o[T][1]=r+e,o[T][2]=a+n,!v(o))for(var u=0;u<i;u++)for(var c=0;c<o[u].length;c++)o[u][c]=E[k][u][c]}else o[T][1]=r+e,o[T][2]=a+n;h()}}function j(){x()}function I(){if(t.length&&t[k]&&t[k].length){for(var e=[],n=0;n<t[k].length;n++)n!==T&&e.push(t[k][n]);e.length>1&&(2!==e.length||"Z"!==e[1][0])&&(0===T&&(e[0][0]="M"),t[k]=e,h(),x())}}function R(e,n){if(2===e){k=+n.srcElement.getAttribute("data-i"),T=+n.srcElement.getAttribute("data-j");var r=t[k];v(r)||m(r)||I()}}function z(e){_=[];for(var n=0;n<t.length;n++){var a=t[n],o=v(a),i=!o&&m(a);_[n]=[];for(var l=0;l<a.length;l++)if("Z"!==a[l][0]&&(!i||l===s||l===u||l===c||l===f)){var d=a[l][1],h=a[l][2],y=e.append("circle").classed("cursor-grab",!0).attr("data-i",n).attr("data-j",l).attr("cx",d).attr("cy",h).attr("r",4).style({"mix-blend-mode":"luminosity",fill:"black",stroke:"white","stroke-width":1});_[n][l]={element:y.node(),gd:p,prepFn:L,doneFn:j,clickFn:R},r.init(_[n][l])}}}function N(e,n){if(t.length)for(var r=0;r<t.length;r++)for(var a=0;a<t[r].length;a++)for(var o=0;o+2<t[r][a].length;o+=2)t[r][a][o+1]=E[r][a][o+1]+e,t[r][a][o+2]=E[r][a][o+2]+n}function F(e,t){N(e,t),h()}function B(e){k=+e.srcElement.getAttribute("data-i"),k||(k=0),w[k].moveFn=F}function V(){x()}function H(){if(w=[],t.length){var e=0;w[e]={element:n[0][0],gd:p,prepFn:B,doneFn:V},r.init(w[e])}}}},{"../../../plots/cartesian/handle_outline":809,"../../../registry":882,"../../dragelement":634,"../../dragelement/helpers":633,"./constants":698,"./helpers":701,"./newshapes":702}],701:[function(e,t,n){"use strict";var r=e("parse-svg-path"),a=e("./constants"),o=a.CIRCLE_SIDES,i=a.SQRT2,l=e("../../../plots/cartesian/helpers"),s=l.p2r,u=l.r2p,c=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function p(e,t){return Math.abs(e-t)<=1e-6}function d(e,t){var n=t[1]-e[1],r=t[2]-e[2];return Math.sqrt(n*n+r*r)}n.writePaths=function(e){var t=e.length;if(!t)return"M0,0Z";for(var n="",r=0;r<t;r++)for(var a=e[r].length,o=0;o<a;o++){var i=e[r][o][0];if("Z"===i)n+="Z";else for(var l=e[r][o].length,s=0;s<l;s++){var u=s;"Q"===i||"S"===i?u=f[s]:"C"===i&&(u=c[s]),n+=e[r][o][u],s>0&&s<l-1&&(n+=",")}}return n},n.readPaths=function(e,t,n,a){var i,l,c,f=r(e),p=[],d=-1,h=function(){d++,p[d]=[]},v=0,m=0,y=function(){l=v,c=m};y();for(var g=0;g<f.length;g++){var b,x,_,w,k=[],T=f[g][0],E=T;switch(T){case"M":h(),v=+f[g][1],m=+f[g][2],k.push([E,v,m]),y();break;case"Q":case"S":b=+f[g][1],_=+f[g][2],v=+f[g][3],m=+f[g][4],k.push([E,v,m,b,_]);break;case"C":b=+f[g][1],_=+f[g][2],x=+f[g][3],w=+f[g][4],v=+f[g][5],m=+f[g][6],k.push([E,v,m,b,_,x,w]);break;case"T":case"L":v=+f[g][1],m=+f[g][2],k.push([E,v,m]);break;case"H":E="L",v=+f[g][1],k.push([E,v,m]);break;case"V":E="L",m=+f[g][1],k.push([E,v,m]);break;case"A":E="L";var O=+f[g][1],M=+f[g][2];+f[g][4]||(O=-O,M=-M);var S=v-O,C=m;for(i=1;i<=o/2;i++){var A=2*Math.PI*i/o;k.push([E,S+O*Math.cos(A),C+M*Math.sin(A)])}break;case"Z":v===l&&m===c||(v=l,m=c,k.push([E,v,m]));break}for(var P=(n||{}).domain,L=t._fullLayout._size,D=n&&"pixel"===n.xsizemode,j=n&&"pixel"===n.ysizemode,I=!1===a,R=0;R<k.length;R++){for(i=0;i+2<7;i+=2){var z=k[R][i+1],N=k[R][i+2];void 0!==z&&void 0!==N&&(v=z,m=N,n&&(n.xaxis&&n.xaxis.p2r?(I&&(z-=n.xaxis._offset),z=D?u(n.xaxis,n.xanchor)+z:s(n.xaxis,z)):(I&&(z-=L.l),P?z=P.x[0]+z/L.w:z/=L.w),n.yaxis&&n.yaxis.p2r?(I&&(N-=n.yaxis._offset),N=j?u(n.yaxis,n.yanchor)-N:s(n.yaxis,N)):(I&&(N-=L.t),N=P?P.y[1]-N/L.h:1-N/L.h)),k[R][i+1]=z,k[R][i+2]=N)}p[d].push(k[R].slice())}}return p},n.pointsShapeRectangle=function(e){var t=e.length;if(5!==t)return!1;for(var n=1;n<3;n++){var r=e[0][n]-e[1][n],a=e[3][n]-e[2][n];if(!p(r,a))return!1;var o=e[0][n]-e[3][n],i=e[1][n]-e[2][n];if(!p(o,i))return!1}return!(!p(e[0][1],e[1][1])&&!p(e[0][1],e[3][1]))&&!!(d(e[0],e[1])*d(e[0],e[3]))},n.pointsShapeEllipse=function(e){var t=e.length;if(t!==o+1)return!1;t=o;for(var n=0;n<t;n++){var r=(2*t-n)%t,a=(t/2+r)%t,i=(t/2+n)%t;if(!p(d(e[n],e[i]),d(e[r],e[a])))return!1}return!0},n.handleEllipse=function(e,t,r){if(!e)return[t,r];var a=n.ellipseOver({x0:t[0],y0:t[1],x1:r[0],y1:r[1]}),l=(a.x1+a.x0)/2,s=(a.y1+a.y0)/2,u=(a.x1-a.x0)/2,c=(a.y1-a.y0)/2;u||(u=c/=i),c||(c=u/=i);for(var f=[],p=0;p<o;p++){var d=2*p*Math.PI/o;f.push([l+u*Math.cos(d),s+c*Math.sin(d)])}return f},n.ellipseOver=function(e){var t=e.x0,n=e.y0,r=e.x1,a=e.y1,o=r-t,l=a-n;t-=o,n-=l;var s=(t+r)/2,u=(n+a)/2,c=i;return o*=c,l*=c,{x0:s-o,y0:u-l,x1:s+o,y1:u+l}}},{"../../../plots/cartesian/helpers":810,"./constants":698,"parse-svg-path":479}],702:[function(e,t,n){"use strict";var r=e("../../dragelement/helpers"),a=r.drawMode,o=r.openMode,i=e("./constants"),l=i.i000,s=i.i090,u=i.i180,c=i.i270,f=i.cos45,p=i.sin45,d=e("../../../plots/cartesian/helpers"),h=d.p2r,v=d.r2p,m=e("../../../plots/cartesian/handle_outline"),y=m.clearSelect,g=e("./helpers"),b=g.readPaths,x=g.writePaths,_=g.ellipseOver;function w(e,t,n){var r="date"===t.type,a="date"===n.type;if(!r&&!a)return e;for(var o=0;o<e.length;o++)for(var i=0;i<e[o].length;i++)for(var l=0;l+2<e[o][i].length;l+=2)r&&(e[o][i][l+1]=e[o][i][l+1].replace(" ","_")),a&&(e[o][i][l+2]=e[o][i][l+2].replace(" ","_"));return e}t.exports=function(e,t){if(e.length){var n=e[0][0];if(n){var r=n.getAttribute("d"),i=t.gd,d=i._fullLayout.newshape,m=t.plotinfo,g=m.xaxis,k=m.yaxis,T=!!m.domain||!m.xaxis,E=!!m.domain||!m.yaxis,O=t.isActiveShape,M=t.dragmode,S=(i.layout||{}).shapes||[];if(!a(M)&&void 0!==O){var C=i._fullLayout._activeShapeIndex;if(C<S.length)switch(i._fullLayout.shapes[C].type){case"rect":M="drawrect";break;case"circle":M="drawcircle";break;case"line":M="drawline";break;case"path":var A=S[C].path||"";M="Z"===A[A.length-1]?"drawclosedpath":"drawopenpath";break}}var P,L=o(M),D=b(r,i,m,O),j={editable:!0,xref:T?"paper":g._id,yref:E?"paper":k._id,layer:d.layer,opacity:d.opacity,line:{color:d.line.color,width:d.line.width,dash:d.line.dash}};if(L||(j.fillcolor=d.fillcolor,j.fillrule=d.fillrule),1===D.length&&(P=D[0]),P&&"drawrect"===M)j.type="rect",j.x0=P[0][1],j.y0=P[0][2],j.x1=P[2][1],j.y1=P[2][2];else if(P&&"drawline"===M)j.type="line",j.x0=P[0][1],j.y0=P[0][2],j.x1=P[1][1],j.y1=P[1][2];else if(P&&"drawcircle"===M){j.type="circle";var I=P[l][1],R=P[s][1],z=P[u][1],N=P[c][1],F=P[l][2],B=P[s][2],V=P[u][2],H=P[c][2],U=m.xaxis&&("date"===m.xaxis.type||"log"===m.xaxis.type),W=m.yaxis&&("date"===m.yaxis.type||"log"===m.yaxis.type);U&&(I=v(m.xaxis,I),R=v(m.xaxis,R),z=v(m.xaxis,z),N=v(m.xaxis,N)),W&&(F=v(m.yaxis,F),B=v(m.yaxis,B),V=v(m.yaxis,V),H=v(m.yaxis,H));var q=(R+N)/2,$=(F+V)/2,G=(N-R+z-I)/2,Y=(H-B+V-F)/2,K=_({x0:q,y0:$,x1:q+G*f,y1:$+Y*p});U&&(K.x0=h(m.xaxis,K.x0),K.x1=h(m.xaxis,K.x1)),W&&(K.y0=h(m.yaxis,K.y0),K.y1=h(m.yaxis,K.y1)),j.x0=K.x0,j.y0=K.y0,j.x1=K.x1,j.y1=K.y1}else j.type="path",g&&k&&w(D,g,k),j.path=x(D),P=null;y(i);for(var X=t.editHelpers,Z=(X||{}).modifyItem,J=[],Q=0;Q<S.length;Q++){var ee=i._fullLayout.shapes[Q];if(J[Q]=ee._input,void 0!==O&&Q===i._fullLayout._activeShapeIndex){var te=j;switch(ee.type){case"line":case"rect":case"circle":Z("x0",te.x0),Z("x1",te.x1),Z("y0",te.y0),Z("y1",te.y1);break;case"path":Z("path",te.path);break}}}return void 0===O?(J.push(j),J):X?X.getUpdateObj():{}}}}},{"../../../plots/cartesian/handle_outline":809,"../../../plots/cartesian/helpers":810,"../../dragelement/helpers":633,"./constants":698,"./helpers":701}],703:[function(e,t,n){"use strict";var r=e("./constants"),a=e("../../lib");n.rangeToShapePosition=function(e){return"log"===e.type?e.r2d:function(e){return e}},n.shapePositionToRange=function(e){return"log"===e.type?e.d2r:function(e){return e}},n.decodeDate=function(e){return function(t){return t.replace&&(t=t.replace("_"," ")),e(t)}},n.encodeDate=function(e){return function(t){return e(t).replace(" ","_")}},n.extractPathCoords=function(e,t){var n=[],o=e.match(r.segmentRE);return o.forEach((function(e){var o=t[e.charAt(0)].drawn;if(void 0!==o){var i=e.substr(1).match(r.paramRE);!i||i.length<o||n.push(a.cleanNumber(i[o]))}})),n},n.getDataToPixel=function(e,t,r,a){var o,i=e._fullLayout._size;if(t)if("domain"===a)o=function(e){return t._length*(r?1-e:e)+t._offset};else{var l=n.shapePositionToRange(t);o=function(e){return t._offset+t.r2p(l(e,!0))},"date"===t.type&&(o=n.decodeDate(o))}else o=r?function(e){return i.t+i.h*(1-e)}:function(e){return i.l+i.w*e};return o},n.getPixelToData=function(e,t,r,a){var o,i=e._fullLayout._size;if(t)if("domain"===a)o=function(e){var n=(e-t._offset)/t._length;return r?1-n:n};else{var l=n.rangeToShapePosition(t);o=function(e){return l(t.p2r(e-t._offset))}}else o=r?function(e){return 1-(e-i.t)/i.h}:function(e){return(e-i.l)/i.w};return o},n.roundPositionForSharpStrokeRendering=function(e,t){var n=1===Math.round(t%2),r=Math.round(e);return n?r+.5:r},n.makeOptionsAndPlotinfo=function(e,t){var n=e._fullLayout.shapes[t]||{},r=e._fullLayout._plots[n.xref+n.yref],a=!!r;return a?r._hadPlotinfo=!0:(r={},n.xref&&"paper"!==n.xref&&(r.xaxis=e._fullLayout[n.xref+"axis"]),n.yref&&"paper"!==n.yref&&(r.yaxis=e._fullLayout[n.yref+"axis"])),r.xsizemode=n.xsizemode,r.ysizemode=n.ysizemode,r.xanchor=n.xanchor,r.yanchor=n.yanchor,{options:n,plotinfo:r}}},{"../../lib":750,"./constants":694}],704:[function(e,t,n){"use strict";var r=e("./draw");t.exports={moduleType:"component",name:"shapes",layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),supplyDrawNewShapeDefaults:e("./draw_newshape/defaults"),includeBasePlot:e("../../plots/cartesian/include_components")("shapes"),calcAutorange:e("./calc_autorange"),draw:r.draw,drawOne:r.drawOne}},{"../../plots/cartesian/include_components":811,"./attributes":692,"./calc_autorange":693,"./defaults":695,"./draw":696,"./draw_newshape/defaults":699}],705:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("../../plots/pad_attributes"),o=e("../../lib/extend").extendDeepAll,i=e("../../plot_api/edit_types").overrideAll,l=e("../../plots/animation_attributes"),s=e("../../plot_api/plot_template").templatedArray,u=e("./constants"),c=s("step",{visible:{valType:"boolean",dflt:!0},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string"},value:{valType:"string"},execute:{valType:"boolean",dflt:!0}});t.exports=i(s("slider",{visible:{valType:"boolean",dflt:!0},active:{valType:"number",min:0,dflt:0},steps:c,lenmode:{valType:"enumerated",values:["fraction","pixels"],dflt:"fraction"},len:{valType:"number",min:0,dflt:1},x:{valType:"number",min:-2,max:3,dflt:0},pad:o(a({editType:"arraydraw"}),{},{t:{dflt:20}}),xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"left"},y:{valType:"number",min:-2,max:3,dflt:0},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},transition:{duration:{valType:"number",min:0,dflt:150},easing:{valType:"enumerated",values:l.transition.easing.values,dflt:"cubic-in-out"}},currentvalue:{visible:{valType:"boolean",dflt:!0},xanchor:{valType:"enumerated",values:["left","center","right"],dflt:"left"},offset:{valType:"number",dflt:10},prefix:{valType:"string"},suffix:{valType:"string"},font:r({})},font:r({}),activebgcolor:{valType:"color",dflt:u.gripBgActiveColor},bgcolor:{valType:"color",dflt:u.railBgColor},bordercolor:{valType:"color",dflt:u.railBorderColor},borderwidth:{valType:"number",min:0,dflt:u.railBorderWidth},ticklen:{valType:"number",min:0,dflt:u.tickLength},tickcolor:{valType:"color",dflt:u.tickColor},tickwidth:{valType:"number",min:0,dflt:1},minorticklen:{valType:"number",min:0,dflt:u.minorTickLength}}),"arraydraw","from-root")},{"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plot_api/plot_template":788,"../../plots/animation_attributes":793,"../../plots/font_attributes":827,"../../plots/pad_attributes":861,"./constants":706}],706:[function(e,t,n){"use strict";t.exports={name:"sliders",containerClassName:"slider-container",groupClassName:"slider-group",inputAreaClass:"slider-input-area",railRectClass:"slider-rail-rect",railTouchRectClass:"slider-rail-touch-rect",gripRectClass:"slider-grip-rect",tickRectClass:"slider-tick-rect",inputProxyClass:"slider-input-proxy",labelsClass:"slider-labels",labelGroupClass:"slider-label-group",labelClass:"slider-label",currentValueClass:"slider-current-value",railHeight:5,menuIndexAttrName:"slider-active-index",autoMarginIdRoot:"slider-",minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:"#bec8d9",railBgColor:"#f8fafc",railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:"#bec8d9",gripBgColor:"#f6f8fa",gripBgActiveColor:"#dbdde0",labelPadding:8,labelOffset:0,tickWidth:1,tickColor:"#333",tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:"#333",minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],707:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/array_container_defaults"),o=e("./attributes"),i=e("./constants"),l=i.name,s=o.steps;function u(e,t,n){function i(n,a){return r.coerce(e,t,o,n,a)}for(var l,s=a(e,t,{name:"steps",handleItemDefaults:c}),u=0,f=0;f<s.length;f++)s[f].visible&&u++;if(l=u<2?t.visible=!1:i("visible"),l){t._stepCount=u;var p=t._visibleSteps=r.filterVisible(s),d=i("active");(s[d]||{}).visible||(t.active=p[0]._index),i("x"),i("y"),r.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("len"),i("lenmode"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),r.coerceFont(i,"font",n.font);var h=i("currentvalue.visible");h&&(i("currentvalue.xanchor"),i("currentvalue.prefix"),i("currentvalue.suffix"),i("currentvalue.offset"),r.coerceFont(i,"currentvalue.font",t.font)),i("transition.duration"),i("transition.easing"),i("bgcolor"),i("activebgcolor"),i("bordercolor"),i("borderwidth"),i("ticklen"),i("tickwidth"),i("tickcolor"),i("minorticklen")}}function c(e,t){function n(n,a){return r.coerce(e,t,s,n,a)}var a;if(a="skip"===e.method||Array.isArray(e.args)?n("visible"):t.visible=!1,a){n("method"),n("args");var o=n("label","step-"+t._index);n("value",o),n("execute")}}t.exports=function(e,t){a(e,t,{name:l,handleItemDefaults:u})}},{"../../lib":750,"../../plots/array_container_defaults":794,"./attributes":705,"./constants":706}],708:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../plots/plots"),o=e("../color"),i=e("../drawing"),l=e("../../lib"),s=e("../../lib/svg_text_utils"),u=e("../../plot_api/plot_template").arrayEditor,c=e("./constants"),f=e("../../constants/alignment"),p=f.LINE_SPACING,d=f.FROM_TL,h=f.FROM_BR;function v(e){return c.autoMarginIdRoot+e._index}function m(e,t){for(var n=e[c.name],r=[],a=0;a<n.length;a++){var o=n[a];o.visible&&(o._gd=t,r.push(o))}return r}function y(e){return e._index}function g(e,t){var n=i.tester.selectAll("g."+c.labelGroupClass).data(t._visibleSteps);n.enter().append("g").classed(c.labelGroupClass,!0);var o=0,u=0;n.each((function(e){var n=r.select(this),a=w(n,{step:e},t),l=a.node();if(l){var s=i.bBox(l);u=Math.max(u,s.height),o=Math.max(o,s.width)}})),n.remove();var f=t._dims={};f.inputAreaWidth=Math.max(c.railWidth,c.gripHeight);var p=e._fullLayout._size;f.lx=p.l+p.w*t.x,f.ly=p.t+p.h*(1-t.y),"fraction"===t.lenmode?f.outerLength=Math.round(p.w*t.len):f.outerLength=t.len,f.inputAreaStart=0,f.inputAreaLength=Math.round(f.outerLength-t.pad.l-t.pad.r);var m=f.inputAreaLength-2*c.stepInset,y=m/(t._stepCount-1),g=o+c.labelPadding;if(f.labelStride=Math.max(1,Math.ceil(g/y)),f.labelHeight=u,f.currentValueMaxWidth=0,f.currentValueHeight=0,f.currentValueTotalHeight=0,f.currentValueMaxLines=1,t.currentvalue.visible){var b=i.tester.append("g");n.each((function(e){var n=x(b,t,e.label),r=n.node()&&i.bBox(n.node())||{width:0,height:0},a=s.lineCount(n);f.currentValueMaxWidth=Math.max(f.currentValueMaxWidth,Math.ceil(r.width)),f.currentValueHeight=Math.max(f.currentValueHeight,Math.ceil(r.height)),f.currentValueMaxLines=Math.max(f.currentValueMaxLines,a)})),f.currentValueTotalHeight=f.currentValueHeight+t.currentvalue.offset,b.remove()}f.height=f.currentValueTotalHeight+c.tickOffset+t.ticklen+c.labelOffset+f.labelHeight+t.pad.t+t.pad.b;var _="left";l.isRightAnchor(t)&&(f.lx-=f.outerLength,_="right"),l.isCenterAnchor(t)&&(f.lx-=f.outerLength/2,_="center");var k="top";l.isBottomAnchor(t)&&(f.ly-=f.height,k="bottom"),l.isMiddleAnchor(t)&&(f.ly-=f.height/2,k="middle"),f.outerLength=Math.ceil(f.outerLength),f.height=Math.ceil(f.height),f.lx=Math.round(f.lx),f.ly=Math.round(f.ly);var T={y:t.y,b:f.height*h[k],t:f.height*d[k]};"fraction"===t.lenmode?(T.l=0,T.xl=t.x-t.len*d[_],T.r=0,T.xr=t.x+t.len*h[_]):(T.x=t.x,T.l=f.outerLength*d[_],T.r=f.outerLength*h[_]),a.autoMargin(e,v(t),T)}function b(e,t,n){(n.steps[n.active]||{}).visible||(n.active=n._visibleSteps[0]._index),t.call(x,n).call(D,n).call(k,n).call(M,n).call(L,e,n).call(_,e,n);var r=n._dims;i.setTranslate(t,r.lx+n.pad.l,r.ly+n.pad.t),t.call(C,n,!1),t.call(x,n)}function x(e,t,n){if(t.currentvalue.visible){var r,a,o=t._dims;switch(t.currentvalue.xanchor){case"right":r=o.inputAreaLength-c.currentValueInset-o.currentValueMaxWidth,a="left";break;case"center":r=.5*o.inputAreaLength,a="middle";break;default:r=c.currentValueInset,a="left"}var u=l.ensureSingle(e,"text",c.labelClass,(function(e){e.attr({"text-anchor":a,"data-notex":1})})),f=t.currentvalue.prefix?t.currentvalue.prefix:"";if("string"===typeof n)f+=n;else{var d=t.steps[t.active].label,h=t._gd._fullLayout._meta;h&&(d=l.templateString(d,h)),f+=d}t.currentvalue.suffix&&(f+=t.currentvalue.suffix),u.call(i.font,t.currentvalue.font).text(f).call(s.convertToTspans,t._gd);var v=s.lineCount(u),m=(o.currentValueMaxLines+1-v)*t.currentvalue.font.size*p;return s.positionText(u,r,m),u}}function _(e,t,n){var r=l.ensureSingle(e,"rect",c.gripRectClass,(function(r){r.call(O,t,e,n).style("pointer-events","all")}));r.attr({width:c.gripWidth,height:c.gripHeight,rx:c.gripRadius,ry:c.gripRadius}).call(o.stroke,n.bordercolor).call(o.fill,n.bgcolor).style("stroke-width",n.borderwidth+"px")}function w(e,t,n){var r=l.ensureSingle(e,"text",c.labelClass,(function(e){e.attr({"text-anchor":"middle","data-notex":1})})),a=t.step.label,o=n._gd._fullLayout._meta;return o&&(a=l.templateString(a,o)),r.call(i.font,n.font).text(a).call(s.convertToTspans,n._gd),r}function k(e,t){var n=l.ensureSingle(e,"g",c.labelsClass),a=t._dims,o=n.selectAll("g."+c.labelGroupClass).data(a.labelSteps);o.enter().append("g").classed(c.labelGroupClass,!0),o.exit().remove(),o.each((function(e){var n=r.select(this);n.call(w,e,t),i.setTranslate(n,A(t,e.fraction),c.tickOffset+t.ticklen+t.font.size*p+c.labelOffset+a.currentValueTotalHeight)}))}function T(e,t,n,r,a){var o=Math.round(r*(n._stepCount-1)),i=n._visibleSteps[o]._index;i!==n.active&&E(e,t,n,i,!0,a)}function E(e,t,n,r,o,i){var l=n.active;n.active=r,u(e.layout,c.name,n).applyUpdate("active",r);var s=n.steps[n.active];t.call(C,n,i),t.call(x,n),e.emit("plotly_sliderchange",{slider:n,step:n.steps[n.active],interaction:o,previousActive:l}),s&&s.method&&o&&(t._nextMethod?(t._nextMethod.step=s,t._nextMethod.doCallback=o,t._nextMethod.doTransition=i):(t._nextMethod={step:s,doCallback:o,doTransition:i},t._nextMethodRaf=window.requestAnimationFrame((function(){var n=t._nextMethod.step;n.method&&(n.execute&&a.executeAPICommand(e,n.method,n.args),t._nextMethod=null,t._nextMethodRaf=null)}))))}function O(e,t,n){var a=n.node(),i=r.select(t);function l(){return n.data()[0]}e.on("mousedown",(function(){var e=l();t.emit("plotly_sliderstart",{slider:e});var s=n.select("."+c.gripRectClass);r.event.stopPropagation(),r.event.preventDefault(),s.call(o.fill,e.activebgcolor);var u=P(e,r.mouse(a)[0]);T(t,n,e,u,!0),e._dragging=!0,i.on("mousemove",(function(){var e=l(),o=P(e,r.mouse(a)[0]);T(t,n,e,o,!1)})),i.on("mouseup",(function(){var e=l();e._dragging=!1,s.call(o.fill,e.bgcolor),i.on("mouseup",null),i.on("mousemove",null),t.emit("plotly_sliderend",{slider:e,step:e.steps[e.active]})}))}))}function M(e,t){var n=e.selectAll("rect."+c.tickRectClass).data(t._visibleSteps),a=t._dims;n.enter().append("rect").classed(c.tickRectClass,!0),n.exit().remove(),n.attr({width:t.tickwidth+"px","shape-rendering":"crispEdges"}),n.each((function(e,n){var l=n%a.labelStride===0,s=r.select(this);s.attr({height:l?t.ticklen:t.minorticklen}).call(o.fill,t.tickcolor),i.setTranslate(s,A(t,n/(t._stepCount-1))-.5*t.tickwidth,(l?c.tickOffset:c.minorTickOffset)+a.currentValueTotalHeight)}))}function S(e){var t=e._dims;t.labelSteps=[];for(var n=e._stepCount,r=0;r<n;r+=t.labelStride)t.labelSteps.push({fraction:r/(n-1),step:e._visibleSteps[r]})}function C(e,t,n){for(var r=e.select("rect."+c.gripRectClass),a=0,o=0;o<t._stepCount;o++)if(t._visibleSteps[o]._index===t.active){a=o;break}var i=A(t,a/(t._stepCount-1));if(!t._invokingCommand){var l=r;n&&t.transition.duration>0&&(l=l.transition().duration(t.transition.duration).ease(t.transition.easing)),l.attr("transform","translate("+(i-.5*c.gripWidth)+","+t._dims.currentValueTotalHeight+")")}}function A(e,t){var n=e._dims;return n.inputAreaStart+c.stepInset+(n.inputAreaLength-2*c.stepInset)*Math.min(1,Math.max(0,t))}function P(e,t){var n=e._dims;return Math.min(1,Math.max(0,(t-c.stepInset-n.inputAreaStart)/(n.inputAreaLength-2*c.stepInset-2*n.inputAreaStart)))}function L(e,t,n){var r=n._dims,a=l.ensureSingle(e,"rect",c.railTouchRectClass,(function(r){r.call(O,t,e,n).style("pointer-events","all")}));a.attr({width:r.inputAreaLength,height:Math.max(r.inputAreaWidth,c.tickOffset+n.ticklen+r.labelHeight)}).call(o.fill,n.bgcolor).attr("opacity",0),i.setTranslate(a,0,r.currentValueTotalHeight)}function D(e,t){var n=t._dims,r=n.inputAreaLength-2*c.railInset,a=l.ensureSingle(e,"rect",c.railRectClass);a.attr({width:r,height:c.railWidth,rx:c.railRadius,ry:c.railRadius,"shape-rendering":"crispEdges"}).call(o.stroke,t.bordercolor).call(o.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px"),i.setTranslate(a,c.railInset,.5*(n.inputAreaWidth-c.railWidth)+n.currentValueTotalHeight)}t.exports=function(e){var t=e._fullLayout,n=m(t,e),o=t._infolayer.selectAll("g."+c.containerClassName).data(n.length>0?[0]:[]);function i(t){t._commandObserver&&(t._commandObserver.remove(),delete t._commandObserver),a.autoMargin(e,v(t))}if(o.enter().append("g").classed(c.containerClassName,!0).style("cursor","ew-resize"),o.exit().each((function(){r.select(this).selectAll("g."+c.groupClassName).each(i)})).remove(),0!==n.length){var l=o.selectAll("g."+c.groupClassName).data(n,y);l.enter().append("g").classed(c.groupClassName,!0),l.exit().each(i).remove();for(var s=0;s<n.length;s++){var u=n[s];g(e,u)}l.each((function(t){var n=r.select(this);S(t),a.manageCommandObserver(e,t,t._visibleSteps,(function(t){var r=n.data()[0];r.active!==t.index&&(r._dragging||E(e,n,r,t.index,!1,!0))})),b(e,r.select(this),t)}))}}},{"../../constants/alignment":717,"../../lib":750,"../../lib/svg_text_utils":774,"../../plot_api/plot_template":788,"../../plots/plots":862,"../color":615,"../drawing":637,"./constants":706,d3:169}],709:[function(e,t,n){"use strict";var r=e("./constants");t.exports={moduleType:"component",name:r.name,layoutAttributes:e("./attributes"),supplyLayoutDefaults:e("./defaults"),draw:e("./draw")}},{"./attributes":705,"./constants":706,"./defaults":707,"./draw":708}],710:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),o=e("../../plots/plots"),i=e("../../registry"),l=e("../../lib"),s=e("../drawing"),u=e("../color"),c=e("../../lib/svg_text_utils"),f=e("../../constants/interactions"),p=e("../../constants/alignment").OPPOSITE_SIDE,d=/ [XY][0-9]* /;function h(e,t,n){var h,v=n.propContainer,m=n.propName,y=n.placeholder,g=n.traceIndex,b=n.avoid||{},x=n.attributes,_=n.transform,w=n.containerGroup,k=e._fullLayout,T=1,E=!1,O=v.title,M=(O&&O.text?O.text:"").trim(),S=O&&O.font?O.font:{},C=S.family,A=S.size,P=S.color;"title.text"===m?h="titleText":-1!==m.indexOf("axis")?h="axisTitleText":m.indexOf(!0)&&(h="colorbarTitleText");var L=e._context.edits[h];""===M?T=0:M.replace(d," % ")===y.replace(d," % ")&&(T=.2,E=!0,L||(M="")),n._meta?M=l.templateString(M,n._meta):k._meta&&(M=l.templateString(M,k._meta));var D=M||L;w||(w=l.ensureSingle(k._infolayer,"g","g-"+t));var j=w.selectAll("text").data(D?[0]:[]);if(j.enter().append("text"),j.text(M).attr("class",t),j.exit().remove(),!D)return w;function I(e){l.syncOrAsync([R,z],e)}function R(t){var n;return _?(n="",_.rotate&&(n+="rotate("+[_.rotate,x.x,x.y]+")"),_.offset&&(n+="translate(0, "+_.offset+")")):n=null,t.attr("transform",n),t.style({"font-family":C,"font-size":r.round(A,2)+"px",fill:u.rgb(P),opacity:T*u.opacity(P),"font-weight":o.fontWeight}).attr(x).call(c.convertToTspans,e),o.previousPromises(e)}function z(e){var t=r.select(e.node().parentNode);if(b&&b.selection&&b.side&&M){t.attr("transform",null);var n=p[b.side],o="left"===b.side||"top"===b.side?-1:1,i=a(b.pad)?b.pad:2,u=s.bBox(t.node()),c={left:0,top:0,right:k.width,bottom:k.height},f=b.maxShift||o*(c[b.side]-u[b.side]),d=0;if(f<0)d=f;else{var h=b.offsetLeft||0,v=b.offsetTop||0;u.left-=h,u.right-=h,u.top-=v,u.bottom-=v,b.selection.each((function(){var e=s.bBox(this);l.bBoxIntersect(u,e,i)&&(d=Math.max(d,o*(e[b.side]-u[n])+i))})),d=Math.min(f,d)}if(d>0||f<0){var m={left:[-d,0],right:[d,0],top:[0,-d],bottom:[0,d]}[b.side];t.attr("transform","translate("+m+")")}}}function N(){T=0,E=!0,j.text(y).on("mouseover.opacity",(function(){r.select(this).transition().duration(f.SHOW_PLACEHOLDER).style("opacity",1)})).on("mouseout.opacity",(function(){r.select(this).transition().duration(f.HIDE_PLACEHOLDER).style("opacity",0)}))}return j.call(I),L&&(M?j.on(".opacity",null):N(),j.call(c.makeEditable,{gd:e}).on("edit",(function(t){void 0!==g?i.call("_guiRestyle",e,m,t,g):i.call("_guiRelayout",e,m,t)})).on("cancel",(function(){this.text(this.attr("data-unformatted")).call(I)})).on("input",(function(e){this.text(e||" ").call(c.positionText,x.x,x.y)}))),j.classed("js-placeholder",E),w}t.exports={draw:h}},{"../../constants/alignment":717,"../../constants/interactions":724,"../../lib":750,"../../lib/svg_text_utils":774,"../../plots/plots":862,"../../registry":882,"../color":615,"../drawing":637,d3:169,"fast-isnumeric":241}],711:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("../color/attributes"),o=e("../../lib/extend").extendFlat,i=e("../../plot_api/edit_types").overrideAll,l=e("../../plots/pad_attributes"),s=e("../../plot_api/plot_template").templatedArray,u=s("button",{visible:{valType:"boolean"},method:{valType:"enumerated",values:["restyle","relayout","animate","update","skip"],dflt:"restyle"},args:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},args2:{valType:"info_array",freeLength:!0,items:[{valType:"any"},{valType:"any"},{valType:"any"}]},label:{valType:"string",dflt:""},execute:{valType:"boolean",dflt:!0}});t.exports=i(s("updatemenu",{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:"boolean"},type:{valType:"enumerated",values:["dropdown","buttons"],dflt:"dropdown"},direction:{valType:"enumerated",values:["left","right","up","down"],dflt:"down"},active:{valType:"integer",min:-1,dflt:0},showactive:{valType:"boolean",dflt:!0},buttons:u,x:{valType:"number",min:-2,max:3,dflt:-.05},xanchor:{valType:"enumerated",values:["auto","left","center","right"],dflt:"right"},y:{valType:"number",min:-2,max:3,dflt:1},yanchor:{valType:"enumerated",values:["auto","top","middle","bottom"],dflt:"top"},pad:o(l({editType:"arraydraw"}),{}),font:r({}),bgcolor:{valType:"color"},bordercolor:{valType:"color",dflt:a.borderLine},borderwidth:{valType:"number",min:0,dflt:1,editType:"arraydraw"}}),"arraydraw","from-root")},{"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plot_api/plot_template":788,"../../plots/font_attributes":827,"../../plots/pad_attributes":861,"../color/attributes":614}],712:[function(e,t,n){"use strict";t.exports={name:"updatemenus",containerClassName:"updatemenu-container",headerGroupClassName:"updatemenu-header-group",headerClassName:"updatemenu-header",headerArrowClassName:"updatemenu-header-arrow",dropdownButtonGroupClassName:"updatemenu-dropdown-button-group",dropdownButtonClassName:"updatemenu-dropdown-button",buttonClassName:"updatemenu-button",itemRectClassName:"updatemenu-item-rect",itemTextClassName:"updatemenu-item-text",menuIndexAttrName:"updatemenu-active-index",autoMarginIdRoot:"updatemenu-",blankHeaderOpts:{label:" "},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:"#F4FAFF",hoverColor:"#F4FAFF",arrowSymbol:{left:"◄",right:"►",up:"▲",down:"▼"}}},{}],713:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/array_container_defaults"),o=e("./attributes"),i=e("./constants"),l=i.name,s=o.buttons;function u(e,t,n){function i(n,a){return r.coerce(e,t,o,n,a)}var l=a(e,t,{name:"buttons",handleItemDefaults:c}),s=i("visible",l.length>0);s&&(i("active"),i("direction"),i("type"),i("showactive"),i("x"),i("y"),r.noneOrAll(e,t,["x","y"]),i("xanchor"),i("yanchor"),i("pad.t"),i("pad.r"),i("pad.b"),i("pad.l"),r.coerceFont(i,"font",n.font),i("bgcolor",n.paper_bgcolor),i("bordercolor"),i("borderwidth"))}function c(e,t){function n(n,a){return r.coerce(e,t,s,n,a)}var a=n("visible","skip"===e.method||Array.isArray(e.args));a&&(n("method"),n("args"),n("args2"),n("label"),n("execute"))}t.exports=function(e,t){var n={name:l,handleItemDefaults:u};a(e,t,n)}},{"../../lib":750,"../../plots/array_container_defaults":794,"./attributes":711,"./constants":712}],714:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../plots/plots"),o=e("../color"),i=e("../drawing"),l=e("../../lib"),s=e("../../lib/svg_text_utils"),u=e("../../plot_api/plot_template").arrayEditor,c=e("../../constants/alignment").LINE_SPACING,f=e("./constants"),p=e("./scrollbox");function d(e){return e._index}function h(e){return-1===+e.attr(f.menuIndexAttrName)}function v(e,t){return+e.attr(f.menuIndexAttrName)===t._index}function m(e,t,n,r,a,o,i,l){t.active=i,u(e.layout,f.name,t).applyUpdate("active",i),"buttons"===t.type?g(e,r,null,null,t):"dropdown"===t.type&&(a.attr(f.menuIndexAttrName,"-1"),y(e,r,a,o,t),l||g(e,r,a,o,t))}function y(e,t,n,r,a){var o=l.ensureSingle(t,"g",f.headerClassName,(function(e){e.style("pointer-events","all")})),s=a._dims,u=a.active,c=a.buttons[u]||f.blankHeaderOpts,p={y:a.pad.t,yPad:0,x:a.pad.l,xPad:0,index:0},d={width:s.headerWidth,height:s.headerHeight};o.call(_,a,c,e).call(C,a,p,d);var h=l.ensureSingle(t,"text",f.headerArrowClassName,(function(e){e.attr("text-anchor","end").call(i.font,a.font).text(f.arrowSymbol[a.direction])}));h.attr({x:s.headerWidth-f.arrowOffsetX+a.pad.l,y:s.headerHeight/2+f.textOffsetY+a.pad.t}),o.on("click",(function(){n.call(A,String(v(n,a)?-1:a._index)),g(e,t,n,r,a)})),o.on("mouseover",(function(){o.call(E)})),o.on("mouseout",(function(){o.call(O,a)})),i.setTranslate(t,s.lx,s.ly)}function g(e,t,n,o,i){n||(n=t,n.attr("pointer-events","all"));var s=h(n)&&"buttons"!==i.type?[]:i.buttons,u="dropdown"===i.type?f.dropdownButtonClassName:f.buttonClassName,c=n.selectAll("g."+u).data(l.filterVisible(s)),p=c.enter().append("g").classed(u,!0),d=c.exit();"dropdown"===i.type?(p.attr("opacity","0").transition().attr("opacity","1"),d.transition().attr("opacity","0").remove()):d.remove();var v=0,y=0,g=i._dims,w=-1!==["up","down"].indexOf(i.direction);"dropdown"===i.type&&(w?y=g.headerHeight+f.gapButtonHeader:v=g.headerWidth+f.gapButtonHeader),"dropdown"===i.type&&"up"===i.direction&&(y=-f.gapButtonHeader+f.gapButton-g.openHeight),"dropdown"===i.type&&"left"===i.direction&&(v=-f.gapButtonHeader+f.gapButton-g.openWidth);var k={x:g.lx+v+i.pad.l,y:g.ly+y+i.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},M={l:k.x+i.borderwidth,t:k.y+i.borderwidth};c.each((function(l,s){var u=r.select(this);u.call(_,i,l,e).call(C,i,k),u.on("click",(function(){r.event.defaultPrevented||(l.execute&&(l.args2&&i.active===s?(m(e,i,l,t,n,o,-1),a.executeAPICommand(e,l.method,l.args2)):(m(e,i,l,t,n,o,s),a.executeAPICommand(e,l.method,l.args))),e.emit("plotly_buttonclicked",{menu:i,button:l,active:i.active}))})),u.on("mouseover",(function(){u.call(E)})),u.on("mouseout",(function(){u.call(O,i),c.call(T,i)}))})),c.call(T,i),w?(M.w=Math.max(g.openWidth,g.headerWidth),M.h=k.y-M.t):(M.w=k.x-M.l,M.h=Math.max(g.openHeight,g.headerHeight)),M.direction=i.direction,o&&(c.size()?b(e,t,n,o,i,M):x(o))}function b(e,t,n,r,a,o){var i,l,s,u=a.direction,c="up"===u||"down"===u,p=a._dims,d=a.active;if(c)for(l=0,s=0;s<d;s++)l+=p.heights[s]+f.gapButton;else for(i=0,s=0;s<d;s++)i+=p.widths[s]+f.gapButton;r.enable(o,i,l),r.hbar&&r.hbar.attr("opacity","0").transition().attr("opacity","1"),r.vbar&&r.vbar.attr("opacity","0").transition().attr("opacity","1")}function x(e){var t=!!e.hbar,n=!!e.vbar;t&&e.hbar.transition().attr("opacity","0").each("end",(function(){t=!1,n||e.disable()})),n&&e.vbar.transition().attr("opacity","0").each("end",(function(){n=!1,t||e.disable()}))}function _(e,t,n,r){e.call(w,t).call(k,t,n,r)}function w(e,t){var n=l.ensureSingle(e,"rect",f.itemRectClassName,(function(e){e.attr({rx:f.rx,ry:f.ry,"shape-rendering":"crispEdges"})}));n.call(o.stroke,t.bordercolor).call(o.fill,t.bgcolor).style("stroke-width",t.borderwidth+"px")}function k(e,t,n,r){var a=l.ensureSingle(e,"text",f.itemTextClassName,(function(e){e.attr({"text-anchor":"start","data-notex":1})})),o=n.label,u=r._fullLayout._meta;u&&(o=l.templateString(o,u)),a.call(i.font,t.font).text(o).call(s.convertToTspans,r)}function T(e,t){var n=t.active;e.each((function(e,a){var i=r.select(this);a===n&&t.showactive&&i.select("rect."+f.itemRectClassName).call(o.fill,f.activeColor)}))}function E(e){e.select("rect."+f.itemRectClassName).call(o.fill,f.hoverColor)}function O(e,t){e.select("rect."+f.itemRectClassName).call(o.fill,t.bgcolor)}function M(e,t){var n=t._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},o=i.tester.selectAll("g."+f.dropdownButtonClassName).data(l.filterVisible(t.buttons));o.enter().append("g").classed(f.dropdownButtonClassName,!0);var u=-1!==["up","down"].indexOf(t.direction);o.each((function(a,o){var l=r.select(this);l.call(_,t,a,e);var p=l.select("."+f.itemTextClassName),d=p.node()&&i.bBox(p.node()).width,h=Math.max(d+f.textPadX,f.minWidth),v=t.font.size*c,m=s.lineCount(p),y=Math.max(v*m,f.minHeight)+f.textOffsetY;y=Math.ceil(y),h=Math.ceil(h),n.widths[o]=h,n.heights[o]=y,n.height1=Math.max(n.height1,y),n.width1=Math.max(n.width1,h),u?(n.totalWidth=Math.max(n.totalWidth,h),n.openWidth=n.totalWidth,n.totalHeight+=y+f.gapButton,n.openHeight+=y+f.gapButton):(n.totalWidth+=h+f.gapButton,n.openWidth+=h+f.gapButton,n.totalHeight=Math.max(n.totalHeight,y),n.openHeight=n.totalHeight)})),u?n.totalHeight-=f.gapButton:n.totalWidth-=f.gapButton,n.headerWidth=n.width1+f.arrowPadX,n.headerHeight=n.height1,"dropdown"===t.type&&(u?(n.width1+=f.arrowPadX,n.totalHeight=n.height1):n.totalWidth=n.width1,n.totalWidth+=f.arrowPadX),o.remove();var p=n.totalWidth+t.pad.l+t.pad.r,d=n.totalHeight+t.pad.t+t.pad.b,h=e._fullLayout._size;n.lx=h.l+h.w*t.x,n.ly=h.t+h.h*(1-t.y);var v="left";l.isRightAnchor(t)&&(n.lx-=p,v="right"),l.isCenterAnchor(t)&&(n.lx-=p/2,v="center");var m="top";l.isBottomAnchor(t)&&(n.ly-=d,m="bottom"),l.isMiddleAnchor(t)&&(n.ly-=d/2,m="middle"),n.totalWidth=Math.ceil(n.totalWidth),n.totalHeight=Math.ceil(n.totalHeight),n.lx=Math.round(n.lx),n.ly=Math.round(n.ly),a.autoMargin(e,S(t),{x:t.x,y:t.y,l:p*({right:1,center:.5}[v]||0),r:p*({left:1,center:.5}[v]||0),b:d*({top:1,middle:.5}[m]||0),t:d*({bottom:1,middle:.5}[m]||0)})}function S(e){return f.autoMarginIdRoot+e._index}function C(e,t,n,r){r=r||{};var a=e.select("."+f.itemRectClassName),o=e.select("."+f.itemTextClassName),l=t.borderwidth,u=n.index,p=t._dims;i.setTranslate(e,l+n.x,l+n.y);var d=-1!==["up","down"].indexOf(t.direction),h=r.height||(d?p.heights[u]:p.height1);a.attr({x:0,y:0,width:r.width||(d?p.width1:p.widths[u]),height:h});var v=t.font.size*c,m=s.lineCount(o),y=(m-1)*v/2;s.positionText(o,f.textOffsetX,h/2-y+f.textOffsetY),d?n.y+=p.heights[u]+n.yPad:n.x+=p.widths[u]+n.xPad,n.index++}function A(e,t){e.attr(f.menuIndexAttrName,t||"-1").selectAll("g."+f.dropdownButtonClassName).remove()}t.exports=function(e){var t=e._fullLayout,n=l.filterVisible(t[f.name]);function o(t){a.autoMargin(e,S(t))}var i=t._menulayer.selectAll("g."+f.containerClassName).data(n.length>0?[0]:[]);if(i.enter().append("g").classed(f.containerClassName,!0).style("cursor","pointer"),i.exit().each((function(){r.select(this).selectAll("g."+f.headerGroupClassName).each(o)})).remove(),0!==n.length){var s=i.selectAll("g."+f.headerGroupClassName).data(n,d);s.enter().append("g").classed(f.headerGroupClassName,!0);for(var u=l.ensureSingle(i,"g",f.dropdownButtonGroupClassName,(function(e){e.style("pointer-events","all")})),c=0;c<n.length;c++){var h=n[c];M(e,h)}var b="updatemenus"+t._uid,x=new p(e,u,b);s.enter().size()&&(u.node().parentNode.appendChild(u.node()),u.call(A)),s.exit().each((function(e){u.call(A),o(e)})).remove(),s.each((function(t){var n=r.select(this),o="dropdown"===t.type?u:null;a.manageCommandObserver(e,t,t.buttons,(function(r){m(e,t,t.buttons[r.index],n,o,x,r.index,!0)})),"dropdown"===t.type?(y(e,n,u,x,t),v(u,t)&&g(e,n,u,x,t)):g(e,n,null,null,t)}))}}},{"../../constants/alignment":717,"../../lib":750,"../../lib/svg_text_utils":774,"../../plot_api/plot_template":788,"../../plots/plots":862,"../color":615,"../drawing":637,"./constants":712,"./scrollbox":716,d3:169}],715:[function(e,t,n){arguments[4][709][0].apply(n,arguments)},{"./attributes":711,"./constants":712,"./defaults":713,"./draw":714,dup:709}],716:[function(e,t,n){"use strict";t.exports=l;var r=e("d3"),a=e("../color"),o=e("../drawing"),i=e("../../lib");function l(e,t,n){this.gd=e,this.container=t,this.id=n,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll("rect.scrollbox-bg").data([0]),this.bg.exit().on(".drag",null).on("wheel",null).remove(),this.bg.enter().append("rect").classed("scrollbox-bg",!0).style("pointer-events","all").attr({opacity:0,x:0,y:0,width:0,height:0})}l.barWidth=2,l.barLength=20,l.barRadius=2,l.barPad=1,l.barColor="#808BA4",l.prototype.enable=function(e,t,n){var i=this.gd._fullLayout,s=i.width,u=i.height;this.position=e;var c,f,p,d,h=this.position.l,v=this.position.w,m=this.position.t,y=this.position.h,g=this.position.direction,b="down"===g,x="left"===g,_="right"===g,w="up"===g,k=v,T=y;b||x||_||w||(this.position.direction="down",b=!0);var E=b||w;E?(c=h,f=c+k,b?(p=m,d=Math.min(p+T,u),T=d-p):(d=m+T,p=Math.max(d-T,0),T=d-p)):(p=m,d=p+T,x?(f=h+k,c=Math.max(f-k,0),k=f-c):(c=h,f=Math.min(c+k,s),k=f-c)),this._box={l:c,t:p,w:k,h:T};var O=v>k,M=l.barLength+2*l.barPad,S=l.barWidth+2*l.barPad,C=h,A=m+y;A+S>u&&(A=u-S);var P=this.container.selectAll("rect.scrollbar-horizontal").data(O?[0]:[]);P.exit().on(".drag",null).remove(),P.enter().append("rect").classed("scrollbar-horizontal",!0).call(a.fill,l.barColor),O?(this.hbar=P.attr({rx:l.barRadius,ry:l.barRadius,x:C,y:A,width:M,height:S}),this._hbarXMin=C+M/2,this._hbarTranslateMax=k-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var L=y>T,D=l.barWidth+2*l.barPad,j=l.barLength+2*l.barPad,I=h+v,R=m;I+D>s&&(I=s-D);var z=this.container.selectAll("rect.scrollbar-vertical").data(L?[0]:[]);z.exit().on(".drag",null).remove(),z.enter().append("rect").classed("scrollbar-vertical",!0).call(a.fill,l.barColor),L?(this.vbar=z.attr({rx:l.barRadius,ry:l.barRadius,x:I,y:R,width:D,height:j}),this._vbarYMin=R+j/2,this._vbarTranslateMax=T-j):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var N=this.id,F=c-.5,B=L?f+D+.5:f+.5,V=p-.5,H=O?d+S+.5:d+.5,U=i._topdefs.selectAll("#"+N).data(O||L?[0]:[]);if(U.exit().remove(),U.enter().append("clipPath").attr("id",N).append("rect"),O||L?(this._clipRect=U.select("rect").attr({x:Math.floor(F),y:Math.floor(V),width:Math.ceil(B)-Math.floor(F),height:Math.ceil(H)-Math.floor(V)}),this.container.call(o.setClipUrl,N,this.gd),this.bg.attr({x:h,y:m,width:v,height:y})):(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(o.setClipUrl,null),delete this._clipRect),O||L){var W=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault()})).on("drag",this._onBoxDrag.bind(this));this.container.on("wheel",null).on("wheel",this._onBoxWheel.bind(this)).on(".drag",null).call(W);var q=r.behavior.drag().on("dragstart",(function(){r.event.sourceEvent.preventDefault(),r.event.sourceEvent.stopPropagation()})).on("drag",this._onBarDrag.bind(this));O&&this.hbar.on(".drag",null).call(q),L&&this.vbar.on(".drag",null).call(q)}this.setTranslate(t,n)},l.prototype.disable=function(){(this.hbar||this.vbar)&&(this.bg.attr({width:0,height:0}),this.container.on("wheel",null).on(".drag",null).call(o.setClipUrl,null),delete this._clipRect),this.hbar&&(this.hbar.on(".drag",null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&&(this.vbar.on(".drag",null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},l.prototype._onBoxDrag=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e-=r.event.dx),this.vbar&&(t-=r.event.dy),this.setTranslate(e,t)},l.prototype._onBoxWheel=function(){var e=this.translateX,t=this.translateY;this.hbar&&(e+=r.event.deltaY),this.vbar&&(t+=r.event.deltaY),this.setTranslate(e,t)},l.prototype._onBarDrag=function(){var e=this.translateX,t=this.translateY;if(this.hbar){var n=e+this._hbarXMin,a=n+this._hbarTranslateMax,o=i.constrain(r.event.x,n,a),l=(o-n)/(a-n),s=this.position.w-this._box.w;e=l*s}if(this.vbar){var u=t+this._vbarYMin,c=u+this._vbarTranslateMax,f=i.constrain(r.event.y,u,c),p=(f-u)/(c-u),d=this.position.h-this._box.h;t=p*d}this.setTranslate(e,t)},l.prototype.setTranslate=function(e,t){var n=this.position.w-this._box.w,r=this.position.h-this._box.h;if(e=i.constrain(e||0,0,n),t=i.constrain(t||0,0,r),this.translateX=e,this.translateY=t,this.container.call(o.setTranslate,this._box.l-this.position.l-e,this._box.t-this.position.t-t),this._clipRect&&this._clipRect.attr({x:Math.floor(this.position.l+e-.5),y:Math.floor(this.position.t+t-.5)}),this.hbar){var a=e/n;this.hbar.call(o.setTranslate,e+a*this._hbarTranslateMax,t)}if(this.vbar){var l=t/r;this.vbar.call(o.setTranslate,e,t+l*this._vbarTranslateMax)}}},{"../../lib":750,"../color":615,"../drawing":637,d3:169}],717:[function(e,t,n){"use strict";t.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:"right",right:"left",top:"bottom",bottom:"top"}}},{}],718:[function(e,t,n){"use strict";t.exports={axisRefDescription:function(e,t,n){return["If set to a",e,"axis id (e.g. *"+e+"* or","*"+e+"2*), the `"+e+"` position refers to a",e,"coordinate. If set to *paper*, the `"+e+"`","position refers to the distance from the",t,"of the plotting","area in normalized coordinates where *0* (*1*) corresponds to the",t,"("+n+"). If set to a",e,"axis ID followed by","*domain* (separated by a space), the position behaves like for","*paper*, but refers to the distance in fractions of the domain","length from the",t,"of the domain of that axis: e.g.,","*"+e+"2 domain* refers to the domain of the second",e," axis and a",e,"position of 0.5 refers to the","point between the",t,"and the",n,"of the domain of the","second",e,"axis."].join(" ")}}},{}],719:[function(e,t,n){"use strict";t.exports={INCREASING:{COLOR:"#3D9970",SYMBOL:"▲"},DECREASING:{COLOR:"#FF4136",SYMBOL:"▼"}}},{}],720:[function(e,t,n){"use strict";t.exports={FORMAT_LINK:"https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format",DATE_FORMAT_LINK:"https://github.com/d3/d3-time-format#locale_format"}},{}],721:[function(e,t,n){"use strict";t.exports={COMPARISON_OPS:["=","!=","<",">=",">","<="],COMPARISON_OPS2:["=","<",">=",">","<="],INTERVAL_OPS:["[]","()","[)","(]","][",")(","](",")["],SET_OPS:["{}","}{"],CONSTRAINT_REDUCTION:{"=":"=","<":"<","<=":"<",">":">",">=":">","[]":"[]","()":"[]","[)":"[]","(]":"[]","][":"][",")(":"][","](":"][",")[":"]["}}},{}],722:[function(e,t,n){"use strict";t.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],723:[function(e,t,n){"use strict";t.exports={circle:"●","circle-open":"○",square:"■","square-open":"□",diamond:"◆","diamond-open":"◇",cross:"+",x:"❌"}},{}],724:[function(e,t,n){"use strict";t.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],725:[function(e,t,n){"use strict";t.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:""}},{}],726:[function(e,t,n){"use strict";n.xmlns="http://www.w3.org/2000/xmlns/",n.svg="http://www.w3.org/2000/svg",n.xlink="http://www.w3.org/1999/xlink",n.svgAttrs={xmlns:n.svg,"xmlns:xlink":n.xlink}},{}],727:[function(e,t,n){"use strict";n.version=e("./version").version,e("es6-promise").polyfill(),e("../build/plotcss"),e("./fonts/mathjax_config")();for(var r=e("./registry"),a=n.register=r.register,o=e("./plot_api"),i=Object.keys(o),l=0;l<i.length;l++){var s=i[l];"_"!==s.charAt(0)&&(n[s]=o[s]),a({moduleType:"apiMethod",name:s,fn:o[s]})}a(e("./traces/scatter")),a([e("./components/legend"),e("./components/fx"),e("./components/annotations"),e("./components/annotations3d"),e("./components/shapes"),e("./components/images"),e("./components/updatemenus"),e("./components/sliders"),e("./components/rangeslider"),e("./components/rangeselector"),e("./components/grid"),e("./components/errorbars"),e("./components/colorscale"),e("./components/colorbar")]),a([e("./locale-en"),e("./locale-en-us")]),window.PlotlyLocales&&Array.isArray(window.PlotlyLocales)&&(a(window.PlotlyLocales),delete window.PlotlyLocales),n.Icons=e("./fonts/ploticon"),n.Plots=e("./plots/plots"),n.Fx=e("./components/fx"),n.Snapshot=e("./snapshot"),n.PlotSchema=e("./plot_api/plot_schema"),n.Queue=e("./lib/queue"),n.d3=e("d3")},{"../build/plotcss":1,"./components/annotations":606,"./components/annotations3d":611,"./components/colorbar":621,"./components/colorscale":627,"./components/errorbars":643,"./components/fx":655,"./components/grid":659,"./components/images":664,"./components/legend":672,"./components/rangeselector":683,"./components/rangeslider":690,"./components/shapes":704,"./components/sliders":709,"./components/updatemenus":715,"./fonts/mathjax_config":728,"./fonts/ploticon":729,"./lib/queue":765,"./locale-en":779,"./locale-en-us":778,"./plot_api":783,"./plot_api/plot_schema":787,"./plots/plots":862,"./registry":882,"./snapshot":887,"./traces/scatter":1170,"./version":1341,d3:169,"es6-promise":224}],728:[function(e,t,n){"use strict";t.exports=function(){if("undefined"!==typeof MathJax){var e="local"!==(window.PlotlyConfig||{}).MathJaxConfig;e&&(MathJax.Hub.Config({messageStyle:"none",skipStartupTypeset:!0,displayAlign:"left",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]}}),MathJax.Hub.Configured())}}},{}],729:[function(e,t,n){"use strict";t.exports={undo:{width:857.1,height:1e3,path:"m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z",transform:"matrix(1 0 0 -1 0 850)"},home:{width:928.6,height:1e3,path:"m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z",transform:"matrix(1 0 0 -1 0 850)"},"camera-retro":{width:1e3,height:1e3,path:"m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z",transform:"matrix(1 0 0 -1 0 850)"},zoombox:{width:1e3,height:1e3,path:"m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z",transform:"matrix(1 0 0 -1 0 850)"},pan:{width:1e3,height:1e3,path:"m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z",transform:"matrix(1 0 0 -1 0 850)"},zoom_plus:{width:875,height:1e3,path:"m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},zoom_minus:{width:875,height:1e3,path:"m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z",transform:"matrix(1 0 0 -1 0 850)"},autoscale:{width:1e3,height:1e3,path:"m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_basic:{width:1500,height:1e3,path:"m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z",transform:"matrix(1 0 0 -1 0 850)"},tooltip_compare:{width:1125,height:1e3,path:"m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z",transform:"matrix(1 0 0 -1 0 850)"},plotlylogo:{width:1542,height:1e3,path:"m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z",transform:"matrix(1 0 0 -1 0 850)"},"z-axis":{width:1e3,height:1e3,path:"m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z",transform:"matrix(1 0 0 -1 0 850)"},"3d_rotate":{width:1e3,height:1e3,path:"m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z",transform:"matrix(1 0 0 -1 0 850)"},camera:{width:1e3,height:1e3,path:"m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z",transform:"matrix(1 0 0 -1 0 850)"},movie:{width:1e3,height:1e3,path:"m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z",transform:"matrix(1 0 0 -1 0 850)"},question:{width:857.1,height:1e3,path:"m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z",transform:"matrix(1 0 0 -1 0 850)"},disk:{width:857.1,height:1e3,path:"m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z",transform:"matrix(1 0 0 -1 0 850)"},drawopenpath:{width:70,height:70,path:"M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z",transform:"matrix(1 0 0 1 -15 -15)"},drawclosedpath:{width:90,height:90,path:"M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z",transform:"matrix(1 0 0 1 -5 -5)"},lasso:{width:1031,height:1e3,path:"m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z",transform:"matrix(1 0 0 -1 0 850)"},selectbox:{width:1e3,height:1e3,path:"m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z",transform:"matrix(1 0 0 -1 0 850)"},drawline:{width:70,height:70,path:"M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z",transform:"matrix(1 0 0 1 -15 -15)"},drawrect:{width:80,height:80,path:"M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z",transform:"matrix(1 0 0 1 -10 -10)"},drawcircle:{width:80,height:80,path:"M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z",transform:"matrix(1 0 0 1 -10 -10)"},eraseshape:{width:80,height:80,path:"M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z",transform:"matrix(1 0 0 1 -10 -10)"},spikeline:{width:1e3,height:1e3,path:"M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z",transform:"matrix(1.5 0 0 -1.5 0 850)"},pencil:{width:1792,height:1792,path:"M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z",transform:"matrix(1 0 0 1 0 1)"},newplotlylogo:{name:"newplotlylogo",svg:"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'><defs><style>.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}</style></defs><title>plotly-logomark</title><g id='symbol'><rect class='cls-1' width='132' height='132' rx='6' ry='6'/><circle class='cls-2' cx='78' cy='54' r='6'/><circle class='cls-2' cx='102' cy='30' r='6'/><circle class='cls-2' cx='78' cy='30' r='6'/><circle class='cls-2' cx='54' cy='30' r='6'/><circle class='cls-2' cx='30' cy='30' r='6'/><circle class='cls-2' cx='30' cy='54' r='6'/><path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/><path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/><path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/><path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/></g></svg>"}}},{}],730:[function(e,t,n){"use strict";n.isLeftAnchor=function(e){return"left"===e.xanchor||"auto"===e.xanchor&&e.x<=1/3},n.isCenterAnchor=function(e){return"center"===e.xanchor||"auto"===e.xanchor&&e.x>1/3&&e.x<2/3},n.isRightAnchor=function(e){return"right"===e.xanchor||"auto"===e.xanchor&&e.x>=2/3},n.isTopAnchor=function(e){return"top"===e.yanchor||"auto"===e.yanchor&&e.y>=2/3},n.isMiddleAnchor=function(e){return"middle"===e.yanchor||"auto"===e.yanchor&&e.y>1/3&&e.y<2/3},n.isBottomAnchor=function(e){return"bottom"===e.yanchor||"auto"===e.yanchor&&e.y<=1/3}},{}],731:[function(e,t,n){"use strict";var r=e("./mod"),a=r.mod,o=r.modHalf,i=Math.PI,l=2*i;function s(e){return e/180*i}function u(e){return e/i*180}function c(e){return Math.abs(e[1]-e[0])>l-1e-14}function f(e,t){return o(t-e,l)}function p(e,t){return Math.abs(f(e,t))}function d(e,t){if(c(t))return!0;var n,r;t[0]<t[1]?(n=t[0],r=t[1]):(n=t[1],r=t[0]),n=a(n,l),r=a(r,l),n>r&&(r+=l);var o=a(e,l),i=o+l;return o>=n&&o<=r||i>=n&&i<=r}function h(e,t,n,r){return!!d(t,r)&&(n[0]<n[1]?(a=n[0],o=n[1]):(a=n[1],o=n[0]),e>=a&&e<=o);var a,o}function v(e,t,n,r,a,o,s){a=a||0,o=o||0;var u,f,p,d,h,v=c([n,r]);function m(e,t){return[e*Math.cos(t)+a,o-e*Math.sin(t)]}v?(u=0,f=i,p=l):n<r?(u=n,p=r):(u=r,p=n),e<t?(d=e,h=t):(d=t,h=e);var y,g=Math.abs(p-u)<=i?0:1;function b(e,t,n){return"A"+[e,e]+" "+[0,g,n]+" "+m(e,t)}return v?y=null===d?"M"+m(h,u)+b(h,f,0)+b(h,p,0)+"Z":"M"+m(d,u)+b(d,f,0)+b(d,p,0)+"ZM"+m(h,u)+b(h,f,1)+b(h,p,1)+"Z":null===d?(y="M"+m(h,u)+b(h,p,0),s&&(y+="L0,0Z")):y="M"+m(d,u)+"L"+m(h,u)+b(h,p,0)+"L"+m(d,p)+b(d,u,1)+"Z",y}function m(e,t,n,r,a){return v(null,e,t,n,r,a,0)}function y(e,t,n,r,a){return v(null,e,t,n,r,a,1)}function g(e,t,n,r,a,o){return v(e,t,n,r,a,o,1)}t.exports={deg2rad:s,rad2deg:u,angleDelta:f,angleDist:p,isFullCircle:c,isAngleInsideSector:d,isPtInsideSector:h,pathArc:m,pathSector:y,pathAnnulus:g}},{"./mod":757}],732:[function(e,t,n){"use strict";var r=Array.isArray,a="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},o="undefined"===typeof DataView?function(){}:DataView;function i(e){return a.isView(e)&&!(e instanceof o)}function l(e){return r(e)||i(e)}function s(e){return!l(e[0])}function u(e,t,n){if(l(e)){if(l(e[0])){for(var r=n,a=0;a<e.length;a++)r=t(r,e[a].length);return r}return e.length}return 0}n.isTypedArray=i,n.isArrayOrTypedArray=l,n.isArray1D=s,n.ensureArray=function(e,t){return r(e)||(e=[]),e.length=t,e},n.concat=function(){var e,t,n,a,o,i,l,s,u=[],c=!0,f=0;for(n=0;n<arguments.length;n++)a=arguments[n],i=a.length,i&&(t?u.push(a):(t=a,o=i),r(a)?e=!1:(c=!1,f?e!==a.constructor&&(e=!1):e=a.constructor),f+=i);if(!f)return[];if(!u.length)return t;if(c)return t.concat.apply(t,u);if(e){for(l=new e(f),l.set(t),n=0;n<u.length;n++)a=u[n],l.set(a,o),o+=a.length;return l}for(l=new Array(f),s=0;s<t.length;s++)l[s]=t[s];for(n=0;n<u.length;n++){for(a=u[n],s=0;s<a.length;s++)l[o+s]=a[s];o+=s}return l},n.maxRowLength=function(e){return u(e,Math.max,0)},n.minRowLength=function(e){return u(e,Math.min,1/0)}},{}],733:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../constants/numerical").BADNUM,o=/^['"%,$#\s']+|[, ]|['"%,$#\s']+$/g;t.exports=function(e){return"string"===typeof e&&(e=e.replace(o,"")),r(e)?Number(e):a}},{"../constants/numerical":725,"fast-isnumeric":241}],734:[function(e,t,n){"use strict";t.exports=function(e){var t=e._fullLayout;t._glcanvas&&t._glcanvas.size()&&t._glcanvas.each((function(e){e.regl&&e.regl.clear({color:!0,depth:!0})}))}},{}],735:[function(e,t,n){"use strict";t.exports=function(e){e._responsiveChartHandler&&(window.removeEventListener("resize",e._responsiveChartHandler),delete e._responsiveChartHandler)}},{}],736:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("tinycolor2"),o=e("../plots/attributes"),i=e("../components/colorscale/scales"),l=e("../constants/interactions").DESELECTDIM,s=e("./nested_property"),u=e("./regex").counter,c=e("./mod").modHalf,f=e("./array").isArrayOrTypedArray;function p(e,t){var r=n.valObjectMeta[t.valType];if(t.arrayOk&&f(e))return!0;if(r.validateFunction)return r.validateFunction(e,t);var a={},o=a,i={set:function(e){o=e}};return r.coerceFunction(e,i,a,t),o!==a}n.valObjectMeta={data_array:{coerceFunction:function(e,t,n){f(e)?t.set(e):void 0!==n&&t.set(n)}},enumerated:{coerceFunction:function(e,t,n,r){r.coerceNumber&&(e=+e),-1===r.values.indexOf(e)?t.set(n):t.set(e)},validateFunction:function(e,t){t.coerceNumber&&(e=+e);for(var n=t.values,r=0;r<n.length;r++){var a=String(n[r]);if("/"===a.charAt(0)&&"/"===a.charAt(a.length-1)){var o=new RegExp(a.substr(1,a.length-2));if(o.test(e))return!0}else if(e===n[r])return!0}return!1}},boolean:{coerceFunction:function(e,t,n){!0===e||!1===e?t.set(e):t.set(n)}},number:{coerceFunction:function(e,t,n,a){!r(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(n):t.set(+e)}},integer:{coerceFunction:function(e,t,n,a){e%1||!r(e)||void 0!==a.min&&e<a.min||void 0!==a.max&&e>a.max?t.set(n):t.set(+e)}},string:{coerceFunction:function(e,t,n,r){if("string"!==typeof e){var a="number"===typeof e;!0!==r.strict&&a?t.set(String(e)):t.set(n)}else r.noBlank&&!e?t.set(n):t.set(e)}},color:{coerceFunction:function(e,t,n){a(e).isValid()?t.set(e):t.set(n)}},colorlist:{coerceFunction:function(e,t,n){function r(e){return a(e).isValid()}Array.isArray(e)&&e.length&&e.every(r)?t.set(e):t.set(n)}},colorscale:{coerceFunction:function(e,t,n){t.set(i.get(e,n))}},angle:{coerceFunction:function(e,t,n){"auto"===e?t.set("auto"):r(e)?t.set(c(+e,360)):t.set(n)}},subplotid:{coerceFunction:function(e,t,n,r){var a=r.regex||u(n);"string"===typeof e&&a.test(e)?t.set(e):t.set(n)},validateFunction:function(e,t){var n=t.dflt;return e===n||"string"===typeof e&&!!u(n).test(e)}},flaglist:{coerceFunction:function(e,t,n,r){if("string"===typeof e)if(-1===(r.extras||[]).indexOf(e)){var a=e.split("+"),o=0;while(o<a.length){var i=a[o];-1===r.flags.indexOf(i)||a.indexOf(i)<o?a.splice(o,1):o++}a.length?t.set(a.join("+")):t.set(n)}else t.set(e);else t.set(n)}},any:{coerceFunction:function(e,t,n){void 0===e?t.set(n):t.set(e)}},info_array:{coerceFunction:function(e,t,r,a){function o(e,t,r){var a,o={set:function(e){a=e}};return void 0===r&&(r=t.dflt),n.valObjectMeta[t.valType].coerceFunction(e,o,r,t),a}var i=2===a.dimensions||"1-2"===a.dimensions&&Array.isArray(e)&&Array.isArray(e[0]);if(Array.isArray(e)){var l,s,u,c,f,p,d=a.items,h=[],v=Array.isArray(d),m=v&&i&&Array.isArray(d[0]),y=i&&v&&!m,g=v&&!y?d.length:e.length;if(r=Array.isArray(r)?r:[],i)for(l=0;l<g;l++)for(h[l]=[],u=Array.isArray(e[l])?e[l]:[],f=y?d.length:v?d[l].length:u.length,s=0;s<f;s++)c=y?d[s]:v?d[l][s]:d,p=o(u[s],c,(r[l]||[])[s]),void 0!==p&&(h[l][s]=p);else for(l=0;l<g;l++)p=o(e[l],v?d[l]:d,r[l]),void 0!==p&&(h[l]=p);t.set(h)}else t.set(r)},validateFunction:function(e,t){if(!Array.isArray(e))return!1;var n=t.items,r=Array.isArray(n),a=2===t.dimensions;if(!t.freeLength&&e.length!==n.length)return!1;for(var o=0;o<e.length;o++)if(a){if(!Array.isArray(e[o])||!t.freeLength&&e[o].length!==n[o].length)return!1;for(var i=0;i<e[o].length;i++)if(!p(e[o][i],r?n[o][i]:n))return!1}else if(!p(e[o],r?n[o]:n))return!1;return!0}}},n.coerce=function(e,t,r,a,o){var i=s(r,a).get(),l=s(e,a),u=s(t,a),c=l.get(),d=t._template;if(void 0===c&&d&&(c=s(d,a).get(),d=0),void 0===o&&(o=i.dflt),i.arrayOk&&f(c))return u.set(c),c;var h=n.valObjectMeta[i.valType].coerceFunction;h(c,u,o,i);var v=u.get();return d&&v===o&&!p(c,i)&&(c=s(d,a).get(),h(c,u,o,i),v=u.get()),v},n.coerce2=function(e,t,r,a,o){var i=s(e,a),l=n.coerce(e,t,r,a,o),u=i.get();return void 0!==u&&null!==u&&l},n.coerceFont=function(e,t,n){var r={};return n=n||{},r.family=e(t+".family",n.family),r.size=e(t+".size",n.size),r.color=e(t+".color",n.color),r},n.coerceHoverinfo=function(e,t,r){var a,i=t._module.attributes,l=i.hoverinfo?i:o,s=l.hoverinfo;if(1===r._dataLength){var u="all"===s.dflt?s.flags.slice():s.dflt.split("+");u.splice(u.indexOf("name"),1),a=u.join("+")}return n.coerce(e,t,l,"hoverinfo",a)},n.coerceSelectionMarkerOpacity=function(e,t){if(e.marker){var n,r,a=e.marker.opacity;if(void 0!==a)f(a)||e.selected||e.unselected||(n=a,r=l*a),t("selected.marker.opacity",n),t("unselected.marker.opacity",r)}},n.validate=p},{"../components/colorscale/scales":630,"../constants/interactions":724,"../plots/attributes":795,"./array":732,"./mod":757,"./nested_property":758,"./regex":766,"fast-isnumeric":241,tinycolor2:548}],737:[function(e,t,n){"use strict";var r,a,o=e("d3-time-format").timeFormat,i=e("fast-isnumeric"),l=e("./loggers"),s=e("./mod").mod,u=e("../constants/numerical"),c=u.BADNUM,f=u.ONEDAY,p=u.ONEHOUR,d=u.ONEMIN,h=u.ONESEC,v=u.EPOCHJD,m=e("../registry"),y=e("d3-time-format").utcFormat,g=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,x=(new Date).getFullYear()-70;function _(e){return e&&m.componentsRegistry.calendars&&"string"===typeof e&&"gregorian"!==e}function w(e,t){return _(e)?t?m.getComponentMethod("calendars","CANONICAL_SUNDAY")[e]:m.getComponentMethod("calendars","CANONICAL_TICK")[e]:t?"2000-01-02":"2000-01-01"}function k(e,t){return String(e+Math.pow(10,t)).substr(1)}n.dateTick0=function(e,t){var r=w(e,!!t);if(t<2)return r;var a=n.dateTime2ms(r,e);return a+=f*(t-1),n.ms2DateTime(a,0,e)},n.dfltRange=function(e){return _(e)?m.getComponentMethod("calendars","DFLTRANGE")[e]:["2000-01-01","2001-01-01"]},n.isJSDate=function(e){return"object"===typeof e&&null!==e&&"function"===typeof e.getTime},n.dateTime2ms=function(e,t){if(n.isJSDate(e)){var o=e.getTimezoneOffset()*d,i=(e.getUTCMinutes()-e.getMinutes())*d+(e.getUTCSeconds()-e.getSeconds())*h+(e.getUTCMilliseconds()-e.getMilliseconds());if(i){var l=3*d;o=o-l/2+s(i-o+l/2,l)}return e=Number(e)-o,e>=r&&e<=a?e:c}if("string"!==typeof e&&"number"!==typeof e)return c;e=String(e);var u=_(t),y=e.charAt(0);!u||"G"!==y&&"g"!==y||(e=e.substr(1),t="");var w=u&&"chinese"===t.substr(0,7),k=e.match(w?b:g);if(!k)return c;var T=k[1],E=k[3]||"1",O=Number(k[5]||1),M=Number(k[7]||0),S=Number(k[9]||0),C=Number(k[11]||0);if(u){if(2===T.length)return c;var A;T=Number(T);try{var P=m.getComponentMethod("calendars","getCal")(t);if(w){var L="i"===E.charAt(E.length-1);E=parseInt(E,10),A=P.newDate(T,P.toMonthIndex(T,E,L),O)}else A=P.newDate(T,Number(E),O)}catch(j){return c}return A?(A.toJD()-v)*f+M*p+S*d+C*h:c}T=2===T.length?(Number(T)+2e3-x)%100+x:Number(T),E-=1;var D=new Date(Date.UTC(2e3,E,O,M,S));return D.setUTCFullYear(T),D.getUTCMonth()!==E||D.getUTCDate()!==O?c:D.getTime()+C*h},r=n.MIN_MS=n.dateTime2ms("-9999"),a=n.MAX_MS=n.dateTime2ms("9999-12-31 23:59:59.9999"),n.isDateTime=function(e,t){return n.dateTime2ms(e,t)!==c};var T=90*f,E=3*p,O=5*d;function M(e,t,n,r,a){if((t||n||r||a)&&(e+=" "+k(t,2)+":"+k(n,2),(r||a)&&(e+=":"+k(r,2),a))){var o=4;while(a%10===0)o-=1,a/=10;e+="."+k(a,o)}return e}n.ms2DateTime=function(e,t,n){if("number"!==typeof e||!(e>=r&&e<=a))return c;t||(t=0);var o,i,l,u,g,b,x=Math.floor(10*s(e+.05,1)),w=Math.round(e-x/10);if(_(n)){var k=Math.floor(w/f)+v,S=Math.floor(s(e,f));try{o=m.getComponentMethod("calendars","getCal")(n).fromJD(k).formatDate("yyyy-mm-dd")}catch(C){o=y("G%Y-%m-%d")(new Date(w))}if("-"===o.charAt(0))while(o.length<11)o="-0"+o.substr(1);else while(o.length<10)o="0"+o;i=t<T?Math.floor(S/p):0,l=t<T?Math.floor(S%p/d):0,u=t<E?Math.floor(S%d/h):0,g=t<O?S%h*10+x:0}else b=new Date(w),o=y("%Y-%m-%d")(b),i=t<T?b.getUTCHours():0,l=t<T?b.getUTCMinutes():0,u=t<E?b.getUTCSeconds():0,g=t<O?10*b.getUTCMilliseconds()+x:0;return M(o,i,l,u,g)},n.ms2DateTimeLocal=function(e){if(!(e>=r+f&&e<=a-f))return c;var t=Math.floor(10*s(e+.05,1)),n=new Date(Math.round(e-t/10)),i=o("%Y-%m-%d")(n),l=n.getHours(),u=n.getMinutes(),p=n.getSeconds(),d=10*n.getUTCMilliseconds()+t;return M(i,l,u,p,d)},n.cleanDate=function(e,t,r){if(e===c)return t;if(n.isJSDate(e)||"number"===typeof e&&isFinite(e)){if(_(r))return l.error("JS Dates and milliseconds are incompatible with world calendars",e),t;if(e=n.ms2DateTimeLocal(+e),!e&&void 0!==t)return t}else if(!n.isDateTime(e,r))return l.error("unrecognized date",e),t;return e};var S=/%\d?f/g;function C(e,t,n,r){e=e.replace(S,(function(e){var n=Math.min(+e.charAt(1)||6,6),r=(t/1e3%1+2).toFixed(n).substr(2).replace(/0+$/,"")||"0";return r}));var a=new Date(Math.floor(t+.05));if(_(r))try{e=m.getComponentMethod("calendars","worldCalFmt")(e,t,r)}catch(o){return"Invalid"}return n(e)(a)}var A=[59,59.9,59.99,59.999,59.9999];function P(e,t){var n=s(e+.05,f),r=k(Math.floor(n/p),2)+":"+k(s(Math.floor(n/d),60),2);if("M"!==t){i(t)||(t=0);var a=Math.min(s(e/h,60),A[t]),o=(100+a).toFixed(t).substr(1);t>0&&(o=o.replace(/0+$/,"").replace(/[\.]$/,"")),r+=":"+o}return r}n.formatDate=function(e,t,n,r,a,o){if(a=_(a)&&a,!t)if("y"===n)t=o.year;else if("m"===n)t=o.month;else{if("d"!==n)return P(e,n)+"\n"+C(o.dayMonthYear,e,r,a);t=o.dayMonth+"\n"+o.year}return C(t,e,r,a)};var L=3*f;n.incrementMonth=function(e,t,n){n=_(n)&&n;var r=s(e,f);if(e=Math.round(e-r),n)try{var a=Math.round(e/f)+v,o=m.getComponentMethod("calendars","getCal")(n),i=o.fromJD(a);return t%12?o.add(i,t,"m"):o.add(i,t/12,"y"),(i.toJD()-v)*f+r}catch(c){l.error("invalid ms "+e+" in calendar "+n)}var u=new Date(e+L);return u.setUTCMonth(u.getUTCMonth()+t)+r-L},n.findExactDates=function(e,t){for(var n,r,a=0,o=0,l=0,s=0,u=_(t)&&m.getComponentMethod("calendars","getCal")(t),c=0;c<e.length;c++)if(r=e[c],i(r)){if(!(r%f))if(u)try{n=u.fromJD(r/f+v),1===n.day()?1===n.month()?a++:o++:l++}catch(d){}else n=new Date(r),1===n.getUTCDate()?0===n.getUTCMonth()?a++:o++:l++}else s++;o+=a,l+=o;var p=e.length-s;return{exactYears:a/p,exactMonths:o/p,exactDays:l/p}}},{"../constants/numerical":725,"../registry":882,"./loggers":754,"./mod":757,"d3-time-format":166,"fast-isnumeric":241}],738:[function(e,t,n){"use strict";var r=e("d3"),a=e("./loggers");function o(e){var t;if("string"===typeof e){if(t=document.getElementById(e),null===t)throw new Error("No DOM element with id '"+e+"' exists on the page.");return t}if(null===e||void 0===e)throw new Error("DOM element provided is null or undefined");return e}function i(e){var t=r.select(e);return t.node()instanceof HTMLElement&&t.size()&&t.classed("js-plotly-plot")}function l(e){var t=e&&e.parentNode;t&&t.removeChild(e)}function s(e,t){u("global",e,t)}function u(e,t,n){var r="plotly.js-style-"+e,o=document.getElementById(r);o||(o=document.createElement("style"),o.setAttribute("id",r),o.appendChild(document.createTextNode("")),document.head.appendChild(o));var i=o.sheet;i.insertRule?i.insertRule(t+"{"+n+"}",0):i.addRule?i.addRule(t,n,0):a.warn("addStyleRule failed")}function c(e){var t="plotly.js-style-"+e,n=document.getElementById(t);n&&l(n)}t.exports={getGraphDiv:o,isPlotDiv:i,removeElement:l,addStyleRule:s,addRelatedStyleRule:u,deleteRelatedStyleRule:c}},{"./loggers":754,d3:169}],739:[function(e,t,n){"use strict";var r=e("events").EventEmitter,a={init:function(e){if(e._ev instanceof r)return e;var t=new r,n=new r;return e._ev=t,e._internalEv=n,e.on=t.on.bind(t),e.once=t.once.bind(t),e.removeListener=t.removeListener.bind(t),e.removeAllListeners=t.removeAllListeners.bind(t),e._internalOn=n.on.bind(n),e._internalOnce=n.once.bind(n),e._removeInternalListener=n.removeListener.bind(n),e._removeAllInternalListeners=n.removeAllListeners.bind(n),e.emit=function(r,a){"undefined"!==typeof jQuery&&jQuery(e).trigger(r,a),t.emit(r,a),n.emit(r,a)},e},triggerHandler:function(e,t,n){var r,a;"undefined"!==typeof jQuery&&(r=jQuery(e).triggerHandler(t,n));var o=e._ev;if(!o)return r;var i,l=o._events[t];if(!l)return r;function s(e){return e.listener?(o.removeListener(t,e.listener),e.fired?void 0:(e.fired=!0,e.listener.apply(o,[n]))):e.apply(o,[n])}for(l=Array.isArray(l)?l:[l],i=0;i<l.length-1;i++)s(l[i]);return a=s(l[i]),void 0!==r?r:a},purge:function(e){return delete e._ev,delete e.on,delete e.once,delete e.removeListener,delete e.removeAllListeners,delete e.emit,delete e._ev,delete e._internalEv,delete e._internalOn,delete e._internalOnce,delete e._removeInternalListener,delete e._removeAllInternalListeners,e}};t.exports=a},{events:110}],740:[function(e,t,n){"use strict";var r=e("./is_plain_object.js"),a=Array.isArray;function o(e,t){var n,r;for(n=0;n<e.length;n++){if(r=e[n],null!==r&&"object"===typeof r)return!1;void 0!==r&&(t[n]=r)}return!0}function i(e,t,n,l){var s,u,c,f,p,d,h,v=e[0],m=e.length;if(2===m&&a(v)&&a(e[1])&&0===v.length){if(h=o(e[1],v),h)return v;v.splice(0,v.length)}for(var y=1;y<m;y++)for(u in s=e[y],s)c=v[u],f=s[u],l&&a(f)?v[u]=f:t&&f&&(r(f)||(p=a(f)))?(p?(p=!1,d=c&&a(c)?c:[]):d=c&&r(c)?c:{},v[u]=i([d,f],t,n,l)):("undefined"!==typeof f||n)&&(v[u]=f);return v}n.extendFlat=function(){return i(arguments,!1,!1,!1)},n.extendDeep=function(){return i(arguments,!0,!1,!1)},n.extendDeepAll=function(){return i(arguments,!0,!0,!1)},n.extendDeepNoArrays=function(){return i(arguments,!0,!1,!0)}},{"./is_plain_object.js":751}],741:[function(e,t,n){"use strict";t.exports=function(e){for(var t={},n=[],r=0,a=0;a<e.length;a++){var o=e[a];1!==t[o]&&(t[o]=1,n[r++]=o)}return n}},{}],742:[function(e,t,n){"use strict";function r(e){return!0===e.visible}function a(e){var t=e[0].trace;return!0===t.visible&&0!==t._length}function o(e){return Array.isArray(e)&&Array.isArray(e[0])&&e[0][0]&&e[0][0].trace}t.exports=function(e){for(var t=o(e)?a:r,n=[],i=0;i<e.length;i++){var l=e[i];t(l)&&n.push(l)}return n}},{}],743:[function(e,t,n){"use strict";var r=e("d3"),a=e("country-regex"),o=e("@turf/area"),i=e("@turf/centroid"),l=e("@turf/bbox"),s=e("./identity"),u=e("./loggers"),c=e("./is_plain_object"),f=e("./nested_property"),p=e("./polygon"),d=Object.keys(a),h={"ISO-3":s,"USA-states":s,"country names":v};function v(e){for(var t=0;t<d.length;t++){var n=d[t],r=new RegExp(a[n]);if(r.test(e.trim().toLowerCase()))return n}return u.log("Unrecognized country name: "+e+"."),!1}function m(e,t,n){if(!t||"string"!==typeof t)return!1;var r,a,o,i=h[e](t);if(i){if("USA-states"===e)for(r=[],o=0;o<n.length;o++)a=n[o],a.properties&&a.properties.gu&&"USA"===a.properties.gu&&r.push(a);else r=n;for(o=0;o<r.length;o++)if(a=r[o],a.id===i)return a;u.log(["Location with id",i,"does not have a matching topojson feature at this resolution."].join(" "))}return!1}function y(e){var t,n,r,a,o=e.geometry,i=o.coordinates,l=e.id,s=[];function u(e){for(var t=0;t<e.length-1;t++)if(e[t][0]>0&&e[t+1][0]<0)return t;return null}switch(t="RUS"===l||"FJI"===l?function(e){var t;if(null===u(e))t=e;else for(t=new Array(e.length),a=0;a<e.length;a++)t[a]=[e[a][0]<0?e[a][0]+360:e[a][0],e[a][1]];s.push(p.tester(t))}:"ATA"===l?function(e){var t=u(e);if(null===t)return s.push(p.tester(e));var n=new Array(e.length+1),r=0;for(a=0;a<e.length;a++)a>t?n[r++]=[e[a][0]+360,e[a][1]]:a===t?(n[r++]=e[a],n[r++]=[e[a][0],-90]):n[r++]=e[a];var o=p.tester(n);o.pts.pop(),s.push(o)}:function(e){s.push(p.tester(e))},o.type){case"MultiPolygon":for(n=0;n<i.length;n++)for(r=0;r<i[n].length;r++)t(i[n][r]);break;case"Polygon":for(n=0;n<i.length;n++)t(i[n]);break}return s}function g(e){var t=e.geojson,n=window.PlotlyGeoAssets||{},r="string"===typeof t?n[t]:t;return c(r)?r:(u.error("Oops ... something went wrong when fetching "+t),!1)}function b(e){var t=e[0].trace,n=g(t);if(!n)return!1;var r,a={},o=[];for(r=0;r<t._length;r++){var i=e[r];(i.loc||0===i.loc)&&(a[i.loc]=i)}function l(e){var n=f(e,t.featureidkey||"id").get(),r=a[n];if(r){var i=e.geometry;if("Polygon"===i.type||"MultiPolygon"===i.type){var l={type:"Feature",id:n,geometry:i,properties:{}};l.properties.ct=x(l),r.fIn=e,r.fOut=l,o.push(l)}else u.log(["Location",r.loc,"does not have a valid GeoJSON geometry.","Traces with locationmode *geojson-id* only support","*Polygon* and *MultiPolygon* geometries."].join(" "))}delete a[n]}switch(n.type){case"FeatureCollection":var s=n.features;for(r=0;r<s.length;r++)l(s[r]);break;case"Feature":l(n);break;default:return u.warn(["Invalid GeoJSON type",(n.type||"none")+".","Traces with locationmode *geojson-id* only support","*FeatureCollection* and *Feature* types."].join(" ")),!1}for(var c in a)u.log(["Location *"+c+"*","does not have a matching feature with id-key","*"+t.featureidkey+"*."].join(" "));return o}function x(e){var t,n=e.geometry;if("MultiPolygon"===n.type)for(var r=n.coordinates,a=0,l=0;l<r.length;l++){var s={type:"Polygon",coordinates:r[l]},u=o.default(s);u>a&&(a=u,t=s)}else t=n;return i.default(t).geometry.coordinates}function _(e){var t=window.PlotlyGeoAssets||{},n=[];function a(e){return new Promise((function(n,a){r.json(e,(function(r,o){if(r){delete t[e];var i=404===r.status?'GeoJSON at URL "'+e+'" does not exist.':"Unexpected error while fetching from "+e;return a(new Error(i))}return t[e]=o,n(o)}))}))}function o(e){return new Promise((function(n,r){var a=0,o=setInterval((function(){return t[e]&&"pending"!==t[e]?(clearInterval(o),n(t[e])):a>100?(clearInterval(o),r("Unexpected error while fetching from "+e)):void a++}),50)}))}for(var i=0;i<e.length;i++){var l=e[i][0].trace,s=l.geojson;"string"===typeof s&&(t[s]?"pending"===t[s]&&n.push(o(s)):(t[s]="pending",n.push(a(s))))}return n}function w(e){return l.default(e)}t.exports={locationToFeature:m,feature2polygons:y,getTraceGeojson:g,extractTraceFeature:b,fetchTraceGeoData:_,computeBbox:w}},{"./identity":748,"./is_plain_object":751,"./loggers":754,"./nested_property":758,"./polygon":762,"@turf/area":59,"@turf/bbox":60,"@turf/centroid":61,"country-regex":139,d3:169}],744:[function(e,t,n){"use strict";var r=e("../constants/numerical").BADNUM;n.calcTraceToLineCoords=function(e){for(var t=e[0].trace,n=t.connectgaps,a=[],o=[],i=0;i<e.length;i++){var l=e[i],s=l.lonlat;s[0]!==r?o.push(s):!n&&o.length>0&&(a.push(o),o=[])}return o.length>0&&a.push(o),a},n.makeLine=function(e){return 1===e.length?{type:"LineString",coordinates:e[0]}:{type:"MultiLineString",coordinates:e}},n.makePolygon=function(e){if(1===e.length)return{type:"Polygon",coordinates:e};for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=[e[n]];return{type:"MultiPolygon",coordinates:t}},n.makeBlank=function(){return{type:"Point",coordinates:[]}}},{"../constants/numerical":725}],745:[function(e,t,n){"use strict";var r,a,o,i=e("./mod").mod;function l(e,t,n,r,a,o,i,l){var s=n-e,u=a-e,c=i-a,f=r-t,p=o-t,d=l-o,h=s*d-c*f;if(0===h)return null;var v=(u*d-c*p)/h,m=(u*f-s*p)/h;return m<0||m>1||v<0||v>1?null:{x:e+s*v,y:t+f*v}}function s(e,t,n,r,a){var o=r*e+a*t;if(o<0)return r*r+a*a;if(o>n){var i=r-e,l=a-t;return i*i+l*l}var s=r*t-a*e;return s*s/n}n.segmentsIntersect=l,n.segmentDistance=function(e,t,n,r,a,o,i,u){if(l(e,t,n,r,a,o,i,u))return 0;var c=n-e,f=r-t,p=i-a,d=u-o,h=c*c+f*f,v=p*p+d*d,m=Math.min(s(c,f,h,a-e,o-t),s(c,f,h,i-e,u-t),s(p,d,v,e-a,t-o),s(p,d,v,n-a,r-o));return Math.sqrt(m)},n.getTextLocation=function(e,t,n,l){if(e===a&&l===o||(r={},a=e,o=l),r[n])return r[n];var s=e.getPointAtLength(i(n-l/2,t)),u=e.getPointAtLength(i(n+l/2,t)),c=Math.atan((u.y-s.y)/(u.x-s.x)),f=e.getPointAtLength(i(n,t)),p=(4*f.x+s.x+u.x)/6,d=(4*f.y+s.y+u.y)/6,h={x:p,y:d,theta:c};return r[n]=h,h},n.clearLocationCache=function(){a=null},n.getVisibleSegment=function(e,t,n){var r,a,o=t.left,i=t.right,l=t.top,s=t.bottom,u=0,c=e.getTotalLength(),f=c;function p(t){var n=e.getPointAtLength(t);0===t?r=n:t===c&&(a=n);var u=n.x<o?o-n.x:n.x>i?n.x-i:0,f=n.y<l?l-n.y:n.y>s?n.y-s:0;return Math.sqrt(u*u+f*f)}var d=p(u);while(d){if(u+=d+n,u>f)return;d=p(u)}d=p(f);while(d){if(f-=d+n,u>f)return;d=p(f)}return{min:u,max:f,len:f-u,total:c,isClosed:0===u&&f===c&&Math.abs(r.x-a.x)<.1&&Math.abs(r.y-a.y)<.1}},n.findPointOnPath=function(e,t,n,r){r=r||{};var a,o,i,l=r.pathLength||e.getTotalLength(),s=r.tolerance||.001,u=r.iterationLimit||30,c=e.getPointAtLength(0)[n]>e.getPointAtLength(l)[n]?-1:1,f=0,p=0,d=l;while(f<u){if(a=(p+d)/2,o=e.getPointAtLength(a),i=o[n]-t,Math.abs(i)<s)return o;c*i>0?d=a:p=a,f++}return o}},{"./mod":757}],746:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("tinycolor2"),o=e("color-normalize"),i=e("../components/colorscale"),l=e("../components/color/attributes").defaultLine,s=e("./array").isArrayOrTypedArray,u=o(l),c=1;function f(e,t){var n=e;return n[3]*=t,n}function p(e){if(r(e))return u;var t=o(e);return t.length?t:u}function d(e){return r(e)?e:c}function h(e,t,n){var r,a,l,h,v,m=e.color,y=s(m),g=s(t),b=i.extractOpts(e),x=[];if(r=void 0!==b.colorscale?i.makeColorScaleFuncFromTrace(e):p,a=y?function(e,t){return void 0===e[t]?u:o(r(e[t]))}:p,l=g?function(e,t){return void 0===e[t]?c:d(e[t])}:d,y||g)for(var _=0;_<n;_++)h=a(m,_),v=l(t,_),x[_]=f(h,v);else x=f(o(m),t);return x}function v(e){var t=i.extractOpts(e),n=t.colorscale;return t.reversescale&&(n=i.flipScale(t.colorscale)),n.map((function(e){var t=e[0],n=a(e[1]),r=n.toRgb();return{index:t,rgb:[r.r,r.g,r.b,r.a]}}))}t.exports={formatColor:h,parseColorScale:v}},{"../components/color/attributes":614,"../components/colorscale":627,"./array":732,"color-normalize":125,"fast-isnumeric":241,tinycolor2:548}],747:[function(e,t,n){"use strict";var r=e("./identity");function a(e){return[e]}t.exports={keyFun:function(e){return e.key},repeat:a,descend:r,wrap:a,unwrap:function(e){return e[0]}}},{"./identity":748}],748:[function(e,t,n){"use strict";t.exports=function(e){return e}},{}],749:[function(e,t,n){"use strict";t.exports=function(e,t){if(!t)return e;var n=1/Math.abs(t),r=n>1?(n*e+n*t)/n:e+t,a=String(r).length;if(a>16){var o=String(t).length,i=String(e).length;if(a>=i+o){var l=parseFloat(r).toPrecision(12);-1===l.indexOf("e+")&&(r=+l)}}return r}},{}],750:[function(e,t,n){"use strict";var r=e("d3"),a=e("d3-time-format").utcFormat,o=e("fast-isnumeric"),i=e("../constants/numerical"),l=i.FP_SAFE,s=i.BADNUM,u=t.exports={};u.nestedProperty=e("./nested_property"),u.keyedContainer=e("./keyed_container"),u.relativeAttr=e("./relative_attr"),u.isPlainObject=e("./is_plain_object"),u.toLogRange=e("./to_log_range"),u.relinkPrivateKeys=e("./relink_private");var c=e("./array");u.isTypedArray=c.isTypedArray,u.isArrayOrTypedArray=c.isArrayOrTypedArray,u.isArray1D=c.isArray1D,u.ensureArray=c.ensureArray,u.concat=c.concat,u.maxRowLength=c.maxRowLength,u.minRowLength=c.minRowLength;var f=e("./mod");u.mod=f.mod,u.modHalf=f.modHalf;var p=e("./coerce");u.valObjectMeta=p.valObjectMeta,u.coerce=p.coerce,u.coerce2=p.coerce2,u.coerceFont=p.coerceFont,u.coerceHoverinfo=p.coerceHoverinfo,u.coerceSelectionMarkerOpacity=p.coerceSelectionMarkerOpacity,u.validate=p.validate;var d=e("./dates");u.dateTime2ms=d.dateTime2ms,u.isDateTime=d.isDateTime,u.ms2DateTime=d.ms2DateTime,u.ms2DateTimeLocal=d.ms2DateTimeLocal,u.cleanDate=d.cleanDate,u.isJSDate=d.isJSDate,u.formatDate=d.formatDate,u.incrementMonth=d.incrementMonth,u.dateTick0=d.dateTick0,u.dfltRange=d.dfltRange,u.findExactDates=d.findExactDates,u.MIN_MS=d.MIN_MS,u.MAX_MS=d.MAX_MS;var h=e("./search");u.findBin=h.findBin,u.sorterAsc=h.sorterAsc,u.sorterDes=h.sorterDes,u.distinctVals=h.distinctVals,u.roundUp=h.roundUp,u.sort=h.sort,u.findIndexOfMin=h.findIndexOfMin;var v=e("./stats");u.aggNums=v.aggNums,u.len=v.len,u.mean=v.mean,u.median=v.median,u.midRange=v.midRange,u.variance=v.variance,u.stdev=v.stdev,u.interp=v.interp;var m=e("./matrix");u.init2dArray=m.init2dArray,u.transposeRagged=m.transposeRagged,u.dot=m.dot,u.translationMatrix=m.translationMatrix,u.rotationMatrix=m.rotationMatrix,u.rotationXYMatrix=m.rotationXYMatrix,u.apply2DTransform=m.apply2DTransform,u.apply2DTransform2=m.apply2DTransform2;var y=e("./angles");u.deg2rad=y.deg2rad,u.rad2deg=y.rad2deg,u.angleDelta=y.angleDelta,u.angleDist=y.angleDist,u.isFullCircle=y.isFullCircle,u.isAngleInsideSector=y.isAngleInsideSector,u.isPtInsideSector=y.isPtInsideSector,u.pathArc=y.pathArc,u.pathSector=y.pathSector,u.pathAnnulus=y.pathAnnulus;var g=e("./anchor_utils");u.isLeftAnchor=g.isLeftAnchor,u.isCenterAnchor=g.isCenterAnchor,u.isRightAnchor=g.isRightAnchor,u.isTopAnchor=g.isTopAnchor,u.isMiddleAnchor=g.isMiddleAnchor,u.isBottomAnchor=g.isBottomAnchor;var b=e("./geometry2d");u.segmentsIntersect=b.segmentsIntersect,u.segmentDistance=b.segmentDistance,u.getTextLocation=b.getTextLocation,u.clearLocationCache=b.clearLocationCache,u.getVisibleSegment=b.getVisibleSegment,u.findPointOnPath=b.findPointOnPath;var x=e("./extend");u.extendFlat=x.extendFlat,u.extendDeep=x.extendDeep,u.extendDeepAll=x.extendDeepAll,u.extendDeepNoArrays=x.extendDeepNoArrays;var _=e("./loggers");u.log=_.log,u.warn=_.warn,u.error=_.error;var w=e("./regex");u.counterRegex=w.counter;var k=e("./throttle");u.throttle=k.throttle,u.throttleDone=k.done,u.clearThrottle=k.clear;var T=e("./dom");function E(e){var t={};for(var n in e)for(var r=e[n],a=0;a<r.length;a++)t[r[a]]=+n;return t}u.getGraphDiv=T.getGraphDiv,u.isPlotDiv=T.isPlotDiv,u.removeElement=T.removeElement,u.addStyleRule=T.addStyleRule,u.addRelatedStyleRule=T.addRelatedStyleRule,u.deleteRelatedStyleRule=T.deleteRelatedStyleRule,u.clearResponsive=e("./clear_responsive"),u.makeTraceGroups=e("./make_trace_groups"),u._=e("./localize"),u.notifier=e("./notifier"),u.filterUnique=e("./filter_unique"),u.filterVisible=e("./filter_visible"),u.pushUnique=e("./push_unique"),u.increment=e("./increment"),u.cleanNumber=e("./clean_number"),u.ensureNumber=function(e){return o(e)?(e=Number(e),e<-l||e>l?s:o(e)?Number(e):s):s},u.isIndex=function(e,t){return!(void 0!==t&&e>=t)&&(o(e)&&e>=0&&e%1===0)},u.noop=e("./noop"),u.identity=e("./identity"),u.repeat=function(e,t){for(var n=new Array(t),r=0;r<t;r++)n[r]=e;return n},u.swapAttrs=function(e,t,n,r){n||(n="x"),r||(r="y");for(var a=0;a<t.length;a++){var o=t[a],i=u.nestedProperty(e,o.replace("?",n)),l=u.nestedProperty(e,o.replace("?",r)),s=i.get();i.set(l.get()),l.set(s)}},u.raiseToTop=function(e){e.parentNode.appendChild(e)},u.cancelTransition=function(e){return e.transition().duration(0)},u.constrain=function(e,t,n){return t>n?Math.max(n,Math.min(t,e)):Math.max(t,Math.min(n,e))},u.bBoxIntersect=function(e,t,n){return n=n||0,e.left<=t.right+n&&t.left<=e.right+n&&e.top<=t.bottom+n&&t.top<=e.bottom+n},u.simpleMap=function(e,t,n,r,a){for(var o=e.length,i=new Array(o),l=0;l<o;l++)i[l]=t(e[l],n,r,a);return i},u.randstr=function e(t,n,r,a){if(r||(r=16),void 0===n&&(n=24),n<=0)return"0";var o,i,l,s=Math.log(Math.pow(2,n))/Math.log(r),c="";for(o=2;s===1/0;o*=2)s=Math.log(Math.pow(2,n/o))/Math.log(r)*o;var f=s-Math.floor(s);for(o=0;o<Math.floor(s);o++)l=Math.floor(Math.random()*r).toString(r),c=l+c;f&&(i=Math.pow(r,f),l=Math.floor(Math.random()*i).toString(r),c=l+c);var p=parseInt(c,r);return t&&t[c]||p!==1/0&&p>=Math.pow(2,n)?a>10?(u.warn("randstr failed uniqueness"),c):e(t,n,r,(a||0)+1):c},u.OptionControl=function(e,t){e||(e={}),t||(t="opt");var n={optionList:[],_newoption:function(r){r[t]=e,n[r.name]=r,n.optionList.push(r)}};return n["_"+t]=e,n},u.smooth=function(e,t){if(t=Math.round(t)||0,t<2)return e;var n,r,a,o,i=e.length,l=2*i,s=2*t-1,u=new Array(s),c=new Array(i);for(n=0;n<s;n++)u[n]=(1-Math.cos(Math.PI*(n+1)/t))/(2*t);for(n=0;n<i;n++){for(o=0,r=0;r<s;r++)a=n+r+1-t,a<-i?a-=l*Math.round(a/l):a>=l&&(a-=l*Math.floor(a/l)),a<0?a=-1-a:a>=i&&(a=l-1-a),o+=e[a]*u[r];c[n]=o}return c},u.syncOrAsync=function(e,t,n){var r,a;function o(){return u.syncOrAsync(e,t,n)}while(e.length)if(a=e.splice(0,1)[0],r=a(t),r&&r.then)return r.then(o).then(void 0,u.promiseError);return n&&n(t)},u.stripTrailingSlash=function(e){return"/"===e.substr(-1)?e.substr(0,e.length-1):e},u.noneOrAll=function(e,t,n){if(e){var r,a,o=!1,i=!0;for(r=0;r<n.length;r++)a=e[n[r]],void 0!==a&&null!==a?o=!0:i=!1;if(o&&!i)for(r=0;r<n.length;r++)e[n[r]]=t[n[r]]}},u.mergeArray=function(e,t,n,r){var a="function"===typeof r;if(u.isArrayOrTypedArray(e))for(var o=Math.min(e.length,t.length),i=0;i<o;i++){var l=e[i];t[i][n]=a?r(l):l}},u.mergeArrayCastPositive=function(e,t,n){return u.mergeArray(e,t,n,(function(e){var t=+e;return isFinite(t)&&t>0?t:0}))},u.fillArray=function(e,t,n,r){if(r=r||u.identity,u.isArrayOrTypedArray(e))for(var a=0;a<t.length;a++)t[a][n]=r(e[a])},u.castOption=function(e,t,n,r){r=r||u.identity;var a=u.nestedProperty(e,n).get();return u.isArrayOrTypedArray(a)?Array.isArray(t)&&u.isArrayOrTypedArray(a[t[0]])?r(a[t[0]][t[1]]):r(a[t]):a},u.extractOption=function(e,t,n,r){if(n in e)return e[n];var a=u.nestedProperty(t,r).get();return Array.isArray(a)?void 0:a},u.tagSelected=function(e,t,n){var r,a=t.selectedpoints,o=t._indexToPoints;function i(t){return void 0!==t&&t<e.length}o&&(r=E(o));for(var l=0;l<a.length;l++){var s=a[l];if(u.isIndex(s)||u.isArrayOrTypedArray(s)&&u.isIndex(s[0])&&u.isIndex(s[1])){var c=r?r[s]:s,f=n?n[c]:c;i(f)&&(e[f].selected=1)}}},u.selIndices2selPoints=function(e){var t=e.selectedpoints,n=e._indexToPoints;if(n){for(var r=E(n),a=[],o=0;o<t.length;o++){var i=t[o];if(u.isIndex(i)){var l=r[i];u.isIndex(l)&&a.push(l)}}return a}return t},u.getTargetArray=function(e,t){var n=t.target;if("string"===typeof n&&n){var r=u.nestedProperty(e,n).get();return!!Array.isArray(r)&&r}return!!Array.isArray(n)&&n},u.minExtend=function(e,t){var n={};"object"!==typeof t&&(t={});var r,a,o,i=3,l=Object.keys(e);for(r=0;r<l.length;r++)a=l[r],o=e[a],"_"!==a.charAt(0)&&"function"!==typeof o&&("module"===a?n[a]=o:Array.isArray(o)?n[a]="colorscale"===a?o.slice():o.slice(0,i):u.isTypedArray(o)?n[a]=o.subarray(0,i):n[a]=o&&"object"===typeof o?u.minExtend(e[a],t[a]):o);for(l=Object.keys(t),r=0;r<l.length;r++)a=l[r],o=t[a],"object"===typeof o&&a in n&&"object"===typeof n[a]||(n[a]=o);return n},u.titleCase=function(e){return e.charAt(0).toUpperCase()+e.substr(1)},u.containsAny=function(e,t){for(var n=0;n<t.length;n++)if(-1!==e.indexOf(t[n]))return!0;return!1},u.isIE=function(){return"undefined"!==typeof window.navigator.msSaveBlob};var O=/MSIE [1-9]\./;u.isIE9orBelow=function(){return u.isIE()&&O.test(window.navigator.userAgent)};var M=/Version\/[\d\.]+.*Safari/;u.isSafari=function(){return M.test(window.navigator.userAgent)};var S=/iPad|iPhone|iPod/;u.isIOS=function(){return S.test(window.navigator.userAgent)},u.isD3Selection=function(e){return e&&"function"===typeof e.classed},u.ensureSingle=function(e,t,n,r){var a=e.select(t+(n?"."+n:""));if(a.size())return a;var o=e.append(t);return n&&o.classed(n,!0),r&&o.call(r),o},u.ensureSingleById=function(e,t,n,r){var a=e.select(t+"#"+n);if(a.size())return a;var o=e.append(t).attr("id",n);return r&&o.call(r),o},u.objectFromPath=function(e,t){for(var n,r=e.split("."),a=n={},o=0;o<r.length;o++){var i=r[o],l=null,s=r[o].match(/(.*)\[([0-9]+)\]/);s?(i=s[1],l=s[2],n=n[i]=[],o===r.length-1?n[l]=t:n[l]={},n=n[l]):(o===r.length-1?n[i]=t:n[i]={},n=n[i])}return a};var C=/^([^\[\.]+)\.(.+)?/,A=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;u.expandObjectPaths=function(e){var t,n,r,a,o,i,l;if("object"===typeof e&&!Array.isArray(e))for(n in e)e.hasOwnProperty(n)&&((t=n.match(C))?(a=e[n],r=t[1],delete e[n],e[r]=u.extendDeepNoArrays(e[r]||{},u.objectFromPath(n,u.expandObjectPaths(a))[r])):(t=n.match(A))?(a=e[n],r=t[1],o=parseInt(t[2]),delete e[n],e[r]=e[r]||[],"."===t[3]?(l=t[4],i=e[r][o]=e[r][o]||{},u.extendDeepNoArrays(i,u.objectFromPath(l,u.expandObjectPaths(a)))):e[r][o]=u.expandObjectPaths(a)):e[n]=u.expandObjectPaths(e[n]));return e},u.numSeparate=function(e,t,n){if(n||(n=!1),"string"!==typeof t||0===t.length)throw new Error("Separator string required for formatting!");"number"===typeof e&&(e=String(e));var r=/(\d+)(\d{3})/,a=t.charAt(0),o=t.charAt(1),i=e.split("."),l=i[0],s=i.length>1?a+i[1]:"";if(o&&(i.length>1||l.length>4||n))while(r.test(l))l=l.replace(r,"$1"+o+"$2");return l+s},u.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var P=/^\w*$/;u.templateString=function(e,t){var n={};return e.replace(u.TEMPLATE_STRING_REGEX,(function(e,r){var a;return P.test(r)?a=t[r]:(n[r]=n[r]||u.nestedProperty(t,r).get,a=n[r]()),u.isValidTextValue(a)?a:""}))};var L={max:10,count:0,name:"hovertemplate"};u.hovertemplateString=function(){return I.apply(L,arguments)};var D={max:10,count:0,name:"texttemplate"};u.texttemplateString=function(){return I.apply(D,arguments)};var j=/^[:|\|]/;function I(e,t,n){var o=this,i=arguments;t||(t={});var l={};return e.replace(u.TEMPLATE_STRING_REGEX,(function(e,s,c){var f,p,d,h;for(d=3;d<i.length;d++)if(f=i[d],f){if(f.hasOwnProperty(s)){p=f[s];break}if(P.test(s)||(p=l[s]||u.nestedProperty(f,s).get(),p&&(l[s]=p)),void 0!==p)break}if(void 0===p&&o)return o.count<o.max&&(u.warn("Variable '"+s+"' in "+o.name+" could not be found!"),p=e),o.count===o.max&&u.warn("Too many "+o.name+" warnings - additional warnings will be suppressed"),o.count++,e;if(c){if(":"===c[0]&&(h=n?n.numberFormat:r.format,p=h(c.replace(j,""))(p)),"|"===c[0]){h=n?n.timeFormat:a;var v=u.dateTime2ms(p);p=u.formatDate(v,c.replace(j,""),!1,h)}}else t.hasOwnProperty(s+"Label")&&(p=t[s+"Label"]);return p}))}var R=48,z=57;u.subplotSort=function(e,t){for(var n=Math.min(e.length,t.length)+1,r=0,a=0,o=0;o<n;o++){var i=e.charCodeAt(o)||0,l=t.charCodeAt(o)||0,s=i>=R&&i<=z,u=l>=R&&l<=z;if(s&&(r=10*r+i-R),u&&(a=10*a+l-R),!s||!u){if(r!==a)return r-a;if(i!==l)return i-l}}return a-r};var N=2e9;u.seedPseudoRandom=function(){N=2e9},u.pseudoRandom=function(){var e=N;return N=(69069*N+1)%4294967296,Math.abs(N-e)<429496729?u.pseudoRandom():N/4294967296},u.fillText=function(e,t,n){var r=Array.isArray(n)?function(e){n.push(e)}:function(e){n.text=e},a=u.extractOption(e,t,"htx","hovertext");if(u.isValidTextValue(a))return r(a);var o=u.extractOption(e,t,"tx","text");return u.isValidTextValue(o)?r(o):void 0},u.isValidTextValue=function(e){return e||0===e},u.formatPercent=function(e,t){t=t||0;for(var n=(Math.round(100*e*Math.pow(10,t))*Math.pow(.1,t)).toFixed(t)+"%",r=0;r<t;r++)-1!==n.indexOf(".")&&(n=n.replace("0%","%"),n=n.replace(".%","%"));return n},u.isHidden=function(e){var t=window.getComputedStyle(e).display;return!t||"none"===t},u.getTextTransform=function(e){var t=e.noCenter,n=e.textX,r=e.textY,a=e.targetX,o=e.targetY,i=e.anchorX||0,l=e.anchorY||0,s=e.rotate,u=e.scale;return u?u>1&&(u=1):u=0,"translate("+(a-u*(n+i))+","+(o-u*(r+l))+")"+(u<1?"scale("+u+")":"")+(s?"rotate("+s+(t?"":" "+n+" "+r)+")":"")},u.ensureUniformFontSize=function(e,t){var n=u.extendFlat({},t);return n.size=Math.max(t.size,e._fullLayout.uniformtext.minsize||0),n},u.join2=function(e,t,n){var r=e.length;return r>1?e.slice(0,-1).join(t)+n+e[r-1]:e.join(t)}},{"../constants/numerical":725,"./anchor_utils":730,"./angles":731,"./array":732,"./clean_number":733,"./clear_responsive":735,"./coerce":736,"./dates":737,"./dom":738,"./extend":740,"./filter_unique":741,"./filter_visible":742,"./geometry2d":745,"./identity":748,"./increment":749,"./is_plain_object":751,"./keyed_container":752,"./localize":753,"./loggers":754,"./make_trace_groups":755,"./matrix":756,"./mod":757,"./nested_property":758,"./noop":759,"./notifier":760,"./push_unique":764,"./regex":766,"./relative_attr":767,"./relink_private":768,"./search":769,"./stats":772,"./throttle":775,"./to_log_range":776,d3:169,"d3-time-format":166,"fast-isnumeric":241}],751:[function(e,t,n){"use strict";t.exports=function(e){return window&&window.process&&window.process.versions?"[object Object]"===Object.prototype.toString.call(e):"[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.prototype}},{}],752:[function(e,t,n){"use strict";var r=e("./nested_property"),a=/^\w*$/,o=0,i=1,l=2,s=3,u=4;t.exports=function(e,t,n,c){var f,p,d;n=n||"name",c=c||"value";var h={};t&&t.length?(d=r(e,t),p=d.get()):p=e,t=t||"";var v={};if(p)for(f=0;f<p.length;f++)v[p[f][n]]=f;var m=a.test(c),y={set:function(e,t){var a=null===t?u:o;if(!p){if(!d||a===u)return;p=[],d.set(p)}var i=v[e];if(void 0===i){if(a===u)return;a|=s,i=p.length,v[e]=i}else t!==(m?p[i][c]:r(p[i],c).get())&&(a|=l);var f=p[i]=p[i]||{};return f[n]=e,m?f[c]=t:r(f,c).set(t),null!==t&&(a&=~u),h[i]=h[i]|a,y},get:function(e){if(p){var t=v[e];return void 0===t?void 0:m?p[t][c]:r(p[t],c).get()}},rename:function(e,t){var r=v[e];return void 0===r||(h[r]=h[r]|i,v[t]=r,delete v[e],p[r][n]=t),y},remove:function(e){var t=v[e];if(void 0===t)return y;var a=p[t];if(Object.keys(a).length>2)return h[t]=h[t]|l,y.set(e,null);if(m){for(f=t;f<p.length;f++)h[f]=h[f]|s;for(f=t;f<p.length;f++)v[p[f][n]]--;p.splice(t,1),delete v[e]}else r(a,c).set(null),h[t]=h[t]|l|u;return y},constructUpdate:function(){for(var e,a,o={},s=Object.keys(h),f=0;f<s.length;f++)a=s[f],e=t+"["+a+"]",p[a]?(h[a]&i&&(o[e+"."+n]=p[a][n]),h[a]&l&&(o[e+"."+c]=m?h[a]&u?null:p[a][c]:h[a]&u?null:r(p[a],c).get())):o[e]=null;return o}};return y}},{"./nested_property":758}],753:[function(e,t,n){"use strict";var r=e("../registry");t.exports=function(e,t){for(var n=e._context.locale,a=0;a<2;a++){for(var o=e._context.locales,i=0;i<2;i++){var l=(o[n]||{}).dictionary;if(l){var s=l[t];if(s)return s}o=r.localeRegistry}var u=n.split("-")[0];if(u===n)break;n=u}return t}},{"../registry":882}],754:[function(e,t,n){"use strict";var r=e("../plot_api/plot_config").dfltConfig,a=e("./notifier"),o=t.exports={};function i(e,t){if(e&&e.apply)try{return void e.apply(console,t)}catch(r){}for(var n=0;n<t.length;n++)try{e(t[n])}catch(r){console.log(t[n])}}o.log=function(){var e;if(r.logging>1){var t=["LOG:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);i(console.trace||console.log,t)}if(r.notifyOnLogging>1){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);a(n.join("<br>"),"long")}},o.warn=function(){var e;if(r.logging>0){var t=["WARN:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);i(console.trace||console.log,t)}if(r.notifyOnLogging>0){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);a(n.join("<br>"),"stick")}},o.error=function(){var e;if(r.logging>0){var t=["ERROR:"];for(e=0;e<arguments.length;e++)t.push(arguments[e]);i(console.error,t)}if(r.notifyOnLogging>0){var n=[];for(e=0;e<arguments.length;e++)n.push(arguments[e]);a(n.join("<br>"),"stick")}}},{"../plot_api/plot_config":786,"./notifier":760}],755:[function(e,t,n){"use strict";var r=e("d3");t.exports=function(e,t,n){var a=e.selectAll("g."+n.replace(/\s/g,".")).data(t,(function(e){return e[0].trace.uid}));a.exit().remove(),a.enter().append("g").attr("class",n),a.order();var o=e.classed("rangeplot")?"nodeRangePlot3":"node3";return a.each((function(e){e[0][o]=r.select(this)})),a}},{d3:169}],756:[function(e,t,n){"use strict";n.init2dArray=function(e,t){for(var n=new Array(e),r=0;r<e;r++)n[r]=new Array(t);return n},n.transposeRagged=function(e){var t,n,r=0,a=e.length;for(t=0;t<a;t++)r=Math.max(r,e[t].length);var o=new Array(r);for(t=0;t<r;t++)for(o[t]=new Array(a),n=0;n<a;n++)o[t][n]=e[n][t];return o},n.dot=function(e,t){if(!e.length||!t.length||e.length!==t.length)return null;var r,a,o=e.length;if(e[0].length)for(r=new Array(o),a=0;a<o;a++)r[a]=n.dot(e[a],t);else if(t[0].length){var i=n.transposeRagged(t);for(r=new Array(i.length),a=0;a<i.length;a++)r[a]=n.dot(e,i[a])}else for(r=0,a=0;a<o;a++)r+=e[a]*t[a];return r},n.translationMatrix=function(e,t){return[[1,0,e],[0,1,t],[0,0,1]]},n.rotationMatrix=function(e){var t=e*Math.PI/180;return[[Math.cos(t),-Math.sin(t),0],[Math.sin(t),Math.cos(t),0],[0,0,1]]},n.rotationXYMatrix=function(e,t,r){return n.dot(n.dot(n.translationMatrix(t,r),n.rotationMatrix(e)),n.translationMatrix(-t,-r))},n.apply2DTransform=function(e){return function(){var t=arguments;3===t.length&&(t=t[0]);var r=1===arguments.length?t[0]:[t[0],t[1]];return n.dot(e,[r[0],r[1],1]).slice(0,2)}},n.apply2DTransform2=function(e){var t=n.apply2DTransform(e);return function(e){return t(e.slice(0,2)).concat(t(e.slice(2,4)))}}},{}],757:[function(e,t,n){"use strict";function r(e,t){var n=e%t;return n<0?n+t:n}function a(e,t){return Math.abs(e)>t/2?e-Math.round(e/t)*t:e}t.exports={mod:r,modHalf:a}},{}],758:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("./array").isArrayOrTypedArray;function o(e,t){return function(){var n,r,i,l,s,u=e;for(l=0;l<t.length-1;l++){if(n=t[l],-1===n){for(r=!0,i=[],s=0;s<u.length;s++)i[s]=o(u[s],t.slice(l+1))(),i[s]!==i[0]&&(r=!1);return r?i[0]:i}if("number"===typeof n&&!a(u))return;if(u=u[n],"object"!==typeof u||null===u)return}if("object"===typeof u&&null!==u&&(i=u[t[l]],null!==i))return i}}t.exports=function(e,t){if(r(t))t=String(t);else if("string"!==typeof t||"[-1]"===t.substr(t.length-4))throw"bad property string";var n,a,i,l=0,u=t.split(".");while(l<u.length){if(n=String(u[l]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/),n){if(n[1])u[l]=n[1];else{if(0!==l)throw"bad property string";u.splice(0,1)}for(a=n[2].substr(1,n[2].length-2).split("]["),i=0;i<a.length;i++)l++,u.splice(l,0,Number(a[i]))}l++}return"object"!==typeof e?p(e,t,u):{set:s(e,u,t),get:o(e,u),astr:t,parts:u,obj:e}};var i=/(^|\.)args\[/;function l(e,t){return void 0===e||null===e&&!t.match(i)}function s(e,t,n){return function(r){var o,i,s=e,p="",d=[[e,p]],h=l(r,n);for(i=0;i<t.length-1;i++){if(o=t[i],"number"===typeof o&&!a(s))throw"array index but container is not an array";if(-1===o){if(h=!c(s,t.slice(i+1),r,n),h)break;return}if(!f(s,o,t[i+1],h))break;if(s=s[o],"object"!==typeof s||null===s)throw"container is not an object";p=u(p,o),d.push([s,p])}if(h){if(i===t.length-1&&(delete s[t[i]],Array.isArray(s)&&+t[i]===s.length-1))while(s.length&&void 0===s[s.length-1])s.pop()}else s[t[i]]=r}}function u(e,t){var n=t;return r(t)?n="["+t+"]":e&&(n="."+t),e+n}function c(e,t,n,r){var o,i=a(n),u=!0,c=n,p=r.replace("-1",0),d=!i&&l(n,p),h=t[0];for(o=0;o<e.length;o++)p=r.replace("-1",o),i&&(c=n[o%n.length],d=l(c,p)),d&&(u=!1),f(e,o,h,d)&&s(e[o],t,r.replace("-1",o))(c);return u}function f(e,t,n,r){if(void 0===e[t]){if(r)return!1;e[t]="number"===typeof n?[]:{}}return!0}function p(e,t,n){return{set:function(){throw"bad container"},get:function(){},astr:t,parts:n,obj:e}}},{"./array":732,"fast-isnumeric":241}],759:[function(e,t,n){"use strict";t.exports=function(){}},{}],760:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),o=[];t.exports=function(e,t){if(-1===o.indexOf(e)){o.push(e);var n=1e3;a(t)?n=t:"long"===t&&(n=3e3);var i=r.select("body").selectAll(".plotly-notifier").data([0]);i.enter().append("div").classed("plotly-notifier",!0);var l=i.selectAll(".notifier-note").data(o);l.enter().append("div").classed("notifier-note",!0).style("opacity",0).each((function(e){var a=r.select(this);a.append("button").classed("notifier-close",!0).html("&times;").on("click",(function(){a.transition().call(s)}));for(var o=a.append("p"),i=e.split(/<br\s*\/?>/g),l=0;l<i.length;l++)l&&o.append("br"),o.append("span").text(i[l]);"stick"===t?a.transition().duration(350).style("opacity",1):a.transition().duration(700).style("opacity",1).transition().delay(n).call(s)}))}function s(e){e.duration(700).style("opacity",0).each("end",(function(e){var t=o.indexOf(e);-1!==t&&o.splice(t,1),r.select(this).remove()}))}}},{d3:169,"fast-isnumeric":241}],761:[function(e,t,n){"use strict";var r=e("./setcursor"),a="data-savedcursor",o="!!";t.exports=function(e,t){var n=e.attr(a);if(t){if(!n){for(var i=(e.attr("class")||"").split(" "),l=0;l<i.length;l++){var s=i[l];0===s.indexOf("cursor-")&&e.attr(a,s.substr(7)).classed(s,!1)}e.attr(a)||e.attr(a,o)}r(e,t)}else n&&(e.attr(a,null),n===o?r(e):r(e,n))}},{"./setcursor":770}],762:[function(e,t,n){"use strict";var r=e("./matrix").dot,a=e("../constants/numerical").BADNUM,o=t.exports={};o.tester=function(e){var t,n=e.slice(),r=n[0][0],o=r,i=n[0][1],l=i;for(n.push(n[0]),t=1;t<n.length;t++)r=Math.min(r,n[t][0]),o=Math.max(o,n[t][0]),i=Math.min(i,n[t][1]),l=Math.max(l,n[t][1]);var s,u=!1;function c(e,t){var n=e[0],u=e[1];return!(n===a||n<r||n>o||u===a||u<i||u>l)&&(!t||!s(e))}function f(e,t){var s=e[0],u=e[1];if(s===a||s<r||s>o||u===a||u<i||u>l)return!1;var c,f,p,d,h,v=n.length,m=n[0][0],y=n[0][1],g=0;for(c=1;c<v;c++)if(f=m,p=y,m=n[c][0],y=n[c][1],d=Math.min(f,m),!(s<d||s>Math.max(f,m)||u>Math.max(p,y)))if(u<Math.min(p,y))s!==d&&g++;else{if(h=m===f?u:p+(s-f)*(y-p)/(m-f),u===h)return 1!==c||!t;u<=h&&s!==d&&g++}return g%2===1}5===n.length&&(n[0][0]===n[1][0]?n[2][0]===n[3][0]&&n[0][1]===n[3][1]&&n[1][1]===n[2][1]&&(u=!0,s=function(e){return e[0]===n[0][0]}):n[0][1]===n[1][1]&&n[2][1]===n[3][1]&&n[0][0]===n[3][0]&&n[1][0]===n[2][0]&&(u=!0,s=function(e){return e[1]===n[0][1]}));var p=!0,d=n[0];for(t=1;t<n.length;t++)if(d[0]!==n[t][0]||d[1]!==n[t][1]){p=!1;break}return{xmin:r,xmax:o,ymin:i,ymax:l,pts:n,contains:u?c:f,isRect:u,degenerate:p}},o.isSegmentBent=function(e,t,n,a){var o,i,l,s=e[t],u=[e[n][0]-s[0],e[n][1]-s[1]],c=r(u,u),f=Math.sqrt(c),p=[-u[1]/f,u[0]/f];for(o=t+1;o<n;o++)if(i=[e[o][0]-s[0],e[o][1]-s[1]],l=r(i,u),l<0||l>c||Math.abs(r(i,p))>a)return!0;return!1},o.filter=function(e,t){var n=[e[0]],r=0,a=0;function i(i){e.push(i);var l=n.length,s=r;n.splice(a+1);for(var u=s+1;u<e.length;u++)(u===e.length-1||o.isSegmentBent(e,s,u+1,t))&&(n.push(e[u]),n.length<l-2&&(r=u,a=n.length-1),s=u)}if(e.length>1){var l=e.pop();i(l)}return{addPt:i,raw:e,filtered:n}}},{"../constants/numerical":725,"./matrix":756}],763:[function(e,n,r){(function(t){"use strict";var r=e("./show_no_webgl_msg"),a=e("regl");n.exports=function(e,n){var o=e._fullLayout,i=!0;return o._glcanvas.each((function(r){if(!r.regl&&(!r.pick||o._has("parcoords"))){try{r.regl=a({canvas:this,attributes:{antialias:!r.pick,preserveDrawingBuffer:!0},pixelRatio:e._context.plotGlPixelRatio||t.devicePixelRatio,extensions:n||[]})}catch(l){i=!1}r.regl||(i=!1),i&&this.addEventListener("webglcontextlost",(function(t){e&&e.emit&&e.emit("plotly_webglcontextlost",{event:t,layer:r.key})}),!1)}})),i||r({container:o._glcontainer.node()}),i}}).call(this,"undefined"!==typeof t?t:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{"./show_no_webgl_msg":771,regl:512}],764:[function(e,t,n){"use strict";t.exports=function(e,t){if(t instanceof RegExp){for(var n=t.toString(),r=0;r<e.length;r++)if(e[r]instanceof RegExp&&e[r].toString()===n)return e;e.push(t)}else!t&&0!==t||-1!==e.indexOf(t)||e.push(t);return e}},{}],765:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plot_api/plot_config").dfltConfig;function o(e,t){for(var n,a=[],o=0;o<t.length;o++)n=t[o],a[o]=n===e?n:"object"===typeof n?Array.isArray(n)?r.extendDeep([],n):r.extendDeepAll({},n):n;return a}var i={add:function(e,t,n,r,o){var i,l;e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},l=e.undoQueue.index,e.autoplay?e.undoQueue.inSequence||(e.autoplay=!1):(!e.undoQueue.sequence||e.undoQueue.beginSequence?(i={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},e.undoQueue.queue.splice(l,e.undoQueue.queue.length-l,i),e.undoQueue.index+=1):i=e.undoQueue.queue[l-1],e.undoQueue.beginSequence=!1,i&&(i.undo.calls.unshift(t),i.undo.args.unshift(n),i.redo.calls.push(r),i.redo.args.push(o)),e.undoQueue.queue.length>a.queueLength&&(e.undoQueue.queue.shift(),e.undoQueue.index--))},startSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!0,e.undoQueue.beginSequence=!0},stopSequence:function(e){e.undoQueue=e.undoQueue||{index:0,queue:[],sequence:!1},e.undoQueue.sequence=!1,e.undoQueue.beginSequence=!1},undo:function(e){var t,n;if(e.framework&&e.framework.isPolar)e.framework.undo();else if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index<=0)){for(e.undoQueue.index--,t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.undo.calls.length;n++)i.plotDo(e,t.undo.calls[n],t.undo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1}},redo:function(e){var t,n;if(e.framework&&e.framework.isPolar)e.framework.redo();else if(!(void 0===e.undoQueue||isNaN(e.undoQueue.index)||e.undoQueue.index>=e.undoQueue.queue.length)){for(t=e.undoQueue.queue[e.undoQueue.index],e.undoQueue.inSequence=!0,n=0;n<t.redo.calls.length;n++)i.plotDo(e,t.redo.calls[n],t.redo.args[n]);e.undoQueue.inSequence=!1,e.autoplay=!1,e.undoQueue.index++}},plotDo:function(e,t,n){e.autoplay=!0,n=o(e,n),t.apply(null,n)}};t.exports=i},{"../lib":750,"../plot_api/plot_config":786}],766:[function(e,t,n){"use strict";n.counter=function(e,t,n,r){var a=(t||"")+(n?"":"$"),o=!1===r?"":"^";return"xy"===e?new RegExp(o+"x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?"+a):new RegExp(o+e+"([2-9]|[1-9][0-9]+)?"+a)}},{}],767:[function(e,t,n){"use strict";var r=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,a=/^[^\.\[\]]+$/;t.exports=function(e,t){while(t){var n=e.match(r);if(n)e=n[1];else{if(!e.match(a))throw new Error("bad relativeAttr call:"+[e,t]);e=""}if("^"!==t.charAt(0))break;t=t.slice(1)}return e&&"["!==t.charAt(0)?e+"."+t:e+t}},{}],768:[function(e,t,n){"use strict";var r=e("./array").isArrayOrTypedArray,a=e("./is_plain_object");t.exports=function e(t,n){for(var o in n){var i=n[o],l=t[o];if(l!==i)if("_"===o.charAt(0)||"function"===typeof i){if(o in t)continue;t[o]=i}else if(r(i)&&r(l)&&a(i[0])){if("customdata"===o||"ids"===o)continue;for(var s=Math.min(i.length,l.length),u=0;u<s;u++)l[u]!==i[u]&&a(i[u])&&a(l[u])&&e(l[u],i[u])}else a(i)&&a(l)&&(e(l,i),Object.keys(l).length||delete t[o])}}},{"./array":732,"./is_plain_object":751}],769:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("./loggers"),o=e("./identity"),i=e("../constants/numerical").BADNUM,l=1e-9;function s(e,t){return e<t}function u(e,t){return e<=t}function c(e,t){return e>t}function f(e,t){return e>=t}n.findBin=function(e,t,n){if(r(t.start))return n?Math.ceil((e-t.start)/t.size-l)-1:Math.floor((e-t.start)/t.size+l);var o,i,p=0,d=t.length,h=0,v=d>1?(t[d-1]-t[0])/(d-1):1;i=v>=0?n?s:u:n?f:c,e+=v*l*(n?-1:1)*(v>=0?1:-1);while(p<d&&h++<100)o=Math.floor((p+d)/2),i(t[o],e)?p=o+1:d=o;return h>90&&a.log("Long binary search..."),p-1},n.sorterAsc=function(e,t){return e-t},n.sorterDes=function(e,t){return t-e},n.distinctVals=function(e,t){var r,a=(t||{}).unitMinDiff,o=e.slice();for(o.sort(n.sorterAsc),r=o.length-1;r>-1;r--)if(o[r]!==i)break;var l=1;a||(l=o[r]-o[0]||1);for(var s,u=l/(r||1)/1e4,c=[],f=0;f<=r;f++){var p=o[f],d=p-s;void 0===s?(c.push(p),s=p):d>u&&(l=Math.min(l,d),c.push(p),s=p)}return{vals:c,minDiff:l}},n.roundUp=function(e,t,n){var r,a=0,o=t.length-1,i=0,l=n?0:1,s=n?1:0,u=n?Math.ceil:Math.floor;while(a<o&&i++<100)r=u((a+o)/2),t[r]<=e?a=r+l:o=r-s;return t[a]},n.sort=function(e,t){for(var n=0,r=0,a=1;a<e.length;a++){var o=t(e[a],e[a-1]);if(o<0?n=1:o>0&&(r=1),n&&r)return e.sort(t)}return r?e:e.reverse()},n.findIndexOfMin=function(e,t){t=t||o;for(var n,r=1/0,a=0;a<e.length;a++){var i=t(e[a]);i<r&&(r=i,n=a)}return n}},{"../constants/numerical":725,"./identity":748,"./loggers":754,"fast-isnumeric":241}],770:[function(e,t,n){"use strict";t.exports=function(e,t){(e.attr("class")||"").split(" ").forEach((function(t){0===t.indexOf("cursor-")&&e.classed(t,!1)})),t&&e.classed("cursor-"+t,!0)}},{}],771:[function(e,t,n){"use strict";var r=e("../components/color"),a=function(){};t.exports=function(e){for(var t in e)"function"===typeof e[t]&&(e[t]=a);e.destroy=function(){e.container.parentNode.removeChild(e.container)};var n=document.createElement("div");n.className="no-webgl",n.style.cursor="pointer",n.style.fontSize="24px",n.style.color=r.defaults[0],n.style.position="absolute",n.style.left=n.style.top="0px",n.style.width=n.style.height="100%",n.style["background-color"]=r.lightLine,n.style["z-index"]=30;var o=document.createElement("p");return o.textContent="WebGL is not supported by your browser - visit https://get.webgl.org for more info",o.style.position="relative",o.style.top="50%",o.style.left="50%",o.style.height="30%",o.style.width="50%",o.style.margin="-15% 0 0 -25%",n.appendChild(o),e.container.appendChild(n),e.container.style.background="#FFFFFF",e.container.onclick=function(){window.open("https://get.webgl.org")},!1}},{"../components/color":615}],772:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("./array").isArrayOrTypedArray;n.aggNums=function(e,t,o,i){var l,s;if((!i||i>o.length)&&(i=o.length),r(t)||(t=!1),a(o[0])){for(s=new Array(i),l=0;l<i;l++)s[l]=n.aggNums(e,t,o[l]);o=s}for(l=0;l<i;l++)r(t)?r(o[l])&&(t=e(+t,+o[l])):t=o[l];return t},n.len=function(e){return n.aggNums((function(e){return e+1}),0,e)},n.mean=function(e,t){return t||(t=n.len(e)),n.aggNums((function(e,t){return e+t}),0,e)/t},n.midRange=function(e){if(void 0!==e&&0!==e.length)return(n.aggNums(Math.max,null,e)+n.aggNums(Math.min,null,e))/2},n.variance=function(e,t,a){return t||(t=n.len(e)),r(a)||(a=n.mean(e,t)),n.aggNums((function(e,t){return e+Math.pow(t-a,2)}),0,e)/t},n.stdev=function(e,t,r){return Math.sqrt(n.variance(e,t,r))},n.median=function(e){var t=e.slice().sort();return n.interp(t,.5)},n.interp=function(e,t){if(!r(t))throw"n should be a finite number";if(t=t*e.length-.5,t<0)return e[0];if(t>e.length-1)return e[e.length-1];var n=t%1;return n*e[Math.ceil(t)]+(1-n)*e[Math.floor(t)]}},{"./array":732,"fast-isnumeric":241}],773:[function(e,t,n){"use strict";var r=e("color-normalize");function a(e){return e?r(e):[0,0,0,1]}t.exports=a},{"color-normalize":125}],774:[function(e,t,n){"use strict";var r=e("d3"),a=e("../lib"),o=e("../constants/xmlns_namespaces"),i=e("../constants/alignment").LINE_SPACING;function l(e,t){return e.node().getBoundingClientRect()[t]}var s=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;n.convertToTspans=function(e,t,a){var o=e.text(),i=!e.attr("data-notex")&&"undefined"!==typeof MathJax&&o.match(s),u=r.select(e.node().parentNode);if(!u.empty()){var c=e.attr("class")?e.attr("class").split(" ")[0]:"text";return c+="-math",u.selectAll("svg."+c).remove(),u.selectAll("g."+c+"-group").remove(),e.style("display",null).attr({"data-unformatted":o,"data-math":"N"}),i?(t&&t._promises||[]).push(new Promise((function(t){e.style("display","none");var n=parseInt(e.node().style.fontSize,10),r={fontSize:n};p(i[2],r,(function(r,i,s){u.selectAll("svg."+c).remove(),u.selectAll("g."+c+"-group").remove();var p=r&&r.select("svg");if(!p||!p.node())return f(),void t();var d=u.append("g").classed(c+"-group",!0).attr({"pointer-events":"none","data-unformatted":o,"data-math":"Y"});d.node().appendChild(p.node()),i&&i.node()&&p.node().insertBefore(i.node().cloneNode(!0),p.node().firstChild),p.attr({class:c,height:s.height,preserveAspectRatio:"xMinYMin meet"}).style({overflow:"visible","pointer-events":"none"});var h=e.node().style.fill||"black",v=p.select("g");v.attr({fill:h,stroke:h});var m=l(v,"width"),y=l(v,"height"),g=+e.attr("x")-m*{start:0,middle:.5,end:1}[e.attr("text-anchor")||"start"],b=n||l(e,"height"),x=-b/4;"y"===c[0]?(d.attr({transform:"rotate("+[-90,+e.attr("x"),+e.attr("y")]+") translate("+[-m/2,x-y/2]+")"}),p.attr({x:+e.attr("x"),y:+e.attr("y")})):"l"===c[0]?p.attr({x:e.attr("x"),y:x-y/2}):"a"===c[0]&&0!==c.indexOf("atitle")?p.attr({x:0,y:x}):p.attr({x:g,y:+e.attr("y")+x-y/2}),a&&a.call(e,d),t(d)}))}))):f(),e}function f(){u.empty()||(c=e.attr("class")+"-math",u.select("svg."+c).remove()),e.text("").style("white-space","pre");var t=L(e.node(),o);t&&e.style("pointer-events","all"),n.positionText(e),a&&a.call(e)}};var u=/(<|&lt;|&#60;)/g,c=/(>|&gt;|&#62;)/g;function f(e){return e.replace(u,"\\lt ").replace(c,"\\gt ")}function p(e,t,n){var o,i,l,s;MathJax.Hub.Queue((function(){return i=a.extendDeepAll({},MathJax.Hub.config),l=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&&(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:"none",tex2jax:{inlineMath:[["$","$"],["\\(","\\)"]]},displayAlign:"left"})}),(function(){if(o=MathJax.Hub.config.menuSettings.renderer,"SVG"!==o)return MathJax.Hub.setRenderer("SVG")}),(function(){var n="math-output-"+a.randstr({},64);return s=r.select("body").append("div").attr({id:n}).style({visibility:"hidden",position:"absolute"}).style({"font-size":t.fontSize+"px"}).text(f(e)),MathJax.Hub.Typeset(s.node())}),(function(){var t=r.select("body").select("#MathJax_SVG_glyphs");if(s.select(".MathJax_SVG").empty()||!s.select("svg").node())a.log("There was an error in the tex syntax.",e),n();else{var i=s.select("svg").node().getBoundingClientRect();n(s.select(".MathJax_SVG"),t,i)}if(s.remove(),"SVG"!==o)return MathJax.Hub.setRenderer(o)}),(function(){return void 0!==l&&(MathJax.Hub.processSectionDelay=l),MathJax.Hub.Config(i)}))}var d={sup:"font-size:70%",sub:"font-size:70%",b:"font-weight:bold",i:"font-style:italic",a:"cursor:pointer",span:"",em:"font-style:italic;font-weight:bold"},h={sub:"0.3em",sup:"-0.6em"},v={sub:"-0.21em",sup:"0.42em"},m="",y=["http:","https:","mailto:","",void 0,":"],g=n.NEWLINES=/(\r\n?|\n)/g,b=/(<[^<>]*>)/,x=/<(\/?)([^ >]*)(\s+(.*))?>/i,_=/<br(\s+.*)?>/i;n.BR_TAG_ALL=/<br(\s+.*)?>/gi;var w=/(^|[\s"'])style\s*=\s*("([^"]*);?"|'([^']*);?')/i,k=/(^|[\s"'])href\s*=\s*("([^"]*)"|'([^']*)')/i,T=/(^|[\s"'])target\s*=\s*("([^"\s]*)"|'([^'\s]*)')/i,E=/(^|[\s"'])popup\s*=\s*("([\w=,]*)"|'([\w=,]*)')/i;function O(e,t){if(!e)return null;var n=e.match(t),r=n&&(n[3]||n[4]);return r&&A(r)}var M=/(^|;)\s*color:/;n.plainText=function(e,t){t=t||{};for(var n=void 0!==t.len&&-1!==t.len?t.len:1/0,r=void 0!==t.allowedTags?t.allowedTags:["br"],a="...",o=a.length,i=e.split(b),l=[],s="",u=0,c=0;c<i.length;c++){var f=i[c],p=f.match(x),d=p&&p[2].toLowerCase();if(d)-1!==r.indexOf(d)&&(l.push(f),s=d);else{var h=f.length;if(u+h<n)l.push(f),u+=h;else if(u<n){var v=n-u;s&&("br"!==s||v<=o||h<=o)&&l.pop(),n>o?l.push(f.substr(0,v-o)+a):l.push(f.substr(0,v));break}s=""}}return l.join("")};var S={mu:"μ",amp:"&",lt:"<",gt:">",nbsp:" ",times:"×",plusmn:"±",deg:"°"},C=/&(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function A(e){return e.replace(C,(function(e,t){var n;return n="#"===t.charAt(0)?P("x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10)):S[t],n||e}))}function P(e){if(!(e>1114111)){var t=String.fromCodePoint;if(t)return t(e);var n=String.fromCharCode;return e<=65535?n(e):n(55232+(e>>10),e%1024+56320)}}function L(e,t){t=t.replace(g," ");var n,l=!1,s=[],u=-1;function c(){u++;var t=document.createElementNS(o.svg,"tspan");r.select(t).attr({class:"line",dy:u*i+"em"}),e.appendChild(t),n=t;var a=s;if(s=[{node:t}],a.length>1)for(var l=1;l<a.length;l++)f(a[l])}function f(e){var t,a=e.type,i={};if("a"===a){t="a";var l=e.target,u=e.href,c=e.popup;u&&(i={"xlink:xlink:show":"_blank"===l||"_"!==l.charAt(0)?"new":"replace",target:l,"xlink:xlink:href":u},c&&(i.onclick='window.open(this.href.baseVal,this.target.baseVal,"'+c+'");return false;'))}else t="tspan";e.style&&(i.style=e.style);var f=document.createElementNS(o.svg,t);if("sup"===a||"sub"===a){p(n,m),n.appendChild(f);var d=document.createElementNS(o.svg,"tspan");p(d,m),r.select(d).attr("dy",v[a]),i.dy=h[a],n.appendChild(f),n.appendChild(d)}else n.appendChild(f);r.select(f).attr(i),n=e.node=f,s.push(e)}function p(e,t){e.appendChild(document.createTextNode(t))}function S(e){if(1!==s.length){var r=s.pop();e!==r.type&&a.log("Start tag <"+r.type+"> doesnt match end tag <"+e+">. Pretending it did match.",t),n=s[s.length-1].node}else a.log("Ignoring unexpected end tag </"+e+">.",t)}var C=_.test(t);C?c():(n=e,s=[{node:e}]);for(var P=t.split(b),L=0;L<P.length;L++){var D=P[L],j=D.match(x),I=j&&j[2].toLowerCase(),R=d[I];if("br"===I)c();else if(void 0===R)p(n,A(D));else if(j[1])S(I);else{var z=j[4],N={type:I},F=O(z,w);if(F?(F=F.replace(M,"$1 fill:"),R&&(F+=";"+R)):R&&(F=R),F&&(N.style=F),"a"===I){l=!0;var B=O(z,k);if(B){var V=document.createElement("a");V.href=B,-1!==y.indexOf(V.protocol)&&(N.href=encodeURI(decodeURI(B)),N.target=O(z,T)||"_blank",N.popup=O(z,E))}}f(N)}}return l}function D(e,t,n){var r,a,o,i=n.horizontalAlign,l=n.verticalAlign||"top",s=e.node().getBoundingClientRect(),u=t.node().getBoundingClientRect();return a="bottom"===l?function(){return s.bottom-r.height}:"middle"===l?function(){return s.top+(s.height-r.height)/2}:function(){return s.top},o="right"===i?function(){return s.right-r.width}:"center"===i?function(){return s.left+(s.width-r.width)/2}:function(){return s.left},function(){return r=this.node().getBoundingClientRect(),this.style({top:a()-u.top+"px",left:o()-u.left+"px","z-index":1e3}),this}}n.convertEntities=A,n.sanitizeHTML=function(e){e=e.replace(g," ");for(var t=document.createElement("p"),n=t,a=[],o=e.split(b),i=0;i<o.length;i++){var l=o[i],s=l.match(x),u=s&&s[2].toLowerCase();if(u in d)if(s[1])a.length&&(n=a.pop());else{var c=s[4],f=O(c,w),p=f?{style:f}:{};if("a"===u){var h=O(c,k);if(h){var v=document.createElement("a");if(v.href=h,-1!==y.indexOf(v.protocol)){p.href=encodeURI(decodeURI(h));var m=O(c,T);m&&(p.target=m)}}}var _=document.createElement(u);n.appendChild(_),r.select(_).attr(p),n=_,a.push(_)}else n.appendChild(document.createTextNode(A(l)))}var E="innerHTML";return t[E]},n.lineCount=function(e){return e.selectAll("tspan.line").size()||1},n.positionText=function(e,t,n){return e.each((function(){var e=r.select(this);function a(t,n){return void 0===n?(n=e.attr(t),null===n&&(e.attr(t,0),n=0)):e.attr(t,n),n}var o=a("x",t),i=a("y",n);"text"===this.nodeName&&e.selectAll("tspan.line").attr({x:o,y:i})}))},n.makeEditable=function(e,t){var n=t.gd,a=t.delegate,o=r.dispatch("edit","input","cancel"),i=a||e;if(e.style({"pointer-events":a?"none":"all"}),1!==e.size())throw new Error("boo");function l(){u(),e.style({opacity:0});var t,n=i.attr("class");t=n?"."+n.split(" ")[0]+"-math-group":"[class*=-math-group]",t&&r.select(e.node().parentNode).select(t).style({opacity:0})}function s(e){var t=e.node(),n=document.createRange();n.selectNodeContents(t);var r=window.getSelection();r.removeAllRanges(),r.addRange(n),t.focus()}function u(){var a=r.select(n),i=a.select(".svg-container"),l=i.append("div"),u=e.node().style,c=parseFloat(u.fontSize||12),f=t.text;void 0===f&&(f=e.attr("data-unformatted")),l.classed("plugin-editable editable",!0).style({position:"absolute","font-family":u.fontFamily||"Arial","font-size":c,color:t.fill||u.fill||"black",opacity:1,"background-color":t.background||"transparent",outline:"#ffffff33 1px solid",margin:[-c/8+1,0,0,-1].join("px ")+"px",padding:"0","box-sizing":"border-box"}).attr({contenteditable:!0}).text(f).call(D(e,i,t)).on("blur",(function(){n._editing=!1,e.text(this.textContent).style({opacity:1});var t,a=r.select(this).attr("class");t=a?"."+a.split(" ")[0]+"-math-group":"[class*=-math-group]",t&&r.select(e.node().parentNode).select(t).style({opacity:0});var i=this.textContent;r.select(this).transition().duration(0).remove(),r.select(document).on("mouseup",null),o.edit.call(e,i)})).on("focus",(function(){var e=this;n._editing=!0,r.select(document).on("mouseup",(function(){if(r.event.target===e)return!1;document.activeElement===l.node()&&l.node().blur()}))})).on("keyup",(function(){27===r.event.which?(n._editing=!1,e.style({opacity:1}),r.select(this).style({opacity:0}).on("blur",(function(){return!1})).transition().remove(),o.cancel.call(e,this.textContent)):(o.input.call(e,this.textContent),r.select(this).call(D(e,i,t)))})).on("keydown",(function(){13===r.event.which&&this.blur()})).call(s)}return t.immediate?l():i.on("click",l),r.rebind(e,o,"on")}},{"../constants/alignment":717,"../constants/xmlns_namespaces":726,"../lib":750,d3:169}],775:[function(e,t,n){"use strict";var r={};function a(e){e&&null!==e.timer&&(clearTimeout(e.timer),e.timer=null)}n.throttle=function(e,t,n){var o=r[e],i=Date.now();if(!o){for(var l in r)r[l].ts<i-6e4&&delete r[l];o=r[e]={ts:0,timer:null}}function s(){n(),o.ts=Date.now(),o.onDone&&(o.onDone(),o.onDone=null)}a(o),i>o.ts+t?s():o.timer=setTimeout((function(){s(),o.timer=null}),t)},n.done=function(e){var t=r[e];return t&&t.timer?new Promise((function(e){var n=t.onDone;t.onDone=function(){n&&n(),e(),t.onDone=null}})):Promise.resolve()},n.clear=function(e){if(e)a(r[e]),delete r[e];else for(var t in r)n.clear(t)}},{}],776:[function(e,t,n){"use strict";var r=e("fast-isnumeric");t.exports=function(e,t){if(e>0)return Math.log(e)/Math.LN10;var n=Math.log(Math.min(t[0],t[1]))/Math.LN10;return r(n)||(n=Math.log(Math.max(t[0],t[1]))/Math.LN10-6),n}},{"fast-isnumeric":241}],777:[function(e,t,n){"use strict";var r=t.exports={},a=e("../plots/geo/constants").locationmodeToLayer,o=e("topojson-client").feature;r.getTopojsonName=function(e){return[e.scope.replace(/ /g,"-"),"_",e.resolution.toString(),"m"].join("")},r.getTopojsonPath=function(e,t){return e+t+".json"},r.getTopojsonFeatures=function(e,t){var n=a[e.locationmode],r=t.objects[n];return o(t,r).features}},{"../plots/geo/constants":829,"topojson-client":551}],778:[function(e,t,n){"use strict";t.exports={moduleType:"locale",name:"en-US",dictionary:{"Click to enter Colorscale title":"Click to enter Colorscale title"},format:{date:"%m/%d/%Y"}}},{}],779:[function(e,t,n){"use strict";t.exports={moduleType:"locale",name:"en",dictionary:{"Click to enter Colorscale title":"Click to enter Colourscale title"},format:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],periods:["AM","PM"],dateTime:"%a %b %e %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",decimal:".",thousands:",",grouping:[3],currency:["$",""],year:"%Y",month:"%b %Y",dayMonth:"%b %-d",dayMonthYear:"%b %-d, %Y"}}},{}],780:[function(e,t,n){"use strict";var r=e("../registry");t.exports=function(e){for(var t,n,a=r.layoutArrayContainers,o=r.layoutArrayRegexes,i=e.split("[")[0],l=0;l<o.length;l++)if(n=e.match(o[l]),n&&0===n.index){t=n[0];break}if(t||(t=a[a.indexOf(i)]),!t)return!1;var s=e.substr(t.length);return s?(n=s.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/),!!n&&{array:t,index:Number(n[1]),property:n[3]||""}):{array:t,index:"",property:""}}},{"../registry":882}],781:[function(e,t,n){"use strict";var r=e("../lib"),a=r.extendFlat,o=r.isPlainObject,i={valType:"flaglist",extras:["none"],flags:["calc","clearAxisTypes","plot","style","markerSize","colorbars"]},l={valType:"flaglist",extras:["none"],flags:["calc","plot","legend","ticks","axrange","layoutstyle","modebar","camera","arraydraw","colorbars"]},s=i.flags.slice().concat(["fullReplot"]),u=l.flags.slice().concat("layoutReplot");function c(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!1;return t}function f(e,t,n){var r=a({},e);for(var i in r){var l=r[i];o(l)&&(r[i]=p(l,t,n,i))}return"from-root"===n&&(r.editType=t),r}function p(e,t,n,r){if(e.valType){var o=a({},e);if(o.editType=t,Array.isArray(e.items)){o.items=new Array(e.items.length);for(var i=0;i<e.items.length;i++)o.items[i]=p(e.items[i],t,"from-root")}return o}return f(e,t,"_"===r.charAt(0)?"nested":"from-root")}t.exports={traces:i,layout:l,traceFlags:function(){return c(s)},layoutFlags:function(){return c(u)},update:function(e,t){var n=t.editType;if(n&&"none"!==n)for(var r=n.split("+"),a=0;a<r.length;a++)e[r[a]]=!0},overrideAll:f}},{"../lib":750}],782:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("gl-mat4/fromQuat"),o=e("../registry"),i=e("../lib"),l=e("../plots/plots"),s=e("../plots/cartesian/axis_ids"),u=e("../components/color"),c=s.cleanId,f=s.getFromTrace,p=o.traceIs;function d(e,t){var n=e[t],r=t.charAt(0);n&&"paper"!==n&&(e[t]=c(n,r,!0))}function h(e){function t(t,n){var r=e[t],a=e.title&&e.title[n];r&&!a&&(e.title||(e.title={}),e.title[n]=e[t],delete e[t])}e&&("string"!==typeof e.title&&"number"!==typeof e.title||(e.title={text:e.title}),t("titlefont","font"),t("titleposition","position"),t("titleside","side"),t("titleoffset","offset"))}function v(e){if(!i.isPlainObject(e))return!1;var t=e.name;return delete e.name,delete e.showlegend,("string"===typeof t||"number"===typeof t)&&String(t)}function m(e,t,n,r){if(n&&!r)return e;if(r&&!n)return t;if(!e.trim())return t;if(!t.trim())return e;var a,o=Math.min(e.length,t.length);for(a=0;a<o;a++)if(e.charAt(a)!==t.charAt(a))break;var i=e.substr(0,a);return i.trim()}function y(e){var t="middle",n="center";return"string"===typeof e&&(-1!==e.indexOf("top")?t="top":-1!==e.indexOf("bottom")&&(t="bottom"),-1!==e.indexOf("left")?n="left":-1!==e.indexOf("right")&&(n="right")),t+" "+n}function g(e,t){return t in e&&"object"===typeof e[t]&&0===Object.keys(e[t]).length}n.clearPromiseQueue=function(e){Array.isArray(e._promises)&&e._promises.length>0&&i.log("Clearing previous rejected promises from queue."),e._promises=[]},n.cleanLayout=function(e){var t,r;e||(e={}),e.xaxis1&&(e.xaxis||(e.xaxis=e.xaxis1),delete e.xaxis1),e.yaxis1&&(e.yaxis||(e.yaxis=e.yaxis1),delete e.yaxis1),e.scene1&&(e.scene||(e.scene=e.scene1),delete e.scene1);var o=(l.subplotsRegistry.cartesian||{}).attrRegex,s=(l.subplotsRegistry.polar||{}).attrRegex,f=(l.subplotsRegistry.ternary||{}).attrRegex,p=(l.subplotsRegistry.gl3d||{}).attrRegex,v=Object.keys(e);for(t=0;t<v.length;t++){var m=v[t];if(o&&o.test(m)){var y=e[m];y.anchor&&"free"!==y.anchor&&(y.anchor=c(y.anchor)),y.overlaying&&(y.overlaying=c(y.overlaying)),y.type||(y.isdate?y.type="date":y.islog?y.type="log":!1===y.isdate&&!1===y.islog&&(y.type="linear")),"withzero"!==y.autorange&&"tozero"!==y.autorange||(y.autorange=!0,y.rangemode="tozero"),delete y.islog,delete y.isdate,delete y.categories,g(y,"domain")&&delete y.domain,void 0!==y.autotick&&(void 0===y.tickmode&&(y.tickmode=y.autotick?"auto":"linear"),delete y.autotick),h(y)}else if(s&&s.test(m)){var b=e[m];h(b.radialaxis)}else if(f&&f.test(m)){var x=e[m];h(x.aaxis),h(x.baxis),h(x.caxis)}else if(p&&p.test(m)){var _=e[m],w=_.cameraposition;if(Array.isArray(w)&&4===w[0].length){var k=w[0],T=w[1],E=w[2],O=a([],k),M=[];for(r=0;r<3;++r)M[r]=T[r]+E*O[2+4*r];_.camera={eye:{x:M[0],y:M[1],z:M[2]},center:{x:T[0],y:T[1],z:T[2]},up:{x:0,y:0,z:1}},delete _.cameraposition}h(_.xaxis),h(_.yaxis),h(_.zaxis)}}var S=Array.isArray(e.annotations)?e.annotations.length:0;for(t=0;t<S;t++){var C=e.annotations[t];i.isPlainObject(C)&&(C.ref&&("paper"===C.ref?(C.xref="paper",C.yref="paper"):"data"===C.ref&&(C.xref="x",C.yref="y"),delete C.ref),d(C,"xref"),d(C,"yref"))}var A=Array.isArray(e.shapes)?e.shapes.length:0;for(t=0;t<A;t++){var P=e.shapes[t];i.isPlainObject(P)&&(d(P,"xref"),d(P,"yref"))}var L=Array.isArray(e.images)?e.images.length:0;for(t=0;t<L;t++){var D=e.images[t];i.isPlainObject(D)&&(d(D,"xref"),d(D,"yref"))}var j=e.legend;return j&&(j.x>3?(j.x=1.02,j.xanchor="left"):j.x<-2&&(j.x=-.02,j.xanchor="right"),j.y>3?(j.y=1.02,j.yanchor="bottom"):j.y<-2&&(j.y=-.02,j.yanchor="top")),h(e),"rotate"===e.dragmode&&(e.dragmode="orbit"),u.clean(e),e.template&&e.template.layout&&n.cleanLayout(e.template.layout),e},n.cleanData=function(e){for(var t=0;t<e.length;t++){var r,a=e[t];if("histogramy"===a.type&&"xbins"in a&&!("ybins"in a)&&(a.ybins=a.xbins,delete a.xbins),a.error_y&&"opacity"in a.error_y){var s=u.defaults,f=a.error_y.color||(p(a,"bar")?u.defaultLine:s[t%s.length]);a.error_y.color=u.addOpacity(u.rgb(f),u.opacity(f)*a.error_y.opacity),delete a.error_y.opacity}if("bardir"in a&&("h"!==a.bardir||!p(a,"bar")&&"histogram"!==a.type.substr(0,9)||(a.orientation="h",n.swapXYData(a)),delete a.bardir),"histogramy"===a.type&&n.swapXYData(a),"histogramx"!==a.type&&"histogramy"!==a.type||(a.type="histogram"),"scl"in a&&!("colorscale"in a)&&(a.colorscale=a.scl,delete a.scl),"reversescl"in a&&!("reversescale"in a)&&(a.reversescale=a.reversescl,delete a.reversescl),a.xaxis&&(a.xaxis=c(a.xaxis,"x")),a.yaxis&&(a.yaxis=c(a.yaxis,"y")),p(a,"gl3d")&&a.scene&&(a.scene=l.subplotsRegistry.gl3d.cleanId(a.scene)),!p(a,"pie-like")&&!p(a,"bar-like"))if(Array.isArray(a.textposition))for(r=0;r<a.textposition.length;r++)a.textposition[r]=y(a.textposition[r]);else a.textposition&&(a.textposition=y(a.textposition));var d=o.getModule(a);if(d&&d.colorbar){var b=d.colorbar.container,x=b?a[b]:a;x&&x.colorscale&&("YIGnBu"===x.colorscale&&(x.colorscale="YlGnBu"),"YIOrRd"===x.colorscale&&(x.colorscale="YlOrRd"))}if("surface"===a.type&&i.isPlainObject(a.contours)){var _=["x","y","z"];for(r=0;r<_.length;r++){var w=a.contours[_[r]];i.isPlainObject(w)&&(w.highlightColor&&(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&&(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if("candlestick"===a.type||"ohlc"===a.type){var k=!1!==(a.increasing||{}).showlegend,T=!1!==(a.decreasing||{}).showlegend,E=v(a.increasing),O=v(a.decreasing);if(!1!==E&&!1!==O){var M=m(E,O,k,T);M&&(a.name=M)}else!E&&!O||a.name||(a.name=E||O)}if(Array.isArray(a.transforms)){var S=a.transforms;for(r=0;r<S.length;r++){var C=S[r];if(i.isPlainObject(C))switch(C.type){case"filter":C.filtersrc&&(C.target=C.filtersrc,delete C.filtersrc),C.calendar&&(C.valuecalendar||(C.valuecalendar=C.calendar),delete C.calendar);break;case"groupby":if(C.styles=C.styles||C.style,C.styles&&!Array.isArray(C.styles)){var A=C.styles,P=Object.keys(A);C.styles=[];for(var L=0;L<P.length;L++)C.styles.push({target:P[L],value:A[P[L]]})}break}}}g(a,"line")&&delete a.line,"marker"in a&&(g(a.marker,"line")&&delete a.marker.line,g(a,"marker")&&delete a.marker),u.clean(a),a.autobinx&&(delete a.autobinx,delete a.xbins),a.autobiny&&(delete a.autobiny,delete a.ybins),h(a),a.colorbar&&h(a.colorbar),a.marker&&a.marker.colorbar&&h(a.marker.colorbar),a.line&&a.line.colorbar&&h(a.line.colorbar),a.aaxis&&h(a.aaxis),a.baxis&&h(a.baxis)}},n.swapXYData=function(e){var t;if(i.swapAttrs(e,["?","?0","d?","?bins","nbins?","autobin?","?src","error_?"]),Array.isArray(e.z)&&Array.isArray(e.z[0])&&(e.transpose?delete e.transpose:e.transpose=!0),e.error_x&&e.error_y){var n=e.error_y,r="copy_ystyle"in n?n.copy_ystyle:!(n.color||n.thickness||n.width);i.swapAttrs(e,["error_?.copy_ystyle"]),r&&i.swapAttrs(e,["error_?.color","error_?.thickness","error_?.width"])}if("string"===typeof e.hoverinfo){var a=e.hoverinfo.split("+");for(t=0;t<a.length;t++)"x"===a[t]?a[t]="y":"y"===a[t]&&(a[t]="x");e.hoverinfo=a.join("+")}},n.coerceTraceIndices=function(e,t){if(r(t))return[t];if(!Array.isArray(t)||!t.length)return e.data.map((function(e,t){return t}));if(Array.isArray(t)){for(var n=[],a=0;a<t.length;a++)i.isIndex(t[a],e.data.length)?n.push(t[a]):i.warn("trace index (",t[a],") is not a number or is out of bounds");return n}return t},n.manageArrayContainers=function(e,t,n){var a=e.obj,o=e.parts,l=o.length,s=o[l-1],u=r(s);if(u&&null===t){var c=o.slice(0,l-1).join("."),f=i.nestedProperty(a,c).get();f.splice(s,1)}else u&&void 0===e.get()?(void 0===e.get()&&(n[e.astr]=null),e.set(t)):e.set(t)};var b=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function x(e){var t=e.search(b);if(t>0)return e.substr(0,t)}n.hasParent=function(e,t){var n=x(t);while(n){if(n in e)return!0;n=x(n)}return!1};var _=["x","y","z"];n.clearAxisTypes=function(e,t,n){for(var r=0;r<t.length;r++)for(var a=e._fullData[r],o=0;o<3;o++){var l=f(e,a,_[o]);if(l&&"log"!==l.type){var s=l._name,u=l._id.substr(1);if("scene"===u.substr(0,5)){if(void 0!==n[u])continue;s=u+"."+s}var c=s+".type";void 0===n[s]&&void 0===n[c]&&i.nestedProperty(e.layout,c).set(null)}}}},{"../components/color":615,"../lib":750,"../plots/cartesian/axis_ids":802,"../plots/plots":862,"../registry":882,"fast-isnumeric":241,"gl-mat4/fromQuat":275}],783:[function(e,t,n){"use strict";var r=e("./plot_api");n.plot=r.plot,n.newPlot=r.newPlot,n.restyle=r.restyle,n.relayout=r.relayout,n.redraw=r.redraw,n.update=r.update,n._guiRestyle=r._guiRestyle,n._guiRelayout=r._guiRelayout,n._guiUpdate=r._guiUpdate,n._storeDirectGUIEdit=r._storeDirectGUIEdit,n.react=r.react,n.extendTraces=r.extendTraces,n.prependTraces=r.prependTraces,n.addTraces=r.addTraces,n.deleteTraces=r.deleteTraces,n.moveTraces=r.moveTraces,n.purge=r.purge,n.addFrames=r.addFrames,n.deleteFrames=r.deleteFrames,n.animate=r.animate,n.setPlotConfig=r.setPlotConfig,n.toImage=e("./to_image"),n.validate=e("./validate"),n.downloadImage=e("../snapshot/download");var a=e("./template_api");n.makeTemplate=a.makeTemplate,n.validateTemplate=a.validateTemplate},{"../snapshot/download":884,"./plot_api":785,"./template_api":790,"./to_image":791,"./validate":792}],784:[function(e,t,n){"use strict";var r=e("../lib/is_plain_object"),a=e("../lib/noop"),o=e("../lib/loggers"),i=e("../lib/search").sorterAsc,l=e("../registry");n.containerArrayMatch=e("./container_array_match");var s=n.isAddVal=function(e){return"add"===e||r(e)},u=n.isRemoveVal=function(e){return null===e||"remove"===e};n.applyContainerArrayChanges=function(e,t,n,r,c){var f=t.astr,p=l.getComponentMethod(f,"supplyLayoutDefaults"),d=l.getComponentMethod(f,"draw"),h=l.getComponentMethod(f,"drawOne"),v=r.replot||r.recalc||p===a||d===a,m=e.layout,y=e._fullLayout;if(n[""]){Object.keys(n).length>1&&o.warn("Full array edits are incompatible with other edits",f);var g=n[""][""];if(u(g))t.set(null);else{if(!Array.isArray(g))return o.warn("Unrecognized full array edit value",f,g),!0;t.set(g)}return!v&&(p(m,y),d(e),!0)}var b,x,_,w,k,T,E,O,M=Object.keys(n).map(Number).sort(i),S=t.get(),C=S||[],A=c(y,f).get(),P=[],L=-1,D=C.length;for(b=0;b<M.length;b++)if(_=M[b],w=n[_],k=Object.keys(w),T=w[""],E=s(T),_<0||_>C.length-(E?0:1))o.warn("index out of range",f,_);else if(void 0!==T)k.length>1&&o.warn("Insertion & removal are incompatible with edits to the same index.",f,_),u(T)?P.push(_):E?("add"===T&&(T={}),C.splice(_,0,T),A&&A.splice(_,0,{})):o.warn("Unrecognized full object edit value",f,_,T),-1===L&&(L=_);else for(x=0;x<k.length;x++)O=f+"["+_+"].",c(C[_],k[x],O).set(w[k[x]]);for(b=P.length-1;b>=0;b--)C.splice(P[b],1),A&&A.splice(P[b],1);if(C.length?S||t.set(C):t.set(null),v)return!1;if(p(m,y),h!==a){var j;if(-1===L)j=M;else{for(D=Math.max(C.length,D),j=[],b=0;b<M.length;b++){if(_=M[b],_>=L)break;j.push(_)}for(b=L;b<D;b++)j.push(b)}for(b=0;b<j.length;b++)h(e,j[b])}else d(e);return!0}},{"../lib/is_plain_object":751,"../lib/loggers":754,"../lib/noop":759,"../lib/search":769,"../registry":882,"./container_array_match":780}],785:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),o=e("has-hover"),i=e("../lib"),l=i.nestedProperty,s=e("../lib/events"),u=e("../lib/queue"),c=e("../registry"),f=e("./plot_schema"),p=e("../plots/plots"),d=e("../plots/polar/legacy"),h=e("../plots/cartesian/axes"),v=e("../components/drawing"),m=e("../components/color"),y=e("../plots/cartesian/graph_interact").initInteractions,g=e("../constants/xmlns_namespaces"),b=e("../lib/svg_text_utils"),x=e("../plots/cartesian/select").clearSelect,_=e("./plot_config").dfltConfig,w=e("./manage_arrays"),k=e("./helpers"),T=e("./subroutines"),E=e("./edit_types"),O=e("../plots/cartesian/constants").AX_NAME_PATTERN,M=0,S=5;function C(e,t,a,o){var l;if(e=i.getGraphDiv(e),s.init(e),i.isPlainObject(t)){var u=t;t=u.data,a=u.layout,o=u.config,l=u.frames}var f=s.triggerHandler(e,"plotly_beforeplot",[t,a,o]);if(!1===f)return Promise.reject();function d(){if(l)return n.addFrames(e,l)}t||a||i.isPlotDiv(e)||i.warn("Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.",e),j(e,o),a||(a={}),r.select(e).classed("js-plotly-plot",!0),v.makeTester(),Array.isArray(e._promises)||(e._promises=[]);var m=0===(e.data||[]).length&&Array.isArray(t);Array.isArray(t)&&(k.cleanData(t),m?e.data=t:e.data.push.apply(e.data,t),e.empty=!1),e.layout&&!m||(e.layout=k.cleanLayout(a)),p.supplyDefaults(e);var g=e._fullLayout,b=g._has("cartesian");if(!g._has("polar")&&t&&t[0]&&t[0].r)return i.log("Legacy polar charts are deprecated!"),I(e,t,a);g._replotting=!0,(m||g._shouldCreateBgLayer)&&(Pe(e),g._shouldCreateBgLayer&&delete g._shouldCreateBgLayer),e.framework!==Pe&&(e.framework=Pe,Pe(e)),v.initGradients(e),m&&h.saveShowSpikeInitial(e);var x=!e.calcdata||e.calcdata.length!==(e._fullData||[]).length;x&&p.doCalcdata(e);for(var _=0;_<e.calcdata.length;_++)e.calcdata[_][0].trace=e._fullData[_];e._context.responsive?e._responsiveChartHandler||(e._responsiveChartHandler=function(){i.isHidden(e)||p.resize(e)},window.addEventListener("resize",e._responsiveChartHandler)):i.clearResponsive(e);var w=i.extendFlat({},g._size),E=0;function O(){for(var t=g._basePlotModules,n=0;n<t.length;n++)t[n].drawFramework&&t[n].drawFramework(e);if(!g._glcanvas&&g._has("gl")&&(g._glcanvas=g._glcontainer.selectAll(".gl-canvas").data([{key:"contextLayer",context:!0,pick:!1},{key:"focusLayer",context:!1,pick:!1},{key:"pickLayer",context:!1,pick:!0}],(function(e){return e.key})),g._glcanvas.enter().append("canvas").attr("class",(function(e){return"gl-canvas gl-canvas-"+e.key.replace("Layer","")})).style({position:"absolute",top:0,left:0,overflow:"visible","pointer-events":"none"})),g._glcanvas){g._glcanvas.attr("width",g.width).attr("height",g.height);var r=g._glcanvas.data()[0].regl;if(r&&(Math.floor(g.width)!==r._gl.drawingBufferWidth||Math.floor(g.height)!==r._gl.drawingBufferHeight)){var a="WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.";if(!E)return i.log(a+" Clearing graph and plotting again."),p.cleanPlot([],{},e._fullData,g),p.supplyDefaults(e),g=e._fullLayout,p.doCalcdata(e),E++,O();i.error(a)}}return"h"===g.modebar.orientation?g._modebardiv.style("height",null).style("width","100%"):g._modebardiv.style("width",null).style("height",g.height+"px"),p.previousPromises(e)}function M(){if(p.clearAutoMarginIds(e),T.drawMarginPushers(e),h.allowAutoMargin(e),g._has("pie"))for(var t=e._fullData,n=0;n<t.length;n++){var r=t[n];"pie"===r.type&&r.automargin&&p.allowAutoMargin(e,"pie."+r.uid+".automargin")}return p.doAutoMargin(e),p.previousPromises(e)}function S(){if(p.didMarginChange(w,g._size))return i.syncOrAsync([M,T.layoutStyles],e)}function C(){if(x)return i.syncOrAsync([c.getComponentMethod("shapes","calcAutorange"),c.getComponentMethod("annotations","calcAutorange"),P],e);P()}function P(){e._transitioning||(T.doAutoRangeAndConstraints(e),m&&h.saveRangeInitial(e),c.getComponentMethod("rangeslider","calcAutorange")(e))}function L(){return h.draw(e,m?"":"redraw")}var D=[p.previousPromises,d,O,M,S];b&&D.push(C),D.push(T.layoutStyles),b&&D.push(L),D.push(T.drawData,T.finalDraw,y,p.addLinks,p.rehover,p.redrag,p.doAutoMargin,p.previousPromises);var R=i.syncOrAsync(D,e);return R&&R.then||(R=Promise.resolve()),R.then((function(){return A(e),e}))}function A(e){var t=e._fullLayout;t._redrawFromAutoMarginCount?t._redrawFromAutoMarginCount--:e.emit("plotly_afterplot")}function P(e){return i.extendFlat(_,e)}function L(e,t){try{e._fullLayout._paper.style("background",t)}catch(n){i.error(n)}}function D(e,t){var n=m.combine(t,"white");L(e,n)}function j(e,t){if(!e._context){e._context=i.extendDeep({},_);var n=r.select("base");e._context._baseUrl=n.size()&&n.attr("href")?window.location.href.split("#")[0]:""}var a,l,s,u=e._context;if(t){for(l=Object.keys(t),a=0;a<l.length;a++)s=l[a],"editable"!==s&&"edits"!==s&&s in u&&("setBackground"===s&&"opaque"===t[s]?u[s]=D:u[s]=t[s]);t.plot3dPixelRatio&&!u.plotGlPixelRatio&&(u.plotGlPixelRatio=u.plot3dPixelRatio);var c=t.editable;if(void 0!==c)for(u.editable=c,l=Object.keys(u.edits),a=0;a<l.length;a++)u.edits[l[a]]=c;if(t.edits)for(l=Object.keys(t.edits),a=0;a<l.length;a++)s=l[a],s in u.edits&&(u.edits[s]=t.edits[s]);u._exportedPlot=t._exportedPlot}u.staticPlot&&(u.editable=!1,u.edits={},u.autosizable=!1,u.scrollZoom=!1,u.doubleClick=!1,u.showTips=!1,u.showLink=!1,u.displayModeBar=!1),"hover"!==u.displayModeBar||o||(u.displayModeBar=!0),"transparent"!==u.setBackground&&"function"===typeof u.setBackground||(u.setBackground=L),u._hasZeroHeight=u._hasZeroHeight||0===e.clientHeight,u._hasZeroWidth=u._hasZeroWidth||0===e.clientWidth;var f=u.scrollZoom,p=u._scrollZoom={};if(!0===f)p.cartesian=1,p.gl3d=1,p.geo=1,p.mapbox=1;else if("string"===typeof f){var d=f.split("+");for(a=0;a<d.length;a++)p[d[a]]=1}else!1!==f&&(p.gl3d=1,p.geo=1,p.mapbox=1)}function I(e,t,n){var a=r.select(e).selectAll(".plot-container").data([0]);a.enter().insert("div",":first-child").classed("plot-container plotly",!0);var o=a.selectAll(".svg-container").data([0]);o.enter().append("div").classed("svg-container",!0).style("position","relative"),o.html(""),t&&(e.data=t),n&&(e.layout=n),d.manager.fillLayout(e),o.style({width:e._fullLayout.width+"px",height:e._fullLayout.height+"px"}),e.framework=d.manager.framework(e),e.framework({data:e.data,layout:e.layout},o.node()),e.framework.setUndoPoint();var l=e.framework.svg(),s=1,u=e._fullLayout.title?e._fullLayout.title.text:"";""!==u&&u||(s=0);var c=function(){this.call(b.convertToTspans,e)},f=l.select(".title-group text").call(c);if(e._context.edits.titleText){var h=i._(e,"Click to enter Plot title");u&&u!==h||(s=.2,f.attr({"data-unformatted":h}).text(h).style({opacity:s}).on("mouseover.opacity",(function(){r.select(this).transition().duration(100).style("opacity",1)})).on("mouseout.opacity",(function(){r.select(this).transition().duration(1e3).style("opacity",0)})));var v=function(){this.call(b.makeEditable,{gd:e}).on("edit",(function(t){e.framework({layout:{title:{text:t}}}),this.text(t).call(c),this.call(v)})).on("cancel",(function(){var e=this.attr("data-unformatted");this.text(e).call(c)}))};f.call(v)}return e._context.setBackground(e,e._fullLayout.paper_bgcolor),p.addLinks(e),Promise.resolve()}function R(e){if(e=i.getGraphDiv(e),!i.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);return k.cleanData(e.data),k.cleanLayout(e.layout),e.calcdata=void 0,n.plot(e).then((function(){return e.emit("plotly_redraw"),e}))}function z(e,t,r,a){return e=i.getGraphDiv(e),p.cleanPlot([],{},e._fullData||[],e._fullLayout||{}),p.purge(e),n.plot(e,t,r,a)}function N(e,t){var n,r,a=t+1,o=[];for(n=0;n<e.length;n++)r=e[n],r<0?o.push(a+r):o.push(r);return o}function F(e,t,n){var r,a;for(r=0;r<t.length;r++){if(a=t[r],a!==parseInt(a,10))throw new Error("all values in "+n+" must be integers");if(a>=e.data.length||a<-e.data.length)throw new Error(n+" must be valid indices for gd.data.");if(t.indexOf(a,r+1)>-1||a>=0&&t.indexOf(-e.data.length+a)>-1||a<0&&t.indexOf(e.data.length+a)>-1)throw new Error("each index in "+n+" must be unique.")}}function B(e,t,n){if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if("undefined"===typeof t)throw new Error("currentIndices is a required argument.");if(Array.isArray(t)||(t=[t]),F(e,t,"currentIndices"),"undefined"===typeof n||Array.isArray(n)||(n=[n]),"undefined"!==typeof n&&F(e,n,"newIndices"),"undefined"!==typeof n&&t.length!==n.length)throw new Error("current and new indices must be of equal length.")}function V(e,t,n){var r,a;if(!Array.isArray(e.data))throw new Error("gd.data must be an array.");if("undefined"===typeof t)throw new Error("traces must be defined.");for(Array.isArray(t)||(t=[t]),r=0;r<t.length;r++)if(a=t[r],"object"!==typeof a||Array.isArray(a)||null===a)throw new Error("all values in traces array must be non-array objects");if("undefined"===typeof n||Array.isArray(n)||(n=[n]),"undefined"!==typeof n&&n.length!==t.length)throw new Error("if indices is specified, traces.length must equal indices.length")}function H(e,t,n,r){var a=i.isPlainObject(r);if(!Array.isArray(e.data))throw new Error("gd.data must be an array");if(!i.isPlainObject(t))throw new Error("update must be a key:value object");if("undefined"===typeof n)throw new Error("indices must be an integer or array of integers");for(var o in F(e,n,"indices"),t){if(!Array.isArray(t[o])||t[o].length!==n.length)throw new Error("attribute "+o+" must be an array of length equal to indices array length");if(a&&(!(o in r)||!Array.isArray(r[o])||r[o].length!==t[o].length))throw new Error("when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object")}}function U(e,t,n,r){var o,s,u,c,f,p=i.isPlainObject(r),d=[];for(var h in Array.isArray(n)||(n=[n]),n=N(n,e.data.length-1),t)for(var v=0;v<n.length;v++){if(o=e.data[n[v]],u=l(o,h),s=u.get(),c=t[h][v],!i.isArrayOrTypedArray(c))throw new Error("attribute: "+h+" index: "+v+" must be an array");if(!i.isArrayOrTypedArray(s))throw new Error("cannot extend missing or non-array attribute: "+h);if(s.constructor!==c.constructor)throw new Error("cannot extend array with an array of a different type: "+h);f=p?r[h][v]:r,a(f)||(f=-1),d.push({prop:u,target:s,insert:c,maxp:Math.floor(f)})}return d}function W(e,t,n,r,a){H(e,t,n,r);for(var o=U(e,t,n,r),i={},l={},s=0;s<o.length;s++){var u=o[s].prop,c=o[s].maxp,f=a(o[s].target,o[s].insert,c);u.set(f[0]),Array.isArray(i[u.astr])||(i[u.astr]=[]),i[u.astr].push(f[1]),Array.isArray(l[u.astr])||(l[u.astr]=[]),l[u.astr].push(o[s].target.length)}return{update:i,maxPoints:l}}function q(e,t){var n=new e.constructor(e.length+t.length);return n.set(e),n.set(t,e.length),n}function $(e,t,r,a){function o(e,t,n){var r,a;if(i.isTypedArray(e))if(n<0){var o=new e.constructor(0),l=q(e,t);n<0?(r=l,a=o):(r=o,a=l)}else if(r=new e.constructor(n),a=new e.constructor(e.length+t.length-n),n===t.length)r.set(t),a.set(e);else if(n<t.length){var s=t.length-n;r.set(t.subarray(s)),a.set(e),a.set(t.subarray(0,s),e.length)}else{var u=n-t.length,c=e.length-u;r.set(e.subarray(c)),r.set(t,u),a.set(e.subarray(0,c))}else r=e.concat(t),a=n>=0&&n<r.length?r.splice(0,r.length-n):[];return[r,a]}e=i.getGraphDiv(e);var l=W(e,t,r,a,o),s=n.redraw(e),c=[e,l.update,r,l.maxPoints];return u.add(e,n.prependTraces,c,$,arguments),s}function G(e,t,r,a){function o(e,t,n){var r,a;if(i.isTypedArray(e))if(n<=0){var o=new e.constructor(0),l=q(t,e);n<0?(r=l,a=o):(r=o,a=l)}else if(r=new e.constructor(n),a=new e.constructor(e.length+t.length-n),n===t.length)r.set(t),a.set(e);else if(n<t.length){var s=t.length-n;r.set(t.subarray(0,s)),a.set(t.subarray(s)),a.set(e,s)}else{var u=n-t.length;r.set(t),r.set(e.subarray(0,u),t.length),a.set(e.subarray(u))}else r=t.concat(e),a=n>=0&&n<r.length?r.splice(n,r.length):[];return[r,a]}e=i.getGraphDiv(e);var l=W(e,t,r,a,o),s=n.redraw(e),c=[e,l.update,r,l.maxPoints];return u.add(e,n.extendTraces,c,G,arguments),s}function Y(e,t,r){e=i.getGraphDiv(e);var a,o,l=[],s=n.deleteTraces,c=Y,f=[e,l],p=[e,t];for(V(e,t,r),Array.isArray(t)||(t=[t]),t=t.map((function(e){return i.extendFlat({},e)})),k.cleanData(t),a=0;a<t.length;a++)e.data.push(t[a]);for(a=0;a<t.length;a++)l.push(-t.length+a);if("undefined"===typeof r)return o=n.redraw(e),u.add(e,s,f,c,p),o;Array.isArray(r)||(r=[r]);try{B(e,l,r)}catch(d){throw e.data.splice(e.data.length-t.length,t.length),d}return u.startSequence(e),u.add(e,s,f,c,p),o=n.moveTraces(e,l,r),u.stopSequence(e),o}function K(e,t){e=i.getGraphDiv(e);var r,a,o=[],l=n.addTraces,s=K,c=[e,o,t],f=[e,t];if("undefined"===typeof t)throw new Error("indices must be an integer or array of integers.");for(Array.isArray(t)||(t=[t]),F(e,t,"indices"),t=N(t,e.data.length-1),t.sort(i.sorterDes),r=0;r<t.length;r+=1)a=e.data.splice(t[r],1)[0],o.push(a);var p=n.redraw(e);return u.add(e,l,c,s,f),p}function X(e,t,r){e=i.getGraphDiv(e);var a,o=[],l=[],s=X,c=X,f=[e,r,t],p=[e,t,r];if(B(e,t,r),t=Array.isArray(t)?t:[t],"undefined"===typeof r)for(r=[],a=0;a<t.length;a++)r.push(-t.length+a);for(r=Array.isArray(r)?r:[r],t=N(t,e.data.length-1),r=N(r,e.data.length-1),a=0;a<e.data.length;a++)-1===t.indexOf(a)&&o.push(e.data[a]);for(a=0;a<t.length;a++)l.push({newIndex:r[a],trace:e.data[t[a]]});for(l.sort((function(e,t){return e.newIndex-t.newIndex})),a=0;a<l.length;a+=1)o.splice(l[a].newIndex,0,l[a].trace);e.data=o;var d=n.redraw(e);return u.add(e,s,f,c,p),d}function Z(e,t,r,a){e=i.getGraphDiv(e),k.clearPromiseQueue(e);var o={};if("string"===typeof t)o[t]=r;else{if(!i.isPlainObject(t))return i.warn("Restyle fail.",t,r,a),Promise.reject();o=i.extendFlat({},t),void 0===a&&(a=r)}Object.keys(o).length&&(e.changed=!0);var l=k.coerceTraceIndices(e,a),s=ne(e,o,l),c=s.flags;c.calc&&(e.calcdata=void 0),c.clearAxisTypes&&k.clearAxisTypes(e,l,{});var f=[];c.fullReplot?f.push(n.plot):(f.push(p.previousPromises),p.supplyDefaults(e),c.markerSize&&(p.doCalcdata(e),ie(f)),c.style&&f.push(T.doTraceStyle),c.colorbars&&f.push(T.doColorBars),f.push(A)),f.push(p.rehover,p.redrag),u.add(e,Z,[e,s.undoit,s.traces],Z,[e,s.redoit,s.traces]);var d=i.syncOrAsync(f,e);return d&&d.then||(d=Promise.resolve()),d.then((function(){return e.emit("plotly_restyle",s.eventData),e}))}function J(e){return void 0===e?null:e}function Q(e,t){return t?function(t,n,r){var a=l(t,n),o=a.set;return a.set=function(t){var i=(r||"")+n;ee(i,a.get(),t,e),o(t)},a}:l}function ee(e,t,n,r){if(Array.isArray(t)||Array.isArray(n))for(var a=Array.isArray(t)?t:[],o=Array.isArray(n)?n:[],l=Math.max(a.length,o.length),s=0;s<l;s++)ee(e+"["+s+"]",a[s],o[s],r);else if(i.isPlainObject(t)||i.isPlainObject(n)){var u=i.isPlainObject(t)?t:{},c=i.isPlainObject(n)?n:{},f=i.extendFlat({},u,c);for(var p in f)ee(e+"."+p,u[p],c[p],r)}else void 0===r[e]&&(r[e]=J(t))}function te(e,t,n){for(var r in n){var a=l(e,r);ee(r,a.get(),n[r],t)}}function ne(e,t,n){var r,a=e._fullLayout,o=e._fullData,s=e.data,u=a._guiEditing,d=Q(a._preGUI,u),v=i.extendDeepAll({},t);re(t);var m,y=E.traceFlags(),g={},b={};function x(){return n.map((function(){}))}function _(e){var t=h.id2name(e);-1===m.indexOf(t)&&m.push(t)}function w(e){return"LAYOUT"+e+".autorange"}function T(e){return"LAYOUT"+e+".range"}function O(e){for(var t=e;t<o.length;t++)if(o[t]._input===s[e])return o[t]}function M(r,o,i){if(Array.isArray(r))r.forEach((function(e){M(e,o,i)}));else if(!(r in t)&&!k.hasParent(t,r)){var l;if("LAYOUT"===r.substr(0,6))l=d(e.layout,r.replace("LAYOUT",""));else{var c=n[i],f=a._tracePreGUI[O(c)._fullInput.uid];l=Q(f,u)(s[c],r)}r in b||(b[r]=x()),void 0===b[r][i]&&(b[r][i]=J(l.get())),void 0!==o&&l.set(o)}}function S(e){return function(t){return o[t][e]}}function C(e){return function(t,r){return!1===t?o[n[r]][e]:null}}for(var A in t){if(k.hasParent(t,A))throw new Error("cannot set "+A+" and a parent attribute simultaneously");var P,L,D,j,I,R,z=t[A];if("autobinx"!==A&&"autobiny"!==A||(A=A.charAt(A.length-1)+"bins",z=Array.isArray(z)?z.map(C(A)):!1===z?n.map(S(A)):null),g[A]=z,"LAYOUT"!==A.substr(0,6)){for(b[A]=x(),r=0;r<n.length;r++){P=s[n[r]],L=O(n[r]);var N=a._tracePreGUI[L._fullInput.uid];if(D=Q(N,u)(P,A),j=D.get(),I=Array.isArray(z)?z[r%z.length]:z,void 0!==I){var F=D.parts[D.parts.length-1],B=A.substr(0,A.length-F.length-1),V=B?B+".":"",H=B?l(L,B).get():L;if(R=f.getTraceValObject(L,D.parts),R&&R.impliedEdits&&null!==I)for(var U in R.impliedEdits)M(i.relativeAttr(A,U),R.impliedEdits[U],r);else if("thicknessmode"!==F&&"lenmode"!==F||j===I||"fraction"!==I&&"pixels"!==I||!H){if("type"===A&&("pie"===I!==("pie"===j)||"funnelarea"===I!==("funnelarea"===j))){var W="x",q="y";"bar"!==I&&"bar"!==j||"h"!==P.orientation||(W="y",q="x"),i.swapAttrs(P,["?","?src"],"labels",W),i.swapAttrs(P,["d?","?0"],"label",W),i.swapAttrs(P,["?","?src"],"values",q),"pie"===j||"funnelarea"===j?(l(P,"marker.color").set(l(P,"marker.colors").get()),a._pielayer.selectAll("g.trace").remove()):c.traceIs(P,"cartesian")&&l(P,"marker.colors").set(l(P,"marker.color").get())}}else{var $=a._size,G=H.orient,Y="top"===G||"bottom"===G;if("thicknessmode"===F){var K=Y?$.h:$.w;M(V+"thickness",H.thickness*("fraction"===I?1/K:K),r)}else{var X=Y?$.w:$.h;M(V+"len",H.len*("fraction"===I?1/X:X),r)}}b[A][r]=J(j);var Z=["swapxy","swapxyaxes","orientation","orientationaxes"];if(-1!==Z.indexOf(A)){if("orientation"===A){D.set(I);var ee=P.x&&!P.y?"h":"v";if((D.get()||ee)===L.orientation)continue}else"orientationaxes"===A&&(P.orientation={v:"h",h:"v"}[L.orientation]);k.swapXYData(P),y.calc=y.clearAxisTypes=!0}else-1!==p.dataArrayContainers.indexOf(D.parts[0])?(k.manageArrayContainers(D,I,b),y.calc=!0):(R?R.arrayOk&&!c.traceIs(L,"regl")&&(i.isArrayOrTypedArray(I)||i.isArrayOrTypedArray(j))?y.calc=!0:E.update(y,R):y.calc=!0,D.set(I))}}if(-1!==["swapxyaxes","orientationaxes"].indexOf(A)&&h.swap(e,n),"orientationaxes"===A){var te=l(e.layout,"hovermode"),ne=te.get();"x"===ne?te.set("y"):"y"===ne?te.set("x"):"x unified"===ne?te.set("y unified"):"y unified"===ne&&te.set("x unified")}if(-1!==["orientation","type"].indexOf(A)){for(m=[],r=0;r<n.length;r++){var ae=s[n[r]];c.traceIs(ae,"cartesian")&&(_(ae.xaxis||"x"),_(ae.yaxis||"y"))}M(m.map(w),!0,0),M(m.map(T),[0,1],0)}}else D=d(e.layout,A.replace("LAYOUT","")),b[A]=[J(D.get())],D.set(Array.isArray(z)?z[0]:z),y.calc=!0}return(y.calc||y.plot)&&(y.fullReplot=!0),{flags:y,undoit:b,redoit:g,traces:n,eventData:i.extendDeepNoArrays([],[v,n])}}function re(e){var t,n,r,a=i.counterRegex("axis",".title",!1,!1),o=/colorbar\.title$/,l=Object.keys(e);for(t=0;t<l.length;t++)n=l[t],r=e[n],"title"!==n&&!a.test(n)&&!o.test(n)||"string"!==typeof r&&"number"!==typeof r?n.indexOf("titlefont")>-1?s(n,n.replace("titlefont","title.font")):n.indexOf("titleposition")>-1?s(n,n.replace("titleposition","title.position")):n.indexOf("titleside")>-1?s(n,n.replace("titleside","title.side")):n.indexOf("titleoffset")>-1&&s(n,n.replace("titleoffset","title.offset")):s(n,n.replace("title","title.text"));function s(t,n){e[n]=e[t],delete e[t]}}function ae(e,t,n){if(e=i.getGraphDiv(e),k.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);var r={};if("string"===typeof t)r[t]=n;else{if(!i.isPlainObject(t))return i.warn("Relayout fail.",t,n),Promise.reject();r=i.extendFlat({},t)}Object.keys(r).length&&(e.changed=!0);var a=ce(e,r),o=a.flags;o.calc&&(e.calcdata=void 0);var l=[p.previousPromises];o.layoutReplot?l.push(T.layoutReplot):Object.keys(r).length&&(oe(e,o,a)||p.supplyDefaults(e),o.legend&&l.push(T.doLegend),o.layoutstyle&&l.push(T.layoutStyles),o.axrange&&ie(l,a.rangesAltered),o.ticks&&l.push(T.doTicksRelayout),o.modebar&&l.push(T.doModeBar),o.camera&&l.push(T.doCamera),o.colorbars&&l.push(T.doColorBars),l.push(A)),l.push(p.rehover,p.redrag),u.add(e,ae,[e,a.undoit],ae,[e,a.redoit]);var s=i.syncOrAsync(l,e);return s&&s.then||(s=Promise.resolve(e)),s.then((function(){return e.emit("plotly_relayout",a.eventData),e}))}function oe(e,t,n){var r=e._fullLayout;if(!t.axrange)return!1;for(var a in t)if("axrange"!==a&&t[a])return!1;for(var o in n.rangesAltered){var i=h.id2name(o),l=e.layout[i],s=r[i];if(s.autorange=l.autorange,s.range=l.range.slice(),s.cleanRange(),s._matchGroup)for(var u in s._matchGroup)if(u!==o){var c=r[h.id2name(u)];c.autorange=s.autorange,c.range=s.range.slice(),c._input.range=s.range.slice()}}return!0}function ie(e,t){var n=t?function(e){var n=[],r=!0;for(var a in t){var o=h.getFromId(e,a);if(n.push(a),o._matchGroup)for(var i in o._matchGroup)t[i]||n.push(i);o.automargin&&(r=!1)}return h.draw(e,n,{skipTitle:r})}:function(e){return h.draw(e,"redraw")};e.push(x,T.doAutoRangeAndConstraints,n,T.drawData,T.finalDraw)}var le=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,se=/^[xyz]axis[0-9]*\.autorange$/,ue=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function ce(e,t){var n,r,a,o=e.layout,s=e._fullLayout,u=s._guiEditing,p=Q(s._preGUI,u),d=Object.keys(t),v=h.list(e),m=i.extendDeepAll({},t),y={};for(re(t),d=Object.keys(t),r=0;r<d.length;r++)if(0===d[r].indexOf("allaxes")){for(a=0;a<v.length;a++){var g=v[a]._id.substr(1),b=-1!==g.indexOf("scene")?g+".":"",x=d[r].replace("allaxes",b+v[a]._name);t[x]||(t[x]=t[d[r]])}delete t[d[r]]}var _=E.layoutFlags(),T={},M={};function S(e,n){if(Array.isArray(e))e.forEach((function(e){S(e,n)}));else if(!(e in t)&&!k.hasParent(t,e)){var r=p(o,e);e in M||(M[e]=J(r.get())),void 0!==n&&r.set(n)}}var C,A={};function P(e){var t=h.name2id(e.split(".")[0]);return A[t]=1,t}for(var L in t){if(k.hasParent(t,L))throw new Error("cannot set "+L+" and a parent attribute simultaneously");var D=p(o,L),j=t[L],I=D.parts.length,R=I-1;while(R>0&&"string"!==typeof D.parts[R])R--;var z=D.parts[R],N=D.parts[R-1]+"."+z,F=D.parts.slice(0,R).join("."),B=l(e.layout,F).get(),V=l(s,F).get(),H=D.get();if(void 0!==j){T[L]=j,M[L]="reverse"===z?j:J(H);var U=f.getLayoutValObject(s,D.parts);if(U&&U.impliedEdits&&null!==j)for(var W in U.impliedEdits)S(i.relativeAttr(L,W),U.impliedEdits[W]);if(-1!==["width","height"].indexOf(L))if(j){S("autosize",null);var q="height"===L?"width":"height";S(q,s[q])}else s[L]=e._initialAutoSize[L];else if("autosize"===L)S("width",j?null:s.width),S("height",j?null:s.height);else if(N.match(le))P(N),l(s,F+"._inputRange").set(null);else if(N.match(se)){P(N),l(s,F+"._inputRange").set(null);var $=l(s,F).get();$._inputDomain&&($._input.domain=$._inputDomain.slice())}else N.match(ue)&&l(s,F+"._inputDomain").set(null);if("type"===z){var G=B,Y="linear"===V.type&&"log"===j,K="log"===V.type&&"linear"===j;if(Y||K){if(G&&G.range)if(V.autorange)Y&&(G.range=G.range[1]>G.range[0]?[1,2]:[2,1]);else{var X=G.range[0],Z=G.range[1];Y?(X<=0&&Z<=0&&S(F+".autorange",!0),X<=0?X=Z/1e6:Z<=0&&(Z=X/1e6),S(F+".range[0]",Math.log(X)/Math.LN10),S(F+".range[1]",Math.log(Z)/Math.LN10)):(S(F+".range[0]",Math.pow(10,X)),S(F+".range[1]",Math.pow(10,Z)))}else S(F+".autorange",!0);Array.isArray(s._subplots.polar)&&s._subplots.polar.length&&s[D.parts[0]]&&"radialaxis"===D.parts[1]&&delete s[D.parts[0]]._subplot.viewInitial["radialaxis.range"],c.getComponentMethod("annotations","convertCoords")(e,V,j,S),c.getComponentMethod("images","convertCoords")(e,V,j,S)}else S(F+".autorange",!0),S(F+".range",null);l(s,F+"._inputRange").set(null)}else if(z.match(O)){var ee=l(s,L).get(),te=(j||{}).type;te&&"-"!==te||(te="linear"),c.getComponentMethod("annotations","convertCoords")(e,ee,te,S),c.getComponentMethod("images","convertCoords")(e,ee,te,S)}var ne=w.containerArrayMatch(L);if(ne){n=ne.array,r=ne.index;var ae=ne.property,oe=U||{editType:"calc"};""!==r&&""===ae&&(w.isAddVal(j)?M[L]=null:w.isRemoveVal(j)?M[L]=(l(o,n).get()||[])[r]:i.warn("unrecognized full object value",t)),E.update(_,oe),y[n]||(y[n]={});var ie=y[n][r];ie||(ie=y[n][r]={}),ie[ae]=j,delete t[L]}else"reverse"===z?(B.range?B.range.reverse():(S(F+".autorange",!0),B.range=[1,0]),V.autorange?_.calc=!0:_.plot=!0):(s._has("scatter-like")&&s._has("regl")&&"dragmode"===L&&("lasso"===j||"select"===j)&&"lasso"!==H&&"select"!==H||s._has("gl2d")?_.plot=!0:U?E.update(_,U):_.calc=!0,D.set(j))}}for(n in y){var ce=w.applyContainerArrayChanges(e,p(o,n),y[n],_,p);ce||(_.plot=!0)}var pe=s._axisConstraintGroups||[];for(C in A)for(r=0;r<pe.length;r++){var de=pe[r];if(de[C])for(var he in _.calc=!0,de)A[he]||(h.getFromId(e,he)._constraintShrinkable=!0)}return(fe(e)||t.height||t.width)&&(_.plot=!0),(_.plot||_.calc)&&(_.layoutReplot=!0),{flags:_,rangesAltered:A,undoit:M,redoit:T,eventData:m}}function fe(e){var t=e._fullLayout,n=t.width,r=t.height;return e.layout.autosize&&p.plotAutoSize(e,e.layout,t),t.width!==n||t.height!==r}function pe(e,t,r,a){if(e=i.getGraphDiv(e),k.clearPromiseQueue(e),e.framework&&e.framework.isPolar)return Promise.resolve(e);i.isPlainObject(t)||(t={}),i.isPlainObject(r)||(r={}),Object.keys(t).length&&(e.changed=!0),Object.keys(r).length&&(e.changed=!0);var o=k.coerceTraceIndices(e,a),l=ne(e,i.extendFlat({},t),o),s=l.flags,c=ce(e,i.extendFlat({},r)),f=c.flags;(s.calc||f.calc)&&(e.calcdata=void 0),s.clearAxisTypes&&k.clearAxisTypes(e,o,r);var d=[];f.layoutReplot?d.push(T.layoutReplot):s.fullReplot?d.push(n.plot):(d.push(p.previousPromises),oe(e,f,c)||p.supplyDefaults(e),s.style&&d.push(T.doTraceStyle),(s.colorbars||f.colorbars)&&d.push(T.doColorBars),f.legend&&d.push(T.doLegend),f.layoutstyle&&d.push(T.layoutStyles),f.axrange&&ie(d,c.rangesAltered),f.ticks&&d.push(T.doTicksRelayout),f.modebar&&d.push(T.doModeBar),f.camera&&d.push(T.doCamera),d.push(A)),d.push(p.rehover,p.redrag),u.add(e,pe,[e,l.undoit,c.undoit,l.traces],pe,[e,l.redoit,c.redoit,l.traces]);var h=i.syncOrAsync(d,e);return h&&h.then||(h=Promise.resolve(e)),h.then((function(){return e.emit("plotly_update",{data:l.eventData,layout:c.eventData}),e}))}function de(e){return function(t){t._fullLayout._guiEditing=!0;var n=e.apply(null,arguments);return t._fullLayout._guiEditing=!1,n}}var he=[{pattern:/^hiddenlabels/,attr:"legend.uirevision"},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:"modebar.uirevision"},{pattern:/(hover|drag)mode$/,attr:"modebar.uirevision"},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:"editrevision"},{pattern:/^(shapes|annotations)/,attr:"editrevision"},{pattern:/^title\.text$/,attr:"editrevision"}],ve=[{pattern:/^selectedpoints$/,attr:"selectionrevision"},{pattern:/(^|value\.)visible$/,attr:"legend.uirevision"},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:"editrevision"}];function me(e,t){for(var n=0;n<t.length;n++){var r=t[n],a=e.match(r.pattern);if(a)return{head:a[1],attr:r.attr}}}function ye(e,t){var n=l(t,e).get();if(void 0!==n)return n;var r=e.split(".");r.pop();while(r.length>1)if(r.pop(),n=l(t,r.join(".")+".uirevision").get(),void 0!==n)return n;return t.uirevision}function ge(e,t){for(var n=0;n<t.length;n++)if(t[n]._fullInput.uid===e)return n;return-1}function be(e,t,n){for(var r=0;r<t.length;r++)if(t[r].uid===e)return r;return!t[n]||t[n].uid?-1:n}function xe(e,t){var n=i.isPlainObject(e),r=Array.isArray(e);return n||r?(n&&i.isPlainObject(t)||r&&Array.isArray(t))&&JSON.stringify(e)===JSON.stringify(t):e===t}function _e(e,t,n,r){var a,o,s,u,c,f,p,d,h=r._preGUI,v=[],m={};for(a in h){if(c=me(a,he),c){if(o=c.attr||c.head+".uirevision",s=l(r,o).get(),u=s&&ye(o,t),u&&u===s&&(f=h[a],null===f&&(f=void 0),p=l(t,a),d=p.get(),xe(d,f))){void 0===d&&"autorange"===a.substr(a.length-9)&&v.push(a.substr(0,a.length-10)),p.set(J(l(r,a).get()));continue}}else i.warn("unrecognized GUI edit: "+a);delete h[a],"range["===a.substr(a.length-8,6)&&(m[a.substr(0,a.length-9)]=1)}for(var y=0;y<v.length;y++){var g=v[y];if(m[g]){var b=l(t,g).get();b&&delete b.autorange}}var x=r._tracePreGUI;for(var _ in x){var w,k=x[_],T=null;for(a in k){if(!T){var E=ge(_,n);if(E<0){delete x[_];break}var O=n[E];w=O._fullInput;var M=be(_,e,w.index);if(M<0){delete x[_];break}T=e[M]}if(c=me(a,ve),c){if(c.attr?(s=l(r,c.attr).get(),u=s&&ye(c.attr,t)):(s=w.uirevision,u=T.uirevision,void 0===u&&(u=t.uirevision)),u&&u===s&&(f=k[a],null===f&&(f=void 0),p=l(T,a),d=p.get(),xe(d,f))){p.set(J(l(w,a).get()));continue}}else i.warn("unrecognized GUI edit: "+a+" in trace uid "+_);delete k[a]}}}function we(e,t,r,a){var o,l;function s(){return n.addFrames(e,o)}e=i.getGraphDiv(e),k.clearPromiseQueue(e);var u=e._fullData,f=e._fullLayout;if(i.isPlotDiv(e)&&u&&f){if(i.isPlainObject(t)){var d=t;t=d.data,r=d.layout,a=d.config,o=d.frames}var h=!1;if(a){var v=i.extendDeep({},e._context);e._context=void 0,j(e,a),h=Oe(v,e._context)}e.data=t||[],k.cleanData(e.data),e.layout=r||{},k.cleanLayout(e.layout),_e(e.data,e.layout,u,f);for(var m=Object.getOwnPropertyNames(f),y=0;y<m.length;y++){var g=m[y],b=g.substring(0,5);if("xaxis"===b||"yaxis"===b){var x=f[g]._emptyCategories;x&&x()}}p.supplyDefaults(e,{skipUpdateCalc:!0});var _=e._fullData,w=e._fullLayout,E=void 0===w.datarevision,O=w.transition,M=Te(e,f,w,E,O),S=M.newDataRevision,C=ke(e,u,_,E,O,S);fe(e)&&(M.layoutReplot=!0),C.calc||M.calc?e.calcdata=void 0:p.supplyDefaultsUpdateCalc(e.calcdata,_);var P=[];if(o&&(e._transitionData={},p.createTransitionData(e),P.push(s)),w.transition&&!h&&(C.anim||M.anim))M.ticks&&P.push(T.doTicksRelayout),p.doCalcdata(e),T.doAutoRangeAndConstraints(e),P.push((function(){return p.transitionFromReact(e,C,M,f)}));else if(C.fullReplot||M.layoutReplot||h)e._fullLayout._skipDefaults=!0,P.push(n.plot);else{for(var L in M.arrays){var D=M.arrays[L];if(D.length){var I=c.getComponentMethod(L,"drawOne");if(I!==i.noop)for(var R=0;R<D.length;R++)I(e,D[R]);else{var z=c.getComponentMethod(L,"draw");if(z===i.noop)throw new Error("cannot draw components: "+L);z(e)}}}P.push(p.previousPromises),C.style&&P.push(T.doTraceStyle),(C.colorbars||M.colorbars)&&P.push(T.doColorBars),M.legend&&P.push(T.doLegend),M.layoutstyle&&P.push(T.layoutStyles),M.axrange&&ie(P),M.ticks&&P.push(T.doTicksRelayout),M.modebar&&P.push(T.doModeBar),M.camera&&P.push(T.doCamera),P.push(A)}P.push(p.rehover,p.redrag),l=i.syncOrAsync(P,e),l&&l.then||(l=Promise.resolve(e))}else l=n.newPlot(e,t,r,a);return l.then((function(){return e.emit("plotly_react",{data:t,layout:r}),e}))}function ke(e,t,n,r,a,o){var i=t.length===n.length;if(!a&&!i)return{fullReplot:!0,calc:!0};var l,s,u=E.traceFlags();function c(e){var t=f.getTraceValObject(s,e);return!s._module.animatable&&t.anim&&(t.anim=!1),t}u.arrays={},u.nChanges=0,u.nChangesAnim=0;var d={getValObject:c,flags:u,immutable:r,transition:a,newDataRevision:o,gd:e},h={};for(l=0;l<t.length;l++)if(n[l]){if(s=n[l]._fullInput,p.hasMakesDataTransform(s)&&(s=n[l]),h[s.uid])continue;h[s.uid]=1,Ee(t[l]._fullInput,s,[],d)}return(u.calc||u.plot)&&(u.fullReplot=!0),a&&u.nChanges&&u.nChangesAnim&&(u.anim=u.nChanges===u.nChangesAnim&&i?"all":"some"),u}function Te(e,t,n,r,a){var o=E.layoutFlags();function i(e){return f.getLayoutValObject(n,e)}o.arrays={},o.rangesAltered={},o.nChanges=0,o.nChangesAnim=0;var l={getValObject:i,flags:o,immutable:r,transition:a,gd:e};return Ee(t,n,[],l),(o.plot||o.calc)&&(o.layoutReplot=!0),a&&o.nChanges&&o.nChangesAnim&&(o.anim=o.nChanges===o.nChangesAnim?"all":"some"),o}function Ee(e,t,n,r){var a,o,s,u=r.getValObject,c=r.flags,f=r.immutable,p=r.inArray,d=r.arrayIndex;function h(){var e=a.editType;p&&-1!==e.indexOf("arraydraw")?i.pushUnique(c.arrays[p],d):(E.update(c,a),"none"!==e&&c.nChanges++,r.transition&&a.anim&&c.nChangesAnim++,(le.test(s)||se.test(s))&&(c.rangesAltered[n[0]]=1),ue.test(s)&&l(t,"_inputDomain").set(null),"datarevision"===o&&(c.newDataRevision=1))}function v(e){return"data_array"===e.valType||e.arrayOk}for(o in e){if(c.calc&&!r.transition)return;var m=e[o],y=t[o],g=n.concat(o);if(s=g.join("."),"_"!==o.charAt(0)&&"function"!==typeof m&&m!==y){if(("tick0"===o||"dtick"===o)&&"geo"!==n[0]){var b=t.tickmode;if("auto"===b||"array"===b||!b)continue}if(("range"!==o||!t.autorange)&&("zmin"!==o&&"zmax"!==o||"contourcarpet"!==t.type)&&(a=u(g),a&&(!a._compareAsJSON||JSON.stringify(m)!==JSON.stringify(y)))){var x,_=a.valType,w=v(a),k=Array.isArray(m),T=Array.isArray(y);if(k&&T){var O="_input_"+o,M=e[O],S=t[O];if(Array.isArray(M)&&M===S)continue}if(void 0===y)w&&k?c.calc=!0:h();else if(a._isLinkedToArray){var C=[],A=!1;p||(c.arrays[o]=C);var P=Math.min(m.length,y.length),L=Math.max(m.length,y.length);if(P!==L){if("arraydraw"!==a.editType){h();continue}A=!0}for(x=0;x<P;x++)Ee(m[x],y[x],g.concat(x),i.extendFlat({inArray:o,arrayIndex:x},r));if(A)for(x=P;x<L;x++)C.push(x)}else!_&&i.isPlainObject(m)?Ee(m,y,g,r):w?k&&T?(f&&(c.calc=!0),(f||r.newDataRevision)&&h()):k!==T?c.calc=!0:h():k&&T&&m.length===y.length&&String(m)===String(y)||h()}}}for(o in t)if(!(o in e)&&"_"!==o.charAt(0)&&"function"!==typeof t[o]){if(a=u(n.concat(o)),v(a)&&Array.isArray(t[o]))return void(c.calc=!0);h()}}function Oe(e,t){var n;for(n in e)if("_"!==n.charAt(0)){var r=e[n],a=t[n];if(r!==a)if(i.isPlainObject(r)&&i.isPlainObject(a)){if(Oe(r,a))return!0}else{if(!Array.isArray(r)||!Array.isArray(a))return!0;if(r.length!==a.length)return!0;for(var o=0;o<r.length;o++)if(r[o]!==a[o]){if(!i.isPlainObject(r[o])||!i.isPlainObject(a[o]))return!0;if(Oe(r[o],a[o]))return!0}}}}function Me(e,t,n){if(e=i.getGraphDiv(e),!i.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/");var r=e._transitionData;r._frameQueue||(r._frameQueue=[]),n=p.supplyAnimationDefaults(n);var a=n.transition,o=n.frame;function l(e){return Array.isArray(a)?e>=a.length?a[0]:a[e]:a}function s(e){return Array.isArray(o)?e>=o.length?o[0]:o[e]:o}function u(e,t){var n=0;return function(){if(e&&++n===t)return e()}}return void 0===r._frameWaitingCnt&&(r._frameWaitingCnt=0),new Promise((function(o,c){function f(){if(0!==r._frameQueue.length){while(r._frameQueue.length){var t=r._frameQueue.pop();t.onInterrupt&&t.onInterrupt()}e.emit("plotly_animationinterrupted",[])}}function d(t){if(0!==t.length){for(var a=0;a<t.length;a++){var i;i="byname"===t[a].type?p.computeFrame(e,t[a].name):t[a].data;var f=s(a),d=l(a);d.duration=Math.min(d.duration,f.duration);var h={frame:i,name:t[a].name,frameOpts:f,transitionOpts:d};a===t.length-1&&(h.onComplete=u(o,2),h.onInterrupt=c),r._frameQueue.push(h)}"immediate"===n.mode&&(r._lastFrameAt=-1/0),r._animationRaf||m()}}function h(){e.emit("plotly_animated"),window.cancelAnimationFrame(r._animationRaf),r._animationRaf=null}function v(){r._currentFrame&&r._currentFrame.onComplete&&r._currentFrame.onComplete();var t=r._currentFrame=r._frameQueue.shift();if(t){var n=t.name?t.name.toString():null;e._fullLayout._currentFrame=n,r._lastFrameAt=Date.now(),r._timeToNext=t.frameOpts.duration,p.transition(e,t.frame.data,t.frame.layout,k.coerceTraceIndices(e,t.frame.traces),t.frameOpts,t.transitionOpts).then((function(){t.onComplete&&t.onComplete()})),e.emit("plotly_animatingframe",{name:n,frame:t.frame,animation:{frame:t.frameOpts,transition:t.transitionOpts}})}else h()}function m(){e.emit("plotly_animating"),r._lastFrameAt=-1/0,r._timeToNext=0,r._runningTransitions=0,r._currentFrame=null;var t=function(){r._animationRaf=window.requestAnimationFrame(t),Date.now()-r._lastFrameAt>r._timeToNext&&v()};t()}var y,g,b=0;function x(e){return Array.isArray(a)?b>=a.length?e.transitionOpts=a[b]:e.transitionOpts=a[0]:e.transitionOpts=a,b++,e}var _=[],w=void 0===t||null===t,T=Array.isArray(t),E=!w&&!T&&i.isPlainObject(t);if(E)_.push({type:"object",data:x(i.extendFlat({},t))});else if(w||-1!==["string","number"].indexOf(typeof t))for(y=0;y<r._frames.length;y++)g=r._frames[y],g&&(w||String(g.group)===String(t))&&_.push({type:"byname",name:String(g.name),data:x({name:g.name})});else if(T)for(y=0;y<t.length;y++){var O=t[y];-1!==["number","string"].indexOf(typeof O)?(O=String(O),_.push({type:"byname",name:O,data:x({name:O})})):i.isPlainObject(O)&&_.push({type:"object",data:x(i.extendFlat({},O))})}for(y=0;y<_.length;y++)if(g=_[y],"byname"===g.type&&!r._frameHash[g.data.name])return i.warn('animate failure: frame not found: "'+g.data.name+'"'),void c();-1!==["next","immediate"].indexOf(n.mode)&&f(),"reverse"===n.direction&&_.reverse();var M=e._fullLayout._currentFrame;if(M&&n.fromcurrent){var S=-1;for(y=0;y<_.length;y++)if(g=_[y],"byname"===g.type&&g.name===M){S=y;break}if(S>0&&S<_.length-1){var C=[];for(y=0;y<_.length;y++)g=_[y],("byname"!==_[y].type||y>S)&&C.push(g);_=C}}_.length>0?d(_):(e.emit("plotly_animated"),o())}))}function Se(e,t,n){if(e=i.getGraphDiv(e),null===t||void 0===t)return Promise.resolve();if(!i.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e+". It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/");var r,a,o,l,s=e._transitionData._frames,c=e._transitionData._frameHash;if(!Array.isArray(t))throw new Error("addFrames failure: frameList must be an Array of frame definitions"+t);var f=s.length+2*t.length,d=[],h={};for(r=t.length-1;r>=0;r--)if(i.isPlainObject(t[r])){var v=t[r].name,m=(c[v]||h[v]||{}).name,y=t[r].name,g=c[m]||h[m];m&&y&&"number"===typeof y&&g&&M<S&&(M++,i.warn('addFrames: overwriting frame "'+(c[m]||h[m]).name+'" with a frame whose name of type "number" also equates to "'+m+'". This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),M===S&&i.warn("addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.")),h[v]={name:v},d.push({frame:p.supplyFrameDefaults(t[r]),index:n&&void 0!==n[r]&&null!==n[r]?n[r]:f+r})}d.sort((function(e,t){return e.index>t.index?-1:e.index<t.index?1:0}));var b=[],x=[],_=s.length;for(r=d.length-1;r>=0;r--){if(a=d[r].frame,"number"===typeof a.name&&i.warn("Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings"),!a.name)while(c[a.name="frame "+e._transitionData._counter++]);if(c[a.name]){for(o=0;o<s.length;o++)if((s[o]||{}).name===a.name)break;b.push({type:"replace",index:o,value:a}),x.unshift({type:"replace",index:o,value:s[o]})}else l=Math.max(0,Math.min(d[r].index,_)),b.push({type:"insert",index:l,value:a}),x.unshift({type:"delete",index:l}),_++}var w=p.modifyFrames,k=p.modifyFrames,T=[e,x],E=[e,b];return u&&u.add(e,w,T,k,E),p.modifyFrames(e,b)}function Ce(e,t){if(e=i.getGraphDiv(e),!i.isPlotDiv(e))throw new Error("This element is not a Plotly plot: "+e);var n,r,a=e._transitionData._frames,o=[],l=[];if(!t)for(t=[],n=0;n<a.length;n++)t.push(n);for(t=t.slice(),t.sort(),n=t.length-1;n>=0;n--)r=t[n],o.push({type:"delete",index:r}),l.unshift({type:"insert",index:r,value:a[r]});var s=p.modifyFrames,c=p.modifyFrames,f=[e,l],d=[e,o];return u&&u.add(e,s,f,c,d),p.modifyFrames(e,o)}function Ae(e){e=i.getGraphDiv(e);var t=e._fullLayout||{},n=e._fullData||[];return p.cleanPlot([],{},n,t),p.purge(e),s.purge(e),t._container&&t._container.remove(),delete e._context,e}function Pe(e){var t=r.select(e),n=e._fullLayout;if(n._container=t.selectAll(".plot-container").data([0]),n._container.enter().insert("div",":first-child").classed("plot-container",!0).classed("plotly",!0),n._paperdiv=n._container.selectAll(".svg-container").data([0]),n._paperdiv.enter().append("div").classed("user-select-none",!0).classed("svg-container",!0).style("position","relative"),n._glcontainer=n._paperdiv.selectAll(".gl-container").data([{}]),n._glcontainer.enter().append("div").classed("gl-container",!0),n._paperdiv.selectAll(".main-svg").remove(),n._paperdiv.select(".modebar-container").remove(),n._paper=n._paperdiv.insert("svg",":first-child").classed("main-svg",!0),n._toppaper=n._paperdiv.append("svg").classed("main-svg",!0),n._modebardiv=n._paperdiv.append("div"),delete n._modeBar,n._hoverpaper=n._paperdiv.append("svg").classed("main-svg",!0),!n._uid){var a={};r.selectAll("defs").each((function(){this.id&&(a[this.id.split("-")[1]]=1)})),n._uid=i.randstr(a)}n._paperdiv.selectAll(".main-svg").attr(g.svgAttrs),n._defs=n._paper.append("defs").attr("id","defs-"+n._uid),n._clips=n._defs.append("g").classed("clips",!0),n._topdefs=n._toppaper.append("defs").attr("id","topdefs-"+n._uid),n._topclips=n._topdefs.append("g").classed("clips",!0),n._bgLayer=n._paper.append("g").classed("bglayer",!0),n._draggers=n._paper.append("g").classed("draglayer",!0);var o=n._paper.append("g").classed("layer-below",!0);n._imageLowerLayer=o.append("g").classed("imagelayer",!0),n._shapeLowerLayer=o.append("g").classed("shapelayer",!0),n._cartesianlayer=n._paper.append("g").classed("cartesianlayer",!0),n._polarlayer=n._paper.append("g").classed("polarlayer",!0),n._ternarylayer=n._paper.append("g").classed("ternarylayer",!0),n._geolayer=n._paper.append("g").classed("geolayer",!0),n._funnelarealayer=n._paper.append("g").classed("funnelarealayer",!0),n._pielayer=n._paper.append("g").classed("pielayer",!0),n._treemaplayer=n._paper.append("g").classed("treemaplayer",!0),n._sunburstlayer=n._paper.append("g").classed("sunburstlayer",!0),n._indicatorlayer=n._toppaper.append("g").classed("indicatorlayer",!0),n._glimages=n._paper.append("g").classed("glimages",!0);var l=n._toppaper.append("g").classed("layer-above",!0);n._imageUpperLayer=l.append("g").classed("imagelayer",!0),n._shapeUpperLayer=l.append("g").classed("shapelayer",!0),n._infolayer=n._toppaper.append("g").classed("infolayer",!0),n._menulayer=n._toppaper.append("g").classed("menulayer",!0),n._zoomlayer=n._toppaper.append("g").classed("zoomlayer",!0),n._hoverlayer=n._hoverpaper.append("g").classed("hoverlayer",!0),n._modebardiv.classed("modebar-container",!0).style("position","absolute").style("top","0px").style("right","0px"),e.emit("plotly_framework")}n.animate=Me,n.addFrames=Se,n.deleteFrames=Ce,n.addTraces=Y,n.deleteTraces=K,n.extendTraces=$,n.moveTraces=X,n.prependTraces=G,n.newPlot=z,n.plot=C,n.purge=Ae,n.react=we,n.redraw=R,n.relayout=ae,n.restyle=Z,n.setPlotConfig=P,n.update=pe,n._guiRelayout=de(ae),n._guiRestyle=de(Z),n._guiUpdate=de(pe),n._storeDirectGUIEdit=te},{"../components/color":615,"../components/drawing":637,"../constants/xmlns_namespaces":726,"../lib":750,"../lib/events":739,"../lib/queue":765,"../lib/svg_text_utils":774,"../plots/cartesian/axes":799,"../plots/cartesian/constants":805,"../plots/cartesian/graph_interact":808,"../plots/cartesian/select":818,"../plots/plots":862,"../plots/polar/legacy":870,"../registry":882,"./edit_types":781,"./helpers":782,"./manage_arrays":784,"./plot_config":786,"./plot_schema":787,"./subroutines":789,d3:169,"fast-isnumeric":241,"has-hover":414}],786:[function(e,t,n){"use strict";var r={staticPlot:{valType:"boolean",dflt:!1},plotlyServerURL:{valType:"string",dflt:""},editable:{valType:"boolean",dflt:!1},edits:{annotationPosition:{valType:"boolean",dflt:!1},annotationTail:{valType:"boolean",dflt:!1},annotationText:{valType:"boolean",dflt:!1},axisTitleText:{valType:"boolean",dflt:!1},colorbarPosition:{valType:"boolean",dflt:!1},colorbarTitleText:{valType:"boolean",dflt:!1},legendPosition:{valType:"boolean",dflt:!1},legendText:{valType:"boolean",dflt:!1},shapePosition:{valType:"boolean",dflt:!1},titleText:{valType:"boolean",dflt:!1}},autosizable:{valType:"boolean",dflt:!1},responsive:{valType:"boolean",dflt:!1},fillFrame:{valType:"boolean",dflt:!1},frameMargins:{valType:"number",dflt:0,min:0,max:.5},scrollZoom:{valType:"flaglist",flags:["cartesian","gl3d","geo","mapbox"],extras:[!0,!1],dflt:"gl3d+geo+mapbox"},doubleClick:{valType:"enumerated",values:[!1,"reset","autosize","reset+autosize"],dflt:"reset+autosize"},doubleClickDelay:{valType:"number",dflt:300,min:0},showAxisDragHandles:{valType:"boolean",dflt:!0},showAxisRangeEntryBoxes:{valType:"boolean",dflt:!0},showTips:{valType:"boolean",dflt:!0},showLink:{valType:"boolean",dflt:!1},linkText:{valType:"string",dflt:"Edit chart",noBlank:!0},sendData:{valType:"boolean",dflt:!0},showSources:{valType:"any",dflt:!1},displayModeBar:{valType:"enumerated",values:["hover",!0,!1],dflt:"hover"},showSendToCloud:{valType:"boolean",dflt:!1},showEditInChartStudio:{valType:"boolean",dflt:!1},modeBarButtonsToRemove:{valType:"any",dflt:[]},modeBarButtonsToAdd:{valType:"any",dflt:[]},modeBarButtons:{valType:"any",dflt:!1},toImageButtonOptions:{valType:"any",dflt:{}},displaylogo:{valType:"boolean",dflt:!0},watermark:{valType:"boolean",dflt:!1},plotGlPixelRatio:{valType:"number",dflt:2,min:1,max:4},setBackground:{valType:"any",dflt:"transparent"},topojsonURL:{valType:"string",noBlank:!0,dflt:"https://cdn.plot.ly/"},mapboxAccessToken:{valType:"string",dflt:null},logging:{valType:"integer",min:0,max:2,dflt:1},notifyOnLogging:{valType:"integer",min:0,max:2,dflt:0},queueLength:{valType:"integer",min:0,dflt:0},globalTransforms:{valType:"any",dflt:[]},locale:{valType:"string",dflt:"en-US"},locales:{valType:"any",dflt:{}}},a={};function o(e,t){for(var n in e){var r=e[n];r.valType?t[n]=r.dflt:(t[n]||(t[n]={}),o(r,t[n]))}}o(r,a),t.exports={configAttributes:r,dfltConfig:a}},{}],787:[function(e,t,n){"use strict";var r=e("../registry"),a=e("../lib"),o=e("../plots/attributes"),i=e("../plots/layout_attributes"),l=e("../plots/frame_attributes"),s=e("../plots/animation_attributes"),u=e("./plot_config").configAttributes,c=e("../plots/polar/legacy/area_attributes"),f=e("../plots/polar/legacy/axis_attributes"),p=e("./edit_types"),d=a.extendFlat,h=a.extendDeepAll,v=a.isPlainObject,m=a.isArrayOrTypedArray,y=a.nestedProperty,g=a.valObjectMeta,b="_isSubplotObj",x="_isLinkedToArray",_="_arrayAttrRegexps",w="_deprecated",k=[b,x,_,w];function T(e,t){var n,a,o,l,s=e._basePlotModules;if(s){var u;for(n=0;n<s.length;n++){if(o=s[n],o.attrRegex&&o.attrRegex.test(t)){if(o.layoutAttrOverrides)return o.layoutAttrOverrides;!u&&o.layoutAttributes&&(u=o.layoutAttributes)}var c=o.baseLayoutAttrOverrides;if(c&&t in c)return c[t]}if(u)return u}var p=e._modules;if(p)for(n=0;n<p.length;n++)if(l=p[n].layoutAttributes,l&&t in l)return l[t];for(a in r.componentsRegistry){if(o=r.componentsRegistry[a],"colorscale"===o.name&&0===t.indexOf("coloraxis"))return o.layoutAttributes[t];if(!o.schema&&t===o.name)return o.layoutAttributes}return t in i?i[t]:"radialaxis"===t||"angularaxis"===t?f[t]:f.layout[t]||!1}function E(e,t,n){if(!e)return!1;if(e._isLinkedToArray)if(O(t[n]))n++;else if(n<t.length)return!1;for(;n<t.length;n++){var r=e[t[n]];if(!v(r))break;if(e=r,n===t.length-1)break;if(e._isLinkedToArray){if(n++,!O(t[n]))return!1}else if("info_array"===e.valType){n++;var a=t[n];if(!O(a))return!1;var o=e.items;if(Array.isArray(o)){if(a>=o.length)return!1;if(2===e.dimensions){if(n++,t.length===n)return e;var i=t[n];if(!O(i))return!1;e=o[a][i]}else e=o[a]}else e=o}}return e}function O(e){return e===Math.round(e)&&e>=0}function M(e){var t,a;"area"===e?(t={attributes:c},a={}):(t=r.modules[e]._module,a=t.basePlotModule);var i={type:null},l=h({},o),s=h({},t.attributes);n.crawl(s,(function(e,t,n,r,a){y(l,a).set(void 0),void 0===e&&y(s,a).set(void 0)})),h(i,l),r.traceIs(e,"noOpacity")&&delete i.opacity,r.traceIs(e,"showLegend")||(delete i.showlegend,delete i.legendgroup),r.traceIs(e,"noHover")&&(delete i.hoverinfo,delete i.hoverlabel),t.selectPoints||delete i.selectedpoints,h(i,s),a.attributes&&h(i,a.attributes),i.type=e;var u={meta:t.meta||{},categories:t.categories||{},animatable:Boolean(t.animatable),type:e,attributes:P(i)};if(t.layoutAttributes){var f={};h(f,t.layoutAttributes),u.layoutAttributes=P(f)}return t.animatable||n.crawl(u,(function(e){n.isValObject(e)&&"anim"in e&&delete e.anim})),u}function S(){var e,t,n={};for(e in h(n,i),r.subplotsRegistry)if(t=r.subplotsRegistry[e],t.layoutAttributes)if(Array.isArray(t.attr))for(var a=0;a<t.attr.length;a++)R(n,t,t.attr[a]);else{var o="subplot"===t.attr?t.name:t.attr;R(n,t,o)}for(e in n=I(n),r.componentsRegistry){t=r.componentsRegistry[e];var l=t.schema;if(l&&(l.subplots||l.layout)){var s=l.subplots;if(s&&s.xaxis&&!s.yaxis)for(var u in s.xaxis)delete n.yaxis[u]}else"colorscale"===t.name?h(n,t.layoutAttributes):t.layoutAttributes&&z(n,t.layoutAttributes,t.name)}return{layoutAttributes:P(n)}}function C(e){var t=r.transformsRegistry[e],n=h({},t.attributes);return Object.keys(r.componentsRegistry).forEach((function(t){var a=r.componentsRegistry[t];a.schema&&a.schema.transforms&&a.schema.transforms[e]&&Object.keys(a.schema.transforms[e]).forEach((function(t){z(n,a.schema.transforms[e][t],t)}))})),{attributes:P(n)}}function A(){var e={frames:h({},l)};return P(e),e.frames}function P(e){return L(e),D(e),j(e),e}function L(e){function t(e){return{valType:"string",editType:"none"}}function r(e,r,a){n.isValObject(e)?"data_array"===e.valType?(e.role="data",a[r+"src"]=t(r)):!0===e.arrayOk&&(a[r+"src"]=t(r)):v(e)&&(e.role="object")}n.crawl(e,r)}function D(e){function t(e,t,n){if(e){var r=e[x];r&&(delete e[x],n[t]={items:{}},n[t].items[r]=e,n[t].role="object")}}n.crawl(e,t)}function j(e){function t(e){for(var n in e)if(v(e[n]))t(e[n]);else if(Array.isArray(e[n]))for(var r=0;r<e[n].length;r++)t(e[n][r]);else e[n]instanceof RegExp&&(e[n]=e[n].toString())}t(e)}function I(e){return d(e,{radialaxis:f.radialaxis,angularaxis:f.angularaxis}),d(e,f.layout),e}function R(e,t,n){var r=y(e,n),a=h({},t.layoutAttributes);a[b]=!0,r.set(a)}function z(e,t,n){var r=y(e,n);r.set(h(r.get()||{},t))}n.IS_SUBPLOT_OBJ=b,n.IS_LINKED_TO_ARRAY=x,n.DEPRECATED=w,n.UNDERSCORE_ATTRS=k,n.get=function(){var e={};r.allTypes.concat("area").forEach((function(t){e[t]=M(t)}));var t={};return Object.keys(r.transformsRegistry).forEach((function(e){t[e]=C(e)})),{defs:{valObjects:g,metaKeys:k.concat(["description","role","editType","impliedEdits"]),editType:{traces:p.traces,layout:p.layout},impliedEdits:{}},traces:e,layout:S(),transforms:t,frames:A(),animation:P(s),config:P(u)}},n.crawl=function(e,t,r,a){var o=r||0;a=a||"",Object.keys(e).forEach((function(r){var i=e[r];if(-1===k.indexOf(r)){var l=(a?a+".":"")+r;t(i,r,e,o,l),n.isValObject(i)||v(i)&&"impliedEdits"!==r&&n.crawl(i,t,o+1,l)}}))},n.isValObject=function(e){return e&&void 0!==e.valType},n.findArrayAttributes=function(e){var t,r,a=[],i=[],l=[];function s(e,n,r,a){i=i.slice(0,a).concat([n]),l=l.slice(0,a).concat([e&&e._isLinkedToArray]);var o=e&&("data_array"===e.valType||!0===e.arrayOk)&&!("colorbar"===i[a-1]&&("ticktext"===n||"tickvals"===n));o&&u(t,0,"")}function u(e,t,n){var o=e[i[t]],s=n+i[t];if(t===i.length-1)m(o)&&a.push(r+s);else if(l[t]){if(Array.isArray(o))for(var c=0;c<o.length;c++)v(o[c])&&u(o[c],t+1,s+"["+c+"].")}else v(o)&&u(o,t+1,s+".")}t=e,r="",n.crawl(o,s),e._module&&e._module.attributes&&n.crawl(e._module.attributes,s);var c=e.transforms;if(c)for(var f=0;f<c.length;f++){var p=c[f],d=p._module;d&&(r="transforms["+f+"].",t=p,n.crawl(d.attributes,s))}return a},n.getTraceValObject=function(e,t){var n,a,i=t[0],l=1;if("transforms"===i){if(1===t.length)return o.transforms;var s=e.transforms;if(!Array.isArray(s)||!s.length)return!1;var u=t[1];if(!O(u)||u>=s.length)return!1;n=(r.transformsRegistry[s[u].type]||{}).attributes,a=n&&n[t[2]],l=3}else if("area"===e.type)a=c[i];else{var f=e._module;if(f||(f=(r.modules[e.type||o.type.dflt]||{})._module),!f)return!1;if(n=f.attributes,a=n&&n[i],!a){var p=f.basePlotModule;p&&p.attributes&&(a=p.attributes[i])}a||(a=o[i])}return E(a,t,l)},n.getLayoutValObject=function(e,t){var n=T(e,t[0]);return E(n,t,1)}},{"../lib":750,"../plots/animation_attributes":793,"../plots/attributes":795,"../plots/frame_attributes":828,"../plots/layout_attributes":853,"../plots/polar/legacy/area_attributes":868,"../plots/polar/legacy/axis_attributes":869,"../registry":882,"./edit_types":781,"./plot_config":786}],788:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plots/attributes"),o="templateitemname",i={name:{valType:"string",editType:"none"}};function l(e){return e&&"string"===typeof e}function s(e){var t=e.length-1;return"s"!==e.charAt(t)&&r.warn("bad argument to arrayDefaultKey: "+e),e.substr(0,e.length-1)+"defaults"}i[o]={valType:"string",editType:"calc"},n.templatedArray=function(e,t){return t._isLinkedToArray=e,t.name=i.name,t[o]=i[o],t},n.traceTemplater=function(e){var t,n,o={};for(t in e)n=e[t],Array.isArray(n)&&n.length&&(o[t]=0);function i(i){t=r.coerce(i,{},a,"type");var l={type:t,_template:null};if(t in o){n=e[t];var s=o[t]%n.length;o[t]++,l._template=n[s]}return l}return{newTrace:i}},n.newContainer=function(e,t,n){var a=e._template,o=a&&(a[t]||n&&a[n]);r.isPlainObject(o)||(o=null);var i=e[t]={_template:o};return i},n.arrayTemplater=function(e,t,n){var r=e._template,a=r&&r[s(t)],i=r&&r[t];Array.isArray(i)&&i.length||(i=[]);var u={};function c(e){var t={name:e.name,_input:e},r=t[o]=e[o];if(!l(r))return t._template=a,t;for(var s=0;s<i.length;s++){var c=i[s];if(c.name===r)return u[r]=1,t._template=c,t}return t[n]=e[n]||!1,t._template=!1,t}function f(){for(var e=[],t=0;t<i.length;t++){var n=i[t],r=n.name;if(l(r)&&!u[r]){var a={_template:n,name:r,_input:{_templateitemname:r}};a[o]=n[o],e.push(a),u[r]=1}}return e}return{newItem:c,defaultItems:f}},n.arrayDefaultKey=s,n.arrayEditor=function(e,t,n){var a=(r.nestedProperty(e,t).get()||[]).length,i=n._index,l=i>=a&&(n._input||{})._templateitemname;l&&(i=a);var s,u=t+"["+i+"]";function c(){s={},l&&(s[u]={},s[u][o]=l)}function f(e,t){s[e]=t}function p(e,t){l?r.nestedProperty(s[u],e).set(t):s[u+"."+e]=t}function d(){var e=s;return c(),e}function h(t,n){t&&p(t,n);var a=d();for(var o in a)r.nestedProperty(e,o).set(a[o])}return c(),{modifyBase:f,modifyItem:p,getUpdateObj:d,applyUpdate:h}}},{"../lib":750,"../plots/attributes":795}],789:[function(e,t,n){"use strict";var r=e("d3"),a=e("../registry"),o=e("../plots/plots"),i=e("../lib"),l=e("../lib/clear_gl_canvases"),s=e("../components/color"),u=e("../components/drawing"),c=e("../components/titles"),f=e("../components/modebar"),p=e("../plots/cartesian/axes"),d=e("../constants/alignment"),h=e("../plots/cartesian/constraints"),v=h.enforce,m=h.clean,y=e("../plots/cartesian/autorange").doAutoRange,g="start",b="middle",x="end";function _(e,t,n){for(var r=0;r<n.length;r++){var a=n[r][0],o=n[r][1];if(!(a[0]>=e[1]||a[1]<=e[0])&&(o[0]<t[1]&&o[1]>t[0]))return!0}return!1}function w(e){var t,a,l,c,h,v,m=e._fullLayout,y=m._size,g=y.p,b=p.list(e,"",!0);if(m._paperdiv.style({width:e._context.responsive&&m.autosize&&!e._context._hasZeroWidth&&!e.layout.width?"100%":m.width+"px",height:e._context.responsive&&m.autosize&&!e._context._hasZeroHeight&&!e.layout.height?"100%":m.height+"px"}).selectAll(".main-svg").call(u.setSize,m.width,m.height),e._context.setBackground(e,m.paper_bgcolor),n.drawMainTitle(e),f.manage(e),!m._has("cartesian"))return o.previousPromises(e);function x(e,t,n){var r=e._lw/2;return"x"===e._id.charAt(0)?t?"top"===n?t._offset-g-r:t._offset+t._length+g+r:y.t+y.h*(1-(e.position||0))+r%1:t?"right"===n?t._offset+t._length+g+r:t._offset-g-r:y.l+y.w*(e.position||0)+r%1}for(t=0;t<b.length;t++){c=b[t];var w=c._anchorAxis;c._linepositions={},c._lw=u.crispRound(e,c.linewidth,1),c._mainLinePosition=x(c,w,c.side),c._mainMirrorPosition=c.mirror&&w?x(c,w,d.OPPOSITE_SIDE[c.side]):null}var T=[],O=[],M=[],S=1===s.opacity(m.paper_bgcolor)&&1===s.opacity(m.plot_bgcolor)&&m.paper_bgcolor===m.plot_bgcolor;for(a in m._plots)if(l=m._plots[a],l.mainplot)l.bg&&l.bg.remove(),l.bg=void 0;else{var C=l.xaxis.domain,A=l.yaxis.domain,P=l.plotgroup;if(_(C,A,M)){var L=P.node(),D=l.bg=i.ensureSingle(P,"rect","bg");L.insertBefore(D.node(),L.childNodes[0]),O.push(a)}else P.select("rect.bg").remove(),M.push([C,A]),S||(T.push(a),O.push(a))}var j,I,R,z,N,F,B,V,H,U,W,q,$,G=m._bgLayer.selectAll(".bg").data(T);for(G.enter().append("rect").classed("bg",!0),G.exit().remove(),G.each((function(e){m._plots[e].bg=r.select(this)})),t=0;t<O.length;t++)l=m._plots[O[t]],h=l.xaxis,v=l.yaxis,l.bg&&l.bg.call(u.setRect,h._offset-g,v._offset-g,h._length+2*g,v._length+2*g).call(s.fill,m.plot_bgcolor).style("stroke-width",0);if(!m._hasOnlyLargeSploms)for(a in m._plots){l=m._plots[a],h=l.xaxis,v=l.yaxis;var Y,K,X=l.clipId="clip"+m._uid+a+"plot",Z=i.ensureSingleById(m._clips,"clipPath",X,(function(e){e.classed("plotclip",!0).append("rect")}));l.clipRect=Z.select("rect").attr({width:h._length,height:v._length}),u.setTranslate(l.plot,h._offset,v._offset),l._hasClipOnAxisFalse?(Y=null,K=X):(Y=X,K=null),u.setClipUrl(l.plot,Y,e),l.layerClipId=K}function J(e){return"M"+j+","+e+"H"+I}function Q(e){return"M"+h._offset+","+e+"h"+h._length}function ee(e){return"M"+e+","+V+"V"+B}function te(e){return"M"+e+","+v._offset+"v"+v._length}function ne(e,t,n){if(!e.showline||a!==e._mainSubplot)return"";if(!e._anchorAxis)return n(e._mainLinePosition);var r=t(e._mainLinePosition);return e.mirror&&(r+=t(e._mainMirrorPosition)),r}for(a in m._plots){l=m._plots[a],h=l.xaxis,v=l.yaxis;var re="M0,0";k(h,a)&&(N=E(h,"left",v,b),j=h._offset-(N?g+N:0),F=E(h,"right",v,b),I=h._offset+h._length+(F?g+F:0),R=x(h,v,"bottom"),z=x(h,v,"top"),$=!h._anchorAxis||a!==h._mainSubplot,!$||"allticks"!==h.mirror&&"all"!==h.mirror||(h._linepositions[a]=[R,z]),re=ne(h,J,Q),$&&h.showline&&("all"===h.mirror||"allticks"===h.mirror)&&(re+=J(R)+J(z)),l.xlines.style("stroke-width",h._lw+"px").call(s.stroke,h.showline?h.linecolor:"rgba(0,0,0,0)")),l.xlines.attr("d",re);var ae="M0,0";k(v,a)&&(W=E(v,"bottom",h,b),B=v._offset+v._length+(W?g:0),q=E(v,"top",h,b),V=v._offset-(q?g:0),H=x(v,h,"left"),U=x(v,h,"right"),$=!v._anchorAxis||a!==v._mainSubplot,!$||"allticks"!==v.mirror&&"all"!==v.mirror||(v._linepositions[a]=[H,U]),ae=ne(v,ee,te),$&&v.showline&&("all"===v.mirror||"allticks"===v.mirror)&&(ae+=ee(H)+ee(U)),l.ylines.style("stroke-width",v._lw+"px").call(s.stroke,v.showline?v.linecolor:"rgba(0,0,0,0)")),l.ylines.attr("d",ae)}return p.makeClipPaths(e),o.previousPromises(e)}function k(e,t){return(e.ticks||e.showline)&&(t===e._mainSubplot||"all"===e.mirror||"allticks"===e.mirror)}function T(e,t,n){if(!n.showline||!n._lw)return!1;if("all"===n.mirror||"allticks"===n.mirror)return!0;var r=n._anchorAxis;if(!r)return!1;var a=d.FROM_BL[t];return n.side===t?r.domain[a]===e.domain[a]:n.mirror&&r.domain[1-a]===e.domain[1-a]}function E(e,t,n,r){if(T(e,t,n))return n._lw;for(var a=0;a<r.length;a++){var o=r[a];if(o._mainAxis===n._mainAxis&&T(e,t,o))return o._lw}return 0}function O(e,t){var n=e.title,r=e._size,a=0;switch(t===g?a=n.pad.l:t===x&&(a=-n.pad.r),n.xref){case"paper":return r.l+r.w*n.x+a;case"container":default:return e.width*n.x+a}}function M(e,t){var n=e.title,r=e._size,a=0;if("0em"!==t&&t?t===d.CAP_SHIFT+"em"&&(a=n.pad.t):a=-n.pad.b,"auto"===n.y)return r.t/2;switch(n.yref){case"paper":return r.t+r.h-r.h*n.y+a;case"container":default:return e.height-e.height*n.y+a}}function S(e){var t=e.title,n=b;return i.isRightAnchor(t)?n=x:i.isLeftAnchor(t)&&(n=g),n}function C(e){var t=e.title,n="0em";return i.isTopAnchor(t)?n=d.CAP_SHIFT+"em":i.isMiddleAnchor(t)&&(n=d.MID_SHIFT+"em"),n}n.layoutStyles=function(e){return i.syncOrAsync([o.doAutoMargin,w],e)},n.drawMainTitle=function(e){var t=e._fullLayout,n=S(t),r=C(t);c.draw(e,"gtitle",{propContainer:t,propName:"title.text",placeholder:t._dfltTitle.plot,attributes:{x:O(t,n),y:M(t,r),"text-anchor":n,dy:r}})},n.doTraceStyle=function(e){var t,r=e.calcdata,i=[];for(t=0;t<r.length;t++){var s=r[t],u=s[0]||{},c=u.trace||{},f=c._module||{},p=f.arraysToCalcdata;p&&p(s,c);var d=f.editStyle;d&&i.push({fn:d,cd0:u})}if(i.length){for(t=0;t<i.length;t++){var h=i[t];h.fn(e,h.cd0)}l(e),n.redrawReglTraces(e)}return o.style(e),a.getComponentMethod("legend","draw")(e),o.previousPromises(e)},n.doColorBars=function(e){return a.getComponentMethod("colorbar","draw")(e),o.previousPromises(e)},n.layoutReplot=function(e){var t=e.layout;return e.layout=void 0,a.call("plot",e,"",t)},n.doLegend=function(e){return a.getComponentMethod("legend","draw")(e),o.previousPromises(e)},n.doTicksRelayout=function(e){return p.draw(e,"redraw"),e._fullLayout._hasOnlyLargeSploms&&(a.subplotsRegistry.splom.updateGrid(e),l(e),n.redrawReglTraces(e)),n.drawMainTitle(e),o.previousPromises(e)},n.doModeBar=function(e){var t=e._fullLayout;f.manage(e);for(var n=0;n<t._basePlotModules.length;n++){var r=t._basePlotModules[n].updateFx;r&&r(e)}return o.previousPromises(e)},n.doCamera=function(e){for(var t=e._fullLayout,n=t._subplots.gl3d,r=0;r<n.length;r++){var a=t[n[r]],o=a._scene;o.setViewport(a)}},n.drawData=function(e){var t=e._fullLayout;l(e);for(var r=t._basePlotModules,i=0;i<r.length;i++)r[i].plot(e);return n.redrawReglTraces(e),o.style(e),a.getComponentMethod("shapes","draw")(e),a.getComponentMethod("annotations","draw")(e),a.getComponentMethod("images","draw")(e),t._replotting=!1,o.previousPromises(e)},n.redrawReglTraces=function(e){var t=e._fullLayout;if(t._has("regl")){var n,r,a=e._fullData,o=[],l=[];for(t._hasOnlyLargeSploms&&t._splomGrid.draw(),n=0;n<a.length;n++){var s=a[n];!0===s.visible&&0!==s._length&&("splom"===s.type?t._splomScenes[s.uid].draw():"scattergl"===s.type?i.pushUnique(o,s.xaxis+s.yaxis):"scatterpolargl"===s.type&&i.pushUnique(l,s.subplot))}for(n=0;n<o.length;n++)r=t._plots[o[n]],r._scene&&r._scene.draw();for(n=0;n<l.length;n++)r=t[l[n]]._subplot,r._scene&&r._scene.draw()}},n.doAutoRangeAndConstraints=function(e){for(var t,n,r=e._fullLayout,a=p.list(e,"",!0),o=r._axisMatchGroups||[],l={},s=0;s<a.length;s++)t=a[s],m(e,t),y(e,t),l[t._id]=1;v(e);e:for(var u=0;u<o.length;u++){var c,f=o[u],d=null;for(c in f)if(t=p.getFromId(e,c),l[t._id]){if(!1===t.autorange)continue e;n=i.simpleMap(t.range,t.r2l),d?d[0]<d[1]?(d[0]=Math.min(d[0],n[0]),d[1]=Math.max(d[1],n[1])):(d[0]=Math.max(d[0],n[0]),d[1]=Math.min(d[1],n[1])):d=n}for(c in f)t=p.getFromId(e,c),t.range=i.simpleMap(d,t.l2r),t._input.range=t.range.slice(),t.setScale()}},n.finalDraw=function(e){a.getComponentMethod("rangeslider","draw")(e),a.getComponentMethod("rangeselector","draw")(e)},n.drawMarginPushers=function(e){a.getComponentMethod("legend","draw")(e),a.getComponentMethod("rangeselector","draw")(e),a.getComponentMethod("sliders","draw")(e),a.getComponentMethod("updatemenus","draw")(e),a.getComponentMethod("colorbar","draw")(e)}},{"../components/color":615,"../components/drawing":637,"../components/modebar":675,"../components/titles":710,"../constants/alignment":717,"../lib":750,"../lib/clear_gl_canvases":734,"../plots/cartesian/autorange":798,"../plots/cartesian/axes":799,"../plots/cartesian/constraints":806,"../plots/plots":862,"../registry":882,d3:169}],790:[function(e,t,n){"use strict";var r=e("../lib"),a=r.isPlainObject,o=e("./plot_schema"),i=e("../plots/plots"),l=e("../plots/attributes"),s=e("./plot_template"),u=e("./plot_config").dfltConfig;function c(e,t){e=r.extendDeep({},e);var n,o,i=Object.keys(e).sort();function l(t,n,r){if(a(n)&&a(t))c(t,n);else if(Array.isArray(n)&&Array.isArray(t)){var i=s.arrayTemplater({_template:e},r);for(o=0;o<n.length;o++){var l=n[o],u=i.newItem(l)._template;u&&c(u,l)}var f=i.defaultItems();for(o=0;o<f.length;o++)n.push(f[o]._template);for(o=0;o<n.length;o++)delete n[o].templateitemname}}for(n=0;n<i.length;n++){var u=i[n],p=e[u];if(u in t?l(p,t[u],u):t[u]=p,f(u)===u)for(var d in t){var h=f(d);d===h||h!==u||d in e||l(p,t[d],u)}}}function f(e){return e.replace(/[0-9]+$/,"")}function p(e,t,n,o,i){var l=i&&n(i);for(var u in e){var c=e[u],d=v(e,u,o),h=v(e,u,i),m=n(h);if(!m){var y=f(u);y!==u&&(h=v(e,y,i),m=n(h))}if((!l||l!==m)&&!(!m||m._noTemplating||"data_array"===m.valType||m.arrayOk&&Array.isArray(c)))if(!m.valType&&a(c))p(c,t,n,d,h);else if(m._isLinkedToArray&&Array.isArray(c))for(var g=!1,b=0,x={},_=0;_<c.length;_++){var w=c[_];if(a(w)){var k=w.name;if(k)x[k]||(p(w,t,n,v(c,b,d),v(c,b,h)),b++,x[k]=1);else if(!g){var T=s.arrayDefaultKey(u),E=v(e,T,o),O=v(c,b,d);p(w,t,n,O,v(c,b,h));var M=r.nestedProperty(t,O),S=r.nestedProperty(t,E);S.set(M.get()),M.set(null),g=!0}}}else{var C=r.nestedProperty(t,d);C.set(c)}}}function d(e,t){return o.getLayoutValObject(e,r.nestedProperty({},t).parts)}function h(e,t){return o.getTraceValObject(e,r.nestedProperty({},t).parts)}function v(e,t,n){var r;return r=n?Array.isArray(e)?n+"["+t+"]":n+"."+t:t,r}function m(e){for(var t=0;t<e.length;t++)if(a(e[t]))return!0}function y(e){var t;switch(e.code){case"data":t="The template has no key data.";break;case"layout":t="The template has no key layout.";break;case"missing":t=e.path?"There are no templates for item "+e.path+" with name "+e.templateitemname:"There are no templates for trace "+e.index+", of type "+e.traceType+".";break;case"unused":t=e.path?"The template item at "+e.path+" was not used in constructing the plot.":e.dataCount?"Some of the templates of type "+e.traceType+" were not used. The template has "+e.templateCount+" traces, the data only has "+e.dataCount+" of this type.":"The template has "+e.templateCount+" traces of type "+e.traceType+" but there are none in the data.";break;case"reused":t="Some of the templates of type "+e.traceType+" were used more than once. The template has "+e.templateCount+" traces, the data has "+e.dataCount+" of this type.";break}return e.msg=t,e}n.makeTemplate=function(e){e=r.isPlainObject(e)?e:r.getGraphDiv(e),e=r.extendDeep({_context:u},{data:e.data,layout:e.layout}),i.supplyDefaults(e);var t=e.data||[],n=e.layout||{};n._basePlotModules=e._fullLayout._basePlotModules,n._modules=e._fullLayout._modules;var o={data:{},layout:{}};t.forEach((function(e){var t={};p(e,t,h.bind(null,e));var n=r.coerce(e,{},l,"type"),a=o.data[n];a||(a=o.data[n]=[]),a.push(t)})),p(n,o.layout,d.bind(null,n)),delete o.layout.template;var s=n.template;if(a(s)){var f,v,m,y,g,b,x=s.layout;a(x)&&c(x,o.layout);var _=s.data;if(a(_)){for(v in o.data)if(m=_[v],Array.isArray(m)){for(g=o.data[v],b=g.length,y=m.length,f=0;f<b;f++)c(m[f%y],g[f]);for(f=b;f<y;f++)g.push(r.extendDeep({},m[f]))}for(v in _)v in o.data||(o.data[v]=r.extendDeep([],_[v]))}}return o},n.validateTemplate=function(e,t){var n=r.extendDeep({},{_context:u,data:e.data,layout:e.layout}),o=n.layout||{};a(t)||(t=o.template||{});var l=t.layout,s=t.data,c=[];n.layout=o,n.layout.template=t,i.supplyDefaults(n);var p=n._fullLayout,d=n._fullData,h={};function g(e,t){for(var n in e)if("_"!==n.charAt(0)&&a(e[n])){var r,o=f(n),i=[];for(r=0;r<t.length;r++)i.push(v(e,n,t[r])),o!==n&&i.push(v(e,o,t[r]));for(r=0;r<i.length;r++)h[i[r]]=1;g(e[n],i)}}function b(e,t){for(var n in e)if(-1===n.indexOf("defaults")&&a(e[n])){var r=v(e,n,t);h[r]?b(e[n],r):c.push({code:"unused",path:r})}}if(a(l)?(g(p,["layout"]),b(l,"layout")):c.push({code:"layout"}),a(s)){for(var x,_={},w=0;w<d.length;w++){var k=d[w];x=k.type,_[x]=(_[x]||0)+1,k._fullInput._template||c.push({code:"missing",index:k._fullInput.index,traceType:x})}for(x in s){var T=s[x].length,E=_[x]||0;T>E?c.push({code:"unused",traceType:x,templateCount:T,dataCount:E}):E>T&&c.push({code:"reused",traceType:x,templateCount:T,dataCount:E})}}else c.push({code:"data"});function O(e,t){for(var n in e)if("_"!==n.charAt(0)){var r=e[n],o=v(e,n,t);a(r)?(Array.isArray(e)&&!1===r._template&&r.templateitemname&&c.push({code:"missing",path:o,templateitemname:r.templateitemname}),O(r,o)):Array.isArray(r)&&m(r)&&O(r,o)}}if(O({data:d,layout:p},""),c.length)return c.map(y)}},{"../lib":750,"../plots/attributes":795,"../plots/plots":862,"./plot_config":786,"./plot_schema":787,"./plot_template":788}],791:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("./plot_api"),o=e("../plots/plots"),i=e("../lib"),l=e("../snapshot/helpers"),s=e("../snapshot/tosvg"),u=e("../snapshot/svgtoimg"),c=e("../version").version,f={format:{valType:"enumerated",values:["png","jpeg","webp","svg","full-json"],dflt:"png"},width:{valType:"number",min:1},height:{valType:"number",min:1},scale:{valType:"number",min:0,dflt:1},setBackground:{valType:"any",dflt:!1},imageDataOnly:{valType:"boolean",dflt:!1}};function p(e,t){var n,p,d,h;function v(e){return!(e in t)||i.validate(t[e],f[e])}if(t=t||{},i.isPlainObject(e)?(n=e.data||[],p=e.layout||{},d=e.config||{},h={}):(e=i.getGraphDiv(e),n=i.extendDeep([],e.data),p=i.extendDeep({},e.layout),d=e._context,h=e._fullLayout||{}),!v("width")&&null!==t.width||!v("height")&&null!==t.height)throw new Error("Height and width should be pixel values.");if(!v("format"))throw new Error("Export format is not "+i.join2(f.format.values,", "," or ")+".");var m={};function y(e,n){return i.coerce(t,m,f,e,n)}var g=y("format"),b=y("width"),x=y("height"),_=y("scale"),w=y("setBackground"),k=y("imageDataOnly"),T=document.createElement("div");T.style.position="absolute",T.style.left="-5000px",document.body.appendChild(T);var E=i.extendFlat({},p);b?E.width=b:null===t.width&&r(h.width)&&(E.width=h.width),x?E.height=x:null===t.height&&r(h.height)&&(E.height=h.height);var O=i.extendFlat({},d,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),M=l.getRedrawFunc(T);function S(){return new Promise((function(e){setTimeout(e,l.getDelay(T._fullLayout))}))}function C(){return new Promise((function(e,t){var n=s(T,g,_),r=T._fullLayout.width,f=T._fullLayout.height;function p(){a.purge(T),document.body.removeChild(T)}if("full-json"===g){var d=o.graphJson(T,!1,"keepdata","object",!0,!0);return d.version=c,d=JSON.stringify(d),p(),e(k?d:l.encodeJSON(d))}if(p(),"svg"===g)return e(k?n:l.encodeSVG(n));var h=document.createElement("canvas");h.id=i.randstr(),u({format:g,width:r,height:f,scale:_,canvas:h,svg:n,promise:!0}).then(e).catch(t)}))}function A(e){return k?e.replace(l.IMAGE_URL_PREFIX,""):e}return new Promise((function(e,t){a.plot(T,n,E,O).then(M).then(S).then(C).then((function(t){e(A(t))})).catch((function(e){t(e)}))}))}t.exports=p},{"../lib":750,"../plots/plots":862,"../snapshot/helpers":886,"../snapshot/svgtoimg":888,"../snapshot/tosvg":890,"../version":1341,"./plot_api":785,"fast-isnumeric":241}],792:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plots/plots"),o=e("./plot_schema"),i=e("./plot_config").dfltConfig,l=r.isPlainObject,s=Array.isArray,u=r.isArrayOrTypedArray;function c(e,t,n,a,o,i){i=i||[];for(var f=Object.keys(e),p=0;p<f.length;p++){var d=f[p];if("transforms"!==d){var y=i.slice();y.push(d);var g=e[d],b=t[d],x=m(n,d),_=(x||{}).valType,w="info_array"===_,k="colorscale"===_,T=(x||{}).items;if(v(n,d))if(l(g)&&l(b)&&"any"!==_)c(g,b,x,a,o,y);else if(w&&s(g)){g.length>b.length&&a.push(h("unused",o,y.concat(b.length)));var E,O,M,S,C,A=b.length,P=Array.isArray(T);if(P&&(A=Math.min(A,T.length)),2===x.dimensions)for(O=0;O<A;O++)if(s(g[O])){g[O].length>b[O].length&&a.push(h("unused",o,y.concat(O,b[O].length)));var L=b[O].length;for(E=0;E<(P?Math.min(L,T[O].length):L);E++)M=P?T[O][E]:T,S=g[O][E],C=b[O][E],r.validate(S,M)?C!==S&&C!==+S&&a.push(h("dynamic",o,y.concat(O,E),S,C)):a.push(h("value",o,y.concat(O,E),S))}else a.push(h("array",o,y.concat(O),g[O]));else for(O=0;O<A;O++)M=P?T[O]:T,S=g[O],C=b[O],r.validate(S,M)?C!==S&&C!==+S&&a.push(h("dynamic",o,y.concat(O),S,C)):a.push(h("value",o,y.concat(O),S))}else if(x.items&&!w&&s(g)){var D,j,I=T[Object.keys(T)[0]],R=[];for(D=0;D<b.length;D++){var z=b[D]._index||D;if(j=y.slice(),j.push(z),l(g[z])&&l(b[D])){R.push(z);var N=g[z],F=b[D];l(N)&&!1!==N.visible&&!1===F.visible?a.push(h("invisible",o,j)):c(N,F,I,a,o,j)}}for(D=0;D<g.length;D++)j=y.slice(),j.push(D),l(g[D])?-1===R.indexOf(D)&&a.push(h("unused",o,j)):a.push(h("object",o,j,g[D]))}else!l(g)&&l(b)?a.push(h("object",o,y,g)):u(g)||!u(b)||w||k?d in t?r.validate(g,x)?"enumerated"===x.valType&&(x.coerceNumber&&g!==+b||g!==b)&&a.push(h("dynamic",o,y,g,b)):a.push(h("value",o,y,g)):a.push(h("unused",o,y,g)):a.push(h("array",o,y,g));else a.push(h("schema",o,y))}}return a}function f(e,t){for(var n=e.layout.layoutAttributes,a=0;a<t.length;a++){var o=t[a],i=e.traces[o.type],l=i.layoutAttributes;l&&(o.subplot?r.extendFlat(n[i.attributes.subplot.dflt],l):r.extendFlat(n,l))}return n}t.exports=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={});var n,u,p=o.get(),d=[],v={_context:r.extendFlat({},i)};s(e)?(v.data=r.extendDeep([],e),n=e):(v.data=[],n=[],d.push(h("array","data"))),l(t)?(v.layout=r.extendDeep({},t),u=t):(v.layout={},u={},arguments.length>1&&d.push(h("object","layout"))),a.supplyDefaults(v);for(var m=v._fullData,y=n.length,g=0;g<y;g++){var b=n[g],x=["data",g];if(l(b)){var _=m[g],w=_.type,k=p.traces[w].attributes;k.type={valType:"enumerated",values:[w]},!1===_.visible&&!1!==b.visible&&d.push(h("invisible",x)),c(b,_,k,d,x);var T=b.transforms,E=_.transforms;if(T){s(T)||d.push(h("array",x,["transforms"])),x.push("transforms");for(var O=0;O<T.length;O++){var M=["transforms",O],S=T[O].type;if(l(T[O])){var C=p.transforms[S]?p.transforms[S].attributes:{};C.type={valType:"enumerated",values:Object.keys(p.transforms)},c(T[O],E[O],C,d,x,M)}else d.push(h("object",x,M))}}}else d.push(h("object",x))}var A=v._fullLayout,P=f(p,m);return c(u,A,P,d,"layout"),0===d.length?void 0:d};var p={object:function(e,t){var n;return n="layout"===e&&""===t?"The layout argument":"data"===e[0]&&""===t?"Trace "+e[1]+" in the data argument":d(e)+"key "+t,n+" must be linked to an object container"},array:function(e,t){var n;return n="data"===e?"The data argument":d(e)+"key "+t,n+" must be linked to an array container"},schema:function(e,t){return d(e)+"key "+t+" is not part of the schema"},unused:function(e,t,n){var r=l(n)?"container":"key";return d(e)+r+" "+t+" did not get coerced"},dynamic:function(e,t,n,r){return[d(e)+"key",t,"(set to '"+n+"')","got reset to","'"+r+"'","during defaults."].join(" ")},invisible:function(e,t){return(t?d(e)+"item "+t:"Trace "+e[1])+" got defaulted to be not visible"},value:function(e,t,n){return[d(e)+"key "+t,"is set to an invalid value ("+n+")"].join(" ")}};function d(e){return s(e)?"In data trace "+e[1]+", ":"In "+e+", "}function h(e,t,n,a,o){var i,l;n=n||"",s(t)?(i=t[0],l=t[1]):(i=t,l=null);var u=b(n),c=p[e](t,u,a,o);return r.log(c),{code:e,container:i,trace:l,path:n,astr:u,msg:c}}function v(e,t){var n=g(t),r=n.keyMinusId,a=n.id;return!!(r in e&&e[r]._isSubplotObj&&a)||t in e}function m(e,t){if(t in e)return e[t];var n=g(t);return e[n.keyMinusId]}var y=r.counterRegex("([a-z]+)");function g(e){var t=e.match(y);return{keyMinusId:t&&t[1],id:t&&t[2]}}function b(e){if(!s(e))return String(e);for(var t="",n=0;n<e.length;n++){var r=e[n];"number"===typeof r?t=t.substr(0,t.length-1)+"["+r+"]":t+=r,n<e.length-1&&(t+=".")}return t}},{"../lib":750,"../plots/plots":862,"./plot_config":786,"./plot_schema":787}],793:[function(e,t,n){"use strict";t.exports={mode:{valType:"enumerated",dflt:"afterall",values:["immediate","next","afterall"]},direction:{valType:"enumerated",values:["forward","reverse"],dflt:"forward"},fromcurrent:{valType:"boolean",dflt:!1},frame:{duration:{valType:"number",min:0,dflt:500},redraw:{valType:"boolean",dflt:!0}},transition:{duration:{valType:"number",min:0,dflt:500,editType:"none"},easing:{valType:"enumerated",dflt:"cubic-in-out",values:["linear","quad","cubic","sin","exp","circle","elastic","back","bounce","linear-in","quad-in","cubic-in","sin-in","exp-in","circle-in","elastic-in","back-in","bounce-in","linear-out","quad-out","cubic-out","sin-out","exp-out","circle-out","elastic-out","back-out","bounce-out","linear-in-out","quad-in-out","cubic-in-out","sin-in-out","exp-in-out","circle-in-out","elastic-in-out","back-in-out","bounce-in-out"],editType:"none"},ordering:{valType:"enumerated",values:["layout first","traces first"],dflt:"layout first",editType:"none"}}}},{}],794:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plot_api/plot_template");t.exports=function(e,t,n){var o,i,l=n.name,s=n.inclusionAttr||"visible",u=t[l],c=r.isArrayOrTypedArray(e[l])?e[l]:[],f=t[l]=[],p=a.arrayTemplater(t,l,s);for(o=0;o<c.length;o++){var d=c[o];r.isPlainObject(d)?i=p.newItem(d):(i=p.newItem({}),i[s]=!1),i._index=o,!1!==i[s]&&n.handleItemDefaults(d,i,t,n),f.push(i)}var h=p.defaultItems();for(o=0;o<h.length;o++)i=h[o],i._index=f.length,n.handleItemDefaults({},i,t,n,{}),f.push(i);if(r.isArrayOrTypedArray(u)){var v=Math.min(u.length,f.length);for(o=0;o<v;o++)r.relinkPrivateKeys(f[o],u[o])}return f}},{"../lib":750,"../plot_api/plot_template":788}],795:[function(e,t,n){"use strict";var r=e("../components/fx/attributes");t.exports={type:{valType:"enumerated",values:[],dflt:"scatter",editType:"calc+clearAxisTypes",_noTemplating:!0},visible:{valType:"enumerated",values:[!0,!1,"legendonly"],dflt:!0,editType:"calc"},showlegend:{valType:"boolean",dflt:!0,editType:"style"},legendgroup:{valType:"string",dflt:"",editType:"style"},opacity:{valType:"number",min:0,max:1,dflt:1,editType:"style"},name:{valType:"string",editType:"style"},uid:{valType:"string",editType:"plot",anim:!0},ids:{valType:"data_array",editType:"calc",anim:!0},customdata:{valType:"data_array",editType:"calc"},meta:{valType:"any",arrayOk:!0,editType:"plot"},selectedpoints:{valType:"any",editType:"calc"},hoverinfo:{valType:"flaglist",flags:["x","y","z","text","name"],extras:["all","none","skip"],arrayOk:!0,dflt:"all",editType:"none"},hoverlabel:r.hoverlabel,stream:{token:{valType:"string",noBlank:!0,strict:!0,editType:"calc"},maxpoints:{valType:"number",min:0,max:1e4,dflt:500,editType:"calc"},editType:"calc"},transforms:{_isLinkedToArray:"transform",editType:"calc"},uirevision:{valType:"any",editType:"none"}}},{"../components/fx/attributes":646}],796:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=a.dateTime2ms,i=a.incrementMonth,l=e("../../constants/numerical"),s=l.ONEAVGMONTH;t.exports=function(e,t,n,a){if("date"!==t.type)return a;var l=e[n+"periodalignment"];if(!l)return a;var u,c=e[n+"period"];if(r(c)){if(c=+c,c<=0)return a}else if("string"===typeof c&&"M"===c.charAt(0)){var f=+c.substring(1);if(!(f>0&&Math.round(f)===f))return a;u=f}for(var p=t.calendar,d="start"===l,h="end"===l,v=e[n+"period0"],m=o(v,p)||0,y=[],g=a.length,b=0;b<g;b++){var x,_,w,k=a[b];if(u){x=Math.round((k-m)/(u*s)),w=i(m,u*x,p);while(w>k)w=i(w,-u,p);while(w<=k)w=i(w,u,p);_=i(w,-u,p)}else{x=Math.round((k-m)/c),w=m+x*c;while(w>k)w-=c;while(w<=k)w+=c;_=w-c}y[b]=d?_:h?w:(_+w)/2}return y}},{"../../constants/numerical":725,"../../lib":750,"fast-isnumeric":241}],797:[function(e,t,n){"use strict";t.exports={xaxis:{valType:"subplotid",dflt:"x",editType:"calc+clearAxisTypes"},yaxis:{valType:"subplotid",dflt:"y",editType:"calc+clearAxisTypes"}}},{}],798:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("../../constants/numerical").FP_SAFE,i=e("../../registry");function l(e,t){var n,r,o=[],i=s(t),l=u(e,t),c=l.min,f=l.max;if(0===c.length||0===f.length)return a.simpleMap(t.range,t.r2l);var p=c[0].val,d=f[0].val;for(n=1;n<c.length;n++){if(p!==d)break;p=Math.min(p,c[n].val)}for(n=1;n<f.length;n++){if(p!==d)break;d=Math.max(d,f[n].val)}var h=!1;if(t.range){var v=a.simpleMap(t.range,t.r2l);h=v[1]<v[0]}"reversed"===t.autorange&&(h=!0,t.autorange=!0);var m,y,g,b,x,_,w=t.rangemode,k="tozero"===w,T="nonnegative"===w,E=t._length,O=E/10,M=function(e,n){var r=0;if(t.rangebreaks)for(var a=t.locateBreaks(e,n),o=0;o<a.length;o++){var i=a[o];r+=i.max-i.min}return r},S=0;for(n=0;n<c.length;n++)for(m=c[n],r=0;r<f.length;r++)y=f[r],_=y.val-m.val-M(m.val,y.val),_>0&&(x=E-i(m)-i(y),x>O?_/x>S&&(g=m,b=y,S=_/x):_/E>S&&(g={val:m.val,pad:0},b={val:y.val,pad:0},S=_/E));function C(e,t){return Math.max(e,i(t))}if(p===d){var A=p-1,P=p+1;if(k)if(0===p)o=[0,1];else{var L=(p>0?f:c).reduce(C,0),D=p/(1-Math.min(.5,L/E));o=p>0?[0,D]:[D,0]}else o=T?[Math.max(0,A),Math.max(1,P)]:[A,P]}else k?(g.val>=0&&(g={val:0,pad:0}),b.val<=0&&(b={val:0,pad:0})):T&&(g.val-S*i(g)<0&&(g={val:0,pad:0}),b.val<=0&&(b={val:1,pad:0})),S=(b.val-g.val-M(m.val,y.val))/(E-i(g)-i(b)),o=[g.val-S*i(g),b.val+S*i(b)];return h&&o.reverse(),a.simpleMap(o,t.l2r||Number)}function s(e){var t=e._length/20;return"domain"===e.constrain&&e._inputDomain&&(t*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(e){return e.pad+(e.extrapad?t:0)}}function u(e,t){var n,r,a,o=t._id,i=e._fullData,l=e._fullLayout,s=[],u=[];function c(e,t){for(n=0;n<t.length;n++){var i=e[t[n]],l=(i._extremes||{})[o];if(!0===i.visible&&l){for(r=0;r<l.min.length;r++)a=l.min[r],p(s,a.val,a.pad,{extrapad:a.extrapad});for(r=0;r<l.max.length;r++)a=l.max[r],d(u,a.val,a.pad,{extrapad:a.extrapad})}}}return c(i,t._traceIndices),c(l.annotations||[],t._annIndices||[]),c(l.shapes||[],t._shapeIndices||[]),{min:s,max:u}}function c(e,t){if(t.setScale(),t.autorange){t.range=l(e,t),t._r=t.range.slice(),t._rl=a.simpleMap(t._r,t.r2l);var n=t._input,r={};r[t._attr+".range"]=t.range,r[t._attr+".autorange"]=t.autorange,i.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,r),n.range=t.range.slice(),n.autorange=t.autorange}var o=t._anchorAxis;if(o&&o.rangeslider){var s=o.rangeslider[t._name];s&&"auto"===s.rangemode&&(s.range=l(e,t)),o._input.rangeslider[t._name]=a.extendFlat({},s)}}function f(e,t,n){n||(n={}),e._m||e.setScale();var a,i,l,s,u,c,f,h,m,y=[],g=[],b=t.length,x=n.padded||!1,_=n.tozero&&("linear"===e.type||"-"===e.type),w="log"===e.type,k=!1,T=n.vpadLinearized||!1;function E(e){if(Array.isArray(e))return k=!0,function(t){return Math.max(Number(e[t]||0),0)};var t=Math.max(Number(e||0),0);return function(){return t}}var O=E((e._m>0?n.ppadplus:n.ppadminus)||n.ppad||0),M=E((e._m>0?n.ppadminus:n.ppadplus)||n.ppad||0),S=E(n.vpadplus||n.vpad),C=E(n.vpadminus||n.vpad);if(!k){if(h=1/0,m=-1/0,w)for(a=0;a<b;a++)i=t[a],i<h&&i>0&&(h=i),i>m&&i<o&&(m=i);else for(a=0;a<b;a++)i=t[a],i<h&&i>-o&&(h=i),i>m&&i<o&&(m=i);t=[h,m],b=2}var A={tozero:_,extrapad:x};function P(n){l=t[n],r(l)&&(c=O(n),f=M(n),T?(s=e.c2l(l)-C(n),u=e.c2l(l)+S(n)):(h=l-C(n),m=l+S(n),w&&h<m/10&&(h=m/10),s=e.c2l(h),u=e.c2l(m)),_&&(s=Math.min(0,s),u=Math.max(0,u)),v(s)&&p(y,s,f,A),v(u)&&d(g,u,c,A))}var L=Math.min(6,b);for(a=0;a<L;a++)P(a);for(a=b-1;a>=L;a--)P(a);return{min:y,max:g,opts:n}}function p(e,t,n,r){h(e,t,n,r,m)}function d(e,t,n,r){h(e,t,n,r,y)}function h(e,t,n,r,a){for(var o=r.tozero,i=r.extrapad,l=!0,s=0;s<e.length&&l;s++){var u=e[s];if(a(u.val,t)&&u.pad>=n&&(u.extrapad||!i)){l=!1;break}a(t,u.val)&&u.pad<=n&&(i||!u.extrapad)&&(e.splice(s,1),s--)}if(l){var c=o&&0===t;e.push({val:t,pad:c?0:n,extrapad:!c&&i})}}function v(e){return r(e)&&Math.abs(e)<o}function m(e,t){return e<=t}function y(e,t){return e>=t}t.exports={getAutoRange:l,makePadFn:s,doAutoRange:c,findExtremes:f,concatExtremes:u}},{"../../constants/numerical":725,"../../lib":750,"../../registry":882,"fast-isnumeric":241}],799:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),o=e("../../plots/plots"),i=e("../../registry"),l=e("../../lib"),s=e("../../lib/svg_text_utils"),u=e("../../components/titles"),c=e("../../components/color"),f=e("../../components/drawing"),p=e("./layout_attributes"),d=e("./clean_ticks"),h=e("../../constants/numerical"),v=h.ONEMAXYEAR,m=h.ONEAVGYEAR,y=h.ONEMINYEAR,g=h.ONEMAXQUARTER,b=h.ONEAVGQUARTER,x=h.ONEMINQUARTER,_=h.ONEMAXMONTH,w=h.ONEAVGMONTH,k=h.ONEMINMONTH,T=h.ONEWEEK,E=h.ONEDAY,O=E/2,M=h.ONEHOUR,S=h.ONEMIN,C=h.ONESEC,A=h.MINUS_SIGN,P=h.BADNUM,L=e("../../constants/alignment"),D=L.MID_SHIFT,j=L.CAP_SHIFT,I=L.LINE_SPACING,R=L.OPPOSITE_SIDE,z=t.exports={};z.setConvert=e("./set_convert");var N=e("./axis_autotype"),F=e("./axis_ids");z.id2name=F.id2name,z.name2id=F.name2id,z.cleanId=F.cleanId,z.list=F.list,z.listIds=F.listIds,z.getFromId=F.getFromId,z.getFromTrace=F.getFromTrace;var B=e("./autorange");z.getAutoRange=B.getAutoRange,z.findExtremes=B.findExtremes;var V=1e-4;function H(e){var t=(e[1]-e[0])*V;return[e[0]-t,e[1]+t]}z.coerceRef=function(e,t,n,r,a,o){var i=r.charAt(r.length-1),s=n._fullLayout._subplots[i+"axis"],u=r+"ref",c={};return a||(a=s[0]||("string"===typeof o?o:o[0])),o||(o=a),s=s.concat(s.map((function(e){return e+" domain"}))),c[u]={valType:"enumerated",values:s.concat(o?"string"===typeof o?[o]:o:[]),dflt:a},l.coerce(e,t,c,u)},z.getRefType=function(e){return void 0===e?e:"paper"===e?"paper":"pixel"===e?"pixel":/( domain)$/.test(e)?"domain":"range"},z.coercePosition=function(e,t,n,r,a,o){var i,s,u=z.getRefType(r);if("range"!==u)i=l.ensureNumber,s=n(a,o);else{var c=z.getFromId(t,r);o=c.fraction2r(o),s=n(a,o),i=c.cleanPos}e[a]=i(s)},z.cleanPosition=function(e,t,n){var r="paper"===n||"pixel"===n?l.ensureNumber:z.getFromId(t,n).cleanPos;return r(e)},z.redrawComponents=function(e,t){t=t||z.listIds(e);var n=e._fullLayout;function r(r,a,o,l){for(var s=i.getComponentMethod(r,a),u={},c=0;c<t.length;c++)for(var f=n[z.id2name(t[c])],p=f[o],d=0;d<p.length;d++){var h=p[d];if(!u[h]&&(s(e,h),u[h]=1,l))return}}r("annotations","drawOne","_annIndices"),r("shapes","drawOne","_shapeIndices"),r("images","draw","_imgIndices",!0)};var U=z.getDataConversions=function(e,t,n,r){var a,o="x"===n||"y"===n||"z"===n?n:r;if(Array.isArray(o)){if(a={type:N(r),_categories:[]},z.setConvert(a),"category"===a.type)for(var i=0;i<r.length;i++)a.d2c(r[i])}else a=z.getFromTrace(e,t,o);return a?{d2c:a.d2c,c2d:a.c2d}:"ids"===o?{d2c:q,c2d:q}:{d2c:W,c2d:W}};function W(e){return+e}function q(e){return String(e)}function $(e,t,n,r,o){var i=0,l=0,s=0,u=0;function c(t){return(1+100*(t-e)/n.dtick)%100<2}for(var f=0;f<t.length;f++)t[f]%1===0?s++:a(t[f])||u++,c(t[f])&&i++,c(t[f]+n.dtick/2)&&l++;var p=t.length-u;if(s===p&&"date"!==n.type)n.dtick<1?e=r-.5*n.dtick:(e-=.5,e+n.dtick<r&&(e+=n.dtick));else if(l<.1*p&&(i>.3*p||c(r)||c(o))){var d=n.dtick/2;e+=e+d<r?d:-d}return e}function G(e,t,n,r,a){var o=l.findExactDates(t,a),i=.8;if(o.exactDays>i){var s=Number(n.substr(1));o.exactYears>i&&s%12===0?e=z.tickIncrement(e,"M6","reverse")+1.5*E:o.exactMonths>i?e=z.tickIncrement(e,"M1","reverse")+15.5*E:e-=O;var u=z.tickIncrement(e,n);if(u<=r)return u}return e}function Y(e){return+e.substring(1)}function K(e){var t;function n(){return!(a(e.dtick)||"M"!==e.dtick.charAt(0))}var r=n(),o=z.getTickFormat(e);if(o){var i=e._dtickInit!==e.dtick;/%[fLQsSMX]/.test(o)||(/%[HI]/.test(o)?(t=M,i&&!r&&e.dtick<M&&(e.dtick=M)):/%p/.test(o)?(t=O,i&&!r&&e.dtick<O&&(e.dtick=O)):/%[Aadejuwx]/.test(o)?(t=E,i&&!r&&e.dtick<E&&(e.dtick=E)):/%[UVW]/.test(o)?(t=T,i&&!r&&e.dtick<T&&(e.dtick=T)):/%[Bbm]/.test(o)?(t=w,i&&(r?Y(e.dtick)<1:e.dtick<k)&&(e.dtick="M1")):/%[q]/.test(o)?(t=b,i&&(r?Y(e.dtick)<3:e.dtick<x)&&(e.dtick="M3")):/%[Yy]/.test(o)&&(t=m,i&&(r?Y(e.dtick)<12:e.dtick<y)&&(e.dtick="M12")))}r=n(),r&&e.tick0===e._dowTick0&&(e.tick0=e._rawTick0),e._definedDelta=t}function X(e,t,n){for(var r=0;r<e.length;r++){var a=e[r].value,o=r,i=r+1;r<e.length-1?(o=r,i=r+1):r>0?(o=r-1,i=r):(o=r,i=r);var l,s=e[o].value,u=e[i].value,c=Math.abs(u-s),f=n||c,p=0;f>=y?p=c>=y&&c<=v?c:m:n===b&&f>=x?p=c>=x&&c<=g?c:b:f>=k?p=c>=k&&c<=_?c:w:n===T&&f>=T?p=T:f>=E?p=E:n===O&&f>=O?p=O:n===M&&f>=M&&(p=M),p>=c&&(p=c,l=!0);var d=a+p;if(t.rangebreaks&&p>0){for(var h=84,S=0,C=0;C<h;C++){var A=(C+.5)/h;t.maskBreaks(a*(1-A)+A*d)!==P&&S++}p*=S/h,p||(e[r].drop=!0),l&&c>T&&(p=c)}(p>0||0===r)&&(e[r].periodX=a+p/2)}}function Z(e){var t=e.tickvals,n=e.ticktext,r=new Array(t.length),a=l.simpleMap(e.range,e.r2l),o=H(a),i=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]),u=0;Array.isArray(n)||(n=[]);var c="category"===e.type?e.d2l_noadd:e.d2l;"log"===e.type&&"L"!==String(e.dtick).charAt(0)&&(e.dtick="L"+Math.pow(10,Math.floor(Math.min(e.range[0],e.range[1]))-1));for(var f=0;f<t.length;f++){var p=c(t[f]);p>i&&p<s&&(void 0===n[f]?r[u]=z.tickText(e,p):r[u]=le(e,p,String(n[f])),u++)}return u<t.length&&r.splice(u,t.length-u),e.rangebreaks&&(r=r.filter((function(t){return e.maskBreaks(t.x)!==P}))),r}z.getDataToCoordFunc=function(e,t,n,r){return U(e,t,n,r).d2c},z.counterLetter=function(e){var t=e.charAt(0);return"x"===t?"y":"y"===t?"x":void 0},z.minDtick=function(e,t,n,r){-1===["log","category","multicategory"].indexOf(e.type)&&r?void 0===e._minDtick?(e._minDtick=t,e._forceTick0=n):e._minDtick&&((e._minDtick/t+1e-6)%1<2e-6&&((n-e._forceTick0)/t%1+1.000001)%1<2e-6?(e._minDtick=t,e._forceTick0=n):((t/e._minDtick+1e-6)%1>2e-6||((n-e._forceTick0)/e._minDtick%1+1.000001)%1>2e-6)&&(e._minDtick=0)):e._minDtick=0},z.saveRangeInitial=function(e,t){for(var n=z.list(e,"",!0),r=!1,a=0;a<n.length;a++){var o=n[a],i=void 0===o._rangeInitial,l=i||!(o.range[0]===o._rangeInitial[0]&&o.range[1]===o._rangeInitial[1]);(i&&!1===o.autorange||t&&l)&&(o._rangeInitial=o.range.slice(),r=!0)}return r},z.saveShowSpikeInitial=function(e,t){for(var n=z.list(e,"",!0),r=!1,a="on",o=0;o<n.length;o++){var i=n[o],l=void 0===i._showSpikeInitial,s=l||!(i.showspikes===i._showspikes);(l||t&&s)&&(i._showSpikeInitial=i.showspikes,r=!0),"on"!==a||i.showspikes||(a="off")}return e._fullLayout._cartesianSpikesEnabled=a,r},z.autoBin=function(e,t,n,r,o,i){var s,u=l.aggNums(Math.min,null,e),c=l.aggNums(Math.max,null,e);if("category"===t.type||"multicategory"===t.type)return{start:u-.5,end:c+.5,size:Math.max(1,Math.round(i)||1),_dataSpan:c-u};if(o||(o=t.calendar),s="log"===t.type?{type:"linear",range:[u,c]}:{type:t.type,range:l.simpleMap([u,c],t.c2r,0,o),calendar:o},z.setConvert(s),i=i&&d.dtick(i,s.type),i)s.dtick=i,s.tick0=d.tick0(void 0,s.type,o);else{var f;if(n)f=(c-u)/n;else{var p=l.distinctVals(e),h=Math.pow(10,Math.floor(Math.log(p.minDiff)/Math.LN10)),v=h*l.roundUp(p.minDiff/h,[.9,1.9,4.9,9.9],!0);f=Math.max(v,2*l.stdev(e)/Math.pow(e.length,r?.25:.4)),a(f)||(f=1)}z.autoTicks(s,f)}var m,y,g=s.dtick,b=z.tickIncrement(z.tickFirst(s),g,"reverse",o);if("number"===typeof g)b=$(b,e,s,u,c),y=1+Math.floor((c-b)/g),m=b+y*g;else{"M"===s.dtick.charAt(0)&&(b=G(b,e,g,u,o)),m=b,y=0;while(m<=c)m=z.tickIncrement(m,g,!1,o),y++}return{start:t.c2r(b,0,o),end:t.c2r(m,0,o),size:g,_dataSpan:c-u}},z.prepTicks=function(e,t){var n=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if(e._dtickInit=e.dtick,e._tick0Init=e.tick0,"auto"===e.tickmode||!e.dtick){var r,a=e.nticks;a||("category"===e.type||"multicategory"===e.type?(r=e.tickfont?1.2*(e.tickfont.size||12):15,a=e._length/r):(r="y"===e._id.charAt(0)?40:80,a=l.constrain(e._length/r,4,9)+1),"radialaxis"===e._name&&(a*=2)),"array"===e.tickmode&&(a*=100),e._roughDTick=Math.abs(n[1]-n[0])/a,z.autoTicks(e,e._roughDTick),e._minDtick>0&&e.dtick<2*e._minDtick&&(e.dtick=e._minDtick,e.tick0=e.l2r(e._forceTick0))}"period"===e.ticklabelmode&&K(e),e.tick0||(e.tick0="date"===e.type?"2000-01-01":0),"date"===e.type&&e.dtick<.1&&(e.dtick=.1),ie(e)},z.calcTicks=function(e,t){z.prepTicks(e,t);var n=l.simpleMap(e.range,e.r2l,void 0,void 0,t);if("array"===e.tickmode)return Z(e);var r=H(n),o=r[0],i=r[1],s=n[1]<n[0],u=Math.min(n[0],n[1]),c=Math.max(n[0],n[1]),f="log"===e.type&&!(a(e.dtick)||"L"===e.dtick.charAt(0)),p="period"===e.ticklabelmode;if(e._tmin=z.tickFirst(e,t),e._tmin<o!==s)return[];"category"!==e.type&&"multicategory"!==e.type||(i=s?Math.max(-.5,i):Math.min(e._categories.length-.5,i));var d=e._tmin;e.rangebreaks&&e._tick0Init!==e.tick0&&(d=Fe(d,e),s||(d=z.tickIncrement(d,e.dtick,!s,e.calendar))),p&&(d=z.tickIncrement(d,e.dtick,!s,e.calendar));for(var h,v=Math.max(1e3,e._length||0),m=[],y=null;s?d>=i:d<=i;d=z.tickIncrement(d,e.dtick,s,e.calendar)){if(e.rangebreaks&&!s){if(d<o)continue;if(e.maskBreaks(d)===P&&Fe(d,e)>=c)break}if(m.length>v||d===y)break;y=d;var g=!1;f&&d!==(0|d)&&(g=!0),m.push({minor:g,value:d})}if(p&&X(m,e,e._definedDelta),e.rangebreaks){var b="y"===e._id.charAt(0),x=1;"auto"===e.tickmode&&(x=e.tickfont?e.tickfont.size:12);var _=NaN;for(h=m.length-1;h>-1;h--)if(m[h].drop)m.splice(h,1);else{m[h].value=Fe(m[h].value,e);var w=e.c2p(m[h].value);(b?_>w-x:_<w+x)?m.splice(s?h+1:h,1):_=w}}Ne(e)&&360===Math.abs(n[1]-n[0])&&m.pop(),e._tmax=(m[m.length-1]||{}).value,e._prevDateHead="",e._inCalcTicks=!0;var k,T,E=[];for(h=0;h<m.length;h++){var O=m[h].minor,M=m[h].value;k=z.tickText(e,M,!1,O),T=m[h].periodX,void 0!==T&&(k.periodX=T,(T>c||T<u)&&(T>c&&(k.periodX=c),T<u&&(k.periodX=u),k.text=" ",e._prevDateHead="")),E.push(k)}return e._inCalcTicks=!1,E};var J=[2,5,10],Q=[1,2,3,6,12],ee=[1,2,5,10,15,30],te=[1,2,3,7,14],ne=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],re=[-.301,0,.301,.699,1],ae=[15,30,45,90,180];function oe(e,t,n){return t*l.roundUp(e/t,n)}function ie(e){var t=e.dtick;if(e._tickexponent=0,a(t)||"string"===typeof t||(t=1),"category"!==e.type&&"multicategory"!==e.type||(e._tickround=null),"date"===e.type){var n=e.r2l(e.tick0),r=e.l2r(n).replace(/(^-|i)/g,""),o=r.length;if("M"===String(t).charAt(0))o>10||"01-01"!==r.substr(5)?e._tickround="d":e._tickround=+t.substr(1)%12===0?"y":"m";else if(t>=E&&o<=10||t>=15*E)e._tickround="d";else if(t>=S&&o<=16||t>=M)e._tickround="M";else if(t>=C&&o<=19||t>=S)e._tickround="S";else{var i=e.l2r(n+t).replace(/^-/,"").length;e._tickround=Math.max(o,i)-20,e._tickround<0&&(e._tickround=4)}}else if(a(t)||"L"===t.charAt(0)){var l=e.range.map(e.r2d||Number);a(t)||(t=Number(t.substr(1))),e._tickround=2-Math.floor(Math.log(t)/Math.LN10+.01);var s=Math.max(Math.abs(l[0]),Math.abs(l[1])),u=Math.floor(Math.log(s)/Math.LN10+.01),c=void 0===e.minexponent?3:e.minexponent;Math.abs(u)>c&&(me(e.exponentformat)&&!ye(u)?e._tickexponent=3*Math.round((u-1)/3):e._tickexponent=u)}else e._tickround=null}function le(e,t,n){var r=e.tickfont||{};return{x:t,dx:0,dy:0,text:n||"",fontSize:r.size,font:r.family,fontColor:r.color}}function se(e,t,n,r){var o=e._tickround,i=n&&e.hoverformat||z.getTickFormat(e);r&&(o=a(o)?4:{y:"m",m:"d",d:"M",M:"S",S:4}[o]);var s,u=l.formatDate(t.x,i,o,e._dateFormat,e.calendar,e._extraFormat),c=u.indexOf("\n");-1!==c&&(s=u.substr(c+1),u=u.substr(0,c)),r&&("00:00:00"===u||"00:00"===u?(u=s,s=""):8===u.length&&(u=u.replace(/:00$/,""))),s&&(n?"d"===o?u+=", "+s:u=s+(u?", "+u:""):e._inCalcTicks&&s===e._prevDateHead||(u+="<br>"+s,e._prevDateHead=s)),t.text=u}function ue(e,t,n,r,o){var i=e.dtick,s=t.x,u=e.tickformat,c="string"===typeof i&&i.charAt(0);if("never"===o&&(o=""),r&&"L"!==c&&(i="L3",c="L"),u||"L"===c)t.text=ge(Math.pow(10,s),e,o,r);else if(a(i)||"D"===c&&l.mod(s+.01,1)<.1){var f=Math.round(s),p=Math.abs(f),d=e.exponentformat;"power"===d||me(d)&&ye(f)?(t.text=0===f?1:1===f?"10":"10<sup>"+(f>1?"":A)+p+"</sup>",t.fontSize*=1.25):("e"===d||"E"===d)&&p>2?t.text="1"+d+(f>0?"+":A)+p:(t.text=ge(Math.pow(10,s),e,"","fakehover"),"D1"===i&&"y"===e._id.charAt(0)&&(t.dy-=t.fontSize/6))}else{if("D"!==c)throw"unrecognized dtick "+String(i);t.text=String(Math.round(Math.pow(10,l.mod(s,1)))),t.fontSize*=.75}if("D1"===e.dtick){var h=String(t.text).charAt(0);"0"!==h&&"1"!==h||("y"===e._id.charAt(0)?t.dx-=t.fontSize/4:(t.dy+=t.fontSize/2,t.dx+=(e.range[1]>e.range[0]?1:-1)*t.fontSize*(s<0?.5:.25)))}}function ce(e,t){var n=e._categories[Math.round(t.x)];void 0===n&&(n=""),t.text=String(n)}function fe(e,t,n){var r=Math.round(t.x),a=e._categories[r]||[],o=void 0===a[1]?"":String(a[1]),i=void 0===a[0]?"":String(a[0]);n?t.text=i+" - "+o:(t.text=o,t.text2=i)}function pe(e,t,n,r,a){"never"===a?a="":"all"===e.showexponent&&Math.abs(t.x/e.dtick)<1e-6&&(a="hide"),t.text=ge(t.x,e,a,r)}function de(e,t,n,r,a){if("radians"!==e.thetaunit||n)t.text=ge(t.x,e,a,r);else{var o=t.x/180;if(0===o)t.text="0";else{var i=he(o);if(i[1]>=100)t.text=ge(l.deg2rad(t.x),e,a,r);else{var s=t.x<0;1===i[1]?1===i[0]?t.text="π":t.text=i[0]+"π":t.text=["<sup>",i[0],"</sup>","","<sub>",i[1],"</sub>","π"].join(""),s&&(t.text=A+t.text)}}}}function he(e){function t(e,t){return Math.abs(e-t)<=1e-6}function n(e,r){return t(r,0)?e:n(r,e%r)}function r(e){var n=1;while(!t(Math.round(e*n)/n,e))n*=10;return n}var a=r(e),o=e*a,i=Math.abs(n(o,a));return[Math.round(o/i),Math.round(a/i)]}z.autoTicks=function(e,t){var n;function r(e){return Math.pow(e,Math.floor(Math.log(t)/Math.LN10))}if("date"===e.type){e.tick0=l.dateTick0(e.calendar,0);var o=2*t;if(o>m)t/=m,n=r(10),e.dtick="M"+12*oe(t,n,J);else if(o>w)t/=w,e.dtick="M"+oe(t,1,Q);else if(o>E){e.dtick=oe(t,E,e._hasDayOfWeekBreaks?[1,2,7,14]:te);var i=z.getTickFormat(e),s="period"===e.ticklabelmode;s&&(e._rawTick0=e.tick0),/%[uVW]/.test(i)?e.tick0=l.dateTick0(e.calendar,2):e.tick0=l.dateTick0(e.calendar,1),s&&(e._dowTick0=e.tick0)}else o>M?e.dtick=oe(t,M,Q):o>S?e.dtick=oe(t,S,ee):o>C?e.dtick=oe(t,C,ee):(n=r(10),e.dtick=oe(t,n,J))}else if("log"===e.type){e.tick0=0;var u=l.simpleMap(e.range,e.r2l);if(t>.7)e.dtick=Math.ceil(t);else if(Math.abs(u[1]-u[0])<1){var c=1.5*Math.abs((u[1]-u[0])/t);t=Math.abs(Math.pow(10,u[1])-Math.pow(10,u[0]))/c,n=r(10),e.dtick="L"+oe(t,n,J)}else e.dtick=t>.3?"D2":"D1"}else"category"===e.type||"multicategory"===e.type?(e.tick0=0,e.dtick=Math.ceil(Math.max(t,1))):Ne(e)?(e.tick0=0,n=1,e.dtick=oe(t,n,ae)):(e.tick0=0,n=r(10),e.dtick=oe(t,n,J));if(0===e.dtick&&(e.dtick=1),!a(e.dtick)&&"string"!==typeof e.dtick){var f=e.dtick;throw e.dtick=1,"ax.dtick error: "+String(f)}},z.tickIncrement=function(e,t,n,o){var i=n?-1:1;if(a(t))return l.increment(e,i*t);var s=t.charAt(0),u=i*Number(t.substr(1));if("M"===s)return l.incrementMonth(e,u,o);if("L"===s)return Math.log(Math.pow(10,e)+u)/Math.LN10;if("D"===s){var c="D2"===t?re:ne,f=e+.01*i,p=l.roundUp(l.mod(f,1),c,n);return Math.floor(f)+Math.log(r.round(Math.pow(10,p),1))/Math.LN10}throw"unrecognized dtick "+String(t)},z.tickFirst=function(e,t){var n=e.r2l||Number,o=l.simpleMap(e.range,n,void 0,void 0,t),i=o[1]<o[0],s=i?Math.floor:Math.ceil,u=H(o)[0],c=e.dtick,f=n(e.tick0);if(a(c)){var p=s((u-f)/c)*c+f;return"category"!==e.type&&"multicategory"!==e.type||(p=l.constrain(p,0,e._categories.length-1)),p}var d=c.charAt(0),h=Number(c.substr(1));if("M"===d){var v,m,y,g=0,b=f;while(g<10){if(v=z.tickIncrement(b,c,i,e.calendar),(v-u)*(b-u)<=0)return i?Math.min(b,v):Math.max(b,v);m=(u-(b+v)/2)/(v-b),y=d+(Math.abs(Math.round(m))||1)*h,b=z.tickIncrement(b,y,m<0?!i:i,e.calendar),g++}return l.error("tickFirst did not converge",e),b}if("L"===d)return Math.log(s((Math.pow(10,u)-f)/h)*h+f)/Math.LN10;if("D"===d){var x="D2"===c?re:ne,_=l.roundUp(l.mod(u,1),x,i);return Math.floor(u)+Math.log(r.round(Math.pow(10,_),1))/Math.LN10}throw"unrecognized dtick "+String(c)},z.tickText=function(e,t,n,r){var a,o=le(e,t),i="array"===e.tickmode,s=n||i,u=e.type,c="category"===u?e.d2l_noadd:e.d2l;if(i&&Array.isArray(e.ticktext)){var f=l.simpleMap(e.range,e.r2l),p=(Math.abs(f[1]-f[0])-(e._lBreaks||0))/1e4;for(a=0;a<e.ticktext.length;a++)if(Math.abs(t-c(e.tickvals[a]))<p)break;if(a<e.ticktext.length)return o.text=String(e.ticktext[a]),o}function d(r){if(void 0===r)return!0;if(n)return"none"===r;var a={first:e._tmin,last:e._tmax}[r];return"all"!==r&&t!==a}var h=n?"never":"none"!==e.exponentformat&&d(e.showexponent)?"hide":"";if("date"===u?se(e,o,n,s):"log"===u?ue(e,o,n,s,h):"category"===u?ce(e,o):"multicategory"===u?fe(e,o,n):Ne(e)?de(e,o,n,s,h):pe(e,o,n,s,h),r||(e.tickprefix&&!d(e.showtickprefix)&&(o.text=e.tickprefix+o.text),e.ticksuffix&&!d(e.showticksuffix)&&(o.text+=e.ticksuffix)),"boundaries"===e.tickson||e.showdividers){var v=function(t){var n=e.l2p(t);return n>=0&&n<=e._length?t:null};o.xbnd=[v(o.x-.5),v(o.x+e.dtick-.5)]}return o},z.hoverLabelText=function(e,t,n){if(n!==P&&n!==t)return z.hoverLabelText(e,t)+" - "+z.hoverLabelText(e,n);var r="log"===e.type&&t<=0,a=z.tickText(e,e.c2l(r?-t:t),"hover").text;return r?0===t?"0":A+a:a};var ve=["f","p","n","μ","m","","k","M","G","T"];function me(e){return"SI"===e||"B"===e}function ye(e){return e>14||e<-15}function ge(e,t,n,r){var o=e<0,i=t._tickround,s=n||t.exponentformat||"B",u=t._tickexponent,c=z.getTickFormat(t),f=t.separatethousands;if(r){var p={exponentformat:s,minexponent:t.minexponent,dtick:"none"===t.showexponent?t.dtick:a(e)&&Math.abs(e)||1,range:"none"===t.showexponent?t.range.map(t.r2d):[0,e||1]};ie(p),i=(Number(p._tickround)||0)+4,u=p._tickexponent,t.hoverformat&&(c=t.hoverformat)}if(c)return t._numFormat(c)(e).replace(/-/g,A);var d,h=Math.pow(10,-i)/2;if("none"===s&&(u=0),e=Math.abs(e),e<h)e="0",o=!1;else{if(e+=h,u&&(e*=Math.pow(10,-u),i+=u),0===i)e=String(Math.floor(e));else if(i<0){e=String(Math.round(e)),e=e.substr(0,e.length+i);for(var v=i;v<0;v++)e+="0"}else{e=String(e);var m=e.indexOf(".")+1;m&&(e=e.substr(0,m+i).replace(/\.?0+$/,""))}e=l.numSeparate(e,t._separators,f)}u&&"hide"!==s&&(me(s)&&ye(u)&&(s="power"),d=u<0?A+-u:"power"!==s?"+"+u:String(u),"e"===s||"E"===s?e+=s+d:"power"===s?e+="×10<sup>"+d+"</sup>":"B"===s&&9===u?e+="B":me(s)&&(e+=ve[u/3+5]));return o?A+e:e}function be(e,t){var n,r=[],a=function(e,t){var n=e.xbnd[t];null!==n&&r.push(l.extendFlat({},e,{x:n}))};if(t.length){for(n=0;n<t.length;n++)a(t[n],0);a(t[n-1],1)}return r}function xe(e,t){for(var n=[],r={},a=0;a<t.length;a++){var o=t[a];r[o.text2]?r[o.text2].push(o.x):r[o.text2]=[o.x]}for(var i in r)n.push(le(e,l.interp(r[i],.5),i));return n}function _e(e,t){var n,r,a=[],o=t.length&&t[t.length-1].x<t[0].x,i=function(e,t){var n=e.xbnd[t];null!==n&&a.push(l.extendFlat({},e,{x:n}))};if(e.showdividers&&t.length){for(n=0;n<t.length;n++){var s=t[n];s.text2!==r&&i(s,o?1:0),r=s.text2}i(t[n-1],o?0:1)}return a}function we(e,t){var n,r,a,o;return e._selections[t].size()?(n=1/0,r=-1/0,a=1/0,o=-1/0,e._selections[t].each((function(){var e=Ae(this),t=f.bBox(e.node().parentNode);n=Math.min(n,t.top),r=Math.max(r,t.bottom),a=Math.min(a,t.left),o=Math.max(o,t.right)}))):(n=0,r=0,a=0,o=0),{top:n,bottom:r,left:a,right:o,height:r-n,width:o-a}}function ke(e){return[e.text,e.x,e.axInfo,e.font,e.fontSize,e.fontColor].join("_")}function Te(e,t,n){var r=t._id+"divider",a=n.vals,o=n.layer.selectAll("path."+r).data(a,ke);o.exit().remove(),o.enter().insert("path",":first-child").classed(r,1).classed("crisp",1).call(c.stroke,t.dividercolor).style("stroke-width",f.crispRound(e,t.dividerwidth,1)+"px"),o.attr("transform",n.transFn).attr("d",n.path)}function Ee(e){var t=e.title.font.size,n=(e.title.text.match(s.BR_TAG_ALL)||[]).length;return e.title.hasOwnProperty("standoff")?n?t*(j+n*I):t*j:n?t*(n+1)*I:t}function Oe(e,t){var n,r=e._fullLayout,a=t._id,o=a.charAt(0),i=t.title.font.size;if(t.title.hasOwnProperty("standoff"))n=t._depth+t.title.standoff+Ee(t);else{if("multicategory"===t.type)n=t._depth;else{var l=1.5;n=10+i*l+(t.linewidth?t.linewidth-1:0)}n+="x"===o?"top"===t.side?i*(t.showticklabels?1:0):i*(t.showticklabels?1.5:.5):"right"===t.side?i*(t.showticklabels?1:.5):i*(t.showticklabels?.5:0)}var s,c,p,d,h=z.getPxPosition(e,t);if("x"===o?(c=t._offset+t._length/2,p="top"===t.side?h-n:h+n):(p=t._offset+t._length/2,c="right"===t.side?h+n:h-n,s={rotate:"-90",offset:0}),"multicategory"!==t.type){var v=t._selections[t._id+"tick"];if(d={selection:v,side:t.side},v&&v.node()&&v.node().parentNode){var m=f.getTranslate(v.node().parentNode);d.offsetLeft=m.x,d.offsetTop=m.y}t.title.hasOwnProperty("standoff")&&(d.pad=0)}return u.draw(e,a+"title",{propContainer:t,propName:t._name+".title.text",placeholder:r._dfltTitle[o],avoid:d,transform:s,attributes:{x:c,y:p,"text-anchor":"middle"}})}function Me(e,t){var n=e.l2p(t);return n>1&&n<e._length-1}function Se(e,t,n,r){var a=n._mainAxis;if(a){var o=e._fullLayout,i=t._id.charAt(0),l=z.counterLetter(t._id),s=t._offset+(Math.abs(r[0])<Math.abs(r[1])===("x"===i)?0:t._length),u=o._plots[n._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return d(n,s);for(var c=z.list(e,l),f=0;f<c.length;f++){var p=c[f];if(p._mainAxis===a&&d(p,s))return!0}}function d(e){if(!e.showline||!e.linewidth)return!1;var n=Math.max((e.linewidth+t.zerolinewidth)/2,1);function r(e){return"number"===typeof e&&Math.abs(e-s)<n}if(r(e._mainLinePosition)||r(e._mainMirrorPosition))return!0;var a=e._linepositions||{};for(var o in a)if(r(a[o][0])||r(a[o][1]))return!0}}function Ce(e,t){for(var n=e._fullData,r=t._mainSubplot,a=t._id.charAt(0),o=0;o<n.length;o++){var l=n[o];if(!0===l.visible&&l.xaxis+l.yaxis===r){if(i.traceIs(l,"bar-like")&&l.orientation==={x:"h",y:"v"}[a])return!0;if(l.fill&&l.fill.charAt(l.fill.length-1)===a)return!0}}return!1}function Ae(e){var t=r.select(e),n=t.select(".text-math-group");return n.empty()?t.select("text"):n}function Pe(e){return e._id+".automargin"}function Le(e){return Pe(e)+".mirror"}function De(e){return e._id+".rangeslider"}function je(e,t){var n,r,a=[];for(n=0;n<t.length;n++){var o=[],i=e._fullData[t[n]].xaxis,l=e._fullData[t[n]].yaxis;if(i&&l){for(r=0;r<a.length;r++)-1===a[r].x.indexOf(i)&&-1===a[r].y.indexOf(l)||o.push(r);if(o.length){var s,u=a[o[0]];if(o.length>1)for(r=1;r<o.length;r++)s=a[o[r]],Ie(u.x,s.x),Ie(u.y,s.y);Ie(u.x,[i]),Ie(u.y,[l])}else a.push({x:[i],y:[l]})}}return a}function Ie(e,t){for(var n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n])}function Re(e,t,n){var r,a,o=[],i=[],s=e.layout;for(r=0;r<t.length;r++)o.push(z.getFromId(e,t[r]));for(r=0;r<n.length;r++)i.push(z.getFromId(e,n[r]));var u=Object.keys(p),c=["anchor","domain","overlaying","position","side","tickangle","editType"],f=["linear","log"];for(r=0;r<u.length;r++){var d=u[r],h=o[0][d],v=i[0][d],m=!0,y=!1,g=!1;if("_"!==d.charAt(0)&&"function"!==typeof h&&-1===c.indexOf(d)){for(a=1;a<o.length&&m;a++){var b=o[a][d];"type"===d&&-1!==f.indexOf(h)&&-1!==f.indexOf(b)&&h!==b?y=!0:b!==h&&(m=!1)}for(a=1;a<i.length&&m;a++){var x=i[a][d];"type"===d&&-1!==f.indexOf(v)&&-1!==f.indexOf(x)&&v!==x?g=!0:i[a][d]!==v&&(m=!1)}m&&(y&&(s[o[0]._name].type="linear"),g&&(s[i[0]._name].type="linear"),ze(s,d,o,i,e._fullLayout._dfltTitle))}}for(r=0;r<e._fullLayout.annotations.length;r++){var _=e._fullLayout.annotations[r];-1!==t.indexOf(_.xref)&&-1!==n.indexOf(_.yref)&&l.swapAttrs(s.annotations[r],["?"])}}function ze(e,t,n,r,a){var o,i=l.nestedProperty,s=i(e[n[0]._name],t).get(),u=i(e[r[0]._name],t).get();for("title"===t&&(s&&s.text===a.x&&(s.text=a.y),u&&u.text===a.y&&(u.text=a.x)),o=0;o<n.length;o++)i(e,n[o]._name+"."+t).set(u);for(o=0;o<r.length;o++)i(e,r[o]._name+"."+t).set(s)}function Ne(e){return"angularaxis"===e._id}function Fe(e,t){for(var n=t._rangebreaks.length,r=0;r<n;r++){var a=t._rangebreaks[r];if(e>=a.min&&e<a.max)return a.max}return e}z.getTickFormat=function(e){var t,n,r;function a(e){return"string"!==typeof e?e:Number(e.replace("M",""))*w}function o(e,t){var n=["L","D"];if(typeof e===typeof t){if("number"===typeof e)return e-t;var r=n.indexOf(e.charAt(0)),a=n.indexOf(t.charAt(0));return r===a?Number(e.replace(/(L|D)/g,""))-Number(t.replace(/(L|D)/g,"")):r-a}return"number"===typeof e?1:-1}function i(e,t,n){var r=n||function(e){return e},a=t[0],o=t[1];return(!a&&"number"!==typeof a||r(a)<=r(e))&&(!o&&"number"!==typeof o||r(o)>=r(e))}function l(e,t){var n=null===t[0],r=null===t[1],a=o(e,t[0])>=0,i=o(e,t[1])<=0;return(n||a)&&(r||i)}if(e.tickformatstops&&e.tickformatstops.length>0)switch(e.type){case"date":case"linear":for(t=0;t<e.tickformatstops.length;t++)if(r=e.tickformatstops[t],r.enabled&&i(e.dtick,r.dtickrange,a)){n=r;break}break;case"log":for(t=0;t<e.tickformatstops.length;t++)if(r=e.tickformatstops[t],r.enabled&&l(e.dtick,r.dtickrange)){n=r;break}break;default:}return n?n.value:e.tickformat},z.getSubplots=function(e,t){var n=e._fullLayout._subplots,r=n.cartesian.concat(n.gl2d||[]),a=t?z.findSubplotsWithAxis(r,t):r;return a.sort((function(e,t){var n=e.substr(1).split("y"),r=t.substr(1).split("y");return n[0]===r[0]?+n[1]-+r[1]:+n[0]-+r[0]})),a},z.findSubplotsWithAxis=function(e,t){for(var n=new RegExp("x"===t._id.charAt(0)?"^"+t._id+"y":t._id+"$"),r=[],a=0;a<e.length;a++){var o=e[a];n.test(o)&&r.push(o)}return r},z.makeClipPaths=function(e){var t=e._fullLayout;if(!t._hasOnlyLargeSploms){var n,a,o={_offset:0,_length:t.width,_id:""},i={_offset:0,_length:t.height,_id:""},l=z.list(e,"x",!0),s=z.list(e,"y",!0),u=[];for(n=0;n<l.length;n++)for(u.push({x:l[n],y:i}),a=0;a<s.length;a++)0===n&&u.push({x:o,y:s[a]}),u.push({x:l[n],y:s[a]});var c=t._clips.selectAll(".axesclip").data(u,(function(e){return e.x._id+e.y._id}));c.enter().append("clipPath").classed("axesclip",!0).attr("id",(function(e){return"clip"+t._uid+e.x._id+e.y._id})).append("rect"),c.exit().remove(),c.each((function(e){r.select(this).select("rect").attr({x:e.x._offset||0,y:e.y._offset||0,width:e.x._length||1,height:e.y._length||1})}))}},z.draw=function(e,t,n){var r=e._fullLayout;"redraw"===t&&r._paper.selectAll("g.subplot").each((function(e){var t=e[0],n=r._plots[t],a=n.xaxis,o=n.yaxis;n.xaxislayer.selectAll("."+a._id+"tick").remove(),n.yaxislayer.selectAll("."+o._id+"tick").remove(),n.xaxislayer.selectAll("."+a._id+"tick2").remove(),n.yaxislayer.selectAll("."+o._id+"tick2").remove(),n.xaxislayer.selectAll("."+a._id+"divider").remove(),n.yaxislayer.selectAll("."+o._id+"divider").remove(),n.gridlayer&&n.gridlayer.selectAll("path").remove(),n.zerolinelayer&&n.zerolinelayer.selectAll("path").remove(),r._infolayer.select(".g-"+a._id+"title").remove(),r._infolayer.select(".g-"+o._id+"title").remove()}));var a=t&&"redraw"!==t?t:z.listIds(e);return l.syncOrAsync(a.map((function(t){return function(){if(t){var r=z.getFromId(e,t),a=z.drawOne(e,r,n);return r._r=r.range.slice(),r._rl=l.simpleMap(r._r,r.r2l),a}}})))},z.drawOne=function(e,t,n){var r,a,s;n=n||{},t.setScale();var u=e._fullLayout,c=t._id,f=c.charAt(0),p=z.counterLetter(c),d=u._plots[t._mainSubplot];if(d){var h=d[f+"axislayer"],v=t._mainLinePosition,m=t._mainMirrorPosition,y=t._vals=z.calcTicks(t),g=[t.mirror,v,m].join("_");for(r=0;r<y.length;r++)y[r].axInfo=g;t._selections={},t._tickAngles&&(t._prevTickAngles=t._tickAngles),t._tickAngles={},t._depth=null;var b={};if(t.visible){var x,_,w=z.makeTransFn(t),k="period"===t.ticklabelmode?z.makeTransPeriodFn(t):z.makeTransFn(t);if("boundaries"===t.tickson){var T=be(t,y);_=z.clipEnds(t,T),x="inside"===t.ticks?_:T}else _=z.clipEnds(t,y),x="inside"===t.ticks?_:y;var E=t._gridVals=_,O=_e(t,y);if(!u._hasOnlyLargeSploms){var M=t._subplotsWith,S={};for(r=0;r<M.length;r++){a=M[r],s=u._plots[a];var C=s[p+"axis"],A=C._mainAxis._id;if(!S[A]){S[A]=1;var P="x"===f?"M0,"+C._offset+"v"+C._length:"M"+C._offset+",0h"+C._length;z.drawGrid(e,t,{vals:E,counterAxis:C,layer:s.gridlayer.select("."+c),path:P,transFn:w}),z.drawZeroLine(e,t,{counterAxis:C,layer:s.zerolinelayer,path:P,transFn:w})}}}var L=z.getTickSigns(t),D=[];if(t.ticks){var j,N,F,B=z.makeTickPath(t,v,L[2]);if(t._anchorAxis&&t.mirror&&!0!==t.mirror?(j=z.makeTickPath(t,m,L[3]),N=B+j):(j="",N=B),t.showdividers&&"outside"===t.ticks&&"boundaries"===t.tickson){var V={};for(r=0;r<O.length;r++)V[O[r].x]=1;F=function(e){return V[e.x]?j:N}}else F=N;z.drawTicks(e,t,{vals:x,layer:h,path:F,transFn:w}),"allticks"===t.mirror&&(D=Object.keys(t._linepositions||{}))}for(r=0;r<D.length;r++){a=D[r],s=u._plots[a];var H=t._linepositions[a]||[],U=z.makeTickPath(t,H[0],L[0])+z.makeTickPath(t,H[1],L[1]);z.drawTicks(e,t,{vals:x,layer:s[f+"axislayer"],path:U,transFn:w})}var W=[];if(W.push((function(){return z.drawLabels(e,t,{vals:y,layer:h,transFn:k,labelFns:z.makeLabelFns(t,v)})})),"multicategory"===t.type){var q={x:2,y:10}[f];W.push((function(){var n={x:"height",y:"width"}[f],r=G()[n]+q+(t._tickAngles[c+"tick"]?t.tickfont.size*I:0);return z.drawLabels(e,t,{vals:xe(t,y),layer:h,cls:c+"tick2",repositionOnUpdate:!0,secondary:!0,transFn:w,labelFns:z.makeLabelFns(t,v+r*L[4])})})),W.push((function(){return t._depth=L[4]*(G("tick2")[t.side]-v),Te(e,t,{vals:O,layer:h,path:z.makeTickPath(t,v,L[4],t._depth),transFn:w})}))}else t.title.hasOwnProperty("standoff")&&W.push((function(){t._depth=L[4]*(G()[t.side]-v)}));var $=i.getComponentMethod("rangeslider","isVisible")(t);return W.push((function(){var n,r,a,l,s=t.side.charAt(0),c=R[t.side].charAt(0),d=z.getPxPosition(e,t),h="outside"===t.ticks?t.ticklen:0;if((t.automargin||$)&&("multicategory"===t.type?n=G("tick2"):(n=G(),"x"===f&&"b"===s&&(t._depth=Math.max(n.width>0?n.bottom-d:0,h)))),t.automargin){r={x:0,y:0,r:0,l:0,t:0,b:0};var v=[0,1];if("x"===f){if("b"===s?r[s]=t._depth:(r[s]=t._depth=Math.max(n.width>0?d-n.top:0,h),v.reverse()),n.width>0){var m=n.right-(t._offset+t._length);m>0&&(r.xr=1,r.r=m);var y=t._offset-n.left;y>0&&(r.xl=0,r.l=y)}}else if("l"===s?r[s]=t._depth=Math.max(n.height>0?d-n.left:0,h):(r[s]=t._depth=Math.max(n.height>0?n.right-d:0,h),v.reverse()),n.height>0){var g=n.bottom-(t._offset+t._length);g>0&&(r.yb=0,r.b=g);var b=t._offset-n.top;b>0&&(r.yt=1,r.t=b)}r[p]="free"===t.anchor?t.position:t._anchorAxis.domain[v[0]],t.title.text!==u._dfltTitle[f]&&(r[s]+=Ee(t)+(t.title.standoff||0)),t.mirror&&"free"!==t.anchor&&(a={x:0,y:0,r:0,l:0,t:0,b:0},a[c]=t.linewidth,t.mirror&&!0!==t.mirror&&(a[c]+=h),!0===t.mirror||"ticks"===t.mirror?a[p]=t._anchorAxis.domain[v[1]]:"all"!==t.mirror&&"allticks"!==t.mirror||(a[p]=[t._counterDomainMin,t._counterDomainMax][v[1]]))}$&&(l=i.getComponentMethod("rangeslider","autoMarginOpts")(e,t)),o.autoMargin(e,Pe(t),r),o.autoMargin(e,Le(t),a),o.autoMargin(e,De(t),l)})),n.skipTitle||$&&"bottom"===t.side||W.push((function(){return Oe(e,t)})),l.syncOrAsync(W)}}function G(e){var n=c+(e||"tick");return b[n]||(b[n]=we(t,n)),b[n]}},z.getTickSigns=function(e){var t=e._id.charAt(0),n={x:"top",y:"right"}[t],r=e.side===n?1:-1,a=[-1,1,r,-r];return"inside"!==e.ticks===("x"===t)&&(a=a.map((function(e){return-e}))),e.side&&a.push({l:-1,t:-1,r:1,b:1}[e.side.charAt(0)]),a},z.makeTransFn=function(e){var t=e._id.charAt(0),n=e._offset;return"x"===t?function(t){return"translate("+(n+e.l2p(t.x))+",0)"}:function(t){return"translate(0,"+(n+e.l2p(t.x))+")"}},z.makeTransPeriodFn=function(e){var t=e._id.charAt(0),n=e._offset;return"x"===t?function(t){return"translate("+(n+e.l2p(void 0!==t.periodX?t.periodX:t.x))+",0)"}:function(t){return"translate(0,"+(n+e.l2p(void 0!==t.periodX?t.periodX:t.x))+")"}},z.makeTickPath=function(e,t,n,r){r=void 0!==r?r:e.ticklen;var a=e._id.charAt(0),o=(e.linewidth||1)/2;return"x"===a?"M0,"+(t+o*n)+"v"+r*n:"M"+(t+o*n)+",0h"+r*n},z.makeLabelFns=function(e,t,n){var r=e._id.charAt(0),o="boundaries"!==e.tickson&&"outside"===e.ticks,i=0,s=0;if(o&&(i+=e.ticklen),n&&"outside"===e.ticks){var u=l.deg2rad(n);i=e.ticklen*Math.cos(u)+1,s=e.ticklen*Math.sin(u)}e.showticklabels&&(o||e.showline)&&(i+=.2*e.tickfont.size),i+=(e.linewidth||1)/2;var c,f,p,d,h={labelStandoff:i,labelShift:s};return"x"===r?(d="bottom"===e.side?1:-1,c=s*d,f=t+i*d,p="bottom"===e.side?1:-.2,h.xFn=function(e){return e.dx+c},h.yFn=function(e){return e.dy+f+e.fontSize*p},h.anchorFn=function(e,t){return a(t)&&0!==t&&180!==t?t*d<0?"end":"start":"middle"},h.heightFn=function(t,n,r){return n<-60||n>60?-.5*r:"top"===e.side?-r:0}):"y"===r&&(d="right"===e.side?1:-1,c=i,f=-s*d,p=90===Math.abs(e.tickangle)?.5:0,h.xFn=function(e){return e.dx+t+(c+e.fontSize*p)*d},h.yFn=function(e){return e.dy+f+e.fontSize*D},h.anchorFn=function(t,n){return a(n)&&90===Math.abs(n)?"middle":"right"===e.side?"start":"end"},h.heightFn=function(t,n,r){return n*="left"===e.side?1:-1,n<-30?-r:n<30?-.5*r:0}),h},z.drawTicks=function(e,t,n){n=n||{};var r=t._id+"tick",a=n.vals;"period"===t.ticklabelmode&&(a=a.slice(),a.shift());var o=n.layer.selectAll("path."+r).data(t.ticks?a:[],ke);o.exit().remove(),o.enter().append("path").classed(r,1).classed("ticks",1).classed("crisp",!1!==n.crisp).call(c.stroke,t.tickcolor).style("stroke-width",f.crispRound(e,t.tickwidth,1)+"px").attr("d",n.path),o.attr("transform",n.transFn)},z.drawGrid=function(e,t,n){n=n||{};var r=t._id+"grid",a=n.vals,o=n.counterAxis;if(!1===t.showgrid)a=[];else if(o&&z.shouldShowZeroLine(e,t,o))for(var i="array"===t.tickmode,l=0;l<a.length;l++){var s=a[l].x;if(i?!s:Math.abs(s)<t.dtick/100){if(a=a.slice(0,l).concat(a.slice(l+1)),!i)break;l--}}var u=n.layer.selectAll("path."+r).data(a,ke);u.exit().remove(),u.enter().append("path").classed(r,1).classed("crisp",!1!==n.crisp),t._gw=f.crispRound(e,t.gridwidth,1),u.attr("transform",n.transFn).attr("d",n.path).call(c.stroke,t.gridcolor||"#ddd").style("stroke-width",t._gw+"px"),"function"===typeof n.path&&u.attr("d",n.path)},z.drawZeroLine=function(e,t,n){n=n||n;var r=t._id+"zl",a=z.shouldShowZeroLine(e,t,n.counterAxis),o=n.layer.selectAll("path."+r).data(a?[{x:0,id:t._id}]:[]);o.exit().remove(),o.enter().append("path").classed(r,1).classed("zl",1).classed("crisp",!1!==n.crisp).each((function(){n.layer.selectAll("path").sort((function(e,t){return F.idSort(e.id,t.id)}))})),o.attr("transform",n.transFn).attr("d",n.path).call(c.stroke,t.zerolinecolor||c.defaultLine).style("stroke-width",f.crispRound(e,t.zerolinewidth,t._gw||1)+"px")},z.drawLabels=function(e,t,n){n=n||{};var o=e._fullLayout,i=t._id,u=i.charAt(0),c=n.cls||i+"tick",p=n.vals,d=n.labelFns,h=n.secondary?0:t.tickangle,v=(t._prevTickAngles||{})[c],m=n.layer.selectAll("g."+c).data(t.showticklabels?p:[],ke),y=[];function g(e,t){e.each((function(e){var o=r.select(this),i=o.select(".text-math-group"),l=d.anchorFn(e,t),u=n.transFn.call(o.node(),e)+(a(t)&&0!==+t?" rotate("+t+","+d.xFn(e)+","+(d.yFn(e)-e.fontSize/2)+")":""),c=s.lineCount(o),p=I*e.fontSize,h=d.heightFn(e,a(t)?+t:0,(c-1)*p);if(h&&(u+=" translate(0, "+h+")"),i.empty())o.select("text").attr({transform:u,"text-anchor":l});else{var v=f.bBox(i.node()).width,m=v*{end:-.5,start:.5}[l];i.attr("transform",u+(m?"translate("+m+",0)":""))}}))}function b(){return y.length&&Promise.all(y)}m.enter().append("g").classed(c,1).append("text").attr("text-anchor","middle").each((function(t){var n=r.select(this),a=e._promises.length;n.call(s.positionText,d.xFn(t),d.yFn(t)).call(f.font,t.font,t.fontSize,t.fontColor).text(t.text).call(s.convertToTspans,e),e._promises[a]?y.push(e._promises.pop().then((function(){g(n,h)}))):g(n,h)})),m.exit().remove(),n.repositionOnUpdate&&m.each((function(e){r.select(this).select("text").call(s.positionText,d.xFn(e),d.yFn(e))})),g(m,v+1?v:h);var x=null;function _(){if(g(m,h),p.length&&"x"===u&&!a(h)&&("log"!==t.type||"D"!==String(t.dtick).charAt(0))){x=0;var e,r=0,o=[];if(m.each((function(e){r=Math.max(r,e.fontSize);var n=t.l2p(e.x),a=Ae(this),i=f.bBox(a.node());o.push({top:0,bottom:10,height:10,left:n-i.width/2,right:n+i.width/2+2,width:i.width+2})})),"boundaries"!==t.tickson&&!t.showdividers||n.secondary){var i=p.length,s=Math.abs((p[i-1].x-p[0].x)*t._m)/(i-1),c=s<2.5*r||"multicategory"===t.type;for(e=0;e<o.length-1;e++)if(l.bBoxIntersect(o[e],o[e+1])){x=c?90:30;break}}else{var d=2;for(t.ticks&&(d+=t.tickwidth/2),e=0;e<o.length;e++){var v=p[e].xbnd,y=o[e];if(null!==v[0]&&y.left-t.l2p(v[0])<d||null!==v[1]&&t.l2p(v[1])-y.right<d){x=90;break}}}x&&g(m,x)}}t._selections&&(t._selections[c]=m);var w=[b];t.automargin&&o._redrawFromAutoMarginCount&&90===v?(x=90,w.push((function(){g(m,v)}))):w.push(_),t._tickAngles&&w.push((function(){t._tickAngles[c]=null===x?a(h)?h:0:x}));var k=l.syncOrAsync(w);return k&&k.then&&e._promises.push(k),k},z.getPxPosition=function(e,t){var n,r=e._fullLayout._size,a=t._id.charAt(0),o=t.side;return"free"!==t.anchor?n=t._anchorAxis:"x"===a?n={_offset:r.t+(1-(t.position||0))*r.h,_length:0}:"y"===a&&(n={_offset:r.l+(t.position||0)*r.w,_length:0}),"top"===o||"left"===o?n._offset:"bottom"===o||"right"===o?n._offset+n._length:void 0},z.shouldShowZeroLine=function(e,t,n){var r=l.simpleMap(t.range,t.r2l);return r[0]*r[1]<=0&&t.zeroline&&("linear"===t.type||"-"===t.type)&&!(t.rangebreaks&&t.maskBreaks(0)===P)&&(Me(t,0)||!Se(e,t,n,r)||Ce(e,t))},z.clipEnds=function(e,t){return t.filter((function(t){return Me(e,t.x)}))},z.allowAutoMargin=function(e){for(var t=z.list(e,"",!0),n=0;n<t.length;n++){var r=t[n];r.automargin&&(o.allowAutoMargin(e,Pe(r)),r.mirror&&o.allowAutoMargin(e,Le(r))),i.getComponentMethod("rangeslider","isVisible")(r)&&o.allowAutoMargin(e,De(r))}},z.swap=function(e,t){for(var n=je(e,t),r=0;r<n.length;r++)Re(e,n[r].x,n[r].y)}},{"../../components/color":615,"../../components/drawing":637,"../../components/titles":710,"../../constants/alignment":717,"../../constants/numerical":725,"../../lib":750,"../../lib/svg_text_utils":774,"../../plots/plots":862,"../../registry":882,"./autorange":798,"./axis_autotype":800,"./axis_ids":802,"./clean_ticks":804,"./layout_attributes":813,"./set_convert":819,d3:169,"fast-isnumeric":241}],800:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("../../constants/numerical").BADNUM;function i(e){if(!e)return!1;for(var t=0;t<e.length;t++)if(r(e[t]))return!0;return!1}function l(e,t){for(var n=Math.max(1,(e.length-1)/1e3),o=0,i=0,l={},s=0;s<e.length;s+=n){var u=e[Math.round(s)],c=String(u);l[c]||(l[c]=1,a.isDateTime(u,t)&&(o+=1),r(u)&&(i+=1))}return o>2*i}function s(e){for(var t=Math.max(1,(e.length-1)/1e3),n=0,r=0,i={},l=0;l<e.length;l+=t){var s=e[Math.round(l)],u=String(s);i[u]||(i[u]=1,"boolean"===typeof s?r++:a.cleanNumber(s)!==o?n++:"string"===typeof s&&r++)}return r>2*n}function u(e){return a.isArrayOrTypedArray(e[0])&&a.isArrayOrTypedArray(e[1])}t.exports=function(e,t,n){return n=n||{},!n.noMultiCategory&&u(e)?"multicategory":l(e,t)?"date":s(e)?"category":i(e)?"linear":"-"}},{"../../constants/numerical":725,"../../lib":750,"fast-isnumeric":241}],801:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../registry"),o=e("../../lib"),i=e("../array_container_defaults"),l=e("./layout_attributes"),s=e("./tick_value_defaults"),u=e("./tick_mark_defaults"),c=e("./tick_label_defaults"),f=e("./category_order_defaults"),p=e("./line_grid_defaults"),d=e("./set_convert"),h=e("./constants").WEEKDAY_PATTERN,v=e("./constants").HOUR_PATTERN;function m(e,t,n){function a(n,r){return o.coerce(e,t,l.rangebreaks,n,r)}var i=a("enabled");if(i){var s=a("bounds");if(s&&s.length>=2){var u,c,f="";if(2===s.length)for(u=0;u<2;u++)if(c=g(s[u]),c){f=h;break}var p=a("pattern",f);if(p===h)for(u=0;u<2;u++)c=g(s[u]),c&&(t.bounds[u]=s[u]=c-1);if(p)for(u=0;u<2;u++)switch(c=s[u],p){case h:if(!r(c))return void(t.enabled=!1);if(c=+c,c!==Math.floor(c)||c<0||c>=7)return void(t.enabled=!1);t.bounds[u]=s[u]=c;break;case v:if(!r(c))return void(t.enabled=!1);if(c=+c,c<0||c>24)return void(t.enabled=!1);t.bounds[u]=s[u]=c;break}if(!1===n.autorange){var d=n.range;if(d[0]<d[1]){if(s[0]<d[0]&&s[1]>d[1])return void(t.enabled=!1)}else if(s[0]>d[0]&&s[1]<d[1])return void(t.enabled=!1)}}else{var m=a("values");if(!m||!m.length)return void(t.enabled=!1);a("dvalue")}}}t.exports=function(e,t,n,r,v){var y=r.letter,g=r.font||{},b=r.splomStash||{},x=n("visible",!r.visibleDflt),_=t._template||{},w=t.type||_.type||"-";if("date"===w){var k=a.getComponentMethod("calendars","handleDefaults");k(e,t,"calendar",r.calendar)}d(t,v);var T=!t.isValidRange(e.range);T&&r.reverseDflt&&(T="reversed");var E=n("autorange",T);!E||"linear"!==w&&"-"!==w||n("rangemode"),n("range"),t.cleanRange(),f(e,t,n,r),"category"===w||r.noHover||n("hoverformat");var O=n("color"),M=O!==l.color.dflt?O:g.color,S=b.label||v._dfltTitle[y];if(c(e,t,n,w,r,{pass:1}),!x)return t;n("title.text",S),o.coerceFont(n,"title.font",{family:g.family,size:Math.round(1.2*g.size),color:M}),s(e,t,n,w),c(e,t,n,w,r,{pass:2}),u(e,t,n,r),p(e,t,n,{dfltColor:O,bgColor:r.bgColor,showGrid:r.showGrid,attributes:l}),(t.showline||t.ticks)&&n("mirror"),r.automargin&&n("automargin");var C,A="multicategory"===w;r.noTickson||"category"!==w&&!A||!t.ticks&&!t.showgrid||(A&&(C="boundaries"),n("tickson",C));if(A){var P=n("showdividers");P&&(n("dividercolor"),n("dividerwidth"))}if("date"===w)if(r.noTicklabelmode||n("ticklabelmode"),i(e,t,{name:"rangebreaks",inclusionAttr:"enabled",handleItemDefaults:m}),t.rangebreaks.length){for(var L=0;L<t.rangebreaks.length;L++)if(t.rangebreaks[L].pattern===h){t._hasDayOfWeekBreaks=!0;break}if(d(t,v),v._has("scattergl")||v._has("splom"))for(var D=0;D<r.data.length;D++){var j=r.data[D];"scattergl"!==j.type&&"splom"!==j.type||(j.visible=!1,o.warn(j.type+" traces do not work on axes with rangebreaks. Setting trace "+j.index+" to `visible: false`."))}}else delete t.rangebreaks;return t};var y={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function g(e){if("string"===typeof e)return y[e.substr(0,3).toLowerCase()]}},{"../../lib":750,"../../registry":882,"../array_container_defaults":794,"./category_order_defaults":803,"./constants":805,"./layout_attributes":813,"./line_grid_defaults":815,"./set_convert":819,"./tick_label_defaults":820,"./tick_mark_defaults":821,"./tick_value_defaults":822,"fast-isnumeric":241}],802:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("./constants");n.id2name=function(e){if("string"===typeof e&&e.match(a.AX_ID_PATTERN)){var t=e.split(" ")[0].substr(1);return"1"===t&&(t=""),e.charAt(0)+"axis"+t}},n.name2id=function(e){if(e.match(a.AX_NAME_PATTERN)){var t=e.substr(5);return"1"===t&&(t=""),e.charAt(0)+t}},n.cleanId=function(e,t,n){var r=/( domain)$/.test(e);if("string"===typeof e&&e.match(a.AX_ID_PATTERN)&&(!t||e.charAt(0)===t)&&(!r||n)){var o=e.split(" ")[0].substr(1).replace(/^0+/,"");return"1"===o&&(o=""),e.charAt(0)+o+(r&&n?" domain":"")}},n.list=function(e,t,r){var a=e._fullLayout;if(!a)return[];var o,i=n.listIds(e,t),l=new Array(i.length);for(o=0;o<i.length;o++){var s=i[o];l[o]=a[s.charAt(0)+"axis"+s.substr(1)]}if(!r){var u=a._subplots.gl3d||[];for(o=0;o<u.length;o++){var c=a[u[o]];t?l.push(c[t+"axis"]):l.push(c.xaxis,c.yaxis,c.zaxis)}}return l},n.listIds=function(e,t){var n=e._fullLayout;if(!n)return[];var r=n._subplots;return t?r[t+"axis"]:r.xaxis.concat(r.yaxis)},n.getFromId=function(e,t,r){var a=e._fullLayout;return t=void 0===t||"string"!==typeof t?t:t.replace(" domain",""),"x"===r?t=t.replace(/y[0-9]*/,""):"y"===r&&(t=t.replace(/x[0-9]*/,"")),a[n.id2name(t)]},n.getFromTrace=function(e,t,a){var o=e._fullLayout,i=null;if(r.traceIs(t,"gl3d")){var l=t.scene;"scene"===l.substr(0,5)&&(i=o[l][a+"axis"])}else i=n.getFromId(e,t[a+"axis"]||a);return i},n.idSort=function(e,t){var n=e.charAt(0),r=t.charAt(0);return n!==r?n>r?1:-1:+(e.substr(1)||1)-+(t.substr(1)||1)},n.getAxisGroup=function(e,t){for(var n=e._axisMatchGroups,r=0;r<n.length;r++){var a=n[r];if(a[t])return"g"+r}return t},n.ref2id=function(e){return!!/^[xyz]/.test(e)&&e.split(" ")[0]}},{"../../registry":882,"./constants":805}],803:[function(e,t,n){"use strict";function r(e,t){var n,r,a,o=t.dataAttr||e._id.charAt(0),i={};if(t.axData)n=t.axData;else for(n=[],r=0;r<t.data.length;r++){var l=t.data[r];l[o+"axis"]===e._id&&n.push(l)}for(r=0;r<n.length;r++){var s=n[r][o];for(a=0;a<s.length;a++){var u=s[a];null!==u&&void 0!==u&&(i[u]=1)}}return Object.keys(i)}t.exports=function(e,t,n,a){if("category"===t.type){var o,i=e.categoryarray,l=Array.isArray(i)&&i.length>0;l&&(o="array");var s,u=n("categoryorder",o);"array"===u&&(s=n("categoryarray")),l||"array"!==u||(u=t.categoryorder="trace"),"trace"===u?t._initialCategories=[]:"array"===u?t._initialCategories=s.slice():(s=r(t,a).sort(),"category ascending"===u?t._initialCategories=s:"category descending"===u&&(t._initialCategories=s.reverse()))}}},{}],804:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("../../constants/numerical"),i=o.ONEDAY,l=o.ONEWEEK;n.dtick=function(e,t){var n="log"===t,a="date"===t,o="category"===t,l=a?i:1;if(!e)return l;if(r(e))return e=Number(e),e<=0?l:o?Math.max(1,Math.round(e)):a?Math.max(.1,e):e;if("string"!==typeof e||!a&&!n)return l;var s=e.charAt(0),u=e.substr(1);return u=r(u)?Number(u):0,u<=0||!(a&&"M"===s&&u===Math.round(u)||n&&"L"===s||n&&"D"===s&&(1===u||2===u))?l:e},n.tick0=function(e,t,n,o){return"date"===t?a.cleanDate(e,a.dateTick0(n,o%l===0?1:0)):"D1"!==o&&"D2"!==o?r(e)?Number(e):0:void 0}},{"../../constants/numerical":725,"../../lib":750,"fast-isnumeric":241}],805:[function(e,t,n){"use strict";var r=e("../../lib/regex").counter;t.exports={idRegex:{x:r("x","( domain)?"),y:r("y","( domain)?")},attrRegex:r("[xy]axis"),xAxisMatch:r("xaxis"),yAxisMatch:r("yaxis"),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:"hour",WEEKDAY_PATTERN:"day of week",MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:"-select",DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:["imagelayer","heatmaplayer","contourcarpetlayer","contourlayer","funnellayer","waterfalllayer","barlayer","carpetlayer","violinlayer","boxlayer","ohlclayer","scattercarpetlayer","scatterlayer"],clipOnAxisFalseQuery:[".scatterlayer",".barlayer",".funnellayer",".waterfalllayer"],layerValue2layerClass:{"above traces":"above","below traces":"below"}}},{"../../lib/regex":766}],806:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./axis_ids").id2name,o=e("./scale_zoom"),i=e("./autorange").makePadFn,l=e("./autorange").concatExtremes,s=e("../../constants/numerical").ALMOST_EQUAL,u=e("../../constants/alignment").FROM_BL;function c(e,t,n,r,o){var i,l,s,u,c="range"!==o,f=r[a(t)].type,p=[];for(l=0;l<n.length;l++)if(s=n[l],s!==t&&(u=r[a(s)],u.type===f))if(u.fixedrange){if(c&&u.anchor){var d=r[a(u.anchor)];d.fixedrange&&p.push(s)}}else p.push(s);for(i=0;i<e.length;i++)if(e[i][t]){var h=e[i],v=[];for(l=0;l<p.length;l++)s=p[l],h[s]||v.push(s);return{linkableAxes:v,thisGroup:h}}return{linkableAxes:p,thisGroup:null}}function f(e,t,n,r,a){var o,i,l,s,u;null===t?(t={},t[n]=1,u=e.length,e.push(t)):u=e.indexOf(t);var c=Object.keys(t);for(o=0;o<e.length;o++)if(l=e[o],o!==u&&l[r]){var f=l[r];for(i=0;i<c.length;i++)s=c[i],l[s]=f*a*t[s];return void e.splice(u,1)}if(1!==a)for(i=0;i<c.length;i++)t[c[i]]*=a;t[r]=1}function p(e,t){var n=e._inputDomain,r=u[e.constraintoward],a=n[0]+(n[1]-n[0])*r;e.domain=e._input.domain=[a+(n[0]-a)/t,a+(n[1]-a)/t],e.setScale()}n.handleConstraintDefaults=function(e,t,n,a){var o,i,l,s,u=a.allAxisIds,p=a.layoutOut,d=a.scaleanchorDflt,h=a.constrainDflt,v=p._axisConstraintGroups,m=p._axisMatchGroups,y=t._id,g=y.charAt(0),b=((p._splomAxes||{})[g]||{})[y]||{},x=t._id,_=x.charAt(0),w=n("constrain",h);if(r.coerce(e,t,{constraintoward:{valType:"enumerated",values:"x"===_?["left","center","right"]:["bottom","middle","top"],dflt:"x"===_?"center":"middle"}},"constraintoward"),!e.matches&&!b.matches||t.fixedrange||(i=c(m,x,u,p),o=r.coerce(e,t,{matches:{valType:"enumerated",values:i.linkableAxes||[],dflt:b.matches}},"matches")),o||t.fixedrange&&"domain"!==w||!e.scaleanchor&&!d||(s=c(v,x,u,p,w),l=r.coerce(e,t,{scaleanchor:{valType:"enumerated",values:s.linkableAxes||[]}},"scaleanchor",d)),o?(delete t.constrain,f(m,i.thisGroup,x,o,1)):-1!==u.indexOf(e.matches)&&r.warn("ignored "+t._name+'.matches: "'+e.matches+'" to avoid either an infinite loop or because the target axis has fixed range.'),l){var k=n("scaleratio");k||(k=t.scaleratio=1),f(v,s.thisGroup,x,l,k)}else-1!==u.indexOf(e.scaleanchor)&&r.warn("ignored "+t._name+'.scaleanchor: "'+e.scaleanchor+'" to avoid either an infinite loop and possibly inconsistent scaleratios, or because the target axis has fixed range or this axis declares a *matches* constraint.')},n.enforce=function(e){var t,n,r,u,c,f,d,h=e._fullLayout,v=h._axisConstraintGroups||[];for(t=0;t<v.length;t++){var m=v[t],y=Object.keys(m),g=1/0,b=0,x=1/0,_={},w={},k=!1;for(n=0;n<y.length;n++)r=y[n],w[r]=u=h[a(r)],u._inputDomain?u.domain=u._inputDomain.slice():u._inputDomain=u.domain.slice(),u._inputRange||(u._inputRange=u.range.slice()),u.setScale(),_[r]=c=Math.abs(u._m)/m[r],g=Math.min(g,c),"domain"!==u.constrain&&u._constraintShrinkable||(x=Math.min(x,c)),delete u._constraintShrinkable,b=Math.max(b,c),"domain"===u.constrain&&(k=!0);if(!(g>s*b)||k)for(n=0;n<y.length;n++)if(r=y[n],c=_[r],u=w[r],f=u.constrain,c!==x||"domain"===f)if(d=c/x,"range"===f)o(u,d);else{var T=u._inputDomain,E=(u.domain[1]-u.domain[0])/(T[1]-T[0]),O=(u.r2l(u.range[1])-u.r2l(u.range[0]))/(u.r2l(u._inputRange[1])-u.r2l(u._inputRange[0]));if(d/=E,d*O<1){u.domain=u._input.domain=T.slice(),o(u,d);continue}if(O<1&&(u.range=u._input.range=u._inputRange.slice(),d*=O),u.autorange){var M=u.r2l(u.range[0]),S=u.r2l(u.range[1]),C=(M+S)/2,A=C,P=C,L=Math.abs(S-C),D=C-L*d*1.0001,j=C+L*d*1.0001,I=i(u);p(u,d);var R,z,N=Math.abs(u._m),F=l(e,u),B=F.min,V=F.max;for(z=0;z<B.length;z++)R=B[z].val-I(B[z])/N,R>D&&R<A&&(A=R);for(z=0;z<V.length;z++)R=V[z].val+I(V[z])/N,R<j&&R>P&&(P=R);var H=(P-A)/(2*L);d/=H,A=u.l2r(A),P=u.l2r(P),u.range=u._input.range=M<S?[A,P]:[P,A]}p(u,d)}}},n.clean=function(e,t){if(t._inputDomain){for(var n=!1,r=t._id,a=e._fullLayout._axisConstraintGroups,o=0;o<a.length;o++)if(a[o][r]){n=!0;break}n&&"domain"===t.constrain||(t._input.domain=t.domain=t._inputDomain,delete t._inputDomain)}}},{"../../constants/alignment":717,"../../constants/numerical":725,"../../lib":750,"./autorange":798,"./axis_ids":802,"./scale_zoom":817}],807:[function(e,t,n){"use strict";var r=e("d3"),a=e("tinycolor2"),o=e("has-passive-events"),i=e("../../registry"),l=e("../../lib"),s=e("../../lib/svg_text_utils"),u=e("../../components/color"),c=e("../../components/drawing"),f=e("../../components/fx"),p=e("./axes"),d=e("../../lib/setcursor"),h=e("../../components/dragelement"),v=e("../../components/dragelement/helpers"),m=v.selectingOrDrawing,y=v.freeMode,g=e("../../constants/alignment").FROM_TL,b=e("../../lib/clear_gl_canvases"),x=e("../../plot_api/subroutines").redrawReglTraces,_=e("../plots"),w=e("./axis_ids").getFromId,k=e("./select").prepSelect,T=e("./select").clearSelect,E=e("./select").selectOnClick,O=e("./scale_zoom"),M=e("./constants"),S=M.MINDRAG,C=M.MINZOOM,A=!0;function P(e,t,n,o,u,d,v,A){var P,L,U,J,Q,ee,te,ne,re,ae,oe,ie,le,se,ue,ce,fe,pe,de,he,ve,me=e._fullLayout._zoomlayer,ye=v+A==="nsew",ge=1===(v+A).length;function be(){if(P=t.xaxis,L=t.yaxis,re=P._length,ae=L._length,te=P._offset,ne=L._offset,U={},U[P._id]=P,J={},J[L._id]=L,v&&A)for(var n=t.overlays,r=0;r<n.length;r++){var a=n[r].xaxis;U[a._id]=a;var o=n[r].yaxis;J[o._id]=o}Q=Z(U),ee=Z(J),le=j(Q,A),se=j(ee,v),ue=!se&&!le,oe=K(e,e._fullLayout._axisConstraintGroups,U,J),ie=K(e,e._fullLayout._axisMatchGroups,U,J),ce=A||oe.isSubplotConstrained||ie.isSubplotConstrained,fe=v||oe.isSubplotConstrained||ie.isSubplotConstrained;var i=e._fullLayout;pe=i._has("scattergl"),de=i._has("splom"),he=i._has("svg")}be();var xe=F(se+le,e._fullLayout.dragmode,ye),_e=D(t,v+A+"drag",xe,n,o,u,d);if(ue&&!ye)return _e.onmousedown=null,_e.style.pointerEvents="none",_e;var we,ke,Te,Ee,Oe,Me,Se,Ce,Ae,Pe,Le={element:_e,gd:e,plotinfo:t};function De(){Le.plotinfo.selection=!1,T(e)}function je(e,n){var a=Le.gd;if(a._fullLayout._activeShapeIndex>=0)a._fullLayout._deactivateShape(a);else{var o=a._fullLayout.clickmode;if(W(a),2!==e||ge||Ge(),ye)o.indexOf("select")>-1&&E(n,a,Q,ee,t.id,Le),o.indexOf("event")>-1&&f.click(a,n,t.id);else if(1===e&&ge){var l=v?L:P,u="s"===v||"w"===A?0:1,c=l._name+".range["+u+"]",p=I(l,u),d="left",h="middle";if(l.fixedrange)return;v?(h="n"===v?"top":"bottom","right"===l.side&&(d="right")):"e"===A&&(d="right"),a._context.showAxisRangeEntryBoxes&&r.select(_e).call(s.makeEditable,{gd:a,immediate:!0,background:a._fullLayout.paper_bgcolor,text:String(p),fill:l.tickfont?l.tickfont.color:"#444",horizontalAlign:d,verticalAlign:h}).on("edit",(function(e){var t=l.d2r(e);void 0!==t&&i.call("_guiRelayout",a,c,t)}))}}}function Ie(t,n,r){var o=_e.getBoundingClientRect();we=n-o.left,ke=r-o.top,Te={l:we,r:we,w:0,t:ke,b:ke,h:0},Ee=e._hmpixcount?e._hmlumcount/e._hmpixcount:a(e._fullLayout.plot_bgcolor).getLuminance(),Oe="M0,0H"+re+"V"+ae+"H0V0",Me=!1,Se="xy",Pe=!1,Ce=B(me,Ee,te,ne,Oe),Ae=V(me,te,ne)}function Re(t,n){if(e._transitioningWithDuration)return!1;var r=Math.max(0,Math.min(re,t+we)),a=Math.max(0,Math.min(ae,n+ke)),o=Math.abs(r-we),i=Math.abs(a-ke);function l(){Se="",Te.r=Te.l,Te.t=Te.b,Ae.attr("d","M0,0Z")}if(Te.l=Math.min(we,r),Te.r=Math.max(we,r),Te.t=Math.min(ke,a),Te.b=Math.max(ke,a),oe.isSubplotConstrained)o>C||i>C?(Se="xy",o/re>i/ae?(i=o*ae/re,ke>a?Te.t=ke-i:Te.b=ke+i):(o=i*re/ae,we>r?Te.l=we-o:Te.r=we+o),Ae.attr("d",Y(Te))):l();else if(ie.isSubplotConstrained)if(o>C||i>C){Se="xy";var s=Math.min(Te.l/re,(ae-Te.b)/ae),u=Math.max(Te.r/re,(ae-Te.t)/ae);Te.l=s*re,Te.r=u*re,Te.b=(1-s)*ae,Te.t=(1-u)*ae,Ae.attr("d",Y(Te))}else l();else!se||i<Math.min(Math.max(.6*o,S),C)?o<S||!le?l():(Te.t=0,Te.b=ae,Se="x",Ae.attr("d",$(Te,ke))):!le||o<Math.min(.6*i,C)?(Te.l=0,Te.r=re,Se="y",Ae.attr("d",G(Te,we))):(Se="xy",Ae.attr("d",Y(Te)));Te.w=Te.r-Te.l,Te.h=Te.b-Te.t,Se&&(Pe=!0),e._dragged=Pe,H(Ce,Ae,Te,Oe,Me,Ee),ze(),e.emit("plotly_relayouting",ve),Me=!0}function ze(){ve={},"xy"!==Se&&"x"!==Se||(R(Q,Te.l/re,Te.r/re,ve,oe.xaxes),qe("x",ve)),"xy"!==Se&&"y"!==Se||(R(ee,(ae-Te.b)/ae,(ae-Te.t)/ae,ve,oe.yaxes),qe("y",ve))}function Ne(){ze(),W(e),Ye(),q(e)}Le.prepFn=function(t,n,r){var a=Le.dragmode,o=e._fullLayout.dragmode;o!==a&&(Le.dragmode=o),be(),ue||(ye?t.shiftKey?"pan"===o?o="zoom":m(o)||(o="pan"):t.ctrlKey&&(o="pan"):o="pan"),y(o)?Le.minDrag=1:Le.minDrag=void 0,m(o)?(Le.xaxes=Q,Le.yaxes=ee,k(t,n,r,Le,o)):(Le.clickFn=je,m(a)&&De(),ue||("zoom"===o?(Le.moveFn=Re,Le.doneFn=Ne,Le.minDrag=1,Ie(t,n,r)):"pan"===o&&(Le.moveFn=We,Le.doneFn=Ye))),e._fullLayout._redrag=function(){var t=e._dragdata;if(t&&t.element===_e){var n=e._fullLayout.dragmode;m(n)||(be(),Ke([0,0,re,ae]),Le.moveFn(t.dx,t.dy))}}},h.init(Le);var Fe=[0,0,re,ae],Be=null,Ve=M.REDRAWDELAY,He=t.mainplot?e._fullLayout._plots[t.mainplot]:t;function Ue(t){if(e._context._scrollZoom.cartesian||e._fullLayout._enablescrollzoom){if(De(),e._transitioningWithDuration)return t.preventDefault(),void t.stopPropagation();be(),clearTimeout(Be);var n=-t.deltaY;if(isFinite(n)||(n=t.wheelDelta/10),isFinite(n)){var r,a=Math.exp(-Math.min(Math.max(n,-20),20)/200),o=He.draglayer.select(".nsewdrag").node().getBoundingClientRect(),i=(t.clientX-o.left)/o.width,s=(o.bottom-t.clientY)/o.height;if(ce){for(A||(i=.5),r=0;r<Q.length;r++)u(Q[r],i,a);qe("x"),Fe[2]*=a,Fe[0]+=Fe[2]*i*(1/a-1)}if(fe){for(v||(s=.5),r=0;r<ee.length;r++)u(ee[r],s,a);qe("y"),Fe[3]*=a,Fe[1]+=Fe[3]*(1-s)*(1/a-1)}Ke(Fe),$e(),e.emit("plotly_relayouting",ve),Be=setTimeout((function(){Fe=[0,0,re,ae],Ye()}),Ve),t.preventDefault()}else l.log("Did not find wheel motion attributes: ",t)}function u(e,t,n){if(!e.fixedrange){var r=l.simpleMap(e.range,e.r2l),a=r[0]+(r[1]-r[0])*t;e.range=r.map(o)}function o(t){return e.l2r(a+(t-a)*n)}}}function We(t,n){if(!e._transitioningWithDuration){if(e._fullLayout._replotting=!0,"ew"===le||"ns"===se)return le&&(z(Q,t),qe("x")),se&&(z(ee,n),qe("y")),Ke([le?-t:0,se?-n:0,re,ae]),$e(),void e.emit("plotly_relayouting",ve);if(oe.isSubplotConstrained&&le&&se){var r="w"===le===("n"===se)?1:-1,a=(t/re+r*n/ae)/2;t=a*re,n=r*a*ae}"w"===le?t=s(Q,0,t):"e"===le?t=s(Q,1,-t):le||(t=0),"n"===se?n=s(ee,1,n):"s"===se?n=s(ee,0,-n):se||(n=0);var o="w"===le?t:0,i="n"===se?n:0;if(oe.isSubplotConstrained){var l;if(!le&&1===se.length){for(l=0;l<Q.length;l++)Q[l].range=Q[l]._r.slice(),O(Q[l],1-n/ae);t=n*re/ae,o=t/2}if(!se&&1===le.length){for(l=0;l<ee.length;l++)ee[l].range=ee[l]._r.slice(),O(ee[l],1-t/re);n=t*ae/re,i=n/2}}qe("x"),qe("y"),Ke([o,i,re-t,ae-n]),$e(),e.emit("plotly_relayouting",ve)}function s(e,t,n){for(var r,a,o=1-t,i=0;i<e.length;i++){var l=e[i];if(!l.fixedrange){r=l,a=l._rl[o]+(l._rl[t]-l._rl[o])/N(n/l._length);var s=l.l2r(a);!1!==s&&void 0!==s&&(l.range[t]=s)}}return r._length*(r._rl[t]-a)/(r._rl[t]-r._rl[o])}}function qe(e,t){for(var n=ie.isSubplotConstrained?{x:ee,y:Q}[e]:ie[e+"axes"],r=ie.isSubplotConstrained?{x:Q,y:ee}[e]:[],a=0;a<n.length;a++){var o=n[a],i=o._id,l=ie.xLinks[i]||ie.yLinks[i],s=r[0]||U[l]||J[l];s&&(t?(t[o._name+".range[0]"]=t[s._name+".range[0]"],t[o._name+".range[1]"]=t[s._name+".range[1]"]):o.range=s.range.slice())}}function $e(){var t,n=[];function r(e){for(t=0;t<e.length;t++)e[t].fixedrange||n.push(e[t]._id)}for(ce&&(r(Q),r(oe.xaxes),r(ie.xaxes)),fe&&(r(ee),r(oe.yaxes),r(ie.yaxes)),ve={},t=0;t<n.length;t++){var a=n[t],o=w(e,a);p.drawOne(e,o,{skipTitle:!0}),ve[o._name+".range[0]"]=o.range[0],ve[o._name+".range[1]"]=o.range[1]}p.redrawComponents(e,n)}function Ge(){if(!e._transitioningWithDuration){var t=e._context.doubleClick,n=[];le&&(n=n.concat(Q)),se&&(n=n.concat(ee)),ie.xaxes&&(n=n.concat(ie.xaxes)),ie.yaxes&&(n=n.concat(ie.yaxes));var r,a,o,l={};if("reset+autosize"===t)for(t="autosize",a=0;a<n.length;a++)if(r=n[a],r._rangeInitial&&(r.range[0]!==r._rangeInitial[0]||r.range[1]!==r._rangeInitial[1])||!r._rangeInitial&&!r.autorange){t="reset";break}if("autosize"===t)for(a=0;a<n.length;a++)r=n[a],r.fixedrange||(l[r._name+".autorange"]=!0);else if("reset"===t)for((le||oe.isSubplotConstrained)&&(n=n.concat(oe.xaxes)),se&&!oe.isSubplotConstrained&&(n=n.concat(oe.yaxes)),oe.isSubplotConstrained&&(le?se||(n=n.concat(ee)):n=n.concat(Q)),a=0;a<n.length;a++)r=n[a],r.fixedrange||(r._rangeInitial?(o=r._rangeInitial,l[r._name+".range[0]"]=o[0],l[r._name+".range[1]"]=o[1]):l[r._name+".autorange"]=!0);e.emit("plotly_doubleclick",null),i.call("_guiRelayout",e,l)}}function Ye(){Ke([0,0,re,ae]),l.syncOrAsync([_.previousPromises,function(){e._fullLayout._replotting=!1,i.call("_guiRelayout",e,ve)}],e)}function Ke(t){var n,r,a,o,s=e._fullLayout,u=s._plots,f=s._subplots.cartesian;if(de&&i.subplotsRegistry.splom.drag(e),pe)for(n=0;n<f.length;n++)if(r=u[f[n]],a=r.xaxis,o=r.yaxis,r._scene){var p=l.simpleMap(a.range,a.r2l),d=l.simpleMap(o.range,o.r2l);r._scene.update({range:[p[0],d[0],p[1],d[1]]})}if((de||pe)&&(b(e),x(e)),he){var h=t[2]/P._length,m=t[3]/L._length;for(n=0;n<f.length;n++){r=u[f[n]],a=r.xaxis,o=r.yaxis;var y,g,_,w,k=ce&&!a.fixedrange&&U[a._id],T=fe&&!o.fixedrange&&J[o._id];if(k?(y=h,_=A?t[0]:Je(a,y)):ie.xaHash[a._id]?(y=h,_=t[0]*a._length/P._length):ie.yaHash[a._id]?(y=m,_="ns"===se?-t[1]*a._length/L._length:Je(a,y,{n:"top",s:"bottom"}[se])):(y=Xe(a,h,m),_=Ze(a,y)),T?(g=m,w=v?t[1]:Je(o,g)):ie.yaHash[o._id]?(g=m,w=t[1]*o._length/L._length):ie.xaHash[o._id]?(g=h,w="ew"===le?-t[0]*o._length/P._length:Je(o,g,{e:"right",w:"left"}[le])):(g=Xe(o,h,m),w=Ze(o,g)),y||g){y||(y=1),g||(g=1);var E=a._offset-_/y,O=o._offset-w/g;r.clipRect.call(c.setTranslate,_,w).call(c.setScale,y,g),r.plot.call(c.setTranslate,E,O).call(c.setScale,1/y,1/g),y===r.xScaleFactor&&g===r.yScaleFactor||(c.setPointGroupScale(r.zoomScalePts,y,g),c.setTextPointsScale(r.zoomScaleTxt,y,g)),c.hideOutsideRangePoints(r.clipOnAxisFalseTraces,r),r.xScaleFactor=y,r.yScaleFactor=g}}}}function Xe(e,t,n){return e.fixedrange?0:ce&&oe.xaHash[e._id]?t:fe&&(oe.isSubplotConstrained?oe.xaHash:oe.yaHash)[e._id]?n:0}function Ze(e,t){return t?(e.range=e._r.slice(),O(e,t),Je(e,t)):0}function Je(e,t,n){return e._length*(1-t)*g[n||e.constraintoward||"middle"]}return v.length*A.length!==1&&X(_e,Ue),_e}function L(e,t,n,r){var a=l.ensureSingle(e.draglayer,t,n,(function(t){t.classed("drag",!0).style({fill:"transparent","stroke-width":0}).attr("data-subplot",e.id)}));return a.call(d,r),a.node()}function D(e,t,n,a,o,i,l){var s=L(e,"rect",t,n);return r.select(s).call(c.setRect,a,o,i,l),s}function j(e,t){for(var n=0;n<e.length;n++)if(!e[n].fixedrange)return t;return""}function I(e,t){var n,a=e.range[t],o=Math.abs(a-e.range[1-t]);return"date"===e.type?a:"log"===e.type?(n=Math.ceil(Math.max(0,-Math.log(o)/Math.LN10))+3,r.format("."+n+"g")(Math.pow(10,a))):(n=Math.floor(Math.log(Math.abs(a))/Math.LN10)-Math.floor(Math.log(o)/Math.LN10)+4,r.format("."+String(n)+"g")(a))}function R(e,t,n,r,a){for(var o=0;o<e.length;o++){var i=e[o];if(!i.fixedrange)if(i.rangebreaks){var l="y"===i._id.charAt(0),s=l?1-t:t,u=l?1-n:n;r[i._name+".range[0]"]=i.l2r(i.p2l(s*i._length)),r[i._name+".range[1]"]=i.l2r(i.p2l(u*i._length))}else{var c=i._rl[0],f=i._rl[1]-c;r[i._name+".range[0]"]=i.l2r(c+f*t),r[i._name+".range[1]"]=i.l2r(c+f*n)}}if(a&&a.length){var p=(t+(1-n))/2;R(a,p,1-p,r,[])}}function z(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(!r.fixedrange)if(r.rangebreaks){var a=0,o=r._length,i=r.p2l(a+t)-r.p2l(a),l=r.p2l(o+t)-r.p2l(o),s=(i+l)/2;r.range=[r.l2r(r._rl[0]-s),r.l2r(r._rl[1]-s)]}else r.range=[r.l2r(r._rl[0]-t/r._m),r.l2r(r._rl[1]-t/r._m)]}}function N(e){return 1-(e>=0?Math.min(e,.9):1/(1/Math.max(e,-.3)+3.222))}function F(e,t,n){return e?"nsew"===e?n?"":"pan"===t?"move":"crosshair":e.toLowerCase()+"-resize":"pointer"}function B(e,t,n,r,a){return e.append("path").attr("class","zoombox").style({fill:t>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("transform","translate("+n+", "+r+")").attr("d",a+"Z")}function V(e,t,n){return e.append("path").attr("class","zoombox-corners").style({fill:u.background,stroke:u.defaultLine,"stroke-width":1,opacity:0}).attr("transform","translate("+t+", "+n+")").attr("d","M0,0Z")}function H(e,t,n,r,a,o){e.attr("d",r+"M"+n.l+","+n.t+"v"+n.h+"h"+n.w+"v-"+n.h+"h-"+n.w+"Z"),U(e,t,a,o)}function U(e,t,n,r){n||(e.transition().style("fill",r>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),t.transition().style("opacity",1).duration(200))}function W(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}function q(e){A&&e.data&&e._context.showTips&&(l.notifier(l._(e,"Double-click to zoom back out"),"long"),A=!1)}function $(e,t){return"M"+(e.l-.5)+","+(t-C-.5)+"h-3v"+(2*C+1)+"h3ZM"+(e.r+.5)+","+(t-C-.5)+"h3v"+(2*C+1)+"h-3Z"}function G(e,t){return"M"+(t-C-.5)+","+(e.t-.5)+"v-3h"+(2*C+1)+"v3ZM"+(t-C-.5)+","+(e.b+.5)+"v3h"+(2*C+1)+"v-3Z"}function Y(e){var t=Math.floor(Math.min(e.b-e.t,e.r-e.l,C)/2);return"M"+(e.l-3.5)+","+(e.t-.5+t)+"h3v"+-t+"h"+t+"v-3h-"+(t+3)+"ZM"+(e.r+3.5)+","+(e.t-.5+t)+"h-3v"+-t+"h"+-t+"v-3h"+(t+3)+"ZM"+(e.r+3.5)+","+(e.b+.5-t)+"h-3v"+t+"h"+-t+"v3h"+(t+3)+"ZM"+(e.l-3.5)+","+(e.b+.5-t)+"h3v"+t+"h"+t+"v3h-"+(t+3)+"Z"}function K(e,t,n,r){for(var a,o,i,s,u=!1,c={},f={},p=0;p<t.length;p++){var d=t[p];for(a in n)if(d[a]){for(i in d)("x"===i.charAt(0)?n:r)[i]||(c[i]=a);for(o in r)d[o]&&(u=!0)}for(o in r)if(d[o])for(s in d)("x"===s.charAt(0)?n:r)[s]||(f[s]=o)}u&&(l.extendFlat(c,f),f={});var h={},v=[];for(i in c){var m=w(e,i);v.push(m),h[m._id]=m}var y={},g=[];for(s in f){var b=w(e,s);g.push(b),y[b._id]=b}return{xaHash:h,yaHash:y,xaxes:v,yaxes:g,xLinks:c,yLinks:f,isSubplotConstrained:u}}function X(e,t){if(o){var n=void 0!==e.onwheel?"wheel":"mousewheel";e._onwheel&&e.removeEventListener(n,e._onwheel),e._onwheel=t,e.addEventListener(n,t,{passive:!1})}else void 0!==e.onwheel?e.onwheel=t:void 0!==e.onmousewheel?e.onmousewheel=t:e.isAddedWheelEvent||(e.isAddedWheelEvent=!0,e.addEventListener("wheel",t,{passive:!1}))}function Z(e){var t=[];for(var n in e)t.push(e[n]);return t}t.exports={makeDragBox:P,makeDragger:L,makeRectDragger:D,makeZoombox:B,makeCorners:V,updateZoombox:H,xyCorners:Y,transitionZoombox:U,removeZoombox:W,showDoubleClickNotifier:q,attachWheelEventHandler:X}},{"../../components/color":615,"../../components/dragelement":634,"../../components/dragelement/helpers":633,"../../components/drawing":637,"../../components/fx":655,"../../constants/alignment":717,"../../lib":750,"../../lib/clear_gl_canvases":734,"../../lib/setcursor":770,"../../lib/svg_text_utils":774,"../../plot_api/subroutines":789,"../../registry":882,"../plots":862,"./axes":799,"./axis_ids":802,"./constants":805,"./scale_zoom":817,"./select":818,d3:169,"has-passive-events":415,tinycolor2:548}],808:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/fx"),o=e("../../components/dragelement"),i=e("../../lib/setcursor"),l=e("./dragbox").makeDragBox,s=e("./constants").DRAGGERSIZE;n.initInteractions=function(e){var t=e._fullLayout;if(e._context.staticPlot)r.select(e).selectAll(".drag").remove();else if(t._has("cartesian")||t._has("splom")){var i=Object.keys(t._plots||{}).sort((function(e,n){if((t._plots[e].mainplot&&!0)===(t._plots[n].mainplot&&!0)){var r=e.split("y"),a=n.split("y");return r[0]===a[0]?Number(r[1]||1)-Number(a[1]||1):Number(r[0]||1)-Number(a[0]||1)}return t._plots[e].mainplot?1:-1}));i.forEach((function(n){var r=t._plots[n],i=r.xaxis,u=r.yaxis;if(!r.mainplot){var c=l(e,r,i._offset,u._offset,i._length,u._length,"ns","ew");c.onmousemove=function(t){e._fullLayout._rehover=function(){e._fullLayout._hoversubplot===n&&e._fullLayout._plots[n]&&a.hover(e,t,n)},a.hover(e,t,n),e._fullLayout._lasthover=c,e._fullLayout._hoversubplot=n},c.onmouseout=function(t){e._dragging||(e._fullLayout._hoversubplot=null,o.unhover(e,t))},e._context.showAxisDragHandles&&(l(e,r,i._offset-s,u._offset-s,s,s,"n","w"),l(e,r,i._offset+i._length,u._offset-s,s,s,"n","e"),l(e,r,i._offset-s,u._offset+u._length,s,s,"s","w"),l(e,r,i._offset+i._length,u._offset+u._length,s,s,"s","e"))}if(e._context.showAxisDragHandles){if(n===i._mainSubplot){var f=i._mainLinePosition;"top"===i.side&&(f-=s),l(e,r,i._offset+.1*i._length,f,.8*i._length,s,"","ew"),l(e,r,i._offset,f,.1*i._length,s,"","w"),l(e,r,i._offset+.9*i._length,f,.1*i._length,s,"","e")}if(n===u._mainSubplot){var p=u._mainLinePosition;"right"!==u.side&&(p-=s),l(e,r,p,u._offset+.1*u._length,s,.8*u._length,"ns",""),l(e,r,p,u._offset+.9*u._length,s,.1*u._length,"s",""),l(e,r,p,u._offset,s,.1*u._length,"n","")}}}));var u=t._hoverlayer.node();u.onmousemove=function(n){n.target=e._fullLayout._lasthover,a.hover(e,n,t._hoversubplot)},u.onclick=function(t){t.target=e._fullLayout._lasthover,a.click(e,t)},u.onmousedown=function(t){e._fullLayout._lasthover.onmousedown(t)},n.updateFx(e)}},n.updateFx=function(e){var t=e._fullLayout,n="pan"===t.dragmode?"move":"crosshair";i(t._draggers,n)}},{"../../components/dragelement":634,"../../components/fx":655,"../../lib/setcursor":770,"./constants":805,"./dragbox":807,d3:169}],809:[function(e,t,n){"use strict";function r(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".outline-controllers").remove()}function a(e){var t=e._fullLayout._zoomlayer;t&&t.selectAll(".select-outline").remove(),e._fullLayout._drawing=!1}t.exports={clearOutlineControllers:r,clearSelect:a}},{}],810:[function(e,t,n){"use strict";function r(e,t){switch(e.type){case"log":return e.p2d(t);case"date":return e.p2r(t,0,e.calendar);default:return e.p2r(t)}}function a(e,t){switch(e.type){case"log":return e.d2p(t);case"date":return e.r2p(t,0,e.calendar);default:return e.r2p(t)}}function o(e){var t="y"===e._id.charAt(0)?1:0;return function(n){return r(e,n[t])}}function i(e){return"translate("+e.xaxis._offset+","+e.yaxis._offset+")"}t.exports={p2r:r,r2p:a,axValue:o,getTransform:i}},{}],811:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),o=e("./axis_ids");t.exports=function(e){return function(t,n){var i=t[e];if(Array.isArray(i))for(var l=r.subplotsRegistry.cartesian,s=l.idRegex,u=n._subplots,c=u.xaxis,f=u.yaxis,p=u.cartesian,d=n._has("cartesian")||n._has("gl2d"),h=0;h<i.length;h++){var v=i[h];if(a.isPlainObject(v)){var m=o.cleanId(v.xref,"x",!1),y=o.cleanId(v.yref,"y",!1),g=s.x.test(m),b=s.y.test(y);if(g||b){d||a.pushUnique(n._basePlotModules,l);var x=!1;g&&-1===c.indexOf(m)&&(c.push(m),x=!0),b&&-1===f.indexOf(y)&&(f.push(y),x=!0),x&&g&&b&&p.push(m+y)}}}}}},{"../../lib":750,"../../registry":882,"./axis_ids":802}],812:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),o=e("../../lib"),i=e("../plots"),l=e("../../components/drawing"),s=e("../get_data").getModuleCalcData,u=e("./axis_ids"),c=e("./constants"),f=e("../../constants/xmlns_namespaces"),p=o.ensureSingle;function d(e,t,n){return o.ensureSingle(e,t,n,(function(e){e.datum(n)}))}function h(e,t,n,o,i){for(var u,f,p,d=c.traceLayerClasses,h=e._fullLayout,v=h._modules,m=[],y=[],g=0;g<v.length;g++){u=v[g];var b=u.name,x=a.modules[b].categories;if(x.svg){var _=u.layerName||b+"layer",w=u.plot;f=s(n,w),p=f[0],n=f[1],p.length&&m.push({i:d.indexOf(_),className:_,plotMethod:w,cdModule:p}),x.zoomScale&&y.push("."+_)}}m.sort((function(e,t){return e.i-t.i}));var k=t.plot.selectAll("g.mlayer").data(m,(function(e){return e.className}));if(k.enter().append("g").attr("class",(function(e){return e.className})).classed("mlayer",!0).classed("rangeplot",t.isRangePlot),k.exit().remove(),k.order(),k.each((function(n){var a=r.select(this),s=n.className;n.plotMethod(e,t,n.cdModule,a,o,i),-1===c.clipOnAxisFalseQuery.indexOf("."+s)&&l.setClipUrl(a,t.layerClipId,e)})),h._has("scattergl")&&(u=a.getModule("scattergl"),p=s(n,u)[0],u.plot(e,t,p)),!e._context.staticPlot&&(t._hasClipOnAxisFalse&&(t.clipOnAxisFalseTraces=t.plot.selectAll(c.clipOnAxisFalseQuery.join(",")).selectAll(".trace")),y.length)){var T=t.plot.selectAll(y.join(",")).selectAll(".trace");t.zoomScalePts=T.selectAll("path.point"),t.zoomScaleTxt=T.selectAll(".textpoint")}}function v(e){var t,n,r,a,o,i,l=e._fullLayout,s=l._subplots.cartesian,u=s.length,c=[],f=[];for(t=0;t<u;t++){r=s[t],a=l._plots[r],o=a.xaxis,i=a.yaxis;var p=o._mainAxis,d=i._mainAxis,h=p._id+d._id,v=l._plots[h];a.overlays=[],h!==r&&v?(a.mainplot=h,a.mainplotinfo=v,f.push(r)):(a.mainplot=void 0,a.mainplotinfo=void 0,c.push(r))}for(t=0;t<f.length;t++)r=f[t],a=l._plots[r],a.mainplotinfo.overlays.push(a);var m=c.concat(f),y=new Array(u);for(t=0;t<u;t++){r=m[t],a=l._plots[r],o=a.xaxis,i=a.yaxis;var g=[r,o.layer,i.layer,o.overlaying||"",i.overlaying||""];for(n=0;n<a.overlays.length;n++)g.push(a.overlays[n].id);y[t]=g}return y}function m(e,t){var n=t.plotgroup,r=t.id,a=c.layerValue2layerClass[t.xaxis.layer],o=c.layerValue2layerClass[t.yaxis.layer],i=e._fullLayout._hasOnlyLargeSploms;if(t.mainplot){var l=t.mainplotinfo,s=l.plotgroup,f=r+"-x",h=r+"-y";t.gridlayer=l.gridlayer,t.zerolinelayer=l.zerolinelayer,p(l.overlinesBelow,"path",f),p(l.overlinesBelow,"path",h),p(l.overaxesBelow,"g",f),p(l.overaxesBelow,"g",h),t.plot=p(l.overplot,"g",r),p(l.overlinesAbove,"path",f),p(l.overlinesAbove,"path",h),p(l.overaxesAbove,"g",f),p(l.overaxesAbove,"g",h),t.xlines=s.select(".overlines-"+a).select("."+f),t.ylines=s.select(".overlines-"+o).select("."+h),t.xaxislayer=s.select(".overaxes-"+a).select("."+f),t.yaxislayer=s.select(".overaxes-"+o).select("."+h)}else if(i)t.xlines=p(n,"path","xlines-above"),t.ylines=p(n,"path","ylines-above"),t.xaxislayer=p(n,"g","xaxislayer-above"),t.yaxislayer=p(n,"g","yaxislayer-above");else{var v=p(n,"g","layer-subplot");t.shapelayer=p(v,"g","shapelayer"),t.imagelayer=p(v,"g","imagelayer"),t.gridlayer=p(n,"g","gridlayer"),t.zerolinelayer=p(n,"g","zerolinelayer"),p(n,"path","xlines-below"),p(n,"path","ylines-below"),t.overlinesBelow=p(n,"g","overlines-below"),p(n,"g","xaxislayer-below"),p(n,"g","yaxislayer-below"),t.overaxesBelow=p(n,"g","overaxes-below"),t.plot=p(n,"g","plot"),t.overplot=p(n,"g","overplot"),t.xlines=p(n,"path","xlines-above"),t.ylines=p(n,"path","ylines-above"),t.overlinesAbove=p(n,"g","overlines-above"),p(n,"g","xaxislayer-above"),p(n,"g","yaxislayer-above"),t.overaxesAbove=p(n,"g","overaxes-above"),t.xlines=n.select(".xlines-"+a),t.ylines=n.select(".ylines-"+o),t.xaxislayer=n.select(".xaxislayer-"+a),t.yaxislayer=n.select(".yaxislayer-"+o)}i||(d(t.gridlayer,"g",t.xaxis._id),d(t.gridlayer,"g",t.yaxis._id),t.gridlayer.selectAll("g").map((function(e){return e[0]})).sort(u.idSort)),t.xlines.style("fill","none").classed("crisp",!0),t.ylines.style("fill","none").classed("crisp",!0)}function y(e,t){if(e){var n={};for(var a in e.each((function(e){var a=e[0],o=r.select(this);o.remove(),g(a,t),n[a]=!0})),t._plots)for(var o=t._plots[a],i=o.overlays||[],l=0;l<i.length;l++){var s=i[l];n[s.id]&&s.plot.selectAll(".trace").remove()}}}function g(e,t){t._draggers.selectAll("g."+e).remove(),t._defs.select("#clip"+t._uid+e+"plot").remove()}n.name="cartesian",n.attr=["xaxis","yaxis"],n.idRoot=["x","y"],n.idRegex=c.idRegex,n.attrRegex=c.attrRegex,n.attributes=e("./attributes"),n.layoutAttributes=e("./layout_attributes"),n.supplyLayoutDefaults=e("./layout_defaults"),n.transitionAxes=e("./transition_axes"),n.finalizeSubplots=function(e,t){var n,r,a,i=t._subplots,l=i.xaxis,s=i.yaxis,f=i.cartesian,p=f.concat(i.gl2d||[]),d={},h={};for(n=0;n<p.length;n++){var v=p[n].split("y");d[v[0]]=1,h["y"+v[1]]=1}for(n=0;n<l.length;n++)r=l[n],d[r]||(a=(e[u.id2name(r)]||{}).anchor,c.idRegex.y.test(a)||(a="y"),f.push(r+a),p.push(r+a),h[a]||(h[a]=1,o.pushUnique(s,a)));for(n=0;n<s.length;n++)a=s[n],h[a]||(r=(e[u.id2name(a)]||{}).anchor,c.idRegex.x.test(r)||(r="x"),f.push(r+a),p.push(r+a),d[r]||(d[r]=1,o.pushUnique(l,r)));if(!p.length){for(var m in r="",a="",e)if(c.attrRegex.test(m)){var y=m.charAt(0);"x"===y?(!r||+m.substr(5)<+r.substr(5))&&(r=m):(!a||+m.substr(5)<+a.substr(5))&&(a=m)}r=r?u.name2id(r):"x",a=a?u.name2id(a):"y",l.push(r),s.push(a),f.push(r+a)}},n.plot=function(e,t,n,r){var a,o=e._fullLayout,i=o._subplots.cartesian,l=e.calcdata;if(!Array.isArray(t))for(t=[],a=0;a<l.length;a++)t.push(a);for(a=0;a<i.length;a++){for(var s,u=i[a],c=o._plots[u],f=[],p=0;p<l.length;p++){var d=l[p],v=d[0].trace;v.xaxis+v.yaxis===u&&((-1!==t.indexOf(v.index)||v.carpet)&&(s&&s[0].trace.xaxis+s[0].trace.yaxis===u&&-1!==["tonextx","tonexty","tonext"].indexOf(v.fill)&&-1===f.indexOf(s)&&f.push(s),f.push(d)),s=d)}h(e,c,f,n,r)}},n.clean=function(e,t,n,r){var a,o,i,l=r._plots||{},s=t._plots||{},c=r._subplots||{};if(r._hasOnlyLargeSploms&&!t._hasOnlyLargeSploms)for(i in l)a=l[i],a.plotgroup&&a.plotgroup.remove();var f=r._has&&r._has("gl"),p=t._has&&t._has("gl");if(f&&!p)for(i in l)a=l[i],a._scene&&a._scene.destroy();if(c.xaxis&&c.yaxis){var d=u.listIds({_fullLayout:r});for(o=0;o<d.length;o++){var h=d[o];t[u.id2name(h)]||r._infolayer.selectAll(".g-"+h+"title").remove()}}var v=r._has&&r._has("cartesian"),m=t._has&&t._has("cartesian");if(v&&!m)y(r._cartesianlayer.selectAll(".subplot"),r),r._defs.selectAll(".axesclip").remove(),delete r._axisConstraintGroups;else if(c.cartesian)for(o=0;o<c.cartesian.length;o++){var b=c.cartesian[o];if(!s[b]){var x="."+b+",."+b+"-x,."+b+"-y";r._cartesianlayer.selectAll(x).remove(),g(b,r)}}},n.drawFramework=function(e){var t=e._fullLayout,n=v(e),a=t._cartesianlayer.selectAll(".subplot").data(n,String);a.enter().append("g").attr("class",(function(e){return"subplot "+e[0]})),a.order(),a.exit().call(y,t),a.each((function(n){var a=n[0],o=t._plots[a];o.plotgroup=r.select(this),m(e,o),o.draglayer=p(t._draggers,"g",a)}))},n.rangePlot=function(e,t,n){m(e,t),h(e,t,n),i.style(e)},n.toSVG=function(e){var t=e._fullLayout._glimages,n=r.select(e).selectAll(".svg-container"),a=n.filter((function(e,t){return t===n.size()-1})).selectAll(".gl-canvas-context, .gl-canvas-focus");function o(){var e=this,n=e.toDataURL("image/png"),r=t.append("svg:image");r.attr({xmlns:f.svg,"xlink:href":n,preserveAspectRatio:"none",x:0,y:0,width:e.width,height:e.height})}a.each(o)},n.updateFx=e("./graph_interact").updateFx},{"../../components/drawing":637,"../../constants/xmlns_namespaces":726,"../../lib":750,"../../registry":882,"../get_data":836,"../plots":862,"./attributes":797,"./axis_ids":802,"./constants":805,"./graph_interact":808,"./layout_attributes":813,"./layout_defaults":814,"./transition_axes":823,d3:169}],813:[function(e,t,n){"use strict";var r=e("../font_attributes"),a=e("../../components/color/attributes"),o=e("../../components/drawing/attributes").dash,i=e("../../lib/extend").extendFlat,l=e("../../plot_api/plot_template").templatedArray,s=(e("../../constants/docs").FORMAT_LINK,e("../../constants/docs").DATE_FORMAT_LINK,e("../../constants/numerical").ONEDAY),u=e("./constants"),c=u.HOUR_PATTERN,f=u.WEEKDAY_PATTERN;t.exports={visible:{valType:"boolean",editType:"plot"},color:{valType:"color",dflt:a.defaultLine,editType:"ticks"},title:{text:{valType:"string",editType:"ticks"},font:r({editType:"ticks"}),standoff:{valType:"number",min:0,editType:"ticks"},editType:"ticks"},type:{valType:"enumerated",values:["-","linear","log","date","category","multicategory"],dflt:"-",editType:"calc",_noTemplating:!0},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"axrange",impliedEdits:{"range[0]":void 0,"range[1]":void 0}},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"plot"},range:{valType:"info_array",items:[{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0},{valType:"any",editType:"axrange",impliedEdits:{"^autorange":!1},anim:!0}],editType:"axrange",impliedEdits:{autorange:!1},anim:!0},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},scaleanchor:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot"},scaleratio:{valType:"number",min:0,dflt:1,editType:"plot"},constrain:{valType:"enumerated",values:["range","domain"],dflt:"range",editType:"plot"},constraintoward:{valType:"enumerated",values:["left","center","right","top","middle","bottom"],editType:"plot"},matches:{valType:"enumerated",values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"calc"},rangebreaks:l("rangebreak",{enabled:{valType:"boolean",dflt:!0,editType:"calc"},bounds:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},pattern:{valType:"enumerated",values:[f,c,""],editType:"calc"},values:{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"any",editType:"calc"}},dvalue:{valType:"number",editType:"calc",min:0,dflt:s},editType:"calc"}),tickmode:{valType:"enumerated",values:["auto","linear","array"],editType:"ticks",impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:"integer",min:0,dflt:0,editType:"ticks"},tick0:{valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},dtick:{valType:"any",editType:"ticks",impliedEdits:{tickmode:"linear"}},tickvals:{valType:"data_array",editType:"ticks"},ticktext:{valType:"data_array",editType:"ticks"},ticks:{valType:"enumerated",values:["outside","inside",""],editType:"ticks"},tickson:{valType:"enumerated",values:["labels","boundaries"],dflt:"labels",editType:"ticks"},ticklabelmode:{valType:"enumerated",values:["instant","period"],dflt:"instant",editType:"ticks"},mirror:{valType:"enumerated",values:[!0,"ticks",!1,"all","allticks"],dflt:!1,editType:"ticks+layoutstyle"},ticklen:{valType:"number",min:0,dflt:5,editType:"ticks"},tickwidth:{valType:"number",min:0,dflt:1,editType:"ticks"},tickcolor:{valType:"color",dflt:a.defaultLine,editType:"ticks"},showticklabels:{valType:"boolean",dflt:!0,editType:"ticks"},automargin:{valType:"boolean",dflt:!1,editType:"ticks"},showspikes:{valType:"boolean",dflt:!1,editType:"modebar"},spikecolor:{valType:"color",dflt:null,editType:"none"},spikethickness:{valType:"number",dflt:3,editType:"none"},spikedash:i({},o,{dflt:"dash",editType:"none"}),spikemode:{valType:"flaglist",flags:["toaxis","across","marker"],dflt:"toaxis",editType:"none"},spikesnap:{valType:"enumerated",values:["data","cursor","hovered data"],dflt:"data",editType:"none"},tickfont:r({editType:"ticks"}),tickangle:{valType:"angle",dflt:"auto",editType:"ticks"},tickprefix:{valType:"string",dflt:"",editType:"ticks"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},ticksuffix:{valType:"string",dflt:"",editType:"ticks"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"ticks"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"ticks"},minexponent:{valType:"number",dflt:3,min:0,editType:"ticks"},separatethousands:{valType:"boolean",dflt:!1,editType:"ticks"},tickformat:{valType:"string",dflt:"",editType:"ticks"},tickformatstops:l("tickformatstop",{enabled:{valType:"boolean",dflt:!0,editType:"ticks"},dtickrange:{valType:"info_array",items:[{valType:"any",editType:"ticks"},{valType:"any",editType:"ticks"}],editType:"ticks"},value:{valType:"string",dflt:"",editType:"ticks"},editType:"ticks"}),hoverformat:{valType:"string",dflt:"",editType:"none"},showline:{valType:"boolean",dflt:!1,editType:"ticks+layoutstyle"},linecolor:{valType:"color",dflt:a.defaultLine,editType:"layoutstyle"},linewidth:{valType:"number",min:0,dflt:1,editType:"ticks+layoutstyle"},showgrid:{valType:"boolean",editType:"ticks"},gridcolor:{valType:"color",dflt:a.lightLine,editType:"ticks"},gridwidth:{valType:"number",min:0,dflt:1,editType:"ticks"},zeroline:{valType:"boolean",editType:"ticks"},zerolinecolor:{valType:"color",dflt:a.defaultLine,editType:"ticks"},zerolinewidth:{valType:"number",dflt:1,editType:"ticks"},showdividers:{valType:"boolean",dflt:!0,editType:"ticks"},dividercolor:{valType:"color",dflt:a.defaultLine,editType:"ticks"},dividerwidth:{valType:"number",dflt:1,editType:"ticks"},anchor:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot"},side:{valType:"enumerated",values:["top","bottom","left","right"],editType:"plot"},overlaying:{valType:"enumerated",values:["free",u.idRegex.x.toString(),u.idRegex.y.toString()],editType:"plot"},layer:{valType:"enumerated",values:["above traces","below traces"],dflt:"above traces",editType:"plot"},domain:{valType:"info_array",items:[{valType:"number",min:0,max:1,editType:"plot"},{valType:"number",min:0,max:1,editType:"plot"}],dflt:[0,1],editType:"plot"},position:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array","total ascending","total descending","min ascending","min descending","max ascending","max descending","sum ascending","sum descending","mean ascending","mean descending","median ascending","median descending"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},uirevision:{valType:"any",editType:"none"},editType:"calc",_deprecated:{autotick:{valType:"boolean",editType:"ticks"},title:{valType:"string",editType:"ticks"},titlefont:r({editType:"ticks"})}}},{"../../components/color/attributes":614,"../../components/drawing/attributes":636,"../../constants/docs":720,"../../constants/numerical":725,"../../lib/extend":740,"../../plot_api/plot_template":788,"../font_attributes":827,"./constants":805}],814:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/color"),o=e("../../components/fx/helpers").isUnifiedHover,i=e("../../components/fx/hovermode_defaults"),l=e("../../plot_api/plot_template"),s=e("../layout_attributes"),u=e("./layout_attributes"),c=e("./type_defaults"),f=e("./axis_defaults"),p=e("./constraints").handleConstraintDefaults,d=e("./position_defaults"),h=e("./axis_ids"),v=h.id2name,m=h.name2id,y=e("./constants").AX_ID_PATTERN,g=e("../../registry"),b=g.traceIs,x=g.getComponentMethod;function _(e,t,n){Array.isArray(e[t])?e[t].push(n):e[t]=[n]}t.exports=function(e,t,n){var h,g,w={},k={},T={},E={},O={},M={},S={},C={},A={},P={};for(h=0;h<n.length;h++){var L=n[h];if(b(L,"cartesian")||b(L,"gl2d")){var D,j;if(L.xaxis)D=v(L.xaxis),_(w,D,L);else if(L.xaxes)for(g=0;g<L.xaxes.length;g++)_(w,v(L.xaxes[g]),L);if(L.yaxis)j=v(L.yaxis),_(w,j,L);else if(L.yaxes)for(g=0;g<L.yaxes.length;g++)_(w,v(L.yaxes[g]),L);if("funnel"===L.type?"h"===L.orientation?(D&&(k[D]=!0),j&&(S[j]=!0)):j&&(T[j]=!0):"image"===L.type?(j&&(C[j]=!0),D&&(C[D]=!0)):(j&&(O[j]=!0,M[j]=!0),b(L,"carpet")&&("carpet"!==L.type||L._cheater)||D&&(E[D]=!0)),"carpet"===L.type&&L._cheater&&D&&(k[D]=!0),b(L,"2dMap")&&(A[D]=!0,A[j]=!0),b(L,"oriented")){var I="h"===L.orientation?j:D;P[I]=!0}}}var R=t._subplots,z=R.xaxis,N=R.yaxis,F=r.simpleMap(z,v),B=r.simpleMap(N,v),V=F.concat(B),H=a.background;z.length&&N.length&&(H=r.coerce(e,t,s,"plot_bgcolor"));var U,W,q,$,G,Y=a.combine(H,t.paper_bgcolor);function K(){var e=w[U]||[];G._traceIndices=e.map((function(e){return e._expandedIndex})),G._annIndices=[],G._shapeIndices=[],G._imgIndices=[],G._subplotsWith=[],G._counterAxes=[],G._name=G._attr=U,G._id=W}function X(e,t){return r.coerce($,G,u,e,t)}function Z(e,t){return r.coerce2($,G,u,e,t)}function J(e){return"x"===e?N:z}function Q(t,n){for(var r="x"===t?F:B,a=[],o=0;o<r.length;o++){var i=r[o];i===n||(e[i]||{}).overlaying||a.push(m(i))}return a}var ee={x:J("x"),y:J("y")},te=ee.x.concat(ee.y),ne={},re=[];function ae(){var e=$.matches;y.test(e)&&-1===te.indexOf(e)&&(ne[e]=$.type,re=Object.keys(ne))}var oe=i(e,t,n),ie=o(oe);for(h=0;h<V.length;h++){U=V[h],W=m(U),q=U.charAt(0),r.isPlainObject(e[U])||(e[U]={}),$=e[U],G=l.newContainer(t,U,q+"axis"),K();var le="x"===q&&!E[U]&&k[U]||"y"===q&&!O[U]&&T[U],se="y"===q&&(!M[U]&&S[U]||C[U]),ue={letter:q,font:t.font,outerTicks:A[U],showGrid:!P[U],data:w[U]||[],bgColor:Y,calendar:t.calendar,automargin:!0,visibleDflt:le,reverseDflt:se,splomStash:((t._splomAxes||{})[q]||{})[W]};X("uirevision",t.uirevision),c($,G,X,ue),f($,G,X,ue,t);var ce=ie&&q===oe.charAt(0),fe=Z("spikecolor",ie?G.color:void 0),pe=Z("spikethickness",ie?1.5:void 0),de=Z("spikedash",ie?"dot":void 0),he=Z("spikemode",ie?"across":void 0),ve=Z("spikesnap",ie?"hovered data":void 0),me=X("showspikes",!!ce||!!fe||!!pe||!!de||!!he||!!ve);me||(delete G.spikecolor,delete G.spikethickness,delete G.spikedash,delete G.spikemode,delete G.spikesnap),d($,G,X,{letter:q,counterAxes:ee[q],overlayableAxes:Q(q,U),grid:t.grid}),X("title.standoff"),ae(),G._input=$}h=0;while(h<re.length){W=re[h++],U=v(W),q=U.charAt(0),r.isPlainObject(e[U])||(e[U]={}),$=e[U],G=l.newContainer(t,U,q+"axis"),K();var ye={letter:q,font:t.font,outerTicks:A[U],showGrid:!P[U],data:[],bgColor:Y,calendar:t.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,splomStash:((t._splomAxes||{})[q]||{})[W]};X("uirevision",t.uirevision),G.type=ne[W]||"linear",f($,G,X,ye,t),d($,G,X,{letter:q,counterAxes:ee[q],overlayableAxes:Q(q,U),grid:t.grid}),X("fixedrange"),ae(),G._input=$}var ge=x("rangeslider","handleDefaults"),be=x("rangeselector","handleDefaults");for(h=0;h<F.length;h++)U=F[h],$=e[U],G=t[U],ge(e,t,U),"date"===G.type&&be($,G,t,B,G.calendar),X("fixedrange");for(h=0;h<B.length;h++){U=B[h],$=e[U],G=t[U];var xe=t[v(G.anchor)],_e=x("rangeslider","isVisible")(xe);X("fixedrange",_e)}var we=t._axisConstraintGroups=[],ke=t._axisMatchGroups=[],Te=te.concat(re),Ee=V.concat(r.simpleMap(re,v));for(h=0;h<Ee.length;h++){var Oe,Me;U=Ee[h],q=U.charAt(0),$=e[U],G=t[U],Oe="y"===q&&!$.hasOwnProperty("scaleanchor")&&C[U]?G.anchor:void 0,Me=!$.hasOwnProperty("constrain")&&C[U]?"domain":void 0,p($,G,X,{allAxisIds:Te,layoutOut:t,scaleanchorDflt:Oe,constrainDflt:Me})}for(h=0;h<ke.length;h++){var Se=ke[h],Ce=null,Ae=null;for(W in Se)G=t[v(W)],G.matches||(Ce=G.range,Ae=G.autorange);if(null===Ce||null===Ae)for(W in Se){G=t[v(W)],Ce=G.range,Ae=G.autorange;break}for(W in Se)G=t[v(W)],G.matches&&(G.range=Ce.slice(),G.autorange=Ae),G._matchGroup=Se;if(we.length)for(W in Se)for(g=0;g<we.length;g++){var Pe=we[g];for(var Le in Pe)W===Le&&(r.warn("Axis "+Le+" is set with both a *scaleanchor* and *matches* constraint; ignoring the scale constraint."),delete Pe[Le],Object.keys(Pe).length<2&&we.splice(g,1))}}}},{"../../components/color":615,"../../components/fx/helpers":651,"../../components/fx/hovermode_defaults":654,"../../lib":750,"../../plot_api/plot_template":788,"../../registry":882,"../layout_attributes":853,"./axis_defaults":801,"./axis_ids":802,"./constants":805,"./constraints":806,"./layout_attributes":813,"./position_defaults":816,"./type_defaults":824}],815:[function(e,t,n){"use strict";var r=e("tinycolor2").mix,a=e("../../components/color/attributes").lightFraction,o=e("../../lib");t.exports=function(e,t,n,i){i=i||{};var l=i.dfltColor;function s(n,r){return o.coerce2(e,t,i.attributes,n,r)}var u=s("linecolor",l),c=s("linewidth"),f=n("showline",i.showLine||!!u||!!c);f||(delete t.linecolor,delete t.linewidth);var p=r(l,i.bgColor,i.blend||a).toRgbString(),d=s("gridcolor",p),h=s("gridwidth"),v=n("showgrid",i.showGrid||!!d||!!h);if(v||(delete t.gridcolor,delete t.gridwidth),!i.noZeroLine){var m=s("zerolinecolor",l),y=s("zerolinewidth"),g=n("zeroline",i.showGrid||!!m||!!y);g||(delete t.zerolinecolor,delete t.zerolinewidth)}}},{"../../components/color/attributes":614,"../../lib":750,tinycolor2:548}],816:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib");t.exports=function(e,t,n,o){var i,l,s,u,c=o.counterAxes||[],f=o.overlayableAxes||[],p=o.letter,d=o.grid;d&&(l=d._domains[p][d._axisMap[t._id]],i=d._anchors[t._id],l&&(s=d[p+"side"].split(" ")[0],u=d.domain[p]["right"===s||"top"===s?1:0])),l=l||[0,1],i=i||(r(e.position)?"free":c[0]||"free"),s=s||("x"===p?"bottom":"left"),u=u||0;var h=a.coerce(e,t,{anchor:{valType:"enumerated",values:["free"].concat(c),dflt:i}},"anchor");"free"===h&&n("position",u),a.coerce(e,t,{side:{valType:"enumerated",values:"x"===p?["bottom","top"]:["left","right"],dflt:s}},"side");var v=!1;if(f.length&&(v=a.coerce(e,t,{overlaying:{valType:"enumerated",values:[!1].concat(f),dflt:!1}},"overlaying")),!v){var m=n("domain",l);m[0]>m[1]-1/4096&&(t.domain=l),a.noneOrAll(e.domain,t.domain,l)}return n("layer"),t}},{"../../lib":750,"fast-isnumeric":241}],817:[function(e,t,n){"use strict";var r=e("../../constants/alignment").FROM_BL;t.exports=function(e,t,n){void 0===n&&(n=r[e.constraintoward||"center"]);var a=[e.r2l(e.range[0]),e.r2l(e.range[1])],o=a[0]+(a[1]-a[0])*n;e.range=e._input.range=[e.l2r(o+(a[0]-o)*t),e.l2r(o+(a[1]-o)*t)]}},{"../../constants/alignment":717}],818:[function(e,t,n){"use strict";var r=e("polybooljs"),a=e("../../registry"),o=e("../../components/drawing").dashStyle,i=e("../../components/color"),l=e("../../components/fx"),s=e("../../components/fx/helpers").makeEventData,u=e("../../components/dragelement/helpers"),c=u.freeMode,f=u.rectMode,p=u.drawMode,d=u.openMode,h=u.selectMode,v=e("../../components/shapes/draw_newshape/display_outlines"),m=e("../../components/shapes/draw_newshape/helpers").handleEllipse,y=e("../../components/shapes/draw_newshape/newshapes"),g=e("../../lib"),b=e("../../lib/polygon"),x=e("../../lib/throttle"),_=e("./axis_ids").getFromId,w=e("../../lib/clear_gl_canvases"),k=e("../../plot_api/subroutines").redrawReglTraces,T=e("./constants"),E=T.MINSELECT,O=b.filter,M=b.tester,S=e("./handle_outline").clearSelect,C=e("./helpers"),A=C.p2r,P=C.axValue,L=C.getTransform;function D(e,t,n,r,a){var s,u,y,b,_,w,k,S=c(a),C=f(a),D=d(a),I=p(a),R=h(a),z="drawline"===a,H="drawcircle"===a,U=z||H,W=r.gd,q=W._fullLayout,$=q._zoomlayer,Z=r.element.getBoundingClientRect(),J=r.plotinfo,Q=L(J),ee=t-Z.left,te=n-Z.top,ne=ee,re=te,ae="M"+ee+","+te,oe=r.xaxes[0]._length,ie=r.yaxes[0]._length,le=r.xaxes.concat(r.yaxes),se=e.altKey&&!(p(a)&&D);F(e,W,r),S&&(s=O([[ee,te]],T.BENDPX));var ue=$.selectAll("path.select-outline-"+J.id).data(I?[0]:[1,2]),ce=q.newshape;ue.enter().append("path").attr("class",(function(e){return"select-outline select-outline-"+e+" select-outline-"+J.id})).style(I?{opacity:ce.opacity/2,fill:D?void 0:ce.fillcolor,stroke:ce.line.color,"stroke-dasharray":o(ce.line.dash,ce.line.width),"stroke-width":ce.line.width+"px"}:{}).attr("fill-rule",ce.fillrule).classed("cursor-move",!!I).attr("transform",Q).attr("d",ae+"Z");var fe,pe=$.append("path").attr("class","zoombox-corners").style({fill:i.background,stroke:i.defaultLine,"stroke-width":1}).attr("transform",Q).attr("d","M0,0Z"),de=q._uid+T.SELECTID,he=[],ve=V(W,r.xaxes,r.yaxes,r.subplot);function me(e,t){return e-t}fe=J.fillRangeItems?J.fillRangeItems:C?function(e,t){var n=e.range={};for(_=0;_<le.length;_++){var r=le[_],a=r._id.charAt(0);n[r._id]=[A(r,t[a+"min"]),A(r,t[a+"max"])].sort(me)}}:function(e,t,n){var r=e.lassoPoints={};for(_=0;_<le.length;_++){var a=le[_];r[a._id]=n.filtered.map(P(a))}},r.moveFn=function(e,t){ne=Math.max(0,Math.min(oe,e+ee)),re=Math.max(0,Math.min(ie,t+te));var n=Math.abs(ne-ee),a=Math.abs(re-te);if(C){var o,i,l;if(R){var c=q.selectdirection;switch(o="any"===c?a<Math.min(.6*n,E)?"h":n<Math.min(.6*a,E)?"v":"d":c,o){case"h":i=H?ie/2:0,l=ie;break;case"v":i=H?oe/2:0,l=oe;break}}if(I)switch(q.newshape.drawdirection){case"vertical":o="h",i=H?ie/2:0,l=ie;break;case"horizontal":o="v",i=H?oe/2:0,l=oe;break;case"ortho":n<a?(o="h",i=te,l=re):(o="v",i=ee,l=ne);break;default:o="d"}"h"===o?(b=U?m(H,[ne,i],[ne,l]):[[ee,i],[ee,l],[ne,l],[ne,i]],b.xmin=U?ne:Math.min(ee,ne),b.xmax=U?ne:Math.max(ee,ne),b.ymin=Math.min(i,l),b.ymax=Math.max(i,l),pe.attr("d","M"+b.xmin+","+(te-E)+"h-4v"+2*E+"h4ZM"+(b.xmax-1)+","+(te-E)+"h4v"+2*E+"h-4Z")):"v"===o?(b=U?m(H,[i,re],[l,re]):[[i,te],[i,re],[l,re],[l,te]],b.xmin=Math.min(i,l),b.xmax=Math.max(i,l),b.ymin=U?re:Math.min(te,re),b.ymax=U?re:Math.max(te,re),pe.attr("d","M"+(ee-E)+","+b.ymin+"v-4h"+2*E+"v4ZM"+(ee-E)+","+(b.ymax-1)+"v4h"+2*E+"v-4Z")):"d"===o&&(b=U?m(H,[ee,te],[ne,re]):[[ee,te],[ee,re],[ne,re],[ne,te]],b.xmin=Math.min(ee,ne),b.xmax=Math.max(ee,ne),b.ymin=Math.min(te,re),b.ymax=Math.max(te,re),pe.attr("d","M0,0Z"))}else S&&(s.addPt([ne,re]),b=s.filtered);r.selectionDefs&&r.selectionDefs.length?(y=Y(r.mergedPolygons,b,se),b.subtract=se,u=N(r.selectionDefs.concat([b]))):(y=[b],u=M(b)),v(X(y,D),ue,r),R&&x.throttle(de,T.SELECTDELAY,(function(){var e;he=[];var t,n=[];for(_=0;_<ve.length;_++)if(w=ve[_],t=w._module.selectPoints(w,u),n.push(t),e=K(t,w),he.length)for(var a=0;a<e.length;a++)he.push(e[a]);else he=e;k={points:he},G(W,ve,k),fe(k,b,s),r.gd.emit("plotly_selecting",k)}))},r.clickFn=function(e,t){if(pe.remove(),W._fullLayout._activeShapeIndex>=0)W._fullLayout._deactivateShape(W);else if(!I){var n=q.clickmode;x.done(de).then((function(){if(x.clear(de),2===e){for(ue.remove(),_=0;_<ve.length;_++)w=ve[_],w._module.selectPoints(w,!1);G(W,ve),B(r),W.emit("plotly_deselect",null)}else n.indexOf("select")>-1&&j(t,W,r.xaxes,r.yaxes,r.subplot,r,ue),"event"===n&&W.emit("plotly_selected",void 0);l.click(W,t)})).catch(g.error)}},r.doneFn=function(){pe.remove(),x.done(de).then((function(){x.clear(de),r.gd.emit("plotly_selected",k),b&&r.selectionDefs&&(b.subtract=se,r.selectionDefs.push(b),r.mergedPolygons.length=0,[].push.apply(r.mergedPolygons,y)),r.doneFnCompleted&&r.doneFnCompleted(he)})).catch(g.error),I&&B(r)}}function j(e,t,n,r,a,o,i){var l,s,u,c,f,p,h,m,y,g,b=t._hoverdata,x=t._fullLayout,_=x.clickmode,w=_.indexOf("event")>-1,k=[];if(H(b)){F(e,t,o),l=V(t,n,r,a);var T=U(b,l),E=T.pointNumbers.length>0;if(E?q(l,T):$(l)&&(h=W(T))){for(i&&i.remove(),g=0;g<l.length;g++)s=l[g],s._module.selectPoints(s,!1);G(t,l),B(o),w&&t.emit("plotly_deselect",null)}else{m=e.shiftKey&&(void 0!==h?h:W(T)),u=I(T.pointNumber,T.searchInfo,m);var O=o.selectionDefs.concat([u]);for(c=N(O),g=0;g<l.length;g++)if(f=l[g]._module.selectPoints(l[g],c),p=K(f,l[g]),k.length)for(var M=0;M<p.length;M++)k.push(p[M]);else k=p;if(y={points:k},G(t,l,y),u&&o&&o.selectionDefs.push(u),i){var S=o.mergedPolygons,C=d(o.dragmode);v(X(S,C),i,o)}w&&t.emit("plotly_selected",y)}}}function I(e,t,n){return{pointNumber:e,searchInfo:t,subtract:n}}function R(e){return"pointNumber"in e&&"searchInfo"in e}function z(e){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(t,n,r,a){var o=e.searchInfo.cd[0].trace._expandedIndex,i=a.cd[0].trace._expandedIndex;return i===o&&r===e.pointNumber},isRect:!1,degenerate:!1,subtract:e.subtract}}function N(e){for(var t=[],n=R(e[0])?0:e[0][0][0],r=n,a=R(e[0])?0:e[0][0][1],o=a,i=0;i<e.length;i++)if(R(e[i]))t.push(z(e[i]));else{var l=b.tester(e[i]);l.subtract=e[i].subtract,t.push(l),n=Math.min(n,l.xmin),r=Math.max(r,l.xmax),a=Math.min(a,l.ymin),o=Math.max(o,l.ymax)}function s(e,n,r,a){for(var o=!1,i=0;i<t.length;i++)t[i].contains(e,n,r,a)&&(o=!1===t[i].subtract);return o}return{xmin:n,xmax:r,ymin:a,ymax:o,pts:[],contains:s,isRect:!1,degenerate:!1}}function F(e,t,n){t._fullLayout._drawing=!1;var r=t._fullLayout,a=n.plotinfo,o=n.dragmode,i=r._lastSelectedSubplot&&r._lastSelectedSubplot===a.id,l=(e.shiftKey||e.altKey)&&!(p(o)&&d(o));i&&l&&a.selection&&a.selection.selectionDefs&&!n.selectionDefs?(n.selectionDefs=a.selection.selectionDefs,n.mergedPolygons=a.selection.mergedPolygons):l&&a.selection||B(n),i||(S(t),r._lastSelectedSubplot=a.id)}function B(e){var t=e.dragmode,n=e.plotinfo,r=e.gd;if(r._fullLayout._activeShapeIndex>=0&&r._fullLayout._deactivateShape(r),p(t)){var o=r._fullLayout,i=o._zoomlayer,l=i.selectAll(".select-outline-"+n.id);if(l&&r._fullLayout._drawing){var s=y(l,e);s&&a.call("_guiRelayout",r,{shapes:s}),r._fullLayout._drawing=!1}}n.selection={},n.selection.selectionDefs=e.selectionDefs=[],n.selection.mergedPolygons=e.mergedPolygons=[]}function V(e,t,n,r){var a,o,i,l=[],s=t.map((function(e){return e._id})),u=n.map((function(e){return e._id}));for(i=0;i<e.calcdata.length;i++)if(a=e.calcdata[i],o=a[0].trace,!0===o.visible&&o._module&&o._module.selectPoints)if(!r||o.subplot!==r&&o.geo!==r)if("splom"===o.type&&o._xaxes[s[0]]&&o._yaxes[u[0]]){var c=p(o._module,a,t[0],n[0]);c.scene=e._fullLayout._splomScenes[o.uid],l.push(c)}else if("sankey"===o.type){var f=p(o._module,a,t[0],n[0]);l.push(f)}else{if(-1===s.indexOf(o.xaxis))continue;if(-1===u.indexOf(o.yaxis))continue;l.push(p(o._module,a,_(e,o.xaxis),_(e,o.yaxis)))}else l.push(p(o._module,a,t[0],n[0]));return l;function p(e,t,n,r){return{_module:e,cd:t,xaxis:n,yaxis:r}}}function H(e){return e&&Array.isArray(e)&&!0!==e[0].hoverOnBox}function U(e,t){var n,r,a=e[0],o=-1,i=[];for(r=0;r<t.length;r++)if(n=t[r],a.fullData._expandedIndex===n.cd[0].trace._expandedIndex){if(!0===a.hoverOnBox)break;void 0!==a.pointNumber?o=a.pointNumber:void 0!==a.binNumber&&(o=a.binNumber,i=a.pointNumbers);break}return{pointNumber:o,pointNumbers:i,searchInfo:n}}function W(e){var t=e.searchInfo.cd[0].trace,n=e.pointNumber,r=e.pointNumbers,a=r.length>0,o=a?r[0]:n;return!!t.selectedpoints&&t.selectedpoints.indexOf(o)>-1}function q(e,t){var n,r,a,o,i=[];for(o=0;o<e.length;o++)n=e[o],n.cd[0].trace.selectedpoints&&n.cd[0].trace.selectedpoints.length>0&&i.push(n);if(1===i.length&&(a=i[0]===t.searchInfo,a&&(r=t.searchInfo.cd[0].trace,r.selectedpoints.length===t.pointNumbers.length))){for(o=0;o<t.pointNumbers.length;o++)if(r.selectedpoints.indexOf(t.pointNumbers[o])<0)return!1;return!0}return!1}function $(e){var t,n,r,a=0;for(r=0;r<e.length;r++)if(t=e[r],n=t.cd[0].trace,n.selectedpoints){if(n.selectedpoints.length>1)return!1;if(a+=n.selectedpoints.length,a>1)return!1}return 1===a}function G(e,t,n){var r,o,i,l;for(r=0;r<t.length;r++){var s=t[r].cd[0].trace._fullInput,u=e._fullLayout._tracePreGUI[s.uid]||{};void 0===u.selectedpoints&&(u.selectedpoints=s._input.selectedpoints||null)}if(n){var c=n.points||[];for(r=0;r<t.length;r++)l=t[r].cd[0].trace,l._input.selectedpoints=l._fullInput.selectedpoints=[],l._fullInput!==l&&(l.selectedpoints=[]);for(r=0;r<c.length;r++){var f=c[r],p=f.data,d=f.fullData;f.pointIndices?([].push.apply(p.selectedpoints,f.pointIndices),l._fullInput!==l&&[].push.apply(d.selectedpoints,f.pointIndices)):(p.selectedpoints.push(f.pointIndex),l._fullInput!==l&&d.selectedpoints.push(f.pointIndex))}}else for(r=0;r<t.length;r++)l=t[r].cd[0].trace,delete l.selectedpoints,delete l._input.selectedpoints,l._fullInput!==l&&delete l._fullInput.selectedpoints;var h=!1;for(r=0;r<t.length;r++){o=t[r],i=o.cd,l=i[0].trace,a.traceIs(l,"regl")&&(h=!0);var v=o._module,m=v.styleOnSelect||v.style;m&&(m(e,i,i[0].node3),i[0].nodeRangePlot3&&m(e,i,i[0].nodeRangePlot3))}h&&(w(e),k(e))}function Y(e,t,n){var a;return n?(a=r.difference({regions:e,inverted:!1},{regions:[t],inverted:!1}),a.regions):(a=r.union({regions:e,inverted:!1},{regions:[t],inverted:!1}),a.regions)}function K(e,t){if(Array.isArray(e))for(var n=t.cd,r=t.cd[0].trace,a=0;a<e.length;a++)e[a]=s(e[a],r,n);return e}function X(e,t){for(var n=[],r=0;r<e.length;r++){n[r]=[];for(var a=0;a<e[r].length;a++){n[r][a]=[],n[r][a][0]=a?"L":"M";for(var o=0;o<e[r][a].length;o++)n[r][a].push(e[r][a][o])}t||n[r].push(["Z",n[r][0][1],n[r][0][2]])}return n}t.exports={prepSelect:D,clearSelect:S,clearSelectionsCache:B,selectOnClick:j}},{"../../components/color":615,"../../components/dragelement/helpers":633,"../../components/drawing":637,"../../components/fx":655,"../../components/fx/helpers":651,"../../components/shapes/draw_newshape/display_outlines":700,"../../components/shapes/draw_newshape/helpers":701,"../../components/shapes/draw_newshape/newshapes":702,"../../lib":750,"../../lib/clear_gl_canvases":734,"../../lib/polygon":762,"../../lib/throttle":775,"../../plot_api/subroutines":789,"../../registry":882,"./axis_ids":802,"./constants":805,"./handle_outline":809,"./helpers":810,polybooljs:491}],819:[function(e,t,n){"use strict";var r=e("d3"),a=e("d3-time-format").utcFormat,o=e("fast-isnumeric"),i=e("../../lib"),l=i.cleanNumber,s=i.ms2DateTime,u=i.dateTime2ms,c=i.ensureNumber,f=i.isArrayOrTypedArray,p=e("../../constants/numerical"),d=p.FP_SAFE,h=p.BADNUM,v=p.LOG_CLIP,m=p.ONEWEEK,y=p.ONEDAY,g=p.ONEHOUR,b=p.ONEMIN,x=p.ONESEC,_=e("./axis_ids"),w=e("./constants"),k=w.HOUR_PATTERN,T=w.WEEKDAY_PATTERN;function E(e){return Math.pow(10,e)}function O(e){return null!==e&&void 0!==e}t.exports=function(e,t){t=t||{};var n=e._id||"x",p=n.charAt(0);function M(t,n){if(t>0)return Math.log(t)/Math.LN10;if(t<=0&&n&&e.range&&2===e.range.length){var r=e.range[0],a=e.range[1];return.5*(r+a-2*v*Math.abs(r-a))}return h}function S(t,n,r,a){if((a||{}).msUTC&&o(t))return+t;var l=u(t,r||e.calendar);if(l===h){if(!o(t))return h;t=+t;var s=Math.floor(10*i.mod(t+.05,1)),c=Math.round(t-s/10);l=u(new Date(c))+s/10}return l}function C(t,n,r){return s(t,n,r||e.calendar)}function A(t){return e._categories[Math.round(t)]}function P(t){if(O(t)){if(void 0===e._categoriesMap&&(e._categoriesMap={}),void 0!==e._categoriesMap[t])return e._categoriesMap[t];e._categories.push("number"===typeof t?String(t):t);var n=e._categories.length-1;return e._categoriesMap[t]=n,n}return h}function L(e,t){for(var n=new Array(t),r=0;r<t;r++){var a=(e[0]||[])[r],o=(e[1]||[])[r];n[r]=D([a,o])}return n}function D(t){if(e._categoriesMap)return e._categoriesMap[t]}function j(e){var t=D(e);return void 0!==t?t:o(e)?+e:void 0}function I(e){return o(e)?+e:D(e)}function R(e,t,n){return r.round(n+t*e,2)}function z(e,t,n){return(e-n)/t}var N=function(t){return o(t)?R(t,e._m,e._b):h},F=function(t){return z(t,e._m,e._b)};if(e.rangebreaks){var B="y"===p;N=function(t){if(!o(t))return h;var n=e._rangebreaks.length;if(!n)return R(t,e._m,e._b);var r=B;e.range[0]>e.range[1]&&(r=!r);for(var a=r?-1:1,i=a*t,l=0,s=0;s<n;s++){var u=a*e._rangebreaks[s].min,c=a*e._rangebreaks[s].max;if(i<u)break;if(!(i>c)){l=i<(u+c)/2?s:s+1;break}l=s+1}var f=e._B[l]||0;return isFinite(f)?R(t,e._m2,f):0},F=function(t){var n=e._rangebreaks.length;if(!n)return z(t,e._m,e._b);for(var r=0,a=0;a<n;a++){if(t<e._rangebreaks[a].pmin)break;t>e._rangebreaks[a].pmax&&(r=a+1)}return z(t,e._m2,e._B[r])}}e.c2l="log"===e.type?M:c,e.l2c="log"===e.type?E:c,e.l2p=N,e.p2l=F,e.c2p="log"===e.type?function(e,t){return N(M(e,t))}:N,e.p2c="log"===e.type?function(e){return E(F(e))}:F,-1!==["linear","-"].indexOf(e.type)?(e.d2r=e.r2d=e.d2c=e.r2c=e.d2l=e.r2l=l,e.c2d=e.c2r=e.l2d=e.l2r=c,e.d2p=e.r2p=function(t){return e.l2p(l(t))},e.p2d=e.p2r=F,e.cleanPos=c):"log"===e.type?(e.d2r=e.d2l=function(e,t){return M(l(e),t)},e.r2d=e.r2c=function(e){return E(l(e))},e.d2c=e.r2l=l,e.c2d=e.l2r=c,e.c2r=M,e.l2d=E,e.d2p=function(t,n){return e.l2p(e.d2r(t,n))},e.p2d=function(e){return E(F(e))},e.r2p=function(t){return e.l2p(l(t))},e.p2r=F,e.cleanPos=c):"date"===e.type?(e.d2r=e.r2d=i.identity,e.d2c=e.r2c=e.d2l=e.r2l=S,e.c2d=e.c2r=e.l2d=e.l2r=C,e.d2p=e.r2p=function(t,n,r){return e.l2p(S(t,0,r))},e.p2d=e.p2r=function(e,t,n){return C(F(e),t,n)},e.cleanPos=function(t){return i.cleanDate(t,h,e.calendar)}):"category"===e.type?(e.d2c=e.d2l=P,e.r2d=e.c2d=e.l2d=A,e.d2r=e.d2l_noadd=j,e.r2c=function(t){var n=I(t);return void 0!==n?n:e.fraction2r(.5)},e.l2r=e.c2r=c,e.r2l=I,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return A(F(e))},e.r2p=e.d2p,e.p2r=F,e.cleanPos=function(e){return"string"===typeof e&&""!==e?e:c(e)}):"multicategory"===e.type&&(e.r2d=e.c2d=e.l2d=A,e.d2r=e.d2l_noadd=j,e.r2c=function(t){var n=j(t);return void 0!==n?n:e.fraction2r(.5)},e.r2c_just_indices=D,e.l2r=e.c2r=c,e.r2l=j,e.d2p=function(t){return e.l2p(e.r2c(t))},e.p2d=function(e){return A(F(e))},e.r2p=e.d2p,e.p2r=F,e.cleanPos=function(e){return Array.isArray(e)||"string"===typeof e&&""!==e?e:c(e)},e.setupMultiCategory=function(r){var a,o,l=e._traceIndices,s=t._axisMatchGroups;if(s&&s.length&&0===e._categories.length)for(a=0;a<s.length;a++){var u=s[a];if(u[n])for(var c in u)if(c!==n){var d=t[_.id2name(c)];l=l.concat(d._traceIndices)}}var h=[[0,{}],[0,{}]],v=[];for(a=0;a<l.length;a++){var m=r[l[a]];if(p in m){var y=m[p],g=m._length||i.minRowLength(y);if(f(y[0])&&f(y[1]))for(o=0;o<g;o++){var b=y[0][o],x=y[1][o];O(b)&&O(x)&&(v.push([b,x]),b in h[0][1]||(h[0][1][b]=h[0][0]++),x in h[1][1]||(h[1][1][x]=h[1][0]++))}}}for(v.sort((function(e,t){var n=h[0][1],r=n[e[0]]-n[t[0]];if(r)return r;var a=h[1][1];return a[e[1]]-a[t[1]]})),a=0;a<v.length;a++)P(v[a])}),e.fraction2r=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return e.l2r(n+t*(r-n))},e.r2fraction=function(t){var n=e.r2l(e.range[0]),r=e.r2l(e.range[1]);return(e.r2l(t)-n)/(r-n)},e.cleanRange=function(t,n){n||(n={}),t||(t="range");var r,a,l=i.nestedProperty(e,t).get();if(a="date"===e.type?i.dfltRange(e.calendar):"y"===p?w.DFLTRANGEY:n.dfltRange||w.DFLTRANGEX,a=a.slice(),"tozero"!==e.rangemode&&"nonnegative"!==e.rangemode||(a[0]=0),l&&2===l.length)for("date"!==e.type||e.autorange||(l[0]=i.cleanDate(l[0],h,e.calendar),l[1]=i.cleanDate(l[1],h,e.calendar)),r=0;r<2;r++)if("date"===e.type){if(!i.isDateTime(l[r],e.calendar)){e[t]=a;break}if(e.r2l(l[0])===e.r2l(l[1])){var s=i.constrain(e.r2l(l[0]),i.MIN_MS+1e3,i.MAX_MS-1e3);l[0]=e.l2r(s-1e3),l[1]=e.l2r(s+1e3);break}}else{if(!o(l[r])){if(!o(l[1-r])){e[t]=a;break}l[r]=l[1-r]*(r?10:.1)}if(l[r]<-d?l[r]=-d:l[r]>d&&(l[r]=d),l[0]===l[1]){var u=Math.max(1,Math.abs(1e-6*l[0]));l[0]-=u,l[1]+=u}}else i.nestedProperty(e,t).set(a)},e.setScale=function(n){var r=t._size;if(e.overlaying){var a=_.getFromId({_fullLayout:t},e.overlaying);e.domain=a.domain}var o=n&&e._r?"_r":"range",i=e.calendar;e.cleanRange(o);var l,s,u=e.r2l(e[o][0],i),c=e.r2l(e[o][1],i),f="y"===p;if((f?(e._offset=r.t+(1-e.domain[1])*r.h,e._length=r.h*(e.domain[1]-e.domain[0]),e._m=e._length/(u-c),e._b=-e._m*c):(e._offset=r.l+e.domain[0]*r.w,e._length=r.w*(e.domain[1]-e.domain[0]),e._m=e._length/(c-u),e._b=-e._m*u),e._rangebreaks=[],e._lBreaks=0,e._m2=0,e._B=[],e.rangebreaks)&&(e._rangebreaks=e.locateBreaks(Math.min(u,c),Math.max(u,c)),e._rangebreaks.length)){for(l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._lBreaks+=Math.abs(s.max-s.min);var d=f;u>c&&(d=!d),d&&e._rangebreaks.reverse();var h=d?-1:1;for(e._m2=h*e._length/(Math.abs(c-u)-e._lBreaks),e._B.push(-e._m2*(f?c:u)),l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],e._B.push(e._B[e._B.length-1]-h*e._m2*(s.max-s.min));for(l=0;l<e._rangebreaks.length;l++)s=e._rangebreaks[l],s.pmin=N(s.min),s.pmax=N(s.max)}if(!isFinite(e._m)||!isFinite(e._b)||e._length<0)throw t._replotting=!1,new Error("Something went wrong with axis scaling")},e.maskBreaks=function(t){for(var n,r,a,o,s,u=e.rangebreaks||[],c=0;c<u.length;c++){var f=u[c];if(f.enabled)if(f.bounds){var p=f.pattern;switch(n=i.simpleMap(f.bounds,p?l:e.d2c),r=n[0],a=n[1],p){case T:s=new Date(t),o=s.getUTCDay(),r>a&&(a+=7,o<r&&(o+=7));break;case k:s=new Date(t);var d=s.getUTCHours(),v=s.getUTCMinutes(),m=s.getUTCSeconds(),y=s.getUTCMilliseconds();o=d+(v/60+m/3600+y/36e5),r>a&&(a+=24,o<r&&(o+=24));break;case"":o=t;break}if(o>=r&&o<a)return h}else for(var g=i.simpleMap(f.values,e.d2c).sort(i.sorterAsc),b=0;b<g.length;b++)if(r=g[b],a=r+f.dvalue,t>=r&&t<a)return h}return t},e.locateBreaks=function(t,n){var r,a,o,s,u=[];if(!e.rangebreaks)return u;var c=e.rangebreaks.slice().sort((function(e,t){return e.pattern===T&&t.pattern===k?-1:t.pattern===T&&e.pattern===k?1:0})),f=function(e,r){if(e=i.constrain(e,t,n),r=i.constrain(r,t,n),e!==r){for(var a=!0,o=0;o<u.length;o++){var l=u[o];e<l.max&&r>=l.min&&(e<l.min&&(l.min=e),r>l.max&&(l.max=r),a=!1)}a&&u.push({min:e,max:r})}};for(r=0;r<c.length;r++){var p=c[r];if(p.enabled)if(p.bounds){var d=t,h=n;p.pattern&&(d=Math.floor(d)),a=i.simpleMap(p.bounds,p.pattern?l:e.r2l),o=a[0],s=a[1];var v,_,w=new Date(d);switch(p.pattern){case T:_=m,v=(s-o+(s<o?7:0))*y,d+=o*y-(w.getUTCDay()*y+w.getUTCHours()*g+w.getUTCMinutes()*b+w.getUTCSeconds()*x+w.getUTCMilliseconds());break;case k:_=y,v=(s-o+(s<o?24:0))*g,d+=o*g-(w.getUTCHours()*g+w.getUTCMinutes()*b+w.getUTCSeconds()*x+w.getUTCMilliseconds());break;default:d=Math.min(a[0],a[1]),h=Math.max(a[0],a[1]),_=h-d,v=_}for(var E=d;E<h;E+=_)f(E,E+v)}else for(var O=i.simpleMap(p.values,e.d2c),M=0;M<O.length;M++)o=O[M],s=o+p.dvalue,f(o,s)}return u.sort((function(e,t){return e.min-t.min})),u},e.makeCalcdata=function(t,n,r){var a,o,l,s,u=e.type,c="date"===u&&t[n+"calendar"];if(n in t){if(a=t[n],s=t._length||i.minRowLength(a),i.isTypedArray(a)&&("linear"===u||"log"===u)){if(s===a.length)return a;if(a.subarray)return a.subarray(0,s)}if("multicategory"===u)return L(a,s);for(o=new Array(s),l=0;l<s;l++)o[l]=e.d2c(a[l],0,c,r)}else{var f=n+"0"in t?e.d2c(t[n+"0"],0,c):0,p=t["d"+n]?Number(t["d"+n]):1;for(a=t[{x:"y",y:"x"}[n]],s=t._length||a.length,o=new Array(s),l=0;l<s;l++)o[l]=f+l*p}if(e.rangebreaks)for(l=0;l<s;l++)o[l]=e.maskBreaks(o[l]);return o},e.isValidRange=function(t){return Array.isArray(t)&&2===t.length&&o(e.r2l(t[0]))&&o(e.r2l(t[1]))},e.isPtWithinRange=function(t,n){var r=e.c2l(t[p],null,n),a=e.r2l(e.range[0]),o=e.r2l(e.range[1]);return a<o?a<=r&&r<=o:o<=r&&r<=a},e._emptyCategories=function(){e._categories=[],e._categoriesMap={}},e.clearCalc=function(){var r=t._axisMatchGroups;if(r&&r.length){for(var a=!1,o=0;o<r.length;o++){var i=r[o];if(i[n]){a=!0;var l=null,s=null;for(var u in i){var c=t[_.id2name(u)];if(c._categories){l=c._categories,s=c._categoriesMap;break}}l&&s?(e._categories=l,e._categoriesMap=s):e._emptyCategories();break}}a||e._emptyCategories()}else e._emptyCategories();if(e._initialCategories)for(var f=0;f<e._initialCategories.length;f++)P(e._initialCategories[f])},e.sortByInitialCategories=function(){var r=[];if(e._emptyCategories(),e._initialCategories)for(var a=0;a<e._initialCategories.length;a++)P(e._initialCategories[a]);r=r.concat(e._traceIndices);var o=e._matchGroup;for(var i in o)if(n!==i){var l=t[_.id2name(i)];l._categories=e._categories,l._categoriesMap=e._categoriesMap,r=r.concat(l._traceIndices)}return r};var V=t._d3locale;"date"===e.type&&(e._dateFormat=V?V.timeFormat:a,e._extraFormat=t._extraFormat),e._separators=t.separators,e._numFormat=V?V.numberFormat:r.format,delete e._minDtick,delete e._forceTick0}},{"../../constants/numerical":725,"../../lib":750,"./axis_ids":802,"./constants":805,d3:169,"d3-time-format":166,"fast-isnumeric":241}],820:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes"),o=e("../array_container_defaults");function i(e,t,n,r,a){var o=s(e),i=n("tickprefix");i&&n("showtickprefix",o);var l=n("ticksuffix",a.tickSuffixDflt);l&&n("showticksuffix",o)}function l(e,t,n,i,l){var c=s(e),f=n("tickprefix");f&&n("showtickprefix",c);var p=n("ticksuffix",l.tickSuffixDflt);p&&n("showticksuffix",c);var d=n("showticklabels");if(d){var h=l.font||{},v=t.color,m=v&&v!==a.color.dflt?v:h.color;if(r.coerceFont(n,"tickfont",{family:h.family,size:h.size,color:m}),n("tickangle"),"category"!==i){var y=n("tickformat");o(e,t,{name:"tickformatstops",inclusionAttr:"enabled",handleItemDefaults:u}),t.tickformatstops.length||delete t.tickformatstops,y||"date"===i||(n("showexponent",c),n("exponentformat"),n("minexponent"),n("separatethousands"))}}}function s(e){var t=["showexponent","showtickprefix","showticksuffix"],n=t.filter((function(t){return void 0!==e[t]})),r=function(t){return e[t]===e[n[0]]};if(n.every(r)||1===n.length)return e[n[0]]}function u(e,t){function n(n,o){return r.coerce(e,t,a.tickformatstops,n,o)}var o=n("enabled");o&&(n("dtickrange"),n("value"))}t.exports=function(e,t,n,r,a,o){o&&1!==o.pass||i(e,t,n,r,a),o&&2!==o.pass||l(e,t,n,r,a)}},{"../../lib":750,"../array_container_defaults":794,"./layout_attributes":813}],821:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t,n,o){var i=r.coerce2(e,t,a,"ticklen"),l=r.coerce2(e,t,a,"tickwidth"),s=r.coerce2(e,t,a,"tickcolor",t.color),u=n("ticks",o.outerTicks||i||l||s?"outside":"");u||(delete t.ticklen,delete t.tickwidth,delete t.tickcolor)}},{"../../lib":750,"./layout_attributes":813}],822:[function(e,t,n){"use strict";var r=e("./clean_ticks"),a=e("../../lib").isArrayOrTypedArray;t.exports=function(e,t,n,o){function i(n){var r=e[n];return void 0!==r?r:(t._template||{})[n]}var l=i("tick0"),s=i("dtick"),u=i("tickvals"),c=a(u)?"array":s?"linear":"auto",f=n("tickmode",c);if("auto"===f)n("nticks");else if("linear"===f){var p=t.dtick=r.dtick(s,o);t.tick0=r.tick0(l,o,t.calendar,p)}else if("multicategory"!==o){var d=n("tickvals");void 0===d?t.tickmode="auto":n("ticktext")}}},{"../../lib":750,"./clean_ticks":804}],823:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),o=e("../../lib"),i=e("../../components/drawing"),l=e("./axes");t.exports=function(e,t,n,s){var u=e._fullLayout;if(0!==t.length){var c,f,p,d;s&&(c=s());var h=r.ease(n.easing);return e._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(d),d=null,g()})),f=Date.now(),d=window.requestAnimationFrame(b),Promise.resolve()}function v(e){var t=e.xaxis,n=e.yaxis;u._defs.select("#"+e.clipId+"> rect").call(i.setTranslate,0,0).call(i.setScale,1,1),e.plot.call(i.setTranslate,t._offset,n._offset).call(i.setScale,1,1);var r=e.plot.selectAll(".scatterlayer .trace");r.selectAll(".point").call(i.setPointGroupScale,1,1),r.selectAll(".textpoint").call(i.setTextPointsScale,1,1),r.call(i.hideOutsideRangePoints,e)}function m(t,n){var r=t.plotinfo,a=r.xaxis,s=r.yaxis,u=a._length,c=s._length,f=!!t.xr1,p=!!t.yr1,d=[];if(f){var h=o.simpleMap(t.xr0,a.r2l),v=o.simpleMap(t.xr1,a.r2l),m=h[1]-h[0],y=v[1]-v[0];d[0]=(h[0]*(1-n)+n*v[0]-h[0])/(h[1]-h[0])*u,d[2]=u*(1-n+n*y/m),a.range[0]=a.l2r(h[0]*(1-n)+n*v[0]),a.range[1]=a.l2r(h[1]*(1-n)+n*v[1])}else d[0]=0,d[2]=u;if(p){var g=o.simpleMap(t.yr0,s.r2l),b=o.simpleMap(t.yr1,s.r2l),x=g[1]-g[0],_=b[1]-b[0];d[1]=(g[1]*(1-n)+n*b[1]-g[1])/(g[0]-g[1])*c,d[3]=c*(1-n+n*_/x),s.range[0]=a.l2r(g[0]*(1-n)+n*b[0]),s.range[1]=s.l2r(g[1]*(1-n)+n*b[1])}else d[1]=0,d[3]=c;l.drawOne(e,a,{skipTitle:!0}),l.drawOne(e,s,{skipTitle:!0}),l.redrawComponents(e,[a._id,s._id]);var w=f?u/d[2]:1,k=p?c/d[3]:1,T=f?d[0]:0,E=p?d[1]:0,O=f?d[0]/d[2]*u:0,M=p?d[1]/d[3]*c:0,S=a._offset-O,C=s._offset-M;r.clipRect.call(i.setTranslate,T,E).call(i.setScale,1/w,1/k),r.plot.call(i.setTranslate,S,C).call(i.setScale,w,k),i.setPointGroupScale(r.zoomScalePts,1/w,1/k),i.setTextPointsScale(r.zoomScaleTxt,1/w,1/k)}function y(){for(var n={},r=0;r<t.length;r++){var o=t[r],i=o.plotinfo.xaxis,l=o.plotinfo.yaxis;o.xr1&&(n[i._name+".range"]=o.xr1.slice()),o.yr1&&(n[l._name+".range"]=o.yr1.slice())}return c&&c(),a.call("relayout",e,n).then((function(){for(var e=0;e<t.length;e++)v(t[e].plotinfo)}))}function g(){for(var n={},r=0;r<t.length;r++){var o=t[r],i=o.plotinfo.xaxis,l=o.plotinfo.yaxis;o.xr0&&(n[i._name+".range"]=o.xr0.slice()),o.yr0&&(n[l._name+".range"]=o.yr0.slice())}return a.call("relayout",e,n).then((function(){for(var e=0;e<t.length;e++)v(t[e].plotinfo)}))}function b(){p=Date.now();for(var e=Math.min(1,(p-f)/n.duration),r=h(e),a=0;a<t.length;a++)m(t[a],r);p-f>n.duration?(y(),d=window.cancelAnimationFrame(b)):d=window.requestAnimationFrame(b)}l.redrawComponents(e)}},{"../../components/drawing":637,"../../lib":750,"../../registry":882,"./axes":799,d3:169}],824:[function(e,t,n){"use strict";var r=e("../../registry").traceIs,a=e("./axis_autotype");function o(e,t){if("-"===e.type){var n,o=e._id,u=o.charAt(0);-1!==o.indexOf("scene")&&(o=u);var c=i(t,o,u);if(c)if("histogram"!==c.type||u!=={v:"y",h:"x"}[c.orientation||"v"]){var f=u+"calendar",p=c[f],d={noMultiCategory:!r(c,"cartesian")||r(c,"noMultiCategory")};if("box"===c.type&&c._hasPreCompStats&&u==={h:"x",v:"y"}[c.orientation||"v"]&&(d.noMultiCategory=!0),s(c,u)){var h=l(c),v=[];for(n=0;n<t.length;n++){var m=t[n];r(m,"box-violin")&&(m[u+"axis"]||u)===o&&(void 0!==m[h]?v.push(m[h][0]):void 0!==m.name?v.push(m.name):v.push("text"),m[f]!==p&&(p=void 0))}e.type=a(v,p,d)}else if("splom"===c.type){var y=c.dimensions,g=y[c._axesDim[o]];g.visible&&(e.type=a(g.values,p,d))}else e.type=a(c[u]||[c[u+"0"]],p,d)}else e.type="linear"}}function i(e,t,n){for(var r=0;r<e.length;r++){var a=e[r];if("splom"===a.type&&a._length>0&&(a["_"+n+"axes"]||{})[t])return a;if((a[n+"axis"]||n)===t){if(s(a,n))return a;if((a[n]||[]).length||a[n+"0"])return a}}}function l(e){return{v:"x",h:"y"}[e.orientation||"v"]}function s(e,t){var n=l(e),a=r(e,"box-violin"),o=r(e._fullInput||{},"candlestick");return a&&!o&&t===n&&void 0===e[n]&&void 0===e[n+"0"]}t.exports=function(e,t,n,r){var a=n("type",(r.splomStash||{}).type);"-"===a&&(o(t,r.data),"-"===t.type?t.type="linear":e.type=t.type)}},{"../../registry":882,"./axis_autotype":800}],825:[function(e,t,n){"use strict";var r=e("../registry"),a=e("../lib");function o(e,t,n){var r,o,i,l=!1;if("data"===t.type)r=e._fullData[null!==t.traces?t.traces[0]:0];else{if("layout"!==t.type)return!1;r=e._fullLayout}return o=a.nestedProperty(r,t.prop).get(),i=n[t.type]=n[t.type]||{},i.hasOwnProperty(t.prop)&&i[t.prop]!==o&&(l=!0),i[t.prop]=o,{changed:l,value:o}}function i(e,t){return Array.isArray(t[0])&&1===t[0].length&&-1!==["string","number"].indexOf(typeof t[0][0])?[{type:"layout",prop:"_currentFrame",value:t[0][0].toString()}]:[]}function l(e,t){var n=[],r=t[0],o={};if("string"===typeof r)o[r]=t[1];else{if(!a.isPlainObject(r))return n;o=r}return u(o,(function(e,t,r){n.push({type:"layout",prop:e,value:r})}),"",0),n}function s(e,t){var n,r,o,i,l=[];if(r=t[0],o=t[1],n=t[2],i={},"string"===typeof r)i[r]=o;else{if(!a.isPlainObject(r))return l;i=r,void 0===n&&(n=o)}return void 0===n&&(n=null),u(i,(function(t,r,a){var o,i;if(Array.isArray(a)){i=a.slice();var s=Math.min(i.length,e.data.length);n&&(s=Math.min(s,n.length)),o=[];for(var u=0;u<s;u++)o[u]=n?n[u]:u}else i=a,o=n?n.slice():null;if(null===o)Array.isArray(i)&&(i=i[0]);else if(Array.isArray(o)){if(!Array.isArray(i)){var c=i;i=[];for(var f=0;f<o.length;f++)i[f]=c}i.length=Math.min(o.length,i.length)}l.push({type:"data",prop:t,traces:o,value:i})}),"",0),l}function u(e,t,n,r){Object.keys(e).forEach((function(o){var i=e[o];if("_"!==o[0]){var l=n+(r>0?".":"")+o;a.isPlainObject(i)?u(i,t,l,r+1):t(l,o,i)}}))}n.manageCommandObserver=function(e,t,r,i){var l={},s=!0;t&&t._commandObserver&&(l=t._commandObserver),l.cache||(l.cache={}),l.lookupTable={};var u=n.hasSimpleAPICommandBindings(e,r,l.lookupTable);if(t&&t._commandObserver){if(u)return l;if(t._commandObserver.remove)return t._commandObserver.remove(),t._commandObserver=null,l}if(u){o(e,u,l.cache),l.check=function(){if(s){var t=o(e,u,l.cache);return t.changed&&i&&void 0!==l.lookupTable[t.value]&&(l.disable(),Promise.resolve(i({value:t.value,type:u.type,prop:u.prop,traces:u.traces,index:l.lookupTable[t.value]})).then(l.enable,l.enable)),t.changed}};for(var c=["plotly_relayout","plotly_redraw","plotly_restyle","plotly_update","plotly_animatingframe","plotly_afterplot"],f=0;f<c.length;f++)e._internalOn(c[f],l.check);l.remove=function(){for(var t=0;t<c.length;t++)e._removeInternalListener(c[t],l.check)}}else a.log("Unable to automatically bind plot updates to API command"),l.lookupTable={},l.remove=function(){};return l.disable=function(){s=!1},l.enable=function(){s=!0},t&&(t._commandObserver=l),l},n.hasSimpleAPICommandBindings=function(e,t,r){var a,o,i=t.length;for(a=0;a<i;a++){var l,s=t[a],u=s.method,c=s.args;if(Array.isArray(c)||(c=[]),!u)return!1;var f=n.computeAPICommandBindings(e,u,c);if(1!==f.length)return!1;if(o){if(l=f[0],l.type!==o.type)return!1;if(l.prop!==o.prop)return!1;if(Array.isArray(o.traces)){if(!Array.isArray(l.traces))return!1;l.traces.sort();for(var p=0;p<o.traces.length;p++)if(o.traces[p]!==l.traces[p])return!1}else if(l.prop!==o.prop)return!1}else o=f[0],Array.isArray(o.traces)&&o.traces.sort();l=f[0];var d=l.value;if(Array.isArray(d)){if(1!==d.length)return!1;d=d[0]}r&&(r[d]=a)}return o},n.executeAPICommand=function(e,t,n){if("skip"===t)return Promise.resolve();var o=r.apiMethodRegistry[t],i=[e];Array.isArray(n)||(n=[]);for(var l=0;l<n.length;l++)i.push(n[l]);return o.apply(null,i).catch((function(e){return a.warn("API call to Plotly."+t+" rejected.",e),Promise.reject(e)}))},n.computeAPICommandBindings=function(e,t,n){var r;switch(Array.isArray(n)||(n=[]),t){case"restyle":r=s(e,n);break;case"relayout":r=l(e,n);break;case"update":r=s(e,[n[0],n[2]]).concat(l(e,[n[1]]));break;case"animate":r=i(e,n);break;default:r=[]}return r}},{"../lib":750,"../registry":882}],826:[function(e,t,n){"use strict";var r=e("../lib/extend").extendFlat;n.attributes=function(e,t){e=e||{},t=t||{};var n={valType:"info_array",editType:e.editType,items:[{valType:"number",min:0,max:1,editType:e.editType},{valType:"number",min:0,max:1,editType:e.editType}],dflt:[0,1]},a=(e.name&&e.name,e.trace,t.description&&t.description,{x:r({},n,{}),y:r({},n,{}),editType:e.editType});return e.noGridCell||(a.row={valType:"integer",min:0,dflt:0,editType:e.editType},a.column={valType:"integer",min:0,dflt:0,editType:e.editType}),a},n.defaults=function(e,t,n,r){var a=r&&r.x||[0,1],o=r&&r.y||[0,1],i=t.grid;if(i){var l=n("domain.column");void 0!==l&&(l<i.columns?a=i._domains.x[l]:delete e.domain.column);var s=n("domain.row");void 0!==s&&(s<i.rows?o=i._domains.y[s]:delete e.domain.row)}var u=n("domain.x",a),c=n("domain.y",o);u[0]<u[1]||(e.domain.x=a.slice()),c[0]<c[1]||(e.domain.y=o.slice())}},{"../lib/extend":740}],827:[function(e,t,n){"use strict";t.exports=function(e){var t=e.editType,n=e.colorEditType;void 0===n&&(n=t);var r={family:{valType:"string",noBlank:!0,strict:!0,editType:t},size:{valType:"number",min:1,editType:t},color:{valType:"color",editType:n},editType:t};return e.arrayOk&&(r.family.arrayOk=!0,r.size.arrayOk=!0,r.color.arrayOk=!0),r}},{}],828:[function(e,t,n){"use strict";t.exports={_isLinkedToArray:"frames_entry",group:{valType:"string"},name:{valType:"string"},traces:{valType:"any"},baseframe:{valType:"string"},data:{valType:"any"},layout:{valType:"any"}}},{}],829:[function(e,t,n){"use strict";n.projNames={equirectangular:"equirectangular",mercator:"mercator",orthographic:"orthographic","natural earth":"naturalEarth",kavrayskiy7:"kavrayskiy7",miller:"miller",robinson:"robinson",eckert4:"eckert4","azimuthal equal area":"azimuthalEqualArea","azimuthal equidistant":"azimuthalEquidistant","conic equal area":"conicEqualArea","conic conformal":"conicConformal","conic equidistant":"conicEquidistant",gnomonic:"gnomonic",stereographic:"stereographic",mollweide:"mollweide",hammer:"hammer","transverse mercator":"transverseMercator","albers usa":"albersUsa","winkel tripel":"winkel3",aitoff:"aitoff",sinusoidal:"sinusoidal"},n.axesNames=["lonaxis","lataxis"],n.lonaxisSpan={orthographic:180,"azimuthal equal area":360,"azimuthal equidistant":360,"conic conformal":180,gnomonic:160,stereographic:180,"transverse mercator":180,"*":360},n.lataxisSpan={"conic conformal":150,stereographic:179.5,"*":180},n.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:"equirectangular",projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:"albers usa"},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:"conic conformal",projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:"mercator",projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:"mercator",projRotate:[0,0,0]},"north america":{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:"conic conformal",projRotate:[-100,0,0],projParallels:[29.5,45.5]},"south america":{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:"mercator",projRotate:[0,0,0]}},n.clipPad=.001,n.precision=.1,n.landColor="#F0DC82",n.waterColor="#3399FF",n.locationmodeToLayer={"ISO-3":"countries","USA-states":"subunits","country names":"countries"},n.sphereSVG={type:"Sphere"},n.fillLayers={ocean:1,land:1,lakes:1},n.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},n.layers=["bg","ocean","land","lakes","subunits","countries","coastlines","rivers","lataxis","lonaxis","frame","backplot","frontplot"],n.layersForChoropleth=["bg","ocean","land","subunits","countries","coastlines","lataxis","lonaxis","frame","backplot","rivers","lakes","frontplot"],n.layerNameToAdjective={ocean:"ocean",land:"land",lakes:"lake",subunits:"subunit",countries:"country",coastlines:"coastline",rivers:"river",frame:"frame"}},{}],830:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),o=e("../../lib"),i=e("../../components/color"),l=e("../../components/drawing"),s=e("../../components/fx"),u=e("../plots"),c=e("../cartesian/axes"),f=e("../cartesian/autorange").getAutoRange,p=e("../../components/dragelement"),d=e("../cartesian/select").prepSelect,h=e("../cartesian/select").clearSelect,v=e("../cartesian/select").selectOnClick,m=e("./zoom"),y=e("./constants"),g=e("../../lib/geo_location_utils"),b=e("../../lib/topojson_utils"),x=e("topojson-client").feature;function _(e){this.id=e.id,this.graphDiv=e.graphDiv,this.container=e.container,this.topojsonURL=e.topojsonURL,this.isStatic=e.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}e("./projections")(r);var w=_.prototype;function k(e){for(var t=e.projection,n=t.type,a=r.geo[y.projNames[n]](),o=e._isClipped?y.lonaxisSpan[n]/2:null,i=["center","rotate","parallels","clipExtent"],l=function(e){return e?a:[]},s=0;s<i.length;s++){var u=i[s];"function"!==typeof a[u]&&(a[u]=l)}return a.isLonLatOverEdges=function(e){if(null===a(e))return!0;if(o){var t=a.rotate(),n=r.geo.distance(e,[-t[0],-t[1]]),i=o*Math.PI/180;return n>i}return!1},a.getPath=function(){return r.geo.path().projection(a)},a.getBounds=function(e){return a.getPath().bounds(e)},a.fitExtent=function(e,t){var n=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=a.clipExtent&&a.clipExtent();a.scale(150).translate([0,0]),o&&a.clipExtent(null);var i=a.getBounds(t),l=Math.min(n/(i[1][0]-i[0][0]),r/(i[1][1]-i[0][1])),s=+e[0][0]+(n-l*(i[1][0]+i[0][0]))/2,u=+e[0][1]+(r-l*(i[1][1]+i[0][1]))/2;return o&&a.clipExtent(o),a.scale(150*l).translate([s,u])},a.precision(y.precision),o&&a.clipAngle(o-y.clipPad),a}function T(e,t,n){var r,a,o,i=1e-6,l=2.5,s=t[e],u=y.scopeDefaults[t.scope];"lonaxis"===e?(r=u.lonaxisRange,a=u.lataxisRange,o=function(e,t){return[e,t]}):"lataxis"===e&&(r=u.lataxisRange,a=u.lonaxisRange,o=function(e,t){return[t,e]});var f={type:"linear",range:[r[0],r[1]-i],tick0:s.tick0,dtick:s.dtick};c.setConvert(f,n);var p=c.calcTicks(f);t.isScoped||"lonaxis"!==e||p.pop();for(var d=p.length,h=new Array(d),v=0;v<d;v++)for(var m=p[v].x,g=h[v]=[],b=a[0];b<a[1]+l;b+=l)g.push(o(m,b));return{type:"MultiLineString",coordinates:h}}function E(e,t){var n=y.clipPad,r=e[0]+n,a=e[1]-n,o=t[0]+n,i=t[1]-n;r>0&&a<0&&(a+=360);var l=(a-r)/4;return{type:"Polygon",coordinates:[[[r,o],[r,i],[r+l,i],[r+2*l,i],[r+3*l,i],[a,i],[a,o],[a-l,o],[a-2*l,o],[a-3*l,o],[r,o]]]}}t.exports=function(e){return new _(e)},w.plot=function(e,t,n){var r=this,a=t[this.id],o=[],i=!1;for(var l in y.layerNameToAdjective)if("frame"!==l&&a["show"+l]){i=!0;break}for(var s=0;s<e.length;s++)if(e[0][0].trace.locationmode){i=!0;break}if(i){var u=b.getTopojsonName(a);null!==r.topojson&&u===r.topojsonName||(r.topojsonName=u,void 0===PlotlyGeoAssets.topojson[r.topojsonName]&&o.push(r.fetchTopojson()))}o=o.concat(g.fetchTraceGeoData(e)),n.push(new Promise((function(n,a){Promise.all(o).then((function(){r.topojson=PlotlyGeoAssets.topojson[r.topojsonName],r.update(e,t),n()})).catch(a)})))},w.fetchTopojson=function(){var e=this,t=b.getTopojsonPath(e.topojsonURL,e.topojsonName);return new Promise((function(n,a){r.json(t,(function(r,o){if(r)return 404===r.status?a(new Error(["plotly.js could not find topojson file at",t,".","Make sure the *topojsonURL* plot config option","is set properly."].join(" "))):a(new Error(["unexpected error while fetching topojson file at",t].join(" ")));PlotlyGeoAssets.topojson[e.topojsonName]=o,n()}))}))},w.update=function(e,t){var n=t[this.id];this.hasChoropleth=!1;for(var r=0;r<e.length;r++){var a=e[r],o=a[0].trace;"choropleth"===o.type&&(this.hasChoropleth=!0),!0===o.visible&&o._length>0&&o._module.calcGeoJSON(a,t)}var i=this.updateProjection(e,t);if(!i){this.viewInitial&&this.scope===n.scope||this.saveViewInitial(n),this.scope=n.scope,this.updateBaseLayers(t,n),this.updateDims(t,n),this.updateFx(t,n),u.generalUpdatePerTraceModule(this.graphDiv,this,e,n);var l=this.layers.frontplot.select(".scatterlayer");this.dataPoints.point=l.selectAll(".point"),this.dataPoints.text=l.selectAll("text"),this.dataPaths.line=l.selectAll(".js-line");var s=this.layers.backplot.select(".choroplethlayer");this.dataPaths.choropleth=s.selectAll("path"),this.render()}},w.updateProjection=function(e,t){var n=this.graphDiv,r=t[this.id],i=t._size,l=r.domain,s=r.projection,u=r.lonaxis,c=r.lataxis,p=u._ax,d=c._ax,h=this.projection=k(r),v=[[i.l+i.w*l.x[0],i.t+i.h*(1-l.y[1])],[i.l+i.w*l.x[1],i.t+i.h*(1-l.y[0])]],m=r.center||{},g=s.rotation||{},b=u.range||[],x=c.range||[];if(r.fitbounds){p._length=v[1][0]-v[0][0],d._length=v[1][1]-v[0][1],p.range=f(n,p),d.range=f(n,d);var _=(p.range[0]+p.range[1])/2,w=(d.range[0]+d.range[1])/2;if(r._isScoped)m={lon:_,lat:w};else if(r._isClipped){m={lon:_,lat:w},g={lon:_,lat:w,roll:g.roll};var T=s.type,O=y.lonaxisSpan[T]/2||180,M=y.lataxisSpan[T]/2||90;b=[_-O,_+O],x=[w-M,w+M]}else m={lon:_,lat:w},g={lon:_,lat:g.lat,roll:g.roll}}h.center([m.lon-g.lon,m.lat-g.lat]).rotate([-g.lon,-g.lat,g.roll]).parallels(s.parallels);var S=E(b,x);h.fitExtent(v,S);var C=this.bounds=h.getBounds(S),A=this.fitScale=h.scale(),P=h.translate();if(!isFinite(C[0][0])||!isFinite(C[0][1])||!isFinite(C[1][0])||!isFinite(C[1][1])||isNaN(P[0])||isNaN(P[0])){for(var L=["fitbounds","projection.rotation","center","lonaxis.range","lataxis.range"],D="Invalid geo settings, relayout'ing to default view.",j={},I=0;I<L.length;I++)j[this.id+"."+L[I]]=null;return this.viewInitial=null,o.warn(D),n._promises.push(a.call("relayout",n,j)),D}if(r.fitbounds){var R=h.getBounds(E(p.range,d.range)),z=Math.min((C[1][0]-C[0][0])/(R[1][0]-R[0][0]),(C[1][1]-C[0][1])/(R[1][1]-R[0][1]));isFinite(z)?h.scale(z*A):o.warn("Something went wrong during"+this.id+"fitbounds computations.")}else h.scale(s.scale*A);var N=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(h.translate([P[0]+(N[0]-P[0]),P[1]+(N[1]-P[1])]).clipExtent(C),r._isAlbersUsa){var F=h([m.lon,m.lat]),B=h.translate();h.translate([B[0]-(F[0]-B[0]),B[1]-(F[1]-B[1])])}},w.updateBaseLayers=function(e,t){var n=this,a=n.topojson,o=n.layers,s=n.basePaths;function u(e){return"lonaxis"===e||"lataxis"===e}function c(e){return Boolean(y.lineLayers[e])}function f(e){return Boolean(y.fillLayers[e])}var p=this.hasChoropleth?y.layersForChoropleth:y.layers,d=p.filter((function(e){return c(e)||f(e)?t["show"+e]:!u(e)||t[e].showgrid})),h=n.framework.selectAll(".layer").data(d,String);h.exit().each((function(e){delete o[e],delete s[e],r.select(this).remove()})),h.enter().append("g").attr("class",(function(e){return"layer "+e})).each((function(e){var t=o[e]=r.select(this);"bg"===e?n.bgRect=t.append("rect").style("pointer-events","all"):u(e)?s[e]=t.append("path").style("fill","none"):"backplot"===e?t.append("g").classed("choroplethlayer",!0):"frontplot"===e?t.append("g").classed("scatterlayer",!0):c(e)?s[e]=t.append("path").style("fill","none").style("stroke-miterlimit",2):f(e)&&(s[e]=t.append("path").style("stroke","none"))})),h.order(),h.each((function(n){var r=s[n],o=y.layerNameToAdjective[n];"frame"===n?r.datum(y.sphereSVG):c(n)||f(n)?r.datum(x(a,a.objects[n])):u(n)&&r.datum(T(n,t,e)).call(i.stroke,t[n].gridcolor).call(l.dashLine,"",t[n].gridwidth),c(n)?r.call(i.stroke,t[o+"color"]).call(l.dashLine,"",t[o+"width"]):f(n)&&r.call(i.fill,t[o+"color"])}))},w.updateDims=function(e,t){var n=this.bounds,r=(t.framewidth||0)/2,a=n[0][0]-r,o=n[0][1]-r,s=n[1][0]-a+r,u=n[1][1]-o+r;l.setRect(this.clipRect,a,o,s,u),this.bgRect.call(l.setRect,a,o,s,u).call(i.fill,t.bgcolor),this.xaxis._offset=a,this.xaxis._length=s,this.yaxis._offset=o,this.yaxis._length=u},w.updateFx=function(e,t){var n=this,o=n.graphDiv,i=n.bgRect,l=e.dragmode,u=e.clickmode;if(!n.isStatic){var c;"select"===l?c=function(e,t){var r=e.range={};r[n.id]=[g([t.xmin,t.ymin]),g([t.xmax,t.ymax])]}:"lasso"===l&&(c=function(e,t,r){var a=e.lassoPoints={};a[n.id]=r.filtered.map(g)});var f={element:n.bgRect.node(),gd:o,plotinfo:{id:n.id,xaxis:n.xaxis,yaxis:n.yaxis,fillRangeItems:c},xaxes:[n.xaxis],yaxes:[n.yaxis],subplot:n.id,clickFn:function(e){2===e&&h(o)}};"pan"===l?(i.node().onmousedown=null,i.call(m(n,t)),i.on("dblclick.zoom",y),o._context._scrollZoom.geo||i.on("wheel.zoom",null)):"select"!==l&&"lasso"!==l||(i.on(".zoom",null),f.prepFn=function(e,t,n){d(e,t,n,f,l)},p.init(f)),i.on("mousemove",(function(){var e=n.projection.invert(r.mouse(this));if(!e||isNaN(e[0])||isNaN(e[1]))return p.unhover(o,r.event);n.xaxis.p2c=function(){return e[0]},n.yaxis.p2c=function(){return e[1]},s.hover(o,r.event,n.id)})),i.on("mouseout",(function(){o._dragging||p.unhover(o,r.event)})),i.on("click",(function(){"select"!==l&&"lasso"!==l&&(u.indexOf("select")>-1&&v(r.event,o,[n.xaxis],[n.yaxis],n.id,f),u.indexOf("event")>-1&&s.click(o,r.event))}))}function y(){var e=n.viewInitial,t={};for(var r in e)t[n.id+"."+r]=e[r];a.call("_guiRelayout",o,t),o.emit("plotly_doubleclick",null)}function g(e){return n.projection.invert([e[0]+n.xaxis._offset,e[1]+n.yaxis._offset])}},w.makeFramework=function(){var e=this,t=e.graphDiv,n=t._fullLayout,a="clip"+n._uid+e.id;e.clipDef=n._clips.append("clipPath").attr("id",a),e.clipRect=e.clipDef.append("rect"),e.framework=r.select(e.container).append("g").attr("class","geo "+e.id).call(l.setClipUrl,a,t),e.project=function(t){var n=e.projection(t);return n?[n[0]-e.xaxis._offset,n[1]-e.yaxis._offset]:[null,null]},e.xaxis={_id:"x",c2p:function(t){return e.project(t)[0]}},e.yaxis={_id:"y",c2p:function(t){return e.project(t)[1]}},e.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},c.setConvert(e.mockAxis,n)},w.saveViewInitial=function(e){var t,n=e.center||{},r=e.projection,a=r.rotation||{};this.viewInitial={fitbounds:e.fitbounds,"projection.scale":r.scale},t=e._isScoped?{"center.lon":n.lon,"center.lat":n.lat}:e._isClipped?{"projection.rotation.lon":a.lon,"projection.rotation.lat":a.lat}:{"center.lon":n.lon,"center.lat":n.lat,"projection.rotation.lon":a.lon},o.extendFlat(this.viewInitial,t)},w.render=function(){var e,t=this.projection,n=t.getPath();function r(e){var n=t(e.lonlat);return n?"translate("+n[0]+","+n[1]+")":null}function a(e){return t.isLonLatOverEdges(e.lonlat)?"none":null}for(e in this.basePaths)this.basePaths[e].attr("d",n);for(e in this.dataPaths)this.dataPaths[e].attr("d",(function(e){return n(e.geojson)}));for(e in this.dataPoints)this.dataPoints[e].attr("display",a).attr("transform",r)}},{"../../components/color":615,"../../components/dragelement":634,"../../components/drawing":637,"../../components/fx":655,"../../lib":750,"../../lib/geo_location_utils":743,"../../lib/topojson_utils":777,"../../registry":882,"../cartesian/autorange":798,"../cartesian/axes":799,"../cartesian/select":818,"../plots":862,"./constants":829,"./projections":834,"./zoom":835,d3:169,"topojson-client":551}],831:[function(e,t,n){"use strict";var r=e("../../plots/get_data").getSubplotCalcData,a=e("../../lib").counterRegex,o=e("./geo"),i="geo",l=a(i),s={};function u(e){for(var t=e._fullLayout,n=e.calcdata,a=t._subplots[i],l=0;l<a.length;l++){var s=a[l],u=r(n,i,s),c=t[s],f=c._subplot;f||(f=o({id:s,graphDiv:e,container:t._geolayer.node(),topojsonURL:e._context.topojsonURL,staticPlot:e._context.staticPlot}),t[s]._subplot=f),f.plot(u,t,e._promises)}}function c(e,t,n,r){for(var a=r._subplots[i]||[],o=0;o<a.length;o++){var l=a[o],s=r[l]._subplot;!t[l]&&s&&(s.framework.remove(),s.clipDef.remove())}}function f(e){for(var t=e._fullLayout,n=t._subplots[i],r=0;r<n.length;r++){var a=t[n[r]],o=a._subplot;o.updateFx(t,a)}}s[i]={valType:"subplotid",dflt:i,editType:"calc"},t.exports={attr:i,name:i,idRoot:i,idRegex:l,attrRegex:l,attributes:s,layoutAttributes:e("./layout_attributes"),supplyLayoutDefaults:e("./layout_defaults"),plot:u,updateFx:f,clean:c}},{"../../lib":750,"../../plots/get_data":836,"./geo":830,"./layout_attributes":832,"./layout_defaults":833}],832:[function(e,t,n){"use strict";var r=e("../../components/color/attributes"),a=e("../domain").attributes,o=e("./constants"),i=e("../../plot_api/edit_types").overrideAll,l={range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},showgrid:{valType:"boolean",dflt:!1},tick0:{valType:"number",dflt:0},dtick:{valType:"number"},gridcolor:{valType:"color",dflt:r.lightLine},gridwidth:{valType:"number",min:0,dflt:1}},s=t.exports=i({domain:a({name:"geo"},{}),fitbounds:{valType:"enumerated",values:[!1,"locations","geojson"],dflt:!1,editType:"plot"},resolution:{valType:"enumerated",values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:"enumerated",values:Object.keys(o.scopeDefaults),dflt:"world"},projection:{type:{valType:"enumerated",values:Object.keys(o.projNames)},rotation:{lon:{valType:"number"},lat:{valType:"number"},roll:{valType:"number"}},parallels:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},scale:{valType:"number",min:0,dflt:1}},center:{lon:{valType:"number"},lat:{valType:"number"}},visible:{valType:"boolean",dflt:!0},showcoastlines:{valType:"boolean"},coastlinecolor:{valType:"color",dflt:r.defaultLine},coastlinewidth:{valType:"number",min:0,dflt:1},showland:{valType:"boolean",dflt:!1},landcolor:{valType:"color",dflt:o.landColor},showocean:{valType:"boolean",dflt:!1},oceancolor:{valType:"color",dflt:o.waterColor},showlakes:{valType:"boolean",dflt:!1},lakecolor:{valType:"color",dflt:o.waterColor},showrivers:{valType:"boolean",dflt:!1},rivercolor:{valType:"color",dflt:o.waterColor},riverwidth:{valType:"number",min:0,dflt:1},showcountries:{valType:"boolean"},countrycolor:{valType:"color",dflt:r.defaultLine},countrywidth:{valType:"number",min:0,dflt:1},showsubunits:{valType:"boolean"},subunitcolor:{valType:"color",dflt:r.defaultLine},subunitwidth:{valType:"number",min:0,dflt:1},showframe:{valType:"boolean"},framecolor:{valType:"color",dflt:r.defaultLine},framewidth:{valType:"number",min:0,dflt:1},bgcolor:{valType:"color",dflt:r.background},lonaxis:l,lataxis:l},"plot","from-root");s.uirevision={valType:"any",editType:"none"}},{"../../components/color/attributes":614,"../../plot_api/edit_types":781,"../domain":826,"./constants":829}],833:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../subplot_defaults"),o=e("../get_data").getSubplotData,i=e("./constants"),l=e("./layout_attributes"),s=i.axesNames;function u(e,t,n,a){var l=o(a.fullData,"geo",a.id),u=l.map((function(e){return e._expandedIndex})),c=n("resolution"),f=n("scope"),p=i.scopeDefaults[f],d=n("projection.type",p.projType),h=t._isAlbersUsa="albers usa"===d;h&&(f=t.scope="usa");var v=t._isScoped="world"!==f,m=t._isConic=-1!==d.indexOf("conic"),y=t._isClipped=!!i.lonaxisSpan[d];if(!1===e.visible){var g=r.extendDeep({},t._template);g.showcoastlines=!1,g.showcountries=!1,g.showframe=!1,g.showlakes=!1,g.showland=!1,g.showocean=!1,g.showrivers=!1,g.showsubunits=!1,g.lonaxis&&(g.lonaxis.showgrid=!1),g.lataxis&&(g.lataxis.showgrid=!1),t._template=g}for(var b,x=n("visible"),_=0;_<s.length;_++){var w,k=s[_],T=[30,10][_];if(v)w=p[k+"Range"];else{var E=i[k+"Span"],O=(E[d]||E["*"])/2,M=n("projection.rotation."+k.substr(0,3),p.projRotate[_]);w=[M-O,M+O]}var S=n(k+".range",w);n(k+".tick0"),n(k+".dtick",T),b=n(k+".showgrid",!!x&&void 0),b&&(n(k+".gridcolor"),n(k+".gridwidth")),t[k]._ax={type:"linear",_id:k.slice(0,3),_traceIndices:u,setScale:r.identity,c2l:r.identity,r2l:r.identity,autorange:!0,range:S.slice(),_m:1,_input:{}}}var C=t.lonaxis.range,A=t.lataxis.range,P=C[0],L=C[1];P>0&&L<0&&(L+=360);var D,j,I,R=(P+L)/2;if(!h){var z=v?p.projRotate:[R,0,0];D=n("projection.rotation.lon",z[0]),n("projection.rotation.lat",z[1]),n("projection.rotation.roll",z[2]),b=n("showcoastlines",!v&&x),b&&(n("coastlinecolor"),n("coastlinewidth")),b=n("showocean",!!x&&void 0),b&&n("oceancolor")}if(h?(j=-96.6,I=38.7):(j=v?R:D,I=(A[0]+A[1])/2),n("center.lon",j),n("center.lat",I),m){var N=p.projParallels||[0,60];n("projection.parallels",N)}n("projection.scale"),b=n("showland",!!x&&void 0),b&&n("landcolor"),b=n("showlakes",!!x&&void 0),b&&n("lakecolor"),b=n("showrivers",!!x&&void 0),b&&(n("rivercolor"),n("riverwidth")),b=n("showcountries",v&&"usa"!==f&&x),b&&(n("countrycolor"),n("countrywidth")),("usa"===f||"north america"===f&&50===c)&&(n("showsubunits",x),n("subunitcolor"),n("subunitwidth")),v||(b=n("showframe",x),b&&(n("framecolor"),n("framewidth"))),n("bgcolor");var F=n("fitbounds");F&&(delete t.projection.scale,v?(delete t.center.lon,delete t.center.lat):y?(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon,delete t.projection.rotation.lat,delete t.lonaxis.range,delete t.lataxis.range):(delete t.center.lon,delete t.center.lat,delete t.projection.rotation.lon))}t.exports=function(e,t,n){a(e,t,n,{type:"geo",attributes:l,handleDefaults:u,fullData:n,partition:"y"})}},{"../../lib":750,"../get_data":836,"../subplot_defaults":876,"./constants":829,"./layout_attributes":832}],834:[function(e,t,n){"use strict";function r(e){function t(e,t){return{type:"Feature",id:e.id,properties:e.properties,geometry:n(e.geometry,t)}}function n(t,r){if(!t)return null;if("GeometryCollection"===t.type)return{type:"GeometryCollection",geometries:object.geometries.map((function(e){return n(e,r)}))};if(!u.hasOwnProperty(t.type))return null;var a=u[t.type];return e.geo.stream(t,r(a)),a.result()}e.geo.project=function(e,t){var a=t.stream;if(!a)throw new Error("not yet supported");return(e&&r.hasOwnProperty(e.type)?r[e.type]:n)(e,a)};var r={Feature:t,FeatureCollection:function(e,n){return{type:"FeatureCollection",features:e.features.map((function(e){return t(e,n)}))}}},a=[],o=[],i={point:function(e,t){a.push([e,t])},result:function(){var e=a.length?a.length<2?{type:"Point",coordinates:a[0]}:{type:"MultiPoint",coordinates:a}:null;return a=[],e}},l={lineStart:c,point:function(e,t){a.push([e,t])},lineEnd:function(){a.length&&(o.push(a),a=[])},result:function(){var e=o.length?o.length<2?{type:"LineString",coordinates:o[0]}:{type:"MultiLineString",coordinates:o}:null;return o=[],e}},s={polygonStart:c,lineStart:c,point:function(e,t){a.push([e,t])},lineEnd:function(){var e=a.length;if(e){do{a.push(a[0].slice())}while(++e<4);o.push(a),a=[]}},polygonEnd:c,result:function(){if(!o.length)return null;var e=[],t=[];return o.forEach((function(n){f(n)?e.push([n]):t.push(n)})),t.forEach((function(t){var n=t[0];e.some((function(e){if(p(e[0],n))return e.push(t),!0}))||e.push([t])})),o=[],e.length?e.length>1?{type:"MultiPolygon",coordinates:e}:{type:"Polygon",coordinates:e[0]}:null}},u={Point:i,MultiPoint:i,LineString:l,MultiLineString:l,Polygon:s,MultiPolygon:s,Sphere:s};function c(){}function f(e){if((t=e.length)<4)return!1;var t,n=0,r=e[t-1][1]*e[0][0]-e[t-1][0]*e[0][1];while(++n<t)r+=e[n-1][1]*e[n][0]-e[n-1][0]*e[n][1];return r<=0}function p(e,t){for(var n=t[0],r=t[1],a=!1,o=0,i=e.length,l=i-1;o<i;l=o++){var s=e[o],u=s[0],c=s[1],f=e[l],p=f[0],d=f[1];c>r^d>r&&n<(p-u)*(r-c)/(d-c)+u&&(a=!a)}return a}var d=1e-6,h=d*d,v=Math.PI,m=v/2,y=(Math.sqrt(v),v/180),g=180/v;function b(e){return e?e/Math.sin(e):1}function x(e){return e>1?m:e<-1?-m:Math.asin(e)}function _(e){return e>1?0:e<-1?v:Math.acos(e)}var w=e.geo.projection,k=e.geo.projectionMutator;function T(e,t){var n=(2+m)*Math.sin(t);t/=2;for(var r=0,a=1/0;r<10&&Math.abs(a)>d;r++){var o=Math.cos(t);t-=a=(t+Math.sin(t)*(o+2)-n)/(2*o*(1+o))}return[2/Math.sqrt(v*(4+v))*e*(1+Math.cos(t)),2*Math.sqrt(v/(4+v))*Math.sin(t)]}e.geo.interrupt=function(t){var n,r=[[[[-v,0],[0,m],[v,0]]],[[[-v,0],[0,-m],[v,0]]]];function a(e,n){for(var a=n<0?-1:1,o=r[+(n<0)],i=0,l=o.length-1;i<l&&e>o[i][2][0];++i);var s=t(e-o[i][1][0],n);return s[0]+=t(o[i][1][0],a*n>a*o[i][0][1]?o[i][0][1]:n)[0],s}function o(){n=r.map((function(e){return e.map((function(e){var n,r=t(e[0][0],e[0][1])[0],a=t(e[2][0],e[2][1])[0],o=t(e[1][0],e[0][1])[1],i=t(e[1][0],e[1][1])[1];return o>i&&(n=o,o=i,i=n),[[r,o],[a,i]]}))}))}t.invert&&(a.invert=function(e,o){for(var i=n[+(o<0)],l=r[+(o<0)],s=0,u=i.length;s<u;++s){var f=i[s];if(f[0][0]<=e&&e<f[1][0]&&f[0][1]<=o&&o<f[1][1]){var p=t.invert(e-t(l[s][1][0],0)[0],o);return p[0]+=l[s][1][0],c(a(p[0],p[1]),[e,o])?p:null}}});var i=e.geo.projection(a),l=i.stream;function s(){for(var t=1e-6,n=[],a=0,o=r[0].length;a<o;++a){var i=r[0][a],l=180*i[0][0]/v,s=180*i[0][1]/v,c=180*i[1][1]/v,f=180*i[2][0]/v,p=180*i[2][1]/v;n.push(u([[l+t,s+t],[l+t,c-t],[f-t,c-t],[f-t,p+t]],30))}for(a=r[1].length-1;a>=0;--a){i=r[1][a],l=180*i[0][0]/v,s=180*i[0][1]/v,c=180*i[1][1]/v,f=180*i[2][0]/v,p=180*i[2][1]/v;n.push(u([[f-t,p-t],[f-t,c+t],[l+t,c+t],[l+t,s-t]],30))}return{type:"Polygon",coordinates:[e.merge(n)]}}function u(e,t){var n,r,a,o=-1,i=e.length,l=e[0],s=[];while(++o<i){n=e[o],r=(n[0]-l[0])/t,a=(n[1]-l[1])/t;for(var u=0;u<t;++u)s.push([l[0]+u*r,l[1]+u*a]);l=n}return s.push(n),s}function c(e,t){return Math.abs(e[0]-t[0])<d&&Math.abs(e[1]-t[1])<d}return i.stream=function(t){var n=i.rotate(),r=l(t),a=(i.rotate([0,0]),l(t));return i.rotate(n),r.sphere=function(){e.geo.stream(s(),a)},r},i.lobes=function(e){return arguments.length?(r=e.map((function(e){return e.map((function(e){return[[e[0][0]*v/180,e[0][1]*v/180],[e[1][0]*v/180,e[1][1]*v/180],[e[2][0]*v/180,e[2][1]*v/180]]}))})),o(),i):r.map((function(e){return e.map((function(e){return[[180*e[0][0]/v,180*e[0][1]/v],[180*e[1][0]/v,180*e[1][1]/v],[180*e[2][0]/v,180*e[2][1]/v]]}))}))},i},T.invert=function(e,t){var n=.5*t*Math.sqrt((4+v)/v),r=x(n),a=Math.cos(r);return[e/(2/Math.sqrt(v*(4+v))*(1+a)),x((r+n*(a+2))/(2+m))]},(e.geo.eckert4=function(){return w(T)}).raw=T;var E=e.geo.azimuthalEqualArea.raw;function O(e,t){if(arguments.length<2&&(t=e),1===t)return E;if(t===1/0)return S;function n(n,r){var a=E(n/t,r);return a[0]*=e,a}return n.invert=function(n,r){var a=E.invert(n/e,r);return a[0]*=t,a},n}function M(){var e=2,t=k(O),n=t(e);return n.coefficient=function(n){return arguments.length?t(e=+n):e},n}function S(e,t){return[e*Math.cos(t)/Math.cos(t/=2),2*Math.sin(t)]}function C(e,t){return[3*e/(2*v)*Math.sqrt(v*v/3-t*t),t]}function A(e,t){return[e,1.25*Math.log(Math.tan(v/4+.4*t))]}function P(e){return function(t){var n,r=e*Math.sin(t),a=30;do{t-=n=(t+Math.sin(t)-r)/(1+Math.cos(t))}while(Math.abs(n)>d&&--a>0);return t/2}}function L(e,t,n){var r=P(n);function a(n,a){return[e*n*Math.cos(a=r(a)),t*Math.sin(a)]}return a.invert=function(r,a){var o=x(a/t);return[r/(e*Math.cos(o)),x((2*o+Math.sin(2*o))/n)]},a}S.invert=function(e,t){var n=2*x(t/2);return[e*Math.cos(n/2)/Math.cos(n),n]},(e.geo.hammer=M).raw=O,C.invert=function(e,t){return[2/3*v*e/Math.sqrt(v*v/3-t*t),t]},(e.geo.kavrayskiy7=function(){return w(C)}).raw=C,A.invert=function(e,t){return[e,2.5*Math.atan(Math.exp(.8*t))-.625*v]},(e.geo.miller=function(){return w(A)}).raw=A;P(v);var D=L(Math.SQRT2/m,Math.SQRT2,v);function j(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}(e.geo.mollweide=function(){return w(D)}).raw=D,j.invert=function(e,t){var n,r=t,a=25;do{var o=r*r,i=o*o;r-=n=(r*(1.007226+o*(.015085+i*(.028874*o-.044475-.005916*i)))-t)/(1.007226+o*(.045255+i*(.259866*o-.311325-.005916*11*i)))}while(Math.abs(n)>d&&--a>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]},(e.geo.naturalEarth=function(){return w(j)}).raw=j;var I=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function R(e,t){var n,r=Math.min(18,36*Math.abs(t)/v),a=Math.floor(r),o=r-a,i=(n=I[a])[0],l=n[1],s=(n=I[++a])[0],u=n[1],c=(n=I[Math.min(19,++a)])[0],f=n[1];return[e*(s+o*(c-i)/2+o*o*(c-2*s+i)/2),(t>0?m:-m)*(u+o*(f-l)/2+o*o*(f-2*u+l)/2)]}function z(e,t){return[e*Math.cos(t),t]}function N(e,t){var n=Math.cos(t),r=b(_(n*Math.cos(e/=2)));return[2*n*Math.sin(e)*r,Math.sin(t)*r]}function F(e,t){var n=N(e,t);return[(n[0]+e/m)/2,(n[1]+t)/2]}I.forEach((function(e){e[1]*=1.0144})),R.invert=function(e,t){var n=t/m,r=90*n,a=Math.min(18,Math.abs(r/5)),o=Math.max(0,Math.floor(a));do{var i=I[o][1],l=I[o+1][1],s=I[Math.min(19,o+2)][1],u=s-i,c=s-2*l+i,f=2*(Math.abs(n)-l)/u,p=c/u,d=f*(1-p*f*(1-2*p*f));if(d>=0||1===o){r=(t>=0?5:-5)*(d+a);var v,b=50;do{a=Math.min(18,Math.abs(r)/5),o=Math.floor(a),d=a-o,i=I[o][1],l=I[o+1][1],s=I[Math.min(19,o+2)][1],r-=(v=(t>=0?m:-m)*(l+d*(s-i)/2+d*d*(s-2*l+i)/2)-t)*g}while(Math.abs(v)>h&&--b>0);break}}while(--o>=0);var x=I[o][0],_=I[o+1][0],w=I[Math.min(19,o+2)][0];return[e/(_+d*(w-x)/2+d*d*(w-2*_+x)/2),r*y]},(e.geo.robinson=function(){return w(R)}).raw=R,z.invert=function(e,t){return[e/Math.cos(t),t]},(e.geo.sinusoidal=function(){return w(z)}).raw=z,N.invert=function(e,t){if(!(e*e+4*t*t>v*v+d)){var n=e,r=t,a=25;do{var o,i=Math.sin(n),l=Math.sin(n/2),s=Math.cos(n/2),u=Math.sin(r),c=Math.cos(r),f=Math.sin(2*r),p=u*u,h=c*c,m=l*l,y=1-h*s*s,g=y?_(c*s)*Math.sqrt(o=1/y):o=0,b=2*g*c*l-e,x=g*u-t,w=o*(h*m+g*c*s*p),k=o*(.5*i*f-2*g*u*l),T=.25*o*(f*l-g*u*h*i),E=o*(p*s+g*m*c),O=k*T-E*w;if(!O)break;var M=(x*k-b*E)/O,S=(b*T-x*w)/O;n-=M,r-=S}while((Math.abs(M)>d||Math.abs(S)>d)&&--a>0);return[n,r]}},(e.geo.aitoff=function(){return w(N)}).raw=N,F.invert=function(e,t){var n=e,r=t,a=25;do{var o,i=Math.cos(r),l=Math.sin(r),s=Math.sin(2*r),u=l*l,c=i*i,f=Math.sin(n),p=Math.cos(n/2),h=Math.sin(n/2),v=h*h,y=1-c*p*p,g=y?_(i*p)*Math.sqrt(o=1/y):o=0,b=.5*(2*g*i*h+n/m)-e,x=.5*(g*l+r)-t,w=.5*o*(c*v+g*i*p*u)+.5/m,k=o*(f*s/4-g*l*h),T=.125*o*(s*h-g*l*c*f),E=.5*o*(u*p+g*v*i)+.5,O=k*T-E*w,M=(x*k-b*E)/O,S=(b*T-x*w)/O;n-=M,r-=S}while((Math.abs(M)>d||Math.abs(S)>d)&&--a>0);return[n,r]},(e.geo.winkel3=function(){return w(F)}).raw=F}t.exports=r},{}],835:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../../registry"),i=Math.PI/180,l=180/Math.PI,s={cursor:"pointer"},u={cursor:"auto"};function c(e,t){var n,r=e.projection;return n=t._isScoped?d:t._isClipped?v:h,n(e,r)}function f(e,t){return r.behavior.zoom().translate(t.translate()).scale(t.scale())}function p(e,t,n){var r=e.id,i=e.graphDiv,l=i.layout,s=l[r],u=i._fullLayout,c=u[r],f={},p={};function d(e,t){f[r+"."+e]=a.nestedProperty(s,e).get(),o.call("_storeDirectGUIEdit",l,u._preGUI,f);var n=a.nestedProperty(c,e);n.get()!==t&&(n.set(t),a.nestedProperty(s,e).set(t),p[r+"."+e]=t)}n(d),d("projection.scale",t.scale()/e.fitScale),d("fitbounds",!1),i.emit("plotly_relayout",p)}function d(e,t){var n=f(e,t);function a(){r.select(this).style(s)}function o(){t.scale(r.event.scale).translate(r.event.translate),e.render();var n=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":n[0],"geo.center.lat":n[1]})}function i(n){var r=t.invert(e.midPt);n("center.lon",r[0]),n("center.lat",r[1])}function l(){r.select(this).style(u),p(e,t,i)}return n.on("zoomstart",a).on("zoom",o).on("zoomend",l),n}function h(e,t){var n,a,o,i,l,c,d,h,v,m=f(e,t),y=2;function g(e){return t.invert(e)}function b(e){var n=g(e);if(!n)return!0;var r=t(n);return Math.abs(r[0]-e[0])>y||Math.abs(r[1]-e[1])>y}function x(){r.select(this).style(s),n=r.mouse(this),a=t.rotate(),o=t.translate(),i=a,l=g(n)}function _(){if(c=r.mouse(this),b(n))return m.scale(t.scale()),void m.translate(t.translate());t.scale(r.event.scale),t.translate([o[0],r.event.translate[1]]),l?g(c)&&(h=g(c),d=[i[0]+(h[0]-l[0]),a[1],a[2]],t.rotate(d),i=d):(n=c,l=g(n)),v=!0,e.render();var s=t.rotate(),u=t.invert(e.midPt);e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.center.lon":u[0],"geo.center.lat":u[1],"geo.projection.rotation.lon":-s[0]})}function w(){r.select(this).style(u),v&&p(e,t,k)}function k(n){var r=t.rotate(),a=t.invert(e.midPt);n("projection.rotation.lon",-r[0]),n("center.lon",a[0]),n("center.lat",a[1])}return m.on("zoomstart",x).on("zoom",_).on("zoomend",w),m}function v(e,t){var n,a={r:t.rotate(),k:t.scale()},o=f(e,t),i=S(o,"zoomstart","zoom","zoomend"),l=0,c=o.on;function d(e){l++||e({type:"zoomstart"})}function h(e){e({type:"zoom"})}function v(e){--l||e({type:"zoomend"})}function _(e){var n=t.rotate();e("projection.rotation.lon",-n[0]),e("projection.rotation.lat",-n[1])}return o.on("zoomstart",(function(){r.select(this).style(s);var e=r.mouse(this),l=t.rotate(),u=l,f=t.translate(),p=y(l);n=m(t,e),c.call(o,"zoom",(function(){var o=r.mouse(this);if(t.scale(a.k=r.event.scale),n){if(m(t,o)){t.rotate(l).translate(f);var s=m(t,o),c=b(n,s),d=T(g(p,c)),v=a.r=x(d,n,u);isFinite(v[0])&&isFinite(v[1])&&isFinite(v[2])||(v=u),t.rotate(v),u=v}}else e=o,n=m(t,e);h(i.of(this,arguments))})),d(i.of(this,arguments))})).on("zoomend",(function(){r.select(this).style(u),c.call(o,"zoom",null),v(i.of(this,arguments)),p(e,t,_)})).on("zoom.redraw",(function(){e.render();var n=t.rotate();e.graphDiv.emit("plotly_relayouting",{"geo.projection.scale":t.scale()/e.fitScale,"geo.projection.rotation.lon":-n[0],"geo.projection.rotation.lat":-n[1]})})),r.rebind(o,i,"on")}function m(e,t){var n=e.invert(t);return n&&isFinite(n[0])&&isFinite(n[1])&&E(n)}function y(e){var t=.5*e[0]*i,n=.5*e[1]*i,r=.5*e[2]*i,a=Math.sin(t),o=Math.cos(t),l=Math.sin(n),s=Math.cos(n),u=Math.sin(r),c=Math.cos(r);return[o*s*c+a*l*u,a*s*c-o*l*u,o*l*c+a*s*u,o*s*u-a*l*c]}function g(e,t){var n=e[0],r=e[1],a=e[2],o=e[3],i=t[0],l=t[1],s=t[2],u=t[3];return[n*i-r*l-a*s-o*u,n*l+r*i+a*u-o*s,n*s-r*u+a*i+o*l,n*u+r*s-a*l+o*i]}function b(e,t){if(e&&t){var n=M(e,t),r=Math.sqrt(O(n,n)),a=.5*Math.acos(Math.max(-1,Math.min(1,O(e,t)))),o=Math.sin(a)/r;return r&&[Math.cos(a),n[2]*o,-n[1]*o,n[0]*o]}}function x(e,t,n){var r=k(t,2,e[0]);r=k(r,1,e[1]),r=k(r,0,e[2]-n[2]);var a,o,i=t[0],s=t[1],u=t[2],c=r[0],f=r[1],p=r[2],d=Math.atan2(s,i)*l,h=Math.sqrt(i*i+s*s);Math.abs(f)>h?(o=(f>0?90:-90)-d,a=0):(o=Math.asin(f/h)*l-d,a=Math.sqrt(h*h-f*f));var v=180-o-2*d,m=(Math.atan2(p,c)-Math.atan2(u,a))*l,y=(Math.atan2(p,c)-Math.atan2(u,-a))*l,g=_(n[0],n[1],o,m),b=_(n[0],n[1],v,y);return g<=b?[o,m,n[2]]:[v,y,n[2]]}function _(e,t,n,r){var a=w(n-e),o=w(r-t);return Math.sqrt(a*a+o*o)}function w(e){return(e%360+540)%360-180}function k(e,t,n){var r=n*i,a=e.slice(),o=0===t?1:0,l=2===t?1:2,s=Math.cos(r),u=Math.sin(r);return a[o]=e[o]*s-e[l]*u,a[l]=e[l]*s+e[o]*u,a}function T(e){return[Math.atan2(2*(e[0]*e[1]+e[2]*e[3]),1-2*(e[1]*e[1]+e[2]*e[2]))*l,Math.asin(Math.max(-1,Math.min(1,2*(e[0]*e[2]-e[3]*e[1]))))*l,Math.atan2(2*(e[0]*e[3]+e[1]*e[2]),1-2*(e[2]*e[2]+e[3]*e[3]))*l]}function E(e){var t=e[0]*i,n=e[1]*i,r=Math.cos(n);return[r*Math.cos(t),r*Math.sin(t),Math.sin(n)]}function O(e,t){for(var n=0,r=0,a=e.length;r<a;++r)n+=e[r]*t[r];return n}function M(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function S(e){var t=0,n=arguments.length,a=[];while(++t<n)a.push(arguments[t]);var o=r.dispatch.apply(null,a);return o.of=function(t,n){return function(a){var i;try{i=a.sourceEvent=r.event,a.target=e,r.event=a,o[a.type].apply(t,n)}finally{r.event=i}}},o}t.exports=c},{"../../lib":750,"../../registry":882,d3:169}],836:[function(e,t,n){"use strict";var r=e("../registry"),a=e("./cartesian/constants").SUBPLOT_PATTERN;n.getSubplotCalcData=function(e,t,n){var a=r.subplotsRegistry[t];if(!a)return[];for(var o=a.attr,i=[],l=0;l<e.length;l++){var s=e[l],u=s[0].trace;u[o]===n&&i.push(s)}return i},n.getModuleCalcData=function(e,t){var n,a=[],o=[];if(n="string"===typeof t?r.getModule(t).plot:"function"===typeof t?t:t.plot,!n)return[a,e];for(var i=0;i<e.length;i++){var l=e[i],s=l[0].trace;!0===s.visible&&0!==s._length&&(s._module.plot===n?a.push(l):o.push(l))}return[a,o]},n.getSubplotData=function(e,t,n){if(!r.subplotsRegistry[t])return[];var o,i,l,s=r.subplotsRegistry[t].attr,u=[];if("gl2d"===t){var c=n.match(a);i="x"+c[1],l="y"+c[2]}for(var f=0;f<e.length;f++)o=e[f],"gl2d"===t&&r.traceIs(o,"gl2d")?o[s[0]]===i&&o[s[1]]===l&&u.push(o):o[s]===n&&u.push(o);return u}},{"../registry":882,"./cartesian/constants":805}],837:[function(e,t,n){"use strict";var r=e("mouse-change"),a=e("mouse-wheel"),o=e("mouse-event-offset"),i=e("../cartesian/constants"),l=e("has-passive-events");function s(e,t){this.element=e,this.plot=t,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}function u(e){var t=e.mouseContainer,n=e.glplot,u=new s(t,n);function c(){e.xaxis.autorange=!1,e.yaxis.autorange=!1}function f(){for(var t=e.graphDiv._fullLayout._axisConstraintGroups,n=e.xaxis._id,r=e.yaxis._id,a=0;a<t.length;a++)if(-1!==t[a][n]){if(-1!==t[a][r])return!0;break}return!1}function p(t,r,a){var o,l,s=e.calcDataBox(),p=n.viewBox,d=u.lastPos[0],h=u.lastPos[1],v=i.MINDRAG*n.pixelRatio,m=i.MINZOOM*n.pixelRatio;function y(t,n,r){var a=Math.min(n,r),o=Math.max(n,r);a!==o?(s[t]=a,s[t+2]=o,u.dataBox=s,e.setRanges(s)):(e.selectBox.selectBox=[0,0,1,1],e.glplot.setDirty())}switch(r*=n.pixelRatio,a*=n.pixelRatio,a=p[3]-p[1]-a,e.fullLayout.dragmode){case"zoom":if(t){var g=r/(p[2]-p[0])*(s[2]-s[0])+s[0],b=a/(p[3]-p[1])*(s[3]-s[1])+s[1];u.boxInited||(u.boxStart[0]=g,u.boxStart[1]=b,u.dragStart[0]=r,u.dragStart[1]=a),u.boxEnd[0]=g,u.boxEnd[1]=b,u.boxInited=!0,u.boxEnabled||u.boxStart[0]===u.boxEnd[0]&&u.boxStart[1]===u.boxEnd[1]||(u.boxEnabled=!0);var x=Math.abs(u.dragStart[0]-r)<m,_=Math.abs(u.dragStart[1]-a)<m;if(!f()||x&&_)x&&(u.boxEnd[0]=u.boxStart[0]),_&&(u.boxEnd[1]=u.boxStart[1]);else{o=u.boxEnd[0]-u.boxStart[0],l=u.boxEnd[1]-u.boxStart[1];var w=(s[3]-s[1])/(s[2]-s[0]);Math.abs(o*w)>Math.abs(l)?(u.boxEnd[1]=u.boxStart[1]+Math.abs(o)*w*(l>=0?1:-1),u.boxEnd[1]<s[1]?(u.boxEnd[1]=s[1],u.boxEnd[0]=u.boxStart[0]+(s[1]-u.boxStart[1])/Math.abs(w)):u.boxEnd[1]>s[3]&&(u.boxEnd[1]=s[3],u.boxEnd[0]=u.boxStart[0]+(s[3]-u.boxStart[1])/Math.abs(w))):(u.boxEnd[0]=u.boxStart[0]+Math.abs(l)/w*(o>=0?1:-1),u.boxEnd[0]<s[0]?(u.boxEnd[0]=s[0],u.boxEnd[1]=u.boxStart[1]+(s[0]-u.boxStart[0])*Math.abs(w)):u.boxEnd[0]>s[2]&&(u.boxEnd[0]=s[2],u.boxEnd[1]=u.boxStart[1]+(s[2]-u.boxStart[0])*Math.abs(w)))}}else u.boxEnabled?(o=u.boxStart[0]!==u.boxEnd[0],l=u.boxStart[1]!==u.boxEnd[1],o||l?(o&&(y(0,u.boxStart[0],u.boxEnd[0]),e.xaxis.autorange=!1),l&&(y(1,u.boxStart[1],u.boxEnd[1]),e.yaxis.autorange=!1),e.relayoutCallback()):e.glplot.setDirty(),u.boxEnabled=!1,u.boxInited=!1):u.boxInited&&(u.boxInited=!1);break;case"pan":u.boxEnabled=!1,u.boxInited=!1,t?(u.panning||(u.dragStart[0]=r,u.dragStart[1]=a),Math.abs(u.dragStart[0]-r)<v&&(r=u.dragStart[0]),Math.abs(u.dragStart[1]-a)<v&&(a=u.dragStart[1]),o=(d-r)*(s[2]-s[0])/(n.viewBox[2]-n.viewBox[0]),l=(h-a)*(s[3]-s[1])/(n.viewBox[3]-n.viewBox[1]),s[0]+=o,s[2]+=o,s[1]+=l,s[3]+=l,e.setRanges(s),u.panning=!0,u.lastInputTime=Date.now(),c(),e.cameraChanged(),e.handleAnnotations()):u.panning&&(u.panning=!1,e.relayoutCallback());break}u.lastPos[0]=r,u.lastPos[1]=a}return u.mouseListener=r(t,p),t.addEventListener("touchstart",(function(e){var n=o(e.changedTouches[0],t);p(0,n[0],n[1]),p(1,n[0],n[1]),e.preventDefault()}),!!l&&{passive:!1}),t.addEventListener("touchmove",(function(e){e.preventDefault();var n=o(e.changedTouches[0],t);p(1,n[0],n[1]),e.preventDefault()}),!!l&&{passive:!1}),t.addEventListener("touchend",(function(e){p(0,u.lastPos[0],u.lastPos[1]),e.preventDefault()}),!!l&&{passive:!1}),u.wheelListener=a(t,(function(t,r){if(!e.scrollZoom)return!1;var a=e.calcDataBox(),o=n.viewBox,i=u.lastPos[0],l=u.lastPos[1],s=Math.exp(5*r/(o[3]-o[1])),f=i/(o[2]-o[0])*(a[2]-a[0])+a[0],p=l/(o[3]-o[1])*(a[3]-a[1])+a[1];return a[0]=(a[0]-f)*s+f,a[2]=(a[2]-f)*s+f,a[1]=(a[1]-p)*s+p,a[3]=(a[3]-p)*s+p,e.setRanges(a),u.lastInputTime=Date.now(),c(),e.cameraChanged(),e.handleAnnotations(),e.relayoutCallback(),!0}),!0),u}t.exports=u},{"../cartesian/constants":805,"has-passive-events":415,"mouse-change":457,"mouse-event-offset":458,"mouse-wheel":460}],838:[function(e,t,n){"use strict";var r=e("../cartesian/axes"),a=e("../../lib/str2rgbarray");function o(e){this.scene=e,this.gl=e.gl,this.pixelRatio=e.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=["x","y"],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=["sans-serif","sans-serif"],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title="",this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont="sans-serif",this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var i=o.prototype,l=["xaxis","yaxis"];function s(e){return new o(e)}i.merge=function(e){var t,n,r,o,i,s,u,c,f,p,d;for(this.titleEnable=!1,this.backgroundColor=a(e.plot_bgcolor),p=0;p<2;++p){t=l[p];var h=t.charAt(0);for(n=e[this.scene[t]._name],r=n.title.text===this.scene.fullLayout._dfltTitle[h]?"":n.title.text,d=0;d<=2;d+=2)this.labelEnable[p+d]=!1,this.labels[p+d]=r,this.labelColor[p+d]=a(n.title.font.color),this.labelFont[p+d]=n.title.font.family,this.labelSize[p+d]=n.title.font.size,this.labelPad[p+d]=this.getLabelPad(t,n),this.tickEnable[p+d]=!1,this.tickColor[p+d]=a((n.tickfont||{}).color),this.tickAngle[p+d]="auto"===n.tickangle?0:Math.PI*-n.tickangle/180,this.tickPad[p+d]=this.getTickPad(n),this.tickMarkLength[p+d]=0,this.tickMarkWidth[p+d]=n.tickwidth||0,this.tickMarkColor[p+d]=a(n.tickcolor),this.borderLineEnable[p+d]=!1,this.borderLineColor[p+d]=a(n.linecolor),this.borderLineWidth[p+d]=n.linewidth||0;u=this.hasSharedAxis(n),i=this.hasAxisInDfltPos(t,n)&&!u,s=this.hasAxisInAltrPos(t,n)&&!u,o=n.mirror||!1,c=u?-1!==String(o).indexOf("all"):!!o,f=u?"allticks"===o:-1!==String(o).indexOf("ticks"),i?this.labelEnable[p]=!0:s&&(this.labelEnable[p+2]=!0),i?this.tickEnable[p]=n.showticklabels:s&&(this.tickEnable[p+2]=n.showticklabels),(i||c)&&(this.borderLineEnable[p]=n.showline),(s||c)&&(this.borderLineEnable[p+2]=n.showline),(i||f)&&(this.tickMarkLength[p]=this.getTickMarkLength(n)),(s||f)&&(this.tickMarkLength[p+2]=this.getTickMarkLength(n)),this.gridLineEnable[p]=n.showgrid,this.gridLineColor[p]=a(n.gridcolor),this.gridLineWidth[p]=n.gridwidth,this.zeroLineEnable[p]=n.zeroline,this.zeroLineColor[p]=a(n.zerolinecolor),this.zeroLineWidth[p]=n.zerolinewidth}},i.hasSharedAxis=function(e){var t=this.scene,n=t.fullLayout._subplots.gl2d,a=r.findSubplotsWithAxis(n,e);return 0!==a.indexOf(t.id)},i.hasAxisInDfltPos=function(e,t){var n=t.side;return"xaxis"===e?"bottom"===n:"yaxis"===e?"left"===n:void 0},i.hasAxisInAltrPos=function(e,t){var n=t.side;return"xaxis"===e?"top"===n:"yaxis"===e?"right"===n:void 0},i.getLabelPad=function(e,t){var n=1.5,r=t.title.font.size,a=t.showticklabels;return"xaxis"===e?"top"===t.side?r*(n+(a?1:0))-10:r*(n+(a?.5:0))-10:"yaxis"===e?"right"===t.side?10+r*(n+(a?1:.5)):10+r*(n+(a?.5:0)):void 0},i.getTickPad=function(e){return"outside"===e.ticks?10+e.ticklen:15},i.getTickMarkLength=function(e){if(!e.ticks)return 0;var t=e.ticklen;return"inside"===e.ticks?-t:t},t.exports=s},{"../../lib/str2rgbarray":773,"../cartesian/axes":799}],839:[function(e,t,n){"use strict";var r=e("../../plot_api/edit_types").overrideAll,a=e("./scene2d"),o=e("../layout_attributes"),i=e("../../constants/xmlns_namespaces"),l=e("../cartesian/constants"),s=e("../cartesian"),u=e("../../components/fx/layout_attributes"),c=e("../get_data").getSubplotData;n.name="gl2d",n.attr=["xaxis","yaxis"],n.idRoot=["x","y"],n.idRegex=l.idRegex,n.attrRegex=l.attrRegex,n.attributes=e("../cartesian/attributes"),n.supplyLayoutDefaults=function(e,t,n){t._has("cartesian")||s.supplyLayoutDefaults(e,t,n)},n.layoutAttrOverrides=r(s.layoutAttributes,"plot","from-root"),n.baseLayoutAttrOverrides=r({plot_bgcolor:o.plot_bgcolor,hoverlabel:u.hoverlabel},"plot","nested"),n.plot=function(e){for(var t=e._fullLayout,n=e._fullData,r=t._subplots.gl2d,o=0;o<r.length;o++){var i=r[o],l=t._plots[i],s=c(n,"gl2d",i),u=l._scene2d;void 0===u&&(u=new a({id:i,graphDiv:e,container:e.querySelector(".gl-container"),staticPlot:e._context.staticPlot,plotGlPixelRatio:e._context.plotGlPixelRatio},t),l._scene2d=u),u.plot(s,e.calcdata,t,e.layout)}},n.clean=function(e,t,n,r){for(var a=r._subplots.gl2d||[],o=0;o<a.length;o++){var i=a[o],l=r._plots[i];if(l._scene2d){var u=c(e,"gl2d",i);0===u.length&&(l._scene2d.destroy(),delete r._plots[i])}}s.clean.apply(this,arguments)},n.drawFramework=function(e){e._context.staticPlot||s.drawFramework(e)},n.toSVG=function(e){for(var t=e._fullLayout,n=t._subplots.gl2d,r=0;r<n.length;r++){var a=t._plots[n[r]],o=a._scene2d,l=o.toImage("png"),s=t._glimages.append("svg:image");s.attr({xmlns:i.svg,"xlink:href":l,x:0,y:0,width:"100%",height:"100%",preserveAspectRatio:"none"}),o.destroy()}},n.updateFx=function(e){for(var t=e._fullLayout,n=t._subplots.gl2d,r=0;r<n.length;r++){var a=t._plots[n[r]]._scene2d;a.updateFx(t.dragmode)}}},{"../../components/fx/layout_attributes":656,"../../constants/xmlns_namespaces":726,"../../plot_api/edit_types":781,"../cartesian":812,"../cartesian/attributes":797,"../cartesian/constants":805,"../get_data":836,"../layout_attributes":853,"./scene2d":840}],840:[function(e,t,n){"use strict";var r,a,o=e("../../registry"),i=e("../../plots/cartesian/axes"),l=e("../../components/fx"),s=e("gl-plot2d"),u=e("gl-spikes2d"),c=e("gl-select-box"),f=e("webgl-context"),p=e("./convert"),d=e("./camera"),h=e("../../lib/show_no_webgl_msg"),v=e("../cartesian/constraints"),m=v.enforce,y=v.clean,g=e("../cartesian/autorange").doAutoRange,b=e("../../components/dragelement/helpers"),x=b.drawMode,_=b.selectMode,w=["xaxis","yaxis"],k=e("../cartesian/constants").SUBPLOT_PATTERN;function T(e,t){this.container=e.container,this.graphDiv=e.graphDiv,this.pixelRatio=e.plotGlPixelRatio||window.devicePixelRatio,this.id=e.id,this.staticPlot=!!e.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(t),this.makeFramework(),this.stopped||(this.glplotOptions=p(this),this.glplotOptions.merge(t),this.glplot=s(this.glplotOptions),this.camera=d(this),this.traces={},this.spikes=u(this.glplot),this.selectBox=c(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}t.exports=T;var E=T.prototype;function O(e,t){for(var n=0;n<2;++n){var r=e[n],a=t[n];if(r.length!==a.length)return!0;for(var o=0;o<r.length;++o)if(r[o].x!==a[o].x)return!0}return!1}E.makeFramework=function(){if(this.staticPlot){if(!a&&(r=document.createElement("canvas"),a=f({canvas:r,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}),!a))throw new Error("Error creating static canvas/context for image server");this.canvas=r,this.gl=a}else{var e=this.container.querySelector(".gl-canvas-focus"),t=f({canvas:e,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!t)return h(this),void(this.stopped=!0);this.canvas=e,this.gl=t}var n=this.canvas;n.style.width="100%",n.style.height="100%",n.style.position="absolute",n.style.top="0px",n.style.left="0px",n.style["pointer-events"]="none",this.updateSize(n);var o=this.svgContainer=document.createElementNS("http://www.w3.org/2000/svg","svg");o.style.position="absolute",o.style.top=o.style.left="0px",o.style.width=o.style.height="100%",o.style["z-index"]=20,o.style["pointer-events"]="none";var i=this.mouseContainer=document.createElement("div");i.style.position="absolute",i.style["pointer-events"]="auto",this.pickCanvas=this.container.querySelector(".gl-canvas-pick");var l=this.container;l.appendChild(o),l.appendChild(i);var s=this;i.addEventListener("mouseout",(function(){s.isMouseOver=!1,s.unhover()})),i.addEventListener("mouseover",(function(){s.isMouseOver=!0}))},E.toImage=function(e){e||(e="png"),this.stopped=!0,this.staticPlot&&this.container.appendChild(r),this.updateSize(this.canvas);var t=this.glplot.gl,n=t.drawingBufferWidth,a=t.drawingBufferHeight;t.clearColor(1,1,1,0),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),t.bindFramebuffer(t.FRAMEBUFFER,null);var o=new Uint8Array(n*a*4);t.readPixels(0,0,n,a,t.RGBA,t.UNSIGNED_BYTE,o);for(var i=0,l=a-1;i<l;++i,--l)for(var s=0;s<n;++s)for(var u=0;u<4;++u){var c=o[4*(n*i+s)+u];o[4*(n*i+s)+u]=o[4*(n*l+s)+u],o[4*(n*l+s)+u]=c}var f=document.createElement("canvas");f.width=n,f.height=a;var p,d=f.getContext("2d"),h=d.createImageData(n,a);switch(h.data.set(o),d.putImageData(h,0,0),e){case"jpeg":p=f.toDataURL("image/jpeg");break;case"webp":p=f.toDataURL("image/webp");break;default:p=f.toDataURL("image/png")}return this.staticPlot&&this.container.removeChild(r),p},E.updateSize=function(e){e||(e=this.canvas);var t=this.pixelRatio,n=this.fullLayout,r=n.width,a=n.height,o=0|Math.ceil(t*r),i=0|Math.ceil(t*a);return e.width===o&&e.height===i||(e.width=o,e.height=i),e},E.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var e=[i.calcTicks(this.xaxis),i.calcTicks(this.yaxis)],t=0;t<2;++t)for(var n=0;n<e[t].length;++n)e[t][n].text=e[t][n].text+"";return e},E.updateRefs=function(e){this.fullLayout=e;var t=this.id.match(k),n="xaxis"+t[1],r="yaxis"+t[2];this.xaxis=this.fullLayout[n],this.yaxis=this.fullLayout[r]},E.relayoutCallback=function(){var e=this.graphDiv,t=this.xaxis,n=this.yaxis,r=e.layout,a={},i=a[t._name+".range"]=t.range.slice(),l=a[n._name+".range"]=n.range.slice();a[t._name+".autorange"]=t.autorange,a[n._name+".autorange"]=n.autorange,o.call("_storeDirectGUIEdit",e.layout,e._fullLayout._preGUI,a);var s=r[t._name];s.range=i,s.autorange=t.autorange;var u=r[n._name];u.range=l,u.autorange=n.autorange,a.lastInputTime=this.camera.lastInputTime,e.emit("plotly_relayout",a)},E.cameraChanged=function(){var e=this.camera;this.glplot.setDataBox(this.calcDataBox());var t=this.computeTickMarks(),n=this.glplotOptions.ticks;O(t,n)&&(this.glplotOptions.ticks=t,this.glplotOptions.dataBox=e.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},E.handleAnnotations=function(){for(var e=this.graphDiv,t=this.fullLayout.annotations,n=0;n<t.length;n++){var r=t[n];r.xref===this.xaxis._id&&r.yref===this.yaxis._id&&o.getComponentMethod("annotations","drawOne")(e,n)}},E.destroy=function(){if(this.glplot){var e=this.traces;e&&Object.keys(e).map((function(t){e[t].dispose(),delete e[t]})),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener("wheel",this.camera.wheelListener),this.camera=null}},E.plot=function(e,t,n){var r=this.glplot;this.updateRefs(n),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(e,t),this.updateFx(n.dragmode);var a=n.width,o=n.height;this.updateSize(this.canvas);var i=this.glplotOptions;i.merge(n),i.screenBox=[0,0,a,o];var l={_fullLayout:{_axisConstraintGroups:this.graphDiv._fullLayout._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis}};y(l,this.xaxis),y(l,this.yaxis);var s,u,c=n._size,f=this.xaxis.domain,p=this.yaxis.domain;for(i.viewBox=[c.l+f[0]*c.w,c.b+p[0]*c.h,a-c.r-(1-f[1])*c.w,o-c.t-(1-p[1])*c.h],this.mouseContainer.style.width=c.w*(f[1]-f[0])+"px",this.mouseContainer.style.height=c.h*(p[1]-p[0])+"px",this.mouseContainer.height=c.h*(p[1]-p[0]),this.mouseContainer.style.left=c.l+f[0]*c.w+"px",this.mouseContainer.style.top=c.t+(1-p[1])*c.h+"px",u=0;u<2;++u)s=this[w[u]],s._length=i.viewBox[u+2]-i.viewBox[u],g(this.graphDiv,s),s.setScale();m(l),i.ticks=this.computeTickMarks(),i.dataBox=this.calcDataBox(),i.merge(n),r.update(i),this.glplot.draw()},E.calcDataBox=function(){var e=this.xaxis,t=this.yaxis,n=e.range,r=t.range,a=e.r2l,o=t.r2l;return[a(n[0]),o(r[0]),a(n[1]),o(r[1])]},E.setRanges=function(e){var t=this.xaxis,n=this.yaxis,r=t.l2r,a=n.l2r;t.range=[r(e[0]),r(e[2])],n.range=[a(e[1]),a(e[3])]},E.updateTraces=function(e,t){var n,r,a,o=Object.keys(this.traces);this.fullData=e;e:for(n=0;n<o.length;n++){var i=o[n],l=this.traces[i];for(r=0;r<e.length;r++)if(a=e[r],a.uid===i&&a.type===l.type)continue e;l.dispose(),delete this.traces[i]}for(n=0;n<e.length;n++){a=e[n];var s=t[n],u=this.traces[a.uid];u?u.update(a,s):(u=a._module.plot(this,a,s),this.traces[a.uid]=u)}this.glplot.objects.sort((function(e,t){return e._trace.index-t._trace.index}))},E.updateFx=function(e){_(e)||x(e)?(this.pickCanvas.style["pointer-events"]="none",this.mouseContainer.style["pointer-events"]="none"):(this.pickCanvas.style["pointer-events"]="auto",this.mouseContainer.style["pointer-events"]="auto"),this.mouseContainer.style.cursor="pan"===e?"move":"zoom"===e?"crosshair":null},E.emitPointAction=function(e,t){for(var n,r=e.trace.uid,a=e.pointIndex,o=0;o<this.fullData.length;o++)this.fullData[o].uid===r&&(n=this.fullData[o]);var i={x:e.traceCoord[0],y:e.traceCoord[1],curveNumber:n.index,pointNumber:a,data:n._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};l.appendArrayPointValue(i,n,a),this.graphDiv.emit(t,{points:[i]})},E.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var e=this.glplot,t=this.camera,n=t.mouseListener,r=1===this.lastButtonState&&0===n.buttons,a=this.fullLayout;this.lastButtonState=n.buttons,this.cameraChanged();var o,i=n.x*e.pixelRatio,s=this.canvas.height-e.pixelRatio*n.y;if(t.boxEnabled&&"zoom"===a.dragmode){this.selectBox.enabled=!0;for(var u=this.selectBox.selectBox=[Math.min(t.boxStart[0],t.boxEnd[0]),Math.min(t.boxStart[1],t.boxEnd[1]),Math.max(t.boxStart[0],t.boxEnd[0]),Math.max(t.boxStart[1],t.boxEnd[1])],c=0;c<2;c++)t.boxStart[c]===t.boxEnd[c]&&(u[c]=e.dataBox[c],u[c+2]=e.dataBox[c+2]);e.setDirty()}else if(!t.panning&&this.isMouseOver){this.selectBox.enabled=!1;var f=a._size,p=this.xaxis.domain,d=this.yaxis.domain;o=e.pick(i/e.pixelRatio+f.l+p[0]*f.w,s/e.pixelRatio-(f.t+(1-d[1])*f.h));var h=o&&o.object._trace.handlePick(o);if(h&&r&&this.emitPointAction(h,"plotly_click"),o&&"skip"!==o.object._trace.hoverinfo&&a.hovermode&&h&&(!this.lastPickResult||this.lastPickResult.traceUid!==h.trace.uid||this.lastPickResult.dataCoord[0]!==h.dataCoord[0]||this.lastPickResult.dataCoord[1]!==h.dataCoord[1])){var v=h;this.lastPickResult={traceUid:h.trace?h.trace.uid:null,dataCoord:h.dataCoord.slice()},this.spikes.update({center:o.dataCoord}),v.screenCoord=[((e.viewBox[2]-e.viewBox[0])*(o.dataCoord[0]-e.dataBox[0])/(e.dataBox[2]-e.dataBox[0])+e.viewBox[0])/e.pixelRatio,(this.canvas.height-(e.viewBox[3]-e.viewBox[1])*(o.dataCoord[1]-e.dataBox[1])/(e.dataBox[3]-e.dataBox[1])-e.viewBox[1])/e.pixelRatio],this.emitPointAction(h,"plotly_hover");var m=this.fullData[v.trace.index]||{},y=v.pointIndex,g=l.castHoverinfo(m,a,y);if(g&&"all"!==g){var b=g.split("+");-1===b.indexOf("x")&&(v.traceCoord[0]=void 0),-1===b.indexOf("y")&&(v.traceCoord[1]=void 0),-1===b.indexOf("z")&&(v.traceCoord[2]=void 0),-1===b.indexOf("text")&&(v.textLabel=void 0),-1===b.indexOf("name")&&(v.name=void 0)}l.loneHover({x:v.screenCoord[0],y:v.screenCoord[1],xLabel:this.hoverFormatter("xaxis",v.traceCoord[0]),yLabel:this.hoverFormatter("yaxis",v.traceCoord[1]),zLabel:v.traceCoord[2],text:v.textLabel,name:v.name,color:l.castHoverOption(m,y,"bgcolor")||v.color,borderColor:l.castHoverOption(m,y,"bordercolor"),fontFamily:l.castHoverOption(m,y,"font.family"),fontSize:l.castHoverOption(m,y,"font.size"),fontColor:l.castHoverOption(m,y,"font.color"),nameLength:l.castHoverOption(m,y,"namelength"),textAlign:l.castHoverOption(m,y,"align")},{container:this.svgContainer,gd:this.graphDiv})}}o||this.unhover(),e.draw()}},E.unhover=function(){this.lastPickResult&&(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit("plotly_unhover"),l.loneUnhover(this.svgContainer))},E.hoverFormatter=function(e,t){if(void 0!==t){var n=this[e];return i.tickText(n,n.c2l(t),"hover").text}}},{"../../components/dragelement/helpers":633,"../../components/fx":655,"../../lib/show_no_webgl_msg":771,"../../plots/cartesian/axes":799,"../../registry":882,"../cartesian/autorange":798,"../cartesian/constants":805,"../cartesian/constraints":806,"./camera":837,"./convert":838,"gl-plot2d":298,"gl-select-box":310,"gl-spikes2d":319,"webgl-context":578}],841:[function(e,t,n){"use strict";var r=e("../../plot_api/edit_types").overrideAll,a=e("../../components/fx/layout_attributes"),o=e("./scene"),i=e("../get_data").getSubplotData,l=e("../../lib"),s=e("../../constants/xmlns_namespaces"),u="gl3d",c="scene";n.name=u,n.attr=c,n.idRoot=c,n.idRegex=n.attrRegex=l.counterRegex("scene"),n.attributes=e("./layout/attributes"),n.layoutAttributes=e("./layout/layout_attributes"),n.baseLayoutAttrOverrides=r({hoverlabel:a.hoverlabel},"plot","nested"),n.supplyLayoutDefaults=e("./layout/defaults"),n.plot=function(e){for(var t=e._fullLayout,n=e._fullData,r=t._subplots[u],a=0;a<r.length;a++){var l=r[a],s=i(n,u,l),c=t[l],f=c.camera,p=c._scene;p||(p=new o({id:l,graphDiv:e,container:e.querySelector(".gl-container"),staticPlot:e._context.staticPlot,plotGlPixelRatio:e._context.plotGlPixelRatio,camera:f},t),c._scene=p),p.viewInitial||(p.viewInitial={up:{x:f.up.x,y:f.up.y,z:f.up.z},eye:{x:f.eye.x,y:f.eye.y,z:f.eye.z},center:{x:f.center.x,y:f.center.y,z:f.center.z}}),p.plot(s,t,e.layout)}},n.clean=function(e,t,n,r){for(var a=r._subplots[u]||[],o=0;o<a.length;o++){var i=a[o];!t[i]&&r[i]._scene&&(r[i]._scene.destroy(),r._infolayer&&r._infolayer.selectAll(".annotation-"+i).remove())}},n.toSVG=function(e){for(var t=e._fullLayout,n=t._subplots[u],r=t._size,a=0;a<n.length;a++){var o=t[n[a]],i=o.domain,l=o._scene,c=l.toImage("png"),f=t._glimages.append("svg:image");f.attr({xmlns:s.svg,"xlink:href":c,x:r.l+r.w*i.x[0],y:r.t+r.h*(1-i.y[1]),width:r.w*(i.x[1]-i.x[0]),height:r.h*(i.y[1]-i.y[0]),preserveAspectRatio:"none"}),l.destroy()}},n.cleanId=function(e){if(e.match(/^scene[0-9]*$/)){var t=e.substr(5);return"1"===t&&(t=""),c+t}},n.updateFx=function(e){for(var t=e._fullLayout,n=t._subplots[u],r=0;r<n.length;r++){var a=t[n[r]]._scene;a.updateFx(t.dragmode,t.hovermode)}}},{"../../components/fx/layout_attributes":656,"../../constants/xmlns_namespaces":726,"../../lib":750,"../../plot_api/edit_types":781,"../get_data":836,"./layout/attributes":842,"./layout/defaults":846,"./layout/layout_attributes":847,"./scene":851}],842:[function(e,t,n){"use strict";t.exports={scene:{valType:"subplotid",dflt:"scene",editType:"calc+clearAxisTypes"}}},{}],843:[function(e,t,n){"use strict";var r=e("../../../components/color"),a=e("../../cartesian/layout_attributes"),o=e("../../../lib/extend").extendFlat,i=e("../../../plot_api/edit_types").overrideAll;t.exports=i({visible:a.visible,showspikes:{valType:"boolean",dflt:!0},spikesides:{valType:"boolean",dflt:!0},spikethickness:{valType:"number",min:0,dflt:2},spikecolor:{valType:"color",dflt:r.defaultLine},showbackground:{valType:"boolean",dflt:!1},backgroundcolor:{valType:"color",dflt:"rgba(204, 204, 204, 0.5)"},showaxeslabels:{valType:"boolean",dflt:!0},color:a.color,categoryorder:a.categoryorder,categoryarray:a.categoryarray,title:{text:a.title.text,font:a.title.font},type:o({},a.type,{values:["-","linear","log","date","category"]}),autorange:a.autorange,rangemode:a.rangemode,range:o({},a.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],anim:!1}),tickmode:a.tickmode,nticks:a.nticks,tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,mirror:a.mirror,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,tickfont:a.tickfont,tickangle:a.tickangle,tickprefix:a.tickprefix,showtickprefix:a.showtickprefix,ticksuffix:a.ticksuffix,showticksuffix:a.showticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:a.showline,linecolor:a.linecolor,linewidth:a.linewidth,showgrid:a.showgrid,gridcolor:o({},a.gridcolor,{dflt:"rgb(204, 204, 204)"}),gridwidth:a.gridwidth,zeroline:a.zeroline,zerolinecolor:a.zerolinecolor,zerolinewidth:a.zerolinewidth,_deprecated:{title:a._deprecated.title,titlefont:a._deprecated.titlefont}},"plot","from-root")},{"../../../components/color":615,"../../../lib/extend":740,"../../../plot_api/edit_types":781,"../../cartesian/layout_attributes":813}],844:[function(e,t,n){"use strict";var r=e("tinycolor2").mix,a=e("../../../lib"),o=e("../../../plot_api/plot_template"),i=e("./axis_attributes"),l=e("../../cartesian/type_defaults"),s=e("../../cartesian/axis_defaults"),u=["xaxis","yaxis","zaxis"],c=13600/187;t.exports=function(e,t,n){var f,p;function d(e,t){return a.coerce(f,p,i,e,t)}for(var h=0;h<u.length;h++){var v=u[h];f=e[v]||{},p=o.newContainer(t,v),p._id=v[0]+n.scene,p._name=v,l(f,p,d,n),s(f,p,d,{font:n.font,letter:v[0],data:n.data,showGrid:!0,noTickson:!0,noTicklabelmode:!0,bgColor:n.bgColor,calendar:n.calendar},n.fullLayout),d("gridcolor",r(p.color,n.bgColor,c).toRgbString()),d("title.text",v[0]),p.setScale=a.noop,d("showspikes")&&(d("spikesides"),d("spikethickness"),d("spikecolor",p.color)),d("showaxeslabels"),d("showbackground")&&d("backgroundcolor")}}},{"../../../lib":750,"../../../plot_api/plot_template":788,"../../cartesian/axis_defaults":801,"../../cartesian/type_defaults":824,"./axis_attributes":843,tinycolor2:548}],845:[function(e,t,n){"use strict";var r=e("../../../lib/str2rgbarray"),a=e("../../../lib"),o=["xaxis","yaxis","zaxis"];function i(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=["sans-serif","sans-serif","sans-serif"],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=["x","y","z"],this.labelEnable=[!0,!0,!0],this.labelFont=["Open Sans","Open Sans","Open Sans"],this.labelSize=[20,20,20],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}var l=i.prototype;function s(e,t){var n=new i;return n.merge(e,t),n}l.merge=function(e,t){for(var n=this,i=0;i<3;++i){var l=t[o[i]];l.visible?(n.labels[i]=e._meta?a.templateString(l.title.text,e._meta):l.title.text,"font"in l.title&&(l.title.font.color&&(n.labelColor[i]=r(l.title.font.color)),l.title.font.family&&(n.labelFont[i]=l.title.font.family),l.title.font.size&&(n.labelSize[i]=l.title.font.size)),"showline"in l&&(n.lineEnable[i]=l.showline),"linecolor"in l&&(n.lineColor[i]=r(l.linecolor)),"linewidth"in l&&(n.lineWidth[i]=l.linewidth),"showgrid"in l&&(n.gridEnable[i]=l.showgrid),"gridcolor"in l&&(n.gridColor[i]=r(l.gridcolor)),"gridwidth"in l&&(n.gridWidth[i]=l.gridwidth),"log"===l.type?n.zeroEnable[i]=!1:"zeroline"in l&&(n.zeroEnable[i]=l.zeroline),"zerolinecolor"in l&&(n.zeroLineColor[i]=r(l.zerolinecolor)),"zerolinewidth"in l&&(n.zeroLineWidth[i]=l.zerolinewidth),"ticks"in l&&l.ticks?n.lineTickEnable[i]=!0:n.lineTickEnable[i]=!1,"ticklen"in l&&(n.lineTickLength[i]=n._defaultLineTickLength[i]=l.ticklen),"tickcolor"in l&&(n.lineTickColor[i]=r(l.tickcolor)),"tickwidth"in l&&(n.lineTickWidth[i]=l.tickwidth),"tickangle"in l&&(n.tickAngle[i]="auto"===l.tickangle?-3600:Math.PI*-l.tickangle/180),"showticklabels"in l&&(n.tickEnable[i]=l.showticklabels),"tickfont"in l&&(l.tickfont.color&&(n.tickColor[i]=r(l.tickfont.color)),l.tickfont.family&&(n.tickFont[i]=l.tickfont.family),l.tickfont.size&&(n.tickSize[i]=l.tickfont.size)),"mirror"in l?-1!==["ticks","all","allticks"].indexOf(l.mirror)?(n.lineTickMirror[i]=!0,n.lineMirror[i]=!0):!0===l.mirror?(n.lineTickMirror[i]=!1,n.lineMirror[i]=!0):(n.lineTickMirror[i]=!1,n.lineMirror[i]=!1):n.lineMirror[i]=!1,"showbackground"in l&&!1!==l.showbackground?(n.backgroundEnable[i]=!0,n.backgroundColor[i]=r(l.backgroundcolor)):n.backgroundEnable[i]=!1):(n.tickEnable[i]=!1,n.labelEnable[i]=!1,n.lineEnable[i]=!1,n.lineTickEnable[i]=!1,n.gridEnable[i]=!1,n.zeroEnable[i]=!1,n.backgroundEnable[i]=!1)}},t.exports=s},{"../../../lib":750,"../../../lib/str2rgbarray":773}],846:[function(e,t,n){"use strict";var r=e("../../../lib"),a=e("../../../components/color"),o=e("../../../registry"),i=e("../../subplot_defaults"),l=e("./axis_defaults"),s=e("./layout_attributes"),u=e("../../get_data").getSubplotData,c="gl3d";function f(e,t,n,r){for(var i=n("bgcolor"),s=a.combine(i,r.paper_bgcolor),f=["up","center","eye"],p=0;p<f.length;p++)n("camera."+f[p]+".x"),n("camera."+f[p]+".y"),n("camera."+f[p]+".z");n("camera.projection.type");var d=!!n("aspectratio.x")&&!!n("aspectratio.y")&&!!n("aspectratio.z"),h=d?"manual":"auto",v=n("aspectmode",h);d||(e.aspectratio=t.aspectratio={x:1,y:1,z:1},"manual"===v&&(t.aspectmode="auto"),e.aspectmode=t.aspectmode);var m=u(r.fullData,c,r.id);l(e,t,{font:r.font,scene:r.id,data:m,bgColor:s,calendar:r.calendar,fullLayout:r.fullLayout}),o.getComponentMethod("annotations3d","handleDefaults")(e,t,r);var y=r.getDfltFromLayout("dragmode");if(!1!==y&&!y)if(y="orbit",e.camera&&e.camera.up){var g=e.camera.up.x,b=e.camera.up.y,x=e.camera.up.z;0!==x&&(g&&b&&x?x/Math.sqrt(g*g+b*b+x*x)>.999&&(y="turntable"):y="turntable")}else y="turntable";n("dragmode",y),n("hovermode",r.getDfltFromLayout("hovermode"))}t.exports=function(e,t,n){var a=t._basePlotModules.length>1;function o(t){if(!a){var n=r.validate(e[t],s[t]);return n?e[t]:void 0}}i(e,t,n,{type:c,attributes:s,handleDefaults:f,fullLayout:t,font:t.font,fullData:n,getDfltFromLayout:o,paper_bgcolor:t.paper_bgcolor,calendar:t.calendar})}},{"../../../components/color":615,"../../../lib":750,"../../../registry":882,"../../get_data":836,"../../subplot_defaults":876,"./axis_defaults":844,"./layout_attributes":847}],847:[function(e,t,n){"use strict";var r=e("./axis_attributes"),a=e("../../domain").attributes,o=e("../../../lib/extend").extendFlat,i=e("../../../lib").counterRegex;function l(e,t,n){return{x:{valType:"number",dflt:e,editType:"camera"},y:{valType:"number",dflt:t,editType:"camera"},z:{valType:"number",dflt:n,editType:"camera"},editType:"camera"}}t.exports={_arrayAttrRegexps:[i("scene",".annotations",!0)],bgcolor:{valType:"color",dflt:"rgba(0,0,0,0)",editType:"plot"},camera:{up:o(l(0,0,1),{}),center:o(l(0,0,0),{}),eye:o(l(1.25,1.25,1.25),{}),projection:{type:{valType:"enumerated",values:["perspective","orthographic"],dflt:"perspective",editType:"calc"},editType:"calc"},editType:"camera"},domain:a({name:"scene",editType:"plot"}),aspectmode:{valType:"enumerated",values:["auto","cube","data","manual"],dflt:"auto",editType:"plot",impliedEdits:{"aspectratio.x":void 0,"aspectratio.y":void 0,"aspectratio.z":void 0}},aspectratio:{x:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},y:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},z:{valType:"number",min:0,editType:"plot",impliedEdits:{"^aspectmode":"manual"}},editType:"plot",impliedEdits:{aspectmode:"manual"}},xaxis:r,yaxis:r,zaxis:r,dragmode:{valType:"enumerated",values:["orbit","turntable","zoom","pan",!1],editType:"plot"},hovermode:{valType:"enumerated",values:["closest",!1],dflt:"closest",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"plot",_deprecated:{cameraposition:{valType:"info_array",editType:"camera"}}}},{"../../../lib":750,"../../../lib/extend":740,"../../domain":826,"./axis_attributes":843}],848:[function(e,t,n){"use strict";var r=e("../../../lib/str2rgbarray"),a=["xaxis","yaxis","zaxis"];function o(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}var i=o.prototype;function l(e){var t=new o;return t.merge(e),t}i.merge=function(e){for(var t=0;t<3;++t){var n=e[a[t]];n.visible?(this.enabled[t]=n.showspikes,this.colors[t]=r(n.spikecolor),this.drawSides[t]=n.spikesides,this.lineWidth[t]=n.spikethickness):(this.enabled[t]=!1,this.drawSides[t]=!1)}},t.exports=l},{"../../../lib/str2rgbarray":773}],849:[function(e,t,n){"use strict";t.exports=s;var r=e("../../cartesian/axes"),a=e("../../../lib"),o=["xaxis","yaxis","zaxis"],i=[0,0,0];function l(e){for(var t=new Array(3),n=0;n<3;++n){for(var r=e[n],a=new Array(r.length),o=0;o<r.length;++o)a[o]=r[o].x;t[n]=a}return t}function s(e){for(var t=e.axesOptions,n=e.glplot.axesPixels,s=e.fullSceneLayout,u=[[],[],[]],c=0;c<3;++c){var f=s[o[c]];if(f._length=(n[c].hi-n[c].lo)*n[c].pixelsPerDataUnit/e.dataScale[c],Math.abs(f._length)===1/0||isNaN(f._length))u[c]=[];else{f._input_range=f.range.slice(),f.range[0]=n[c].lo/e.dataScale[c],f.range[1]=n[c].hi/e.dataScale[c],f._m=1/(e.dataScale[c]*n[c].pixelsPerDataUnit),f.range[0]===f.range[1]&&(f.range[0]-=1,f.range[1]+=1);var p=f.tickmode;if("auto"===f.tickmode){f.tickmode="linear";var d=f.nticks||a.constrain(f._length/40,4,9);r.autoTicks(f,Math.abs(f.range[1]-f.range[0])/d)}for(var h=r.calcTicks(f,{msUTC:!0}),v=0;v<h.length;++v)h[v].x=h[v].x*e.dataScale[c],"date"===f.type&&(h[v].text=h[v].text.replace(/\<br\>/g," "));u[c]=h,f.tickmode=p}}t.ticks=u;for(c=0;c<3;++c){i[c]=.5*(e.glplot.bounds[0][c]+e.glplot.bounds[1][c]);for(v=0;v<2;++v)t.bounds[v][c]=e.glplot.bounds[v][c]}e.contourLevels=l(u)}},{"../../../lib":750,"../../cartesian/axes":799}],850:[function(e,t,n){"use strict";function r(e,t){var n,r,a=[0,0,0,0];for(n=0;n<4;++n)for(r=0;r<4;++r)a[r]+=e[4*n+r]*t[n];return a}function a(e,t){var n=r(e.projection,r(e.view,r(e.model,[t[0],t[1],t[2],1])));return n}t.exports=a},{}],851:[function(e,t,n){"use strict";var r,a,o=e("gl-plot3d"),i=o.createCamera,l=o.createScene,s=e("webgl-context"),u=e("has-passive-events"),c=e("../../registry"),f=e("../../lib"),p=e("../../plots/cartesian/axes"),d=e("../../components/fx"),h=e("../../lib/str2rgbarray"),v=e("../../lib/show_no_webgl_msg"),m=e("./project"),y=e("./layout/convert"),g=e("./layout/spikes"),b=e("./layout/tick_marks"),x=e("is-mobile")({tablet:!0,featureDetect:!0});function _(e,t){var n=document.createElement("div"),r=e.container;this.graphDiv=e.graphDiv;var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.style.position="absolute",a.style.top=a.style.left="0px",a.style.width=a.style.height="100%",a.style["z-index"]=20,a.style["pointer-events"]="none",n.appendChild(a),this.svgContainer=a,n.id=e.id,n.style.position="absolute",n.style.top=n.style.left="0px",n.style.width=n.style.height="100%",r.appendChild(n),this.fullLayout=t,this.id=e.id||"scene",this.fullSceneLayout=t[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(t,t[this.id]),this.spikeOptions=g(t[this.id]),this.container=n,this.staticMode=!!e.staticPlot,this.pixelRatio=this.pixelRatio||e.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=c.getComponentMethod("annotations3d","convert"),this.drawAnnotations=c.getComponentMethod("annotations3d","draw"),this.initializeGLPlot()}var w=_.prototype;w.prepareOptions=function(){var e=this,t={canvas:e.canvas,gl:e.gl,glOptions:{preserveDrawingBuffer:x,premultipliedAlpha:!0,antialias:!0},container:e.container,axes:e.axesOptions,spikes:e.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:e.camera,pixelRatio:e.pixelRatio};if(e.staticMode){if(!a&&(r=document.createElement("canvas"),a=s({canvas:r,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}),!a))throw new Error("error creating static canvas/context for image server");t.gl=a,t.canvas=r}return t},w.tryCreatePlot=function(){var e=this,t=e.prepareOptions(),n=!0;try{e.glplot=l(t)}catch(r){if(e.staticMode)n=!1;else try{f.warn(["webgl setup failed possibly due to",x?"disabling":"enabling","preserveDrawingBuffer config.","The device may not be supported by is-mobile module!","Inverting preserveDrawingBuffer option in second attempt to create webgl scene."].join(" ")),x=t.glOptions.preserveDrawingBuffer=!t.glOptions.preserveDrawingBuffer,e.glplot=l(t)}catch(r){n=!1}}return n},w.initializeGLCamera=function(){var e=this,t=e.fullSceneLayout.camera,n="orthographic"===t.projection.type;e.camera=i(e.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:n,zoomMin:.01,zoomMax:100,mode:"orbit"})},w.initializeGLPlot=function(){var e=this;e.initializeGLCamera();var t=e.tryCreatePlot();if(!t)return v(e);e.traces={},e.make4thDimension();var n=e.graphDiv,r=n.layout,a=function(){var t={};return e.isCameraChanged(r)&&(t[e.id+".camera"]=e.getCamera()),e.isAspectChanged(r)&&(t[e.id+".aspectratio"]=e.glplot.getAspectratio(),"manual"!==r[e.id].aspectmode&&(e.fullSceneLayout.aspectmode=r[e.id].aspectmode=t[e.id+".aspectmode"]="manual")),t},o=function(e){if(!1!==e.fullSceneLayout.dragmode){var t=a();e.saveLayout(r),e.graphDiv.emit("plotly_relayout",t)}};return e.glplot.canvas.addEventListener("mouseup",(function(){o(e)})),e.glplot.canvas.addEventListener("wheel",(function(t){if(n._context._scrollZoom.gl3d){if(e.camera._ortho){var r=t.deltaX>t.deltaY?1.1:1/1.1,a=e.glplot.getAspectratio();e.glplot.setAspectratio({x:r*a.x,y:r*a.y,z:r*a.z})}o(e)}}),!!u&&{passive:!1}),e.glplot.canvas.addEventListener("mousemove",(function(){if(!1!==e.fullSceneLayout.dragmode&&0!==e.camera.mouseListener.buttons){var t=a();e.graphDiv.emit("plotly_relayouting",t)}})),e.staticMode||e.glplot.canvas.addEventListener("webglcontextlost",(function(t){n&&n.emit&&n.emit("plotly_webglcontextlost",{event:t,layer:e.id})}),!1),e.glplot.oncontextloss=function(){e.recoverContext()},e.glplot.onrender=function(){e.render()},!0},w.render=function(){var e,t=this,n=t.graphDiv,r=t.svgContainer,a=t.container.getBoundingClientRect(),o=a.width,i=a.height;r.setAttributeNS(null,"viewBox","0 0 "+o+" "+i),r.setAttributeNS(null,"width",o),r.setAttributeNS(null,"height",i),b(t),t.glplot.axes.update(t.axesOptions);for(var l,s=Object.keys(t.traces),u=null,c=t.glplot.selection,h=0;h<s.length;++h)e=t.traces[s[h]],"skip"!==e.data.hoverinfo&&e.handlePick(c)&&(u=e),e.setContourLevels&&e.setContourLevels();function v(e,n){var r=t.fullSceneLayout[e];return p.tickText(r,r.d2l(n),"hover").text}if(null!==u){var y=m(t.glplot.cameraParams,c.dataCoordinate);e=u.data;var g,x=n._fullData[e.index],_=c.index,w={xLabel:v("xaxis",c.traceCoordinate[0]),yLabel:v("yaxis",c.traceCoordinate[1]),zLabel:v("zaxis",c.traceCoordinate[2])},k=d.castHoverinfo(x,t.fullLayout,_),T=(k||"").split("+"),E=k&&"all"===k;x.hovertemplate||E||(-1===T.indexOf("x")&&(w.xLabel=void 0),-1===T.indexOf("y")&&(w.yLabel=void 0),-1===T.indexOf("z")&&(w.zLabel=void 0),-1===T.indexOf("text")&&(c.textLabel=void 0),-1===T.indexOf("name")&&(u.name=void 0));var O=[];"cone"===e.type||"streamtube"===e.type?(w.uLabel=v("xaxis",c.traceCoordinate[3]),(E||-1!==T.indexOf("u"))&&O.push("u: "+w.uLabel),w.vLabel=v("yaxis",c.traceCoordinate[4]),(E||-1!==T.indexOf("v"))&&O.push("v: "+w.vLabel),w.wLabel=v("zaxis",c.traceCoordinate[5]),(E||-1!==T.indexOf("w"))&&O.push("w: "+w.wLabel),w.normLabel=c.traceCoordinate[6].toPrecision(3),(E||-1!==T.indexOf("norm"))&&O.push("norm: "+w.normLabel),"streamtube"===e.type&&(w.divergenceLabel=c.traceCoordinate[7].toPrecision(3),(E||-1!==T.indexOf("divergence"))&&O.push("divergence: "+w.divergenceLabel)),c.textLabel&&O.push(c.textLabel),g=O.join("<br>")):"isosurface"===e.type||"volume"===e.type?(w.valueLabel=p.tickText(t._mockAxis,t._mockAxis.d2l(c.traceCoordinate[3]),"hover").text,O.push("value: "+w.valueLabel),c.textLabel&&O.push(c.textLabel),g=O.join("<br>")):g=c.textLabel;var M={x:c.traceCoordinate[0],y:c.traceCoordinate[1],z:c.traceCoordinate[2],data:x._input,fullData:x,curveNumber:x.index,pointNumber:_};d.appendArrayPointValue(M,x,_),e._module.eventData&&(M=x._module.eventData(M,c,x,{},_));var S={points:[M]};t.fullSceneLayout.hovermode&&d.loneHover({trace:x,x:(.5+.5*y[0]/y[3])*o,y:(.5-.5*y[1]/y[3])*i,xLabel:w.xLabel,yLabel:w.yLabel,zLabel:w.zLabel,text:g,name:u.name,color:d.castHoverOption(x,_,"bgcolor")||u.color,borderColor:d.castHoverOption(x,_,"bordercolor"),fontFamily:d.castHoverOption(x,_,"font.family"),fontSize:d.castHoverOption(x,_,"font.size"),fontColor:d.castHoverOption(x,_,"font.color"),nameLength:d.castHoverOption(x,_,"namelength"),textAlign:d.castHoverOption(x,_,"align"),hovertemplate:f.castOption(x,_,"hovertemplate"),hovertemplateLabels:f.extendFlat({},M,w),eventData:[M]},{container:r,gd:n}),c.buttons&&c.distance<5?n.emit("plotly_click",S):n.emit("plotly_hover",S),l=S}else d.loneUnhover(r),n.emit("plotly_unhover",l);t.drawAnnotations(t)},w.recoverContext=function(){var e=this;e.glplot.dispose();var t=function(){e.glplot.gl.isContextLost()?requestAnimationFrame(t):e.initializeGLPlot()?e.plot.apply(e,e.plotArgs):f.error("Catastrophic and unrecoverable WebGL error. Context lost.")};requestAnimationFrame(t)};var k=["xaxis","yaxis","zaxis"];function T(e,t,n){for(var r=e.fullSceneLayout,a=0;a<3;a++){var o=k[a],i=o.charAt(0),l=r[o],s=t[i],u=t[i+"calendar"],c=t["_"+i+"length"];if(f.isArrayOrTypedArray(s))for(var p,d=0;d<(c||s.length);d++)if(f.isArrayOrTypedArray(s[d]))for(var h=0;h<s[d].length;++h)p=l.d2l(s[d][h],0,u),!isNaN(p)&&isFinite(p)&&(n[0][a]=Math.min(n[0][a],p),n[1][a]=Math.max(n[1][a],p));else p=l.d2l(s[d],0,u),!isNaN(p)&&isFinite(p)&&(n[0][a]=Math.min(n[0][a],p),n[1][a]=Math.max(n[1][a],p));else n[0][a]=Math.min(n[0][a],0),n[1][a]=Math.max(n[1][a],c-1)}}function E(e,t){for(var n=e.fullSceneLayout,r=n.annotations||[],a=0;a<3;a++)for(var o=k[a],i=o.charAt(0),l=n[o],s=0;s<r.length;s++){var u=r[s];if(u.visible){var c=l.r2l(u[i]);!isNaN(c)&&isFinite(c)&&(t[0][a]=Math.min(t[0][a],c),t[1][a]=Math.max(t[1][a],c))}}}function O(e){return[[e.eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]}function M(e){return{up:{x:e.up[0],y:e.up[1],z:e.up[2]},center:{x:e.center[0],y:e.center[1],z:e.center[2]},eye:{x:e.eye[0],y:e.eye[1],z:e.eye[2]},projection:{type:!0===e._ortho?"orthographic":"perspective"}}}function S(e,t,n){for(var r=0,a=n-1;r<a;++r,--a)for(var o=0;o<t;++o)for(var i=0;i<4;++i){var l=4*(t*r+o)+i,s=4*(t*a+o)+i,u=e[l];e[l]=e[s],e[s]=u}}function C(e,t,n){for(var r=0;r<n;++r)for(var a=0;a<t;++a){var o=4*(t*r+a),i=e[o+3];if(i>0)for(var l=255/i,s=0;s<3;++s)e[o+s]=Math.min(l*e[o+s],255)}}w.plot=function(e,t,n){var r=this;if(r.plotArgs=[e,t,n],!r.glplot.contextLost){var a,o,i,l,s,u,c=t[r.id],f=n[r.id];r.fullLayout=t,r.fullSceneLayout=c,r.axesOptions.merge(t,c),r.spikeOptions.merge(c),r.setViewport(c),r.updateFx(c.dragmode,c.hovermode),r.camera.enableWheel=r.graphDiv._context._scrollZoom.gl3d,r.glplot.setClearColor(h(c.bgcolor)),r.setConvert(s),e?Array.isArray(e)||(e=[e]):e=[];var p=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(i=0;i<e.length;++i)a=e[i],!0===a.visible&&0!==a._length&&T(this,a,p);E(this,p);var d=[1,1,1];for(l=0;l<3;++l)p[1][l]===p[0][l]?d[l]=1:d[l]=1/(p[1][l]-p[0][l]);for(r.dataScale=d,r.convertAnnotations(this),i=0;i<e.length;++i)a=e[i],!0===a.visible&&0!==a._length&&(o=r.traces[a.uid],o?o.data.type===a.type?o.update(a):(o.dispose(),o=a._module.plot(this,a),r.traces[a.uid]=o):(o=a._module.plot(this,a),r.traces[a.uid]=o),o.name=a.name);var v=Object.keys(r.traces);e:for(i=0;i<v.length;++i){for(l=0;l<e.length;++l)if(e[l].uid===v[i]&&!0===e[l].visible&&0!==e[l]._length)continue e;o=r.traces[v[i]],o.dispose(),delete r.traces[v[i]]}r.glplot.objects.sort((function(e,t){return e._trace.data.index-t._trace.data.index}));var m,y=[[0,0,0],[0,0,0]],g=[],b={};for(i=0;i<3;++i){if(s=c[k[i]],u=s.type,u in b?(b[u].acc*=d[i],b[u].count+=1):b[u]={acc:d[i],count:1},s.autorange){y[0][i]=1/0,y[1][i]=-1/0;var x=r.glplot.objects,_=r.fullSceneLayout.annotations||[],w=s._name.charAt(0);for(l=0;l<x.length;l++){var O=x[l],M=O.bounds,S=O._trace.data._pad||0;"ErrorBars"===O.constructor.name&&s._lowerLogErrorBound?y[0][i]=Math.min(y[0][i],s._lowerLogErrorBound):y[0][i]=Math.min(y[0][i],M[0][i]/d[i]-S),y[1][i]=Math.max(y[1][i],M[1][i]/d[i]+S)}for(l=0;l<_.length;l++){var C=_[l];if(C.visible){var A=s.r2l(C[w]);y[0][i]=Math.min(y[0][i],A),y[1][i]=Math.max(y[1][i],A)}}if("rangemode"in s&&"tozero"===s.rangemode&&(y[0][i]=Math.min(y[0][i],0),y[1][i]=Math.max(y[1][i],0)),y[0][i]>y[1][i])y[0][i]=-1,y[1][i]=1;else{var P=y[1][i]-y[0][i];y[0][i]-=P/32,y[1][i]+=P/32}if("reversed"===s.autorange){var L=y[0][i];y[0][i]=y[1][i],y[1][i]=L}}else{var D=s.range;y[0][i]=s.r2l(D[0]),y[1][i]=s.r2l(D[1])}y[0][i]===y[1][i]&&(y[0][i]-=1,y[1][i]+=1),g[i]=y[1][i]-y[0][i],r.glplot.setBounds(i,{min:y[0][i]*d[i],max:y[1][i]*d[i]})}var j=c.aspectmode;if("cube"===j)m=[1,1,1];else if("manual"===j){var I=c.aspectratio;m=[I.x,I.y,I.z]}else{if("auto"!==j&&"data"!==j)throw new Error("scene.js aspectRatio was not one of the enumerated types");var R=[1,1,1];for(i=0;i<3;++i){s=c[k[i]],u=s.type;var z=b[u];R[i]=Math.pow(z.acc,1/z.count)/d[i]}m="data"===j||Math.max.apply(null,R)/Math.min.apply(null,R)<=4?R:[1,1,1]}c.aspectratio.x=f.aspectratio.x=m[0],c.aspectratio.y=f.aspectratio.y=m[1],c.aspectratio.z=f.aspectratio.z=m[2],r.glplot.setAspectratio(c.aspectratio),r.viewInitial.aspectratio||(r.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),r.viewInitial.aspectmode||(r.viewInitial.aspectmode=c.aspectmode);var N=c.domain||null,F=t._size||null;if(N&&F){var B=r.container.style;B.position="absolute",B.left=F.l+N.x[0]*F.w+"px",B.top=F.t+(1-N.y[1])*F.h+"px",B.width=F.w*(N.x[1]-N.x[0])+"px",B.height=F.h*(N.y[1]-N.y[0])+"px"}r.glplot.redraw()}},w.destroy=function(){var e=this;e.glplot&&(e.camera.mouseListener.enabled=!1,e.container.removeEventListener("wheel",e.camera.wheelListener),e.camera=null,e.glplot.dispose(),e.container.parentNode.removeChild(e.container),e.glplot=null)},w.getCamera=function(){var e=this;return e.camera.view.recalcMatrix(e.camera.view.lastT()),M(e.camera)},w.setViewport=function(e){var t=this,n=e.camera;t.camera.lookAt.apply(this,O(n)),t.glplot.setAspectratio(e.aspectratio);var r="orthographic"===n.projection.type,a=t.camera._ortho;r!==a&&(t.glplot.redraw(),t.glplot.clearRGBA(),t.glplot.dispose(),t.initializeGLPlot())},w.isCameraChanged=function(e){var t=this,n=t.getCamera(),r=f.nestedProperty(e,t.id+".camera"),a=r.get();function o(e,t,n,r){var a=["up","center","eye"],o=["x","y","z"];return t[a[n]]&&e[a[n]][o[r]]===t[a[n]][o[r]]}var i=!1;if(void 0===a)i=!0;else{for(var l=0;l<3;l++)for(var s=0;s<3;s++)if(!o(n,a,l,s)){i=!0;break}(!a.projection||n.projection&&n.projection.type!==a.projection.type)&&(i=!0)}return i},w.isAspectChanged=function(e){var t=this,n=t.glplot.getAspectratio(),r=f.nestedProperty(e,t.id+".aspectratio"),a=r.get();return void 0===a||a.x!==n.x||a.y!==n.y||a.z!==n.z},w.saveLayout=function(e){var t,n,r,a,o,i,l=this,s=l.fullLayout,u=l.isCameraChanged(e),p=l.isAspectChanged(e),d=u||p;if(d){var h={};if(u&&(t=l.getCamera(),n=f.nestedProperty(e,l.id+".camera"),r=n.get(),h[l.id+".camera"]=r),p&&(a=l.glplot.getAspectratio(),o=f.nestedProperty(e,l.id+".aspectratio"),i=o.get(),h[l.id+".aspectratio"]=i),c.call("_storeDirectGUIEdit",e,s._preGUI,h),u){n.set(t);var v=f.nestedProperty(s,l.id+".camera");v.set(t)}if(p){o.set(a);var m=f.nestedProperty(s,l.id+".aspectratio");m.set(a),l.glplot.redraw()}}return d},w.updateFx=function(e,t){var n=this,r=n.camera;if(r)if("orbit"===e)r.mode="orbit",r.keyBindingMode="rotate";else if("turntable"===e){r.up=[0,0,1],r.mode="turntable",r.keyBindingMode="rotate";var a=n.graphDiv,o=a._fullLayout,i=n.fullSceneLayout.camera,l=i.up.x,s=i.up.y,u=i.up.z;if(u/Math.sqrt(l*l+s*s+u*u)<.999){var p=n.id+".camera.up",d={x:0,y:0,z:1},h={};h[p]=d;var v=a.layout;c.call("_storeDirectGUIEdit",v,o._preGUI,h),i.up=d,f.nestedProperty(v,p).set(d)}}else r.keyBindingMode=e;n.fullSceneLayout.hovermode=t},w.toImage=function(e){var t=this;e||(e="png"),t.staticMode&&t.container.appendChild(r),t.glplot.redraw();var n=t.glplot.gl,a=n.drawingBufferWidth,o=n.drawingBufferHeight;n.bindFramebuffer(n.FRAMEBUFFER,null);var i=new Uint8Array(a*o*4);n.readPixels(0,0,a,o,n.RGBA,n.UNSIGNED_BYTE,i),S(i,a,o),C(i,a,o);var l=document.createElement("canvas");l.width=a,l.height=o;var s,u=l.getContext("2d"),c=u.createImageData(a,o);switch(c.data.set(i),u.putImageData(c,0,0),e){case"jpeg":s=l.toDataURL("image/jpeg");break;case"webp":s=l.toDataURL("image/webp");break;default:s=l.toDataURL("image/png")}return t.staticMode&&t.container.removeChild(r),s},w.setConvert=function(){for(var e=this,t=0;t<3;t++){var n=e.fullSceneLayout[k[t]];p.setConvert(n,e.fullLayout),n.setScale=f.noop}},w.make4thDimension=function(){var e=this,t=e.graphDiv,n=t._fullLayout;e._mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},p.setConvert(e._mockAxis,n)},t.exports=_},{"../../components/fx":655,"../../lib":750,"../../lib/show_no_webgl_msg":771,"../../lib/str2rgbarray":773,"../../plots/cartesian/axes":799,"../../registry":882,"./layout/convert":845,"./layout/spikes":848,"./layout/tick_marks":849,"./project":850,"gl-plot3d":301,"has-passive-events":415,"is-mobile":441,"webgl-context":578}],852:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){r=r||e.length;for(var a=new Array(r),o=0;o<r;o++)a[o]=[e[o],t[o],n[o]];return a}},{}],853:[function(e,t,n){"use strict";var r=e("./font_attributes"),a=e("./animation_attributes"),o=e("../components/color/attributes"),i=e("../components/shapes/draw_newshape/attributes"),l=e("./pad_attributes"),s=e("../lib/extend").extendFlat,u=r({editType:"calc"});u.family.dflt='"Open Sans", verdana, arial, sans-serif',u.size.dflt=12,u.color.dflt=o.defaultLine,t.exports={font:u,title:{text:{valType:"string",editType:"layoutstyle"},font:r({editType:"layoutstyle"}),xref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},yref:{valType:"enumerated",dflt:"container",values:["container","paper"],editType:"layoutstyle"},x:{valType:"number",min:0,max:1,dflt:.5,editType:"layoutstyle"},y:{valType:"number",min:0,max:1,dflt:"auto",editType:"layoutstyle"},xanchor:{valType:"enumerated",dflt:"auto",values:["auto","left","center","right"],editType:"layoutstyle"},yanchor:{valType:"enumerated",dflt:"auto",values:["auto","top","middle","bottom"],editType:"layoutstyle"},pad:s(l({editType:"layoutstyle"}),{}),editType:"layoutstyle"},uniformtext:{mode:{valType:"enumerated",values:[!1,"hide","show"],dflt:!1,editType:"plot"},minsize:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"plot"},autosize:{valType:"boolean",dflt:!1,editType:"none"},width:{valType:"number",min:10,dflt:700,editType:"plot"},height:{valType:"number",min:10,dflt:450,editType:"plot"},margin:{l:{valType:"number",min:0,dflt:80,editType:"plot"},r:{valType:"number",min:0,dflt:80,editType:"plot"},t:{valType:"number",min:0,dflt:100,editType:"plot"},b:{valType:"number",min:0,dflt:80,editType:"plot"},pad:{valType:"number",min:0,dflt:0,editType:"plot"},autoexpand:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},computed:{valType:"any",editType:"none"},paper_bgcolor:{valType:"color",dflt:o.background,editType:"plot"},plot_bgcolor:{valType:"color",dflt:o.background,editType:"layoutstyle"},separators:{valType:"string",editType:"plot"},hidesources:{valType:"boolean",dflt:!1,editType:"plot"},showlegend:{valType:"boolean",editType:"legend"},colorway:{valType:"colorlist",dflt:o.defaults,editType:"calc"},datarevision:{valType:"any",editType:"calc"},uirevision:{valType:"any",editType:"none"},editrevision:{valType:"any",editType:"none"},selectionrevision:{valType:"any",editType:"none"},template:{valType:"any",editType:"calc"},modebar:{orientation:{valType:"enumerated",values:["v","h"],dflt:"h",editType:"modebar"},bgcolor:{valType:"color",editType:"modebar"},color:{valType:"color",editType:"modebar"},activecolor:{valType:"color",editType:"modebar"},uirevision:{valType:"any",editType:"none"},editType:"modebar"},newshape:i.newshape,activeshape:i.activeshape,meta:{valType:"any",arrayOk:!0,editType:"plot"},transition:s({},a.transition,{editType:"none"}),_deprecated:{title:{valType:"string",editType:"layoutstyle"},titlefont:r({editType:"layoutstyle"})}}},{"../components/color/attributes":614,"../components/shapes/draw_newshape/attributes":697,"../lib/extend":740,"./animation_attributes":793,"./font_attributes":827,"./pad_attributes":861}],854:[function(e,t,n){"use strict";var r="1.10.1",a={"open-street-map":{id:"osm",version:8,sources:{"plotly-osm-tiles":{type:"raster",attribution:'<a href="http://www.openstreetmap.org/about/" target="_blank">© OpenStreetMap</a>',tiles:["https://a.tile.openstreetmap.org/{z}/{x}/{y}.png","https://b.tile.openstreetmap.org/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-osm-tiles",type:"raster",source:"plotly-osm-tiles",minzoom:0,maxzoom:22}]},"white-bg":{id:"white-bg",version:8,sources:{},layers:[{id:"white-bg",type:"background",paint:{"background-color":"#FFFFFF"},minzoom:0,maxzoom:22}]},"carto-positron":{id:"carto-positron",version:8,sources:{"plotly-carto-positron":{type:"raster",attribution:'<a href="https://carto.com/" target="_blank">© CARTO</a>',tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-positron",type:"raster",source:"plotly-carto-positron",minzoom:0,maxzoom:22}]},"carto-darkmatter":{id:"carto-darkmatter",version:8,sources:{"plotly-carto-darkmatter":{type:"raster",attribution:'<a href="https://carto.com/" target="_blank">© CARTO</a>',tiles:["https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-carto-darkmatter",type:"raster",source:"plotly-carto-darkmatter",minzoom:0,maxzoom:22}]},"stamen-terrain":{id:"stamen-terrain",version:8,sources:{"plotly-stamen-terrain":{type:"raster",attribution:'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> | Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',tiles:["https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-terrain",type:"raster",source:"plotly-stamen-terrain",minzoom:0,maxzoom:22}]},"stamen-toner":{id:"stamen-toner",version:8,sources:{"plotly-stamen-toner":{type:"raster",attribution:'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> | Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://www.openstreetmap.org/copyright">ODbL</a>.',tiles:["https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-toner",type:"raster",source:"plotly-stamen-toner",minzoom:0,maxzoom:22}]},"stamen-watercolor":{id:"stamen-watercolor",version:8,sources:{"plotly-stamen-watercolor":{type:"raster",attribution:'Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a> | Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.',tiles:["https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png"],tileSize:256}},layers:[{id:"plotly-stamen-watercolor",type:"raster",source:"plotly-stamen-watercolor",minzoom:0,maxzoom:22}]}},o=Object.keys(a);t.exports={requiredVersion:r,styleUrlPrefix:"mapbox://styles/mapbox/",styleUrlSuffix:"v9",styleValuesMapbox:["basic","streets","outdoors","light","dark","satellite","satellite-streets"],styleValueDflt:"basic",stylesNonMapbox:a,styleValuesNonMapbox:o,traceLayerPrefix:"plotly-trace-layer-",layoutLayerPrefix:"plotly-layout-layer-",wrongVersionErrorMsg:["Your custom plotly.js bundle is not using the correct mapbox-gl version","Please install mapbox-gl@"+r+"."].join("\n"),noAccessTokenErrorMsg:["Missing Mapbox access token.","Mapbox trace type require a Mapbox access token to be registered.","For example:"," Plotly.plot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });","More info here: https://www.mapbox.com/help/define-access-token/"].join("\n"),missingStyleErrorMsg:["No valid mapbox style found, please set `mapbox.style` to one of:",o.join(", "),"or register a Mapbox access token to use a Mapbox-served style."].join("\n"),multipleTokensErrorMsg:["Set multiple mapbox access token across different mapbox subplot,","using first token found as mapbox-gl does not allow multipleaccess tokens on the same page."].join("\n"),mapOnErrorMsg:"Mapbox error.",mapboxLogo:{path0:"m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z",path1:"M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z",path2:"M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z",polygon:"11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34"},styleRules:{map:"overflow:hidden;position:relative;","missing-css":"display:none;",canary:"background-color:salmon;","ctrl-bottom-left":"position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;","ctrl-bottom-right":"position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;",ctrl:"clear: both; pointer-events: auto; transform: translate(0, 0);","ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner":"display: none;","ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner":"display: block; margin-top:2px","ctrl-attrib.mapboxgl-compact:hover":"padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;","ctrl-attrib.mapboxgl-compact::after":'content: ""; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E %3Cpath fill="%23333333" fill-rule="evenodd" d="M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0"/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',"ctrl-attrib.mapboxgl-compact":"min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;","ctrl-bottom-right > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; right: 0","ctrl-bottom-left > .mapboxgl-ctrl-attrib.mapboxgl-compact::after":"bottom: 0; left: 0","ctrl-bottom-left .mapboxgl-ctrl":"margin: 0 0 10px 10px; float: left;","ctrl-bottom-right .mapboxgl-ctrl":"margin: 0 10px 10px 0; float: right;","ctrl-attrib":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a":"color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px","ctrl-attrib a:hover":"color: inherit; text-decoration: underline;","ctrl-attrib .mapbox-improve-map":"font-weight: bold; margin-left: 2px;","attrib-empty":"display: none;","ctrl-logo":'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version="1.0" encoding="utf-8"?%3E %3Csvg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 21 21" style="enable-background:new 0 0 21 21;" xml:space="preserve"%3E%3Cg transform="translate(0,0.01)"%3E%3Cpath d="m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z" style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3Cpath d="M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpath d="M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z" style="opacity:0.35;enable-background:new" class="st1"/%3E%3Cpolygon points="11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 " style="opacity:0.9;fill:%23ffffff;enable-background:new" class="st0"/%3E%3C/g%3E%3C/svg%3E\')'}}},{}],855:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){var n,a=e.split(" "),o=a[0],i=a[1],l=r.isArrayOrTypedArray(t)?r.mean(t):t,s=.5+l/100,u=1.5+l/100,c=["",""],f=[0,0];switch(o){case"top":c[0]="top",f[1]=-u;break;case"bottom":c[0]="bottom",f[1]=u;break}switch(i){case"left":c[1]="right",f[0]=-s;break;case"right":c[1]="left",f[0]=s;break}return n=c[0]&&c[1]?c.join("-"):c[0]?c[0]:c[1]?c[1]:"center",{anchor:n,offset:f}}},{"../../lib":750}],856:[function(e,t,n){"use strict";var r=e("mapbox-gl"),a=e("../../lib"),o=e("../../plots/get_data").getSubplotCalcData,i=e("../../constants/xmlns_namespaces"),l=e("d3"),s=e("../../components/drawing"),u=e("../../lib/svg_text_utils"),c=e("./mapbox"),f="mapbox",p=n.constants=e("./constants");function d(e,t){var n=e._fullLayout,r=e._context;if(""===r.mapboxAccessToken)return"";for(var o=[],i=[],l=!1,s=!1,u=0;u<t.length;u++){var c=n[t[u]],f=c.accesstoken;h(c.style)&&(f?a.pushUnique(o,f):(h(c._input.style)&&(a.error("Uses Mapbox map style, but did not set an access token."),l=!0),s=!0)),f&&a.pushUnique(i,f)}if(s){var d=l?p.noAccessTokenErrorMsg:p.missingStyleErrorMsg;throw a.error(d),new Error(d)}return o.length?(o.length>1&&a.warn(p.multipleTokensErrorMsg),o[0]):(i.length&&a.log(["Listed mapbox access token(s)",i.join(","),"but did not use a Mapbox map style, ignoring token(s)."].join(" ")),"")}function h(e){return"string"===typeof e&&(-1!==p.styleValuesMapbox.indexOf(e)||0===e.indexOf("mapbox://"))}n.name=f,n.attr="subplot",n.idRoot=f,n.idRegex=n.attrRegex=a.counterRegex(f),n.attributes={subplot:{valType:"subplotid",dflt:"mapbox",editType:"calc"}},n.layoutAttributes=e("./layout_attributes"),n.supplyLayoutDefaults=e("./layout_defaults"),n.plot=function(e){var t=e._fullLayout,n=e.calcdata,i=t._subplots[f];if(r.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var l=d(e,i);r.accessToken=l;for(var s=0;s<i.length;s++){var u=i[s],h=o(n,f,u),v=t[u],m=v._subplot;m||(m=new c(e,u),t[u]._subplot=m),m.viewInitial||(m.viewInitial={center:a.extendFlat({},v.center),zoom:v.zoom,bearing:v.bearing,pitch:v.pitch}),m.plot(h,t,e._promises)}},n.clean=function(e,t,n,r){for(var a=r._subplots[f]||[],o=0;o<a.length;o++){var i=a[o];!t[i]&&r[i]._subplot&&r[i]._subplot.destroy()}},n.toSVG=function(e){for(var t=e._fullLayout,n=t._subplots[f],r=t._size,a=0;a<n.length;a++){var o=t[n[a]],c=o.domain,d=o._subplot,h=d.toImage("png"),v=t._glimages.append("svg:image");v.attr({xmlns:i.svg,"xlink:href":h,x:r.l+r.w*c.x[0],y:r.t+r.h*(1-c.y[1]),width:r.w*(c.x[1]-c.x[0]),height:r.h*(c.y[1]-c.y[0]),preserveAspectRatio:"none"});var m=l.select(o._subplot.div),y=null===m.select(".mapboxgl-ctrl-logo").node().offsetParent;if(!y){var g=t._glimages.append("g");g.attr("transform","translate("+(r.l+r.w*c.x[0]+10)+", "+(r.t+r.h*(1-c.y[0])-31)+")"),g.append("path").attr("d",p.mapboxLogo.path0).style({opacity:.9,fill:"#ffffff","enable-background":"new"}),g.append("path").attr("d",p.mapboxLogo.path1).style("opacity",.35).style("enable-background","new"),g.append("path").attr("d",p.mapboxLogo.path2).style("opacity",.35).style("enable-background","new"),g.append("polygon").attr("points",p.mapboxLogo.polygon).style({opacity:.9,fill:"#ffffff","enable-background":"new"})}var b=m.select(".mapboxgl-ctrl-attrib").text().replace("Improve this map",""),x=t._glimages.append("g"),_=x.append("text");_.text(b).classed("static-attribution",!0).attr({"font-size":12,"font-family":"Arial",color:"rgba(0, 0, 0, 0.75)","text-anchor":"end","data-unformatted":b});var w=s.bBox(_.node()),k=r.w*(c.x[1]-c.x[0]);if(w.width>k/2){var T=b.split("|").join("<br>");_.text(T).attr("data-unformatted",T).call(u.convertToTspans,e),w=s.bBox(_.node())}_.attr("transform","translate(-3, "+(8-w.height)+")"),x.insert("rect",".static-attribution").attr({x:-w.width-6,y:-w.height-3,width:w.width+6,height:w.height+3,fill:"rgba(255, 255, 255, 0.75)"});var E=1;w.width+6>k&&(E=k/(w.width+6));var O=[r.l+r.w*c.x[1],r.t+r.h*(1-c.y[0])];x.attr("transform","translate("+O[0]+","+O[1]+") scale("+E+")")}},n.updateFx=function(e){for(var t=e._fullLayout,n=t._subplots[f],r=0;r<n.length;r++){var a=t[n[r]]._subplot;a.updateFx(t)}}},{"../../components/drawing":637,"../../constants/xmlns_namespaces":726,"../../lib":750,"../../lib/svg_text_utils":774,"../../plots/get_data":836,"./constants":854,"./layout_attributes":858,"./layout_defaults":859,"./mapbox":860,d3:169,"mapbox-gl":447}],857:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../lib/svg_text_utils").sanitizeHTML,o=e("./convert_text_opts"),i=e("./constants");function l(e,t){this.subplot=e,this.uid=e.uid+"-"+t,this.index=t,this.idSource="source-"+this.uid,this.idLayer=i.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var s=l.prototype;function u(e){if(!e.visible)return!1;var t=e.source;if(Array.isArray(t)&&t.length>0){for(var n=0;n<t.length;n++)if("string"!==typeof t[n]||0===t[n].length)return!1;return!0}return r.isPlainObject(t)||"string"===typeof t&&t.length>0}function c(e){var t={},n={};switch(e.type){case"circle":r.extendFlat(n,{"circle-radius":e.circle.radius,"circle-color":e.color,"circle-opacity":e.opacity});break;case"line":r.extendFlat(n,{"line-width":e.line.width,"line-color":e.color,"line-opacity":e.opacity,"line-dasharray":e.line.dash});break;case"fill":r.extendFlat(n,{"fill-color":e.color,"fill-outline-color":e.fill.outlinecolor,"fill-opacity":e.opacity});break;case"symbol":var a=e.symbol,i=o(a.textposition,a.iconsize);r.extendFlat(t,{"icon-image":a.icon+"-15","icon-size":a.iconsize/10,"text-field":a.text,"text-size":a.textfont.size,"text-anchor":i.anchor,"text-offset":i.offset,"symbol-placement":a.placement}),r.extendFlat(n,{"icon-color":e.color,"text-color":a.textfont.color,"text-opacity":e.opacity});break;case"raster":r.extendFlat(n,{"raster-fade-duration":0,"raster-opacity":e.opacity});break}return{layout:t,paint:n}}function f(e){var t,n=e.sourcetype,r=e.source,o={type:n};return"geojson"===n?t="data":"vector"===n?t="string"===typeof r?"url":"tiles":"raster"===n?(t="tiles",o.tileSize=256):"image"===n&&(t="url",o.coordinates=e.coordinates),o[t]=r,e.sourceattribution&&(o.attribution=a(e.sourceattribution)),o}s.update=function(e){this.visible?this.needsNewImage(e)?this.updateImage(e):this.needsNewSource(e)?(this.removeLayer(),this.updateSource(e),this.updateLayer(e)):this.needsNewLayer(e)?this.updateLayer(e):this.updateStyle(e):(this.updateSource(e),this.updateLayer(e)),this.visible=u(e)},s.needsNewImage=function(e){var t=this.subplot.map;return t.getSource(this.idSource)&&"image"===this.sourceType&&"image"===e.sourcetype&&(this.source!==e.source||JSON.stringify(this.coordinates)!==JSON.stringify(e.coordinates))},s.needsNewSource=function(e){return this.sourceType!==e.sourcetype||this.source!==e.source||this.layerType!==e.type},s.needsNewLayer=function(e){return this.layerType!==e.type||this.below!==this.subplot.belowLookup["layout-"+this.index]},s.updateImage=function(e){var t=this.subplot.map;t.getSource(this.idSource).updateImage({url:e.source,coordinates:e.coordinates})},s.updateSource=function(e){var t=this.subplot.map;if(t.getSource(this.idSource)&&t.removeSource(this.idSource),this.sourceType=e.sourcetype,this.source=e.source,u(e)){var n=f(e);t.addSource(this.idSource,n)}},s.updateLayer=function(e){var t,n=this.subplot,r=c(e),a=this.subplot.belowLookup["layout-"+this.index];if("traces"===a)for(var o=n.getMapLayers(),l=0;l<o.length;l++){var s=o[l].id;if("string"===typeof s&&0===s.indexOf(i.traceLayerPrefix)){t=s;break}}else t=a;this.removeLayer(),u(e)&&n.addLayer({id:this.idLayer,source:this.idSource,"source-layer":e.sourcelayer||"",type:e.type,minzoom:e.minzoom,maxzoom:e.maxzoom,layout:r.layout,paint:r.paint},t),this.layerType=e.type,this.below=a},s.updateStyle=function(e){if(u(e)){var t=c(e);this.subplot.setOptions(this.idLayer,"setLayoutProperty",t.layout),this.subplot.setOptions(this.idLayer,"setPaintProperty",t.paint)}},s.removeLayer=function(){var e=this.subplot.map;e.getLayer(this.idLayer)&&e.removeLayer(this.idLayer)},s.dispose=function(){var e=this.subplot.map;e.getLayer(this.idLayer)&&e.removeLayer(this.idLayer),e.getSource(this.idSource)&&e.removeSource(this.idSource)},t.exports=function(e,t,n){var r=new l(e,t);return r.update(n),r}},{"../../lib":750,"../../lib/svg_text_utils":774,"./constants":854,"./convert_text_opts":855}],858:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/color").defaultLine,o=e("../domain").attributes,i=e("../font_attributes"),l=e("../../traces/scatter/attributes").textposition,s=e("../../plot_api/edit_types").overrideAll,u=e("../../plot_api/plot_template").templatedArray,c=e("./constants"),f=i({});f.family.dflt="Open Sans Regular, Arial Unicode MS Regular";var p=t.exports=s({_arrayAttrRegexps:[r.counterRegex("mapbox",".layers",!0)],domain:o({name:"mapbox"}),accesstoken:{valType:"string",noBlank:!0,strict:!0},style:{valType:"any",values:c.styleValuesMapbox.concat(c.styleValuesNonMapbox),dflt:c.styleValueDflt},center:{lon:{valType:"number",dflt:0},lat:{valType:"number",dflt:0}},zoom:{valType:"number",dflt:1},bearing:{valType:"number",dflt:0},pitch:{valType:"number",dflt:0},layers:u("layer",{visible:{valType:"boolean",dflt:!0},sourcetype:{valType:"enumerated",values:["geojson","vector","raster","image"],dflt:"geojson"},source:{valType:"any"},sourcelayer:{valType:"string",dflt:""},sourceattribution:{valType:"string"},type:{valType:"enumerated",values:["circle","line","fill","symbol","raster"],dflt:"circle"},coordinates:{valType:"any"},below:{valType:"string"},color:{valType:"color",dflt:a},opacity:{valType:"number",min:0,max:1,dflt:1},minzoom:{valType:"number",min:0,max:24,dflt:0},maxzoom:{valType:"number",min:0,max:24,dflt:24},circle:{radius:{valType:"number",dflt:15}},line:{width:{valType:"number",dflt:2},dash:{valType:"data_array"}},fill:{outlinecolor:{valType:"color",dflt:a}},symbol:{icon:{valType:"string",dflt:"marker"},iconsize:{valType:"number",dflt:10},text:{valType:"string",dflt:""},placement:{valType:"enumerated",values:["point","line","line-center"],dflt:"point"},textfont:f,textposition:r.extendFlat({},l,{arrayOk:!1})}})},"plot","from-root");p.uirevision={valType:"any",editType:"none"}},{"../../components/color":615,"../../lib":750,"../../plot_api/edit_types":781,"../../plot_api/plot_template":788,"../../traces/scatter/attributes":1158,"../domain":826,"../font_attributes":827,"./constants":854}],859:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../subplot_defaults"),o=e("../array_container_defaults"),i=e("./layout_attributes");function l(e,t,n,r){n("accesstoken",r.accessToken),n("style"),n("center.lon"),n("center.lat"),n("zoom"),n("bearing"),n("pitch"),o(e,t,{name:"layers",handleItemDefaults:s}),t._input=e}function s(e,t){function n(n,a){return r.coerce(e,t,i.layers,n,a)}var a=n("visible");if(a){var o,l=n("sourcetype"),s="raster"===l||"image"===l;n("source"),n("sourceattribution"),"vector"===l&&n("sourcelayer"),"image"===l&&n("coordinates"),s&&(o="raster");var u=n("type",o);s&&"raster"!==u&&(u=t.type="raster",r.log("Source types *raster* and *image* must drawn *raster* layer type.")),n("below"),n("color"),n("opacity"),n("minzoom"),n("maxzoom"),"circle"===u&&n("circle.radius"),"line"===u&&(n("line.width"),n("line.dash")),"fill"===u&&n("fill.outlinecolor"),"symbol"===u&&(n("symbol.icon"),n("symbol.iconsize"),n("symbol.text"),r.coerceFont(n,"symbol.textfont"),n("symbol.textposition"),n("symbol.placement"))}}t.exports=function(e,t,n){a(e,t,n,{type:"mapbox",attributes:i,handleDefaults:l,partition:"y",accessToken:t._mapboxAccessToken})}},{"../../lib":750,"../array_container_defaults":794,"../subplot_defaults":876,"./layout_attributes":858}],860:[function(e,t,n){"use strict";var r=e("mapbox-gl"),a=e("../../lib"),o=e("../../lib/geo_location_utils"),i=e("../../registry"),l=e("../cartesian/axes"),s=e("../../components/dragelement"),u=e("../../components/fx"),c=e("../../components/dragelement/helpers"),f=c.rectMode,p=c.drawMode,d=c.selectMode,h=e("../cartesian/select").prepSelect,v=e("../cartesian/select").clearSelect,m=e("../cartesian/select").clearSelectionsCache,y=e("../cartesian/select").selectOnClick,g=e("./constants"),b=e("./layers");function x(e,t){this.id=t,this.gd=e;var n=e._fullLayout,r=e._context;this.container=n._glcontainer.node(),this.isStatic=r.staticPlot,this.uid=n._uid+"-"+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(n),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var _=x.prototype;_.plot=function(e,t,n){var r,a=this,o=t[a.id];a.map&&o.accesstoken!==a.accessToken&&(a.map.remove(),a.map=null,a.styleObj=null,a.traceHash={},a.layerList=[]),r=a.map?new Promise((function(n,r){a.updateMap(e,t,n,r)})):new Promise((function(n,r){a.createMap(e,t,n,r)})),n.push(r)},_.createMap=function(e,t,n,a){var i=this,l=t[i.id],s=i.styleObj=k(l.style);i.accessToken=l.accesstoken;var u=i.map=new r.Map({container:i.div,style:s.style,center:E(l.center),zoom:l.zoom,bearing:l.bearing,pitch:l.pitch,interactive:!i.isStatic,preserveDrawingBuffer:i.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new r.AttributionControl({compact:!0}));u._canvas.style.left="0px",u._canvas.style.top="0px",i.rejectOnError(a),i.isStatic||i.initFx(e,t);var c=[];c.push(new Promise((function(e){u.once("load",e)}))),c=c.concat(o.fetchTraceGeoData(e)),Promise.all(c).then((function(){i.fillBelowLookup(e,t),i.updateData(e),i.updateLayout(t),i.resolveOnRender(n)})).catch(a)},_.updateMap=function(e,t,n,r){var a=this,i=a.map,l=t[this.id];a.rejectOnError(r);var s=[],u=k(l.style);JSON.stringify(a.styleObj)!==JSON.stringify(u)&&(a.styleObj=u,i.setStyle(u.style),a.traceHash={},s.push(new Promise((function(e){i.once("styledata",e)})))),s=s.concat(o.fetchTraceGeoData(e)),Promise.all(s).then((function(){a.fillBelowLookup(e,t),a.updateData(e),a.updateLayout(t),a.resolveOnRender(n)})).catch(r)},_.fillBelowLookup=function(e,t){var n,r,a=t[this.id],o=a.layers,i=this.belowLookup={},l=!1;for(n=0;n<e.length;n++){var s=e[n][0].trace,u=s._module;"string"===typeof s.below?r=s.below:u.getBelow&&(r=u.getBelow(s,this)),""===r&&(l=!0),i["trace-"+s.uid]=r||""}for(n=0;n<o.length;n++){var c=o[n];r="string"===typeof c.below?c.below:l?"traces":"",i["layout-"+n]=r}var f,p,d={};for(f in i)r=i[f],d[r]?d[r].push(f):d[r]=[f];for(r in d){var h=d[r];if(h.length>1)for(n=0;n<h.length;n++)f=h[n],0===f.indexOf("trace-")?(p=f.split("trace-")[1],this.traceHash[p]&&(this.traceHash[p].below=null)):0===f.indexOf("layout-")&&(p=f.split("layout-")[1],this.layerList[p]&&(this.layerList[p].below=null))}};var w={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};function k(e){var t={};return a.isPlainObject(e)?(t.id=e.id,t.style=e):"string"===typeof e?(t.id=e,-1!==g.styleValuesMapbox.indexOf(e)?t.style=T(e):g.stylesNonMapbox[e]?t.style=g.stylesNonMapbox[e]:t.style=e):(t.id=g.styleValueDflt,t.style=T(g.styleValueDflt)),t.transition={duration:0,delay:0},t}function T(e){return g.styleUrlPrefix+e+"-"+g.styleUrlSuffix}function E(e){return[e.lon,e.lat]}_.updateData=function(e){var t,n,r,a,o=this.traceHash,i=e.slice().sort((function(e,t){return w[e[0].trace.type]-w[t[0].trace.type]}));for(r=0;r<i.length;r++){var l=i[r];n=l[0].trace,t=o[n.uid];var s=!1;t&&(t.type===n.type?(t.update(l),s=!0):t.dispose()),!s&&n._module&&(o[n.uid]=n._module.plot(this,l))}var u=Object.keys(o);e:for(r=0;r<u.length;r++){var c=u[r];for(a=0;a<e.length;a++)if(n=e[a][0].trace,c===n.uid)continue e;t=o[c],t.dispose(),delete o[c]}},_.updateLayout=function(e){var t=this.map,n=e[this.id];this.dragging||this.wheeling||(t.setCenter(E(n.center)),t.setZoom(n.zoom),t.setBearing(n.bearing),t.setPitch(n.pitch)),this.updateLayers(e),this.updateFramework(e),this.updateFx(e),this.map.resize(),this.gd._context._scrollZoom.mapbox?t.scrollZoom.enable():t.scrollZoom.disable()},_.resolveOnRender=function(e){var t=this.map;t.on("render",(function n(){t.loaded()&&(t.off("render",n),setTimeout(e,10))}))},_.rejectOnError=function(e){var t=this.map;function n(){e(new Error(g.mapOnErrorMsg))}t.once("error",n),t.once("style.error",n),t.once("source.error",n),t.once("tile.error",n),t.once("layer.error",n)},_.createFramework=function(e){var t=this,n=t.div=document.createElement("div");n.id=t.uid,n.style.position="absolute",t.container.appendChild(n),t.xaxis={_id:"x",c2p:function(e){return t.project(e).x}},t.yaxis={_id:"y",c2p:function(e){return t.project(e).y}},t.updateFramework(e),t.mockAxis={type:"linear",showexponent:"all",exponentformat:"B"},l.setConvert(t.mockAxis,e)},_.initFx=function(e,t){var n=this,r=n.gd,a=n.map;function o(){u.loneUnhover(t._hoverlayer)}function l(){var e=n.getView();r.emit("plotly_relayouting",n.getViewEditsWithDerived(e))}a.on("moveend",(function(e){if(n.map){var t=r._fullLayout;if(e.originalEvent||n.wheeling){var a=t[n.id];i.call("_storeDirectGUIEdit",r.layout,t._preGUI,n.getViewEdits(a));var o=n.getView();a._input.center=a.center=o.center,a._input.zoom=a.zoom=o.zoom,a._input.bearing=a.bearing=o.bearing,a._input.pitch=a.pitch=o.pitch,r.emit("plotly_relayout",n.getViewEditsWithDerived(o))}e.originalEvent&&"mouseup"===e.originalEvent.type?n.dragging=!1:n.wheeling&&(n.wheeling=!1),t._rehover&&t._rehover()}})),a.on("wheel",(function(){n.wheeling=!0})),a.on("mousemove",(function(e){var t=n.div.getBoundingClientRect();e.clientX=e.point.x+t.left,e.clientY=e.point.y+t.top,e.target.getBoundingClientRect=function(){return t},n.xaxis.p2c=function(){return e.lngLat.lng},n.yaxis.p2c=function(){return e.lngLat.lat},r._fullLayout._rehover=function(){r._fullLayout._hoversubplot===n.id&&r._fullLayout[n.id]&&u.hover(r,e,n.id)},u.hover(r,e,n.id),r._fullLayout._hoversubplot=n.id})),a.on("dragstart",(function(){n.dragging=!0,o()})),a.on("zoomstart",o),a.on("mouseout",(function(){r._fullLayout._hoversubplot=null})),a.on("drag",l),a.on("zoom",l),a.on("dblclick",(function(){var e=r._fullLayout[n.id];i.call("_storeDirectGUIEdit",r.layout,r._fullLayout._preGUI,n.getViewEdits(e));var t=n.viewInitial;a.setCenter(E(t.center)),a.setZoom(t.zoom),a.setBearing(t.bearing),a.setPitch(t.pitch);var o=n.getView();e._input.center=e.center=o.center,e._input.zoom=e.zoom=o.zoom,e._input.bearing=e.bearing=o.bearing,e._input.pitch=e.pitch=o.pitch,r.emit("plotly_doubleclick",null),r.emit("plotly_relayout",n.getViewEditsWithDerived(o))})),n.clearSelect=function(){m(n.dragOptions),v(n.dragOptions.gd)},n.onClickInPanFn=function(e){return function(t){var a=r._fullLayout.clickmode;a.indexOf("select")>-1&&y(t.originalEvent,r,[n.xaxis],[n.yaxis],n.id,e),a.indexOf("event")>-1&&u.click(r,t.originalEvent)}}},_.updateFx=function(e){var t=this,n=t.map,r=t.gd;if(!t.isStatic){var o,i=e.dragmode;o=f(i)?function(e,n){var r=e.range={};r[t.id]=[u([n.xmin,n.ymin]),u([n.xmax,n.ymax])]}:function(e,n,r){var a=e.lassoPoints={};a[t.id]=r.filtered.map(u)};var l=t.dragOptions;t.dragOptions=a.extendDeep(l||{},{dragmode:e.dragmode,element:t.div,gd:r,plotinfo:{id:t.id,domain:e[t.id].domain,xaxis:t.xaxis,yaxis:t.yaxis,fillRangeItems:o},xaxes:[t.xaxis],yaxes:[t.yaxis],subplot:t.id}),n.off("click",t.onClickInPanHandler),d(i)||p(i)?(n.dragPan.disable(),n.on("zoomstart",t.clearSelect),t.dragOptions.prepFn=function(e,n,r){h(e,n,r,t.dragOptions,i)},s.init(t.dragOptions)):(n.dragPan.enable(),n.off("zoomstart",t.clearSelect),t.div.onmousedown=null,t.onClickInPanHandler=t.onClickInPanFn(t.dragOptions),n.on("click",t.onClickInPanHandler))}function u(e){var n=t.map.unproject(e);return[n.lng,n.lat]}},_.updateFramework=function(e){var t=e[this.id].domain,n=e._size,r=this.div.style;r.width=n.w*(t.x[1]-t.x[0])+"px",r.height=n.h*(t.y[1]-t.y[0])+"px",r.left=n.l+t.x[0]*n.w+"px",r.top=n.t+(1-t.y[1])*n.h+"px",this.xaxis._offset=n.l+t.x[0]*n.w,this.xaxis._length=n.w*(t.x[1]-t.x[0]),this.yaxis._offset=n.t+(1-t.y[1])*n.h,this.yaxis._length=n.h*(t.y[1]-t.y[0])},_.updateLayers=function(e){var t,n=e[this.id],r=n.layers,a=this.layerList;if(r.length!==a.length){for(t=0;t<a.length;t++)a[t].dispose();for(a=this.layerList=[],t=0;t<r.length;t++)a.push(b(this,t,r[t]))}else for(t=0;t<r.length;t++)a[t].update(r[t])},_.destroy=function(){this.map&&(this.map.remove(),this.map=null,this.container.removeChild(this.div))},_.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},_.setOptions=function(e,t,n){for(var r in n)this.map[t](e,r,n[r])},_.getMapLayers=function(){return this.map.getStyle().layers},_.addLayer=function(e,t){var n=this.map;if("string"===typeof t){if(""===t)return void n.addLayer(e,t);for(var r=this.getMapLayers(),o=0;o<r.length;o++)if(t===r[o].id)return void n.addLayer(e,t);a.warn(["Trying to add layer with *below* value",t,"referencing a layer that does not exist","or that does not yet exist."].join(" "))}n.addLayer(e)},_.project=function(e){return this.map.project(new r.LngLat(e[0],e[1]))},_.getView=function(){var e=this.map,t=e.getCenter(),n={lon:t.lng,lat:t.lat},r=e.getCanvas(),a=r.width,o=r.height;return{center:n,zoom:e.getZoom(),bearing:e.getBearing(),pitch:e.getPitch(),_derived:{coordinates:[e.unproject([0,0]).toArray(),e.unproject([a,0]).toArray(),e.unproject([a,o]).toArray(),e.unproject([0,o]).toArray()]}}},_.getViewEdits=function(e){for(var t=this.id,n=["center","zoom","bearing","pitch"],r={},a=0;a<n.length;a++){var o=n[a];r[t+"."+o]=e[o]}return r},_.getViewEditsWithDerived=function(e){var t=this.id,n=this.getViewEdits(e);return n[t+"._derived"]=e._derived,n},t.exports=x},{"../../components/dragelement":634,"../../components/dragelement/helpers":633,"../../components/fx":655,"../../lib":750,"../../lib/geo_location_utils":743,"../../registry":882,"../cartesian/axes":799,"../cartesian/select":818,"./constants":854,"./layers":857,"mapbox-gl":447}],861:[function(e,t,n){"use strict";t.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,editType:t},r:{valType:"number",dflt:0,editType:t},b:{valType:"number",dflt:0,editType:t},l:{valType:"number",dflt:0,editType:t},editType:t}}},{}],862:[function(e,t,n){"use strict";var r=e("d3"),a=e("d3-time-format").timeFormatLocale,o=e("fast-isnumeric"),i=e("../registry"),l=e("../plot_api/plot_schema"),s=e("../plot_api/plot_template"),u=e("../lib"),c=e("../components/color"),f=e("../constants/numerical").BADNUM,p=e("./cartesian/axis_ids"),d=e("./cartesian/handle_outline").clearSelect,h=e("./animation_attributes"),v=e("./frame_attributes"),m=e("../plots/get_data").getModuleCalcData,y=u.relinkPrivateKeys,g=u._,b=t.exports={};u.extendFlat(b,i),b.attributes=e("./attributes"),b.attributes.type.values=b.allTypes,b.fontAttrs=e("./font_attributes"),b.layoutAttributes=e("./layout_attributes"),b.fontWeight="normal";var x=b.transformsRegistry,_=e("./command");function w(e,t){t.text("");var n=t.append("a").attr({"xlink:xlink:href":"#",class:"link--impt link--embedview","font-weight":"bold"}).text(e._context.linkText+" "+String.fromCharCode(187));if(e._context.sendData)n.on("click",(function(){b.sendDataToCloud(e)}));else{var r=window.location.pathname.split("/"),a=window.location.search;n.attr({"xlink:xlink:show":"new","xlink:xlink:href":"/"+r[2].split(".")[0]+"/"+r[1]+a})}}b.executeAPICommand=_.executeAPICommand,b.computeAPICommandBindings=_.computeAPICommandBindings,b.manageCommandObserver=_.manageCommandObserver,b.hasSimpleAPICommandBindings=_.hasSimpleAPICommandBindings,b.redrawText=function(e){e=u.getGraphDiv(e);var t=e._fullLayout||{},n=t._has&&t._has("polar"),r=!n&&e.data&&e.data[0]&&e.data[0].r;if(!r)return new Promise((function(t){setTimeout((function(){i.getComponentMethod("annotations","draw")(e),i.getComponentMethod("legend","draw")(e),i.getComponentMethod("colorbar","draw")(e),t(b.previousPromises(e))}),300)}))},b.resize=function(e){var t;e=u.getGraphDiv(e);var n=new Promise((function(n,r){e&&!u.isHidden(e)||r(new Error("Resize must be passed a displayed plot div element.")),e._redrawTimer&&clearTimeout(e._redrawTimer),e._resolveResize&&(t=e._resolveResize),e._resolveResize=n,e._redrawTimer=setTimeout((function(){if(!e.layout||e.layout.width&&e.layout.height||u.isHidden(e))n(e);else{delete e.layout.width,delete e.layout.height;var t=e.changed;e.autoplay=!0,i.call("relayout",e,{autosize:!0}).then((function(){e.changed=t,e._resolveResize===n&&(delete e._resolveResize,n(e))}))}}),100)}));return t&&t(n),n},b.previousPromises=function(e){if((e._promises||[]).length)return Promise.all(e._promises).then((function(){e._promises=[]}))},b.addLinks=function(e){if(e._context.showLink||e._context.showSources){var t=e._fullLayout,n=u.ensureSingle(t._paper,"text","js-plot-link-container",(function(e){e.style({"font-family":'"Open Sans", Arial, sans-serif',"font-size":"12px",fill:c.defaultLine,"pointer-events":"all"}).each((function(){var e=r.select(this);e.append("tspan").classed("js-link-to-tool",!0),e.append("tspan").classed("js-link-spacer",!0),e.append("tspan").classed("js-sourcelinks",!0)}))})),a=n.node(),o={y:t._paper.attr("height")-9};document.body.contains(a)&&a.getComputedTextLength()>=t.width-20?(o["text-anchor"]="start",o.x=5):(o["text-anchor"]="end",o.x=t._paper.attr("width")-7),n.attr(o);var i=n.select(".js-link-to-tool"),l=n.select(".js-link-spacer"),s=n.select(".js-sourcelinks");e._context.showSources&&e._context.showSources(e),e._context.showLink&&w(e,i),l.text(i.text()&&s.text()?" - ":"")}},b.sendDataToCloud=function(e){var t=(window.PLOTLYENV||{}).BASE_URL||e._context.plotlyServerURL;if(t){e.emit("plotly_beforeexport");var n=r.select(e).append("div").attr("id","hiddenform").style("display","none"),a=n.append("form").attr({action:t+"/external",method:"post",target:"_blank"}),o=a.append("input").attr({type:"text",name:"data"});return o.node().value=b.graphJson(e,!1,"keepdata"),a.node().submit(),n.remove(),e.emit("plotly_afterexport"),!1}};var k=["days","shortDays","months","shortMonths","periods","dateTime","date","time","decimal","thousands","grouping","currency"],T=["year","month","dayMonth","dayMonthYear"];function E(e,t){var n,r,a=t.length,o=[];for(n=0;n<e.length;n++){var i=e[n]._fullInput;i!==r&&o.push(i),r=i}var l=o.length,s=new Array(a),c={};function f(e,t){s[t]=e,c[e]=1}function p(e,t){if(e&&"string"===typeof e&&!c[e])return f(e,t),!0}for(n=0;n<a;n++){var d=t[n].uid;"number"===typeof d&&(d=String(d)),p(d,n)||(n<l&&p(o[n].uid,n)||f(u.randstr(c),n))}return s}function O(){var e,t,n=i.collectableSubplotTypes,r={};if(!n){n=[];var a=i.subplotsRegistry;for(var o in a){var l=a[o],s=l.attr;if(s&&(n.push(o),Array.isArray(s)))for(t=0;t<s.length;t++)u.pushUnique(n,s[t])}}for(e=0;e<n.length;e++)r[n[e]]=[];return r}function M(e,t){var n=e._context.locale,r=!1,a={};function o(e){for(var n=!0,o=0;o<t.length;o++){var i=t[o];a[i]||(e[i]?a[i]=e[i]:n=!1)}n&&(r=!0)}for(var l=0;l<2;l++){for(var s=e._context.locales,u=0;u<2;u++){var c=(s[n]||{}).format;if(c&&(o(c),r))break;s=i.localeRegistry}var f=n.split("-")[0];if(r||f===n)break;n=f}return r||o(i.localeRegistry.en.format),a}function S(e,t){return e.decimal=t.charAt(0),e.thousands=t.charAt(1),{numberFormat:r.locale(e).numberFormat,timeFormat:a(e).utcFormat}}function C(e,t){var n,r=[];t.meta&&(n=t._meta={meta:t.meta,layout:{meta:t.meta}});for(var a=0;a<e.length;a++){var o=e[a];o.meta?r[o.index]=o._meta={meta:o.meta}:t.meta&&(o._meta={meta:t.meta}),t.meta&&(o._meta.layout={meta:t.meta})}r.length&&(n||(n=t._meta={}),n.data=r)}function A(e,t){var n={_fullLayout:t},r="x"===e._id.charAt(0),a=e._mainAxis._anchorAxis,o="",i="",l="";if(a&&(l=a._mainAxis._id,o=r?e._id+l:l+e._id),!o||!t._plots[o]){o="";for(var s=e._counterAxes,u=0;u<s.length;u++){var c=s[u],f=r?e._id+c:c+e._id;i||(i=f);var d=p.getFromId(n,c);if(l&&d.overlaying===l){o=f;break}}}return o||i}function P(e){var t=e.transforms;if(Array.isArray(t)&&t.length)for(var n=0;n<t.length;n++){var r=t[n],a=r._module||x[r.type];if(a&&a.makesData)return!0}return!1}function L(e,t,n,r){for(var a=e.transforms,o=[e],i=0;i<a.length;i++){var l=a[i],s=x[l.type];s&&s.transform&&(o=s.transform(o,{transform:l,fullTrace:e,fullData:t,layout:n,fullLayout:r,transformIndex:i}))}return o}function D(e){return"string"===typeof e&&"px"===e.substr(e.length-2)&&parseFloat(e)}function j(e){var t=e.margin;if(!e._size){var n=e._size={l:Math.round(t.l),r:Math.round(t.r),t:Math.round(t.t),b:Math.round(t.b),p:Math.round(t.pad)};n.w=Math.round(e.width)-n.l-n.r,n.h=Math.round(e.height)-n.t-n.b}e._pushmargin||(e._pushmargin={}),e._pushmarginIds||(e._pushmarginIds={})}b.supplyDefaults=function(e,t){var n=t&&t.skipUpdateCalc,r=e._fullLayout||{};if(r._skipDefaults)delete r._skipDefaults;else{var a,o=e._fullLayout={},l=e.layout||{},s=e._fullData||[],c=e._fullData=[],f=e.data||[],p=e.calcdata||[],h=e._context||{};e._transitionData||b.createTransitionData(e),o._dfltTitle={plot:g(e,"Click to enter Plot title"),x:g(e,"Click to enter X axis title"),y:g(e,"Click to enter Y axis title"),colorbar:g(e,"Click to enter Colorscale title"),annotation:g(e,"new text")},o._traceWord=g(e,"trace");var v=M(e,k);if(o._mapboxAccessToken=h.mapboxAccessToken,r._initialAutoSizeIsDone){var m=r.width,x=r.height;b.supplyLayoutGlobalDefaults(l,o,v),l.width||(o.width=m),l.height||(o.height=x),b.sanitizeMargins(o)}else{b.supplyLayoutGlobalDefaults(l,o,v);var _=!l.width||!l.height,w=o.autosize,A=h.autosizable,P=_&&(w||A);P?b.plotAutoSize(e,l,o):_&&b.sanitizeMargins(o),!w&&_&&(l.width=o.width,l.height=o.height)}o._d3locale=S(v,o.separators),o._extraFormat=M(e,T),o._initialAutoSizeIsDone=!0,o._dataLength=f.length,o._modules=[],o._visibleModules=[],o._basePlotModules=[];var L=o._subplots=O(),D=o._splomAxes={x:{},y:{}},I=o._splomSubplots={};o._splomGridDflt={},o._scatterStackOpts={},o._firstScatter={},o._alignmentOpts={},o._colorAxes={},o._requestRangeslider={},o._traceUids=E(s,f),o._globalTransforms=(e._context||{}).globalTransforms,b.supplyDataDefaults(f,c,l,o);var R=Object.keys(D.x),z=Object.keys(D.y);if(R.length>1&&z.length>1){for(i.getComponentMethod("grid","sizeDefaults")(l,o),a=0;a<R.length;a++)u.pushUnique(L.xaxis,R[a]);for(a=0;a<z.length;a++)u.pushUnique(L.yaxis,z[a]);for(var N in I)u.pushUnique(L.cartesian,N)}if(o._has=b._hasPlotType.bind(o),s.length===c.length)for(a=0;a<c.length;a++)y(c[a],s[a]);b.supplyLayoutModuleDefaults(l,o,c,e._transitionData);var F=o._visibleModules,B=[];for(a=0;a<F.length;a++){var V=F[a].crossTraceDefaults;V&&u.pushUnique(B,V)}for(a=0;a<B.length;a++)B[a](c,o);o._hasOnlyLargeSploms=1===o._basePlotModules.length&&"splom"===o._basePlotModules[0].name&&R.length>15&&z.length>15&&0===o.shapes.length&&0===o.images.length,o._hasCartesian=o._has("cartesian"),o._hasGeo=o._has("geo"),o._hasGL3D=o._has("gl3d"),o._hasGL2D=o._has("gl2d"),o._hasTernary=o._has("ternary"),o._hasPie=o._has("pie"),b.linkSubplots(c,o,s,r),b.cleanPlot(c,o,s,r);var H=!(!r._has||!r._has("gl2d")),U=!(!o._has||!o._has("gl2d")),W=!(!r._has||!r._has("cartesian")),q=!(!o._has||!o._has("cartesian")),$=W||H,G=q||U;$&&!G?r._bgLayer.remove():G&&!$&&(o._shouldCreateBgLayer=!0),r._zoomlayer&&!e._dragging&&d({_fullLayout:r}),C(c,o),y(o,r),i.getComponentMethod("colorscale","crossTraceDefaults")(c,o),o._preGUI||(o._preGUI={}),o._tracePreGUI||(o._tracePreGUI={});var Y,K=o._tracePreGUI,X={};for(Y in K)X[Y]="old";for(a=0;a<c.length;a++)Y=c[a]._fullInput.uid,X[Y]||(K[Y]={}),X[Y]="new";for(Y in X)"old"===X[Y]&&delete K[Y];j(o),i.getComponentMethod("rangeslider","makeData")(o),n||p.length!==c.length||b.supplyDefaultsUpdateCalc(p,c)}},b.supplyDefaultsUpdateCalc=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],a=(e[n]||[])[0];if(a&&a.trace){var o=a.trace;if(o._hasCalcTransform){var i,l,s,c=o._arrayAttrs;for(i=0;i<c.length;i++)l=c[i],s=u.nestedProperty(o,l).get().slice(),u.nestedProperty(r,l).set(s)}a.trace=r}}},b.createTransitionData=function(e){e._transitionData||(e._transitionData={}),e._transitionData._frames||(e._transitionData._frames=[]),e._transitionData._frameHash||(e._transitionData._frameHash={}),e._transitionData._counter||(e._transitionData._counter=0),e._transitionData._interruptCallbacks||(e._transitionData._interruptCallbacks=[])},b._hasPlotType=function(e){var t,n=this._basePlotModules||[];for(t=0;t<n.length;t++)if(n[t].name===e)return!0;var r=this._modules||[];for(t=0;t<r.length;t++){var a=r[t].name;if(a===e)return!0;var o=i.modules[a];if(o&&o.categories[e])return!0}return!1},b.cleanPlot=function(e,t,n,r){var a,o,i=r._basePlotModules||[];for(a=0;a<i.length;a++){var l=i[a];l.clean&&l.clean(e,t,n,r)}var s=r._has&&r._has("gl"),u=t._has&&t._has("gl");s&&!u&&void 0!==r._glcontainer&&(r._glcontainer.selectAll(".gl-canvas").remove(),r._glcontainer.selectAll(".no-webgl").remove(),r._glcanvas=null);var c=!!r._infolayer;e:for(a=0;a<n.length;a++){var f=n[a],p=f.uid;for(o=0;o<e.length;o++){var d=e[o];if(p===d.uid)continue e}c&&r._infolayer.select(".cb"+p).remove()}},b.linkSubplots=function(e,t,n,r){var a,o,l=r._plots||{},s=t._plots={},c=t._subplots,f={_fullData:e,_fullLayout:t},d=c.cartesian.concat(c.gl2d||[]);for(a=0;a<d.length;a++){var h,v=d[a],m=l[v],y=p.getFromId(f,v,"x"),g=p.getFromId(f,v,"y");for(m?h=s[v]=m:(h=s[v]={},h.id=v),y._counterAxes.push(g._id),g._counterAxes.push(y._id),y._subplotsWith.push(v),g._subplotsWith.push(v),h.xaxis=y,h.yaxis=g,h._hasClipOnAxisFalse=!1,o=0;o<e.length;o++){var b=e[o];if(b.xaxis===h.xaxis._id&&b.yaxis===h.yaxis._id&&!1===b.cliponaxis){h._hasClipOnAxisFalse=!0;break}}}var x,_=p.list(f,null,!0);for(a=0;a<_.length;a++){x=_[a];var w=null;x.overlaying&&(w=p.getFromId(f,x.overlaying),w&&w.overlaying&&(x.overlaying=!1,w=null)),x._mainAxis=w||x,w&&(x.domain=w.domain.slice()),x._anchorAxis="free"===x.anchor?null:p.getFromId(f,x.anchor)}for(a=0;a<_.length;a++)if(x=_[a],x._counterAxes.sort(p.idSort),x._subplotsWith.sort(u.subplotSort),x._mainSubplot=A(x,t),x._counterAxes.length&&(x.spikemode&&-1!==x.spikemode.indexOf("across")||x.automargin&&x.mirror&&"free"!==x.anchor||i.getComponentMethod("rangeslider","isVisible")(x))){var k=1,T=0;for(o=0;o<x._counterAxes.length;o++){var E=p.getFromId(f,x._counterAxes[o]);k=Math.min(k,E.domain[0]),T=Math.max(T,E.domain[1])}k<T&&(x._counterDomainMin=k,x._counterDomainMax=T)}},b.clearExpandedTraceDefaultColors=function(e){var t,n,r;function a(e,r,a,o){n[o]=r,n.length=o+1,"color"===e.valType&&void 0===e.dflt&&t.push(n.join("."))}for(n=[],t=e._module._colorAttrs,t||(e._module._colorAttrs=t=[],l.crawl(e._module.attributes,a)),r=0;r<t.length;r++){var o=u.nestedProperty(e,"_input."+t[r]);o.get()||u.nestedProperty(e,t[r]).set(null)}},b.supplyDataDefaults=function(e,t,n,r){var a,o,l,c=r._modules,f=r._visibleModules,p=r._basePlotModules,d=0,h=0;function v(e){t.push(e);var n=e._module;n&&(u.pushUnique(c,n),!0===e.visible&&u.pushUnique(f,n),u.pushUnique(p,e._module.basePlotModule),d++,!1!==e._input.visible&&h++)}r._transformModules=[];var m={},g=[],x=(n.template||{}).data||{},_=s.traceTemplater(x);for(a=0;a<e.length;a++){if(l=e[a],o=_.newTrace(l),o.uid=r._traceUids[a],b.supplyTraceDefaults(l,o,h,r,a),o.index=a,o._input=l,o._expandedIndex=d,o.transforms&&o.transforms.length)for(var w=!1!==l.visible&&!1===o.visible,k=L(o,t,n,r),T=0;T<k.length;T++){var E=k[T],O={_template:o._template,type:o.type,uid:o.uid+T};w&&!1===E.visible&&delete E.visible,b.supplyTraceDefaults(E,O,d,r,a),y(O,E),O.index=a,O._input=l,O._fullInput=o,O._expandedIndex=d,O._expandedInput=E,v(O)}else o._fullInput=o,o._expandedInput=o,v(o);i.traceIs(o,"carpetAxis")&&(m[o.carpet]=o),i.traceIs(o,"carpetDependent")&&g.push(a)}for(a=0;a<g.length;a++)if(o=t[g[a]],o.visible){var M=m[o.carpet];o._carpet=M,M&&M.visible?(o.xaxis=M.xaxis,o.yaxis=M.yaxis):o.visible=!1}},b.supplyAnimationDefaults=function(e){var t;e=e||{};var n={};function r(t,r){return u.coerce(e||{},n,h,t,r)}if(r("mode"),r("direction"),r("fromcurrent"),Array.isArray(e.frame))for(n.frame=[],t=0;t<e.frame.length;t++)n.frame[t]=b.supplyAnimationFrameDefaults(e.frame[t]||{});else n.frame=b.supplyAnimationFrameDefaults(e.frame||{});if(Array.isArray(e.transition))for(n.transition=[],t=0;t<e.transition.length;t++)n.transition[t]=b.supplyAnimationTransitionDefaults(e.transition[t]||{});else n.transition=b.supplyAnimationTransitionDefaults(e.transition||{});return n},b.supplyAnimationFrameDefaults=function(e){var t={};function n(n,r){return u.coerce(e||{},t,h.frame,n,r)}return n("duration"),n("redraw"),t},b.supplyAnimationTransitionDefaults=function(e){var t={};function n(n,r){return u.coerce(e||{},t,h.transition,n,r)}return n("duration"),n("easing"),t},b.supplyFrameDefaults=function(e){var t={};function n(n,r){return u.coerce(e,t,v,n,r)}return n("group"),n("name"),n("traces"),n("baseframe"),n("data"),n("layout"),t},b.supplyTraceDefaults=function(e,t,n,r,a){var o,l=r.colorway||c.defaults,s=l[n%l.length];function f(n,r){return u.coerce(e,t,b.attributes,n,r)}var p=f("visible");f("type"),f("name",r._traceWord+" "+a),f("uirevision",r.uirevision);var d=b.getModule(t);if(t._module=d,d){var h=d.basePlotModule,v=h.attr,m=h.attributes;if(v&&m){var y=r._subplots,g="";if(p||"gl2d"!==h.name){if(Array.isArray(v))for(o=0;o<v.length;o++){var x=v[o],_=u.coerce(e,t,m,x);y[x]&&u.pushUnique(y[x],_),g+=_}else g=u.coerce(e,t,m,v);y[h.name]&&u.pushUnique(y[h.name],g)}}}return p&&(f("customdata"),f("ids"),f("meta"),i.traceIs(t,"showLegend")?(u.coerce(e,t,d.attributes.showlegend?d.attributes:b.attributes,"showlegend"),f("legendgroup"),t._dfltShowLegend=!0):t._dfltShowLegend=!1,d&&d.supplyDefaults(e,t,s,r),i.traceIs(t,"noOpacity")||f("opacity"),i.traceIs(t,"notLegendIsolatable")&&(t.visible=!!t.visible),i.traceIs(t,"noHover")||(t.hovertemplate||u.coerceHoverinfo(e,t,r),"parcats"!==t.type&&i.getComponentMethod("fx","supplyDefaults")(e,t,s,r)),d&&d.selectPoints&&f("selectedpoints"),b.supplyTransformDefaults(e,t,r)),t},b.hasMakesDataTransform=P,b.supplyTransformDefaults=function(e,t,n){if(t._length||P(e)){var r=n._globalTransforms||[],a=n._transformModules||[];if(Array.isArray(e.transforms)||0!==r.length)for(var o=e.transforms||[],i=r.concat(o),l=t.transforms=[],s=0;s<i.length;s++){var c,f=i[s],p=f.type,d=x[p],h=!(f._module&&f._module===d),v=d&&"function"===typeof d.transform;d||u.warn("Unrecognized transform type "+p+"."),d&&d.supplyDefaults&&(h||v)?(c=d.supplyDefaults(f,t,n,e),c.type=p,c._module=d,u.pushUnique(a,d)):c=u.extendFlat({},f),l.push(c)}}},b.supplyLayoutGlobalDefaults=function(e,t,n){function r(n,r){return u.coerce(e,t,b.layoutAttributes,n,r)}var a=e.template;u.isPlainObject(a)&&(t.template=a,t._template=a.layout,t._dataTemplate=a.data);var o=u.coerceFont(r,"font");r("title.text",t._dfltTitle.plot),u.coerceFont(r,"title.font",{family:o.family,size:Math.round(1.4*o.size),color:o.color}),r("title.xref"),r("title.yref"),r("title.x"),r("title.y"),r("title.xanchor"),r("title.yanchor"),r("title.pad.t"),r("title.pad.r"),r("title.pad.b"),r("title.pad.l");var l=r("uniformtext.mode");l&&r("uniformtext.minsize"),r("autosize",!(e.width&&e.height)),r("width"),r("height"),r("margin.l"),r("margin.r"),r("margin.t"),r("margin.b"),r("margin.pad"),r("margin.autoexpand"),e.width&&e.height&&b.sanitizeMargins(t),i.getComponentMethod("grid","sizeDefaults")(e,t),r("paper_bgcolor"),r("separators",n.decimal+n.thousands),r("hidesources"),r("colorway"),r("datarevision");var s=r("uirevision");r("editrevision",s),r("selectionrevision",s),r("modebar.orientation"),r("modebar.bgcolor",c.addOpacity(t.paper_bgcolor,.5));var f=c.contrast(c.rgb(t.modebar.bgcolor));r("modebar.color",c.addOpacity(f,.3)),r("modebar.activecolor",c.addOpacity(f,.7)),r("modebar.uirevision",s),i.getComponentMethod("shapes","supplyDrawNewShapeDefaults")(e,t,r),r("meta"),u.isPlainObject(e.transition)&&(r("transition.duration"),r("transition.easing"),r("transition.ordering")),i.getComponentMethod("calendars","handleDefaults")(e,t,"calendar"),i.getComponentMethod("fx","supplyLayoutGlobalDefaults")(e,t,r)},b.plotAutoSize=function(e,t,n){var r,a,i=e._context||{},l=i.frameMargins,s=u.isPlotDiv(e);if(s&&e.emit("plotly_autosize"),i.fillFrame)r=window.innerWidth,a=window.innerHeight,document.body.style.overflow="hidden";else{var c=s?window.getComputedStyle(e):{};if(r=D(c.width)||D(c.maxWidth)||n.width,a=D(c.height)||D(c.maxHeight)||n.height,o(l)&&l>0){var f=1-2*l;r=Math.round(f*r),a=Math.round(f*a)}}var p=b.layoutAttributes.width.min,d=b.layoutAttributes.height.min;r<p&&(r=p),a<d&&(a=d);var h=!t.width&&Math.abs(n.width-r)>1,v=!t.height&&Math.abs(n.height-a)>1;(v||h)&&(h&&(n.width=r),v&&(n.height=a)),e._initialAutoSize||(e._initialAutoSize={width:r,height:a}),b.sanitizeMargins(n)},b.supplyLayoutModuleDefaults=function(e,t,n,r){var a,o,l,s=i.componentsRegistry,c=t._basePlotModules,f=i.subplotsRegistry.cartesian;for(a in s)l=s[a],l.includeBasePlot&&l.includeBasePlot(e,t);for(var p in c.length||c.push(f),t._has("cartesian")&&(i.getComponentMethod("grid","contentDefaults")(e,t),f.finalizeSubplots(e,t)),t._subplots)t._subplots[p].sort(u.subplotSort);for(o=0;o<c.length;o++)l=c[o],l.supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,n);var d=t._modules;for(o=0;o<d.length;o++)l=d[o],l.supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,n);var h=t._transformModules;for(o=0;o<h.length;o++)l=h[o],l.supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,n,r);for(a in s)l=s[a],l.supplyLayoutDefaults&&l.supplyLayoutDefaults(e,t,n)},b.purge=function(e){var t=e._fullLayout||{};void 0!==t._glcontainer&&(t._glcontainer.selectAll(".gl-canvas").remove(),t._glcontainer.remove(),t._glcanvas=null),t._modeBar&&t._modeBar.destroy(),e._transitionData&&(e._transitionData._interruptCallbacks&&(e._transitionData._interruptCallbacks.length=0),e._transitionData._animationRaf&&window.cancelAnimationFrame(e._transitionData._animationRaf)),u.clearThrottle(),u.clearResponsive(e),delete e.data,delete e.layout,delete e._fullData,delete e._fullLayout,delete e.calcdata,delete e.framework,delete e.empty,delete e.fid,delete e.undoqueue,delete e.undonum,delete e.autoplay,delete e.changed,delete e._promises,delete e._redrawTimer,delete e._hmlumcount,delete e._hmpixcount,delete e._transitionData,delete e._transitioning,delete e._initialAutoSize,delete e._transitioningWithDuration,delete e._dragging,delete e._dragged,delete e._dragdata,delete e._hoverdata,delete e._snapshotInProgress,delete e._editing,delete e._mouseDownTime,delete e._legendMouseDownTime,e.removeAllListeners&&e.removeAllListeners()},b.style=function(e){var t,n=e._fullLayout._visibleModules,r=[];for(t=0;t<n.length;t++){var a=n[t];a.style&&u.pushUnique(r,a.style)}for(t=0;t<r.length;t++)r[t](e)},b.sanitizeMargins=function(e){if(e&&e.margin){var t,n=e.width,r=e.height,a=e.margin,o=n-(a.l+a.r),i=r-(a.t+a.b);o<0&&(t=(n-1)/(a.l+a.r),a.l=Math.floor(t*a.l),a.r=Math.floor(t*a.r)),i<0&&(t=(r-1)/(a.t+a.b),a.t=Math.floor(t*a.t),a.b=Math.floor(t*a.b))}},b.clearAutoMarginIds=function(e){e._fullLayout._pushmarginIds={}},b.allowAutoMargin=function(e,t){e._fullLayout._pushmarginIds[t]=1},b.autoMargin=function(e,t,n){var r=e._fullLayout,a=r._pushmargin,o=r._pushmarginIds;if(!1!==r.margin.autoexpand){if(n){var i=n.pad;if(void 0===i){var l=r.margin;i=Math.min(12,l.l,l.r,l.t,l.b)}n.l+n.r>.5*r.width&&(u.log("Margin push",t,"is too big in x, dropping"),n.l=n.r=0),n.b+n.t>.5*r.height&&(u.log("Margin push",t,"is too big in y, dropping"),n.b=n.t=0);var s=void 0!==n.xl?n.xl:n.x,c=void 0!==n.xr?n.xr:n.x,f=void 0!==n.yt?n.yt:n.y,p=void 0!==n.yb?n.yb:n.y;a[t]={l:{val:s,size:n.l+i},r:{val:c,size:n.r+i},b:{val:p,size:n.b+i},t:{val:f,size:n.t+i}},o[t]=1}else delete a[t],delete o[t];if(!r._replotting)return b.doAutoMargin(e)}},b.doAutoMargin=function(e){var t=e._fullLayout;t._size||(t._size={}),j(t);var n=t._size,r=t.margin,a=u.extendFlat({},n),l=r.l,s=r.r,c=r.t,f=r.b,p=t.width,d=t.height,h=t._pushmargin,v=t._pushmarginIds;if(!1!==t.margin.autoexpand){for(var m in h)v[m]||delete h[m];for(var y in h.base={l:{val:0,size:l},r:{val:1,size:s},t:{val:1,size:c},b:{val:0,size:f}},h){var g=h[y].l||{},x=h[y].b||{},_=g.val,w=g.size,k=x.val,T=x.size;for(var E in h){if(o(w)&&h[E].r){var O=h[E].r.val,M=h[E].r.size;if(O>_){var S=(w*O+(M-p)*_)/(O-_),C=(M*(1-_)+(w-p)*(1-O))/(O-_);S>=0&&C>=0&&p-(S+C)>0&&S+C>l+s&&(l=S,s=C)}}if(o(T)&&h[E].t){var A=h[E].t.val,P=h[E].t.size;if(A>k){var L=(T*A+(P-d)*k)/(A-k),D=(P*(1-k)+(T-d)*(1-A))/(A-k);L>=0&&D>=0&&d-(D+L)>0&&L+D>f+c&&(f=L,c=D)}}}}}if(n.l=Math.round(l),n.r=Math.round(s),n.t=Math.round(c),n.b=Math.round(f),n.p=Math.round(r.pad),n.w=Math.round(p)-n.l-n.r,n.h=Math.round(d)-n.t-n.b,!t._replotting&&b.didMarginChange(a,n)){"_redrawFromAutoMarginCount"in t?t._redrawFromAutoMarginCount++:t._redrawFromAutoMarginCount=1;var I=3*(1+Object.keys(v).length);if(t._redrawFromAutoMarginCount<I)return i.call("plot",e);t._size=a,u.warn("Too many auto-margin redraws.")}};var I=["l","r","t","b","p","w","h"];function R(e,t,n){var r=!1;function a(e){var t=Promise.resolve();if(!e)return t;while(e.length)t=t.then(e.shift());return t}function o(e){if(e)while(e.length)e.shift()}function l(){return e.emit("plotly_transitioning",[]),new Promise((function(a){e._transitioning=!0,t.duration>0&&(e._transitioningWithDuration=!0),e._transitionData._interruptCallbacks.push((function(){r=!0})),n.redraw&&e._transitionData._interruptCallbacks.push((function(){return i.call("redraw",e)})),e._transitionData._interruptCallbacks.push((function(){e.emit("plotly_transitioninterrupted",[])}));var o=0,l=0;function u(){return o++,function(){l++,r||l!==o||s(a)}}n.runFn(u),setTimeout(u())}))}function s(t){if(e._transitionData)return o(e._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(n.redraw)return i.call("redraw",e)})).then((function(){e._transitioning=!1,e._transitioningWithDuration=!1,e.emit("plotly_transitioned",[])})).then(t)}function c(){if(e._transitionData)return e._transitioning=!1,a(e._transitionData._interruptCallbacks)}var f=[b.previousPromises,c,n.prepareFn,b.rehover,l],p=u.syncOrAsync(f,e);return p&&p.then||(p=Promise.resolve()),p.then((function(){return e}))}b.didMarginChange=function(e,t){for(var n=0;n<I.length;n++){var r=I[n],a=e[r],i=t[r];if(!o(a)||Math.abs(i-a)>1)return!0}return!1},b.graphJson=function(e,t,n,r,a,o){(a&&t&&!e._fullData||a&&!t&&!e._fullLayout)&&b.supplyDefaults(e);var i=a?e._fullData:e.data,l=a?e._fullLayout:e.layout,s=(e._transitionData||{})._frames;function c(e,t){if("function"===typeof e)return t?"_function_":null;if(u.isPlainObject(e)){var r,a={};return Object.keys(e).sort().forEach((function(o){if(-1===["_","["].indexOf(o.charAt(0)))if("function"!==typeof e[o]){if("keepdata"===n){if("src"===o.substr(o.length-3))return}else if("keepstream"===n){if(r=e[o+"src"],"string"===typeof r&&r.indexOf(":")>0&&!u.isPlainObject(e.stream))return}else if("keepall"!==n&&(r=e[o+"src"],"string"===typeof r&&r.indexOf(":")>0))return;a[o]=c(e[o],t)}else t&&(a[o]="_function")})),a}return Array.isArray(e)?e.map((function(e){return c(e,t)})):u.isTypedArray(e)?u.simpleMap(e,u.identity):u.isJSDate(e)?u.ms2DateTimeLocal(+e):e}var f={data:(i||[]).map((function(e){var n=c(e);return t&&delete n.fit,n}))};if(!t&&(f.layout=c(l),a)){var p=l._size;f.layout.computed={margin:{b:p.b,l:p.l,r:p.r,t:p.t}}}return e.framework&&e.framework.isPolar&&(f=e.framework.getConfig()),s&&(f.frames=c(s)),o&&(f.config=c(e._context,!0)),"object"===r?f:JSON.stringify(f)},b.modifyFrames=function(e,t){var n,r,a,o=e._transitionData._frames,i=e._transitionData._frameHash;for(n=0;n<t.length;n++)switch(r=t[n],r.type){case"replace":a=r.value;var l=(o[r.index]||{}).name,s=a.name;o[r.index]=i[s]=a,s!==l&&(delete i[l],i[s]=a);break;case"insert":a=r.value,i[a.name]=a,o.splice(r.index,0,a);break;case"delete":a=o[r.index],delete i[a.name],o.splice(r.index,1);break}return Promise.resolve()},b.computeFrame=function(e,t){var n,r,a,o,i=e._transitionData._frameHash;if(!t)throw new Error("computeFrame must be given a string frame name");var l=i[t.toString()];if(!l)return!1;var s=[l],u=[l.name];while(l.baseframe&&(l=i[l.baseframe.toString()])){if(-1!==u.indexOf(l.name))break;s.push(l),u.push(l.name)}var c={};while(l=s.pop())if(l.layout&&(c.layout=b.extendLayout(c.layout,l.layout)),l.data){if(c.data||(c.data=[]),r=l.traces,!r)for(r=[],n=0;n<l.data.length;n++)r[n]=n;for(c.traces||(c.traces=[]),n=0;n<l.data.length;n++)a=r[n],void 0!==a&&null!==a&&(o=c.traces.indexOf(a),-1===o&&(o=c.data.length,c.traces[o]=a),c.data[o]=b.extendTrace(c.data[o],l.data[n]))}return c},b.recomputeFrameHash=function(e){for(var t=e._transitionData._frameHash={},n=e._transitionData._frames,r=0;r<n.length;r++){var a=n[r];a&&a.name&&(t[a.name]=a)}},b.extendObjectWithContainers=function(e,t,n){var r,a,o,i,l,s,c,f,p=u.extendDeepNoArrays({},t||{}),d=u.expandObjectPaths(p),h={};if(n&&n.length)for(o=0;o<n.length;o++)r=u.nestedProperty(d,n[o]),a=r.get(),void 0===a?u.nestedProperty(h,n[o]).set(null):(r.set(null),u.nestedProperty(h,n[o]).set(a));if(e=u.extendDeepNoArrays(e||{},d),n&&n.length)for(o=0;o<n.length;o++)if(l=u.nestedProperty(h,n[o]),c=l.get(),c){for(s=u.nestedProperty(e,n[o]),f=s.get(),Array.isArray(f)||(f=[],s.set(f)),i=0;i<c.length;i++){var v=c[i];f[i]=null===v?null:b.extendObjectWithContainers(f[i],v)}s.set(f)}return e},b.dataArrayContainers=["transforms","dimensions"],b.layoutArrayContainers=i.layoutArrayContainers,b.extendTrace=function(e,t){return b.extendObjectWithContainers(e,t,b.dataArrayContainers)},b.extendLayout=function(e,t){return b.extendObjectWithContainers(e,t,b.layoutArrayContainers)},b.transition=function(e,t,n,r,a,o){var i={redraw:a.redraw},l={},s=[];return i.prepareFn=function(){for(var a=Array.isArray(t)?t.length:0,o=r.slice(0,a),i=0;i<o.length;i++){var c=o[i],f=e._fullData[c],p=f._module;if(p){if(p.animatable){var d=p.basePlotModule.name;l[d]||(l[d]=[]),l[d].push(c)}e.data[o[i]]=b.extendTrace(e.data[o[i]],t[i])}}var h=u.expandObjectPaths(u.extendDeepNoArrays({},n)),v=/^[xy]axis[0-9]*$/;for(var m in h)v.test(m)&&delete h[m].range;b.extendLayout(e.layout,h),delete e.calcdata,b.supplyDefaults(e),b.doCalcdata(e);var y=u.expandObjectPaths(n);if(y){var g=e._fullLayout._plots;for(var x in g){var _=g[x],w=_.xaxis,k=_.yaxis,T=w.range.slice(),E=k.range.slice(),O=null,M=null,S=null,C=null;Array.isArray(y[w._name+".range"])?O=y[w._name+".range"].slice():Array.isArray((y[w._name]||{}).range)&&(O=y[w._name].range.slice()),Array.isArray(y[k._name+".range"])?M=y[k._name+".range"].slice():Array.isArray((y[k._name]||{}).range)&&(M=y[k._name].range.slice()),T&&O&&(w.r2l(T[0])!==w.r2l(O[0])||w.r2l(T[1])!==w.r2l(O[1]))&&(S={xr0:T,xr1:O}),E&&M&&(k.r2l(E[0])!==k.r2l(M[0])||k.r2l(E[1])!==k.r2l(M[1]))&&(C={yr0:E,yr1:M}),(S||C)&&s.push(u.extendFlat({plotinfo:_},S,C))}}return Promise.resolve()},i.runFn=function(t){var r,a,i=e._fullLayout._basePlotModules,c=s.length;if(n)for(a=0;a<i.length;a++)i[a].transitionAxes&&i[a].transitionAxes(e,s,o,t);for(var f in c?(r=u.extendFlat({},o),r.duration=0,delete l.cartesian):r=o,l){var p=l[f],d=e._fullData[p[0]]._module;d.basePlotModule.plot(e,p,r,t)}},R(e,o,i)},b.transitionFromReact=function(e,t,n,r){var a=e._fullLayout,o=a.transition,i={},l=[];return i.prepareFn=function(){var e=a._plots;for(var o in i.redraw=!1,"some"===t.anim&&(i.redraw=!0),"some"===n.anim&&(i.redraw=!0),e){var s=e[o],c=s.xaxis,f=s.yaxis,p=r[c._name].range.slice(),d=r[f._name].range.slice(),h=c.range.slice(),v=f.range.slice();c.setScale(),f.setScale();var m=null,y=null;c.r2l(p[0])===c.r2l(h[0])&&c.r2l(p[1])===c.r2l(h[1])||(m={xr0:p,xr1:h}),f.r2l(d[0])===f.r2l(v[0])&&f.r2l(d[1])===f.r2l(v[1])||(y={yr0:d,yr1:v}),(m||y)&&l.push(u.extendFlat({plotinfo:s},m,y))}return Promise.resolve()},i.runFn=function(n){for(var r,a,i,s=e._fullData,c=e._fullLayout,f=c._basePlotModules,p=[],d=0;d<s.length;d++)p.push(d);function h(){for(var t=0;t<f.length;t++)f[t].transitionAxes&&f[t].transitionAxes(e,l,r,n)}function v(){for(var t=0;t<f.length;t++)f[t].plot(e,i,a,n)}l.length&&t.anim?"traces first"===o.ordering?(r=u.extendFlat({},o,{duration:0}),i=p,a=o,setTimeout(h,o.duration),v()):(r=o,i=null,a=u.extendFlat({},o,{duration:0}),setTimeout(v,r.duration),h()):l.length?(r=o,h()):t.anim&&(i=p,a=o,v())},R(e,o,i)},b.doCalcdata=function(e,t){var n,r,a,o,s=p.list(e),u=e._fullData,c=e._fullLayout,d=new Array(u.length),h=(e.calcdata||[]).slice();for(e.calcdata=d,c._numBoxes=0,c._numViolins=0,c._violinScaleGroupStats={},e._hmpixcount=0,e._hmlumcount=0,c._piecolormap={},c._sunburstcolormap={},c._treemapcolormap={},c._funnelareacolormap={},a=0;a<u.length;a++)Array.isArray(t)&&-1===t.indexOf(a)&&(d[a]=h[a]);for(a=0;a<u.length;a++)n=u[a],n._arrayAttrs=l.findArrayAttributes(n),n._extremes={};var v=c._subplots.polar||[];for(a=0;a<v.length;a++)s.push(c[v[a]].radialaxis,c[v[a]].angularaxis);for(var m in c._colorAxes){var y=c[m];!1!==y.cauto&&(delete y.cmin,delete y.cmax)}var g=!1;function b(t){if(n=u[t],r=n._module,!0===n.visible&&n.transforms){if(r&&r.calc){var a=r.calc(e,n);a[0]&&a[0].t&&a[0].t._scene&&delete a[0].t._scene.dirty}for(o=0;o<n.transforms.length;o++){var i=n.transforms[o];r=x[i.type],r&&r.calcTransform&&(n._hasCalcTransform=!0,g=!0,r.calcTransform(e,n,i))}}}function _(t,a){if(n=u[t],r=n._module,!!r.isContainer===a){var i=[];if(!0===n.visible&&0!==n._length){delete n._indexToPoints;var l=n.transforms||[];for(o=l.length-1;o>=0;o--)if(l[o].enabled){n._indexToPoints=l[o]._indexToPoints;break}r&&r.calc&&(i=r.calc(e,n))}Array.isArray(i)&&i[0]||(i=[{x:f,y:f}]),i[0].t||(i[0].t={}),i[0].trace=n,d[t]=i}}for(F(s,u,c),a=0;a<u.length;a++)_(a,!0);for(a=0;a<u.length;a++)b(a);for(g&&F(s,u,c),a=0;a<u.length;a++)_(a,!0);for(a=0;a<u.length;a++)_(a,!1);B(e);var w=N(s,e);if(w.length){for(c._numBoxes=0,c._numViolins=0,a=0;a<w.length;a++)_(w[a],!0);for(a=0;a<w.length;a++)_(w[a],!1);B(e)}i.getComponentMethod("fx","calc")(e),i.getComponentMethod("errorbars","calc")(e)};var z=/(total|sum|min|max|mean|median) (ascending|descending)/;function N(e,t){var n,r,a,o,l,s=[];function c(e,n,r){var a=n._id.charAt(0);if("histogram2dcontour"===e){var o=n._counterAxes[0],i=p.getFromId(t,o),l="x"===a||"x"===o&&"category"===i.type,s="y"===a||"y"===o&&"category"===i.type;return function(e,t){return 0===e||0===t||l&&e===r[t].length-1||s&&t===r.length-1?-1:("y"===a?t:e)-1}}return function(e,t){return"y"===a?t:e}}var f={min:function(e){return u.aggNums(Math.min,null,e)},max:function(e){return u.aggNums(Math.max,null,e)},sum:function(e){return u.aggNums((function(e,t){return e+t}),null,e)},total:function(e){return u.aggNums((function(e,t){return e+t}),null,e)},mean:function(e){return u.mean(e)},median:function(e){return u.median(e)}};for(n=0;n<e.length;n++){var d=e[n];if("category"===d.type){var h=d.categoryorder.match(z);if(h){var v=h[1],m=h[2],y=[];for(r=0;r<d._categories.length;r++)y.push([d._categories[r],[]]);for(r=0;r<d._traceIndices.length;r++){var g=d._traceIndices[r],b=t._fullData[g],x=d._id.charAt(0);if(!0===b.visible){var _=b.type;i.traceIs(b,"histogram")&&(delete b._xautoBinFinished,delete b._yautoBinFinished);var w=t.calcdata[g];for(a=0;a<w.length;a++){var k,T,E,O=w[a];if("splom"===_){var M=b._axesDim[d._id];if("y"===x){var S=b._diag[M][0];S&&(d=t._fullLayout[p.id2name(S)])}var C=O.trace.dimensions[M].values;for(o=0;o<C.length;o++)for(k=C[o],T=d._categoriesMap[k],l=0;l<O.trace.dimensions.length;l++)if(l!==M){var A=O.trace.dimensions[l];y[T][1].push(A.values[o])}}else if("scattergl"===_){for(o=0;o<O.t.x.length;o++)"x"===x&&(k=O.t.x[o],T=k,E=O.t.y[o]),"y"===x&&(k=O.t.y[o],T=k,E=O.t.x[o]),y[T][1].push(E);O.t&&O.t._scene&&delete O.t._scene.dirty}else if(O.hasOwnProperty("z")){E=O.z;var P=c(b.type,d,E);for(o=0;o<E.length;o++)for(l=0;l<E[o].length;l++)T=P(l,o),T+1&&y[T][1].push(E[o][l])}else for("x"===x?(k=O.p+1?O.p:O.x,E=O.s||O.v||O.y):"y"===x&&(k=O.p+1?O.p:O.y,E=O.s||O.v||O.x),Array.isArray(E)||(E=[E]),o=0;o<E.length;o++)y[k][1].push(E[o])}}}d._categoriesValue=y;var L=[];for(r=0;r<y.length;r++)L.push([y[r][0],f[v](y[r][1])]);L.sort((function(e,t){return e[1]-t[1]})),d._categoriesAggregatedValue=L,d._initialCategories=L.map((function(e){return e[0]})),"descending"===m&&d._initialCategories.reverse(),s=s.concat(d.sortByInitialCategories())}}}return s}function F(e,t,n){var r,a,o,i={};for(r=0;r<e.length;r++)a=e[r],o=a._id,a.clearCalc(),"multicategory"===a.type&&a.setupMultiCategory(t),i[a._id]=1;var l=n._axisMatchGroups||[];for(r=0;r<l.length;r++)for(o in l[r])i[o]||(a=n[p.id2name(o)],a.clearCalc())}function B(e){var t,n,r,a=e._fullLayout,o=a._visibleModules,i={};for(n=0;n<o.length;n++){var l=o[n],s=l.crossTraceCalc;if(s){var c=l.basePlotModule.name;i[c]?u.pushUnique(i[c],s):i[c]=[s]}}for(r in i){var f=i[r],p=a._subplots[r];if(Array.isArray(p))for(t=0;t<p.length;t++){var d=p[t],h="cartesian"===r?a._plots[d]:a[d];for(n=0;n<f.length;n++)f[n](e,h,d)}else for(n=0;n<f.length;n++)f[n](e)}}b.rehover=function(e){e._fullLayout._rehover&&e._fullLayout._rehover()},b.redrag=function(e){e._fullLayout._redrag&&e._fullLayout._redrag()},b.generalUpdatePerTraceModule=function(e,t,n,r){var a,o=t.traceHash,i={};for(a=0;a<n.length;a++){var l=n[a],s=l[0].trace;s.visible&&(i[s.type]=i[s.type]||[],i[s.type].push(l))}for(var c in o)if(!i[c]){var f=o[c][0],p=f[0].trace;p.visible=!1,i[c]=[f]}for(var d in i){var h=i[d],v=h[0][0].trace._module;v.plot(e,t,u.filterVisible(h),r)}t.traceHash=i},b.plotBasePlot=function(e,t,n,r,a){var o=i.getModule(e),l=m(t.calcdata,o)[0];o.plot(t,l,r,a)},b.cleanBasePlot=function(e,t,n,r,a){var o=a._has&&a._has(e),i=n._has&&n._has(e);o&&!i&&a["_"+e+"layer"].selectAll("g.trace").remove()}},{"../components/color":615,"../constants/numerical":725,"../lib":750,"../plot_api/plot_schema":787,"../plot_api/plot_template":788,"../plots/get_data":836,"../registry":882,"./animation_attributes":793,"./attributes":795,"./cartesian/axis_ids":802,"./cartesian/handle_outline":809,"./command":825,"./font_attributes":827,"./frame_attributes":828,"./layout_attributes":853,d3:169,"d3-time-format":166,"fast-isnumeric":241}],863:[function(e,t,n){"use strict";t.exports={attr:"subplot",name:"polar",axisNames:["angularaxis","radialaxis"],axisName2dataArray:{angularaxis:"theta",radialaxis:"r"},layerNames:["draglayer","plotbg","backplot","angular-grid","radial-grid","frontplot","angular-line","radial-line","angular-axis","radial-axis"],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},{}],864:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../lib/polygon").tester,o=r.findIndexOfMin,i=r.isAngleInsideSector,l=r.angleDelta,s=r.angleDist;function u(e,t,n,r,o){if(!i(t,r))return!1;var l,s;n[0]<n[1]?(l=n[0],s=n[1]):(l=n[1],s=n[0]);var u=a(h(l,r[0],r[1],o)),c=a(h(s,r[0],r[1],o)),f=[e*Math.cos(t),e*Math.sin(t)];return c.contains(f)&&!u.contains(f)}function c(e,t,n,r){var a,o,i=r[0],l=r[1],s=y(Math.sin(t)-Math.sin(e)),u=y(Math.cos(t)-Math.cos(e)),c=Math.tan(n),f=y(1/c),p=s/u,d=l-p*i;return f?s&&u?(a=d/(c-p),o=c*a):u?(a=l*f,o=l):(a=i,o=i*c):s&&u?(a=0,o=d):u?(a=0,o=l):a=o=NaN,[a,o]}function f(e,t,n,r){var a=-t*n,o=t*t+1,i=2*(t*a-n),l=a*a+n*n-e*e,s=Math.sqrt(i*i-4*o*l),u=(-i+s)/(2*o),c=(-i-s)/(2*o);return[[u,t*u+a+r],[c,t*c+a+r]]}function p(e,t){var n,r=t.length,a=new Array(r+1);for(n=0;n<r;n++){var o=t[n];a[n]=[e*Math.cos(o),e*Math.sin(o)]}return a[n]=a[0].slice(),a}function d(e,t,n,a){var l,u,f=a.length,p=[];function d(t){return[e*Math.cos(t),e*Math.sin(t)]}function h(e,t,n){return c(e,t,n,d(e))}function v(e){return r.mod(e,f)}function m(e){return i(e,[t,n])}var y=o(a,(function(e){return m(e)?s(e,t):1/0})),g=h(a[y],a[v(y-1)],t);for(p.push(g),l=y,u=0;u<f;l++,u++){var b=a[v(l)];if(!m(b))break;p.push(d(b))}var x=o(a,(function(e){return m(e)?s(e,n):1/0})),_=h(a[x],a[v(x+1)],n);return p.push(_),p.push([0,0]),p.push(p[0].slice()),p}function h(e,t,n,a){return r.isFullCircle([t,n])?p(e,a):d(e,t,n,a)}function v(e,t,n,r){for(var a=1/0,o=1/0,i=h(e,t,n,r),l=0;l<i.length;l++){var s=i[l];a=Math.min(a,s[0]),o=Math.min(o,-s[1])}return[a,o]}function m(e,t){var n=function(t){var n=l(t,e);return n>0?n:1/0},a=o(t,n),i=r.mod(a+1,t.length);return[t[a],t[i]]}function y(e){return Math.abs(e)>1e-10?e:0}function g(e,t,n){t=t||0,n=n||0;for(var r=e.length,a=new Array(r),o=0;o<r;o++){var i=e[o];a[o]=[t+i[0],n-i[1]]}return a}function b(e,t,n,r,a,o){var i=h(e,t,n,r);return"M"+g(i,a,o).join("L")}function x(e,t,n,r,a,o,i){var l,s;e<t?(l=e,s=t):(l=t,s=e);var u=g(h(l,n,r,a),o,i),c=g(h(s,n,r,a),o,i);return"M"+c.reverse().join("L")+"M"+u.join("L")}t.exports={isPtInsidePolygon:u,findPolygonOffset:v,findEnclosingVertexAngles:m,findIntersectionXY:c,findXYatLength:f,clampTiny:y,pathPolygon:b,pathPolygonAnnulus:x}},{"../../lib":750,"../../lib/polygon":762}],865:[function(e,t,n){"use strict";var r=e("../get_data").getSubplotCalcData,a=e("../../lib").counterRegex,o=e("./polar"),i=e("./constants"),l=i.attr,s=i.name,u=a(s),c={};function f(e){for(var t=e._fullLayout,n=e.calcdata,a=t._subplots[s],i=0;i<a.length;i++){var l=a[i],u=r(n,s,l),c=t[l]._subplot;c||(c=o(e,l),t[l]._subplot=c),c.plot(u,t,e._promises)}}function p(e,t,n,r){for(var a=r._subplots[s]||[],o=r._has&&r._has("gl"),i=t._has&&t._has("gl"),l=o&&!i,u=0;u<a.length;u++){var c=a[u],f=r[c]._subplot;if(!t[c]&&f)for(var p in f.framework.remove(),f.layers["radial-axis-title"].remove(),f.clipPaths)f.clipPaths[p].remove();l&&f._scene&&(f._scene.destroy(),f._scene=null)}}c[l]={valType:"subplotid",dflt:s,editType:"calc"},t.exports={attr:l,name:s,idRoot:s,idRegex:u,attrRegex:u,attributes:c,layoutAttributes:e("./layout_attributes"),supplyLayoutDefaults:e("./layout_defaults"),plot:f,clean:p,toSVG:e("../cartesian").toSVG}},{"../../lib":750,"../cartesian":812,"../get_data":836,"./constants":863,"./layout_attributes":866,"./layout_defaults":867,"./polar":874}],866:[function(e,t,n){"use strict";var r=e("../../components/color/attributes"),a=e("../cartesian/layout_attributes"),o=e("../domain").attributes,i=e("../../lib").extendFlat,l=e("../../plot_api/edit_types").overrideAll,s=l({color:a.color,showline:i({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:i({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth},"plot","from-root"),u=l({tickmode:a.tickmode,nticks:a.nticks,tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,layer:a.layer},"plot","from-root"),c={visible:i({},a.visible,{dflt:!0}),type:i({},a.type,{values:["-","linear","log","date","category"]}),autorange:i({},a.autorange,{editType:"plot"}),rangemode:{valType:"enumerated",values:["tozero","nonnegative","normal"],dflt:"tozero",editType:"calc"},range:i({},a.range,{items:[{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}},{valType:"any",editType:"plot",impliedEdits:{"^autorange":!1}}],editType:"plot"}),categoryorder:a.categoryorder,categoryarray:a.categoryarray,angle:{valType:"angle",editType:"plot"},side:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"clockwise",editType:"plot"},title:{text:i({},a.title.text,{editType:"plot",dflt:""}),font:i({},a.title.font,{editType:"plot"}),editType:"plot"},hoverformat:a.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc",_deprecated:{title:a._deprecated.title,titlefont:a._deprecated.titlefont}};i(c,s,u);var f={visible:i({},a.visible,{dflt:!0}),type:{valType:"enumerated",values:["-","linear","category"],dflt:"-",editType:"calc",_noTemplating:!0},categoryorder:a.categoryorder,categoryarray:a.categoryarray,thetaunit:{valType:"enumerated",values:["radians","degrees"],dflt:"degrees",editType:"calc"},period:{valType:"number",editType:"calc",min:0},direction:{valType:"enumerated",values:["counterclockwise","clockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"angle",editType:"calc"},hoverformat:a.hoverformat,uirevision:{valType:"any",editType:"none"},editType:"calc"};i(f,s,u),t.exports={domain:o({name:"polar",editType:"plot"}),sector:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],dflt:[0,360],editType:"plot"},hole:{valType:"number",min:0,max:1,dflt:0,editType:"plot"},bgcolor:{valType:"color",editType:"plot",dflt:r.background},radialaxis:c,angularaxis:f,gridshape:{valType:"enumerated",values:["circular","linear"],dflt:"circular",editType:"plot"},uirevision:{valType:"any",editType:"none"},editType:"calc"}},{"../../components/color/attributes":614,"../../lib":750,"../../plot_api/edit_types":781,"../cartesian/layout_attributes":813,"../domain":826}],867:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/color"),o=e("../../plot_api/plot_template"),i=e("../subplot_defaults"),l=e("../get_data").getSubplotData,s=e("../cartesian/tick_value_defaults"),u=e("../cartesian/tick_mark_defaults"),c=e("../cartesian/tick_label_defaults"),f=e("../cartesian/category_order_defaults"),p=e("../cartesian/line_grid_defaults"),d=e("../cartesian/axis_autotype"),h=e("./layout_attributes"),v=e("./set_convert"),m=e("./constants"),y=m.axisNames;function g(e,t,n,i){var d=n("bgcolor");i.bgColor=a.combine(d,i.paper_bgcolor);var g=n("sector");n("hole");var x,_=l(i.fullData,m.name,i.id),w=i.layoutOut;function k(e,t){return n(x+"."+e,t)}for(var T=0;T<y.length;T++){x=y[T],r.isPlainObject(e[x])||(e[x]={});var E=e[x],O=o.newContainer(t,x);O._id=O._name=x,O._attr=i.id+"."+x,O._traceIndices=_.map((function(e){return e._expandedIndex}));var M=m.axisName2dataArray[x],S=b(E,O,k,_,M);f(E,O,k,{axData:_,dataAttr:M});var C,A,P=k("visible");switch(v(O,t,w),k("uirevision",t.uirevision),P&&(C=k("color"),A=C===E.color?C:i.font.color),O._m=1,x){case"radialaxis":var L=k("autorange",!O.isValidRange(E.range));E.autorange=L,!L||"linear"!==S&&"-"!==S||k("rangemode"),"reversed"===L&&(O._m=-1),k("range"),O.cleanRange("range",{dfltRange:[0,1]}),P&&(k("side"),k("angle",g[0]),k("title.text"),r.coerceFont(k,"title.font",{family:i.font.family,size:Math.round(1.2*i.font.size),color:A}));break;case"angularaxis":if("date"===S){r.log("Polar plots do not support date angular axes yet.");for(var D=0;D<_.length;D++)_[D].visible=!1;S=E.type=O.type="linear"}k("linear"===S?"thetaunit":"period");var j=k("direction");k("rotation",{counterclockwise:0,clockwise:90}[j]);break}if(P){s(E,O,k,O.type),c(E,O,k,O.type,{tickSuffixDflt:"degrees"===O.thetaunit?"°":void 0}),u(E,O,k,{outerTicks:!0});var I=k("showticklabels");I&&(r.coerceFont(k,"tickfont",{family:i.font.family,size:i.font.size,color:A}),k("tickangle"),k("tickformat")),p(E,O,k,{dfltColor:C,bgColor:i.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:h[x]}),k("layer")}"category"!==S&&k("hoverformat"),O._input=E}"category"===t.angularaxis.type&&n("gridshape")}function b(e,t,n,r,a){var o=n("type");if("-"===o){for(var i,l=0;l<r.length;l++)if(r[l].visible){i=r[l];break}i&&i[a]&&(t.type=d(i[a],"gregorian")),"-"===t.type?t.type="linear":e.type=t.type}return t.type}t.exports=function(e,t,n){i(e,t,n,{type:m.name,attributes:h,handleDefaults:g,font:t.font,paper_bgcolor:t.paper_bgcolor,fullData:n,layoutOut:t})}},{"../../components/color":615,"../../lib":750,"../../plot_api/plot_template":788,"../cartesian/axis_autotype":800,"../cartesian/category_order_defaults":803,"../cartesian/line_grid_defaults":815,"../cartesian/tick_label_defaults":820,"../cartesian/tick_mark_defaults":821,"../cartesian/tick_value_defaults":822,"../get_data":836,"../subplot_defaults":876,"./constants":863,"./layout_attributes":866,"./set_convert":875}],868:[function(e,t,n){"use strict";var r=e("../../../traces/scatter/attributes"),a=r.marker,o=e("../../../lib/extend").extendFlat;["Area traces are deprecated!","Please switch to the *barpolar* trace type."].join(" ");t.exports={r:o({},r.r,{}),t:o({},r.t,{}),marker:{color:o({},a.color,{}),size:o({},a.size,{}),symbol:o({},a.symbol,{}),opacity:o({},a.opacity,{}),editType:"calc"}}},{"../../../lib/extend":740,"../../../traces/scatter/attributes":1158}],869:[function(e,t,n){"use strict";var r=e("../../cartesian/layout_attributes"),a=e("../../../lib/extend").extendFlat,o=e("../../../plot_api/edit_types").overrideAll,i=["Legacy polar charts are deprecated!","Please switch to *polar* subplots."].join(" "),l=a({},r.domain,{});function s(e,t){var n={showline:{valType:"boolean"},showticklabels:{valType:"boolean"},tickorientation:{valType:"enumerated",values:["horizontal","vertical"]},ticklen:{valType:"number",min:0},tickcolor:{valType:"color"},ticksuffix:{valType:"string"},endpadding:{valType:"number",description:i},visible:{valType:"boolean"}};return a({},t,n)}t.exports=o({radialaxis:s("radial",{range:{valType:"info_array",items:[{valType:"number"},{valType:"number"}]},domain:l,orientation:{valType:"number"}}),angularaxis:s("angular",{range:{valType:"info_array",items:[{valType:"number",dflt:0},{valType:"number",dflt:360}]},domain:l}),layout:{direction:{valType:"enumerated",values:["clockwise","counterclockwise"]},orientation:{valType:"angle"}}},"plot","nested")},{"../../../lib/extend":740,"../../../plot_api/edit_types":781,"../../cartesian/layout_attributes":813}],870:[function(e,t,n){"use strict";var r=t.exports=e("./micropolar");r.manager=e("./micropolar_manager")},{"./micropolar":871,"./micropolar_manager":872}],871:[function(e,t,n){var r=e("d3"),a=e("../../../lib"),o=a.extendDeepAll,i=e("../../../constants/alignment").MID_SHIFT,l=t.exports={version:"0.2.2"};l.Axis=function(){var e,t,n,a,s={data:[],layout:{}},u={},c={},f=r.dispatch("hover"),p={};function d(u){t=u||t;var f=s.data,d=s.layout;return("string"==typeof t||t.nodeName)&&(t=r.select(t)),t.datum(f).each((function(t,s){var u=t.slice();c={data:l.util.cloneJson(u),layout:l.util.cloneJson(d)};var f=0;u.forEach((function(e,t){e.color||(e.color=d.defaultColorRange[f],f=(f+1)%d.defaultColorRange.length),e.strokeColor||(e.strokeColor="LinePlot"===e.geometry?e.color:r.rgb(e.color).darker().toString()),c.data[t].color=e.color,c.data[t].strokeColor=e.strokeColor,c.data[t].strokeDash=e.strokeDash,c.data[t].strokeSize=e.strokeSize}));var p=u.filter((function(e,t){var n=e.visible;return"undefined"===typeof n||!0===n})),h=!1,v=p.map((function(e,t){return h=h||"undefined"!==typeof e.groupId,e}));if(h){var m=r.nest().key((function(e,t){return"undefined"!=typeof e.groupId?e.groupId:"unstacked"})).entries(v),y=[],g=m.map((function(e,t){if("unstacked"===e.key)return e.values;var n=e.values[0].r.map((function(e,t){return 0}));return e.values.forEach((function(e,t,r){e.yStack=[n],y.push(n),n=l.util.sumArrays(e.r,n)})),e.values}));p=r.merge(g)}p.forEach((function(e,t){e.t=Array.isArray(e.t[0])?e.t:[e.t],e.r=Array.isArray(e.r[0])?e.r:[e.r]}));var b=Math.min(d.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2;b=Math.max(10,b);var x,_=[d.margin.left+b,d.margin.top+b];if(h){var w=r.max(l.util.sumArrays(l.util.arrayLast(p).r[0],l.util.arrayLast(y)));x=[0,w]}else x=r.extent(l.util.flattenArray(p.map((function(e,t){return e.r}))));d.radialAxis.domain!=l.DATAEXTENT&&(x[0]=0),n=r.scale.linear().domain(d.radialAxis.domain!=l.DATAEXTENT&&d.radialAxis.domain?d.radialAxis.domain:x).range([0,b]),c.layout.radialAxis.domain=n.domain();var k,T=l.util.flattenArray(p.map((function(e,t){return e.t}))),E="string"===typeof T[0];E&&(T=l.util.deduplicate(T),k=T.slice(),T=r.range(T.length),p=p.map((function(e,t){var n=e;return e.t=[T],h&&(n.yStack=e.yStack),n})));var O=p.filter((function(e,t){return"LinePlot"===e.geometry||"DotPlot"===e.geometry})).length===p.length,M=null===d.needsEndSpacing?E||!O:d.needsEndSpacing,S=d.angularAxis.domain&&d.angularAxis.domain!=l.DATAEXTENT&&!E&&d.angularAxis.domain[0]>=0,C=S?d.angularAxis.domain:r.extent(T),A=Math.abs(T[1]-T[0]);O&&!E&&(A=0);var P=C.slice();M&&E&&(P[1]+=A);var L=d.angularAxis.ticksCount||4;L>8&&(L=L/(L/8)+L%8),d.angularAxis.ticksStep&&(L=(P[1]-P[0])/L);var D=d.angularAxis.ticksStep||(P[1]-P[0])/(L*(d.minorTicks+1));k&&(D=Math.max(Math.round(D),1)),P[2]||(P[2]=D);var j=r.range.apply(this,P);if(j=j.map((function(e,t){return parseFloat(e.toPrecision(12))})),a=r.scale.linear().domain(P.slice(0,2)).range("clockwise"===d.direction?[0,360]:[360,0]),c.layout.angularAxis.domain=a.domain(),c.layout.angularAxis.endPadding=M?A:0,e=r.select(this).select("svg.chart-root"),"undefined"===typeof e||e.empty()){var I="<svg xmlns='http://www.w3.org/2000/svg' class='chart-root'>' + '<g class='outer-group'>' + '<g class='chart-group'>' + '<circle class='background-circle'></circle>' + '<g class='geometry-group'></g>' + '<g class='radial axis-group'>' + '<circle class='outside-circle'></circle>' + '</g>' + '<g class='angular axis-group'></g>' + '<g class='guides-group'><line></line><circle r='0'></circle></g>' + '</g>' + '<g class='legend-group'></g>' + '<g class='tooltips-group'></g>' + '<g class='title-group'><text></text></g>' + '</g>' + '</svg>",R=(new DOMParser).parseFromString(I,"application/xml"),z=this.appendChild(this.ownerDocument.importNode(R.documentElement,!0));e=r.select(z)}e.select(".guides-group").style({"pointer-events":"none"}),e.select(".angular.axis-group").style({"pointer-events":"none"}),e.select(".radial.axis-group").style({"pointer-events":"none"});var N,F=e.select(".chart-group"),B={fill:"none",stroke:d.tickColor},V={"font-size":d.font.size,"font-family":d.font.family,fill:d.font.color,"text-shadow":["-1px 0px","1px -1px","-1px 1px","1px 1px"].map((function(e,t){return" "+e+" 0 "+d.font.outlineColor})).join(",")};if(d.showLegend){N=e.select(".legend-group").attr({transform:"translate("+[b,d.margin.top]+")"}).style({display:"block"});var H=p.map((function(e,t){var n=l.util.cloneJson(e);return n.symbol="DotPlot"===e.geometry?e.dotType||"circle":"LinePlot"!=e.geometry?"square":"line",n.visibleInLegend="undefined"===typeof e.visibleInLegend||e.visibleInLegend,n.color="LinePlot"===e.geometry?e.strokeColor:e.color,n}));l.Legend().config({data:p.map((function(e,t){return e.name||"Element"+t})),legendConfig:o({},l.Legend.defaultConfig().legendConfig,{container:N,elements:H,reverseOrder:d.legend.reverseOrder})})();var U=N.node().getBBox();b=Math.min(d.width-U.width-d.margin.left-d.margin.right,d.height-d.margin.top-d.margin.bottom)/2,b=Math.max(10,b),_=[d.margin.left+b,d.margin.top+b],n.range([0,b]),c.layout.radialAxis.domain=n.domain(),N.attr("transform","translate("+[_[0]+b,_[1]-b]+")")}else N=e.select(".legend-group").style({display:"none"});e.attr({width:d.width,height:d.height}).style({opacity:d.opacity}),F.attr("transform","translate("+_+")").style({cursor:"crosshair"});var W=[(d.width-(d.margin.left+d.margin.right+2*b+(U?U.width:0)))/2,(d.height-(d.margin.top+d.margin.bottom+2*b))/2];if(W[0]=Math.max(0,W[0]),W[1]=Math.max(0,W[1]),e.select(".outer-group").attr("transform","translate("+W+")"),d.title&&d.title.text){var q=e.select("g.title-group text").style(V).text(d.title.text),$=q.node().getBBox();q.attr({x:_[0]-$.width/2,y:_[1]-b-20})}var G=e.select(".radial.axis-group");if(d.radialAxis.gridLinesVisible){var Y=G.selectAll("circle.grid-circle").data(n.ticks(5));Y.enter().append("circle").attr({class:"grid-circle"}).style(B),Y.attr("r",n),Y.exit().remove()}G.select("circle.outside-circle").attr({r:b}).style(B);var K=e.select("circle.background-circle").attr({r:b}).style({fill:d.backgroundColor,stroke:d.stroke});function X(e,t){return a(e)%360+d.orientation}if(d.radialAxis.visible){var Z=r.svg.axis().scale(n).ticks(5).tickSize(5);G.call(Z).attr({transform:"rotate("+d.radialAxis.orientation+")"}),G.selectAll(".domain").style(B),G.selectAll("g>text").text((function(e,t){return this.textContent+d.radialAxis.ticksSuffix})).style(V).style({"text-anchor":"start"}).attr({x:0,y:0,dx:0,dy:0,transform:function(e,t){return"horizontal"===d.radialAxis.tickOrientation?"rotate("+-d.radialAxis.orientation+") translate("+[0,V["font-size"]]+")":"translate("+[0,V["font-size"]]+")"}}),G.selectAll("g>line").style({stroke:"black"})}var J=e.select(".angular.axis-group").selectAll("g.angular-tick").data(j),Q=J.enter().append("g").classed("angular-tick",!0);J.attr({transform:function(e,t){return"rotate("+X(e,t)+")"}}).style({display:d.angularAxis.visible?"block":"none"}),J.exit().remove(),Q.append("line").classed("grid-line",!0).classed("major",(function(e,t){return t%(d.minorTicks+1)==0})).classed("minor",(function(e,t){return!(t%(d.minorTicks+1)==0)})).style(B),Q.selectAll(".minor").style({stroke:d.minorTickColor}),J.select("line.grid-line").attr({x1:d.tickLength?b-d.tickLength:0,x2:b}).style({display:d.angularAxis.gridLinesVisible?"block":"none"}),Q.append("text").classed("axis-text",!0).style(V);var ee=J.select("text.axis-text").attr({x:b+d.labelOffset,dy:i+"em",transform:function(e,t){var n=X(e,t),r=b+d.labelOffset,a=d.angularAxis.tickOrientation;return"horizontal"==a?"rotate("+-n+" "+r+" 0)":"radial"==a?n<270&&n>90?"rotate(180 "+r+" 0)":null:"rotate("+(n<=180&&n>0?-90:90)+" "+r+" 0)"}}).style({"text-anchor":"middle",display:d.angularAxis.labelsVisible?"block":"none"}).text((function(e,t){return t%(d.minorTicks+1)!=0?"":k?k[e]+d.angularAxis.ticksSuffix:e+d.angularAxis.ticksSuffix})).style(V);d.angularAxis.rewriteTicks&&ee.text((function(e,t){return t%(d.minorTicks+1)!=0?"":d.angularAxis.rewriteTicks(this.textContent,t)}));var te=r.max(F.selectAll(".angular-tick text")[0].map((function(e,t){return e.getCTM().e+e.getBBox().width})));N.attr({transform:"translate("+[b+te,d.margin.top]+")"});var ne=e.select("g.geometry-group").selectAll("g").size()>0,re=e.select("g.geometry-group").selectAll("g.geometry").data(p);if(re.enter().append("g").attr({class:function(e,t){return"geometry geometry"+t}}),re.exit().remove(),p[0]||ne){var ae=[];p.forEach((function(e,t){var r={};r.radialScale=n,r.angularScale=a,r.container=re.filter((function(e,n){return n==t})),r.geometry=e.geometry,r.orientation=d.orientation,r.direction=d.direction,r.index=t,ae.push({data:e,geometryConfig:r})}));var oe=r.nest().key((function(e,t){return"undefined"!=typeof e.data.groupId||"unstacked"})).entries(ae),ie=[];oe.forEach((function(e,t){"unstacked"===e.key?ie=ie.concat(e.values.map((function(e,t){return[e]}))):ie.push(e.values)})),ie.forEach((function(e,t){var n;n=Array.isArray(e)?e[0].geometryConfig.geometry:e.geometryConfig.geometry;var r=e.map((function(e,t){return o(l[n].defaultConfig(),e)}));l[n]().config(r)()}))}var le,se,ue=e.select(".guides-group"),ce=e.select(".tooltips-group"),fe=l.tooltipPanel().config({container:ce,fontSize:8})(),pe=l.tooltipPanel().config({container:ce,fontSize:8})(),de=l.tooltipPanel().config({container:ce,hasTick:!0})();if(!E){var he=ue.select("line").attr({x1:0,y1:0,y2:0}).style({stroke:"grey","pointer-events":"none"});F.on("mousemove.angular-guide",(function(e,t){var n=l.util.getMousePos(K).angle;he.attr({x2:-b,transform:"rotate("+n+")"}).style({opacity:.5});var r=(n+180+360-d.orientation)%360;le=a.invert(r);var o=l.util.convertToCartesian(b+12,n+180);fe.text(l.util.round(le)).move([o[0]+_[0],o[1]+_[1]])})).on("mouseout.angular-guide",(function(e,t){ue.select("line").style({opacity:0})}))}var ve=ue.select("circle").style({stroke:"grey",fill:"none"});F.on("mousemove.radial-guide",(function(e,t){var r=l.util.getMousePos(K).radius;ve.attr({r:r}).style({opacity:.5}),se=n.invert(l.util.getMousePos(K).radius);var a=l.util.convertToCartesian(r,d.radialAxis.orientation);pe.text(l.util.round(se)).move([a[0]+_[0],a[1]+_[1]])})).on("mouseout.radial-guide",(function(e,t){ve.style({opacity:0}),de.hide(),fe.hide(),pe.hide()})),e.selectAll(".geometry-group .mark").on("mouseover.tooltip",(function(t,n){var a=r.select(this),o=this.style.fill,i="black",s=this.style.opacity||1;if(a.attr({"data-opacity":s}),o&&"none"!==o){a.attr({"data-fill":o}),i=r.hsl(o).darker().toString(),a.style({fill:i,opacity:1});var u={t:l.util.round(t[0]),r:l.util.round(t[1])};E&&(u.t=k[t[0]]);var c="t: "+u.t+", r: "+u.r,f=this.getBoundingClientRect(),p=e.node().getBoundingClientRect(),d=[f.left+f.width/2-W[0]-p.left,f.top+f.height/2-W[1]-p.top];de.config({color:i}).text(c),de.move(d)}else o=this.style.stroke||"black",a.attr({"data-stroke":o}),i=r.hsl(o).darker().toString(),a.style({stroke:i,opacity:1})})).on("mousemove.tooltip",(function(e,t){if(0!=r.event.which)return!1;r.select(this).attr("data-fill")&&de.show()})).on("mouseout.tooltip",(function(e,t){de.hide();var n=r.select(this),a=n.attr("data-fill");a?n.style({fill:a,opacity:n.attr("data-opacity")}):n.style({stroke:n.attr("data-stroke"),opacity:n.attr("data-opacity")})}))})),p}return p.render=function(e){return d(e),this},p.config=function(e){if(!arguments.length)return s;var t=l.util.cloneJson(e);return t.data.forEach((function(e,t){s.data[t]||(s.data[t]={}),o(s.data[t],l.Axis.defaultConfig().data[0]),o(s.data[t],e)})),o(s.layout,l.Axis.defaultConfig().layout),o(s.layout,t.layout),this},p.getLiveConfig=function(){return c},p.getinputConfig=function(){return u},p.radialScale=function(e){return n},p.angularScale=function(e){return a},p.svg=function(){return e},r.rebind(p,f,"on"),p},l.Axis.defaultConfig=function(e,t){var n={data:[{t:[1,2,3,4],r:[10,11,12,13],name:"Line1",geometry:"LinePlot",color:null,strokeDash:"solid",strokeColor:null,strokeSize:"1",visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:r.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:"gray",outlineColor:"white",family:"Tahoma, sans-serif"},direction:"clockwise",orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:"",visible:!0,gridLinesVisible:!0,tickOrientation:"horizontal",rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:"",visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:"horizontal",rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:"silver",minorTickColor:"#eee",backgroundColor:"none",needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}};return n},l.util={},l.DATAEXTENT="dataExtent",l.AREA="AreaChart",l.LINE="LinePlot",l.DOT="DotPlot",l.BAR="BarChart",l.util._override=function(e,t){for(var n in e)n in t&&(t[n]=e[n])},l.util._extend=function(e,t){for(var n in e)t[n]=e[n]},l.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},l.util.dataFromEquation2=function(e,t){var n=t||6,a=r.range(0,360+n,n).map((function(t,n){var r=t*Math.PI/180,a=e(r);return[t,a]}));return a},l.util.dataFromEquation=function(e,t,n){var a=t||6,o=[],i=[];r.range(0,360+a,a).forEach((function(t,n){var r=t*Math.PI/180,a=e(r);o.push(t),i.push(a)}));var l={t:o,r:i};return n&&(l.name=n),l},l.util.ensureArray=function(e,t){if("undefined"===typeof e)return null;var n=[].concat(e);return r.range(t).map((function(e,t){return n[t]||n[0]}))},l.util.fillArrays=function(e,t,n){return t.forEach((function(t,r){e[t]=l.util.ensureArray(e[t],n)})),e},l.util.cloneJson=function(e){return JSON.parse(JSON.stringify(e))},l.util.validateKeys=function(e,t){"string"===typeof t&&(t=t.split("."));var n=t.shift();return e[n]&&(!t.length||objHasKeys(e[n],t))},l.util.sumArrays=function(e,t){return r.zip(e,t).map((function(e,t){return r.sum(e)}))},l.util.arrayLast=function(e){return e[e.length-1]},l.util.arrayEqual=function(e,t){var n=Math.max(e.length,t.length,1);while(n-- >=0&&e[n]===t[n]);return-2===n},l.util.flattenArray=function(e){var t=[];while(!l.util.arrayEqual(t,e))t=e,e=[].concat.apply([],e);return e},l.util.deduplicate=function(e){return e.filter((function(e,t,n){return n.indexOf(e)==t}))},l.util.convertToCartesian=function(e,t){var n=t*Math.PI/180,r=e*Math.cos(n),a=e*Math.sin(n);return[r,a]},l.util.round=function(e,t){var n=t||2,r=Math.pow(10,n);return Math.round(e*r)/r},l.util.getMousePos=function(e){var t=r.mouse(e.node()),n=t[0],a=t[1],o={};return o.x=n,o.y=a,o.pos=t,o.angle=180*(Math.atan2(a,n)+Math.PI)/Math.PI,o.radius=Math.sqrt(n*n+a*a),o},l.util.duplicatesCount=function(e){for(var t,n={},r={},a=0,o=e.length;a<o;a++)t=e[a],t in n?(n[t]++,r[t]=n[t]):n[t]=1;return r},l.util.duplicates=function(e){return Object.keys(l.util.duplicatesCount(e))},l.util.translator=function(e,t,n,r){if(r){var a=n.slice();n=t,t=a}var o=t.reduce((function(e,t){if("undefined"!=typeof e)return e[t]}),e);"undefined"!==typeof o&&(t.reduce((function(e,n,r){if("undefined"!=typeof e)return r===t.length-1&&delete e[n],e[n]}),e),n.reduce((function(e,t,r){return"undefined"===typeof e[t]&&(e[t]={}),r===n.length-1&&(e[t]=o),e[t]}),e))},l.PolyChart=function(){var e,t=[l.PolyChart.defaultConfig()],n=r.dispatch("hover"),a={solid:"none",dash:[5,2],dot:[2,5]};function i(){var e=t[0].geometryConfig,n=e.container;"string"==typeof n&&(n=r.select(n)),n.datum(t).each((function(t,n){var o=!!t[0].data.yStack,i=t.map((function(e,t){return o?r.zip(e.data.t[0],e.data.r[0],e.data.yStack[0]):r.zip(e.data.t[0],e.data.r[0])})),l=e.angularScale,s=e.radialScale.domain()[0],u={bar:function(n,a,o){var i=t[o].data,s=e.radialScale(n[1])-e.radialScale(0),u=e.radialScale(n[2]||0),c=i.barWidth;r.select(this).attr({class:"mark bar",d:"M"+[[s+u,-c/2],[s+u,c/2],[u,c/2],[u,-c/2]].join("L")+"Z",transform:function(t,n){return"rotate("+(e.orientation+l(t[0]))+")"}})},dot:function(e,n,a){var o=e[2]?[e[0],e[1]+e[2]]:e,i=r.svg.symbol().size(t[a].data.dotSize).type(t[a].data.dotType)(e,n);r.select(this).attr({class:"mark dot",d:i,transform:function(e,t){var n=g(y(o));return"translate("+[n.x,n.y]+")"}})}},c=r.svg.line.radial().interpolate(t[0].data.lineInterpolation).radius((function(t){return e.radialScale(t[1])})).angle((function(t){return e.angularScale(t[0])*Math.PI/180}));u.line=function(n,a,o){var l=n[2]?i[o].map((function(e,t){return[e[0],e[1]+e[2]]})):i[o];if(r.select(this).each(u["dot"]).style({opacity:function(e,n){return+t[o].data.dotVisible},fill:h.stroke(n,a,o)}).attr({class:"mark dot"}),!(a>0)){var s=r.select(this.parentNode).selectAll("path.line").data([0]);s.enter().insert("path"),s.attr({class:"line",d:c(l),transform:function(t,n){return"rotate("+(e.orientation+90)+")"},"pointer-events":"none"}).style({fill:function(e,t){return h.fill(n,a,o)},"fill-opacity":0,stroke:function(e,t){return h.stroke(n,a,o)},"stroke-width":function(e,t){return h["stroke-width"](n,a,o)},"stroke-dasharray":function(e,t){return h["stroke-dasharray"](n,a,o)},opacity:function(e,t){return h.opacity(n,a,o)},display:function(e,t){return h.display(n,a,o)}})}};var f=e.angularScale.range(),p=Math.abs(f[1]-f[0])/i[0].length*Math.PI/180,d=r.svg.arc().startAngle((function(e){return-p/2})).endAngle((function(e){return p/2})).innerRadius((function(t){return e.radialScale(s+(t[2]||0))})).outerRadius((function(t){return e.radialScale(s+(t[2]||0))+e.radialScale(t[1])}));u.arc=function(t,n,a){r.select(this).attr({class:"mark arc",d:d,transform:function(t,n){return"rotate("+(e.orientation+l(t[0])+90)+")"}})};var h={fill:function(e,n,r){return t[r].data.color},stroke:function(e,n,r){return t[r].data.strokeColor},"stroke-width":function(e,n,r){return t[r].data.strokeSize+"px"},"stroke-dasharray":function(e,n,r){return a[t[r].data.strokeDash]},opacity:function(e,n,r){return t[r].data.opacity},display:function(e,n,r){return"undefined"===typeof t[r].data.visible||t[r].data.visible?"block":"none"}},v=r.select(this).selectAll("g.layer").data(i);v.enter().append("g").attr({class:"layer"});var m=v.selectAll("path.mark").data((function(e,t){return e}));function y(t,n){var r=e.radialScale(t[1]),a=(e.angularScale(t[0])+e.orientation)*Math.PI/180;return{r:r,t:a}}function g(e){var t=e.r*Math.cos(e.t),n=e.r*Math.sin(e.t);return{x:t,y:n}}m.enter().append("path").attr({class:"mark"}),m.style(h).each(u[e.geometryType]),m.exit().remove(),v.exit().remove()}))}return i.config=function(e){return arguments.length?(e.forEach((function(e,n){t[n]||(t[n]={}),o(t[n],l.PolyChart.defaultConfig()),o(t[n],e)})),this):t},i.getColorScale=function(){return e},r.rebind(i,n,"on"),i},l.PolyChart.defaultConfig=function(){var e={data:{name:"geom1",t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:"circle",dotSize:64,dotVisible:!1,barWidth:20,color:"#ffa500",strokeSize:1,strokeColor:"silver",strokeDash:"solid",opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:"LinePlot",geometryType:"arc",direction:"clockwise",orientation:0,container:"body",radialScale:null,angularScale:null,colorScale:r.scale.category20()}};return e},l.BarChart=function(){return l.PolyChart()},l.BarChart.defaultConfig=function(){var e={geometryConfig:{geometryType:"bar"}};return e},l.AreaChart=function(){return l.PolyChart()},l.AreaChart.defaultConfig=function(){var e={geometryConfig:{geometryType:"arc"}};return e},l.DotPlot=function(){return l.PolyChart()},l.DotPlot.defaultConfig=function(){var e={geometryConfig:{geometryType:"dot",dotType:"circle"}};return e},l.LinePlot=function(){return l.PolyChart()},l.LinePlot.defaultConfig=function(){var e={geometryConfig:{geometryType:"line"}};return e},l.Legend=function(){var e=l.Legend.defaultConfig(),t=r.dispatch("hover");function n(){var t=e.legendConfig,a=e.data.map((function(e,n){return[].concat(e).map((function(e,r){var a=o({},t.elements[n]);return a.name=e,a.color=[].concat(t.elements[n].color)[r],a}))})),i=r.merge(a);i=i.filter((function(e,n){return t.elements[n]&&(t.elements[n].visibleInLegend||"undefined"===typeof t.elements[n].visibleInLegend)})),t.reverseOrder&&(i=i.reverse());var l=t.container;("string"==typeof l||l.nodeName)&&(l=r.select(l));var s=i.map((function(e,t){return e.color})),u=t.fontSize,c=null==t.isContinuous?"number"===typeof i[0]:t.isContinuous,f=c?t.height:u*i.length,p=l.classed("legend-group",!0),d=p.selectAll("svg").data([0]),h=d.enter().append("svg").attr({width:300,height:f+u,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"});h.append("g").classed("legend-axis",!0),h.append("g").classed("legend-marks",!0);var v=r.range(i.length),m=r.scale[c?"linear":"ordinal"]().domain(v).range(s),y=r.scale[c?"linear":"ordinal"]().domain(v)[c?"range":"rangePoints"]([0,f]),g=function(e,t){var n=3*t;return"line"===e?"M"+[[-t/2,-t/12],[t/2,-t/12],[t/2,t/12],[-t/2,t/12]]+"Z":-1!=r.svg.symbolTypes.indexOf(e)?r.svg.symbol().type(e).size(n)():r.svg.symbol().type("square").size(n)()};if(c){var b=d.select(".legend-marks").append("defs").append("linearGradient").attr({id:"grad1",x1:"0%",y1:"0%",x2:"0%",y2:"100%"}).selectAll("stop").data(s);b.enter().append("stop"),b.attr({offset:function(e,t){return t/(s.length-1)*100+"%"}}).style({"stop-color":function(e,t){return e}}),d.append("rect").classed("legend-mark",!0).attr({height:t.height,width:t.colorBandWidth,fill:"url(#grad1)"})}else{var x=d.select(".legend-marks").selectAll("path.legend-mark").data(i);x.enter().append("path").classed("legend-mark",!0),x.attr({transform:function(e,t){return"translate("+[u/2,y(t)+u/2]+")"},d:function(e,t){var n=e.symbol;return g(n,u)},fill:function(e,t){return m(t)}}),x.exit().remove()}var _=r.svg.axis().scale(y).orient("right"),w=d.select("g.legend-axis").attr({transform:"translate("+[c?t.colorBandWidth:u,u/2]+")"}).call(_);return w.selectAll(".domain").style({fill:"none",stroke:"none"}),w.selectAll("line").style({fill:"none",stroke:c?t.textColor:"none"}),w.selectAll("text").style({fill:t.textColor,"font-size":t.fontSize}).text((function(e,t){return i[t].name})),n}return n.config=function(t){return arguments.length?(o(e,t),this):e},r.rebind(n,t,"on"),n},l.Legend.defaultConfig=function(e,t){var n={data:["a","b","c"],legendConfig:{elements:[{symbol:"line",color:"red"},{symbol:"square",color:"yellow"},{symbol:"diamond",color:"limegreen"}],height:150,colorBandWidth:30,fontSize:12,container:"body",isContinuous:null,textColor:"grey",reverseOrder:!1}};return n},l.tooltipPanel=function(){var e,t,n,a={container:null,hasTick:!1,fontSize:12,color:"white",padding:5},i="tooltip-"+l.tooltipPanel.uid++,s=10,u=function(){e=a.container.selectAll("g."+i).data([0]);var r=e.enter().append("g").classed(i,!0).style({"pointer-events":"none",display:"none"});return n=r.append("path").style({fill:"white","fill-opacity":.9}).attr({d:"M0 0"}),t=r.append("text").attr({dx:a.padding+s,dy:.3*+a.fontSize}),u};return u.text=function(o){var i=r.hsl(a.color).l,l=i>=.5?"#aaa":"white",c=i>=.5?"black":"white",f=o||"";t.style({fill:c,"font-size":a.fontSize+"px"}).text(f);var p=a.padding,d=t.node().getBBox(),h={fill:a.color,stroke:l,"stroke-width":"2px"},v=d.width+2*p+s,m=d.height+2*p;return n.attr({d:"M"+[[s,-m/2],[s,-m/4],[a.hasTick?0:s,0],[s,m/4],[s,m/2],[v,m/2],[v,-m/2]].join("L")+"Z"}).style(h),e.attr({transform:"translate("+[s,-m/2+2*p]+")"}),e.style({display:"block"}),u},u.move=function(t){if(e)return e.attr({transform:"translate("+[t[0],t[1]]+")"}).style({display:"block"}),u},u.hide=function(){if(e)return e.style({display:"none"}),u},u.show=function(){if(e)return e.style({display:"block"}),u},u.config=function(e){return o(a,e),u},u},l.tooltipPanel.uid=1,l.adapter={},l.adapter.plotly=function(){var e={convert:function(e,t){var n={};if(e.data&&(n.data=e.data.map((function(e,n){var r=o({},e),a=[[r,["marker","color"],["color"]],[r,["marker","opacity"],["opacity"]],[r,["marker","line","color"],["strokeColor"]],[r,["marker","line","dash"],["strokeDash"]],[r,["marker","line","width"],["strokeSize"]],[r,["marker","symbol"],["dotType"]],[r,["marker","size"],["dotSize"]],[r,["marker","barWidth"],["barWidth"]],[r,["line","interpolation"],["lineInterpolation"]],[r,["showlegend"],["visibleInLegend"]]];return a.forEach((function(e,n){l.util.translator.apply(null,e.concat(t))})),t||delete r.marker,t&&delete r.groupId,t?("LinePlot"===r.geometry?(r.type="scatter",!0===r.dotVisible?(delete r.dotVisible,r.mode="lines+markers"):r.mode="lines"):"DotPlot"===r.geometry?(r.type="scatter",r.mode="markers"):"AreaChart"===r.geometry?r.type="area":"BarChart"===r.geometry&&(r.type="bar"),delete r.geometry):("scatter"===r.type?"lines"===r.mode?r.geometry="LinePlot":"markers"===r.mode?r.geometry="DotPlot":"lines+markers"===r.mode&&(r.geometry="LinePlot",r.dotVisible=!0):"area"===r.type?r.geometry="AreaChart":"bar"===r.type&&(r.geometry="BarChart"),delete r.mode,delete r.type),r})),!t&&e.layout&&"stack"===e.layout.barmode)){var a=l.util.duplicates(n.data.map((function(e,t){return e.geometry})));n.data.forEach((function(e,t){var r=a.indexOf(e.geometry);-1!=r&&(n.data[t].groupId=r)}))}if(e.layout){var i=o({},e.layout),s=[[i,["plot_bgcolor"],["backgroundColor"]],[i,["showlegend"],["showLegend"]],[i,["radialaxis"],["radialAxis"]],[i,["angularaxis"],["angularAxis"]],[i.angularaxis,["showline"],["gridLinesVisible"]],[i.angularaxis,["showticklabels"],["labelsVisible"]],[i.angularaxis,["nticks"],["ticksCount"]],[i.angularaxis,["tickorientation"],["tickOrientation"]],[i.angularaxis,["ticksuffix"],["ticksSuffix"]],[i.angularaxis,["range"],["domain"]],[i.angularaxis,["endpadding"],["endPadding"]],[i.radialaxis,["showline"],["gridLinesVisible"]],[i.radialaxis,["tickorientation"],["tickOrientation"]],[i.radialaxis,["ticksuffix"],["ticksSuffix"]],[i.radialaxis,["range"],["domain"]],[i.angularAxis,["showline"],["gridLinesVisible"]],[i.angularAxis,["showticklabels"],["labelsVisible"]],[i.angularAxis,["nticks"],["ticksCount"]],[i.angularAxis,["tickorientation"],["tickOrientation"]],[i.angularAxis,["ticksuffix"],["ticksSuffix"]],[i.angularAxis,["range"],["domain"]],[i.angularAxis,["endpadding"],["endPadding"]],[i.radialAxis,["showline"],["gridLinesVisible"]],[i.radialAxis,["tickorientation"],["tickOrientation"]],[i.radialAxis,["ticksuffix"],["ticksSuffix"]],[i.radialAxis,["range"],["domain"]],[i.font,["outlinecolor"],["outlineColor"]],[i.legend,["traceorder"],["reverseOrder"]],[i,["labeloffset"],["labelOffset"]],[i,["defaultcolorrange"],["defaultColorRange"]]];if(s.forEach((function(e,n){l.util.translator.apply(null,e.concat(t))})),t?("undefined"!==typeof i.tickLength&&(i.angularaxis.ticklen=i.tickLength,delete i.tickLength),i.tickColor&&(i.angularaxis.tickcolor=i.tickColor,delete i.tickColor)):(i.angularAxis&&"undefined"!==typeof i.angularAxis.ticklen&&(i.tickLength=i.angularAxis.ticklen),i.angularAxis&&"undefined"!==typeof i.angularAxis.tickcolor&&(i.tickColor=i.angularAxis.tickcolor)),i.legend&&"boolean"!=typeof i.legend.reverseOrder&&(i.legend.reverseOrder="normal"!=i.legend.reverseOrder),i.legend&&"boolean"==typeof i.legend.traceorder&&(i.legend.traceorder=i.legend.traceorder?"reversed":"normal",delete i.legend.reverseOrder),i.margin&&"undefined"!=typeof i.margin.t){var u=["t","r","b","l","pad"],c=["top","right","bottom","left","pad"],f={};r.entries(i.margin).forEach((function(e,t){f[c[u.indexOf(e.key)]]=e.value})),i.margin=f}t&&(delete i.needsEndSpacing,delete i.minorTickColor,delete i.minorTicks,delete i.angularaxis.ticksCount,delete i.angularaxis.ticksCount,delete i.angularaxis.ticksStep,delete i.angularaxis.rewriteTicks,delete i.angularaxis.nticks,delete i.radialaxis.ticksCount,delete i.radialaxis.ticksCount,delete i.radialaxis.ticksStep,delete i.radialaxis.rewriteTicks,delete i.radialaxis.nticks),n.layout=i}return n}};return e}},{"../../../constants/alignment":717,"../../../lib":750,d3:169}],872:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../../lib"),o=e("../../../components/color"),i=e("./micropolar"),l=e("./undo_manager"),s=a.extendDeepAll,u=t.exports={};u.framework=function(e){var t,n,a,o,c,f=new l;function p(n,l){return l&&(c=l),r.select(r.select(c).node().parentNode).selectAll(".svg-container>*:not(.chart-root)").remove(),t=t?s(t,n):n,a||(a=i.Axis()),o=i.adapter.plotly().convert(t),a.config(o).render(c),e.data=t.data,e.layout=t.layout,u.fillLayout(e),t}return p.isPolar=!0,p.svg=function(){return a.svg()},p.getConfig=function(){return t},p.getLiveConfig=function(){return i.adapter.plotly().convert(a.getLiveConfig(),!0)},p.getLiveScales=function(){return{t:a.angularScale(),r:a.radialScale()}},p.setUndoPoint=function(){var e=this,r=i.util.cloneJson(t);(function(t,n){f.add({undo:function(){n&&e(n)},redo:function(){e(t)}})})(r,n),n=i.util.cloneJson(r)},p.undo=function(){f.undo()},p.redo=function(){f.redo()},p},u.fillLayout=function(e){var t=r.select(e).selectAll(".plot-container"),n=t.selectAll(".svg-container"),a=e.framework&&e.framework.svg&&e.framework.svg(),i={width:800,height:600,paper_bgcolor:o.background,_container:t,_paperdiv:n,_paper:a};e._fullLayout=s(i,e.layout)}},{"../../../components/color":615,"../../../lib":750,"./micropolar":871,"./undo_manager":873,d3:169}],873:[function(e,t,n){"use strict";t.exports=function(){var e,t=[],n=-1,r=!1;function a(e,t){return e?(r=!0,e[t](),r=!1,this):this}return{add:function(e){return r||(t.splice(n+1,t.length-n),t.push(e),n=t.length-1),this},setCallback:function(t){e=t},undo:function(){var r=t[n];return r?(a(r,"undo"),n-=1,e&&e(r.undo),this):this},redo:function(){var r=t[n+1];return r?(a(r,"redo"),n+=1,e&&e(r.redo),this):this},clear:function(){t=[],n=-1},hasUndo:function(){return-1!==n},hasRedo:function(){return n<t.length-1},getCommands:function(){return t},getPreviousCommand:function(){return t[n-1]},getIndex:function(){return n}}}},{}],874:[function(e,t,n){"use strict";var r=e("d3"),a=e("tinycolor2"),o=e("../../registry"),i=e("../../lib"),l=e("../../components/color"),s=e("../../components/drawing"),u=e("../plots"),c=e("../../plots/cartesian/axes"),f=e("../cartesian/set_convert"),p=e("./set_convert"),d=e("../cartesian/autorange").doAutoRange,h=e("../cartesian/dragbox"),v=e("../../components/dragelement"),m=e("../../components/fx"),y=e("../../components/titles"),g=e("../cartesian/select").prepSelect,b=e("../cartesian/select").selectOnClick,x=e("../cartesian/select").clearSelect,_=e("../../lib/setcursor"),w=e("../../lib/clear_gl_canvases"),k=e("../../plot_api/subroutines").redrawReglTraces,T=e("../../constants/alignment").MID_SHIFT,E=e("./constants"),O=e("./helpers"),M=i._,S=i.mod,C=i.deg2rad,A=i.rad2deg;function P(e,t){this.id=t,this.gd=e,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=e._fullLayout,r="clip"+n._uid+t;this.clipIds.forTraces=r+"-for-traces",this.clipPaths.forTraces=n._clips.append("clipPath").attr("id",this.clipIds.forTraces),this.clipPaths.forTraces.append("path"),this.framework=n._polarlayer.append("g").attr("class",t),this.radialTickLayout=null,this.angularTickLayout=null}var L=P.prototype;function D(e){var t=e.ticks+String(e.ticklen)+String(e.showticklabels);return"side"in e&&(t+=e.side),t}function j(e){var t,n,r,a,o=e[0],i=e[1],l=i-o,s=S(o,360),u=s+l,c=Math.cos(C(s)),f=Math.sin(C(s)),p=Math.cos(C(u)),d=Math.sin(C(u));return a=s<=90&&u>=90||s>90&&u>=450?1:f<=0&&d<=0?0:Math.max(f,d),t=s<=180&&u>=180||s>180&&u>=540?-1:c>=0&&p>=0?0:Math.min(c,p),n=s<=270&&u>=270||s>270&&u>=630?-1:f>=0&&d>=0?0:Math.min(f,d),r=u>=360?1:c<=0&&p<=0?0:Math.max(c,p),[t,n,r,a]}function I(e,t){var n=function(t){return i.angleDist(e,t)},r=i.findIndexOfMin(t,n);return t[r]}function R(e,t,n){return t?(e.attr("display",null),e.attr(n)):e&&e.attr("display","none"),e}function z(e,t){return"translate("+e+","+t+")"}function N(e){return"rotate("+e+")"}t.exports=function(e,t){return new P(e,t)},L.plot=function(e,t){var n=this,r=t[n.id];n._hasClipOnAxisFalse=!1;for(var a=0;a<e.length;a++){var o=e[a][0].trace;if(!1===o.cliponaxis){n._hasClipOnAxisFalse=!0;break}}n.updateLayers(t,r),n.updateLayout(t,r),u.generalUpdatePerTraceModule(n.gd,n,e,r),n.updateFx(t,r)},L.updateLayers=function(e,t){var n=this,a=n.layers,o=t.radialaxis,i=t.angularaxis,l=E.layerNames,s=l.indexOf("frontplot"),u=l.slice(0,s),c="below traces"===i.layer,f="below traces"===o.layer;c&&u.push("angular-line"),f&&u.push("radial-line"),c&&u.push("angular-axis"),f&&u.push("radial-axis"),u.push("frontplot"),c||u.push("angular-line"),f||u.push("radial-line"),c||u.push("angular-axis"),f||u.push("radial-axis");var p=n.framework.selectAll(".polarsublayer").data(u,String);p.enter().append("g").attr("class",(function(e){return"polarsublayer "+e})).each((function(e){var t=a[e]=r.select(this);switch(e){case"frontplot":t.append("g").classed("barlayer",!0),t.append("g").classed("scatterlayer",!0);break;case"backplot":t.append("g").classed("maplayer",!0);break;case"plotbg":a.bg=t.append("path");break;case"radial-grid":t.style("fill","none");break;case"angular-grid":t.style("fill","none");break;case"radial-line":t.append("line").style("fill","none");break;case"angular-line":t.append("path").style("fill","none");break}})),p.order()},L.updateLayout=function(e,t){var n=this,r=n.layers,a=e._size,o=t.radialaxis,i=t.angularaxis,u=t.domain.x,c=t.domain.y;n.xOffset=a.l+a.w*u[0],n.yOffset=a.t+a.h*(1-c[1]);var f=n.xLength=a.w*(u[1]-u[0]),p=n.yLength=a.h*(c[1]-c[0]),d=t.sector;n.sectorInRad=d.map(C);var h,v,m,y,g,b=n.sectorBBox=j(d),x=b[2]-b[0],_=b[3]-b[1],w=p/f,k=Math.abs(_/x);w>k?(h=f,v=f*k,g=(p-v)/a.h/2,m=[u[0],u[1]],y=[c[0]+g,c[1]-g]):(h=p/k,v=p,g=(f-h)/a.w/2,m=[u[0]+g,u[1]-g],y=[c[0],c[1]]),n.xLength2=h,n.yLength2=v,n.xDomain2=m,n.yDomain2=y;var T=n.xOffset2=a.l+a.w*m[0],E=n.yOffset2=a.t+a.h*(1-y[1]),O=n.radius=h/x,M=n.innerRadius=t.hole*O,S=n.cx=T-O*b[0],A=n.cy=E+O*b[3],P=n.cxx=S-T,L=n.cyy=A-E;n.radialAxis=n.mockAxis(e,t,o,{_id:"x",side:{counterclockwise:"top",clockwise:"bottom"}[o.side],domain:[M/a.w,O/a.w]}),n.angularAxis=n.mockAxis(e,t,i,{side:"right",domain:[0,Math.PI],autorange:!1}),n.doAutoRange(e,t),n.updateAngularAxis(e,t),n.updateRadialAxis(e,t),n.updateRadialAxisTitle(e,t),n.xaxis=n.mockCartesianAxis(e,t,{_id:"x",domain:m}),n.yaxis=n.mockCartesianAxis(e,t,{_id:"y",domain:y});var D=n.pathSubplot();n.clipPaths.forTraces.select("path").attr("d",D).attr("transform",z(P,L)),r.frontplot.attr("transform",z(T,E)).call(s.setClipUrl,n._hasClipOnAxisFalse?null:n.clipIds.forTraces,n.gd),r.bg.attr("d",D).attr("transform",z(S,A)).call(l.fill,t.bgcolor)},L.mockAxis=function(e,t,n,r){var a=i.extendFlat({},n,r);return p(a,t,e),a},L.mockCartesianAxis=function(e,t,n){var r=this,a=n._id,o=i.extendFlat({type:"linear"},n);f(o,e);var l={x:[0,2],y:[1,3]};return o.setRange=function(){var e=r.sectorBBox,n=l[a],i=r.radialAxis._rl,s=(i[1]-i[0])/(1-t.hole);o.range=[e[n[0]]*s,e[n[1]]*s]},o.isPtWithinRange="x"===a?function(e){return r.isPtInside(e)}:function(){return!0},o.setRange(),o.setScale(),o},L.doAutoRange=function(e,t){var n=this.gd,r=this.radialAxis,a=t.radialaxis;r.setScale(),d(n,r);var o=r.range;a.range=o.slice(),a._input.range=o.slice(),r._rl=[r.r2l(o[0],null,"gregorian"),r.r2l(o[1],null,"gregorian")]},L.updateRadialAxis=function(e,t){var n=this,r=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,u=n.cx,f=n.cy,p=t.radialaxis,d=S(t.sector[0],360),h=n.radialAxis,v=s<o;n.fillViewInitialKey("radialaxis.angle",p.angle),n.fillViewInitialKey("radialaxis.range",h.range.slice()),h.setGeometry(),"auto"===h.tickangle&&d>90&&d<=270&&(h.tickangle=180);var m=function(e){return"translate("+(h.l2p(e.x)+s)+",0)"},y=function(e){return n.pathArc(h.r2p(e.x)+s)},g=D(p);if(n.radialTickLayout!==g&&(a["radial-axis"].selectAll(".xtick").remove(),n.radialTickLayout=g),v){h.setScale();var b=c.calcTicks(h),x=c.clipEnds(h,b),_=c.getTickSigns(h)[2];c.drawTicks(r,h,{vals:b,layer:a["radial-axis"],path:c.makeTickPath(h,0,_),transFn:m,crisp:!1}),c.drawGrid(r,h,{vals:x,layer:a["radial-grid"],path:y,transFn:i.noop,crisp:!1}),c.drawLabels(r,h,{vals:b,layer:a["radial-axis"],transFn:m,labelFns:c.makeLabelFns(h,0)})}var w=n.radialAxisAngle=n.vangles?A(I(C(p.angle),n.vangles)):p.angle,k=z(u,f),T=k+N(-w);R(a["radial-axis"],v&&(p.showticklabels||p.ticks),{transform:T}),R(a["radial-grid"],v&&p.showgrid,{transform:k}),R(a["radial-line"].select("line"),v&&p.showline,{x1:s,y1:0,x2:o,y2:0,transform:T}).attr("stroke-width",p.linewidth).call(l.stroke,p.linecolor)},L.updateRadialAxisTitle=function(e,t,n){var r=this,a=r.gd,o=r.radius,i=r.cx,l=r.cy,u=t.radialaxis,c=r.id+"title",f=void 0!==n?n:r.radialAxisAngle,p=C(f),d=Math.cos(p),h=Math.sin(p),v=0;if(u.title){var m=s.bBox(r.layers["radial-axis"].node()).height,g=u.title.font.size;v="counterclockwise"===u.side?-m-.4*g:m+.8*g}r.layers["radial-axis-title"]=y.draw(a,c,{propContainer:u,propName:r.id+".radialaxis.title",placeholder:M(a,"Click to enter radial axis title"),attributes:{x:i+o/2*d+v*h,y:l-o/2*h+v*d,"text-anchor":"middle"},transform:{rotate:-f}})},L.updateAngularAxis=function(e,t){var n=this,r=n.gd,a=n.layers,o=n.radius,s=n.innerRadius,u=n.cx,f=n.cy,p=t.angularaxis,d=n.angularAxis;n.fillViewInitialKey("angularaxis.rotation",p.rotation),d.setGeometry(),d.setScale();var h=function(e){return d.t2g(e.x)};"linear"===d.type&&"radians"===d.thetaunit&&(d.tick0=A(d.tick0),d.dtick=A(d.dtick));var v=function(e){return z(u+o*Math.cos(e),f-o*Math.sin(e))},m=function(e){return v(h(e))},y=function(e){var t=h(e);return v(t)+N(-A(t))},g=function(e){var t=h(e),n=Math.cos(t),r=Math.sin(t);return"M"+[u+s*n,f-s*r]+"L"+[u+o*n,f-o*r]},b=c.makeLabelFns(d,0),x=b.labelStandoff,_={xFn:function(e){var t=h(e);return Math.cos(t)*x},yFn:function(e){var t=h(e),n=Math.sin(t)>0?.2:1;return-Math.sin(t)*(x+e.fontSize*n)+Math.abs(Math.cos(t))*(e.fontSize*T)},anchorFn:function(e){var t=h(e),n=Math.cos(t);return Math.abs(n)<.1?"middle":n>0?"start":"end"},heightFn:function(e,t,n){var r=h(e);return-.5*(1+Math.sin(r))*n}},w=D(p);n.angularTickLayout!==w&&(a["angular-axis"].selectAll("."+d._id+"tick").remove(),n.angularTickLayout=w);var k,E=c.calcTicks(d);if("linear"===t.gridshape?(k=E.map(h),i.angleDelta(k[0],k[1])<0&&(k=k.slice().reverse())):k=null,n.vangles=k,"category"===d.type&&(E=E.filter((function(e){return i.isAngleInsideSector(h(e),n.sectorInRad)}))),d.visible){var O="inside"===d.ticks?-1:1,M=(d.linewidth||1)/2;c.drawTicks(r,d,{vals:E,layer:a["angular-axis"],path:"M"+O*M+",0h"+O*d.ticklen,transFn:y,crisp:!1}),c.drawGrid(r,d,{vals:E,layer:a["angular-grid"],path:g,transFn:i.noop,crisp:!1}),c.drawLabels(r,d,{vals:E,layer:a["angular-axis"],repositionOnUpdate:!0,transFn:m,labelFns:_})}R(a["angular-line"].select("path"),p.showline,{d:n.pathSubplot(),transform:z(u,f)}).attr("stroke-width",p.linewidth).call(l.stroke,p.linecolor)},L.updateFx=function(e,t){this.gd._context.staticPlot||(this.updateAngularDrag(e),this.updateRadialDrag(e,t,0),this.updateRadialDrag(e,t,1),this.updateMainDrag(e))},L.updateMainDrag=function(e){var t=this,n=t.gd,i=t.layers,l=e._zoomlayer,s=E.MINZOOM,u=E.OFFEDGE,c=t.radius,f=t.innerRadius,p=t.cx,d=t.cy,y=t.cxx,_=t.cyy,w=t.sectorInRad,k=t.vangles,T=t.radialAxis,M=O.clampTiny,S=O.findXYatLength,C=O.findEnclosingVertexAngles,A=E.cornerHalfWidth,P=E.cornerLen/2,L=h.makeDragger(i,"path","maindrag","crosshair");r.select(L).attr("d",t.pathSubplot()).attr("transform",z(p,d));var D,j,I,R,N,F,B,V,H,U={element:L,gd:n,subplot:t.id,plotinfo:{id:t.id,xaxis:t.xaxis,yaxis:t.yaxis},xaxes:[t.xaxis],yaxes:[t.yaxis]};function W(e,t){return Math.sqrt(e*e+t*t)}function q(e,t){return W(e-y,t-_)}function $(e,t){return Math.atan2(_-t,e-y)}function G(e,t){return[e*Math.cos(t),e*Math.sin(-t)]}function Y(e,n){if(0===e)return t.pathSector(2*A);var r=P/e,a=n-r,o=n+r,i=Math.max(0,Math.min(e,c)),l=i-A,s=i+A;return"M"+G(l,a)+"A"+[l,l]+" 0,0,0 "+G(l,o)+"L"+G(s,o)+"A"+[s,s]+" 0,0,1 "+G(s,a)+"Z"}function K(e,n,r){if(0===e)return t.pathSector(2*A);var a,o,i=G(e,n),l=G(e,r),s=M((i[0]+l[0])/2),u=M((i[1]+l[1])/2);if(s&&u){var c=u/s,f=-1/c,p=S(A,c,s,u);a=S(P,f,p[0][0],p[0][1]),o=S(P,f,p[1][0],p[1][1])}else{var d,h;u?(d=P,h=A):(d=A,h=P),a=[[s-d,u-h],[s+d,u-h]],o=[[s-d,u+h],[s+d,u+h]]}return"M"+a.join("L")+"L"+o.reverse().join("L")+"Z"}function X(){I=null,R=null,N=t.pathSubplot(),F=!1;var e=n._fullLayout[t.id];B=a(e.bgcolor).getLuminance(),V=h.makeZoombox(l,B,p,d,N),V.attr("fill-rule","evenodd"),H=h.makeCorners(l,p,d),x(n)}function Z(e,t){return t=Math.max(Math.min(t,c),f),e<u?e=0:c-e<u?e=c:t<u?t=0:c-t<u&&(t=c),Math.abs(t-e)>s?(e<t?(I=e,R=t):(I=t,R=e),!0):(I=null,R=null,!1)}function J(e,t){e=e||N,t=t||"M0,0Z",V.attr("d",e),H.attr("d",t),h.transitionZoombox(V,H,F,B),F=!0;var r={};re(r),n.emit("plotly_relayouting",r)}function Q(e,n){var r,a,o=D+e,i=j+n,l=q(D,j),s=Math.min(q(o,i),c),u=$(D,j);Z(l,s)&&(r=N+t.pathSector(R),I&&(r+=t.pathSector(I)),a=Y(I,u)+Y(R,u)),J(r,a)}function ee(e,t,n,r){var a=O.findIntersectionXY(n,r,n,[e-y,_-t]);return W(a[0],a[1])}function te(e,n){var r,a,o=D+e,i=j+n,l=$(D,j),s=$(o,i),u=C(l,k),f=C(s,k),p=ee(D,j,u[0],u[1]),d=Math.min(ee(o,i,f[0],f[1]),c);Z(p,d)&&(r=N+t.pathSector(R),I&&(r+=t.pathSector(I)),a=[K(I,u[0],u[1]),K(R,u[0],u[1])].join(" ")),J(r,a)}function ne(){if(h.removeZoombox(n),null!==I&&null!==R){var e={};re(e),h.showDoubleClickNotifier(n),o.call("_guiRelayout",n,e)}}function re(e){var n=T._rl,r=(n[1]-n[0])/(1-f/c)/c,a=[n[0]+(I-f)*r,n[0]+(R-f)*r];e[t.id+".radialaxis.range"]=a}function ae(e,r){var a=n._fullLayout.clickmode;if(h.removeZoombox(n),2===e){var i={};for(var l in t.viewInitial)i[t.id+"."+l]=t.viewInitial[l];n.emit("plotly_doubleclick",null),o.call("_guiRelayout",n,i)}a.indexOf("select")>-1&&1===e&&b(r,n,[t.xaxis],[t.yaxis],t.id,U),a.indexOf("event")>-1&&m.click(n,r,t.id)}U.prepFn=function(e,t,r){var a=n._fullLayout.dragmode,o=L.getBoundingClientRect();if(D=t-o.left,j=r-o.top,k){var i=O.findPolygonOffset(c,w[0],w[1],k);D+=y+i[0],j+=_+i[1]}switch(a){case"zoom":U.moveFn=k?te:Q,U.clickFn=ae,U.doneFn=ne,X(e,t,r);break;case"select":case"lasso":g(e,t,r,U,a);break}},L.onmousemove=function(e){m.hover(n,e,t.id),n._fullLayout._lasthover=L,n._fullLayout._hoversubplot=t.id},L.onmouseout=function(e){n._dragging||v.unhover(n,e)},v.init(U)},L.updateRadialDrag=function(e,t,n){var a=this,l=a.gd,s=a.layers,u=a.radius,c=a.innerRadius,f=a.cx,p=a.cy,d=a.radialAxis,m=E.radialDragBoxSize,y=m/2;if(d.visible){var g,b,_,T=C(a.radialAxisAngle),O=d._rl,M=O[0],S=O[1],P=O[n],L=.75*(O[1]-O[0])/(1-t.hole)/u;n?(g=f+(u+y)*Math.cos(T),b=p-(u+y)*Math.sin(T),_="radialdrag"):(g=f+(c-y)*Math.cos(T),b=p-(c-y)*Math.sin(T),_="radialdrag-inner");var D,j,F,B=h.makeRectDragger(s,_,"crosshair",-y,-y,m,m),V={element:B,gd:l};R(r.select(B),d.visible&&c<u,{transform:z(g,b)}),V.prepFn=function(){D=null,j=null,F=null,V.moveFn=H,V.doneFn=W,x(l)},V.clampFn=function(e,t){return Math.sqrt(e*e+t*t)<E.MINDRAG&&(e=0,t=0),[e,t]},v.init(V)}function H(e,t){if(D)D(e,t);else{var n=[e,-t],r=[Math.cos(T),Math.sin(T)],a=Math.abs(i.dot(n,r)/Math.sqrt(i.dot(n,n)));isNaN(a)||(D=a<.5?q:$)}var o={};U(o),l.emit("plotly_relayouting",o)}function U(e){null!==j?e[a.id+".radialaxis.angle"]=j:null!==F&&(e[a.id+".radialaxis.range["+n+"]"]=F)}function W(){null!==j?o.call("_guiRelayout",l,a.id+".radialaxis.angle",j):null!==F&&o.call("_guiRelayout",l,a.id+".radialaxis.range["+n+"]",F)}function q(e,t){if(0!==n){var r=g+e,o=b+t;j=Math.atan2(p-o,r-f),a.vangles&&(j=I(j,a.vangles)),j=A(j);var i=z(f,p)+N(-j);s["radial-axis"].attr("transform",i),s["radial-line"].select("line").attr("transform",i);var l=a.gd._fullLayout,u=l[a.id];a.updateRadialAxisTitle(l,u,j)}}function $(e,t){var r=i.dot([e,-t],[Math.cos(T),Math.sin(T)]);if(F=P-L*r,L>0===(n?F>M:F<S)){var s=l._fullLayout,u=s[a.id];d.range[n]=F,d._rl[n]=F,a.updateRadialAxis(s,u),a.xaxis.setRange(),a.xaxis.setScale(),a.yaxis.setRange(),a.yaxis.setScale();var c=!1;for(var f in a.traceHash){var p=a.traceHash[f],h=i.filterVisible(p),v=p[0][0].trace._module;v.plot(l,a,h,u),o.traceIs(f,"gl")&&h.length&&(c=!0)}c&&(w(l),k(l))}else F=null}},L.updateAngularDrag=function(e){var t=this,n=t.gd,a=t.layers,l=t.radius,u=t.angularAxis,c=t.cx,f=t.cy,p=t.cxx,d=t.cyy,m=E.angularDragBoxSize,y=h.makeDragger(a,"path","angulardrag","move"),g={element:y,gd:n};function b(e,t){return Math.atan2(d+m-t,e-p-m)}r.select(y).attr("d",t.pathAnnulus(l,l+m)).attr("transform",z(c,f)).call(_,"move");var T,O,M,S,C,P,L=a.frontplot.select(".scatterlayer").selectAll(".trace"),D=L.selectAll(".point"),j=L.selectAll(".textpoint");function I(e,l){var h=t.gd._fullLayout,v=h[t.id],m=T+e,y=O+l,g=b(m,y),x=A(g-P);if(S=M+x,a.frontplot.attr("transform",z(t.xOffset2,t.yOffset2)+N([-x,p,d])),t.vangles){C=t.radialAxisAngle+x;var _=z(c,f)+N(-x),E=z(c,f)+N(-C);a.bg.attr("transform",_),a["radial-grid"].attr("transform",_),a["radial-axis"].attr("transform",E),a["radial-line"].select("line").attr("transform",E),t.updateRadialAxisTitle(h,v,C)}else t.clipPaths.forTraces.select("path").attr("transform",z(p,d)+N(x));D.each((function(){var e=r.select(this),t=s.getTranslate(e);e.attr("transform",z(t.x,t.y)+N([x]))})),j.each((function(){var e=r.select(this),t=e.select("text"),n=s.getTranslate(e);e.attr("transform",N([x,t.attr("x"),t.attr("y")])+z(n.x,n.y))})),u.rotation=i.modHalf(S,360),t.updateAngularAxis(h,v),t._hasClipOnAxisFalse&&!i.isFullCircle(t.sectorInRad)&&L.call(s.hideOutsideRangePoints,t);var I=!1;for(var F in t.traceHash)if(o.traceIs(F,"gl")){var B=t.traceHash[F],V=i.filterVisible(B),H=B[0][0].trace._module;H.plot(n,t,V,v),V.length&&(I=!0)}I&&(w(n),k(n));var U={};R(U),n.emit("plotly_relayouting",U)}function R(e){e[t.id+".angularaxis.rotation"]=S,t.vangles&&(e[t.id+".radialaxis.angle"]=C)}function F(){j.select("text").attr("transform",null);var e={};R(e),o.call("_guiRelayout",n,e)}g.prepFn=function(r,a,o){var i=e[t.id];M=i.angularaxis.rotation;var l=y.getBoundingClientRect();T=a-l.left,O=o-l.top,P=b(T,O),g.moveFn=I,g.doneFn=F,x(n)},t.vangles&&!i.isFullCircle(t.sectorInRad)&&(g.prepFn=i.noop,_(r.select(y),null)),v.init(g)},L.isPtInside=function(e){var t=this.sectorInRad,n=this.vangles,r=this.angularAxis.c2g(e.theta),a=this.radialAxis,o=a.c2l(e.r),l=a._rl,s=n?O.isPtInsidePolygon:i.isPtInsideSector;return s(o,r,l,t,n)},L.pathArc=function(e){var t=this.sectorInRad,n=this.vangles,r=n?O.pathPolygon:i.pathArc;return r(e,t[0],t[1],n)},L.pathSector=function(e){var t=this.sectorInRad,n=this.vangles,r=n?O.pathPolygon:i.pathSector;return r(e,t[0],t[1],n)},L.pathAnnulus=function(e,t){var n=this.sectorInRad,r=this.vangles,a=r?O.pathPolygonAnnulus:i.pathAnnulus;return a(e,t,n[0],n[1],r)},L.pathSubplot=function(){var e=this.innerRadius,t=this.radius;return e?this.pathAnnulus(e,t):this.pathSector(t)},L.fillViewInitialKey=function(e,t){e in this.viewInitial||(this.viewInitial[e]=t)}},{"../../components/color":615,"../../components/dragelement":634,"../../components/drawing":637,"../../components/fx":655,"../../components/titles":710,"../../constants/alignment":717,"../../lib":750,"../../lib/clear_gl_canvases":734,"../../lib/setcursor":770,"../../plot_api/subroutines":789,"../../plots/cartesian/axes":799,"../../registry":882,"../cartesian/autorange":798,"../cartesian/dragbox":807,"../cartesian/select":818,"../cartesian/set_convert":819,"../plots":862,"./constants":863,"./helpers":864,"./set_convert":875,d3:169,tinycolor2:548}],875:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../cartesian/set_convert"),o=r.deg2rad,i=r.rad2deg;function l(e,t){var n=t._subplot;e.setGeometry=function(){var t=e._rl[0],r=e._rl[1],a=n.innerRadius,o=(n.radius-a)/(r-t),i=a/o,l=t>r?function(e){return e<=0}:function(e){return e>=0};e.c2g=function(n){var r=e.c2l(n)-t;return(l(r)?r:0)+i},e.g2c=function(n){return e.l2c(n+t-i)},e.g2p=function(e){return e*o},e.c2p=function(t){return e.g2p(e.c2g(t))}}}function s(e,t){return"degrees"===t?o(e):e}function u(e,t){return"degrees"===t?i(e):e}function c(e,t){var n=e.type;if("linear"===n){var a=e.d2c,l=e.c2d;e.d2c=function(e,t){return s(a(e),t)},e.c2d=function(e,t){return l(u(e,t))}}e.makeCalcdata=function(t,a){var o,i,l=t[a],s=t._length,u=function(n){return e.d2c(n,t.thetaunit)};if(l){if(r.isTypedArray(l)&&"linear"===n){if(s===l.length)return l;if(l.subarray)return l.subarray(0,s)}for(o=new Array(s),i=0;i<s;i++)o[i]=u(l[i])}else{var c=a+"0",f="d"+a,p=c in t?u(t[c]):0,d=t[f]?u(t[f]):(e.period||2*Math.PI)/s;for(o=new Array(s),i=0;i<s;i++)o[i]=p+i*d}return o},e.setGeometry=function(){var a,l,s,u,c=t.sector,f=c.map(o),p={clockwise:-1,counterclockwise:1}[e.direction],d=o(e.rotation),h=function(e){return p*e+d},v=function(e){return(e-d)/p};switch(n){case"linear":l=a=r.identity,u=o,s=i,e.range=r.isFullCircle(f)?[c[0],c[0]+360]:f.map(v).map(i);break;case"category":var m=e._categories.length,y=e.period?Math.max(e.period,m):m;0===y&&(y=1),l=u=function(e){return 2*e*Math.PI/y},a=s=function(e){return e*y/Math.PI/2},e.range=[0,y];break}e.c2g=function(e){return h(l(e))},e.g2c=function(e){return a(v(e))},e.t2g=function(e){return h(u(e))},e.g2t=function(e){return s(v(e))}}}t.exports=function(e,t,n){switch(a(e,n),e._id){case"x":case"radialaxis":l(e,t);break;case"angularaxis":c(e,t);break}}},{"../../lib":750,"../cartesian/set_convert":819}],876:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plot_api/plot_template"),o=e("./domain").defaults;t.exports=function(e,t,n,i){var l,s,u=i.type,c=i.attributes,f=i.handleDefaults,p=i.partition||"x",d=t._subplots[u],h=d.length,v=h&&d[0].replace(/\d+$/,"");function m(e,t){return r.coerce(l,s,c,e,t)}for(var y=0;y<h;y++){var g=d[y];l=e[g]?e[g]:e[g]={},s=a.newContainer(t,g,v),m("uirevision",t.uirevision);var b={};b[p]=[y/h,(y+1)/h],o(s,t,m,b),i.id=g,f(l,s,m,i)}}},{"../lib":750,"../plot_api/plot_template":788,"./domain":826}],877:[function(e,t,n){"use strict";var r=e("../constants/docs").FORMAT_LINK,a=e("../constants/docs").DATE_FORMAT_LINK;['Variables are inserted using %{variable}, for example "y: %{y}".','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example "Price: %{y:$.2f}".',r,"for details on the formatting syntax.",'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example "Day: %{2019-01-01|%A}".',a,"for details on the date formatting syntax."].join(" ");function o(e){var t=e.description?" "+e.description:"",n=e.keys||[];if(n.length>0){for(var r=[],a=0;a<n.length;a++)r[a]="`"+n[a]+"`";t+="Finally, the template string has access to ",t=1===n.length?"variable "+r[0]:"variables "+r.slice(0,-1).join(", ")+" and "+r.slice(-1)+"."}return t}n.hovertemplateAttrs=function(e,t){e=e||{},t=t||{};o(t);var n={valType:"string",dflt:"",editType:e.editType||"none"};return!1!==e.arrayOk&&(n.arrayOk=!0),n},n.texttemplateAttrs=function(e,t){e=e||{},t=t||{};o(t);var n={valType:"string",dflt:"",editType:e.editType||"calc"};return!1!==e.arrayOk&&(n.arrayOk=!0),n}},{"../constants/docs":720}],878:[function(e,t,n){"use strict";var r=e("./ternary"),a=e("../../plots/get_data").getSubplotCalcData,o=e("../../lib").counterRegex,i="ternary";n.name=i;var l=n.attr="subplot";n.idRoot=i,n.idRegex=n.attrRegex=o(i);var s=n.attributes={};s[l]={valType:"subplotid",dflt:"ternary",editType:"calc"},n.layoutAttributes=e("./layout_attributes"),n.supplyLayoutDefaults=e("./layout_defaults"),n.plot=function(e){for(var t=e._fullLayout,n=e.calcdata,o=t._subplots[i],l=0;l<o.length;l++){var s=o[l],u=a(n,i,s),c=t[s]._subplot;c||(c=new r({id:s,graphDiv:e,container:t._ternarylayer.node()},t),t[s]._subplot=c),c.plot(u,t,e._promises)}},n.clean=function(e,t,n,r){for(var a=r._subplots[i]||[],o=0;o<a.length;o++){var l=a[o],s=r[l]._subplot;!t[l]&&s&&(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers["a-title"].remove(),s.layers["b-title"].remove(),s.layers["c-title"].remove())}}},{"../../lib":750,"../../plots/get_data":836,"./layout_attributes":879,"./layout_defaults":880,"./ternary":881}],879:[function(e,t,n){"use strict";var r=e("../../components/color/attributes"),a=e("../domain").attributes,o=e("../cartesian/layout_attributes"),i=e("../../plot_api/edit_types").overrideAll,l=e("../../lib/extend").extendFlat,s={title:{text:o.title.text,font:o.title.font},color:o.color,tickmode:o.tickmode,nticks:l({},o.nticks,{dflt:6,min:1}),tick0:o.tick0,dtick:o.dtick,tickvals:o.tickvals,ticktext:o.ticktext,ticks:o.ticks,ticklen:o.ticklen,tickwidth:o.tickwidth,tickcolor:o.tickcolor,showticklabels:o.showticklabels,showtickprefix:o.showtickprefix,tickprefix:o.tickprefix,showticksuffix:o.showticksuffix,ticksuffix:o.ticksuffix,showexponent:o.showexponent,exponentformat:o.exponentformat,minexponent:o.minexponent,separatethousands:o.separatethousands,tickfont:o.tickfont,tickangle:o.tickangle,tickformat:o.tickformat,tickformatstops:o.tickformatstops,hoverformat:o.hoverformat,showline:l({},o.showline,{dflt:!0}),linecolor:o.linecolor,linewidth:o.linewidth,showgrid:l({},o.showgrid,{dflt:!0}),gridcolor:o.gridcolor,gridwidth:o.gridwidth,layer:o.layer,min:{valType:"number",dflt:0,min:0},_deprecated:{title:o._deprecated.title,titlefont:o._deprecated.titlefont}},u=t.exports=i({domain:a({name:"ternary"}),bgcolor:{valType:"color",dflt:r.background},sum:{valType:"number",dflt:1,min:0},aaxis:s,baxis:s,caxis:s},"plot","from-root");u.uirevision={valType:"any",editType:"none"},u.aaxis.uirevision=u.baxis.uirevision=u.caxis.uirevision={valType:"any",editType:"none"}},{"../../components/color/attributes":614,"../../lib/extend":740,"../../plot_api/edit_types":781,"../cartesian/layout_attributes":813,"../domain":826}],880:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("../../plot_api/plot_template"),o=e("../../lib"),i=e("../subplot_defaults"),l=e("../cartesian/tick_label_defaults"),s=e("../cartesian/tick_mark_defaults"),u=e("../cartesian/tick_value_defaults"),c=e("../cartesian/line_grid_defaults"),f=e("./layout_attributes"),p=["aaxis","baxis","caxis"];function d(e,t,n,o){var i,l,s,u=n("bgcolor"),c=n("sum");o.bgColor=r.combine(u,o.paper_bgcolor);for(var f=0;f<p.length;f++)i=p[f],l=e[i]||{},s=a.newContainer(t,i),s._name=i,h(l,s,o,t);var d=t.aaxis,v=t.baxis,m=t.caxis;d.min+v.min+m.min>=c&&(d.min=0,v.min=0,m.min=0,e.aaxis&&delete e.aaxis.min,e.baxis&&delete e.baxis.min,e.caxis&&delete e.caxis.min)}function h(e,t,n,r){var a=f[t._name];function i(n,r){return o.coerce(e,t,a,n,r)}i("uirevision",r.uirevision),t.type="linear";var p=i("color"),d=p!==a.color.dflt?p:n.font.color,h=t._name,v=h.charAt(0).toUpperCase(),m="Component "+v,y=i("title.text",m);t._hovertitle=y===m?y:v,o.coerceFont(i,"title.font",{family:n.font.family,size:Math.round(1.2*n.font.size),color:d}),i("min"),u(e,t,i,"linear"),l(e,t,i,"linear",{}),s(e,t,i,{outerTicks:!0});var g=i("showticklabels");g&&(o.coerceFont(i,"tickfont",{family:n.font.family,size:n.font.size,color:d}),i("tickangle"),i("tickformat")),c(e,t,i,{dfltColor:p,bgColor:n.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:a}),i("hoverformat"),i("layer")}t.exports=function(e,t,n){i(e,t,n,{type:"ternary",attributes:f,handleDefaults:d,font:t.font,paper_bgcolor:t.paper_bgcolor})}},{"../../components/color":615,"../../lib":750,"../../plot_api/plot_template":788,"../cartesian/line_grid_defaults":815,"../cartesian/tick_label_defaults":820,"../cartesian/tick_mark_defaults":821,"../cartesian/tick_value_defaults":822,"../subplot_defaults":876,"./layout_attributes":879}],881:[function(e,t,n){"use strict";var r=e("d3"),a=e("tinycolor2"),o=e("../../registry"),i=e("../../lib"),l=i._,s=e("../../components/color"),u=e("../../components/drawing"),c=e("../cartesian/set_convert"),f=e("../../lib/extend").extendFlat,p=e("../plots"),d=e("../cartesian/axes"),h=e("../../components/dragelement"),v=e("../../components/fx"),m=e("../../components/dragelement/helpers"),y=m.freeMode,g=m.rectMode,b=e("../../components/titles"),x=e("../cartesian/select").prepSelect,_=e("../cartesian/select").selectOnClick,w=e("../cartesian/select").clearSelect,k=e("../cartesian/select").clearSelectionsCache,T=e("../cartesian/constants");function E(e,t){this.id=e.id,this.graphDiv=e.graphDiv,this.init(t),this.makeFramework(t),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}t.exports=E;var O=E.prototype;O.init=function(e){this.container=e._ternarylayer,this.defs=e._defs,this.layoutId=e._uid,this.traceHash={},this.layers={}},O.plot=function(e,t){var n=this,r=t[n.id],a=t._size;n._hasClipOnAxisFalse=!1;for(var o=0;o<e.length;o++){var i=e[o][0].trace;if(!1===i.cliponaxis){n._hasClipOnAxisFalse=!0;break}}n.updateLayers(r),n.adjustLayout(r,a),p.generalUpdatePerTraceModule(n.graphDiv,n,e,r),n.layers.plotbg.select("path").call(s.fill,r.bgcolor)},O.makeFramework=function(e){var t=this,n=t.graphDiv,r=e[t.id],a=t.clipId="clip"+t.layoutId+t.id,o=t.clipIdRelative="clip-relative"+t.layoutId+t.id;t.clipDef=i.ensureSingleById(e._clips,"clipPath",a,(function(e){e.append("path").attr("d","M0,0Z")})),t.clipDefRelative=i.ensureSingleById(e._clips,"clipPath",o,(function(e){e.append("path").attr("d","M0,0Z")})),t.plotContainer=i.ensureSingle(t.container,"g",t.id),t.updateLayers(r),u.setClipUrl(t.layers.backplot,a,n),u.setClipUrl(t.layers.grids,a,n)},O.updateLayers=function(e){var t=this,n=t.layers,a=["draglayer","plotbg","backplot","grids"];"below traces"===e.aaxis.layer&&a.push("aaxis","aline"),"below traces"===e.baxis.layer&&a.push("baxis","bline"),"below traces"===e.caxis.layer&&a.push("caxis","cline"),a.push("frontplot"),"above traces"===e.aaxis.layer&&a.push("aaxis","aline"),"above traces"===e.baxis.layer&&a.push("baxis","bline"),"above traces"===e.caxis.layer&&a.push("caxis","cline");var o=t.plotContainer.selectAll("g.toplevel").data(a,String),i=["agrid","bgrid","cgrid"];o.enter().append("g").attr("class",(function(e){return"toplevel "+e})).each((function(e){var t=r.select(this);n[e]=t,"frontplot"===e?t.append("g").classed("scatterlayer",!0):"backplot"===e?t.append("g").classed("maplayer",!0):"plotbg"===e?t.append("path").attr("d","M0,0Z"):"aline"===e||"bline"===e||"cline"===e?t.append("path"):"grids"===e&&i.forEach((function(e){n[e]=t.append("g").classed("grid "+e,!0)}))})),o.order()};var M=Math.sqrt(4/3);function S(e){return e.ticks+String(e.ticklen)+String(e.showticklabels)}O.adjustLayout=function(e,t){var n,r,a,o,i,l,p=this,d=e.domain,h=(d.x[0]+d.x[1])/2,v=(d.y[0]+d.y[1])/2,m=d.x[1]-d.x[0],y=d.y[1]-d.y[0],g=m*t.w,b=y*t.h,x=e.sum,_=e.aaxis.min,w=e.baxis.min,k=e.caxis.min;g>M*b?(o=b,a=o*M):(a=g,o=a/M),i=m*a/g,l=y*o/b,n=t.l+t.w*h-a/2,r=t.t+t.h*(1-v)-o/2,p.x0=n,p.y0=r,p.w=a,p.h=o,p.sum=x,p.xaxis={type:"linear",range:[_+2*k-x,x-_-2*w],domain:[h-i/2,h+i/2],_id:"x"},c(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(e){return e.a>=p.aaxis.range[0]&&e.a<=p.aaxis.range[1]&&e.b>=p.baxis.range[1]&&e.b<=p.baxis.range[0]&&e.c>=p.caxis.range[1]&&e.c<=p.caxis.range[0]},p.yaxis={type:"linear",range:[_,x-w-k],domain:[v-l/2,v+l/2],_id:"y"},c(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var T=p.yaxis.domain[0],E=p.aaxis=f({},e.aaxis,{range:[_,x-w-k],side:"left",tickangle:(+e.aaxis.tickangle||0)-30,domain:[T,T+l*M],anchor:"free",position:0,_id:"y",_length:a});c(E,p.graphDiv._fullLayout),E.setScale();var O=p.baxis=f({},e.baxis,{range:[x-_-k,w],side:"bottom",domain:p.xaxis.domain,anchor:"free",position:0,_id:"x",_length:a});c(O,p.graphDiv._fullLayout),O.setScale();var S=p.caxis=f({},e.caxis,{range:[x-_-w,k],side:"right",tickangle:(+e.caxis.tickangle||0)+30,domain:[T,T+l*M],anchor:"free",position:0,_id:"y",_length:a});c(S,p.graphDiv._fullLayout),S.setScale();var C="M"+n+","+(r+o)+"h"+a+"l-"+a/2+",-"+o+"Z";p.clipDef.select("path").attr("d",C),p.layers.plotbg.select("path").attr("d",C);var A="M0,"+o+"h"+a+"l-"+a/2+",-"+o+"Z";p.clipDefRelative.select("path").attr("d",A);var P="translate("+n+","+r+")";p.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",P),p.clipDefRelative.select("path").attr("transform",null);var L="translate("+(n-O._offset)+","+(r+o)+")";p.layers.baxis.attr("transform",L),p.layers.bgrid.attr("transform",L);var D="translate("+(n+a/2)+","+r+")rotate(30)translate(0,"+-E._offset+")";p.layers.aaxis.attr("transform",D),p.layers.agrid.attr("transform",D);var j="translate("+(n+a/2)+","+r+")rotate(-30)translate(0,"+-S._offset+")";p.layers.caxis.attr("transform",j),p.layers.cgrid.attr("transform",j),p.drawAxes(!0),p.layers.aline.select("path").attr("d",E.showline?"M"+n+","+(r+o)+"l"+a/2+",-"+o:"M0,0").call(s.stroke,E.linecolor||"#000").style("stroke-width",(E.linewidth||0)+"px"),p.layers.bline.select("path").attr("d",O.showline?"M"+n+","+(r+o)+"h"+a:"M0,0").call(s.stroke,O.linecolor||"#000").style("stroke-width",(O.linewidth||0)+"px"),p.layers.cline.select("path").attr("d",S.showline?"M"+(n+a/2)+","+r+"l"+a/2+","+o:"M0,0").call(s.stroke,S.linecolor||"#000").style("stroke-width",(S.linewidth||0)+"px"),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},O.drawAxes=function(e){var t=this,n=t.graphDiv,r=t.id.substr(7)+"title",a=t.layers,o=t.aaxis,i=t.baxis,s=t.caxis;if(t.drawAx(o),t.drawAx(i),t.drawAx(s),e){var u=Math.max(o.showticklabels?o.tickfont.size/2:0,(s.showticklabels?.75*s.tickfont.size:0)+("outside"===s.ticks?.87*s.ticklen:0)),c=(i.showticklabels?i.tickfont.size:0)+("outside"===i.ticks?i.ticklen:0)+3;a["a-title"]=b.draw(n,"a"+r,{propContainer:o,propName:t.id+".aaxis.title",placeholder:l(n,"Click to enter Component A title"),attributes:{x:t.x0+t.w/2,y:t.y0-o.title.font.size/3-u,"text-anchor":"middle"}}),a["b-title"]=b.draw(n,"b"+r,{propContainer:i,propName:t.id+".baxis.title",placeholder:l(n,"Click to enter Component B title"),attributes:{x:t.x0-c,y:t.y0+t.h+.83*i.title.font.size+c,"text-anchor":"middle"}}),a["c-title"]=b.draw(n,"c"+r,{propContainer:s,propName:t.id+".caxis.title",placeholder:l(n,"Click to enter Component C title"),attributes:{x:t.x0+t.w+c,y:t.y0+t.h+.83*s.title.font.size+c,"text-anchor":"middle"}})}},O.drawAx=function(e){var t=this,n=t.graphDiv,r=e._name,a=r.charAt(0),o=e._id,l=t.layers[r],s=30,u=a+"tickLayout",c=S(e);t[u]!==c&&(l.selectAll("."+o+"tick").remove(),t[u]=c),e.setScale();var f=d.calcTicks(e),p=d.clipEnds(e,f),h=d.makeTransFn(e),v=d.getTickSigns(e)[2],m=i.deg2rad(s),y=v*(e.linewidth||1)/2,g=v*e.ticklen,b=t.w,x=t.h,_="b"===a?"M0,"+y+"l"+Math.sin(m)*g+","+Math.cos(m)*g:"M"+y+",0l"+Math.cos(m)*g+","+-Math.sin(m)*g,w={a:"M0,0l"+x+",-"+b/2,b:"M0,0l-"+b/2+",-"+x,c:"M0,0l-"+x+","+b/2}[a];d.drawTicks(n,e,{vals:"inside"===e.ticks?p:f,layer:l,path:_,transFn:h,crisp:!1}),d.drawGrid(n,e,{vals:p,layer:t.layers[a+"grid"],path:w,transFn:h,crisp:!1}),d.drawLabels(n,e,{vals:f,layer:l,transFn:h,labelFns:d.makeLabelFns(e,0,s)})};var C=T.MINZOOM/2+.87,A="m-0.87,.5h"+C+"v3h-"+(C+5.2)+"l"+(C/2+2.6)+",-"+(.87*C+4.5)+"l2.6,1.5l-"+C/2+","+.87*C+"Z",P="m0.87,.5h-"+C+"v3h"+(C+5.2)+"l-"+(C/2+2.6)+",-"+(.87*C+4.5)+"l-2.6,1.5l"+C/2+","+.87*C+"Z",L="m0,1l"+C/2+","+.87*C+"l2.6,-1.5l-"+(C/2+2.6)+",-"+(.87*C+4.5)+"l-"+(C/2+2.6)+","+(.87*C+4.5)+"l2.6,1.5l"+C/2+",-"+.87*C+"Z",D="m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2Z",j=!0;function I(e){r.select(e).selectAll(".zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners").remove()}O.clearSelect=function(){k(this.dragOptions),w(this.dragOptions.gd)},O.initInteractions=function(){var e,t,n,r,c,f,p,d,m,b,w=this,k=w.layers.plotbg.select("path").node(),E=w.graphDiv,O=E._fullLayout._zoomlayer;function S(e){var t={};return t[w.id+".aaxis.min"]=e.a,t[w.id+".baxis.min"]=e.b,t[w.id+".caxis.min"]=e.c,t}function C(e,t){var n=E._fullLayout.clickmode;I(E),2===e&&(E.emit("plotly_doubleclick",null),o.call("_guiRelayout",E,S({a:0,b:0,c:0}))),n.indexOf("select")>-1&&1===e&&_(t,E,[w.xaxis],[w.yaxis],w.id,w.dragOptions),n.indexOf("event")>-1&&v.click(E,t,w.id)}function R(o,i,l){var u=k.getBoundingClientRect();e=i-u.left,t=l-u.top,n={a:w.aaxis.range[0],b:w.baxis.range[1],c:w.caxis.range[1]},c=n,r=w.aaxis.range[1]-n.a,f=a(w.graphDiv._fullLayout[w.id].bgcolor).getLuminance(),p="M0,"+w.h+"L"+w.w/2+", 0L"+w.w+","+w.h+"Z",d=!1,m=O.append("path").attr("class","zoombox").attr("transform","translate("+w.x0+", "+w.y0+")").style({fill:f>.2?"rgba(0,0,0,0)":"rgba(255,255,255,0)","stroke-width":0}).attr("d",p),b=O.append("path").attr("class","zoombox-corners").attr("transform","translate("+w.x0+", "+w.y0+")").style({fill:s.background,stroke:s.defaultLine,"stroke-width":1,opacity:0}).attr("d","M0,0Z"),w.clearSelect(E)}function z(e,t){return 1-t/w.h}function N(e,t){return 1-(e+(w.h-t)/Math.sqrt(3))/w.w}function F(e,t){return(e-(w.h-t)/Math.sqrt(3))/w.w}function B(a,o){var i=e+a,l=t+o,s=Math.max(0,Math.min(1,z(e,t),z(i,l))),u=Math.max(0,Math.min(1,N(e,t),N(i,l))),h=Math.max(0,Math.min(1,F(e,t),F(i,l))),v=(s/2+h)*w.w,y=(1-s/2-u)*w.w,g=(v+y)/2,x=y-v,_=(1-s)*w.h,k=_-x/M;x<T.MINZOOM?(c=n,m.attr("d",p),b.attr("d","M0,0Z")):(c={a:n.a+s*r,b:n.b+u*r,c:n.c+h*r},m.attr("d",p+"M"+v+","+_+"H"+y+"L"+g+","+k+"L"+v+","+_+"Z"),b.attr("d","M"+e+","+t+D+"M"+v+","+_+A+"M"+y+","+_+P+"M"+g+","+k+L)),d||(m.transition().style("fill",f>.2?"rgba(0,0,0,0.4)":"rgba(255,255,255,0.3)").duration(200),b.transition().style("opacity",1).duration(200),d=!0),E.emit("plotly_relayouting",S(c))}function V(){I(E),c!==n&&(o.call("_guiRelayout",E,S(c)),j&&E.data&&E._context.showTips&&(i.notifier(l(E,"Double-click to zoom back out"),"long"),j=!1))}function H(){n={a:w.aaxis.range[0],b:w.baxis.range[1],c:w.caxis.range[1]},c=n}function U(e,t){var r=e/w.xaxis._m,a=t/w.yaxis._m;c={a:n.a-a,b:n.b+(r+a)/2,c:n.c-(r-a)/2};var o=[c.a,c.b,c.c].sort(i.sorterAsc),l={a:o.indexOf(c.a),b:o.indexOf(c.b),c:o.indexOf(c.c)};o[0]<0&&(o[1]+o[0]/2<0?(o[2]+=o[0]+o[1],o[0]=o[1]=0):(o[2]+=o[0]/2,o[1]+=o[0]/2,o[0]=0),c={a:o[l.a],b:o[l.b],c:o[l.c]},t=(n.a-c.a)*w.yaxis._m,e=(n.c-c.c-n.b+c.b)*w.xaxis._m);var s="translate("+(w.x0+e)+","+(w.y0+t)+")";w.plotContainer.selectAll(".scatterlayer,.maplayer").attr("transform",s);var f="translate("+-e+","+-t+")";w.clipDefRelative.select("path").attr("transform",f),w.aaxis.range=[c.a,w.sum-c.b-c.c],w.baxis.range=[w.sum-c.a-c.c,c.b],w.caxis.range=[w.sum-c.a-c.b,c.c],w.drawAxes(!1),w._hasClipOnAxisFalse&&w.plotContainer.select(".scatterlayer").selectAll(".trace").call(u.hideOutsideRangePoints,w),E.emit("plotly_relayouting",S(c))}function W(){o.call("_guiRelayout",E,S(c))}this.dragOptions={element:k,gd:E,plotinfo:{id:w.id,domain:E._fullLayout[w.id].domain,xaxis:w.xaxis,yaxis:w.yaxis},subplot:w.id,prepFn:function(e,t,n){w.dragOptions.xaxes=[w.xaxis],w.dragOptions.yaxes=[w.yaxis];var r=w.dragOptions.dragmode=E._fullLayout.dragmode;y(r)?w.dragOptions.minDrag=1:w.dragOptions.minDrag=void 0,"zoom"===r?(w.dragOptions.moveFn=B,w.dragOptions.clickFn=C,w.dragOptions.doneFn=V,R(e,t,n)):"pan"===r?(w.dragOptions.moveFn=U,w.dragOptions.clickFn=C,w.dragOptions.doneFn=W,H(),w.clearSelect(E)):(g(r)||y(r))&&x(e,t,n,w.dragOptions,r)}},k.onmousemove=function(e){v.hover(E,e,w.id),E._fullLayout._lasthover=k,E._fullLayout._hoversubplot=w.id},k.onmouseout=function(e){E._dragging||h.unhover(E,e)},h.init(this.dragOptions)}},{"../../components/color":615,"../../components/dragelement":634,"../../components/dragelement/helpers":633,"../../components/drawing":637,"../../components/fx":655,"../../components/titles":710,"../../lib":750,"../../lib/extend":740,"../../registry":882,"../cartesian/axes":799,"../cartesian/constants":805,"../cartesian/select":818,"../cartesian/set_convert":819,"../plots":862,d3:169,tinycolor2:548}],882:[function(e,t,n){"use strict";var r=e("./lib/loggers"),a=e("./lib/noop"),o=e("./lib/push_unique"),i=e("./lib/is_plain_object"),l=e("./lib/dom").addStyleRule,s=e("./lib/extend"),u=e("./plots/attributes"),c=e("./plots/layout_attributes"),f=s.extendFlat,p=s.extendDeepAll;function d(e){var t=e.name,a=e.categories,o=e.meta;if(n.modules[t])r.log("Type "+t+" already registered");else{n.subplotsRegistry[e.basePlotModule.name]||h(e.basePlotModule);for(var i={},s=0;s<a.length;s++)i[a[s]]=!0,n.allCategories[a[s]]=!0;for(var u in n.modules[t]={_module:e,categories:i},o&&Object.keys(o).length&&(n.modules[t].meta=o),n.allTypes.push(t),n.componentsRegistry)b(u,t);e.layoutAttributes&&f(n.traceLayoutAttributes,e.layoutAttributes);var c=e.basePlotModule,p=c.name;if("mapbox"===p){var d=c.constants.styleRules;for(var v in d)l(".js-plotly-plot .plotly .mapboxgl-"+v,d[v])}"geo"!==p&&"mapbox"!==p||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function h(e){var t=e.name;if(n.subplotsRegistry[t])r.log("Plot type "+t+" already registered.");else for(var a in g(e),n.subplotsRegistry[t]=e,n.componentsRegistry)_(a,e.name)}function v(e){if("string"!==typeof e.name)throw new Error("Component module *name* must be a string.");var t=e.name;for(var r in n.componentsRegistry[t]=e,e.layoutAttributes&&(e.layoutAttributes._isLinkedToArray&&o(n.layoutArrayContainers,t),g(e)),n.modules)b(t,r);for(var a in n.subplotsRegistry)_(t,a);for(var i in n.transformsRegistry)x(t,i);e.schema&&e.schema.layout&&p(c,e.schema.layout)}function m(e){if("string"!==typeof e.name)throw new Error("Transform module *name* must be a string.");var t="Transform module "+e.name,a="function"===typeof e.transform,o="function"===typeof e.calcTransform;if(!a&&!o)throw new Error(t+" is missing a *transform* or *calcTransform* method.");for(var l in a&&o&&r.log([t+" has both a *transform* and *calcTransform* methods.","Please note that all *transform* methods are executed","before all *calcTransform* methods."].join(" ")),i(e.attributes)||r.log(t+" registered without an *attributes* object."),"function"!==typeof e.supplyDefaults&&r.log(t+" registered without a *supplyDefaults* method."),n.transformsRegistry[e.name]=e,n.componentsRegistry)x(l,e.name)}function y(e){var t=e.name,r=t.split("-")[0],a=e.dictionary,o=e.format,i=a&&Object.keys(a).length,l=o&&Object.keys(o).length,s=n.localeRegistry,u=s[t];if(u||(s[t]=u={}),r!==t){var c=s[r];c||(s[r]=c={}),i&&c.dictionary===u.dictionary&&(c.dictionary=a),l&&c.format===u.format&&(c.format=o)}i&&(u.dictionary=a),l&&(u.format=o)}function g(e){if(e.layoutAttributes){var t=e.layoutAttributes._arrayAttrRegexps;if(t)for(var r=0;r<t.length;r++)o(n.layoutArrayRegexes,t[r])}}function b(e,t){var r=n.componentsRegistry[e].schema;if(r&&r.traces){var a=r.traces[t];a&&p(n.modules[t]._module.attributes,a)}}function x(e,t){var r=n.componentsRegistry[e].schema;if(r&&r.transforms){var a=r.transforms[t];a&&p(n.transformsRegistry[t].attributes,a)}}function _(e,t){var r=n.componentsRegistry[e].schema;if(r&&r.subplots){var a=n.subplotsRegistry[t],o=a.layoutAttributes,i="subplot"===a.attr?a.name:a.attr;Array.isArray(i)&&(i=i[0]);var l=r.subplots[i];o&&l&&p(o,l)}}function w(e){return"object"===typeof e&&(e=e.type),e}n.modules={},n.allCategories={},n.allTypes=[],n.subplotsRegistry={},n.transformsRegistry={},n.componentsRegistry={},n.layoutArrayContainers=[],n.layoutArrayRegexes=[],n.traceLayoutAttributes={},n.localeRegistry={},n.apiMethodRegistry={},n.collectableSubplotTypes=null,n.register=function(e){if(n.collectableSubplotTypes=null,!e)throw new Error("No argument passed to Plotly.register.");e&&!Array.isArray(e)&&(e=[e]);for(var t=0;t<e.length;t++){var r=e[t];if(!r)throw new Error("Invalid module was attempted to be registered!");switch(r.moduleType){case"trace":d(r);break;case"transform":m(r);break;case"component":v(r);break;case"locale":y(r);break;case"apiMethod":var a=r.name;n.apiMethodRegistry[a]=r.fn;break;default:throw new Error("Invalid module was attempted to be registered!")}}},n.getModule=function(e){var t=n.modules[w(e)];return!!t&&t._module},n.traceIs=function(e,t){if(e=w(e),"various"===e)return!1;var a=n.modules[e];return a||(e&&"area"!==e&&r.log("Unrecognized trace type "+e+"."),a=n.modules[u.type.dflt]),!!a.categories[t]},n.getTransformIndices=function(e,t){for(var n=[],r=e.transforms||[],a=0;a<r.length;a++)r[a].type===t&&n.push(a);return n},n.hasTransform=function(e,t){for(var n=e.transforms||[],r=0;r<n.length;r++)if(n[r].type===t)return!0;return!1},n.getComponentMethod=function(e,t){var r=n.componentsRegistry[e];return r&&r[t]||a},n.call=function(){var e=arguments[0],t=[].slice.call(arguments,1);return n.apiMethodRegistry[e].apply(null,t)}},{"./lib/dom":738,"./lib/extend":740,"./lib/is_plain_object":751,"./lib/loggers":754,"./lib/noop":759,"./lib/push_unique":764,"./plots/attributes":795,"./plots/layout_attributes":853}],883:[function(e,t,n){"use strict";var r=e("../registry"),a=e("../lib"),o=a.extendFlat,i=a.extendDeep;function l(e){var t;switch(e){case"themes__thumb":t={autosize:!0,width:150,height:150,title:{text:""},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case"thumbnail":t={title:{text:""},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:"",margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:t={}}return t}function s(e){var t=["xaxis","yaxis","zaxis"];return t.indexOf(e.slice(0,5))>-1}t.exports=function(e,t){var n;e.framework&&e.framework.isPolar&&(e=e.framework.getConfig());var a=e.data,u=e.layout,c=i([],a),f=i({},u,l(t.tileClass)),p=e._context||{};if(t.width&&(f.width=t.width),t.height&&(f.height=t.height),"thumbnail"===t.tileClass||"themes__thumb"===t.tileClass){f.annotations=[];var d=Object.keys(f);for(n=0;n<d.length;n++)s(d[n])&&(f[d[n]].title={text:""});for(n=0;n<c.length;n++){var h=c[n];h.showscale=!1,h.marker&&(h.marker.showscale=!1),r.traceIs(h,"pie-like")&&(h.textposition="none")}}if(Array.isArray(t.annotations))for(n=0;n<t.annotations.length;n++)f.annotations.push(t.annotations[n]);var v=Object.keys(f).filter((function(e){return e.match(/^scene\d*$/)}));if(v.length){var m={};for("thumbnail"===t.tileClass&&(m={title:{text:""},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),n=0;n<v.length;n++){var y=f[v[n]];y.xaxis||(y.xaxis={}),y.yaxis||(y.yaxis={}),y.zaxis||(y.zaxis={}),o(y.xaxis,m),o(y.yaxis,m),o(y.zaxis,m),y._scene=null}}var g=document.createElement("div");t.tileClass&&(g.className=t.tileClass);var b={gd:g,td:g,layout:f,data:c,config:{staticPlot:void 0===t.staticPlot||t.staticPlot,plotGlPixelRatio:void 0===t.plotGlPixelRatio?2:t.plotGlPixelRatio,displaylogo:t.displaylogo||!1,showLink:t.showLink||!1,showTips:t.showTips||!1,mapboxAccessToken:p.mapboxAccessToken}};return"transparent"!==t.setBackground&&(b.config.setBackground=t.setBackground||"opaque"),b.gd.defaultLayout=l(t.tileClass),b}},{"../lib":750,"../registry":882}],884:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plot_api/to_image"),o=e("./filesaver"),i=e("./helpers");function l(e,t){var n;return r.isPlainObject(e)||(n=r.getGraphDiv(e)),t=t||{},t.format=t.format||"png",t.width=t.width||null,t.height=t.height||null,t.imageDataOnly=!0,new Promise((function(l,s){n&&n._snapshotInProgress&&s(new Error("Snapshotting already in progress.")),r.isIE()&&"svg"!==t.format&&s(new Error(i.MSG_IE_BAD_FORMAT)),n&&(n._snapshotInProgress=!0);var u=a(e,t),c=t.filename||e.fn||"newplot";c+="."+t.format.replace("-","."),u.then((function(e){return n&&(n._snapshotInProgress=!1),o(e,c,t.format)})).then((function(e){l(e)})).catch((function(e){n&&(n._snapshotInProgress=!1),s(e)}))}))}t.exports=l},{"../lib":750,"../plot_api/to_image":791,"./filesaver":885,"./helpers":886}],885:[function(e,t,n){"use strict";var r=e("../lib"),a=e("./helpers");function o(e,t,n){var o=document.createElement("a"),i="download"in o,l=new Promise((function(l,s){var u,c;if(r.isIE9orBelow()&&s(new Error("IE < 10 unsupported")),r.isSafari()){var f="svg"===n?",":";base64,";return a.octetStream(f+encodeURIComponent(e)),l(t)}return r.isIE()?(u=a.createBlob(e,"svg"),window.navigator.msSaveBlob(u,t),u=null,l(t)):i?(u=a.createBlob(e,n),c=a.createObjectURL(u),o.href=c,o.download=t,document.body.appendChild(o),o.click(),document.body.removeChild(o),a.revokeObjectURL(c),u=null,l(t)):void s(new Error("download error"))}));return l}t.exports=o},{"../lib":750,"./helpers":886}],886:[function(e,t,n){"use strict";var r=e("../registry");n.getDelay=function(e){return e._has&&(e._has("gl3d")||e._has("gl2d")||e._has("mapbox"))?500:0},n.getRedrawFunc=function(e){return function(){var t=e._fullLayout||{},n=t._has&&t._has("polar"),a=!n&&e.data&&e.data[0]&&e.data[0].r;a||r.getComponentMethod("colorbar","draw")(e)}},n.encodeSVG=function(e){return"data:image/svg+xml,"+encodeURIComponent(e)},n.encodeJSON=function(e){return"data:application/json,"+encodeURIComponent(e)};var a=window.URL||window.webkitURL;function o(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n),a=0;a<t;a++)r[a]=e.charCodeAt(a);return n}n.createObjectURL=function(e){return a.createObjectURL(e)},n.revokeObjectURL=function(e){return a.revokeObjectURL(e)},n.createBlob=function(e,t){if("svg"===t)return new window.Blob([e],{type:"image/svg+xml;charset=utf-8"});if("full-json"===t)return new window.Blob([e],{type:"application/json;charset=utf-8"});var n=o(window.atob(e));return new window.Blob([n],{type:"image/"+t})},n.octetStream=function(e){document.location.href="data:application/octet-stream"+e},n.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,n.MSG_IE_BAD_FORMAT="Sorry IE does not support downloading from canvas. Try {format:'svg'} instead."},{"../registry":882}],887:[function(e,t,n){"use strict";var r=e("./helpers"),a={getDelay:r.getDelay,getRedrawFunc:r.getRedrawFunc,clone:e("./cloneplot"),toSVG:e("./tosvg"),svgToImg:e("./svgtoimg"),toImage:e("./toimage"),downloadImage:e("./download")};t.exports=a},{"./cloneplot":883,"./download":884,"./helpers":886,"./svgtoimg":888,"./toimage":889,"./tosvg":890}],888:[function(e,t,n){"use strict";var r=e("../lib"),a=e("events").EventEmitter,o=e("./helpers");function i(e){var t=e.emitter||new a,n=new Promise((function(a,i){var l=window.Image,s=e.svg,u=e.format||"png";if(r.isIE()&&"svg"!==u){var c=new Error(o.MSG_IE_BAD_FORMAT);return i(c),e.promise?n:t.emit("error",c)}var f,p,d=e.canvas,h=e.scale||1,v=e.width||300,m=e.height||150,y=h*v,g=h*m,b=d.getContext("2d"),x=new l;"svg"===u||r.isIE9orBelow()||r.isSafari()?p=o.encodeSVG(s):(f=o.createBlob(s,"svg"),p=o.createObjectURL(f)),d.width=y,d.height=g,x.onload=function(){var n;switch(f=null,o.revokeObjectURL(p),"svg"!==u&&b.drawImage(x,0,0,y,g),u){case"jpeg":n=d.toDataURL("image/jpeg");break;case"png":n=d.toDataURL("image/png");break;case"webp":n=d.toDataURL("image/webp");break;case"svg":n=p;break;default:var r="Image format is not jpeg, png, svg or webp.";if(i(new Error(r)),!e.promise)return t.emit("error",r)}a(n),e.promise||t.emit("success",n)},x.onerror=function(n){if(f=null,o.revokeObjectURL(p),i(n),!e.promise)return t.emit("error",n)},x.src=p}));return e.promise?n:t}t.exports=i},{"../lib":750,"./helpers":886,events:110}],889:[function(e,t,n){"use strict";var r=e("events").EventEmitter,a=e("../registry"),o=e("../lib"),i=e("./helpers"),l=e("./cloneplot"),s=e("./tosvg"),u=e("./svgtoimg");function c(e,t){var n=new r,c=l(e,{format:"png"}),f=c.gd;function p(){var e=i.getDelay(f._fullLayout);setTimeout((function(){var e=s(f),r=document.createElement("canvas");r.id=o.randstr(),n=u({format:t.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:r,emitter:n,svg:e}),n.clean=function(){f&&document.body.removeChild(f)}}),e)}f.style.position="absolute",f.style.left="-5000px",document.body.appendChild(f);var d=i.getRedrawFunc(f);return a.call("plot",f,c.data,c.layout,c.config).then(d).then(p).catch((function(e){n.emit("error",e)})),n}t.exports=c},{"../lib":750,"../registry":882,"./cloneplot":883,"./helpers":886,"./svgtoimg":888,"./tosvg":890,events:110}],890:[function(e,t,n){"use strict";var r=e("d3"),a=e("../lib"),o=e("../components/drawing"),i=e("../components/color"),l=e("../constants/xmlns_namespaces"),s=/"/g,u="TOBESTRIPPED",c=new RegExp('("'+u+")|("+u+'")',"g");function f(e){var t=r.select("body").append("div").style({display:"none"}).html(""),n=e.replace(/(&[^;]*;)/gi,(function(e){return"&lt;"===e?"&#60;":"&rt;"===e?"&#62;":-1!==e.indexOf("<")||-1!==e.indexOf(">")?"":t.html(e).text()}));return t.remove(),n}function p(e){return e.replace(/&(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,"&amp;")}t.exports=function(e,t,n){var d,h=e._fullLayout,v=h._paper,m=h._toppaper,y=h.width,g=h.height;v.insert("rect",":first-child").call(o.setRect,0,0,y,g).call(i.fill,h.paper_bgcolor);var b=h._basePlotModules||[];for(d=0;d<b.length;d++){var x=b[d];x.toSVG&&x.toSVG(e)}if(m){var _=m.node().childNodes,w=Array.prototype.slice.call(_);for(d=0;d<w.length;d++){var k=w[d];k.childNodes.length&&v.node().appendChild(k)}}if(h._draggers&&h._draggers.remove(),v.node().style.background="",v.selectAll("text").attr({"data-unformatted":null,"data-math":null}).each((function(){var e=r.select(this);if("hidden"!==this.style.visibility&&"none"!==this.style.display){e.style({visibility:null,display:null});var t=this.style.fontFamily;t&&-1!==t.indexOf('"')&&e.style("font-family",t.replace(s,u))}else e.remove()})),h._gradientUrlQueryParts){var T=[];for(var E in h._gradientUrlQueryParts)T.push(E);T.length&&v.selectAll(T.join(",")).each((function(){var e=r.select(this),t=this.style.fill;t&&-1!==t.indexOf("url(")&&e.style("fill",t.replace(s,u));var n=this.style.stroke;n&&-1!==n.indexOf("url(")&&e.style("stroke",n.replace(s,u))}))}"pdf"!==t&&"eps"!==t||v.selectAll("#MathJax_SVG_glyphs path").attr("stroke-width",0),v.node().setAttributeNS(l.xmlns,"xmlns",l.svg),v.node().setAttributeNS(l.xmlns,"xmlns:xlink",l.xlink),"svg"===t&&n&&(v.attr("width",n*y),v.attr("height",n*g),v.attr("viewBox","0 0 "+y+" "+g));var O=(new window.XMLSerializer).serializeToString(v.node());return O=f(O),O=p(O),O=O.replace(c,"'"),a.isIE()&&(O=O.replace(/"/gi,"'"),O=O.replace(/(\('#)([^']*)('\))/gi,'("#$2")'),O=O.replace(/(\\')/gi,'"')),O}},{"../components/color":615,"../components/drawing":637,"../constants/xmlns_namespaces":726,"../lib":750,d3:169}],891:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){for(var n=0;n<e.length;n++)e[n].i=n;r.mergeArray(t.text,e,"tx"),r.mergeArray(t.hovertext,e,"htx");var a=t.marker;if(a){r.mergeArray(a.opacity,e,"mo",!0),r.mergeArray(a.color,e,"mc");var o=a.line;o&&(r.mergeArray(o.color,e,"mlc"),r.mergeArrayCastPositive(o.width,e,"mlw"))}}},{"../../lib":750}],892:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),a=e("../../plots/template_attributes").hovertemplateAttrs,o=e("../../plots/template_attributes").texttemplateAttrs,i=e("../../components/colorscale/attributes"),l=e("../../plots/font_attributes"),s=e("./constants"),u=e("../../lib/extend").extendFlat,c=l({editType:"calc",arrayOk:!0,colorEditType:"style"}),f=r.marker,p=f.line,d=u({},p.width,{dflt:0}),h=u({width:d,editType:"calc"},i("marker.line")),v=u({line:h,editType:"calc"},i("marker"),{opacity:{valType:"number",arrayOk:!0,dflt:1,min:0,max:1,editType:"style"}});t.exports={x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,xperiod:r.xperiod,yperiod:r.yperiod,xperiod0:r.xperiod0,yperiod0:r.yperiod0,xperiodalignment:r.xperiodalignment,yperiodalignment:r.yperiodalignment,text:r.text,texttemplate:o({editType:"plot"},{keys:s.eventDataKeys}),hovertext:r.hovertext,hovertemplate:a({},{keys:s.eventDataKeys}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"none",arrayOk:!0,editType:"calc"},insidetextanchor:{valType:"enumerated",values:["end","middle","start"],dflt:"end",editType:"plot"},textangle:{valType:"angle",dflt:"auto",editType:"plot"},textfont:u({},c,{}),insidetextfont:u({},c,{}),outsidetextfont:u({},c,{}),constraintext:{valType:"enumerated",values:["inside","outside","both","none"],dflt:"both",editType:"calc"},cliponaxis:u({},r.cliponaxis,{}),orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},base:{valType:"any",dflt:null,arrayOk:!0,editType:"calc"},offset:{valType:"number",dflt:null,arrayOk:!0,editType:"calc"},width:{valType:"number",dflt:null,min:0,arrayOk:!0,editType:"calc"},marker:v,offsetgroup:{valType:"string",dflt:"",editType:"calc"},alignmentgroup:{valType:"string",dflt:"",editType:"calc"},selected:{marker:{opacity:r.selected.marker.opacity,color:r.selected.marker.color,editType:"style"},textfont:r.selected.textfont,editType:"style"},unselected:{marker:{opacity:r.unselected.marker.opacity,color:r.unselected.marker.color,editType:"style"},textfont:r.unselected.textfont,editType:"style"},r:r.r,t:r.t,_deprecated:{bardir:{valType:"enumerated",editType:"calc",values:["v","h"]}}}},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plots/font_attributes":827,"../../plots/template_attributes":877,"../scatter/attributes":1158,"./constants":894}],893:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../plots/cartesian/align_period"),o=e("../../components/colorscale/helpers").hasColorscale,i=e("../../components/colorscale/calc"),l=e("./arrays_to_calcdata"),s=e("../scatter/calc_selection");t.exports=function(e,t){var n,u,c,f,p=r.getFromId(e,t.xaxis||"x"),d=r.getFromId(e,t.yaxis||"y"),h={msUTC:!(!t.base&&0!==t.base)};"h"===t.orientation?(n=p.makeCalcdata(t,"x",h),c=d.makeCalcdata(t,"y"),u=a(t,d,"y",c),f=!!t.yperiodalignment):(n=d.makeCalcdata(t,"y",h),c=p.makeCalcdata(t,"x"),u=a(t,p,"x",c),f=!!t.xperiodalignment);for(var v=Math.min(u.length,n.length),m=new Array(v),y=0;y<v;y++)m[y]={p:u[y],s:n[y]},f&&(m[y].orig_p=c[y]),t.ids&&(m[y].id=String(t.ids[y]));return o(t,"marker")&&i(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),o(t,"marker.line")&&i(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),l(m,t),s(m,t),m}},{"../../components/colorscale/calc":623,"../../components/colorscale/helpers":626,"../../plots/cartesian/align_period":796,"../../plots/cartesian/axes":799,"../scatter/calc_selection":1160,"./arrays_to_calcdata":891}],894:[function(e,t,n){"use strict";t.exports={TEXTPAD:3,eventDataKeys:["value","label"]}},{}],895:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib").isArrayOrTypedArray,o=e("../../constants/numerical").BADNUM,i=e("../../registry"),l=e("../../plots/cartesian/axes"),s=e("../../plots/cartesian/axis_ids").getAxisGroup,u=e("./sieve.js");function c(e,t){for(var n=t.xaxis,r=t.yaxis,a=e._fullLayout,o=e._fullData,l=e.calcdata,s=[],u=[],c=0;c<o.length;c++){var p=o[c];if(!0===p.visible&&i.traceIs(p,"bar")&&p.xaxis===n._id&&p.yaxis===r._id&&("h"===p.orientation?s.push(l[c]):u.push(l[c]),p._computePh))for(var d=e.calcdata[c],h=0;h<d.length;h++)"function"===typeof d[h].ph0&&(d[h].ph0=d[h].ph0()),"function"===typeof d[h].ph1&&(d[h].ph1=d[h].ph1())}var v={xCat:"category"===n.type||"multicategory"===n.type,yCat:"category"===r.type||"multicategory"===r.type,mode:a.barmode,norm:a.barnorm,gap:a.bargap,groupgap:a.bargroupgap};f(e,n,r,u,v),f(e,r,n,s,v)}function f(e,t,n,r,a){if(r.length){var o,i,l,s,u;switch(p(n,r),a.mode){case"overlay":d(t,n,r,a);break;case"group":for(o=[],i=[],l=0;l<r.length;l++)s=r[l],u=s[0].trace,void 0===u.offset?i.push(s):o.push(s);i.length&&h(e,t,n,i,a),o.length&&d(t,n,o,a);break;case"stack":case"relative":for(o=[],i=[],l=0;l<r.length;l++)s=r[l],u=s[0].trace,void 0===u.base?i.push(s):o.push(s);i.length&&v(e,t,n,i,a),o.length&&d(t,n,o,a);break}O(r,t)}}function p(e,t){var n,o;for(n=0;n<t.length;n++){var i,l=t[n],s=l[0].trace,u="funnel"===s.type?s._base:s.base,c="h"===s.orientation?s.xcalendar:s.ycalendar,f="category"===e.type||"multicategory"===e.type?function(){return null}:e.d2c;if(a(u)){for(o=0;o<Math.min(u.length,l.length);o++)i=f(u[o],0,c),r(i)?(l[o].b=+i,l[o].hasB=1):l[o].b=0;for(;o<l.length;o++)l[o].b=0}else{i=f(u,0,c);var p=r(i);for(i=p?i:0,o=0;o<l.length;o++)l[o].b=i,p&&(l[o].hasB=1)}}}function d(e,t,n,r){for(var a=0;a<n.length;a++){var o=n[a],i=new u([o],{unitMinDiff:r.xCat||r.yCat,sepNegVal:!1,overlapNoMerge:!r.norm});m(e,i,r),r.norm?(k(i),E(t,i,r)):_(t,i)}}function h(e,t,n,r,a){var o=new u(r,{sepNegVal:!1,overlapNoMerge:!a.norm});y(e,t,o,a),T(o),a.norm?(k(o),E(n,o,a)):_(n,o)}function v(e,t,n,r,a){var i=new u(r,{sepNegVal:"relative"===a.mode,overlapNoMerge:!(a.norm||"stack"===a.mode||"relative"===a.mode)});m(t,i,a),w(n,i,a);for(var l=0;l<r.length;l++)for(var s=r[l],c=0;c<s.length;c++){var f=s[c];if(f.s!==o){var p=f.b+f.s===i.get(f.p,f.s);p&&(f._outmost=!0)}}a.norm&&E(n,i,a)}function m(e,t,n){for(var r=t.minDiff,a=t.traces,o=r*(1-n.gap),i=o,l=i*(1-(n.groupgap||0)),s=-l/2,u=0;u<a.length;u++){var c=a[u],f=c[0].t;f.barwidth=l,f.poffset=s,f.bargroupwidth=o,f.bardelta=r}t.binWidth=a[0][0].t.barwidth/100,g(t),b(e,t),x(e,t)}function y(e,t,n,r){for(var a=e._fullLayout,o=n.positions,i=n.distinctPositions,l=n.minDiff,u=n.traces,c=u.length,f=o.length!==i.length,p=l*(1-r.gap),d=s(a,t._id)+u[0][0].trace.orientation,h=a._alignmentOpts[d]||{},v=0;v<c;v++){var m,y=u[v],_=y[0].trace,w=h[_.alignmentgroup]||{},k=Object.keys(w.offsetGroups||{}).length;m=k?p/k:f?p/c:p;var T,E=m*(1-(r.groupgap||0));T=k?((2*_._offsetIndex+1-k)*m-E)/2:f?((2*v+1-c)*m-E)/2:-E/2;var O=y[0].t;O.barwidth=E,O.poffset=T,O.bargroupwidth=p,O.bardelta=l}n.binWidth=u[0][0].t.barwidth/100,g(n),b(t,n),x(t,n,f)}function g(e){var t,n,o=e.traces;for(t=0;t<o.length;t++){var i,l=o[t],s=l[0],u=s.trace,c=s.t,f=u._offset||u.offset,p=c.poffset;if(a(f)){for(i=Array.prototype.slice.call(f,0,l.length),n=0;n<i.length;n++)r(i[n])||(i[n]=p);for(n=i.length;n<l.length;n++)i.push(p);c.poffset=i}else void 0!==f&&(c.poffset=f);var d=u._width||u.width,h=c.barwidth;if(a(d)){var v=Array.prototype.slice.call(d,0,l.length);for(n=0;n<v.length;n++)r(v[n])||(v[n]=h);for(n=v.length;n<l.length;n++)v.push(h);if(c.barwidth=v,void 0===f){for(i=[],n=0;n<l.length;n++)i.push(p+(h-v[n])/2);c.poffset=i}}else void 0!==d&&(c.barwidth=d,void 0===f&&(c.poffset=p+(h-d)/2))}}function b(e,t){for(var n=t.traces,r=M(e),a=0;a<n.length;a++)for(var o=n[a],i=o[0].t,l=i.poffset,s=Array.isArray(l),u=i.barwidth,c=Array.isArray(u),f=0;f<o.length;f++){var p=o[f],d=p.w=c?u[f]:u;p[r]=p.p+(s?l[f]:l)+d/2}}function x(e,t,n){var r=t.traces,a=t.minDiff,o=a/2;l.minDtick(e,t.minDiff,t.distinctPositions[0],n);for(var i=0;i<r.length;i++){var s,u,c,f,p=r[i],d=p[0],h=d.trace,v=[];for(f=0;f<p.length;f++)s=p[f],u=s.p-o,c=s.p+o,v.push(u,c);if(h.width||h.offset){var m=d.t,y=m.poffset,g=m.barwidth,b=Array.isArray(y),x=Array.isArray(g);for(f=0;f<p.length;f++){s=p[f];var _=b?y[f]:y,w=x?g[f]:g;u=s.p+_,c=u+w,v.push(u,c)}}h._extremes[e._id]=l.findExtremes(e,v,{padded:!1})}}function _(e,t){for(var n=t.traces,r=M(e),a=0;a<n.length;a++){for(var o=n[a],i=o[0].trace,s=[],u=!1,c=0;c<o.length;c++){var f=o[c],p=f.b,d=p+f.s;f[r]=d,s.push(d),f.hasB&&s.push(p),f.hasB&&f.b||(u=!0)}i._extremes[e._id]=l.findExtremes(e,s,{tozero:u,padded:!0})}}function w(e,t,n){var r,a,i,s,u,c,f=M(e),p=t.traces;for(s=0;s<p.length;s++)if(r=p[s],a=r[0].trace,"funnel"===a.type)for(u=0;u<r.length;u++)c=r[u],c.s!==o&&t.put(c.p,-.5*c.s);for(s=0;s<p.length;s++){r=p[s],a=r[0].trace,i="funnel"===a.type;var d=[];for(u=0;u<r.length;u++)if(c=r[u],c.s!==o){var h;h=i?c.s:c.s+c.b;var v=t.put(c.p,h),m=v+h;c.b=v,c[f]=m,n.norm||(d.push(m),c.hasB&&d.push(v))}n.norm||(a._extremes[e._id]=l.findExtremes(e,d,{tozero:!0,padded:!0}))}}function k(e){for(var t=e.traces,n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;a++){var i=r[a];i.s!==o&&e.put(i.p,i.b+i.s)}}function T(e){for(var t=e.traces,n=0;n<t.length;n++){var r=t[n],a=r[0].trace;if(void 0===a.base)for(var i=new u([r],{sepNegVal:!0,overlapNoMerge:!0}),l=0;l<r.length;l++){var s=r[l];if(s.p!==o){var c=i.put(s.p,s.b+s.s);c&&(s.b=c)}}}}function E(e,t,n){var a=t.traces,i=M(e),s="fraction"===n.norm?1:100,u=s/1e9,c=e.l2c(e.c2l(0)),f="stack"===n.mode?s:c;function p(t){return r(e.c2l(t))&&(t<c-u||t>f+u||!r(c))}for(var d=0;d<a.length;d++){for(var h=a[d],v=h[0].trace,m=[],y=!1,g=!1,b=0;b<h.length;b++){var x=h[b];if(x.s!==o){var _=Math.abs(s/t.get(x.p,x.s));x.b*=_,x.s*=_;var w=x.b,k=w+x.s;x[i]=k,m.push(k),g=g||p(k),x.hasB&&(m.push(w),g=g||p(w)),x.hasB&&x.b||(y=!0)}}v._extremes[e._id]=l.findExtremes(e,m,{tozero:y,padded:g})}}function O(e,t){var n,a,o,i=M(t),l={},s=1/0,u=-1/0;for(n=0;n<e.length;n++)for(o=e[n],a=0;a<o.length;a++){var c=o[a].p;r(c)&&(s=Math.min(s,c),u=Math.max(u,c))}var f=1e4/(u-s),p=l.round=function(e){return String(Math.round(f*(e-s)))};for(n=0;n<e.length;n++){o=e[n],o[0].t.extents=l;var d=o[0].t.poffset,h=Array.isArray(d);for(a=0;a<o.length;a++){var v=o[a],m=v[i]-v.w/2;if(r(m)){var y=v[i]+v.w/2,g=p(v.p);l[g]?l[g]=[Math.min(m,l[g][0]),Math.max(y,l[g][1])]:l[g]=[m,y]}v.p0=v.p+(h?d[a]:d),v.p1=v.p0+v.w,v.s0=v.b,v.s1=v.s0+v.s}}}function M(e){return e._id.charAt(0)}t.exports={crossTraceCalc:c,setGroupPositions:f}},{"../../constants/numerical":725,"../../lib":750,"../../plots/cartesian/axes":799,"../../plots/cartesian/axis_ids":802,"../../registry":882,"./sieve.js":905,"fast-isnumeric":241}],896:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/color"),o=e("../../registry"),i=e("../scatter/xy_defaults"),l=e("../scatter/period_defaults"),s=e("./style_defaults"),u=e("../../plots/cartesian/axis_ids").getAxisGroup,c=e("./attributes"),f=r.coerceFont;function p(e,t,n,u){function f(n,a){return r.coerce(e,t,c,n,a)}var p=i(e,t,u,f);if(p){l(e,t,u,f),f("orientation",t.x&&!t.y?"h":"v"),f("base"),f("offset"),f("width"),f("text"),f("hovertext"),f("hovertemplate");var d=f("textposition");v(e,t,u,f,d,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),s(e,t,f,n,u);var h=(t.marker.line||{}).color,m=o.getComponentMethod("errorbars","supplyDefaults");m(e,t,h||a.defaultLine,{axis:"y"}),m(e,t,h||a.defaultLine,{axis:"x",inherit:"y"}),r.coerceSelectionMarkerOpacity(t,f)}else t.visible=!1}function d(e,t,n,r){var a=t.orientation,o=t[{v:"x",h:"y"}[a]+"axis"],i=u(n,o)+a,l=n._alignmentOpts||{},s=r("alignmentgroup"),c=l[i];c||(c=l[i]={});var f=c[s];f?f.traces.push(t):f=c[s]={traces:[t],alignmentIndex:Object.keys(c).length,offsetGroups:{}};var p=r("offsetgroup"),d=f.offsetGroups,h=d[p];p&&(h||(h=d[p]={offsetIndex:Object.keys(d).length}),t._offsetIndex=h.offsetIndex)}function h(e,t){var n,a;function o(e){return r.coerce(a._input,a,c,e)}if("group"===t.barmode)for(var i=0;i<e.length;i++)a=e[i],"bar"===a.type&&(n=a._input,d(n,a,t,o))}function v(e,t,n,a,o,i){i=i||{};var l=!(!1===i.moduleHasSelected),s=!(!1===i.moduleHasUnselected),u=!(!1===i.moduleHasConstrain),c=!(!1===i.moduleHasCliponaxis),p=!(!1===i.moduleHasTextangle),d=!(!1===i.moduleHasInsideanchor),h=!!i.hasPathbar,v=Array.isArray(o)||"auto"===o,m=v||"inside"===o,y=v||"outside"===o;if(m||y){var g=f(a,"textfont",n.font),b=r.extendFlat({},g),x=e.textfont&&e.textfont.color,_=!x;if(_&&delete b.color,f(a,"insidetextfont",b),h){var w=r.extendFlat({},g);_&&delete w.color,f(a,"pathbar.textfont",w)}y&&f(a,"outsidetextfont",g),l&&a("selected.textfont.color"),s&&a("unselected.textfont.color"),u&&a("constraintext"),c&&a("cliponaxis"),p&&a("textangle"),a("texttemplate")}m&&d&&a("insidetextanchor")}t.exports={supplyDefaults:p,crossTraceDefaults:h,handleGroupingDefaults:d,handleText:v}},{"../../components/color":615,"../../lib":750,"../../plots/cartesian/axis_ids":802,"../../registry":882,"../scatter/period_defaults":1178,"../scatter/xy_defaults":1185,"./attributes":892,"./style_defaults":907}],897:[function(e,t,n){"use strict";t.exports=function(e,t,n){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),"h"===n.orientation?(e.label=e.y,e.value=e.x):(e.label=e.x,e.value=e.y),e}},{}],898:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("tinycolor2"),o=e("../../lib").isArrayOrTypedArray;n.coerceString=function(e,t,n){if("string"===typeof t){if(t||!e.noBlank)return t}else if(("number"===typeof t||!0===t)&&!e.strict)return String(t);return void 0!==n?n:e.dflt},n.coerceNumber=function(e,t,n){if(r(t)){t=+t;var a=e.min,o=e.max,i=void 0!==a&&t<a||void 0!==o&&t>o;if(!i)return t}return void 0!==n?n:e.dflt},n.coerceColor=function(e,t,n){return a(t).isValid()?t:void 0!==n?n:e.dflt},n.coerceEnumerated=function(e,t,n){return e.coerceNumber&&(t=+t),-1!==e.values.indexOf(t)?t:void 0!==n?n:e.dflt},n.getValue=function(e,t){var n;return Array.isArray(e)?t<e.length&&(n=e[t]):n=e,n},n.getLineWidth=function(e,t){var n=0<t.mlw?t.mlw:o(e.marker.line.width)?0:e.marker.line.width;return n}},{"../../lib":750,"fast-isnumeric":241,tinycolor2:548}],899:[function(e,t,n){"use strict";var r=e("../../components/fx"),a=e("../../registry"),o=e("../../components/color"),i=e("../../lib").fillText,l=e("./helpers").getLineWidth,s=e("../../plots/cartesian/axes").hoverLabelText,u=e("../../constants/numerical").BADNUM;function c(e,t,n,r){var o=f(e,t,n,r);if(o){var i=o.cd,l=i[0].trace,s=i[o.index];return o.color=p(l,s),a.getComponentMethod("errorbars","hoverInfo")(s,l,o),[o]}}function f(e,t,n,a){var o,l,c,f,p,d,h,v=e.cd,m=v[0].trace,y=v[0].t,g="closest"===a,b="waterfall"===m.type,x=e.maxHoverDistance;function _(e){return e[c]-e.w/2}function w(e){return e[c]+e.w/2}var k=g?_:function(e){return Math.min(_(e),e.p-y.bardelta/2)},T=g?w:function(e){return Math.max(w(e),e.p+y.bardelta/2)};function E(e,t){return r.inbox(e-o,t-o,x+Math.min(1,Math.abs(t-e)/h)-1)}function O(e){return E(k(e),T(e))}function M(e){return E(_(e),w(e))}function S(e){var t=l,n=e.b,a=e[f];if(b){var o=Math.abs(e.rawS)||0;t>0?a+=o:t<0&&(a-=o)}return r.inbox(n-t,a-t,x+(a-t)/(a-n)-1)}"h"===m.orientation?(o=n,l=t,c="y",f="x",p=S,d=O):(o=t,l=n,c="x",f="y",d=S,p=O);var C=e[c+"a"],A=e[f+"a"];function P(e){return(p(e)+d(e))/2}h=Math.abs(C.r2c(C.range[1])-C.r2c(C.range[0]));var L=r.getDistanceFunction(a,p,d,P);if(r.getClosest(v,L,e),!1!==e.index&&v[e.index].p!==u){g||(k=function(e){return Math.min(_(e),e.p-y.bargroupwidth/2)},T=function(e){return Math.max(w(e),e.p+y.bargroupwidth/2)});var D=e.index,j=v[D],I=m.base?j.b+j.s:j.s;e[f+"0"]=e[f+"1"]=A.c2p(j[f],!0),e[f+"LabelVal"]=I;var R=y.extents[y.extents.round(j.p)];e[c+"0"]=C.c2p(g?k(j):R[0],!0),e[c+"1"]=C.c2p(g?T(j):R[1],!0);var z=void 0!==j.orig_p;return e[c+"LabelVal"]=z?j.orig_p:j.p,e.labelLabel=s(C,e[c+"LabelVal"]),e.valueLabel=s(A,e[f+"LabelVal"]),e.baseLabel=s(A,j.b),e.spikeDistance=(S(j)+M(j))/2-x,e[c+"Spike"]=C.c2p(j.p,!0),i(j,m,e),e.hovertemplate=m.hovertemplate,e}}function p(e,t){var n=t.mcc||e.marker.color,r=t.mlcc||e.marker.line.color,a=l(e,t);return o.opacity(n)?n:o.opacity(r)&&a?r:void 0}t.exports={hoverPoints:c,hoverOnBars:f,getTraceColor:p}},{"../../components/color":615,"../../components/fx":655,"../../constants/numerical":725,"../../lib":750,"../../plots/cartesian/axes":799,"../../registry":882,"./helpers":898}],900:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults").supplyDefaults,crossTraceDefaults:e("./defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc").crossTraceCalc,colorbar:e("../scatter/marker_colorbar"),arraysToCalcdata:e("./arrays_to_calcdata"),plot:e("./plot").plot,style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover").hoverPoints,eventData:e("./event_data"),selectPoints:e("./select"),moduleType:"trace",name:"bar",basePlotModule:e("../../plots/cartesian"),categories:["bar-like","cartesian","svg","bar","oriented","errorBarsOK","showLegend","zoomScale"],animatable:!0,meta:{}}},{"../../plots/cartesian":812,"../scatter/marker_colorbar":1176,"./arrays_to_calcdata":891,"./attributes":892,"./calc":893,"./cross_trace_calc":895,"./defaults":896,"./event_data":897,"./hover":899,"./layout_attributes":901,"./layout_defaults":902,"./plot":903,"./select":904,"./style":906}],901:[function(e,t,n){"use strict";t.exports={barmode:{valType:"enumerated",values:["stack","group","overlay","relative"],dflt:"group",editType:"calc"},barnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},bargap:{valType:"number",min:0,max:1,editType:"calc"},bargroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],902:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../plots/cartesian/axes"),o=e("../../lib"),i=e("./layout_attributes");t.exports=function(e,t,n){function l(n,r){return o.coerce(e,t,i,n,r)}for(var s=!1,u=!1,c=!1,f={},p=l("barmode"),d=0;d<n.length;d++){var h=n[d];if(r.traceIs(h,"bar")&&h.visible){if(s=!0,"group"===p){var v=h.xaxis+h.yaxis;f[v]&&(c=!0),f[v]=!0}if(h.visible&&"histogram"===h.type){var m=a.getFromId({_fullLayout:t},h["v"===h.orientation?"xaxis":"yaxis"]);"category"!==m.type&&(u=!0)}}}s?("overlay"!==p&&l("barnorm"),l("bargap",u&&!c?0:.2),l("bargroupgap")):delete t.barmode}},{"../../lib":750,"../../plots/cartesian/axes":799,"../../registry":882,"./layout_attributes":901}],903:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),o=e("../../lib"),i=e("../../lib/svg_text_utils"),l=e("../../components/color"),s=e("../../components/drawing"),u=e("../../registry"),c=e("../../plots/cartesian/axes").tickText,f=e("./uniform_text"),p=f.recordMinTextSize,d=f.clearMinTextSize,h=e("./style"),v=e("./helpers"),m=e("./constants"),y=e("./attributes"),g=y.text,b=y.textposition,x=e("../../components/fx/helpers").appendArrayPointValue,_=m.TEXTPAD;function w(e){return e.id}function k(e){if(e.ids)return w}function T(e,t){return e<t?1:-1}function E(e,t,n,r){var a=[],o=[],i=r?t:n,l=r?n:t;return a[0]=i.c2p(e.s0,!0),o[0]=l.c2p(e.p0,!0),a[1]=i.c2p(e.s1,!0),o[1]=l.c2p(e.p1,!0),r?[a,o]:[o,a]}function O(e,t,n,r){var a;return!t.uniformtext.mode&&M(n)?(r&&(a=r()),e.transition().duration(n.duration).ease(n.easing).each("end",(function(){a&&a()})).each("interrupt",(function(){a&&a()}))):e}function M(e){return e&&e.duration>0}function S(e,t,n,i,c,f){var p=t.xaxis,h=t.yaxis,m=e._fullLayout;c||(c={mode:m.barmode,norm:m.barmode,gap:m.bargap,groupgap:m.bargroupgap},d("bar",m));var y=o.makeTraceGroups(i,n,"trace bars").each((function(n){var i=r.select(this),u=n[0].trace,d="waterfall"===u.type,y="funnel"===u.type,g="bar"===u.type,b=g||y,x=0;d&&u.connector.visible&&"between"===u.connector.mode&&(x=u.connector.line.width/2);var _="h"===u.orientation,w=M(c),S=o.ensureSingle(i,"g","points"),A=k(u),P=S.selectAll("g.point").data(o.identity,A);P.enter().append("g").classed("point",!0),P.exit().remove(),P.each((function(i,d){var y,g,k=r.select(this),M=E(i,p,h,_),S=M[0][0],A=M[0][1],P=M[1][0],L=M[1][1],D=0===(_?A-S:L-P);if(D&&b&&v.getLineWidth(u,i)&&(D=!1),D||(D=!a(S)||!a(A)||!a(P)||!a(L)),i.isBlank=D,D&&(_?A=S:L=P),x&&!D&&(_?(S-=T(S,A)*x,A+=T(S,A)*x):(P-=T(P,L)*x,L+=T(P,L)*x)),"waterfall"===u.type){if(!D){var j=u[i.dir].marker;y=j.line.width,g=j.color}}else y=v.getLineWidth(u,i),g=i.mc||u.marker.color;function I(e){var t=r.round(y/2%1,2);return 0===c.gap&&0===c.groupgap?r.round(Math.round(e)-t,2):e}function R(e,t,n){return n&&e===t?e:Math.abs(e-t)>=2?I(e):e>t?Math.ceil(e):Math.floor(e)}if(!e._context.staticPlot){var z=l.opacity(g),N=z<1||y>.01?I:R;S=N(S,A,_),A=N(A,S,_),P=N(P,L,!_),L=N(L,P,!_)}var F=O(o.ensureSingle(k,"path"),m,c,f);if(F.style("vector-effect","non-scaling-stroke").attr("d",isNaN((A-S)*(L-P))?"M0,0Z":"M"+S+","+P+"V"+L+"H"+A+"V"+P+"Z").call(s.setClipUrl,t.layerClipId,e),!m.uniformtext.mode&&w){var B=s.makePointStyleFns(u);s.singlePointStyle(i,F,u,B,e)}C(e,t,k,n,d,S,A,P,L,c,f),t.layerClipId&&s.hideOutsideRangePoint(i,k.select("text"),p,h,u.xcalendar,u.ycalendar)}));var L=!1===u.cliponaxis;s.setClipUrl(i,L?null:t.layerClipId,e)}));u.getComponentMethod("errorbars","plot")(e,y,t,c)}function C(e,t,n,r,a,l,u,c,f,d,v){var m,y=t.xaxis,g=t.yaxis,b=e._fullLayout;function x(t,n,r){var a=o.ensureSingle(t,"text").text(n).attr({class:"bartext bartext-"+m,"text-anchor":"middle","data-notex":1}).call(s.font,r).call(i.convertToTspans,e);return a}var w=r[0].trace,k="h"===w.orientation,T=j(b,r,a,y,g);m=I(w,a);var E="stack"===d.mode||"relative"===d.mode,M=r[a],S=!E||M._outmost;if(T&&"none"!==m&&(!M.isBlank&&l!==u&&c!==f||"auto"!==m&&"inside"!==m)){var C=b.font,A=h.getBarColor(r[a],w),P=h.getInsideTextFont(w,a,C,A),R=h.getOutsideTextFont(w,a,C),z=n.datum();k?"log"===y.type&&z.s0<=0&&(l=y.range[0]<y.range[1]?0:y._length):"log"===g.type&&z.s0<=0&&(c=g.range[0]<g.range[1]?g._length:0);var N,F,B,V,H,U=Math.abs(u-l)-2*_,W=Math.abs(f-c)-2*_;if("outside"===m&&(S||M.hasB||(m="inside")),"auto"===m)if(S){m="inside",H=o.ensureUniformFontSize(e,P),N=x(n,T,H),F=s.bBox(N.node()),B=F.width,V=F.height;var q=B>0&&V>0,$=B<=U&&V<=W,G=B<=W&&V<=U,Y=k?U>=B*(W/V):W>=V*(U/B);q&&($||G||Y)?m="inside":(m="outside",N.remove(),N=null)}else m="inside";if(!N){H=o.ensureUniformFontSize(e,"outside"===m?R:P),N=x(n,T,H);var K=N.attr("transform");if(N.attr("transform",""),F=s.bBox(N.node()),B=F.width,V=F.height,N.attr("transform",K),B<=0||V<=0)return void N.remove()}var X,Z,J=w.textangle;"outside"===m?(Z="both"===w.constraintext||"outside"===w.constraintext,X=D(l,u,c,f,F,{isHorizontal:k,constrained:Z,angle:J})):(Z="both"===w.constraintext||"inside"===w.constraintext,X=L(l,u,c,f,F,{isHorizontal:k,constrained:Z,angle:J,anchor:w.insidetextanchor})),X.fontSize=H.size,p(w.type,X,b),M.transform=X,O(N,b,d,v).attr("transform",o.getTextTransform(X))}else n.select("text").remove()}function A(e){return"auto"===e?0:e}function P(e,t){var n=Math.PI/180*t,r=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));return{x:e.width*a+e.height*r,y:e.width*r+e.height*a}}function L(e,t,n,r,a,o){var i=!!o.isHorizontal,l=!!o.constrained,s=o.angle||0,u=o.anchor||"end",c="end"===u,f="start"===u,p=o.leftToRight||0,d=(p+1)/2,h=1-d,v=a.width,m=a.height,y=Math.abs(t-e),g=Math.abs(r-n),b=y>2*_&&g>2*_?_:0;y-=2*b,g-=2*b;var x=A(s);"auto"!==s||v<=y&&m<=g||!(v>y||m>g)||(v>g||m>y)&&v<m===y<g||(x+=90);var w=P(a,x),k=1;l&&(k=Math.min(1,y/w.x,g/w.y));var E=a.left*h+a.right*d,O=(a.top+a.bottom)/2,M=(e+_)*h+(t-_)*d,S=(n+r)/2,C=0,L=0;if(f||c){var D=(i?w.x:w.y)/2,j=i?T(e,t):T(n,r);i?f?(M=e+j*b,C=-j*D):(M=t-j*b,C=j*D):f?(S=n+j*b,L=-j*D):(S=r-j*b,L=j*D)}return{textX:E,textY:O,targetX:M,targetY:S,anchorX:C,anchorY:L,scale:k,rotate:x}}function D(e,t,n,r,a,o){var i,l=!!o.isHorizontal,s=!!o.constrained,u=o.angle||0,c=a.width,f=a.height,p=Math.abs(t-e),d=Math.abs(r-n);i=l?d>2*_?_:0:p>2*_?_:0;var h=1;s&&(h=l?Math.min(1,d/f):Math.min(1,p/c));var v=A(u),m=P(a,v),y=(l?m.x:m.y)/2,g=(a.left+a.right)/2,b=(a.top+a.bottom)/2,x=(e+t)/2,w=(n+r)/2,k=0,E=0,O=l?T(t,e):T(n,r);return l?(x=t-O*i,k=O*y):(w=r+O*i,E=-O*y),{textX:g,textY:b,targetX:x,targetY:w,anchorX:k,anchorY:E,scale:h,rotate:v}}function j(e,t,n,r,a){var o,i=t[0].trace,l=i.texttemplate;return o=l?R(e,t,n,r,a):i.textinfo?z(t,n,r,a):v.getValue(i.text,n),v.coerceString(g,o)}function I(e,t){var n=v.getValue(e.textposition,t);return v.coerceEnumerated(b,n)}function R(e,t,n,r,a){var i=t[0].trace,l=o.castOption(i,n,"texttemplate");if(!l)return"";var s,u,f,p,d="waterfall"===i.type,h="funnel"===i.type;function v(e){return c(u,e,!0).text}function m(e){return c(p,+e,!0).text}"h"===i.orientation?(s="y",u=a,f="x",p=r):(s="x",u=r,f="y",p=a);var y=t[n],g={};g.label=y.p,g.labelLabel=g[s+"Label"]=v(y.p);var b=o.castOption(i,y.i,"text");(0===b||b)&&(g.text=b),g.value=y.s,g.valueLabel=g[f+"Label"]=m(y.s);var _={};x(_,i,y.i),d&&(g.delta=+y.rawS||y.s,g.deltaLabel=m(g.delta),g.final=y.v,g.finalLabel=m(g.final),g.initial=g.final-g.delta,g.initialLabel=m(g.initial)),h&&(g.value=y.s,g.valueLabel=m(g.value),g.percentInitial=y.begR,g.percentInitialLabel=o.formatPercent(y.begR),g.percentPrevious=y.difR,g.percentPreviousLabel=o.formatPercent(y.difR),g.percentTotal=y.sumR,g.percenTotalLabel=o.formatPercent(y.sumR));var w=o.castOption(i,y.i,"customdata");return w&&(g.customdata=w),o.texttemplateString(l,g,e._d3locale,_,g,i._meta||{})}function z(e,t,n,r){var a=e[0].trace,i="h"===a.orientation,l="waterfall"===a.type,s="funnel"===a.type;function u(e){var t=i?r:n;return c(t,e,!0).text}function f(e){var t=i?n:r;return c(t,+e,!0).text}var p,d=a.textinfo,h=e[t],v=d.split("+"),m=[],y=function(e){return-1!==v.indexOf(e)};if(y("label")&&m.push(u(e[t].p)),y("text")&&(p=o.castOption(a,h.i,"text"),(0===p||p)&&m.push(p)),l){var g=+h.rawS||h.s,b=h.v,x=b-g;y("initial")&&m.push(f(x)),y("delta")&&m.push(f(g)),y("final")&&m.push(f(b))}if(s){y("value")&&m.push(f(h.s));var _=0;y("percent initial")&&_++,y("percent previous")&&_++,y("percent total")&&_++;var w=_>1;y("percent initial")&&(p=o.formatPercent(h.begR),w&&(p+=" of initial"),m.push(p)),y("percent previous")&&(p=o.formatPercent(h.difR),w&&(p+=" of previous"),m.push(p)),y("percent total")&&(p=o.formatPercent(h.sumR),w&&(p+=" of total"),m.push(p))}return m.join("<br>")}t.exports={plot:S,toMoveInsideBar:L}},{"../../components/color":615,"../../components/drawing":637,"../../components/fx/helpers":651,"../../lib":750,"../../lib/svg_text_utils":774,"../../plots/cartesian/axes":799,"../../registry":882,"./attributes":892,"./constants":894,"./helpers":898,"./style":906,"./uniform_text":908,d3:169,"fast-isnumeric":241}],904:[function(e,t,n){"use strict";function r(e,t,n,r,a){var o=t.c2p(r?e.s0:e.p0,!0),i=t.c2p(r?e.s1:e.p1,!0),l=n.c2p(r?e.p0:e.s0,!0),s=n.c2p(r?e.p1:e.s1,!0);return a?[(o+i)/2,(l+s)/2]:r?[i,(l+s)/2]:[(o+i)/2,s]}t.exports=function(e,t){var n,a=e.cd,o=e.xaxis,i=e.yaxis,l=a[0].trace,s="funnel"===l.type,u="h"===l.orientation,c=[];if(!1===t)for(n=0;n<a.length;n++)a[n].selected=0;else for(n=0;n<a.length;n++){var f=a[n],p="ct"in f?f.ct:r(f,o,i,u,s);t.contains(p,!1,n,e)?(c.push({pointNumber:n,x:o.c2d(f.x),y:i.c2d(f.y)}),f.selected=1):f.selected=0}return c}},{}],905:[function(e,t,n){"use strict";t.exports=o;var r=e("../../lib").distinctVals,a=e("../../constants/numerical").BADNUM;function o(e,t){this.traces=e,this.sepNegVal=t.sepNegVal,this.overlapNoMerge=t.overlapNoMerge;for(var n=1/0,o=[],i=0;i<e.length;i++){for(var l=e[i],s=0;s<l.length;s++){var u=l[s];u.p!==a&&o.push(u.p)}l[0]&&l[0].width1&&(n=Math.min(l[0].width1,n))}this.positions=o;var c=r(o,{unitMinDiff:t.unitMinDiff});this.distinctPositions=c.vals,1===c.vals.length&&n!==1/0?this.minDiff=n:this.minDiff=Math.min(c.minDiff,n),this.binWidth=this.minDiff,this.bins={}}o.prototype.put=function(e,t){var n=this.getLabel(e,t),r=this.bins[n]||0;return this.bins[n]=r+t,r},o.prototype.get=function(e,t){var n=this.getLabel(e,t);return this.bins[n]||0},o.prototype.getLabel=function(e,t){var n=t<0&&this.sepNegVal?"v":"^",r=this.overlapNoMerge?e:Math.round(e/this.binWidth);return n+r}},{"../../constants/numerical":725,"../../lib":750}],906:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/color"),o=e("../../components/drawing"),i=e("../../lib"),l=e("../../registry"),s=e("./uniform_text").resizeText,u=e("./attributes"),c=u.textfont,f=u.insidetextfont,p=u.outsidetextfont,d=e("./helpers");function h(e){var t=r.select(e).selectAll("g.barlayer").selectAll("g.trace");s(e,t,"bar");var n=t.size(),a=e._fullLayout;t.style("opacity",(function(e){return e[0].trace.opacity})).each((function(e){("stack"===a.barmode&&n>1||0===a.bargap&&0===a.bargroupgap&&!e[0].trace.marker.line.width)&&r.select(this).attr("shape-rendering","crispEdges")})),t.selectAll("g.points").each((function(t){var n=r.select(this),a=t[0].trace;v(n,a,e)})),l.getComponentMethod("errorbars","style")(t)}function v(e,t,n){o.pointStyle(e.selectAll("path"),t,n),m(e,t,n)}function m(e,t,n){e.selectAll("text").each((function(e){var a=r.select(this),l=i.ensureUniformFontSize(n,x(a,e,t,n));o.font(a,l)}))}function y(e,t,n){var r=t[0].trace;r.selectedpoints?g(n,r,e):(v(n,r,e),l.getComponentMethod("errorbars","style")(n))}function g(e,t,n){o.selectedPointStyle(e.selectAll("path"),t),b(e.selectAll("text"),t,n)}function b(e,t,n){e.each((function(e){var a,l=r.select(this);if(e.selected){a=i.ensureUniformFontSize(n,x(l,e,t,n));var s=t.selected.textfont&&t.selected.textfont.color;s&&(a.color=s),o.font(l,a)}else o.selectedTextStyle(l,t)}))}function x(e,t,n,r){var a=r._fullLayout.font,o=n.textfont;if(e.classed("bartext-inside")){var i=E(t,n);o=w(n,t.i,a,i)}else e.classed("bartext-outside")&&(o=k(n,t.i,a));return o}function _(e,t,n){return T(c,e.textfont,t,n)}function w(e,t,n,r){var o=_(e,t,n),i=void 0===e._input.textfont||void 0===e._input.textfont.color||Array.isArray(e.textfont.color)&&void 0===e.textfont.color[t];return i&&(o={color:a.contrast(r),family:o.family,size:o.size}),T(f,e.insidetextfont,t,o)}function k(e,t,n){var r=_(e,t,n);return T(p,e.outsidetextfont,t,r)}function T(e,t,n,r){t=t||{};var a=d.getValue(t.family,n),o=d.getValue(t.size,n),i=d.getValue(t.color,n);return{family:d.coerceString(e.family,a,r.family),size:d.coerceNumber(e.size,o,r.size),color:d.coerceColor(e.color,i,r.color)}}function E(e,t){return"waterfall"===t.type?t[e.dir].marker.color:e.mc||t.marker.color}t.exports={style:h,styleTextPoints:m,styleOnSelect:y,getInsideTextFont:w,getOutsideTextFont:k,getBarColor:E,resizeText:s}},{"../../components/color":615,"../../components/drawing":637,"../../lib":750,"../../registry":882,"./attributes":892,"./helpers":898,"./uniform_text":908,d3:169}],907:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("../../components/colorscale/helpers").hasColorscale,o=e("../../components/colorscale/defaults");t.exports=function(e,t,n,i,l){n("marker.color",i),a(e,"marker")&&o(e,t,l,n,{prefix:"marker.",cLetter:"c"}),n("marker.line.color",r.defaultLine),a(e,"marker.line")&&o(e,t,l,n,{prefix:"marker.line.",cLetter:"c"}),n("marker.line.width"),n("marker.opacity"),n("selected.marker.color"),n("unselected.marker.color")}},{"../../components/color":615,"../../components/colorscale/defaults":625,"../../components/colorscale/helpers":626}],908:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib");function o(e,t,n){var o=e._fullLayout,i=o["_"+n+"Text_minsize"];if(i){var l,s="hide"===o.uniformtext.mode;switch(n){case"funnelarea":case"pie":case"sunburst":l="g.slice";break;case"treemap":l="g.slice, g.pathbar";break;default:l="g.points > g.point"}t.selectAll(l).each((function(e){var t=e.transform;if(t){t.scale=s&&t.hide?0:i/t.fontSize;var n=r.select(this).select("text");n.attr("transform",a.getTextTransform(t))}}))}}function i(e,t,n){if(n.uniformtext.mode){var r=s(e),a=n.uniformtext.minsize,o=t.scale*t.fontSize;t.hide=o<a,n[r]=n[r]||1/0,t.hide||(n[r]=Math.min(n[r],Math.max(o,a)))}}function l(e,t){var n=s(e);t[n]=void 0}function s(e){return"_"+e+"Text_minsize"}t.exports={recordMinTextSize:i,clearMinTextSize:l,resizeText:o}},{"../../lib":750,d3:169}],909:[function(e,t,n){"use strict";var r=e("../../plots/template_attributes").hovertemplateAttrs,a=e("../../lib/extend").extendFlat,o=e("../scatterpolar/attributes"),i=e("../bar/attributes");t.exports={r:o.r,theta:o.theta,r0:o.r0,dr:o.dr,theta0:o.theta0,dtheta:o.dtheta,thetaunit:o.thetaunit,base:a({},i.base,{}),offset:a({},i.offset,{}),width:a({},i.width,{}),text:a({},i.text,{}),hovertext:a({},i.hovertext,{}),marker:i.marker,hoverinfo:o.hoverinfo,hovertemplate:r(),selected:i.selected,unselected:i.unselected}},{"../../lib/extend":740,"../../plots/template_attributes":877,"../bar/attributes":892,"../scatterpolar/attributes":1232}],910:[function(e,t,n){"use strict";var r=e("../../components/colorscale/helpers").hasColorscale,a=e("../../components/colorscale/calc"),o=e("../bar/arrays_to_calcdata"),i=e("../bar/cross_trace_calc").setGroupPositions,l=e("../scatter/calc_selection"),s=e("../../registry").traceIs,u=e("../../lib").extendFlat;function c(e,t){for(var n=e._fullLayout,i=t.subplot,s=n[i].radialaxis,u=n[i].angularaxis,c=s.makeCalcdata(t,"r"),f=u.makeCalcdata(t,"theta"),p=t._length,d=new Array(p),h=c,v=f,m=0;m<p;m++)d[m]={p:v[m],s:h[m]};function y(e){var n=t[e];void 0!==n&&(t["_"+e]=Array.isArray(n)?u.makeCalcdata(t,e):u.d2c(n,t.thetaunit))}return"linear"===u.type&&(y("width"),y("offset")),r(t,"marker")&&a(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),r(t,"marker.line")&&a(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}),o(d,t),l(d,t),d}function f(e,t,n){for(var r=e.calcdata,a=[],o=0;o<r.length;o++){var l=r[o],c=l[0].trace;!0===c.visible&&s(c,"bar")&&c.subplot===n&&a.push(l)}var f=u({},t.radialaxis,{_id:"x"}),p=t.angularaxis;i(e,p,f,a,{mode:t.barmode,norm:t.barnorm,gap:t.bargap,groupgap:t.bargroupgap})}t.exports={calc:c,crossTraceCalc:f}},{"../../components/colorscale/calc":623,"../../components/colorscale/helpers":626,"../../lib":750,"../../registry":882,"../bar/arrays_to_calcdata":891,"../bar/cross_trace_calc":895,"../scatter/calc_selection":1160}],911:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../scatterpolar/defaults").handleRThetaDefaults,o=e("../bar/style_defaults"),i=e("./attributes");t.exports=function(e,t,n,l){function s(n,a){return r.coerce(e,t,i,n,a)}var u=a(e,t,l,s);u?(s("thetaunit"),s("base"),s("offset"),s("width"),s("text"),s("hovertext"),s("hovertemplate"),o(e,t,s,n,l),r.coerceSelectionMarkerOpacity(t,s)):t.visible=!1}},{"../../lib":750,"../bar/style_defaults":907,"../scatterpolar/defaults":1234,"./attributes":909}],912:[function(e,t,n){"use strict";var r=e("../../components/fx"),a=e("../../lib"),o=e("../bar/hover").getTraceColor,i=a.fillText,l=e("../scatterpolar/hover").makeHoverPointText,s=e("../../plots/polar/helpers").isPtInsidePolygon;t.exports=function(e,t,n){var u=e.cd,c=u[0].trace,f=e.subplot,p=f.radialAxis,d=f.angularAxis,h=f.vangles,v=h?s:a.isPtInsideSector,m=e.maxHoverDistance,y=d._period||2*Math.PI,g=Math.abs(p.g2p(Math.sqrt(t*t+n*n))),b=Math.atan2(n,t);p.range[0]>p.range[1]&&(b+=Math.PI);var x=function(e){return v(g,b,[e.rp0,e.rp1],[e.thetag0,e.thetag1],h)?m+Math.min(1,Math.abs(e.thetag1-e.thetag0)/y)-1+(e.rp1-g)/(e.rp1-e.rp0)-1:1/0};if(r.getClosest(u,x,e),!1!==e.index){var _=e.index,w=u[_];e.x0=e.x1=w.ct[0],e.y0=e.y1=w.ct[1];var k=a.extendFlat({},w,{r:w.s,theta:w.p});return i(w,c,e),l(k,c,f,e),e.hovertemplate=c.hovertemplate,e.color=o(c,w),e.xLabelVal=e.yLabelVal=void 0,w.s<0&&(e.idealAlign="left"),[e]}}},{"../../components/fx":655,"../../lib":750,"../../plots/polar/helpers":864,"../bar/hover":899,"../scatterpolar/hover":1236}],913:[function(e,t,n){"use strict";t.exports={moduleType:"trace",name:"barpolar",basePlotModule:e("../../plots/polar"),categories:["polar","bar","showLegend"],attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults"),supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc").calc,crossTraceCalc:e("./calc").crossTraceCalc,plot:e("./plot"),colorbar:e("../scatter/marker_colorbar"),formatLabels:e("../scatterpolar/format_labels"),style:e("../bar/style").style,styleOnSelect:e("../bar/style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("../bar/select"),meta:{}}},{"../../plots/polar":865,"../bar/select":904,"../bar/style":906,"../scatter/marker_colorbar":1176,"../scatterpolar/format_labels":1235,"./attributes":909,"./calc":910,"./defaults":911,"./hover":912,"./layout_attributes":914,"./layout_defaults":915,"./plot":916}],914:[function(e,t,n){"use strict";t.exports={barmode:{valType:"enumerated",values:["stack","overlay"],dflt:"stack",editType:"calc"},bargap:{valType:"number",dflt:.1,min:0,max:1,editType:"calc"}}},{}],915:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t,n){var o,i={};function l(n,i){return r.coerce(e[o]||{},t[o],a,n,i)}for(var s=0;s<n.length;s++){var u=n[s];"barpolar"===u.type&&!0===u.visible&&(o=u.subplot,i[o]||(l("barmode"),l("bargap"),i[o]=1))}}},{"../../lib":750,"./layout_attributes":914}],916:[function(e,t,n){"use strict";var r=e("d3"),a=e("fast-isnumeric"),o=e("../../lib"),i=e("../../components/drawing"),l=e("../../plots/polar/helpers");function s(e){var t=e.cxx,n=e.cyy;return e.vangles?function(r,a,i,s){var u,c;o.angleDelta(i,s)>0?(u=i,c=s):(u=s,c=i);var f=l.findEnclosingVertexAngles(u,e.vangles)[0],p=l.findEnclosingVertexAngles(c,e.vangles)[1],d=[f,(u+c)/2,p];return l.pathPolygonAnnulus(r,a,u,c,d,t,n)}:function(e,r,a,i){return o.pathAnnulus(e,r,a,i,t,n)}}t.exports=function(e,t,n){var l=t.xaxis,u=t.yaxis,c=t.radialAxis,f=t.angularAxis,p=s(t),d=t.layers.frontplot.select("g.barlayer");o.makeTraceGroups(d,n,"trace bars").each((function(){var n=r.select(this),s=o.ensureSingle(n,"g","points"),d=s.selectAll("g.point").data(o.identity);d.enter().append("g").style("vector-effect","non-scaling-stroke").style("stroke-miterlimit",2).classed("point",!0),d.exit().remove(),d.each((function(e){var t,n=r.select(this),i=e.rp0=c.c2p(e.s0),s=e.rp1=c.c2p(e.s1),d=e.thetag0=f.c2g(e.p0),h=e.thetag1=f.c2g(e.p1);if(a(i)&&a(s)&&a(d)&&a(h)&&i!==s&&d!==h){var v=c.c2g(e.s1),m=(d+h)/2;e.ct=[l.c2p(v*Math.cos(m)),u.c2p(v*Math.sin(m))],t=p(i,s,d,h)}else t="M0,0Z";o.ensureSingle(n,"path").attr("d",t)})),i.setClipUrl(n,t._hasClipOnAxisFalse?t.clipIds.forTraces:null,e)}))}},{"../../components/drawing":637,"../../lib":750,"../../plots/polar/helpers":864,d3:169,"fast-isnumeric":241}],917:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),a=e("../bar/attributes"),o=e("../../components/color/attributes"),i=e("../../plots/template_attributes").hovertemplateAttrs,l=e("../../lib/extend").extendFlat,s=r.marker,u=s.line;t.exports={y:{valType:"data_array",editType:"calc+clearAxisTypes"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},x0:{valType:"any",editType:"calc+clearAxisTypes"},y0:{valType:"any",editType:"calc+clearAxisTypes"},dx:{valType:"number",editType:"calc"},dy:{valType:"number",editType:"calc"},xperiod:r.xperiod,yperiod:r.yperiod,xperiod0:r.xperiod0,yperiod0:r.yperiod0,xperiodalignment:r.xperiodalignment,yperiodalignment:r.yperiodalignment,name:{valType:"string",editType:"calc+clearAxisTypes"},q1:{valType:"data_array",editType:"calc+clearAxisTypes"},median:{valType:"data_array",editType:"calc+clearAxisTypes"},q3:{valType:"data_array",editType:"calc+clearAxisTypes"},lowerfence:{valType:"data_array",editType:"calc"},upperfence:{valType:"data_array",editType:"calc"},notched:{valType:"boolean",editType:"calc"},notchwidth:{valType:"number",min:0,max:.5,dflt:.25,editType:"calc"},notchspan:{valType:"data_array",editType:"calc"},boxpoints:{valType:"enumerated",values:["all","outliers","suspectedoutliers",!1],editType:"calc"},jitter:{valType:"number",min:0,max:1,editType:"calc"},pointpos:{valType:"number",min:-2,max:2,editType:"calc"},boxmean:{valType:"enumerated",values:[!0,"sd",!1],editType:"calc"},mean:{valType:"data_array",editType:"calc"},sd:{valType:"data_array",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc+clearAxisTypes"},quartilemethod:{valType:"enumerated",values:["linear","exclusive","inclusive"],dflt:"linear",editType:"calc"},width:{valType:"number",min:0,dflt:0,editType:"calc"},marker:{outliercolor:{valType:"color",dflt:"rgba(0, 0, 0, 0)",editType:"style"},symbol:l({},s.symbol,{arrayOk:!1,editType:"plot"}),opacity:l({},s.opacity,{arrayOk:!1,dflt:1,editType:"style"}),size:l({},s.size,{arrayOk:!1,editType:"calc"}),color:l({},s.color,{arrayOk:!1,editType:"style"}),line:{color:l({},u.color,{arrayOk:!1,dflt:o.defaultLine,editType:"style"}),width:l({},u.width,{arrayOk:!1,dflt:0,editType:"style"}),outliercolor:{valType:"color",editType:"style"},outlierwidth:{valType:"number",min:0,dflt:1,editType:"style"},editType:"style"},editType:"plot"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:r.fillcolor,whiskerwidth:{valType:"number",min:0,max:1,dflt:.5,editType:"calc"},offsetgroup:a.offsetgroup,alignmentgroup:a.alignmentgroup,selected:{marker:r.selected.marker,editType:"style"},unselected:{marker:r.unselected.marker,editType:"style"},text:l({},r.text,{}),hovertext:l({},r.hovertext,{}),hovertemplate:i({}),hoveron:{valType:"flaglist",flags:["boxes","points"],dflt:"boxes+points",editType:"style"}}},{"../../components/color/attributes":614,"../../lib/extend":740,"../../plots/template_attributes":877,"../bar/attributes":892,"../scatter/attributes":1158}],918:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../plots/cartesian/axes"),o=e("../../plots/cartesian/align_period"),i=e("../../lib"),l=e("../../constants/numerical").BADNUM,s=i._;function u(e,t,n,a){var l,s=t in e,u=t+"0"in e,c="d"+t in e;if(s||u&&c){var f=n.makeCalcdata(e,t),p=o(e,n,t,f);return[p,f]}l=u?e[t+"0"]:"name"in e&&("category"===n.type||r(e.name)&&-1!==["linear","log"].indexOf(n.type)||i.isDateTime(e.name)&&"date"===n.type)?e.name:a;for(var d="multicategory"===n.type?n.r2c_just_indices(l):n.d2c(l,0,e[t+"calendar"]),h=e._length,v=new Array(h),m=0;m<h;m++)v[m]=d;return[v]}function c(e,t){for(var n=e.length,r=new Array(n+1),a=0;a<n;a++)r[a]=e[a]-t;return r[n]=e[n-1]+t,r}function f(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}t.exports=function(e,t){var n,o,p,w,k,T,E,O=e._fullLayout,M=a.getFromId(e,t.xaxis||"x"),S=a.getFromId(e,t.yaxis||"y"),C=[],A="violin"===t.type?"_numViolins":"_numBoxes";"h"===t.orientation?(p=M,w="x",k=S,T="y",E=!!t.yperiodalignment):(p=S,w="y",k=M,T="x",E=!!t.xperiodalignment);var P,L,D,j,I,R,z=u(t,T,k,O[A]),N=z[0],F=z[1],B=i.distinctVals(N),V=B.vals,H=B.minDiff/2,U="all"===(t.boxpoints||t.points)?i.identity:function(e){return e.v<P.lf||e.v>P.uf};if(t._hasPreCompStats){var W=t[w],q=function(e){return p.d2c((t[e]||[])[n])},$=1/0,G=-1/0;for(n=0;n<t._length;n++){var Y=N[n];if(r(Y)){if(P={},P.pos=P[T]=Y,E&&F&&(P.orig_p=F[n]),P.q1=q("q1"),P.med=q("median"),P.q3=q("q3"),L=[],W&&i.isArrayOrTypedArray(W[n]))for(o=0;o<W[n].length;o++)R=p.d2c(W[n][o]),R!==l&&(I={v:R,i:[n,o]},d(I,t,[n,o]),L.push(I));if(P.pts=L.sort(v),D=P[w]=L.map(m),j=D.length,P.med!==l&&P.q1!==l&&P.q3!==l&&P.med>=P.q1&&P.q3>=P.med){var K=q("lowerfence");P.lf=K!==l&&K<=P.q1?K:y(P,D,j);var X=q("upperfence");P.uf=X!==l&&X>=P.q3?X:g(P,D,j);var Z=q("mean");P.mean=Z!==l?Z:j?i.mean(D,j):(P.q1+P.q3)/2;var J=q("sd");P.sd=Z!==l&&J>=0?J:j?i.stdev(D,j,P.mean):P.q3-P.q1,P.lo=b(P),P.uo=x(P);var Q=q("notchspan");Q=Q!==l&&Q>0?Q:_(P,j),P.ln=P.med-Q,P.un=P.med+Q;var ee=P.lf,te=P.uf;t.boxpoints&&D.length&&(ee=Math.min(ee,D[0]),te=Math.max(te,D[j-1])),t.notched&&(ee=Math.min(ee,P.ln),te=Math.max(te,P.un)),P.min=ee,P.max=te}else{var ne;i.warn(["Invalid input - make sure that q1 <= median <= q3","q1 = "+P.q1,"median = "+P.med,"q3 = "+P.q3].join("\n")),ne=P.med!==l?P.med:P.q1!==l?P.q3!==l?(P.q1+P.q3)/2:P.q1:P.q3!==l?P.q3:0,P.med=ne,P.q1=P.q3=ne,P.lf=P.uf=ne,P.mean=P.sd=ne,P.ln=P.un=ne,P.min=P.max=ne}$=Math.min($,P.min),G=Math.max(G,P.max),P.pts2=L.filter(U),C.push(P)}}t._extremes[p._id]=a.findExtremes(p,[$,G],{padded:!0})}else{var re=p.makeCalcdata(t,w),ae=c(V,H),oe=V.length,ie=f(oe);for(n=0;n<t._length;n++)if(R=re[n],r(R)){var le=i.findBin(N[n],ae);le>=0&&le<oe&&(I={v:R,i:n},d(I,t,n),ie[le].push(I))}var se=1/0,ue=-1/0,ce=t.quartilemethod,fe="exclusive"===ce,pe="inclusive"===ce;for(n=0;n<oe;n++)if(ie[n].length>0){var de,he;if(P={},P.pos=P[T]=V[n],L=P.pts=ie[n].sort(v),D=P[w]=L.map(m),j=D.length,P.min=D[0],P.max=D[j-1],P.mean=i.mean(D,j),P.sd=i.stdev(D,j,P.mean),P.med=i.interp(D,.5),j%2&&(fe||pe))fe?(de=D.slice(0,j/2),he=D.slice(j/2+1)):pe&&(de=D.slice(0,j/2+1),he=D.slice(j/2)),P.q1=i.interp(de,.5),P.q3=i.interp(he,.5);else P.q1=i.interp(D,.25),P.q3=i.interp(D,.75);P.lf=y(P,D,j),P.uf=g(P,D,j),P.lo=b(P),P.uo=x(P);var ve=_(P,j);P.ln=P.med-ve,P.un=P.med+ve,se=Math.min(se,P.ln),ue=Math.max(ue,P.un),P.pts2=L.filter(U),C.push(P)}t._extremes[p._id]=a.findExtremes(p,t.notched?re.concat([se,ue]):re,{padded:!0})}return h(C,t),C.length>0?(C[0].t={num:O[A],dPos:H,posLetter:T,valLetter:w,labels:{med:s(e,"median:"),min:s(e,"min:"),q1:s(e,"q1:"),q3:s(e,"q3:"),max:s(e,"max:"),mean:"sd"===t.boxmean?s(e,"mean ± σ:"):s(e,"mean:"),lf:s(e,"lower fence:"),uf:s(e,"upper fence:")}},O[A]++,C):[{t:{empty:!0}}]};var p={text:"tx",hovertext:"htx"};function d(e,t,n){for(var r in p)i.isArrayOrTypedArray(t[r])&&(Array.isArray(n)?i.isArrayOrTypedArray(t[r][n[0]])&&(e[p[r]]=t[r][n[0]][n[1]]):e[p[r]]=t[r][n])}function h(e,t){if(i.isArrayOrTypedArray(t.selectedpoints))for(var n=0;n<e.length;n++){for(var r=e[n].pts||[],a={},o=0;o<r.length;o++)a[r[o].i]=o;i.tagSelected(r,t,a)}}function v(e,t){return e.v-t.v}function m(e){return e.v}function y(e,t,n){return 0===n?e.q1:Math.min(e.q1,t[Math.min(i.findBin(2.5*e.q1-1.5*e.q3,t,!0)+1,n-1)])}function g(e,t,n){return 0===n?e.q3:Math.max(e.q3,t[Math.max(i.findBin(2.5*e.q3-1.5*e.q1,t),0)])}function b(e){return 4*e.q1-3*e.q3}function x(e){return 4*e.q3-3*e.q1}function _(e,t){return 0===t?0:1.57*(e.q3-e.q1)/Math.sqrt(t)}},{"../../constants/numerical":725,"../../lib":750,"../../plots/cartesian/align_period":796,"../../plots/cartesian/axes":799,"fast-isnumeric":241}],919:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../lib"),o=e("../../plots/cartesian/axis_ids").getAxisGroup,i=["v","h"];function l(e,t){for(var n=e.calcdata,r=t.xaxis,a=t.yaxis,o=0;o<i.length;o++){for(var l=i[o],u="h"===l?a:r,c=[],f=0;f<n.length;f++){var p=n[f],d=p[0].t,h=p[0].trace;!0!==h.visible||"box"!==h.type&&"candlestick"!==h.type||d.empty||(h.orientation||"v")!==l||h.xaxis!==r._id||h.yaxis!==a._id||c.push(f)}s("box",e,c,u)}}function s(e,t,n,i){var l,s,u,c=t.calcdata,f=t._fullLayout,p=i._id,d=p.charAt(0),h=[],v=0;for(l=0;l<n.length;l++)for(u=c[n[l]],s=0;s<u.length;s++)h.push(i.c2l(u[s].pos,!0)),v+=(u[s].pts2||[]).length;if(h.length){var m=a.distinctVals(h,{unitMinDiff:"category"===i.type||"multicategory"===i.type}),y=m.minDiff/2;r.minDtick(i,m.minDiff,m.vals[0],!0);var g="violin"===e?"_numViolins":"_numBoxes",b=f[g],x="group"===f[e+"mode"]&&b>1,_=1-f[e+"gap"],w=1-f[e+"groupgap"];for(l=0;l<n.length;l++){u=c[n[l]];var k,T,E,O,M,S,C=u[0].trace,A=u[0].t,P=C.width,L=C.side;if(P)k=T=O=P/2,E=0;else if(k=y,x){var D=o(f,i._id)+C.orientation,j=f._alignmentOpts[D]||{},I=j[C.alignmentgroup]||{},R=Object.keys(I.offsetGroups||{}).length,z=R||b,N=R?C._offsetIndex:A.num;T=k*_*w/z,E=2*k*((N+.5)/z-.5)*_,O=k*_/z}else T=k*_*w,E=0,O=k;A.dPos=k,A.bPos=E,A.bdPos=T,A.wHover=O;var F,B,V,H,U,W,q=E+T,$=Boolean(P),G=(C.boxpoints||C.points)&&v>0;if("positive"===L?(M=k*(P?1:.5),F=q,S=F=E):"negative"===L?(M=F=E,S=k*(P?1:.5),B=q):(M=S=k,F=B=q),G){var Y=C.pointpos,K=C.jitter,X=C.marker.size/2,Z=0;Y+K>=0&&(Z=q*(Y+K),Z>M?($=!0,U=X,V=Z):Z>F&&(U=X,V=M)),Z<=M&&(V=M);var J=0;Y-K<=0&&(J=-q*(Y-K),J>S?($=!0,W=X,H=J):J>B&&(W=X,H=S)),J<=S&&(H=S)}else V=M,H=S;var Q=new Array(u.length);for(s=0;s<u.length;s++)Q[s]=u[s].pos;C._extremes[p]=r.findExtremes(i,Q,{padded:$,vpadminus:H,vpadplus:V,vpadLinearized:!0,ppadminus:{x:W,y:U}[d],ppadplus:{x:U,y:W}[d]})}}}t.exports={crossTraceCalc:l,setPositionOffset:s}},{"../../lib":750,"../../plots/cartesian/axes":799,"../../plots/cartesian/axis_ids":802}],920:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry"),o=e("../../components/color"),i=e("../scatter/period_defaults"),l=e("../bar/defaults").handleGroupingDefaults,s=e("../../plots/cartesian/axis_autotype"),u=e("./attributes");function c(e,t,n,a){function l(n,a){return r.coerce(e,t,u,n,a)}if(f(e,t,l,a),!1!==t.visible){i(e,t,a,l);var s=t._hasPreCompStats;s&&(l("lowerfence"),l("upperfence")),l("line.color",(e.marker||{}).color||n),l("line.width"),l("fillcolor",o.addOpacity(t.line.color,.5));var c=!1;if(s){var d=l("mean"),h=l("sd");d&&d.length&&(c=!0,h&&h.length&&(c="sd"))}l("boxmean",c),l("whiskerwidth"),l("width"),l("quartilemethod");var v=!1;if(s){var m=l("notchspan");m&&m.length&&(v=!0)}else r.validate(e.notchwidth,u.notchwidth)&&(v=!0);var y=l("notched",v);y&&l("notchwidth"),p(e,t,l,{prefix:"box"})}}function f(e,t,n,o){function i(e){var t=0;return e&&e.length&&(t+=1,r.isArrayOrTypedArray(e[0])&&e[0].length&&(t+=1)),t}function l(t){return r.validate(e[t],u[t])}var c,f=n("y"),p=n("x");if("box"===t.type){var d=n("q1"),h=n("median"),v=n("q3");t._hasPreCompStats=d&&d.length&&h&&h.length&&v&&v.length,c=Math.min(r.minRowLength(d),r.minRowLength(h),r.minRowLength(v))}var m,y,g=i(f),b=i(p),x=g&&r.minRowLength(f),_=b&&r.minRowLength(p);if(t._hasPreCompStats)switch(String(b)+String(g)){case"00":var w=l("x0")||l("dx"),k=l("y0")||l("dy");m=k&&!w?"h":"v",y=c;break;case"10":m="v",y=Math.min(c,_);break;case"20":m="h",y=Math.min(c,p.length);break;case"01":m="h",y=Math.min(c,x);break;case"02":m="v",y=Math.min(c,f.length);break;case"12":m="v",y=Math.min(c,_,f.length);break;case"21":m="h",y=Math.min(c,p.length,x);break;case"11":y=0;break;case"22":var T,E=!1;for(T=0;T<p.length;T++)if("category"===s(p[T])){E=!0;break}if(E)m="v",y=Math.min(c,_,f.length);else{for(T=0;T<f.length;T++)if("category"===s(f[T])){E=!0;break}E?(m="h",y=Math.min(c,p.length,x)):(m="v",y=Math.min(c,_,f.length))}break}else g>0?(m="v",y=b>0?Math.min(_,x):Math.min(x)):b>0?(m="h",y=Math.min(_)):y=0;if(y){t._length=y;var O=n("orientation",m);t._hasPreCompStats?"v"===O&&0===b?(n("x0",0),n("dx",1)):"h"===O&&0===g&&(n("y0",0),n("dy",1)):"v"===O&&0===b?n("x0"):"h"===O&&0===g&&n("y0");var M=a.getComponentMethod("calendars","handleTraceDefaults");M(e,t,["x","y"],o)}else t.visible=!1}function p(e,t,n,a){var o=a.prefix,i=r.coerce2(e,t,u,"marker.outliercolor"),l=n("marker.line.outliercolor"),s="outliers";t._hasPreCompStats?s="all":(i||l)&&(s="suspectedoutliers");var c=n(o+"points",s);c?(n("jitter","all"===c?.3:0),n("pointpos","all"===c?-1.5:0),n("marker.symbol"),n("marker.opacity"),n("marker.size"),n("marker.color",t.line.color),n("marker.line.color"),n("marker.line.width"),"suspectedoutliers"===c&&(n("marker.line.outliercolor",t.marker.color),n("marker.line.outlierwidth")),n("selected.marker.color"),n("unselected.marker.color"),n("selected.marker.size"),n("unselected.marker.size"),n("text"),n("hovertext")):delete t.marker;var f=n("hoveron");"all"!==f&&-1===f.indexOf("points")||n("hovertemplate"),r.coerceSelectionMarkerOpacity(t,n)}function d(e,t){var n,a;function o(e){return r.coerce(a._input,a,u,e)}for(var i=0;i<e.length;i++){a=e[i];var s=a.type;"box"!==s&&"violin"!==s||(n=a._input,"group"===t[s+"mode"]&&l(n,a,t,o))}}t.exports={supplyDefaults:c,crossTraceDefaults:d,handleSampleDefaults:f,handlePointsDefaults:p}},{"../../components/color":615,"../../lib":750,"../../plots/cartesian/axis_autotype":800,"../../registry":882,"../bar/defaults":896,"../scatter/period_defaults":1178,"./attributes":917}],921:[function(e,t,n){"use strict";t.exports=function(e,t){return t.hoverOnBox&&(e.hoverOnBox=t.hoverOnBox),"xVal"in t&&(e.x=t.xVal),"yVal"in t&&(e.y=t.yVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}},{}],922:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../lib"),o=e("../../components/fx"),i=e("../../components/color"),l=a.fillText;function s(e,t,n,r){var a,o=e.cd,i=o[0].trace,l=i.hoveron,s=[];return-1!==l.indexOf("boxes")&&(s=s.concat(u(e,t,n,r))),-1!==l.indexOf("points")&&(a=c(e,t,n)),"closest"===r?a?[a]:s:a?(s.push(a),s):s}function u(e,t,n,l){var s,u,c,f,p,d,h,v,m,y,g,b,x,_,w=e.cd,k=e.xa,T=e.ya,E=w[0].trace,O=w[0].t,M="violin"===E.type,S=[],C=O.bdPos,A=O.wHover,P=function(e){return c.c2l(e.pos)+O.bPos-c.c2l(d)};M&&"both"!==E.side?("positive"===E.side&&(m=function(e){var t=P(e);return o.inbox(t,t+A,y)},b=C,x=0),"negative"===E.side&&(m=function(e){var t=P(e);return o.inbox(t-A,t,y)},b=0,x=C)):(m=function(e){var t=P(e);return o.inbox(t-A,t+A,y)},b=x=C),_=M?function(e){return o.inbox(e.span[0]-p,e.span[1]-p,y)}:function(e){return o.inbox(e.min-p,e.max-p,y)},"h"===E.orientation?(p=t,d=n,h=_,v=m,s="y",c=T,u="x",f=k):(p=n,d=t,h=m,v=_,s="x",c=k,u="y",f=T);var L=Math.min(1,C/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function D(e){return(h(e)+v(e))/2}y=e.maxHoverDistance-L,g=e.maxSpikeDistance-L;var j=o.getDistanceFunction(l,h,v,D);if(o.getClosest(w,j,e),!1===e.index)return[];var I=w[e.index],R=E.line.color,z=(E.marker||{}).color;i.opacity(R)&&E.line.width?e.color=R:i.opacity(z)&&E.boxpoints?e.color=z:e.color=E.fillcolor,e[s+"0"]=c.c2p(I.pos+O.bPos-x,!0),e[s+"1"]=c.c2p(I.pos+O.bPos+b,!0),e[s+"LabelVal"]=void 0!==I.orig_p?I.orig_p:I.pos;var N=s+"Spike";e.spikeDistance=D(I)*g/y,e[N]=c.c2p(I.pos,!0);var F={},B=["med","q1","q3","min","max"];(E.boxmean||(E.meanline||{}).visible)&&B.push("mean"),(E.boxpoints||E.points)&&B.push("lf","uf");for(var V=0;V<B.length;V++){var H=B[V];if(H in I&&!(I[H]in F)){F[I[H]]=!0;var U=I[H],W=f.c2p(U,!0),q=a.extendFlat({},e);q.attr=H,q[u+"0"]=q[u+"1"]=W,q[u+"LabelVal"]=U,q[u+"Label"]=(O.labels?O.labels[H]+" ":"")+r.hoverLabelText(f,U),q.hoverOnBox=!0,"mean"===H&&"sd"in I&&"sd"===E.boxmean&&(q[u+"err"]=I.sd),e.name="",e.spikeDistance=void 0,e[N]=void 0,q.hovertemplate=!1,S.push(q)}}return S}function c(e,t,n){for(var r,i,s,u=e.cd,c=e.xa,f=e.ya,p=u[0].trace,d=c.c2p(t),h=f.c2p(n),v=function(e){var t=Math.max(3,e.mrc||0);return Math.max(Math.abs(c.c2p(e.x)-d)-t,1-3/t)},m=function(e){var t=Math.max(3,e.mrc||0);return Math.max(Math.abs(f.c2p(e.y)-h)-t,1-3/t)},y=o.quadrature(v,m),g=!1,b=0;b<u.length;b++){i=u[b];for(var x=0;x<(i.pts||[]).length;x++){s=i.pts[x];var _=y(s);_<=e.distance&&(e.distance=_,g=[b,x])}}if(!g)return!1;i=u[g[0]],s=i.pts[g[1]];var w=c.c2p(s.x,!0),k=f.c2p(s.y,!0),T=s.mrc||1;r=a.extendFlat({},e,{index:s.i,color:(p.marker||{}).color,name:p.name,x0:w-T,x1:w+T,y0:k-T,y1:k+T,spikeDistance:e.distance,hovertemplate:p.hovertemplate});var E,O=i.orig_p,M=void 0!==O?O:i.pos;"h"===p.orientation?(E=f,r.xLabelVal=s.x,r.yLabelVal=M):(E=c,r.xLabelVal=M,r.yLabelVal=s.y);var S=E._id.charAt(0);return r[S+"Spike"]=E.c2p(i.pos,!0),l(s,p,r),r}t.exports={hoverPoints:s,hoverOnBoxes:u,hoverOnPoints:c}},{"../../components/color":615,"../../components/fx":655,"../../lib":750,"../../plots/cartesian/axes":799}],923:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults").supplyDefaults,crossTraceDefaults:e("./defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults").supplyLayoutDefaults,calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc").crossTraceCalc,plot:e("./plot").plot,style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover").hoverPoints,eventData:e("./event_data"),selectPoints:e("./select"),moduleType:"trace",name:"box",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","boxLayout","zoomScale"],meta:{}}},{"../../plots/cartesian":812,"./attributes":917,"./calc":918,"./cross_trace_calc":919,"./defaults":920,"./event_data":921,"./hover":922,"./layout_attributes":924,"./layout_defaults":925,"./plot":926,"./select":927,"./style":928}],924:[function(e,t,n){"use strict";t.exports={boxmode:{valType:"enumerated",values:["group","overlay"],dflt:"overlay",editType:"calc"},boxgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"},boxgroupgap:{valType:"number",min:0,max:1,dflt:.3,editType:"calc"}}},{}],925:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),o=e("./layout_attributes");function i(e,t,n,a,o){for(var i=o+"Layout",l=!1,s=0;s<n.length;s++){var u=n[s];if(r.traceIs(u,i)){l=!0;break}}l&&(a(o+"mode"),a(o+"gap"),a(o+"groupgap"))}function l(e,t,n){function r(n,r){return a.coerce(e,t,o,n,r)}i(e,t,n,r,"box")}t.exports={supplyLayoutDefaults:l,_supply:i}},{"../../lib":750,"../../registry":882,"./layout_attributes":924}],926:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../../components/drawing"),i=5,l=.01;function s(e,t,n,o){var i=t.xaxis,l=t.yaxis;a.makeTraceGroups(o,n,"trace boxes").each((function(e){var t,n,a=r.select(this),o=e[0],s=o.t,p=o.trace;(s.wdPos=s.bdPos*p.whiskerwidth,!0!==p.visible||s.empty)?a.remove():("h"===p.orientation?(t=l,n=i):(t=i,n=l),u(a,{pos:t,val:n},p,s),c(a,{x:i,y:l},p,s),f(a,{pos:t,val:n},p,s))}))}function u(e,t,n,o){var i,l,s="h"===n.orientation,u=t.val,c=t.pos,f=!!c.rangebreaks,p=o.bPos,d=o.wdPos||0,h=o.bPosPxOffset||0,v=n.whiskerwidth||0,m=n.notched||!1,y=m?1-2*n.notchwidth:1;Array.isArray(o.bdPos)?(i=o.bdPos[0],l=o.bdPos[1]):(i=o.bdPos,l=o.bdPos);var g=e.selectAll("path.box").data("violin"!==n.type||n.box.visible?a.identity:[]);g.enter().append("path").style("vector-effect","non-scaling-stroke").attr("class","box"),g.exit().remove(),g.each((function(e){if(e.empty)return"M0,0Z";var t=c.c2l(e.pos+p,!0),o=c.l2p(t-i)+h,g=c.l2p(t+l)+h,b=f?(o+g)/2:c.l2p(t)+h,x=n.whiskerwidth,_=f?o*x+(1-x)*b:c.l2p(t-d)+h,w=f?g*x+(1-x)*b:c.l2p(t+d)+h,k=c.l2p(t-i*y)+h,T=c.l2p(t+l*y)+h,E=u.c2p(e.q1,!0),O=u.c2p(e.q3,!0),M=a.constrain(u.c2p(e.med,!0),Math.min(E,O)+1,Math.max(E,O)-1),S=void 0===e.lf||!1===n.boxpoints,C=u.c2p(S?e.min:e.lf,!0),A=u.c2p(S?e.max:e.uf,!0),P=u.c2p(e.ln,!0),L=u.c2p(e.un,!0);s?r.select(this).attr("d","M"+M+","+k+"V"+T+"M"+E+","+o+"V"+g+(m?"H"+P+"L"+M+","+T+"L"+L+","+g:"")+"H"+O+"V"+o+(m?"H"+L+"L"+M+","+k+"L"+P+","+o:"")+"ZM"+E+","+b+"H"+C+"M"+O+","+b+"H"+A+(0===v?"":"M"+C+","+_+"V"+w+"M"+A+","+_+"V"+w)):r.select(this).attr("d","M"+k+","+M+"H"+T+"M"+o+","+E+"H"+g+(m?"V"+P+"L"+T+","+M+"L"+g+","+L:"")+"V"+O+"H"+o+(m?"V"+L+"L"+k+","+M+"L"+o+","+P:"")+"ZM"+b+","+E+"V"+C+"M"+b+","+O+"V"+A+(0===v?"":"M"+_+","+C+"H"+w+"M"+_+","+A+"H"+w))}))}function c(e,t,n,r){var s=t.x,u=t.y,c=r.bdPos,f=r.bPos,p=n.boxpoints||n.points;a.seedPseudoRandom();var d=function(e){return e.forEach((function(e){e.t=r,e.trace=n})),e},h=e.selectAll("g.points").data(p?d:[]);h.enter().append("g").attr("class","points"),h.exit().remove();var v=h.selectAll("path").data((function(e){var t,r,o=e.pts2,s=Math.max((e.max-e.min)/10,e.q3-e.q1),u=1e-9*s,d=s*l,h=[],v=0;if(n.jitter){if(0===s)for(v=1,h=new Array(o.length),t=0;t<o.length;t++)h[t]=1;else for(t=0;t<o.length;t++){var m=Math.max(0,t-i),y=o[m].v,g=Math.min(o.length-1,t+i),b=o[g].v;"all"!==p&&(o[t].v<e.lf?b=Math.min(b,e.lf):y=Math.max(y,e.uf));var x=Math.sqrt(d*(g-m)/(b-y+u))||0;x=a.constrain(Math.abs(x),0,1),h.push(x),v=Math.max(x,v)}r=2*n.jitter/(v||1)}for(t=0;t<o.length;t++){var _=o[t],w=_.v,k=n.jitter?r*h[t]*(a.pseudoRandom()-.5):0,T=e.pos+f+c*(n.pointpos+k);"h"===n.orientation?(_.y=T,_.x=w):(_.x=T,_.y=w),"suspectedoutliers"===p&&w<e.uo&&w>e.lo&&(_.so=!0)}return o}));v.enter().append("path").classed("point",!0),v.exit().remove(),v.call(o.translatePoints,s,u)}function f(e,t,n,o){var i,l,s=t.val,u=t.pos,c=!!u.rangebreaks,f=o.bPos,p=o.bPosPxOffset||0,d=n.boxmean||(n.meanline||{}).visible;Array.isArray(o.bdPos)?(i=o.bdPos[0],l=o.bdPos[1]):(i=o.bdPos,l=o.bdPos);var h=e.selectAll("path.mean").data("box"===n.type&&n.boxmean||"violin"===n.type&&n.box.visible&&n.meanline.visible?a.identity:[]);h.enter().append("path").attr("class","mean").style({fill:"none","vector-effect":"non-scaling-stroke"}),h.exit().remove(),h.each((function(e){var t=u.c2l(e.pos+f,!0),a=u.l2p(t-i)+p,o=u.l2p(t+l)+p,h=c?(a+o)/2:u.l2p(t)+p,v=s.c2p(e.mean,!0),m=s.c2p(e.mean-e.sd,!0),y=s.c2p(e.mean+e.sd,!0);"h"===n.orientation?r.select(this).attr("d","M"+v+","+a+"V"+o+("sd"===d?"m0,0L"+m+","+h+"L"+v+","+a+"L"+y+","+h+"Z":"")):r.select(this).attr("d","M"+a+","+v+"H"+o+("sd"===d?"m0,0L"+h+","+m+"L"+a+","+v+"L"+h+","+y+"Z":""))}))}t.exports={plot:s,plotBoxAndWhiskers:u,plotPoints:c,plotBoxMean:f}},{"../../components/drawing":637,"../../lib":750,d3:169}],927:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,a=e.cd,o=e.xaxis,i=e.yaxis,l=[];if(!1===t)for(n=0;n<a.length;n++)for(r=0;r<(a[n].pts||[]).length;r++)a[n].pts[r].selected=0;else for(n=0;n<a.length;n++)for(r=0;r<(a[n].pts||[]).length;r++){var s=a[n].pts[r],u=o.c2p(s.x),c=i.c2p(s.y);t.contains([u,c],null,s.i,e)?(l.push({pointNumber:s.i,x:o.c2d(s.x),y:i.c2d(s.y)}),s.selected=1):s.selected=0}return l}},{}],928:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/color"),o=e("../../components/drawing");function i(e,t,n){var i=n||r.select(e).selectAll("g.trace.boxes");i.style("opacity",(function(e){return e[0].trace.opacity})),i.each((function(t){var n=r.select(this),i=t[0].trace,l=i.line.width;function s(e,t,n,r){e.style("stroke-width",t+"px").call(a.stroke,n).call(a.fill,r)}var u=n.selectAll("path.box");if("candlestick"===i.type)u.each((function(e){if(!e.empty){var t=r.select(this),n=i[e.dir];s(t,n.line.width,n.line.color,n.fillcolor),t.style("opacity",i.selectedpoints&&!e.selected?.3:1)}}));else{s(u,l,i.line.color,i.fillcolor),n.selectAll("path.mean").style({"stroke-width":l,"stroke-dasharray":2*l+"px,"+l+"px"}).call(a.stroke,i.line.color);var c=n.selectAll("path.point");o.pointStyle(c,i,e)}}))}function l(e,t,n){var r=t[0].trace,a=n.selectAll("path.point");r.selectedpoints?o.selectedPointStyle(a,r):o.pointStyle(a,r,e)}t.exports={style:i,styleOnSelect:l}},{"../../components/color":615,"../../components/drawing":637,d3:169}],929:[function(e,t,n){"use strict";var r=e("../../lib").extendFlat,a=e("../ohlc/attributes"),o=e("../box/attributes");function i(e){return{line:{color:r({},o.line.color,{dflt:e}),width:o.line.width,editType:"style"},fillcolor:o.fillcolor,editType:"style"}}t.exports={xperiod:a.xperiod,xperiod0:a.xperiod0,xperiodalignment:a.xperiodalignment,x:a.x,open:a.open,high:a.high,low:a.low,close:a.close,line:{width:r({},o.line.width,{}),editType:"style"},increasing:i(a.increasing.line.color.dflt),decreasing:i(a.decreasing.line.color.dflt),text:a.text,hovertext:a.hovertext,whiskerwidth:r({},o.whiskerwidth,{dflt:0}),hoverlabel:a.hoverlabel}},{"../../lib":750,"../box/attributes":917,"../ohlc/attributes":1104}],930:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("../../plots/cartesian/align_period"),i=e("../ohlc/calc").calcCommon;function l(e,t,n,r){return{min:n,q1:Math.min(e,r),med:r,q3:Math.max(e,r),max:t}}t.exports=function(e,t){var n=e._fullLayout,s=a.getFromId(e,t.xaxis),u=a.getFromId(e,t.yaxis),c=s.makeCalcdata(t,"x"),f=o(t,s,"x",c),p=i(e,t,c,f,u,l);return p.length?(r.extendFlat(p[0].t,{num:n._numBoxes,dPos:r.distinctVals(f).minDiff/2,posLetter:"x",valLetter:"y"}),n._numBoxes++,p):[{t:{empty:!0}}]}},{"../../lib":750,"../../plots/cartesian/align_period":796,"../../plots/cartesian/axes":799,"../ohlc/calc":1105}],931:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/color"),o=e("../ohlc/ohlc_defaults"),i=e("../scatter/period_defaults"),l=e("./attributes");function s(e,t,n,r){var o=n(r+".line.color");n(r+".line.width",t.line.width),n(r+".fillcolor",a.addOpacity(o,.5))}t.exports=function(e,t,n,a){function u(n,a){return r.coerce(e,t,l,n,a)}var c=o(e,t,u,a);c?(i(e,t,a,u,{x:!0}),u("line.width"),s(e,t,u,"increasing"),s(e,t,u,"decreasing"),u("text"),u("hovertext"),u("whiskerwidth"),a._requestRangeslider[t.xaxis]=!0):t.visible=!1}},{"../../components/color":615,"../../lib":750,"../ohlc/ohlc_defaults":1109,"../scatter/period_defaults":1178,"./attributes":929}],932:[function(e,t,n){"use strict";t.exports={moduleType:"trace",name:"candlestick",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","showLegend","candlestick","boxLayout"],meta:{},attributes:e("./attributes"),layoutAttributes:e("../box/layout_attributes"),supplyLayoutDefaults:e("../box/layout_defaults").supplyLayoutDefaults,crossTraceCalc:e("../box/cross_trace_calc").crossTraceCalc,supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("../box/plot").plot,layerName:"boxlayer",style:e("../box/style").style,hoverPoints:e("../ohlc/hover").hoverPoints,selectPoints:e("../ohlc/select")}},{"../../plots/cartesian":812,"../box/cross_trace_calc":919,"../box/layout_attributes":924,"../box/layout_defaults":925,"../box/plot":926,"../box/style":928,"../ohlc/hover":1107,"../ohlc/select":1111,"./attributes":929,"./calc":930,"./defaults":931}],933:[function(e,t,n){"use strict";var r=e("./axis_defaults"),a=e("../../plot_api/plot_template");function o(e,t,n,o){var i=["aaxis","baxis"];i.forEach((function(i){var l=i.charAt(0),s=e[i]||{},u=a.newContainer(t,i),c={tickfont:"x",id:l+"axis",letter:l,font:t.font,name:i,data:e[l],calendar:t.calendar,dfltColor:o,bgColor:n.paper_bgcolor,fullLayout:n};r(s,u,c),u._categories=u._categories||[],e[i]||"-"===s.type||(e[i]={type:s.type})}))}t.exports=function(e,t,n,r,a){var i=r("a");i||(r("da"),r("a0"));var l=r("b");l||(r("db"),r("b0")),o(e,t,n,a)}},{"../../plot_api/plot_template":788,"./axis_defaults":938}],934:[function(e,t,n){"use strict";var r=e("../../lib").isArrayOrTypedArray;function a(e,t){if(!r(e)||t>=10)return null;for(var n=1/0,o=-1/0,i=e.length,l=0;l<i;l++){var s=e[l];if(r(s)){var u=a(s,t+1);u&&(n=Math.min(u[0],n),o=Math.max(u[1],o))}else n=Math.min(s,n),o=Math.max(s,o)}return[n,o]}t.exports=function(e){return a(e,0)}},{"../../lib":750}],935:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("./axis_attributes"),o=e("../../components/color/attributes"),i=r({editType:"calc"});i.family.dflt='"Open Sans", verdana, arial, sans-serif',i.size.dflt=12,i.color.dflt=o.defaultLine,t.exports={carpet:{valType:"string",editType:"calc"},x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},a:{valType:"data_array",editType:"calc"},a0:{valType:"number",dflt:0,editType:"calc"},da:{valType:"number",dflt:1,editType:"calc"},b:{valType:"data_array",editType:"calc"},b0:{valType:"number",dflt:0,editType:"calc"},db:{valType:"number",dflt:1,editType:"calc"},cheaterslope:{valType:"number",dflt:1,editType:"calc"},aaxis:a,baxis:a,font:i,color:{valType:"color",dflt:o.defaultLine,editType:"plot"},transforms:void 0}},{"../../components/color/attributes":614,"../../plots/font_attributes":827,"./axis_attributes":937}],936:[function(e,t,n){"use strict";var r=e("../../lib").isArrayOrTypedArray;t.exports=function(e,t,n,a){var o,i,l,s,u,c,f,p,d,h,v,m,y,g=r(n)?"a":"b",b="a"===g?e.aaxis:e.baxis,x=b.smoothing,_="a"===g?e.a2i:e.b2j,w="a"===g?n:a,k="a"===g?a:n,T="a"===g?t.a.length:t.b.length,E="a"===g?t.b.length:t.a.length,O=Math.floor("a"===g?e.b2j(k):e.a2i(k)),M="a"===g?function(t){return e.evalxy([],t,O)}:function(t){return e.evalxy([],O,t)};x&&(l=Math.max(0,Math.min(E-2,O)),s=O-l,i="a"===g?function(t,n){return e.dxydi([],t,l,n,s)}:function(t,n){return e.dxydj([],l,t,s,n)});var S=_(w[0]),C=_(w[1]),A=S<C?1:-1,P=1e-8*(C-S),L=A>0?Math.floor:Math.ceil,D=A>0?Math.ceil:Math.floor,j=A>0?Math.min:Math.max,I=A>0?Math.max:Math.min,R=L(S+P),z=D(C-P);f=M(S);var N=[[f]];for(o=R;o*A<z*A;o+=A)u=[],v=I(S,o),m=j(C,o+A),y=m-v,c=Math.max(0,Math.min(T-2,Math.floor(.5*(v+m)))),p=M(m),x&&(d=i(c,v-c),h=i(c,m-c),u.push([f[0]+d[0]/3*y,f[1]+d[1]/3*y]),u.push([p[0]-h[0]/3*y,p[1]-h[1]/3*y])),u.push(p),N.push(u),f=p;return N}},{"../../lib":750}],937:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("../../components/color/attributes"),o=e("../../plots/cartesian/layout_attributes"),i=e("../../plot_api/edit_types").overrideAll;e("../../constants/docs").FORMAT_LINK,e("../../constants/docs").TIME_FORMAT_LINK;t.exports={color:{valType:"color",editType:"calc"},smoothing:{valType:"number",dflt:1,min:0,max:1.3,editType:"calc"},title:{text:{valType:"string",dflt:"",editType:"calc"},font:r({editType:"calc"}),offset:{valType:"number",dflt:10,editType:"calc"},editType:"calc"},type:{valType:"enumerated",values:["-","linear","date","category"],dflt:"-",editType:"calc"},autorange:{valType:"enumerated",values:[!0,!1,"reversed"],dflt:!0,editType:"calc"},rangemode:{valType:"enumerated",values:["normal","tozero","nonnegative"],dflt:"normal",editType:"calc"},range:{valType:"info_array",editType:"calc",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}]},fixedrange:{valType:"boolean",dflt:!1,editType:"calc"},cheatertype:{valType:"enumerated",values:["index","value"],dflt:"value",editType:"calc"},tickmode:{valType:"enumerated",values:["linear","array"],dflt:"array",editType:"calc"},nticks:{valType:"integer",min:0,dflt:0,editType:"calc"},tickvals:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},showticklabels:{valType:"enumerated",values:["start","end","both","none"],dflt:"start",editType:"calc"},tickfont:r({editType:"calc"}),tickangle:{valType:"angle",dflt:"auto",editType:"calc"},tickprefix:{valType:"string",dflt:"",editType:"calc"},showtickprefix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},ticksuffix:{valType:"string",dflt:"",editType:"calc"},showticksuffix:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},showexponent:{valType:"enumerated",values:["all","first","last","none"],dflt:"all",editType:"calc"},exponentformat:{valType:"enumerated",values:["none","e","E","power","SI","B"],dflt:"B",editType:"calc"},minexponent:{valType:"number",dflt:3,min:0,editType:"calc"},separatethousands:{valType:"boolean",dflt:!1,editType:"calc"},tickformat:{valType:"string",dflt:"",editType:"calc"},tickformatstops:i(o.tickformatstops,"calc","from-root"),categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},labelpadding:{valType:"integer",dflt:10,editType:"calc"},labelprefix:{valType:"string",editType:"calc"},labelsuffix:{valType:"string",dflt:"",editType:"calc"},showline:{valType:"boolean",dflt:!1,editType:"calc"},linecolor:{valType:"color",dflt:a.defaultLine,editType:"calc"},linewidth:{valType:"number",min:0,dflt:1,editType:"calc"},gridcolor:{valType:"color",editType:"calc"},gridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},showgrid:{valType:"boolean",dflt:!0,editType:"calc"},minorgridcount:{valType:"integer",min:0,dflt:0,editType:"calc"},minorgridwidth:{valType:"number",min:0,dflt:1,editType:"calc"},minorgridcolor:{valType:"color",dflt:a.lightLine,editType:"calc"},startline:{valType:"boolean",editType:"calc"},startlinecolor:{valType:"color",editType:"calc"},startlinewidth:{valType:"number",dflt:1,editType:"calc"},endline:{valType:"boolean",editType:"calc"},endlinewidth:{valType:"number",dflt:1,editType:"calc"},endlinecolor:{valType:"color",editType:"calc"},tick0:{valType:"number",min:0,dflt:0,editType:"calc"},dtick:{valType:"number",min:0,dflt:1,editType:"calc"},arraytick0:{valType:"integer",min:0,dflt:0,editType:"calc"},arraydtick:{valType:"integer",min:1,dflt:1,editType:"calc"},_deprecated:{title:{valType:"string",editType:"calc"},titlefont:r({editType:"calc"}),titleoffset:{valType:"number",dflt:10,editType:"calc"}},editType:"calc"}},{"../../components/color/attributes":614,"../../constants/docs":720,"../../plot_api/edit_types":781,"../../plots/cartesian/layout_attributes":813,"../../plots/font_attributes":827}],938:[function(e,t,n){"use strict";var r=e("./attributes"),a=e("../../components/color").addOpacity,o=e("../../registry"),i=e("../../lib"),l=e("../../plots/cartesian/tick_value_defaults"),s=e("../../plots/cartesian/tick_label_defaults"),u=e("../../plots/cartesian/category_order_defaults"),c=e("../../plots/cartesian/set_convert"),f=e("../../plots/cartesian/axis_autotype");function p(e,t){if("-"===e.type){var n=e._id,r=n.charAt(0),a=r+"calendar",o=e[a];e.type=f(t,o)}}t.exports=function(e,t,n){var f=n.letter,d=n.font||{},h=r[f+"axis"];function v(n,r){return i.coerce(e,t,h,n,r)}function m(n,r){return i.coerce2(e,t,h,n,r)}n.name&&(t._name=n.name,t._id=n.name);var y=v("type");if("-"===y&&(n.data&&p(t,n.data),"-"===t.type?t.type="linear":y=e.type=t.type),v("smoothing"),v("cheatertype"),v("showticklabels"),v("labelprefix",f+" = "),v("labelsuffix"),v("showtickprefix"),v("showticksuffix"),v("separatethousands"),v("tickformat"),v("exponentformat"),v("minexponent"),v("showexponent"),v("categoryorder"),v("tickmode"),v("tickvals"),v("ticktext"),v("tick0"),v("dtick"),"array"===t.tickmode&&(v("arraytick0"),v("arraydtick")),v("labelpadding"),t._hovertitle=f,"date"===y){var g=o.getComponentMethod("calendars","handleDefaults");g(e,t,"calendar",n.calendar)}c(t,n.fullLayout),t.c2p=i.identity;var b=v("color",n.dfltColor),x=b===e.color?b:d.color,_=v("title.text");_&&(i.coerceFont(v,"title.font",{family:d.family,size:Math.round(1.2*d.size),color:x}),v("title.offset")),v("tickangle");var w=v("autorange",!t.isValidRange(e.range));w&&v("rangemode"),v("range"),t.cleanRange(),v("fixedrange"),l(e,t,v,y),s(e,t,v,y,n),u(e,t,v,{data:n.data,dataAttr:f});var k=m("gridcolor",a(b,.3)),T=m("gridwidth"),E=v("showgrid");E||(delete t.gridcolor,delete t.gridwidth);var O=m("startlinecolor",b),M=m("startlinewidth",T),S=v("startline",t.showgrid||!!O||!!M);S||(delete t.startlinecolor,delete t.startlinewidth);var C=m("endlinecolor",b),A=m("endlinewidth",T),P=v("endline",t.showgrid||!!C||!!A);return P||(delete t.endlinecolor,delete t.endlinewidth),E?(v("minorgridcount"),v("minorgridwidth",T),v("minorgridcolor",a(k,.06)),t.minorgridcount||(delete t.minorgridwidth,delete t.minorgridcolor)):(delete t.gridcolor,delete t.gridWidth),"none"===t.showticklabels&&(delete t.tickfont,delete t.tickangle,delete t.showexponent,delete t.exponentformat,delete t.minexponent,delete t.tickformat,delete t.showticksuffix,delete t.showtickprefix),t.showticksuffix||delete t.ticksuffix,t.showtickprefix||delete t.tickprefix,v("tickmode"),t}},{"../../components/color":615,"../../lib":750,"../../plots/cartesian/axis_autotype":800,"../../plots/cartesian/category_order_defaults":803,"../../plots/cartesian/set_convert":819,"../../plots/cartesian/tick_label_defaults":820,"../../plots/cartesian/tick_value_defaults":822,"../../registry":882,"./attributes":935}],939:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../lib").isArray1D,o=e("./cheater_basis"),i=e("./array_minmax"),l=e("./calc_gridlines"),s=e("./calc_labels"),u=e("./calc_clippath"),c=e("../heatmap/clean_2d_array"),f=e("./smooth_fill_2d_array"),p=e("../heatmap/convert_column_xyz"),d=e("./set_convert");t.exports=function(e,t){var n=r.getFromId(e,t.xaxis),h=r.getFromId(e,t.yaxis),v=t.aaxis,m=t.baxis,y=t.x,g=t.y,b=[];y&&a(y)&&b.push("x"),g&&a(g)&&b.push("y"),b.length&&p(t,v,m,"a","b",b);var x=t._a=t._a||t.a,_=t._b=t._b||t.b;y=t._x||t.x,g=t._y||t.y;var w={};if(t._cheater){var k="index"===v.cheatertype?x.length:x,T="index"===m.cheatertype?_.length:_;y=o(k,T,t.cheaterslope)}t._x=y=c(y),t._y=g=c(g),f(y,x,_),f(g,x,_),d(t),t.setScale();var E=i(y),O=i(g),M=.5*(E[1]-E[0]),S=.5*(E[1]+E[0]),C=.5*(O[1]-O[0]),A=.5*(O[1]+O[0]),P=1.3;return E=[S-M*P,S+M*P],O=[A-C*P,A+C*P],t._extremes[n._id]=r.findExtremes(n,E,{padded:!0}),t._extremes[h._id]=r.findExtremes(h,O,{padded:!0}),l(t,"a","b"),l(t,"b","a"),s(t,v),s(t,m),w.clipsegments=u(t._xctrl,t._yctrl,v,m),w.x=y,w.y=g,w.a=x,w.b=_,[w]}},{"../../lib":750,"../../plots/cartesian/axes":799,"../heatmap/clean_2d_array":1038,"../heatmap/convert_column_xyz":1040,"./array_minmax":934,"./calc_clippath":940,"./calc_gridlines":941,"./calc_labels":942,"./cheater_basis":944,"./set_convert":957,"./smooth_fill_2d_array":958}],940:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var a,o,i,l=[],s=!!n.smoothing,u=!!r.smoothing,c=e[0].length-1,f=e.length-1;for(a=0,o=[],i=[];a<=c;a++)o[a]=e[0][a],i[a]=t[0][a];for(l.push({x:o,y:i,bicubic:s}),a=0,o=[],i=[];a<=f;a++)o[a]=e[a][c],i[a]=t[a][c];for(l.push({x:o,y:i,bicubic:u}),a=c,o=[],i=[];a>=0;a--)o[c-a]=e[f][a],i[c-a]=t[f][a];for(l.push({x:o,y:i,bicubic:s}),a=f,o=[],i=[];a>=0;a--)o[f-a]=e[a][0],i[f-a]=t[a][0];return l.push({x:o,y:i,bicubic:u}),l}},{}],941:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../lib/extend").extendFlat;t.exports=function(e,t,n){var o,i,l,s,u,c,f,p,d,h,v,m,y,g,b=e["_"+t],x=e[t+"axis"],_=x._gridlines=[],w=x._minorgridlines=[],k=x._boundarylines=[],T=e["_"+n],E=e[n+"axis"];"array"===x.tickmode&&(x.tickvals=b.slice());var O=e._xctrl,M=e._yctrl,S=O[0].length,C=O.length,A=e._a.length,P=e._b.length;r.prepTicks(x),"array"===x.tickmode&&delete x.tickvals;var L=x.smoothing?3:1;function D(r){var a,o,i,l,s,u,c,f,d,h,v,m,y=[],g=[],b={};if("b"===t)for(o=e.b2j(r),i=Math.floor(Math.max(0,Math.min(P-2,o))),l=o-i,b.length=P,b.crossLength=A,b.xy=function(t){return e.evalxy([],t,o)},b.dxy=function(t,n){return e.dxydi([],t,i,n,l)},a=0;a<A;a++)u=Math.min(A-2,a),c=a-u,f=e.evalxy([],a,o),E.smoothing&&a>0&&(d=e.dxydi([],a-1,i,0,l),y.push(s[0]+d[0]/3),g.push(s[1]+d[1]/3),h=e.dxydi([],a-1,i,1,l),y.push(f[0]-h[0]/3),g.push(f[1]-h[1]/3)),y.push(f[0]),g.push(f[1]),s=f;else for(a=e.a2i(r),u=Math.floor(Math.max(0,Math.min(A-2,a))),c=a-u,b.length=A,b.crossLength=P,b.xy=function(t){return e.evalxy([],a,t)},b.dxy=function(t,n){return e.dxydj([],u,t,c,n)},o=0;o<P;o++)i=Math.min(P-2,o),l=o-i,f=e.evalxy([],a,o),E.smoothing&&o>0&&(v=e.dxydj([],u,o-1,c,0),y.push(s[0]+v[0]/3),g.push(s[1]+v[1]/3),m=e.dxydj([],u,o-1,c,1),y.push(f[0]-m[0]/3),g.push(f[1]-m[1]/3)),y.push(f[0]),g.push(f[1]),s=f;return b.axisLetter=t,b.axis=x,b.crossAxis=E,b.value=r,b.constvar=n,b.index=p,b.x=y,b.y=g,b.smoothing=E.smoothing,b}function j(r){var a,o,i,l,s,u=[],c=[],f={};if(f.length=b.length,f.crossLength=T.length,"b"===t)for(i=Math.max(0,Math.min(P-2,r)),s=Math.min(1,Math.max(0,r-i)),f.xy=function(t){return e.evalxy([],t,r)},f.dxy=function(t,n){return e.dxydi([],t,i,n,s)},a=0;a<S;a++)u[a]=O[r*L][a],c[a]=M[r*L][a];else for(o=Math.max(0,Math.min(A-2,r)),l=Math.min(1,Math.max(0,r-o)),f.xy=function(t){return e.evalxy([],r,t)},f.dxy=function(t,n){return e.dxydj([],o,t,l,n)},a=0;a<C;a++)u[a]=O[a][r*L],c[a]=M[a][r*L];return f.axisLetter=t,f.axis=x,f.crossAxis=E,f.value=b[r],f.constvar=n,f.index=r,f.x=u,f.y=c,f.smoothing=E.smoothing,f}if("array"===x.tickmode){for(s=5e-15,u=[Math.floor((b.length-1-x.arraytick0)/x.arraydtick*(1+s)),Math.ceil(-x.arraytick0/x.arraydtick/(1+s))].sort((function(e,t){return e-t})),c=u[0]-1,f=u[1]+1,p=c;p<f;p++)i=x.arraytick0+x.arraydtick*p,i<0||i>b.length-1||_.push(a(j(i),{color:x.gridcolor,width:x.gridwidth}));for(p=c;p<f;p++)if(l=x.arraytick0+x.arraydtick*p,v=Math.min(l+x.arraydtick,b.length-1),!(l<0||l>b.length-1)&&!(v<0||v>b.length-1))for(m=b[l],y=b[v],o=0;o<x.minorgridcount;o++)g=v-l,g<=0||(h=m+(y-m)*(o+1)/(x.minorgridcount+1)*(x.arraydtick/g),h<b[0]||h>b[b.length-1]||w.push(a(D(h),{color:x.minorgridcolor,width:x.minorgridwidth})));x.startline&&k.push(a(j(0),{color:x.startlinecolor,width:x.startlinewidth})),x.endline&&k.push(a(j(b.length-1),{color:x.endlinecolor,width:x.endlinewidth}))}else{for(s=5e-15,u=[Math.floor((b[b.length-1]-x.tick0)/x.dtick*(1+s)),Math.ceil((b[0]-x.tick0)/x.dtick/(1+s))].sort((function(e,t){return e-t})),c=u[0],f=u[1],p=c;p<=f;p++)d=x.tick0+x.dtick*p,_.push(a(D(d),{color:x.gridcolor,width:x.gridwidth}));for(p=c-1;p<f+1;p++)for(d=x.tick0+x.dtick*p,o=0;o<x.minorgridcount;o++)h=d+x.dtick*(o+1)/(x.minorgridcount+1),h<b[0]||h>b[b.length-1]||w.push(a(D(h),{color:x.minorgridcolor,width:x.minorgridwidth}));x.startline&&k.push(a(D(b[0]),{color:x.startlinecolor,width:x.startlinewidth})),x.endline&&k.push(a(D(b[b.length-1]),{color:x.endlinecolor,width:x.endlinewidth}))}}},{"../../lib/extend":740,"../../plots/cartesian/axes":799}],942:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../lib/extend").extendFlat;t.exports=function(e,t){var n,o,i,l,s,u=t._labels=[],c=t._gridlines;for(n=0;n<c.length;n++)s=c[n],-1!==["start","both"].indexOf(t.showticklabels)&&(o=r.tickText(t,s.value),a(o,{prefix:i,suffix:l,endAnchor:!0,xy:s.xy(0),dxy:s.dxy(0,0),axis:s.axis,length:s.crossAxis.length,font:s.axis.tickfont,isFirst:0===n,isLast:n===c.length-1}),u.push(o)),-1!==["end","both"].indexOf(t.showticklabels)&&(o=r.tickText(t,s.value),a(o,{endAnchor:!1,xy:s.xy(s.crossLength-1),dxy:s.dxy(s.crossLength-2,1),axis:s.axis,length:s.crossAxis.length,font:s.axis.tickfont,isFirst:0===n,isLast:n===c.length-1}),u.push(o))}},{"../../lib/extend":740,"../../plots/cartesian/axes":799}],943:[function(e,t,n){"use strict";var r=.5;t.exports=function(e,t,n,a){var o=e[0]-t[0],i=e[1]-t[1],l=n[0]-t[0],s=n[1]-t[1],u=Math.pow(o*o+i*i,r/2),c=Math.pow(l*l+s*s,r/2),f=(c*c*o-u*u*l)*a,p=(c*c*i-u*u*s)*a,d=c*(u+c)*3,h=u*(u+c)*3;return[[t[0]+(d&&f/d),t[1]+(d&&p/d)],[t[0]-(h&&f/h),t[1]-(h&&p/h)]]}},{}],944:[function(e,t,n){"use strict";var r=e("../../lib").isArrayOrTypedArray;t.exports=function(e,t,n){var a,o,i,l,s,u,c,f=[],p=r(e)?e.length:e,d=r(t)?t.length:t,h=r(e)?e:null,v=r(t)?t:null;h&&(i=(h.length-1)/(h[h.length-1]-h[0])/(p-1)),v&&(l=(v.length-1)/(v[v.length-1]-v[0])/(d-1));var m=1/0,y=-1/0;for(o=0;o<d;o++)for(f[o]=[],u=v?(v[o]-v[0])*l:o/(d-1),a=0;a<p;a++)s=h?(h[a]-h[0])*i:a/(p-1),c=s-u*n,m=Math.min(c,m),y=Math.max(c,y),f[o][a]=c;var g=1/(y-m),b=-m*g;for(o=0;o<d;o++)for(a=0;a<p;a++)f[o][a]=g*f[o][a]+b;return f}},{"../../lib":750}],945:[function(e,t,n){"use strict";var r=e("./catmull_rom"),a=e("../../lib").ensureArray;function o(e,t,n){var r=-.5*n[0]+1.5*t[0],a=-.5*n[1]+1.5*t[1];return[(2*r+e[0])/3,(2*a+e[1])/3]}t.exports=function(e,t,n,i,l,s){var u,c,f,p,d,h,v,m,y,g,b=n[0].length,x=n.length,_=l?3*b-2:b,w=s?3*x-2:x;for(e=a(e,w),t=a(t,w),f=0;f<w;f++)e[f]=a(e[f],_),t[f]=a(t[f],_);for(c=0,p=0;c<x;c++,p+=s?3:1)for(d=e[p],h=t[p],v=n[c],m=i[c],u=0,f=0;u<b;u++,f+=l?3:1)d[f]=v[u],h[f]=m[u];if(l)for(c=0,p=0;c<x;c++,p+=s?3:1){for(u=1,f=3;u<b-1;u++,f+=3)y=r([n[c][u-1],i[c][u-1]],[n[c][u],i[c][u]],[n[c][u+1],i[c][u+1]],l),e[p][f-1]=y[0][0],t[p][f-1]=y[0][1],e[p][f+1]=y[1][0],t[p][f+1]=y[1][1];g=o([e[p][0],t[p][0]],[e[p][2],t[p][2]],[e[p][3],t[p][3]]),e[p][1]=g[0],t[p][1]=g[1],g=o([e[p][_-1],t[p][_-1]],[e[p][_-3],t[p][_-3]],[e[p][_-4],t[p][_-4]]),e[p][_-2]=g[0],t[p][_-2]=g[1]}if(s)for(f=0;f<_;f++){for(p=3;p<w-3;p+=3)y=r([e[p-3][f],t[p-3][f]],[e[p][f],t[p][f]],[e[p+3][f],t[p+3][f]],s),e[p-1][f]=y[0][0],t[p-1][f]=y[0][1],e[p+1][f]=y[1][0],t[p+1][f]=y[1][1];g=o([e[0][f],t[0][f]],[e[2][f],t[2][f]],[e[3][f],t[3][f]]),e[1][f]=g[0],t[1][f]=g[1],g=o([e[w-1][f],t[w-1][f]],[e[w-3][f],t[w-3][f]],[e[w-4][f],t[w-4][f]]),e[w-2][f]=g[0],t[w-2][f]=g[1]}if(l&&s)for(p=1;p<w;p+=(p+1)%3===0?2:1){for(f=3;f<_-3;f+=3)y=r([e[p][f-3],t[p][f-3]],[e[p][f],t[p][f]],[e[p][f+3],t[p][f+3]],l),e[p][f-1]=.5*(e[p][f-1]+y[0][0]),t[p][f-1]=.5*(t[p][f-1]+y[0][1]),e[p][f+1]=.5*(e[p][f+1]+y[1][0]),t[p][f+1]=.5*(t[p][f+1]+y[1][1]);g=o([e[p][0],t[p][0]],[e[p][2],t[p][2]],[e[p][3],t[p][3]]),e[p][1]=.5*(e[p][1]+g[0]),t[p][1]=.5*(t[p][1]+g[1]),g=o([e[p][_-1],t[p][_-1]],[e[p][_-3],t[p][_-3]],[e[p][_-4],t[p][_-4]]),e[p][_-2]=.5*(e[p][_-2]+g[0]),t[p][_-2]=.5*(t[p][_-2]+g[1])}return[e,t]}},{"../../lib":750,"./catmull_rom":943}],946:[function(e,t,n){"use strict";t.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],947:[function(e,t,n){"use strict";t.exports=function(e,t,n){return t&&n?function(t,n,r,a,o){var i,l,s,u,c,f;t||(t=[]),n*=3,r*=3;var p=a*a,d=1-a,h=d*d,v=d*a*2,m=-3*h,y=3*(h-v),g=3*(v-p),b=3*p,x=o*o,_=x*o,w=1-o,k=w*w,T=k*w;for(f=0;f<e.length;f++)c=e[f],i=m*c[r][n]+y*c[r][n+1]+g*c[r][n+2]+b*c[r][n+3],l=m*c[r+1][n]+y*c[r+1][n+1]+g*c[r+1][n+2]+b*c[r+1][n+3],s=m*c[r+2][n]+y*c[r+2][n+1]+g*c[r+2][n+2]+b*c[r+2][n+3],u=m*c[r+3][n]+y*c[r+3][n+1]+g*c[r+3][n+2]+b*c[r+3][n+3],t[f]=T*i+3*(k*o*l+w*x*s)+_*u;return t}:t?function(t,n,r,a,o){var i,l,s,u;t||(t=[]),n*=3;var c=a*a,f=1-a,p=f*f,d=f*a*2,h=-3*p,v=3*(p-d),m=3*(d-c),y=3*c,g=1-o;for(s=0;s<e.length;s++)u=e[s],i=h*u[r][n]+v*u[r][n+1]+m*u[r][n+2]+y*u[r][n+3],l=h*u[r+1][n]+v*u[r+1][n+1]+m*u[r+1][n+2]+y*u[r+1][n+3],t[s]=g*i+o*l;return t}:n?function(t,n,r,a,o){var i,l,s,u,c,f;t||(t=[]),r*=3;var p=o*o,d=p*o,h=1-o,v=h*h,m=v*h;for(c=0;c<e.length;c++)f=e[c],i=f[r][n+1]-f[r][n],l=f[r+1][n+1]-f[r+1][n],s=f[r+2][n+1]-f[r+2][n],u=f[r+3][n+1]-f[r+3][n],t[c]=m*i+3*(v*o*l+h*p*s)+d*u;return t}:function(t,n,r,a,o){var i,l,s,u;t||(t=[]);var c=1-o;for(s=0;s<e.length;s++)u=e[s],i=u[r][n+1]-u[r][n],l=u[r+1][n+1]-u[r+1][n],t[s]=c*i+o*l;return t}}},{}],948:[function(e,t,n){"use strict";t.exports=function(e,t,n){return t&&n?function(t,n,r,a,o){var i,l,s,u,c,f;t||(t=[]),n*=3,r*=3;var p=a*a,d=p*a,h=1-a,v=h*h,m=v*h,y=o*o,g=1-o,b=g*g,x=g*o*2,_=-3*b,w=3*(b-x),k=3*(x-y),T=3*y;for(f=0;f<e.length;f++)c=e[f],i=_*c[r][n]+w*c[r+1][n]+k*c[r+2][n]+T*c[r+3][n],l=_*c[r][n+1]+w*c[r+1][n+1]+k*c[r+2][n+1]+T*c[r+3][n+1],s=_*c[r][n+2]+w*c[r+1][n+2]+k*c[r+2][n+2]+T*c[r+3][n+2],u=_*c[r][n+3]+w*c[r+1][n+3]+k*c[r+2][n+3]+T*c[r+3][n+3],t[f]=m*i+3*(v*a*l+h*p*s)+d*u;return t}:t?function(t,n,r,a,o){var i,l,s,u,c,f;t||(t=[]),n*=3;var p=o*o,d=p*o,h=1-o,v=h*h,m=v*h;for(c=0;c<e.length;c++)f=e[c],i=f[r+1][n]-f[r][n],l=f[r+1][n+1]-f[r][n+1],s=f[r+1][n+2]-f[r][n+2],u=f[r+1][n+3]-f[r][n+3],t[c]=m*i+3*(v*o*l+h*p*s)+d*u;return t}:n?function(t,n,r,a,o){var i,l,s,u;t||(t=[]),r*=3;var c=1-a,f=o*o,p=1-o,d=p*p,h=p*o*2,v=-3*d,m=3*(d-h),y=3*(h-f),g=3*f;for(s=0;s<e.length;s++)u=e[s],i=v*u[r][n]+m*u[r+1][n]+y*u[r+2][n]+g*u[r+3][n],l=v*u[r][n+1]+m*u[r+1][n+1]+y*u[r+2][n+1]+g*u[r+3][n+1],t[s]=c*i+a*l;return t}:function(t,n,r,a,o){var i,l,s,u;t||(t=[]);var c=1-a;for(s=0;s<e.length;s++)u=e[s],i=u[r+1][n]-u[r][n],l=u[r+1][n+1]-u[r][n+1],t[s]=c*i+a*l;return t}}},{}],949:[function(e,t,n){"use strict";t.exports=function(e,t,n,r,a){var o=t-2,i=n-2;return r&&a?function(t,n,r){var a,l,s,u,c,f;t||(t=[]);var p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(Math.floor(r),i)),h=Math.max(0,Math.min(1,n-p)),v=Math.max(0,Math.min(1,r-d));p*=3,d*=3;var m=h*h,y=m*h,g=1-h,b=g*g,x=b*g,_=v*v,w=_*v,k=1-v,T=k*k,E=T*k;for(f=0;f<e.length;f++)c=e[f],a=x*c[d][p]+3*(b*h*c[d][p+1]+g*m*c[d][p+2])+y*c[d][p+3],l=x*c[d+1][p]+3*(b*h*c[d+1][p+1]+g*m*c[d+1][p+2])+y*c[d+1][p+3],s=x*c[d+2][p]+3*(b*h*c[d+2][p+1]+g*m*c[d+2][p+2])+y*c[d+2][p+3],u=x*c[d+3][p]+3*(b*h*c[d+3][p+1]+g*m*c[d+3][p+2])+y*c[d+3][p+3],t[f]=E*a+3*(T*v*l+k*_*s)+w*u;return t}:r?function(t,n,r){t||(t=[]);var a,l,s,u,c,f,p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(Math.floor(r),i)),h=Math.max(0,Math.min(1,n-p)),v=Math.max(0,Math.min(1,r-d));p*=3;var m=h*h,y=m*h,g=1-h,b=g*g,x=b*g,_=1-v;for(c=0;c<e.length;c++)f=e[c],a=_*f[d][p]+v*f[d+1][p],l=_*f[d][p+1]+v*f[d+1][p+1],s=_*f[d][p+2]+v*f[d+1][p+1],u=_*f[d][p+3]+v*f[d+1][p+1],t[c]=x*a+3*(b*h*l+g*m*s)+y*u;return t}:a?function(t,n,r){t||(t=[]);var a,l,s,u,c,f,p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(Math.floor(r),i)),h=Math.max(0,Math.min(1,n-p)),v=Math.max(0,Math.min(1,r-d));d*=3;var m=v*v,y=m*v,g=1-v,b=g*g,x=b*g,_=1-h;for(c=0;c<e.length;c++)f=e[c],a=_*f[d][p]+h*f[d][p+1],l=_*f[d+1][p]+h*f[d+1][p+1],s=_*f[d+2][p]+h*f[d+2][p+1],u=_*f[d+3][p]+h*f[d+3][p+1],t[c]=x*a+3*(b*v*l+g*m*s)+y*u;return t}:function(t,n,r){t||(t=[]);var a,l,s,u,c=Math.max(0,Math.min(Math.floor(n),o)),f=Math.max(0,Math.min(Math.floor(r),i)),p=Math.max(0,Math.min(1,n-c)),d=Math.max(0,Math.min(1,r-f)),h=1-d,v=1-p;for(s=0;s<e.length;s++)u=e[s],a=v*u[f][c]+p*u[f][c+1],l=v*u[f+1][c]+p*u[f+1][c+1],t[s]=h*a+d*l;return t}}},{}],950:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./xy_defaults"),o=e("./ab_defaults"),i=e("./attributes"),l=e("../../components/color/attributes");t.exports=function(e,t,n,s){function u(n,a){return r.coerce(e,t,i,n,a)}t._clipPathId="clip"+t.uid+"carpet";var c=u("color",l.defaultLine);if(r.coerceFont(u,"font"),u("carpet"),o(e,t,s,u,c),t.a&&t.b){t.a.length<3&&(t.aaxis.smoothing=0),t.b.length<3&&(t.baxis.smoothing=0);var f=a(e,t,u);f||(t.visible=!1),t._cheater&&u("cheaterslope")}else t.visible=!1}},{"../../components/color/attributes":614,"../../lib":750,"./ab_defaults":933,"./attributes":935,"./xy_defaults":959}],951:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),plot:e("./plot"),calc:e("./calc"),animatable:!0,isContainer:!0,moduleType:"trace",name:"carpet",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","carpet","carpetAxis","notLegendIsolatable","noMultiCategory","noHover","noSortingByValue"],meta:{}}},{"../../plots/cartesian":812,"./attributes":935,"./calc":939,"./defaults":950,"./plot":956}],952:[function(e,t,n){"use strict";t.exports=function(e,t){for(var n,r=e._fullData.length,a=0;a<r;a++){var o=e._fullData[a];if(o.index!==t.index&&("carpet"===o.type&&(n||(n=o),o.carpet===t.carpet)))return o}return n}},{}],953:[function(e,t,n){"use strict";t.exports=function(e,t,n){if(0===e.length)return"";var r,a=[],o=n?3:1;for(r=0;r<e.length;r+=o)a.push(e[r]+","+t[r]),n&&r<e.length-o&&(a.push("C"),a.push([e[r+1]+","+t[r+1],e[r+2]+","+t[r+2]+" "].join(" ")));return a.join(n?"":"L")}},{}],954:[function(e,t,n){"use strict";var r=e("../../lib").isArrayOrTypedArray;t.exports=function(e,t,n){var a;for(r(e)?e.length>t.length&&(e=e.slice(0,t.length)):e=[],a=0;a<t.length;a++)e[a]=n(t[a]);return e}},{"../../lib":750}],955:[function(e,t,n){"use strict";t.exports=function(e,t,n,r,a,o){var i=a[0]*e.dpdx(t),l=a[1]*e.dpdy(n),s=1,u=1;if(o){var c=Math.sqrt(a[0]*a[0]+a[1]*a[1]),f=Math.sqrt(o[0]*o[0]+o[1]*o[1]),p=(a[0]*o[0]+a[1]*o[1])/c/f;u=Math.max(0,p)}var d=180*Math.atan2(l,i)/Math.PI;return d<-90?(d+=180,s=-s):d>90&&(d-=180,s=-s),{angle:d,flip:s,p:e.c2p(r,t,n),offsetMultplier:u}}},{}],956:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/drawing"),o=e("./map_1d_array"),i=e("./makepath"),l=e("./orient_text"),s=e("../../lib/svg_text_utils"),u=e("../../lib"),c=e("../../constants/alignment");function f(e,t,n,r,a){var l,s,c,f,p=n.select("#"+e._clipPathId);p.size()||(p=n.append("clipPath").classed("carpetclip",!0));var d=u.ensureSingle(p,"path","carpetboundary"),h=t.clipsegments,v=[];for(f=0;f<h.length;f++)l=h[f],s=o([],l.x,r.c2p),c=o([],l.y,a.c2p),v.push(i(s,c,l.bicubic));var m="M"+v.join("L")+"Z";p.attr("id",e._clipPathId),d.attr("d",m)}function p(e,t,n,a,l,s){var u="const-"+l+"-lines",c=n.selectAll("."+u).data(s);c.enter().append("path").classed(u,!0).style("vector-effect","non-scaling-stroke"),c.each((function(n){var a=n,l=a.x,s=a.y,u=o([],l,e.c2p),c=o([],s,t.c2p),f="M"+i(u,c,a.smoothing),p=r.select(this);p.attr("d",f).style("stroke-width",a.width).style("stroke",a.color).style("fill","none")})),c.exit().remove()}function d(e,t,n,o,i,u,c,f){var p=u.selectAll("text."+f).data(c);p.enter().append("text").classed(f,!0);var d=0,h={};return p.each((function(i,u){var c;if("auto"===i.axis.tickangle)c=l(o,t,n,i.xy,i.dxy);else{var f=(i.axis.tickangle+180)*Math.PI/180;c=l(o,t,n,i.xy,[Math.cos(f),Math.sin(f)])}u||(h={angle:c.angle,flip:c.flip});var p=(i.endAnchor?-1:1)*c.flip,v=r.select(this).attr({"text-anchor":p>0?"start":"end","data-notex":1}).call(a.font,i.font).text(i.text).call(s.convertToTspans,e),m=a.bBox(this);v.attr("transform","translate("+c.p[0]+","+c.p[1]+") rotate("+c.angle+")translate("+i.axis.labelpadding*p+","+.3*m.height+")"),d=Math.max(d,m.width+i.axis.labelpadding)})),p.exit().remove(),h.maxExtent=d,h}function h(e,t,n,r,a,o,i,s){var c,f,p,d,h=u.aggNums(Math.min,null,n.a),v=u.aggNums(Math.max,null,n.a),m=u.aggNums(Math.min,null,n.b),g=u.aggNums(Math.max,null,n.b);c=.5*(h+v),f=m,p=n.ab2xy(c,f,!0),d=n.dxyda_rough(c,f),void 0===i.angle&&u.extendFlat(i,l(n,a,o,p,n.dxydb_rough(c,f))),y(e,t,n,r,p,d,n.aaxis,a,o,i,"a-title"),c=h,f=.5*(m+g),p=n.ab2xy(c,f,!0),d=n.dxydb_rough(c,f),void 0===s.angle&&u.extendFlat(s,l(n,a,o,p,n.dxyda_rough(c,f))),y(e,t,n,r,p,d,n.baxis,a,o,s,"b-title")}t.exports=function(e,t,n,a){var o=t.xaxis,i=t.yaxis,l=e._fullLayout,s=l._clips;u.makeTraceGroups(a,n,"trace").each((function(t){var n=r.select(this),a=t[0],l=a.trace,c=l.aaxis,v=l.baxis,m=u.ensureSingle(n,"g","minorlayer"),y=u.ensureSingle(n,"g","majorlayer"),g=u.ensureSingle(n,"g","boundarylayer"),b=u.ensureSingle(n,"g","labellayer");n.style("opacity",l.opacity),p(o,i,y,c,"a",c._gridlines,!0),p(o,i,y,v,"b",v._gridlines,!0),p(o,i,m,c,"a",c._minorgridlines,!0),p(o,i,m,v,"b",v._minorgridlines,!0),p(o,i,g,c,"a-boundary",c._boundarylines),p(o,i,g,v,"b-boundary",v._boundarylines);var x=d(e,o,i,l,a,b,c._labels,"a-label"),_=d(e,o,i,l,a,b,v._labels,"b-label");h(e,b,l,a,o,i,x,_),f(l,a,s,o,i)}))};var v=c.LINE_SPACING,m=(1-c.MID_SHIFT)/v+1;function y(e,t,n,o,i,u,c,f,p,d,h){var y=[];c.title.text&&y.push(c.title.text);var g=t.selectAll("text."+h).data(y),b=d.maxExtent;g.enter().append("text").classed(h,!0),g.each((function(){var t=l(n,f,p,i,u);-1===["start","both"].indexOf(c.showticklabels)&&(b=0);var o=c.title.font.size;b+=o+c.title.offset;var h=d.angle+(d.flip<0?180:0),y=(h-t.angle+450)%360,g=y>90&&y<270,x=r.select(this);x.text(c.title.text).call(s.convertToTspans,e),g&&(b=(-s.lineCount(x)+m)*v*o-b),x.attr("transform","translate("+t.p[0]+","+t.p[1]+") rotate("+t.angle+") translate(0,"+b+")").attr("text-anchor","middle").call(a.font,c.title.font)})),g.exit().remove()}},{"../../components/drawing":637,"../../constants/alignment":717,"../../lib":750,"../../lib/svg_text_utils":774,"./makepath":953,"./map_1d_array":954,"./orient_text":955,d3:169}],957:[function(e,t,n){"use strict";var r=e("./constants"),a=e("../../lib/search").findBin,o=e("./compute_control_points"),i=e("./create_spline_evaluator"),l=e("./create_i_derivative_evaluator"),s=e("./create_j_derivative_evaluator");t.exports=function(e){var t=e._a,n=e._b,u=t.length,c=n.length,f=e.aaxis,p=e.baxis,d=t[0],h=t[u-1],v=n[0],m=n[c-1],y=t[t.length-1]-t[0],g=n[n.length-1]-n[0],b=y*r.RELATIVE_CULL_TOLERANCE,x=g*r.RELATIVE_CULL_TOLERANCE;d-=b,h+=b,v-=x,m+=x,e.isVisible=function(e,t){return e>d&&e<h&&t>v&&t<m},e.isOccluded=function(e,t){return e<d||e>h||t<v||t>m},e.setScale=function(){var t=e._x,n=e._y,r=o(e._xctrl,e._yctrl,t,n,f.smoothing,p.smoothing);e._xctrl=r[0],e._yctrl=r[1],e.evalxy=i([e._xctrl,e._yctrl],u,c,f.smoothing,p.smoothing),e.dxydi=l([e._xctrl,e._yctrl],f.smoothing,p.smoothing),e.dxydj=s([e._xctrl,e._yctrl],f.smoothing,p.smoothing)},e.i2a=function(e){var n=Math.max(0,Math.floor(e[0]),u-2),r=e[0]-n;return(1-r)*t[n]+r*t[n+1]},e.j2b=function(e){var t=Math.max(0,Math.floor(e[1]),u-2),r=e[1]-t;return(1-r)*n[t]+r*n[t+1]},e.ij2ab=function(t){return[e.i2a(t[0]),e.j2b(t[1])]},e.a2i=function(e){var n=Math.max(0,Math.min(a(e,t),u-2)),r=t[n],o=t[n+1];return Math.max(0,Math.min(u-1,n+(e-r)/(o-r)))},e.b2j=function(e){var t=Math.max(0,Math.min(a(e,n),c-2)),r=n[t],o=n[t+1];return Math.max(0,Math.min(c-1,t+(e-r)/(o-r)))},e.ab2ij=function(t){return[e.a2i(t[0]),e.b2j(t[1])]},e.i2c=function(t,n){return e.evalxy([],t,n)},e.ab2xy=function(r,a,o){if(!o&&(r<t[0]||r>t[u-1]|a<n[0]||a>n[c-1]))return[!1,!1];var i=e.a2i(r),l=e.b2j(a),s=e.evalxy([],i,l);if(o){var f,p,d,h,v=0,m=0,y=[];r<t[0]?(f=0,p=0,v=(r-t[0])/(t[1]-t[0])):r>t[u-1]?(f=u-2,p=1,v=(r-t[u-1])/(t[u-1]-t[u-2])):(f=Math.max(0,Math.min(u-2,Math.floor(i))),p=i-f),a<n[0]?(d=0,h=0,m=(a-n[0])/(n[1]-n[0])):a>n[c-1]?(d=c-2,h=1,m=(a-n[c-1])/(n[c-1]-n[c-2])):(d=Math.max(0,Math.min(c-2,Math.floor(l))),h=l-d),v&&(e.dxydi(y,f,d,p,h),s[0]+=y[0]*v,s[1]+=y[1]*v),m&&(e.dxydj(y,f,d,p,h),s[0]+=y[0]*m,s[1]+=y[1]*m)}return s},e.c2p=function(e,t,n){return[t.c2p(e[0]),n.c2p(e[1])]},e.p2x=function(e,t,n){return[t.p2c(e[0]),n.p2c(e[1])]},e.dadi=function(e){var n=Math.max(0,Math.min(t.length-2,e));return t[n+1]-t[n]},e.dbdj=function(e){var t=Math.max(0,Math.min(n.length-2,e));return n[t+1]-n[t]},e.dxyda=function(t,n,r,a){var o=e.dxydi(null,t,n,r,a),i=e.dadi(t,r);return[o[0]/i,o[1]/i]},e.dxydb=function(t,n,r,a){var o=e.dxydj(null,t,n,r,a),i=e.dbdj(n,a);return[o[0]/i,o[1]/i]},e.dxyda_rough=function(t,n,r){var a=y*(r||.1),o=e.ab2xy(t+a,n,!0),i=e.ab2xy(t-a,n,!0);return[.5*(o[0]-i[0])/a,.5*(o[1]-i[1])/a]},e.dxydb_rough=function(t,n,r){var a=g*(r||.1),o=e.ab2xy(t,n+a,!0),i=e.ab2xy(t,n-a,!0);return[.5*(o[0]-i[0])/a,.5*(o[1]-i[1])/a]},e.dpdx=function(e){return e._m},e.dpdy=function(e){return e._m}}},{"../../lib/search":769,"./compute_control_points":945,"./constants":946,"./create_i_derivative_evaluator":947,"./create_j_derivative_evaluator":948,"./create_spline_evaluator":949}],958:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t,n){var a,o,i,l=[],s=[],u=e[0].length,c=e.length;function f(t,n){var r,a=0,o=0;return t>0&&void 0!==(r=e[n][t-1])&&(o++,a+=r),t<u-1&&void 0!==(r=e[n][t+1])&&(o++,a+=r),n>0&&void 0!==(r=e[n-1][t])&&(o++,a+=r),n<c-1&&void 0!==(r=e[n+1][t])&&(o++,a+=r),a/Math.max(1,o)}var p,d,h,v,m,y,g,b,x,_,w,k=0;for(a=0;a<u;a++)for(o=0;o<c;o++)void 0===e[o][a]&&(l.push(a),s.push(o),e[o][a]=f(a,o)),k=Math.max(k,Math.abs(e[o][a]));if(!l.length)return e;var T=1e-5,E=0,O=100,M=0,S=l.length;do{for(E=0,i=0;i<S;i++){a=l[i],o=s[i];var C,A,P,L,D,j,I=0,R=0;0===a?(D=Math.min(u-1,2),P=t[D],L=t[1],C=e[o][D],A=e[o][1],R+=A+(A-C)*(t[0]-L)/(L-P),I++):a===u-1&&(D=Math.max(0,u-3),P=t[D],L=t[u-2],C=e[o][D],A=e[o][u-2],R+=A+(A-C)*(t[u-1]-L)/(L-P),I++),(0===a||a===u-1)&&o>0&&o<c-1&&(p=n[o+1]-n[o],d=n[o]-n[o-1],R+=(d*e[o+1][a]+p*e[o-1][a])/(d+p),I++),0===o?(j=Math.min(c-1,2),P=n[j],L=n[1],C=e[j][a],A=e[1][a],R+=A+(A-C)*(n[0]-L)/(L-P),I++):o===c-1&&(j=Math.max(0,c-3),P=n[j],L=n[c-2],C=e[j][a],A=e[c-2][a],R+=A+(A-C)*(n[c-1]-L)/(L-P),I++),(0===o||o===c-1)&&a>0&&a<u-1&&(p=t[a+1]-t[a],d=t[a]-t[a-1],R+=(d*e[o][a+1]+p*e[o][a-1])/(d+p),I++),I?R/=I:(h=t[a+1]-t[a],v=t[a]-t[a-1],m=n[o+1]-n[o],y=n[o]-n[o-1],g=h*v*(h+v),b=m*y*(m+y),R=(g*(y*e[o+1][a]+m*e[o-1][a])+b*(v*e[o][a+1]+h*e[o][a-1]))/(b*(v+h)+g*(y+m))),x=R-e[o][a],_=x/k,E+=_*_,w=I?0:.85,e[o][a]+=x*(1+w)}E=Math.sqrt(E)}while(M++<O&&E>T);return r.log("Smoother converged to",E,"after",M,"iterations"),e}},{"../../lib":750}],959:[function(e,t,n){"use strict";var r=e("../../lib").isArray1D;t.exports=function(e,t,n){var a=n("x"),o=a&&a.length,i=n("y"),l=i&&i.length;if(!o&&!l)return!1;if(t._cheater=!a,o&&!r(a)||l&&!r(i))t._length=null;else{var s=o?a.length:1/0;l&&(s=Math.min(s,i.length)),t.a&&t.a.length&&(s=Math.min(s,t.a.length)),t.b&&t.b.length&&(s=Math.min(s,t.b.length)),t._length=s}return!0}},{"../../lib":750}],960:[function(e,t,n){"use strict";var r=e("../../plots/template_attributes").hovertemplateAttrs,a=e("../scattergeo/attributes"),o=e("../../components/colorscale/attributes"),i=e("../../plots/attributes"),l=e("../../components/color/attributes").defaultLine,s=e("../../lib/extend").extendFlat,u=a.marker.line;t.exports=s({locations:{valType:"data_array",editType:"calc"},locationmode:a.locationmode,z:{valType:"data_array",editType:"calc"},geojson:s({},a.geojson,{}),featureidkey:a.featureidkey,text:s({},a.text,{}),hovertext:s({},a.hovertext,{}),marker:{line:{color:s({},u.color,{dflt:l}),width:s({},u.width,{dflt:1}),editType:"calc"},opacity:{valType:"number",arrayOk:!0,min:0,max:1,dflt:1,editType:"style"},editType:"calc"},selected:{marker:{opacity:a.selected.marker.opacity,editType:"plot"},editType:"plot"},unselected:{marker:{opacity:a.unselected.marker.opacity,editType:"plot"},editType:"plot"},hoverinfo:s({},i.hoverinfo,{editType:"calc",flags:["location","z","text","name"]}),hovertemplate:r(),showlegend:s({},i.showlegend,{dflt:!1})},o("",{cLetter:"z",editTypeOverride:"calc"}))},{"../../components/color/attributes":614,"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../scattergeo/attributes":1200}],961:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../constants/numerical").BADNUM,o=e("../../components/colorscale/calc"),i=e("../scatter/arrays_to_calcdata"),l=e("../scatter/calc_selection");function s(e){return e&&"string"===typeof e}t.exports=function(e,t){var n,u=t._length,c=new Array(u);n=t.geojson?function(e){return s(e)||r(e)}:s;for(var f=0;f<u;f++){var p=c[f]={},d=t.locations[f],h=t.z[f];n(d)&&r(h)?(p.loc=d,p.z=h):(p.loc=null,p.z=a),p.index=f}return i(c,t),o(e,t,{vals:t.z,containerStr:"",cLetter:"z"}),l(c,t),c}},{"../../components/colorscale/calc":623,"../../constants/numerical":725,"../scatter/arrays_to_calcdata":1157,"../scatter/calc_selection":1160,"fast-isnumeric":241}],962:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/colorscale/defaults"),o=e("./attributes");t.exports=function(e,t,n,i){function l(n,a){return r.coerce(e,t,o,n,a)}var s=l("locations"),u=l("z");if(s&&s.length&&r.isArrayOrTypedArray(u)&&u.length){t._length=Math.min(s.length,u.length);var c,f=l("geojson");("string"===typeof f&&""!==f||r.isPlainObject(f))&&(c="geojson-id");var p=l("locationmode",c);"geojson-id"===p&&l("featureidkey"),l("text"),l("hovertext"),l("hovertemplate");var d=l("marker.line.width");d&&l("marker.line.color"),l("marker.opacity"),a(e,t,i,l,{prefix:"",cLetter:"z"}),r.coerceSelectionMarkerOpacity(t,l)}else t.visible=!1}},{"../../components/colorscale/defaults":625,"../../lib":750,"./attributes":960}],963:[function(e,t,n){"use strict";t.exports=function(e,t,n,r,a){e.location=t.location,e.z=t.z;var o=r[a];return o.fIn&&o.fIn.properties&&(e.properties=o.fIn.properties),e.ct=o.ct,e}},{}],964:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("./attributes"),o=e("../../lib").fillText;function i(e,t,n){if(!t.hovertemplate){var r=n.hi||t.hoverinfo,i=String(n.loc),l="all"===r?a.hoverinfo.flags:r.split("+"),s=-1!==l.indexOf("name"),u=-1!==l.indexOf("location"),c=-1!==l.indexOf("z"),f=-1!==l.indexOf("text"),p=!s&&u,d=[];p?e.nameOverride=i:(s&&(e.nameOverride=t.name),u&&d.push(i)),c&&d.push(e.zLabel),f&&o(n,t,d),e.extraText=d.join("<br>")}}t.exports=function(e,t,n){var a,o,l,s,u=e.cd,c=u[0].trace,f=e.subplot;for(o=0;o<u.length;o++)if(a=u[o],s=!1,a._polygons){for(l=0;l<a._polygons.length;l++)a._polygons[l].contains([t,n])&&(s=!s),a._polygons[l].contains([t+360,n])&&(s=!s);if(s)break}if(s&&a)return e.x0=e.x1=e.xa.c2p(a.ct),e.y0=e.y1=e.ya.c2p(a.ct),e.index=a.index,e.location=a.loc,e.z=a.z,e.zLabel=r.tickText(f.mockAxis,f.mockAxis.c2l(a.z),"hover").text,e.hovertemplate=a.hovertemplate,i(e,c,a,f.mockAxis),[e]}},{"../../lib":750,"../../plots/cartesian/axes":799,"./attributes":960}],965:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../heatmap/colorbar"),calc:e("./calc"),calcGeoJSON:e("./plot").calcGeoJSON,plot:e("./plot").plot,style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover"),eventData:e("./event_data"),selectPoints:e("./select"),moduleType:"trace",name:"choropleth",basePlotModule:e("../../plots/geo"),categories:["geo","noOpacity","showLegend"],meta:{}}},{"../../plots/geo":831,"../heatmap/colorbar":1039,"./attributes":960,"./calc":961,"./defaults":962,"./event_data":963,"./hover":964,"./plot":966,"./select":967,"./style":968}],966:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../../lib/geo_location_utils"),i=e("../../lib/topojson_utils").getTopojsonFeatures,l=e("../../plots/cartesian/autorange").findExtremes,s=e("./style").style;function u(e,t,n){var o=t.layers.backplot.select(".choroplethlayer");a.makeTraceGroups(o,n,"trace choropleth").each((function(t){var n=r.select(this),o=n.selectAll("path.choroplethlocation").data(a.identity);o.enter().append("path").classed("choroplethlocation",!0),o.exit().remove(),s(e,t)}))}function c(e,t){for(var n=e[0].trace,r=t[n.geo],a=r._subplot,s=n.locationmode,u=n._length,c="geojson-id"===s?o.extractTraceFeature(e):i(n,a.topojson),f=[],p=[],d=0;d<u;d++){var h=e[d],v="geojson-id"===s?h.fOut:o.locationToFeature(s,h.loc,c);if(v){h.geojson=v,h.ct=v.properties.ct,h._polygons=o.feature2polygons(v);var m=o.computeBbox(v);f.push(m[0],m[2]),p.push(m[1],m[3])}else h.geojson=null}if("geojson"===r.fitbounds&&"geojson-id"===s){var y=o.computeBbox(o.getTraceGeojson(n));f=[y[0],y[2]],p=[y[1],y[3]]}var g={padded:!0};n._extremes.lon=l(r.lonaxis._ax,f,g),n._extremes.lat=l(r.lataxis._ax,p,g)}t.exports={calcGeoJSON:c,plot:u}},{"../../lib":750,"../../lib/geo_location_utils":743,"../../lib/topojson_utils":777,"../../plots/cartesian/autorange":798,"./style":968,d3:169}],967:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r,a,o,i,l=e.cd,s=e.xaxis,u=e.yaxis,c=[];if(!1===t)for(n=0;n<l.length;n++)l[n].selected=0;else for(n=0;n<l.length;n++)r=l[n],a=r.ct,a&&(o=s.c2p(a),i=u.c2p(a),t.contains([o,i],null,n,e)?(c.push({pointNumber:n,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return c}},{}],968:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/color"),o=e("../../components/drawing"),i=e("../../components/colorscale");function l(e,t){t&&s(e,t)}function s(e,t){var n=t[0].trace,l=t[0].node3,s=l.selectAll(".choroplethlocation"),u=n.marker||{},c=u.line||{},f=i.makeColorScaleFuncFromTrace(n);s.each((function(e){r.select(this).attr("fill",f(e.z)).call(a.stroke,e.mlc||c.color).call(o.dashLine,"",e.mlw||c.width||0).style("opacity",u.opacity)})),o.selectedPointStyle(s,n,e)}function u(e,t){var n=t[0].node3,r=t[0].trace;r.selectedpoints?o.selectedPointStyle(n.selectAll(".choroplethlocation"),r,e):s(e,t)}t.exports={style:l,styleOnSelect:u}},{"../../components/color":615,"../../components/colorscale":627,"../../components/drawing":637,d3:169}],969:[function(e,t,n){"use strict";var r=e("../choropleth/attributes"),a=e("../../components/colorscale/attributes"),o=e("../../plots/template_attributes").hovertemplateAttrs,i=e("../../plots/attributes"),l=e("../../lib/extend").extendFlat;t.exports=l({locations:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},geojson:{valType:"any",editType:"calc"},featureidkey:l({},r.featureidkey,{}),below:{valType:"string",editType:"plot"},text:r.text,hovertext:r.hovertext,marker:{line:{color:l({},r.marker.line.color,{editType:"plot"}),width:l({},r.marker.line.width,{editType:"plot"}),editType:"calc"},opacity:l({},r.marker.opacity,{editType:"plot"}),editType:"calc"},selected:{marker:{opacity:l({},r.selected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},unselected:{marker:{opacity:l({},r.unselected.marker.opacity,{editType:"plot"}),editType:"plot"},editType:"plot"},hoverinfo:r.hoverinfo,hovertemplate:o({},{keys:["properties"]}),showlegend:l({},i.showlegend,{dflt:!1})},a("",{cLetter:"z",editTypeOverride:"calc"}))},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../choropleth/attributes":960}],970:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("../../components/colorscale"),i=e("../../components/drawing"),l=e("../../lib/geojson_utils").makeBlank,s=e("../../lib/geo_location_utils");function u(e){var t=e[0].trace,n=!0===t.visible&&0!==t._length,i={layout:{visibility:"none"},paint:{}},u={layout:{visibility:"none"},paint:{}},f=t._opts={fill:i,line:u,geojson:l()};if(!n)return f;var p=s.extractTraceFeature(e);if(!p)return f;var d,h,v,m=o.makeColorScaleFuncFromTrace(t),y=t.marker,g=y.line||{};a.isArrayOrTypedArray(y.opacity)&&(d=function(e){var t=e.mo;return r(t)?+a.constrain(t,0,1):0}),a.isArrayOrTypedArray(g.color)&&(h=function(e){return e.mlc}),a.isArrayOrTypedArray(g.width)&&(v=function(e){return e.mlw});for(var b=0;b<e.length;b++){var x=e[b],_=x.fOut;if(_){var w=_.properties;w.fc=m(x.z),d&&(w.mo=d(x)),h&&(w.mlc=h(x)),v&&(w.mlw=v(x)),x.ct=w.ct,x._polygons=s.feature2polygons(_)}}var k=d?{type:"identity",property:"mo"}:y.opacity;return a.extendFlat(i.paint,{"fill-color":{type:"identity",property:"fc"},"fill-opacity":k}),a.extendFlat(u.paint,{"line-color":h?{type:"identity",property:"mlc"}:g.color,"line-width":v?{type:"identity",property:"mlw"}:g.width,"line-opacity":k}),i.layout.visibility="visible",u.layout.visibility="visible",f.geojson={type:"FeatureCollection",features:p},c(e),f}function c(e){var t,n=e[0].trace,r=n._opts;if(n.selectedpoints){for(var o=i.makeSelectedPointStyleFns(n),l=0;l<e.length;l++){var s=e[l];s.fOut&&(s.fOut.properties.mo2=o.selectedOpacityFn(s))}t={type:"identity",property:"mo2"}}else t=a.isArrayOrTypedArray(n.marker.opacity)?{type:"identity",property:"mo"}:n.marker.opacity;return a.extendFlat(r.fill.paint,{"fill-opacity":t}),a.extendFlat(r.line.paint,{"line-opacity":t}),r}t.exports={convert:u,convertOnSelect:c}},{"../../components/colorscale":627,"../../components/drawing":637,"../../lib":750,"../../lib/geo_location_utils":743,"../../lib/geojson_utils":744,"fast-isnumeric":241}],971:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/colorscale/defaults"),o=e("./attributes");t.exports=function(e,t,n,i){function l(n,a){return r.coerce(e,t,o,n,a)}var s=l("locations"),u=l("z"),c=l("geojson");if(r.isArrayOrTypedArray(s)&&s.length&&r.isArrayOrTypedArray(u)&&u.length&&("string"===typeof c&&""!==c||r.isPlainObject(c))){l("featureidkey"),t._length=Math.min(s.length,u.length),l("below"),l("text"),l("hovertext"),l("hovertemplate");var f=l("marker.line.width");f&&l("marker.line.color"),l("marker.opacity"),a(e,t,i,l,{prefix:"",cLetter:"z"}),r.coerceSelectionMarkerOpacity(t,l)}else t.visible=!1}},{"../../components/colorscale/defaults":625,"../../lib":750,"./attributes":969}],972:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../heatmap/colorbar"),calc:e("../choropleth/calc"),plot:e("./plot"),hoverPoints:e("../choropleth/hover"),eventData:e("../choropleth/event_data"),selectPoints:e("../choropleth/select"),styleOnSelect:function(e,t){if(t){var n=t[0].trace;n._glTrace.updateOnSelect(t)}},getBelow:function(e,t){for(var n=t.getMapLayers(),r=n.length-2;r>=0;r--){var a=n[r].id;if("string"===typeof a&&0===a.indexOf("water"))for(var o=r+1;o<n.length;o++)if(a=n[o].id,"string"===typeof a&&-1===a.indexOf("plotly-"))return a}},moduleType:"trace",name:"choroplethmapbox",basePlotModule:e("../../plots/mapbox"),categories:["mapbox","gl","noOpacity","showLegend"],meta:{hr_name:"choropleth_mapbox"}}},{"../../plots/mapbox":856,"../choropleth/calc":961,"../choropleth/event_data":963,"../choropleth/hover":964,"../choropleth/select":967,"../heatmap/colorbar":1039,"./attributes":969,"./defaults":971,"./plot":973}],973:[function(e,t,n){"use strict";var r=e("./convert").convert,a=e("./convert").convertOnSelect,o=e("../../plots/mapbox/constants").traceLayerPrefix;function i(e,t){this.type="choroplethmapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["fill",o+t+"-fill"],["line",o+t+"-line"]],this.below=null}var l=i.prototype;l.update=function(e){this._update(r(e))},l.updateOnSelect=function(e){this._update(a(e))},l._update=function(e){var t=this.subplot,n=this.layerList,r=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(e.geojson),r!==this.below&&(this._removeLayers(),this._addLayers(e,r),this.below=r);for(var a=0;a<n.length;a++){var o=n[a],i=o[0],l=o[1],s=e[i];t.setOptions(l,"setLayoutProperty",s.layout),"visible"===s.layout.visibility&&t.setOptions(l,"setPaintProperty",s.paint)}},l._addLayers=function(e,t){for(var n=this.subplot,r=this.layerList,a=this.sourceId,o=0;o<r.length;o++){var i=r[o],l=i[0],s=e[l];n.addLayer({type:l,id:i[1],source:a,layout:s.layout,paint:s.paint},t)}},l._removeLayers=function(){for(var e=this.subplot.map,t=this.layerList,n=t.length-1;n>=0;n--)e.removeLayer(t[n][1])},l.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},t.exports=function(e,t){var n=t[0].trace,a=new i(e,n.uid),o=a.sourceId,l=r(t),s=a.below=e.belowLookup["trace-"+n.uid];return e.map.addSource(o,{type:"geojson",data:l.geojson}),a._addLayers(l,s),t[0].trace._glTrace=a,a}},{"../../plots/mapbox/constants":854,"./convert":970}],974:[function(e,t,n){"use strict";var r=e("../../components/colorscale/attributes"),a=e("../../plots/template_attributes").hovertemplateAttrs,o=e("../mesh3d/attributes"),i=e("../../plots/attributes"),l=e("../../lib/extend").extendFlat,s={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},sizemode:{valType:"enumerated",values:["scaled","absolute"],editType:"calc",dflt:"scaled"},sizeref:{valType:"number",editType:"calc",min:0},anchor:{valType:"enumerated",editType:"calc",values:["tip","tail","cm","center"],dflt:"cm"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:a({editType:"calc"},{keys:["norm"]}),showlegend:l({},i.showlegend,{dflt:!1})};l(s,r("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var u=["opacity","lightposition","lighting"];u.forEach((function(e){s[e]=o[e]})),s.hoverinfo=l({},i.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","text","name"],dflt:"x+y+z+norm+text+name"}),s.transforms=void 0,t.exports=s},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../mesh3d/attributes":1099}],975:[function(e,t,n){"use strict";var r=e("../../components/colorscale/calc");t.exports=function(e,t){for(var n=t.u,a=t.v,o=t.w,i=Math.min(t.x.length,t.y.length,t.z.length,n.length,a.length,o.length),l=-1/0,s=1/0,u=0;u<i;u++){var c=n[u],f=a[u],p=o[u],d=Math.sqrt(c*c+f*f+p*p);l=Math.max(l,d),s=Math.min(s,d)}t._len=i,t._normMax=l,r(e,t,{vals:[s,l],containerStr:"",cLetter:"c"})}},{"../../components/colorscale/calc":623}],976:[function(e,t,n){"use strict";var r=e("gl-cone3d"),a=e("gl-cone3d").createConeMesh,o=e("../../lib").simpleMap,i=e("../../lib/gl_format_color").parseColorScale,l=e("../../components/colorscale").extractOpts,s=e("../../plots/gl3d/zip3");function u(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var c=u.prototype;c.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index,n=this.data.x[t],r=this.data.y[t],a=this.data.z[t],o=this.data.u[t],i=this.data.v[t],l=this.data.w[t];e.traceCoordinate=[n,r,a,o,i,l,Math.sqrt(o*o+i*i+l*l)];var s=this.data.hovertext||this.data.text;return Array.isArray(s)&&void 0!==s[t]?e.textLabel=s[t]:s&&(e.textLabel=s),!0}};var f={xaxis:0,yaxis:1,zaxis:2},p={tip:1,tail:0,cm:.25,center:.5},d={tip:1,tail:1,cm:.75,center:.5};function h(e,t){var n=e.fullSceneLayout,a=e.dataScale,u={};function c(e,t){var r=n[t],i=a[f[t]];return o(e,(function(e){return r.d2l(e)*i}))}u.vectors=s(c(t.u,"xaxis"),c(t.v,"yaxis"),c(t.w,"zaxis"),t._len),u.positions=s(c(t.x,"xaxis"),c(t.y,"yaxis"),c(t.z,"zaxis"),t._len);var h=l(t);u.colormap=i(t),u.vertexIntensityBounds=[h.min/t._normMax,h.max/t._normMax],u.coneOffset=p[t.anchor],"scaled"===t.sizemode?u.coneSize=t.sizeref||.5:u.coneSize=t.sizeref&&t._normMax?t.sizeref/t._normMax:.5;var v=r(u),m=t.lightposition;return v.lightPosition=[m.x,m.y,m.z],v.ambient=t.lighting.ambient,v.diffuse=t.lighting.diffuse,v.specular=t.lighting.specular,v.roughness=t.lighting.roughness,v.fresnel=t.lighting.fresnel,v.opacity=t.opacity,t._pad=d[t.anchor]*v.vectorScale*v.coneScale*t._normMax,v}function v(e,t){var n=e.glplot.gl,r=h(e,t),o=a(n,r),i=new u(e,t.uid);return i.mesh=o,i.data=t,o._trace=i,e.glplot.add(o),i}c.update=function(e){this.data=e;var t=h(this.scene,e);this.mesh.update(t)},c.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},t.exports=v},{"../../components/colorscale":627,"../../lib":750,"../../lib/gl_format_color":746,"../../plots/gl3d/zip3":852,"gl-cone3d":259}],977:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/colorscale/defaults"),o=e("./attributes");t.exports=function(e,t,n,i){function l(n,a){return r.coerce(e,t,o,n,a)}var s=l("u"),u=l("v"),c=l("w"),f=l("x"),p=l("y"),d=l("z");s&&s.length&&u&&u.length&&c&&c.length&&f&&f.length&&p&&p.length&&d&&d.length?(l("sizeref"),l("sizemode"),l("anchor"),l("lighting.ambient"),l("lighting.diffuse"),l("lighting.specular"),l("lighting.roughness"),l("lighting.fresnel"),l("lightposition.x"),l("lightposition.y"),l("lightposition.z"),a(e,t,i,l,{prefix:"",cLetter:"c"}),l("text"),l("hovertext"),l("hovertemplate"),t._length=null):t.visible=!1}},{"../../components/colorscale/defaults":625,"../../lib":750,"./attributes":974}],978:[function(e,t,n){"use strict";t.exports={moduleType:"trace",name:"cone",basePlotModule:e("../../plots/gl3d"),categories:["gl3d","showLegend"],attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:{min:"cmin",max:"cmax"},calc:e("./calc"),plot:e("./convert"),eventData:function(e,t){return e.norm=t.traceCoordinate[6],e},meta:{}}},{"../../plots/gl3d":841,"./attributes":974,"./calc":975,"./convert":976,"./defaults":977}],979:[function(e,t,n){"use strict";var r=e("../heatmap/attributes"),a=e("../scatter/attributes"),o=e("../../components/colorscale/attributes"),i=e("../../components/drawing/attributes").dash,l=e("../../plots/font_attributes"),s=e("../../lib/extend").extendFlat,u=e("../../constants/filter_ops"),c=u.COMPARISON_OPS2,f=u.INTERVAL_OPS,p=(e("../../constants/docs").FORMAT_LINK,a.line);t.exports=s({z:r.z,x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,xperiod:r.xperiod,yperiod:r.yperiod,xperiod0:a.xperiod0,yperiod0:a.yperiod0,xperiodalignment:r.xperiodalignment,yperiodalignment:r.yperiodalignment,text:r.text,hovertext:r.hovertext,transpose:r.transpose,xtype:r.xtype,ytype:r.ytype,zhoverformat:r.zhoverformat,hovertemplate:r.hovertemplate,hoverongaps:r.hoverongaps,connectgaps:s({},r.connectgaps,{}),fillcolor:{valType:"color",editType:"calc"},autocontour:{valType:"boolean",dflt:!0,editType:"calc",impliedEdits:{"contours.start":void 0,"contours.end":void 0,"contours.size":void 0}},ncontours:{valType:"integer",dflt:15,min:1,editType:"calc"},contours:{type:{valType:"enumerated",values:["levels","constraint"],dflt:"levels",editType:"calc"},start:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},end:{valType:"number",dflt:null,editType:"plot",impliedEdits:{"^autocontour":!1}},size:{valType:"number",dflt:null,min:0,editType:"plot",impliedEdits:{"^autocontour":!1}},coloring:{valType:"enumerated",values:["fill","heatmap","lines","none"],dflt:"fill",editType:"calc"},showlines:{valType:"boolean",dflt:!0,editType:"plot"},showlabels:{valType:"boolean",dflt:!1,editType:"plot"},labelfont:l({editType:"plot",colorEditType:"style"}),labelformat:{valType:"string",dflt:"",editType:"plot"},operation:{valType:"enumerated",values:[].concat(c).concat(f),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},editType:"calc",impliedEdits:{autocontour:!1}},line:{color:s({},p.color,{editType:"style+colorbars"}),width:{valType:"number",min:0,editType:"style+colorbars"},dash:i,smoothing:s({},p.smoothing,{}),editType:"plot"}},o("",{cLetter:"z",autoColorDflt:!1,editTypeOverride:"calc"}))},{"../../components/colorscale/attributes":622,"../../components/drawing/attributes":636,"../../constants/docs":720,"../../constants/filter_ops":721,"../../lib/extend":740,"../../plots/font_attributes":827,"../heatmap/attributes":1036,"../scatter/attributes":1158}],980:[function(e,t,n){"use strict";var r=e("../../components/colorscale"),a=e("../heatmap/calc"),o=e("./set_contours"),i=e("./end_plus");t.exports=function(e,t){var n=a(e,t),l=n[0].z;o(t,l);var s,u=t.contours,c=r.extractOpts(t);if("heatmap"===u.coloring&&c.auto&&!1===t.autocontour){var f=u.start,p=i(u),d=u.size||1,h=Math.floor((p-f)/d)+1;isFinite(d)||(d=1,h=1);var v=f-d/2,m=v+h*d;s=[v,m]}else s=l;return r.calc(e,t,{vals:s,cLetter:"z"}),n}},{"../../components/colorscale":627,"../heatmap/calc":1037,"./end_plus":990,"./set_contours":998}],981:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r=e[0],a=r.z;switch(t.type){case"levels":var o=Math.min(a[0][0],a[0][1]);for(n=0;n<e.length;n++){var i=e[n];i.prefixBoundary=!i.edgepaths.length&&(o>i.level||i.starts.length&&o===i.level)}break;case"constraint":if(r.prefixBoundary=!1,r.edgepaths.length)return;var l=r.x.length,s=r.y.length,u=-1/0,c=1/0;for(n=0;n<s;n++)c=Math.min(c,a[n][0]),c=Math.min(c,a[n][l-1]),u=Math.max(u,a[n][0]),u=Math.max(u,a[n][l-1]);for(n=1;n<l-1;n++)c=Math.min(c,a[0][n]),c=Math.min(c,a[s-1][n]),u=Math.max(u,a[0][n]),u=Math.max(u,a[s-1][n]);var f,p,d=t.value;switch(t._operation){case">":d>u&&(r.prefixBoundary=!0);break;case"<":(d<c||r.starts.length&&d===c)&&(r.prefixBoundary=!0);break;case"[]":f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1]),(p<c||f>u||r.starts.length&&p===c)&&(r.prefixBoundary=!0);break;case"][":f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1]),f<c&&p>u&&(r.prefixBoundary=!0);break}break}}},{}],982:[function(e,t,n){"use strict";var r=e("../../components/colorscale"),a=e("./make_color_map"),o=e("./end_plus");function i(e,t,n){var i=t.contours,l=t.line,s=i.size||1,u=i.coloring,c=a(t,{isColorbar:!0});if("heatmap"===u){var f=r.extractOpts(t);n._fillgradient=f.reversescale?r.flipScale(f.colorscale):f.colorscale,n._zrange=[f.min,f.max]}else"fill"===u&&(n._fillcolor=c);n._line={color:"lines"===u?c:l.color,width:!1!==i.showlines?l.width:0,dash:l.dash},n._levels={start:i.start,end:o(i),size:s}}t.exports={min:"zmin",max:"zmax",calc:i}},{"../../components/colorscale":627,"./end_plus":990,"./make_color_map":995}],983:[function(e,t,n){"use strict";t.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],984:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("./label_defaults"),o=e("../../components/color"),i=o.addOpacity,l=o.opacity,s=e("../../constants/filter_ops"),u=s.CONSTRAINT_REDUCTION,c=s.COMPARISON_OPS2;function f(e,t){var n;-1===c.indexOf(t.operation)?(e("contours.value",[0,1]),Array.isArray(t.value)?t.value.length>2?t.value=t.value.slice(2):0===t.length?t.value=[0,1]:t.length<2?(n=parseFloat(t.value[0]),t.value=[n,n+1]):t.value=[parseFloat(t.value[0]),parseFloat(t.value[1])]:r(t.value)&&(n=parseFloat(t.value),t.value=[n,n+1])):(e("contours.value",0),r(t.value)||(Array.isArray(t.value)?t.value=parseFloat(t.value[0]):t.value=0))}t.exports=function(e,t,n,r,o,s){var c,p,d,h=t.contours,v=n("contours.operation");if(h._operation=u[v],f(n,h),"="===v?c=h.showlines=!0:(c=n("contours.showlines"),d=n("fillcolor",i((e.line||{}).color||o,.5))),c){var m=d&&l(d)?i(t.fillcolor,1):o;p=n("line.color",m),n("line.width",2),n("line.dash")}n("line.smoothing"),a(n,r,p,s)}},{"../../components/color":615,"../../constants/filter_ops":721,"./label_defaults":994,"fast-isnumeric":241}],985:[function(e,t,n){"use strict";var r=e("../../constants/filter_ops"),a=e("fast-isnumeric");function o(e,t){var n,o=Array.isArray(t);function i(e){return a(e)?+e:null}return-1!==r.COMPARISON_OPS2.indexOf(e)?n=i(o?t[0]:t):-1!==r.INTERVAL_OPS.indexOf(e)?n=o?[i(t[0]),i(t[1])]:[i(t),i(t)]:-1!==r.SET_OPS.indexOf(e)&&(n=o?t.map(i):[i(t)]),n}function i(e){return function(t){t=o(e,t);var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return{start:n,end:r,size:r-n}}}function l(e){return function(t){return t=o(e,t),{start:t,end:1/0,size:1/0}}}t.exports={"[]":i("[]"),"][":i("]["),">":l(">"),"<":l("<"),"=":l("=")}},{"../../constants/filter_ops":721,"fast-isnumeric":241}],986:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var a,o=r("contours.start"),i=r("contours.end"),l=!1===o||!1===i,s=n("contours.size");a=l?t.autocontour=!0:n("autocontour",!1),!a&&s||n("ncontours")}},{}],987:[function(e,t,n){"use strict";var r=e("../../lib");function a(e){return r.extendFlat({},e,{edgepaths:r.extendDeep([],e.edgepaths),paths:r.extendDeep([],e.paths),starts:r.extendDeep([],e.starts)})}t.exports=function(e,t){var n,o,i,l=function(e){return e.reverse()},s=function(e){return e};switch(t){case"=":case"<":return e;case">":for(1!==e.length&&r.warn("Contour data invalid for the specified inequality operation."),o=e[0],n=0;n<o.edgepaths.length;n++)o.edgepaths[n]=l(o.edgepaths[n]);for(n=0;n<o.paths.length;n++)o.paths[n]=l(o.paths[n]);for(n=0;n<o.starts.length;n++)o.starts[n]=l(o.starts[n]);return e;case"][":var u=l;l=s,s=u;case"[]":for(2!==e.length&&r.warn("Contour data invalid for the specified inequality range operation."),o=a(e[0]),i=a(e[1]),n=0;n<o.edgepaths.length;n++)o.edgepaths[n]=l(o.edgepaths[n]);for(n=0;n<o.paths.length;n++)o.paths[n]=l(o.paths[n]);for(n=0;n<o.starts.length;n++)o.starts[n]=l(o.starts[n]);while(i.edgepaths.length)o.edgepaths.push(s(i.edgepaths.shift()));while(i.paths.length)o.paths.push(s(i.paths.shift()));while(i.starts.length)o.starts.push(s(i.starts.shift()));return[o]}}},{"../../lib":750}],988:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../heatmap/xyz_defaults"),o=e("../scatter/period_defaults"),i=e("./constraint_defaults"),l=e("./contours_defaults"),s=e("./style_defaults"),u=e("./attributes");t.exports=function(e,t,n,c){function f(n,a){return r.coerce(e,t,u,n,a)}function p(n){return r.coerce2(e,t,u,n)}var d=a(e,t,f,c);if(d){o(e,t,c,f),f("text"),f("hovertext"),f("hovertemplate"),f("hoverongaps");var h="constraint"===f("contours.type");f("connectgaps",r.isArray1D(t.z)),h?i(e,t,f,c,n):(l(e,t,f,p),s(e,t,f,c))}else t.visible=!1}},{"../../lib":750,"../heatmap/xyz_defaults":1050,"../scatter/period_defaults":1178,"./attributes":979,"./constraint_defaults":984,"./contours_defaults":986,"./style_defaults":1e3}],989:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./constraint_mapping"),o=e("./end_plus");t.exports=function(e,t,n){for(var i="constraint"===e.type?a[e._operation](e.value):e,l=i.size,s=[],u=o(i),c=n.trace._carpetTrace,f=c?{xaxis:c.aaxis,yaxis:c.baxis,x:n.a,y:n.b}:{xaxis:t.xaxis,yaxis:t.yaxis,x:n.x,y:n.y},p=i.start;p<u;p+=l)if(s.push(r.extendFlat({level:p,crossings:{},starts:[],edgepaths:[],paths:[],z:n.z,smoothing:n.trace.line.smoothing},f)),s.length>1e3){r.warn("Too many contours, clipping at 1000",e);break}return s}},{"../../lib":750,"./constraint_mapping":985,"./end_plus":990}],990:[function(e,t,n){"use strict";t.exports=function(e){return e.end+e.size/1e6}},{}],991:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./constants");function o(e,t,n,r){return Math.abs(e[0]-t[0])<n&&Math.abs(e[1]-t[1])<r}function i(e,t){var n=e[2]-t[2],r=e[3]-t[3];return Math.sqrt(n*n+r*r)}function l(e,t,n,l,c){var f,p=t.join(","),d=e.crossings[p],h=s(d,n,t),v=[u(e,t,[-h[0],-h[1]])],m=e.z.length,y=e.z[0].length,g=t.slice(),b=h.slice();for(f=0;f<1e4;f++){if(d>20?(d=a.CHOOSESADDLE[d][(h[0]||h[1])<0?0:1],e.crossings[p]=a.SADDLEREMAINDER[d]):delete e.crossings[p],h=a.NEWDELTA[d],!h){r.log("Found bad marching index:",d,t,e.level);break}v.push(u(e,t,h)),t[0]+=h[0],t[1]+=h[1],p=t.join(","),o(v[v.length-1],v[v.length-2],l,c)&&v.pop();var x=h[0]&&(t[0]<0||t[0]>y-2)||h[1]&&(t[1]<0||t[1]>m-2),_=t[0]===g[0]&&t[1]===g[1]&&h[0]===b[0]&&h[1]===b[1];if(_||n&&x)break;d=e.crossings[p]}1e4===f&&r.log("Infinite loop in contour?");var w,k,T,E,O,M,S,C,A,P,L,D=o(v[0],v[v.length-1],l,c),j=0,I=.2*e.smoothing,R=[],z=0;for(f=1;f<v.length;f++)S=i(v[f],v[f-1]),j+=S,R.push(S);var N=j/R.length*I;function F(e){return v[e%v.length]}for(f=v.length-2;f>=z;f--)if(w=R[f],w<N){for(T=0,k=f-1;k>=z;k--){if(!(w+R[k]<N))break;w+=R[k]}if(D&&f===v.length-2)for(T=0;T<k;T++){if(!(w+R[T]<N))break;w+=R[T]}O=f-k+T+1,M=Math.floor((f+k+T+2)/2),E=D||f!==v.length-2?D||-1!==k?O%2?F(M):[(F(M)[0]+F(M+1)[0])/2,(F(M)[1]+F(M+1)[1])/2]:v[0]:v[v.length-1],v.splice(k+1,f-k+1,E),f=k+1,T&&(z=T),D&&(f===v.length-2?v[T]=v[v.length-1]:0===f&&(v[v.length-1]=v[0]))}for(v.splice(0,z),f=0;f<v.length;f++)v[f].length=2;if(!(v.length<2))if(D)v.pop(),e.paths.push(v);else{n||r.log("Unclosed interior contour?",e.level,g.join(","),v.join("L"));var B=!1;for(C=0;C<e.edgepaths.length;C++)if(P=e.edgepaths[C],!B&&o(P[0],v[v.length-1],l,c)){v.pop(),B=!0;var V=!1;for(A=0;A<e.edgepaths.length;A++)if(L=e.edgepaths[A],o(L[L.length-1],v[0],l,c)){V=!0,v.shift(),e.edgepaths.splice(C,1),A===C?e.paths.push(v.concat(L)):(A>C&&A--,e.edgepaths[A]=L.concat(v,P));break}V||(e.edgepaths[C]=v.concat(P))}for(C=0;C<e.edgepaths.length;C++){if(B)break;P=e.edgepaths[C],o(P[P.length-1],v[0],l,c)&&(v.shift(),e.edgepaths[C]=P.concat(v),B=!0)}B||e.edgepaths.push(v)}}function s(e,t,n){var r=0,o=0;return e>20&&t?208===e||1114===e?r=0===n[0]?1:-1:o=0===n[1]?1:-1:-1!==a.BOTTOMSTART.indexOf(e)?o=1:-1!==a.LEFTSTART.indexOf(e)?r=1:-1!==a.TOPSTART.indexOf(e)?o=-1:r=-1,[r,o]}function u(e,t,n){var r=t[0]+Math.max(n[0],0),a=t[1]+Math.max(n[1],0),o=e.z[a][r],i=e.xaxis,l=e.yaxis;if(n[1]){var s=(e.level-o)/(e.z[a][r+1]-o);return[i.c2p((1-s)*e.x[r]+s*e.x[r+1],!0),l.c2p(e.y[a],!0),r+s,a]}var u=(e.level-o)/(e.z[a+1][r]-o);return[i.c2p(e.x[r],!0),l.c2p((1-u)*e.y[a]+u*e.y[a+1],!0),r,a+u]}t.exports=function(e,t,n){var a,o,i,s,u;for(t=t||.01,n=n||.01,i=0;i<e.length;i++){for(s=e[i],u=0;u<s.starts.length;u++)o=s.starts[u],l(s,o,"edge",t,n);a=0;while(Object.keys(s.crossings).length&&a<1e4)a++,o=Object.keys(s.crossings)[0].split(",").map(Number),l(s,o,void 0,t,n);1e4===a&&r.log("Infinite loop in contour?")}}},{"../../lib":750,"./constants":983}],992:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("../heatmap/hover");t.exports=function(e,t,n,o,i){var l=a(e,t,n,o,i,!0);return l&&l.forEach((function(e){var t=e.trace;"constraint"===t.contours.type&&(t.fillcolor&&r.opacity(t.fillcolor)?e.color=r.addOpacity(t.fillcolor,1):t.contours.showlines&&r.opacity(t.line.color)&&(e.color=r.addOpacity(t.line.color,1)))})),l}},{"../../components/color":615,"../heatmap/hover":1043}],993:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot").plot,style:e("./style"),colorbar:e("./colorbar"),hoverPoints:e("./hover"),moduleType:"trace",name:"contour",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","contour","showLegend"],meta:{}}},{"../../plots/cartesian":812,"./attributes":979,"./calc":980,"./colorbar":982,"./defaults":988,"./hover":992,"./plot":997,"./style":999}],994:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t,n,a){a||(a={});var o=e("contours.showlabels");if(o){var i=t.font;r.coerceFont(e,"contours.labelfont",{family:i.family,size:i.size,color:n}),e("contours.labelformat")}!1!==a.hasHover&&e("zhoverformat")}},{"../../lib":750}],995:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/colorscale"),o=e("./end_plus");t.exports=function(e){var t=e.contours,n=t.start,i=o(t),l=t.size||1,s=Math.floor((i-n)/l)+1,u="lines"===t.coloring?0:1,c=a.extractOpts(e);isFinite(l)||(l=1,s=1);var f,p,d=c.reversescale?a.flipScale(c.colorscale):c.colorscale,h=d.length,v=new Array(h),m=new Array(h);if("heatmap"===t.coloring){var y=c.min,g=c.max;for(p=0;p<h;p++)f=d[p],v[p]=f[0]*(g-y)+y,m[p]=f[1];var b=r.extent([y,g,t.start,t.start+l*(s-1)]),x=b[y<g?0:1],_=b[y<g?1:0];x!==y&&(v.splice(0,0,x),m.splice(0,0,m[0])),_!==g&&(v.push(_),m.push(m[m.length-1]))}else for(p=0;p<h;p++)f=d[p],v[p]=(f[0]*(s+u-1)-u/2)*l+n,m[p]=f[1];return a.makeColorScaleFunc({domain:v,range:m},{noNumericCheck:!0})}},{"../../components/colorscale":627,"./end_plus":990,d3:169}],996:[function(e,t,n){"use strict";var r=e("./constants");function a(e,t){var n=(t[0][0]>e?0:1)+(t[0][1]>e?0:2)+(t[1][1]>e?0:4)+(t[1][0]>e?0:8);if(5===n||10===n){var r=(t[0][0]+t[0][1]+t[1][0]+t[1][1])/4;return e>r?5===n?713:1114:5===n?104:208}return 15===n?0:n}t.exports=function(e){var t,n,o,i,l,s,u,c,f,p=e[0].z,d=p.length,h=p[0].length,v=2===d||2===h;for(n=0;n<d-1;n++)for(i=[],0===n&&(i=i.concat(r.BOTTOMSTART)),n===d-2&&(i=i.concat(r.TOPSTART)),t=0;t<h-1;t++)for(o=i.slice(),0===t&&(o=o.concat(r.LEFTSTART)),t===h-2&&(o=o.concat(r.RIGHTSTART)),l=t+","+n,s=[[p[n][t],p[n][t+1]],[p[n+1][t],p[n+1][t+1]]],f=0;f<e.length;f++)c=e[f],u=a(c.level,s),u&&(c.crossings[l]=u,-1!==o.indexOf(u)&&(c.starts.push([t,n]),v&&-1!==o.indexOf(u,o.indexOf(u)+1)&&c.starts.push([t,n])))}},{"./constants":983}],997:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../../components/drawing"),i=e("../../components/colorscale"),l=e("../../lib/svg_text_utils"),s=e("../../plots/cartesian/axes"),u=e("../../plots/cartesian/set_convert"),c=e("../heatmap/plot"),f=e("./make_crossings"),p=e("./find_all_paths"),d=e("./empty_pathinfo"),h=e("./convert_to_constraints"),v=e("./close_boundaries"),m=e("./constants"),y=m.LABELOPTIMIZER;function g(e,t,n){var r=a.ensureSingle(e,"g","contourbg"),o=r.selectAll("path").data("fill"===n.coloring?[0]:[]);o.enter().append("path"),o.exit().remove(),o.attr("d","M"+t.join("L")+"Z").style("stroke","none")}function b(e,t,n,o){var i="fill"===o.coloring||"constraint"===o.type&&"="!==o._operation,l="M"+n.join("L")+"Z";i&&v(t,o);var s=a.ensureSingle(e,"g","contourfill"),u=s.selectAll("path").data(i?t:[]);u.enter().append("path"),u.exit().remove(),u.each((function(e){var t=(e.prefixBoundary?l:"")+x(e,n);t?r.select(this).attr("d",t).style("stroke","none"):r.select(this).remove()}))}function x(e,t){var n,r,i,l,s,u,c="",f=0,p=e.edgepaths.map((function(e,t){return t})),d=!0;function h(e){return Math.abs(e[1]-t[0][1])<.01}function v(e){return Math.abs(e[1]-t[2][1])<.01}function m(e){return Math.abs(e[0]-t[0][0])<.01}function y(e){return Math.abs(e[0]-t[2][0])<.01}while(p.length){for(u=o.smoothopen(e.edgepaths[f],e.smoothing),c+=d?u:u.replace(/^M/,"L"),p.splice(p.indexOf(f),1),n=e.edgepaths[f][e.edgepaths[f].length-1],l=-1,i=0;i<4;i++){if(!n){a.log("Missing end?",f,e);break}for(h(n)&&!y(n)?r=t[1]:m(n)?r=t[0]:v(n)?r=t[3]:y(n)&&(r=t[2]),s=0;s<e.edgepaths.length;s++){var g=e.edgepaths[s][0];Math.abs(n[0]-r[0])<.01?Math.abs(n[0]-g[0])<.01&&(g[1]-n[1])*(r[1]-g[1])>=0&&(r=g,l=s):Math.abs(n[1]-r[1])<.01?Math.abs(n[1]-g[1])<.01&&(g[0]-n[0])*(r[0]-g[0])>=0&&(r=g,l=s):a.log("endpt to newendpt is not vert. or horz.",n,r,g)}if(n=r,l>=0)break;c+="L"+r}if(l===e.edgepaths.length){a.log("unclosed perimeter path");break}f=l,d=-1===p.indexOf(f),d&&(f=p[0],c+="Z")}for(f=0;f<e.paths.length;f++)c+=o.smoothclosed(e.paths[f],e.smoothing);return c}function _(e,t,i,l,s){var u=a.ensureSingle(e,"g","contourlines"),c=!1!==s.showlines,f=s.showlabels,p=c&&f,d=n.createLines(u,c||f,t),h=n.createLineClip(u,p,i,l.trace.uid),v=e.selectAll("g.contourlabels").data(f?[0]:[]);if(v.exit().remove(),v.enter().append("g").classed("contourlabels",!0),f){var y=[],g=[];a.clearLocationCache();var b=n.labelFormatter(i,l),x=o.tester.append("text").attr("data-notex",1).call(o.font,s.labelfont),_=t[0].xaxis,w=t[0].yaxis,k=_._length,T=w._length,E=_.range,O=w.range,M=a.aggNums(Math.min,null,l.x),S=a.aggNums(Math.max,null,l.x),C=a.aggNums(Math.min,null,l.y),A=a.aggNums(Math.max,null,l.y),P=Math.max(_.c2p(M,!0),0),L=Math.min(_.c2p(S,!0),k),D=Math.max(w.c2p(A,!0),0),j=Math.min(w.c2p(C,!0),T),I={};E[0]<E[1]?(I.left=P,I.right=L):(I.left=L,I.right=P),O[0]<O[1]?(I.top=D,I.bottom=j):(I.top=j,I.bottom=D),I.middle=(I.top+I.bottom)/2,I.center=(I.left+I.right)/2,y.push([[I.left,I.top],[I.right,I.top],[I.right,I.bottom],[I.left,I.bottom]]);var R=Math.sqrt(k*k+T*T),z=m.LABELDISTANCE*R/Math.max(1,t.length/m.LABELINCREASE);d.each((function(e){var t=n.calcTextOpts(e.level,b,x,i);r.select(this).selectAll("path").each((function(){var e=this,r=a.getVisibleSegment(e,I,t.height/2);if(r&&!(r.len<(t.width+t.height)*m.LABELMIN))for(var o=Math.min(Math.ceil(r.len/z),m.LABELMAX),i=0;i<o;i++){var l=n.findBestTextLocation(e,r,t,g,I);if(!l)break;n.addLabelData(l,t,g,y)}}))})),x.remove(),n.drawLabels(v,g,i,h,p?y:null)}f&&!c&&d.remove()}function w(e,t,n,r){var o=t.width/2,i=t.height/2,l=e.x,s=e.y,u=e.theta,c=Math.cos(u)*o,f=Math.sin(u)*o,p=(l>r.center?r.right-l:l-r.left)/(c+Math.abs(Math.sin(u)*i)),d=(s>r.middle?r.bottom-s:s-r.top)/(Math.abs(f)+Math.cos(u)*i);if(p<1||d<1)return 1/0;var h=y.EDGECOST*(1/(p-1)+1/(d-1));h+=y.ANGLECOST*u*u;for(var v=l-c,m=s-f,g=l+c,b=s+f,x=0;x<n.length;x++){var _=n[x],w=Math.cos(_.theta)*_.width/2,k=Math.sin(_.theta)*_.width/2,T=2*a.segmentDistance(v,m,g,b,_.x-w,_.y-k,_.x+w,_.y+k)/(t.height+_.height),E=_.level===t.level,O=E?y.SAMELEVELDISTANCE:1;if(T<=O)return 1/0;var M=y.NEIGHBORCOST*(E?y.SAMELEVELFACTOR:1);h+=M/(T-O)}return h}function k(e,t,n,r,i){var l=r.trace,s=n._fullLayout._clips,u="clip"+l.uid,c=s.selectAll("#"+u).data(l.connectgaps?[]:[0]);if(c.enter().append("clipPath").classed("contourclip",!0).attr("id",u),c.exit().remove(),!1===l.connectgaps){var d={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:t.xaxis,yaxis:t.yaxis,x:r.x,y:r.y,z:T(r),smoothing:0};f([d]),p([d]),v([d],{type:"levels"});var h=a.ensureSingle(c,"path","");h.attr("d",(d.prefixBoundary?"M"+i.join("L")+"Z":"")+x(d,i))}else u=null;o.setClipUrl(e,u,n)}function T(e){var t,n,r=e.trace._emptypoints,a=[],o=e.z.length,i=e.z[0].length,l=[];for(t=0;t<i;t++)l.push(1);for(t=0;t<o;t++)a.push(l.slice());for(t=0;t<r.length;t++)n=r[t],a[n[0]][n[1]]=0;return e.zmask=a,a}n.plot=function(e,t,n,o){var i=t.xaxis,l=t.yaxis;a.makeTraceGroups(o,n,"contour").each((function(n){var o=r.select(this),s=n[0],u=s.trace,v=s.x,m=s.y,y=u.contours,x=d(y,t,s),w=a.ensureSingle(o,"g","heatmapcoloring"),T=[];"heatmap"===y.coloring&&(T=[n]),c(e,t,T,w),f(x),p(x);var E=i.c2p(v[0],!0),O=i.c2p(v[v.length-1],!0),M=l.c2p(m[0],!0),S=l.c2p(m[m.length-1],!0),C=[[E,S],[O,S],[O,M],[E,M]],A=x;"constraint"===y.type&&(A=h(x,y._operation)),g(o,C,y),b(o,A,C,y),_(o,x,e,s,y),k(o,t,e,s,C)}))},n.createLines=function(e,t,n){var r=n[0].smoothing,a=e.selectAll("g.contourlevel").data(t?n:[]);if(a.exit().remove(),a.enter().append("g").classed("contourlevel",!0),t){var i=a.selectAll("path.openline").data((function(e){return e.pedgepaths||e.edgepaths}));i.exit().remove(),i.enter().append("path").classed("openline",!0),i.attr("d",(function(e){return o.smoothopen(e,r)})).style("stroke-miterlimit",1).style("vector-effect","non-scaling-stroke");var l=a.selectAll("path.closedline").data((function(e){return e.ppaths||e.paths}));l.exit().remove(),l.enter().append("path").classed("closedline",!0),l.attr("d",(function(e){return o.smoothclosed(e,r)})).style("stroke-miterlimit",1).style("vector-effect","non-scaling-stroke")}return a},n.createLineClip=function(e,t,n,r){var a=n._fullLayout._clips,i=t?"clipline"+r:null,l=a.selectAll("#"+i).data(t?[0]:[]);return l.exit().remove(),l.enter().append("clipPath").classed("contourlineclip",!0).attr("id",i),o.setClipUrl(e,i,n),l},n.labelFormatter=function(e,t){var n=e._fullLayout,r=t.trace,a=r.contours,o={type:"linear",_id:"ycontour",showexponent:"all",exponentformat:"B"};if(a.labelformat)o.tickformat=a.labelformat,u(o,n);else{var l=i.extractOpts(r);if(l&&l.colorbar&&l.colorbar._axis)o=l.colorbar._axis;else{if("constraint"===a.type){var c=a.value;Array.isArray(c)?o.range=[c[0],c[c.length-1]]:o.range=[c,c]}else o.range=[a.start,a.end],o.nticks=(a.end-a.start)/a.size;o.range[0]===o.range[1]&&(o.range[1]+=o.range[0]||1),o.nticks||(o.nticks=1e3),u(o,n),s.prepTicks(o),o._tmin=null,o._tmax=null}}return function(e){return s.tickText(o,e).text}},n.calcTextOpts=function(e,t,n,r){var a=t(e);n.text(a).call(l.convertToTspans,r);var i=n.node(),s=o.bBox(i,!0);return{text:a,width:s.width,height:s.height,fontSize:+i.style["font-size"].replace("px",""),level:e,dy:(s.top+s.bottom)/2}},n.findBestTextLocation=function(e,t,n,r,o){var i,l,s,u,c,f=n.width;t.isClosed?(l=t.len/y.INITIALSEARCHPOINTS,i=t.min+l/2,s=t.max):(l=(t.len-f)/(y.INITIALSEARCHPOINTS+1),i=t.min+l+f/2,s=t.max-(l+f)/2);for(var p=1/0,d=0;d<y.ITERATIONS;d++){for(var h=i;h<s;h+=l){var v=a.getTextLocation(e,t.total,h,f),m=w(v,n,r,o);m<p&&(p=m,c=v,u=h)}if(p>2*y.MAXCOST)break;d&&(l/=2),i=u-l/2,s=i+1.5*l}if(p<=y.MAXCOST)return c},n.addLabelData=function(e,t,n,r){var a=t.fontSize,o=t.width+a/3,i=Math.max(0,t.height-a/3),l=e.x,s=e.y,u=e.theta,c=Math.sin(u),f=Math.cos(u),p=function(e,t){return[l+e*f-t*c,s+e*c+t*f]},d=[p(-o/2,-i/2),p(-o/2,i/2),p(o/2,i/2),p(o/2,-i/2)];n.push({text:t.text,x:l,y:s,dy:t.dy,theta:u,level:t.level,width:o,height:i}),r.push(d)},n.drawLabels=function(e,t,n,o,i){var s=e.selectAll("text").data(t,(function(e){return e.text+","+e.x+","+e.y+","+e.theta}));if(s.exit().remove(),s.enter().append("text").attr({"data-notex":1,"text-anchor":"middle"}).each((function(e){var t=e.x+Math.sin(e.theta)*e.dy,a=e.y-Math.cos(e.theta)*e.dy;r.select(this).text(e.text).attr({x:t,y:a,transform:"rotate("+180*e.theta/Math.PI+" "+t+" "+a+")"}).call(l.convertToTspans,n)})),i){for(var u="",c=0;c<i.length;c++)u+="M"+i[c].join("L")+"Z";var f=a.ensureSingle(o,"path","");f.attr("d",u)}}},{"../../components/colorscale":627,"../../components/drawing":637,"../../lib":750,"../../lib/svg_text_utils":774,"../../plots/cartesian/axes":799,"../../plots/cartesian/set_convert":819,"../heatmap/plot":1047,"./close_boundaries":981,"./constants":983,"./convert_to_constraints":987,"./empty_pathinfo":989,"./find_all_paths":991,"./make_crossings":996,d3:169}],998:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../lib");function o(e,t,n){var a={type:"linear",range:[e,t]};return r.autoTicks(a,(t-e)/(n||15)),a}t.exports=function(e,t){var n=e.contours;if(e.autocontour){var i=e.zmin,l=e.zmax;(e.zauto||void 0===i)&&(i=a.aggNums(Math.min,null,t)),(e.zauto||void 0===l)&&(l=a.aggNums(Math.max,null,t));var s=o(i,l,e.ncontours);n.size=s.dtick,n.start=r.tickFirst(s),s.range.reverse(),n.end=r.tickFirst(s),n.start===i&&(n.start+=n.size),n.end===l&&(n.end-=n.size),n.start>n.end&&(n.start=n.end=(n.start+n.end)/2),e._input.contours||(e._input.contours={}),a.extendFlat(e._input.contours,{start:n.start,end:n.end,size:n.size}),e._input.autocontour=!0}else if("constraint"!==n.type){var u,c=n.start,f=n.end,p=e._input.contours;if(c>f&&(n.start=p.start=f,f=n.end=p.end=c,c=n.start),!(n.size>0))u=c===f?1:o(c,f,e.ncontours).dtick,p.size=n.size=u}}},{"../../lib":750,"../../plots/cartesian/axes":799}],999:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/drawing"),o=e("../heatmap/style"),i=e("./make_color_map");t.exports=function(e){var t=r.select(e).selectAll("g.contour");t.style("opacity",(function(e){return e[0].trace.opacity})),t.each((function(e){var t=r.select(this),n=e[0].trace,o=n.contours,l=n.line,s=o.size||1,u=o.start,c="constraint"===o.type,f=!c&&"lines"===o.coloring,p=!c&&"fill"===o.coloring,d=f||p?i(n):null;t.selectAll("g.contourlevel").each((function(e){r.select(this).selectAll("path").call(a.lineGroupStyle,l.width,f?d(e.level):l.color,l.dash)}));var h=o.labelfont;if(t.selectAll("g.contourlabels text").each((function(e){a.font(r.select(this),{family:h.family,size:h.size,color:h.color||(f?d(e.level):l.color)})})),c)t.selectAll("g.contourfill path").style("fill",n.fillcolor);else if(p){var v;t.selectAll("g.contourfill path").style("fill",(function(e){return void 0===v&&(v=e.level),d(e.level+.5*s)})),void 0===v&&(v=u),t.selectAll("g.contourbg path").style("fill",d(v-.5*s))}})),o(e)}},{"../../components/drawing":637,"../heatmap/style":1048,"./make_color_map":995,d3:169}],1e3:[function(e,t,n){"use strict";var r=e("../../components/colorscale/defaults"),a=e("./label_defaults");t.exports=function(e,t,n,o,i){var l,s=n("contours.coloring"),u="";"fill"===s&&(l=n("contours.showlines")),!1!==l&&("lines"!==s&&(u=n("line.color","#000")),n("line.width",.5),n("line.dash")),"none"!==s&&(!0!==e.showlegend&&(t.showlegend=!1),t._dfltShowLegend=!1,r(e,t,o,n,{prefix:"",cLetter:"z"})),n("line.smoothing"),a(n,o,u,i)}},{"../../components/colorscale/defaults":625,"./label_defaults":994}],1001:[function(e,t,n){"use strict";var r=e("../heatmap/attributes"),a=e("../contour/attributes"),o=e("../../components/colorscale/attributes"),i=e("../../lib/extend").extendFlat,l=a.contours;t.exports=i({carpet:{valType:"string",editType:"calc"},z:r.z,a:r.x,a0:r.x0,da:r.dx,b:r.y,b0:r.y0,db:r.dy,text:r.text,hovertext:r.hovertext,transpose:r.transpose,atype:r.xtype,btype:r.ytype,fillcolor:a.fillcolor,autocontour:a.autocontour,ncontours:a.ncontours,contours:{type:l.type,start:l.start,end:l.end,size:l.size,coloring:{valType:"enumerated",values:["fill","lines","none"],dflt:"fill",editType:"calc"},showlines:l.showlines,showlabels:l.showlabels,labelfont:l.labelfont,labelformat:l.labelformat,operation:l.operation,value:l.value,editType:"calc",impliedEdits:{autocontour:!1}},line:{color:a.line.color,width:a.line.width,dash:a.line.dash,smoothing:a.line.smoothing,editType:"plot"},transforms:void 0},o("",{cLetter:"z",autoColorDflt:!1}))},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../contour/attributes":979,"../heatmap/attributes":1036}],1002:[function(e,t,n){"use strict";var r=e("../../components/colorscale/calc"),a=e("../../lib"),o=e("../heatmap/convert_column_xyz"),i=e("../heatmap/clean_2d_array"),l=e("../heatmap/interp2d"),s=e("../heatmap/find_empties"),u=e("../heatmap/make_bound_array"),c=e("./defaults"),f=e("../carpet/lookup_carpetid"),p=e("../contour/set_contours");function d(e,t){var n,c,f,p,d,h,v,m=t._carpetTrace,y=m.aaxis,g=m.baxis;y._minDtick=0,g._minDtick=0,a.isArray1D(t.z)&&o(t,y,g,"a","b",["z"]),n=t._a=t._a||t.a,p=t._b=t._b||t.b,n=n?y.makeCalcdata(t,"_a"):[],p=p?g.makeCalcdata(t,"_b"):[],c=t.a0||0,f=t.da||1,d=t.b0||0,h=t.db||1,v=t._z=i(t._z||t.z,t.transpose),t._emptypoints=s(v),l(v,t._emptypoints);var b=a.maxRowLength(v),x="scaled"===t.xtype?"":n,_=u(t,x,c,f,b,y),w="scaled"===t.ytype?"":p,k=u(t,w,d,h,v.length,g),T={a:_,b:k,z:v};return"levels"===t.contours.type&&"none"!==t.contours.coloring&&r(e,t,{vals:v,containerStr:"",cLetter:"z"}),[T]}t.exports=function(e,t){var n=t._carpetTrace=f(e,t);if(n&&n.visible&&"legendonly"!==n.visible){if(!t.a||!t.b){var r=e.data[n.index],a=e.data[t.index];a.a||(a.a=r.a),a.b||(a.b=r.b),c(a,t,t._defaultColor,e._fullLayout)}var o=d(e,t);return p(t,t._z),o}}},{"../../components/colorscale/calc":623,"../../lib":750,"../carpet/lookup_carpetid":952,"../contour/set_contours":998,"../heatmap/clean_2d_array":1038,"../heatmap/convert_column_xyz":1040,"../heatmap/find_empties":1042,"../heatmap/interp2d":1045,"../heatmap/make_bound_array":1046,"./defaults":1003}],1003:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../heatmap/xyz_defaults"),o=e("./attributes"),i=e("../contour/constraint_defaults"),l=e("../contour/contours_defaults"),s=e("../contour/style_defaults");t.exports=function(e,t,n,u){function c(n,a){return r.coerce(e,t,o,n,a)}function f(n){return r.coerce2(e,t,o,n)}if(c("carpet"),e.a&&e.b){var p=a(e,t,c,u,"a","b");if(!p)return void(t.visible=!1);c("text");var d="constraint"===c("contours.type");d?i(e,t,c,u,n,{hasHover:!1}):(l(e,t,c,f),s(e,t,c,u,{hasHover:!1}))}else t._defaultColor=n,t._length=null}},{"../../lib":750,"../contour/constraint_defaults":984,"../contour/contours_defaults":986,"../contour/style_defaults":1e3,"../heatmap/xyz_defaults":1050,"./attributes":1001}],1004:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../contour/colorbar"),calc:e("./calc"),plot:e("./plot"),style:e("../contour/style"),moduleType:"trace",name:"contourcarpet",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","carpet","contour","symbols","showLegend","hasLines","carpetDependent","noHover","noSortingByValue"],meta:{}}},{"../../plots/cartesian":812,"../contour/colorbar":982,"../contour/style":999,"./attributes":1001,"./calc":1002,"./defaults":1003,"./plot":1005}],1005:[function(e,t,n){"use strict";var r=e("d3"),a=e("../carpet/map_1d_array"),o=e("../carpet/makepath"),i=e("../../components/drawing"),l=e("../../lib"),s=e("../contour/make_crossings"),u=e("../contour/find_all_paths"),c=e("../contour/plot"),f=e("../contour/constants"),p=e("../contour/convert_to_constraints"),d=e("../contour/empty_pathinfo"),h=e("../contour/close_boundaries"),v=e("../carpet/lookup_carpetid"),m=e("../carpet/axis_aligned_line");function y(e,t){var n,r,a,o,i,l,s,u,c;for(n=0;n<e.length;n++){for(o=e[n],i=o.pedgepaths=[],l=o.ppaths=[],r=0;r<o.edgepaths.length;r++){for(c=o.edgepaths[r],s=[],a=0;a<c.length;a++)s[a]=t(c[a]);i.push(s)}for(r=0;r<o.paths.length;r++){for(c=o.paths[r],u=[],a=0;a<c.length;a++)u[a]=t(c[a]);l.push(u)}}}function g(e,t,n,a,o,s,u){var p=l.ensureSingle(e,"g","contourlines"),d=!1!==o.showlines,h=o.showlabels,v=d&&h,m=c.createLines(p,d||h,t),y=c.createLineClip(p,v,n,a.trace.uid),g=e.selectAll("g.contourlabels").data(h?[0]:[]);if(g.exit().remove(),g.enter().append("g").classed("contourlabels",!0),h){var x=s.xaxis,_=s.yaxis,w=x._length,k=_._length,T=[[[0,0],[w,0],[w,k],[0,k]]],E=[];l.clearLocationCache();var O=c.labelFormatter(n,a),M=i.tester.append("text").attr("data-notex",1).call(i.font,o.labelfont),S={left:0,right:w,center:w/2,top:0,bottom:k,middle:k/2},C=Math.sqrt(w*w+k*k),A=f.LABELDISTANCE*C/Math.max(1,t.length/f.LABELINCREASE);m.each((function(e){var t=c.calcTextOpts(e.level,O,M,n);r.select(this).selectAll("path").each((function(n){var r=this,a=l.getVisibleSegment(r,S,t.height/2);if(a&&(b(r,n,e,a,u,t.height),!(a.len<(t.width+t.height)*f.LABELMIN)))for(var o=Math.min(Math.ceil(a.len/A),f.LABELMAX),i=0;i<o;i++){var s=c.findBestTextLocation(r,a,t,E,S);if(!s)break;c.addLabelData(s,t,E,T)}}))})),M.remove(),c.drawLabels(g,E,n,y,v?T:null)}h&&!d&&m.remove()}function b(e,t,n,r,a,o){for(var i,l=0;l<n.pedgepaths.length;l++)t===n.pedgepaths[l]&&(i=n.edgepaths[l]);if(i){var s=a.a[0],u=a.a[a.a.length-1],c=a.b[0],f=a.b[a.b.length-1],p=x(e,0,1),d=x(e,r.total,r.total-1),h=m(i[0],p),v=r.total-m(i[i.length-1],d);r.min<h&&(r.min=h),r.max>v&&(r.max=v),r.len=r.max-r.min}function m(e,t){var n,r=0,i=.1;return(Math.abs(e[0]-s)<i||Math.abs(e[0]-u)<i)&&(n=_(a.dxydb_rough(e[0],e[1],i)),r=Math.max(r,o*w(t,n)/2)),(Math.abs(e[1]-c)<i||Math.abs(e[1]-f)<i)&&(n=_(a.dxyda_rough(e[0],e[1],i)),r=Math.max(r,o*w(t,n)/2)),r}}function x(e,t,n){var r=e.getPointAtLength(t),a=e.getPointAtLength(n),o=a.x-r.x,i=a.y-r.y,l=Math.sqrt(o*o+i*i);return[o/l,i/l]}function _(e){var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]);return[e[0]/t,e[1]/t]}function w(e,t){var n=Math.abs(e[0]*t[0]+e[1]*t[1]),r=Math.sqrt(1-n*n);return r/n}function k(e,t,n,r,i,s){var u,c,f,p,d=l.ensureSingle(e,"g","contourbg"),h=d.selectAll("path").data("fill"!==s||i?[]:[0]);h.enter().append("path"),h.exit().remove();var v=[];for(p=0;p<t.length;p++)u=t[p],c=a([],u.x,n.c2p),f=a([],u.y,r.c2p),v.push(o(c,f,u.bicubic));h.attr("d","M"+v.join("L")+"Z").style("stroke","none")}function T(e,t,n,a,o,i,s,u,c,f,p){var d="fill"===f;d&&h(o,e.contours);var v=l.ensureSingle(t,"g","contourfill"),m=v.selectAll("path").data(d?o:[]);m.enter().append("path"),m.exit().remove(),m.each((function(t){var o=(t.prefixBoundary?p:"")+E(e,t,i,s,u,c,n,a);o?r.select(this).attr("d",o).style("stroke","none"):r.select(this).remove()}))}function E(e,t,n,r,a,o,s,u){var c,f,p,d,h,v,y,g="",b=t.edgepaths.map((function(e,t){return t})),x=!0,_=1e-4*Math.abs(n[0][0]-n[2][0]),w=1e-4*Math.abs(n[0][1]-n[2][1]);function k(e){return Math.abs(e[1]-n[0][1])<w}function T(e){return Math.abs(e[1]-n[2][1])<w}function E(e){return Math.abs(e[0]-n[0][0])<_}function O(e){return Math.abs(e[0]-n[2][0])<_}function M(e,t){var n,r,i,l,c="";for(k(e)&&!O(e)||T(e)&&!E(e)?(l=a.aaxis,i=m(a,o,[e[0],t[0]],.5*(e[1]+t[1]))):(l=a.baxis,i=m(a,o,.5*(e[0]+t[0]),[e[1],t[1]])),n=1;n<i.length;n++)for(c+=l.smoothing?"C":"L",r=0;r<i[n].length;r++){var f=i[n][r];c+=[s.c2p(f[0]),u.c2p(f[1])]+" "}return c}c=0,f=null;while(b.length){var S=t.edgepaths[c][0];for(f&&(g+=M(f,S)),y=i.smoothopen(t.edgepaths[c].map(r),t.smoothing),g+=x?y:y.replace(/^M/,"L"),b.splice(b.indexOf(c),1),f=t.edgepaths[c][t.edgepaths[c].length-1],h=-1,d=0;d<4;d++){if(!f){l.log("Missing end?",c,t);break}for(k(f)&&!O(f)?p=n[1]:E(f)?p=n[0]:T(f)?p=n[3]:O(f)&&(p=n[2]),v=0;v<t.edgepaths.length;v++){var C=t.edgepaths[v][0];Math.abs(f[0]-p[0])<_?Math.abs(f[0]-C[0])<_&&(C[1]-f[1])*(p[1]-C[1])>=0&&(p=C,h=v):Math.abs(f[1]-p[1])<w?Math.abs(f[1]-C[1])<w&&(C[0]-f[0])*(p[0]-C[0])>=0&&(p=C,h=v):l.log("endpt to newendpt is not vert. or horz.",f,p,C)}if(h>=0)break;g+=M(f,p),f=p}if(h===t.edgepaths.length){l.log("unclosed perimeter path");break}c=h,x=-1===b.indexOf(c),x&&(c=b[0],g+=M(f,p)+"Z",f=null)}for(c=0;c<t.paths.length;c++)g+=i.smoothclosed(t.paths[c].map(r),t.smoothing);return g}t.exports=function(e,t,n,c){var f=t.xaxis,h=t.yaxis;l.makeTraceGroups(c,n,"contour").each((function(n){var l=r.select(this),c=n[0],m=c.trace,b=m._carpetTrace=v(e,m),x=e.calcdata[b.index][0];if(b.visible&&"legendonly"!==b.visible){var _=c.a,w=c.b,E=m.contours,O=d(E,t,c),M="constraint"===E.type,S=E._operation,C=M?"="===S?"lines":"fill":E.coloring,A=[[_[0],w[w.length-1]],[_[_.length-1],w[w.length-1]],[_[_.length-1],w[0]],[_[0],w[0]]];s(O);var P=1e-8*(_[_.length-1]-_[0]),L=1e-8*(w[w.length-1]-w[0]);u(O,P,L);var D,j,I,R,z=O;"constraint"===E.type&&(z=p(O,S)),y(O,B);var N=[];for(R=x.clipsegments.length-1;R>=0;R--)D=x.clipsegments[R],j=a([],D.x,f.c2p),I=a([],D.y,h.c2p),j.reverse(),I.reverse(),N.push(o(j,I,D.bicubic));var F="M"+N.join("L")+"Z";k(l,x.clipsegments,f,h,M,C),T(m,l,f,h,z,A,B,b,x,C,F),g(l,O,e,c,E,t,b),i.setClipUrl(l,b._clipPathId,e)}function B(e){var t=b.ab2xy(e[0],e[1],!0);return[f.c2p(t[0]),h.c2p(t[1])]}}))}},{"../../components/drawing":637,"../../lib":750,"../carpet/axis_aligned_line":936,"../carpet/lookup_carpetid":952,"../carpet/makepath":953,"../carpet/map_1d_array":954,"../contour/close_boundaries":981,"../contour/constants":983,"../contour/convert_to_constraints":987,"../contour/empty_pathinfo":989,"../contour/find_all_paths":991,"../contour/make_crossings":996,"../contour/plot":997,d3:169}],1006:[function(e,t,n){"use strict";var r=e("../../components/colorscale/attributes"),a=e("../../plots/template_attributes").hovertemplateAttrs,o=e("../../plots/attributes"),i=e("../scattermapbox/attributes"),l=e("../../lib/extend").extendFlat;t.exports=l({lon:i.lon,lat:i.lat,z:{valType:"data_array",editType:"calc"},radius:{valType:"number",editType:"plot",arrayOk:!0,min:1,dflt:30},below:{valType:"string",editType:"plot"},text:i.text,hovertext:i.hovertext,hoverinfo:l({},o.hoverinfo,{flags:["lon","lat","z","text","name"]}),hovertemplate:a(),showlegend:l({},o.showlegend,{dflt:!1})},r("",{cLetter:"z",editTypeOverride:"calc"}))},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../scattermapbox/attributes":1223}],1007:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib").isArrayOrTypedArray,o=e("../../constants/numerical").BADNUM,i=e("../../components/colorscale/calc"),l=e("../../lib")._;t.exports=function(e,t){for(var n=t._length,s=new Array(n),u=t.z,c=a(u)&&u.length,f=0;f<n;f++){var p=s[f]={},d=t.lon[f],h=t.lat[f];if(p.lonlat=r(d)&&r(h)?[+d,+h]:[o,o],c){var v=u[f];p.z=r(v)?v:o}}return i(e,t,{vals:c?u:[0,1],containerStr:"",cLetter:"z"}),n&&(s[0].t={labels:{lat:l(e,"lat:")+" ",lon:l(e,"lon:")+" "}}),s}},{"../../components/colorscale/calc":623,"../../constants/numerical":725,"../../lib":750,"fast-isnumeric":241}],1008:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("../../components/color"),i=e("../../components/colorscale"),l=e("../../constants/numerical").BADNUM,s=e("../../lib/geojson_utils").makeBlank;t.exports=function(e){var t=e[0].trace,n=!0===t.visible&&0!==t._length,u={layout:{visibility:"none"},paint:{}},c=t._opts={heatmap:u,geojson:s()};if(!n)return c;var f,p=[],d=t.z,h=t.radius,v=a.isArrayOrTypedArray(d)&&d.length,m=a.isArrayOrTypedArray(h);for(f=0;f<e.length;f++){var y=e[f],g=y.lonlat;if(g[0]!==l){var b={};if(v){var x=y.z;b.z=x!==l?x:0}m&&(b.r=r(h[f])&&h[f]>0?+h[f]:0),p.push({type:"Feature",geometry:{type:"Point",coordinates:g},properties:b})}}var _=i.extractOpts(t),w=_.reversescale?i.flipScale(_.colorscale):_.colorscale,k=w[0][1],T=o.opacity(k)<1?k:o.addOpacity(k,0),E=["interpolate",["linear"],["heatmap-density"],0,T];for(f=1;f<w.length;f++)E.push(w[f][0],w[f][1]);var O=["interpolate",["linear"],["get","z"],_.min,0,_.max,1];return a.extendFlat(c.heatmap.paint,{"heatmap-weight":v?O:1/(_.max-_.min),"heatmap-color":E,"heatmap-radius":m?{type:"identity",property:"r"}:t.radius,"heatmap-opacity":t.opacity}),c.geojson={type:"FeatureCollection",features:p},c.heatmap.layout.visibility="visible",c}},{"../../components/color":615,"../../components/colorscale":627,"../../constants/numerical":725,"../../lib":750,"../../lib/geojson_utils":744,"fast-isnumeric":241}],1009:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/colorscale/defaults"),o=e("./attributes");t.exports=function(e,t,n,i){function l(n,a){return r.coerce(e,t,o,n,a)}var s=l("lon")||[],u=l("lat")||[],c=Math.min(s.length,u.length);c?(t._length=c,l("z"),l("radius"),l("below"),l("text"),l("hovertext"),l("hovertemplate"),a(e,t,i,l,{prefix:"",cLetter:"z"})):t.visible=!1}},{"../../components/colorscale/defaults":625,"../../lib":750,"./attributes":1006}],1010:[function(e,t,n){"use strict";t.exports=function(e,t){return e.lon=t.lon,e.lat=t.lat,e.z=t.z,e}},{}],1011:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("../scattermapbox/hover");function i(e,t,n){if(!e.hovertemplate){var a=t.hi||e.hoverinfo,o=a.split("+"),i=-1!==o.indexOf("all"),l=-1!==o.indexOf("lon"),s=-1!==o.indexOf("lat"),u=t.lonlat,c=[];return i||l&&s?c.push("("+f(u[0])+", "+f(u[1])+")"):l?c.push(n.lon+f(u[0])):s&&c.push(n.lat+f(u[1])),(i||-1!==o.indexOf("text"))&&r.fillText(t,e,c),c.join("<br>")}function f(e){return e+"°"}}t.exports=function(e,t,n){var r=o(e,t,n);if(r){var l=r[0],s=l.cd,u=s[0].trace,c=s[l.index];if(delete l.color,"z"in c){var f=l.subplot.mockAxis;l.z=c.z,l.zLabel=a.tickText(f,f.c2l(c.z),"hover").text}return l.extraText=i(u,c,s[0].t.labels),[l]}}},{"../../lib":750,"../../plots/cartesian/axes":799,"../scattermapbox/hover":1228}],1012:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../heatmap/colorbar"),formatLabels:e("../scattermapbox/format_labels"),calc:e("./calc"),plot:e("./plot"),hoverPoints:e("./hover"),eventData:e("./event_data"),getBelow:function(e,t){for(var n=t.getMapLayers(),r=0;r<n.length;r++){var a=n[r],o=a.id;if("symbol"===a.type&&"string"===typeof o&&-1===o.indexOf("plotly-"))return o}},moduleType:"trace",name:"densitymapbox",basePlotModule:e("../../plots/mapbox"),categories:["mapbox","gl","showLegend"],meta:{hr_name:"density_mapbox"}}},{"../../plots/mapbox":856,"../heatmap/colorbar":1039,"../scattermapbox/format_labels":1227,"./attributes":1006,"./calc":1007,"./defaults":1009,"./event_data":1010,"./hover":1011,"./plot":1013}],1013:[function(e,t,n){"use strict";var r=e("./convert"),a=e("../../plots/mapbox/constants").traceLayerPrefix;function o(e,t){this.type="densitymapbox",this.subplot=e,this.uid=t,this.sourceId="source-"+t,this.layerList=[["heatmap",a+t+"-heatmap"]],this.below=null}var i=o.prototype;i.update=function(e){var t=this.subplot,n=this.layerList,a=r(e),o=t.belowLookup["trace-"+this.uid];t.map.getSource(this.sourceId).setData(a.geojson),o!==this.below&&(this._removeLayers(),this._addLayers(a,o),this.below=o);for(var i=0;i<n.length;i++){var l=n[i],s=l[0],u=l[1],c=a[s];t.setOptions(u,"setLayoutProperty",c.layout),"visible"===c.layout.visibility&&t.setOptions(u,"setPaintProperty",c.paint)}},i._addLayers=function(e,t){for(var n=this.subplot,r=this.layerList,a=this.sourceId,o=0;o<r.length;o++){var i=r[o],l=i[0],s=e[l];n.addLayer({type:l,id:i[1],source:a,layout:s.layout,paint:s.paint},t)}},i._removeLayers=function(){for(var e=this.subplot.map,t=this.layerList,n=t.length-1;n>=0;n--)e.removeLayer(t[n][1])},i.dispose=function(){var e=this.subplot.map;this._removeLayers(),e.removeSource(this.sourceId)},t.exports=function(e,t){var n=t[0].trace,a=new o(e,n.uid),i=a.sourceId,l=r(t),s=a.below=e.belowLookup["trace-"+n.uid];return e.map.addSource(i,{type:"geojson",data:l.geojson}),a._addLayers(l,s),a}},{"../../plots/mapbox/constants":854,"./convert":1008}],1014:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){for(var n=0;n<e.length;n++)e[n].i=n;r.mergeArray(t.text,e,"tx"),r.mergeArray(t.hovertext,e,"htx");var a=t.marker;if(a){r.mergeArray(a.opacity,e,"mo"),r.mergeArray(a.color,e,"mc");var o=a.line;o&&(r.mergeArray(o.color,e,"mlc"),r.mergeArrayCastPositive(o.width,e,"mlw"))}}},{"../../lib":750}],1015:[function(e,t,n){"use strict";var r=e("../bar/attributes"),a=e("../scatter/attributes").line,o=e("../../plots/attributes"),i=e("../../plots/template_attributes").hovertemplateAttrs,l=e("../../plots/template_attributes").texttemplateAttrs,s=e("./constants"),u=e("../../lib/extend").extendFlat,c=e("../../components/color");t.exports={x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,xperiod:r.xperiod,yperiod:r.yperiod,xperiod0:r.xperiod0,yperiod0:r.yperiod0,xperiodalignment:r.xperiodalignment,yperiodalignment:r.yperiodalignment,hovertext:r.hovertext,hovertemplate:i({},{keys:s.eventDataKeys}),hoverinfo:u({},o.hoverinfo,{flags:["name","x","y","text","percent initial","percent previous","percent total"]}),textinfo:{valType:"flaglist",flags:["label","text","percent initial","percent previous","percent total","value"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:l({editType:"plot"},{keys:s.eventDataKeys.concat(["label","value"])}),text:r.text,textposition:u({},r.textposition,{dflt:"auto"}),insidetextanchor:u({},r.insidetextanchor,{dflt:"middle"}),textangle:u({},r.textangle,{dflt:0}),textfont:r.textfont,insidetextfont:r.insidetextfont,outsidetextfont:r.outsidetextfont,constraintext:r.constraintext,cliponaxis:r.cliponaxis,orientation:u({},r.orientation,{}),offset:u({},r.offset,{arrayOk:!1}),width:u({},r.width,{arrayOk:!1}),marker:r.marker,connector:{fillcolor:{valType:"color",editType:"style"},line:{color:u({},a.color,{dflt:c.defaultLine}),width:u({},a.width,{dflt:0,editType:"plot"}),dash:a.dash,editType:"style"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup}},{"../../components/color":615,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../bar/attributes":892,"../scatter/attributes":1158,"./constants":1017}],1016:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../plots/cartesian/align_period"),o=e("./arrays_to_calcdata"),i=e("../scatter/calc_selection"),l=e("../../constants/numerical").BADNUM;function s(e){return e===l?0:e}t.exports=function(e,t){var n,u,c,f,p,d,h=r.getFromId(e,t.xaxis||"x"),v=r.getFromId(e,t.yaxis||"y");"h"===t.orientation?(n=h.makeCalcdata(t,"x"),c=v.makeCalcdata(t,"y"),u=a(t,v,"y",c),d=!!t.yperiodalignment):(n=v.makeCalcdata(t,"y"),c=h.makeCalcdata(t,"x"),u=a(t,h,"x",c),d=!!t.xperiodalignment);var m,y=Math.min(u.length,n.length),g=new Array(y);for(t._base=[],f=0;f<y;f++){n[f]<0&&(n[f]=l);var b=!1;n[f]!==l&&f+1<y&&n[f+1]!==l&&(b=!0),p=g[f]={p:u[f],s:n[f],cNext:b},t._base[f]=-.5*p.s,d&&(g[f].orig_p=c[f]),t.ids&&(p.id=String(t.ids[f])),0===f&&(g[0].vTotal=0),g[0].vTotal+=s(p.s),p.begR=s(p.s)/s(g[0].s)}for(f=0;f<y;f++)p=g[f],p.s!==l&&(p.sumR=p.s/g[0].vTotal,p.difR=void 0!==m?p.s/m:1,m=p.s);return o(g,t),i(g,t),g}},{"../../constants/numerical":725,"../../plots/cartesian/align_period":796,"../../plots/cartesian/axes":799,"../scatter/calc_selection":1160,"./arrays_to_calcdata":1014}],1017:[function(e,t,n){"use strict";t.exports={eventDataKeys:["percentInitial","percentPrevious","percentTotal"]}},{}],1018:[function(e,t,n){"use strict";var r=e("../bar/cross_trace_calc").setGroupPositions;t.exports=function(e,t){var n,a,o=e._fullLayout,i=e._fullData,l=e.calcdata,s=t.xaxis,u=t.yaxis,c=[],f=[],p=[];for(a=0;a<i.length;a++){var d=i[a],h="h"===d.orientation;!0===d.visible&&d.xaxis===s._id&&d.yaxis===u._id&&"funnel"===d.type&&(n=l[a],h?p.push(n):f.push(n),c.push(n))}var v={mode:o.funnelmode,norm:o.funnelnorm,gap:o.funnelgap,groupgap:o.funnelgroupgap};for(r(e,s,u,f,v),r(e,u,s,p,v),a=0;a<c.length;a++){n=c[a];for(var m=0;m<n.length;m++)m+1<n.length&&(n[m].nextP0=n[m+1].p0,n[m].nextS0=n[m+1].s0,n[m].nextP1=n[m+1].p1,n[m].nextS1=n[m+1].s1)}}},{"../bar/cross_trace_calc":895}],1019:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../bar/defaults").handleGroupingDefaults,o=e("../bar/defaults").handleText,i=e("../scatter/xy_defaults"),l=e("../scatter/period_defaults"),s=e("./attributes"),u=e("../../components/color");function c(e,t,n,a){function c(n,a){return r.coerce(e,t,s,n,a)}var p=i(e,t,a,c);if(p){l(e,t,a,c),c("orientation",t.y&&!t.x?"v":"h"),c("offset"),c("width");var d=c("text");c("hovertext"),c("hovertemplate");var h=c("textposition");o(e,t,a,c,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"===t.textposition||t.texttemplate||c("textinfo",Array.isArray(d)?"text+value":"value");var v=c("marker.color",n);c("marker.line.color",u.defaultLine),c("marker.line.width");var m=c("connector.visible");if(m){c("connector.fillcolor",f(v));var y=c("connector.line.width");y&&(c("connector.line.color"),c("connector.line.dash"))}}else t.visible=!1}function f(e){var t=r.isArrayOrTypedArray(e)?"#000":e;return u.addOpacity(t,.5*u.opacity(t))}function p(e,t){var n,o;function i(e){return r.coerce(o._input,o,s,e)}if("group"===t.funnelmode)for(var l=0;l<e.length;l++)o=e[l],n=o._input,a(n,o,t,i)}t.exports={supplyDefaults:c,crossTraceDefaults:p}},{"../../components/color":615,"../../lib":750,"../bar/defaults":896,"../scatter/period_defaults":1178,"../scatter/xy_defaults":1185,"./attributes":1015}],1020:[function(e,t,n){"use strict";t.exports=function(e,t){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"percentInitial"in t&&(e.percentInitial=t.percentInitial),"percentPrevious"in t&&(e.percentPrevious=t.percentPrevious),"percentTotal"in t&&(e.percentTotal=t.percentTotal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}},{}],1021:[function(e,t,n){"use strict";var r=e("../../components/color").opacity,a=e("../bar/hover").hoverOnBars,o=e("../../lib").formatPercent;function i(e,t){var n=e.marker,a=t.mc||n.color,o=t.mlc||n.line.color,i=t.mlw||n.line.width;return r(a)?a:r(o)&&i?o:void 0}t.exports=function(e,t,n,r){var l=a(e,t,n,r);if(l){var s=l.cd,u=s[0].trace,c="h"===u.orientation,f=l.index,p=s[f],d=c?"x":"y";l[d+"LabelVal"]=p.s,l.percentInitial=p.begR,l.percentInitialLabel=o(p.begR,1),l.percentPrevious=p.difR,l.percentPreviousLabel=o(p.difR,1),l.percentTotal=p.sumR,l.percentTotalLabel=o(p.sumR,1);var h=p.hi||u.hoverinfo,v=[];if(h&&"none"!==h&&"skip"!==h){var m="all"===h,y=h.split("+"),g=function(e){return m||-1!==y.indexOf(e)};g("percent initial")&&v.push(l.percentInitialLabel+" of initial"),g("percent previous")&&v.push(l.percentPreviousLabel+" of previous"),g("percent total")&&v.push(l.percentTotalLabel+" of total")}return l.extraText=v.join("<br>"),l.color=i(u,p),[l]}}},{"../../components/color":615,"../../lib":750,"../bar/hover":899}],1022:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults").supplyDefaults,crossTraceDefaults:e("./defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc"),plot:e("./plot"),style:e("./style").style,hoverPoints:e("./hover"),eventData:e("./event_data"),selectPoints:e("../bar/select"),moduleType:"trace",name:"funnel",basePlotModule:e("../../plots/cartesian"),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},{"../../plots/cartesian":812,"../bar/select":904,"./attributes":1015,"./calc":1016,"./cross_trace_calc":1018,"./defaults":1019,"./event_data":1020,"./hover":1021,"./layout_attributes":1023,"./layout_defaults":1024,"./plot":1025,"./style":1026}],1023:[function(e,t,n){"use strict";t.exports={funnelmode:{valType:"enumerated",values:["stack","group","overlay"],dflt:"stack",editType:"calc"},funnelgap:{valType:"number",min:0,max:1,editType:"calc"},funnelgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],1024:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t,n){var o=!1;function i(n,o){return r.coerce(e,t,a,n,o)}for(var l=0;l<n.length;l++){var s=n[l];if(s.visible&&"funnel"===s.type){o=!0;break}}o&&(i("funnelmode"),i("funnelgap",.2),i("funnelgroupgap"))}},{"../../lib":750,"./layout_attributes":1023}],1025:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../../components/drawing"),i=e("../../constants/numerical").BADNUM,l=e("../bar/plot"),s=e("../bar/uniform_text").clearMinTextSize;function u(e,t,n,l){var s=t.xaxis,u=t.yaxis;a.makeTraceGroups(l,n,"trace bars").each((function(n){var l=r.select(this),c=n[0].trace,p=a.ensureSingle(l,"g","regions");if(c.connector&&c.connector.visible){var d="h"===c.orientation,h=p.selectAll("g.region").data(a.identity);h.enter().append("g").classed("region",!0),h.exit().remove();var v=h.size();h.each((function(n,l){if(l===v-1||n.cNext){var c=f(n,s,u,d),p=c[0],h=c[1],m="";p[0]!==i&&h[0]!==i&&p[1]!==i&&h[1]!==i&&p[2]!==i&&h[2]!==i&&p[3]!==i&&h[3]!==i&&(m+=d?"M"+p[0]+","+h[1]+"L"+p[2]+","+h[2]+"H"+p[3]+"L"+p[1]+","+h[1]+"Z":"M"+p[1]+","+h[1]+"L"+p[2]+","+h[3]+"V"+h[2]+"L"+p[1]+","+h[0]+"Z"),""===m&&(m="M0,0Z"),a.ensureSingle(r.select(this),"path").attr("d",m).call(o.setClipUrl,t.layerClipId,e)}}))}else p.remove()}))}function c(e,t,n,i){var l=t.xaxis,s=t.yaxis;a.makeTraceGroups(i,n,"trace bars").each((function(n){var i=r.select(this),u=n[0].trace,c=a.ensureSingle(i,"g","lines");if(u.connector&&u.connector.visible&&u.connector.line.width){var p="h"===u.orientation,d=c.selectAll("g.line").data(a.identity);d.enter().append("g").classed("line",!0),d.exit().remove();var h=d.size();d.each((function(n,i){if(i===h-1||n.cNext){var u=f(n,l,s,p),c=u[0],d=u[1],v="";void 0!==c[3]&&void 0!==d[3]&&(p?(v+="M"+c[0]+","+d[1]+"L"+c[2]+","+d[2],v+="M"+c[1]+","+d[1]+"L"+c[3]+","+d[2]):(v+="M"+c[1]+","+d[1]+"L"+c[2]+","+d[3],v+="M"+c[1]+","+d[0]+"L"+c[2]+","+d[2])),""===v&&(v="M0,0Z"),a.ensureSingle(r.select(this),"path").attr("d",v).call(o.setClipUrl,t.layerClipId,e)}}))}else c.remove()}))}function f(e,t,n,r){var a=[],o=[],i=r?t:n,l=r?n:t;return a[0]=i.c2p(e.s0,!0),o[0]=l.c2p(e.p0,!0),a[1]=i.c2p(e.s1,!0),o[1]=l.c2p(e.p1,!0),a[2]=i.c2p(e.nextS0,!0),o[2]=l.c2p(e.nextP0,!0),a[3]=i.c2p(e.nextS1,!0),o[3]=l.c2p(e.nextP1,!0),r?[a,o]:[o,a]}t.exports=function(e,t,n,r){var a=e._fullLayout;s("funnel",a),u(e,t,n,r),c(e,t,n,r),l.plot(e,t,n,r,{mode:a.funnelmode,norm:a.funnelmode,gap:a.funnelgap,groupgap:a.funnelgroupgap})}},{"../../components/drawing":637,"../../constants/numerical":725,"../../lib":750,"../bar/plot":903,"../bar/uniform_text":908,d3:169}],1026:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/drawing"),o=e("../../components/color"),i=e("../../constants/interactions").DESELECTDIM,l=e("../bar/style"),s=e("../bar/uniform_text").resizeText,u=l.styleTextPoints;function c(e,t,n){var l=n||r.select(e).selectAll("g.funnellayer").selectAll("g.trace");s(e,l,"funnel"),l.style("opacity",(function(e){return e[0].trace.opacity})),l.each((function(t){var n=r.select(this),l=t[0].trace;n.selectAll(".point > path").each((function(e){if(!e.isBlank){var t=l.marker;r.select(this).call(o.fill,e.mc||t.color).call(o.stroke,e.mlc||t.line.color).call(a.dashLine,t.line.dash,e.mlw||t.line.width).style("opacity",l.selectedpoints&&!e.selected?i:1)}})),u(n,l,e),n.selectAll(".regions").each((function(){r.select(this).selectAll("path").style("stroke-width",0).call(o.fill,l.connector.fillcolor)})),n.selectAll(".lines").each((function(){var e=l.connector.line;a.lineGroupStyle(r.select(this).selectAll("path"),e.width,e.color,e.dash)}))}))}t.exports={style:c}},{"../../components/color":615,"../../components/drawing":637,"../../constants/interactions":724,"../bar/style":906,"../bar/uniform_text":908,d3:169}],1027:[function(e,t,n){"use strict";var r=e("../pie/attributes"),a=e("../../plots/attributes"),o=e("../../plots/domain").attributes,i=e("../../plots/template_attributes").hovertemplateAttrs,l=e("../../plots/template_attributes").texttemplateAttrs,s=e("../../lib/extend").extendFlat;t.exports={labels:r.labels,label0:r.label0,dlabel:r.dlabel,values:r.values,marker:{colors:r.marker.colors,line:{color:s({},r.marker.line.color,{dflt:null}),width:s({},r.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},text:r.text,hovertext:r.hovertext,scalegroup:s({},r.scalegroup,{}),textinfo:s({},r.textinfo,{flags:["label","text","value","percent"]}),texttemplate:l({editType:"plot"},{keys:["label","color","value","text","percent"]}),hoverinfo:s({},a.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:i({},{keys:["label","color","value","text","percent"]}),textposition:s({},r.textposition,{values:["inside","none"],dflt:"inside"}),textfont:r.textfont,insidetextfont:r.insidetextfont,title:{text:r.title.text,font:r.title.font,position:s({},r.title.position,{values:["top left","top center","top right"],dflt:"top center"}),editType:"plot"},domain:o({name:"funnelarea",trace:!0,editType:"calc"}),aspectratio:{valType:"number",min:0,dflt:1,editType:"plot"},baseratio:{valType:"number",min:0,max:1,dflt:.333,editType:"plot"}}},{"../../lib/extend":740,"../../plots/attributes":795,"../../plots/domain":826,"../../plots/template_attributes":877,"../pie/attributes":1132}],1028:[function(e,t,n){"use strict";var r=e("../../plots/plots");n.name="funnelarea",n.plot=function(e,t,a,o){r.plotBasePlot(n.name,e,t,a,o)},n.clean=function(e,t,a,o){r.cleanBasePlot(n.name,e,t,a,o)}},{"../../plots/plots":862}],1029:[function(e,t,n){"use strict";var r=e("../pie/calc");function a(e,t){return r.calc(e,t)}function o(e){r.crossTraceCalc(e,{type:"funnelarea"})}t.exports={calc:a,crossTraceCalc:o}},{"../pie/calc":1134}],1030:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),o=e("../../plots/domain").defaults,i=e("../bar/defaults").handleText,l=e("../pie/defaults").handleLabelsAndValues;t.exports=function(e,t,n,s){function u(n,o){return r.coerce(e,t,a,n,o)}var c=u("labels"),f=u("values"),p=l(c,f),d=p.len;if(t._hasLabels=p.hasLabels,t._hasValues=p.hasValues,!t._hasLabels&&t._hasValues&&(u("label0"),u("dlabel")),d){t._length=d;var h=u("marker.line.width");h&&u("marker.line.color",s.paper_bgcolor),u("marker.colors"),u("scalegroup");var v,m=u("text"),y=u("texttemplate");if(y||(v=u("textinfo",Array.isArray(m)?"text+percent":"percent")),u("hovertext"),u("hovertemplate"),y||v&&"none"!==v){var g=u("textposition");i(e,t,s,u,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}o(t,s,u);var b=u("title.text");b&&(u("title.position"),r.coerceFont(u,"title.font",s.font)),u("aspectratio"),u("baseratio")}else t.visible=!1}},{"../../lib":750,"../../plots/domain":826,"../bar/defaults":896,"../pie/defaults":1135,"./attributes":1027}],1031:[function(e,t,n){"use strict";t.exports={moduleType:"trace",name:"funnelarea",basePlotModule:e("./base_plot"),categories:["pie-like","funnelarea","showLegend"],attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults"),supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc").calc,crossTraceCalc:e("./calc").crossTraceCalc,plot:e("./plot"),style:e("./style"),styleOne:e("../pie/style_one"),meta:{}}},{"../pie/style_one":1143,"./attributes":1027,"./base_plot":1028,"./calc":1029,"./defaults":1030,"./layout_attributes":1032,"./layout_defaults":1033,"./plot":1034,"./style":1035}],1032:[function(e,t,n){"use strict";var r=e("../pie/layout_attributes").hiddenlabels;t.exports={hiddenlabels:r,funnelareacolorway:{valType:"colorlist",editType:"calc"},extendfunnelareacolors:{valType:"boolean",dflt:!0,editType:"calc"}}},{"../pie/layout_attributes":1139}],1033:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t){function n(n,o){return r.coerce(e,t,a,n,o)}n("hiddenlabels"),n("funnelareacolorway",t.colorway),n("extendfunnelareacolors")}},{"../../lib":750,"./layout_attributes":1032}],1034:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/drawing"),o=e("../../lib"),i=e("../../lib/svg_text_utils"),l=e("../bar/plot"),s=l.toMoveInsideBar,u=e("../bar/uniform_text"),c=u.recordMinTextSize,f=u.clearMinTextSize,p=e("../pie/helpers"),d=e("../pie/plot"),h=d.attachFxHandlers,v=d.determineInsideTextFont,m=d.layoutAreas,y=d.prerenderTitles,g=d.positionTitleOutside,b=d.formatSliceLabel;function x(e,t){var n=t[0]-e[0],r=t[1]-e[1];return"l"+n+","+r}function _(e,t){return[.5*(e[0]+t[0]),.5*(e[1]+t[1])]}function w(e){if(e.length){var t=e[0],n=t.trace,r=n.aspectratio,a=n.baseratio;a>.999&&(a=.999);var o,i,l,s=Math.pow(a,2),u=t.vTotal,c=u*s/(1-s),f=u,p=c/u,d=[];for(d.push(C()),i=e.length-1;i>-1;i--)if(l=e[i],!l.hidden){var h=l.v/f;p+=h,d.push(C())}var v=1/0,m=-1/0;for(i=0;i<d.length;i++)o=d[i],v=Math.min(v,o[1]),m=Math.max(m,o[1]);for(i=0;i<d.length;i++)d[i][1]-=(m+v)/2;var y=d[d.length-1][0],g=t.r,b=(m-v)/2,x=g/y,w=g/b*r;for(t.r=w*b,i=0;i<d.length;i++)d[i][0]*=x,d[i][1]*=w;o=d[0];var k=[-o[0],o[1]],T=[o[0],o[1]],E=0;for(i=e.length-1;i>-1;i--)if(l=e[i],!l.hidden){E+=1;var O=d[E][0],M=d[E][1];l.TL=[-O,M],l.TR=[O,M],l.BL=k,l.BR=T,l.pxmid=_(l.TR,l.BR),k=l.TL,T=l.TR}}function S(){var e=Math.sqrt(p);return{x:e,y:-e}}function C(){var e=S();return[e.x,e.y]}}t.exports=function(e,t){var n=e._fullLayout;f("funnelarea",n),y(t,e),m(t,n._size),o.makeTraceGroups(n._funnelarealayer,t,"trace").each((function(t){var l=r.select(this),u=t[0],f=u.trace;w(t),l.each((function(){var l=r.select(this).selectAll("g.slice").data(t);l.enter().append("g").classed("slice",!0),l.exit().remove(),l.each((function(l,d){if(l.hidden)r.select(this).selectAll("path,g").remove();else{l.pointNumber=l.i,l.curveNumber=f.index;var m=u.cx,y=u.cy,g=r.select(this),_=g.selectAll("path.surface").data([l]);_.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),g.call(h,e,t);var w="M"+(m+l.TR[0])+","+(y+l.TR[1])+x(l.TR,l.BR)+x(l.BR,l.BL)+x(l.BL,l.TL)+"Z";_.attr("d",w),b(e,l,u);var k=p.castOption(f.textposition,l.pts),T=g.selectAll("g.slicetext").data(l.text&&"none"!==k?[0]:[]);T.enter().append("g").classed("slicetext",!0),T.exit().remove(),T.each((function(){var u=o.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),p=o.ensureUniformFontSize(e,v(f,l,n.font));u.text(l.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(a.font,p).call(i.convertToTspans,e);var h,g,b,x=a.bBox(u.node()),_=Math.min(l.BL[1],l.BR[1])+y,w=Math.max(l.TL[1],l.TR[1])+y;g=Math.max(l.TL[0],l.BL[0])+m,b=Math.min(l.TR[0],l.BR[0])+m,h=s(g,b,_,w,x,{isHorizontal:!0,constrained:!0,angle:0,anchor:"middle"}),h.fontSize=p.size,c(f.type,h,n),t[d].transform=h,u.attr("transform",o.getTextTransform(h))}))}}));var d=r.select(this).selectAll("g.titletext").data(f.title.text?[0]:[]);d.enter().append("g").classed("titletext",!0),d.exit().remove(),d.each((function(){var t=o.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),l=f.title.text;f._meta&&(l=o.templateString(l,f._meta)),t.text(l).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(a.font,f.title.font).call(i.convertToTspans,e);var s=g(u,n._size);t.attr("transform","translate("+s.x+","+s.y+")"+(s.scale<1?"scale("+s.scale+")":"")+"translate("+s.tx+","+s.ty+")")}))}))}))}},{"../../components/drawing":637,"../../lib":750,"../../lib/svg_text_utils":774,"../bar/plot":903,"../bar/uniform_text":908,"../pie/helpers":1137,"../pie/plot":1141,d3:169}],1035:[function(e,t,n){"use strict";var r=e("d3"),a=e("../pie/style_one"),o=e("../bar/uniform_text").resizeText;t.exports=function(e){var t=e._fullLayout._funnelarealayer.selectAll(".trace");o(e,t,"funnelarea"),t.each((function(e){var t=e[0],n=t.trace,o=r.select(this);o.style({opacity:n.opacity}),o.selectAll("path.surface").each((function(e){r.select(this).call(a,e,n)}))}))}},{"../bar/uniform_text":908,"../pie/style_one":1143,d3:169}],1036:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),a=e("../../plots/attributes"),o=e("../../plots/template_attributes").hovertemplateAttrs,i=e("../../components/colorscale/attributes"),l=(e("../../constants/docs").FORMAT_LINK,e("../../lib/extend").extendFlat);t.exports=l({z:{valType:"data_array",editType:"calc"},x:l({},r.x,{impliedEdits:{xtype:"array"}}),x0:l({},r.x0,{impliedEdits:{xtype:"scaled"}}),dx:l({},r.dx,{impliedEdits:{xtype:"scaled"}}),y:l({},r.y,{impliedEdits:{ytype:"array"}}),y0:l({},r.y0,{impliedEdits:{ytype:"scaled"}}),dy:l({},r.dy,{impliedEdits:{ytype:"scaled"}}),xperiod:l({},r.xperiod,{impliedEdits:{xtype:"scaled"}}),yperiod:l({},r.yperiod,{impliedEdits:{ytype:"scaled"}}),xperiod0:l({},r.xperiod0,{impliedEdits:{xtype:"scaled"}}),yperiod0:l({},r.yperiod0,{impliedEdits:{ytype:"scaled"}}),xperiodalignment:l({},r.xperiodalignment,{impliedEdits:{xtype:"scaled"}}),yperiodalignment:l({},r.yperiodalignment,{impliedEdits:{ytype:"scaled"}}),text:{valType:"data_array",editType:"calc"},hovertext:{valType:"data_array",editType:"calc"},transpose:{valType:"boolean",dflt:!1,editType:"calc"},xtype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},ytype:{valType:"enumerated",values:["array","scaled"],editType:"calc+clearAxisTypes"},zsmooth:{valType:"enumerated",values:["fast","best",!1],dflt:!1,editType:"calc"},hoverongaps:{valType:"boolean",dflt:!0,editType:"none"},connectgaps:{valType:"boolean",editType:"calc"},xgap:{valType:"number",dflt:0,min:0,editType:"plot"},ygap:{valType:"number",dflt:0,min:0,editType:"plot"},zhoverformat:{valType:"string",dflt:"",editType:"none"},hovertemplate:o(),showlegend:l({},a.showlegend,{dflt:!1})},{transforms:void 0},i("",{cLetter:"z",autoColorDflt:!1}))},{"../../components/colorscale/attributes":622,"../../constants/docs":720,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../scatter/attributes":1158}],1037:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),o=e("../../plots/cartesian/axes"),i=e("../../plots/cartesian/align_period"),l=e("../histogram2d/calc"),s=e("../../components/colorscale/calc"),u=e("./convert_column_xyz"),c=e("./clean_2d_array"),f=e("./interp2d"),p=e("./find_empties"),d=e("./make_bound_array"),h=e("../../constants/numerical").BADNUM;function v(e){for(var t=[],n=e.length,r=0;r<n;r++){var a=e[r];a!==h&&t.push(a)}return t}function m(e,t,n){for(var r=[],a=-1,o=0;o<n.length;o++)if(t[o]!==h){a++,r[a]=[];for(var i=0;i<n[o].length;i++)e[i]!==h&&r[a].push(n[o][i])}return r}t.exports=function(e,t){var n,h,y,g,b,x,_,w,k,T,E,O=o.getFromId(e,t.xaxis||"x"),M=o.getFromId(e,t.yaxis||"y"),S=r.traceIs(t,"contour"),C=r.traceIs(t,"histogram"),A=r.traceIs(t,"gl2d"),P=S?"best":t.zsmooth;if(O._minDtick=0,M._minDtick=0,C)E=l(e,t),g=E.orig_x,n=E.x,h=E.x0,y=E.dx,w=E.orig_y,b=E.y,x=E.y0,_=E.dy,k=E.z;else{var L=t.z;a.isArray1D(L)?(u(t,O,M,"x","y",["z"]),n=t._x,b=t._y,L=t._z):(g=t.x?O.makeCalcdata(t,"x"):[],w=t.y?M.makeCalcdata(t,"y"):[],n=i(t,O,"x",g),b=i(t,M,"y",w),t._x=n,t._y=b),h=t.x0,y=t.dx,x=t.y0,_=t.dy,k=c(L,t,O,M)}function D(e){P=t._input.zsmooth=t.zsmooth=!1,a.warn('cannot use zsmooth: "fast": '+e)}if((O.rangebreaks||M.rangebreaks)&&(k=m(n,b,k),C||(n=v(n),b=v(b),t._x=n,t._y=b)),C||!S&&!t.connectgaps||(t._emptypoints=p(k),f(k,t._emptypoints)),"fast"===P)if("log"===O.type||"log"===M.type)D("log axis found");else if(!C){if(n.length){var j=(n[n.length-1]-n[0])/(n.length-1),I=Math.abs(j/100);for(T=0;T<n.length-1;T++)if(Math.abs(n[T+1]-n[T]-j)>I){D("x scale is not linear");break}}if(b.length&&"fast"===P){var R=(b[b.length-1]-b[0])/(b.length-1),z=Math.abs(R/100);for(T=0;T<b.length-1;T++)if(Math.abs(b[T+1]-b[T]-R)>z){D("y scale is not linear");break}}}var N=a.maxRowLength(k),F="scaled"===t.xtype?"":n,B=d(t,F,h,y,N,O),V="scaled"===t.ytype?"":b,H=d(t,V,x,_,k.length,M);A||(t._extremes[O._id]=o.findExtremes(O,B),t._extremes[M._id]=o.findExtremes(M,H));var U={x:B,y:H,z:k,text:t._text||t.text,hovertext:t._hovertext||t.hovertext};if(t.xperiodalignment&&g&&(U.orig_x=g),t.yperiodalignment&&w&&(U.orig_y=w),F&&F.length===B.length-1&&(U.xCenter=F),V&&V.length===H.length-1&&(U.yCenter=V),C&&(U.xRanges=E.xRanges,U.yRanges=E.yRanges,U.pts=E.pts),S||s(e,t,{vals:k,cLetter:"z"}),S&&t.contours&&"heatmap"===t.contours.coloring){var W={type:"contour"===t.type?"heatmap":"histogram2d",xcalendar:t.xcalendar,ycalendar:t.ycalendar};U.xfill=d(W,F,h,y,N,O),U.yfill=d(W,V,x,_,k.length,M)}return[U]}},{"../../components/colorscale/calc":623,"../../constants/numerical":725,"../../lib":750,"../../plots/cartesian/align_period":796,"../../plots/cartesian/axes":799,"../../registry":882,"../histogram2d/calc":1069,"./clean_2d_array":1038,"./convert_column_xyz":1040,"./find_empties":1042,"./interp2d":1045,"./make_bound_array":1046}],1038:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("../../constants/numerical").BADNUM;t.exports=function(e,t,n,i){var l,s,u,c,f,p;function d(e){if(r(e))return+e}if(t&&t.transpose){for(l=0,f=0;f<e.length;f++)l=Math.max(l,e[f].length);if(0===l)return!1;u=function(e){return e.length},c=function(e,t,n){return(e[n]||[])[t]}}else l=e.length,u=function(e,t){return e[t].length},c=function(e,t,n){return(e[t]||[])[n]};var h=function(e,t,n){return t===o||n===o?o:c(e,t,n)};function v(e){if(t&&"carpet"!==t.type&&"contourcarpet"!==t.type&&e&&"category"===e.type&&t["_"+e._id.charAt(0)].length){var n=e._id.charAt(0),r={},i=t["_"+n+"CategoryMap"]||t[n];for(f=0;f<i.length;f++)r[i[f]]=f;return function(t){var n=r[e._categories[t]];return n+1?n:o}}return a.identity}var m=v(n),y=v(i);i&&"category"===i.type&&(l=i._categories.length);var g=new Array(l);for(f=0;f<l;f++)for(s=n&&"category"===n.type?n._categories.length:u(e,f),g[f]=new Array(s),p=0;p<s;p++)g[f][p]=d(h(e,y(f),m(p)));return g}},{"../../constants/numerical":725,"../../lib":750,"fast-isnumeric":241}],1039:[function(e,t,n){"use strict";t.exports={min:"zmin",max:"zmax"}},{}],1040:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../constants/numerical").BADNUM,o=e("../../plots/cartesian/align_period");t.exports=function(e,t,n,i,l,s){var u=e._length,c=t.makeCalcdata(e,i),f=n.makeCalcdata(e,l);c=o(e,t,i,c),f=o(e,n,l,f);var p,d,h,v,m=e.text,y=void 0!==m&&r.isArray1D(m),g=e.hovertext,b=void 0!==g&&r.isArray1D(g),x=r.distinctVals(c),_=x.vals,w=r.distinctVals(f),k=w.vals,T=[],E=k.length,O=_.length;for(p=0;p<s.length;p++)T[p]=r.init2dArray(E,O);y&&(h=r.init2dArray(E,O)),b&&(v=r.init2dArray(E,O));var M=r.init2dArray(E,O);for(p=0;p<u;p++)if(c[p]!==a&&f[p]!==a){var S=r.findBin(c[p]+x.minDiff/2,_),C=r.findBin(f[p]+w.minDiff/2,k);for(d=0;d<s.length;d++){var A=s[d],P=e[A],L=T[d];L[C][S]=P[p],M[C][S]=p}y&&(h[C][S]=m[p]),b&&(v[C][S]=g[p])}for(e["_"+i]=_,e["_"+l]=k,d=0;d<s.length;d++)e["_"+s[d]]=T[d];y&&(e._text=h),b&&(e._hovertext=v),t&&"category"===t.type&&(e["_"+i+"CategoryMap"]=_.map((function(e){return t._categories[e]}))),n&&"category"===n.type&&(e["_"+l+"CategoryMap"]=k.map((function(e){return n._categories[e]}))),e._after2before=M}},{"../../constants/numerical":725,"../../lib":750,"../../plots/cartesian/align_period":796}],1041:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./xyz_defaults"),o=e("../scatter/period_defaults"),i=e("./style_defaults"),l=e("../../components/colorscale/defaults"),s=e("./attributes");t.exports=function(e,t,n,u){function c(n,a){return r.coerce(e,t,s,n,a)}var f=a(e,t,c,u);f?(o(e,t,u,c),c("text"),c("hovertext"),c("hovertemplate"),i(e,t,c,u),c("hoverongaps"),c("connectgaps",r.isArray1D(t.z)&&!1!==t.zsmooth),l(e,t,u,c,{prefix:"",cLetter:"z"})):t.visible=!1}},{"../../components/colorscale/defaults":625,"../../lib":750,"../scatter/period_defaults":1178,"./attributes":1036,"./style_defaults":1049,"./xyz_defaults":1050}],1042:[function(e,t,n){"use strict";var r=e("../../lib").maxRowLength;t.exports=function(e){var t,n,a,o,i,l,s,u,c=[],f={},p=[],d=e[0],h=[],v=[0,0,0],m=r(e);for(n=0;n<e.length;n++)for(t=h,h=d,d=e[n+1]||[],a=0;a<m;a++)void 0===h[a]&&(l=(void 0!==h[a-1]?1:0)+(void 0!==h[a+1]?1:0)+(void 0!==t[a]?1:0)+(void 0!==d[a]?1:0),l?(0===n&&l++,0===a&&l++,n===e.length-1&&l++,a===h.length-1&&l++,l<4&&(f[[n,a]]=[n,a,l]),c.push([n,a,l])):p.push([n,a]));while(p.length){for(s={},u=!1,i=p.length-1;i>=0;i--)o=p[i],n=o[0],a=o[1],l=((f[[n-1,a]]||v)[2]+(f[[n+1,a]]||v)[2]+(f[[n,a-1]]||v)[2]+(f[[n,a+1]]||v)[2])/20,l&&(s[o]=[n,a,l],p.splice(i,1),u=!0);if(!u)throw"findEmpties iterated with no new neighbors";for(o in s)f[o]=s[o],c.push(s[o])}return c.sort((function(e,t){return t[2]-e[2]}))}},{"../../lib":750}],1043:[function(e,t,n){"use strict";var r=e("../../components/fx"),a=e("../../lib"),o=e("../../plots/cartesian/axes"),i=e("../../components/colorscale").extractOpts;t.exports=function(e,t,n,l,s,u){var c,f,p,d,h=e.cd[0],v=h.trace,m=e.xa,y=e.ya,g=h.x,b=h.y,x=h.z,_=h.xCenter,w=h.yCenter,k=h.zmask,T=v.zhoverformat,E=g,O=b;if(!1!==e.index){try{p=Math.round(e.index[1]),d=Math.round(e.index[0])}catch(F){return void a.error("Error hovering on heatmap, pointNumber must be [row,col], found:",e.index)}if(p<0||p>=x[0].length||d<0||d>x.length)return}else{if(r.inbox(t-g[0],t-g[g.length-1],0)>0||r.inbox(n-b[0],n-b[b.length-1],0)>0)return;if(u){var M;for(E=[2*g[0]-g[1]],M=1;M<g.length;M++)E.push((g[M]+g[M-1])/2);for(E.push([2*g[g.length-1]-g[g.length-2]]),O=[2*b[0]-b[1]],M=1;M<b.length;M++)O.push((b[M]+b[M-1])/2);O.push([2*b[b.length-1]-b[b.length-2]])}p=Math.max(0,Math.min(E.length-2,a.findBin(t,E))),d=Math.max(0,Math.min(O.length-2,a.findBin(n,O)))}var S,C,A=m.c2p(g[p]),P=m.c2p(g[p+1]),L=y.c2p(b[d]),D=y.c2p(b[d+1]);u?(S=h.orig_x||g,C=h.orig_y||b,P=A,c=S[p],D=L,f=C[d]):(S=h.orig_x||_||g,C=h.orig_y||w||b,c=_?S[p]:(S[p]+S[p+1])/2,f=w?C[d]:(C[d]+C[d+1])/2,m&&"category"===m.type&&(c=g[p]),y&&"category"===y.type&&(f=b[d]),v.zsmooth&&(A=P=m.c2p(c),L=D=y.c2p(f)));var j=x[d][p];if(k&&!k[d][p]&&(j=void 0),void 0!==j||v.hoverongaps){var I;Array.isArray(h.hovertext)&&Array.isArray(h.hovertext[d])?I=h.hovertext[d][p]:Array.isArray(h.text)&&Array.isArray(h.text[d])&&(I=h.text[d][p]);var R=i(v),z={type:"linear",range:[R.min,R.max],hoverformat:T,_separators:m._separators,_numFormat:m._numFormat},N=o.tickText(z,j,"hover").text;return[a.extendFlat(e,{index:v._after2before?v._after2before[d][p]:[d,p],distance:e.maxHoverDistance,spikeDistance:e.maxSpikeDistance,x0:A,x1:P,y0:L,y1:D,xLabelVal:c,yLabelVal:f,zLabelVal:j,zLabel:N,text:I})]}}},{"../../components/colorscale":627,"../../components/fx":655,"../../lib":750,"../../plots/cartesian/axes":799}],1044:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot"),colorbar:e("./colorbar"),style:e("./style"),hoverPoints:e("./hover"),moduleType:"trace",name:"heatmap",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","showLegend"],meta:{}}},{"../../plots/cartesian":812,"./attributes":1036,"./calc":1037,"./colorbar":1039,"./defaults":1041,"./hover":1043,"./plot":1047,"./style":1048}],1045:[function(e,t,n){"use strict";var r=e("../../lib"),a=.01,o=[[-1,0],[1,0],[0,-1],[0,1]];function i(e){return.5-.25*Math.min(1,.5*e)}function l(e,t,n){var r,a,i,l,s,u,c,f,p,d,h,v,m,y=0;for(l=0;l<t.length;l++){for(r=t[l],a=r[0],i=r[1],h=e[a][i],d=0,p=0,s=0;s<4;s++)u=o[s],c=e[a+u[0]],c&&(f=c[i+u[1]],void 0!==f&&(0===d?v=m=f:(v=Math.min(v,f),m=Math.max(m,f)),p++,d+=f));if(0===p)throw"iterateInterp2d order is wrong: no defined neighbors";e[a][i]=d/p,void 0===h?p<4&&(y=1):(e[a][i]=(1+n)*e[a][i]-n*h,m>v&&(y=Math.max(y,Math.abs(e[a][i]-h)/(m-v))))}return y}t.exports=function(e,t){var n,o=1;for(l(e,t),n=0;n<t.length;n++)if(t[n][2]<4)break;for(t=t.slice(n),n=0;n<100&&o>a;n++)o=l(e,t,i(o));return o>a&&r.log("interp2d didn't converge quickly",o),e}},{"../../lib":750}],1046:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib").isArrayOrTypedArray;t.exports=function(e,t,n,o,i,l){var s,u,c,f=[],p=r.traceIs(e,"contour"),d=r.traceIs(e,"histogram"),h=r.traceIs(e,"gl2d"),v=a(t)&&t.length>1;if(v&&!d&&"category"!==l.type){var m=t.length;if(!(m<=i))return p?t.slice(0,i):t.slice(0,i+1);if(p||h)f=t.slice(0,i);else if(1===i)f=[t[0]-.5,t[0]+.5];else{for(f=[1.5*t[0]-.5*t[1]],c=1;c<m;c++)f.push(.5*(t[c-1]+t[c]));f.push(1.5*t[m-1]-.5*t[m-2])}if(m<i){var y=f[f.length-1],g=y-f[f.length-2];for(c=m;c<i;c++)y+=g,f.push(y)}}else{var b=e[l._id.charAt(0)+"calendar"];if(d)s=l.r2c(n,0,b);else if(a(t)&&1===t.length)s=t[0];else if(void 0===n)s=0;else{var x="log"===l.type?l.d2c:l.r2c;s=x(n,0,b)}for(u=o||1,c=p||h?0:-.5;c<i;c++)f.push(s+u*c)}return f}},{"../../lib":750,"../../registry":882}],1047:[function(e,t,n){"use strict";var r=e("d3"),a=e("tinycolor2"),o=e("../../registry"),i=e("../../lib"),l=e("../../components/colorscale").makeColorScaleFuncFromTrace,s=e("../../constants/xmlns_namespaces");function u(e,t){var n=t.length-2,r=i.constrain(i.findBin(e,t),0,n),a=t[r],o=t[r+1],l=i.constrain(r+(e-a)/(o-a)-.5,0,n),s=Math.round(l),u=Math.abs(l-s);return l&&l!==n&&u?{bin0:s,frac:u,bin1:Math.round(s+u/(l-s))}:{bin0:s,bin1:s,frac:0}}function c(e,t){var n=t.length-1,r=i.constrain(i.findBin(e,t),0,n),a=t[r],o=t[r+1],l=(e-a)/(o-a)||0;return l<=0?{bin0:r,bin1:r,frac:0}:l<.5?{bin0:r,bin1:r+1,frac:l}:{bin0:r+1,bin1:r,frac:1-l}}function f(e,t,n){e[t]=n[0],e[t+1]=n[1],e[t+2]=n[2],e[t+3]=Math.round(255*n[3])}t.exports=function(e,t,n,p){var d=t.xaxis,h=t.yaxis;i.makeTraceGroups(p,n,"hm").each((function(t){var n,p,v,m,y,g,b=r.select(this),x=t[0],_=x.trace,w=x.z,k=x.x,T=x.y,E=x.xCenter,O=x.yCenter,M=o.traceIs(_,"contour"),S=M?"best":_.zsmooth,C=w.length,A=i.maxRowLength(w),P=!1,L=!1;g=0;while(void 0===n&&g<k.length-1)n=d.c2p(k[g]),g++;g=k.length-1;while(void 0===p&&g>0)p=d.c2p(k[g]),g--;p<n&&(v=p,p=n,n=v,P=!0),g=0;while(void 0===m&&g<T.length-1)m=h.c2p(T[g]),g++;g=T.length-1;while(void 0===y&&g>0)y=h.c2p(T[g]),g--;if(y<m&&(v=m,m=y,y=v,L=!0),M&&(E=k,O=T,k=x.xfill,T=x.yfill),"fast"!==S){var D="best"===S?0:.5;n=Math.max(-D*d._length,n),p=Math.min((1+D)*d._length,p),m=Math.max(-D*h._length,m),y=Math.min((1+D)*h._length,y)}var j=Math.round(p-n),I=Math.round(y-m),R=j<=0||I<=0;if(R){var z=b.selectAll("image").data([]);z.exit().remove()}else{var N,F;"fast"===S?(N=A,F=C):(N=j,F=I);var B=document.createElement("canvas");B.width=N,B.height=F;var V,H,U=B.getContext("2d"),W=l(_,{noNumericCheck:!0,returnArray:!0});"fast"===S?(V=P?function(e){return A-1-e}:i.identity,H=L?function(e){return C-1-e}:i.identity):(V=function(e){return i.constrain(Math.round(d.c2p(k[e])-n),0,j)},H=function(e){return i.constrain(Math.round(h.c2p(T[e])-m),0,I)});var q,$,G,Y,K,X,Z=H(0),J=[Z,Z],Q=P?0:1,ee=L?0:1,te=0,ne=0,re=0,ae=0;if(S){var oe,ie=0;try{oe=new Uint8Array(j*I*4)}catch(Se){oe=new Array(j*I*4)}if("best"===S){var le,se,ue,ce=E||k,fe=O||T,pe=new Array(ce.length),de=new Array(fe.length),he=new Array(j),ve=E?c:u,me=O?c:u;for(g=0;g<ce.length;g++)pe[g]=Math.round(d.c2p(ce[g])-n);for(g=0;g<fe.length;g++)de[g]=Math.round(h.c2p(fe[g])-m);for(g=0;g<j;g++)he[g]=ve(g,pe);for($=0;$<I;$++)for(le=me($,de),se=w[le.bin0],ue=w[le.bin1],g=0;g<j;g++,ie+=4)X=Me(se,ue,he[g],le),f(oe,ie,X)}else for($=0;$<C;$++)for(K=w[$],J=H($),g=0;g<j;g++)X=Oe(K[g],1),ie=4*(J*j+V(g)),f(oe,ie,X);var ye=U.createImageData(j,I);try{ye.data.set(oe)}catch(Se){var ge=ye.data,be=ge.length;for($=0;$<be;$++)ge[$]=oe[$]}U.putImageData(ye,0,0)}else{var xe=_.xgap,_e=_.ygap,we=Math.floor(xe/2),ke=Math.floor(_e/2);for($=0;$<C;$++)if(K=w[$],J.reverse(),J[ee]=H($+1),J[0]!==J[1]&&void 0!==J[0]&&void 0!==J[1])for(G=V(0),q=[G,G],g=0;g<A;g++)q.reverse(),q[Q]=V(g+1),q[0]!==q[1]&&void 0!==q[0]&&void 0!==q[1]&&(Y=K[g],X=Oe(Y,(q[1]-q[0])*(J[1]-J[0])),U.fillStyle="rgba("+X.join(",")+")",U.fillRect(q[0]+we,J[0]+ke,q[1]-q[0]-xe,J[1]-J[0]-_e))}ne=Math.round(ne/te),re=Math.round(re/te),ae=Math.round(ae/te);var Te=a("rgb("+ne+","+re+","+ae+")");e._hmpixcount=(e._hmpixcount||0)+te,e._hmlumcount=(e._hmlumcount||0)+te*Te.getLuminance();var Ee=b.selectAll("image").data(t);Ee.enter().append("svg:image").attr({xmlns:s.svg,preserveAspectRatio:"none"}),Ee.attr({height:I,width:j,x:n,y:m,"xlink:href":B.toDataURL("image/png")})}function Oe(e,t){if(void 0!==e){var n=W(e);return n[0]=Math.round(n[0]),n[1]=Math.round(n[1]),n[2]=Math.round(n[2]),te+=t,ne+=n[0]*t,re+=n[1]*t,ae+=n[2]*t,n}return[0,0,0,0]}function Me(e,t,n,r){var a=e[n.bin0];if(void 0===a)return Oe(void 0,1);var o,i=e[n.bin1],l=t[n.bin0],s=t[n.bin1],u=i-a||0,c=l-a||0;return o=void 0===i?void 0===s?0:void 0===l?2*(s-a):2*(2*s-l-a)/3:void 0===s?void 0===l?0:2*(2*a-i-l)/3:void 0===l?2*(2*s-i-a)/3:s+a-i-l,Oe(a+n.frac*u+r.frac*(c+n.frac*o))}}))}},{"../../components/colorscale":627,"../../constants/xmlns_namespaces":726,"../../lib":750,"../../registry":882,d3:169,tinycolor2:548}],1048:[function(e,t,n){"use strict";var r=e("d3");t.exports=function(e){r.select(e).selectAll(".hm image").style("opacity",(function(e){return e.trace.opacity}))}},{d3:169}],1049:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r=n("zsmooth");!1===r&&(n("xgap"),n("ygap")),n("zhoverformat")}},{}],1050:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("../../registry");function i(e,t){var n=t(e),r=n?t(e+"type","array"):"scaled";return"scaled"===r&&(t(e+"0"),t("d"+e)),n}function l(e){for(var t,n=!0,o=!1,i=!1,l=0;l<e.length;l++){if(t=e[l],!a.isArrayOrTypedArray(t)){n=!1;break}t.length>0&&(o=!0);for(var s=0;s<t.length;s++)if(r(t[s])){i=!0;break}}return n&&o&&i}t.exports=function(e,t,n,r,s,u){var c,f,p=n("z");if(s=s||"x",u=u||"y",void 0===p||!p.length)return 0;if(a.isArray1D(e.z)){c=n(s),f=n(u);var d=a.minRowLength(c),h=a.minRowLength(f);if(0===d||0===h)return 0;t._length=Math.min(d,h,p.length)}else{if(c=i(s,n),f=i(u,n),!l(p))return 0;n("transpose"),t._length=null}if("heatmapgl"===e.type||"contourgl"===e.type)return!0;var v=o.getComponentMethod("calendars","handleTraceDefaults");return v(e,t,[s,u],r),!0}},{"../../lib":750,"../../registry":882,"fast-isnumeric":241}],1051:[function(e,t,n){"use strict";for(var r=e("../heatmap/attributes"),a=e("../../components/colorscale/attributes"),o=e("../../lib/extend").extendFlat,i=e("../../plot_api/edit_types").overrideAll,l=["z","x","x0","dx","y","y0","dy","text","transpose","xtype","ytype"],s={},u=0;u<l.length;u++){var c=l[u];s[c]=r[c]}s.zsmooth={valType:"enumerated",values:["fast",!1],dflt:"fast",editType:"calc"},o(s,a("",{cLetter:"z",autoColorDflt:!1})),t.exports=i(s,"calc","nested")},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plot_api/edit_types":781,"../heatmap/attributes":1036}],1052:[function(e,t,n){"use strict";var r=e("gl-heatmap2d"),a=e("../../plots/cartesian/axes"),o=e("../../lib/str2rgbarray");function i(e,t){this.scene=e,this.uid=t,this.type="heatmapgl",this.name="",this.hoverinfo="all",this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={zsmooth:"fast",z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=r(e.glplot,this.options),this.heatmap._trace=this}var l=i.prototype;function s(e){for(var t=e.colorscale,n=e.zmin,r=e.zmax,a=t.length,i=new Array(a),l=new Array(4*a),s=0;s<a;s++){var u=t[s],c=o(u[1]);i[s]=n+u[0]*(r-n);for(var f=0;f<4;f++)l[4*s+f]=c[f]}return{colorLevels:i,colorValues:l}}function u(e,t,n){var r=new i(e,t.uid);return r.update(t,n),r}l.handlePick=function(e){var t=this.options,n=t.shape,r=e.pointId,a=r%n[0],o=Math.floor(r/n[0]),i=r;return{trace:this,dataCoord:e.dataCoord,traceCoord:[t.x[a],t.y[o],t.z[i]],textLabel:this.textLabels[r],name:this.name,pointIndex:[o,a],hoverinfo:this.hoverinfo}},l.update=function(e,t){var n=t[0];this.index=e.index,this.name=e.name,this.hoverinfo=e.hoverinfo;var r=n.z;this.options.z=[].concat.apply([],r);var o=r[0].length,i=r.length;this.options.shape=[o,i],this.options.x=n.x,this.options.y=n.y,this.options.zsmooth=e.zsmooth;var l=s(e);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],e.text),this.heatmap.update(this.options);var u,c,f=this.scene.xaxis,p=this.scene.yaxis;!1===e.zsmooth&&(u={ppad:n.x[1]-n.x[0]},c={ppad:n.y[1]-n.y[0]}),e._extremes[f._id]=a.findExtremes(f,n.x,u),e._extremes[p._id]=a.findExtremes(p,n.y,c)},l.dispose=function(){this.heatmap.dispose()},t.exports=u},{"../../lib/str2rgbarray":773,"../../plots/cartesian/axes":799,"gl-heatmap2d":268}],1053:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../heatmap/xyz_defaults"),o=e("../../components/colorscale/defaults"),i=e("./attributes");t.exports=function(e,t,n,l){function s(n,a){return r.coerce(e,t,i,n,a)}var u=a(e,t,s,l);u?(s("text"),s("zsmooth"),o(e,t,l,s,{prefix:"",cLetter:"z"})):t.visible=!1}},{"../../components/colorscale/defaults":625,"../../lib":750,"../heatmap/xyz_defaults":1050,"./attributes":1051}],1054:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../heatmap/colorbar"),calc:e("../heatmap/calc"),plot:e("./convert"),moduleType:"trace",name:"heatmapgl",basePlotModule:e("../../plots/gl2d"),categories:["gl","gl2d","2dMap"],meta:{}}},{"../../plots/gl2d":839,"../heatmap/calc":1037,"../heatmap/colorbar":1039,"./attributes":1051,"./convert":1052,"./defaults":1053}],1055:[function(e,t,n){"use strict";var r=e("../bar/attributes"),a=e("../../plots/template_attributes").hovertemplateAttrs,o=e("./bin_attributes"),i=e("./constants"),l=e("../../lib/extend").extendFlat;t.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},text:l({},r.text,{}),hovertext:l({},r.hovertext,{}),orientation:r.orientation,histfunc:{valType:"enumerated",values:["count","sum","avg","min","max"],dflt:"count",editType:"calc"},histnorm:{valType:"enumerated",values:["","percent","probability","density","probability density"],dflt:"",editType:"calc"},cumulative:{enabled:{valType:"boolean",dflt:!1,editType:"calc"},direction:{valType:"enumerated",values:["increasing","decreasing"],dflt:"increasing",editType:"calc"},currentbin:{valType:"enumerated",values:["include","exclude","half"],dflt:"include",editType:"calc"},editType:"calc"},nbinsx:{valType:"integer",min:0,dflt:0,editType:"calc"},xbins:o("x",!0),nbinsy:{valType:"integer",min:0,dflt:0,editType:"calc"},ybins:o("y",!0),autobinx:{valType:"boolean",dflt:null,editType:"calc"},autobiny:{valType:"boolean",dflt:null,editType:"calc"},bingroup:{valType:"string",dflt:"",editType:"calc"},hovertemplate:a({},{keys:i.eventDataKeys}),marker:r.marker,offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup,selected:r.selected,unselected:r.unselected,_deprecated:{bardir:r._deprecated.bardir}}},{"../../lib/extend":740,"../../plots/template_attributes":877,"../bar/attributes":892,"./bin_attributes":1057,"./constants":1061}],1056:[function(e,t,n){"use strict";t.exports=function(e,t){for(var n=e.length,r=0,a=0;a<n;a++)t[a]?(e[a]/=t[a],r+=e[a]):e[a]=null;return r}},{}],1057:[function(e,t,n){"use strict";t.exports=function(e,t){return{start:{valType:"any",editType:"calc"},end:{valType:"any",editType:"calc"},size:{valType:"any",editType:"calc"},editType:"calc"}}},{}],1058:[function(e,t,n){"use strict";var r=e("fast-isnumeric");t.exports={count:function(e,t,n){return n[e]++,1},sum:function(e,t,n,a){var o=a[t];return r(o)?(o=Number(o),n[e]+=o,o):0},avg:function(e,t,n,a,o){var i=a[t];return r(i)&&(i=Number(i),n[e]+=i,o[e]++),0},min:function(e,t,n,a){var o=a[t];if(r(o)){if(o=Number(o),!r(n[e]))return n[e]=o,o;if(n[e]>o){var i=o-n[e];return n[e]=o,i}}return 0},max:function(e,t,n,a){var o=a[t];if(r(o)){if(o=Number(o),!r(n[e]))return n[e]=o,o;if(n[e]<o){var i=o-n[e];return n[e]=o,i}}return 0}}},{"fast-isnumeric":241}],1059:[function(e,t,n){"use strict";var r=e("../../constants/numerical"),a=r.ONEAVGYEAR,o=r.ONEAVGMONTH,i=r.ONEDAY,l=r.ONEHOUR,s=r.ONEMIN,u=r.ONESEC,c=e("../../plots/cartesian/axes").tickIncrement;function f(e,t,n,r){if(e*t<=0)return 1/0;for(var a=Math.abs(t-e),o="date"===n.type,i=p(a,o),l=0;l<10;l++){var s=p(80*i,o);if(i===s)break;if(!d(s,e,t,o,n,r))break;i=s}return i}function p(e,t){return t&&e>u?e>i?e>1.1*a?a:e>1.1*o?o:i:e>l?l:e>s?s:u:Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function d(e,t,n,r,o,l){if(r&&e>i){var s=h(t,o,l),u=h(n,o,l),c=e===a?0:1;return s[c]!==u[c]}return Math.floor(n/e)-Math.floor(t/e)>.1}function h(e,t,n){var r=t.c2d(e,a,n).split("-");return""===r[0]&&(r.unshift(),r[0]="-"+r[0]),r}t.exports=function(e,t,n,r,o){var l,s,u=-1.1*t,p=-.1*t,d=e-p,h=n[0],v=n[1],m=Math.min(f(h+p,h+d,r,o),f(v+p,v+d,r,o)),y=Math.min(f(h+u,h+p,r,o),f(v+u,v+p,r,o));if(m>y&&y<Math.abs(v-h)/4e3?(l=m,s=!1):(l=Math.min(m,y),s=!0),"date"===r.type&&l>i){var g=l===a?1:6,b=l===a?"M12":"M1";return function(t,n){var i=r.c2d(t,a,o),l=i.indexOf("-",g);l>0&&(i=i.substr(0,l));var u=r.d2c(i,0,o);if(u<t){var f=c(u,b,!1,o);(u+f)/2<t+e&&(u=f)}return n&&s?c(u,b,!0,o):u}}return function(t,n){var r=l*Math.round(t/l);return r+l/10<t&&r+.9*l<t+e&&(r+=l),n&&s&&(r-=l),r}}},{"../../constants/numerical":725,"../../plots/cartesian/axes":799}],1060:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("../../registry"),i=e("../../plots/cartesian/axes"),l=e("../bar/arrays_to_calcdata"),s=e("./bin_functions"),u=e("./norm_functions"),c=e("./average"),f=e("./bin_label_vals");function p(e,t){var n,o,p,h,v=[],y=[],g=i.getFromId(e,"h"===t.orientation?t.yaxis:t.xaxis),b="h"===t.orientation?"y":"x",x={x:"y",y:"x"}[b],_=t[b+"calendar"],w=t.cumulative,k=d(e,t,g,b),T=k[0],E=k[1],O="string"===typeof T.size,M=[],S=O?M:T,C=[],A=[],P=[],L=0,D=t.histnorm,j=t.histfunc,I=-1!==D.indexOf("density");w.enabled&&I&&(D=D.replace(/ ?density$/,""),I=!1);var R,z="max"===j||"min"===j,N=z?null:0,F=s.count,B=u[D],V=!1,H=function(e){return g.r2c(e,0,_)};a.isArrayOrTypedArray(t[x])&&"count"!==j&&(R=t[x],V="avg"===j,F=s[j]),n=H(T.start),p=H(T.end)+(n-i.tickIncrement(n,T.size,!1,_))/1e6;while(n<p&&v.length<1e6){if(o=i.tickIncrement(n,T.size,!1,_),v.push((n+o)/2),y.push(N),P.push([]),M.push(n),I&&C.push(1/(o-n)),V&&A.push(0),o<=n)break;n=o}M.push(n),O||"date"!==g.type||(S={start:H(S.start),end:H(S.end),size:S.size}),e._fullLayout._roundFnOpts||(e._fullLayout._roundFnOpts={});var U=t["_"+b+"bingroup"],W={leftGap:1/0,rightGap:1/0};U&&(e._fullLayout._roundFnOpts[U]||(e._fullLayout._roundFnOpts[U]=W),W=e._fullLayout._roundFnOpts[U]);var q,$=y.length,G=!0,Y=W.leftGap,K=W.rightGap,X={};for(n=0;n<E.length;n++){var Z=E[n];h=a.findBin(Z,S),h>=0&&h<$&&(L+=F(h,n,y,R,A),G&&P[h].length&&Z!==E[P[h][0]]&&(G=!1),P[h].push(n),X[n]=h,Y=Math.min(Y,Z-M[h]),K=Math.min(K,M[h+1]-Z))}W.leftGap=Y,W.rightGap=K,G||(q=function(t,n){return function(){var r=e._fullLayout._roundFnOpts[U];return f(r.leftGap,r.rightGap,M,g,_)(t,n)}}),V&&(L=c(y,A)),B&&B(y,L,C),w.enabled&&m(y,w.direction,w.currentbin);var J=Math.min(v.length,y.length),Q=[],ee=0,te=J-1;for(n=0;n<J;n++)if(y[n]){ee=n;break}for(n=J-1;n>=ee;n--)if(y[n]){te=n;break}for(n=ee;n<=te;n++)if(r(v[n])&&r(y[n])){var ne={p:v[n],s:y[n],b:0};w.enabled||(ne.pts=P[n],G?ne.ph0=ne.ph1=P[n].length?E[P[n][0]]:v[n]:(t._computePh=!0,ne.ph0=q(M[n]),ne.ph1=q(M[n+1],!0))),Q.push(ne)}return 1===Q.length&&(Q[0].width1=i.tickIncrement(Q[0].p,T.size,!1,_)-Q[0].p),l(Q,t),a.isArrayOrTypedArray(t.selectedpoints)&&a.tagSelected(Q,t,X),Q}function d(e,t,n,l,s){var u,c,f,p,d,v,m,y=l+"bins",g=e._fullLayout,b=t["_"+l+"bingroup"],x=g._histogramBinOpts[b],_="overlay"===g.barmode,w=function(e){return n.r2c(e,0,p)},k=function(e){return n.c2r(e,0,p)},T="date"===n.type?function(e){return e||0===e?a.cleanDate(e,null,p):null}:function(e){return r(e)?Number(e):null};function E(e,t,n){t[e+"Found"]?(t[e]=T(t[e]),null===t[e]&&(t[e]=n[e])):(v[e]=t[e]=n[e],a.nestedProperty(c[0],y+"."+e).set(n[e]))}if(t["_"+l+"autoBinFinished"])delete t["_"+l+"autoBinFinished"];else{c=x.traces;var O=[],M=!0,S=!1,C=!1;for(u=0;u<c.length;u++)if(f=c[u],f.visible){var A=x.dirs[u];d=f["_"+A+"pos0"]=n.makeCalcdata(f,A),O=a.concat(O,d),delete f["_"+l+"autoBinFinished"],!0===t.visible&&(M?M=!1:(delete f._autoBin,f["_"+l+"autoBinFinished"]=1),o.traceIs(f,"2dMap")&&(S=!0),"histogram2dcontour"===f.type&&(C=!0))}p=c[0][l+"calendar"];var P=i.autoBin(O,n,x.nbins,S,p,x.sizeFound&&x.size),L=c[0]._autoBin={};if(v=L[x.dirs[0]]={},C&&(x.size||(P.start=k(i.tickIncrement(w(P.start),P.size,!0,p))),void 0===x.end&&(P.end=k(i.tickIncrement(w(P.end),P.size,!1,p)))),_&&!o.traceIs(t,"2dMap")&&0===P._dataSpan&&"category"!==n.type&&"multicategory"!==n.type){if(s)return[P,d,!0];P=h(e,t,n,l,y)}m=f.cumulative||{},m.enabled&&"include"!==m.currentbin&&("decreasing"===m.direction?P.start=k(i.tickIncrement(w(P.start),P.size,!0,p)):P.end=k(i.tickIncrement(w(P.end),P.size,!1,p))),x.size=P.size,x.sizeFound||(v.size=P.size,a.nestedProperty(c[0],y+".size").set(P.size)),E("start",x,P),E("end",x,P)}d=t["_"+l+"pos0"],delete t["_"+l+"pos0"];var D=t._input[y]||{},j=a.extendFlat({},x),I=x.start,R=n.r2l(D.start),z=void 0!==R;if((x.startFound||z)&&R!==n.r2l(I)){var N=z?R:a.aggNums(Math.min,null,d),F={type:"category"===n.type||"multicategory"===n.type?"linear":n.type,r2l:n.r2l,dtick:x.size,tick0:I,calendar:p,range:[N,i.tickIncrement(N,x.size,!1,p)].map(n.l2r)},B=i.tickFirst(F);B>n.r2l(N)&&(B=i.tickIncrement(B,x.size,!0,p)),j.start=n.l2r(B),z||a.nestedProperty(t,y+".start").set(j.start)}var V=x.end,H=n.r2l(D.end),U=void 0!==H;if((x.endFound||U)&&H!==n.r2l(V)){var W=U?H:a.aggNums(Math.max,null,d);j.end=n.l2r(W),U||a.nestedProperty(t,y+".start").set(j.end)}var q="autobin"+l;return!1===t._input[q]&&(t._input[y]=a.extendFlat({},t[y]||{}),delete t._input[q],delete t[q]),[j,d]}function h(e,t,n,r,o){var i,l,s,u=e._fullLayout,c=v(e,t),f=!1,p=1/0,h=[t];for(i=0;i<c.length;i++)if(l=c[i],l===t)f=!0;else if(f){var m=d(e,l,n,r,!0),y=m[0],g=m[2];l["_"+r+"autoBinFinished"]=1,l["_"+r+"pos0"]=m[1],g?h.push(l):p=Math.min(p,y.size)}else s=u._histogramBinOpts[l["_"+r+"bingroup"]],p=Math.min(p,s.size||l[o].size);var b=new Array(h.length);for(i=0;i<h.length;i++)for(var x=h[i]["_"+r+"pos0"],_=0;_<x.length;_++)if(void 0!==x[_]){b[i]=x[_];break}for(isFinite(p)||(p=a.distinctVals(b).minDiff),i=0;i<h.length;i++){l=h[i];var w=l[r+"calendar"],k={start:n.c2r(b[i]-p/2,0,w),end:n.c2r(b[i]+p/2,0,w),size:p};l._input[o]=l[o]=k,s=u._histogramBinOpts[l["_"+r+"bingroup"]],s&&a.extendFlat(s,k)}return t[o]}function v(e,t){for(var n=t.xaxis,r=t.yaxis,a=t.orientation,o=[],i=e._fullData,l=0;l<i.length;l++){var s=i[l];"histogram"===s.type&&!0===s.visible&&s.orientation===a&&s.xaxis===n&&s.yaxis===r&&o.push(s)}return o}function m(e,t,n){var r,a,o;function i(t){o=e[t],e[t]/=2}function l(t){a=e[t],e[t]=o+a/2,o+=a}if("half"===n)if("increasing"===t)for(i(0),r=1;r<e.length;r++)l(r);else for(i(e.length-1),r=e.length-2;r>=0;r--)l(r);else if("increasing"===t){for(r=1;r<e.length;r++)e[r]+=e[r-1];"exclude"===n&&(e.unshift(0),e.pop())}else{for(r=e.length-2;r>=0;r--)e[r]+=e[r+1];"exclude"===n&&(e.push(0),e.shift())}}t.exports={calc:p,calcAllAutoBins:d}},{"../../lib":750,"../../plots/cartesian/axes":799,"../../registry":882,"../bar/arrays_to_calcdata":891,"./average":1056,"./bin_functions":1058,"./bin_label_vals":1059,"./norm_functions":1067,"fast-isnumeric":241}],1061:[function(e,t,n){"use strict";t.exports={eventDataKeys:["binNumber"]}},{}],1062:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axis_ids"),o=e("../../registry").traceIs,i=e("../bar/defaults").handleGroupingDefaults,l=r.nestedProperty,s=a.getAxisGroup,u=[{aStr:{x:"xbins.start",y:"ybins.start"},name:"start"},{aStr:{x:"xbins.end",y:"ybins.end"},name:"end"},{aStr:{x:"xbins.size",y:"ybins.size"},name:"size"},{aStr:{x:"nbinsx",y:"nbinsy"},name:"nbins"}],c=["x","y"];t.exports=function(e,t){var n,f,p,d,h,v,m,y=t._histogramBinOpts={},g=[],b={},x=[];function _(e,t){return r.coerce(n._input,n,n._module.attributes,e,t)}function w(e){return"v"===e.orientation?"x":"y"}function k(e,n){var r=a.getFromTrace({_fullLayout:t},e,n);return r.type}function T(e,t,n){var a=e.uid+"__"+n;t||(t=a);var o=k(e,n),i=e[n+"calendar"]||"",l=y[t],s=!0;l&&(o===l.axType&&i===l.calendar?(s=!1,l.traces.push(e),l.dirs.push(n)):(t=a,o!==l.axType&&r.warn(["Attempted to group the bins of trace",e.index,"set on a","type:"+o,"axis","with bins on","type:"+l.axType,"axis."].join(" ")),i!==l.calendar&&r.warn(["Attempted to group the bins of trace",e.index,"set with a",i,"calendar","with bins",l.calendar?"on a "+l.calendar+" calendar":"w/o a set calendar"].join(" ")))),s&&(y[t]={traces:[e],dirs:[n],axType:o,calendar:e[n+"calendar"]||""}),e["_"+n+"bingroup"]=t}for(h=0;h<e.length;h++)n=e[h],o(n,"histogram")&&(g.push(n),delete n._xautoBinFinished,delete n._yautoBinFinished,o(n,"2dMap")||i(n._input,n,t,_));var E=t._alignmentOpts||{};for(h=0;h<g.length;h++){if(n=g[h],p="",!o(n,"2dMap")){if(d=w(n),"group"===t.barmode&&n.alignmentgroup){var O=n[d+"axis"],M=s(t,O)+n.orientation;(E[M]||{})[n.alignmentgroup]&&(p=M)}p||"overlay"===t.barmode||(p=s(t,n.xaxis)+s(t,n.yaxis)+w(n))}p?(b[p]||(b[p]=[]),b[p].push(n)):x.push(n)}for(p in b)if(f=b[p],1!==f.length){var S=!1;for(h=0;h<f.length;h++){n=f[h],S=_("bingroup");break}for(p=S||p,h=0;h<f.length;h++){n=f[h];var C=n._input.bingroup;C&&C!==p&&r.warn(["Trace",n.index,"must match","within bingroup",p+".","Ignoring its bingroup:",C,"setting."].join(" ")),n.bingroup=p,T(n,p,w(n))}}else x.push(f[0]);for(h=0;h<x.length;h++){n=x[h];var A=_("bingroup");if(o(n,"2dMap"))for(m=0;m<2;m++){d=c[m];var P=_(d+"bingroup",A?A+"__"+d:null);T(n,P,d)}else T(n,A,w(n))}for(p in y){var L=y[p];for(f=L.traces,v=0;v<u.length;v++){var D,j,I=u[v],R=I.name;if("nbins"!==R||!L.sizeFound){for(h=0;h<f.length;h++){if(n=f[h],d=L.dirs[h],D=I.aStr[d],void 0!==l(n._input,D).get()){L[R]=_(D),L[R+"Found"]=!0;break}j=(n._autoBin||{})[d]||{},j[R]&&l(n,D).set(j[R])}if("start"===R||"end"===R)for(;h<f.length;h++)n=f[h],n["_"+d+"bingroup"]&&(j=(n._autoBin||{})[d]||{},_(D,j[R]));"nbins"!==R||L.sizeFound||L.nbinsFound||(n=f[0],L[R]=_(D))}}}}},{"../../lib":750,"../../plots/cartesian/axis_ids":802,"../../registry":882,"../bar/defaults":896}],1063:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),o=e("../../components/color"),i=e("../bar/style_defaults"),l=e("./attributes");t.exports=function(e,t,n,s){function u(n,r){return a.coerce(e,t,l,n,r)}var c=u("x"),f=u("y"),p=u("cumulative.enabled");p&&(u("cumulative.direction"),u("cumulative.currentbin")),u("text"),u("hovertext"),u("hovertemplate");var d=u("orientation",f&&!c?"h":"v"),h="v"===d?"x":"y",v="v"===d?"y":"x",m=c&&f?Math.min(a.minRowLength(c)&&a.minRowLength(f)):a.minRowLength(t[h]||[]);if(m){t._length=m;var y=r.getComponentMethod("calendars","handleTraceDefaults");y(e,t,["x","y"],s);var g=t[v];g&&u("histfunc"),u("histnorm"),u("autobin"+h),i(e,t,u,n,s),a.coerceSelectionMarkerOpacity(t,u);var b=(t.marker.line||{}).color,x=r.getComponentMethod("errorbars","supplyDefaults");x(e,t,b||o.defaultLine,{axis:"y"}),x(e,t,b||o.defaultLine,{axis:"x",inherit:"y"})}else t.visible=!1}},{"../../components/color":615,"../../lib":750,"../../registry":882,"../bar/style_defaults":907,"./attributes":1055}],1064:[function(e,t,n){"use strict";t.exports=function(e,t,n,r,a){if(e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"zLabelVal"in t&&(e.z=t.zLabelVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),!(n.cumulative||{}).enabled){var o,i=Array.isArray(a)?r[0].pts[a[0]][a[1]]:r[a].pts;if(e.pointNumbers=i,e.binNumber=e.pointNumber,delete e.pointNumber,delete e.pointIndex,n._indexToPoints){o=[];for(var l=0;l<i.length;l++)o=o.concat(n._indexToPoints[i[l]])}else o=i;e.pointIndices=o}return e}},{}],1065:[function(e,t,n){"use strict";var r=e("../bar/hover").hoverPoints,a=e("../../plots/cartesian/axes").hoverLabelText;t.exports=function(e,t,n,o){var i=r(e,t,n,o);if(i){e=i[0];var l=e.cd[e.index],s=e.cd[0].trace;if(!s.cumulative.enabled){var u="h"===s.orientation?"y":"x";e[u+"Label"]=a(e[u+"a"],l.ph0,l.ph1)}return i}}},{"../../plots/cartesian/axes":799,"../bar/hover":899}],1066:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("../bar/layout_attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("./cross_trace_defaults"),supplyLayoutDefaults:e("../bar/layout_defaults"),calc:e("./calc").calc,crossTraceCalc:e("../bar/cross_trace_calc").crossTraceCalc,plot:e("../bar/plot").plot,layerName:"barlayer",style:e("../bar/style").style,styleOnSelect:e("../bar/style").styleOnSelect,colorbar:e("../scatter/marker_colorbar"),hoverPoints:e("./hover"),selectPoints:e("../bar/select"),eventData:e("./event_data"),moduleType:"trace",name:"histogram",basePlotModule:e("../../plots/cartesian"),categories:["bar-like","cartesian","svg","bar","histogram","oriented","errorBarsOK","showLegend"],meta:{}}},{"../../plots/cartesian":812,"../bar/cross_trace_calc":895,"../bar/layout_attributes":901,"../bar/layout_defaults":902,"../bar/plot":903,"../bar/select":904,"../bar/style":906,"../scatter/marker_colorbar":1176,"./attributes":1055,"./calc":1060,"./cross_trace_defaults":1062,"./defaults":1063,"./event_data":1064,"./hover":1065}],1067:[function(e,t,n){"use strict";t.exports={percent:function(e,t){for(var n=e.length,r=100/t,a=0;a<n;a++)e[a]*=r},probability:function(e,t){for(var n=e.length,r=0;r<n;r++)e[r]/=t},density:function(e,t,n,r){var a=e.length;r=r||1;for(var o=0;o<a;o++)e[o]*=n[o]*r},"probability density":function(e,t,n,r){var a=e.length;r&&(t/=r);for(var o=0;o<a;o++)e[o]*=n[o]/t}}},{}],1068:[function(e,t,n){"use strict";var r=e("../histogram/attributes"),a=e("../histogram/bin_attributes"),o=e("../heatmap/attributes"),i=e("../../plots/attributes"),l=e("../../plots/template_attributes").hovertemplateAttrs,s=e("../../components/colorscale/attributes"),u=e("../../lib/extend").extendFlat;t.exports=u({x:r.x,y:r.y,z:{valType:"data_array",editType:"calc"},marker:{color:{valType:"data_array",editType:"calc"},editType:"calc"},histnorm:r.histnorm,histfunc:r.histfunc,nbinsx:r.nbinsx,xbins:a("x"),nbinsy:r.nbinsy,ybins:a("y"),autobinx:r.autobinx,autobiny:r.autobiny,bingroup:u({},r.bingroup,{}),xbingroup:u({},r.bingroup,{}),ybingroup:u({},r.bingroup,{}),xgap:o.xgap,ygap:o.ygap,zsmooth:o.zsmooth,zhoverformat:o.zhoverformat,hovertemplate:l({},{keys:"z"}),showlegend:u({},i.showlegend,{dflt:!1})},s("",{cLetter:"z",autoColorDflt:!1}))},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../heatmap/attributes":1036,"../histogram/attributes":1055,"../histogram/bin_attributes":1057}],1069:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("../histogram/bin_functions"),i=e("../histogram/norm_functions"),l=e("../histogram/average"),s=e("../histogram/bin_label_vals"),u=e("../histogram/calc").calcAllAutoBins;function c(e,t,n,r){var a,o=new Array(e);if(r)for(a=0;a<e;a++)o[a]=1/(t[a+1]-t[a]);else{var i=1/n;for(a=0;a<e;a++)o[a]=i}return o}function f(e,t){return{start:e(t.start),end:e(t.end),size:t.size}}function p(e,t,n,r,a,o){var i,l=e.length-1,u=new Array(l),c=s(n,r,e,a,o);for(i=0;i<l;i++){var f=(t||[])[i];u[i]=void 0===f?[c(e[i]),c(e[i+1],!0)]:[f,f]}return u}t.exports=function(e,t){var n,s,d,h,v=a.getFromId(e,t.xaxis),m=a.getFromId(e,t.yaxis),y=t.xcalendar,g=t.ycalendar,b=function(e){return v.r2c(e,0,y)},x=function(e){return m.r2c(e,0,g)},_=function(e){return v.c2r(e,0,y)},w=function(e){return m.c2r(e,0,g)},k=u(e,t,v,"x"),T=k[0],E=k[1],O=u(e,t,m,"y"),M=O[0],S=O[1],C=t._length;E.length>C&&E.splice(C,E.length-C),S.length>C&&S.splice(C,S.length-C);var A=[],P=[],L=[],D="string"===typeof T.size,j="string"===typeof M.size,I=[],R=[],z=D?I:T,N=j?R:M,F=0,B=[],V=[],H=t.histnorm,U=t.histfunc,W=-1!==H.indexOf("density"),q="max"===U||"min"===U,$=q?null:0,G=o.count,Y=i[H],K=!1,X=[],Z=[],J="z"in t?t.z:"marker"in t&&Array.isArray(t.marker.color)?t.marker.color:"";J&&"count"!==U&&(K="avg"===U,G=o[U]);var Q=T.size,ee=b(T.start),te=b(T.end)+(ee-a.tickIncrement(ee,Q,!1,y))/1e6;for(n=ee;n<te;n=a.tickIncrement(n,Q,!1,y))P.push($),I.push(n),K&&L.push(0);I.push(n);var ne=P.length,re=(n-ee)/ne,ae=_(ee+re/2),oe=M.size,ie=x(M.start),le=x(M.end)+(ie-a.tickIncrement(ie,oe,!1,g))/1e6;for(n=ie;n<le;n=a.tickIncrement(n,oe,!1,g)){A.push(P.slice()),R.push(n);var se=new Array(ne);for(s=0;s<ne;s++)se[s]=[];V.push(se),K&&B.push(L.slice())}R.push(n);var ue=A.length,ce=(n-ie)/ue,fe=w(ie+ce/2);W&&(X=c(P.length,z,re,D),Z=c(A.length,N,ce,j)),D||"date"!==v.type||(z=f(b,z)),j||"date"!==m.type||(N=f(x,N));var pe=!0,de=!0,he=new Array(ne),ve=new Array(ue),me=1/0,ye=1/0,ge=1/0,be=1/0;for(n=0;n<C;n++){var xe=E[n],_e=S[n];d=r.findBin(xe,z),h=r.findBin(_e,N),d>=0&&d<ne&&h>=0&&h<ue&&(F+=G(d,n,A[h],J,B[h]),V[h][d].push(n),pe&&(void 0===he[d]?he[d]=xe:he[d]!==xe&&(pe=!1)),de&&(void 0===ve[h]?ve[h]=_e:ve[h]!==_e&&(de=!1)),me=Math.min(me,xe-I[d]),ye=Math.min(ye,I[d+1]-xe),ge=Math.min(ge,_e-R[h]),be=Math.min(be,R[h+1]-_e))}if(K)for(h=0;h<ue;h++)F+=l(A[h],B[h]);if(Y)for(h=0;h<ue;h++)Y(A[h],F,X,Z[h]);return{x:E,xRanges:p(I,pe&&he,me,ye,v,y),x0:ae,dx:re,y:S,yRanges:p(R,de&&ve,ge,be,m,g),y0:fe,dy:ce,z:A,pts:V}}},{"../../lib":750,"../../plots/cartesian/axes":799,"../histogram/average":1056,"../histogram/bin_functions":1058,"../histogram/bin_label_vals":1059,"../histogram/calc":1060,"../histogram/norm_functions":1067}],1070:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./sample_defaults"),o=e("../heatmap/style_defaults"),i=e("../../components/colorscale/defaults"),l=e("./attributes");t.exports=function(e,t,n,s){function u(n,a){return r.coerce(e,t,l,n,a)}a(e,t,u,s),!1!==t.visible&&(o(e,t,u,s),i(e,t,s,u,{prefix:"",cLetter:"z"}),u("hovertemplate"))}},{"../../components/colorscale/defaults":625,"../../lib":750,"../heatmap/style_defaults":1049,"./attributes":1068,"./sample_defaults":1073}],1071:[function(e,t,n){"use strict";var r=e("../heatmap/hover"),a=e("../../plots/cartesian/axes").hoverLabelText;t.exports=function(e,t,n,o,i,l){var s=r(e,t,n,o,i,l);if(s){e=s[0];var u=e.index,c=u[0],f=u[1],p=e.cd[0],d=p.xRanges[f],h=p.yRanges[c];return e.xLabel=a(e.xa,d[0],d[1]),e.yLabel=a(e.ya,h[0],h[1]),s}}},{"../../plots/cartesian/axes":799,"../heatmap/hover":1043}],1072:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("../histogram/cross_trace_defaults"),calc:e("../heatmap/calc"),plot:e("../heatmap/plot"),layerName:"heatmaplayer",colorbar:e("../heatmap/colorbar"),style:e("../heatmap/style"),hoverPoints:e("./hover"),eventData:e("../histogram/event_data"),moduleType:"trace",name:"histogram2d",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","histogram","showLegend"],meta:{}}},{"../../plots/cartesian":812,"../heatmap/calc":1037,"../heatmap/colorbar":1039,"../heatmap/plot":1047,"../heatmap/style":1048,"../histogram/cross_trace_defaults":1062,"../histogram/event_data":1064,"./attributes":1068,"./defaults":1070,"./hover":1071}],1073:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib");t.exports=function(e,t,n,o){var i=n("x"),l=n("y"),s=a.minRowLength(i),u=a.minRowLength(l);if(s&&u){t._length=Math.min(s,u);var c=r.getComponentMethod("calendars","handleTraceDefaults");c(e,t,["x","y"],o);var f=n("z")||n("marker.color");f&&n("histfunc"),n("histnorm"),n("autobinx"),n("autobiny")}else t.visible=!1}},{"../../lib":750,"../../registry":882}],1074:[function(e,t,n){"use strict";var r=e("../histogram2d/attributes"),a=e("../contour/attributes"),o=e("../../components/colorscale/attributes"),i=e("../../lib/extend").extendFlat;t.exports=i({x:r.x,y:r.y,z:r.z,marker:r.marker,histnorm:r.histnorm,histfunc:r.histfunc,nbinsx:r.nbinsx,xbins:r.xbins,nbinsy:r.nbinsy,ybins:r.ybins,autobinx:r.autobinx,autobiny:r.autobiny,bingroup:r.bingroup,xbingroup:r.xbingroup,ybingroup:r.ybingroup,autocontour:a.autocontour,ncontours:a.ncontours,contours:a.contours,line:{color:a.line.color,width:i({},a.line.width,{dflt:.5}),dash:a.line.dash,smoothing:a.line.smoothing,editType:"plot"},zhoverformat:r.zhoverformat,hovertemplate:r.hovertemplate},o("",{cLetter:"z",editTypeOverride:"calc"}))},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../contour/attributes":979,"../histogram2d/attributes":1068}],1075:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../histogram2d/sample_defaults"),o=e("../contour/contours_defaults"),i=e("../contour/style_defaults"),l=e("./attributes");t.exports=function(e,t,n,s){function u(n,a){return r.coerce(e,t,l,n,a)}function c(n){return r.coerce2(e,t,l,n)}a(e,t,u,s),!1!==t.visible&&(o(e,t,u,c),i(e,t,u,s),u("hovertemplate"))}},{"../../lib":750,"../contour/contours_defaults":986,"../contour/style_defaults":1e3,"../histogram2d/sample_defaults":1073,"./attributes":1074}],1076:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("../histogram/cross_trace_defaults"),calc:e("../contour/calc"),plot:e("../contour/plot").plot,layerName:"contourlayer",style:e("../contour/style"),colorbar:e("../contour/colorbar"),hoverPoints:e("../contour/hover"),moduleType:"trace",name:"histogram2dcontour",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","contour","histogram","showLegend"],meta:{}}},{"../../plots/cartesian":812,"../contour/calc":980,"../contour/colorbar":982,"../contour/hover":992,"../contour/plot":997,"../contour/style":999,"../histogram/cross_trace_defaults":1062,"./attributes":1074,"./defaults":1075}],1077:[function(e,t,n){"use strict";for(var r=e("../../plots/attributes"),a=e("../../plots/template_attributes").hovertemplateAttrs,o=e("../../lib/extend").extendFlat,i=e("./constants").colormodel,l=["rgb","rgba","rgba256","hsl","hsla"],s=[],u=[],c=0;c<l.length;c++){var f=i[l[c]];s.push("For the `"+l[c]+"` colormodel, it is ["+(f.zminDflt||f.min).join(", ")+"]."),u.push("For the `"+l[c]+"` colormodel, it is ["+(f.zmaxDflt||f.max).join(", ")+"].")}t.exports=o({source:{valType:"string",editType:"calc"},z:{valType:"data_array",editType:"calc"},colormodel:{valType:"enumerated",values:l,editType:"calc"},zmin:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc"},zmax:{valType:"info_array",items:[{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"},{valType:"number",editType:"calc"}],editType:"calc"},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dx:{valType:"number",dflt:1,editType:"calc"},dy:{valType:"number",dflt:1,editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"data_array",editType:"plot"},hoverinfo:o({},r.hoverinfo,{flags:["x","y","z","color","name","text"],dflt:"x+y+z+text+name"}),hovertemplate:a({},{keys:["z","color","colormodel"]}),transforms:void 0})},{"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"./constants":1079}],1078:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./constants"),o=e("fast-isnumeric"),i=e("../../plots/cartesian/axes"),l=e("../../lib").maxRowLength,s=e("./helpers").getImageSize;function u(e,t,n,a){return function(o){return r.constrain((o-e)*t,n,a)}}function c(e,t){return function(n){return r.constrain(n,e,t)}}function f(e){var t=a.colormodel[e.colormodel],n=t.colormodel||e.colormodel,r=n.length;e._sArray=[];for(var i=0;i<r;i++)t.min[i]!==e.zmin[i]||t.max[i]!==e.zmax[i]?e._sArray.push(u(e.zmin[i],(t.max[i]-t.min[i])/(e.zmax[i]-e.zmin[i]),t.min[i],t.max[i])):e._sArray.push(c(t.min[i],t.max[i]));return function(t){for(var n=t.slice(0,r),a=0;a<r;a++){var i=n[a];if(!o(i))return!1;n[a]=e._sArray[a](i)}return n}}t.exports=function(e,t){var n,r;if(t._hasZ)n=t.z.length,r=l(t.z);else if(t._hasSource){var a=s(t.source);n=a.height,r=a.width}var o,u=i.getFromId(e,t.xaxis||"x"),c=i.getFromId(e,t.yaxis||"y"),p=u.d2c(t.x0)-t.dx/2,d=c.d2c(t.y0)-t.dy/2,h=[p,p+r*t.dx],v=[d,d+n*t.dy];if(u&&"log"===u.type)for(o=0;o<r;o++)h.push(p+o*t.dx);if(c&&"log"===c.type)for(o=0;o<n;o++)v.push(d+o*t.dy);t._extremes[u._id]=i.findExtremes(u,h),t._extremes[c._id]=i.findExtremes(c,v),t._scaler=f(t);var m={x0:p,y0:d,z:t.z,w:r,h:n};return[m]}},{"../../lib":750,"../../plots/cartesian/axes":799,"./constants":1079,"./helpers":1082,"fast-isnumeric":241}],1079:[function(e,t,n){"use strict";t.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(e){return e.slice(0,3)},suffix:["","",""]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},rgba256:{colormodel:"rgba",zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(e){return e.slice(0,4)},suffix:["","","",""]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(e){var t=e.slice(0,3);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["°","%","%"]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(e){var t=e.slice(0,4);return t[1]=t[1]+"%",t[2]=t[2]+"%",t},suffix:["°","%","%",""]}}}},{}],1080:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),o=e("./constants"),i=e("../../snapshot/helpers").IMAGE_URL_PREFIX;t.exports=function(e,t){function n(n,o){return r.coerce(e,t,a,n,o)}n("source"),t.source&&!t.source.match(i)&&delete t.source,t._hasSource=!!t.source;var l,s=n("z");(t._hasZ=!(void 0===s||!s.length||!s[0]||!s[0].length),t._hasZ||t._hasSource)?(n("x0"),n("y0"),n("dx"),n("dy"),t._hasZ?(n("colormodel","rgb"),l=o.colormodel[t.colormodel],n("zmin",l.zminDflt||l.min),n("zmax",l.zmaxDflt||l.max)):t._hasSource&&(t.colormodel="rgba256",l=o.colormodel[t.colormodel],t.zmin=l.zminDflt,t.zmax=l.zmaxDflt),n("text"),n("hovertext"),n("hovertemplate"),t._length=null):t.visible=!1}},{"../../lib":750,"../../snapshot/helpers":886,"./attributes":1077,"./constants":1079}],1081:[function(e,t,n){"use strict";t.exports=function(e,t){return"xVal"in t&&(e.x=t.xVal),"yVal"in t&&(e.y=t.yVal),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e.color=t.color,e.colormodel=t.trace.colormodel,e.z||(e.z=t.color),e}},{}],1082:[function(e,t,n){"use strict";var r=e("image-size"),a=e("../../snapshot/helpers").IMAGE_URL_PREFIX,o=e("buffer/").Buffer;n.getImageSize=function(e){var t=e.replace(a,""),n=new o(t,"base64");return r(n)}},{"../../snapshot/helpers":886,"buffer/":111,"image-size":418}],1083:[function(e,t,n){"use strict";var r=e("../../components/fx"),a=e("../../lib"),o=e("./constants");t.exports=function(e,t,n){var i=e.cd[0],l=i.trace,s=e.xa,u=e.ya;if(!(r.inbox(t-i.x0,t-(i.x0+i.w*l.dx),0)>0||r.inbox(n-i.y0,n-(i.y0+i.h*l.dy),0)>0)){var c,f=Math.floor((t-i.x0)/l.dx),p=Math.floor(Math.abs(n-i.y0)/l.dy);if(l._hasZ?c=i.z[p][f]:l._hasSource&&(c=l._canvas.el.getContext("2d").getImageData(f,p,1,1).data),c){var d,h=i.hi||l.hoverinfo;if(h){var v=h.split("+");-1!==v.indexOf("all")&&(v=["color"]),-1!==v.indexOf("color")&&(d=!0)}var m,y=o.colormodel[l.colormodel],g=y.colormodel||l.colormodel,b=g.length,x=l._scaler(c),_=y.suffix,w=[];(l.hovertemplate||d)&&(w.push("["+[x[0]+_[0],x[1]+_[1],x[2]+_[2]].join(", ")),4===b&&w.push(", "+x[3]+_[3]),w.push("]"),w=w.join(""),e.extraText=g.toUpperCase()+": "+w),Array.isArray(l.hovertext)&&Array.isArray(l.hovertext[p])?m=l.hovertext[p][f]:Array.isArray(l.text)&&Array.isArray(l.text[p])&&(m=l.text[p][f]);var k=u.c2p(i.y0+(p+.5)*l.dy),T=i.x0+(f+.5)*l.dx,E=i.y0+(p+.5)*l.dy,O="["+c.slice(0,l.colormodel.length).join(", ")+"]";return[a.extendFlat(e,{index:[p,f],x0:s.c2p(i.x0+f*l.dx),x1:s.c2p(i.x0+(f+1)*l.dx),y0:k,y1:k,color:x,xVal:T,xLabelVal:T,yVal:E,yLabelVal:E,zLabelVal:O,text:m,hovertemplateLabels:{zLabel:O,colorLabel:w,"color[0]Label":x[0]+_[0],"color[1]Label":x[1]+_[1],"color[2]Label":x[2]+_[2],"color[3]Label":x[3]+_[3]}})]}}}},{"../../components/fx":655,"../../lib":750,"./constants":1079}],1084:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot"),style:e("./style"),hoverPoints:e("./hover"),eventData:e("./event_data"),moduleType:"trace",name:"image",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","2dMap","noSortingByValue"],animatable:!1,meta:{}}},{"../../plots/cartesian":812,"./attributes":1077,"./calc":1078,"./defaults":1080,"./event_data":1081,"./hover":1083,"./plot":1085,"./style":1086}],1085:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../../constants/xmlns_namespaces"),i=e("./constants"),l=a.isIOS()||a.isSafari()||a.isIE();function s(e){return"linear"===e.type&&e.range[1]>e.range[0]===("x"===e._id.charAt(0))}t.exports=function(e,t,n,u){var c=t.xaxis,f=t.yaxis,p=!(l||e._context._exportedPlot);a.makeTraceGroups(u,n,"im").each((function(t){var n=r.select(this),l=t[0],u=l.trace,d=p&&!u._hasZ&&u._hasSource&&s(c)&&s(f);u._fastImage=d;var h,v,m,y,g,b,x=l.z,_=l.x0,w=l.y0,k=l.w,T=l.h,E=u.dx,O=u.dy;b=0;while(void 0===h&&b<k)h=c.c2p(_+b*E),b++;b=k;while(void 0===v&&b>0)v=c.c2p(_+b*E),b--;b=0;while(void 0===y&&b<T)y=f.c2p(w+b*O),b++;b=T;while(void 0===g&&b>0)g=f.c2p(w+b*O),b--;if(v<h&&(m=v,v=h,h=m),g<y&&(m=y,y=g,g=m),!d){var M=.5;h=Math.max(-M*c._length,h),v=Math.min((1+M)*c._length,v),y=Math.max(-M*f._length,y),g=Math.min((1+M)*f._length,g)}var S=Math.round(v-h),C=Math.round(g-y),A=S<=0||C<=0;if(A){var P=n.selectAll("image").data([]);P.exit().remove()}else{var L=n.selectAll("image").data([t]);L.enter().append("svg:image").attr({xmlns:o.svg,preserveAspectRatio:"none"}),L.exit().remove(),L.attr("style","image-rendering: optimizeSpeed; image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;");var D=new Promise((function(e){if(u._hasZ)e();else if(u._hasSource)if(u._canvas&&u._canvas.el.width===k&&u._canvas.el.height===T&&u._canvas.source===u.source)e();else{var t=document.createElement("canvas");t.width=k,t.height=T;var n=t.getContext("2d");u._image=u._image||new Image;var r=u._image;r.onload=function(){n.drawImage(r,0,0),u._canvas={el:t,source:u.source},e()},r.setAttribute("src",u.source)}})).then((function(){var e,t;if(u._hasZ)t=j((function(e,t){return x[t][e]})),e=t.toDataURL("image/png");else if(u._hasSource)if(d)e=u.source;else{var n=u._canvas.el.getContext("2d"),r=n.getImageData(0,0,k,T).data;t=j((function(e,t){var n=4*(t*k+e);return[r[n],r[n+1],r[n+2],r[n+3]]})),e=t.toDataURL("image/png")}L.attr({"xlink:href":e,height:C,width:S,x:h,y:y})}));e._promises.push(D)}function j(e){var t=document.createElement("canvas");t.width=S,t.height=C;var n,r=t.getContext("2d"),o=function(e){return a.constrain(Math.round(c.c2p(_+e*E)-h),0,S)},s=function(e){return a.constrain(Math.round(f.c2p(w+e*O)-y),0,C)},p=i.colormodel[u.colormodel],d=p.colormodel||u.colormodel,v=p.fmt;for(b=0;b<l.w;b++){var m=o(b),g=o(b+1);if(g!==m&&!isNaN(g)&&!isNaN(m))for(var x=0;x<l.h;x++){var k=s(x),T=s(x+1);T===k||isNaN(T)||isNaN(k)||!e(b,x)||(n=u._scaler(e(b,x)),r.fillStyle=n?d+"("+v(n).join(",")+")":"rgba(0,0,0,0)",r.fillRect(m,k,g-m,T-k))}}return t}}))}},{"../../constants/xmlns_namespaces":726,"../../lib":750,"./constants":1079,d3:169}],1086:[function(e,t,n){"use strict";var r=e("d3");t.exports=function(e){r.select(e).selectAll(".im image").style("opacity",(function(e){return e[0].trace.opacity}))}},{d3:169}],1087:[function(e,t,n){"use strict";var r=e("../../lib/extend").extendFlat,a=e("../../lib/extend").extendDeep,o=e("../../plot_api/edit_types").overrideAll,i=e("../../plots/font_attributes"),l=e("../../components/color/attributes"),s=e("../../plots/domain").attributes,u=e("../../plots/cartesian/layout_attributes"),c=e("../../plot_api/plot_template").templatedArray,f=e("../../constants/delta.js"),p=(e("../../constants/docs").FORMAT_LINK,i({editType:"plot",colorEditType:"plot"})),d={color:{valType:"color",editType:"plot"},line:{color:{valType:"color",dflt:l.defaultLine,editType:"plot"},width:{valType:"number",min:0,dflt:0,editType:"plot"},editType:"calc"},thickness:{valType:"number",min:0,max:1,dflt:1,editType:"plot"},editType:"calc"},h={valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},v=c("step",a({},d,{range:h}));t.exports={mode:{valType:"flaglist",editType:"calc",flags:["number","delta","gauge"],dflt:"number"},value:{valType:"number",editType:"calc",anim:!0},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},domain:s({name:"indicator",trace:!0,editType:"calc"}),title:{text:{valType:"string",editType:"plot"},align:{valType:"enumerated",values:["left","center","right"],editType:"plot"},font:r({},p,{}),editType:"plot"},number:{valueformat:{valType:"string",dflt:"",editType:"plot"},font:r({},p,{}),prefix:{valType:"string",dflt:"",editType:"plot"},suffix:{valType:"string",dflt:"",editType:"plot"},editType:"plot"},delta:{reference:{valType:"number",editType:"calc"},position:{valType:"enumerated",values:["top","bottom","left","right"],dflt:"bottom",editType:"plot"},relative:{valType:"boolean",editType:"plot",dflt:!1},valueformat:{valType:"string",editType:"plot"},increasing:{symbol:{valType:"string",dflt:f.INCREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:f.INCREASING.COLOR,editType:"plot"},editType:"plot"},decreasing:{symbol:{valType:"string",dflt:f.DECREASING.SYMBOL,editType:"plot"},color:{valType:"color",dflt:f.DECREASING.COLOR,editType:"plot"},editType:"plot"},font:r({},p,{}),editType:"calc"},gauge:{shape:{valType:"enumerated",editType:"plot",dflt:"angular",values:["angular","bullet"]},bar:a({},d,{color:{dflt:"green"}}),bgcolor:{valType:"color",editType:"plot"},bordercolor:{valType:"color",dflt:l.defaultLine,editType:"plot"},borderwidth:{valType:"number",min:0,dflt:1,editType:"plot"},axis:o({range:h,visible:r({},u.visible,{dflt:!0}),tickmode:u.tickmode,nticks:u.nticks,tick0:u.tick0,dtick:u.dtick,tickvals:u.tickvals,ticktext:u.ticktext,ticks:r({},u.ticks,{dflt:"outside"}),ticklen:u.ticklen,tickwidth:u.tickwidth,tickcolor:u.tickcolor,showticklabels:u.showticklabels,tickfont:i({}),tickangle:u.tickangle,tickformat:u.tickformat,tickformatstops:u.tickformatstops,tickprefix:u.tickprefix,showtickprefix:u.showtickprefix,ticksuffix:u.ticksuffix,showticksuffix:u.showticksuffix,separatethousands:u.separatethousands,exponentformat:u.exponentformat,minexponent:u.minexponent,showexponent:u.showexponent,editType:"plot"},"plot"),steps:v,threshold:{line:{color:r({},d.line.color,{}),width:r({},d.line.width,{dflt:1}),editType:"plot"},thickness:r({},d.thickness,{dflt:.85}),value:{valType:"number",editType:"calc",dflt:!1},editType:"plot"},editType:"plot"}}},{"../../components/color/attributes":614,"../../constants/delta.js":719,"../../constants/docs":720,"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plot_api/plot_template":788,"../../plots/cartesian/layout_attributes":813,"../../plots/domain":826,"../../plots/font_attributes":827}],1088:[function(e,t,n){"use strict";var r=e("../../plots/plots");n.name="indicator",n.plot=function(e,t,a,o){r.plotBasePlot(n.name,e,t,a,o)},n.clean=function(e,t,a,o){r.cleanBasePlot(n.name,e,t,a,o)}},{"../../plots/plots":862}],1089:[function(e,t,n){"use strict";function r(e,t){var n=[],r=t.value;"number"!==typeof t._lastValue&&(t._lastValue=t.value);var a=t._lastValue,o=a;return t._hasDelta&&"number"===typeof t.delta.reference&&(o=t.delta.reference),n[0]={y:r,lastY:a,delta:r-o,relativeDelta:(r-o)/o},n}t.exports={calc:r}},{}],1090:[function(e,t,n){"use strict";t.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},{}],1091:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),o=e("../../plots/domain").defaults,i=e("../../plot_api/plot_template"),l=e("../../plots/array_container_defaults"),s=e("./constants.js"),u=e("../../plots/cartesian/tick_value_defaults"),c=e("../../plots/cartesian/tick_mark_defaults"),f=e("../../plots/cartesian/tick_label_defaults");function p(e,t,n,p){function h(n,o){return r.coerce(e,t,a,n,o)}o(t,p,h),h("mode"),t._hasNumber=-1!==t.mode.indexOf("number"),t._hasDelta=-1!==t.mode.indexOf("delta"),t._hasGauge=-1!==t.mode.indexOf("gauge");var v=h("value");t._range=[0,"number"===typeof v?1.5*v:1];var m,y,g,b,x,_,w=new Array(2);function k(e,t){return r.coerce(g,b,a.gauge,e,t)}function T(e,t){return r.coerce(x,_,a.gauge.axis,e,t)}if(t._hasNumber&&(h("number.valueformat"),h("number.font.color",p.font.color),h("number.font.family",p.font.family),h("number.font.size"),void 0===t.number.font.size&&(t.number.font.size=s.defaultNumberFontSize,w[0]=!0),h("number.prefix"),h("number.suffix"),m=t.number.font.size),t._hasDelta&&(h("delta.font.color",p.font.color),h("delta.font.family",p.font.family),h("delta.font.size"),void 0===t.delta.font.size&&(t.delta.font.size=(t._hasNumber?.5:1)*(m||s.defaultNumberFontSize),w[1]=!0),h("delta.reference",t.value),h("delta.relative"),h("delta.valueformat",t.delta.relative?"2%":""),h("delta.increasing.symbol"),h("delta.increasing.color"),h("delta.decreasing.symbol"),h("delta.decreasing.color"),h("delta.position"),y=t.delta.font.size),t._scaleNumbers=(!t._hasNumber||w[0])&&(!t._hasDelta||w[1])||!1,h("title.font.color",p.font.color),h("title.font.family",p.font.family),h("title.font.size",.25*(m||y||s.defaultNumberFontSize)),h("title.text"),t._hasGauge){g=e.gauge,g||(g={}),b=i.newContainer(t,"gauge"),k("shape");var E=t._isBullet="bullet"===t.gauge.shape;E||h("title.align","center");var O=t._isAngular="angular"===t.gauge.shape;O||h("align","center"),k("bgcolor",p.paper_bgcolor),k("borderwidth"),k("bordercolor"),k("bar.color"),k("bar.line.color"),k("bar.line.width");var M=s.valueThickness*("bullet"===t.gauge.shape?.5:1);k("bar.thickness",M),l(g,b,{name:"steps",handleItemDefaults:d}),k("threshold.value"),k("threshold.thickness"),k("threshold.line.width"),k("threshold.line.color"),x={},g&&(x=g.axis||{}),_=i.newContainer(b,"axis"),T("visible"),t._range=T("range",t._range);var S={outerTicks:!0};u(x,_,T,"linear"),f(x,_,T,"linear",S),c(x,_,T,S)}else h("title.align","center"),h("align","center"),t._isAngular=t._isBullet=!1;t._length=null}function d(e,t){function n(n,o){return r.coerce(e,t,a.gauge.steps,n,o)}n("color"),n("line.color"),n("line.width"),n("range"),n("thickness")}t.exports={supplyDefaults:p}},{"../../lib":750,"../../plot_api/plot_template":788,"../../plots/array_container_defaults":794,"../../plots/cartesian/tick_label_defaults":820,"../../plots/cartesian/tick_mark_defaults":821,"../../plots/cartesian/tick_value_defaults":822,"../../plots/domain":826,"./attributes":1087,"./constants.js":1090}],1092:[function(e,t,n){"use strict";t.exports={moduleType:"trace",name:"indicator",basePlotModule:e("./base_plot"),categories:["svg","noOpacity","noHover"],animatable:!0,attributes:e("./attributes"),supplyDefaults:e("./defaults").supplyDefaults,calc:e("./calc").calc,plot:e("./plot"),meta:{}}},{"./attributes":1087,"./base_plot":1088,"./calc":1089,"./defaults":1091,"./plot":1093}],1093:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=a.rad2deg,i=e("../../constants/alignment").MID_SHIFT,l=e("../../components/drawing"),s=e("./constants"),u=e("../../lib/svg_text_utils"),c=e("../../plots/cartesian/axes"),f=e("../../plots/cartesian/axis_defaults"),p=e("../../plots/cartesian/position_defaults"),d=e("../../plots/cartesian/layout_attributes"),h=e("../../components/color"),v={left:"start",center:"middle",right:"end"},m={left:0,center:.5,right:1},y=/[yzafpnµmkMGTPEZY]/;function g(e){return e&&e.duration>0}function b(e,t,n,r){var a,o,i,l,u,f=n[0].trace,p=r.gauge,d=r.layer,v=r.gaugeBg,m=r.gaugeOutline,y=r.size,b=f.domain,x=r.transitionOpts,_=r.onComplete;p.enter().append("g").classed("bullet",!0),p.attr("transform","translate("+y.l+", "+y.t+")"),d.enter().append("g").classed("bulletaxis",!0).classed("crisp",!0),d.selectAll("g.xbulletaxistick,path,text").remove();var k=y.h,E=f.gauge.bar.thickness*k,O=b.x[0],M=b.x[0]+(b.x[1]-b.x[0])*(f._hasNumber||f._hasDelta?1-s.bulletNumberDomainSize:1);function S(e){e.attr("width",(function(e){return Math.max(0,a.c2p(e.range[1])-a.c2p(e.range[0]))})).attr("x",(function(e){return a.c2p(e.range[0])})).attr("y",(function(e){return.5*(1-e.thickness)*k})).attr("height",(function(e){return e.thickness*k}))}a=T(e,f.gauge.axis),a._id="xbulletaxis",a.domain=[O,M],a.setScale(),o=c.calcTicks(a),i=c.makeTransFn(a),l=c.getTickSigns(a)[2],u=y.t+y.h,a.visible&&(c.drawTicks(e,a,{vals:"inside"===a.ticks?c.clipEnds(a,o):o,layer:d,path:c.makeTickPath(a,u,l),transFn:i}),c.drawLabels(e,a,{vals:o,layer:d,transFn:i,labelFns:c.makeLabelFns(a,u)}));var C=[v].concat(f.gauge.steps),A=p.selectAll("g.bg-bullet").data(C);A.enter().append("g").classed("bg-bullet",!0).append("rect"),A.select("rect").call(S).call(w),A.exit().remove();var P=p.selectAll("g.value-bullet").data([f.gauge.bar]);P.enter().append("g").classed("value-bullet",!0).append("rect"),P.select("rect").attr("height",E).attr("y",(k-E)/2).call(w),g(x)?P.select("rect").transition().duration(x.duration).ease(x.easing).each("end",(function(){_&&_()})).each("interrupt",(function(){_&&_()})).attr("width",Math.max(0,a.c2p(Math.min(f.gauge.axis.range[1],n[0].y)))):P.select("rect").attr("width","number"===typeof n[0].y?Math.max(0,a.c2p(Math.min(f.gauge.axis.range[1],n[0].y))):0),P.exit().remove();var L=n.filter((function(){return f.gauge.threshold.value})),D=p.selectAll("g.threshold-bullet").data(L);D.enter().append("g").classed("threshold-bullet",!0).append("line"),D.select("line").attr("x1",a.c2p(f.gauge.threshold.value)).attr("x2",a.c2p(f.gauge.threshold.value)).attr("y1",(1-f.gauge.threshold.thickness)/2*k).attr("y2",(1-(1-f.gauge.threshold.thickness)/2)*k).call(h.stroke,f.gauge.threshold.line.color).style("stroke-width",f.gauge.threshold.line.width),D.exit().remove();var j=p.selectAll("g.gauge-outline").data([m]);j.enter().append("g").classed("gauge-outline",!0).append("rect"),j.select("rect").call(S).call(w),j.exit().remove()}function x(e,t,n,a){var l,s,u,f,p=n[0].trace,d=a.size,h=a.radius,v=a.innerRadius,m=a.gaugeBg,y=a.gaugeOutline,b=[d.l+d.w/2,d.t+d.h/2+h/2],x=a.gauge,_=a.layer,O=a.transitionOpts,M=a.onComplete,S=Math.PI/2;function C(e){var t=p.gauge.axis.range[0],n=p.gauge.axis.range[1],r=(e-t)/(n-t)*Math.PI-S;return r<-S?-S:r>S?S:r}function A(e){return r.svg.arc().innerRadius((v+h)/2-e/2*(h-v)).outerRadius((v+h)/2+e/2*(h-v)).startAngle(-S)}function P(e){e.attr("d",(function(e){return A(e.thickness).startAngle(C(e.range[0])).endAngle(C(e.range[1]))()}))}x.enter().append("g").classed("angular",!0),x.attr("transform",E(b[0],b[1])),_.enter().append("g").classed("angularaxis",!0).classed("crisp",!0),_.selectAll("g.xangularaxistick,path,text").remove(),l=T(e,p.gauge.axis),l.type="linear",l.range=p.gauge.axis.range,l._id="xangularaxis",l.setScale();var L=function(e){return(l.range[0]-e.x)/(l.range[1]-l.range[0])*Math.PI+Math.PI},D={},j=c.makeLabelFns(l,0),I=j.labelStandoff;D.xFn=function(e){var t=L(e);return Math.cos(t)*I},D.yFn=function(e){var t=L(e),n=Math.sin(t)>0?.2:1;return-Math.sin(t)*(I+e.fontSize*n)+Math.abs(Math.cos(t))*(e.fontSize*i)},D.anchorFn=function(e){var t=L(e),n=Math.cos(t);return Math.abs(n)<.1?"middle":n>0?"start":"end"},D.heightFn=function(e,t,n){var r=L(e);return-.5*(1+Math.sin(r))*n};var R=function(e){return E(b[0]+h*Math.cos(e),b[1]-h*Math.sin(e))};u=function(e){return R(L(e))};var z=function(e){var t=L(e);return R(t)+"rotate("+-o(t)+")"};if(s=c.calcTicks(l),f=c.getTickSigns(l)[2],l.visible){f="inside"===l.ticks?-1:1;var N=(l.linewidth||1)/2;c.drawTicks(e,l,{vals:s,layer:_,path:"M"+f*N+",0h"+f*l.ticklen,transFn:z}),c.drawLabels(e,l,{vals:s,layer:_,transFn:u,labelFns:D})}var F=[m].concat(p.gauge.steps),B=x.selectAll("g.bg-arc").data(F);B.enter().append("g").classed("bg-arc",!0).append("path"),B.select("path").call(P).call(w),B.exit().remove();var V=A(p.gauge.bar.thickness),H=x.selectAll("g.value-arc").data([p.gauge.bar]);H.enter().append("g").classed("value-arc",!0).append("path");var U=H.select("path");g(O)?(U.transition().duration(O.duration).ease(O.easing).each("end",(function(){M&&M()})).each("interrupt",(function(){M&&M()})).attrTween("d",k(V,C(n[0].lastY),C(n[0].y))),p._lastValue=n[0].y):U.attr("d","number"===typeof n[0].y?V.endAngle(C(n[0].y)):"M0,0Z"),U.call(w),H.exit().remove(),F=[];var W=p.gauge.threshold.value;W&&F.push({range:[W,W],color:p.gauge.threshold.color,line:{color:p.gauge.threshold.line.color,width:p.gauge.threshold.line.width},thickness:p.gauge.threshold.thickness});var q=x.selectAll("g.threshold-arc").data(F);q.enter().append("g").classed("threshold-arc",!0).append("path"),q.select("path").call(P).call(w),q.exit().remove();var $=x.selectAll("g.gauge-outline").data([y]);$.enter().append("g").classed("gauge-outline",!0).append("path"),$.select("path").call(P).call(w),$.exit().remove()}function _(e,t,n,o){var i,s,f,p=n[0].trace,d=o.numbersX,b=o.numbersY,x=p.align||"center",_=v[x],w=o.transitionOpts,k=o.onComplete,O=a.ensureSingle(t,"g","numbers"),M=[];p._hasNumber&&M.push("number"),p._hasDelta&&(M.push("delta"),"left"===p.delta.position&&M.reverse());var A=O.selectAll("text").data(M);function P(t,n,r,a){if(!t.match("s")||r>=0===a>=0||n(r).slice(-1).match(y)||n(a).slice(-1).match(y))return n;var o=t.slice().replace("s","f").replace(/\d+/,(function(e){return parseInt(e)-1})),i=T(e,{tickformat:o});return function(e){return Math.abs(e)<1?c.tickText(i,e).text:n(e)}}function L(){var t=T(e,{tickformat:p.number.valueformat},p._range);t.setScale(),c.prepTicks(t);var a=function(e){return c.tickText(t,e).text},o=p.number.suffix,s=p.number.prefix,f=O.select("text.number");function d(){var t="number"===typeof n[0].y?s+a(n[0].y)+o:"-";f.text(t).call(l.font,p.number.font).call(u.convertToTspans,e)}return g(w)?f.transition().duration(w.duration).ease(w.easing).each("end",(function(){d(),k&&k()})).each("interrupt",(function(){d(),k&&k()})).attrTween("text",(function(){var e=r.select(this),t=r.interpolateNumber(n[0].lastY,n[0].y);p._lastValue=n[0].y;var i=P(p.number.valueformat,a,n[0].lastY,n[0].y);return function(n){e.text(s+i(t(n))+o)}})):d(),i=S(s+a(n[0].y)+o,p.number.font,_,e),f}function D(){var t=T(e,{tickformat:p.delta.valueformat},p._range);t.setScale(),c.prepTicks(t);var a=function(e){return c.tickText(t,e).text},o=function(e){var t=p.delta.relative?e.relativeDelta:e.delta;return t},i=function(e,t){return 0===e||"number"!==typeof e||isNaN(e)?"-":(e>0?p.delta.increasing.symbol:p.delta.decreasing.symbol)+t(e)},f=function(e){return e.delta>=0?p.delta.increasing.color:p.delta.decreasing.color};void 0===p._deltaLastValue&&(p._deltaLastValue=o(n[0]));var d=O.select("text.delta");function v(){d.text(i(o(n[0]),a)).call(h.fill,f(n[0])).call(u.convertToTspans,e)}return d.call(l.font,p.delta.font).call(h.fill,f({delta:p._deltaLastValue})),g(w)?d.transition().duration(w.duration).ease(w.easing).tween("text",(function(){var e=r.select(this),t=o(n[0]),l=p._deltaLastValue,s=P(p.delta.valueformat,a,l,t),u=r.interpolateNumber(l,t);return p._deltaLastValue=t,function(t){e.text(i(u(t),s)),e.call(h.fill,f({delta:u(t)}))}})).each("end",(function(){v(),k&&k()})).each("interrupt",(function(){v(),k&&k()})):v(),s=S(i(o(n[0]),a),p.delta.font,_,e),d}A.enter().append("text"),A.attr("text-anchor",(function(){return _})).attr("class",(function(e){return e})).attr("x",null).attr("y",null).attr("dx",null).attr("dy",null),A.exit().remove();var j,I=p.mode+p.align;if(p._hasDelta&&(j=D(),I+=p.delta.position+p.delta.font.size+p.delta.font.family+p.delta.valueformat,I+=p.delta.increasing.symbol+p.delta.decreasing.symbol,f=s),p._hasNumber&&(L(),I+=p.number.font.size+p.number.font.family+p.number.valueformat+p.number.suffix+p.number.prefix,f=i),p._hasDelta&&p._hasNumber){var R,z,N=[(i.left+i.right)/2,(i.top+i.bottom)/2],F=[(s.left+s.right)/2,(s.top+s.bottom)/2],B=.75*p.delta.font.size;"left"===p.delta.position&&(R=C(p,"deltaPos",0,-1*(i.width*m[p.align]+s.width*(1-m[p.align])+B),I,Math.min),z=N[1]-F[1],f={width:i.width+s.width+B,height:Math.max(i.height,s.height),left:s.left+R,right:i.right,top:Math.min(i.top,s.top+z),bottom:Math.max(i.bottom,s.bottom+z)}),"right"===p.delta.position&&(R=C(p,"deltaPos",0,i.width*(1-m[p.align])+s.width*m[p.align]+B,I,Math.max),z=N[1]-F[1],f={width:i.width+s.width+B,height:Math.max(i.height,s.height),left:i.left,right:s.right+R,top:Math.min(i.top,s.top+z),bottom:Math.max(i.bottom,s.bottom+z)}),"bottom"===p.delta.position&&(R=null,z=s.height,f={width:Math.max(i.width,s.width),height:i.height+s.height,left:Math.min(i.left,s.left),right:Math.max(i.right,s.right),top:i.bottom-i.height,bottom:i.bottom+s.height}),"top"===p.delta.position&&(R=null,z=i.top,f={width:Math.max(i.width,s.width),height:i.height+s.height,left:Math.min(i.left,s.left),right:Math.max(i.right,s.right),top:i.bottom-i.height-s.height,bottom:i.bottom}),j.attr({dx:R,dy:z})}(p._hasNumber||p._hasDelta)&&O.attr("transform",(function(){var e=o.numbersScaler(f);I+=e[2];var t,n=C(p,"numbersScale",1,e[0],I,Math.min);p._scaleNumbers||(n=1),t=p._isAngular?b-n*f.bottom:b-n*(f.top+f.bottom)/2,p._numbersTop=n*f.top+t;var r=f[x];"center"===x&&(r=(f.left+f.right)/2);var a=d-n*r;return a=C(p,"numbersTranslate",0,a,I,Math.max),E(a,t)+" scale("+n+")"}))}function w(e){e.each((function(e){h.stroke(r.select(this),e.line.color)})).each((function(e){h.fill(r.select(this),e.color)})).style("stroke-width",(function(e){return e.line.width}))}function k(e,t,n){return function(){var a=r.interpolate(t,n);return function(t){return e.endAngle(a(t))()}}}function T(e,t,n){var r=e._fullLayout,o=a.extendFlat({type:"linear",ticks:"outside",range:n,showline:!0},t),i={type:"linear",_id:"x"+t._id},l={letter:"x",font:r.font,noHover:!0,noTickson:!0};function s(e,t){return a.coerce(o,i,d,e,t)}return f(o,i,s,l,r),p(o,i,s,l),i}function E(e,t){return"translate("+e+","+t+")"}function O(e,t,n){var r=Math.min(t/e.width,n/e.height);return[r,e,t+"x"+n]}function M(e,t){var n=Math.sqrt(e.width/2*(e.width/2)+e.height*e.height),r=t/n;return[r,e,t]}function S(e,t,n,a){var o=document.createElementNS("http://www.w3.org/2000/svg","text"),i=r.select(o);return i.text(e).attr("x",0).attr("y",0).attr("text-anchor",n).attr("data-unformatted",e).call(u.convertToTspans,a).call(l.font,t),l.bBox(i.node())}function C(e,t,n,r,o,i){var l="_cache"+t;e[l]&&e[l].key===o||(e[l]={key:o,value:n});var s=a.aggNums(i,null,[e[l].value,r],2);return e[l].value=s,s}t.exports=function(e,t,n,o){var i,c=e._fullLayout;g(n)&&o&&(i=o()),a.makeTraceGroups(c._indicatorlayer,t,"trace").each((function(t){var a,o,f,p,d,h=t[0],y=h.trace,g=r.select(this),w=y._hasGauge,k=y._isAngular,T=y._isBullet,S=y.domain,C={w:c._size.w*(S.x[1]-S.x[0]),h:c._size.h*(S.y[1]-S.y[0]),l:c._size.l+c._size.w*S.x[0],r:c._size.r+c._size.w*(1-S.x[1]),t:c._size.t+c._size.h*(1-S.y[1]),b:c._size.b+c._size.h*S.y[0]},A=C.l+C.w/2,P=C.t+C.h/2,L=Math.min(C.w/2,C.h),D=s.innerRadius*L,j=y.align||"center";if(o=P,w){if(k&&(a=A,o=P+L/2,f=function(e){return M(e,.9*D)}),T){var I=s.bulletPadding,R=1-s.bulletNumberDomainSize+I;a=C.l+(R+(1-R)*m[j])*C.w,f=function(e){return O(e,(s.bulletNumberDomainSize-I)*C.w,C.h)}}}else a=C.l+m[j]*C.w,f=function(e){return O(e,C.w,C.h)};_(e,g,t,{numbersX:a,numbersY:o,numbersScaler:f,transitionOpts:n,onComplete:i}),w&&(p={range:y.gauge.axis.range,color:y.gauge.bgcolor,line:{color:y.gauge.bordercolor,width:0},thickness:1},d={range:y.gauge.axis.range,color:"rgba(0, 0, 0, 0)",line:{color:y.gauge.bordercolor,width:y.gauge.borderwidth},thickness:1});var z=g.selectAll("g.angular").data(k?t:[]);z.exit().remove();var N=g.selectAll("g.angularaxis").data(k?t:[]);N.exit().remove(),k&&x(e,g,t,{radius:L,innerRadius:D,gauge:z,layer:N,size:C,gaugeBg:p,gaugeOutline:d,transitionOpts:n,onComplete:i});var F=g.selectAll("g.bullet").data(T?t:[]);F.exit().remove();var B=g.selectAll("g.bulletaxis").data(T?t:[]);B.exit().remove(),T&&b(e,g,t,{gauge:F,layer:B,size:C,gaugeBg:p,gaugeOutline:d,transitionOpts:n,onComplete:i});var V=g.selectAll("text.title").data(t);V.exit().remove(),V.enter().append("text").classed("title",!0),V.attr("text-anchor",(function(){return T?v.right:v[y.title.align]})).text(y.title.text).call(l.font,y.title.font).call(u.convertToTspans,e),V.attr("transform",(function(){var e,t=C.l+C.w*m[y.title.align],n=s.titlePadding,r=l.bBox(V.node());if(w){if(k)if(y.gauge.axis.visible){var a=l.bBox(N.node());e=a.top-n-r.bottom}else e=C.t+C.h/2-L/2-r.bottom-n;T&&(e=o-(r.top+r.bottom)/2,t=C.l-s.bulletPadding*C.w)}else e=y._numbersTop-n-r.bottom;return E(t,e)}))}))}},{"../../components/color":615,"../../components/drawing":637,"../../constants/alignment":717,"../../lib":750,"../../lib/svg_text_utils":774,"../../plots/cartesian/axes":799,"../../plots/cartesian/axis_defaults":801,"../../plots/cartesian/layout_attributes":813,"../../plots/cartesian/position_defaults":816,"./constants":1090,d3:169}],1094:[function(e,t,n){"use strict";var r=e("../../components/colorscale/attributes"),a=e("../../plots/template_attributes").hovertemplateAttrs,o=e("../mesh3d/attributes"),i=e("../../plots/attributes"),l=e("../../lib/extend").extendFlat,s=e("../../plot_api/edit_types").overrideAll;function u(e){return{show:{valType:"boolean",dflt:!1},locations:{valType:"data_array",dflt:[]},fill:{valType:"number",min:0,max:1,dflt:1}}}function c(e){return{show:{valType:"boolean",dflt:!0},fill:{valType:"number",min:0,max:1,dflt:1}}}var f=t.exports=s(l({x:{valType:"data_array"},y:{valType:"data_array"},z:{valType:"data_array"},value:{valType:"data_array"},isomin:{valType:"number"},isomax:{valType:"number"},surface:{show:{valType:"boolean",dflt:!0},count:{valType:"integer",dflt:2,min:1},fill:{valType:"number",min:0,max:1,dflt:1},pattern:{valType:"flaglist",flags:["A","B","C","D","E"],extras:["all","odd","even"],dflt:"all"}},spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:.15}},slices:{x:u("x"),y:u("y"),z:u("z")},caps:{x:c("x"),y:c("y"),z:c("z")},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:a(),showlegend:l({},i.showlegend,{dflt:!1})},r("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:o.opacity,lightposition:o.lightposition,lighting:o.lighting,flatshading:o.flatshading,contour:o.contour,hoverinfo:l({},i.hoverinfo)}),"calc","nested");f.flatshading.dflt=!0,f.lighting.facenormalsepsilon.dflt=0,f.x.editType=f.y.editType=f.z.editType=f.value.editType="calc+clearAxisTypes",f.transforms=void 0},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plots/attributes":795,"../../plots/template_attributes":877,"../mesh3d/attributes":1099}],1095:[function(e,t,n){"use strict";var r=e("../../components/colorscale/calc"),a=e("../streamtube/calc").processGrid,o=e("../streamtube/calc").filter;t.exports=function(e,t){t._len=Math.min(t.x.length,t.y.length,t.z.length,t.value.length),t._x=o(t.x,t._len),t._y=o(t.y,t._len),t._z=o(t.z,t._len),t._value=o(t.value,t._len);var n=a(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;for(var i=1/0,l=-1/0,s=0;s<t._len;s++){var u=t._value[s];i=Math.min(i,u),l=Math.max(l,u)}t._minValues=i,t._maxValues=l,t._vMin=void 0===t.isomin||null===t.isomin?i:t.isomin,t._vMax=void 0===t.isomax||null===t.isomin?l:t.isomax,r(e,t,{vals:[t._vMin,t._vMax],containerStr:"",cLetter:"c"})}},{"../../components/colorscale/calc":623,"../streamtube/calc":1266}],1096:[function(e,t,n){"use strict";var r=e("gl-mesh3d"),a=e("../../lib/gl_format_color").parseColorScale,o=e("../../lib/str2rgbarray"),i=e("../../components/colorscale").extractOpts,l=e("../../plots/gl3d/zip3"),s=function(e,t){for(var n=t.length-1;n>0;n--){var r=Math.min(t[n],t[n-1]),a=Math.max(t[n],t[n-1]);if(a>r&&r<e&&e<=a)return{id:n,distRatio:(a-e)/(a-r)}}return{id:0,distRatio:0}};function u(e,t,n){this.scene=e,this.uid=n,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var c=u.prototype;c.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,n=this.data._meshX[t],r=this.data._meshY[t],a=this.data._meshZ[t],o=this.data._Ys.length,i=this.data._Zs.length,l=s(n,this.data._Xs).id,u=s(r,this.data._Ys).id,c=s(a,this.data._Zs).id,f=e.index=c+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var p=this.data.hovertext||this.data.text;return Array.isArray(p)&&void 0!==p[f]?e.textLabel=p[f]:p&&(e.textLabel=p),!0}},c.update=function(e){var t=this.scene,n=t.fullSceneLayout;function r(e,t,n,r){return t.map((function(t){return e.d2l(t,0,r)*n}))}this.data=p(e);var s=l(r(n.xaxis,e._meshX,t.dataScale[0],e.xcalendar),r(n.yaxis,e._meshY,t.dataScale[1],e.ycalendar),r(n.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),u=l(e._meshI,e._meshJ,e._meshK),c={positions:s,cells:u,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:o(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},f=i(e);c.vertexIntensity=e._meshIntensity,c.vertexIntensityBounds=[f.min,f.max],c.colormap=a(e),this.mesh.update(c)},c.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var f=["xyz","xzy","yxz","yzx","zxy","zyx"];function p(e){e._meshI=[],e._meshJ=[],e._meshK=[];var t,n,r,a,o,i,l,u=e.surface.show,c=e.spaceframe.show,p=e.surface.fill,d=e.spaceframe.fill,h=!1,v=!1,m=0,y=e._Xs,g=e._Ys,b=e._Zs,x=y.length,_=g.length,w=b.length,k=f.indexOf(e._gridFill.replace(/-/g,"").replace(/\+/g,"")),T=function(e,t,n){switch(k){case 5:return n+w*t+w*_*e;case 4:return n+w*e+w*x*t;case 3:return t+_*n+_*w*e;case 2:return t+_*e+_*x*n;case 1:return e+x*n+x*w*t;default:return e+x*t+x*_*n}},E=e._minValues,O=e._maxValues,M=e._vMin,S=e._vMax;function C(e,t,l){for(var s=i.length,u=n;u<s;u++)if(e===r[u]&&t===a[u]&&l===o[u])return u;return-1}function A(){n=t}function P(){r=[],a=[],o=[],i=[],t=0,A()}function L(e,n,l,s){return r.push(e),a.push(n),o.push(l),i.push(s),t++,t-1}function D(t,n,r){return e._meshI.push(t),e._meshJ.push(n),e._meshK.push(r),m++,m-1}function j(e,t,n){for(var r=[],a=0;a<e.length;a++)r[a]=(e[a]+t[a]+n[a])/3;return r}function I(e,t,n){for(var r=[],a=0;a<e.length;a++)r[a]=e[a]*(1-n)+n*t[a];return r}function R(e){l=e}function z(e,t){var n=e[0],r=e[1],a=e[2],o=j(n,r,a),i=Math.sqrt(1-l),s=I(o,n,i),u=I(o,r,i),c=I(o,a,i),f=t[0],p=t[1],d=t[2];return{xyzv:[[n,r,u],[u,s,n],[r,a,c],[c,u,r],[a,n,s],[s,c,a]],abc:[[f,p,-1],[-1,-1,f],[p,d,-1],[-1,-1,p],[d,f,-1],[-1,-1,d]]}}function N(e,t){return"all"===e||null===e||e.indexOf(t)>-1}function F(e,t){return null===e?t:e}function B(e,t,n){A();var r=[t],a=[n];if(l>=1)r=[t],a=[n];else if(l>0){var o=z(t,n);r=o.xyzv,a=o.abc}for(var i=0;i<r.length;i++){t=r[i],n=a[i];for(var s=[],u=0;u<3;u++){var c=t[u][0],f=t[u][1],p=t[u][2],d=t[u][3],h=n[u]>-1?n[u]:C(c,f,p);s[u]=h>-1?h:L(c,f,p,F(e,d))}D(s[0],s[1],s[2])}}function V(e,t,n){var r=function(r,a,o){B(e,[t[r],t[a],t[o]],[n[r],n[a],n[o]])};r(0,1,2),r(2,3,0)}function H(e,t,n){var r=function(r,a,o){B(e,[t[r],t[a],t[o]],[n[r],n[a],n[o]])};r(0,1,2),r(3,0,1),r(2,3,0),r(1,2,3)}function U(e,t,n,r){var a=e[3];a<n&&(a=n),a>r&&(a=r);for(var o=(e[3]-a)/(e[3]-t[3]+1e-9),i=[],l=0;l<4;l++)i[l]=(1-o)*e[l]+o*t[l];return i}function W(e,t,n){return e>=t&&e<=n}function q(e){var t=.001*(S-M);return e>=M-t&&e<=S+t}function $(t){for(var n=[],r=0;r<4;r++){var a=t[r];n.push([e._x[a],e._y[a],e._z[a],e._value[a]])}return n}var G=3;function Y(e,t,n,r,a,o){o||(o=1),n=[-1,-1,-1];var i=!1,l=[W(t[0][3],r,a),W(t[1][3],r,a),W(t[2][3],r,a)];if(!l[0]&&!l[1]&&!l[2])return!1;var s=function(e,t,n){return q(t[0][3])&&q(t[1][3])&&q(t[2][3])?(B(e,t,n),!0):o<G&&Y(e,t,n,M,S,++o)};if(l[0]&&l[1]&&l[2])return s(e,t,n)||i;var u=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(o){if(l[o[0]]&&l[o[1]]&&!l[o[2]]){var c=t[o[0]],f=t[o[1]],p=t[o[2]],d=U(p,c,r,a),h=U(p,f,r,a);i=s(e,[h,d,c],[-1,-1,n[o[0]]])||i,i=s(e,[c,f,h],[n[o[0]],n[o[1]],-1])||i,u=!0}})),u||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(o){if(l[o[0]]&&!l[o[1]]&&!l[o[2]]){var c=t[o[0]],f=t[o[1]],p=t[o[2]],d=U(f,c,r,a),h=U(p,c,r,a);i=s(e,[h,d,c],[-1,-1,n[o[0]]])||i,u=!0}})),i}function K(e,t,n,r){var a=!1,o=$(t),i=[W(o[0][3],n,r),W(o[1][3],n,r),W(o[2][3],n,r),W(o[3][3],n,r)];if(!i[0]&&!i[1]&&!i[2]&&!i[3])return a;if(i[0]&&i[1]&&i[2]&&i[3])return v&&(a=H(e,o,t)||a),a;var l=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(s){if(i[s[0]]&&i[s[1]]&&i[s[2]]&&!i[s[3]]){var u=o[s[0]],c=o[s[1]],f=o[s[2]],p=o[s[3]];if(v)a=B(e,[u,c,f],[t[s[0]],t[s[1]],t[s[2]]])||a;else{var d=U(p,u,n,r),h=U(p,c,n,r),m=U(p,f,n,r);a=B(null,[d,h,m],[-1,-1,-1])||a}l=!0}})),l?a:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(s){if(i[s[0]]&&i[s[1]]&&!i[s[2]]&&!i[s[3]]){var u=o[s[0]],c=o[s[1]],f=o[s[2]],p=o[s[3]],d=U(f,u,n,r),h=U(f,c,n,r),m=U(p,c,n,r),y=U(p,u,n,r);v?(a=B(e,[u,y,d],[t[s[0]],-1,-1])||a,a=B(e,[c,h,m],[t[s[1]],-1,-1])||a):a=V(null,[d,h,m,y],[-1,-1,-1,-1])||a,l=!0}})),l||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(s){if(i[s[0]]&&!i[s[1]]&&!i[s[2]]&&!i[s[3]]){var u=o[s[0]],c=o[s[1]],f=o[s[2]],p=o[s[3]],d=U(c,u,n,r),h=U(f,u,n,r),m=U(p,u,n,r);v?(a=B(e,[u,d,h],[t[s[0]],-1,-1])||a,a=B(e,[u,h,m],[t[s[0]],-1,-1])||a,a=B(e,[u,m,d],[t[s[0]],-1,-1])||a):a=B(null,[d,h,m],[-1,-1,-1])||a,l=!0}})),a)}function X(e,t,n,r,a,o,i,l,s,u,c){var f=!1;return h&&(N(e,"A")&&(f=K(null,[t,n,r,o],u,c)||f),N(e,"B")&&(f=K(null,[n,r,a,s],u,c)||f),N(e,"C")&&(f=K(null,[n,o,i,s],u,c)||f),N(e,"D")&&(f=K(null,[r,o,l,s],u,c)||f),N(e,"E")&&(f=K(null,[n,r,o,s],u,c)||f)),v&&(f=K(e,[n,r,o,s],u,c)||f),f}function Z(e,t,n,r,a,o,i,l){return[!0===l[0]||Y(e,$([t,n,r]),[t,n,r],o,i),!0===l[1]||Y(e,$([r,a,t]),[r,a,t],o,i)]}function J(e,t,n,r,a,o,i,l,s){return l?Z(e,t,n,a,r,o,i,s):Z(e,n,a,r,t,o,i,s)}function Q(e,t,n,r,a,o,i){var l,s,u,c,f=!1,p=function(){f=Y(e,[l,s,u],[-1,-1,-1],a,o)||f,f=Y(e,[u,c,l],[-1,-1,-1],a,o)||f},d=i[0],h=i[1],v=i[2];return d&&(l=I($([T(t,n-0,r-0)])[0],$([T(t-1,n-0,r-0)])[0],d),s=I($([T(t,n-0,r-1)])[0],$([T(t-1,n-0,r-1)])[0],d),u=I($([T(t,n-1,r-1)])[0],$([T(t-1,n-1,r-1)])[0],d),c=I($([T(t,n-1,r-0)])[0],$([T(t-1,n-1,r-0)])[0],d),p()),h&&(l=I($([T(t-0,n,r-0)])[0],$([T(t-0,n-1,r-0)])[0],h),s=I($([T(t-0,n,r-1)])[0],$([T(t-0,n-1,r-1)])[0],h),u=I($([T(t-1,n,r-1)])[0],$([T(t-1,n-1,r-1)])[0],h),c=I($([T(t-1,n,r-0)])[0],$([T(t-1,n-1,r-0)])[0],h),p()),v&&(l=I($([T(t-0,n-0,r)])[0],$([T(t-0,n-0,r-1)])[0],v),s=I($([T(t-0,n-1,r)])[0],$([T(t-0,n-1,r-1)])[0],v),u=I($([T(t-1,n-1,r)])[0],$([T(t-1,n-1,r-1)])[0],v),c=I($([T(t-1,n-0,r)])[0],$([T(t-1,n-0,r-1)])[0],v),p()),f}function ee(e,t,n,r,a,o,i,l,s,u,c,f){var p=e;return f?(h&&"even"===e&&(p=null),X(p,t,n,r,a,o,i,l,s,u,c)):(h&&"odd"===e&&(p=null),X(p,s,l,i,o,a,r,n,t,u,c))}function te(e,t,n,r,a){for(var o=[],i=0,l=0;l<t.length;l++)for(var s=t[l],u=1;u<w;u++)for(var c=1;c<_;c++)o.push(J(e,T(s,c-1,u-1),T(s,c-1,u),T(s,c,u-1),T(s,c,u),n,r,(s+c+u)%2,a&&a[i]?a[i]:[])),i++;return o}function ne(e,t,n,r,a){for(var o=[],i=0,l=0;l<t.length;l++)for(var s=t[l],u=1;u<x;u++)for(var c=1;c<w;c++)o.push(J(e,T(u-1,s,c-1),T(u,s,c-1),T(u-1,s,c),T(u,s,c),n,r,(u+s+c)%2,a&&a[i]?a[i]:[])),i++;return o}function re(e,t,n,r,a){for(var o=[],i=0,l=0;l<t.length;l++)for(var s=t[l],u=1;u<_;u++)for(var c=1;c<x;c++)o.push(J(e,T(c-1,u-1,s),T(c-1,u,s),T(c,u-1,s),T(c,u,s),n,r,(c+u+s)%2,a&&a[i]?a[i]:[])),i++;return o}function ae(e,t,n){for(var r=1;r<w;r++)for(var a=1;a<_;a++)for(var o=1;o<x;o++)ee(e,T(o-1,a-1,r-1),T(o-1,a-1,r),T(o-1,a,r-1),T(o-1,a,r),T(o,a-1,r-1),T(o,a-1,r),T(o,a,r-1),T(o,a,r),t,n,(o+a+r)%2)}function oe(e,t,n){v=!0,ae(e,t,n),v=!1}function ie(e,t,n){h=!0,ae(e,t,n),h=!1}function le(e,t,n,r,a,o){for(var i=[],l=0,s=0;s<t.length;s++)for(var u=t[s],c=1;c<w;c++)for(var f=1;f<_;f++)i.push(Q(e,u,f,c,n,r,a[s],o&&o[l]?o[l]:[])),l++;return i}function se(e,t,n,r,a,o){for(var i=[],l=0,s=0;s<t.length;s++)for(var u=t[s],c=1;c<x;c++)for(var f=1;f<w;f++)i.push(Q(e,c,u,f,n,r,a[s],o&&o[l]?o[l]:[])),l++;return i}function ue(e,t,n,r,a,o){for(var i=[],l=0,s=0;s<t.length;s++)for(var u=t[s],c=1;c<_;c++)for(var f=1;f<x;f++)i.push(Q(e,f,c,u,n,r,a[s],o&&o[l]?o[l]:[])),l++;return i}function ce(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n}function fe(){for(var t=0;t<x;t++)for(var n=0;n<_;n++)for(var r=0;r<w;r++){var a=T(t,n,r);L(e._x[a],e._y[a],e._z[a],e._value[a])}}function pe(){P(),fe();var t=null;if(c&&d&&(R(d),oe(t,M,S)),u&&p){R(p);for(var n=e.surface.pattern,l=e.surface.count,f=0;f<l;f++){var h=1===l?.5:f/(l-1),v=(1-h)*M+h*S,k=Math.abs(v-E),T=Math.abs(v-O),C=k>T?[E,v]:[v,O];ie(n,C[0],C[1])}}var A=[[Math.min(M,O),Math.max(M,O)],[Math.min(E,S),Math.max(E,S)]];["x","y","z"].forEach((function(n){for(var r=[],a=0;a<A.length;a++){var o=0,i=A[a][0],l=A[a][1],u=e.slices[n];if(u.show&&u.fill){R(u.fill);var c=[],f=[],p=[];if(u.locations.length)for(var d=0;d<u.locations.length;d++){var h=s(u.locations[d],"x"===n?y:"y"===n?g:b);0===h.distRatio?c.push(h.id):h.id>0&&(f.push(h.id),"x"===n?p.push([h.distRatio,0,0]):"y"===n?p.push([0,h.distRatio,0]):p.push([0,0,h.distRatio]))}else c=ce(1,"x"===n?x-1:"y"===n?_-1:w-1);f.length>0&&(r[o]="x"===n?le(t,f,i,l,p,r[o]):"y"===n?se(t,f,i,l,p,r[o]):ue(t,f,i,l,p,r[o]),o++),c.length>0&&(r[o]="x"===n?te(t,c,i,l,r[o]):"y"===n?ne(t,c,i,l,r[o]):re(t,c,i,l,r[o]),o++)}var v=e.caps[n];v.show&&v.fill&&(R(v.fill),r[o]="x"===n?te(t,[0,x-1],i,l,r[o]):"y"===n?ne(t,[0,_-1],i,l,r[o]):re(t,[0,w-1],i,l,r[o]),o++)}})),0===m&&P(),e._meshX=r,e._meshY=a,e._meshZ=o,e._meshIntensity=i,e._Xs=y,e._Ys=g,e._Zs=b}return pe(),e}function d(e,t){var n=e.glplot.gl,a=r({gl:n}),o=new u(e,a,t.uid);return a._trace=o,o.update(t),e.glplot.add(a),o}t.exports={findNearestOnAxis:s,generateIsoMeshes:p,createIsosurfaceTrace:d}},{"../../components/colorscale":627,"../../lib/gl_format_color":746,"../../lib/str2rgbarray":773,"../../plots/gl3d/zip3":852,"gl-mesh3d":292}],1097:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry"),o=e("./attributes"),i=e("../../components/colorscale/defaults");function l(e,t,n,a){function i(n,a){return r.coerce(e,t,o,n,a)}s(e,t,n,a,i)}function s(e,t,n,r,o){var l=o("isomin"),s=o("isomax");void 0!==s&&null!==s&&void 0!==l&&null!==l&&l>s&&(t.isomin=null,t.isomax=null);var u=o("x"),c=o("y"),f=o("z"),p=o("value");if(u&&u.length&&c&&c.length&&f&&f.length&&p&&p.length){var d=a.getComponentMethod("calendars","handleTraceDefaults");d(e,t,["x","y","z"],r),["x","y","z"].forEach((function(e){var t="caps."+e,n=o(t+".show");n&&o(t+".fill");var r="slices."+e,a=o(r+".show");a&&(o(r+".fill"),o(r+".locations"))}));var h=o("spaceframe.show");h&&o("spaceframe.fill");var v=o("surface.show");v&&(o("surface.count"),o("surface.fill"),o("surface.pattern"));var m=o("contour.show");m&&(o("contour.color"),o("contour.width")),["text","hovertext","hovertemplate","lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","opacity"].forEach((function(e){o(e)})),i(e,t,r,o,{prefix:"",cLetter:"c"}),t._length=null}else t.visible=!1}t.exports={supplyDefaults:l,supplyIsoDefaults:s}},{"../../components/colorscale/defaults":625,"../../lib":750,"../../registry":882,"./attributes":1094}],1098:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults").supplyDefaults,calc:e("./calc"),colorbar:{min:"cmin",max:"cmax"},plot:e("./convert").createIsosurfaceTrace,moduleType:"trace",name:"isosurface",basePlotModule:e("../../plots/gl3d"),categories:["gl3d","showLegend"],meta:{}}},{"../../plots/gl3d":841,"./attributes":1094,"./calc":1095,"./convert":1096,"./defaults":1097}],1099:[function(e,t,n){"use strict";var r=e("../../components/colorscale/attributes"),a=e("../../plots/template_attributes").hovertemplateAttrs,o=e("../surface/attributes"),i=e("../../plots/attributes"),l=e("../../lib/extend").extendFlat;t.exports=l({x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},i:{valType:"data_array",editType:"calc"},j:{valType:"data_array",editType:"calc"},k:{valType:"data_array",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertemplate:a({editType:"calc"}),delaunayaxis:{valType:"enumerated",values:["x","y","z"],dflt:"z",editType:"calc"},alphahull:{valType:"number",dflt:-1,editType:"calc"},intensity:{valType:"data_array",editType:"calc"},intensitymode:{valType:"enumerated",values:["vertex","cell"],dflt:"vertex",editType:"calc"},color:{valType:"color",editType:"calc"},vertexcolor:{valType:"data_array",editType:"calc"},facecolor:{valType:"data_array",editType:"calc"},transforms:void 0},r("",{colorAttr:"`intensity`",showScaleDflt:!0,editTypeOverride:"calc"}),{opacity:o.opacity,flatshading:{valType:"boolean",dflt:!1,editType:"calc"},contour:{show:l({},o.contours.x.show,{}),color:o.contours.x.color,width:o.contours.x.width,editType:"calc"},lightposition:{x:l({},o.lightposition.x,{dflt:1e5}),y:l({},o.lightposition.y,{dflt:1e5}),z:l({},o.lightposition.z,{dflt:0}),editType:"calc"},lighting:l({vertexnormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-12,editType:"calc"},facenormalsepsilon:{valType:"number",min:0,max:1,dflt:1e-6,editType:"calc"},editType:"calc"},o.lighting),hoverinfo:l({},i.hoverinfo,{editType:"calc"}),showlegend:l({},i.showlegend,{dflt:!1})})},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../surface/attributes":1282}],1100:[function(e,t,n){"use strict";var r=e("../../components/colorscale/calc");t.exports=function(e,t){t.intensity&&r(e,t,{vals:t.intensity,containerStr:"",cLetter:"c"})}},{"../../components/colorscale/calc":623}],1101:[function(e,t,n){"use strict";var r=e("gl-mesh3d"),a=e("delaunay-triangulate"),o=e("alpha-shape"),i=e("convex-hull"),l=e("../../lib/gl_format_color").parseColorScale,s=e("../../lib/str2rgbarray"),u=e("../../components/colorscale").extractOpts,c=e("../../plots/gl3d/zip3");function f(e,t,n){this.scene=e,this.uid=n,this.mesh=t,this.name="",this.color="#fff",this.data=null,this.showContour=!1}var p=f.prototype;function d(e){for(var t=[],n=e.length,r=0;r<n;r++)t[r]=s(e[r]);return t}function h(e,t,n,r){for(var a=[],o=t.length,i=0;i<o;i++)a[i]=e.d2l(t[i],0,r)*n;return a}function v(e){for(var t=[],n=e.length,r=0;r<n;r++)t[r]=Math.round(e[r]);return t}function m(e,t){for(var n=["x","y","z"].indexOf(e),r=[],o=t.length,i=0;i<o;i++)r[i]=[t[i][(n+1)%3],t[i][(n+2)%3]];return a(r)}function y(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r]<=-.5||e[r]>=t-.5)return!1;return!0}function g(e,t){var n=e.glplot.gl,a=r({gl:n}),o=new f(e,a,t.uid);return a._trace=o,o.update(t),e.glplot.add(a),o}p.handlePick=function(e){if(e.object===this.mesh){var t=e.index=e.data.index;e.data._cellCenter?e.traceCoordinate=e.data.dataCoordinate:e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]];var n=this.data.hovertext||this.data.text;return Array.isArray(n)&&void 0!==n[t]?e.textLabel=n[t]:n&&(e.textLabel=n),!0}},p.update=function(e){var t=this.scene,n=t.fullSceneLayout;this.data=e;var r,a=e.x.length,f=c(h(n.xaxis,e.x,t.dataScale[0],e.xcalendar),h(n.yaxis,e.y,t.dataScale[1],e.ycalendar),h(n.zaxis,e.z,t.dataScale[2],e.zcalendar));if(e.i&&e.j&&e.k){if(e.i.length!==e.j.length||e.j.length!==e.k.length||!y(e.i,a)||!y(e.j,a)||!y(e.k,a))return;r=c(v(e.i),v(e.j),v(e.k))}else r=0===e.alphahull?i(f):e.alphahull>0?o(e.alphahull,f):m(e.delaunayaxis,f);var p={positions:f,cells:r,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,contourEnable:e.contour.show,contourColor:s(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading};if(e.intensity){var g=u(e);this.color="#fff";var b=e.intensitymode;p[b+"Intensity"]=e.intensity,p[b+"IntensityBounds"]=[g.min,g.max],p.colormap=l(e)}else e.vertexcolor?(this.color=e.vertexcolor[0],p.vertexColors=d(e.vertexcolor)):e.facecolor?(this.color=e.facecolor[0],p.cellColors=d(e.facecolor)):(this.color=e.color,p.meshColor=s(e.color));this.mesh.update(p)},p.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},t.exports=g},{"../../components/colorscale":627,"../../lib/gl_format_color":746,"../../lib/str2rgbarray":773,"../../plots/gl3d/zip3":852,"alpha-shape":69,"convex-hull":135,"delaunay-triangulate":171,"gl-mesh3d":292}],1102:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),o=e("../../components/colorscale/defaults"),i=e("./attributes");t.exports=function(e,t,n,l){function s(n,r){return a.coerce(e,t,i,n,r)}function u(e){var t=e.map((function(e){var t=s(e);return t&&a.isArrayOrTypedArray(t)?t:null}));return t.every((function(e){return e&&e.length===t[0].length}))&&t}var c=u(["x","y","z"]);if(c)if(u(["i","j","k"]),(!t.i||t.j&&t.k)&&(!t.j||t.k&&t.i)&&(!t.k||t.i&&t.j)){var f=r.getComponentMethod("calendars","handleTraceDefaults");f(e,t,["x","y","z"],l),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lighting.vertexnormalsepsilon","lighting.facenormalsepsilon","lightposition.x","lightposition.y","lightposition.z","flatshading","alphahull","delaunayaxis","opacity"].forEach((function(e){s(e)}));var p=s("contour.show");p&&(s("contour.color"),s("contour.width")),"intensity"in e?(s("intensity"),s("intensitymode"),o(e,t,l,s,{prefix:"",cLetter:"c"})):(t.showscale=!1,"facecolor"in e?s("facecolor"):"vertexcolor"in e?s("vertexcolor"):s("color",n)),s("text"),s("hovertext"),s("hovertemplate"),t._length=null}else t.visible=!1;else t.visible=!1}},{"../../components/colorscale/defaults":625,"../../lib":750,"../../registry":882,"./attributes":1099}],1103:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),colorbar:{min:"cmin",max:"cmax"},plot:e("./convert"),moduleType:"trace",name:"mesh3d",basePlotModule:e("../../plots/gl3d"),categories:["gl3d","showLegend"],meta:{}}},{"../../plots/gl3d":841,"./attributes":1099,"./calc":1100,"./convert":1101,"./defaults":1102}],1104:[function(e,t,n){"use strict";var r=e("../../lib").extendFlat,a=e("../scatter/attributes"),o=e("../../components/drawing/attributes").dash,i=e("../../components/fx/attributes"),l=e("../../constants/delta.js"),s=l.INCREASING.COLOR,u=l.DECREASING.COLOR,c=a.line;function f(e){return{line:{color:r({},c.color,{dflt:e}),width:c.width,dash:o,editType:"style"},editType:"style"}}t.exports={xperiod:a.xperiod,xperiod0:a.xperiod0,xperiodalignment:a.xperiodalignment,x:{valType:"data_array",editType:"calc+clearAxisTypes"},open:{valType:"data_array",editType:"calc"},high:{valType:"data_array",editType:"calc"},low:{valType:"data_array",editType:"calc"},close:{valType:"data_array",editType:"calc"},line:{width:r({},c.width,{}),dash:r({},o,{}),editType:"style"},increasing:f(s),decreasing:f(u),text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},tickwidth:{valType:"number",min:0,max:.5,dflt:.3,editType:"calc"},hoverlabel:r({},i.hoverlabel,{split:{valType:"boolean",dflt:!1,editType:"style"}})}},{"../../components/drawing/attributes":636,"../../components/fx/attributes":646,"../../constants/delta.js":719,"../../lib":750,"../scatter/attributes":1158}],1105:[function(e,t,n){"use strict";var r=e("../../lib"),a=r._,o=e("../../plots/cartesian/axes"),i=e("../../plots/cartesian/align_period"),l=e("../../constants/numerical").BADNUM;function s(e,t){var n=o.getFromId(e,t.xaxis),a=o.getFromId(e,t.yaxis),i=f(e,n,t),l=t._minDiff;t._minDiff=null;var s=t._origX;t._origX=null;var p=t._xcalc;t._xcalc=null;var d=c(e,t,s,p,a,u);return t._extremes[n._id]=o.findExtremes(n,p,{vpad:l/2}),d.length?(r.extendFlat(d[0].t,{wHover:l/2,tickLen:i}),d):[{t:{empty:!0}}]}function u(e,t,n,r){return{o:e,h:t,l:n,c:r}}function c(e,t,n,i,s,u){for(var c=s.makeCalcdata(t,"open"),f=s.makeCalcdata(t,"high"),p=s.makeCalcdata(t,"low"),d=s.makeCalcdata(t,"close"),h=Array.isArray(t.text),v=Array.isArray(t.hovertext),m=!0,y=null,g=!!t.xperiodalignment,b=[],x=0;x<i.length;x++){var _=i[x],w=c[x],k=f[x],T=p[x],E=d[x];if(_!==l&&w!==l&&k!==l&&T!==l&&E!==l){E===w?null!==y&&E!==y&&(m=E>y):m=E>w,y=E;var O=u(w,k,T,E);O.pos=_,O.yc=(w+E)/2,O.i=x,O.dir=m?"increasing":"decreasing",O.x=O.pos,O.y=[T,k],g&&(O.orig_p=n[x]),h&&(O.tx=t.text[x]),v&&(O.htx=t.hovertext[x]),b.push(O)}else b.push({pos:_,empty:!0})}return t._extremes[s._id]=o.findExtremes(s,r.concat(p,f),{padded:!0}),b.length&&(b[0].t={labels:{open:a(e,"open:")+" ",high:a(e,"high:")+" ",low:a(e,"low:")+" ",close:a(e,"close:")+" "}}),b}function f(e,t,n){var a=n._minDiff;if(!a){var o,l=e._fullData,s=[];for(a=1/0,o=0;o<l.length;o++){var u=l[o];if("ohlc"===u.type&&!0===u.visible&&u.xaxis===t._id){s.push(u);var c=t.makeCalcdata(u,"x");u._origX=c;var f=i(n,t,"x",c);u._xcalc=f;var p=r.distinctVals(f).minDiff;p&&isFinite(p)&&(a=Math.min(a,p))}}for(a===1/0&&(a=1),o=0;o<s.length;o++)s[o]._minDiff=a}return a*n.tickwidth}t.exports={calc:s,calcCommon:c}},{"../../constants/numerical":725,"../../lib":750,"../../plots/cartesian/align_period":796,"../../plots/cartesian/axes":799}],1106:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./ohlc_defaults"),o=e("../scatter/period_defaults"),i=e("./attributes");function l(e,t,n,r){n(r+".line.color"),n(r+".line.width",t.line.width),n(r+".line.dash",t.line.dash)}t.exports=function(e,t,n,s){function u(n,a){return r.coerce(e,t,i,n,a)}var c=a(e,t,u,s);c?(o(e,t,s,u,{x:!0}),u("line.width"),u("line.dash"),l(e,t,u,"increasing"),l(e,t,u,"decreasing"),u("text"),u("hovertext"),u("tickwidth"),s._requestRangeslider[t.xaxis]=!0):t.visible=!1}},{"../../lib":750,"../scatter/period_defaults":1178,"./attributes":1104,"./ohlc_defaults":1109}],1107:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../lib"),o=e("../../components/fx"),i=e("../../components/color"),l=e("../../lib").fillText,s=e("../../constants/delta.js"),u={increasing:s.INCREASING.SYMBOL,decreasing:s.DECREASING.SYMBOL};function c(e,t,n,r){var a=e.cd,o=a[0].trace;return o.hoverlabel.split?p(e,t,n,r):d(e,t,n,r)}function f(e,t,n,r){var a,l,s=e.cd,u=e.xa,c=s[0].trace,f=s[0].t,p=c.type,d="ohlc"===p?"l":"min",h="ohlc"===p?"h":"max",v=f.bPos||0,m=function(e){return e.pos+v-t},y=f.bdPos||f.tickLen,g=f.wHover,b=Math.min(1,y/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function x(e){var t=m(e);return o.inbox(t-g,t+g,a)}function _(e){var t=e[d],r=e[h];return t===r||o.inbox(t-n,r-n,a)}function w(e){return(x(e)+_(e))/2}a=e.maxHoverDistance-b,l=e.maxSpikeDistance-b;var k=o.getDistanceFunction(r,x,_,w);if(o.getClosest(s,k,e),!1===e.index)return null;var T=s[e.index];if(T.empty)return null;var E=T.dir,O=c[E],M=O.line.color;return i.opacity(M)&&O.line.width?e.color=M:e.color=O.fillcolor,e.x0=u.c2p(T.pos+v-y,!0),e.x1=u.c2p(T.pos+v+y,!0),e.xLabelVal=void 0!==T.orig_p?T.orig_p:T.pos,e.spikeDistance=w(T)*l/a,e.xSpike=u.c2p(T.pos,!0),e}function p(e,t,n,o){var i=e.cd,l=e.ya,s=i[0].trace,u=i[0].t,c=[],p=f(e,t,n,o);if(!p)return[];var d=p.index,h=i[d],v=h.hi||s.hoverinfo,m=v.split("+"),y="all"===v,g=y||-1!==m.indexOf("y");if(!g)return[];for(var b=["high","open","close","low"],x={},_=0;_<b.length;_++){var w,k=b[_],T=s[k][p.index],E=l.c2p(T,!0);T in x?(w=x[T],w.yLabel+="<br>"+u.labels[k]+r.hoverLabelText(l,T)):(w=a.extendFlat({},p),w.y0=w.y1=E,w.yLabelVal=T,w.yLabel=u.labels[k]+r.hoverLabelText(l,T),w.name="",c.push(w),x[T]=w)}return c}function d(e,t,n,a){var o=e.cd,i=e.ya,s=o[0].trace,c=o[0].t,p=f(e,t,n,a);if(!p)return[];var d=p.index,h=o[d],v=p.index=h.i,m=h.dir;function y(e){return c.labels[e]+r.hoverLabelText(i,s[e][v])}var g=h.hi||s.hoverinfo,b=g.split("+"),x="all"===g,_=x||-1!==b.indexOf("y"),w=x||-1!==b.indexOf("text"),k=_?[y("open"),y("high"),y("low"),y("close")+" "+u[m]]:[];return w&&l(h,s,k),p.extraText=k.join("<br>"),p.y0=p.y1=i.c2p(h.yc,!0),[p]}t.exports={hoverPoints:c,hoverSplit:p,hoverOnPoints:d}},{"../../components/color":615,"../../components/fx":655,"../../constants/delta.js":719,"../../lib":750,"../../plots/cartesian/axes":799}],1108:[function(e,t,n){"use strict";t.exports={moduleType:"trace",name:"ohlc",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","showLegend"],meta:{},attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc").calc,plot:e("./plot"),style:e("./style"),hoverPoints:e("./hover").hoverPoints,selectPoints:e("./select")}},{"../../plots/cartesian":812,"./attributes":1104,"./calc":1105,"./defaults":1106,"./hover":1107,"./plot":1110,"./select":1111,"./style":1112}],1109:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib");t.exports=function(e,t,n,o){var i=n("x"),l=n("open"),s=n("high"),u=n("low"),c=n("close");n("hoverlabel.split");var f=r.getComponentMethod("calendars","handleTraceDefaults");if(f(e,t,["x"],o),l&&s&&u&&c){var p=Math.min(l.length,s.length,u.length,c.length);return i&&(p=Math.min(p,a.minRowLength(i))),t._length=p,p}}},{"../../lib":750,"../../registry":882}],1110:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib");t.exports=function(e,t,n,o){var i=t.yaxis,l=t.xaxis,s=!!l.rangebreaks;a.makeTraceGroups(o,n,"trace ohlc").each((function(e){var t=r.select(this),n=e[0],o=n.t,u=n.trace;if(!0!==u.visible||o.empty)t.remove();else{var c=o.tickLen,f=t.selectAll("path").data(a.identity);f.enter().append("path"),f.exit().remove(),f.attr("d",(function(e){if(e.empty)return"M0,0Z";var t=l.c2p(e.pos-c,!0),n=l.c2p(e.pos+c,!0),r=s?(t+n)/2:l.c2p(e.pos,!0),a=i.c2p(e.o,!0),o=i.c2p(e.h,!0),u=i.c2p(e.l,!0),f=i.c2p(e.c,!0);return"M"+t+","+a+"H"+r+"M"+r+","+o+"V"+u+"M"+n+","+f+"H"+r}))}}))}},{"../../lib":750,d3:169}],1111:[function(e,t,n){"use strict";t.exports=function(e,t){var n,r=e.cd,a=e.xaxis,o=e.yaxis,i=[],l=r[0].t.bPos||0;if(!1===t)for(n=0;n<r.length;n++)r[n].selected=0;else for(n=0;n<r.length;n++){var s=r[n];t.contains([a.c2p(s.pos+l),o.c2p(s.yc)],null,s.i,e)?(i.push({pointNumber:s.i,x:a.c2d(s.pos),y:o.c2d(s.yc)}),s.selected=1):s.selected=0}return i}},{}],1112:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/drawing"),o=e("../../components/color");t.exports=function(e,t,n){var i=n||r.select(e).selectAll("g.ohlclayer").selectAll("g.trace");i.style("opacity",(function(e){return e[0].trace.opacity})),i.each((function(e){var t=e[0].trace;r.select(this).selectAll("path").each((function(e){if(!e.empty){var n=t[e.dir].line;r.select(this).style("fill","none").call(o.stroke,n.color).call(a.dashLine,n.dash,n.width).style("opacity",t.selectedpoints&&!e.selected?.3:1)}}))}))}},{"../../components/color":615,"../../components/drawing":637,d3:169}],1113:[function(e,t,n){"use strict";var r=e("../../lib/extend").extendFlat,a=e("../../plots/attributes"),o=e("../../plots/font_attributes"),i=e("../../components/colorscale/attributes"),l=e("../../plots/template_attributes").hovertemplateAttrs,s=e("../../plots/domain").attributes,u=r({editType:"calc"},i("line",{editTypeOverride:"calc"}),{shape:{valType:"enumerated",values:["linear","hspline"],dflt:"linear",editType:"plot"},hovertemplate:l({editType:"plot",arrayOk:!1},{keys:["count","probability"]})});t.exports={domain:s({name:"parcats",trace:!0,editType:"calc"}),hoverinfo:r({},a.hoverinfo,{flags:["count","probability"],editType:"plot",arrayOk:!1}),hoveron:{valType:"enumerated",values:["category","color","dimension"],dflt:"category",editType:"plot"},hovertemplate:l({editType:"plot",arrayOk:!1},{keys:["count","probability","category","categorycount","colorcount","bandcolorcount"]}),arrangement:{valType:"enumerated",values:["perpendicular","freeform","fixed"],dflt:"perpendicular",editType:"plot"},bundlecolors:{valType:"boolean",dflt:!0,editType:"plot"},sortpaths:{valType:"enumerated",values:["forward","backward"],dflt:"forward",editType:"plot"},labelfont:o({editType:"calc"}),tickfont:o({editType:"calc"}),dimensions:{_isLinkedToArray:"dimension",label:{valType:"string",editType:"calc"},categoryorder:{valType:"enumerated",values:["trace","category ascending","category descending","array"],dflt:"trace",editType:"calc"},categoryarray:{valType:"data_array",editType:"calc"},ticktext:{valType:"data_array",editType:"calc"},values:{valType:"data_array",dflt:[],editType:"calc"},displayindex:{valType:"integer",editType:"calc"},editType:"calc",visible:{valType:"boolean",dflt:!0,editType:"calc"}},line:u,counts:{valType:"number",min:0,dflt:1,arrayOk:!0,editType:"calc"},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/domain":826,"../../plots/font_attributes":827,"../../plots/template_attributes":877}],1114:[function(e,t,n){"use strict";var r=e("../../plots/get_data").getModuleCalcData,a=e("./plot"),o="parcats";n.name=o,n.plot=function(e,t,n,i){var l=r(e.calcdata,o);if(l.length){var s=l[0];a(e,s,n,i)}},n.clean=function(e,t,n,r){var a=r._has&&r._has("parcats"),o=t._has&&t._has("parcats");a&&!o&&r._paperdiv.selectAll(".parcats").remove()}},{"../../plots/get_data":836,"./plot":1119}],1115:[function(e,t,n){"use strict";var r=e("../../lib/gup").wrap,a=e("../../components/colorscale/helpers").hasColorscale,o=e("../../components/colorscale/calc"),i=e("../../lib/filter_unique.js"),l=e("../../components/drawing"),s=e("../../lib"),u=e("fast-isnumeric");function c(e,t,n){var r=e.map((function(e){return e.categories.length})).reduce((function(e,t){return Math.max(e,t)}));return{dimensions:e,paths:t,trace:void 0,maxCats:r,count:n}}function f(e,t,n,r,a){return{dimensionInd:e,containerInd:t,displayInd:n,dimensionLabel:r,count:a,categories:[],dragX:null}}function p(e,t,n,r){return{dimensionInd:e,categoryInd:t,categoryValue:n,displayInd:t,categoryLabel:r,valueInds:[],count:0,dragY:null}}function d(e,t,n){e.valueInds.push(t),e.count+=n}function h(e,t,n){return{categoryInds:e,color:t,rawColor:n,valueInds:[],count:0}}function v(e,t,n){e.valueInds.push(t),e.count+=n}function m(e,t){t=void 0===t||null===t?[]:t.map((function(e){return e}));var n={},r={},a=[];t.forEach((function(e,t){n[e]=0,r[e]=t}));for(var o=0;o<e.length;o++){var i,l=e[o];void 0===n[l]?(n[l]=1,i=t.push(l)-1,r[l]=i):(n[l]++,i=r[l]),a.push(i)}var s=t.map((function(e){return n[e]}));return{uniqueValues:t,uniqueCounts:s,inds:a}}function y(e){var t,n=e.map((function(e){return e.displayindex}));if(b(n))for(t=0;t<e.length;t++)e[t]._displayindex=e[t].displayindex;else for(t=0;t<e.length;t++)e[t]._displayindex=t}function g(e,t){e._categoryarray=t.uniqueValues,null===e.ticktext||void 0===e.ticktext?e._ticktext=[]:e._ticktext=e.ticktext.slice();for(var n=e._ticktext.length;n<t.uniqueValues.length;n++)e._ticktext.push(t.uniqueValues[n])}function b(e){for(var t=new Array(e.length),n=0;n<e.length;n++){if(e[n]<0||e[n]>=e.length)return!1;if(void 0!==t[e[n]])return!1;t[e[n]]=!0}return!0}t.exports=function(e,t){var n=s.filterVisible(t.dimensions);if(0===n.length)return[];var b,x,_,w=n.map((function(e){var t;if("trace"===e.categoryorder)t=null;else if("array"===e.categoryorder)t=e.categoryarray;else{t=i(e.values);for(var n=!0,r=0;r<t.length;r++)if(!u(t[r])){n=!1;break}t.sort(n?s.sorterAsc:void 0),"category descending"===e.categoryorder&&(t=t.reverse())}return m(e.values,t)}));b=s.isArrayOrTypedArray(t.counts)?t.counts:[t.counts],y(n),n.forEach((function(e,t){g(e,w[t])}));var k,T=t.line;function E(e){var t,n;return s.isArrayOrTypedArray(T.color)?(t=T.color[e%T.color.length],n=t):t=T.color,{color:k(t),rawColor:n}}T?(a(t,"line")&&o(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),k=l.tryColorscale(T)):k=s.identity;var O,M,S=n[0].values.length,C={},A=w.map((function(e){return e.inds}));for(_=0,O=0;O<S;O++){var P=[];for(M=0;M<A.length;M++)P.push(A[M][O]);x=b[O%b.length],_+=x;var L=E(O),D=P+"-"+L.rawColor;void 0===C[D]&&(C[D]=h(P,L.color,L.rawColor)),v(C[D],O,x)}var j=n.map((function(e,t){return f(t,e._index,e._displayindex,e.label,_)}));for(O=0;O<S;O++)for(x=b[O%b.length],M=0;M<j.length;M++){var I=j[M].containerInd,R=w[M].inds[O],z=j[M].categories;if(void 0===z[R]){var N=t.dimensions[I]._categoryarray[R],F=t.dimensions[I]._ticktext[R];z[R]=p(M,R,N,F)}d(z[R],O,x)}return r(c(j,C,_))}},{"../../components/colorscale/calc":623,"../../components/colorscale/helpers":626,"../../components/drawing":637,"../../lib":750,"../../lib/filter_unique.js":741,"../../lib/gup":747,"fast-isnumeric":241}],1116:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/colorscale/helpers").hasColorscale,o=e("../../components/colorscale/defaults"),i=e("../../plots/domain").defaults,l=e("../../plots/array_container_defaults"),s=e("./attributes"),u=e("../parcoords/merge_length");function c(e,t,n,i,l){l("line.shape"),l("line.hovertemplate");var s=l("line.color",i.colorway[0]);if(a(e,"line")&&r.isArrayOrTypedArray(s)){if(s.length)return l("line.colorscale"),o(e,t,i,l,{prefix:"line.",cLetter:"c"}),s.length;t.line.color=n}return 1/0}function f(e,t){function n(n,a){return r.coerce(e,t,s.dimensions,n,a)}var a=n("values"),o=n("visible");if(a&&a.length||(o=t.visible=!1),o){n("label"),n("displayindex",t._index);var i,l=e.categoryarray,u=Array.isArray(l)&&l.length>0;u&&(i="array");var c=n("categoryorder",i);"array"===c?(n("categoryarray"),n("ticktext")):(delete e.categoryarray,delete e.ticktext),u||"array"!==c||(t.categoryorder="trace")}}t.exports=function(e,t,n,a){function o(n,a){return r.coerce(e,t,s,n,a)}var p=l(e,t,{name:"dimensions",handleItemDefaults:f}),d=c(e,t,n,a,o);i(t,a,o),Array.isArray(p)&&p.length||(t.visible=!1),u(t,p,"values",d),o("hoveron"),o("hovertemplate"),o("arrangement"),o("bundlecolors"),o("sortpaths"),o("counts");var h={family:a.font.family,size:Math.round(a.font.size),color:a.font.color};r.coerceFont(o,"labelfont",h);var v={family:a.font.family,size:Math.round(a.font.size/1.2),color:a.font.color};r.coerceFont(o,"tickfont",v)}},{"../../components/colorscale/defaults":625,"../../components/colorscale/helpers":626,"../../lib":750,"../../plots/array_container_defaults":794,"../../plots/domain":826,"../parcoords/merge_length":1129,"./attributes":1113}],1117:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot"),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcats",basePlotModule:e("./base_plot"),categories:["noOpacity"],meta:{}}},{"./attributes":1113,"./base_plot":1114,"./calc":1115,"./defaults":1116,"./plot":1119}],1118:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../plot_api/plot_api"),o=e("../../components/fx"),i=e("../../lib"),l=e("../../components/drawing"),s=e("tinycolor2"),u=e("../../lib/svg_text_utils");function c(e,t,n,a){var o=e.map(V.bind(0,t,n)),s=a.selectAll("g.parcatslayer").data([null]);s.enter().append("g").attr("class","parcatslayer").style("pointer-events","all");var c=s.selectAll("g.trace.parcats").data(o,f),m=c.enter().append("g").attr("class","trace parcats");c.attr("transform",(function(e){return"translate("+e.x+", "+e.y+")"})),m.append("g").attr("class","paths");var y=c.select("g.paths"),x=y.selectAll("path.path").data((function(e){return e.paths}),f);x.attr("fill",(function(e){return e.model.color}));var _=x.enter().append("path").attr("class","path").attr("stroke-opacity",0).attr("fill",(function(e){return e.model.color})).attr("fill-opacity",0);b(_),x.attr("d",(function(e){return e.svgD})),_.empty()||x.sort(d),x.exit().remove(),x.on("mouseover",h).on("mouseout",v).on("click",g),m.append("g").attr("class","dimensions");var k=c.select("g.dimensions"),E=k.selectAll("g.dimension").data((function(e){return e.dimensions}),f);E.enter().append("g").attr("class","dimension"),E.attr("transform",(function(e){return"translate("+e.x+", 0)"})),E.exit().remove();var O=E.selectAll("g.category").data((function(e){return e.categories}),f),M=O.enter().append("g").attr("class","category");O.attr("transform",(function(e){return"translate(0, "+e.y+")"})),M.append("rect").attr("class","catrect").attr("pointer-events","none"),O.select("rect.catrect").attr("fill","none").attr("width",(function(e){return e.width})).attr("height",(function(e){return e.height})),w(M);var S=O.selectAll("rect.bandrect").data((function(e){return e.bands}),f);S.each((function(){i.raiseToTop(this)})),S.attr("fill",(function(e){return e.color}));var C=S.enter().append("rect").attr("class","bandrect").attr("stroke-opacity",0).attr("fill",(function(e){return e.color})).attr("fill-opacity",0);S.attr("fill",(function(e){return e.color})).attr("width",(function(e){return e.width})).attr("height",(function(e){return e.height})).attr("y",(function(e){return e.y})).attr("cursor",(function(e){return"fixed"===e.parcatsViewModel.arrangement?"default":"perpendicular"===e.parcatsViewModel.arrangement?"ns-resize":"move"})),T(C),S.exit().remove(),M.append("text").attr("class","catlabel").attr("pointer-events","none");var A=t._fullLayout.paper_bgcolor;O.select("text.catlabel").attr("text-anchor",(function(e){return p(e)?"start":"end"})).attr("alignment-baseline","middle").style("text-shadow",A+" -1px 1px 2px, "+A+" 1px 1px 2px, "+A+" 1px -1px 2px, "+A+" -1px -1px 2px").style("fill","rgb(0, 0, 0)").attr("x",(function(e){return p(e)?e.width+5:-5})).attr("y",(function(e){return e.height/2})).text((function(e){return e.model.categoryLabel})).each((function(e){l.font(r.select(this),e.parcatsViewModel.categorylabelfont),u.convertToTspans(r.select(this),t)})),M.append("text").attr("class","dimlabel"),O.select("text.dimlabel").attr("text-anchor","middle").attr("alignment-baseline","baseline").attr("cursor",(function(e){return"fixed"===e.parcatsViewModel.arrangement?"default":"ew-resize"})).attr("x",(function(e){return e.width/2})).attr("y",-5).text((function(e,t){return 0===t?e.parcatsViewModel.model.dimensions[e.model.dimensionInd].dimensionLabel:null})).each((function(e){l.font(r.select(this),e.parcatsViewModel.labelfont)})),O.selectAll("rect.bandrect").on("mouseover",D).on("mouseout",j),O.exit().remove(),E.call(r.behavior.drag().origin((function(e){return{x:e.x,y:0}})).on("dragstart",I).on("drag",R).on("dragend",z)),c.each((function(e){e.traceSelection=r.select(this),e.pathSelection=r.select(this).selectAll("g.paths").selectAll("path.path"),e.dimensionSelection=r.select(this).selectAll("g.dimensions").selectAll("g.dimension")})),c.exit().remove()}function f(e){return e.key}function p(e){var t=e.parcatsViewModel.dimensions.length,n=e.parcatsViewModel.dimensions[t-1].model.dimensionInd;return e.model.dimensionInd===n}function d(e,t){return e.model.rawColor>t.model.rawColor?1:e.model.rawColor<t.model.rawColor?-1:0}function h(e){if(!e.parcatsViewModel.dragDimension&&-1===e.parcatsViewModel.hoverinfoItems.indexOf("skip")){i.raiseToTop(this),x(r.select(this));var t=m(e),n=y(e);if(e.parcatsViewModel.graphDiv.emit("plotly_hover",{points:t,event:r.event,constraints:n}),-1===e.parcatsViewModel.hoverinfoItems.indexOf("none")){var a,l,u,c=r.mouse(this)[0],f=e.parcatsViewModel.graphDiv,p=e.parcatsViewModel.trace,d=f._fullLayout,h=d._paperdiv.node().getBoundingClientRect(),v=e.parcatsViewModel.graphDiv.getBoundingClientRect();for(u=0;u<e.leftXs.length-1;u++)if(e.leftXs[u]+e.dimWidths[u]-2<=c&&c<=e.leftXs[u+1]+2){var g=e.parcatsViewModel.dimensions[u],b=e.parcatsViewModel.dimensions[u+1];a=(g.x+g.width+b.x)/2,l=(e.topYs[u]+e.topYs[u+1]+e.height)/2;break}var _=e.parcatsViewModel.x+a,w=e.parcatsViewModel.y+l,k=s.mostReadable(e.model.color,["black","white"]),T=e.model.count,E=T/e.parcatsViewModel.model.count,O={countLabel:T,probabilityLabel:E.toFixed(3)},M=[];-1!==e.parcatsViewModel.hoverinfoItems.indexOf("count")&&M.push(["Count:",O.countLabel].join(" ")),-1!==e.parcatsViewModel.hoverinfoItems.indexOf("probability")&&M.push(["P:",O.probabilityLabel].join(" "));var S=M.join("<br>"),C=r.mouse(f)[0];o.loneHover({trace:p,x:_-h.left+v.left,y:w-h.top+v.top,text:S,color:e.model.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:10,fontColor:k,idealAlign:C<_?"right":"left",hovertemplate:(p.line||{}).hovertemplate,hovertemplateLabels:O,eventData:[{data:p._input,fullData:p,count:T,probability:E}]},{container:d._hoverlayer.node(),outerContainer:d._paper.node(),gd:f})}}}function v(e){if(!e.parcatsViewModel.dragDimension&&(b(r.select(this)),o.loneUnhover(e.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),e.parcatsViewModel.pathSelection.sort(d),-1===e.parcatsViewModel.hoverinfoItems.indexOf("skip"))){var t=m(e),n=y(e);e.parcatsViewModel.graphDiv.emit("plotly_unhover",{points:t,event:r.event,constraints:n})}}function m(e){for(var t=[],n=N(e.parcatsViewModel),r=0;r<e.model.valueInds.length;r++){var a=e.model.valueInds[r];t.push({curveNumber:n,pointNumber:a})}return t}function y(e){for(var t={},n=e.parcatsViewModel.model.dimensions,r=0;r<n.length;r++){var a=n[r],o=a.categories[e.model.categoryInds[r]];t[a.containerInd]=o.categoryValue}return void 0!==e.model.rawColor&&(t.color=e.model.rawColor),t}function g(e){if(-1===e.parcatsViewModel.hoverinfoItems.indexOf("skip")){var t=m(e),n=y(e);e.parcatsViewModel.graphDiv.emit("plotly_click",{points:t,event:r.event,constraints:n})}}function b(e){e.attr("fill",(function(e){return e.model.color})).attr("fill-opacity",.6).attr("stroke","lightgray").attr("stroke-width",.2).attr("stroke-opacity",1)}function x(e){e.attr("fill-opacity",.8).attr("stroke",(function(e){return s.mostReadable(e.model.color,["black","white"])})).attr("stroke-width",.3)}function _(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",2.5)}function w(e){e.select("rect.catrect").attr("stroke","black").attr("stroke-width",1).attr("stroke-opacity",1)}function k(e){e.attr("stroke","black").attr("stroke-width",1.5)}function T(e){e.attr("stroke","black").attr("stroke-width",.2).attr("stroke-opacity",1).attr("fill-opacity",1)}function E(e){var t=e.parcatsViewModel.pathSelection,n=e.categoryViewModel.model.dimensionInd,r=e.categoryViewModel.model.categoryInd;return t.filter((function(t){return t.model.categoryInds[n]===r&&t.model.color===e.color}))}function O(e){var t=r.select(e.parentNode).selectAll("rect.bandrect");t.each((function(e){var t=E(e);x(t),t.each((function(){i.raiseToTop(this)}))})),_(r.select(e.parentNode))}function M(e){var t=r.select(e).datum(),n=E(t);x(n),n.each((function(){i.raiseToTop(this)})),r.select(e.parentNode).selectAll("rect.bandrect").filter((function(e){return e.color===t.color})).each((function(){i.raiseToTop(this),k(r.select(this))}))}function S(e,t,n){var a=r.select(e).datum(),o=a.categoryViewModel.model,i=a.parcatsViewModel.graphDiv,l=r.select(e.parentNode).selectAll("rect.bandrect"),s=[];l.each((function(e){var t=E(e);t.each((function(e){Array.prototype.push.apply(s,m(e))}))}));var u={};u[o.dimensionInd]=o.categoryValue,i.emit(t,{points:s,event:n,constraints:u})}function C(e,t,n){var a=r.select(e).datum(),o=a.categoryViewModel.model,i=a.parcatsViewModel.graphDiv,l=E(a),s=[];l.each((function(e){Array.prototype.push.apply(s,m(e))}));var u={};u[o.dimensionInd]=o.categoryValue,void 0!==a.rawColor&&(u.color=a.rawColor),i.emit(t,{points:s,event:n,constraints:u})}function A(e,t){var n,a,o=r.select(t.parentNode).select("rect.catrect"),i=o.node().getBoundingClientRect(),l=o.datum(),s=l.parcatsViewModel,u=s.model.dimensions[l.model.dimensionInd],c=s.trace,f=i.top+i.height/2;s.dimensions.length>1&&u.displayInd===s.dimensions.length-1?(n=i.left,a="left"):(n=i.left+i.width,a="right");var p=l.model.count,d=l.model.categoryLabel,h=p/l.parcatsViewModel.model.count,v={countLabel:p,categoryLabel:d,probabilityLabel:h.toFixed(3)},m=[];-1!==l.parcatsViewModel.hoverinfoItems.indexOf("count")&&m.push(["Count:",v.countLabel].join(" ")),-1!==l.parcatsViewModel.hoverinfoItems.indexOf("probability")&&m.push(["P("+v.categoryLabel+"):",v.probabilityLabel].join(" "));var y=m.join("<br>");return{trace:c,x:n-e.left,y:f-e.top,text:y,color:"lightgray",borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontSize:12,fontColor:"black",idealAlign:a,hovertemplate:c.hovertemplate,hovertemplateLabels:v,eventData:[{data:c._input,fullData:c,count:p,category:d,probability:h}]}}function P(e,t){var n=[];return r.select(t.parentNode.parentNode).selectAll("g.category").select("rect.catrect").each((function(){var t=this;n.push(A(e,t))})),n}function L(e,t){var n,a,o=t.getBoundingClientRect(),i=r.select(t).datum(),l=i.categoryViewModel,u=l.parcatsViewModel,c=u.model.dimensions[l.model.dimensionInd],f=u.trace,p=o.y+o.height/2;u.dimensions.length>1&&c.displayInd===u.dimensions.length-1?(n=o.left,a="left"):(n=o.left+o.width,a="right");var d=l.model.categoryLabel,h=i.parcatsViewModel.model.count,v=0;i.categoryViewModel.bands.forEach((function(e){e.color===i.color&&(v+=e.count)}));var m=l.model.count,y=0;u.pathSelection.each((function(e){e.model.color===i.color&&(y+=e.model.count)}));var g=v/h,b=v/y,x=v/m,_={countLabel:h,categoryLabel:d,probabilityLabel:g.toFixed(3)},w=[];-1!==l.parcatsViewModel.hoverinfoItems.indexOf("count")&&w.push(["Count:",_.countLabel].join(" ")),-1!==l.parcatsViewModel.hoverinfoItems.indexOf("probability")&&(w.push("P(color ∩ "+d+"): "+_.probabilityLabel),w.push("P("+d+" | color): "+b.toFixed(3)),w.push("P(color | "+d+"): "+x.toFixed(3)));var k=w.join("<br>"),T=s.mostReadable(i.color,["black","white"]);return{trace:f,x:n-e.left,y:p-e.top,text:k,color:i.color,borderColor:"black",fontFamily:'Monaco, "Courier New", monospace',fontColor:T,fontSize:10,idealAlign:a,hovertemplate:f.hovertemplate,hovertemplateLabels:_,eventData:[{data:f._input,fullData:f,category:d,count:h,probability:g,categorycount:m,colorcount:y,bandcolorcount:v}]}}function D(e){if(!e.parcatsViewModel.dragDimension&&-1===e.parcatsViewModel.hoverinfoItems.indexOf("skip")){var t=r.mouse(this)[1];if(t<-1)return;var n,a=e.parcatsViewModel.graphDiv,i=a._fullLayout,l=i._paperdiv.node().getBoundingClientRect(),s=e.parcatsViewModel.hoveron,u=this;if("color"===s?(M(u),C(u,"plotly_hover",r.event)):(O(u),S(u,"plotly_hover",r.event)),-1===e.parcatsViewModel.hoverinfoItems.indexOf("none"))"category"===s?n=A(l,u):"color"===s?n=L(l,u):"dimension"===s&&(n=P(l,u)),n&&o.loneHover(n,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:a})}}function j(e){var t=e.parcatsViewModel;if(!t.dragDimension&&(b(t.pathSelection),w(t.dimensionSelection.selectAll("g.category")),T(t.dimensionSelection.selectAll("g.category").selectAll("rect.bandrect")),o.loneUnhover(t.graphDiv._fullLayout._hoverlayer.node()),t.pathSelection.sort(d),-1===t.hoverinfoItems.indexOf("skip"))){var n=e.parcatsViewModel.hoveron,a=this;"color"===n?C(a,"plotly_unhover",r.event):S(a,"plotly_unhover",r.event)}}function I(e){"fixed"!==e.parcatsViewModel.arrangement&&(e.dragDimensionDisplayInd=e.model.displayInd,e.initialDragDimensionDisplayInds=e.parcatsViewModel.model.dimensions.map((function(e){return e.displayInd})),e.dragHasMoved=!1,e.dragCategoryDisplayInd=null,r.select(this).selectAll("g.category").select("rect.catrect").each((function(t){var n=r.mouse(this)[0],a=r.mouse(this)[1];-2<=n&&n<=t.width+2&&-2<=a&&a<=t.height+2&&(e.dragCategoryDisplayInd=t.model.displayInd,e.initialDragCategoryDisplayInds=e.model.categories.map((function(e){return e.displayInd})),t.model.dragY=t.y,i.raiseToTop(this.parentNode),r.select(this.parentNode).selectAll("rect.bandrect").each((function(t){t.y<a&&a<=t.y+t.height&&(e.potentialClickBand=this)})))})),e.parcatsViewModel.dragDimension=e,o.loneUnhover(e.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function R(e){if("fixed"!==e.parcatsViewModel.arrangement&&(e.dragHasMoved=!0,null!==e.dragDimensionDisplayInd)){var t=e.dragDimensionDisplayInd,n=t-1,a=t+1,o=e.parcatsViewModel.dimensions[t];if(null!==e.dragCategoryDisplayInd){var i=o.categories[e.dragCategoryDisplayInd];i.model.dragY+=r.event.dy;var l=i.model.dragY,s=i.model.displayInd,u=o.categories,c=u[s-1],f=u[s+1];void 0!==c&&l<c.y+c.height/2&&(i.model.displayInd=c.model.displayInd,c.model.displayInd=s),void 0!==f&&l+i.height>f.y+f.height/2&&(i.model.displayInd=f.model.displayInd,f.model.displayInd=s),e.dragCategoryDisplayInd=i.model.displayInd}if(null===e.dragCategoryDisplayInd||"freeform"===e.parcatsViewModel.arrangement){o.model.dragX=r.event.x;var p=e.parcatsViewModel.dimensions[n],d=e.parcatsViewModel.dimensions[a];void 0!==p&&o.model.dragX<p.x+p.width&&(o.model.displayInd=p.model.displayInd,p.model.displayInd=t),void 0!==d&&o.model.dragX+o.width>d.x&&(o.model.displayInd=d.model.displayInd,d.model.displayInd=e.dragDimensionDisplayInd),e.dragDimensionDisplayInd=o.model.displayInd}W(e.parcatsViewModel),U(e.parcatsViewModel),B(e.parcatsViewModel),F(e.parcatsViewModel)}}function z(e){if("fixed"!==e.parcatsViewModel.arrangement&&null!==e.dragDimensionDisplayInd){r.select(this).selectAll("text").attr("font-weight","normal");var t={},n=N(e.parcatsViewModel),o=e.parcatsViewModel.model.dimensions.map((function(e){return e.displayInd})),i=e.initialDragDimensionDisplayInds.some((function(e,t){return e!==o[t]}));i&&o.forEach((function(n,r){var a=e.parcatsViewModel.model.dimensions[r].containerInd;t["dimensions["+a+"].displayindex"]=n}));var l=!1;if(null!==e.dragCategoryDisplayInd){var s=e.model.categories.map((function(e){return e.displayInd}));if(l=e.initialDragCategoryDisplayInds.some((function(e,t){return e!==s[t]})),l){var u=e.model.categories.slice().sort((function(e,t){return e.displayInd-t.displayInd})),c=u.map((function(e){return e.categoryValue})),f=u.map((function(e){return e.categoryLabel}));t["dimensions["+e.model.containerInd+"].categoryarray"]=[c],t["dimensions["+e.model.containerInd+"].ticktext"]=[f],t["dimensions["+e.model.containerInd+"].categoryorder"]="array"}}if(-1===e.parcatsViewModel.hoverinfoItems.indexOf("skip")&&!e.dragHasMoved&&e.potentialClickBand&&("color"===e.parcatsViewModel.hoveron?C(e.potentialClickBand,"plotly_click",r.event.sourceEvent):S(e.potentialClickBand,"plotly_click",r.event.sourceEvent)),e.model.dragX=null,null!==e.dragCategoryDisplayInd){var p=e.parcatsViewModel.dimensions[e.dragDimensionDisplayInd].categories[e.dragCategoryDisplayInd];p.model.dragY=null,e.dragCategoryDisplayInd=null}e.dragDimensionDisplayInd=null,e.parcatsViewModel.dragDimension=null,e.dragHasMoved=null,e.potentialClickBand=null,W(e.parcatsViewModel),U(e.parcatsViewModel);var d=r.transition().duration(300).ease("cubic-in-out");d.each((function(){B(e.parcatsViewModel,!0),F(e.parcatsViewModel,!0)})).each("end",(function(){(i||l)&&a.restyle(e.parcatsViewModel.graphDiv,t,[n])}))}}function N(e){for(var t,n=e.graphDiv._fullData,r=0;r<n.length;r++)if(e.key===n[r].uid){t=r;break}return t}function F(e,t){function n(e){return t?e.transition():e}void 0===t&&(t=!1),e.pathSelection.data((function(e){return e.paths}),f),n(e.pathSelection).attr("d",(function(e){return e.svgD}))}function B(e,t){function n(e){return t?e.transition():e}void 0===t&&(t=!1),e.dimensionSelection.data((function(e){return e.dimensions}),f);var a=e.dimensionSelection.selectAll("g.category").data((function(e){return e.categories}),f);n(e.dimensionSelection).attr("transform",(function(e){return"translate("+e.x+", 0)"})),n(a).attr("transform",(function(e){return"translate(0, "+e.y+")"}));var o=a.select(".dimlabel");o.text((function(e,t){return 0===t?e.parcatsViewModel.model.dimensions[e.model.dimensionInd].dimensionLabel:null}));var l=a.select(".catlabel");l.attr("text-anchor",(function(e){return p(e)?"start":"end"})).attr("x",(function(e){return p(e)?e.width+5:-5})).each((function(e){var t,n;p(e)?(t=e.width+5,n="start"):(t=-5,n="end"),r.select(this).selectAll("tspan").attr("x",t).attr("text-anchor",n)}));var s=a.selectAll("rect.bandrect").data((function(e){return e.bands}),f),u=s.enter().append("rect").attr("class","bandrect").attr("cursor","move").attr("stroke-opacity",0).attr("fill",(function(e){return e.color})).attr("fill-opacity",0);s.attr("fill",(function(e){return e.color})).attr("width",(function(e){return e.width})).attr("height",(function(e){return e.height})).attr("y",(function(e){return e.y})),T(u),s.each((function(){i.raiseToTop(this)})),s.exit().remove()}function V(e,t,n){var r,a=n[0],o=t.margin||{l:80,r:80,t:100,b:80},i=a.trace,l=i.domain,s=t.width,u=t.height,c=Math.floor(s*(l.x[1]-l.x[0])),f=Math.floor(u*(l.y[1]-l.y[0])),p=l.x[0]*s+o.l,d=t.height-l.y[1]*t.height+o.t,h=i.line.shape;r="all"===i.hoverinfo?["count","probability"]:(i.hoverinfo||"").split("+");var v={trace:i,key:i.uid,model:a,x:p,y:d,width:c,height:f,hoveron:i.hoveron,hoverinfoItems:r,arrangement:i.arrangement,bundlecolors:i.bundlecolors,sortpaths:i.sortpaths,labelfont:i.labelfont,categorylabelfont:i.tickfont,pathShape:h,dragDimension:null,margin:o,paths:[],dimensions:[],graphDiv:e,traceSelection:null,pathSelection:null,dimensionSelection:null};return a.dimensions&&(W(v),U(v)),v}function H(e,t,n,a,o){var i,l,s=[],u=[];for(l=0;l<n.length-1;l++)i=r.interpolateNumber(n[l]+e[l],e[l+1]),s.push(i(o)),u.push(i(1-o));var c="M "+e[0]+","+t[0];for(c+="l"+n[0]+",0 ",l=1;l<n.length;l++)c+="C"+s[l-1]+","+t[l-1]+" "+u[l-1]+","+t[l]+" "+e[l]+","+t[l],c+="l"+n[l]+",0 ";for(c+="l0,"+a+" ",c+="l -"+n[n.length-1]+",0 ",l=n.length-2;l>=0;l--)c+="C"+u[l]+","+(t[l+1]+a)+" "+s[l]+","+(t[l]+a)+" "+(e[l]+n[l])+","+(t[l]+a),c+="l-"+n[l]+",0 ";return c+="Z",c}function U(e){var t=e.dimensions,n=e.model,r=t.map((function(e){return e.categories.map((function(e){return e.y}))})),a=e.model.dimensions.map((function(e){return e.categories.map((function(e){return e.displayInd}))})),o=e.model.dimensions.map((function(e){return e.displayInd})),i=e.dimensions.map((function(e){return e.model.dimensionInd})),l=t.map((function(e){return e.x})),s=t.map((function(e){return e.width})),u=[];for(var c in n.paths)n.paths.hasOwnProperty(c)&&u.push(n.paths[c]);function f(e){var t=e.categoryInds.map((function(e,t){return a[t][e]})),n=i.map((function(e){return t[e]}));return n}u.sort((function(t,n){var r=f(t),a=f(n);return"backward"===e.sortpaths&&(r.reverse(),a.reverse()),r.push(t.valueInds[0]),a.push(n.valueInds[0]),e.bundlecolors&&(r.unshift(t.rawColor),a.unshift(n.rawColor)),r<a?-1:r>a?1:0}));for(var p=new Array(u.length),d=t[0].model.count,h=t[0].categories.map((function(e){return e.height})).reduce((function(e,t){return e+t})),v=0;v<u.length;v++){var m,y=u[v];m=d>0?h*(y.count/d):0;for(var g,b=new Array(r.length),x=0;x<y.categoryInds.length;x++){var _=y.categoryInds[x],w=a[x][_],k=o[x];b[k]=r[k][w],r[k][w]+=m;var T=e.dimensions[k].categories[w],E=T.bands.length,O=T.bands[E-1];if(void 0===O||y.rawColor!==O.rawColor){var M=void 0===O?0:O.y+O.height;T.bands.push({key:M,color:y.color,rawColor:y.rawColor,height:m,width:T.width,count:y.count,y:M,categoryViewModel:T,parcatsViewModel:e})}else{var S=T.bands[E-1];S.height+=m,S.count+=y.count}}g="hspline"===e.pathShape?H(l,b,s,m,.5):H(l,b,s,m,0),p[v]={key:y.valueInds[0],model:y,height:m,leftXs:l,topYs:b,dimWidths:s,svgD:g,parcatsViewModel:e}}e.paths=p}function W(e){var t=e.model.dimensions.map((function(e){return{displayInd:e.displayInd,dimensionInd:e.dimensionInd}}));t.sort((function(e,t){return e.displayInd-t.displayInd}));var n=[];for(var r in t){var a=t[r].dimensionInd,o=e.model.dimensions[a];n.push(q(e,o))}e.dimensions=n}function q(e,t){var n,r,a,o=40,i=16,l=e.model.dimensions.length,s=t.displayInd;n=l>1?(e.width-2*o-i)/(l-1):0,r=o,a=r+n*s;var u,c,f,p,d,h=[],v=e.model.maxCats,m=t.categories.length,y=8,g=t.count,b=e.height-y*(v-1),x=(v-m)*y/2,_=t.categories.map((function(e){return{displayInd:e.displayInd,categoryInd:e.categoryInd}}));for(_.sort((function(e,t){return e.displayInd-t.displayInd})),d=0;d<m;d++)p=_[d].categoryInd,c=t.categories[p],u=g>0?c.count/g*b:0,f={key:c.valueInds[0],model:c,width:i,height:u,y:null!==c.dragY?c.dragY:x,bands:[],parcatsViewModel:e},x=x+u+y,h.push(f);return{key:t.dimensionInd,x:null!==t.dragX?t.dragX:a,y:0,width:i,model:t,categories:h,parcatsViewModel:e,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}t.exports=function(e,t,n,r){c(n,e,r,t)}},{"../../components/drawing":637,"../../components/fx":655,"../../lib":750,"../../lib/svg_text_utils":774,"../../plot_api/plot_api":785,d3:169,tinycolor2:548}],1119:[function(e,t,n){"use strict";var r=e("./parcats");t.exports=function(e,t,n,a){var o=e._fullLayout,i=o._paper,l=o._size;r(e,i,t,{width:l.w,height:l.h,margin:{t:l.t,r:l.r,b:l.b,l:l.l}},n,a)}},{"./parcats":1118}],1120:[function(e,t,n){"use strict";var r=e("../../components/colorscale/attributes"),a=e("../../plots/cartesian/layout_attributes"),o=e("../../plots/font_attributes"),i=e("../../plots/domain").attributes,l=e("../../lib/extend").extendFlat,s=e("../../plot_api/plot_template").templatedArray;t.exports={domain:i({name:"parcoords",trace:!0,editType:"plot"}),labelangle:{valType:"angle",dflt:0,editType:"plot"},labelside:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},labelfont:o({editType:"plot"}),tickfont:o({editType:"plot"}),rangefont:o({editType:"plot"}),dimensions:s("dimension",{label:{valType:"string",editType:"plot"},tickvals:l({},a.tickvals,{editType:"plot"}),ticktext:l({},a.ticktext,{editType:"plot"}),tickformat:l({},a.tickformat,{editType:"plot"}),visible:{valType:"boolean",dflt:!0,editType:"plot"},range:{valType:"info_array",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},constraintrange:{valType:"info_array",freeLength:!0,dimensions:"1-2",items:[{valType:"number",editType:"plot"},{valType:"number",editType:"plot"}],editType:"plot"},multiselect:{valType:"boolean",dflt:!0,editType:"plot"},values:{valType:"data_array",editType:"calc"},editType:"calc"}),line:l({editType:"calc"},r("line",{colorscaleDflt:"Viridis",autoColorDflt:!1,editTypeOverride:"calc"}))}},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plot_api/plot_template":788,"../../plots/cartesian/layout_attributes":813,"../../plots/domain":826,"../../plots/font_attributes":827}],1121:[function(e,t,n){"use strict";var r=e("./constants"),a=e("d3"),o=e("../../lib/gup").keyFun,i=e("../../lib/gup").repeat,l=e("../../lib").sorterAsc,s=r.bar.snapRatio;function u(e,t){return e*(1-s)+t*s}var c=r.bar.snapClose;function f(e,t){return e*(1-c)+t*c}function p(e,t,n,r){if(d(n,r))return n;var a=e?-1:1,o=0,i=t.length-1;if(a<0){var l=o;o=i,i=l}for(var s=t[o],c=s,p=o;a*p<a*i;p+=a){var h=p+a,v=t[h];if(a*n<a*f(s,v))return u(s,c);if(a*n<a*v||h===i)return u(v,s);c=s,s=v}}function d(e,t){for(var n=0;n<t.length;n++)if(e>=t[n][0]&&e<=t[n][1])return!0;return!1}function h(e){e.attr("x",-r.bar.captureWidth/2).attr("width",r.bar.captureWidth)}function v(e){e.attr("visibility","visible").style("visibility","visible").attr("fill","yellow").attr("opacity",0)}function m(e){if(!e.brush.filterSpecified)return"0,"+e.height;for(var t,n,r,a=y(e.brush.filter.getConsolidated(),e.height),o=[0],i=a.length?a[0][0]:null,l=0;l<a.length;l++)t=a[l],n=t[1]-t[0],o.push(i),o.push(n),r=l+1,r<a.length&&(i=a[r][0]-t[1]);return o.push(e.height),o}function y(e,t){return e.map((function(e){return e.map((function(e){return Math.max(0,e*t)})).sort(l)}))}function g(e,t){var n=r.bar.handleHeight;if(!(t>e[1]+n||t<e[0]-n))return t>=.9*e[1]+.1*e[0]?"n":t<=.9*e[0]+.1*e[1]?"s":"ns"}function b(){a.select(document.body).style("cursor",null)}function x(e){e.attr("stroke-dasharray",m)}function _(e,t){var n=a.select(e).selectAll(".highlight, .highlight-shadow"),o=t?n.transition().duration(r.bar.snapDuration).each("end",t):n;x(o)}function w(e,t){var n,r=e.brush,a=r.filterSpecified,o=NaN,i={};if(a){var l=e.height,s=r.filter.getConsolidated(),u=y(s,l),c=NaN,f=NaN,p=NaN;for(n=0;n<=u.length;n++){var d=u[n];if(d&&d[0]<=t&&t<=d[1]){c=n;break}if(f=n?n-1:NaN,d&&d[0]>t){p=n;break}}if(o=c,isNaN(o)&&(o=isNaN(f)||isNaN(p)?isNaN(f)?p:f:t-u[f][1]<u[p][0]-t?f:p),!isNaN(o)){var h=u[o],v=g(h,t);v&&(i.interval=s[o],i.intervalPix=h,i.region=v)}}if(e.ordinal&&!i.region){var m=e.unitTickvals,b=e.unitToPaddedPx.invert(t);for(n=0;n<m.length;n++){var x=[.25*m[Math.max(n-1,0)]+.75*m[n],.25*m[Math.min(n+1,m.length-1)]+.75*m[n]];if(b>=x[0]&&b<=x[1]){i.clickableOrdinalRange=x;break}}}return i}function k(e,t){a.event.sourceEvent.stopPropagation();var n=t.height-a.mouse(e)[1]-2*r.verticalPadding,o=t.unitToPaddedPx.invert(n),i=t.brush,l=w(t,n),s=l.interval,u=i.svgBrush;if(u.wasDragged=!1,u.grabbingBar="ns"===l.region,u.grabbingBar){var c=s.map(t.unitToPaddedPx);u.grabPoint=n-c[0]-r.verticalPadding,u.barLength=c[1]-c[0]}u.clickableOrdinalRange=l.clickableOrdinalRange,u.stayingIntervals=t.multiselect&&i.filterSpecified?i.filter.getConsolidated():[],s&&(u.stayingIntervals=u.stayingIntervals.filter((function(e){return e[0]!==s[0]&&e[1]!==s[1]}))),u.startExtent=l.region?s["s"===l.region?1:0]:o,t.parent.inBrushDrag=!0,u.brushStartCallback()}function T(e,t){a.event.sourceEvent.stopPropagation();var n=t.height-a.mouse(e)[1]-2*r.verticalPadding,o=t.brush.svgBrush;o.wasDragged=!0,o._dragging=!0,o.grabbingBar?o.newExtent=[n-o.grabPoint,n+o.barLength-o.grabPoint].map(t.unitToPaddedPx.invert):o.newExtent=[o.startExtent,t.unitToPaddedPx.invert(n)].sort(l),t.brush.filterSpecified=!0,o.extent=o.stayingIntervals.concat([o.newExtent]),o.brushCallback(t),_(e.parentNode)}function E(e,t){var n=t.brush,r=n.filter,o=n.svgBrush;o._dragging||(O(e,t),T(e,t),t.brush.svgBrush.wasDragged=!1),o._dragging=!1;var i=a.event;i.sourceEvent.stopPropagation();var l=o.grabbingBar;if(o.grabbingBar=!1,o.grabLocation=void 0,t.parent.inBrushDrag=!1,b(),!o.wasDragged)return o.wasDragged=void 0,o.clickableOrdinalRange?n.filterSpecified&&t.multiselect?o.extent.push(o.clickableOrdinalRange):(o.extent=[o.clickableOrdinalRange],n.filterSpecified=!0):l?(o.extent=o.stayingIntervals,0===o.extent.length&&L(n)):L(n),o.brushCallback(t),_(e.parentNode),void o.brushEndCallback(n.filterSpecified?r.getConsolidated():[]);var s=function(){r.set(r.getConsolidated())};if(t.ordinal){var u=t.unitTickvals;u[u.length-1]<u[0]&&u.reverse(),o.newExtent=[p(0,u,o.newExtent[0],o.stayingIntervals),p(1,u,o.newExtent[1],o.stayingIntervals)];var c=o.newExtent[1]>o.newExtent[0];o.extent=o.stayingIntervals.concat(c?[o.newExtent]:[]),o.extent.length||L(n),o.brushCallback(t),c?_(e.parentNode,s):(s(),_(e.parentNode))}else s();o.brushEndCallback(n.filterSpecified?r.getConsolidated():[])}function O(e,t){var n=t.height-a.mouse(e)[1]-2*r.verticalPadding,o=w(t,n),i="crosshair";o.clickableOrdinalRange?i="pointer":o.region&&(i=o.region+"-resize"),a.select(document.body).style("cursor",i)}function M(e){e.on("mousemove",(function(e){a.event.preventDefault(),e.parent.inBrushDrag||O(this,e)})).on("mouseleave",(function(e){e.parent.inBrushDrag||b()})).call(a.behavior.drag().on("dragstart",(function(e){k(this,e)})).on("drag",(function(e){T(this,e)})).on("dragend",(function(e){E(this,e)})))}function S(e,t){return e[0]-t[0]}function C(e){var t=e.selectAll(".background").data(i);t.enter().append("rect").classed("background",!0).call(h).call(v).style("pointer-events","auto").attr("transform","translate(0 "+r.verticalPadding+")"),t.call(M).attr("height",(function(e){return e.height-r.verticalPadding}));var n=e.selectAll(".highlight-shadow").data(i);n.enter().append("line").classed("highlight-shadow",!0).attr("x",-r.bar.width/2).attr("stroke-width",r.bar.width+r.bar.strokeWidth).attr("stroke",r.bar.strokeColor).attr("opacity",r.bar.strokeOpacity).attr("stroke-linecap","butt"),n.attr("y1",(function(e){return e.height})).call(x);var a=e.selectAll(".highlight").data(i);a.enter().append("line").classed("highlight",!0).attr("x",-r.bar.width/2).attr("stroke-width",r.bar.width-r.bar.strokeWidth).attr("stroke",r.bar.fillColor).attr("opacity",r.bar.fillOpacity).attr("stroke-linecap","butt"),a.attr("y1",(function(e){return e.height})).call(x)}function A(e){var t=e.selectAll("."+r.cn.axisBrush).data(i,o);t.enter().append("g").classed(r.cn.axisBrush,!0),C(t)}function P(e){return e.svgBrush.extent.map((function(e){return e.slice()}))}function L(e){e.filterSpecified=!1,e.svgBrush.extent=[[-1/0,1/0]]}function D(e){return function(t){var n=t.brush,r=P(n),a=r.slice();n.filter.set(a),e()}}function j(e){var t,n=e.slice(),r=[],a=n.shift();while(a){t=a.slice();while((a=n.shift())&&a[0]<=t[1])t[1]=Math.max(t[1],a[1]);r.push(t)}return 1===r.length&&r[0][0]>r[0][1]&&(r=[]),r}function I(){var e,t,n=[];return{set:function(r){n=r.map((function(e){return e.slice().sort(l)})).sort(S),1===n.length&&n[0][0]===-1/0&&n[0][1]===1/0&&(n=[[0,-1]]),e=j(n),t=n.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0])},get:function(){return n.slice()},getConsolidated:function(){return e},getBounds:function(){return t}}}function R(e,t,n,r,a,o){var i=I();return i.set(n),{filter:i,filterSpecified:t,svgBrush:{extent:[],brushStartCallback:r,brushCallback:D(a),brushEndCallback:o}}}function z(e,t){if(Array.isArray(e[0])?(e=e.map((function(e){return e.sort(l)})),e=t.multiselect?j(e.sort(S)):[e[0]]):e=[e.sort(l)],t.tickvals){var n=t.tickvals.slice().sort(l);if(e=e.map((function(e){var t=[p(0,n,e[0],[]),p(1,n,e[1],[])];if(t[1]>t[0])return t})).filter((function(e){return e})),!e.length)return}return e.length>1?e:e[0]}t.exports={makeBrush:R,ensureAxisBrush:A,cleanRanges:z}},{"../../lib":750,"../../lib/gup":747,"./constants":1124,d3:169}],1122:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../plots/get_data").getModuleCalcData,o=e("./plot"),i=e("../../constants/xmlns_namespaces");n.name="parcoords",n.plot=function(e){var t=a(e.calcdata,"parcoords")[0];t.length&&o(e,t)},n.clean=function(e,t,n,r){var a=r._has&&r._has("parcoords"),o=t._has&&t._has("parcoords");a&&!o&&(r._paperdiv.selectAll(".parcoords").remove(),r._glimages.selectAll("*").remove())},n.toSVG=function(e){var t=e._fullLayout._glimages,n=r.select(e).selectAll(".svg-container"),a=n.filter((function(e,t){return t===n.size()-1})).selectAll(".gl-canvas-context, .gl-canvas-focus");function o(){var e=this,n=e.toDataURL("image/png"),r=t.append("svg:image");r.attr({xmlns:i.svg,"xlink:href":n,preserveAspectRatio:"none",x:0,y:0,width:e.width,height:e.height})}a.each(o),window.setTimeout((function(){r.selectAll("#filterBarPattern").attr("id","filterBarPattern")}),60)}},{"../../constants/xmlns_namespaces":726,"../../plots/get_data":836,"./plot":1131,d3:169}],1123:[function(e,t,n){"use strict";var r=e("../../lib").isArrayOrTypedArray,a=e("../../components/colorscale"),o=e("../../lib/gup").wrap;function i(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=.5;return t}t.exports=function(e,t){var n,l;return a.hasColorscale(t,"line")&&r(t.line.color)?(n=t.line.color,l=a.extractOpts(t.line).colorscale,a.calc(e,t,{vals:n,containerStr:"line",cLetter:"c"})):(n=i(t._length),l=[[0,t.line.color],[1,t.line.color]]),o({lineColor:n,cscale:l})}},{"../../components/colorscale":627,"../../lib":750,"../../lib/gup":747}],1124:[function(e,t,n){"use strict";t.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:["contextLineLayer","focusLineLayer","pickLineLayer"],axisTitleOffset:28,axisExtentOffset:10,deselectedLineColor:"#777",bar:{width:4,captureWidth:10,fillColor:"magenta",fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeColor:"white",strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:"axis-extent-text",parcoordsLineLayers:"parcoords-line-layers",parcoordsLineLayer:"parcoords-lines",parcoords:"parcoords",parcoordsControlView:"parcoords-control-view",yAxis:"y-axis",axisOverlays:"axis-overlays",axis:"axis",axisHeading:"axis-heading",axisTitle:"axis-title",axisExtent:"axis-extent",axisExtentTop:"axis-extent-top",axisExtentTopText:"axis-extent-top-text",axisExtentBottom:"axis-extent-bottom",axisExtentBottomText:"axis-extent-bottom-text",axisBrush:"axis-brush"},id:{filterBarPattern:"filter-bar-pattern"}}},{}],1125:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/colorscale/helpers").hasColorscale,o=e("../../components/colorscale/defaults"),i=e("../../plots/domain").defaults,l=e("../../plots/array_container_defaults"),s=e("../../plots/cartesian/axes"),u=e("./attributes"),c=e("./axisbrush"),f=e("./constants").maxDimensionCount,p=e("./merge_length");function d(e,t,n,i,l){var s=l("line.color",n);if(a(e,"line")&&r.isArrayOrTypedArray(s)){if(s.length)return l("line.colorscale"),o(e,t,i,l,{prefix:"line.",cLetter:"c"}),s.length;t.line.color=n}return 1/0}function h(e,t,n,a){function o(n,a){return r.coerce(e,t,u.dimensions,n,a)}var i=o("values"),l=o("visible");if(i&&i.length||(l=t.visible=!1),l){o("label"),o("tickvals"),o("ticktext"),o("tickformat");var f=o("range");t._ax={_id:"y",type:"linear",showexponent:"all",exponentformat:"B",range:f},s.setConvert(t._ax,a.layout),o("multiselect");var p=o("constraintrange");p&&(t.constraintrange=c.cleanRanges(p,t))}}t.exports=function(e,t,n,a){function o(n,a){return r.coerce(e,t,u,n,a)}var s=e.dimensions;Array.isArray(s)&&s.length>f&&(r.log("parcoords traces support up to "+f+" dimensions at the moment"),s.splice(f));var c=l(e,t,{name:"dimensions",layout:a,handleItemDefaults:h}),v=d(e,t,n,a,o);i(t,a,o),Array.isArray(c)&&c.length||(t.visible=!1),p(t,c,"values",v);var m={family:a.font.family,size:Math.round(a.font.size/1.2),color:a.font.color};r.coerceFont(o,"labelfont",m),r.coerceFont(o,"tickfont",m),r.coerceFont(o,"rangefont",m),o("labelangle"),o("labelside")}},{"../../components/colorscale/defaults":625,"../../components/colorscale/helpers":626,"../../lib":750,"../../plots/array_container_defaults":794,"../../plots/cartesian/axes":799,"../../plots/domain":826,"./attributes":1120,"./axisbrush":1121,"./constants":1124,"./merge_length":1129}],1126:[function(e,t,n){"use strict";var r=e("../../lib").isTypedArray;n.convertTypedArray=function(e){return r(e)?Array.prototype.slice.call(e):e},n.isOrdinal=function(e){return!!e.tickvals},n.isVisible=function(e){return e.visible||!("visible"in e)}},{"../../lib":750}],1127:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot"),colorbar:{container:"line",min:"cmin",max:"cmax"},moduleType:"trace",name:"parcoords",basePlotModule:e("./base_plot"),categories:["gl","regl","noOpacity","noHover"],meta:{}}},{"./attributes":1120,"./base_plot":1122,"./calc":1123,"./defaults":1125,"./plot":1131}],1128:[function(e,t,n){"use strict";var r=e("glslify"),a=r(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\n p17_20, p21_24, p25_28, p29_32,\n p33_36, p37_40, p41_44, p45_48,\n p49_52, p53_56, p57_60, colors;\n\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\n loA, hiA, loB, hiB, loC, hiC, loD, hiD;\n\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\nuniform sampler2D mask, palette;\nuniform float maskHeight;\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\nuniform vec4 contextColor;\n\nbool isPick = (drwLayer > 1.5);\nbool isContext = (drwLayer < 0.5);\n\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\n\nfloat val(mat4 p, mat4 v) {\n return dot(matrixCompMult(p, v) * UNITS, UNITS);\n}\n\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\n float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\n float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\n return y1 * (1.0 - ratio) + y2 * ratio;\n}\n\nint iMod(int a, int b) {\n return a - b * (a / b);\n}\n\nbool fOutside(float p, float lo, float hi) {\n return (lo < hi) && (lo > p || p > hi);\n}\n\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\n return (\n fOutside(p[0], lo[0], hi[0]) ||\n fOutside(p[1], lo[1], hi[1]) ||\n fOutside(p[2], lo[2], hi[2]) ||\n fOutside(p[3], lo[3], hi[3])\n );\n}\n\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\n return (\n vOutside(p[0], lo[0], hi[0]) ||\n vOutside(p[1], lo[1], hi[1]) ||\n vOutside(p[2], lo[2], hi[2]) ||\n vOutside(p[3], lo[3], hi[3])\n );\n}\n\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\n return mOutside(A, loA, hiA) ||\n mOutside(B, loB, hiB) ||\n mOutside(C, loC, hiC) ||\n mOutside(D, loD, hiD);\n}\n\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\n mat4 pnts[4];\n pnts[0] = A;\n pnts[1] = B;\n pnts[2] = C;\n pnts[3] = D;\n\n for(int i = 0; i < 4; ++i) {\n for(int j = 0; j < 4; ++j) {\n for(int k = 0; k < 4; ++k) {\n if(0 == iMod(\n int(255.0 * texture2D(mask,\n vec2(\n (float(i * 2 + j / 2) + 0.5) / 8.0,\n (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\n ))[3]\n ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\n 2\n )) return true;\n }\n }\n }\n return false;\n}\n\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\n float x = 0.5 * sign(v) + 0.5;\n float y = axisY(x, A, B, C, D);\n float z = 1.0 - abs(v);\n\n z += isContext ? 0.0 : 2.0 * float(\n outsideBoundingBox(A, B, C, D) ||\n outsideRasterMask(A, B, C, D)\n );\n\n return vec4(\n 2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\n z,\n 1.0\n );\n}\n\nvoid main() {\n mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\n mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\n mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\n mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\n\n float v = colors[3];\n\n gl_Position = position(isContext, v, A, B, C, D);\n\n fragColor =\n isContext ? vec4(contextColor) :\n isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\n}\n"]),o=r(["precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n gl_FragColor = fragColor;\n}\n"]),i=e("./constants").maxDimensionCount,l=e("../../lib"),s=1e-6,u=2048,c=new Uint8Array(4),f=new Uint8Array(4),p={shape:[256,1],format:"rgba",type:"uint8",mag:"nearest",min:"nearest"};function d(e){e.read({x:0,y:0,width:1,height:1,data:c})}function h(e,t,n,r,a){var o=e._gl;o.enable(o.SCISSOR_TEST),o.scissor(t,n,r,a),e.clear({color:[0,0,0,0],depth:1})}function v(e,t,n,r,a,o){var i=o.key;function l(s){var u=Math.min(r,a-s*r);0===s&&(window.cancelAnimationFrame(n.currentRafs[i]),delete n.currentRafs[i],h(e,o.scissorX,o.scissorY,o.scissorWidth,o.viewBoxSize[1])),n.clearOnly||(o.count=2*u,o.offset=2*s*r,t(o),s*r+u<a&&(n.currentRafs[i]=window.requestAnimationFrame((function(){l(s+1)}))),n.drawCompleted=!1)}n.drawCompleted||(d(e),n.drawCompleted=!0),l(0)}function m(e){return Math.max(s,Math.min(1-s,e))}function y(e,t){for(var n=new Array(256),r=0;r<256;r++)n[r]=e(r/255).concat(t);return n}function g(e,t){return(e>>>8*t)%256/255}function b(e,t,n){for(var r=new Array(e*(i+4)),a=0,o=0;o<e;o++){for(var l=0;l<i;l++)r[a++]=l<t.length?t[l].paddedUnitValues[o]:.5;r[a++]=g(o,2),r[a++]=g(o,1),r[a++]=g(o,0),r[a++]=m(n[o])}return r}function x(e,t,n){for(var r=new Array(8*t),a=0,o=0;o<t;o++)for(var i=0;i<2;i++)for(var l=0;l<4;l++){var s=4*e+l,u=n[64*o+s];63===s&&0===i&&(u*=-1),r[a++]=u}return r}function _(e){var t="0"+e;return t.substr(t.length-2)}function w(e){return e<i?"p"+_(e+1)+"_"+_(e+4):"colors"}function k(e,t,n){for(var r=0;r<=i;r+=4)e[w(r)](x(r/4,t,n))}function T(e){for(var t={},n=0;n<=i;n+=4)t[w(n)]=e.buffer({usage:"dynamic",type:"float",data:new Uint8Array(0)});return t}function E(e,t,n,r,a,o,i,s,u,c,f,p,d){for(var h=[[],[]],v=0;v<64;v++)h[0][v]=v===a?1:0,h[1][v]=v===o?1:0;var m=e.lines.canvasOverdrag,y=e.domain,g=e.canvasWidth,b=e.canvasHeight,x=e.deselectedLines.color,_=l.extendFlat({key:f,resolution:[g,b],viewBoxPos:[i+m,s],viewBoxSize:[u,c],i0:a,i1:o,dim0A:h[0].slice(0,16),dim0B:h[0].slice(16,32),dim0C:h[0].slice(32,48),dim0D:h[0].slice(48,64),dim1A:h[1].slice(0,16),dim1B:h[1].slice(16,32),dim1C:h[1].slice(32,48),dim1D:h[1].slice(48,64),drwLayer:p,contextColor:[x[0]/255,x[1]/255,x[2]/255,x[3]<1?x[3]:Math.max(1/255,Math.pow(1/e.lines.color.length,1/3))],scissorX:(r===t?0:i+m)+(e.pad.l-m)+e.layoutWidth*y.x[0],scissorWidth:(r===n?g-i+m:u+.5)+(r===t?i+m:0),scissorY:s+e.pad.b+e.layoutHeight*y.y[0],scissorHeight:c,viewportX:e.pad.l-m+e.layoutWidth*y.x[0],viewportY:e.pad.b+e.layoutHeight*y.y[0],viewportWidth:g,viewportHeight:b},d);return _}function O(e){var t=u-1,n=Math.max(0,Math.floor(e[0]*t),0),r=Math.min(t,Math.ceil(e[1]*t),t);return[Math.min(n,r),Math.max(n,r)]}t.exports=function(e,t){var n,r,i,s,c,d=t.context,m=t.pick,g=t.regl,x={currentRafs:{},drawCompleted:!0,clearOnly:!1},_=T(g),w=g.texture(p),M=[];C(t);var S=g({profile:!1,blend:{enable:d,func:{srcRGB:"src alpha",dstRGB:"one minus src alpha",srcAlpha:1,dstAlpha:1},equation:{rgb:"add",alpha:"add"},color:[0,0,0,0]},depth:{enable:!d,mask:!0,func:"less",range:[0,1]},cull:{enable:!0,face:"back"},scissor:{enable:!0,box:{x:g.prop("scissorX"),y:g.prop("scissorY"),width:g.prop("scissorWidth"),height:g.prop("scissorHeight")}},viewport:{x:g.prop("viewportX"),y:g.prop("viewportY"),width:g.prop("viewportWidth"),height:g.prop("viewportHeight")},dither:!1,vert:a,frag:o,primitive:"lines",lineWidth:1,attributes:_,uniforms:{resolution:g.prop("resolution"),viewBoxPos:g.prop("viewBoxPos"),viewBoxSize:g.prop("viewBoxSize"),dim0A:g.prop("dim0A"),dim1A:g.prop("dim1A"),dim0B:g.prop("dim0B"),dim1B:g.prop("dim1B"),dim0C:g.prop("dim0C"),dim1C:g.prop("dim1C"),dim0D:g.prop("dim0D"),dim1D:g.prop("dim1D"),loA:g.prop("loA"),hiA:g.prop("hiA"),loB:g.prop("loB"),hiB:g.prop("hiB"),loC:g.prop("loC"),hiC:g.prop("hiC"),loD:g.prop("loD"),hiD:g.prop("hiD"),palette:w,contextColor:g.prop("contextColor"),mask:g.prop("maskTexture"),drwLayer:g.prop("drwLayer"),maskHeight:g.prop("maskHeight")},offset:g.prop("offset"),count:g.prop("count")});function C(e){n=e.model,r=e.viewModel,i=r.dimensions.slice(),s=i[0]?i[0].values.length:0;var t=n.lines,a=m?t.color.map((function(e,n){return n/t.color.length})):t.color,o=b(s,i,a);k(_,s,o),d||m||(w=g.texture(l.extendFlat({data:y(n.unitToColor,255)},p)))}function A(e){var t,n,r,a=[[],[]];for(r=0;r<64;r++){var o=!e&&r<i.length?i[r].brush.filter.getBounds():[-1/0,1/0];a[0][r]=o[0],a[1][r]=o[1]}var l=8*u,s=new Array(l);for(t=0;t<l;t++)s[t]=255;if(!e)for(t=0;t<i.length;t++){var f=t%8,p=(t-f)/8,d=Math.pow(2,f),h=i[t],v=h.brush.filter.get();if(!(v.length<2)){var m=O(v[0])[1];for(n=1;n<v.length;n++){var y=O(v[n]);for(r=m+1;r<y[0];r++)s[8*r+p]&=~d;m=Math.max(m,y[1])}}}var b={shape:[8,u],format:"alpha",type:"uint8",mag:"nearest",min:"nearest",data:s};return c?c(b):c=g.texture(b),{maskTexture:c,maskHeight:u,loA:a[0].slice(0,16),loB:a[0].slice(16,32),loC:a[0].slice(32,48),loD:a[0].slice(48,64),hiA:a[1].slice(0,16),hiB:a[1].slice(16,32),hiC:a[1].slice(32,48),hiD:a[1].slice(48,64)}}function P(e,t,r){var a,o,i,l=e.length,u=1/0,c=-1/0;for(a=0;a<l;a++)e[a].dim0.canvasX<u&&(u=e[a].dim0.canvasX,o=a),e[a].dim1.canvasX>c&&(c=e[a].dim1.canvasX,i=a);0===l&&h(g,0,0,n.canvasWidth,n.canvasHeight);var f=A(d);for(a=0;a<l;a++){var p=e[a],y=p.dim0.crossfilterDimensionIndex,b=p.dim1.crossfilterDimensionIndex,_=p.canvasX,w=p.canvasY,k=_+p.panelSizeX;if(t||!M[y]||M[y][0]!==_||M[y][1]!==k){M[y]=[_,k];var T=E(n,o,i,a,y,b,_,w,p.panelSizeX,p.panelSizeY,p.dim0.crossfilterDimensionIndex,d?0:m?2:1,f);x.clearOnly=r;var O=t?n.lines.blockLineCount:s;v(g,S,x,O,s,T)}}}function L(e,t){return g.read({x:e,y:t,width:1,height:1,data:f}),f}function D(e,t,n,r){var a=new Uint8Array(4*n*r);return g.read({x:e,y:t,width:n,height:r,data:a}),a}function j(){for(var t in e.style["pointer-events"]="none",w.destroy(),c&&c.destroy(),_)_[t].destroy()}return{render:P,readPixel:L,readPixels:D,destroy:j,update:C}}},{"../../lib":750,"./constants":1124,glslify:413}],1129:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var a,o;for(r||(r=1/0),a=0;a<t.length;a++)o=t[a],o.visible&&(r=Math.min(r,o[n].length));for(r===1/0&&(r=0),e._length=r,a=0;a<t.length;a++)o=t[a],o.visible&&(o._length=r);return r}},{}],1130:[function(e,t,n){"use strict";var r=e("d3"),a=e("color-rgba"),o=e("../../plots/cartesian/axes"),i=e("../../lib"),l=e("../../lib/svg_text_utils"),s=e("../../components/drawing"),u=e("../../components/colorscale"),c=e("../../lib/gup"),f=c.keyFun,p=c.repeat,d=c.unwrap,h=e("./helpers"),v=e("./constants"),m=e("./axisbrush"),y=e("./lines");function g(e,t,n){return i.aggNums(e,null,t,n)}function b(e,t){return _(g(Math.min,e,t),g(Math.max,e,t))}function x(e){var t=e.range;return t?_(t[0],t[1]):b(e.values,e._length)}function _(e,t){return!isNaN(e)&&isFinite(e)||(e=0),!isNaN(t)&&isFinite(t)||(t=0),e===t&&(0===e?(e-=1,t+=1):(e*=.9,t*=1.1)),[e,t]}function w(e,t){return t?function(n,r){var a=t[r];return null===a||void 0===a?e(n):a}:e}function k(e,t,n,a,o){var i=x(n);return a?r.scale.ordinal().domain(a.map(w(r.format(n.tickformat),o))).range(a.map((function(n){var r=(n-i[0])/(i[1]-i[0]);return e-t+r*(2*t-e)}))):r.scale.linear().domain(i).range([e-t,t])}function T(e,t){return r.scale.linear().range([t,e-t])}function E(e,t){return r.scale.linear().domain(x(e)).range([t,1-t])}function O(e){if(e.tickvals){var t=x(e);return r.scale.ordinal().domain(e.tickvals).range(e.tickvals.map((function(e){return(e-t[0])/(t[1]-t[0])})))}}function M(e){var t=e.map((function(e){return e[0]})),n=e.map((function(e){var t=a(e[1]);return r.rgb("rgb("+t[0]+","+t[1]+","+t[2]+")")})),o=function(e){return function(t){return t[e]}},i="rgb".split("").map((function(e){return r.scale.linear().clamp(!0).domain(t).range(n.map(o(e)))}));return function(e){return i.map((function(t){return t(e)}))}}function S(e){return e.dimensions.some((function(e){return e.brush.filterSpecified}))}function C(e,t,n){var o=d(t),l=o.trace,s=h.convertTypedArray(o.lineColor),c=l.line,f={color:a(v.deselectedLineColor)},p=u.extractOpts(c),m=p.reversescale?u.flipScale(o.cscale):o.cscale,y=l.domain,g=l.dimensions,b=e.width,_=l.labelangle,w=l.labelside,k=l.labelfont,T=l.tickfont,E=l.rangefont,O=i.extendDeepNoArrays({},c,{color:s.map(r.scale.linear().domain(x({values:s,range:[p.min,p.max],_length:l._length}))),blockLineCount:v.blockLineCount,canvasOverdrag:v.overdrag*v.canvasPixelRatio}),S=Math.floor(b*(y.x[1]-y.x[0])),C=Math.floor(e.height*(y.y[1]-y.y[0])),A=e.margin||{l:80,r:80,t:100,b:80},P=S,L=C;return{key:n,colCount:g.filter(h.isVisible).length,dimensions:g,tickDistance:v.tickDistance,unitToColor:M(m),lines:O,deselectedLines:f,labelAngle:_,labelSide:w,labelFont:k,tickFont:T,rangeFont:E,layoutWidth:b,layoutHeight:e.height,domain:y,translateX:y.x[0]*b,translateY:e.height-y.y[1]*e.height,pad:A,canvasWidth:P*v.canvasPixelRatio+2*O.canvasOverdrag,canvasHeight:L*v.canvasPixelRatio,width:P,height:L,canvasPixelRatio:v.canvasPixelRatio}}function A(e,t,n){var a=n.width,o=n.height,l=n.dimensions,s=n.canvasPixelRatio,u=function(e){return a*e/Math.max(1,n.colCount-1)},c=v.verticalPadding/o,f=T(o,v.verticalPadding),p={key:n.key,xScale:u,model:n,inBrushDrag:!1},d={};return p.dimensions=l.filter(h.isVisible).map((function(a,l){var y=E(a,c),g=d[a.label];d[a.label]=(g||0)+1;var b=a.label+(g?"__"+g:""),x=a.constraintrange,_=x&&x.length;_&&!Array.isArray(x[0])&&(x=[x]);var w=_?x.map((function(e){return e.map(y)})):[[-1/0,1/0]],T=function(){var t=p;t.focusLayer&&t.focusLayer.render(t.panels,!0);var n=S(t);!e.contextShown()&&n?(t.contextLayer&&t.contextLayer.render(t.panels,!0),e.contextShown(!0)):e.contextShown()&&!n&&(t.contextLayer&&t.contextLayer.render(t.panels,!0,!0),e.contextShown(!1))},M=a.values;M.length>a._length&&(M=M.slice(0,a._length));var C,A=a.tickvals;function P(e,t){return{val:e,text:C[t]}}function L(e,t){return e.val-t.val}if(Array.isArray(A)&&A.length){C=a.ticktext,Array.isArray(C)&&C.length?C.length>A.length?C=C.slice(0,A.length):A.length>C.length&&(A=A.slice(0,C.length)):C=A.map(r.format(a.tickformat));for(var D=1;D<A.length;D++)if(A[D]<A[D-1]){for(var j=A.map(P).sort(L),I=0;I<A.length;I++)A[I]=j[I].val,C[I]=j[I].text;break}}else A=void 0;return M=h.convertTypedArray(M),{key:b,label:a.label,tickFormat:a.tickformat,tickvals:A,ticktext:C,ordinal:h.isOrdinal(a),multiselect:a.multiselect,xIndex:l,crossfilterDimensionIndex:l,visibleIndex:a._index,height:o,values:M,paddedUnitValues:M.map(y),unitTickvals:A&&A.map(y),xScale:u,x:u(l),canvasX:u(l)*s,unitToPaddedPx:f,domainScale:k(o,v.verticalPadding,a,A,C),ordinalScale:O(a),parent:p,model:n,brush:m.makeBrush(e,_,w,(function(){e.linePickActive(!1)}),T,(function(n){if(p.focusLayer.render(p.panels,!0),p.pickLayer&&p.pickLayer.render(p.panels,!0),e.linePickActive(!0),t&&t.filterChanged){var r=y.invert,o=n.map((function(e){return e.map(r).sort(i.sorterAsc)})).sort((function(e,t){return e[0]-t[0]}));t.filterChanged(p.key,a._index,o)}}))}})),p}function P(e){e.classed(v.cn.axisExtentText,!0).attr("text-anchor","middle").style("cursor","default")}function L(){var e=!0,t=!1;return{linePickActive:function(t){return arguments.length?e=!!t:e},contextShown:function(e){return arguments.length?t=!!e:t}}}function D(e,t){var n="top"===t?1:-1,r=e*Math.PI/180,a=Math.sin(r),o=Math.cos(r);return{dir:n,dx:a,dy:o,degrees:e}}function j(e,t){for(var n=t.panels||(t.panels=[]),r=e.data(),a=0;a<r.length-1;a++){var o=n[a]||(n[a]={}),i=r[a],l=r[a+1];o.dim0=i,o.dim1=l,o.canvasX=i.canvasX,o.panelSizeX=l.canvasX-i.canvasX,o.panelSizeY=t.model.canvasHeight,o.y=0,o.canvasY=0}}function I(e){for(var t=0;t<e.length;t++)for(var n=0;n<e[t].length;n++)for(var r=e[t][n].trace,a=r.dimensions,i=0;i<a.length;i++){var l=a[i].values,s=a[i]._ax;s&&(s.range?s.range=_(s.range[0],s.range[1]):s.range=b(l,r._length),s.dtick||(s.dtick=.01*(Math.abs(s.range[1]-s.range[0])||1)),s.tickformat=a[i].tickformat,o.calcTicks(s),s.cleanRange())}}function R(e,t){return o.tickText(e._ax,t,!1).text}function z(e,t){if(e.ordinal)return"";var n=e.domainScale.domain(),r=n[t?n.length-1:0];return R(e.model.dimensions[e.visibleIndex],r)}t.exports=function(e,t,n,a){var o=e._fullLayout,u=o._toppaper,c=o._glcontainer;I(t);var g=L(),b=t.filter((function(e){return d(e).trace.visible})).map(C.bind(0,n)).map(A.bind(0,g,a));c.each((function(e,t){return i.extendFlat(e,b[t])}));var x=c.selectAll(".gl-canvas").each((function(e){e.viewModel=b[0],e.model=e.viewModel?e.viewModel.model:null})),_=null,w=x.filter((function(e){return e.pick}));w.style("pointer-events","auto").on("mousemove",(function(e){if(g.linePickActive()&&e.lineLayer&&a&&a.hover){var t=r.event,n=this.width,o=this.height,i=r.mouse(this),l=i[0],s=i[1];if(l<0||s<0||l>=n||s>=o)return;var u=e.lineLayer.readPixel(l,o-1-s),c=0!==u[3],f=c?u[2]+256*(u[1]+256*u[0]):null,p={x:l,y:s,clientX:t.clientX,clientY:t.clientY,dataIndex:e.model.key,curveNumber:f};f!==_&&(c?a.hover(p):a.unhover&&a.unhover(p),_=f)}})),x.style("opacity",(function(e){return e.pick?0:1})),u.style("background","rgba(255, 255, 255, 0)");var k=u.selectAll("."+v.cn.parcoords).data(b,f);k.exit().remove(),k.enter().append("g").classed(v.cn.parcoords,!0).style("shape-rendering","crispEdges").style("pointer-events","none"),k.attr("transform",(function(e){return"translate("+e.model.translateX+","+e.model.translateY+")"}));var T=k.selectAll("."+v.cn.parcoordsControlView).data(p,f);T.enter().append("g").classed(v.cn.parcoordsControlView,!0),T.attr("transform",(function(e){return"translate("+e.model.pad.l+","+e.model.pad.t+")"}));var E=T.selectAll("."+v.cn.yAxis).data((function(e){return e.dimensions}),f);E.enter().append("g").classed(v.cn.yAxis,!0),T.each((function(e){j(E,e)})),x.each((function(e){if(e.viewModel){!e.lineLayer||a?e.lineLayer=y(this,e):e.lineLayer.update(e),(e.key||0===e.key)&&(e.viewModel[e.key]=e.lineLayer);var t=!e.context||a;e.lineLayer.render(e.viewModel.panels,t)}})),E.attr("transform",(function(e){return"translate("+e.xScale(e.xIndex)+", 0)"})),E.call(r.behavior.drag().origin((function(e){return e})).on("drag",(function(e){var t=e.parent;g.linePickActive(!1),e.x=Math.max(-v.overdrag,Math.min(e.model.width+v.overdrag,r.event.x)),e.canvasX=e.x*e.model.canvasPixelRatio,E.sort((function(e,t){return e.x-t.x})).each((function(t,n){t.xIndex=n,t.x=e===t?t.x:t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio})),j(E,t),E.filter((function(t){return 0!==Math.abs(e.xIndex-t.xIndex)})).attr("transform",(function(e){return"translate("+e.xScale(e.xIndex)+", 0)"})),r.select(this).attr("transform","translate("+e.x+", 0)"),E.each((function(n,r,a){a===e.parent.key&&(t.dimensions[r]=n)})),t.contextLayer&&t.contextLayer.render(t.panels,!1,!S(t)),t.focusLayer.render&&t.focusLayer.render(t.panels)})).on("dragend",(function(e){var t=e.parent;e.x=e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio,j(E,t),r.select(this).attr("transform",(function(e){return"translate("+e.x+", 0)"})),t.contextLayer&&t.contextLayer.render(t.panels,!1,!S(t)),t.focusLayer&&t.focusLayer.render(t.panels),t.pickLayer&&t.pickLayer.render(t.panels,!0),g.linePickActive(!0),a&&a.axesMoved&&a.axesMoved(t.key,t.dimensions.map((function(e){return e.crossfilterDimensionIndex})))}))),E.exit().remove();var O=E.selectAll("."+v.cn.axisOverlays).data(p,f);O.enter().append("g").classed(v.cn.axisOverlays,!0),O.selectAll("."+v.cn.axis).remove();var M=O.selectAll("."+v.cn.axis).data(p,f);M.enter().append("g").classed(v.cn.axis,!0),M.each((function(e){var t=e.model.height/e.model.tickDistance,n=e.domainScale,a=n.domain();r.select(this).call(r.svg.axis().orient("left").tickSize(4).outerTickSize(2).ticks(t,e.tickFormat).tickValues(e.ordinal?a:null).tickFormat((function(t){return h.isOrdinal(e)?t:R(e.model.dimensions[e.visibleIndex],t)})).scale(n)),s.font(M.selectAll("text"),e.model.tickFont)})),M.selectAll(".domain, .tick>line").attr("fill","none").attr("stroke","black").attr("stroke-opacity",.25).attr("stroke-width","1px"),M.selectAll("text").style("text-shadow","1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff").style("cursor","default");var N=O.selectAll("."+v.cn.axisHeading).data(p,f);N.enter().append("g").classed(v.cn.axisHeading,!0);var F=N.selectAll("."+v.cn.axisTitle).data(p,f);F.enter().append("text").classed(v.cn.axisTitle,!0).attr("text-anchor","middle").style("cursor","ew-resize").style("pointer-events","auto"),F.text((function(e){return e.label})).each((function(t){var n=r.select(this);s.font(n,t.model.labelFont),l.convertToTspans(n,e)})).attr("transform",(function(e){var t=D(e.model.labelAngle,e.model.labelSide),n=v.axisTitleOffset;return(t.dir>0?"":"translate(0,"+(2*n+e.model.height)+")")+"rotate("+t.degrees+")translate("+-n*t.dx+","+-n*t.dy+")"})).attr("text-anchor",(function(e){var t=D(e.model.labelAngle,e.model.labelSide),n=Math.abs(t.dx),r=Math.abs(t.dy);return 2*n>r?t.dir*t.dx<0?"start":"end":"middle"}));var B=O.selectAll("."+v.cn.axisExtent).data(p,f);B.enter().append("g").classed(v.cn.axisExtent,!0);var V=B.selectAll("."+v.cn.axisExtentTop).data(p,f);V.enter().append("g").classed(v.cn.axisExtentTop,!0),V.attr("transform","translate(0,"+-v.axisExtentOffset+")");var H=V.selectAll("."+v.cn.axisExtentTopText).data(p,f);H.enter().append("text").classed(v.cn.axisExtentTopText,!0).call(P),H.text((function(e){return z(e,!0)})).each((function(e){s.font(r.select(this),e.model.rangeFont)}));var U=B.selectAll("."+v.cn.axisExtentBottom).data(p,f);U.enter().append("g").classed(v.cn.axisExtentBottom,!0),U.attr("transform",(function(e){return"translate(0,"+(e.model.height+v.axisExtentOffset)+")"}));var W=U.selectAll("."+v.cn.axisExtentBottomText).data(p,f);W.enter().append("text").classed(v.cn.axisExtentBottomText,!0).attr("dy","0.75em").call(P),W.text((function(e){return z(e,!1)})).each((function(e){s.font(r.select(this),e.model.rangeFont)})),m.ensureAxisBrush(O)}},{"../../components/colorscale":627,"../../components/drawing":637,"../../lib":750,"../../lib/gup":747,"../../lib/svg_text_utils":774,"../../plots/cartesian/axes":799,"./axisbrush":1121,"./constants":1124,"./helpers":1126,"./lines":1128,"color-rgba":127,d3:169}],1131:[function(e,t,n){"use strict";var r=e("./parcoords"),a=e("../../lib/prepare_regl"),o=e("./helpers").isVisible;function i(e,t,n){var r=t.indexOf(n),a=e.indexOf(r);return-1===a&&(a+=t.length),a}function l(e,t){return function(n,r){return i(e,t,n)-i(e,t,r)}}t.exports=function(e,t){var n=e._fullLayout,i=a(e);if(i){var s={},u={},c={},f={},p=n._size;t.forEach((function(t,n){var r=t[0].trace;c[n]=r.index;var a=f[n]=r._fullInput.index;s[n]=e.data[a].dimensions,u[n]=e.data[a].dimensions.slice()}));var d=function(t,r,a){var o=u[t][r],i=a.map((function(e){return e.slice()})),l="dimensions["+r+"].constraintrange",s=n._tracePreGUI[e._fullData[c[t]]._fullInput.uid];if(void 0===s[l]){var p=o.constraintrange;s[l]=p||null}var d=e._fullData[c[t]].dimensions[r];i.length?(1===i.length&&(i=i[0]),o.constraintrange=i,d.constraintrange=i.slice(),i=[i]):(delete o.constraintrange,delete d.constraintrange,i=null);var h={};h[l]=i,e.emit("plotly_restyle",[h,[f[t]]])},h=function(t){e.emit("plotly_hover",t)},v=function(t){e.emit("plotly_unhover",t)},m=function(t,n){var r=l(n,u[t].filter(o));s[t].sort(r),u[t].filter((function(e){return!o(e)})).sort((function(e){return u[t].indexOf(e)})).forEach((function(e){s[t].splice(s[t].indexOf(e),1),s[t].splice(u[t].indexOf(e),0,e)})),e.emit("plotly_restyle",[{dimensions:[s[t]]},[f[t]]])};r(e,t,{width:p.w,height:p.h,margin:{t:p.t,r:p.r,b:p.b,l:p.l}},{filterChanged:d,hover:h,unhover:v,axesMoved:m})}}},{"../../lib/prepare_regl":763,"./helpers":1126,"./parcoords":1130}],1132:[function(e,t,n){"use strict";var r=e("../../plots/attributes"),a=e("../../plots/domain").attributes,o=e("../../plots/font_attributes"),i=e("../../components/color/attributes"),l=e("../../plots/template_attributes").hovertemplateAttrs,s=e("../../plots/template_attributes").texttemplateAttrs,u=e("../../lib/extend").extendFlat,c=o({editType:"plot",arrayOk:!0,colorEditType:"plot"});t.exports={labels:{valType:"data_array",editType:"calc"},label0:{valType:"number",dflt:0,editType:"calc"},dlabel:{valType:"number",dflt:1,editType:"calc"},values:{valType:"data_array",editType:"calc"},marker:{colors:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:i.defaultLine,arrayOk:!0,editType:"style"},width:{valType:"number",min:0,dflt:0,arrayOk:!0,editType:"style"},editType:"calc"},editType:"calc"},text:{valType:"data_array",editType:"plot"},hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},scalegroup:{valType:"string",dflt:"",editType:"calc"},textinfo:{valType:"flaglist",flags:["label","text","value","percent"],extras:["none"],editType:"calc"},hoverinfo:u({},r.hoverinfo,{flags:["label","text","value","percent","name"]}),hovertemplate:l({},{keys:["label","color","value","percent","text"]}),texttemplate:s({editType:"plot"},{keys:["label","color","value","percent","text"]}),textposition:{valType:"enumerated",values:["inside","outside","auto","none"],dflt:"auto",arrayOk:!0,editType:"plot"},textfont:u({},c,{}),insidetextorientation:{valType:"enumerated",values:["horizontal","radial","tangential","auto"],dflt:"auto",editType:"plot"},insidetextfont:u({},c,{}),outsidetextfont:u({},c,{}),automargin:{valType:"boolean",dflt:!1,editType:"plot"},title:{text:{valType:"string",dflt:"",editType:"plot"},font:u({},c,{}),position:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"plot"},editType:"plot"},domain:a({name:"pie",trace:!0,editType:"calc"}),hole:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},sort:{valType:"boolean",dflt:!0,editType:"calc"},direction:{valType:"enumerated",values:["clockwise","counterclockwise"],dflt:"counterclockwise",editType:"calc"},rotation:{valType:"number",min:-360,max:360,dflt:0,editType:"calc"},pull:{valType:"number",min:0,max:1,dflt:0,arrayOk:!0,editType:"calc"},_deprecated:{title:{valType:"string",dflt:"",editType:"calc"},titlefont:u({},c,{}),titleposition:{valType:"enumerated",values:["top left","top center","top right","middle center","bottom left","bottom center","bottom right"],editType:"calc"}}}},{"../../components/color/attributes":614,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/domain":826,"../../plots/font_attributes":827,"../../plots/template_attributes":877}],1133:[function(e,t,n){"use strict";var r=e("../../plots/plots");n.name="pie",n.plot=function(e,t,a,o){r.plotBasePlot(n.name,e,t,a,o)},n.clean=function(e,t,a,o){r.cleanBasePlot(n.name,e,t,a,o)}},{"../../plots/plots":862}],1134:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("tinycolor2"),o=e("../../components/color"),i={};function l(e,t){var n,a,o=[],i=e._fullLayout,l=i.hiddenlabels||[],u=t.labels,c=t.marker.colors||[],f=t.values,p=t._length,d=t._hasValues&&p;if(t.dlabel)for(u=new Array(p),n=0;n<p;n++)u[n]=String(t.label0+n*t.dlabel);var h={},v=s(i["_"+t.type+"colormap"]),m=0,y=!1;for(n=0;n<p;n++){var g,b,x;if(d){if(g=f[n],!r(g))continue;if(g=+g,g<0)continue}else g=1;b=u[n],void 0!==b&&""!==b||(b=n),b=String(b);var _=h[b];void 0===_?(h[b]=o.length,x=-1!==l.indexOf(b),x||(m+=g),o.push({v:g,label:b,color:v(c[n],b),i:n,pts:[n],hidden:x})):(y=!0,a=o[_],a.v+=g,a.pts.push(n),a.hidden||(m+=g),!1===a.color&&c[n]&&(a.color=v(c[n],b)))}var w="funnelarea"===t.type?y:t.sort;return w&&o.sort((function(e,t){return t.v-e.v})),o[0]&&(o[0].vTotal=m),o}function s(e){return function(t,n){return!!t&&(t=a(t),!!t.isValid()&&(t=o.addOpacity(t,t.getAlpha()),e[n]||(e[n]=t),t))}}function u(e,t){var n=(t||{}).type;n||(n="pie");var r=e._fullLayout,a=e.calcdata,o=r[n+"colorway"],l=r["_"+n+"colormap"];r["extend"+n+"colors"]&&(o=c(o,i));for(var s=0,u=0;u<a.length;u++){var f=a[u],p=f[0].trace.type;if(p===n)for(var d=0;d<f.length;d++){var h=f[d];!1===h.color&&(l[h.label]?h.color=l[h.label]:(l[h.label]=h.color=o[s%o.length],s++))}}}function c(e,t){var n,r=JSON.stringify(e),o=t[r];if(!o){for(o=e.slice(),n=0;n<e.length;n++)o.push(a(e[n]).lighten(20).toHexString());for(n=0;n<e.length;n++)o.push(a(e[n]).darken(20).toHexString());t[r]=o}return o}t.exports={calc:l,crossTraceCalc:u,makePullColorFn:s,generateExtendedColors:c}},{"../../components/color":615,"fast-isnumeric":241,tinycolor2:548}],1135:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("./attributes"),i=e("../../plots/domain").defaults,l=e("../bar/defaults").handleText;function s(e,t){var n=Array.isArray(e),o=a.isArrayOrTypedArray(t),i=Math.min(n?e.length:1/0,o?t.length:1/0);if(isFinite(i)||(i=0),i&&o){for(var l,s=0;s<i;s++){var u=t[s];if(r(u)&&u>0){l=!0;break}}l||(i=0)}return{hasLabels:n,hasValues:o,len:i}}function u(e,t,n,r){function u(n,r){return a.coerce(e,t,o,n,r)}var c=u("labels"),f=u("values"),p=s(c,f),d=p.len;if(t._hasLabels=p.hasLabels,t._hasValues=p.hasValues,!t._hasLabels&&t._hasValues&&(u("label0"),u("dlabel")),d){t._length=d;var h=u("marker.line.width");h&&u("marker.line.color"),u("marker.colors"),u("scalegroup");var v,m=u("text"),y=u("texttemplate");if(y||(v=u("textinfo",Array.isArray(m)?"text+percent":"percent")),u("hovertext"),u("hovertemplate"),y||v&&"none"!==v){var g=u("textposition");l(e,t,r,u,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1});var b=Array.isArray(g)||"auto"===g,x=b||"outside"===g;x&&u("automargin"),("inside"===g||"auto"===g||Array.isArray(g))&&u("insidetextorientation")}i(t,r,u);var _=u("hole"),w=u("title.text");if(w){var k=u("title.position",_?"middle center":"top center");_||"middle center"!==k||(t.title.position="top center"),a.coerceFont(u,"title.font",r.font)}u("sort"),u("direction"),u("rotation"),u("pull")}else t.visible=!1}t.exports={handleLabelsAndValues:s,supplyDefaults:u}},{"../../lib":750,"../../plots/domain":826,"../bar/defaults":896,"./attributes":1132,"fast-isnumeric":241}],1136:[function(e,t,n){"use strict";var r=e("../../components/fx/helpers").appendArrayMultiPointValues;t.exports=function(e,t){var n={curveNumber:t.index,pointNumbers:e.pts,data:t._input,fullData:t,label:e.label,color:e.color,value:e.v,percent:e.percent,text:e.text,v:e.v};return 1===e.pts.length&&(n.pointNumber=n.i=e.pts[0]),r(n,t,e.pts),"funnelarea"===t.type&&(delete n.v,delete n.i),n}},{"../../components/fx/helpers":651}],1137:[function(e,t,n){"use strict";var r=e("../../lib");function a(e){return-1!==e.indexOf("e")?e.replace(/[.]?0+e/,"e"):-1!==e.indexOf(".")?e.replace(/[.]?0+$/,""):e}n.formatPiePercent=function(e,t){var n=a((100*e).toPrecision(3));return r.numSeparate(n,t)+"%"},n.formatPieValue=function(e,t){var n=a(e.toPrecision(10));return r.numSeparate(n,t)},n.getFirstFilled=function(e,t){if(Array.isArray(e))for(var n=0;n<t.length;n++){var r=e[t[n]];if(r||0===r||""===r)return r}},n.castOption=function(e,t){return Array.isArray(e)?n.getFirstFilled(e,t):e||void 0},n.getRotationAngle=function(e){return("auto"===e?0:e)*Math.PI/180}},{"../../lib":750}],1138:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults").supplyDefaults,supplyLayoutDefaults:e("./layout_defaults"),layoutAttributes:e("./layout_attributes"),calc:e("./calc").calc,crossTraceCalc:e("./calc").crossTraceCalc,plot:e("./plot").plot,style:e("./style"),styleOne:e("./style_one"),moduleType:"trace",name:"pie",basePlotModule:e("./base_plot"),categories:["pie-like","pie","showLegend"],meta:{}}},{"./attributes":1132,"./base_plot":1133,"./calc":1134,"./defaults":1135,"./layout_attributes":1139,"./layout_defaults":1140,"./plot":1141,"./style":1142,"./style_one":1143}],1139:[function(e,t,n){"use strict";t.exports={hiddenlabels:{valType:"data_array",editType:"calc"},piecolorway:{valType:"colorlist",editType:"calc"},extendpiecolors:{valType:"boolean",dflt:!0,editType:"calc"}}},{}],1140:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t){function n(n,o){return r.coerce(e,t,a,n,o)}n("hiddenlabels"),n("piecolorway",t.colorway),n("extendpiecolors")}},{"../../lib":750,"./layout_attributes":1139}],1141:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../plots/plots"),o=e("../../components/fx"),i=e("../../components/color"),l=e("../../components/drawing"),s=e("../../lib"),u=e("../../lib/svg_text_utils"),c=e("../bar/uniform_text"),f=c.recordMinTextSize,p=c.clearMinTextSize,d=e("../bar/constants").TEXTPAD,h=e("./helpers"),v=e("./event_data"),m=e("../../lib").isValidTextValue;function y(e,t){var n=e._fullLayout,o=n._size;p("pie",n),w(t,e),N(t,o);var i=s.makeTraceGroups(n._pielayer,t,"trace").each((function(t){var i=r.select(this),c=t[0],p=c.trace;B(t),i.attr("stroke-linejoin","round"),i.each((function(){var d=r.select(this).selectAll("g.slice").data(t);d.enter().append("g").classed("slice",!0),d.exit().remove();var v=[[[],[]],[[],[]]],m=!1;d.each((function(a,o){if(a.hidden)r.select(this).selectAll("path,g").remove();else{a.pointNumber=a.i,a.curveNumber=p.index,v[a.pxmid[1]<0?0:1][a.pxmid[0]<0?0:1].push(a);var i=c.cx,d=c.cy,y=r.select(this),g=y.selectAll("path.surface").data([a]);if(g.enter().append("path").classed("surface",!0).style({"pointer-events":"all"}),y.call(b,e,t),p.pull){var w=+h.castOption(p.pull,a.pts)||0;w>0&&(i+=w*a.pxmid[0],d+=w*a.pxmid[1])}a.cxFinal=i,a.cyFinal=d;var T=p.hole;if(a.v===c.vTotal){var E="M"+(i+a.px0[0])+","+(d+a.px0[1])+A(a.px0,a.pxmid,!0,1)+A(a.pxmid,a.px0,!0,1)+"Z";T?g.attr("d","M"+(i+T*a.px0[0])+","+(d+T*a.px0[1])+A(a.px0,a.pxmid,!1,T)+A(a.pxmid,a.px0,!1,T)+"Z"+E):g.attr("d",E)}else{var O=A(a.px0,a.px1,!0,1);if(T){var M=1-T;g.attr("d","M"+(i+T*a.px1[0])+","+(d+T*a.px1[1])+A(a.px1,a.px0,!1,T)+"l"+M*a.px0[0]+","+M*a.px0[1]+O+"Z")}else g.attr("d","M"+i+","+d+"l"+a.px0[0]+","+a.px0[1]+O+"Z")}H(e,a,c);var S=h.castOption(p.textposition,a.pts),C=y.selectAll("g.slicetext").data(a.text&&"none"!==S?[0]:[]);C.enter().append("g").classed("slicetext",!0),C.exit().remove(),C.each((function(){var h=s.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),v=s.ensureUniformFontSize(e,"outside"===S?x(p,a,n.font):_(p,a,n.font));h.text(a.text).attr({class:"slicetext",transform:"","text-anchor":"middle"}).call(l.font,v).call(u.convertToTspans,e);var y,g=l.bBox(h.node());if("outside"===S)y=P(g,a);else if(y=k(g,a,c),"auto"===S&&y.scale<1){var b=s.ensureUniformFontSize(e,p.outsidetextfont);h.call(l.font,b),g=l.bBox(h.node()),y=P(g,a)}var w=y.textPosAngle,T=void 0===w?a.pxmid:V(c.r,w);if(y.targetX=i+T[0]*y.rCenter+(y.x||0),y.targetY=d+T[1]*y.rCenter+(y.y||0),U(y,g),y.outside){var E=y.targetY;a.yLabelMin=E-g.height/2,a.yLabelMid=E,a.yLabelMax=E+g.height/2,a.labelExtraX=0,a.labelExtraY=0,m=!0}y.fontSize=v.size,f(p.type,y,n),t[o].transform=y,h.attr("transform",s.getTextTransform(y))}))}function A(e,t,n,r){var o=r*(t[0]-e[0]),i=r*(t[1]-e[1]);return"a"+r*c.r+","+r*c.r+" 0 "+a.largeArc+(n?" 1 ":" 0 ")+o+","+i}}));var y=r.select(this).selectAll("g.titletext").data(p.title.text?[0]:[]);if(y.enter().append("g").classed("titletext",!0),y.exit().remove(),y.each((function(){var t,n=s.ensureSingle(r.select(this),"text","",(function(e){e.attr("data-notex",1)})),a=p.title.text;p._meta&&(a=s.templateString(a,p._meta)),n.text(a).attr({class:"titletext",transform:"","text-anchor":"middle"}).call(l.font,p.title.font).call(u.convertToTspans,e),t="middle center"===p.title.position?L(c):D(c,o),n.attr("transform","translate("+t.x+","+t.y+")"+(t.scale<1?"scale("+t.scale+")":"")+"translate("+t.tx+","+t.ty+")")})),m&&z(v,p),g(d,p),m&&p.automargin){var w=l.bBox(i.node()),T=p.domain,E=o.w*(T.x[1]-T.x[0]),O=o.h*(T.y[1]-T.y[0]),M=(.5*E-c.r)/o.w,S=(.5*O-c.r)/o.h;a.autoMargin(e,"pie."+p.uid+".automargin",{xl:T.x[0]-M,xr:T.x[1]+M,yb:T.y[0]-S,yt:T.y[1]+S,l:Math.max(c.cx-c.r-w.left,0),r:Math.max(w.right-(c.cx+c.r),0),b:Math.max(w.bottom-(c.cy+c.r),0),t:Math.max(c.cy-c.r-w.top,0),pad:5})}}))}));setTimeout((function(){i.selectAll("tspan").each((function(){var e=r.select(this);e.attr("dy")&&e.attr("dy",e.attr("dy"))}))}),0)}function g(e,t){e.each((function(e){var n=r.select(this);if(e.labelExtraX||e.labelExtraY){var a=n.select("g.slicetext text");e.transform.targetX+=e.labelExtraX,e.transform.targetY+=e.labelExtraY,a.attr("transform",s.getTextTransform(e.transform));var o=e.cxFinal+e.pxmid[0],l=e.cyFinal+e.pxmid[1],u="M"+o+","+l,c=(e.yLabelMax-e.yLabelMin)*(e.pxmid[0]<0?-1:1)/4;if(e.labelExtraX){var f=e.labelExtraX*e.pxmid[1]/e.pxmid[0],p=e.yLabelMid+e.labelExtraY-(e.cyFinal+e.pxmid[1]);Math.abs(f)>Math.abs(p)?u+="l"+p*e.pxmid[0]/e.pxmid[1]+","+p+"H"+(o+e.labelExtraX+c):u+="l"+e.labelExtraX+","+f+"v"+(p-f)+"h"+c}else u+="V"+(e.yLabelMid+e.labelExtraY)+"h"+c;s.ensureSingle(n,"path","textline").call(i.stroke,t.outsidetextfont.color).attr({"stroke-width":Math.min(2,t.outsidetextfont.size/8),d:u,fill:"none"})}else n.select("path.textline").remove()}))}function b(e,t,n){var a=n[0],i=a.trace,l=a.cx,u=a.cy;"_hasHoverLabel"in i||(i._hasHoverLabel=!1),"_hasHoverEvent"in i||(i._hasHoverEvent=!1),e.on("mouseover",(function(e){var n=t._fullLayout,c=t._fullData[i.index];if(!t._dragging&&!1!==n.hovermode){var f=c.hoverinfo;if(Array.isArray(f)&&(f=o.castHoverinfo({hoverinfo:[h.castOption(f,e.pts)],_module:i._module},n,0)),"all"===f&&(f="label+text+value+percent+name"),c.hovertemplate||"none"!==f&&"skip"!==f&&f){var p=e.rInscribed||0,d=l+e.pxmid[0]*(1-p),m=u+e.pxmid[1]*(1-p),y=n.separators,g=[];if(f&&-1!==f.indexOf("label")&&g.push(e.label),e.text=h.castOption(c.hovertext||c.text,e.pts),f&&-1!==f.indexOf("text")){var b=e.text;s.isValidTextValue(b)&&g.push(b)}e.value=e.v,e.valueLabel=h.formatPieValue(e.v,y),f&&-1!==f.indexOf("value")&&g.push(e.valueLabel),e.percent=e.v/a.vTotal,e.percentLabel=h.formatPiePercent(e.percent,y),f&&-1!==f.indexOf("percent")&&g.push(e.percentLabel);var x=c.hoverlabel,_=x.font;o.loneHover({trace:i,x0:d-p*a.r,x1:d+p*a.r,y:m,text:g.join("<br>"),name:c.hovertemplate||-1!==f.indexOf("name")?c.name:void 0,idealAlign:e.pxmid[0]<0?"left":"right",color:h.castOption(x.bgcolor,e.pts)||e.color,borderColor:h.castOption(x.bordercolor,e.pts),fontFamily:h.castOption(_.family,e.pts),fontSize:h.castOption(_.size,e.pts),fontColor:h.castOption(_.color,e.pts),nameLength:h.castOption(x.namelength,e.pts),textAlign:h.castOption(x.align,e.pts),hovertemplate:h.castOption(c.hovertemplate,e.pts),hovertemplateLabels:e,eventData:[v(e,c)]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:t}),i._hasHoverLabel=!0}i._hasHoverEvent=!0,t.emit("plotly_hover",{points:[v(e,c)],event:r.event})}})),e.on("mouseout",(function(e){var n=t._fullLayout,a=t._fullData[i.index],l=r.select(this).datum();i._hasHoverEvent&&(e.originalEvent=r.event,t.emit("plotly_unhover",{points:[v(l,a)],event:r.event}),i._hasHoverEvent=!1),i._hasHoverLabel&&(o.loneUnhover(n._hoverlayer.node()),i._hasHoverLabel=!1)})),e.on("click",(function(e){var n=t._fullLayout,a=t._fullData[i.index];t._dragging||!1===n.hovermode||(t._hoverdata=[v(e,a)],o.click(t,r.event))}))}function x(e,t,n){var r=h.castOption(e.outsidetextfont.color,t.pts)||h.castOption(e.textfont.color,t.pts)||n.color,a=h.castOption(e.outsidetextfont.family,t.pts)||h.castOption(e.textfont.family,t.pts)||n.family,o=h.castOption(e.outsidetextfont.size,t.pts)||h.castOption(e.textfont.size,t.pts)||n.size;return{color:r,family:a,size:o}}function _(e,t,n){var r=h.castOption(e.insidetextfont.color,t.pts);!r&&e._input.textfont&&(r=h.castOption(e._input.textfont.color,t.pts));var a=h.castOption(e.insidetextfont.family,t.pts)||h.castOption(e.textfont.family,t.pts)||n.family,o=h.castOption(e.insidetextfont.size,t.pts)||h.castOption(e.textfont.size,t.pts)||n.size;return{color:r||i.contrast(t.color),family:a,size:o}}function w(e,t){for(var n,r,a=0;a<e.length;a++)if(n=e[a][0],r=n.trace,r.title.text){var o=r.title.text;r._meta&&(o=s.templateString(o,r._meta));var i=l.tester.append("text").attr("data-notex",1).text(o).call(l.font,r.title.font).call(u.convertToTspans,t),c=l.bBox(i.node(),!0);n.titleBox={width:c.width,height:c.height},i.remove()}}function k(e,t,n){var r=n.r||t.rpx1,a=t.rInscribed,o=t.startangle===t.stopangle;if(o)return{rCenter:1-a,scale:0,rotate:0,textPosAngle:0};var i,l=t.ring,s=1===l&&Math.abs(t.startangle-t.stopangle)===2*Math.PI,u=t.halfangle,c=t.midangle,f=n.trace.insidetextorientation,p="horizontal"===f,d="tangential"===f,h="radial"===f,v="auto"===f,m=[];if(!v){var y,g=function(n,a){if(T(t,n)){var o=Math.abs(n-t.startangle),s=Math.abs(n-t.stopangle),u=o<s?o:s;i="tan"===a?O(e,r,l,u,0):E(e,r,l,u,Math.PI/2),i.textPosAngle=n,m.push(i)}};if(p||d){for(y=4;y>=-4;y-=2)g(Math.PI*y,"tan");for(y=4;y>=-4;y-=2)g(Math.PI*(y+1),"tan")}if(p||h){for(y=4;y>=-4;y-=2)g(Math.PI*(y+1.5),"rad");for(y=4;y>=-4;y-=2)g(Math.PI*(y+.5),"rad")}}if(s||v||p){var b=Math.sqrt(e.width*e.width+e.height*e.height);if(i={scale:a*r*2/b,rCenter:1-a,rotate:0},i.textPosAngle=(t.startangle+t.stopangle)/2,i.scale>=1)return i;m.push(i)}(v||h)&&(i=E(e,r,l,u,c),i.textPosAngle=(t.startangle+t.stopangle)/2,m.push(i)),(v||d)&&(i=O(e,r,l,u,c),i.textPosAngle=(t.startangle+t.stopangle)/2,m.push(i));for(var x=0,_=0,w=0;w<m.length;w++){var k=m[w].scale;if(_<k&&(_=k,x=w),!v&&_>=1)break}return m[x]}function T(e,t){var n=e.startangle,r=e.stopangle;return n>t&&t>r||n<t&&t<r}function E(e,t,n,r,a){t=Math.max(0,t-2*d);var o=e.width/e.height,i=C(o,r,t,n);return{scale:2*i/e.height,rCenter:M(o,i/t),rotate:S(a)}}function O(e,t,n,r,a){t=Math.max(0,t-2*d);var o=e.height/e.width,i=C(o,r,t,n);return{scale:2*i/e.width,rCenter:M(o,i/t),rotate:S(a+Math.PI/2)}}function M(e,t){return Math.cos(t)-e*t}function S(e){return(180/Math.PI*e+720)%180-90}function C(e,t,n,r){var a=e+1/(2*Math.tan(t));return n*Math.min(1/(Math.sqrt(a*a+.5)+a),r/(Math.sqrt(e*e+r/2)+e))}function A(e,t){return e.v!==t.vTotal||t.trace.hole?Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2):1}function P(e,t){var n=t.pxmid[0],r=t.pxmid[1],a=e.width/2,o=e.height/2;return n<0&&(a*=-1),r<0&&(o*=-1),{scale:1,rCenter:1,rotate:0,x:a+Math.abs(o)*(a>0?1:-1)/2,y:o/(1+n*n/(r*r)),outside:!0}}function L(e){var t=Math.sqrt(e.titleBox.width*e.titleBox.width+e.titleBox.height*e.titleBox.height);return{x:e.cx,y:e.cy,scale:e.trace.hole*e.r*2/t,tx:0,ty:-e.titleBox.height/2+e.trace.title.font.size}}function D(e,t){var n,r=1,a=1,o=e.trace,i={x:e.cx,y:e.cy},l={tx:0,ty:0};l.ty+=o.title.font.size,n=R(o),-1!==o.title.position.indexOf("top")?(i.y-=(1+n)*e.r,l.ty-=e.titleBox.height):-1!==o.title.position.indexOf("bottom")&&(i.y+=(1+n)*e.r);var s=j(e.r,e.trace.aspectratio),u=t.w*(o.domain.x[1]-o.domain.x[0])/2;return-1!==o.title.position.indexOf("left")?(u+=s,i.x-=(1+n)*s,l.tx+=e.titleBox.width/2):-1!==o.title.position.indexOf("center")?u*=2:-1!==o.title.position.indexOf("right")&&(u+=s,i.x+=(1+n)*s,l.tx-=e.titleBox.width/2),r=u/e.titleBox.width,a=I(e,t)/e.titleBox.height,{x:i.x,y:i.y,scale:Math.min(r,a),tx:l.tx,ty:l.ty}}function j(e,t){return e/(void 0===t?1:t)}function I(e,t){var n=e.trace,r=t.h*(n.domain.y[1]-n.domain.y[0]);return Math.min(e.titleBox.height,r/2)}function R(e){var t,n=e.pull;if(!n)return 0;if(Array.isArray(n))for(n=0,t=0;t<e.pull.length;t++)e.pull[t]>n&&(n=e.pull[t]);return n}function z(e,t){var n,r,a,o,i,l,s,u,c,f,p,d,v;function m(e,t){return e.pxmid[1]-t.pxmid[1]}function y(e,t){return t.pxmid[1]-e.pxmid[1]}function g(e,n){n||(n={});var a,u,c,p,d,v,m=n.labelExtraY+(r?n.yLabelMax:n.yLabelMin),y=r?e.yLabelMin:e.yLabelMax,g=r?e.yLabelMax:e.yLabelMin,b=e.cyFinal+i(e.px0[1],e.px1[1]),x=m-y;if(x*s>0&&(e.labelExtraY=x),Array.isArray(t.pull))for(u=0;u<f.length;u++)c=f[u],c===e||(h.castOption(t.pull,e.pts)||0)>=(h.castOption(t.pull,c.pts)||0)||((e.pxmid[1]-c.pxmid[1])*s>0?(p=c.cyFinal+i(c.px0[1],c.px1[1]),x=p-y-e.labelExtraY,x*s>0&&(e.labelExtraY+=x)):(g+e.labelExtraY-b)*s>0&&(a=3*l*Math.abs(u-f.indexOf(e)),d=c.cxFinal+o(c.px0[0],c.px1[0]),v=d+a-(e.cxFinal+e.pxmid[0])-e.labelExtraX,v*l>0&&(e.labelExtraX+=v)))}for(r=0;r<2;r++)for(a=r?m:y,i=r?Math.max:Math.min,s=r?1:-1,n=0;n<2;n++){for(o=n?Math.max:Math.min,l=n?1:-1,u=e[r][n],u.sort(a),c=e[1-r][n],f=c.concat(u),d=[],p=0;p<u.length;p++)void 0!==u[p].yLabelMid&&d.push(u[p]);for(v=!1,p=0;r&&p<c.length;p++)if(void 0!==c[p].yLabelMid){v=c[p];break}for(p=0;p<d.length;p++){var b=p&&d[p-1];v&&!p&&(b=v),g(d[p],b)}}}function N(e,t){for(var n=[],r=0;r<e.length;r++){var a=e[r][0],o=a.trace,i=o.domain,l=t.w*(i.x[1]-i.x[0]),s=t.h*(i.y[1]-i.y[0]);o.title.text&&"middle center"!==o.title.position&&(s-=I(a,t));var u=l/2,c=s/2;"funnelarea"!==o.type||o.scalegroup||(c/=o.aspectratio),a.r=Math.min(u,c)/(1+R(o)),a.cx=t.l+t.w*(o.domain.x[1]+o.domain.x[0])/2,a.cy=t.t+t.h*(1-o.domain.y[0])-s/2,o.title.text&&-1!==o.title.position.indexOf("bottom")&&(a.cy-=I(a,t)),o.scalegroup&&-1===n.indexOf(o.scalegroup)&&n.push(o.scalegroup)}F(e,n)}function F(e,t){for(var n,r,a,o=0;o<t.length;o++){var i=1/0,l=t[o];for(r=0;r<e.length;r++)if(n=e[r][0],a=n.trace,a.scalegroup===l){var s;if("pie"===a.type)s=n.r*n.r;else if("funnelarea"===a.type){var u,c;a.aspectratio>1?(u=n.r,c=u/a.aspectratio):(c=n.r,u=c*a.aspectratio),u*=(1+a.baseratio)/2,s=u*c}i=Math.min(i,s/n.vTotal)}for(r=0;r<e.length;r++)if(n=e[r][0],a=n.trace,a.scalegroup===l){var f=i*n.vTotal;"funnelarea"===a.type&&(f/=(1+a.baseratio)/2,f/=a.aspectratio),n.r=Math.sqrt(f)}}}function B(e){var t,n,r,a=e[0],o=a.r,i=a.trace,l=h.getRotationAngle(i.rotation),s=2*Math.PI/a.vTotal,u="px0",c="px1";if("counterclockwise"===i.direction){for(t=0;t<e.length;t++)if(!e[t].hidden)break;if(t===e.length)return;l+=s*e[t].v,s*=-1,u="px1",c="px0"}for(r=V(o,l),t=0;t<e.length;t++)n=e[t],n.hidden||(n[u]=r,n.startangle=l,l+=s*n.v/2,n.pxmid=V(o,l),n.midangle=l,l+=s*n.v/2,r=V(o,l),n.stopangle=l,n[c]=r,n.largeArc=n.v>a.vTotal/2?1:0,n.halfangle=Math.PI*Math.min(n.v/a.vTotal,.5),n.ring=1-i.hole,n.rInscribed=A(n,a))}function V(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}function H(e,t,n){var r=e._fullLayout,a=n.trace,o=a.texttemplate,i=a.textinfo;if(!o&&i&&"none"!==i){var l,u=i.split("+"),c=function(e){return-1!==u.indexOf(e)},f=c("label"),p=c("text"),d=c("value"),v=c("percent"),y=r.separators;if(l=f?[t.label]:[],p){var g=h.getFirstFilled(a.text,t.pts);m(g)&&l.push(g)}d&&l.push(h.formatPieValue(t.v,y)),v&&l.push(h.formatPiePercent(t.v/n.vTotal,y)),t.text=l.join("<br>")}function b(e){return{label:e.label,value:e.v,valueLabel:h.formatPieValue(e.v,r.separators),percent:e.v/n.vTotal,percentLabel:h.formatPiePercent(e.v/n.vTotal,r.separators),color:e.color,text:e.text,customdata:s.castOption(a,e.i,"customdata")}}if(o){var x=s.castOption(a,t.i,"texttemplate");if(x){var _=b(t),w=h.getFirstFilled(a.text,t.pts);(m(w)||""===w)&&(_.text=w),t.text=s.texttemplateString(x,_,e._fullLayout._d3locale,_,a._meta||{})}else t.text=""}}function U(e,t){var n=e.rotate*Math.PI/180,r=Math.cos(n),a=Math.sin(n),o=(t.left+t.right)/2,i=(t.top+t.bottom)/2;e.textX=o*r-i*a,e.textY=o*a+i*r,e.noCenter=!0}t.exports={plot:y,formatSliceLabel:H,transformInsideText:k,determineInsideTextFont:_,positionTitleOutside:D,prerenderTitles:w,layoutAreas:N,attachFxHandlers:b,computeTransform:U}},{"../../components/color":615,"../../components/drawing":637,"../../components/fx":655,"../../lib":750,"../../lib/svg_text_utils":774,"../../plots/plots":862,"../bar/constants":894,"../bar/uniform_text":908,"./event_data":1136,"./helpers":1137,d3:169}],1142:[function(e,t,n){"use strict";var r=e("d3"),a=e("./style_one"),o=e("../bar/uniform_text").resizeText;t.exports=function(e){var t=e._fullLayout._pielayer.selectAll(".trace");o(e,t,"pie"),t.each((function(e){var t=e[0],n=t.trace,o=r.select(this);o.style({opacity:n.opacity}),o.selectAll("path.surface").each((function(e){r.select(this).call(a,e,n)}))}))}},{"../bar/uniform_text":908,"./style_one":1143,d3:169}],1143:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("./helpers").castOption;t.exports=function(e,t,n){var o=n.marker.line,i=a(o.color,t.pts)||r.defaultLine,l=a(o.width,t.pts)||0;e.style("stroke-width",l).call(r.fill,t.color).call(r.stroke,i)}},{"../../components/color":615,"./helpers":1137}],1144:[function(e,t,n){"use strict";var r=e("../scatter/attributes");t.exports={x:r.x,y:r.y,xy:{valType:"data_array",editType:"calc"},indices:{valType:"data_array",editType:"calc"},xbounds:{valType:"data_array",editType:"calc"},ybounds:{valType:"data_array",editType:"calc"},text:r.text,marker:{color:{valType:"color",arrayOk:!1,editType:"calc"},opacity:{valType:"number",min:0,max:1,dflt:1,arrayOk:!1,editType:"calc"},blend:{valType:"boolean",dflt:null,editType:"calc"},sizemin:{valType:"number",min:.1,max:2,dflt:.5,editType:"calc"},sizemax:{valType:"number",min:.1,dflt:20,editType:"calc"},border:{color:{valType:"color",arrayOk:!1,editType:"calc"},arearatio:{valType:"number",min:0,max:1,dflt:0,editType:"calc"},editType:"calc"},editType:"calc"},transforms:void 0}},{"../scatter/attributes":1158}],1145:[function(e,t,n){"use strict";var r=e("gl-pointcloud2d"),a=e("../../lib/str2rgbarray"),o=e("../../plots/cartesian/autorange").findExtremes,i=e("../scatter/get_trace_color");function l(e,t){this.scene=e,this.uid=t,this.type="pointcloud",this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color="rgb(0, 0, 0)",this.name="",this.hoverinfo="all",this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=r(e.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var s=l.prototype;function u(e,t){var n=new l(e,t.uid);return n.update(t),n}s.handlePick=function(e){var t=this.idToIndex[e.pointId];return{trace:this,dataCoord:e.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*t],this.pickXYData[2*t+1]]:[this.pickXData[t],this.pickYData[t]],textLabel:Array.isArray(this.textLabels)?this.textLabels[t]:this.textLabels,color:this.color,name:this.name,pointIndex:t,hoverinfo:this.hoverinfo}},s.update=function(e){this.index=e.index,this.textLabels=e.text,this.name=e.name,this.hoverinfo=e.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(e),this.color=i(e,{})},s.updateFast=function(e){var t,n,r,i,l,s,u=this.xData=this.pickXData=e.x,c=this.yData=this.pickYData=e.y,f=this.pickXYData=e.xy,p=e.xbounds&&e.ybounds,d=e.indices,h=this.bounds;if(f){if(r=f,t=f.length>>>1,p)h[0]=e.xbounds[0],h[2]=e.xbounds[1],h[1]=e.ybounds[0],h[3]=e.ybounds[1];else for(s=0;s<t;s++)i=r[2*s],l=r[2*s+1],i<h[0]&&(h[0]=i),i>h[2]&&(h[2]=i),l<h[1]&&(h[1]=l),l>h[3]&&(h[3]=l);if(d)n=d;else for(n=new Int32Array(t),s=0;s<t;s++)n[s]=s}else for(t=u.length,r=new Float32Array(2*t),n=new Int32Array(t),s=0;s<t;s++)i=u[s],l=c[s],n[s]=s,r[2*s]=i,r[2*s+1]=l,i<h[0]&&(h[0]=i),i>h[2]&&(h[2]=i),l<h[1]&&(h[1]=l),l>h[3]&&(h[3]=l);this.idToIndex=n,this.pointcloudOptions.idToIndex=n,this.pointcloudOptions.positions=r;var v=a(e.marker.color),m=a(e.marker.border.color),y=e.opacity*e.marker.opacity;v[3]*=y,this.pointcloudOptions.color=v;var g=e.marker.blend;if(null===g){var b=100;g=u.length<b||c.length<b}this.pointcloudOptions.blend=g,m[3]*=y,this.pointcloudOptions.borderColor=m;var x=e.marker.sizemin,_=Math.max(e.marker.sizemax,e.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=_,this.pointcloudOptions.areaRatio=e.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var w=this.scene.xaxis,k=this.scene.yaxis,T=_/2||.5;e._extremes[w._id]=o(w,[h[0],h[2]],{ppad:T}),e._extremes[k._id]=o(k,[h[1],h[3]],{ppad:T})},s.dispose=function(){this.pointcloud.dispose()},t.exports=u},{"../../lib/str2rgbarray":773,"../../plots/cartesian/autorange":798,"../scatter/get_trace_color":1168,"gl-pointcloud2d":303}],1146:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes");t.exports=function(e,t,n){function o(n,o){return r.coerce(e,t,a,n,o)}o("x"),o("y"),o("xbounds"),o("ybounds"),e.xy&&e.xy instanceof Float32Array&&(t.xy=e.xy),e.indices&&e.indices instanceof Int32Array&&(t.indices=e.indices),o("text"),o("marker.color",n),o("marker.opacity"),o("marker.blend"),o("marker.sizemin"),o("marker.sizemax"),o("marker.border.color",n),o("marker.border.arearatio"),t._length=null}},{"../../lib":750,"./attributes":1144}],1147:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("../scatter3d/calc"),plot:e("./convert"),moduleType:"trace",name:"pointcloud",basePlotModule:e("../../plots/gl2d"),categories:["gl","gl2d","showLegend"],meta:{}}},{"../../plots/gl2d":839,"../scatter3d/calc":1187,"./attributes":1144,"./convert":1145,"./defaults":1146}],1148:[function(e,t,n){"use strict";var r=e("../../plots/font_attributes"),a=e("../../plots/attributes"),o=e("../../components/color/attributes"),i=e("../../components/fx/attributes"),l=e("../../plots/domain").attributes,s=e("../../plots/template_attributes").hovertemplateAttrs,u=e("../../components/colorscale/attributes"),c=e("../../plot_api/plot_template").templatedArray,f=e("../../lib/extend").extendFlat,p=e("../../plot_api/edit_types").overrideAll,d=(e("../../constants/docs").FORMAT_LINK,t.exports=p({hoverinfo:f({},a.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:i.hoverlabel,domain:l({name:"sankey",trace:!0}),orientation:{valType:"enumerated",values:["v","h"],dflt:"h"},valueformat:{valType:"string",dflt:".3s"},valuesuffix:{valType:"string",dflt:""},arrangement:{valType:"enumerated",values:["snap","perpendicular","freeform","fixed"],dflt:"snap"},textfont:r({}),customdata:void 0,node:{label:{valType:"data_array",dflt:[]},groups:{valType:"info_array",impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:"number",editType:"calc"}},x:{valType:"data_array",dflt:[]},y:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:o.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:.5,arrayOk:!0}},pad:{valType:"number",arrayOk:!1,min:0,dflt:20},thickness:{valType:"number",arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:i.hoverlabel,hovertemplate:s({},{keys:["value","label"]})},link:{label:{valType:"data_array",dflt:[]},color:{valType:"color",arrayOk:!0},customdata:{valType:"data_array",editType:"calc"},line:{color:{valType:"color",dflt:o.defaultLine,arrayOk:!0},width:{valType:"number",min:0,dflt:0,arrayOk:!0}},source:{valType:"data_array",dflt:[]},target:{valType:"data_array",dflt:[]},value:{valType:"data_array",dflt:[]},hoverinfo:{valType:"enumerated",values:["all","none","skip"],dflt:"all"},hoverlabel:i.hoverlabel,hovertemplate:s({},{keys:["value","label"]}),colorscales:c("concentrationscales",{editType:"calc",label:{valType:"string",editType:"calc",dflt:""},cmax:{valType:"number",editType:"calc",dflt:1},cmin:{valType:"number",editType:"calc",dflt:0},colorscale:f(u().colorscale,{dflt:[[0,"white"],[1,"black"]]})})}},"calc","nested"));d.transforms=void 0},{"../../components/color/attributes":614,"../../components/colorscale/attributes":622,"../../components/fx/attributes":646,"../../constants/docs":720,"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plot_api/plot_template":788,"../../plots/attributes":795,"../../plots/domain":826,"../../plots/font_attributes":827,"../../plots/template_attributes":877}],1149:[function(e,t,n){"use strict";var r=e("../../plot_api/edit_types").overrideAll,a=e("../../plots/get_data").getModuleCalcData,o=e("./plot"),i=e("../../components/fx/layout_attributes"),l=e("../../lib/setcursor"),s=e("../../components/dragelement"),u=e("../../plots/cartesian/select").prepSelect,c=e("../../lib"),f=e("../../registry"),p="sankey";function d(e,t){var n=e._fullData[t],r=e._fullLayout,a=r.dragmode,o="pan"===r.dragmode?"move":"crosshair",i=n._bgRect;if("pan"!==a&&"zoom"!==a){l(i,o);var p={_id:"x",c2p:c.identity,_offset:n._sankey.translateX,_length:n._sankey.width},d={_id:"y",c2p:c.identity,_offset:n._sankey.translateY,_length:n._sankey.height},h={gd:e,element:i.node(),plotinfo:{id:t,xaxis:p,yaxis:d,fillRangeItems:c.noop},subplot:t,xaxes:[p],yaxes:[d],doneFnCompleted:function(n){var r,a=e._fullData[t],o=a.node.groups.slice(),i=[];function l(e){for(var t=a._sankey.graph.nodes,n=0;n<t.length;n++)if(t[n].pointNumber===e)return t[n]}for(var s=0;s<n.length;s++){var u=l(n[s].pointNumber);if(u)if(u.group){for(var c=0;c<u.childrenNodes.length;c++)i.push(u.childrenNodes[c].pointNumber);o[u.pointNumber-a.node._count]=!1}else i.push(u.pointNumber)}r=o.filter(Boolean).concat([i]),f.call("_guiRestyle",e,{"node.groups":[r]},t)},prepFn:function(e,t,n){u(e,t,n,h,a)}};s.init(h)}}n.name=p,n.baseLayoutAttrOverrides=r({hoverlabel:i.hoverlabel},"plot","nested"),n.plot=function(e){var t=a(e.calcdata,p)[0];o(e,t),n.updateFx(e)},n.clean=function(e,t,n,r){var a=r._has&&r._has(p),o=t._has&&t._has(p);a&&!o&&(r._paperdiv.selectAll(".sankey").remove(),r._paperdiv.selectAll(".bgsankey").remove())},n.updateFx=function(e){for(var t=0;t<e._fullData.length;t++)d(e,t)}},{"../../components/dragelement":634,"../../components/fx/layout_attributes":656,"../../lib":750,"../../lib/setcursor":770,"../../plot_api/edit_types":781,"../../plots/cartesian/select":818,"../../plots/get_data":836,"../../registry":882,"./plot":1154}],1150:[function(e,t,n){"use strict";var r=e("strongly-connected-components"),a=e("../../lib"),o=e("../../lib/gup").wrap,i=a.isArrayOrTypedArray,l=a.isIndex,s=e("../../components/colorscale");function u(e){var t,n=e.node,r=e.link,o=[],u=i(r.color),f=i(r.customdata),p={},d={},h=r.colorscales.length;for(t=0;t<h;t++){var v=r.colorscales[t],m=s.extractScale(v,{cLetter:"c"}),y=s.makeColorScaleFunc(m);d[v.label]=y}var g=0;for(t=0;t<r.value.length;t++)r.source[t]>g&&(g=r.source[t]),r.target[t]>g&&(g=r.target[t]);var b,x=g+1;e.node._count=x;var _=e.node.groups,w={};for(t=0;t<_.length;t++){var k=_[t];for(b=0;b<k.length;b++){var T=k[b],E=x+t;w.hasOwnProperty(T)?a.warn("Node "+T+" is already part of a group."):w[T]=E}}var O={source:[],target:[]};for(t=0;t<r.value.length;t++){var M=r.value[t],S=r.source[t],C=r.target[t];if(M>0&&l(S,x)&&l(C,x)&&(!w.hasOwnProperty(S)||!w.hasOwnProperty(C)||w[S]!==w[C])){w.hasOwnProperty(C)&&(C=w[C]),w.hasOwnProperty(S)&&(S=w[S]),S=+S,C=+C,p[S]=p[C]=!0;var A="";r.label&&r.label[t]&&(A=r.label[t]);var P=null;A&&d.hasOwnProperty(A)&&(P=d[A]),o.push({pointNumber:t,label:A,color:u?r.color[t]:r.color,customdata:f?r.customdata[t]:r.customdata,concentrationscale:P,source:S,target:C,value:+M}),O.source.push(S),O.target.push(C)}}var L=x+_.length,D=i(n.color),j=i(n.customdata),I=[];for(t=0;t<L;t++)if(p[t]){var R=n.label[t];I.push({group:t>x-1,childrenNodes:[],pointNumber:t,label:R,color:D?n.color[t]:n.color,customdata:j?n.customdata[t]:n.customdata})}var z=!1;return c(L,O.source,O.target)&&(z=!0),{circular:z,links:o,nodes:I,groups:_,groupLookup:w}}function c(e,t,n){for(var o=a.init2dArray(e,0),i=0;i<Math.min(t.length,n.length);i++)if(a.isIndex(t[i],e)&&a.isIndex(n[i],e)){if(t[i]===n[i])return!0;o[t[i]].push(n[i])}var l=r(o);return l.components.some((function(e){return e.length>1}))}t.exports=function(e,t){var n=u(t);return o({circular:n.circular,_nodes:n.nodes,_links:n.links,_groups:n.groups,_groupLookup:n.groupLookup})}},{"../../components/colorscale":627,"../../lib":750,"../../lib/gup":747,"strongly-connected-components":541}],1151:[function(e,t,n){"use strict";t.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:"linear",cn:{sankey:"sankey",sankeyLinks:"sankey-links",sankeyLink:"sankey-link",sankeyNodeSet:"sankey-node-set",sankeyNode:"sankey-node",nodeRect:"node-rect",nodeCapture:"node-capture",nodeCentered:"node-entered",nodeLabelGuide:"node-label-guide",nodeLabel:"node-label",nodeLabelTextPath:"node-label-text-path"}}},{}],1152:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),o=e("../../components/color"),i=e("tinycolor2"),l=e("../../plots/domain").defaults,s=e("../../components/fx/hoverlabel_defaults"),u=e("../../plot_api/plot_template"),c=e("../../plots/array_container_defaults");function f(e,t){function n(n,o){return r.coerce(e,t,a.link.colorscales,n,o)}n("label"),n("cmin"),n("cmax"),n("colorscale")}t.exports=function(e,t,n,p){function d(n,o){return r.coerce(e,t,a,n,o)}var h=r.extendDeep(p.hoverlabel,e.hoverlabel),v=e.node,m=u.newContainer(t,"node");function y(e,t){return r.coerce(v,m,a.node,e,t)}y("label"),y("groups"),y("x"),y("y"),y("pad"),y("thickness"),y("line.color"),y("line.width"),y("hoverinfo",e.hoverinfo),s(v,m,y,h),y("hovertemplate");var g=p.colorway,b=function(e){return g[e%g.length]};y("color",m.label.map((function(e,t){return o.addOpacity(b(t),.8)}))),y("customdata");var x=e.link||{},_=u.newContainer(t,"link");function w(e,t){return r.coerce(x,_,a.link,e,t)}w("label"),w("source"),w("target"),w("value"),w("line.color"),w("line.width"),w("hoverinfo",e.hoverinfo),s(x,_,w,h),w("hovertemplate");var k,T=i(p.paper_bgcolor).getLuminance()<.333?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.2)";w("color",r.repeat(T,_.value.length)),w("customdata"),c(x,_,{name:"colorscales",handleItemDefaults:f}),l(t,p,d),d("orientation"),d("valueformat"),d("valuesuffix"),m.x.length&&m.y.length&&(k="freeform"),d("arrangement",k),r.coerceFont(d,"textfont",r.extendFlat({},p.font)),t._length=null}},{"../../components/color":615,"../../components/fx/hoverlabel_defaults":653,"../../lib":750,"../../plot_api/plot_template":788,"../../plots/array_container_defaults":794,"../../plots/domain":826,"./attributes":1148,tinycolor2:548}],1153:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot"),moduleType:"trace",name:"sankey",basePlotModule:e("./base_plot"),selectPoints:e("./select.js"),categories:["noOpacity"],meta:{}}},{"./attributes":1148,"./base_plot":1149,"./calc":1150,"./defaults":1152,"./plot":1154,"./select.js":1156}],1154:[function(e,t,n){"use strict";var r=e("d3"),a=e("./render"),o=e("../../components/fx"),i=e("../../components/color"),l=e("../../lib"),s=e("./constants").cn,u=l._;function c(e){return""!==e}function f(e,t){return e.filter((function(e){return e.key===t.traceId}))}function p(e,t){r.select(e).select("path").style("fill-opacity",t),r.select(e).select("rect").style("fill-opacity",t)}function d(e){r.select(e).select("text.name").style("fill","black")}function h(e){return function(t){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function v(e){return function(t){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function m(e,t,n){t&&n&&f(n,t).selectAll("."+s.sankeyLink).filter(h(t)).call(g.bind(0,t,n,!1))}function y(e,t,n){t&&n&&f(n,t).selectAll("."+s.sankeyLink).filter(h(t)).call(b.bind(0,t,n,!1))}function g(e,t,n,r){var a=r.datum().link.label;r.style("fill-opacity",(function(e){if(!e.link.concentrationscale)return.4})),a&&f(t,e).selectAll("."+s.sankeyLink).filter((function(e){return e.link.label===a})).style("fill-opacity",(function(e){if(!e.link.concentrationscale)return.4})),n&&f(t,e).selectAll("."+s.sankeyNode).filter(v(e)).call(m)}function b(e,t,n,r){var a=r.datum().link.label;r.style("fill-opacity",(function(e){return e.tinyColorAlpha})),a&&f(t,e).selectAll("."+s.sankeyLink).filter((function(e){return e.link.label===a})).style("fill-opacity",(function(e){return e.tinyColorAlpha})),n&&f(t,e).selectAll(s.sankeyNode).filter(v(e)).call(y)}function x(e,t){var n=e.hoverlabel||{},r=l.nestedProperty(n,t).get();return!Array.isArray(r)&&r}t.exports=function(e,t){for(var n=e._fullLayout,l=n._paper,f=n._size,h=0;h<e._fullData.length;h++)if(e._fullData[h].visible&&e._fullData[h].type===s.sankey&&!e._fullData[h]._viewInitial){var v=e._fullData[h].node;e._fullData[h]._viewInitial={node:{groups:v.groups.slice(),x:v.x.slice(),y:v.y.slice()}}}var _=function(t,n){var a=n.link;a.originalEvent=r.event,e._hoverdata=[a],o.click(e,{target:!0})},w=function(t,n,a){!1!==e._fullLayout.hovermode&&(r.select(t).call(g.bind(0,n,a,!0)),"skip"!==n.link.trace.link.hoverinfo&&(n.link.fullData=n.link.trace,e.emit("plotly_hover",{event:r.event,points:[n.link]})))},k=u(e,"source:")+" ",T=u(e,"target:")+" ",E=u(e,"concentration:")+" ",O=u(e,"incoming flow count:")+" ",M=u(e,"outgoing flow count:")+" ",S=function(t,a){if(!1!==e._fullLayout.hovermode){var l=a.link.trace.link;if("none"!==l.hoverinfo&&"skip"!==l.hoverinfo){for(var s=[],u=0,f=0;f<a.flow.links.length;f++){var h=a.flow.links[f];if("closest"!==e._fullLayout.hovermode||a.link.pointNumber===h.pointNumber){a.link.pointNumber===h.pointNumber&&(u=f),h.fullData=h.trace,l=a.link.trace.link;var v=g(h),m={valueLabel:r.format(a.valueFormat)(h.value)+a.valueSuffix};s.push({x:v[0],y:v[1],name:m.valueLabel,text:[h.label||"",k+h.source.label,T+h.target.label,h.concentrationscale?E+r.format("%0.2f")(h.flow.labelConcentration):""].filter(c).join("<br>"),color:x(l,"bgcolor")||i.addOpacity(h.color,1),borderColor:x(l,"bordercolor"),fontFamily:x(l,"font.family"),fontSize:x(l,"font.size"),fontColor:x(l,"font.color"),nameLength:x(l,"namelength"),textAlign:x(l,"align"),idealAlign:r.event.x<v[0]?"right":"left",hovertemplate:l.hovertemplate,hovertemplateLabels:m,eventData:[h]})}}var y=o.loneHover(s,{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:e,anchorIndex:u});y.each((function(){var e=this;a.link.concentrationscale||p(e,.65),d(e)}))}}function g(e){var t,n;e.circular?(t=(e.circularPathData.leftInnerExtent+e.circularPathData.rightInnerExtent)/2,n=e.circularPathData.verticalFullExtent):(t=(e.source.x1+e.target.x0)/2,n=(e.y0+e.y1)/2);var r=[t,n];return"v"===e.trace.orientation&&r.reverse(),r[0]+=a.parent.translateX,r[1]+=a.parent.translateY,r}},C=function(t,a,i){!1!==e._fullLayout.hovermode&&(r.select(t).call(b.bind(0,a,i,!0)),"skip"!==a.link.trace.link.hoverinfo&&(a.link.fullData=a.link.trace,e.emit("plotly_unhover",{event:r.event,points:[a.link]})),o.loneUnhover(n._hoverlayer.node()))},A=function(t,n,a){var i=n.node;i.originalEvent=r.event,e._hoverdata=[i],r.select(t).call(y,n,a),o.click(e,{target:!0})},P=function(t,n,a){!1!==e._fullLayout.hovermode&&(r.select(t).call(m,n,a),"skip"!==n.node.trace.node.hoverinfo&&(n.node.fullData=n.node.trace,e.emit("plotly_hover",{event:r.event,points:[n.node]})))},L=function(t,a){if(!1!==e._fullLayout.hovermode){var i=a.node.trace.node;if("none"!==i.hoverinfo&&"skip"!==i.hoverinfo){var l=r.select(t).select("."+s.nodeRect),u=e._fullLayout._paperdiv.node().getBoundingClientRect(),f=l.node().getBoundingClientRect(),h=f.left-2-u.left,v=f.right+2-u.left,m=f.top+f.height/4-u.top,y={valueLabel:r.format(a.valueFormat)(a.node.value)+a.valueSuffix};a.node.fullData=a.node.trace;var g=o.loneHover({x0:h,x1:v,y:m,name:r.format(a.valueFormat)(a.node.value)+a.valueSuffix,text:[a.node.label,O+a.node.targetLinks.length,M+a.node.sourceLinks.length].filter(c).join("<br>"),color:x(i,"bgcolor")||a.tinyColorHue,borderColor:x(i,"bordercolor"),fontFamily:x(i,"font.family"),fontSize:x(i,"font.size"),fontColor:x(i,"font.color"),nameLength:x(i,"namelength"),textAlign:x(i,"align"),idealAlign:"left",hovertemplate:i.hovertemplate,hovertemplateLabels:y,eventData:[a.node]},{container:n._hoverlayer.node(),outerContainer:n._paper.node(),gd:e});p(g,.85),d(g)}}},D=function(t,a,i){!1!==e._fullLayout.hovermode&&(r.select(t).call(y,a,i),"skip"!==a.node.trace.node.hoverinfo&&(a.node.fullData=a.node.trace,e.emit("plotly_unhover",{event:r.event,points:[a.node]})),o.loneUnhover(n._hoverlayer.node()))};a(e,l,t,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{linkEvents:{hover:w,follow:S,unhover:C,select:_},nodeEvents:{hover:P,follow:L,unhover:D,select:A}})}},{"../../components/color":615,"../../components/fx":655,"../../lib":750,"./constants":1151,"./render":1155,d3:169}],1155:[function(e,t,n){"use strict";var r=e("./constants"),a=e("d3"),o=e("tinycolor2"),i=e("../../components/color"),l=e("../../components/drawing"),s=e("@plotly/d3-sankey"),u=e("@plotly/d3-sankey-circular"),c=e("d3-force"),f=e("../../lib"),p=e("../../lib/gup"),d=p.keyFun,h=p.repeat,v=p.unwrap,m=e("d3-interpolate").interpolateNumber,y=e("../../registry");function g(e,t,n){var a,i=v(t),l=i.trace,c=l.domain,p="h"===l.orientation,d=l.node.pad,h=l.node.thickness,m=e.width*(c.x[1]-c.x[0]),y=e.height*(c.y[1]-c.y[0]),g=i._nodes,b=i._links,x=i.circular;a=x?u.sankeyCircular().circularLinkGap(0):s.sankey(),a.iterations(r.sankeyIterations).size(p?[m,y]:[y,m]).nodeWidth(h).nodePadding(d).nodeId((function(e){return e.pointNumber})).nodes(g).links(b);var _,w,k,T=a();for(var E in a.nodePadding()<d&&f.warn("node.pad was reduced to ",a.nodePadding()," to fit within the figure."),i._groupLookup){var O,M=parseInt(i._groupLookup[E]);for(_=0;_<T.nodes.length;_++)if(T.nodes[_].pointNumber===M){O=T.nodes[_];break}if(O){var S={pointNumber:parseInt(E),x0:O.x0,x1:O.x1,y0:O.y0,y1:O.y1,partOfGroup:!0,sourceLinks:[],targetLinks:[]};T.nodes.unshift(S),O.childrenNodes.unshift(S)}}function C(){for(_=0;_<T.nodes.length;_++){var e,t,n=T.nodes[_],r={};for(w=0;w<n.targetLinks.length;w++)t=n.targetLinks[w],e=t.source.pointNumber+":"+t.target.pointNumber,r.hasOwnProperty(e)||(r[e]=[]),r[e].push(t);var a=Object.keys(r);for(w=0;w<a.length;w++){e=a[w];var i=r[e],l=0,s={};for(k=0;k<i.length;k++)t=i[k],s[t.label]||(s[t.label]=0),s[t.label]+=t.value,l+=t.value;for(k=0;k<i.length;k++)t=i[k],t.flow={value:l,labelConcentration:s[t.label]/l,concentration:t.value/l,links:i},t.concentrationscale&&(t.color=o(t.concentrationscale(t.flow.labelConcentration)))}var u=0;for(w=0;w<n.sourceLinks.length;w++)u+=n.sourceLinks[w].value;for(w=0;w<n.sourceLinks.length;w++)t=n.sourceLinks[w],t.concentrationOut=t.value/u;var c=0;for(w=0;w<n.targetLinks.length;w++)c+=n.targetLinks[w].value;for(w=0;w<n.targetLinks.length;w++)t=n.targetLinks[w],t.concenrationIn=t.value/c}}function A(e){e.forEach((function(e){var t,n,r,a=0,o=e.length;for(e.sort((function(e,t){return e.y0-t.y0})),r=0;r<o;++r)t=e[r],t.y0>=a||(n=a-t.y0,n>1e-6&&(t.y0+=n,t.y1+=n)),a=t.y1+d}))}function P(e){var t,n,r=e.map((function(e,t){return{x0:e.x0,index:t}})).sort((function(e,t){return e.x0-t.x0})),a=[],o=-1,i=-1/0;for(_=0;_<r.length;_++){var l=e[r[_].index];l.x0>i+h&&(o+=1,t=l.x0),i=l.x0,a[o]||(a[o]=[]),a[o].push(l),n=t-l.x0,l.x0+=n,l.x1+=n}return a}if(C(),l.node.x.length&&l.node.y.length){for(_=0;_<Math.min(l.node.x.length,l.node.y.length,T.nodes.length);_++)if(l.node.x[_]&&l.node.y[_]){var L=[l.node.x[_]*m,l.node.y[_]*y];T.nodes[_].x0=L[0]-h/2,T.nodes[_].x1=L[0]+h/2;var D=T.nodes[_].y1-T.nodes[_].y0;T.nodes[_].y0=L[1]-D/2,T.nodes[_].y1=L[1]+D/2}if("snap"===l.arrangement){g=T.nodes;var j=P(g);A(j)}a.update(T)}return{circular:x,key:n,trace:l,guid:f.randstr(),horizontal:p,width:m,height:y,nodePad:l.node.pad,nodeLineColor:l.node.line.color,nodeLineWidth:l.node.line.width,linkLineColor:l.link.line.color,linkLineWidth:l.link.line.width,valueFormat:l.valueformat,valueSuffix:l.valuesuffix,textFont:l.textfont,translateX:c.x[0]*e.width+e.margin.l,translateY:e.height-c.y[1]*e.height+e.margin.t,dragParallel:p?y:m,dragPerpendicular:p?m:y,arrangement:l.arrangement,sankey:a,graph:T,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function b(e,t,n){var r=o(t.color),a=t.source.label+"|"+t.target.label,l=a+"__"+n;return t.trace=e.trace,t.curveNumber=e.trace.index,{circular:e.circular,key:l,traceId:e.key,pointNumber:t.pointNumber,link:t,tinyColorHue:i.tinyRGB(r),tinyColorAlpha:r.getAlpha(),linkPath:_,linkLineColor:e.linkLineColor,linkLineWidth:e.linkLineWidth,valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,parent:e,interactionState:e.interactionState,flow:t.flow}}function x(e){var t="",n=e.width/2,r=e.circularPathData;return t="top"===e.circularLinkType?"M "+r.targetX+" "+(r.targetY+n)+" L"+r.rightInnerExtent+" "+(r.targetY+n)+"A"+(r.rightLargeArcRadius+n)+" "+(r.rightSmallArcRadius+n)+" 0 0 1 "+(r.rightFullExtent-n)+" "+(r.targetY-r.rightSmallArcRadius)+"L"+(r.rightFullExtent-n)+" "+r.verticalRightInnerExtent+"A"+(r.rightLargeArcRadius+n)+" "+(r.rightLargeArcRadius+n)+" 0 0 1 "+r.rightInnerExtent+" "+(r.verticalFullExtent-n)+"L"+r.leftInnerExtent+" "+(r.verticalFullExtent-n)+"A"+(r.leftLargeArcRadius+n)+" "+(r.leftLargeArcRadius+n)+" 0 0 1 "+(r.leftFullExtent+n)+" "+r.verticalLeftInnerExtent+"L"+(r.leftFullExtent+n)+" "+(r.sourceY-r.leftSmallArcRadius)+"A"+(r.leftLargeArcRadius+n)+" "+(r.leftSmallArcRadius+n)+" 0 0 1 "+r.leftInnerExtent+" "+(r.sourceY+n)+"L"+r.sourceX+" "+(r.sourceY+n)+"L"+r.sourceX+" "+(r.sourceY-n)+"L"+r.leftInnerExtent+" "+(r.sourceY-n)+"A"+(r.leftLargeArcRadius-n)+" "+(r.leftSmallArcRadius-n)+" 0 0 0 "+(r.leftFullExtent-n)+" "+(r.sourceY-r.leftSmallArcRadius)+"L"+(r.leftFullExtent-n)+" "+r.verticalLeftInnerExtent+"A"+(r.leftLargeArcRadius-n)+" "+(r.leftLargeArcRadius-n)+" 0 0 0 "+r.leftInnerExtent+" "+(r.verticalFullExtent+n)+"L"+r.rightInnerExtent+" "+(r.verticalFullExtent+n)+"A"+(r.rightLargeArcRadius-n)+" "+(r.rightLargeArcRadius-n)+" 0 0 0 "+(r.rightFullExtent+n)+" "+r.verticalRightInnerExtent+"L"+(r.rightFullExtent+n)+" "+(r.targetY-r.rightSmallArcRadius)+"A"+(r.rightLargeArcRadius-n)+" "+(r.rightSmallArcRadius-n)+" 0 0 0 "+r.rightInnerExtent+" "+(r.targetY-n)+"L"+r.targetX+" "+(r.targetY-n)+"Z":"M "+r.targetX+" "+(r.targetY-n)+" L"+r.rightInnerExtent+" "+(r.targetY-n)+"A"+(r.rightLargeArcRadius+n)+" "+(r.rightSmallArcRadius+n)+" 0 0 0 "+(r.rightFullExtent-n)+" "+(r.targetY+r.rightSmallArcRadius)+"L"+(r.rightFullExtent-n)+" "+r.verticalRightInnerExtent+"A"+(r.rightLargeArcRadius+n)+" "+(r.rightLargeArcRadius+n)+" 0 0 0 "+r.rightInnerExtent+" "+(r.verticalFullExtent+n)+"L"+r.leftInnerExtent+" "+(r.verticalFullExtent+n)+"A"+(r.leftLargeArcRadius+n)+" "+(r.leftLargeArcRadius+n)+" 0 0 0 "+(r.leftFullExtent+n)+" "+r.verticalLeftInnerExtent+"L"+(r.leftFullExtent+n)+" "+(r.sourceY+r.leftSmallArcRadius)+"A"+(r.leftLargeArcRadius+n)+" "+(r.leftSmallArcRadius+n)+" 0 0 0 "+r.leftInnerExtent+" "+(r.sourceY-n)+"L"+r.sourceX+" "+(r.sourceY-n)+"L"+r.sourceX+" "+(r.sourceY+n)+"L"+r.leftInnerExtent+" "+(r.sourceY+n)+"A"+(r.leftLargeArcRadius-n)+" "+(r.leftSmallArcRadius-n)+" 0 0 1 "+(r.leftFullExtent-n)+" "+(r.sourceY+r.leftSmallArcRadius)+"L"+(r.leftFullExtent-n)+" "+r.verticalLeftInnerExtent+"A"+(r.leftLargeArcRadius-n)+" "+(r.leftLargeArcRadius-n)+" 0 0 1 "+r.leftInnerExtent+" "+(r.verticalFullExtent-n)+"L"+r.rightInnerExtent+" "+(r.verticalFullExtent-n)+"A"+(r.rightLargeArcRadius-n)+" "+(r.rightLargeArcRadius-n)+" 0 0 1 "+(r.rightFullExtent+n)+" "+r.verticalRightInnerExtent+"L"+(r.rightFullExtent+n)+" "+(r.targetY+r.rightSmallArcRadius)+"A"+(r.rightLargeArcRadius-n)+" "+(r.rightSmallArcRadius-n)+" 0 0 1 "+r.rightInnerExtent+" "+(r.targetY+n)+"L"+r.targetX+" "+(r.targetY+n)+"Z",t}function _(){var e=.5;function t(t){if(t.link.circular)return x(t.link);var n=t.link.source.x1,r=t.link.target.x0,a=m(n,r),o=a(e),i=a(1-e),l=t.link.y0-t.link.width/2,s=t.link.y0+t.link.width/2,u=t.link.y1-t.link.width/2,c=t.link.y1+t.link.width/2;return"M"+n+","+l+"C"+o+","+l+" "+i+","+u+" "+r+","+u+"L"+r+","+c+"C"+i+","+c+" "+o+","+s+" "+n+","+s+"Z"}return t}function w(e,t){var n=o(t.color),a=r.nodePadAcross,l=e.nodePad/2;t.dx=t.x1-t.x0,t.dy=t.y1-t.y0;var s=t.dx,u=Math.max(.5,t.dy),c="node_"+t.pointNumber;return t.group&&(c=f.randstr()),t.trace=e.trace,t.curveNumber=e.trace.index,{index:t.pointNumber,key:c,partOfGroup:t.partOfGroup||!1,group:t.group,traceId:e.key,trace:e.trace,node:t,nodePad:e.nodePad,nodeLineColor:e.nodeLineColor,nodeLineWidth:e.nodeLineWidth,textFont:e.textFont,size:e.horizontal?e.height:e.width,visibleWidth:Math.ceil(s),visibleHeight:u,zoneX:-a,zoneY:-l,zoneWidth:s+2*a,zoneHeight:u+2*l,labelY:e.horizontal?t.dy/2+1:t.dx/2+1,left:1===t.originalLayer,sizeAcross:e.width,forceLayouts:e.forceLayouts,horizontal:e.horizontal,darkBackground:n.getBrightness()<=128,tinyColorHue:i.tinyRGB(n),tinyColorAlpha:n.getAlpha(),valueFormat:e.valueFormat,valueSuffix:e.valueSuffix,sankey:e.sankey,graph:e.graph,arrangement:e.arrangement,uniqueNodeLabelPathId:[e.guid,e.key,c].join("_"),interactionState:e.interactionState,figure:e}}function k(e){e.attr("transform",(function(e){return"translate("+e.node.x0.toFixed(3)+", "+e.node.y0.toFixed(3)+")"}))}function T(e){e.call(k)}function E(e,t){e.call(T),t.attr("d",_())}function O(e){e.attr("width",(function(e){return e.node.x1-e.node.x0})).attr("height",(function(e){return e.visibleHeight}))}function M(e){return e.link.width>1||e.linkLineWidth>0}function S(e){var t="translate("+e.translateX+","+e.translateY+")";return t+(e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)")}function C(e){return"translate("+(e.horizontal?0:e.labelY)+" "+(e.horizontal?e.labelY:0)+")"}function A(e){return a.svg.line()([[e.horizontal?e.left?-e.sizeAcross:e.visibleWidth+r.nodeTextOffsetHorizontal:r.nodeTextOffsetHorizontal,0],[e.horizontal?e.left?-r.nodeTextOffsetHorizontal:e.sizeAcross:e.visibleHeight-r.nodeTextOffsetHorizontal,0]])}function P(e){return e.horizontal?"matrix(1 0 0 1 0 0)":"matrix(0 1 1 0 0 0)"}function L(e){return e.horizontal?"scale(1 1)":"scale(-1 1)"}function D(e){return e.darkBackground&&!e.horizontal?"rgb(255,255,255)":"rgb(0,0,0)"}function j(e){return e.horizontal&&e.left?"100%":"0%"}function I(e,t,n){e.on(".basic",null).on("mouseover.basic",(function(e){e.interactionState.dragInProgress||e.partOfGroup||(n.hover(this,e,t),e.interactionState.hovered=[this,e])})).on("mousemove.basic",(function(e){e.interactionState.dragInProgress||e.partOfGroup||(n.follow(this,e),e.interactionState.hovered=[this,e])})).on("mouseout.basic",(function(e){e.interactionState.dragInProgress||e.partOfGroup||(n.unhover(this,e,t),e.interactionState.hovered=!1)})).on("click.basic",(function(e){e.interactionState.hovered&&(n.unhover(this,e,t),e.interactionState.hovered=!1),e.interactionState.dragInProgress||e.partOfGroup||n.select(this,e,t)}))}function R(e,t,n,r){var o=a.behavior.drag().origin((function(e){return{x:e.node.x0+e.visibleWidth/2,y:e.node.y0+e.visibleHeight/2}})).on("dragstart",(function(a){if("fixed"!==a.arrangement&&(f.ensureSingle(r._fullLayout._infolayer,"g","dragcover",(function(e){r._fullLayout._dragCover=e})),f.raiseToTop(this),a.interactionState.dragInProgress=a.node,H(a.node),a.interactionState.hovered&&(n.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),"snap"===a.arrangement)){var o=a.traceId+"|"+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):z(e,o,a,r),N(e,t,a,o,r)}})).on("drag",(function(n){if("fixed"!==n.arrangement){var r=a.event.x,o=a.event.y;"snap"===n.arrangement?(n.node.x0=r-n.visibleWidth/2,n.node.x1=r+n.visibleWidth/2,n.node.y0=o-n.visibleHeight/2,n.node.y1=o+n.visibleHeight/2):("freeform"===n.arrangement&&(n.node.x0=r-n.visibleWidth/2,n.node.x1=r+n.visibleWidth/2),o=Math.max(0,Math.min(n.size-n.visibleHeight/2,o)),n.node.y0=o-n.visibleHeight/2,n.node.y1=o+n.visibleHeight/2),H(n.node),"snap"!==n.arrangement&&(n.sankey.update(n.graph),E(e.filter(U(n)),t))}})).on("dragend",(function(e){if("fixed"!==e.arrangement){e.interactionState.dragInProgress=!1;for(var t=0;t<e.node.childrenNodes.length;t++)e.node.childrenNodes[t].x=e.node.x,e.node.childrenNodes[t].y=e.node.y;"snap"!==e.arrangement&&B(e,r)}}));e.on(".drag",null).call(o)}function z(e,t,n,a){W(n.graph.nodes);var o=n.graph.nodes.filter((function(e){return e.originalX===n.node.originalX})).filter((function(e){return!e.partOfGroup}));n.forceLayouts[t]=c.forceSimulation(o).alphaDecay(0).force("collide",c.forceCollide().radius((function(e){return e.dy/2+n.nodePad/2})).strength(1).iterations(r.forceIterations)).force("constrain",F(e,t,o,n,a)).stop()}function N(e,t,n,a,o){window.requestAnimationFrame((function i(){var l;for(l=0;l<r.forceTicksPerFrame;l++)n.forceLayouts[a].tick();var s=n.graph.nodes;if(q(s),n.sankey.update(n.graph),E(e.filter(U(n)),t),n.forceLayouts[a].alpha()>0)window.requestAnimationFrame(i);else{var u=n.node.originalX;n.node.x0=u-n.visibleWidth/2,n.node.x1=u+n.visibleWidth/2,B(n,o)}}))}function F(e,t,n,a){return function(){for(var e=0,o=0;o<n.length;o++){var i=n[o];i===a.interactionState.dragInProgress?(i.x=i.lastDraggedX,i.y=i.lastDraggedY):(i.vx=(i.originalX-i.x)/r.forceTicksPerFrame,i.y=Math.min(a.size-i.dy/2,Math.max(i.dy/2,i.y))),e=Math.max(e,Math.abs(i.vx),Math.abs(i.vy))}!a.interactionState.dragInProgress&&e<.1&&a.forceLayouts[t].alpha()>0&&a.forceLayouts[t].alpha(0)}}function B(e,t){for(var n=[],r=[],a=0;a<e.graph.nodes.length;a++){var o=(e.graph.nodes[a].x0+e.graph.nodes[a].x1)/2,i=(e.graph.nodes[a].y0+e.graph.nodes[a].y1)/2;n.push(o/e.figure.width),r.push(i/e.figure.height)}y.call("_guiRestyle",t,{"node.x":[n],"node.y":[r]},e.trace.index).then((function(){t._fullLayout._dragCover&&t._fullLayout._dragCover.remove()}))}function V(e){var t,n=[];for(t=0;t<e.length;t++)e[t].originalX=(e[t].x0+e[t].x1)/2,e[t].originalY=(e[t].y0+e[t].y1)/2,-1===n.indexOf(e[t].originalX)&&n.push(e[t].originalX);for(n.sort((function(e,t){return e-t})),t=0;t<e.length;t++)e[t].originalLayerIndex=n.indexOf(e[t].originalX),e[t].originalLayer=e[t].originalLayerIndex/(n.length-1)}function H(e){e.lastDraggedX=e.x0+e.dx/2,e.lastDraggedY=e.y0+e.dy/2}function U(e){return function(t){return t.node.originalX===e.node.originalX}}function W(e){for(var t=0;t<e.length;t++)e[t].y=(e[t].y0+e[t].y1)/2,e[t].x=(e[t].x0+e[t].x1)/2}function q(e){for(var t=0;t<e.length;t++)e[t].y0=e[t].y-e[t].dy/2,e[t].y1=e[t].y0+e[t].dy,e[t].x0=e[t].x-e[t].dx/2,e[t].x1=e[t].x0+e[t].dx}t.exports=function(e,t,n,s,u){var c=!1;f.ensureSingle(e._fullLayout._infolayer,"g","first-render",(function(){c=!0}));var p=e._fullLayout._dragCover,m=n.filter((function(e){return v(e).trace.visible})).map(g.bind(null,s)),y=t.selectAll("."+r.cn.sankey).data(m,d);y.exit().remove(),y.enter().append("g").classed(r.cn.sankey,!0).style("box-sizing","content-box").style("position","absolute").style("left",0).style("shape-rendering","geometricPrecision").style("pointer-events","auto").attr("transform",S),y.each((function(t,n){e._fullData[n]._sankey=t;var r="bgsankey-"+t.trace.uid+"-"+n;f.ensureSingle(e._fullLayout._draggers,"rect",r),e._fullData[n]._bgRect=a.select("."+r),e._fullData[n]._bgRect.style("pointer-events","all").attr("width",t.width).attr("height",t.height).attr("x",t.translateX).attr("y",t.translateY).classed("bgsankey",!0).style({fill:"transparent","stroke-width":0})})),y.transition().ease(r.ease).duration(r.duration).attr("transform",S);var x=y.selectAll("."+r.cn.sankeyLinks).data(h,d);x.enter().append("g").classed(r.cn.sankeyLinks,!0).style("fill","none");var T=x.selectAll("."+r.cn.sankeyLink).data((function(e){var t=e.graph.links;return t.filter((function(e){return e.value})).map(b.bind(null,e))}),d);T.enter().append("path").classed(r.cn.sankeyLink,!0).call(I,y,u.linkEvents),T.style("stroke",(function(e){return M(e)?i.tinyRGB(o(e.linkLineColor)):e.tinyColorHue})).style("stroke-opacity",(function(e){return M(e)?i.opacity(e.linkLineColor):e.tinyColorAlpha})).style("fill",(function(e){return e.tinyColorHue})).style("fill-opacity",(function(e){return e.tinyColorAlpha})).style("stroke-width",(function(e){return M(e)?e.linkLineWidth:1})).attr("d",_()),T.style("opacity",(function(){return e._context.staticPlot||c||p?1:0})).transition().ease(r.ease).duration(r.duration).style("opacity",1),T.exit().transition().ease(r.ease).duration(r.duration).style("opacity",0).remove();var E=y.selectAll("."+r.cn.sankeyNodeSet).data(h,d);E.enter().append("g").classed(r.cn.sankeyNodeSet,!0),E.style("cursor",(function(e){switch(e.arrangement){case"fixed":return"default";case"perpendicular":return"ns-resize";default:return"move"}}));var z=E.selectAll("."+r.cn.sankeyNode).data((function(e){var t=e.graph.nodes;return V(t),t.map(w.bind(null,e))}),d);z.enter().append("g").classed(r.cn.sankeyNode,!0).call(k).style("opacity",(function(t){return!e._context.staticPlot&&!c||t.partOfGroup?0:1})),z.call(I,y,u.nodeEvents).call(R,T,u,e),z.transition().ease(r.ease).duration(r.duration).call(k).style("opacity",(function(e){return e.partOfGroup?0:1})),z.exit().transition().ease(r.ease).duration(r.duration).style("opacity",0).remove();var N=z.selectAll("."+r.cn.nodeRect).data(h);N.enter().append("rect").classed(r.cn.nodeRect,!0).call(O),N.style("stroke-width",(function(e){return e.nodeLineWidth})).style("stroke",(function(e){return i.tinyRGB(o(e.nodeLineColor))})).style("stroke-opacity",(function(e){return i.opacity(e.nodeLineColor)})).style("fill",(function(e){return e.tinyColorHue})).style("fill-opacity",(function(e){return e.tinyColorAlpha})),N.transition().ease(r.ease).duration(r.duration).call(O);var F=z.selectAll("."+r.cn.nodeCapture).data(h);F.enter().append("rect").classed(r.cn.nodeCapture,!0).style("fill-opacity",0),F.attr("x",(function(e){return e.zoneX})).attr("y",(function(e){return e.zoneY})).attr("width",(function(e){return e.zoneWidth})).attr("height",(function(e){return e.zoneHeight}));var B=z.selectAll("."+r.cn.nodeCentered).data(h);B.enter().append("g").classed(r.cn.nodeCentered,!0).attr("transform",C),B.transition().ease(r.ease).duration(r.duration).attr("transform",C);var H=B.selectAll("."+r.cn.nodeLabelGuide).data(h);H.enter().append("path").classed(r.cn.nodeLabelGuide,!0).attr("id",(function(e){return e.uniqueNodeLabelPathId})).attr("d",A).attr("transform",P),H.transition().ease(r.ease).duration(r.duration).attr("d",A).attr("transform",P);var U=B.selectAll("."+r.cn.nodeLabel).data(h);U.enter().append("text").classed(r.cn.nodeLabel,!0).attr("transform",L).style("cursor","default").style("fill","black"),U.style("text-shadow",(function(e){return e.horizontal?"-1px 1px 1px #fff, 1px 1px 1px #fff, 1px -1px 1px #fff, -1px -1px 1px #fff":"none"})).each((function(e){l.font(U,e.textFont)})),U.transition().ease(r.ease).duration(r.duration).attr("transform",L);var W=U.selectAll("."+r.cn.nodeLabelTextPath).data(h);W.enter().append("textPath").classed(r.cn.nodeLabelTextPath,!0).attr("alignment-baseline","middle").attr("xlink:href",(function(e){return"#"+e.uniqueNodeLabelPathId})).attr("startOffset",j).style("fill",D),W.text((function(e){return e.horizontal||e.node.dy>5?e.node.label:""})).attr("text-anchor",(function(e){return e.horizontal&&e.left?"end":"start"})),W.transition().ease(r.ease).duration(r.duration).attr("startOffset",j).style("fill",D)}},{"../../components/color":615,"../../components/drawing":637,"../../lib":750,"../../lib/gup":747,"../../registry":882,"./constants":1151,"@plotly/d3-sankey":56,"@plotly/d3-sankey-circular":55,d3:169,"d3-force":160,"d3-interpolate":162,tinycolor2:548}],1156:[function(e,t,n){"use strict";t.exports=function(e,t){for(var n=e.cd,r=[],a=n[0].trace,o=a._sankey.graph.nodes,i=0;i<o.length;i++){var l=o[i];if(!l.partOfGroup){var s=[(l.x0+l.x1)/2,(l.y0+l.y1)/2];"v"===a.orientation&&s.reverse(),t&&t.contains(s,!1,i,e)&&r.push({pointNumber:l.pointNumber})}}return r}},{}],1157:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){for(var n=0;n<e.length;n++)e[n].i=n;r.mergeArray(t.text,e,"tx"),r.mergeArray(t.texttemplate,e,"txt"),r.mergeArray(t.hovertext,e,"htx"),r.mergeArray(t.customdata,e,"data"),r.mergeArray(t.textposition,e,"tp"),t.textfont&&(r.mergeArrayCastPositive(t.textfont.size,e,"ts"),r.mergeArray(t.textfont.color,e,"tc"),r.mergeArray(t.textfont.family,e,"tf"));var a=t.marker;if(a){r.mergeArrayCastPositive(a.size,e,"ms"),r.mergeArrayCastPositive(a.opacity,e,"mo"),r.mergeArray(a.symbol,e,"mx"),r.mergeArray(a.color,e,"mc");var o=a.line;a.line&&(r.mergeArray(o.color,e,"mlc"),r.mergeArrayCastPositive(o.width,e,"mlw"));var i=a.gradient;i&&"none"!==i.type&&(r.mergeArray(i.type,e,"mgt"),r.mergeArray(i.color,e,"mgc"))}}},{"../../lib":750}],1158:[function(e,t,n){"use strict";var r=e("../../plots/template_attributes").texttemplateAttrs,a=e("../../plots/template_attributes").hovertemplateAttrs,o=e("../../components/colorscale/attributes"),i=e("../../plots/font_attributes"),l=e("../../components/drawing/attributes").dash,s=e("../../components/drawing"),u=e("./constants"),c=e("../../lib/extend").extendFlat;function f(e){return{valType:"any",dflt:0,editType:"calc"}}function p(e){return{valType:"any",editType:"calc"}}function d(e){return{valType:"enumerated",values:["start","middle","end"],dflt:"middle",editType:"calc"}}t.exports={x:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},x0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dx:{valType:"number",dflt:1,editType:"calc",anim:!0},y:{valType:"data_array",editType:"calc+clearAxisTypes",anim:!0},y0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes",anim:!0},dy:{valType:"number",dflt:1,editType:"calc",anim:!0},xperiod:f("x"),yperiod:f("y"),xperiod0:p("x0"),yperiod0:p("y0"),xperiodalignment:d("x"),yperiodalignment:d("y"),stackgroup:{valType:"string",dflt:"",editType:"calc"},orientation:{valType:"enumerated",values:["v","h"],editType:"calc"},groupnorm:{valType:"enumerated",values:["","fraction","percent"],dflt:"",editType:"calc"},stackgaps:{valType:"enumerated",values:["infer zero","interpolate"],dflt:"infer zero",editType:"calc"},text:{valType:"string",dflt:"",arrayOk:!0,editType:"calc"},texttemplate:r({},{}),hovertext:{valType:"string",dflt:"",arrayOk:!0,editType:"style"},mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"],editType:"calc"},hoveron:{valType:"flaglist",flags:["points","fills"],editType:"style"},hovertemplate:a({},{keys:u.eventDataKeys}),line:{color:{valType:"color",editType:"style",anim:!0},width:{valType:"number",min:0,dflt:2,editType:"style",anim:!0},shape:{valType:"enumerated",values:["linear","spline","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},smoothing:{valType:"number",min:0,max:1.3,dflt:1,editType:"plot"},dash:c({},l,{editType:"style"}),simplify:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},cliponaxis:{valType:"boolean",dflt:!0,editType:"plot"},fill:{valType:"enumerated",values:["none","tozeroy","tozerox","tonexty","tonextx","toself","tonext"],editType:"calc"},fillcolor:{valType:"color",editType:"style",anim:!0},marker:c({symbol:{valType:"enumerated",values:s.symbolList,dflt:"circle",arrayOk:!0,editType:"style"},opacity:{valType:"number",min:0,max:1,arrayOk:!0,editType:"style",anim:!0},size:{valType:"number",min:0,dflt:6,arrayOk:!0,editType:"calc",anim:!0},maxdisplayed:{valType:"number",min:0,dflt:0,editType:"plot"},sizeref:{valType:"number",dflt:1,editType:"calc"},sizemin:{valType:"number",min:0,dflt:0,editType:"calc"},sizemode:{valType:"enumerated",values:["diameter","area"],dflt:"diameter",editType:"calc"},line:c({width:{valType:"number",min:0,arrayOk:!0,editType:"style",anim:!0},editType:"calc"},o("marker.line",{anim:!0})),gradient:{type:{valType:"enumerated",values:["radial","horizontal","vertical","none"],arrayOk:!0,dflt:"none",editType:"calc"},color:{valType:"color",arrayOk:!0,editType:"calc"},editType:"calc"},editType:"calc"},o("marker",{anim:!0})),selected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},unselected:{marker:{opacity:{valType:"number",min:0,max:1,editType:"style"},color:{valType:"color",editType:"style"},size:{valType:"number",min:0,editType:"style"},editType:"style"},textfont:{color:{valType:"color",editType:"style"},editType:"style"},editType:"style"},textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"middle center",arrayOk:!0,editType:"calc"},textfont:i({editType:"calc",colorEditType:"style",arrayOk:!0}),r:{valType:"data_array",editType:"calc"},t:{valType:"data_array",editType:"calc"}}},{"../../components/colorscale/attributes":622,"../../components/drawing":637,"../../components/drawing/attributes":636,"../../lib/extend":740,"../../plots/font_attributes":827,"../../plots/template_attributes":877,"./constants":1162}],1159:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("../../plots/cartesian/axes"),i=e("../../plots/cartesian/align_period"),l=e("../../constants/numerical").BADNUM,s=e("./subtypes"),u=e("./colorscale_calc"),c=e("./arrays_to_calcdata"),f=e("./calc_selection");function p(e,t){var n,s,p,m,g,b,x=e._fullLayout,_=o.getFromId(e,t.xaxis||"x"),w=o.getFromId(e,t.yaxis||"y"),k=_.makeCalcdata(t,"x"),T=w.makeCalcdata(t,"y"),E=i(t,_,"x",k),O=i(t,w,"y",T),M=t._length,S=new Array(M),C=t.ids,A=y(t,x,_,w),P=!1;v(x,t);var L,D="x",j="y";if(A)a.pushUnique(A.traceIndices,t._expandedIndex),n="v"===A.orientation,n?(j="s",L="x"):(D="s",L="y"),g="interpolate"===A.stackgaps;else{var I=h(t,M);d(e,t,_,w,E,O,I)}var R=!!t.xperiodalignment,z=!!t.yperiodalignment;for(s=0;s<M;s++){var N=S[s]={},F=r(E[s]),B=r(O[s]);F&&B?(N[D]=E[s],N[j]=O[s],R&&(N.orig_x=k[s]),z&&(N.orig_y=T[s])):A&&(n?F:B)?(N[L]=n?E[s]:O[s],N.gap=!0,g?(N.s=l,P=!0):N.s=0):N[D]=N[j]=l,C&&(N.id=String(C[s]))}if(c(S,t),u(e,t),f(S,t),A){s=0;while(s<S.length)S[s][L]===l?S.splice(s,1):s++;if(a.sort(S,(function(e,t){return e[L]-t[L]||e.i-t.i})),P){s=0;while(s<S.length-1&&S[s].gap)s++;for(b=S[s].s,b||(b=S[s].s=0),p=0;p<s;p++)S[p].s=b;m=S.length-1;while(m>s&&S[m].gap)m--;for(b=S[m].s,p=S.length-1;p>m;p--)S[p].s=b;while(s<m)if(s++,S[s].gap){p=s+1;while(S[p].gap)p++;var V=S[s-1][L],H=S[s-1].s,U=(S[p].s-H)/(S[p][L]-V);while(s<p)S[s].s=H+(S[s][L]-V)*U,s++}}}return S}function d(e,t,n,r,a,i,l){var u=t._length,c=e._fullLayout,f=n._id,p=r._id,d=c._firstScatter[m(t)]===t.uid,h=(y(t,c,n,r)||{}).orientation,v=t.fill;n._minDtick=0,r._minDtick=0;var g={padded:!0},b={padded:!0};l&&(g.ppad=b.ppad=l);var x=u<2||a[0]!==a[u-1]||i[0]!==i[u-1];x&&("tozerox"===v||"tonextx"===v&&(d||"h"===h))?g.tozero=!0:(t.error_y||{}).visible||"tonexty"!==v&&"tozeroy"!==v&&(s.hasMarkers(t)||s.hasText(t))||(g.padded=!1,g.ppad=0),x&&("tozeroy"===v||"tonexty"===v&&(d||"v"===h))?b.tozero=!0:"tonextx"!==v&&"tozerox"!==v||(b.padded=!1),f&&(t._extremes[f]=o.findExtremes(n,a,g)),p&&(t._extremes[p]=o.findExtremes(r,i,b))}function h(e,t){if(s.hasMarkers(e)){var n,r=e.marker,i=1.6*(e.marker.sizeref||1);if(n="area"===e.marker.sizemode?function(e){return Math.max(Math.sqrt((e||0)/i),3)}:function(e){return Math.max((e||0)/i,3)},a.isArrayOrTypedArray(r.size)){var l={type:"linear"};o.setConvert(l);for(var u=l.makeCalcdata(e.marker,"size"),c=new Array(t),f=0;f<t;f++)c[f]=n(u[f]);return c}return n(r.size)}}function v(e,t){var n=m(t),r=e._firstScatter;r[n]||(r[n]=t.uid)}function m(e){var t=e.stackgroup;return e.xaxis+e.yaxis+e.type+(t?"-"+t:"")}function y(e,t,n,r){var a=e.stackgroup;if(a){var o=t._scatterStackOpts[n._id+r._id][a],i="v"===o.orientation?r:n;return"linear"===i.type||"log"===i.type?o:void 0}}t.exports={calc:p,calcMarkerSize:h,calcAxisExpansion:d,setFirstScatter:v,getStackOpts:y}},{"../../constants/numerical":725,"../../lib":750,"../../plots/cartesian/align_period":796,"../../plots/cartesian/axes":799,"./arrays_to_calcdata":1157,"./calc_selection":1160,"./colorscale_calc":1161,"./subtypes":1183,"fast-isnumeric":241}],1160:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){r.isArrayOrTypedArray(t.selectedpoints)&&r.tagSelected(e,t)}},{"../../lib":750}],1161:[function(e,t,n){"use strict";var r=e("../../components/colorscale/helpers").hasColorscale,a=e("../../components/colorscale/calc"),o=e("./subtypes");t.exports=function(e,t){o.hasLines(t)&&r(t,"line")&&a(e,t,{vals:t.line.color,containerStr:"line",cLetter:"c"}),o.hasMarkers(t)&&(r(t,"marker")&&a(e,t,{vals:t.marker.color,containerStr:"marker",cLetter:"c"}),r(t,"marker.line")&&a(e,t,{vals:t.marker.line.color,containerStr:"marker.line",cLetter:"c"}))}},{"../../components/colorscale/calc":623,"../../components/colorscale/helpers":626,"./subtypes":1183}],1162:[function(e,t,n){"use strict";t.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},{}],1163:[function(e,t,n){"use strict";var r=e("./calc");function a(e,t,n,r,a,i,l){a[r]=!0;var s={i:null,gap:!0,s:0};if(s[l]=n,e.splice(t,0,s),t&&n===e[t-1][l]){var u=e[t-1];s.s=u.s,s.i=u.i,s.gap=u.gap}else i&&(s.s=o(e,t,n,l));t||(e[0].t=e[1].t,e[0].trace=e[1].trace,delete e[1].t,delete e[1].trace)}function o(e,t,n,r){var a=e[t-1],o=e[t+1];return o?a?a.s+(o.s-a.s)*(n-a[r])/(o[r]-a[r]):o.s:a.s}t.exports=function(e,t){var n=t.xaxis,o=t.yaxis,i=n._id+o._id,l=e._fullLayout._scatterStackOpts[i];if(l){var s,u,c,f,p,d,h,v,m,y,g,b,x,_,w,k=e.calcdata;for(var T in l){y=l[T];var E=y.traceIndices;if(E.length){for(g="interpolate"===y.stackgaps,b=y.groupnorm,"v"===y.orientation?(x="x",_="y"):(x="y",_="x"),w=new Array(E.length),s=0;s<w.length;s++)w[s]=!1;d=k[E[0]];var O=new Array(d.length);for(s=0;s<d.length;s++)O[s]=d[s][x];for(s=1;s<E.length;s++){for(p=k[E[s]],u=c=0;u<p.length;u++){for(h=p[u][x];h>O[c]&&c<O.length;c++)a(p,u,O[c],s,w,g,x),u++;if(h!==O[c]){for(f=0;f<s;f++)a(k[E[f]],c,h,f,w,g,x);O.splice(c,0,h)}c++}for(;c<O.length;c++)a(p,u,O[c],s,w,g,x),u++}var M=O.length;for(u=0;u<d.length;u++){for(v=d[u][_]=d[u].s,s=1;s<E.length;s++)p=k[E[s]],p[0].trace._rawLength=p[0].trace._length,p[0].trace._length=M,v+=p[u].s,p[u][_]=v;if(b)for(m=("fraction"===b?v:v/100)||1,s=0;s<E.length;s++){var S=k[E[s]][u];S[_]/=m,S.sNorm=S.s/m}}for(s=0;s<E.length;s++){p=k[E[s]];var C=p[0].trace,A=r.calcMarkerSize(C,C._rawLength),P=Array.isArray(A);if(A&&w[s]||P){var L=A;for(A=new Array(M),u=0;u<M;u++)A[u]=p[u].gap?0:P?L[p[u].i]:L}var D=new Array(M),j=new Array(M);for(u=0;u<M;u++)D[u]=p[u].x,j[u]=p[u].y;r.calcAxisExpansion(e,C,n,o,D,j,A),p[0].t.orientation=y.orientation}}}}}},{"./calc":1159}],1164:[function(e,t,n){"use strict";t.exports=function(e){for(var t=0;t<e.length;t++){var n=e[t];if("scatter"===n.type){var r=n.fill;if("none"!==r&&"toself"!==r&&(n.opacity=void 0,"tonexty"===r||"tonextx"===r))for(var a=t-1;a>=0;a--){var o=e[a];if("scatter"===o.type&&o.xaxis===n.xaxis&&o.yaxis===n.yaxis){o.opacity=void 0;break}}}}}},{}],1165:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry"),o=e("./attributes"),i=e("./constants"),l=e("./subtypes"),s=e("./xy_defaults"),u=e("./period_defaults"),c=e("./stack_defaults"),f=e("./marker_defaults"),p=e("./line_defaults"),d=e("./line_shape_defaults"),h=e("./text_defaults"),v=e("./fillcolor_defaults");t.exports=function(e,t,n,m){function y(n,a){return r.coerce(e,t,o,n,a)}var g=s(e,t,m,y);if(g||(t.visible=!1),t.visible){u(e,t,m,y);var b=c(e,t,m,y),x=!b&&g<i.PTS_LINESONLY?"lines+markers":"lines";y("text"),y("hovertext"),y("mode",x),l.hasLines(t)&&(p(e,t,n,m,y),d(e,t,y),y("connectgaps"),y("line.simplify")),l.hasMarkers(t)&&f(e,t,n,m,y,{gradient:!0}),l.hasText(t)&&(y("texttemplate"),h(e,t,m,y));var _=[];(l.hasMarkers(t)||l.hasText(t))&&(y("cliponaxis"),y("marker.maxdisplayed"),_.push("points")),y("fill",b?b.fillDflt:"none"),"none"!==t.fill&&(v(e,t,n,y),l.hasLines(t)||d(e,t,y));var w=(t.line||{}).color,k=(t.marker||{}).color;"tonext"!==t.fill&&"toself"!==t.fill||_.push("fills"),y("hoveron",_.join("+")||"points"),"fills"!==t.hoveron&&y("hovertemplate");var T=a.getComponentMethod("errorbars","supplyDefaults");T(e,t,w||k||n,{axis:"y"}),T(e,t,w||k||n,{axis:"x",inherit:"y"}),r.coerceSelectionMarkerOpacity(t,y)}}},{"../../lib":750,"../../registry":882,"./attributes":1158,"./constants":1162,"./fillcolor_defaults":1166,"./line_defaults":1171,"./line_shape_defaults":1173,"./marker_defaults":1177,"./period_defaults":1178,"./stack_defaults":1181,"./subtypes":1183,"./text_defaults":1184,"./xy_defaults":1185}],1166:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("../../lib").isArrayOrTypedArray;t.exports=function(e,t,n,o){var i=!1;if(t.marker){var l=t.marker.color,s=(t.marker.line||{}).color;l&&!a(l)?i=l:s&&!a(s)&&(i=s)}o("fillcolor",r.addOpacity((t.line||{}).color||i||n,.5))}},{"../../components/color":615,"../../lib":750}],1167:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes");t.exports=function(e,t,n){var a={},o={_fullLayout:n},i=r.getFromTrace(o,t,"x"),l=r.getFromTrace(o,t,"y");return a.xLabel=r.tickText(i,e.x,!0).text,a.yLabel=r.tickText(l,e.y,!0).text,a}},{"../../plots/cartesian/axes":799}],1168:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("./subtypes");t.exports=function(e,t){var n,o;if("lines"===e.mode)return n=e.line.color,n&&r.opacity(n)?n:e.fillcolor;if("none"===e.mode)return e.fill?e.fillcolor:"";var i=t.mcc||(e.marker||{}).color,l=t.mlcc||((e.marker||{}).line||{}).color;return o=i&&r.opacity(i)?i:l&&r.opacity(l)&&(t.mlw||((e.marker||{}).line||{}).width)?l:"",o?r.opacity(o)<.3?r.addOpacity(o,.3):o:(n=(e.line||{}).color,n&&r.opacity(n)&&a.hasLines(e)&&e.line.width?n:e.fillcolor)}},{"../../components/color":615,"./subtypes":1183}],1169:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/fx"),o=e("../../registry"),i=e("./get_trace_color"),l=e("../../components/color"),s=r.fillText;t.exports=function(e,t,n,u){var c=e.cd,f=c[0].trace,p=e.xa,d=e.ya,h=p.c2p(t),v=d.c2p(n),m=[h,v],y=f.hoveron||"",g=-1!==f.mode.indexOf("markers")?3:.5;if(-1!==y.indexOf("points")){var b=function(e){var t=Math.max(3,e.mrc||0),n=1-1/t,r=Math.abs(p.c2p(e.x)-h),a=r<t?n*r/t:r-t+n;return a},x=function(e){var t=Math.max(3,e.mrc||0),n=1-1/t,r=Math.abs(d.c2p(e.y)-v);return r<t?n*r/t:r-t+n},_=function(e){var t=Math.max(g,e.mrc||0),n=p.c2p(e.x)-h,r=d.c2p(e.y)-v;return Math.max(Math.sqrt(n*n+r*r)-t,1-g/t)},w=a.getDistanceFunction(u,b,x,_);if(a.getClosest(c,w,e),!1!==e.index){var k=c[e.index],T=p.c2p(k.x,!0),E=d.c2p(k.y,!0),O=k.mrc||1;e.index=k.i;var M=c[0].t.orientation,S=M&&(k.sNorm||k.s),C="h"===M?S:void 0!==k.orig_x?k.orig_x:k.x,A="v"===M?S:void 0!==k.orig_y?k.orig_y:k.y;return r.extendFlat(e,{color:i(f,k),x0:T-O,x1:T+O,xLabelVal:C,y0:E-O,y1:E+O,yLabelVal:A,spikeDistance:_(k),hovertemplate:f.hovertemplate}),s(k,f,e),o.getComponentMethod("errorbars","hoverInfo")(k,f,e),[e]}}if(-1!==y.indexOf("fills")&&f._polygons){var P,L,D,j,I,R,z,N,F,B=f._polygons,V=[],H=!1,U=1/0,W=-1/0,q=1/0,$=-1/0;for(P=0;P<B.length;P++)D=B[P],D.contains(m)&&(H=!H,V.push(D),q=Math.min(q,D.ymin),$=Math.max($,D.ymax));if(H){q=Math.max(q,0),$=Math.min($,d._length);var G=(q+$)/2;for(P=0;P<V.length;P++)for(j=V[P].pts,L=1;L<j.length;L++)N=j[L-1][1],F=j[L][1],N>G!==F>=G&&(R=j[L-1][0],z=j[L][0],F-N&&(I=R+(z-R)*(G-N)/(F-N),U=Math.min(U,I),W=Math.max(W,I)));U=Math.max(U,0),W=Math.min(W,p._length);var Y=l.defaultLine;return l.opacity(f.fillcolor)?Y=f.fillcolor:l.opacity((f.line||{}).color)&&(Y=f.line.color),r.extendFlat(e,{distance:e.maxHoverDistance,x0:U,x1:W,y0:G,y1:G,color:Y,hovertemplate:!1}),delete e.index,f.text&&!Array.isArray(f.text)?e.text=String(f.text):e.text=f.name,[e]}}}},{"../../components/color":615,"../../components/fx":655,"../../lib":750,"../../registry":882,"./get_trace_color":1168}],1170:[function(e,t,n){"use strict";var r=e("./subtypes");t.exports={hasLines:r.hasLines,hasMarkers:r.hasMarkers,hasText:r.hasText,isBubble:r.isBubble,attributes:e("./attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("./cross_trace_defaults"),calc:e("./calc").calc,crossTraceCalc:e("./cross_trace_calc"),arraysToCalcdata:e("./arrays_to_calcdata"),plot:e("./plot"),colorbar:e("./marker_colorbar"),formatLabels:e("./format_labels"),style:e("./style").style,styleOnSelect:e("./style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("./select"),animatable:!0,moduleType:"trace",name:"scatter",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","symbols","errorBarsOK","showLegend","scatter-like","zoomScale"],meta:{}}},{"../../plots/cartesian":812,"./arrays_to_calcdata":1157,"./attributes":1158,"./calc":1159,"./cross_trace_calc":1163,"./cross_trace_defaults":1164,"./defaults":1165,"./format_labels":1167,"./hover":1169,"./marker_colorbar":1176,"./plot":1179,"./select":1180,"./style":1182,"./subtypes":1183}],1171:[function(e,t,n){"use strict";var r=e("../../lib").isArrayOrTypedArray,a=e("../../components/colorscale/helpers").hasColorscale,o=e("../../components/colorscale/defaults");t.exports=function(e,t,n,i,l,s){var u=(e.marker||{}).color;if(l("line.color",n),a(e,"line"))o(e,t,i,l,{prefix:"line.",cLetter:"c"});else{var c=!r(u)&&u||n;l("line.color",c)}l("line.width"),(s||{}).noDash||l("line.dash")}},{"../../components/colorscale/defaults":625,"../../components/colorscale/helpers":626,"../../lib":750}],1172:[function(e,t,n){"use strict";var r=e("../../constants/numerical"),a=r.BADNUM,o=r.LOG_CLIP,i=o+.5,l=o-.5,s=e("../../lib"),u=s.segmentsIntersect,c=s.constrain,f=e("./constants");t.exports=function(e,t){var n,r,o,p,d,h,v,m,y,g,b,x,_,w,k,T,E,O,M=t.xaxis,S=t.yaxis,C="log"===M.type,A="log"===S.type,P=M._length,L=S._length,D=t.connectGaps,j=t.baseTolerance,I=t.shape,R="linear"===I,z=t.fill&&"none"!==t.fill,N=[],F=f.minTolerance,B=e.length,V=new Array(B),H=0;function U(n){var r=e[n];if(!r)return!1;var o=t.linearized?M.l2p(r.x):M.c2p(r.x),s=t.linearized?S.l2p(r.y):S.c2p(r.y);if(o===a){if(C&&(o=M.c2p(r.x,!0)),o===a)return!1;A&&s===a&&(o*=Math.abs(M._m*L*(M._m>0?i:l)/(S._m*P*(S._m>0?i:l)))),o*=1e3}if(s===a){if(A&&(s=S.c2p(r.y,!0)),s===a)return!1;s*=1e3}return[o,s]}function W(e,t,n,r){var a=n-e,o=r-t,i=.5-e,l=.5-t,s=a*a+o*o,u=a*i+o*l;if(u>0&&u<s){var c=i*o-l*a;if(c*c<s)return!0}}function q(e,t){var n=e[0]/P,r=e[1]/L,a=Math.max(0,-n,n-1,-r,r-1);return a&&void 0!==E&&W(n,r,E,O)&&(a=0),a&&t&&W(n,r,t[0]/P,t[1]/L)&&(a=0),(1+f.toleranceGrowth*a)*j}function $(e,t){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)}var G,Y,K,X,Z,J,Q,ee=f.maxScreensAway,te=-P*ee,ne=P*(1+ee),re=-L*ee,ae=L*(1+ee),oe=[[te,re,ne,re],[ne,re,ne,ae],[ne,ae,te,ae],[te,ae,te,re]];function ie(e,t){for(var n=[],r=0,a=0;a<4;a++){var o=oe[a],i=u(e[0],e[1],t[0],t[1],o[0],o[1],o[2],o[3]);i&&(!r||Math.abs(i.x-n[0][0])>1||Math.abs(i.y-n[0][1])>1)&&(i=[i.x,i.y],r&&$(i,e)<$(n[0],e)?n.unshift(i):n.push(i),r++)}return n}function le(e){if(e[0]<te||e[0]>ne||e[1]<re||e[1]>ae)return[c(e[0],te,ne),c(e[1],re,ae)]}function se(e,t){return e[0]===t[0]&&(e[0]===te||e[0]===ne)||(e[1]===t[1]&&(e[1]===re||e[1]===ae)||void 0)}function ue(e,t){var n=[],r=le(e),a=le(t);return r&&a&&se(r,a)||(r&&n.push(r),a&&n.push(a)),n}function ce(e,t,n){return function(r,a){var o=le(r),i=le(a),l=[];if(o&&i&&se(o,i))return l;o&&l.push(o),i&&l.push(i);var u,c=2*s.constrain((r[e]+a[e])/2,t,n)-((o||r)[e]+(i||a)[e]);c&&(u=o&&i?c>0===o[e]>i[e]?o:i:o||i,u[e]+=c);return l}}function fe(e,t){var n=t[0]-e[0],r=(t[1]-e[1])/n,a=(e[1]*t[0]-t[1]*e[0])/n;return a>0?[r>0?te:ne,ae]:[r>0?ne:te,re]}function pe(e){var t=e[0],n=e[1],r=t===V[H-1][0],a=n===V[H-1][1];if(!r||!a)if(H>1){var o=t===V[H-2][0],i=n===V[H-2][1];r&&(t===te||t===ne)&&o?i?H--:V[H-1]=e:a&&(n===re||n===ae)&&i?o?H--:V[H-1]=e:V[H++]=e}else V[H++]=e}function de(e){V[H-1][0]!==e[0]&&V[H-1][1]!==e[1]&&pe([K,X]),pe(e),Z=null,K=X=0}function he(e){if(E=e[0]/P,O=e[1]/L,G=e[0]<te?te:e[0]>ne?ne:0,Y=e[1]<re?re:e[1]>ae?ae:0,G||Y){if(H)if(Z){var t=Q(Z,e);t.length>1&&(de(t[0]),V[H++]=t[1])}else J=Q(V[H-1],e)[0],V[H++]=J;else V[H++]=[G||e[0],Y||e[1]];var n=V[H-1];G&&Y&&(n[0]!==G||n[1]!==Y)?(Z&&(K!==G&&X!==Y?pe(K&&X?fe(Z,e):[K||G,X||Y]):K&&X&&pe([K,X])),pe([G,Y])):K-G&&X-Y&&pe([G||K,Y||X]),Z=e,K=G,X=Y}else Z&&de(Q(Z,e)[0]),V[H++]=e}for("linear"===I||"spline"===I?Q=ie:"hv"===I||"vh"===I?Q=ue:"hvh"===I?Q=ce(0,te,ne):"vhv"===I&&(Q=ce(1,re,ae)),n=0;n<B;n++)if(r=U(n),r){for(H=0,Z=null,he(r),n++;n<B;n++){if(p=U(n),!p){if(D)continue;break}if(R&&t.simplify){var ve=U(n+1);if(g=$(p,r),z&&(0===H||H===B-1)||!(g<q(p,ve)*F)){for(m=[(p[0]-r[0])/g,(p[1]-r[1])/g],d=r,b=g,x=w=k=0,v=!1,o=p,n++;n<e.length;n++){if(h=ve,ve=U(n+1),!h){if(D)continue;break}if(y=[h[0]-r[0],h[1]-r[1]],T=y[0]*m[1]-y[1]*m[0],w=Math.min(w,T),k=Math.max(k,T),k-w>q(h,ve))break;o=h,_=y[0]*m[0]+y[1]*m[1],_>b?(b=_,p=h,v=!1):_<x&&(x=_,d=h,v=!0)}if(v?(he(p),o!==d&&he(d)):(d!==r&&he(d),o!==p&&he(p)),he(o),n>=e.length||!h)break;he(h),r=h}}else he(p)}Z&&pe([K||Z[0],X||Z[1]]),N.push(V.slice(0,H))}return N}},{"../../constants/numerical":725,"../../lib":750,"./constants":1162}],1173:[function(e,t,n){"use strict";t.exports=function(e,t,n){var r=n("line.shape");"spline"===r&&n("line.smoothing")}},{}],1174:[function(e,t,n){"use strict";var r={tonextx:1,tonexty:1,tonext:1};t.exports=function(e,t,n){var a,o,i,l,s,u={},c=!1,f=-1,p=0,d=-1;for(o=0;o<n.length;o++)a=n[o][0].trace,i=a.stackgroup||"",i?i in u?s=u[i]:(s=u[i]=p,p++):a.fill in r&&d>=0?s=d:(s=d=p,p++),s<f&&(c=!0),a._groupIndex=f=s;var h=n.slice();c&&h.sort((function(e,t){var n=e[0].trace,r=t[0].trace;return n._groupIndex-r._groupIndex||n.index-r.index}));var v={};for(o=0;o<h.length;o++)a=h[o][0].trace,i=a.stackgroup||"",!0===a.visible?(a._nexttrace=null,a.fill in r&&(l=v[i],a._prevtrace=l||null,l&&(l._nexttrace=a)),a._ownfill=a.fill&&("tozero"===a.fill.substr(0,6)||"toself"===a.fill||"to"===a.fill.substr(0,2)&&!a._prevtrace),v[i]=a):a._prevtrace=a._nexttrace=a._ownfill=null;return h}},{}],1175:[function(e,t,n){"use strict";var r=e("fast-isnumeric");t.exports=function(e){var t=e.marker,n=t.sizeref||1,a=t.sizemin||0,o="area"===t.sizemode?function(e){return Math.sqrt(e/n)}:function(e){return e/n};return function(e){var t=o(e/2);return r(t)&&t>0?Math.max(t,a):0}}},{"fast-isnumeric":241}],1176:[function(e,t,n){"use strict";t.exports={container:"marker",min:"cmin",max:"cmax"}},{}],1177:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("../../components/colorscale/helpers").hasColorscale,o=e("../../components/colorscale/defaults"),i=e("./subtypes");t.exports=function(e,t,n,l,s,u){var c,f=i.isBubble(e),p=(e.line||{}).color;if(u=u||{},p&&(n=p),s("marker.symbol"),s("marker.opacity",f?.7:1),s("marker.size"),s("marker.color",n),a(e,"marker")&&o(e,t,l,s,{prefix:"marker.",cLetter:"c"}),u.noSelect||(s("selected.marker.color"),s("unselected.marker.color"),s("selected.marker.size"),s("unselected.marker.size")),u.noLine||(c=p&&!Array.isArray(p)&&t.marker.color!==p?p:f?r.background:r.defaultLine,s("marker.line.color",c),a(e,"marker.line")&&o(e,t,l,s,{prefix:"marker.line.",cLetter:"c"}),s("marker.line.width",f?1:0)),f&&(s("marker.sizeref"),s("marker.sizemin"),s("marker.sizemode")),u.gradient){var d=s("marker.gradient.type");"none"!==d&&s("marker.gradient.color")}}},{"../../components/color":615,"../../components/colorscale/defaults":625,"../../components/colorscale/helpers":626,"./subtypes":1183}],1178:[function(e,t,n){"use strict";var r=e("../../lib").dateTick0,a=e("../../constants/numerical"),o=a.ONEWEEK;function i(e,t){return r(t,e%o===0?1:0)}t.exports=function(e,t,n,r,a){if(a||(a={x:!0,y:!0}),a.x){var o=r("xperiod");o&&(r("xperiod0",i(o,t.xcalendar)),r("xperiodalignment"))}if(a.y){var l=r("yperiod");l&&(r("yperiod0",i(l,t.ycalendar)),r("yperiodalignment"))}}},{"../../constants/numerical":725,"../../lib":750}],1179:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),o=e("../../lib"),i=o.ensureSingle,l=o.identity,s=e("../../components/drawing"),u=e("./subtypes"),c=e("./line_points"),f=e("./link_traces"),p=e("../../lib/polygon").tester;function d(e,t,n){t.each((function(t){var a=i(r.select(this),"g","fills");s.setClipUrl(a,n.layerClipId,e);var o=t[0].trace,u=[];o._ownfill&&u.push("_ownFill"),o._nexttrace&&u.push("_nextFill");var c=a.selectAll("g").data(u,l);c.enter().append("g"),c.exit().each((function(e){o[e]=null})).remove(),c.order().each((function(e){o[e]=i(r.select(this),"path","js-fill")}))}))}function h(e,t,n,f,d,h,m){var y;v(e,t,n,f,d);var g=!!m&&m.duration>0;function b(e){return g?e.transition():e}var x=n.xaxis,_=n.yaxis,w=f[0].trace,k=w.line,T=r.select(h),E=i(T,"g","errorbars"),O=i(T,"g","lines"),M=i(T,"g","points"),S=i(T,"g","text");if(a.getComponentMethod("errorbars","plot")(e,E,n,m),!0===w.visible){var C,A;b(T).style("opacity",w.opacity);var P=w.fill.charAt(w.fill.length-1);"x"!==P&&"y"!==P&&(P=""),f[0][n.isRangePlot?"nodeRangePlot3":"node3"]=T;var L,D,j="",I=[],R=w._prevtrace;R&&(j=R._prevRevpath||"",A=R._nextFill,I=R._polygons);var z,N,F,B,V,H,U,W="",q="",$=[],G=o.noop;if(C=w._ownFill,u.hasLines(w)||"none"!==w.fill){for(A&&A.datum(f),-1!==["hv","vh","hvh","vhv"].indexOf(k.shape)?(z=s.steps(k.shape),N=s.steps(k.shape.split("").reverse().join(""))):z=N="spline"===k.shape?function(e){var t=e[e.length-1];return e.length>1&&e[0][0]===t[0]&&e[0][1]===t[1]?s.smoothclosed(e.slice(1),k.smoothing):s.smoothopen(e,k.smoothing)}:function(e){return"M"+e.join("L")},F=function(e){return N(e.reverse())},$=c(f,{xaxis:x,yaxis:_,connectGaps:w.connectgaps,baseTolerance:Math.max(k.width||1,3)/4,shape:k.shape,simplify:k.simplify,fill:w.fill}),U=w._polygons=new Array($.length),y=0;y<$.length;y++)w._polygons[y]=p($[y]);$.length&&(B=$[0][0],V=$[$.length-1],H=V[V.length-1]),G=function(e){return function(t){if(L=z(t),D=F(t),W?P?(W+="L"+L.substr(1),q=D+"L"+q.substr(1)):(W+="Z"+L,q=D+"Z"+q):(W=L,q=D),u.hasLines(w)&&t.length>1){var n=r.select(this);if(n.datum(f),e)b(n.style("opacity",0).attr("d",L).call(s.lineGroupStyle)).style("opacity",1);else{var a=b(n);a.attr("d",L),s.singleLineStyle(f,a)}}}}}var Y=O.selectAll(".js-line").data($);b(Y.exit()).style("opacity",0).remove(),Y.each(G(!1)),Y.enter().append("path").classed("js-line",!0).style("vector-effect","non-scaling-stroke").call(s.lineGroupStyle).each(G(!0)),s.setClipUrl(Y,n.layerClipId,e),$.length?(C?(C.datum(f),B&&H&&(P?("y"===P?B[1]=H[1]=_.c2p(0,!0):"x"===P&&(B[0]=H[0]=x.c2p(0,!0)),b(C).attr("d","M"+H+"L"+B+"L"+W.substr(1)).call(s.singleFillStyle)):b(C).attr("d",W+"Z").call(s.singleFillStyle))):A&&("tonext"===w.fill.substr(0,6)&&W&&j?("tonext"===w.fill?b(A).attr("d",W+"Z"+j+"Z").call(s.singleFillStyle):b(A).attr("d",W+"L"+j.substr(1)+"Z").call(s.singleFillStyle),w._polygons=w._polygons.concat(I)):(Z(A),w._polygons=null)),w._prevRevpath=q,w._prevPolygons=U):(C?Z(C):A&&Z(A),w._polygons=w._prevRevpath=w._prevPolygons=null),M.datum(f),S.datum(f),ae(M,S,f);var K=!1===w.cliponaxis,X=K?null:n.layerClipId;s.setClipUrl(M,X,e),s.setClipUrl(S,X,e)}function Z(e){b(e).attr("d","M0,0Z")}function J(e){return e.filter((function(e){return!e.gap&&e.vis}))}function Q(e){return e.filter((function(e){return e.vis}))}function ee(e){return e.filter((function(e){return!e.gap}))}function te(e){return e.id}function ne(e){if(e.ids)return te}function re(){return!1}function ae(t,a,o){var i,c,f,p=o[0].trace,d=u.hasMarkers(p),h=u.hasText(p),v=ne(p),m=re,y=re;if(d||h){var w=l,k=p.stackgroup,T=k&&"infer zero"===e._fullLayout._scatterStackOpts[x._id+_._id][k].stackgaps;p.marker.maxdisplayed||p._needsCull?w=T?Q:J:k&&!T&&(w=ee),d&&(m=w),h&&(y=w)}c=t.selectAll("path.point"),i=c.data(m,v);var E,O=i.enter().append("path").classed("point",!0);g&&O.call(s.pointStyle,p,e).call(s.translatePoints,x,_).style("opacity",0).transition().style("opacity",1),i.order(),d&&(E=s.makePointStyleFns(p)),i.each((function(t){var a=r.select(this),o=b(a);f=s.translatePoint(t,o,x,_),f?(s.singlePointStyle(t,o,p,E,e),n.layerClipId&&s.hideOutsideRangePoint(t,o,x,_,p.xcalendar,p.ycalendar),p.customdata&&a.classed("plotly-customdata",null!==t.data&&void 0!==t.data)):o.remove()})),g?i.exit().transition().style("opacity",0).remove():i.exit().remove(),c=a.selectAll("g"),i=c.data(y,v),i.enter().append("g").classed("textpoint",!0).append("text"),i.order(),i.each((function(e){var t=r.select(this),a=b(t.select("text"));f=s.translatePoint(e,a,x,_),f?n.layerClipId&&s.hideOutsideRangePoint(e,t,x,_,p.xcalendar,p.ycalendar):t.remove()})),i.selectAll("text").call(s.textPointStyle,p,e).each((function(e){var t=x.c2p(e.x),n=_.c2p(e.y);r.select(this).selectAll("tspan.line").each((function(){b(r.select(this)).attr({x:t,y:n})}))})),i.exit().remove()}}function v(e,t,n,a,i){var l=n.xaxis,s=n.yaxis,c=r.extent(o.simpleMap(l.range,l.r2c)),f=r.extent(o.simpleMap(s.range,s.r2c)),p=a[0].trace;if(u.hasMarkers(p)){var d=p.marker.maxdisplayed;if(0!==d){var h=a.filter((function(e){return e.x>=c[0]&&e.x<=c[1]&&e.y>=f[0]&&e.y<=f[1]})),v=Math.ceil(h.length/d),m=0;i.forEach((function(e,n){var r=e[0].trace;u.hasMarkers(r)&&r.marker.maxdisplayed>0&&n<t&&m++}));var y=Math.round(m*v/3+Math.floor(m/3)*v/7.1);a.forEach((function(e){delete e.vis})),h.forEach((function(e,t){0===Math.round((t+y)%v)&&(e.vis=!0)}))}}}t.exports=function(e,t,n,a,o,i){var l,s,u=!o,c=!!o&&o.duration>0,p=f(e,t,n);if(l=a.selectAll("g.trace").data(p,(function(e){return e[0].trace.uid})),l.enter().append("g").attr("class",(function(e){return"trace scatter trace"+e[0].trace.uid})).style("stroke-miterlimit",2),l.order(),d(e,l,t),c){i&&(s=i());var v=r.transition().duration(o.duration).ease(o.easing).each("end",(function(){s&&s()})).each("interrupt",(function(){s&&s()}));v.each((function(){a.selectAll("g.trace").each((function(n,r){h(e,r,t,n,p,this,o)}))}))}else l.each((function(n,r){h(e,r,t,n,p,this,o)}));u&&l.exit().remove(),a.selectAll("path:not([d])").remove()}},{"../../components/drawing":637,"../../lib":750,"../../lib/polygon":762,"../../registry":882,"./line_points":1172,"./link_traces":1174,"./subtypes":1183,d3:169}],1180:[function(e,t,n){"use strict";var r=e("./subtypes");t.exports=function(e,t){var n,a,o,i,l=e.cd,s=e.xaxis,u=e.yaxis,c=[],f=l[0].trace,p=!r.hasMarkers(f)&&!r.hasText(f);if(p)return[];if(!1===t)for(n=0;n<l.length;n++)l[n].selected=0;else for(n=0;n<l.length;n++)a=l[n],o=s.c2p(a.x),i=u.c2p(a.y),null!==a.i&&t.contains([o,i],!1,n,e)?(c.push({pointNumber:a.i,x:s.c2d(a.x),y:u.c2d(a.y)}),a.selected=1):a.selected=0;return c}},{"./subtypes":1183}],1181:[function(e,t,n){"use strict";var r=["orientation","groupnorm","stackgaps"];t.exports=function(e,t,n,a){var o=n._scatterStackOpts,i=a("stackgroup");if(i){var l=t.xaxis+t.yaxis,s=o[l];s||(s=o[l]={});var u=s[i],c=!1;u?u.traces.push(t):(u=s[i]={traceIndices:[],traces:[t]},c=!0);for(var f={orientation:t.x&&!t.y?"h":"v"},p=0;p<r.length;p++){var d=r[p],h=d+"Found";if(!u[h]){var v=void 0!==e[d],m="orientation"===d;if((v||c)&&(u[d]=a(d,f[d]),m&&(u.fillDflt="h"===u[d]?"tonextx":"tonexty"),v&&(u[h]=!0,!c&&(delete u.traces[0][d],m))))for(var y=0;y<u.traces.length-1;y++){var g=u.traces[y];g._input.fill!==g.fill&&(g.fill=u.fillDflt)}}}return u}}},{}],1182:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/drawing"),o=e("../../registry");function i(e){var t=r.select(e).selectAll("g.trace.scatter");t.style("opacity",(function(e){return e[0].trace.opacity})),t.selectAll("g.points").each((function(t){var n=r.select(this),a=t.trace||t[0].trace;l(n,a,e)})),t.selectAll("g.text").each((function(t){var n=r.select(this),a=t.trace||t[0].trace;s(n,a,e)})),t.selectAll("g.trace path.js-line").call(a.lineGroupStyle),t.selectAll("g.trace path.js-fill").call(a.fillGroupStyle),o.getComponentMethod("errorbars","style")(t)}function l(e,t,n){a.pointStyle(e.selectAll("path.point"),t,n)}function s(e,t,n){a.textPointStyle(e.selectAll("text"),t,n)}function u(e,t,n){var r=t[0].trace;r.selectedpoints?(a.selectedPointStyle(n.selectAll("path.point"),r),a.selectedTextStyle(n.selectAll("text"),r)):(l(n,r,e),s(n,r,e))}t.exports={style:i,stylePoints:l,styleText:s,styleOnSelect:u}},{"../../components/drawing":637,"../../registry":882,d3:169}],1183:[function(e,t,n){"use strict";var r=e("../../lib");t.exports={hasLines:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("lines")},hasMarkers:function(e){return e.visible&&(e.mode&&-1!==e.mode.indexOf("markers")||"splom"===e.type)},hasText:function(e){return e.visible&&e.mode&&-1!==e.mode.indexOf("text")},isBubble:function(e){return r.isPlainObject(e.marker)&&r.isArrayOrTypedArray(e.marker.size)}}},{"../../lib":750}],1184:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t,n,a,o){o=o||{},a("textposition"),r.coerceFont(a,"textfont",n.font),o.noSelect||(a("selected.textfont.color"),a("unselected.textfont.color"))}},{"../../lib":750}],1185:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry");t.exports=function(e,t,n,o){var i,l=o("x"),s=o("y"),u=a.getComponentMethod("calendars","handleTraceDefaults");if(u(e,t,["x","y"],n),l){var c=r.minRowLength(l);s?i=Math.min(c,r.minRowLength(s)):(i=c,o("y0"),o("dy"))}else{if(!s)return 0;i=r.minRowLength(s),o("x0"),o("dx")}return t._length=i,i}},{"../../lib":750,"../../registry":882}],1186:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),a=e("../../components/colorscale/attributes"),o=e("../../plots/template_attributes").hovertemplateAttrs,i=e("../../plots/template_attributes").texttemplateAttrs,l=e("../../plots/attributes"),s=e("../../constants/gl3d_dashes"),u=e("../../constants/gl3d_markers"),c=e("../../lib/extend").extendFlat,f=e("../../plot_api/edit_types").overrideAll,p=r.line,d=r.marker,h=d.line,v=c({width:p.width,dash:{valType:"enumerated",values:Object.keys(s),dflt:"solid"}},a("line"));function m(e){return{show:{valType:"boolean",dflt:!1},opacity:{valType:"number",min:0,max:1,dflt:1},scale:{valType:"number",min:0,max:10,dflt:2/3}}}var y=t.exports=f({x:r.x,y:r.y,z:{valType:"data_array"},text:c({},r.text,{}),texttemplate:i({},{}),hovertext:c({},r.hovertext,{}),hovertemplate:o(),mode:c({},r.mode,{dflt:"lines+markers"}),surfaceaxis:{valType:"enumerated",values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:"color"},projection:{x:m("x"),y:m("y"),z:m("z")},connectgaps:r.connectgaps,line:v,marker:c({symbol:{valType:"enumerated",values:Object.keys(u),dflt:"circle",arrayOk:!0},size:c({},d.size,{dflt:8}),sizeref:d.sizeref,sizemin:d.sizemin,sizemode:d.sizemode,opacity:c({},d.opacity,{arrayOk:!1}),colorbar:d.colorbar,line:c({width:c({},h.width,{arrayOk:!1})},a("marker.line"))},a("marker")),textposition:c({},r.textposition,{dflt:"top center"}),textfont:{color:r.textfont.color,size:r.textfont.size,family:c({},r.textfont.family,{arrayOk:!1})},hoverinfo:c({},l.hoverinfo)},"calc","nested");y.x.editType=y.y.editType=y.z.editType="calc+clearAxisTypes"},{"../../components/colorscale/attributes":622,"../../constants/gl3d_dashes":722,"../../constants/gl3d_markers":723,"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plots/attributes":795,"../../plots/template_attributes":877,"../scatter/attributes":1158}],1187:[function(e,t,n){"use strict";var r=e("../scatter/arrays_to_calcdata"),a=e("../scatter/colorscale_calc");t.exports=function(e,t){var n=[{x:!1,y:!1,trace:t,t:{}}];return r(n,t),a(e,t),n}},{"../scatter/arrays_to_calcdata":1157,"../scatter/colorscale_calc":1161}],1188:[function(e,t,n){"use strict";var r=e("../../registry");function a(e,t,n,a){if(!t||!t.visible)return null;for(var o=r.getComponentMethod("errorbars","makeComputeError")(t),i=new Array(e.length),l=0;l<e.length;l++){var s=o(+e[l],l);if("log"===a.type){var u=a.c2l(e[l]),c=e[l]-s[0],f=e[l]+s[1];if(i[l]=[(a.c2l(c,!0)-u)*n,(a.c2l(f,!0)-u)*n],c>0){var p=a.c2l(c);a._lowerLogErrorBound||(a._lowerLogErrorBound=p),a._lowerErrorBound=Math.min(a._lowerLogErrorBound,p)}}else i[l]=[-s[0]*n,s[1]*n]}return i}function o(e){for(var t=0;t<e.length;t++)if(e[t])return e[t].length;return 0}function i(e,t,n){var r=[a(e.x,e.error_x,t[0],n.xaxis),a(e.y,e.error_y,t[1],n.yaxis),a(e.z,e.error_z,t[2],n.zaxis)],i=o(r);if(0===i)return null;for(var l=new Array(i),s=0;s<i;s++){for(var u=[[0,0,0],[0,0,0]],c=0;c<3;c++)if(r[c])for(var f=0;f<2;f++)u[f][c]=r[c][s][f];l[s]=u}return l}t.exports=i},{"../../registry":882}],1189:[function(e,t,n){"use strict";var r=e("gl-line3d"),a=e("gl-scatter3d"),o=e("gl-error3d"),i=e("gl-mesh3d"),l=e("delaunay-triangulate"),s=e("../../lib"),u=e("../../lib/str2rgbarray"),c=e("../../lib/gl_format_color").formatColor,f=e("../scatter/make_bubble_size_func"),p=e("../../constants/gl3d_dashes"),d=e("../../constants/gl3d_markers"),h=e("../../plots/cartesian/axes"),v=e("../../components/fx/helpers").appendArrayPointValue,m=e("./calc_errors");function y(e,t){this.scene=e,this.uid=t,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode="",this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var g=y.prototype;function b(e,t,n){var r,a=(n+1)%3,o=(n+2)%3,i=[],s=[];for(r=0;r<e.length;++r){var u=e[r];!isNaN(u[a])&&isFinite(u[a])&&!isNaN(u[o])&&isFinite(u[o])&&(i.push([u[a],u[o]]),s.push(r))}var c=l(i);for(r=0;r<c.length;++r)for(var f=c[r],p=0;p<f.length;++p)f[p]=s[f[p]];return{positions:e,cells:c,meshColor:t}}function x(e){for(var t=[0,0,0],n=[[0,0,0],[0,0,0],[0,0,0]],r=[1,1,1],a=0;a<3;a++){var o=e[a];o&&!1!==o.copy_zstyle&&!1!==e[2].visible&&(o=e[2]),o&&o.visible&&(t[a]=o.width/2,n[a]=u(o.color),r[a]=o.thickness)}return{capSize:t,color:n,lineWidth:r}}function _(e){return null===e||void 0===e?0:e.indexOf("left")>-1?-1:e.indexOf("right")>-1?1:0}function w(e){return null===e||void 0===e?0:e.indexOf("top")>-1?-1:e.indexOf("bottom")>-1?1:0}function k(e){var t=0,n=0,r=[t,n];if(Array.isArray(e))for(var a=0;a<e.length;a++)r[a]=[t,n],e[a]&&(r[a][0]=_(e[a]),r[a][1]=w(e[a]));else r[0]=_(e),r[1]=w(e);return r}function T(e,t){return t(4*e)}function E(e){return d[e]}function O(e,t,n,r,a){var o=null;if(s.isArrayOrTypedArray(e)){o=[];for(var i=0;i<t;i++)void 0===e[i]?o[i]=r:o[i]=n(e[i],a)}else o=n(e,s.identity);return o}function M(e,t){var n,r,a,o,i,l,p=[],d=e.fullSceneLayout,y=e.dataScale,g=d.xaxis,b=d.yaxis,_=d.zaxis,w=t.marker,M=t.line,S=t.x||[],C=t.y||[],A=t.z||[],P=S.length,L=t.xcalendar,D=t.ycalendar,j=t.zcalendar;for(i=0;i<P;i++)n=g.d2l(S[i],0,L)*y[0],r=b.d2l(C[i],0,D)*y[1],a=_.d2l(A[i],0,j)*y[2],p[i]=[n,r,a];if(Array.isArray(t.text))l=t.text;else if(void 0!==t.text)for(l=new Array(P),i=0;i<P;i++)l[i]=t.text;function I(e,t){var n=d[e];return h.tickText(n,n.d2l(t),!0).text}var R=t.texttemplate;if(R){var z=e.fullLayout,N=z._d3locale,F=Array.isArray(R),B=F?Math.min(R.length,P):P,V=F?function(e){return R[e]}:function(){return R};for(l=new Array(B),i=0;i<B;i++){var H={x:S[i],y:C[i],z:A[i]},U={xLabel:I("xaxis",S[i]),yLabel:I("yaxis",C[i]),zLabel:I("zaxis",A[i])},W={};v(W,t,i);var q=t._meta||{};l[i]=s.texttemplateString(V(i),U,N,W,H,q)}}if(o={position:p,mode:t.mode,text:l},"line"in t&&(o.lineColor=c(M,1,P),o.lineWidth=M.width,o.lineDashes=M.dash),"marker"in t){var $=f(t);o.scatterColor=c(w,1,P),o.scatterSize=O(w.size,P,T,20,$),o.scatterMarker=O(w.symbol,P,E,"●"),o.scatterLineWidth=w.line.width,o.scatterLineColor=c(w.line,1,P),o.scatterAngle=0}"textposition"in t&&(o.textOffset=k(t.textposition),o.textColor=c(t.textfont,1,P),o.textSize=O(t.textfont.size,P,s.identity,12),o.textFont=t.textfont.family,o.textAngle=0);var G=["x","y","z"];for(o.project=[!1,!1,!1],o.projectScale=[1,1,1],o.projectOpacity=[1,1,1],i=0;i<3;++i){var Y=t.projection[G[i]];(o.project[i]=Y.show)&&(o.projectOpacity[i]=Y.opacity,o.projectScale[i]=Y.scale)}o.errorBounds=m(t,y,d);var K=x([t.error_x,t.error_y,t.error_z]);return o.errorColor=K.color,o.errorLineWidth=K.lineWidth,o.errorCapSize=K.capSize,o.delaunayAxis=t.surfaceaxis,o.delaunayColor=u(t.surfacecolor),o}function S(e){if(s.isArrayOrTypedArray(e)){var t=e[0];return s.isArrayOrTypedArray(t)&&(e=t),"rgb("+e.slice(0,3).map((function(e){return Math.round(255*e)}))+")"}return null}function C(e){return s.isArrayOrTypedArray(e)?4===e.length&&"number"===typeof e[0]?S(e):e.map(S):null}function A(e,t){var n=new y(e,t.uid);return n.update(t),n}g.handlePick=function(e){if(e.object&&(e.object===this.linePlot||e.object===this.delaunayMesh||e.object===this.textMarkers||e.object===this.scatterPlot)){var t=e.index=e.data.index;return e.object.highlight&&e.object.highlight(null),this.scatterPlot&&(e.object=this.scatterPlot,this.scatterPlot.highlight(e.data)),e.textLabel="",this.textLabels&&(Array.isArray(this.textLabels)?(this.textLabels[t]||0===this.textLabels[t])&&(e.textLabel=this.textLabels[t]):e.textLabel=this.textLabels),e.traceCoordinate=[this.data.x[t],this.data.y[t],this.data.z[t]],!0}},g.update=function(e){var t,n,l,s,u=this.scene.glplot.gl,c=p.solid;this.data=e;var f=M(this.scene,e);"mode"in f&&(this.mode=f.mode),"lineDashes"in f&&f.lineDashes in p&&(c=p[f.lineDashes]),this.color=C(f.scatterColor)||C(f.lineColor),this.dataPoints=f.position,t={gl:this.scene.glplot.gl,position:f.position,color:f.lineColor,lineWidth:f.lineWidth||1,dashes:c[0],dashScale:c[1],opacity:e.opacity,connectGaps:e.connectgaps},-1!==this.mode.indexOf("lines")?this.linePlot?this.linePlot.update(t):(this.linePlot=r(t),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var d=e.opacity;if(e.marker&&e.marker.opacity&&(d*=e.marker.opacity),n={gl:this.scene.glplot.gl,position:f.position,color:f.scatterColor,size:f.scatterSize,glyph:f.scatterMarker,opacity:d,orthographic:!0,lineWidth:f.scatterLineWidth,lineColor:f.scatterLineColor,project:f.project,projectScale:f.projectScale,projectOpacity:f.projectOpacity},-1!==this.mode.indexOf("markers")?this.scatterPlot?this.scatterPlot.update(n):(this.scatterPlot=a(n),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),s={gl:this.scene.glplot.gl,position:f.position,glyph:f.text,color:f.textColor,size:f.textSize,angle:f.textAngle,alignment:f.textOffset,font:f.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:e.opacity},this.textLabels=e.hovertext||e.text,-1!==this.mode.indexOf("text")?this.textMarkers?this.textMarkers.update(s):(this.textMarkers=a(s),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:this.scene.glplot.gl,position:f.position,color:f.errorColor,error:f.errorBounds,lineWidth:f.errorLineWidth,capSize:f.errorCapSize,opacity:e.opacity},this.errorBars?f.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):f.errorBounds&&(this.errorBars=o(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),f.delaunayAxis>=0){var h=b(f.position,f.delaunayColor,f.delaunayAxis);h.opacity=e.opacity,this.delaunayMesh?this.delaunayMesh.update(h):(h.gl=u,this.delaunayMesh=i(h),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},g.dispose=function(){this.linePlot&&(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&&(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&&(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&&(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&&(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},t.exports=A},{"../../components/fx/helpers":651,"../../constants/gl3d_dashes":722,"../../constants/gl3d_markers":723,"../../lib":750,"../../lib/gl_format_color":746,"../../lib/str2rgbarray":773,"../../plots/cartesian/axes":799,"../scatter/make_bubble_size_func":1175,"./calc_errors":1188,"delaunay-triangulate":171,"gl-error3d":264,"gl-line3d":271,"gl-mesh3d":292,"gl-scatter3d":308}],1190:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),o=e("../scatter/subtypes"),i=e("../scatter/marker_defaults"),l=e("../scatter/line_defaults"),s=e("../scatter/text_defaults"),u=e("./attributes");function c(e,t,n,a){var o=0,i=n("x"),l=n("y"),s=n("z"),u=r.getComponentMethod("calendars","handleTraceDefaults");return u(e,t,["x","y","z"],a),i&&l&&s&&(o=Math.min(i.length,l.length,s.length),t._length=t._xlength=t._ylength=t._zlength=o),o}t.exports=function(e,t,n,f){function p(n,r){return a.coerce(e,t,u,n,r)}var d=c(e,t,p,f);if(d){p("text"),p("hovertext"),p("hovertemplate"),p("mode"),o.hasLines(t)&&(p("connectgaps"),l(e,t,n,f,p)),o.hasMarkers(t)&&i(e,t,n,f,p,{noSelect:!0}),o.hasText(t)&&(p("texttemplate"),s(e,t,f,p,{noSelect:!0}));var h=(t.line||{}).color,v=(t.marker||{}).color;p("surfaceaxis")>=0&&p("surfacecolor",h||v);for(var m=["x","y","z"],y=0;y<3;++y){var g="projection."+m[y];p(g+".show")&&(p(g+".opacity"),p(g+".scale"))}var b=r.getComponentMethod("errorbars","supplyDefaults");b(e,t,h||v||n,{axis:"z"}),b(e,t,h||v||n,{axis:"y",inherit:"z"}),b(e,t,h||v||n,{axis:"x",inherit:"z"})}else t.visible=!1}},{"../../lib":750,"../../registry":882,"../scatter/line_defaults":1171,"../scatter/marker_defaults":1177,"../scatter/subtypes":1183,"../scatter/text_defaults":1184,"./attributes":1186}],1191:[function(e,t,n){"use strict";t.exports={plot:e("./convert"),attributes:e("./attributes"),markerSymbols:e("../../constants/gl3d_markers"),supplyDefaults:e("./defaults"),colorbar:[{container:"marker",min:"cmin",max:"cmax"},{container:"line",min:"cmin",max:"cmax"}],calc:e("./calc"),moduleType:"trace",name:"scatter3d",basePlotModule:e("../../plots/gl3d"),categories:["gl3d","symbols","showLegend","scatter-like"],meta:{}}},{"../../constants/gl3d_markers":723,"../../plots/gl3d":841,"./attributes":1186,"./calc":1187,"./convert":1189,"./defaults":1190}],1192:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),a=e("../../plots/attributes"),o=e("../../plots/template_attributes").hovertemplateAttrs,i=e("../../plots/template_attributes").texttemplateAttrs,l=e("../../components/colorscale/attributes"),s=e("../../lib/extend").extendFlat,u=r.marker,c=r.line,f=u.line;t.exports={carpet:{valType:"string",editType:"calc"},a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},mode:s({},r.mode,{dflt:"markers"}),text:s({},r.text,{}),texttemplate:i({editType:"plot"},{keys:["a","b","text"]}),hovertext:s({},r.hovertext,{}),line:{color:c.color,width:c.width,dash:c.dash,shape:s({},c.shape,{values:["linear","spline"]}),smoothing:c.smoothing,editType:"calc"},connectgaps:r.connectgaps,fill:s({},r.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:r.fillcolor,marker:s({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:s({width:f.width,editType:"calc"},l("marker.line")),gradient:u.gradient,editType:"calc"},l("marker")),textfont:r.textfont,textposition:r.textposition,selected:r.selected,unselected:r.unselected,hoverinfo:s({},a.hoverinfo,{flags:["a","b","text","name"]}),hoveron:r.hoveron,hovertemplate:o()}},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../scatter/attributes":1158}],1193:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../scatter/colorscale_calc"),o=e("../scatter/arrays_to_calcdata"),i=e("../scatter/calc_selection"),l=e("../scatter/calc").calcMarkerSize,s=e("../carpet/lookup_carpetid");t.exports=function(e,t){var n=t._carpetTrace=s(e,t);if(n&&n.visible&&"legendonly"!==n.visible){var u;t.xaxis=n.xaxis,t.yaxis=n.yaxis;var c,f,p=t._length,d=new Array(p),h=!1;for(u=0;u<p;u++)if(c=t.a[u],f=t.b[u],r(c)&&r(f)){var v=n.ab2xy(+c,+f,!0),m=n.isVisible(+c,+f);m||(h=!0),d[u]={x:v[0],y:v[1],a:c,b:f,vis:m}}else d[u]={x:!1,y:!1};return t._needsCull=h,d[0].carpet=n,d[0].trace=t,l(t,p),a(e,t),o(d,t),i(d,t),d}}},{"../carpet/lookup_carpetid":952,"../scatter/arrays_to_calcdata":1157,"../scatter/calc":1159,"../scatter/calc_selection":1160,"../scatter/colorscale_calc":1161,"fast-isnumeric":241}],1194:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../scatter/constants"),o=e("../scatter/subtypes"),i=e("../scatter/marker_defaults"),l=e("../scatter/line_defaults"),s=e("../scatter/line_shape_defaults"),u=e("../scatter/text_defaults"),c=e("../scatter/fillcolor_defaults"),f=e("./attributes");t.exports=function(e,t,n,p){function d(n,a){return r.coerce(e,t,f,n,a)}d("carpet"),t.xaxis="x",t.yaxis="y";var h=d("a"),v=d("b"),m=Math.min(h.length,v.length);if(m){t._length=m,d("text"),d("texttemplate"),d("hovertext");var y=m<a.PTS_LINESONLY?"lines+markers":"lines";d("mode",y),o.hasLines(t)&&(l(e,t,n,p,d),s(e,t,d),d("connectgaps")),o.hasMarkers(t)&&i(e,t,n,p,d,{gradient:!0}),o.hasText(t)&&u(e,t,p,d);var g=[];(o.hasMarkers(t)||o.hasText(t))&&(d("marker.maxdisplayed"),g.push("points")),d("fill"),"none"!==t.fill&&(c(e,t,n,d),o.hasLines(t)||s(e,t,d)),"tonext"!==t.fill&&"toself"!==t.fill||g.push("fills");var b=d("hoveron",g.join("+")||"points");"fills"!==b&&d("hovertemplate"),r.coerceSelectionMarkerOpacity(t,d)}else t.visible=!1}},{"../../lib":750,"../scatter/constants":1162,"../scatter/fillcolor_defaults":1166,"../scatter/line_defaults":1171,"../scatter/line_shape_defaults":1173,"../scatter/marker_defaults":1177,"../scatter/subtypes":1183,"../scatter/text_defaults":1184,"./attributes":1192}],1195:[function(e,t,n){"use strict";t.exports=function(e,t,n,r,a){var o=r[a];return e.a=o.a,e.b=o.b,e.y=o.y,e}},{}],1196:[function(e,t,n){"use strict";t.exports=function(e,t){var n={},r=t._carpet,a=r.ab2ij([e.a,e.b]),o=Math.floor(a[0]),i=a[0]-o,l=Math.floor(a[1]),s=a[1]-l,u=r.evalxy([],o,l,i,s);return n.yLabel=u[1].toFixed(3),n}},{}],1197:[function(e,t,n){"use strict";var r=e("../scatter/hover"),a=e("../../lib").fillText;t.exports=function(e,t,n,o){var i=r(e,t,n,o);if(i&&!1!==i[0].index){var l=i[0];if(void 0===l.index){var s=1-l.y0/e.ya._length,u=e.xa._length,c=u*s/2,f=u-c;return l.x0=Math.max(Math.min(l.x0,f),c),l.x1=Math.max(Math.min(l.x1,f),c),i}var p=l.cd[l.index];l.a=p.a,l.b=p.b,l.xLabelVal=void 0,l.yLabelVal=void 0;var d=l.trace,h=d._carpet,v=d._module.formatLabels(p,d);l.yLabel=v.yLabel,delete l.text;var m=[];if(!d.hovertemplate){var y=p.hi||d.hoverinfo,g=y.split("+");-1!==g.indexOf("all")&&(g=["a","b","text"]),-1!==g.indexOf("a")&&b(h.aaxis,p.a),-1!==g.indexOf("b")&&b(h.baxis,p.b),m.push("y: "+l.yLabel),-1!==g.indexOf("text")&&a(p,d,m),l.extraText=m.join("<br>")}return i}function b(e,t){var n;n=e.labelprefix&&e.labelprefix.length>0?e.labelprefix.replace(/ = $/,""):e._hovertitle,m.push(n+": "+t.toFixed(3)+e.labelsuffix)}}},{"../../lib":750,"../scatter/hover":1169}],1198:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../scatter/marker_colorbar"),formatLabels:e("./format_labels"),calc:e("./calc"),plot:e("./plot"),style:e("../scatter/style").style,styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("../scatter/select"),eventData:e("./event_data"),moduleType:"trace",name:"scattercarpet",basePlotModule:e("../../plots/cartesian"),categories:["svg","carpet","symbols","showLegend","carpetDependent","zoomScale"],meta:{}}},{"../../plots/cartesian":812,"../scatter/marker_colorbar":1176,"../scatter/select":1180,"../scatter/style":1182,"./attributes":1192,"./calc":1193,"./defaults":1194,"./event_data":1195,"./format_labels":1196,"./hover":1197,"./plot":1199}],1199:[function(e,t,n){"use strict";var r=e("../scatter/plot"),a=e("../../plots/cartesian/axes"),o=e("../../components/drawing");t.exports=function(e,t,n,i){var l,s,u,c=n[0][0].carpet,f={xaxis:a.getFromId(e,c.xaxis||"x"),yaxis:a.getFromId(e,c.yaxis||"y"),plot:t.plot};for(r(e,f,n,i),l=0;l<n.length;l++)s=n[l][0].trace,u=i.selectAll("g.trace"+s.uid+" .js-line"),o.setClipUrl(u,n[l][0].carpet._clipPathId,e)}},{"../../components/drawing":637,"../../plots/cartesian/axes":799,"../scatter/plot":1179}],1200:[function(e,t,n){"use strict";var r=e("../../plots/template_attributes").hovertemplateAttrs,a=e("../../plots/template_attributes").texttemplateAttrs,o=e("../scatter/attributes"),i=e("../../plots/attributes"),l=e("../../components/colorscale/attributes"),s=e("../../components/drawing/attributes").dash,u=e("../../lib/extend").extendFlat,c=e("../../plot_api/edit_types").overrideAll,f=o.marker,p=o.line,d=f.line;t.exports=c({lon:{valType:"data_array"},lat:{valType:"data_array"},locations:{valType:"data_array"},locationmode:{valType:"enumerated",values:["ISO-3","USA-states","country names","geojson-id"],dflt:"ISO-3"},geojson:{valType:"any",editType:"calc"},featureidkey:{valType:"string",editType:"calc",dflt:"id"},mode:u({},o.mode,{dflt:"markers"}),text:u({},o.text,{}),texttemplate:a({editType:"plot"},{keys:["lat","lon","location","text"]}),hovertext:u({},o.hovertext,{}),textfont:o.textfont,textposition:o.textposition,line:{color:p.color,width:p.width,dash:s},connectgaps:o.connectgaps,marker:u({symbol:f.symbol,opacity:f.opacity,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,colorbar:f.colorbar,line:u({width:d.width},l("marker.line")),gradient:f.gradient},l("marker")),fill:{valType:"enumerated",values:["none","toself"],dflt:"none"},fillcolor:o.fillcolor,selected:o.selected,unselected:o.unselected,hoverinfo:u({},i.hoverinfo,{flags:["lon","lat","location","text","name"]}),hovertemplate:r()},"calc","nested")},{"../../components/colorscale/attributes":622,"../../components/drawing/attributes":636,"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plots/attributes":795,"../../plots/template_attributes":877,"../scatter/attributes":1158}],1201:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../constants/numerical").BADNUM,o=e("../scatter/colorscale_calc"),i=e("../scatter/arrays_to_calcdata"),l=e("../scatter/calc_selection"),s=e("../../lib")._;function u(e){return e&&"string"===typeof e}t.exports=function(e,t){var n,c=Array.isArray(t.locations),f=c?t.locations.length:t._length,p=new Array(f);n=t.geojson?function(e){return u(e)||r(e)}:u;for(var d=0;d<f;d++){var h=p[d]={};if(c){var v=t.locations[d];h.loc=n(v)?v:null}else{var m=t.lon[d],y=t.lat[d];r(m)&&r(y)?h.lonlat=[+m,+y]:h.lonlat=[a,a]}}return i(p,t),o(e,t),l(p,t),f&&(p[0].t={labels:{lat:s(e,"lat:")+" ",lon:s(e,"lon:")+" "}}),p}},{"../../constants/numerical":725,"../../lib":750,"../scatter/arrays_to_calcdata":1157,"../scatter/calc_selection":1160,"../scatter/colorscale_calc":1161,"fast-isnumeric":241}],1202:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../scatter/subtypes"),o=e("../scatter/marker_defaults"),i=e("../scatter/line_defaults"),l=e("../scatter/text_defaults"),s=e("../scatter/fillcolor_defaults"),u=e("./attributes");t.exports=function(e,t,n,c){function f(n,a){return r.coerce(e,t,u,n,a)}var p,d=f("locations");if(d&&d.length){var h,v=f("geojson");("string"===typeof v&&""!==v||r.isPlainObject(v))&&(h="geojson-id");var m=f("locationmode",h);"geojson-id"===m&&f("featureidkey"),p=d.length}else{var y=f("lon")||[],g=f("lat")||[];p=Math.min(y.length,g.length)}p?(t._length=p,f("text"),f("hovertext"),f("hovertemplate"),f("mode"),a.hasLines(t)&&(i(e,t,n,c,f),f("connectgaps")),a.hasMarkers(t)&&o(e,t,n,c,f,{gradient:!0}),a.hasText(t)&&(f("texttemplate"),l(e,t,c,f)),f("fill"),"none"!==t.fill&&s(e,t,n,f),r.coerceSelectionMarkerOpacity(t,f)):t.visible=!1}},{"../../lib":750,"../scatter/fillcolor_defaults":1166,"../scatter/line_defaults":1171,"../scatter/marker_defaults":1177,"../scatter/subtypes":1183,"../scatter/text_defaults":1184,"./attributes":1200}],1203:[function(e,t,n){"use strict";t.exports=function(e,t,n,r,a){e.lon=t.lon,e.lat=t.lat,e.location=t.loc?t.loc:null;var o=r[a];return o.fIn&&o.fIn.properties&&(e.properties=o.fIn.properties),e}},{}],1204:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes");t.exports=function(e,t,n){var a={},o=n[t.geo]._subplot,i=o.mockAxis,l=e.lonlat;return a.lonLabel=r.tickText(i,i.c2l(l[0]),!0).text,a.latLabel=r.tickText(i,i.c2l(l[1]),!0).text,a}},{"../../plots/cartesian/axes":799}],1205:[function(e,t,n){"use strict";var r=e("../../components/fx"),a=e("../../constants/numerical").BADNUM,o=e("../scatter/get_trace_color"),i=e("../../lib").fillText,l=e("./attributes");function s(e,t,n,r){if(!e.hovertemplate){var a=t.hi||e.hoverinfo,o="all"===a?l.hoverinfo.flags:a.split("+"),s=-1!==o.indexOf("location")&&Array.isArray(e.locations),u=-1!==o.indexOf("lon"),c=-1!==o.indexOf("lat"),f=-1!==o.indexOf("text"),p=[];return s?p.push(t.loc):u&&c?p.push("("+d(n.lonLabel)+", "+d(n.latLabel)+")"):u?p.push(r.lon+d(n.lonLabel)):c&&p.push(r.lat+d(n.latLabel)),f&&i(t,e,p),p.join("<br>")}function d(e){return e+"°"}}t.exports=function(e,t,n){var i=e.cd,l=i[0].trace,u=e.xa,c=e.ya,f=e.subplot,p=f.projection.isLonLatOverEdges,d=f.project;function h(e){var r=e.lonlat;if(r[0]===a)return 1/0;if(p(r))return 1/0;var o=d(r),i=d([t,n]),l=Math.abs(o[0]-i[0]),s=Math.abs(o[1]-i[1]),u=Math.max(3,e.mrc||0);return Math.max(Math.sqrt(l*l+s*s)-u,1-3/u)}if(r.getClosest(i,h,e),!1!==e.index){var v=i[e.index],m=v.lonlat,y=[u.c2p(m),c.c2p(m)],g=v.mrc||1;e.x0=y[0]-g,e.x1=y[0]+g,e.y0=y[1]-g,e.y1=y[1]+g,e.loc=v.loc,e.lon=m[0],e.lat=m[1];var b={};b[l.geo]={_subplot:f};var x=l._module.formatLabels(v,l,b);return e.lonLabel=x.lonLabel,e.latLabel=x.latLabel,e.color=o(l,v),e.extraText=s(l,v,e,i[0].t.labels),e.hovertemplate=l.hovertemplate,[e]}}},{"../../components/fx":655,"../../constants/numerical":725,"../../lib":750,"../scatter/get_trace_color":1168,"./attributes":1200}],1206:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../scatter/marker_colorbar"),formatLabels:e("./format_labels"),calc:e("./calc"),calcGeoJSON:e("./plot").calcGeoJSON,plot:e("./plot").plot,style:e("./style"),styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover"),eventData:e("./event_data"),selectPoints:e("./select"),moduleType:"trace",name:"scattergeo",basePlotModule:e("../../plots/geo"),categories:["geo","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/geo":831,"../scatter/marker_colorbar":1176,"../scatter/style":1182,"./attributes":1200,"./calc":1201,"./defaults":1202,"./event_data":1203,"./format_labels":1204,"./hover":1205,"./plot":1207,"./select":1208,"./style":1209}],1207:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../../lib/topojson_utils").getTopojsonFeatures,i=e("../../lib/geojson_utils"),l=e("../../lib/geo_location_utils"),s=e("../../plots/cartesian/autorange").findExtremes,u=e("../../constants/numerical").BADNUM,c=e("../scatter/calc").calcMarkerSize,f=e("../scatter/subtypes"),p=e("./style");function d(e,t,n){var o=t.layers.frontplot.select(".scatterlayer"),l=a.makeTraceGroups(o,n,"trace scattergeo");function s(e,t){e.lonlat[0]===u&&r.select(t).remove()}l.selectAll("*").remove(),l.each((function(t){var n=r.select(this),o=t[0].trace;if(f.hasLines(o)||"none"!==o.fill){var l=i.calcTraceToLineCoords(t),u="none"!==o.fill?i.makePolygon(l):i.makeLine(l);n.selectAll("path.js-line").data([{geojson:u,trace:o}]).enter().append("path").classed("js-line",!0).style("stroke-miterlimit",2)}f.hasMarkers(o)&&n.selectAll("path.point").data(a.identity).enter().append("path").classed("point",!0).each((function(e){s(e,this)})),f.hasText(o)&&n.selectAll("g").data(a.identity).enter().append("g").append("text").each((function(e){s(e,this)})),p(e,t)}))}function h(e,t){var n,r,a=e[0].trace,i=t[a.geo],f=i._subplot,p=a._length;if(Array.isArray(a.locations)){var d=a.locationmode,h="geojson-id"===d?l.extractTraceFeature(e):o(a,f.topojson);for(n=0;n<p;n++){r=e[n];var v="geojson-id"===d?r.fOut:l.locationToFeature(d,r.loc,h);r.lonlat=v?v.properties.ct:[u,u]}}var m,y,g={padded:!0};if("geojson"===i.fitbounds&&"geojson-id"===a.locationmode){var b=l.computeBbox(l.getTraceGeojson(a));m=[b[0],b[2]],y=[b[1],b[3]]}else{for(m=new Array(p),y=new Array(p),n=0;n<p;n++)r=e[n],m[n]=r.lonlat[0],y[n]=r.lonlat[1];g.ppad=c(a,p)}a._extremes.lon=s(i.lonaxis._ax,m,g),a._extremes.lat=s(i.lataxis._ax,y,g)}t.exports={calcGeoJSON:h,plot:d}},{"../../constants/numerical":725,"../../lib":750,"../../lib/geo_location_utils":743,"../../lib/geojson_utils":744,"../../lib/topojson_utils":777,"../../plots/cartesian/autorange":798,"../scatter/calc":1159,"../scatter/subtypes":1183,"./style":1209,d3:169}],1208:[function(e,t,n){"use strict";var r=e("../scatter/subtypes"),a=e("../../constants/numerical").BADNUM;t.exports=function(e,t){var n,o,i,l,s,u=e.cd,c=e.xaxis,f=e.yaxis,p=[],d=u[0].trace,h=!r.hasMarkers(d)&&!r.hasText(d);if(h)return[];if(!1===t)for(s=0;s<u.length;s++)u[s].selected=0;else for(s=0;s<u.length;s++)n=u[s],o=n.lonlat,o[0]!==a&&(i=c.c2p(o),l=f.c2p(o),t.contains([i,l],null,s,e)?(p.push({pointNumber:s,lon:o[0],lat:o[1]}),n.selected=1):n.selected=0);return p}},{"../../constants/numerical":725,"../scatter/subtypes":1183}],1209:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/drawing"),o=e("../../components/color"),i=e("../scatter/style"),l=i.stylePoints,s=i.styleText;function u(e,t){var n=t[0].trace,i=t[0].node3;i.style("opacity",t[0].trace.opacity),l(i,n,e),s(i,n,e),i.selectAll("path.js-line").style("fill","none").each((function(e){var t=r.select(this),n=e.trace,i=n.line||{};t.call(o.stroke,i.color).call(a.dashLine,i.dash||"",i.width||0),"none"!==n.fill&&t.call(o.fill,n.fillcolor)}))}t.exports=function(e,t){t&&u(e,t)}},{"../../components/color":615,"../../components/drawing":637,"../scatter/style":1182,d3:169}],1210:[function(e,t,n){"use strict";var r=e("../../plots/attributes"),a=e("../scatter/attributes"),o=e("../../components/colorscale/attributes"),i=e("../../lib/extend").extendFlat,l=e("../../plot_api/edit_types").overrideAll,s=e("./constants").DASHES,u=a.line,c=a.marker,f=c.line,p=t.exports=l({x:a.x,x0:a.x0,dx:a.dx,y:a.y,y0:a.y0,dy:a.dy,xperiod:a.xperiod,yperiod:a.yperiod,xperiod0:a.xperiod0,yperiod0:a.yperiod0,xperiodalignment:a.xperiodalignment,yperiodalignment:a.yperiodalignment,text:a.text,hovertext:a.hovertext,textposition:a.textposition,textfont:a.textfont,mode:{valType:"flaglist",flags:["lines","markers","text"],extras:["none"]},line:{color:u.color,width:u.width,shape:{valType:"enumerated",values:["linear","hv","vh","hvh","vhv"],dflt:"linear",editType:"plot"},dash:{valType:"enumerated",values:Object.keys(s),dflt:"solid"}},marker:i({},o("marker"),{symbol:c.symbol,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,opacity:c.opacity,colorbar:c.colorbar,line:i({},o("marker.line"),{width:f.width})}),connectgaps:a.connectgaps,fill:i({},a.fill,{dflt:"none"}),fillcolor:a.fillcolor,selected:{marker:a.selected.marker,textfont:a.selected.textfont},unselected:{marker:a.unselected.marker,textfont:a.unselected.textfont},opacity:r.opacity},"calc","nested");p.x.editType=p.y.editType=p.x0.editType=p.y0.editType="calc+clearAxisTypes",p.hovertemplate=a.hovertemplate,p.texttemplate=a.texttemplate},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plots/attributes":795,"../scatter/attributes":1158,"./constants":1212}],1211:[function(e,t,n){"use strict";var r=e("@plotly/point-cluster"),a=e("../../lib"),o=e("../../plots/cartesian/axis_ids"),i=e("../../plots/cartesian/autorange").findExtremes,l=e("../../plots/cartesian/align_period"),s=e("../scatter/calc"),u=s.calcMarkerSize,c=s.calcAxisExpansion,f=s.setFirstScatter,p=e("../scatter/colorscale_calc"),d=e("./convert"),h=e("./scene_update"),v=e("../../constants/numerical").BADNUM,m=e("./constants").TOO_MANY_POINTS;function y(e,t,n){var r=e._extremes[t._id],a=i(t,n._bnds,{padded:!0});r.min=r.min.concat(a.min),r.max=r.max.concat(a.max)}function g(e,t,n,r,o,i){var l=d.style(e,n);if(l.marker&&(l.marker.positions=r),l.line&&r.length>1&&a.extendFlat(l.line,d.linePositions(e,n,r)),l.errorX||l.errorY){var s=d.errorBarPositions(e,n,r,o,i);l.errorX&&a.extendFlat(l.errorX,s.x),l.errorY&&a.extendFlat(l.errorY,s.y)}return l.text&&(a.extendFlat(l.text,{positions:r},d.textPosition(e,n,l.text,l.marker)),a.extendFlat(l.textSel,{positions:r},d.textPosition(e,n,l.text,l.markerSel)),a.extendFlat(l.textUnsel,{positions:r},d.textPosition(e,n,l.text,l.markerUnsel))),l}t.exports=function(e,t){var n,a,i,s=e._fullLayout,d=o.getFromId(e,t.xaxis),b=o.getFromId(e,t.yaxis),x=s._plots[t.xaxis+t.yaxis],_=t._length,w=_>=m,k=2*_,T={},E=d.makeCalcdata(t,"x"),O=b.makeCalcdata(t,"y"),M=l(t,d,"x",E),S=l(t,b,"y",O);t._x=M,t._y=S,t.xperiodalignment&&(t._origX=E),t.yperiodalignment&&(t._origY=O);var C=new Array(k);for(n=0;n<_;n++)a=M[n],i=S[n],C[2*n]=a===v?NaN:a,C[2*n+1]=i===v?NaN:i;if("log"===d.type)for(n=0;n<k;n+=2)C[n]=d.c2l(C[n]);if("log"===b.type)for(n=1;n<k;n+=2)C[n]=b.c2l(C[n]);if(w&&"log"!==d.type&&"log"!==b.type)T.tree=r(C);else{var A=T.ids=new Array(_);for(n=0;n<_;n++)A[n]=n}p(e,t);var P,L=g(e,x,t,C,M,S),D=h(e,x);return f(s,t),w?L.marker&&(P=2*(L.marker.sizeAvg||Math.max(L.marker.size,3))):P=u(t,_),c(e,t,d,b,M,S,P),L.errorX&&y(t,d,L.errorX),L.errorY&&y(t,b,L.errorY),L.fill&&!D.fill2d&&(D.fill2d=!0),L.marker&&!D.scatter2d&&(D.scatter2d=!0),L.line&&!D.line2d&&(D.line2d=!0),!L.errorX&&!L.errorY||D.error2d||(D.error2d=!0),L.text&&!D.glText&&(D.glText=!0),L.marker&&(L.marker.snap=_),D.lineOptions.push(L.line),D.errorXOptions.push(L.errorX),D.errorYOptions.push(L.errorY),D.fillOptions.push(L.fill),D.markerOptions.push(L.marker),D.markerSelectedOptions.push(L.markerSel),D.markerUnselectedOptions.push(L.markerUnsel),D.textOptions.push(L.text),D.textSelectedOptions.push(L.textSel),D.textUnselectedOptions.push(L.textUnsel),D.selectBatch.push([]),D.unselectBatch.push([]),T._scene=D,T.index=D.count,T.x=M,T.y=S,T.positions=C,D.count++,[{x:!1,y:!1,t:T,trace:t}]}},{"../../constants/numerical":725,"../../lib":750,"../../plots/cartesian/align_period":796,"../../plots/cartesian/autorange":798,"../../plots/cartesian/axis_ids":802,"../scatter/calc":1159,"../scatter/colorscale_calc":1161,"./constants":1212,"./convert":1213,"./scene_update":1221,"@plotly/point-cluster":57}],1212:[function(e,t,n){"use strict";var r=20;t.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:r,SYMBOL_STROKE:r/20,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],1213:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("svg-path-sdf"),o=e("color-normalize"),i=e("../../registry"),l=e("../../lib"),s=e("../../components/drawing"),u=e("../../plots/cartesian/axis_ids"),c=e("../../lib/gl_format_color").formatColor,f=e("../scatter/subtypes"),p=e("../scatter/make_bubble_size_func"),d=e("./helpers"),h=e("./constants"),v=e("../../constants/interactions").DESELECTDIM,m={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},y=e("../../components/fx/helpers").appendArrayPointValue;function g(e,t){var n,r={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0};if(!0!==t.visible)return r;if(f.hasText(t)&&(r.text=b(e,t),r.textSel=w(e,t,t.selected),r.textUnsel=w(e,t,t.unselected)),f.hasMarkers(t)&&(r.marker=x(t),r.markerSel=_(t,t.selected),r.markerUnsel=_(t,t.unselected),!t.unselected&&l.isArrayOrTypedArray(t.marker.opacity))){var a=t.marker.opacity;for(r.markerUnsel.opacity=new Array(a.length),n=0;n<a.length;n++)r.markerUnsel.opacity[n]=v*a[n]}if(f.hasLines(t)){r.line={overlay:!0,thickness:t.line.width,color:t.line.color,opacity:t.opacity};var o=(h.DASHES[t.line.dash]||[1]).slice();for(n=0;n<o.length;++n)o[n]*=t.line.width;r.line.dashes=o}return t.error_x&&t.error_x.visible&&(r.errorX=k(t,t.error_x)),t.error_y&&t.error_y.visible&&(r.errorY=k(t,t.error_y)),t.fill&&"none"!==t.fill&&(r.fill={closed:!0,fill:t.fillcolor,thickness:0}),r}function b(e,t){var n,a=e._fullLayout,o=t._length,i=t.textfont,s=t.textposition,u=Array.isArray(s)?s:[s],c=i.color,f=i.size,p=i.family,d={},h=t.texttemplate;if(h){d.text=[];var v=a._d3locale,m=Array.isArray(h),g=m?Math.min(h.length,o):o,b=m?function(e){return h[e]}:function(){return h};for(n=0;n<g;n++){var x={i:n},_=t._module.formatLabels(x,t,a),w={};y(w,t,n);var k=t._meta||{};d.text.push(l.texttemplateString(b(n),_,v,w,x,k))}}else Array.isArray(t.text)&&t.text.length<o?d.text=t.text.slice():d.text=t.text;if(Array.isArray(d.text))for(n=d.text.length;n<o;n++)d.text[n]="";for(d.opacity=t.opacity,d.font={},d.align=[],d.baseline=[],n=0;n<u.length;n++){var T=u[n].split(/\s+/);switch(T[1]){case"left":d.align.push("right");break;case"right":d.align.push("left");break;default:d.align.push(T[1])}switch(T[0]){case"top":d.baseline.push("bottom");break;case"bottom":d.baseline.push("top");break;default:d.baseline.push(T[0])}}if(Array.isArray(c))for(d.color=new Array(o),n=0;n<o;n++)d.color[n]=c[n];else d.color=c;if(l.isArrayOrTypedArray(f)||Array.isArray(p))for(d.font=new Array(o),n=0;n<o;n++){var E=d.font[n]={};E.size=l.isTypedArray(f)?f[n]:Array.isArray(f)?r(f[n])?f[n]:0:f,E.family=Array.isArray(p)?p[n]:p}else d.font={size:f,family:p};return d}function x(e){var t,n,r=e._length,a=e.marker,i={},s=l.isArrayOrTypedArray(a.symbol),u=l.isArrayOrTypedArray(a.color),f=l.isArrayOrTypedArray(a.line.color),h=l.isArrayOrTypedArray(a.opacity),v=l.isArrayOrTypedArray(a.size),m=l.isArrayOrTypedArray(a.line.width);if(s||(n=d.isOpenSymbol(a.symbol)),s||u||f||h){i.colors=new Array(r),i.borderColors=new Array(r);var y=c(a,a.opacity,r),g=c(a.line,a.opacity,r);if(!Array.isArray(g[0])){var b=g;for(g=Array(r),t=0;t<r;t++)g[t]=b}if(!Array.isArray(y[0])){var x=y;for(y=Array(r),t=0;t<r;t++)y[t]=x}for(i.colors=y,i.borderColors=g,t=0;t<r;t++){if(s){var _=a.symbol[t];n=d.isOpenSymbol(_)}n&&(g[t]=y[t].slice(),y[t]=y[t].slice(),y[t][3]=0)}i.opacity=e.opacity}else n?(i.color=o(a.color,"uint8"),i.color[3]=0,i.borderColor=o(a.color,"uint8")):(i.color=o(a.color,"uint8"),i.borderColor=o(a.line.color,"uint8")),i.opacity=e.opacity*a.opacity;if(s)for(i.markers=new Array(r),t=0;t<r;t++)i.markers[t]=C(a.symbol[t]);else i.marker=C(a.symbol);var w,k=p(e);if(v||m){var T,E=i.sizes=new Array(r),O=i.borderSizes=new Array(r),M=0;if(v){for(t=0;t<r;t++)E[t]=k(a.size[t]),M+=E[t];T=M/r}else for(w=k(a.size),t=0;t<r;t++)E[t]=w;if(m)for(t=0;t<r;t++)O[t]=a.line.width[t]/2;else for(w=a.line.width/2,t=0;t<r;t++)O[t]=w;i.sizeAvg=T}else i.size=k(a&&a.size||10),i.borderSizes=k(a.line.width);return i}function _(e,t){var n=e.marker,r={};return t?(t.marker&&t.marker.symbol?r=x(l.extendFlat({},n,t.marker)):t.marker&&(t.marker.size&&(r.size=t.marker.size/2),t.marker.color&&(r.colors=t.marker.color),void 0!==t.marker.opacity&&(r.opacity=t.marker.opacity)),r):r}function w(e,t,n){var r={};if(!n)return r;if(n.textfont){var a={opacity:1,text:t.text,texttemplate:t.texttemplate,textposition:t.textposition,textfont:l.extendFlat({},t.textfont)};n.textfont&&l.extendFlat(a.textfont,n.textfont),r=b(e,a)}return r}function k(e,t){var n={capSize:2*t.width,lineWidth:t.thickness,color:t.color};return t.copy_ystyle&&(n=e.error_y),n}var T=h.SYMBOL_SDF_SIZE,E=h.SYMBOL_SIZE,O=h.SYMBOL_STROKE,M={},S=s.symbolFuncs[0](.05*E);function C(e){if("circle"===e)return null;var t,n,r=s.symbolNumber(e),o=s.symbolFuncs[r%100],i=!!s.symbolNoDot[r%100],l=!!s.symbolNoFill[r%100],u=d.isDotSymbol(e);return M[e]?M[e]:(t=u&&!i?o(1.1*E)+S:o(E),n=a(t,{w:T,h:T,viewBox:[-E,-E,E,E],stroke:l?O:-O}),M[e]=n,n||null)}function A(e,t,n){var r,a,o=n.length,i=o/2;if(f.hasLines(t)&&i)if("hv"===t.line.shape){for(r=[],a=0;a<i-1;a++)isNaN(n[2*a])||isNaN(n[2*a+1])?r.push(NaN,NaN,NaN,NaN):(r.push(n[2*a],n[2*a+1]),isNaN(n[2*a+2])||isNaN(n[2*a+3])?r.push(NaN,NaN):r.push(n[2*a+2],n[2*a+1]));r.push(n[o-2],n[o-1])}else if("hvh"===t.line.shape){for(r=[],a=0;a<i-1;a++)if(isNaN(n[2*a])||isNaN(n[2*a+1])||isNaN(n[2*a+2])||isNaN(n[2*a+3]))isNaN(n[2*a])||isNaN(n[2*a+1])?r.push(NaN,NaN):r.push(n[2*a],n[2*a+1]),r.push(NaN,NaN);else{var l=(n[2*a]+n[2*a+2])/2;r.push(n[2*a],n[2*a+1],l,n[2*a+1],l,n[2*a+3])}r.push(n[o-2],n[o-1])}else if("vhv"===t.line.shape){for(r=[],a=0;a<i-1;a++)if(isNaN(n[2*a])||isNaN(n[2*a+1])||isNaN(n[2*a+2])||isNaN(n[2*a+3]))isNaN(n[2*a])||isNaN(n[2*a+1])?r.push(NaN,NaN):r.push(n[2*a],n[2*a+1]),r.push(NaN,NaN);else{var s=(n[2*a+1]+n[2*a+3])/2;r.push(n[2*a],n[2*a+1],n[2*a],s,n[2*a+2],s)}r.push(n[o-2],n[o-1])}else if("vh"===t.line.shape){for(r=[],a=0;a<i-1;a++)isNaN(n[2*a])||isNaN(n[2*a+1])?r.push(NaN,NaN,NaN,NaN):(r.push(n[2*a],n[2*a+1]),isNaN(n[2*a+2])||isNaN(n[2*a+3])?r.push(NaN,NaN):r.push(n[2*a],n[2*a+3]));r.push(n[o-2],n[o-1])}else r=n;var u=!1;for(a=0;a<r.length;a++)if(isNaN(r[a])){u=!0;break}var c=u||r.length>h.TOO_MANY_POINTS||f.hasMarkers(t)?"rect":"round";if(u&&t.connectgaps){var p=r[0],d=r[1];for(a=0;a<r.length;a+=2)isNaN(r[a])||isNaN(r[a+1])?(r[a]=p,r[a+1]=d):(p=r[a],d=r[a+1])}return{join:c,positions:r}}function P(e,t,n,a,o){var l=i.getComponentMethod("errorbars","makeComputeError"),s=u.getFromId(e,t.xaxis),c=u.getFromId(e,t.yaxis),f=n.length/2,p={};function d(e,a){var o=a._id.charAt(0),i=t["error_"+o];if(i&&i.visible&&("linear"===a.type||"log"===a.type)){for(var s=l(i),u={x:0,y:1}[o],c={x:[0,1,2,3],y:[2,3,0,1]}[o],d=new Float64Array(4*f),h=1/0,v=-1/0,m=0,y=0;m<f;m++,y+=4){var g=e[m];if(r(g)){var b=n[2*m+u],x=s(g,m),_=x[0],w=x[1];if(r(_)&&r(w)){var k=g-_,T=g+w;d[y+c[0]]=b-a.c2l(k),d[y+c[1]]=a.c2l(T)-b,d[y+c[2]]=0,d[y+c[3]]=0,h=Math.min(h,g-_),v=Math.max(v,g+w)}}}p[o]={positions:n,errors:d,_bnds:[h,v]}}}return d(a,s),d(o,c),p}function L(e,t,n,r){var a,o=t._length,i={};if(f.hasMarkers(t)){var l=n.font,s=n.align,u=n.baseline;for(i.offset=new Array(o),a=0;a<o;a++){var c=r.sizes?r.sizes[a]:r.size,p=Array.isArray(l)?l[a].size:l.size,d=Array.isArray(s)?s.length>1?s[a]:s[0]:s,h=Array.isArray(u)?u.length>1?u[a]:u[0]:u,v=m[d],y=m[h],g=c?c/.8+1:0,b=-y*g-.5*y;i.offset[a]=[v*g/p,b/p]}}return i}t.exports={style:g,markerStyle:x,markerSelection:_,linePositions:A,errorBarPositions:P,textPosition:L}},{"../../components/drawing":637,"../../components/fx/helpers":651,"../../constants/interactions":724,"../../lib":750,"../../lib/gl_format_color":746,"../../plots/cartesian/axis_ids":802,"../../registry":882,"../scatter/make_bubble_size_func":1175,"../scatter/subtypes":1183,"./constants":1212,"./helpers":1217,"color-normalize":125,"fast-isnumeric":241,"svg-path-sdf":546}],1214:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../registry"),o=e("./helpers"),i=e("./attributes"),l=e("../scatter/constants"),s=e("../scatter/subtypes"),u=e("../scatter/xy_defaults"),c=e("../scatter/period_defaults"),f=e("../scatter/marker_defaults"),p=e("../scatter/line_defaults"),d=e("../scatter/fillcolor_defaults"),h=e("../scatter/text_defaults");t.exports=function(e,t,n,v){function m(n,a){return r.coerce(e,t,i,n,a)}var y=!!e.marker&&o.isOpenSymbol(e.marker.symbol),g=s.isBubble(e),b=u(e,t,v,m);if(b){c(e,t,v,m);var x=b<l.PTS_LINESONLY?"lines+markers":"lines";m("text"),m("hovertext"),m("hovertemplate"),m("mode",x),s.hasLines(t)&&(m("connectgaps"),p(e,t,n,v,m),m("line.shape")),s.hasMarkers(t)&&(f(e,t,n,v,m),m("marker.line.width",y||g?1:0)),s.hasText(t)&&(m("texttemplate"),h(e,t,v,m));var _=(t.line||{}).color,w=(t.marker||{}).color;m("fill"),"none"!==t.fill&&d(e,t,n,m);var k=a.getComponentMethod("errorbars","supplyDefaults");k(e,t,_||w||n,{axis:"y"}),k(e,t,_||w||n,{axis:"x",inherit:"y"}),r.coerceSelectionMarkerOpacity(t,m)}else t.visible=!1}},{"../../lib":750,"../../registry":882,"../scatter/constants":1162,"../scatter/fillcolor_defaults":1166,"../scatter/line_defaults":1171,"../scatter/marker_defaults":1177,"../scatter/period_defaults":1178,"../scatter/subtypes":1183,"../scatter/text_defaults":1184,"../scatter/xy_defaults":1185,"./attributes":1210,"./helpers":1217}],1215:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/color"),o=e("../../constants/interactions").DESELECTDIM;function i(e){var t,n,i=e[0],l=i.trace,s=i.t,u=s._scene,c=s.index,f=u.selectBatch[c],p=u.unselectBatch[c],d=u.textOptions[c],h=u.textSelectedOptions[c]||{},v=u.textUnselectedOptions[c]||{},m=r.extendFlat({},d);if(f.length||p.length){var y=h.color,g=v.color,b=d.color,x=Array.isArray(b);for(m.color=new Array(l._length),t=0;t<f.length;t++)n=f[t],m.color[n]=y||(x?b[n]:b);for(t=0;t<p.length;t++){n=p[t];var _=x?b[n]:b;m.color[n]=g||(y?_:a.addOpacity(_,o))}}u.glText[c].update(m)}t.exports={styleTextSelection:i}},{"../../components/color":615,"../../constants/interactions":724,"../../lib":750}],1216:[function(e,t,n){"use strict";var r=e("../scatter/format_labels");t.exports=function(e,t,n){var a=e.i;return"x"in e||(e.x=t._x[a]),"y"in e||(e.y=t._y[a]),r(e,t,n)}},{"../scatter/format_labels":1167}],1217:[function(e,t,n){"use strict";var r=e("./constants");n.isOpenSymbol=function(e){return"string"===typeof e?r.OPEN_RE.test(e):e%200>100},n.isDotSymbol=function(e){return"string"===typeof e?r.DOT_RE.test(e):e>200}},{"./constants":1212}],1218:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),o=e("../scatter/get_trace_color");function i(e,t,n,r){var a,o,i,s,u,c,f,p,d,h=e.cd,v=h[0].t,m=h[0].trace,y=e.xa,g=e.ya,b=v.x,x=v.y,_=y.c2p(t),w=g.c2p(n),k=e.distance;if(v.tree){var T=y.p2c(_-k),E=y.p2c(_+k),O=g.p2c(w-k),M=g.p2c(w+k);a="x"===r?v.tree.range(Math.min(T,E),Math.min(g._rl[0],g._rl[1]),Math.max(T,E),Math.max(g._rl[0],g._rl[1])):v.tree.range(Math.min(T,E),Math.min(O,M),Math.max(T,E),Math.max(O,M))}else a=v.ids;var S=k;if("x"===r)for(u=0;u<a.length;u++)i=b[a[u]],c=Math.abs(y.c2p(i)-_),c<S&&(S=c,f=g.c2p(x[a[u]])-w,d=Math.sqrt(c*c+f*f),o=a[u]);else for(u=a.length-1;u>-1;u--)i=b[a[u]],s=x[a[u]],c=y.c2p(i)-_,f=g.c2p(s)-w,p=Math.sqrt(c*c+f*f),p<S&&(S=d=p,o=a[u]);return e.index=o,e.distance=S,e.dxy=d,void 0===o?[e]:[l(e,b,x,m)]}function l(e,t,n,i){var l=e.xa,s=e.ya,u=e.distance,c=e.dxy,f=e.index,p={pointNumber:f,x:t[f],y:n[f]};p.tx=Array.isArray(i.text)?i.text[f]:i.text,p.htx=Array.isArray(i.hovertext)?i.hovertext[f]:i.hovertext,p.data=Array.isArray(i.customdata)?i.customdata[f]:i.customdata,p.tp=Array.isArray(i.textposition)?i.textposition[f]:i.textposition;var d=i.textfont;d&&(p.ts=a.isArrayOrTypedArray(d.size)?d.size[f]:d.size,p.tc=Array.isArray(d.color)?d.color[f]:d.color,p.tf=Array.isArray(d.family)?d.family[f]:d.family);var h=i.marker;h&&(p.ms=a.isArrayOrTypedArray(h.size)?h.size[f]:h.size,p.mo=a.isArrayOrTypedArray(h.opacity)?h.opacity[f]:h.opacity,p.mx=a.isArrayOrTypedArray(h.symbol)?h.symbol[f]:h.symbol,p.mc=a.isArrayOrTypedArray(h.color)?h.color[f]:h.color);var v=h&&h.line;v&&(p.mlc=Array.isArray(v.color)?v.color[f]:v.color,p.mlw=a.isArrayOrTypedArray(v.width)?v.width[f]:v.width);var m=h&&h.gradient;m&&"none"!==m.type&&(p.mgt=Array.isArray(m.type)?m.type[f]:m.type,p.mgc=Array.isArray(m.color)?m.color[f]:m.color);var y=l.c2p(p.x,!0),g=s.c2p(p.y,!0),b=p.mrc||1,x=i.hoverlabel;x&&(p.hbg=Array.isArray(x.bgcolor)?x.bgcolor[f]:x.bgcolor,p.hbc=Array.isArray(x.bordercolor)?x.bordercolor[f]:x.bordercolor,p.hts=a.isArrayOrTypedArray(x.font.size)?x.font.size[f]:x.font.size,p.htc=Array.isArray(x.font.color)?x.font.color[f]:x.font.color,p.htf=Array.isArray(x.font.family)?x.font.family[f]:x.font.family,p.hnl=a.isArrayOrTypedArray(x.namelength)?x.namelength[f]:x.namelength);var _=i.hoverinfo;_&&(p.hi=Array.isArray(_)?_[f]:_);var w=i.hovertemplate;w&&(p.ht=Array.isArray(w)?w[f]:w);var k={};k[e.index]=p;var T=i._origX,E=i._origY,O=a.extendFlat({},e,{color:o(i,p),x0:y-b,x1:y+b,xLabelVal:T?T[f]:p.x,y0:g-b,y1:g+b,yLabelVal:E?E[f]:p.y,cd:k,distance:u,spikeDistance:c,hovertemplate:p.ht});return p.htx?O.text=p.htx:p.tx?O.text=p.tx:i.text&&(O.text=i.text),a.fillText(p,i,O),r.getComponentMethod("errorbars","hoverInfo")(p,i,O),O}t.exports={hoverPoints:i,calcHover:l}},{"../../lib":750,"../../registry":882,"../scatter/get_trace_color":1168}],1219:[function(e,t,n){"use strict";var r=e("./hover");t.exports={moduleType:"trace",name:"scattergl",basePlotModule:e("../../plots/cartesian"),categories:["gl","regl","cartesian","symbols","errorBarsOK","showLegend","scatter-like"],attributes:e("./attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("../scatter/cross_trace_defaults"),colorbar:e("../scatter/marker_colorbar"),formatLabels:e("./format_labels"),calc:e("./calc"),plot:e("./plot"),hoverPoints:r.hoverPoints,selectPoints:e("./select"),meta:{}}},{"../../plots/cartesian":812,"../scatter/cross_trace_defaults":1164,"../scatter/marker_colorbar":1176,"./attributes":1210,"./calc":1211,"./defaults":1214,"./format_labels":1216,"./hover":1218,"./plot":1220,"./select":1222}],1220:[function(e,t,n){"use strict";var r=e("regl-scatter2d"),a=e("regl-line2d"),o=e("regl-error2d"),i=e("gl-text"),l=e("../../lib"),s=e("../../components/dragelement/helpers").selectMode,u=e("../../lib/prepare_regl"),c=e("../scatter/subtypes"),f=e("../scatter/link_traces"),p=e("./edit_style").styleTextSelection;function d(e,t,n){var r=e._size,a=e.width,o=e.height;return[r.l+t.domain[0]*r.w,r.b+n.domain[0]*r.h,a-r.r-(1-t.domain[1])*r.w,o-r.t-(1-n.domain[1])*r.h]}t.exports=function(e,t,n){if(n.length){var h,v,m=e._fullLayout,y=t._scene,g=t.xaxis,b=t.yaxis;if(y){var x=u(e,["ANGLE_instanced_arrays","OES_element_index_uint"]);if(x){var _=y.count,w=m._glcanvas.data()[0].regl;if(f(e,t,n),y.dirty){if(!0===y.error2d&&(y.error2d=o(w)),!0===y.line2d&&(y.line2d=a(w)),!0===y.scatter2d&&(y.scatter2d=r(w,{constPointSize:!0})),!0===y.fill2d&&(y.fill2d=a(w)),!0===y.glText)for(y.glText=new Array(_),h=0;h<_;h++)y.glText[h]=new i(w);if(y.glText){if(_>y.glText.length){var k=_-y.glText.length;for(h=0;h<k;h++)y.glText.push(new i(w))}else if(_<y.glText.length){var T=y.glText.length-_,E=y.glText.splice(_,T);E.forEach((function(e){e.destroy()}))}for(h=0;h<_;h++)y.glText[h].update(y.textOptions[h])}if(y.line2d&&(y.line2d.update(y.lineOptions),y.lineOptions=y.lineOptions.map((function(e){if(e&&e.positions){var t=e.positions,n=0;while(n<t.length&&(isNaN(t[n])||isNaN(t[n+1])))n+=2;var r=t.length-2;while(r>n&&(isNaN(t[r])||isNaN(t[r+1])))r-=2;e.positions=t.slice(n,r+2)}return e})),y.line2d.update(y.lineOptions)),y.error2d){var O=(y.errorXOptions||[]).concat(y.errorYOptions||[]);y.error2d.update(O)}y.scatter2d&&y.scatter2d.update(y.markerOptions),y.fillOrder=l.repeat(null,_),y.fill2d&&(y.fillOptions=y.fillOptions.map((function(e,t){var r=n[t];if(e&&r&&r[0]&&r[0].trace){var a,o,i=r[0],l=i.trace,s=i.t,u=y.lineOptions[t],c=[];l._ownfill&&c.push(t),l._nexttrace&&c.push(t+1),c.length&&(y.fillOrder[t]=c);var f,p,d=[],h=u&&u.positions||s.positions;if("tozeroy"===l.fill){f=0;while(f<h.length&&isNaN(h[f+1]))f+=2;p=h.length-2;while(p>f&&isNaN(h[p+1]))p-=2;0!==h[f+1]&&(d=[h[f],0]),d=d.concat(h.slice(f,p+2)),0!==h[p+1]&&(d=d.concat([h[p],0]))}else if("tozerox"===l.fill){f=0;while(f<h.length&&isNaN(h[f]))f+=2;p=h.length-2;while(p>f&&isNaN(h[p]))p-=2;0!==h[f]&&(d=[0,h[f+1]]),d=d.concat(h.slice(f,p+2)),0!==h[p]&&(d=d.concat([0,h[p+1]]))}else if("toself"===l.fill||"tonext"===l.fill){for(d=[],a=0,o=0;o<h.length;o+=2)(isNaN(h[o])||isNaN(h[o+1]))&&(d=d.concat(h.slice(a,o)),d.push(h[a],h[a+1]),a=o+2);d=d.concat(h.slice(a)),a&&d.push(h[a],h[a+1])}else{var v=l._nexttrace;if(v){var m=y.lineOptions[t+1];if(m){var g=m.positions;if("tonexty"===l.fill){for(d=h.slice(),t=Math.floor(g.length/2);t--;){var b=g[2*t],x=g[2*t+1];isNaN(b)||isNaN(x)||d.push(b,x)}e.fill=v.fillcolor}}}}if(l._prevtrace&&"tonext"===l._prevtrace.fill){var _=y.lineOptions[t-1].positions,w=d.length/2;a=w;var k=[a];for(o=0;o<_.length;o+=2)(isNaN(_[o])||isNaN(_[o+1]))&&(k.push(o/2+w+1),a=o+2);d=d.concat(_),e.hole=k}return e.fillmode=l.fill,e.opacity=l.opacity,e.positions=d,e}})),y.fill2d.update(y.fillOptions))}var M=m.dragmode,S=s(M),C=m.clickmode.indexOf("select")>-1;for(h=0;h<_;h++){var A=n[h][0],P=A.trace,L=A.t,D=L.index,j=P._length,I=L.x,R=L.y;if(P.selectedpoints||S||C){if(S||(S=!0),P.selectedpoints){var z=y.selectBatch[D]=l.selIndices2selPoints(P),N={};for(v=0;v<z.length;v++)N[z[v]]=1;var F=[];for(v=0;v<j;v++)N[v]||F.push(v);y.unselectBatch[D]=F}var B=L.xpx=new Array(j),V=L.ypx=new Array(j);for(v=0;v<j;v++)B[v]=g.c2p(I[v]),V[v]=b.c2p(R[v])}else L.xpx=L.ypx=null}if(S){if(y.select2d||(y.select2d=r(m._glcanvas.data()[1].regl)),y.scatter2d){var H=new Array(_);for(h=0;h<_;h++)H[h]=y.selectBatch[h].length||y.unselectBatch[h].length?y.markerUnselectedOptions[h]:{};y.scatter2d.update(H)}y.select2d&&(y.select2d.update(y.markerOptions),y.select2d.update(y.markerSelectedOptions)),y.glText&&n.forEach((function(e){var t=((e||[])[0]||{}).trace||{};c.hasText(t)&&p(e)}))}else y.scatter2d&&y.scatter2d.update(y.markerOptions);var U={viewport:d(m,g,b),range:[(g._rl||g.range)[0],(b._rl||b.range)[0],(g._rl||g.range)[1],(b._rl||b.range)[1]]},W=l.repeat(U,y.count);y.fill2d&&y.fill2d.update(W),y.line2d&&y.line2d.update(W),y.error2d&&y.error2d.update(W.concat(W)),y.scatter2d&&y.scatter2d.update(W),y.select2d&&y.select2d.update(W),y.glText&&y.glText.forEach((function(e){e.update(U)}))}else y.init()}}}},{"../../components/dragelement/helpers":633,"../../lib":750,"../../lib/prepare_regl":763,"../scatter/link_traces":1174,"../scatter/subtypes":1183,"./edit_style":1215,"gl-text":326,"regl-error2d":508,"regl-line2d":509,"regl-scatter2d":510}],1221:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){var n=t._scene,a={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},o={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return t._scene||(n=t._scene={},n.init=function(){r.extendFlat(n,o,a)},n.init(),n.update=function(e){var t=r.repeat(e,n.count);if(n.fill2d&&n.fill2d.update(t),n.scatter2d&&n.scatter2d.update(t),n.line2d&&n.line2d.update(t),n.error2d&&n.error2d.update(t.concat(t)),n.select2d&&n.select2d.update(t),n.glText)for(var a=0;a<n.count;a++)n.glText[a].update(e)},n.draw=function(){for(var e=n.count,t=n.fill2d,a=n.error2d,o=n.line2d,i=n.scatter2d,l=n.glText,s=n.select2d,u=n.selectBatch,c=n.unselectBatch,f=0;f<e;f++){if(t&&n.fillOrder[f]&&t.draw(n.fillOrder[f]),o&&n.lineOptions[f]&&o.draw(f),a&&(n.errorXOptions[f]&&a.draw(f),n.errorYOptions[f]&&a.draw(f+e)),i&&n.markerOptions[f])if(c[f].length){var p=r.repeat([],n.count);p[f]=c[f],i.draw(p)}else u[f].length||i.draw(f);l[f]&&n.textOptions[f]&&l[f].render()}s&&s.draw(u),n.dirty=!1},n.destroy=function(){n.fill2d&&n.fill2d.destroy&&n.fill2d.destroy(),n.scatter2d&&n.scatter2d.destroy&&n.scatter2d.destroy(),n.error2d&&n.error2d.destroy&&n.error2d.destroy(),n.line2d&&n.line2d.destroy&&n.line2d.destroy(),n.select2d&&n.select2d.destroy&&n.select2d.destroy(),n.glText&&n.glText.forEach((function(e){e.destroy&&e.destroy()})),n.lineOptions=null,n.fillOptions=null,n.markerOptions=null,n.markerSelectedOptions=null,n.markerUnselectedOptions=null,n.errorXOptions=null,n.errorYOptions=null,n.textOptions=null,n.textSelectedOptions=null,n.textUnselectedOptions=null,n.selectBatch=null,n.unselectBatch=null,t._scene=null}),n.dirty||r.extendFlat(n,a),n}},{"../../lib":750}],1222:[function(e,t,n){"use strict";var r=e("../scatter/subtypes"),a=e("./edit_style").styleTextSelection;t.exports=function(e,t){var n=e.cd,o=[],i=n[0].trace,l=n[0].t,s=i._length,u=l.x,c=l.y,f=l._scene,p=l.index;if(!f)return o;var d=r.hasText(i),h=r.hasMarkers(i),v=!h&&!d;if(!0!==i.visible||v)return o;var m=[],y=[];if(!1!==t&&!t.degenerate)for(var g=0;g<s;g++)t.contains([l.xpx[g],l.ypx[g]],!1,g,e)?(m.push(g),o.push({pointNumber:g,x:u[g],y:c[g]})):y.push(g);if(h){var b=f.scatter2d;if(m.length||y.length){if(!f.selectBatch[p].length&&!f.unselectBatch[p].length){var x=new Array(f.count);x[p]=f.markerUnselectedOptions[p],b.update.apply(b,x)}}else{var _=new Array(f.count);_[p]=f.markerOptions[p],b.update.apply(b,_)}}return f.selectBatch[p]=m,f.unselectBatch[p]=y,d&&a(n),o}},{"../scatter/subtypes":1183,"./edit_style":1215}],1223:[function(e,t,n){"use strict";var r=e("../../plots/template_attributes").hovertemplateAttrs,a=e("../../plots/template_attributes").texttemplateAttrs,o=e("../scattergeo/attributes"),i=e("../scatter/attributes"),l=e("../../plots/mapbox/layout_attributes"),s=e("../../plots/attributes"),u=e("../../components/colorscale/attributes"),c=e("../../lib/extend").extendFlat,f=e("../../plot_api/edit_types").overrideAll,p=o.line,d=o.marker;t.exports=f({lon:o.lon,lat:o.lat,mode:c({},i.mode,{dflt:"markers"}),text:c({},i.text,{}),texttemplate:a({editType:"plot"},{keys:["lat","lon","text"]}),hovertext:c({},i.hovertext,{}),line:{color:p.color,width:p.width},connectgaps:i.connectgaps,marker:c({symbol:{valType:"string",dflt:"circle",arrayOk:!0},angle:{valType:"number",dflt:"auto",arrayOk:!0},allowoverlap:{valType:"boolean",dflt:!1},opacity:d.opacity,size:d.size,sizeref:d.sizeref,sizemin:d.sizemin,sizemode:d.sizemode},u("marker")),fill:o.fill,fillcolor:i.fillcolor,textfont:l.layers.symbol.textfont,textposition:l.layers.symbol.textposition,below:{valType:"string"},selected:{marker:i.selected.marker},unselected:{marker:i.unselected.marker},hoverinfo:c({},s.hoverinfo,{flags:["lon","lat","text","name"]}),hovertemplate:r()},"calc","nested")},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plots/attributes":795,"../../plots/mapbox/layout_attributes":858,"../../plots/template_attributes":877,"../scatter/attributes":1158,"../scattergeo/attributes":1200}],1224:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../lib"),o=e("../../constants/numerical").BADNUM,i=e("../../lib/geojson_utils"),l=e("../../components/colorscale"),s=e("../../components/drawing"),u=e("../scatter/make_bubble_size_func"),c=e("../scatter/subtypes"),f=e("../../plots/mapbox/convert_text_opts"),p=e("../../components/fx/helpers").appendArrayPointValue,d=e("../../lib/svg_text_utils").NEWLINES,h=e("../../lib/svg_text_utils").BR_TAG_ALL;function v(){return{geojson:i.makeBlank(),layout:{visibility:"none"},paint:{}}}function m(e){var t,n,o,i,c=e[0].trace,f=c.marker,p=c.selectedpoints,d=a.isArrayOrTypedArray(f.color),h=a.isArrayOrTypedArray(f.size),v=a.isArrayOrTypedArray(f.opacity);function m(e){return c.opacity*e}function y(e){return e/2}d&&(n=l.hasColorscale(c,"marker")?l.makeColorScaleFuncFromTrace(f):a.identity),h&&(o=u(c)),v&&(i=function(e){var t=r(e)?+a.constrain(e,0,1):0;return m(t)});var g,b=[];for(t=0;t<e.length;t++){var _=e[t],w=_.lonlat;if(!x(w)){var k={};n&&(k.mcc=_.mcc=n(_.mc)),o&&(k.mrc=_.mrc=o(_.ms)),i&&(k.mo=i(_.mo)),p&&(k.selected=_.selected||0),b.push({type:"Feature",geometry:{type:"Point",coordinates:w},properties:k})}}if(p)for(g=s.makeSelectedPointStyleFns(c),t=0;t<b.length;t++){var T=b[t].properties;g.selectedOpacityFn&&(T.mo=m(g.selectedOpacityFn(T))),g.selectedColorFn&&(T.mcc=g.selectedColorFn(T)),g.selectedSizeFn&&(T.mrc=g.selectedSizeFn(T))}return{geojson:{type:"FeatureCollection",features:b},mcc:d||g&&g.selectedColorFn?{type:"identity",property:"mcc"}:f.color,mrc:h||g&&g.selectedSizeFn?{type:"identity",property:"mrc"}:y(f.size),mo:v||g&&g.selectedOpacityFn?{type:"identity",property:"mo"}:m(f.opacity)}}function y(e,t){for(var n=t._fullLayout,r=e[0].trace,o=r.marker||{},i=o.symbol,l=o.angle,s="circle"!==i?g(i):b,u="auto"!==l?g(l,!0):b,f=c.hasText(r)?g(r.text):b,v=[],m=0;m<e.length;m++){var y=e[m];if(!x(y.lonlat)){var _,w=r.texttemplate;if(w){var k=Array.isArray(w)?w[m]||"":w,T=r._module.formatLabels(y,r,n),E={};p(E,r,y.i);var O=r._meta||{};_=a.texttemplateString(k,T,n._d3locale,E,y,O)}else _=f(m);_&&(_=_.replace(d,"").replace(h,"\n")),v.push({type:"Feature",geometry:{type:"Point",coordinates:y.lonlat},properties:{symbol:s(m),angle:u(m),text:_}})}}return{type:"FeatureCollection",features:v}}function g(e,t){return a.isArrayOrTypedArray(e)?t?function(t){return r(e[t])?+e[t]:0}:function(t){return e[t]}:e?function(){return e}:b}function b(){return""}function x(e){return e[0]===o}t.exports=function(e,t){var n,r=t[0].trace,o=!0===r.visible&&0!==r._length,l="none"!==r.fill,s=c.hasLines(r),u=c.hasMarkers(r),p=c.hasText(r),d=u&&"circle"===r.marker.symbol,h=u&&"circle"!==r.marker.symbol,g=v(),b=v(),x=v(),_=v(),w={fill:g,line:b,circle:x,symbol:_};if(!o)return w;if((l||s)&&(n=i.calcTraceToLineCoords(t)),l&&(g.geojson=i.makePolygon(n),g.layout.visibility="visible",a.extendFlat(g.paint,{"fill-color":r.fillcolor})),s&&(b.geojson=i.makeLine(n),b.layout.visibility="visible",a.extendFlat(b.paint,{"line-width":r.line.width,"line-color":r.line.color,"line-opacity":r.opacity})),d){var k=m(t);x.geojson=k.geojson,x.layout.visibility="visible",a.extendFlat(x.paint,{"circle-color":k.mcc,"circle-radius":k.mrc,"circle-opacity":k.mo})}if((h||p)&&(_.geojson=y(t,e),a.extendFlat(_.layout,{visibility:"visible","icon-image":"{symbol}-15","text-field":"{text}"}),h&&(a.extendFlat(_.layout,{"icon-size":r.marker.size/10}),"angle"in r.marker&&"auto"!==r.marker.angle&&a.extendFlat(_.layout,{"icon-rotate":{type:"identity",property:"angle"},"icon-rotation-alignment":"map"}),_.layout["icon-allow-overlap"]=r.marker.allowoverlap,a.extendFlat(_.paint,{"icon-opacity":r.opacity*r.marker.opacity,"icon-color":r.marker.color})),p)){var T=(r.marker||{}).size,E=f(r.textposition,T);a.extendFlat(_.layout,{"text-size":r.textfont.size,"text-anchor":E.anchor,"text-offset":E.offset}),a.extendFlat(_.paint,{"text-color":r.textfont.color,"text-opacity":r.opacity})}return w}},{"../../components/colorscale":627,"../../components/drawing":637,"../../components/fx/helpers":651,"../../constants/numerical":725,"../../lib":750,"../../lib/geojson_utils":744,"../../lib/svg_text_utils":774,"../../plots/mapbox/convert_text_opts":855,"../scatter/make_bubble_size_func":1175,"../scatter/subtypes":1183,"fast-isnumeric":241}],1225:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../scatter/subtypes"),o=e("../scatter/marker_defaults"),i=e("../scatter/line_defaults"),l=e("../scatter/text_defaults"),s=e("../scatter/fillcolor_defaults"),u=e("./attributes");function c(e,t,n){var r=n("lon")||[],a=n("lat")||[],o=Math.min(r.length,a.length);return t._length=o,o}t.exports=function(e,t,n,f){function p(n,a){return r.coerce(e,t,u,n,a)}var d=c(e,t,p);if(d){if(p("text"),p("texttemplate"),p("hovertext"),p("hovertemplate"),p("mode"),p("below"),a.hasLines(t)&&(i(e,t,n,f,p,{noDash:!0}),p("connectgaps")),a.hasMarkers(t)){o(e,t,n,f,p,{noLine:!0}),p("marker.allowoverlap"),p("marker.angle");var h=t.marker;"circle"!==h.symbol&&(r.isArrayOrTypedArray(h.size)&&(h.size=h.size[0]),r.isArrayOrTypedArray(h.color)&&(h.color=h.color[0]))}a.hasText(t)&&l(e,t,f,p,{noSelect:!0}),p("fill"),"none"!==t.fill&&s(e,t,n,p),r.coerceSelectionMarkerOpacity(t,p)}else t.visible=!1}},{"../../lib":750,"../scatter/fillcolor_defaults":1166,"../scatter/line_defaults":1171,"../scatter/marker_defaults":1177,"../scatter/subtypes":1183,"../scatter/text_defaults":1184,"./attributes":1223}],1226:[function(e,t,n){"use strict";t.exports=function(e,t){return e.lon=t.lon,e.lat=t.lat,e}},{}],1227:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes");t.exports=function(e,t,n){var a={},o=n[t.subplot]._subplot,i=o.mockAxis,l=e.lonlat;return a.lonLabel=r.tickText(i,i.c2l(l[0]),!0).text,a.latLabel=r.tickText(i,i.c2l(l[1]),!0).text,a}},{"../../plots/cartesian/axes":799}],1228:[function(e,t,n){"use strict";var r=e("../../components/fx"),a=e("../../lib"),o=e("../scatter/get_trace_color"),i=a.fillText,l=e("../../constants/numerical").BADNUM;function s(e,t,n){if(!e.hovertemplate){var r=t.hi||e.hoverinfo,a=r.split("+"),o=-1!==a.indexOf("all"),l=-1!==a.indexOf("lon"),s=-1!==a.indexOf("lat"),u=t.lonlat,c=[];return o||l&&s?c.push("("+f(u[0])+", "+f(u[1])+")"):l?c.push(n.lon+f(u[0])):s&&c.push(n.lat+f(u[1])),(o||-1!==a.indexOf("text"))&&i(t,e,c),c.join("<br>")}function f(e){return e+"°"}}t.exports=function(e,t,n){var i=e.cd,u=i[0].trace,c=e.xa,f=e.ya,p=e.subplot,d=t>=0?Math.floor((t+180)/360):Math.ceil((t-180)/360),h=360*d,v=t-h;function m(e){var t=e.lonlat;if(t[0]===l)return 1/0;var r=a.modHalf(t[0],360),o=t[1],i=p.project([r,o]),s=i.x-c.c2p([v,o]),u=i.y-f.c2p([r,n]),d=Math.max(3,e.mrc||0);return Math.max(Math.sqrt(s*s+u*u)-d,1-3/d)}if(r.getClosest(i,m,e),!1!==e.index){var y=i[e.index],g=y.lonlat,b=[a.modHalf(g[0],360)+h,g[1]],x=c.c2p(b),_=f.c2p(b),w=y.mrc||1;e.x0=x-w,e.x1=x+w,e.y0=_-w,e.y1=_+w;var k={};k[u.subplot]={_subplot:p};var T=u._module.formatLabels(y,u,k);return e.lonLabel=T.lonLabel,e.latLabel=T.latLabel,e.color=o(u,y),e.extraText=s(u,y,i[0].t.labels),e.hovertemplate=u.hovertemplate,[e]}}},{"../../components/fx":655,"../../constants/numerical":725,"../../lib":750,"../scatter/get_trace_color":1168}],1229:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../scatter/marker_colorbar"),formatLabels:e("./format_labels"),calc:e("../scattergeo/calc"),plot:e("./plot"),hoverPoints:e("./hover"),eventData:e("./event_data"),selectPoints:e("./select"),styleOnSelect:function(e,t){if(t){var n=t[0].trace;n._glTrace.update(t)}},moduleType:"trace",name:"scattermapbox",basePlotModule:e("../../plots/mapbox"),categories:["mapbox","gl","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/mapbox":856,"../scatter/marker_colorbar":1176,"../scattergeo/calc":1201,"./attributes":1223,"./defaults":1225,"./event_data":1226,"./format_labels":1227,"./hover":1228,"./plot":1230,"./select":1231}],1230:[function(e,t,n){"use strict";var r=e("./convert"),a=e("../../plots/mapbox/constants").traceLayerPrefix,o=["fill","line","circle","symbol"];function i(e,t){this.type="scattermapbox",this.subplot=e,this.uid=t,this.sourceIds={fill:"source-"+t+"-fill",line:"source-"+t+"-line",circle:"source-"+t+"-circle",symbol:"source-"+t+"-symbol"},this.layerIds={fill:a+t+"-fill",line:a+t+"-line",circle:a+t+"-circle",symbol:a+t+"-symbol"},this.below=null}var l=i.prototype;l.addSource=function(e,t){this.subplot.map.addSource(this.sourceIds[e],{type:"geojson",data:t.geojson})},l.setSourceData=function(e,t){this.subplot.map.getSource(this.sourceIds[e]).setData(t.geojson)},l.addLayer=function(e,t,n){this.subplot.addLayer({type:e,id:this.layerIds[e],source:this.sourceIds[e],layout:t.layout,paint:t.paint},n)},l.update=function(e){var t,n,a,i=this.subplot,l=i.map,s=r(i.gd,e),u=i.belowLookup["trace-"+this.uid];if(u!==this.below){for(t=o.length-1;t>=0;t--)n=o[t],l.removeLayer(this.layerIds[n]);for(t=0;t<o.length;t++)n=o[t],a=s[n],this.addLayer(n,a,u);this.below=u}for(t=0;t<o.length;t++)n=o[t],a=s[n],i.setOptions(this.layerIds[n],"setLayoutProperty",a.layout),"visible"===a.layout.visibility&&(this.setSourceData(n,a),i.setOptions(this.layerIds[n],"setPaintProperty",a.paint));e[0].trace._glTrace=this},l.dispose=function(){for(var e=this.subplot.map,t=o.length-1;t>=0;t--){var n=o[t];e.removeLayer(this.layerIds[n]),e.removeSource(this.sourceIds[n])}},t.exports=function(e,t){for(var n=t[0].trace,a=new i(e,n.uid),l=r(e.gd,t),s=a.below=e.belowLookup["trace-"+n.uid],u=0;u<o.length;u++){var c=o[u],f=l[c];a.addSource(c,f),a.addLayer(c,f,s)}return t[0].trace._glTrace=a,a}},{"../../plots/mapbox/constants":854,"./convert":1224}],1231:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../scatter/subtypes"),o=e("../../constants/numerical").BADNUM;t.exports=function(e,t){var n,i=e.cd,l=e.xaxis,s=e.yaxis,u=[],c=i[0].trace;if(!a.hasMarkers(c))return[];if(!1===t)for(n=0;n<i.length;n++)i[n].selected=0;else for(n=0;n<i.length;n++){var f=i[n],p=f.lonlat;if(p[0]!==o){var d=[r.modHalf(p[0],360),p[1]],h=[l.c2p(d),s.c2p(d)];t.contains(h,null,n,e)?(u.push({pointNumber:n,lon:p[0],lat:p[1]}),f.selected=1):f.selected=0}}return u}},{"../../constants/numerical":725,"../../lib":750,"../scatter/subtypes":1183}],1232:[function(e,t,n){"use strict";var r=e("../../plots/template_attributes").hovertemplateAttrs,a=e("../../plots/template_attributes").texttemplateAttrs,o=e("../../lib/extend").extendFlat,i=e("../scatter/attributes"),l=e("../../plots/attributes"),s=i.line;t.exports={mode:i.mode,r:{valType:"data_array",editType:"calc+clearAxisTypes"},theta:{valType:"data_array",editType:"calc+clearAxisTypes"},r0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dr:{valType:"number",dflt:1,editType:"calc"},theta0:{valType:"any",dflt:0,editType:"calc+clearAxisTypes"},dtheta:{valType:"number",editType:"calc"},thetaunit:{valType:"enumerated",values:["radians","degrees","gradians"],dflt:"degrees",editType:"calc+clearAxisTypes"},text:i.text,texttemplate:a({editType:"plot"},{keys:["r","theta","text"]}),hovertext:i.hovertext,line:{color:s.color,width:s.width,dash:s.dash,shape:o({},s.shape,{values:["linear","spline"]}),smoothing:s.smoothing,editType:"calc"},connectgaps:i.connectgaps,marker:i.marker,cliponaxis:o({},i.cliponaxis,{dflt:!1}),textposition:i.textposition,textfont:i.textfont,fill:o({},i.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:i.fillcolor,hoverinfo:o({},l.hoverinfo,{flags:["r","theta","text","name"]}),hoveron:i.hoveron,hovertemplate:r(),selected:i.selected,unselected:i.unselected}},{"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../scatter/attributes":1158}],1233:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../../constants/numerical").BADNUM,o=e("../../plots/cartesian/axes"),i=e("../scatter/colorscale_calc"),l=e("../scatter/arrays_to_calcdata"),s=e("../scatter/calc_selection"),u=e("../scatter/calc").calcMarkerSize;t.exports=function(e,t){for(var n=e._fullLayout,c=t.subplot,f=n[c].radialaxis,p=n[c].angularaxis,d=f.makeCalcdata(t,"r"),h=p.makeCalcdata(t,"theta"),v=t._length,m=new Array(v),y=0;y<v;y++){var g=d[y],b=h[y],x=m[y]={};r(g)&&r(b)?(x.r=g,x.theta=b):x.r=a}var _=u(t,v);return t._extremes.x=o.findExtremes(f,d,{ppad:_}),i(e,t),l(m,t),s(m,t),m}},{"../../constants/numerical":725,"../../plots/cartesian/axes":799,"../scatter/arrays_to_calcdata":1157,"../scatter/calc":1159,"../scatter/calc_selection":1160,"../scatter/colorscale_calc":1161,"fast-isnumeric":241}],1234:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../scatter/subtypes"),o=e("../scatter/marker_defaults"),i=e("../scatter/line_defaults"),l=e("../scatter/line_shape_defaults"),s=e("../scatter/text_defaults"),u=e("../scatter/fillcolor_defaults"),c=e("../scatter/constants").PTS_LINESONLY,f=e("./attributes");function p(e,t,n,p){function h(n,a){return r.coerce(e,t,f,n,a)}var v=d(e,t,p,h);if(v){h("thetaunit"),h("mode",v<c?"lines+markers":"lines"),h("text"),h("hovertext"),"fills"!==t.hoveron&&h("hovertemplate"),a.hasLines(t)&&(i(e,t,n,p,h),l(e,t,h),h("connectgaps")),a.hasMarkers(t)&&o(e,t,n,p,h,{gradient:!0}),a.hasText(t)&&(h("texttemplate"),s(e,t,p,h));var m=[];(a.hasMarkers(t)||a.hasText(t))&&(h("cliponaxis"),h("marker.maxdisplayed"),m.push("points")),h("fill"),"none"!==t.fill&&(u(e,t,n,h),a.hasLines(t)||l(e,t,h)),"tonext"!==t.fill&&"toself"!==t.fill||m.push("fills"),h("hoveron",m.join("+")||"points"),r.coerceSelectionMarkerOpacity(t,h)}else t.visible=!1}function d(e,t,n,r){var a,o=r("r"),i=r("theta");if(o)i?a=Math.min(o.length,i.length):(a=o.length,r("theta0"),r("dtheta"));else{if(!i)return 0;a=t.theta.length,r("r0"),r("dr")}return t._length=a,a}t.exports={handleRThetaDefaults:d,supplyDefaults:p}},{"../../lib":750,"../scatter/constants":1162,"../scatter/fillcolor_defaults":1166,"../scatter/line_defaults":1171,"../scatter/line_shape_defaults":1173,"../scatter/marker_defaults":1177,"../scatter/subtypes":1183,"../scatter/text_defaults":1184,"./attributes":1232}],1235:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes");t.exports=function(e,t,n){var o,i,l={},s=n[t.subplot]._subplot;s?(o=s.radialAxis,i=s.angularAxis):(s=n[t.subplot],o=s.radialaxis,i=s.angularaxis);var u=o.c2l(e.r);l.rLabel=a.tickText(o,u,!0).text;var c="degrees"===i.thetaunit?r.rad2deg(e.theta):e.theta;return l.thetaLabel=a.tickText(i,c,!0).text,l}},{"../../lib":750,"../../plots/cartesian/axes":799}],1236:[function(e,t,n){"use strict";var r=e("../scatter/hover");function a(e,t,n,a){var i=r(e,t,n,a);if(i&&!1!==i[0].index){var l=i[0];if(void 0===l.index)return i;var s=e.subplot,u=l.cd[l.index],c=l.trace;if(s.isPtInside(u))return l.xLabelVal=void 0,l.yLabelVal=void 0,o(u,c,s,l),l.hovertemplate=c.hovertemplate,i}}function o(e,t,n,r){var a=n.radialAxis,o=n.angularAxis;a._hovertitle="r",o._hovertitle="θ";var i={};i[t.subplot]={_subplot:n};var l=t._module.formatLabels(e,t,i);r.rLabel=l.rLabel,r.thetaLabel=l.thetaLabel;var s=e.hi||t.hoverinfo,u=[];function c(e,t){u.push(e._hovertitle+": "+t)}if(!t.hovertemplate){var f=s.split("+");-1!==f.indexOf("all")&&(f=["r","theta","text"]),-1!==f.indexOf("r")&&c(a,r.rLabel),-1!==f.indexOf("theta")&&c(o,r.thetaLabel),-1!==f.indexOf("text")&&r.text&&(u.push(r.text),delete r.text),r.extraText=u.join("<br>")}}t.exports={hoverPoints:a,makeHoverPointText:o}},{"../scatter/hover":1169}],1237:[function(e,t,n){"use strict";t.exports={moduleType:"trace",name:"scatterpolar",basePlotModule:e("../../plots/polar"),categories:["polar","symbols","showLegend","scatter-like"],attributes:e("./attributes"),supplyDefaults:e("./defaults").supplyDefaults,colorbar:e("../scatter/marker_colorbar"),formatLabels:e("./format_labels"),calc:e("./calc"),plot:e("./plot"),style:e("../scatter/style").style,styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover").hoverPoints,selectPoints:e("../scatter/select"),meta:{}}},{"../../plots/polar":865,"../scatter/marker_colorbar":1176,"../scatter/select":1180,"../scatter/style":1182,"./attributes":1232,"./calc":1233,"./defaults":1234,"./format_labels":1235,"./hover":1236,"./plot":1238}],1238:[function(e,t,n){"use strict";var r=e("../scatter/plot"),a=e("../../constants/numerical").BADNUM;t.exports=function(e,t,n){for(var o=t.layers.frontplot.select("g.scatterlayer"),i={xaxis:t.xaxis,yaxis:t.yaxis,plot:t.framework,layerClipId:t._hasClipOnAxisFalse?t.clipIds.forTraces:null},l=t.radialAxis,s=t.angularAxis,u=0;u<n.length;u++)for(var c=n[u],f=0;f<c.length;f++){var p=c[f],d=p.r;if(d===a)p.x=p.y=a;else{var h=l.c2g(d),v=s.c2g(p.theta);p.x=h*Math.cos(v),p.y=h*Math.sin(v)}}r(e,i,n,o)}},{"../../constants/numerical":725,"../scatter/plot":1179}],1239:[function(e,t,n){"use strict";var r=e("../scatterpolar/attributes"),a=e("../scattergl/attributes"),o=e("../../plots/template_attributes").texttemplateAttrs;t.exports={mode:r.mode,r:r.r,theta:r.theta,r0:r.r0,dr:r.dr,theta0:r.theta0,dtheta:r.dtheta,thetaunit:r.thetaunit,text:r.text,texttemplate:o({editType:"plot"},{keys:["r","theta","text"]}),hovertext:r.hovertext,hovertemplate:r.hovertemplate,line:a.line,connectgaps:a.connectgaps,marker:a.marker,fill:a.fill,fillcolor:a.fillcolor,textposition:a.textposition,textfont:a.textfont,hoverinfo:r.hoverinfo,selected:r.selected,unselected:r.unselected}},{"../../plots/template_attributes":877,"../scattergl/attributes":1210,"../scatterpolar/attributes":1232}],1240:[function(e,t,n){"use strict";var r=e("../scatter/colorscale_calc"),a=e("../scatter/calc").calcMarkerSize,o=e("../scattergl/convert"),i=e("../../plots/cartesian/axes"),l=e("../scattergl/constants").TOO_MANY_POINTS;t.exports=function(e,t){var n=e._fullLayout,s=t.subplot,u=n[s].radialaxis,c=n[s].angularaxis,f=t._r=u.makeCalcdata(t,"r"),p=t._theta=c.makeCalcdata(t,"theta"),d=t._length,h={};d<f.length&&(f=f.slice(0,d)),d<p.length&&(p=p.slice(0,d)),h.r=f,h.theta=p,r(e,t);var v,m=h.opts=o.style(e,t);return d<l?v=a(t,d):m.marker&&(v=2*(m.marker.sizeAvg||Math.max(m.marker.size,3))),t._extremes.x=i.findExtremes(u,f,{ppad:v}),[{x:!1,y:!1,t:h,trace:t}]}},{"../../plots/cartesian/axes":799,"../scatter/calc":1159,"../scatter/colorscale_calc":1161,"../scattergl/constants":1212,"../scattergl/convert":1213}],1241:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../scatter/subtypes"),o=e("../scatterpolar/defaults").handleRThetaDefaults,i=e("../scatter/marker_defaults"),l=e("../scatter/line_defaults"),s=e("../scatter/text_defaults"),u=e("../scatter/fillcolor_defaults"),c=e("../scatter/constants").PTS_LINESONLY,f=e("./attributes");t.exports=function(e,t,n,p){function d(n,a){return r.coerce(e,t,f,n,a)}var h=o(e,t,p,d);h?(d("thetaunit"),d("mode",h<c?"lines+markers":"lines"),d("text"),d("hovertext"),"fills"!==t.hoveron&&d("hovertemplate"),a.hasLines(t)&&(l(e,t,n,p,d),d("connectgaps")),a.hasMarkers(t)&&i(e,t,n,p,d),a.hasText(t)&&(d("texttemplate"),s(e,t,p,d)),d("fill"),"none"!==t.fill&&u(e,t,n,d),r.coerceSelectionMarkerOpacity(t,d)):t.visible=!1}},{"../../lib":750,"../scatter/constants":1162,"../scatter/fillcolor_defaults":1166,"../scatter/line_defaults":1171,"../scatter/marker_defaults":1177,"../scatter/subtypes":1183,"../scatter/text_defaults":1184,"../scatterpolar/defaults":1234,"./attributes":1239}],1242:[function(e,t,n){"use strict";var r=e("../scatterpolar/format_labels");t.exports=function(e,t,n){var a=e.i;return"r"in e||(e.r=t._r[a]),"theta"in e||(e.theta=t._theta[a]),r(e,t,n)}},{"../scatterpolar/format_labels":1235}],1243:[function(e,t,n){"use strict";var r=e("../scattergl/hover"),a=e("../scatterpolar/hover").makeHoverPointText;function o(e,t,n,o){var i=e.cd,l=i[0].t,s=l.r,u=l.theta,c=r.hoverPoints(e,t,n,o);if(c&&!1!==c[0].index){var f=c[0];if(void 0===f.index)return c;var p=e.subplot,d=f.cd[f.index],h=f.trace;if(d.r=s[f.index],d.theta=u[f.index],p.isPtInside(d))return f.xLabelVal=void 0,f.yLabelVal=void 0,a(d,h,p,f),c}}t.exports={hoverPoints:o}},{"../scattergl/hover":1218,"../scatterpolar/hover":1236}],1244:[function(e,t,n){"use strict";t.exports={moduleType:"trace",name:"scatterpolargl",basePlotModule:e("../../plots/polar"),categories:["gl","regl","polar","symbols","showLegend","scatter-like"],attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../scatter/marker_colorbar"),formatLabels:e("./format_labels"),calc:e("./calc"),plot:e("./plot"),hoverPoints:e("./hover").hoverPoints,selectPoints:e("../scattergl/select"),meta:{}}},{"../../plots/polar":865,"../scatter/marker_colorbar":1176,"../scattergl/select":1222,"./attributes":1239,"./calc":1240,"./defaults":1241,"./format_labels":1242,"./hover":1243,"./plot":1245}],1245:[function(e,t,n){"use strict";var r=e("@plotly/point-cluster"),a=e("fast-isnumeric"),o=e("../scattergl/plot"),i=e("../scattergl/scene_update"),l=e("../scattergl/convert"),s=e("../../lib"),u=e("../scattergl/constants").TOO_MANY_POINTS;t.exports=function(e,t,n){if(n.length){var c=t.radialAxis,f=t.angularAxis,p=i(e,t);return n.forEach((function(n){if(n&&n[0]&&n[0].trace){var o,i=n[0],d=i.trace,h=i.t,v=d._length,m=h.r,y=h.theta,g=h.opts,b=m.slice(),x=y.slice();for(o=0;o<m.length;o++)t.isPtInside({r:m[o],theta:y[o]})||(b[o]=NaN,x[o]=NaN);var _=new Array(2*v),w=Array(v),k=Array(v);for(o=0;o<v;o++){var T,E,O=b[o];if(a(O)){var M=c.c2g(O),S=f.c2g(x[o],d.thetaunit);T=M*Math.cos(S),E=M*Math.sin(S)}else T=E=NaN;w[o]=_[2*o]=T,k[o]=_[2*o+1]=E}h.tree=r(_),g.marker&&v>=u&&(g.marker.cluster=h.tree),g.marker&&(g.markerSel.positions=g.markerUnsel.positions=g.marker.positions=_),g.line&&_.length>1&&s.extendFlat(g.line,l.linePositions(e,d,_)),g.text&&(s.extendFlat(g.text,{positions:_},l.textPosition(e,d,g.text,g.marker)),s.extendFlat(g.textSel,{positions:_},l.textPosition(e,d,g.text,g.markerSel)),s.extendFlat(g.textUnsel,{positions:_},l.textPosition(e,d,g.text,g.markerUnsel))),g.fill&&!p.fill2d&&(p.fill2d=!0),g.marker&&!p.scatter2d&&(p.scatter2d=!0),g.line&&!p.line2d&&(p.line2d=!0),g.text&&!p.glText&&(p.glText=!0),p.lineOptions.push(g.line),p.fillOptions.push(g.fill),p.markerOptions.push(g.marker),p.markerSelectedOptions.push(g.markerSel),p.markerUnselectedOptions.push(g.markerUnsel),p.textOptions.push(g.text),p.textSelectedOptions.push(g.textSel),p.textUnselectedOptions.push(g.textUnsel),p.selectBatch.push([]),p.unselectBatch.push([]),h.x=w,h.y=k,h.rawx=w,h.rawy=k,h.r=m,h.theta=y,h.positions=_,h._scene=p,h.index=p.count,p.count++}})),o(e,t,n)}}},{"../../lib":750,"../scattergl/constants":1212,"../scattergl/convert":1213,"../scattergl/plot":1220,"../scattergl/scene_update":1221,"@plotly/point-cluster":57,"fast-isnumeric":241}],1246:[function(e,t,n){"use strict";var r=e("../../plots/template_attributes").hovertemplateAttrs,a=e("../../plots/template_attributes").texttemplateAttrs,o=e("../scatter/attributes"),i=e("../../plots/attributes"),l=e("../../components/colorscale/attributes"),s=e("../../components/drawing/attributes").dash,u=e("../../lib/extend").extendFlat,c=o.marker,f=o.line,p=c.line;t.exports={a:{valType:"data_array",editType:"calc"},b:{valType:"data_array",editType:"calc"},c:{valType:"data_array",editType:"calc"},sum:{valType:"number",dflt:0,min:0,editType:"calc"},mode:u({},o.mode,{dflt:"markers"}),text:u({},o.text,{}),texttemplate:a({editType:"plot"},{keys:["a","b","c","text"]}),hovertext:u({},o.hovertext,{}),line:{color:f.color,width:f.width,dash:s,shape:u({},f.shape,{values:["linear","spline"]}),smoothing:f.smoothing,editType:"calc"},connectgaps:o.connectgaps,cliponaxis:o.cliponaxis,fill:u({},o.fill,{values:["none","toself","tonext"],dflt:"none"}),fillcolor:o.fillcolor,marker:u({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:u({width:p.width,editType:"calc"},l("marker.line")),gradient:c.gradient,editType:"calc"},l("marker")),textfont:o.textfont,textposition:o.textposition,selected:o.selected,unselected:o.unselected,hoverinfo:u({},i.hoverinfo,{flags:["a","b","c","text","name"]}),hoveron:o.hoveron,hovertemplate:r()}},{"../../components/colorscale/attributes":622,"../../components/drawing/attributes":636,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../scatter/attributes":1158}],1247:[function(e,t,n){"use strict";var r=e("fast-isnumeric"),a=e("../scatter/colorscale_calc"),o=e("../scatter/arrays_to_calcdata"),i=e("../scatter/calc_selection"),l=e("../scatter/calc").calcMarkerSize,s=["a","b","c"],u={a:["b","c"],b:["a","c"],c:["a","b"]};t.exports=function(e,t){var n,c,f,p,d,h,v=e._fullLayout[t.subplot],m=v.sum,y=t.sum||m,g={a:t.a,b:t.b,c:t.c};for(n=0;n<s.length;n++)if(f=s[n],!g[f]){for(d=g[u[f][0]],h=g[u[f][1]],p=new Array(d.length),c=0;c<d.length;c++)p[c]=y-d[c]-h[c];g[f]=p}var b,x,_,w,k,T,E=t._length,O=new Array(E);for(n=0;n<E;n++)b=g.a[n],x=g.b[n],_=g.c[n],r(b)&&r(x)&&r(_)?(b=+b,x=+x,_=+_,w=m/(b+x+_),1!==w&&(b*=w,x*=w,_*=w),T=b,k=_-x,O[n]={x:k,y:T,a:b,b:x,c:_}):O[n]={x:!1,y:!1};return l(t,E),a(e,t),o(O,t),i(O,t),O}},{"../scatter/arrays_to_calcdata":1157,"../scatter/calc":1159,"../scatter/calc_selection":1160,"../scatter/colorscale_calc":1161,"fast-isnumeric":241}],1248:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../scatter/constants"),o=e("../scatter/subtypes"),i=e("../scatter/marker_defaults"),l=e("../scatter/line_defaults"),s=e("../scatter/line_shape_defaults"),u=e("../scatter/text_defaults"),c=e("../scatter/fillcolor_defaults"),f=e("./attributes");t.exports=function(e,t,n,p){function d(n,a){return r.coerce(e,t,f,n,a)}var h,v=d("a"),m=d("b"),y=d("c");if(v?(h=v.length,m?(h=Math.min(h,m.length),y&&(h=Math.min(h,y.length))):h=y?Math.min(h,y.length):0):m&&y&&(h=Math.min(m.length,y.length)),h){t._length=h,d("sum"),d("text"),d("hovertext"),"fills"!==t.hoveron&&d("hovertemplate");var g=h<a.PTS_LINESONLY?"lines+markers":"lines";d("mode",g),o.hasLines(t)&&(l(e,t,n,p,d),s(e,t,d),d("connectgaps")),o.hasMarkers(t)&&i(e,t,n,p,d,{gradient:!0}),o.hasText(t)&&(d("texttemplate"),u(e,t,p,d));var b=[];(o.hasMarkers(t)||o.hasText(t))&&(d("cliponaxis"),d("marker.maxdisplayed"),b.push("points")),d("fill"),"none"!==t.fill&&(c(e,t,n,d),o.hasLines(t)||s(e,t,d)),"tonext"!==t.fill&&"toself"!==t.fill||b.push("fills"),d("hoveron",b.join("+")||"points"),r.coerceSelectionMarkerOpacity(t,d)}else t.visible=!1}},{"../../lib":750,"../scatter/constants":1162,"../scatter/fillcolor_defaults":1166,"../scatter/line_defaults":1171,"../scatter/line_shape_defaults":1173,"../scatter/marker_defaults":1177,"../scatter/subtypes":1183,"../scatter/text_defaults":1184,"./attributes":1246}],1249:[function(e,t,n){"use strict";t.exports=function(e,t,n,r,a){if(t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),r[a]){var o=r[a];e.a=o.a,e.b=o.b,e.c=o.c}else e.a=t.a,e.b=t.b,e.c=t.c;return e}},{}],1250:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes");t.exports=function(e,t,n){var a={},o=n[t.subplot]._subplot;return a.aLabel=r.tickText(o.aaxis,e.a,!0).text,a.bLabel=r.tickText(o.baxis,e.b,!0).text,a.cLabel=r.tickText(o.caxis,e.c,!0).text,a}},{"../../plots/cartesian/axes":799}],1251:[function(e,t,n){"use strict";var r=e("../scatter/hover");t.exports=function(e,t,n,a){var o=r(e,t,n,a);if(o&&!1!==o[0].index){var i=o[0];if(void 0===i.index){var l=1-i.y0/e.ya._length,s=e.xa._length,u=s*l/2,c=s-u;return i.x0=Math.max(Math.min(i.x0,c),u),i.x1=Math.max(Math.min(i.x1,c),u),o}var f=i.cd[i.index],p=i.trace,d=i.subplot;i.a=f.a,i.b=f.b,i.c=f.c,i.xLabelVal=void 0,i.yLabelVal=void 0;var h={};h[p.subplot]={_subplot:d};var v=p._module.formatLabels(f,p,h);i.aLabel=v.aLabel,i.bLabel=v.bLabel,i.cLabel=v.cLabel;var m=f.hi||p.hoverinfo,y=[];if(!p.hovertemplate){var g=m.split("+");-1!==g.indexOf("all")&&(g=["a","b","c"]),-1!==g.indexOf("a")&&b(d.aaxis,i.aLabel),-1!==g.indexOf("b")&&b(d.baxis,i.bLabel),-1!==g.indexOf("c")&&b(d.caxis,i.cLabel)}return i.extraText=y.join("<br>"),i.hovertemplate=p.hovertemplate,o}function b(e,t){y.push(e._hovertitle+": "+t)}}},{"../scatter/hover":1169}],1252:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../scatter/marker_colorbar"),formatLabels:e("./format_labels"),calc:e("./calc"),plot:e("./plot"),style:e("../scatter/style").style,styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("../scatter/select"),eventData:e("./event_data"),moduleType:"trace",name:"scatterternary",basePlotModule:e("../../plots/ternary"),categories:["ternary","symbols","showLegend","scatter-like"],meta:{}}},{"../../plots/ternary":878,"../scatter/marker_colorbar":1176,"../scatter/select":1180,"../scatter/style":1182,"./attributes":1246,"./calc":1247,"./defaults":1248,"./event_data":1249,"./format_labels":1250,"./hover":1251,"./plot":1253}],1253:[function(e,t,n){"use strict";var r=e("../scatter/plot");t.exports=function(e,t,n){var a=t.plotContainer;a.select(".scatterlayer").selectAll("*").remove();var o={xaxis:t.xaxis,yaxis:t.yaxis,plot:a,layerClipId:t._hasClipOnAxisFalse?t.clipIdRelative:null},i=t.layers.frontplot.select("g.scatterlayer");r(e,o,n,i)}},{"../scatter/plot":1179}],1254:[function(e,t,n){"use strict";var r=e("../scatter/attributes"),a=e("../../components/colorscale/attributes"),o=e("../../plots/template_attributes").hovertemplateAttrs,i=e("../scattergl/attributes"),l=e("../../plots/cartesian/constants").idRegex,s=e("../../plot_api/plot_template").templatedArray,u=e("../../lib/extend").extendFlat,c=r.marker,f=c.line,p=u(a("marker.line",{editTypeOverride:"calc"}),{width:u({},f.width,{editType:"calc"}),editType:"calc"}),d=u(a("marker"),{symbol:c.symbol,size:u({},c.size,{editType:"markerSize"}),sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,opacity:c.opacity,colorbar:c.colorbar,line:p,editType:"calc"});function h(e){return{valType:"info_array",freeLength:!0,editType:"calc",items:{valType:"subplotid",regex:l[e],editType:"plot"}}}d.color.editType=d.cmin.editType=d.cmax.editType="style",t.exports={dimensions:s("dimension",{visible:{valType:"boolean",dflt:!0,editType:"calc"},label:{valType:"string",editType:"calc"},values:{valType:"data_array",editType:"calc+clearAxisTypes"},axis:{type:{valType:"enumerated",values:["linear","log","date","category"],editType:"calc+clearAxisTypes"},matches:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc+clearAxisTypes"},editType:"calc+clearAxisTypes"}),text:u({},i.text,{}),hovertext:u({},i.hovertext,{}),hovertemplate:o(),marker:d,xaxes:h("x"),yaxes:h("y"),diagonal:{visible:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},showupperhalf:{valType:"boolean",dflt:!0,editType:"calc"},showlowerhalf:{valType:"boolean",dflt:!0,editType:"calc"},selected:{marker:i.selected.marker,editType:"calc"},unselected:{marker:i.unselected.marker,editType:"calc"},opacity:i.opacity}},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plot_api/plot_template":788,"../../plots/cartesian/constants":805,"../../plots/template_attributes":877,"../scatter/attributes":1158,"../scattergl/attributes":1210}],1255:[function(e,t,n){"use strict";var r=e("regl-line2d"),a=e("../../registry"),o=e("../../lib/prepare_regl"),i=e("../../plots/get_data").getModuleCalcData,l=e("../../plots/cartesian"),s=e("../../plots/cartesian/axis_ids").getFromId,u=e("../../plots/cartesian/axes").shouldShowZeroLine,c="splom";function f(e){var t=e._fullLayout,n=a.getModule(c),r=i(e.calcdata,n)[0],l=o(e,["ANGLE_instanced_arrays","OES_element_index_uint"]);l&&(t._hasOnlyLargeSploms&&h(e),n.plot(e,{},r))}function p(e){var t=e.calcdata,n=e._fullLayout;n._hasOnlyLargeSploms&&h(e);for(var r=0;r<t.length;r++){var a=t[r][0],o=a.trace,i=n._splomScenes[o.uid];"splom"===o.type&&i&&i.matrix&&d(e,o,i)}}function d(e,t,n){for(var r=n.matrixOptions.data.length,a=t._visibleDims,o=n.viewOpts.ranges=new Array(r),i=0;i<a.length;i++){var l=a[i],u=o[i]=new Array(4),c=s(e,t._diag[l][0]);c&&(u[0]=c.r2l(c.range[0]),u[2]=c.r2l(c.range[1]));var f=s(e,t._diag[l][1]);f&&(u[1]=f.r2l(f.range[0]),u[3]=f.r2l(f.range[1]))}n.selectBatch.length||n.unselectBatch.length?n.matrix.update({ranges:o},{ranges:o}):n.matrix.update({ranges:o})}function h(e){var t=e._fullLayout,n=t._glcanvas.data()[0].regl,a=t._splomGrid;a||(a=t._splomGrid=r(n)),a.update(v(e))}function v(e){var t,n=e._fullLayout,r=n._size,a=[0,0,n.width,n.height],o={};function i(e,t,n,r,i,l){var s=t[e+"color"],u=t[e+"width"],c=String(s+u);c in o?o[c].data.push(NaN,NaN,n,r,i,l):o[c]={data:[n,r,i,l],join:"rect",thickness:u,color:s,viewport:a,range:a,overlay:!1}}for(t in n._splomSubplots){var l,s,c=n._plots[t],f=c.xaxis,p=c.yaxis,d=f._gridVals,h=p._gridVals,v=r.b+p.domain[0]*r.h,m=-p._m,y=-m*p.r2l(p.range[0],p.calendar);if(f.showgrid)for(t=0;t<d.length;t++)l=f._offset+f.l2p(d[t].x),i("grid",f,l,v,l,v+p._length);if(p.showgrid)for(t=0;t<h.length;t++)s=v+y+m*h[t].x,i("grid",p,f._offset,s,f._offset+f._length,s);u(e,f,p)&&(l=f._offset+f.l2p(0),i("zeroline",f,l,v,l,v+p._length)),u(e,p,f)&&(s=v+y+0,i("zeroline",p,f._offset,s,f._offset+f._length,s))}var g=[];for(t in o)g.push(o[t]);return g}function m(e,t,n,r){var a,o={};if(r._splomScenes){for(a=0;a<e.length;a++){var i=e[a];"splom"===i.type&&(o[i.uid]=1)}for(a=0;a<n.length;a++){var s=n[a];if(!o[s.uid]){var u=r._splomScenes[s.uid];u&&u.destroy&&u.destroy(),r._splomScenes[s.uid]=null,delete r._splomScenes[s.uid]}}}0===Object.keys(r._splomScenes||{}).length&&delete r._splomScenes,r._splomGrid&&!t._hasOnlyLargeSploms&&r._hasOnlyLargeSploms&&(r._splomGrid.destroy(),r._splomGrid=null,delete r._splomGrid),l.clean(e,t,n,r)}t.exports={name:c,attr:l.attr,attrRegex:l.attrRegex,layoutAttributes:l.layoutAttributes,supplyLayoutDefaults:l.supplyLayoutDefaults,drawFramework:l.drawFramework,plot:f,drag:p,updateGrid:h,clean:m,updateFx:l.updateFx,toSVG:l.toSVG}},{"../../lib/prepare_regl":763,"../../plots/cartesian":812,"../../plots/cartesian/axes":799,"../../plots/cartesian/axis_ids":802,"../../plots/get_data":836,"../../registry":882,"regl-line2d":509}],1256:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axis_ids"),o=e("../scatter/calc").calcMarkerSize,i=e("../scatter/calc").calcAxisExpansion,l=e("../scatter/colorscale_calc"),s=e("../scattergl/convert").markerSelection,u=e("../scattergl/convert").markerStyle,c=e("./scene_update"),f=e("../../constants/numerical").BADNUM,p=e("../scattergl/constants").TOO_MANY_POINTS;t.exports=function(e,t){var n,d,h,v,m,y=t.dimensions,g=t._length,b={},x=b.cdata=[],_=b.data=[],w=t._visibleDims=[];function k(e,n){for(var a=e.makeCalcdata({v:n.values,vcalendar:t.calendar},"v"),o=0;o<a.length;o++)a[o]=a[o]===f?NaN:a[o];x.push(a),_.push("log"===e.type?r.simpleMap(a,e.c2l):a)}for(n=0;n<y.length;n++)if(h=y[n],h.visible){if(v=a.getFromId(e,t._diag[n][0]),m=a.getFromId(e,t._diag[n][1]),v&&m&&v.type!==m.type){r.log("Skipping splom dimension "+n+" with conflicting axis types");continue}v?(k(v,h),m&&"category"===m.type&&(m._categories=v._categories.slice())):k(m,h),w.push(n)}l(e,t),r.extendFlat(b,u(t));var T,E=x.length,O=E*g>p;for(T=O?2*(b.sizeAvg||Math.max(b.size,3)):o(t,g),d=0;d<w.length;d++)n=w[d],h=y[n],v=a.getFromId(e,t._diag[n][0])||{},m=a.getFromId(e,t._diag[n][1])||{},i(e,t,v,m,x[d],x[d],T);var M=c(e,t);return M.matrix||(M.matrix=!0),M.matrixOptions=b,M.selectedOptions=s(t,t.selected),M.unselectedOptions=s(t,t.unselected),[{x:!1,y:!1,t:{},trace:t}]}},{"../../constants/numerical":725,"../../lib":750,"../../plots/cartesian/axis_ids":802,"../scatter/calc":1159,"../scatter/colorscale_calc":1161,"../scattergl/constants":1212,"../scattergl/convert":1213,"./scene_update":1263}],1257:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/array_container_defaults"),o=e("./attributes"),i=e("../scatter/subtypes"),l=e("../scatter/marker_defaults"),s=e("../parcoords/merge_length"),u=e("../scattergl/helpers").isOpenSymbol;function c(e,t){function n(n,a){return r.coerce(e,t,o.dimensions,n,a)}n("label");var a=n("values");a&&a.length?n("visible"):t.visible=!1,n("axis.type"),n("axis.matches")}function f(e,t,n,r){var a,o,i=t.dimensions,l=i.length,s=t.showupperhalf,u=t.showlowerhalf,c=t.diagonal.visible,f=new Array(l),p=new Array(l);for(a=0;a<l;a++){var d=a?a+1:"";f[a]="x"+d,p[a]="y"+d}var h=r("xaxes",f),v=r("yaxes",p),m=t._diag=new Array(l);t._xaxes={},t._yaxes={};var y=[],g=[];function b(e,r,a,o){if(e){var i=e.charAt(0),l=n._splomAxes[i];if(t["_"+i+"axes"][e]=1,o.push(e),!(e in l)){var s=l[e]={};a&&(s.label=a.label||"",a.visible&&a.axis&&(a.axis.type&&(s.type=a.axis.type),a.axis.matches&&(s.matches=r)))}}}var x=!c&&!u,_=!c&&!s;for(t._axesDim={},a=0;a<l;a++){var w=i[a],k=0===a,T=a===l-1,E=k&&x||T&&_?void 0:h[a],O=k&&_||T&&x?void 0:v[a];b(E,O,w,y),b(O,E,w,g),m[a]=[E,O],t._axesDim[E]=a,t._axesDim[O]=a}for(a=0;a<y.length;a++)for(o=0;o<g.length;o++){var M=y[a]+g[o];a>o&&s||a<o&&u?n._splomSubplots[M]=1:a!==o||!c&&u&&s||(n._splomSubplots[M]=1)}(!u||!c&&s&&u)&&(n._splomGridDflt.xside="bottom",n._splomGridDflt.yside="left")}t.exports=function(e,t,n,p){function d(n,a){return r.coerce(e,t,o,n,a)}var h=a(e,t,{name:"dimensions",handleItemDefaults:c}),v=d("diagonal.visible"),m=d("showupperhalf"),y=d("showlowerhalf"),g=s(t,h,"values");if(g&&(v||m||y)){d("text"),d("hovertext"),d("hovertemplate"),l(e,t,n,p,d);var b=u(t.marker.symbol),x=i.isBubble(t);d("marker.line.width",b||x?1:0),f(e,t,p,d),r.coerceSelectionMarkerOpacity(t,d)}else t.visible=!1}},{"../../lib":750,"../../plots/array_container_defaults":794,"../parcoords/merge_length":1129,"../scatter/marker_defaults":1177,"../scatter/subtypes":1183,"../scattergl/helpers":1217,"./attributes":1254}],1258:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../scatter/colorscale_calc"),o=e("../scattergl/convert").markerStyle;t.exports=function(e,t){var n=t.trace,i=e._fullLayout._splomScenes[n.uid];if(i){a(e,n),r.extendFlat(i.matrixOptions,o(n));var l=r.extendFlat({},i.matrixOptions,i.viewOpts);i.matrix.update(l,null)}}},{"../../lib":750,"../scatter/colorscale_calc":1161,"../scattergl/convert":1213}],1259:[function(e,t,n){"use strict";n.getDimIndex=function(e,t){for(var n=t._id,r=n.charAt(0),a={x:0,y:1}[r],o=e._visibleDims,i=0;i<o.length;i++){var l=o[i];if(e._diag[l][a]===n)return i}return!1}},{}],1260:[function(e,t,n){"use strict";var r=e("./helpers"),a=e("../scattergl/hover").calcHover;function o(e,t,n){var o=e.cd,i=o[0].trace,l=e.scene,s=l.matrixOptions.cdata,u=e.xa,c=e.ya,f=u.c2p(t),p=c.c2p(n),d=e.distance,h=r.getDimIndex(i,u),v=r.getDimIndex(i,c);if(!1===h||!1===v)return[e];for(var m,y,g=s[h],b=s[v],x=d,_=0;_<g.length;_++){var w=g[_],k=b[_],T=u.c2p(w)-f,E=c.c2p(k)-p,O=Math.sqrt(T*T+E*E);O<x&&(x=y=O,m=_)}return e.index=m,e.distance=x,e.dxy=y,void 0===m?[e]:[a(e,g,b,i)]}t.exports={hoverPoints:o}},{"../scattergl/hover":1218,"./helpers":1259}],1261:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../components/grid");t.exports={moduleType:"trace",name:"splom",basePlotModule:e("./base_plot"),categories:["gl","regl","cartesian","symbols","showLegend","scatter-like"],attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:e("../scatter/marker_colorbar"),calc:e("./calc"),plot:e("./plot"),hoverPoints:e("./hover").hoverPoints,selectPoints:e("./select"),editStyle:e("./edit_style"),meta:{}},r.register(a)},{"../../components/grid":659,"../../registry":882,"../scatter/marker_colorbar":1176,"./attributes":1254,"./base_plot":1255,"./calc":1256,"./defaults":1257,"./edit_style":1258,"./hover":1260,"./plot":1262,"./select":1264}],1262:[function(e,t,n){"use strict";var r=e("regl-splom"),a=e("../../lib"),o=e("../../plots/cartesian/axis_ids"),i=e("../../components/dragelement/helpers").selectMode;function l(e,t){var n,l,s,u,c,f=e._fullLayout,p=f._size,d=t.trace,h=t.t,v=f._splomScenes[d.uid],m=v.matrixOptions,y=m.cdata,g=f._glcanvas.data()[0].regl,b=f.dragmode;if(0!==y.length){m.lower=d.showupperhalf,m.upper=d.showlowerhalf,m.diagonal=d.diagonal.visible;var x=d._visibleDims,_=y.length,w=v.viewOpts={};for(w.ranges=new Array(_),w.domains=new Array(_),c=0;c<x.length;c++){s=x[c];var k=w.ranges[c]=new Array(4),T=w.domains[c]=new Array(4);n=o.getFromId(e,d._diag[s][0]),n&&(k[0]=n._rl[0],k[2]=n._rl[1],T[0]=n.domain[0],T[2]=n.domain[1]),l=o.getFromId(e,d._diag[s][1]),l&&(k[1]=l._rl[0],k[3]=l._rl[1],T[1]=l.domain[0],T[3]=l.domain[1])}w.viewport=[p.l,p.b,p.w+p.l,p.h+p.b],!0===v.matrix&&(v.matrix=r(g));var E=f.clickmode.indexOf("select")>-1,O=i(b)||!!d.selectedpoints||E,M=!0;if(O){var S=d._length;if(d.selectedpoints){v.selectBatch=d.selectedpoints;var C=d.selectedpoints,A={};for(s=0;s<C.length;s++)A[C[s]]=!0;var P=[];for(s=0;s<S;s++)A[s]||P.push(s);v.unselectBatch=P}var L=h.xpx=new Array(_),D=h.ypx=new Array(_);for(c=0;c<x.length;c++){if(s=x[c],n=o.getFromId(e,d._diag[s][0]),n)for(L[c]=new Array(S),u=0;u<S;u++)L[c][u]=n.c2p(y[c][u]);if(l=o.getFromId(e,d._diag[s][1]),l)for(D[c]=new Array(S),u=0;u<S;u++)D[c][u]=l.c2p(y[c][u])}if(v.selectBatch.length||v.unselectBatch.length){var j=a.extendFlat({},m,v.unselectedOptions,w),I=a.extendFlat({},m,v.selectedOptions,w);v.matrix.update(j,I),M=!1}}else h.xpx=h.ypx=null;if(M){var R=a.extendFlat({},m,w);v.matrix.update(R,null)}}}t.exports=function(e,t,n){if(n.length)for(var r=0;r<n.length;r++)l(e,n[r][0])}},{"../../components/dragelement/helpers":633,"../../lib":750,"../../plots/cartesian/axis_ids":802,"regl-splom":511}],1263:[function(e,t,n){"use strict";var r=e("../../lib");t.exports=function(e,t){var n=e._fullLayout,a=t.uid,o=n._splomScenes;o||(o=n._splomScenes={});var i={dirty:!0,selectBatch:[],unselectBatch:[]},l={matrix:!1,selectBatch:[],unselectBatch:[]},s=o[t.uid];return s||(s=o[a]=r.extendFlat({},i,l),s.draw=function(){s.matrix&&s.matrix.draw&&(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&&s.matrix.destroy&&s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||r.extendFlat(s,i),s}},{"../../lib":750}],1264:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../scatter/subtypes"),o=e("./helpers");t.exports=function(e,t){var n=e.cd,i=n[0].trace,l=n[0].t,s=e.scene,u=s.matrixOptions.cdata,c=e.xaxis,f=e.yaxis,p=[];if(!s)return p;var d=!a.hasMarkers(i)&&!a.hasText(i);if(!0!==i.visible||d)return p;var h=o.getDimIndex(i,c),v=o.getDimIndex(i,f);if(!1===h||!1===v)return p;var m=l.xpx[h],y=l.ypx[v],g=u[h],b=u[v],x=[],_=[];if(!1!==t&&!t.degenerate)for(var w=0;w<g.length;w++)t.contains([m[w],y[w]],null,w,e)?(x.push(w),p.push({pointNumber:w,x:g[w],y:b[w]})):_.push(w);var k=s.matrixOptions;return x.length||_.length?s.selectBatch.length||s.unselectBatch.length||s.matrix.update(s.unselectedOptions,r.extendFlat({},k,s.selectedOptions,s.viewOpts)):s.matrix.update(k,null),s.selectBatch=x,s.unselectBatch=_,p}},{"../../lib":750,"../scatter/subtypes":1183,"./helpers":1259}],1265:[function(e,t,n){"use strict";var r=e("../../components/colorscale/attributes"),a=e("../../plots/template_attributes").hovertemplateAttrs,o=e("../mesh3d/attributes"),i=e("../../plots/attributes"),l=e("../../lib/extend").extendFlat,s={x:{valType:"data_array",editType:"calc+clearAxisTypes"},y:{valType:"data_array",editType:"calc+clearAxisTypes"},z:{valType:"data_array",editType:"calc+clearAxisTypes"},u:{valType:"data_array",editType:"calc"},v:{valType:"data_array",editType:"calc"},w:{valType:"data_array",editType:"calc"},starts:{x:{valType:"data_array",editType:"calc"},y:{valType:"data_array",editType:"calc"},z:{valType:"data_array",editType:"calc"},editType:"calc"},maxdisplayed:{valType:"integer",min:0,dflt:1e3,editType:"calc"},sizeref:{valType:"number",editType:"calc",min:0,dflt:1},text:{valType:"string",dflt:"",editType:"calc"},hovertext:{valType:"string",dflt:"",editType:"calc"},hovertemplate:a({editType:"calc"},{keys:["tubex","tubey","tubez","tubeu","tubev","tubew","norm","divergence"]}),showlegend:l({},i.showlegend,{dflt:!1})};l(s,r("",{colorAttr:"u/v/w norm",showScaleDflt:!0,editTypeOverride:"calc"}));var u=["opacity","lightposition","lighting"];u.forEach((function(e){s[e]=o[e]})),s.hoverinfo=l({},i.hoverinfo,{editType:"calc",flags:["x","y","z","u","v","w","norm","divergence","text","name"],dflt:"x+y+z+norm+text+name"}),s.transforms=void 0,t.exports=s},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../mesh3d/attributes":1099}],1266:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/colorscale/calc");function o(e,t){t._len=Math.min(t.u.length,t.v.length,t.w.length,t.x.length,t.y.length,t.z.length),t._u=s(t.u,t._len),t._v=s(t.v,t._len),t._w=s(t.w,t._len),t._x=s(t.x,t._len),t._y=s(t.y,t._len),t._z=s(t.z,t._len);var n=i(t);t._gridFill=n.fill,t._Xs=n.Xs,t._Ys=n.Ys,t._Zs=n.Zs,t._len=n.len;var r,o,l,u=0;t.starts&&(r=s(t.starts.x||[]),o=s(t.starts.y||[]),l=s(t.starts.z||[]),u=Math.min(r.length,o.length,l.length)),t._startsX=r||[],t._startsY=o||[],t._startsZ=l||[];var c,f=0,p=1/0;for(c=0;c<t._len;c++){var d=t._u[c],h=t._v[c],v=t._w[c],m=Math.sqrt(d*d+h*h+v*v);f=Math.max(f,m),p=Math.min(p,m)}for(a(e,t,{vals:[p,f],containerStr:"",cLetter:"c"}),c=0;c<u;c++){var y=r[c];n.xMax=Math.max(n.xMax,y),n.xMin=Math.min(n.xMin,y);var g=o[c];n.yMax=Math.max(n.yMax,g),n.yMin=Math.min(n.yMin,g);var b=l[c];n.zMax=Math.max(n.zMax,b),n.zMin=Math.min(n.zMin,b)}t._slen=u,t._normMax=f,t._xbnds=[n.xMin,n.xMax],t._ybnds=[n.yMin,n.yMax],t._zbnds=[n.zMin,n.zMax]}function i(e){var t,n,a,o,i,s,u,c,f,p,d,h,v=e._x,m=e._y,y=e._z,g=e._len,b=-1/0,x=1/0,_=-1/0,w=1/0,k=-1/0,T=1/0,E="";for(g&&(u=v[0],f=m[0],d=y[0]),g>1&&(c=v[g-1],p=m[g-1],h=y[g-1]),t=0;t<g;t++)b=Math.max(b,v[t]),x=Math.min(x,v[t]),_=Math.max(_,m[t]),w=Math.min(w,m[t]),k=Math.max(k,y[t]),T=Math.min(T,y[t]),o||v[t]===u||(o=!0,E+="x"),i||m[t]===f||(i=!0,E+="y"),s||y[t]===d||(s=!0,E+="z");o||(E+="x"),i||(E+="y"),s||(E+="z");var O=l(e._x),M=l(e._y),S=l(e._z);E=E.replace("x",(u>c?"-":"+")+"x"),E=E.replace("y",(f>p?"-":"+")+"y"),E=E.replace("z",(d>h?"-":"+")+"z");var C=function(){g=0,O=[],M=[],S=[]};(!g||g<O.length*M.length*S.length)&&C();var A=function(e){return"x"===e?v:"y"===e?m:y},P=function(e){return"x"===e?O:"y"===e?M:S},L=function(e){return e[g-1]<e[0]?-1:1},D=A(E[1]),j=A(E[3]),I=A(E[5]),R=P(E[1]).length,z=P(E[3]).length,N=P(E[5]).length,F=!1,B=function(e,t,n){return R*(z*e+t)+n},V=L(A(E[1])),H=L(A(E[3])),U=L(A(E[5]));for(t=0;t<N-1;t++){for(n=0;n<z-1;n++){for(a=0;a<R-1;a++){var W=B(t,n,a),q=B(t,n,a+1),$=B(t,n+1,a),G=B(t+1,n,a);if(D[W]*V<D[q]*V&&j[W]*H<j[$]*H&&I[W]*U<I[G]*U||(F=!0),F)break}if(F)break}if(F)break}return F&&(r.warn("Encountered arbitrary coordinates! Unable to input data grid."),C()),{xMin:x,yMin:w,zMin:T,xMax:b,yMax:_,zMax:k,Xs:O,Ys:M,Zs:S,len:g,fill:E}}function l(e){return r.distinctVals(e).vals}function s(e,t){if(void 0===t&&(t=e.length),r.isTypedArray(e))return e.subarray(0,t);for(var n=[],a=0;a<t;a++)n[a]=+e[a];return n}t.exports={calc:o,filter:s,processGrid:i}},{"../../components/colorscale/calc":623,"../../lib":750}],1267:[function(e,t,n){"use strict";var r=e("gl-streamtube3d"),a=r.createTubeMesh,o=e("../../lib"),i=e("../../lib/gl_format_color").parseColorScale,l=e("../../components/colorscale").extractOpts,s=e("../../plots/gl3d/zip3"),u={xaxis:0,yaxis:1,zaxis:2};function c(e,t){this.scene=e,this.uid=t,this.mesh=null,this.data=null}var f=c.prototype;function p(e){var t,n=e.length;return t=n>2?e.slice(1,n-1):2===n?[(e[0]+e[1])/2]:e,t}function d(e){var t=e.length;return 1===t?[.5,.5]:[e[1]-e[0],e[t-1]-e[t-2]]}function h(e,t){var n=e.fullSceneLayout,a=e.dataScale,c=t._len,f={};function h(e,t){var r=n[t],i=a[u[t]];return o.simpleMap(e,(function(e){return r.d2l(e)*i}))}if(f.vectors=s(h(t._u,"xaxis"),h(t._v,"yaxis"),h(t._w,"zaxis"),c),!c)return{positions:[],cells:[]};var v=h(t._Xs,"xaxis"),m=h(t._Ys,"yaxis"),y=h(t._Zs,"zaxis");f.meshgrid=[v,m,y],f.gridFill=t._gridFill;var g=t._slen;if(g)f.startingPositions=s(h(t._startsX,"xaxis"),h(t._startsY,"yaxis"),h(t._startsZ,"zaxis"));else{for(var b=m[0],x=p(v),_=p(y),w=new Array(x.length*_.length),k=0,T=0;T<x.length;T++)for(var E=0;E<_.length;E++)w[k++]=[x[T],b,_[E]];f.startingPositions=w}f.colormap=i(t),f.tubeSize=t.sizeref,f.maxLength=t.maxdisplayed;var O=h(t._xbnds,"xaxis"),M=h(t._ybnds,"yaxis"),S=h(t._zbnds,"zaxis"),C=d(v),A=d(m),P=d(y),L=[[O[0]-C[0],M[0]-A[0],S[0]-P[0]],[O[1]+C[1],M[1]+A[1],S[1]+P[1]]],D=r(f,L),j=l(t);D.vertexIntensityBounds=[j.min/t._normMax,j.max/t._normMax];var I=t.lightposition;return D.lightPosition=[I.x,I.y,I.z],D.ambient=t.lighting.ambient,D.diffuse=t.lighting.diffuse,D.specular=t.lighting.specular,D.roughness=t.lighting.roughness,D.fresnel=t.lighting.fresnel,D.opacity=t.opacity,t._pad=D.tubeScale*t.sizeref*2,D}function v(e,t){var n=e.glplot.gl,r=h(e,t),o=a(n,r),i=new c(e,t.uid);return i.mesh=o,i.data=t,o._trace=i,e.glplot.add(o),i}f.handlePick=function(e){var t=this.scene.fullSceneLayout,n=this.scene.dataScale;function r(e,r){var a=t[r],o=n[u[r]];return a.l2c(e)/o}if(e.object===this.mesh){var a=e.data.position,o=e.data.velocity;return e.traceCoordinate=[r(a[0],"xaxis"),r(a[1],"yaxis"),r(a[2],"zaxis"),r(o[0],"xaxis"),r(o[1],"yaxis"),r(o[2],"zaxis"),e.data.intensity*this.data._normMax,e.data.divergence],e.textLabel=this.data.hovertext||this.data.text,!0}},f.update=function(e){this.data=e;var t=h(this.scene,e);this.mesh.update(t)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},t.exports=v},{"../../components/colorscale":627,"../../lib":750,"../../lib/gl_format_color":746,"../../plots/gl3d/zip3":852,"gl-streamtube3d":323}],1268:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/colorscale/defaults"),o=e("./attributes");t.exports=function(e,t,n,i){function l(n,a){return r.coerce(e,t,o,n,a)}var s=l("u"),u=l("v"),c=l("w"),f=l("x"),p=l("y"),d=l("z");s&&s.length&&u&&u.length&&c&&c.length&&f&&f.length&&p&&p.length&&d&&d.length?(l("starts.x"),l("starts.y"),l("starts.z"),l("maxdisplayed"),l("sizeref"),l("lighting.ambient"),l("lighting.diffuse"),l("lighting.specular"),l("lighting.roughness"),l("lighting.fresnel"),l("lightposition.x"),l("lightposition.y"),l("lightposition.z"),a(e,t,i,l,{prefix:"",cLetter:"c"}),l("text"),l("hovertext"),l("hovertemplate"),t._length=null):t.visible=!1}},{"../../components/colorscale/defaults":625,"../../lib":750,"./attributes":1265}],1269:[function(e,t,n){"use strict";t.exports={moduleType:"trace",name:"streamtube",basePlotModule:e("../../plots/gl3d"),categories:["gl3d","showLegend"],attributes:e("./attributes"),supplyDefaults:e("./defaults"),colorbar:{min:"cmin",max:"cmax"},calc:e("./calc").calc,plot:e("./convert"),eventData:function(e,t){return e.tubex=e.x,e.tubey=e.y,e.tubez=e.z,e.tubeu=t.traceCoordinate[3],e.tubev=t.traceCoordinate[4],e.tubew=t.traceCoordinate[5],e.norm=t.traceCoordinate[6],e.divergence=t.traceCoordinate[7],delete e.x,delete e.y,delete e.z,e},meta:{}}},{"../../plots/gl3d":841,"./attributes":1265,"./calc":1266,"./convert":1267,"./defaults":1268}],1270:[function(e,t,n){"use strict";var r=e("../../plots/attributes"),a=e("../../plots/template_attributes").hovertemplateAttrs,o=e("../../plots/template_attributes").texttemplateAttrs,i=e("../../components/colorscale/attributes"),l=e("../../plots/domain").attributes,s=e("../pie/attributes"),u=e("./constants"),c=e("../../lib/extend").extendFlat;t.exports={labels:{valType:"data_array",editType:"calc"},parents:{valType:"data_array",editType:"calc"},values:{valType:"data_array",editType:"calc"},branchvalues:{valType:"enumerated",values:["remainder","total"],dflt:"remainder",editType:"calc"},count:{valType:"flaglist",flags:["branches","leaves"],dflt:"leaves",editType:"calc"},level:{valType:"any",editType:"plot",anim:!0},maxdepth:{valType:"integer",editType:"plot",dflt:-1},marker:c({colors:{valType:"data_array",editType:"calc"},line:{color:c({},s.marker.line.color,{dflt:null}),width:c({},s.marker.line.width,{dflt:1}),editType:"calc"},editType:"calc"},i("marker",{colorAttr:"colors",anim:!1})),leaf:{opacity:{valType:"number",editType:"style",min:0,max:1},editType:"plot"},text:s.text,textinfo:{valType:"flaglist",flags:["label","text","value","current path","percent root","percent entry","percent parent"],extras:["none"],editType:"plot"},texttemplate:o({editType:"plot"},{keys:u.eventDataKeys.concat(["label","value"])}),hovertext:s.hovertext,hoverinfo:c({},r.hoverinfo,{flags:["label","text","value","name","current path","percent root","percent entry","percent parent"],dflt:"label+text+value+name"}),hovertemplate:a({},{keys:u.eventDataKeys}),textfont:s.textfont,insidetextorientation:s.insidetextorientation,insidetextfont:s.insidetextfont,outsidetextfont:c({},s.outsidetextfont,{}),rotation:{valType:"angle",dflt:0,editType:"plot"},sort:s.sort,domain:l({name:"sunburst",trace:!0,editType:"calc"})}},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/domain":826,"../../plots/template_attributes":877,"../pie/attributes":1132,"./constants":1273}],1271:[function(e,t,n){"use strict";var r=e("../../plots/plots");n.name="sunburst",n.plot=function(e,t,a,o){r.plotBasePlot(n.name,e,t,a,o)},n.clean=function(e,t,a,o){r.cleanBasePlot(n.name,e,t,a,o)}},{"../../plots/plots":862}],1272:[function(e,t,n){"use strict";var r=e("d3-hierarchy"),a=e("fast-isnumeric"),o=e("../../lib"),i=e("../../components/colorscale").makeColorScaleFuncFromTrace,l=e("../pie/calc").makePullColorFn,s=e("../pie/calc").generateExtendedColors,u=e("../../components/colorscale").calc,c=e("../../constants/numerical").ALMOST_EQUAL,f={},p={};function d(e,t,n){var r=0,a=e.children;if(a){for(var o=a.length,i=0;i<o;i++)r+=d(a[i],t,n);n.branches&&r++}else n.leaves&&r++;return e.value=e.data.data.value=r,t._values||(t._values=[]),t._values[e.data.data.i]=r,r}n.calc=function(e,t){var n,s,f,p,h=e._fullLayout,v=t.ids,m=o.isArrayOrTypedArray(v),y=t.labels,g=t.parents,b=t.values,x=o.isArrayOrTypedArray(b),_=[],w={},k={},T=function(e,t){w[e]?w[e].push(t):w[e]=[t],k[t]=1},E=function(e){return e||"number"===typeof e},O=function(e){return!x||a(b[e])&&b[e]>=0};m?(n=Math.min(v.length,g.length),s=function(e){return E(v[e])&&O(e)},f=function(e){return String(v[e])}):(n=Math.min(y.length,g.length),s=function(e){return E(y[e])&&O(e)},f=function(e){return String(y[e])}),x&&(n=Math.min(n,b.length));for(var M=0;M<n;M++)if(s(M)){var S=f(M),C=E(g[M])?String(g[M]):"",A={i:M,id:S,pid:C,label:E(y[M])?String(y[M]):""};x&&(A.v=+b[M]),_.push(A),T(C,S)}if(w[""]){if(w[""].length>1){for(var P=o.randstr(),L=0;L<_.length;L++)""===_[L].pid&&(_[L].pid=P);_.unshift({hasMultipleRoots:!0,id:P,pid:"",label:""})}}else{var D,j=[];for(D in w)k[D]||j.push(D);if(1!==j.length)return o.warn(["Multiple implied roots, cannot build",t.type,"hierarchy of",t.name+".","These roots include:",j.join(", ")].join(" "));D=j[0],_.unshift({hasImpliedRoot:!0,id:D,pid:"",label:D})}try{p=r.stratify().id((function(e){return e.id})).parentId((function(e){return e.pid}))(_)}catch(V){return o.warn(["Failed to build",t.type,"hierarchy of",t.name+".","Error:",V.message].join(" "))}var I=r.hierarchy(p),R=!1;if(x)switch(t.branchvalues){case"remainder":I.sum((function(e){return e.data.v}));break;case"total":I.each((function(e){var n=e.data.data,r=n.v;if(e.children){var a=e.children.reduce((function(e,t){return e+t.data.data.v}),0);if((n.hasImpliedRoot||n.hasMultipleRoots)&&(r=a),r<a*c)return R=!0,o.warn(["Total value for node",e.data.data.id,"of",t.name,"is smaller than the sum of its children.","\nparent value =",r,"\nchildren sum =",a].join(" "))}e.value=r}));break}else d(I,t,{branches:-1!==t.count.indexOf("branches"),leaves:-1!==t.count.indexOf("leaves")});if(!R){var z,N;t.sort&&I.sort((function(e,t){return t.value-e.value}));var F=t.marker.colors||[],B=!!F.length;return t._hasColorscale?(B||(F=x?t.values:t._values),u(e,t,{vals:F,containerStr:"marker",cLetter:"c"}),N=i(t.marker)):z=l(h["_"+t.type+"colormap"]),I.each((function(e){var n=e.data.data;n.color=t._hasColorscale?N(F[n.i]):z(F[n.i],n.id)})),_[0].hierarchy=I,_}},n._runCrossTraceCalc=function(e,t){var n=t._fullLayout,r=t.calcdata,a=n[e+"colorway"],o=n["_"+e+"colormap"];n["extend"+e+"colors"]&&(a=s(a,"treemap"===e?p:f));var i=0;function l(e){var t=e.data.data,n=t.id;!1===t.color&&(o[n]?t.color=o[n]:e.parent?e.parent.parent?t.color=e.parent.data.data.color:(o[n]=t.color=a[i%a.length],i++):t.color="rgba(0,0,0,0)")}for(var u=0;u<r.length;u++){var c=r[u],d=c[0];d.trace.type===e&&d.hierarchy&&d.hierarchy.each(l)}},n.crossTraceCalc=function(e){return n._runCrossTraceCalc("sunburst",e)}},{"../../components/colorscale":627,"../../constants/numerical":725,"../../lib":750,"../pie/calc":1134,"d3-hierarchy":161,"fast-isnumeric":241}],1273:[function(e,t,n){"use strict";t.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"linear",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"]}},{}],1274:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),o=e("../../plots/domain").defaults,i=e("../bar/defaults").handleText,l=e("../../components/colorscale"),s=l.hasColorscale,u=l.handleDefaults;t.exports=function(e,t,n,l){function c(n,o){return r.coerce(e,t,a,n,o)}var f=c("labels"),p=c("parents");if(f&&f.length&&p&&p.length){var d=c("values");d&&d.length?c("branchvalues"):c("count"),c("level"),c("maxdepth");var h=c("marker.line.width");h&&c("marker.line.color",l.paper_bgcolor),c("marker.colors");var v=t._hasColorscale=s(e,"marker","colors")||(e.marker||{}).coloraxis;v&&u(e,t,l,c,{prefix:"marker.",cLetter:"c"}),c("leaf.opacity",v?1:.7);var m=c("text");c("texttemplate"),t.texttemplate||c("textinfo",Array.isArray(m)?"text+label":"label"),c("hovertext"),c("hovertemplate");var y="auto";i(e,t,l,c,y,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),c("insidetextorientation"),c("sort"),c("rotation"),o(t,l,c),t._length=null}else t.visible=!1}},{"../../components/colorscale":627,"../../lib":750,"../../plots/domain":826,"../bar/defaults":896,"./attributes":1270}],1275:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../registry"),o=e("../../components/fx/helpers").appendArrayPointValue,i=e("../../components/fx"),l=e("../../lib"),s=e("../../lib/events"),u=e("./helpers"),c=e("../pie/helpers"),f=c.formatPieValue;function p(e,t,n){for(var r=e.data.data,a={curveNumber:t.index,pointNumber:r.i,data:t._input,fullData:t},i=0;i<n.length;i++){var l=n[i];l in e&&(a[l]=e[l])}return"parentString"in e&&!u.isHierarchyRoot(e)&&(a.parent=e.parentString),o(a,t,r.i),a}t.exports=function(e,t,n,o,c){var d=o[0],h=d.trace,v=d.hierarchy,m="sunburst"===h.type,y="treemap"===h.type;"_hasHoverLabel"in h||(h._hasHoverLabel=!1),"_hasHoverEvent"in h||(h._hasHoverEvent=!1);var g=function(a){var o=n._fullLayout;if(!n._dragging&&!1!==o.hovermode){var s=n._fullData[h.index],g=a.data.data,b=g.i,x=u.isHierarchyRoot(a),_=u.getParent(v,a),w=u.getValue(a),k=function(e){return l.castOption(s,b,e)},T=k("hovertemplate"),E=i.castHoverinfo(s,o,b),O=o.separators;if(T||E&&"none"!==E&&"skip"!==E){var M,S;m&&(M=d.cx+a.pxmid[0]*(1-a.rInscribed),S=d.cy+a.pxmid[1]*(1-a.rInscribed)),y&&(M=a._hoverX,S=a._hoverY);var C,A={},P=[],L=[],D=function(e){return-1!==P.indexOf(e)};E&&(P="all"===E?s._module.attributes.hoverinfo.flags:E.split("+")),A.label=g.label,D("label")&&A.label&&L.push(A.label),g.hasOwnProperty("v")&&(A.value=g.v,A.valueLabel=f(A.value,O),D("value")&&L.push(A.valueLabel)),A.currentPath=a.currentPath=u.getPath(a.data),D("current path")&&!x&&L.push(A.currentPath);var j=[],I=function(){-1===j.indexOf(C)&&(L.push(C),j.push(C))};A.percentParent=a.percentParent=w/u.getValue(_),A.parent=a.parentString=u.getPtLabel(_),D("percent parent")&&(C=u.formatPercent(A.percentParent,O)+" of "+A.parent,I()),A.percentEntry=a.percentEntry=w/u.getValue(t),A.entry=a.entry=u.getPtLabel(t),!D("percent entry")||x||a.onPathbar||(C=u.formatPercent(A.percentEntry,O)+" of "+A.entry,I()),A.percentRoot=a.percentRoot=w/u.getValue(v),A.root=a.root=u.getPtLabel(v),D("percent root")&&!x&&(C=u.formatPercent(A.percentRoot,O)+" of "+A.root,I()),A.text=k("hovertext")||k("text"),D("text")&&(C=A.text,l.isValidTextValue(C)&&L.push(C));var R={trace:s,y:S,text:L.join("<br>"),name:T||D("name")?s.name:void 0,color:k("hoverlabel.bgcolor")||g.color,borderColor:k("hoverlabel.bordercolor"),fontFamily:k("hoverlabel.font.family"),fontSize:k("hoverlabel.font.size"),fontColor:k("hoverlabel.font.color"),nameLength:k("hoverlabel.namelength"),textAlign:k("hoverlabel.align"),hovertemplate:T,hovertemplateLabels:A,eventData:[p(a,s,c.eventDataKeys)]};m&&(R.x0=M-a.rInscribed*a.rpx1,R.x1=M+a.rInscribed*a.rpx1,R.idealAlign=a.pxmid[0]<0?"left":"right"),y&&(R.x=M,R.idealAlign=M<0?"left":"right"),i.loneHover(R,{container:o._hoverlayer.node(),outerContainer:o._paper.node(),gd:n}),h._hasHoverLabel=!0}if(y){var z=e.select("path.surface");c.styleOne(z,a,s,{hovered:!0})}h._hasHoverEvent=!0,n.emit("plotly_hover",{points:[p(a,s,c.eventDataKeys)],event:r.event})}},b=function(t){var a=n._fullLayout,o=n._fullData[h.index],l=r.select(this).datum();if(h._hasHoverEvent&&(t.originalEvent=r.event,n.emit("plotly_unhover",{points:[p(l,o,c.eventDataKeys)],event:r.event}),h._hasHoverEvent=!1),h._hasHoverLabel&&(i.loneUnhover(a._hoverlayer.node()),h._hasHoverLabel=!1),y){var s=e.select("path.surface");c.styleOne(s,l,o,{hovered:!1})}},x=function(e){var t=n._fullLayout,o=n._fullData[h.index],l=m&&(u.isHierarchyRoot(e)||u.isLeaf(e)),f=u.getPtId(e),d=u.isEntry(e)?u.findEntryWithChild(v,f):u.findEntryWithLevel(v,f),y=u.getPtId(d),g={points:[p(e,o,c.eventDataKeys)],event:r.event};l||(g.nextLevel=y);var b=s.triggerHandler(n,"plotly_"+h.type+"click",g);if(!1!==b&&t.hovermode&&(n._hoverdata=[p(e,o,c.eventDataKeys)],i.click(n,r.event)),!l&&!1!==b&&!n._dragging&&!n._transitioning){a.call("_storeDirectGUIEdit",o,t._tracePreGUI[o.uid],{level:o.level});var x={data:[{level:y}],traces:[h.index]},_={frame:{redraw:!1,duration:c.transitionTime},transition:{duration:c.transitionTime,easing:c.transitionEasing},mode:"immediate",fromcurrent:!0};i.loneUnhover(t._hoverlayer.node()),a.call("animate",n,x,_)}};e.on("mouseover",g),e.on("mouseout",b),e.on("click",x)}},{"../../components/fx":655,"../../components/fx/helpers":651,"../../lib":750,"../../lib/events":739,"../../registry":882,"../pie/helpers":1137,"./helpers":1276,d3:169}],1276:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/color"),o=e("../../lib/setcursor"),i=e("../pie/helpers");function l(e,t,r){return{color:n.getOutsideTextFontKey("color",e,t,r),family:n.getOutsideTextFontKey("family",e,t,r),size:n.getOutsideTextFontKey("size",e,t,r)}}function s(e,t,o,i){var l=(i||{}).onPathbar,s=t.data.data,u=s.i,c=r.castOption(e,u,(l?"pathbar.textfont":"insidetextfont")+".color");return!c&&e._input.textfont&&(c=r.castOption(e._input,u,"textfont.color")),{color:c||a.contrast(s.color),family:n.getInsideTextFontKey("family",e,t,o,i),size:n.getInsideTextFontKey("size",e,t,o,i)}}function u(e){return e.data.data.pid}n.findEntryWithLevel=function(e,t){var r;return t&&e.eachAfter((function(e){if(n.getPtId(e)===t)return r=e.copy()})),r||e},n.findEntryWithChild=function(e,t){var r;return e.eachAfter((function(e){for(var a=e.children||[],o=0;o<a.length;o++){var i=a[o];if(n.getPtId(i)===t)return r=e.copy()}})),r||e},n.isEntry=function(e){return!e.parent},n.isLeaf=function(e){return!e.children},n.getPtId=function(e){return e.data.data.id},n.getPtLabel=function(e){return e.data.data.label},n.getValue=function(e){return e.value},n.isHierarchyRoot=function(e){return""===u(e)},n.setSliceCursor=function(e,t,r){var a=r.isTransitioning;if(!a){var i=e.datum();a=r.hideOnRoot&&n.isHierarchyRoot(i)||r.hideOnLeaves&&n.isLeaf(i)}o(e,a?null:"pointer")},n.getInsideTextFontKey=function(e,t,n,a,o){var i=(o||{}).onPathbar,l=i?"pathbar.textfont":"insidetextfont",s=n.data.data.i;return r.castOption(t,s,l+"."+e)||r.castOption(t,s,"textfont."+e)||a.size},n.getOutsideTextFontKey=function(e,t,n,a){var o=n.data.data.i;return r.castOption(t,o,"outsidetextfont."+e)||r.castOption(t,o,"textfont."+e)||a.size},n.isOutsideText=function(e,t){return!e._hasColorscale&&n.isHierarchyRoot(t)},n.determineTextFont=function(e,t,r,a){return n.isOutsideText(e,t)?l(e,t,r):s(e,t,r,a)},n.hasTransition=function(e){return!!(e&&e.duration>0)},n.getMaxDepth=function(e){return e.maxdepth>=0?e.maxdepth:1/0},n.isHeader=function(e,t){return!(n.isLeaf(e)||e.depth===t._maxDepth-1)},n.getParent=function(e,t){return n.findEntryWithLevel(e,u(t))},n.listPath=function(e,t){var r=e.parent;if(!r)return[];var a=t?[r.data[t]]:[r];return n.listPath(r,t).concat(a)},n.getPath=function(e){return n.listPath(e,"label").join("/")+"/"},n.formatValue=i.formatPieValue,n.formatPercent=function(e,t){var n=r.formatPercent(e,0);return"0%"===n&&(n=i.formatPiePercent(e,t)),n}},{"../../components/color":615,"../../lib":750,"../../lib/setcursor":770,"../pie/helpers":1137}],1277:[function(e,t,n){"use strict";t.exports={moduleType:"trace",name:"sunburst",basePlotModule:e("./base_plot"),categories:[],animatable:!0,attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults"),supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc").calc,crossTraceCalc:e("./calc").crossTraceCalc,plot:e("./plot").plot,style:e("./style").style,colorbar:e("../scatter/marker_colorbar"),meta:{}}},{"../scatter/marker_colorbar":1176,"./attributes":1270,"./base_plot":1271,"./calc":1272,"./defaults":1274,"./layout_attributes":1278,"./layout_defaults":1279,"./plot":1280,"./style":1281}],1278:[function(e,t,n){"use strict";t.exports={sunburstcolorway:{valType:"colorlist",editType:"calc"},extendsunburstcolors:{valType:"boolean",dflt:!0,editType:"calc"}}},{}],1279:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t){function n(n,o){return r.coerce(e,t,a,n,o)}n("sunburstcolorway",t.colorway),n("extendsunburstcolors")}},{"../../lib":750,"./layout_attributes":1278}],1280:[function(e,t,n){"use strict";var r=e("d3"),a=e("d3-hierarchy"),o=e("../../components/drawing"),i=e("../../lib"),l=e("../../lib/svg_text_utils"),s=e("../bar/uniform_text"),u=s.recordMinTextSize,c=s.clearMinTextSize,f=e("../pie/plot"),p=e("../pie/helpers").getRotationAngle,d=f.computeTransform,h=f.transformInsideText,v=e("./style").styleOne,m=e("../bar/style").resizeText,y=e("./fx"),g=e("./constants"),b=e("./helpers");function x(e,t,a,s){var c=e._fullLayout,f=!c.uniformtext.mode&&b.hasTransition(s),m=r.select(a),x=m.selectAll("g.slice"),T=t[0],E=T.trace,O=T.hierarchy,M=b.findEntryWithLevel(O,E.level),S=b.getMaxDepth(E),C=c._size,A=E.domain,P=C.w*(A.x[1]-A.x[0]),L=C.h*(A.y[1]-A.y[0]),D=.5*Math.min(P,L),j=T.cx=C.l+C.w*(A.x[1]+A.x[0])/2,I=T.cy=C.t+C.h*(1-A.y[0])-L/2;if(!M)return x.remove();var R=null,z={};f&&x.each((function(e){z[b.getPtId(e)]={rpx0:e.rpx0,rpx1:e.rpx1,x0:e.x0,x1:e.x1,transform:e.transform},!R&&b.isEntry(e)&&(R=e)}));var N=_(M).descendants(),F=M.height+1,B=0,V=S;T.hasMultipleRoots&&b.isHierarchyRoot(M)&&(N=N.slice(1),F-=1,B=1,V+=1),N=N.filter((function(e){return e.y1<=V}));var H=p(E.rotation);H&&N.forEach((function(e){e.x0+=H,e.x1+=H}));var U=Math.min(F,S),W=function(e){return(e-B)/U*D},q=function(e,t){return[e*Math.cos(t),-e*Math.sin(t)]},$=function(e){return i.pathAnnulus(e.rpx0,e.rpx1,e.x0,e.x1,j,I)},G=function(e){return j+k(e)[0]*(e.transform.rCenter||0)+(e.transform.x||0)},Y=function(e){return I+k(e)[1]*(e.transform.rCenter||0)+(e.transform.y||0)};x=x.data(N,b.getPtId),x.enter().append("g").classed("slice",!0),f?x.exit().transition().each((function(){var e=r.select(this),t=e.select("path.surface");t.transition().attrTween("d",(function(e){var t=J(e);return function(e){return $(t(e))}}));var n=e.select("g.slicetext");n.attr("opacity",0)})).remove():x.exit().remove(),x.order();var K=null;if(f&&R){var X=b.getPtId(R);x.each((function(e){null===K&&b.getPtId(e)===X&&(K=e.x1)}))}var Z=x;function J(e){var t,n=b.getPtId(e),a=z[n],o=z[b.getPtId(M)];if(o){var i=(e.x1>o.x1?2*Math.PI:0)+H;t=e.rpx1<o.rpx1?{rpx0:0,rpx1:0}:{x0:i,x1:i}}else{var l,s=b.getPtId(e.parent);x.each((function(e){if(b.getPtId(e)===s)return l=e}));var u,c=l.children;c.forEach((function(e,t){if(b.getPtId(e)===n)return u=t}));var f=c.length,p=r.interpolate(l.x0,l.x1);t={rpx0:D,rpx1:D,x0:p(u/f),x1:p((u+1)/f)}}return r.interpolate(a,t)}function Q(e){var t,n=z[b.getPtId(e)],a={x0:e.x0,x1:e.x1,rpx0:e.rpx0,rpx1:e.rpx1};if(n)t=n;else if(R)if(e.parent)if(K){var o=(e.x1>K?2*Math.PI:0)+H;t={x0:o,x1:o}}else t={rpx0:D,rpx1:D},i.extendFlat(t,te(e));else t={rpx0:0,rpx1:0};else t={x0:H,x1:H};return r.interpolate(t,a)}function ee(e){var t,n=z[b.getPtId(e)],a=e.transform;if(n)t=n;else if(t={rpx1:e.rpx1,transform:{textPosAngle:a.textPosAngle,scale:0,rotate:a.rotate,rCenter:a.rCenter,x:a.x,y:a.y}},R)if(e.parent)if(K){var o=e.x1>K?2*Math.PI:0;t.x0=t.x1=o}else i.extendFlat(t,te(e));else t.x0=t.x1=H;else t.x0=t.x1=H;var l=r.interpolate(t.transform.textPosAngle,e.transform.textPosAngle),s=r.interpolate(t.rpx1,e.rpx1),f=r.interpolate(t.x0,e.x0),p=r.interpolate(t.x1,e.x1),d=r.interpolate(t.transform.scale,a.scale),h=r.interpolate(t.transform.rotate,a.rotate),v=0===a.rCenter?3:0===t.transform.rCenter?1/3:1,m=r.interpolate(t.transform.rCenter,a.rCenter),y=function(e){return m(Math.pow(e,v))};return function(e){var t=s(e),n=f(e),r=p(e),o=y(e),i=q(t,(n+r)/2),v=l(e),m={pxmid:i,rpx1:t,transform:{textPosAngle:v,rCenter:o,x:a.x,y:a.y}};return u(E.type,a,c),{transform:{targetX:G(m),targetY:Y(m),scale:d(e),rotate:h(e),rCenter:o}}}}function te(e){var t=e.parent,n=z[b.getPtId(t)],a={};if(n){var o=t.children,i=o.indexOf(e),l=o.length,s=r.interpolate(n.x0,n.x1);a.x0=s(i/l),a.x1=s(i/l)}else a.x0=a.x1=0;return a}f&&(Z=Z.transition().each("end",(function(){var t=r.select(this);b.setSliceCursor(t,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),Z.each((function(a){var s=r.select(this),p=i.ensureSingle(s,"path","surface",(function(e){e.style("pointer-events","all")}));a.rpx0=W(a.y0),a.rpx1=W(a.y1),a.xmid=(a.x0+a.x1)/2,a.pxmid=q(a.rpx1,a.xmid),a.midangle=-(a.xmid-Math.PI/2),a.startangle=-(a.x0-Math.PI/2),a.stopangle=-(a.x1-Math.PI/2),a.halfangle=.5*Math.min(i.angleDelta(a.x0,a.x1)||Math.PI,Math.PI),a.ring=1-a.rpx0/a.rpx1,a.rInscribed=w(a,E),f?p.transition().attrTween("d",(function(e){var t=Q(e);return function(e){return $(t(e))}})):p.attr("d",$),s.call(y,M,e,t,{eventDataKeys:g.eventDataKeys,transitionTime:g.CLICK_TRANSITION_TIME,transitionEasing:g.CLICK_TRANSITION_EASING}).call(b.setSliceCursor,e,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:e._transitioning}),p.call(v,a,E);var m=i.ensureSingle(s,"g","slicetext"),x=i.ensureSingle(m,"text","",(function(e){e.attr("data-notex",1)})),_=i.ensureUniformFontSize(e,b.determineTextFont(E,a,c.font));x.text(n.formatSliceLabel(a,M,E,t,c)).classed("slicetext",!0).attr("text-anchor","middle").call(o.font,_).call(l.convertToTspans,e);var k=o.bBox(x.node());a.transform=h(k,a,T),a.transform.targetX=G(a),a.transform.targetY=Y(a);var O=function(e,t){var n=e.transform;return d(n,t),n.fontSize=_.size,u(E.type,n,c),i.getTextTransform(n)};f?x.transition().attrTween("transform",(function(e){var t=ee(e);return function(e){return O(t(e),k)}})):x.attr("transform",O(a,k))}))}function _(e){return a.partition().size([2*Math.PI,e.height+1])(e)}function w(e){return 0===e.rpx0&&i.isFullCircle([e.x0,e.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(e.halfangle)),e.ring/2))}function k(e){return T(e.rpx1,e.transform.textPosAngle)}function T(e,t){return[e*Math.sin(t),-e*Math.cos(t)]}n.plot=function(e,t,n,a){var o,i,l=e._fullLayout,s=l._sunburstlayer,u=!n,f=!l.uniformtext.mode&&b.hasTransition(n);if(c("sunburst",l),o=s.selectAll("g.trace.sunburst").data(t,(function(e){return e[0].trace.uid})),o.enter().append("g").classed("trace",!0).classed("sunburst",!0).attr("stroke-linejoin","round"),o.order(),f){a&&(i=a());var p=r.transition().duration(n.duration).ease(n.easing).each("end",(function(){i&&i()})).each("interrupt",(function(){i&&i()}));p.each((function(){s.selectAll("g.trace").each((function(t){x(e,t,this,n)}))}))}else o.each((function(t){x(e,t,this,n)})),l.uniformtext.mode&&m(e,l._sunburstlayer.selectAll(".trace"),"sunburst");u&&o.exit().remove()},n.formatSliceLabel=function(e,t,n,r,a){var o=n.texttemplate,l=n.textinfo;if(!o&&(!l||"none"===l))return"";var s=a.separators,u=r[0],c=e.data.data,f=u.hierarchy,p=b.isHierarchyRoot(e),d=b.getParent(f,e),h=b.getValue(e);if(!o){var v,m=l.split("+"),y=function(e){return-1!==m.indexOf(e)},g=[];if(y("label")&&c.label&&g.push(c.label),c.hasOwnProperty("v")&&y("value")&&g.push(b.formatValue(c.v,s)),!p){y("current path")&&g.push(b.getPath(e.data));var x=0;y("percent parent")&&x++,y("percent entry")&&x++,y("percent root")&&x++;var _=x>1;if(x){var w,k=function(e){v=b.formatPercent(w,s),_&&(v+=" of "+e),g.push(v)};y("percent parent")&&!p&&(w=h/b.getValue(d),k("parent")),y("percent entry")&&(w=h/b.getValue(t),k("entry")),y("percent root")&&(w=h/b.getValue(f),k("root"))}}return y("text")&&(v=i.castOption(n,c.i,"text"),i.isValidTextValue(v)&&g.push(v)),g.join("<br>")}var T=i.castOption(n,c.i,"texttemplate");if(!T)return"";var E={};c.label&&(E.label=c.label),c.hasOwnProperty("v")&&(E.value=c.v,E.valueLabel=b.formatValue(c.v,s)),E.currentPath=b.getPath(e.data),p||(E.percentParent=h/b.getValue(d),E.percentParentLabel=b.formatPercent(E.percentParent,s),E.parent=b.getPtLabel(d)),E.percentEntry=h/b.getValue(t),E.percentEntryLabel=b.formatPercent(E.percentEntry,s),E.entry=b.getPtLabel(t),E.percentRoot=h/b.getValue(f),E.percentRootLabel=b.formatPercent(E.percentRoot,s),E.root=b.getPtLabel(f),c.hasOwnProperty("color")&&(E.color=c.color);var O=i.castOption(n,c.i,"text");return(i.isValidTextValue(O)||""===O)&&(E.text=O),E.customdata=i.castOption(n,c.i,"customdata"),i.texttemplateString(T,E,a._d3locale,E,n._meta||{})}},{"../../components/drawing":637,"../../lib":750,"../../lib/svg_text_utils":774,"../bar/style":906,"../bar/uniform_text":908,"../pie/helpers":1137,"../pie/plot":1141,"./constants":1273,"./fx":1275,"./helpers":1276,"./style":1281,d3:169,"d3-hierarchy":161}],1281:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/color"),o=e("../../lib"),i=e("../bar/uniform_text").resizeText;function l(e){var t=e._fullLayout._sunburstlayer.selectAll(".trace");i(e,t,"sunburst"),t.each((function(e){var t=r.select(this),n=e[0],a=n.trace;t.style("opacity",a.opacity),t.selectAll("path.surface").each((function(e){r.select(this).call(s,e,a)}))}))}function s(e,t,n){var r=t.data.data,i=!t.children,l=r.i,s=o.castOption(n,l,"marker.line.color")||a.defaultLine,u=o.castOption(n,l,"marker.line.width")||0;e.style("stroke-width",u).call(a.fill,r.color).call(a.stroke,s).style("opacity",i?n.leaf.opacity:null)}t.exports={style:l,styleOne:s}},{"../../components/color":615,"../../lib":750,"../bar/uniform_text":908,d3:169}],1282:[function(e,t,n){"use strict";var r=e("../../components/color"),a=e("../../components/colorscale/attributes"),o=e("../../plots/template_attributes").hovertemplateAttrs,i=e("../../plots/attributes"),l=e("../../lib/extend").extendFlat,s=e("../../plot_api/edit_types").overrideAll;function u(e){return{valType:"boolean",dflt:!1}}function c(e){return{show:{valType:"boolean",dflt:!1},start:{valType:"number",dflt:null,editType:"plot"},end:{valType:"number",dflt:null,editType:"plot"},size:{valType:"number",dflt:null,min:0,editType:"plot"},project:{x:u("x"),y:u("y"),z:u("z")},color:{valType:"color",dflt:r.defaultLine},usecolormap:{valType:"boolean",dflt:!1},width:{valType:"number",min:1,max:16,dflt:2},highlight:{valType:"boolean",dflt:!0},highlightcolor:{valType:"color",dflt:r.defaultLine},highlightwidth:{valType:"number",min:1,max:16,dflt:2}}}var f=t.exports=s(l({z:{valType:"data_array"},x:{valType:"data_array"},y:{valType:"data_array"},text:{valType:"string",dflt:"",arrayOk:!0},hovertext:{valType:"string",dflt:"",arrayOk:!0},hovertemplate:o(),connectgaps:{valType:"boolean",dflt:!1,editType:"calc"},surfacecolor:{valType:"data_array"}},a("",{colorAttr:"z or surfacecolor",showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:"calc"}),{contours:{x:c("x"),y:c("y"),z:c("z")},hidesurface:{valType:"boolean",dflt:!1},lightposition:{x:{valType:"number",min:-1e5,max:1e5,dflt:10},y:{valType:"number",min:-1e5,max:1e5,dflt:1e4},z:{valType:"number",min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:"number",min:0,max:1,dflt:.8},diffuse:{valType:"number",min:0,max:1,dflt:.8},specular:{valType:"number",min:0,max:2,dflt:.05},roughness:{valType:"number",min:0,max:1,dflt:.5},fresnel:{valType:"number",min:0,max:5,dflt:.2}},opacity:{valType:"number",min:0,max:1,dflt:1},opacityscale:{valType:"any",editType:"calc"},_deprecated:{zauto:l({},a.zauto,{}),zmin:l({},a.zmin,{}),zmax:l({},a.zmax,{})},hoverinfo:l({},i.hoverinfo),showlegend:l({},i.showlegend,{dflt:!1})}),"calc","nested");f.x.editType=f.y.editType=f.z.editType="calc+clearAxisTypes",f.transforms=void 0},{"../../components/color":615,"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plots/attributes":795,"../../plots/template_attributes":877}],1283:[function(e,t,n){"use strict";var r=e("../../components/colorscale/calc");t.exports=function(e,t){t.surfacecolor?r(e,t,{vals:t.surfacecolor,containerStr:"",cLetter:"c"}):r(e,t,{vals:t.z,containerStr:"",cLetter:"c"})}},{"../../components/colorscale/calc":623}],1284:[function(e,t,n){"use strict";var r=e("gl-surface3d"),a=e("ndarray"),o=e("ndarray-linear-interpolate").d2,i=e("../heatmap/interp2d"),l=e("../heatmap/find_empties"),s=e("../../lib").isArrayOrTypedArray,u=e("../../lib/gl_format_color").parseColorScale,c=e("../../lib/str2rgbarray"),f=e("../../components/colorscale").extractOpts;function p(e,t,n){this.scene=e,this.uid=n,this.surface=t,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var d=p.prototype;function h(e){var t=e[0].rgb,n=e[e.length-1].rgb;return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]}d.getXat=function(e,t,n,r){var a=s(this.data.x)?s(this.data.x[0])?this.data.x[t][e]:this.data.x[e]:e;return void 0===n?a:r.d2l(a,0,n)},d.getYat=function(e,t,n,r){var a=s(this.data.y)?s(this.data.y[0])?this.data.y[t][e]:this.data.y[t]:t;return void 0===n?a:r.d2l(a,0,n)},d.getZat=function(e,t,n,r){var a=this.data.z[t][e];return null===a&&this.data.connectgaps&&this.data._interpolatedZ&&(a=this.data._interpolatedZ[t][e]),void 0===n?a:r.d2l(a,0,n)},d.handlePick=function(e){if(e.object===this.surface){var t=(e.data.index[0]-1)/this.dataScaleX-1,n=(e.data.index[1]-1)/this.dataScaleY-1,r=Math.max(Math.min(Math.round(t),this.data.z[0].length-1),0),a=Math.max(Math.min(Math.round(n),this.data._ylength-1),0);e.index=[r,a],e.traceCoordinate=[this.getXat(r,a),this.getYat(r,a),this.getZat(r,a)],e.dataCoordinate=[this.getXat(r,a,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(r,a,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(r,a,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var o=0;o<3;o++){var i=e.dataCoordinate[o];null!==i&&void 0!==i&&(e.dataCoordinate[o]*=this.scene.dataScale[o])}var l=this.data.hovertext||this.data.text;return Array.isArray(l)&&l[a]&&void 0!==l[a][r]?e.textLabel=l[a][r]:e.textLabel=l||"",e.data.dataCoordinate=e.dataCoordinate.slice(),this.surface.highlight(e.data),this.scene.glplot.spikes.position=e.dataCoordinate,!0}};var v=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function m(e,t){if(e<t)return 0;var n=0;while(0===Math.floor(e%t))e/=t,n++;return n}function y(e){for(var t=[],n=0;n<v.length;n++){var r=v[n];t.push(m(e,r))}return t}function g(e){for(var t=y(e),n=e,r=0;r<v.length;r++)if(t[r]>0){n=v[r];break}return n}function b(e,t){if(!(e<1||t<1)){for(var n=y(e),r=y(t),a=1,o=0;o<v.length;o++)a*=Math.pow(v[o],Math.max(n[o],r[o]));return a}}function x(e){if(0!==e.length){for(var t=1,n=0;n<e.length;n++)t=b(t,e[n]);return t}}d.calcXnums=function(e){var t,n=[];for(t=1;t<e;t++){var r=this.getXat(t-1,0),a=this.getXat(t,0);n[t-1]=a!==r&&void 0!==r&&null!==r&&void 0!==a&&null!==a?Math.abs(a-r):0}var o=0;for(t=1;t<e;t++)o+=n[t-1];for(t=1;t<e;t++)0===n[t-1]?n[t-1]=1:n[t-1]=Math.round(o/n[t-1]);return n},d.calcYnums=function(e){var t,n=[];for(t=1;t<e;t++){var r=this.getYat(0,t-1),a=this.getYat(0,t);n[t-1]=a!==r&&void 0!==r&&null!==r&&void 0!==a&&null!==a?Math.abs(a-r):0}var o=0;for(t=1;t<e;t++)o+=n[t-1];for(t=1;t<e;t++)0===n[t-1]?n[t-1]=1:n[t-1]=Math.round(o/n[t-1]);return n};var _=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],w=_[9],k=_[13];function T(e,t,n){var r=n[8]+n[2]*t[0]+n[5]*t[1];return e[0]=(n[6]+n[0]*t[0]+n[3]*t[1])/r,e[1]=(n[7]+n[1]*t[0]+n[4]*t[1])/r,e}function E(e,t,n){return O(e,t,T,n),e}function O(e,t,n,r){for(var a=[0,0],i=e.shape[0],l=e.shape[1],s=0;s<i;s++)for(var u=0;u<l;u++)n(a,[s,u],r),e.set(s,u,o(t,a[0],a[1]));return e}function M(e,t){for(var n=!1,r=0;r<e.length;r++)if(t===e[r]){n=!0;break}!1===n&&e.push(t)}function S(e,t){var n=e.glplot.gl,a=r({gl:n}),o=new p(e,a,t.uid);return a._trace=o,o.update(t),e.glplot.add(a),o}d.estimateScale=function(e,t){var n=0===t?this.calcXnums(e):this.calcYnums(e),r=1+x(n);while(r<w)r*=2;while(r>k)r--,r/=g(r),r++,r<w&&(r=k);var a=Math.round(r/e);return a>1?a:1},d.refineCoords=function(e){for(var t=this.dataScaleX,n=this.dataScaleY,r=e[0].shape[0],o=e[0].shape[1],i=0|Math.floor(e[0].shape[0]*t+1),l=0|Math.floor(e[0].shape[1]*n+1),s=1+r+1,u=1+o+1,c=a(new Float32Array(s*u),[s,u]),f=[1/t,0,0,0,1/n,0,0,0,1],p=0;p<e.length;++p){this.surface.padField(c,e[p]);var d=a(new Float32Array(i*l),[i,l]);E(d,c,f),e[p]=d}},d.setContourLevels=function(){var e,t,n,r=[[],[],[]],a=[!1,!1,!1],o=!1;for(e=0;e<3;++e)if(this.showContour[e]&&(o=!0,this.contourSize[e]>0&&null!==this.contourStart[e]&&null!==this.contourEnd[e]&&this.contourEnd[e]>this.contourStart[e]))for(a[e]=!0,t=this.contourStart[e];t<this.contourEnd[e];t+=this.contourSize[e])n=t*this.scene.dataScale[e],M(r[e],n);if(o){var i=[[],[],[]];for(e=0;e<3;++e)this.showContour[e]&&(i[e]=a[e]?r[e]:this.scene.contourLevels[e]);this.surface.update({levels:i})}},d.update=function(e){var t,n,r,o,s=this.scene,p=s.fullSceneLayout,d=this.surface,v=u(e),m=s.dataScale,y=e.z[0].length,g=e._ylength,b=s.contourLevels;this.data=e;var x=[];for(t=0;t<3;t++)for(x[t]=[],n=0;n<y;n++)x[t][n]=[];for(n=0;n<y;n++)for(r=0;r<g;r++)x[0][n][r]=this.getXat(n,r,e.xcalendar,p.xaxis),x[1][n][r]=this.getYat(n,r,e.ycalendar,p.yaxis),x[2][n][r]=this.getZat(n,r,e.zcalendar,p.zaxis);if(e.connectgaps)for(e._emptypoints=l(x[2]),i(x[2],e._emptypoints),e._interpolatedZ=[],n=0;n<y;n++)for(e._interpolatedZ[n]=[],r=0;r<g;r++)e._interpolatedZ[n][r]=x[2][n][r];for(t=0;t<3;t++)for(n=0;n<y;n++)for(r=0;r<g;r++)o=x[t][n][r],null===o||void 0===o?x[t][n][r]=NaN:o=x[t][n][r]*=m[t];for(t=0;t<3;t++)for(n=0;n<y;n++)for(r=0;r<g;r++)o=x[t][n][r],null!==o&&void 0!==o&&(this.minValues[t]>o&&(this.minValues[t]=o),this.maxValues[t]<o&&(this.maxValues[t]=o));for(t=0;t<3;t++)this.objectOffset[t]=.5*(this.minValues[t]+this.maxValues[t]);for(t=0;t<3;t++)for(n=0;n<y;n++)for(r=0;r<g;r++)o=x[t][n][r],null!==o&&void 0!==o&&(x[t][n][r]-=this.objectOffset[t]);var _=[a(new Float32Array(y*g),[y,g]),a(new Float32Array(y*g),[y,g]),a(new Float32Array(y*g),[y,g])];for(t=0;t<3;t++)for(n=0;n<y;n++)for(r=0;r<g;r++)_[t].set(n,r,x[t][n][r]);x=[];var w={colormap:v,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!e.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:e.opacityscale,opacity:e.opacity},T=f(e);if(w.intensityBounds=[T.min,T.max],e.surfacecolor){var E=a(new Float32Array(y*g),[y,g]);for(n=0;n<y;n++)for(r=0;r<g;r++)E.set(n,r,e.surfacecolor[r][n]);_.push(E)}else w.intensityBounds[0]*=m[2],w.intensityBounds[1]*=m[2];(k<_[0].shape[0]||k<_[0].shape[1])&&(this.refineData=!1),!0===this.refineData&&(this.dataScaleX=this.estimateScale(_[0].shape[0],0),this.dataScaleY=this.estimateScale(_[0].shape[1],1),1===this.dataScaleX&&1===this.dataScaleY||this.refineCoords(_)),e.surfacecolor&&(w.intensity=_.pop());var O=[!0,!0,!0],M=["x","y","z"];for(t=0;t<3;++t){var S=e.contours[M[t]];O[t]=S.highlight,w.showContour[t]=S.show||S.highlight,w.showContour[t]&&(w.contourProject[t]=[S.project.x,S.project.y,S.project.z],S.show?(this.showContour[t]=!0,w.levels[t]=b[t],d.highlightColor[t]=w.contourColor[t]=c(S.color),S.usecolormap?d.highlightTint[t]=w.contourTint[t]=0:d.highlightTint[t]=w.contourTint[t]=1,w.contourWidth[t]=S.width,this.contourStart[t]=S.start,this.contourEnd[t]=S.end,this.contourSize[t]=S.size):(this.showContour[t]=!1,this.contourStart[t]=null,this.contourEnd[t]=null,this.contourSize[t]=0),S.highlight&&(w.dynamicColor[t]=c(S.highlightcolor),w.dynamicWidth[t]=S.highlightwidth))}h(v)&&(w.vertexColor=!0),w.objectOffset=this.objectOffset,w.coords=_,d.update(w),d.visible=e.visible,d.enableDynamic=O,d.enableHighlight=O,d.snapToData=!0,"lighting"in e&&(d.ambientLight=e.lighting.ambient,d.diffuseLight=e.lighting.diffuse,d.specularLight=e.lighting.specular,d.roughness=e.lighting.roughness,d.fresnel=e.lighting.fresnel),"lightposition"in e&&(d.lightPosition=[e.lightposition.x,e.lightposition.y,e.lightposition.z])},d.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},t.exports=S},{"../../components/colorscale":627,"../../lib":750,"../../lib/gl_format_color":746,"../../lib/str2rgbarray":773,"../heatmap/find_empties":1042,"../heatmap/interp2d":1045,"gl-surface3d":325,ndarray:469,"ndarray-linear-interpolate":463}],1285:[function(e,t,n){"use strict";var r=e("../../registry"),a=e("../../lib"),o=e("../../components/colorscale/defaults"),i=e("./attributes"),l=.1;function s(e,t){for(var n=[],r=32,a=0;a<r;a++){var o=a/(r-1),i=t+(1-t)*(1-Math.pow(Math.sin(e*o*Math.PI),2));n.push([o,Math.max(0,Math.min(1,i))])}return n}function u(e){var t=0;if(!Array.isArray(e)||e.length<2)return!1;if(!e[0]||!e[e.length-1])return!1;if(0!==+e[0][0]||1!==+e[e.length-1][0])return!1;for(var n=0;n<e.length;n++){var r=e[n];if(2!==r.length||+r[0]<t)return!1;t=+r[0]}return!0}function c(e,t,n,l){var s,u;function c(n,r){return a.coerce(e,t,i,n,r)}var d=c("x"),h=c("y"),v=c("z");if(!v||!v.length||d&&d.length<1||h&&h.length<1)t.visible=!1;else{t._xlength=Array.isArray(d)&&a.isArrayOrTypedArray(d[0])?v.length:v[0].length,t._ylength=v.length;var m=r.getComponentMethod("calendars","handleTraceDefaults");m(e,t,["x","y","z"],l),c("text"),c("hovertext"),c("hovertemplate"),["lighting.ambient","lighting.diffuse","lighting.specular","lighting.roughness","lighting.fresnel","lightposition.x","lightposition.y","lightposition.z","hidesurface","connectgaps","opacity"].forEach((function(e){c(e)}));var y=c("surfacecolor"),g=["x","y","z"];for(s=0;s<3;++s){var b="contours."+g[s],x=c(b+".show"),_=c(b+".highlight");if(x||_)for(u=0;u<3;++u)c(b+".project."+g[u]);x&&(c(b+".color"),c(b+".width"),c(b+".usecolormap")),_&&(c(b+".highlightcolor"),c(b+".highlightwidth")),c(b+".start"),c(b+".end"),c(b+".size")}y||(p(e,"zmin","cmin"),p(e,"zmax","cmax"),p(e,"zauto","cauto")),o(e,t,l,c,{prefix:"",cLetter:"c"}),f(e,t,l,c),t._length=null}}function f(e,t,n,r){var a=r("opacityscale");"max"===a?t.opacityscale=[[0,l],[1,1]]:"min"===a?t.opacityscale=[[0,1],[1,l]]:"extremes"===a?t.opacityscale=s(1,l):u(a)||(t.opacityscale=void 0)}function p(e,t,n){t in e&&!(n in e)&&(e[n]=e[t])}t.exports={supplyDefaults:c,opacityscaleDefaults:f}},{"../../components/colorscale/defaults":625,"../../lib":750,"../../registry":882,"./attributes":1282}],1286:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults").supplyDefaults,colorbar:{min:"cmin",max:"cmax"},calc:e("./calc"),plot:e("./convert"),moduleType:"trace",name:"surface",basePlotModule:e("../../plots/gl3d"),categories:["gl3d","2dMap","showLegend"],meta:{}}},{"../../plots/gl3d":841,"./attributes":1282,"./calc":1283,"./convert":1284,"./defaults":1285}],1287:[function(e,t,n){"use strict";var r=e("../../components/annotations/attributes"),a=e("../../lib/extend").extendFlat,o=e("../../plot_api/edit_types").overrideAll,i=e("../../plots/font_attributes"),l=e("../../plots/domain").attributes,s=(e("../../constants/docs").FORMAT_LINK,t.exports=o({domain:l({name:"table",trace:!0}),columnwidth:{valType:"number",arrayOk:!0,dflt:null},columnorder:{valType:"data_array"},header:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[]},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:28},align:a({},r.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:a({},i({arrayOk:!0}))},cells:{values:{valType:"data_array",dflt:[]},format:{valType:"data_array",dflt:[]},prefix:{valType:"string",arrayOk:!0,dflt:null},suffix:{valType:"string",arrayOk:!0,dflt:null},height:{valType:"number",dflt:20},align:a({},r.align,{arrayOk:!0}),line:{width:{valType:"number",arrayOk:!0,dflt:1},color:{valType:"color",arrayOk:!0,dflt:"grey"}},fill:{color:{valType:"color",arrayOk:!0,dflt:"white"}},font:a({},i({arrayOk:!0}))}},"calc","from-root"));s.transforms=void 0},{"../../components/annotations/attributes":598,"../../constants/docs":720,"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plots/domain":826,"../../plots/font_attributes":827}],1288:[function(e,t,n){"use strict";var r=e("../../plots/get_data").getModuleCalcData,a=e("./plot"),o="table";n.name=o,n.plot=function(e){var t=r(e.calcdata,o)[0];t.length&&a(e,t)},n.clean=function(e,t,n,r){var a=r._has&&r._has(o),i=t._has&&t._has(o);a&&!i&&r._paperdiv.selectAll(".table").remove()}},{"../../plots/get_data":836,"./plot":1295}],1289:[function(e,t,n){"use strict";var r=e("../../lib/gup").wrap;t.exports=function(){return r({})}},{"../../lib/gup":747}],1290:[function(e,t,n){"use strict";t.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:"<br>",maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:"cubic-out",scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:"cubic-out",uplift:5,wrapSpacer:" ",wrapSplitCharacter:" ",cn:{table:"table",tableControlView:"table-control-view",scrollBackground:"scroll-background",yColumn:"y-column",columnBlock:"column-block",scrollAreaClip:"scroll-area-clip",scrollAreaClipRect:"scroll-area-clip-rect",columnBoundary:"column-boundary",columnBoundaryClippath:"column-boundary-clippath",columnBoundaryRect:"column-boundary-rect",columnCells:"column-cells",columnCell:"column-cell",cellRect:"cell-rect",cellText:"cell-text",cellTextHolder:"cell-text-holder",scrollbarKit:"scrollbar-kit",scrollbar:"scrollbar",scrollbarSlider:"scrollbar-slider",scrollbarGlyph:"scrollbar-glyph",scrollbarCaptureZone:"scrollbar-capture-zone"}}},{}],1291:[function(e,t,n){"use strict";var r=e("./constants"),a=e("../../lib/extend").extendFlat,o=e("fast-isnumeric");function i(e){if(Array.isArray(e)){for(var t=0,n=0;n<e.length;n++)t=Math.max(t,i(e[n]));return t}return e}function l(e,t){return e+t}function s(e){var t,n=e.slice(),r=1/0,a=0;for(t=0;t<n.length;t++)Array.isArray(n[t])||(n[t]=[n[t]]),r=Math.min(r,n[t].length),a=Math.max(a,n[t].length);if(r!==a)for(t=0;t<n.length;t++){var o=a-n[t].length;o&&(n[t]=n[t].concat(u(o)))}return n}function u(e){for(var t=new Array(e),n=0;n<e;n++)t[n]="";return t}function c(e){return e.calcdata.columns.reduce((function(t,n){return n.xIndex<e.xIndex?t+n.columnWidth:t}),0)}function f(e,t){var n=Object.keys(e);return n.map((function(n){return a({},e[n],{auxiliaryBlocks:t})}))}function p(e,t){for(var n,r={},a=0,o=0,i=d(),l=0,s=0,u=0;u<e.length;u++)n=e[u],i.rows.push({rowIndex:u,rowHeight:n}),o+=n,(o>=t||u===e.length-1)&&(r[a]=i,i.key=s++,i.firstRowIndex=l,i.lastRowIndex=u,i=d(),a+=o,l=u+1,o=0);return r}function d(){return{firstRowIndex:null,lastRowIndex:null,rows:[]}}t.exports=function(e,t){var n=s(t.cells.values),d=function(e){return e.slice(t.header.values.length,e.length)},h=s(t.header.values);h.length&&!h[0].length&&(h[0]=[""],h=s(h));var v=h.concat(d(n).map((function(){return u((h[0]||[""]).length)}))),m=t.domain,y=Math.floor(e._fullLayout._size.w*(m.x[1]-m.x[0])),g=Math.floor(e._fullLayout._size.h*(m.y[1]-m.y[0])),b=t.header.values.length?v[0].map((function(){return t.header.height})):[r.emptyHeaderHeight],x=n.length?n[0].map((function(){return t.cells.height})):[],_=b.reduce(l,0),w=g-_,k=w+r.uplift,T=p(x,k),E=p(b,_),O=f(E,[]),M=f(T,O),S={},C=t._fullInput.columnorder.concat(d(n.map((function(e,t){return t})))),A=v.map((function(e,n){var r=Array.isArray(t.columnwidth)?t.columnwidth[Math.min(n,t.columnwidth.length-1)]:t.columnwidth;return o(r)?Number(r):1})),P=A.reduce(l,0);A=A.map((function(e){return e/P*y}));var L=Math.max(i(t.header.line.width),i(t.cells.line.width)),D={key:t.uid+e._context.staticPlot,translateX:m.x[0]*e._fullLayout._size.w,translateY:e._fullLayout._size.h*(1-m.y[1]),size:e._fullLayout._size,width:y,maxLineWidth:L,height:g,columnOrder:C,groupHeight:g,rowBlocks:M,headerRowBlocks:O,scrollY:0,cells:a({},t.cells,{values:n}),headerCells:a({},t.header,{values:v}),gdColumns:v.map((function(e){return e[0]})),gdColumnsOriginalOrder:v.map((function(e){return e[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:v.map((function(e,t){var n=S[e];S[e]=(n||0)+1;var r=e+"__"+S[e];return{key:r,label:e,specIndex:t,xIndex:C[t],xScale:c,x:void 0,calcdata:void 0,columnWidth:A[t]}}))};return D.columns.forEach((function(e){e.calcdata=D,e.x=c(e)})),D}},{"../../lib/extend":740,"./constants":1290,"fast-isnumeric":241}],1292:[function(e,t,n){"use strict";var r=e("../../lib/extend").extendFlat;function a(e){var t=e.rowBlocks[e.page],n=t?t.rows[0].rowIndex:0,r=t?n+t.rows.length:0;return[n,r]}n.splitToPanels=function(e){var t=[0,0],n=r({},e,{key:"header",type:"header",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!0,values:e.calcdata.headerCells.values[e.specIndex],rowBlocks:e.calcdata.headerRowBlocks,calcdata:r({},e.calcdata,{cells:e.calcdata.headerCells})}),a=r({},e,{key:"cells1",type:"cells",page:0,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks}),o=r({},e,{key:"cells2",type:"cells",page:1,prevPages:t,currentRepaint:[null,null],dragHandle:!1,values:e.calcdata.cells.values[e.specIndex],rowBlocks:e.calcdata.rowBlocks});return[a,o,n]},n.splitToCells=function(e){var t=a(e);return(e.values||[]).slice(t[0],t[1]).map((function(n,r){var a="string"===typeof n&&n.match(/[<$&> ]/)?"_keybuster_"+Math.random():"";return{keyWithinBlock:r+a,key:t[0]+r,column:e,calcdata:e.calcdata,page:e.page,rowBlocks:e.rowBlocks,value:n}}))}},{"../../lib/extend":740}],1293:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),o=e("../../plots/domain").defaults;function i(e,t){for(var n=e.columnorder||[],r=e.header.values.length,a=n.slice(0,r),o=a.slice().sort((function(e,t){return e-t})),i=a.map((function(e){return o.indexOf(e)})),l=i.length;l<r;l++)i.push(l);t("columnorder",i)}t.exports=function(e,t,n,l){function s(n,o){return r.coerce(e,t,a,n,o)}o(t,l,s),s("columnwidth"),s("header.values"),s("header.format"),s("header.align"),s("header.prefix"),s("header.suffix"),s("header.height"),s("header.line.width"),s("header.line.color"),s("header.fill.color"),r.coerceFont(s,"header.font",r.extendFlat({},l.font)),i(t,s),s("cells.values"),s("cells.format"),s("cells.align"),s("cells.prefix"),s("cells.suffix"),s("cells.height"),s("cells.line.width"),s("cells.line.color"),s("cells.fill.color"),r.coerceFont(s,"cells.font",r.extendFlat({},l.font)),t._length=null}},{"../../lib":750,"../../plots/domain":826,"./attributes":1287}],1294:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("./calc"),plot:e("./plot"),moduleType:"trace",name:"table",basePlotModule:e("./base_plot"),categories:["noOpacity"],meta:{}}},{"./attributes":1287,"./base_plot":1288,"./calc":1289,"./defaults":1293,"./plot":1295}],1295:[function(e,t,n){"use strict";var r=e("./constants"),a=e("d3"),o=e("../../lib/gup"),i=e("../../components/drawing"),l=e("../../lib/svg_text_utils"),s=e("../../lib").raiseToTop,u=e("../../lib").cancelTransition,c=e("./data_preparation_helper"),f=e("./data_split_helpers"),p=e("../../components/color");function d(e){return Math.ceil(e.calcdata.maxLineWidth/2)}function h(e,t){return"clip"+e._fullLayout._uid+"_scrollAreaBottomClip_"+t.key}function v(e,t){return"clip"+e._fullLayout._uid+"_columnBoundaryClippath_"+t.calcdata.key+"_"+t.specIndex}function m(e){return[].concat.apply([],e.map((function(e){return e}))).map((function(e){return e.__data__}))}function y(e,t,n){function i(e){var t=e.rowBlocks;return W(t,t.length-1)+(t.length?q(t[t.length-1],1/0):1)}var l=e.selectAll("."+r.cn.scrollbarKit).data(o.repeat,o.keyFun);l.enter().append("g").classed(r.cn.scrollbarKit,!0).style("shape-rendering","geometricPrecision"),l.each((function(e){var t=e.scrollbarState;t.totalHeight=i(e),t.scrollableAreaHeight=e.groupHeight-I(e),t.currentlyVisibleHeight=Math.min(t.totalHeight,t.scrollableAreaHeight),t.ratio=t.currentlyVisibleHeight/t.totalHeight,t.barLength=Math.max(t.ratio*t.currentlyVisibleHeight,r.goldenRatio*r.scrollbarWidth),t.barWiggleRoom=t.currentlyVisibleHeight-t.barLength,t.wiggleRoom=Math.max(0,t.totalHeight-t.scrollableAreaHeight),t.topY=0===t.barWiggleRoom?0:e.scrollY/t.wiggleRoom*t.barWiggleRoom,t.bottomY=t.topY+t.barLength,t.dragMultiplier=t.wiggleRoom/t.barWiggleRoom})).attr("transform",(function(e){var t=e.width+r.scrollbarWidth/2+r.scrollbarOffset;return"translate("+t+" "+I(e)+")"}));var s=l.selectAll("."+r.cn.scrollbar).data(o.repeat,o.keyFun);s.enter().append("g").classed(r.cn.scrollbar,!0);var u=s.selectAll("."+r.cn.scrollbarSlider).data(o.repeat,o.keyFun);u.enter().append("g").classed(r.cn.scrollbarSlider,!0),u.attr("transform",(function(e){return"translate(0 "+(e.scrollbarState.topY||0)+")"}));var c=u.selectAll("."+r.cn.scrollbarGlyph).data(o.repeat,o.keyFun);c.enter().append("line").classed(r.cn.scrollbarGlyph,!0).attr("stroke","black").attr("stroke-width",r.scrollbarWidth).attr("stroke-linecap","round").attr("y1",r.scrollbarWidth/2),c.attr("y2",(function(e){return e.scrollbarState.barLength-r.scrollbarWidth/2})).attr("stroke-opacity",(function(e){return e.columnDragInProgress||!e.scrollbarState.barWiggleRoom||n?0:.4})),c.transition().delay(0).duration(0),c.transition().delay(r.scrollbarHideDelay).duration(r.scrollbarHideDuration).attr("stroke-opacity",0);var f=s.selectAll("."+r.cn.scrollbarCaptureZone).data(o.repeat,o.keyFun);f.enter().append("line").classed(r.cn.scrollbarCaptureZone,!0).attr("stroke","white").attr("stroke-opacity",.01).attr("stroke-width",r.scrollbarCaptureWidth).attr("stroke-linecap","butt").attr("y1",0).on("mousedown",(function(n){var r=a.event.y,o=this.getBoundingClientRect(),i=n.scrollbarState,l=r-o.top,s=a.scale.linear().domain([0,i.scrollableAreaHeight]).range([0,i.totalHeight]).clamp(!0);i.topY<=l&&l<=i.bottomY||N(t,e,null,s(l-i.barLength/2))(n)})).call(a.behavior.drag().origin((function(e){return a.event.stopPropagation(),e.scrollbarState.scrollbarScrollInProgress=!0,e})).on("drag",N(t,e)).on("dragend",(function(){}))),f.attr("y2",(function(e){return e.scrollbarState.scrollableAreaHeight})),t._context.staticPlot&&(c.remove(),f.remove())}function g(e,t,n,r){var a=b(n),o=x(a);T(o);var i=_(o);O(i);var l=k(o),s=w(l);E(s),M(s,t,r,e),U(o)}function b(e){var t=e.selectAll("."+r.cn.columnCells).data(o.repeat,o.keyFun);return t.enter().append("g").classed(r.cn.columnCells,!0),t.exit().remove(),t}function x(e){var t=e.selectAll("."+r.cn.columnCell).data(f.splitToCells,(function(e){return e.keyWithinBlock}));return t.enter().append("g").classed(r.cn.columnCell,!0),t.exit().remove(),t}function _(e){var t=e.selectAll("."+r.cn.cellRect).data(o.repeat,(function(e){return e.keyWithinBlock}));return t.enter().append("rect").classed(r.cn.cellRect,!0),t}function w(e){var t=e.selectAll("."+r.cn.cellText).data(o.repeat,(function(e){return e.keyWithinBlock}));return t.enter().append("text").classed(r.cn.cellText,!0).style("cursor",(function(){return"auto"})).on("mousedown",(function(){a.event.stopPropagation()})),t}function k(e){var t=e.selectAll("."+r.cn.cellTextHolder).data(o.repeat,(function(e){return e.keyWithinBlock}));return t.enter().append("g").classed(r.cn.cellTextHolder,!0).style("shape-rendering","geometricPrecision"),t}function T(e){e.each((function(e,t){var n=e.calcdata.cells.font,r=e.column.specIndex,a={size:P(n.size,r,t),color:P(n.color,r,t),family:P(n.family,r,t)};e.rowNumber=e.key,e.align=P(e.calcdata.cells.align,r,t),e.cellBorderWidth=P(e.calcdata.cells.line.width,r,t),e.font=a}))}function E(e){e.each((function(e){i.font(a.select(this),e.font)}))}function O(e){e.attr("width",(function(e){return e.column.columnWidth})).attr("stroke-width",(function(e){return e.cellBorderWidth})).each((function(e){var t=a.select(this);p.stroke(t,P(e.calcdata.cells.line.color,e.column.specIndex,e.rowNumber)),p.fill(t,P(e.calcdata.cells.fill.color,e.column.specIndex,e.rowNumber))}))}function M(e,t,n,o){e.text((function(e){var t=e.column.specIndex,n=e.rowNumber,o=e.value,i="string"===typeof o,l=i&&o.match(/<br>/i),s=!i||l;e.mayHaveMarkup=i&&o.match(/[<&>]/);var u=S(o);e.latex=u;var c,f,p=u?"":P(e.calcdata.cells.prefix,t,n)||"",d=u?"":P(e.calcdata.cells.suffix,t,n)||"",h=u?null:P(e.calcdata.cells.format,t,n)||null,v=p+(h?a.format(h)(e.value):e.value)+d;if(e.wrappingNeeded=!e.wrapped&&!s&&!u&&(c=C(v)),e.cellHeightMayIncrease=l||u||e.mayHaveMarkup||(void 0===c?C(v):c),e.needsConvertToTspans=e.mayHaveMarkup||e.wrappingNeeded||e.latex,e.wrappingNeeded){var m=" "===r.wrapSplitCharacter?v.replace(/<a href=/gi,"<a_href="):v,y=m.split(r.wrapSplitCharacter),g=" "===r.wrapSplitCharacter?y.map((function(e){return e.replace(/<a_href=/gi,"<a href=")})):y;e.fragments=g.map((function(e){return{text:e,width:null}})),e.fragments.push({fragment:r.wrapSpacer,width:null}),f=g.join(r.lineBreaker)+r.lineBreaker+r.wrapSpacer}else delete e.fragments,f=v;return f})).attr("dy",(function(e){return e.needsConvertToTspans?0:"0.75em"})).each((function(e){var i=this,s=a.select(i),u=e.wrappingNeeded?B:V;e.needsConvertToTspans?l.convertToTspans(s,o,u(n,i,t,o,e)):a.select(i.parentNode).attr("transform",(function(e){return"translate("+H(e)+" "+r.cellPad+")"})).attr("text-anchor",(function(e){return{left:"start",center:"middle",right:"end"}[e.align]}))}))}function S(e){return"string"===typeof e&&e.match(r.latexCheck)}function C(e){return-1!==e.indexOf(r.wrapSplitCharacter)}function A(e,t,n){var r=t.gdColumnsOriginalOrder;t.gdColumns.sort((function(e,t){return n[r.indexOf(e)]-n[r.indexOf(t)]})),t.columnorder=n,e.emit("plotly_restyle")}function P(e,t,n){if(Array.isArray(e)){var r=e[Math.min(t,e.length-1)];return Array.isArray(r)?r[Math.min(n,r.length-1)]:r}return e}function L(e,t,n){e.transition().ease(r.releaseTransitionEase).duration(r.releaseTransitionDuration).attr("transform","translate("+t.x+" "+n+")")}function D(e){return"cells"===e.type}function j(e){return"header"===e.type}function I(e){var t=e.rowBlocks.length?e.rowBlocks[0].auxiliaryBlocks:[];return t.reduce((function(e,t){return e+q(t,1/0)}),0)}function R(e,t,n){for(var r=[],a=0,o=0;o<e.length;o++){for(var i=e[o],l=i.rows,s=0,u=0;u<l.length;u++)s+=l[u].rowHeight;i.allRowsHeight=s;var c=a+s,f=t,p=f+n;f<c&&p>a&&r.push(o),a+=s}return r}function z(e,t,n){var r=m(t)[0];if(void 0!==r){var a=r.rowBlocks,o=r.calcdata,i=W(a,a.length),l=r.calcdata.groupHeight-I(r),s=o.scrollY=Math.max(0,Math.min(i-l,o.scrollY)),u=R(a,s,l);1===u.length&&(u[0]===a.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&&u.reverse(),t.each((function(e,t){e.page=u[t],e.scrollY=s})),t.attr("transform",(function(e){var t=W(e.rowBlocks,e.page)-e.scrollY;return"translate(0 "+t+")"})),e&&(F(e,n,t,u,r.prevPages,r,0),F(e,n,t,u,r.prevPages,r,1),y(n,e))}}function N(e,t,n,o){return function(i){var l=i.calcdata?i.calcdata:i,s=t.filter((function(e){return l.key===e.key})),u=n||l.scrollbarState.dragMultiplier,c=l.scrollY;l.scrollY=void 0===o?l.scrollY+u*a.event.dy:o;var f=s.selectAll("."+r.cn.yColumn).selectAll("."+r.cn.columnBlock).filter(D);return z(e,f,s),l.scrollY===c}}function F(e,t,n,r,a,o,i){var l=r[i]!==a[i];l&&(clearTimeout(o.currentRepaint[i]),o.currentRepaint[i]=setTimeout((function(){var o=n.filter((function(e,t){return t===i&&r[t]!==a[t]}));g(e,t,o,n),a[i]=r[i]})))}function B(e,t,n,o){return function(){var i=a.select(t.parentNode);i.each((function(e){var t=e.fragments;i.selectAll("tspan.line").each((function(e,n){t[n].width=this.getComputedTextLength()}));var n,a,o=t[t.length-1].width,l=t.slice(0,-1),s=[],u=0,c=e.column.columnWidth-2*r.cellPad;e.value="";while(l.length)n=l.shift(),a=n.width+o,u+a>c&&(e.value+=s.join(r.wrapSpacer)+r.lineBreaker,s=[],u=0),s.push(n.text),u+=a;u&&(e.value+=s.join(r.wrapSpacer)),e.wrapped=!0})),i.selectAll("tspan.line").remove(),M(i.select("."+r.cn.cellText),n,e,o),a.select(t.parentNode.parentNode).call(U)}}function V(e,t,n,o,i){return function(){if(!i.settledY){var l=a.select(t.parentNode),s=G(i),u=i.key-s.firstRowIndex,c=s.rows[u].rowHeight,f=i.cellHeightMayIncrease?t.parentNode.getBoundingClientRect().height+2*r.cellPad:c,p=Math.max(f,c),d=p-s.rows[u].rowHeight;d&&(s.rows[u].rowHeight=p,e.selectAll("."+r.cn.columnCell).call(U),z(null,e.filter(D),0),y(n,o,!0)),l.attr("transform",(function(){var e=this,t=e.parentNode,n=t.getBoundingClientRect(),o=a.select(e.parentNode).select("."+r.cn.cellRect).node().getBoundingClientRect(),l=e.transform.baseVal.consolidate(),s=o.top-n.top+(l?l.matrix.f:r.cellPad);return"translate("+H(i,a.select(e.parentNode).select("."+r.cn.cellTextHolder).node().getBoundingClientRect().width)+" "+s+")"})),i.settledY=!0}}}function H(e,t){switch(e.align){case"left":return r.cellPad;case"right":return e.column.columnWidth-(t||0)-r.cellPad;case"center":return(e.column.columnWidth-(t||0))/2;default:return r.cellPad}}function U(e){e.attr("transform",(function(e){var t=e.rowBlocks[0].auxiliaryBlocks.reduce((function(e,t){return e+q(t,1/0)}),0),n=G(e),r=q(n,e.key),a=r+t;return"translate(0 "+a+")"})).selectAll("."+r.cn.cellRect).attr("height",(function(e){return Y(G(e),e.key).rowHeight}))}function W(e,t){for(var n=0,r=t-1;r>=0;r--)n+=$(e[r]);return n}function q(e,t){for(var n=0,r=0;r<e.rows.length&&e.rows[r].rowIndex<t;r++)n+=e.rows[r].rowHeight;return n}function $(e){var t=e.allRowsHeight;if(void 0!==t)return t;for(var n=0,r=0;r<e.rows.length;r++)n+=e.rows[r].rowHeight;return e.allRowsHeight=n,n}function G(e){return e.rowBlocks[e.page]}function Y(e,t){return e.rows[t-e.firstRowIndex]}t.exports=function(e,t){var n=!e._context.staticPlot,l=e._fullLayout._paper.selectAll("."+r.cn.table).data(t.map((function(t){var n=o.unwrap(t),r=n.trace;return c(e,r)})),o.keyFun);l.exit().remove(),l.enter().append("g").classed(r.cn.table,!0).attr("overflow","visible").style("box-sizing","content-box").style("position","absolute").style("left",0).style("overflow","visible").style("shape-rendering","crispEdges").style("pointer-events","all"),l.attr("width",(function(e){return e.width+e.size.l+e.size.r})).attr("height",(function(e){return e.height+e.size.t+e.size.b})).attr("transform",(function(e){return"translate("+e.translateX+","+e.translateY+")"}));var p=l.selectAll("."+r.cn.tableControlView).data(o.repeat,o.keyFun),b=p.enter().append("g").classed(r.cn.tableControlView,!0).style("box-sizing","content-box");if(n){var x="onwheel"in document?"wheel":"mousewheel";b.on("mousemove",(function(t){p.filter((function(e){return t===e})).call(y,e)})).on(x,(function(t){if(!t.scrollbarState.wheeling){t.scrollbarState.wheeling=!0;var n=t.scrollY+a.event.deltaY,r=N(e,p,null,n)(t);r||(a.event.stopPropagation(),a.event.preventDefault()),t.scrollbarState.wheeling=!1}})).call(y,e,!0)}p.attr("transform",(function(e){return"translate("+e.size.l+" "+e.size.t+")"}));var _=p.selectAll("."+r.cn.scrollBackground).data(o.repeat,o.keyFun);_.enter().append("rect").classed(r.cn.scrollBackground,!0).attr("fill","none"),_.attr("width",(function(e){return e.width})).attr("height",(function(e){return e.height})),p.each((function(t){i.setClipUrl(a.select(this),h(e,t),e)}));var w=p.selectAll("."+r.cn.yColumn).data((function(e){return e.columns}),o.keyFun);w.enter().append("g").classed(r.cn.yColumn,!0),w.exit().remove(),w.attr("transform",(function(e){return"translate("+e.x+" 0)"})),n&&w.call(a.behavior.drag().origin((function(t){var n=a.select(this);return L(n,t,-r.uplift),s(this),t.calcdata.columnDragInProgress=!0,y(p.filter((function(e){return t.calcdata.key===e.key})),e),t})).on("drag",(function(e){var t=a.select(this),n=function(t){return(e===t?a.event.x:t.x)+t.columnWidth/2};e.x=Math.max(-r.overdrag,Math.min(e.calcdata.width+r.overdrag-e.columnWidth,a.event.x));var o=m(w).filter((function(t){return t.calcdata.key===e.calcdata.key})),i=o.sort((function(e,t){return n(e)-n(t)}));i.forEach((function(t,n){t.xIndex=n,t.x=e===t?t.x:t.xScale(t)})),w.filter((function(t){return e!==t})).transition().ease(r.transitionEase).duration(r.transitionDuration).attr("transform",(function(e){return"translate("+e.x+" 0)"})),t.call(u).attr("transform","translate("+e.x+" -"+r.uplift+" )")})).on("dragend",(function(t){var n=a.select(this),r=t.calcdata;t.x=t.xScale(t),t.calcdata.columnDragInProgress=!1,L(n,t,0),A(e,r,r.columns.map((function(e){return e.xIndex})))}))),w.each((function(t){i.setClipUrl(a.select(this),v(e,t),e)}));var k=w.selectAll("."+r.cn.columnBlock).data(f.splitToPanels,o.keyFun);k.enter().append("g").classed(r.cn.columnBlock,!0).attr("id",(function(e){return e.key})),k.style("cursor",(function(e){return e.dragHandle?"ew-resize":e.calcdata.scrollbarState.barWiggleRoom?"ns-resize":"default"}));var T=k.filter(j),E=k.filter(D);n&&E.call(a.behavior.drag().origin((function(e){return a.event.stopPropagation(),e})).on("drag",N(e,p,-1)).on("dragend",(function(){}))),g(e,p,T,k),g(e,p,E,k);var O=p.selectAll("."+r.cn.scrollAreaClip).data(o.repeat,o.keyFun);O.enter().append("clipPath").classed(r.cn.scrollAreaClip,!0).attr("id",(function(t){return h(e,t)}));var M=O.selectAll("."+r.cn.scrollAreaClipRect).data(o.repeat,o.keyFun);M.enter().append("rect").classed(r.cn.scrollAreaClipRect,!0).attr("x",-r.overdrag).attr("y",-r.uplift).attr("fill","none"),M.attr("width",(function(e){return e.width+2*r.overdrag})).attr("height",(function(e){return e.height+r.uplift}));var S=w.selectAll("."+r.cn.columnBoundary).data(o.repeat,o.keyFun);S.enter().append("g").classed(r.cn.columnBoundary,!0);var C=w.selectAll("."+r.cn.columnBoundaryClippath).data(o.repeat,o.keyFun);C.enter().append("clipPath").classed(r.cn.columnBoundaryClippath,!0),C.attr("id",(function(t){return v(e,t)}));var P=C.selectAll("."+r.cn.columnBoundaryRect).data(o.repeat,o.keyFun);P.enter().append("rect").classed(r.cn.columnBoundaryRect,!0).attr("fill","none"),P.attr("width",(function(e){return e.columnWidth+2*d(e)})).attr("height",(function(e){return e.calcdata.height+2*d(e)+r.uplift})).attr("x",(function(e){return-d(e)})).attr("y",(function(e){return-d(e)})),z(null,E,p)}},{"../../components/color":615,"../../components/drawing":637,"../../lib":750,"../../lib/gup":747,"../../lib/svg_text_utils":774,"./constants":1290,"./data_preparation_helper":1291,"./data_split_helpers":1292,d3:169}],1296:[function(e,t,n){"use strict";var r=e("../../plots/template_attributes").hovertemplateAttrs,a=e("../../plots/template_attributes").texttemplateAttrs,o=e("../../components/colorscale/attributes"),i=e("../../plots/domain").attributes,l=e("../pie/attributes"),s=e("../sunburst/attributes"),u=e("./constants"),c=e("../../lib/extend").extendFlat;t.exports={labels:s.labels,parents:s.parents,values:s.values,branchvalues:s.branchvalues,count:s.count,level:s.level,maxdepth:s.maxdepth,tiling:{packing:{valType:"enumerated",values:["squarify","binary","dice","slice","slice-dice","dice-slice"],dflt:"squarify",editType:"plot"},squarifyratio:{valType:"number",min:1,dflt:1,editType:"plot"},flip:{valType:"flaglist",flags:["x","y"],dflt:"",editType:"plot"},pad:{valType:"number",min:0,dflt:3,editType:"plot"},editType:"calc"},marker:c({pad:{t:{valType:"number",min:0,editType:"plot"},l:{valType:"number",min:0,editType:"plot"},r:{valType:"number",min:0,editType:"plot"},b:{valType:"number",min:0,editType:"plot"},editType:"calc"},colors:s.marker.colors,depthfade:{valType:"enumerated",values:[!0,!1,"reversed"],editType:"style"},line:s.marker.line,editType:"calc"},o("marker",{colorAttr:"colors",anim:!1})),pathbar:{visible:{valType:"boolean",dflt:!0,editType:"plot"},side:{valType:"enumerated",values:["top","bottom"],dflt:"top",editType:"plot"},edgeshape:{valType:"enumerated",values:[">","<","|","/","\\"],dflt:">",editType:"plot"},thickness:{valType:"number",min:12,editType:"plot"},textfont:c({},l.textfont,{}),editType:"calc"},text:l.text,textinfo:s.textinfo,texttemplate:a({editType:"plot"},{keys:u.eventDataKeys.concat(["label","value"])}),hovertext:l.hovertext,hoverinfo:s.hoverinfo,hovertemplate:r({},{keys:u.eventDataKeys}),textfont:l.textfont,insidetextfont:l.insidetextfont,outsidetextfont:c({},l.outsidetextfont,{}),textposition:{valType:"enumerated",values:["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],dflt:"top left",editType:"plot"},sort:l.sort,domain:i({name:"treemap",trace:!0,editType:"calc"})}},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plots/domain":826,"../../plots/template_attributes":877,"../pie/attributes":1132,"../sunburst/attributes":1270,"./constants":1299}],1297:[function(e,t,n){"use strict";var r=e("../../plots/plots");n.name="treemap",n.plot=function(e,t,a,o){r.plotBasePlot(n.name,e,t,a,o)},n.clean=function(e,t,a,o){r.cleanBasePlot(n.name,e,t,a,o)}},{"../../plots/plots":862}],1298:[function(e,t,n){"use strict";var r=e("../sunburst/calc");n.calc=function(e,t){return r.calc(e,t)},n.crossTraceCalc=function(e){return r._runCrossTraceCalc("treemap",e)}},{"../sunburst/calc":1272}],1299:[function(e,t,n){"use strict";t.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:"poly",eventDataKeys:["currentPath","root","entry","percentRoot","percentEntry","percentParent"],gapWithPathbar:1}},{}],1300:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),o=e("../../components/color"),i=e("../../plots/domain").defaults,l=e("../bar/defaults").handleText,s=e("../bar/constants").TEXTPAD,u=e("../../components/colorscale"),c=u.hasColorscale,f=u.handleDefaults;t.exports=function(e,t,n,u){function p(n,o){return r.coerce(e,t,a,n,o)}var d=p("labels"),h=p("parents");if(d&&d.length&&h&&h.length){var v=p("values");v&&v.length?p("branchvalues"):p("count"),p("level"),p("maxdepth");var m=p("tiling.packing");"squarify"===m&&p("tiling.squarifyratio"),p("tiling.flip"),p("tiling.pad");var y=p("text");p("texttemplate"),t.texttemplate||p("textinfo",Array.isArray(y)?"text+label":"label"),p("hovertext"),p("hovertemplate");var g=p("pathbar.visible"),b="auto";l(e,t,u,p,b,{hasPathbar:g,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),p("textposition");var x=-1!==t.textposition.indexOf("bottom"),_=p("marker.line.width");_&&p("marker.line.color",u.paper_bgcolor);var w=p("marker.colors"),k=t._hasColorscale=c(e,"marker","colors")||(e.marker||{}).coloraxis;k?f(e,t,u,p,{prefix:"marker.",cLetter:"c"}):p("marker.depthfade",!(w||[]).length);var T=2*t.textfont.size;p("marker.pad.t",x?T/4:T),p("marker.pad.l",T/4),p("marker.pad.r",T/4),p("marker.pad.b",x?T:T/4),k&&f(e,t,u,p,{prefix:"marker.",cLetter:"c"}),t._hovered={marker:{line:{width:2,color:o.contrast(u.paper_bgcolor)}}},g&&(p("pathbar.thickness",t.pathbar.textfont.size+2*s),p("pathbar.side"),p("pathbar.edgeshape")),p("sort"),i(t,u,p),t._length=null}else t.visible=!1}},{"../../components/color":615,"../../components/colorscale":627,"../../lib":750,"../../plots/domain":826,"../bar/constants":894,"../bar/defaults":896,"./attributes":1296}],1301:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../../components/drawing"),i=e("../../lib/svg_text_utils"),l=e("./partition"),s=e("./style").styleOne,u=e("./constants"),c=e("../sunburst/helpers"),f=e("../sunburst/fx"),p=!0;t.exports=function(e,t,n,d,h){var v=h.barDifY,m=h.width,y=h.height,g=h.viewX,b=h.viewY,x=h.pathSlice,_=h.toMoveInsideSlice,w=h.strTransform,k=h.hasTransition,T=h.handleSlicesExit,E=h.makeUpdateSliceInterpolator,O=h.makeUpdateTextInterpolator,M={},S=e._fullLayout,C=t[0],A=C.trace,P=C.hierarchy,L=m/A._entryDepth,D=c.listPath(n.data,"id"),j=l(P.copy(),[m,y],{packing:"dice",pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();j=j.filter((function(e){var t=D.indexOf(e.data.id);return-1!==t&&(e.x0=L*t,e.x1=L*(t+1),e.y0=v,e.y1=v+y,e.onPathbar=!0,!0)})),j.reverse(),d=d.data(j,c.getPtId),d.enter().append("g").classed("pathbar",!0),T(d,p,M,[m,y],x),d.order();var I=d;k&&(I=I.transition().each("end",(function(){var t=r.select(this);c.setSliceCursor(t,e,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),I.each((function(l){l._hoverX=g(l.x1-Math.min(m,y)/2),l._hoverY=b(l.y1-y/2);var d=r.select(this),h=a.ensureSingle(d,"path","surface",(function(e){e.style("pointer-events","all")}));k?h.transition().attrTween("d",(function(e){var t=E(e,p,M,[m,y]);return function(e){return x(t(e))}})):h.attr("d",x),d.call(f,n,e,t,{styleOne:s,eventDataKeys:u.eventDataKeys,transitionTime:u.CLICK_TRANSITION_TIME,transitionEasing:u.CLICK_TRANSITION_EASING}).call(c.setSliceCursor,e,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:e._transitioning}),h.call(s,l,A,{hovered:!1}),l._text=(c.getPtLabel(l)||"").split("<br>").join(" ")||"";var v=a.ensureSingle(d,"g","slicetext"),T=a.ensureSingle(v,"text","",(function(e){e.attr("data-notex",1)})),C=a.ensureUniformFontSize(e,c.determineTextFont(A,l,S.font,{onPathbar:!0}));T.text(l._text||" ").classed("slicetext",!0).attr("text-anchor","start").call(o.font,C).call(i.convertToTspans,e),l.textBB=o.bBox(T.node()),l.transform=_(l,{fontSize:C.size,onPathbar:!0}),l.transform.fontSize=C.size,k?T.transition().attrTween("transform",(function(e){var t=O(e,p,M,[m,y]);return function(e){return w(t(e))}})):T.attr("transform",w(l))}))}},{"../../components/drawing":637,"../../lib":750,"../../lib/svg_text_utils":774,"../sunburst/fx":1275,"../sunburst/helpers":1276,"./constants":1299,"./partition":1306,"./style":1308,d3:169}],1302:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../../components/drawing"),i=e("../../lib/svg_text_utils"),l=e("./partition"),s=e("./style").styleOne,u=e("./constants"),c=e("../sunburst/helpers"),f=e("../sunburst/fx"),p=e("../sunburst/plot").formatSliceLabel,d=!1;t.exports=function(e,t,n,h,v){var m=v.width,y=v.height,g=v.viewX,b=v.viewY,x=v.pathSlice,_=v.toMoveInsideSlice,w=v.strTransform,k=v.hasTransition,T=v.handleSlicesExit,E=v.makeUpdateSliceInterpolator,O=v.makeUpdateTextInterpolator,M=v.prevEntry,S={},C=e._fullLayout,A=t[0],P=A.trace,L=-1!==P.textposition.indexOf("left"),D=-1!==P.textposition.indexOf("right"),j=-1!==P.textposition.indexOf("bottom"),I=!j&&!P.marker.pad.t||j&&!P.marker.pad.b,R=l(n,[m,y],{packing:P.tiling.packing,squarifyratio:P.tiling.squarifyratio,flipX:P.tiling.flip.indexOf("x")>-1,flipY:P.tiling.flip.indexOf("y")>-1,pad:{inner:P.tiling.pad,top:P.marker.pad.t,left:P.marker.pad.l,right:P.marker.pad.r,bottom:P.marker.pad.b}}),z=R.descendants(),N=1/0,F=-1/0;z.forEach((function(e){var t=e.depth;t>=P._maxDepth?(e.x0=e.x1=(e.x0+e.x1)/2,e.y0=e.y1=(e.y0+e.y1)/2):(N=Math.min(N,t),F=Math.max(F,t))})),h=h.data(z,c.getPtId),P._maxVisibleLayers=isFinite(F)?F-N+1:0,h.enter().append("g").classed("slice",!0),T(h,d,S,[m,y],x),h.order();var B=null;if(k&&M){var V=c.getPtId(M);h.each((function(e){null===B&&c.getPtId(e)===V&&(B={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})}))}var H=function(){return B||{x0:0,x1:m,y0:0,y1:y}},U=h;return k&&(U=U.transition().each("end",(function(){var t=r.select(this);c.setSliceCursor(t,e,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),U.each((function(l){var h=c.isHeader(l,P);l._hoverX=g(l.x1-P.marker.pad.r),l._hoverY=b(j?l.y1-P.marker.pad.b/2:l.y0+P.marker.pad.t/2);var v=r.select(this),T=a.ensureSingle(v,"path","surface",(function(e){e.style("pointer-events","all")}));k?T.transition().attrTween("d",(function(e){var t=E(e,d,H(),[m,y]);return function(e){return x(t(e))}})):T.attr("d",x),v.call(f,n,e,t,{styleOne:s,eventDataKeys:u.eventDataKeys,transitionTime:u.CLICK_TRANSITION_TIME,transitionEasing:u.CLICK_TRANSITION_EASING}).call(c.setSliceCursor,e,{isTransitioning:e._transitioning}),T.call(s,l,P,{hovered:!1}),l.x0===l.x1||l.y0===l.y1?l._text="":l._text=h?I?"":c.getPtLabel(l)||"":p(l,n,P,t,C)||"";var M=a.ensureSingle(v,"g","slicetext"),S=a.ensureSingle(M,"text","",(function(e){e.attr("data-notex",1)})),A=a.ensureUniformFontSize(e,c.determineTextFont(P,l,C.font));S.text(l._text||" ").classed("slicetext",!0).attr("text-anchor",D?"end":L||h?"start":"middle").call(o.font,A).call(i.convertToTspans,e),l.textBB=o.bBox(S.node()),l.transform=_(l,{fontSize:A.size,isHeader:h}),l.transform.fontSize=A.size,k?S.transition().attrTween("transform",(function(e){var t=O(e,d,H(),[m,y]);return function(e){return w(t(e))}})):S.attr("transform",w(l))})),B}},{"../../components/drawing":637,"../../lib":750,"../../lib/svg_text_utils":774,"../sunburst/fx":1275,"../sunburst/helpers":1276,"../sunburst/plot":1280,"./constants":1299,"./partition":1306,"./style":1308,d3:169}],1303:[function(e,t,n){"use strict";t.exports={moduleType:"trace",name:"treemap",basePlotModule:e("./base_plot"),categories:[],animatable:!0,attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults"),supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc").calc,crossTraceCalc:e("./calc").crossTraceCalc,plot:e("./plot"),style:e("./style").style,colorbar:e("../scatter/marker_colorbar"),meta:{}}},{"../scatter/marker_colorbar":1176,"./attributes":1296,"./base_plot":1297,"./calc":1298,"./defaults":1300,"./layout_attributes":1304,"./layout_defaults":1305,"./plot":1307,"./style":1308}],1304:[function(e,t,n){"use strict";t.exports={treemapcolorway:{valType:"colorlist",editType:"calc"},extendtreemapcolors:{valType:"boolean",dflt:!0,editType:"calc"}}},{}],1305:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t){function n(n,o){return r.coerce(e,t,a,n,o)}n("treemapcolorway",t.colorway),n("extendtreemapcolors")}},{"../../lib":750,"./layout_attributes":1304}],1306:[function(e,t,n){"use strict";var r=e("d3-hierarchy");function a(e,t){switch(e){case"squarify":return r.treemapSquarify.ratio(t);case"binary":return r.treemapBinary;case"dice":return r.treemapDice;case"slice":return r.treemapSlice;default:return r.treemapSliceDice}}function o(e,t,n){var r;n.swapXY&&(r=e.x0,e.x0=e.y0,e.y0=r,r=e.x1,e.x1=e.y1,e.y1=r),n.flipX&&(r=e.x0,e.x0=t[0]-e.x1,e.x1=t[0]-r),n.flipY&&(r=e.y0,e.y0=t[1]-e.y1,e.y1=t[1]-r);var a=e.children;if(a)for(var i=0;i<a.length;i++)o(a[i],t,n)}t.exports=function(e,t,n){var i,l=n.flipX,s=n.flipY,u="dice-slice"===n.packing,c=n.pad[s?"bottom":"top"],f=n.pad[l?"right":"left"],p=n.pad[l?"left":"right"],d=n.pad[s?"top":"bottom"];u&&(i=f,f=c,c=i,i=p,p=d,d=i);var h=r.treemap().tile(a(n.packing,n.squarifyratio)).paddingInner(n.pad.inner).paddingLeft(f).paddingRight(p).paddingTop(c).paddingBottom(d).size(u?[t[1],t[0]]:t)(e);return(u||l||s)&&o(h,t,{swapXY:u,flipX:l,flipY:s}),h}},{"d3-hierarchy":161}],1307:[function(e,t,n){"use strict";var r=e("d3"),a=e("../sunburst/helpers"),o=e("../../lib"),i=e("../bar/constants").TEXTPAD,l=e("../bar/plot"),s=l.toMoveInsideBar,u=e("../bar/uniform_text"),c=u.recordMinTextSize,f=u.clearMinTextSize,p=e("../bar/style").resizeText,d=e("./constants"),h=e("./draw_descendants"),v=e("./draw_ancestors");function m(e){return a.isHierarchyRoot(e)?"":a.getPtId(e)}function y(e,t,n,l){var u=e._fullLayout,f=t[0],p=f.trace,y=f.hierarchy,g=a.findEntryWithLevel(y,p.level),b=r.select(n),x=b.selectAll("g.pathbar"),_=b.selectAll("g.slice");if(!g)return x.remove(),void _.remove();var w=a.isHierarchyRoot(g),k=!u.uniformtext.mode&&a.hasTransition(l),T=a.getMaxDepth(p),E=function(e){return e.data.depth-g.data.depth<T},O=u._size,M=p.domain,S=O.w*(M.x[1]-M.x[0]),C=O.h*(M.y[1]-M.y[0]),A=S,P=p.pathbar.thickness,L=p.marker.line.width+d.gapWithPathbar,D=p.pathbar.visible?p.pathbar.side.indexOf("bottom")>-1?C+L:-(P+L):0,j={x0:A,x1:A,y0:D,y1:D+P},I=function(e,t,n){var r=p.tiling.pad,a=function(e){return e-r<=t.x0},o=function(e){return e+r>=t.x1},i=function(e){return e-r<=t.y0},l=function(e){return e+r>=t.y1};return{x0:a(e.x0-r)?0:o(e.x0-r)?n[0]:e.x0,x1:a(e.x1+r)?0:o(e.x1+r)?n[0]:e.x1,y0:i(e.y0-r)?0:l(e.y0-r)?n[1]:e.y0,y1:i(e.y1+r)?0:l(e.y1+r)?n[1]:e.y1}},R=null,z={},N={},F=null,B=function(e,t){return t?z[m(e)]:N[m(e)]},V=function(e,t,n,r){if(t)return z[m(y)]||j;var a=N[p.level]||n;return E(e)?I(e,a,r):{}};f.hasMultipleRoots&&w&&T++,p._maxDepth=T,p._backgroundColor=u.paper_bgcolor,p._entryDepth=g.data.depth,p._atRootLevel=w;var H=-S/2+O.l+O.w*(M.x[1]+M.x[0])/2,U=-C/2+O.t+O.h*(1-(M.y[1]+M.y[0])/2),W=function(e){return H+e},q=function(e){return U+e},$=q(0),G=W(0),Y=function(e){return G+e},K=function(e){return $+e};function X(e,t){return e+","+t}var Z=Y(0),J=function(e){e.x=Math.max(Z,e.x)},Q=p.pathbar.edgeshape,ee=function(e){var t=Y(Math.max(Math.min(e.x0,e.x0),0)),n=Y(Math.min(Math.max(e.x1,e.x1),A)),r=K(e.y0),a=K(e.y1),o=P/2,i={},l={};i.x=t,l.x=n,i.y=l.y=(r+a)/2;var s={x:t,y:r},u={x:n,y:r},c={x:n,y:a},f={x:t,y:a};return">"===Q?(s.x-=o,u.x-=o,c.x-=o,f.x-=o):"/"===Q?(c.x-=o,f.x-=o,i.x-=o/2,l.x-=o/2):"\\"===Q?(s.x-=o,u.x-=o,i.x-=o/2,l.x-=o/2):"<"===Q&&(i.x-=o,l.x-=o),J(s),J(f),J(i),J(u),J(c),J(l),"M"+X(s.x,s.y)+"L"+X(u.x,u.y)+"L"+X(l.x,l.y)+"L"+X(c.x,c.y)+"L"+X(f.x,f.y)+"L"+X(i.x,i.y)+"Z"},te=function(e){var t=W(e.x0),n=W(e.x1),r=q(e.y0),a=q(e.y1),o=n-t,i=a-r;if(!o||!i)return"";var l=0,s=o>2*l&&i>2*l?l:0,u=function(e,t){return s?"a"+X(s,s)+" 0 0 1 "+X(e,t):""};return"M"+X(t,r+s)+u(s,-s)+"L"+X(n-s,r)+u(s,s)+"L"+X(n,a-s)+u(-s,s)+"L"+X(t+s,a)+u(-s,-s)+"Z"},ne=function(e,t){var n=e.x0,r=e.x1,a=e.y0,o=e.y1,l=e.textBB,f=function(e){return-1!==p.textposition.indexOf(e)},d=f("bottom"),h=f("top")||t.isHeader&&!d,v=h?"start":d?"end":"middle",m=f("right"),y=f("left")||t.onPathbar,g=y?-1:m?1:0,b=p.marker.pad;if(t.isHeader){if(n+=b.l-i,r-=b.r-i,n>=r){var x=(n+r)/2;n=x,r=x}var _;d?(_=o-b.b,a<_&&_<o&&(a=_)):(_=a+b.t,a<_&&_<o&&(o=_))}var w=s(n,r,a,o,l,{isHorizontal:!1,constrained:!0,angle:0,anchor:v,leftToRight:g});return w.fontSize=t.fontSize,w.targetX=W(w.targetX),w.targetY=q(w.targetY),isNaN(w.targetX)||isNaN(w.targetY)?{}:(n!==r&&a!==o&&c(p.type,w,u),{scale:w.scale,rotate:w.rotate,textX:w.textX,textY:w.textY,anchorX:w.anchorX,anchorY:w.anchorY,targetX:w.targetX,targetY:w.targetY})},re=function(e,t){var n,r=0,a=e;while(!n&&r<T)r++,a=a.parent,a?n=B(a,t):r=T;return n||{}},ae=function(e,t,n,a){var o,i=B(e,t);if(t)o=j;else{var l=B(g,t);o=l?I(e,l,a):{}}return r.interpolate(i,o)},oe=function(e,t,n,a){var i,l=B(e,t);if(l)i=l;else if(t)i=j;else if(R)if(e.parent){var s=F||n;s&&!t?i=I(e,s,a):(i={},o.extendFlat(i,re(e,t)))}else i=e;else i={};return r.interpolate(i,{x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1})},ie=function(e,t,n,i){var l=B(e,t),s={},f=V(e,t,n,i);o.extendFlat(s,{transform:ne({x0:f.x0,x1:f.x1,y0:f.y0,y1:f.y1,textBB:e.textBB,_text:e._text},{isHeader:a.isHeader(e,p)})}),l?s=l:e.parent&&o.extendFlat(s,re(e,t));var d=e.transform;return e.x0!==e.x1&&e.y0!==e.y1&&c(p.type,d,u),r.interpolate(s,{transform:{scale:d.scale,rotate:d.rotate,textX:d.textX,textY:d.textY,anchorX:d.anchorX,anchorY:d.anchorY,targetX:d.targetX,targetY:d.targetY}})},le=function(e,t,n,a,o){var i=a[0],l=a[1];k?e.exit().transition().each((function(){var e=r.select(this),a=e.select("path.surface");a.transition().attrTween("d",(function(e){var r=ae(e,t,n,[i,l]);return function(e){return o(r(e))}}));var s=e.select("g.slicetext");s.attr("opacity",0)})).remove():e.exit().remove()},se=function(e){var t=e.transform;return e.x0!==e.x1&&e.y0!==e.y1&&c(p.type,t,u),o.getTextTransform({textX:t.textX,textY:t.textY,anchorX:t.anchorX,anchorY:t.anchorY,targetX:t.targetX,targetY:t.targetY,scale:t.scale,rotate:t.rotate})};k&&(x.each((function(e){z[m(e)]={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1},e.transform&&(z[m(e)].transform={textX:e.transform.textX,textY:e.transform.textY,anchorX:e.transform.anchorX,anchorY:e.transform.anchorY,targetX:e.transform.targetX,targetY:e.transform.targetY,scale:e.transform.scale,rotate:e.transform.rotate})})),_.each((function(e){N[m(e)]={x0:e.x0,x1:e.x1,y0:e.y0,y1:e.y1},e.transform&&(N[m(e)].transform={textX:e.transform.textX,textY:e.transform.textY,anchorX:e.transform.anchorX,anchorY:e.transform.anchorY,targetX:e.transform.targetX,targetY:e.transform.targetY,scale:e.transform.scale,rotate:e.transform.rotate}),!R&&a.isEntry(e)&&(R=e)}))),F=h(e,t,g,_,{width:S,height:C,viewX:W,viewY:q,pathSlice:te,toMoveInsideSlice:ne,prevEntry:R,makeUpdateSliceInterpolator:oe,makeUpdateTextInterpolator:ie,handleSlicesExit:le,hasTransition:k,strTransform:se}),p.pathbar.visible?v(e,t,g,x,{barDifY:D,width:A,height:P,viewX:Y,viewY:K,pathSlice:ee,toMoveInsideSlice:ne,makeUpdateSliceInterpolator:oe,makeUpdateTextInterpolator:ie,handleSlicesExit:le,hasTransition:k,strTransform:se}):x.remove()}t.exports=function(e,t,n,o){var i,l,s=e._fullLayout,u=s._treemaplayer,c=!n;if(f("treemap",s),i=u.selectAll("g.trace.treemap").data(t,(function(e){return e[0].trace.uid})),i.enter().append("g").classed("trace",!0).classed("treemap",!0),i.order(),!s.uniformtext.mode&&a.hasTransition(n)){o&&(l=o());var d=r.transition().duration(n.duration).ease(n.easing).each("end",(function(){l&&l()})).each("interrupt",(function(){l&&l()}));d.each((function(){u.selectAll("g.trace").each((function(t){y(e,t,this,n)}))}))}else i.each((function(t){y(e,t,this,n)})),s.uniformtext.mode&&p(e,s._treemaplayer.selectAll(".trace"),"treemap");c&&i.exit().remove()}},{"../../lib":750,"../bar/constants":894,"../bar/plot":903,"../bar/style":906,"../bar/uniform_text":908,"../sunburst/helpers":1276,"./constants":1299,"./draw_ancestors":1301,"./draw_descendants":1302,d3:169}],1308:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/color"),o=e("../../lib"),i=e("../sunburst/helpers"),l=e("../bar/uniform_text").resizeText;function s(e){var t=e._fullLayout._treemaplayer.selectAll(".trace");l(e,t,"treemap"),t.each((function(e){var t=r.select(this),n=e[0],a=n.trace;t.style("opacity",a.opacity),t.selectAll("path.surface").each((function(e){r.select(this).call(u,e,a,{hovered:!1})}))}))}function u(e,t,n,r){var l,s,u=(r||{}).hovered,c=t.data.data,f=c.i,p=c.color,d=i.isHierarchyRoot(t),h=1;if(u)l=n._hovered.marker.line.color,s=n._hovered.marker.line.width;else if(d&&"rgba(0,0,0,0)"===p)h=0,l="rgba(0,0,0,0)",s=0;else if(l=o.castOption(n,f,"marker.line.color")||a.defaultLine,s=o.castOption(n,f,"marker.line.width")||0,!n._hasColorscale&&!t.onPathbar){var v=n.marker.depthfade;if(v){var m,y=a.combine(a.addOpacity(n._backgroundColor,.75),p);if(!0===v){var g=i.getMaxDepth(n);m=isFinite(g)?i.isLeaf(t)?0:n._maxVisibleLayers-(t.data.depth-n._entryDepth):t.data.height+1}else m=t.data.depth-n._entryDepth,n._atRootLevel||m++;if(m>0)for(var b=0;b<m;b++){var x=.5*b/m;p=a.combine(a.addOpacity(y,x),p)}}}e.style("stroke-width",s).call(a.fill,p).call(a.stroke,l).style("opacity",h)}t.exports={style:s,styleOne:u}},{"../../components/color":615,"../../lib":750,"../bar/uniform_text":908,"../sunburst/helpers":1276,d3:169}],1309:[function(e,t,n){"use strict";var r=e("../box/attributes"),a=e("../../lib/extend").extendFlat;t.exports={y:r.y,x:r.x,x0:r.x0,y0:r.y0,name:a({},r.name,{}),orientation:a({},r.orientation,{}),bandwidth:{valType:"number",min:0,editType:"calc"},scalegroup:{valType:"string",dflt:"",editType:"calc"},scalemode:{valType:"enumerated",values:["width","count"],dflt:"width",editType:"calc"},spanmode:{valType:"enumerated",values:["soft","hard","manual"],dflt:"soft",editType:"calc"},span:{valType:"info_array",items:[{valType:"any",editType:"calc"},{valType:"any",editType:"calc"}],editType:"calc"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,dflt:2,editType:"style"},editType:"plot"},fillcolor:r.fillcolor,points:a({},r.boxpoints,{}),jitter:a({},r.jitter,{}),pointpos:a({},r.pointpos,{}),width:a({},r.width,{}),marker:r.marker,text:r.text,hovertext:r.hovertext,hovertemplate:r.hovertemplate,box:{visible:{valType:"boolean",dflt:!1,editType:"plot"},width:{valType:"number",min:0,max:1,dflt:.25,editType:"plot"},fillcolor:{valType:"color",editType:"style"},line:{color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"style"},editType:"plot"},meanline:{visible:{valType:"boolean",dflt:!1,editType:"plot"},color:{valType:"color",editType:"style"},width:{valType:"number",min:0,editType:"style"},editType:"plot"},side:{valType:"enumerated",values:["both","positive","negative"],dflt:"both",editType:"calc"},offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup,selected:r.selected,unselected:r.unselected,hoveron:{valType:"flaglist",flags:["violins","points","kde"],dflt:"violins+points+kde",extras:["all"],editType:"style"}}},{"../../lib/extend":740,"../box/attributes":917}],1310:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("../box/calc"),i=e("./helpers"),l=e("../../constants/numerical").BADNUM;function s(e,t,n){var r=Math.min(t,n/1.349);return 1.059*r*Math.pow(e,-.2)}function u(e,t,n){var a=t.max-t.min;if(!a)return e.bandwidth?e.bandwidth:0;if(e.bandwidth)return Math.max(e.bandwidth,a/1e4);var o=n.length,i=r.stdev(n,o-1,t.mean);return Math.max(s(o,i,t.q3-t.q1),a/100)}function c(e,t,n,r){var o,i=e.spanmode,s=e.span||[],u=[t.min,t.max],c=[t.min-2*r,t.max+2*r];function f(r){var a=s[r],o="multicategory"===n.type?n.r2c(a):n.d2c(a,0,e[t.valLetter+"calendar"]);return o===l?c[r]:o}o="soft"===i?c:"hard"===i?u:[f(0),f(1)];var p={type:"linear",range:o};return a.setConvert(p),p.cleanRange(),o}t.exports=function(e,t){var n=o(e,t);if(n[0].t.empty)return n;for(var l=e._fullLayout,s=a.getFromId(e,t["h"===t.orientation?"xaxis":"yaxis"]),f=1/0,p=-1/0,d=0,h=0,v=0;v<n.length;v++){var m=n[v],y=m.pts.map(i.extractVal),g=m.bandwidth=u(t,m,y),b=m.span=c(t,m,s,g);if(m.min===m.max&&0===g)b=m.span=[m.min,m.max],m.density=[{v:1,t:b[0]}],m.bandwidth=g,d=Math.max(d,1);else{var x=b[1]-b[0],_=Math.ceil(x/(g/3)),w=x/_;if(!isFinite(w)||!isFinite(_))return r.error("Something went wrong with computing the violin span"),n[0].t.empty=!0,n;var k=i.makeKDE(m,t,y);m.density=new Array(_);for(var T=0,E=b[0];E<b[1]+w/2;T++,E+=w){var O=k(E);m.density[T]={v:O,t:E},d=Math.max(d,O)}}h=Math.max(h,y.length),f=Math.min(f,b[0]),p=Math.max(p,b[1])}var M=a.findExtremes(s,[f,p],{padded:!0});if(t._extremes[s._id]=M,t.width)n[0].t.maxKDE=d;else{var S=l._violinScaleGroupStats,C=t.scalegroup,A=S[C];A?(A.maxKDE=Math.max(A.maxKDE,d),A.maxCount=Math.max(A.maxCount,h)):S[C]={maxKDE:d,maxCount:h}}return n[0].t.labels.kde=r._(e,"kde:"),n}},{"../../constants/numerical":725,"../../lib":750,"../../plots/cartesian/axes":799,"../box/calc":918,"./helpers":1313}],1311:[function(e,t,n){"use strict";var r=e("../box/cross_trace_calc").setPositionOffset,a=["v","h"];t.exports=function(e,t){for(var n=e.calcdata,o=t.xaxis,i=t.yaxis,l=0;l<a.length;l++){for(var s=a[l],u="h"===s?i:o,c=[],f=0;f<n.length;f++){var p=n[f],d=p[0].t,h=p[0].trace;!0!==h.visible||"violin"!==h.type||d.empty||h.orientation!==s||h.xaxis!==o._id||h.yaxis!==i._id||c.push(f)}r("violin",e,c,u)}}},{"../box/cross_trace_calc":919}],1312:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../components/color"),o=e("../box/defaults"),i=e("./attributes");t.exports=function(e,t,n,l){function s(n,a){return r.coerce(e,t,i,n,a)}function u(n,a){return r.coerce2(e,t,i,n,a)}if(o.handleSampleDefaults(e,t,s,l),!1!==t.visible){s("bandwidth"),s("side");var c=s("width");c||(s("scalegroup",t.name),s("scalemode"));var f,p=s("span");Array.isArray(p)&&(f="manual"),s("spanmode",f);var d=s("line.color",(e.marker||{}).color||n),h=s("line.width"),v=s("fillcolor",a.addOpacity(t.line.color,.5));o.handlePointsDefaults(e,t,s,{prefix:""});var m=u("box.width"),y=u("box.fillcolor",v),g=u("box.line.color",d),b=u("box.line.width",h),x=s("box.visible",Boolean(m||y||g||b));x||(t.box={visible:!1});var _=u("meanline.color",d),w=u("meanline.width",h),k=s("meanline.visible",Boolean(_||w));k||(t.meanline={visible:!1})}}},{"../../components/color":615,"../../lib":750,"../box/defaults":920,"./attributes":1309}],1313:[function(e,t,n){"use strict";var r=e("../../lib"),a={gaussian:function(e){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*e*e)}};n.makeKDE=function(e,t,n){var r=n.length,o=a.gaussian,i=e.bandwidth,l=1/(r*i);return function(e){for(var t=0,a=0;a<r;a++)t+=o((e-n[a])/i);return l*t}},n.getPositionOnKdePath=function(e,t,n){var a,o;"h"===t.orientation?(a="y",o="x"):(a="x",o="y");var i=r.findPointOnPath(e.path,n,o,{pathLength:e.pathLength}),l=e.posCenterPx,s=i[a],u="both"===t.side?2*l-s:l;return[s,u]},n.getKdeValue=function(e,t,r){var a=e.pts.map(n.extractVal),o=n.makeKDE(e,t,a);return o(r)/e.posDensityScale},n.extractVal=function(e){return e.v}},{"../../lib":750}],1314:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../../plots/cartesian/axes"),o=e("../box/hover"),i=e("./helpers");t.exports=function(e,t,n,l,s){var u,c,f=e.cd,p=f[0].trace,d=p.hoveron,h=-1!==d.indexOf("violins"),v=-1!==d.indexOf("kde"),m=[];if(h||v){var y=o.hoverOnBoxes(e,t,n,l);if(v&&y.length>0){var g,b,x,_,w,k=e.xa,T=e.ya;"h"===p.orientation?(w=t,g="y",x=T,b="x",_=k):(w=n,g="x",x=k,b="y",_=T);var E=f[e.index];if(w>=E.span[0]&&w<=E.span[1]){var O=r.extendFlat({},e),M=_.c2p(w,!0),S=i.getKdeValue(E,p,w),C=i.getPositionOnKdePath(E,p,M),A=x._offset,P=x._length;O[g+"0"]=C[0],O[g+"1"]=C[1],O[b+"0"]=O[b+"1"]=M,O[b+"Label"]=b+": "+a.hoverLabelText(_,w)+", "+f[0].t.labels.kde+" "+S.toFixed(3),O.spikeDistance=y[0].spikeDistance;var L=g+"Spike";O[L]=y[0][L],y[0].spikeDistance=void 0,y[0][L]=void 0,O.hovertemplate=!1,m.push(O),c={stroke:e.color},c[g+"1"]=r.constrain(A+C[0],A,A+P),c[g+"2"]=r.constrain(A+C[1],A,A+P),c[b+"1"]=c[b+"2"]=_._offset+M}}h&&(m=m.concat(y))}-1!==d.indexOf("points")&&(u=o.hoverOnPoints(e,t,n));var D=s.selectAll(".violinline-"+p.uid).data(c?[0]:[]);return D.enter().append("line").classed("violinline-"+p.uid,!0).attr("stroke-width",1.5),D.exit().remove(),D.attr(c),"closest"===l?u?[u]:m:u?(m.push(u),m):m}},{"../../lib":750,"../../plots/cartesian/axes":799,"../box/hover":922,"./helpers":1313}],1315:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults"),crossTraceDefaults:e("../box/defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc"),plot:e("./plot"),style:e("./style"),styleOnSelect:e("../scatter/style").styleOnSelect,hoverPoints:e("./hover"),selectPoints:e("../box/select"),moduleType:"trace",name:"violin",basePlotModule:e("../../plots/cartesian"),categories:["cartesian","svg","symbols","oriented","box-violin","showLegend","violinLayout","zoomScale"],meta:{}}},{"../../plots/cartesian":812,"../box/defaults":920,"../box/select":927,"../scatter/style":1182,"./attributes":1309,"./calc":1310,"./cross_trace_calc":1311,"./defaults":1312,"./hover":1314,"./layout_attributes":1316,"./layout_defaults":1317,"./plot":1318,"./style":1319}],1316:[function(e,t,n){"use strict";var r=e("../box/layout_attributes"),a=e("../../lib").extendFlat;t.exports={violinmode:a({},r.boxmode,{}),violingap:a({},r.boxgap,{}),violingroupgap:a({},r.boxgroupgap,{})}},{"../../lib":750,"../box/layout_attributes":924}],1317:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes"),o=e("../box/layout_defaults");t.exports=function(e,t,n){function i(n,o){return r.coerce(e,t,a,n,o)}o._supply(e,t,n,i,"violin")}},{"../../lib":750,"../box/layout_defaults":925,"./layout_attributes":1316}],1318:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../../components/drawing"),i=e("../box/plot"),l=e("../scatter/line_points"),s=e("./helpers");t.exports=function(e,t,n,u){var c=e._fullLayout,f=t.xaxis,p=t.yaxis;function d(e){var t=l(e,{xaxis:f,yaxis:p,connectGaps:!0,baseTolerance:.75,shape:"spline",simplify:!0,linearized:!0});return o.smoothopen(t[0],1)}a.makeTraceGroups(u,n,"trace violins").each((function(e){var n=r.select(this),o=e[0],l=o.t,u=o.trace;if(!0!==u.visible||l.empty)n.remove();else{var h=l.bPos,v=l.bdPos,m=t[l.valLetter+"axis"],y=t[l.posLetter+"axis"],g="both"===u.side,b=g||"positive"===u.side,x=g||"negative"===u.side,_=n.selectAll("path.violin").data(a.identity);_.enter().append("path").style("vector-effect","non-scaling-stroke").attr("class","violin"),_.exit().remove(),_.each((function(e){var t,n,a,o,i,s,f,p,_=r.select(this),w=e.density,k=w.length,T=y.c2l(e.pos+h,!0),E=y.l2p(T);if(u.width)t=l.maxKDE/v;else{var O=c._violinScaleGroupStats[u.scalegroup];t="count"===u.scalemode?O.maxKDE/v*(O.maxCount/e.pts.length):O.maxKDE/v}if(b){for(f=new Array(k),i=0;i<k;i++)p=f[i]={},p[l.posLetter]=T+w[i].v/t,p[l.valLetter]=m.c2l(w[i].t,!0);n=d(f)}if(x){for(f=new Array(k),s=0,i=k-1;s<k;s++,i--)p=f[s]={},p[l.posLetter]=T-w[i].v/t,p[l.valLetter]=m.c2l(w[i].t,!0);a=d(f)}if(g)o=n+"L"+a.substr(1)+"Z";else{var M=[E,m.c2p(w[0].t)],S=[E,m.c2p(w[k-1].t)];"h"===u.orientation&&(M.reverse(),S.reverse()),o=b?"M"+M+"L"+n.substr(1)+"L"+S:"M"+S+"L"+a.substr(1)+"L"+M}_.attr("d",o),e.posCenterPx=E,e.posDensityScale=t*v,e.path=_.node(),e.pathLength=e.path.getTotalLength()/(g?2:1)}));var w,k,T,E=u.box,O=E.width,M=(E.line||{}).width;g?(w=v*O,k=0):b?(w=[0,v*O/2],k=M*{x:1,y:-1}[l.posLetter]):(w=[v*O/2,0],k=M*{x:-1,y:1}[l.posLetter]),i.plotBoxAndWhiskers(n,{pos:y,val:m},u,{bPos:h,bdPos:w,bPosPxOffset:k}),i.plotBoxMean(n,{pos:y,val:m},u,{bPos:h,bdPos:w,bPosPxOffset:k}),!u.box.visible&&u.meanline.visible&&(T=a.identity);var S=n.selectAll("path.meanline").data(T||[]);S.enter().append("path").attr("class","meanline").style("fill","none").style("vector-effect","non-scaling-stroke"),S.exit().remove(),S.each((function(e){var t=m.c2p(e.mean,!0),n=s.getPositionOnKdePath(e,u,t);r.select(this).attr("d","h"===u.orientation?"M"+t+","+n[0]+"V"+n[1]:"M"+n[0]+","+t+"H"+n[1])})),i.plotPoints(n,{x:f,y:p},u,l)}}))}},{"../../components/drawing":637,"../../lib":750,"../box/plot":926,"../scatter/line_points":1172,"./helpers":1313,d3:169}],1319:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/color"),o=e("../scatter/style").stylePoints;t.exports=function(e){var t=r.select(e).selectAll("g.trace.violins");t.style("opacity",(function(e){return e[0].trace.opacity})),t.each((function(t){var n=t[0].trace,i=r.select(this),l=n.box||{},s=l.line||{},u=n.meanline||{},c=u.width;i.selectAll("path.violin").style("stroke-width",n.line.width+"px").call(a.stroke,n.line.color).call(a.fill,n.fillcolor),i.selectAll("path.box").style("stroke-width",s.width+"px").call(a.stroke,s.color).call(a.fill,l.fillcolor);var f={"stroke-width":c+"px","stroke-dasharray":2*c+"px,"+c+"px"};i.selectAll("path.mean").style(f).call(a.stroke,u.color),i.selectAll("path.meanline").style(f).call(a.stroke,u.color),o(i,n,e)}))}},{"../../components/color":615,"../scatter/style":1182,d3:169}],1320:[function(e,t,n){"use strict";var r=e("../../components/colorscale/attributes"),a=e("../isosurface/attributes"),o=e("../surface/attributes"),i=e("../../plots/attributes"),l=e("../../lib/extend").extendFlat,s=e("../../plot_api/edit_types").overrideAll,u=t.exports=s(l({x:a.x,y:a.y,z:a.z,value:a.value,isomin:a.isomin,isomax:a.isomax,surface:a.surface,spaceframe:{show:{valType:"boolean",dflt:!1},fill:{valType:"number",min:0,max:1,dflt:1}},slices:a.slices,caps:a.caps,text:a.text,hovertext:a.hovertext,hovertemplate:a.hovertemplate},r("",{colorAttr:"`value`",showScaleDflt:!0,editTypeOverride:"calc"}),{colorbar:a.colorbar,opacity:a.opacity,opacityscale:o.opacityscale,lightposition:a.lightposition,lighting:a.lighting,flatshading:a.flatshading,contour:a.contour,hoverinfo:l({},i.hoverinfo),showlegend:l({},i.showlegend,{dflt:!1})}),"calc","nested");u.x.editType=u.y.editType=u.z.editType=u.value.editType="calc+clearAxisTypes",u.transforms=void 0},{"../../components/colorscale/attributes":622,"../../lib/extend":740,"../../plot_api/edit_types":781,"../../plots/attributes":795,"../isosurface/attributes":1094,"../surface/attributes":1282}],1321:[function(e,t,n){"use strict";var r=e("gl-mesh3d"),a=e("../../lib/gl_format_color").parseColorScale,o=e("../../lib/str2rgbarray"),i=e("../../components/colorscale").extractOpts,l=e("../../plots/gl3d/zip3"),s=e("../isosurface/convert").findNearestOnAxis,u=e("../isosurface/convert").generateIsoMeshes;function c(e,t,n){this.scene=e,this.uid=n,this.mesh=t,this.name="",this.data=null,this.showContour=!1}var f=c.prototype;function p(e,t){var n=e.glplot.gl,a=r({gl:n}),o=new c(e,a,t.uid);return a._trace=o,o.update(t),e.glplot.add(a),o}f.handlePick=function(e){if(e.object===this.mesh){var t=e.data.index,n=this.data._meshX[t],r=this.data._meshY[t],a=this.data._meshZ[t],o=this.data._Ys.length,i=this.data._Zs.length,l=s(n,this.data._Xs).id,u=s(r,this.data._Ys).id,c=s(a,this.data._Zs).id,f=e.index=c+i*u+i*o*l;e.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var p=this.data.hovertext||this.data.text;return Array.isArray(p)&&void 0!==p[f]?e.textLabel=p[f]:p&&(e.textLabel=p),!0}},f.update=function(e){var t=this.scene,n=t.fullSceneLayout;function r(e,t,n,r){return t.map((function(t){return e.d2l(t,0,r)*n}))}this.data=u(e);var s=l(r(n.xaxis,e._meshX,t.dataScale[0],e.xcalendar),r(n.yaxis,e._meshY,t.dataScale[1],e.ycalendar),r(n.zaxis,e._meshZ,t.dataScale[2],e.zcalendar)),c=l(e._meshI,e._meshJ,e._meshK),f={positions:s,cells:c,lightPosition:[e.lightposition.x,e.lightposition.y,e.lightposition.z],ambient:e.lighting.ambient,diffuse:e.lighting.diffuse,specular:e.lighting.specular,roughness:e.lighting.roughness,fresnel:e.lighting.fresnel,vertexNormalsEpsilon:e.lighting.vertexnormalsepsilon,faceNormalsEpsilon:e.lighting.facenormalsepsilon,opacity:e.opacity,opacityscale:e.opacityscale,contourEnable:e.contour.show,contourColor:o(e.contour.color).slice(0,3),contourWidth:e.contour.width,useFacetNormals:e.flatshading},p=i(e);f.vertexIntensity=e._meshIntensity,f.vertexIntensityBounds=[p.min,p.max],f.colormap=a(e),this.mesh.update(f)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},t.exports=p},{"../../components/colorscale":627,"../../lib/gl_format_color":746,"../../lib/str2rgbarray":773,"../../plots/gl3d/zip3":852,"../isosurface/convert":1096,"gl-mesh3d":292}],1322:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./attributes"),o=e("../isosurface/defaults").supplyIsoDefaults,i=e("../surface/defaults").opacityscaleDefaults;t.exports=function(e,t,n,l){function s(n,o){return r.coerce(e,t,a,n,o)}o(e,t,n,l,s),i(e,t,l,s)}},{"../../lib":750,"../isosurface/defaults":1097,"../surface/defaults":1285,"./attributes":1320}],1323:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),supplyDefaults:e("./defaults"),calc:e("../isosurface/calc"),colorbar:{min:"cmin",max:"cmax"},plot:e("./convert"),moduleType:"trace",name:"volume",basePlotModule:e("../../plots/gl3d"),categories:["gl3d","showLegend"],meta:{}}},{"../../plots/gl3d":841,"../isosurface/calc":1095,"./attributes":1320,"./convert":1321,"./defaults":1322}],1324:[function(e,t,n){"use strict";var r=e("../bar/attributes"),a=e("../scatter/attributes").line,o=e("../../plots/attributes"),i=e("../../plots/template_attributes").hovertemplateAttrs,l=e("../../plots/template_attributes").texttemplateAttrs,s=e("./constants"),u=e("../../lib/extend").extendFlat,c=e("../../components/color");function f(e){return{marker:{color:u({},r.marker.color,{arrayOk:!1,editType:"style"}),line:{color:u({},r.marker.line.color,{arrayOk:!1,editType:"style"}),width:u({},r.marker.line.width,{arrayOk:!1,editType:"style"}),editType:"style"},editType:"style"},editType:"style"}}t.exports={measure:{valType:"data_array",dflt:[],editType:"calc"},base:{valType:"number",dflt:null,arrayOk:!1,editType:"calc"},x:r.x,x0:r.x0,dx:r.dx,y:r.y,y0:r.y0,dy:r.dy,xperiod:r.xperiod,yperiod:r.yperiod,xperiod0:r.xperiod0,yperiod0:r.yperiod0,xperiodalignment:r.xperiodalignment,yperiodalignment:r.yperiodalignment,hovertext:r.hovertext,hovertemplate:i({},{keys:s.eventDataKeys}),hoverinfo:u({},o.hoverinfo,{flags:["name","x","y","text","initial","delta","final"]}),textinfo:{valType:"flaglist",flags:["label","text","initial","delta","final"],extras:["none"],editType:"plot",arrayOk:!1},texttemplate:l({editType:"plot"},{keys:s.eventDataKeys.concat(["label"])}),text:r.text,textposition:r.textposition,insidetextanchor:r.insidetextanchor,textangle:r.textangle,textfont:r.textfont,insidetextfont:r.insidetextfont,outsidetextfont:r.outsidetextfont,constraintext:r.constraintext,cliponaxis:r.cliponaxis,orientation:r.orientation,offset:r.offset,width:r.width,increasing:f("increasing"),decreasing:f("decreasing"),totals:f("intermediate sums and total"),connector:{line:{color:u({},a.color,{dflt:c.defaultLine}),width:u({},a.width,{editType:"plot"}),dash:a.dash,editType:"plot"},mode:{valType:"enumerated",values:["spanning","between"],dflt:"between",editType:"plot"},visible:{valType:"boolean",dflt:!0,editType:"plot"},editType:"plot"},offsetgroup:r.offsetgroup,alignmentgroup:r.alignmentgroup}},{"../../components/color":615,"../../lib/extend":740,"../../plots/attributes":795,"../../plots/template_attributes":877,"../bar/attributes":892,"../scatter/attributes":1158,"./constants":1326}],1325:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes"),a=e("../../plots/cartesian/align_period"),o=e("../../lib").mergeArray,i=e("../scatter/calc_selection"),l=e("../../constants/numerical").BADNUM;function s(e){return"a"===e||"absolute"===e}function u(e){return"t"===e||"total"===e}t.exports=function(e,t){var n,c,f,p,d=r.getFromId(e,t.xaxis||"x"),h=r.getFromId(e,t.yaxis||"y");"h"===t.orientation?(n=d.makeCalcdata(t,"x"),f=h.makeCalcdata(t,"y"),c=a(t,h,"y",f),p=!!t.yperiodalignment):(n=h.makeCalcdata(t,"y"),f=d.makeCalcdata(t,"x"),c=a(t,d,"x",f),p=!!t.xperiodalignment);for(var v,m=Math.min(c.length,n.length),y=new Array(m),g=0,b=!1,x=0;x<m;x++){var _=n[x]||0,w=!1;(n[x]!==l||u(t.measure[x])||s(t.measure[x]))&&x+1<m&&(n[x+1]!==l||u(t.measure[x+1])||s(t.measure[x+1]))&&(w=!0);var k=y[x]={i:x,p:c[x],s:_,rawS:_,cNext:w};s(t.measure[x])?(g=k.s,k.isSum=!0,k.dir="totals",k.s=g):u(t.measure[x])?(k.isSum=!0,k.dir="totals",k.s=g):(k.isSum=!1,k.dir=k.rawS<0?"decreasing":"increasing",v=k.s,k.s=g+v,g+=v),"totals"===k.dir&&(b=!0),p&&(y[x].orig_p=f[x]),t.ids&&(k.id=String(t.ids[x])),k.v=(t.base||0)+g}return y.length&&(y[0].hasTotals=b),o(t.text,y,"tx"),o(t.hovertext,y,"htx"),i(y,t),y}},{"../../constants/numerical":725,"../../lib":750,"../../plots/cartesian/align_period":796,"../../plots/cartesian/axes":799,"../scatter/calc_selection":1160}],1326:[function(e,t,n){"use strict";t.exports={eventDataKeys:["initial","delta","final"]}},{}],1327:[function(e,t,n){"use strict";var r=e("../bar/cross_trace_calc").setGroupPositions;t.exports=function(e,t){var n,a,o=e._fullLayout,i=e._fullData,l=e.calcdata,s=t.xaxis,u=t.yaxis,c=[],f=[],p=[];for(a=0;a<i.length;a++){var d=i[a];!0===d.visible&&d.xaxis===s._id&&d.yaxis===u._id&&"waterfall"===d.type&&(n=l[a],"h"===d.orientation?p.push(n):f.push(n),c.push(n))}var h={mode:o.waterfallmode,norm:o.waterfallnorm,gap:o.waterfallgap,groupgap:o.waterfallgroupgap};for(r(e,s,u,f,h),r(e,u,s,p,h),a=0;a<c.length;a++){n=c[a];for(var v=0;v<n.length;v++){var m=n[v];!1===m.isSum&&(m.s0+=0===v?0:n[v-1].s),v+1<n.length&&(n[v].nextP0=n[v+1].p0,n[v].nextS0=n[v+1].s0)}}}},{"../bar/cross_trace_calc":895}],1328:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("../bar/defaults").handleGroupingDefaults,o=e("../bar/defaults").handleText,i=e("../scatter/xy_defaults"),l=e("../scatter/period_defaults"),s=e("./attributes"),u=e("../../components/color"),c=e("../../constants/delta.js"),f=c.INCREASING.COLOR,p=c.DECREASING.COLOR,d="#4499FF";function h(e,t,n){e(t+".marker.color",n),e(t+".marker.line.color",u.defaultLine),e(t+".marker.line.width")}function v(e,t,n,a){function u(n,a){return r.coerce(e,t,s,n,a)}var c=i(e,t,a,u);if(c){l(e,t,a,u),u("measure"),u("orientation",t.x&&!t.y?"h":"v"),u("base"),u("offset"),u("width"),u("text"),u("hovertext"),u("hovertemplate");var v=u("textposition");o(e,t,a,u,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),"none"!==t.textposition&&(u("texttemplate"),t.texttemplate||u("textinfo")),h(u,"increasing",f),h(u,"decreasing",p),h(u,"totals",d);var m=u("connector.visible");if(m){u("connector.mode");var y=u("connector.line.width");y&&(u("connector.line.color"),u("connector.line.dash"))}}else t.visible=!1}function m(e,t){var n,o;function i(e){return r.coerce(o._input,o,s,e)}if("group"===t.waterfallmode)for(var l=0;l<e.length;l++)o=e[l],n=o._input,a(n,o,t,i)}t.exports={supplyDefaults:v,crossTraceDefaults:m}},{"../../components/color":615,"../../constants/delta.js":719,"../../lib":750,"../bar/defaults":896,"../scatter/period_defaults":1178,"../scatter/xy_defaults":1185,"./attributes":1324}],1329:[function(e,t,n){"use strict";t.exports=function(e,t){return e.x="xVal"in t?t.xVal:t.x,e.y="yVal"in t?t.yVal:t.y,"initial"in t&&(e.initial=t.initial),"delta"in t&&(e.delta=t.delta),"final"in t&&(e.final=t.final),t.xa&&(e.xaxis=t.xa),t.ya&&(e.yaxis=t.ya),e}},{}],1330:[function(e,t,n){"use strict";var r=e("../../plots/cartesian/axes").hoverLabelText,a=e("../../components/color").opacity,o=e("../bar/hover").hoverOnBars,i=e("../../constants/delta.js"),l={increasing:i.INCREASING.SYMBOL,decreasing:i.DECREASING.SYMBOL};function s(e,t){var n=e[t.dir].marker,r=n.color,o=n.line.color,i=n.line.width;return a(r)?r:a(o)&&i?o:void 0}t.exports=function(e,t,n,a){var i=o(e,t,n,a);if(i){var u=i.cd,c=u[0].trace,f="h"===c.orientation,p=f?e.xa:e.ya,d=i.index,h=u[d],v=h.isSum?h.b+h.s:h.rawS;if(!h.isSum){i.initial=h.b+h.s-v,i.delta=v,i.final=i.initial+i.delta;var m=w(Math.abs(i.delta));i.deltaLabel=v<0?"("+m+")":m,i.finalLabel=w(i.final),i.initialLabel=w(i.initial)}var y=h.hi||c.hoverinfo,g=[];if(y&&"none"!==y&&"skip"!==y){var b="all"===y,x=y.split("+"),_=function(e){return b||-1!==x.indexOf(e)};h.isSum||(!_("final")||_(f?"x":"y")||g.push(i.finalLabel),_("delta")&&(v<0?g.push(i.deltaLabel+" "+l.decreasing):g.push(i.deltaLabel+" "+l.increasing)),_("initial")&&g.push("Initial: "+i.initialLabel))}return g.length&&(i.extraText=g.join("<br>")),i.color=s(c,h),[i]}function w(e){return r(p,e)}}},{"../../components/color":615,"../../constants/delta.js":719,"../../plots/cartesian/axes":799,"../bar/hover":899}],1331:[function(e,t,n){"use strict";t.exports={attributes:e("./attributes"),layoutAttributes:e("./layout_attributes"),supplyDefaults:e("./defaults").supplyDefaults,crossTraceDefaults:e("./defaults").crossTraceDefaults,supplyLayoutDefaults:e("./layout_defaults"),calc:e("./calc"),crossTraceCalc:e("./cross_trace_calc"),plot:e("./plot"),style:e("./style").style,hoverPoints:e("./hover"),eventData:e("./event_data"),selectPoints:e("../bar/select"),moduleType:"trace",name:"waterfall",basePlotModule:e("../../plots/cartesian"),categories:["bar-like","cartesian","svg","oriented","showLegend","zoomScale"],meta:{}}},{"../../plots/cartesian":812,"../bar/select":904,"./attributes":1324,"./calc":1325,"./cross_trace_calc":1327,"./defaults":1328,"./event_data":1329,"./hover":1330,"./layout_attributes":1332,"./layout_defaults":1333,"./plot":1334,"./style":1335}],1332:[function(e,t,n){"use strict";t.exports={waterfallmode:{valType:"enumerated",values:["group","overlay"],dflt:"group",editType:"calc"},waterfallgap:{valType:"number",min:0,max:1,editType:"calc"},waterfallgroupgap:{valType:"number",min:0,max:1,dflt:0,editType:"calc"}}},{}],1333:[function(e,t,n){"use strict";var r=e("../../lib"),a=e("./layout_attributes");t.exports=function(e,t,n){var o=!1;function i(n,o){return r.coerce(e,t,a,n,o)}for(var l=0;l<n.length;l++){var s=n[l];if(s.visible&&"waterfall"===s.type){o=!0;break}}o&&(i("waterfallmode"),i("waterfallgap",.2),i("waterfallgroupgap"))}},{"../../lib":750,"./layout_attributes":1332}],1334:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../lib"),o=e("../../components/drawing"),i=e("../../constants/numerical").BADNUM,l=e("../bar/plot"),s=e("../bar/uniform_text").clearMinTextSize;function u(e,t,n,l){var s=t.xaxis,u=t.yaxis;a.makeTraceGroups(l,n,"trace bars").each((function(n){var l=r.select(this),f=n[0].trace,p=a.ensureSingle(l,"g","lines");if(f.connector&&f.connector.visible){var d="h"===f.orientation,h=f.connector.mode,v=p.selectAll("g.line").data(a.identity);v.enter().append("g").classed("line",!0),v.exit().remove();var m=v.size();v.each((function(n,l){if(l===m-1||n.cNext){var f=c(n,s,u,d),p=f[0],v=f[1],y="";p[0]!==i&&v[0]!==i&&p[1]!==i&&v[1]!==i&&("spanning"===h&&!n.isSum&&l>0&&(y+=d?"M"+p[0]+","+v[1]+"V"+v[0]:"M"+p[1]+","+v[0]+"H"+p[0]),"between"!==h&&(n.isSum||l<m-1)&&(y+=d?"M"+p[1]+","+v[0]+"V"+v[1]:"M"+p[0]+","+v[1]+"H"+p[1]),p[2]!==i&&v[2]!==i&&(y+=d?"M"+p[1]+","+v[1]+"V"+v[2]:"M"+p[1]+","+v[1]+"H"+p[2])),""===y&&(y="M0,0Z"),a.ensureSingle(r.select(this),"path").attr("d",y).call(o.setClipUrl,t.layerClipId,e)}}))}else p.remove()}))}function c(e,t,n,r){var a=[],o=[],i=r?t:n,l=r?n:t;return a[0]=i.c2p(e.s0,!0),o[0]=l.c2p(e.p0,!0),a[1]=i.c2p(e.s1,!0),o[1]=l.c2p(e.p1,!0),a[2]=i.c2p(e.nextS0,!0),o[2]=l.c2p(e.nextP0,!0),r?[a,o]:[o,a]}t.exports=function(e,t,n,r){var a=e._fullLayout;s("waterfall",a),l.plot(e,t,n,r,{mode:a.waterfallmode,norm:a.waterfallmode,gap:a.waterfallgap,groupgap:a.waterfallgroupgap}),u(e,t,n,r)}},{"../../components/drawing":637,"../../constants/numerical":725,"../../lib":750,"../bar/plot":903,"../bar/uniform_text":908,d3:169}],1335:[function(e,t,n){"use strict";var r=e("d3"),a=e("../../components/drawing"),o=e("../../components/color"),i=e("../../constants/interactions").DESELECTDIM,l=e("../bar/style"),s=e("../bar/uniform_text").resizeText,u=l.styleTextPoints;function c(e,t,n){var l=n||r.select(e).selectAll("g.waterfalllayer").selectAll("g.trace");s(e,l,"waterfall"),l.style("opacity",(function(e){return e[0].trace.opacity})),l.each((function(t){var n=r.select(this),l=t[0].trace;n.selectAll(".point > path").each((function(e){if(!e.isBlank){var t=l[e.dir].marker;r.select(this).call(o.fill,t.color).call(o.stroke,t.line.color).call(a.dashLine,t.line.dash,t.line.width).style("opacity",l.selectedpoints&&!e.selected?i:1)}})),u(n,l,e),n.selectAll(".lines").each((function(){var e=l.connector.line;a.lineGroupStyle(r.select(this).selectAll("path"),e.width,e.color,e.dash)}))}))}t.exports={style:c}},{"../../components/color":615,"../../components/drawing":637,"../../constants/interactions":724,"../bar/style":906,"../bar/uniform_text":908,d3:169}],1336:[function(e,t,n){"use strict";var r=e("../plots/cartesian/axes"),a=e("../lib"),o=e("../plot_api/plot_schema"),i=e("./helpers").pointsAccessorFunction,l=e("../constants/numerical").BADNUM;n.moduleType="transform",n.name="aggregate";var s=n.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},aggregations:{_isLinkedToArray:"aggregation",target:{valType:"string",editType:"calc"},func:{valType:"enumerated",values:["count","sum","avg","median","mode","rms","stddev","min","max","first","last","change","range"],dflt:"first",editType:"calc"},funcmode:{valType:"enumerated",values:["sample","population"],dflt:"sample",editType:"calc"},enabled:{valType:"boolean",dflt:!0,editType:"calc"},editType:"calc"},editType:"calc"},u=s.aggregations;function c(e,t,n,o){if(o.enabled){for(var i=o.target,l=a.nestedProperty(t,i),s=l.get(),u=r.getDataConversions(e,t,i,s),c=f(o,u),p=new Array(n.length),d=0;d<n.length;d++)p[d]=c(s,n[d]);l.set(p),"count"===o.func&&a.pushUnique(t._arrayAttrs,i)}}function f(e,t){var n=e.func,r=t.d2c,o=t.c2d;switch(n){case"count":return p;case"first":return d;case"last":return h;case"sum":return function(e,t){for(var n=0,a=0;a<t.length;a++){var i=r(e[t[a]]);i!==l&&(n+=i)}return o(n)};case"avg":return function(e,t){for(var n=0,a=0,i=0;i<t.length;i++){var s=r(e[t[i]]);s!==l&&(n+=s,a++)}return a?o(n/a):l};case"min":return function(e,t){for(var n=1/0,a=0;a<t.length;a++){var i=r(e[t[a]]);i!==l&&(n=Math.min(n,i))}return n===1/0?l:o(n)};case"max":return function(e,t){for(var n=-1/0,a=0;a<t.length;a++){var i=r(e[t[a]]);i!==l&&(n=Math.max(n,i))}return n===-1/0?l:o(n)};case"range":return function(e,t){for(var n=1/0,a=-1/0,i=0;i<t.length;i++){var s=r(e[t[i]]);s!==l&&(n=Math.min(n,s),a=Math.max(a,s))}return a===-1/0||n===1/0?l:o(a-n)};case"change":return function(e,t){var n=r(e[t[0]]),a=r(e[t[t.length-1]]);return n===l||a===l?l:o(a-n)};case"median":return function(e,t){for(var n=[],i=0;i<t.length;i++){var s=r(e[t[i]]);s!==l&&n.push(s)}if(!n.length)return l;n.sort(a.sorterAsc);var u=(n.length-1)/2;return o((n[Math.floor(u)]+n[Math.ceil(u)])/2)};case"mode":return function(e,t){for(var n={},a=0,i=l,s=0;s<t.length;s++){var u=r(e[t[s]]);if(u!==l){var c=n[u]=(n[u]||0)+1;c>a&&(a=c,i=u)}}return a?o(i):l};case"rms":return function(e,t){for(var n=0,a=0,i=0;i<t.length;i++){var s=r(e[t[i]]);s!==l&&(n+=s*s,a++)}return a?o(Math.sqrt(n/a)):l};case"stddev":return function(t,n){var a,o=0,i=0,s=1,u=l;for(a=0;a<n.length&&u===l;a++)u=r(t[n[a]]);if(u===l)return l;for(;a<n.length;a++){var c=r(t[n[a]]);if(c!==l){var f=c-u;o+=f,i+=f*f,s++}}var p="sample"===e.funcmode?s-1:s;return p?Math.sqrt((i-o*o/s)/p):0}}}function p(e,t){return t.length}function d(e,t){return e[t[0]]}function h(e,t){return e[t[t.length-1]]}n.supplyDefaults=function(e,t){var n,r={};function i(t,n){return a.coerce(e,r,s,t,n)}var l=i("enabled");if(!l)return r;var c=o.findArrayAttributes(t),f={};for(n=0;n<c.length;n++)f[c[n]]=1;var p=i("groups");if(!Array.isArray(p)){if(!f[p])return r.enabled=!1,r;f[p]=0}var d,h=e.aggregations||[],v=r.aggregations=new Array(h.length);function m(e,t){return a.coerce(h[n],d,u,e,t)}for(n=0;n<h.length;n++){d={_index:n};var y=m("target"),g=m("func"),b=m("enabled");b&&y&&(f[y]||"count"===g&&void 0===f[y])?("stddev"===g&&m("funcmode"),f[y]=0,v[n]=d):v[n]={enabled:!1,_index:n}}for(n=0;n<c.length;n++)f[c[n]]&&v.push({target:c[n],func:u.func.dflt,enabled:!0,_index:-1});return r},n.calcTransform=function(e,t,n){if(n.enabled){var r=n.groups,o=a.getTargetArray(t,{target:r});if(o){var l,s,u,f,p={},d={},h=[],v=i(t.transforms,n),m=o.length;for(t._length&&(m=Math.min(m,t._length)),l=0;l<m;l++)s=o[l],u=p[s],void 0===u?(p[s]=h.length,f=[l],h.push(f),d[p[s]]=v(l)):(h[u].push(l),d[p[s]]=(d[p[s]]||[]).concat(v(l)));n._indexToPoints=d;var y=n.aggregations;for(l=0;l<y.length;l++)c(e,t,h,y[l]);"string"===typeof r&&c(e,t,h,{target:r,func:"first",enabled:!0}),t._length=h.length}}}},{"../constants/numerical":725,"../lib":750,"../plot_api/plot_schema":787,"../plots/cartesian/axes":799,"./helpers":1339}],1337:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../registry"),o=e("../plots/cartesian/axes"),i=e("./helpers").pointsAccessorFunction,l=e("../constants/filter_ops"),s=l.COMPARISON_OPS,u=l.INTERVAL_OPS,c=l.SET_OPS;function f(e,t,n){var r=e.operation,a=e.value,o=Array.isArray(a);function i(e){return-1!==e.indexOf(r)}var l,f=function(n){return t(n,0,e.valuecalendar)},p=function(e){return t(e,0,n)};switch(i(s)?l=f(o?a[0]:a):i(u)?l=o?[f(a[0]),f(a[1])]:[f(a),f(a)]:i(c)&&(l=o?a.map(f):[f(a)]),r){case"=":return function(e){return p(e)===l};case"!=":return function(e){return p(e)!==l};case"<":return function(e){return p(e)<l};case"<=":return function(e){return p(e)<=l};case">":return function(e){return p(e)>l};case">=":return function(e){return p(e)>=l};case"[]":return function(e){var t=p(e);return t>=l[0]&&t<=l[1]};case"()":return function(e){var t=p(e);return t>l[0]&&t<l[1]};case"[)":return function(e){var t=p(e);return t>=l[0]&&t<l[1]};case"(]":return function(e){var t=p(e);return t>l[0]&&t<=l[1]};case"][":return function(e){var t=p(e);return t<=l[0]||t>=l[1]};case")(":return function(e){var t=p(e);return t<l[0]||t>l[1]};case"](":return function(e){var t=p(e);return t<=l[0]||t>l[1]};case")[":return function(e){var t=p(e);return t<l[0]||t>=l[1]};case"{}":return function(e){return-1!==l.indexOf(p(e))};case"}{":return function(e){return-1===l.indexOf(p(e))}}}n.moduleType="transform",n.name="filter",n.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},operation:{valType:"enumerated",values:[].concat(s).concat(u).concat(c),dflt:"=",editType:"calc"},value:{valType:"any",dflt:0,editType:"calc"},preservegaps:{valType:"boolean",dflt:!1,editType:"calc"},editType:"calc"},n.supplyDefaults=function(e){var t={};function o(a,o){return r.coerce(e,t,n.attributes,a,o)}var i=o("enabled");if(i){var l=o("target");if(r.isArrayOrTypedArray(l)&&0===l.length)return t.enabled=!1,t;o("preservegaps"),o("operation"),o("value");var s=a.getComponentMethod("calendars","handleDefaults");s(e,t,"valuecalendar",null),s(e,t,"targetcalendar",null)}return t},n.calcTransform=function(e,t,n){if(n.enabled){var a=r.getTargetArray(t,n);if(a){var l=n.target,s=a.length;t._length&&(s=Math.min(s,t._length));var u=n.targetcalendar,c=t._arrayAttrs,p=n.preservegaps;if("string"===typeof l){var d=r.nestedProperty(t,l+"calendar").get();d&&(u=d)}var h,v,m=o.getDataToCoordFunc(e,t,l,a),y=f(n,m,u),g={},b={},x=0;p?(h=function(e){g[e.astr]=r.extendDeep([],e.get()),e.set(new Array(s))},v=function(e,t){var n=g[e.astr][t];e.get()[t]=n}):(h=function(e){g[e.astr]=r.extendDeep([],e.get()),e.set([])},v=function(e,t){var n=g[e.astr][t];e.get().push(n)}),T(h);for(var _=i(t.transforms,n),w=0;w<s;w++){var k=y(a[w]);k?(T(v,w),b[x++]=_(w)):p&&x++}n._indexToPoints=b,t._length=x}}function T(e,n){for(var a=0;a<c.length;a++){var o=r.nestedProperty(t,c[a]);e(o,n)}}}},{"../constants/filter_ops":721,"../lib":750,"../plots/cartesian/axes":799,"../registry":882,"./helpers":1339}],1338:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plot_api/plot_schema"),o=e("../plots/plots"),i=e("./helpers").pointsAccessorFunction;function l(e,t){var n,l,s,u,c,f,p,d,h,v,m=t.transform,y=t.transformIndex,g=e.transforms[y].groups,b=i(e.transforms,m);if(!r.isArrayOrTypedArray(g)||0===g.length)return[e];var x=r.filterUnique(g),_=new Array(x.length),w=g.length,k=a.findArrayAttributes(e),T=m.styles||[],E={};for(n=0;n<T.length;n++)E[T[n].target]=T[n].value;m.styles&&(v=r.keyedContainer(m,"styles","target","value.name"));var O={},M={};for(n=0;n<x.length;n++){f=x[n],O[f]=n,M[f]=0,p=_[n]=r.extendDeepNoArrays({},e),p._group=f,p.transforms[y]._indexToPoints={};var S=null;for(v&&(S=v.get(f)),p.name=S||""===S?S:r.templateString(m.nameformat,{trace:e.name,group:f}),d=p.transforms,p.transforms=[],l=0;l<d.length;l++)p.transforms[l]=r.extendDeepNoArrays({},d[l]);for(l=0;l<k.length;l++)r.nestedProperty(p,k[l]).set([])}for(s=0;s<k.length;s++){for(u=k[s],l=0,h=[];l<x.length;l++)h[l]=r.nestedProperty(_[l],u).get();for(c=r.nestedProperty(e,u).get(),l=0;l<w;l++)h[O[g[l]]].push(c[l])}for(l=0;l<w;l++){p=_[O[g[l]]];var C=p.transforms[y]._indexToPoints;C[M[g[l]]]=b(l),M[g[l]]++}for(n=0;n<x.length;n++)f=x[n],p=_[n],o.clearExpandedTraceDefaultColors(p),p=r.extendDeepNoArrays(p,E[f]||{});return _}n.moduleType="transform",n.name="groupby",n.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},groups:{valType:"data_array",dflt:[],editType:"calc"},nameformat:{valType:"string",editType:"calc"},styles:{_isLinkedToArray:"style",target:{valType:"string",editType:"calc"},value:{valType:"any",dflt:{},editType:"calc",_compareAsJSON:!0},editType:"calc"},editType:"calc"},n.supplyDefaults=function(e,t,a){var o,i={};function l(t,a){return r.coerce(e,i,n.attributes,t,a)}var s=l("enabled");if(!s)return i;l("groups"),l("nameformat",a._dataLength>1?"%{group} (%{trace})":"%{group}");var u=e.styles,c=i.styles=[];if(u)for(o=0;o<u.length;o++){var f=c[o]={};r.coerce(u[o],c[o],n.attributes.styles,"target");var p=r.coerce(u[o],c[o],n.attributes.styles,"value");r.isPlainObject(p)?f.value=r.extendDeep({},p):p&&delete f.value}return i},n.transform=function(e,t){var n,r,a,o=[];for(r=0;r<e.length;r++)for(n=l(e[r],t),a=0;a<n.length;a++)o.push(n[a]);return o}},{"../lib":750,"../plot_api/plot_schema":787,"../plots/plots":862,"./helpers":1339}],1339:[function(e,t,n){"use strict";n.pointsAccessorFunction=function(e,t){for(var n,r,a=0;a<e.length;a++){if(n=e[a],n===t)break;n._indexToPoints&&!1!==n.enabled&&(r=n._indexToPoints)}var o=r?function(e){return r[e]}:function(e){return[e]};return o}},{}],1340:[function(e,t,n){"use strict";var r=e("../lib"),a=e("../plots/cartesian/axes"),o=e("./helpers").pointsAccessorFunction,i=e("../constants/numerical").BADNUM;function l(e,t,n,r){var a,o=new Array(r),i=new Array(r);for(a=0;a<r;a++)o[a]={v:t[a],i:a};for(o.sort(s(e,n)),a=0;a<r;a++)i[a]=o[a].i;return i}function s(e,t){switch(e.order){case"ascending":return function(e,n){var r=t(e.v),a=t(n.v);return r===i?1:a===i?-1:r-a};case"descending":return function(e,n){var r=t(e.v),a=t(n.v);return r===i?1:a===i?-1:a-r}}}n.moduleType="transform",n.name="sort",n.attributes={enabled:{valType:"boolean",dflt:!0,editType:"calc"},target:{valType:"string",strict:!0,noBlank:!0,arrayOk:!0,dflt:"x",editType:"calc"},order:{valType:"enumerated",values:["ascending","descending"],dflt:"ascending",editType:"calc"},editType:"calc"},n.supplyDefaults=function(e){var t={};function a(a,o){return r.coerce(e,t,n.attributes,a,o)}var o=a("enabled");return o&&(a("target"),a("order")),t},n.calcTransform=function(e,t,n){if(n.enabled){var i=r.getTargetArray(t,n);if(i){var s=n.target,u=i.length;t._length&&(u=Math.min(u,t._length));var c,f,p=t._arrayAttrs,d=a.getDataToCoordFunc(e,t,s,i),h=l(n,i,d,u),v=o(t.transforms,n),m={};for(c=0;c<p.length;c++){var y=r.nestedProperty(t,p[c]),g=y.get(),b=new Array(u);for(f=0;f<u;f++)b[f]=g[h[f]];y.set(b)}for(f=0;f<u;f++)m[f]=v(h[f]);n._indexToPoints=m,t._length=u}}}},{"../constants/numerical":725,"../lib":750,"../plots/cartesian/axes":799,"./helpers":1339}],1341:[function(e,t,n){"use strict";n.version="1.57.1"},{}]},{},[26])(26)}))}).call(this,n("c8ba"))},f825:function(e,t,n){"use strict";n.r(t),n.d(t,"BLOCK_TYPE",(function(){return r})),n.d(t,"ENTITY_TYPE",(function(){return a})),n.d(t,"INLINE_STYLE",(function(){return o})),n.d(t,"Constants",(function(){return i})),n.d(t,"getEntityRanges",(function(){return u})),n.d(t,"getSelectedBlocks",(function(){return f})),n.d(t,"selectionContainsEntity",(function(){return p})),n.d(t,"callModifierForSelectedBlocks",(function(){return h}));var r={UNSTYLED:"unstyled",HEADER_ONE:"header-one",HEADER_TWO:"header-two",HEADER_THREE:"header-three",HEADER_FOUR:"header-four",HEADER_FIVE:"header-five",HEADER_SIX:"header-six",UNORDERED_LIST_ITEM:"unordered-list-item",ORDERED_LIST_ITEM:"ordered-list-item",BLOCKQUOTE:"blockquote",PULLQUOTE:"pullquote",CODE:"code-block",ATOMIC:"atomic"},a={LINK:"LINK",IMAGE:"IMAGE",EMBED:"embed"},o={BOLD:"BOLD",CODE:"CODE",ITALIC:"ITALIC",STRIKETHROUGH:"STRIKETHROUGH",UNDERLINE:"UNDERLINE"},i={BLOCK_TYPE:r,ENTITY_TYPE:a,INLINE_STYLE:o},l=n("24f7"),s=new l["OrderedSet"];function u(e,t){for(var n=null,r=null,a=[],o=0,i=0,l=e.length;i<l;i++){r=n;var s=t.get(i);n=s?s.getEntity():null,i>0&&n!==r&&(a.push([r,c(e.slice(o,i),t.slice(o,i))]),o=i)}return a.push([n,c(e.slice(o),t.slice(o))]),a}function c(e,t){for(var n=s,r=s,a=[],o=0,i=0,u=e.length;i<u;i++){r=n;var c=t.get(i);n=c?c.getStyle():s,i>0&&!Object(l["is"])(n,r)&&(a.push([e.slice(o,i),r]),o=i)}return a.push([e.slice(o),n]),a}var f=function(e,t,n){var r=t===n,a=e.getBlockForKey(t);if(!a)return[];var o=[a];if(!r){var i=t;while(i!==n){var l=e.getBlockAfter(i);if(!l){o=[];break}o.push(l),i=l.getKey()}}return o},p=function(e){return function(t,n){var r=t.getCurrentContent(),a=n||t.getSelection(),o=a.getStartKey(),i=a.getEndKey(),l=a.getStartOffset(),s=a.getEndOffset(),u=o===i,c=f(r,o,i),p=!1,d=l+1,h=s-1;return c.forEach((function(t){e(t,(function(e,n){if(!p){var r=t.getKey();u&&(n<d||e>h)||r===o&&n<d||r===i&&e>h||(p=!0)}}),r)})),p}},d=n("bfcd"),h=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var o=e.getCurrentContent(),i=e.getSelection(),l=i.getStartKey(),s=i.getEndKey(),u=i.getStartOffset(),c=i.getEndOffset(),p=l===s,h=f(o,l,s),v=e;return h.forEach((function(e){var n=e.getKey(),a=u,o=c;n===l?(a=u,o=p?c:e.getText().length):n===s?(a=p?u:0,o=c):(a=0,o=e.getText().length);var i=new d["SelectionState"]({anchorKey:n,anchorOffset:a,focusKey:n,focusOffset:o});v=t.apply(void 0,[v,i].concat(r))})),d["EditorState"].forceSelection(v,i)}},f8af:function(e,t,n){var r=n("2474");function a(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}e.exports=a},f8b5:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 16 16"},e),o.default.createElement("path",{d:"M.013 1.012V15h13.999V1.012H.013zm10.999 7.995H8.013v2.999h-2V9.007h-3V7.008h3V4.01h2v2.998h2.999v1.999z"}))};t.default=u},f8b54:function(e,t,n){"use strict";e.exports=function(e){var t=e.editType;return{t:{valType:"number",dflt:0,role:"style",editType:t,description:"The amount of padding (in px) along the top of the component."},r:{valType:"number",dflt:0,role:"style",editType:t,description:"The amount of padding (in px) on the right side of the component."},b:{valType:"number",dflt:0,role:"style",editType:t,description:"The amount of padding (in px) along the bottom of the component."},l:{valType:"number",dflt:0,role:"style",editType:t,description:"The amount of padding (in px) on the left side of the component."},editType:t}}},f8ff:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("g",{fill:"none"},o.default.createElement("path",{d:"M0 0h46v46H0z"}),o.default.createElement("path",{d:"M40.616 19.3a16.387 16.387 0 0 0-1.352-3.904 9.836 9.836 0 0 0-4.225-4.015c-6.17-3.152-13.563-4.731-20.021-1.298a23.665 23.665 0 0 0-4.74 3.47 14.357 14.357 0 0 0-3.28 3.934c-1.636 3.205-.982 6.997-.015 10.433a7.81 7.81 0 0 0 1.083 2.555 8.344 8.344 0 0 0 2.63 2.1c2.611 1.526 5.352 2.845 8.089 4.161a13.223 13.223 0 0 0 2.59 1.028 11.867 11.867 0 0 0 3.048.229 8.678 8.678 0 0 0 3.538-.623 8.95 8.95 0 0 0 2.162-1.622l6.115-5.645c2.223-2.053 4.584-4.37 4.83-7.288a10.951 10.951 0 0 0-.452-3.515zm-5.174 2.942c-.29 1.988-1.825 3.679-3.153 4.984a88.579 88.579 0 0 1-3.648 3.367 5.915 5.915 0 0 1-1.32.94 5.617 5.617 0 0 1-2.098.423 7.835 7.835 0 0 1-1.807-.076 9.038 9.038 0 0 1-1.8-.557 31.794 31.794 0 0 1-5.487-2.889 7.104 7.104 0 0 1-1.758-1.487q-.114-.146-.212-.3a5.426 5.426 0 0 1-.622-1.396 11.172 11.172 0 0 1-.476-3.496 6.775 6.775 0 0 1 .752-2.988 9.108 9.108 0 0 1 2.07-2.44 13.848 13.848 0 0 1 3.042-2.08 11.145 11.145 0 0 1 1.363-.556c3.693-1.236 7.762-.478 11.257 1.23a7.12 7.12 0 0 1 2.765 2.381 6.918 6.918 0 0 1 .995 2.566 6.94 6.94 0 0 1 .137 2.374z",stroke:"#1d9bfb",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{d:"M34.31 17.302a7.12 7.12 0 0 0-2.765-2.382c-3.495-1.709-7.564-2.466-11.257-1.23a11.145 11.145 0 0 0-1.363.556 13.848 13.848 0 0 0-3.043 2.081 9.108 9.108 0 0 0-2.07 2.44 6.775 6.775 0 0 0-.75 2.987 11.172 11.172 0 0 0 .475 3.496 5.426 5.426 0 0 0 .622 1.397q.099.153.212.3a7.104 7.104 0 0 0 1.758 1.486 31.794 31.794 0 0 0 5.486 2.889 9.038 9.038 0 0 0 1.801.558 7.835 7.835 0 0 0 1.807.075 5.617 5.617 0 0 0 2.099-.423 5.915 5.915 0 0 0 1.319-.94 88.299 88.299 0 0 0 3.648-3.366c1.328-1.306 2.863-2.996 3.153-4.985a6.94 6.94 0 0 0-.137-2.373 6.918 6.918 0 0 0-.995-2.566z",stroke:"#1d9bfb",opacity:".25",strokeMiterlimit:"10",strokeWidth:"2"}),o.default.createElement("path",{d:"M25.457 25.996c-1.787.083-3.494-1.142-4.914-2.724a2.032 2.032 0 0 1-.452-.69 2.44 2.44 0 0 1 .028-1.4 3.985 3.985 0 0 1 1.368-2.08 4.888 4.888 0 0 1 1.922-.854 6.99 6.99 0 0 1 5.948.96c1.604 1.233-.197 4.086-1.018 5.142a3.975 3.975 0 0 1-2.882 1.646z",stroke:"#1d9bfb",strokeMiterlimit:"10",strokeWidth:"2"})))};t.default=u},f909:function(e,t,n){var r=n("7e64"),a=n("b760"),o=n("72af"),i=n("4f50"),l=n("1a8c"),s=n("9934"),u=n("8adb");function c(e,t,n,f,p){e!==t&&o(t,(function(o,s){if(p||(p=new r),l(o))i(e,t,s,n,c,f,p);else{var d=f?f(u(e,s),o,s+"",e,t,p):void 0;void 0===d&&(d=o),a(e,s,d)}}),s)}e.exports=c},f9a1:function(e,t,n){"use strict";var r=/([A-Z])/g;function a(e){return e.replace(r,"-$1").toLowerCase()}e.exports=a},f9a3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 46 46"},e),o.default.createElement("path",{fill:"none",d:"M0 0h46v46H0z"}),o.default.createElement("circle",{cx:"13.5",cy:"31.5",r:"7",fill:"#25fdfc",opacity:".4"}),o.default.createElement("circle",{cx:"17.875",cy:"27.125",r:"7",fill:"#23e5fc",opacity:".55"}),o.default.createElement("circle",{cx:"22.25",cy:"22.75",r:"7",fill:"#21ccfc",opacity:".7"}),o.default.createElement("circle",{cx:"26.625",cy:"18.375",r:"7",fill:"#1fb3fb",opacity:".85"}),o.default.createElement("circle",{cx:"31",cy:"14",r:"7",fill:"#1d9bfb"}))};t.default=u},f9ce:function(e,t,n){var r=n("ef5d"),a=n("e3f8"),o=n("f608"),i=n("f4d6");function l(e){return o(e)?r(i(e)):a(e)}e.exports=l},fa21:function(e,t,n){var r=n("7530"),a=n("2dcb"),o=n("eac5");function i(e){return"function"!=typeof e.constructor||o(e)?{}:r(a(e))}e.exports=i},faf6:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M20,8H4V6H20M20,18H4V12H20M20,4H4C2.89,4 2,4.89 2,6V18C2,19.1 2.9,20 4,20H20C21.1,20 22,19.1 22,18V6C22,4.89 21.1,4 20,4Z"}))};e.exports=l},fb07:function(e,t,n){"use strict";
/** @license React v0.19.1
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r,a,o,i,l;if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,u=null,c=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(n){throw setTimeout(c,0),n}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==s?setTimeout(r,0,e):(s=e,setTimeout(c,0))},a=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},i=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var p=window.performance,d=window.Date,h=window.setTimeout,v=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof p&&"function"===typeof p.now)t.unstable_now=function(){return p.now()};else{var y=d.now();t.unstable_now=function(){return d.now()-y}}var g=!1,b=null,x=-1,_=5,w=0;i=function(){return t.unstable_now()>=w},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):_=0<e?Math.floor(1e3/e):5};var k=new MessageChannel,T=k.port2;k.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();w=e+_;try{b(!0,e)?T.postMessage(null):(g=!1,b=null)}catch(n){throw T.postMessage(null),n}}else g=!1},r=function(e){b=e,g||(g=!0,T.postMessage(null))},a=function(e,n){x=h((function(){e(t.unstable_now())}),n)},o=function(){v(x),x=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,a=e[r];if(!(void 0!==a&&0<S(a,t)))break e;e[r]=t,e[n]=a,n=r}}function O(e){return e=e[0],void 0===e?null:e}function M(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length;r<a;){var o=2*(r+1)-1,i=e[o],l=o+1,s=e[l];if(void 0!==i&&0>S(i,n))void 0!==s&&0>S(s,i)?(e[r]=s,e[l]=n,r=l):(e[r]=i,e[o]=n,r=o);else{if(!(void 0!==s&&0>S(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],A=[],P=1,L=null,D=3,j=!1,I=!1,R=!1;function z(e){for(var t=O(A);null!==t;){if(null===t.callback)M(A);else{if(!(t.startTime<=e))break;M(A),t.sortIndex=t.expirationTime,E(C,t)}t=O(A)}}function N(e){if(R=!1,z(e),!I)if(null!==O(C))I=!0,r(F);else{var t=O(A);null!==t&&a(N,t.startTime-e)}}function F(e,n){I=!1,R&&(R=!1,o()),j=!0;var r=D;try{for(z(n),L=O(C);null!==L&&(!(L.expirationTime>n)||e&&!i());){var l=L.callback;if(null!==l){L.callback=null,D=L.priorityLevel;var s=l(L.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?L.callback=s:L===O(C)&&M(C),z(n)}else M(C);L=O(C)}if(null!==L)var u=!0;else{var c=O(A);null!==c&&a(N,c.startTime-n),u=!1}return u}finally{L=null,D=r,j=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=l;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||j||(I=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_getFirstCallbackNode=function(){return O(C)},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_scheduleCallback=function(e,n,i){var l=t.unstable_now();if("object"===typeof i&&null!==i){var s=i.delay;s="number"===typeof s&&0<s?l+s:l,i="number"===typeof i.timeout?i.timeout:B(e)}else i=B(e),s=l;return i=s+i,e={id:P++,callback:n,priorityLevel:e,startTime:s,expirationTime:i,sortIndex:-1},s>l?(e.sortIndex=s,E(A,e),null===O(C)&&e===O(A)&&(R?o():R=!0,a(N,s-l))):(e.sortIndex=i,E(C,e),I||j||(I=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();z(e);var n=O(C);return n!==L&&null!==L&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<L.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}},fb14:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M7.8,2H16.2C19.4,2 22,4.6 22,7.8V16.2C22,19.4 19.4,22 16.2,22H7.8C4.6,22 2,19.4 2,16.2V7.8C2,4.6 4.6,2 7.8,2M7.6,4C5.61,4 4,5.61 4,7.6V16.4C4,18.39 5.61,20 7.6,20H16.4C18.39,20 20,18.39 20,16.4V7.6C20,5.61 18.39,4 16.4,4H7.6M17.25,5.5C17.94,5.5 18.5,6.06 18.5,6.75C18.5,7.44 17.94,8 17.25,8C16.56,8 16,7.44 16,6.75C16,6.06 16.56,5.5 17.25,5.5M12,7C14.76,7 17,9.24 17,12C17,14.76 14.76,17 12,17C9.24,17 7,14.76 7,12C7,9.24 9.24,7 12,7M12,9C10.34,9 9,10.34 9,12C9,13.66 10.34,15 12,15C13.66,15 15,13.66 15,12C15,10.34 13.66,9 12,9Z"}))};e.exports=l},fb6a:function(e,t,n){"use strict";var r=n("23e7"),a=n("861d"),o=n("e8b5"),i=n("23cb"),l=n("50c4"),s=n("fc6a"),u=n("8418"),c=n("b622"),f=n("1dde"),p=n("ae40"),d=f("slice"),h=p("slice",{ACCESSORS:!0,0:0,1:2}),v=c("species"),m=[].slice,y=Math.max;r({target:"Array",proto:!0,forced:!d||!h},{slice:function(e,t){var n,r,c,f=s(this),p=l(f.length),d=i(e,p),h=i(void 0===t?p:t,p);if(o(f)&&(n=f.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?a(n)&&(n=n[v],null===n&&(n=void 0)):n=void 0,n===Array||void 0===n))return m.call(f,d,h);for(r=new(void 0===n?Array:n)(y(h-d,0)),c=0;d<h;d++,c++)d in f&&u(r,c,f[d]);return r.length=c,r}})},fb94:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M10,21V19H6.41L10.91,14.5L9.5,13.09L5,17.59V14H3V21H10M14.5,10.91L19,6.41V10H21V3H14V5H17.59L13.09,9.5L14.5,10.91Z"}))};e.exports=l},fba5:function(e,t,n){var r=n("cb5a");function a(e){return r(this.__data__,e)>-1}e.exports=a},fbbc:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"}))};e.exports=l},fbf9:function(e,t,n){"use strict";function r(e){return e.charAt(0).toUpperCase()+e.substr(1)}function a(e,t,n){return Math.min(Math.max(e,t),n)}Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=r,t.clamp=a},fc55:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ReactCSS=t.loop=t.handleActive=t.handleHover=t.hover=void 0;var r=n("5b71"),a=v(r),o=n("96b7"),i=v(o),l=n("29f4"),s=v(l),u=n("558b"),c=v(u),f=n("5d0b"),p=v(f),d=n("0793"),h=v(d);function v(e){return e&&e.__esModule?e:{default:e}}t.hover=c.default,t.handleHover=c.default,t.handleActive=p.default,t.loop=h.default;var m=t.ReactCSS=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,a.default)(n),l=(0,i.default)(e,o);return(0,s.default)(l)};t.default=m},fc6a:function(e,t,n){var r=n("44ad"),a=n("1d80");e.exports=function(e){return r(a(e))}},fd4a:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 17 13.79"},e),o.default.createElement("path",{class:"cls-1",d:"M16.66.44a.26.26 0 0 0-.19-.15.25.25 0 0 0-.23.1 2.1 2.1 0 0 1-1.14.72 4.42 4.42 0 0 0-1.1.55 1.47 1.47 0 0 0-.71 1.52 6.8 6.8 0 0 0-.78-1A7.29 7.29 0 0 0 7.47 0h-.25A7.29 7.29 0 0 0 .08 8.31c0 .17.06.34.1.51a6.42 6.42 0 0 0 3.58 4.7 3.45 3.45 0 0 0 1.31.27 2.89 2.89 0 0 0 2.56-1.57A3.43 3.43 0 0 0 8 11.06a3.17 3.17 0 0 0 0-.69 2.22 2.22 0 0 1 0-.68.89.89 0 0 1 1-.8 1.41 1.41 0 0 1 .41.11c-.18.32-.34.62-.47.9a8.16 8.16 0 0 0-.6 1.48c-.07.23-.24.85.18 1.14a.61.61 0 0 0 .48.1c.16 0 .64-.12 2-1.69.37-.42.77-.91 1.19-1.45a3.21 3.21 0 0 0 2.12-2.28 3.68 3.68 0 0 0 .07-.82c.4-.62.75-1.2 1.1-1.82a1.92 1.92 0 0 0 1.21-1.1 3.72 3.72 0 0 0-.03-3.02zm-5.78 3.85a1 1 0 0 1-.86.47 1 1 0 0 1-.53-.15A1 1 0 0 1 9 4a1 1 0 0 1 .13-.76 1 1 0 0 1 .87-.49.92.92 0 0 1 .53.16 1 1 0 0 1 .45.62 1 1 0 0 1-.1.76zm1.3 1.83a44.9 44.9 0 0 1 1.56-2.16l.28.22a2.11 2.11 0 0 0 .52.26c-.44.74-.9 1.47-1.46 2.3a39.84 39.84 0 0 1-2.71 3.56 9.82 9.82 0 0 1-1.16 1.17A10.24 10.24 0 0 1 9.87 10a39 39 0 0 1 2.31-3.88zm-8.93 0A1 1 0 0 1 2.71 6a1 1 0 0 1-.44-.63 1 1 0 0 1 1-1.23 1 1 0 0 1 .53.15 1 1 0 0 1 .3 1.35 1 1 0 0 1-.85.47zM2.19 8.33A1 1 0 0 1 3 7.86a1 1 0 0 1 1 .78 1.07 1.07 0 0 1-.13.76 1 1 0 0 1-.87.47 1 1 0 0 1-.53-.15 1 1 0 0 1-.32-1.39zm3.23-6a1 1 0 0 1 .85-.47A1 1 0 0 1 6.8 2a1 1 0 0 1 .32 1.39 1 1 0 0 1-.85.47 1 1 0 0 1-.54-.15 1 1 0 0 1-.44-.63 1 1 0 0 1 .13-.73z"}))};t.default=u},fdb9:function(e,t,n){"use strict";function r(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var a=r(n("ab5b")),o=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},i=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},l=function(e){var t=e.color,n=void 0===t?"currentColor":t,r=e.size,l=void 0===r?24:r,s=(e.children,i(e,["color","size","children"])),u="mdi-icon "+(s.className||"");return a.createElement("svg",o({},s,{className:u,width:l,height:l,fill:n,viewBox:"0 0 24 24"}),a.createElement("path",{d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"}))};e.exports=l},fdbc:function(e,t){e.exports={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}},fdbf:function(e,t,n){var r=n("4930");e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},fe46:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 24 16"},e),o.default.createElement("path",{d:"M6 2L0 8l6 5.991V14l18-.004V2H6z"}))};t.default=u},fe58:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=h(n("bbf7")),a=n("b74c"),o=h(n("5174")),i=h(n("88e7")),l=h(n("d7bc")),s=h(n("37cc")),u=d(n("ab5b")),c=h(n("10b4")),f=n("4578");function p(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return p=function(){return e},e}function d(e){if(e&&e.__esModule)return e;if(null===e||"object"!==y(e)&&"function"!==typeof e)return{default:e};var t=p();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=r?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function h(e){return e&&e.__esModule?e:{default:e}}function v(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 m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e){return y="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},y(e)}function g(){return g=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},g.apply(this,arguments)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(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 w(e,t,n){return t&&_(e.prototype,t),n&&_(e,n),e}function k(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&&T(e,t)}function T(e,t){return T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},T(e,t)}function E(e){var t=S();return function(){var n,r=C(e);if(t){var a=C(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==y(t)&&"function"!==typeof t?M(e):t}function M(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(){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}}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var A=(0,f.connectToContainer)(a.UnconnectedColorscalePicker,{modifyPlotProps:function(e,t,n){"marker.color"===e.attr&&t.fullData.filter((function(e){return t.traceIndexes.includes(e.index)})).every((function(e){return e.marker&&e.marker.color}))&&n.fullValue&&"string"===typeof n.fullValue&&(n.fullValue=t.fullData&&t.fullData.filter((function(e){return t.traceIndexes.includes(e.index)})).map((function(e){return[0,e.marker.color]})))}}),P=function(e){k(n,e);var t=E(n);function n(e,r){var a;return x(this,n),a=t.call(this,e,r),a.state={selectedConstantColorOption:r.traceIndexes.length>1&&e.fullValue&&e.fullValue.every((function(t){return t[1]===e.fullValue[0][1]}))?"single":"multiple"},a.setColor=a.setColor.bind(M(a)),a.setColors=a.setColors.bind(M(a)),a}return w(n,[{key:"setColor",value:function(e){this.props.setColor?this.props.setColor(e):this.props.updatePlot(e)}},{key:"setColors",value:function(e,t){var n=this,r=this.props.tracesToColor.length,a=e.map((function(e){return e[1]})),o=a;"categorical"!==t&&(o=(0,f.adjustColorscale)(a,r,t)),(o.every((function(e){return e===o[0]}))||"categorical"===t)&&(o=(0,f.adjustColorscale)(a,r,t,{repeat:!0}));var i=o.map((function(e){return b({},n.props.attr,e)}));this.context.updateContainer(i)}},{key:"render",value:function(){var e=this,t=this.context.localize,n=[{label:t("Single"),value:"single"},{label:t("Multiple"),value:"multiple"}],a=this.props.parentSelectedConstantColorOption?this.props.parentSelectedConstantColorOption:this.state.selectedConstantColorOption,l=this.props.multiColorMessage?this.props.multiColorMessage:t("Each will be colored according to the selected colors."),c=this.props.singleColorMessage?this.props.singleColorMessage:t("All will be colored in the same color.");return this.context.traceIndexes.length>1?u.default.createElement(o.default,g({},this.props,{suppressMultiValuedMessage:!0}),u.default.createElement(s.default,{options:n,activeOption:a,onOptionChange:this.props.onConstantColorOptionChange?this.props.onConstantColorOptionChange:function(t){return e.setState({selectedConstantColorOption:t})}}),u.default.createElement(i.default,null,"single"===a?c:l),"single"===a?u.default.createElement(r.default,{attr:this.props.attr,updatePlot:this.setColor}):u.default.createElement(A,{suppressMultiValuedMessage:!0,attr:this.props.attr,updatePlot:this.setColors,fullValue:this.props.fullValue,initialCategory:"categorical"})):u.default.createElement(r.default,{attr:this.props.attr,updatePlot:this.setColor,label:this.props.label})}}]),n}(u.Component);P.propTypes=m({multiColorMessage:l.default.string,singleColorMessage:l.default.string,updatePlot:l.default.func,attr:l.default.string,parentSelectedConstantColorOption:l.default.string,onConstantColorOptionChange:l.default.func,messageKeyWordSingle:l.default.string,messageKeyWordPlural:l.default.string,tracesToColor:l.default.array},o.default.propTypes),P.contextTypes={localize:l.default.func,updateContainer:l.default.func,traceIndexes:l.default.array,fullData:l.default.array},P.displayName="UnconnectedMultiColorPicker";var L=(0,f.connectToContainer)(P,{modifyPlotProps:function(e,t,n){if(n.isVisible){var r=[],a=[],o=[];t.traceIndexes.forEach((function(e){o.includes(e)||o.push(e)})),o.forEach((function(n){var o=t.fullData.filter((function(e){return e.index===n}));a=a.concat(o),o.forEach((function(t){var n=(0,c.default)(t,e.attr).get();n&&r.push(n)}))})),n.tracesToColor=a,n.fullValue=r.map((function(e){return[0,e]}))}}});t.default=L},fea9:function(e,t,n){var r=n("da84");e.exports=r.Promise},ff2d:function(e,t,n){"use strict";var r={getRemovalRange:function(e,t,n,r,a){var o=n.split(" ");o=o.map((function(e,t){if("forward"===a){if(t>0)return" "+e}else if(t<o.length-1)return e+" ";return e}));for(var i,l,s=r,u=null,c=null,f=0;f<o.length;f++){if(l=o[f],i=s+l.length,e<i&&s<t)null!==u||(u=s),c=i;else if(null!==u)break;s=i}var p=r+n.length,d=u===r,h=c===p;return(!d&&h||d&&!h)&&("forward"===a?c!==p&&c++:u!==r&&u--),{start:u,end:c}}};e.exports=r},ff2f:function(e,t,n){"use strict";function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n("f2e4"),i=n("24be"),l=n("772c"),s=n("53ce"),u=n("cb1c"),c=n("d8db"),f=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:u(e),entityRanges:s(e,t),data:e.getData().toObject()}},p=function(e,t,n,a){if(e instanceof o)n.push(f(e,t));else{e instanceof i||c(!1);var l=e.getParentKey(),s=a[e.getKey()]=r({},f(e,t),{children:[]});l?a[l].children.push(s):n.push(s)}},d=function(e,t){var n=t.entityMap,r=[],a={},o={},i=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),a=l.stringify(r);o[a]||(o[a]=r,n[a]="".concat(i),i++)})),p(e,n,r,a)})),{blocks:r,entityMap:n}},h=function(e,t){var n=t.blocks,r=t.entityMap,a={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(l.unstringify(t));a[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:a}},v=function(e){var t={entityMap:{},blocks:[]};return t=d(e,t),t=h(e,t),t};e.exports=v},ff43:function(e,t,n){"use strict";function r(e){return 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},r(e)}function a(e){return e&&!Array.isArray(e)&&"object"===r(e)}function o(e,t,n,r){return!!Array.isArray(t)&&!!(n||r&&r.includes(e))}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"array",t=arguments.length>1?arguments[1]:void 0;return{_path:t||("array"===e?[]:""),set:function(t,n){var r;switch(e){case"array":r=this._path.concat([n]);break;case"nestedProperty":r=0===this._path.length?n:Array.isArray(t)?this._path+"[".concat(n,"]"):this._path+"."+n;break;default:throw new Error("unrecognized pathType "+e)}return i(e,r)},get:function(t,n){return"array"===e?this._path:this.set(t,n)._path}}}function l(e){var t="",n=0;"_fullData"===e[n]&&(n+=2),"_fullInput"===e[n]&&n++,"_fullLayout"===e[n]&&n++;for(var r=n;r<e.length;r++)"number"===typeof e[r]||Array.isArray(e[r])?t+="["+(Array.isArray(e[r])?e[r][0]:e[r])+"]":t+=(r>n?".":"")+e[r];return t}function s(e,t,n,r){var i=r.walkArrays,l=r.walkArraysMatchingKeys;Object.keys(e).forEach((function(u){if(!t(u,e,n.get(e,u))){var c=e[u];(a(c)||o(u,c,i,l))&&s(c,t,n.set(e,u),r)}}))}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!a(e)&&!Array.isArray(e))throw new Error("The input must be an object.");var r=i(n.pathType);s(e,t,r,n)}Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=a,t.makeAttrSetterPath=l,t.default=u},ffd6:function(e,t,n){var r=n("3729"),a=n("1310"),o="[object Symbol]";function i(e){return"symbol"==typeof e||a(e)&&r(e)==o}e.exports=i},ffd8:function(e,t,n){"use strict";e.exports=function(e){e._responsiveChartHandler&&(window.removeEventListener("resize",e._responsiveChartHandler),delete e._responsiveChartHandler)}},ffda:function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";function t(e){var t;while(null!=(t=e.next()))if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function n(e){var t;while(null!=(t=e.next()))if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function r(e){return e.eat("@")&&(e.match(/^session\./),e.match(/^local\./),e.match(/^global\./)),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function a(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}e.defineMode("sql",(function(t,n){var r=n.client||{},a=n.atoms||{false:!0,true:!0,null:!0},s=n.builtin||i(l),u=n.keywords||i(o),c=n.operatorChars||/^[*+\-%<>!=&|~^\/]/,f=n.support||{},p=n.hooks||{},d=n.dateSQL||{date:!0,time:!0,timestamp:!0},h=!1!==n.backslashStringEscapes,v=n.brackets||/^[\{}\(\)\[\]]/,m=n.punctuation||/^[;.,:]/;function y(e,t){var n=e.next();if(p[n]){var o=p[n](e,t);if(!1!==o)return o}if(f.hexNumber&&("0"==n&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==n||"X"==n)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(f.binaryNumber&&(("b"==n||"B"==n)&&e.match(/^'[01]+'/)||"0"==n&&e.match(/^b[01]+/)))return"number";if(n.charCodeAt(0)>47&&n.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),f.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==n&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==n||'"'==n&&f.doubleQuote)return t.tokenize=g(n),t.tokenize(e,t);if((f.nCharCast&&("n"==n||"N"==n)||f.charsetCast&&"_"==n&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(f.escapeConstant&&("e"==n||"E"==n)&&("'"==e.peek()||'"'==e.peek()&&f.doubleQuote))return t.tokenize=function(e,t){return(t.tokenize=g(e.next(),!0))(e,t)},"keyword";if(f.commentSlashSlash&&"/"==n&&e.eat("/"))return e.skipToEnd(),"comment";if(f.commentHash&&"#"==n||"-"==n&&e.eat("-")&&(!f.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==n&&e.eat("*"))return t.tokenize=b(1),t.tokenize(e,t);if("."!=n){if(c.test(n))return e.eatWhile(c),"operator";if(v.test(n))return"bracket";if(m.test(n))return e.eatWhile(m),"punctuation";if("{"==n&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var i=e.current().toLowerCase();return d.hasOwnProperty(i)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":a.hasOwnProperty(i)?"atom":s.hasOwnProperty(i)?"builtin":u.hasOwnProperty(i)?"keyword":r.hasOwnProperty(i)?"string-2":null}return f.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:f.ODBCdotTable&&e.match(/^[\w\d_$#]+/)?"variable-2":void 0}function g(e,t){return function(n,r){var a,o=!1;while(null!=(a=n.next())){if(a==e&&!o){r.tokenize=y;break}o=(h||t)&&!o&&"\\"==a}return"string"}}function b(e){return function(t,n){var r=t.match(/^.*?(\/\*|\*\/)/);return r?"/*"==r[1]?n.tokenize=b(e+1):n.tokenize=e>1?b(e-1):y:t.skipToEnd(),"comment"}}function x(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}function _(e){e.indent=e.context.indent,e.context=e.context.prev}return{startState:function(){return{tokenize:y,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==y&&e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?x(e,t,")"):"["==r?x(e,t,"]"):t.context&&t.context.type==r&&_(t),n},indent:function(n,r){var a=n.context;if(!a)return e.Pass;var o=r.charAt(0)==a.type;return a.align?a.col+(o?0:1):a.indent+(o?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:f.commentSlashSlash?"//":f.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}}));var o="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function i(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}var l="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";e.defineMIME("text/x-sql",{name:"sql",keywords:i(o+"begin"),builtin:i(l),atoms:i("false true null unknown"),dateSQL:i("date time timestamp"),support:i("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:i("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:i(o+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:i("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:i("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:i("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":r}}),e.defineMIME("text/x-mysql",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":a}}),e.defineMIME("text/x-mariadb",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":r,"`":t,"\\":a}}),e.defineMIME("text/x-sqlite",{name:"sql",client:i("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:i(o+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:i("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:i("date time timestamp datetime"),support:i("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":r,":":r,"?":r,$:r,'"':n,"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:i("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:i("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:i("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:i("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:i("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:i("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:i("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:i("date time timestamp"),support:i("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:i("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:i("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:i("date timestamp"),support:i("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:i("source"),keywords:i(o+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv 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_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:i("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:i("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),e.defineMIME("text/x-gql",{name:"sql",keywords:i("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:i("false true"),builtin:i("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),e.defineMIME("text/x-gpsql",{name:"sql",client:i("source"),keywords:i("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:i("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-sparksql",{name:"sql",keywords:i("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases datata dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:i("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:i("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable doubleQuote zerolessFloat")}),e.defineMIME("text/x-esper",{name:"sql",client:i("source"),keywords:i("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:i("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:i("time"),support:i("decimallessFloat zerolessFloat binaryNumber hexNumber")})}))},ffda1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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},a=n("ab5b"),o=s(a),i=n("8a2b"),l=s(i);function s(e){return e&&e.__esModule?e:{default:e}}var u=function(e){return o.default.createElement(l.default,r({viewBox:"0 0 32 32"},e),o.default.createElement("path",{d:"M3.563 15.313c-.688-.25-1.063-.438-1.063-.75 0-.25.188-.375.563-.375.75 0 1.438.25 1.938.5l.313-1.75c-.375-.188-1.188-.5-2.313-.5-.813 0-1.5.188-1.938.563-.5.438-.75 1-.75 1.75 0 1.25.75 1.813 2.063 2.25.813.313 1.063.5 1.063.875 0 .313-.25.438-.75.438-.563 0-1.563-.25-2.188-.625l-.313 1.75c.563.313 1.563.625 2.625.625.875 0 1.563-.188 2.063-.563.5-.438.75-1.063.75-1.813 0-1.313-.75-1.875-2.063-2.375zm7-2.75h-1.5v-2.125l-2 .313-.313 1.813-.688.125-.313 1.625h1v3.375c0 .938.25 1.5.688 1.875.375.313.938.5 1.75.5.563 0 .938-.125 1.188-.188v-1.813c-.125 0-.438.125-.688.125-.438 0-.625-.25-.625-.813v-3.063h1.188zm4.625-.063h-.438c-.625 0-1.188.313-1.375.938l-.188-.875h-2v7.375H13.5v-4.813c.313-.375.75-.438 1.313-.438h.375v-2.188zm1.75-3.125c-.688 0-1.25.563-1.25 1.188 0 .688.563 1.25 1.25 1.25s1.25-.5 1.25-1.25c0-.688-.563-1.188-1.25-1.188zm1.187 10.563v-7.375H15.75v7.375zm6.688-6.688c-.438-.563-1-.813-1.75-.813-.688 0-1.25.25-1.813.875l-.125-.75h-2.063v10.063l2.313-.375v-2.375c.375.125.75.188 1.063.188.563 0 1.438-.188 2.125-.875.625-.688.938-1.75.938-3.188 0-1.188-.25-2.188-.688-2.75zm-2 4.5c-.188.375-.438.563-.813.563-.188 0-.438-.063-.625-.125v-3.5c.438-.438.75-.5.875-.5.625 0 .938.688.938 1.938 0 .688-.125 1.25-.375 1.625zm8.625-4.312c-.5-.688-1.25-1-2.25-1-2 0-3.188 1.438-3.188 3.813 0 1.313.313 2.313.938 2.938.625.563 1.438.875 2.563.875 1 0 1.875-.25 2.5-.625l-.25-1.625c-.625.313-1.25.5-2 .5-.5 0-.813-.125-1-.313-.25-.188-.375-.563-.438-1h3.875v-.813c0-1.188-.25-2.125-.75-2.75zm-3.125 2.125c.063-1.063.313-1.563.875-1.563.5 0 .813.5.813 1.563z"}))};t.default=u}}]);
//# sourceMappingURL=chunk-vendors.9442aa56.js.map